1 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
3 * gdb-gdb.py.in: Fix main_type field name.
5 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
7 * python/py-value.c (valpy_format_string): Implement address keyword.
9 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
11 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
13 2020-12-18 Jameson Nash <vtjnash@gmail.com>
15 * coffread.c (linetab_offset): Change type to file_ptr.
16 (linetab_size): Likewise.
17 (enter_linenos): Change parameter type to file_ptr.
18 (init_lineno): Likewise.
19 (init_stringtab): Likewise.
20 (coff_symtab_read): Likewise.
21 (coff_symfile_read): Change variable types to file_ptr.
23 2020-12-17 Tom Tromey <tromey@adacore.com>
25 * printcmd.c (print_variable_and_value): Don't use n_spaces.
27 2020-12-17 Tom Tromey <tromey@adacore.com>
29 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
30 (print_gnat_stuff, print_fixed_point_type_info)
31 (recursive_dump_type): Update.
32 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
33 * c-typeprint.c (c_type_print_base_struct_union)
34 (c_type_print_base_1): Update.
35 * rust-lang.c (rust_internal_print_type): Update.
36 * f-typeprint.c (f_language::f_type_print_base): Update.
37 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
38 * m2-typeprint.c (m2_record_fields): Update.
39 * p-typeprint.c (pascal_type_print_base): Update.
40 * compile/compile-loc2c.c (push, pushf, unary, binary)
41 (do_compile_dwarf_expr_to_c): Update.
42 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
44 2020-12-16 Tom Tromey <tom@tromey.com>
46 * rust-exp.y (rust_lex_tests): Update.
47 * parser-defs.h (parser_state): Add void_p parameter.
48 <void_context_p>: New member.
49 * parse.c (parse_exp_in_context): Update.
50 * language.h (language_defn::post_parser): Remove void_context_p,
51 completing, tracker parameters. Add parser state.
52 * ada-lang.c (ada_language::post_parser): Update.
54 2020-12-16 Tom Tromey <tom@tromey.com>
56 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
57 (parse_exp_in_context): Change void_context_p to bool.
58 * language.h (struct language_defn) <post_parser>: Change
59 void_context_p to bool.
60 * ada-lang.c (class ada_language) <post_parser>: Update.
62 2020-12-16 Tom Tromey <tom@tromey.com>
63 Tom Tromey <tromey@redhat.com>
64 Tom de Vries <tdevries@suse.de>
66 * utils.h (get_chars_per_line): Declare.
67 * utils.c (get_chars_per_line): New function.
68 (fputs_maybe_filtered): Handle '\r'.
69 * ui-out.h (ui_out::progress_meter): New class.
70 (ui_out::progress, ui_out::do_progress_start)
71 (ui_out::do_progress_notify, ui_out::do_progress_end): New
73 * ui-out.c (do_progress_end)
74 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
76 * mi/mi-out.h (mi_ui_out::do_progress_start)
77 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
79 * cli-out.h (struct cli_ui_out) <do_progress_start,
80 do_progress_notify, do_progress_end>: New methods.
81 <enum meter_stat, struct cli_progress_info>: New.
82 <m_meters>: New member.
83 * cli-out.c (cli_ui_out::do_progress_start)
84 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
87 2020-12-16 Luis Machado <luis.machado@linaro.org>
89 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
91 2020-12-16 Luis Machado <luis.machado@linaro.org>
94 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
96 2020-12-15 Rae Kim <rae.kim@gmail.com>
98 * cli/cli-script.c (do_document_command): Rename from
99 document_command. Handle multi-line input.
100 (multi_line_command_p): Handle document_control.
101 (build_command_line): Likewise.
102 (execute_control_command_1): Likewise.
103 (process_next_line): Likewise.
104 (document_command): Call do_document_command.
105 * cli/cli-script.h (enum command_control_type): Add
108 2020-12-15 Tom Tromey <tom@tromey.com>
110 * stap-probe.c (stap_probe::evaluate_argument): Use
112 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
114 * value.h (evaluate_expression): Add expect_type parameter.
115 * objc-lang.c (print_object_command): Call evaluate_expression.
116 * eval.c (evaluate_expression): Add expect_type parameter.
118 2020-12-15 Tom Tromey <tom@tromey.com>
120 * varobj.c (varobj_create): Use first_opcode.
121 * value.c (init_if_undefined_command): Use first_opcode.
122 * typeprint.c (whatis_exp): Use first_opcode.
123 * tracepoint.c (validate_actionline): Use first_opcode.
124 (encode_actions_1): Use first_opcode.
125 * stack.c (return_command): Use first_opcode.
126 * expression.h (struct expression) <first_opcode>: New method.
127 * eval.c (parse_and_eval_type): Use first_opcode.
128 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
130 2020-12-15 Tom Tromey <tom@tromey.com>
132 * f-lang.c (evaluate_subexp_f): Update.
133 * expression.h (evaluate_subexp_do_call): Update.
134 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
135 nargs, argvec with array_view.
136 (evaluate_funcall): Update.
138 2020-12-15 Tom Tromey <tom@tromey.com>
140 * ada-lang.c (num_component_specs): Remove.
141 (assign_aggregate): Update.
142 (aggregate_assign_positional, aggregate_assign_from_choices)
143 (aggregate_assign_others, add_component_interval): Change
146 2020-12-15 Tom Tromey <tromey@adacore.com>
148 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
151 2020-12-14 Tom Tromey <tom@tromey.com>
153 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
154 * typeprint.c (whatis_exp): Always use evaluate_type.
155 (maintenance_print_type): Likewise. Simplify.
157 2020-12-14 Tom Tromey <tromey@adacore.com>
159 * dictionary.c (language_defn::search_name_hash): Ignore "B".
160 * ada-lang.c (advance_wild_match): Ignore "B".
161 (full_match): Remove.
162 (do_full_match): Rewrite.
164 2020-12-14 Tom Tromey <tromey@adacore.com>
166 * ada-lang.c (get_var_value): Only consider exact matches.
168 2020-12-14 Tom Tromey <tromey@adacore.com>
170 * dwarf2/read.c (rewrite_array_type): New function.
171 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
173 2020-12-14 Tom Tromey <tromey@adacore.com>
175 * valarith.c (fixed_point_binop): Call error on division by zero.
177 2020-12-13 Tom Tromey <tom@tromey.com>
179 * gdbtypes.c (safe_parse_type): Make argument const.
180 * value.h (parse_and_eval_type): Make argument const.
181 * eval.c (parse_and_eval_type): Make argument const.
183 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
185 * NEWS: Mention new commands.
186 * target-dcache.c: Add 'cli/cli-cmds.h' include.
187 (maint_flush_dcache_command): New function.
188 (_initialize_target_dcache): Create new 'maint flush dcache'
191 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
193 * NEWS: Mention new commands, and that the old commands are now
195 * cli/cli-cmds.c (maintenanceflushlist): Define.
196 * cli/cli-cmds.h (maintenanceflushlist): Declare.
197 * maint.c (_initialize_maint_cmds): Initialise
198 maintenanceflushlist.
199 * regcache.c: Add 'cli/cli-cmds.h' include.
200 (reg_flush_command): Add header comment.
201 (_initialize_regcache): Create new 'maint flush register-cache'
202 command, make 'flushregs' an alias.
203 * symtab.c: Add 'cli/cli-cmds.h' include.
204 (_initialize_symtab): Create new 'maint flush symbol-cache'
205 command, make old command an alias.
207 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
209 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
210 result from lookup_cmd_composition_1, use the prefixes from both
211 the command and the alias instead.
212 (lookup_cmd_composition_1): Initial prefix command is the based on
213 the search list being passed in. Simplify the logic for tracking
214 the prefix command. Replace a use of alloca with a local
217 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
219 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
220 of NULL. Don't print message piece by piece, but sentence at a
221 time to allow internationalisation. Some whitespace cleanup.
223 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
226 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
227 deprecated_cmd_warning.
228 (deprecated_cmd_warning): Take extra parameter, call
229 lookup_cmd_composition_1 and pass new parameter through.
230 (lookup_cmd_composition_1): New function, takes implementation of
231 lookup_cmd_composition but with extra parameter.
232 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
234 * command.h (deprecated_cmd_warning): Add extra parameter to
236 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
238 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
240 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
241 command.h, add extra parameter, and use this to guard giving a
243 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
244 include argument names in declaration, add new argument.
245 * completer.c (complete_line_internal_1): Remove unneeded
246 brackets, pass extra argument to lookup_cmd_1.
248 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
250 * infrun.h (debug_infrun): Make a bool.
251 * infrun.c (debug_infrun): Make a bool.
252 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
255 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
257 * displaced-stepping.h (displaced_debug_printf): Use
258 debug_prefixed_printf_cond.
259 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
260 (dwarf_read_debug_printf_v): Likewise.
261 * infrun.h (infrun_debug_printf): Likewise.
262 * linux-nat.c (linux_nat_debug_printf): Likewise.
264 2020-12-11 Tom Tromey <tom@tromey.com>
266 * p-exp.y (intvar): Remove global.
267 (DOLLAR_VARIABLE): Change type.
269 (exp): Call write_dollar_variable here...
270 (yylex): ... not here.
271 * m2-exp.y (DOLLAR_VARIABLE): Change type.
272 (variable): Call write_dollar_variable here...
273 (yylex): ... not here.
274 * f-exp.y (DOLLAR_VARIABLE): Change type.
275 (exp): Call write_dollar_variable here...
276 (yylex): ... not here.
278 2020-12-11 Tom Tromey <tom@tromey.com>
280 * varobj.c (varobj_create): Update.
281 (install_variable): Return void.
283 2020-12-11 Tom Tromey <tom@tromey.com>
285 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
287 2020-12-11 Tom Tromey <tom@tromey.com>
289 * varobj.c (varobj_clear_saved_item): Remove.
290 (update_dynamic_varobj_children): Update.
291 (varobj::~varobj): Don't call varobj_clear_saved_item.
293 2020-12-11 Tom Tromey <tom@tromey.com>
295 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
296 (update_dynamic_varobj_children, create_child)
297 (create_child_with_value): Update.
298 * varobj-iter.h (struct varobj_item) <value>: Now a
300 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
302 2020-12-11 Tom Tromey <tom@tromey.com>
304 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
305 (varobj_get_iterator): Return unique_ptr.
306 (update_dynamic_varobj_children, install_visualizer)
307 (varobj::~varobj): Update.
308 * python/python-internal.h (py_varobj_get_iterator): Return
310 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
312 2020-12-11 Tom Tromey <tom@tromey.com>
314 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
315 (varobj_clear_saved_item, update_dynamic_varobj_children):
318 2020-12-11 Tom Tromey <tom@tromey.com>
320 * varobj.c (update_dynamic_varobj_children): Update.
321 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
322 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
324 (py_varobj_iter::next): Likewise.
326 2020-12-11 Tom Tromey <tom@tromey.com>
328 * varobj.c (update_dynamic_varobj_children, install_visualizer)
329 (varobj::~varobj): Update.
330 * varobj-iter.h (struct varobj_iter): Change to interface class.
331 (struct varobj_iter_ops): Remove.
332 (varobj_iter_next, varobj_iter_delete): Remove.
333 * python/py-varobj.c (struct py_varobj_iter): Derive from
334 varobj_iter. Add constructor, destructor. Rename members.
335 (py_varobj_iter::~py_varobj_iter): Rename from
337 (py_varobj_iter::next): Rename from py_varobj_iter_next.
338 (py_varobj_iter_ops): Remove.
339 (py_varobj_iter): Rename from py_varobj_iter_ctor.
340 (py_varobj_iter_new): Remove.
341 (py_varobj_get_iterator): Update.
343 2020-12-11 Tom Tromey <tom@tromey.com>
345 * varobj.h (all_root_varobjs): Take a function_view.
346 * varobj.c (all_root_varobjs): Take a function_view.
347 (varobj_invalidate_iter): Remove unused parameter.
348 (varobj_invalidate): Update.
349 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
350 (mi_cmd_var_update_iter): Change parameters.
352 2020-12-11 Tom Tromey <tom@tromey.com>
354 * varobj.c (struct varobj_root) <next>: Remove.
355 (struct vlist): Remove.
356 (rootlist): Now a std::list.
357 (install_variable, uninstall_variable, all_root_varobjs): Update.
359 2020-12-11 Tom Tromey <tom@tromey.com>
361 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
362 (varobj_table): Now htab_t.
363 (varobj_get_handle, install_variable, uninstall_variable):
365 (hash_varobj, eq_varobj_and_string): New functions.
366 (hash_varobj): Update.
368 2020-12-11 Tom Tromey <tom@tromey.com>
370 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
371 * ada-lang.c (check_status_exception): Update.
372 * breakpoint.c (free_bp_location): Remove.
373 (decref_bp_location): Use bp_location_ref_policy.
374 (bpstats::bpstats): Don't call incref_bp_location.
375 (bpstats::~bpstats): Remove.
376 (bpstats::bpstats): Update.
377 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
378 (bp_location::bp_location): Update.
379 (incref_bp_location): Remove.
380 (bkpt_print_it): Update.
381 * breakpoint.h (class bp_location): Derive from
383 (struct bpstats): Remove destructor.
384 <bp_location_at>: Now a bp_location_ref_ptr.
386 (bp_location_ref_ptr): New typedef.
387 (struct bp_location_ref_policy): New.
389 2020-12-11 Tom Tromey <tom@tromey.com>
391 * thread.c (class scoped_inc_dec_ref): Remove.
392 (tp_array_compar_ascending, tp_array_compar_descending): Change
394 (thread_apply_all_command): Use thread_info_ref.
396 2020-12-11 Tom Tromey <tom@tromey.com>
398 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
399 (stop_context::stop_context): Update.
400 (stop_context::~stop_context): Remove.
402 2020-12-11 Tom Tromey <tom@tromey.com>
404 * inferior.c (current_inferior_): Change type.
405 (current_inferior, set_current_inferior, initialize_inferiors):
408 2020-12-11 Tom Tromey <tom@tromey.com>
410 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
413 2020-12-11 Tom Tromey <tromey@adacore.com>
415 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
417 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
418 (read_atcb): Use cpu_id_offset.
420 2020-12-10 Kevin Buettner <kevinb@redhat.com>
422 * ada-lang.c (ada_fold_name): Fix off-by-one error.
424 2020-12-10 Luis Machado <luis.machado@linaro.org>
426 * breakpoint.c (should_be_inserted): Don't output newline.
428 2020-12-10 Luis Machado <luis.machado@linaro.org>
430 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
431 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
432 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
433 * arch/aarch64.h: ... here.
434 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
435 (aarch64_maybe_swab128): New function.
436 (aarch64_sve_regs_copy_to_reg_buf)
437 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
438 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
440 (TF_REG_VALUE_BYTES): New enum value.
441 (trad_frame_value_bytes_p): New function.
442 (trad_frame_set_value_bytes): New function.
443 (trad_frame_set_reg_value_bytes): New function.
444 (trad_frame_get_prev_register): Handle register values saved as bytes.
445 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
446 (struct trad_frame_saved_reg) <data>: New field.
447 (trad_frame_set_value_bytes): New prototype.
448 (trad_frame_value_bytes_p): New prototype.
450 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
452 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
453 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
454 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
456 2020-12-09 Tom Tromey <tromey@adacore.com>
458 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
460 2020-12-09 Tom Tromey <tromey@adacore.com>
462 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
463 and "denominator" to gdb_mpz. Handle block forms.
464 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
465 "denominator" to gdb_mpz.
466 (finish_fixed_point_type): Update.
467 (has_zero_over_zero_small_attribute): Update.
469 2020-12-09 Tom Tromey <tromey@adacore.com>
471 * expprint.c (op_name): Update.
472 * expression.h (enum exp_opcode): Update.
473 * std-operator.def: Add more opcodes.
474 * ada-operator.def, fortran-operator.def: Remove, moving contents
475 into std-operator.def.
477 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
479 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
480 Return {} instead of false.
481 (get_discrete_bounds): Compute high bound only if low bound is
484 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
487 * gdbtypes.c (get_discrete_low_bound): Make non-static.
488 (get_discrete_high_bound): Make non-static.
489 * gdbtypes.h (get_discrete_low_bound): New declaration.
490 (get_discrete_high_bound): New declaration.
491 * valarith.c (value_subscript): Only fetch high bound if
494 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
496 * gdbtypes.c (get_discrete_bounds): Implement with
497 get_discrete_low_bound and get_discrete_high_bound.
498 (get_discrete_low_bound): New.
499 (get_discrete_high_bound): New.
501 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
503 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
505 * gdbtypes.c (get_discrete_bounds): Return bool.
507 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
509 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
510 (ada_value_slice): Adjust.
512 * gdbtypes.c (get_discrete_bounds): Adjust.
513 (discrete_position): Return optional.
514 * gdbtypes.h (discrete_position): Return optional.
516 2020-12-07 Tom Tromey <tromey@adacore.com>
518 * maint.c (_initialize_maint_cmds): Use expression command
519 completer for "maint print type".
521 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523 * completer.c (complete_explicit_location): Also add keywords
524 that start with '-' to the completion list.
526 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
528 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
529 keyword may be followed by any keyword.
530 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
531 'toklen' in the case for "-force-condition".
533 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
535 * main.c (catch_command_errors): Add a flag parameter; invoke
536 `bpstat_do_actions` if the flag is set.
537 (execute_cmdargs): Update a call to `catch_command_errors`.
539 2020-12-07 Tom de Vries <tdevries@suse.de>
541 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
543 2020-12-06 Tom Tromey <tom@tromey.com>
546 * ada-lang.c (replace_operator_with_call): Rewrite.
548 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
551 * s390-tdep.h (op_bc): Correct BC opcode value.
553 2020-12-06 Joel Brobecker <brobecker@adacore.com>
555 * gmp-utils.h (gdb_mpz::safe_export): New private method.
556 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
557 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
558 (gdb_mpz::safe_export): New method.
559 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
560 Update function description.
561 (check_as_integer_raises_out_of_range_error): New function.
562 (gdb_mpz_as_integer_out_of_range): New function.
563 (_initialize_gmp_utils_selftests): Register
564 gdb_mpz_as_integer_out_of_range as a selftest.
566 2020-12-05 Joel Brobecker <brobecker@adacore.com>
568 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
570 (gdb_mpz::write): Likewise.
572 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
574 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
575 number of displaced step buffers.
577 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
579 * displaced-stepping.h (struct displaced_step_buffer): Rename
581 (struct displaced_step_buffers): ... this.
582 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
583 <struct displaced_step_buffer>: New inner class.
585 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
587 (displaced_step_buffers::prepare): ... this, adjust for multiple
589 (displaced_step_buffer::finish): Rename to...
590 (displaced_step_buffers::finish): ... this, adjust for multiple
592 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
593 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
594 adjust for multiple buffers.
595 (displaced_step_buffer::restore_in_ptid): Rename to...
596 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
598 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
599 for num_disp_step_buffers.
600 * linux-tdep.c (struct linux_gdbarch_data)
601 <num_disp_step_buffers>: New field.
602 (struct linux_info) <disp_step_buf>: Rename to...
603 <disp_step_bufs>: ... this, change type to
604 displaced_step_buffers.
605 (linux_displaced_step_prepare): Use
606 linux_gdbarch_data::num_disp_step_buffers to create that number
608 (linux_displaced_step_finish): Adjust.
609 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
610 (linux_displaced_step_restore_all_in_ptid): Adjust.
611 (linux_init_abi): Change supports_displaced_step parameter for
612 num_disp_step_buffers, save it in linux_gdbarch_data.
613 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
614 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
615 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
616 supports_displaced_step parameter for num_disp_step_buffers.
617 (amd64_linux_init_abi): Adjust.
618 (amd64_x32_linux_init_abi): Adjust.
619 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
620 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
621 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
622 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
623 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
624 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
625 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
626 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
627 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
628 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
629 * m68k-linux-tdep.c (m68k_linux_init_abi):
630 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
631 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
632 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
633 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
634 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
635 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
636 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
637 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
638 Change type to displaced_step_buffers.
639 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
640 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
641 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
642 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
643 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
644 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
645 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
647 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
649 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
651 (_initialize_linux_tdep): Register pre-init gdb data instead of
654 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
656 * displaced-stepping.h (struct
657 displaced_step_copy_insn_closure): Adjust comments.
658 (struct displaced_step_inferior_state) <step_thread,
659 step_gdbarch, step_closure, step_original, step_copy,
660 step_saved_copy>: Remove fields.
661 (struct displaced_step_thread_state): New.
662 (struct displaced_step_buffer): New.
663 * displaced-stepping.c (displaced_step_buffer::prepare): New.
664 (write_memory_ptid): Move from infrun.c.
665 (displaced_step_instruction_executed_successfully): New,
666 factored out of displaced_step_finish.
667 (displaced_step_buffer::finish): New.
668 (displaced_step_buffer::copy_insn_closure_by_addr): New.
669 (displaced_step_buffer::restore_in_ptid): New.
670 * gdbarch.sh (displaced_step_location): Remove.
671 (displaced_step_prepare, displaced_step_finish,
672 displaced_step_copy_insn_closure_by_addr,
673 displaced_step_restore_all_in_ptid): New.
674 * gdbarch.c: Re-generate.
675 * gdbarch.h: Re-generate.
676 * gdbthread.h (class thread_info) <displaced_step_state>: New
678 (thread_step_over_chain_remove): New declaration.
679 (thread_step_over_chain_next): New declaration.
680 (thread_step_over_chain_length): New declaration.
681 * thread.c (thread_step_over_chain_remove): Make non-static.
682 (thread_step_over_chain_next): New.
683 (global_thread_step_over_chain_next): Use
684 thread_step_over_chain_next.
685 (thread_step_over_chain_length): New.
686 (global_thread_step_over_chain_enqueue): Add debug print.
687 (global_thread_step_over_chain_remove): Add debug print.
688 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
690 * infrun.c (get_displaced_stepping_state): New.
691 (displaced_step_in_progress_any_inferior): Remove.
692 (displaced_step_in_progress_thread): Adjust.
693 (displaced_step_in_progress): Adjust.
694 (displaced_step_in_progress_any_thread): New.
695 (get_displaced_step_copy_insn_closure_by_addr): Remove.
696 (gdbarch_supports_displaced_stepping): Use
697 gdbarch_displaced_step_prepare_p.
698 (displaced_step_reset): Change parameter from inferior to
700 (displaced_step_prepare_throw): Implement using
701 gdbarch_displaced_step_prepare.
702 (write_memory_ptid): Move to displaced-step.c.
703 (displaced_step_restore): Remove.
704 (displaced_step_finish): Implement using
705 gdbarch_displaced_step_finish.
706 (start_step_over): Allow starting more than one displaced step.
707 (prepare_for_detach): Handle possibly multiple threads doing
709 (handle_inferior_event): Handle possibility that fork event
710 happens while another thread displaced steps.
711 * linux-tdep.h (linux_displaced_step_prepare): New.
712 (linux_displaced_step_finish): New.
713 (linux_displaced_step_copy_insn_closure_by_addr): New.
714 (linux_displaced_step_restore_all_in_ptid): New.
715 (linux_init_abi): Add supports_displaced_step parameter.
716 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
717 (linux_displaced_step_prepare): New.
718 (linux_displaced_step_finish): New.
719 (linux_displaced_step_copy_insn_closure_by_addr): New.
720 (linux_displaced_step_restore_all_in_ptid): New.
721 (linux_init_abi): Add supports_displaced_step parameter,
722 register displaced step methods if true.
723 (_initialize_linux_tdep): Register inferior_execd observer.
724 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
725 supports_displaced_step parameter, adjust call to
726 linux_init_abi. Remove call to
727 set_gdbarch_displaced_step_location.
728 (amd64_linux_init_abi): Adjust call to
729 amd64_linux_init_abi_common.
730 (amd64_x32_linux_init_abi): Likewise.
731 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
732 linux_init_abi. Remove call to
733 set_gdbarch_displaced_step_location.
734 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
735 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
736 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
738 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
739 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
740 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
741 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
742 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
743 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
744 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
745 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
746 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
747 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
748 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
749 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
750 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
751 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
752 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
753 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
754 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
755 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
756 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
757 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
758 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
759 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
760 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
761 linux_init_abi. Remove call to
762 set_gdbarch_displaced_step_location.
763 * arm-tdep.c (arm_pc_is_thumb): Call
764 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
765 get_displaced_step_copy_insn_closure_by_addr.
766 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
767 clear gdbarch methods.
768 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
769 (get_ppc_per_inferior): New function.
770 (ppc_displaced_step_prepare): New function.
771 (ppc_displaced_step_finish): New function.
772 (ppc_displaced_step_restore_all_in_ptid): New function.
773 (rs6000_gdbarch_init): Register new gdbarch methods.
774 * s390-tdep.c (s390_gdbarch_init): Don't call
775 set_gdbarch_displaced_step_location, set new gdbarch methods.
777 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
779 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
780 * aarch64-tdep.h: Include displaced-stepping.h.
781 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
783 (displaced_step_copy_insn_closure_up): Move here.
784 (struct buf_displaced_step_copy_insn_closure): Move here.
785 (struct displaced_step_inferior_state): Move here.
786 (debug_displaced): Move here.
787 (displaced_debug_printf_1): Move here.
788 (displaced_debug_printf): Move here.
789 * displaced-stepping.c: New file.
790 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
791 * gdbarch.h: Re-generate.
792 * inferior.h: Include displaced-stepping.h.
793 * infrun.h (debug_displaced): Move to displaced-stepping.h.
794 (displaced_debug_printf_1): Likewise.
795 (displaced_debug_printf): Likewise.
796 (struct displaced_step_copy_insn_closure): Likewise.
797 (displaced_step_copy_insn_closure_up): Likewise.
798 (struct buf_displaced_step_copy_insn_closure): Likewise.
799 (struct displaced_step_inferior_state): Likewise.
800 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
801 (displaced_debug_printf_1): Likewise.
802 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
804 (_initialize_infrun): Don't register "set/show debug displaced".
806 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
808 * linux-tdep.c (get_linux_inferior_data): Add inferior
810 (linux_vsyscall_range): Pass current inferior.
812 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
814 * infrun.c (displaced_step_prepare_throw): Change return type to
815 displaced_step_prepare_status.
816 (displaced_step_prepare): Likewise.
817 (displaced_step_finish): Change return type to
818 displaced_step_finish_status.
820 (stop_all_threads): Adjust.
821 * displaced-stepping.h: New file.
823 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
825 * infrun.c (displaced_step_fixup): Rename to...
826 (displaced_step_finish): ... this, update all callers.
828 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
830 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
831 (get_displaced_step_copy_insn_closure_by_addr): ... this.
833 (displaced_step_closure): Rename to...
834 (displaced_step_copy_insn_closure): ... this. Update all users.
835 (displaced_step_closure_up): Rename to...
836 (displaced_step_copy_insn_closure_up). ... this. Update all
838 (buf_displaced_step_closure): Rename to...
839 (buf_displaced_step_copy_insn_closure): ... this. Update all
841 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
842 (get_displaced_step_copy_insn_closure_by_addr): ... this.
844 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
845 (aarch64_displaced_step_copy_insn_closure): ... this. Update
847 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
848 (amd64_displaced_step_copy_insn_closure): ... this. Update all
850 * arm-tdep.h (arm_displaced_step_closure): Rename to...
851 (arm_displaced_step_copy_insn_closure): ... this. Update all
853 * i386-tdep.h (i386_displaced_step_closure): Rename to...
854 (i386_displaced_step_copy_insn_closure): ... this. Update all
856 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
857 (ppc_displaced_step_copy_insn_closure): ... this. Update all
859 * s390-tdep.c (s390_displaced_step_closure): Rename to...
860 (s390_displaced_step_copy_insn_closure): ... this. Update all
862 * gdbarch.h: Re-generate.
863 * gdbarch.c: Re-generate.
865 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
867 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
868 (global_thread_step_over_chain_enqueue): ... this. Update all
870 (thread_step_over_chain_remove): Rename to...
871 (global_thread_step_over_chain_remove): ... this. Update all
873 (thread_step_over_chain_next): Rename to...
874 (global_thread_step_over_chain_next): ... this. Update all
876 * infrun.h (step_over_queue_head): Rename to...
877 (global_thread_step_over_chain_head): ... this. Update all
879 * infrun.c (step_over_queue_head): Rename to...
880 (global_thread_step_over_chain_head): ... this. Update all
882 * thread.c (step_over_chain_remove): Rename to...
883 (thread_step_over_chain_remove): ... this. Update all users.
884 (thread_step_over_chain_next): Rename to...
885 (global_thread_step_over_chain_next): ... this. Update all
887 (thread_step_over_chain_enqueue): Rename to...
888 (global_thread_step_over_chain_enqueue): ... this. Update all
890 (thread_step_over_chain_remove): Rename to...
891 (global_thread_step_over_chain_remove): ... this. Update all
894 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
896 * infrun.c (get_displaced_stepping_state): Remove, change
897 callers to access the field directly.
899 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
901 * infrun.c (handle_inferior_event): Restore displaced step
902 buffer bytes in child process when handling fork, even if fork
903 happened in another thread than the displaced-stepping one.
905 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
907 * infrun.c (infrun_inferior_execd): New function.
908 (_initialize_infrun): Attach inferior_execd observer.
910 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
912 * observable.h (inferior_execd): Declare new observable.
913 * observable.c (inferior_execd): Declare new observable.
914 * infrun.c (follow_exec): Notify inferior_execd observer.
915 * jit.c (jit_inferior_created_hook): Make static.
916 (_initialize_jit): Register inferior_execd observer.
917 * jit.h (jit_inferior_created_hook): Remove declaration.
918 * solib.c (_initialize_solib): Register inferior_execd observer.
920 2020-12-04 Tom de Vries <tdevries@suse.de>
923 * completer.c (completion_tracker::build_completion_result): Don't
924 access match_list[0][-1].
926 2020-12-04 Tom Tromey <tromey@adacore.com>
928 * linespec.c (struct linespec_token): Rename; remove typedef.
929 * guile/scm-block.c (struct block_smob): Remove typedef.
930 (struct block_syms_progress_smob): Likewise.
931 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
932 * guile/scm-symtab.c (symtab_smob): Remove typedef.
933 (struct sal_smob): Remove typedef.
934 * guile/scm-param.c (struct param_smob): Remove typedef.
935 * guile/scm-progspace.c (struct pspace_smob): Rename.
936 * guile/scm-objfile.c (struct objfile_smob): Rename.
937 * guile/scm-iterator.c (struct iterator_smob): Rename.
938 * guile/scm-frame.c (struct frame_smob): Rename.
939 * guile/scm-arch.c (struct arch_smob): Rename.
940 * guile/scm-type.c (struct field_smob): Remove typedef.
941 (struct type_smob): Rename.
942 * guile/scm-cmd.c (struct command_smob): Remove typedef.
943 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
944 * guile/scm-value.c (struct value_smob): Remove typedef.
945 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
946 * guile/guile-internal.h (struct scheme_variable)
947 (struct scheme_function, struct scheme_integer_constant)
948 (struct gdb_smob, struct chained_gdb_smob)
949 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
950 (objfile_smob, pspace_smob, type_smob): Remove typedef.
951 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
952 (struct pretty_printer_worker_smob): Remove typedef.
953 * guile/scm-exception.c (struct exception_smob): Remove typedef.
954 * python/py-block.c (struct block_object): Remove typedef.
955 (block_syms_iterator_object): Update.
957 (block_syms_iterator_object): Remove typedef.
958 * python/py-inferior.c (struct membuf_object): Remove typedef.
959 * python/py-symtab.c (struct symtab_object): Remove typedef.
960 (set_symtab): Update.
961 (sal_object): Remove typedef.
963 * python/py-frame.c (frame_object): Remove typedef.
964 * python/py-record-btrace.c (struct btpy_list_object): Remove
966 * python/py-arch.c (struct arch_object): Remove typedef.
967 * python/py-linetable.c (struct linetable_entry_object)
968 (linetable_object, struct ltpy_iterator_object): Remove typedef.
969 * python/py-events.h (eventregistry_object): Remove typedef.
970 (struct events_object): Remove typedef.
971 * python/python-internal.h (gdbpy_breakpoint_object): Remove
973 (thread_object): Remove typedef.
974 * python/py-progspace.c (pspace_object): Remove typedef.
975 * python/py-value.c (struct value_object): Remove typedef.
976 * python/py-record.h (recpy_record_object): Remove typedef.
977 (struct recpy_element_object): Remove typedef.
978 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
979 * python/py-objfile.c (objfile_object): Remove typedef.
980 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
981 * python/py-type.c (type_object): Remove typedef.
982 (typy_iterator_object): Update.
984 (field_object): Remove typedef.
985 (typy_iterator_object): Remove typedef.
986 * python/py-registers.c (register_descriptor_iterator_object):
988 (struct register_descriptor_object)
989 (struct reggroup_iterator_object, struct reggroup_object): Remove
991 * python/py-record.c (recpy_gap_object): Remove typedef.
992 * python/py-symbol.c (symbol_object): Remove typedef.
993 (set_symbol): Update.
994 * python/py-event.h (event_object): Remove typedef.
995 * python/py-param.c (parmpy_object): Remove typedef.
996 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
997 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
998 (unwind_info_object, struct cached_frame_info): Likewise.
1000 2020-12-04 Tom Tromey <tromey@adacore.com>
1002 * value.c (value_internal_function_name): Make return type const.
1003 * value.h (value_internal_function_name): Make return type const.
1005 2020-12-04 Luis Machado <luis.machado@linaro.org>
1007 * aarch64-tdep.c (submask, bit, bits): Remove.
1008 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1009 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1010 (aarch64_decode_cb, aarch64_decode_tb)
1011 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1013 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1015 2020-12-04 Tom de Vries <tdevries@suse.de>
1018 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1020 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1023 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1024 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1026 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1028 * arch/riscv.c: Include 'rv32e-xregs.c'.
1029 (riscv_create_target_description): Update to handle rv32e.
1030 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1032 <operator==>: Update to account for new field.
1034 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1035 * features/riscv/rv32e-xregs.c: Generated.
1036 * features/riscv/rv32e-xregs.xml: New file.
1037 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1039 (riscv_debug_infcall): Likewise.
1040 (riscv_debug_unwinder): Likewise.
1041 (riscv_debug_gdbarch): Likewise.
1042 (enum riscv_register_required_status): Delete.
1043 (struct riscv_register_feature): Add constructor, delete default
1044 constructor, copy, and assign constructors.
1045 (struct riscv_register_feature::register_info) <required>: Delete.
1046 <check>: Update comment and arguments.
1047 (struct riscv_register_feature) <name>: Change to member function.
1048 <prefer_first_name>: Delete.
1049 <tdesc_feature>: New member function.
1050 <registers>: Rename to...
1051 <m_registers>: ...this.
1052 <m_feature_name>: New member variable.
1053 (riscv_register_feature::register_info::check): Update arguments.
1054 (riscv_xreg_feature): Rewrite as class, create a single static
1055 instance of the class.
1056 (riscv_freg_feature): Likewise.
1057 (riscv_virtual_feature): Likewise.
1058 (riscv_csr_feature): Likewise.
1059 (riscv_create_csr_aliases): Has become a member function inside
1060 riscv_csr_feature class.
1061 (riscv_abi_embedded): New function definition.
1062 (riscv_register_name): Adjust to use new feature objects.
1063 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1064 and adjust available argument registers.
1065 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1066 (riscv_check_tdesc_feature): Delete.
1067 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1068 (riscv_gdbarch_init): Delete target description checking code, and
1069 instead call to the new feature objects to perform the checks.
1070 Reorder handling of no abi information case, allows small code
1072 (_initialize_riscv_tdep): Remove call, this is now done in the
1073 riscv_csr_feature constructor.
1074 * riscv-tdep.h (riscv_abi_embedded): Declare.
1076 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1078 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1081 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1083 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1084 implementation moved from riscv_register_reggroup_p.
1085 (riscv_register_reggroup_p): Update group handling for unknown
1088 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1090 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1091 (dwarf2_get_dwz_file): Convert 'filename' to a
1092 std::string. Use dwz_search_other_debugdirs to search for DWZ
1093 files in the debug-file-directories provided by the user as well.
1095 2020-12-01 Tom Tromey <tom@tromey.com>
1097 * parse.c (expr_builder::expr_builder): Initialize expout.
1098 (expr_builder::release): Use expression::resize.
1099 (expression::expression, expression::~expression)
1100 (expression::resize): New methods.
1101 (write_exp_elt): Use expression::resize.
1102 (prefixify_expression): Update.
1103 (increase_expout_size): Use expression::resize.
1104 * expression.h (struct expression): Add constructor, destructor.
1105 <resize>: New method.
1106 (expression_up): Change type.
1108 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1109 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1110 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1113 2020-11-30 Tom de Vries <tdevries@suse.de>
1116 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1117 is_reference parameter.
1118 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1120 2020-11-30 Tom Tromey <tom@tromey.com>
1122 * rust-lang.c (rust_op_name): Remove.
1123 (exp_descriptor_rust): Update.
1124 * parser-defs.h (op_name_standard): Don't declare.
1125 (struct exp_descriptor) <op_name>: Remove.
1126 * parse.c (exp_descriptor_standard): Update.
1127 * opencl-lang.c (exp_descriptor_opencl): Update.
1128 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1129 * f-lang.c (op_name_f): Remove.
1130 (f_language::exp_descriptor_tab): Update.
1131 * expression.h (op_name): Update.
1132 * expprint.c (op_name): Rewrite.
1133 (op_name_standard): Remove.
1134 (dump_raw_expression, dump_subexp): Update.
1135 * c-lang.c (exp_descriptor_c): Update.
1136 * ax-gdb.c (gen_expr): Update.
1137 * ada-lang.c (ada_op_name): Remove.
1138 (ada_exp_descriptor): Update.
1140 2020-11-30 Tom Tromey <tom@tromey.com>
1142 * eval.c (init_array_element): Remove.
1143 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1145 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1148 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1149 static locator win info.
1151 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1153 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1156 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1158 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1159 is always initialized.
1161 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1162 * MAINTAINERS (Write After Approval): Add myself.
1164 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1166 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1167 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1169 2020-11-25 Tom Tromey <tom@tromey.com>
1171 * eval.c (evaluate_subexp_standard): Remove unnecessary
1174 2020-11-25 Tom Tromey <tom@tromey.com>
1176 * d-lang.c: Include parser-defs.h.
1177 * rust-lang.c: Include parser-defs.h.
1178 * c-lang.h: Do not include parser-defs.h.
1180 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1182 * regcache.h (struct cached_reg): Remove typedef.
1184 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1186 * README: Fix the URL of the MPFR library.
1188 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1190 * README: Document the --with-libgmp-prefix configure option.
1192 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1194 * NEWS: Add entry documenting support for DWARF-based fixed
1197 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1199 * NEWS: Document that building GDB now requires GMP.
1201 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1203 * typeprint.c (print_type_scalar): Add handling of
1204 TYPE_CODE_FIXED_POINT.
1206 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1208 * valarith.c (fixed_point_binop): Replace the
1209 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1212 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1214 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1215 replacing fixed_point_scaling_factor. All callers updated
1216 throughout this project.
1217 (fixed_point_scaling_factor): Delete declaration.
1218 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1219 fixed_point_scaling_factor. Adjust implementation accordingly.
1221 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1223 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1224 replacing the fixed_point_type_base_type function. All callers
1225 updated throughout this project.
1226 (fixed_point_type_base_type): Remove declaration.
1227 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1228 fixed_point_type_base_type. Adjust implementation accordingly.
1230 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1232 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1234 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1235 (TYPE_FIXED_POINT_INFO): Delete macro.
1236 (allocate_fixed_point_type_info): Change return type to void.
1237 * gdbtypes.c (copy_type_recursive): Replace the use of
1238 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1239 (fixed_point_scaling_factor): Likewise.
1240 (allocate_fixed_point_type_info): Change return type to void.
1241 Adjust implementation accordingly.
1242 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1243 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1245 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1247 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1248 into one single gdb::array_view parameter.
1249 (gdb_mpz::write): Likewise.
1250 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1251 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1252 into one single gdb::array_view parameter.
1253 Adjust implementation accordingly.
1254 (gdb_mpz::write): Likewise.
1255 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1256 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1257 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1259 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1261 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1262 Change return type to std::string. Update all callers.
1263 * gmp-utils.c (gmp_string_printf): Likewise.
1265 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1267 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1268 instead of mpq_set_ui to initialize our GMP rational.
1270 2020-11-23 Tom de Vries <tdevries@suse.de>
1272 * debuginfod-support.c (debuginfod_source_query)
1273 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1275 2020-11-21 Tom Tromey <tom@tromey.com>
1277 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1279 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1281 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1283 (gdb_mpz_write_all_from_small): Likewise.
1285 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1287 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1290 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1292 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1293 ctf_arc_open_by_name.
1295 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1297 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1298 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1300 2020-11-20 Pedro Alves <pedro@palves.net>
1302 * language.c (language_arch_info::lookup_primitive_type): Use
1303 gdb::function_view instead of gdb::function.
1304 (template language_lookup_primitive_type): Rename to ...
1305 (language_lookup_primitive_type_1): ... this, and make static.
1306 (language_lookup_primitive_type(const struct language_defn *,
1307 struct gdbarch *, const char *): Make non-template.
1308 (language_lookup_primitive_type(const struct language_defn *,
1309 struct gdbarch *, std::function<bool (struct type *)>): Make
1310 non-template and use gdb::function_view.
1311 * language.h (language_arch_info::lookup_primitive_type): Use
1312 gdb::function_view instead of std::function.
1313 (language_lookup_primitive_type): No longer template.
1314 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1315 lambda instead of a std::function.
1317 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1320 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1323 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1325 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1327 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1329 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1330 in `loop_cb` parameter.
1331 * gdbarch.c: Re-generate.
1332 * gdbarch.h: Re-generate.
1333 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1335 * arch-utils.h (default_read_core_file_mappings): Likewise.
1336 * corelow.c (core_target::build_file_mappings): Likewise.
1337 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1338 (linux_core_info_proc_mappings): Likewise.
1340 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1342 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1343 * NEWS: Mention new options.
1344 * f-array-walker.h: New file.
1345 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1346 (repack_array_slices): New static global.
1347 (show_repack_array_slices): New function.
1348 (fortran_array_slicing_debug): New static global.
1349 (show_fortran_array_slicing_debug): New function.
1350 (value_f90_subarray): Delete.
1351 (skip_undetermined_arglist): Delete.
1352 (class fortran_array_repacker_base_impl): New class.
1353 (class fortran_lazy_array_repacker_impl): New class.
1354 (class fortran_array_repacker_impl): New class.
1355 (fortran_value_subarray): Complete rewrite.
1356 (set_fortran_list): New static global.
1357 (show_fortran_list): Likewise.
1358 (_initialize_f_language): Register new commands.
1359 (fortran_adjust_dynamic_array_base_address_hack): New function.
1360 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1362 * f-valprint.c: Include 'f-array-walker.h'.
1363 (class fortran_array_printer_impl): New class.
1364 (f77_print_array_1): Delete.
1365 (f77_print_array): Delete.
1366 (fortran_print_array): New.
1367 (f_value_print_inner): Update to call fortran_print_array.
1368 * gdbtypes.c: Include 'f-lang.h'.
1369 (resolve_dynamic_type_internal): Call
1370 fortran_adjust_dynamic_array_base_address_hack.
1372 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1374 * breakpoint.c (struct watch_options): New struct.
1375 (watch_option_defs): New static global.
1376 (make_watch_options_def_group): New function.
1377 (watch_maybe_just_location): Convert option parsing.
1378 (watch_command_completer): New function.
1379 (_initialize_breakpoint): Build help text using options mechanism.
1381 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1383 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1384 (watch_command_1): Update parameter types. Convert locals to
1386 (watch_command_wrapper): Change parameter type.
1387 (watch_maybe_just_location): Change locals to bool.
1388 (rwatch_command_wrapper): Update parameter type.
1389 (awatch_command_wrapper): Update parameter type.
1390 * breakpoint.h (watch_command_wrapper): Change parameter type.
1391 (rwatch_command_wrapper): Update parameter type.
1392 (awatch_command_wrapper): Update parameter type.
1393 * eval.c (fetch_subexp_value): Change parameter type.
1394 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1396 * value.h (fetch_subexp_value): Change parameter type in
1399 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1401 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1404 2020-11-18 Keith Seitz <keiths@redhat.com>
1406 * linux-tdep.c (dump_note_entry_p): Return true instead of
1407 checking `filename'.
1409 2020-11-18 Tom de Vries <tdevries@suse.de>
1411 * debuginfod-support.c (debuginfod_source_query)
1412 (debuginfod_debuginfo_query): Also do early exit if
1413 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1415 2020-11-18 Tom de Vries <tdevries@suse.de>
1417 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1420 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1422 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1423 callers. Move doc here.
1424 * gdbtypes.c (get_array_bounds): Return bool
1426 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1428 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1430 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1431 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1432 case to the default.
1434 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1436 * printcmd.c: Include 'safe-ctype.c'.
1437 (skip_over_slash_fmt): New function.
1438 (print_command_completer): Call skip_over_slash_fmt.
1439 (display_and_x_command_completer): New function.
1440 (_initialize_printcmd): Add command completion for 'x' and
1443 2020-11-16 Pedro Alves <pedro@palves.net>
1445 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1446 (get_prev_frame_always_1): ... to here.
1447 * inline-frame.c (inline_frame_this_id): Mention
1448 get_prev_frame_always_1 in comment.
1450 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1452 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1454 (value_less): Add fixed-point handling.
1456 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1458 * eval.c (binop_promote): Add fixed-point type handling.
1459 * valarith.c (fixed_point_binop): New function.
1460 (scalar_binop): Add fixed-point type handling.
1461 (value_neg): Add fixed-point type handling.
1462 * valops.c (value_cast_to_fixed_point): New function.
1463 (value_cast): Add fixed-point type handling.
1465 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1467 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1469 * c-typeprint.c (c_type_print_varspec_prefix)
1470 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1471 TYPE_CODE_FIXED_POINT handling.
1472 * p-typeprint.c (pascal_type_print_varspec_prefix)
1473 (pascal_type_print_varspec_suffix): Likewise.
1474 * typeprint.c (print_type_fixed_point): New function.
1475 * typeprint.h (print_type_fixed_point): Add declaration.
1477 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1479 * printcmd.c (print_scalar_formatted): Add fixed-point type
1480 handling when options->format is set.
1482 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1484 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1485 * dwarf2/read.c (get_dwarf2_rational_constant)
1486 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1487 (has_zero_over_zero_small_attribute): New functions.
1488 read_base_type, set_die_type): Add fixed-point type handling.
1489 * gdb-gdb.py.in: Add fixed-point type handling.
1490 * gdbtypes.c: #include "gmp-utils.h".
1491 (create_range_type, set_type_code): Add fixed-point type handling.
1492 (init_fixed_point_type): New function.
1493 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1494 (print_fixed_point_type_info): New function.
1495 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1497 (fixed_point_type_storage): New typedef.
1498 (fixed_point_objfile_key): New static global.
1499 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1500 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1502 * gdbtypes.h: #include "gmp-utils.h".
1503 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1504 (union type_specific) <fixed_point_info>: New field.
1505 (struct fixed_point_type_info): New struct.
1506 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1507 (init_fixed_point_type, is_fixed_point_type)
1508 (fixed_point_type_base_type, fixed_point_scaling_factor)
1509 (allocate_fixed_point_type_info): Add declarations.
1510 * valprint.c (generic_val_print_fixed_point): New function.
1511 (generic_value_print): Add fixed-point type handling.
1512 * value.c (value_as_address, unpack_long): Add fixed-point type
1515 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1517 * utils.h (uinteger_pow): Add declaration.
1518 * utils.c (uinteger_pow): Moved here (without changes)...
1519 * valarith.c (uinteger_pow): ... from here.
1521 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1523 * gmp-utils.h, gmp-utils.c: New file.
1524 * unittests/gmp-utils-selftests.c: New file.
1525 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1526 unittests/gmp-utils-selftests.c.
1527 (COMMON_SFILES) Add gmp-utils.c.
1528 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1530 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1532 * configure.ac: Generate an error if a usable GMP library
1534 * configure: Regenerate.
1536 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1538 * configure.ac: Add support for --with-libgmp-prefix.
1539 * Makefile.in (LIBGMP): New variable.
1540 (CLIBS): Include $(LIBGMP).
1541 * configure, config.in: Regenerate
1543 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1546 * f-exp.y (COMPLETE): New token.
1547 (exp): Two new rules for tab-completion.
1548 (saw_name_at_eof): New static global.
1549 (last_was_structop): Likewise.
1550 (yylex): Set new variables, and return COMPLETE token at the end
1551 of the input stream in some cases.
1553 2020-11-14 Tom Tromey <tom@tromey.com>
1555 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1557 2020-11-14 Tom Tromey <tom@tromey.com>
1559 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1561 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1563 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1565 2020-11-13 Tom Tromey <tom@tromey.com>
1567 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1568 (convert_escape, parse_one_string): Constify.
1570 2020-11-13 Keith Seitz <keiths@redhat.com>
1572 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1573 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1574 outside of ELF segments" warning for debugin
1576 2020-11-13 Keith Seitz <keiths@redhat.com>
1579 * elfread.c (elf_symfile_segments): Output a BFD file name
1580 for the "Loadable section ... outside of ELF segments" warning.
1582 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1585 * arm-tdep.c (class arm_instruction_reader): New.
1586 (target_arm_instruction_reader): New.
1587 (arm_analyze_prologue): Add instruction reader parameter and use
1588 it. Use arm_expand_immediate.
1589 (class target_arm_instruction_reader): Adjust.
1590 (arm_skip_prologue): Adjust.
1591 (arm_expand_immediate): New.
1592 (arm_scan_prologue): Adjust.
1593 (arm_analyze_prologue_test): New.
1594 (class test_arm_instruction_reader): New.
1596 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1598 * f-lang.c (fortran_argument_convert): Add declaration. Add
1599 header comment, taken from f-lang.h. Make static.
1600 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1601 (fortran_argument_convert): Delete declaration.
1603 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1605 * ada-exp.y (find_primitive_type): Make parameter const.
1606 * ada-lang.c (enum ada_primitive_types): Delete.
1607 (ada_language::language_arch_info): Update.
1608 * c-lang.c (enum c_primitive_types): Delete.
1609 (c_language_arch_info): Update.
1610 (enum cplus_primitive_types): Delete.
1611 (cplus_language::language_arch_info): Update.
1612 * d-lang.c (enum d_primitive_types): Delete.
1613 (d_language::language_arch_info): Update.
1614 * f-lang.c (enum f_primitive_types): Delete.
1615 (f_language::language_arch_info): Update.
1616 * go-lang.c (enum go_primitive_types): Delete.
1617 (go_language::language_arch_info): Update.
1618 * language.c (auto_or_unknown_language::language_arch_info):
1620 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1621 (language_string_char_type): Add header comment, call function in
1623 (language_bool_type): Likewise
1624 (language_arch_info::bool_type): Define.
1625 (language_lookup_primitive_type_1): Delete.
1626 (language_lookup_primitive_type): Rewrite as a templated function
1627 to call function in language_arch_info, then instantiate twice.
1628 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1629 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1630 (language_arch_info::lookup_primitive_type): Define twice with
1631 different signatures.
1632 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1633 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1634 member function in language_arch_info.
1635 * language.h (language_arch_info): Complete rewrite.
1636 (language_lookup_primitive_type): Make templated.
1637 * m2-lang.c (enum m2_primitive_types): Delete.
1638 (m2_language::language_arch_info): Update.
1639 * opencl-lang.c (OCL_P_TYPE): Delete.
1640 (enum opencl_primitive_types): Delete.
1641 (opencl_type_data): Delete.
1642 (builtin_opencl_type): Delete.
1643 (lookup_opencl_vector_type): Update.
1644 (opencl_language::language_arch_info): Update, lots of content
1646 (build_opencl_types): ...here. This function is now deleted.
1647 (_initialize_opencl_language): Delete.
1648 * p-lang.c (enum pascal_primitive_types): Delete.
1649 (pascal_language::language_arch_info): Update.
1650 * rust-lang.c (enum rust_primitive_types): Delete.
1651 (rust_language::language_arch_info): Update.
1653 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1655 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1658 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1660 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1663 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1665 * dwarf2/read.c (dwarf_read_debug_printf,
1666 dwarf_read_debug_printf_v): New macros, use throughout the file.
1668 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1671 * arc-linux-tdep.c (collect_register): Populate "eret" by
1672 "pc" value from the regcache when asked for "pc" value.
1674 2020-11-12 Tom Tromey <tom@tromey.com>
1677 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1680 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1682 * features/Makefile (XMLTOC): Add rx.xml.
1683 (FEATURE_XMLFILES): Remove rx.xml.
1684 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1685 * features/rx.c: Regenerate.
1686 * features/rx.xml: Wrap in `target` tags, and reindent.
1687 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1689 (maint_print_c_tdesc_opt_def): New typedef.
1690 (maint_print_c_tdesc_opt_defs): New static global.
1691 (make_maint_print_c_tdesc_options_def_group): New function.
1692 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1693 print single feature C file for target descriptions containing a
1695 (maint_print_c_tdesc_cmd_completer): New function.
1696 (_initialize_target_descriptions): Update call to register command
1697 completer, and include command line flag in help text.
1699 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1701 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1703 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1706 2020-11-10 Tom Tromey <tom@tromey.com>
1708 * value.h (internalvar_name): Update.
1709 * value.c (internalvar_name): Make return type const.
1711 2020-11-10 Tom Tromey <tom@tromey.com>
1713 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1714 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1717 2020-11-10 Tom Tromey <tom@tromey.com>
1719 * objc-lang.h (value_nsstring): Update.
1720 * objc-lang.c (value_nsstring): Make "ptr" const.
1722 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1724 * expprint.c (print_subexp_funcall): Increment expression position
1725 after reading argument count.
1726 * f-lang.c (print_subexp_f): Skip over opcode before calling
1728 (dump_subexp_body_f): Likewise.
1730 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1733 * configure: Regenerate.
1734 * configure.ac: Check for python modules ctypes instead of
1737 2020-11-06 Pedro Alves <pedro@palves.net>
1739 * macroexp.c (struct macro_buffer): Split in two classes. Add
1741 (struct shared_macro_buffer): New, factored out from struct
1743 (struct growable_macro_buffer): New, factored out from struct
1745 (set_token, get_comment, get_identifier, get_pp_number)
1746 (get_character_constant, get_string_literal, get_punctuator)
1747 (get_next_token_for_substitution): Constify parameters.
1748 (substitute_args): Constify locals.
1750 2020-11-05 Tom Tromey <tom@tromey.com>
1752 * dwarf2/read.c (read_cutu_die_from_dwo)
1753 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1754 (build_type_psymtabs_1): Update.
1755 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1757 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1758 Don't read section. Add assert.
1760 2020-11-04 Tom Tromey <tromey@adacore.com>
1762 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1764 2020-11-04 Tom Tromey <tromey@adacore.com>
1766 * ada-typeprint.c (ada_print_type): Handle __T types.
1768 2020-11-04 Tom Tromey <tromey@adacore.com>
1770 * dwarf2/read.c (add_partial_symbol, process_die):
1771 Handle DW_TAG_array_type.
1772 (is_type_tag_for_partial): Add "lang" parameter.
1773 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1775 2020-11-04 Tom Tromey <tromey@adacore.com>
1777 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1779 2020-11-04 Tom Tromey <tromey@adacore.com>
1781 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1784 2020-11-04 Tom Tromey <tromey@adacore.com>
1786 * gdbtypes.c (update_static_array_size): Handle bit stride.
1788 2020-11-04 Tom Tromey <tromey@adacore.com>
1790 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1792 2020-11-04 Tom Tromey <tromey@adacore.com>
1794 * ada-lang.c (ada_is_any_packed_array_type): New function.
1795 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1797 2020-11-04 Tom Tromey <tromey@adacore.com>
1799 * dwarf2/read.c (recognize_bound_expression)
1800 (quirk_ada_thick_pointer): New functions.
1801 (read_array_type): Call quirk_ada_thick_pointer.
1802 (set_die_type): Add "skip_data_location" parameter.
1803 (quirk_ada_thick_pointer): New function.
1804 (process_structure_scope): Call quirk_ada_thick_pointer.
1805 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1806 (decode_packed_array_bitsize): Handle thick pointers without
1808 (ada_is_gnat_encoded_packed_array_type): Rename from
1809 ada_is_packed_array_type.
1810 (ada_is_constrained_packed_array_type): Update.
1811 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1812 (ada_value_print_1): Use ada_get_decoded_value.
1814 2020-11-04 Tom Tromey <tromey@adacore.com>
1816 * ada-lang.c (recursively_update_array_bitsize): New function.
1817 (decode_constrained_packed_array_type): Call it.
1819 2020-11-04 Tom Tromey <tromey@adacore.com>
1821 * ada-lang.c (to_fixed_array_type): Error if
1822 decode_constrained_packed_array_type returns NULL.
1824 2020-11-04 Tom Tromey <tromey@adacore.com>
1826 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1828 2020-11-02 Tom Tromey <tromey@adacore.com>
1830 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1831 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1832 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1833 * amd64-ravenscar-thread.c: New file.
1834 * amd64-ravenscar-thread.h: New file.
1835 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1836 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1838 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1840 * main.c (execute_cmdargs): New function.
1841 (captured_main_1): Make use of execute_cmdargs.
1843 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1845 * NEWS: Mention changes to config file search path.
1848 2020-11-02 Tom Tromey <tromey@adacore.com>
1850 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1851 (python_GdbModuleDef): Move earlier. Now static.
1852 (do_start_initialization): Consolidate some IS_PY3K blocks.
1854 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1856 * aarch64-linux-tdep.c: Fix indentation.
1857 * aarch64-ravenscar-thread.c: Fix indentation.
1858 * aarch64-tdep.c: Fix indentation.
1859 * aarch64-tdep.h: Fix indentation.
1860 * ada-lang.c: Fix indentation.
1861 * ada-lang.h: Fix indentation.
1862 * ada-tasks.c: Fix indentation.
1863 * ada-typeprint.c: Fix indentation.
1864 * ada-valprint.c: Fix indentation.
1865 * ada-varobj.c: Fix indentation.
1866 * addrmap.c: Fix indentation.
1867 * addrmap.h: Fix indentation.
1868 * agent.c: Fix indentation.
1869 * aix-thread.c: Fix indentation.
1870 * alpha-bsd-nat.c: Fix indentation.
1871 * alpha-linux-tdep.c: Fix indentation.
1872 * alpha-mdebug-tdep.c: Fix indentation.
1873 * alpha-nbsd-tdep.c: Fix indentation.
1874 * alpha-obsd-tdep.c: Fix indentation.
1875 * alpha-tdep.c: Fix indentation.
1876 * amd64-bsd-nat.c: Fix indentation.
1877 * amd64-darwin-tdep.c: Fix indentation.
1878 * amd64-linux-nat.c: Fix indentation.
1879 * amd64-linux-tdep.c: Fix indentation.
1880 * amd64-nat.c: Fix indentation.
1881 * amd64-obsd-tdep.c: Fix indentation.
1882 * amd64-tdep.c: Fix indentation.
1883 * amd64-windows-tdep.c: Fix indentation.
1884 * annotate.c: Fix indentation.
1885 * arc-tdep.c: Fix indentation.
1886 * arch-utils.c: Fix indentation.
1887 * arch/arm-get-next-pcs.c: Fix indentation.
1888 * arch/arm.c: Fix indentation.
1889 * arm-linux-nat.c: Fix indentation.
1890 * arm-linux-tdep.c: Fix indentation.
1891 * arm-nbsd-tdep.c: Fix indentation.
1892 * arm-pikeos-tdep.c: Fix indentation.
1893 * arm-tdep.c: Fix indentation.
1894 * arm-tdep.h: Fix indentation.
1895 * arm-wince-tdep.c: Fix indentation.
1896 * auto-load.c: Fix indentation.
1897 * auxv.c: Fix indentation.
1898 * avr-tdep.c: Fix indentation.
1899 * ax-gdb.c: Fix indentation.
1900 * ax-general.c: Fix indentation.
1901 * bfin-linux-tdep.c: Fix indentation.
1902 * block.c: Fix indentation.
1903 * block.h: Fix indentation.
1904 * blockframe.c: Fix indentation.
1905 * bpf-tdep.c: Fix indentation.
1906 * break-catch-sig.c: Fix indentation.
1907 * break-catch-syscall.c: Fix indentation.
1908 * break-catch-throw.c: Fix indentation.
1909 * breakpoint.c: Fix indentation.
1910 * breakpoint.h: Fix indentation.
1911 * bsd-uthread.c: Fix indentation.
1912 * btrace.c: Fix indentation.
1913 * build-id.c: Fix indentation.
1914 * buildsym-legacy.h: Fix indentation.
1915 * buildsym.c: Fix indentation.
1916 * c-typeprint.c: Fix indentation.
1917 * c-valprint.c: Fix indentation.
1918 * c-varobj.c: Fix indentation.
1919 * charset.c: Fix indentation.
1920 * cli/cli-cmds.c: Fix indentation.
1921 * cli/cli-decode.c: Fix indentation.
1922 * cli/cli-decode.h: Fix indentation.
1923 * cli/cli-script.c: Fix indentation.
1924 * cli/cli-setshow.c: Fix indentation.
1925 * coff-pe-read.c: Fix indentation.
1926 * coffread.c: Fix indentation.
1927 * compile/compile-cplus-types.c: Fix indentation.
1928 * compile/compile-object-load.c: Fix indentation.
1929 * compile/compile-object-run.c: Fix indentation.
1930 * completer.c: Fix indentation.
1931 * corefile.c: Fix indentation.
1932 * corelow.c: Fix indentation.
1933 * cp-abi.h: Fix indentation.
1934 * cp-namespace.c: Fix indentation.
1935 * cp-support.c: Fix indentation.
1936 * cp-valprint.c: Fix indentation.
1937 * cris-linux-tdep.c: Fix indentation.
1938 * cris-tdep.c: Fix indentation.
1939 * darwin-nat-info.c: Fix indentation.
1940 * darwin-nat.c: Fix indentation.
1941 * darwin-nat.h: Fix indentation.
1942 * dbxread.c: Fix indentation.
1943 * dcache.c: Fix indentation.
1944 * disasm.c: Fix indentation.
1945 * dtrace-probe.c: Fix indentation.
1946 * dwarf2/abbrev.c: Fix indentation.
1947 * dwarf2/attribute.c: Fix indentation.
1948 * dwarf2/expr.c: Fix indentation.
1949 * dwarf2/frame.c: Fix indentation.
1950 * dwarf2/index-cache.c: Fix indentation.
1951 * dwarf2/index-write.c: Fix indentation.
1952 * dwarf2/line-header.c: Fix indentation.
1953 * dwarf2/loc.c: Fix indentation.
1954 * dwarf2/macro.c: Fix indentation.
1955 * dwarf2/read.c: Fix indentation.
1956 * dwarf2/read.h: Fix indentation.
1957 * elfread.c: Fix indentation.
1958 * eval.c: Fix indentation.
1959 * event-top.c: Fix indentation.
1960 * exec.c: Fix indentation.
1961 * exec.h: Fix indentation.
1962 * expprint.c: Fix indentation.
1963 * f-lang.c: Fix indentation.
1964 * f-typeprint.c: Fix indentation.
1965 * f-valprint.c: Fix indentation.
1966 * fbsd-nat.c: Fix indentation.
1967 * fbsd-tdep.c: Fix indentation.
1968 * findvar.c: Fix indentation.
1969 * fork-child.c: Fix indentation.
1970 * frame-unwind.c: Fix indentation.
1971 * frame-unwind.h: Fix indentation.
1972 * frame.c: Fix indentation.
1973 * frv-linux-tdep.c: Fix indentation.
1974 * frv-tdep.c: Fix indentation.
1975 * frv-tdep.h: Fix indentation.
1976 * ft32-tdep.c: Fix indentation.
1977 * gcore.c: Fix indentation.
1978 * gdb_bfd.c: Fix indentation.
1979 * gdbarch.sh: Fix indentation.
1980 * gdbarch.c: Re-generate
1981 * gdbarch.h: Re-generate.
1982 * gdbcore.h: Fix indentation.
1983 * gdbthread.h: Fix indentation.
1984 * gdbtypes.c: Fix indentation.
1985 * gdbtypes.h: Fix indentation.
1986 * glibc-tdep.c: Fix indentation.
1987 * gnu-nat.c: Fix indentation.
1988 * gnu-nat.h: Fix indentation.
1989 * gnu-v2-abi.c: Fix indentation.
1990 * gnu-v3-abi.c: Fix indentation.
1991 * go32-nat.c: Fix indentation.
1992 * guile/guile-internal.h: Fix indentation.
1993 * guile/scm-cmd.c: Fix indentation.
1994 * guile/scm-frame.c: Fix indentation.
1995 * guile/scm-iterator.c: Fix indentation.
1996 * guile/scm-math.c: Fix indentation.
1997 * guile/scm-ports.c: Fix indentation.
1998 * guile/scm-pretty-print.c: Fix indentation.
1999 * guile/scm-value.c: Fix indentation.
2000 * h8300-tdep.c: Fix indentation.
2001 * hppa-linux-nat.c: Fix indentation.
2002 * hppa-linux-tdep.c: Fix indentation.
2003 * hppa-nbsd-nat.c: Fix indentation.
2004 * hppa-nbsd-tdep.c: Fix indentation.
2005 * hppa-obsd-nat.c: Fix indentation.
2006 * hppa-tdep.c: Fix indentation.
2007 * hppa-tdep.h: Fix indentation.
2008 * i386-bsd-nat.c: Fix indentation.
2009 * i386-darwin-nat.c: Fix indentation.
2010 * i386-darwin-tdep.c: Fix indentation.
2011 * i386-dicos-tdep.c: Fix indentation.
2012 * i386-gnu-nat.c: Fix indentation.
2013 * i386-linux-nat.c: Fix indentation.
2014 * i386-linux-tdep.c: Fix indentation.
2015 * i386-nto-tdep.c: Fix indentation.
2016 * i386-obsd-tdep.c: Fix indentation.
2017 * i386-sol2-nat.c: Fix indentation.
2018 * i386-tdep.c: Fix indentation.
2019 * i386-tdep.h: Fix indentation.
2020 * i386-windows-tdep.c: Fix indentation.
2021 * i387-tdep.c: Fix indentation.
2022 * i387-tdep.h: Fix indentation.
2023 * ia64-libunwind-tdep.c: Fix indentation.
2024 * ia64-libunwind-tdep.h: Fix indentation.
2025 * ia64-linux-nat.c: Fix indentation.
2026 * ia64-linux-tdep.c: Fix indentation.
2027 * ia64-tdep.c: Fix indentation.
2028 * ia64-tdep.h: Fix indentation.
2029 * ia64-vms-tdep.c: Fix indentation.
2030 * infcall.c: Fix indentation.
2031 * infcmd.c: Fix indentation.
2032 * inferior.c: Fix indentation.
2033 * infrun.c: Fix indentation.
2034 * iq2000-tdep.c: Fix indentation.
2035 * language.c: Fix indentation.
2036 * linespec.c: Fix indentation.
2037 * linux-fork.c: Fix indentation.
2038 * linux-nat.c: Fix indentation.
2039 * linux-tdep.c: Fix indentation.
2040 * linux-thread-db.c: Fix indentation.
2041 * lm32-tdep.c: Fix indentation.
2042 * m2-lang.c: Fix indentation.
2043 * m2-typeprint.c: Fix indentation.
2044 * m2-valprint.c: Fix indentation.
2045 * m32c-tdep.c: Fix indentation.
2046 * m32r-linux-tdep.c: Fix indentation.
2047 * m32r-tdep.c: Fix indentation.
2048 * m68hc11-tdep.c: Fix indentation.
2049 * m68k-bsd-nat.c: Fix indentation.
2050 * m68k-linux-nat.c: Fix indentation.
2051 * m68k-linux-tdep.c: Fix indentation.
2052 * m68k-tdep.c: Fix indentation.
2053 * machoread.c: Fix indentation.
2054 * macrocmd.c: Fix indentation.
2055 * macroexp.c: Fix indentation.
2056 * macroscope.c: Fix indentation.
2057 * macrotab.c: Fix indentation.
2058 * macrotab.h: Fix indentation.
2059 * main.c: Fix indentation.
2060 * mdebugread.c: Fix indentation.
2061 * mep-tdep.c: Fix indentation.
2062 * mi/mi-cmd-catch.c: Fix indentation.
2063 * mi/mi-cmd-disas.c: Fix indentation.
2064 * mi/mi-cmd-env.c: Fix indentation.
2065 * mi/mi-cmd-stack.c: Fix indentation.
2066 * mi/mi-cmd-var.c: Fix indentation.
2067 * mi/mi-cmds.c: Fix indentation.
2068 * mi/mi-main.c: Fix indentation.
2069 * mi/mi-parse.c: Fix indentation.
2070 * microblaze-tdep.c: Fix indentation.
2071 * minidebug.c: Fix indentation.
2072 * minsyms.c: Fix indentation.
2073 * mips-linux-nat.c: Fix indentation.
2074 * mips-linux-tdep.c: Fix indentation.
2075 * mips-nbsd-tdep.c: Fix indentation.
2076 * mips-tdep.c: Fix indentation.
2077 * mn10300-linux-tdep.c: Fix indentation.
2078 * mn10300-tdep.c: Fix indentation.
2079 * moxie-tdep.c: Fix indentation.
2080 * msp430-tdep.c: Fix indentation.
2081 * namespace.h: Fix indentation.
2082 * nat/fork-inferior.c: Fix indentation.
2083 * nat/gdb_ptrace.h: Fix indentation.
2084 * nat/linux-namespaces.c: Fix indentation.
2085 * nat/linux-osdata.c: Fix indentation.
2086 * nat/netbsd-nat.c: Fix indentation.
2087 * nat/x86-dregs.c: Fix indentation.
2088 * nbsd-nat.c: Fix indentation.
2089 * nbsd-tdep.c: Fix indentation.
2090 * nios2-linux-tdep.c: Fix indentation.
2091 * nios2-tdep.c: Fix indentation.
2092 * nto-procfs.c: Fix indentation.
2093 * nto-tdep.c: Fix indentation.
2094 * objfiles.c: Fix indentation.
2095 * objfiles.h: Fix indentation.
2096 * opencl-lang.c: Fix indentation.
2097 * or1k-tdep.c: Fix indentation.
2098 * osabi.c: Fix indentation.
2099 * osabi.h: Fix indentation.
2100 * osdata.c: Fix indentation.
2101 * p-lang.c: Fix indentation.
2102 * p-typeprint.c: Fix indentation.
2103 * p-valprint.c: Fix indentation.
2104 * parse.c: Fix indentation.
2105 * ppc-linux-nat.c: Fix indentation.
2106 * ppc-linux-tdep.c: Fix indentation.
2107 * ppc-nbsd-nat.c: Fix indentation.
2108 * ppc-nbsd-tdep.c: Fix indentation.
2109 * ppc-obsd-nat.c: Fix indentation.
2110 * ppc-ravenscar-thread.c: Fix indentation.
2111 * ppc-sysv-tdep.c: Fix indentation.
2112 * ppc64-tdep.c: Fix indentation.
2113 * printcmd.c: Fix indentation.
2114 * proc-api.c: Fix indentation.
2115 * producer.c: Fix indentation.
2116 * producer.h: Fix indentation.
2117 * prologue-value.c: Fix indentation.
2118 * prologue-value.h: Fix indentation.
2119 * psymtab.c: Fix indentation.
2120 * python/py-arch.c: Fix indentation.
2121 * python/py-bpevent.c: Fix indentation.
2122 * python/py-event.c: Fix indentation.
2123 * python/py-event.h: Fix indentation.
2124 * python/py-finishbreakpoint.c: Fix indentation.
2125 * python/py-frame.c: Fix indentation.
2126 * python/py-framefilter.c: Fix indentation.
2127 * python/py-inferior.c: Fix indentation.
2128 * python/py-infthread.c: Fix indentation.
2129 * python/py-objfile.c: Fix indentation.
2130 * python/py-prettyprint.c: Fix indentation.
2131 * python/py-registers.c: Fix indentation.
2132 * python/py-signalevent.c: Fix indentation.
2133 * python/py-stopevent.c: Fix indentation.
2134 * python/py-stopevent.h: Fix indentation.
2135 * python/py-threadevent.c: Fix indentation.
2136 * python/py-tui.c: Fix indentation.
2137 * python/py-unwind.c: Fix indentation.
2138 * python/py-value.c: Fix indentation.
2139 * python/py-xmethods.c: Fix indentation.
2140 * python/python-internal.h: Fix indentation.
2141 * python/python.c: Fix indentation.
2142 * ravenscar-thread.c: Fix indentation.
2143 * record-btrace.c: Fix indentation.
2144 * record-full.c: Fix indentation.
2145 * record.c: Fix indentation.
2146 * reggroups.c: Fix indentation.
2147 * regset.h: Fix indentation.
2148 * remote-fileio.c: Fix indentation.
2149 * remote.c: Fix indentation.
2150 * reverse.c: Fix indentation.
2151 * riscv-linux-tdep.c: Fix indentation.
2152 * riscv-ravenscar-thread.c: Fix indentation.
2153 * riscv-tdep.c: Fix indentation.
2154 * rl78-tdep.c: Fix indentation.
2155 * rs6000-aix-tdep.c: Fix indentation.
2156 * rs6000-lynx178-tdep.c: Fix indentation.
2157 * rs6000-nat.c: Fix indentation.
2158 * rs6000-tdep.c: Fix indentation.
2159 * rust-lang.c: Fix indentation.
2160 * rx-tdep.c: Fix indentation.
2161 * s12z-tdep.c: Fix indentation.
2162 * s390-linux-tdep.c: Fix indentation.
2163 * score-tdep.c: Fix indentation.
2164 * ser-base.c: Fix indentation.
2165 * ser-mingw.c: Fix indentation.
2166 * ser-uds.c: Fix indentation.
2167 * ser-unix.c: Fix indentation.
2168 * serial.c: Fix indentation.
2169 * sh-linux-tdep.c: Fix indentation.
2170 * sh-nbsd-tdep.c: Fix indentation.
2171 * sh-tdep.c: Fix indentation.
2172 * skip.c: Fix indentation.
2173 * sol-thread.c: Fix indentation.
2174 * solib-aix.c: Fix indentation.
2175 * solib-darwin.c: Fix indentation.
2176 * solib-frv.c: Fix indentation.
2177 * solib-svr4.c: Fix indentation.
2178 * solib.c: Fix indentation.
2179 * source.c: Fix indentation.
2180 * sparc-linux-tdep.c: Fix indentation.
2181 * sparc-nbsd-tdep.c: Fix indentation.
2182 * sparc-obsd-tdep.c: Fix indentation.
2183 * sparc-ravenscar-thread.c: Fix indentation.
2184 * sparc-tdep.c: Fix indentation.
2185 * sparc64-linux-tdep.c: Fix indentation.
2186 * sparc64-nbsd-tdep.c: Fix indentation.
2187 * sparc64-obsd-tdep.c: Fix indentation.
2188 * sparc64-tdep.c: Fix indentation.
2189 * stabsread.c: Fix indentation.
2190 * stack.c: Fix indentation.
2191 * stap-probe.c: Fix indentation.
2192 * stubs/ia64vms-stub.c: Fix indentation.
2193 * stubs/m32r-stub.c: Fix indentation.
2194 * stubs/m68k-stub.c: Fix indentation.
2195 * stubs/sh-stub.c: Fix indentation.
2196 * stubs/sparc-stub.c: Fix indentation.
2197 * symfile-mem.c: Fix indentation.
2198 * symfile.c: Fix indentation.
2199 * symfile.h: Fix indentation.
2200 * symmisc.c: Fix indentation.
2201 * symtab.c: Fix indentation.
2202 * symtab.h: Fix indentation.
2203 * target-float.c: Fix indentation.
2204 * target.c: Fix indentation.
2205 * target.h: Fix indentation.
2206 * tic6x-tdep.c: Fix indentation.
2207 * tilegx-linux-tdep.c: Fix indentation.
2208 * tilegx-tdep.c: Fix indentation.
2209 * top.c: Fix indentation.
2210 * tracefile-tfile.c: Fix indentation.
2211 * tracepoint.c: Fix indentation.
2212 * tui/tui-disasm.c: Fix indentation.
2213 * tui/tui-io.c: Fix indentation.
2214 * tui/tui-regs.c: Fix indentation.
2215 * tui/tui-stack.c: Fix indentation.
2216 * tui/tui-win.c: Fix indentation.
2217 * tui/tui-winsource.c: Fix indentation.
2218 * tui/tui.c: Fix indentation.
2219 * typeprint.c: Fix indentation.
2220 * ui-out.h: Fix indentation.
2221 * unittests/copy_bitwise-selftests.c: Fix indentation.
2222 * unittests/memory-map-selftests.c: Fix indentation.
2223 * utils.c: Fix indentation.
2224 * v850-tdep.c: Fix indentation.
2225 * valarith.c: Fix indentation.
2226 * valops.c: Fix indentation.
2227 * valprint.c: Fix indentation.
2228 * valprint.h: Fix indentation.
2229 * value.c: Fix indentation.
2230 * value.h: Fix indentation.
2231 * varobj.c: Fix indentation.
2232 * vax-tdep.c: Fix indentation.
2233 * windows-nat.c: Fix indentation.
2234 * windows-tdep.c: Fix indentation.
2235 * xcoffread.c: Fix indentation.
2236 * xml-syscall.c: Fix indentation.
2237 * xml-tdesc.c: Fix indentation.
2238 * xstormy16-tdep.c: Fix indentation.
2239 * xtensa-config.c: Fix indentation.
2240 * xtensa-linux-nat.c: Fix indentation.
2241 * xtensa-linux-tdep.c: Fix indentation.
2242 * xtensa-tdep.c: Fix indentation.
2244 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2245 Craig Blackmore <craig.blackmore@embecosm.com>
2247 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2248 as an unsigned value.
2250 2020-11-01 Tom Tromey <tom@tromey.com>
2252 * dbxread.c (dbx_end_psymtab): Update.
2253 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2254 (build_type_psymtabs_reader): Update.
2255 * xcoffread.c (xcoff_end_psymtab): Update.
2256 * ctfread.c (scan_partial_symbols): Update.
2257 * psymtab.c (sort_pst_symbols): Remove.
2258 (partial_symtab::end): Rename from end_psymtab_common. Inline
2260 * psympriv.h (struct partial_symtab) <end>: New method.
2261 (end_psymtab_common): Don't declare.
2263 2020-11-01 Tom Tromey <tom@tromey.com>
2265 * symmisc.c (count_psyms): New function.
2266 (print_objfile_statistics): Use it.
2267 * psymtab.c (append_psymbol_to_list): Remove.
2268 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2269 * objfiles.h (struct objstats) <n_psyms>: Remove.
2271 2020-11-01 Tom Tromey <tom@tromey.com>
2273 * dbxread.c (dbx_end_psymtab): Update.
2274 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2275 (build_type_psymtabs_reader): Update.
2276 * xcoffread.c (xcoff_end_psymtab): Update.
2277 * ctfread.c (scan_partial_symbols): Update.
2278 * psympriv.h (end_psymtab_common): Update.
2279 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2280 (sort_pst_symbols): Likewise.
2282 2020-11-01 Tom Tromey <tom@tromey.com>
2284 * dbxread.c (dbx_symfile_read): Update.
2285 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2286 * xcoffread.c (xcoff_initial_scan): Update.
2287 * psympriv.h (init_psymbol_list): Don't declare.
2288 * psymtab.c (init_psymbol_list): Remove.
2290 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2292 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2293 gnat_encoded_fixed_type_info. Update all callers.
2295 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2297 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2300 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2302 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2303 cast_from_fixed. Update all callers.
2304 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2306 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2308 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2310 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2311 to print_gnat_encoded_fixed_point_type.
2312 * ada-valprint.c: Likewise.
2314 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2316 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2317 (debug_prefixed_printf): Add check of debug_displaced flag.
2318 * linux-nat.c (linux_nat_debug_printf): Add check of
2319 debug_linux_nat flag.
2321 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2323 * infrun.c (infrun_debug_printf_1): Remove.
2324 (displaced_debug_printf_1): Remove.
2325 (stop_all_threads): Use debug_prefixed_printf.
2326 * infrun.h (infrun_debug_printf_1): Remove.
2327 (infrun_debug_printf): Use debug_prefixed_printf.
2328 (displaced_debug_printf_1): Remove.
2329 (displaced_debug_printf): Use debug_prefixed_printf.
2330 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2331 (linux_nat_debug_printf): Use debug_prefixed_printf.
2333 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2335 * configure: Re-generate.
2336 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
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 * configure: Re-generate.
2355 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2357 * acinclude.m4: Modernize.
2358 * configure: Re-generate.
2360 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2362 * configure.ac: Modernize.
2363 * configure: Re-generate.
2365 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2367 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2368 * configure: Re-generate.
2369 * configure.ac: Remove AM_PROG_CC_STDC.
2371 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2373 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2374 AC_CANONICAL_SYSTEM.
2375 * configure: Re-generate.
2377 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2379 * infrun.h (displaced_debug_printf): New macro. Replace
2380 displaced debug prints throughout to use it.
2381 (displaced_debug_printf_1): New declaration.
2382 (displaced_step_dump_bytes): Return string, remove ui_file
2383 parameter, update all callers.
2384 * infrun.c (displaced_debug_printf_1): New function.
2385 (displaced_step_dump_bytes): Return string, remove ui_file
2388 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2390 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2392 2020-10-30 Tom Tromey <tromey@adacore.com>
2394 * Makefile.in (stamp-init): Depend on config.status.
2396 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2398 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2400 2020-10-30 Pedro Alves <pedro@palves.net>
2402 * thread.c (lookup_selected_frame): Move ...
2403 * frame.c (lookup_selected_frame): ... here.
2405 2020-10-30 Pedro Alves <pedro@palves.net>
2407 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2409 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2410 Use save_selected_frame. Save language as well.
2411 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2412 Use restore_selected_frame, and restore language as well.
2413 (selected_frame_id, selected_frame_level): New.
2414 (selected_frame): Update comments.
2415 (save_selected_frame, restore_selected_frame): New.
2416 (get_selected_frame): Use lookup_selected_frame.
2417 (get_selected_frame_if_set): Delete.
2418 (select_frame): Record selected_frame_level and selected_frame_id.
2419 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2421 (get_selected_frame): Make 'message' parameter optional.
2422 (get_selected_frame_if_set): Delete declaration.
2423 (select_frame): Update comments.
2424 (save_selected_frame, restore_selected_frame)
2425 (lookup_selected_frame): Declare.
2426 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2427 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2429 (save_infcall_control_state): Use save_selected_frame.
2430 (restore_selected_frame): Delete.
2431 (restore_infcall_control_state): Use restore_selected_frame.
2432 * stack.c (select_frame_command_core, frame_command_core): Use
2434 * thread.c (restore_selected_frame): Rename to ...
2435 (lookup_selected_frame): ... this and make extern. Select the
2436 current frame if the frame level is -1.
2437 (scoped_restore_current_thread::restore): Also restore the
2439 (scoped_restore_current_thread::~scoped_restore_current_thread):
2441 (scoped_restore_current_thread::scoped_restore_current_thread):
2442 Save the language as well. Use save_selected_frame.
2444 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2446 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2448 * gdbarch.h: Re-generate.
2450 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2452 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2454 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2456 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2458 * arch-utils.c (default_displaced_step_hw_singlestep):
2460 * arch-utils.h (default_displaced_step_hw_singlestep):
2462 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2464 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2466 * gdbarch.c: Re-generate.
2467 * gdbarch.h: Re-generate.
2468 * infrun.c (resume_1): Adjust.
2470 2020-10-29 Tom Tromey <tom@tromey.com>
2472 * progspace.c (program_space::~program_space): Don't call
2475 2020-10-29 Tom Tromey <tom@tromey.com>
2477 * exec.c (exec_target::close): Don't change current program
2480 2020-10-29 Tom Tromey <tom@tromey.com>
2482 * symfile.c (add_symbol_file_command): Update.
2483 * exec.c (program_space::add_target_sections): Rename.
2484 * symfile-mem.c (symbol_file_add_from_memory): Update.
2485 * progspace.h (struct program_space) <add_target_sections>:
2486 Declare new overload.
2487 * exec.h (add_target_sections_of_objfile): Don't declare.
2489 2020-10-29 Tom Tromey <tom@tromey.com>
2491 * solib.c (solib_map_sections): Update.
2492 * exec.c (program_space::add_target_sections): Now a method.
2493 (exec_file_attach): Update.
2494 * exec.h (add_target_sections): Don't declare.
2495 * progspace.h (struct program_space) <add_target_sections>:
2498 2020-10-29 Tom Tromey <tom@tromey.com>
2500 * progspace.h (struct program_space) <remove_target_sections>:
2502 * exec.c (program_space::remove_target_sections): Now a method.
2503 * exec.h (remove_target_sections): Don't declare.
2505 2020-10-29 Tom Tromey <tom@tromey.com>
2507 * inferior.c (delete_inferior): Update.
2508 * progspace.c (program_space::empty): Rename from
2509 program_space_empty_p. Return bool.
2510 * progspace.h (struct program_space) <empty>: New method.
2511 (program_space_empty_p): Don't declare.
2513 2020-10-29 Tom Tromey <tom@tromey.com>
2515 * progspace.c (program_space::~program_space): Don't call
2516 clear_program_space_solib_cache.
2517 (program_space::clear_solib_cache): Rename from
2519 * solib.c (handle_solib_event): Update.
2520 * progspace.h (struct program_space) <clear_solib_cache>: New
2522 (clear_program_space_solib_cache): Don't declare.
2524 2020-10-29 Tom Tromey <tom@tromey.com>
2526 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2527 * target.c (info_target_command): Update.
2528 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2529 (symbol_file_clear, reread_symbols): Update.
2530 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2531 * stabsread.c (scan_file_globals): Update.
2532 * solib.c (update_solib_list): Update.
2533 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2534 (svr4_fetch_objfile_link_map, enable_break)
2535 (svr4_relocate_main_executable)
2536 (svr4_iterate_over_objfiles_in_search_order): Update.
2537 * solib-frv.c (lm_base, enable_break)
2538 (frv_relocate_main_executable): Update.
2539 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2540 (frv_fetch_objfile_link_map): Update.
2541 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2542 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2543 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2544 * remote.c (remote_target::get_offsets): Update.
2545 (remote_target::start_remote)
2546 (extended_remote_target::post_attach): Update.
2547 * objfiles.c (entry_point_address_query): Update.
2548 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2549 * minsyms.c (get_symbol_leading_char): Update.
2550 * frame.c (inside_main_func): Update.
2551 * progspace.h (symfile_objfile): Remove macro.
2553 2020-10-29 Tom Tromey <tom@tromey.com>
2555 * exec.c (exec_file_attach): Update.
2556 * progspace.c (program_space::exec_close): Update.
2557 * progspace.h (struct program_space) <ebfd>: Now a
2559 <set_exec_bfd>: Change argument type.
2562 2020-10-29 Tom Tromey <tom@tromey.com>
2564 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2565 * symfile.c (reread_symbols): Update.
2566 * symfile-mem.c (add_symbol_file_from_memory_command)
2567 (add_vsyscall_page): Update.
2568 * source-cache.c (source_cache::get_plain_source_lines): Update.
2569 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2570 (svr4_current_sos_direct, svr4_exec_displacement)
2571 (svr4_relocate_main_executable): Update.
2572 (svr4_iterate_over_objfiles_in_search_order): Update.
2573 * solib-frv.c (enable_break2, enable_break): Update.
2574 * solib-dsbt.c (lm_base, enable_break): Update.
2575 * solib-darwin.c (find_program_interpreter)
2576 (darwin_solib_create_inferior_hook): Update.
2577 * sol-thread.c (rw_common, ps_pdmodel): Update.
2578 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2579 * remote.c (compare_sections_command)
2580 (remote_target::trace_set_readonly_regions): Update.
2581 * remote-sim.c (get_sim_inferior_data)
2582 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2583 (gdbsim_target_open, gdbsim_target::files_info): Update.
2584 * exec.h (exec_bfd): Remove macro.
2585 * progspace.c (initialize_progspace): Update.
2586 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2588 * nto-procfs.c (nto_procfs_target::post_attach)
2589 (nto_procfs_target::create_inferior): Update.
2590 * maint.c (maintenance_info_sections): Update.
2591 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2593 * infcmd.c (post_create_inferior): Update.
2594 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2595 (objfile_find_memory_regions): Update.
2596 * exec.c (validate_exec_file, exec_file_attach)
2597 (exec_read_partial_read_only, print_section_info): Update.
2598 * corelow.c (core_target_open): Update.
2599 * corefile.c (reopen_exec_file, validate_files): Update.
2600 * arm-tdep.c (gdb_print_insn_arm): Update.
2601 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2602 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2605 2020-10-29 Tom Tromey <tom@tromey.com>
2607 * progspace.h (current_target_sections): Remove macro.
2608 * solib-svr4.c (scan_dyntag): Update.
2609 * solib-dsbt.c (scan_dyntag): Update.
2610 * exec.c (exec_target::close): Update.
2611 (add_target_sections, add_target_sections_of_objfile)
2612 (remove_target_sections, exec_target::get_section_table)
2613 (exec_target::files_info, set_section_command)
2614 (exec_set_section_address, exec_target::has_memory)
2615 (exec_target::has_memory): Update.
2617 2020-10-29 Tom Tromey <tom@tromey.com>
2619 * source-cache.c (source_cache::get_plain_source_lines): Use
2620 current_program_space.
2621 * corefile.c (reopen_exec_file): Use current_program_space.
2622 * exec.c (exec_file_attach): Use current_program_space.
2623 * exec.h (exec_bfd_mtime): Remove.
2625 2020-10-29 Tom Tromey <tom@tromey.com>
2627 * gcore.c (default_gcore_mach): Remove.
2628 (create_gcore_bfd): Update.
2630 2020-10-29 Tom Tromey <tom@tromey.com>
2632 * progspace.c (program_space::exec_close): New method, from
2633 exec_close in exec.c.
2634 * exec.c (exec_close): Move to progspace.c.
2635 (exec_target::close, exec_file_attach): Update.
2636 * progspace.h (struct program_space) <exec_close>: Declare
2639 2020-10-29 Tom Tromey <tom@tromey.com>
2641 * progspace.h (struct program_space) <exec_filename>: Rename from
2642 pspace_exec_filename. Now a unique_xmalloc_ptr.
2643 * inferior.c (print_selected_inferior): Update.
2644 (print_inferior): Update.
2645 * mi/mi-main.c (print_one_inferior): Update.
2646 * exec.h (exec_filename): Remove macro.
2647 * corefile.c (get_exec_file): Update.
2648 * exec.c (exec_close): Update.
2649 (exec_file_attach): Update.
2650 * progspace.c (clone_program_space): Update.
2651 (print_program_space): Update.
2653 2020-10-29 Tom Tromey <tom@tromey.com>
2655 * target-section.h (struct target_section): Add constructor.
2656 * exec.c (build_section_table, add_target_sections_of_objfile):
2658 * corelow.c (core_target::build_file_mappings): Update.
2660 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2663 * inferior.c (detach_inferior_command): Restore the current thread.
2664 (kill_inferior_command): Ditto.
2666 2020-10-28 Tom de Vries <tdevries@suse.de>
2669 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2670 map, check it in the "best match" loop.
2672 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2674 * m32c-tdep.c: Remove unused includes.
2676 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2678 * xtensa-tdep.c: Remove includes.
2680 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2682 * breakpoint.c (struct condition_command_opts): New struct.
2683 (condition_command_option_defs): New static global.
2684 (make_condition_command_options_def_group): New function.
2685 (condition_completer): Update to consider the '-force' flag.
2686 (condition_command): Use gdb::option for the '-force' flag.
2688 2020-10-27 Tom de Vries <tdevries@suse.de>
2690 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2691 symbols in section check.
2693 2020-10-27 Tom de Vries <tdevries@suse.de>
2695 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2697 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2699 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2700 * breakpoint.c: Update the help text of the 'condition' and 'break'
2702 (set_breakpoint_condition): Take a new bool parameter
2703 to control whether condition definition should be forced even when
2704 the condition expression is invalid in all of the current locations.
2705 (condition_command): Update the call to 'set_breakpoint_condition'.
2706 (find_condition_and_thread): Take the "-force-condition" flag into
2708 * linespec.c (linespec_keywords): Add "-force-condition" as an
2710 (FORCE_KEYWORD_INDEX): New #define.
2711 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2713 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2714 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2715 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2716 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2718 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2720 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2721 * breakpoint.c (set_breakpoint_location_condition): New function.
2722 (set_breakpoint_condition): Disable a breakpoint location if parsing
2723 the condition string gives an error.
2724 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2725 (build_target_condition_list): Ditto.
2726 (build_target_command_list): Ditto.
2727 (build_bpstat_chain): Ditto.
2728 (print_one_breakpoint_location): Ditto.
2729 (print_one_breakpoint): Ditto.
2730 (breakpoint_1): Ditto.
2731 (bp_location::bp_location): Ditto.
2732 (locations_are_equal): Ditto.
2733 (update_breakpoint_locations): Ditto.
2734 (enable_disable_bp_num_loc): Ditto.
2735 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2736 (find_condition_and_thread_for_sals): New static function.
2737 (create_breakpoint): Call find_condition_and_thread_for_sals.
2738 (location_to_sals): Call find_condition_and_thread_for_sals instead
2739 of find_condition_and_thread.
2741 2020-10-26 Tom de Vries <tdevries@suse.de>
2743 * dwarf2/read.c (process_full_comp_unit): Call
2744 dwarf2_find_base_address.
2746 2020-10-26 Tom Tromey <tromey@adacore.com>
2748 * gdbtypes.c (create_range_type): Revert previous patch. Add
2751 2020-10-26 Pedro Alves <pedro@palves.net>
2753 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2754 (my_waitpid): Use gdb::handle_eintr.
2756 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2758 * acinclude.m4: Update ptrace.m4 path.
2759 * ptrace.m4: Moved to gdbsupport.
2761 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2763 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2764 instead of target_gdbarch.
2766 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2768 * jit.c (jit_reader_load_command): Pass current inferior.
2769 (jit_inferior_init): Change parameter type to inferior, use it.
2770 (jit_inferior_created): Remove.
2771 (jit_inferior_created_hook): Pass inferior parameter down.
2772 (_initialize_jit): Use jit_inferior_created_hook instead of
2773 jit_inferior_created.
2774 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2775 * infrun.c (follow_exec): Pass inferior to
2776 jit_inferior_created_hook.
2778 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2780 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2781 parameter and use it.
2782 (thread_db_inferior_created): Pass inferior argument.
2784 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2786 * aix-thread.c (aix_thread_inferior_created): Add inferior
2788 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2789 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2790 * jit.c (jit_inferior_created): Likewise.
2791 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2792 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2793 * observable.h (inferior_created): Likewise.
2794 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2795 * symfile-mem.c (add_vsyscall_page): Likewise.
2796 * infcmd.c (post_create_inferior): Pass inferior argument.
2798 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2802 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2804 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2805 to ada_check_typedef.
2807 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2809 * f-exp.y (f_parse): Rename to...
2810 (f_language::parser): ...this.
2811 * f-lang.c (f_get_encoding): Rename to...
2812 (f_language::get_encoding): ...this.
2813 (f_op_print_tab): Rename to...
2814 (f_language::op_print_tab): ...this.
2815 (exp_descriptor_f): Rename to...
2816 (f_language::exp_descriptor_tab): ...this.
2817 (class f_language): Moved to f-lang.h.
2818 (f_language::language_arch_info): New function, moved out of class
2820 (f_language::search_name_hash): Likewise.
2821 (f_language::lookup_symbol_nonlocal): Likewise.
2822 (f_language::get_symbol_name_matcher_inner): Likewise.
2823 * f-lang.h: Add 'valprint.h' include.
2824 (class f_language): Moved here from f-lang.c.
2825 * f-typeprint.c (f_type_print_args): Delete commented out
2827 (f_print_typedef): Rename to...
2828 (f_language::print_typedef): ...this.
2829 (f_print_type): Rename to...
2830 (f_language::print_type): ...this.
2831 (f_type_print_varspec_prefix): Delete declaration and rename to...
2832 (f_language::f_type_print_varspec_prefix): ...this.
2833 (f_type_print_varspec_suffix): Delete declaration and rename to...
2834 (f_language::f_type_print_varspec_suffix): ...this.
2835 (f_type_print_base): Delete declaration and rename to...
2836 (f_language::f_type_print_base): ...this.
2837 * f-valprint.c (f_value_print_inner): Rename to...
2838 (f_language::value_print_inner): ...this.
2839 * parse.c: Delete 'f-lang.h' include.
2841 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2843 * language.h (language_defn::print_type): Add variable names in
2844 declaration, and update header comment.
2846 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2848 * ada-lang.c (ada_language::demangle): Rename to...
2849 (ada_language::demangle_symbol): ...this.
2850 * c-lang.c (cplus_language::demangle): Rename to...
2851 (cplus_language::demangle_symbol): ...this.
2852 * d-lang.c (d_language::demangle): Rename to...
2853 (d_language::demangle_symbol): ...this.
2854 * f-lang.c (f_language::demangle): Rename to...
2855 (f_language::demangle_symbol): ...this.
2856 * go-lang.c (go_language::demangle): Rename to...
2857 (go_language::demangle_symbol): ...this.
2858 * language.c (language_demangle): Update call to demangle_symbol.
2859 (auto_or_unknown_language::demangle): Rename to...
2860 (auto_or_unknown_language::demangle_symbol): ...this.
2861 * language.h (language_defn::demangle): Rename to...
2862 (language_defn::demangle_symbol): ...this.
2863 * objc-lang.c (objc_language::demangle): Rename to...
2864 (objc_language::demangle_symbol): ...this.
2865 * rust-lang.c (rust_language::demangle): Rename to...
2866 (rust_language::demangle_symbol): ...this.
2868 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2870 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2871 (iterate_over_file_blocks): Replace use of macro with the macros
2874 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2876 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2877 * valprint.c (maybe_print_array_index): Replace use of macro with
2878 the macros definition.
2880 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2882 * ada-lang.c (ada_language::print_array_index): Call value_print
2884 * language.c (language_defn::print_array_index): Likewise.
2885 * language.h (LA_VALUE_PRINT): Delete.
2886 * valprint.c (value_print): Call value_print on the
2887 current_language directly.
2889 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2891 * language.h (LA_PRINT_TYPEDEF): Delete.
2892 * typeprint.c (typedef_print): Call print_typedef directly on the
2893 current_language object.
2895 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2897 * m2-exp.y (m2_parse): Rename to...
2898 (m2_language::parser): ...this. Update function signature.
2899 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2900 (m2_op_print): Rename to...
2901 (m2_language::op_print_tab): ...this, and make const.
2902 (exp_descriptor_modula2): Rename to...
2903 (m2_language::exp_descriptor_modula2): ...this.
2904 (class m2_language): Move to m2-lang.h.
2905 (m2_language::language_arch_info): New function, moved out of
2907 (m2_language::printchar): New function, body from m2_printchar.
2908 (m2_language::printstr): New function, moved out of class
2910 (m2_language::emitchar): Likewise.
2911 * m2-lang.h (m2_parse): Delete declaration.
2912 (m2_print_typedef): Delete declaration.
2913 (m2_value_print_inner): Delete declaration.
2914 (class m2_language): Class declaration moved from m2-lang.c,
2915 larger functions are left in m2-lang.c.
2916 * m2-typeprint.c (m2_print_typedef): Rename to...
2917 (m2_language::print_typedef): ...this, and update function
2919 * m2-valprint.c (m2_value_print_inner): Rename to...
2920 (m2_language::value_print_inner): ...this, replace use of
2921 LA_PRINT_STRING with a direct call to printstr member function,
2922 and update recursive call.
2924 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2926 * language.c (default_is_string_type_p): Delete, implementation
2927 moved into auto_or_unknown_language::is_string_type_p.
2928 (unk_op_print_tab): Moved into
2929 auto_or_unknown_language::opcode_print_table.
2930 (unknown_language_arch_info): Delete, implementation moved into
2931 auto_or_unknown_language::language_arch_info.
2932 (class auto_or_unknown_language): New class, member functions
2933 copied from unknown_language class, with some updates.
2934 (class unknown_language): Most member functions moved into
2935 auto_or_unknown_language class. Inherit from
2936 auto_or_unknown_language class.
2937 (class auto_language): Inherit from auto_or_unknown_language.
2938 Delete most member functions.
2940 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2942 * stabsread.c (read_member_functions): Remove gdb_assert.
2944 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2946 * gdbtypes.c (init_complex_type): Check target type name.
2948 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2950 * target-debug.h (target_debug_print_struct_target_ops_p):
2952 (target_debug_print_async_callback_ftype_p): Remove.
2953 (target_debug_print_struct_trace_state_variable_p): Remove.
2954 (target_debug_print_struct_traceframe_info_p): Remove.
2955 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2956 (target_debug_print_enum_btrace_format): Remove.
2957 (target_debug_print_enum_info_proc_what): Remove.
2958 (target_debug_print_thread_info_pp): Remove.
2960 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2962 * target.h (struct target_ops) <make_corefile_notes>:
2963 Change return type to unique pointer.
2964 * target.c (dummy_make_corefile_notes): Likewise.
2965 * exec.c (struct exec_target) <make_corefile_notes>:
2967 (exec_target::make_corefile_notes): Likewise.
2968 * procfs.c (class procfs_target) <make_corefile_notes>:
2970 (procfs_do_thread_registers): Adjust to unique pointer.
2971 (struct procfs_corefile_thread_data): Add constructor.
2972 <note_data>: Change type to unique pointer.
2973 (procfs_corefile_thread_callback): Adjust to unique pointer.
2974 (procfs_target::make_corefile_notes): Change return type to
2976 * target-delegates.c: Re-generate.
2977 * gcore.c (write_gcore_file_1): Adjust.
2978 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2981 2020-10-22 Tom de Vries <tdevries@suse.de>
2983 * block.c (find_block_in_blockvector): Make sure the returned block
2986 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2989 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2991 (load_cu): Pass existing CU.
2992 (process_imported_unit_die): Likewise.
2993 (follow_die_offset): Likewise.
2995 2020-10-22 Luis Machado <luis.machado@linaro.org>
2997 * corelow.c (core_target::xfer_partial): Also check for an empty
2998 m_core_unavailable_mappings vector.
3000 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3002 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3003 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3004 * f-exp.y (arglist): Allow for a series of subranges.
3005 (subrange): Add cases for subranges with strides.
3006 * f-lang.c (value_f90_subarray): Catch use of array strides and
3008 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3010 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3012 * expprint.c (print_subexp_standard): Change enum range_type to
3013 range_flag and rename variables to match.
3014 (dump_subexp_body_standard): Likewise.
3015 * expression.h (enum range_type): Rename to...
3016 (enum range_flag): ...this.
3017 (range_types): Rename to...
3018 (range_flags): ...this.
3019 * f-lang.c (value_f90_subarray): Change enum range_type to
3020 range_flag and rename variables to match.
3021 * parse.c (operator_length_standard): Likewise.
3022 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3023 range_type to range_flag.
3024 * rust-lang.c (rust_evaluate_funcall): Likewise.
3025 (rust_range): Likewise.
3026 (rust_compute_range): Likewise.
3027 (rust_subscript): Likewise.
3029 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3031 * expprint.c (print_subexp_standard): Update to reflect changes to
3033 (dump_subexp_body_standard): Likewise.
3034 * expression.h (enum range_type): Convert to a bit field enum, and
3035 make the enum unsigned.
3036 * f-exp.y (subrange): Update to reflect changes to enum
3038 * f-lang.c (value_f90_subarray): Likewise.
3039 * parse.c (operator_length_standard): Likewise.
3040 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3041 * rust-lang.c (rust_range): Likewise.
3042 (rust_compute_range): Likewise.
3043 (rust_subscript): Likewise.
3045 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3047 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3048 (displaced_step_in_progress): Fix comment.
3050 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3052 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3053 * gdbarch.c: Re-generate.
3054 * gdbarch.h: Re-generate.
3055 * gcore.c (write_gcore_file_1): Adjust.
3056 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3058 <note_data>: Change type to unique pointer.
3059 <abort_iteration>: Change type to bool.
3060 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3061 (fbsd_collect_thread_registers): Return void, adjust.
3062 (struct fbsd_corefile_thread_data): Add construtor.
3063 <note_data>: Change type to unique pointer.
3064 (fbsd_corefile_thread): Adjust.
3065 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3066 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3067 to unique pointer, adjust.
3068 (struct linux_collect_regset_section_cb_data): Add constructor.
3069 <note_data>: Change type to unique pointer.
3070 <abort_iteration>: Change type to bool.
3071 (linux_collect_thread_registers): Return void, adjust.
3072 (struct linux_corefile_thread_data): Add constructor.
3073 <note_data>: Change type to unique pointer.
3074 (linux_corefile_thread): Adjust.
3075 (linux_make_corefile_notes): Return unique pointer, adjust.
3077 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3079 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3080 * gdbarch.c: Re-generate.
3081 * gdbarch.h: Re-generate.
3082 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3084 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3086 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3087 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3088 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3089 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3091 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3093 * gdbarch.sh: Make generated predicates return bool.
3094 * gdbarch.c: Re-generate.
3095 * gdbarch.h: Re-generate.
3097 2020-10-20 Tom Tromey <tom@tromey.com>
3099 * varobj-iter.h (struct varobj_item): Remove typedef.
3101 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3103 * infrun.c (currently_stepping): Change int to bool
3104 (maybe_software_singlestep): Likewise.
3105 (show_stop_on_solib_events): Likewise.
3106 (stepping_past_nonsteppable_watchpoint): Likewise.
3107 (displaced_step_in_progress_any_inferior): Likewise.
3108 (displaced_step_in_progress_thread): Likewise.
3109 (keep_going_stepped_thread): Likewise.
3110 (thread_still_needs_step_over): Likewise.
3111 (start_step_over): Likewise.
3112 (do_target_resume): Likewise.
3113 (resume_1): Likewise.
3114 (clear_proceed_status): Likewise.
3115 (thread_still_needs_step_over_bp): Likewise.
3116 (proceed): Likewise.
3117 (switch_back_to_stepped_thread): Likewise.
3118 (adjust_pc_after_break): Likewise.
3119 (stepped_in_from): Likewise.
3120 (handle_stop_requested): Likewise.
3121 (handle_syscall_event): Likewise.
3122 (handle_no_resumed): Likewise.
3123 (handle_inferior_event): Likewise.
3124 (finish_step_over): Likewise.
3125 (handle_signal_stop): Likewise.
3126 (process_event_stop_test): Likewise.
3128 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3130 * infrun.c (get_displaced_stepping_state): Fix comment.
3132 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3134 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3136 2020-10-19 Tom Tromey <tromey@adacore.com>
3139 * tui/tui-winsource.h (struct tui_source_window_base)
3140 <refresh_window>: Rename from refresh_pad.
3141 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3142 Rename from refresh_pad.
3143 (tui_source_window_base::show_source_content)
3144 (tui_source_window_base::do_scroll_horizontal): Update.
3146 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3148 * thread.c (_initialize_thread): Fine-tune the help text of
3151 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3153 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3155 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3157 * breakpoint.c (handle_jit_event): Add an argument, change how
3158 `jit_event_handler` is called.
3160 2020-10-17 Tom Tromey <tom@tromey.com>
3162 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3163 (scan_xcoff_symtab): Update.
3164 * psymtab.h (class psymtab_storage) <global_psymbols,
3165 static_psymbols, current_global_psymbols,
3166 current_static_psymbols>: Remove.
3167 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3168 (match_partial_symbol, lookup_partial_symbol): Update.
3169 (print_partial_symbols): Change parameters.
3170 (dump_psymtab, recursively_search_psymtabs)
3171 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3172 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3174 (end_psymtab_common): Simplify.
3175 (append_psymbol_to_list): Change parameters.
3176 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3177 (init_psymbol_list): Simplify.
3178 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3179 * psympriv.h (struct partial_symtab) <empty>: New method.
3180 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3182 <global_psymbols, static_psymbols>: New members.
3183 <add_psymbol>: New methods.
3184 (add_psymbol_to_list): Don't declare.
3185 (psymbol_placement): Move earlier.
3186 * mdebugread.c (parse_partial_symbols): Update.
3187 (handle_psymbol_enumerators): Change parameters.
3188 (mdebug_expand_psymtab): Update.
3189 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3190 (add_partial_symbol): Update.
3191 * dwarf2/index-write.c (write_psymbols): Change parameters.
3192 (write_one_signatured_type): Update.
3193 (recursively_count_psymbols): Update.
3194 (recursively_write_psymbols): Update.
3195 (class debug_names) <recursively_write_psymbols>: Update.
3196 <write_psymbols>: Change parameters.
3197 <write_one_signatured_type>: Update.
3198 * dbxread.c (read_dbx_symtab): Update.
3199 (dbx_end_psymtab): Use partial_symtab::empty.
3200 * ctfread.c (struct ctf_context) <pst>: New member.
3201 (create_partial_symtab): Set it.
3202 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3203 (scan_partial_symbols): Use the psymtab's context. Update.
3205 2020-10-17 Tom Tromey <tom@tromey.com>
3207 * valprint.c (generic_value_print): Remove comment.
3208 * m2-valprint.c (m2_value_print_inner): Remove comment.
3209 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3212 2020-10-17 Tom de Vries <tdevries@suse.de>
3215 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3218 2020-10-14 Tom de Vries <tdevries@suse.de>
3221 * solib.c (solib_contains_address_p): Handle
3222 'solib->sections == nullptr'.
3224 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3227 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3228 target can't do async.
3229 * target.c (target_wait): Assert that we don't pass
3230 TARGET_WNOHANG to a target that can't async.
3232 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3234 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3235 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3236 * alpha-bsd-nat.c: Adjust include.
3237 * alpha-bsd-tdep.h: Adjust comment.
3238 * alpha-nbsd-tdep.c: Rename to ...
3239 * alpha-netbsd-tdep.c: ... this, adjust include.
3240 * amd64-nbsd-nat.c: Rename to ...
3241 * amd64-netbsd-nat.c: ... this, adjust include.
3242 * amd64-nbsd-tdep.c: Rename to ...
3243 * amd64-netbsd-tdep.c: ... this, adjust include.
3244 * amd64-tdep.h: Adjust include.
3245 * arm-nbsd-nat.c: Rename to ...
3246 * arm-netbsd-nat.c: ... this, adjust include.
3247 * arm-nbsd-tdep.c: Rename to ...
3248 * arm-netbsd-tdep.c: ... this, adjust include.
3249 * arm-nbsd-tdep.h: Rename to ...
3250 * arm-netbsd-tdep.h: ... this, adjust include.
3251 * configure.nat: Adjust file lists.
3252 * configure.tgt: Likewise.
3253 * hppa-nbsd-nat.c: Rename to ...
3254 * hppa-netbsd-nat.c: ... this, adjust include.
3255 * hppa-nbsd-tdep.c: Rename to ...
3256 * hppa-netbsd-tdep.c: ... this, adjust include.
3257 * i386-nbsd-nat.c: Rename to ...
3258 * i386-netbsd-nat.c: ... this, adjust include.
3259 * i386-nbsd-tdep.c: Rename to ...
3260 * i386-netbsd-tdep.c: ... this, adjust include.
3261 * m68k-bsd-nat.c: Adjust include.
3262 * mips-nbsd-nat.c: Rename to ...
3263 * mips-netbsd-nat.c: ... this, adjust include.
3264 * mips-nbsd-tdep.c: Rename to ...
3265 * mips-netbsd-tdep.c: ... this, adjust include.
3266 * mips-nbsd-tdep.h: Rename to ...
3267 * mips-netbsd-tdep.h: ... this.
3268 * nbsd-nat.c: Rename to ...
3269 * netbsd-nat.c: ... this, adjust include.
3270 * nbsd-nat.h: Rename to ...
3271 * netbsd-nat.h: ... this, adjust include.
3272 * nbsd-tdep.c: Rename to ...
3273 * netbsd-tdep.c: ... this, adjust include.
3274 * nbsd-tdep.h: Rename to ...
3275 * netbsd-tdep.h: ... this.
3276 * ppc-nbsd-nat.c: Rename to ...
3277 * ppc-netbsd-nat.c: ... this, adjust include.
3278 * ppc-nbsd-tdep.c: Rename to ...
3279 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3280 * ppc-nbsd-tdep.h: Rename to ...
3281 * ppc-netbsd-tdep.h: ... this.
3282 * sh-nbsd-nat.c: Rename to ...
3283 * sh-netbsd-nat.c: ... this, adjust include.
3284 * sh-nbsd-tdep.c: Rename to ...
3285 * sh-netbsd-tdep.c: ... this, adjust include.
3286 * sparc-nbsd-nat.c: Rename to ...
3287 * sparc-netbsd-nat.c: ... this.
3288 * sparc-nbsd-tdep.c: Rename to ...
3289 * sparc-netbsd-tdep.c: ... this, adjust include.
3290 * sparc64-nbsd-nat.c: Rename to ...
3291 * sparc64-netbsd-nat.c: ... this.
3292 * sparc64-nbsd-tdep.c: Rename to ...
3293 * sparc64-netbsd-tdep.c: ... this, adjust include.
3294 * sparc64-tdep.h: Adjust comment.
3295 * vax-bsd-nat.c: Adjust include.
3296 * vax-nbsd-tdep.c: Rename to ...
3297 * vax-netbsd-tdep.c: ... this, adjust include.
3299 2020-10-12 Tom Tromey <tom@tromey.com>
3301 * target.h (struct target_ops) <get_section_table>: Update.
3302 (target_get_section_table): Update.
3303 * target.c (target_get_section_table, target_section_by_addr)
3304 (memory_xfer_partial_1): Update.
3305 * target-section.h (target_section_table): Now an alias.
3306 * target-delegates.c: Rebuild.
3307 * target-debug.h (target_debug_print_target_section_table_p):
3308 Rename from target_debug_print_struct_target_section_table_p.
3309 * symfile.c (build_section_addr_info_from_section_table): Update.
3310 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3311 * solib-svr4.c (scan_dyntag): Update.
3312 * solib-dsbt.c (scan_dyntag): Update.
3313 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3315 * record-full.c (record_full_core_target::xfer_partial): Update.
3316 * progspace.h (struct program_space) <target_sections>: Update.
3317 * exec.h (print_section_info): Update.
3318 * exec.c (exec_target::close, build_section_table)
3319 (add_target_sections, add_target_sections_of_objfile)
3320 (remove_target_sections, exec_on_vfork)
3321 (section_table_available_memory)
3322 (section_table_xfer_memory_partial)
3323 (exec_target::get_section_table, exec_target::xfer_partial)
3324 (print_section_info, set_section_command)
3325 (exec_set_section_address, exec_target::has_memory): Update.
3326 * corelow.c (core_target::build_file_mappings)
3327 (core_target::xfer_partial, core_target::info_proc_mappings)
3328 (core_target::info_proc_mappings): Update.
3329 * bfd-target.c (class target_bfd): Update
3331 2020-10-12 Tom Tromey <tom@tromey.com>
3333 * progspace.c (program_space::~program_space): Don't call
3334 clear_section_table.
3335 * exec.h (clear_section_table): Don't declare.
3336 * exec.c (exec_target::close): Update.
3337 (clear_section_table): Remove.
3339 2020-10-12 Tom Tromey <tom@tromey.com>
3341 * exec.c (add_target_sections_of_objfile): Simplify.
3343 2020-10-12 Tom Tromey <tom@tromey.com>
3345 * solib.c (solib_map_sections): Update.
3346 * record-full.c (record_full_core_open_1): Update.
3347 * exec.h (build_section_table): Return a target_section_table.
3348 * exec.c (exec_file_attach): Update.
3349 (build_section_table): Return a target_section_table.
3350 * corelow.c (core_target::core_target): Update.
3351 * bfd-target.c (target_bfd::target_bfd): Update.
3353 2020-10-12 Tom Tromey <tom@tromey.com>
3355 * target.c (target_section_by_addr, memory_xfer_partial_1):
3357 * target-section.h (struct target_section_table): Use
3359 * symfile.h (build_section_addr_info_from_section_table): Take a
3360 target_section_table.
3361 * symfile.c (build_section_addr_info_from_section_table): Take a
3362 target_section_table.
3363 * solist.h (struct so_list) <sections>: Change type.
3364 <sections_end>: Remove.
3365 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3366 (solib_contains_address_p): Update.
3367 * solib-svr4.c (scan_dyntag): Update.
3368 * solib-dsbt.c (scan_dyntag): Update.
3369 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3371 * record-full.c (record_full_core_start, record_full_core_end):
3373 (record_full_core_sections): New global.
3374 (record_full_core_open_1, record_full_core_target::xfer_partial):
3376 * exec.h (build_section_table, section_table_xfer_memory_partial)
3377 (add_target_sections): Take a target_section_table.
3378 * exec.c (exec_file_attach, clear_section_table): Update.
3379 (resize_section_table): Remove.
3380 (build_section_table, add_target_sections): Take a
3381 target_section_table.
3382 (add_target_sections_of_objfile, remove_target_sections)
3383 (exec_on_vfork): Update.
3384 (section_table_available_memory): Take a target_section_table.
3385 (section_table_read_available_memory): Update.
3386 (section_table_xfer_memory_partial): Take a target_section_table.
3387 (print_section_info, set_section_command)
3388 (exec_set_section_address, exec_target::has_memory): Update.
3389 * corelow.c (class core_target) <m_core_section_table,
3390 m_core_file_mappings>: Remove braces.
3391 <~core_target>: Remove.
3392 (core_target::core_target): Update.
3393 (core_target::~core_target): Remove.
3394 (core_target::build_file_mappings)
3395 (core_target::xfer_memory_via_mappings)
3396 (core_target::xfer_partial, core_target::info_proc_mappings):
3398 * bfd-target.c (target_bfd::xfer_partial): Update.
3399 (target_bfd::target_bfd): Update.
3400 (target_bfd::~target_bfd): Remove.
3402 2020-10-12 Tom Tromey <tom@tromey.com>
3404 * target.h (struct target_section, struct target_section_table):
3405 Move to target-section.h.
3406 * target-section.h: New file.
3408 2020-10-12 Pedro Alves <pedro@palves.net>
3411 * valops.c (struct struct_field_searcher): New.
3412 (update_search_result): Rename to ...
3413 (struct_field_searcher::update_result): ... this. Simplify
3414 prototype. Record all found fields.
3415 (do_search_struct_field): Rename to ...
3416 (struct_field_searcher::search): ... this. Simplify prototype.
3417 Maintain stack of visited baseclass path. Call update_result for
3418 fields too. Keep searching fields in baseclasses instead of
3419 stopping at the first found field.
3420 (search_struct_field): Use struct_field_searcher. When looking
3421 for fields, report ambiguous access attempts.
3423 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3425 * frame.c (inside_main_func): Check full symbols as well as
3428 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3430 * ada-lang.c (advance_wild_match): Rewrite the function's
3431 description. Change the type of target0, t0 and t1 to char.
3433 2020-10-09 Tom Tromey <tromey@adacore.com>
3435 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3437 2020-10-09 Tom Tromey <tromey@adacore.com>
3439 * ada-lang.h (ada_encode): Return std::string.
3440 * ada-lang.c (ada_encode_1): Return std::string.
3441 (ada_encode): Likewise.
3442 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3444 * ada-exp.y (block_lookup, write_var_or_type): Update.
3446 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3449 * printcmd.c (print_formatted): Handle void results as
3452 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3454 * arch/aarch32.c (aarch32_create_target_description): Release the
3455 target_desc_up as late as possible.
3456 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3457 * arch/amd64.c (amd64_create_target_description): Likewise.
3458 * arch/arc.c (arc_create_target_description): Return a
3459 target_desc_up, don't release it.
3460 * arch/arc.h (arc_create_target_description): Update declaration.
3461 (arc_lookup_target_description): Move target_desc_up into the
3462 cache, and return a borrowed pointer.
3463 * arch/arm.c (arm_create_target_description): Release the
3464 target_desc_up as late as possible.
3465 * arch/i386.c (i386_create_target_description): Likewise.
3466 * arch/riscv.h (riscv_create_target_description): Update
3467 declaration to match definition.
3468 * arch/tic6x.c (tic6x_create_target_description): Release the
3469 target_desc_up as late as possible.
3471 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3473 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3474 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3476 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3478 * source.c (directory_command): Notify observers that "directories"
3479 parameter has changed.
3481 2020-10-08 Tom Tromey <tom@tromey.com>
3483 * cli/cli-cmds.c (print_disassembly): Style function name and
3484 addresses. Add _() wrappers.
3486 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3488 * NEWS: Mention ARC support in GDBserver.
3490 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3492 * arch/aarch32.c (aarch32_create_target_description): Release
3493 unique_ptr returned from allocate_target_description.
3494 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3495 * arch/amd64.c (amd64_create_target_description): Likewise.
3496 * arch/arc.c (arc_create_target_description): Likewise.
3497 * arch/arm.c (arm_create_target_description): Likewise.
3498 * arch/i386.c (i386_create_target_description): Likewise.
3499 * arch/riscv.c (riscv_create_target_description): Update return
3500 type. Handle allocate_target_description returning a unique_ptr.
3501 (riscv_lookup_target_description): Update to handle unique_ptr.
3502 * arch/tic6x.c (tic6x_create_target_description): Release
3503 unique_ptr returned from allocate_target_description.
3504 * features/microblaze-with-stack-protect.c: Regenerate.
3505 * features/microblaze.c: Regenerate.
3506 * features/mips-dsp-linux.c: Regenerate.
3507 * features/mips-linux.c: Regenerate.
3508 * features/mips64-dsp-linux.c: Regenerate.
3509 * features/mips64-linux.c: Regenerate.
3510 * features/nds32.c: Regenerate.
3511 * features/nios2.c: Regenerate.
3512 * features/or1k.c: Regenerate.
3513 * features/rs6000/powerpc-32.c: Regenerate.
3514 * features/rs6000/powerpc-32l.c: Regenerate.
3515 * features/rs6000/powerpc-403.c: Regenerate.
3516 * features/rs6000/powerpc-403gc.c: Regenerate.
3517 * features/rs6000/powerpc-405.c: Regenerate.
3518 * features/rs6000/powerpc-505.c: Regenerate.
3519 * features/rs6000/powerpc-601.c: Regenerate.
3520 * features/rs6000/powerpc-602.c: Regenerate.
3521 * features/rs6000/powerpc-603.c: Regenerate.
3522 * features/rs6000/powerpc-604.c: Regenerate.
3523 * features/rs6000/powerpc-64.c: Regenerate.
3524 * features/rs6000/powerpc-64l.c: Regenerate.
3525 * features/rs6000/powerpc-7400.c: Regenerate.
3526 * features/rs6000/powerpc-750.c: Regenerate.
3527 * features/rs6000/powerpc-860.c: Regenerate.
3528 * features/rs6000/powerpc-altivec32.c: Regenerate.
3529 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3530 * features/rs6000/powerpc-altivec64.c: Regenerate.
3531 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3532 * features/rs6000/powerpc-e500.c: Regenerate.
3533 * features/rs6000/powerpc-e500l.c: Regenerate.
3534 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3535 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3536 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3537 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3538 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3539 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3540 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3541 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3542 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3543 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3544 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3545 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3546 * features/rs6000/powerpc-vsx32.c: Regenerate.
3547 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3548 * features/rs6000/powerpc-vsx64.c: Regenerate.
3549 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3550 * features/rs6000/rs6000.c: Regenerate.
3551 * features/rx.c: Regenerate.
3552 * features/s390-gs-linux64.c: Regenerate.
3553 * features/s390-linux32.c: Regenerate.
3554 * features/s390-linux32v1.c: Regenerate.
3555 * features/s390-linux32v2.c: Regenerate.
3556 * features/s390-linux64.c: Regenerate.
3557 * features/s390-linux64v1.c: Regenerate.
3558 * features/s390-linux64v2.c: Regenerate.
3559 * features/s390-te-linux64.c: Regenerate.
3560 * features/s390-tevx-linux64.c: Regenerate.
3561 * features/s390-vx-linux64.c: Regenerate.
3562 * features/s390x-gs-linux64.c: Regenerate.
3563 * features/s390x-linux64.c: Regenerate.
3564 * features/s390x-linux64v1.c: Regenerate.
3565 * features/s390x-linux64v2.c: Regenerate.
3566 * features/s390x-te-linux64.c: Regenerate.
3567 * features/s390x-tevx-linux64.c: Regenerate.
3568 * features/s390x-vx-linux64.c: Regenerate.
3569 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3570 from allocate_target_description.
3571 * target-descriptions.c (allocate_target_description): Update
3573 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3574 allocate_target_description.
3576 2020-10-07 Tom Tromey <tromey@adacore.com>
3578 * unittests/search-memory-selftests.c: New file.
3579 * Makefile.in (SELFTESTS_SRCS): Add
3580 unittests/search-memory-selftests.c.
3582 2020-10-07 Tom Tromey <tromey@adacore.com>
3585 * findcmd.c (_initialize_mem_search): Mention that the range is
3588 2020-10-07 Tom Tromey <tromey@adacore.com>
3590 * target.h (simple_search_memory): Don't declare.
3591 * target.c (simple_search_memory): Move to gdbsupport.
3592 (default_search_memory): Update.
3593 * remote.c (remote_target::search_memory): Update.
3595 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3597 * Makefile.in (COMPILE): Add CXXFLAGS.
3598 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3599 (check-headers): Add CXXFLAGS.
3601 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3603 * arc-linux-tdep.h: New file.
3604 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3605 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3606 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3607 arc_linux_gregset, arc_linux_v2_regset,
3608 arc_linux_iterate_over_regset_sections,
3609 arc_linux_core_read_description): Implement.
3610 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3611 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3612 (arc_gdbarch_features_create): Add.
3613 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3615 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3617 * arch/arc.h: Rename "arc_gdbarch_features" to
3618 "arc_arch_features".
3619 * arc-tdep.h: Likewise.
3620 * arc-tdep.c: Likewise.
3622 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3624 * infcmd.c (attach_command): Remove the redundant call to
3625 `clear_proceed_status`.
3627 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3629 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3631 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3633 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3634 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3635 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3637 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3639 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3640 (_initialize_break_catch_sig): Don't allocate array.
3642 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3644 * symtab.c (find_pc_line): Return unmapped addresses when the
3645 requested address is also unmapped.
3647 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3649 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3652 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3654 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3655 type::is_vector instead of TYPE_VECTOR.
3657 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3659 * auto-load.c (auto_load_objfile_script_1): Don't use
3660 debugfile_holder as temporary variable when stripping drive
3663 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3665 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3666 Add TYPE_CODE_COMPLEX.
3667 (amd64_windows_return_value): Fix types returned via XMM0.
3669 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3671 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3672 AArch64/ARM maintainers.
3674 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3676 * NEWS: Mention set/show debug event-loop.
3678 2020-10-02 Tom Tromey <tromey@adacore.com>
3680 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3683 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3685 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3686 * procfs.c (procfs_inferior_created): Remove.
3687 (_initialize_procfs): Don't register procfs_inferior_created.
3689 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3691 * async-event.c (invoke_async_signal_handlers): Add debug
3693 (check_async_event_handlers): Likewise.
3694 * event-top.c (show_debug_event_loop): New function.
3695 (_initialize_event_top): Register "set debug event-loop"
3698 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3700 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3702 * infrun.c: Include gdbsupport/common-debug.h.
3703 * linux-nat.c: Likewise.
3705 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3707 * async-event.h (create_async_signal_handler): Add name
3709 (create_async_event_handler): Likewise.
3710 * async-event.c (struct async_signal_handler) <name>: New field.
3711 (struct async_event_handler) <name>: New field.
3712 (create_async_signal_handler): Assign name.
3713 (create_async_event_handler): Assign name.
3714 * event-top.c (async_init_signals): Pass name when creating
3716 * infrun.c (_initialize_infrun): Likewise.
3717 * record-btrace.c (record_btrace_push_target): Likewise.
3718 * record-full.c (record_full_open): Likewise.
3719 * remote-notif.c (remote_notif_state_allocate): Likewise.
3720 * remote.c (remote_target::open_1): Likewise.
3721 * tui/tui-win.c (tui_initialize_win): Likewise.
3723 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3725 * async-event.c (initialize_async_signal_handlers): Pass name to
3727 * event-top.c (ui_register_input_event_handler): Likewise.
3728 * linux-nat.c (linux_nat_target::async): Likewise.
3729 * run-on-main-thread.c (_initialize_run_on_main_thread):
3731 * ser-base.c (reschedule): Likewise.
3732 (ser_base_async): Likewise.
3733 * tui/tui-io.c: Likewise.
3734 * top.h (struct ui) <num>: New field.
3735 * top.c (highest_ui_num): New variable.
3736 (ui::ui): Initialize num.
3738 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3740 * observable.h <inferior_created>: Remove parameters. Update all
3742 * inferior.h (post_create_inferior): Remove target parameter.
3745 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3747 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3748 and DW_MACRO_undef_strx.
3749 (dwarf_decode_macros): Likewise
3750 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3751 which is the value of DW_AT_str_offsets_base.
3752 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3755 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3757 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3759 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3761 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3762 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3764 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3766 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3768 2020-09-30 Tom de Vries <tdevries@suse.de>
3771 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3773 2020-09-30 Tom Tromey <tromey@adacore.com>
3775 * dwarf2/read.c (handle_variant): Use constant_value.
3777 2020-09-29 Tom Tromey <tom@tromey.com>
3779 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3780 (read_file_scope, dwarf2_get_pc_bounds)
3781 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3782 (read_structure_type, handle_struct_member_die)
3783 (read_enumeration_type, read_array_type, read_set_type)
3784 (read_tag_pointer_type, read_tag_reference_type)
3785 (read_subroutine_type, read_base_type, read_subrange_type)
3786 (read_full_die_1, partial_die_info::read)
3787 (partial_die_info::read, by, new_symbol)
3788 (dwarf2_const_value_data, dwarf2_const_value_attr)
3789 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3790 (prepare_one_comp_unit): Update.
3791 * dwarf2/attribute.h (DW_UNSND): Remove.
3793 2020-09-29 Tom Tromey <tom@tromey.com>
3795 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3796 (read_subroutine_type, partial_die_info::read)
3797 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3798 (dwarf2_add_member_fn): Update.
3799 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3800 * dwarf2/attribute.c (attribute::as_boolean): New method.
3802 2020-09-29 Tom Tromey <tom@tromey.com>
3804 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3805 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3807 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3809 2020-09-29 Tom Tromey <tom@tromey.com>
3811 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3812 the attribute's form.
3814 2020-09-29 Tom Tromey <tom@tromey.com>
3816 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3817 (dwarf2_add_member_fn): Update.
3818 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3819 * dwarf2/attribute.c (attribute::defaulted): New method, from
3820 is_valid_DW_AT_defaulted.
3822 2020-09-29 Tom Tromey <tom@tromey.com>
3824 * dwarf2/read.c (dw2_get_file_names_reader)
3825 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3826 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3827 (dwarf2_symbol_mark_computed): Use as_unsigned.
3828 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3830 <form_is_section_offset>: Update comment.
3832 2020-09-29 Tom Tromey <tom@tromey.com>
3834 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3835 dwarf2_default_access_attribute. Look up attribute.
3836 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3839 2020-09-29 Tom Tromey <tom@tromey.com>
3841 * dwarf2/read.c (skip_one_die): Update.
3842 (read_full_die_1): Change how reprocessing is done.
3843 (partial_die_info::read): Update.
3844 (read_attribute_value): Remove need_reprocess parameter.
3845 (read_attribute): Likewise.
3846 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3849 2020-09-29 Tom Tromey <tom@tromey.com>
3851 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3852 (dwarf2_const_value_attr, dump_die_shallow)
3853 (dwarf2_fetch_constant_bytes): Update.
3854 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3856 <set_address>: New method.
3858 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3859 (attribute::as_string, attribute::as_address): Add assert.
3861 2020-09-29 Tom Tromey <tom@tromey.com>
3863 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3864 (read_attribute_reprocess, read_attribute_value): Update.
3865 (read_attribute): Clear requires_reprocessing.
3866 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3867 form_requires_reprocessing>: New methods.
3868 <string_init>: Clear requires_reprocessing.
3869 <set_unsigned_reprocess>: New method.
3870 <name>: Shrink by one bit.
3871 <requires_reprocessing>: New member.
3872 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3875 2020-09-29 Tom Tromey <tom@tromey.com>
3877 * dwarf2/read.c (read_attribute_value): Update.
3878 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3879 set_unsigned>: New methods.
3880 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3882 2020-09-29 Tom Tromey <tom@tromey.com>
3884 * dwarf2/read.c (get_alignment, read_array_order)
3885 (read_attribute_value, dwarf2_const_value_attr)
3886 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3887 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3891 2020-09-29 Tom Tromey <tom@tromey.com>
3893 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3894 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3896 * dwarf2/attribute.h (struct attribute) <as_signature,
3897 set_signature>: New methods.
3898 (DW_SIGNATURE): Remove.
3900 2020-09-29 Tom Tromey <tom@tromey.com>
3902 * dwarf2/read.c (read_call_site_scope)
3903 (handle_data_member_location, dwarf2_add_member_fn)
3904 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3905 (partial_die_info::read, read_attribute_value)
3906 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3907 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3908 (dwarf2_symbol_mark_computed): Update.
3909 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3912 * dwarf2/attribute.c (attribute::form_is_block): Add
3915 2020-09-29 Tom Tromey <tom@tromey.com>
3917 * dwarf2/read.c (read_cutu_die_from_dwo)
3918 (read_attribute_reprocess, read_attribute_value, read_attribute)
3919 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3920 (dwarf2_fetch_constant_bytes): Update.
3921 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3922 <set_string_noncanonical, set_string_canonical>: New methods.
3923 <string_is_canonical>: Update comment.
3924 <canonical_string_p>: Add assert.
3925 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3926 * dwarf2/attribute.c (attribute::form_is_string): New method.
3927 (attribute::string): Use it.
3929 2020-09-29 Tom Tromey <tom@tromey.com>
3931 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3932 (dump_die_shallow): Use canonical_string_p.
3933 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3936 2020-09-29 Tom Tromey <tom@tromey.com>
3938 * dwarf2/read.c (partial_die_info::read)
3939 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3940 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3941 attribute::as_string.
3943 2020-09-29 Tom Tromey <tom@tromey.com>
3945 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3947 (attribute::string): Don't use DW_STRING.
3948 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3949 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3951 2020-09-29 Tom Tromey <tom@tromey.com>
3953 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3954 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3955 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3956 * dwarf2/attribute.h (struct attribute): Rename methods.
3957 * dwarf2/attribute.c (attribute::as_address): Rename from
3959 (attribute::as_string): Rename from value_as_string.
3961 2020-09-29 Tom Tromey <tom@tromey.com>
3963 * dwarf2/read.c (partial_die_info::read) <case
3964 DW_AT_linkage_name>: Use value_as_string.
3965 (dwarf2_string_attr): Use value_as_string.
3966 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3968 * dwarf2/attribute.c (attribute::value_as_string): New method.
3970 2020-09-29 Pedro Alves <pedro@palves.net>
3972 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3973 defined before using '#pragma GCC diagnostic' instead of checking
3976 2020-09-28 Tom Tromey <tom@tromey.com>
3978 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3979 (handle_signal_stop): Update.
3980 * procfs.c (procfs_target::insert_watchpoint): Update.
3981 * target.h (target_have_steppable_watchpoint): Now a function.
3983 2020-09-28 Tom Tromey <tom@tromey.com>
3985 * infrun.c (set_schedlock_func): Update.
3986 * target.h (target_can_lock_scheduler): Now a function.
3988 2020-09-28 Tom Tromey <tom@tromey.com>
3990 * inferior.h (class inferior) <has_execution>: Update.
3991 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3992 * valops.c (find_function_in_inferior)
3993 (value_allocate_space_in_inferior): Update.
3994 * top.c (kill_or_detach): Update.
3995 * target.c (target_preopen, set_target_permissions): Update.
3996 (target_has_execution_current): Remove.
3997 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3999 * solib.c (update_solib_list, reload_shared_libraries): Update.
4000 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4001 * solib-dsbt.c (enable_break): Update.
4002 * score-tdep.c (score7_fetch_inst): Update.
4003 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4005 * remote.c (remote_target::start_remote)
4006 (remote_target::remote_check_symbols, remote_target::open_1)
4007 (remote_target::remote_detach_1, remote_target::verify_memory)
4008 (remote_target::xfer_partial, remote_target::read_description)
4009 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4010 * record-full.c (record_full_open_1): Update.
4011 * record-btrace.c (record_btrace_target_open): Update.
4012 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4013 (value_nsstring): Update.
4014 * linux-thread-db.c (add_thread_db_info)
4015 (thread_db_find_new_threads_silently, check_thread_db_callback)
4016 (try_thread_db_load_1, record_thread): Update.
4017 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4019 * linux-fork.c (checkpoint_command): Update.
4020 * infrun.c (set_non_stop, set_observer_mode)
4021 (check_multi_target_resumption, for_each_just_stopped_thread)
4022 (maybe_remove_breakpoints, normal_stop)
4023 (class infcall_suspend_state): Update.
4024 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4025 (info_program_command, attach_command): Update.
4026 * infcall.c (call_function_by_hand_dummy): Update.
4027 * inf-loop.c (inferior_event_handler): Update.
4028 * gcore.c (gcore_command, derive_heap_segment): Update.
4029 * exec.c (exec_file_command): Update.
4030 * eval.c (evaluate_subexp): Update.
4031 * compile/compile.c (compile_to_object): Update.
4032 * cli/cli-dump.c (restore_command): Update.
4033 * breakpoint.c (update_watchpoint)
4034 (update_inserted_breakpoint_locations)
4035 (insert_breakpoint_locations, get_bpstat_thread): Update.
4036 * target.h (target_has_execution): Remove macro.
4037 (target_has_execution_current): Don't declare.
4038 (target_has_execution): Rename from target_has_execution_1. Add
4041 2020-09-28 Tom Tromey <tom@tromey.com>
4043 * mi/mi-main.c (exec_reverse_continue)
4044 (mi_cmd_list_target_features): Update.
4045 * infrun.c (set_exec_direction_func): Update.
4046 * target.c (default_execution_direction): Update.
4047 * reverse.c (exec_reverse_once): Update.
4048 * target.h (target_can_execute_reverse): Now a function.
4050 2020-09-28 Tom Tromey <tom@tromey.com>
4052 * tui/tui-regs.c (tui_get_register)
4053 (tui_data_window::show_registers): Update.
4054 * thread.c (scoped_restore_current_thread::restore)
4055 (scoped_restore_current_thread::scoped_restore_current_thread):
4057 * regcache-dump.c (regcache_print): Update.
4058 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4060 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4061 * mep-tdep.c (current_me_module, current_options): Update.
4062 * linux-thread-db.c (thread_db_load): Update.
4063 * infcmd.c (registers_info, info_vector_command)
4064 (info_float_command): Update.
4065 * ia64-tdep.c (ia64_frame_prev_register)
4066 (ia64_sigtramp_frame_prev_register): Update.
4067 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4068 * gcore.c (derive_stack_segment): Update.
4069 * frame.c (get_current_frame, has_stack_frames): Update.
4070 * findvar.c (language_defn::read_var_value): Update.
4071 * arm-tdep.c (arm_pc_is_thumb): Update.
4072 * target.c (target_has_registers): Rename from
4073 target_has_registers_1.
4074 * target.h (target_has_registers): Remove macro.
4075 (target_has_registers): Rename from target_has_registers_1.
4077 2020-09-28 Tom Tromey <tom@tromey.com>
4079 * windows-tdep.c (tlb_make_value): Update.
4080 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4081 * thread.c (scoped_restore_current_thread::restore)
4082 (scoped_restore_current_thread::scoped_restore_current_thread)
4083 (thread_command): Update.
4084 * stack.c (backtrace_command_1, frame_apply_level_command)
4085 (frame_apply_all_command, frame_apply_command): Update.
4086 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4088 * gcore.c (derive_stack_segment): Update.
4089 * frame.c (get_current_frame, has_stack_frames): Update.
4090 * auxv.c (info_auxv_command): Update.
4091 * ada-tasks.c (ada_build_task_list): Update.
4092 * target.c (target_has_stack): Rename from target_has_stack_1.
4093 * target.h (target_has_stack): Remove macro.
4094 (target_has_stack): Rename from target_has_stack_1.
4096 2020-09-28 Tom Tromey <tom@tromey.com>
4098 * target.c (target_has_memory): Rename from target_has_memory_1.
4099 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4100 * thread.c (scoped_restore_current_thread::restore)
4101 (scoped_restore_current_thread::scoped_restore_current_thread):
4103 * frame.c (get_current_frame, has_stack_frames): Update.
4104 * target.h (target_has_memory): Remove macro.
4105 (target_has_memory): Rename from target_has_memory_1.
4107 2020-09-28 Tom Tromey <tom@tromey.com>
4109 * target.c (target_has_all_memory_1): Remove.
4110 * target.h (target_has_all_memory): Remove define.
4111 (target_has_all_memory_1): Don't declare.
4113 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4115 * ser-base.c: Adjust comments formatting.
4117 2020-09-27 Tom Tromey <tom@tromey.com>
4120 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4122 2020-09-27 Tom Tromey <tom@tromey.com>
4125 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4127 2020-09-27 Tom Tromey <tom@tromey.com>
4129 * unittests/tui-selftests.c: Update.
4130 * tui/tui-winsource.h (struct tui_source_window_base)
4131 <extra_margin, show_line_number, refresh_pad>: New methods.
4132 <m_max_length, m_pad>: New members.
4133 (tui_copy_source_line): Update.
4134 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4135 first_col, line_width, ndigits parameters. Add length.
4136 (tui_source_window_base::show_source_line): Write to pad. Line
4138 (tui_source_window_base::refresh_pad): New method.
4139 (tui_source_window_base::show_source_content): Write to pad. Call
4141 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4143 (tui_source_window_base::update_exec_info): Call
4145 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4147 <m_digits>: New member.
4148 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4150 (tui_source_window::show_line_number): New method.
4151 * tui/tui-io.h (tui_puts): Fix comment.
4152 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4155 2020-09-27 Tom Tromey <tom@tromey.com>
4157 * tui/tui-winsource.c
4158 (tui_source_window_base::set_is_exec_point_at): Don't call
4161 2020-09-27 Tom Tromey <tom@tromey.com>
4163 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4166 <cursor_x, cursor_y>: Remove.
4167 <m_inner_window>: New member.
4168 (tui_py_window::rerender): Create inner window.
4169 (tui_py_window::output): Write to inner window.
4171 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4174 * cli/cli-script.c (execute_control_commands): don't set
4175 instream to nullptr here as this breaks the from_tty argument
4176 to gdb.execute in Python.
4177 (execute_user_command): set instream to nullptr here instead.
4179 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4181 * infrun.h (infrun_debug_printf): Fix formatting.
4182 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4184 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4186 * compile/compile-object-load.h (struct munmap_list): Add
4187 explicitly-defined move constructor.
4189 2020-09-24 Tom Tromey <tromey@adacore.com>
4192 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4194 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4195 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4196 (tui_prev_win): Rewrite.
4198 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4200 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4201 in WOW64 processes as SIGINT.
4202 * nat/windows-nat.h: Make wow64_process a shared variable.
4203 * windows-nat.c: Remove static wow64_process variable.
4205 2020-09-23 Tom Tromey <tom@tromey.com>
4208 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4209 offset and bit size.
4210 * printcmd.c (print_scalar_formatted): Handle zero-length
4212 (print_scalar_formatted): Use bit_size_differs_p.
4213 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4215 (union type_specific): <int_stuff>: New member.
4216 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4218 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4219 TYPE_SPECIFIC_FIELD.
4220 (recursive_dump_type, copy_type_recursive): Update.
4221 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4222 DW_AT_data_bit_offset.
4224 2020-09-23 Tom Tromey <tom@tromey.com>
4226 * utils.h (class gdb_argv): Add move operators.
4227 <append>: New methods.
4228 * compile/compile.c (build_argc_argv): Remove.
4229 (compile_args_argc): Remove.
4230 (compile_args_argv): Change type.
4231 (set_compile_args): Simplify.
4232 (append_args): Remove.
4233 (filter_args): Remove argcp parameter.
4234 (get_args): Return gdb_argv. Simplify.
4235 (compile_to_object): Update.
4237 2020-09-23 Tom Tromey <tom@tromey.com>
4239 * compile/compile-object-run.c (do_module_cleanup)
4240 <~do_module_cleanup> :Remove.
4241 (do_module_cleanup): Update.
4242 * compile/compile-object-load.h (struct munmap_list): Add move
4243 assignment operator.
4244 <source_file>: Now a std::string.
4245 <munmap_list>: Rename. No longer a pointer.
4246 * compile/compile-object-load.c (struct setup_sections_data): Add
4248 <setup_one_section>: Declare.
4249 <munmap_list>: Move earlier.
4250 <m_bfd>: New member.
4251 <m_last_size, m_last_section_first, m_last_prot,
4252 m_last_max_alignment>: Rename, add initializers where needed.
4253 (setup_sections_data::setup_one_section): Rename from
4254 setup_sections. Update.
4255 (compile_object_load): Update. Don't use bfd_map_over_sections.
4257 2020-09-23 Tom Tromey <tom@tromey.com>
4259 * compile/compile-object-run.c (struct do_module_cleanup): Add
4260 parameters to constructor. Update destructor.
4261 <source_file, scope, scope_data, out_value_type, out_value_addr,
4262 munmap_list_head, objfile_name_string>: Remove.
4263 <module>: New member.
4264 (do_module_cleanup): Update.
4265 (compile_object_run): Update.
4267 2020-09-23 Tom Tromey <tom@tromey.com>
4269 * compile/compile.c (eval_compile_command): Update.
4270 * compile/compile-object-run.h (compile_object_run): Take a
4272 * compile/compile-object-run.c (compile_object_run): Take a
4274 * compile/compile-object-load.h (struct compile_module): Add
4275 constructor, destructor.
4276 (compile_module_up): New typedef.
4277 (compile_object_load): Return compile_object_up.
4278 * compile/compile-object-load.c (compile_object_load): Return
4281 2020-09-23 Tom Tromey <tom@tromey.com>
4283 * compile/compile-object-run.c (struct do_module_cleanup): Add
4284 constructor, destructor.
4285 <objfile_name_string>: Don't use struct hack.
4286 (do_module_cleanup): Use delete.
4287 (compile_object_run): Use new.
4289 2020-09-23 Tom Tromey <tom@tromey.com>
4291 * compile/compile-cplus-types.c
4292 (compile_cplus_convert_struct_or_union): Use std::vector.
4293 (compile_cplus_convert_func): Likewise.
4294 * compile/compile-c-types.c (convert_func): Use std::vector.
4296 2020-09-21 Tom Tromey <tromey@adacore.com>
4298 * sparc-tdep.c (sparc32_skip_prologue): Use
4299 skip_prologue_using_sal.
4301 2020-09-19 Tom Tromey <tom@tromey.com>
4303 * symfile.c (add_section_size_callback): Remove.
4304 (load_one_section): Rename from load_section_callback. Change
4306 (generic_load): Use foreach.
4308 2020-09-19 Tom Tromey <tom@tromey.com>
4310 * exec.c (add_to_section_table): Remove.
4311 (build_section_table): Use foreach.
4313 2020-09-19 Tom Tromey <tom@tromey.com>
4315 * elfread.c (elf_locate_sections): Change parameters.
4316 (elf_symfile_read): Use foreach.
4318 2020-09-19 Tom Tromey <tom@tromey.com>
4320 * cli/cli-dump.c (struct callback_data): Remove.
4321 (restore_one_section): Rename from restore_section_callback.
4323 (restore_binary_file): Change parameters.
4324 (restore_command): Use foreach.
4326 2020-09-19 Tom Tromey <tom@tromey.com>
4328 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4329 (gcore_copy_callback): Likewise.
4330 (gcore_memory_sections): Use foreach.
4332 2020-09-19 Tom Tromey <tom@tromey.com>
4334 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4335 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4337 (generic_elf_osabi_sniffer): Use foreach.
4338 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4339 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4341 2020-09-19 Tom Tromey <tom@tromey.com>
4343 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4344 (dwarf2_get_dwz_file): Use foreach.
4345 (dwarf2_locate_dwo_sections): Change parameters.
4346 (open_and_init_dwo_file): Use foreach.
4347 (dwarf2_locate_common_dwp_sections): Change parameters.
4348 (open_and_init_dwp_file): Use foreach.
4350 2020-09-19 Tom Tromey <tom@tromey.com>
4352 * symfile.h: (find_lowest_section): Don't declare.
4353 * symfile.c (find_lowest_section): Now static. Change
4355 (struct place_section_arg): Remove.
4356 (place_section): Change parameters.
4357 (addr_info_make_relative): Use foreach.
4358 (symfile_dummy_outputs): Remove.
4359 (default_symfile_relocate): Use foreach.
4361 2020-09-19 Tom Tromey <tom@tromey.com>
4363 * objfiles.c (add_to_objfile_sections): Rename from
4364 add_to_objfile_sections_full.
4365 (add_to_objfile_sections): Remove.
4366 (build_objfile_section_table): Use foreach.
4368 2020-09-19 Tom Tromey <tom@tromey.com>
4370 * stap-probe.c (get_stap_base_address_1): Remove.
4371 (get_stap_base_address): Use foreach.
4373 2020-09-19 Tom Tromey <tom@tromey.com>
4375 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4377 (gdb_bfd_close_or_warn): Use foreach.
4379 2020-09-19 Tom Tromey <tom@tromey.com>
4381 * corelow.c (add_to_thread_list): Change parameters.
4382 (core_target_open): Use foreach.
4384 2020-09-19 Tom Tromey <tom@tromey.com>
4386 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4389 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4391 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4394 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4396 * eval.c: Remove 'f-lang.h' include.
4397 (value_f90_subarray): Moved to f-lang.c.
4398 (eval_call): Renamed to...
4399 (evaluate_subexp_do_call): ...this, is no longer static, header
4400 comment moved into header file.
4401 (evaluate_funcall): Update call to eval_call.
4402 (skip_undetermined_arglist): Moved to f-lang.c.
4403 (fortran_value_subarray): Likewise.
4404 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4405 moved to evaluate_subexp_f.
4406 (calc_f77_array_dims): Moved to f-lang.c
4407 * expprint.c (print_subexp_funcall): New function.
4408 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4409 moved to print_subexp_f, OP_FUNCALL uses new function.
4410 (dump_subexp_body_funcall): New function.
4411 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4412 moved to dump_subexp_f, OP_FUNCALL uses new function.
4413 * expression.h (evaluate_subexp_do_call): Declare.
4414 * f-lang.c (value_f90_subarray): Moved from eval.c.
4415 (skip_undetermined_arglist): Likewise.
4416 (calc_f77_array_dims): Likewise.
4417 (fortran_value_subarray): Likewise.
4418 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4419 (operator_length_f): Likewise.
4420 (print_subexp_f): Likewise.
4421 (dump_subexp_body_f): Likewise.
4422 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4423 declaration of this operation to here.
4424 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4425 support moved to operator_length_f.
4426 * parser-defs.h (dump_subexp_body_funcall): Declare.
4427 (print_subexp_funcall): Declare.
4428 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4429 fortran-operator.def.
4431 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4433 * eval.c (fortran_value_subarray): New function, content is taken
4435 (evaluate_subexp_standard): ...here, in two places. Now arrays
4436 and strings both call the new function.
4437 (calc_f77_array_dims): Add header comment, handle strings.
4439 2020-09-18 Victor Collod <vcollod@nvidia.com>
4442 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4443 (i386_analyze_prologue): Call i386_skip_endbr.
4445 2020-09-18 Tom Tromey <tromey@adacore.com>
4447 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4448 (windows_nat_target::wait): Update.
4449 * target/wait.h (enum target_wait_flag): New. Use
4450 DEF_ENUM_FLAGS_TYPE.
4451 * target/target.h (target_wait): Change type of options.
4452 * target.h (target_options_to_string, default_target_wait):
4454 (struct target_ops) <wait>: Change type of options.
4455 * target.c (target_wait, default_target_wait, do_option): Change
4457 (target_options_to_string): Likewise.
4458 * target-delegates.c: Rebuild.
4459 * target-debug.h (target_debug_print_target_wait_flags): Rename
4460 from target_debug_print_options.
4461 * sol-thread.c (class sol_thread_target) <wait>: Update.
4462 (sol_thread_target::wait): Update.
4463 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4464 (rs6000_nat_target::wait): Update.
4465 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4467 (remote_target::wait_ns, remote_target::wait_as): Change type of
4469 (remote_target::wait): Update.
4470 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4471 (gdbsim_target::wait): Update.
4472 * record-full.c (class record_full_base_target) <wait>: Update.
4473 (record_full_wait_1): Change type of "options".
4474 (record_full_base_target::wait): Update.
4475 * record-btrace.c (class record_btrace_target) <wait>: Update.
4476 (record_btrace_target::wait): Update.
4477 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4479 (ravenscar_thread_target::wait): Update.
4480 * procfs.c (class procfs_target) <wait>: Update.
4481 (procfs_target::wait): Update.
4482 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4483 * obsd-nat.c (obsd_nat_target::wait): Update.
4484 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4485 (nto_procfs_target::wait): Update.
4486 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4487 * nbsd-nat.c (nbsd_wait): Change type of "options".
4488 (nbsd_nat_target::wait): Update.
4489 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4490 (thread_db_target::wait): Update.
4491 * linux-nat.h (class linux_nat_target) <wait>: Update.
4492 * linux-nat.c (linux_nat_target::wait): Update.
4493 (linux_nat_wait_1): Update.
4494 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4496 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4497 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4498 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4499 (go32_nat_target::wait): Update.
4500 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4501 * gnu-nat.c (gnu_nat_target::wait): Update.
4502 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4503 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4504 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4505 * darwin-nat.c (darwin_nat_target::wait): Update.
4506 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4507 (bsd_uthread_target::wait): Update.
4508 * aix-thread.c (class aix_thread_target) <wait>: Update.
4509 (aix_thread_target::wait): Update.
4511 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4513 * compile/compile-object-run.c (create_copied_type_recursive): New
4515 (compile_object_run): Use new function.
4517 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4519 * NEWS: Mention x86_64 Cygwin core file support.
4521 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4523 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4524 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4526 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4528 * windows-tdep.h: Add prototypes.
4529 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4530 (i386_windows_core_pid_to_str): Move and rename ...
4531 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4532 (windows_core_pid_to_str): ... and here.
4533 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4535 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4536 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4537 (amd64_windows_init_abi_common): ... and register.
4539 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4541 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4542 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4544 2020-09-18 Pedro Alves <pedro@palves.net>
4547 * thread.c (thread_find_command): Switch inferior before calling
4550 2020-09-17 Tom Tromey <tromey@adacore.com>
4552 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4553 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4554 (tdesc_arch_data_up): New typedef.
4555 (tdesc_use_registers, tdesc_data_alloc): Update.
4556 (tdesc_data_cleanup): Don't declare.
4557 * target-descriptions.c (tdesc_data_alloc): Return a
4559 (tdesc_arch_data_deleter::operator()): Rename from
4560 tdesc_data_cleanup. Change argument type.
4561 (tdesc_use_registers): Change early_data to an rvalue reference.
4562 (tdesc_use_registers): Don't use delete.
4563 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4564 * s390-tdep.c (s390_gdbarch_init): Update.
4565 * rx-tdep.c (rx_gdbarch_init): Update.
4566 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4567 * riscv-tdep.c (riscv_gdbarch_init): Update.
4568 * or1k-tdep.c (or1k_gdbarch_init): Update.
4569 * nios2-tdep.c (nios2_gdbarch_init): Update.
4570 * nds32-tdep.c (nds32_gdbarch_init): Update.
4571 * mips-tdep.c (mips_gdbarch_init): Update.
4572 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4573 * m68k-tdep.c (m68k_gdbarch_init): Update.
4574 * i386-tdep.c (i386_gdbarch_init): Update.
4575 * arm-tdep.c (arm_gdbarch_init): Update.
4576 * arc-tdep.c (arc_tdesc_init): Update.
4577 (arc_gdbarch_init): Update.
4578 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4580 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4582 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4583 for WOW64 processes.
4585 2020-09-17 Tom Tromey <tom@tromey.com>
4587 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4589 2020-09-17 Tom Tromey <tom@tromey.com>
4591 * value.c (preserve_values): Update.
4592 * python/py-type.c (save_objfile_types): Update.
4593 * guile/scm-type.c (save_objfile_types): Update.
4594 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4595 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4596 * compile/compile-object-run.c (compile_object_run): Update.
4598 2020-09-17 Tom Tromey <tom@tromey.com>
4600 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4602 <m_table>: Now htab_up.
4603 * typeprint.c (typedef_hash_table::recursively_update)
4604 (typedef_hash_table::add_template_parameters)
4605 (typedef_hash_table::typedef_hash_table): Update.
4606 (typedef_hash_table::~typedef_hash_table): Remove.
4607 (typedef_hash_table::typedef_hash_table)
4608 (typedef_hash_table::find_global_typedef)
4609 (typedef_hash_table::find_typedef): Update.
4611 2020-09-17 Tom Tromey <tom@tromey.com>
4613 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4615 2020-09-17 Tom Tromey <tom@tromey.com>
4617 * linespec.c (class decode_compound_collector)
4618 <~decode_compound_collector>: Remove.
4619 <m_unique_syms>: Now htab_up.
4620 (decode_compound_collector::operator ()): Update.
4621 (class symtab_collector) <~symtab_collector>: Remove.
4622 <m_symtab_table>: Now htab_up.
4623 (symtab_collector::operator ()): Update.
4625 2020-09-17 Tom Tromey <tom@tromey.com>
4627 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4628 (filename_seen_cache::clear): Update.
4629 (~filename_seen_cache): Remove.
4630 (filename_seen_cache::seen): Update.
4631 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4633 <~filename_seen_cache>: Remove.
4636 2020-09-17 Tom Tromey <tom@tromey.com>
4638 * completer.c (completion_tracker::discard_completions)
4639 (completion_tracker::~completion_tracker)
4640 (completion_tracker::maybe_add_completion)
4641 (completion_tracker::remove_completion)
4642 (completion_tracker::recompute_lowest_common_denominator)
4643 (completion_tracker::build_completion_result): Update.
4644 * completer.h (class completion_tracker) <have_completions>:
4646 <m_entries_hash>: Now htab_up.
4648 2020-09-17 Tom Tromey <tom@tromey.com>
4650 * breakpoint.c (ambiguous_names_p): Use htab_up.
4652 2020-09-17 Tom Tromey <tom@tromey.com>
4654 * auto-load.c (struct auto_load_pspace_info)
4655 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4656 <loaded_script_files, loaded_script_texts>: Change type to
4658 (~auto_load_pspace_info) Remove.
4659 (init_loaded_scripts_info, maybe_add_script_file)
4660 (maybe_add_script_text, auto_load_info_scripts): Update.
4662 2020-09-17 Tom Tromey <tromey@adacore.com>
4664 * c-exp.y (name_obstack): Now static.
4666 2020-09-17 Chungyi Chi <demonic@csie.io>
4668 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4670 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4672 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4673 (add_solib_catchpoint): Likewise.
4674 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4676 (add_solib_catchpoint): Change int parameter/variable to bool.
4677 (catch_load_or_unload): Likewise.
4678 (init_catchpoint): Likewise.
4679 (create_fork_vfork_event_catchpoint): Likewise.
4680 (catch_fork_command_1): Likewise.
4681 (catch_exec_command_1): Likewise.
4683 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4685 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4686 Change instance_flags to m_instance_flags.
4688 2020-09-16 Tom Tromey <tromey@adacore.com>
4691 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4693 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4695 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4697 (fbsd_nat_target::insert_exec_catchpoint)
4698 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4699 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4700 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4702 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4704 * configure.ac: Remove check for kinfo_getvmmap().
4705 * configure, config.in: Regenerate.
4706 * fbsd-nat.c (fbsd_read_mapping): Remove
4707 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4708 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4709 kinfo_get_vmmap() are always present.
4711 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4713 * fbsd-nat.c: Always include support for
4714 TARGET_OBJECT_SIGNAL_INFO.
4716 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4718 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4719 sysctl and remove procfs fallback.
4721 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4723 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4724 * fbsd-nat.h: Likewise.
4726 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4728 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4731 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4733 * ada-lang.c (ada_language_data): Delete.
4734 (ada_language): Remove references to ada_language_data.
4735 * c-lang.c (c_language_data): Delete.
4736 (c_language): Remove references to c_language_data.
4737 (cplus_language_data): Delete.
4738 (cplus_language): Remove references to cplus_language_data.
4739 (asm_language_data): Delete.
4740 (asm_language): Remove references to asm_language_data.
4741 (minimal_language_data): Delete.
4742 (minimal_language): Remove references to minimal_language_data.
4743 * d-lang.c (d_language_data): Delete.
4744 (d_language): Remove references to d_language_data.
4745 * f-lang.c (f_language_data): Delete.
4746 (f_language): Remove references to f_language_data.
4747 * go-lang.c (go_language_data): Delete.
4748 (go_language): Remove references to go_language_data.
4749 * language.c (unknown_language_data): Delete.
4750 (unknown_language): Remove references to unknown_language_data.
4751 (auto_language_data): Delete.
4752 (auto_language): Remove references to auto_language_data.
4753 * language.h (language_data): Delete struct.
4754 (language_defn): No longer inherit from language_data.
4755 * m2-lang.c (m2_language_data): Delete.
4756 (m2_language): Remove references to m2_language_data.
4757 * objc-lang.c (objc_language_data): Delete.
4758 (objc_language): Remove references to objc_language_data.
4759 * opencl-lang.c (opencl_language_data): Delete.
4760 (opencl_language): Remove references to opencl_language_data.
4761 * p-lang.c (pascal_language_data): Delete.
4762 (pascal_language): Remove references to pascal_language_data.
4763 * rust-lang.c (rust_language_data): Delete.
4764 (rust_language): Remove references to rust_language_data.
4766 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4768 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4770 (ada_language::opcode_print_table): New member function.
4771 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4772 (c_language::opcode_print_table): New member function.
4773 (cplus_language_data): Remove la_op_print_tab initializer.
4774 (cplus_language::opcode_print_table): New member function.
4775 (asm_language_data): Remove la_op_print_tab initializer.
4776 (asm_language::opcode_print_table): New member function.
4777 (minimal_language_data): Remove la_op_print_tab initializer.
4778 (minimal_language::opcode_print_table): New member function.
4779 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4780 (d_language::opcode_print_table): New member function.
4781 * expprint.c (print_subexp_standard): Update call to
4783 (op_string): Likewise.
4784 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4785 (f_language::opcode_print_table): New member function.
4786 * go-lang.c (go_language_data): Remove la_op_print_tab
4788 (go_language::opcode_print_table): New member function.
4789 * language.c (unknown_language_data): Remove la_op_print_tab
4791 (unknown_language::opcode_print_table): New member function.
4792 (auto_language_data): Remove la_op_print_tab initializer.
4793 (auto_language::opcode_print_table): New member function.
4794 * language.h (language_data): Remove la_op_print_tab field.
4795 (language_defn::opcode_print_table): Declare new member function.
4796 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4798 (m2_language::opcode_print_table): New member function.
4799 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4801 (objc_language::opcode_print_table): New member function.
4802 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4804 (opencl_language::opcode_print_table): New member function.
4805 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4807 (pascal_language::opcode_print_table): New member function.
4808 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4810 (rust_language::opcode_print_table): New member function.
4812 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4814 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4815 (ada_language::expression_ops): New member function.
4816 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4817 (c_language::expression_ops): New member function.
4818 (cplus_language_data): Remove la_exp_desc initializer.
4819 (cplus_language::expression_ops): New member function.
4820 (asm_language_data): Remove la_exp_desc initializer.
4821 (asm_language::expression_ops): New member function.
4822 (minimal_language_data): Remove la_exp_desc initializer.
4823 (minimal_language::expression_ops): New member function.
4824 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4825 (d_language::expression_ops): New member function.
4826 * eval.c (evaluate_subexp): Update call to expression_ops.
4827 * expprint.c (print_subexp): Likewise.
4828 (op_name): Likewise.
4829 (dump_subexp_body): Likewise.
4830 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4831 (f_language::expression_ops): New member function.
4832 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4833 (go_language::expression_ops): New member function.
4834 * language.c (language_defn::expression_ops): New function.
4835 (unknown_language_data): Remove la_exp_desc initializer.
4836 (auto_language_data): Likewise.
4837 * language.h (language_data): Remove la_exp_desc field.
4838 (language_defn::expression_ops): Declare new member function.
4839 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4840 (m2_language::expression_ops): New member function.
4841 * objc-lang.c (objc_language_data): Remove la_exp_desc
4843 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4845 (opencl_language::expression_ops): New member function.
4846 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4847 * parse.c (operator_length): Update call to expression_ops.
4848 (exp_iterate): Likewise.
4849 * rust-lang.c (rust_language_data): Remove la_exp_desc
4851 (ruse_language::expression_ops): New member function.
4853 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4855 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4857 (ada_language::varobj_ops): New member function.
4858 * c-lang.c (c_language_data): Remove la_varobj_ops
4860 (cplus_language_data): Likewise.
4861 (cplus_language::varobj_ops): New member function.
4862 (asm_language_data): Remove la_varobj_ops initializer.
4863 (minimal_language_data): Likewise.
4864 * d-lang.c (d_language_data): Likewise.
4865 * f-lang.c (f_language_data): Likewise.
4866 * go-lang.c (go_language_data): Likewise.
4867 * language.c (language_defn::varobj_ops): New function.
4868 (unknown_language_data): Remove la_varobj_ops
4870 (auto_language_data): Likewise.
4871 * language.h (language_data): Remove la_varobj_ops field.
4872 (language_defn::varobj_ops): Declare new member function.
4873 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4874 * objc-lang.c (objc_language_data): Likewise.
4875 * opencl-lang.c (opencl_language_data): Likewise.
4876 * p-lang.c (pascal_language_data): Likewise.
4877 * rust-lang.c (rust_language_data): Likewise.
4878 * varobj.c (varobj_create): Update call to varobj_ops.
4879 * varobj.h (default_varobj_ops): Delete define.
4881 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4883 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4885 * c-lang.c (c_language_data): Likewise.
4886 (c_language::macro_expansion): New member function.
4887 (cplus_language_data): Likewise.
4888 (cplus_language::macro_expansion): New member function.
4889 (asm_language_data): Likewise.
4890 (asm_language::macro_expansion): New member function.
4891 (minimal_language_data): Likewise.
4892 (minimal_language::macro_expansion): New member function.
4893 * d-lang.c (d_language_data): Remove la_macro_expansion
4895 * f-lang.c (f_language_data): Likewise.
4896 * go-lang.c (go_language_data): Likewise.
4897 * language.c (unknown_language_data): Likewise.
4898 (auto_language_data): Likewise.
4899 * language.h (language_data): Remove la_macro_expansion field.
4900 (language_defn::macro_expansion): New member function.
4901 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4903 * objc-lang.c (objc_language_data): Likewise.
4904 (objc_language::macro_expansion): New member function.
4905 * opencl-lang.c (opencl_language_data): Likewise.
4906 (opencl_language::macro_expansion): New member function.
4907 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4909 * rust-lang.c (rust_language_data): Likewise.
4910 * symtab.c (default_collect_symbol_completion_matches_break_on):
4911 Update call to macro_expansion.
4913 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4915 * ada-lang.c (ada_language_data): Remove la_array_ordering
4917 * c-lang.c (c_language_data): Likewise.
4918 (cplus_language_data): Likewise.
4919 (asm_language_data): Likewise.
4920 (minimal_language_data): Likewise.
4921 * d-lang.c (d_language_data): Likewise.
4922 * dwarf2/read.c (read_array_order): Update for call to
4924 * f-lang.c (f_language_data): Remove la_array_ordering
4926 (f_language::array_ordering): New member function.
4927 * go-lang.c (go_language_data): Remove la_array_ordering
4929 * language.c (unknown_language_data): Likewise.
4930 (auto_language_data): Likewise.
4931 * language.h (language_data): Delete la_array_ordering field.
4932 (language_defn::array_ordering): New member function.
4933 * m2-lang.c (m2_language_data): Remove la_array_ordering
4935 * objc-lang.c (objc_language_data): Likewise.
4936 * opencl-lang.c (opencl_language_data): Likewise.
4937 * p-lang.c (pascal_language_data): Likewise.
4938 * rust-lang.c (rust_language_data): Likewise.
4940 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4942 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4944 * c-lang.c (c_language_data): Likewise.
4945 (cplus_language_data): Likewise.
4946 (asm_language_data): Likewise.
4947 (minimal_language_data): Likewise.
4948 * d-lang.c (d_language_data): Likewise.
4949 * f-lang.c (f_language_data): Likewise.
4950 (f_language::case_sensitivity): New member function.
4951 * go-lang.c (go_language_data): Remove la_case_sensitivity
4953 * language.c (enum case_mode): Moved here from language.h.
4954 (case_mode): Make static.
4955 (show_case_command): Update for case_sensitivity being a method.
4956 (set_case_command): Likewise.
4957 (set_range_case): Likewise.
4958 (unknown_language_data): Remove la_case_sensitivity initializer.
4959 (auto_language_data): Likewise.
4960 * language.h (case_mode): Delete, move enum declaration to
4962 (language_data): Delete la_case_sensitivity field.
4963 (language_defn::case_sensitivity): New member function.
4964 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4966 * objc-lang.c (objc_language_data): Likewise.
4967 * opencl-lang.c (opencl_language_data): Likewise.
4968 * p-lang.c (pascal_language_data): Likewise.
4969 * rust-lang.c (rust_language_data): Likewise.
4971 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4973 * ada-lang.c (ada_language_data): Remove la_range_check
4975 * c-lang.c (c_language_data): Likewise.
4976 (cplus_language_data): Likewise.
4977 (asm_language_data): Likewise.
4978 (minimal_language_data): Likewise.
4979 * d-lang.c (d_language_data): Likewise.
4980 * f-lang.c (f_language_data): Likewise.
4981 (f_language::range_checking_on_by_default): New member function.
4982 * go-lang.c (go_language_data): Remove la_range_check initializer.
4983 * language.c (enum range_mode): Moved here from language.h.
4984 (range_mode): Made static.
4985 (show_range_command): Update to use
4986 range_checking_on_by_default.
4987 (set_range_command): Likewise.
4988 (set_range_case): Likewise.
4989 (unknown_language_data): Remove la_range_check initializer.
4990 (auto_language_data): Likewise.
4991 * language.h (range_mode): Delete. Enum definition moved to
4993 (language_data): Remove la_range_check field.
4994 (language_defn::range_checking_on_by_default): New member
4996 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4997 (m2_language::range_checking_on_by_default): New member function.
4998 * objc-lang.c (objc_language_data): Remove la_range_check
5000 * opencl-lang.c (opencl_language_data): Likewise.
5001 * p-lang.c (pascal_language_data): Likewise.
5002 (pascal_language::range_checking_on_by_default): New member
5004 * rust-lang.c (rust_language_data): Remove la_range_check
5006 (rust_language::range_checking_on_by_default): New member
5009 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5011 * dwarf2/read.c (dwarf2_physname): Remove special case for
5013 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5016 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5018 * ada-lang.c (ada_language_data): Remove
5019 la_store_sym_names_in_linkage_form_p initializer.
5020 (ada_language::store_sym_names_in_linkage_form_p): New member
5022 * c-lang.c (c_language_data): Remove
5023 la_store_sym_names_in_linkage_form_p initializer.
5024 (c_language::store_sym_names_in_linkage_form_p): New member
5026 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5028 (asm_language_data): Likewise.
5029 (asm_language::store_sym_names_in_linkage_form_p): New member
5031 (minimal_language_data): Remove
5032 la_store_sym_names_in_linkage_form_p initializer.
5033 (minimal_language::store_sym_names_in_linkage_form_p): New member
5035 * d-lang.c (d_language_data): Remove
5036 la_store_sym_names_in_linkage_form_p initializer.
5037 * dwarf2/read.c (dwarf2_physname): Update call to
5038 store_sym_names_in_linkage_form_p.
5039 * f-lang.c (f_language_data): Remove
5040 la_store_sym_names_in_linkage_form_p initializer.
5041 * go-lang.c (go_language_data): Remove
5042 la_store_sym_names_in_linkage_form_p initializer.
5043 * language.c (unknown_language_data): Remove
5044 la_store_sym_names_in_linkage_form_p initializer.
5045 (unknown_language::store_sym_names_in_linkage_form_p): New member
5047 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5049 (auto_language::store_sym_names_in_linkage_form_p): New member
5051 * language.h (language_data): Remove
5052 la_store_sym_names_in_linkage_form_p member variable.
5053 (language_defn::store_sym_names_in_linkage_form_p): New member
5055 * m2-lang.c (m2_language_data): Remove
5056 la_store_sym_names_in_linkage_form_p initializer.
5057 * objc-lang.c (objc_language_data): Likewise.
5058 * opencl-lang.c (opencl_language_data): Likewise.
5059 * p-lang.c (pascal_language_data): Likewise.
5060 * rust-lang.c (rust_language_data): Likewise.
5062 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5064 * ada-lang.c (ada_language_data): Remove string_lower_bound
5066 * c-lang.c (c_language_data): Likewise.
5067 (cplus_language_data): Likewise.
5068 (asm_language_data): Likewise.
5069 (minimal_language_data): Likewise.
5070 * d-lang.c (d_language_data): Likewise.
5071 * f-lang.c (f_language_data): Likewise.
5072 * go-lang.c (go_language_data): Likewise.
5073 * language.c (unknown_language_data): Likewise.
5074 (auto_language_data): Likewise.
5075 * language.h (language_data): Remove string_lower_bound field.
5076 (language_defn::string_lower_bound): New member function.
5077 * m2-lang.c (m2_language_data): Remove string_lower_bound
5079 (m2_language::string_lower_bound): New member function.
5080 * objc-lang.c (objc_language_data): Remove string_lower_bound
5082 * opencl-lang.c (opencl_language_data): Likewise.
5083 * p-lang.c (pascal_language_data): Likewise.
5084 * rust-lang.c (rust_language_data): Likewise.
5085 * valops.c (value_cstring): Update call to string_lower_bound.
5086 (value_string): Likewise.
5087 * value.c (allocate_repeated_value): Likewise.
5089 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5091 * valops.c (value_repeat): Fix incorrect argument name in comment.
5093 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5095 * ada-lang.c (ada_language_data): Remove c_style_arrays
5097 (ada_language::c_style_arrays_p): New member fuction.
5098 * c-lang.c (c_language_data): Remove c_style_arrays
5100 (cplus_language_data): Likewise.
5101 (asm_language_data): Likewise.
5102 (minimal_language_data): Likewise.
5103 * d-lang.c (d_language_data): Likewise.
5104 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5105 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5106 (f_language::c_style_arrays_p): New member function.
5107 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5108 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5109 * language.c (unknown_language_data): Remove c_style_arrays
5111 (auto_language_data): Likewise.
5112 * language.h (language_data): Remove c_style_arrays field.
5113 (language_defn::c_style_arrays_p): New member function.
5114 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5115 (m2_language::c_style_arrays_p): New member function.
5116 * objc-lang.c (objc_language_data): Remove c_style_arrays
5118 * opencl-lang.c (opencl_language_data): Likewise.
5119 * p-lang.c (pascal_language_data): Likewise.
5120 * rust-lang.c (rust_language_data): Likewise.
5121 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5122 and update local variable to a bool.
5123 * valops.c (value_cast): Update call to c_style_arrays_p.
5124 (value_array): Likewise.
5125 * value.c (coerce_array): Likewise.
5127 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5129 * ada-lang.c (ada_language_data): Remove la_language initializer.
5130 * c-lang.c (c_language_data): Likewise.
5131 (cplus_language_data): Likewise.
5132 (asm_language_data): Likewise.
5133 (minimal_language_data): Likewise.
5134 * d-lang.c (d_language_data): Likewise.
5135 * f-lang.c (f_language_data): Likewise.
5136 * go-lang.c (go_language_data): Likewise.
5137 * language.c (unknown_language_data): Likewise.
5138 (auto_language_data): Likewise.
5139 * language.h (language_data): Remove la_language field.
5140 (language_defn::language_defn): Initialise la_language field.
5141 (language_defn::la_language): New member variable.
5142 * m2-lang.c (m2_language_data): Remove la_language field.
5143 * objc-lang.c (objc_language_data): Likewise.
5144 * opencl-lang.c (opencl_language_data): Likewise.
5145 * p-lang.c (pascal_language_data): Likewise.
5146 * rust-lang.c (rust_language_data): Likewise.
5148 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5150 * ada-lang.c (ada_extensions): Delete, moved into
5151 ada_language::filename_extensions.
5152 (ada_language_data): Remove la_filename_extensions initializer.
5153 (ada_language::filename_extensions): New member function.
5154 * c-lang.c (c_extensions): Delete, moved into
5155 c_language::filename_extensions.
5156 (c_language_data): Remove la_filename_extensions initializer.
5157 (c_language::filename_extensions): New member function.
5158 (cplus_extensions): Delete, moved into
5159 cplus_language::filename_extensions.
5160 (cplus_language_data): Remove la_filename_extensions initializer.
5161 (cplus_language::filename_extensions): New member function.
5162 (asm_extensions): Delete, moved into
5163 asm_language::filename_extensions.
5164 (asm_language_data): Remove la_filename_extensions initializer.
5165 (asm_language::filename_extensions): New member function.
5166 (minimal_language_data): Remove la_filename_extensions
5168 * d-lang.c (d_extensions): Delete, moved into
5169 d_language::filename_extensions.
5170 (d_language_data): Remove la_filename_extensions initializer.
5171 (d_language::filename_extensions): New member function.
5172 * f-lang.c (f_extensions): Delete, moved into
5173 f_language::filename_extensions.
5174 (f_language_data): Remove la_filename_extensions initializer.
5175 (f_language::filename_extensions): New member function.
5176 * go-lang.c (go_language_data): Remove la_filename_extensions
5178 * language.c (add_set_language_command): Update now that
5179 filename_extensions returns a vector.
5180 (unknown_language_data): Remove la_filename_extensions
5182 (auto_language_data): Likewise.
5183 * language.h (language_data): Remove la_filename_extensions field.
5184 (language_defn::filename_extensions): New member function.
5185 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5187 * objc-lang.c (objc_extensions): Delete, moved into
5188 objc_language::filename_extensions.
5189 (objc_language_data): Remove la_filename_extensions initializer.
5190 (objc_language::filename_extensions): New member function.
5191 * opencl-lang.c (opencl_language_data): Remove
5192 la_filename_extensions initializer.
5193 * p-lang.c (pascal_extensions): Delete, moved into
5194 pascal_language::filename_extensions.
5195 (pascal_language_data): Remove la_filename_extensions initializer.
5196 (pascal_language::filename_extensions): New member function.
5197 * rust-lang.c (rust_extensions): Delete, moved into
5198 rust_language::filename_extensions.
5199 (rust_language_data): Remove la_filename_extensions initializer.
5200 (rust_language::filename_extensions): New member function.
5201 * symfile.c (add_filename_language): Add new assert.
5203 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5205 * ada-lang.c (ada_language_data): Remove la_name and
5206 la_natural_name initializers.
5207 (ada_language::name): New member function.
5208 (ada_language::natural_name): New member function.
5209 * c-lang.c (c_language_data): Remove la_name and
5210 la_natural_name initializers.
5211 (c_language::name): New member function.
5212 (c_language::natural_name): New member function.
5213 (cplus_language_data): Remove la_name and
5214 la_natural_name initializers.
5215 (cplus_language::name): New member function.
5216 (cplus_language::natural_name): New member function.
5217 (asm_language_data): Remove la_name and
5218 la_natural_name initializers.
5219 (asm_language::name): New member function.
5220 (asm_language::natural_name): New member function.
5221 (minimal_language_data): Remove la_name and
5222 la_natural_name initializers.
5223 (minimal_language::name): New member function.
5224 (minimal_language::natural_name): New member function.
5225 * compile/compile.c (compile_to_object): Update call to
5226 lanugage_defn::name.
5227 * d-lang.c (d_language_data): Remove la_name and
5228 la_natural_name initializers.
5229 (d_language::name): New member function.
5230 (d_language::natural_name): New member function.
5231 * expprint.c (print_subexp_standard): Update call to
5232 language_defn::name.
5233 (dump_raw_expression): Likewise
5234 (dump_prefix_expression): Likewise.
5235 * f-lang.c (f_language_data): Remove la_name and
5236 la_natural_name initializers.
5237 (f_language::name): New member function.
5238 (f_language::natural_name): New member function.
5239 * go-lang.c (go_language_data): Remove la_name and
5240 la_natural_name initializers.
5241 (go_language::name): New member function.
5242 (go_language::natural_name): New member function.
5243 * language.c (show_language_command): Update call to
5244 language_defn::name.
5245 (set_language_command): Likewise.
5246 (language_enum): Likewise.
5247 (language_str): Likewise.
5248 (add_set_language_command): Likewise, use
5249 language_defn::natural_name in the doc string.
5250 (unknown_language_data): Remove la_name and
5251 la_natural_name initializers.
5252 (unknown_language::name): New member function.
5253 (unknown_language::natural_name): New member function.
5254 (auto_language_data): Remove la_name and
5255 la_natural_name initializers.
5256 (auto_language::name): New member function.
5257 (auto_language::natural_name): New member function.
5258 (language_lookup_primitive_type_as_symbol): Update call to
5259 language_defn::name.
5260 * language.h (language_data): Remove la_name and la_natural_name
5262 (language_defn::name): New member function.
5263 (language_defn::natural_name): New member function.
5264 * m2-lang.c (m2_language_data): Remove la_name and
5265 la_natural_name initializers.
5266 (m2_language::name): New member function.
5267 (m2_language::natural_name): New member function.
5268 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5269 language_defn::natural_name.
5270 * objc-lang.c (objc_language_data): Remove la_name and
5271 la_natural_name initializers.
5272 (objc_language::name): New member function.
5273 (objc_language::natural_name): New member function.
5274 * opencl-lang.c (opencl_language_data): Remove la_name and
5275 la_natural_name initializers.
5276 (opencl_language::name): New member function.
5277 (opencl_language::natural_name): New member function.
5278 * p-lang.c (pascal_language_data): Remove la_name and
5279 la_natural_name initializers.
5280 (pascal_language::name): New member function.
5281 (pascal_language::natural_name): New member function.
5282 * rust-lang.c (rust_language_data): Remove la_name and
5283 la_natural_name initializers.
5284 (rust_language::name): New member function.
5285 (rust_language::natural_name): New member function.
5286 * symtab.c (lookup_language_this): Update call to
5287 language_defn::name.
5289 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5291 * ada-lang.c (ada_language_data): Remove la_name_of_this
5293 * ax-gdb.c (gen_expr): Update call to name_of_this.
5294 * c-exp.y (classify_name): Likewise.
5295 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5296 (cplus_language_data): Likewise.
5297 (cplus_language::name_of_this): New member function.
5298 (asm_language_data): Remove la_name_of_this initializer.
5299 (minimal_language_data): Likewise.
5300 * d-lang.c (d_language_data): Likewise.
5301 (d_language::name_of_this): New member function.
5302 * expprint.c (print_subexp_standard): Update call to name_of_this.
5303 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5304 * go-lang.c (go_language_data): Likewise.
5305 * language.c (unknown_language_data): Likewise.
5306 (unknown_language::name_of_this): New member function.
5307 (auto_language_data): Remove la_name_of_this initializer.
5308 (auto_language::name_of_this): New member function.
5309 * language.h (language_data): Delete la_name_of_this member
5311 (language_defn::name_of_this): New member function.
5312 * m2-lang.c (m2_language_data): Remove la_name_of_this
5314 * objc-lang.c (objc_language_data): Likewise.
5315 (objc_language::name_of_this): New member function.
5316 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5318 * p-lang.c (pascal_language_data): Likewise.
5319 (pascal_language::name_of_this): New member function.
5320 * rust-lang.c (rust_language_data): Remove la_name_of_this
5322 * symtab.c (lookup_language_this): Update call to name_of_this.
5323 (lookup_symbol_aux): Likewise.
5324 * valops.c (value_of_this): Likewise.
5326 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5328 * ada-lang.c (ada_language_data): Remove
5329 la_struct_too_deep_ellipsis initializer.
5330 (ada_language::struct_too_deep_ellipsis): New member function.
5331 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5333 (cplus_language_data): Likewise.
5334 (asm_language_data): Likewise.
5335 (minimal_language_data): Likewise.
5336 * cp-valprint.c (cp_print_value): Update call to
5337 struct_too_deep_ellipsis.
5338 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5340 * f-lang.c (f_language_data): Likewise.
5341 (f_language::struct_too_deep_ellipsis): New member function.
5342 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5344 * language.c (unknown_language_data): Likewise.
5345 (auto_language_data): Likewise.
5346 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5348 (language_defn::struct_too_deep_ellipsis): New member function.
5349 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5351 * objc-lang.c (objc_language_data): Likewise.
5352 * opencl-lang.c (opencl_language_data): Likewise.
5353 * p-lang.c (pascal_language_data): Likewise.
5354 * rust-lang.c (rust_language_data): Likewise.
5355 * valprint.c (val_print_check_max_depth): Update call to
5356 struct_too_deep_ellipsis.
5358 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5360 * MAINTAINERS (Write After Approval): Add myself.
5362 2020-09-15 Tom Tromey <tom@tromey.com>
5364 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5367 2020-09-15 Tom Tromey <tom@tromey.com>
5369 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5370 and TYPE_CODE_METHODPTR cases.
5371 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5372 (c_value_print_inner): Update.
5373 * valprint.c (generic_value_print_memberptr): New function, from
5374 c_value_print_memberptr.
5375 (generic_value_print): Use it. Call cplus_print_method_ptr.
5377 2020-09-15 Tom Tromey <tromey@adacore.com>
5379 * python/python-internal.h (PyInt_FromLong): Remove define.
5380 * python/py-value.c (convert_value_from_python): Use
5381 gdb_py_object_from_longest.
5382 * python/py-type.c (typy_get_code): Use
5383 gdb_py_object_from_longest.
5384 * python/py-symtab.c (salpy_get_line): Use
5385 gdb_py_object_from_longest.
5386 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5387 gdb_py_object_from_longest.
5388 * python/py-record.c (recpy_gap_reason_code): Use
5389 gdb_py_object_from_longest.
5390 * python/py-record-btrace.c (recpy_bt_insn_size)
5391 (recpy_bt_func_level, btpy_list_count): Use
5392 gdb_py_object_from_longest.
5393 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5394 gdb_py_object_from_longest. Fix error handling.
5395 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5396 gdb_py_object_from_longest.
5397 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5398 gdb_py_object_from_longest.
5399 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5400 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5401 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5403 2020-09-15 Tom Tromey <tromey@adacore.com>
5405 * python/python.c (gdbpy_parameter_value): Use
5406 gdb_py_object_from_ulongest.
5408 2020-09-15 Tom Tromey <tromey@adacore.com>
5410 * python/py-infevents.c (create_register_changed_event_object):
5411 Use gdb_py_object_from_longest.
5412 * python/py-exitedevent.c (create_exited_event_object): Use
5413 gdb_py_object_from_longest.
5415 2020-09-15 Tom Tromey <tromey@adacore.com>
5417 * python/python.c (gdbpy_parameter_value): Use
5418 gdb_py_object_from_longest.
5419 * python/py-type.c (convert_field, typy_range): Use
5420 gdb_py_object_from_longest.
5421 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5422 gdb_py_object_from_longest.
5423 * python/py-lazy-string.c (stpy_get_length): Use
5424 gdb_py_object_from_longest.
5425 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5426 gdb_py_object_from_longest.
5427 * python/py-infevents.c (create_memory_changed_event_object): Use
5428 gdb_py_object_from_longest.
5429 * python/py-inferior.c (infpy_get_num): Use
5430 gdb_py_object_from_longest.
5431 (infpy_get_pid): Likewise.
5433 2020-09-15 Tom Tromey <tromey@adacore.com>
5435 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5437 * python/py-value.c (valpy_long): Use
5438 gdb_py_object_from_ulongest.
5439 * python/py-symtab.c (salpy_get_pc): Use
5440 gdb_py_object_from_ulongest.
5441 (salpy_get_last): Likewise.
5442 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5443 gdb_py_object_from_ulongest.
5444 * python/py-lazy-string.c (stpy_get_address): Use
5445 gdb_py_object_from_ulongest.
5446 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5447 * python/py-arch.c (archpy_disassemble): Use
5448 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5451 2020-09-15 Tom Tromey <tromey@adacore.com>
5453 * python/python-internal.h (gdb_py_long_from_longest): Remove
5455 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5456 * python/py-type.c (convert_field, typy_get_sizeof): Use
5457 gdb_py_object_from_longest.
5458 * python/py-record-btrace.c (btpy_list_index): Use
5459 gdb_py_object_from_longest.
5461 2020-09-15 Tom Tromey <tromey@adacore.com>
5463 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5464 * python/py-record.c (recpy_element_number): Use
5465 gdb_py_object_from_longest.
5466 (recpy_gap_number): Likewise.
5468 2020-09-15 Tom Tromey <tromey@adacore.com>
5470 * top.c (ui::ui): Update.
5471 (highest_ui_num): Remove.
5472 * top.h (struct ui) <num>: Remove.
5474 2020-09-15 Tom Tromey <tromey@adacore.com>
5476 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5477 * ui-style.c (ansi_regex_text): Now array.
5478 * rust-exp.y (number_regex_text): Now array.
5479 * linespec.c (linespec_quote_characters): Now array.
5480 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5483 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5485 * debuginfod-support.c (debuginfod_client_deleter): New.
5486 (debuginfod_client_up): New.
5487 (debuginfod_init): Return debuginfod_client_up.
5488 (debuginfod_source_query): Adjust.
5489 (debuginfod_debuginfo_query): Adjust.
5491 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5493 * debuginfod-support.c (debuginfod_source_query): Use
5494 make_unique_xstrdup.
5496 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5498 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5499 with `type::instance_flags`.
5501 2020-09-14 Michael Mullin <masmullin@gmail.com>
5503 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5504 Remove baton parameter.
5506 2020-09-14 Pedro Alves <pedro@palves.net>
5508 * Makefile.in (SELFTESTS_SRCS): Add
5509 unittests/enum-flags-selftests.c.
5510 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5511 btrace_function_flags instead of enum btrace_function_flag.
5512 * compile/compile-c-types.c (convert_qualified): Use
5514 * compile/compile-cplus-symbols.c (convert_one_symbol)
5515 (convert_symbol_bmsym):
5516 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5517 (compile_cplus_convert_struct_or_union_methods)
5518 (compile_cplus_instance::convert_qualified_base):
5519 * go-exp.y (parse_string_or_char): Add cast to int.
5520 * unittests/enum-flags-selftests.c: New file.
5521 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5522 type to btrace_thread_flags from btrace_thread_flag.
5523 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5524 local's type to btrace_thread_flags from btrace_thread_flag. Add
5527 2020-09-14 Pedro Alves <pedro@palves.net>
5529 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5530 * gdbtypes.c (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 * gdbtypes.h (address_space_name_to_int): Rename to ...
5535 (address_space_name_to_type_instance_flags): ... this.
5536 (address_space_int_to_name): Rename to ...
5537 (address_space_type_instance_flags_to_name): ... this.
5538 * type-stack.c (type_stack::insert): Adjust to rename.
5539 * type-stack.h (type_stack::insert): Likewise.
5541 2020-09-14 Pedro Alves <pedro@palves.net>
5542 Andrew Burgess <andrew.burgess@embecosm.com>
5544 * avr-tdep.c (avr_address_class_type_flags): Return
5545 type_instance_flags.
5546 (avr_address_class_type_flags_to_name): Take a
5547 type_instance_flags.
5548 (avr_address_class_name_to_type_flags): Return bool and take a
5549 type_instance_flags.
5550 * d-lang.c (build_d_types): Use type::set_instance_flags.
5551 * ft32-tdep.c (ft32_address_class_type_flags): Return
5552 type_instance_flags.
5553 (ft32_address_class_type_flags_to_name): Take a
5554 type_instance_flags.
5555 (ft32_address_class_name_to_type_flags): Return bool and take a
5556 type_instance_flags.
5557 (ft32_gdbarch_init): Use type::set_instance_flags.
5558 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5559 * gdbarch.h, gdbarch.c: Regenerate.
5560 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5561 (address_class_name_to_type_flags): Use type_instance_flags and
5563 * gdbtypes.c (address_space_name_to_int)
5564 (address_space_int_to_name, make_qualified_type): Use
5565 type_instance_flags.
5566 (make_qualified_type): Use type_instance_flags and
5567 type::set_instance_flags.
5568 (make_type_with_address_space, make_cv_type, make_vector_type)
5569 (check_typedef): Use type_instance_flags.
5570 (recursive_dump_type): Cast type_instance_flags to unsigned for
5572 (copy_type_recursive): Use type::set_instance_flags.
5573 (gdbtypes_post_init): Use type::set_instance_flags.
5574 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5575 <m_instance_flags>: ... this.
5576 <instance_flags, set_instance_flags>: New methods.
5577 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5578 (SET_TYPE_INSTANCE_FLAGS): New.
5579 (address_space_name_to_int, address_space_int_to_name)
5580 (make_type_with_address_space): Pass flags using
5581 type_instance_flags instead of int.
5582 * stabsread.c (cleanup_undefined_types_noname): Use
5583 type::set_instance_flags.
5584 * s390-tdep.c (s390_address_class_type_flags): Return
5585 type_instance_flags.
5586 (s390_address_class_type_flags_to_name): Take a
5587 type_instance_flags.
5588 (s390_address_class_name_to_type_flags): Return bool and take a
5589 type_instance_flags.
5590 * type-stack.c (type_stack::follow_types): Use
5591 type_instance_flags.
5592 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5594 2020-09-14 Tom Tromey <tromey@adacore.com>
5596 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5597 * x86-tdep.c (x86_is_thunk_register_name)
5598 (x86_in_indirect_branch_thunk): Update.
5599 * sparc64-tdep.c (sparc64_fpu_register_names)
5600 (sparc64_cp0_register_names, sparc64_register_names)
5601 (sparc64_pseudo_register_names): Now const.
5602 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5603 cp0_registers_num>: Now const.
5604 * sparc-tdep.c (sparc_core_register_names)
5605 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5606 (sparc32_pseudo_register_names): Now const.
5607 (validate_tdesc_registers): Update.
5608 * rust-lang.c (rust_extensions): Now const.
5609 * p-lang.c (p_extensions): Now const.
5610 * objc-lang.c (objc_extensions): Now const.
5611 * nto-tdep.c (nto_thread_state_str): Now const.
5612 * moxie-tdep.c (moxie_register_names): Now const.
5613 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5615 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5616 (mips_linux_reg_names): Now const.
5617 (mips_gdbarch_init): Update.
5618 * microblaze-tdep.c (microblaze_register_names): Now const.
5619 * m68k-tdep.c (m68k_register_names): Now const.
5620 * m32r-tdep.c (m32r_register_names): Now const.
5621 * ia64-tdep.c (ia64_register_names): Now const.
5622 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5623 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5624 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5625 ymm_avx512_register_names, pkeys_register_names>: Now const.
5626 * i386-tdep.c (i386_register_names, i386_zmm_names)
5627 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5628 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5629 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5630 * f-lang.c (f_extensions): Now const.
5631 * d-lang.c (d_extensions): Now const.
5632 * csky-tdep.c (csky_register_names): Now const.
5633 * charset.c (default_charset_names, charset_enum): Now const.
5634 (_initialize_charset): Update.
5635 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5637 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5638 (bsd_uthread_solib_loaded): Update.
5639 (bsd_uthread_state): Now const.
5640 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5641 (amd64_ymm_avx512_names, amd64_ymmh_names)
5642 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5643 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5644 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5645 (amd64_dword_names): Now const.
5646 * agent.c (can_use_agent_enum): Now const.
5647 * ada-tasks.c (task_states, long_task_states): Now const.
5648 * ada-lang.c (known_runtime_file_name_patterns)
5649 (known_auxiliary_function_name_patterns, attribute_names)
5650 (standard_exc, ada_extensions): Now const.
5652 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5654 * bcache.h (struct bcache) <bcache>: Remove constructor.
5655 <m_hash_function, m_compare_function>: Remove.
5656 <~bcache>: Make virtual.
5657 <compare>: Remove static method, introduce virtual method.
5658 <default_hash>: Remove.
5659 <hash>: New virtual method.
5660 * bcache.c (bcache::expand_hash_table): Update.
5661 (bcache::insert): Update.
5662 (bcache::hash): New.
5663 (bcache::compare): Update comment and parameter names.
5664 * gdbtypes.c (types_deeply_equal): Update.
5665 * psymtab.h (struct psymbol_bcache): New struct.
5666 (class psymtab_storage) <psymtab_storage>: Make default.
5667 <psymbol_cache>: Change type to psymbol_bcache.
5668 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5669 (psymbol_hash): Change to...
5670 (psymbol_bcache::hash): ... this.
5671 (psymbol_compare): Change to...
5672 (psymbol_bcache::compare): ... this.
5674 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5676 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5677 checking for initial lwp.
5679 2020-09-14 Tom Tromey <tromey@adacore.com>
5681 * m68k-tdep.c (m68k_extract_return_value): Use
5682 pointer_result_regnum.
5683 (m68k_store_return_value): Likewise.
5684 (m68k_reg_struct_return_p): Handle vectors and arrays.
5685 (m68k_return_value): Handle arrays.
5686 (m68k_svr4_return_value): Fix single-element aggregate handling.
5687 Handle long double. Adjust for embedded ABI.
5688 (m68k_svr4_init_abi): Set pointer_result_regnum.
5689 (m68k_embedded_init_abi): New function.
5690 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5691 (m68k_osabi_sniffer): New function.
5692 (_initialize_m68k_tdep): Register osabi sniffer.
5693 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5696 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5698 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5699 with gdb::unique_xmalloc_ptr<char>.
5701 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5703 * xml-support.h (xml_fetch_another): Change type to be a
5705 (xml_process_xincludes): Remove baton parameter.
5706 (xml_fetch_content_from_file): Change baton parameter to
5708 * xml-support.c (struct xinclude_parsing_data)
5709 <xinclude_parsing_data>: Remove baton parameter.
5710 <fetcher_baton>: Remove.
5711 (xinclude_start_include): Adjust.
5712 (xml_process_xincludes): Adjust.
5713 (xml_fetch_content_from_file): Replace baton parameter with
5715 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5716 (xml_init_syscalls_info): Use a lambda.
5717 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5718 (file_read_description_xml): Use a lambda.
5719 (fetch_available_features_from_target): Change baton parameter
5721 (target_read_description_xml): Use a lambda.
5722 (target_fetch_description_xml): Use a lambda.
5723 (string_read_description_xml): Update.
5725 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5727 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5728 uses with type::endianity_is_not_default.
5730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5732 * gdbtypes.h (struct type) <endianity_is_not_default,
5733 set_endianity_is_not_default>: New methods.
5734 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5735 type::endianity_is_not_default, change all write call sites to
5736 use type::set_endianity_is_not_default.
5738 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5740 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5741 uses with type::is_fixed_instance.
5743 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5745 * gdbtypes.h (struct type) <is_fixed_instance,
5746 set_is_fixed_instance>: New methods.
5747 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5748 write call sites to use type::set_is_fixed_instance.
5750 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5752 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5753 uses with type::is_gnu_ifunc.
5755 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5757 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5758 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5759 use type::set_is_gnu_ifunc.
5761 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5763 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5764 uses with type::stub_is_supported.
5766 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5768 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5769 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5770 use type::set_stub_is_supported.
5772 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5774 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5775 uses with type::is_vector.
5777 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5779 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5780 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5781 use type::set_is_vector.
5783 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5785 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5786 uses with type::has_varargs.
5788 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5790 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5791 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5792 use type::set_has_varargs.
5794 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5796 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5797 uses with type::is_prototyped.
5799 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5801 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5803 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5804 call sites to use type::set_is_prototyped.
5806 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5808 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5809 uses with type::target_is_stub.
5811 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5813 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5815 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5816 sites to use type::set_target_is_stub.
5818 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5820 * gdbtypes.h (TYPE_STUB): Remove, replace all
5821 uses with type::is_stub.
5823 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5825 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5826 (TYPE_STUB): Use type::is_stub, change all write call sites to
5827 use type::set_is_stub.
5829 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5831 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5832 type::has_no_signedness.
5834 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5836 * gdbtypes.h (struct type) <has_no_signedness,
5837 set_has_no_signedness>: New methods.
5838 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5839 call sites to use type::set_has_no_signedness.
5841 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5843 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5846 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5848 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5850 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5851 sites to use type::set_is_unsigned.
5853 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5854 Adam Renquinha <arenquinha@cimeq.qc.ca>
5856 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5857 pointer and stack frame offset when unwinding.
5859 2020-09-13 Pedro Alves <pedro@palves.net>
5861 * NEWS: Document "-break-insert --qualified".
5862 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5864 2020-09-13 Pedro Alves <pedro@palves.net>
5866 * linespec.c (classify_mtype, compare_msyms): Delete.
5867 (search_minsyms_for_name): Remove classification logic. Instead
5868 filter out trampoline symbols if we also found an external
5869 function of the same name.
5871 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5873 * NEWS: Create a new section for the next release branch.
5874 Rename the section of the current branch, now that it has
5877 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5879 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5880 * version.in: Bump version to 11.0.50.DATE-git.
5882 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5884 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5886 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5887 Felix Willgerodt <Felix.Willgerodt@intel.com>
5889 * gdbarch.sh: Added bfloat16 type.
5890 * gdbarch.c: Regenerated.
5891 * gdbarch.h: Regenerated.
5892 * gdbtypes.c (floatformats_bfloat16): New struct.
5893 (gdbtypes_post_init): Add builtin_bfloat16.
5894 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5895 (floatformats_bfloat16): New struct.
5896 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5897 (i386_ymm_type): Add field "v16_bfloat16"
5898 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5899 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5900 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5901 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5902 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5903 * features/i386/64bit-avx512.c: Regenerated.
5904 * features/i386/64bit-sse.xml: Add bfloat16 type.
5905 * features/i386/64bit-sse.c: Regenerated.
5907 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5909 * i386-tdep.c (i386_zmm_type): Fix field names.
5910 (i386_ymm_type): Fix field names.
5912 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5914 * breakpoint.c: Fix typo in the help message of the
5915 "set breakpoint condition-evaluation" command.
5917 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5919 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5920 * (nbsd_nat_target::pid_to_exec_file)
5921 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5922 (nbsd_nat_target::post_startup_inferior)
5923 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5924 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5925 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5926 * (nbsd_thread_lister): Remove.
5928 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5930 * fork-inferior.c (startup_inferior): Avoid double free.
5932 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5934 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5935 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5937 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5939 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5940 * netbsd-nat.c: Include <sys/ptrace.h>.
5941 * (netbsd_nat::enable_proc_events): Add.
5943 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5945 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5946 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5947 (netbsd_nat::for_each_thread): Add.
5948 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5949 "gdbsupport/common-debug.h".
5950 * (netbsd_nat::netbsd_thread_lister)
5951 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5952 (netbsd_nat::for_each_thread): Add.
5954 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5956 * netbsd-nat.h: Include <unistd.h>.
5957 * (netbsd_nat::pid_to_exec_file): Add.
5958 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5959 * (netbsd_nat::pid_to_exec_file) Add.
5961 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5963 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5965 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5967 * netbsd-nat.h: New file.
5968 * netbsd-nat.c: Likewise.
5970 2020-09-09 Tom Tromey <tromey@adacore.com>
5972 * ada-lang.c (remove_extra_symbols): Do not increment when
5975 2020-09-08 Tom Tromey <tromey@adacore.com>
5977 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5979 2020-09-08 Tom Tromey <tromey@adacore.com>
5982 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5983 (gdb_bfd_init_data): New function.
5984 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5986 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5988 * infrun.c (fetch_inferior_event): Use
5989 `switch_to_target_no_thread` to switch the target.
5991 2020-09-06 Tom Tromey <tom@tromey.com>
5993 * symfile.h (dwarf2_free_objfile): Don't declare.
5995 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5997 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5998 to match 16 byte real/complex type generated by Flang compiler.
6000 2020-09-03 Tom de Vries <tdevries@suse.de>
6003 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6004 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6006 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6008 * maint.c (index_digits): New function.
6009 (struct maint_print_section_data): Remove.
6010 (print_bfd_section_info): Remove print_data parameter, add arg
6012 (print_objfile_section_info): Likewise.
6013 (print_bfd_section_info_maybe_relocated): Likewise (plus
6015 (maintenance_info_sections): Adjust calls.
6017 2020-09-02 Tom Tromey <tromey@adacore.com>
6019 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6021 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6023 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6025 * bcache.h (struct bcache) <insert>: Change type of `added` to
6027 * bcache.c (bcache::insert): Likewise.
6028 * gdbtypes.c (check_types_worklist): Adjust.
6029 * psymtab.c (add_psymbol_to_bcache): Adjust.
6031 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6033 * corelow.c (unordered_set): Include.
6034 (class core_target): Add field 'm_core_unavailable_mappings'.
6035 (core_target::build_file_mappings): Print only one warning
6036 per inaccessible file. Add unavailable/broken mappings
6037 to m_core_unavailable_mappings.
6038 (core_target::xfer_partial): Call...
6039 (core_target::xfer_memory_via_mappings): New method.
6041 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6043 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6046 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6048 * dwarf2/read.c (struct field_info): Fix indentation.
6050 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6052 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6053 ordering in comment.
6054 * frame.c (frame_id_eq): Fix indentation.
6056 2020-08-31 Scott Linder <scott@scottlinder.com>
6057 Simon Marchi <simon.marchi@efficios.com>
6059 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6060 inline frame ids in outer frame.
6062 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6064 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6065 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6066 (outer_frame_id): Use FID_STACK_OUTER instead of
6068 (frame_id_p): Don't check for outer_frame_id.
6070 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6072 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6073 regnum/frame in value. Call allocate_value_lazy.
6074 * frame.c (frame_unwind_register_value): Use
6075 val_print_not_saved.
6077 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6079 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6081 2020-08-29 Pedro Alves <pedro@palves.net>
6083 * progspace.c (print_program_space): Use all_inferiors. Switch to
6084 the inferior before calling target_pid_to_str.
6086 2020-08-28 Tom Tromey <tom@tromey.com>
6088 * xcoffread.c (xcoff_end_psymtab): Update comment.
6089 * dbxread.c (dbx_end_psymtab): Update comment.
6091 2020-08-28 Tom de Vries <tdevries@suse.de>
6094 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6096 (create_breakpoint): Same.
6097 (base_breakpoint_decode_location): Same.
6098 (bkpt_create_sals_from_location): Same.
6099 (bkpt_decode_location): Same.
6100 (bkpt_probe_create_sals_from_location): Same.
6101 (bkpt_probe_decode_location): Same.
6102 (tracepoint_create_sals_from_location): Same.
6103 (tracepoint_decode_location): Same.
6104 (tracepoint_probe_decode_location): Same.
6105 (strace_marker_create_sals_from_location): Same.
6106 (strace_marker_decode_location): Same.
6107 (create_sals_from_location_default): Same.
6108 (decode_location_default): Same.
6109 * breakpoint.h (struct breakpoint_ops): Same.
6110 (create_breakpoint): Same.
6111 * linespec.h (decode_line_full): Same.
6112 * linespec.c (decode_line_full): Same. Throw error if
6113 result.size () == 0.
6115 2020-08-27 Pedro Alves <pedro@palves.net>
6118 * breakpoint.c (until_break_fsm) <location_breakpoint,
6119 caller_breakpoint>: Delete fields.
6120 <breakpoints>: New field.
6121 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6122 two individual breakpoints.
6123 (until_break_fsm::should_stop): Loop over breakpoints in the
6125 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6127 (until_break_command): Handle location expanding into multiple
6130 2020-08-27 Pedro Alves <pedro@palves.net>
6133 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6134 bp_until breakpoints user-specified locations. Update intro
6137 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6139 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6140 gdb_bfd_sections): New.
6141 * maint.c (print_bfd_section_info): Change param type to
6142 maint_print_section_data.
6143 (print_objfile_section_info): Likewise.
6144 (print_bfd_section_info_maybe_relocated): Likewise.
6145 (maintenance_info_sections): Use gdb_bfd_sections.
6147 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6149 * MAINTAINERS: Add ARC target and maintainer.
6151 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6153 * configure.tgt: ARC support for GNU/Linux.
6154 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6155 * arc-linux-tdep.c: New file.
6156 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6157 * arc-tdep.c (arc_write_pc): Use it.
6159 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6161 * arc-tdep.c (arc_check_for_hardware_loop): New.
6162 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6164 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6166 * arc-tdep.h: Include "gdbarch.h".
6168 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6171 (arc_gdbarch_features): New class to stir the selection of target XML.
6172 (arc_create_target_description): Use FEATURES to choose XML target.
6173 (arc_lookup_target_description): Use arc_create_target_description
6174 to create _new_ target descriptions or return the already created
6175 ones if the FEATURES is the same.
6176 * arch/arc.c: Implementation of prototypes described above.
6177 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6178 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6179 * arc-tdep.c (*_feature_name): Make feature names consistent.
6180 (arc_register_feature): A new struct to hold information about
6181 registers of a particular target/feature.
6182 (arc_check_tdesc_feature): Check if XML provides registers in
6183 compliance with ARC_REGISTER_FEATURE structs.
6184 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6185 (determine_*_reg_feature_set): Which feature name to look for.
6186 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6187 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6188 to expected ISA enums to be used in arc_gdbarch_features structs.
6189 * features/Makefile (FEATURE_XMLFILES): Add new files.
6190 * gdb/features/arc/v1-aux.c: New file.
6191 * gdb/features/arc/v1-aux.xml: Likewise.
6192 * gdb/features/arc/v1-core.c: Likewise.
6193 * gdb/features/arc/v1-core.xml: Likewise.
6194 * gdb/features/arc/v2-aux.c: Likewise.
6195 * gdb/features/arc/v2-aux.xml: Likewise.
6196 * gdb/features/arc/v2-core.c: Likewise.
6197 * gdb/features/arc/v2-core.xml: Likewise.
6198 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6200 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6201 Andrew Burgess <andrew.burgess@embecosm.com>
6204 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6205 an assert. Remove single element array indexing pattern as the
6206 MULTI_SUBSCRIPT support will handle this case too.
6208 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6210 * value.h (valprint_check_validity): Move declaration from
6212 * valprint.h (valprint_check_validity): ... to here.
6214 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6216 * debug.h: New file.
6217 * debug.c (debug_prefixed_vprintf): New function.
6218 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6219 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6221 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6223 * infrun.h (infrun_debug_printf_1): New function declaration.
6224 (infrun_debug_printf): New macro.
6225 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6227 (infrun_debug_printf): New function.
6228 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6229 (handle_jit_event): Likewise.
6231 2020-08-21 Mark Wielaard <mark@klomp.org>
6233 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6235 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6237 * frame.c (enum class frame_id_status): New.
6238 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6239 (fprintf_frame): Update.
6240 (compute_frame_id): Set frame id status to "computing" on entry.
6241 Set it back to "not_computed" on failure and to "computed" on
6243 (get_frame_id): Assert the frame id is not being computed.
6244 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6245 (create_new_frame): Likewise.
6246 (frame_cleanup_after_sniffer): Update assert.
6248 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6250 * regcache.c (pid_ptid_regcache_map): New type.
6251 (target_ptid_regcache_map): Remove.
6252 (target_pid_ptid_regcache_map): New type.
6253 (regcaches): Change type to target_pid_ptid_regcache_map.
6254 (get_thread_arch_aspace_regcache): Update.
6255 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6257 (regcaches_size): Update.
6258 (regcache_count): Update.
6259 (registers_changed_ptid_target_pid_test): New.
6260 (_initialize_regcache): Register new test.
6262 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6264 * regcache.c (regcache_count): New.
6265 (struct regcache_test_data): New.
6266 (regcache_test_data_up): New.
6267 (populate_regcaches_for_test): New.
6268 (regcaches_test): Remove.
6269 (get_thread_arch_aspace_regcache_test): New.
6270 (registers_changed_ptid_all_test): New.
6271 (registers_changed_ptid_target_test): New.
6272 (registers_changed_ptid_target_ptid_test): New.
6273 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6274 (_initialize_regcache): Register new tests.
6276 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6278 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6279 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6280 gdbarch and aspace parameter. Use current inferior's aspace.
6281 Validate regcache's arch value.
6282 (regcaches_test): Update.
6284 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6286 * regcache.c (regcaches_test): Call registers_changed.
6288 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6290 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6292 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6294 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6295 to find the end of prologue for flang compiled binaries.
6296 * arm-tdep.c (arm_skip_prologue): Likewise.
6297 * i386-tdep.c (i386_skip_prologue): Likewise.
6298 * producer.c (producer_is_llvm): New function.
6299 (producer_parsing_tests): Added new tests for clang/flang.
6300 * producer.h (producer_is_llvm): New declaration.
6302 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6304 * linux-nat.c (linux_nat_debug_printf): New function.
6305 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6307 2020-08-18 Aaron Merey <amerey@redhat.com>
6309 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6310 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6311 (CLIBS): Add DEBUGINFOD_LIBS.
6313 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6315 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6318 2020-08-17 Tom Tromey <tromey@adacore.com>
6320 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6321 ada_get_decoded_value returns NULL.
6323 2020-08-17 Tom Tromey <tromey@adacore.com>
6325 * python/py-inferior.c (infpy_search_memory): Use
6326 gdb_py_object_from_ulongest.
6327 * python/py-infevents.c (create_inferior_call_event_object)
6328 (create_memory_changed_event_object): Use
6329 gdb_py_object_from_ulongest.
6330 * python/py-linetable.c (ltpy_entry_get_pc): Use
6331 gdb_py_object_from_ulongest.
6333 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6335 * loc.c (class symbol_needs_eval_context): Fix indentation.
6337 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6339 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6342 2020-08-17 Tom de Vries <tdevries@suse.de>
6345 * gdbtypes.c (dump_dynamic_prop): New function.
6346 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6348 2020-08-15 Tom de Vries <tdevries@suse.de>
6351 * stack.c (print_frame_args): Temporarily set the selected
6352 frame to FRAME while printing the frame's arguments.
6354 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6356 PR breakpoints/26385
6357 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6358 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6360 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6362 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6363 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6364 and >= to check return value instead of == -1 and != -1.
6366 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6368 * utils.h (class gdb_argv) <as_array_view>: New method.
6369 * utils.c (gdb_argv_as_array_view_test): New.
6370 (_initialize_utils): Register selftest.
6371 * maint.c (maintenance_selftest): Use the new method.
6373 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6375 * target.h (supports_dumpcore, dumpcore): New
6376 function declarations.
6377 * target.c (supports_dumpcore, dumpcore): New
6379 * target-delegates.c: Rebuild.
6380 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6381 and target_dumpcore ().
6383 2020-08-13 Aaron Merey <amerey@redhat.com>
6385 * debuginfod-support.c: Replace global variables with user_data.
6387 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6389 * maint.c (maintenance_selftest): Split args and pass array_view
6392 2020-08-12 Luis Machado <luis.machado@linaro.org>
6394 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6396 Use %s and pulongest to print the length.
6398 2020-08-12 Pedro Alves <palves@redhat.com>
6400 * NEWS: Move "Multi-target debugging support" item to the
6401 "Changes since GDB 9" section.
6403 2020-08-12 Pedro Alves <palves@redhat.com>
6406 * progspace.c (program_space::remove_objfile): Invalidate the
6409 2020-08-11 Tom de Vries <tdevries@suse.de>
6411 * MAINTAINERS: Mark ms1 as deleted.
6413 2020-08-10 Luis Machado <luis.machado@linaro.org>
6417 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6419 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6420 movz/str/stur/stp skipping behavior.
6422 2020-08-10 Luis Machado <luis.machado@linaro.org>
6424 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6425 struct user_sve_header instead of struct sve_context.
6427 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6429 * read.h (dwarf2_fetch_die_loc_sect_off,
6430 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6431 `void *` parameter with function_view.
6432 * read.c (dwarf2_fetch_die_loc_sect_off,
6433 dwarf2_fetch_die_loc_cu_off): Likewise.
6434 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6435 (per_cu_dwarf_call): Adjust.
6436 (get_frame_address_in_block_wrapper): Remove.
6437 (indirect_synthetic_pointer): Adjust.
6438 (get_ax_pc): Remove.
6439 (dwarf2_compile_expr_to_ax): Adjust.
6441 2020-08-08 Tom de Vries <tdevries@suse.de>
6444 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6446 * regcache.c (get_thread_arch_aspace_regcache): Same.
6448 2020-08-07 Tom Tromey <tromey@adacore.com>
6450 * ravenscar-thread.c
6451 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6453 (ravenscar_thread_target::wait): Check
6454 runtime_initialized.
6455 (ravenscar_thread_target::prepare_to_store)
6456 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6457 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6458 (ravenscar_thread_target::stopped_by_watchpoint)
6459 (ravenscar_thread_target::stopped_data_address)
6460 (ravenscar_thread_target::core_of_thread): Use
6461 scoped_restore_current_thread and
6462 set_base_thread_from_ravenscar_task.
6464 2020-08-07 Tom Tromey <tromey@adacore.com>
6466 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6468 2020-08-07 Tom Tromey <tromey@adacore.com>
6470 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6471 update_inferior_ptid before update_thread_list.
6472 (temporarily_change_regcache_ptid): New class.
6473 (ravenscar_thread_target::fetch_registers)
6474 (ravenscar_thread_target::store_registers)
6475 (ravenscar_thread_target::prepare_to_store): Use base thread when
6476 forwarding operation.
6478 2020-08-07 Tom Tromey <tromey@adacore.com>
6480 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6483 2020-08-07 Tom Tromey <tromey@adacore.com>
6485 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6487 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6489 (ravenscar_thread_target::add_thread): Rename from
6490 ravenscar_add_thread.
6491 (ravenscar_thread_target::update_thread_list): Use a lambda.
6492 (ravenscar_thread_target::xfer_partial): New method.
6494 2020-08-07 Tom Tromey <tromey@adacore.com>
6496 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6498 (iterate_over_live_ada_tasks): Change type of argument.
6499 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6502 2020-08-07 Tom Tromey <tromey@adacore.com>
6504 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6506 (ravenscar_thread_target::extra_thread_info): Remove.
6507 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6508 defer to target beneath for non-Ravenscar threads.
6510 2020-08-07 Tom Tromey <tromey@adacore.com>
6512 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6513 get_base_thread_from_ravenscar_task>: Now methods.
6514 <m_cpu_map>: New member.
6515 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6516 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6517 (ravenscar_thread_target::task_is_currently_active): Update.
6518 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6520 (ravenscar_thread_target::add_active_thread): Put initial thread
6523 2020-08-07 Tom Tromey <tromey@adacore.com>
6525 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6528 2020-08-07 Tom Tromey <tromey@adacore.com>
6530 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6531 runtime_initialized.
6533 2020-08-07 Tom Tromey <tromey@adacore.com>
6535 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6537 (ravenscar_thread_target::add_active_thread): Now public.
6538 (ravenscar_inferior_created): Call add_active_thread after pushing
6541 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6543 * regcache.c (ptid_regcache_map): New type.
6544 (target_ptid_regcache_map): New type.
6545 (regcaches): Change type to target_ptid_regcache_map.
6546 (get_thread_arch_aspace_regcache): Update to regcaches' new
6548 (regcache_thread_ptid_changed): Likewise.
6549 (registers_changed_ptid): Likewise.
6550 (regcaches_size): Likewise.
6551 (regcaches_test): Update.
6552 (regcache_thread_ptid_changed): Update.
6553 * regcache.h (regcache_up): New type.
6554 * gdbsupport/ptid.h (hash_ptid): New struct.
6556 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6558 * observable.h (thread_ptid_changed): Add parameter
6559 `process_stratum_target *`.
6560 * infrun.c (infrun_thread_ptid_changed): Add parameter
6561 `process_stratum_target *` and use it.
6562 (selftests): New namespace.
6563 (infrun_thread_ptid_changed): New function.
6564 (_initialize_infrun): Register selftest.
6565 * regcache.c (regcache_thread_ptid_changed): Add parameter
6566 `process_stratum_target *` and use it.
6567 (regcache_thread_ptid_changed): New function.
6568 (_initialize_regcache): Register selftest.
6569 * thread.c (thread_change_ptid): Pass target to
6570 thread_ptid_changed observable.
6572 2020-08-06 Caroline Tice <cmtice@google.com>
6574 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6575 (struct dwp_sections): Update field comments. Add loclists and
6577 (struct virtual_v2_dwo_sections): Rename struct to
6578 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6579 size & offset fields for loclists and rnglists.
6580 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6581 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6582 skipping dummy type units.
6583 (create_dwp_hash_table): Update the large comment above the function to
6584 discuss Version 5 DWP files as well, with references. Update all the
6585 version checks in the function to check for version 5 as well. Add new
6586 section at the end to create dwp hash table for version 5.
6587 (create_dwp_v2_section): Rename function to
6588 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6589 Add V5 to error message text.
6590 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6591 into calls to create_dwp_v2_or_v5_section.
6592 (create_dwo_unit_in_dwp_v5): New function.
6593 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6594 check for version2; add else clause to handle version 5.
6595 (open_and_init_dwo_file): Add code to check dwarf version & only call
6596 create_debug_types_hash_table (with sections.types) if version is not 5;
6597 else call create_debug_type_hash_table, with sections.info.
6598 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6600 (dwarf2_locate_v5_dwp_sections): New function.
6601 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6602 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6604 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6606 * regcache.h (class regcache): Remove friend
6607 registers_changed_ptid.
6608 <regcache_thread_ptid_changed>: Remove.
6609 <regcaches>: Remove.
6610 * regcache.c (regcache::regcaches): Rename to...
6611 (regcaches): ... this. Make static.
6612 (get_thread_arch_aspace_regcache): Update.
6613 (regcache::regcache_thread_ptid_changed): Rename to...
6614 (regcache_thread_ptid_changed): ... this. Update.
6615 (class regcache_access): Remove.
6616 (regcaches_test): Update.
6617 (_initialize_regcache): Update.
6618 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6621 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6623 * regcache.h (class regcache) <current_regcache>: Rename to...
6624 <regcaches>: ... this. Move doc here.
6625 * regcache.c (regcache::current_regcache) Rename to...
6626 (regcache::regcaches): ... this. Move doc to header.
6627 (get_thread_arch_aspace_regcache): Update.
6628 (regcache::regcache_thread_ptid_changed): Update.
6629 (registers_changed_ptid): Update.
6630 (class regcache_access) <current_regcache_size>: Rename to...
6631 <regcaches_size>: ... this.
6632 (current_regcache_test): Rename to...
6633 (regcaches_test): ... this.
6634 (_initialize_regcache): Update.
6636 2020-08-06 Victor Collod <vcollod@nvidia.com>
6638 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6640 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6642 * corelow.c (core_target::build_file_mappings): Don't output
6643 null pathname in warning.
6645 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6647 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6648 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6649 gdb.dwarf2/dw2-single-line-discriminators.exp,
6650 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6652 2020-08-05 Tom Tromey <tromey@adacore.com>
6655 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6656 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6657 Fix off-by-one and type size errors in ordinary case.
6659 2020-08-05 Tom de Vries <tdevries@suse.de>
6661 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6662 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6664 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6666 * frame.h (frame_id_p): Return bool.
6667 (frame_id_artificial_p): Return bool.
6668 (frame_id_eq): Return bool.
6669 (has_stack_frames): Return bool.
6670 (get_selected_frame): Fix typo in comment.
6671 (get_frame_pc_if_available): Return bool.
6672 (get_frame_address_in_block_if_available): Return bool.
6673 (get_frame_func_if_available): Return bool.
6674 (read_frame_register_unsigned): Return bool.
6675 (get_frame_register_bytes): Return bool.
6676 (safe_frame_unwind_memory): Return bool.
6677 (deprecated_frame_register_read): Return bool.
6678 (frame_unwinder_is): Return bool.
6679 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6681 <this_id::p>: Likewise.
6683 (frame_stash_add): Return bool.
6684 (get_frame_id): Use bool.
6685 (frame_id_build_special) Use bool.
6686 (frame_id_build_unavailable_stack): Use bool.
6687 (frame_id_build): Use bool.
6688 (frame_id_p): Return bool, use true/false instead of 1/0.
6689 (frame_id_artificial_p): Likewise.
6690 (frame_id_eq): Likewise.
6691 (frame_id_inner): Likewise.
6692 (get_frame_func_if_available): Likewise.
6693 (read_frame_register_unsigned): Likewise.
6694 (deprecated_frame_register_read): Likewise.
6695 (get_frame_register_bytes): Likewise.
6696 (has_stack_frames): Likewise.
6697 (inside_main_func): Likewise.
6698 (inside_entry_func): Likewise.
6699 (get_frame_pc_if_available): Likewise.
6700 (get_frame_address_in_block_if_available): Likewise.
6701 (frame_unwinder_is): Likewise.
6702 (safe_frame_unwind_memory): Likewise.
6703 (frame_unwind_arch): Likewise.
6705 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6707 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6708 type to cached_copy_status.
6709 (fprintf_frame): Adjust.
6710 (get_frame_func_if_available): Adjust.
6711 (frame_cleanup_after_sniffer): Adjust.
6713 2020-08-04 Mark Wielaard <mark@klomp.org>
6715 * MAINTAINERS (Write After Approval): Update email address.
6717 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6719 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6720 dynamic_prop::const_val.
6722 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6724 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6727 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6729 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6731 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6733 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6735 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6736 Jose E. Marchesi <jose.marchesi@oracle.com>
6738 * configure.tgt: Add entry for bpf-*-*.
6739 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6740 (ALLDEPFILES): Add bpf-tdep.c.
6741 * bpf-tdep.c: New file.
6742 * MAINTAINERS: Add bpf target and maintainer.
6743 * NEWS: Mention the support for the new target.
6745 2020-08-04 Tom de Vries <tdevries@suse.de>
6748 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6751 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6753 * syscalls/freebsd.xml: Regenerate.
6755 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6757 * syscalls/update-freebsd.sh: Fix usage and year range.
6759 2020-08-03 Tom de Vries <tdevries@suse.de>
6762 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6763 DW_LNE_lo_user/DW_LNE_hi_user range.
6765 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6768 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6771 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6773 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6775 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6777 * breakpoint.c (set_breakpoint_condition): Update the condition
6778 expressions after checking that the input condition string parses
6779 successfully and does not contain junk at the end.
6781 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6783 * breakpoint.c (set_breakpoint_condition): Update the
6784 condition string after parsing the new condition successfully.
6786 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6788 * proc-api.c (_STRUCTURED_PROC): Don't define.
6789 * proc-events.c: Likewise.
6790 * proc-flags.c: Likewise.
6791 * proc-why.c: Likewise.
6792 * procfs.c: Likewise.
6794 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6795 * configure, config.in: Regenerate.
6797 2020-07-30 Tom de Vries <tdevries@suse.de>
6800 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6801 m_red/m_green/m_blue in a union.
6803 2020-07-29 Tom de Vries <tdevries@suse.de>
6806 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6808 2020-07-28 Tom Tromey <tromey@adacore.com>
6811 * symtab.h (find_pc_partial_function_sym): Declare.
6812 * cli/cli-cmds.c (disassemble_command): Use
6813 find_pc_partial_function_sym. Check asm_demangle.
6814 * blockframe.c (cache_pc_function_sym): New global.
6815 (cache_pc_function_name): Remove.
6816 (clear_pc_function_cache): Update.
6817 (find_pc_partial_function_sym): New function, from
6818 find_pc_partial_function.
6819 (find_pc_partial_function): Rewrite using
6820 find_pc_partial_function_sym.
6822 2020-07-28 Tom Tromey <tromey@adacore.com>
6824 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6827 2020-07-28 Tom Tromey <tromey@adacore.com>
6829 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6830 <DW_OP_GNU_variable_value>: Cast to address type.
6832 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6834 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6835 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6836 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6837 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6838 (nbsd_get_siginfo_type): New.
6839 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6840 (_initialize_nbsd_tdep): New.
6842 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6845 * configure: Regenerated.
6847 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6850 * configure: Regenerated.
6852 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6854 * python/py-frame.c: Remove 'user-regs.h' include.
6855 (frapy_read_register): Rewrite to make use of
6856 gdbpy_parse_register_id.
6857 * python/py-registers.c (gdbpy_parse_register_id): New function,
6858 moved here from python/py-unwind.c. Updated the return type, and
6859 also accepts register descriptor objects.
6860 * python/py-unwind.c: Remove 'user-regs.h' include.
6861 (pyuw_parse_register_id): Moved to python/py-registers.c.
6862 (unwind_infopy_add_saved_register): Update to use
6863 gdbpy_parse_register_id.
6864 (pending_framepy_read_register): Likewise.
6865 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6867 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6869 * python/py-registers.c: Add 'user-regs.h' include.
6870 (register_descriptor_iter_find): New function.
6871 (register_descriptor_iterator_object_methods): New static global
6873 (register_descriptor_iterator_object_type): Add pointer to methods
6876 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6878 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6879 for all architectures on FreeBSD 11.3 and later.
6881 2020-07-27 Tom Tromey <tromey@adacore.com>
6883 * gcore.h (load_corefile): Don't declare.
6885 2020-07-27 Tom de Vries <tdevries@suse.de>
6887 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6888 * config.in: Regenerate.
6889 * configure: Regenerate.
6891 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6893 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6894 ws2tcpip.h. When checking whether socklen_t type is defined, use
6895 ws2tcpip.h if it is available and sys/socket.h isn't.
6896 * configure: Regenerate.
6897 * config.in: Regenerate.
6899 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6903 * valops.c (value_ind): Pass address to
6904 readjust_indirect_value_type.
6905 * value.c (readjust_indirect_value_type): Make parameter
6906 non-const, and add extra address parameter. Resolve original type
6908 * value.h (readjust_indirect_value_type): Update function
6909 signature and comment.
6911 2020-07-25 Tom de Vries <tdevries@suse.de>
6914 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6917 2020-07-24 Aaron Merey <amerey@redhat.com>
6919 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6920 * configure: Rebuild.
6922 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6925 * corelow.c (_initialize_corelow): Add period to help text
6926 for "maintenance print core-file-backed-mappings".
6928 2020-07-23 Pedro Alves <pedro@palves.net>
6930 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6931 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6933 * frame.c (frame_cache_generation, get_frame_cache_generation):
6935 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6936 (get_prev_frame_if_no_cycle): On exception, don't touch
6937 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6938 * frame.h (get_frame_cache_generation): Declare.
6940 2020-07-23 Tom de Vries <tdevries@suse.de>
6943 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6944 New default constructor.
6946 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6948 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6949 exclude non-statement entries.
6951 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6953 * NEWS (New commands): Mention new command
6954 "maintenance print core-file-backed-mappings".
6956 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6958 * corelow.c (gdbcmd.h): Include.
6959 (core_target::info_proc_mappings): New method.
6960 (get_current_core_target): New function.
6961 (maintenance_print_core_file_backed_mappings): New function.
6962 (_initialize_corelow): Add core-file-backed-mappings to
6963 "maint print" commands.
6965 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6967 * linux-tdep.c (dump_note_entry_p): New function.
6968 (linux_dump_mapping_p_ftype): New typedef.
6969 (linux_find_memory_regions_full): Add new parameter,
6970 should_dump_mapping_p.
6971 (linux_find_memory_regions): Adjust call to
6972 linux_find_memory_regions_full.
6973 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6974 call to linux_find_memory_regions_full.
6976 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6978 * corelow.c (solist.h, unordered_map): Include.
6979 (class core_target): Add field m_core_file_mappings and
6980 method build_file_mappings.
6981 (core_target::core_target): Call build_file_mappings.
6982 (core_target::~core_target): Free memory associated with
6983 m_core_file_mappings.
6984 (core_target::build_file_mappings): New method.
6985 (core_target::xfer_partial): Use m_core_file_mappings
6986 for memory transfers.
6987 * linux-tdep.c (linux_read_core_file_mappings): New
6989 (linux_core_info_proc_mappings): Rewrite to use
6990 linux_read_core_file_mappings.
6991 (linux_init_abi): Register linux_read_core_file_mappings.
6993 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6995 * arch-utils.c (default_read_core_file_mappings): New function.
6996 * arch-utils.c (default_read_core_file_mappings): Declare.
6997 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6998 * gdbarch.h, gdbarch.c: Regenerate.
7000 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7003 * corelow.c (core_target:xfer_partial): Revise
7004 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7005 case after first checking the stratum beneath the core
7007 (has_all_memory): Return true.
7008 * target.c (raw_memory_xfer_partial): Revise comment
7009 regarding use of has_all_memory.
7011 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7013 * exec.h (section_table_xfer_memory): Revise declaration,
7014 replacing section name parameter with an optional callback
7016 * exec.c (section_table_xfer_memory): Likewise.
7017 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7018 of section_table_xfer_memory.
7020 2020-07-22 Tom Tromey <tromey@adacore.com>
7022 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7023 lookup_symbol_search_name.
7025 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7027 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7028 redundant local variable.
7029 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7030 reference, not pointer, update code accordingly.
7032 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7033 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7035 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7036 * jit.c (jit_breakpoint_re_set_internal): Use the
7037 `skip_jit_symbol_lookup` field.
7039 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7040 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7042 * jit.c (jit_read_descriptor): Define the descriptor address once,
7044 (jit_breakpoint_deleted): Move the declaration of the loop variable
7045 `iter` into the loop header.
7046 (jit_breakpoint_re_set_internal): Move the declaration of the local
7047 variable `objf_data` to the first point of definition.
7048 (jit_event_handler): Move the declaration of local variables
7049 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7050 Rename `objf` to `jited`.
7052 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7054 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7056 * jit.c (get_jiter_objfile_data): Update.
7058 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7059 Simon Marchi <simon.marchi@polymtl.ca>
7061 * jit.c (struct jit_program_space_data): Remove.
7062 (jit_program_space_key): Remove.
7063 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7065 (get_jit_program_space_data): Remove.
7066 (jit_breakpoint_deleted): Iterate on all of the program space's
7068 (jit_inferior_init): Likewise.
7069 (jit_breakpoint_re_set_internal): Likewise. Also change return
7071 (jit_breakpoint_re_set): Pass current_program_space to
7072 jit_breakpoint_re_set_internal.
7074 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7076 * jit.h (struct jiter_objfile_data) <cached_code_address,
7077 jit_breakpoint>: Move to here from ...
7078 * jit.c (jit_program_space_data): ... here.
7079 (jiter_objfile_data::~jiter_objfile_data): Update.
7080 (jit_breakpoint_deleted): Update.
7081 (jit_breakpoint_re_set_internal): Update.
7083 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7085 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7087 (jit_read_descriptor): Remove NULL check.
7088 (jit_event_handler): Add an assertion.
7090 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7092 * jit.h (struct jit_objfile_data): Split into...
7093 (struct jiter_objfile_data): ... this ...
7094 (struct jited_objfile_data): ... and this.
7095 * objfiles.h (struct objfile) <jit_data>: Remove.
7096 <jiter_data, jited_data>: New fields.
7097 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7098 (jiter_objfile_data::~jiter_objfile_data): ... this.
7099 (get_jit_objfile_data): Rename to ...
7100 (get_jiter_objfile_data): ... this.
7101 (add_objfile_entry): Update.
7102 (jit_read_descriptor): Use get_jiter_objfile_data.
7103 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7104 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7105 (jit_inferior_exit_hook): Use objfile's jited_data field.
7107 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7109 * jit.h: Forward-declare `struct minimal_symbol`.
7110 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7111 constructor, destructor, and an objfile* field.
7112 * jit.c (jit_objfile_data): Remove.
7113 (struct jit_objfile_data): Migrate from here to jit.h.
7114 (jit_objfile_data::~jit_objfile_data): New destructor
7115 implementation with code moved from free_objfile_data.
7116 (free_objfile_data): Delete.
7117 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7118 (jit_find_objf_with_entry_addr): Ditto.
7119 (jit_inferior_exit_hook): Ditto.
7120 (_initialize_jit): Remove the call to
7121 register_objfile_data_with_cleanup.
7122 * objfiles.h (struct objfile) <jit_data>: New field.
7124 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7126 * jit.h: Forward-declare `struct objfile`.
7127 (jit_event_handler): Add a second parameter, the JITer objfile.
7128 * jit.c (jit_read_descriptor): Change the signature to take the
7129 JITer objfile as an argument instead of the jit_program_space_data.
7130 (jit_inferior_init): Update the call to jit_read_descriptor.
7131 (jit_event_handler): Use the new JITer objfile argument when calling
7132 jit_read_descriptor.
7133 * breakpoint.c (handle_jit_event): Update the call to
7134 jit_event_handler to pass the JITer objfile.
7136 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7138 * gdbarch.c: Regenerate.
7139 * gdbarch.h: Regenerate.
7140 * gdbarch.sh (handle_segmentation_fault): Remove method.
7141 * infrun.c (handle_segmentation_fault): Remove.
7142 (print_signal_received_reason): Remove call to
7143 handle_segmentation_fault.
7145 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7147 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7148 Rename to sparc64_linux_report_signal_info and add siggnal
7150 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7151 instead of sparc64_linux_handle_segmentation_fault.
7153 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7155 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7156 i386_linux_report_signal_info instead of
7157 i386_linux_handle_segmentation_fault.
7158 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7159 to i386_linux_report_signal_info and add siggnal argument.
7160 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7161 of i386_linux_handle_segmentation_fault.
7162 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7163 to i386_linux_report_signal_info and add siggnal argument.
7165 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7167 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7170 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7172 * gdbarch.c: Regenerate.
7173 * gdbarch.h: Regenerate.
7174 * gdbarch.sh (report_signal_info): New method.
7175 * infrun.c (print_signal_received_reason): Invoke gdbarch
7176 report_signal_info hook if present.
7178 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7180 * python/py-registers.c : Add 'unordered_map' include.
7181 (gdbpy_new_reggroup): Renamed to...
7182 (gdbpy_get_reggroup): ...this. Update to only create register
7183 group descriptors when needed.
7184 (gdbpy_reggroup_iter_next): Update.
7186 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7188 * python/py-registers.c (gdbpy_register_object_data): New static
7190 (gdbpy_register_object_data_init): New function.
7191 (gdbpy_new_register_descriptor): Renamed to...
7192 (gdbpy_get_register_descriptor): ...this, and update to reuse
7193 existing register descriptors where possible.
7194 (gdbpy_register_descriptor_iter_next): Update.
7195 (gdbpy_initialize_registers): Register new gdbarch data.
7197 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7199 * linux-nat.c (stopped_pids): Make static.
7201 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7204 * gdbtypes.c (ada_discrete_type_low_bound,
7205 ada_discrete_type_high_bound): Handle undefined bounds.
7207 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7209 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7211 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7214 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7216 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7217 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7218 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7219 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7220 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7223 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7225 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7226 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7227 which are deprecated in Guile 3.0.
7228 * configure.ac (try_guile_versions): Add "guile-3.0".
7229 * configure (try_guile_versions): Regenerate.
7230 * NEWS: Update entry.
7232 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7233 Doug Evans <dje@google.com>
7236 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7237 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7238 USING_GUILE_BEFORE_2_2.
7239 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7240 Change type to 'scm_t_port_type *'.
7241 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7242 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7243 parameter and honor it. Update callers.
7244 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7245 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7247 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7248 USING_GUILE_BEFORE_2_2.
7249 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7250 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7251 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7252 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7253 and 'SCM_PORT_TYPE'.
7254 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7255 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7256 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7257 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7258 [!USING_GUILE_BEFORE_2_2]: New functions.
7259 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7260 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7261 'gdbscm_memory_port_read'.
7262 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7263 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7264 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7266 (ioscm_init_memory_port): Remove.
7267 (ioscm_init_memory_port_stream): New function
7268 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7270 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7271 Return scm_from_uint (0).
7272 (gdbscm_set_memory_port_read_buffer_size_x)
7273 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7274 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7275 Return scm_from_uint (0).
7276 (gdbscm_set_memory_port_write_buffer_size_x)
7277 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7278 * configure.ac (try_guile_versions): Add "guile-2.2".
7279 * configure: Regenerate.
7282 2020-07-18 Tom Tromey <tom@tromey.com>
7284 * linux-nat.c (linux_multi_process): Remove.
7285 (linux_nat_target::supports_multi_process): Return true.
7287 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7289 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7290 (riscv_lookup_target_description): Return pointer out of
7292 * target-descriptions.c (allocate_target_description): Add
7294 (target_desc_deleter::operator()): Likewise.
7295 * target-descriptions.h (struct target_desc_deleter): Moved to
7297 (target_desc_up): Likewise.
7299 2020-07-17 Tom Tromey <tromey@adacore.com>
7301 * linux-nat.c (linux_nat_target::supports_non_stop)
7302 (linux_nat_target::always_non_stop_p): Use "true".
7303 (linux_nat_target::supports_disable_randomization): Use "true" and
7306 2020-07-16 Caroline Tice <cmtice@google.com>
7308 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7309 (RNGLIST_HEADER_SIZE64): New constant definition.
7310 (struct dwop_section_names): Add rnglists_dwo.
7311 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7312 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7313 (struct dwo_sections): Add rnglists field.
7314 (read_attribut_reprocess): Add tag parameter.
7315 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7316 (cu_debug_rnglists_section): New function (decl & definition).
7317 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7318 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7319 die whose range is being checked; get rnglist section from
7320 cu_debug_rnglists_section, to get from either objfile or dwo file as
7321 appropriate. Add cases for DW_RLE_base_addressx,
7322 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7323 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7324 test inside if-condition and updating complaint message.
7325 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7326 dwarf2_rnglists_process.
7327 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7328 dwarf2_ranges_process.
7329 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7330 need_ranges_base and update comment appropriately. Also pass die tag
7331 to dwarf2_ranges_read.
7332 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7333 need_ranges_base and update comment appropriately. Also pass die tag
7334 to dwarf2_ranges_process.
7335 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7336 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7337 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7338 need_ranges_base and update comment appropriately. Also pass die tag
7339 to read_attribute_reprocess and dwarf2_ranges_read.
7340 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7341 and update function comment appropriately.
7342 (read_loclist_index): Call read_loclists_rnglists_header instead of
7343 read_loclist_header.
7344 (read_rnglist_index): New function.
7345 (read_attribute_reprocess): Add tag parameter. Add code for
7346 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7347 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7349 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7351 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7354 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7356 * arch-utils.c (show_architecture): Update formatting of messages.
7358 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7360 * gdbtypes.h (struct type) <bounds>: Handle array and string
7362 * ada-lang.c (assign_aggregate): Use type::bounds on
7364 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7365 * c-varobj.c (c_number_of_children): Likewise.
7366 (c_describe_child): Likewise.
7367 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7368 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7369 (f_type_print_base): Likewise.
7370 * f-valprint.c (f77_array_offset_tbl): Likewise.
7371 (f77_get_upperbound): Likewise.
7372 (f77_print_array_1): Likewise.
7373 * guile/scm-type.c (gdbscm_type_range): Likewise.
7374 * m2-typeprint.c (m2_array): Likewise.
7375 (m2_is_long_set_of_type): Likewise.
7376 * m2-valprint.c (get_long_set_bounds): Likewise.
7377 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7378 * python/py-type.c (typy_range): Likewise.
7379 * rust-lang.c (rust_internal_print_type): Likewise.
7380 * type-stack.c (type_stack::follow_types): Likewise.
7381 * valarith.c (value_subscripted_rvalue): Likewise.
7382 * valops.c (value_cast): Likewise.
7384 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7386 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7387 callers to use the equivalent accessor methods.
7389 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7391 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7392 (struct type) <bit_stride>: New method.
7393 (TYPE_BIT_STRIDE): Remove.
7394 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7396 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7398 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7399 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7400 callers to use the equivalent accessor methods instead.
7402 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7404 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7405 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7406 callers to use the equivalent accessor methods instead.
7408 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7410 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7411 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7412 to use dynamic_prop::kind.
7414 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7416 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7417 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7418 to get the bound property's kind and check against
7421 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7423 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7424 all callers to use type::range_bounds followed by
7425 dynamic_prop::{low,high}.
7427 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7429 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7430 const_val, set_const_val, baton, set_locexpr, set_loclist,
7431 set_addr_offset, variant_parts, set_variant_parts,
7432 original_type, set_original_type>: New methods.
7433 <kind>: Rename to...
7434 <m_kind>: ... this. Update all users to use the new methods
7436 <data>: Rename to...
7437 <m_data>: ... this. Update all users to use the new methods
7440 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7442 * gdbtypes.c (get_discrete_bounds): Return failure if
7443 the range type's bounds are not both defined and constant
7445 (get_array_bounds): Update comment. Remove undefined bound check.
7447 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7449 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7450 the type::bounds method directly.
7452 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7454 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7455 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7456 are used to set the range type's bounds to use set_bounds.
7458 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7460 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7462 2020-07-10 Pedro Alves <pedro@palves.net>
7464 * gdbthread.h (inferior_ref): Define.
7465 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7466 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7468 (scoped_restore_current_thread::restore):
7469 Adjust to gdb::ref_ptr.
7470 (scoped_restore_current_thread::~scoped_restore_current_thread):
7471 Remove manual decref handling.
7472 (scoped_restore_current_thread::scoped_restore_current_thread):
7474 inferior_ref::new_reference/thread_info_ref::new_reference.
7475 Incref the thread before calling get_frame_id instead of after.
7476 Let TARGET_CLOSE_ERROR propagate.
7478 2020-07-10 Pedro Alves <pedro@palves.net>
7480 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7481 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7482 NOT_AVAILABLE_ERROR.
7483 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7484 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7486 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7487 Pedro Alves <pedro@palves.net>
7490 * infrun.c (threads_are_resumed_pending_p): Delete.
7491 (do_target_wait): Remove threads_are_executing and
7492 threads_are_resumed_pending_p checks from the inferior_matches
7493 lambda. Update comments.
7495 2020-07-10 Pedro Alves <pedro@palves.net>
7498 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7501 2020-07-10 Pedro Alves <pedro@palves.net>
7504 * infrun.c (handle_no_resumed): Handle multiple targets.
7506 2020-07-10 Pedro Alves <pedro@palves.net>
7509 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7512 2020-07-10 Pedro Alves <pedro@palves.net>
7515 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7516 threads, not all threads.
7518 2020-07-10 Pedro Alves <pedro@palves.net>
7521 * remote.c (remote_target::open_1): Pass remote target pointer as
7522 data to create_async_event_handler.
7523 (remote_async_inferior_event_handler): Mark async event handler
7524 before returning if the remote target still has either pending
7525 events or unacknowledged notifications.
7527 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7529 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7531 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7534 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7536 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7539 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7541 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7542 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7543 AT_FREEBSD_PS_STRINGS.
7545 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7547 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7548 of debugfile path on Windows.
7550 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7552 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7555 2020-07-08 Tom Tromey <tromey@adacore.com>
7557 * ada-lang.c (ada_exception_message_1): Use read_memory.
7559 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7562 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7563 special handling for inline frames.
7564 * findvar.c (value_of_register_lazy): Skip inline frames when
7565 creating lazy register values.
7566 * frame.c (frame_id_computed_p): Delete definition.
7567 * frame.h (frame_id_computed_p): Delete declaration.
7569 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7571 * NEWS: Mention additions to Python API.
7572 * python/py-arch.c (archpy_register_groups): New function.
7573 (arch_object_methods): Add 'register_groups' method.
7574 * python/py-registers.c (reggroup_iterator_object): New struct.
7575 (reggroup_object): New struct.
7576 (gdbpy_new_reggroup): New function.
7577 (gdbpy_reggroup_to_string): New function.
7578 (gdbpy_reggroup_name): New function.
7579 (gdbpy_reggroup_iter): New function.
7580 (gdbpy_reggroup_iter_next): New function.
7581 (gdbpy_new_reggroup_iterator): New function
7582 (gdbpy_initialize_registers): Register new types.
7583 (reggroup_iterator_object_type): Define new Python type.
7584 (gdbpy_reggroup_getset): New static global.
7585 (reggroup_object_type): Define new Python type.
7586 * python/python-internal.h
7588 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7590 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7591 * python/py-arch.c (archpy_registers): New function.
7592 (arch_object_methods): Add 'registers' method.
7593 * python/py-registers.c: New file.
7594 * python/python-internal.h
7595 (gdbpy_new_register_descriptor_iterator): Declare.
7596 (gdbpy_initialize_registers): Declare.
7597 * python/python.c (do_start_initialization): Call
7598 gdbpy_initialize_registers.
7599 * NEWS: Mention additions to the Python API.
7601 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7603 * NEWS: Mention new Python API method.
7604 * python/py-unwind.c (pending_framepy_architecture): New function.
7605 (pending_frame_object_methods): Add architecture method.
7607 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7609 * gdbarch.c: Regenerate.
7610 * gdbarch.h: Regenerate.
7611 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7612 (gdbarch_data): Use internal_error for the case where
7613 deprecated_set_gdbarch_data was originally needed.
7614 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7615 and use passed in obstack.
7616 (libunwind_frame_set_descr): Should no longer get back NULL from
7618 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7620 * user-regs.c (user_regs_init): Update parameters, and use passed
7622 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7623 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7625 2020-07-06 Tom de Vries <tdevries@suse.de>
7627 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7628 End-Of-Sequence in lte_is_less_than.
7629 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7630 "gdb: Don't reorder line table entries too much when sorting".
7632 2020-07-06 Tom de Vries <tdevries@suse.de>
7635 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7637 2020-07-05 Tom de Vries <tdevries@suse.de>
7640 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7641 std::uncaught_exceptions instead of deprecated
7642 std::uncaught_exception.
7644 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7646 * macroexp.h (macro_stringify): Return
7647 gdb::unique_xmalloc_ptr<char>.
7648 * macroexp.c (macro_stringify): Likewise.
7649 * macrotab.c (fixup_definition): Update.
7651 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7653 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7654 (lex_one_token): Update.
7655 * macroexp.c (struct macro_buffer) <release>: Return
7656 gdb::unique_xmalloc_ptr<char>.
7657 (macro_stringify): Update.
7658 (macro_expand): Update.
7659 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7660 * macroexp.h (macro_expand_next): Likewise.
7662 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7664 * macroexp.h (macro_lookup_ftype): Remove.
7665 (macro_expand, macro_expand_once, macro_expand_next): Remove
7666 lookup function parameters, add scope parameter.
7667 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7668 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7669 * macroscope.h (standard_macro_lookup): Change parameter type
7671 * macroscope.c (standard_macro_lookup): Likewise.
7672 * c-exp.y (lex_one_token): Update.
7673 * macrocmd.c (macro_expand_command): Likewise.
7674 (macro_expand_once_command): Likewise.
7676 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7678 * inf-loop.c (inferior_event_handler): Remove client_data param.
7679 * inf-loop.h (inferior_event_handler): Likewise.
7680 * infcmd.c (step_1): Adjust.
7681 * infrun.c (proceed): Adjust.
7682 (fetch_inferior_event): Remove client_data param.
7683 (infrun_async_inferior_event_handler): Adjust.
7684 * infrun.h (fetch_inferior_event): Remove `void *` param.
7685 * linux-nat.c (handle_target_event): Adjust.
7686 * record-btrace.c (record_btrace_handle_async_inferior_event):
7688 * record-full.c (record_full_async_inferior_event_handler):
7690 * remote.c (remote_async_inferior_event_handler): Adjust.
7692 2020-07-01 Tom Tromey <tom@tromey.com>
7694 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7695 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7697 2020-07-01 Tom Tromey <tom@tromey.com>
7699 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7701 (tui_win_info::make_window): Merge with
7702 tui_gen_win_info::make_window.
7703 (tui_win_info::make_visible): Move from tui_gen_win_info.
7704 * tui/tui-win.c (tui_win_info::max_width): Move from
7706 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7708 <window_factory>: Likewise.
7709 * tui/tui-layout.c (tui_win_info::resize): Move from
7711 (make_standard_window): Change return type.
7712 (get_locator_window, tui_get_window_by_name): Likewise.
7713 (tui_layout_window::apply): Remove a cast.
7714 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7715 (struct tui_win_info): Merge with tui_gen_win_info.
7716 (struct tui_gen_win_info): Remove.
7718 2020-07-01 Tom Tromey <tom@tromey.com>
7720 * tui/tui-stack.h (struct tui_locator_window): Derive from
7722 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7723 <can_box>: New method.
7725 2020-07-01 Tom Tromey <tom@tromey.com>
7727 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7729 2020-07-01 Tom Tromey <tom@tromey.com>
7731 * tui/tui-regs.c (tui_data_window::display_registers_from)
7732 (tui_data_window::display_registers_from)
7733 (tui_data_window::first_data_item_displayed)
7734 (tui_data_window::delete_data_content_windows): Update.
7735 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7737 (tui_data_window::check_register_values): Update.
7738 (tui_data_item_window::rerender): Add parameters. Update.
7739 (tui_data_item_window::refresh_window): Remove.
7740 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7742 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7744 <refresh_window, max_height, min_height>: Remove.
7745 <rerender>: Add parameters.
7746 <x, y, visible>: New members.
7747 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7748 <m_item_width>: New member.
7750 2020-07-01 Tom Tromey <tom@tromey.com>
7752 * tui/tui-regs.c (tui_data_window::show_register_group)
7753 (tui_data_window::check_register_values): Update.
7754 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7757 2020-07-01 Tom Tromey <tom@tromey.com>
7759 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7762 2020-07-01 Tom Tromey <tom@tromey.com>
7764 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7765 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7767 2020-07-01 Tom Tromey <tom@tromey.com>
7769 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7770 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7771 (struct tui_line_or_address): Move from tui-data.h.
7772 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7773 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7774 (tui_cmd_window, tui_source_window_base, tui_source_window)
7775 (tui_disasm_window): Don't declare.
7776 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7778 (SINGLE_KEY): Move to tui-stack.c.
7780 2020-07-01 Tom Tromey <tom@tromey.com>
7782 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7784 * tui/tui-regs.c (class tab_expansion_file): New.
7785 (tab_expansion_file::write): New method.
7786 (tui_register_format): Change return type. Use
7788 (tui_get_register, tui_data_window::display_registers_from)
7789 (tui_data_item_window::rerender): Update.
7790 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7791 * tui/tui-io.c (tui_expand_tabs): Remove.
7793 2020-07-01 Tom Tromey <tom@tromey.com>
7795 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7797 2020-07-01 Fangrui Song <maskray@google.com>
7799 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7801 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7803 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7804 forms for DW_AT_associated and DW_AT_allocated attributes,
7805 which is already checked in function attr_to_dynamic_prop.
7807 2020-06-30 Tom Tromey <tromey@adacore.com>
7809 * dwarf2/read.c (quirk_rust_enum): Correctly call
7810 alloc_rust_variant for default-less enum.
7812 2020-06-30 Tom Tromey <tromey@adacore.com>
7815 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7818 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7820 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7821 * gdbarch.h: Re-generate.
7823 2020-06-28 Tom Tromey <tom@tromey.com>
7825 * command.h (cmd_types): Remove.
7826 (cmd_type): Don't declare.
7827 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7829 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7830 * cli/cli-decode.c (cmd_type): Remove.
7832 2020-06-27 Pedro Alves <palves@redhat.com>
7834 * fork-child.c (prefork_hook): Adjust.
7835 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7837 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7838 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7839 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7840 Remove declarations.
7841 (struct inferior) <set_tty, tty>: New methods.
7842 (struct inferior) <terminal>: Rename to ...
7843 (struct inferior) <m_terminal>: ... this and make private.
7844 * main.c (captured_main_1): Adjust.
7845 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7846 (mi_cmd_inferior_tty_show): Adjust.
7847 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7848 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7850 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7852 * configure.ac: Add --enable-libctf: handle --disable-static
7854 * acinclude.m4: sinclude ../config/enable.m4.
7855 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7856 (LIBCTF): Substitute in.
7857 (CTF_DEPS): New, likewise.
7858 (CLIBS): libctf needs symbols from libbfd: move earlier.
7859 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7861 * ctfread.c: Surround in ENABLE_LIBCTF.
7862 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7863 * configure: Regenerate.
7864 * config.in: Likewise.
7866 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7868 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7870 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7872 * inferior.h (struct inferior) <terminal>: Change type to
7873 gdb::unique_xmalloc_ptr<char>.
7874 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7875 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7876 field, adjust to unique pointer.
7877 (get_inferior_io_terminal): Adjust to unique pointer.
7879 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7881 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7882 registers, not just the known core set of registers.
7884 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7886 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7887 fflags, frm, and fcsr registers.
7888 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7890 (riscv_tdesc_unknown_reg): New function.
7891 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7892 tdesc_use_registers.
7893 * riscv-tdep.h (struct gdbarch_tdep): Add
7894 unknown_csrs_first_regnum, unknown_csrs_count,
7895 duplicate_fflags_regnum, duplicate_frm_regnum, and
7896 duplicate_fcsr_regnum fields.
7898 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7900 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7901 callback, use the callback (when not null) to help number unknown
7903 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7904 (tdesc_use_registers): Add extra parameter to declaration.
7906 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7908 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7910 (class riscv_pending_register_alias): Likewise.
7911 (riscv_register_feature::register_info): Change 'required_p' field
7912 to 'required', and change its type. Add 'check' member function.
7913 (riscv_register_feature::register_info::check): Define new member
7915 (riscv_xreg_feature): Change initialisation of 'required' field.
7916 (riscv_freg_feature): Likewise.
7917 (riscv_virtual_feature): Likewise.
7918 (riscv_csr_feature): Likewise.
7919 (riscv_check_tdesc_feature): Take extra parameter, the csr
7920 tdesc_feature, rewrite the function to use the new
7921 riscv_register_feature::register_info::check function.
7922 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7924 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7926 * features/Makefile: Remove all references to the deleted files
7928 * features/riscv/32bit-csr.c: Deleted.
7929 * features/riscv/32bit-csr.xml: Deleted.
7930 * features/riscv/64bit-csr.c: Deleted.
7931 * features/riscv/64bit-csr.xml: Deleted.
7932 * features/riscv/rebuild-csr-xml.sh: Deleted.
7934 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7936 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7937 whitespace error for declaration of names member variable.
7938 (struct riscv_register_feature): Add new prefer_first_name member
7939 variable, and fix whitespace error in declaration of registers.
7940 (riscv_xreg_feature): Initialize prefer_first_name field.
7941 (riscv_freg_feature): Likewise.
7942 (riscv_virtual_feature): Likewise.
7943 (riscv_csr_feature): Likewise.
7944 (riscv_register_name): Expand on comments. Remove register name
7945 modifications for CSR and virtual registers.
7947 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7949 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7952 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7954 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7956 (class riscv_pending_register_alias): New class.
7957 (riscv_check_tdesc_feature): Take vector of pending aliases and
7958 populate it as appropriate.
7959 (riscv_setup_register_aliases): Delete.
7960 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7961 to riscv_check_tdesc_feature in all cases. Use the vector to
7962 create the register aliases.
7964 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7966 * sol2-tdep.c (sol2_static_transform_name): Remove.
7967 (sol2_init_abi): Don't register it.
7968 * gdbarch.sh (static_transform_name): Remove.
7969 * gdbarch.c, gdbarch.h: Regenerate.
7971 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7972 gdbarch_static_transform_name.
7973 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7974 * stabsread.c (define_symbol) <'X'>: Remove.
7975 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7978 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7979 <'S'>: Remove call to gdbarch_static_transform_name.
7981 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7983 * procfs.c (procfs_pre_trace): New function.
7984 (procfs_target::create_inferior): Pass it to fork_inferior.
7986 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7988 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7989 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7990 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7991 sol2-tdep.o, sparc-sol2-tdep.o.
7992 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7993 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7994 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7995 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7997 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7999 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8000 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8002 Remove calls to set_gdbarch_skip_solib_resolver,
8003 set_gdbarch_core_pid_to_str.
8004 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8005 (i386_sol2_static_transform_name): Remove.
8006 (i386_sol2_init_abi): Call sol2_init_abi.
8007 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8008 set_gdbarch_static_transform_name,
8009 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8010 Use sol2_sigtramp_p.
8011 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8012 (sol2_sigtramp_p): New function.
8013 (sol2_static_transform_name): New function.
8014 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8015 (sol2_init_abi): New function.
8016 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8017 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8018 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8019 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8020 (sparc_sol2_static_transform_name): Remove.
8021 (sparc32_sol2_init_abi): Call sol2_init_abi.
8022 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8023 set_gdbarch_static_transform_name,
8024 set_gdbarch_skip_solib_resolver,
8025 set_gdbarch_core_pid_to_str.
8026 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8027 (sparc_sol2_static_transform_name): Remove
8028 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8029 call sol2_sigtramp_p.
8030 (sparc64_sol2_init_abi): Call sol2_init_abi.
8031 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8032 set_gdbarch_static_transform_name,
8033 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8035 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8037 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8038 * exec.c (validate_exec_file): If from_tty, set both
8039 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8040 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8041 and from_tty, unconditionally ask a confirmation.
8043 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8045 * target-descriptions.c (tdesc_architecture_name): Protect against
8046 NULL pointer dereference.
8047 (maint_print_xml_tdesc_cmd): New function.
8048 (_initialize_target_descriptions): Register new 'maint print
8049 xml-tdesc' command and give it the filename completer.
8050 * NEWS: Mention new 'maint print xml-tdesc' command.
8052 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8054 * target-descriptions.c (class tdesc_compatible_info): New class.
8055 (struct target_desc): Change type of compatible vector.
8056 (tdesc_compatible_p): Update for change in type of
8057 target_desc::compatible.
8058 (tdesc_compatible_info_list): New function.
8059 (tdesc_compatible_info_arch_name): New function.
8060 (tdesc_add_compatible): Update for change in type of
8061 target_desc::compatible.
8062 (print_c_tdesc::visit_pre): Likewise.
8064 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8066 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8067 whitespace to underscore.
8068 (maint_print_c_tdesc_cmd): Use fake filename for target
8069 descriptions that came from the target.
8070 (_initialize_target_descriptions): Add filename command completion
8071 for 'maint print c-tdesc'.
8073 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8075 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8078 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8080 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8082 (dwarf2_find_location_expression): Likewise.
8083 (call_site_parameter_matches): Likewise.
8084 (dwarf2_compile_expr_to_ax): Likewise.
8085 (disassemble_dwarf_expression): Likewise.
8086 (loclist_describe_location): Likewise.
8088 2020-06-23 Pedro Alves <palves@redhat.com>
8090 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8091 progspace-and-thread.h. Include scoped-mock-context.h instead.
8092 (register_to_value_test): Use scoped_mock_context.
8093 * regcache.c: Include "scoped-mock-context.h".
8094 (cooked_read_test): Don't error out if a target is already pushed.
8095 Use scoped_mock_context. Adjust.
8096 * scoped-mock-context.h: New file.
8098 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8100 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8102 (ada_language::is_string_type_p): New member function.
8103 * c-lang.c (c_language_data): Delete la_is_string_type_p
8105 (cplus_language_data): Likewise.
8106 (asm_language_data): Likewise.
8107 (minimal_language_data): Likewise.
8108 * d-lang.c (d_language_data): Likewise.
8109 * f-lang.c (f_is_string_type_p): Delete function, implementation
8110 moved to f_language::is_string_type_p.
8111 (f_language_data): Delete la_is_string_type_p initializer.
8112 (f_language::is_string_type_p): New member function,
8113 implementation from f_is_string_type_p.
8114 * go-lang.c (go_is_string_type_p): Delete function, implementation
8115 moved to go_language::is_string_type_p.
8116 (go_language_data): Delete la_is_string_type_p initializer.
8117 (go_language::is_string_type_p): New member function,
8118 implementation from go_is_string_type_p.
8119 * language.c (language_defn::is_string_type_p): Define new member
8121 (default_is_string_type_p): Make static, add comment copied from
8123 (unknown_language_data): Delete la_is_string_type_p initializer.
8124 (unknown_language::is_string_type_p): New member function.
8125 (auto_language_data): Delete la_is_string_type_p initializer.
8126 (auto_language::is_string_type_p): New member function.
8127 * language.h (language_data): Delete la_is_string_type_p field.
8128 (language_defn::is_string_type_p): Declare new function.
8129 (default_is_string_type_p): Delete desclaration, move comment to
8131 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8132 moved to m2_language::is_string_type_p.
8133 (m2_language_data): Delete la_is_string_type_p initializer.
8134 (m2_language::is_string_type_p): New member function,
8135 implementation from m2_is_string_type_p.
8136 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8138 * opencl-lang.c (opencl_language_data): Likewise.
8139 * p-lang.c (pascal_is_string_type_p): Delete function,
8140 implementation moved to pascal_language::is_string_type_p.
8141 (pascal_language_data): Delete la_is_string_type_p initializer.
8142 (pascal_language::is_string_type_p): New member function,
8143 implementation from pascal_is_string_type_p.
8144 * rust-lang.c (rust_is_string_type_p): Delete function,
8145 implementation moved to rust_language::is_string_type_p.
8146 (rust_language_data): Delete la_is_string_type_p initializer.
8147 (rust_language::is_string_type_p): New member function,
8148 implementation from rust_is_string_type_p.
8149 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8152 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8154 * ada-lang.c (ada_language_data): Delete la_print_typedef
8156 (ada_language::print_typedef): New member function.
8157 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8158 (cplus_language_data): Likewise.
8159 (asm_language_data): Likewise.
8160 (minimal_language_data): Likewise.
8161 * d-lang.c (d_language_data): Likewise.
8162 * f-lang.c (f_language_data): Likewise.
8163 (f_language::print_typedef): New member function.
8164 * go-lang.c (go_language_data): Delete la_print_typedef
8166 * language.c (language_defn::print_typedef): Define member
8168 (unknown_language_data): Delete la_print_typedef initializer.
8169 (unknown_language::print_typedef): New member function.
8170 (auto_language_data): Delete la_print_typedef initializer.
8171 (auto_language::print_typedef): New member function.
8172 * language.h (language_data): Delete la_print_typedef field.
8173 (language_defn::print_typedef): Declare new member function.
8174 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8175 (default_print_typedef): Delete declaration.
8176 * m2-lang.c (m2_language_data): Delete la_print_typedef
8178 (m2_language::print_typedef): New member function.
8179 * objc-lang.c (objc_language_data): Delete la_print_typedef
8181 * opencl-lang.c (opencl_language_data): Likewise.
8182 * p-lang.c (pascal_language_data): Likewise.
8183 (pascal_language::print_typedef): New member function.
8184 * rust-lang.c (rust_print_typedef): Delete function,
8185 implementation moved to rust_language::print_typedef.
8186 (rust_language): Delete la_print_typedef initializer.
8187 (rust_language::print_typedef): New member function,
8188 implementation from rust_print_typedef.
8189 * typeprint.c (default_print_typedef): Delete.
8191 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8193 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8194 (ada_language::printstr): New member function.
8195 * c-lang.c (c_language_data): Delete la_printstr initializer.
8196 (cplus_language_data): Likewise.
8197 (asm_language_data): Likewise.
8198 (minimal_language_data): Likewise.
8199 * d-lang.c (d_language_data): Likewise.
8200 * f-lang.c (f_printstr): Rename to f_language::printstr.
8201 (f_language_data): Delete la_printstr initializer.
8202 (f_language::printstr): New member function, implementation from
8204 * go-lang.c (go_language_data): Delete la_printstr initializer.
8205 * language.c (language_defn::printstr): Define new member
8207 (unk_lang_printstr): Delete.
8208 (unknown_language_data): Delete la_printstr initializer.
8209 (unknown_language::printstr): New member function.
8210 (auto_language_data): Delete la_printstr initializer.
8211 (auto_language::printstr): New member function.
8212 * language.h (language_data): Delete la_printstr field.
8213 (language_defn::printstr): Declare new member function.
8214 (LA_PRINT_STRING): Update call to printstr.
8215 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8216 (m2_language_data): Delete la_printstr initializer.
8217 (m2_language::printstr): New member function, implementation from
8219 * objc-lang.c (objc_language_data): Delete la_printstr
8221 * opencl-lang.c (opencl_language_data): Likewise.
8222 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8223 (pascal_language_data): Delete la_printstr initializer.
8224 (pascal_language::printstr): New member function, implementation
8225 from pascal_printstr.
8226 * p-lang.h (pascal_printstr): Delete declaration.
8227 * rust-lang.c (rust_printstr): Update header comment.
8228 (rust_language_data): Delete la_printstr initializer.
8229 (rust_language::printstr): New member function.
8231 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8233 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8234 (ada_language::printchar): New member function.
8235 * c-lang.c (c_language_data): Delete la_printchar initializer.
8236 (cplus_language_data): Likewise.
8237 (asm_language_data): Likewise.
8238 (minimal_language_data): Likewise.
8239 * d-lang.c (d_language_data): Likewise.
8240 * f-lang.c (f_printchar): Rename to f_language::printchar.
8241 (f_language_data): Delete la_printchar initializer.
8242 (f_language::printchar): New member function, implementation from
8244 * go-lang.c (go_language_data): Delete la_printchar initializer.
8245 * language.c (unk_lang_printchar): Delete.
8246 (language_defn::printchar): Define new member function.
8247 (unknown_language_data): Delete la_printchar initializer.
8248 (unknown_language::printchar): New member function.
8249 (auto_language_data): Delete la_printchar initializer.
8250 (auto_language::printchar): New member function.
8251 * language.h (language_data): Delete la_printchar field.
8252 (language_defn::printchar): Declare new member function.
8253 (LA_PRINT_CHAR): Update call to printchar.
8254 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8255 (m2_language::printchar): New member function.
8256 * objc-lang.c (objc_language_data): Delete la_printchar
8258 * opencl-lang.c (opencl_language_data): Likewise.
8259 * p-lang.c (pascal_language_data): Delete la_printchar
8261 (pascal_language::printchar): New member function.
8262 * rust-lang.c (rust_printchar): Rename to
8263 rust_language::printchar.
8264 (rust_language_data): Delete la_printchar initializer.
8265 (rust_language::printchar): New member function, implementation
8266 from rust_printchar.
8268 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8270 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8271 (ada_language_data): Delete la_emitchar initializer.
8272 (ada_language::emitchar): New member function, implementation from
8274 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8275 (cplus_language_data): Likewise.
8276 (asm_language_data): Likewise.
8277 (minimal_language_data): Likewise.
8278 * d-lang.c (d_language_data): Likewise.
8279 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8280 (f_language_data): Delete la_emitchar initializer.
8281 (f_language::emitchar): New member function, implementation from
8283 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8284 * language.c (unk_lang_emit_char): Delete.
8285 (language_defn::emitchar): New member function definition.
8286 (unknown_language_data): Delete la_emitchar initializer.
8287 (unknown_language::emitchar): New member function.
8288 (auto_language_data): Delete la_emitchar initializer.
8289 (auto_language::emitchar): New member function.
8290 * language.h (language_data): Delete la_emitchar field.
8291 (language_defn::emitchar): New member field declaration.
8292 (LA_EMIT_CHAR): Update call to emitchar.
8293 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8294 (m2_language_data): Delete la_emitchar initializer.
8295 (m2_language::emitchar): New member function, implementation from
8297 * objc-lang.c (objc_language_data): Delete la_emitchar
8299 * opencl-lang.c (opencl_language_data): Likewise.
8300 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8301 (pascal_language_data): Delete la_emitchar initializer.
8302 (pascal_language::emitchar): New member function, implementation
8303 from pascal_emit_char.
8304 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8305 (rust_language_data): Delete la_emitchar initializer.
8306 (rust_language::emitchar): New member function, implementation
8309 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8311 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8312 (ada_language_data): Delete la_post_parser initializer.
8313 (ada_language::post_parser): New member function.
8314 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8315 (cplus_language_data): Likewise.
8316 (asm_language_data): Likewise.
8317 (minimal_language_data): Likewise.
8318 * d-lang.c (d_language_data): Likewise.
8319 * f-lang.c (f_language_data): Likewise.
8320 * go-lang.c (go_language_data): Likewise.
8321 * language.c (unknown_language_data): Likewise.
8322 (auto_language_data): Likewise.
8323 * language.h (language_data): Delete la_post_parser field.
8324 (language_defn::post_parser): New member function.
8325 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8326 * objc-lang.c (objc_language_data): Likewise.
8327 * opencl-lang.c (opencl_language_data): Likewise.
8328 * p-lang.c (pascal_language_data): Likewise.
8329 * parse.c (parse_exp_in_context): Update call to post_parser.
8330 (null_post_parser): Delete definition.
8331 * parser-defs.h (null_post_parser): Delete declaration.
8332 * rust-lang.c (rust_language_data): Delete la_post_parser
8335 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8337 * ada-lang.c (parse): Rename to ada_language::parser.
8338 (ada_language_data): Delete la_parser initializer.
8339 (ada_language::parser): New member function, implementation from
8341 * c-lang.c (c_language_data): Delete la_parser initializer.
8342 (cplus_language_data): Likewise.
8343 (asm_language_data): Likewise.
8344 (minimal_language_data): Likewise.
8345 * d-lang.c (d_language_data): Likewise.
8346 (d_language::parser): New member function.
8347 * f-lang.c (f_language_data): Delete la_parser initializer.
8348 (f_language::parser): New member function.
8349 * go-lang.c (go_language_data): Delete la_parser initializer.
8350 (go_language::parser): New member function.
8351 * language.c (unk_lang_parser): Delete.
8352 (language_defn::parser): Define new member function.
8353 (unknown_language_data): Delete la_parser initializer.
8354 (unknown_language::parser): New member function.
8355 (auto_language_data): Delete la_parser initializer.
8356 (auto_language::parser): New member function.
8357 * language.h (language_data): Delete la_parser field.
8358 (language_defn::parser): Declare new member function.
8359 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8360 (m2_language::parser): New member function.
8361 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8362 * opencl-lang.c (opencl_language_data): Likewise.
8363 * p-lang.c (pascal_language_data): Likewise.
8364 (pascal_language::parser): New member function.
8365 * parse.c (parse_exp_in_context): Update call to parser.
8366 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8367 (rust_language::parser): New member function.
8369 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8371 * top.c (print_gdb_configuration): Print --with-python-libdir
8372 configuration value.
8374 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8376 * NEWS: Mention change to the alias command.
8378 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8380 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8381 (alias_command_completer)
8382 (make_alias_options_def_group): New functions.
8383 (alias_opts, alias_option_defs): New struct and array.
8384 (alias_usage_error): Update usage.
8385 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8386 Use option framework.
8387 (_initialize_cli_cmds): Update alias command help.
8388 Update aliases command help.
8390 Add NULL for new default_args lookup_cmd argument.
8391 (valid_command_p): Rename to validate_aliased_command.
8392 Add NULL for new default_args lookup_cmd argument. Verify that the
8393 aliased_command has no default args.
8394 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8395 (lookup_cmd_1, lookup_cmd): New argument default_args.
8397 Add NULL for new default_args lookup_cmd argument.
8398 (print_help_for_command): Show default args under the layout
8399 alias some_alias = some_aliased_cmd some_alias_default_arg.
8400 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8401 xfree default_args in destructor.
8402 * cli/cli-script.c (process_next_line, do_define_command):
8403 Add NULL for new default_args lookup_cmd argument.
8404 * command.h: Declare new default_args argument in lookup_cmd
8406 * completer.c (complete_line_internal_1):
8407 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8408 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8409 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8411 * infcmd.c (_initialize_infcmd): Likewise.
8412 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8413 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8414 * python/py-param.c (add_setshow_generic): Likewise.
8415 * remote.c (_initialize_remote): Likewise.
8416 * top.c (execute_command): Prepend default_args if command has some.
8418 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8419 * tracepoint.c (validate_actionline, encode_actions_1):
8420 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8422 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8424 * jit.c (jit_read_descriptor): Use bool as the return type.
8425 (jit_breakpoint_re_set_internal): Use bool as the return type.
8426 Invert the return value logic; return true if the jit breakpoint
8427 has been successfully initialized.
8428 (jit_inferior_init): Update the call to
8429 jit_breakpoint_re_set_internal.
8431 2020-06-22 Pedro Alves <palves@redhat.com>
8434 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8435 Use the current inferior instead. Don't return
8436 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8438 * sol-thread.c (sol_thread_target::wait): Don't reference
8440 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8441 (sol_update_thread_list_callback): Use the current inferior's pid
8442 instead of inferior_ptid.
8444 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8446 * procfs.c: Cleanup many comments.
8448 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8449 (AFTER_WATCHFLAG): Replace by value.
8451 (MAIN_PROC_NAME_FORMAT): Inline ...
8452 (create_procinfo): ... here.
8454 (procfs_debug_inferior): Remove SYS_exec handling.
8455 (syscall_is_exec): Likewise.
8456 (procfs_set_exec_trap): Likewise.
8458 (syscall_is_lwp_exit): Inline in callers.
8459 (syscall_is_exit): Likewise.
8460 (syscall_is_exec): Likewise.
8461 (syscall_is_lwp_create): Likewise.
8463 (invalidate_cache): Remove #if 0 code.
8465 (make_signal_thread_runnable): Remove.
8466 (procfs_target::resume): Remove #if 0 code.
8468 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8471 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8473 (procfs_target::create_inferior): ... here.
8475 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8477 * exec.c (validate_exec_file): Ensure the build-id is up to
8478 date by calling reopen_exec_file (that checks file timestamp
8479 to decide to re-read the file).
8481 2020-06-18 Pedro Alves <palves@redhat.com>
8484 * gdbthread.h (delete_thread, delete_thread_silent)
8485 (find_thread_ptid): Update comments.
8486 * thread.c (current_thread_): New global.
8487 (is_current_thread): Move higher, and reimplement.
8488 (inferior_thread): Reimplement.
8489 (set_thread_exited): Use bool. Add assertions.
8490 (add_thread_silent): Simplify thread-reuse handling by always
8491 calling delete_thread.
8492 (delete_thread): Remove intro comment.
8493 (find_thread_ptid): Skip exited threads.
8494 (switch_to_thread_no_regs): Write to current_thread_.
8495 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8496 INFERIOR_PTID. Clear current_thread_.
8498 2020-06-18 Pedro Alves <palves@redhat.com>
8500 * aix-thread.c (pd_update): Use switch_to_thread.
8502 2020-06-18 Pedro Alves <palves@redhat.com>
8504 * ravenscar-thread.c (ravenscar_thread_target): Update.
8505 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8506 (ravenscar_thread_target::add_active_thread): ... this. Don't
8507 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8508 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8510 2020-06-18 Pedro Alves <palves@redhat.com>
8512 * nat/windows-nat.c (current_windows_thread): Remove.
8513 * nat/windows-nat.h (current_windows_thread): Remove.
8514 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8516 (display_selectors): Adjust to fetch the current
8517 windows_thread_info based on inferior_ptid.
8518 (fake_create_process): No longer write to current_windows_thread.
8519 (windows_nat_target::get_windows_debug_event):
8520 Don't set inferior_ptid or current_windows_thread.
8521 (windows_nat_target::wait): Adjust to not rely on
8522 current_windows_thread.
8523 (do_initial_windows_stuff): Now a method of windows_nat_target.
8524 Switch to the last_ptid thread.
8525 (windows_nat_target::attach): Adjust.
8526 (windows_nat_target::detach): Use switch_to_no_thread instead of
8527 writing to inferior_ptid directly.
8528 (windows_nat_target::create_inferior): Adjust.
8530 2020-06-18 Pedro Alves <palves@redhat.com>
8532 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8534 2020-06-18 Pedro Alves <palves@redhat.com>
8536 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8537 after creating it, instead of writing to inferior_ptid. Don't
8538 write to inferior_ptid.
8540 2020-06-18 Pedro Alves <palves@redhat.com>
8542 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8544 2020-06-18 Pedro Alves <palves@redhat.com>
8546 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8547 it, instead of writing to inferior_ptid.
8549 2020-06-18 Pedro Alves <palves@redhat.com>
8551 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8554 2020-06-18 Pedro Alves <palves@redhat.com>
8556 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8557 instead of writing to inferior_ptid directly.
8559 2020-06-18 Pedro Alves <palves@redhat.com>
8561 * corelow.c (core_target::close): Use switch_to_no_thread instead
8562 of writing to inferior_ptid directly.
8563 (add_to_thread_list, core_target_open): Use switch_to_thread
8564 instead of writing to inferior_ptid directly.
8566 2020-06-18 Pedro Alves <palves@redhat.com>
8568 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8570 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8572 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8573 inferior_ptid directly.
8574 (darwin_nat_target::init_thread_list): Switch to thread, instead
8575 of writing to inferior_ptid.
8576 (darwin_nat_target::attach): Don't write to inferior_ptid.
8577 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8579 2020-06-18 Pedro Alves <palves@redhat.com>
8581 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8583 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8584 Instead use switch_to_thread.
8585 (gnu_nat_target::detach): Use switch_to_no_thread
8586 instead of writing to inferior_ptid directly. Used passed-in
8587 inferior instead of looking up the inferior by pid.
8589 2020-06-18 Pedro Alves <palves@redhat.com>
8591 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8594 2020-06-18 Pedro Alves <palves@redhat.com>
8596 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8598 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8600 (nto_procfs_target::detach): Avoid referencing
8601 inferior_ptid. Use switch_to_no_thread instead of writing to
8602 inferior_ptid directly.
8603 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8604 instead of writing to inferior_ptid directly.
8605 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8608 2020-06-18 Pedro Alves <palves@redhat.com>
8610 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8611 after creating it, instead of writing to inferior_ptid.
8612 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8613 to inferior_ptid directly.
8614 (gdbsim_target::wait): Don't write to inferior_ptid.
8616 2020-06-18 Pedro Alves <palves@redhat.com>
8618 * remote.c (remote_target::remote_notice_new_inferior): Use
8619 switch_to_thread instead of writing to inferior_ptid directly.
8620 (remote_target::add_current_inferior_and_thread): Use
8621 switch_to_no_thread instead of writing to inferior_ptid directly.
8622 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8623 and switch_to_thread instead of using set_current_inferior or
8624 writing to inferior_ptid directly.
8626 2020-06-18 Pedro Alves <palves@redhat.com>
8628 * tracectf.c (ctf_target_open): Switch to added thread instead of
8629 writing to inferior_ptid directly.
8630 (ctf_target::close): Use switch_to_no_thread instead of writing to
8631 inferior_ptid directly.
8633 2020-06-18 Pedro Alves <palves@redhat.com>
8635 * tracefile-tfile.c (tfile_target_open): Don't write to
8636 inferior_ptid directly, instead switch to added thread.
8637 (tfile_target::close): Use switch_to_no_thread instead of writing
8638 to inferior_ptid directly.
8640 2020-06-18 Pedro Alves <palves@redhat.com>
8642 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8643 (procfs_target::detach): Use switch_to_no_thread
8644 instead of writing to inferior_ptid directly.
8645 (do_attach): Change return type to void. Switch to the added
8647 (procfs_target::create_inferior): Switch to the added thread.
8648 (procfs_do_thread_registers): Don't write to inferior_ptid.
8650 2020-06-18 Pedro Alves <palves@redhat.com>
8652 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8653 of writing to inferior_ptid.
8654 (scoped_restore_exited_inferior): Delete.
8655 (handle_vfork_child_exec_or_exit): Simplify using
8656 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8657 instead of writing to inferior_ptid.
8658 (THREAD_STOPPED_BY): Delete.
8659 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8660 (thread_stopped_by_hw_breakpoint): Delete.
8661 (save_waitstatus): Use
8662 scoped_restore_current_thread+switch_to_thread, and call
8663 target_stopped_by_watchpoint instead of
8664 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8665 instead of thread_stopped_by_sw_breakpoint, and
8666 target_stopped_by_hw_breakpoint instead of
8667 thread_stopped_by_hw_breakpoint.
8668 (handle_inferior_event)
8669 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8670 inferior_ptid directly, nor
8671 set_current_inferior/set_current_program_space. Use
8672 switch_to_thread / switch_to_inferior_no_thread instead.
8674 2020-06-18 Pedro Alves <palves@redhat.com>
8676 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8677 instead of writing to inferior_ptid.
8679 2020-06-18 Pedro Alves <palves@redhat.com>
8681 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8683 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8684 to the added thread.
8685 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8686 instead of writing to inferior_ptid.
8688 2020-06-18 Pedro Alves <palves@redhat.com>
8690 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8691 (register_to_value_test): Mock a program_space too. Heap-allocate
8692 the address space. Don't write to inferior_ptid. Use
8693 switch_to_thread instead.
8695 2020-06-18 Pedro Alves <palves@redhat.com>
8697 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8699 (find_signalled_thread()): New, factored out from
8700 linux_make_corefile_notes and adjusted to handle exited threads.
8701 (linux_make_corefile_notes): Adjust to use the new
8702 find_signalled_thread.
8704 2020-06-18 Pedro Alves <palves@redhat.com>
8706 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8707 of saving/restoring inferior_ptid.
8709 2020-06-17 Tom Tromey <tom@tromey.com>
8711 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8712 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8714 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8716 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8718 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8721 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8723 * regformats/reg-arm.dat: Remove.
8724 * regformats/reg-bfin.dat: Remove.
8725 * regformats/reg-cris.dat: Remove.
8726 * regformats/reg-crisv32.dat: Remove.
8727 * regformats/reg-m32r.dat: Remove.
8728 * regformats/reg-tilegx.dat: Remove.
8729 * regformats/reg-tilegx32.dat: Remove.
8731 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8733 * features/Makefile (WHICH): Remove arm files.
8734 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8735 * regformats/arm/arm-with-neon.dat: Remove.
8736 * regformats/arm/arm-with-vfpv2.dat: Remove.
8737 * regformats/arm/arm-with-vfpv3.dat: Remove.
8739 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8741 * features/Makefile (XMLTOC): Remove rx.xml.
8743 2020-06-17 Pedro Alves <palves@redhat.com>
8745 * gdbthread.h (thread_control_state) <trap_expected> Update
8748 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8750 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8751 ada_language::lookup_symbol_nonlocal.
8752 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8753 (ada_language::lookup_symbol_nonlocal): New member function,
8754 implementation from ada_lookup_symbol_nonlocal.
8755 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8757 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8759 (cplus_language::lookup_symbol_nonlocal): New member function.
8760 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8761 (minimal_language_data) Likewise.
8762 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8763 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8765 (d_language::lookup_symbol_nonlocal): New member function.
8766 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8768 (f_language::lookup_symbol_nonlocal): New member function.
8769 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8771 * language.c (unknown_language_data): Likewise.
8772 (auto_language_data): Likewise.
8773 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8775 (language_defn::lookup_symbol_nonlocal): New member function.
8776 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8778 * objc-lang.c (objc_language_data): Likewise.
8779 * opencl-lang.c (opencl_language_data): Likewise.
8780 * p-lang.c (pascal_language_data): Likewise.
8781 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8782 rust_language::lookup_symbol_nonlocal.
8783 (rust_language_data): Delete la_lookup_symbol_nonlocal
8785 (rust_language::lookup_symbol_nonlocal): New member function,
8786 implementation from rust_lookup_symbol_nonlocal.
8787 * symtab.c (lookup_symbol_aux): Update call to
8788 lookup_symbol_nonlocal.
8789 (basic_lookup_symbol_nonlocal): Rename to...
8790 (language_defn::lookup_symbol_nonlocal): ...this, and update
8791 header comment. Remove language_defn parameter, and replace with
8793 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8795 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8797 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8799 (ada_language::value_print_inner): New member function.
8800 * c-lang.c (c_language_data): Delete la_value_print_inner
8802 (cplus_language_data): Likewise.
8803 (asm_language_data): Likewise.
8804 (minimal_language_data): Likewise.
8805 * d-lang.c (d_language_data): Likewise.
8806 (d_language::value_print_inner): New member function.
8807 * f-lang.c (f_language_data): Delete la_value_print_inner
8809 (f_language::value_print_inner): New member function.
8810 * f-lang.h (f_value_print_innner): Rename to...
8811 (f_value_print_inner): ...this (note spelling of 'inner').
8812 * f-valprint.c (f_value_print_innner): Rename to...
8813 (f_value_print_inner): ...this (note spelling of 'inner').
8814 * go-lang.c (go_language_data): Delete la_value_print_inner
8816 (go_language::value_print_inner): New member function.
8817 * language.c (language_defn::value_print_inner): Define new member
8819 (unk_lang_value_print_inner): Delete.
8820 (unknown_language_data): Delete la_value_print_inner initializer.
8821 (unknown_language::value_print_inner): New member function.
8822 (auto_language_data): Delete la_value_print_inner initializer.
8823 (auto_language::value_print_inner): New member function.
8824 * language.h (language_data): Delete la_value_print_inner field.
8825 (language_defn::value_print_inner): Delcare new member function.
8826 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8828 (m2_language::value_print_inner): New member function.
8829 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8831 * opencl-lang.c (opencl_language_data): Likewise.
8832 * p-lang.c (pascal_language_data): Likewise.
8833 (pascal_language::value_print_inner): New member function.
8834 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8836 (rust_language::value_print_inner): New member function.
8837 * valprint.c (do_val_print): Update call to value_print_inner.
8839 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8841 * ada-lang.c (ada_language_data): Delete la_value_print
8843 (ada_language::value_print): New member function.
8844 * c-lang.c (c_language_data): Delete la_value_print initializer.
8845 (cplus_language_data): Likewise.
8846 (asm_language_data): Likewise.
8847 (minimal_language_data): Likewise.
8848 * d-lang.c (d_language_data): Likewise.
8849 * f-lang.c (f_language_data): Likewise.
8850 * go-lang.c (go_language_data): Likewise.
8851 * language.c (unk_lang_value_print): Delete.
8852 (language_defn::value_print): Define new member function.
8853 (unknown_language_data): Delete la_value_print initializer.
8854 (unknown_language::value_print): New member function.
8855 (auto_language_data): Delete la_value_print initializer.
8856 (auto_language::value_print): New member function.
8857 * language.h (language_data): Delete la_value_print field.
8858 (language_defn::value_print): Declare new member function.
8859 (LA_VALUE_PRINT): Update call to value_print.
8860 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8861 * objc-lang.c (objc_language_data): Likewise.
8862 * opencl-lang.c (opencl_language_data): Likewise.
8863 * p-lang.c (pascal_language_data): Likewise.
8864 (pascal_language::value_print): New member function.
8865 * rust-lang.c (rust_language_data): Delete la_value_print
8868 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8870 * ada-lang.c (ada_watch_location_expression): Rename to
8871 ada_language::watch_location_expression.
8872 (ada_language_data): Delete la_watch_location_expression
8874 (ada_language::watch_location_expression): New member function,
8875 implementation from ada_watch_location_expression.
8876 * breakpoint.c (watch_command_1): Update call to
8877 watch_location_expression.
8878 * c-lang.c (c_watch_location_expression): Rename to
8879 language_defn::watch_location_expression.
8880 (c_language_data): Delete la_watch_location_expression
8882 (cplus_language_data): Likewise.
8883 (asm_language_data): Likewise.
8884 (minimal_language_data): Likewise.
8885 * c-lang.h (c_watch_location_expression): Delete declaration.
8886 * d-lang.c (d_language_data): Delete la_watch_location_expression
8888 * f-lang.c (f_language_data): Likewise.
8889 * go-lang.c (go_language_data): Likewise.
8890 * language.c (language_defn::watch_location_expression): Member
8891 function implementation from c_watch_location_expression.
8892 (unknown_language_data): Delete la_watch_location_expression
8894 (auto_language_data): Likewise.
8895 * language.h (language_data): Delete la_watch_location_expression
8897 (language_defn::watch_location_expression): Declare new member
8899 * m2-lang.c (m2_language_data): Delete
8900 la_watch_location_expression initializer.
8901 * objc-lang.c (objc_language_data): Likewise.
8902 * opencl-lang.c (opencl_language_data): Likewise.
8903 * p-lang.c (pascal_language_data): Likewise.
8904 * rust-lang.c (rust_watch_location_expression): Rename to
8905 rust_language::watch_location_expression.
8906 (rust_language_data): Delete la_watch_location_expression
8908 (rust_language::watch_location_expression): New member function,
8909 implementation from rust_watch_location_expression.
8911 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8913 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8914 ada_language::collect_symbol_completion_matches.
8915 (ada_language_data): Delete la_collect_symbol_completion_matches
8917 (ada_language::collect_symbol_completion_matches): New member
8918 function, implementation from
8919 ada_collect_symbol_completion_matches.
8920 * c-lang.c (c_language_data): Delete
8921 la_collect_symbol_completion_matches initializer.
8922 (cplus_language_data): Likewise.
8923 (asm_language_data): Likewise.
8924 (minimal_language_data): Likewise.
8925 * d-lang.c (d_language_data): Likewise.
8926 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8927 f_language::collect_symbol_completion_matches.
8928 (f_language_data): Delete la_collect_symbol_completion_matches
8930 (f_language::collect_symbol_completion_matches) New member
8931 function, implementation from f_collect_symbol_completion_matches.
8932 * go-lang.c (go_language_data): Delete
8933 la_collect_symbol_completion_matches initializer.
8934 * language.c (unknown_language_data): Likewise.
8935 (auto_language_data): Likewise.
8936 * language.h (language_data): Delete
8937 la_collect_symbol_completion_matches field.
8938 (language_defn::collect_symbol_completion_matches): New member
8940 * m2-lang.c (m2_language_data): Delete
8941 la_collect_symbol_completion_matches initializer.
8942 * objc-lang.c (objc_language_data): Likewise.
8943 * opencl-lang.c (opencl_language_data): Likewise.
8944 * p-lang.c (pascal_language_data): Likewise.
8945 * rust-lang.c (rust_language_data): Likewise.
8946 * symtab.c (default_collect_symbol_completion_matches): Delete.
8947 (collect_symbol_completion_matches): Update call to
8948 collect_symbol_completion_matches.
8949 (collect_symbol_completion_matches_type): Likewise.
8950 * symtab.h (default_collect_symbol_completion_matches): Delete
8953 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8955 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8956 (ada_language_data): Delete la_word_break_characters initializer.
8957 (ada_language::word_break_characters): New member function.
8958 * c-lang.c (c_language_data): Delete la_word_break_characters
8960 (cplus_language_data): Likewise.
8961 (asm_language_data): Likewise.
8962 (minimal_language_data): Likewise.
8963 * completer.c: Update global comment.
8964 (advance_to_expression_complete_word_point): Update call to
8965 word_break_characters.
8966 (complete_files_symbols): Likewise.
8967 (complete_line_internal_1): Likewise.
8968 (default_completer_handle_brkchars): Likewise.
8969 (skip_quoted_chars): Likewise.
8970 * d-lang.c (d_language_data): Delete la_word_break_characters
8972 * f-lang.c (f_word_break_characters): Delete.
8973 (f_language_data): Delete la_word_break_characters initializer.
8974 (f_language::word_break_characters): New member function.
8975 * go-lang.c (go_language_data): Delete la_word_break_characters
8977 * language.c (unknown_language_data): Likewise.
8978 (auto_language_data): Likewise.
8979 * language.h (default_word_break_characters): Move declaration to
8980 earlier in the file.
8981 (language_data): Delete la_word_break_characters field.
8982 (language_defn::word_break_characters): New member function.
8983 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8985 * objc-lang.c (objc_language_data): Likewise.
8986 * opencl-lang.c (opencl_language_data): Likewise.
8987 * p-lang.c (pascal_language_data): Likewise.
8988 * rust-lang.c (rust_language_data): Likewise.
8990 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8992 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8993 (ada_language_data): Delete la_get_symbol_name_matcher
8995 (language_defn::get_symbol_name_matcher_inner): New member
8997 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8999 (cplus_language_data): Likewise.
9000 (cplus_language::get_symbol_name_matcher_inner): New member
9002 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9003 (minimal_language_data): Likewise.
9004 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9005 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9007 * dictionary.c (iter_match_first_hashed): Update call to
9008 get_symbol_name_matcher.
9009 (iter_match_next_hashed): Likewise.
9010 (iter_match_next_linear): Likewise.
9011 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9012 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9014 (f_language::get_symbol_name_matcher_inner): New member function.
9015 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9017 * language.c (default_symbol_name_matcher): Update header comment,
9019 (language_defn::get_symbol_name_matcher): New definition.
9020 (language_defn::get_symbol_name_matcher_inner): Likewise.
9021 (get_symbol_name_matcher): Delete.
9022 (unknown_language_data): Delete la_get_symbol_name_matcher
9024 (auto_language_data): Likewise.
9025 * language.h (language_data): Delete la_get_symbol_name_matcher
9027 (language_defn::get_symbol_name_matcher): New member function.
9028 (language_defn::get_symbol_name_matcher_inner): Likewise.
9029 (default_symbol_name_matcher): Delete declaration.
9030 * linespec.c (find_methods): Update call to
9031 get_symbol_name_matcher.
9032 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9034 * minsyms.c (lookup_minimal_symbol): Update call to
9035 get_symbol_name_matcher.
9036 (iterate_over_minimal_symbols): Likewise.
9037 * objc-lang.c (objc_language_data): Delete
9038 la_get_symbol_name_matcher initializer.
9039 * opencl-lang.c (opencl_language_data): Likewise.
9040 * p-lang.c (pascal_language_data): Likewise.
9041 * psymtab.c (psymbol_name_matches): Update call to
9042 get_symbol_name_matcher.
9043 * rust-lang.c (rust_language_data): Delete
9044 la_get_symbol_name_matcher initializer.
9045 * symtab.c (symbol_matches_search_name): Update call to
9046 get_symbol_name_matcher.
9047 (compare_symbol_name): Likewise.
9049 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9051 * ada-lang.c (ada_language_data): Delete la_compute_program
9053 * c-lang.c (c_language_data): Likewise.
9054 (c_language::compute_program): New member function.
9055 (cplus_language_data): Delete la_compute_program initializer.
9056 (cplus_language::compute_program): New member function.
9057 (asm_language_data): Delete la_compute_program initializer.
9058 (minimal_language_data): Likewise.
9059 * c-lang.h (c_compute_program): Update comment.
9060 (cplus_compute_program): Likewise.
9061 * compile/compile-c-support.c (c_compute_program): Likewise.
9062 (cplus_compute_program): Likewise.
9063 * compile/compile.c (compile_to_object): Update call to
9065 * d-lang.c (d_language_data): Delete la_compute_program
9067 * f-lang.c (f_language_data): Likewise.
9068 * go-lang.c (go_language_data): Likewise.
9069 * language.c (unknown_language_data): Likewise.
9070 (auto_language_data): Likewise.
9071 * language.h (language_data): Delete la_compute_program field.
9072 (language_defn::compute_program): New member function.
9073 * m2-lang.c (m2_language_data): Delete la_compute_program
9075 * objc-lang.c (objc_language_data): Likewise.
9076 * opencl-lang.c (opencl_language_data): Likewise.
9077 * p-lang.c (pascal_language_data): Likewise.
9078 * rust-lang.c (rust_language_data): Likewise.
9080 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9082 * ada-lang.c (ada_language_data) Delete
9083 la_class_name_from_physname initializer.
9084 * c-lang.c (c_language_data): Likewise.
9085 (cplus_language_data): Likewise.
9086 (cplus_language::class_name_from_physname): New member function.
9087 (asm_language_data): Delete la_class_name_from_physname
9089 (minimal_language_data): Likewise.
9090 * d-lang.c (d_language_data): Likewise.
9091 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9092 method on language_defn class.
9093 (guess_full_die_structure_name): Likewise.
9094 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9096 * go-lang.c (go_language_data): Likewise.
9097 * language.c (language_class_name_from_physname): Delete.
9098 (unk_lang_class_name): Delete.
9099 (unknown_language_data): Delete la_class_name_from_physname
9101 (auto_language_data): Likewise.
9102 * language.h (language_data): Delete la_class_name_from_physname
9104 (language_defn::class_name_from_physname): New function.
9105 (language_class_name_from_physname): Delete declaration.
9106 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9108 * objc-lang.c (objc_language_data): Likewise.
9109 * opencl-lang.c (opencl_language_data): Likewise.
9110 * p-lang.c (pascal_language_data): Likewise.
9111 * rust-lang.c (rust_language_data): Likewise.
9113 2020-06-16 Tom Tromey <tom@tromey.com>
9115 * tui/tui-data.h (STATUS_NAME): New macro.
9116 * tui/tui-layout.c (tui_remove_some_windows)
9117 (initialize_known_windows, tui_register_window)
9118 (tui_layout_split::remove_windows, initialize_layouts)
9119 (tui_new_layout_command): Don't use hard-coded window names.
9121 2020-06-16 Tom Tromey <tom@tromey.com>
9124 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9125 tui_initialize_readline. Only run once. Call rl_initialize.
9126 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9127 tui_initialize_readline.
9128 * tui/tui-io.c (tui_setup_io): Call
9129 tui_ensure_readline_initialized.
9130 * tui/tui-interp.c (tui_interp::init): Update.
9132 2020-06-16 Tom Tromey <tom@tromey.com>
9134 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9135 Also preserve the status window.
9137 2020-06-16 Tom Tromey <tom@tromey.com>
9139 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9140 where m_window==nullptr.
9142 2020-06-15 Tom Tromey <tromey@adacore.com>
9144 * windows-nat.c (windows_nat::handle_output_debug_string):
9146 (windows_nat::handle_ms_vc_exception): Update.
9147 * target.h (target_read_string): Change API.
9148 * target.c (target_read_string): Change API.
9149 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9151 * solib-frv.c (frv_current_sos): Update.
9152 * solib-dsbt.c (dsbt_current_sos): Update.
9153 * solib-darwin.c (darwin_current_sos): Update.
9154 * linux-thread-db.c (inferior_has_bug): Update.
9155 * expprint.c (print_subexp_standard): Update.
9156 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9157 (ada_exception_message_1): Update.
9159 2020-06-15 Tom Tromey <tromey@adacore.com>
9161 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9163 2020-06-15 Tom Tromey <tromey@adacore.com>
9165 * valprint.c (read_string): Update comment.
9166 * target.c (MIN): Remove.
9167 (target_read_string): Rewrite.
9169 2020-06-15 Tom Tromey <tromey@adacore.com>
9171 * corefile.c (read_memory_string): Remove.
9172 * ada-valprint.c (ada_value_print_ptr): Update.
9173 * ada-lang.h (ada_tag_name): Change return type.
9174 * ada-lang.c (type_from_tag): Update.
9175 (ada_tag_name_from_tsd): Change return type. Use
9177 (ada_tag_name): Likewise.
9178 * gdbcore.h (read_memory_string): Don't declare.
9180 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9182 * symtab.c (rbreak_command): Ignore Windows drive colon.
9184 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9186 * NEWS: Mention removed GDBserver host support.
9188 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9190 * features/riscv/rebuild-csr-xml.sh: Updated.
9192 2020-06-11 Tom Tromey <tom@tromey.com>
9195 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9197 2020-06-09 Jonny Grant <jg@jguk.org>
9198 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9200 * main.c (captured_main_1): Don't print new line after help.
9201 (print_gdb_help): add mailing list and IRC channel information
9202 to --help. Add new lines between items in the footer. Remove
9203 quotes around bug url.
9205 2020-06-11 Keith Seitz <keiths@redhat.com>
9208 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9209 Resolve typedefs for type length calculations.
9211 2020-06-10 Tom de Vries <tdevries@suse.de>
9214 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9215 (write_psymbols): Enable .gdb_index for ada.
9216 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9219 2020-06-10 Tom de Vries <tdevries@suse.de>
9221 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9222 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9223 namei" instead of "const char *name" argument.
9224 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9225 dw2_symtab_iter_init.
9227 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9229 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9230 to use type::field and field::type instead.
9232 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9234 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9235 to use field::type instead.
9237 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9239 * gdbtypes.h (struct field) <type, set_type>: New methods.
9240 Rename `type` field to...
9241 <m_type>: ... this. Change references throughout to use type or
9243 (FIELD_TYPE): Use field::type. Change call sites that modify
9244 the field's type to use field::set_type instead.
9246 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9248 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9249 to use type::index_type instead.
9251 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9253 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9255 (TYPE_INDEX_TYPE): Use type::index_type.
9256 * gdbtypes.c (create_array_type_with_stride): Likewise.
9258 2020-06-07 Tom Tromey <tom@tromey.com>
9260 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9262 (generic_value_print): Update.
9264 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9266 Revert commit 982a38f60b0.
9267 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9269 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9271 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9272 avoid use after free.
9274 2020-06-05 Tom de Vries <tdevries@suse.de>
9278 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9280 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9282 (dwarf2_read_debug_names): Likewise.
9283 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9284 object when re-using a per_bfd object with an index.
9286 2020-06-03 Tom de Vries <tdevries@suse.de>
9289 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9291 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9294 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9296 * ada-lang.c (ada_language_data): Delete skip_trampoline
9298 * c-lang.c (c_language_data): Likewise.
9299 (cplus_language_data): Likewise.
9300 (cplus_language::skip_trampoline): New member function.
9301 (asm_language_data): Delete skip_trampoline initializer.
9302 (minimal_language_data): Likewise.
9303 * d-lang.c (d_language_data): Likewise.
9304 * f-lang.c (f_language_data): Likewise.
9305 * go-lang.c (go_language_data): Likewise.
9306 * language.c (unk_lang_trampoline): Delete function.
9307 (skip_language_trampoline): Update.
9308 (unknown_language_data): Delete skip_trampoline initializer.
9309 (auto_language_data): Likewise.
9310 * language.h (language_data): Delete skip_trampoline field.
9311 (language_defn::skip_trampoline): New function.
9312 * m2-lang.c (m2_language_data): Delete skip_trampoline
9314 * objc-lang.c (objc_skip_trampoline): Delete function, move
9315 implementation to objc_language::skip_trampoline.
9316 (objc_language_data): Delete skip_trampoline initializer.
9317 (objc_language::skip_trampoline): New member function with
9318 implementation from objc_skip_trampoline.
9319 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9321 * p-lang.c (pascal_language_data): Likewise.
9322 * rust-lang.c (rust_language_data): Likewise.
9324 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9326 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9327 (ada_language::demangle): New member function.
9328 * c-lang.c (c_language_data): Delete la_demangle initializer.
9329 (cplus_language_data): Delete la_demangle initializer.
9330 (cplus_language::demangle): New member function.
9331 (asm_language_data): Delete la_demangle initializer.
9332 (minimal_language_data): Delete la_demangle initializer.
9333 * d-lang.c (d_language_data): Delete la_demangle initializer.
9334 (d_language::demangle): New member function.
9335 * f-lang.c (f_language_data): Delete la_demangle initializer.
9336 (f_language::demangle): New member function.
9337 * go-lang.c (go_language_data): Delete la_demangle initializer.
9338 (go_language::demangle): New member function.
9339 * language.c (language_demangle): Update.
9340 (unk_lang_demangle): Delete.
9341 (unknown_language_data): Delete la_demangle initializer.
9342 (unknown_language::demangle): New member function.
9343 (auto_language_data): Delete la_demangle initializer.
9344 (auto_language::demangle): New member function.
9345 * language.h (language_data): Delete la_demangle field.
9346 (language_defn::demangle): New function.
9347 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9348 * objc-lang.c (objc_language_data): Delete la_demangle
9350 (objc_language::demangle): New member function.
9351 * opencl-lang.c (opencl_language_data): Delete la_demangle
9353 * p-lang.c (pascal_language_data): Likewise.
9354 * rust-lang.c (rust_language_data): Likewise.
9355 (rust_language::demangle): New member function.
9357 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9359 * ada-lang.c (ada_language_data): Delete la_print_type
9361 (ada_language::print_type): New member function.
9362 * c-lang.c (c_language_data): Delete la_print_type initializer.
9363 (c_language::print_type): New member function.
9364 (cplus_language_data): Delete la_print_type initializer.
9365 (cplus_language::print_type): New member function.
9366 (asm_language_data): Delete la_print_type initializer.
9367 (asm_language::print_type): New member function.
9368 (minimal_language_data): Delete la_print_type initializer.
9369 (minimal_language::print_type): New member function.
9370 * d-lang.c (d_language_data): Delete la_print_type initializer.
9371 (d_language::print_type): New member function.
9372 * f-lang.c (f_language_data): Delete la_print_type initializer.
9373 (f_language::print_type): New member function.
9374 * go-lang.c (go_language_data): Delete la_print_type initializer.
9375 (go_language::print_type): New member function.
9376 * language.c (unk_lang_print_type): Delete.
9377 (unknown_language_data): Delete la_print_type initializer.
9378 (unknown_language::print_type): New member function.
9379 (auto_language_data): Delete la_print_type initializer.
9380 (auto_language::print_type): New member function.
9381 * language.h (language_data): Delete la_print_type field.
9382 (language_defn::print_type): New function.
9383 (LA_PRINT_TYPE): Update.
9384 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9385 (m2_language::print_type): New member function.
9386 * objc-lang.c (objc_language_data): Delete la_print_type
9388 (objc_language::print_type): New member function.
9389 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9390 to opencl_language::print_type.
9391 (opencl_language_data): Delete la_print_type initializer.
9392 (opencl_language::print_type): New member function, implementation
9393 from opencl_print_type.
9394 * p-lang.c (pascal_language_data): Delete la_print_type
9396 (pascal_language::print_type): New member function.
9397 * rust-lang.c (rust_print_type): Delete, implementation moved to
9398 rust_language::print_type.
9399 (rust_language_data): Delete la_print_type initializer.
9400 (rust_language::print_type): New member function, implementation
9401 from rust_print_type.
9403 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9405 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9406 implementation moves to...
9407 (ada_language::sniff_from_mangled_name): ...here. Update return
9409 (ada_language_data): Delete la_sniff_from_mangled_name
9411 * c-lang.c (c_language_data): Likewise.
9412 (cplus_language_data): Likewise.
9413 (cplus_language::sniff_from_mangled_name): New member function,
9414 implementation taken from gdb_sniff_from_mangled_name.
9415 (asm_language_data): Delete la_sniff_from_mangled_name
9417 (minimal_language_data): Likewise.
9418 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9419 implementation moves to cplus_language::sniff_from_mangled_name.
9420 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9421 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9423 (d_language::sniff_from_mangled_name): ...here.
9424 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9425 * f-lang.c (f_language_data): Likewise.
9426 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9428 (go_language::sniff_from_mangled_name): ...here.
9429 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9430 * language.c (language_sniff_from_mangled_name): Delete.
9431 (unknown_language_data): Delete la_sniff_from_mangled_name
9433 (auto_language_data): Likewise.
9434 * language.h (language_data): Delete la_sniff_from_mangled_name
9436 (language_defn::sniff_from_mangled_name): New function.
9437 (language_sniff_from_mangled_name): Delete declaration.
9438 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9440 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9441 implementation moves to...
9442 (objc_language::sniff_from_mangled_name): ...here.
9443 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9444 * opencl-lang.c (opencl_language_data): Likewise.
9445 * p-lang.c (pascal_language_data): Likewise.
9446 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9447 implementation moves to...
9448 (rust_language::sniff_from_mangled_name): ...here.
9449 (rust_language_data): Delete la_sniff_from_mangled_name
9451 * symtab.c (symbol_find_demangled_name): Call
9452 sniff_from_mangled_name member function.
9454 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9456 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9458 * c-lang.c (c_language_data): Likewise.
9459 (cplus_language_data): Likewise.
9460 (cplus_language::search_name_hash): New member function.
9461 (asm_language_data): Delete la_search_name_hash initializer.
9462 (minimal_language_data): Likewise.
9463 * d-lang.c (d_language_data): Likewise.
9464 * dictionary.c (default_search_name_hash): Rename to...
9465 (language_defn::search_name_hash): ...this.
9466 * f-lang.c (f_language_data): Likewise.
9467 (f_language::search_name_hash): New member function.
9468 * go-lang.c (go_language_data): Delete la_search_name_hash
9470 * language.c (unknown_language_data): Likewise.
9471 (auto_language_data): Likewise.
9472 * language.h (struct language_data): Delete la_search_name_hash
9474 (language_defn::search_name_hash): Declare new member function.
9475 (default_search_name_hash): Delete declaration.
9476 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9478 * objc-lang.c (objc_language_data): Likewise.
9479 * opencl-lang.c (opencl_language_data): Likewise.
9480 * p-lang.c (pascal_language_data): Likewise.
9481 * rust-lang.c (rust_language_data): Likewise.
9482 * symtab.c (search_name_hash): Update call.
9484 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9486 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9488 * c-lang.c (class compile_instance): Declare.
9489 (c_language_data): Delete la_get_compile_instance initializer.
9490 (c_language::get_compile_instance): New member function.
9491 (cplus_language_data): Delete la_get_compile_instance initializer.
9492 (cplus_language::get_compile_instance): New member function.
9493 (asm_language_data): Delete la_get_compile_instance initializer.
9494 (minimal_language_data): Likewise.
9495 * c-lang.h (c_get_compile_context): Update comment.
9496 (cplus_get_compile_context): Update comment.
9497 * compile/compile.c (compile_to_object): Update calls, don't rely
9498 on function pointer being NULL.
9499 * d-lang.c (d_language_data): Delete la_get_compile_instance
9501 * f-lang.c (f_language_data): Likewise.
9502 * go-lang.c (go_language_data): Likewise.
9503 * language.c (unknown_language_data): Likewise.
9504 (auto_language_data): Likewise.
9505 * language.h (language_data): Delete la_get_compile_instance field.
9506 (language_defn::get_compile_instance): New member function.
9507 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9509 * objc-lang.c (objc_language_data): Likewise.
9510 * opencl-lang.c (opencl_language_data): Likewise.
9511 * p-lang.c (pascal_language_data): Likewise.
9512 * rust-lang.c (rust_language_data): Likewise.
9514 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9516 * ada-lang.c (ada_add_all_symbols): Update comment.
9517 (ada_iterate_over_symbols): Delete, move implementation to...
9518 (ada_language::iterate_over_symbols): ...here, a new member
9519 function, rewrite to use range based for loop.
9520 (ada_language_data): Delete la_iterate_over_symbols initializer.
9521 * c-lang.c (c_language_data): Likewise.
9522 (cplus_language_data): Likewise.
9523 (asm_language_data): Likewise.
9524 (minimal_language_data): Likewise.
9525 * d-lang.c (d_language_data): Likewise.
9526 * f-lang.c (f_language_data): Likewise.
9527 * go-lang.c (go_language_data): Likewise.
9528 * language.c (unknown_language_data): Likewise.
9529 (auto_language_data): Likewise.
9530 * language.h (language_data): Delete la_iterate_over_symbols field.
9531 (language_defn::iterate_over_symbols): New member function.
9532 (LA_ITERATE_OVER_SYMBOLS): Update.
9533 * linespec.c (iterate_over_all_matching_symtabs): Update.
9534 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9536 * objc-lang.c (objc_language_data): Likewise.
9537 * opencl-lang.c (opencl_language_data): Likewise.
9538 * p-lang.c (pascal_language_data): Likewise.
9539 * rust-lang.c (rust_language_data): Likewise.
9541 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9543 * ada-lang.c (ada_language_data): Delete
9544 la_lookup_transparent_type initializer.
9545 * c-lang.c (c_language_data): Likewise.
9546 (cplus_language_data): Likewise.
9547 (cplus_language::lookup_transparent_type): New member function.
9548 (asm_language_data): Delete la_lookup_transparent_type
9550 (minimal_language_data): Likewise.
9551 * d-lang.c (d_language_data): Likewise.
9552 * f-lang.c (f_language_data): Likewise.
9553 * go-lang.c (go_language_data): Likewise.
9554 * language.c (unknown_language_data): Likewise.
9555 (auto_language_data): Likewise.
9556 * language.h (struct language_data): Delete
9557 la_lookup_transparent_type field.
9558 (language_defn::lookup_transparent_type): New member function.
9559 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9561 * objc-lang.c (objc_language_data): Likewise.
9562 * opencl-lang.c (opencl_language_data): Likewise.
9563 * p-lang.c (pascal_language_data): Likewise.
9564 * rust-lang.c (rust_language_data): Likewise.
9565 * symtab.c (symbol_matches_domain): Update call.
9567 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9569 * ada-lang.c (ada_language_arch_info): Delete function, move
9570 implementation to...
9571 (ada_language::language_arch_info): ...here, a new member
9573 (ada_language_data): Delete la_language_arch_info.
9574 * c-lang.c (c_language_data): Likewise.
9575 (c_language::language_arch_info): New member function.
9576 (cplus_language_arch_info): Delete function, move
9577 implementation to...
9578 (cplus_language::language_arch_info): ...here, a new member
9580 (cplus_language_data): Delete la_language_arch_info.
9581 (asm_language_data): Likewise.
9582 (asm_language::language_arch_info): New member function.
9583 (minimal_language_data): Delete la_language_arch_info.
9584 (minimal_language::language_arch_info): New member function.
9585 * d-lang.c (d_language_arch_info): Delete function, move
9586 implementation to...
9587 (d_language::language_arch_info): ...here, a new member
9589 (d_language_data): Delete la_language_arch_info.
9590 * f-lang.c (f_language_arch_info): Delete function, move
9591 implementation to...
9592 (f_language::language_arch_info): ...here, a new member
9594 (f_language_data): Delete la_language_arch_info.
9595 * go-lang.c (go_language_arch_info): Delete function, move
9596 implementation to...
9597 (go_language::language_arch_info): ...here, a new member
9599 (go_language_data): Delete la_language_arch_info.
9600 * language.c (unknown_language_data): Likewise.
9601 (unknown_language::language_arch_info): New member function.
9602 (auto_language_data): Delete la_language_arch_info.
9603 (auto_language::language_arch_info): New member function.
9604 (language_gdbarch_post_init): Update call to
9605 la_language_arch_info.
9606 * language.h (language_data): Delete la_language_arch_info
9608 (language_defn::language_arch_info): New function.
9609 * m2-lang.c (m2_language_arch_info): Delete function, move
9610 implementation to...
9611 (m2_language::language_arch_info): ...here, a new member
9613 (m2_language_data): Delete la_language_arch_info.
9614 * objc-lang.c (objc_language_arch_info): Delete function, move
9615 implementation to...
9616 (objc_language::language_arch_info): ...here, a new member
9618 (objc_language_data): Delete la_language_arch_info.
9619 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9620 implementation to...
9621 (opencl_language::language_arch_info): ...here, a new member
9623 (opencl_language_data): Delete la_language_arch_info.
9624 * p-lang.c (pascal_language_arch_info): Delete function, move
9625 implementation to...
9626 (pascal_language::language_arch_info): ...here, a new member
9628 (pascal_language_data): Delete la_language_arch_info.
9629 * rust-lang.c (rust_language_arch_info): Delete function, move
9630 implementation to...
9631 (rust_language::language_arch_info): ...here, a new member
9633 (rust_language_data): Delete la_language_arch_info.
9635 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9637 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9639 * c-lang.c (c_language_data): Likewise.
9640 (cplus_language_data): Likewise.
9641 (cplus_language::pass_by_reference_info): New method.
9642 (asm_language_data): Delete la_pass_by_reference initializer.
9643 (minimal_language_data): Likewise.
9644 * cp-abi.c (cp_pass_by_reference): Remove use of
9645 default_pass_by_reference.
9646 * d-lang.c (d_language_data): Likewise.
9647 * f-lang.c (f_language_data): Likewise.
9648 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9649 default_pass_by_reference.
9650 * go-lang.c (go_language_data): Likewise.
9651 * language.c (language_pass_by_reference): Update.
9652 (default_pass_by_reference): Delete.
9653 (unknown_language_data): Delete la_pass_by_reference
9655 (auto_language_data): Likewise.
9656 * language.h (struct language_data): Delete la_pass_by_reference
9658 (language_defn::pass_by_reference_info): New member function.
9659 (default_pass_by_reference): Delete declaration.
9660 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9662 * objc-lang.c (objc_language_data): Likewise.
9663 * opencl-lang.c (opencl_language_data): Likewise.
9664 * p-lang.c (pascal_language_data): Likewise.
9665 * rust-lang.c (rust_language_data): Likewise.
9667 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9669 * ada-lang.c (ada_read_var_value): Delete function, move
9670 implementation to...
9671 (ada_language::read_var_value): ...here.
9672 (ada_language_data): Delete la_read_var_value initializer.
9673 * c-lang.c (c_language_data): Likewise.
9674 (cplus_language_data): Likewise.
9675 (minimal_language_data): Likewise.
9676 * d-lang.c (d_language_data): Likewise.
9677 * f-lang.c (f_language_data): Likewise.
9678 * findvar.c (default_read_var_value): Rename to...
9679 (language_defn::read_var_value): ...this.
9680 * findvar.c (read_var_value): Update header comment, and change to
9681 call member function instead of function pointer.
9682 * go-lang.c (go_language_data): Likewise.
9683 * language.c (unknown_language_data): Delete la_read_var_value
9685 (auto_language_data): Likewise.
9686 * language.h (struct language_data): Delete la_read_var_value
9688 (language_defn::read_var_value): New member function.
9689 (default_read_var_value): Delete declaration.
9690 * m2-lang.c (m2_language_data): Delete la_read_var_value
9692 * objc-lang.c (objc_language_data): Likewise.
9693 * opencl-lang.c (opencl_language_data): Likewise.
9694 * p-lang.c (pascal_language_data): Likewise.
9695 * rust-lang.c (rust_language_data): Likewise.
9696 * value.h (default_read_var_value): Delete declaration.
9698 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9700 * ada-lang.c (ada_print_array_index): Delete function, move
9701 implementation to...
9702 (ada_language::print_array_index): ...here.
9703 (ada_language_data): Delete la_print_array_index initializer.
9704 * c-lang.c (c_language_data): Likewise.
9705 (cplus_language_data): Likewise.
9706 (minimal_language_data): Likewise.
9707 * d-lang.c (d_language_data): Likewise.
9708 * f-lang.c (f_language_data): Likewise.
9709 * go-lang.c (go_language_data): Likewise.
9710 * language.c (default_print_array_index): Delete function, move
9711 implementation to...
9712 (language_defn::print_array_index): ...here.
9713 (unknown_language_data): Delete la_print_array_index initializer.
9714 (auto_language_data): Likewise.
9715 * language.h (struct language_data): Delete la_print_array_index
9717 (language_defn::print_array_index): New member function.
9718 (LA_PRINT_ARRAY_INDEX): Update.
9719 (default_print_array_index): Delete declaration.
9720 * m2-lang.c (m2_language_data): Delete la_print_array_index
9722 * objc-lang.c (objc_language_data): Likewise.
9723 * opencl-lang.c (opencl_language_data): Likewise.
9724 * p-lang.c (pascal_language_data): Likewise.
9725 * rust-lang.c (rust_language_data): Likewise.
9727 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9729 * gdb/ada-lang.c (ada_language_defn): Convert to...
9730 (ada_language_data): ...this.
9731 (class ada_language): New class.
9732 (ada_language_defn): New static global.
9733 * gdb/c-lang.c (c_language_defn): Convert to...
9734 (c_language_data): ...this.
9735 (class c_language): New class.
9736 (c_language_defn): New static global.
9737 (cplus_language_defn): Convert to...
9738 (cplus_language_data): ...this.
9739 (class cplus_language): New class.
9740 (cplus_language_defn): New static global.
9741 (asm_language_defn): Convert to...
9742 (asm_language_data): ...this.
9743 (class asm_language): New class.
9744 (asm_language_defn): New static global.
9745 (minimal_language_defn): Convert to...
9746 (minimal_language_data): ...this.
9747 (class minimal_language): New class.
9748 (minimal_language_defn): New static global.
9749 * gdb/d-lang.c (d_language_defn): Convert to...
9750 (d_language_data): ...this.
9751 (class d_language): New class.
9752 (d_language_defn): New static global.
9753 * gdb/f-lang.c (f_language_defn): Convert to...
9754 (f_language_data): ...this.
9755 (class f_language): New class.
9756 (f_language_defn): New static global.
9757 * gdb/go-lang.c (go_language_defn): Convert to...
9758 (go_language_data): ...this.
9759 (class go_language): New class.
9760 (go_language_defn): New static global.
9761 * gdb/language.c (unknown_language_defn): Remove declaration.
9762 (current_language): Initialize to nullptr, real initialization is
9763 moved to _initialize_language.
9764 (languages): Delete global.
9765 (language_defn::languages): Define.
9766 (set_language_command): Use language_defn::languages.
9767 (set_language): Likewise.
9768 (range_error): Likewise.
9769 (language_enum): Likewise.
9770 (language_def): Likewise.
9771 (add_set_language_command): Use language_def::languages for the
9772 language list, and language_def to lookup language pointers.
9773 (skip_language_trampoline): Use language_defn::languages.
9774 (unknown_language_defn): Convert to...
9775 (unknown_language_data): ...this.
9776 (class unknown_language): New class.
9777 (unknown_language_defn): New static global.
9778 (auto_language_defn): Convert to...
9779 (auto_language_data): ...this.
9780 (class auto_language): New class.
9781 (auto_language_defn): New static global.
9782 (language_gdbarch_post_init): Use language_defn::languages.
9783 (_initialize_language): Initialize current_language.
9784 * gdb/language.h (struct language_defn): Rename to...
9785 (struct language_data): ...this.
9786 (struct language_defn): New.
9787 (auto_language_defn): Delete.
9788 (unknown_language_defn): Delete.
9789 (minimal_language_defn): Delete.
9790 (ada_language_defn): Delete.
9791 (asm_language_defn): Delete.
9792 (c_language_defn): Delete.
9793 (cplus_language_defn): Delete.
9794 (d_language_defn): Delete.
9795 (f_language_defn): Delete.
9796 (go_language_defn): Delete.
9797 (m2_language_defn): Delete.
9798 (objc_language_defn): Delete.
9799 (opencl_language_defn): Delete.
9800 (pascal_language_defn): Delete.
9801 (rust_language_defn): Delete.
9802 * gdb/m2-lang.c (m2_language_defn): Convert to...
9803 (m2_language_data): ...this.
9804 (class m2_language): New class.
9805 (m2_language_defn): New static global.
9806 * gdb/objc-lang.c (objc_language_defn): Convert to...
9807 (objc_language_data): ...this.
9808 (class objc_language): New class.
9809 (objc_language_defn): New static global.
9810 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9811 (opencl_language_data): ...this.
9812 (class opencl_language): New class.
9813 (opencl_language_defn): New static global.
9814 * gdb/p-lang.c (pascal_language_defn): Convert to...
9815 (pascal_language_data): ...this.
9816 (class pascal_language): New class.
9817 (pascal_language_defn): New static global.
9818 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9819 language pointer, update comment format.
9820 * gdb/rust-lang.c (rust_language_defn): Convert to...
9821 (rust_language_data): ...this.
9822 (class rust_language): New class.
9823 (rust_language_defn): New static global.
9825 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9827 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9829 <m_stmt_at_address>: New member variable.
9830 (lnp_state_machine::record_line): Don't record some lines, update
9831 tracking of is_stmt at the same address.
9832 (lnp_state_machine::lnp_state_machine): Initialise new member
9835 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9837 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9838 "-include gnu-nat-mig.h".
9839 * gnu-nat-mig.h: New file.
9840 * gnu-nat.c: Include "gnu-nat-mig.h".
9841 (exc_server, msg_reply_server, notify_server,
9842 process_reply_server): Remove declarations.
9844 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9846 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9847 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9848 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9849 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9850 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9851 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9852 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9853 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9854 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9855 to gnu_nat_target class.
9856 * gnu-nat.c: Likewise.
9857 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9858 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9859 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9861 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9862 instead of `gnu_target'.
9864 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9866 * i386-gnu-tdep.c: Include "gdbcore.h"
9867 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9868 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9869 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9870 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9871 i386_gnu_sigcontext_addr): New functions
9872 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9873 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9876 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9878 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9879 before fork_inferior call. Avoid calling it if target_is_pushed returns
9882 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9884 * gnu-nat.h (gnu_target): New variable declaration.
9885 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9887 * gnu-nat.c (gnu_target): New variable.
9888 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9889 add_thread_silent, and add_thread calls.
9890 (gnu_nat_target::create_inferior): Pass gnu_target to
9891 add_thread_silent, thread_change_ptid call.
9892 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9895 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9897 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9898 (gnu_nat_target::find_memory_regions): Remove unused
9899 `old_address' variable.
9901 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9903 * gnu-nat.c: Include "gdbarch.h".
9905 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9907 * reply_mig_hack.awk (Error return): Cast function through
9908 void *, to bypass compiler function call check.
9910 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9912 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9913 $(srcdir)/reply_mig_hack.awk.
9915 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9917 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9919 2020-05-30 Jonny Grant <jg@jguk.org>
9921 * configure.ac (ACX_BUGURL): change bug URL to https.
9923 2020-05-30 Pedro Alves <palves@redhat.com>
9925 * cp-support.c (replace_typedefs_template): New.
9926 (replace_typedefs_qualified_name): Handle
9927 DEMANGLE_COMPONENT_TEMPLATE.
9929 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9931 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9932 dwarf2/index-cache.h, dwarf2/index-write.c,
9933 dwarf2/index-write.h, dwarf2/line-header.c,
9934 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9935 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9936 variables and fields from `dwarf2_per_objfile` to just
9937 `per_objfile` throughout.
9939 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9941 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9942 <push_dwarf_reg_entry_value>: Add comment.
9944 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9945 Keith Seitz <keiths@redhat.com>
9947 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9948 instead of PyEval_ReleaseLock.
9949 (class gdbpy_gil): Move to earlier in file.
9950 (finalize_python): Set gdb_python_initialized.
9951 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9952 when not initialized.
9954 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9956 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9957 <push_dwarf_reg_entry_value>: Remove assert. Override
9958 per_objfile with caller_per_objfile.
9960 2020-05-28 Tom de Vries <tdevries@suse.de>
9962 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9963 PR gold/15646 workaround to symbol kind "type".
9965 2020-05-27 Tom Tromey <tromey@adacore.com>
9967 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9969 2020-05-27 Tom Tromey <tromey@adacore.com>
9971 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9972 Use htab_find_with_hash.
9973 <add_abbrev>: Remove "abbrev_number" parameter.
9974 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9975 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9976 (hash_abbrev): Add comment.
9977 (abbrev_table::lookup_abbrev): Move to header file.
9978 (abbrev_table::read): Update.
9980 2020-05-27 Tom Tromey <tromey@adacore.com>
9982 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9984 <canonical_name>: New member.
9985 <raw_name>: Rename from "name".
9986 (partial_die_info): Initialize canonical_name.
9987 (scan_partial_symbols): Check raw_name.
9988 (partial_die_parent_scope, partial_die_full_name)
9989 (add_partial_symbol, add_partial_subprogram)
9990 (add_partial_enumeration, load_partial_dies): Use "name" method.
9991 (partial_die_info::name): New method.
9992 (partial_die_info::read, guess_partial_die_structure_name)
9993 (partial_die_info::fixup): Update.
9995 2020-05-27 Tom Tromey <tromey@adacore.com>
9997 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9998 <get_ref_die_offset>: Inline.
9999 <get_ref_die_offset_complaint>: New method.
10000 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10001 (attribute::get_ref_die_offset_complaint): Rename from
10002 get_ref_die_offset. Just issue complaint.
10004 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10006 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10008 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10010 * exec.c (exec_file_attach): Use errno value of first openp failure.
10012 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10014 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10015 Don't close thread handle.
10017 2020-05-27 Tom Tromey <tom@tromey.com>
10018 Simon Marchi <simon.marchi@efficios.com>
10020 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10022 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10024 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10025 dwarf2_per_bfd_objfile_data_key>: New globals.
10026 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10027 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10028 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10030 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10031 short-circuit when sharing.
10032 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10033 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10035 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10037 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10039 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10040 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10042 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10044 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10045 build_name_components, find_name_components_bounds>:
10046 Add per_objfile parameter.
10047 (struct mapped_index) <symbol_name_at>: Likewise.
10048 (struct mapped_debug_names): Remove constructor.
10049 <dwarf2_per_objfile>: Remove field.
10050 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10051 (mapped_index_base::find_name_components_bounds,
10052 mapped_index_base::build_name_components,
10053 dw2_expand_symtabs_matching_symbol): Likewise.
10054 (class mock_mapped_index) <symbol_name_at>: Likewise.
10055 (check_match): Likewise.
10056 (check_find_bounds_finds): Likewise.
10057 (test_mapped_index_find_name_component_bounds): Update.
10058 (CHECK_MATCH): Update.
10059 (dw2_expand_symtabs_matching): Update.
10060 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10061 per_objfile parameter.
10062 <find_vec_in_debug_names>: Likewise.
10063 <m_per_objfile>: New field.
10064 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10066 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10067 (dw2_debug_names_iterator::next): Update.
10068 (dw2_debug_names_lookup_symbol): Update.
10069 (dw2_debug_names_expand_symtabs_for_function): Update.
10070 (dw2_debug_names_map_matching_symbols): Update.
10071 (dw2_debug_names_expand_symtabs_matching): Update.
10072 (dwarf2_read_debug_names): Update.
10074 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10076 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10077 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10078 move to dwarf2_per_objfile.
10079 <read_in_chain>: Remove.
10080 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10081 remove_all_cus, age_comp_units>: New methods.
10082 <m_dwarf2_cus>: New member.
10083 (struct dwarf2_per_cu_data) <cu>: Remove.
10084 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10085 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10086 moved to methods of dwarf2_per_objfile.
10087 (dwarf2_clear_marks): Remove.
10088 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10089 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10090 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10091 (dwarf2_per_objfile::remove_all_cus): New.
10092 (class free_cached_comp_units) <~free_cached_comp_units>:
10095 (dw2_do_instantiate_symtab): Adjust.
10096 (fill_in_sig_entry_from_dwo_entry): Adjust.
10097 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10098 (cutu_reader::cutu_reader): Likewise.
10099 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10100 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10101 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10102 and dwarf2_per_objfile::age_comp_units.
10103 (load_partial_comp_unit): Update.
10104 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10105 (process_queue): Likewise.
10106 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10108 (dwarf2_read_addr_index): Likewise.
10109 (follow_die_offset): Likewise.
10110 (dwarf2_fetch_die_loc_sect_off): Likewise.
10111 (dwarf2_fetch_constant_bytes): Likewise.
10112 (dwarf2_fetch_die_type_sect_off): Likewise.
10113 (follow_die_sig_1): Likewise.
10114 (load_full_type_unit): Likewise.
10115 (read_signatured_type): Likewise.
10116 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10117 (dwarf2_cu::~dwarf2_cu): Remove.
10118 (dwarf2_per_objfile::get_cu): New.
10119 (dwarf2_per_objfile::set_cu): New.
10120 (age_cached_comp_units): Rename to...
10121 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10122 to std::unordered_map.
10123 (free_one_cached_comp_unit): Rename to...
10124 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10125 to std::unordered_map.
10126 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10127 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10128 a dwarf2_per_objfile in data.
10129 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10130 (dwarf2_clear_marks): Remove.
10132 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10134 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10135 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10136 (init_tu_and_read_dwo_dies): Likewise.
10137 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10138 (cutu_reader::cutu_reader): Likewise.
10139 (load_partial_comp_unit): Likewise.
10140 (process_psymtab_comp_unit): Update.
10141 (build_type_psymtabs_1): Update.
10142 (process_skeletonless_type_unit): Update.
10143 (load_full_comp_unit): Update.
10144 (find_partial_die): Update.
10145 (dwarf2_read_addr_index): Update.
10146 (read_signatured_type): Update.
10148 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10150 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10151 m_header_read_in>: New fields.
10152 <get_header>: New method.
10153 * dwarf2/read.c (per_cu_header_read_in): Remove.
10154 (dwarf2_per_cu_data::get_header): New.
10155 (dwarf2_per_cu_data::addr_size): Update.
10156 (dwarf2_per_cu_data::offset_size): Update.
10157 (dwarf2_per_cu_data::ref_addr_size): Update.
10159 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10161 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10162 (dw2_do_instantiate_symtab): Update.
10163 (queue_and_load_all_dwo_tus): Change parameter from
10164 dwarf2_per_cu_data to dwarf2_cu.
10165 (dwarf2_fetch_die_loc_sect_off): Update.
10166 (dwarf2_fetch_constant_bytes): Update.
10167 (dwarf2_fetch_die_type_sect_off): Update.
10169 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10171 * dwarf2/read.c (process_full_comp_unit,
10172 process_full_type_unit): Remove per_cu, per_objfile paramters.
10173 Add dwarf2_cu parameter.
10174 (process_queue): Update.
10176 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10178 * dwarf2/read.c (create_cu_from_index_list): Replace
10179 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10180 (create_cus_from_index_list): Likewise.
10181 (create_cus_from_index): Likewise.
10182 (create_signatured_type_table_from_index): Likewise.
10183 (create_cus_from_debug_names_list): Likewise.
10184 (create_cus_from_debug_names): Likewise.
10185 (dwarf2_read_gdb_index): Update.
10186 (dwarf2_read_debug_names): Update.
10188 2020-05-27 Tom Tromey <tom@tromey.com>
10189 Simon Marchi <simon.marchi@efficios.com>
10191 * dwarf2/read.h (struct dwarf2_per_objfile)
10192 <get_type_for_signatured_type, set_type_for_signatured_type>:
10194 <m_type_map>: New member.
10195 (struct signatured_type) <type>: Remove.
10197 (dwarf2_per_objfile::get_type_for_signatured_type,
10198 dwarf2_per_objfile::set_type_for_signatured_type): New.
10199 (get_signatured_type): Use new methods.
10201 2020-05-27 Tom Tromey <tom@tromey.com>
10202 Simon Marchi <simon.marchi@efficios.com>
10204 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10205 (struct dwarf2_per_objfile) <type_units>: New member.
10206 <get_type_unit_group_unshareable>: New method.
10207 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10208 num_symtabs, symtabs>: Remove; move to
10209 type_unit_group_unshareable.
10210 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10211 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10212 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10214 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10216 * dwarf2/read.h (struct dwarf2_per_cu_data):
10217 <dwarf2_per_objfile>: Remove.
10218 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10219 dwarf2_per_objfile.
10220 (create_signatured_type_table_from_index): Likewise.
10221 (create_signatured_type_table_from_debug_names): Likewise.
10222 (create_debug_type_hash_table): Likewise.
10223 (fill_in_sig_entry_from_dwo_entry): Likewise.
10224 (create_type_unit_group): Likewise.
10225 (read_comp_units_from_section): Likewise.
10226 (create_cus_hash_table): Likewise.
10228 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10230 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10231 dwarf2_per_cu_data::dwarf2_per_objfile.
10232 (compute_compunit_symtab_includes): Likewise.
10233 (dwarf2_cu::start_symtab): Likewise.
10235 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10237 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10239 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10240 (read_namespace_alias): Update.
10241 (lookup_die_type): Update.
10242 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10243 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10245 (disassemble_dwarf_expression): Update.
10247 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10249 * dwarf2/read.h (struct dwarf2_queue_item): Add
10250 dwarf2_per_objfile parameter, assign new parameter.
10251 <per_objfile>: New field.
10252 * dwarf2/read.c (free_one_cached_comp_unit): Add
10253 dwarf2_per_objfile parameter.
10254 (queue_comp_unit): Likewise.
10255 (dw2_do_instantiate_symtab): Update.
10256 (process_psymtab_comp_unit): Update.
10257 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10258 (process_imported_unit_die): Update.
10259 (queue_and_load_dwo_tu): Update.
10260 (follow_die_offset): Update.
10261 (follow_die_sig_1): Update.
10263 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10265 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10266 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10267 (read_call_site_scope): Assign per_objfile.
10268 (dwarf2_per_cu_data::objfile): Remove.
10269 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10270 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10271 dwarf2_per_objfile parameter.
10272 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10273 dwarf2_per_objfile parameter.
10274 (dwarf_expr_reg_to_entry_parameter): Add output
10275 dwarf2_per_objfile parameter.
10276 (locexpr_get_frame_base): Update.
10277 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10278 <push_dwarf_reg_entry_value>: Update.
10279 <call_site_to_target_addr>: Update.
10280 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10282 (value_of_dwarf_reg_entry): Update.
10283 (rw_pieced_value): Update.
10284 (indirect_synthetic_pointer): Update.
10285 (dwarf2_evaluate_property): Update.
10286 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10288 (locexpr_read_variable): Update.
10289 (locexpr_get_symbol_read_needs): Update.
10290 (loclist_read_variable): Update.
10292 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10294 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
10299 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10300 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10302 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10303 sect_variable_value): Add dwarf2_per_objfile parameter.
10304 (class dwarf_evaluate_loc_desc) <dwarf_call,
10305 dwarf_variable_value>: Update.
10306 (fetch_const_value_from_synthetic_pointer): Add
10307 dwarf2_per_objfile parameter.
10308 (fetch_const_value_from_synthetic_pointer): Update.
10309 (coerced_pieced_ref): Update.
10310 (class symbol_needs_eval_context) <dwarf_call,
10311 dwarf_variable_value>: Update.
10312 (dwarf2_compile_expr_to_ax): Update.
10314 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10316 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10318 (dwarf2_evaluate_loc_desc_full): Update.
10320 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10322 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10324 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10325 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10326 dwarf2_per_objfile parameter.
10327 (decode_debug_loc_dwo_addresses): Likewise.
10328 (dwarf2_find_location_expression): Update.
10329 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10330 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10332 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10334 (locexpr_describe_location_1): Likewise.
10335 (locexpr_describe_location): Update.
10337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10339 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10341 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10342 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10343 (dwarf2_compile_property_to_c): Update.
10344 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10345 use text offset from objfile.
10346 (locexpr_tracepoint_var_ref): Update.
10347 (locexpr_generate_c_location): Update.
10348 (loclist_describe_location): Update.
10349 (loclist_tracepoint_var_ref): Update.
10350 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10351 dwarf2_per_objfile parameter.
10352 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10353 use text offset from objfile.
10354 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10356 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10358 * dwarf2/expr.h (struct dwarf_expr_context)
10359 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10361 <per_objfile>: New member.
10362 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10363 dwarf2_per_objfile parameter. Don't set offset, set
10365 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10366 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10367 a dwarf2_per_objfile object instead of an offset.
10368 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10370 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10371 to dwarf2_expr_executor constructor. Don't set offset.
10372 (dwarf2_fetch_cfa_info): Update.
10373 (struct dwarf2_frame_cache) <text_offset>: Remove.
10374 <per_objfile>: New field.
10375 (dwarf2_frame_cache): Update.
10376 (dwarf2_frame_prev_register): Update.
10377 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10378 <dwarf_evaluate_loc_desc>: Add constructor.
10379 (dwarf2_evaluate_loc_desc_full): Update.
10380 (dwarf2_locexpr_baton_eval): Update.
10381 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10383 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10385 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10387 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10388 addr_sized_int_type>: Move to dwarf2_cu.
10389 <int_type>: Move to dwarf2_per_objfile.
10390 (struct dwarf2_per_objfile) <int_type>: Move here.
10391 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10392 addr_sized_int_type>: Move here.
10393 (read_func_scope): Update.
10394 (read_array_type): Update.
10395 (read_tag_string_type): Update.
10396 (attr_to_dynamic_prop): Update.
10397 (dwarf2_per_cu_data::int_type): Rename to...
10398 (dwarf2_per_objfile::int_type): ... this.
10399 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10400 (dwarf2_cu::addr_sized_int_type): ... this.
10401 (read_subrange_type): Update.
10402 (dwarf2_per_cu_data::addr_type): Rename to...
10403 (dwarf2_cu::addr_type): ... this.
10404 (set_die_type): Update.
10406 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10408 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10409 data through per_cu->cu.
10411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10413 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10414 dwarf2_per_cu_data parameter fo dwarf2_cu.
10415 (lookup_dwo_type_unit): Likewise.
10416 (read_cutu_die_from_dwo): Likewise.
10417 (lookup_dwo_unit): Likewise.
10418 (open_and_init_dwo_file): Likewise.
10419 (lookup_dwo_cutu): Likewise.
10420 (lookup_dwo_comp_unit): Likewise.
10421 (lookup_dwo_type_unit): Likewise.
10422 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10423 (cutu_reader::cutu_reader): Update.
10425 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10427 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10429 (process_full_type_unit): Likewise.
10430 (process_queue): Update.
10432 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10434 * dwarf2/read.c (recursively_compute_inclusions): Add
10435 dwarf2_per_objfile parameter.
10436 (compute_compunit_symtab_includes): Likewise.
10437 (process_cu_includes): Update.
10439 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10441 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10443 (create_type_unit_group): Update.
10444 (process_psymtab_comp_unit_reader): Update.
10445 (build_type_psymtabs_reader): Update.
10447 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10449 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10450 object through m_this_cu->cu.
10452 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10454 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10455 the info parameter.
10456 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10458 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10460 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10461 per_objfile parameter.
10462 (load_full_type_unit): Add per_objfile parameter.
10463 (read_signatured_type): Likewise.
10464 (load_full_comp_unit): Likewise.
10465 (load_cu): Likewise.
10466 (dw2_do_instantiate_symtab): Likewise.
10467 (dw2_get_file_names): Likewise.
10468 (dw2_map_symtabs_matching_filename): Update.
10469 (dw_expand_symtabs_matching_file_matcher): Update.
10470 (dw2_map_symbol_filenames): Update.
10471 (process_psymtab_comp_unit): Add per_objfile parameter.
10472 (build_type_psymtabs_1): Update.
10473 (process_skeletonless_type_unit): Update.
10474 (dwarf2_build_psymtabs_hard): Update.
10475 (load_partial_comp_unit): Add per_objfile parameter.
10476 (scan_partial_symbols): Update.
10477 (load_full_comp_unit): Add per_objfile parameter.
10478 (process_imported_unit_die): Update.
10479 (create_cus_hash_table): Update.
10480 (find_partial_die): Update.
10481 (dwarf2_read_addr_index): Update.
10482 (follow_die_offset): Update.
10483 (dwarf2_fetch_die_loc_sect_off): Update.
10484 (dwarf2_fetch_constant_bytes): Update.
10485 (dwarf2_fetch_die_type_sect_off): Update.
10486 (follow_die_sig_1): Update.
10487 (load_full_type_unit): Add per_objfile parameter.
10488 (read_signatured_type): Likewise.
10490 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10492 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10495 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10497 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10498 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10499 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10501 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10502 (create_cus_from_index): Update.
10503 (dwarf2_read_gdb_index): Update.
10504 (create_cus_from_debug_names): Update.
10505 (dwarf2_read_debug_names): Update.
10506 (get_abbrev_section_for_cu): Update.
10507 (create_all_comp_units): Update.
10508 (read_attribute_value): Update.
10509 (get_debug_line_section): Update.
10510 * dwarf2/index-cache.c (index_cache::store): Update.
10511 * dwarf2/index-write.c (save_gdb_index_command): Update.
10512 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10514 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10516 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10518 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10519 dwarf2_per_cu_data::per_bfd.
10520 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10521 (create_type_unit_group): Likewise.
10522 (queue_comp_unit): Remove reference to
10523 per_cu->dwarf2_per_objfile.
10524 (maybe_queue_comp_unit): Likewise.
10525 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10526 (create_cus_hash_table): Assign new field.
10528 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10530 * dwarf2/read.c: Replace
10531 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10532 dwarf2_cu->per_objfile throughout.
10534 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10536 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10537 parameter, don't use per_cu->dwarf2_per_objfile.
10538 (dw2_instantiate_symtab): Likewise.
10539 (dw2_find_last_source_symtab): Update.
10540 (dw2_map_expand_apply): Update.
10541 (dw2_lookup_symbol): Update.
10542 (dw2_expand_symtabs_for_function): Update.
10543 (dw2_expand_all_symtabs): Update.
10544 (dw2_expand_symtabs_with_fullname): Update.
10545 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10546 don't use per_cu->dwarf2_per_objfile.
10547 (dw2_expand_marked_cus): Update.
10548 (dw2_find_pc_sect_compunit_symtab): Update.
10549 (dw2_debug_names_lookup_symbol): Update.
10550 (dw2_debug_names_expand_symtabs_for_function): Update.
10551 (dw2_debug_names_map_matching_symbols): Update.
10552 (dwarf2_psymtab::expand_psymtab): Update.
10554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10556 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10557 <per_objfile>: New member.
10558 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10559 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10561 (cutu_reader::cutu_reader): Update.
10562 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10564 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10566 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10567 struct dwarf2_per_objfile.
10568 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10570 * dwarf2/read.c (set_die_type): Update.
10571 (get_die_type_at_offset): Update.
10573 2020-05-27 Tom Tromey <tom@tromey.com>
10574 Simon Marchi <simon.marchi@efficios.com>
10576 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10578 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10579 get_symtab, set_symtab>: New methods.
10580 <m_symtabs>: New field.
10581 (struct dwarf2_psymtab): Derive from partial_symtab.
10582 <readin_p, get_compunit_symtab>: Declare methods.
10583 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10584 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10586 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10587 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10588 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10589 (dw2_symtab_iter_next, dw2_print_stats)
10590 (dw2_expand_symtabs_with_fullname)
10591 (dw2_expand_symtabs_matching_one)
10592 (dw_expand_symtabs_matching_file_matcher)
10593 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10594 (dw2_debug_names_iterator::next)
10595 (dw2_debug_names_map_matching_symbols)
10596 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10597 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10598 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10600 (get_compunit_symtab, process_full_comp_unit)
10601 (process_full_type_unit): Update.
10602 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10604 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10606 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10607 then introduce a new dwarf2_per_objfile type.
10608 <read_line_string>: Move to the new dwarf2_per_objfile type.
10609 <objfile>: Likewise.
10610 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10611 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10612 dwarf2_per_objfile->per_bfd.
10613 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10614 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10615 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10616 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10617 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10618 (dwarf2_per_objfile::locate_sections): Rename to...
10619 (dwarf2_per_bfd::locate_sections): ... this.
10620 (dwarf2_per_objfile::get_cutu): Rename to...
10621 (dwarf2_per_bfd::get_cutu): ... this.
10622 (dwarf2_per_objfile::get_cu): Rename to...
10623 (dwarf2_per_bfd::get_cu): ... this.
10624 (dwarf2_per_objfile::get_tu): Rename to...
10625 (dwarf2_per_bfd::get_tu): ... this.
10626 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10627 (dwarf2_per_bfd::allocate_per_cu): ... this.
10628 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10629 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10630 (get_gdb_index_contents_ftype): Change parameter from
10631 dwarf2_per_objfile to dwarf2_per_bfd.
10632 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10633 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10635 2020-05-27 Tom Tromey <tom@tromey.com>
10636 Simon Marchi <simon.marchi@efficios.com>
10638 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10639 (allocate_piece_closure): Set "per_objfile" member.
10640 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10641 (locexpr_describe_location, loclist_describe_location): Use new
10643 * dwarf2/read.c (read_call_site_scope)
10644 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10645 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10646 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10647 handle_data_member_location): Set per_objfile member.
10648 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10650 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10652 2020-05-27 Tom Tromey <tom@tromey.com>
10654 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10655 allocate_signatured_type>: Declare new methods.
10656 <m_num_psymtabs>: New member.
10657 (struct dwarf2_per_cu_data) <index>: New member.
10658 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10659 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10660 (create_cu_from_index_list): Use allocate_per_cu.
10661 (create_signatured_type_table_from_index)
10662 (create_signatured_type_table_from_debug_names)
10663 (create_debug_type_hash_table, add_type_unit)
10664 (read_comp_units_from_section): Use allocate_signatured_type.
10666 2020-05-27 Tom Tromey <tom@tromey.com>
10668 * psymtab.c (partial_map_expand_apply)
10669 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10670 (psym_lookup_global_symbol_language)
10671 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10672 (psym_print_stats, psym_expand_symtabs_for_function)
10673 (psym_map_symbol_filenames, psym_map_matching_symbols)
10674 (psym_expand_symtabs_matching)
10675 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10676 (maintenance_check_psymtabs): Update.
10677 * psympriv.h (struct partial_symtab) <readin_p,
10678 get_compunit_symtab>: Add objfile parameter.
10679 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10681 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10682 get_compunit_symtab>: Likewise.
10683 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10685 2020-05-27 Tom Tromey <tom@tromey.com>
10687 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10689 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10690 (create_cu_from_index_list)
10691 (create_signatured_type_table_from_index)
10692 (create_signatured_type_table_from_debug_names)
10693 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10694 (dwarf2_create_include_psymtab)
10695 (create_debug_type_hash_table, add_type_unit)
10696 (create_type_unit_group, read_comp_units_from_section)
10697 (dwarf2_compute_name, create_cus_hash_table)
10698 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10699 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10701 (dw2_get_real_path): Likewise. Change argument to
10702 dwarf2_per_objfile.
10704 2020-05-27 Luis Machado <luis.machado@linaro.org>
10707 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10708 for ldrd (immediate).
10710 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10712 * command.h: Add comment giving the name of class_tui.
10713 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10714 create the fake command for the help for class_tui.
10716 2020-05-26 Tom Tromey <tromey@adacore.com>
10718 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10719 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10720 (val_atr): New function.
10721 (value_val_atr): Use it.
10722 * ada-valprint.c (print_optional_low_bound): Change low bound
10723 handling for enums.
10724 (val_print_packed_array_elements): Don't call discrete_position.
10725 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10726 discrete_position for enum types.
10727 * language.c (default_print_array_index): Change type.
10728 * language.h (struct language_defn) <la_print_array_index>: Add
10729 index_type parameter, change type of index_value.
10730 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10731 (default_print_array_index): Update.
10732 * valprint.c (maybe_print_array_index): Don't call
10733 value_from_longest. Update.
10734 (value_print_array_elements): Don't call discrete_position.
10736 2020-05-26 Tom Tromey <tromey@adacore.com>
10738 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10739 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10741 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10744 * avr-tdep.c (avr_integer_to_address): Return data or code
10745 address accordingly to the second 'type' argument of the
10748 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10750 * infcmd.c, inferior.h: (construct_inferior_arguments):
10751 Moved function from here to gdbsupport/common-inferior.{h,cc}
10753 2020-05-23 Tom Tromey <tom@tromey.com>
10755 Revert commit eca1f90c:
10756 * NEWS: Remove entry for completion styling.
10757 * completer.c (_rl_completion_prefix_display_length): Move
10759 (gdb_fnprint): Revert.
10760 (gdb_display_match_list_1): Likewise.
10761 * cli/cli-style.c (completion_prefix_style)
10762 (completion_difference_style, completion_suffix_style): Remove.
10763 (_initialize_cli_style): Revert.
10764 * cli/cli-style.h (completion_prefix_style)
10765 (completion_difference_style, completion_suffix_style): Don't
10768 2020-05-24 Pedro Alves <palves@redhat.com>
10770 * symtab.c (completion_list_add_name): Return boolean indication
10771 of whether the symbol matched.
10772 (completion_list_add_symbol): Don't try to remove C++ aliases if
10773 the symbol didn't match in the first place.
10774 * symtab.h (completion_list_add_name): Return bool.
10776 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10778 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10781 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10785 2020-05-23 Tom Tromey <tom@tromey.com>
10787 * NEWS: Add entry for completion styling.
10788 * completer.c (_rl_completion_prefix_display_length): Move
10789 declaration earlier.
10790 (gdb_fnprint): Use completion_style.
10791 (gdb_display_match_list_1): Likewise.
10792 * cli/cli-style.c (completion_prefix_style)
10793 (completion_difference_style, completion_suffix_style): New
10795 (_initialize_cli_style): Register new globals.
10796 * cli/cli-style.h (completion_prefix_style)
10797 (completion_difference_style, completion_suffix_style): Declare.
10799 2020-05-23 Pedro Alves <palves@redhat.com>
10801 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10802 (parse_escape): Use ISDIGIT instead of isdigit.
10803 (puts_debug): Use gdb_isprint instead of isprint.
10804 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10805 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10806 ISSPACE instead of isspace.
10807 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10808 instead of isspace.
10809 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10810 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10811 instead of isxdigit and ISDIGIT instead of isdigit.
10813 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10815 * gdbtypes.h (struct type) <field>: New method.
10816 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10819 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10821 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10822 (TYPE_FIELDS): Use type::fields. Change all call sites that
10823 modify the propery to use type::set_fields instead.
10825 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10827 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10828 type::num_fields instead.
10830 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10832 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10834 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10835 that modify the number of fields to use type::set_num_fields
10838 2020-05-22 Tom Tromey <tromey@adacore.com>
10840 * compile/compile-object-load.h (munmap_list_free): Don't
10843 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10845 * annotate.c (annotate_source_line): Update return type, add call
10846 to update current symtab and line.
10847 * annotate.h (annotate_source_line): Update return type, and
10848 extend header comment.
10849 * source.c (info_line_command): Check annotation_level before
10850 calling annotate_source_line.
10851 * stack.c (print_frame_info): If calling annotate_source_line
10852 returns true, then don't print any other source line information.
10854 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10856 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10858 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10860 * coffread.c (patch_type): Remove NULL check before xfree.
10861 * corefile.c (set_gnutarget): Likewise.
10862 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10863 * exec.c (build_section_table): Likewise.
10864 * remote.c (remote_target::pass_signals): Likewise.
10865 * utils.c (n_spaces): Likewise.
10866 * cli/cli-script.c (document_command): Likewise.
10867 * i386-windows-tdep.c (core_process_module_section): Likewise.
10868 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10870 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10872 * symfile.c (reread_symbols): Clear objfile's section_offsets
10873 vector and section indices, re-compute them by calling
10876 2020-05-20 Tom Tromey <tromey@adacore.com>
10878 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10879 (desc_one_bound, desc_index_type): Compute field name.
10881 2020-05-20 Tom de Vries <tdevries@suse.de>
10884 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10886 2020-05-20 Alan Modra <amodra@gmail.com>
10889 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10891 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10892 passed to bfd_set_filename.
10893 * symfile-mem.c (add_vsyscall_page): Likewise for string
10894 passed to symbol_file_add_from_memory.
10895 (symbol_file_add_from_memory): Make name param a const char* and
10898 2020-05-20 Alan Modra <amodra@gmail.com>
10900 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10901 rather than accessing bfd->filename directly.
10902 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10903 and use bfd_section_name.
10904 * dwarf2/frame.c (decode_frame_entry): Likewise.
10905 * exec.c (exec_set_section_address): Likewise.
10906 * solib-aix.c (solib_aix_bfd_open): Likewise.
10907 * stap-probe.c (get_stap_base_address): Likewise.
10908 * symfile.c (reread_symbols): Likewise.
10910 2020-05-19 Tom Tromey <tromey@adacore.com>
10912 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10914 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10916 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10918 2020-05-19 Pedro Alves <palves@redhat.com>
10920 * NEWS (set exec-file-mismatch): Adjust entry.
10921 * exec.c: Include "build-id.h".
10922 (validate_exec_file): Try to match build IDs instead of filenames.
10923 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10924 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10925 and pass down 'warn_if_slow'.
10926 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10927 gdb_bfd_open_closure to pass it down.
10928 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10930 2020-05-19 Pedro Alves <palves@redhat.com>
10932 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10933 * target.c (target_fileio_open_1): Rename to target_fileio_open
10934 and make extern. Use bool.
10935 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10936 (target_fileio_read_alloc_1): Adjust.
10937 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10938 (target_fileio_open_warn_if_slow): Delete declaration.
10940 2020-05-19 Pedro Alves <palves@redhat.com>
10942 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10943 Adjust all callers.
10945 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10947 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10948 whether disp is negative.
10950 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10952 * symfile.h (struct symfile_segment_data)
10953 <~symfile_segment_data>: Remove.
10954 <segment_info>: Change to std::vector.
10955 * symfile.c (default_symfile_segments): Update.
10956 * elfread.c (elf_symfile_segments): Update.
10958 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10960 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10962 <segment_bases, segment_sizes>: Remove.
10963 * symfile.c (default_symfile_segments): Update.
10964 * elfread.c (elf_symfile_segments): Update.
10965 * remote.c (remote_target::get_offsets): Update.
10966 * solib-target.c (solib_target_relocate_section_addresses):
10969 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10971 * symfile.h (struct symfile_segment_data): Initialize fields.
10972 <~symfile_segment_data>: Add.
10973 (symfile_segment_data_up): New.
10974 (struct sym_fns) <sym_segments>: Return a
10975 symfile_segment_data_up.
10976 (default_symfile_segments): Return a symfile_segment_data_up.
10977 (free_symfile_segment_data): Remove.
10978 (get_symfile_segment_data): Return a symfile_segment_data_up.
10979 * symfile.c (default_symfile_segments): Likewise.
10980 (get_symfile_segment_data): Likewise.
10981 (free_symfile_segment_data): Remove.
10982 (symfile_find_segment_sections): Update.
10983 * elfread.c (elf_symfile_segments): Return a
10984 symfile_segment_data_up.
10985 * remote.c (remote_target::get_offsets): Update.
10986 * solib-target.c (solib_target_relocate_section_addresses):
10988 * symfile-debug.c (debug_sym_segments): Return a
10989 symfile_segment_data_up.
10991 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10994 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10995 Hardcode register numbers.
10998 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10999 procfs_find_LDT_entry): Remove.
11000 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11001 procfs_find_LDT_entry): Remove.
11002 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11005 2020-05-17 Pedro Alves <palves@redhat.com>
11006 Andrew Burgess <andrew.burgess@embecosm.com>
11007 Keno Fischer <keno@juliacomputing.com>
11010 * breakpoint.c (build_target_condition_list): Update comments.
11011 (build_target_command_list): Update comments and skip matching
11013 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11014 a separate function. Simplify "set breakpoint auto-hw off"
11016 (insert_breakpoints): Update comment.
11017 (tracepoint_locations_match): New parameter. For breakpoints,
11018 compare location types too, if the caller wants to.
11019 (handle_automatic_hardware_breakpoints): New functions.
11020 (bp_location_is_less_than): Also sort by location type and
11021 hardware breakpoint length.
11022 (update_global_location_list): Handle "set breakpoint auto-hw on"
11024 (update_breakpoint_locations): Ask breakpoint_locations_match to
11025 ignore location types.
11027 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11029 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11030 type::name instead.
11032 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11034 * gdbtypes.h (struct type) <name, set_name>: New methods.
11035 (TYPE_CODE): Use type::name. Change all call sites used to set
11036 the name to use type::set_name instead.
11038 2020-05-16 Tom Tromey <tom@tromey.com>
11040 * top.c (quit_force): Update.
11041 * infrun.c (handle_no_resumed): Update.
11042 * top.h (all_uis): New function.
11045 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11047 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11049 2020-05-16 Pedro Alves <palves@redhat.com>
11052 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11054 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11056 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11058 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11059 (sparc64_adi_info): Likewise.
11061 2020-05-15 Tom Tromey <tom@tromey.com>
11063 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11065 (lookup_objfile_from_block): Remove.
11066 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11067 (lookup_global_symbol): Use block_objfile.
11068 * symtab.h (lookup_objfile_from_block): Don't declare.
11069 * printcmd.c (clear_dangling_display_expressions): Use
11071 * parse.c (operator_check_standard): Use block_objfile.
11073 2020-05-15 Tom Tromey <tom@tromey.com>
11075 * language.c (language_alloc_type_symbol): Set
11077 * symtab.c (initialize_objfile_symbol): Remove.
11078 (allocate_symbol): Remove.
11079 (allocate_template_symbol): Remove.
11080 * dwarf2/read.c (fixup_go_packaging): Use "new".
11081 (new_symbol): Use "new".
11082 (read_variable): Don't call initialize_objfile_symbol. Use
11084 (read_func_scope): Use "new".
11085 * xcoffread.c (process_xcoff_symbol): Don't call
11086 initialize_objfile_symbol.
11087 (SYMBOL_DUP): Remove.
11088 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11090 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11091 (allocate_template_symbol): Don't declare.
11092 (struct symbol): Add copy constructor. Change defaults.
11093 * jit.c (finalize_symtab): Use "new".
11094 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11096 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11097 (common_block_end): Use "new".
11098 * mdebugread.c (parse_symbol): Use "new".
11099 (new_symbol): Likewise.
11101 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11103 * NEWS: Mention changes to help and apropos.
11105 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11107 * command.h (enum command_class): Improve comments, document
11108 that class_alias is for user-defined aliases, give the class
11109 name for each class, remove unused class_xdb.
11110 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11111 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11112 by a precise class.
11113 * infcmd.c (_initialize_infcmd): Likewise.
11114 * reverse.c (_initialize_reverse): Likewise.
11115 * stack.c (_initialize_stack): Likewise.
11116 * symfile.c (_initialize_symfile): Likewise.
11117 * tracepoint.c (_initialize_tracepoint): Likewise.
11119 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11121 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11122 when their aliased command is traversed.
11123 (help_cmd): Add fput_command_names_styled call to
11124 output command name and aliases when command has an alias.
11126 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11128 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11129 * cli/cli-decode.c (help_cmd_list): Declare as static,
11130 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11131 a command together with the command.
11132 (fput_command_name_styled, fput_command_names_styled): New functions.
11133 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11134 fput_command_name_styled.
11135 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11136 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11138 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11140 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11141 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11142 * command.h (cmd_show_list): Likewise.
11143 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11144 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11146 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11148 * unittests/command-def-selftests.c (traverse_command_structure):
11149 Verify all commands of a list have the same prefix command and
11150 that only the top cmdlist commands have a null prefix.
11152 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11154 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11155 as prefix, not one of its aliases.
11156 (set_cmd_prefix): Remove.
11157 (do_add_cmd): Centralize the setting of the prefix of a command, when
11158 command is defined after its full chain of prefix commands.
11159 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11160 (add_setshow_cmd_full): Likewise.
11161 (update_prefix_field_of_prefixed_commands): New function.
11162 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11163 update_prefix_field_of_prefixed_commands.
11164 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11165 addresses of remote_set_cmdlist and remote_show_cmdlist given
11166 as argument, not the address of an argument.
11167 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11168 * gdb/remote.c (_initialize_remote): Likewise.
11170 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11172 * cli/cli-cmds.c (alias_command): Check for an existing alias
11173 using lookup_cmd_composition, as valid_command_p is too strict
11174 and forbids aliases that are the prefix of an existing alias
11176 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11177 command is properly recognised as a valid command.
11179 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11181 * unittests/help-doc-selftests.c: Rename to
11182 unittests/command-def-selftests.c
11183 * unittests/command-def-selftests.c (help_doc_tests): Update some
11185 (command_structure_tests, traverse_command_structure): New namespace
11187 (command_structure_invariants_tests): New function.
11188 (_initialize_command_def_selftests) Renamed from
11189 _initialize_help_doc_selftests, register command_structure_invariants
11192 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11194 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11195 an alias of 'show'.
11197 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11199 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11200 ada_is_fixed_point_type. Update all callers.
11201 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11203 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11204 Update all callers.
11205 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11206 print_fixed_point_type. Update all callers.
11207 * ada-valprint.c (ada_value_print_num): Replace call to
11208 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11210 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11212 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11214 (cpu_supports_bts): Add CV_AMD case.
11216 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11217 Simon Marchi <simon.marchi@efficios.com>
11219 * infrun.c (stop_all_threads): Collect multiple wait events at
11222 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11224 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11225 type::code instead.
11227 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11229 * gdbtypes.h (struct type) <code, set_code>: New methods.
11230 (TYPE_CODE): Use type::code. Change all call sites used to set
11231 the code to use type::set_code instead.
11233 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11234 Tom de Vries <tdevries@suse.de>
11235 Pedro Alves <palves@redhat.com>
11238 * infrun.c (stop_all_threads): Do NOT ignore
11239 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11240 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11242 (handle_no_resumed): Remove code handling a live inferior with no
11244 * remote.c (has_single_non_exited_thread): New.
11245 (remote_target::update_thread_list): Do not delete a thread if is
11246 the last thread of the process.
11247 * thread.c (thread_select): Call delete_exited_threads instead of
11250 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11252 * infrun.c (stop_all_threads): Enable/disable thread events of all
11253 targets. Move a debug message denoting the end of the function
11254 into the SCOPED_EXIT block.
11256 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11258 * process-stratum-target.h: Include <set>.
11259 (all_non_exited_process_targets, switch_to_target_no_thread): New
11260 function declarations.
11261 * process-stratum-target.c (all_non_exited_process_targets)
11262 (switch_to_target_no_thread): New function implementations.
11264 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11266 * infrun.c (handle_inferior_event): Extract out a piece of code
11268 (mark_non_executing_threads): ...this new function.
11270 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11272 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11275 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11277 * regcache.c (regcache_read_pc_protected): New function
11278 implementation that returns 0 if the PC cannot read via
11279 'regcache_read_pc'.
11280 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11281 instead of 'regcache_read_pc'.
11282 (keep_going_pass_signal): Ditto.
11284 2020-05-13 Tom Tromey <tromey@adacore.com>
11286 * ada-lang.c (align_value): Remove.
11287 (ada_template_to_fixed_record_type_1): Use align_up.
11289 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11291 * async-event.c: Update the copyright year.
11292 * async-event.h: Update the copyright year.
11294 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11296 * objfiles.h (is_addr_in_objfile,
11297 shared_objfile_contains_address_p): Return bool.
11298 * objfile.c (is_addr_in_objfile,
11299 shared_objfile_contains_address_p): Return bool.
11301 2020-05-11 Tom Tromey <tromey@adacore.com>
11303 * cli/cli-cmds.c (info_command): Restore.
11304 (_initialize_cli_cmds): Use add_prefix_command for "info".
11305 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11307 2020-05-11 Tom Tromey <tromey@adacore.com>
11309 * ada-lang.c (ada_value_primitive_field): Now public.
11310 * ada-lang.h (ada_value_primitive_field): Declare.
11311 * ada-valprint.c (print_field_values): Use
11312 ada_value_primitive_field for wrapper fields.
11314 2020-05-11 Tom de Vries <tdevries@suse.de>
11316 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11319 2020-05-11 Tom de Vries <tdevries@suse.de>
11322 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11323 with length 0, if not gdb-produced.
11324 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11326 2020-05-09 Tom de Vries <tdevries@suse.de>
11329 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11332 2020-05-09 Tom Tromey <tom@tromey.com>
11334 * top.c (server_command): Now bool.
11335 * top.h (server_command): Now bool.
11337 2020-05-08 Tom Tromey <tromey@adacore.com>
11339 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11340 already being processed.
11342 2020-05-08 Tom Tromey <tom@tromey.com>
11344 * printcmd.c (struct display) <next>: Remove.
11345 <display>: New constructor.
11346 <exp_string>: Now a std::string.
11347 <enabled_p>: Now a bool.
11348 (display_number): Move definition earlier.
11349 (displays): Rename from display_chain. Now a std::vector.
11350 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11351 (display_command): Update.
11352 (do_one_display, disable_display)
11353 (enable_disable_display_command, do_enable_disable_display):
11355 (free_display): Remove.
11356 (clear_displays): Rewrite.
11357 (delete_display): Update.
11358 (map_display_numbers): Use function_view. Remove "data"
11360 (do_delete_display): Remove.
11361 (undisplay_command): Update.
11362 (do_one_display, do_displays, disable_display)
11363 (info_display_command): Update.
11364 (do_enable_disable_display): Remove.
11365 (enable_disable_display_command)
11366 (clear_dangling_display_expressions): Update.
11368 2020-05-08 Tom Tromey <tom@tromey.com>
11370 * symtab.c (set_symbol_cache_size)
11371 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11372 (maintenance_print_symbol_cache_statistics): Update.
11373 * symmisc.c (print_symbol_bcache_statistics)
11374 (print_objfile_statistics, maintenance_print_objfiles)
11375 (maintenance_info_symtabs, maintenance_check_symtabs)
11376 (maintenance_expand_symtabs, maintenance_info_line_tables):
11378 * symfile-debug.c (set_debug_symfile): Update.
11379 * source.c (forget_cached_source_info): Update.
11380 * python/python.c (gdbpy_progspaces): Update.
11381 * psymtab.c (maintenance_info_psymtabs): Update.
11382 * probe.c (parse_probes): Update.
11383 * linespec.c (iterate_over_all_matching_symtabs)
11384 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11385 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11386 * exec.c (exec_target::close): Update.
11387 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11388 * breakpoint.c (print_one_breakpoint_location)
11389 (create_longjmp_master_breakpoint)
11390 (create_std_terminate_master_breakpoint): Update.
11391 * progspace.c (program_spaces): Now a std::vector.
11392 (maybe_new_address_space): Update.
11393 (add_program_space): Remove.
11394 (program_space::program_space): Update.
11395 (remove_program_space): Update.
11396 (number_of_program_spaces): Remove.
11397 (print_program_space, update_address_spaces): Update.
11398 * progspace.h (program_spaces): Change type.
11399 (ALL_PSPACES): Remove.
11400 (number_of_program_spaces): Don't declare.
11401 (struct program_space) <next>: Remove.
11403 2020-05-08 Tom Tromey <tom@tromey.com>
11405 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11406 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11407 (enable_break): Update.
11408 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11409 (frv_fdpic_find_canonical_descriptor): Update.
11410 (frv_fetch_objfile_link_map): Update.
11411 * progspace.c (program_space::free_all_objfiles): Update.
11412 (program_space::solibs): New method.
11413 * progspace.h (struct program_space) <solibs>: New method.
11414 * solist.h (master_so_list): Don't declare.
11415 (ALL_SO_LIBS): Remove.
11416 * solib.h (so_list_head): Remove.
11417 (update_solib_list): Update comment.
11418 * solib.c (master_so_list): Remove.
11419 (solib_used, update_solib_list, solib_add)
11420 (info_sharedlibrary_command, clear_solib)
11421 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11423 2020-05-08 Tom Tromey <tom@tromey.com>
11425 * extension.c (extension_languages): Now a std::array.
11426 (ALL_EXTENSION_LANGUAGES): Remove.
11427 (get_ext_lang_defn, get_ext_lang_of_file)
11428 (eval_ext_lang_from_control_command): Update.
11429 (finish_ext_lang_initialization)
11430 (auto_load_ext_lang_scripts_for_objfile)
11431 (ext_lang_type_printers::ext_lang_type_printers)
11432 (apply_ext_lang_type_printers)
11433 (ext_lang_type_printers::~ext_lang_type_printers)
11434 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11435 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11436 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11437 (get_matching_xmethod_workers, ext_lang_colorize)
11438 (ext_lang_before_prompt): Update.
11439 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11441 2020-05-08 Tom Tromey <tom@tromey.com>
11443 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11445 <swap_string, m_string>: Remove.
11446 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11448 * stabsread.c (define_symbol, read_type): Update.
11449 * linespec.c (find_linespec_symbols): Update.
11450 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11451 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11452 * dbxread.c (read_dbx_symtab): Update.
11453 * cp-support.h (cp_canonicalize_string_full)
11454 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11455 Return unique_xmalloc_ptr.
11456 * cp-support.c (inspect_type): Update.
11457 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11458 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11460 * c-typeprint.c (print_name_maybe_canonical): Update.
11461 * break-catch-throw.c (check_status_exception_catchpoint):
11464 2020-05-08 Tom de Vries <tdevries@suse.de>
11466 * infrun.c (follow_fork): Copy current_line and current_symtab to
11469 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11471 * async-event.c (struct async_signal_handler, struct
11472 async_event_handler): Reformat, remove typedef.
11474 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11476 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11477 access thistype->main_type->dyn_prop_list directly.
11479 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11481 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11482 (remove_dyn_prop): Remove. Update all users to use
11483 type::remove_dyn_prop.
11484 * gdbtypes.c (remove_dyn_prop): Rename to...
11485 (type::remove_dyn_prop): ... this.
11487 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11489 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11490 (add_dyn_prop): Remove. Update all users to use
11491 type::add_dyn_prop.
11492 * gdbtypes.c (add_dyn_prop): Rename to...
11493 (type::add_dyn_prop): ... this.
11495 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11497 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11498 (get_dyn_prop): Remove. Update all users to use
11500 * gdbtypes.c (get_dyn_prop): Rename to...
11501 (type::dyn_prop): ... this.
11503 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11505 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11507 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11509 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11510 instruction, skip it if it's there.
11512 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11514 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11516 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11518 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11519 * gdbtypes.c (recursive_dump_type): Remove use of
11522 2020-05-03 Tom Tromey <tom@tromey.com>
11524 * breakpoint.c (catch_command, tcatch_command): Remove.
11525 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11526 add_show_prefix_cmd.
11527 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11528 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11530 (add_internal_problem_command): Use add_basic_prefix_cmd,
11531 add_show_prefix_cmd.
11532 * mips-tdep.c (set_mipsfpu_command): Remove.
11533 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11534 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11535 (_initialize_index_cache): Use add_basic_prefix_cmd.
11536 * memattr.c (dummy_cmd): Remove.
11537 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11538 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11539 (_initialize_tui_win): Use add_basic_prefix_cmd,
11540 add_show_prefix_cmd.
11541 * cli/cli-logging.c (set_logging_command): Remove.
11542 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11543 add_show_prefix_cmd.
11544 (show_logging_command): Remove.
11545 * target.c (target_command): Remove.
11546 (add_target): Use add_basic_prefix_cmd.
11548 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11550 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11552 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11554 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11557 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11559 * nbsd-nat.c (nbsd_enable_proc_events)
11560 (nbsd_nat_target::post_startup_inferior): Add.
11561 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11562 (nbsd_nat_target::update_thread_list): Rewrite.
11563 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11564 "PTRACE_LWP_CREATE".
11565 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11567 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11569 * stack.c (_initialize_stack): Remove duplicated creation
11570 of "frame" command and "f" alias.
11572 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11575 * gdbtypes.c (check_typedef): Calculate size of array of
11578 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11581 * i386-tdep.c (i386_push_dummy_call): Call
11582 i386_thiscall_push_dummy_call.
11583 (i386_thiscall_push_dummy_call): New function.
11584 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11585 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11586 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11588 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11590 * gdbarch.sh (do_read): Add shellcheck disable directive for
11593 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11595 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11596 "referenced but not assigned" warning.
11598 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11600 * gdbarch.sh: Remove code that sets fallbackdefault.
11602 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11604 * gdbarch.sh: Use shell operators && and || instead of
11607 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11609 * gdbarch.sh: Use $(...) instead of `...`.
11611 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11613 * gdbarch.sh: Use double quotes around variables.
11615 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11617 * gdbarch.sh: Use %s with printf, instead of variables in the
11620 2020-04-29 Tom Tromey <tromey@adacore.com>
11623 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11625 (read_enumeration_type): Call
11626 update_enumeration_type_from_children later. Update comments.
11627 (process_enumeration_scope): Don't create type fields.
11629 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11631 * nbsd-tdep.c: Include "xml-syscall.h".
11632 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11634 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11636 * nbsd-nat.c: Include "sys/wait.h".
11637 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11638 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11639 (nbsd_nat_target::remove_exec_catchpoint)
11640 (nbsd_nat_target::set_syscall_catchpoint): Add.
11641 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11642 (nbsd_nat_target::insert_exec_catchpoint)
11643 (nbsd_nat_target::remove_exec_catchpoint)
11644 (nbsd_nat_target::set_syscall_catchpoint): Add.
11645 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11646 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11647 `nbsd_get_syscall_number'.
11649 2020-04-29 Tom Tromey <tom@tromey.com>
11651 * stack.c (print_block_frame_labels): Remove.
11653 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11656 * ada-valprint.c (val_print_packed_array_elements): Move array
11657 end bracket to new line.
11658 (ada_val_print_string): Remove extra spaces before first array
11660 * c-valprint.c (c_value_print_array): Likewise.
11661 * m2-valprint.c (m2_print_array_contents): Likewise.
11662 (m2_value_print_inner): Likewise.
11663 * p-valprint.c (pascal_value_print_inner): Likewise.
11664 * valprint.c (generic_val_print_array): Likewise.
11665 (value_print_array_elements): Move first array element and array
11666 end bracket to new line.
11668 2020-04-29 Tom de Vries <tdevries@suse.de>
11671 * linespec.c (find_method): Fix ix calculation.
11673 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11675 * syscalls/update-netbsd.sh: New file.
11676 * syscalls/netbsd.xml: Regenerate.
11677 * data-directory/Makefile.in: Register `netbsd.xml' in
11680 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11682 * syscalls/update-freebsd.sh: Add double quotes.
11684 2020-04-28 Tom Tromey <tom@tromey.com>
11687 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11688 (cmdpy_init): Allow class_tui.
11690 2020-04-28 Mark Williams <mark@myosotissp.com>
11693 * dwarf2read.c: Add missing assingments to list_in_scope when
11694 start_symtab was already called.
11696 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11699 * dwarf2/read.c (offset_map_type): Use
11700 gdb:hash_enum<sect_offset> as hash function.
11702 2020-04-28 Tom de Vries <tdevries@suse.de>
11704 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11705 with DW_AT_signature.
11707 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11709 * configure.ac: Remove check for fs_base/gs_base in
11711 * configure: Re-generate.
11712 * config.in: Re-generate.
11713 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11714 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11715 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11717 2020-04-27 Luis Machado <luis.machado@linaro.org>
11719 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11720 problematic inline frame unwinding situation.
11721 * frame.c (frame_id_computed_p): New function.
11722 * frame.h (frame_id_computed_p): New prototype.
11724 2020-04-26 Tom Tromey <tom@tromey.com>
11726 * command.h (enum command_class) <class_pseudo>: Remove.
11728 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11730 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11733 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11735 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11736 `PT_GET_PROCESS_STATE' block.
11738 2020-04-24 Tom Tromey <tom@tromey.com>
11740 * symtab.h (symbol_get_demangled_name): Don't declare.
11741 * symtab.c (symbol_get_demangled_name): Remove.
11742 (general_symbol_info::natural_name)
11743 (general_symbol_info::demangled_name): Update.
11745 2020-04-24 Tom Tromey <tom@tromey.com>
11748 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11750 2020-04-24 Tom Tromey <tom@tromey.com>
11753 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11755 (new_symbol): Likewise.
11756 * compile/compile-object-load.c (get_out_value_type): Use
11757 symbol_matches_search_name.
11759 2020-04-24 Tom Tromey <tom@tromey.com>
11761 * dwarf2/read.c (add_partial_symbol): Do not call
11762 compute_and_set_names.
11764 2020-04-24 Tom Tromey <tom@tromey.com>
11766 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11769 2020-04-24 Tom Tromey <tom@tromey.com>
11771 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11772 (add_psymbol_to_list): New overload. Make old overload call new
11774 * psympriv.h (add_psymbol_to_list): New overload.
11776 2020-04-24 Tom Tromey <tom@tromey.com>
11778 * dwarf2/read.c (partial_die_info::read) <case
11779 DW_AT_linkage_name>: Use value_as_string.
11780 (dwarf2_string_attr): Use value_as_string.
11781 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11783 * dwarf2/attribute.c (attribute::value_as_string): New method.
11785 2020-04-24 Tom Tromey <tom@tromey.com>
11787 * symtab.c (general_symbol_info::natural_name)
11788 (general_symbol_info::demangled_name): Check for language_rust.
11790 2020-04-24 Tom Tromey <tom@tromey.com>
11792 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11793 (dwarf2_physname): ... from here.
11794 (partial_die_info::read): Add Rust "{" hack.
11796 2020-04-24 Tom Tromey <tom@tromey.com>
11798 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11800 (symbol_set_demangled_name): Don't declare.
11801 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11802 symbol_set_demangled_name.
11803 (general_symbol_info::set_language)
11804 (general_symbol_info::compute_and_set_names): Update.
11805 * minsyms.c (minimal_symbol_reader::install): Update.
11806 * dwarf2/read.c (new_symbol): Update.
11808 2020-04-24 Tom Tromey <tromey@adacore.com>
11811 * python/py-type.c (convert_field): Handle
11812 FIELD_LOC_KIND_DWARF_BLOCK.
11813 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11814 (typy_get_dynamic): Nw function.
11815 (type_object_getset): Add "dynamic".
11818 2020-04-24 Tom Tromey <tromey@adacore.com>
11820 * ada-typeprint.c (print_choices, print_variant_part)
11821 (print_record_field_types_dynamic): New functions.
11822 (print_record_field_types): Use print_record_field_types_dynamic.
11824 2020-04-24 Tom Tromey <tromey@adacore.com>
11826 * dwarf2/read.c (handle_data_member_location): New overload.
11827 (dwarf2_add_field): Use it.
11828 (decode_locdesc): Add "computed" parameter. Update comment.
11829 * gdbtypes.c (is_dynamic_type_internal): Also look for
11830 FIELD_LOC_KIND_DWARF_BLOCK.
11831 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11832 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11833 virtual base classes.
11834 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11835 FIELD_LOC_KIND_DWARF_BLOCK.
11837 2020-04-24 Tom Tromey <tromey@adacore.com>
11839 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11840 * gdbtypes.c (is_dynamic_type_internal): Check
11841 TYPE_HAS_DYNAMIC_LENGTH.
11842 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11843 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11845 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11848 2020-04-24 Tom Tromey <tromey@adacore.com>
11850 * dwarf2/read.c (struct variant_field): Rewrite.
11851 (struct variant_part_builder): New.
11852 (struct nextfield): Remove "variant" field. Add "offset".
11853 (struct field_info): Add "current_variant_part" and
11855 (alloc_discriminant_info): Remove.
11856 (alloc_rust_variant): New function.
11857 (quirk_rust_enum): Update.
11858 (dwarf2_add_field): Set "offset" member. Don't handle
11859 DW_TAG_variant_part.
11860 (offset_map_type): New typedef.
11861 (convert_variant_range, create_one_variant)
11862 (create_one_variant_part, create_variant_parts)
11863 (add_variant_property): New functions.
11864 (dwarf2_attach_fields_to_type): Call add_variant_property.
11865 (read_structure_type): Don't handle DW_TAG_variant_part.
11866 (handle_variant_part, handle_variant): New functions.
11867 (handle_struct_member_die): Use them.
11868 (process_structure_scope): Don't handle variant parts.
11869 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11870 (struct discriminant_info): Remove.
11871 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11872 (struct main_type) <flag_discriminated_union>: Remove.
11873 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11874 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11875 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11877 * valops.c (value_union_variant): Remove.
11878 * value.h (value_union_variant): Don't declare.
11880 2020-04-24 Tom Tromey <tromey@adacore.com>
11882 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11883 (ada_value_primitive_packed_val): Update.
11884 * ada-valprint.c (ada_value_print_1): Update.
11885 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11886 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11887 just an address. Use evaluate_for_locexpr_baton.
11888 (dwarf2_evaluate_property): Update.
11889 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11891 * findvar.c (default_read_var_value): Update.
11892 * gdbtypes.c (compute_variant_fields_inner)
11893 (resolve_dynamic_type_internal): Update.
11894 (resolve_dynamic_type): Change type of valaddr parameter.
11895 * gdbtypes.h (resolve_dynamic_type): Update.
11896 * valarith.c (value_subscripted_rvalue): Update.
11897 * value.c (value_from_contents_and_address): Update.
11899 2020-04-24 Tom Tromey <tromey@adacore.com>
11901 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11902 "push_initial_value" parameter.
11903 (dwarf2_evaluate_property): Likewise.
11904 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11906 2020-04-24 Tom Tromey <tromey@adacore.com>
11908 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11909 (variant::matches, compute_variant_fields_recurse)
11910 (compute_variant_fields_inner, compute_variant_fields): New
11912 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11913 Use resolved_type after type is made.
11914 (operator==): Add new cases.
11915 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11916 (struct discriminant_range, struct variant, struct variant_part):
11918 (union dynamic_prop_data) <variant_parts, original_type>: New
11920 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11921 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11923 * value.c (unpack_bits_as_long): Now public.
11924 * value.h (unpack_bits_as_long): Declare.
11926 2020-04-24 Tom Tromey <tromey@adacore.com>
11928 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11929 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11931 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11933 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11935 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11937 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11938 (remove_fork_catchpoint, post_startup_inferior)
11939 (post_attach): Move...
11940 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11941 (remove_fork_catchpoint, post_startup_inferior)
11942 (post_attach): ...here.
11943 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11944 (remove_fork_catchpoint, post_startup_inferior)
11945 (post_attach): Move...
11946 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11947 (remove_fork_catchpoint, post_startup_inferior)
11948 (post_attach): ...here.
11950 2020-04-24 Tom Tromey <tromey@adacore.com>
11952 * nat/windows-nat.h (struct windows_thread_info)
11953 <pc_adjusted>: New member.
11954 * windows-nat.c (windows_fetch_one_register): Check
11956 (windows_nat_target::get_windows_debug_event)
11957 (windows_nat_target::wait): Set pc_adjusted.
11959 2020-04-24 Tom de Vries <tdevries@suse.de>
11961 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11962 Run gdb-add-index inside temp dir.
11964 2020-04-23 Tom Tromey <tromey@adacore.com>
11966 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11969 2020-04-23 Luis Machado <luis.machado@linaro.org>
11971 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11972 get_frame_register instead of gdbarch_unwind_pc.
11974 2020-04-23 Tom de Vries <tdevries@suse.de>
11976 * symtab.c (lookup_global_symbol): Prefer def over decl.
11978 2020-04-23 Tom de Vries <tdevries@suse.de>
11981 * block.c (best_symbol, better_symbol): Promote to external.
11982 * block.h (best_symbol, better_symbol): Declare.
11983 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11986 2020-04-23 Tom Tromey <tromey@adacore.com>
11989 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11990 "const char *", not a "const std::string &".
11991 <name_and_matcher::operator==>: Update.
11992 * unittests/lookup_name_info-selftests.c: Change type of
11995 2020-04-23 Tom Tromey <tom@tromey.com>
11997 * inferior.h (iterate_over_inferiors): Don't declare.
11998 * inferior.c (iterate_over_inferiors): Remove.
11999 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12001 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12002 use iterate_over_inferiors.
12003 (darwin_resume_inferior_it)
12004 (struct resume_inferior_threads_param)
12005 (darwin_resume_inferior_threads_it): Remove.
12006 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12008 2020-04-23 Tom de Vries <tdevries@suse.de>
12010 * blockframe.c (find_pc_partial_function): Use
12011 find_pc_sect_compunit_symtab rather than
12012 objfile->sf->qf->find_pc_sect_compunit_symtab.
12014 2020-04-22 Tom de Vries <tdevries@suse.de>
12017 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12020 2020-04-22 Tom de Vries <tdevries@suse.de>
12023 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12026 2020-04-22 Tom de Vries <tdevries@suse.de>
12029 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12030 CU if already created.
12032 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12034 * infrun.c (displaced_step_fixup): Switch to the event_thread
12035 before calling displaced_step_restore, not after.
12037 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12039 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12040 its inferior is not recorded by us.
12041 (record_btrace_target_open): Replace call to
12042 all_non_exited_threads () with call to current_inferior
12043 ()->non_exited_threads ().
12044 (record_btrace_target::stop_recording): Likewise.
12045 (record_btrace_target::close): Likewise.
12046 (record_btrace_target::wait): Likewise.
12047 (record_btrace_target::record_stop_replaying): Likewise.
12049 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12051 * btrace.c (btrace_enable): Throw an error on double enables and
12052 when enabling recording fails.
12053 (btrace_disable): Throw an error if the thread is not recorded.
12055 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12057 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12058 request if we do not have a thread_info.
12060 2020-04-21 Tom de Vries <tdevries@suse.de>
12064 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12065 exception in get_frame_id.
12067 2020-04-20 Tom Tromey <tromey@adacore.com>
12069 * python/python.c (struct gdbpy_event): Mark move constructor as
12071 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12072 constructor as noexcept.
12073 * completer.h (struct completion_result): Mark move constructor as
12075 * completer.c (completion_result::completion_result): Use
12076 initialization style. Don't call reset_match_list.
12078 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12080 * MAINTAINERS (Write After Approval): Add myself.
12082 2020-04-18 Tom Tromey <tom@tromey.com>
12084 * windows-tdep.c (init_w32_command_list)
12085 (w32_prefix_command_valid): Restore.
12086 (_initialize_windows_tdep): Call init_w32_command_list.
12088 2020-04-18 Tom Tromey <tom@tromey.com>
12090 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12091 * value.c (value_fn_field): Update.
12092 * valops.c (find_function_in_inferior)
12093 (value_allocate_space_in_inferior): Update.
12094 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12096 * tui/tui-source.c (tui_source_window::set_contents): Update.
12097 * symtab.c (lookup_global_or_static_symbol)
12098 (find_function_start_sal_1, skip_prologue_sal)
12099 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12100 * symmisc.c (dump_msymbols, dump_symtab_1)
12101 (maintenance_print_one_line_table): Update.
12102 * symfile.c (init_entry_point_info, section_is_mapped)
12103 (list_overlays_command, simple_read_overlay_table)
12104 (simple_overlay_update_1): Update.
12105 * stap-probe.c (handle_stap_probe): Update.
12106 * stabsread.c (dbx_init_float_type, define_symbol)
12107 (read_one_struct_field, read_enum_type, read_range_type): Update.
12108 * source.c (info_line_command): Update.
12109 * python/python.c (gdbpy_source_objfile_script)
12110 (gdbpy_execute_objfile_script): Update.
12111 * python/py-type.c (save_objfile_types): Update.
12112 * python/py-objfile.c (py_free_objfile): Update.
12113 * python/py-inferior.c (python_new_objfile): Update.
12114 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12115 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12116 (maintenance_check_psymtabs): Update.
12117 * printcmd.c (info_address_command): Update.
12118 * objfiles.h (struct objfile) <arch>: New method, from
12120 (get_objfile_arch): Don't declare.
12121 * objfiles.c (get_objfile_arch): Remove.
12122 (filter_overlapping_sections): Update.
12123 * minsyms.c (msymbol_is_function): Update.
12124 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12125 (output_nondebug_symbol): Update.
12126 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12127 (mdebug_expand_psymtab): Update.
12128 * machoread.c (macho_add_oso_symfile): Update.
12129 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12131 * linux-fork.c (checkpoint_command): Update.
12132 * linespec.c (convert_linespec_to_sals): Update.
12133 * jit.c (finalize_symtab): Update.
12134 * infrun.c (insert_exception_resume_from_probe): Update.
12135 * ia64-tdep.c (ia64_find_unwind_table): Update.
12136 * hppa-tdep.c (internalize_unwinds): Update.
12137 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12139 * gcore.c (call_target_sbrk): Update.
12140 * elfread.c (record_minimal_symbol, elf_symtab_read)
12141 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12142 (elf_gnu_ifunc_resolve_by_got): Update.
12143 * dwarf2/read.c (create_addrmap_from_index)
12144 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12145 (read_debug_names_from_section)
12146 (process_psymtab_comp_unit_reader, add_partial_symbol)
12147 (add_partial_subprogram, process_full_comp_unit)
12148 (read_file_scope, read_func_scope, read_lexical_block_scope)
12149 (read_call_site_scope, dwarf2_ranges_read)
12150 (dwarf2_record_block_ranges, dwarf2_add_field)
12151 (mark_common_block_symbol_computed, read_tag_pointer_type)
12152 (read_tag_string_type, dwarf2_init_float_type)
12153 (dwarf2_init_complex_target_type, read_base_type)
12154 (partial_die_info::read, partial_die_info::read)
12155 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12156 (dwarf2_fetch_die_loc_sect_off): Update.
12157 * dwarf2/loc.c (dwarf2_find_location_expression)
12158 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12159 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12160 (dwarf2_loc_desc_get_symbol_read_needs)
12161 (locexpr_describe_location_piece, locexpr_describe_location_1)
12162 (loclist_describe_location): Update.
12163 * dwarf2/index-write.c (write_debug_names): Update.
12164 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12165 * dtrace-probe.c (dtrace_process_dof): Update.
12166 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12167 (process_one_symbol): Update.
12168 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12169 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12170 (coff_read_enum_type): Update.
12171 * cli/cli-cmds.c (edit_command, list_command): Update.
12172 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12173 * breakpoint.c (create_overlay_event_breakpoint)
12174 (create_longjmp_master_breakpoint)
12175 (create_std_terminate_master_breakpoint)
12176 (create_exception_master_breakpoint, get_sal_arch): Update.
12177 * block.c (block_gdbarch): Update.
12178 * annotate.c (annotate_source_line): Update.
12180 2020-04-17 Tom Tromey <tromey@adacore.com>
12182 * auto-load.c (show_auto_load_cmd): Remove.
12183 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12184 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12185 (maintenance_print_arc_command): Remove.
12186 * tui/tui-win.c (tui_command): Remove.
12187 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12188 * tui/tui-layout.c (tui_layout_command): Remove.
12189 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12190 * python/python.c (user_set_python, user_show_python): Remove.
12191 (_initialize_python): Use add_basic_prefix_cmd,
12192 add_show_prefix_cmd.
12193 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12194 (install_gdb_commands): Use add_basic_prefix_cmd,
12195 add_show_prefix_cmd.
12196 (info_guile_command): Remove.
12197 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12198 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12199 add_show_prefix_cmd.
12200 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12201 Remove do_set and do_show parameters.
12202 * cli/cli-style.c (set_style, show_style): Remove.
12203 (_initialize_cli_style): Use add_basic_prefix_cmd,
12204 add_show_prefix_cmd.
12205 (cli_style_option::add_setshow_commands): Remove do_set and
12206 do_show parameters.
12207 (cli_style_option::add_setshow_commands): Use
12208 add_basic_prefix_cmd, add_show_prefix_cmd.
12209 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12210 (set_style_name): Remove.
12211 * cli/cli-dump.c (dump_command, append_command): Remove.
12212 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12213 (tekhex_dump_command, binary_dump_command)
12214 (binary_append_command): Remove.
12215 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12216 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12217 (init_w32_command_list): Remove; move into ...
12218 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12219 * valprint.c (set_print, show_print, set_print_raw)
12220 (show_print_raw): Remove.
12221 (_initialize_valprint): Use add_basic_prefix_cmd,
12222 add_show_prefix_cmd.
12223 * typeprint.c (set_print_type, show_print_type): Remove.
12224 (_initialize_typeprint): Use add_basic_prefix_cmd,
12225 add_show_prefix_cmd.
12226 * record.c (set_record_command, show_record_command): Remove.
12227 (_initialize_record): Use add_basic_prefix_cmd,
12228 add_show_prefix_cmd.
12229 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12230 add_show_prefix_cmd.
12231 (info_command, show_command, set_debug, show_debug): Remove.
12232 * top.h (set_history, show_history): Don't declare.
12233 * top.c (set_history, show_history): Remove.
12234 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12235 (unset_tdesc_cmd): Remove.
12236 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12237 add_show_prefix_cmd.
12238 * symtab.c (info_module_command): Remove.
12239 (_initialize_symtab): Use add_basic_prefix_cmd.
12240 * symfile.c (overlay_command): Remove.
12241 (_initialize_symfile): Use add_basic_prefix_cmd.
12242 * sparc64-tdep.c (info_adi_command): Remove.
12243 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12244 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12245 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12246 add_show_prefix_cmd.
12247 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12248 (_initialize_serial): Use add_basic_prefix_cmd,
12249 add_show_prefix_cmd.
12250 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12251 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12252 add_show_prefix_cmd.
12253 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12254 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12255 add_show_prefix_cmd.
12256 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12257 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12258 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12259 add_show_prefix_cmd.
12260 * remote.c (remote_command, set_remote_cmd): Remove.
12261 (_initialize_remote): Use add_basic_prefix_cmd.
12262 * record-full.c (set_record_full_command)
12263 (show_record_full_command): Remove.
12264 (_initialize_record_full): Use add_basic_prefix_cmd,
12265 add_show_prefix_cmd.
12266 * record-btrace.c (cmd_set_record_btrace)
12267 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12268 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12269 (cmd_show_record_btrace_pt): Remove.
12270 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12271 add_show_prefix_cmd.
12272 * ravenscar-thread.c (set_ravenscar_command)
12273 (show_ravenscar_command): Remove.
12274 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12275 add_show_prefix_cmd.
12276 * mips-tdep.c (show_mips_command, set_mips_command)
12277 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12278 add_show_prefix_cmd.
12279 * maint.c (maintenance_command, maintenance_info_command)
12280 (maintenance_check_command, maintenance_print_command)
12281 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12282 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12283 add_show_prefix_cmd.
12284 (show_per_command_cmd): Remove.
12285 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12287 (maintenance_show_test_settings_cmd): Remove.
12288 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12289 add_show_prefix_cmd.
12290 * maint-test-options.c (maintenance_test_options_command):
12292 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12293 * macrocmd.c (macro_command): Remove
12294 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12295 * language.c (set_check, show_check): Remove.
12296 (_initialize_language): Use add_basic_prefix_cmd,
12297 add_show_prefix_cmd.
12298 * infcmd.c (unset_command): Remove.
12299 (_initialize_infcmd): Use add_basic_prefix_cmd.
12300 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12301 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12302 add_show_prefix_cmd.
12303 * go32-nat.c (go32_info_dos_command): Remove.
12304 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12305 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12306 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12307 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12308 (_initialize_frame): Use add_basic_prefix_cmd,
12309 add_show_prefix_cmd.
12310 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12311 (_initialize_dcache): Use add_basic_prefix_cmd,
12312 add_show_prefix_cmd.
12313 * cp-support.c (maint_cplus_command): Remove.
12314 (_initialize_cp_support): Use add_basic_prefix_cmd.
12315 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12316 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12317 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12318 add_basic_prefix_cmd, add_show_prefix_cmd.
12319 * breakpoint.c (save_command): Remove.
12320 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12321 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12322 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12323 add_show_prefix_cmd.
12324 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12325 (set_ada_command, show_ada_command): Remove.
12326 (_initialize_ada_language): Use add_basic_prefix_cmd,
12327 add_show_prefix_cmd.
12328 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12330 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12332 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12333 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12335 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12337 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12340 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12342 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12343 import table is not at beginning of .idata section.
12345 2020-04-16 Pedro Alves <palves@redhat.com>
12347 * inferior.c (delete_inferior): Use delete operator directly
12348 instead of delete_program_space.
12349 * progspace.c (add_program_space): New, factored out from
12350 program_space::program_space.
12351 (remove_program_space): New, factored out from
12352 delete_program_space.
12353 (program_space::program_space): Remove intro comment. Rewrite.
12354 (program_space::~program_space): Remove intro comment. Call
12355 remove_program_space.
12356 (delete_program_space): Delete.
12357 * progspace.h (program_space::program_space): Make explicit. Move
12358 intro comment here, adjusted.
12359 (program_space::~program_space): Move intro comment here,
12361 (delete_program_space): Remove.
12363 2020-04-16 Tom Tromey <tromey@adacore.com>
12365 * windows-nat.c (windows_nat::handle_access_violation): New
12367 * nat/windows-nat.h (handle_access_violation): Declare.
12368 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12369 windows-nat.c. Call handle_access_violation.
12371 2020-04-16 Tom de Vries <tdevries@suse.de>
12374 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12375 CUs without psymtab.
12377 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12379 * python/python.c (do_start_initialization): Don't call
12380 PyEval_InitThreads for Python 3.9 and beyond.
12382 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12384 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12386 (obsd_nat_target::wait): Likewise.
12388 2020-04-15 Tom Tromey <tromey@adacore.com>
12390 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12391 (DEBUG_EXCEPT): Use debug_printf.
12393 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12395 * completer.c (class completion_tracker::completion_hash_entry)
12396 <hash_name>: New member function.
12397 (completion_tracker::discard_completions): New callback to hash a
12398 completion_hash_entry, pass this to htab_create_alloc.
12400 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12402 * windows-nat.c (windows_make_so): Warn rather than stopping with
12403 an error if realpath() fails.
12405 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12407 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12408 (nbsd_nat_target::info_proc): Add do_status.
12410 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12411 Tom de Vries <tdevries@suse.de>
12414 * psympriv.h (struct partial_symtab::read_symtab)
12415 (struct partial_symtab::expand_psymtab)
12416 (struct partial_symtab::read_dependencies): Update comments.
12417 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12418 read_symtab for includer.
12419 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12420 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12421 (struct dwarf2_include_psymtab::m_readin): Remove.
12422 (struct dwarf2_include_psymtab::includer): New member function.
12423 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12425 2020-04-14 Tom de Vries <tdevries@suse.de>
12428 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12429 with NULL symbol_matcher and lookup_name.
12430 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12432 * dwarf2/read.c (dw2_expand_symtabs_matching)
12433 (dw2_debug_names_expand_symtabs_matching): Same.
12434 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12435 Make lookup_name a pointer. Update comment.
12436 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12437 lookup_name being a pointer.
12438 * symfile.c (expand_symtabs_matching): Same.
12439 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12440 * linespec.c (iterate_over_all_matching_symtabs): Same.
12442 2020-04-13 Tom Tromey <tom@tromey.com>
12444 * run-on-main-thread.c: Update include.
12445 * unittests/main-thread-selftests.c: Update include.
12446 * tui/tui-win.c: Update include.
12447 * tui/tui-io.c: Update include.
12448 * tui/tui-interp.c: Update include.
12449 * tui/tui-hooks.c: Update include.
12450 * top.h: Update include.
12451 * top.c: Update include.
12452 * ser-base.c: Update include.
12453 * remote.c: Update include.
12454 * remote-notif.c: Update include.
12455 * remote-fileio.c: Update include.
12456 * record-full.c: Update include.
12457 * record-btrace.c: Update include.
12458 * python/python.c: Update include.
12459 * posix-hdep.c: Update include.
12460 * mingw-hdep.c: Update include.
12461 * mi/mi-main.c: Update include.
12462 * mi/mi-interp.c: Update include.
12463 * main.c: Update include.
12464 * linux-nat.c: Update include.
12465 * interps.c: Update include.
12466 * infrun.c: Update include.
12467 * inf-loop.c: Update include.
12468 * event-top.c: Update include.
12469 * event-loop.c: Move to ../gdbsupport/.
12470 * event-loop.h: Move to ../gdbsupport/.
12471 * async-event.h: Update include.
12472 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12474 2020-04-13 Tom Tromey <tom@tromey.com>
12476 * tui/tui-win.c: Include async-event.h.
12477 * remote.c: Include async-event.h.
12478 * remote-notif.c: Include async-event.h.
12479 * record-full.c: Include async-event.h.
12480 * record-btrace.c: Include async-event.h.
12481 * infrun.c: Include async-event.h.
12482 * event-top.c: Include async-event.h.
12483 * event-loop.h: Move some declarations to async-event.h.
12484 * event-loop.c: Don't include ser-event.h or top.h. Move some
12485 code to async-event.c.
12486 * async-event.h: New file.
12487 * async-event.c: New file.
12488 * Makefile.in (COMMON_SFILES): Add async-event.c.
12489 (HFILES_NO_SRCDIR): Add async-event.h.
12491 2020-04-13 Tom Tromey <tom@tromey.com>
12493 * utils.c (flush_streams): New function.
12494 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12496 2020-04-13 Tom Tromey <tom@tromey.com>
12498 * event-loop.c (handle_file_event): Use warning, not
12501 2020-04-13 Tom Tromey <tom@tromey.com>
12503 * event-loop.c: Include <chrono>.
12505 2020-04-13 Tom Tromey <tom@tromey.com>
12507 * gdb_select.h: Move to ../gdbsupport/.
12508 * event-loop.c: Update include path.
12509 * top.c: Update include path.
12510 * ser-base.c: Update include path.
12511 * ui-file.c: Update include path.
12512 * ser-tcp.c: Update include path.
12513 * guile/scm-ports.c: Update include path.
12514 * posix-hdep.c: Update include path.
12515 * ser-unix.c: Update include path.
12516 * gdb_usleep.c: Update include path.
12517 * mingw-hdep.c: Update include path.
12518 * inflow.c: Update include path.
12519 * infrun.c: Update include path.
12520 * event-top.c: Update include path.
12522 2020-04-13 Tom Tromey <tom@tromey.com>
12524 * configure: Rebuild.
12525 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12527 2020-04-13 Tom Tromey <tom@tromey.com>
12529 * event-loop.h (start_event_loop): Don't declare.
12530 * event-loop.c (start_event_loop): Move...
12531 * main.c (start_event_loop): ...here. Now static.
12533 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12535 * MAINTAINERS: Update my email address.
12537 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12539 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12542 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12544 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12545 (nbsd_nat_target::info_proc): Add do_cmdline.
12547 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12549 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12550 (nbsd_nat_target::info_proc): Add do_cwd.
12552 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12554 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12556 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12558 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12559 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12560 (nbsd_nat_target::info_proc): New functions.
12561 * nbsd-nat.c (kinfo_get_vmmap): New function.
12562 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12563 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12564 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12565 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12567 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12568 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12569 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12570 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12571 (KINFO_VME_FLAG_GROWS_DOWN): New.
12573 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12575 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12578 2020-04-10 Tom Tromey <tromey@adacore.com>
12580 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12582 2020-04-10 Tom Tromey <tromey@adacore.com>
12584 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12585 separate debug files.
12587 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12589 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12591 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12593 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12594 Check for STATUS_WX86_BREAKPOINT.
12595 (windows_nat_target::wait): Same.
12597 2020-04-10 Tom de Vries <tdevries@suse.de>
12600 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12602 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12604 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12605 (Write After Approval): Remove Tom de Vries.
12607 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12610 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12612 * buildsym.c (record_line): Fix undefined behavior and preserve
12615 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12617 * auxv.h (svr4_auxv_parse): New.
12618 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12619 and generic_auxv_parse.
12620 (svr4_auxv_parse): Add.
12621 * obsd-tdep.c: Include "auxv.h".
12622 (obsd_auxv_parse): Remove.
12623 (obsd_init_abi): Remove comment.
12624 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12625 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12626 * nbsd-tdep.c: Include "auxv.h".
12627 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12629 2020-04-08 Tom Tromey <tromey@adacore.com>
12631 * nat/windows-nat.h (last_wait_event): Don't declare.
12632 (wait_for_debug_event): Update comment.
12633 * nat/windows-nat.c (last_wait_event): Now static.
12635 2020-04-08 Tom Tromey <tromey@adacore.com>
12637 * windows-nat.c (wait_for_debug_event): Move to
12639 * nat/windows-nat.h (wait_for_debug_event): Declare.
12640 * nat/windows-nat.c (wait_for_debug_event): Move from
12641 windows-nat.c. No longer static.
12643 2020-04-08 Tom Tromey <tromey@adacore.com>
12645 * windows-nat.c (get_windows_debug_event): Use
12646 fetch_pending_stop.
12647 * nat/windows-nat.h (fetch_pending_stop): Declare.
12648 * nat/windows-nat.c (fetch_pending_stop): New function.
12650 2020-04-08 Tom Tromey <tromey@adacore.com>
12652 * windows-nat.c (windows_continue): Use matching_pending_stop and
12653 continue_last_debug_event.
12654 * nat/windows-nat.h (matching_pending_stop)
12655 (continue_last_debug_event): Declare.
12656 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12657 (matching_pending_stop, continue_last_debug_event): New
12660 2020-04-08 Tom Tromey <tromey@adacore.com>
12662 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12663 (handle_exception_result): Move to nat/windows-nat.h.
12664 (DEBUG_EXCEPTION_SIMPLE): Remove.
12665 (windows_nat::handle_ms_vc_exception): New function.
12666 (handle_exception): Move to nat/windows-nat.c.
12667 (get_windows_debug_event): Update.
12668 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12670 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12671 (handle_exception_result): Move from windows-nat.c.
12672 (handle_exception): Declare.
12673 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12674 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12677 2020-04-08 Tom Tromey <tromey@adacore.com>
12679 * windows-nat.c (exception_count, event_count): Remove.
12680 (handle_exception, get_windows_debug_event)
12681 (do_initial_windows_stuff): Update.
12683 2020-04-08 Tom Tromey <tromey@adacore.com>
12685 * windows-nat.c (windows_nat::handle_load_dll)
12686 (windows_nat::handle_unload_dll): Rename. No longer static.
12687 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12690 2020-04-08 Tom Tromey <tromey@adacore.com>
12692 * complaints.h (stop_whining): Declare at top-level.
12693 (complaint): Don't declare stop_whining.
12695 2020-04-08 Tom Tromey <tromey@adacore.com>
12697 * windows-nat.c (windows_nat::handle_output_debug_string):
12698 Rename. No longer static.
12699 * nat/windows-nat.h (handle_output_debug_string): Declare.
12701 2020-04-08 Tom Tromey <tromey@adacore.com>
12703 * windows-nat.c (current_process_handle, current_process_id)
12704 (main_thread_id, last_sig, current_event, last_wait_event)
12705 (current_windows_thread, desired_stop_thread_id, pending_stops)
12706 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12707 (display_selectors, fake_create_process)
12708 (get_windows_debug_event): Update.
12709 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12713 * nat/windows-nat.c (current_process_handle, current_process_id)
12714 (main_thread_id, last_sig, current_event, last_wait_event)
12715 (current_windows_thread, desired_stop_thread_id, pending_stops)
12716 (siginfo_er): New globals. Move from windows-nat.c.
12718 2020-04-08 Tom Tromey <tromey@adacore.com>
12720 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12721 (handle_load_dll): Update.
12722 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12724 2020-04-08 Tom Tromey <tromey@adacore.com>
12726 * windows-nat.c (enum thread_disposition_type): Move to
12728 (windows_nat::thread_rec): Rename from thread_rec. No longer
12730 (windows_add_thread, windows_nat_target::fetch_registers)
12731 (windows_nat_target::store_registers, handle_exception)
12732 (windows_nat_target::resume, get_windows_debug_event)
12733 (windows_nat_target::get_tib_address)
12734 (windows_nat_target::thread_name)
12735 (windows_nat_target::thread_alive): Update.
12736 * nat/windows-nat.h (enum thread_disposition_type): Move from
12738 (thread_rec): Declare.
12740 2020-04-08 Tom Tromey <tromey@adacore.com>
12742 * windows-nat.c: Add "using namespace".
12743 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12744 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12746 2020-04-08 Tom Tromey <tromey@adacore.com>
12748 * nat/windows-nat.h (struct windows_thread_info): Declare
12750 * nat/windows-nat.c (~windows_thread_info): New.
12752 2020-04-08 Tom Tromey <tromey@adacore.com>
12755 * windows-nat.c (current_event): Update comment.
12756 (last_wait_event, desired_stop_thread_id): New globals.
12757 (struct pending_stop): New.
12758 (pending_stops): New global.
12759 (windows_nat_target) <stopped_by_sw_breakpoint>
12760 <supports_stopped_by_sw_breakpoint>: New methods.
12761 (windows_fetch_one_register): Add assertions. Adjust PC.
12762 (windows_continue): Handle pending stops. Suspend other threads
12763 when stepping. Use last_wait_event
12764 (wait_for_debug_event): New function.
12765 (get_windows_debug_event): Use wait_for_debug_event. Handle
12766 pending stops. Queue spurious stops.
12767 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12768 (windows_nat_target::kill): Use wait_for_debug_event.
12769 * nat/windows-nat.h (struct windows_thread_info)
12770 <stopped_at_software_breakpoint>: New field.
12771 * nat/windows-nat.c (windows_thread_info::resume): Clear
12772 stopped_at_software_breakpoint.
12774 2020-04-08 Tom Tromey <tromey@adacore.com>
12776 * windows-nat.c (enum thread_disposition_type): New.
12777 (thread_rec): Replace "get_context" parameter with "disposition";
12779 (windows_add_thread, windows_nat_target::fetch_registers)
12780 (windows_nat_target::store_registers, handle_exception)
12781 (windows_nat_target::resume, get_windows_debug_event)
12782 (windows_nat_target::get_tib_address)
12783 (windows_nat_target::thread_name)
12784 (windows_nat_target::thread_alive): Update.
12786 2020-04-08 Tom Tromey <tromey@adacore.com>
12788 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12789 (windows_continue): Use windows_continue::resume.
12790 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12791 resume>: Declare new methods.
12792 * nat/windows-nat.c: New file.
12793 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12795 2020-04-08 Tom Tromey <tromey@adacore.com>
12797 * windows-nat.c (windows_add_thread, windows_delete_thread)
12798 (windows_nat_target::fetch_registers)
12799 (windows_nat_target::store_registers, fake_create_process)
12800 (windows_nat_target::resume, windows_nat_target::resume)
12801 (get_windows_debug_event, windows_nat_target::wait)
12802 (windows_nat_target::pid_to_str)
12803 (windows_nat_target::get_tib_address)
12804 (windows_nat_target::get_ada_task_ptid)
12805 (windows_nat_target::thread_name)
12806 (windows_nat_target::thread_alive): Use lwp, not tid.
12808 2020-04-08 Tom Tromey <tromey@adacore.com>
12810 * windows-nat.c (handle_exception)
12811 (windows_nat_target::thread_name): Update.
12812 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12813 <name>: Now unique_xmalloc_ptr.
12815 2020-04-08 Tom Tromey <tromey@adacore.com>
12817 * windows-nat.c (thread_rec)
12818 (windows_nat_target::fetch_registers): Update.
12819 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12821 <debug_registers_changed, reload_context>: Now bool.
12823 2020-04-08 Tom Tromey <tromey@adacore.com>
12825 * windows-nat.c (windows_add_thread): Use new.
12826 (windows_init_thread_list, windows_delete_thread): Use delete.
12827 (get_windows_debug_event): Update.
12828 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12829 destructor, and initializers.
12831 2020-04-08 Tom Tromey <tromey@adacore.com>
12833 * windows-nat.c (struct windows_thread_info): Remove.
12834 * nat/windows-nat.h: New file.
12836 2020-04-08 Tom Tromey <tromey@adacore.com>
12838 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12839 (thread_rec, windows_add_thread, windows_delete_thread)
12840 (windows_continue): Update.
12842 2020-04-08 Tom Tromey <tromey@adacore.com>
12844 * windows-nat.c (struct windows_thread_info): Remove typedef.
12845 (thread_head): Remove.
12846 (thread_list): New global.
12847 (thread_rec, windows_add_thread, windows_init_thread_list)
12848 (windows_delete_thread, windows_continue): Update.
12850 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12852 * windows-tdep.h (windows_init_abi): Add comment.
12853 (cygwin_init_abi): New declaration.
12854 * windows-tdep.c: Split signal enumeration in two, one for
12855 Windows and one for Cygwin.
12856 (windows_gdb_signal_to_target): Only deal with signal of the
12858 (cygwin_gdb_signal_to_target): New function.
12859 (windows_init_abi): Rename to windows_init_abi_common, don't set
12860 gdb_signal_to_target gdbarch method. Add new new function with
12862 (cygwin_init_abi): New function.
12863 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12864 comment. Don't call windows_init_abi.
12865 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12866 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12867 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12868 i386_windows_init_abi_common, don't call windows_init_abi. Add
12869 a new function of this name.
12870 (i386_cygwin_init_abi): New function.
12871 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12874 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12876 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12878 (dwarf2_read_gdb_index): Update.
12880 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12882 * nbsd-tdep.c: Include "objfiles.h".
12883 (nbsd_skip_solib_resolver): New.
12884 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12886 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12888 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12889 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12890 with DW_LLE_base_addressx are being emitted in DWARFv5.
12891 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12892 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12895 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12897 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12898 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12899 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12900 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12901 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12902 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12903 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12906 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12908 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12909 (read_loclist_index): New function definition.
12910 (lookup_loclist_base): New function definition.
12911 (read_loclist_header): New function definition.
12912 (dwarf2_cu): Add loclist_base and loclist_header field.
12913 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12914 (read_full_die_1): Read the value of DW_AT_loclists_base.
12915 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12916 (read_attribute_value): Handle DW_FORM_loclistx.
12917 (skip_one_die): Handle DW_FORM_loclistx.
12918 (loclist_header): New structure declaration.
12919 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12921 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12923 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12924 constructor. Remove `addr` parameter from other constructor and
12925 add `per_cu` parameter.
12926 * dwarf2/read.c (create_partial_symtab): Update.
12928 2020-04-07 Tom de Vries <tdevries@suse.de>
12931 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12932 (partial_die_info::fixup): Inherit has_const_value.
12934 2020-04-07 Tom de Vries <tdevries@suse.de>
12936 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12937 symbols without address.
12939 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12941 * nbsd-nat.h (struct thread_info): Add forward declaration.
12942 (nbsd_nat_target::thread_alive): Add.
12943 (nbsd_nat_target::thread_name): Likewise.
12944 (nbsd_nat_target::update_thread_list): Likewise.
12945 (update_thread_list::post_attach): Likewise.
12946 (post_attach::pid_to_str): Likewise.
12947 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12948 (nbsd_thread_lister): Add.
12949 (nbsd_nat_target::thread_alive): Likewise.
12950 (nbsd_nat_target::thread_name): Likewise.
12951 (nbsd_add_threads): Likewise.
12952 (update_thread_list::post_attach): Likewise.
12953 (nbsd_nat_target::update_thread_list): Likewise.
12954 (post_attach::pid_to_str): Likewise.
12956 2020-04-06 Tom Tromey <tromey@adacore.com>
12958 * ada-valprint.c (print_variant_part): Extract the variant field.
12959 (print_field_values): Use the field as the outer value when
12962 2020-04-06 Tom Tromey <tromey@adacore.com>
12964 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12965 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12966 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12967 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12968 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12970 2020-04-06 Tom Tromey <tromey@adacore.com>
12972 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12975 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12977 * nbsd-tdep.c: Include "gdbarch.h".
12978 Define enum with NetBSD signal numbers.
12979 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12980 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12981 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12982 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12983 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12984 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12985 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12986 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12987 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12988 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12989 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12990 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12992 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
12995 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12997 2020-04-03 Tom Tromey <tromey@adacore.com>
12999 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13000 Read constant block.
13002 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13004 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13005 (gdb_bfd_get_full_section_contents): New declaration.
13006 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13007 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13008 gdb_bfd_get_full_section_contents.
13010 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13012 * exec.c (build_section_table): Replace internal_error with
13014 (section_table_xfer_memory_partial): Likewise.
13015 * mdebugread.c (parse_partial_symbols): Likewise.
13016 * psymtab.c (lookup_partial_symbol): Likewise.
13017 * utils.c (wrap_here): Likewise.
13019 2020-04-02 Tom Tromey <tromey@adacore.com>
13021 * f-lang.c (build_fortran_types): Use arch_type to initialize
13022 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13024 2020-04-02 Tom Tromey <tromey@adacore.com>
13026 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13029 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13030 Bernd Edlinger <bernd.edlinger@hotmail.de>
13031 Tom Tromey <tromey@adacore.com>
13033 * buildsym.c (buildsym_compunit::record_line): Remove
13034 deduplication code.
13036 2020-04-02 Tom de Vries <tdevries@suse.de>
13039 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13041 2020-04-02 Tom de Vries <tdevries@suse.de>
13043 * dwarf2/read.c (dwarf2_gdb_index_functions,
13044 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13046 * psymtab.c (psym_lookup_global_symbol_language): New function.
13047 (psym_functions): Init psym_lookup_global_symbol_language with
13048 psym_lookup_global_symbol_language.
13049 * symfile-debug.c (debug_sym_quick_functions): Init
13050 lookup_global_symbol_language with NULL.
13051 * symfile.c (set_initial_language): Remove fixme comment.
13052 * symfile.h (struct quick_symbol_functions): Add
13053 lookup_global_symbol_language.
13054 * symtab.c (find_quick_global_symbol_language): New function.
13055 (find_main_name): Use find_quick_global_symbol_language.
13057 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13059 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13061 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13063 * buildsym.c (record_line): Fix undefined behavior and preserve
13066 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13068 * buildsym.c (record_line): Fix the resizing condition.
13070 2020-04-01 Tom Tromey <tom@tromey.com>
13072 * value.h (value_literal_complex): Add comment.
13073 * valops.c (value_literal_complex): Refer to value.h.
13075 2020-04-01 Tom Tromey <tom@tromey.com>
13077 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13078 (scalar_type): New rule, from typebase.
13079 (typebase): Use scalar_type. Recognize complex types.
13080 (field_name): Handle FLOAT_KEYWORD.
13081 (ident_tokens): Add _Complex and __complex__.
13083 2020-04-01 Tom Tromey <tom@tromey.com>
13086 * valarith.c (promotion_type, complex_binop): New functions.
13087 (scalar_binop): Handle complex numbers. Use promotion_type.
13088 (value_pos, value_neg, value_complement): Handle complex numbers.
13090 2020-04-01 Tom Tromey <tom@tromey.com>
13092 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13093 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13094 (parse_number): Handle complex numbers.
13096 2020-04-01 Tom Tromey <tom@tromey.com>
13098 * c-valprint.c (c_decorations): Change complex suffix to "i".
13100 2020-04-01 Tom Tromey <tom@tromey.com>
13102 * valprint.c (generic_value_print_complex): Use accessors.
13103 * value.h (value_real_part, value_imaginary_part): Declare.
13104 * valops.c (value_real_part, value_imaginary_part): New
13106 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13108 2020-04-01 Tom Tromey <tom@tromey.com>
13110 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13111 (read_range_type): Update.
13112 * mdebugread.c (basic_type): Update.
13113 * go-lang.c (build_go_types): Use init_complex_type.
13114 * gdbtypes.h (struct main_type) <complex_type>: New member.
13115 (init_complex_type): Update.
13116 (arch_complex_type): Don't declare.
13117 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13118 Make name if none given. Use alloc_type_copy. Look for cached
13120 (arch_complex_type): Remove.
13121 (gdbtypes_post_init): Use init_complex_type.
13122 * f-lang.c (build_fortran_types): Use init_complex_type.
13123 * dwarf2/read.c (read_base_type): Update.
13124 * d-lang.c (build_d_types): Use init_complex_type.
13125 * ctfread.c (read_base_type): Update.
13127 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13129 * infrun.c (stop_all_threads): Update assertion, plus when
13130 stopping threads, take into account that we might be trying
13131 to stop an all-stop target.
13132 (stop_waiting): Call 'stop_all_threads' if there exists a
13135 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13137 * target.h (exists_non_stop_target): New function declaration.
13138 * target.c (exists_non_stop_target): New function.
13140 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13143 * eval.c (is_integral_or_integral_reference): New function.
13144 (evaluate_subexp_standard): Allow integer references in
13145 pointer arithmetic.
13147 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13149 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13150 check for no ptid in the stop reply when the target is non-stop.
13152 2020-04-01 Tom Tromey <tromey@adacore.com>
13154 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13155 "name" parameter to rvalue reference. Initialize m_name_holder.
13156 <lookup_name_info>: New overloads.
13157 <name>: Return gdb::string_view.
13158 <c_str>: New method.
13159 <make_ignore_params>: Update.
13160 <search_name_hash>: Update.
13161 <language_lookup_name>: Return const char *.
13162 <m_name>: Change type.
13163 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13164 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13165 (lookup_name_info::match_any): Update.
13166 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13168 * minsyms.c (linkage_name_str): Update.
13169 * language.c (default_symbol_name_matcher): Update.
13170 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13172 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13173 (ada_lookup_name_info::ada_lookup_name_info): Update.
13174 (literal_symbol_name_matcher): Update.
13176 2020-04-01 Tom Tromey <tromey@adacore.com>
13178 * psymtab.c (psymtab_search_name): Remove function.
13179 (psym_lookup_symbol): Create search name and lookup name here.
13180 (lookup_partial_symbol): Remove "name" parameter; add
13182 (psym_expand_symtabs_for_function): Update.
13184 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13187 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13189 2020-03-31 Tom Tromey <tromey@adacore.com>
13191 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13194 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13196 * features/riscv/32bit-csr.xml: Regenerated.
13197 * features/riscv/64bit-csr.xml: Regenerated.
13199 2020-03-30 Tom Tromey <tromey@adacore.com>
13201 * ada-valprint.c (print_variant_part): Update.
13202 * ada-lang.h (ada_which_variant_applies): Update.
13203 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13204 outer_valaddr parameters; replace with "outer" value parameter.
13205 (to_fixed_variant_branch_type): Update.
13207 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13209 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13210 <list>. Remove inclusion of observable.h.
13211 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13212 (struct arch_lwp_info): New struct.
13213 (class ppc_linux_dreg_interface): New class.
13214 (struct ppc_linux_process_info): New struct.
13215 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13216 <low_new_clone, low_forget_process, low_prepare_to_resume>
13217 <copy_thread_dreg_state, mark_thread_stale>
13218 <mark_debug_registers_changed, register_hw_breakpoint>
13219 <clear_hw_breakpoint, register_wp, clear_wp>
13220 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13221 <num_memory_accesses, get_trigger_type>
13222 <create_watchpoint_request, hwdebug_point_cmp>
13223 <init_arch_lwp_info, get_arch_lwp_info>
13224 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13226 <struct ptid_hash>: New inner struct.
13227 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13229 (saved_dabr_value, hwdebug_info, max_slots_number)
13230 (struct hw_break_tuple, struct thread_points, ppc_threads)
13231 (have_ptrace_hwdebug_interface)
13232 (hwdebug_find_thread_points_by_tid)
13233 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13234 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13235 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13236 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13237 use m_dreg_interface.
13238 (hwdebug_point_cmp): Change to...
13239 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13240 reference arguments instead of pointers.
13241 (ppc_linux_nat_target::ranged_break_num_registers): Use
13243 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13244 m_dreg_interface. Call register_hw_breakpoint.
13245 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13246 m_dreg_interface. Call clear_hw_breakpoint.
13247 (get_trigger_type): Change to...
13248 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13250 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13251 use m_dreg_interface. Call register_hw_breakpoint.
13252 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13253 use m_dreg_interface. Call clear_hw_breakpoint.
13254 (can_use_watchpoint_cond_accel): Change to...
13255 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13256 method. Update comment, use m_dreg_interface and
13258 (calculate_dvc): Change to...
13259 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13261 (num_memory_accesses): Change to...
13262 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13263 (check_condition): Change to...
13264 (ppc_linux_nat_target::check_condition): ...this method.
13265 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13266 comment, use m_dreg_interface.
13267 (create_watchpoint_request): Change to...
13268 (ppc_linux_nat_target::create_watchpoint_request): ...this
13269 method. Use m_dreg_interface.
13270 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13271 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13272 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13273 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13274 (ppc_linux_nat_target::low_forget_process)
13275 (ppc_linux_nat_target::low_new_fork)
13276 (ppc_linux_nat_target::low_new_clone)
13277 (ppc_linux_nat_target::low_delete_thread)
13278 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13279 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13280 only call mark_thread_stale.
13281 (ppc_linux_thread_exit): Remove.
13282 (ppc_linux_nat_target::stopped_data_address): Change to...
13283 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13284 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13285 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13286 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13287 comment. Call low_stopped_data_address.
13288 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13290 (ppc_linux_nat_target::masked_watch_num_registers): Use
13292 (ppc_linux_nat_target::copy_thread_dreg_state)
13293 (ppc_linux_nat_target::mark_thread_stale)
13294 (ppc_linux_nat_target::mark_debug_registers_changed)
13295 (ppc_linux_nat_target::register_hw_breakpoint)
13296 (ppc_linux_nat_target::clear_hw_breakpoint)
13297 (ppc_linux_nat_target::register_wp)
13298 (ppc_linux_nat_target::clear_wp)
13299 (ppc_linux_nat_target::init_arch_lwp_info)
13300 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13301 (_initialize_ppc_linux_nat): Remove observer callback.
13303 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13305 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13306 (ppc_linux_nat_target::auxv_parse)
13307 (ppc_linux_nat_target::read_description)
13308 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13311 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13313 * linux-nat.h (low_new_clone): New method.
13314 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13316 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13318 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13319 (dbx_expand_psymtab): ... this.
13320 (start_psymtab): Update.
13321 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13322 (mdebug_expand_psymtab): ... this.
13323 (parse_partial_symbols): Update.
13324 (new_psymtab): Update.
13325 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13326 (xcoff_expand_psymtab): ... this.
13327 (xcoff_start_psymtab): Update.
13329 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13331 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13332 <expand_dependencies>: ... this.
13333 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13334 (partial_symtab::expand_dependencies): ... this.
13335 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13337 (dwarf2_psymtab::expand_psymtab): Update.
13338 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13339 * mdebugread.c (psymtab_to_symtab_1): Update.
13340 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13342 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13344 * psympriv.h (discard_psymtab): Remove.
13345 * dbxread.c (dbx_end_psymtab): Update.
13346 * xcoffread.c (xcoff_end_psymtab): Update.
13348 2020-03-28 Tom Tromey <tom@tromey.com>
13350 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13353 2020-03-28 Tom Tromey <tom@tromey.com>
13355 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13357 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13359 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13361 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13363 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13365 2020-03-26 Tom Tromey <tom@tromey.com>
13367 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13368 (mark_common_block_symbol_computed, read_tag_string_type)
13369 (attr_to_dynamic_prop, read_subrange_type): Update.
13370 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13371 to be methods on struct attribute.
13372 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13373 (read_call_site_scope, partial_die_info::read)
13374 (partial_die_info::read, lookup_die_type, follow_die_ref):
13376 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13377 from dwarf2_get_ref_die_offset.
13378 (attribute::constant_value): New method, from
13379 dwarf2_get_attr_constant_value.
13380 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13382 <constant_value>: New method.
13384 2020-03-26 Tom Tromey <tom@tromey.com>
13386 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13387 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13388 (dwarf_type_encoding_name): Move to stringify.c.
13389 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13390 * dwarf2/stringify.c: New file.
13391 * dwarf2/stringify.h: New file.
13393 2020-03-26 Tom Tromey <tom@tromey.com>
13395 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13398 2020-03-26 Tom Tromey <tom@tromey.com>
13400 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13402 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13403 (lookup_ranges_base): Likewise.
13404 (read_cutu_die_from_dwo, read_full_die_1): Update.
13406 2020-03-26 Tom Tromey <tom@tromey.com>
13408 * dwarf2/read.c (read_import_statement, read_file_scope)
13409 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13410 (read_lexical_block_scope, read_call_site_scope)
13411 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13412 (handle_struct_member_die, process_structure_scope)
13413 (update_enumeration_type_from_children)
13414 (process_enumeration_scope, read_array_type, read_common_block)
13415 (read_namespace, read_module, read_subroutine_type): Update.
13416 (sibling_die): Remove.
13418 2020-03-26 Tom Tromey <tom@tromey.com>
13420 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13421 (build_type_psymtabs_reader, read_structure_type)
13422 (read_enumeration_type, read_full_die_1): Update.
13423 (dwarf2_attr_no_follow): Move to die.h.
13424 * dwarf2/die.h (struct die_info) <attr>: New method.
13426 2020-03-26 Tom Tromey <tom@tromey.com>
13428 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13429 <base_address>: Now an optional.
13430 (dwarf2_find_base_address, dwarf2_rnglists_process)
13431 (dwarf2_ranges_process, fill_in_loclist_baton)
13432 (dwarf2_symbol_mark_computed): Update.
13434 2020-03-26 Tom Tromey <tom@tromey.com>
13436 * dwarf2/read.c (struct die_info): Move to die.h.
13437 * dwarf2/die.h: New file.
13439 2020-03-26 Tom Tromey <tom@tromey.com>
13441 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13443 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13444 Move to line-header.c.
13445 (read_checked_initial_length_and_offset, read_formatted_entries):
13447 (dwarf_decode_line_header): Split into two.
13448 * dwarf2/line-header.c
13449 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13451 (read_checked_initial_length_and_offset, read_formatted_entries):
13453 (dwarf_decode_line_header): New function, split from read.c.
13455 2020-03-26 Tom Tromey <tom@tromey.com>
13457 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13459 * dwarf2/read.c (read_attribute_value): Update.
13460 (dwarf2_per_objfile::read_line_string): Rename from
13461 read_indirect_line_string.
13462 (read_formatted_entries): Update.
13464 2020-03-26 Tom Tromey <tom@tromey.com>
13466 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13469 2020-03-26 Tom Tromey <tom@tromey.com>
13471 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13473 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13474 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13477 2020-03-26 Tom Tromey <tom@tromey.com>
13479 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13480 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13481 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13482 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13484 2020-03-26 Tom Tromey <tom@tromey.com>
13486 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13487 file_names_size, file_full_name, file_file_name>: Use const.
13488 <file_name_at, file_names>: Add const overload.
13489 * dwarf2/line-header.c (line_header::file_file_name)
13490 (line_header::file_full_name): Update.
13492 2020-03-26 Tom Tromey <tom@tromey.com>
13494 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13495 (macro_start_file, consume_improper_spaces)
13496 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13497 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13498 (dwarf_decode_macros): Move to macro.c.
13499 * dwarf2/macro.c: New file.
13500 * dwarf2/macro.h: New file.
13501 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13503 2020-03-26 Tom Tromey <tom@tromey.com>
13505 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13507 * dwarf2/section.c: New method. From
13508 read_indirect_string_at_offset_from.
13509 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13510 (read_indirect_string_at_offset_from): Move to section.c.
13511 (read_indirect_string_at_offset): Rewrite.
13512 (read_indirect_line_string_at_offset): Remove.
13513 (read_indirect_string, read_indirect_line_string)
13514 (dwarf_decode_macro_bytes): Update.
13516 2020-03-26 Tom Tromey <tom@tromey.com>
13518 * dwarf2/section.h (struct dwarf2_section_info)
13519 <overload_complaint>: Declare.
13520 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13521 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13522 Rename from dwarf2_section_buffer_overflow_complaint.
13523 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13524 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13526 2020-03-26 Tom Tromey <tom@tromey.com>
13528 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13530 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13532 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13535 2020-03-26 Tom Tromey <tom@tromey.com>
13537 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13539 2020-03-26 Tom Tromey <tom@tromey.com>
13541 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13543 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13545 (dwarf_decode_macros): Update.
13547 2020-03-26 Tom Tromey <tom@tromey.com>
13549 * dwarf2/read.c (read_attribute_value): Update.
13550 (read_indirect_string_from_dwz): Move to dwz.c; change into
13552 (dwarf_decode_macro_bytes): Update.
13553 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13554 * dwarf2/dwz.c: New file.
13555 * Makefile.in (COMMON_SFILES): Add dwz.c.
13557 2020-03-26 Tom Tromey <tom@tromey.com>
13559 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13560 * dwarf2/read.c: Add include.
13561 * dwarf2/index-write.c: Add include.
13562 * dwarf2/index-cache.c: Add include.
13563 * dwarf2/dwz.h: New file.
13565 2020-03-25 Tom Tromey <tom@tromey.com>
13567 * compile/compile-object-load.c (get_out_value_type): Mention
13568 correct symbol name in error message.
13570 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13572 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13574 2020-03-25 Tom de Vries <tdevries@suse.de>
13576 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13577 * symmisc.c (dump_symtab_1): Print user and includes fields.
13578 (maintenance_info_symtabs): Same.
13580 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13583 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13584 (riscv_regcache_cooked_write): New function.
13585 (riscv_push_dummy_call): Use new function.
13586 (riscv_return_value): Likewise.
13588 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13590 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13591 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13592 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13593 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13594 * infrun.c (follow_fork): Likewise.
13595 (follow_fork_inferior): Likewise.
13596 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13597 * linux-nat.h (class linux_nat_target): Likewise.
13598 * remote.c (class remote_target) <follow_fork>: Likewise.
13599 (remote_target::follow_fork): Likewise.
13600 * target-delegates.c: Re-generate.
13601 * target.c (default_follow_fork): Likewise.
13602 (target_follow_fork): Likewise.
13603 * target.h (struct target_ops) <follow_fork>: Likewise.
13604 (target_follow_fork): Likewise.
13606 2020-03-24 Tom de Vries <tdevries@suse.de>
13608 * psymtab.c (maintenance_info_psymtabs): Print user field.
13610 2020-03-20 Tom Tromey <tromey@adacore.com>
13612 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13614 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13617 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13619 * ptrace.m4: Don't check for ptrace declaration.
13620 * config.in: Re-generate.
13621 * configure: Re-generate.
13622 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13625 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13627 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13629 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13630 * sparc-nat.c (gdb_ptrace): Likewise.
13631 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13633 2020-03-20 Tom Tromey <tromey@adacore.com>
13635 * c-exp.y (lex_one_token): Fix assert.
13637 2020-03-20 Tom Tromey <tromey@adacore.com>
13639 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13640 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13643 2020-03-20 Tom Tromey <tromey@adacore.com>
13645 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13647 2020-03-20 Tom Tromey <tromey@adacore.com>
13649 * ada-valprint.c (print_variant_part): Remove parameters; switch
13650 to value-based API.
13651 (print_field_values): Likewise.
13652 (ada_val_print_struct_union): Likewise.
13653 (ada_value_print_1): Update.
13655 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13657 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13658 nbsd_nat_target instead of inf_ptrace_target.
13659 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13662 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13664 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13665 it to the ptrace call.
13666 * (store_registers): Likewise.
13668 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13670 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13671 it to the ptrace call.
13672 * (store_registers): Likewise.
13674 2020-03-19 Luis Machado <luis.machado@linaro.org>
13676 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13677 valid, fetch vg value from ptrace.
13679 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13680 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13681 * inf-ptrace.c: Likewise.
13682 * (gdb_ptrace): Add.
13683 * (inf_ptrace_target::resume): Update.
13684 * (inf_ptrace_target::xfer_partial): Likewise.
13685 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13686 * (inf_ptrace_peek_poke): Update.
13688 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13690 * x86-bsd-nat.c (gdb_ptrace): New.
13691 * (x86bsd_dr_set): Add new argument `ptid'.
13692 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13693 x86bsd_dr_set_addr): Update.
13695 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13697 * remote.c (remote_target::process_stop_reply): Handle events for
13698 all threads differently.
13700 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13702 * completer.c (completion_tracker::remove_completion): Define new
13704 * completer.h (completion_tracker::remove_completion): Declare new
13706 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13707 when adding a C++ function symbol.
13709 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13711 * completer.c (completion_tracker::completion_hash_entry): Define
13713 (advance_to_filename_complete_word_point): Call
13714 recompute_lowest_common_denominator.
13715 (completion_tracker::completion_tracker): Call discard_completions
13716 to setup the hash table.
13717 (completion_tracker::discard_completions): Allow for being called
13718 from the constructor, pass new equal function, and element deleter
13719 when constructing the hash table. Initialise new class member
13721 (completion_tracker::maybe_add_completion): Remove use of
13722 m_entries_vec, and store more information into m_entries_hash.
13723 (completion_tracker::recompute_lcd_visitor): New function, most
13724 content taken from...
13725 (completion_tracker::recompute_lowest_common_denominator):
13726 ...here, this now just visits each item in the hash calling the
13728 (completion_tracker::build_completion_result): Remove use of
13729 m_entries_vec, call recompute_lowest_common_denominator.
13730 * completer.h (completion_tracker::have_completions): Remove use
13732 (completion_tracker::completion_hash_entry): Declare new class.
13733 (completion_tracker::recompute_lowest_common_denominator): Change
13734 function signature.
13735 (completion_tracker::recompute_lcd_visitor): Declare new function.
13736 (completion_tracker::m_entries_vec): Delete.
13737 (completion_tracker::m_entries_hash): Initialize to NULL.
13738 (completion_tracker::m_lowest_common_denominator_valid): New
13740 (completion_tracker::m_lowest_common_denominator_max_length): New
13743 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13745 * regformats/regdef.h: Put reg in gdb namespace.
13747 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13749 * i386-bsd-nat.c (gdb_ptrace): New.
13750 * (i386bsd_fetch_inferior_registers,
13751 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13752 * (i386bsd_fetch_inferior_registers,
13753 i386bsd_store_inferior_registers) Use gdb_ptrace.
13755 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13757 * amd64-bsd-nat.c (gdb_ptrace): New.
13758 * (amd64bsd_fetch_inferior_registers,
13759 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13760 * (amd64bsd_fetch_inferior_registers,
13761 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13763 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13765 * user-regs.c (user_reg::read): Rename to...
13766 (user_reg::xread): ...this.
13767 * (append_user_reg): Rename argument `read' to `xread'.
13768 * (user_reg_add_builtin): Likewise.
13769 * (user_reg_add): Likewise.
13770 * (value_of_user_reg): Likewise.
13772 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13774 * sparc-nat.c (gdb_ptrace): New.
13775 * sparc-nat.c (sparc_fetch_inferior_registers)
13776 (sparc_store_inferior_registers) Remove obsolete comment.
13777 * sparc-nat.c (sparc_fetch_inferior_registers)
13778 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13779 * sparc-nat.c (sparc_fetch_inferior_registers)
13780 (sparc_store_inferior_registers) Use gdb_ptrace.
13782 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13784 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13785 it to the ptrace call.
13786 * sh-nbsd-nat.c (store_registers): Likewise.
13788 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13790 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13791 nbsd_nat_target instead of inf_ptrace_target.
13792 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13795 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13797 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13799 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13801 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13803 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13805 2020-03-17 Tom de Vries <tdevries@suse.de>
13808 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13810 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13812 (process_imported_unit_die): Skip import of c++ CUs.
13814 2020-03-16 Tom Tromey <tom@tromey.com>
13816 * p-valprint.c (pascal_object_print_value): Initialize
13819 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13820 Shahab Vahedi <shahab@synopsys.com>
13822 * Makefile.in: Add arch/arc.o
13823 * configure.tgt: Likewise.
13824 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13825 (_initialize_arc_tdep): Don't initialize old target descriptions.
13826 (arc_read_description): New function to cache target descriptions.
13827 * arc-tdep.h (arc_read_description): Add proto type.
13828 * arch/arc.c: New file.
13829 * arch/arc.h: Likewise.
13830 * features/Makefile: Replace old target descriptions with new.
13831 * features/arc-arcompact.c: Remove.
13832 * features/arc-arcompact.xml: Likewise.
13833 * features/arc-v2.c: Likewise
13834 * features/arc-v2.xml: Likewise
13835 * features/arc/aux-arcompact.xml: New file.
13836 * features/arc/aux-v2.xml: Likewise.
13837 * features/arc/core-arcompact.xml: Likewise.
13838 * features/arc/core-v2.xml: Likewise.
13839 * features/arc/aux-arcompact.c: Generate.
13840 * features/arc/aux-v2.c: Likewise.
13841 * features/arc/core-arcompact.c: Likewise.
13842 * features/arc/core-v2.c: Likewise.
13843 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13845 2020-03-16 Tom Tromey <tromey@adacore.com>
13848 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13849 putting value into bcache.
13851 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13854 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13856 (amd64_windows_init_abi_common): ... this. Don't set size of
13858 (amd64_windows_init_abi): New function.
13859 (amd64_cygwin_init_abi): New function.
13860 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13862 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13865 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13867 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13868 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13869 (pe_import_directory_entry): New struct type.
13870 (is_linked_with_cygwin_dll): New function.
13871 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13872 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13873 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13875 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13877 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13878 i386_cygwin_core_osabi_sniffer.
13880 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13882 * i386-cygwin-tdep.c: Rename to...
13883 * i386-windows-tdep.c: ... this.
13884 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13885 i386-windows-tdep.c.
13886 * configure.tgt: Likewise.
13888 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13890 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13891 * osabi.c (gdb_osabi_names): Add "Windows".
13892 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13893 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13894 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13895 i386_cygwin_osabi_sniffer.
13896 (_initialize_i386_cygwin_tdep): Register OS ABI
13897 GDB_OSABI_WINDOWS for i386.
13898 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13899 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13900 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13902 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13903 when the target matches '*-*-mingw*'.
13905 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13907 * defs.h (enum gdb_osabi): Move to...
13908 * osabi.h (enum gdb_osabi): ... here.
13909 * gdbarch.sh: Include osabi.h in gdbarch.h.
13910 * gdbarch.h: Re-generate.
13912 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13914 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13916 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13918 2020-03-14 Tom Tromey <tom@tromey.com>
13920 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13922 (c_type_print_modifier): Likewise. Add "language" parameter.
13923 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13924 (c_type_print_base_1): Update.
13925 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13927 * type-stack.c (type_stack::insert): Handle tp_atomic and
13929 (type_stack::follow_type_instance_flags): Likewise.
13930 (type_stack::follow_types): Likewise. Merge type-following code.
13931 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13932 (space_identifier, cv_with_space_id)
13933 (const_or_volatile_or_space_identifier_noopt)
13934 (const_or_volatile_or_space_identifier): Remove.
13935 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13937 (ptr_operator, typebase): Update.
13938 (enum token_flag) <FLAG_C>: New constant.
13939 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13941 (lex_one_token): Handle FLAG_C.
13943 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13945 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13946 it to the ptrace call.
13947 * m68k-bsd-nat.c (store_registers): Likewise.
13949 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13951 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13953 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13954 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13955 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13957 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13959 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13960 nbsd_nat_target instead of inf_ptrace_target.
13961 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13964 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13966 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13969 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13971 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13972 it to the ptrace call.
13973 * alpha-bsd-nat.c (store_registers): Likewise.
13975 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13977 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13979 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13980 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13981 fill_fpregset): Likewise.
13983 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13985 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13986 nbsd_nat_target instead of inf_ptrace_target.
13987 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13990 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13992 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13995 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13997 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13998 it to the ptrace call.
13999 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14000 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14001 * arm-nbsd-nat.c (store_register): Likewise.
14002 * arm-nbsd-nat.c (store_regs): Likewise.
14003 * arm-nbsd-nat.c (store_fp_register): Likewise.
14004 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14006 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14008 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14009 nbsd_nat_target instead of inf_ptrace_target.
14010 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14013 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14015 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14016 it to the ptrace call.
14017 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14019 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14021 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14022 it to the ptrace call.
14023 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14025 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14027 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14029 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14031 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14033 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14034 instead of inf_ptrace_target.
14035 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14038 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14040 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14043 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14045 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14048 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14050 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14053 2020-03-13 Tom Tromey <tom@tromey.com>
14055 * value.h (val_print): Don't declare.
14056 * valprint.h (val_print_array_elements)
14057 (val_print_scalar_formatted, generic_val_print): Don't declare.
14058 * valprint.c (generic_val_print_array): Take a struct value.
14059 (generic_val_print_ptr, generic_val_print_memberptr)
14060 (generic_val_print_bool, generic_val_print_int)
14061 (generic_val_print_char, generic_val_print_complex)
14062 (generic_val_print): Remove.
14063 (generic_value_print): Update.
14064 (do_val_print): Remove unused parameters. Don't call
14066 (val_print): Remove.
14067 (common_val_print): Update. Don't call value_check_printable.
14068 (val_print_scalar_formatted, val_print_array_elements): Remove.
14069 * rust-lang.c (rust_val_print): Remove.
14070 (rust_language_defn): Update.
14071 * p-valprint.c (pascal_val_print): Remove.
14072 (pascal_value_print_inner): Update.
14073 (pascal_object_print_val_fields, pascal_object_print_val):
14075 (pascal_object_print_static_field): Update.
14076 * p-lang.h (pascal_val_print): Don't declare.
14077 * p-lang.c (pascal_language_defn): Update.
14078 * opencl-lang.c (opencl_language_defn): Update.
14079 * objc-lang.c (objc_language_defn): Update.
14080 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14081 * m2-lang.h (m2_val_print): Don't declare.
14082 * m2-lang.c (m2_language_defn): Update.
14083 * language.h (struct language_defn) <la_val_print>: Remove.
14084 * language.c (unk_lang_value_print_inner): Rename. Change
14086 (unknown_language_defn, auto_language_defn): Update.
14087 * go-valprint.c (go_val_print): Remove.
14088 * go-lang.h (go_val_print): Don't declare.
14089 * go-lang.c (go_language_defn): Update.
14090 * f-valprint.c (f_val_print): Remove.
14091 * f-lang.h (f_value_print): Don't declare.
14092 * f-lang.c (f_language_defn): Update.
14093 * d-valprint.c (d_val_print): Remove.
14094 * d-lang.h (d_value_print): Don't declare.
14095 * d-lang.c (d_language_defn): Update.
14096 * cp-valprint.c (cp_print_value_fields)
14097 (cp_print_value_fields_rtti, cp_print_value): Remove.
14098 (cp_print_static_field): Update.
14099 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14100 (c_val_print_struct, c_val_print_union, c_val_print_int)
14101 (c_val_print_memberptr, c_val_print): Remove.
14102 * c-lang.h (c_val_print_array, cp_print_value_fields)
14103 (cp_print_value_fields_rtti): Don't declare.
14104 * c-lang.c (c_language_defn, cplus_language_defn)
14105 (asm_language_defn, minimal_language_defn): Update.
14106 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14107 (ada_val_print_enum): Take a struct value.
14108 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14109 (ada_val_print): Remove.
14110 (ada_value_print_1): Update.
14111 (printable_val_type): Remove.
14112 * ada-lang.h (ada_val_print): Don't declare.
14113 * ada-lang.c (ada_language_defn): Update.
14115 2020-03-13 Tom Tromey <tom@tromey.com>
14117 * valprint.c (do_val_print): Update.
14118 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14120 (value_to_value_object_no_release): Declare.
14121 * python/py-value.c (value_to_value_object_no_release): New
14123 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14125 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14127 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14129 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14131 (gdbscm_apply_val_pretty_printer): Take a struct value.
14132 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14134 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14136 * extension-priv.h (struct extension_language_ops)
14137 <apply_val_pretty_printer>: Take a struct value.
14138 * cp-valprint.c (cp_print_value): Create a struct value.
14139 (cp_print_value): Update.
14141 2020-03-13 Tom Tromey <tom@tromey.com>
14143 * ada-valprint.c (print_field_values): Call common_val_print.
14145 2020-03-13 Tom Tromey <tom@tromey.com>
14147 * ada-valprint.c (val_print_packed_array_elements): Remove
14148 bitoffset and val parameters. Call common_val_print.
14149 (ada_val_print_string): Remove offset, address, and original_value
14151 (ada_val_print_array): Update.
14152 (ada_value_print_array): New function.
14153 (ada_value_print_1): Call it.
14155 2020-03-13 Tom Tromey <tom@tromey.com>
14157 * ada-valprint.c (ada_value_print): Use common_val_print.
14159 2020-03-13 Tom Tromey <tom@tromey.com>
14161 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14163 2020-03-13 Tom Tromey <tom@tromey.com>
14165 * ada-valprint.c (ada_value_print_num): New function.
14166 (ada_value_print_1): Use it.
14168 2020-03-13 Tom Tromey <tom@tromey.com>
14170 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14172 2020-03-13 Tom Tromey <tom@tromey.com>
14174 * ada-valprint.c (ada_value_print_ptr): New function.
14175 (ada_value_print_1): Use it.
14177 2020-03-13 Tom Tromey <tom@tromey.com>
14179 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14180 call common_val_print.
14181 (ada_val_print_1): Update.
14182 (ada_value_print_1): New function.
14183 (ada_value_print_inner): Rewrite.
14185 2020-03-13 Tom Tromey <tom@tromey.com>
14187 * cp-valprint.c (cp_print_value_fields): Update.
14188 (cp_print_value): New function.
14190 2020-03-13 Tom Tromey <tom@tromey.com>
14192 * m2-valprint.c (m2_value_print_inner): Use
14193 cp_print_value_fields.
14194 * cp-valprint.c (cp_print_value_fields): New function.
14195 * c-valprint.c (c_value_print_struct): New function.
14196 (c_value_print_inner): Use c_value_print_struct.
14197 * c-lang.h (cp_print_value_fields): Declare.
14199 2020-03-13 Tom Tromey <tom@tromey.com>
14201 * c-valprint.c (c_value_print_array): New function.
14202 (c_value_print_inner): Use it.
14204 2020-03-13 Tom Tromey <tom@tromey.com>
14206 * c-valprint.c (c_value_print_memberptr): New function.
14207 (c_value_print_inner): Use it.
14209 2020-03-13 Tom Tromey <tom@tromey.com>
14211 * c-valprint.c (c_value_print_int): New function.
14212 (c_value_print_inner): Use it.
14214 2020-03-13 Tom Tromey <tom@tromey.com>
14216 * c-valprint.c (c_value_print_ptr): New function.
14217 (c_value_print_inner): Use it.
14219 2020-03-13 Tom Tromey <tom@tromey.com>
14221 * c-valprint.c (c_value_print_inner): Rewrite.
14223 2020-03-13 Tom Tromey <tom@tromey.com>
14225 * valprint.c (generic_value_print_complex): New function.
14226 (generic_value_print): Use it.
14228 2020-03-13 Tom Tromey <tom@tromey.com>
14230 * valprint.c (generic_val_print_float): Don't call
14231 val_print_scalar_formatted.
14232 (generic_val_print, generic_value_print): Update.
14234 2020-03-13 Tom Tromey <tom@tromey.com>
14236 * valprint.c (generic_value_print_char): New function
14237 (generic_value_print): Use it.
14239 2020-03-13 Tom Tromey <tom@tromey.com>
14241 * valprint.c (generic_value_print_int): New function.
14242 (generic_value_print): Use it.
14244 2020-03-13 Tom Tromey <tom@tromey.com>
14246 * valprint.c (generic_value_print_bool): New function.
14247 (generic_value_print): Use it.
14249 2020-03-13 Tom Tromey <tom@tromey.com>
14251 * valprint.c (generic_val_print_func): Simplify.
14252 (generic_val_print, generic_value_print): Update.
14254 2020-03-13 Tom Tromey <tom@tromey.com>
14256 * valprint.c (generic_val_print_flags): Remove.
14257 (generic_val_print, generic_value_print): Update.
14258 (val_print_type_code_flags): Add original_value parameter.
14260 2020-03-13 Tom Tromey <tom@tromey.com>
14262 * valprint.c (generic_val_print): Update.
14263 (generic_value_print): Update.
14264 * valprint.c (generic_val_print_enum): Don't call
14265 val_print_scalar_formatted.
14267 2020-03-13 Tom Tromey <tom@tromey.com>
14269 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14270 * valprint.c (generic_value_print_ptr): New function.
14272 2020-03-13 Tom Tromey <tom@tromey.com>
14274 * valprint.c (generic_value_print): Rewrite.
14276 2020-03-13 Tom Tromey <tom@tromey.com>
14278 * p-valprint.c (pascal_object_print_value_fields)
14279 (pascal_object_print_value): New functions.
14281 2020-03-13 Tom Tromey <tom@tromey.com>
14283 * p-valprint.c (pascal_value_print_inner): Rewrite.
14285 2020-03-13 Tom Tromey <tom@tromey.com>
14287 * f-valprint.c (f_value_print_innner): Rewrite.
14289 2020-03-13 Tom Tromey <tom@tromey.com>
14291 * m2-valprint.c (m2_print_unbounded_array): New overload.
14292 (m2_print_unbounded_array): Update.
14293 (m2_print_array_contents): Take a struct value.
14294 (m2_value_print_inner): Rewrite.
14296 2020-03-13 Tom Tromey <tom@tromey.com>
14298 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14299 (d_value_print_inner): New function.
14300 * d-lang.h (d_value_print_inner): Declare.
14301 * d-lang.c (d_language_defn): Use d_value_print_inner.
14303 2020-03-13 Tom Tromey <tom@tromey.com>
14305 * go-valprint.c (go_value_print_inner): New function.
14306 * go-lang.h (go_value_print_inner): Declare.
14307 * go-lang.c (go_language_defn): Use go_value_print_inner.
14309 2020-03-13 Tom Tromey <tom@tromey.com>
14311 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14313 (rust_val_print): Rewrite.
14314 (rust_value_print_inner): New function, from rust_val_print.
14315 (rust_language_defn): Use rust_value_print_inner.
14317 2020-03-13 Tom Tromey <tom@tromey.com>
14319 * ada-valprint.c (ada_value_print_inner): New function.
14320 * ada-lang.h (ada_value_print_inner): Declare.
14321 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14323 2020-03-13 Tom Tromey <tom@tromey.com>
14325 * f-valprint.c (f_value_print_innner): New function.
14326 * f-lang.h (f_value_print_innner): Declare.
14327 * f-lang.c (f_language_defn): Use f_value_print_innner.
14329 2020-03-13 Tom Tromey <tom@tromey.com>
14331 * p-valprint.c (pascal_value_print_inner): New function.
14332 * p-lang.h (pascal_value_print_inner): Declare.
14333 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14335 2020-03-13 Tom Tromey <tom@tromey.com>
14337 * m2-valprint.c (m2_value_print_inner): New function.
14338 * m2-lang.h (m2_value_print_inner): Declare.
14339 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14341 2020-03-13 Tom Tromey <tom@tromey.com>
14343 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14344 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14345 * c-valprint.c (c_value_print_inner): New function.
14346 * c-lang.h (c_value_print_inner): Declare.
14347 * c-lang.c (c_language_defn, cplus_language_defn)
14348 (asm_language_defn, minimal_language_defn): Use
14349 c_value_print_inner.
14351 2020-03-13 Tom Tromey <tom@tromey.com>
14353 * p-valprint.c (pascal_object_print_value_fields): Now static.
14354 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14356 2020-03-13 Tom Tromey <tom@tromey.com>
14358 * c-valprint.c (c_val_print_array): Simplify.
14360 2020-03-13 Tom Tromey <tom@tromey.com>
14362 * valprint.c (value_print_array_elements): New function.
14363 * valprint.h (value_print_array_elements): Declare.
14365 2020-03-13 Tom Tromey <tom@tromey.com>
14367 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14368 * mips-tdep.c (mips_print_register): Use
14369 value_print_scalar_formatted.
14371 2020-03-13 Tom Tromey <tom@tromey.com>
14373 * valprint.h (value_print_scalar_formatted): Declare.
14374 * valprint.c (value_print_scalar_formatted): New function.
14376 2020-03-13 Tom Tromey <tom@tromey.com>
14378 * valprint.h (generic_value_print): Declare.
14379 * valprint.c (generic_value_print): New function.
14381 2020-03-13 Tom Tromey <tom@tromey.com>
14383 * valprint.c (do_val_print): Call la_value_print_inner, if
14385 * rust-lang.c (rust_language_defn): Update.
14386 * p-lang.c (pascal_language_defn): Update.
14387 * opencl-lang.c (opencl_language_defn): Update.
14388 * objc-lang.c (objc_language_defn): Update.
14389 * m2-lang.c (m2_language_defn): Update.
14390 * language.h (struct language_defn) <la_value_print_inner>: New
14392 * language.c (unknown_language_defn, auto_language_defn): Update.
14393 * go-lang.c (go_language_defn): Update.
14394 * f-lang.c (f_language_defn): Update.
14395 * d-lang.c (d_language_defn): Update.
14396 * c-lang.c (c_language_defn, cplus_language_defn)
14397 (asm_language_defn, minimal_language_defn): Update.
14398 * ada-lang.c (ada_language_defn): Update.
14400 2020-03-13 Tom Tromey <tom@tromey.com>
14402 * c-valprint.c (c_value_print): Use common_val_print.
14404 2020-03-13 Tom Tromey <tom@tromey.com>
14406 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14408 2020-03-13 Tom Tromey <tom@tromey.com>
14410 * f-valprint.c (f77_print_array_1, f_val_print): Use
14413 2020-03-13 Tom Tromey <tom@tromey.com>
14415 * riscv-tdep.c (riscv_print_one_register_info): Use
14418 2020-03-13 Tom Tromey <tom@tromey.com>
14420 * mi/mi-main.c (output_register): Use common_val_print.
14422 2020-03-13 Tom Tromey <tom@tromey.com>
14424 * infcmd.c (default_print_one_register_info): Use
14427 2020-03-13 Tom Tromey <tom@tromey.com>
14429 * valprint.h (common_val_print_checked): Declare.
14430 * valprint.c (common_val_print_checked): New function.
14431 * stack.c (print_frame_arg): Use common_val_print_checked.
14433 2020-03-13 Tom Tromey <tom@tromey.com>
14435 * valprint.c (do_val_print): New function, from val_print.
14436 (val_print): Use do_val_print.
14437 (common_val_print): Use do_val_print.
14439 2020-03-13 Tom Tromey <tom@tromey.com>
14441 * valprint.c (value_print): Use scoped_value_mark.
14443 2020-03-13 Tom de Vries <tdevries@suse.de>
14446 * psymtab.c (partial_symtab::partial_symtab): Don't set
14447 globals_offset and statics_offset. Push element onto
14448 current_global_psymbols and current_static_psymbols stacks.
14449 (concat): New function.
14450 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14451 element from current_global_psymbols and current_static_psymbols
14452 stacks. Concat popped elements to global_psymbols and
14454 (add_psymbol_to_list): Use current_global_psymbols and
14455 current_static_psymbols stacks.
14456 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14457 current_static_psymbols fields.
14459 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14461 * corelow.c (sniff_core_bfd): Remove.
14462 (class core_target) <m_core_vec>: Remove.
14463 (core_target::core_target): Update.
14464 (core_file_fns): Remove.
14465 (deprecated_add_core_fns): Remove.
14466 (default_core_sniffer): Remove.
14467 (sniff_core_bfd): Remove.
14468 (default_check_format): Remove.
14469 (gdb_check_format): Remove.
14470 (core_target_open): Update.
14471 (core_target::get_core_register_section): Update.
14472 (get_core_registers_cb): Update.
14473 (core_target::fetch_registers): Update.
14474 * gdbcore.h (struct core_fns): Remove.
14475 (deprecated_add_core_fns): Remove.
14476 (default_core_sniffer): Remove.
14477 (default_check_format): Remove.
14479 2020-03-12 Tom Tromey <tom@tromey.com>
14481 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14483 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14485 2020-03-12 Tom Tromey <tom@tromey.com>
14487 * remote.c (remote_target::download_tracepoint)
14488 (remote_target::enable_tracepoint)
14489 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14490 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14493 2020-03-12 Tom Tromey <tom@tromey.com>
14495 * symfile-mem.c: Update CORE_ADDR size assert.
14497 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14499 * selftest.m4: Move to gdbsupport/.
14500 * acinclude.m4: Update path to selftest.m4.
14502 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14504 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14505 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14506 gdbarch-selfselftests.c and selftest-arch.c.
14507 (SUBDIR_UNITTESTS_OBS): Rename to...
14508 (SELFTESTS_OBS): ... this.
14509 (COMMON_SFILES): Remove disasm-selftests.c and
14510 gdbarch-selftests.c.
14511 * configure.ac: Don't add selftest-arch.{c,o} to
14513 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14514 preprocessor conditions.
14516 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14518 * configure.ac: Don't source bfd/development.sh.
14519 * selftest.m4: Modify comment.
14520 * configure: Re-generate.
14522 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14524 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14525 not "true" or "false".
14526 * configure: Re-generate.
14528 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14530 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14531 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14532 renamed to arm_nbsd_supply_gregset.
14533 (fetch_register): Update to call arm_nbsd_supply_gregset.
14534 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14535 (arm_netbsd_nat_target::fetch_registers): Update.
14536 (fetch_elfcore_registers): Removed.
14537 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14538 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14539 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14540 not require NetBSD system headers.
14541 (arm_nbsd_regset): New struct.
14542 (arm_nbsd_iterate_over_regset_sections): New function.
14543 (arm_netbsd_init_abi_common): Updated to call
14544 set_gdbarch_iterate_over_regset_sections.
14545 * arm-nbsd-tdep.h: New file.
14547 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14549 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14552 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14554 * configure: Re-generate.
14556 2020-03-11 Tom Tromey <tromey@adacore.com>
14558 * ada-typeprint.c (print_choices): Fix comment.
14560 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14562 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14563 previous item in the list, when the list has no items.
14565 2020-03-11 Tom de Vries <tdevries@suse.de>
14567 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14568 PROP_LOCLIST handling code.
14570 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14572 * buildsym-legacy.c (record_line): Pass extra parameter to
14574 * buildsym.c (buildsym_compunit::record_line): Take an extra
14575 parameter, reduce duplication in the line table, and record the
14576 is_stmt flag in the line table.
14577 * buildsym.h (buildsym_compunit::record_line): Add extra
14579 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14580 non-statement lines.
14581 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14582 this to the symtab builder.
14583 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14584 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14585 through to dwarf_record_line_1.
14586 * infrun.c (process_event_stop_test): When stepping, don't stop at
14587 a non-statement instruction, and only refresh the step info when
14588 we land in the middle of a line's range. Also add an extra
14590 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14592 * record-btrace.c (btrace_find_line_range): Only record lines
14593 marked as is-statement.
14594 * stack.c (frame_show_address): Show the frame address if we are
14595 in a non-statement sal.
14596 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14597 (maintenance_print_one_line_table): Print a header for the is_stmt
14598 column, and include is_stmt information in the output.
14599 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14600 preference to non-statements.
14601 (find_pcs_for_symtab_line): Prefer is-statement entries.
14602 (find_line_common): Likewise.
14603 * symtab.h (struct linetable_entry): Add is_stmt field.
14604 (struct symtab_and_line): Likewise.
14605 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14606 arranging the line table.
14608 2020-03-07 Tom de Vries <tdevries@suse.de>
14610 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14613 2020-03-07 Tom Tromey <tom@tromey.com>
14615 * valops.c (value_literal_complex): Remove obsolete comment.
14616 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14619 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14621 * infrun.h: Forward-declare thread_info.
14622 (set_step_info): Add thread_info parameter, add doc.
14623 * infrun.c (set_step_info): Add thread_info parameter, move doc
14625 * infrun.c (process_event_stop_test): Pass thread to
14626 set_step_info call.
14627 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14629 (prepare_one_step): Add thread_info parameter, pass it to
14630 set_step_frame and prepare_one_step (recursive) call.
14631 (step_1): Pass thread to prepare_one_step call.
14632 (step_command_fsm::should_stop): Pass thread to
14634 (until_next_fsm): Pass thread to set_step_frame call.
14635 (finish_command): Pass thread to set_step_info call.
14637 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14639 * windows-tdep.c (windows_solib_create_inferior_hook):
14640 Check if inferior is running.
14642 2020-03-06 Tom de Vries <tdevries@suse.de>
14644 * NEWS: Fix "the the".
14647 2020-03-06 Tom de Vries <tdevries@suse.de>
14649 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14651 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14653 * .dir-locals.el: Add a comment referencing the other copies of
14656 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14658 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14661 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14663 * .gitattributes: New file.
14665 2020-03-04 Tom Tromey <tom@tromey.com>
14667 * symmisc.c (print_symbol_bcache_statistics)
14668 (print_objfile_statistics): Update.
14669 * symfile.c (allocate_symtab): Use intern.
14670 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14671 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14672 macro_cache>: Remove.
14673 <string_cache>: New member.
14674 (struct objfile) <intern>: New methods.
14675 * elfread.c (elf_symtab_read): Use intern.
14676 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14677 (dwarf2_compute_name, dwarf2_physname)
14678 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14680 (guess_partial_die_structure_name): Update.
14681 (partial_die_info::fixup): Intern name.
14682 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14684 (dwarf2_name): Intern name. Update.
14685 * buildsym.c (buildsym_compunit::get_macro_table): Use
14688 2020-03-04 Tom Tromey <tom@tromey.com>
14690 * jit.c (bfd_open_from_target_memory): Make "target" const.
14691 * corefile.c (gnutarget): Now const.
14692 * gdbcore.h (gnutarget): Now const.
14694 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14696 * NEWS: Mention support for WOW64 processes.
14697 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14698 (amd64_windows_segment_register_p): Remove static.
14699 (_initialize_amd64_windows_nat): Update.
14700 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14701 * i386-windows-nat.c (context_offset): Update.
14702 (i386_mappings): Rename and remove static.
14703 (i386_windows_segment_register_p): Remove static.
14704 (_initialize_i386_windows_nat): Update.
14705 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14706 (STATUS_WX86_SINGLE_STEP): New macro.
14707 (EnumProcessModulesEx): New macro.
14708 (Wow64SuspendThread): New macro.
14709 (Wow64GetThreadContext): New macro.
14710 (Wow64SetThreadContext): New macro.
14711 (Wow64GetThreadSelectorEntry): New macro.
14712 (windows_set_context_register_offsets): Add static.
14713 (windows_set_segment_register_p): Likewise.
14714 (windows_add_thread): Adapt for WOW64 processes.
14715 (windows_fetch_one_register): Likewise.
14716 (windows_nat_target::fetch_registers): Likewise.
14717 (windows_store_one_register): Likewise.
14718 (display_selector): Likewise.
14719 (display_selectors): Likewise.
14720 (handle_exception): Likewise.
14721 (windows_continue): Likewise.
14722 (windows_nat_target::resume): Likewise.
14723 (windows_add_all_dlls): Likewise.
14724 (do_initial_windows_stuff): Likewise.
14725 (windows_nat_target::attach): Likewise.
14726 (windows_get_exec_module_filename): Likewise.
14727 (windows_nat_target::create_inferior): Likewise.
14728 (windows_xfer_siginfo): Likewise.
14729 (_initialize_loadable): Initialize Wow64SuspendThread,
14730 Wow64GetThreadContext, Wow64SetThreadContext,
14731 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14732 * windows-nat.h (windows_set_context_register_offsets):
14733 Remove declaration.
14734 (windows_set_segment_register_p): Likewise.
14735 (i386_windows_segment_register_p): Add declaration.
14736 (amd64_windows_segment_register_p): Likewise.
14738 2020-03-04 Luis Machado <luis.machado@linaro.org>
14740 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14741 in "info registers" for AArch64/ARM.
14743 The change caused "info registers" to not print GPR's.
14747 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14749 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14750 when reg->group is empty and reggroup is not.
14752 2020-03-03 Tom Tromey <tromey@adacore.com>
14754 * dwarf2/frame.c (struct dwarf2_frame_cache)
14755 <checked_tailcall_bottom, entry_cfa_sp_offset,
14756 entry_cfa_sp_offset_p>: Remove members.
14757 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14758 (dwarf2_frame_prev_register): Don't call
14759 dwarf2_tailcall_sniffer_first.
14760 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14761 * frame-unwind.c (add_unwinder): New fuction.
14762 (frame_unwind_init): Use it. Add tailcall unwinder.
14764 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14765 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14767 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14768 value should be printed as true.
14770 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14772 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14773 (windows_init_abi): Set and use windows_so_ops.
14775 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14777 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14778 when verifying if dealing with a convenience variable.
14780 2020-03-03 Luis Machado <luis.machado@linaro.org>
14782 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14784 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14786 * infrun.c (gdbarch_supports_displaced_stepping): New.
14787 (use_displaced_stepping): Break up conditions in smaller pieces.
14788 Use gdbarch_supports_displaced_stepping.
14789 (displaced_step_prepare_throw): Use
14790 gdbarch_supports_displaced_stepping.
14792 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14794 * NEWS: Mention new behaviour of the history filename.
14795 * top.c (write_history_p): Add comment.
14796 (show_write_history_p): Add header comment, give a different
14797 message when history writing is on, but the history filename is
14799 (history_filename): Add comment.
14800 (history_filename_empty): New function.
14801 (show_history_filename): Add header comment, give a different
14802 message when the filename is empty.
14803 (init_history): Compare history_filename against nullptr, and only
14804 read history if the filename is not empty.
14805 (set_history_filename): Add header comment, and only make
14806 non-empty filenames absolute.
14807 (init_main): Make the filename argument to 'set history filename'
14810 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14812 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14813 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14814 (fetch_fp_register): Update.
14815 (fetch_fp_regs): Update.
14816 (store_fp_register): Update.
14817 (store_fp_regs): Update.
14818 (arm_netbsd_nat_target::read_description): New function.
14819 (fetch_elfcore_registers): Update.
14821 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14823 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14824 general_thread if the stop reply is missing a thread-id.
14825 (remote_target::process_stop_reply): Use the first non-exited
14826 thread if the target didn't pass a thread-id.
14827 * infrun.c (do_target_wait): Move call to
14828 switch_to_inferior_no_thread to ....
14829 (do_target_wait_1): ... here.
14831 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14833 * debuginfod-support.c: Include defs.h first.
14835 2020-02-28 Tom de Vries <tdevries@suse.de>
14837 * symfile.c (set_initial_language): Use default language for lookup.
14839 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14841 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14842 reader variable, pass `this` to read_cutu_die_from_dwo.
14844 2020-02-27 Aaron Merey <amerey@redhat.com>
14846 * source.c (open_source_file): Check for nullptr when computing
14849 2020-02-27 Tom Tromey <tromey@adacore.com>
14851 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14853 (dwarf2_add_field): Don't update nfields.
14854 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14856 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14858 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14861 2020-02-26 Tom Tromey <tom@tromey.com>
14863 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14864 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14865 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14866 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14869 2020-02-26 Tom Tromey <tom@tromey.com>
14871 * dwarf2/index-write.c (psym_index_map): Change type.
14872 (add_address_entry_worker, write_one_signatured_type)
14873 (recursively_count_psymbols, recursively_write_psymbols)
14874 (class debug_names, psyms_seen_size, write_gdbindex)
14875 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14877 2020-02-26 Aaron Merey <amerey@redhat.com>
14879 * Makefile.in: Handle optional debuginfod support.
14881 * README: Add --with-debuginfod summary.
14882 * config.in: Regenerate.
14883 * configure: Regenerate.
14884 * configure.ac: Handle optional debuginfod support.
14885 * debuginfod-support.c: debuginfod helper functions.
14886 * debuginfod-support.h: Ditto.
14887 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14889 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14890 when a dwz file cannot be found.
14891 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14892 debuginfo file cannot be found.
14893 * source.c (open_source_file): Query debuginfod servers when a
14894 source file cannot be found.
14895 * top.c (print_gdb_configuration): Include
14896 --{with,without}-debuginfod in the output.
14898 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14900 * thread.c (thr_try_catch_cmd): Print thread name.
14902 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14904 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14905 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14906 dwarf2_fetch_die_type_sect_off): Move to...
14907 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14908 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14909 dwarf2_fetch_die_type_sect_off): ... here.
14910 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14911 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14912 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14914 2020-02-26 Tom de Vries <tdevries@suse.de>
14917 * symfile.c (set_initial_language): Exit-early if
14918 language_mode == language_mode_manual.
14920 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14922 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14923 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14924 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14926 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14928 * gdbtypes.c (create_array_type_with_stride): Handle negative
14930 * valarith.c (value_subscripted_rvalue): Likewise.
14932 2020-02-25 Luis Machado <luis.machado@linaro.org>
14934 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14936 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14938 * loc.h (dwarf2_get_die_type): Move to...
14939 * read.h (dwarf2_get_die_type): ... here.
14940 * read.c (dwarf2_get_die_type): Move doc to header.
14942 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14944 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14945 'gnulib/Makefile.in' to the list.
14947 2020-02-24 Tom Tromey <tom@tromey.com>
14949 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14951 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14954 2020-02-24 Tom Tromey <tom@tromey.com>
14956 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14958 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14959 (dw2_do_instantiate_symtab, dw2_get_file_names)
14960 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14962 2020-02-24 Tom Tromey <tom@tromey.com>
14964 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14965 make_scoped_restore.
14966 (dwarf2_psymtab::read_symtab): Don't clear
14967 reading_partial_symbols.
14969 2020-02-24 Tom de Vries <tdevries@suse.de>
14972 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14974 2020-02-24 Tom de Vries <tdevries@suse.de>
14976 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14977 commands layout next/prev/regs.
14979 2020-02-22 Tom Tromey <tom@tromey.com>
14981 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14982 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14984 2020-02-22 Tom Tromey <tom@tromey.com>
14986 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14988 2020-02-22 Tom Tromey <tom@tromey.com>
14990 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14991 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14992 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14993 * tui/tui.c (_initialize_tui): Add usage text.
14995 2020-02-22 Tom Tromey <tom@tromey.com>
14997 * tui/tui-win.c (tui_set_focus_command)
14998 (tui_set_win_height_command): Use error_no_arg.
14999 (_initialize_tui_win): Update help text.
15000 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15002 2020-02-22 Tom Tromey <tom@tromey.com>
15004 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15005 * tui/tui-disasm.h (struct tui_disasm_window)
15006 <display_start_addr>: Declare.
15007 * tui/tui-source.h (struct tui_source_window)
15008 <display_start_addr>: Declare.
15009 * tui/tui-winsource.h (struct tui_source_window_base)
15010 <show_source_line, display_start_addr>: New methods.
15011 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15012 Rename and move to protected section.
15013 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15014 (tui_source_window_base::do_erase_source_content): Update.
15015 (tui_source_window_base::show_source_line): Now a method.
15016 (tui_source_window_base::show_source_content)
15017 (tui_source_window_base::tui_source_window_base)
15018 (tui_source_window_base::rerender)
15019 (tui_source_window_base::refill)
15020 (tui_source_window_base::do_scroll_horizontal)
15021 (tui_source_window_base::set_is_exec_point_at)
15022 (tui_source_window_base::update_breakpoint_info)
15023 (tui_source_window_base::update_exec_info): Update.
15024 * tui/tui-source.c (tui_source_window::set_contents)
15025 (tui_source_window::showing_source_p)
15026 (tui_source_window::do_scroll_vertical)
15027 (tui_source_window::location_matches_p)
15028 (tui_source_window::line_is_displayed): Update.
15029 (tui_source_window::display_start_addr): New method.
15030 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15031 (tui_disasm_window::do_scroll_vertical)
15032 (tui_disasm_window::location_matches_p): Update.
15033 (tui_disasm_window::display_start_addr): New method.
15035 2020-02-22 Tom Tromey <tom@tromey.com>
15037 * NEWS: Add entry for gdb.register_window_type.
15038 * tui/tui-layout.h (window_factory): New typedef.
15039 (tui_register_window): Declare.
15040 * tui/tui-layout.c (saved_tui_windows): New global.
15041 (tui_apply_current_layout): Use it.
15042 (tui_register_window): New function.
15043 * python/python.c (do_start_initialization): Call
15044 gdbpy_initialize_tui.
15045 (python_GdbMethods): Add "register_window_type" function.
15046 * python/python-internal.h (gdbpy_register_tui_window)
15047 (gdbpy_initialize_tui): Declare.
15048 * python/py-tui.c: New file.
15049 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15051 2020-02-22 Tom Tromey <tom@tromey.com>
15053 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15055 2020-02-22 Tom Tromey <tom@tromey.com>
15057 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15058 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15059 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15060 (tui_set_win_focus_to): Move from tui-win.c.
15062 2020-02-22 Tom Tromey <tom@tromey.com>
15064 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15066 (known_window_types): New global.
15067 (tui_get_window_by_name): Reimplement.
15068 (initialize_known_windows): New function.
15069 (validate_window_name): Rewrite.
15070 (_initialize_tui_layout): Call initialize_known_windows.
15072 2020-02-22 Tom Tromey <tom@tromey.com>
15074 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15076 * tui/tui-winsource.h (struct tui_source_window_base)
15077 <tui_source_window_base>: Remove parameter.
15078 * tui/tui-winsource.c
15079 (tui_source_window_base::tui_source_window_base): Remove
15081 (tui_source_window_base::refill): Update.
15082 * tui/tui-stack.h (struct tui_locator_window)
15083 <tui_locator_window>: Update.
15084 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15085 Default the constructor.
15086 * tui/tui-regs.h (struct tui_data_item_window)
15087 <tui_data_item_window>: Default the constructor.
15088 (struct tui_data_window) <tui_data_window>: Likewise.
15089 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15090 Default the constructor.
15091 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15092 Default the constructor.
15094 (struct tui_win_info) <tui_win_info>: Default the constructor.
15095 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15096 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15097 Default the constructor.
15099 2020-02-22 Tom Tromey <tom@tromey.com>
15101 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15102 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15103 * tui/tui-win.c (tui_resize_all): Don't call
15104 tui_delete_invisible_windows.
15105 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15107 (tui_set_layout): Update.
15108 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15109 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15110 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15112 2020-02-22 Tom Tromey <tom@tromey.com>
15114 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15117 2020-02-22 Tom Tromey <tom@tromey.com>
15119 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15121 2020-02-22 Tom Tromey <tom@tromey.com>
15123 * tui/tui-winsource.h (struct tui_source_window_iterator)
15124 <inner_iterator>: New etytypedef.
15125 <tui_source_window_iterator>: Take "end" parameter.
15126 <tui_source_window_iterator>: Take iterator.
15127 <operator*, advance>: Update.
15128 <m_iter>: Change type.
15129 <m_end>: New field.
15130 (struct tui_source_windows) <begin, end>: Update.
15131 * tui/tui-layout.c (tui_windows): New global.
15132 (tui_apply_current_layout): Clear tui_windows.
15133 (tui_layout_window::apply): Update tui_windows.
15134 * tui/tui-data.h (tui_windows): Declare.
15135 (all_tui_windows): Now inline function.
15136 (class tui_window_iterator, struct all_tui_windows): Remove.
15138 2020-02-22 Tom Tromey <tom@tromey.com>
15141 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15142 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15144 (class tui_layout_window) <get_sizes>: Likewise.
15145 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15147 <get_sizes>: Add "height" argument.
15148 <m_vertical>: New field.
15149 * tui/tui-layout.c (tui_layout_split::clone): Update.
15150 (tui_layout_split::get_sizes): Add "height" argument.
15151 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15152 (tui_new_layout_command): Parse "-horizontal".
15153 (_initialize_tui_layout): Update help string.
15154 (tui_layout_split::specification): Add "-horizontal" when needed.
15155 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15157 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15160 2020-02-22 Tom Tromey <tom@tromey.com>
15162 * tui/tui-layout.h (enum tui_adjust_result): New.
15163 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15164 (class tui_layout_window) <adjust_size>: Return
15165 tui_adjust_result. Rewrite.
15166 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15167 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15169 2020-02-22 Tom Tromey <tom@tromey.com>
15171 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15172 parameter and return types.
15173 (class tui_layout_base) <specification>: Add "depth".
15174 (class tui_layout_window) <specification>: Add "depth".
15175 (class tui_layout_split) <specification>: Add "depth".
15176 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15178 (tui_new_layout_command): Parse sub-layouts.
15179 (_initialize_tui_layout): Update help string.
15180 (tui_layout_window::specification): Add "depth".
15181 (add_layout_command): Update.
15183 2020-02-22 Tom Tromey <tom@tromey.com>
15185 * NEWS: Add "tui new-layout" item.
15186 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15187 Add new-layout command to help text.
15188 (validate_window_name): New function.
15189 (tui_new_layout_command): New function.
15190 (_initialize_tui_layout): Register "new-layout".
15191 (tui_layout_window::specification): New method.
15192 (tui_layout_window::specification): New method.
15193 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15195 (class tui_layout_window) <specification>: New method.
15196 (class tui_layout_split) <specification>: New method.
15198 2020-02-22 Tom Tromey <tom@tromey.com>
15200 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15201 * tui/tui-win.c (window_name_completer): Update comment.
15202 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15204 (class tui_layout_window) <replace_window>: Likewise.
15205 (class tui_layout_split) <replace_window>: Likewise.
15206 (tui_set_layout): Don't declare.
15207 (tui_set_initial_layout): Declare function.
15208 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15209 (asm_regs_layout): New globals.
15210 (tui_current_layout, show_layout): Remove.
15211 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15212 (find_layout, tui_apply_layout): New function.
15213 (layout_completer): Remove.
15214 (tui_next_layout): Reimplement.
15215 (tui_next_layout_command): New function.
15216 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15217 (tui_regs_layout): Reimplement.
15218 (tui_regs_layout_command): New function.
15219 (extract_display_start_addr): Rewrite.
15220 (next_layout, prev_layout): Remove.
15221 (tui_layout_window::replace_window): New method.
15222 (tui_layout_split::replace_window): New method.
15223 (destroy_layout): New function.
15224 (layout_list): New global.
15225 (add_layout_command): New function.
15226 (initialize_layouts): Update.
15227 (tui_layout_command): New function.
15228 (_initialize_tui_layout): Install "layout" commands.
15229 * tui/tui-data.h (enum tui_layout_type): Remove.
15230 (tui_current_layout): Don't declare.
15232 2020-02-22 Tom Tromey <tom@tromey.com>
15234 * tui/tui-regs.c (tui_reg_layout): Remove.
15235 (tui_reg_command): Use tui_regs_layout.
15236 * tui/tui-layout.h (tui_reg_command): Declare.
15237 * tui/tui-layout.c (tui_reg_command): New function.
15239 2020-02-22 Tom Tromey <tom@tromey.com>
15241 * tui/tui.c (tui_rl_delete_other_windows): Call
15242 tui_remove_some_windows.
15243 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15245 (class tui_layout_window) <remove_windows>: New method.
15246 (class tui_layout_split) <remove_windows>: Declare.
15247 (tui_remove_some_windows): Declare.
15248 * tui/tui-layout.c (tui_remove_some_windows): New function.
15249 (tui_layout_split::remove_windows): New method.
15251 2020-02-22 Tom Tromey <tom@tromey.com>
15253 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15254 * tui/tui-layout.h (tui_next_layout): Declare.
15255 * tui/tui-layout.c (tui_next_layout): New function.
15257 2020-02-22 Tom Tromey <tom@tromey.com>
15259 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15260 correct coordinates.
15262 2020-02-22 Tom Tromey <tom@tromey.com>
15264 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15265 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15268 2020-02-22 Tom Tromey <tom@tromey.com>
15270 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15271 TUI_DISASM_WIN, not tui_win_list.
15273 2020-02-22 Tom Tromey <tom@tromey.com>
15275 * valprint.c (generic_val_print_enum_1)
15276 (val_print_type_code_flags): Style member names.
15277 * rust-lang.c (val_print_struct, rust_print_enum)
15278 (rust_print_struct_def, rust_internal_print_type): Style member
15280 * p-valprint.c (pascal_object_print_value_fields): Style member
15281 names. Only call fprintf_symbol_filtered for static members.
15282 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15283 * f-valprint.c (f_val_print): Style member names.
15284 * f-typeprint.c (f_type_print_base): Style member names.
15285 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15286 call fprintf_symbol_filtered for static members.
15287 (cp_print_class_member): Style member names.
15288 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15290 * ada-valprint.c (ada_print_scalar): Style enum names.
15291 (ada_val_print_enum): Likewise.
15292 * ada-typeprint.c (print_enum_type): Style enum names.
15294 2020-02-21 Tom Tromey <tom@tromey.com>
15296 * psympriv.h (struct partial_symtab): Update comment.
15298 2020-02-21 Tom Tromey <tromey@adacore.com>
15300 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15303 2020-02-21 Tom de Vries <tdevries@suse.de>
15306 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15307 if dependencies[i]->user != NULL.
15309 2020-02-21 Ali Tamur <tamur@google.com>
15311 * dwarf2/read.c (dwarf2_name): Add null check.
15313 2020-02-20 Tom Tromey <tom@tromey.com>
15315 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15316 ">=", in binary search.
15317 (dwarf2_find_containing_comp_unit): New overload.
15318 (run_test): New self-test.
15319 (_initialize_dwarf2_read): Register new test.
15321 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15323 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15324 * riscv-tdep.h: Likewise.
15325 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15327 * features/riscv/64bit-csr.xml: Regenerated.
15329 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15330 Tom Tromey <tom@tromey.com>
15332 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15333 of 'fputc_unfiltered'.
15334 (putchar_unfiltered): Call 'fputc_unfiltered'.
15335 (fputc_unfiltered): Call 'fputs_unfiltered'.
15337 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15339 * config.in: Regenerate.
15340 * configure: Regenerate.
15341 * configure.ac: Add --with-python-libdir option.
15342 * main.c: Use WITH_PYTHON_LIBDIR.
15344 2020-02-19 Tom Tromey <tom@tromey.com>
15346 * symtab.c (general_symbol_info::compute_and_set_names): Use
15347 obstack_strndup. Simplify call to symbol_set_demangled_name.
15349 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15351 * dwarf2/read.c (allocate_signatured_type_table,
15352 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15353 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15354 Remove objfile parameter, update all callers.
15356 2020-02-19 Doug Evans <dje@google.com>
15359 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15360 rust_enum_variant calculation.
15362 2020-02-19 Tom Tromey <tromey@adacore.com>
15364 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15366 2020-02-19 Tom Tromey <tromey@adacore.com>
15368 * ada-lang.c (cache_symbol): Use obstack_strdup.
15370 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15372 * configure: Regenerate.
15374 2020-02-19 Tom Tromey <tromey@adacore.com>
15376 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15379 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15381 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15383 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15385 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15386 if GDBSERVER is not defined.
15387 (riscv_tdesc_cache): Likewise, also store const target_desc.
15388 (STATIC_IN_GDB): Define.
15389 (riscv_create_target_description): Update declaration with
15391 (riscv_lookup_target_description): New function, only define if
15392 GDBSERVER is not defined.
15393 * arch/riscv.h (riscv_create_target_description): Declare only
15394 when GDBSERVER is defined.
15395 (riscv_lookup_target_description): New declaration when GDBSERVER
15397 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15398 (riscv_linux_read_features): ...this, and return
15399 riscv_gdbarch_features instead of target_desc.
15400 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15401 (riscv_linux_read_description): Rename to...
15402 (riscv_linux_read_features): ...this.
15403 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15404 Update to use riscv_gdbarch_features and
15405 riscv_lookup_target_description.
15406 * riscv-tdep.c (riscv_find_default_target_description): Use
15407 riscv_lookup_target_description instead of
15408 riscv_create_target_description.
15410 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15412 * valprint.c (generic_val_print_enum_1): When printing a flag
15413 enum with value 0 and there is no enumerator with value 0, print
15414 just "0" instead of "(unknown: 0x0)".
15416 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15418 * valprint.c (generic_val_print_enum_1): Print unknown part of
15421 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15423 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15424 flag enums to contain duplicate enumerators.
15425 * valprint.c (generic_val_print_enum_1): Update comment.
15427 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15429 * dwarf2/read.c: Include "count-one-bits.h".
15430 (update_enumeration_type_from_children): If an enumerator has
15431 multiple bits set, don't treat the enumeration as a "flag enum".
15432 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15433 of flag enums have 0 or 1 bit set.
15435 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15437 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15439 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15440 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15441 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15442 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15443 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15445 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15447 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15449 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15451 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15452 displaced_step_closure_up.
15453 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15454 (struct displaced_step_closure_up):
15455 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15456 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15457 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15459 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15460 * gdbarch.c, gdbarch.h: Re-generate.
15461 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15462 displaced_step_closure_up.
15463 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15464 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15465 * infrun.h (displaced_step_closure_up): New type alias.
15466 (struct displaced_step_inferior_state) <step_closure>: Change
15467 type to displaced_step_closure_up.
15468 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15469 displaced_step_closure_up.
15470 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15472 2020-02-14 Tom Tromey <tom@tromey.com>
15474 * minidebug.c (gnu_debug_key): New global.
15475 (find_separate_debug_file_in_section): Use it.
15477 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15479 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15481 * gdbarch.c: Re-generate.
15482 * gdbarch.h: Re-generate.
15483 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15485 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15486 type to std::unique_ptr.
15487 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15488 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15489 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15490 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15491 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15492 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15493 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15494 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15495 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15497 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15499 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15501 (displaced_step_clear): Rename to...
15502 (displaced_step_reset): ... this. Just call displaced->reset ().
15503 (displaced_step_clear_cleanup): Rename to...
15504 (displaced_step_reset_cleanup): ... this.
15505 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15506 (displaced_step_fixup): Likewise.
15507 (resume_1): Likewise.
15508 (handle_inferior_event): Restore child's memory before calling
15509 displaced_step_fixup on the parent.
15510 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15511 to std::unique_ptr.
15512 <step_closure>: Change type to std::unique_ptr.
15514 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15516 * arm-tdep.c: Include count-one-bits.h.
15517 (cleanup_block_store_pc): Use count_one_bits.
15518 (cleanup_block_load_pc): Use count_one_bits.
15519 (arm_copy_block_xfer): Use count_one_bits.
15520 (thumb2_copy_block_xfer): Use count_one_bits.
15521 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15522 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15523 (thumb_get_next_pcs_raw): Use count_one_bits.
15524 (arm_get_next_pcs_raw): Use count_one_bits_l.
15525 * arch/arm.c (bitcount): Remove.
15526 * arch/arm.h (bitcount): Remove.
15528 2020-02-14 Tom Tromey <tromey@adacore.com>
15530 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15532 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15533 * dwarf2/loc.c (call_site_find_chain_1): Return
15534 unique_xmalloc_ptr.
15535 (call_site_find_chain): Likewise.
15537 2020-02-14 Richard Biener <rguenther@suse.de>
15539 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15540 on expression with division operators.
15542 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15544 * MAINTAINERS (Write After Approval): Adding myself.
15546 2020-02-12 Tom Tromey <tom@tromey.com>
15548 * event-loop.c (event_data, gdb_event, event_handler_func):
15551 2020-02-12 Tom Tromey <tom@tromey.com>
15553 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15554 (dwarf2_frame_objfile_data): Add comment.
15555 (find_comp_unit, set_comp_unit): New functions.
15556 (dwarf2_frame_find_fde): Use find_comp_unit.
15557 (dwarf2_build_frame_info): Use set_comp_unit.
15559 2020-02-12 Tom Tromey <tom@tromey.com>
15561 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15562 (comp_unit): Don't initialize objfile.
15563 (execute_cfa_program): Add text_offset parameter.
15564 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15565 (dwarf2_frame_cache): Update.
15566 (dwarf2_build_frame_info): Don't set "objfile" member.
15568 2020-02-12 Tom Tromey <tom@tromey.com>
15570 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15571 (decode_frame_entry): Likewise.
15572 (dwarf2_build_frame_info): Update.
15574 2020-02-12 Tom Tromey <tom@tromey.com>
15576 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15577 (decode_frame_entry_1): Use the comp_unit obstack.
15579 2020-02-12 Tom Tromey <tom@tromey.com>
15581 * dwarf2/frame.c (struct comp_unit): Add initializers and
15583 (dwarf2_frame_objfile_data): Store a comp_unit.
15584 (dwarf2_frame_find_fde): Update.
15585 (dwarf2_build_frame_info): Use "new".
15587 2020-02-12 Tom Tromey <tom@tromey.com>
15589 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15590 (dwarf2_fde_table): Typedef for std::vector.
15591 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15592 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15593 (decode_frame_entry): Update.
15594 (dwarf2_build_frame_info): Use "new".
15596 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15598 * arm-tdep.c (arm_gdbarch_init): Update.
15599 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15600 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15601 have_neon, is_m>: Change to bool.
15603 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15605 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15607 2020-02-12 Tom Tromey <tom@tromey.com>
15609 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15611 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15613 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15614 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15616 2020-02-11 Tom Tromey <tom@tromey.com>
15618 * psymtab.h: Update comment.
15620 2020-02-11 Tom Tromey <tom@tromey.com>
15622 * gdb_obstack.h (struct auto_obstack): Use
15623 DISABLE_COPY_AND_ASSIGN.
15625 2020-02-11 Tom Tromey <tom@tromey.com>
15627 * dwarf2/frame.h (struct objfile): Don't forward declare.
15629 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15631 * cris-tdep.c (cris_supply_gregset): Change signature to match
15632 what struct regset expects.
15633 (cris_regset): New struct.
15634 (fetch_core_registers): Remove.
15635 (cris_iterate_over_regset_sections): New function.
15636 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15637 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15639 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15641 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15644 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15646 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
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 * configure: Re-generate.
15656 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15658 * acinclude: Update warning.m4 path.
15659 * warning.m4: Move to gdbsupport.
15661 2020-02-11 Tom Tromey <tromey@adacore.com>
15663 * remote.c (remote_console_output): Update.
15664 * printcmd.c (printf_command): Update.
15665 * event-loop.c (gdb_wait_for_event): Update.
15666 * linux-nat.c (sigchld_handler): Update.
15667 * remote-sim.c (gdb_os_write_stdout): Update.
15668 (gdb_os_flush_stdout): Update.
15669 (gdb_os_flush_stderr): Update.
15670 (gdb_os_write_stderr): Update.
15671 * exceptions.c (print_exception): Update.
15672 * remote-fileio.c (remote_fileio_func_read): Update.
15673 (remote_fileio_func_write): Update.
15674 * tui/tui.c (tui_enable): Update.
15675 * tui/tui-interp.c (tui_interp::init): Update.
15676 * utils.c (init_page_info): Update.
15677 (putchar_unfiltered, fputc_unfiltered): Update.
15678 (gdb_flush): Update.
15679 (emit_style_escape): Update.
15680 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15681 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15682 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15683 (stderr_file::write): Update.
15684 (stderr_file::puts): Update.
15685 * ui-file.h (ui_file_isatty, ui_file_write)
15686 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15687 (ui_file_puts): Don't declare.
15689 2020-02-10 Tom de Vries <tdevries@suse.de>
15691 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15692 sentinel to char *.
15694 2020-02-09 Tom de Vries <tdevries@suse.de>
15696 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15697 filename if it matches "<artificial>".
15699 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15701 * windows-tdep.c (struct enum_value_name): New struct.
15702 (create_enum): New function.
15703 (windows_get_siginfo_type): Create and use enum types.
15705 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15707 * NEWS: Mention $_siginfo support for Windows.
15708 * windows-nat.c (handle_exception): Set siginfo_er.
15709 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15710 (windows_xfer_siginfo): New function.
15711 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15712 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15713 (init_windows_gdbarch_data): New function.
15714 (get_windows_gdbarch_data): New function.
15715 (windows_get_siginfo_type): New function.
15716 (windows_init_abi): Register windows_get_siginfo_type.
15717 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15719 2020-02-08 Tom Tromey <tom@tromey.com>
15721 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15722 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15723 <keep>: Declare method.
15724 <m_keep>: Remove member.
15725 <~cutu_reader>: Remove.
15726 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15727 (cutu_reader::cutu_reader): Update.
15728 (cutu_reader::keep): Rename from ~cutu_reader.
15729 (process_psymtab_comp_unit, build_type_psymtabs_1)
15730 (process_skeletonless_type_unit, load_partial_comp_unit)
15731 (load_full_comp_unit, dwarf2_read_addr_index)
15732 (read_signatured_type): Update.
15734 2020-02-08 Tom Tromey <tom@tromey.com>
15736 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15737 "want_partial_unit" parameter.
15738 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15739 Inline check for DW_TAG_partial_unit.
15740 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15742 2020-02-08 Tom Tromey <tom@tromey.com>
15744 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15746 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15749 2020-02-08 Tom Tromey <tom@tromey.com>
15751 * dwarf2/read.c (read_address): Move to comp-unit.c.
15752 (dwarf2_rnglists_process, dwarf2_ranges_process)
15753 (read_attribute_value, dwarf_decode_lines_1)
15754 (var_decode_location, decode_locdesc): Update.
15755 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15756 read.c. Remove "cu" parameter.
15757 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15760 2020-02-08 Tom Tromey <tom@tromey.com>
15762 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15763 (read_indirect_line_string): Update.
15764 * dwarf2/comp-unit.c (read_offset): Remove.
15765 (read_comp_unit_head): Update.
15766 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15768 (read_offset): Don't declare.
15770 2020-02-08 Tom Tromey <tom@tromey.com>
15772 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15773 * dwarf2/read.c (struct comp_unit_head): Move to
15774 dwarf2/comp-unit.h.
15775 (enum class rcuh_kind): Move to comp-unit.h.
15776 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15777 (read_comp_unit_head, error_check_comp_unit_head)
15778 (read_and_check_comp_unit_head): Move to comp-unit.c.
15779 (read_offset, dwarf_unit_type_name): Likewise.
15780 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15781 (cutu_reader::cutu_reader, read_call_site_scope)
15782 (find_partial_die, follow_die_offset): Update.
15783 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15785 2020-02-08 Tom Tromey <tom@tromey.com>
15787 * dwarf2/read.c (read_offset_1): Move to leb.c.
15788 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15789 (dwarf_decode_macro_bytes): Update.
15790 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15791 * dwarf2/leb.h (read_offset): Declare.
15793 2020-02-08 Tom Tromey <tom@tromey.com>
15795 * dwarf2/read.c (dwarf2_section_size): Remove.
15796 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15798 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15800 2020-02-08 Tom Tromey <tom@tromey.com>
15802 * dwarf2/read.c (read_initial_length): Move to leb.c.
15803 * dwarf2/leb.h (read_initial_length): Declare.
15804 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15805 handle_nonstd parameter.
15806 * dwarf2/frame.c (read_initial_length): Remove.
15807 (decode_frame_entry_1): Update.
15809 2020-02-08 Tom Tromey <tom@tromey.com>
15811 * dwarf2/loc.c (dwarf2_find_location_expression)
15812 (dwarf_evaluate_loc_desc::get_tls_address)
15813 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15814 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15815 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15816 (dwarf2_compile_property_to_c)
15817 (dwarf2_loc_desc_get_symbol_read_needs)
15818 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15819 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15820 (loclist_describe_location, loclist_tracepoint_var_ref)
15821 (loclist_generate_c_location): Update.
15822 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15823 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15824 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15825 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15826 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15827 (dwarf2_per_cu_data::addr_size)
15828 (dwarf2_per_cu_data::ref_addr_size)
15829 (dwarf2_per_cu_data::text_offset)
15830 (dwarf2_per_cu_data::addr_type): Now methods.
15831 (per_cu_header_read_in): Make per_cu "const".
15832 (dwarf2_version): Remove.
15833 (dwarf2_per_cu_data::int_type): Now a method.
15834 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15835 (set_die_type, read_array_type, read_subrange_index_type)
15836 (read_tag_string_type, read_subrange_type): Update.
15837 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15838 offset_size, ref_addr_size, text_offset, addr_type, version,
15839 objfile, int_type, addr_sized_int_type>: Declare methods.
15841 2020-02-08 Tom Tromey <tom@tromey.com>
15843 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15846 2020-02-08 Tom Tromey <tom@tromey.com>
15848 * dwarf2/read.h (dwarf_line_debug): Declare.
15849 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15850 * dwarf2/read.c: Move line_header code to new files.
15851 (dwarf_line_debug): No longer static.
15852 * dwarf2/line-header.c: New file.
15853 * dwarf2/line-header.h: New file.
15855 2020-02-08 Tom Tromey <tom@tromey.com>
15857 * dwarf2/read.c (struct line_header) <file_full_name,
15858 file_file_name>: Return unique_xmalloc_ptr.
15859 (line_header::file_file_name): Update.
15860 (line_header::file_full_name): Update.
15861 (dw2_get_file_names_reader): Update.
15862 (macro_start_file): Update.
15864 2020-02-08 Tom Tromey <tom@tromey.com>
15866 * dwarf2/read.c (struct line_header) <file_full_name,
15867 file_file_name>: Declare methods.
15868 (dw2_get_file_names_reader): Update.
15869 (file_file_name): Now a method.
15870 (file_full_name): Likewise.
15871 (macro_start_file): Update.
15873 2020-02-08 Tom Tromey <tom@tromey.com>
15875 * dwarf2/read.c (dwarf_always_disassemble)
15876 (show_dwarf_always_disassemble): Move to loc.c.
15877 (_initialize_dwarf2_read): Move "always-disassemble" registration
15879 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15880 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15882 (show_dwarf_always_disassemble): Move from read.c.
15883 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15885 2020-02-08 Tom Tromey <tom@tromey.com>
15887 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15888 (create_quick_file_names_table): Return htab_up.
15889 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15891 * dwarf2/read.h (struct dwarf2_per_objfile)
15892 <quick_file_names_table>: Now htab_up.
15894 2020-02-08 Tom Tromey <tom@tromey.com>
15896 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15898 2020-02-08 Tom Tromey <tom@tromey.com>
15900 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15902 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15903 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15904 (abbrev_table::abbrev_table): No longer inline.
15905 (ABBREV_HASH_SIZE): Remove.
15906 (abbrev_table::m_abbrevs): Now an htab_up.
15908 2020-02-08 Tom Tromey <tom@tromey.com>
15910 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15911 (cutu_reader): Update.
15912 (build_type_psymtabs_1): Update.
15913 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15914 (abbrev_table::alloc_abbrev): Update.
15915 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15916 (abbrev_table::read): New static method, renamed from
15917 abbrev_table_read_table.
15918 (abbrev_table::alloc_abbrev)
15919 (abbrev_table::add_abbrev): Now private.
15920 (abbrev_table::abbrev_table): Now private.
15921 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15923 2020-02-08 Tom Tromey <tom@tromey.com>
15925 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15926 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15929 2020-02-08 Tom Tromey <tom@tromey.com>
15931 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15933 (lookup_dwo_unit_in_dwp): Update.
15934 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15937 2020-02-08 Tom Tromey <tom@tromey.com>
15939 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15942 2020-02-08 Tom Tromey <tom@tromey.com>
15944 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15946 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15947 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15948 Change type to htab_up.
15950 2020-02-08 Tom Tromey <tom@tromey.com>
15952 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15953 htab_up. Don't allocate on obstack.
15954 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15955 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15956 Change type to htab_up.
15958 2020-02-08 Tom Tromey <tom@tromey.com>
15960 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15961 Change type to htab_up.
15962 * dwarf2/read.c (create_signatured_type_table_from_index)
15963 (create_signatured_type_table_from_debug_names)
15964 (create_all_type_units, add_type_unit)
15965 (lookup_dwo_signatured_type, lookup_signatured_type)
15966 (process_skeletonless_type_unit): Update.
15967 (create_debug_type_hash_table, create_debug_types_hash_table):
15968 Change type of types_htab.
15969 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15970 htab_up. Don't allocate on obstack.
15971 (create_cus_hash_table): Change type of cus_htab parameter.
15972 (struct dwo_file) <cus, tus>: Now htab_up.
15973 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15974 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15975 (queue_and_load_all_dwo_tus): Update.
15976 * dwarf2/index-write.c (write_gdbindex): Update.
15977 (write_debug_names): Update.
15979 2020-02-08 Tom Tromey <tom@tromey.com>
15981 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15982 dwarf2/read.c. Remove "next" member. Add constructor ntad
15984 (struct dwarf2_per_objfile) <queue>: New member.
15985 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15987 (dwarf2_queue, dwarf2_queue_tail): Remove.
15988 (class dwarf2_queue_guard): Add parameter to constructor. Use
15989 DISABLE_COPY_AND_ASSIGN.
15990 <m_per_objfile>: New member.
15991 <~dwarf2_queue_guard>: Rewrite.
15992 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15994 (~dwarf2_queue_item): New.
15996 2020-02-08 Tom Tromey <tom@tromey.com>
15998 * dwarf2/read.c (struct die_info) <has_children>: New member.
15999 (dw2_get_file_names_reader): Remove has_children.
16000 (dw2_get_file_names): Update.
16001 (read_cutu_die_from_dwo): Remove has_children.
16002 (cutu_reader::init_tu_and_read_dwo_dies)
16003 (cutu_reader::cutu_reader): Update.
16004 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16005 Remove has_children.
16006 (build_type_psymtabs_1, process_skeletonless_type_unit)
16007 (load_partial_comp_unit, load_full_comp_unit): Update.
16008 (create_dwo_cu_reader): Remove has_children.
16009 (create_cus_hash_table, read_die_and_children): Update.
16010 (read_full_die_1,read_full_die): Remove has_children.
16011 (read_signatured_type): Update.
16012 (class cutu_reader) <has_children>: Remove.
16014 2020-02-08 Tom Tromey <tom@tromey.com>
16016 * dwarf2/expr.c: Rename from dwarf2expr.c.
16017 * dwarf2/expr.h: Rename from dwarf2expr.h.
16018 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16019 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16020 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16021 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16022 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16023 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16024 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16025 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16026 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16027 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16028 * dwarf2/loc.c: Rename from dwarf2loc.c.
16029 * dwarf2/loc.h: Rename from dwarf2loc.h.
16030 * dwarf2/read.c: Rename from dwarf2read.c.
16031 * dwarf2/read.h: Rename from dwarf2read.h.
16032 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16033 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16034 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16035 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16036 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16037 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16038 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16039 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16040 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16041 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16042 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16043 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16044 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16046 * Makefile.in (COMMON_SFILES): Update.
16047 (HFILES_NO_SRCDIR): Update.
16049 2020-02-08 Tom Tromey <tom@tromey.com>
16051 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16052 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16054 2020-02-08 Tom Tromey <tom@tromey.com>
16056 * dwarf2read.h (struct die_info): Don't declare.
16058 2020-02-08 Tom Tromey <tom@tromey.com>
16060 * dwarf2read.h (die_info_ptr): Remove typedef.
16062 2020-02-08 Tom Tromey <tom@tromey.com>
16064 * dwarf2read.c (read_call_site_scope)
16065 (handle_data_member_location, dwarf2_add_member_fn)
16066 (mark_common_block_symbol_computed, read_common_block)
16067 (attr_to_dynamic_prop, partial_die_info::read)
16068 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16069 (dwarf2_symbol_mark_computed, set_die_type): Update.
16070 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16072 (attr_form_is_block): Don't declare.
16073 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16075 2020-02-08 Tom Tromey <tom@tromey.com>
16077 * dwarf2read.c (dwarf2_find_base_address, )
16078 (read_call_site_scope, rust_containing_type)
16079 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16080 (handle_data_member_location, dwarf2_add_member_fn)
16081 (get_alignment, read_structure_type, process_structure_scope)
16082 (mark_common_block_symbol_computed, read_common_block)
16083 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16084 (partial_die_info::read, read_attribute_value, new_symbol)
16085 (lookup_die_type, dwarf2_get_ref_die_offset)
16086 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16087 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16088 (dwarf2_symbol_mark_computed): Update.
16089 * dwarf2/attribute.h (struct attribute) <value_as_address,
16090 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16092 (value_as_address, attr_form_is_section_offset)
16093 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16094 * dwarf2/attribute.c (attribute::value_as_address)
16095 (attribute::form_is_section_offset, attribute::form_is_constant)
16096 (attribute::form_is_ref): Now methods.
16098 2020-02-08 Tom Tromey <tom@tromey.com>
16100 * dwarf2read.c (struct attribute, DW_STRING)
16101 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16102 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16103 (attr_form_is_block, attr_form_is_section_offset)
16104 (attr_form_is_constant, attr_form_is_ref): Move.
16105 * dwarf2/attribute.h: New file.
16106 * dwarf2/attribute.c: New file, from dwarf2read.c.
16107 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16109 2020-02-08 Tom Tromey <tom@tromey.com>
16111 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16112 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16114 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16115 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16116 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16118 * dwarf2/abbrev.h: New file.
16119 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16120 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16122 2020-02-08 Tom Tromey <tom@tromey.com>
16124 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16125 (dwarf2_section_size, dwarf2_get_section_info)
16126 (create_signatured_type_table_from_debug_names)
16127 (create_addrmap_from_aranges, read_debug_names_from_section)
16128 (get_gdb_index_contents_from_section, read_comp_unit_head)
16129 (error_check_comp_unit_head, read_abbrev_offset)
16130 (create_debug_type_hash_table, init_cu_die_reader)
16131 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16132 (read_comp_units_from_section, create_cus_hash_table)
16133 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16134 (create_dwp_v2_section, dwarf2_rnglists_process)
16135 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16136 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16137 (read_indirect_string_from_dwz, read_addr_index_1)
16138 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16139 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16140 (fill_in_loclist_baton): Update.
16141 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16142 get_containing_section, get_bfd_owner, get_bfd_section,
16143 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16144 (dwarf2_read_section, get_section_name, get_section_file_name)
16145 (get_containing_section, get_section_bfd_owner)
16146 (get_section_bfd_section, get_section_name, get_section_file_name)
16147 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16149 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16150 (dwarf2_section_info::get_bfd_owner)
16151 (dwarf2_section_info::get_bfd_section)
16152 (dwarf2_section_info::get_name)
16153 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16154 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16155 (dwarf2_section_info::read): Now methods.
16156 * dwarf-index-write.c (class debug_names): Update.
16158 2020-02-08 Tom Tromey <tom@tromey.com>
16160 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16161 Move to dwarf2/section.h.
16162 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16163 (get_section_bfd_section, get_section_name)
16164 (get_section_file_name, get_section_id, get_section_flags)
16165 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16167 * dwarf2/section.h: New file.
16168 * dwarf2/section.c: New file, from dwarf2read.c.
16169 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16171 2020-02-08 Tom Tromey <tom@tromey.com>
16173 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16174 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16175 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16176 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16177 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16178 * dwarf2/leb.h: New file, from dwarf2read.c.
16179 * dwarf2/leb.c: New file, from dwarf2read.c.
16180 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16182 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16183 (COMMON_SFILES): Add dwarf2/leb.c.
16185 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16189 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16192 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16193 * gdb/remote.c (remote_console_output): Update.
16194 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16195 (ui_file_puts): ...this.
16196 * gdb/ui-file.h (ui_file_puts): Add declaration.
16197 * gdb/utils.c (emit_style_escape): Update.
16198 (flush_wrap_buffer): Update.
16199 (fputs_maybe_filtered): Update.
16200 (fputs_unfiltered): Add function.
16202 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16204 * gdb/event-loop.c (gdb_wait_for_event): Update.
16205 * gdb/printcmd.c (printf_command): Update.
16206 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16207 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16208 (gdb_os_flush_stderr): Update.
16209 * gdb/remote.c (remote_console_output): Update.
16210 * gdb/ui-file.c (gdb_flush): Rename to...
16211 (ui_file_flush): ...this.
16212 (stderr_file::write): Update.
16213 (stderr_file::puts): Update.
16214 * gdb/ui-file.h (gdb_flush): Rename to...
16215 (ui_file_flush): ...this.
16216 * gdb/utils.c (gdb_flush): Add function.
16217 * gdb/utils.h (gdb_flush): Add declaration.
16219 2020-02-07 Tom Tromey <tromey@adacore.com>
16221 PR breakpoints/24915:
16222 * source.c (find_and_open_source): Do not check basenames_may_differ.
16224 2020-02-07 Tom Tromey <tom@tromey.com>
16226 * README: Update gdbserver documentation.
16227 * gdbserver: Move to top level.
16228 * configure.tgt (build_gdbserver): Remove.
16229 * configure.ac: Remove --enable-gdbserver.
16230 * configure: Rebuild.
16231 * Makefile.in (distclean): Don't mention gdbserver.
16233 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16235 * source-cache.c (source_cache::ensure): Surround
16236 get_plain_source_lines with a try/catch.
16237 (source_cache::get_line_charpos): Get rid of try/catch
16238 and only check for the return value of "ensure".
16239 * tui/tui-source.c (tui_source_window::set_contents):
16240 Simplify "nlines" calculation.
16242 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16244 * MAINTAINERS (Write After Approval): Add myself.
16246 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16248 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16251 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16253 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16255 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16257 * nat/riscv-linux-tdesc.h: New file.
16258 * nat/riscv-linux-tdesc.c: New file, taking code from...
16259 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16261 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16264 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16266 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16267 we don't set the fake simulator ptid to the null_ptid.
16269 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16271 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16272 * gdbthread.h (class thread_info) <resumed>: Likewise.
16273 * infrun.c (resume_1): Likewise.
16274 (proceed): Likewise.
16275 (infrun_thread_stop_requested): Likewise.
16276 (stop_all_threads): Likewise.
16277 (handle_inferior_event): Likewise.
16278 (restart_threads): Likewise.
16279 (finish_step_over): Likewise.
16280 (keep_going_stepped_thread): Likewise.
16281 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16282 (linux_handle_extended_wait): Likewise.
16283 * record-btrace.c (get_thread_current_frame_id): Likewise.
16284 * record-full.c (record_full_wait_1): Likewise.
16285 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16286 * target.c (target_resume): Likewise.
16287 * thread.c (set_running_thread): Likewise.
16289 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16291 * f-valprint.c (f77_print_array_1): Changed datatype of index
16292 variable to LONGEST from int to enable it to contain bound
16295 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16297 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16298 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16299 offsets according to FLEN determined.
16300 (riscv_linux_nat_target::read_description): Determine FLEN
16302 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16303 according to FLEN determined.
16304 (riscv_linux_nat_target::store_registers): Likewise.
16306 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16308 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16309 when reg->group is empty and reggroup is not.
16311 2020-01-31 Tom Tromey <tromey@adacore.com>
16313 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16314 Call beneath target's mourn_inferior after unpushing.
16316 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16319 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16320 have enough lines to fill the screen, still return the lowest
16323 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16325 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16326 '-', '<', and '>' commands.
16328 2020-01-29 Pedro Alves <palves@redhat.com>
16329 Sergio Durigan Junior <sergiodj@redhat.com>
16331 * infcmd.c (construct_inferior_arguments): Assert that
16332 'argc' is greater than 0.
16334 2020-01-29 Luis Machado <luis.machado@linaro.org>
16336 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16337 (BRK_INSN_MASK): Define to 0xd4200000.
16338 (aarch64_program_breakpoint_here_p): New function.
16339 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16340 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16342 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16344 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16345 call gdbarch_program_breakpoint_here_p.
16346 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16347 default_program_breakpoint_here_p, changed return type to bool and
16349 * breakpoint.h (program_breakpoint_here): Moved prototype to
16350 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16351 return type to bool.
16352 * gdbarch.c: Regenerate.
16353 * gdbarch.h: Regenerate.
16354 * gdbarch.sh (program_breakpoint_here_p): New method.
16355 * infrun.c (handle_signal_stop): Call
16356 gdbarch_program_breakpoint_here_p.
16358 2020-01-26 Tom Tromey <tom@tromey.com>
16360 * ctfread.c (struct ctf_fp_info): Reindent.
16361 (_initialize_ctfread): Remove.
16363 2020-01-26 Tom Tromey <tom@tromey.com>
16365 * psymtab.c (partial_map_expand_apply)
16366 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16367 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16368 (psym_print_stats, psym_expand_symtabs_for_function)
16369 (psym_map_symbol_filenames, psym_map_matching_symbols)
16370 (psym_expand_symtabs_matching)
16371 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16372 (maintenance_check_psymtabs): Use new methods.
16373 * psympriv.h (struct partial_symtab) <readin_p,
16374 get_compunit_symtab>: New methods.
16375 <readin, compunit_symtab>: Remove members.
16376 (struct standard_psymtab): New.
16377 (struct legacy_psymtab): Derive from standard_psymtab.
16378 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16380 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16382 2020-01-26 Tom Tromey <tom@tromey.com>
16384 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16385 read_dependencies. Add assert.
16386 * psymtab.c (partial_symtab::read_dependencies): New method.
16387 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16389 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16390 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16392 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16395 2020-01-26 Tom Tromey <tom@tromey.com>
16397 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16398 Call expand_psymtab.
16399 (xcoff_read_symtab): Call expand_psymtab.
16400 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16401 legacy_expand_psymtab.
16402 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16404 (struct legacy_psymtab) <expand_psymtab>: Implement.
16405 <legacy_expand_psymtab>: New member.
16406 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16407 (parse_partial_symbols): Set legacy_expand_psymtab.
16408 (psymtab_to_symtab_1): Change argument order. Call
16410 (new_psymtab): Set legacy_expand_psymtab.
16411 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16412 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16414 (dwarf2_psymtab::expand_psymtab): Rename from
16415 psymtab_to_symtab_1. Call expand_psymtab.
16416 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16417 (dbx_end_psymtab): Likewise.
16418 (dbx_psymtab_to_symtab_1): Change argument order. Call
16420 (dbx_read_symtab): Call expand_psymtab.
16421 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16422 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16423 (ctf_psymtab::read_symtab): Call expand_psymtab.
16425 2020-01-26 Tom Tromey <tom@tromey.com>
16427 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16428 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16430 * mdebugread.c (mdebug_read_symtab): Remove prints.
16431 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16433 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16435 2020-01-26 Tom Tromey <tom@tromey.com>
16437 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16438 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16439 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16441 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16442 * psymtab.c (psymtab_to_symtab): Call method.
16443 (dump_psymtab): Update.
16444 * psympriv.h (struct partial_symtab): Add virtual destructor.
16445 <read_symtab>: New method.
16446 (struct legacy_symtab): New.
16447 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16448 (struct pst_map) <pst>: Now a legacy_psymtab.
16449 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16450 (new_psymtab): Use legacy_psymtab.
16451 * dwarf2read.h (struct dwarf2_psymtab): New.
16452 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16453 * dwarf2read.c (dwarf2_create_include_psymtab)
16454 (dwarf2_build_include_psymtabs, create_type_unit_group)
16455 (create_partial_symtab, process_psymtab_comp_unit_reader)
16456 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16457 (set_partial_user): Use dwarf2_psymtab.
16458 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16459 (psymtab_to_symtab_1, process_full_comp_unit)
16460 (process_full_type_unit, dwarf2_ranges_read)
16461 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16462 (dwarf_decode_lines): Use dwarf2_psymtab.
16463 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16464 (add_address_entry_worker, write_one_signatured_type)
16465 (recursively_count_psymbols, recursively_write_psymbols)
16466 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16467 (write_debug_names): Likewise.
16468 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16469 <pst>: Now a legacy_psymtab.
16470 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16471 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16472 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16473 * ctfread.c (struct ctf_psymtab): New.
16474 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16476 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16477 (create_partial_symtab): Return a ctf_psymtab.
16478 (scan_partial_symbols): Update.
16480 2020-01-26 Tom Tromey <tom@tromey.com>
16482 * xcoffread.c (xcoff_start_psymtab): Use new.
16483 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16484 renamed from start_psymtab_common.
16485 * psympriv.h (struct partial_symtab): Add new constructor.
16486 (start_psymtab_common): Don't declare.
16487 * mdebugread.c (parse_partial_symbols): Use new.
16488 * dwarf2read.c (create_partial_symtab): Use new.
16489 * dbxread.c (start_psymtab): Use new.
16490 * ctfread.c (create_partial_symtab): Use new.
16492 2020-01-26 Tom Tromey <tom@tromey.com>
16494 * xcoffread.c (xcoff_end_psymtab): Use new.
16495 * psymtab.c (start_psymtab_common): Use new.
16496 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16498 * psympriv.h (struct partial_symtab): Add parameters to
16499 constructor. Don't inline.
16500 (allocate_psymtab): Don't declare.
16501 * mdebugread.c (new_psymtab): Use new.
16502 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16503 * dbxread.c (dbx_end_psymtab): Use new.
16505 2020-01-26 Tom Tromey <tom@tromey.com>
16507 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16508 allocate_psymtab. Update documentation.
16509 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16510 allocate_psymtab. Do not use new.
16511 (allocate_psymtab): Use new. Update.
16513 2020-01-26 Tom Tromey <tom@tromey.com>
16515 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16516 * psymtab.c (psym_print_stats): Update.
16517 * psympriv.h (struct partial_symtab) <readin,
16518 psymtabs_addrmap_supported, anonymous>: Now bool.
16519 * mdebugread.c (psymtab_to_symtab_1): Update.
16520 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16521 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16522 (process_full_comp_unit, process_full_type_unit): Update.
16523 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16524 * ctfread.c (psymtab_to_symtab): Update.
16526 2020-01-26 Tom Tromey <tom@tromey.com>
16528 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16529 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16530 * psymtab.c (psymtab_storage): Delete psymtabs.
16531 (psymtab_storage::allocate_psymtab): Use new.
16532 (psymtab_storage::discard_psymtab): Use delete.
16533 * psympriv.h (struct partial_symtab): Add constructor and
16536 2020-01-26 Tom Tromey <tom@tromey.com>
16538 * machoread.c: Do not include psympriv.h.
16540 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16542 * NEWS: Mention the new option and the set/show commands.
16544 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16546 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16547 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16548 (validate_exec_file): New variables, enums, functions.
16549 (exec_file_locate_attach, print_section_info): Style the filenames.
16550 (_initialize_exec): Install show_exec_file_mismatch_command and
16551 set_exec_file_mismatch_command.
16552 * gdbcore.h (validate_exec_file): Declare.
16553 * infcmd.c (attach_command): Call validate_exec_file.
16554 * remote.c ( remote_target::remote_add_inferior): Likewise.
16556 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16558 * frame.c (find_frame_sal): Move call to get_next_frame into more
16560 * inline-frame.c (inilne_state) <inline_state>: Update argument
16562 (inilne_state) <skipped_symbol>: Rename to...
16563 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16564 (skip_inline_frames): Build vector of skipped symbols and use this
16565 to reate the inline_state.
16566 (inline_skipped_symbol): Add a comment and some assertions, fetch
16567 skipped symbol from the list.
16569 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16571 * buildsym.c (lte_is_less_than): Delete.
16572 (buildsym_compunit::end_symtab_with_blockvector): Create local
16573 lambda function to sort line table entries, and use
16574 std::stable_sort instead of std::sort.
16575 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16576 markers when looking for a previous line.
16578 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16580 * dwarf2read.c (lnp_state_machine::record_line): Include
16581 end_sequence parameter in debug print out. Record the line if we
16582 are at an end_sequence marker even if it's not the start of a
16584 * symmisc.c (maintenance_print_one_line_table): Print end of
16585 sequence markers with 'END' not '0'.
16587 2020-01-24 Pedro Alves <palves@redhat.com>
16590 * thread.c (scoped_restore_current_thread::restore): Use
16591 switch_to_inferior_no_thread.
16592 * exec.c: Include "progspace-and-thread.h".
16593 (add_target_sections, remove_target_sections):
16594 scoped_restore_current_pspace_and_thread instead of
16595 scoped_restore_current_thread.
16596 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16597 and aspace to the inferior before calling clone_program_space.
16598 Remove stale comment.
16600 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16602 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16603 (arm_netbsd_nat_target::fetch_registers): ...this.
16604 (arm_nbsd_nat_target::store_registers): Rename to...
16605 (arm_netbsd_nat_target::store_registers): ...this.
16607 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16609 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16612 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16614 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16616 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16618 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16619 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16620 the correct replacement (iterate_over_regset_sections).
16621 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16624 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16627 * gdb/python/python.c (execute_gdb_command): Call
16628 async_enable_stdin in catch block.
16630 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16632 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16633 SWITCH_THRU_ALL_UIS.
16635 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16638 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16639 comment, add extra parameter, and update to store previous symbol
16641 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16642 add extra parameter.
16643 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16644 remove unneeded parameter, add try/catch around gdb_print_insn,
16645 rewrite to add items to asm_lines vector.
16646 (tui_find_backward_disassembly_start_address): New function.
16647 (tui_find_disassembly_address): Updated throughout.
16648 (tui_disasm_window::set_contents): Update for changes to
16650 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16651 number of lines to scroll.
16653 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16655 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16656 (SECT_OFF_DATA): Likewise.
16657 (SECT_OFF_RODATA): Likewise.
16658 (SECT_OFF_TEXT): Likewise.
16659 (SECT_OFF_BSS): Likewise.
16660 (struct objfile) <text_section_offset, data_section_offset>: New
16662 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16663 objfile::text_section_offset.
16664 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16665 * coffread.c (coff_symtab_read): Likewise.
16666 (enter_linenos): Likewise.
16667 (process_coff_symbol): Likewise.
16668 * ctfread.c (get_objfile_text_range): Likewise.
16669 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16670 Use objfile::data_section_offset.
16671 * dwarf2-frame.c (execute_cfa_program): Use
16672 objfile::text_section_offset.
16673 (dwarf2_frame_find_fde): Likewise.
16674 * dwarf2read.c (create_addrmap_from_index): Likewise.
16675 (create_addrmap_from_aranges): Likewise.
16676 (dw2_find_pc_sect_compunit_symtab): Likewise.
16677 (process_psymtab_comp_unit_reader): Likewise.
16678 (add_partial_symbol): Likewise.
16679 (add_partial_subprogram): Likewise.
16680 (process_full_comp_unit): Likewise.
16681 (read_file_scope): Likewise.
16682 (read_func_scope): Likewise.
16683 (read_lexical_block_scope): Likewise.
16684 (read_call_site_scope): Likewise.
16685 (dwarf2_rnglists_process): Likewise.
16686 (dwarf2_ranges_process): Likewise.
16687 (dwarf2_ranges_read): Likewise.
16688 (dwarf_decode_lines_1): Likewise.
16689 (new_symbol): Likewise.
16690 (dwarf2_fetch_die_loc_sect_off): Likewise.
16691 (dwarf2_per_cu_text_offset): Likewise.
16692 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16693 * hppa-tdep.c (read_unwind_info): Likewise.
16694 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16695 * psympriv.h (struct partial_symtab): Likewise.
16696 * psymtab.c (find_pc_sect_psymtab): Likewise.
16697 * solib-svr4.c (enable_break): Likewise.
16698 * stap-probe.c (relocate_address): Use
16699 objfile::data_section_offset.
16700 * xcoffread.c (enter_line_range): Use
16701 objfile::text_section_offset.
16702 (read_xcoff_symtab): Likewise.
16704 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16706 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16707 declaration to narrower scopes.
16709 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16711 * darwin-nat.h (struct darwin_exception_msg, enum
16712 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16714 (class darwin_nat_target) <wait_1, check_new_threads,
16715 decode_exception_message, decode_message, stop_inferior,
16716 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16717 * darwin-nat.c (darwin_check_new_threads): Rename to...
16718 (darwin_nat_target::check_new_threads): ... this.
16719 (darwin_suspend_inferior_it): Remove.
16720 (darwin_decode_exception_message): Rename to...
16721 (darwin_nat_target::decode_exception_message): ... this.
16722 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16723 (darwin_decode_message): Rename to...
16724 (darwin_nat_target::decode_message): ... this.
16725 (cancel_breakpoint): Rename to...
16726 (darwin_nat_target::cancel_breakpoint): ... this.
16727 (darwin_wait): Rename to...
16728 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16729 instead of iterate_over_inferiors.
16730 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16731 (darwin_stop_inferior): Rename to...
16732 (darwin_nat_target::stop_inferior): ... this.
16733 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16734 (darwin_init_thread_list): Rename to...
16735 (darwin_nat_target::init_thread_list): ... this.
16736 (darwin_ptrace_him): Rename to...
16737 (darwin_nat_target::ptrace_him): ... this.
16738 (darwin_nat_target::create_inferior): Pass lambda function to
16740 (darwin_nat_target::detach): Call stop_inferior instead of
16741 darwin_stop_inferior.
16742 * fork-inferior.h (fork_inferior): Change init_trace_fun
16743 parameter to gdb::function_view.
16744 * fork-inferior.c (fork_inferior): Likewise.
16746 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16748 * i386-cygwin-tdep.c (core_process_module_section): Update.
16749 * windows-nat.c (struct lm_info_windows): Add text_offset.
16750 (windows_xfer_shared_libraries): Update.
16751 * windows-tdep.c (windows_xfer_shared_library):
16752 Add text_offset_cached argument.
16753 * windows-tdep.h (windows_xfer_shared_library): Update.
16755 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16757 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16759 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16761 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16762 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16763 replace with range-based for.
16764 (gdbsim_interrupt_inferior): Remove.
16765 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16766 with a range-based for. Inline code from
16767 gdbsim_interrupt_inferior.
16769 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16771 * infrun.c (proceed): Fix indentation.
16773 2020-01-21 Tom Tromey <tromey@adacore.com>
16775 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16776 * python/python.c (python_extension_ops): Update.
16777 (gdbpy_colorize): New function.
16778 * python/lib/gdb/__init__.py (colorize): New function.
16779 * extension.h (ext_lang_colorize): Declare.
16780 * extension.c (ext_lang_colorize): New function.
16781 * extension-priv.h (struct extension_language_ops) <colorize>: New
16783 * cli/cli-style.c (_initialize_cli_style): Update help text.
16785 2020-01-21 Luis Machado <luis.machado@linaro.org>
16787 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16788 <cond>: Change type to bool.
16789 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16790 (aarch64_displaced_step_cb): Likewise.
16791 (aarch64_displaced_step_tb): Likewise.
16793 2020-01-21 Luis Machado <luis.machado@linaro.org>
16795 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16798 2020-01-21 Luis Machado <luis.machado@linaro.org>
16800 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16801 <pc_adjust>: Adjust the documentation.
16802 (aarch64_displaced_step_fixup): Check if PC really moved before
16805 2020-01-19 Tom Tromey <tom@tromey.com>
16807 * disasm.c (~gdb_disassembler): New destructor.
16808 (gdb_buffered_insn_length): Call disassemble_free_target.
16809 * disasm.h (class gdb_disassembler): Declare destructor. Use
16810 DISABLE_COPY_AND_ASSIGN.
16812 2020-01-19 Tom Tromey <tom@tromey.com>
16814 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16815 (die_reader_func_ftype): Remove.
16816 (cutu_reader): New class.
16817 (dw2_get_file_names_reader): Remove "data" parameter.
16818 (dw2_get_file_names): Use cutu_reader.
16819 (create_debug_type_hash_table): Update.
16820 (read_cutu_die_from_dwo): Update comment.
16821 (lookup_dwo_unit): Add dwo_name parameter.
16822 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16823 die_reader_func_ftype and data parameters.
16824 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16825 Remove die_reader_func_ftype and data parameters.
16826 (~cutu_reader): New; from init_cutu_and_read_dies.
16827 (cutu_reader::cutu_reader): Rename from
16828 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16829 and data parameters.
16830 (init_cutu_and_read_dies_simple): Remove.
16831 (struct process_psymtab_comp_unit_data): Remove.
16832 (process_psymtab_comp_unit_reader): Remove data parameter; add
16833 want_partial_unit and pretend_language parameters.
16834 (process_psymtab_comp_unit): Use cutu_reader.
16835 (build_type_psymtabs_reader): Remove data parameter.
16836 (build_type_psymtabs_1): Use cutu_reader.
16837 (process_skeletonless_type_unit): Likewise.
16838 (load_partial_comp_unit_reader): Remove.
16839 (load_partial_comp_unit): Use cutu_reader.
16840 (load_full_comp_unit_reader): Remove.
16841 (load_full_comp_unit): Use cutu_reader.
16842 (struct create_dwo_cu_data): Remove.
16843 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16844 dwo_unit parameters.
16845 (create_cus_hash_table): Use cutu_reader.
16846 (struct dwarf2_read_addr_index_data): Remove.
16847 (dwarf2_read_addr_index_reader): Remove.
16848 (dwarf2_read_addr_index): Use cutu_reader.
16849 (read_signatured_type_reader): Remove.
16850 (read_signatured_type): Use cutu_reader.
16852 2020-01-19 Tom Tromey <tom@tromey.com>
16854 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16855 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16856 (tui_wrefresh): Declare.
16857 * tui/tui-wingeneral.c (suppress_output): New global.
16858 (tui_suppress_output, ~tui_suppress_output): New constructor and
16860 (tui_wrefresh): New function.
16861 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16862 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16863 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16865 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16867 (tui_data_window::no_refresh): New method.
16868 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16869 (tui_reg_command): Use tui_suppress_output
16870 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16871 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16873 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16875 2020-01-19 Tom Tromey <tom@tromey.com>
16877 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16878 Handle case where symtab is null.
16880 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16882 * linux-fork.c (one_fork_p): Simplify.
16884 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16886 * top.c (struct qt_args): Remove.
16887 (kill_or_detach): Change return type to void, replace `void *`
16888 parameter with a proper one.
16889 (print_inferior_quit_action): Likewise.
16890 (quit_confirm): Use range-based for loop to iterate over inferiors.
16891 (quit_force): Likewise.
16893 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16895 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16896 `void *` parameter with proper parameters.
16897 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16898 (print_one_inferior): Change return type to void, replace `void *`
16899 parameter with proper parameters.
16900 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16902 (get_other_inferior): Remove.
16903 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16906 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16908 * mi/mi-interp.c (report_initial_inferior): Remove.
16909 (mi_interp::init): Use range-based for to iterate over inferiors.
16911 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16913 * python/py-inferior.c (build_inferior_list): Remove.
16914 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16916 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16918 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16919 (btrace_stitch_trace): Likewise.
16920 * charset.c (intermediate_encoding): Likewise (vaild).
16921 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16922 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16923 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16925 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16927 * windows-tdep.c (windows_get_tlb_type):
16928 Add rtl_user_process_parameters type.
16930 2020-01-16 Pedro Alves <palves@redhat.com>
16931 Norbert Lange <nolange79@gmail.com>
16934 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16935 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16936 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16937 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16938 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16939 (ps_plog): Redeclare exported functions with default visibility.
16941 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16943 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16944 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16946 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16948 * infcmd.c (post_create_inferior): Use get_thread_regcache
16949 instead of get_current_regcache.
16951 2020-01-14 Tom Tromey <tom@tromey.com>
16954 * python/python.c (gdbpy_decode_line): Treat empty string the same
16957 2020-01-14 Tom Tromey <tom@tromey.com>
16959 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16961 2020-01-14 Tom Tromey <tom@tromey.com>
16963 * nat/linux-btrace.c: Don't include <config.h>.
16964 * nat/linux-ptrace.c: Don't include <config.h>.
16965 * nat/x86-linux-dregs.c: Don't include <config.h>.
16967 2020-01-14 Tom Tromey <tom@tromey.com>
16969 * configure: Rebuild.
16970 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16972 2020-01-14 Tom Tromey <tom@tromey.com>
16974 * nat/x86-linux-dregs.c: Include configh.h.
16975 * nat/linux-ptrace.c: Include configh.h.
16976 * nat/linux-btrace.c: Include configh.h.
16977 * defs.h: Include config.h, bfd.h.
16978 * configure.ac: Don't source common.host.
16979 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16980 * configure: Rebuild.
16981 * acinclude.m4: Update path.
16982 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16983 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16984 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16985 (CLIBS): Add LIBSUPPORT.
16987 (COMMON_SFILES): Remove gdbsupport files.
16988 (HFILES_NO_SRCDIR): Likewise.
16989 (stamp-version): Update path to create-version.sh.
16990 (ALLDEPFILES): Remove gdbsupport files.
16992 2020-01-14 Tom Tromey <tom@tromey.com>
16994 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16995 USE_WIN32API when needed.
16996 * configure.ac (USE_WIN32API): Don't define.
16997 (WIN32LIBS): Use WIN32APILIBS.
16998 * configure: Rebuild.
17000 2020-01-14 Tom Tromey <tom@tromey.com>
17002 * configure: Rebuild.
17003 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17005 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17007 * skip.c (skip_function_command): Make skip w/o arguments use the
17008 name of the inlined function if pc is inside any inlined function.
17010 2020-01-14 Luis Machado <luis.machado@linaro.org>
17012 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17013 * infrun.c (resume_1): Likewise.
17014 (handle_inferior_event): Remove stale comment.
17015 * linux-nat.c (linux_nat_target::resume): Update comments.
17016 (save_stop_reason): Likewise.
17017 (linux_nat_filter_event): Likewise.
17018 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17020 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17022 * elfread.c (record_minimal_symbol): Set section index to 0 for
17023 non-allocatable sections.
17026 2020-01-13 Ali Tamur <tamur@google.com>
17028 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17029 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17030 to gdb::optional. Update comments.
17031 (dwo_file): Update comments.
17032 (read_attribute): Update API to take an additional out parameter,
17033 need_reprocess. This is used to mark attributes that need other
17034 attributes (e.g. str_offsets_base) for correct computation which may not
17035 have been read yet.
17036 (read_attribute_reprocess): New function declaration.
17037 (read_addr_index): Likewise.
17038 (read_dwo_str_index): Likewise.
17039 (read_stub_str_index): Likewise.
17040 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17041 (lookup_addr_base): New function definition.
17042 (lookup_ranges_base): Likewise.
17043 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17044 lookup_ranges_base.
17045 (init_cutu_and_read_dies): Update comments.
17046 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17047 unit. This is used to inherit parent's str_offsets_base and addr_base.
17049 (init_cutu_and_read_dies_simple): Reflect API changes.
17050 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17051 (create_cus_hash_table): Change API to take parent compile unit.
17052 Reflect API changes.
17053 (open_and_init_dwo_file): Reflect API changes.
17054 (dwarf2_get_pc_bounds): Update comments.
17055 (dwarf2_record_block_ranges): Likewise.
17056 (read_full_die_1): Change implementation to reprocess attributes that
17057 need str_offsets_base and addr_base.
17058 (partial_die_info::read): Likewise.
17059 (read_attribute_reprocess): New function definition.
17060 (read_attribute_value): Change API to take an additional out parameter,
17061 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17062 when a non-dwo compile unit has index based attributes.
17063 (read_attribute): Reflect API changes.
17064 (read_addr_index_1): Reflect API changes. Update comments.
17065 (dwarf2_read_addr_index_data): Reflect API changes.
17066 (dwarf2_read_addr_index): Likewise.
17067 (read_str_index): Change API and implementation. This becomes a helper
17068 to be used by the new string index related methods. Update error
17069 message and comments.
17070 (read_dwo_str_index): New function definition.
17071 (read_stub_str_index): Likewise.
17072 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17073 * symfile.h (dwarf2_debug_sections): Likewise.
17074 * xcoffread.c (dwarf2_debug_sections): Likewise.
17076 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17078 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17079 core_reg_sect type to gdb_byte *.
17080 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17081 * cris-tdep.c (fetch_core_registers): Likewise.
17082 * corelow.c (core_target::get_core_register_section): Change
17083 type of `contents` to gdb::byte_vector.
17085 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17087 * tui/tui-wingeneral.c (box_win): Position the title in the center
17090 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17092 * corelow.c (core_target::get_core_register_section): Use
17093 std::vector instead of alloca.
17095 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17097 * warning.m4: Add -Wmissing-declarations to build_warnings.
17098 * configure: Re-generate.
17100 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17102 * python/python.c (init__gdb_module): Add declaration.
17104 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17106 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17107 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17108 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17109 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17110 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17111 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17112 * ada-exp.y (_initialize_ada_exp): Add declaration.
17113 * ada-lang.c (_initialize_ada_language): Add declaration.
17114 * ada-tasks.c (_initialize_tasks): Add declaration.
17115 * agent.c (_initialize_agent): Add declaration.
17116 * aix-thread.c (_initialize_aix_thread): Add declaration.
17117 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17118 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17119 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17120 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17121 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17122 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17123 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17124 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17125 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17126 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17127 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17128 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17129 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17130 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17131 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17132 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17133 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17134 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17135 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17136 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17137 * annotate.c (_initialize_annotate): Add declaration.
17138 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17139 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17140 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17141 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17142 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17143 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17144 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17145 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17146 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17147 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17148 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17149 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17150 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17151 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17152 * auto-load.c (_initialize_auto_load): Add declaration.
17153 * auxv.c (_initialize_auxv): Add declaration.
17154 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17155 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17156 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17157 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17158 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17159 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17160 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17161 * breakpoint.c (_initialize_breakpoint): Add declaration.
17162 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17163 * btrace.c (_initialize_btrace): Add declaration.
17164 * charset.c (_initialize_charset): Add declaration.
17165 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17166 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17167 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17168 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17169 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17170 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17171 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17172 * coffread.c (_initialize_coffread): Add declaration.
17173 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17174 * compile/compile.c (_initialize_compile): Add declaration.
17175 * complaints.c (_initialize_complaints): Add declaration.
17176 * completer.c (_initialize_completer): Add declaration.
17177 * copying.c (_initialize_copying): Add declaration.
17178 * corefile.c (_initialize_core): Add declaration.
17179 * corelow.c (_initialize_corelow): Add declaration.
17180 * cp-abi.c (_initialize_cp_abi): Add declaration.
17181 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17182 * cp-support.c (_initialize_cp_support): Add declaration.
17183 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17184 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17185 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17186 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17187 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17188 * ctfread.c (_initialize_ctfread): Add declaration.
17189 * d-lang.c (_initialize_d_language): Add declaration.
17190 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17191 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17192 * dbxread.c (_initialize_dbxread): Add declaration.
17193 * dcache.c (_initialize_dcache): Add declaration.
17194 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17195 * disasm.c (_initialize_disasm): Add declaration.
17196 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17197 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17198 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17199 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17200 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17201 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17202 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17203 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17204 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17205 * elfread.c (_initialize_elfread): Add declaration.
17206 * exec.c (_initialize_exec): Add declaration.
17207 * extension.c (_initialize_extension): Add declaration.
17208 * f-lang.c (_initialize_f_language): Add declaration.
17209 * f-valprint.c (_initialize_f_valprint): Add declaration.
17210 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17211 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17212 * filesystem.c (_initialize_filesystem): Add declaration.
17213 * findcmd.c (_initialize_mem_search): Add declaration.
17214 * findvar.c (_initialize_findvar): Add declaration.
17215 * fork-child.c (_initialize_fork_child): Add declaration.
17216 * frame-base.c (_initialize_frame_base): Add declaration.
17217 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17218 * frame.c (_initialize_frame): Add declaration.
17219 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17220 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17221 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17222 * gcore.c (_initialize_gcore): Add declaration.
17223 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17224 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17225 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17226 * gdbarch.c (_initialize_gdbarch): Add declaration.
17227 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17228 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17229 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17230 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17231 * go-lang.c (_initialize_go_language): Add declaration.
17232 * go32-nat.c (_initialize_go32_nat): Add declaration.
17233 * guile/guile.c (_initialize_guile): Add declaration.
17234 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17235 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17236 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17237 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17238 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17239 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17240 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17241 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17242 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17243 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17244 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17245 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17246 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17247 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17248 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17249 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17250 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17251 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17252 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17253 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17254 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17255 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17256 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17257 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17258 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17259 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17260 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17261 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17262 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17263 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17264 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17265 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17266 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17267 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17268 * infcall.c (_initialize_infcall): Add declaration.
17269 * infcmd.c (_initialize_infcmd): Add declaration.
17270 * inflow.c (_initialize_inflow): Add declaration.
17271 * infrun.c (_initialize_infrun): Add declaration.
17272 * interps.c (_initialize_interpreter): Add declaration.
17273 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17274 * jit.c (_initialize_jit): Add declaration.
17275 * language.c (_initialize_language): Add declaration.
17276 * linux-fork.c (_initialize_linux_fork): Add declaration.
17277 * linux-nat.c (_initialize_linux_nat): Add declaration.
17278 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17279 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17280 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17281 * m2-lang.c (_initialize_m2_language): Add declaration.
17282 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17283 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17284 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17285 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17286 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17287 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17288 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17289 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17290 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17291 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17292 * machoread.c (_initialize_machoread): Add declaration.
17293 * macrocmd.c (_initialize_macrocmd): Add declaration.
17294 * macroscope.c (_initialize_macroscope): Add declaration.
17295 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17296 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17297 * maint.c (_initialize_maint_cmds): Add declaration.
17298 * mdebugread.c (_initialize_mdebugread): Add declaration.
17299 * memattr.c (_initialize_mem): Add declaration.
17300 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17301 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17302 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17303 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17304 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17305 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17306 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17307 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17308 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17309 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17310 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17311 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17312 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17313 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17314 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17315 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17316 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17317 * mipsread.c (_initialize_mipsread): Add declaration.
17318 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17319 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17320 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17321 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17322 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17323 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17324 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17325 * nto-procfs.c (_initialize_procfs): Add declaration.
17326 * objc-lang.c (_initialize_objc_language): Add declaration.
17327 * observable.c (_initialize_observer): Add declaration.
17328 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17329 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17330 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17331 * osabi.c (_initialize_gdb_osabi): Add declaration.
17332 * osdata.c (_initialize_osdata): Add declaration.
17333 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17334 * parse.c (_initialize_parse): Add declaration.
17335 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17336 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17337 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17338 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17339 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17340 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17341 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17342 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17343 * printcmd.c (_initialize_printcmd): Add declaration.
17344 * probe.c (_initialize_probe): Add declaration.
17345 * proc-api.c (_initialize_proc_api): Add declaration.
17346 * proc-events.c (_initialize_proc_events): Add declaration.
17347 * proc-service.c (_initialize_proc_service): Add declaration.
17348 * procfs.c (_initialize_procfs): Add declaration.
17349 * producer.c (_initialize_producer): Add declaration.
17350 * psymtab.c (_initialize_psymtab): Add declaration.
17351 * python/python.c (_initialize_python): Add declaration.
17352 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17353 * record-btrace.c (_initialize_record_btrace): Add declaration.
17354 * record-full.c (_initialize_record_full): Add declaration.
17355 * record.c (_initialize_record): Add declaration.
17356 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17357 * regcache.c (_initialize_regcache): Add declaration.
17358 * reggroups.c (_initialize_reggroup): Add declaration.
17359 * remote-notif.c (_initialize_notif): Add declaration.
17360 * remote-sim.c (_initialize_remote_sim): Add declaration.
17361 * remote.c (_initialize_remote): Add declaration.
17362 * reverse.c (_initialize_reverse): Add declaration.
17363 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17364 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17365 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17366 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17367 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17368 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17369 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17370 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17372 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17373 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17374 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17375 * rust-exp.y (_initialize_rust_exp): Add declaration.
17376 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17377 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17378 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17379 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17380 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17381 * score-tdep.c (_initialize_score_tdep): Add declaration.
17382 * ser-go32.c (_initialize_ser_dos): Add declaration.
17383 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17384 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17385 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17386 * ser-uds.c (_initialize_ser_socket): Add declaration.
17387 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17388 * serial.c (_initialize_serial): Add declaration.
17389 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17390 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17391 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17392 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17393 * skip.c (_initialize_step_skip): Add declaration.
17394 * sol-thread.c (_initialize_sol_thread): Add declaration.
17395 * solib-aix.c (_initialize_solib_aix): Add declaration.
17396 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17397 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17398 * solib-frv.c (_initialize_frv_solib): Add declaration.
17399 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17400 * solib-target.c (_initialize_solib_target): Add declaration.
17401 * solib.c (_initialize_solib): Add declaration.
17402 * source-cache.c (_initialize_source_cache): Add declaration.
17403 * source.c (_initialize_source): Add declaration.
17404 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17405 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17406 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17407 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17408 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17409 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17410 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17411 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17412 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17413 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17414 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17415 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17416 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17417 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17418 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17419 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17420 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17421 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17422 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17423 * stabsread.c (_initialize_stabsread): Add declaration.
17424 * stack.c (_initialize_stack): Add declaration.
17425 * stap-probe.c (_initialize_stap_probe): Add declaration.
17426 * std-regs.c (_initialize_frame_reg): Add declaration.
17427 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17428 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17429 * symfile.c (_initialize_symfile): Add declaration.
17430 * symmisc.c (_initialize_symmisc): Add declaration.
17431 * symtab.c (_initialize_symtab): Add declaration.
17432 * target.c (_initialize_target): Add declaration.
17433 * target-connection.c (_initialize_target_connection): Add
17435 * target-dcache.c (_initialize_target_dcache): Add declaration.
17436 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17437 * thread.c (_initialize_thread): Add declaration.
17438 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17439 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17440 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17441 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17442 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17443 * tracectf.c (_initialize_ctf): Add declaration.
17444 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17445 * tracefile.c (_initialize_tracefile): Add declaration.
17446 * tracepoint.c (_initialize_tracepoint): Add declaration.
17447 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17448 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17449 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17450 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17451 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17452 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17453 * tui/tui.c (_initialize_tui): Add declaration.
17454 * typeprint.c (_initialize_typeprint): Add declaration.
17455 * ui-style.c (_initialize_ui_style): Add declaration.
17456 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17457 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17458 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17459 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17460 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17461 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17462 * unittests/filtered_iterator-selftests.c
17463 (_initialize_filtered_iterator_selftests): Add declaration.
17464 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17465 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17466 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17467 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17468 * unittests/main-thread-selftests.c
17469 (_initialize_main_thread_selftests): Add declaration.
17470 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17471 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17472 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17473 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17474 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17475 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17476 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17477 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17478 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17479 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17480 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17481 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17482 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17483 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17484 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17486 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17487 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17488 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17489 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17490 * user-regs.c (_initialize_user_regs): Add declaration.
17491 * utils.c (_initialize_utils): Add declaration.
17492 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17493 * valops.c (_initialize_valops): Add declaration.
17494 * valprint.c (_initialize_valprint): Add declaration.
17495 * value.c (_initialize_values): Add declaration.
17496 * varobj.c (_initialize_varobj): Add declaration.
17497 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17498 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17499 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17500 * windows-nat.c (_initialize_windows_nat): Add declaration.
17501 (_initialize_check_for_gdb_ini): Add declaration.
17502 (_initialize_loadable): Add declaration.
17503 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17504 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17505 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17506 * xcoffread.c (_initialize_xcoffread): Add declaration.
17507 * xml-support.c (_initialize_xml_support): Add declaration.
17508 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17509 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17510 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17511 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17513 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17515 * regformats/regdat.sh: Generate declaration for init function.
17517 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17519 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17521 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17522 close_one_inferior>: New methods.
17523 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17524 pass down target to find_inferior_pid.
17525 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17526 Pass down target to find_inferior_ptid.
17527 (gdbsim_target::create_inferior): Pass down target to
17529 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17530 target down to find_inferior_ptid and switch_to_thread.
17531 (gdbsim_target::close): Update to call close_one_inferior.
17532 (struct resume_data): Remove.
17533 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17534 directly, rather than through a void pointer.
17535 (gdbsim_target::resume): Update to call resume_one_inferior.
17537 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17539 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17541 2020-01-12 Pedro Alves <palves@redhat.com>
17543 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17544 directly for the current inferior instead of
17545 discard_all_inferiors.
17546 (discard_all_inferiors): Delete.
17548 2020-01-11 Tom Tromey <tom@tromey.com>
17550 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17551 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17552 deprecated_safe_get_selected_frame.
17554 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17556 * inferior.c (print_inferior): Switch inferior before printing it.
17558 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17559 Pedro Alves <palves@redhat.com>
17561 * progspace-and-thread.c (switch_to_program_space_and_thread):
17562 Assert there's an inferior for PSPACE. Use
17563 switch_to_inferior_no_thread to switch the inferior too.
17564 * progspace.c (program_space::~program_space): Call
17565 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17566 (program_space::free_all_objfiles): Don't call clear_symtab_users
17568 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17570 2020-01-10 Pedro Alves <palves@redhat.com>
17572 * NEWS: Mention multi-target debugging, "info connections", and
17573 "add-inferior -no-connection".
17575 2020-01-10 Pedro Alves <palves@redhat.com>
17577 * infrun.c: Include "target-connection.h".
17578 (check_multi_target_resumption): New.
17579 (proceed): Call it.
17580 * target-connection.c (make_target_connection_string): Make
17582 * target-connection.h (make_target_connection_string): Declare.
17584 2020-01-10 Pedro Alves <palves@redhat.com>
17586 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17587 * inferior.c (uiout_field_connection): New function.
17588 (print_inferior): Add new "connection-id" column.
17589 (add_inferior_command): Show connection number/string of added
17591 * process-stratum-target.h
17592 (process_stratum_target::connection_string): New virtual method.
17593 (process_stratum_target::connection_number): New field.
17594 * remote.c (remote_target::connection_string): New override.
17595 * target-connection.c: New file.
17596 * target-connection.h: New file.
17597 * target.c (decref_target): Remove process_stratum targets from
17598 the connection list.
17599 (target_stack::push): Add process_stratum targets to the
17602 2020-01-10 Pedro Alves <palves@redhat.com>
17605 2016-04-12 Pedro Alves <palves@redhat.com>
17606 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17607 Remove references to name.
17608 * serial.h (struct serial) <name>: Delete.
17610 2020-01-10 Pedro Alves <palves@redhat.com>
17612 * gdbarch-selftests.c (register_to_value_test): Remove "target
17613 already pushed" check.
17615 2020-01-10 Pedro Alves <palves@redhat.com>
17616 John Baldwin <jhb@FreeBSD.org>
17618 * aarch64-linux-nat.c
17619 (aarch64_linux_nat_target::thread_architecture): Adjust.
17620 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17621 (task_command_1): Likewise.
17622 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17623 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17624 (aix_thread_target::store_registers)
17625 (aix_thread_target::thread_alive): Adjust.
17626 * amd64-fbsd-tdep.c: Include "inferior.h".
17627 (amd64fbsd_get_thread_local_address): Pass down target.
17628 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17629 thread's gdbarch instead of target_gdbarch.
17630 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17631 get_last_target_status.
17632 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17633 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17635 (update_inserted_breakpoint_locations): Skip if inferiors with no
17637 (update_global_location_list): When handling moribund locations,
17638 find representative inferior for location's pspace, and use thread
17639 count of its process_stratum target.
17640 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17641 * bsd-uthread.c (bsd_uthread_target::wait): Use
17642 as_process_stratum_target and adjust thread_change_ptid and
17644 (bsd_uthread_target::update_thread_list): Use
17645 as_process_stratum_target and adjust find_thread_ptid,
17646 thread_change_ptid and add_thread calls.
17647 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17648 find_thread_ptid call.
17649 * corelow.c (add_to_thread_list): Adjust add_thread call.
17650 (core_target_open): Adjust add_thread_silent and thread_count
17652 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17653 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17654 * event-top.c (async_disconnect): Pop targets from all inferiors.
17655 * exec.c (add_target_sections): Push exec target on all inferiors
17656 sharing the program space.
17657 (remove_target_sections): Remove the exec target from all
17658 inferiors sharing the program space.
17659 (exec_on_vfork): New.
17660 * exec.h (exec_on_vfork): Declare.
17661 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17663 (fbsd_nat_target::update_thread_list): Adjust.
17664 (fbsd_nat_target::resume): Adjust.
17665 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17667 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17668 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17669 get_thread_arch_regcache call.
17670 * fork-child.c (gdb_startup_inferior): Pass target down to
17671 startup_inferior and set_executing.
17672 * gdbthread.h (struct process_stratum_target): Forward declare.
17673 (add_thread, add_thread_silent, add_thread_with_info)
17674 (in_thread_list): Add process_stratum_target parameter.
17675 (find_thread_ptid(inferior*, ptid_t)): New overload.
17676 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17678 (all_threads()): Delete overload.
17679 (all_threads, all_non_exited_threads): Add process_stratum_target
17681 (all_threads_safe): Use brace initialization.
17682 (thread_count): Add process_stratum_target parameter.
17683 (set_resumed, set_running, set_stop_requested, set_executing)
17684 (threads_are_executing, finish_thread_state): Add
17685 process_stratum_target parameter.
17686 (switch_to_thread): Use is_current_thread.
17687 * i386-fbsd-tdep.c: Include "inferior.h".
17688 (i386fbsd_get_thread_local_address): Pass down target.
17689 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17690 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17691 have_inferiors check.
17692 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17693 (inf_ptrace_target::attach): Adjust.
17694 * infcall.c (run_inferior_call): Adjust.
17695 * infcmd.c (run_command_1): Pass target to
17696 scoped_finish_thread_state.
17697 (proceed_thread_callback): Skip inferiors with no execution.
17698 (continue_command): Rename 'all_threads' local to avoid hiding
17699 'all_threads' function. Adjust get_last_target_status call.
17700 (prepare_one_step): Adjust set_running call.
17701 (signal_command): Use user_visible_resume_target. Compare thread
17702 pointers instead of inferior_ptid.
17703 (info_program_command): Adjust to pass down target.
17704 (attach_command): Mark target's 'thread_executing' flag.
17705 (stop_current_target_threads_ns): New, factored out from ...
17706 (interrupt_target_1): ... this. Switch inferior before making
17709 (struct all_inferiors_iterator, struct all_inferiors_range)
17710 (struct all_inferiors_safe_range)
17711 (struct all_non_exited_inferiors_range): Filter on
17712 process_stratum_target too. Remove explicit.
17713 * inferior.c (inferior::inferior): Push dummy target on target
17715 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17716 Add process_stratum_target parameter, and pass it down.
17717 (have_live_inferiors): Adjust.
17718 (switch_to_inferior_and_push_target): New.
17719 (add_inferior_command, clone_inferior_command): Handle
17720 "-no-connection" parameter. Use
17721 switch_to_inferior_and_push_target.
17722 (_initialize_inferior): Mention "-no-connection" option in
17723 the help of "add-inferior" and "clone-inferior" commands.
17724 * inferior.h: Include "process-stratum-target.h".
17725 (interrupt_target_1): Use bool.
17726 (struct inferior) <push_target, unpush_target, target_is_pushed,
17727 find_target_beneath, top_target, process_target, target_at,
17729 (discard_all_inferiors): Delete.
17730 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17731 (all_inferiors, all_non_exited_inferiors): Add
17732 process_stratum_target parameter.
17733 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17734 (target_last_proc_target): New global.
17735 (follow_fork_inferior): Push target on new inferior. Pass target
17736 to add_thread_silent. Call exec_on_vfork. Handle target's
17738 (follow_fork): Adjust get_last_target_status call. Also consider
17740 (follow_exec): Push target on new inferior.
17741 (struct execution_control_state) <target>: New field.
17742 (user_visible_resume_target): New.
17743 (do_target_resume): Call target_async.
17744 (resume_1): Set target's threads_executing flag. Consider resume
17746 (commit_resume_all_targets): New.
17747 (proceed): Also consider resume target. Skip threads of inferiors
17748 with no execution. Commit resumtion in all targets.
17749 (start_remote): Pass current inferior to wait_for_inferior.
17750 (infrun_thread_stop_requested): Consider target as well. Pass
17751 thread_info pointer to clear_inline_frame_state instead of ptid.
17752 (infrun_thread_thread_exit): Consider target as well.
17753 (random_pending_event_thread): New inferior parameter. Use it.
17754 (do_target_wait): Rename to ...
17755 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17757 (threads_are_resumed_pending_p, do_target_wait): New.
17758 (prepare_for_detach): Adjust calls.
17759 (wait_for_inferior): New inferior parameter. Handle it. Use
17760 do_target_wait_1 instead of do_target_wait.
17761 (fetch_inferior_event): Adjust. Switch to representative
17762 inferior. Pass target down.
17763 (set_last_target_status): Add process_stratum_target parameter.
17764 Save target in global.
17765 (get_last_target_status): Add process_stratum_target parameter and
17767 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17768 (context_switch): Check inferior_ptid == null_ptid before calling
17770 (get_inferior_stop_soon): Pass down target.
17771 (wait_one): Rename to ...
17772 (poll_one_curr_target): ... this.
17773 (struct wait_one_event): New.
17775 (stop_all_threads): Adjust.
17776 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17778 (switch_back_to_stepped_thread): Also consider target.
17779 (print_stop_event): Update.
17780 (normal_stop): Update. Also consider the resume target.
17781 * infrun.h (wait_for_inferior): Remove declaration.
17782 (user_visible_resume_target): New declaration.
17783 (get_last_target_status, set_last_target_status): New
17784 process_stratum_target parameter.
17785 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17786 process_stratum_target parameter, and use it.
17787 (clear_inline_frame_state (thread_info*)): New.
17788 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17789 process_stratum_target parameter.
17790 (clear_inline_frame_state (thread_info*)): Declare.
17791 * linux-fork.c (delete_checkpoint_command): Pass target down to
17793 (checkpoint_command): Adjust.
17794 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17795 instead of just tweaking inferior_ptid.
17796 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17797 (exit_lwp): Pass target down to find_thread_ptid.
17798 (attach_proc_task_lwp_callback): Pass target down to
17799 add_thread/set_running/set_executing.
17800 (linux_nat_target::attach): Pass target down to
17801 thread_change_ptid.
17802 (get_detach_signal): Pass target down to find_thread_ptid.
17803 Consider last target status's target.
17804 (linux_resume_one_lwp_throw, resume_lwp)
17805 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17806 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17807 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17808 (linux_nat_target::async_wait_fd): New.
17809 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17811 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17812 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17813 * linux-thread-db.c (struct thread_db_info::process_target): New
17815 (add_thread_db_info): Save target.
17816 (get_thread_db_info): New process_stratum_target parameter. Also
17818 (delete_thread_db_info): New process_stratum_target parameter.
17820 (thread_from_lwp): Adjust to pass down target.
17821 (thread_db_notice_clone): Pass down target.
17822 (check_thread_db_callback): Pass down target.
17823 (try_thread_db_load_1): Always push the thread_db target.
17824 (try_thread_db_load, record_thread): Pass target down.
17825 (thread_db_target::detach): Pass target down. Always unpush the
17827 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17828 target down. Always unpush the thread_db target.
17829 (find_new_threads_callback, thread_db_find_new_threads_2)
17830 (thread_db_target::update_thread_list): Pass target down.
17831 (thread_db_target::pid_to_str): Pass current inferior down.
17832 (thread_db_target::get_thread_local_address): Pass target down.
17833 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17835 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17836 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17837 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17838 (procfs_init_inferior): Rename to ...
17839 (procfs_target::procfs_init_inferior): ... this and adjust.
17840 (procfs_target::create_inferior, procfs_notice_thread)
17841 (procfs_do_thread_registers): Adjust.
17842 * ppc-fbsd-tdep.c: Include "inferior.h".
17843 (ppcfbsd_get_thread_local_address): Pass down target.
17844 * proc-service.c (ps_xfer_memory): Switch current inferior and
17845 program space as well.
17846 (get_ps_regcache): Pass target down.
17847 * process-stratum-target.c
17848 (process_stratum_target::thread_address_space)
17849 (process_stratum_target::thread_architecture): Pass target down.
17850 * process-stratum-target.h
17851 (process_stratum_target::threads_executing): New field.
17852 (as_process_stratum_target): New.
17853 * ravenscar-thread.c
17854 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17855 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17857 * record-btrace.c (record_btrace_target::info_record): Adjust.
17858 (record_btrace_target::record_method)
17859 (record_btrace_target::record_is_replaying)
17860 (record_btrace_target::fetch_registers)
17861 (get_thread_current_frame_id, record_btrace_target::resume)
17862 (record_btrace_target::wait, record_btrace_target::stop): Pass
17864 * record-full.c (record_full_wait_1): Switch to event thread.
17866 * regcache.c (regcache::regcache)
17867 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17868 process_stratum_target parameter and handle it.
17869 (current_thread_target): New global.
17870 (get_thread_regcache): Add process_stratum_target parameter and
17871 handle it. Switch inferior before calling target method.
17872 (get_thread_regcache): Pass target down.
17873 (get_thread_regcache_for_ptid): Pass target down.
17874 (registers_changed_ptid): Add process_stratum_target parameter and
17876 (registers_changed_thread, registers_changed): Pass target down.
17877 (test_get_thread_arch_aspace_regcache): New.
17878 (current_regcache_test): Define a couple local test_target_ops
17879 instances and use them for testing.
17880 (readwrite_regcache): Pass process_stratum_target parameter.
17881 (cooked_read_test, cooked_write_test): Pass mock_target down.
17882 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17883 (get_thread_arch_aspace_regcache): Add process_stratum_target
17885 (regcache::target): New method.
17886 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17887 (regcache::registers_changed_ptid): Add process_stratum_target
17889 (regcache::m_target): New field.
17890 (registers_changed_ptid): Add process_stratum_target parameter.
17891 * remote.c (remote_state::supports_vCont_probed): New field.
17892 (remote_target::async_wait_fd): New method.
17893 (remote_unpush_and_throw): Add remote_target parameter.
17894 (get_current_remote_target): Adjust.
17895 (remote_target::remote_add_inferior): Push target.
17896 (remote_target::remote_add_thread)
17897 (remote_target::remote_notice_new_inferior)
17898 (get_remote_thread_info): Pass target down.
17899 (remote_target::update_thread_list): Skip threads of inferiors
17900 bound to other targets. (remote_target::close): Don't discard
17901 inferiors. (remote_target::add_current_inferior_and_thread)
17902 (remote_target::process_initial_stop_replies)
17903 (remote_target::start_remote)
17904 (remote_target::remote_serial_quit_handler): Pass down target.
17905 (remote_target::remote_unpush_target): New remote_target
17906 parameter. Unpush the target from all inferiors.
17907 (remote_target::remote_unpush_and_throw): New remote_target
17908 parameter. Pass it down.
17909 (remote_target::open_1): Check whether the current inferior has
17910 execution instead of checking whether any inferior is live. Pass
17912 (remote_target::remote_detach_1): Pass down target. Use
17913 remote_unpush_target.
17914 (extended_remote_target::attach): Pass down target.
17915 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17916 (remote_target::append_resumption): Pass down target.
17917 (remote_target::append_pending_thread_resumptions)
17918 (remote_target::remote_resume_with_hc, remote_target::resume)
17919 (remote_target::commit_resume): Pass down target.
17920 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17921 (remote_target::interrupt_query)
17922 (remote_target::remove_new_fork_children)
17923 (remote_target::check_pending_events_prevent_wildcard_vcont)
17924 (remote_target::remote_parse_stop_reply)
17925 (remote_target::process_stop_reply): Pass down target.
17926 (first_remote_resumed_thread): New remote_target parameter. Pass
17928 (remote_target::wait_as): Pass down target.
17929 (unpush_and_perror): New remote_target parameter. Pass it down.
17930 (remote_target::readchar, remote_target::remote_serial_write)
17931 (remote_target::getpkt_or_notif_sane_1)
17932 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17934 (remote_target::mourn_inferior): Pass down target. Use
17935 remote_unpush_target.
17936 (remote_target::core_of_thread)
17937 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17938 (remote_target::pid_to_exec_file)
17939 (remote_target::thread_handle_to_thread_info): Pass down target.
17940 (remote_target::async_wait_fd): New.
17941 * riscv-fbsd-tdep.c: Include "inferior.h".
17942 (riscv_fbsd_get_thread_local_address): Pass down target.
17943 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17944 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17945 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17947 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17948 * solib-svr4.c (enable_break): Pass down target.
17949 * spu-multiarch.c (parse_spufs_run): Pass down target.
17950 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17951 * target-delegates.c: Regenerate.
17952 * target.c (g_target_stack): Delete.
17953 (current_top_target): Return the current inferior's top target.
17954 (target_has_execution_1): Refer to the passed-in inferior's top
17956 (target_supports_terminal_ours): Check whether the initial
17957 inferior was already created.
17958 (decref_target): New.
17959 (target_stack::push): Incref/decref the target.
17960 (push_target, push_target, unpush_target): Adjust.
17961 (target_stack::unpush): Defref target.
17962 (target_is_pushed): Return bool. Adjust to refer to the current
17963 inferior's target stack.
17964 (dispose_inferior): Delete, and inline parts ...
17965 (target_preopen): ... here. Only dispose of the current inferior.
17966 (target_detach): Hold strong target reference while detaching.
17968 (target_thread_name): Add assertion.
17969 (target_resume): Pass down target.
17970 (target_ops::beneath, find_target_at): Adjust to refer to the
17971 current inferior's target stack.
17972 (get_dummy_target): New.
17973 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17974 has a thread running.
17975 (initialize_targets): Rename to ...
17976 (_initialize_target): ... this.
17977 * target.h: Include "gdbsupport/refcounted-object.h".
17978 (struct target_ops): Inherit refcounted_object.
17979 (target_ops::shortname, target_ops::longname): Make const.
17980 (target_ops::async_wait_fd): New method.
17981 (decref_target): Declare.
17982 (struct target_ops_ref_policy): New.
17983 (target_ops_ref): New typedef.
17984 (get_dummy_target): Declare function.
17985 (target_is_pushed): Return bool.
17986 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17987 (all_matching_threads_iterator::all_matching_threads_iterator):
17988 Handle filter target.
17989 * thread-iter.h (struct all_matching_threads_iterator, struct
17990 all_matching_threads_range, class all_non_exited_threads_range):
17991 Filter by target too. Remove explicit.
17992 * thread.c (threads_executing): Delete.
17993 (inferior_thread): Pass down current inferior.
17994 (clear_thread_inferior_resources): Pass down thread pointer
17996 (add_thread_silent, add_thread_with_info, add_thread): Add
17997 process_stratum_target parameter. Use it for thread and inferior
17999 (is_current_thread): New.
18000 (thread_info::deletable): Use it.
18001 (find_thread_ptid, thread_count, in_thread_list)
18002 (thread_change_ptid, set_resumed, set_running): New
18003 process_stratum_target parameter. Pass it down.
18004 (set_executing): New process_stratum_target parameter. Pass it
18005 down. Adjust reference to 'threads_executing'.
18006 (threads_are_executing): New process_stratum_target parameter.
18007 Adjust reference to 'threads_executing'.
18008 (set_stop_requested, finish_thread_state): New
18009 process_stratum_target parameter. Pass it down.
18010 (switch_to_thread): Also match inferior.
18011 (switch_to_thread): New process_stratum_target parameter. Pass it
18013 (update_threads_executing): Reimplement.
18014 * top.c (quit_force): Pop targets from all inferior.
18015 (gdb_init): Don't call initialize_targets.
18016 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18018 (windows_add_thread, windows_delete_thread): Adjust.
18019 (get_windows_debug_event): Rename to ...
18020 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18021 * tracefile-tfile.c (tfile_target_open): Pass down target.
18022 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18024 (switch_to_thread): Add process_stratum_target parameter.
18025 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18027 (mi_on_resume): Pass target down.
18028 * nat/fork-inferior.c (startup_inferior): Add
18029 process_stratum_target parameter. Pass it down.
18030 * nat/fork-inferior.h (startup_inferior): Add
18031 process_stratum_target parameter.
18032 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18034 2020-01-10 Pedro Alves <palves@redhat.com>
18036 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18037 directly. Instead find the first thread in the thread list and
18038 use switch_to_thread.
18040 2020-01-10 Pedro Alves <palves@redhat.com>
18042 * remote.c (remote_target::remote_add_inferior): Don't bind a
18043 process to the current inferior if the current inferior is already
18044 bound to a process.
18046 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18047 Pedro Alves <palves@redhat.com>
18049 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18050 If no process is specified, return null_ptid instead of
18052 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18053 TARGET_WAITKIND_SIGNALLED with no pid.
18055 2020-01-10 Pedro Alves <palves@redhat.com>
18057 * remote.c (first_remote_resumed_thread): New.
18058 (remote_target::wait_as): Use it as default event_ptid instead of
18061 2020-01-10 Pedro Alves <palves@redhat.com>
18063 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18065 2020-01-10 Pedro Alves <palves@redhat.com>
18067 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18070 2020-01-10 Pedro Alves <palves@redhat.com>
18072 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18073 ptid to get_last_target_status.
18074 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18075 ptid to get_last_target_status.
18076 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18077 get_last_target_status.
18078 (info_program_command): Don't pass a target_waitstatus to
18079 get_last_target_status.
18080 * infrun.c (init_wait_for_inferior): Use
18081 nullify_last_target_wait_ptid.
18082 (get_last_target_status): Handle nullptr arguments.
18083 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18084 (print_stop_event): Don't pass a ptid to get_last_target_status.
18085 (normal_stop): Don't pass a ptid to get_last_target_status.
18086 * infrun.h (get_last_target_status, set_last_target_status): Move
18087 comments here and update.
18088 (nullify_last_target_wait_ptid): Declare.
18089 * linux-fork.c (fork_load_infrun_state): Remove local extern
18090 declaration of nullify_last_target_wait_ptid.
18091 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18092 to get_last_target_status.
18094 2020-01-10 Pedro Alves <palves@redhat.com>
18096 * gdbthread.h (scoped_restore_current_thread)
18097 <dont_restore, restore, m_dont_restore>: Declare.
18098 * thread.c (thread_alive): Add assertion. Return bool.
18099 (switch_to_thread_if_alive): New.
18100 (prune_threads): Switch inferior/thread.
18101 (print_thread_info_1): Switch thread before calling target methods.
18102 (scoped_restore_current_thread::restore): New, factored out from
18104 (scoped_restore_current_thread::~scoped_restore_current_thread):
18106 (scoped_restore_current_thread::scoped_restore_current_thread):
18108 (thread_apply_all_command, thread_select): Use
18109 switch_to_thread_if_alive.
18110 * infrun.c (proceed, restart_threads, handle_signal_stop)
18111 (switch_back_to_stepped_thread): Switch current thread before
18112 calling target methods.
18114 2020-01-10 Pedro Alves <palves@redhat.com>
18116 * inferior.c (switch_to_inferior_no_thread): New function,
18117 factored out from ...
18118 (inferior_command): ... here.
18119 * inferior.h (switch_to_inferior_no_thread): Declare.
18120 * mi/mi-main.c (run_one_inferior): Use
18121 switch_to_inferior_no_thread.
18123 2020-01-10 Pedro Alves <palves@redhat.com>
18125 * infcmd.c (kill_command): Remove dead code.
18127 2020-01-10 Pedro Alves <palves@redhat.com>
18129 * remote.c (remote_target::mourn_inferior): No longer check
18130 whether the target is running.
18132 2020-01-10 Pedro Alves <palves@redhat.com>
18134 * corelow.c (core_target::has_execution): Change parameter type to
18136 * inferior.c (number_of_live_inferiors): Use
18137 inferior::has_execution instead of target_has_execution_1.
18138 * inferior.h (inferior::has_execution): New.
18139 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18140 inferior::has_execution instead of target_has_execution_1.
18141 * process-stratum-target.c
18142 (process_stratum_target::has_execution): Change parameter type to
18143 inferior pointer. Check the inferior's PID instead of
18145 * process-stratum-target.h
18146 (process_stratum_target::has_execution): Change parameter type to
18148 * record-full.c (record_full_core_target::has_execution): Change
18149 parameter type to inferior pointer.
18150 * target.c (target_has_execution_1): Change parameter type to
18152 (target_has_execution_current): Adjust.
18153 * target.h (target_ops::has_execution): Change parameter type to
18155 (target_has_execution_1): Change parameter type to inferior
18156 pointer. Change return type to bool.
18157 * tracefile.h (tracefile_target::has_execution): Change parameter
18158 type to inferior pointer.
18160 2020-01-10 Pedro Alves <palves@redhat.com>
18162 * exceptions.c (print_flush): Remove current_top_target() check.
18164 2020-01-10 Pedro Alves <palves@redhat.com>
18166 * remote.c (show_remote_exec_file): Show the current inferior's
18167 exec-file instead of the command variable's value.
18169 2020-01-10 Pedro Alves <palves@redhat.com>
18171 * record-full.c (record_full_resume_ptid): New global.
18172 (record_full_target::resume): Set it.
18173 (record_full_wait_1): Use record_full_resume_ptid instead of
18176 2020-01-10 Pedro Alves <palves@redhat.com>
18178 * gdbthread.h (scoped_restore_current_thread)
18179 <dont_restore, restore, m_dont_restore>: Declare.
18180 * thread.c (thread_alive): Add assertion. Return bool.
18181 (switch_to_thread_if_alive): New.
18182 (prune_threads): Switch inferior/thread.
18183 (print_thread_info_1): Switch thread before calling target methods.
18184 (scoped_restore_current_thread::restore): New, factored out from
18186 (scoped_restore_current_thread::~scoped_restore_current_thread):
18188 (scoped_restore_current_thread::scoped_restore_current_thread):
18190 (thread_apply_all_command, thread_select): Use
18191 switch_to_thread_if_alive.
18193 2020-01-10 George Barrett <bob@bob131.so>
18195 * stap-probe.c (stap_modify_semaphore): Don't check for null
18197 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18198 for null semaphores.
18200 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18202 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18203 all source windows, and maintain horizontal scroll status while
18206 2020-01-09 Tom Tromey <tom@tromey.com>
18209 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18210 update_source_window, not print_source_lines.
18212 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18214 * tui/tui.c (tui_enable): Register tui hooks after calling
18217 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18219 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18221 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18223 * thread.c (print_thread_info_1): Fix indentation.
18225 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18227 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18228 unique_xmalloc_ptr outside the if to always free the demangled name.
18230 2020-01-08 Tom Tromey <tromey@adacore.com>
18232 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18233 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18234 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18235 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18237 (section_offsets): New typedef.
18238 * symtab.c (fixup_section, get_msymbol_address): Update.
18239 * symmisc.c (dump_msymbols): Update.
18240 * symfile.h (relative_addr_info_to_section_offsets)
18241 (symfile_map_offsets_to_segments): Update.
18242 * symfile.c (build_section_addr_info_from_objfile)
18243 (init_objfile_sect_indices): Update.
18244 (struct place_section_arg): Change type of "offsets".
18245 (place_section): Update.
18246 (relative_addr_info_to_section_offsets): Change type of
18247 "section_offsets". Remove "num_sections" parameter.
18248 (default_symfile_offsets, syms_from_objfile_1)
18249 (set_objfile_default_section_offset): Update.
18250 (reread_symbols): No need to preserve section offsets by hand.
18251 (symfile_map_offsets_to_segments): Change type of "offsets".
18252 * stap-probe.c (relocate_address): Update.
18253 * stabsread.h (process_one_symbol): Update.
18254 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18255 (solib_target_relocate_section_addresses): Update.
18256 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18258 * solib-frv.c (frv_relocate_main_executable): Update.
18259 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18260 * solib-aix.c (solib_aix_get_section_offsets): Change return
18262 (solib_aix_solib_create_inferior_hook): Update.
18263 * remote.c (remote_target::get_offsets): Update.
18264 * psymtab.c (find_pc_sect_psymtab): Update.
18265 * psympriv.h (struct partial_symbol) <address, text_low,
18266 text_high>: Update.
18267 * objfiles.h (obj_section_offset): Update.
18268 (struct objfile) <section_offsets>: Change type.
18269 <num_sections>: Remove.
18270 (objfile_relocate): Update.
18271 * objfiles.c (entry_point_address_query): Update
18272 (relocate_one_symbol): Change type of "section_offsets".
18273 (objfile_relocate1, objfile_relocate1): Change type of
18275 (objfile_rebase1): Update.
18276 * mipsread.c (mipscoff_symfile_read): Update.
18277 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18279 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18280 (parse_external, psymtab_to_symtab_1): Update.
18281 * machoread.c (macho_symfile_offsets): Update.
18282 * ia64-tdep.c (ia64_find_unwind_table): Update.
18283 * hppa-tdep.c (read_unwind_info): Update.
18284 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18285 * dwarf2read.c (create_addrmap_from_index)
18286 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18287 (process_psymtab_comp_unit_reader, add_partial_symbol)
18288 (add_partial_subprogram, process_full_comp_unit)
18289 (read_file_scope, read_func_scope, read_lexical_block_scope)
18290 (read_call_site_scope, dwarf2_rnglists_process)
18291 (dwarf2_ranges_process, dwarf2_ranges_read)
18292 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18293 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18295 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18297 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18298 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18299 (process_one_symbol): Change type of "section_offsets".
18300 * ctfread.c (get_objfile_text_range): Update.
18301 * coffread.c (coff_symtab_read, enter_linenos)
18302 (process_coff_symbol): Update.
18303 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18304 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18306 2020-01-08 Tom Tromey <tromey@adacore.com>
18308 * dwarf2read.c (parse_macro_definition): Use std::string.
18309 (parse_macro_definition): Likewise.
18311 2020-01-08 Tom Tromey <tromey@adacore.com>
18313 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18314 (ATTR_ALLOC_CHUNK): Remove.
18316 2020-01-08 Tom Tromey <tromey@adacore.com>
18318 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18320 2020-01-08 Tom Tromey <tromey@adacore.com>
18322 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18323 (dwarf2_compute_name, open_dwo_file): Likewise.
18324 (process_enumeration_scope): Use std::vector.
18325 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18326 (partial_die_info::fixup, dwarf2_start_subfile)
18327 (guess_full_die_structure_name, dwarf2_name): Likewise.
18328 (determine_prefix): Update.
18329 (guess_full_die_structure_name): Make return type const.
18330 (partial_die_full_name): Return unique_xmalloc_ptr.
18331 (DW_FIELD_ALLOC_CHUNK): Remove.
18333 2020-01-07 Tom Tromey <tromey@adacore.com>
18336 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18338 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18340 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18342 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18344 * stack.c (print_frame_info): Move disassemble_next_line code
18345 inside source_print block.
18347 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18349 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18350 gdb/signals.h, as we are now using native signal symbols.
18352 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18354 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18355 overflow by an early check of content vs threshold.
18356 * tui/tui-source.c (tui_source_window::line_is_displayed):
18359 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18361 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18363 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18365 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18366 export table if no section contains it's RVA.
18368 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18370 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18372 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18374 * source.c (print_source_lines_base): Set last_line_listed.
18376 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18378 * tui/tui-disasm.c: Remove trailing spaces.
18380 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18381 Pedro Alves <palves@redhat.com>
18383 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18384 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18385 (windows_gdb_signal_to_target): New function, uses the above
18386 enumeration to convert GDB internal signal codes to equivalent
18388 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18389 * windows-nat.c: Include "gdb_wait.h".
18390 (get_windows_debug_event): Extract the fatal exception from the
18391 exit status and convert to the equivalent Posix signal number.
18392 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18393 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18394 * gdbsupport/gdb_wait.c: New file, implements
18395 windows_status_to_termsig.
18396 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18397 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18399 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18401 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18404 2020-01-05 Luis Machado <luis.machado@linaro.org>
18406 * aarch64-linux-nat.c
18407 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18408 and bfd_mach_aarch64.
18410 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18412 * ui-file.c (stdio_file::can_emit_style_escape)
18413 (tee_file::can_emit_style_escape): Ensure style is used also on
18414 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18416 * main.c (set_gdb_data_directory): Use file style to output the
18417 warning that the given pathname is not a directory.
18418 * top.c (show_history_filename, gdb_safe_append_history)
18419 (show_gdb_datadir): Use file style.
18421 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18423 * solib-target.c (struct lm_info_target):
18424 Change offsets to be a unique_xmalloc_ptr.
18425 (solib_target_relocate_section_addresses): Update.
18427 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18429 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18431 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18433 * MAINTAINERS (Write After Approval): Add myself.
18435 2020-01-02 Luis Machado <luis.machado@linaro.org>
18437 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18438 Cell BE architecture.
18439 * target.h (struct target_ops) <thread_architecture>: Likewise.
18441 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18443 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18445 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18447 * MAINTAINERS (Write After Approval): Add myself.
18449 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18451 * gdbarch.sh: Update copyright year range of generated files.
18453 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18455 Update copyright year range in all GDB files.
18457 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18459 * copyright.py: Convert to Python 3.
18461 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18463 * copyright.py: Adapt after move of gnulib directory from gdb
18464 directory to toplevel directory.
18466 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18468 * copyright.py (main): Exit if run from the wrong directory.
18470 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18472 * top.c (print_gdb_version): Change copyright year to 2020.
18474 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18476 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18478 For older changes see ChangeLog-2019.
18484 version-control: never