Add myself to gdb/MAINTAINERS
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
4 macro.
5 (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
6 second parameter, which is a small sigcode in the legacy case, and a
7 pointer in the siginfo case.
8
9 * MAINTAINERS (Write After Approval): Add myself.
10
11 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
12
13 * frame.c: Remove trailing white spaces.
14 * frame.h: Likewise.
15
16 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
17
18 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
19
20 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
21
22 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
23 * configure.host (host to gdb names): Add arc*-*-linux*.
24 * configure.nat (gdb_host_cpu): Add arc.
25 * arc-linux-nat.c: New.
26
27 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
28
29 * arc-linux-tdep.c (supply_register): New.
30 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
31 arc_linux_collect_v2_regset): Consider REGNUM.
32
33 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
34
35 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
36 (arc_linux_is_sigtramp): New function.
37 (arc_linux_sigcontext_addr): Likewise.
38 (arc_linux_init_osabi): Use them.
39
40 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
41
42 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
43 (arc_sigtramp_frame_this_id): Likewise.
44 (arc_sigtramp_frame_prev_register): Likewise.
45 (arc_sigtramp_frame_sniffer): Likewise.
46 (arc_siftramp_frame_unwind): New global variable.
47 (arc_gdbarch_init): Use sigtramp capabilities.
48 (arc_dump_tdep): Print sigtramp fields.
49 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
50
51 2020-12-21 Tom Tromey <tom@tromey.com>
52
53 * expression.h (enum noside): Move earlier.
54
55 2020-12-21 Peter Waller <p@pwaller.net>
56
57 * interps.c (interpreter_exec_cmd): Restore streams pointers.
58
59 2020-12-21 Markus Metzger <markus.t.metzger@intel.com>
60
61 * record.c (require_record_target): Rephrase error message.
62 (info_record_command): Likewise.
63
64 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
65
66 PR exp/27070
67 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
68
69 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
70
71 * configure.ac: Move the static libs vs. source-highlight
72 error message to a better place.
73 * configure: Regenerate.
74
75 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
76
77 * gdb-gdb.py.in: Fix main_type field name.
78
79 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
80
81 * python/py-value.c (valpy_format_string): Implement address keyword.
82
83 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
84
85 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
86
87 2020-12-18 Jameson Nash <vtjnash@gmail.com>
88
89 * coffread.c (linetab_offset): Change type to file_ptr.
90 (linetab_size): Likewise.
91 (enter_linenos): Change parameter type to file_ptr.
92 (init_lineno): Likewise.
93 (init_stringtab): Likewise.
94 (coff_symtab_read): Likewise.
95 (coff_symfile_read): Change variable types to file_ptr.
96
97 2020-12-17 Tom Tromey <tromey@adacore.com>
98
99 * printcmd.c (print_variable_and_value): Don't use n_spaces.
100
101 2020-12-17 Tom Tromey <tromey@adacore.com>
102
103 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
104 (print_gnat_stuff, print_fixed_point_type_info)
105 (recursive_dump_type): Update.
106 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
107 * c-typeprint.c (c_type_print_base_struct_union)
108 (c_type_print_base_1): Update.
109 * rust-lang.c (rust_internal_print_type): Update.
110 * f-typeprint.c (f_language::f_type_print_base): Update.
111 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
112 * m2-typeprint.c (m2_record_fields): Update.
113 * p-typeprint.c (pascal_type_print_base): Update.
114 * compile/compile-loc2c.c (push, pushf, unary, binary)
115 (do_compile_dwarf_expr_to_c): Update.
116 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
117
118 2020-12-16 Tom Tromey <tom@tromey.com>
119
120 * rust-exp.y (rust_lex_tests): Update.
121 * parser-defs.h (parser_state): Add void_p parameter.
122 <void_context_p>: New member.
123 * parse.c (parse_exp_in_context): Update.
124 * language.h (language_defn::post_parser): Remove void_context_p,
125 completing, tracker parameters. Add parser state.
126 * ada-lang.c (ada_language::post_parser): Update.
127
128 2020-12-16 Tom Tromey <tom@tromey.com>
129
130 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
131 (parse_exp_in_context): Change void_context_p to bool.
132 * language.h (struct language_defn) <post_parser>: Change
133 void_context_p to bool.
134 * ada-lang.c (class ada_language) <post_parser>: Update.
135
136 2020-12-16 Tom Tromey <tom@tromey.com>
137 Tom Tromey <tromey@redhat.com>
138 Tom de Vries <tdevries@suse.de>
139
140 * utils.h (get_chars_per_line): Declare.
141 * utils.c (get_chars_per_line): New function.
142 (fputs_maybe_filtered): Handle '\r'.
143 * ui-out.h (ui_out::progress_meter): New class.
144 (ui_out::progress, ui_out::do_progress_start)
145 (ui_out::do_progress_notify, ui_out::do_progress_end): New
146 methods.
147 * ui-out.c (do_progress_end)
148 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
149 functions.
150 * mi/mi-out.h (mi_ui_out::do_progress_start)
151 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
152 methods.
153 * cli-out.h (struct cli_ui_out) <do_progress_start,
154 do_progress_notify, do_progress_end>: New methods.
155 <enum meter_stat, struct cli_progress_info>: New.
156 <m_meters>: New member.
157 * cli-out.c (cli_ui_out::do_progress_start)
158 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
159 methods.
160
161 2020-12-16 Luis Machado <luis.machado@linaro.org>
162
163 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
164
165 2020-12-16 Luis Machado <luis.machado@linaro.org>
166
167 * aarch64-linux-nat.c
168 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
169
170 2020-12-15 Rae Kim <rae.kim@gmail.com>
171
172 * cli/cli-script.c (do_document_command): Rename from
173 document_command. Handle multi-line input.
174 (multi_line_command_p): Handle document_control.
175 (build_command_line): Likewise.
176 (execute_control_command_1): Likewise.
177 (process_next_line): Likewise.
178 (document_command): Call do_document_command.
179 * cli/cli-script.h (enum command_control_type): Add
180 document_control.
181
182 2020-12-15 Tom Tromey <tom@tromey.com>
183
184 * stap-probe.c (stap_probe::evaluate_argument): Use
185 evaluate_expression.
186 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
187 evaluate_expression.
188 * value.h (evaluate_expression): Add expect_type parameter.
189 * objc-lang.c (print_object_command): Call evaluate_expression.
190 * eval.c (evaluate_expression): Add expect_type parameter.
191
192 2020-12-15 Tom Tromey <tom@tromey.com>
193
194 * varobj.c (varobj_create): Use first_opcode.
195 * value.c (init_if_undefined_command): Use first_opcode.
196 * typeprint.c (whatis_exp): Use first_opcode.
197 * tracepoint.c (validate_actionline): Use first_opcode.
198 (encode_actions_1): Use first_opcode.
199 * stack.c (return_command): Use first_opcode.
200 * expression.h (struct expression) <first_opcode>: New method.
201 * eval.c (parse_and_eval_type): Use first_opcode.
202 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
203
204 2020-12-15 Tom Tromey <tom@tromey.com>
205
206 * f-lang.c (evaluate_subexp_f): Update.
207 * expression.h (evaluate_subexp_do_call): Update.
208 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
209 nargs, argvec with array_view.
210 (evaluate_funcall): Update.
211
212 2020-12-15 Tom Tromey <tom@tromey.com>
213
214 * ada-lang.c (num_component_specs): Remove.
215 (assign_aggregate): Update.
216 (aggregate_assign_positional, aggregate_assign_from_choices)
217 (aggregate_assign_others, add_component_interval): Change
218 arguments.
219
220 2020-12-15 Tom Tromey <tromey@adacore.com>
221
222 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
223 command names.
224
225 2020-12-14 Tom Tromey <tom@tromey.com>
226
227 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
228 * typeprint.c (whatis_exp): Always use evaluate_type.
229 (maintenance_print_type): Likewise. Simplify.
230
231 2020-12-14 Tom Tromey <tromey@adacore.com>
232
233 * dictionary.c (language_defn::search_name_hash): Ignore "B".
234 * ada-lang.c (advance_wild_match): Ignore "B".
235 (full_match): Remove.
236 (do_full_match): Rewrite.
237
238 2020-12-14 Tom Tromey <tromey@adacore.com>
239
240 * ada-lang.c (get_var_value): Only consider exact matches.
241
242 2020-12-14 Tom Tromey <tromey@adacore.com>
243
244 * dwarf2/read.c (rewrite_array_type): New function.
245 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
246
247 2020-12-14 Tom Tromey <tromey@adacore.com>
248
249 * valarith.c (fixed_point_binop): Call error on division by zero.
250
251 2020-12-13 Tom Tromey <tom@tromey.com>
252
253 * gdbtypes.c (safe_parse_type): Make argument const.
254 * value.h (parse_and_eval_type): Make argument const.
255 * eval.c (parse_and_eval_type): Make argument const.
256
257 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
258
259 * NEWS: Mention new commands.
260 * target-dcache.c: Add 'cli/cli-cmds.h' include.
261 (maint_flush_dcache_command): New function.
262 (_initialize_target_dcache): Create new 'maint flush dcache'
263 command.
264
265 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * NEWS: Mention new commands, and that the old commands are now
268 deprecated.
269 * cli/cli-cmds.c (maintenanceflushlist): Define.
270 * cli/cli-cmds.h (maintenanceflushlist): Declare.
271 * maint.c (_initialize_maint_cmds): Initialise
272 maintenanceflushlist.
273 * regcache.c: Add 'cli/cli-cmds.h' include.
274 (reg_flush_command): Add header comment.
275 (_initialize_regcache): Create new 'maint flush register-cache'
276 command, make 'flushregs' an alias.
277 * symtab.c: Add 'cli/cli-cmds.h' include.
278 (_initialize_symtab): Create new 'maint flush symbol-cache'
279 command, make old command an alias.
280
281 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
284 result from lookup_cmd_composition_1, use the prefixes from both
285 the command and the alias instead.
286 (lookup_cmd_composition_1): Initial prefix command is the based on
287 the search list being passed in. Simplify the logic for tracking
288 the prefix command. Replace a use of alloca with a local
289 std::string.
290
291 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
292
293 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
294 of NULL. Don't print message piece by piece, but sentence at a
295 time to allow internationalisation. Some whitespace cleanup.
296
297 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 PR cli/15104
300 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
301 deprecated_cmd_warning.
302 (deprecated_cmd_warning): Take extra parameter, call
303 lookup_cmd_composition_1 and pass new parameter through.
304 (lookup_cmd_composition_1): New function, takes implementation of
305 lookup_cmd_composition but with extra parameter.
306 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
307 passing in cmdlist.
308 * command.h (deprecated_cmd_warning): Add extra parameter to
309 declaration.
310 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
311
312 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
315 command.h, add extra parameter, and use this to guard giving a
316 warning.
317 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
318 include argument names in declaration, add new argument.
319 * completer.c (complete_line_internal_1): Remove unneeded
320 brackets, pass extra argument to lookup_cmd_1.
321
322 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * infrun.h (debug_infrun): Make a bool.
325 * infrun.c (debug_infrun): Make a bool.
326 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
327 debug infrun".
328
329 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
330
331 * displaced-stepping.h (displaced_debug_printf): Use
332 debug_prefixed_printf_cond.
333 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
334 (dwarf_read_debug_printf_v): Likewise.
335 * infrun.h (infrun_debug_printf): Likewise.
336 * linux-nat.c (linux_nat_debug_printf): Likewise.
337
338 2020-12-11 Tom Tromey <tom@tromey.com>
339
340 * p-exp.y (intvar): Remove global.
341 (DOLLAR_VARIABLE): Change type.
342 (start): Update.
343 (exp): Call write_dollar_variable here...
344 (yylex): ... not here.
345 * m2-exp.y (DOLLAR_VARIABLE): Change type.
346 (variable): Call write_dollar_variable here...
347 (yylex): ... not here.
348 * f-exp.y (DOLLAR_VARIABLE): Change type.
349 (exp): Call write_dollar_variable here...
350 (yylex): ... not here.
351
352 2020-12-11 Tom Tromey <tom@tromey.com>
353
354 * varobj.c (varobj_create): Update.
355 (install_variable): Return void.
356
357 2020-12-11 Tom Tromey <tom@tromey.com>
358
359 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
360
361 2020-12-11 Tom Tromey <tom@tromey.com>
362
363 * varobj.c (varobj_clear_saved_item): Remove.
364 (update_dynamic_varobj_children): Update.
365 (varobj::~varobj): Don't call varobj_clear_saved_item.
366
367 2020-12-11 Tom Tromey <tom@tromey.com>
368
369 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
370 (update_dynamic_varobj_children, create_child)
371 (create_child_with_value): Update.
372 * varobj-iter.h (struct varobj_item) <value>: Now a
373 value_ref_ptr.
374 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
375
376 2020-12-11 Tom Tromey <tom@tromey.com>
377
378 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
379 (varobj_get_iterator): Return unique_ptr.
380 (update_dynamic_varobj_children, install_visualizer)
381 (varobj::~varobj): Update.
382 * python/python-internal.h (py_varobj_get_iterator): Return
383 unique_ptr.
384 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
385
386 2020-12-11 Tom Tromey <tom@tromey.com>
387
388 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
389 (varobj_clear_saved_item, update_dynamic_varobj_children):
390 Update.
391
392 2020-12-11 Tom Tromey <tom@tromey.com>
393
394 * varobj.c (update_dynamic_varobj_children): Update.
395 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
396 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
397 type.
398 (py_varobj_iter::next): Likewise.
399
400 2020-12-11 Tom Tromey <tom@tromey.com>
401
402 * varobj.c (update_dynamic_varobj_children, install_visualizer)
403 (varobj::~varobj): Update.
404 * varobj-iter.h (struct varobj_iter): Change to interface class.
405 (struct varobj_iter_ops): Remove.
406 (varobj_iter_next, varobj_iter_delete): Remove.
407 * python/py-varobj.c (struct py_varobj_iter): Derive from
408 varobj_iter. Add constructor, destructor. Rename members.
409 (py_varobj_iter::~py_varobj_iter): Rename from
410 py_varobj_iter_dtor.
411 (py_varobj_iter::next): Rename from py_varobj_iter_next.
412 (py_varobj_iter_ops): Remove.
413 (py_varobj_iter): Rename from py_varobj_iter_ctor.
414 (py_varobj_iter_new): Remove.
415 (py_varobj_get_iterator): Update.
416
417 2020-12-11 Tom Tromey <tom@tromey.com>
418
419 * varobj.h (all_root_varobjs): Take a function_view.
420 * varobj.c (all_root_varobjs): Take a function_view.
421 (varobj_invalidate_iter): Remove unused parameter.
422 (varobj_invalidate): Update.
423 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
424 (mi_cmd_var_update_iter): Change parameters.
425
426 2020-12-11 Tom Tromey <tom@tromey.com>
427
428 * varobj.c (struct varobj_root) <next>: Remove.
429 (struct vlist): Remove.
430 (rootlist): Now a std::list.
431 (install_variable, uninstall_variable, all_root_varobjs): Update.
432
433 2020-12-11 Tom Tromey <tom@tromey.com>
434
435 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
436 (varobj_table): Now htab_t.
437 (varobj_get_handle, install_variable, uninstall_variable):
438 Update.
439 (hash_varobj, eq_varobj_and_string): New functions.
440 (hash_varobj): Update.
441
442 2020-12-11 Tom Tromey <tom@tromey.com>
443
444 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
445 * ada-lang.c (check_status_exception): Update.
446 * breakpoint.c (free_bp_location): Remove.
447 (decref_bp_location): Use bp_location_ref_policy.
448 (bpstats::bpstats): Don't call incref_bp_location.
449 (bpstats::~bpstats): Remove.
450 (bpstats::bpstats): Update.
451 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
452 (bp_location::bp_location): Update.
453 (incref_bp_location): Remove.
454 (bkpt_print_it): Update.
455 * breakpoint.h (class bp_location): Derive from
456 refcounted_object.
457 (struct bpstats): Remove destructor.
458 <bp_location_at>: Now a bp_location_ref_ptr.
459 <refc>: Remove.
460 (bp_location_ref_ptr): New typedef.
461 (struct bp_location_ref_policy): New.
462
463 2020-12-11 Tom Tromey <tom@tromey.com>
464
465 * thread.c (class scoped_inc_dec_ref): Remove.
466 (tp_array_compar_ascending, tp_array_compar_descending): Change
467 parameter types.
468 (thread_apply_all_command): Use thread_info_ref.
469
470 2020-12-11 Tom Tromey <tom@tromey.com>
471
472 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
473 (stop_context::stop_context): Update.
474 (stop_context::~stop_context): Remove.
475
476 2020-12-11 Tom Tromey <tom@tromey.com>
477
478 * inferior.c (current_inferior_): Change type.
479 (current_inferior, set_current_inferior, initialize_inferiors):
480 Update.
481
482 2020-12-11 Tom Tromey <tom@tromey.com>
483
484 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
485 Change type.
486
487 2020-12-11 Tom Tromey <tromey@adacore.com>
488
489 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
490 field.
491 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
492 (read_atcb): Use cpu_id_offset.
493
494 2020-12-10 Kevin Buettner <kevinb@redhat.com>
495
496 * ada-lang.c (ada_fold_name): Fix off-by-one error.
497
498 2020-12-10 Luis Machado <luis.machado@linaro.org>
499
500 * breakpoint.c (should_be_inserted): Don't output newline.
501
502 2020-12-10 Luis Machado <luis.machado@linaro.org>
503
504 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
505 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
506 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
507 * arch/aarch64.h: ... here.
508 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
509 (aarch64_maybe_swab128): New function.
510 (aarch64_sve_regs_copy_to_reg_buf)
511 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
512 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
513 the data field.
514 (TF_REG_VALUE_BYTES): New enum value.
515 (trad_frame_value_bytes_p): New function.
516 (trad_frame_set_value_bytes): New function.
517 (trad_frame_set_reg_value_bytes): New function.
518 (trad_frame_get_prev_register): Handle register values saved as bytes.
519 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
520 (struct trad_frame_saved_reg) <data>: New field.
521 (trad_frame_set_value_bytes): New prototype.
522 (trad_frame_value_bytes_p): New prototype.
523
524 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
525
526 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
527 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
528 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
529
530 2020-12-09 Tom Tromey <tromey@adacore.com>
531
532 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
533
534 2020-12-09 Tom Tromey <tromey@adacore.com>
535
536 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
537 and "denominator" to gdb_mpz. Handle block forms.
538 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
539 "denominator" to gdb_mpz.
540 (finish_fixed_point_type): Update.
541 (has_zero_over_zero_small_attribute): Update.
542
543 2020-12-09 Tom Tromey <tromey@adacore.com>
544
545 * expprint.c (op_name): Update.
546 * expression.h (enum exp_opcode): Update.
547 * std-operator.def: Add more opcodes.
548 * ada-operator.def, fortran-operator.def: Remove, moving contents
549 into std-operator.def.
550
551 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
552
553 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
554 Return {} instead of false.
555 (get_discrete_bounds): Compute high bound only if low bound is
556 valid.
557
558 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
559
560 PR 26875, PR 26901
561 * gdbtypes.c (get_discrete_low_bound): Make non-static.
562 (get_discrete_high_bound): Make non-static.
563 * gdbtypes.h (get_discrete_low_bound): New declaration.
564 (get_discrete_high_bound): New declaration.
565 * valarith.c (value_subscript): Only fetch high bound if
566 necessary.
567
568 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
569
570 * gdbtypes.c (get_discrete_bounds): Implement with
571 get_discrete_low_bound and get_discrete_high_bound.
572 (get_discrete_low_bound): New.
573 (get_discrete_high_bound): New.
574
575 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
576
577 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
578 callers.
579 * gdbtypes.c (get_discrete_bounds): Return bool.
580
581 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
582
583 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
584 (ada_value_slice): Adjust.
585 (pos_atr): Adjust.
586 * gdbtypes.c (get_discrete_bounds): Adjust.
587 (discrete_position): Return optional.
588 * gdbtypes.h (discrete_position): Return optional.
589
590 2020-12-07 Tom Tromey <tromey@adacore.com>
591
592 * maint.c (_initialize_maint_cmds): Use expression command
593 completer for "maint print type".
594
595 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
596
597 * completer.c (complete_explicit_location): Also add keywords
598 that start with '-' to the completion list.
599
600 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
601
602 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
603 keyword may be followed by any keyword.
604 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
605 'toklen' in the case for "-force-condition".
606
607 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
608
609 * main.c (catch_command_errors): Add a flag parameter; invoke
610 `bpstat_do_actions` if the flag is set.
611 (execute_cmdargs): Update a call to `catch_command_errors`.
612
613 2020-12-07 Tom de Vries <tdevries@suse.de>
614
615 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
616
617 2020-12-06 Tom Tromey <tom@tromey.com>
618
619 PR ada/26999
620 * ada-lang.c (replace_operator_with_call): Rewrite.
621
622 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
623
624 PR breakpoints/27009
625 * s390-tdep.h (op_bc): Correct BC opcode value.
626
627 2020-12-06 Joel Brobecker <brobecker@adacore.com>
628
629 * gmp-utils.h (gdb_mpz::safe_export): New private method.
630 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
631 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
632 (gdb_mpz::safe_export): New method.
633 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
634 Update function description.
635 (check_as_integer_raises_out_of_range_error): New function.
636 (gdb_mpz_as_integer_out_of_range): New function.
637 (_initialize_gmp_utils_selftests): Register
638 gdb_mpz_as_integer_out_of_range as a selftest.
639
640 2020-12-05 Joel Brobecker <brobecker@adacore.com>
641
642 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
643 TARGET_CHAR_BIT.
644 (gdb_mpz::write): Likewise.
645
646 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
647
648 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
649 number of displaced step buffers.
650
651 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
652
653 * displaced-stepping.h (struct displaced_step_buffer): Rename
654 to...
655 (struct displaced_step_buffers): ... this.
656 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
657 <struct displaced_step_buffer>: New inner class.
658 <m_buffers>: New.
659 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
660 to...
661 (displaced_step_buffers::prepare): ... this, adjust for multiple
662 buffers.
663 (displaced_step_buffer::finish): Rename to...
664 (displaced_step_buffers::finish): ... this, adjust for multiple
665 buffers.
666 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
667 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
668 adjust for multiple buffers.
669 (displaced_step_buffer::restore_in_ptid): Rename to...
670 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
671 multiple buffers.
672 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
673 for num_disp_step_buffers.
674 * linux-tdep.c (struct linux_gdbarch_data)
675 <num_disp_step_buffers>: New field.
676 (struct linux_info) <disp_step_buf>: Rename to...
677 <disp_step_bufs>: ... this, change type to
678 displaced_step_buffers.
679 (linux_displaced_step_prepare): Use
680 linux_gdbarch_data::num_disp_step_buffers to create that number
681 of buffers.
682 (linux_displaced_step_finish): Adjust.
683 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
684 (linux_displaced_step_restore_all_in_ptid): Adjust.
685 (linux_init_abi): Change supports_displaced_step parameter for
686 num_disp_step_buffers, save it in linux_gdbarch_data.
687 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
688 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
689 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
690 supports_displaced_step parameter for num_disp_step_buffers.
691 (amd64_linux_init_abi): Adjust.
692 (amd64_x32_linux_init_abi): Adjust.
693 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
694 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
695 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
696 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
697 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
698 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
699 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
700 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
701 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
702 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
703 * m68k-linux-tdep.c (m68k_linux_init_abi):
704 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
705 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
706 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
707 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
708 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
709 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
710 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
711 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
712 Change type to displaced_step_buffers.
713 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
714 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
715 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
716 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
717 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
718 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
719 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
720
721 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
722
723 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
724 obkstack.
725 (_initialize_linux_tdep): Register pre-init gdb data instead of
726 post-init.
727
728 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
729
730 * displaced-stepping.h (struct
731 displaced_step_copy_insn_closure): Adjust comments.
732 (struct displaced_step_inferior_state) <step_thread,
733 step_gdbarch, step_closure, step_original, step_copy,
734 step_saved_copy>: Remove fields.
735 (struct displaced_step_thread_state): New.
736 (struct displaced_step_buffer): New.
737 * displaced-stepping.c (displaced_step_buffer::prepare): New.
738 (write_memory_ptid): Move from infrun.c.
739 (displaced_step_instruction_executed_successfully): New,
740 factored out of displaced_step_finish.
741 (displaced_step_buffer::finish): New.
742 (displaced_step_buffer::copy_insn_closure_by_addr): New.
743 (displaced_step_buffer::restore_in_ptid): New.
744 * gdbarch.sh (displaced_step_location): Remove.
745 (displaced_step_prepare, displaced_step_finish,
746 displaced_step_copy_insn_closure_by_addr,
747 displaced_step_restore_all_in_ptid): New.
748 * gdbarch.c: Re-generate.
749 * gdbarch.h: Re-generate.
750 * gdbthread.h (class thread_info) <displaced_step_state>: New
751 field.
752 (thread_step_over_chain_remove): New declaration.
753 (thread_step_over_chain_next): New declaration.
754 (thread_step_over_chain_length): New declaration.
755 * thread.c (thread_step_over_chain_remove): Make non-static.
756 (thread_step_over_chain_next): New.
757 (global_thread_step_over_chain_next): Use
758 thread_step_over_chain_next.
759 (thread_step_over_chain_length): New.
760 (global_thread_step_over_chain_enqueue): Add debug print.
761 (global_thread_step_over_chain_remove): Add debug print.
762 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
763 Remove.
764 * infrun.c (get_displaced_stepping_state): New.
765 (displaced_step_in_progress_any_inferior): Remove.
766 (displaced_step_in_progress_thread): Adjust.
767 (displaced_step_in_progress): Adjust.
768 (displaced_step_in_progress_any_thread): New.
769 (get_displaced_step_copy_insn_closure_by_addr): Remove.
770 (gdbarch_supports_displaced_stepping): Use
771 gdbarch_displaced_step_prepare_p.
772 (displaced_step_reset): Change parameter from inferior to
773 thread.
774 (displaced_step_prepare_throw): Implement using
775 gdbarch_displaced_step_prepare.
776 (write_memory_ptid): Move to displaced-step.c.
777 (displaced_step_restore): Remove.
778 (displaced_step_finish): Implement using
779 gdbarch_displaced_step_finish.
780 (start_step_over): Allow starting more than one displaced step.
781 (prepare_for_detach): Handle possibly multiple threads doing
782 displaced steps.
783 (handle_inferior_event): Handle possibility that fork event
784 happens while another thread displaced steps.
785 * linux-tdep.h (linux_displaced_step_prepare): New.
786 (linux_displaced_step_finish): New.
787 (linux_displaced_step_copy_insn_closure_by_addr): New.
788 (linux_displaced_step_restore_all_in_ptid): New.
789 (linux_init_abi): Add supports_displaced_step parameter.
790 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
791 (linux_displaced_step_prepare): New.
792 (linux_displaced_step_finish): New.
793 (linux_displaced_step_copy_insn_closure_by_addr): New.
794 (linux_displaced_step_restore_all_in_ptid): New.
795 (linux_init_abi): Add supports_displaced_step parameter,
796 register displaced step methods if true.
797 (_initialize_linux_tdep): Register inferior_execd observer.
798 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
799 supports_displaced_step parameter, adjust call to
800 linux_init_abi. Remove call to
801 set_gdbarch_displaced_step_location.
802 (amd64_linux_init_abi): Adjust call to
803 amd64_linux_init_abi_common.
804 (amd64_x32_linux_init_abi): Likewise.
805 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
806 linux_init_abi. Remove call to
807 set_gdbarch_displaced_step_location.
808 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
809 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
810 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
811 linux_init_abi.
812 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
813 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
814 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
815 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
816 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
817 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
818 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
819 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
820 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
821 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
822 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
823 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
824 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
825 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
826 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
827 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
828 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
829 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
830 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
831 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
832 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
833 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
834 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
835 linux_init_abi. Remove call to
836 set_gdbarch_displaced_step_location.
837 * arm-tdep.c (arm_pc_is_thumb): Call
838 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
839 get_displaced_step_copy_insn_closure_by_addr.
840 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
841 clear gdbarch methods.
842 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
843 (get_ppc_per_inferior): New function.
844 (ppc_displaced_step_prepare): New function.
845 (ppc_displaced_step_finish): New function.
846 (ppc_displaced_step_restore_all_in_ptid): New function.
847 (rs6000_gdbarch_init): Register new gdbarch methods.
848 * s390-tdep.c (s390_gdbarch_init): Don't call
849 set_gdbarch_displaced_step_location, set new gdbarch methods.
850
851 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
852
853 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
854 * aarch64-tdep.h: Include displaced-stepping.h.
855 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
856 Move here.
857 (displaced_step_copy_insn_closure_up): Move here.
858 (struct buf_displaced_step_copy_insn_closure): Move here.
859 (struct displaced_step_inferior_state): Move here.
860 (debug_displaced): Move here.
861 (displaced_debug_printf_1): Move here.
862 (displaced_debug_printf): Move here.
863 * displaced-stepping.c: New file.
864 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
865 * gdbarch.h: Re-generate.
866 * inferior.h: Include displaced-stepping.h.
867 * infrun.h (debug_displaced): Move to displaced-stepping.h.
868 (displaced_debug_printf_1): Likewise.
869 (displaced_debug_printf): Likewise.
870 (struct displaced_step_copy_insn_closure): Likewise.
871 (displaced_step_copy_insn_closure_up): Likewise.
872 (struct buf_displaced_step_copy_insn_closure): Likewise.
873 (struct displaced_step_inferior_state): Likewise.
874 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
875 (displaced_debug_printf_1): Likewise.
876 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
877 Likewise.
878 (_initialize_infrun): Don't register "set/show debug displaced".
879
880 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
881
882 * linux-tdep.c (get_linux_inferior_data): Add inferior
883 parameter.
884 (linux_vsyscall_range): Pass current inferior.
885
886 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
887
888 * infrun.c (displaced_step_prepare_throw): Change return type to
889 displaced_step_prepare_status.
890 (displaced_step_prepare): Likewise.
891 (displaced_step_finish): Change return type to
892 displaced_step_finish_status.
893 (resume_1): Adjust.
894 (stop_all_threads): Adjust.
895 * displaced-stepping.h: New file.
896
897 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
898
899 * infrun.c (displaced_step_fixup): Rename to...
900 (displaced_step_finish): ... this, update all callers.
901
902 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
903
904 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
905 (get_displaced_step_copy_insn_closure_by_addr): ... this.
906 Update all users.
907 (displaced_step_closure): Rename to...
908 (displaced_step_copy_insn_closure): ... this. Update all users.
909 (displaced_step_closure_up): Rename to...
910 (displaced_step_copy_insn_closure_up). ... this. Update all
911 users.
912 (buf_displaced_step_closure): Rename to...
913 (buf_displaced_step_copy_insn_closure): ... this. Update all
914 users.
915 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
916 (get_displaced_step_copy_insn_closure_by_addr): ... this.
917 Update all users.
918 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
919 (aarch64_displaced_step_copy_insn_closure): ... this. Update
920 all users.
921 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
922 (amd64_displaced_step_copy_insn_closure): ... this. Update all
923 users.
924 * arm-tdep.h (arm_displaced_step_closure): Rename to...
925 (arm_displaced_step_copy_insn_closure): ... this. Update all
926 users.
927 * i386-tdep.h (i386_displaced_step_closure): Rename to...
928 (i386_displaced_step_copy_insn_closure): ... this. Update all
929 users.
930 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
931 (ppc_displaced_step_copy_insn_closure): ... this. Update all
932 users.
933 * s390-tdep.c (s390_displaced_step_closure): Rename to...
934 (s390_displaced_step_copy_insn_closure): ... this. Update all
935 users.
936 * gdbarch.h: Re-generate.
937 * gdbarch.c: Re-generate.
938
939 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
940
941 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
942 (global_thread_step_over_chain_enqueue): ... this. Update all
943 users.
944 (thread_step_over_chain_remove): Rename to...
945 (global_thread_step_over_chain_remove): ... this. Update all
946 users.
947 (thread_step_over_chain_next): Rename to...
948 (global_thread_step_over_chain_next): ... this. Update all
949 users.
950 * infrun.h (step_over_queue_head): Rename to...
951 (global_thread_step_over_chain_head): ... this. Update all
952 users.
953 * infrun.c (step_over_queue_head): Rename to...
954 (global_thread_step_over_chain_head): ... this. Update all
955 users.
956 * thread.c (step_over_chain_remove): Rename to...
957 (thread_step_over_chain_remove): ... this. Update all users.
958 (thread_step_over_chain_next): Rename to...
959 (global_thread_step_over_chain_next): ... this. Update all
960 users.
961 (thread_step_over_chain_enqueue): Rename to...
962 (global_thread_step_over_chain_enqueue): ... this. Update all
963 users.
964 (thread_step_over_chain_remove): Rename to...
965 (global_thread_step_over_chain_remove): ... this. Update all
966 users.
967
968 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
969
970 * infrun.c (get_displaced_stepping_state): Remove, change
971 callers to access the field directly.
972
973 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
974
975 * infrun.c (handle_inferior_event): Restore displaced step
976 buffer bytes in child process when handling fork, even if fork
977 happened in another thread than the displaced-stepping one.
978
979 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
980
981 * infrun.c (infrun_inferior_execd): New function.
982 (_initialize_infrun): Attach inferior_execd observer.
983
984 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
985
986 * observable.h (inferior_execd): Declare new observable.
987 * observable.c (inferior_execd): Declare new observable.
988 * infrun.c (follow_exec): Notify inferior_execd observer.
989 * jit.c (jit_inferior_created_hook): Make static.
990 (_initialize_jit): Register inferior_execd observer.
991 * jit.h (jit_inferior_created_hook): Remove declaration.
992 * solib.c (_initialize_solib): Register inferior_execd observer.
993
994 2020-12-04 Tom de Vries <tdevries@suse.de>
995
996 PR gdb/27003
997 * completer.c (completion_tracker::build_completion_result): Don't
998 access match_list[0][-1].
999
1000 2020-12-04 Tom Tromey <tromey@adacore.com>
1001
1002 * linespec.c (struct linespec_token): Rename; remove typedef.
1003 * guile/scm-block.c (struct block_smob): Remove typedef.
1004 (struct block_syms_progress_smob): Likewise.
1005 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
1006 * guile/scm-symtab.c (symtab_smob): Remove typedef.
1007 (struct sal_smob): Remove typedef.
1008 * guile/scm-param.c (struct param_smob): Remove typedef.
1009 * guile/scm-progspace.c (struct pspace_smob): Rename.
1010 * guile/scm-objfile.c (struct objfile_smob): Rename.
1011 * guile/scm-iterator.c (struct iterator_smob): Rename.
1012 * guile/scm-frame.c (struct frame_smob): Rename.
1013 * guile/scm-arch.c (struct arch_smob): Rename.
1014 * guile/scm-type.c (struct field_smob): Remove typedef.
1015 (struct type_smob): Rename.
1016 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1017 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1018 * guile/scm-value.c (struct value_smob): Remove typedef.
1019 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1020 * guile/guile-internal.h (struct scheme_variable)
1021 (struct scheme_function, struct scheme_integer_constant)
1022 (struct gdb_smob, struct chained_gdb_smob)
1023 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1024 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1025 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1026 (struct pretty_printer_worker_smob): Remove typedef.
1027 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1028 * python/py-block.c (struct block_object): Remove typedef.
1029 (block_syms_iterator_object): Update.
1030 (set_block): Update.
1031 (block_syms_iterator_object): Remove typedef.
1032 * python/py-inferior.c (struct membuf_object): Remove typedef.
1033 * python/py-symtab.c (struct symtab_object): Remove typedef.
1034 (set_symtab): Update.
1035 (sal_object): Remove typedef.
1036 (set_sal): Update.
1037 * python/py-frame.c (frame_object): Remove typedef.
1038 * python/py-record-btrace.c (struct btpy_list_object): Remove
1039 typedef.
1040 * python/py-arch.c (struct arch_object): Remove typedef.
1041 * python/py-linetable.c (struct linetable_entry_object)
1042 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1043 * python/py-events.h (eventregistry_object): Remove typedef.
1044 (struct events_object): Remove typedef.
1045 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1046 typedef.
1047 (thread_object): Remove typedef.
1048 * python/py-progspace.c (pspace_object): Remove typedef.
1049 * python/py-value.c (struct value_object): Remove typedef.
1050 * python/py-record.h (recpy_record_object): Remove typedef.
1051 (struct recpy_element_object): Remove typedef.
1052 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1053 * python/py-objfile.c (objfile_object): Remove typedef.
1054 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1055 * python/py-type.c (type_object): Remove typedef.
1056 (typy_iterator_object): Update.
1057 (set_type): Update.
1058 (field_object): Remove typedef.
1059 (typy_iterator_object): Remove typedef.
1060 * python/py-registers.c (register_descriptor_iterator_object):
1061 Remove typedef.
1062 (struct register_descriptor_object)
1063 (struct reggroup_iterator_object, struct reggroup_object): Remove
1064 typedef.
1065 * python/py-record.c (recpy_gap_object): Remove typedef.
1066 * python/py-symbol.c (symbol_object): Remove typedef.
1067 (set_symbol): Update.
1068 * python/py-event.h (event_object): Remove typedef.
1069 * python/py-param.c (parmpy_object): Remove typedef.
1070 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1071 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1072 (unwind_info_object, struct cached_frame_info): Likewise.
1073
1074 2020-12-04 Tom Tromey <tromey@adacore.com>
1075
1076 * value.c (value_internal_function_name): Make return type const.
1077 * value.h (value_internal_function_name): Make return type const.
1078
1079 2020-12-04 Luis Machado <luis.machado@linaro.org>
1080
1081 * aarch64-tdep.c (submask, bit, bits): Remove.
1082 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1083 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1084 (aarch64_decode_cb, aarch64_decode_tb)
1085 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1086 immediate.
1087 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1088
1089 2020-12-04 Tom de Vries <tdevries@suse.de>
1090
1091 PR tdep/27007
1092 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1093
1094 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1095
1096 PR gdb/26876
1097 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1098 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1099
1100 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1101
1102 * arch/riscv.c: Include 'rv32e-xregs.c'.
1103 (riscv_create_target_description): Update to handle rv32e.
1104 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1105 member variable.
1106 <operator==>: Update to account for new field.
1107 <hash>: Likewise.
1108 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1109 * features/riscv/rv32e-xregs.c: Generated.
1110 * features/riscv/rv32e-xregs.xml: New file.
1111 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1112 file.
1113 (riscv_debug_infcall): Likewise.
1114 (riscv_debug_unwinder): Likewise.
1115 (riscv_debug_gdbarch): Likewise.
1116 (enum riscv_register_required_status): Delete.
1117 (struct riscv_register_feature): Add constructor, delete default
1118 constructor, copy, and assign constructors.
1119 (struct riscv_register_feature::register_info) <required>: Delete.
1120 <check>: Update comment and arguments.
1121 (struct riscv_register_feature) <name>: Change to member function.
1122 <prefer_first_name>: Delete.
1123 <tdesc_feature>: New member function.
1124 <registers>: Rename to...
1125 <m_registers>: ...this.
1126 <m_feature_name>: New member variable.
1127 (riscv_register_feature::register_info::check): Update arguments.
1128 (riscv_xreg_feature): Rewrite as class, create a single static
1129 instance of the class.
1130 (riscv_freg_feature): Likewise.
1131 (riscv_virtual_feature): Likewise.
1132 (riscv_csr_feature): Likewise.
1133 (riscv_create_csr_aliases): Has become a member function inside
1134 riscv_csr_feature class.
1135 (riscv_abi_embedded): New function definition.
1136 (riscv_register_name): Adjust to use new feature objects.
1137 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1138 and adjust available argument registers.
1139 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1140 (riscv_check_tdesc_feature): Delete.
1141 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1142 (riscv_gdbarch_init): Delete target description checking code, and
1143 instead call to the new feature objects to perform the checks.
1144 Reorder handling of no abi information case, allows small code
1145 simplification.
1146 (_initialize_riscv_tdep): Remove call, this is now done in the
1147 riscv_csr_feature constructor.
1148 * riscv-tdep.h (riscv_abi_embedded): Declare.
1149
1150 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1153 DECLARE_CSR_ALIAS.
1154
1155 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1156
1157 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1158 implementation moved from riscv_register_reggroup_p.
1159 (riscv_register_reggroup_p): Update group handling for unknown
1160 CSRs.
1161
1162 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1163
1164 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1165 (dwarf2_get_dwz_file): Convert 'filename' to a
1166 std::string. Use dwz_search_other_debugdirs to search for DWZ
1167 files in the debug-file-directories provided by the user as well.
1168
1169 2020-12-01 Tom Tromey <tom@tromey.com>
1170
1171 * parse.c (expr_builder::expr_builder): Initialize expout.
1172 (expr_builder::release): Use expression::resize.
1173 (expression::expression, expression::~expression)
1174 (expression::resize): New methods.
1175 (write_exp_elt): Use expression::resize.
1176 (prefixify_expression): Update.
1177 (increase_expout_size): Use expression::resize.
1178 * expression.h (struct expression): Add constructor, destructor.
1179 <resize>: New method.
1180 (expression_up): Change type.
1181
1182 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1183 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1184 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1185 set region.
1186
1187 2020-11-30 Tom de Vries <tdevries@suse.de>
1188
1189 PR symtab/26905
1190 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1191 is_reference parameter.
1192 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1193
1194 2020-11-30 Tom Tromey <tom@tromey.com>
1195
1196 * rust-lang.c (rust_op_name): Remove.
1197 (exp_descriptor_rust): Update.
1198 * parser-defs.h (op_name_standard): Don't declare.
1199 (struct exp_descriptor) <op_name>: Remove.
1200 * parse.c (exp_descriptor_standard): Update.
1201 * opencl-lang.c (exp_descriptor_opencl): Update.
1202 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1203 * f-lang.c (op_name_f): Remove.
1204 (f_language::exp_descriptor_tab): Update.
1205 * expression.h (op_name): Update.
1206 * expprint.c (op_name): Rewrite.
1207 (op_name_standard): Remove.
1208 (dump_raw_expression, dump_subexp): Update.
1209 * c-lang.c (exp_descriptor_c): Update.
1210 * ax-gdb.c (gen_expr): Update.
1211 * ada-lang.c (ada_op_name): Remove.
1212 (ada_exp_descriptor): Update.
1213
1214 2020-11-30 Tom Tromey <tom@tromey.com>
1215
1216 * eval.c (init_array_element): Remove.
1217 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1218
1219 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1220
1221 PR tui/26973
1222 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1223 static locator win info.
1224
1225 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1226
1227 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1228 program.
1229
1230 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1231
1232 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1233 is always initialized.
1234
1235 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1236 * MAINTAINERS (Write After Approval): Add myself.
1237
1238 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1239
1240 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1241 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1242
1243 2020-11-25 Tom Tromey <tom@tromey.com>
1244
1245 * eval.c (evaluate_subexp_standard): Remove unnecessary
1246 variables.
1247
1248 2020-11-25 Tom Tromey <tom@tromey.com>
1249
1250 * d-lang.c: Include parser-defs.h.
1251 * rust-lang.c: Include parser-defs.h.
1252 * c-lang.h: Do not include parser-defs.h.
1253
1254 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * regcache.h (struct cached_reg): Remove typedef.
1257
1258 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1259
1260 * README: Fix the URL of the MPFR library.
1261
1262 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1263
1264 * README: Document the --with-libgmp-prefix configure option.
1265
1266 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1267
1268 * NEWS: Add entry documenting support for DWARF-based fixed
1269 point types.
1270
1271 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1272
1273 * NEWS: Document that building GDB now requires GMP.
1274
1275 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1276
1277 * typeprint.c (print_type_scalar): Add handling of
1278 TYPE_CODE_FIXED_POINT.
1279
1280 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1281
1282 * valarith.c (fixed_point_binop): Replace the
1283 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1284 users accordingly.
1285
1286 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1287
1288 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1289 replacing fixed_point_scaling_factor. All callers updated
1290 throughout this project.
1291 (fixed_point_scaling_factor): Delete declaration.
1292 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1293 fixed_point_scaling_factor. Adjust implementation accordingly.
1294
1295 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1296
1297 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1298 replacing the fixed_point_type_base_type function. All callers
1299 updated throughout this project.
1300 (fixed_point_type_base_type): Remove declaration.
1301 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1302 fixed_point_type_base_type. Adjust implementation accordingly.
1303
1304 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1305
1306 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1307 New methods.
1308 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1309 (TYPE_FIXED_POINT_INFO): Delete macro.
1310 (allocate_fixed_point_type_info): Change return type to void.
1311 * gdbtypes.c (copy_type_recursive): Replace the use of
1312 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1313 (fixed_point_scaling_factor): Likewise.
1314 (allocate_fixed_point_type_info): Change return type to void.
1315 Adjust implementation accordingly.
1316 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1317 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1318
1319 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1320
1321 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1322 into one single gdb::array_view parameter.
1323 (gdb_mpz::write): Likewise.
1324 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1325 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1326 into one single gdb::array_view parameter.
1327 Adjust implementation accordingly.
1328 (gdb_mpz::write): Likewise.
1329 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1330 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1331 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1332
1333 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1334
1335 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1336 Change return type to std::string. Update all callers.
1337 * gmp-utils.c (gmp_string_printf): Likewise.
1338
1339 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1340
1341 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1342 instead of mpq_set_ui to initialize our GMP rational.
1343
1344 2020-11-23 Tom de Vries <tdevries@suse.de>
1345
1346 * debuginfod-support.c (debuginfod_source_query)
1347 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1348
1349 2020-11-21 Tom Tromey <tom@tromey.com>
1350
1351 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1352
1353 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1354
1355 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1356 Pass 2.0 to pow.
1357 (gdb_mpz_write_all_from_small): Likewise.
1358
1359 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1360
1361 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1362 of abs.
1363
1364 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1365
1366 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1367 ctf_arc_open_by_name.
1368
1369 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1370
1371 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1372 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1373
1374 2020-11-20 Pedro Alves <pedro@palves.net>
1375
1376 * language.c (language_arch_info::lookup_primitive_type): Use
1377 gdb::function_view instead of gdb::function.
1378 (template language_lookup_primitive_type): Rename to ...
1379 (language_lookup_primitive_type_1): ... this, and make static.
1380 (language_lookup_primitive_type(const struct language_defn *,
1381 struct gdbarch *, const char *): Make non-template.
1382 (language_lookup_primitive_type(const struct language_defn *,
1383 struct gdbarch *, std::function<bool (struct type *)>): Make
1384 non-template and use gdb::function_view.
1385 * language.h (language_arch_info::lookup_primitive_type): Use
1386 gdb::function_view instead of std::function.
1387 (language_lookup_primitive_type): No longer template.
1388 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1389 lambda instead of a std::function.
1390
1391 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1392
1393 PR tdep/26916
1394 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1395 and STOCFH.
1396
1397 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1398
1399 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1400
1401 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1404 in `loop_cb` parameter.
1405 * gdbarch.c: Re-generate.
1406 * gdbarch.h: Re-generate.
1407 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1408 parameter.
1409 * arch-utils.h (default_read_core_file_mappings): Likewise.
1410 * corelow.c (core_target::build_file_mappings): Likewise.
1411 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1412 (linux_core_info_proc_mappings): Likewise.
1413
1414 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1415
1416 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1417 * NEWS: Mention new options.
1418 * f-array-walker.h: New file.
1419 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1420 (repack_array_slices): New static global.
1421 (show_repack_array_slices): New function.
1422 (fortran_array_slicing_debug): New static global.
1423 (show_fortran_array_slicing_debug): New function.
1424 (value_f90_subarray): Delete.
1425 (skip_undetermined_arglist): Delete.
1426 (class fortran_array_repacker_base_impl): New class.
1427 (class fortran_lazy_array_repacker_impl): New class.
1428 (class fortran_array_repacker_impl): New class.
1429 (fortran_value_subarray): Complete rewrite.
1430 (set_fortran_list): New static global.
1431 (show_fortran_list): Likewise.
1432 (_initialize_f_language): Register new commands.
1433 (fortran_adjust_dynamic_array_base_address_hack): New function.
1434 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1435 Declare.
1436 * f-valprint.c: Include 'f-array-walker.h'.
1437 (class fortran_array_printer_impl): New class.
1438 (f77_print_array_1): Delete.
1439 (f77_print_array): Delete.
1440 (fortran_print_array): New.
1441 (f_value_print_inner): Update to call fortran_print_array.
1442 * gdbtypes.c: Include 'f-lang.h'.
1443 (resolve_dynamic_type_internal): Call
1444 fortran_adjust_dynamic_array_base_address_hack.
1445
1446 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * breakpoint.c (struct watch_options): New struct.
1449 (watch_option_defs): New static global.
1450 (make_watch_options_def_group): New function.
1451 (watch_maybe_just_location): Convert option parsing.
1452 (watch_command_completer): New function.
1453 (_initialize_breakpoint): Build help text using options mechanism.
1454
1455 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1456
1457 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1458 (watch_command_1): Update parameter types. Convert locals to
1459 bool.
1460 (watch_command_wrapper): Change parameter type.
1461 (watch_maybe_just_location): Change locals to bool.
1462 (rwatch_command_wrapper): Update parameter type.
1463 (awatch_command_wrapper): Update parameter type.
1464 * breakpoint.h (watch_command_wrapper): Change parameter type.
1465 (rwatch_command_wrapper): Update parameter type.
1466 (awatch_command_wrapper): Update parameter type.
1467 * eval.c (fetch_subexp_value): Change parameter type.
1468 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1469 'false' not '0'.
1470 * value.h (fetch_subexp_value): Change parameter type in
1471 declaration.
1472
1473 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1474
1475 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1476 skip_spaces.
1477
1478 2020-11-18 Keith Seitz <keiths@redhat.com>
1479
1480 * linux-tdep.c (dump_note_entry_p): Return true instead of
1481 checking `filename'.
1482
1483 2020-11-18 Tom de Vries <tdevries@suse.de>
1484
1485 * debuginfod-support.c (debuginfod_source_query)
1486 (debuginfod_debuginfo_query): Also do early exit if
1487 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1488
1489 2020-11-18 Tom de Vries <tdevries@suse.de>
1490
1491 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1492 warning.
1493
1494 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1495
1496 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1497 callers. Move doc here.
1498 * gdbtypes.c (get_array_bounds): Return bool
1499
1500 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1503 assert.
1504 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1505 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1506 case to the default.
1507
1508 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * printcmd.c: Include 'safe-ctype.c'.
1511 (skip_over_slash_fmt): New function.
1512 (print_command_completer): Call skip_over_slash_fmt.
1513 (display_and_x_command_completer): New function.
1514 (_initialize_printcmd): Add command completion for 'x' and
1515 'display'.
1516
1517 2020-11-16 Pedro Alves <pedro@palves.net>
1518
1519 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1520 (get_prev_frame_always_1): ... to here.
1521 * inline-frame.c (inline_frame_this_id): Mention
1522 get_prev_frame_always_1 in comment.
1523
1524 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1525
1526 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1527 handling.
1528 (value_less): Add fixed-point handling.
1529
1530 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1531
1532 * eval.c (binop_promote): Add fixed-point type handling.
1533 * valarith.c (fixed_point_binop): New function.
1534 (scalar_binop): Add fixed-point type handling.
1535 (value_neg): Add fixed-point type handling.
1536 * valops.c (value_cast_to_fixed_point): New function.
1537 (value_cast): Add fixed-point type handling.
1538
1539 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1540
1541 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1542 range types.
1543 * c-typeprint.c (c_type_print_varspec_prefix)
1544 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1545 TYPE_CODE_FIXED_POINT handling.
1546 * p-typeprint.c (pascal_type_print_varspec_prefix)
1547 (pascal_type_print_varspec_suffix): Likewise.
1548 * typeprint.c (print_type_fixed_point): New function.
1549 * typeprint.h (print_type_fixed_point): Add declaration.
1550
1551 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1552
1553 * printcmd.c (print_scalar_formatted): Add fixed-point type
1554 handling when options->format is set.
1555
1556 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1557
1558 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1559 * dwarf2/read.c (get_dwarf2_rational_constant)
1560 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1561 (has_zero_over_zero_small_attribute): New functions.
1562 read_base_type, set_die_type): Add fixed-point type handling.
1563 * gdb-gdb.py.in: Add fixed-point type handling.
1564 * gdbtypes.c: #include "gmp-utils.h".
1565 (create_range_type, set_type_code): Add fixed-point type handling.
1566 (init_fixed_point_type): New function.
1567 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1568 (print_fixed_point_type_info): New function.
1569 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1570 handling.
1571 (fixed_point_type_storage): New typedef.
1572 (fixed_point_objfile_key): New static global.
1573 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1574 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1575 functions.
1576 * gdbtypes.h: #include "gmp-utils.h".
1577 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1578 (union type_specific) <fixed_point_info>: New field.
1579 (struct fixed_point_type_info): New struct.
1580 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1581 (init_fixed_point_type, is_fixed_point_type)
1582 (fixed_point_type_base_type, fixed_point_scaling_factor)
1583 (allocate_fixed_point_type_info): Add declarations.
1584 * valprint.c (generic_val_print_fixed_point): New function.
1585 (generic_value_print): Add fixed-point type handling.
1586 * value.c (value_as_address, unpack_long): Add fixed-point type
1587 handling.
1588
1589 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1590
1591 * utils.h (uinteger_pow): Add declaration.
1592 * utils.c (uinteger_pow): Moved here (without changes)...
1593 * valarith.c (uinteger_pow): ... from here.
1594
1595 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1596
1597 * gmp-utils.h, gmp-utils.c: New file.
1598 * unittests/gmp-utils-selftests.c: New file.
1599 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1600 unittests/gmp-utils-selftests.c.
1601 (COMMON_SFILES) Add gmp-utils.c.
1602 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1603
1604 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1605
1606 * configure.ac: Generate an error if a usable GMP library
1607 could not be found.
1608 * configure: Regenerate.
1609
1610 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1611
1612 * configure.ac: Add support for --with-libgmp-prefix.
1613 * Makefile.in (LIBGMP): New variable.
1614 (CLIBS): Include $(LIBGMP).
1615 * configure, config.in: Regenerate
1616
1617 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 PR cli/26879
1620 * f-exp.y (COMPLETE): New token.
1621 (exp): Two new rules for tab-completion.
1622 (saw_name_at_eof): New static global.
1623 (last_was_structop): Likewise.
1624 (yylex): Set new variables, and return COMPLETE token at the end
1625 of the input stream in some cases.
1626
1627 2020-11-14 Tom Tromey <tom@tromey.com>
1628
1629 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1630
1631 2020-11-14 Tom Tromey <tom@tromey.com>
1632
1633 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1634
1635 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1636
1637 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1638
1639 2020-11-13 Tom Tromey <tom@tromey.com>
1640
1641 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1642 (convert_escape, parse_one_string): Constify.
1643
1644 2020-11-13 Keith Seitz <keiths@redhat.com>
1645
1646 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1647 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1648 outside of ELF segments" warning for debugin
1649
1650 2020-11-13 Keith Seitz <keiths@redhat.com>
1651
1652 PR gdb/23034
1653 * elfread.c (elf_symfile_segments): Output a BFD file name
1654 for the "Loadable section ... outside of ELF segments" warning.
1655
1656 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1657
1658 PR gdb/26835
1659 * arm-tdep.c (class arm_instruction_reader): New.
1660 (target_arm_instruction_reader): New.
1661 (arm_analyze_prologue): Add instruction reader parameter and use
1662 it. Use arm_expand_immediate.
1663 (class target_arm_instruction_reader): Adjust.
1664 (arm_skip_prologue): Adjust.
1665 (arm_expand_immediate): New.
1666 (arm_scan_prologue): Adjust.
1667 (arm_analyze_prologue_test): New.
1668 (class test_arm_instruction_reader): New.
1669
1670 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * f-lang.c (fortran_argument_convert): Add declaration. Add
1673 header comment, taken from f-lang.h. Make static.
1674 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1675 (fortran_argument_convert): Delete declaration.
1676
1677 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * ada-exp.y (find_primitive_type): Make parameter const.
1680 * ada-lang.c (enum ada_primitive_types): Delete.
1681 (ada_language::language_arch_info): Update.
1682 * c-lang.c (enum c_primitive_types): Delete.
1683 (c_language_arch_info): Update.
1684 (enum cplus_primitive_types): Delete.
1685 (cplus_language::language_arch_info): Update.
1686 * d-lang.c (enum d_primitive_types): Delete.
1687 (d_language::language_arch_info): Update.
1688 * f-lang.c (enum f_primitive_types): Delete.
1689 (f_language::language_arch_info): Update.
1690 * go-lang.c (enum go_primitive_types): Delete.
1691 (go_language::language_arch_info): Update.
1692 * language.c (auto_or_unknown_language::language_arch_info):
1693 Update.
1694 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1695 (language_string_char_type): Add header comment, call function in
1696 language_arch_info.
1697 (language_bool_type): Likewise
1698 (language_arch_info::bool_type): Define.
1699 (language_lookup_primitive_type_1): Delete.
1700 (language_lookup_primitive_type): Rewrite as a templated function
1701 to call function in language_arch_info, then instantiate twice.
1702 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1703 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1704 (language_arch_info::lookup_primitive_type): Define twice with
1705 different signatures.
1706 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1707 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1708 member function in language_arch_info.
1709 * language.h (language_arch_info): Complete rewrite.
1710 (language_lookup_primitive_type): Make templated.
1711 * m2-lang.c (enum m2_primitive_types): Delete.
1712 (m2_language::language_arch_info): Update.
1713 * opencl-lang.c (OCL_P_TYPE): Delete.
1714 (enum opencl_primitive_types): Delete.
1715 (opencl_type_data): Delete.
1716 (builtin_opencl_type): Delete.
1717 (lookup_opencl_vector_type): Update.
1718 (opencl_language::language_arch_info): Update, lots of content
1719 moved from...
1720 (build_opencl_types): ...here. This function is now deleted.
1721 (_initialize_opencl_language): Delete.
1722 * p-lang.c (enum pascal_primitive_types): Delete.
1723 (pascal_language::language_arch_info): Update.
1724 * rust-lang.c (enum rust_primitive_types): Delete.
1725 (rust_language::language_arch_info): Update.
1726
1727 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1728
1729 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1730 dwarf2_queue_guard.
1731
1732 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1735 comment.
1736
1737 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1738
1739 * dwarf2/read.c (dwarf_read_debug_printf,
1740 dwarf_read_debug_printf_v): New macros, use throughout the file.
1741
1742 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1743
1744 PR tdep/27015
1745 * arc-linux-tdep.c (collect_register): Populate "eret" by
1746 "pc" value from the regcache when asked for "pc" value.
1747
1748 2020-11-12 Tom Tromey <tom@tromey.com>
1749
1750 PR rust/26799:
1751 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1752 exist.
1753
1754 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 * features/Makefile (XMLTOC): Add rx.xml.
1757 (FEATURE_XMLFILES): Remove rx.xml.
1758 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1759 * features/rx.c: Regenerate.
1760 * features/rx.xml: Wrap in `target` tags, and reindent.
1761 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1762 structure.
1763 (maint_print_c_tdesc_opt_def): New typedef.
1764 (maint_print_c_tdesc_opt_defs): New static global.
1765 (make_maint_print_c_tdesc_options_def_group): New function.
1766 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1767 print single feature C file for target descriptions containing a
1768 single feature.
1769 (maint_print_c_tdesc_cmd_completer): New function.
1770 (_initialize_target_descriptions): Update call to register command
1771 completer, and include command line flag in help text.
1772
1773 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1774
1775 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1776 numbers.
1777 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1778 enum values.
1779
1780 2020-11-10 Tom Tromey <tom@tromey.com>
1781
1782 * value.h (internalvar_name): Update.
1783 * value.c (internalvar_name): Make return type const.
1784
1785 2020-11-10 Tom Tromey <tom@tromey.com>
1786
1787 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1788 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1789 const.
1790
1791 2020-11-10 Tom Tromey <tom@tromey.com>
1792
1793 * objc-lang.h (value_nsstring): Update.
1794 * objc-lang.c (value_nsstring): Make "ptr" const.
1795
1796 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1797
1798 * expprint.c (print_subexp_funcall): Increment expression position
1799 after reading argument count.
1800 * f-lang.c (print_subexp_f): Skip over opcode before calling
1801 common function.
1802 (dump_subexp_body_f): Likewise.
1803
1804 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1805
1806 PR python/26832
1807 * configure: Regenerate.
1808 * configure.ac: Check for python modules ctypes instead of
1809 itertools.
1810
1811 2020-11-06 Pedro Alves <pedro@palves.net>
1812
1813 * macroexp.c (struct macro_buffer): Split in two classes. Add
1814 uses adjusted.
1815 (struct shared_macro_buffer): New, factored out from struct
1816 macro_buffer.
1817 (struct growable_macro_buffer): New, factored out from struct
1818 macro_buffer.
1819 (set_token, get_comment, get_identifier, get_pp_number)
1820 (get_character_constant, get_string_literal, get_punctuator)
1821 (get_next_token_for_substitution): Constify parameters.
1822 (substitute_args): Constify locals.
1823
1824 2020-11-05 Tom Tromey <tom@tromey.com>
1825
1826 * dwarf2/read.c (read_cutu_die_from_dwo)
1827 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1828 (build_type_psymtabs_1): Update.
1829 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1830 parameter.
1831 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1832 Don't read section. Add assert.
1833
1834 2020-11-04 Tom Tromey <tromey@adacore.com>
1835
1836 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1837
1838 2020-11-04 Tom Tromey <tromey@adacore.com>
1839
1840 * ada-typeprint.c (ada_print_type): Handle __T types.
1841
1842 2020-11-04 Tom Tromey <tromey@adacore.com>
1843
1844 * dwarf2/read.c (add_partial_symbol, process_die):
1845 Handle DW_TAG_array_type.
1846 (is_type_tag_for_partial): Add "lang" parameter.
1847 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1848
1849 2020-11-04 Tom Tromey <tromey@adacore.com>
1850
1851 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1852
1853 2020-11-04 Tom Tromey <tromey@adacore.com>
1854
1855 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1856 array.
1857
1858 2020-11-04 Tom Tromey <tromey@adacore.com>
1859
1860 * gdbtypes.c (update_static_array_size): Handle bit stride.
1861
1862 2020-11-04 Tom Tromey <tromey@adacore.com>
1863
1864 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1865
1866 2020-11-04 Tom Tromey <tromey@adacore.com>
1867
1868 * ada-lang.c (ada_is_any_packed_array_type): New function.
1869 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1870
1871 2020-11-04 Tom Tromey <tromey@adacore.com>
1872
1873 * dwarf2/read.c (recognize_bound_expression)
1874 (quirk_ada_thick_pointer): New functions.
1875 (read_array_type): Call quirk_ada_thick_pointer.
1876 (set_die_type): Add "skip_data_location" parameter.
1877 (quirk_ada_thick_pointer): New function.
1878 (process_structure_scope): Call quirk_ada_thick_pointer.
1879 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1880 (decode_packed_array_bitsize): Handle thick pointers without
1881 parallel types.
1882 (ada_is_gnat_encoded_packed_array_type): Rename from
1883 ada_is_packed_array_type.
1884 (ada_is_constrained_packed_array_type): Update.
1885 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1886 (ada_value_print_1): Use ada_get_decoded_value.
1887
1888 2020-11-04 Tom Tromey <tromey@adacore.com>
1889
1890 * ada-lang.c (recursively_update_array_bitsize): New function.
1891 (decode_constrained_packed_array_type): Call it.
1892
1893 2020-11-04 Tom Tromey <tromey@adacore.com>
1894
1895 * ada-lang.c (to_fixed_array_type): Error if
1896 decode_constrained_packed_array_type returns NULL.
1897
1898 2020-11-04 Tom Tromey <tromey@adacore.com>
1899
1900 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1901
1902 2020-11-02 Tom Tromey <tromey@adacore.com>
1903
1904 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1905 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1906 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1907 * amd64-ravenscar-thread.c: New file.
1908 * amd64-ravenscar-thread.h: New file.
1909 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1910 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1911
1912 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * main.c (execute_cmdargs): New function.
1915 (captured_main_1): Make use of execute_cmdargs.
1916
1917 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1918
1919 * NEWS: Mention changes to config file search path.
1920 * main.c
1921
1922 2020-11-02 Tom Tromey <tromey@adacore.com>
1923
1924 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1925 (python_GdbModuleDef): Move earlier. Now static.
1926 (do_start_initialization): Consolidate some IS_PY3K blocks.
1927
1928 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * aarch64-linux-tdep.c: Fix indentation.
1931 * aarch64-ravenscar-thread.c: Fix indentation.
1932 * aarch64-tdep.c: Fix indentation.
1933 * aarch64-tdep.h: Fix indentation.
1934 * ada-lang.c: Fix indentation.
1935 * ada-lang.h: Fix indentation.
1936 * ada-tasks.c: Fix indentation.
1937 * ada-typeprint.c: Fix indentation.
1938 * ada-valprint.c: Fix indentation.
1939 * ada-varobj.c: Fix indentation.
1940 * addrmap.c: Fix indentation.
1941 * addrmap.h: Fix indentation.
1942 * agent.c: Fix indentation.
1943 * aix-thread.c: Fix indentation.
1944 * alpha-bsd-nat.c: Fix indentation.
1945 * alpha-linux-tdep.c: Fix indentation.
1946 * alpha-mdebug-tdep.c: Fix indentation.
1947 * alpha-nbsd-tdep.c: Fix indentation.
1948 * alpha-obsd-tdep.c: Fix indentation.
1949 * alpha-tdep.c: Fix indentation.
1950 * amd64-bsd-nat.c: Fix indentation.
1951 * amd64-darwin-tdep.c: Fix indentation.
1952 * amd64-linux-nat.c: Fix indentation.
1953 * amd64-linux-tdep.c: Fix indentation.
1954 * amd64-nat.c: Fix indentation.
1955 * amd64-obsd-tdep.c: Fix indentation.
1956 * amd64-tdep.c: Fix indentation.
1957 * amd64-windows-tdep.c: Fix indentation.
1958 * annotate.c: Fix indentation.
1959 * arc-tdep.c: Fix indentation.
1960 * arch-utils.c: Fix indentation.
1961 * arch/arm-get-next-pcs.c: Fix indentation.
1962 * arch/arm.c: Fix indentation.
1963 * arm-linux-nat.c: Fix indentation.
1964 * arm-linux-tdep.c: Fix indentation.
1965 * arm-nbsd-tdep.c: Fix indentation.
1966 * arm-pikeos-tdep.c: Fix indentation.
1967 * arm-tdep.c: Fix indentation.
1968 * arm-tdep.h: Fix indentation.
1969 * arm-wince-tdep.c: Fix indentation.
1970 * auto-load.c: Fix indentation.
1971 * auxv.c: Fix indentation.
1972 * avr-tdep.c: Fix indentation.
1973 * ax-gdb.c: Fix indentation.
1974 * ax-general.c: Fix indentation.
1975 * bfin-linux-tdep.c: Fix indentation.
1976 * block.c: Fix indentation.
1977 * block.h: Fix indentation.
1978 * blockframe.c: Fix indentation.
1979 * bpf-tdep.c: Fix indentation.
1980 * break-catch-sig.c: Fix indentation.
1981 * break-catch-syscall.c: Fix indentation.
1982 * break-catch-throw.c: Fix indentation.
1983 * breakpoint.c: Fix indentation.
1984 * breakpoint.h: Fix indentation.
1985 * bsd-uthread.c: Fix indentation.
1986 * btrace.c: Fix indentation.
1987 * build-id.c: Fix indentation.
1988 * buildsym-legacy.h: Fix indentation.
1989 * buildsym.c: Fix indentation.
1990 * c-typeprint.c: Fix indentation.
1991 * c-valprint.c: Fix indentation.
1992 * c-varobj.c: Fix indentation.
1993 * charset.c: Fix indentation.
1994 * cli/cli-cmds.c: Fix indentation.
1995 * cli/cli-decode.c: Fix indentation.
1996 * cli/cli-decode.h: Fix indentation.
1997 * cli/cli-script.c: Fix indentation.
1998 * cli/cli-setshow.c: Fix indentation.
1999 * coff-pe-read.c: Fix indentation.
2000 * coffread.c: Fix indentation.
2001 * compile/compile-cplus-types.c: Fix indentation.
2002 * compile/compile-object-load.c: Fix indentation.
2003 * compile/compile-object-run.c: Fix indentation.
2004 * completer.c: Fix indentation.
2005 * corefile.c: Fix indentation.
2006 * corelow.c: Fix indentation.
2007 * cp-abi.h: Fix indentation.
2008 * cp-namespace.c: Fix indentation.
2009 * cp-support.c: Fix indentation.
2010 * cp-valprint.c: Fix indentation.
2011 * cris-linux-tdep.c: Fix indentation.
2012 * cris-tdep.c: Fix indentation.
2013 * darwin-nat-info.c: Fix indentation.
2014 * darwin-nat.c: Fix indentation.
2015 * darwin-nat.h: Fix indentation.
2016 * dbxread.c: Fix indentation.
2017 * dcache.c: Fix indentation.
2018 * disasm.c: Fix indentation.
2019 * dtrace-probe.c: Fix indentation.
2020 * dwarf2/abbrev.c: Fix indentation.
2021 * dwarf2/attribute.c: Fix indentation.
2022 * dwarf2/expr.c: Fix indentation.
2023 * dwarf2/frame.c: Fix indentation.
2024 * dwarf2/index-cache.c: Fix indentation.
2025 * dwarf2/index-write.c: Fix indentation.
2026 * dwarf2/line-header.c: Fix indentation.
2027 * dwarf2/loc.c: Fix indentation.
2028 * dwarf2/macro.c: Fix indentation.
2029 * dwarf2/read.c: Fix indentation.
2030 * dwarf2/read.h: Fix indentation.
2031 * elfread.c: Fix indentation.
2032 * eval.c: Fix indentation.
2033 * event-top.c: Fix indentation.
2034 * exec.c: Fix indentation.
2035 * exec.h: Fix indentation.
2036 * expprint.c: Fix indentation.
2037 * f-lang.c: Fix indentation.
2038 * f-typeprint.c: Fix indentation.
2039 * f-valprint.c: Fix indentation.
2040 * fbsd-nat.c: Fix indentation.
2041 * fbsd-tdep.c: Fix indentation.
2042 * findvar.c: Fix indentation.
2043 * fork-child.c: Fix indentation.
2044 * frame-unwind.c: Fix indentation.
2045 * frame-unwind.h: Fix indentation.
2046 * frame.c: Fix indentation.
2047 * frv-linux-tdep.c: Fix indentation.
2048 * frv-tdep.c: Fix indentation.
2049 * frv-tdep.h: Fix indentation.
2050 * ft32-tdep.c: Fix indentation.
2051 * gcore.c: Fix indentation.
2052 * gdb_bfd.c: Fix indentation.
2053 * gdbarch.sh: Fix indentation.
2054 * gdbarch.c: Re-generate
2055 * gdbarch.h: Re-generate.
2056 * gdbcore.h: Fix indentation.
2057 * gdbthread.h: Fix indentation.
2058 * gdbtypes.c: Fix indentation.
2059 * gdbtypes.h: Fix indentation.
2060 * glibc-tdep.c: Fix indentation.
2061 * gnu-nat.c: Fix indentation.
2062 * gnu-nat.h: Fix indentation.
2063 * gnu-v2-abi.c: Fix indentation.
2064 * gnu-v3-abi.c: Fix indentation.
2065 * go32-nat.c: Fix indentation.
2066 * guile/guile-internal.h: Fix indentation.
2067 * guile/scm-cmd.c: Fix indentation.
2068 * guile/scm-frame.c: Fix indentation.
2069 * guile/scm-iterator.c: Fix indentation.
2070 * guile/scm-math.c: Fix indentation.
2071 * guile/scm-ports.c: Fix indentation.
2072 * guile/scm-pretty-print.c: Fix indentation.
2073 * guile/scm-value.c: Fix indentation.
2074 * h8300-tdep.c: Fix indentation.
2075 * hppa-linux-nat.c: Fix indentation.
2076 * hppa-linux-tdep.c: Fix indentation.
2077 * hppa-nbsd-nat.c: Fix indentation.
2078 * hppa-nbsd-tdep.c: Fix indentation.
2079 * hppa-obsd-nat.c: Fix indentation.
2080 * hppa-tdep.c: Fix indentation.
2081 * hppa-tdep.h: Fix indentation.
2082 * i386-bsd-nat.c: Fix indentation.
2083 * i386-darwin-nat.c: Fix indentation.
2084 * i386-darwin-tdep.c: Fix indentation.
2085 * i386-dicos-tdep.c: Fix indentation.
2086 * i386-gnu-nat.c: Fix indentation.
2087 * i386-linux-nat.c: Fix indentation.
2088 * i386-linux-tdep.c: Fix indentation.
2089 * i386-nto-tdep.c: Fix indentation.
2090 * i386-obsd-tdep.c: Fix indentation.
2091 * i386-sol2-nat.c: Fix indentation.
2092 * i386-tdep.c: Fix indentation.
2093 * i386-tdep.h: Fix indentation.
2094 * i386-windows-tdep.c: Fix indentation.
2095 * i387-tdep.c: Fix indentation.
2096 * i387-tdep.h: Fix indentation.
2097 * ia64-libunwind-tdep.c: Fix indentation.
2098 * ia64-libunwind-tdep.h: Fix indentation.
2099 * ia64-linux-nat.c: Fix indentation.
2100 * ia64-linux-tdep.c: Fix indentation.
2101 * ia64-tdep.c: Fix indentation.
2102 * ia64-tdep.h: Fix indentation.
2103 * ia64-vms-tdep.c: Fix indentation.
2104 * infcall.c: Fix indentation.
2105 * infcmd.c: Fix indentation.
2106 * inferior.c: Fix indentation.
2107 * infrun.c: Fix indentation.
2108 * iq2000-tdep.c: Fix indentation.
2109 * language.c: Fix indentation.
2110 * linespec.c: Fix indentation.
2111 * linux-fork.c: Fix indentation.
2112 * linux-nat.c: Fix indentation.
2113 * linux-tdep.c: Fix indentation.
2114 * linux-thread-db.c: Fix indentation.
2115 * lm32-tdep.c: Fix indentation.
2116 * m2-lang.c: Fix indentation.
2117 * m2-typeprint.c: Fix indentation.
2118 * m2-valprint.c: Fix indentation.
2119 * m32c-tdep.c: Fix indentation.
2120 * m32r-linux-tdep.c: Fix indentation.
2121 * m32r-tdep.c: Fix indentation.
2122 * m68hc11-tdep.c: Fix indentation.
2123 * m68k-bsd-nat.c: Fix indentation.
2124 * m68k-linux-nat.c: Fix indentation.
2125 * m68k-linux-tdep.c: Fix indentation.
2126 * m68k-tdep.c: Fix indentation.
2127 * machoread.c: Fix indentation.
2128 * macrocmd.c: Fix indentation.
2129 * macroexp.c: Fix indentation.
2130 * macroscope.c: Fix indentation.
2131 * macrotab.c: Fix indentation.
2132 * macrotab.h: Fix indentation.
2133 * main.c: Fix indentation.
2134 * mdebugread.c: Fix indentation.
2135 * mep-tdep.c: Fix indentation.
2136 * mi/mi-cmd-catch.c: Fix indentation.
2137 * mi/mi-cmd-disas.c: Fix indentation.
2138 * mi/mi-cmd-env.c: Fix indentation.
2139 * mi/mi-cmd-stack.c: Fix indentation.
2140 * mi/mi-cmd-var.c: Fix indentation.
2141 * mi/mi-cmds.c: Fix indentation.
2142 * mi/mi-main.c: Fix indentation.
2143 * mi/mi-parse.c: Fix indentation.
2144 * microblaze-tdep.c: Fix indentation.
2145 * minidebug.c: Fix indentation.
2146 * minsyms.c: Fix indentation.
2147 * mips-linux-nat.c: Fix indentation.
2148 * mips-linux-tdep.c: Fix indentation.
2149 * mips-nbsd-tdep.c: Fix indentation.
2150 * mips-tdep.c: Fix indentation.
2151 * mn10300-linux-tdep.c: Fix indentation.
2152 * mn10300-tdep.c: Fix indentation.
2153 * moxie-tdep.c: Fix indentation.
2154 * msp430-tdep.c: Fix indentation.
2155 * namespace.h: Fix indentation.
2156 * nat/fork-inferior.c: Fix indentation.
2157 * nat/gdb_ptrace.h: Fix indentation.
2158 * nat/linux-namespaces.c: Fix indentation.
2159 * nat/linux-osdata.c: Fix indentation.
2160 * nat/netbsd-nat.c: Fix indentation.
2161 * nat/x86-dregs.c: Fix indentation.
2162 * nbsd-nat.c: Fix indentation.
2163 * nbsd-tdep.c: Fix indentation.
2164 * nios2-linux-tdep.c: Fix indentation.
2165 * nios2-tdep.c: Fix indentation.
2166 * nto-procfs.c: Fix indentation.
2167 * nto-tdep.c: Fix indentation.
2168 * objfiles.c: Fix indentation.
2169 * objfiles.h: Fix indentation.
2170 * opencl-lang.c: Fix indentation.
2171 * or1k-tdep.c: Fix indentation.
2172 * osabi.c: Fix indentation.
2173 * osabi.h: Fix indentation.
2174 * osdata.c: Fix indentation.
2175 * p-lang.c: Fix indentation.
2176 * p-typeprint.c: Fix indentation.
2177 * p-valprint.c: Fix indentation.
2178 * parse.c: Fix indentation.
2179 * ppc-linux-nat.c: Fix indentation.
2180 * ppc-linux-tdep.c: Fix indentation.
2181 * ppc-nbsd-nat.c: Fix indentation.
2182 * ppc-nbsd-tdep.c: Fix indentation.
2183 * ppc-obsd-nat.c: Fix indentation.
2184 * ppc-ravenscar-thread.c: Fix indentation.
2185 * ppc-sysv-tdep.c: Fix indentation.
2186 * ppc64-tdep.c: Fix indentation.
2187 * printcmd.c: Fix indentation.
2188 * proc-api.c: Fix indentation.
2189 * producer.c: Fix indentation.
2190 * producer.h: Fix indentation.
2191 * prologue-value.c: Fix indentation.
2192 * prologue-value.h: Fix indentation.
2193 * psymtab.c: Fix indentation.
2194 * python/py-arch.c: Fix indentation.
2195 * python/py-bpevent.c: Fix indentation.
2196 * python/py-event.c: Fix indentation.
2197 * python/py-event.h: Fix indentation.
2198 * python/py-finishbreakpoint.c: Fix indentation.
2199 * python/py-frame.c: Fix indentation.
2200 * python/py-framefilter.c: Fix indentation.
2201 * python/py-inferior.c: Fix indentation.
2202 * python/py-infthread.c: Fix indentation.
2203 * python/py-objfile.c: Fix indentation.
2204 * python/py-prettyprint.c: Fix indentation.
2205 * python/py-registers.c: Fix indentation.
2206 * python/py-signalevent.c: Fix indentation.
2207 * python/py-stopevent.c: Fix indentation.
2208 * python/py-stopevent.h: Fix indentation.
2209 * python/py-threadevent.c: Fix indentation.
2210 * python/py-tui.c: Fix indentation.
2211 * python/py-unwind.c: Fix indentation.
2212 * python/py-value.c: Fix indentation.
2213 * python/py-xmethods.c: Fix indentation.
2214 * python/python-internal.h: Fix indentation.
2215 * python/python.c: Fix indentation.
2216 * ravenscar-thread.c: Fix indentation.
2217 * record-btrace.c: Fix indentation.
2218 * record-full.c: Fix indentation.
2219 * record.c: Fix indentation.
2220 * reggroups.c: Fix indentation.
2221 * regset.h: Fix indentation.
2222 * remote-fileio.c: Fix indentation.
2223 * remote.c: Fix indentation.
2224 * reverse.c: Fix indentation.
2225 * riscv-linux-tdep.c: Fix indentation.
2226 * riscv-ravenscar-thread.c: Fix indentation.
2227 * riscv-tdep.c: Fix indentation.
2228 * rl78-tdep.c: Fix indentation.
2229 * rs6000-aix-tdep.c: Fix indentation.
2230 * rs6000-lynx178-tdep.c: Fix indentation.
2231 * rs6000-nat.c: Fix indentation.
2232 * rs6000-tdep.c: Fix indentation.
2233 * rust-lang.c: Fix indentation.
2234 * rx-tdep.c: Fix indentation.
2235 * s12z-tdep.c: Fix indentation.
2236 * s390-linux-tdep.c: Fix indentation.
2237 * score-tdep.c: Fix indentation.
2238 * ser-base.c: Fix indentation.
2239 * ser-mingw.c: Fix indentation.
2240 * ser-uds.c: Fix indentation.
2241 * ser-unix.c: Fix indentation.
2242 * serial.c: Fix indentation.
2243 * sh-linux-tdep.c: Fix indentation.
2244 * sh-nbsd-tdep.c: Fix indentation.
2245 * sh-tdep.c: Fix indentation.
2246 * skip.c: Fix indentation.
2247 * sol-thread.c: Fix indentation.
2248 * solib-aix.c: Fix indentation.
2249 * solib-darwin.c: Fix indentation.
2250 * solib-frv.c: Fix indentation.
2251 * solib-svr4.c: Fix indentation.
2252 * solib.c: Fix indentation.
2253 * source.c: Fix indentation.
2254 * sparc-linux-tdep.c: Fix indentation.
2255 * sparc-nbsd-tdep.c: Fix indentation.
2256 * sparc-obsd-tdep.c: Fix indentation.
2257 * sparc-ravenscar-thread.c: Fix indentation.
2258 * sparc-tdep.c: Fix indentation.
2259 * sparc64-linux-tdep.c: Fix indentation.
2260 * sparc64-nbsd-tdep.c: Fix indentation.
2261 * sparc64-obsd-tdep.c: Fix indentation.
2262 * sparc64-tdep.c: Fix indentation.
2263 * stabsread.c: Fix indentation.
2264 * stack.c: Fix indentation.
2265 * stap-probe.c: Fix indentation.
2266 * stubs/ia64vms-stub.c: Fix indentation.
2267 * stubs/m32r-stub.c: Fix indentation.
2268 * stubs/m68k-stub.c: Fix indentation.
2269 * stubs/sh-stub.c: Fix indentation.
2270 * stubs/sparc-stub.c: Fix indentation.
2271 * symfile-mem.c: Fix indentation.
2272 * symfile.c: Fix indentation.
2273 * symfile.h: Fix indentation.
2274 * symmisc.c: Fix indentation.
2275 * symtab.c: Fix indentation.
2276 * symtab.h: Fix indentation.
2277 * target-float.c: Fix indentation.
2278 * target.c: Fix indentation.
2279 * target.h: Fix indentation.
2280 * tic6x-tdep.c: Fix indentation.
2281 * tilegx-linux-tdep.c: Fix indentation.
2282 * tilegx-tdep.c: Fix indentation.
2283 * top.c: Fix indentation.
2284 * tracefile-tfile.c: Fix indentation.
2285 * tracepoint.c: Fix indentation.
2286 * tui/tui-disasm.c: Fix indentation.
2287 * tui/tui-io.c: Fix indentation.
2288 * tui/tui-regs.c: Fix indentation.
2289 * tui/tui-stack.c: Fix indentation.
2290 * tui/tui-win.c: Fix indentation.
2291 * tui/tui-winsource.c: Fix indentation.
2292 * tui/tui.c: Fix indentation.
2293 * typeprint.c: Fix indentation.
2294 * ui-out.h: Fix indentation.
2295 * unittests/copy_bitwise-selftests.c: Fix indentation.
2296 * unittests/memory-map-selftests.c: Fix indentation.
2297 * utils.c: Fix indentation.
2298 * v850-tdep.c: Fix indentation.
2299 * valarith.c: Fix indentation.
2300 * valops.c: Fix indentation.
2301 * valprint.c: Fix indentation.
2302 * valprint.h: Fix indentation.
2303 * value.c: Fix indentation.
2304 * value.h: Fix indentation.
2305 * varobj.c: Fix indentation.
2306 * vax-tdep.c: Fix indentation.
2307 * windows-nat.c: Fix indentation.
2308 * windows-tdep.c: Fix indentation.
2309 * xcoffread.c: Fix indentation.
2310 * xml-syscall.c: Fix indentation.
2311 * xml-tdesc.c: Fix indentation.
2312 * xstormy16-tdep.c: Fix indentation.
2313 * xtensa-config.c: Fix indentation.
2314 * xtensa-linux-nat.c: Fix indentation.
2315 * xtensa-linux-tdep.c: Fix indentation.
2316 * xtensa-tdep.c: Fix indentation.
2317
2318 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2319 Craig Blackmore <craig.blackmore@embecosm.com>
2320
2321 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2322 as an unsigned value.
2323
2324 2020-11-01 Tom Tromey <tom@tromey.com>
2325
2326 * dbxread.c (dbx_end_psymtab): Update.
2327 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2328 (build_type_psymtabs_reader): Update.
2329 * xcoffread.c (xcoff_end_psymtab): Update.
2330 * ctfread.c (scan_partial_symbols): Update.
2331 * psymtab.c (sort_pst_symbols): Remove.
2332 (partial_symtab::end): Rename from end_psymtab_common. Inline
2333 sort_pst_symbols.
2334 * psympriv.h (struct partial_symtab) <end>: New method.
2335 (end_psymtab_common): Don't declare.
2336
2337 2020-11-01 Tom Tromey <tom@tromey.com>
2338
2339 * symmisc.c (count_psyms): New function.
2340 (print_objfile_statistics): Use it.
2341 * psymtab.c (append_psymbol_to_list): Remove.
2342 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2343 * objfiles.h (struct objstats) <n_psyms>: Remove.
2344
2345 2020-11-01 Tom Tromey <tom@tromey.com>
2346
2347 * dbxread.c (dbx_end_psymtab): Update.
2348 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2349 (build_type_psymtabs_reader): Update.
2350 * xcoffread.c (xcoff_end_psymtab): Update.
2351 * ctfread.c (scan_partial_symbols): Update.
2352 * psympriv.h (end_psymtab_common): Update.
2353 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2354 (sort_pst_symbols): Likewise.
2355
2356 2020-11-01 Tom Tromey <tom@tromey.com>
2357
2358 * dbxread.c (dbx_symfile_read): Update.
2359 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2360 * xcoffread.c (xcoff_initial_scan): Update.
2361 * psympriv.h (init_psymbol_list): Don't declare.
2362 * psymtab.c (init_psymbol_list): Remove.
2363
2364 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2365
2366 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2367 gnat_encoded_fixed_type_info. Update all callers.
2368
2369 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2370
2371 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2372 line too long.
2373
2374 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2375
2376 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2377 cast_from_fixed. Update all callers.
2378 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2379 Update all callers.
2380 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2381 Update all callers.
2382 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2383 ada_scaling_factor.
2384 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2385 to print_gnat_encoded_fixed_point_type.
2386 * ada-valprint.c: Likewise.
2387
2388 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2389
2390 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2391 (debug_prefixed_printf): Add check of debug_displaced flag.
2392 * linux-nat.c (linux_nat_debug_printf): Add check of
2393 debug_linux_nat flag.
2394
2395 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2396
2397 * infrun.c (infrun_debug_printf_1): Remove.
2398 (displaced_debug_printf_1): Remove.
2399 (stop_all_threads): Use debug_prefixed_printf.
2400 * infrun.h (infrun_debug_printf_1): Remove.
2401 (infrun_debug_printf): Use debug_prefixed_printf.
2402 (displaced_debug_printf_1): Remove.
2403 (displaced_debug_printf): Use debug_prefixed_printf.
2404 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2405 (linux_nat_debug_printf): Use debug_prefixed_printf.
2406
2407 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2408
2409 * configure: Re-generate.
2410 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2411 AC_LANG_PROGRAM.
2412
2413 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 * configure: Re-generate.
2416
2417 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2418
2419 * configure: Re-generate.
2420
2421 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2422
2423 * configure: Re-generate.
2424
2425 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 * configure: Re-generate.
2428
2429 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2430
2431 * acinclude.m4: Modernize.
2432 * configure: Re-generate.
2433
2434 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2435
2436 * configure.ac: Modernize.
2437 * configure: Re-generate.
2438
2439 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2440
2441 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2442 * configure: Re-generate.
2443 * configure.ac: Remove AM_PROG_CC_STDC.
2444
2445 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2448 AC_CANONICAL_SYSTEM.
2449 * configure: Re-generate.
2450
2451 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2452
2453 * infrun.h (displaced_debug_printf): New macro. Replace
2454 displaced debug prints throughout to use it.
2455 (displaced_debug_printf_1): New declaration.
2456 (displaced_step_dump_bytes): Return string, remove ui_file
2457 parameter, update all callers.
2458 * infrun.c (displaced_debug_printf_1): New function.
2459 (displaced_step_dump_bytes): Return string, remove ui_file
2460 parameter
2461
2462 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2463
2464 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2465
2466 2020-10-30 Tom Tromey <tromey@adacore.com>
2467
2468 * Makefile.in (stamp-init): Depend on config.status.
2469
2470 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2471
2472 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2473
2474 2020-10-30 Pedro Alves <pedro@palves.net>
2475
2476 * thread.c (lookup_selected_frame): Move ...
2477 * frame.c (lookup_selected_frame): ... here.
2478
2479 2020-10-30 Pedro Alves <pedro@palves.net>
2480
2481 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2482 * frame.c
2483 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2484 Use save_selected_frame. Save language as well.
2485 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2486 Use restore_selected_frame, and restore language as well.
2487 (selected_frame_id, selected_frame_level): New.
2488 (selected_frame): Update comments.
2489 (save_selected_frame, restore_selected_frame): New.
2490 (get_selected_frame): Use lookup_selected_frame.
2491 (get_selected_frame_if_set): Delete.
2492 (select_frame): Record selected_frame_level and selected_frame_id.
2493 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2494 fields.
2495 (get_selected_frame): Make 'message' parameter optional.
2496 (get_selected_frame_if_set): Delete declaration.
2497 (select_frame): Update comments.
2498 (save_selected_frame, restore_selected_frame)
2499 (lookup_selected_frame): Declare.
2500 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2501 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2502 New field.
2503 (save_infcall_control_state): Use save_selected_frame.
2504 (restore_selected_frame): Delete.
2505 (restore_infcall_control_state): Use restore_selected_frame.
2506 * stack.c (select_frame_command_core, frame_command_core): Use
2507 get_selected_frame.
2508 * thread.c (restore_selected_frame): Rename to ...
2509 (lookup_selected_frame): ... this and make extern. Select the
2510 current frame if the frame level is -1.
2511 (scoped_restore_current_thread::restore): Also restore the
2512 language.
2513 (scoped_restore_current_thread::~scoped_restore_current_thread):
2514 Don't try/catch.
2515 (scoped_restore_current_thread::scoped_restore_current_thread):
2516 Save the language as well. Use save_selected_frame.
2517
2518 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2519
2520 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2521 documentation.
2522 * gdbarch.h: Re-generate.
2523
2524 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2525
2526 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2527 parameter.
2528 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2529 Likewise.
2530 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2531 Likewise.
2532 * arch-utils.c (default_displaced_step_hw_singlestep):
2533 Likewise.
2534 * arch-utils.h (default_displaced_step_hw_singlestep):
2535 Likewise.
2536 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2537 Likewise.
2538 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2539 Likewise.
2540 * gdbarch.c: Re-generate.
2541 * gdbarch.h: Re-generate.
2542 * infrun.c (resume_1): Adjust.
2543
2544 2020-10-29 Tom Tromey <tom@tromey.com>
2545
2546 * progspace.c (program_space::~program_space): Don't call
2547 exec_close.
2548
2549 2020-10-29 Tom Tromey <tom@tromey.com>
2550
2551 * exec.c (exec_target::close): Don't change current program
2552 space.
2553
2554 2020-10-29 Tom Tromey <tom@tromey.com>
2555
2556 * symfile.c (add_symbol_file_command): Update.
2557 * exec.c (program_space::add_target_sections): Rename.
2558 * symfile-mem.c (symbol_file_add_from_memory): Update.
2559 * progspace.h (struct program_space) <add_target_sections>:
2560 Declare new overload.
2561 * exec.h (add_target_sections_of_objfile): Don't declare.
2562
2563 2020-10-29 Tom Tromey <tom@tromey.com>
2564
2565 * solib.c (solib_map_sections): Update.
2566 * exec.c (program_space::add_target_sections): Now a method.
2567 (exec_file_attach): Update.
2568 * exec.h (add_target_sections): Don't declare.
2569 * progspace.h (struct program_space) <add_target_sections>:
2570 Declare.
2571
2572 2020-10-29 Tom Tromey <tom@tromey.com>
2573
2574 * progspace.h (struct program_space) <remove_target_sections>:
2575 Declare.
2576 * exec.c (program_space::remove_target_sections): Now a method.
2577 * exec.h (remove_target_sections): Don't declare.
2578
2579 2020-10-29 Tom Tromey <tom@tromey.com>
2580
2581 * inferior.c (delete_inferior): Update.
2582 * progspace.c (program_space::empty): Rename from
2583 program_space_empty_p. Return bool.
2584 * progspace.h (struct program_space) <empty>: New method.
2585 (program_space_empty_p): Don't declare.
2586
2587 2020-10-29 Tom Tromey <tom@tromey.com>
2588
2589 * progspace.c (program_space::~program_space): Don't call
2590 clear_program_space_solib_cache.
2591 (program_space::clear_solib_cache): Rename from
2592 clear_solib_cache.
2593 * solib.c (handle_solib_event): Update.
2594 * progspace.h (struct program_space) <clear_solib_cache>: New
2595 method.
2596 (clear_program_space_solib_cache): Don't declare.
2597
2598 2020-10-29 Tom Tromey <tom@tromey.com>
2599
2600 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2601 * target.c (info_target_command): Update.
2602 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2603 (symbol_file_clear, reread_symbols): Update.
2604 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2605 * stabsread.c (scan_file_globals): Update.
2606 * solib.c (update_solib_list): Update.
2607 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2608 (svr4_fetch_objfile_link_map, enable_break)
2609 (svr4_relocate_main_executable)
2610 (svr4_iterate_over_objfiles_in_search_order): Update.
2611 * solib-frv.c (lm_base, enable_break)
2612 (frv_relocate_main_executable): Update.
2613 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2614 (frv_fetch_objfile_link_map): Update.
2615 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2616 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2617 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2618 * remote.c (remote_target::get_offsets): Update.
2619 (remote_target::start_remote)
2620 (extended_remote_target::post_attach): Update.
2621 * objfiles.c (entry_point_address_query): Update.
2622 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2623 * minsyms.c (get_symbol_leading_char): Update.
2624 * frame.c (inside_main_func): Update.
2625 * progspace.h (symfile_objfile): Remove macro.
2626
2627 2020-10-29 Tom Tromey <tom@tromey.com>
2628
2629 * exec.c (exec_file_attach): Update.
2630 * progspace.c (program_space::exec_close): Update.
2631 * progspace.h (struct program_space) <ebfd>: Now a
2632 gdb_bfd_ref_ptr.
2633 <set_exec_bfd>: Change argument type.
2634 <exec_bfd>: Update.
2635
2636 2020-10-29 Tom Tromey <tom@tromey.com>
2637
2638 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2639 * symfile.c (reread_symbols): Update.
2640 * symfile-mem.c (add_symbol_file_from_memory_command)
2641 (add_vsyscall_page): Update.
2642 * source-cache.c (source_cache::get_plain_source_lines): Update.
2643 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2644 (svr4_current_sos_direct, svr4_exec_displacement)
2645 (svr4_relocate_main_executable): Update.
2646 (svr4_iterate_over_objfiles_in_search_order): Update.
2647 * solib-frv.c (enable_break2, enable_break): Update.
2648 * solib-dsbt.c (lm_base, enable_break): Update.
2649 * solib-darwin.c (find_program_interpreter)
2650 (darwin_solib_create_inferior_hook): Update.
2651 * sol-thread.c (rw_common, ps_pdmodel): Update.
2652 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2653 * remote.c (compare_sections_command)
2654 (remote_target::trace_set_readonly_regions): Update.
2655 * remote-sim.c (get_sim_inferior_data)
2656 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2657 (gdbsim_target_open, gdbsim_target::files_info): Update.
2658 * exec.h (exec_bfd): Remove macro.
2659 * progspace.c (initialize_progspace): Update.
2660 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2661 Update.
2662 * nto-procfs.c (nto_procfs_target::post_attach)
2663 (nto_procfs_target::create_inferior): Update.
2664 * maint.c (maintenance_info_sections): Update.
2665 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2666 Update.
2667 * infcmd.c (post_create_inferior): Update.
2668 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2669 (objfile_find_memory_regions): Update.
2670 * exec.c (validate_exec_file, exec_file_attach)
2671 (exec_read_partial_read_only, print_section_info): Update.
2672 * corelow.c (core_target_open): Update.
2673 * corefile.c (reopen_exec_file, validate_files): Update.
2674 * arm-tdep.c (gdb_print_insn_arm): Update.
2675 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2676 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2677 methods.
2678
2679 2020-10-29 Tom Tromey <tom@tromey.com>
2680
2681 * progspace.h (current_target_sections): Remove macro.
2682 * solib-svr4.c (scan_dyntag): Update.
2683 * solib-dsbt.c (scan_dyntag): Update.
2684 * exec.c (exec_target::close): Update.
2685 (add_target_sections, add_target_sections_of_objfile)
2686 (remove_target_sections, exec_target::get_section_table)
2687 (exec_target::files_info, set_section_command)
2688 (exec_set_section_address, exec_target::has_memory)
2689 (exec_target::has_memory): Update.
2690
2691 2020-10-29 Tom Tromey <tom@tromey.com>
2692
2693 * source-cache.c (source_cache::get_plain_source_lines): Use
2694 current_program_space.
2695 * corefile.c (reopen_exec_file): Use current_program_space.
2696 * exec.c (exec_file_attach): Use current_program_space.
2697 * exec.h (exec_bfd_mtime): Remove.
2698
2699 2020-10-29 Tom Tromey <tom@tromey.com>
2700
2701 * gcore.c (default_gcore_mach): Remove.
2702 (create_gcore_bfd): Update.
2703
2704 2020-10-29 Tom Tromey <tom@tromey.com>
2705
2706 * progspace.c (program_space::exec_close): New method, from
2707 exec_close in exec.c.
2708 * exec.c (exec_close): Move to progspace.c.
2709 (exec_target::close, exec_file_attach): Update.
2710 * progspace.h (struct program_space) <exec_close>: Declare
2711 method.
2712
2713 2020-10-29 Tom Tromey <tom@tromey.com>
2714
2715 * progspace.h (struct program_space) <exec_filename>: Rename from
2716 pspace_exec_filename. Now a unique_xmalloc_ptr.
2717 * inferior.c (print_selected_inferior): Update.
2718 (print_inferior): Update.
2719 * mi/mi-main.c (print_one_inferior): Update.
2720 * exec.h (exec_filename): Remove macro.
2721 * corefile.c (get_exec_file): Update.
2722 * exec.c (exec_close): Update.
2723 (exec_file_attach): Update.
2724 * progspace.c (clone_program_space): Update.
2725 (print_program_space): Update.
2726
2727 2020-10-29 Tom Tromey <tom@tromey.com>
2728
2729 * target-section.h (struct target_section): Add constructor.
2730 * exec.c (build_section_table, add_target_sections_of_objfile):
2731 Update.
2732 * corelow.c (core_target::build_file_mappings): Update.
2733
2734 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2735
2736 PR gdb/19318
2737 * inferior.c (detach_inferior_command): Restore the current thread.
2738 (kill_inferior_command): Ditto.
2739
2740 2020-10-28 Tom de Vries <tdevries@suse.de>
2741
2742 PR symtab/26772
2743 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2744 map, check it in the "best match" loop.
2745
2746 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2747
2748 * m32c-tdep.c: Remove unused includes.
2749
2750 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2751
2752 * xtensa-tdep.c: Remove includes.
2753
2754 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2755
2756 * breakpoint.c (struct condition_command_opts): New struct.
2757 (condition_command_option_defs): New static global.
2758 (make_condition_command_options_def_group): New function.
2759 (condition_completer): Update to consider the '-force' flag.
2760 (condition_command): Use gdb::option for the '-force' flag.
2761
2762 2020-10-27 Tom de Vries <tdevries@suse.de>
2763
2764 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2765 symbols in section check.
2766
2767 2020-10-27 Tom de Vries <tdevries@suse.de>
2768
2769 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2770
2771 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2772
2773 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2774 * breakpoint.c: Update the help text of the 'condition' and 'break'
2775 commands.
2776 (set_breakpoint_condition): Take a new bool parameter
2777 to control whether condition definition should be forced even when
2778 the condition expression is invalid in all of the current locations.
2779 (condition_command): Update the call to 'set_breakpoint_condition'.
2780 (find_condition_and_thread): Take the "-force-condition" flag into
2781 account.
2782 * linespec.c (linespec_keywords): Add "-force-condition" as an
2783 element.
2784 (FORCE_KEYWORD_INDEX): New #define.
2785 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2786 as a keyword.
2787 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2788 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2789 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2790 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2791
2792 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2793
2794 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2795 * breakpoint.c (set_breakpoint_location_condition): New function.
2796 (set_breakpoint_condition): Disable a breakpoint location if parsing
2797 the condition string gives an error.
2798 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2799 (build_target_condition_list): Ditto.
2800 (build_target_command_list): Ditto.
2801 (build_bpstat_chain): Ditto.
2802 (print_one_breakpoint_location): Ditto.
2803 (print_one_breakpoint): Ditto.
2804 (breakpoint_1): Ditto.
2805 (bp_location::bp_location): Ditto.
2806 (locations_are_equal): Ditto.
2807 (update_breakpoint_locations): Ditto.
2808 (enable_disable_bp_num_loc): Ditto.
2809 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2810 (find_condition_and_thread_for_sals): New static function.
2811 (create_breakpoint): Call find_condition_and_thread_for_sals.
2812 (location_to_sals): Call find_condition_and_thread_for_sals instead
2813 of find_condition_and_thread.
2814
2815 2020-10-26 Tom de Vries <tdevries@suse.de>
2816
2817 * dwarf2/read.c (process_full_comp_unit): Call
2818 dwarf2_find_base_address.
2819
2820 2020-10-26 Tom Tromey <tromey@adacore.com>
2821
2822 * gdbtypes.c (create_range_type): Revert previous patch. Add
2823 comment.
2824
2825 2020-10-26 Pedro Alves <pedro@palves.net>
2826
2827 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2828 (my_waitpid): Use gdb::handle_eintr.
2829
2830 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2831
2832 * acinclude.m4: Update ptrace.m4 path.
2833 * ptrace.m4: Moved to gdbsupport.
2834
2835 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2836
2837 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2838 instead of target_gdbarch.
2839
2840 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2841
2842 * jit.c (jit_reader_load_command): Pass current inferior.
2843 (jit_inferior_init): Change parameter type to inferior, use it.
2844 (jit_inferior_created): Remove.
2845 (jit_inferior_created_hook): Pass inferior parameter down.
2846 (_initialize_jit): Use jit_inferior_created_hook instead of
2847 jit_inferior_created.
2848 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2849 * infrun.c (follow_exec): Pass inferior to
2850 jit_inferior_created_hook.
2851
2852 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2853
2854 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2855 parameter and use it.
2856 (thread_db_inferior_created): Pass inferior argument.
2857
2858 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2859
2860 * aix-thread.c (aix_thread_inferior_created): Add inferior
2861 parameter.
2862 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2863 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2864 * jit.c (jit_inferior_created): Likewise.
2865 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2866 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2867 * observable.h (inferior_created): Likewise.
2868 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2869 * symfile-mem.c (add_vsyscall_page): Likewise.
2870 * infcmd.c (post_create_inferior): Pass inferior argument.
2871
2872 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2873
2874 GDB 10.1 released.
2875
2876 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2877
2878 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2879 to ada_check_typedef.
2880
2881 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * f-exp.y (f_parse): Rename to...
2884 (f_language::parser): ...this.
2885 * f-lang.c (f_get_encoding): Rename to...
2886 (f_language::get_encoding): ...this.
2887 (f_op_print_tab): Rename to...
2888 (f_language::op_print_tab): ...this.
2889 (exp_descriptor_f): Rename to...
2890 (f_language::exp_descriptor_tab): ...this.
2891 (class f_language): Moved to f-lang.h.
2892 (f_language::language_arch_info): New function, moved out of class
2893 declaration.
2894 (f_language::search_name_hash): Likewise.
2895 (f_language::lookup_symbol_nonlocal): Likewise.
2896 (f_language::get_symbol_name_matcher_inner): Likewise.
2897 * f-lang.h: Add 'valprint.h' include.
2898 (class f_language): Moved here from f-lang.c.
2899 * f-typeprint.c (f_type_print_args): Delete commented out
2900 declaration.
2901 (f_print_typedef): Rename to...
2902 (f_language::print_typedef): ...this.
2903 (f_print_type): Rename to...
2904 (f_language::print_type): ...this.
2905 (f_type_print_varspec_prefix): Delete declaration and rename to...
2906 (f_language::f_type_print_varspec_prefix): ...this.
2907 (f_type_print_varspec_suffix): Delete declaration and rename to...
2908 (f_language::f_type_print_varspec_suffix): ...this.
2909 (f_type_print_base): Delete declaration and rename to...
2910 (f_language::f_type_print_base): ...this.
2911 * f-valprint.c (f_value_print_inner): Rename to...
2912 (f_language::value_print_inner): ...this.
2913 * parse.c: Delete 'f-lang.h' include.
2914
2915 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2916
2917 * language.h (language_defn::print_type): Add variable names in
2918 declaration, and update header comment.
2919
2920 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2921
2922 * ada-lang.c (ada_language::demangle): Rename to...
2923 (ada_language::demangle_symbol): ...this.
2924 * c-lang.c (cplus_language::demangle): Rename to...
2925 (cplus_language::demangle_symbol): ...this.
2926 * d-lang.c (d_language::demangle): Rename to...
2927 (d_language::demangle_symbol): ...this.
2928 * f-lang.c (f_language::demangle): Rename to...
2929 (f_language::demangle_symbol): ...this.
2930 * go-lang.c (go_language::demangle): Rename to...
2931 (go_language::demangle_symbol): ...this.
2932 * language.c (language_demangle): Update call to demangle_symbol.
2933 (auto_or_unknown_language::demangle): Rename to...
2934 (auto_or_unknown_language::demangle_symbol): ...this.
2935 * language.h (language_defn::demangle): Rename to...
2936 (language_defn::demangle_symbol): ...this.
2937 * objc-lang.c (objc_language::demangle): Rename to...
2938 (objc_language::demangle_symbol): ...this.
2939 * rust-lang.c (rust_language::demangle): Rename to...
2940 (rust_language::demangle_symbol): ...this.
2941
2942 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2945 (iterate_over_file_blocks): Replace use of macro with the macros
2946 definition.
2947
2948 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2949
2950 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2951 * valprint.c (maybe_print_array_index): Replace use of macro with
2952 the macros definition.
2953
2954 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * ada-lang.c (ada_language::print_array_index): Call value_print
2957 directly.
2958 * language.c (language_defn::print_array_index): Likewise.
2959 * language.h (LA_VALUE_PRINT): Delete.
2960 * valprint.c (value_print): Call value_print on the
2961 current_language directly.
2962
2963 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2964
2965 * language.h (LA_PRINT_TYPEDEF): Delete.
2966 * typeprint.c (typedef_print): Call print_typedef directly on the
2967 current_language object.
2968
2969 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * m2-exp.y (m2_parse): Rename to...
2972 (m2_language::parser): ...this. Update function signature.
2973 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2974 (m2_op_print): Rename to...
2975 (m2_language::op_print_tab): ...this, and make const.
2976 (exp_descriptor_modula2): Rename to...
2977 (m2_language::exp_descriptor_modula2): ...this.
2978 (class m2_language): Move to m2-lang.h.
2979 (m2_language::language_arch_info): New function, moved out of
2980 class declaration.
2981 (m2_language::printchar): New function, body from m2_printchar.
2982 (m2_language::printstr): New function, moved out of class
2983 declaration.
2984 (m2_language::emitchar): Likewise.
2985 * m2-lang.h (m2_parse): Delete declaration.
2986 (m2_print_typedef): Delete declaration.
2987 (m2_value_print_inner): Delete declaration.
2988 (class m2_language): Class declaration moved from m2-lang.c,
2989 larger functions are left in m2-lang.c.
2990 * m2-typeprint.c (m2_print_typedef): Rename to...
2991 (m2_language::print_typedef): ...this, and update function
2992 signature.
2993 * m2-valprint.c (m2_value_print_inner): Rename to...
2994 (m2_language::value_print_inner): ...this, replace use of
2995 LA_PRINT_STRING with a direct call to printstr member function,
2996 and update recursive call.
2997
2998 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2999
3000 * language.c (default_is_string_type_p): Delete, implementation
3001 moved into auto_or_unknown_language::is_string_type_p.
3002 (unk_op_print_tab): Moved into
3003 auto_or_unknown_language::opcode_print_table.
3004 (unknown_language_arch_info): Delete, implementation moved into
3005 auto_or_unknown_language::language_arch_info.
3006 (class auto_or_unknown_language): New class, member functions
3007 copied from unknown_language class, with some updates.
3008 (class unknown_language): Most member functions moved into
3009 auto_or_unknown_language class. Inherit from
3010 auto_or_unknown_language class.
3011 (class auto_language): Inherit from auto_or_unknown_language.
3012 Delete most member functions.
3013
3014 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3015
3016 * stabsread.c (read_member_functions): Remove gdb_assert.
3017
3018 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3019
3020 * gdbtypes.c (init_complex_type): Check target type name.
3021
3022 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3023
3024 * target-debug.h (target_debug_print_struct_target_ops_p):
3025 Remove.
3026 (target_debug_print_async_callback_ftype_p): Remove.
3027 (target_debug_print_struct_trace_state_variable_p): Remove.
3028 (target_debug_print_struct_traceframe_info_p): Remove.
3029 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3030 (target_debug_print_enum_btrace_format): Remove.
3031 (target_debug_print_enum_info_proc_what): Remove.
3032 (target_debug_print_thread_info_pp): Remove.
3033
3034 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * target.h (struct target_ops) <make_corefile_notes>:
3037 Change return type to unique pointer.
3038 * target.c (dummy_make_corefile_notes): Likewise.
3039 * exec.c (struct exec_target) <make_corefile_notes>:
3040 Likewise.
3041 (exec_target::make_corefile_notes): Likewise.
3042 * procfs.c (class procfs_target) <make_corefile_notes>:
3043 Likewise.
3044 (procfs_do_thread_registers): Adjust to unique pointer.
3045 (struct procfs_corefile_thread_data): Add constructor.
3046 <note_data>: Change type to unique pointer.
3047 (procfs_corefile_thread_callback): Adjust to unique pointer.
3048 (procfs_target::make_corefile_notes): Change return type to
3049 unique pointer.
3050 * target-delegates.c: Re-generate.
3051 * gcore.c (write_gcore_file_1): Adjust.
3052 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3053 New.
3054
3055 2020-10-22 Tom de Vries <tdevries@suse.de>
3056
3057 * block.c (find_block_in_blockvector): Make sure the returned block
3058 contains pc.
3059
3060 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 PR gdb/26693
3063 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3064 parameter.
3065 (load_cu): Pass existing CU.
3066 (process_imported_unit_die): Likewise.
3067 (follow_die_offset): Likewise.
3068
3069 2020-10-22 Luis Machado <luis.machado@linaro.org>
3070
3071 * corelow.c (core_target::xfer_partial): Also check for an empty
3072 m_core_unavailable_mappings vector.
3073
3074 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3077 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3078 * f-exp.y (arglist): Allow for a series of subranges.
3079 (subrange): Add cases for subranges with strides.
3080 * f-lang.c (value_f90_subarray): Catch use of array strides and
3081 throw an error.
3082 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3083
3084 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3085
3086 * expprint.c (print_subexp_standard): Change enum range_type to
3087 range_flag and rename variables to match.
3088 (dump_subexp_body_standard): Likewise.
3089 * expression.h (enum range_type): Rename to...
3090 (enum range_flag): ...this.
3091 (range_types): Rename to...
3092 (range_flags): ...this.
3093 * f-lang.c (value_f90_subarray): Change enum range_type to
3094 range_flag and rename variables to match.
3095 * parse.c (operator_length_standard): Likewise.
3096 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3097 range_type to range_flag.
3098 * rust-lang.c (rust_evaluate_funcall): Likewise.
3099 (rust_range): Likewise.
3100 (rust_compute_range): Likewise.
3101 (rust_subscript): Likewise.
3102
3103 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3104
3105 * expprint.c (print_subexp_standard): Update to reflect changes to
3106 enum range_type.
3107 (dump_subexp_body_standard): Likewise.
3108 * expression.h (enum range_type): Convert to a bit field enum, and
3109 make the enum unsigned.
3110 * f-exp.y (subrange): Update to reflect changes to enum
3111 range_type.
3112 * f-lang.c (value_f90_subarray): Likewise.
3113 * parse.c (operator_length_standard): Likewise.
3114 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3115 * rust-lang.c (rust_range): Likewise.
3116 (rust_compute_range): Likewise.
3117 (rust_subscript): Likewise.
3118
3119 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3120
3121 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3122 (displaced_step_in_progress): Fix comment.
3123
3124 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3127 * gdbarch.c: Re-generate.
3128 * gdbarch.h: Re-generate.
3129 * gcore.c (write_gcore_file_1): Adjust.
3130 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3131 constructor.
3132 <note_data>: Change type to unique pointer.
3133 <abort_iteration>: Change type to bool.
3134 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3135 (fbsd_collect_thread_registers): Return void, adjust.
3136 (struct fbsd_corefile_thread_data): Add construtor.
3137 <note_data>: Change type to unique pointer.
3138 (fbsd_corefile_thread): Adjust.
3139 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3140 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3141 to unique pointer, adjust.
3142 (struct linux_collect_regset_section_cb_data): Add constructor.
3143 <note_data>: Change type to unique pointer.
3144 <abort_iteration>: Change type to bool.
3145 (linux_collect_thread_registers): Return void, adjust.
3146 (struct linux_corefile_thread_data): Add constructor.
3147 <note_data>: Change type to unique pointer.
3148 (linux_corefile_thread): Adjust.
3149 (linux_make_corefile_notes): Return unique pointer, adjust.
3150
3151 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3154 * gdbarch.c: Re-generate.
3155 * gdbarch.h: Re-generate.
3156 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3157 bool.
3158 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3159 Likewise.
3160 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3161 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3162 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3163 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3164
3165 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3166
3167 * gdbarch.sh: Make generated predicates return bool.
3168 * gdbarch.c: Re-generate.
3169 * gdbarch.h: Re-generate.
3170
3171 2020-10-20 Tom Tromey <tom@tromey.com>
3172
3173 * varobj-iter.h (struct varobj_item): Remove typedef.
3174
3175 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3176
3177 * infrun.c (currently_stepping): Change int to bool
3178 (maybe_software_singlestep): Likewise.
3179 (show_stop_on_solib_events): Likewise.
3180 (stepping_past_nonsteppable_watchpoint): Likewise.
3181 (displaced_step_in_progress_any_inferior): Likewise.
3182 (displaced_step_in_progress_thread): Likewise.
3183 (keep_going_stepped_thread): Likewise.
3184 (thread_still_needs_step_over): Likewise.
3185 (start_step_over): Likewise.
3186 (do_target_resume): Likewise.
3187 (resume_1): Likewise.
3188 (clear_proceed_status): Likewise.
3189 (thread_still_needs_step_over_bp): Likewise.
3190 (proceed): Likewise.
3191 (switch_back_to_stepped_thread): Likewise.
3192 (adjust_pc_after_break): Likewise.
3193 (stepped_in_from): Likewise.
3194 (handle_stop_requested): Likewise.
3195 (handle_syscall_event): Likewise.
3196 (handle_no_resumed): Likewise.
3197 (handle_inferior_event): Likewise.
3198 (finish_step_over): Likewise.
3199 (handle_signal_stop): Likewise.
3200 (process_event_stop_test): Likewise.
3201
3202 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * infrun.c (get_displaced_stepping_state): Fix comment.
3205
3206 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3207
3208 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3209
3210 2020-10-19 Tom Tromey <tromey@adacore.com>
3211
3212 PR tui/26719
3213 * tui/tui-winsource.h (struct tui_source_window_base)
3214 <refresh_window>: Rename from refresh_pad.
3215 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3216 Rename from refresh_pad.
3217 (tui_source_window_base::show_source_content)
3218 (tui_source_window_base::do_scroll_horizontal): Update.
3219
3220 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3221
3222 * thread.c (_initialize_thread): Fine-tune the help text of
3223 'info threads'.
3224
3225 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3226
3227 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3228
3229 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3230
3231 * breakpoint.c (handle_jit_event): Add an argument, change how
3232 `jit_event_handler` is called.
3233
3234 2020-10-17 Tom Tromey <tom@tromey.com>
3235
3236 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3237 (scan_xcoff_symtab): Update.
3238 * psymtab.h (class psymtab_storage) <global_psymbols,
3239 static_psymbols, current_global_psymbols,
3240 current_static_psymbols>: Remove.
3241 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3242 (match_partial_symbol, lookup_partial_symbol): Update.
3243 (print_partial_symbols): Change parameters.
3244 (dump_psymtab, recursively_search_psymtabs)
3245 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3246 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3247 (concat): Remove.
3248 (end_psymtab_common): Simplify.
3249 (append_psymbol_to_list): Change parameters.
3250 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3251 (init_psymbol_list): Simplify.
3252 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3253 * psympriv.h (struct partial_symtab) <empty>: New method.
3254 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3255 Remove.
3256 <global_psymbols, static_psymbols>: New members.
3257 <add_psymbol>: New methods.
3258 (add_psymbol_to_list): Don't declare.
3259 (psymbol_placement): Move earlier.
3260 * mdebugread.c (parse_partial_symbols): Update.
3261 (handle_psymbol_enumerators): Change parameters.
3262 (mdebug_expand_psymtab): Update.
3263 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3264 (add_partial_symbol): Update.
3265 * dwarf2/index-write.c (write_psymbols): Change parameters.
3266 (write_one_signatured_type): Update.
3267 (recursively_count_psymbols): Update.
3268 (recursively_write_psymbols): Update.
3269 (class debug_names) <recursively_write_psymbols>: Update.
3270 <write_psymbols>: Change parameters.
3271 <write_one_signatured_type>: Update.
3272 * dbxread.c (read_dbx_symtab): Update.
3273 (dbx_end_psymtab): Use partial_symtab::empty.
3274 * ctfread.c (struct ctf_context) <pst>: New member.
3275 (create_partial_symtab): Set it.
3276 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3277 (scan_partial_symbols): Use the psymtab's context. Update.
3278
3279 2020-10-17 Tom Tromey <tom@tromey.com>
3280
3281 * valprint.c (generic_value_print): Remove comment.
3282 * m2-valprint.c (m2_value_print_inner): Remove comment.
3283 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3284 type.
3285
3286 2020-10-17 Tom de Vries <tdevries@suse.de>
3287
3288 PR symtab/26317
3289 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3290 symbol main.
3291
3292 2020-10-14 Tom de Vries <tdevries@suse.de>
3293
3294 PR gdb/26733
3295 * solib.c (solib_contains_address_p): Handle
3296 'solib->sections == nullptr'.
3297
3298 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3299
3300 PR gdb/26642
3301 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3302 target can't do async.
3303 * target.c (target_wait): Assert that we don't pass
3304 TARGET_WNOHANG to a target that can't async.
3305
3306 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3307
3308 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3309 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3310 * alpha-bsd-nat.c: Adjust include.
3311 * alpha-bsd-tdep.h: Adjust comment.
3312 * alpha-nbsd-tdep.c: Rename to ...
3313 * alpha-netbsd-tdep.c: ... this, adjust include.
3314 * amd64-nbsd-nat.c: Rename to ...
3315 * amd64-netbsd-nat.c: ... this, adjust include.
3316 * amd64-nbsd-tdep.c: Rename to ...
3317 * amd64-netbsd-tdep.c: ... this, adjust include.
3318 * amd64-tdep.h: Adjust include.
3319 * arm-nbsd-nat.c: Rename to ...
3320 * arm-netbsd-nat.c: ... this, adjust include.
3321 * arm-nbsd-tdep.c: Rename to ...
3322 * arm-netbsd-tdep.c: ... this, adjust include.
3323 * arm-nbsd-tdep.h: Rename to ...
3324 * arm-netbsd-tdep.h: ... this, adjust include.
3325 * configure.nat: Adjust file lists.
3326 * configure.tgt: Likewise.
3327 * hppa-nbsd-nat.c: Rename to ...
3328 * hppa-netbsd-nat.c: ... this, adjust include.
3329 * hppa-nbsd-tdep.c: Rename to ...
3330 * hppa-netbsd-tdep.c: ... this, adjust include.
3331 * i386-nbsd-nat.c: Rename to ...
3332 * i386-netbsd-nat.c: ... this, adjust include.
3333 * i386-nbsd-tdep.c: Rename to ...
3334 * i386-netbsd-tdep.c: ... this, adjust include.
3335 * m68k-bsd-nat.c: Adjust include.
3336 * mips-nbsd-nat.c: Rename to ...
3337 * mips-netbsd-nat.c: ... this, adjust include.
3338 * mips-nbsd-tdep.c: Rename to ...
3339 * mips-netbsd-tdep.c: ... this, adjust include.
3340 * mips-nbsd-tdep.h: Rename to ...
3341 * mips-netbsd-tdep.h: ... this.
3342 * nbsd-nat.c: Rename to ...
3343 * netbsd-nat.c: ... this, adjust include.
3344 * nbsd-nat.h: Rename to ...
3345 * netbsd-nat.h: ... this, adjust include.
3346 * nbsd-tdep.c: Rename to ...
3347 * netbsd-tdep.c: ... this, adjust include.
3348 * nbsd-tdep.h: Rename to ...
3349 * netbsd-tdep.h: ... this.
3350 * ppc-nbsd-nat.c: Rename to ...
3351 * ppc-netbsd-nat.c: ... this, adjust include.
3352 * ppc-nbsd-tdep.c: Rename to ...
3353 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3354 * ppc-nbsd-tdep.h: Rename to ...
3355 * ppc-netbsd-tdep.h: ... this.
3356 * sh-nbsd-nat.c: Rename to ...
3357 * sh-netbsd-nat.c: ... this, adjust include.
3358 * sh-nbsd-tdep.c: Rename to ...
3359 * sh-netbsd-tdep.c: ... this, adjust include.
3360 * sparc-nbsd-nat.c: Rename to ...
3361 * sparc-netbsd-nat.c: ... this.
3362 * sparc-nbsd-tdep.c: Rename to ...
3363 * sparc-netbsd-tdep.c: ... this, adjust include.
3364 * sparc64-nbsd-nat.c: Rename to ...
3365 * sparc64-netbsd-nat.c: ... this.
3366 * sparc64-nbsd-tdep.c: Rename to ...
3367 * sparc64-netbsd-tdep.c: ... this, adjust include.
3368 * sparc64-tdep.h: Adjust comment.
3369 * vax-bsd-nat.c: Adjust include.
3370 * vax-nbsd-tdep.c: Rename to ...
3371 * vax-netbsd-tdep.c: ... this, adjust include.
3372
3373 2020-10-12 Tom Tromey <tom@tromey.com>
3374
3375 * target.h (struct target_ops) <get_section_table>: Update.
3376 (target_get_section_table): Update.
3377 * target.c (target_get_section_table, target_section_by_addr)
3378 (memory_xfer_partial_1): Update.
3379 * target-section.h (target_section_table): Now an alias.
3380 * target-delegates.c: Rebuild.
3381 * target-debug.h (target_debug_print_target_section_table_p):
3382 Rename from target_debug_print_struct_target_section_table_p.
3383 * symfile.c (build_section_addr_info_from_section_table): Update.
3384 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3385 * solib-svr4.c (scan_dyntag): Update.
3386 * solib-dsbt.c (scan_dyntag): Update.
3387 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3388 Update.
3389 * record-full.c (record_full_core_target::xfer_partial): Update.
3390 * progspace.h (struct program_space) <target_sections>: Update.
3391 * exec.h (print_section_info): Update.
3392 * exec.c (exec_target::close, build_section_table)
3393 (add_target_sections, add_target_sections_of_objfile)
3394 (remove_target_sections, exec_on_vfork)
3395 (section_table_available_memory)
3396 (section_table_xfer_memory_partial)
3397 (exec_target::get_section_table, exec_target::xfer_partial)
3398 (print_section_info, set_section_command)
3399 (exec_set_section_address, exec_target::has_memory): Update.
3400 * corelow.c (core_target::build_file_mappings)
3401 (core_target::xfer_partial, core_target::info_proc_mappings)
3402 (core_target::info_proc_mappings): Update.
3403 * bfd-target.c (class target_bfd): Update
3404
3405 2020-10-12 Tom Tromey <tom@tromey.com>
3406
3407 * progspace.c (program_space::~program_space): Don't call
3408 clear_section_table.
3409 * exec.h (clear_section_table): Don't declare.
3410 * exec.c (exec_target::close): Update.
3411 (clear_section_table): Remove.
3412
3413 2020-10-12 Tom Tromey <tom@tromey.com>
3414
3415 * exec.c (add_target_sections_of_objfile): Simplify.
3416
3417 2020-10-12 Tom Tromey <tom@tromey.com>
3418
3419 * solib.c (solib_map_sections): Update.
3420 * record-full.c (record_full_core_open_1): Update.
3421 * exec.h (build_section_table): Return a target_section_table.
3422 * exec.c (exec_file_attach): Update.
3423 (build_section_table): Return a target_section_table.
3424 * corelow.c (core_target::core_target): Update.
3425 * bfd-target.c (target_bfd::target_bfd): Update.
3426
3427 2020-10-12 Tom Tromey <tom@tromey.com>
3428
3429 * target.c (target_section_by_addr, memory_xfer_partial_1):
3430 Update.
3431 * target-section.h (struct target_section_table): Use
3432 std::vector.
3433 * symfile.h (build_section_addr_info_from_section_table): Take a
3434 target_section_table.
3435 * symfile.c (build_section_addr_info_from_section_table): Take a
3436 target_section_table.
3437 * solist.h (struct so_list) <sections>: Change type.
3438 <sections_end>: Remove.
3439 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3440 (solib_contains_address_p): Update.
3441 * solib-svr4.c (scan_dyntag): Update.
3442 * solib-dsbt.c (scan_dyntag): Update.
3443 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3444 Update.
3445 * record-full.c (record_full_core_start, record_full_core_end):
3446 Remove.
3447 (record_full_core_sections): New global.
3448 (record_full_core_open_1, record_full_core_target::xfer_partial):
3449 Update.
3450 * exec.h (build_section_table, section_table_xfer_memory_partial)
3451 (add_target_sections): Take a target_section_table.
3452 * exec.c (exec_file_attach, clear_section_table): Update.
3453 (resize_section_table): Remove.
3454 (build_section_table, add_target_sections): Take a
3455 target_section_table.
3456 (add_target_sections_of_objfile, remove_target_sections)
3457 (exec_on_vfork): Update.
3458 (section_table_available_memory): Take a target_section_table.
3459 (section_table_read_available_memory): Update.
3460 (section_table_xfer_memory_partial): Take a target_section_table.
3461 (print_section_info, set_section_command)
3462 (exec_set_section_address, exec_target::has_memory): Update.
3463 * corelow.c (class core_target) <m_core_section_table,
3464 m_core_file_mappings>: Remove braces.
3465 <~core_target>: Remove.
3466 (core_target::core_target): Update.
3467 (core_target::~core_target): Remove.
3468 (core_target::build_file_mappings)
3469 (core_target::xfer_memory_via_mappings)
3470 (core_target::xfer_partial, core_target::info_proc_mappings):
3471 Update.
3472 * bfd-target.c (target_bfd::xfer_partial): Update.
3473 (target_bfd::target_bfd): Update.
3474 (target_bfd::~target_bfd): Remove.
3475
3476 2020-10-12 Tom Tromey <tom@tromey.com>
3477
3478 * target.h (struct target_section, struct target_section_table):
3479 Move to target-section.h.
3480 * target-section.h: New file.
3481
3482 2020-10-12 Pedro Alves <pedro@palves.net>
3483
3484 PR exp/26602
3485 * valops.c (struct struct_field_searcher): New.
3486 (update_search_result): Rename to ...
3487 (struct_field_searcher::update_result): ... this. Simplify
3488 prototype. Record all found fields.
3489 (do_search_struct_field): Rename to ...
3490 (struct_field_searcher::search): ... this. Simplify prototype.
3491 Maintain stack of visited baseclass path. Call update_result for
3492 fields too. Keep searching fields in baseclasses instead of
3493 stopping at the first found field.
3494 (search_struct_field): Use struct_field_searcher. When looking
3495 for fields, report ambiguous access attempts.
3496
3497 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * frame.c (inside_main_func): Check full symbols as well as
3500 minimal symbols.
3501
3502 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3503
3504 * ada-lang.c (advance_wild_match): Rewrite the function's
3505 description. Change the type of target0, t0 and t1 to char.
3506
3507 2020-10-09 Tom Tromey <tromey@adacore.com>
3508
3509 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3510
3511 2020-10-09 Tom Tromey <tromey@adacore.com>
3512
3513 * ada-lang.h (ada_encode): Return std::string.
3514 * ada-lang.c (ada_encode_1): Return std::string.
3515 (ada_encode): Likewise.
3516 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3517 Update.
3518 * ada-exp.y (block_lookup, write_var_or_type): Update.
3519
3520 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3521
3522 PR exp/26714
3523 * printcmd.c (print_formatted): Handle void results as
3524 unformatted prints.
3525
3526 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3527
3528 * arch/aarch32.c (aarch32_create_target_description): Release the
3529 target_desc_up as late as possible.
3530 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3531 * arch/amd64.c (amd64_create_target_description): Likewise.
3532 * arch/arc.c (arc_create_target_description): Return a
3533 target_desc_up, don't release it.
3534 * arch/arc.h (arc_create_target_description): Update declaration.
3535 (arc_lookup_target_description): Move target_desc_up into the
3536 cache, and return a borrowed pointer.
3537 * arch/arm.c (arm_create_target_description): Release the
3538 target_desc_up as late as possible.
3539 * arch/i386.c (i386_create_target_description): Likewise.
3540 * arch/riscv.h (riscv_create_target_description): Update
3541 declaration to match definition.
3542 * arch/tic6x.c (tic6x_create_target_description): Release the
3543 target_desc_up as late as possible.
3544
3545 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3548 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3549
3550 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3551
3552 * source.c (directory_command): Notify observers that "directories"
3553 parameter has changed.
3554
3555 2020-10-08 Tom Tromey <tom@tromey.com>
3556
3557 * cli/cli-cmds.c (print_disassembly): Style function name and
3558 addresses. Add _() wrappers.
3559
3560 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3561
3562 * NEWS: Mention ARC support in GDBserver.
3563
3564 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 * arch/aarch32.c (aarch32_create_target_description): Release
3567 unique_ptr returned from allocate_target_description.
3568 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3569 * arch/amd64.c (amd64_create_target_description): Likewise.
3570 * arch/arc.c (arc_create_target_description): Likewise.
3571 * arch/arm.c (arm_create_target_description): Likewise.
3572 * arch/i386.c (i386_create_target_description): Likewise.
3573 * arch/riscv.c (riscv_create_target_description): Update return
3574 type. Handle allocate_target_description returning a unique_ptr.
3575 (riscv_lookup_target_description): Update to handle unique_ptr.
3576 * arch/tic6x.c (tic6x_create_target_description): Release
3577 unique_ptr returned from allocate_target_description.
3578 * features/microblaze-with-stack-protect.c: Regenerate.
3579 * features/microblaze.c: Regenerate.
3580 * features/mips-dsp-linux.c: Regenerate.
3581 * features/mips-linux.c: Regenerate.
3582 * features/mips64-dsp-linux.c: Regenerate.
3583 * features/mips64-linux.c: Regenerate.
3584 * features/nds32.c: Regenerate.
3585 * features/nios2.c: Regenerate.
3586 * features/or1k.c: Regenerate.
3587 * features/rs6000/powerpc-32.c: Regenerate.
3588 * features/rs6000/powerpc-32l.c: Regenerate.
3589 * features/rs6000/powerpc-403.c: Regenerate.
3590 * features/rs6000/powerpc-403gc.c: Regenerate.
3591 * features/rs6000/powerpc-405.c: Regenerate.
3592 * features/rs6000/powerpc-505.c: Regenerate.
3593 * features/rs6000/powerpc-601.c: Regenerate.
3594 * features/rs6000/powerpc-602.c: Regenerate.
3595 * features/rs6000/powerpc-603.c: Regenerate.
3596 * features/rs6000/powerpc-604.c: Regenerate.
3597 * features/rs6000/powerpc-64.c: Regenerate.
3598 * features/rs6000/powerpc-64l.c: Regenerate.
3599 * features/rs6000/powerpc-7400.c: Regenerate.
3600 * features/rs6000/powerpc-750.c: Regenerate.
3601 * features/rs6000/powerpc-860.c: Regenerate.
3602 * features/rs6000/powerpc-altivec32.c: Regenerate.
3603 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3604 * features/rs6000/powerpc-altivec64.c: Regenerate.
3605 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3606 * features/rs6000/powerpc-e500.c: Regenerate.
3607 * features/rs6000/powerpc-e500l.c: Regenerate.
3608 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3609 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3610 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3611 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3612 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3613 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3614 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3615 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3616 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3617 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3618 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3619 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3620 * features/rs6000/powerpc-vsx32.c: Regenerate.
3621 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3622 * features/rs6000/powerpc-vsx64.c: Regenerate.
3623 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3624 * features/rs6000/rs6000.c: Regenerate.
3625 * features/rx.c: Regenerate.
3626 * features/s390-gs-linux64.c: Regenerate.
3627 * features/s390-linux32.c: Regenerate.
3628 * features/s390-linux32v1.c: Regenerate.
3629 * features/s390-linux32v2.c: Regenerate.
3630 * features/s390-linux64.c: Regenerate.
3631 * features/s390-linux64v1.c: Regenerate.
3632 * features/s390-linux64v2.c: Regenerate.
3633 * features/s390-te-linux64.c: Regenerate.
3634 * features/s390-tevx-linux64.c: Regenerate.
3635 * features/s390-vx-linux64.c: Regenerate.
3636 * features/s390x-gs-linux64.c: Regenerate.
3637 * features/s390x-linux64.c: Regenerate.
3638 * features/s390x-linux64v1.c: Regenerate.
3639 * features/s390x-linux64v2.c: Regenerate.
3640 * features/s390x-te-linux64.c: Regenerate.
3641 * features/s390x-tevx-linux64.c: Regenerate.
3642 * features/s390x-vx-linux64.c: Regenerate.
3643 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3644 from allocate_target_description.
3645 * target-descriptions.c (allocate_target_description): Update
3646 return type.
3647 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3648 allocate_target_description.
3649
3650 2020-10-07 Tom Tromey <tromey@adacore.com>
3651
3652 * unittests/search-memory-selftests.c: New file.
3653 * Makefile.in (SELFTESTS_SRCS): Add
3654 unittests/search-memory-selftests.c.
3655
3656 2020-10-07 Tom Tromey <tromey@adacore.com>
3657
3658 PR gdb/16930:
3659 * findcmd.c (_initialize_mem_search): Mention that the range is
3660 inclusive.
3661
3662 2020-10-07 Tom Tromey <tromey@adacore.com>
3663
3664 * target.h (simple_search_memory): Don't declare.
3665 * target.c (simple_search_memory): Move to gdbsupport.
3666 (default_search_memory): Update.
3667 * remote.c (remote_target::search_memory): Update.
3668
3669 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3670
3671 * Makefile.in (COMPILE): Add CXXFLAGS.
3672 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3673 (check-headers): Add CXXFLAGS.
3674
3675 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3676
3677 * arc-linux-tdep.h: New file.
3678 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3679 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3680 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3681 arc_linux_gregset, arc_linux_v2_regset,
3682 arc_linux_iterate_over_regset_sections,
3683 arc_linux_core_read_description): Implement.
3684 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3685 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3686 (arc_gdbarch_features_create): Add.
3687 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3688
3689 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3690
3691 * arch/arc.h: Rename "arc_gdbarch_features" to
3692 "arc_arch_features".
3693 * arc-tdep.h: Likewise.
3694 * arc-tdep.c: Likewise.
3695
3696 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3697
3698 * infcmd.c (attach_command): Remove the redundant call to
3699 `clear_proceed_status`.
3700
3701 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3702
3703 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3704
3705 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3706
3707 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3708 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3709 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3710
3711 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3712
3713 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3714 (_initialize_break_catch_sig): Don't allocate array.
3715
3716 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3717
3718 * symtab.c (find_pc_line): Return unmapped addresses when the
3719 requested address is also unmapped.
3720
3721 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3724 tui/tui-out.h.
3725
3726 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3727
3728 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3729 type::is_vector instead of TYPE_VECTOR.
3730
3731 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3732
3733 * auto-load.c (auto_load_objfile_script_1): Don't use
3734 debugfile_holder as temporary variable when stripping drive
3735 letter.
3736
3737 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3738
3739 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3740 Add TYPE_CODE_COMPLEX.
3741 (amd64_windows_return_value): Fix types returned via XMM0.
3742
3743 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3744
3745 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3746 AArch64/ARM maintainers.
3747
3748 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * NEWS: Mention set/show debug event-loop.
3751
3752 2020-10-02 Tom Tromey <tromey@adacore.com>
3753
3754 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3755 REG_EXTENDED.
3756
3757 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3758
3759 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3760 * procfs.c (procfs_inferior_created): Remove.
3761 (_initialize_procfs): Don't register procfs_inferior_created.
3762
3763 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3764
3765 * async-event.c (invoke_async_signal_handlers): Add debug
3766 print.
3767 (check_async_event_handlers): Likewise.
3768 * event-top.c (show_debug_event_loop): New function.
3769 (_initialize_event_top): Register "set debug event-loop"
3770 setting.
3771
3772 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3773
3774 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3775 * debug.h: Remove.
3776 * infrun.c: Include gdbsupport/common-debug.h.
3777 * linux-nat.c: Likewise.
3778
3779 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3780
3781 * async-event.h (create_async_signal_handler): Add name
3782 parameter.
3783 (create_async_event_handler): Likewise.
3784 * async-event.c (struct async_signal_handler) <name>: New field.
3785 (struct async_event_handler) <name>: New field.
3786 (create_async_signal_handler): Assign name.
3787 (create_async_event_handler): Assign name.
3788 * event-top.c (async_init_signals): Pass name when creating
3789 handler.
3790 * infrun.c (_initialize_infrun): Likewise.
3791 * record-btrace.c (record_btrace_push_target): Likewise.
3792 * record-full.c (record_full_open): Likewise.
3793 * remote-notif.c (remote_notif_state_allocate): Likewise.
3794 * remote.c (remote_target::open_1): Likewise.
3795 * tui/tui-win.c (tui_initialize_win): Likewise.
3796
3797 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * async-event.c (initialize_async_signal_handlers): Pass name to
3800 add_file_handler
3801 * event-top.c (ui_register_input_event_handler): Likewise.
3802 * linux-nat.c (linux_nat_target::async): Likewise.
3803 * run-on-main-thread.c (_initialize_run_on_main_thread):
3804 Likewise
3805 * ser-base.c (reschedule): Likewise.
3806 (ser_base_async): Likewise.
3807 * tui/tui-io.c: Likewise.
3808 * top.h (struct ui) <num>: New field.
3809 * top.c (highest_ui_num): New variable.
3810 (ui::ui): Initialize num.
3811
3812 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3813
3814 * observable.h <inferior_created>: Remove parameters. Update all
3815 listeners.
3816 * inferior.h (post_create_inferior): Remove target parameter.
3817 Update all callers.
3818
3819 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3820
3821 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3822 and DW_MACRO_undef_strx.
3823 (dwarf_decode_macros): Likewise
3824 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3825 which is the value of DW_AT_str_offsets_base.
3826 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3827 str_offsets_base.
3828
3829 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3830
3831 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3832
3833 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3834
3835 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3836 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3837
3838 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3839
3840 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3841
3842 2020-09-30 Tom de Vries <tdevries@suse.de>
3843
3844 PR symtab/26683
3845 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3846
3847 2020-09-30 Tom Tromey <tromey@adacore.com>
3848
3849 * dwarf2/read.c (handle_variant): Use constant_value.
3850
3851 2020-09-29 Tom Tromey <tom@tromey.com>
3852
3853 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3854 (read_file_scope, dwarf2_get_pc_bounds)
3855 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3856 (read_structure_type, handle_struct_member_die)
3857 (read_enumeration_type, read_array_type, read_set_type)
3858 (read_tag_pointer_type, read_tag_reference_type)
3859 (read_subroutine_type, read_base_type, read_subrange_type)
3860 (read_full_die_1, partial_die_info::read)
3861 (partial_die_info::read, by, new_symbol)
3862 (dwarf2_const_value_data, dwarf2_const_value_attr)
3863 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3864 (prepare_one_comp_unit): Update.
3865 * dwarf2/attribute.h (DW_UNSND): Remove.
3866
3867 2020-09-29 Tom Tromey <tom@tromey.com>
3868
3869 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3870 (read_subroutine_type, partial_die_info::read)
3871 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3872 (dwarf2_add_member_fn): Update.
3873 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3874 * dwarf2/attribute.c (attribute::as_boolean): New method.
3875
3876 2020-09-29 Tom Tromey <tom@tromey.com>
3877
3878 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3879 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3880 method.
3881 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3882
3883 2020-09-29 Tom Tromey <tom@tromey.com>
3884
3885 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3886 the attribute's form.
3887
3888 2020-09-29 Tom Tromey <tom@tromey.com>
3889
3890 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3891 (dwarf2_add_member_fn): Update.
3892 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3893 * dwarf2/attribute.c (attribute::defaulted): New method, from
3894 is_valid_DW_AT_defaulted.
3895
3896 2020-09-29 Tom Tromey <tom@tromey.com>
3897
3898 * dwarf2/read.c (dw2_get_file_names_reader)
3899 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3900 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3901 (dwarf2_symbol_mark_computed): Use as_unsigned.
3902 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3903 method.
3904 <form_is_section_offset>: Update comment.
3905
3906 2020-09-29 Tom Tromey <tom@tromey.com>
3907
3908 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3909 dwarf2_default_access_attribute. Look up attribute.
3910 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3911 Update.
3912
3913 2020-09-29 Tom Tromey <tom@tromey.com>
3914
3915 * dwarf2/read.c (skip_one_die): Update.
3916 (read_full_die_1): Change how reprocessing is done.
3917 (partial_die_info::read): Update.
3918 (read_attribute_value): Remove need_reprocess parameter.
3919 (read_attribute): Likewise.
3920 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3921 New method.
3922
3923 2020-09-29 Tom Tromey <tom@tromey.com>
3924
3925 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3926 (dwarf2_const_value_attr, dump_die_shallow)
3927 (dwarf2_fetch_constant_bytes): Update.
3928 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3929 comment.
3930 <set_address>: New method.
3931 (DW_ADDR): Remove.
3932 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3933 (attribute::as_string, attribute::as_address): Add assert.
3934
3935 2020-09-29 Tom Tromey <tom@tromey.com>
3936
3937 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3938 (read_attribute_reprocess, read_attribute_value): Update.
3939 (read_attribute): Clear requires_reprocessing.
3940 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3941 form_requires_reprocessing>: New methods.
3942 <string_init>: Clear requires_reprocessing.
3943 <set_unsigned_reprocess>: New method.
3944 <name>: Shrink by one bit.
3945 <requires_reprocessing>: New member.
3946 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3947 method.
3948
3949 2020-09-29 Tom Tromey <tom@tromey.com>
3950
3951 * dwarf2/read.c (read_attribute_value): Update.
3952 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3953 set_unsigned>: New methods.
3954 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3955
3956 2020-09-29 Tom Tromey <tom@tromey.com>
3957
3958 * dwarf2/read.c (get_alignment, read_array_order)
3959 (read_attribute_value, dwarf2_const_value_attr)
3960 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3961 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3962 New methods.
3963 (DW_SND): Remove.
3964
3965 2020-09-29 Tom Tromey <tom@tromey.com>
3966
3967 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3968 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3969 Update.
3970 * dwarf2/attribute.h (struct attribute) <as_signature,
3971 set_signature>: New methods.
3972 (DW_SIGNATURE): Remove.
3973
3974 2020-09-29 Tom Tromey <tom@tromey.com>
3975
3976 * dwarf2/read.c (read_call_site_scope)
3977 (handle_data_member_location, dwarf2_add_member_fn)
3978 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3979 (partial_die_info::read, read_attribute_value)
3980 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3981 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3982 (dwarf2_symbol_mark_computed): Update.
3983 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3984 methods.
3985 (DW_BLOCK): Remove.
3986 * dwarf2/attribute.c (attribute::form_is_block): Add
3987 DW_FORM_data16.
3988
3989 2020-09-29 Tom Tromey <tom@tromey.com>
3990
3991 * dwarf2/read.c (read_cutu_die_from_dwo)
3992 (read_attribute_reprocess, read_attribute_value, read_attribute)
3993 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3994 (dwarf2_fetch_constant_bytes): Update.
3995 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3996 <set_string_noncanonical, set_string_canonical>: New methods.
3997 <string_is_canonical>: Update comment.
3998 <canonical_string_p>: Add assert.
3999 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
4000 * dwarf2/attribute.c (attribute::form_is_string): New method.
4001 (attribute::string): Use it.
4002
4003 2020-09-29 Tom Tromey <tom@tromey.com>
4004
4005 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
4006 (dump_die_shallow): Use canonical_string_p.
4007 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4008 method.
4009
4010 2020-09-29 Tom Tromey <tom@tromey.com>
4011
4012 * dwarf2/read.c (partial_die_info::read)
4013 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4014 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4015 attribute::as_string.
4016
4017 2020-09-29 Tom Tromey <tom@tromey.com>
4018
4019 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4020 DW_ADDR.
4021 (attribute::string): Don't use DW_STRING.
4022 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4023 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4024
4025 2020-09-29 Tom Tromey <tom@tromey.com>
4026
4027 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4028 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4029 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4030 * dwarf2/attribute.h (struct attribute): Rename methods.
4031 * dwarf2/attribute.c (attribute::as_address): Rename from
4032 value_as_address.
4033 (attribute::as_string): Rename from value_as_string.
4034
4035 2020-09-29 Tom Tromey <tom@tromey.com>
4036
4037 * dwarf2/read.c (partial_die_info::read) <case
4038 DW_AT_linkage_name>: Use value_as_string.
4039 (dwarf2_string_attr): Use value_as_string.
4040 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4041 method.
4042 * dwarf2/attribute.c (attribute::value_as_string): New method.
4043
4044 2020-09-29 Pedro Alves <pedro@palves.net>
4045
4046 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4047 defined before using '#pragma GCC diagnostic' instead of checking
4048 __clang__.
4049
4050 2020-09-28 Tom Tromey <tom@tromey.com>
4051
4052 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4053 (handle_signal_stop): Update.
4054 * procfs.c (procfs_target::insert_watchpoint): Update.
4055 * target.h (target_have_steppable_watchpoint): Now a function.
4056
4057 2020-09-28 Tom Tromey <tom@tromey.com>
4058
4059 * infrun.c (set_schedlock_func): Update.
4060 * target.h (target_can_lock_scheduler): Now a function.
4061
4062 2020-09-28 Tom Tromey <tom@tromey.com>
4063
4064 * inferior.h (class inferior) <has_execution>: Update.
4065 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4066 * valops.c (find_function_in_inferior)
4067 (value_allocate_space_in_inferior): Update.
4068 * top.c (kill_or_detach): Update.
4069 * target.c (target_preopen, set_target_permissions): Update.
4070 (target_has_execution_current): Remove.
4071 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4072 Update.
4073 * solib.c (update_solib_list, reload_shared_libraries): Update.
4074 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4075 * solib-dsbt.c (enable_break): Update.
4076 * score-tdep.c (score7_fetch_inst): Update.
4077 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4078 Update.
4079 * remote.c (remote_target::start_remote)
4080 (remote_target::remote_check_symbols, remote_target::open_1)
4081 (remote_target::remote_detach_1, remote_target::verify_memory)
4082 (remote_target::xfer_partial, remote_target::read_description)
4083 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4084 * record-full.c (record_full_open_1): Update.
4085 * record-btrace.c (record_btrace_target_open): Update.
4086 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4087 (value_nsstring): Update.
4088 * linux-thread-db.c (add_thread_db_info)
4089 (thread_db_find_new_threads_silently, check_thread_db_callback)
4090 (try_thread_db_load_1, record_thread): Update.
4091 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4092 Update.
4093 * linux-fork.c (checkpoint_command): Update.
4094 * infrun.c (set_non_stop, set_observer_mode)
4095 (check_multi_target_resumption, for_each_just_stopped_thread)
4096 (maybe_remove_breakpoints, normal_stop)
4097 (class infcall_suspend_state): Update.
4098 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4099 (info_program_command, attach_command): Update.
4100 * infcall.c (call_function_by_hand_dummy): Update.
4101 * inf-loop.c (inferior_event_handler): Update.
4102 * gcore.c (gcore_command, derive_heap_segment): Update.
4103 * exec.c (exec_file_command): Update.
4104 * eval.c (evaluate_subexp): Update.
4105 * compile/compile.c (compile_to_object): Update.
4106 * cli/cli-dump.c (restore_command): Update.
4107 * breakpoint.c (update_watchpoint)
4108 (update_inserted_breakpoint_locations)
4109 (insert_breakpoint_locations, get_bpstat_thread): Update.
4110 * target.h (target_has_execution): Remove macro.
4111 (target_has_execution_current): Don't declare.
4112 (target_has_execution): Rename from target_has_execution_1. Add
4113 argument default.
4114
4115 2020-09-28 Tom Tromey <tom@tromey.com>
4116
4117 * mi/mi-main.c (exec_reverse_continue)
4118 (mi_cmd_list_target_features): Update.
4119 * infrun.c (set_exec_direction_func): Update.
4120 * target.c (default_execution_direction): Update.
4121 * reverse.c (exec_reverse_once): Update.
4122 * target.h (target_can_execute_reverse): Now a function.
4123
4124 2020-09-28 Tom Tromey <tom@tromey.com>
4125
4126 * tui/tui-regs.c (tui_get_register)
4127 (tui_data_window::show_registers): Update.
4128 * thread.c (scoped_restore_current_thread::restore)
4129 (scoped_restore_current_thread::scoped_restore_current_thread):
4130 Update.
4131 * regcache-dump.c (regcache_print): Update.
4132 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4133 Update.
4134 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4135 * mep-tdep.c (current_me_module, current_options): Update.
4136 * linux-thread-db.c (thread_db_load): Update.
4137 * infcmd.c (registers_info, info_vector_command)
4138 (info_float_command): Update.
4139 * ia64-tdep.c (ia64_frame_prev_register)
4140 (ia64_sigtramp_frame_prev_register): Update.
4141 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4142 * gcore.c (derive_stack_segment): Update.
4143 * frame.c (get_current_frame, has_stack_frames): Update.
4144 * findvar.c (language_defn::read_var_value): Update.
4145 * arm-tdep.c (arm_pc_is_thumb): Update.
4146 * target.c (target_has_registers): Rename from
4147 target_has_registers_1.
4148 * target.h (target_has_registers): Remove macro.
4149 (target_has_registers): Rename from target_has_registers_1.
4150
4151 2020-09-28 Tom Tromey <tom@tromey.com>
4152
4153 * windows-tdep.c (tlb_make_value): Update.
4154 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4155 * thread.c (scoped_restore_current_thread::restore)
4156 (scoped_restore_current_thread::scoped_restore_current_thread)
4157 (thread_command): Update.
4158 * stack.c (backtrace_command_1, frame_apply_level_command)
4159 (frame_apply_all_command, frame_apply_command): Update.
4160 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4161 Update.
4162 * gcore.c (derive_stack_segment): Update.
4163 * frame.c (get_current_frame, has_stack_frames): Update.
4164 * auxv.c (info_auxv_command): Update.
4165 * ada-tasks.c (ada_build_task_list): Update.
4166 * target.c (target_has_stack): Rename from target_has_stack_1.
4167 * target.h (target_has_stack): Remove macro.
4168 (target_has_stack): Rename from target_has_stack_1.
4169
4170 2020-09-28 Tom Tromey <tom@tromey.com>
4171
4172 * target.c (target_has_memory): Rename from target_has_memory_1.
4173 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4174 * thread.c (scoped_restore_current_thread::restore)
4175 (scoped_restore_current_thread::scoped_restore_current_thread):
4176 Update.
4177 * frame.c (get_current_frame, has_stack_frames): Update.
4178 * target.h (target_has_memory): Remove macro.
4179 (target_has_memory): Rename from target_has_memory_1.
4180
4181 2020-09-28 Tom Tromey <tom@tromey.com>
4182
4183 * target.c (target_has_all_memory_1): Remove.
4184 * target.h (target_has_all_memory): Remove define.
4185 (target_has_all_memory_1): Don't declare.
4186
4187 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4188
4189 * ser-base.c: Adjust comments formatting.
4190
4191 2020-09-27 Tom Tromey <tom@tromey.com>
4192
4193 PR tui/25342:
4194 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4195
4196 2020-09-27 Tom Tromey <tom@tromey.com>
4197
4198 PR tui/25342:
4199 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4200
4201 2020-09-27 Tom Tromey <tom@tromey.com>
4202
4203 * unittests/tui-selftests.c: Update.
4204 * tui/tui-winsource.h (struct tui_source_window_base)
4205 <extra_margin, show_line_number, refresh_pad>: New methods.
4206 <m_max_length, m_pad>: New members.
4207 (tui_copy_source_line): Update.
4208 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4209 first_col, line_width, ndigits parameters. Add length.
4210 (tui_source_window_base::show_source_line): Write to pad. Line
4211 number now 0-based.
4212 (tui_source_window_base::refresh_pad): New method.
4213 (tui_source_window_base::show_source_content): Write to pad. Call
4214 refresh_pad.
4215 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4216 not refill.
4217 (tui_source_window_base::update_exec_info): Call
4218 show_line_number.
4219 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4220 method.
4221 <m_digits>: New member.
4222 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4223 and m_max_length.
4224 (tui_source_window::show_line_number): New method.
4225 * tui/tui-io.h (tui_puts): Fix comment.
4226 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4227 m_max_length.
4228
4229 2020-09-27 Tom Tromey <tom@tromey.com>
4230
4231 * tui/tui-winsource.c
4232 (tui_source_window_base::set_is_exec_point_at): Don't call
4233 show_source_line.
4234
4235 2020-09-27 Tom Tromey <tom@tromey.com>
4236
4237 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4238 method.
4239 <erase>: Update.
4240 <cursor_x, cursor_y>: Remove.
4241 <m_inner_window>: New member.
4242 (tui_py_window::rerender): Create inner window.
4243 (tui_py_window::output): Write to inner window.
4244
4245 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4246
4247 PR python/26586
4248 * cli/cli-script.c (execute_control_commands): don't set
4249 instream to nullptr here as this breaks the from_tty argument
4250 to gdb.execute in Python.
4251 (execute_user_command): set instream to nullptr here instead.
4252
4253 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * infrun.h (infrun_debug_printf): Fix formatting.
4256 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4257
4258 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4259
4260 * compile/compile-object-load.h (struct munmap_list): Add
4261 explicitly-defined move constructor.
4262
4263 2020-09-24 Tom Tromey <tromey@adacore.com>
4264
4265 PR tui/26638:
4266 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4267 method.
4268 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4269 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4270 (tui_prev_win): Rewrite.
4271
4272 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4273
4274 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4275 in WOW64 processes as SIGINT.
4276 * nat/windows-nat.h: Make wow64_process a shared variable.
4277 * windows-nat.c: Remove static wow64_process variable.
4278
4279 2020-09-23 Tom Tromey <tom@tromey.com>
4280
4281 PR symtab/25470:
4282 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4283 offset and bit size.
4284 * printcmd.c (print_scalar_formatted): Handle zero-length
4285 integer.
4286 (print_scalar_formatted): Use bit_size_differs_p.
4287 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4288 constant.
4289 (union type_specific): <int_stuff>: New member.
4290 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4291 methods.
4292 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4293 TYPE_SPECIFIC_FIELD.
4294 (recursive_dump_type, copy_type_recursive): Update.
4295 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4296 DW_AT_data_bit_offset.
4297
4298 2020-09-23 Tom Tromey <tom@tromey.com>
4299
4300 * utils.h (class gdb_argv): Add move operators.
4301 <append>: New methods.
4302 * compile/compile.c (build_argc_argv): Remove.
4303 (compile_args_argc): Remove.
4304 (compile_args_argv): Change type.
4305 (set_compile_args): Simplify.
4306 (append_args): Remove.
4307 (filter_args): Remove argcp parameter.
4308 (get_args): Return gdb_argv. Simplify.
4309 (compile_to_object): Update.
4310
4311 2020-09-23 Tom Tromey <tom@tromey.com>
4312
4313 * compile/compile-object-run.c (do_module_cleanup)
4314 <~do_module_cleanup> :Remove.
4315 (do_module_cleanup): Update.
4316 * compile/compile-object-load.h (struct munmap_list): Add move
4317 assignment operator.
4318 <source_file>: Now a std::string.
4319 <munmap_list>: Rename. No longer a pointer.
4320 * compile/compile-object-load.c (struct setup_sections_data): Add
4321 constructor.
4322 <setup_one_section>: Declare.
4323 <munmap_list>: Move earlier.
4324 <m_bfd>: New member.
4325 <m_last_size, m_last_section_first, m_last_prot,
4326 m_last_max_alignment>: Rename, add initializers where needed.
4327 (setup_sections_data::setup_one_section): Rename from
4328 setup_sections. Update.
4329 (compile_object_load): Update. Don't use bfd_map_over_sections.
4330
4331 2020-09-23 Tom Tromey <tom@tromey.com>
4332
4333 * compile/compile-object-run.c (struct do_module_cleanup): Add
4334 parameters to constructor. Update destructor.
4335 <source_file, scope, scope_data, out_value_type, out_value_addr,
4336 munmap_list_head, objfile_name_string>: Remove.
4337 <module>: New member.
4338 (do_module_cleanup): Update.
4339 (compile_object_run): Update.
4340
4341 2020-09-23 Tom Tromey <tom@tromey.com>
4342
4343 * compile/compile.c (eval_compile_command): Update.
4344 * compile/compile-object-run.h (compile_object_run): Take a
4345 compile_module_up.
4346 * compile/compile-object-run.c (compile_object_run): Take a
4347 compile_module_up.
4348 * compile/compile-object-load.h (struct compile_module): Add
4349 constructor, destructor.
4350 (compile_module_up): New typedef.
4351 (compile_object_load): Return compile_object_up.
4352 * compile/compile-object-load.c (compile_object_load): Return
4353 compile_module_up.
4354
4355 2020-09-23 Tom Tromey <tom@tromey.com>
4356
4357 * compile/compile-object-run.c (struct do_module_cleanup): Add
4358 constructor, destructor.
4359 <objfile_name_string>: Don't use struct hack.
4360 (do_module_cleanup): Use delete.
4361 (compile_object_run): Use new.
4362
4363 2020-09-23 Tom Tromey <tom@tromey.com>
4364
4365 * compile/compile-cplus-types.c
4366 (compile_cplus_convert_struct_or_union): Use std::vector.
4367 (compile_cplus_convert_func): Likewise.
4368 * compile/compile-c-types.c (convert_func): Use std::vector.
4369
4370 2020-09-21 Tom Tromey <tromey@adacore.com>
4371
4372 * sparc-tdep.c (sparc32_skip_prologue): Use
4373 skip_prologue_using_sal.
4374
4375 2020-09-19 Tom Tromey <tom@tromey.com>
4376
4377 * symfile.c (add_section_size_callback): Remove.
4378 (load_one_section): Rename from load_section_callback. Change
4379 parameters.
4380 (generic_load): Use foreach.
4381
4382 2020-09-19 Tom Tromey <tom@tromey.com>
4383
4384 * exec.c (add_to_section_table): Remove.
4385 (build_section_table): Use foreach.
4386
4387 2020-09-19 Tom Tromey <tom@tromey.com>
4388
4389 * elfread.c (elf_locate_sections): Change parameters.
4390 (elf_symfile_read): Use foreach.
4391
4392 2020-09-19 Tom Tromey <tom@tromey.com>
4393
4394 * cli/cli-dump.c (struct callback_data): Remove.
4395 (restore_one_section): Rename from restore_section_callback.
4396 Change parameters.
4397 (restore_binary_file): Change parameters.
4398 (restore_command): Use foreach.
4399
4400 2020-09-19 Tom Tromey <tom@tromey.com>
4401
4402 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4403 (gcore_copy_callback): Likewise.
4404 (gcore_memory_sections): Use foreach.
4405
4406 2020-09-19 Tom Tromey <tom@tromey.com>
4407
4408 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4409 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4410 parameters.
4411 (generic_elf_osabi_sniffer): Use foreach.
4412 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4413 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4414
4415 2020-09-19 Tom Tromey <tom@tromey.com>
4416
4417 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4418 (dwarf2_get_dwz_file): Use foreach.
4419 (dwarf2_locate_dwo_sections): Change parameters.
4420 (open_and_init_dwo_file): Use foreach.
4421 (dwarf2_locate_common_dwp_sections): Change parameters.
4422 (open_and_init_dwp_file): Use foreach.
4423
4424 2020-09-19 Tom Tromey <tom@tromey.com>
4425
4426 * symfile.h: (find_lowest_section): Don't declare.
4427 * symfile.c (find_lowest_section): Now static. Change
4428 parameters.
4429 (struct place_section_arg): Remove.
4430 (place_section): Change parameters.
4431 (addr_info_make_relative): Use foreach.
4432 (symfile_dummy_outputs): Remove.
4433 (default_symfile_relocate): Use foreach.
4434
4435 2020-09-19 Tom Tromey <tom@tromey.com>
4436
4437 * objfiles.c (add_to_objfile_sections): Rename from
4438 add_to_objfile_sections_full.
4439 (add_to_objfile_sections): Remove.
4440 (build_objfile_section_table): Use foreach.
4441
4442 2020-09-19 Tom Tromey <tom@tromey.com>
4443
4444 * stap-probe.c (get_stap_base_address_1): Remove.
4445 (get_stap_base_address): Use foreach.
4446
4447 2020-09-19 Tom Tromey <tom@tromey.com>
4448
4449 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4450 parameters.
4451 (gdb_bfd_close_or_warn): Use foreach.
4452
4453 2020-09-19 Tom Tromey <tom@tromey.com>
4454
4455 * corelow.c (add_to_thread_list): Change parameters.
4456 (core_target_open): Use foreach.
4457
4458 2020-09-19 Tom Tromey <tom@tromey.com>
4459
4460 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4461 existing function.
4462
4463 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4466 for arrays.
4467
4468 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4469
4470 * eval.c: Remove 'f-lang.h' include.
4471 (value_f90_subarray): Moved to f-lang.c.
4472 (eval_call): Renamed to...
4473 (evaluate_subexp_do_call): ...this, is no longer static, header
4474 comment moved into header file.
4475 (evaluate_funcall): Update call to eval_call.
4476 (skip_undetermined_arglist): Moved to f-lang.c.
4477 (fortran_value_subarray): Likewise.
4478 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4479 moved to evaluate_subexp_f.
4480 (calc_f77_array_dims): Moved to f-lang.c
4481 * expprint.c (print_subexp_funcall): New function.
4482 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4483 moved to print_subexp_f, OP_FUNCALL uses new function.
4484 (dump_subexp_body_funcall): New function.
4485 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4486 moved to dump_subexp_f, OP_FUNCALL uses new function.
4487 * expression.h (evaluate_subexp_do_call): Declare.
4488 * f-lang.c (value_f90_subarray): Moved from eval.c.
4489 (skip_undetermined_arglist): Likewise.
4490 (calc_f77_array_dims): Likewise.
4491 (fortran_value_subarray): Likewise.
4492 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4493 (operator_length_f): Likewise.
4494 (print_subexp_f): Likewise.
4495 (dump_subexp_body_f): Likewise.
4496 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4497 declaration of this operation to here.
4498 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4499 support moved to operator_length_f.
4500 * parser-defs.h (dump_subexp_body_funcall): Declare.
4501 (print_subexp_funcall): Declare.
4502 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4503 fortran-operator.def.
4504
4505 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4506
4507 * eval.c (fortran_value_subarray): New function, content is taken
4508 from...
4509 (evaluate_subexp_standard): ...here, in two places. Now arrays
4510 and strings both call the new function.
4511 (calc_f77_array_dims): Add header comment, handle strings.
4512
4513 2020-09-18 Victor Collod <vcollod@nvidia.com>
4514
4515 PR gdb/26635
4516 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4517 (i386_analyze_prologue): Call i386_skip_endbr.
4518
4519 2020-09-18 Tom Tromey <tromey@adacore.com>
4520
4521 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4522 (windows_nat_target::wait): Update.
4523 * target/wait.h (enum target_wait_flag): New. Use
4524 DEF_ENUM_FLAGS_TYPE.
4525 * target/target.h (target_wait): Change type of options.
4526 * target.h (target_options_to_string, default_target_wait):
4527 Update.
4528 (struct target_ops) <wait>: Change type of options.
4529 * target.c (target_wait, default_target_wait, do_option): Change
4530 type of "options".
4531 (target_options_to_string): Likewise.
4532 * target-delegates.c: Rebuild.
4533 * target-debug.h (target_debug_print_target_wait_flags): Rename
4534 from target_debug_print_options.
4535 * sol-thread.c (class sol_thread_target) <wait>: Update.
4536 (sol_thread_target::wait): Update.
4537 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4538 (rs6000_nat_target::wait): Update.
4539 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4540 Update.
4541 (remote_target::wait_ns, remote_target::wait_as): Change type of
4542 "options".
4543 (remote_target::wait): Update.
4544 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4545 (gdbsim_target::wait): Update.
4546 * record-full.c (class record_full_base_target) <wait>: Update.
4547 (record_full_wait_1): Change type of "options".
4548 (record_full_base_target::wait): Update.
4549 * record-btrace.c (class record_btrace_target) <wait>: Update.
4550 (record_btrace_target::wait): Update.
4551 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4552 Update.
4553 (ravenscar_thread_target::wait): Update.
4554 * procfs.c (class procfs_target) <wait>: Update.
4555 (procfs_target::wait): Update.
4556 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4557 * obsd-nat.c (obsd_nat_target::wait): Update.
4558 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4559 (nto_procfs_target::wait): Update.
4560 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4561 * nbsd-nat.c (nbsd_wait): Change type of "options".
4562 (nbsd_nat_target::wait): Update.
4563 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4564 (thread_db_target::wait): Update.
4565 * linux-nat.h (class linux_nat_target) <wait>: Update.
4566 * linux-nat.c (linux_nat_target::wait): Update.
4567 (linux_nat_wait_1): Update.
4568 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4569 "options".
4570 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4571 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4572 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4573 (go32_nat_target::wait): Update.
4574 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4575 * gnu-nat.c (gnu_nat_target::wait): Update.
4576 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4577 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4578 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4579 * darwin-nat.c (darwin_nat_target::wait): Update.
4580 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4581 (bsd_uthread_target::wait): Update.
4582 * aix-thread.c (class aix_thread_target) <wait>: Update.
4583 (aix_thread_target::wait): Update.
4584
4585 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4586
4587 * compile/compile-object-run.c (create_copied_type_recursive): New
4588 function.
4589 (compile_object_run): Use new function.
4590
4591 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4592
4593 * NEWS: Mention x86_64 Cygwin core file support.
4594
4595 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4596
4597 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4598 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4599
4600 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4601
4602 * windows-tdep.h: Add prototypes.
4603 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4604 (i386_windows_core_pid_to_str): Move and rename ...
4605 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4606 (windows_core_pid_to_str): ... and here.
4607 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4608
4609 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4610 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4611 (amd64_windows_init_abi_common): ... and register.
4612
4613 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4614
4615 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4616 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4617
4618 2020-09-18 Pedro Alves <pedro@palves.net>
4619
4620 PR gdb/26631
4621 * thread.c (thread_find_command): Switch inferior before calling
4622 target methods.
4623
4624 2020-09-17 Tom Tromey <tromey@adacore.com>
4625
4626 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4627 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4628 (tdesc_arch_data_up): New typedef.
4629 (tdesc_use_registers, tdesc_data_alloc): Update.
4630 (tdesc_data_cleanup): Don't declare.
4631 * target-descriptions.c (tdesc_data_alloc): Return a
4632 tdesc_arch_data_up.
4633 (tdesc_arch_data_deleter::operator()): Rename from
4634 tdesc_data_cleanup. Change argument type.
4635 (tdesc_use_registers): Change early_data to an rvalue reference.
4636 (tdesc_use_registers): Don't use delete.
4637 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4638 * s390-tdep.c (s390_gdbarch_init): Update.
4639 * rx-tdep.c (rx_gdbarch_init): Update.
4640 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4641 * riscv-tdep.c (riscv_gdbarch_init): Update.
4642 * or1k-tdep.c (or1k_gdbarch_init): Update.
4643 * nios2-tdep.c (nios2_gdbarch_init): Update.
4644 * nds32-tdep.c (nds32_gdbarch_init): Update.
4645 * mips-tdep.c (mips_gdbarch_init): Update.
4646 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4647 * m68k-tdep.c (m68k_gdbarch_init): Update.
4648 * i386-tdep.c (i386_gdbarch_init): Update.
4649 * arm-tdep.c (arm_gdbarch_init): Update.
4650 * arc-tdep.c (arc_tdesc_init): Update.
4651 (arc_gdbarch_init): Update.
4652 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4653
4654 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4655
4656 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4657 for WOW64 processes.
4658
4659 2020-09-17 Tom Tromey <tom@tromey.com>
4660
4661 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4662
4663 2020-09-17 Tom Tromey <tom@tromey.com>
4664
4665 * value.c (preserve_values): Update.
4666 * python/py-type.c (save_objfile_types): Update.
4667 * guile/scm-type.c (save_objfile_types): Update.
4668 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4669 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4670 * compile/compile-object-run.c (compile_object_run): Update.
4671
4672 2020-09-17 Tom Tromey <tom@tromey.com>
4673
4674 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4675 Remove.
4676 <m_table>: Now htab_up.
4677 * typeprint.c (typedef_hash_table::recursively_update)
4678 (typedef_hash_table::add_template_parameters)
4679 (typedef_hash_table::typedef_hash_table): Update.
4680 (typedef_hash_table::~typedef_hash_table): Remove.
4681 (typedef_hash_table::typedef_hash_table)
4682 (typedef_hash_table::find_global_typedef)
4683 (typedef_hash_table::find_typedef): Update.
4684
4685 2020-09-17 Tom Tromey <tom@tromey.com>
4686
4687 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4688
4689 2020-09-17 Tom Tromey <tom@tromey.com>
4690
4691 * linespec.c (class decode_compound_collector)
4692 <~decode_compound_collector>: Remove.
4693 <m_unique_syms>: Now htab_up.
4694 (decode_compound_collector::operator ()): Update.
4695 (class symtab_collector) <~symtab_collector>: Remove.
4696 <m_symtab_table>: Now htab_up.
4697 (symtab_collector::operator ()): Update.
4698
4699 2020-09-17 Tom Tromey <tom@tromey.com>
4700
4701 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4702 (filename_seen_cache::clear): Update.
4703 (~filename_seen_cache): Remove.
4704 (filename_seen_cache::seen): Update.
4705 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4706 htab_up.
4707 <~filename_seen_cache>: Remove.
4708 <traverse>: Update.
4709
4710 2020-09-17 Tom Tromey <tom@tromey.com>
4711
4712 * completer.c (completion_tracker::discard_completions)
4713 (completion_tracker::~completion_tracker)
4714 (completion_tracker::maybe_add_completion)
4715 (completion_tracker::remove_completion)
4716 (completion_tracker::recompute_lowest_common_denominator)
4717 (completion_tracker::build_completion_result): Update.
4718 * completer.h (class completion_tracker) <have_completions>:
4719 Update.
4720 <m_entries_hash>: Now htab_up.
4721
4722 2020-09-17 Tom Tromey <tom@tromey.com>
4723
4724 * breakpoint.c (ambiguous_names_p): Use htab_up.
4725
4726 2020-09-17 Tom Tromey <tom@tromey.com>
4727
4728 * auto-load.c (struct auto_load_pspace_info)
4729 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4730 <loaded_script_files, loaded_script_texts>: Change type to
4731 htab_up.
4732 (~auto_load_pspace_info) Remove.
4733 (init_loaded_scripts_info, maybe_add_script_file)
4734 (maybe_add_script_text, auto_load_info_scripts): Update.
4735
4736 2020-09-17 Tom Tromey <tromey@adacore.com>
4737
4738 * c-exp.y (name_obstack): Now static.
4739
4740 2020-09-17 Chungyi Chi <demonic@csie.io>
4741
4742 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4743
4744 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4747 (add_solib_catchpoint): Likewise.
4748 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4749 to bool.
4750 (add_solib_catchpoint): Change int parameter/variable to bool.
4751 (catch_load_or_unload): Likewise.
4752 (init_catchpoint): Likewise.
4753 (create_fork_vfork_event_catchpoint): Likewise.
4754 (catch_fork_command_1): Likewise.
4755 (catch_exec_command_1): Likewise.
4756
4757 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4760 Change instance_flags to m_instance_flags.
4761
4762 2020-09-16 Tom Tromey <tromey@adacore.com>
4763
4764 PR gdb/26598:
4765 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4766
4767 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4768
4769 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4770 PL_FLAG_EXEC.
4771 (fbsd_nat_target::insert_exec_catchpoint)
4772 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4773 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4774 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4775
4776 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4777
4778 * configure.ac: Remove check for kinfo_getvmmap().
4779 * configure, config.in: Regenerate.
4780 * fbsd-nat.c (fbsd_read_mapping): Remove
4781 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4782 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4783 kinfo_get_vmmap() are always present.
4784
4785 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4786
4787 * fbsd-nat.c: Always include support for
4788 TARGET_OBJECT_SIGNAL_INFO.
4789
4790 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4791
4792 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4793 sysctl and remove procfs fallback.
4794
4795 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4796
4797 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4798 * fbsd-nat.h: Likewise.
4799
4800 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4801
4802 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4803 argument.
4804
4805 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4806
4807 * ada-lang.c (ada_language_data): Delete.
4808 (ada_language): Remove references to ada_language_data.
4809 * c-lang.c (c_language_data): Delete.
4810 (c_language): Remove references to c_language_data.
4811 (cplus_language_data): Delete.
4812 (cplus_language): Remove references to cplus_language_data.
4813 (asm_language_data): Delete.
4814 (asm_language): Remove references to asm_language_data.
4815 (minimal_language_data): Delete.
4816 (minimal_language): Remove references to minimal_language_data.
4817 * d-lang.c (d_language_data): Delete.
4818 (d_language): Remove references to d_language_data.
4819 * f-lang.c (f_language_data): Delete.
4820 (f_language): Remove references to f_language_data.
4821 * go-lang.c (go_language_data): Delete.
4822 (go_language): Remove references to go_language_data.
4823 * language.c (unknown_language_data): Delete.
4824 (unknown_language): Remove references to unknown_language_data.
4825 (auto_language_data): Delete.
4826 (auto_language): Remove references to auto_language_data.
4827 * language.h (language_data): Delete struct.
4828 (language_defn): No longer inherit from language_data.
4829 * m2-lang.c (m2_language_data): Delete.
4830 (m2_language): Remove references to m2_language_data.
4831 * objc-lang.c (objc_language_data): Delete.
4832 (objc_language): Remove references to objc_language_data.
4833 * opencl-lang.c (opencl_language_data): Delete.
4834 (opencl_language): Remove references to opencl_language_data.
4835 * p-lang.c (pascal_language_data): Delete.
4836 (pascal_language): Remove references to pascal_language_data.
4837 * rust-lang.c (rust_language_data): Delete.
4838 (rust_language): Remove references to rust_language_data.
4839
4840 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4841
4842 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4843 initializer.
4844 (ada_language::opcode_print_table): New member function.
4845 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4846 (c_language::opcode_print_table): New member function.
4847 (cplus_language_data): Remove la_op_print_tab initializer.
4848 (cplus_language::opcode_print_table): New member function.
4849 (asm_language_data): Remove la_op_print_tab initializer.
4850 (asm_language::opcode_print_table): New member function.
4851 (minimal_language_data): Remove la_op_print_tab initializer.
4852 (minimal_language::opcode_print_table): New member function.
4853 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4854 (d_language::opcode_print_table): New member function.
4855 * expprint.c (print_subexp_standard): Update call to
4856 opcode_print_table.
4857 (op_string): Likewise.
4858 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4859 (f_language::opcode_print_table): New member function.
4860 * go-lang.c (go_language_data): Remove la_op_print_tab
4861 initializer.
4862 (go_language::opcode_print_table): New member function.
4863 * language.c (unknown_language_data): Remove la_op_print_tab
4864 initializer.
4865 (unknown_language::opcode_print_table): New member function.
4866 (auto_language_data): Remove la_op_print_tab initializer.
4867 (auto_language::opcode_print_table): New member function.
4868 * language.h (language_data): Remove la_op_print_tab field.
4869 (language_defn::opcode_print_table): Declare new member function.
4870 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4871 initializer.
4872 (m2_language::opcode_print_table): New member function.
4873 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4874 initializer.
4875 (objc_language::opcode_print_table): New member function.
4876 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4877 initializer.
4878 (opencl_language::opcode_print_table): New member function.
4879 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4880 initializer.
4881 (pascal_language::opcode_print_table): New member function.
4882 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4883 initializer.
4884 (rust_language::opcode_print_table): New member function.
4885
4886 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4887
4888 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4889 (ada_language::expression_ops): New member function.
4890 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4891 (c_language::expression_ops): New member function.
4892 (cplus_language_data): Remove la_exp_desc initializer.
4893 (cplus_language::expression_ops): New member function.
4894 (asm_language_data): Remove la_exp_desc initializer.
4895 (asm_language::expression_ops): New member function.
4896 (minimal_language_data): Remove la_exp_desc initializer.
4897 (minimal_language::expression_ops): New member function.
4898 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4899 (d_language::expression_ops): New member function.
4900 * eval.c (evaluate_subexp): Update call to expression_ops.
4901 * expprint.c (print_subexp): Likewise.
4902 (op_name): Likewise.
4903 (dump_subexp_body): Likewise.
4904 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4905 (f_language::expression_ops): New member function.
4906 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4907 (go_language::expression_ops): New member function.
4908 * language.c (language_defn::expression_ops): New function.
4909 (unknown_language_data): Remove la_exp_desc initializer.
4910 (auto_language_data): Likewise.
4911 * language.h (language_data): Remove la_exp_desc field.
4912 (language_defn::expression_ops): Declare new member function.
4913 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4914 (m2_language::expression_ops): New member function.
4915 * objc-lang.c (objc_language_data): Remove la_exp_desc
4916 initializer.
4917 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4918 initializer.
4919 (opencl_language::expression_ops): New member function.
4920 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4921 * parse.c (operator_length): Update call to expression_ops.
4922 (exp_iterate): Likewise.
4923 * rust-lang.c (rust_language_data): Remove la_exp_desc
4924 initializer.
4925 (ruse_language::expression_ops): New member function.
4926
4927 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4928
4929 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4930 initializer.
4931 (ada_language::varobj_ops): New member function.
4932 * c-lang.c (c_language_data): Remove la_varobj_ops
4933 initializer.
4934 (cplus_language_data): Likewise.
4935 (cplus_language::varobj_ops): New member function.
4936 (asm_language_data): Remove la_varobj_ops initializer.
4937 (minimal_language_data): Likewise.
4938 * d-lang.c (d_language_data): Likewise.
4939 * f-lang.c (f_language_data): Likewise.
4940 * go-lang.c (go_language_data): Likewise.
4941 * language.c (language_defn::varobj_ops): New function.
4942 (unknown_language_data): Remove la_varobj_ops
4943 initializer.
4944 (auto_language_data): Likewise.
4945 * language.h (language_data): Remove la_varobj_ops field.
4946 (language_defn::varobj_ops): Declare new member function.
4947 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4948 * objc-lang.c (objc_language_data): Likewise.
4949 * opencl-lang.c (opencl_language_data): Likewise.
4950 * p-lang.c (pascal_language_data): Likewise.
4951 * rust-lang.c (rust_language_data): Likewise.
4952 * varobj.c (varobj_create): Update call to varobj_ops.
4953 * varobj.h (default_varobj_ops): Delete define.
4954
4955 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4956
4957 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4958 initializer.
4959 * c-lang.c (c_language_data): Likewise.
4960 (c_language::macro_expansion): New member function.
4961 (cplus_language_data): Likewise.
4962 (cplus_language::macro_expansion): New member function.
4963 (asm_language_data): Likewise.
4964 (asm_language::macro_expansion): New member function.
4965 (minimal_language_data): Likewise.
4966 (minimal_language::macro_expansion): New member function.
4967 * d-lang.c (d_language_data): Remove la_macro_expansion
4968 initializer.
4969 * f-lang.c (f_language_data): Likewise.
4970 * go-lang.c (go_language_data): Likewise.
4971 * language.c (unknown_language_data): Likewise.
4972 (auto_language_data): Likewise.
4973 * language.h (language_data): Remove la_macro_expansion field.
4974 (language_defn::macro_expansion): New member function.
4975 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4976 initializer.
4977 * objc-lang.c (objc_language_data): Likewise.
4978 (objc_language::macro_expansion): New member function.
4979 * opencl-lang.c (opencl_language_data): Likewise.
4980 (opencl_language::macro_expansion): New member function.
4981 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4982 initializer.
4983 * rust-lang.c (rust_language_data): Likewise.
4984 * symtab.c (default_collect_symbol_completion_matches_break_on):
4985 Update call to macro_expansion.
4986
4987 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4988
4989 * ada-lang.c (ada_language_data): Remove la_array_ordering
4990 initializer.
4991 * c-lang.c (c_language_data): Likewise.
4992 (cplus_language_data): Likewise.
4993 (asm_language_data): Likewise.
4994 (minimal_language_data): Likewise.
4995 * d-lang.c (d_language_data): Likewise.
4996 * dwarf2/read.c (read_array_order): Update for call to
4997 array_ordering.
4998 * f-lang.c (f_language_data): Remove la_array_ordering
4999 initializer.
5000 (f_language::array_ordering): New member function.
5001 * go-lang.c (go_language_data): Remove la_array_ordering
5002 initializer.
5003 * language.c (unknown_language_data): Likewise.
5004 (auto_language_data): Likewise.
5005 * language.h (language_data): Delete la_array_ordering field.
5006 (language_defn::array_ordering): New member function.
5007 * m2-lang.c (m2_language_data): Remove la_array_ordering
5008 initializer.
5009 * objc-lang.c (objc_language_data): Likewise.
5010 * opencl-lang.c (opencl_language_data): Likewise.
5011 * p-lang.c (pascal_language_data): Likewise.
5012 * rust-lang.c (rust_language_data): Likewise.
5013
5014 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5017 initializer.
5018 * c-lang.c (c_language_data): Likewise.
5019 (cplus_language_data): Likewise.
5020 (asm_language_data): Likewise.
5021 (minimal_language_data): Likewise.
5022 * d-lang.c (d_language_data): Likewise.
5023 * f-lang.c (f_language_data): Likewise.
5024 (f_language::case_sensitivity): New member function.
5025 * go-lang.c (go_language_data): Remove la_case_sensitivity
5026 initializer.
5027 * language.c (enum case_mode): Moved here from language.h.
5028 (case_mode): Make static.
5029 (show_case_command): Update for case_sensitivity being a method.
5030 (set_case_command): Likewise.
5031 (set_range_case): Likewise.
5032 (unknown_language_data): Remove la_case_sensitivity initializer.
5033 (auto_language_data): Likewise.
5034 * language.h (case_mode): Delete, move enum declaration to
5035 language.c.
5036 (language_data): Delete la_case_sensitivity field.
5037 (language_defn::case_sensitivity): New member function.
5038 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5039 initializer.
5040 * objc-lang.c (objc_language_data): Likewise.
5041 * opencl-lang.c (opencl_language_data): Likewise.
5042 * p-lang.c (pascal_language_data): Likewise.
5043 * rust-lang.c (rust_language_data): Likewise.
5044
5045 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5046
5047 * ada-lang.c (ada_language_data): Remove la_range_check
5048 initializer.
5049 * c-lang.c (c_language_data): Likewise.
5050 (cplus_language_data): Likewise.
5051 (asm_language_data): Likewise.
5052 (minimal_language_data): Likewise.
5053 * d-lang.c (d_language_data): Likewise.
5054 * f-lang.c (f_language_data): Likewise.
5055 (f_language::range_checking_on_by_default): New member function.
5056 * go-lang.c (go_language_data): Remove la_range_check initializer.
5057 * language.c (enum range_mode): Moved here from language.h.
5058 (range_mode): Made static.
5059 (show_range_command): Update to use
5060 range_checking_on_by_default.
5061 (set_range_command): Likewise.
5062 (set_range_case): Likewise.
5063 (unknown_language_data): Remove la_range_check initializer.
5064 (auto_language_data): Likewise.
5065 * language.h (range_mode): Delete. Enum definition moved to
5066 language.c.
5067 (language_data): Remove la_range_check field.
5068 (language_defn::range_checking_on_by_default): New member
5069 function.
5070 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5071 (m2_language::range_checking_on_by_default): New member function.
5072 * objc-lang.c (objc_language_data): Remove la_range_check
5073 initializer.
5074 * opencl-lang.c (opencl_language_data): Likewise.
5075 * p-lang.c (pascal_language_data): Likewise.
5076 (pascal_language::range_checking_on_by_default): New member
5077 function.
5078 * rust-lang.c (rust_language_data): Remove la_range_check
5079 initializer.
5080 (rust_language::range_checking_on_by_default): New member
5081 function.
5082
5083 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5084
5085 * dwarf2/read.c (dwarf2_physname): Remove special case for
5086 language_go.
5087 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5088 member function.
5089
5090 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5091
5092 * ada-lang.c (ada_language_data): Remove
5093 la_store_sym_names_in_linkage_form_p initializer.
5094 (ada_language::store_sym_names_in_linkage_form_p): New member
5095 function.
5096 * c-lang.c (c_language_data): Remove
5097 la_store_sym_names_in_linkage_form_p initializer.
5098 (c_language::store_sym_names_in_linkage_form_p): New member
5099 function.
5100 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5101 initializer.
5102 (asm_language_data): Likewise.
5103 (asm_language::store_sym_names_in_linkage_form_p): New member
5104 function.
5105 (minimal_language_data): Remove
5106 la_store_sym_names_in_linkage_form_p initializer.
5107 (minimal_language::store_sym_names_in_linkage_form_p): New member
5108 function.
5109 * d-lang.c (d_language_data): Remove
5110 la_store_sym_names_in_linkage_form_p initializer.
5111 * dwarf2/read.c (dwarf2_physname): Update call to
5112 store_sym_names_in_linkage_form_p.
5113 * f-lang.c (f_language_data): Remove
5114 la_store_sym_names_in_linkage_form_p initializer.
5115 * go-lang.c (go_language_data): Remove
5116 la_store_sym_names_in_linkage_form_p initializer.
5117 * language.c (unknown_language_data): Remove
5118 la_store_sym_names_in_linkage_form_p initializer.
5119 (unknown_language::store_sym_names_in_linkage_form_p): New member
5120 function.
5121 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5122 initializer.
5123 (auto_language::store_sym_names_in_linkage_form_p): New member
5124 function.
5125 * language.h (language_data): Remove
5126 la_store_sym_names_in_linkage_form_p member variable.
5127 (language_defn::store_sym_names_in_linkage_form_p): New member
5128 function.
5129 * m2-lang.c (m2_language_data): Remove
5130 la_store_sym_names_in_linkage_form_p initializer.
5131 * objc-lang.c (objc_language_data): Likewise.
5132 * opencl-lang.c (opencl_language_data): Likewise.
5133 * p-lang.c (pascal_language_data): Likewise.
5134 * rust-lang.c (rust_language_data): Likewise.
5135
5136 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5137
5138 * ada-lang.c (ada_language_data): Remove string_lower_bound
5139 initializer.
5140 * c-lang.c (c_language_data): Likewise.
5141 (cplus_language_data): Likewise.
5142 (asm_language_data): Likewise.
5143 (minimal_language_data): Likewise.
5144 * d-lang.c (d_language_data): Likewise.
5145 * f-lang.c (f_language_data): Likewise.
5146 * go-lang.c (go_language_data): Likewise.
5147 * language.c (unknown_language_data): Likewise.
5148 (auto_language_data): Likewise.
5149 * language.h (language_data): Remove string_lower_bound field.
5150 (language_defn::string_lower_bound): New member function.
5151 * m2-lang.c (m2_language_data): Remove string_lower_bound
5152 initializer.
5153 (m2_language::string_lower_bound): New member function.
5154 * objc-lang.c (objc_language_data): Remove string_lower_bound
5155 initializer.
5156 * opencl-lang.c (opencl_language_data): Likewise.
5157 * p-lang.c (pascal_language_data): Likewise.
5158 * rust-lang.c (rust_language_data): Likewise.
5159 * valops.c (value_cstring): Update call to string_lower_bound.
5160 (value_string): Likewise.
5161 * value.c (allocate_repeated_value): Likewise.
5162
5163 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * valops.c (value_repeat): Fix incorrect argument name in comment.
5166
5167 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5168
5169 * ada-lang.c (ada_language_data): Remove c_style_arrays
5170 initializer.
5171 (ada_language::c_style_arrays_p): New member fuction.
5172 * c-lang.c (c_language_data): Remove c_style_arrays
5173 initializer.
5174 (cplus_language_data): Likewise.
5175 (asm_language_data): Likewise.
5176 (minimal_language_data): Likewise.
5177 * d-lang.c (d_language_data): Likewise.
5178 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5179 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5180 (f_language::c_style_arrays_p): New member function.
5181 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5182 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5183 * language.c (unknown_language_data): Remove c_style_arrays
5184 initializer.
5185 (auto_language_data): Likewise.
5186 * language.h (language_data): Remove c_style_arrays field.
5187 (language_defn::c_style_arrays_p): New member function.
5188 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5189 (m2_language::c_style_arrays_p): New member function.
5190 * objc-lang.c (objc_language_data): Remove c_style_arrays
5191 initializer.
5192 * opencl-lang.c (opencl_language_data): Likewise.
5193 * p-lang.c (pascal_language_data): Likewise.
5194 * rust-lang.c (rust_language_data): Likewise.
5195 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5196 and update local variable to a bool.
5197 * valops.c (value_cast): Update call to c_style_arrays_p.
5198 (value_array): Likewise.
5199 * value.c (coerce_array): Likewise.
5200
5201 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5202
5203 * ada-lang.c (ada_language_data): Remove la_language initializer.
5204 * c-lang.c (c_language_data): Likewise.
5205 (cplus_language_data): Likewise.
5206 (asm_language_data): Likewise.
5207 (minimal_language_data): Likewise.
5208 * d-lang.c (d_language_data): Likewise.
5209 * f-lang.c (f_language_data): Likewise.
5210 * go-lang.c (go_language_data): Likewise.
5211 * language.c (unknown_language_data): Likewise.
5212 (auto_language_data): Likewise.
5213 * language.h (language_data): Remove la_language field.
5214 (language_defn::language_defn): Initialise la_language field.
5215 (language_defn::la_language): New member variable.
5216 * m2-lang.c (m2_language_data): Remove la_language field.
5217 * objc-lang.c (objc_language_data): Likewise.
5218 * opencl-lang.c (opencl_language_data): Likewise.
5219 * p-lang.c (pascal_language_data): Likewise.
5220 * rust-lang.c (rust_language_data): Likewise.
5221
5222 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5223
5224 * ada-lang.c (ada_extensions): Delete, moved into
5225 ada_language::filename_extensions.
5226 (ada_language_data): Remove la_filename_extensions initializer.
5227 (ada_language::filename_extensions): New member function.
5228 * c-lang.c (c_extensions): Delete, moved into
5229 c_language::filename_extensions.
5230 (c_language_data): Remove la_filename_extensions initializer.
5231 (c_language::filename_extensions): New member function.
5232 (cplus_extensions): Delete, moved into
5233 cplus_language::filename_extensions.
5234 (cplus_language_data): Remove la_filename_extensions initializer.
5235 (cplus_language::filename_extensions): New member function.
5236 (asm_extensions): Delete, moved into
5237 asm_language::filename_extensions.
5238 (asm_language_data): Remove la_filename_extensions initializer.
5239 (asm_language::filename_extensions): New member function.
5240 (minimal_language_data): Remove la_filename_extensions
5241 initializer.
5242 * d-lang.c (d_extensions): Delete, moved into
5243 d_language::filename_extensions.
5244 (d_language_data): Remove la_filename_extensions initializer.
5245 (d_language::filename_extensions): New member function.
5246 * f-lang.c (f_extensions): Delete, moved into
5247 f_language::filename_extensions.
5248 (f_language_data): Remove la_filename_extensions initializer.
5249 (f_language::filename_extensions): New member function.
5250 * go-lang.c (go_language_data): Remove la_filename_extensions
5251 initializer.
5252 * language.c (add_set_language_command): Update now that
5253 filename_extensions returns a vector.
5254 (unknown_language_data): Remove la_filename_extensions
5255 initializer.
5256 (auto_language_data): Likewise.
5257 * language.h (language_data): Remove la_filename_extensions field.
5258 (language_defn::filename_extensions): New member function.
5259 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5260 initializer.
5261 * objc-lang.c (objc_extensions): Delete, moved into
5262 objc_language::filename_extensions.
5263 (objc_language_data): Remove la_filename_extensions initializer.
5264 (objc_language::filename_extensions): New member function.
5265 * opencl-lang.c (opencl_language_data): Remove
5266 la_filename_extensions initializer.
5267 * p-lang.c (pascal_extensions): Delete, moved into
5268 pascal_language::filename_extensions.
5269 (pascal_language_data): Remove la_filename_extensions initializer.
5270 (pascal_language::filename_extensions): New member function.
5271 * rust-lang.c (rust_extensions): Delete, moved into
5272 rust_language::filename_extensions.
5273 (rust_language_data): Remove la_filename_extensions initializer.
5274 (rust_language::filename_extensions): New member function.
5275 * symfile.c (add_filename_language): Add new assert.
5276
5277 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5278
5279 * ada-lang.c (ada_language_data): Remove la_name and
5280 la_natural_name initializers.
5281 (ada_language::name): New member function.
5282 (ada_language::natural_name): New member function.
5283 * c-lang.c (c_language_data): Remove la_name and
5284 la_natural_name initializers.
5285 (c_language::name): New member function.
5286 (c_language::natural_name): New member function.
5287 (cplus_language_data): Remove la_name and
5288 la_natural_name initializers.
5289 (cplus_language::name): New member function.
5290 (cplus_language::natural_name): New member function.
5291 (asm_language_data): Remove la_name and
5292 la_natural_name initializers.
5293 (asm_language::name): New member function.
5294 (asm_language::natural_name): New member function.
5295 (minimal_language_data): Remove la_name and
5296 la_natural_name initializers.
5297 (minimal_language::name): New member function.
5298 (minimal_language::natural_name): New member function.
5299 * compile/compile.c (compile_to_object): Update call to
5300 lanugage_defn::name.
5301 * d-lang.c (d_language_data): Remove la_name and
5302 la_natural_name initializers.
5303 (d_language::name): New member function.
5304 (d_language::natural_name): New member function.
5305 * expprint.c (print_subexp_standard): Update call to
5306 language_defn::name.
5307 (dump_raw_expression): Likewise
5308 (dump_prefix_expression): Likewise.
5309 * f-lang.c (f_language_data): Remove la_name and
5310 la_natural_name initializers.
5311 (f_language::name): New member function.
5312 (f_language::natural_name): New member function.
5313 * go-lang.c (go_language_data): Remove la_name and
5314 la_natural_name initializers.
5315 (go_language::name): New member function.
5316 (go_language::natural_name): New member function.
5317 * language.c (show_language_command): Update call to
5318 language_defn::name.
5319 (set_language_command): Likewise.
5320 (language_enum): Likewise.
5321 (language_str): Likewise.
5322 (add_set_language_command): Likewise, use
5323 language_defn::natural_name in the doc string.
5324 (unknown_language_data): Remove la_name and
5325 la_natural_name initializers.
5326 (unknown_language::name): New member function.
5327 (unknown_language::natural_name): New member function.
5328 (auto_language_data): Remove la_name and
5329 la_natural_name initializers.
5330 (auto_language::name): New member function.
5331 (auto_language::natural_name): New member function.
5332 (language_lookup_primitive_type_as_symbol): Update call to
5333 language_defn::name.
5334 * language.h (language_data): Remove la_name and la_natural_name
5335 member variables.
5336 (language_defn::name): New member function.
5337 (language_defn::natural_name): New member function.
5338 * m2-lang.c (m2_language_data): Remove la_name and
5339 la_natural_name initializers.
5340 (m2_language::name): New member function.
5341 (m2_language::natural_name): New member function.
5342 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5343 language_defn::natural_name.
5344 * objc-lang.c (objc_language_data): Remove la_name and
5345 la_natural_name initializers.
5346 (objc_language::name): New member function.
5347 (objc_language::natural_name): New member function.
5348 * opencl-lang.c (opencl_language_data): Remove la_name and
5349 la_natural_name initializers.
5350 (opencl_language::name): New member function.
5351 (opencl_language::natural_name): New member function.
5352 * p-lang.c (pascal_language_data): Remove la_name and
5353 la_natural_name initializers.
5354 (pascal_language::name): New member function.
5355 (pascal_language::natural_name): New member function.
5356 * rust-lang.c (rust_language_data): Remove la_name and
5357 la_natural_name initializers.
5358 (rust_language::name): New member function.
5359 (rust_language::natural_name): New member function.
5360 * symtab.c (lookup_language_this): Update call to
5361 language_defn::name.
5362
5363 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5364
5365 * ada-lang.c (ada_language_data): Remove la_name_of_this
5366 initializer.
5367 * ax-gdb.c (gen_expr): Update call to name_of_this.
5368 * c-exp.y (classify_name): Likewise.
5369 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5370 (cplus_language_data): Likewise.
5371 (cplus_language::name_of_this): New member function.
5372 (asm_language_data): Remove la_name_of_this initializer.
5373 (minimal_language_data): Likewise.
5374 * d-lang.c (d_language_data): Likewise.
5375 (d_language::name_of_this): New member function.
5376 * expprint.c (print_subexp_standard): Update call to name_of_this.
5377 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5378 * go-lang.c (go_language_data): Likewise.
5379 * language.c (unknown_language_data): Likewise.
5380 (unknown_language::name_of_this): New member function.
5381 (auto_language_data): Remove la_name_of_this initializer.
5382 (auto_language::name_of_this): New member function.
5383 * language.h (language_data): Delete la_name_of_this member
5384 variable.
5385 (language_defn::name_of_this): New member function.
5386 * m2-lang.c (m2_language_data): Remove la_name_of_this
5387 initializer.
5388 * objc-lang.c (objc_language_data): Likewise.
5389 (objc_language::name_of_this): New member function.
5390 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5391 initializer.
5392 * p-lang.c (pascal_language_data): Likewise.
5393 (pascal_language::name_of_this): New member function.
5394 * rust-lang.c (rust_language_data): Remove la_name_of_this
5395 initializer.
5396 * symtab.c (lookup_language_this): Update call to name_of_this.
5397 (lookup_symbol_aux): Likewise.
5398 * valops.c (value_of_this): Likewise.
5399
5400 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * ada-lang.c (ada_language_data): Remove
5403 la_struct_too_deep_ellipsis initializer.
5404 (ada_language::struct_too_deep_ellipsis): New member function.
5405 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5406 initializer.
5407 (cplus_language_data): Likewise.
5408 (asm_language_data): Likewise.
5409 (minimal_language_data): Likewise.
5410 * cp-valprint.c (cp_print_value): Update call to
5411 struct_too_deep_ellipsis.
5412 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5413 initializer.
5414 * f-lang.c (f_language_data): Likewise.
5415 (f_language::struct_too_deep_ellipsis): New member function.
5416 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5417 initializer.
5418 * language.c (unknown_language_data): Likewise.
5419 (auto_language_data): Likewise.
5420 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5421 member variable.
5422 (language_defn::struct_too_deep_ellipsis): New member function.
5423 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5424 initializer.Q
5425 * objc-lang.c (objc_language_data): Likewise.
5426 * opencl-lang.c (opencl_language_data): Likewise.
5427 * p-lang.c (pascal_language_data): Likewise.
5428 * rust-lang.c (rust_language_data): Likewise.
5429 * valprint.c (val_print_check_max_depth): Update call to
5430 struct_too_deep_ellipsis.
5431
5432 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5433
5434 * MAINTAINERS (Write After Approval): Add myself.
5435
5436 2020-09-15 Tom Tromey <tom@tromey.com>
5437
5438 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5439 Remove.
5440
5441 2020-09-15 Tom Tromey <tom@tromey.com>
5442
5443 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5444 and TYPE_CODE_METHODPTR cases.
5445 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5446 (c_value_print_inner): Update.
5447 * valprint.c (generic_value_print_memberptr): New function, from
5448 c_value_print_memberptr.
5449 (generic_value_print): Use it. Call cplus_print_method_ptr.
5450
5451 2020-09-15 Tom Tromey <tromey@adacore.com>
5452
5453 * python/python-internal.h (PyInt_FromLong): Remove define.
5454 * python/py-value.c (convert_value_from_python): Use
5455 gdb_py_object_from_longest.
5456 * python/py-type.c (typy_get_code): Use
5457 gdb_py_object_from_longest.
5458 * python/py-symtab.c (salpy_get_line): Use
5459 gdb_py_object_from_longest.
5460 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5461 gdb_py_object_from_longest.
5462 * python/py-record.c (recpy_gap_reason_code): Use
5463 gdb_py_object_from_longest.
5464 * python/py-record-btrace.c (recpy_bt_insn_size)
5465 (recpy_bt_func_level, btpy_list_count): Use
5466 gdb_py_object_from_longest.
5467 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5468 gdb_py_object_from_longest. Fix error handling.
5469 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5470 gdb_py_object_from_longest.
5471 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5472 gdb_py_object_from_longest.
5473 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5474 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5475 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5476
5477 2020-09-15 Tom Tromey <tromey@adacore.com>
5478
5479 * python/python.c (gdbpy_parameter_value): Use
5480 gdb_py_object_from_ulongest.
5481
5482 2020-09-15 Tom Tromey <tromey@adacore.com>
5483
5484 * python/py-infevents.c (create_register_changed_event_object):
5485 Use gdb_py_object_from_longest.
5486 * python/py-exitedevent.c (create_exited_event_object): Use
5487 gdb_py_object_from_longest.
5488
5489 2020-09-15 Tom Tromey <tromey@adacore.com>
5490
5491 * python/python.c (gdbpy_parameter_value): Use
5492 gdb_py_object_from_longest.
5493 * python/py-type.c (convert_field, typy_range): Use
5494 gdb_py_object_from_longest.
5495 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5496 gdb_py_object_from_longest.
5497 * python/py-lazy-string.c (stpy_get_length): Use
5498 gdb_py_object_from_longest.
5499 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5500 gdb_py_object_from_longest.
5501 * python/py-infevents.c (create_memory_changed_event_object): Use
5502 gdb_py_object_from_longest.
5503 * python/py-inferior.c (infpy_get_num): Use
5504 gdb_py_object_from_longest.
5505 (infpy_get_pid): Likewise.
5506
5507 2020-09-15 Tom Tromey <tromey@adacore.com>
5508
5509 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5510 defines.
5511 * python/py-value.c (valpy_long): Use
5512 gdb_py_object_from_ulongest.
5513 * python/py-symtab.c (salpy_get_pc): Use
5514 gdb_py_object_from_ulongest.
5515 (salpy_get_last): Likewise.
5516 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5517 gdb_py_object_from_ulongest.
5518 * python/py-lazy-string.c (stpy_get_address): Use
5519 gdb_py_object_from_ulongest.
5520 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5521 * python/py-arch.c (archpy_disassemble): Use
5522 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5523 error handling.
5524
5525 2020-09-15 Tom Tromey <tromey@adacore.com>
5526
5527 * python/python-internal.h (gdb_py_long_from_longest): Remove
5528 defines.
5529 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5530 * python/py-type.c (convert_field, typy_get_sizeof): Use
5531 gdb_py_object_from_longest.
5532 * python/py-record-btrace.c (btpy_list_index): Use
5533 gdb_py_object_from_longest.
5534
5535 2020-09-15 Tom Tromey <tromey@adacore.com>
5536
5537 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5538 * python/py-record.c (recpy_element_number): Use
5539 gdb_py_object_from_longest.
5540 (recpy_gap_number): Likewise.
5541
5542 2020-09-15 Tom Tromey <tromey@adacore.com>
5543
5544 * top.c (ui::ui): Update.
5545 (highest_ui_num): Remove.
5546 * top.h (struct ui) <num>: Remove.
5547
5548 2020-09-15 Tom Tromey <tromey@adacore.com>
5549
5550 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5551 * ui-style.c (ansi_regex_text): Now array.
5552 * rust-exp.y (number_regex_text): Now array.
5553 * linespec.c (linespec_quote_characters): Now array.
5554 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5555 Now arrays.
5556
5557 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5558
5559 * debuginfod-support.c (debuginfod_client_deleter): New.
5560 (debuginfod_client_up): New.
5561 (debuginfod_init): Return debuginfod_client_up.
5562 (debuginfod_source_query): Adjust.
5563 (debuginfod_debuginfo_query): Adjust.
5564
5565 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5566
5567 * debuginfod-support.c (debuginfod_source_query): Use
5568 make_unique_xstrdup.
5569
5570 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5571
5572 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5573 with `type::instance_flags`.
5574
5575 2020-09-14 Michael Mullin <masmullin@gmail.com>
5576
5577 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5578 Remove baton parameter.
5579
5580 2020-09-14 Pedro Alves <pedro@palves.net>
5581
5582 * Makefile.in (SELFTESTS_SRCS): Add
5583 unittests/enum-flags-selftests.c.
5584 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5585 btrace_function_flags instead of enum btrace_function_flag.
5586 * compile/compile-c-types.c (convert_qualified): Use
5587 enum_flags::raw.
5588 * compile/compile-cplus-symbols.c (convert_one_symbol)
5589 (convert_symbol_bmsym):
5590 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5591 (compile_cplus_convert_struct_or_union_methods)
5592 (compile_cplus_instance::convert_qualified_base):
5593 * go-exp.y (parse_string_or_char): Add cast to int.
5594 * unittests/enum-flags-selftests.c: New file.
5595 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5596 type to btrace_thread_flags from btrace_thread_flag.
5597 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5598 local's type to btrace_thread_flags from btrace_thread_flag. Add
5599 cast in DEBUG call.
5600
5601 2020-09-14 Pedro Alves <pedro@palves.net>
5602
5603 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5604 * gdbtypes.c (address_space_name_to_int): Rename to ...
5605 (address_space_name_to_type_instance_flags): ... this.
5606 (address_space_int_to_name): Rename to ...
5607 (address_space_type_instance_flags_to_name): ... this.
5608 * gdbtypes.h (address_space_name_to_int): Rename to ...
5609 (address_space_name_to_type_instance_flags): ... this.
5610 (address_space_int_to_name): Rename to ...
5611 (address_space_type_instance_flags_to_name): ... this.
5612 * type-stack.c (type_stack::insert): Adjust to rename.
5613 * type-stack.h (type_stack::insert): Likewise.
5614
5615 2020-09-14 Pedro Alves <pedro@palves.net>
5616 Andrew Burgess <andrew.burgess@embecosm.com>
5617
5618 * avr-tdep.c (avr_address_class_type_flags): Return
5619 type_instance_flags.
5620 (avr_address_class_type_flags_to_name): Take a
5621 type_instance_flags.
5622 (avr_address_class_name_to_type_flags): Return bool and take a
5623 type_instance_flags.
5624 * d-lang.c (build_d_types): Use type::set_instance_flags.
5625 * ft32-tdep.c (ft32_address_class_type_flags): Return
5626 type_instance_flags.
5627 (ft32_address_class_type_flags_to_name): Take a
5628 type_instance_flags.
5629 (ft32_address_class_name_to_type_flags): Return bool and take a
5630 type_instance_flags.
5631 (ft32_gdbarch_init): Use type::set_instance_flags.
5632 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5633 * gdbarch.h, gdbarch.c: Regenerate.
5634 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5635 (address_class_name_to_type_flags): Use type_instance_flags and
5636 bool.
5637 * gdbtypes.c (address_space_name_to_int)
5638 (address_space_int_to_name, make_qualified_type): Use
5639 type_instance_flags.
5640 (make_qualified_type): Use type_instance_flags and
5641 type::set_instance_flags.
5642 (make_type_with_address_space, make_cv_type, make_vector_type)
5643 (check_typedef): Use type_instance_flags.
5644 (recursive_dump_type): Cast type_instance_flags to unsigned for
5645 printing.
5646 (copy_type_recursive): Use type::set_instance_flags.
5647 (gdbtypes_post_init): Use type::set_instance_flags.
5648 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5649 <m_instance_flags>: ... this.
5650 <instance_flags, set_instance_flags>: New methods.
5651 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5652 (SET_TYPE_INSTANCE_FLAGS): New.
5653 (address_space_name_to_int, address_space_int_to_name)
5654 (make_type_with_address_space): Pass flags using
5655 type_instance_flags instead of int.
5656 * stabsread.c (cleanup_undefined_types_noname): Use
5657 type::set_instance_flags.
5658 * s390-tdep.c (s390_address_class_type_flags): Return
5659 type_instance_flags.
5660 (s390_address_class_type_flags_to_name): Take a
5661 type_instance_flags.
5662 (s390_address_class_name_to_type_flags): Return bool and take a
5663 type_instance_flags.
5664 * type-stack.c (type_stack::follow_types): Use
5665 type_instance_flags.
5666 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5667
5668 2020-09-14 Tom Tromey <tromey@adacore.com>
5669
5670 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5671 * x86-tdep.c (x86_is_thunk_register_name)
5672 (x86_in_indirect_branch_thunk): Update.
5673 * sparc64-tdep.c (sparc64_fpu_register_names)
5674 (sparc64_cp0_register_names, sparc64_register_names)
5675 (sparc64_pseudo_register_names): Now const.
5676 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5677 cp0_registers_num>: Now const.
5678 * sparc-tdep.c (sparc_core_register_names)
5679 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5680 (sparc32_pseudo_register_names): Now const.
5681 (validate_tdesc_registers): Update.
5682 * rust-lang.c (rust_extensions): Now const.
5683 * p-lang.c (p_extensions): Now const.
5684 * objc-lang.c (objc_extensions): Now const.
5685 * nto-tdep.c (nto_thread_state_str): Now const.
5686 * moxie-tdep.c (moxie_register_names): Now const.
5687 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5688 Now const.
5689 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5690 (mips_linux_reg_names): Now const.
5691 (mips_gdbarch_init): Update.
5692 * microblaze-tdep.c (microblaze_register_names): Now const.
5693 * m68k-tdep.c (m68k_register_names): Now const.
5694 * m32r-tdep.c (m32r_register_names): Now const.
5695 * ia64-tdep.c (ia64_register_names): Now const.
5696 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5697 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5698 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5699 ymm_avx512_register_names, pkeys_register_names>: Now const.
5700 * i386-tdep.c (i386_register_names, i386_zmm_names)
5701 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5702 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5703 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5704 * f-lang.c (f_extensions): Now const.
5705 * d-lang.c (d_extensions): Now const.
5706 * csky-tdep.c (csky_register_names): Now const.
5707 * charset.c (default_charset_names, charset_enum): Now const.
5708 (_initialize_charset): Update.
5709 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5710 const.
5711 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5712 (bsd_uthread_solib_loaded): Update.
5713 (bsd_uthread_state): Now const.
5714 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5715 (amd64_ymm_avx512_names, amd64_ymmh_names)
5716 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5717 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5718 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5719 (amd64_dword_names): Now const.
5720 * agent.c (can_use_agent_enum): Now const.
5721 * ada-tasks.c (task_states, long_task_states): Now const.
5722 * ada-lang.c (known_runtime_file_name_patterns)
5723 (known_auxiliary_function_name_patterns, attribute_names)
5724 (standard_exc, ada_extensions): Now const.
5725
5726 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5727
5728 * bcache.h (struct bcache) <bcache>: Remove constructor.
5729 <m_hash_function, m_compare_function>: Remove.
5730 <~bcache>: Make virtual.
5731 <compare>: Remove static method, introduce virtual method.
5732 <default_hash>: Remove.
5733 <hash>: New virtual method.
5734 * bcache.c (bcache::expand_hash_table): Update.
5735 (bcache::insert): Update.
5736 (bcache::hash): New.
5737 (bcache::compare): Update comment and parameter names.
5738 * gdbtypes.c (types_deeply_equal): Update.
5739 * psymtab.h (struct psymbol_bcache): New struct.
5740 (class psymtab_storage) <psymtab_storage>: Make default.
5741 <psymbol_cache>: Change type to psymbol_bcache.
5742 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5743 (psymbol_hash): Change to...
5744 (psymbol_bcache::hash): ... this.
5745 (psymbol_compare): Change to...
5746 (psymbol_bcache::compare): ... this.
5747
5748 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5749
5750 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5751 checking for initial lwp.
5752
5753 2020-09-14 Tom Tromey <tromey@adacore.com>
5754
5755 * m68k-tdep.c (m68k_extract_return_value): Use
5756 pointer_result_regnum.
5757 (m68k_store_return_value): Likewise.
5758 (m68k_reg_struct_return_p): Handle vectors and arrays.
5759 (m68k_return_value): Handle arrays.
5760 (m68k_svr4_return_value): Fix single-element aggregate handling.
5761 Handle long double. Adjust for embedded ABI.
5762 (m68k_svr4_init_abi): Set pointer_result_regnum.
5763 (m68k_embedded_init_abi): New function.
5764 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5765 (m68k_osabi_sniffer): New function.
5766 (_initialize_m68k_tdep): Register osabi sniffer.
5767 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5768 member.
5769
5770 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5771
5772 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5773 with gdb::unique_xmalloc_ptr<char>.
5774
5775 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5776
5777 * xml-support.h (xml_fetch_another): Change type to be a
5778 function_view.
5779 (xml_process_xincludes): Remove baton parameter.
5780 (xml_fetch_content_from_file): Change baton parameter to
5781 dirname.
5782 * xml-support.c (struct xinclude_parsing_data)
5783 <xinclude_parsing_data>: Remove baton parameter.
5784 <fetcher_baton>: Remove.
5785 (xinclude_start_include): Adjust.
5786 (xml_process_xincludes): Adjust.
5787 (xml_fetch_content_from_file): Replace baton parameter with
5788 dirname.
5789 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5790 (xml_init_syscalls_info): Use a lambda.
5791 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5792 (file_read_description_xml): Use a lambda.
5793 (fetch_available_features_from_target): Change baton parameter
5794 to target_ops.
5795 (target_read_description_xml): Use a lambda.
5796 (target_fetch_description_xml): Use a lambda.
5797 (string_read_description_xml): Update.
5798
5799 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5800
5801 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5802 uses with type::endianity_is_not_default.
5803
5804 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5805
5806 * gdbtypes.h (struct type) <endianity_is_not_default,
5807 set_endianity_is_not_default>: New methods.
5808 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5809 type::endianity_is_not_default, change all write call sites to
5810 use type::set_endianity_is_not_default.
5811
5812 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5813
5814 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5815 uses with type::is_fixed_instance.
5816
5817 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * gdbtypes.h (struct type) <is_fixed_instance,
5820 set_is_fixed_instance>: New methods.
5821 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5822 write call sites to use type::set_is_fixed_instance.
5823
5824 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5825
5826 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5827 uses with type::is_gnu_ifunc.
5828
5829 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5832 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5833 use type::set_is_gnu_ifunc.
5834
5835 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5836
5837 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5838 uses with type::stub_is_supported.
5839
5840 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5841
5842 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5843 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5844 use type::set_stub_is_supported.
5845
5846 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5849 uses with type::is_vector.
5850
5851 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5854 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5855 use type::set_is_vector.
5856
5857 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5858
5859 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5860 uses with type::has_varargs.
5861
5862 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5865 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5866 use type::set_has_varargs.
5867
5868 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5869
5870 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5871 uses with type::is_prototyped.
5872
5873 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5874
5875 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5876 New methods.
5877 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5878 call sites to use type::set_is_prototyped.
5879
5880 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5883 uses with type::target_is_stub.
5884
5885 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5886
5887 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5888 New methods.
5889 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5890 sites to use type::set_target_is_stub.
5891
5892 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5893
5894 * gdbtypes.h (TYPE_STUB): Remove, replace all
5895 uses with type::is_stub.
5896
5897 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5898
5899 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5900 (TYPE_STUB): Use type::is_stub, change all write call sites to
5901 use type::set_is_stub.
5902
5903 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5904
5905 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5906 type::has_no_signedness.
5907
5908 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5909
5910 * gdbtypes.h (struct type) <has_no_signedness,
5911 set_has_no_signedness>: New methods.
5912 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5913 call sites to use type::set_has_no_signedness.
5914
5915 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5918 type::is_unsigned.
5919
5920 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5923 methods.
5924 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5925 sites to use type::set_is_unsigned.
5926
5927 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5928 Adam Renquinha <arenquinha@cimeq.qc.ca>
5929
5930 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5931 pointer and stack frame offset when unwinding.
5932
5933 2020-09-13 Pedro Alves <pedro@palves.net>
5934
5935 * NEWS: Document "-break-insert --qualified".
5936 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5937
5938 2020-09-13 Pedro Alves <pedro@palves.net>
5939
5940 * linespec.c (classify_mtype, compare_msyms): Delete.
5941 (search_minsyms_for_name): Remove classification logic. Instead
5942 filter out trampoline symbols if we also found an external
5943 function of the same name.
5944
5945 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5946
5947 * NEWS: Create a new section for the next release branch.
5948 Rename the section of the current branch, now that it has
5949 been cut.
5950
5951 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5952
5953 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5954 * version.in: Bump version to 11.0.50.DATE-git.
5955
5956 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5957
5958 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5959
5960 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5961 Felix Willgerodt <Felix.Willgerodt@intel.com>
5962
5963 * gdbarch.sh: Added bfloat16 type.
5964 * gdbarch.c: Regenerated.
5965 * gdbarch.h: Regenerated.
5966 * gdbtypes.c (floatformats_bfloat16): New struct.
5967 (gdbtypes_post_init): Add builtin_bfloat16.
5968 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5969 (floatformats_bfloat16): New struct.
5970 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5971 (i386_ymm_type): Add field "v16_bfloat16"
5972 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5973 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5974 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5975 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5976 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5977 * features/i386/64bit-avx512.c: Regenerated.
5978 * features/i386/64bit-sse.xml: Add bfloat16 type.
5979 * features/i386/64bit-sse.c: Regenerated.
5980
5981 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5982
5983 * i386-tdep.c (i386_zmm_type): Fix field names.
5984 (i386_ymm_type): Fix field names.
5985
5986 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5987
5988 * breakpoint.c: Fix typo in the help message of the
5989 "set breakpoint condition-evaluation" command.
5990
5991 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5992
5993 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5994 * (nbsd_nat_target::pid_to_exec_file)
5995 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5996 (nbsd_nat_target::post_startup_inferior)
5997 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5998 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5999 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
6000 * (nbsd_thread_lister): Remove.
6001
6002 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6003
6004 * fork-inferior.c (startup_inferior): Avoid double free.
6005
6006 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6007
6008 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
6009 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6010
6011 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6012
6013 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6014 * netbsd-nat.c: Include <sys/ptrace.h>.
6015 * (netbsd_nat::enable_proc_events): Add.
6016
6017 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6018
6019 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6020 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6021 (netbsd_nat::for_each_thread): Add.
6022 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6023 "gdbsupport/common-debug.h".
6024 * (netbsd_nat::netbsd_thread_lister)
6025 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6026 (netbsd_nat::for_each_thread): Add.
6027
6028 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6029
6030 * netbsd-nat.h: Include <unistd.h>.
6031 * (netbsd_nat::pid_to_exec_file): Add.
6032 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6033 * (netbsd_nat::pid_to_exec_file) Add.
6034
6035 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6036
6037 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6038
6039 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6040
6041 * netbsd-nat.h: New file.
6042 * netbsd-nat.c: Likewise.
6043
6044 2020-09-09 Tom Tromey <tromey@adacore.com>
6045
6046 * ada-lang.c (remove_extra_symbols): Do not increment when
6047 removing an element
6048
6049 2020-09-08 Tom Tromey <tromey@adacore.com>
6050
6051 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6052
6053 2020-09-08 Tom Tromey <tromey@adacore.com>
6054
6055 PR win32/25302:
6056 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6057 (gdb_bfd_init_data): New function.
6058 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6059
6060 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6061
6062 * infrun.c (fetch_inferior_event): Use
6063 `switch_to_target_no_thread` to switch the target.
6064
6065 2020-09-06 Tom Tromey <tom@tromey.com>
6066
6067 * symfile.h (dwarf2_free_objfile): Don't declare.
6068
6069 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6070
6071 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6072 to match 16 byte real/complex type generated by Flang compiler.
6073
6074 2020-09-03 Tom de Vries <tdevries@suse.de>
6075
6076 PR breakpoint/26546
6077 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6078 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6079
6080 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6081
6082 * maint.c (index_digits): New function.
6083 (struct maint_print_section_data): Remove.
6084 (print_bfd_section_info): Remove print_data parameter, add arg
6085 and index_digits.
6086 (print_objfile_section_info): Likewise.
6087 (print_bfd_section_info_maybe_relocated): Likewise (plus
6088 objfile).
6089 (maintenance_info_sections): Adjust calls.
6090
6091 2020-09-02 Tom Tromey <tromey@adacore.com>
6092
6093 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6094 for null pointers.
6095 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6096
6097 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6098
6099 * bcache.h (struct bcache) <insert>: Change type of `added` to
6100 pointer to bool.
6101 * bcache.c (bcache::insert): Likewise.
6102 * gdbtypes.c (check_types_worklist): Adjust.
6103 * psymtab.c (add_psymbol_to_bcache): Adjust.
6104
6105 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6106
6107 * corelow.c (unordered_set): Include.
6108 (class core_target): Add field 'm_core_unavailable_mappings'.
6109 (core_target::build_file_mappings): Print only one warning
6110 per inaccessible file. Add unavailable/broken mappings
6111 to m_core_unavailable_mappings.
6112 (core_target::xfer_partial): Call...
6113 (core_target::xfer_memory_via_mappings): New method.
6114
6115 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6116
6117 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6118 type to bool.
6119
6120 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * dwarf2/read.c (struct field_info): Fix indentation.
6123
6124 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6125
6126 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6127 ordering in comment.
6128 * frame.c (frame_id_eq): Fix indentation.
6129
6130 2020-08-31 Scott Linder <scott@scottlinder.com>
6131 Simon Marchi <simon.marchi@efficios.com>
6132
6133 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6134 inline frame ids in outer frame.
6135
6136 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6137
6138 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6139 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6140 (outer_frame_id): Use FID_STACK_OUTER instead of
6141 FID_STACK_INVALID.
6142 (frame_id_p): Don't check for outer_frame_id.
6143
6144 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6147 regnum/frame in value. Call allocate_value_lazy.
6148 * frame.c (frame_unwind_register_value): Use
6149 val_print_not_saved.
6150
6151 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6154
6155 2020-08-29 Pedro Alves <pedro@palves.net>
6156
6157 * progspace.c (print_program_space): Use all_inferiors. Switch to
6158 the inferior before calling target_pid_to_str.
6159
6160 2020-08-28 Tom Tromey <tom@tromey.com>
6161
6162 * xcoffread.c (xcoff_end_psymtab): Update comment.
6163 * dbxread.c (dbx_end_psymtab): Update comment.
6164
6165 2020-08-28 Tom de Vries <tdevries@suse.de>
6166
6167 PR breakpoint/26544
6168 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6169 event_location.
6170 (create_breakpoint): Same.
6171 (base_breakpoint_decode_location): Same.
6172 (bkpt_create_sals_from_location): Same.
6173 (bkpt_decode_location): Same.
6174 (bkpt_probe_create_sals_from_location): Same.
6175 (bkpt_probe_decode_location): Same.
6176 (tracepoint_create_sals_from_location): Same.
6177 (tracepoint_decode_location): Same.
6178 (tracepoint_probe_decode_location): Same.
6179 (strace_marker_create_sals_from_location): Same.
6180 (strace_marker_decode_location): Same.
6181 (create_sals_from_location_default): Same.
6182 (decode_location_default): Same.
6183 * breakpoint.h (struct breakpoint_ops): Same.
6184 (create_breakpoint): Same.
6185 * linespec.h (decode_line_full): Same.
6186 * linespec.c (decode_line_full): Same. Throw error if
6187 result.size () == 0.
6188
6189 2020-08-27 Pedro Alves <pedro@palves.net>
6190
6191 PR gdb/26524
6192 * breakpoint.c (until_break_fsm) <location_breakpoint,
6193 caller_breakpoint>: Delete fields.
6194 <breakpoints>: New field.
6195 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6196 two individual breakpoints.
6197 (until_break_fsm::should_stop): Loop over breakpoints in the
6198 breakpoint vector.
6199 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6200 vector.
6201 (until_break_command): Handle location expanding into multiple
6202 sals.
6203
6204 2020-08-27 Pedro Alves <pedro@palves.net>
6205
6206 PR gdb/26523
6207 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6208 bp_until breakpoints user-specified locations. Update intro
6209 comment.
6210
6211 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6214 gdb_bfd_sections): New.
6215 * maint.c (print_bfd_section_info): Change param type to
6216 maint_print_section_data.
6217 (print_objfile_section_info): Likewise.
6218 (print_bfd_section_info_maybe_relocated): Likewise.
6219 (maintenance_info_sections): Use gdb_bfd_sections.
6220
6221 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6222
6223 * MAINTAINERS: Add ARC target and maintainer.
6224
6225 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6226
6227 * configure.tgt: ARC support for GNU/Linux.
6228 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6229 * arc-linux-tdep.c: New file.
6230 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6231 * arc-tdep.c (arc_write_pc): Use it.
6232
6233 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6234
6235 * arc-tdep.c (arc_check_for_hardware_loop): New.
6236 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6237
6238 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6239
6240 * arc-tdep.h: Include "gdbarch.h".
6241
6242 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6243
6244 * arch/arc.h
6245 (arc_gdbarch_features): New class to stir the selection of target XML.
6246 (arc_create_target_description): Use FEATURES to choose XML target.
6247 (arc_lookup_target_description): Use arc_create_target_description
6248 to create _new_ target descriptions or return the already created
6249 ones if the FEATURES is the same.
6250 * arch/arc.c: Implementation of prototypes described above.
6251 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6252 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6253 * arc-tdep.c (*_feature_name): Make feature names consistent.
6254 (arc_register_feature): A new struct to hold information about
6255 registers of a particular target/feature.
6256 (arc_check_tdesc_feature): Check if XML provides registers in
6257 compliance with ARC_REGISTER_FEATURE structs.
6258 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6259 (determine_*_reg_feature_set): Which feature name to look for.
6260 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6261 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6262 to expected ISA enums to be used in arc_gdbarch_features structs.
6263 * features/Makefile (FEATURE_XMLFILES): Add new files.
6264 * gdb/features/arc/v1-aux.c: New file.
6265 * gdb/features/arc/v1-aux.xml: Likewise.
6266 * gdb/features/arc/v1-core.c: Likewise.
6267 * gdb/features/arc/v1-core.xml: Likewise.
6268 * gdb/features/arc/v2-aux.c: Likewise.
6269 * gdb/features/arc/v2-aux.xml: Likewise.
6270 * gdb/features/arc/v2-core.c: Likewise.
6271 * gdb/features/arc/v2-core.xml: Likewise.
6272 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6273
6274 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6275 Andrew Burgess <andrew.burgess@embecosm.com>
6276
6277 PR m2/26372
6278 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6279 an assert. Remove single element array indexing pattern as the
6280 MULTI_SUBSCRIPT support will handle this case too.
6281
6282 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * value.h (valprint_check_validity): Move declaration from
6285 here...
6286 * valprint.h (valprint_check_validity): ... to here.
6287
6288 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * debug.h: New file.
6291 * debug.c (debug_prefixed_vprintf): New function.
6292 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6293 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6294
6295 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6296
6297 * infrun.h (infrun_debug_printf_1): New function declaration.
6298 (infrun_debug_printf): New macro.
6299 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6300 throughout.
6301 (infrun_debug_printf): New function.
6302 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6303 (handle_jit_event): Likewise.
6304
6305 2020-08-21 Mark Wielaard <mark@klomp.org>
6306
6307 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6308
6309 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6310
6311 * frame.c (enum class frame_id_status): New.
6312 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6313 (fprintf_frame): Update.
6314 (compute_frame_id): Set frame id status to "computing" on entry.
6315 Set it back to "not_computed" on failure and to "computed" on
6316 success.
6317 (get_frame_id): Assert the frame id is not being computed.
6318 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6319 (create_new_frame): Likewise.
6320 (frame_cleanup_after_sniffer): Update assert.
6321
6322 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6323
6324 * regcache.c (pid_ptid_regcache_map): New type.
6325 (target_ptid_regcache_map): Remove.
6326 (target_pid_ptid_regcache_map): New type.
6327 (regcaches): Change type to target_pid_ptid_regcache_map.
6328 (get_thread_arch_aspace_regcache): Update.
6329 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6330 case.
6331 (regcaches_size): Update.
6332 (regcache_count): Update.
6333 (registers_changed_ptid_target_pid_test): New.
6334 (_initialize_regcache): Register new test.
6335
6336 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * regcache.c (regcache_count): New.
6339 (struct regcache_test_data): New.
6340 (regcache_test_data_up): New.
6341 (populate_regcaches_for_test): New.
6342 (regcaches_test): Remove.
6343 (get_thread_arch_aspace_regcache_test): New.
6344 (registers_changed_ptid_all_test): New.
6345 (registers_changed_ptid_target_test): New.
6346 (registers_changed_ptid_target_ptid_test): New.
6347 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6348 (_initialize_regcache): Register new tests.
6349
6350 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6351
6352 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6353 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6354 gdbarch and aspace parameter. Use current inferior's aspace.
6355 Validate regcache's arch value.
6356 (regcaches_test): Update.
6357
6358 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6359
6360 * regcache.c (regcaches_test): Call registers_changed.
6361
6362 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6363
6364 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6365
6366 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6367
6368 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6369 to find the end of prologue for flang compiled binaries.
6370 * arm-tdep.c (arm_skip_prologue): Likewise.
6371 * i386-tdep.c (i386_skip_prologue): Likewise.
6372 * producer.c (producer_is_llvm): New function.
6373 (producer_parsing_tests): Added new tests for clang/flang.
6374 * producer.h (producer_is_llvm): New declaration.
6375
6376 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6377
6378 * linux-nat.c (linux_nat_debug_printf): New function.
6379 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6380
6381 2020-08-18 Aaron Merey <amerey@redhat.com>
6382
6383 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6384 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6385 (CLIBS): Add DEBUGINFOD_LIBS.
6386
6387 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6388
6389 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6390 'gdbarch_num_regs'.
6391
6392 2020-08-17 Tom Tromey <tromey@adacore.com>
6393
6394 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6395 ada_get_decoded_value returns NULL.
6396
6397 2020-08-17 Tom Tromey <tromey@adacore.com>
6398
6399 * python/py-inferior.c (infpy_search_memory): Use
6400 gdb_py_object_from_ulongest.
6401 * python/py-infevents.c (create_inferior_call_event_object)
6402 (create_memory_changed_event_object): Use
6403 gdb_py_object_from_ulongest.
6404 * python/py-linetable.c (ltpy_entry_get_pc): Use
6405 gdb_py_object_from_ulongest.
6406
6407 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * loc.c (class symbol_needs_eval_context): Fix indentation.
6410
6411 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6412
6413 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6414 bool.
6415
6416 2020-08-17 Tom de Vries <tdevries@suse.de>
6417
6418 PR gdb/26393
6419 * gdbtypes.c (dump_dynamic_prop): New function.
6420 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6421
6422 2020-08-15 Tom de Vries <tdevries@suse.de>
6423
6424 PR backtrace/26390
6425 * stack.c (print_frame_args): Temporarily set the selected
6426 frame to FRAME while printing the frame's arguments.
6427
6428 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6429
6430 PR breakpoints/26385
6431 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6432 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6433
6434 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6435
6436 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6437 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6438 and >= to check return value instead of == -1 and != -1.
6439
6440 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6441
6442 * utils.h (class gdb_argv) <as_array_view>: New method.
6443 * utils.c (gdb_argv_as_array_view_test): New.
6444 (_initialize_utils): Register selftest.
6445 * maint.c (maintenance_selftest): Use the new method.
6446
6447 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6448
6449 * target.h (supports_dumpcore, dumpcore): New
6450 function declarations.
6451 * target.c (supports_dumpcore, dumpcore): New
6452 functions.
6453 * target-delegates.c: Rebuild.
6454 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6455 and target_dumpcore ().
6456
6457 2020-08-13 Aaron Merey <amerey@redhat.com>
6458
6459 * debuginfod-support.c: Replace global variables with user_data.
6460
6461 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6462
6463 * maint.c (maintenance_selftest): Split args and pass array_view
6464 to run_tests.
6465
6466 2020-08-12 Luis Machado <luis.machado@linaro.org>
6467
6468 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6469 type's length.
6470 Use %s and pulongest to print the length.
6471
6472 2020-08-12 Pedro Alves <palves@redhat.com>
6473
6474 * NEWS: Move "Multi-target debugging support" item to the
6475 "Changes since GDB 9" section.
6476
6477 2020-08-12 Pedro Alves <palves@redhat.com>
6478
6479 PR gdb/26336
6480 * progspace.c (program_space::remove_objfile): Invalidate the
6481 frame cache.
6482
6483 2020-08-11 Tom de Vries <tdevries@suse.de>
6484
6485 * MAINTAINERS: Mark ms1 as deleted.
6486
6487 2020-08-10 Luis Machado <luis.machado@linaro.org>
6488
6489 PR gdb/26310
6490
6491 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6492 act accordingly.
6493 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6494 movz/str/stur/stp skipping behavior.
6495
6496 2020-08-10 Luis Machado <luis.machado@linaro.org>
6497
6498 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6499 struct user_sve_header instead of struct sve_context.
6500
6501 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * read.h (dwarf2_fetch_die_loc_sect_off,
6504 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6505 `void *` parameter with function_view.
6506 * read.c (dwarf2_fetch_die_loc_sect_off,
6507 dwarf2_fetch_die_loc_cu_off): Likewise.
6508 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6509 (per_cu_dwarf_call): Adjust.
6510 (get_frame_address_in_block_wrapper): Remove.
6511 (indirect_synthetic_pointer): Adjust.
6512 (get_ax_pc): Remove.
6513 (dwarf2_compile_expr_to_ax): Adjust.
6514
6515 2020-08-08 Tom de Vries <tdevries@suse.de>
6516
6517 PR build/26344
6518 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6519 constructor.
6520 * regcache.c (get_thread_arch_aspace_regcache): Same.
6521
6522 2020-08-07 Tom Tromey <tromey@adacore.com>
6523
6524 * ravenscar-thread.c
6525 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6526 New method.
6527 (ravenscar_thread_target::wait): Check
6528 runtime_initialized.
6529 (ravenscar_thread_target::prepare_to_store)
6530 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6531 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6532 (ravenscar_thread_target::stopped_by_watchpoint)
6533 (ravenscar_thread_target::stopped_data_address)
6534 (ravenscar_thread_target::core_of_thread): Use
6535 scoped_restore_current_thread and
6536 set_base_thread_from_ravenscar_task.
6537
6538 2020-08-07 Tom Tromey <tromey@adacore.com>
6539
6540 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6541
6542 2020-08-07 Tom Tromey <tromey@adacore.com>
6543
6544 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6545 update_inferior_ptid before update_thread_list.
6546 (temporarily_change_regcache_ptid): New class.
6547 (ravenscar_thread_target::fetch_registers)
6548 (ravenscar_thread_target::store_registers)
6549 (ravenscar_thread_target::prepare_to_store): Use base thread when
6550 forwarding operation.
6551
6552 2020-08-07 Tom Tromey <tromey@adacore.com>
6553
6554 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6555 "is_pid" case.
6556
6557 2020-08-07 Tom Tromey <tromey@adacore.com>
6558
6559 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6560 New methods.
6561 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6562 first.
6563 (ravenscar_thread_target::add_thread): Rename from
6564 ravenscar_add_thread.
6565 (ravenscar_thread_target::update_thread_list): Use a lambda.
6566 (ravenscar_thread_target::xfer_partial): New method.
6567
6568 2020-08-07 Tom Tromey <tromey@adacore.com>
6569
6570 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6571 gdb::function_view.
6572 (iterate_over_live_ada_tasks): Change type of argument.
6573 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6574 of argument.
6575
6576 2020-08-07 Tom Tromey <tromey@adacore.com>
6577
6578 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6579 Remove.
6580 (ravenscar_thread_target::extra_thread_info): Remove.
6581 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6582 defer to target beneath for non-Ravenscar threads.
6583
6584 2020-08-07 Tom Tromey <tromey@adacore.com>
6585
6586 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6587 get_base_thread_from_ravenscar_task>: Now methods.
6588 <m_cpu_map>: New member.
6589 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6590 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6591 (ravenscar_thread_target::task_is_currently_active): Update.
6592 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6593 Now a method.
6594 (ravenscar_thread_target::add_active_thread): Put initial thread
6595 into the m_cpu_map.
6596
6597 2020-08-07 Tom Tromey <tromey@adacore.com>
6598
6599 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6600 event_ptid.
6601
6602 2020-08-07 Tom Tromey <tromey@adacore.com>
6603
6604 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6605 runtime_initialized.
6606
6607 2020-08-07 Tom Tromey <tromey@adacore.com>
6608
6609 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6610 add_active_thread.
6611 (ravenscar_thread_target::add_active_thread): Now public.
6612 (ravenscar_inferior_created): Call add_active_thread after pushing
6613 the target.
6614
6615 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6616
6617 * regcache.c (ptid_regcache_map): New type.
6618 (target_ptid_regcache_map): New type.
6619 (regcaches): Change type to target_ptid_regcache_map.
6620 (get_thread_arch_aspace_regcache): Update to regcaches' new
6621 type.
6622 (regcache_thread_ptid_changed): Likewise.
6623 (registers_changed_ptid): Likewise.
6624 (regcaches_size): Likewise.
6625 (regcaches_test): Update.
6626 (regcache_thread_ptid_changed): Update.
6627 * regcache.h (regcache_up): New type.
6628 * gdbsupport/ptid.h (hash_ptid): New struct.
6629
6630 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * observable.h (thread_ptid_changed): Add parameter
6633 `process_stratum_target *`.
6634 * infrun.c (infrun_thread_ptid_changed): Add parameter
6635 `process_stratum_target *` and use it.
6636 (selftests): New namespace.
6637 (infrun_thread_ptid_changed): New function.
6638 (_initialize_infrun): Register selftest.
6639 * regcache.c (regcache_thread_ptid_changed): Add parameter
6640 `process_stratum_target *` and use it.
6641 (regcache_thread_ptid_changed): New function.
6642 (_initialize_regcache): Register selftest.
6643 * thread.c (thread_change_ptid): Pass target to
6644 thread_ptid_changed observable.
6645
6646 2020-08-06 Caroline Tice <cmtice@google.com>
6647
6648 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6649 (struct dwp_sections): Update field comments. Add loclists and
6650 rnglists fields.
6651 (struct virtual_v2_dwo_sections): Rename struct to
6652 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6653 size & offset fields for loclists and rnglists.
6654 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6655 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6656 skipping dummy type units.
6657 (create_dwp_hash_table): Update the large comment above the function to
6658 discuss Version 5 DWP files as well, with references. Update all the
6659 version checks in the function to check for version 5 as well. Add new
6660 section at the end to create dwp hash table for version 5.
6661 (create_dwp_v2_section): Rename function to
6662 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6663 Add V5 to error message text.
6664 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6665 into calls to create_dwp_v2_or_v5_section.
6666 (create_dwo_unit_in_dwp_v5): New function.
6667 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6668 check for version2; add else clause to handle version 5.
6669 (open_and_init_dwo_file): Add code to check dwarf version & only call
6670 create_debug_types_hash_table (with sections.types) if version is not 5;
6671 else call create_debug_type_hash_table, with sections.info.
6672 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6673 version 5.
6674 (dwarf2_locate_v5_dwp_sections): New function.
6675 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6676 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6677
6678 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6679
6680 * regcache.h (class regcache): Remove friend
6681 registers_changed_ptid.
6682 <regcache_thread_ptid_changed>: Remove.
6683 <regcaches>: Remove.
6684 * regcache.c (regcache::regcaches): Rename to...
6685 (regcaches): ... this. Make static.
6686 (get_thread_arch_aspace_regcache): Update.
6687 (regcache::regcache_thread_ptid_changed): Rename to...
6688 (regcache_thread_ptid_changed): ... this. Update.
6689 (class regcache_access): Remove.
6690 (regcaches_test): Update.
6691 (_initialize_regcache): Update.
6692 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6693 <forward_list>.
6694
6695 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6696
6697 * regcache.h (class regcache) <current_regcache>: Rename to...
6698 <regcaches>: ... this. Move doc here.
6699 * regcache.c (regcache::current_regcache) Rename to...
6700 (regcache::regcaches): ... this. Move doc to header.
6701 (get_thread_arch_aspace_regcache): Update.
6702 (regcache::regcache_thread_ptid_changed): Update.
6703 (registers_changed_ptid): Update.
6704 (class regcache_access) <current_regcache_size>: Rename to...
6705 <regcaches_size>: ... this.
6706 (current_regcache_test): Rename to...
6707 (regcaches_test): ... this.
6708 (_initialize_regcache): Update.
6709
6710 2020-08-06 Victor Collod <vcollod@nvidia.com>
6711
6712 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6713
6714 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6715
6716 * corelow.c (core_target::build_file_mappings): Don't output
6717 null pathname in warning.
6718
6719 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6720
6721 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6722 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6723 gdb.dwarf2/dw2-single-line-discriminators.exp,
6724 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6725
6726 2020-08-05 Tom Tromey <tromey@adacore.com>
6727
6728 PR rust/26197:
6729 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6730 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6731 Fix off-by-one and type size errors in ordinary case.
6732
6733 2020-08-05 Tom de Vries <tdevries@suse.de>
6734
6735 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6736 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6737
6738 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6739
6740 * frame.h (frame_id_p): Return bool.
6741 (frame_id_artificial_p): Return bool.
6742 (frame_id_eq): Return bool.
6743 (has_stack_frames): Return bool.
6744 (get_selected_frame): Fix typo in comment.
6745 (get_frame_pc_if_available): Return bool.
6746 (get_frame_address_in_block_if_available): Return bool.
6747 (get_frame_func_if_available): Return bool.
6748 (read_frame_register_unsigned): Return bool.
6749 (get_frame_register_bytes): Return bool.
6750 (safe_frame_unwind_memory): Return bool.
6751 (deprecated_frame_register_read): Return bool.
6752 (frame_unwinder_is): Return bool.
6753 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6754 bool.
6755 <this_id::p>: Likewise.
6756 <prev_p>: Likewise.
6757 (frame_stash_add): Return bool.
6758 (get_frame_id): Use bool.
6759 (frame_id_build_special) Use bool.
6760 (frame_id_build_unavailable_stack): Use bool.
6761 (frame_id_build): Use bool.
6762 (frame_id_p): Return bool, use true/false instead of 1/0.
6763 (frame_id_artificial_p): Likewise.
6764 (frame_id_eq): Likewise.
6765 (frame_id_inner): Likewise.
6766 (get_frame_func_if_available): Likewise.
6767 (read_frame_register_unsigned): Likewise.
6768 (deprecated_frame_register_read): Likewise.
6769 (get_frame_register_bytes): Likewise.
6770 (has_stack_frames): Likewise.
6771 (inside_main_func): Likewise.
6772 (inside_entry_func): Likewise.
6773 (get_frame_pc_if_available): Likewise.
6774 (get_frame_address_in_block_if_available): Likewise.
6775 (frame_unwinder_is): Likewise.
6776 (safe_frame_unwind_memory): Likewise.
6777 (frame_unwind_arch): Likewise.
6778
6779 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6780
6781 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6782 type to cached_copy_status.
6783 (fprintf_frame): Adjust.
6784 (get_frame_func_if_available): Adjust.
6785 (frame_cleanup_after_sniffer): Adjust.
6786
6787 2020-08-04 Mark Wielaard <mark@klomp.org>
6788
6789 * MAINTAINERS (Write After Approval): Update email address.
6790
6791 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6792
6793 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6794 dynamic_prop::const_val.
6795
6796 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6797
6798 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6799 dynamic_prop::kind.
6800
6801 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6804
6805 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6806
6807 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6808
6809 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6810 Jose E. Marchesi <jose.marchesi@oracle.com>
6811
6812 * configure.tgt: Add entry for bpf-*-*.
6813 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6814 (ALLDEPFILES): Add bpf-tdep.c.
6815 * bpf-tdep.c: New file.
6816 * MAINTAINERS: Add bpf target and maintainer.
6817 * NEWS: Mention the support for the new target.
6818
6819 2020-08-04 Tom de Vries <tdevries@suse.de>
6820
6821 PR symtab/23270
6822 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6823 Error.
6824
6825 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6826
6827 * syscalls/freebsd.xml: Regenerate.
6828
6829 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6830
6831 * syscalls/update-freebsd.sh: Fix usage and year range.
6832
6833 2020-08-03 Tom de Vries <tdevries@suse.de>
6834
6835 PR symtab/26333
6836 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6837 DW_LNE_lo_user/DW_LNE_hi_user range.
6838
6839 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6840
6841 PR ada/26318
6842 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6843 kind.
6844
6845 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6846
6847 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6848
6849 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6850
6851 * breakpoint.c (set_breakpoint_condition): Update the condition
6852 expressions after checking that the input condition string parses
6853 successfully and does not contain junk at the end.
6854
6855 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6856
6857 * breakpoint.c (set_breakpoint_condition): Update the
6858 condition string after parsing the new condition successfully.
6859
6860 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6861
6862 * proc-api.c (_STRUCTURED_PROC): Don't define.
6863 * proc-events.c: Likewise.
6864 * proc-flags.c: Likewise.
6865 * proc-why.c: Likewise.
6866 * procfs.c: Likewise.
6867
6868 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6869 * configure, config.in: Regenerate.
6870
6871 2020-07-30 Tom de Vries <tdevries@suse.de>
6872
6873 PR build/26320
6874 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6875 m_red/m_green/m_blue in a union.
6876
6877 2020-07-29 Tom de Vries <tdevries@suse.de>
6878
6879 PR tdep/26280
6880 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6881
6882 2020-07-28 Tom Tromey <tromey@adacore.com>
6883
6884 PR symtab/26270:
6885 * symtab.h (find_pc_partial_function_sym): Declare.
6886 * cli/cli-cmds.c (disassemble_command): Use
6887 find_pc_partial_function_sym. Check asm_demangle.
6888 * blockframe.c (cache_pc_function_sym): New global.
6889 (cache_pc_function_name): Remove.
6890 (clear_pc_function_cache): Update.
6891 (find_pc_partial_function_sym): New function, from
6892 find_pc_partial_function.
6893 (find_pc_partial_function): Rewrite using
6894 find_pc_partial_function_sym.
6895
6896 2020-07-28 Tom Tromey <tromey@adacore.com>
6897
6898 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6899 help. Add usage.
6900
6901 2020-07-28 Tom Tromey <tromey@adacore.com>
6902
6903 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6904 <DW_OP_GNU_variable_value>: Cast to address type.
6905
6906 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6907
6908 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6909 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6910 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6911 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6912 (nbsd_get_siginfo_type): New.
6913 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6914 (_initialize_nbsd_tdep): New.
6915
6916 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6917
6918 PR binutils/26301
6919 * configure: Regenerated.
6920
6921 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6922
6923 PR binutils/26301
6924 * configure: Regenerated.
6925
6926 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * python/py-frame.c: Remove 'user-regs.h' include.
6929 (frapy_read_register): Rewrite to make use of
6930 gdbpy_parse_register_id.
6931 * python/py-registers.c (gdbpy_parse_register_id): New function,
6932 moved here from python/py-unwind.c. Updated the return type, and
6933 also accepts register descriptor objects.
6934 * python/py-unwind.c: Remove 'user-regs.h' include.
6935 (pyuw_parse_register_id): Moved to python/py-registers.c.
6936 (unwind_infopy_add_saved_register): Update to use
6937 gdbpy_parse_register_id.
6938 (pending_framepy_read_register): Likewise.
6939 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6940
6941 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6942
6943 * python/py-registers.c: Add 'user-regs.h' include.
6944 (register_descriptor_iter_find): New function.
6945 (register_descriptor_iterator_object_methods): New static global
6946 methods array.
6947 (register_descriptor_iterator_object_type): Add pointer to methods
6948 array.
6949
6950 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6951
6952 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6953 for all architectures on FreeBSD 11.3 and later.
6954
6955 2020-07-27 Tom Tromey <tromey@adacore.com>
6956
6957 * gcore.h (load_corefile): Don't declare.
6958
6959 2020-07-27 Tom de Vries <tdevries@suse.de>
6960
6961 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6962 * config.in: Regenerate.
6963 * configure: Regenerate.
6964
6965 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6966
6967 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6968 ws2tcpip.h. When checking whether socklen_t type is defined, use
6969 ws2tcpip.h if it is available and sys/socket.h isn't.
6970 * configure: Regenerate.
6971 * config.in: Regenerate.
6972
6973 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6974
6975 PR fortran/23051
6976 PR fortran/26139
6977 * valops.c (value_ind): Pass address to
6978 readjust_indirect_value_type.
6979 * value.c (readjust_indirect_value_type): Make parameter
6980 non-const, and add extra address parameter. Resolve original type
6981 before using it.
6982 * value.h (readjust_indirect_value_type): Update function
6983 signature and comment.
6984
6985 2020-07-25 Tom de Vries <tdevries@suse.de>
6986
6987 PR symtab/26243
6988 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6989 entries.
6990
6991 2020-07-24 Aaron Merey <amerey@redhat.com>
6992
6993 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6994 * configure: Rebuild.
6995
6996 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6997
6998 PR corefiles/26294
6999 * corelow.c (_initialize_corelow): Add period to help text
7000 for "maintenance print core-file-backed-mappings".
7001
7002 2020-07-23 Pedro Alves <pedro@palves.net>
7003
7004 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
7005 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
7006 meanwhile.
7007 * frame.c (frame_cache_generation, get_frame_cache_generation):
7008 New.
7009 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7010 (get_prev_frame_if_no_cycle): On exception, don't touch
7011 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7012 * frame.h (get_frame_cache_generation): Declare.
7013
7014 2020-07-23 Tom de Vries <tdevries@suse.de>
7015
7016 PR tui/26282
7017 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7018 New default constructor.
7019
7020 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7021
7022 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7023 exclude non-statement entries.
7024
7025 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7026
7027 * NEWS (New commands): Mention new command
7028 "maintenance print core-file-backed-mappings".
7029
7030 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7031
7032 * corelow.c (gdbcmd.h): Include.
7033 (core_target::info_proc_mappings): New method.
7034 (get_current_core_target): New function.
7035 (maintenance_print_core_file_backed_mappings): New function.
7036 (_initialize_corelow): Add core-file-backed-mappings to
7037 "maint print" commands.
7038
7039 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7040
7041 * linux-tdep.c (dump_note_entry_p): New function.
7042 (linux_dump_mapping_p_ftype): New typedef.
7043 (linux_find_memory_regions_full): Add new parameter,
7044 should_dump_mapping_p.
7045 (linux_find_memory_regions): Adjust call to
7046 linux_find_memory_regions_full.
7047 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7048 call to linux_find_memory_regions_full.
7049
7050 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7051
7052 * corelow.c (solist.h, unordered_map): Include.
7053 (class core_target): Add field m_core_file_mappings and
7054 method build_file_mappings.
7055 (core_target::core_target): Call build_file_mappings.
7056 (core_target::~core_target): Free memory associated with
7057 m_core_file_mappings.
7058 (core_target::build_file_mappings): New method.
7059 (core_target::xfer_partial): Use m_core_file_mappings
7060 for memory transfers.
7061 * linux-tdep.c (linux_read_core_file_mappings): New
7062 function.
7063 (linux_core_info_proc_mappings): Rewrite to use
7064 linux_read_core_file_mappings.
7065 (linux_init_abi): Register linux_read_core_file_mappings.
7066
7067 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7068
7069 * arch-utils.c (default_read_core_file_mappings): New function.
7070 * arch-utils.c (default_read_core_file_mappings): Declare.
7071 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7072 * gdbarch.h, gdbarch.c: Regenerate.
7073
7074 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7075
7076 PR corefiles/25631
7077 * corelow.c (core_target:xfer_partial): Revise
7078 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7079 case after first checking the stratum beneath the core
7080 target.
7081 (has_all_memory): Return true.
7082 * target.c (raw_memory_xfer_partial): Revise comment
7083 regarding use of has_all_memory.
7084
7085 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7086
7087 * exec.h (section_table_xfer_memory): Revise declaration,
7088 replacing section name parameter with an optional callback
7089 predicate.
7090 * exec.c (section_table_xfer_memory): Likewise.
7091 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7092 of section_table_xfer_memory.
7093
7094 2020-07-22 Tom Tromey <tromey@adacore.com>
7095
7096 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7097 lookup_symbol_search_name.
7098
7099 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7100
7101 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7102 redundant local variable.
7103 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7104 reference, not pointer, update code accordingly.
7105
7106 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7107 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7108
7109 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7110 * jit.c (jit_breakpoint_re_set_internal): Use the
7111 `skip_jit_symbol_lookup` field.
7112
7113 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7114 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7115
7116 * jit.c (jit_read_descriptor): Define the descriptor address once,
7117 use twice.
7118 (jit_breakpoint_deleted): Move the declaration of the loop variable
7119 `iter` into the loop header.
7120 (jit_breakpoint_re_set_internal): Move the declaration of the local
7121 variable `objf_data` to the first point of definition.
7122 (jit_event_handler): Move the declaration of local variables
7123 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7124 Rename `objf` to `jited`.
7125
7126 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7127
7128 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7129 Remove.
7130 * jit.c (get_jiter_objfile_data): Update.
7131
7132 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7133 Simon Marchi <simon.marchi@polymtl.ca>
7134
7135 * jit.c (struct jit_program_space_data): Remove.
7136 (jit_program_space_key): Remove.
7137 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7138 stuff.
7139 (get_jit_program_space_data): Remove.
7140 (jit_breakpoint_deleted): Iterate on all of the program space's
7141 objfiles.
7142 (jit_inferior_init): Likewise.
7143 (jit_breakpoint_re_set_internal): Likewise. Also change return
7144 type to void.
7145 (jit_breakpoint_re_set): Pass current_program_space to
7146 jit_breakpoint_re_set_internal.
7147
7148 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7149
7150 * jit.h (struct jiter_objfile_data) <cached_code_address,
7151 jit_breakpoint>: Move to here from ...
7152 * jit.c (jit_program_space_data): ... here.
7153 (jiter_objfile_data::~jiter_objfile_data): Update.
7154 (jit_breakpoint_deleted): Update.
7155 (jit_breakpoint_re_set_internal): Update.
7156
7157 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7158
7159 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7160 checks.
7161 (jit_read_descriptor): Remove NULL check.
7162 (jit_event_handler): Add an assertion.
7163
7164 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7165
7166 * jit.h (struct jit_objfile_data): Split into...
7167 (struct jiter_objfile_data): ... this ...
7168 (struct jited_objfile_data): ... and this.
7169 * objfiles.h (struct objfile) <jit_data>: Remove.
7170 <jiter_data, jited_data>: New fields.
7171 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7172 (jiter_objfile_data::~jiter_objfile_data): ... this.
7173 (get_jit_objfile_data): Rename to ...
7174 (get_jiter_objfile_data): ... this.
7175 (add_objfile_entry): Update.
7176 (jit_read_descriptor): Use get_jiter_objfile_data.
7177 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7178 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7179 (jit_inferior_exit_hook): Use objfile's jited_data field.
7180
7181 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7182
7183 * jit.h: Forward-declare `struct minimal_symbol`.
7184 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7185 constructor, destructor, and an objfile* field.
7186 * jit.c (jit_objfile_data): Remove.
7187 (struct jit_objfile_data): Migrate from here to jit.h.
7188 (jit_objfile_data::~jit_objfile_data): New destructor
7189 implementation with code moved from free_objfile_data.
7190 (free_objfile_data): Delete.
7191 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7192 (jit_find_objf_with_entry_addr): Ditto.
7193 (jit_inferior_exit_hook): Ditto.
7194 (_initialize_jit): Remove the call to
7195 register_objfile_data_with_cleanup.
7196 * objfiles.h (struct objfile) <jit_data>: New field.
7197
7198 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7199
7200 * jit.h: Forward-declare `struct objfile`.
7201 (jit_event_handler): Add a second parameter, the JITer objfile.
7202 * jit.c (jit_read_descriptor): Change the signature to take the
7203 JITer objfile as an argument instead of the jit_program_space_data.
7204 (jit_inferior_init): Update the call to jit_read_descriptor.
7205 (jit_event_handler): Use the new JITer objfile argument when calling
7206 jit_read_descriptor.
7207 * breakpoint.c (handle_jit_event): Update the call to
7208 jit_event_handler to pass the JITer objfile.
7209
7210 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7211
7212 * gdbarch.c: Regenerate.
7213 * gdbarch.h: Regenerate.
7214 * gdbarch.sh (handle_segmentation_fault): Remove method.
7215 * infrun.c (handle_segmentation_fault): Remove.
7216 (print_signal_received_reason): Remove call to
7217 handle_segmentation_fault.
7218
7219 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7220
7221 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7222 Rename to sparc64_linux_report_signal_info and add siggnal
7223 argument.
7224 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7225 instead of sparc64_linux_handle_segmentation_fault.
7226
7227 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7228
7229 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7230 i386_linux_report_signal_info instead of
7231 i386_linux_handle_segmentation_fault.
7232 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7233 to i386_linux_report_signal_info and add siggnal argument.
7234 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7235 of i386_linux_handle_segmentation_fault.
7236 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7237 to i386_linux_report_signal_info and add siggnal argument.
7238
7239 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7240
7241 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7242 hook if present.
7243
7244 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7245
7246 * gdbarch.c: Regenerate.
7247 * gdbarch.h: Regenerate.
7248 * gdbarch.sh (report_signal_info): New method.
7249 * infrun.c (print_signal_received_reason): Invoke gdbarch
7250 report_signal_info hook if present.
7251
7252 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7253
7254 * python/py-registers.c : Add 'unordered_map' include.
7255 (gdbpy_new_reggroup): Renamed to...
7256 (gdbpy_get_reggroup): ...this. Update to only create register
7257 group descriptors when needed.
7258 (gdbpy_reggroup_iter_next): Update.
7259
7260 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7261
7262 * python/py-registers.c (gdbpy_register_object_data): New static
7263 global.
7264 (gdbpy_register_object_data_init): New function.
7265 (gdbpy_new_register_descriptor): Renamed to...
7266 (gdbpy_get_register_descriptor): ...this, and update to reuse
7267 existing register descriptors where possible.
7268 (gdbpy_register_descriptor_iter_next): Update.
7269 (gdbpy_initialize_registers): Register new gdbarch data.
7270
7271 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7272
7273 * linux-nat.c (stopped_pids): Make static.
7274
7275 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7276
7277 PR ada/26235
7278 * gdbtypes.c (ada_discrete_type_low_bound,
7279 ada_discrete_type_high_bound): Handle undefined bounds.
7280
7281 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7282
7283 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7284 declaration.
7285 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7286 function.
7287
7288 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7289
7290 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7291 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7292 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7293 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7294 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7295 method.
7296
7297 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7298
7299 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7300 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7301 which are deprecated in Guile 3.0.
7302 * configure.ac (try_guile_versions): Add "guile-3.0".
7303 * configure (try_guile_versions): Regenerate.
7304 * NEWS: Update entry.
7305
7306 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7307 Doug Evans <dje@google.com>
7308
7309 PR gdb/21104
7310 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7311 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7312 USING_GUILE_BEFORE_2_2.
7313 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7314 Change type to 'scm_t_port_type *'.
7315 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7316 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7317 parameter and honor it. Update callers.
7318 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7319 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7320 functions.
7321 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7322 USING_GUILE_BEFORE_2_2.
7323 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7324 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7325 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7326 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7327 and 'SCM_PORT_TYPE'.
7328 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7329 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7330 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7331 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7332 [!USING_GUILE_BEFORE_2_2]: New functions.
7333 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7334 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7335 'gdbscm_memory_port_read'.
7336 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7337 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7338 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7339 function.
7340 (ioscm_init_memory_port): Remove.
7341 (ioscm_init_memory_port_stream): New function
7342 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7343 function.
7344 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7345 Return scm_from_uint (0).
7346 (gdbscm_set_memory_port_read_buffer_size_x)
7347 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7348 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7349 Return scm_from_uint (0).
7350 (gdbscm_set_memory_port_write_buffer_size_x)
7351 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7352 * configure.ac (try_guile_versions): Add "guile-2.2".
7353 * configure: Regenerate.
7354 * NEWS: Add entry.
7355
7356 2020-07-18 Tom Tromey <tom@tromey.com>
7357
7358 * linux-nat.c (linux_multi_process): Remove.
7359 (linux_nat_target::supports_multi_process): Return true.
7360
7361 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7362
7363 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7364 (riscv_lookup_target_description): Return pointer out of
7365 unique_ptr.
7366 * target-descriptions.c (allocate_target_description): Add
7367 comment.
7368 (target_desc_deleter::operator()): Likewise.
7369 * target-descriptions.h (struct target_desc_deleter): Moved to
7370 gdbsupport/tdesc.h.
7371 (target_desc_up): Likewise.
7372
7373 2020-07-17 Tom Tromey <tromey@adacore.com>
7374
7375 * linux-nat.c (linux_nat_target::supports_non_stop)
7376 (linux_nat_target::always_non_stop_p): Use "true".
7377 (linux_nat_target::supports_disable_randomization): Use "true" and
7378 "false".
7379
7380 2020-07-16 Caroline Tice <cmtice@google.com>
7381
7382 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7383 (RNGLIST_HEADER_SIZE64): New constant definition.
7384 (struct dwop_section_names): Add rnglists_dwo.
7385 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7386 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7387 (struct dwo_sections): Add rnglists field.
7388 (read_attribut_reprocess): Add tag parameter.
7389 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7390 (cu_debug_rnglists_section): New function (decl & definition).
7391 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7392 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7393 die whose range is being checked; get rnglist section from
7394 cu_debug_rnglists_section, to get from either objfile or dwo file as
7395 appropriate. Add cases for DW_RLE_base_addressx,
7396 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7397 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7398 test inside if-condition and updating complaint message.
7399 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7400 dwarf2_rnglists_process.
7401 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7402 dwarf2_ranges_process.
7403 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7404 need_ranges_base and update comment appropriately. Also pass die tag
7405 to dwarf2_ranges_read.
7406 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7407 need_ranges_base and update comment appropriately. Also pass die tag
7408 to dwarf2_ranges_process.
7409 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7410 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7411 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7412 need_ranges_base and update comment appropriately. Also pass die tag
7413 to read_attribute_reprocess and dwarf2_ranges_read.
7414 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7415 and update function comment appropriately.
7416 (read_loclist_index): Call read_loclists_rnglists_header instead of
7417 read_loclist_header.
7418 (read_rnglist_index): New function.
7419 (read_attribute_reprocess): Add tag parameter. Add code for
7420 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7421 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7422
7423 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7424
7425 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7426 being resolved.
7427
7428 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7429
7430 * arch-utils.c (show_architecture): Update formatting of messages.
7431
7432 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7433
7434 * gdbtypes.h (struct type) <bounds>: Handle array and string
7435 types.
7436 * ada-lang.c (assign_aggregate): Use type::bounds on
7437 array/string type.
7438 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7439 * c-varobj.c (c_number_of_children): Likewise.
7440 (c_describe_child): Likewise.
7441 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7442 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7443 (f_type_print_base): Likewise.
7444 * f-valprint.c (f77_array_offset_tbl): Likewise.
7445 (f77_get_upperbound): Likewise.
7446 (f77_print_array_1): Likewise.
7447 * guile/scm-type.c (gdbscm_type_range): Likewise.
7448 * m2-typeprint.c (m2_array): Likewise.
7449 (m2_is_long_set_of_type): Likewise.
7450 * m2-valprint.c (get_long_set_bounds): Likewise.
7451 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7452 * python/py-type.c (typy_range): Likewise.
7453 * rust-lang.c (rust_internal_print_type): Likewise.
7454 * type-stack.c (type_stack::follow_types): Likewise.
7455 * valarith.c (value_subscripted_rvalue): Likewise.
7456 * valops.c (value_cast): Likewise.
7457
7458 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7459
7460 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7461 callers to use the equivalent accessor methods.
7462
7463 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7466 (struct type) <bit_stride>: New method.
7467 (TYPE_BIT_STRIDE): Remove.
7468 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7469
7470 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7471
7472 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7473 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7474 callers to use the equivalent accessor methods instead.
7475
7476 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7477
7478 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7479 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7480 callers to use the equivalent accessor methods instead.
7481
7482 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7483
7484 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7485 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7486 to use dynamic_prop::kind.
7487
7488 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7489
7490 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7491 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7492 to get the bound property's kind and check against
7493 PROP_UNDEFINED.
7494
7495 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7496
7497 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7498 all callers to use type::range_bounds followed by
7499 dynamic_prop::{low,high}.
7500
7501 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7502
7503 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7504 const_val, set_const_val, baton, set_locexpr, set_loclist,
7505 set_addr_offset, variant_parts, set_variant_parts,
7506 original_type, set_original_type>: New methods.
7507 <kind>: Rename to...
7508 <m_kind>: ... this. Update all users to use the new methods
7509 instead.
7510 <data>: Rename to...
7511 <m_data>: ... this. Update all users to use the new methods
7512 instead.
7513
7514 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7515
7516 * gdbtypes.c (get_discrete_bounds): Return failure if
7517 the range type's bounds are not both defined and constant
7518 values.
7519 (get_array_bounds): Update comment. Remove undefined bound check.
7520
7521 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7522
7523 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7524 the type::bounds method directly.
7525
7526 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7527
7528 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7529 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7530 are used to set the range type's bounds to use set_bounds.
7531
7532 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7533
7534 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7535
7536 2020-07-10 Pedro Alves <pedro@palves.net>
7537
7538 * gdbthread.h (inferior_ref): Define.
7539 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7540 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7541 * thread.c
7542 (scoped_restore_current_thread::restore):
7543 Adjust to gdb::ref_ptr.
7544 (scoped_restore_current_thread::~scoped_restore_current_thread):
7545 Remove manual decref handling.
7546 (scoped_restore_current_thread::scoped_restore_current_thread):
7547 Adjust to use
7548 inferior_ref::new_reference/thread_info_ref::new_reference.
7549 Incref the thread before calling get_frame_id instead of after.
7550 Let TARGET_CLOSE_ERROR propagate.
7551
7552 2020-07-10 Pedro Alves <pedro@palves.net>
7553
7554 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7555 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7556 NOT_AVAILABLE_ERROR.
7557 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7558 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7559
7560 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7561 Pedro Alves <pedro@palves.net>
7562
7563 PR gdb/26199
7564 * infrun.c (threads_are_resumed_pending_p): Delete.
7565 (do_target_wait): Remove threads_are_executing and
7566 threads_are_resumed_pending_p checks from the inferior_matches
7567 lambda. Update comments.
7568
7569 2020-07-10 Pedro Alves <pedro@palves.net>
7570
7571 PR gdb/26199
7572 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7573 executing threads.
7574
7575 2020-07-10 Pedro Alves <pedro@palves.net>
7576
7577 PR gdb/26199
7578 * infrun.c (handle_no_resumed): Handle multiple targets.
7579
7580 2020-07-10 Pedro Alves <pedro@palves.net>
7581
7582 PR gdb/26199
7583 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7584 target_is_async_p.
7585
7586 2020-07-10 Pedro Alves <pedro@palves.net>
7587
7588 PR gdb/26199
7589 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7590 threads, not all threads.
7591
7592 2020-07-10 Pedro Alves <pedro@palves.net>
7593
7594 PR gdb/26199
7595 * remote.c (remote_target::open_1): Pass remote target pointer as
7596 data to create_async_event_handler.
7597 (remote_async_inferior_event_handler): Mark async event handler
7598 before returning if the remote target still has either pending
7599 events or unacknowledged notifications.
7600
7601 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7602
7603 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7604 declaration.
7605 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7606 function.
7607
7608 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7609
7610 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7611 inferior_ptid.
7612
7613 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7614
7615 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7616 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7617 AT_FREEBSD_PS_STRINGS.
7618
7619 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7620
7621 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7622 of debugfile path on Windows.
7623
7624 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7625
7626 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7627 argument to 'data'.
7628
7629 2020-07-08 Tom Tromey <tromey@adacore.com>
7630
7631 * ada-lang.c (ada_exception_message_1): Use read_memory.
7632
7633 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7634
7635 PR python/22748
7636 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7637 special handling for inline frames.
7638 * findvar.c (value_of_register_lazy): Skip inline frames when
7639 creating lazy register values.
7640 * frame.c (frame_id_computed_p): Delete definition.
7641 * frame.h (frame_id_computed_p): Delete declaration.
7642
7643 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7644
7645 * NEWS: Mention additions to Python API.
7646 * python/py-arch.c (archpy_register_groups): New function.
7647 (arch_object_methods): Add 'register_groups' method.
7648 * python/py-registers.c (reggroup_iterator_object): New struct.
7649 (reggroup_object): New struct.
7650 (gdbpy_new_reggroup): New function.
7651 (gdbpy_reggroup_to_string): New function.
7652 (gdbpy_reggroup_name): New function.
7653 (gdbpy_reggroup_iter): New function.
7654 (gdbpy_reggroup_iter_next): New function.
7655 (gdbpy_new_reggroup_iterator): New function
7656 (gdbpy_initialize_registers): Register new types.
7657 (reggroup_iterator_object_type): Define new Python type.
7658 (gdbpy_reggroup_getset): New static global.
7659 (reggroup_object_type): Define new Python type.
7660 * python/python-internal.h
7661
7662 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7663
7664 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7665 * python/py-arch.c (archpy_registers): New function.
7666 (arch_object_methods): Add 'registers' method.
7667 * python/py-registers.c: New file.
7668 * python/python-internal.h
7669 (gdbpy_new_register_descriptor_iterator): Declare.
7670 (gdbpy_initialize_registers): Declare.
7671 * python/python.c (do_start_initialization): Call
7672 gdbpy_initialize_registers.
7673 * NEWS: Mention additions to the Python API.
7674
7675 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7676
7677 * NEWS: Mention new Python API method.
7678 * python/py-unwind.c (pending_framepy_architecture): New function.
7679 (pending_frame_object_methods): Add architecture method.
7680
7681 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7682
7683 * gdbarch.c: Regenerate.
7684 * gdbarch.h: Regenerate.
7685 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7686 (gdbarch_data): Use internal_error for the case where
7687 deprecated_set_gdbarch_data was originally needed.
7688 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7689 and use passed in obstack.
7690 (libunwind_frame_set_descr): Should no longer get back NULL from
7691 gdbarch_data.
7692 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7693 type.
7694 * user-regs.c (user_regs_init): Update parameters, and use passed
7695 in obstack.
7696 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7697 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7698
7699 2020-07-06 Tom de Vries <tdevries@suse.de>
7700
7701 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7702 End-Of-Sequence in lte_is_less_than.
7703 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7704 "gdb: Don't reorder line table entries too much when sorting".
7705
7706 2020-07-06 Tom de Vries <tdevries@suse.de>
7707
7708 PR tui/26205
7709 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7710
7711 2020-07-05 Tom de Vries <tdevries@suse.de>
7712
7713 PR build/26187
7714 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7715 std::uncaught_exceptions instead of deprecated
7716 std::uncaught_exception.
7717
7718 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7719
7720 * macroexp.h (macro_stringify): Return
7721 gdb::unique_xmalloc_ptr<char>.
7722 * macroexp.c (macro_stringify): Likewise.
7723 * macrotab.c (fixup_definition): Update.
7724
7725 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7726
7727 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7728 (lex_one_token): Update.
7729 * macroexp.c (struct macro_buffer) <release>: Return
7730 gdb::unique_xmalloc_ptr<char>.
7731 (macro_stringify): Update.
7732 (macro_expand): Update.
7733 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7734 * macroexp.h (macro_expand_next): Likewise.
7735
7736 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7737
7738 * macroexp.h (macro_lookup_ftype): Remove.
7739 (macro_expand, macro_expand_once, macro_expand_next): Remove
7740 lookup function parameters, add scope parameter.
7741 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7742 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7743 * macroscope.h (standard_macro_lookup): Change parameter type
7744 to macro_scope.
7745 * macroscope.c (standard_macro_lookup): Likewise.
7746 * c-exp.y (lex_one_token): Update.
7747 * macrocmd.c (macro_expand_command): Likewise.
7748 (macro_expand_once_command): Likewise.
7749
7750 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7751
7752 * inf-loop.c (inferior_event_handler): Remove client_data param.
7753 * inf-loop.h (inferior_event_handler): Likewise.
7754 * infcmd.c (step_1): Adjust.
7755 * infrun.c (proceed): Adjust.
7756 (fetch_inferior_event): Remove client_data param.
7757 (infrun_async_inferior_event_handler): Adjust.
7758 * infrun.h (fetch_inferior_event): Remove `void *` param.
7759 * linux-nat.c (handle_target_event): Adjust.
7760 * record-btrace.c (record_btrace_handle_async_inferior_event):
7761 Adjust.
7762 * record-full.c (record_full_async_inferior_event_handler):
7763 Adjust.
7764 * remote.c (remote_async_inferior_event_handler): Adjust.
7765
7766 2020-07-01 Tom Tromey <tom@tromey.com>
7767
7768 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7769 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7770
7771 2020-07-01 Tom Tromey <tom@tromey.com>
7772
7773 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7774 tui_gen_win_info.
7775 (tui_win_info::make_window): Merge with
7776 tui_gen_win_info::make_window.
7777 (tui_win_info::make_visible): Move from tui_gen_win_info.
7778 * tui/tui-win.c (tui_win_info::max_width): Move from
7779 tui_gen_win_info.
7780 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7781 type.
7782 <window_factory>: Likewise.
7783 * tui/tui-layout.c (tui_win_info::resize): Move from
7784 tui_gen_win_info.
7785 (make_standard_window): Change return type.
7786 (get_locator_window, tui_get_window_by_name): Likewise.
7787 (tui_layout_window::apply): Remove a cast.
7788 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7789 (struct tui_win_info): Merge with tui_gen_win_info.
7790 (struct tui_gen_win_info): Remove.
7791
7792 2020-07-01 Tom Tromey <tom@tromey.com>
7793
7794 * tui/tui-stack.h (struct tui_locator_window): Derive from
7795 tui_win_info.
7796 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7797 <can_box>: New method.
7798
7799 2020-07-01 Tom Tromey <tom@tromey.com>
7800
7801 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7802
7803 2020-07-01 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui-regs.c (tui_data_window::display_registers_from)
7806 (tui_data_window::display_registers_from)
7807 (tui_data_window::first_data_item_displayed)
7808 (tui_data_window::delete_data_content_windows): Update.
7809 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7810 Remove.
7811 (tui_data_window::check_register_values): Update.
7812 (tui_data_item_window::rerender): Add parameters. Update.
7813 (tui_data_item_window::refresh_window): Remove.
7814 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7815 virtual.
7816 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7817 tui_gen_win_info.
7818 <refresh_window, max_height, min_height>: Remove.
7819 <rerender>: Add parameters.
7820 <x, y, visible>: New members.
7821 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7822 <m_item_width>: New member.
7823
7824 2020-07-01 Tom Tromey <tom@tromey.com>
7825
7826 * tui/tui-regs.c (tui_data_window::show_register_group)
7827 (tui_data_window::check_register_values): Update.
7828 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7829 from item_no.
7830
7831 2020-07-01 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7834 useless "if".
7835
7836 2020-07-01 Tom Tromey <tom@tromey.com>
7837
7838 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7839 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7840
7841 2020-07-01 Tom Tromey <tom@tromey.com>
7842
7843 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7844 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7845 (struct tui_line_or_address): Move from tui-data.h.
7846 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7847 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7848 (tui_cmd_window, tui_source_window_base, tui_source_window)
7849 (tui_disasm_window): Don't declare.
7850 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7851 to tui-winsource.h.
7852 (SINGLE_KEY): Move to tui-stack.c.
7853
7854 2020-07-01 Tom Tromey <tom@tromey.com>
7855
7856 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7857 std::string.
7858 * tui/tui-regs.c (class tab_expansion_file): New.
7859 (tab_expansion_file::write): New method.
7860 (tui_register_format): Change return type. Use
7861 tab_expansion_file.
7862 (tui_get_register, tui_data_window::display_registers_from)
7863 (tui_data_item_window::rerender): Update.
7864 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7865 * tui/tui-io.c (tui_expand_tabs): Remove.
7866
7867 2020-07-01 Tom Tromey <tom@tromey.com>
7868
7869 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7870
7871 2020-07-01 Fangrui Song <maskray@google.com>
7872
7873 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7874
7875 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7876
7877 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7878 forms for DW_AT_associated and DW_AT_allocated attributes,
7879 which is already checked in function attr_to_dynamic_prop.
7880
7881 2020-06-30 Tom Tromey <tromey@adacore.com>
7882
7883 * dwarf2/read.c (quirk_rust_enum): Correctly call
7884 alloc_rust_variant for default-less enum.
7885
7886 2020-06-30 Tom Tromey <tromey@adacore.com>
7887
7888 PR build/26183:
7889 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7890 gdb::to_string.
7891
7892 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7893
7894 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7895 * gdbarch.h: Re-generate.
7896
7897 2020-06-28 Tom Tromey <tom@tromey.com>
7898
7899 * command.h (cmd_types): Remove.
7900 (cmd_type): Don't declare.
7901 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7902 typedef.
7903 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7904 * cli/cli-decode.c (cmd_type): Remove.
7905
7906 2020-06-27 Pedro Alves <palves@redhat.com>
7907
7908 * fork-child.c (prefork_hook): Adjust.
7909 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7910 Delete.
7911 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7912 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7913 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7914 Remove declarations.
7915 (struct inferior) <set_tty, tty>: New methods.
7916 (struct inferior) <terminal>: Rename to ...
7917 (struct inferior) <m_terminal>: ... this and make private.
7918 * main.c (captured_main_1): Adjust.
7919 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7920 (mi_cmd_inferior_tty_show): Adjust.
7921 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7922 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7923
7924 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7925
7926 * configure.ac: Add --enable-libctf: handle --disable-static
7927 properly.
7928 * acinclude.m4: sinclude ../config/enable.m4.
7929 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7930 (LIBCTF): Substitute in.
7931 (CTF_DEPS): New, likewise.
7932 (CLIBS): libctf needs symbols from libbfd: move earlier.
7933 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7934 flags.
7935 * ctfread.c: Surround in ENABLE_LIBCTF.
7936 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7937 * configure: Regenerate.
7938 * config.in: Likewise.
7939
7940 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7941
7942 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7943
7944 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7945
7946 * inferior.h (struct inferior) <terminal>: Change type to
7947 gdb::unique_xmalloc_ptr<char>.
7948 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7949 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7950 field, adjust to unique pointer.
7951 (get_inferior_io_terminal): Adjust to unique pointer.
7952
7953 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7956 registers, not just the known core set of registers.
7957
7958 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7959
7960 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7961 fflags, frm, and fcsr registers.
7962 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7963 restore groups.
7964 (riscv_tdesc_unknown_reg): New function.
7965 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7966 tdesc_use_registers.
7967 * riscv-tdep.h (struct gdbarch_tdep): Add
7968 unknown_csrs_first_regnum, unknown_csrs_count,
7969 duplicate_fflags_regnum, duplicate_frm_regnum, and
7970 duplicate_fcsr_regnum fields.
7971
7972 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7973
7974 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7975 callback, use the callback (when not null) to help number unknown
7976 registers.
7977 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7978 (tdesc_use_registers): Add extra parameter to declaration.
7979
7980 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7981
7982 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7983 in the file.
7984 (class riscv_pending_register_alias): Likewise.
7985 (riscv_register_feature::register_info): Change 'required_p' field
7986 to 'required', and change its type. Add 'check' member function.
7987 (riscv_register_feature::register_info::check): Define new member
7988 function.
7989 (riscv_xreg_feature): Change initialisation of 'required' field.
7990 (riscv_freg_feature): Likewise.
7991 (riscv_virtual_feature): Likewise.
7992 (riscv_csr_feature): Likewise.
7993 (riscv_check_tdesc_feature): Take extra parameter, the csr
7994 tdesc_feature, rewrite the function to use the new
7995 riscv_register_feature::register_info::check function.
7996 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7997
7998 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7999
8000 * features/Makefile: Remove all references to the deleted files
8001 below.
8002 * features/riscv/32bit-csr.c: Deleted.
8003 * features/riscv/32bit-csr.xml: Deleted.
8004 * features/riscv/64bit-csr.c: Deleted.
8005 * features/riscv/64bit-csr.xml: Deleted.
8006 * features/riscv/rebuild-csr-xml.sh: Deleted.
8007
8008 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8009
8010 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8011 whitespace error for declaration of names member variable.
8012 (struct riscv_register_feature): Add new prefer_first_name member
8013 variable, and fix whitespace error in declaration of registers.
8014 (riscv_xreg_feature): Initialize prefer_first_name field.
8015 (riscv_freg_feature): Likewise.
8016 (riscv_virtual_feature): Likewise.
8017 (riscv_csr_feature): Likewise.
8018 (riscv_register_name): Expand on comments. Remove register name
8019 modifications for CSR and virtual registers.
8020
8021 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8022
8023 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8024 errors.
8025
8026 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8027
8028 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8029 riscv-opc.h.
8030 (class riscv_pending_register_alias): New class.
8031 (riscv_check_tdesc_feature): Take vector of pending aliases and
8032 populate it as appropriate.
8033 (riscv_setup_register_aliases): Delete.
8034 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8035 to riscv_check_tdesc_feature in all cases. Use the vector to
8036 create the register aliases.
8037
8038 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8039
8040 * sol2-tdep.c (sol2_static_transform_name): Remove.
8041 (sol2_init_abi): Don't register it.
8042 * gdbarch.sh (static_transform_name): Remove.
8043 * gdbarch.c, gdbarch.h: Regenerate.
8044
8045 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8046 gdbarch_static_transform_name.
8047 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8048 * stabsread.c (define_symbol) <'X'>: Remove.
8049 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8050 handling.
8051 <'V'>: Likewise.
8052 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8053 <'S'>: Remove call to gdbarch_static_transform_name.
8054
8055 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8056
8057 * procfs.c (procfs_pre_trace): New function.
8058 (procfs_target::create_inferior): Pass it to fork_inferior.
8059
8060 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8061
8062 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8063 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8064 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8065 sol2-tdep.o, sparc-sol2-tdep.o.
8066 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8067 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8068 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8069 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8070
8071 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8072
8073 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8074 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8075 Call sol2_init_abi.
8076 Remove calls to set_gdbarch_skip_solib_resolver,
8077 set_gdbarch_core_pid_to_str.
8078 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8079 (i386_sol2_static_transform_name): Remove.
8080 (i386_sol2_init_abi): Call sol2_init_abi.
8081 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8082 set_gdbarch_static_transform_name,
8083 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8084 Use sol2_sigtramp_p.
8085 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8086 (sol2_sigtramp_p): New function.
8087 (sol2_static_transform_name): New function.
8088 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8089 (sol2_init_abi): New function.
8090 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8091 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8092 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8093 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8094 (sparc_sol2_static_transform_name): Remove.
8095 (sparc32_sol2_init_abi): Call sol2_init_abi.
8096 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8097 set_gdbarch_static_transform_name,
8098 set_gdbarch_skip_solib_resolver,
8099 set_gdbarch_core_pid_to_str.
8100 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8101 (sparc_sol2_static_transform_name): Remove
8102 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8103 call sol2_sigtramp_p.
8104 (sparc64_sol2_init_abi): Call sol2_init_abi.
8105 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8106 set_gdbarch_static_transform_name,
8107 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8108
8109 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8110
8111 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8112 * exec.c (validate_exec_file): If from_tty, set both
8113 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8114 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8115 and from_tty, unconditionally ask a confirmation.
8116
8117 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8118
8119 * target-descriptions.c (tdesc_architecture_name): Protect against
8120 NULL pointer dereference.
8121 (maint_print_xml_tdesc_cmd): New function.
8122 (_initialize_target_descriptions): Register new 'maint print
8123 xml-tdesc' command and give it the filename completer.
8124 * NEWS: Mention new 'maint print xml-tdesc' command.
8125
8126 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * target-descriptions.c (class tdesc_compatible_info): New class.
8129 (struct target_desc): Change type of compatible vector.
8130 (tdesc_compatible_p): Update for change in type of
8131 target_desc::compatible.
8132 (tdesc_compatible_info_list): New function.
8133 (tdesc_compatible_info_arch_name): New function.
8134 (tdesc_add_compatible): Update for change in type of
8135 target_desc::compatible.
8136 (print_c_tdesc::visit_pre): Likewise.
8137
8138 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8139
8140 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8141 whitespace to underscore.
8142 (maint_print_c_tdesc_cmd): Use fake filename for target
8143 descriptions that came from the target.
8144 (_initialize_target_descriptions): Add filename command completion
8145 for 'maint print c-tdesc'.
8146
8147 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8148
8149 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8150 lines.
8151
8152 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8153
8154 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8155 lines.
8156 (dwarf2_find_location_expression): Likewise.
8157 (call_site_parameter_matches): Likewise.
8158 (dwarf2_compile_expr_to_ax): Likewise.
8159 (disassemble_dwarf_expression): Likewise.
8160 (loclist_describe_location): Likewise.
8161
8162 2020-06-23 Pedro Alves <palves@redhat.com>
8163
8164 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8165 progspace-and-thread.h. Include scoped-mock-context.h instead.
8166 (register_to_value_test): Use scoped_mock_context.
8167 * regcache.c: Include "scoped-mock-context.h".
8168 (cooked_read_test): Don't error out if a target is already pushed.
8169 Use scoped_mock_context. Adjust.
8170 * scoped-mock-context.h: New file.
8171
8172 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8175 initializer.
8176 (ada_language::is_string_type_p): New member function.
8177 * c-lang.c (c_language_data): Delete la_is_string_type_p
8178 initializer.
8179 (cplus_language_data): Likewise.
8180 (asm_language_data): Likewise.
8181 (minimal_language_data): Likewise.
8182 * d-lang.c (d_language_data): Likewise.
8183 * f-lang.c (f_is_string_type_p): Delete function, implementation
8184 moved to f_language::is_string_type_p.
8185 (f_language_data): Delete la_is_string_type_p initializer.
8186 (f_language::is_string_type_p): New member function,
8187 implementation from f_is_string_type_p.
8188 * go-lang.c (go_is_string_type_p): Delete function, implementation
8189 moved to go_language::is_string_type_p.
8190 (go_language_data): Delete la_is_string_type_p initializer.
8191 (go_language::is_string_type_p): New member function,
8192 implementation from go_is_string_type_p.
8193 * language.c (language_defn::is_string_type_p): Define new member
8194 function.
8195 (default_is_string_type_p): Make static, add comment copied from
8196 header file.
8197 (unknown_language_data): Delete la_is_string_type_p initializer.
8198 (unknown_language::is_string_type_p): New member function.
8199 (auto_language_data): Delete la_is_string_type_p initializer.
8200 (auto_language::is_string_type_p): New member function.
8201 * language.h (language_data): Delete la_is_string_type_p field.
8202 (language_defn::is_string_type_p): Declare new function.
8203 (default_is_string_type_p): Delete desclaration, move comment to
8204 definition.
8205 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8206 moved to m2_language::is_string_type_p.
8207 (m2_language_data): Delete la_is_string_type_p initializer.
8208 (m2_language::is_string_type_p): New member function,
8209 implementation from m2_is_string_type_p.
8210 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8211 initializer.
8212 * opencl-lang.c (opencl_language_data): Likewise.
8213 * p-lang.c (pascal_is_string_type_p): Delete function,
8214 implementation moved to pascal_language::is_string_type_p.
8215 (pascal_language_data): Delete la_is_string_type_p initializer.
8216 (pascal_language::is_string_type_p): New member function,
8217 implementation from pascal_is_string_type_p.
8218 * rust-lang.c (rust_is_string_type_p): Delete function,
8219 implementation moved to rust_language::is_string_type_p.
8220 (rust_language_data): Delete la_is_string_type_p initializer.
8221 (rust_language::is_string_type_p): New member function,
8222 implementation from rust_is_string_type_p.
8223 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8224 is_string_type_p.
8225
8226 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8227
8228 * ada-lang.c (ada_language_data): Delete la_print_typedef
8229 initializer.
8230 (ada_language::print_typedef): New member function.
8231 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8232 (cplus_language_data): Likewise.
8233 (asm_language_data): Likewise.
8234 (minimal_language_data): Likewise.
8235 * d-lang.c (d_language_data): Likewise.
8236 * f-lang.c (f_language_data): Likewise.
8237 (f_language::print_typedef): New member function.
8238 * go-lang.c (go_language_data): Delete la_print_typedef
8239 initializer.
8240 * language.c (language_defn::print_typedef): Define member
8241 function.
8242 (unknown_language_data): Delete la_print_typedef initializer.
8243 (unknown_language::print_typedef): New member function.
8244 (auto_language_data): Delete la_print_typedef initializer.
8245 (auto_language::print_typedef): New member function.
8246 * language.h (language_data): Delete la_print_typedef field.
8247 (language_defn::print_typedef): Declare new member function.
8248 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8249 (default_print_typedef): Delete declaration.
8250 * m2-lang.c (m2_language_data): Delete la_print_typedef
8251 initializer.
8252 (m2_language::print_typedef): New member function.
8253 * objc-lang.c (objc_language_data): Delete la_print_typedef
8254 initializer.
8255 * opencl-lang.c (opencl_language_data): Likewise.
8256 * p-lang.c (pascal_language_data): Likewise.
8257 (pascal_language::print_typedef): New member function.
8258 * rust-lang.c (rust_print_typedef): Delete function,
8259 implementation moved to rust_language::print_typedef.
8260 (rust_language): Delete la_print_typedef initializer.
8261 (rust_language::print_typedef): New member function,
8262 implementation from rust_print_typedef.
8263 * typeprint.c (default_print_typedef): Delete.
8264
8265 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8266
8267 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8268 (ada_language::printstr): New member function.
8269 * c-lang.c (c_language_data): Delete la_printstr initializer.
8270 (cplus_language_data): Likewise.
8271 (asm_language_data): Likewise.
8272 (minimal_language_data): Likewise.
8273 * d-lang.c (d_language_data): Likewise.
8274 * f-lang.c (f_printstr): Rename to f_language::printstr.
8275 (f_language_data): Delete la_printstr initializer.
8276 (f_language::printstr): New member function, implementation from
8277 f_printstr.
8278 * go-lang.c (go_language_data): Delete la_printstr initializer.
8279 * language.c (language_defn::printstr): Define new member
8280 function.
8281 (unk_lang_printstr): Delete.
8282 (unknown_language_data): Delete la_printstr initializer.
8283 (unknown_language::printstr): New member function.
8284 (auto_language_data): Delete la_printstr initializer.
8285 (auto_language::printstr): New member function.
8286 * language.h (language_data): Delete la_printstr field.
8287 (language_defn::printstr): Declare new member function.
8288 (LA_PRINT_STRING): Update call to printstr.
8289 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8290 (m2_language_data): Delete la_printstr initializer.
8291 (m2_language::printstr): New member function, implementation from
8292 m2_printstr.
8293 * objc-lang.c (objc_language_data): Delete la_printstr
8294 initializer.
8295 * opencl-lang.c (opencl_language_data): Likewise.
8296 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8297 (pascal_language_data): Delete la_printstr initializer.
8298 (pascal_language::printstr): New member function, implementation
8299 from pascal_printstr.
8300 * p-lang.h (pascal_printstr): Delete declaration.
8301 * rust-lang.c (rust_printstr): Update header comment.
8302 (rust_language_data): Delete la_printstr initializer.
8303 (rust_language::printstr): New member function.
8304
8305 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8306
8307 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8308 (ada_language::printchar): New member function.
8309 * c-lang.c (c_language_data): Delete la_printchar initializer.
8310 (cplus_language_data): Likewise.
8311 (asm_language_data): Likewise.
8312 (minimal_language_data): Likewise.
8313 * d-lang.c (d_language_data): Likewise.
8314 * f-lang.c (f_printchar): Rename to f_language::printchar.
8315 (f_language_data): Delete la_printchar initializer.
8316 (f_language::printchar): New member function, implementation from
8317 f_printchar.
8318 * go-lang.c (go_language_data): Delete la_printchar initializer.
8319 * language.c (unk_lang_printchar): Delete.
8320 (language_defn::printchar): Define new member function.
8321 (unknown_language_data): Delete la_printchar initializer.
8322 (unknown_language::printchar): New member function.
8323 (auto_language_data): Delete la_printchar initializer.
8324 (auto_language::printchar): New member function.
8325 * language.h (language_data): Delete la_printchar field.
8326 (language_defn::printchar): Declare new member function.
8327 (LA_PRINT_CHAR): Update call to printchar.
8328 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8329 (m2_language::printchar): New member function.
8330 * objc-lang.c (objc_language_data): Delete la_printchar
8331 initializer.
8332 * opencl-lang.c (opencl_language_data): Likewise.
8333 * p-lang.c (pascal_language_data): Delete la_printchar
8334 initializer.
8335 (pascal_language::printchar): New member function.
8336 * rust-lang.c (rust_printchar): Rename to
8337 rust_language::printchar.
8338 (rust_language_data): Delete la_printchar initializer.
8339 (rust_language::printchar): New member function, implementation
8340 from rust_printchar.
8341
8342 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8343
8344 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8345 (ada_language_data): Delete la_emitchar initializer.
8346 (ada_language::emitchar): New member function, implementation from
8347 emit_char.
8348 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8349 (cplus_language_data): Likewise.
8350 (asm_language_data): Likewise.
8351 (minimal_language_data): Likewise.
8352 * d-lang.c (d_language_data): Likewise.
8353 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8354 (f_language_data): Delete la_emitchar initializer.
8355 (f_language::emitchar): New member function, implementation from
8356 f_emit_char.
8357 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8358 * language.c (unk_lang_emit_char): Delete.
8359 (language_defn::emitchar): New member function definition.
8360 (unknown_language_data): Delete la_emitchar initializer.
8361 (unknown_language::emitchar): New member function.
8362 (auto_language_data): Delete la_emitchar initializer.
8363 (auto_language::emitchar): New member function.
8364 * language.h (language_data): Delete la_emitchar field.
8365 (language_defn::emitchar): New member field declaration.
8366 (LA_EMIT_CHAR): Update call to emitchar.
8367 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8368 (m2_language_data): Delete la_emitchar initializer.
8369 (m2_language::emitchar): New member function, implementation from
8370 m2_emit_char.
8371 * objc-lang.c (objc_language_data): Delete la_emitchar
8372 initializer.
8373 * opencl-lang.c (opencl_language_data): Likewise.
8374 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8375 (pascal_language_data): Delete la_emitchar initializer.
8376 (pascal_language::emitchar): New member function, implementation
8377 from pascal_emit_char.
8378 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8379 (rust_language_data): Delete la_emitchar initializer.
8380 (rust_language::emitchar): New member function, implementation
8381 from rust_emitchar.
8382
8383 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8384
8385 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8386 (ada_language_data): Delete la_post_parser initializer.
8387 (ada_language::post_parser): New member function.
8388 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8389 (cplus_language_data): Likewise.
8390 (asm_language_data): Likewise.
8391 (minimal_language_data): Likewise.
8392 * d-lang.c (d_language_data): Likewise.
8393 * f-lang.c (f_language_data): Likewise.
8394 * go-lang.c (go_language_data): Likewise.
8395 * language.c (unknown_language_data): Likewise.
8396 (auto_language_data): Likewise.
8397 * language.h (language_data): Delete la_post_parser field.
8398 (language_defn::post_parser): New member function.
8399 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8400 * objc-lang.c (objc_language_data): Likewise.
8401 * opencl-lang.c (opencl_language_data): Likewise.
8402 * p-lang.c (pascal_language_data): Likewise.
8403 * parse.c (parse_exp_in_context): Update call to post_parser.
8404 (null_post_parser): Delete definition.
8405 * parser-defs.h (null_post_parser): Delete declaration.
8406 * rust-lang.c (rust_language_data): Delete la_post_parser
8407 initializer.
8408
8409 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8410
8411 * ada-lang.c (parse): Rename to ada_language::parser.
8412 (ada_language_data): Delete la_parser initializer.
8413 (ada_language::parser): New member function, implementation from
8414 parse.
8415 * c-lang.c (c_language_data): Delete la_parser initializer.
8416 (cplus_language_data): Likewise.
8417 (asm_language_data): Likewise.
8418 (minimal_language_data): Likewise.
8419 * d-lang.c (d_language_data): Likewise.
8420 (d_language::parser): New member function.
8421 * f-lang.c (f_language_data): Delete la_parser initializer.
8422 (f_language::parser): New member function.
8423 * go-lang.c (go_language_data): Delete la_parser initializer.
8424 (go_language::parser): New member function.
8425 * language.c (unk_lang_parser): Delete.
8426 (language_defn::parser): Define new member function.
8427 (unknown_language_data): Delete la_parser initializer.
8428 (unknown_language::parser): New member function.
8429 (auto_language_data): Delete la_parser initializer.
8430 (auto_language::parser): New member function.
8431 * language.h (language_data): Delete la_parser field.
8432 (language_defn::parser): Declare new member function.
8433 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8434 (m2_language::parser): New member function.
8435 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8436 * opencl-lang.c (opencl_language_data): Likewise.
8437 * p-lang.c (pascal_language_data): Likewise.
8438 (pascal_language::parser): New member function.
8439 * parse.c (parse_exp_in_context): Update call to parser.
8440 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8441 (rust_language::parser): New member function.
8442
8443 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8444
8445 * top.c (print_gdb_configuration): Print --with-python-libdir
8446 configuration value.
8447
8448 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8449
8450 * NEWS: Mention change to the alias command.
8451
8452 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8453
8454 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8455 (alias_command_completer)
8456 (make_alias_options_def_group): New functions.
8457 (alias_opts, alias_option_defs): New struct and array.
8458 (alias_usage_error): Update usage.
8459 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8460 Use option framework.
8461 (_initialize_cli_cmds): Update alias command help.
8462 Update aliases command help.
8463 (show_user):
8464 Add NULL for new default_args lookup_cmd argument.
8465 (valid_command_p): Rename to validate_aliased_command.
8466 Add NULL for new default_args lookup_cmd argument. Verify that the
8467 aliased_command has no default args.
8468 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8469 (lookup_cmd_1, lookup_cmd): New argument default_args.
8470 (add_alias_cmd):
8471 Add NULL for new default_args lookup_cmd argument.
8472 (print_help_for_command): Show default args under the layout
8473 alias some_alias = some_aliased_cmd some_alias_default_arg.
8474 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8475 xfree default_args in destructor.
8476 * cli/cli-script.c (process_next_line, do_define_command):
8477 Add NULL for new default_args lookup_cmd argument.
8478 * command.h: Declare new default_args argument in lookup_cmd
8479 and lookup_cmd_1.
8480 * completer.c (complete_line_internal_1):
8481 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8482 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8483 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8484 Likewise.
8485 * infcmd.c (_initialize_infcmd): Likewise.
8486 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8487 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8488 * python/py-param.c (add_setshow_generic): Likewise.
8489 * remote.c (_initialize_remote): Likewise.
8490 * top.c (execute_command): Prepend default_args if command has some.
8491 (set_verbose):
8492 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8493 * tracepoint.c (validate_actionline, encode_actions_1):
8494 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8495
8496 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8497
8498 * jit.c (jit_read_descriptor): Use bool as the return type.
8499 (jit_breakpoint_re_set_internal): Use bool as the return type.
8500 Invert the return value logic; return true if the jit breakpoint
8501 has been successfully initialized.
8502 (jit_inferior_init): Update the call to
8503 jit_breakpoint_re_set_internal.
8504
8505 2020-06-22 Pedro Alves <palves@redhat.com>
8506
8507 PR gdb/25939
8508 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8509 Use the current inferior instead. Don't return
8510 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8511 wait again.
8512 * sol-thread.c (sol_thread_target::wait): Don't reference
8513 inferior_ptid.
8514 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8515 (sol_update_thread_list_callback): Use the current inferior's pid
8516 instead of inferior_ptid.
8517
8518 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8519
8520 * procfs.c: Cleanup many comments.
8521
8522 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8523 (AFTER_WATCHFLAG): Replace by value.
8524
8525 (MAIN_PROC_NAME_FORMAT): Inline ...
8526 (create_procinfo): ... here.
8527
8528 (procfs_debug_inferior): Remove SYS_exec handling.
8529 (syscall_is_exec): Likewise.
8530 (procfs_set_exec_trap): Likewise.
8531
8532 (syscall_is_lwp_exit): Inline in callers.
8533 (syscall_is_exit): Likewise.
8534 (syscall_is_exec): Likewise.
8535 (syscall_is_lwp_create): Likewise.
8536
8537 (invalidate_cache): Remove #if 0 code.
8538
8539 (make_signal_thread_runnable): Remove.
8540 (procfs_target::resume): Remove #if 0 code.
8541
8542 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8543
8544 PR gdb/25939
8545 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8546 call ...
8547 (procfs_target::create_inferior): ... here.
8548
8549 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8550
8551 * exec.c (validate_exec_file): Ensure the build-id is up to
8552 date by calling reopen_exec_file (that checks file timestamp
8553 to decide to re-read the file).
8554
8555 2020-06-18 Pedro Alves <palves@redhat.com>
8556
8557 PR gdb/25412
8558 * gdbthread.h (delete_thread, delete_thread_silent)
8559 (find_thread_ptid): Update comments.
8560 * thread.c (current_thread_): New global.
8561 (is_current_thread): Move higher, and reimplement.
8562 (inferior_thread): Reimplement.
8563 (set_thread_exited): Use bool. Add assertions.
8564 (add_thread_silent): Simplify thread-reuse handling by always
8565 calling delete_thread.
8566 (delete_thread): Remove intro comment.
8567 (find_thread_ptid): Skip exited threads.
8568 (switch_to_thread_no_regs): Write to current_thread_.
8569 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8570 INFERIOR_PTID. Clear current_thread_.
8571
8572 2020-06-18 Pedro Alves <palves@redhat.com>
8573
8574 * aix-thread.c (pd_update): Use switch_to_thread.
8575
8576 2020-06-18 Pedro Alves <palves@redhat.com>
8577
8578 * ravenscar-thread.c (ravenscar_thread_target): Update.
8579 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8580 (ravenscar_thread_target::add_active_thread): ... this. Don't
8581 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8582 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8583
8584 2020-06-18 Pedro Alves <palves@redhat.com>
8585
8586 * nat/windows-nat.c (current_windows_thread): Remove.
8587 * nat/windows-nat.h (current_windows_thread): Remove.
8588 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8589 Adjust.
8590 (display_selectors): Adjust to fetch the current
8591 windows_thread_info based on inferior_ptid.
8592 (fake_create_process): No longer write to current_windows_thread.
8593 (windows_nat_target::get_windows_debug_event):
8594 Don't set inferior_ptid or current_windows_thread.
8595 (windows_nat_target::wait): Adjust to not rely on
8596 current_windows_thread.
8597 (do_initial_windows_stuff): Now a method of windows_nat_target.
8598 Switch to the last_ptid thread.
8599 (windows_nat_target::attach): Adjust.
8600 (windows_nat_target::detach): Use switch_to_no_thread instead of
8601 writing to inferior_ptid directly.
8602 (windows_nat_target::create_inferior): Adjust.
8603
8604 2020-06-18 Pedro Alves <palves@redhat.com>
8605
8606 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8607
8608 2020-06-18 Pedro Alves <palves@redhat.com>
8609
8610 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8611 after creating it, instead of writing to inferior_ptid. Don't
8612 write to inferior_ptid.
8613
8614 2020-06-18 Pedro Alves <palves@redhat.com>
8615
8616 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8617
8618 2020-06-18 Pedro Alves <palves@redhat.com>
8619
8620 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8621 it, instead of writing to inferior_ptid.
8622
8623 2020-06-18 Pedro Alves <palves@redhat.com>
8624
8625 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8626 to inferior_ptid.
8627
8628 2020-06-18 Pedro Alves <palves@redhat.com>
8629
8630 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8631 instead of writing to inferior_ptid directly.
8632
8633 2020-06-18 Pedro Alves <palves@redhat.com>
8634
8635 * corelow.c (core_target::close): Use switch_to_no_thread instead
8636 of writing to inferior_ptid directly.
8637 (add_to_thread_list, core_target_open): Use switch_to_thread
8638 instead of writing to inferior_ptid directly.
8639
8640 2020-06-18 Pedro Alves <palves@redhat.com>
8641
8642 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8643 inferior_ptid.
8644 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8645 inferior_ptid.
8646 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8647 inferior_ptid directly.
8648 (darwin_nat_target::init_thread_list): Switch to thread, instead
8649 of writing to inferior_ptid.
8650 (darwin_nat_target::attach): Don't write to inferior_ptid.
8651 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8652
8653 2020-06-18 Pedro Alves <palves@redhat.com>
8654
8655 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8656 thread.
8657 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8658 Instead use switch_to_thread.
8659 (gnu_nat_target::detach): Use switch_to_no_thread
8660 instead of writing to inferior_ptid directly. Used passed-in
8661 inferior instead of looking up the inferior by pid.
8662
8663 2020-06-18 Pedro Alves <palves@redhat.com>
8664
8665 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8666 inferior_ptid.
8667
8668 2020-06-18 Pedro Alves <palves@redhat.com>
8669
8670 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8671 inferior_ptid.
8672 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8673 thread.
8674 (nto_procfs_target::detach): Avoid referencing
8675 inferior_ptid. Use switch_to_no_thread instead of writing to
8676 inferior_ptid directly.
8677 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8678 instead of writing to inferior_ptid directly.
8679 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8680 to thread.
8681
8682 2020-06-18 Pedro Alves <palves@redhat.com>
8683
8684 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8685 after creating it, instead of writing to inferior_ptid.
8686 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8687 to inferior_ptid directly.
8688 (gdbsim_target::wait): Don't write to inferior_ptid.
8689
8690 2020-06-18 Pedro Alves <palves@redhat.com>
8691
8692 * remote.c (remote_target::remote_notice_new_inferior): Use
8693 switch_to_thread instead of writing to inferior_ptid directly.
8694 (remote_target::add_current_inferior_and_thread): Use
8695 switch_to_no_thread instead of writing to inferior_ptid directly.
8696 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8697 and switch_to_thread instead of using set_current_inferior or
8698 writing to inferior_ptid directly.
8699
8700 2020-06-18 Pedro Alves <palves@redhat.com>
8701
8702 * tracectf.c (ctf_target_open): Switch to added thread instead of
8703 writing to inferior_ptid directly.
8704 (ctf_target::close): Use switch_to_no_thread instead of writing to
8705 inferior_ptid directly.
8706
8707 2020-06-18 Pedro Alves <palves@redhat.com>
8708
8709 * tracefile-tfile.c (tfile_target_open): Don't write to
8710 inferior_ptid directly, instead switch to added thread.
8711 (tfile_target::close): Use switch_to_no_thread instead of writing
8712 to inferior_ptid directly.
8713
8714 2020-06-18 Pedro Alves <palves@redhat.com>
8715
8716 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8717 (procfs_target::detach): Use switch_to_no_thread
8718 instead of writing to inferior_ptid directly.
8719 (do_attach): Change return type to void. Switch to the added
8720 thread.
8721 (procfs_target::create_inferior): Switch to the added thread.
8722 (procfs_do_thread_registers): Don't write to inferior_ptid.
8723
8724 2020-06-18 Pedro Alves <palves@redhat.com>
8725
8726 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8727 of writing to inferior_ptid.
8728 (scoped_restore_exited_inferior): Delete.
8729 (handle_vfork_child_exec_or_exit): Simplify using
8730 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8731 instead of writing to inferior_ptid.
8732 (THREAD_STOPPED_BY): Delete.
8733 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8734 (thread_stopped_by_hw_breakpoint): Delete.
8735 (save_waitstatus): Use
8736 scoped_restore_current_thread+switch_to_thread, and call
8737 target_stopped_by_watchpoint instead of
8738 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8739 instead of thread_stopped_by_sw_breakpoint, and
8740 target_stopped_by_hw_breakpoint instead of
8741 thread_stopped_by_hw_breakpoint.
8742 (handle_inferior_event)
8743 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8744 inferior_ptid directly, nor
8745 set_current_inferior/set_current_program_space. Use
8746 switch_to_thread / switch_to_inferior_no_thread instead.
8747
8748 2020-06-18 Pedro Alves <palves@redhat.com>
8749
8750 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8751 instead of writing to inferior_ptid.
8752
8753 2020-06-18 Pedro Alves <palves@redhat.com>
8754
8755 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8756 added thread.
8757 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8758 to the added thread.
8759 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8760 instead of writing to inferior_ptid.
8761
8762 2020-06-18 Pedro Alves <palves@redhat.com>
8763
8764 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8765 (register_to_value_test): Mock a program_space too. Heap-allocate
8766 the address space. Don't write to inferior_ptid. Use
8767 switch_to_thread instead.
8768
8769 2020-06-18 Pedro Alves <palves@redhat.com>
8770
8771 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8772 Delete.
8773 (find_signalled_thread()): New, factored out from
8774 linux_make_corefile_notes and adjusted to handle exited threads.
8775 (linux_make_corefile_notes): Adjust to use the new
8776 find_signalled_thread.
8777
8778 2020-06-18 Pedro Alves <palves@redhat.com>
8779
8780 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8781 of saving/restoring inferior_ptid.
8782
8783 2020-06-17 Tom Tromey <tom@tromey.com>
8784
8785 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8786 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8787 declare.
8788 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8789
8790 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8791
8792 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8793 of partial symtabs.
8794
8795 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8796
8797 * regformats/reg-arm.dat: Remove.
8798 * regformats/reg-bfin.dat: Remove.
8799 * regformats/reg-cris.dat: Remove.
8800 * regformats/reg-crisv32.dat: Remove.
8801 * regformats/reg-m32r.dat: Remove.
8802 * regformats/reg-tilegx.dat: Remove.
8803 * regformats/reg-tilegx32.dat: Remove.
8804
8805 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * features/Makefile (WHICH): Remove arm files.
8808 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8809 * regformats/arm/arm-with-neon.dat: Remove.
8810 * regformats/arm/arm-with-vfpv2.dat: Remove.
8811 * regformats/arm/arm-with-vfpv3.dat: Remove.
8812
8813 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * features/Makefile (XMLTOC): Remove rx.xml.
8816
8817 2020-06-17 Pedro Alves <palves@redhat.com>
8818
8819 * gdbthread.h (thread_control_state) <trap_expected> Update
8820 comments.
8821
8822 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8823
8824 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8825 ada_language::lookup_symbol_nonlocal.
8826 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8827 (ada_language::lookup_symbol_nonlocal): New member function,
8828 implementation from ada_lookup_symbol_nonlocal.
8829 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8830 initializer.
8831 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8832 initializer.
8833 (cplus_language::lookup_symbol_nonlocal): New member function.
8834 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8835 (minimal_language_data) Likewise.
8836 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8837 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8838 initializer.
8839 (d_language::lookup_symbol_nonlocal): New member function.
8840 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8841 initializer.
8842 (f_language::lookup_symbol_nonlocal): New member function.
8843 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8844 initializer.
8845 * language.c (unknown_language_data): Likewise.
8846 (auto_language_data): Likewise.
8847 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8848 field.
8849 (language_defn::lookup_symbol_nonlocal): New member function.
8850 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8851 initializer.
8852 * objc-lang.c (objc_language_data): Likewise.
8853 * opencl-lang.c (opencl_language_data): Likewise.
8854 * p-lang.c (pascal_language_data): Likewise.
8855 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8856 rust_language::lookup_symbol_nonlocal.
8857 (rust_language_data): Delete la_lookup_symbol_nonlocal
8858 initializer.
8859 (rust_language::lookup_symbol_nonlocal): New member function,
8860 implementation from rust_lookup_symbol_nonlocal.
8861 * symtab.c (lookup_symbol_aux): Update call to
8862 lookup_symbol_nonlocal.
8863 (basic_lookup_symbol_nonlocal): Rename to...
8864 (language_defn::lookup_symbol_nonlocal): ...this, and update
8865 header comment. Remove language_defn parameter, and replace with
8866 uses of `this'.
8867 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8868
8869 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8872 initializer.
8873 (ada_language::value_print_inner): New member function.
8874 * c-lang.c (c_language_data): Delete la_value_print_inner
8875 initializer.
8876 (cplus_language_data): Likewise.
8877 (asm_language_data): Likewise.
8878 (minimal_language_data): Likewise.
8879 * d-lang.c (d_language_data): Likewise.
8880 (d_language::value_print_inner): New member function.
8881 * f-lang.c (f_language_data): Delete la_value_print_inner
8882 initializer.
8883 (f_language::value_print_inner): New member function.
8884 * f-lang.h (f_value_print_innner): Rename to...
8885 (f_value_print_inner): ...this (note spelling of 'inner').
8886 * f-valprint.c (f_value_print_innner): Rename to...
8887 (f_value_print_inner): ...this (note spelling of 'inner').
8888 * go-lang.c (go_language_data): Delete la_value_print_inner
8889 initializer.
8890 (go_language::value_print_inner): New member function.
8891 * language.c (language_defn::value_print_inner): Define new member
8892 function.
8893 (unk_lang_value_print_inner): Delete.
8894 (unknown_language_data): Delete la_value_print_inner initializer.
8895 (unknown_language::value_print_inner): New member function.
8896 (auto_language_data): Delete la_value_print_inner initializer.
8897 (auto_language::value_print_inner): New member function.
8898 * language.h (language_data): Delete la_value_print_inner field.
8899 (language_defn::value_print_inner): Delcare new member function.
8900 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8901 initializer.
8902 (m2_language::value_print_inner): New member function.
8903 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8904 initializer.
8905 * opencl-lang.c (opencl_language_data): Likewise.
8906 * p-lang.c (pascal_language_data): Likewise.
8907 (pascal_language::value_print_inner): New member function.
8908 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8909 initializer.
8910 (rust_language::value_print_inner): New member function.
8911 * valprint.c (do_val_print): Update call to value_print_inner.
8912
8913 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8914
8915 * ada-lang.c (ada_language_data): Delete la_value_print
8916 initializer.
8917 (ada_language::value_print): New member function.
8918 * c-lang.c (c_language_data): Delete la_value_print initializer.
8919 (cplus_language_data): Likewise.
8920 (asm_language_data): Likewise.
8921 (minimal_language_data): Likewise.
8922 * d-lang.c (d_language_data): Likewise.
8923 * f-lang.c (f_language_data): Likewise.
8924 * go-lang.c (go_language_data): Likewise.
8925 * language.c (unk_lang_value_print): Delete.
8926 (language_defn::value_print): Define new member function.
8927 (unknown_language_data): Delete la_value_print initializer.
8928 (unknown_language::value_print): New member function.
8929 (auto_language_data): Delete la_value_print initializer.
8930 (auto_language::value_print): New member function.
8931 * language.h (language_data): Delete la_value_print field.
8932 (language_defn::value_print): Declare new member function.
8933 (LA_VALUE_PRINT): Update call to value_print.
8934 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8935 * objc-lang.c (objc_language_data): Likewise.
8936 * opencl-lang.c (opencl_language_data): Likewise.
8937 * p-lang.c (pascal_language_data): Likewise.
8938 (pascal_language::value_print): New member function.
8939 * rust-lang.c (rust_language_data): Delete la_value_print
8940 initializer.
8941
8942 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8943
8944 * ada-lang.c (ada_watch_location_expression): Rename to
8945 ada_language::watch_location_expression.
8946 (ada_language_data): Delete la_watch_location_expression
8947 initializer.
8948 (ada_language::watch_location_expression): New member function,
8949 implementation from ada_watch_location_expression.
8950 * breakpoint.c (watch_command_1): Update call to
8951 watch_location_expression.
8952 * c-lang.c (c_watch_location_expression): Rename to
8953 language_defn::watch_location_expression.
8954 (c_language_data): Delete la_watch_location_expression
8955 initializer.
8956 (cplus_language_data): Likewise.
8957 (asm_language_data): Likewise.
8958 (minimal_language_data): Likewise.
8959 * c-lang.h (c_watch_location_expression): Delete declaration.
8960 * d-lang.c (d_language_data): Delete la_watch_location_expression
8961 initializer.
8962 * f-lang.c (f_language_data): Likewise.
8963 * go-lang.c (go_language_data): Likewise.
8964 * language.c (language_defn::watch_location_expression): Member
8965 function implementation from c_watch_location_expression.
8966 (unknown_language_data): Delete la_watch_location_expression
8967 initializer.
8968 (auto_language_data): Likewise.
8969 * language.h (language_data): Delete la_watch_location_expression
8970 field.
8971 (language_defn::watch_location_expression): Declare new member
8972 function.
8973 * m2-lang.c (m2_language_data): Delete
8974 la_watch_location_expression initializer.
8975 * objc-lang.c (objc_language_data): Likewise.
8976 * opencl-lang.c (opencl_language_data): Likewise.
8977 * p-lang.c (pascal_language_data): Likewise.
8978 * rust-lang.c (rust_watch_location_expression): Rename to
8979 rust_language::watch_location_expression.
8980 (rust_language_data): Delete la_watch_location_expression
8981 initializer.
8982 (rust_language::watch_location_expression): New member function,
8983 implementation from rust_watch_location_expression.
8984
8985 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8986
8987 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8988 ada_language::collect_symbol_completion_matches.
8989 (ada_language_data): Delete la_collect_symbol_completion_matches
8990 initializer.
8991 (ada_language::collect_symbol_completion_matches): New member
8992 function, implementation from
8993 ada_collect_symbol_completion_matches.
8994 * c-lang.c (c_language_data): Delete
8995 la_collect_symbol_completion_matches initializer.
8996 (cplus_language_data): Likewise.
8997 (asm_language_data): Likewise.
8998 (minimal_language_data): Likewise.
8999 * d-lang.c (d_language_data): Likewise.
9000 * f-lang.c (f_collect_symbol_completion_matches): Rename to
9001 f_language::collect_symbol_completion_matches.
9002 (f_language_data): Delete la_collect_symbol_completion_matches
9003 initializer.
9004 (f_language::collect_symbol_completion_matches) New member
9005 function, implementation from f_collect_symbol_completion_matches.
9006 * go-lang.c (go_language_data): Delete
9007 la_collect_symbol_completion_matches initializer.
9008 * language.c (unknown_language_data): Likewise.
9009 (auto_language_data): Likewise.
9010 * language.h (language_data): Delete
9011 la_collect_symbol_completion_matches field.
9012 (language_defn::collect_symbol_completion_matches): New member
9013 function.
9014 * m2-lang.c (m2_language_data): Delete
9015 la_collect_symbol_completion_matches initializer.
9016 * objc-lang.c (objc_language_data): Likewise.
9017 * opencl-lang.c (opencl_language_data): Likewise.
9018 * p-lang.c (pascal_language_data): Likewise.
9019 * rust-lang.c (rust_language_data): Likewise.
9020 * symtab.c (default_collect_symbol_completion_matches): Delete.
9021 (collect_symbol_completion_matches): Update call to
9022 collect_symbol_completion_matches.
9023 (collect_symbol_completion_matches_type): Likewise.
9024 * symtab.h (default_collect_symbol_completion_matches): Delete
9025 declaration.
9026
9027 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9028
9029 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9030 (ada_language_data): Delete la_word_break_characters initializer.
9031 (ada_language::word_break_characters): New member function.
9032 * c-lang.c (c_language_data): Delete la_word_break_characters
9033 initializer.
9034 (cplus_language_data): Likewise.
9035 (asm_language_data): Likewise.
9036 (minimal_language_data): Likewise.
9037 * completer.c: Update global comment.
9038 (advance_to_expression_complete_word_point): Update call to
9039 word_break_characters.
9040 (complete_files_symbols): Likewise.
9041 (complete_line_internal_1): Likewise.
9042 (default_completer_handle_brkchars): Likewise.
9043 (skip_quoted_chars): Likewise.
9044 * d-lang.c (d_language_data): Delete la_word_break_characters
9045 initializer.
9046 * f-lang.c (f_word_break_characters): Delete.
9047 (f_language_data): Delete la_word_break_characters initializer.
9048 (f_language::word_break_characters): New member function.
9049 * go-lang.c (go_language_data): Delete la_word_break_characters
9050 initializer.
9051 * language.c (unknown_language_data): Likewise.
9052 (auto_language_data): Likewise.
9053 * language.h (default_word_break_characters): Move declaration to
9054 earlier in the file.
9055 (language_data): Delete la_word_break_characters field.
9056 (language_defn::word_break_characters): New member function.
9057 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9058 initializer.
9059 * objc-lang.c (objc_language_data): Likewise.
9060 * opencl-lang.c (opencl_language_data): Likewise.
9061 * p-lang.c (pascal_language_data): Likewise.
9062 * rust-lang.c (rust_language_data): Likewise.
9063
9064 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9067 (ada_language_data): Delete la_get_symbol_name_matcher
9068 initializer.
9069 (language_defn::get_symbol_name_matcher_inner): New member
9070 function.
9071 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9072 initializer.
9073 (cplus_language_data): Likewise.
9074 (cplus_language::get_symbol_name_matcher_inner): New member
9075 function.
9076 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9077 (minimal_language_data): Likewise.
9078 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9079 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9080 initializer.
9081 * dictionary.c (iter_match_first_hashed): Update call to
9082 get_symbol_name_matcher.
9083 (iter_match_next_hashed): Likewise.
9084 (iter_match_next_linear): Likewise.
9085 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9086 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9087 initializer.
9088 (f_language::get_symbol_name_matcher_inner): New member function.
9089 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9090 initializer.
9091 * language.c (default_symbol_name_matcher): Update header comment,
9092 make static.
9093 (language_defn::get_symbol_name_matcher): New definition.
9094 (language_defn::get_symbol_name_matcher_inner): Likewise.
9095 (get_symbol_name_matcher): Delete.
9096 (unknown_language_data): Delete la_get_symbol_name_matcher
9097 initializer.
9098 (auto_language_data): Likewise.
9099 * language.h (language_data): Delete la_get_symbol_name_matcher
9100 field.
9101 (language_defn::get_symbol_name_matcher): New member function.
9102 (language_defn::get_symbol_name_matcher_inner): Likewise.
9103 (default_symbol_name_matcher): Delete declaration.
9104 * linespec.c (find_methods): Update call to
9105 get_symbol_name_matcher.
9106 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9107 initializer.
9108 * minsyms.c (lookup_minimal_symbol): Update call to
9109 get_symbol_name_matcher.
9110 (iterate_over_minimal_symbols): Likewise.
9111 * objc-lang.c (objc_language_data): Delete
9112 la_get_symbol_name_matcher initializer.
9113 * opencl-lang.c (opencl_language_data): Likewise.
9114 * p-lang.c (pascal_language_data): Likewise.
9115 * psymtab.c (psymbol_name_matches): Update call to
9116 get_symbol_name_matcher.
9117 * rust-lang.c (rust_language_data): Delete
9118 la_get_symbol_name_matcher initializer.
9119 * symtab.c (symbol_matches_search_name): Update call to
9120 get_symbol_name_matcher.
9121 (compare_symbol_name): Likewise.
9122
9123 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9124
9125 * ada-lang.c (ada_language_data): Delete la_compute_program
9126 initializer.
9127 * c-lang.c (c_language_data): Likewise.
9128 (c_language::compute_program): New member function.
9129 (cplus_language_data): Delete la_compute_program initializer.
9130 (cplus_language::compute_program): New member function.
9131 (asm_language_data): Delete la_compute_program initializer.
9132 (minimal_language_data): Likewise.
9133 * c-lang.h (c_compute_program): Update comment.
9134 (cplus_compute_program): Likewise.
9135 * compile/compile-c-support.c (c_compute_program): Likewise.
9136 (cplus_compute_program): Likewise.
9137 * compile/compile.c (compile_to_object): Update call to
9138 la_compute_program.
9139 * d-lang.c (d_language_data): Delete la_compute_program
9140 initializer.
9141 * f-lang.c (f_language_data): Likewise.
9142 * go-lang.c (go_language_data): Likewise.
9143 * language.c (unknown_language_data): Likewise.
9144 (auto_language_data): Likewise.
9145 * language.h (language_data): Delete la_compute_program field.
9146 (language_defn::compute_program): New member function.
9147 * m2-lang.c (m2_language_data): Delete la_compute_program
9148 initializer.
9149 * objc-lang.c (objc_language_data): Likewise.
9150 * opencl-lang.c (opencl_language_data): Likewise.
9151 * p-lang.c (pascal_language_data): Likewise.
9152 * rust-lang.c (rust_language_data): Likewise.
9153
9154 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9155
9156 * ada-lang.c (ada_language_data) Delete
9157 la_class_name_from_physname initializer.
9158 * c-lang.c (c_language_data): Likewise.
9159 (cplus_language_data): Likewise.
9160 (cplus_language::class_name_from_physname): New member function.
9161 (asm_language_data): Delete la_class_name_from_physname
9162 initializer.
9163 (minimal_language_data): Likewise.
9164 * d-lang.c (d_language_data): Likewise.
9165 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9166 method on language_defn class.
9167 (guess_full_die_structure_name): Likewise.
9168 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9169 initializer.
9170 * go-lang.c (go_language_data): Likewise.
9171 * language.c (language_class_name_from_physname): Delete.
9172 (unk_lang_class_name): Delete.
9173 (unknown_language_data): Delete la_class_name_from_physname
9174 initializer.
9175 (auto_language_data): Likewise.
9176 * language.h (language_data): Delete la_class_name_from_physname
9177 field.
9178 (language_defn::class_name_from_physname): New function.
9179 (language_class_name_from_physname): Delete declaration.
9180 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9181 initializer.
9182 * objc-lang.c (objc_language_data): Likewise.
9183 * opencl-lang.c (opencl_language_data): Likewise.
9184 * p-lang.c (pascal_language_data): Likewise.
9185 * rust-lang.c (rust_language_data): Likewise.
9186
9187 2020-06-16 Tom Tromey <tom@tromey.com>
9188
9189 * tui/tui-data.h (STATUS_NAME): New macro.
9190 * tui/tui-layout.c (tui_remove_some_windows)
9191 (initialize_known_windows, tui_register_window)
9192 (tui_layout_split::remove_windows, initialize_layouts)
9193 (tui_new_layout_command): Don't use hard-coded window names.
9194
9195 2020-06-16 Tom Tromey <tom@tromey.com>
9196
9197 PR tui/25348:
9198 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9199 tui_initialize_readline. Only run once. Call rl_initialize.
9200 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9201 tui_initialize_readline.
9202 * tui/tui-io.c (tui_setup_io): Call
9203 tui_ensure_readline_initialized.
9204 * tui/tui-interp.c (tui_interp::init): Update.
9205
9206 2020-06-16 Tom Tromey <tom@tromey.com>
9207
9208 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9209 Also preserve the status window.
9210
9211 2020-06-16 Tom Tromey <tom@tromey.com>
9212
9213 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9214 where m_window==nullptr.
9215
9216 2020-06-15 Tom Tromey <tromey@adacore.com>
9217
9218 * windows-nat.c (windows_nat::handle_output_debug_string):
9219 Update.
9220 (windows_nat::handle_ms_vc_exception): Update.
9221 * target.h (target_read_string): Change API.
9222 * target.c (target_read_string): Change API.
9223 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9224 Update.
9225 * solib-frv.c (frv_current_sos): Update.
9226 * solib-dsbt.c (dsbt_current_sos): Update.
9227 * solib-darwin.c (darwin_current_sos): Update.
9228 * linux-thread-db.c (inferior_has_bug): Update.
9229 * expprint.c (print_subexp_standard): Update.
9230 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9231 (ada_exception_message_1): Update.
9232
9233 2020-06-15 Tom Tromey <tromey@adacore.com>
9234
9235 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9236
9237 2020-06-15 Tom Tromey <tromey@adacore.com>
9238
9239 * valprint.c (read_string): Update comment.
9240 * target.c (MIN): Remove.
9241 (target_read_string): Rewrite.
9242
9243 2020-06-15 Tom Tromey <tromey@adacore.com>
9244
9245 * corefile.c (read_memory_string): Remove.
9246 * ada-valprint.c (ada_value_print_ptr): Update.
9247 * ada-lang.h (ada_tag_name): Change return type.
9248 * ada-lang.c (type_from_tag): Update.
9249 (ada_tag_name_from_tsd): Change return type. Use
9250 target_read_string.
9251 (ada_tag_name): Likewise.
9252 * gdbcore.h (read_memory_string): Don't declare.
9253
9254 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9255
9256 * symtab.c (rbreak_command): Ignore Windows drive colon.
9257
9258 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9259
9260 * NEWS: Mention removed GDBserver host support.
9261
9262 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9263
9264 * features/riscv/rebuild-csr-xml.sh: Updated.
9265
9266 2020-06-11 Tom Tromey <tom@tromey.com>
9267
9268 PR gdb/18318:
9269 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9270
9271 2020-06-09 Jonny Grant <jg@jguk.org>
9272 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9273
9274 * main.c (captured_main_1): Don't print new line after help.
9275 (print_gdb_help): add mailing list and IRC channel information
9276 to --help. Add new lines between items in the footer. Remove
9277 quotes around bug url.
9278
9279 2020-06-11 Keith Seitz <keiths@redhat.com>
9280
9281 PR gdb/21356
9282 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9283 Resolve typedefs for type length calculations.
9284
9285 2020-06-10 Tom de Vries <tdevries@suse.de>
9286
9287 PR ada/24713
9288 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9289 (write_psymbols): Enable .gdb_index for ada.
9290 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9291 ada.
9292
9293 2020-06-10 Tom de Vries <tdevries@suse.de>
9294
9295 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9296 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9297 namei" instead of "const char *name" argument.
9298 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9299 dw2_symtab_iter_init.
9300
9301 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9302
9303 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9304 to use type::field and field::type instead.
9305
9306 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9307
9308 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9309 to use field::type instead.
9310
9311 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * gdbtypes.h (struct field) <type, set_type>: New methods.
9314 Rename `type` field to...
9315 <m_type>: ... this. Change references throughout to use type or
9316 set_type methods.
9317 (FIELD_TYPE): Use field::type. Change call sites that modify
9318 the field's type to use field::set_type instead.
9319
9320 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9321
9322 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9323 to use type::index_type instead.
9324
9325 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9326
9327 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9328 methods.
9329 (TYPE_INDEX_TYPE): Use type::index_type.
9330 * gdbtypes.c (create_array_type_with_stride): Likewise.
9331
9332 2020-06-07 Tom Tromey <tom@tromey.com>
9333
9334 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9335 parameter.
9336 (generic_value_print): Update.
9337
9338 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9339
9340 Revert commit 982a38f60b0.
9341 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9342
9343 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9344
9345 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9346 avoid use after free.
9347
9348 2020-06-05 Tom de Vries <tdevries@suse.de>
9349
9350 * NEWS: Fix typos.
9351
9352 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9353
9354 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9355 the per_bfd object.
9356 (dwarf2_read_debug_names): Likewise.
9357 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9358 object when re-using a per_bfd object with an index.
9359
9360 2020-06-03 Tom de Vries <tdevries@suse.de>
9361
9362 PR symtab/26046
9363 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9364 children for C++.
9365 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9366 DW_TAG_subprogram.
9367
9368 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9369
9370 * ada-lang.c (ada_language_data): Delete skip_trampoline
9371 initializer.
9372 * c-lang.c (c_language_data): Likewise.
9373 (cplus_language_data): Likewise.
9374 (cplus_language::skip_trampoline): New member function.
9375 (asm_language_data): Delete skip_trampoline initializer.
9376 (minimal_language_data): Likewise.
9377 * d-lang.c (d_language_data): Likewise.
9378 * f-lang.c (f_language_data): Likewise.
9379 * go-lang.c (go_language_data): Likewise.
9380 * language.c (unk_lang_trampoline): Delete function.
9381 (skip_language_trampoline): Update.
9382 (unknown_language_data): Delete skip_trampoline initializer.
9383 (auto_language_data): Likewise.
9384 * language.h (language_data): Delete skip_trampoline field.
9385 (language_defn::skip_trampoline): New function.
9386 * m2-lang.c (m2_language_data): Delete skip_trampoline
9387 initializer.
9388 * objc-lang.c (objc_skip_trampoline): Delete function, move
9389 implementation to objc_language::skip_trampoline.
9390 (objc_language_data): Delete skip_trampoline initializer.
9391 (objc_language::skip_trampoline): New member function with
9392 implementation from objc_skip_trampoline.
9393 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9394 initializer.
9395 * p-lang.c (pascal_language_data): Likewise.
9396 * rust-lang.c (rust_language_data): Likewise.
9397
9398 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9399
9400 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9401 (ada_language::demangle): New member function.
9402 * c-lang.c (c_language_data): Delete la_demangle initializer.
9403 (cplus_language_data): Delete la_demangle initializer.
9404 (cplus_language::demangle): New member function.
9405 (asm_language_data): Delete la_demangle initializer.
9406 (minimal_language_data): Delete la_demangle initializer.
9407 * d-lang.c (d_language_data): Delete la_demangle initializer.
9408 (d_language::demangle): New member function.
9409 * f-lang.c (f_language_data): Delete la_demangle initializer.
9410 (f_language::demangle): New member function.
9411 * go-lang.c (go_language_data): Delete la_demangle initializer.
9412 (go_language::demangle): New member function.
9413 * language.c (language_demangle): Update.
9414 (unk_lang_demangle): Delete.
9415 (unknown_language_data): Delete la_demangle initializer.
9416 (unknown_language::demangle): New member function.
9417 (auto_language_data): Delete la_demangle initializer.
9418 (auto_language::demangle): New member function.
9419 * language.h (language_data): Delete la_demangle field.
9420 (language_defn::demangle): New function.
9421 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9422 * objc-lang.c (objc_language_data): Delete la_demangle
9423 initializer.
9424 (objc_language::demangle): New member function.
9425 * opencl-lang.c (opencl_language_data): Delete la_demangle
9426 initializer.
9427 * p-lang.c (pascal_language_data): Likewise.
9428 * rust-lang.c (rust_language_data): Likewise.
9429 (rust_language::demangle): New member function.
9430
9431 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9432
9433 * ada-lang.c (ada_language_data): Delete la_print_type
9434 initializer.
9435 (ada_language::print_type): New member function.
9436 * c-lang.c (c_language_data): Delete la_print_type initializer.
9437 (c_language::print_type): New member function.
9438 (cplus_language_data): Delete la_print_type initializer.
9439 (cplus_language::print_type): New member function.
9440 (asm_language_data): Delete la_print_type initializer.
9441 (asm_language::print_type): New member function.
9442 (minimal_language_data): Delete la_print_type initializer.
9443 (minimal_language::print_type): New member function.
9444 * d-lang.c (d_language_data): Delete la_print_type initializer.
9445 (d_language::print_type): New member function.
9446 * f-lang.c (f_language_data): Delete la_print_type initializer.
9447 (f_language::print_type): New member function.
9448 * go-lang.c (go_language_data): Delete la_print_type initializer.
9449 (go_language::print_type): New member function.
9450 * language.c (unk_lang_print_type): Delete.
9451 (unknown_language_data): Delete la_print_type initializer.
9452 (unknown_language::print_type): New member function.
9453 (auto_language_data): Delete la_print_type initializer.
9454 (auto_language::print_type): New member function.
9455 * language.h (language_data): Delete la_print_type field.
9456 (language_defn::print_type): New function.
9457 (LA_PRINT_TYPE): Update.
9458 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9459 (m2_language::print_type): New member function.
9460 * objc-lang.c (objc_language_data): Delete la_print_type
9461 initializer.
9462 (objc_language::print_type): New member function.
9463 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9464 to opencl_language::print_type.
9465 (opencl_language_data): Delete la_print_type initializer.
9466 (opencl_language::print_type): New member function, implementation
9467 from opencl_print_type.
9468 * p-lang.c (pascal_language_data): Delete la_print_type
9469 initializer.
9470 (pascal_language::print_type): New member function.
9471 * rust-lang.c (rust_print_type): Delete, implementation moved to
9472 rust_language::print_type.
9473 (rust_language_data): Delete la_print_type initializer.
9474 (rust_language::print_type): New member function, implementation
9475 from rust_print_type.
9476
9477 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9478
9479 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9480 implementation moves to...
9481 (ada_language::sniff_from_mangled_name): ...here. Update return
9482 type.
9483 (ada_language_data): Delete la_sniff_from_mangled_name
9484 initializer.
9485 * c-lang.c (c_language_data): Likewise.
9486 (cplus_language_data): Likewise.
9487 (cplus_language::sniff_from_mangled_name): New member function,
9488 implementation taken from gdb_sniff_from_mangled_name.
9489 (asm_language_data): Delete la_sniff_from_mangled_name
9490 initializer.
9491 (minimal_language_data): Likewise.
9492 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9493 implementation moves to cplus_language::sniff_from_mangled_name.
9494 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9495 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9496 moves to...
9497 (d_language::sniff_from_mangled_name): ...here.
9498 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9499 * f-lang.c (f_language_data): Likewise.
9500 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9501 moves to...
9502 (go_language::sniff_from_mangled_name): ...here.
9503 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9504 * language.c (language_sniff_from_mangled_name): Delete.
9505 (unknown_language_data): Delete la_sniff_from_mangled_name
9506 initializer.
9507 (auto_language_data): Likewise.
9508 * language.h (language_data): Delete la_sniff_from_mangled_name
9509 field.
9510 (language_defn::sniff_from_mangled_name): New function.
9511 (language_sniff_from_mangled_name): Delete declaration.
9512 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9513 field.
9514 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9515 implementation moves to...
9516 (objc_language::sniff_from_mangled_name): ...here.
9517 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9518 * opencl-lang.c (opencl_language_data): Likewise.
9519 * p-lang.c (pascal_language_data): Likewise.
9520 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9521 implementation moves to...
9522 (rust_language::sniff_from_mangled_name): ...here.
9523 (rust_language_data): Delete la_sniff_from_mangled_name
9524 initializer.
9525 * symtab.c (symbol_find_demangled_name): Call
9526 sniff_from_mangled_name member function.
9527
9528 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9529
9530 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9531 initializer.
9532 * c-lang.c (c_language_data): Likewise.
9533 (cplus_language_data): Likewise.
9534 (cplus_language::search_name_hash): New member function.
9535 (asm_language_data): Delete la_search_name_hash initializer.
9536 (minimal_language_data): Likewise.
9537 * d-lang.c (d_language_data): Likewise.
9538 * dictionary.c (default_search_name_hash): Rename to...
9539 (language_defn::search_name_hash): ...this.
9540 * f-lang.c (f_language_data): Likewise.
9541 (f_language::search_name_hash): New member function.
9542 * go-lang.c (go_language_data): Delete la_search_name_hash
9543 initializer.
9544 * language.c (unknown_language_data): Likewise.
9545 (auto_language_data): Likewise.
9546 * language.h (struct language_data): Delete la_search_name_hash
9547 field.
9548 (language_defn::search_name_hash): Declare new member function.
9549 (default_search_name_hash): Delete declaration.
9550 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9551 initializer.
9552 * objc-lang.c (objc_language_data): Likewise.
9553 * opencl-lang.c (opencl_language_data): Likewise.
9554 * p-lang.c (pascal_language_data): Likewise.
9555 * rust-lang.c (rust_language_data): Likewise.
9556 * symtab.c (search_name_hash): Update call.
9557
9558 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9559
9560 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9561 initializer.
9562 * c-lang.c (class compile_instance): Declare.
9563 (c_language_data): Delete la_get_compile_instance initializer.
9564 (c_language::get_compile_instance): New member function.
9565 (cplus_language_data): Delete la_get_compile_instance initializer.
9566 (cplus_language::get_compile_instance): New member function.
9567 (asm_language_data): Delete la_get_compile_instance initializer.
9568 (minimal_language_data): Likewise.
9569 * c-lang.h (c_get_compile_context): Update comment.
9570 (cplus_get_compile_context): Update comment.
9571 * compile/compile.c (compile_to_object): Update calls, don't rely
9572 on function pointer being NULL.
9573 * d-lang.c (d_language_data): Delete la_get_compile_instance
9574 initializer.
9575 * f-lang.c (f_language_data): Likewise.
9576 * go-lang.c (go_language_data): Likewise.
9577 * language.c (unknown_language_data): Likewise.
9578 (auto_language_data): Likewise.
9579 * language.h (language_data): Delete la_get_compile_instance field.
9580 (language_defn::get_compile_instance): New member function.
9581 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9582 initializer.
9583 * objc-lang.c (objc_language_data): Likewise.
9584 * opencl-lang.c (opencl_language_data): Likewise.
9585 * p-lang.c (pascal_language_data): Likewise.
9586 * rust-lang.c (rust_language_data): Likewise.
9587
9588 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9589
9590 * ada-lang.c (ada_add_all_symbols): Update comment.
9591 (ada_iterate_over_symbols): Delete, move implementation to...
9592 (ada_language::iterate_over_symbols): ...here, a new member
9593 function, rewrite to use range based for loop.
9594 (ada_language_data): Delete la_iterate_over_symbols initializer.
9595 * c-lang.c (c_language_data): Likewise.
9596 (cplus_language_data): Likewise.
9597 (asm_language_data): Likewise.
9598 (minimal_language_data): Likewise.
9599 * d-lang.c (d_language_data): Likewise.
9600 * f-lang.c (f_language_data): Likewise.
9601 * go-lang.c (go_language_data): Likewise.
9602 * language.c (unknown_language_data): Likewise.
9603 (auto_language_data): Likewise.
9604 * language.h (language_data): Delete la_iterate_over_symbols field.
9605 (language_defn::iterate_over_symbols): New member function.
9606 (LA_ITERATE_OVER_SYMBOLS): Update.
9607 * linespec.c (iterate_over_all_matching_symtabs): Update.
9608 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9609 initializer.
9610 * objc-lang.c (objc_language_data): Likewise.
9611 * opencl-lang.c (opencl_language_data): Likewise.
9612 * p-lang.c (pascal_language_data): Likewise.
9613 * rust-lang.c (rust_language_data): Likewise.
9614
9615 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9616
9617 * ada-lang.c (ada_language_data): Delete
9618 la_lookup_transparent_type initializer.
9619 * c-lang.c (c_language_data): Likewise.
9620 (cplus_language_data): Likewise.
9621 (cplus_language::lookup_transparent_type): New member function.
9622 (asm_language_data): Delete la_lookup_transparent_type
9623 initializer.
9624 (minimal_language_data): Likewise.
9625 * d-lang.c (d_language_data): Likewise.
9626 * f-lang.c (f_language_data): Likewise.
9627 * go-lang.c (go_language_data): Likewise.
9628 * language.c (unknown_language_data): Likewise.
9629 (auto_language_data): Likewise.
9630 * language.h (struct language_data): Delete
9631 la_lookup_transparent_type field.
9632 (language_defn::lookup_transparent_type): New member function.
9633 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9634 initializer.
9635 * objc-lang.c (objc_language_data): Likewise.
9636 * opencl-lang.c (opencl_language_data): Likewise.
9637 * p-lang.c (pascal_language_data): Likewise.
9638 * rust-lang.c (rust_language_data): Likewise.
9639 * symtab.c (symbol_matches_domain): Update call.
9640
9641 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9642
9643 * ada-lang.c (ada_language_arch_info): Delete function, move
9644 implementation to...
9645 (ada_language::language_arch_info): ...here, a new member
9646 function.
9647 (ada_language_data): Delete la_language_arch_info.
9648 * c-lang.c (c_language_data): Likewise.
9649 (c_language::language_arch_info): New member function.
9650 (cplus_language_arch_info): Delete function, move
9651 implementation to...
9652 (cplus_language::language_arch_info): ...here, a new member
9653 function.
9654 (cplus_language_data): Delete la_language_arch_info.
9655 (asm_language_data): Likewise.
9656 (asm_language::language_arch_info): New member function.
9657 (minimal_language_data): Delete la_language_arch_info.
9658 (minimal_language::language_arch_info): New member function.
9659 * d-lang.c (d_language_arch_info): Delete function, move
9660 implementation to...
9661 (d_language::language_arch_info): ...here, a new member
9662 function.
9663 (d_language_data): Delete la_language_arch_info.
9664 * f-lang.c (f_language_arch_info): Delete function, move
9665 implementation to...
9666 (f_language::language_arch_info): ...here, a new member
9667 function.
9668 (f_language_data): Delete la_language_arch_info.
9669 * go-lang.c (go_language_arch_info): Delete function, move
9670 implementation to...
9671 (go_language::language_arch_info): ...here, a new member
9672 function.
9673 (go_language_data): Delete la_language_arch_info.
9674 * language.c (unknown_language_data): Likewise.
9675 (unknown_language::language_arch_info): New member function.
9676 (auto_language_data): Delete la_language_arch_info.
9677 (auto_language::language_arch_info): New member function.
9678 (language_gdbarch_post_init): Update call to
9679 la_language_arch_info.
9680 * language.h (language_data): Delete la_language_arch_info
9681 function pointer.
9682 (language_defn::language_arch_info): New function.
9683 * m2-lang.c (m2_language_arch_info): Delete function, move
9684 implementation to...
9685 (m2_language::language_arch_info): ...here, a new member
9686 function.
9687 (m2_language_data): Delete la_language_arch_info.
9688 * objc-lang.c (objc_language_arch_info): Delete function, move
9689 implementation to...
9690 (objc_language::language_arch_info): ...here, a new member
9691 function.
9692 (objc_language_data): Delete la_language_arch_info.
9693 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9694 implementation to...
9695 (opencl_language::language_arch_info): ...here, a new member
9696 function.
9697 (opencl_language_data): Delete la_language_arch_info.
9698 * p-lang.c (pascal_language_arch_info): Delete function, move
9699 implementation to...
9700 (pascal_language::language_arch_info): ...here, a new member
9701 function.
9702 (pascal_language_data): Delete la_language_arch_info.
9703 * rust-lang.c (rust_language_arch_info): Delete function, move
9704 implementation to...
9705 (rust_language::language_arch_info): ...here, a new member
9706 function.
9707 (rust_language_data): Delete la_language_arch_info.
9708
9709 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9710
9711 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9712 initializer.
9713 * c-lang.c (c_language_data): Likewise.
9714 (cplus_language_data): Likewise.
9715 (cplus_language::pass_by_reference_info): New method.
9716 (asm_language_data): Delete la_pass_by_reference initializer.
9717 (minimal_language_data): Likewise.
9718 * cp-abi.c (cp_pass_by_reference): Remove use of
9719 default_pass_by_reference.
9720 * d-lang.c (d_language_data): Likewise.
9721 * f-lang.c (f_language_data): Likewise.
9722 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9723 default_pass_by_reference.
9724 * go-lang.c (go_language_data): Likewise.
9725 * language.c (language_pass_by_reference): Update.
9726 (default_pass_by_reference): Delete.
9727 (unknown_language_data): Delete la_pass_by_reference
9728 initializer.
9729 (auto_language_data): Likewise.
9730 * language.h (struct language_data): Delete la_pass_by_reference
9731 field.
9732 (language_defn::pass_by_reference_info): New member function.
9733 (default_pass_by_reference): Delete declaration.
9734 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9735 initializer.
9736 * objc-lang.c (objc_language_data): Likewise.
9737 * opencl-lang.c (opencl_language_data): Likewise.
9738 * p-lang.c (pascal_language_data): Likewise.
9739 * rust-lang.c (rust_language_data): Likewise.
9740
9741 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9742
9743 * ada-lang.c (ada_read_var_value): Delete function, move
9744 implementation to...
9745 (ada_language::read_var_value): ...here.
9746 (ada_language_data): Delete la_read_var_value initializer.
9747 * c-lang.c (c_language_data): Likewise.
9748 (cplus_language_data): Likewise.
9749 (minimal_language_data): Likewise.
9750 * d-lang.c (d_language_data): Likewise.
9751 * f-lang.c (f_language_data): Likewise.
9752 * findvar.c (default_read_var_value): Rename to...
9753 (language_defn::read_var_value): ...this.
9754 * findvar.c (read_var_value): Update header comment, and change to
9755 call member function instead of function pointer.
9756 * go-lang.c (go_language_data): Likewise.
9757 * language.c (unknown_language_data): Delete la_read_var_value
9758 initializer.
9759 (auto_language_data): Likewise.
9760 * language.h (struct language_data): Delete la_read_var_value
9761 field.
9762 (language_defn::read_var_value): New member function.
9763 (default_read_var_value): Delete declaration.
9764 * m2-lang.c (m2_language_data): Delete la_read_var_value
9765 initializer.
9766 * objc-lang.c (objc_language_data): Likewise.
9767 * opencl-lang.c (opencl_language_data): Likewise.
9768 * p-lang.c (pascal_language_data): Likewise.
9769 * rust-lang.c (rust_language_data): Likewise.
9770 * value.h (default_read_var_value): Delete declaration.
9771
9772 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9773
9774 * ada-lang.c (ada_print_array_index): Delete function, move
9775 implementation to...
9776 (ada_language::print_array_index): ...here.
9777 (ada_language_data): Delete la_print_array_index initializer.
9778 * c-lang.c (c_language_data): Likewise.
9779 (cplus_language_data): Likewise.
9780 (minimal_language_data): Likewise.
9781 * d-lang.c (d_language_data): Likewise.
9782 * f-lang.c (f_language_data): Likewise.
9783 * go-lang.c (go_language_data): Likewise.
9784 * language.c (default_print_array_index): Delete function, move
9785 implementation to...
9786 (language_defn::print_array_index): ...here.
9787 (unknown_language_data): Delete la_print_array_index initializer.
9788 (auto_language_data): Likewise.
9789 * language.h (struct language_data): Delete la_print_array_index
9790 field.
9791 (language_defn::print_array_index): New member function.
9792 (LA_PRINT_ARRAY_INDEX): Update.
9793 (default_print_array_index): Delete declaration.
9794 * m2-lang.c (m2_language_data): Delete la_print_array_index
9795 initializer.
9796 * objc-lang.c (objc_language_data): Likewise.
9797 * opencl-lang.c (opencl_language_data): Likewise.
9798 * p-lang.c (pascal_language_data): Likewise.
9799 * rust-lang.c (rust_language_data): Likewise.
9800
9801 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9802
9803 * gdb/ada-lang.c (ada_language_defn): Convert to...
9804 (ada_language_data): ...this.
9805 (class ada_language): New class.
9806 (ada_language_defn): New static global.
9807 * gdb/c-lang.c (c_language_defn): Convert to...
9808 (c_language_data): ...this.
9809 (class c_language): New class.
9810 (c_language_defn): New static global.
9811 (cplus_language_defn): Convert to...
9812 (cplus_language_data): ...this.
9813 (class cplus_language): New class.
9814 (cplus_language_defn): New static global.
9815 (asm_language_defn): Convert to...
9816 (asm_language_data): ...this.
9817 (class asm_language): New class.
9818 (asm_language_defn): New static global.
9819 (minimal_language_defn): Convert to...
9820 (minimal_language_data): ...this.
9821 (class minimal_language): New class.
9822 (minimal_language_defn): New static global.
9823 * gdb/d-lang.c (d_language_defn): Convert to...
9824 (d_language_data): ...this.
9825 (class d_language): New class.
9826 (d_language_defn): New static global.
9827 * gdb/f-lang.c (f_language_defn): Convert to...
9828 (f_language_data): ...this.
9829 (class f_language): New class.
9830 (f_language_defn): New static global.
9831 * gdb/go-lang.c (go_language_defn): Convert to...
9832 (go_language_data): ...this.
9833 (class go_language): New class.
9834 (go_language_defn): New static global.
9835 * gdb/language.c (unknown_language_defn): Remove declaration.
9836 (current_language): Initialize to nullptr, real initialization is
9837 moved to _initialize_language.
9838 (languages): Delete global.
9839 (language_defn::languages): Define.
9840 (set_language_command): Use language_defn::languages.
9841 (set_language): Likewise.
9842 (range_error): Likewise.
9843 (language_enum): Likewise.
9844 (language_def): Likewise.
9845 (add_set_language_command): Use language_def::languages for the
9846 language list, and language_def to lookup language pointers.
9847 (skip_language_trampoline): Use language_defn::languages.
9848 (unknown_language_defn): Convert to...
9849 (unknown_language_data): ...this.
9850 (class unknown_language): New class.
9851 (unknown_language_defn): New static global.
9852 (auto_language_defn): Convert to...
9853 (auto_language_data): ...this.
9854 (class auto_language): New class.
9855 (auto_language_defn): New static global.
9856 (language_gdbarch_post_init): Use language_defn::languages.
9857 (_initialize_language): Initialize current_language.
9858 * gdb/language.h (struct language_defn): Rename to...
9859 (struct language_data): ...this.
9860 (struct language_defn): New.
9861 (auto_language_defn): Delete.
9862 (unknown_language_defn): Delete.
9863 (minimal_language_defn): Delete.
9864 (ada_language_defn): Delete.
9865 (asm_language_defn): Delete.
9866 (c_language_defn): Delete.
9867 (cplus_language_defn): Delete.
9868 (d_language_defn): Delete.
9869 (f_language_defn): Delete.
9870 (go_language_defn): Delete.
9871 (m2_language_defn): Delete.
9872 (objc_language_defn): Delete.
9873 (opencl_language_defn): Delete.
9874 (pascal_language_defn): Delete.
9875 (rust_language_defn): Delete.
9876 * gdb/m2-lang.c (m2_language_defn): Convert to...
9877 (m2_language_data): ...this.
9878 (class m2_language): New class.
9879 (m2_language_defn): New static global.
9880 * gdb/objc-lang.c (objc_language_defn): Convert to...
9881 (objc_language_data): ...this.
9882 (class objc_language): New class.
9883 (objc_language_defn): New static global.
9884 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9885 (opencl_language_data): ...this.
9886 (class opencl_language): New class.
9887 (opencl_language_defn): New static global.
9888 * gdb/p-lang.c (pascal_language_defn): Convert to...
9889 (pascal_language_data): ...this.
9890 (class pascal_language): New class.
9891 (pascal_language_defn): New static global.
9892 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9893 language pointer, update comment format.
9894 * gdb/rust-lang.c (rust_language_defn): Convert to...
9895 (rust_language_data): ...this.
9896 (class rust_language): New class.
9897 (rust_language_defn): New static global.
9898
9899 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9900
9901 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9902 member variable.
9903 <m_stmt_at_address>: New member variable.
9904 (lnp_state_machine::record_line): Don't record some lines, update
9905 tracking of is_stmt at the same address.
9906 (lnp_state_machine::lnp_state_machine): Initialise new member
9907 variables.
9908
9909 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9910
9911 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9912 "-include gnu-nat-mig.h".
9913 * gnu-nat-mig.h: New file.
9914 * gnu-nat.c: Include "gnu-nat-mig.h".
9915 (exc_server, msg_reply_server, notify_server,
9916 process_reply_server): Remove declarations.
9917
9918 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9919
9920 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9921 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9922 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9923 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9924 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9925 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9926 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9927 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9928 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9929 to gnu_nat_target class.
9930 * gnu-nat.c: Likewise.
9931 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9932 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9933 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9934 object.
9935 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9936 instead of `gnu_target'.
9937
9938 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9939
9940 * i386-gnu-tdep.c: Include "gdbcore.h"
9941 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9942 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9943 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9944 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9945 i386_gnu_sigcontext_addr): New functions
9946 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9947 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9948 tdep.
9949
9950 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9951
9952 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9953 before fork_inferior call. Avoid calling it if target_is_pushed returns
9954 true.
9955
9956 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9957
9958 * gnu-nat.h (gnu_target): New variable declaration.
9959 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9960 gnu_target.
9961 * gnu-nat.c (gnu_target): New variable.
9962 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9963 add_thread_silent, and add_thread calls.
9964 (gnu_nat_target::create_inferior): Pass gnu_target to
9965 add_thread_silent, thread_change_ptid call.
9966 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9967 call.
9968
9969 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9970
9971 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9972 (gnu_nat_target::find_memory_regions): Remove unused
9973 `old_address' variable.
9974
9975 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9976
9977 * gnu-nat.c: Include "gdbarch.h".
9978
9979 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9980
9981 * reply_mig_hack.awk (Error return): Cast function through
9982 void *, to bypass compiler function call check.
9983
9984 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9985
9986 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9987 $(srcdir)/reply_mig_hack.awk.
9988
9989 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9990
9991 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9992
9993 2020-05-30 Jonny Grant <jg@jguk.org>
9994
9995 * configure.ac (ACX_BUGURL): change bug URL to https.
9996
9997 2020-05-30 Pedro Alves <palves@redhat.com>
9998
9999 * cp-support.c (replace_typedefs_template): New.
10000 (replace_typedefs_qualified_name): Handle
10001 DEMANGLE_COMPONENT_TEMPLATE.
10002
10003 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
10006 dwarf2/index-cache.h, dwarf2/index-write.c,
10007 dwarf2/index-write.h, dwarf2/line-header.c,
10008 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
10009 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10010 variables and fields from `dwarf2_per_objfile` to just
10011 `per_objfile` throughout.
10012
10013 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10014
10015 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10016 <push_dwarf_reg_entry_value>: Add comment.
10017
10018 2020-05-28 Kevin Buettner <kevinb@redhat.com>
10019 Keith Seitz <keiths@redhat.com>
10020
10021 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10022 instead of PyEval_ReleaseLock.
10023 (class gdbpy_gil): Move to earlier in file.
10024 (finalize_python): Set gdb_python_initialized.
10025 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10026 when not initialized.
10027
10028 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
10029
10030 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10031 <push_dwarf_reg_entry_value>: Remove assert. Override
10032 per_objfile with caller_per_objfile.
10033
10034 2020-05-28 Tom de Vries <tdevries@suse.de>
10035
10036 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10037 PR gold/15646 workaround to symbol kind "type".
10038
10039 2020-05-27 Tom Tromey <tromey@adacore.com>
10040
10041 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10042
10043 2020-05-27 Tom Tromey <tromey@adacore.com>
10044
10045 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10046 Use htab_find_with_hash.
10047 <add_abbrev>: Remove "abbrev_number" parameter.
10048 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10049 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10050 (hash_abbrev): Add comment.
10051 (abbrev_table::lookup_abbrev): Move to header file.
10052 (abbrev_table::read): Update.
10053
10054 2020-05-27 Tom Tromey <tromey@adacore.com>
10055
10056 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10057 method.
10058 <canonical_name>: New member.
10059 <raw_name>: Rename from "name".
10060 (partial_die_info): Initialize canonical_name.
10061 (scan_partial_symbols): Check raw_name.
10062 (partial_die_parent_scope, partial_die_full_name)
10063 (add_partial_symbol, add_partial_subprogram)
10064 (add_partial_enumeration, load_partial_dies): Use "name" method.
10065 (partial_die_info::name): New method.
10066 (partial_die_info::read, guess_partial_die_structure_name)
10067 (partial_die_info::fixup): Update.
10068
10069 2020-05-27 Tom Tromey <tromey@adacore.com>
10070
10071 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10072 <get_ref_die_offset>: Inline.
10073 <get_ref_die_offset_complaint>: New method.
10074 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10075 (attribute::get_ref_die_offset_complaint): Rename from
10076 get_ref_die_offset. Just issue complaint.
10077
10078 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10079
10080 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10081
10082 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10083
10084 * exec.c (exec_file_attach): Use errno value of first openp failure.
10085
10086 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10087
10088 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10089 Don't close thread handle.
10090
10091 2020-05-27 Tom Tromey <tom@tromey.com>
10092 Simon Marchi <simon.marchi@efficios.com>
10093
10094 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10095 shared_ptr.
10096 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10097 member.
10098 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10099 dwarf2_per_bfd_objfile_data_key>: New globals.
10100 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10101 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10102 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10103 shared.
10104 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10105 short-circuit when sharing.
10106 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10107 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10108
10109 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10110
10111 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10112 to...
10113 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10114 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10115
10116 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10119 build_name_components, find_name_components_bounds>:
10120 Add per_objfile parameter.
10121 (struct mapped_index) <symbol_name_at>: Likewise.
10122 (struct mapped_debug_names): Remove constructor.
10123 <dwarf2_per_objfile>: Remove field.
10124 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10125 (mapped_index_base::find_name_components_bounds,
10126 mapped_index_base::build_name_components,
10127 dw2_expand_symtabs_matching_symbol): Likewise.
10128 (class mock_mapped_index) <symbol_name_at>: Likewise.
10129 (check_match): Likewise.
10130 (check_find_bounds_finds): Likewise.
10131 (test_mapped_index_find_name_component_bounds): Update.
10132 (CHECK_MATCH): Update.
10133 (dw2_expand_symtabs_matching): Update.
10134 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10135 per_objfile parameter.
10136 <find_vec_in_debug_names>: Likewise.
10137 <m_per_objfile>: New field.
10138 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10139 parameter.
10140 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10141 (dw2_debug_names_iterator::next): Update.
10142 (dw2_debug_names_lookup_symbol): Update.
10143 (dw2_debug_names_expand_symtabs_for_function): Update.
10144 (dw2_debug_names_map_matching_symbols): Update.
10145 (dw2_debug_names_expand_symtabs_matching): Update.
10146 (dwarf2_read_debug_names): Update.
10147
10148 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10149
10150 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10151 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10152 move to dwarf2_per_objfile.
10153 <read_in_chain>: Remove.
10154 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10155 remove_all_cus, age_comp_units>: New methods.
10156 <m_dwarf2_cus>: New member.
10157 (struct dwarf2_per_cu_data) <cu>: Remove.
10158 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10159 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10160 moved to methods of dwarf2_per_objfile.
10161 (dwarf2_clear_marks): Remove.
10162 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10163 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10164 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10165 (dwarf2_per_objfile::remove_all_cus): New.
10166 (class free_cached_comp_units) <~free_cached_comp_units>:
10167 Update.
10168 (load_cu): Update.
10169 (dw2_do_instantiate_symtab): Adjust.
10170 (fill_in_sig_entry_from_dwo_entry): Adjust.
10171 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10172 (cutu_reader::cutu_reader): Likewise.
10173 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10174 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10175 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10176 and dwarf2_per_objfile::age_comp_units.
10177 (load_partial_comp_unit): Update.
10178 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10179 (process_queue): Likewise.
10180 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10181 backlink.
10182 (dwarf2_read_addr_index): Likewise.
10183 (follow_die_offset): Likewise.
10184 (dwarf2_fetch_die_loc_sect_off): Likewise.
10185 (dwarf2_fetch_constant_bytes): Likewise.
10186 (dwarf2_fetch_die_type_sect_off): Likewise.
10187 (follow_die_sig_1): Likewise.
10188 (load_full_type_unit): Likewise.
10189 (read_signatured_type): Likewise.
10190 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10191 (dwarf2_cu::~dwarf2_cu): Remove.
10192 (dwarf2_per_objfile::get_cu): New.
10193 (dwarf2_per_objfile::set_cu): New.
10194 (age_cached_comp_units): Rename to...
10195 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10196 to std::unordered_map.
10197 (free_one_cached_comp_unit): Rename to...
10198 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10199 to std::unordered_map.
10200 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10201 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10202 a dwarf2_per_objfile in data.
10203 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10204 (dwarf2_clear_marks): Remove.
10205
10206 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10207
10208 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10209 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10210 (init_tu_and_read_dwo_dies): Likewise.
10211 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10212 (cutu_reader::cutu_reader): Likewise.
10213 (load_partial_comp_unit): Likewise.
10214 (process_psymtab_comp_unit): Update.
10215 (build_type_psymtabs_1): Update.
10216 (process_skeletonless_type_unit): Update.
10217 (load_full_comp_unit): Update.
10218 (find_partial_die): Update.
10219 (dwarf2_read_addr_index): Update.
10220 (read_signatured_type): Update.
10221
10222 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10223
10224 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10225 m_header_read_in>: New fields.
10226 <get_header>: New method.
10227 * dwarf2/read.c (per_cu_header_read_in): Remove.
10228 (dwarf2_per_cu_data::get_header): New.
10229 (dwarf2_per_cu_data::addr_size): Update.
10230 (dwarf2_per_cu_data::offset_size): Update.
10231 (dwarf2_per_cu_data::ref_addr_size): Update.
10232
10233 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10234
10235 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10236 (dw2_do_instantiate_symtab): Update.
10237 (queue_and_load_all_dwo_tus): Change parameter from
10238 dwarf2_per_cu_data to dwarf2_cu.
10239 (dwarf2_fetch_die_loc_sect_off): Update.
10240 (dwarf2_fetch_constant_bytes): Update.
10241 (dwarf2_fetch_die_type_sect_off): Update.
10242
10243 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10244
10245 * dwarf2/read.c (process_full_comp_unit,
10246 process_full_type_unit): Remove per_cu, per_objfile paramters.
10247 Add dwarf2_cu parameter.
10248 (process_queue): Update.
10249
10250 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10251
10252 * dwarf2/read.c (create_cu_from_index_list): Replace
10253 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10254 (create_cus_from_index_list): Likewise.
10255 (create_cus_from_index): Likewise.
10256 (create_signatured_type_table_from_index): Likewise.
10257 (create_cus_from_debug_names_list): Likewise.
10258 (create_cus_from_debug_names): Likewise.
10259 (dwarf2_read_gdb_index): Update.
10260 (dwarf2_read_debug_names): Update.
10261
10262 2020-05-27 Tom Tromey <tom@tromey.com>
10263 Simon Marchi <simon.marchi@efficios.com>
10264
10265 * dwarf2/read.h (struct dwarf2_per_objfile)
10266 <get_type_for_signatured_type, set_type_for_signatured_type>:
10267 New methods.
10268 <m_type_map>: New member.
10269 (struct signatured_type) <type>: Remove.
10270 * dwarf2/read.c
10271 (dwarf2_per_objfile::get_type_for_signatured_type,
10272 dwarf2_per_objfile::set_type_for_signatured_type): New.
10273 (get_signatured_type): Use new methods.
10274
10275 2020-05-27 Tom Tromey <tom@tromey.com>
10276 Simon Marchi <simon.marchi@efficios.com>
10277
10278 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10279 (struct dwarf2_per_objfile) <type_units>: New member.
10280 <get_type_unit_group_unshareable>: New method.
10281 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10282 num_symtabs, symtabs>: Remove; move to
10283 type_unit_group_unshareable.
10284 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10285 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10286 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10287
10288 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * dwarf2/read.h (struct dwarf2_per_cu_data):
10291 <dwarf2_per_objfile>: Remove.
10292 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10293 dwarf2_per_objfile.
10294 (create_signatured_type_table_from_index): Likewise.
10295 (create_signatured_type_table_from_debug_names): Likewise.
10296 (create_debug_type_hash_table): Likewise.
10297 (fill_in_sig_entry_from_dwo_entry): Likewise.
10298 (create_type_unit_group): Likewise.
10299 (read_comp_units_from_section): Likewise.
10300 (create_cus_hash_table): Likewise.
10301
10302 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10305 dwarf2_per_cu_data::dwarf2_per_objfile.
10306 (compute_compunit_symtab_includes): Likewise.
10307 (dwarf2_cu::start_symtab): Likewise.
10308
10309 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10310
10311 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10312 parameter.
10313 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10314 (read_namespace_alias): Update.
10315 (lookup_die_type): Update.
10316 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10317 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10318 Update.
10319 (disassemble_dwarf_expression): Update.
10320
10321 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10322
10323 * dwarf2/read.h (struct dwarf2_queue_item): Add
10324 dwarf2_per_objfile parameter, assign new parameter.
10325 <per_objfile>: New field.
10326 * dwarf2/read.c (free_one_cached_comp_unit): Add
10327 dwarf2_per_objfile parameter.
10328 (queue_comp_unit): Likewise.
10329 (dw2_do_instantiate_symtab): Update.
10330 (process_psymtab_comp_unit): Update.
10331 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10332 (process_imported_unit_die): Update.
10333 (queue_and_load_dwo_tu): Update.
10334 (follow_die_offset): Update.
10335 (follow_die_sig_1): Update.
10336
10337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10340 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10341 (read_call_site_scope): Assign per_objfile.
10342 (dwarf2_per_cu_data::objfile): Remove.
10343 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10344 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10345 dwarf2_per_objfile parameter.
10346 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10347 dwarf2_per_objfile parameter.
10348 (dwarf_expr_reg_to_entry_parameter): Add output
10349 dwarf2_per_objfile parameter.
10350 (locexpr_get_frame_base): Update.
10351 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10352 <push_dwarf_reg_entry_value>: Update.
10353 <call_site_to_target_addr>: Update.
10354 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10355 parameter.
10356 (value_of_dwarf_reg_entry): Update.
10357 (rw_pieced_value): Update.
10358 (indirect_synthetic_pointer): Update.
10359 (dwarf2_evaluate_property): Update.
10360 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10361 parameter.
10362 (locexpr_read_variable): Update.
10363 (locexpr_get_symbol_read_needs): Update.
10364 (loclist_read_variable): Update.
10365
10366 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10367
10368 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10369 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10370 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10371 parameter.
10372 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10373 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10374 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10375 parameter.
10376 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10377 sect_variable_value): Add dwarf2_per_objfile parameter.
10378 (class dwarf_evaluate_loc_desc) <dwarf_call,
10379 dwarf_variable_value>: Update.
10380 (fetch_const_value_from_synthetic_pointer): Add
10381 dwarf2_per_objfile parameter.
10382 (fetch_const_value_from_synthetic_pointer): Update.
10383 (coerced_pieced_ref): Update.
10384 (class symbol_needs_eval_context) <dwarf_call,
10385 dwarf_variable_value>: Update.
10386 (dwarf2_compile_expr_to_ax): Update.
10387
10388 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10389
10390 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10391 parameter.
10392 (dwarf2_evaluate_loc_desc_full): Update.
10393
10394 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10395
10396 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10397 parameter.
10398 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10399 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10400 dwarf2_per_objfile parameter.
10401 (decode_debug_loc_dwo_addresses): Likewise.
10402 (dwarf2_find_location_expression): Update.
10403 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10404 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10405 parameter.
10406 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10407 parameter.
10408 (locexpr_describe_location_1): Likewise.
10409 (locexpr_describe_location): Update.
10410
10411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10414 Remove.
10415 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10416 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10417 (dwarf2_compile_property_to_c): Update.
10418 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10419 use text offset from objfile.
10420 (locexpr_tracepoint_var_ref): Update.
10421 (locexpr_generate_c_location): Update.
10422 (loclist_describe_location): Update.
10423 (loclist_tracepoint_var_ref): Update.
10424 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10425 dwarf2_per_objfile parameter.
10426 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10427 use text offset from objfile.
10428 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10429
10430 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10431
10432 * dwarf2/expr.h (struct dwarf_expr_context)
10433 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10434 <offset>: Remove.
10435 <per_objfile>: New member.
10436 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10437 dwarf2_per_objfile parameter. Don't set offset, set
10438 per_objfile.
10439 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10440 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10441 a dwarf2_per_objfile object instead of an offset.
10442 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10443 constructor.
10444 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10445 to dwarf2_expr_executor constructor. Don't set offset.
10446 (dwarf2_fetch_cfa_info): Update.
10447 (struct dwarf2_frame_cache) <text_offset>: Remove.
10448 <per_objfile>: New field.
10449 (dwarf2_frame_cache): Update.
10450 (dwarf2_frame_prev_register): Update.
10451 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10452 <dwarf_evaluate_loc_desc>: Add constructor.
10453 (dwarf2_evaluate_loc_desc_full): Update.
10454 (dwarf2_locexpr_baton_eval): Update.
10455 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10456 Add constructor.
10457 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10458
10459 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10462 addr_sized_int_type>: Move to dwarf2_cu.
10463 <int_type>: Move to dwarf2_per_objfile.
10464 (struct dwarf2_per_objfile) <int_type>: Move here.
10465 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10466 addr_sized_int_type>: Move here.
10467 (read_func_scope): Update.
10468 (read_array_type): Update.
10469 (read_tag_string_type): Update.
10470 (attr_to_dynamic_prop): Update.
10471 (dwarf2_per_cu_data::int_type): Rename to...
10472 (dwarf2_per_objfile::int_type): ... this.
10473 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10474 (dwarf2_cu::addr_sized_int_type): ... this.
10475 (read_subrange_type): Update.
10476 (dwarf2_per_cu_data::addr_type): Rename to...
10477 (dwarf2_cu::addr_type): ... this.
10478 (set_die_type): Update.
10479
10480 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10483 data through per_cu->cu.
10484
10485 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10486
10487 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10488 dwarf2_per_cu_data parameter fo dwarf2_cu.
10489 (lookup_dwo_type_unit): Likewise.
10490 (read_cutu_die_from_dwo): Likewise.
10491 (lookup_dwo_unit): Likewise.
10492 (open_and_init_dwo_file): Likewise.
10493 (lookup_dwo_cutu): Likewise.
10494 (lookup_dwo_comp_unit): Likewise.
10495 (lookup_dwo_type_unit): Likewise.
10496 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10497 (cutu_reader::cutu_reader): Update.
10498
10499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10502 parameter.
10503 (process_full_type_unit): Likewise.
10504 (process_queue): Update.
10505
10506 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10507
10508 * dwarf2/read.c (recursively_compute_inclusions): Add
10509 dwarf2_per_objfile parameter.
10510 (compute_compunit_symtab_includes): Likewise.
10511 (process_cu_includes): Update.
10512
10513 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10514
10515 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10516 parameter.
10517 (create_type_unit_group): Update.
10518 (process_psymtab_comp_unit_reader): Update.
10519 (build_type_psymtabs_reader): Update.
10520
10521 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10522
10523 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10524 object through m_this_cu->cu.
10525
10526 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10527
10528 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10529 the info parameter.
10530 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10531
10532 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10533
10534 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10535 per_objfile parameter.
10536 (load_full_type_unit): Add per_objfile parameter.
10537 (read_signatured_type): Likewise.
10538 (load_full_comp_unit): Likewise.
10539 (load_cu): Likewise.
10540 (dw2_do_instantiate_symtab): Likewise.
10541 (dw2_get_file_names): Likewise.
10542 (dw2_map_symtabs_matching_filename): Update.
10543 (dw_expand_symtabs_matching_file_matcher): Update.
10544 (dw2_map_symbol_filenames): Update.
10545 (process_psymtab_comp_unit): Add per_objfile parameter.
10546 (build_type_psymtabs_1): Update.
10547 (process_skeletonless_type_unit): Update.
10548 (dwarf2_build_psymtabs_hard): Update.
10549 (load_partial_comp_unit): Add per_objfile parameter.
10550 (scan_partial_symbols): Update.
10551 (load_full_comp_unit): Add per_objfile parameter.
10552 (process_imported_unit_die): Update.
10553 (create_cus_hash_table): Update.
10554 (find_partial_die): Update.
10555 (dwarf2_read_addr_index): Update.
10556 (follow_die_offset): Update.
10557 (dwarf2_fetch_die_loc_sect_off): Update.
10558 (dwarf2_fetch_constant_bytes): Update.
10559 (dwarf2_fetch_die_type_sect_off): Update.
10560 (follow_die_sig_1): Update.
10561 (load_full_type_unit): Add per_objfile parameter.
10562 (read_signatured_type): Likewise.
10563
10564 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10565
10566 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10567 of objfile_name.
10568
10569 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10570
10571 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10572 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10573 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10574 field.
10575 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10576 (create_cus_from_index): Update.
10577 (dwarf2_read_gdb_index): Update.
10578 (create_cus_from_debug_names): Update.
10579 (dwarf2_read_debug_names): Update.
10580 (get_abbrev_section_for_cu): Update.
10581 (create_all_comp_units): Update.
10582 (read_attribute_value): Update.
10583 (get_debug_line_section): Update.
10584 * dwarf2/index-cache.c (index_cache::store): Update.
10585 * dwarf2/index-write.c (save_gdb_index_command): Update.
10586 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10587
10588 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10589
10590 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10591 member.
10592 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10593 dwarf2_per_cu_data::per_bfd.
10594 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10595 (create_type_unit_group): Likewise.
10596 (queue_comp_unit): Remove reference to
10597 per_cu->dwarf2_per_objfile.
10598 (maybe_queue_comp_unit): Likewise.
10599 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10600 (create_cus_hash_table): Assign new field.
10601
10602 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10603
10604 * dwarf2/read.c: Replace
10605 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10606 dwarf2_cu->per_objfile throughout.
10607
10608 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10609
10610 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10611 parameter, don't use per_cu->dwarf2_per_objfile.
10612 (dw2_instantiate_symtab): Likewise.
10613 (dw2_find_last_source_symtab): Update.
10614 (dw2_map_expand_apply): Update.
10615 (dw2_lookup_symbol): Update.
10616 (dw2_expand_symtabs_for_function): Update.
10617 (dw2_expand_all_symtabs): Update.
10618 (dw2_expand_symtabs_with_fullname): Update.
10619 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10620 don't use per_cu->dwarf2_per_objfile.
10621 (dw2_expand_marked_cus): Update.
10622 (dw2_find_pc_sect_compunit_symtab): Update.
10623 (dw2_debug_names_lookup_symbol): Update.
10624 (dw2_debug_names_expand_symtabs_for_function): Update.
10625 (dw2_debug_names_map_matching_symbols): Update.
10626 (dwarf2_psymtab::expand_psymtab): Update.
10627
10628 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10629
10630 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10631 <per_objfile>: New member.
10632 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10633 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10634 call to dwarf2_cu.
10635 (cutu_reader::cutu_reader): Update.
10636 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10637
10638 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10639
10640 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10641 struct dwarf2_per_objfile.
10642 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10643 dwarf2_per_bfd.
10644 * dwarf2/read.c (set_die_type): Update.
10645 (get_die_type_at_offset): Update.
10646
10647 2020-05-27 Tom Tromey <tom@tromey.com>
10648 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10651 method.
10652 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10653 get_symtab, set_symtab>: New methods.
10654 <m_symtabs>: New field.
10655 (struct dwarf2_psymtab): Derive from partial_symtab.
10656 <readin_p, get_compunit_symtab>: Declare methods.
10657 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10658 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10659 New methods.
10660 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10661 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10662 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10663 (dw2_symtab_iter_next, dw2_print_stats)
10664 (dw2_expand_symtabs_with_fullname)
10665 (dw2_expand_symtabs_matching_one)
10666 (dw_expand_symtabs_matching_file_matcher)
10667 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10668 (dw2_debug_names_iterator::next)
10669 (dw2_debug_names_map_matching_symbols)
10670 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10671 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10672 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10673 New methods.
10674 (get_compunit_symtab, process_full_comp_unit)
10675 (process_full_type_unit): Update.
10676 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10677
10678 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10679
10680 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10681 then introduce a new dwarf2_per_objfile type.
10682 <read_line_string>: Move to the new dwarf2_per_objfile type.
10683 <objfile>: Likewise.
10684 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10685 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10686 dwarf2_per_objfile->per_bfd.
10687 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10688 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10689 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10690 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10691 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10692 (dwarf2_per_objfile::locate_sections): Rename to...
10693 (dwarf2_per_bfd::locate_sections): ... this.
10694 (dwarf2_per_objfile::get_cutu): Rename to...
10695 (dwarf2_per_bfd::get_cutu): ... this.
10696 (dwarf2_per_objfile::get_cu): Rename to...
10697 (dwarf2_per_bfd::get_cu): ... this.
10698 (dwarf2_per_objfile::get_tu): Rename to...
10699 (dwarf2_per_bfd::get_tu): ... this.
10700 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10701 (dwarf2_per_bfd::allocate_per_cu): ... this.
10702 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10703 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10704 (get_gdb_index_contents_ftype): Change parameter from
10705 dwarf2_per_objfile to dwarf2_per_bfd.
10706 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10707 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10708
10709 2020-05-27 Tom Tromey <tom@tromey.com>
10710 Simon Marchi <simon.marchi@efficios.com>
10711
10712 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10713 (allocate_piece_closure): Set "per_objfile" member.
10714 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10715 (locexpr_describe_location, loclist_describe_location): Use new
10716 member.
10717 * dwarf2/read.c (read_call_site_scope)
10718 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10719 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10720 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10721 handle_data_member_location): Set per_objfile member.
10722 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10723 member.
10724 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10725
10726 2020-05-27 Tom Tromey <tom@tromey.com>
10727
10728 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10729 allocate_signatured_type>: Declare new methods.
10730 <m_num_psymtabs>: New member.
10731 (struct dwarf2_per_cu_data) <index>: New member.
10732 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10733 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10734 (create_cu_from_index_list): Use allocate_per_cu.
10735 (create_signatured_type_table_from_index)
10736 (create_signatured_type_table_from_debug_names)
10737 (create_debug_type_hash_table, add_type_unit)
10738 (read_comp_units_from_section): Use allocate_signatured_type.
10739
10740 2020-05-27 Tom Tromey <tom@tromey.com>
10741
10742 * psymtab.c (partial_map_expand_apply)
10743 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10744 (psym_lookup_global_symbol_language)
10745 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10746 (psym_print_stats, psym_expand_symtabs_for_function)
10747 (psym_map_symbol_filenames, psym_map_matching_symbols)
10748 (psym_expand_symtabs_matching)
10749 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10750 (maintenance_check_psymtabs): Update.
10751 * psympriv.h (struct partial_symtab) <readin_p,
10752 get_compunit_symtab>: Add objfile parameter.
10753 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10754 Likewise.
10755 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10756 get_compunit_symtab>: Likewise.
10757 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10758
10759 2020-05-27 Tom Tromey <tom@tromey.com>
10760
10761 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10762 member.
10763 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10764 (create_cu_from_index_list)
10765 (create_signatured_type_table_from_index)
10766 (create_signatured_type_table_from_debug_names)
10767 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10768 (dwarf2_create_include_psymtab)
10769 (create_debug_type_hash_table, add_type_unit)
10770 (create_type_unit_group, read_comp_units_from_section)
10771 (dwarf2_compute_name, create_cus_hash_table)
10772 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10773 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10774 obstack.
10775 (dw2_get_real_path): Likewise. Change argument to
10776 dwarf2_per_objfile.
10777
10778 2020-05-27 Luis Machado <luis.machado@linaro.org>
10779
10780 PR tdep/26000
10781 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10782 for ldrd (immediate).
10783
10784 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10785
10786 * command.h: Add comment giving the name of class_tui.
10787 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10788 create the fake command for the help for class_tui.
10789
10790 2020-05-26 Tom Tromey <tromey@adacore.com>
10791
10792 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10793 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10794 (val_atr): New function.
10795 (value_val_atr): Use it.
10796 * ada-valprint.c (print_optional_low_bound): Change low bound
10797 handling for enums.
10798 (val_print_packed_array_elements): Don't call discrete_position.
10799 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10800 discrete_position for enum types.
10801 * language.c (default_print_array_index): Change type.
10802 * language.h (struct language_defn) <la_print_array_index>: Add
10803 index_type parameter, change type of index_value.
10804 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10805 (default_print_array_index): Update.
10806 * valprint.c (maybe_print_array_index): Don't call
10807 value_from_longest. Update.
10808 (value_print_array_elements): Don't call discrete_position.
10809
10810 2020-05-26 Tom Tromey <tromey@adacore.com>
10811
10812 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10813 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10814
10815 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10816
10817 PR gdb/13519
10818 * avr-tdep.c (avr_integer_to_address): Return data or code
10819 address accordingly to the second 'type' argument of the
10820 function.
10821
10822 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10823
10824 * infcmd.c, inferior.h: (construct_inferior_arguments):
10825 Moved function from here to gdbsupport/common-inferior.{h,cc}
10826
10827 2020-05-23 Tom Tromey <tom@tromey.com>
10828
10829 Revert commit eca1f90c:
10830 * NEWS: Remove entry for completion styling.
10831 * completer.c (_rl_completion_prefix_display_length): Move
10832 declaration later.
10833 (gdb_fnprint): Revert.
10834 (gdb_display_match_list_1): Likewise.
10835 * cli/cli-style.c (completion_prefix_style)
10836 (completion_difference_style, completion_suffix_style): Remove.
10837 (_initialize_cli_style): Revert.
10838 * cli/cli-style.h (completion_prefix_style)
10839 (completion_difference_style, completion_suffix_style): Don't
10840 declare.
10841
10842 2020-05-24 Pedro Alves <palves@redhat.com>
10843
10844 * symtab.c (completion_list_add_name): Return boolean indication
10845 of whether the symbol matched.
10846 (completion_list_add_symbol): Don't try to remove C++ aliases if
10847 the symbol didn't match in the first place.
10848 * symtab.h (completion_list_add_name): Return bool.
10849
10850 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10851
10852 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10853 type::field.
10854
10855 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10856
10857 GDB 9.2 released.
10858
10859 2020-05-23 Tom Tromey <tom@tromey.com>
10860
10861 * NEWS: Add entry for completion styling.
10862 * completer.c (_rl_completion_prefix_display_length): Move
10863 declaration earlier.
10864 (gdb_fnprint): Use completion_style.
10865 (gdb_display_match_list_1): Likewise.
10866 * cli/cli-style.c (completion_prefix_style)
10867 (completion_difference_style, completion_suffix_style): New
10868 globals.
10869 (_initialize_cli_style): Register new globals.
10870 * cli/cli-style.h (completion_prefix_style)
10871 (completion_difference_style, completion_suffix_style): Declare.
10872
10873 2020-05-23 Pedro Alves <palves@redhat.com>
10874
10875 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10876 (parse_escape): Use ISDIGIT instead of isdigit.
10877 (puts_debug): Use gdb_isprint instead of isprint.
10878 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10879 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10880 ISSPACE instead of isspace.
10881 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10882 instead of isspace.
10883 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10884 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10885 instead of isxdigit and ISDIGIT instead of isdigit.
10886
10887 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10888
10889 * gdbtypes.h (struct type) <field>: New method.
10890 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10891 or type::field.
10892
10893 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10894
10895 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10896 (TYPE_FIELDS): Use type::fields. Change all call sites that
10897 modify the propery to use type::set_fields instead.
10898
10899 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10900
10901 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10902 type::num_fields instead.
10903
10904 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10905
10906 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10907 methods.
10908 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10909 that modify the number of fields to use type::set_num_fields
10910 instead.
10911
10912 2020-05-22 Tom Tromey <tromey@adacore.com>
10913
10914 * compile/compile-object-load.h (munmap_list_free): Don't
10915 declare.
10916
10917 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10918
10919 * annotate.c (annotate_source_line): Update return type, add call
10920 to update current symtab and line.
10921 * annotate.h (annotate_source_line): Update return type, and
10922 extend header comment.
10923 * source.c (info_line_command): Check annotation_level before
10924 calling annotate_source_line.
10925 * stack.c (print_frame_info): If calling annotate_source_line
10926 returns true, then don't print any other source line information.
10927
10928 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10929
10930 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10931
10932 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * coffread.c (patch_type): Remove NULL check before xfree.
10935 * corefile.c (set_gnutarget): Likewise.
10936 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10937 * exec.c (build_section_table): Likewise.
10938 * remote.c (remote_target::pass_signals): Likewise.
10939 * utils.c (n_spaces): Likewise.
10940 * cli/cli-script.c (document_command): Likewise.
10941 * i386-windows-tdep.c (core_process_module_section): Likewise.
10942 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10943
10944 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10945
10946 * symfile.c (reread_symbols): Clear objfile's section_offsets
10947 vector and section indices, re-compute them by calling
10948 sym_offsets.
10949
10950 2020-05-20 Tom Tromey <tromey@adacore.com>
10951
10952 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10953 (desc_one_bound, desc_index_type): Compute field name.
10954
10955 2020-05-20 Tom de Vries <tdevries@suse.de>
10956
10957 PR symtab/25833
10958 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10959
10960 2020-05-20 Alan Modra <amodra@gmail.com>
10961
10962 PR 25993
10963 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10964 bfd_set_filename.
10965 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10966 passed to bfd_set_filename.
10967 * symfile-mem.c (add_vsyscall_page): Likewise for string
10968 passed to symbol_file_add_from_memory.
10969 (symbol_file_add_from_memory): Make name param a const char* and
10970 don't strdup.
10971
10972 2020-05-20 Alan Modra <amodra@gmail.com>
10973
10974 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10975 rather than accessing bfd->filename directly.
10976 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10977 and use bfd_section_name.
10978 * dwarf2/frame.c (decode_frame_entry): Likewise.
10979 * exec.c (exec_set_section_address): Likewise.
10980 * solib-aix.c (solib_aix_bfd_open): Likewise.
10981 * stap-probe.c (get_stap_base_address): Likewise.
10982 * symfile.c (reread_symbols): Likewise.
10983
10984 2020-05-19 Tom Tromey <tromey@adacore.com>
10985
10986 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10987
10988 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10989
10990 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10991
10992 2020-05-19 Pedro Alves <palves@redhat.com>
10993
10994 * NEWS (set exec-file-mismatch): Adjust entry.
10995 * exec.c: Include "build-id.h".
10996 (validate_exec_file): Try to match build IDs instead of filenames.
10997 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10998 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10999 and pass down 'warn_if_slow'.
11000 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
11001 gdb_bfd_open_closure to pass it down.
11002 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
11003
11004 2020-05-19 Pedro Alves <palves@redhat.com>
11005
11006 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
11007 * target.c (target_fileio_open_1): Rename to target_fileio_open
11008 and make extern. Use bool.
11009 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11010 (target_fileio_read_alloc_1): Adjust.
11011 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11012 (target_fileio_open_warn_if_slow): Delete declaration.
11013
11014 2020-05-19 Pedro Alves <palves@redhat.com>
11015
11016 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11017 Adjust all callers.
11018
11019 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11020
11021 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11022 whether disp is negative.
11023
11024 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11025
11026 * symfile.h (struct symfile_segment_data)
11027 <~symfile_segment_data>: Remove.
11028 <segment_info>: Change to std::vector.
11029 * symfile.c (default_symfile_segments): Update.
11030 * elfread.c (elf_symfile_segments): Update.
11031
11032 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11033
11034 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11035 <segments>: New.
11036 <segment_bases, segment_sizes>: Remove.
11037 * symfile.c (default_symfile_segments): Update.
11038 * elfread.c (elf_symfile_segments): Update.
11039 * remote.c (remote_target::get_offsets): Update.
11040 * solib-target.c (solib_target_relocate_section_addresses):
11041 Update.
11042
11043 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11044
11045 * symfile.h (struct symfile_segment_data): Initialize fields.
11046 <~symfile_segment_data>: Add.
11047 (symfile_segment_data_up): New.
11048 (struct sym_fns) <sym_segments>: Return a
11049 symfile_segment_data_up.
11050 (default_symfile_segments): Return a symfile_segment_data_up.
11051 (free_symfile_segment_data): Remove.
11052 (get_symfile_segment_data): Return a symfile_segment_data_up.
11053 * symfile.c (default_symfile_segments): Likewise.
11054 (get_symfile_segment_data): Likewise.
11055 (free_symfile_segment_data): Remove.
11056 (symfile_find_segment_sections): Update.
11057 * elfread.c (elf_symfile_segments): Return a
11058 symfile_segment_data_up.
11059 * remote.c (remote_target::get_offsets): Update.
11060 * solib-target.c (solib_target_relocate_section_addresses):
11061 Update.
11062 * symfile-debug.c (debug_sym_segments): Return a
11063 symfile_segment_data_up.
11064
11065 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11066
11067 PR build/25981
11068 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11069 Hardcode register numbers.
11070
11071 PR build/25981
11072 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11073 procfs_find_LDT_entry): Remove.
11074 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11075 procfs_find_LDT_entry): Remove.
11076 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11077 Remove.
11078
11079 2020-05-17 Pedro Alves <palves@redhat.com>
11080 Andrew Burgess <andrew.burgess@embecosm.com>
11081 Keno Fischer <keno@juliacomputing.com>
11082
11083 PR gdb/25741
11084 * breakpoint.c (build_target_condition_list): Update comments.
11085 (build_target_command_list): Update comments and skip matching
11086 locations.
11087 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11088 a separate function. Simplify "set breakpoint auto-hw off"
11089 handling.
11090 (insert_breakpoints): Update comment.
11091 (tracepoint_locations_match): New parameter. For breakpoints,
11092 compare location types too, if the caller wants to.
11093 (handle_automatic_hardware_breakpoints): New functions.
11094 (bp_location_is_less_than): Also sort by location type and
11095 hardware breakpoint length.
11096 (update_global_location_list): Handle "set breakpoint auto-hw on"
11097 here.
11098 (update_breakpoint_locations): Ask breakpoint_locations_match to
11099 ignore location types.
11100
11101 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11102
11103 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11104 type::name instead.
11105
11106 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11107
11108 * gdbtypes.h (struct type) <name, set_name>: New methods.
11109 (TYPE_CODE): Use type::name. Change all call sites used to set
11110 the name to use type::set_name instead.
11111
11112 2020-05-16 Tom Tromey <tom@tromey.com>
11113
11114 * top.c (quit_force): Update.
11115 * infrun.c (handle_no_resumed): Update.
11116 * top.h (all_uis): New function.
11117 (ALL_UIS): Remove.
11118
11119 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11120
11121 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11122
11123 2020-05-16 Pedro Alves <palves@redhat.com>
11124
11125 * ia64-linux-nat.c
11126 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11127 Declare method.
11128 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11129
11130 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11133 (sparc64_adi_info): Likewise.
11134
11135 2020-05-15 Tom Tromey <tom@tromey.com>
11136
11137 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11138 block_objfile.
11139 (lookup_objfile_from_block): Remove.
11140 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11141 (lookup_global_symbol): Use block_objfile.
11142 * symtab.h (lookup_objfile_from_block): Don't declare.
11143 * printcmd.c (clear_dangling_display_expressions): Use
11144 block_objfile.
11145 * parse.c (operator_check_standard): Use block_objfile.
11146
11147 2020-05-15 Tom Tromey <tom@tromey.com>
11148
11149 * language.c (language_alloc_type_symbol): Set
11150 SYMBOL_SECTION.
11151 * symtab.c (initialize_objfile_symbol): Remove.
11152 (allocate_symbol): Remove.
11153 (allocate_template_symbol): Remove.
11154 * dwarf2/read.c (fixup_go_packaging): Use "new".
11155 (new_symbol): Use "new".
11156 (read_variable): Don't call initialize_objfile_symbol. Use
11157 "new".
11158 (read_func_scope): Use "new".
11159 * xcoffread.c (process_xcoff_symbol): Don't call
11160 initialize_objfile_symbol.
11161 (SYMBOL_DUP): Remove.
11162 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11163 "new".
11164 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11165 (allocate_template_symbol): Don't declare.
11166 (struct symbol): Add copy constructor. Change defaults.
11167 * jit.c (finalize_symtab): Use "new".
11168 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11169 Use "new".
11170 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11171 (common_block_end): Use "new".
11172 * mdebugread.c (parse_symbol): Use "new".
11173 (new_symbol): Likewise.
11174
11175 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11176
11177 * NEWS: Mention changes to help and apropos.
11178
11179 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11180
11181 * command.h (enum command_class): Improve comments, document
11182 that class_alias is for user-defined aliases, give the class
11183 name for each class, remove unused class_xdb.
11184 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11185 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11186 by a precise class.
11187 * infcmd.c (_initialize_infcmd): Likewise.
11188 * reverse.c (_initialize_reverse): Likewise.
11189 * stack.c (_initialize_stack): Likewise.
11190 * symfile.c (_initialize_symfile): Likewise.
11191 * tracepoint.c (_initialize_tracepoint): Likewise.
11192
11193 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11194
11195 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11196 when their aliased command is traversed.
11197 (help_cmd): Add fput_command_names_styled call to
11198 output command name and aliases when command has an alias.
11199
11200 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11201
11202 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11203 * cli/cli-decode.c (help_cmd_list): Declare as static,
11204 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11205 a command together with the command.
11206 (fput_command_name_styled, fput_command_names_styled): New functions.
11207 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11208 fput_command_name_styled.
11209 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11210 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11211
11212 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11213
11214 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11215 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11216 * command.h (cmd_show_list): Likewise.
11217 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11218 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11219
11220 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11221
11222 * unittests/command-def-selftests.c (traverse_command_structure):
11223 Verify all commands of a list have the same prefix command and
11224 that only the top cmdlist commands have a null prefix.
11225
11226 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11227
11228 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11229 as prefix, not one of its aliases.
11230 (set_cmd_prefix): Remove.
11231 (do_add_cmd): Centralize the setting of the prefix of a command, when
11232 command is defined after its full chain of prefix commands.
11233 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11234 (add_setshow_cmd_full): Likewise.
11235 (update_prefix_field_of_prefixed_commands): New function.
11236 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11237 update_prefix_field_of_prefixed_commands.
11238 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11239 addresses of remote_set_cmdlist and remote_show_cmdlist given
11240 as argument, not the address of an argument.
11241 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11242 * gdb/remote.c (_initialize_remote): Likewise.
11243
11244 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11245
11246 * cli/cli-cmds.c (alias_command): Check for an existing alias
11247 using lookup_cmd_composition, as valid_command_p is too strict
11248 and forbids aliases that are the prefix of an existing alias
11249 or command.
11250 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11251 command is properly recognised as a valid command.
11252
11253 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11254
11255 * unittests/help-doc-selftests.c: Rename to
11256 unittests/command-def-selftests.c
11257 * unittests/command-def-selftests.c (help_doc_tests): Update some
11258 comments.
11259 (command_structure_tests, traverse_command_structure): New namespace
11260 and function.
11261 (command_structure_invariants_tests): New function.
11262 (_initialize_command_def_selftests) Renamed from
11263 _initialize_help_doc_selftests, register command_structure_invariants
11264 selftest.
11265
11266 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11267
11268 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11269 an alias of 'show'.
11270
11271 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11272
11273 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11274 ada_is_fixed_point_type. Update all callers.
11275 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11276 all callers.
11277 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11278 Update all callers.
11279 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11280 print_fixed_point_type. Update all callers.
11281 * ada-valprint.c (ada_value_print_num): Replace call to
11282 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11283
11284 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11285
11286 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11287 processors.
11288 (cpu_supports_bts): Add CV_AMD case.
11289
11290 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11291 Simon Marchi <simon.marchi@efficios.com>
11292
11293 * infrun.c (stop_all_threads): Collect multiple wait events at
11294 each pass.
11295
11296 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11297
11298 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11299 type::code instead.
11300
11301 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11302
11303 * gdbtypes.h (struct type) <code, set_code>: New methods.
11304 (TYPE_CODE): Use type::code. Change all call sites used to set
11305 the code to use type::set_code instead.
11306
11307 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11308 Tom de Vries <tdevries@suse.de>
11309 Pedro Alves <palves@redhat.com>
11310
11311 PR threads/25478
11312 * infrun.c (stop_all_threads): Do NOT ignore
11313 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11314 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11315 received.
11316 (handle_no_resumed): Remove code handling a live inferior with no
11317 threads.
11318 * remote.c (has_single_non_exited_thread): New.
11319 (remote_target::update_thread_list): Do not delete a thread if is
11320 the last thread of the process.
11321 * thread.c (thread_select): Call delete_exited_threads instead of
11322 prune_threads.
11323
11324 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11325
11326 * infrun.c (stop_all_threads): Enable/disable thread events of all
11327 targets. Move a debug message denoting the end of the function
11328 into the SCOPED_EXIT block.
11329
11330 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11331
11332 * process-stratum-target.h: Include <set>.
11333 (all_non_exited_process_targets, switch_to_target_no_thread): New
11334 function declarations.
11335 * process-stratum-target.c (all_non_exited_process_targets)
11336 (switch_to_target_no_thread): New function implementations.
11337
11338 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11339
11340 * infrun.c (handle_inferior_event): Extract out a piece of code
11341 into...
11342 (mark_non_executing_threads): ...this new function.
11343
11344 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11345
11346 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11347 use.
11348
11349 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11350
11351 * regcache.c (regcache_read_pc_protected): New function
11352 implementation that returns 0 if the PC cannot read via
11353 'regcache_read_pc'.
11354 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11355 instead of 'regcache_read_pc'.
11356 (keep_going_pass_signal): Ditto.
11357
11358 2020-05-13 Tom Tromey <tromey@adacore.com>
11359
11360 * ada-lang.c (align_value): Remove.
11361 (ada_template_to_fixed_record_type_1): Use align_up.
11362
11363 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11364
11365 * async-event.c: Update the copyright year.
11366 * async-event.h: Update the copyright year.
11367
11368 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11369
11370 * objfiles.h (is_addr_in_objfile,
11371 shared_objfile_contains_address_p): Return bool.
11372 * objfile.c (is_addr_in_objfile,
11373 shared_objfile_contains_address_p): Return bool.
11374
11375 2020-05-11 Tom Tromey <tromey@adacore.com>
11376
11377 * cli/cli-cmds.c (info_command): Restore.
11378 (_initialize_cli_cmds): Use add_prefix_command for "info".
11379 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11380
11381 2020-05-11 Tom Tromey <tromey@adacore.com>
11382
11383 * ada-lang.c (ada_value_primitive_field): Now public.
11384 * ada-lang.h (ada_value_primitive_field): Declare.
11385 * ada-valprint.c (print_field_values): Use
11386 ada_value_primitive_field for wrapper fields.
11387
11388 2020-05-11 Tom de Vries <tdevries@suse.de>
11389
11390 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11391 MODULE_DOMAIN.
11392
11393 2020-05-11 Tom de Vries <tdevries@suse.de>
11394
11395 PR symtab/25941
11396 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11397 with length 0, if not gdb-produced.
11398 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11399
11400 2020-05-09 Tom de Vries <tdevries@suse.de>
11401
11402 PR gdb/25955
11403 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11404 calculation.
11405
11406 2020-05-09 Tom Tromey <tom@tromey.com>
11407
11408 * top.c (server_command): Now bool.
11409 * top.h (server_command): Now bool.
11410
11411 2020-05-08 Tom Tromey <tromey@adacore.com>
11412
11413 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11414 already being processed.
11415
11416 2020-05-08 Tom Tromey <tom@tromey.com>
11417
11418 * printcmd.c (struct display) <next>: Remove.
11419 <display>: New constructor.
11420 <exp_string>: Now a std::string.
11421 <enabled_p>: Now a bool.
11422 (display_number): Move definition earlier.
11423 (displays): Rename from display_chain. Now a std::vector.
11424 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11425 (display_command): Update.
11426 (do_one_display, disable_display)
11427 (enable_disable_display_command, do_enable_disable_display):
11428 Update.
11429 (free_display): Remove.
11430 (clear_displays): Rewrite.
11431 (delete_display): Update.
11432 (map_display_numbers): Use function_view. Remove "data"
11433 parameter. Update.
11434 (do_delete_display): Remove.
11435 (undisplay_command): Update.
11436 (do_one_display, do_displays, disable_display)
11437 (info_display_command): Update.
11438 (do_enable_disable_display): Remove.
11439 (enable_disable_display_command)
11440 (clear_dangling_display_expressions): Update.
11441
11442 2020-05-08 Tom Tromey <tom@tromey.com>
11443
11444 * symtab.c (set_symbol_cache_size)
11445 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11446 (maintenance_print_symbol_cache_statistics): Update.
11447 * symmisc.c (print_symbol_bcache_statistics)
11448 (print_objfile_statistics, maintenance_print_objfiles)
11449 (maintenance_info_symtabs, maintenance_check_symtabs)
11450 (maintenance_expand_symtabs, maintenance_info_line_tables):
11451 Update.
11452 * symfile-debug.c (set_debug_symfile): Update.
11453 * source.c (forget_cached_source_info): Update.
11454 * python/python.c (gdbpy_progspaces): Update.
11455 * psymtab.c (maintenance_info_psymtabs): Update.
11456 * probe.c (parse_probes): Update.
11457 * linespec.c (iterate_over_all_matching_symtabs)
11458 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11459 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11460 * exec.c (exec_target::close): Update.
11461 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11462 * breakpoint.c (print_one_breakpoint_location)
11463 (create_longjmp_master_breakpoint)
11464 (create_std_terminate_master_breakpoint): Update.
11465 * progspace.c (program_spaces): Now a std::vector.
11466 (maybe_new_address_space): Update.
11467 (add_program_space): Remove.
11468 (program_space::program_space): Update.
11469 (remove_program_space): Update.
11470 (number_of_program_spaces): Remove.
11471 (print_program_space, update_address_spaces): Update.
11472 * progspace.h (program_spaces): Change type.
11473 (ALL_PSPACES): Remove.
11474 (number_of_program_spaces): Don't declare.
11475 (struct program_space) <next>: Remove.
11476
11477 2020-05-08 Tom Tromey <tom@tromey.com>
11478
11479 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11480 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11481 (enable_break): Update.
11482 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11483 (frv_fdpic_find_canonical_descriptor): Update.
11484 (frv_fetch_objfile_link_map): Update.
11485 * progspace.c (program_space::free_all_objfiles): Update.
11486 (program_space::solibs): New method.
11487 * progspace.h (struct program_space) <solibs>: New method.
11488 * solist.h (master_so_list): Don't declare.
11489 (ALL_SO_LIBS): Remove.
11490 * solib.h (so_list_head): Remove.
11491 (update_solib_list): Update comment.
11492 * solib.c (master_so_list): Remove.
11493 (solib_used, update_solib_list, solib_add)
11494 (info_sharedlibrary_command, clear_solib)
11495 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11496
11497 2020-05-08 Tom Tromey <tom@tromey.com>
11498
11499 * extension.c (extension_languages): Now a std::array.
11500 (ALL_EXTENSION_LANGUAGES): Remove.
11501 (get_ext_lang_defn, get_ext_lang_of_file)
11502 (eval_ext_lang_from_control_command): Update.
11503 (finish_ext_lang_initialization)
11504 (auto_load_ext_lang_scripts_for_objfile)
11505 (ext_lang_type_printers::ext_lang_type_printers)
11506 (apply_ext_lang_type_printers)
11507 (ext_lang_type_printers::~ext_lang_type_printers)
11508 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11509 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11510 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11511 (get_matching_xmethod_workers, ext_lang_colorize)
11512 (ext_lang_before_prompt): Update.
11513 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11514
11515 2020-05-08 Tom Tromey <tom@tromey.com>
11516
11517 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11518 overload.
11519 <swap_string, m_string>: Remove.
11520 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11521 Update.
11522 * stabsread.c (define_symbol, read_type): Update.
11523 * linespec.c (find_linespec_symbols): Update.
11524 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11525 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11526 * dbxread.c (read_dbx_symtab): Update.
11527 * cp-support.h (cp_canonicalize_string_full)
11528 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11529 Return unique_xmalloc_ptr.
11530 * cp-support.c (inspect_type): Update.
11531 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11532 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11533 Likewise.
11534 * c-typeprint.c (print_name_maybe_canonical): Update.
11535 * break-catch-throw.c (check_status_exception_catchpoint):
11536 Update.
11537
11538 2020-05-08 Tom de Vries <tdevries@suse.de>
11539
11540 * infrun.c (follow_fork): Copy current_line and current_symtab to
11541 child thread.
11542
11543 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11544
11545 * async-event.c (struct async_signal_handler, struct
11546 async_event_handler): Reformat, remove typedef.
11547
11548 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11549
11550 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11551 access thistype->main_type->dyn_prop_list directly.
11552
11553 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11554
11555 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11556 (remove_dyn_prop): Remove. Update all users to use
11557 type::remove_dyn_prop.
11558 * gdbtypes.c (remove_dyn_prop): Rename to...
11559 (type::remove_dyn_prop): ... this.
11560
11561 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11562
11563 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11564 (add_dyn_prop): Remove. Update all users to use
11565 type::add_dyn_prop.
11566 * gdbtypes.c (add_dyn_prop): Rename to...
11567 (type::add_dyn_prop): ... this.
11568
11569 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11570
11571 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11572 (get_dyn_prop): Remove. Update all users to use
11573 type::dyn_prop.
11574 * gdbtypes.c (get_dyn_prop): Rename to...
11575 (type::dyn_prop): ... this.
11576
11577 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11578
11579 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11580
11581 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11582
11583 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11584 instruction, skip it if it's there.
11585
11586 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11587
11588 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11589
11590 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11591
11592 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11593 * gdbtypes.c (recursive_dump_type): Remove use of
11594 TYPE_INCOMPLETE.
11595
11596 2020-05-03 Tom Tromey <tom@tromey.com>
11597
11598 * breakpoint.c (catch_command, tcatch_command): Remove.
11599 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11600 add_show_prefix_cmd.
11601 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11602 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11603 Remove.
11604 (add_internal_problem_command): Use add_basic_prefix_cmd,
11605 add_show_prefix_cmd.
11606 * mips-tdep.c (set_mipsfpu_command): Remove.
11607 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11608 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11609 (_initialize_index_cache): Use add_basic_prefix_cmd.
11610 * memattr.c (dummy_cmd): Remove.
11611 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11612 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11613 (_initialize_tui_win): Use add_basic_prefix_cmd,
11614 add_show_prefix_cmd.
11615 * cli/cli-logging.c (set_logging_command): Remove.
11616 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11617 add_show_prefix_cmd.
11618 (show_logging_command): Remove.
11619 * target.c (target_command): Remove.
11620 (add_target): Use add_basic_prefix_cmd.
11621
11622 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11623
11624 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11625
11626 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11627
11628 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11629 info_command.
11630
11631 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11632
11633 * nbsd-nat.c (nbsd_enable_proc_events)
11634 (nbsd_nat_target::post_startup_inferior): Add.
11635 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11636 (nbsd_nat_target::update_thread_list): Rewrite.
11637 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11638 "PTRACE_LWP_CREATE".
11639 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11640
11641 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11642
11643 * stack.c (_initialize_stack): Remove duplicated creation
11644 of "frame" command and "f" alias.
11645
11646 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11647
11648 PR gdb/18706
11649 * gdbtypes.c (check_typedef): Calculate size of array of
11650 stubbed type.
11651
11652 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11653
11654 PR gdb/15559
11655 * i386-tdep.c (i386_push_dummy_call): Call
11656 i386_thiscall_push_dummy_call.
11657 (i386_thiscall_push_dummy_call): New function.
11658 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11659 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11660 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11661
11662 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11663
11664 * gdbarch.sh (do_read): Add shellcheck disable directive for
11665 warning SC2162.
11666
11667 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11668
11669 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11670 "referenced but not assigned" warning.
11671
11672 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11673
11674 * gdbarch.sh: Remove code that sets fallbackdefault.
11675
11676 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11677
11678 * gdbarch.sh: Use shell operators && and || instead of
11679 -a and -o.
11680
11681 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11682
11683 * gdbarch.sh: Use $(...) instead of `...`.
11684
11685 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11686
11687 * gdbarch.sh: Use double quotes around variables.
11688
11689 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11690
11691 * gdbarch.sh: Use %s with printf, instead of variables in the
11692 format string.
11693
11694 2020-04-29 Tom Tromey <tromey@adacore.com>
11695
11696 PR ada/25875:
11697 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11698 type fields here.
11699 (read_enumeration_type): Call
11700 update_enumeration_type_from_children later. Update comments.
11701 (process_enumeration_scope): Don't create type fields.
11702
11703 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11704
11705 * nbsd-tdep.c: Include "xml-syscall.h".
11706 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11707
11708 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11709
11710 * nbsd-nat.c: Include "sys/wait.h".
11711 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11712 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11713 (nbsd_nat_target::remove_exec_catchpoint)
11714 (nbsd_nat_target::set_syscall_catchpoint): Add.
11715 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11716 (nbsd_nat_target::insert_exec_catchpoint)
11717 (nbsd_nat_target::remove_exec_catchpoint)
11718 (nbsd_nat_target::set_syscall_catchpoint): Add.
11719 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11720 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11721 `nbsd_get_syscall_number'.
11722
11723 2020-04-29 Tom Tromey <tom@tromey.com>
11724
11725 * stack.c (print_block_frame_labels): Remove.
11726
11727 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11728
11729 PR gdb/17320
11730 * ada-valprint.c (val_print_packed_array_elements): Move array
11731 end bracket to new line.
11732 (ada_val_print_string): Remove extra spaces before first array
11733 element.
11734 * c-valprint.c (c_value_print_array): Likewise.
11735 * m2-valprint.c (m2_print_array_contents): Likewise.
11736 (m2_value_print_inner): Likewise.
11737 * p-valprint.c (pascal_value_print_inner): Likewise.
11738 * valprint.c (generic_val_print_array): Likewise.
11739 (value_print_array_elements): Move first array element and array
11740 end bracket to new line.
11741
11742 2020-04-29 Tom de Vries <tdevries@suse.de>
11743
11744 PR symtab/25889
11745 * linespec.c (find_method): Fix ix calculation.
11746
11747 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11748
11749 * syscalls/update-netbsd.sh: New file.
11750 * syscalls/netbsd.xml: Regenerate.
11751 * data-directory/Makefile.in: Register `netbsd.xml' in
11752 `SYSCALLS_FILES'.
11753
11754 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11755
11756 * syscalls/update-freebsd.sh: Add double quotes.
11757
11758 2020-04-28 Tom Tromey <tom@tromey.com>
11759
11760 * NEWS: Update.
11761 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11762 (cmdpy_init): Allow class_tui.
11763
11764 2020-04-28 Mark Williams <mark@myosotissp.com>
11765
11766 PR gdb/24480
11767 * dwarf2read.c: Add missing assingments to list_in_scope when
11768 start_symtab was already called.
11769
11770 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11771
11772 PR gdb/25881
11773 * dwarf2/read.c (offset_map_type): Use
11774 gdb:hash_enum<sect_offset> as hash function.
11775
11776 2020-04-28 Tom de Vries <tdevries@suse.de>
11777
11778 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11779 with DW_AT_signature.
11780
11781 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11782
11783 * configure.ac: Remove check for fs_base/gs_base in
11784 user_regs_struct.
11785 * configure: Re-generate.
11786 * config.in: Re-generate.
11787 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11788 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11789 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11790
11791 2020-04-27 Luis Machado <luis.machado@linaro.org>
11792
11793 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11794 problematic inline frame unwinding situation.
11795 * frame.c (frame_id_computed_p): New function.
11796 * frame.h (frame_id_computed_p): New prototype.
11797
11798 2020-04-26 Tom Tromey <tom@tromey.com>
11799
11800 * command.h (enum command_class) <class_pseudo>: Remove.
11801
11802 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11803
11804 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11805 and whitespace.
11806
11807 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11808
11809 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11810 `PT_GET_PROCESS_STATE' block.
11811
11812 2020-04-24 Tom Tromey <tom@tromey.com>
11813
11814 * symtab.h (symbol_get_demangled_name): Don't declare.
11815 * symtab.c (symbol_get_demangled_name): Remove.
11816 (general_symbol_info::natural_name)
11817 (general_symbol_info::demangled_name): Update.
11818
11819 2020-04-24 Tom Tromey <tom@tromey.com>
11820
11821 PR rust/25025:
11822 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11823
11824 2020-04-24 Tom Tromey <tom@tromey.com>
11825
11826 PR symtab/12707:
11827 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11828 exists.
11829 (new_symbol): Likewise.
11830 * compile/compile-object-load.c (get_out_value_type): Use
11831 symbol_matches_search_name.
11832
11833 2020-04-24 Tom Tromey <tom@tromey.com>
11834
11835 * dwarf2/read.c (add_partial_symbol): Do not call
11836 compute_and_set_names.
11837
11838 2020-04-24 Tom Tromey <tom@tromey.com>
11839
11840 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11841 overload.
11842
11843 2020-04-24 Tom Tromey <tom@tromey.com>
11844
11845 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11846 (add_psymbol_to_list): New overload. Make old overload call new
11847 one.
11848 * psympriv.h (add_psymbol_to_list): New overload.
11849
11850 2020-04-24 Tom Tromey <tom@tromey.com>
11851
11852 * dwarf2/read.c (partial_die_info::read) <case
11853 DW_AT_linkage_name>: Use value_as_string.
11854 (dwarf2_string_attr): Use value_as_string.
11855 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11856 method.
11857 * dwarf2/attribute.c (attribute::value_as_string): New method.
11858
11859 2020-04-24 Tom Tromey <tom@tromey.com>
11860
11861 * symtab.c (general_symbol_info::natural_name)
11862 (general_symbol_info::demangled_name): Check for language_rust.
11863
11864 2020-04-24 Tom Tromey <tom@tromey.com>
11865
11866 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11867 (dwarf2_physname): ... from here.
11868 (partial_die_info::read): Add Rust "{" hack.
11869
11870 2020-04-24 Tom Tromey <tom@tromey.com>
11871
11872 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11873 method.
11874 (symbol_set_demangled_name): Don't declare.
11875 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11876 symbol_set_demangled_name.
11877 (general_symbol_info::set_language)
11878 (general_symbol_info::compute_and_set_names): Update.
11879 * minsyms.c (minimal_symbol_reader::install): Update.
11880 * dwarf2/read.c (new_symbol): Update.
11881
11882 2020-04-24 Tom Tromey <tromey@adacore.com>
11883
11884 PR python/23662:
11885 * python/py-type.c (convert_field): Handle
11886 FIELD_LOC_KIND_DWARF_BLOCK.
11887 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11888 (typy_get_dynamic): Nw function.
11889 (type_object_getset): Add "dynamic".
11890 * NEWS: Add entry.
11891
11892 2020-04-24 Tom Tromey <tromey@adacore.com>
11893
11894 * ada-typeprint.c (print_choices, print_variant_part)
11895 (print_record_field_types_dynamic): New functions.
11896 (print_record_field_types): Use print_record_field_types_dynamic.
11897
11898 2020-04-24 Tom Tromey <tromey@adacore.com>
11899
11900 * dwarf2/read.c (handle_data_member_location): New overload.
11901 (dwarf2_add_field): Use it.
11902 (decode_locdesc): Add "computed" parameter. Update comment.
11903 * gdbtypes.c (is_dynamic_type_internal): Also look for
11904 FIELD_LOC_KIND_DWARF_BLOCK.
11905 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11906 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11907 virtual base classes.
11908 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11909 FIELD_LOC_KIND_DWARF_BLOCK.
11910
11911 2020-04-24 Tom Tromey <tromey@adacore.com>
11912
11913 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11914 * gdbtypes.c (is_dynamic_type_internal): Check
11915 TYPE_HAS_DYNAMIC_LENGTH.
11916 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11917 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11918 New macros.
11919 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11920 constant.
11921
11922 2020-04-24 Tom Tromey <tromey@adacore.com>
11923
11924 * dwarf2/read.c (struct variant_field): Rewrite.
11925 (struct variant_part_builder): New.
11926 (struct nextfield): Remove "variant" field. Add "offset".
11927 (struct field_info): Add "current_variant_part" and
11928 "variant_parts".
11929 (alloc_discriminant_info): Remove.
11930 (alloc_rust_variant): New function.
11931 (quirk_rust_enum): Update.
11932 (dwarf2_add_field): Set "offset" member. Don't handle
11933 DW_TAG_variant_part.
11934 (offset_map_type): New typedef.
11935 (convert_variant_range, create_one_variant)
11936 (create_one_variant_part, create_variant_parts)
11937 (add_variant_property): New functions.
11938 (dwarf2_attach_fields_to_type): Call add_variant_property.
11939 (read_structure_type): Don't handle DW_TAG_variant_part.
11940 (handle_variant_part, handle_variant): New functions.
11941 (handle_struct_member_die): Use them.
11942 (process_structure_scope): Don't handle variant parts.
11943 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11944 (struct discriminant_info): Remove.
11945 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11946 (struct main_type) <flag_discriminated_union>: Remove.
11947 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11948 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11949 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11950 Update.
11951 * valops.c (value_union_variant): Remove.
11952 * value.h (value_union_variant): Don't declare.
11953
11954 2020-04-24 Tom Tromey <tromey@adacore.com>
11955
11956 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11957 (ada_value_primitive_packed_val): Update.
11958 * ada-valprint.c (ada_value_print_1): Update.
11959 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11960 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11961 just an address. Use evaluate_for_locexpr_baton.
11962 (dwarf2_evaluate_property): Update.
11963 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11964 array_view.
11965 * findvar.c (default_read_var_value): Update.
11966 * gdbtypes.c (compute_variant_fields_inner)
11967 (resolve_dynamic_type_internal): Update.
11968 (resolve_dynamic_type): Change type of valaddr parameter.
11969 * gdbtypes.h (resolve_dynamic_type): Update.
11970 * valarith.c (value_subscripted_rvalue): Update.
11971 * value.c (value_from_contents_and_address): Update.
11972
11973 2020-04-24 Tom Tromey <tromey@adacore.com>
11974
11975 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11976 "push_initial_value" parameter.
11977 (dwarf2_evaluate_property): Likewise.
11978 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11979
11980 2020-04-24 Tom Tromey <tromey@adacore.com>
11981
11982 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11983 (variant::matches, compute_variant_fields_recurse)
11984 (compute_variant_fields_inner, compute_variant_fields): New
11985 functions.
11986 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11987 Use resolved_type after type is made.
11988 (operator==): Add new cases.
11989 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11990 (struct discriminant_range, struct variant, struct variant_part):
11991 New.
11992 (union dynamic_prop_data) <variant_parts, original_type>: New
11993 members.
11994 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11995 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11996 constants.
11997 * value.c (unpack_bits_as_long): Now public.
11998 * value.h (unpack_bits_as_long): Declare.
11999
12000 2020-04-24 Tom Tromey <tromey@adacore.com>
12001
12002 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
12003 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
12004
12005 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
12006
12007 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
12008
12009 2020-04-24 Kamil Rytarowski <n54@gmx.com>
12010
12011 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12012 (remove_fork_catchpoint, post_startup_inferior)
12013 (post_attach): Move...
12014 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12015 (remove_fork_catchpoint, post_startup_inferior)
12016 (post_attach): ...here.
12017 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12018 (remove_fork_catchpoint, post_startup_inferior)
12019 (post_attach): Move...
12020 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12021 (remove_fork_catchpoint, post_startup_inferior)
12022 (post_attach): ...here.
12023
12024 2020-04-24 Tom Tromey <tromey@adacore.com>
12025
12026 * nat/windows-nat.h (struct windows_thread_info)
12027 <pc_adjusted>: New member.
12028 * windows-nat.c (windows_fetch_one_register): Check
12029 pc_adjusted.
12030 (windows_nat_target::get_windows_debug_event)
12031 (windows_nat_target::wait): Set pc_adjusted.
12032
12033 2020-04-24 Tom de Vries <tdevries@suse.de>
12034
12035 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12036 Run gdb-add-index inside temp dir.
12037
12038 2020-04-23 Tom Tromey <tromey@adacore.com>
12039
12040 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12041 in loop.
12042
12043 2020-04-23 Luis Machado <luis.machado@linaro.org>
12044
12045 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12046 get_frame_register instead of gdbarch_unwind_pc.
12047
12048 2020-04-23 Tom de Vries <tdevries@suse.de>
12049
12050 * symtab.c (lookup_global_symbol): Prefer def over decl.
12051
12052 2020-04-23 Tom de Vries <tdevries@suse.de>
12053
12054 PR symtab/25807
12055 * block.c (best_symbol, better_symbol): Promote to external.
12056 * block.h (best_symbol, better_symbol): Declare.
12057 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12058 decl.
12059
12060 2020-04-23 Tom Tromey <tromey@adacore.com>
12061
12062 PR ada/25837:
12063 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12064 "const char *", not a "const std::string &".
12065 <name_and_matcher::operator==>: Update.
12066 * unittests/lookup_name_info-selftests.c: Change type of
12067 "result".
12068
12069 2020-04-23 Tom Tromey <tom@tromey.com>
12070
12071 * inferior.h (iterate_over_inferiors): Don't declare.
12072 * inferior.c (iterate_over_inferiors): Remove.
12073 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12074 Remove.
12075 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12076 use iterate_over_inferiors.
12077 (darwin_resume_inferior_it)
12078 (struct resume_inferior_threads_param)
12079 (darwin_resume_inferior_threads_it): Remove.
12080 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12081
12082 2020-04-23 Tom de Vries <tdevries@suse.de>
12083
12084 * blockframe.c (find_pc_partial_function): Use
12085 find_pc_sect_compunit_symtab rather than
12086 objfile->sf->qf->find_pc_sect_compunit_symtab.
12087
12088 2020-04-22 Tom de Vries <tdevries@suse.de>
12089
12090 PR symtab/25764
12091 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12092 in psymtabs.
12093
12094 2020-04-22 Tom de Vries <tdevries@suse.de>
12095
12096 PR symtab/25801
12097 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12098 symtabs.
12099
12100 2020-04-22 Tom de Vries <tdevries@suse.de>
12101
12102 PR symtab/25700
12103 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12104 CU if already created.
12105
12106 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12107
12108 * infrun.c (displaced_step_fixup): Switch to the event_thread
12109 before calling displaced_step_restore, not after.
12110
12111 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12112
12113 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12114 its inferior is not recorded by us.
12115 (record_btrace_target_open): Replace call to
12116 all_non_exited_threads () with call to current_inferior
12117 ()->non_exited_threads ().
12118 (record_btrace_target::stop_recording): Likewise.
12119 (record_btrace_target::close): Likewise.
12120 (record_btrace_target::wait): Likewise.
12121 (record_btrace_target::record_stop_replaying): Likewise.
12122
12123 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12124
12125 * btrace.c (btrace_enable): Throw an error on double enables and
12126 when enabling recording fails.
12127 (btrace_disable): Throw an error if the thread is not recorded.
12128
12129 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12130
12131 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12132 request if we do not have a thread_info.
12133
12134 2020-04-21 Tom de Vries <tdevries@suse.de>
12135
12136 PR gdb/25471
12137 * thread.c
12138 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12139 exception in get_frame_id.
12140
12141 2020-04-20 Tom Tromey <tromey@adacore.com>
12142
12143 * python/python.c (struct gdbpy_event): Mark move constructor as
12144 noexcept.
12145 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12146 constructor as noexcept.
12147 * completer.h (struct completion_result): Mark move constructor as
12148 noexcept.
12149 * completer.c (completion_result::completion_result): Use
12150 initialization style. Don't call reset_match_list.
12151
12152 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12153
12154 * MAINTAINERS (Write After Approval): Add myself.
12155
12156 2020-04-18 Tom Tromey <tom@tromey.com>
12157
12158 * windows-tdep.c (init_w32_command_list)
12159 (w32_prefix_command_valid): Restore.
12160 (_initialize_windows_tdep): Call init_w32_command_list.
12161
12162 2020-04-18 Tom Tromey <tom@tromey.com>
12163
12164 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12165 * value.c (value_fn_field): Update.
12166 * valops.c (find_function_in_inferior)
12167 (value_allocate_space_in_inferior): Update.
12168 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12169 Update.
12170 * tui/tui-source.c (tui_source_window::set_contents): Update.
12171 * symtab.c (lookup_global_or_static_symbol)
12172 (find_function_start_sal_1, skip_prologue_sal)
12173 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12174 * symmisc.c (dump_msymbols, dump_symtab_1)
12175 (maintenance_print_one_line_table): Update.
12176 * symfile.c (init_entry_point_info, section_is_mapped)
12177 (list_overlays_command, simple_read_overlay_table)
12178 (simple_overlay_update_1): Update.
12179 * stap-probe.c (handle_stap_probe): Update.
12180 * stabsread.c (dbx_init_float_type, define_symbol)
12181 (read_one_struct_field, read_enum_type, read_range_type): Update.
12182 * source.c (info_line_command): Update.
12183 * python/python.c (gdbpy_source_objfile_script)
12184 (gdbpy_execute_objfile_script): Update.
12185 * python/py-type.c (save_objfile_types): Update.
12186 * python/py-objfile.c (py_free_objfile): Update.
12187 * python/py-inferior.c (python_new_objfile): Update.
12188 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12189 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12190 (maintenance_check_psymtabs): Update.
12191 * printcmd.c (info_address_command): Update.
12192 * objfiles.h (struct objfile) <arch>: New method, from
12193 get_objfile_arch.
12194 (get_objfile_arch): Don't declare.
12195 * objfiles.c (get_objfile_arch): Remove.
12196 (filter_overlapping_sections): Update.
12197 * minsyms.c (msymbol_is_function): Update.
12198 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12199 (output_nondebug_symbol): Update.
12200 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12201 (mdebug_expand_psymtab): Update.
12202 * machoread.c (macho_add_oso_symfile): Update.
12203 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12204 Update.
12205 * linux-fork.c (checkpoint_command): Update.
12206 * linespec.c (convert_linespec_to_sals): Update.
12207 * jit.c (finalize_symtab): Update.
12208 * infrun.c (insert_exception_resume_from_probe): Update.
12209 * ia64-tdep.c (ia64_find_unwind_table): Update.
12210 * hppa-tdep.c (internalize_unwinds): Update.
12211 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12212 Update.
12213 * gcore.c (call_target_sbrk): Update.
12214 * elfread.c (record_minimal_symbol, elf_symtab_read)
12215 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12216 (elf_gnu_ifunc_resolve_by_got): Update.
12217 * dwarf2/read.c (create_addrmap_from_index)
12218 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12219 (read_debug_names_from_section)
12220 (process_psymtab_comp_unit_reader, add_partial_symbol)
12221 (add_partial_subprogram, process_full_comp_unit)
12222 (read_file_scope, read_func_scope, read_lexical_block_scope)
12223 (read_call_site_scope, dwarf2_ranges_read)
12224 (dwarf2_record_block_ranges, dwarf2_add_field)
12225 (mark_common_block_symbol_computed, read_tag_pointer_type)
12226 (read_tag_string_type, dwarf2_init_float_type)
12227 (dwarf2_init_complex_target_type, read_base_type)
12228 (partial_die_info::read, partial_die_info::read)
12229 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12230 (dwarf2_fetch_die_loc_sect_off): Update.
12231 * dwarf2/loc.c (dwarf2_find_location_expression)
12232 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12233 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12234 (dwarf2_loc_desc_get_symbol_read_needs)
12235 (locexpr_describe_location_piece, locexpr_describe_location_1)
12236 (loclist_describe_location): Update.
12237 * dwarf2/index-write.c (write_debug_names): Update.
12238 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12239 * dtrace-probe.c (dtrace_process_dof): Update.
12240 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12241 (process_one_symbol): Update.
12242 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12243 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12244 (coff_read_enum_type): Update.
12245 * cli/cli-cmds.c (edit_command, list_command): Update.
12246 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12247 * breakpoint.c (create_overlay_event_breakpoint)
12248 (create_longjmp_master_breakpoint)
12249 (create_std_terminate_master_breakpoint)
12250 (create_exception_master_breakpoint, get_sal_arch): Update.
12251 * block.c (block_gdbarch): Update.
12252 * annotate.c (annotate_source_line): Update.
12253
12254 2020-04-17 Tom Tromey <tromey@adacore.com>
12255
12256 * auto-load.c (show_auto_load_cmd): Remove.
12257 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12258 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12259 (maintenance_print_arc_command): Remove.
12260 * tui/tui-win.c (tui_command): Remove.
12261 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12262 * tui/tui-layout.c (tui_layout_command): Remove.
12263 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12264 * python/python.c (user_set_python, user_show_python): Remove.
12265 (_initialize_python): Use add_basic_prefix_cmd,
12266 add_show_prefix_cmd.
12267 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12268 (install_gdb_commands): Use add_basic_prefix_cmd,
12269 add_show_prefix_cmd.
12270 (info_guile_command): Remove.
12271 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12272 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12273 add_show_prefix_cmd.
12274 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12275 Remove do_set and do_show parameters.
12276 * cli/cli-style.c (set_style, show_style): Remove.
12277 (_initialize_cli_style): Use add_basic_prefix_cmd,
12278 add_show_prefix_cmd.
12279 (cli_style_option::add_setshow_commands): Remove do_set and
12280 do_show parameters.
12281 (cli_style_option::add_setshow_commands): Use
12282 add_basic_prefix_cmd, add_show_prefix_cmd.
12283 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12284 (set_style_name): Remove.
12285 * cli/cli-dump.c (dump_command, append_command): Remove.
12286 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12287 (tekhex_dump_command, binary_dump_command)
12288 (binary_append_command): Remove.
12289 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12290 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12291 (init_w32_command_list): Remove; move into ...
12292 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12293 * valprint.c (set_print, show_print, set_print_raw)
12294 (show_print_raw): Remove.
12295 (_initialize_valprint): Use add_basic_prefix_cmd,
12296 add_show_prefix_cmd.
12297 * typeprint.c (set_print_type, show_print_type): Remove.
12298 (_initialize_typeprint): Use add_basic_prefix_cmd,
12299 add_show_prefix_cmd.
12300 * record.c (set_record_command, show_record_command): Remove.
12301 (_initialize_record): Use add_basic_prefix_cmd,
12302 add_show_prefix_cmd.
12303 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12304 add_show_prefix_cmd.
12305 (info_command, show_command, set_debug, show_debug): Remove.
12306 * top.h (set_history, show_history): Don't declare.
12307 * top.c (set_history, show_history): Remove.
12308 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12309 (unset_tdesc_cmd): Remove.
12310 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12311 add_show_prefix_cmd.
12312 * symtab.c (info_module_command): Remove.
12313 (_initialize_symtab): Use add_basic_prefix_cmd.
12314 * symfile.c (overlay_command): Remove.
12315 (_initialize_symfile): Use add_basic_prefix_cmd.
12316 * sparc64-tdep.c (info_adi_command): Remove.
12317 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12318 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12319 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12320 add_show_prefix_cmd.
12321 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12322 (_initialize_serial): Use add_basic_prefix_cmd,
12323 add_show_prefix_cmd.
12324 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12325 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12326 add_show_prefix_cmd.
12327 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12328 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12329 add_show_prefix_cmd.
12330 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12331 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12332 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12333 add_show_prefix_cmd.
12334 * remote.c (remote_command, set_remote_cmd): Remove.
12335 (_initialize_remote): Use add_basic_prefix_cmd.
12336 * record-full.c (set_record_full_command)
12337 (show_record_full_command): Remove.
12338 (_initialize_record_full): Use add_basic_prefix_cmd,
12339 add_show_prefix_cmd.
12340 * record-btrace.c (cmd_set_record_btrace)
12341 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12342 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12343 (cmd_show_record_btrace_pt): Remove.
12344 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12345 add_show_prefix_cmd.
12346 * ravenscar-thread.c (set_ravenscar_command)
12347 (show_ravenscar_command): Remove.
12348 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12349 add_show_prefix_cmd.
12350 * mips-tdep.c (show_mips_command, set_mips_command)
12351 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12352 add_show_prefix_cmd.
12353 * maint.c (maintenance_command, maintenance_info_command)
12354 (maintenance_check_command, maintenance_print_command)
12355 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12356 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12357 add_show_prefix_cmd.
12358 (show_per_command_cmd): Remove.
12359 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12360 Remove.
12361 (maintenance_show_test_settings_cmd): Remove.
12362 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12363 add_show_prefix_cmd.
12364 * maint-test-options.c (maintenance_test_options_command):
12365 Remove.
12366 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12367 * macrocmd.c (macro_command): Remove
12368 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12369 * language.c (set_check, show_check): Remove.
12370 (_initialize_language): Use add_basic_prefix_cmd,
12371 add_show_prefix_cmd.
12372 * infcmd.c (unset_command): Remove.
12373 (_initialize_infcmd): Use add_basic_prefix_cmd.
12374 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12375 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12376 add_show_prefix_cmd.
12377 * go32-nat.c (go32_info_dos_command): Remove.
12378 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12379 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12380 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12381 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12382 (_initialize_frame): Use add_basic_prefix_cmd,
12383 add_show_prefix_cmd.
12384 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12385 (_initialize_dcache): Use add_basic_prefix_cmd,
12386 add_show_prefix_cmd.
12387 * cp-support.c (maint_cplus_command): Remove.
12388 (_initialize_cp_support): Use add_basic_prefix_cmd.
12389 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12390 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12391 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12392 add_basic_prefix_cmd, add_show_prefix_cmd.
12393 * breakpoint.c (save_command): Remove.
12394 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12395 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12396 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12397 add_show_prefix_cmd.
12398 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12399 (set_ada_command, show_ada_command): Remove.
12400 (_initialize_ada_language): Use add_basic_prefix_cmd,
12401 add_show_prefix_cmd.
12402 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12403
12404 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12405
12406 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12407 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12408
12409 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12410
12411 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12412 warning messages.
12413
12414 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12415
12416 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12417 import table is not at beginning of .idata section.
12418
12419 2020-04-16 Pedro Alves <palves@redhat.com>
12420
12421 * inferior.c (delete_inferior): Use delete operator directly
12422 instead of delete_program_space.
12423 * progspace.c (add_program_space): New, factored out from
12424 program_space::program_space.
12425 (remove_program_space): New, factored out from
12426 delete_program_space.
12427 (program_space::program_space): Remove intro comment. Rewrite.
12428 (program_space::~program_space): Remove intro comment. Call
12429 remove_program_space.
12430 (delete_program_space): Delete.
12431 * progspace.h (program_space::program_space): Make explicit. Move
12432 intro comment here, adjusted.
12433 (program_space::~program_space): Move intro comment here,
12434 adjusted.
12435 (delete_program_space): Remove.
12436
12437 2020-04-16 Tom Tromey <tromey@adacore.com>
12438
12439 * windows-nat.c (windows_nat::handle_access_violation): New
12440 function.
12441 * nat/windows-nat.h (handle_access_violation): Declare.
12442 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12443 windows-nat.c. Call handle_access_violation.
12444
12445 2020-04-16 Tom de Vries <tdevries@suse.de>
12446
12447 PR symtab/25791
12448 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12449 CUs without psymtab.
12450
12451 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12452
12453 * python/python.c (do_start_initialization): Don't call
12454 PyEval_InitThreads for Python 3.9 and beyond.
12455
12456 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12457
12458 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12459 thread functions.
12460 (obsd_nat_target::wait): Likewise.
12461
12462 2020-04-15 Tom Tromey <tromey@adacore.com>
12463
12464 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12465 (DEBUG_EXCEPT): Use debug_printf.
12466
12467 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12468
12469 * completer.c (class completion_tracker::completion_hash_entry)
12470 <hash_name>: New member function.
12471 (completion_tracker::discard_completions): New callback to hash a
12472 completion_hash_entry, pass this to htab_create_alloc.
12473
12474 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12475
12476 * windows-nat.c (windows_make_so): Warn rather than stopping with
12477 an error if realpath() fails.
12478
12479 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12480
12481 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12482 (nbsd_nat_target::info_proc): Add do_status.
12483
12484 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12485 Tom de Vries <tdevries@suse.de>
12486
12487 PR symtab/25718
12488 * psympriv.h (struct partial_symtab::read_symtab)
12489 (struct partial_symtab::expand_psymtab)
12490 (struct partial_symtab::read_dependencies): Update comments.
12491 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12492 read_symtab for includer.
12493 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12494 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12495 (struct dwarf2_include_psymtab::m_readin): Remove.
12496 (struct dwarf2_include_psymtab::includer): New member function.
12497 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12498
12499 2020-04-14 Tom de Vries <tdevries@suse.de>
12500
12501 PR symtab/25720
12502 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12503 with NULL symbol_matcher and lookup_name.
12504 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12505 and lookup_name.
12506 * dwarf2/read.c (dw2_expand_symtabs_matching)
12507 (dw2_debug_names_expand_symtabs_matching): Same.
12508 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12509 Make lookup_name a pointer. Update comment.
12510 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12511 lookup_name being a pointer.
12512 * symfile.c (expand_symtabs_matching): Same.
12513 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12514 * linespec.c (iterate_over_all_matching_symtabs): Same.
12515
12516 2020-04-13 Tom Tromey <tom@tromey.com>
12517
12518 * run-on-main-thread.c: Update include.
12519 * unittests/main-thread-selftests.c: Update include.
12520 * tui/tui-win.c: Update include.
12521 * tui/tui-io.c: Update include.
12522 * tui/tui-interp.c: Update include.
12523 * tui/tui-hooks.c: Update include.
12524 * top.h: Update include.
12525 * top.c: Update include.
12526 * ser-base.c: Update include.
12527 * remote.c: Update include.
12528 * remote-notif.c: Update include.
12529 * remote-fileio.c: Update include.
12530 * record-full.c: Update include.
12531 * record-btrace.c: Update include.
12532 * python/python.c: Update include.
12533 * posix-hdep.c: Update include.
12534 * mingw-hdep.c: Update include.
12535 * mi/mi-main.c: Update include.
12536 * mi/mi-interp.c: Update include.
12537 * main.c: Update include.
12538 * linux-nat.c: Update include.
12539 * interps.c: Update include.
12540 * infrun.c: Update include.
12541 * inf-loop.c: Update include.
12542 * event-top.c: Update include.
12543 * event-loop.c: Move to ../gdbsupport/.
12544 * event-loop.h: Move to ../gdbsupport/.
12545 * async-event.h: Update include.
12546 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12547
12548 2020-04-13 Tom Tromey <tom@tromey.com>
12549
12550 * tui/tui-win.c: Include async-event.h.
12551 * remote.c: Include async-event.h.
12552 * remote-notif.c: Include async-event.h.
12553 * record-full.c: Include async-event.h.
12554 * record-btrace.c: Include async-event.h.
12555 * infrun.c: Include async-event.h.
12556 * event-top.c: Include async-event.h.
12557 * event-loop.h: Move some declarations to async-event.h.
12558 * event-loop.c: Don't include ser-event.h or top.h. Move some
12559 code to async-event.c.
12560 * async-event.h: New file.
12561 * async-event.c: New file.
12562 * Makefile.in (COMMON_SFILES): Add async-event.c.
12563 (HFILES_NO_SRCDIR): Add async-event.h.
12564
12565 2020-04-13 Tom Tromey <tom@tromey.com>
12566
12567 * utils.c (flush_streams): New function.
12568 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12569
12570 2020-04-13 Tom Tromey <tom@tromey.com>
12571
12572 * event-loop.c (handle_file_event): Use warning, not
12573 printf_unfiltered.
12574
12575 2020-04-13 Tom Tromey <tom@tromey.com>
12576
12577 * event-loop.c: Include <chrono>.
12578
12579 2020-04-13 Tom Tromey <tom@tromey.com>
12580
12581 * gdb_select.h: Move to ../gdbsupport/.
12582 * event-loop.c: Update include path.
12583 * top.c: Update include path.
12584 * ser-base.c: Update include path.
12585 * ui-file.c: Update include path.
12586 * ser-tcp.c: Update include path.
12587 * guile/scm-ports.c: Update include path.
12588 * posix-hdep.c: Update include path.
12589 * ser-unix.c: Update include path.
12590 * gdb_usleep.c: Update include path.
12591 * mingw-hdep.c: Update include path.
12592 * inflow.c: Update include path.
12593 * infrun.c: Update include path.
12594 * event-top.c: Update include path.
12595
12596 2020-04-13 Tom Tromey <tom@tromey.com>
12597
12598 * configure: Rebuild.
12599 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12600
12601 2020-04-13 Tom Tromey <tom@tromey.com>
12602
12603 * event-loop.h (start_event_loop): Don't declare.
12604 * event-loop.c (start_event_loop): Move...
12605 * main.c (start_event_loop): ...here. Now static.
12606
12607 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12608
12609 * MAINTAINERS: Update my email address.
12610
12611 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12612
12613 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12614 IP_ALL.
12615
12616 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12617
12618 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12619 (nbsd_nat_target::info_proc): Add do_cmdline.
12620
12621 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12622
12623 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12624 (nbsd_nat_target::info_proc): Add do_cwd.
12625
12626 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12627
12628 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12629
12630 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12631
12632 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12633 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12634 (nbsd_nat_target::info_proc): New functions.
12635 * nbsd-nat.c (kinfo_get_vmmap): New function.
12636 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12637 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12638 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12639 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12640 functions.
12641 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12642 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12643 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12644 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12645 (KINFO_VME_FLAG_GROWS_DOWN): New.
12646
12647 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12648
12649 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12650 bit shift.
12651
12652 2020-04-10 Tom Tromey <tromey@adacore.com>
12653
12654 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12655
12656 2020-04-10 Tom Tromey <tromey@adacore.com>
12657
12658 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12659 separate debug files.
12660
12661 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12662
12663 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12664 Move to...
12665 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12666 ... here.
12667 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12668 Check for STATUS_WX86_BREAKPOINT.
12669 (windows_nat_target::wait): Same.
12670
12671 2020-04-10 Tom de Vries <tdevries@suse.de>
12672
12673 PR cli/25808
12674 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12675
12676 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12677
12678 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12679 (Write After Approval): Remove Tom de Vries.
12680
12681 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12682
12683 revert partially:
12684 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12685
12686 * buildsym.c (record_line): Fix undefined behavior and preserve
12687 lines at eof.
12688
12689 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12690
12691 * auxv.h (svr4_auxv_parse): New.
12692 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12693 and generic_auxv_parse.
12694 (svr4_auxv_parse): Add.
12695 * obsd-tdep.c: Include "auxv.h".
12696 (obsd_auxv_parse): Remove.
12697 (obsd_init_abi): Remove comment.
12698 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12699 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12700 * nbsd-tdep.c: Include "auxv.h".
12701 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12702
12703 2020-04-08 Tom Tromey <tromey@adacore.com>
12704
12705 * nat/windows-nat.h (last_wait_event): Don't declare.
12706 (wait_for_debug_event): Update comment.
12707 * nat/windows-nat.c (last_wait_event): Now static.
12708
12709 2020-04-08 Tom Tromey <tromey@adacore.com>
12710
12711 * windows-nat.c (wait_for_debug_event): Move to
12712 nat/windows-nat.c.
12713 * nat/windows-nat.h (wait_for_debug_event): Declare.
12714 * nat/windows-nat.c (wait_for_debug_event): Move from
12715 windows-nat.c. No longer static.
12716
12717 2020-04-08 Tom Tromey <tromey@adacore.com>
12718
12719 * windows-nat.c (get_windows_debug_event): Use
12720 fetch_pending_stop.
12721 * nat/windows-nat.h (fetch_pending_stop): Declare.
12722 * nat/windows-nat.c (fetch_pending_stop): New function.
12723
12724 2020-04-08 Tom Tromey <tromey@adacore.com>
12725
12726 * windows-nat.c (windows_continue): Use matching_pending_stop and
12727 continue_last_debug_event.
12728 * nat/windows-nat.h (matching_pending_stop)
12729 (continue_last_debug_event): Declare.
12730 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12731 (matching_pending_stop, continue_last_debug_event): New
12732 functions.
12733
12734 2020-04-08 Tom Tromey <tromey@adacore.com>
12735
12736 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12737 (handle_exception_result): Move to nat/windows-nat.h.
12738 (DEBUG_EXCEPTION_SIMPLE): Remove.
12739 (windows_nat::handle_ms_vc_exception): New function.
12740 (handle_exception): Move to nat/windows-nat.c.
12741 (get_windows_debug_event): Update.
12742 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12743 nat/windows-nat.c.
12744 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12745 (handle_exception_result): Move from windows-nat.c.
12746 (handle_exception): Declare.
12747 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12748 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12749 windows-nat.c.
12750
12751 2020-04-08 Tom Tromey <tromey@adacore.com>
12752
12753 * windows-nat.c (exception_count, event_count): Remove.
12754 (handle_exception, get_windows_debug_event)
12755 (do_initial_windows_stuff): Update.
12756
12757 2020-04-08 Tom Tromey <tromey@adacore.com>
12758
12759 * windows-nat.c (windows_nat::handle_load_dll)
12760 (windows_nat::handle_unload_dll): Rename. No longer static.
12761 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12762 Declare.
12763
12764 2020-04-08 Tom Tromey <tromey@adacore.com>
12765
12766 * complaints.h (stop_whining): Declare at top-level.
12767 (complaint): Don't declare stop_whining.
12768
12769 2020-04-08 Tom Tromey <tromey@adacore.com>
12770
12771 * windows-nat.c (windows_nat::handle_output_debug_string):
12772 Rename. No longer static.
12773 * nat/windows-nat.h (handle_output_debug_string): Declare.
12774
12775 2020-04-08 Tom Tromey <tromey@adacore.com>
12776
12777 * windows-nat.c (current_process_handle, current_process_id)
12778 (main_thread_id, last_sig, current_event, last_wait_event)
12779 (current_windows_thread, desired_stop_thread_id, pending_stops)
12780 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12781 (display_selectors, fake_create_process)
12782 (get_windows_debug_event): Update.
12783 * nat/windows-nat.h (current_process_handle, current_process_id)
12784 (main_thread_id, last_sig, current_event, last_wait_event)
12785 (current_windows_thread, desired_stop_thread_id, pending_stops)
12786 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12787 * nat/windows-nat.c (current_process_handle, current_process_id)
12788 (main_thread_id, last_sig, current_event, last_wait_event)
12789 (current_windows_thread, desired_stop_thread_id, pending_stops)
12790 (siginfo_er): New globals. Move from windows-nat.c.
12791
12792 2020-04-08 Tom Tromey <tromey@adacore.com>
12793
12794 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12795 (handle_load_dll): Update.
12796 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12797
12798 2020-04-08 Tom Tromey <tromey@adacore.com>
12799
12800 * windows-nat.c (enum thread_disposition_type): Move to
12801 nat/windows-nat.h.
12802 (windows_nat::thread_rec): Rename from thread_rec. No longer
12803 static.
12804 (windows_add_thread, windows_nat_target::fetch_registers)
12805 (windows_nat_target::store_registers, handle_exception)
12806 (windows_nat_target::resume, get_windows_debug_event)
12807 (windows_nat_target::get_tib_address)
12808 (windows_nat_target::thread_name)
12809 (windows_nat_target::thread_alive): Update.
12810 * nat/windows-nat.h (enum thread_disposition_type): Move from
12811 windows-nat.c.
12812 (thread_rec): Declare.
12813
12814 2020-04-08 Tom Tromey <tromey@adacore.com>
12815
12816 * windows-nat.c: Add "using namespace".
12817 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12818 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12819
12820 2020-04-08 Tom Tromey <tromey@adacore.com>
12821
12822 * nat/windows-nat.h (struct windows_thread_info): Declare
12823 destructor.
12824 * nat/windows-nat.c (~windows_thread_info): New.
12825
12826 2020-04-08 Tom Tromey <tromey@adacore.com>
12827
12828 PR gdb/22992
12829 * windows-nat.c (current_event): Update comment.
12830 (last_wait_event, desired_stop_thread_id): New globals.
12831 (struct pending_stop): New.
12832 (pending_stops): New global.
12833 (windows_nat_target) <stopped_by_sw_breakpoint>
12834 <supports_stopped_by_sw_breakpoint>: New methods.
12835 (windows_fetch_one_register): Add assertions. Adjust PC.
12836 (windows_continue): Handle pending stops. Suspend other threads
12837 when stepping. Use last_wait_event
12838 (wait_for_debug_event): New function.
12839 (get_windows_debug_event): Use wait_for_debug_event. Handle
12840 pending stops. Queue spurious stops.
12841 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12842 (windows_nat_target::kill): Use wait_for_debug_event.
12843 * nat/windows-nat.h (struct windows_thread_info)
12844 <stopped_at_software_breakpoint>: New field.
12845 * nat/windows-nat.c (windows_thread_info::resume): Clear
12846 stopped_at_software_breakpoint.
12847
12848 2020-04-08 Tom Tromey <tromey@adacore.com>
12849
12850 * windows-nat.c (enum thread_disposition_type): New.
12851 (thread_rec): Replace "get_context" parameter with "disposition";
12852 change type.
12853 (windows_add_thread, windows_nat_target::fetch_registers)
12854 (windows_nat_target::store_registers, handle_exception)
12855 (windows_nat_target::resume, get_windows_debug_event)
12856 (windows_nat_target::get_tib_address)
12857 (windows_nat_target::thread_name)
12858 (windows_nat_target::thread_alive): Update.
12859
12860 2020-04-08 Tom Tromey <tromey@adacore.com>
12861
12862 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12863 (windows_continue): Use windows_continue::resume.
12864 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12865 resume>: Declare new methods.
12866 * nat/windows-nat.c: New file.
12867 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12868
12869 2020-04-08 Tom Tromey <tromey@adacore.com>
12870
12871 * windows-nat.c (windows_add_thread, windows_delete_thread)
12872 (windows_nat_target::fetch_registers)
12873 (windows_nat_target::store_registers, fake_create_process)
12874 (windows_nat_target::resume, windows_nat_target::resume)
12875 (get_windows_debug_event, windows_nat_target::wait)
12876 (windows_nat_target::pid_to_str)
12877 (windows_nat_target::get_tib_address)
12878 (windows_nat_target::get_ada_task_ptid)
12879 (windows_nat_target::thread_name)
12880 (windows_nat_target::thread_alive): Use lwp, not tid.
12881
12882 2020-04-08 Tom Tromey <tromey@adacore.com>
12883
12884 * windows-nat.c (handle_exception)
12885 (windows_nat_target::thread_name): Update.
12886 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12887 <name>: Now unique_xmalloc_ptr.
12888
12889 2020-04-08 Tom Tromey <tromey@adacore.com>
12890
12891 * windows-nat.c (thread_rec)
12892 (windows_nat_target::fetch_registers): Update.
12893 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12894 Update comment.
12895 <debug_registers_changed, reload_context>: Now bool.
12896
12897 2020-04-08 Tom Tromey <tromey@adacore.com>
12898
12899 * windows-nat.c (windows_add_thread): Use new.
12900 (windows_init_thread_list, windows_delete_thread): Use delete.
12901 (get_windows_debug_event): Update.
12902 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12903 destructor, and initializers.
12904
12905 2020-04-08 Tom Tromey <tromey@adacore.com>
12906
12907 * windows-nat.c (struct windows_thread_info): Remove.
12908 * nat/windows-nat.h: New file.
12909
12910 2020-04-08 Tom Tromey <tromey@adacore.com>
12911
12912 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12913 (thread_rec, windows_add_thread, windows_delete_thread)
12914 (windows_continue): Update.
12915
12916 2020-04-08 Tom Tromey <tromey@adacore.com>
12917
12918 * windows-nat.c (struct windows_thread_info): Remove typedef.
12919 (thread_head): Remove.
12920 (thread_list): New global.
12921 (thread_rec, windows_add_thread, windows_init_thread_list)
12922 (windows_delete_thread, windows_continue): Update.
12923
12924 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12925
12926 * windows-tdep.h (windows_init_abi): Add comment.
12927 (cygwin_init_abi): New declaration.
12928 * windows-tdep.c: Split signal enumeration in two, one for
12929 Windows and one for Cygwin.
12930 (windows_gdb_signal_to_target): Only deal with signal of the
12931 Windows OS ABI.
12932 (cygwin_gdb_signal_to_target): New function.
12933 (windows_init_abi): Rename to windows_init_abi_common, don't set
12934 gdb_signal_to_target gdbarch method. Add new new function with
12935 this name.
12936 (cygwin_init_abi): New function.
12937 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12938 comment. Don't call windows_init_abi.
12939 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12940 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12941 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12942 i386_windows_init_abi_common, don't call windows_init_abi. Add
12943 a new function of this name.
12944 (i386_cygwin_init_abi): New function.
12945 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12946 OS ABI Cygwin.
12947
12948 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12949
12950 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12951 parameter.c.
12952 (dwarf2_read_gdb_index): Update.
12953
12954 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12955
12956 * nbsd-tdep.c: Include "objfiles.h".
12957 (nbsd_skip_solib_resolver): New.
12958 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12959
12960 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12961
12962 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12963 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12964 with DW_LLE_base_addressx are being emitted in DWARFv5.
12965 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12966 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12967 unsigned integer.
12968
12969 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12970
12971 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12972 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12973 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12974 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12975 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12976 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12977 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12978
12979
12980 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12981
12982 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12983 (read_loclist_index): New function definition.
12984 (lookup_loclist_base): New function definition.
12985 (read_loclist_header): New function definition.
12986 (dwarf2_cu): Add loclist_base and loclist_header field.
12987 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12988 (read_full_die_1): Read the value of DW_AT_loclists_base.
12989 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12990 (read_attribute_value): Handle DW_FORM_loclistx.
12991 (skip_one_die): Handle DW_FORM_loclistx.
12992 (loclist_header): New structure declaration.
12993 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12994
12995 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12996
12997 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12998 constructor. Remove `addr` parameter from other constructor and
12999 add `per_cu` parameter.
13000 * dwarf2/read.c (create_partial_symtab): Update.
13001
13002 2020-04-07 Tom de Vries <tdevries@suse.de>
13003
13004 PR symtab/25796
13005 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
13006 (partial_die_info::fixup): Inherit has_const_value.
13007
13008 2020-04-07 Tom de Vries <tdevries@suse.de>
13009
13010 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13011 symbols without address.
13012
13013 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13014
13015 * nbsd-nat.h (struct thread_info): Add forward declaration.
13016 (nbsd_nat_target::thread_alive): Add.
13017 (nbsd_nat_target::thread_name): Likewise.
13018 (nbsd_nat_target::update_thread_list): Likewise.
13019 (update_thread_list::post_attach): Likewise.
13020 (post_attach::pid_to_str): Likewise.
13021 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13022 (nbsd_thread_lister): Add.
13023 (nbsd_nat_target::thread_alive): Likewise.
13024 (nbsd_nat_target::thread_name): Likewise.
13025 (nbsd_add_threads): Likewise.
13026 (update_thread_list::post_attach): Likewise.
13027 (nbsd_nat_target::update_thread_list): Likewise.
13028 (post_attach::pid_to_str): Likewise.
13029
13030 2020-04-06 Tom Tromey <tromey@adacore.com>
13031
13032 * ada-valprint.c (print_variant_part): Extract the variant field.
13033 (print_field_values): Use the field as the outer value when
13034 recursing.
13035
13036 2020-04-06 Tom Tromey <tromey@adacore.com>
13037
13038 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13039 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13040 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13041 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13042 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13043
13044 2020-04-06 Tom Tromey <tromey@adacore.com>
13045
13046 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13047 TYPE_CODE_ERROR.
13048
13049 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13050
13051 * nbsd-tdep.c: Include "gdbarch.h".
13052 Define enum with NetBSD signal numbers.
13053 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13054 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13055 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13056 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13057 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13058 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13059 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13060 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13061 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13062 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13063 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13064 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13065
13066 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
13067
13068 PR gdb/25325
13069 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13070
13071 2020-04-03 Tom Tromey <tromey@adacore.com>
13072
13073 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13074 Read constant block.
13075
13076 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13077
13078 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13079 (gdb_bfd_get_full_section_contents): New declaration.
13080 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13081 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13082 gdb_bfd_get_full_section_contents.
13083
13084 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13085
13086 * exec.c (build_section_table): Replace internal_error with
13087 gdb_assert.
13088 (section_table_xfer_memory_partial): Likewise.
13089 * mdebugread.c (parse_partial_symbols): Likewise.
13090 * psymtab.c (lookup_partial_symbol): Likewise.
13091 * utils.c (wrap_here): Likewise.
13092
13093 2020-04-02 Tom Tromey <tromey@adacore.com>
13094
13095 * f-lang.c (build_fortran_types): Use arch_type to initialize
13096 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13097
13098 2020-04-02 Tom Tromey <tromey@adacore.com>
13099
13100 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13101 of attributes.
13102
13103 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13104 Bernd Edlinger <bernd.edlinger@hotmail.de>
13105 Tom Tromey <tromey@adacore.com>
13106
13107 * buildsym.c (buildsym_compunit::record_line): Remove
13108 deduplication code.
13109
13110 2020-04-02 Tom de Vries <tdevries@suse.de>
13111
13112 PR ada/24671
13113 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13114
13115 2020-04-02 Tom de Vries <tdevries@suse.de>
13116
13117 * dwarf2/read.c (dwarf2_gdb_index_functions,
13118 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13119 NULL.
13120 * psymtab.c (psym_lookup_global_symbol_language): New function.
13121 (psym_functions): Init psym_lookup_global_symbol_language with
13122 psym_lookup_global_symbol_language.
13123 * symfile-debug.c (debug_sym_quick_functions): Init
13124 lookup_global_symbol_language with NULL.
13125 * symfile.c (set_initial_language): Remove fixme comment.
13126 * symfile.h (struct quick_symbol_functions): Add
13127 lookup_global_symbol_language.
13128 * symtab.c (find_quick_global_symbol_language): New function.
13129 (find_main_name): Use find_quick_global_symbol_language.
13130
13131 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13132
13133 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13134
13135 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13136
13137 * buildsym.c (record_line): Fix undefined behavior and preserve
13138 lines at eof.
13139
13140 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13141
13142 * buildsym.c (record_line): Fix the resizing condition.
13143
13144 2020-04-01 Tom Tromey <tom@tromey.com>
13145
13146 * value.h (value_literal_complex): Add comment.
13147 * valops.c (value_literal_complex): Refer to value.h.
13148
13149 2020-04-01 Tom Tromey <tom@tromey.com>
13150
13151 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13152 (scalar_type): New rule, from typebase.
13153 (typebase): Use scalar_type. Recognize complex types.
13154 (field_name): Handle FLOAT_KEYWORD.
13155 (ident_tokens): Add _Complex and __complex__.
13156
13157 2020-04-01 Tom Tromey <tom@tromey.com>
13158
13159 PR exp/25299:
13160 * valarith.c (promotion_type, complex_binop): New functions.
13161 (scalar_binop): Handle complex numbers. Use promotion_type.
13162 (value_pos, value_neg, value_complement): Handle complex numbers.
13163
13164 2020-04-01 Tom Tromey <tom@tromey.com>
13165
13166 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13167 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13168 (parse_number): Handle complex numbers.
13169
13170 2020-04-01 Tom Tromey <tom@tromey.com>
13171
13172 * c-valprint.c (c_decorations): Change complex suffix to "i".
13173
13174 2020-04-01 Tom Tromey <tom@tromey.com>
13175
13176 * valprint.c (generic_value_print_complex): Use accessors.
13177 * value.h (value_real_part, value_imaginary_part): Declare.
13178 * valops.c (value_real_part, value_imaginary_part): New
13179 functions.
13180 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13181
13182 2020-04-01 Tom Tromey <tom@tromey.com>
13183
13184 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13185 (read_range_type): Update.
13186 * mdebugread.c (basic_type): Update.
13187 * go-lang.c (build_go_types): Use init_complex_type.
13188 * gdbtypes.h (struct main_type) <complex_type>: New member.
13189 (init_complex_type): Update.
13190 (arch_complex_type): Don't declare.
13191 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13192 Make name if none given. Use alloc_type_copy. Look for cached
13193 complex type.
13194 (arch_complex_type): Remove.
13195 (gdbtypes_post_init): Use init_complex_type.
13196 * f-lang.c (build_fortran_types): Use init_complex_type.
13197 * dwarf2/read.c (read_base_type): Update.
13198 * d-lang.c (build_d_types): Use init_complex_type.
13199 * ctfread.c (read_base_type): Update.
13200
13201 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13202
13203 * infrun.c (stop_all_threads): Update assertion, plus when
13204 stopping threads, take into account that we might be trying
13205 to stop an all-stop target.
13206 (stop_waiting): Call 'stop_all_threads' if there exists a
13207 non-stop target.
13208
13209 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13210
13211 * target.h (exists_non_stop_target): New function declaration.
13212 * target.c (exists_non_stop_target): New function.
13213
13214 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13215
13216 PR gdb/24789
13217 * eval.c (is_integral_or_integral_reference): New function.
13218 (evaluate_subexp_standard): Allow integer references in
13219 pointer arithmetic.
13220
13221 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13222
13223 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13224 check for no ptid in the stop reply when the target is non-stop.
13225
13226 2020-04-01 Tom Tromey <tromey@adacore.com>
13227
13228 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13229 "name" parameter to rvalue reference. Initialize m_name_holder.
13230 <lookup_name_info>: New overloads.
13231 <name>: Return gdb::string_view.
13232 <c_str>: New method.
13233 <make_ignore_params>: Update.
13234 <search_name_hash>: Update.
13235 <language_lookup_name>: Return const char *.
13236 <m_name>: Change type.
13237 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13238 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13239 (lookup_name_info::match_any): Update.
13240 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13241 Update.
13242 * minsyms.c (linkage_name_str): Update.
13243 * language.c (default_symbol_name_matcher): Update.
13244 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13245 Update.
13246 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13247 (ada_lookup_name_info::ada_lookup_name_info): Update.
13248 (literal_symbol_name_matcher): Update.
13249
13250 2020-04-01 Tom Tromey <tromey@adacore.com>
13251
13252 * psymtab.c (psymtab_search_name): Remove function.
13253 (psym_lookup_symbol): Create search name and lookup name here.
13254 (lookup_partial_symbol): Remove "name" parameter; add
13255 lookup_name.
13256 (psym_expand_symtabs_for_function): Update.
13257
13258 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13259
13260 PR tui/25597:
13261 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13262
13263 2020-03-31 Tom Tromey <tromey@adacore.com>
13264
13265 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13266 memcpy.
13267
13268 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13269
13270 * features/riscv/32bit-csr.xml: Regenerated.
13271 * features/riscv/64bit-csr.xml: Regenerated.
13272
13273 2020-03-30 Tom Tromey <tromey@adacore.com>
13274
13275 * ada-valprint.c (print_variant_part): Update.
13276 * ada-lang.h (ada_which_variant_applies): Update.
13277 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13278 outer_valaddr parameters; replace with "outer" value parameter.
13279 (to_fixed_variant_branch_type): Update.
13280
13281 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13282
13283 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13284 <list>. Remove inclusion of observable.h.
13285 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13286 (struct arch_lwp_info): New struct.
13287 (class ppc_linux_dreg_interface): New class.
13288 (struct ppc_linux_process_info): New struct.
13289 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13290 <low_new_clone, low_forget_process, low_prepare_to_resume>
13291 <copy_thread_dreg_state, mark_thread_stale>
13292 <mark_debug_registers_changed, register_hw_breakpoint>
13293 <clear_hw_breakpoint, register_wp, clear_wp>
13294 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13295 <num_memory_accesses, get_trigger_type>
13296 <create_watchpoint_request, hwdebug_point_cmp>
13297 <init_arch_lwp_info, get_arch_lwp_info>
13298 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13299 methods.
13300 <struct ptid_hash>: New inner struct.
13301 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13302 members.
13303 (saved_dabr_value, hwdebug_info, max_slots_number)
13304 (struct hw_break_tuple, struct thread_points, ppc_threads)
13305 (have_ptrace_hwdebug_interface)
13306 (hwdebug_find_thread_points_by_tid)
13307 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13308 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13309 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13310 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13311 use m_dreg_interface.
13312 (hwdebug_point_cmp): Change to...
13313 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13314 reference arguments instead of pointers.
13315 (ppc_linux_nat_target::ranged_break_num_registers): Use
13316 m_dreg_interface.
13317 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13318 m_dreg_interface. Call register_hw_breakpoint.
13319 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13320 m_dreg_interface. Call clear_hw_breakpoint.
13321 (get_trigger_type): Change to...
13322 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13323 comment.
13324 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13325 use m_dreg_interface. Call register_hw_breakpoint.
13326 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13327 use m_dreg_interface. Call clear_hw_breakpoint.
13328 (can_use_watchpoint_cond_accel): Change to...
13329 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13330 method. Update comment, use m_dreg_interface and
13331 m_process_info.
13332 (calculate_dvc): Change to...
13333 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13334 m_dreg_interface.
13335 (num_memory_accesses): Change to...
13336 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13337 (check_condition): Change to...
13338 (ppc_linux_nat_target::check_condition): ...this method.
13339 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13340 comment, use m_dreg_interface.
13341 (create_watchpoint_request): Change to...
13342 (ppc_linux_nat_target::create_watchpoint_request): ...this
13343 method. Use m_dreg_interface.
13344 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13345 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13346 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13347 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13348 (ppc_linux_nat_target::low_forget_process)
13349 (ppc_linux_nat_target::low_new_fork)
13350 (ppc_linux_nat_target::low_new_clone)
13351 (ppc_linux_nat_target::low_delete_thread)
13352 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13353 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13354 only call mark_thread_stale.
13355 (ppc_linux_thread_exit): Remove.
13356 (ppc_linux_nat_target::stopped_data_address): Change to...
13357 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13358 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13359 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13360 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13361 comment. Call low_stopped_data_address.
13362 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13363 m_dreg_interface.
13364 (ppc_linux_nat_target::masked_watch_num_registers): Use
13365 m_dreg_interface.
13366 (ppc_linux_nat_target::copy_thread_dreg_state)
13367 (ppc_linux_nat_target::mark_thread_stale)
13368 (ppc_linux_nat_target::mark_debug_registers_changed)
13369 (ppc_linux_nat_target::register_hw_breakpoint)
13370 (ppc_linux_nat_target::clear_hw_breakpoint)
13371 (ppc_linux_nat_target::register_wp)
13372 (ppc_linux_nat_target::clear_wp)
13373 (ppc_linux_nat_target::init_arch_lwp_info)
13374 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13375 (_initialize_ppc_linux_nat): Remove observer callback.
13376
13377 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13378
13379 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13380 (ppc_linux_nat_target::auxv_parse)
13381 (ppc_linux_nat_target::read_description)
13382 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13383 Move up.
13384
13385 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13386
13387 * linux-nat.h (low_new_clone): New method.
13388 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13389
13390 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13391
13392 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13393 (dbx_expand_psymtab): ... this.
13394 (start_psymtab): Update.
13395 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13396 (mdebug_expand_psymtab): ... this.
13397 (parse_partial_symbols): Update.
13398 (new_psymtab): Update.
13399 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13400 (xcoff_expand_psymtab): ... this.
13401 (xcoff_start_psymtab): Update.
13402
13403 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13404
13405 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13406 <expand_dependencies>: ... this.
13407 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13408 (partial_symtab::expand_dependencies): ... this.
13409 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13410 Update.
13411 (dwarf2_psymtab::expand_psymtab): Update.
13412 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13413 * mdebugread.c (psymtab_to_symtab_1): Update.
13414 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13415
13416 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13417
13418 * psympriv.h (discard_psymtab): Remove.
13419 * dbxread.c (dbx_end_psymtab): Update.
13420 * xcoffread.c (xcoff_end_psymtab): Update.
13421
13422 2020-03-28 Tom Tromey <tom@tromey.com>
13423
13424 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13425 comment.
13426
13427 2020-03-28 Tom Tromey <tom@tromey.com>
13428
13429 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13430
13431 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13432
13433 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13434
13435 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13436
13437 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13438
13439 2020-03-26 Tom Tromey <tom@tromey.com>
13440
13441 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13442 (mark_common_block_symbol_computed, read_tag_string_type)
13443 (attr_to_dynamic_prop, read_subrange_type): Update.
13444 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13445 to be methods on struct attribute.
13446 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13447 (read_call_site_scope, partial_die_info::read)
13448 (partial_die_info::read, lookup_die_type, follow_die_ref):
13449 Update.
13450 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13451 from dwarf2_get_ref_die_offset.
13452 (attribute::constant_value): New method, from
13453 dwarf2_get_attr_constant_value.
13454 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13455 Declare method.
13456 <constant_value>: New method.
13457
13458 2020-03-26 Tom Tromey <tom@tromey.com>
13459
13460 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13461 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13462 (dwarf_type_encoding_name): Move to stringify.c.
13463 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13464 * dwarf2/stringify.c: New file.
13465 * dwarf2/stringify.h: New file.
13466
13467 2020-03-26 Tom Tromey <tom@tromey.com>
13468
13469 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13470 Rewrite.
13471
13472 2020-03-26 Tom Tromey <tom@tromey.com>
13473
13474 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13475 methods.
13476 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13477 (lookup_ranges_base): Likewise.
13478 (read_cutu_die_from_dwo, read_full_die_1): Update.
13479
13480 2020-03-26 Tom Tromey <tom@tromey.com>
13481
13482 * dwarf2/read.c (read_import_statement, read_file_scope)
13483 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13484 (read_lexical_block_scope, read_call_site_scope)
13485 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13486 (handle_struct_member_die, process_structure_scope)
13487 (update_enumeration_type_from_children)
13488 (process_enumeration_scope, read_array_type, read_common_block)
13489 (read_namespace, read_module, read_subroutine_type): Update.
13490 (sibling_die): Remove.
13491
13492 2020-03-26 Tom Tromey <tom@tromey.com>
13493
13494 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13495 (build_type_psymtabs_reader, read_structure_type)
13496 (read_enumeration_type, read_full_die_1): Update.
13497 (dwarf2_attr_no_follow): Move to die.h.
13498 * dwarf2/die.h (struct die_info) <attr>: New method.
13499
13500 2020-03-26 Tom Tromey <tom@tromey.com>
13501
13502 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13503 <base_address>: Now an optional.
13504 (dwarf2_find_base_address, dwarf2_rnglists_process)
13505 (dwarf2_ranges_process, fill_in_loclist_baton)
13506 (dwarf2_symbol_mark_computed): Update.
13507
13508 2020-03-26 Tom Tromey <tom@tromey.com>
13509
13510 * dwarf2/read.c (struct die_info): Move to die.h.
13511 * dwarf2/die.h: New file.
13512
13513 2020-03-26 Tom Tromey <tom@tromey.com>
13514
13515 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13516 * dwarf2/read.c
13517 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13518 Move to line-header.c.
13519 (read_checked_initial_length_and_offset, read_formatted_entries):
13520 Likewise.
13521 (dwarf_decode_line_header): Split into two.
13522 * dwarf2/line-header.c
13523 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13524 Move from read.c.
13525 (read_checked_initial_length_and_offset, read_formatted_entries):
13526 Likewise.
13527 (dwarf_decode_line_header): New function, split from read.c.
13528
13529 2020-03-26 Tom Tromey <tom@tromey.com>
13530
13531 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13532 Declare method.
13533 * dwarf2/read.c (read_attribute_value): Update.
13534 (dwarf2_per_objfile::read_line_string): Rename from
13535 read_indirect_line_string.
13536 (read_formatted_entries): Update.
13537
13538 2020-03-26 Tom Tromey <tom@tromey.com>
13539
13540 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13541 variable.
13542
13543 2020-03-26 Tom Tromey <tom@tromey.com>
13544
13545 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13546 const.
13547 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13548 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13549 parameter const.
13550
13551 2020-03-26 Tom Tromey <tom@tromey.com>
13552
13553 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13554 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13555 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13556 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13557
13558 2020-03-26 Tom Tromey <tom@tromey.com>
13559
13560 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13561 file_names_size, file_full_name, file_file_name>: Use const.
13562 <file_name_at, file_names>: Add const overload.
13563 * dwarf2/line-header.c (line_header::file_file_name)
13564 (line_header::file_full_name): Update.
13565
13566 2020-03-26 Tom Tromey <tom@tromey.com>
13567
13568 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13569 (macro_start_file, consume_improper_spaces)
13570 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13571 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13572 (dwarf_decode_macros): Move to macro.c.
13573 * dwarf2/macro.c: New file.
13574 * dwarf2/macro.h: New file.
13575 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13576
13577 2020-03-26 Tom Tromey <tom@tromey.com>
13578
13579 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13580 method.
13581 * dwarf2/section.c: New method. From
13582 read_indirect_string_at_offset_from.
13583 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13584 (read_indirect_string_at_offset_from): Move to section.c.
13585 (read_indirect_string_at_offset): Rewrite.
13586 (read_indirect_line_string_at_offset): Remove.
13587 (read_indirect_string, read_indirect_line_string)
13588 (dwarf_decode_macro_bytes): Update.
13589
13590 2020-03-26 Tom Tromey <tom@tromey.com>
13591
13592 * dwarf2/section.h (struct dwarf2_section_info)
13593 <overload_complaint>: Declare.
13594 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13595 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13596 Rename from dwarf2_section_buffer_overflow_complaint.
13597 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13598 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13599
13600 2020-03-26 Tom Tromey <tom@tromey.com>
13601
13602 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13603 Declare.
13604 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13605 Move from read.c.
13606 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13607 to section.c.
13608
13609 2020-03-26 Tom Tromey <tom@tromey.com>
13610
13611 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13612
13613 2020-03-26 Tom Tromey <tom@tromey.com>
13614
13615 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13616 "builder".
13617 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13618 parameter.
13619 (dwarf_decode_macros): Update.
13620
13621 2020-03-26 Tom Tromey <tom@tromey.com>
13622
13623 * dwarf2/read.c (read_attribute_value): Update.
13624 (read_indirect_string_from_dwz): Move to dwz.c; change into
13625 method.
13626 (dwarf_decode_macro_bytes): Update.
13627 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13628 * dwarf2/dwz.c: New file.
13629 * Makefile.in (COMMON_SFILES): Add dwz.c.
13630
13631 2020-03-26 Tom Tromey <tom@tromey.com>
13632
13633 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13634 * dwarf2/read.c: Add include.
13635 * dwarf2/index-write.c: Add include.
13636 * dwarf2/index-cache.c: Add include.
13637 * dwarf2/dwz.h: New file.
13638
13639 2020-03-25 Tom Tromey <tom@tromey.com>
13640
13641 * compile/compile-object-load.c (get_out_value_type): Mention
13642 correct symbol name in error message.
13643
13644 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13645
13646 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13647
13648 2020-03-25 Tom de Vries <tdevries@suse.de>
13649
13650 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13651 * symmisc.c (dump_symtab_1): Print user and includes fields.
13652 (maintenance_info_symtabs): Same.
13653
13654 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13655
13656 PR gdb/25534
13657 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13658 (riscv_regcache_cooked_write): New function.
13659 (riscv_push_dummy_call): Use new function.
13660 (riscv_return_value): Likewise.
13661
13662 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13663
13664 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13665 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13666 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13667 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13668 * infrun.c (follow_fork): Likewise.
13669 (follow_fork_inferior): Likewise.
13670 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13671 * linux-nat.h (class linux_nat_target): Likewise.
13672 * remote.c (class remote_target) <follow_fork>: Likewise.
13673 (remote_target::follow_fork): Likewise.
13674 * target-delegates.c: Re-generate.
13675 * target.c (default_follow_fork): Likewise.
13676 (target_follow_fork): Likewise.
13677 * target.h (struct target_ops) <follow_fork>: Likewise.
13678 (target_follow_fork): Likewise.
13679
13680 2020-03-24 Tom de Vries <tdevries@suse.de>
13681
13682 * psymtab.c (maintenance_info_psymtabs): Print user field.
13683
13684 2020-03-20 Tom Tromey <tromey@adacore.com>
13685
13686 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13687 const.
13688 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13689 const.
13690
13691 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13692
13693 * ptrace.m4: Don't check for ptrace declaration.
13694 * config.in: Re-generate.
13695 * configure: Re-generate.
13696 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13697 not defined.
13698
13699 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13700
13701 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13702 `PTRACE_TYPE_RET'.
13703 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13704 * sparc-nat.c (gdb_ptrace): Likewise.
13705 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13706
13707 2020-03-20 Tom Tromey <tromey@adacore.com>
13708
13709 * c-exp.y (lex_one_token): Fix assert.
13710
13711 2020-03-20 Tom Tromey <tromey@adacore.com>
13712
13713 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13714 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13715 strncpy call.
13716
13717 2020-03-20 Tom Tromey <tromey@adacore.com>
13718
13719 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13720
13721 2020-03-20 Tom Tromey <tromey@adacore.com>
13722
13723 * ada-valprint.c (print_variant_part): Remove parameters; switch
13724 to value-based API.
13725 (print_field_values): Likewise.
13726 (ada_val_print_struct_union): Likewise.
13727 (ada_value_print_1): Update.
13728
13729 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13730
13731 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13732 nbsd_nat_target instead of inf_ptrace_target.
13733 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13734 nbsd_nat_target.
13735
13736 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13737
13738 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13739 it to the ptrace call.
13740 * (store_registers): Likewise.
13741
13742 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13743
13744 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13745 it to the ptrace call.
13746 * (store_registers): Likewise.
13747
13748 2020-03-19 Luis Machado <luis.machado@linaro.org>
13749
13750 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13751 valid, fetch vg value from ptrace.
13752
13753 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13754 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13755 * inf-ptrace.c: Likewise.
13756 * (gdb_ptrace): Add.
13757 * (inf_ptrace_target::resume): Update.
13758 * (inf_ptrace_target::xfer_partial): Likewise.
13759 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13760 * (inf_ptrace_peek_poke): Update.
13761
13762 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13763
13764 * x86-bsd-nat.c (gdb_ptrace): New.
13765 * (x86bsd_dr_set): Add new argument `ptid'.
13766 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13767 x86bsd_dr_set_addr): Update.
13768
13769 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13770
13771 * remote.c (remote_target::process_stop_reply): Handle events for
13772 all threads differently.
13773
13774 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13775
13776 * completer.c (completion_tracker::remove_completion): Define new
13777 function.
13778 * completer.h (completion_tracker::remove_completion): Declare new
13779 function.
13780 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13781 when adding a C++ function symbol.
13782
13783 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13784
13785 * completer.c (completion_tracker::completion_hash_entry): Define
13786 new class.
13787 (advance_to_filename_complete_word_point): Call
13788 recompute_lowest_common_denominator.
13789 (completion_tracker::completion_tracker): Call discard_completions
13790 to setup the hash table.
13791 (completion_tracker::discard_completions): Allow for being called
13792 from the constructor, pass new equal function, and element deleter
13793 when constructing the hash table. Initialise new class member
13794 variables.
13795 (completion_tracker::maybe_add_completion): Remove use of
13796 m_entries_vec, and store more information into m_entries_hash.
13797 (completion_tracker::recompute_lcd_visitor): New function, most
13798 content taken from...
13799 (completion_tracker::recompute_lowest_common_denominator):
13800 ...here, this now just visits each item in the hash calling the
13801 above visitor.
13802 (completion_tracker::build_completion_result): Remove use of
13803 m_entries_vec, call recompute_lowest_common_denominator.
13804 * completer.h (completion_tracker::have_completions): Remove use
13805 of m_entries_vec.
13806 (completion_tracker::completion_hash_entry): Declare new class.
13807 (completion_tracker::recompute_lowest_common_denominator): Change
13808 function signature.
13809 (completion_tracker::recompute_lcd_visitor): Declare new function.
13810 (completion_tracker::m_entries_vec): Delete.
13811 (completion_tracker::m_entries_hash): Initialize to NULL.
13812 (completion_tracker::m_lowest_common_denominator_valid): New
13813 member variable.
13814 (completion_tracker::m_lowest_common_denominator_max_length): New
13815 member variable.
13816
13817 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13818
13819 * regformats/regdef.h: Put reg in gdb namespace.
13820
13821 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13822
13823 * i386-bsd-nat.c (gdb_ptrace): New.
13824 * (i386bsd_fetch_inferior_registers,
13825 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13826 * (i386bsd_fetch_inferior_registers,
13827 i386bsd_store_inferior_registers) Use gdb_ptrace.
13828
13829 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13830
13831 * amd64-bsd-nat.c (gdb_ptrace): New.
13832 * (amd64bsd_fetch_inferior_registers,
13833 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13834 * (amd64bsd_fetch_inferior_registers,
13835 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13836
13837 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13838
13839 * user-regs.c (user_reg::read): Rename to...
13840 (user_reg::xread): ...this.
13841 * (append_user_reg): Rename argument `read' to `xread'.
13842 * (user_reg_add_builtin): Likewise.
13843 * (user_reg_add): Likewise.
13844 * (value_of_user_reg): Likewise.
13845
13846 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13847
13848 * sparc-nat.c (gdb_ptrace): New.
13849 * sparc-nat.c (sparc_fetch_inferior_registers)
13850 (sparc_store_inferior_registers) Remove obsolete comment.
13851 * sparc-nat.c (sparc_fetch_inferior_registers)
13852 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13853 * sparc-nat.c (sparc_fetch_inferior_registers)
13854 (sparc_store_inferior_registers) Use gdb_ptrace.
13855
13856 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13857
13858 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13859 it to the ptrace call.
13860 * sh-nbsd-nat.c (store_registers): Likewise.
13861
13862 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13863
13864 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13865 nbsd_nat_target instead of inf_ptrace_target.
13866 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13867 nbsd_nat_target.
13868
13869 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13870
13871 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13872
13873 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13874
13875 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13876 <sys/sysctl.h>.
13877 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13878
13879 2020-03-17 Tom de Vries <tdevries@suse.de>
13880
13881 PR gdb/23710
13882 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13883 fields.
13884 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13885 fields.
13886 (process_imported_unit_die): Skip import of c++ CUs.
13887
13888 2020-03-16 Tom Tromey <tom@tromey.com>
13889
13890 * p-valprint.c (pascal_object_print_value): Initialize
13891 base_value.
13892
13893 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13894 Shahab Vahedi <shahab@synopsys.com>
13895
13896 * Makefile.in: Add arch/arc.o
13897 * configure.tgt: Likewise.
13898 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13899 (_initialize_arc_tdep): Don't initialize old target descriptions.
13900 (arc_read_description): New function to cache target descriptions.
13901 * arc-tdep.h (arc_read_description): Add proto type.
13902 * arch/arc.c: New file.
13903 * arch/arc.h: Likewise.
13904 * features/Makefile: Replace old target descriptions with new.
13905 * features/arc-arcompact.c: Remove.
13906 * features/arc-arcompact.xml: Likewise.
13907 * features/arc-v2.c: Likewise
13908 * features/arc-v2.xml: Likewise
13909 * features/arc/aux-arcompact.xml: New file.
13910 * features/arc/aux-v2.xml: Likewise.
13911 * features/arc/core-arcompact.xml: Likewise.
13912 * features/arc/core-v2.xml: Likewise.
13913 * features/arc/aux-arcompact.c: Generate.
13914 * features/arc/aux-v2.c: Likewise.
13915 * features/arc/core-arcompact.c: Likewise.
13916 * features/arc/core-v2.c: Likewise.
13917 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13918
13919 2020-03-16 Tom Tromey <tromey@adacore.com>
13920
13921 PR gdb/25663:
13922 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13923 putting value into bcache.
13924
13925 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13926
13927 PR gdb/21500
13928 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13929 to...
13930 (amd64_windows_init_abi_common): ... this. Don't set size of
13931 long type.
13932 (amd64_windows_init_abi): New function.
13933 (amd64_cygwin_init_abi): New function.
13934 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13935 the Cygwin OS ABI.
13936 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13937 comment.
13938
13939 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13940
13941 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13942 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13943 (pe_import_directory_entry): New struct type.
13944 (is_linked_with_cygwin_dll): New function.
13945 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13946 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13947 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13948
13949 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13950
13951 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13952 i386_cygwin_core_osabi_sniffer.
13953
13954 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13955
13956 * i386-cygwin-tdep.c: Rename to...
13957 * i386-windows-tdep.c: ... this.
13958 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13959 i386-windows-tdep.c.
13960 * configure.tgt: Likewise.
13961
13962 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13963
13964 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13965 * osabi.c (gdb_osabi_names): Add "Windows".
13966 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13967 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13968 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13969 i386_cygwin_osabi_sniffer.
13970 (_initialize_i386_cygwin_tdep): Register OS ABI
13971 GDB_OSABI_WINDOWS for i386.
13972 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13973 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13974 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13975 for x86-64.
13976 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13977 when the target matches '*-*-mingw*'.
13978
13979 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13980
13981 * defs.h (enum gdb_osabi): Move to...
13982 * osabi.h (enum gdb_osabi): ... here.
13983 * gdbarch.sh: Include osabi.h in gdbarch.h.
13984 * gdbarch.h: Re-generate.
13985
13986 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13987
13988 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13989 function.
13990 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13991
13992 2020-03-14 Tom Tromey <tom@tromey.com>
13993
13994 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13995 for C++.
13996 (c_type_print_modifier): Likewise. Add "language" parameter.
13997 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13998 (c_type_print_base_1): Update.
13999 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
14000 constants.
14001 * type-stack.c (type_stack::insert): Handle tp_atomic and
14002 tp_restrict.
14003 (type_stack::follow_type_instance_flags): Likewise.
14004 (type_stack::follow_types): Likewise. Merge type-following code.
14005 * c-exp.y (RESTRICT, ATOMIC): New tokens.
14006 (space_identifier, cv_with_space_id)
14007 (const_or_volatile_or_space_identifier_noopt)
14008 (const_or_volatile_or_space_identifier): Remove.
14009 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14010 rules.
14011 (ptr_operator, typebase): Update.
14012 (enum token_flag) <FLAG_C>: New constant.
14013 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14014 "_Atomic".
14015 (lex_one_token): Handle FLAG_C.
14016
14017 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14018
14019 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14020 it to the ptrace call.
14021 * m68k-bsd-nat.c (store_registers): Likewise.
14022
14023 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14024
14025 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14026 gdb_byte *.
14027 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14028 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14029 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14030
14031 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14032
14033 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14034 nbsd_nat_target instead of inf_ptrace_target.
14035 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14036 nbsd_nat_target.
14037
14038 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14039
14040 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14041 register_t.
14042
14043 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14044
14045 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14046 it to the ptrace call.
14047 * alpha-bsd-nat.c (store_registers): Likewise.
14048
14049 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14050
14051 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14052 includes.
14053 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14054 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14055 fill_fpregset): Likewise.
14056
14057 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14058
14059 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14060 nbsd_nat_target instead of inf_ptrace_target.
14061 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14062 nbsd_nat_target.
14063
14064 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14065
14066 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14067 register_t.
14068
14069 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14070
14071 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14072 it to the ptrace call.
14073 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14074 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14075 * arm-nbsd-nat.c (store_register): Likewise.
14076 * arm-nbsd-nat.c (store_regs): Likewise.
14077 * arm-nbsd-nat.c (store_fp_register): Likewise.
14078 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14079
14080 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14081
14082 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14083 nbsd_nat_target instead of inf_ptrace_target.
14084 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14085 nbsd_nat_target.
14086
14087 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14088
14089 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14090 it to the ptrace call.
14091 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14092
14093 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14094
14095 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14096 it to the ptrace call.
14097 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14098
14099 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14100
14101 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14102 gdb_byte *.
14103 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14104
14105 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14106
14107 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14108 instead of inf_ptrace_target.
14109 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14110 nbsd_nat_target.
14111
14112 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14113
14114 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14115 register_t.
14116
14117 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14118
14119 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14120 register_t.
14121
14122 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14123
14124 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14125 register_t.
14126
14127 2020-03-13 Tom Tromey <tom@tromey.com>
14128
14129 * value.h (val_print): Don't declare.
14130 * valprint.h (val_print_array_elements)
14131 (val_print_scalar_formatted, generic_val_print): Don't declare.
14132 * valprint.c (generic_val_print_array): Take a struct value.
14133 (generic_val_print_ptr, generic_val_print_memberptr)
14134 (generic_val_print_bool, generic_val_print_int)
14135 (generic_val_print_char, generic_val_print_complex)
14136 (generic_val_print): Remove.
14137 (generic_value_print): Update.
14138 (do_val_print): Remove unused parameters. Don't call
14139 la_val_print.
14140 (val_print): Remove.
14141 (common_val_print): Update. Don't call value_check_printable.
14142 (val_print_scalar_formatted, val_print_array_elements): Remove.
14143 * rust-lang.c (rust_val_print): Remove.
14144 (rust_language_defn): Update.
14145 * p-valprint.c (pascal_val_print): Remove.
14146 (pascal_value_print_inner): Update.
14147 (pascal_object_print_val_fields, pascal_object_print_val):
14148 Remove.
14149 (pascal_object_print_static_field): Update.
14150 * p-lang.h (pascal_val_print): Don't declare.
14151 * p-lang.c (pascal_language_defn): Update.
14152 * opencl-lang.c (opencl_language_defn): Update.
14153 * objc-lang.c (objc_language_defn): Update.
14154 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14155 * m2-lang.h (m2_val_print): Don't declare.
14156 * m2-lang.c (m2_language_defn): Update.
14157 * language.h (struct language_defn) <la_val_print>: Remove.
14158 * language.c (unk_lang_value_print_inner): Rename. Change
14159 argument types.
14160 (unknown_language_defn, auto_language_defn): Update.
14161 * go-valprint.c (go_val_print): Remove.
14162 * go-lang.h (go_val_print): Don't declare.
14163 * go-lang.c (go_language_defn): Update.
14164 * f-valprint.c (f_val_print): Remove.
14165 * f-lang.h (f_value_print): Don't declare.
14166 * f-lang.c (f_language_defn): Update.
14167 * d-valprint.c (d_val_print): Remove.
14168 * d-lang.h (d_value_print): Don't declare.
14169 * d-lang.c (d_language_defn): Update.
14170 * cp-valprint.c (cp_print_value_fields)
14171 (cp_print_value_fields_rtti, cp_print_value): Remove.
14172 (cp_print_static_field): Update.
14173 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14174 (c_val_print_struct, c_val_print_union, c_val_print_int)
14175 (c_val_print_memberptr, c_val_print): Remove.
14176 * c-lang.h (c_val_print_array, cp_print_value_fields)
14177 (cp_print_value_fields_rtti): Don't declare.
14178 * c-lang.c (c_language_defn, cplus_language_defn)
14179 (asm_language_defn, minimal_language_defn): Update.
14180 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14181 (ada_val_print_enum): Take a struct value.
14182 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14183 (ada_val_print): Remove.
14184 (ada_value_print_1): Update.
14185 (printable_val_type): Remove.
14186 * ada-lang.h (ada_val_print): Don't declare.
14187 * ada-lang.c (ada_language_defn): Update.
14188
14189 2020-03-13 Tom Tromey <tom@tromey.com>
14190
14191 * valprint.c (do_val_print): Update.
14192 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14193 a struct value.
14194 (value_to_value_object_no_release): Declare.
14195 * python/py-value.c (value_to_value_object_no_release): New
14196 function.
14197 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14198 struct value.
14199 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14200 function.
14201 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14202 a struct value.
14203 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14204 Declare.
14205 (gdbscm_apply_val_pretty_printer): Take a struct value.
14206 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14207 value.
14208 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14209 value.
14210 * extension-priv.h (struct extension_language_ops)
14211 <apply_val_pretty_printer>: Take a struct value.
14212 * cp-valprint.c (cp_print_value): Create a struct value.
14213 (cp_print_value): Update.
14214
14215 2020-03-13 Tom Tromey <tom@tromey.com>
14216
14217 * ada-valprint.c (print_field_values): Call common_val_print.
14218
14219 2020-03-13 Tom Tromey <tom@tromey.com>
14220
14221 * ada-valprint.c (val_print_packed_array_elements): Remove
14222 bitoffset and val parameters. Call common_val_print.
14223 (ada_val_print_string): Remove offset, address, and original_value
14224 parameters.
14225 (ada_val_print_array): Update.
14226 (ada_value_print_array): New function.
14227 (ada_value_print_1): Call it.
14228
14229 2020-03-13 Tom Tromey <tom@tromey.com>
14230
14231 * ada-valprint.c (ada_value_print): Use common_val_print.
14232
14233 2020-03-13 Tom Tromey <tom@tromey.com>
14234
14235 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14236
14237 2020-03-13 Tom Tromey <tom@tromey.com>
14238
14239 * ada-valprint.c (ada_value_print_num): New function.
14240 (ada_value_print_1): Use it.
14241
14242 2020-03-13 Tom Tromey <tom@tromey.com>
14243
14244 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14245
14246 2020-03-13 Tom Tromey <tom@tromey.com>
14247
14248 * ada-valprint.c (ada_value_print_ptr): New function.
14249 (ada_value_print_1): Use it.
14250
14251 2020-03-13 Tom Tromey <tom@tromey.com>
14252
14253 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14254 call common_val_print.
14255 (ada_val_print_1): Update.
14256 (ada_value_print_1): New function.
14257 (ada_value_print_inner): Rewrite.
14258
14259 2020-03-13 Tom Tromey <tom@tromey.com>
14260
14261 * cp-valprint.c (cp_print_value_fields): Update.
14262 (cp_print_value): New function.
14263
14264 2020-03-13 Tom Tromey <tom@tromey.com>
14265
14266 * m2-valprint.c (m2_value_print_inner): Use
14267 cp_print_value_fields.
14268 * cp-valprint.c (cp_print_value_fields): New function.
14269 * c-valprint.c (c_value_print_struct): New function.
14270 (c_value_print_inner): Use c_value_print_struct.
14271 * c-lang.h (cp_print_value_fields): Declare.
14272
14273 2020-03-13 Tom Tromey <tom@tromey.com>
14274
14275 * c-valprint.c (c_value_print_array): New function.
14276 (c_value_print_inner): Use it.
14277
14278 2020-03-13 Tom Tromey <tom@tromey.com>
14279
14280 * c-valprint.c (c_value_print_memberptr): New function.
14281 (c_value_print_inner): Use it.
14282
14283 2020-03-13 Tom Tromey <tom@tromey.com>
14284
14285 * c-valprint.c (c_value_print_int): New function.
14286 (c_value_print_inner): Use it.
14287
14288 2020-03-13 Tom Tromey <tom@tromey.com>
14289
14290 * c-valprint.c (c_value_print_ptr): New function.
14291 (c_value_print_inner): Use it.
14292
14293 2020-03-13 Tom Tromey <tom@tromey.com>
14294
14295 * c-valprint.c (c_value_print_inner): Rewrite.
14296
14297 2020-03-13 Tom Tromey <tom@tromey.com>
14298
14299 * valprint.c (generic_value_print_complex): New function.
14300 (generic_value_print): Use it.
14301
14302 2020-03-13 Tom Tromey <tom@tromey.com>
14303
14304 * valprint.c (generic_val_print_float): Don't call
14305 val_print_scalar_formatted.
14306 (generic_val_print, generic_value_print): Update.
14307
14308 2020-03-13 Tom Tromey <tom@tromey.com>
14309
14310 * valprint.c (generic_value_print_char): New function
14311 (generic_value_print): Use it.
14312
14313 2020-03-13 Tom Tromey <tom@tromey.com>
14314
14315 * valprint.c (generic_value_print_int): New function.
14316 (generic_value_print): Use it.
14317
14318 2020-03-13 Tom Tromey <tom@tromey.com>
14319
14320 * valprint.c (generic_value_print_bool): New function.
14321 (generic_value_print): Use it.
14322
14323 2020-03-13 Tom Tromey <tom@tromey.com>
14324
14325 * valprint.c (generic_val_print_func): Simplify.
14326 (generic_val_print, generic_value_print): Update.
14327
14328 2020-03-13 Tom Tromey <tom@tromey.com>
14329
14330 * valprint.c (generic_val_print_flags): Remove.
14331 (generic_val_print, generic_value_print): Update.
14332 (val_print_type_code_flags): Add original_value parameter.
14333
14334 2020-03-13 Tom Tromey <tom@tromey.com>
14335
14336 * valprint.c (generic_val_print): Update.
14337 (generic_value_print): Update.
14338 * valprint.c (generic_val_print_enum): Don't call
14339 val_print_scalar_formatted.
14340
14341 2020-03-13 Tom Tromey <tom@tromey.com>
14342
14343 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14344 * valprint.c (generic_value_print_ptr): New function.
14345
14346 2020-03-13 Tom Tromey <tom@tromey.com>
14347
14348 * valprint.c (generic_value_print): Rewrite.
14349
14350 2020-03-13 Tom Tromey <tom@tromey.com>
14351
14352 * p-valprint.c (pascal_object_print_value_fields)
14353 (pascal_object_print_value): New functions.
14354
14355 2020-03-13 Tom Tromey <tom@tromey.com>
14356
14357 * p-valprint.c (pascal_value_print_inner): Rewrite.
14358
14359 2020-03-13 Tom Tromey <tom@tromey.com>
14360
14361 * f-valprint.c (f_value_print_innner): Rewrite.
14362
14363 2020-03-13 Tom Tromey <tom@tromey.com>
14364
14365 * m2-valprint.c (m2_print_unbounded_array): New overload.
14366 (m2_print_unbounded_array): Update.
14367 (m2_print_array_contents): Take a struct value.
14368 (m2_value_print_inner): Rewrite.
14369
14370 2020-03-13 Tom Tromey <tom@tromey.com>
14371
14372 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14373 (d_value_print_inner): New function.
14374 * d-lang.h (d_value_print_inner): Declare.
14375 * d-lang.c (d_language_defn): Use d_value_print_inner.
14376
14377 2020-03-13 Tom Tromey <tom@tromey.com>
14378
14379 * go-valprint.c (go_value_print_inner): New function.
14380 * go-lang.h (go_value_print_inner): Declare.
14381 * go-lang.c (go_language_defn): Use go_value_print_inner.
14382
14383 2020-03-13 Tom Tromey <tom@tromey.com>
14384
14385 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14386 API.
14387 (rust_val_print): Rewrite.
14388 (rust_value_print_inner): New function, from rust_val_print.
14389 (rust_language_defn): Use rust_value_print_inner.
14390
14391 2020-03-13 Tom Tromey <tom@tromey.com>
14392
14393 * ada-valprint.c (ada_value_print_inner): New function.
14394 * ada-lang.h (ada_value_print_inner): Declare.
14395 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14396
14397 2020-03-13 Tom Tromey <tom@tromey.com>
14398
14399 * f-valprint.c (f_value_print_innner): New function.
14400 * f-lang.h (f_value_print_innner): Declare.
14401 * f-lang.c (f_language_defn): Use f_value_print_innner.
14402
14403 2020-03-13 Tom Tromey <tom@tromey.com>
14404
14405 * p-valprint.c (pascal_value_print_inner): New function.
14406 * p-lang.h (pascal_value_print_inner): Declare.
14407 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14408
14409 2020-03-13 Tom Tromey <tom@tromey.com>
14410
14411 * m2-valprint.c (m2_value_print_inner): New function.
14412 * m2-lang.h (m2_value_print_inner): Declare.
14413 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14414
14415 2020-03-13 Tom Tromey <tom@tromey.com>
14416
14417 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14418 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14419 * c-valprint.c (c_value_print_inner): New function.
14420 * c-lang.h (c_value_print_inner): Declare.
14421 * c-lang.c (c_language_defn, cplus_language_defn)
14422 (asm_language_defn, minimal_language_defn): Use
14423 c_value_print_inner.
14424
14425 2020-03-13 Tom Tromey <tom@tromey.com>
14426
14427 * p-valprint.c (pascal_object_print_value_fields): Now static.
14428 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14429
14430 2020-03-13 Tom Tromey <tom@tromey.com>
14431
14432 * c-valprint.c (c_val_print_array): Simplify.
14433
14434 2020-03-13 Tom Tromey <tom@tromey.com>
14435
14436 * valprint.c (value_print_array_elements): New function.
14437 * valprint.h (value_print_array_elements): Declare.
14438
14439 2020-03-13 Tom Tromey <tom@tromey.com>
14440
14441 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14442 * mips-tdep.c (mips_print_register): Use
14443 value_print_scalar_formatted.
14444
14445 2020-03-13 Tom Tromey <tom@tromey.com>
14446
14447 * valprint.h (value_print_scalar_formatted): Declare.
14448 * valprint.c (value_print_scalar_formatted): New function.
14449
14450 2020-03-13 Tom Tromey <tom@tromey.com>
14451
14452 * valprint.h (generic_value_print): Declare.
14453 * valprint.c (generic_value_print): New function.
14454
14455 2020-03-13 Tom Tromey <tom@tromey.com>
14456
14457 * valprint.c (do_val_print): Call la_value_print_inner, if
14458 available.
14459 * rust-lang.c (rust_language_defn): Update.
14460 * p-lang.c (pascal_language_defn): Update.
14461 * opencl-lang.c (opencl_language_defn): Update.
14462 * objc-lang.c (objc_language_defn): Update.
14463 * m2-lang.c (m2_language_defn): Update.
14464 * language.h (struct language_defn) <la_value_print_inner>: New
14465 member.
14466 * language.c (unknown_language_defn, auto_language_defn): Update.
14467 * go-lang.c (go_language_defn): Update.
14468 * f-lang.c (f_language_defn): Update.
14469 * d-lang.c (d_language_defn): Update.
14470 * c-lang.c (c_language_defn, cplus_language_defn)
14471 (asm_language_defn, minimal_language_defn): Update.
14472 * ada-lang.c (ada_language_defn): Update.
14473
14474 2020-03-13 Tom Tromey <tom@tromey.com>
14475
14476 * c-valprint.c (c_value_print): Use common_val_print.
14477
14478 2020-03-13 Tom Tromey <tom@tromey.com>
14479
14480 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14481
14482 2020-03-13 Tom Tromey <tom@tromey.com>
14483
14484 * f-valprint.c (f77_print_array_1, f_val_print): Use
14485 common_val_print.
14486
14487 2020-03-13 Tom Tromey <tom@tromey.com>
14488
14489 * riscv-tdep.c (riscv_print_one_register_info): Use
14490 common_val_print.
14491
14492 2020-03-13 Tom Tromey <tom@tromey.com>
14493
14494 * mi/mi-main.c (output_register): Use common_val_print.
14495
14496 2020-03-13 Tom Tromey <tom@tromey.com>
14497
14498 * infcmd.c (default_print_one_register_info): Use
14499 common_val_print.
14500
14501 2020-03-13 Tom Tromey <tom@tromey.com>
14502
14503 * valprint.h (common_val_print_checked): Declare.
14504 * valprint.c (common_val_print_checked): New function.
14505 * stack.c (print_frame_arg): Use common_val_print_checked.
14506
14507 2020-03-13 Tom Tromey <tom@tromey.com>
14508
14509 * valprint.c (do_val_print): New function, from val_print.
14510 (val_print): Use do_val_print.
14511 (common_val_print): Use do_val_print.
14512
14513 2020-03-13 Tom Tromey <tom@tromey.com>
14514
14515 * valprint.c (value_print): Use scoped_value_mark.
14516
14517 2020-03-13 Tom de Vries <tdevries@suse.de>
14518
14519 PR symtab/25646
14520 * psymtab.c (partial_symtab::partial_symtab): Don't set
14521 globals_offset and statics_offset. Push element onto
14522 current_global_psymbols and current_static_psymbols stacks.
14523 (concat): New function.
14524 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14525 element from current_global_psymbols and current_static_psymbols
14526 stacks. Concat popped elements to global_psymbols and
14527 static_symbols.
14528 (add_psymbol_to_list): Use current_global_psymbols and
14529 current_static_psymbols stacks.
14530 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14531 current_static_psymbols fields.
14532
14533 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14534
14535 * corelow.c (sniff_core_bfd): Remove.
14536 (class core_target) <m_core_vec>: Remove.
14537 (core_target::core_target): Update.
14538 (core_file_fns): Remove.
14539 (deprecated_add_core_fns): Remove.
14540 (default_core_sniffer): Remove.
14541 (sniff_core_bfd): Remove.
14542 (default_check_format): Remove.
14543 (gdb_check_format): Remove.
14544 (core_target_open): Update.
14545 (core_target::get_core_register_section): Update.
14546 (get_core_registers_cb): Update.
14547 (core_target::fetch_registers): Update.
14548 * gdbcore.h (struct core_fns): Remove.
14549 (deprecated_add_core_fns): Remove.
14550 (default_core_sniffer): Remove.
14551 (default_check_format): Remove.
14552
14553 2020-03-12 Tom Tromey <tom@tromey.com>
14554
14555 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14556 CORE_ADDR.
14557 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14558
14559 2020-03-12 Tom Tromey <tom@tromey.com>
14560
14561 * remote.c (remote_target::download_tracepoint)
14562 (remote_target::enable_tracepoint)
14563 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14564 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14565 sprintf_vma.
14566
14567 2020-03-12 Tom Tromey <tom@tromey.com>
14568
14569 * symfile-mem.c: Update CORE_ADDR size assert.
14570
14571 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14572
14573 * selftest.m4: Move to gdbsupport/.
14574 * acinclude.m4: Update path to selftest.m4.
14575
14576 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14577
14578 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14579 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14580 gdbarch-selfselftests.c and selftest-arch.c.
14581 (SUBDIR_UNITTESTS_OBS): Rename to...
14582 (SELFTESTS_OBS): ... this.
14583 (COMMON_SFILES): Remove disasm-selftests.c and
14584 gdbarch-selftests.c.
14585 * configure.ac: Don't add selftest-arch.{c,o} to
14586 CONFIG_{SRCS,OBS}.
14587 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14588 preprocessor conditions.
14589
14590 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14591
14592 * configure.ac: Don't source bfd/development.sh.
14593 * selftest.m4: Modify comment.
14594 * configure: Re-generate.
14595
14596 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14597
14598 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14599 not "true" or "false".
14600 * configure: Re-generate.
14601
14602 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14603
14604 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14605 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14606 renamed to arm_nbsd_supply_gregset.
14607 (fetch_register): Update to call arm_nbsd_supply_gregset.
14608 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14609 (arm_netbsd_nat_target::fetch_registers): Update.
14610 (fetch_elfcore_registers): Removed.
14611 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14612 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14613 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14614 not require NetBSD system headers.
14615 (arm_nbsd_regset): New struct.
14616 (arm_nbsd_iterate_over_regset_sections): New function.
14617 (arm_netbsd_init_abi_common): Updated to call
14618 set_gdbarch_iterate_over_regset_sections.
14619 * arm-nbsd-tdep.h: New file.
14620
14621 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14622
14623 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14624 recursion.
14625
14626 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14627
14628 * configure: Re-generate.
14629
14630 2020-03-11 Tom Tromey <tromey@adacore.com>
14631
14632 * ada-typeprint.c (print_choices): Fix comment.
14633
14634 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14635
14636 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14637 previous item in the list, when the list has no items.
14638
14639 2020-03-11 Tom de Vries <tdevries@suse.de>
14640
14641 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14642 PROP_LOCLIST handling code.
14643
14644 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14645
14646 * buildsym-legacy.c (record_line): Pass extra parameter to
14647 record_line.
14648 * buildsym.c (buildsym_compunit::record_line): Take an extra
14649 parameter, reduce duplication in the line table, and record the
14650 is_stmt flag in the line table.
14651 * buildsym.h (buildsym_compunit::record_line): Add extra
14652 parameter.
14653 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14654 non-statement lines.
14655 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14656 this to the symtab builder.
14657 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14658 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14659 through to dwarf_record_line_1.
14660 * infrun.c (process_event_stop_test): When stepping, don't stop at
14661 a non-statement instruction, and only refresh the step info when
14662 we land in the middle of a line's range. Also add an extra
14663 comment.
14664 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14665 field.
14666 * record-btrace.c (btrace_find_line_range): Only record lines
14667 marked as is-statement.
14668 * stack.c (frame_show_address): Show the frame address if we are
14669 in a non-statement sal.
14670 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14671 (maintenance_print_one_line_table): Print a header for the is_stmt
14672 column, and include is_stmt information in the output.
14673 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14674 preference to non-statements.
14675 (find_pcs_for_symtab_line): Prefer is-statement entries.
14676 (find_line_common): Likewise.
14677 * symtab.h (struct linetable_entry): Add is_stmt field.
14678 (struct symtab_and_line): Likewise.
14679 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14680 arranging the line table.
14681
14682 2020-03-07 Tom de Vries <tdevries@suse.de>
14683
14684 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14685 DIE.
14686
14687 2020-03-07 Tom Tromey <tom@tromey.com>
14688
14689 * valops.c (value_literal_complex): Remove obsolete comment.
14690 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14691 comment.
14692
14693 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14694
14695 * infrun.h: Forward-declare thread_info.
14696 (set_step_info): Add thread_info parameter, add doc.
14697 * infrun.c (set_step_info): Add thread_info parameter, move doc
14698 to header.
14699 * infrun.c (process_event_stop_test): Pass thread to
14700 set_step_info call.
14701 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14702 set_step_info.
14703 (prepare_one_step): Add thread_info parameter, pass it to
14704 set_step_frame and prepare_one_step (recursive) call.
14705 (step_1): Pass thread to prepare_one_step call.
14706 (step_command_fsm::should_stop): Pass thread to
14707 prepare_one_step.
14708 (until_next_fsm): Pass thread to set_step_frame call.
14709 (finish_command): Pass thread to set_step_info call.
14710
14711 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14712
14713 * windows-tdep.c (windows_solib_create_inferior_hook):
14714 Check if inferior is running.
14715
14716 2020-03-06 Tom de Vries <tdevries@suse.de>
14717
14718 * NEWS: Fix "the the".
14719 * ctfread.c: Same.
14720
14721 2020-03-06 Tom de Vries <tdevries@suse.de>
14722
14723 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14724
14725 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14726
14727 * .dir-locals.el: Add a comment referencing the other copies of
14728 this file.
14729
14730 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14731
14732 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14733 psargs.
14734
14735 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14736
14737 * .gitattributes: New file.
14738
14739 2020-03-04 Tom Tromey <tom@tromey.com>
14740
14741 * symmisc.c (print_symbol_bcache_statistics)
14742 (print_objfile_statistics): Update.
14743 * symfile.c (allocate_symtab): Use intern.
14744 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14745 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14746 macro_cache>: Remove.
14747 <string_cache>: New member.
14748 (struct objfile) <intern>: New methods.
14749 * elfread.c (elf_symtab_read): Use intern.
14750 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14751 (dwarf2_compute_name, dwarf2_physname)
14752 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14753 names.
14754 (guess_partial_die_structure_name): Update.
14755 (partial_die_info::fixup): Intern name.
14756 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14757 name.
14758 (dwarf2_name): Intern name. Update.
14759 * buildsym.c (buildsym_compunit::get_macro_table): Use
14760 string_cache.
14761
14762 2020-03-04 Tom Tromey <tom@tromey.com>
14763
14764 * jit.c (bfd_open_from_target_memory): Make "target" const.
14765 * corefile.c (gnutarget): Now const.
14766 * gdbcore.h (gnutarget): Now const.
14767
14768 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14769
14770 * NEWS: Mention support for WOW64 processes.
14771 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14772 (amd64_windows_segment_register_p): Remove static.
14773 (_initialize_amd64_windows_nat): Update.
14774 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14775 * i386-windows-nat.c (context_offset): Update.
14776 (i386_mappings): Rename and remove static.
14777 (i386_windows_segment_register_p): Remove static.
14778 (_initialize_i386_windows_nat): Update.
14779 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14780 (STATUS_WX86_SINGLE_STEP): New macro.
14781 (EnumProcessModulesEx): New macro.
14782 (Wow64SuspendThread): New macro.
14783 (Wow64GetThreadContext): New macro.
14784 (Wow64SetThreadContext): New macro.
14785 (Wow64GetThreadSelectorEntry): New macro.
14786 (windows_set_context_register_offsets): Add static.
14787 (windows_set_segment_register_p): Likewise.
14788 (windows_add_thread): Adapt for WOW64 processes.
14789 (windows_fetch_one_register): Likewise.
14790 (windows_nat_target::fetch_registers): Likewise.
14791 (windows_store_one_register): Likewise.
14792 (display_selector): Likewise.
14793 (display_selectors): Likewise.
14794 (handle_exception): Likewise.
14795 (windows_continue): Likewise.
14796 (windows_nat_target::resume): Likewise.
14797 (windows_add_all_dlls): Likewise.
14798 (do_initial_windows_stuff): Likewise.
14799 (windows_nat_target::attach): Likewise.
14800 (windows_get_exec_module_filename): Likewise.
14801 (windows_nat_target::create_inferior): Likewise.
14802 (windows_xfer_siginfo): Likewise.
14803 (_initialize_loadable): Initialize Wow64SuspendThread,
14804 Wow64GetThreadContext, Wow64SetThreadContext,
14805 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14806 * windows-nat.h (windows_set_context_register_offsets):
14807 Remove declaration.
14808 (windows_set_segment_register_p): Likewise.
14809 (i386_windows_segment_register_p): Add declaration.
14810 (amd64_windows_segment_register_p): Likewise.
14811
14812 2020-03-04 Luis Machado <luis.machado@linaro.org>
14813
14814 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14815 in "info registers" for AArch64/ARM.
14816
14817 The change caused "info registers" to not print GPR's.
14818
14819 gdb/ChangeLog:
14820
14821 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14822
14823 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14824 when reg->group is empty and reggroup is not.
14825
14826 2020-03-03 Tom Tromey <tromey@adacore.com>
14827
14828 * dwarf2/frame.c (struct dwarf2_frame_cache)
14829 <checked_tailcall_bottom, entry_cfa_sp_offset,
14830 entry_cfa_sp_offset_p>: Remove members.
14831 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14832 (dwarf2_frame_prev_register): Don't call
14833 dwarf2_tailcall_sniffer_first.
14834 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14835 * frame-unwind.c (add_unwinder): New fuction.
14836 (frame_unwind_init): Use it. Add tailcall unwinder.
14837
14838 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14839 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14840
14841 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14842 value should be printed as true.
14843
14844 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14845
14846 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14847 (windows_init_abi): Set and use windows_so_ops.
14848
14849 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14850
14851 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14852 when verifying if dealing with a convenience variable.
14853
14854 2020-03-03 Luis Machado <luis.machado@linaro.org>
14855
14856 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14857
14858 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14859
14860 * infrun.c (gdbarch_supports_displaced_stepping): New.
14861 (use_displaced_stepping): Break up conditions in smaller pieces.
14862 Use gdbarch_supports_displaced_stepping.
14863 (displaced_step_prepare_throw): Use
14864 gdbarch_supports_displaced_stepping.
14865
14866 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14867
14868 * NEWS: Mention new behaviour of the history filename.
14869 * top.c (write_history_p): Add comment.
14870 (show_write_history_p): Add header comment, give a different
14871 message when history writing is on, but the history filename is
14872 empty.
14873 (history_filename): Add comment.
14874 (history_filename_empty): New function.
14875 (show_history_filename): Add header comment, give a different
14876 message when the filename is empty.
14877 (init_history): Compare history_filename against nullptr, and only
14878 read history if the filename is not empty.
14879 (set_history_filename): Add header comment, and only make
14880 non-empty filenames absolute.
14881 (init_main): Make the filename argument to 'set history filename'
14882 optional.
14883
14884 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14885
14886 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14887 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14888 (fetch_fp_register): Update.
14889 (fetch_fp_regs): Update.
14890 (store_fp_register): Update.
14891 (store_fp_regs): Update.
14892 (arm_netbsd_nat_target::read_description): New function.
14893 (fetch_elfcore_registers): Update.
14894
14895 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14896
14897 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14898 general_thread if the stop reply is missing a thread-id.
14899 (remote_target::process_stop_reply): Use the first non-exited
14900 thread if the target didn't pass a thread-id.
14901 * infrun.c (do_target_wait): Move call to
14902 switch_to_inferior_no_thread to ....
14903 (do_target_wait_1): ... here.
14904
14905 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14906
14907 * debuginfod-support.c: Include defs.h first.
14908
14909 2020-02-28 Tom de Vries <tdevries@suse.de>
14910
14911 * symfile.c (set_initial_language): Use default language for lookup.
14912
14913 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14914
14915 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14916 reader variable, pass `this` to read_cutu_die_from_dwo.
14917
14918 2020-02-27 Aaron Merey <amerey@redhat.com>
14919
14920 * source.c (open_source_file): Check for nullptr when computing
14921 srcpath.
14922
14923 2020-02-27 Tom Tromey <tromey@adacore.com>
14924
14925 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14926 member.
14927 (dwarf2_add_field): Don't update nfields.
14928 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14929
14930 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14931
14932 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14933 abs.
14934
14935 2020-02-26 Tom Tromey <tom@tromey.com>
14936
14937 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14938 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14939 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14940 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14941 per_cu_data.
14942
14943 2020-02-26 Tom Tromey <tom@tromey.com>
14944
14945 * dwarf2/index-write.c (psym_index_map): Change type.
14946 (add_address_entry_worker, write_one_signatured_type)
14947 (recursively_count_psymbols, recursively_write_psymbols)
14948 (class debug_names, psyms_seen_size, write_gdbindex)
14949 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14950
14951 2020-02-26 Aaron Merey <amerey@redhat.com>
14952
14953 * Makefile.in: Handle optional debuginfod support.
14954 * NEWS: Update.
14955 * README: Add --with-debuginfod summary.
14956 * config.in: Regenerate.
14957 * configure: Regenerate.
14958 * configure.ac: Handle optional debuginfod support.
14959 * debuginfod-support.c: debuginfod helper functions.
14960 * debuginfod-support.h: Ditto.
14961 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14962 summary.
14963 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14964 when a dwz file cannot be found.
14965 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14966 debuginfo file cannot be found.
14967 * source.c (open_source_file): Query debuginfod servers when a
14968 source file cannot be found.
14969 * top.c (print_gdb_configuration): Include
14970 --{with,without}-debuginfod in the output.
14971
14972 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14973
14974 * thread.c (thr_try_catch_cmd): Print thread name.
14975
14976 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14977
14978 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14979 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14980 dwarf2_fetch_die_type_sect_off): Move to...
14981 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14982 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14983 dwarf2_fetch_die_type_sect_off): ... here.
14984 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14985 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14986 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14987
14988 2020-02-26 Tom de Vries <tdevries@suse.de>
14989
14990 PR gdb/25603
14991 * symfile.c (set_initial_language): Exit-early if
14992 language_mode == language_mode_manual.
14993
14994 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14995
14996 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14997 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14998 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14999
15000 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
15001
15002 * gdbtypes.c (create_array_type_with_stride): Handle negative
15003 array strides.
15004 * valarith.c (value_subscripted_rvalue): Likewise.
15005
15006 2020-02-25 Luis Machado <luis.machado@linaro.org>
15007
15008 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15009
15010 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15011
15012 * loc.h (dwarf2_get_die_type): Move to...
15013 * read.h (dwarf2_get_die_type): ... here.
15014 * read.c (dwarf2_get_die_type): Move doc to header.
15015
15016 2020-02-25 Joel Brobecker <brobecker@adacore.com>
15017
15018 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15019 'gnulib/Makefile.in' to the list.
15020
15021 2020-02-24 Tom Tromey <tom@tromey.com>
15022
15023 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15024 Remove.
15025 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15026 XOBNEWVEC.
15027
15028 2020-02-24 Tom Tromey <tom@tromey.com>
15029
15030 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15031 New method.
15032 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15033 (dw2_do_instantiate_symtab, dw2_get_file_names)
15034 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15035
15036 2020-02-24 Tom Tromey <tom@tromey.com>
15037
15038 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15039 make_scoped_restore.
15040 (dwarf2_psymtab::read_symtab): Don't clear
15041 reading_partial_symbols.
15042
15043 2020-02-24 Tom de Vries <tdevries@suse.de>
15044
15045 PR gdb/25592
15046 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15047
15048 2020-02-24 Tom de Vries <tdevries@suse.de>
15049
15050 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15051 commands layout next/prev/regs.
15052
15053 2020-02-22 Tom Tromey <tom@tromey.com>
15054
15055 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15056 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15057
15058 2020-02-22 Tom Tromey <tom@tromey.com>
15059
15060 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15061
15062 2020-02-22 Tom Tromey <tom@tromey.com>
15063
15064 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15065 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15066 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15067 * tui/tui.c (_initialize_tui): Add usage text.
15068
15069 2020-02-22 Tom Tromey <tom@tromey.com>
15070
15071 * tui/tui-win.c (tui_set_focus_command)
15072 (tui_set_win_height_command): Use error_no_arg.
15073 (_initialize_tui_win): Update help text.
15074 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15075
15076 2020-02-22 Tom Tromey <tom@tromey.com>
15077
15078 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15079 * tui/tui-disasm.h (struct tui_disasm_window)
15080 <display_start_addr>: Declare.
15081 * tui/tui-source.h (struct tui_source_window)
15082 <display_start_addr>: Declare.
15083 * tui/tui-winsource.h (struct tui_source_window_base)
15084 <show_source_line, display_start_addr>: New methods.
15085 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15086 Rename and move to protected section.
15087 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15088 (tui_source_window_base::do_erase_source_content): Update.
15089 (tui_source_window_base::show_source_line): Now a method.
15090 (tui_source_window_base::show_source_content)
15091 (tui_source_window_base::tui_source_window_base)
15092 (tui_source_window_base::rerender)
15093 (tui_source_window_base::refill)
15094 (tui_source_window_base::do_scroll_horizontal)
15095 (tui_source_window_base::set_is_exec_point_at)
15096 (tui_source_window_base::update_breakpoint_info)
15097 (tui_source_window_base::update_exec_info): Update.
15098 * tui/tui-source.c (tui_source_window::set_contents)
15099 (tui_source_window::showing_source_p)
15100 (tui_source_window::do_scroll_vertical)
15101 (tui_source_window::location_matches_p)
15102 (tui_source_window::line_is_displayed): Update.
15103 (tui_source_window::display_start_addr): New method.
15104 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15105 (tui_disasm_window::do_scroll_vertical)
15106 (tui_disasm_window::location_matches_p): Update.
15107 (tui_disasm_window::display_start_addr): New method.
15108
15109 2020-02-22 Tom Tromey <tom@tromey.com>
15110
15111 * NEWS: Add entry for gdb.register_window_type.
15112 * tui/tui-layout.h (window_factory): New typedef.
15113 (tui_register_window): Declare.
15114 * tui/tui-layout.c (saved_tui_windows): New global.
15115 (tui_apply_current_layout): Use it.
15116 (tui_register_window): New function.
15117 * python/python.c (do_start_initialization): Call
15118 gdbpy_initialize_tui.
15119 (python_GdbMethods): Add "register_window_type" function.
15120 * python/python-internal.h (gdbpy_register_tui_window)
15121 (gdbpy_initialize_tui): Declare.
15122 * python/py-tui.c: New file.
15123 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15124
15125 2020-02-22 Tom Tromey <tom@tromey.com>
15126
15127 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15128
15129 2020-02-22 Tom Tromey <tom@tromey.com>
15130
15131 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15132 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15133 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15134 (tui_set_win_focus_to): Move from tui-win.c.
15135
15136 2020-02-22 Tom Tromey <tom@tromey.com>
15137
15138 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15139 functions.
15140 (known_window_types): New global.
15141 (tui_get_window_by_name): Reimplement.
15142 (initialize_known_windows): New function.
15143 (validate_window_name): Rewrite.
15144 (_initialize_tui_layout): Call initialize_known_windows.
15145
15146 2020-02-22 Tom Tromey <tom@tromey.com>
15147
15148 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15149 Remove constants.
15150 * tui/tui-winsource.h (struct tui_source_window_base)
15151 <tui_source_window_base>: Remove parameter.
15152 * tui/tui-winsource.c
15153 (tui_source_window_base::tui_source_window_base): Remove
15154 parameter.
15155 (tui_source_window_base::refill): Update.
15156 * tui/tui-stack.h (struct tui_locator_window)
15157 <tui_locator_window>: Update.
15158 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15159 Default the constructor.
15160 * tui/tui-regs.h (struct tui_data_item_window)
15161 <tui_data_item_window>: Default the constructor.
15162 (struct tui_data_window) <tui_data_window>: Likewise.
15163 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15164 Default the constructor.
15165 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15166 Default the constructor.
15167 <type>: Remove.
15168 (struct tui_win_info) <tui_win_info>: Default the constructor.
15169 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15170 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15171 Default the constructor.
15172
15173 2020-02-22 Tom Tromey <tom@tromey.com>
15174
15175 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15176 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15177 * tui/tui-win.c (tui_resize_all): Don't call
15178 tui_delete_invisible_windows.
15179 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15180 done.
15181 (tui_set_layout): Update.
15182 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15183 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15184 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15185
15186 2020-02-22 Tom Tromey <tom@tromey.com>
15187
15188 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15189 correctly.
15190
15191 2020-02-22 Tom Tromey <tom@tromey.com>
15192
15193 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15194
15195 2020-02-22 Tom Tromey <tom@tromey.com>
15196
15197 * tui/tui-winsource.h (struct tui_source_window_iterator)
15198 <inner_iterator>: New etytypedef.
15199 <tui_source_window_iterator>: Take "end" parameter.
15200 <tui_source_window_iterator>: Take iterator.
15201 <operator*, advance>: Update.
15202 <m_iter>: Change type.
15203 <m_end>: New field.
15204 (struct tui_source_windows) <begin, end>: Update.
15205 * tui/tui-layout.c (tui_windows): New global.
15206 (tui_apply_current_layout): Clear tui_windows.
15207 (tui_layout_window::apply): Update tui_windows.
15208 * tui/tui-data.h (tui_windows): Declare.
15209 (all_tui_windows): Now inline function.
15210 (class tui_window_iterator, struct all_tui_windows): Remove.
15211
15212 2020-02-22 Tom Tromey <tom@tromey.com>
15213
15214 PR tui/17850:
15215 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15216 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15217 "height" argument.
15218 (class tui_layout_window) <get_sizes>: Likewise.
15219 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15220 argument.
15221 <get_sizes>: Add "height" argument.
15222 <m_vertical>: New field.
15223 * tui/tui-layout.c (tui_layout_split::clone): Update.
15224 (tui_layout_split::get_sizes): Add "height" argument.
15225 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15226 (tui_new_layout_command): Parse "-horizontal".
15227 (_initialize_tui_layout): Update help string.
15228 (tui_layout_split::specification): Add "-horizontal" when needed.
15229 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15230 argument.
15231 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15232 New methods.
15233
15234 2020-02-22 Tom Tromey <tom@tromey.com>
15235
15236 * tui/tui-layout.h (enum tui_adjust_result): New.
15237 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15238 (class tui_layout_window) <adjust_size>: Return
15239 tui_adjust_result. Rewrite.
15240 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15241 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15242
15243 2020-02-22 Tom Tromey <tom@tromey.com>
15244
15245 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15246 parameter and return types.
15247 (class tui_layout_base) <specification>: Add "depth".
15248 (class tui_layout_window) <specification>: Add "depth".
15249 (class tui_layout_split) <specification>: Add "depth".
15250 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15251 and return types.
15252 (tui_new_layout_command): Parse sub-layouts.
15253 (_initialize_tui_layout): Update help string.
15254 (tui_layout_window::specification): Add "depth".
15255 (add_layout_command): Update.
15256
15257 2020-02-22 Tom Tromey <tom@tromey.com>
15258
15259 * NEWS: Add "tui new-layout" item.
15260 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15261 Add new-layout command to help text.
15262 (validate_window_name): New function.
15263 (tui_new_layout_command): New function.
15264 (_initialize_tui_layout): Register "new-layout".
15265 (tui_layout_window::specification): New method.
15266 (tui_layout_window::specification): New method.
15267 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15268 method.
15269 (class tui_layout_window) <specification>: New method.
15270 (class tui_layout_split) <specification>: New method.
15271
15272 2020-02-22 Tom Tromey <tom@tromey.com>
15273
15274 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15275 * tui/tui-win.c (window_name_completer): Update comment.
15276 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15277 Declare method.
15278 (class tui_layout_window) <replace_window>: Likewise.
15279 (class tui_layout_split) <replace_window>: Likewise.
15280 (tui_set_layout): Don't declare.
15281 (tui_set_initial_layout): Declare function.
15282 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15283 (asm_regs_layout): New globals.
15284 (tui_current_layout, show_layout): Remove.
15285 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15286 (find_layout, tui_apply_layout): New function.
15287 (layout_completer): Remove.
15288 (tui_next_layout): Reimplement.
15289 (tui_next_layout_command): New function.
15290 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15291 (tui_regs_layout): Reimplement.
15292 (tui_regs_layout_command): New function.
15293 (extract_display_start_addr): Rewrite.
15294 (next_layout, prev_layout): Remove.
15295 (tui_layout_window::replace_window): New method.
15296 (tui_layout_split::replace_window): New method.
15297 (destroy_layout): New function.
15298 (layout_list): New global.
15299 (add_layout_command): New function.
15300 (initialize_layouts): Update.
15301 (tui_layout_command): New function.
15302 (_initialize_tui_layout): Install "layout" commands.
15303 * tui/tui-data.h (enum tui_layout_type): Remove.
15304 (tui_current_layout): Don't declare.
15305
15306 2020-02-22 Tom Tromey <tom@tromey.com>
15307
15308 * tui/tui-regs.c (tui_reg_layout): Remove.
15309 (tui_reg_command): Use tui_regs_layout.
15310 * tui/tui-layout.h (tui_reg_command): Declare.
15311 * tui/tui-layout.c (tui_reg_command): New function.
15312
15313 2020-02-22 Tom Tromey <tom@tromey.com>
15314
15315 * tui/tui.c (tui_rl_delete_other_windows): Call
15316 tui_remove_some_windows.
15317 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15318 Declare method.
15319 (class tui_layout_window) <remove_windows>: New method.
15320 (class tui_layout_split) <remove_windows>: Declare.
15321 (tui_remove_some_windows): Declare.
15322 * tui/tui-layout.c (tui_remove_some_windows): New function.
15323 (tui_layout_split::remove_windows): New method.
15324
15325 2020-02-22 Tom Tromey <tom@tromey.com>
15326
15327 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15328 * tui/tui-layout.h (tui_next_layout): Declare.
15329 * tui/tui-layout.c (tui_next_layout): New function.
15330
15331 2020-02-22 Tom Tromey <tom@tromey.com>
15332
15333 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15334 correct coordinates.
15335
15336 2020-02-22 Tom Tromey <tom@tromey.com>
15337
15338 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15339 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15340 DATA_WIN case.
15341
15342 2020-02-22 Tom Tromey <tom@tromey.com>
15343
15344 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15345 TUI_DISASM_WIN, not tui_win_list.
15346
15347 2020-02-22 Tom Tromey <tom@tromey.com>
15348
15349 * valprint.c (generic_val_print_enum_1)
15350 (val_print_type_code_flags): Style member names.
15351 * rust-lang.c (val_print_struct, rust_print_enum)
15352 (rust_print_struct_def, rust_internal_print_type): Style member
15353 names.
15354 * p-valprint.c (pascal_object_print_value_fields): Style member
15355 names. Only call fprintf_symbol_filtered for static members.
15356 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15357 * f-valprint.c (f_val_print): Style member names.
15358 * f-typeprint.c (f_type_print_base): Style member names.
15359 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15360 call fprintf_symbol_filtered for static members.
15361 (cp_print_class_member): Style member names.
15362 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15363 member names.
15364 * ada-valprint.c (ada_print_scalar): Style enum names.
15365 (ada_val_print_enum): Likewise.
15366 * ada-typeprint.c (print_enum_type): Style enum names.
15367
15368 2020-02-21 Tom Tromey <tom@tromey.com>
15369
15370 * psympriv.h (struct partial_symtab): Update comment.
15371
15372 2020-02-21 Tom Tromey <tromey@adacore.com>
15373
15374 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15375 type is CORE_ADDR.
15376
15377 2020-02-21 Tom de Vries <tdevries@suse.de>
15378
15379 PR gdb/25534
15380 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15381 if dependencies[i]->user != NULL.
15382
15383 2020-02-21 Ali Tamur <tamur@google.com>
15384
15385 * dwarf2/read.c (dwarf2_name): Add null check.
15386
15387 2020-02-20 Tom Tromey <tom@tromey.com>
15388
15389 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15390 ">=", in binary search.
15391 (dwarf2_find_containing_comp_unit): New overload.
15392 (run_test): New self-test.
15393 (_initialize_dwarf2_read): Register new test.
15394
15395 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15396
15397 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15398 * riscv-tdep.h: Likewise.
15399 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15400 rv32-only CSR.
15401 * features/riscv/64bit-csr.xml: Regenerated.
15402
15403 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15404 Tom Tromey <tom@tromey.com>
15405
15406 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15407 of 'fputc_unfiltered'.
15408 (putchar_unfiltered): Call 'fputc_unfiltered'.
15409 (fputc_unfiltered): Call 'fputs_unfiltered'.
15410
15411 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15412
15413 * config.in: Regenerate.
15414 * configure: Regenerate.
15415 * configure.ac: Add --with-python-libdir option.
15416 * main.c: Use WITH_PYTHON_LIBDIR.
15417
15418 2020-02-19 Tom Tromey <tom@tromey.com>
15419
15420 * symtab.c (general_symbol_info::compute_and_set_names): Use
15421 obstack_strndup. Simplify call to symbol_set_demangled_name.
15422
15423 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15424
15425 * dwarf2/read.c (allocate_signatured_type_table,
15426 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15427 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15428 Remove objfile parameter, update all callers.
15429
15430 2020-02-19 Doug Evans <dje@google.com>
15431
15432 PR rust/25535
15433 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15434 rust_enum_variant calculation.
15435
15436 2020-02-19 Tom Tromey <tromey@adacore.com>
15437
15438 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15439
15440 2020-02-19 Tom Tromey <tromey@adacore.com>
15441
15442 * ada-lang.c (cache_symbol): Use obstack_strdup.
15443
15444 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15445
15446 * configure: Regenerate.
15447
15448 2020-02-19 Tom Tromey <tromey@adacore.com>
15449
15450 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15451 NULL check.
15452
15453 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15454
15455 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15456
15457 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15458
15459 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15460 if GDBSERVER is not defined.
15461 (riscv_tdesc_cache): Likewise, also store const target_desc.
15462 (STATIC_IN_GDB): Define.
15463 (riscv_create_target_description): Update declaration with
15464 STATIC_IN_GDB.
15465 (riscv_lookup_target_description): New function, only define if
15466 GDBSERVER is not defined.
15467 * arch/riscv.h (riscv_create_target_description): Declare only
15468 when GDBSERVER is defined.
15469 (riscv_lookup_target_description): New declaration when GDBSERVER
15470 is not defined.
15471 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15472 (riscv_linux_read_features): ...this, and return
15473 riscv_gdbarch_features instead of target_desc.
15474 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15475 (riscv_linux_read_description): Rename to...
15476 (riscv_linux_read_features): ...this.
15477 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15478 Update to use riscv_gdbarch_features and
15479 riscv_lookup_target_description.
15480 * riscv-tdep.c (riscv_find_default_target_description): Use
15481 riscv_lookup_target_description instead of
15482 riscv_create_target_description.
15483
15484 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15485
15486 * valprint.c (generic_val_print_enum_1): When printing a flag
15487 enum with value 0 and there is no enumerator with value 0, print
15488 just "0" instead of "(unknown: 0x0)".
15489
15490 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15491
15492 * valprint.c (generic_val_print_enum_1): Print unknown part of
15493 flag enum in hex.
15494
15495 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15496
15497 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15498 flag enums to contain duplicate enumerators.
15499 * valprint.c (generic_val_print_enum_1): Update comment.
15500
15501 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15502
15503 * dwarf2/read.c: Include "count-one-bits.h".
15504 (update_enumeration_type_from_children): If an enumerator has
15505 multiple bits set, don't treat the enumeration as a "flag enum".
15506 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15507 of flag enums have 0 or 1 bit set.
15508
15509 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15510
15511 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15512 conversion.
15513 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15514 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15515 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15516 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15517 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15518
15519 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15520
15521 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15522
15523 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15524
15525 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15526 displaced_step_closure_up.
15527 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15528 (struct displaced_step_closure_up):
15529 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15530 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15531 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15532 Likewise.
15533 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15534 * gdbarch.c, gdbarch.h: Re-generate.
15535 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15536 displaced_step_closure_up.
15537 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15538 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15539 * infrun.h (displaced_step_closure_up): New type alias.
15540 (struct displaced_step_inferior_state) <step_closure>: Change
15541 type to displaced_step_closure_up.
15542 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15543 displaced_step_closure_up.
15544 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15545
15546 2020-02-14 Tom Tromey <tom@tromey.com>
15547
15548 * minidebug.c (gnu_debug_key): New global.
15549 (find_separate_debug_file_in_section): Use it.
15550
15551 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15552
15553 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15554 std::unique_ptr.
15555 * gdbarch.c: Re-generate.
15556 * gdbarch.h: Re-generate.
15557 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15558 change.
15559 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15560 type to std::unique_ptr.
15561 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15562 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15563 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15564 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15565 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15566 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15567 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15568 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15569 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15570
15571 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15572
15573 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15574 std::unique_ptr.
15575 (displaced_step_clear): Rename to...
15576 (displaced_step_reset): ... this. Just call displaced->reset ().
15577 (displaced_step_clear_cleanup): Rename to...
15578 (displaced_step_reset_cleanup): ... this.
15579 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15580 (displaced_step_fixup): Likewise.
15581 (resume_1): Likewise.
15582 (handle_inferior_event): Restore child's memory before calling
15583 displaced_step_fixup on the parent.
15584 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15585 to std::unique_ptr.
15586 <step_closure>: Change type to std::unique_ptr.
15587
15588 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15589
15590 * arm-tdep.c: Include count-one-bits.h.
15591 (cleanup_block_store_pc): Use count_one_bits.
15592 (cleanup_block_load_pc): Use count_one_bits.
15593 (arm_copy_block_xfer): Use count_one_bits.
15594 (thumb2_copy_block_xfer): Use count_one_bits.
15595 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15596 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15597 (thumb_get_next_pcs_raw): Use count_one_bits.
15598 (arm_get_next_pcs_raw): Use count_one_bits_l.
15599 * arch/arm.c (bitcount): Remove.
15600 * arch/arm.h (bitcount): Remove.
15601
15602 2020-02-14 Tom Tromey <tromey@adacore.com>
15603
15604 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15605 Update.
15606 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15607 * dwarf2/loc.c (call_site_find_chain_1): Return
15608 unique_xmalloc_ptr.
15609 (call_site_find_chain): Likewise.
15610
15611 2020-02-14 Richard Biener <rguenther@suse.de>
15612
15613 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15614 on expression with division operators.
15615
15616 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15617
15618 * MAINTAINERS (Write After Approval): Adding myself.
15619
15620 2020-02-12 Tom Tromey <tom@tromey.com>
15621
15622 * event-loop.c (event_data, gdb_event, event_handler_func):
15623 Remove.
15624
15625 2020-02-12 Tom Tromey <tom@tromey.com>
15626
15627 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15628 (dwarf2_frame_objfile_data): Add comment.
15629 (find_comp_unit, set_comp_unit): New functions.
15630 (dwarf2_frame_find_fde): Use find_comp_unit.
15631 (dwarf2_build_frame_info): Use set_comp_unit.
15632
15633 2020-02-12 Tom Tromey <tom@tromey.com>
15634
15635 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15636 (comp_unit): Don't initialize objfile.
15637 (execute_cfa_program): Add text_offset parameter.
15638 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15639 (dwarf2_frame_cache): Update.
15640 (dwarf2_build_frame_info): Don't set "objfile" member.
15641
15642 2020-02-12 Tom Tromey <tom@tromey.com>
15643
15644 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15645 (decode_frame_entry): Likewise.
15646 (dwarf2_build_frame_info): Update.
15647
15648 2020-02-12 Tom Tromey <tom@tromey.com>
15649
15650 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15651 (decode_frame_entry_1): Use the comp_unit obstack.
15652
15653 2020-02-12 Tom Tromey <tom@tromey.com>
15654
15655 * dwarf2/frame.c (struct comp_unit): Add initializers and
15656 constructor.
15657 (dwarf2_frame_objfile_data): Store a comp_unit.
15658 (dwarf2_frame_find_fde): Update.
15659 (dwarf2_build_frame_info): Use "new".
15660
15661 2020-02-12 Tom Tromey <tom@tromey.com>
15662
15663 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15664 (dwarf2_fde_table): Typedef for std::vector.
15665 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15666 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15667 (decode_frame_entry): Update.
15668 (dwarf2_build_frame_info): Use "new".
15669
15670 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15671
15672 * arm-tdep.c (arm_gdbarch_init): Update.
15673 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15674 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15675 have_neon, is_m>: Change to bool.
15676
15677 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15678
15679 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15680
15681 2020-02-12 Tom Tromey <tom@tromey.com>
15682
15683 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15684
15685 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15686
15687 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15688 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15689
15690 2020-02-11 Tom Tromey <tom@tromey.com>
15691
15692 * psymtab.h: Update comment.
15693
15694 2020-02-11 Tom Tromey <tom@tromey.com>
15695
15696 * gdb_obstack.h (struct auto_obstack): Use
15697 DISABLE_COPY_AND_ASSIGN.
15698
15699 2020-02-11 Tom Tromey <tom@tromey.com>
15700
15701 * dwarf2/frame.h (struct objfile): Don't forward declare.
15702
15703 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15704
15705 * cris-tdep.c (cris_supply_gregset): Change signature to match
15706 what struct regset expects.
15707 (cris_regset): New struct.
15708 (fetch_core_registers): Remove.
15709 (cris_iterate_over_regset_sections): New function.
15710 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15711 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15712
15713 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15714
15715 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15716 registers.
15717
15718 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15719
15720 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15721
15722 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15723
15724 * configure: Re-generate.
15725
15726 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15727
15728 * configure: Re-generate.
15729
15730 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15731
15732 * acinclude: Update warning.m4 path.
15733 * warning.m4: Move to gdbsupport.
15734
15735 2020-02-11 Tom Tromey <tromey@adacore.com>
15736
15737 * remote.c (remote_console_output): Update.
15738 * printcmd.c (printf_command): Update.
15739 * event-loop.c (gdb_wait_for_event): Update.
15740 * linux-nat.c (sigchld_handler): Update.
15741 * remote-sim.c (gdb_os_write_stdout): Update.
15742 (gdb_os_flush_stdout): Update.
15743 (gdb_os_flush_stderr): Update.
15744 (gdb_os_write_stderr): Update.
15745 * exceptions.c (print_exception): Update.
15746 * remote-fileio.c (remote_fileio_func_read): Update.
15747 (remote_fileio_func_write): Update.
15748 * tui/tui.c (tui_enable): Update.
15749 * tui/tui-interp.c (tui_interp::init): Update.
15750 * utils.c (init_page_info): Update.
15751 (putchar_unfiltered, fputc_unfiltered): Update.
15752 (gdb_flush): Update.
15753 (emit_style_escape): Update.
15754 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15755 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15756 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15757 (stderr_file::write): Update.
15758 (stderr_file::puts): Update.
15759 * ui-file.h (ui_file_isatty, ui_file_write)
15760 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15761 (ui_file_puts): Don't declare.
15762
15763 2020-02-10 Tom de Vries <tdevries@suse.de>
15764
15765 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15766 sentinel to char *.
15767
15768 2020-02-09 Tom de Vries <tdevries@suse.de>
15769
15770 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15771 filename if it matches "<artificial>".
15772
15773 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15774
15775 * windows-tdep.c (struct enum_value_name): New struct.
15776 (create_enum): New function.
15777 (windows_get_siginfo_type): Create and use enum types.
15778
15779 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15780
15781 * NEWS: Mention $_siginfo support for Windows.
15782 * windows-nat.c (handle_exception): Set siginfo_er.
15783 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15784 (windows_xfer_siginfo): New function.
15785 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15786 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15787 (init_windows_gdbarch_data): New function.
15788 (get_windows_gdbarch_data): New function.
15789 (windows_get_siginfo_type): New function.
15790 (windows_init_abi): Register windows_get_siginfo_type.
15791 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15792
15793 2020-02-08 Tom Tromey <tom@tromey.com>
15794
15795 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15796 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15797 <keep>: Declare method.
15798 <m_keep>: Remove member.
15799 <~cutu_reader>: Remove.
15800 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15801 (cutu_reader::cutu_reader): Update.
15802 (cutu_reader::keep): Rename from ~cutu_reader.
15803 (process_psymtab_comp_unit, build_type_psymtabs_1)
15804 (process_skeletonless_type_unit, load_partial_comp_unit)
15805 (load_full_comp_unit, dwarf2_read_addr_index)
15806 (read_signatured_type): Update.
15807
15808 2020-02-08 Tom Tromey <tom@tromey.com>
15809
15810 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15811 "want_partial_unit" parameter.
15812 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15813 Inline check for DW_TAG_partial_unit.
15814 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15815
15816 2020-02-08 Tom Tromey <tom@tromey.com>
15817
15818 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15819 read.c.
15820 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15821 read.c.
15822
15823 2020-02-08 Tom Tromey <tom@tromey.com>
15824
15825 * dwarf2/read.c (read_address): Move to comp-unit.c.
15826 (dwarf2_rnglists_process, dwarf2_ranges_process)
15827 (read_attribute_value, dwarf_decode_lines_1)
15828 (var_decode_location, decode_locdesc): Update.
15829 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15830 read.c. Remove "cu" parameter.
15831 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15832 method.
15833
15834 2020-02-08 Tom Tromey <tom@tromey.com>
15835
15836 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15837 (read_indirect_line_string): Update.
15838 * dwarf2/comp-unit.c (read_offset): Remove.
15839 (read_comp_unit_head): Update.
15840 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15841 method.
15842 (read_offset): Don't declare.
15843
15844 2020-02-08 Tom Tromey <tom@tromey.com>
15845
15846 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15847 * dwarf2/read.c (struct comp_unit_head): Move to
15848 dwarf2/comp-unit.h.
15849 (enum class rcuh_kind): Move to comp-unit.h.
15850 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15851 (read_comp_unit_head, error_check_comp_unit_head)
15852 (read_and_check_comp_unit_head): Move to comp-unit.c.
15853 (read_offset, dwarf_unit_type_name): Likewise.
15854 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15855 (cutu_reader::cutu_reader, read_call_site_scope)
15856 (find_partial_die, follow_die_offset): Update.
15857 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15858
15859 2020-02-08 Tom Tromey <tom@tromey.com>
15860
15861 * dwarf2/read.c (read_offset_1): Move to leb.c.
15862 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15863 (dwarf_decode_macro_bytes): Update.
15864 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15865 * dwarf2/leb.h (read_offset): Declare.
15866
15867 2020-02-08 Tom Tromey <tom@tromey.com>
15868
15869 * dwarf2/read.c (dwarf2_section_size): Remove.
15870 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15871 Update.
15872 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15873
15874 2020-02-08 Tom Tromey <tom@tromey.com>
15875
15876 * dwarf2/read.c (read_initial_length): Move to leb.c.
15877 * dwarf2/leb.h (read_initial_length): Declare.
15878 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15879 handle_nonstd parameter.
15880 * dwarf2/frame.c (read_initial_length): Remove.
15881 (decode_frame_entry_1): Update.
15882
15883 2020-02-08 Tom Tromey <tom@tromey.com>
15884
15885 * dwarf2/loc.c (dwarf2_find_location_expression)
15886 (dwarf_evaluate_loc_desc::get_tls_address)
15887 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15888 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15889 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15890 (dwarf2_compile_property_to_c)
15891 (dwarf2_loc_desc_get_symbol_read_needs)
15892 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15893 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15894 (loclist_describe_location, loclist_tracepoint_var_ref)
15895 (loclist_generate_c_location): Update.
15896 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15897 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15898 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15899 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15900 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15901 (dwarf2_per_cu_data::addr_size)
15902 (dwarf2_per_cu_data::ref_addr_size)
15903 (dwarf2_per_cu_data::text_offset)
15904 (dwarf2_per_cu_data::addr_type): Now methods.
15905 (per_cu_header_read_in): Make per_cu "const".
15906 (dwarf2_version): Remove.
15907 (dwarf2_per_cu_data::int_type): Now a method.
15908 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15909 (set_die_type, read_array_type, read_subrange_index_type)
15910 (read_tag_string_type, read_subrange_type): Update.
15911 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15912 offset_size, ref_addr_size, text_offset, addr_type, version,
15913 objfile, int_type, addr_sized_int_type>: Declare methods.
15914
15915 2020-02-08 Tom Tromey <tom@tromey.com>
15916
15917 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15918 Move earlier.
15919
15920 2020-02-08 Tom Tromey <tom@tromey.com>
15921
15922 * dwarf2/read.h (dwarf_line_debug): Declare.
15923 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15924 * dwarf2/read.c: Move line_header code to new files.
15925 (dwarf_line_debug): No longer static.
15926 * dwarf2/line-header.c: New file.
15927 * dwarf2/line-header.h: New file.
15928
15929 2020-02-08 Tom Tromey <tom@tromey.com>
15930
15931 * dwarf2/read.c (struct line_header) <file_full_name,
15932 file_file_name>: Return unique_xmalloc_ptr.
15933 (line_header::file_file_name): Update.
15934 (line_header::file_full_name): Update.
15935 (dw2_get_file_names_reader): Update.
15936 (macro_start_file): Update.
15937
15938 2020-02-08 Tom Tromey <tom@tromey.com>
15939
15940 * dwarf2/read.c (struct line_header) <file_full_name,
15941 file_file_name>: Declare methods.
15942 (dw2_get_file_names_reader): Update.
15943 (file_file_name): Now a method.
15944 (file_full_name): Likewise.
15945 (macro_start_file): Update.
15946
15947 2020-02-08 Tom Tromey <tom@tromey.com>
15948
15949 * dwarf2/read.c (dwarf_always_disassemble)
15950 (show_dwarf_always_disassemble): Move to loc.c.
15951 (_initialize_dwarf2_read): Move "always-disassemble" registration
15952 to loc.c.
15953 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15954 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15955 static.
15956 (show_dwarf_always_disassemble): Move from read.c.
15957 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15958
15959 2020-02-08 Tom Tromey <tom@tromey.com>
15960
15961 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15962 (create_quick_file_names_table): Return htab_up.
15963 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15964 Update.
15965 * dwarf2/read.h (struct dwarf2_per_objfile)
15966 <quick_file_names_table>: Now htab_up.
15967
15968 2020-02-08 Tom Tromey <tom@tromey.com>
15969
15970 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15971
15972 2020-02-08 Tom Tromey <tom@tromey.com>
15973
15974 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15975 Rewrite.
15976 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15977 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15978 (abbrev_table::abbrev_table): No longer inline.
15979 (ABBREV_HASH_SIZE): Remove.
15980 (abbrev_table::m_abbrevs): Now an htab_up.
15981
15982 2020-02-08 Tom Tromey <tom@tromey.com>
15983
15984 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15985 (cutu_reader): Update.
15986 (build_type_psymtabs_1): Update.
15987 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15988 (abbrev_table::alloc_abbrev): Update.
15989 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15990 (abbrev_table::read): New static method, renamed from
15991 abbrev_table_read_table.
15992 (abbrev_table::alloc_abbrev)
15993 (abbrev_table::add_abbrev): Now private.
15994 (abbrev_table::abbrev_table): Now private.
15995 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15996
15997 2020-02-08 Tom Tromey <tom@tromey.com>
15998
15999 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
16000 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
16001 htab_up.
16002
16003 2020-02-08 Tom Tromey <tom@tromey.com>
16004
16005 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
16006 htab_up.
16007 (lookup_dwo_unit_in_dwp): Update.
16008 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16009 on obstack.
16010
16011 2020-02-08 Tom Tromey <tom@tromey.com>
16012
16013 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16014 obstack.
16015
16016 2020-02-08 Tom Tromey <tom@tromey.com>
16017
16018 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16019 line_header_hash.
16020 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16021 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16022 Change type to htab_up.
16023
16024 2020-02-08 Tom Tromey <tom@tromey.com>
16025
16026 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16027 htab_up. Don't allocate on obstack.
16028 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16029 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16030 Change type to htab_up.
16031
16032 2020-02-08 Tom Tromey <tom@tromey.com>
16033
16034 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16035 Change type to htab_up.
16036 * dwarf2/read.c (create_signatured_type_table_from_index)
16037 (create_signatured_type_table_from_debug_names)
16038 (create_all_type_units, add_type_unit)
16039 (lookup_dwo_signatured_type, lookup_signatured_type)
16040 (process_skeletonless_type_unit): Update.
16041 (create_debug_type_hash_table, create_debug_types_hash_table):
16042 Change type of types_htab.
16043 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16044 htab_up. Don't allocate on obstack.
16045 (create_cus_hash_table): Change type of cus_htab parameter.
16046 (struct dwo_file) <cus, tus>: Now htab_up.
16047 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16048 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16049 (queue_and_load_all_dwo_tus): Update.
16050 * dwarf2/index-write.c (write_gdbindex): Update.
16051 (write_debug_names): Update.
16052
16053 2020-02-08 Tom Tromey <tom@tromey.com>
16054
16055 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16056 dwarf2/read.c. Remove "next" member. Add constructor ntad
16057 destructor.
16058 (struct dwarf2_per_objfile) <queue>: New member.
16059 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16060 dwarf2/read.h.
16061 (dwarf2_queue, dwarf2_queue_tail): Remove.
16062 (class dwarf2_queue_guard): Add parameter to constructor. Use
16063 DISABLE_COPY_AND_ASSIGN.
16064 <m_per_objfile>: New member.
16065 <~dwarf2_queue_guard>: Rewrite.
16066 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16067 Update.
16068 (~dwarf2_queue_item): New.
16069
16070 2020-02-08 Tom Tromey <tom@tromey.com>
16071
16072 * dwarf2/read.c (struct die_info) <has_children>: New member.
16073 (dw2_get_file_names_reader): Remove has_children.
16074 (dw2_get_file_names): Update.
16075 (read_cutu_die_from_dwo): Remove has_children.
16076 (cutu_reader::init_tu_and_read_dwo_dies)
16077 (cutu_reader::cutu_reader): Update.
16078 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16079 Remove has_children.
16080 (build_type_psymtabs_1, process_skeletonless_type_unit)
16081 (load_partial_comp_unit, load_full_comp_unit): Update.
16082 (create_dwo_cu_reader): Remove has_children.
16083 (create_cus_hash_table, read_die_and_children): Update.
16084 (read_full_die_1,read_full_die): Remove has_children.
16085 (read_signatured_type): Update.
16086 (class cutu_reader) <has_children>: Remove.
16087
16088 2020-02-08 Tom Tromey <tom@tromey.com>
16089
16090 * dwarf2/expr.c: Rename from dwarf2expr.c.
16091 * dwarf2/expr.h: Rename from dwarf2expr.h.
16092 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16093 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16094 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16095 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16096 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16097 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16098 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16099 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16100 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16101 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16102 * dwarf2/loc.c: Rename from dwarf2loc.c.
16103 * dwarf2/loc.h: Rename from dwarf2loc.h.
16104 * dwarf2/read.c: Rename from dwarf2read.c.
16105 * dwarf2/read.h: Rename from dwarf2read.h.
16106 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16107 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16108 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16109 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16110 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16111 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16112 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16113 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16114 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16115 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16116 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16117 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16118 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16119 Update.
16120 * Makefile.in (COMMON_SFILES): Update.
16121 (HFILES_NO_SRCDIR): Update.
16122
16123 2020-02-08 Tom Tromey <tom@tromey.com>
16124
16125 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16126 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16127
16128 2020-02-08 Tom Tromey <tom@tromey.com>
16129
16130 * dwarf2read.h (struct die_info): Don't declare.
16131
16132 2020-02-08 Tom Tromey <tom@tromey.com>
16133
16134 * dwarf2read.h (die_info_ptr): Remove typedef.
16135
16136 2020-02-08 Tom Tromey <tom@tromey.com>
16137
16138 * dwarf2read.c (read_call_site_scope)
16139 (handle_data_member_location, dwarf2_add_member_fn)
16140 (mark_common_block_symbol_computed, read_common_block)
16141 (attr_to_dynamic_prop, partial_die_info::read)
16142 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16143 (dwarf2_symbol_mark_computed, set_die_type): Update.
16144 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16145 method.
16146 (attr_form_is_block): Don't declare.
16147 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16148
16149 2020-02-08 Tom Tromey <tom@tromey.com>
16150
16151 * dwarf2read.c (dwarf2_find_base_address, )
16152 (read_call_site_scope, rust_containing_type)
16153 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16154 (handle_data_member_location, dwarf2_add_member_fn)
16155 (get_alignment, read_structure_type, process_structure_scope)
16156 (mark_common_block_symbol_computed, read_common_block)
16157 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16158 (partial_die_info::read, read_attribute_value, new_symbol)
16159 (lookup_die_type, dwarf2_get_ref_die_offset)
16160 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16161 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16162 (dwarf2_symbol_mark_computed): Update.
16163 * dwarf2/attribute.h (struct attribute) <value_as_address,
16164 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16165 methods.
16166 (value_as_address, attr_form_is_section_offset)
16167 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16168 * dwarf2/attribute.c (attribute::value_as_address)
16169 (attribute::form_is_section_offset, attribute::form_is_constant)
16170 (attribute::form_is_ref): Now methods.
16171
16172 2020-02-08 Tom Tromey <tom@tromey.com>
16173
16174 * dwarf2read.c (struct attribute, DW_STRING)
16175 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16176 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16177 (attr_form_is_block, attr_form_is_section_offset)
16178 (attr_form_is_constant, attr_form_is_ref): Move.
16179 * dwarf2/attribute.h: New file.
16180 * dwarf2/attribute.c: New file, from dwarf2read.c.
16181 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16182
16183 2020-02-08 Tom Tromey <tom@tromey.com>
16184
16185 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16186 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16187 Move.
16188 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16189 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16190 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16191 abbrev.c.
16192 * dwarf2/abbrev.h: New file.
16193 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16194 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16195
16196 2020-02-08 Tom Tromey <tom@tromey.com>
16197
16198 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16199 (dwarf2_section_size, dwarf2_get_section_info)
16200 (create_signatured_type_table_from_debug_names)
16201 (create_addrmap_from_aranges, read_debug_names_from_section)
16202 (get_gdb_index_contents_from_section, read_comp_unit_head)
16203 (error_check_comp_unit_head, read_abbrev_offset)
16204 (create_debug_type_hash_table, init_cu_die_reader)
16205 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16206 (read_comp_units_from_section, create_cus_hash_table)
16207 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16208 (create_dwp_v2_section, dwarf2_rnglists_process)
16209 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16210 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16211 (read_indirect_string_from_dwz, read_addr_index_1)
16212 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16213 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16214 (fill_in_loclist_baton): Update.
16215 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16216 get_containing_section, get_bfd_owner, get_bfd_section,
16217 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16218 (dwarf2_read_section, get_section_name, get_section_file_name)
16219 (get_containing_section, get_section_bfd_owner)
16220 (get_section_bfd_section, get_section_name, get_section_file_name)
16221 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16222 declare.
16223 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16224 (dwarf2_section_info::get_bfd_owner)
16225 (dwarf2_section_info::get_bfd_section)
16226 (dwarf2_section_info::get_name)
16227 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16228 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16229 (dwarf2_section_info::read): Now methods.
16230 * dwarf-index-write.c (class debug_names): Update.
16231
16232 2020-02-08 Tom Tromey <tom@tromey.com>
16233
16234 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16235 Move to dwarf2/section.h.
16236 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16237 (get_section_bfd_section, get_section_name)
16238 (get_section_file_name, get_section_id, get_section_flags)
16239 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16240 dwarf2/section.c.
16241 * dwarf2/section.h: New file.
16242 * dwarf2/section.c: New file, from dwarf2read.c.
16243 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16244
16245 2020-02-08 Tom Tromey <tom@tromey.com>
16246
16247 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16248 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16249 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16250 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16251 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16252 * dwarf2/leb.h: New file, from dwarf2read.c.
16253 * dwarf2/leb.c: New file, from dwarf2read.c.
16254 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16255 Remove.
16256 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16257 (COMMON_SFILES): Add dwarf2/leb.c.
16258
16259 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16260
16261 GDB 9.1 released.
16262
16263 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16264
16265 PR gdb/25190:
16266 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16267 * gdb/remote.c (remote_console_output): Update.
16268 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16269 (ui_file_puts): ...this.
16270 * gdb/ui-file.h (ui_file_puts): Add declaration.
16271 * gdb/utils.c (emit_style_escape): Update.
16272 (flush_wrap_buffer): Update.
16273 (fputs_maybe_filtered): Update.
16274 (fputs_unfiltered): Add function.
16275
16276 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16277
16278 * gdb/event-loop.c (gdb_wait_for_event): Update.
16279 * gdb/printcmd.c (printf_command): Update.
16280 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16281 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16282 (gdb_os_flush_stderr): Update.
16283 * gdb/remote.c (remote_console_output): Update.
16284 * gdb/ui-file.c (gdb_flush): Rename to...
16285 (ui_file_flush): ...this.
16286 (stderr_file::write): Update.
16287 (stderr_file::puts): Update.
16288 * gdb/ui-file.h (gdb_flush): Rename to...
16289 (ui_file_flush): ...this.
16290 * gdb/utils.c (gdb_flush): Add function.
16291 * gdb/utils.h (gdb_flush): Add declaration.
16292
16293 2020-02-07 Tom Tromey <tromey@adacore.com>
16294
16295 PR breakpoints/24915:
16296 * source.c (find_and_open_source): Do not check basenames_may_differ.
16297
16298 2020-02-07 Tom Tromey <tom@tromey.com>
16299
16300 * README: Update gdbserver documentation.
16301 * gdbserver: Move to top level.
16302 * configure.tgt (build_gdbserver): Remove.
16303 * configure.ac: Remove --enable-gdbserver.
16304 * configure: Rebuild.
16305 * Makefile.in (distclean): Don't mention gdbserver.
16306
16307 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16308
16309 * source-cache.c (source_cache::ensure): Surround
16310 get_plain_source_lines with a try/catch.
16311 (source_cache::get_line_charpos): Get rid of try/catch
16312 and only check for the return value of "ensure".
16313 * tui/tui-source.c (tui_source_window::set_contents):
16314 Simplify "nlines" calculation.
16315
16316 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16317
16318 * MAINTAINERS (Write After Approval): Add myself.
16319
16320 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16321
16322 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16323 function call.
16324
16325 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16326
16327 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16328
16329 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16330
16331 * nat/riscv-linux-tdesc.h: New file.
16332 * nat/riscv-linux-tdesc.c: New file, taking code from...
16333 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16334 ... here.
16335 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16336 NATDEPFILES.
16337
16338 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16339
16340 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16341 we don't set the fake simulator ptid to the null_ptid.
16342
16343 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16344
16345 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16346 * gdbthread.h (class thread_info) <resumed>: Likewise.
16347 * infrun.c (resume_1): Likewise.
16348 (proceed): Likewise.
16349 (infrun_thread_stop_requested): Likewise.
16350 (stop_all_threads): Likewise.
16351 (handle_inferior_event): Likewise.
16352 (restart_threads): Likewise.
16353 (finish_step_over): Likewise.
16354 (keep_going_stepped_thread): Likewise.
16355 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16356 (linux_handle_extended_wait): Likewise.
16357 * record-btrace.c (get_thread_current_frame_id): Likewise.
16358 * record-full.c (record_full_wait_1): Likewise.
16359 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16360 * target.c (target_resume): Likewise.
16361 * thread.c (set_running_thread): Likewise.
16362
16363 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16364
16365 * f-valprint.c (f77_print_array_1): Changed datatype of index
16366 variable to LONGEST from int to enable it to contain bound
16367 values correctly.
16368
16369 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16370
16371 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16372 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16373 offsets according to FLEN determined.
16374 (riscv_linux_nat_target::read_description): Determine FLEN
16375 dynamically.
16376 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16377 according to FLEN determined.
16378 (riscv_linux_nat_target::store_registers): Likewise.
16379
16380 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16381
16382 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16383 when reg->group is empty and reggroup is not.
16384
16385 2020-01-31 Tom Tromey <tromey@adacore.com>
16386
16387 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16388 Call beneath target's mourn_inferior after unpushing.
16389
16390 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16391
16392 PR tui/9765
16393 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16394 have enough lines to fill the screen, still return the lowest
16395 address we found.
16396
16397 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16398
16399 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16400 '-', '<', and '>' commands.
16401
16402 2020-01-29 Pedro Alves <palves@redhat.com>
16403 Sergio Durigan Junior <sergiodj@redhat.com>
16404
16405 * infcmd.c (construct_inferior_arguments): Assert that
16406 'argc' is greater than 0.
16407
16408 2020-01-29 Luis Machado <luis.machado@linaro.org>
16409
16410 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16411 (BRK_INSN_MASK): Define to 0xd4200000.
16412 (aarch64_program_breakpoint_here_p): New function.
16413 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16414 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16415 breakpoint.c.
16416 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16417 breakpoint.h
16418 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16419 call gdbarch_program_breakpoint_here_p.
16420 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16421 default_program_breakpoint_here_p, changed return type to bool and
16422 simplified.
16423 * breakpoint.h (program_breakpoint_here): Moved prototype to
16424 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16425 return type to bool.
16426 * gdbarch.c: Regenerate.
16427 * gdbarch.h: Regenerate.
16428 * gdbarch.sh (program_breakpoint_here_p): New method.
16429 * infrun.c (handle_signal_stop): Call
16430 gdbarch_program_breakpoint_here_p.
16431
16432 2020-01-26 Tom Tromey <tom@tromey.com>
16433
16434 * ctfread.c (struct ctf_fp_info): Reindent.
16435 (_initialize_ctfread): Remove.
16436
16437 2020-01-26 Tom Tromey <tom@tromey.com>
16438
16439 * psymtab.c (partial_map_expand_apply)
16440 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16441 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16442 (psym_print_stats, psym_expand_symtabs_for_function)
16443 (psym_map_symbol_filenames, psym_map_matching_symbols)
16444 (psym_expand_symtabs_matching)
16445 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16446 (maintenance_check_psymtabs): Use new methods.
16447 * psympriv.h (struct partial_symtab) <readin_p,
16448 get_compunit_symtab>: New methods.
16449 <readin, compunit_symtab>: Remove members.
16450 (struct standard_psymtab): New.
16451 (struct legacy_psymtab): Derive from standard_psymtab.
16452 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16453 standard_psymtab.
16454 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16455
16456 2020-01-26 Tom Tromey <tom@tromey.com>
16457
16458 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16459 read_dependencies. Add assert.
16460 * psymtab.c (partial_symtab::read_dependencies): New method.
16461 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16462 method.
16463 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16464 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16465 read_dependencies.
16466 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16467 Add assert.
16468
16469 2020-01-26 Tom Tromey <tom@tromey.com>
16470
16471 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16472 Call expand_psymtab.
16473 (xcoff_read_symtab): Call expand_psymtab.
16474 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16475 legacy_expand_psymtab.
16476 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16477 method.
16478 (struct legacy_psymtab) <expand_psymtab>: Implement.
16479 <legacy_expand_psymtab>: New member.
16480 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16481 (parse_partial_symbols): Set legacy_expand_psymtab.
16482 (psymtab_to_symtab_1): Change argument order. Call
16483 expand_psymtab.
16484 (new_psymtab): Set legacy_expand_psymtab.
16485 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16486 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16487 expand_psymtab.
16488 (dwarf2_psymtab::expand_psymtab): Rename from
16489 psymtab_to_symtab_1. Call expand_psymtab.
16490 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16491 (dbx_end_psymtab): Likewise.
16492 (dbx_psymtab_to_symtab_1): Change argument order. Call
16493 expand_psymtab.
16494 (dbx_read_symtab): Call expand_psymtab.
16495 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16496 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16497 (ctf_psymtab::read_symtab): Call expand_psymtab.
16498
16499 2020-01-26 Tom Tromey <tom@tromey.com>
16500
16501 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16502 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16503 messages.
16504 * mdebugread.c (mdebug_read_symtab): Remove prints.
16505 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16506 assert.
16507 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16508
16509 2020-01-26 Tom Tromey <tom@tromey.com>
16510
16511 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16512 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16513 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16514 legacy_symtab.
16515 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16516 * psymtab.c (psymtab_to_symtab): Call method.
16517 (dump_psymtab): Update.
16518 * psympriv.h (struct partial_symtab): Add virtual destructor.
16519 <read_symtab>: New method.
16520 (struct legacy_symtab): New.
16521 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16522 (struct pst_map) <pst>: Now a legacy_psymtab.
16523 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16524 (new_psymtab): Use legacy_psymtab.
16525 * dwarf2read.h (struct dwarf2_psymtab): New.
16526 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16527 * dwarf2read.c (dwarf2_create_include_psymtab)
16528 (dwarf2_build_include_psymtabs, create_type_unit_group)
16529 (create_partial_symtab, process_psymtab_comp_unit_reader)
16530 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16531 (set_partial_user): Use dwarf2_psymtab.
16532 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16533 (psymtab_to_symtab_1, process_full_comp_unit)
16534 (process_full_type_unit, dwarf2_ranges_read)
16535 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16536 (dwarf_decode_lines): Use dwarf2_psymtab.
16537 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16538 (add_address_entry_worker, write_one_signatured_type)
16539 (recursively_count_psymbols, recursively_write_psymbols)
16540 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16541 (write_debug_names): Likewise.
16542 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16543 <pst>: Now a legacy_psymtab.
16544 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16545 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16546 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16547 * ctfread.c (struct ctf_psymtab): New.
16548 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16549 ctf_psymtab.
16550 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16551 (create_partial_symtab): Return a ctf_psymtab.
16552 (scan_partial_symbols): Update.
16553
16554 2020-01-26 Tom Tromey <tom@tromey.com>
16555
16556 * xcoffread.c (xcoff_start_psymtab): Use new.
16557 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16558 renamed from start_psymtab_common.
16559 * psympriv.h (struct partial_symtab): Add new constructor.
16560 (start_psymtab_common): Don't declare.
16561 * mdebugread.c (parse_partial_symbols): Use new.
16562 * dwarf2read.c (create_partial_symtab): Use new.
16563 * dbxread.c (start_psymtab): Use new.
16564 * ctfread.c (create_partial_symtab): Use new.
16565
16566 2020-01-26 Tom Tromey <tom@tromey.com>
16567
16568 * xcoffread.c (xcoff_end_psymtab): Use new.
16569 * psymtab.c (start_psymtab_common): Use new.
16570 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16571 Update.
16572 * psympriv.h (struct partial_symtab): Add parameters to
16573 constructor. Don't inline.
16574 (allocate_psymtab): Don't declare.
16575 * mdebugread.c (new_psymtab): Use new.
16576 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16577 * dbxread.c (dbx_end_psymtab): Use new.
16578
16579 2020-01-26 Tom Tromey <tom@tromey.com>
16580
16581 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16582 allocate_psymtab. Update documentation.
16583 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16584 allocate_psymtab. Do not use new.
16585 (allocate_psymtab): Use new. Update.
16586
16587 2020-01-26 Tom Tromey <tom@tromey.com>
16588
16589 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16590 * psymtab.c (psym_print_stats): Update.
16591 * psympriv.h (struct partial_symtab) <readin,
16592 psymtabs_addrmap_supported, anonymous>: Now bool.
16593 * mdebugread.c (psymtab_to_symtab_1): Update.
16594 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16595 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16596 (process_full_comp_unit, process_full_type_unit): Update.
16597 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16598 * ctfread.c (psymtab_to_symtab): Update.
16599
16600 2020-01-26 Tom Tromey <tom@tromey.com>
16601
16602 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16603 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16604 * psymtab.c (psymtab_storage): Delete psymtabs.
16605 (psymtab_storage::allocate_psymtab): Use new.
16606 (psymtab_storage::discard_psymtab): Use delete.
16607 * psympriv.h (struct partial_symtab): Add constructor and
16608 initializers.
16609
16610 2020-01-26 Tom Tromey <tom@tromey.com>
16611
16612 * machoread.c: Do not include psympriv.h.
16613
16614 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16615
16616 * NEWS: Mention the new option and the set/show commands.
16617
16618 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16619
16620 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16621 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16622 (validate_exec_file): New variables, enums, functions.
16623 (exec_file_locate_attach, print_section_info): Style the filenames.
16624 (_initialize_exec): Install show_exec_file_mismatch_command and
16625 set_exec_file_mismatch_command.
16626 * gdbcore.h (validate_exec_file): Declare.
16627 * infcmd.c (attach_command): Call validate_exec_file.
16628 * remote.c ( remote_target::remote_add_inferior): Likewise.
16629
16630 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16631
16632 * frame.c (find_frame_sal): Move call to get_next_frame into more
16633 inner scope.
16634 * inline-frame.c (inilne_state) <inline_state>: Update argument
16635 types.
16636 (inilne_state) <skipped_symbol>: Rename to...
16637 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16638 (skip_inline_frames): Build vector of skipped symbols and use this
16639 to reate the inline_state.
16640 (inline_skipped_symbol): Add a comment and some assertions, fetch
16641 skipped symbol from the list.
16642
16643 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16644
16645 * buildsym.c (lte_is_less_than): Delete.
16646 (buildsym_compunit::end_symtab_with_blockvector): Create local
16647 lambda function to sort line table entries, and use
16648 std::stable_sort instead of std::sort.
16649 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16650 markers when looking for a previous line.
16651
16652 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16653
16654 * dwarf2read.c (lnp_state_machine::record_line): Include
16655 end_sequence parameter in debug print out. Record the line if we
16656 are at an end_sequence marker even if it's not the start of a
16657 statement.
16658 * symmisc.c (maintenance_print_one_line_table): Print end of
16659 sequence markers with 'END' not '0'.
16660
16661 2020-01-24 Pedro Alves <palves@redhat.com>
16662
16663 PR gdb/25410
16664 * thread.c (scoped_restore_current_thread::restore): Use
16665 switch_to_inferior_no_thread.
16666 * exec.c: Include "progspace-and-thread.h".
16667 (add_target_sections, remove_target_sections):
16668 scoped_restore_current_pspace_and_thread instead of
16669 scoped_restore_current_thread.
16670 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16671 and aspace to the inferior before calling clone_program_space.
16672 Remove stale comment.
16673
16674 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16675
16676 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16677 (arm_netbsd_nat_target::fetch_registers): ...this.
16678 (arm_nbsd_nat_target::store_registers): Rename to...
16679 (arm_netbsd_nat_target::store_registers): ...this.
16680
16681 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16682
16683 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16684 register_t.
16685
16686 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16687
16688 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16689 Update comment.
16690 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16691 Likewise.
16692 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16693 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16694 the correct replacement (iterate_over_regset_sections).
16695 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16696 Update comment.
16697
16698 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16699
16700 PR gdb/23718
16701 * gdb/python/python.c (execute_gdb_command): Call
16702 async_enable_stdin in catch block.
16703
16704 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16705
16706 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16707 SWITCH_THRU_ALL_UIS.
16708
16709 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16710
16711 PR tui/9765
16712 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16713 comment, add extra parameter, and update to store previous symbol
16714 when appropriate.
16715 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16716 add extra parameter.
16717 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16718 remove unneeded parameter, add try/catch around gdb_print_insn,
16719 rewrite to add items to asm_lines vector.
16720 (tui_find_backward_disassembly_start_address): New function.
16721 (tui_find_disassembly_address): Updated throughout.
16722 (tui_disasm_window::set_contents): Update for changes to
16723 tui_disassemble.
16724 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16725 number of lines to scroll.
16726
16727 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16728
16729 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16730 (SECT_OFF_DATA): Likewise.
16731 (SECT_OFF_RODATA): Likewise.
16732 (SECT_OFF_TEXT): Likewise.
16733 (SECT_OFF_BSS): Likewise.
16734 (struct objfile) <text_section_offset, data_section_offset>: New
16735 methods.
16736 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16737 objfile::text_section_offset.
16738 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16739 * coffread.c (coff_symtab_read): Likewise.
16740 (enter_linenos): Likewise.
16741 (process_coff_symbol): Likewise.
16742 * ctfread.c (get_objfile_text_range): Likewise.
16743 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16744 Use objfile::data_section_offset.
16745 * dwarf2-frame.c (execute_cfa_program): Use
16746 objfile::text_section_offset.
16747 (dwarf2_frame_find_fde): Likewise.
16748 * dwarf2read.c (create_addrmap_from_index): Likewise.
16749 (create_addrmap_from_aranges): Likewise.
16750 (dw2_find_pc_sect_compunit_symtab): Likewise.
16751 (process_psymtab_comp_unit_reader): Likewise.
16752 (add_partial_symbol): Likewise.
16753 (add_partial_subprogram): Likewise.
16754 (process_full_comp_unit): Likewise.
16755 (read_file_scope): Likewise.
16756 (read_func_scope): Likewise.
16757 (read_lexical_block_scope): Likewise.
16758 (read_call_site_scope): Likewise.
16759 (dwarf2_rnglists_process): Likewise.
16760 (dwarf2_ranges_process): Likewise.
16761 (dwarf2_ranges_read): Likewise.
16762 (dwarf_decode_lines_1): Likewise.
16763 (new_symbol): Likewise.
16764 (dwarf2_fetch_die_loc_sect_off): Likewise.
16765 (dwarf2_per_cu_text_offset): Likewise.
16766 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16767 * hppa-tdep.c (read_unwind_info): Likewise.
16768 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16769 * psympriv.h (struct partial_symtab): Likewise.
16770 * psymtab.c (find_pc_sect_psymtab): Likewise.
16771 * solib-svr4.c (enable_break): Likewise.
16772 * stap-probe.c (relocate_address): Use
16773 objfile::data_section_offset.
16774 * xcoffread.c (enter_line_range): Use
16775 objfile::text_section_offset.
16776 (read_xcoff_symtab): Likewise.
16777
16778 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16779
16780 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16781 declaration to narrower scopes.
16782
16783 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16784
16785 * darwin-nat.h (struct darwin_exception_msg, enum
16786 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16787 Move up.
16788 (class darwin_nat_target) <wait_1, check_new_threads,
16789 decode_exception_message, decode_message, stop_inferior,
16790 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16791 * darwin-nat.c (darwin_check_new_threads): Rename to...
16792 (darwin_nat_target::check_new_threads): ... this.
16793 (darwin_suspend_inferior_it): Remove.
16794 (darwin_decode_exception_message): Rename to...
16795 (darwin_nat_target::decode_exception_message): ... this.
16796 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16797 (darwin_decode_message): Rename to...
16798 (darwin_nat_target::decode_message): ... this.
16799 (cancel_breakpoint): Rename to...
16800 (darwin_nat_target::cancel_breakpoint): ... this.
16801 (darwin_wait): Rename to...
16802 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16803 instead of iterate_over_inferiors.
16804 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16805 (darwin_stop_inferior): Rename to...
16806 (darwin_nat_target::stop_inferior): ... this.
16807 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16808 (darwin_init_thread_list): Rename to...
16809 (darwin_nat_target::init_thread_list): ... this.
16810 (darwin_ptrace_him): Rename to...
16811 (darwin_nat_target::ptrace_him): ... this.
16812 (darwin_nat_target::create_inferior): Pass lambda function to
16813 fork_inferior.
16814 (darwin_nat_target::detach): Call stop_inferior instead of
16815 darwin_stop_inferior.
16816 * fork-inferior.h (fork_inferior): Change init_trace_fun
16817 parameter to gdb::function_view.
16818 * fork-inferior.c (fork_inferior): Likewise.
16819
16820 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16821
16822 * i386-cygwin-tdep.c (core_process_module_section): Update.
16823 * windows-nat.c (struct lm_info_windows): Add text_offset.
16824 (windows_xfer_shared_libraries): Update.
16825 * windows-tdep.c (windows_xfer_shared_library):
16826 Add text_offset_cached argument.
16827 * windows-tdep.h (windows_xfer_shared_library): Update.
16828
16829 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16830
16831 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16832
16833 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16834
16835 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16836 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16837 replace with range-based for.
16838 (gdbsim_interrupt_inferior): Remove.
16839 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16840 with a range-based for. Inline code from
16841 gdbsim_interrupt_inferior.
16842
16843 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16844
16845 * infrun.c (proceed): Fix indentation.
16846
16847 2020-01-21 Tom Tromey <tromey@adacore.com>
16848
16849 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16850 * python/python.c (python_extension_ops): Update.
16851 (gdbpy_colorize): New function.
16852 * python/lib/gdb/__init__.py (colorize): New function.
16853 * extension.h (ext_lang_colorize): Declare.
16854 * extension.c (ext_lang_colorize): New function.
16855 * extension-priv.h (struct extension_language_ops) <colorize>: New
16856 member.
16857 * cli/cli-style.c (_initialize_cli_style): Update help text.
16858
16859 2020-01-21 Luis Machado <luis.machado@linaro.org>
16860
16861 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16862 <cond>: Change type to bool.
16863 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16864 (aarch64_displaced_step_cb): Likewise.
16865 (aarch64_displaced_step_tb): Likewise.
16866
16867 2020-01-21 Luis Machado <luis.machado@linaro.org>
16868
16869 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16870 output.
16871
16872 2020-01-21 Luis Machado <luis.machado@linaro.org>
16873
16874 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16875 <pc_adjust>: Adjust the documentation.
16876 (aarch64_displaced_step_fixup): Check if PC really moved before
16877 adjusting it.
16878
16879 2020-01-19 Tom Tromey <tom@tromey.com>
16880
16881 * disasm.c (~gdb_disassembler): New destructor.
16882 (gdb_buffered_insn_length): Call disassemble_free_target.
16883 * disasm.h (class gdb_disassembler): Declare destructor. Use
16884 DISABLE_COPY_AND_ASSIGN.
16885
16886 2020-01-19 Tom Tromey <tom@tromey.com>
16887
16888 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16889 (die_reader_func_ftype): Remove.
16890 (cutu_reader): New class.
16891 (dw2_get_file_names_reader): Remove "data" parameter.
16892 (dw2_get_file_names): Use cutu_reader.
16893 (create_debug_type_hash_table): Update.
16894 (read_cutu_die_from_dwo): Update comment.
16895 (lookup_dwo_unit): Add dwo_name parameter.
16896 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16897 die_reader_func_ftype and data parameters.
16898 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16899 Remove die_reader_func_ftype and data parameters.
16900 (~cutu_reader): New; from init_cutu_and_read_dies.
16901 (cutu_reader::cutu_reader): Rename from
16902 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16903 and data parameters.
16904 (init_cutu_and_read_dies_simple): Remove.
16905 (struct process_psymtab_comp_unit_data): Remove.
16906 (process_psymtab_comp_unit_reader): Remove data parameter; add
16907 want_partial_unit and pretend_language parameters.
16908 (process_psymtab_comp_unit): Use cutu_reader.
16909 (build_type_psymtabs_reader): Remove data parameter.
16910 (build_type_psymtabs_1): Use cutu_reader.
16911 (process_skeletonless_type_unit): Likewise.
16912 (load_partial_comp_unit_reader): Remove.
16913 (load_partial_comp_unit): Use cutu_reader.
16914 (load_full_comp_unit_reader): Remove.
16915 (load_full_comp_unit): Use cutu_reader.
16916 (struct create_dwo_cu_data): Remove.
16917 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16918 dwo_unit parameters.
16919 (create_cus_hash_table): Use cutu_reader.
16920 (struct dwarf2_read_addr_index_data): Remove.
16921 (dwarf2_read_addr_index_reader): Remove.
16922 (dwarf2_read_addr_index): Use cutu_reader.
16923 (read_signatured_type_reader): Remove.
16924 (read_signatured_type): Use cutu_reader.
16925
16926 2020-01-19 Tom Tromey <tom@tromey.com>
16927
16928 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16929 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16930 (tui_wrefresh): Declare.
16931 * tui/tui-wingeneral.c (suppress_output): New global.
16932 (tui_suppress_output, ~tui_suppress_output): New constructor and
16933 destructor.
16934 (tui_wrefresh): New function.
16935 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16936 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16937 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16938 method.
16939 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16940 tui_wrefresh.
16941 (tui_data_window::no_refresh): New method.
16942 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16943 (tui_reg_command): Use tui_suppress_output
16944 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16945 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16946 method.
16947 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16948
16949 2020-01-19 Tom Tromey <tom@tromey.com>
16950
16951 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16952 Handle case where symtab is null.
16953
16954 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16955
16956 * linux-fork.c (one_fork_p): Simplify.
16957
16958 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16959
16960 * top.c (struct qt_args): Remove.
16961 (kill_or_detach): Change return type to void, replace `void *`
16962 parameter with a proper one.
16963 (print_inferior_quit_action): Likewise.
16964 (quit_confirm): Use range-based for loop to iterate over inferiors.
16965 (quit_force): Likewise.
16966
16967 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16968
16969 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16970 `void *` parameter with proper parameters.
16971 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16972 (print_one_inferior): Change return type to void, replace `void *`
16973 parameter with proper parameters.
16974 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16975 inferiors.
16976 (get_other_inferior): Remove.
16977 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16978 inferiors.
16979
16980 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16981
16982 * mi/mi-interp.c (report_initial_inferior): Remove.
16983 (mi_interp::init): Use range-based for to iterate over inferiors.
16984
16985 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16986
16987 * python/py-inferior.c (build_inferior_list): Remove.
16988 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16989
16990 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16991
16992 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16993 (btrace_stitch_trace): Likewise.
16994 * charset.c (intermediate_encoding): Likewise (vaild).
16995 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16996 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16997 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16998
16999 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
17000
17001 * windows-tdep.c (windows_get_tlb_type):
17002 Add rtl_user_process_parameters type.
17003
17004 2020-01-16 Pedro Alves <palves@redhat.com>
17005 Norbert Lange <nolange79@gmail.com>
17006
17007 PR build/24805
17008 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
17009 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17010 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17011 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17012 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17013 (ps_plog): Redeclare exported functions with default visibility.
17014
17015 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17016
17017 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17018 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17019
17020 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
17021
17022 * infcmd.c (post_create_inferior): Use get_thread_regcache
17023 instead of get_current_regcache.
17024
17025 2020-01-14 Tom Tromey <tom@tromey.com>
17026
17027 PR symtab/12535:
17028 * python/python.c (gdbpy_decode_line): Treat empty string the same
17029 as no argument.
17030
17031 2020-01-14 Tom Tromey <tom@tromey.com>
17032
17033 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17034
17035 2020-01-14 Tom Tromey <tom@tromey.com>
17036
17037 * nat/linux-btrace.c: Don't include <config.h>.
17038 * nat/linux-ptrace.c: Don't include <config.h>.
17039 * nat/x86-linux-dregs.c: Don't include <config.h>.
17040
17041 2020-01-14 Tom Tromey <tom@tromey.com>
17042
17043 * configure: Rebuild.
17044 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17045
17046 2020-01-14 Tom Tromey <tom@tromey.com>
17047
17048 * nat/x86-linux-dregs.c: Include configh.h.
17049 * nat/linux-ptrace.c: Include configh.h.
17050 * nat/linux-btrace.c: Include configh.h.
17051 * defs.h: Include config.h, bfd.h.
17052 * configure.ac: Don't source common.host.
17053 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17054 * configure: Rebuild.
17055 * acinclude.m4: Update path.
17056 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17057 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17058 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17059 (CLIBS): Add LIBSUPPORT.
17060 (CDEPS): Likewise.
17061 (COMMON_SFILES): Remove gdbsupport files.
17062 (HFILES_NO_SRCDIR): Likewise.
17063 (stamp-version): Update path to create-version.sh.
17064 (ALLDEPFILES): Remove gdbsupport files.
17065
17066 2020-01-14 Tom Tromey <tom@tromey.com>
17067
17068 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17069 USE_WIN32API when needed.
17070 * configure.ac (USE_WIN32API): Don't define.
17071 (WIN32LIBS): Use WIN32APILIBS.
17072 * configure: Rebuild.
17073
17074 2020-01-14 Tom Tromey <tom@tromey.com>
17075
17076 * configure: Rebuild.
17077 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17078
17079 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17080
17081 * skip.c (skip_function_command): Make skip w/o arguments use the
17082 name of the inlined function if pc is inside any inlined function.
17083
17084 2020-01-14 Luis Machado <luis.machado@linaro.org>
17085
17086 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17087 * infrun.c (resume_1): Likewise.
17088 (handle_inferior_event): Remove stale comment.
17089 * linux-nat.c (linux_nat_target::resume): Update comments.
17090 (save_stop_reason): Likewise.
17091 (linux_nat_filter_event): Likewise.
17092 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17093
17094 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17095
17096 * elfread.c (record_minimal_symbol): Set section index to 0 for
17097 non-allocatable sections.
17098
17099
17100 2020-01-13 Ali Tamur <tamur@google.com>
17101
17102 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17103 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17104 to gdb::optional. Update comments.
17105 (dwo_file): Update comments.
17106 (read_attribute): Update API to take an additional out parameter,
17107 need_reprocess. This is used to mark attributes that need other
17108 attributes (e.g. str_offsets_base) for correct computation which may not
17109 have been read yet.
17110 (read_attribute_reprocess): New function declaration.
17111 (read_addr_index): Likewise.
17112 (read_dwo_str_index): Likewise.
17113 (read_stub_str_index): Likewise.
17114 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17115 (lookup_addr_base): New function definition.
17116 (lookup_ranges_base): Likewise.
17117 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17118 lookup_ranges_base.
17119 (init_cutu_and_read_dies): Update comments.
17120 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17121 unit. This is used to inherit parent's str_offsets_base and addr_base.
17122 Update comments.
17123 (init_cutu_and_read_dies_simple): Reflect API changes.
17124 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17125 (create_cus_hash_table): Change API to take parent compile unit.
17126 Reflect API changes.
17127 (open_and_init_dwo_file): Reflect API changes.
17128 (dwarf2_get_pc_bounds): Update comments.
17129 (dwarf2_record_block_ranges): Likewise.
17130 (read_full_die_1): Change implementation to reprocess attributes that
17131 need str_offsets_base and addr_base.
17132 (partial_die_info::read): Likewise.
17133 (read_attribute_reprocess): New function definition.
17134 (read_attribute_value): Change API to take an additional out parameter,
17135 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17136 when a non-dwo compile unit has index based attributes.
17137 (read_attribute): Reflect API changes.
17138 (read_addr_index_1): Reflect API changes. Update comments.
17139 (dwarf2_read_addr_index_data): Reflect API changes.
17140 (dwarf2_read_addr_index): Likewise.
17141 (read_str_index): Change API and implementation. This becomes a helper
17142 to be used by the new string index related methods. Update error
17143 message and comments.
17144 (read_dwo_str_index): New function definition.
17145 (read_stub_str_index): Likewise.
17146 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17147 * symfile.h (dwarf2_debug_sections): Likewise.
17148 * xcoffread.c (dwarf2_debug_sections): Likewise.
17149
17150 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17151
17152 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17153 core_reg_sect type to gdb_byte *.
17154 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17155 * cris-tdep.c (fetch_core_registers): Likewise.
17156 * corelow.c (core_target::get_core_register_section): Change
17157 type of `contents` to gdb::byte_vector.
17158
17159 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17160
17161 * tui/tui-wingeneral.c (box_win): Position the title in the center
17162 of the border.
17163
17164 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17165
17166 * corelow.c (core_target::get_core_register_section): Use
17167 std::vector instead of alloca.
17168
17169 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17170
17171 * warning.m4: Add -Wmissing-declarations to build_warnings.
17172 * configure: Re-generate.
17173
17174 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17175
17176 * python/python.c (init__gdb_module): Add declaration.
17177
17178 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17179
17180 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17181 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17182 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17183 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17184 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17185 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17186 * ada-exp.y (_initialize_ada_exp): Add declaration.
17187 * ada-lang.c (_initialize_ada_language): Add declaration.
17188 * ada-tasks.c (_initialize_tasks): Add declaration.
17189 * agent.c (_initialize_agent): Add declaration.
17190 * aix-thread.c (_initialize_aix_thread): Add declaration.
17191 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17192 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17193 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17194 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17195 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17196 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17197 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17198 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17199 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17200 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17201 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17202 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17203 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17204 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17205 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17206 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17207 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17208 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17209 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17210 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17211 * annotate.c (_initialize_annotate): Add declaration.
17212 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17213 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17214 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17215 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17216 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17217 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17218 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17219 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17220 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17221 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17222 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17223 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17224 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17225 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17226 * auto-load.c (_initialize_auto_load): Add declaration.
17227 * auxv.c (_initialize_auxv): Add declaration.
17228 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17229 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17230 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17231 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17232 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17233 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17234 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17235 * breakpoint.c (_initialize_breakpoint): Add declaration.
17236 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17237 * btrace.c (_initialize_btrace): Add declaration.
17238 * charset.c (_initialize_charset): Add declaration.
17239 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17240 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17241 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17242 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17243 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17244 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17245 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17246 * coffread.c (_initialize_coffread): Add declaration.
17247 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17248 * compile/compile.c (_initialize_compile): Add declaration.
17249 * complaints.c (_initialize_complaints): Add declaration.
17250 * completer.c (_initialize_completer): Add declaration.
17251 * copying.c (_initialize_copying): Add declaration.
17252 * corefile.c (_initialize_core): Add declaration.
17253 * corelow.c (_initialize_corelow): Add declaration.
17254 * cp-abi.c (_initialize_cp_abi): Add declaration.
17255 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17256 * cp-support.c (_initialize_cp_support): Add declaration.
17257 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17258 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17259 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17260 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17261 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17262 * ctfread.c (_initialize_ctfread): Add declaration.
17263 * d-lang.c (_initialize_d_language): Add declaration.
17264 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17265 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17266 * dbxread.c (_initialize_dbxread): Add declaration.
17267 * dcache.c (_initialize_dcache): Add declaration.
17268 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17269 * disasm.c (_initialize_disasm): Add declaration.
17270 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17271 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17272 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17273 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17274 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17275 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17276 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17277 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17278 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17279 * elfread.c (_initialize_elfread): Add declaration.
17280 * exec.c (_initialize_exec): Add declaration.
17281 * extension.c (_initialize_extension): Add declaration.
17282 * f-lang.c (_initialize_f_language): Add declaration.
17283 * f-valprint.c (_initialize_f_valprint): Add declaration.
17284 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17285 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17286 * filesystem.c (_initialize_filesystem): Add declaration.
17287 * findcmd.c (_initialize_mem_search): Add declaration.
17288 * findvar.c (_initialize_findvar): Add declaration.
17289 * fork-child.c (_initialize_fork_child): Add declaration.
17290 * frame-base.c (_initialize_frame_base): Add declaration.
17291 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17292 * frame.c (_initialize_frame): Add declaration.
17293 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17294 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17295 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17296 * gcore.c (_initialize_gcore): Add declaration.
17297 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17298 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17299 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17300 * gdbarch.c (_initialize_gdbarch): Add declaration.
17301 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17302 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17303 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17304 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17305 * go-lang.c (_initialize_go_language): Add declaration.
17306 * go32-nat.c (_initialize_go32_nat): Add declaration.
17307 * guile/guile.c (_initialize_guile): Add declaration.
17308 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17309 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17310 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17311 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17312 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17313 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17314 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17315 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17316 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17317 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17318 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17319 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17320 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17321 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17322 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17323 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17324 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17325 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17326 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17327 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17328 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17329 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17330 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17331 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17332 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17333 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17334 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17335 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17336 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17337 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17338 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17339 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17340 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17341 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17342 * infcall.c (_initialize_infcall): Add declaration.
17343 * infcmd.c (_initialize_infcmd): Add declaration.
17344 * inflow.c (_initialize_inflow): Add declaration.
17345 * infrun.c (_initialize_infrun): Add declaration.
17346 * interps.c (_initialize_interpreter): Add declaration.
17347 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17348 * jit.c (_initialize_jit): Add declaration.
17349 * language.c (_initialize_language): Add declaration.
17350 * linux-fork.c (_initialize_linux_fork): Add declaration.
17351 * linux-nat.c (_initialize_linux_nat): Add declaration.
17352 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17353 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17354 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17355 * m2-lang.c (_initialize_m2_language): Add declaration.
17356 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17357 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17358 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17359 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17360 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17361 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17362 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17363 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17364 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17365 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17366 * machoread.c (_initialize_machoread): Add declaration.
17367 * macrocmd.c (_initialize_macrocmd): Add declaration.
17368 * macroscope.c (_initialize_macroscope): Add declaration.
17369 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17370 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17371 * maint.c (_initialize_maint_cmds): Add declaration.
17372 * mdebugread.c (_initialize_mdebugread): Add declaration.
17373 * memattr.c (_initialize_mem): Add declaration.
17374 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17375 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17376 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17377 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17378 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17379 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17380 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17381 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17382 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17383 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17384 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17385 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17386 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17387 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17388 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17389 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17390 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17391 * mipsread.c (_initialize_mipsread): Add declaration.
17392 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17393 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17394 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17395 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17396 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17397 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17398 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17399 * nto-procfs.c (_initialize_procfs): Add declaration.
17400 * objc-lang.c (_initialize_objc_language): Add declaration.
17401 * observable.c (_initialize_observer): Add declaration.
17402 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17403 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17404 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17405 * osabi.c (_initialize_gdb_osabi): Add declaration.
17406 * osdata.c (_initialize_osdata): Add declaration.
17407 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17408 * parse.c (_initialize_parse): Add declaration.
17409 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17410 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17411 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17412 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17413 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17414 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17415 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17416 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17417 * printcmd.c (_initialize_printcmd): Add declaration.
17418 * probe.c (_initialize_probe): Add declaration.
17419 * proc-api.c (_initialize_proc_api): Add declaration.
17420 * proc-events.c (_initialize_proc_events): Add declaration.
17421 * proc-service.c (_initialize_proc_service): Add declaration.
17422 * procfs.c (_initialize_procfs): Add declaration.
17423 * producer.c (_initialize_producer): Add declaration.
17424 * psymtab.c (_initialize_psymtab): Add declaration.
17425 * python/python.c (_initialize_python): Add declaration.
17426 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17427 * record-btrace.c (_initialize_record_btrace): Add declaration.
17428 * record-full.c (_initialize_record_full): Add declaration.
17429 * record.c (_initialize_record): Add declaration.
17430 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17431 * regcache.c (_initialize_regcache): Add declaration.
17432 * reggroups.c (_initialize_reggroup): Add declaration.
17433 * remote-notif.c (_initialize_notif): Add declaration.
17434 * remote-sim.c (_initialize_remote_sim): Add declaration.
17435 * remote.c (_initialize_remote): Add declaration.
17436 * reverse.c (_initialize_reverse): Add declaration.
17437 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17438 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17439 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17440 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17441 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17442 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17443 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17444 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17445 Add declaration.
17446 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17447 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17448 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17449 * rust-exp.y (_initialize_rust_exp): Add declaration.
17450 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17451 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17452 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17453 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17454 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17455 * score-tdep.c (_initialize_score_tdep): Add declaration.
17456 * ser-go32.c (_initialize_ser_dos): Add declaration.
17457 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17458 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17459 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17460 * ser-uds.c (_initialize_ser_socket): Add declaration.
17461 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17462 * serial.c (_initialize_serial): Add declaration.
17463 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17464 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17465 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17466 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17467 * skip.c (_initialize_step_skip): Add declaration.
17468 * sol-thread.c (_initialize_sol_thread): Add declaration.
17469 * solib-aix.c (_initialize_solib_aix): Add declaration.
17470 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17471 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17472 * solib-frv.c (_initialize_frv_solib): Add declaration.
17473 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17474 * solib-target.c (_initialize_solib_target): Add declaration.
17475 * solib.c (_initialize_solib): Add declaration.
17476 * source-cache.c (_initialize_source_cache): Add declaration.
17477 * source.c (_initialize_source): Add declaration.
17478 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17479 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17480 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17481 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17482 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17483 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17484 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17485 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17486 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17487 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17488 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17489 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17490 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17491 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17492 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17493 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17494 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17495 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17496 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17497 * stabsread.c (_initialize_stabsread): Add declaration.
17498 * stack.c (_initialize_stack): Add declaration.
17499 * stap-probe.c (_initialize_stap_probe): Add declaration.
17500 * std-regs.c (_initialize_frame_reg): Add declaration.
17501 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17502 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17503 * symfile.c (_initialize_symfile): Add declaration.
17504 * symmisc.c (_initialize_symmisc): Add declaration.
17505 * symtab.c (_initialize_symtab): Add declaration.
17506 * target.c (_initialize_target): Add declaration.
17507 * target-connection.c (_initialize_target_connection): Add
17508 declaration.
17509 * target-dcache.c (_initialize_target_dcache): Add declaration.
17510 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17511 * thread.c (_initialize_thread): Add declaration.
17512 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17513 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17514 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17515 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17516 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17517 * tracectf.c (_initialize_ctf): Add declaration.
17518 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17519 * tracefile.c (_initialize_tracefile): Add declaration.
17520 * tracepoint.c (_initialize_tracepoint): Add declaration.
17521 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17522 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17523 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17524 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17525 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17526 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17527 * tui/tui.c (_initialize_tui): Add declaration.
17528 * typeprint.c (_initialize_typeprint): Add declaration.
17529 * ui-style.c (_initialize_ui_style): Add declaration.
17530 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17531 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17532 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17533 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17534 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17535 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17536 * unittests/filtered_iterator-selftests.c
17537 (_initialize_filtered_iterator_selftests): Add declaration.
17538 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17539 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17540 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17541 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17542 * unittests/main-thread-selftests.c
17543 (_initialize_main_thread_selftests): Add declaration.
17544 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17545 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17546 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17547 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17548 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17549 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17550 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17551 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17552 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17553 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17554 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17555 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17556 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17557 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17558 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17559 declaration.
17560 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17561 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17562 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17563 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17564 * user-regs.c (_initialize_user_regs): Add declaration.
17565 * utils.c (_initialize_utils): Add declaration.
17566 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17567 * valops.c (_initialize_valops): Add declaration.
17568 * valprint.c (_initialize_valprint): Add declaration.
17569 * value.c (_initialize_values): Add declaration.
17570 * varobj.c (_initialize_varobj): Add declaration.
17571 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17572 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17573 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17574 * windows-nat.c (_initialize_windows_nat): Add declaration.
17575 (_initialize_check_for_gdb_ini): Add declaration.
17576 (_initialize_loadable): Add declaration.
17577 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17578 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17579 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17580 * xcoffread.c (_initialize_xcoffread): Add declaration.
17581 * xml-support.c (_initialize_xml_support): Add declaration.
17582 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17583 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17584 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17585 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17586
17587 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17588
17589 * regformats/regdat.sh: Generate declaration for init function.
17590
17591 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17592
17593 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17594 up.
17595 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17596 close_one_inferior>: New methods.
17597 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17598 pass down target to find_inferior_pid.
17599 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17600 Pass down target to find_inferior_ptid.
17601 (gdbsim_target::create_inferior): Pass down target to
17602 add_thread_silent.
17603 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17604 target down to find_inferior_ptid and switch_to_thread.
17605 (gdbsim_target::close): Update to call close_one_inferior.
17606 (struct resume_data): Remove.
17607 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17608 directly, rather than through a void pointer.
17609 (gdbsim_target::resume): Update to call resume_one_inferior.
17610
17611 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17612
17613 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17614
17615 2020-01-12 Pedro Alves <palves@redhat.com>
17616
17617 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17618 directly for the current inferior instead of
17619 discard_all_inferiors.
17620 (discard_all_inferiors): Delete.
17621
17622 2020-01-11 Tom Tromey <tom@tromey.com>
17623
17624 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17625 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17626 deprecated_safe_get_selected_frame.
17627
17628 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17629
17630 * inferior.c (print_inferior): Switch inferior before printing it.
17631
17632 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17633 Pedro Alves <palves@redhat.com>
17634
17635 * progspace-and-thread.c (switch_to_program_space_and_thread):
17636 Assert there's an inferior for PSPACE. Use
17637 switch_to_inferior_no_thread to switch the inferior too.
17638 * progspace.c (program_space::~program_space): Call
17639 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17640 (program_space::free_all_objfiles): Don't call clear_symtab_users
17641 here.
17642 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17643
17644 2020-01-10 Pedro Alves <palves@redhat.com>
17645
17646 * NEWS: Mention multi-target debugging, "info connections", and
17647 "add-inferior -no-connection".
17648
17649 2020-01-10 Pedro Alves <palves@redhat.com>
17650
17651 * infrun.c: Include "target-connection.h".
17652 (check_multi_target_resumption): New.
17653 (proceed): Call it.
17654 * target-connection.c (make_target_connection_string): Make
17655 extern.
17656 * target-connection.h (make_target_connection_string): Declare.
17657
17658 2020-01-10 Pedro Alves <palves@redhat.com>
17659
17660 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17661 * inferior.c (uiout_field_connection): New function.
17662 (print_inferior): Add new "connection-id" column.
17663 (add_inferior_command): Show connection number/string of added
17664 inferior.
17665 * process-stratum-target.h
17666 (process_stratum_target::connection_string): New virtual method.
17667 (process_stratum_target::connection_number): New field.
17668 * remote.c (remote_target::connection_string): New override.
17669 * target-connection.c: New file.
17670 * target-connection.h: New file.
17671 * target.c (decref_target): Remove process_stratum targets from
17672 the connection list.
17673 (target_stack::push): Add process_stratum targets to the
17674 connection list.
17675
17676 2020-01-10 Pedro Alves <palves@redhat.com>
17677
17678 Revert:
17679 2016-04-12 Pedro Alves <palves@redhat.com>
17680 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17681 Remove references to name.
17682 * serial.h (struct serial) <name>: Delete.
17683
17684 2020-01-10 Pedro Alves <palves@redhat.com>
17685
17686 * gdbarch-selftests.c (register_to_value_test): Remove "target
17687 already pushed" check.
17688
17689 2020-01-10 Pedro Alves <palves@redhat.com>
17690 John Baldwin <jhb@FreeBSD.org>
17691
17692 * aarch64-linux-nat.c
17693 (aarch64_linux_nat_target::thread_architecture): Adjust.
17694 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17695 (task_command_1): Likewise.
17696 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17697 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17698 (aix_thread_target::store_registers)
17699 (aix_thread_target::thread_alive): Adjust.
17700 * amd64-fbsd-tdep.c: Include "inferior.h".
17701 (amd64fbsd_get_thread_local_address): Pass down target.
17702 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17703 thread's gdbarch instead of target_gdbarch.
17704 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17705 get_last_target_status.
17706 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17707 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17708 inferiors.
17709 (update_inserted_breakpoint_locations): Skip if inferiors with no
17710 execution.
17711 (update_global_location_list): When handling moribund locations,
17712 find representative inferior for location's pspace, and use thread
17713 count of its process_stratum target.
17714 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17715 * bsd-uthread.c (bsd_uthread_target::wait): Use
17716 as_process_stratum_target and adjust thread_change_ptid and
17717 add_thread calls.
17718 (bsd_uthread_target::update_thread_list): Use
17719 as_process_stratum_target and adjust find_thread_ptid,
17720 thread_change_ptid and add_thread calls.
17721 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17722 find_thread_ptid call.
17723 * corelow.c (add_to_thread_list): Adjust add_thread call.
17724 (core_target_open): Adjust add_thread_silent and thread_count
17725 calls.
17726 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17727 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17728 * event-top.c (async_disconnect): Pop targets from all inferiors.
17729 * exec.c (add_target_sections): Push exec target on all inferiors
17730 sharing the program space.
17731 (remove_target_sections): Remove the exec target from all
17732 inferiors sharing the program space.
17733 (exec_on_vfork): New.
17734 * exec.h (exec_on_vfork): Declare.
17735 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17736 Pass it down.
17737 (fbsd_nat_target::update_thread_list): Adjust.
17738 (fbsd_nat_target::resume): Adjust.
17739 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17740 down.
17741 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17742 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17743 get_thread_arch_regcache call.
17744 * fork-child.c (gdb_startup_inferior): Pass target down to
17745 startup_inferior and set_executing.
17746 * gdbthread.h (struct process_stratum_target): Forward declare.
17747 (add_thread, add_thread_silent, add_thread_with_info)
17748 (in_thread_list): Add process_stratum_target parameter.
17749 (find_thread_ptid(inferior*, ptid_t)): New overload.
17750 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17751 parameter.
17752 (all_threads()): Delete overload.
17753 (all_threads, all_non_exited_threads): Add process_stratum_target
17754 parameter.
17755 (all_threads_safe): Use brace initialization.
17756 (thread_count): Add process_stratum_target parameter.
17757 (set_resumed, set_running, set_stop_requested, set_executing)
17758 (threads_are_executing, finish_thread_state): Add
17759 process_stratum_target parameter.
17760 (switch_to_thread): Use is_current_thread.
17761 * i386-fbsd-tdep.c: Include "inferior.h".
17762 (i386fbsd_get_thread_local_address): Pass down target.
17763 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17764 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17765 have_inferiors check.
17766 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17767 (inf_ptrace_target::attach): Adjust.
17768 * infcall.c (run_inferior_call): Adjust.
17769 * infcmd.c (run_command_1): Pass target to
17770 scoped_finish_thread_state.
17771 (proceed_thread_callback): Skip inferiors with no execution.
17772 (continue_command): Rename 'all_threads' local to avoid hiding
17773 'all_threads' function. Adjust get_last_target_status call.
17774 (prepare_one_step): Adjust set_running call.
17775 (signal_command): Use user_visible_resume_target. Compare thread
17776 pointers instead of inferior_ptid.
17777 (info_program_command): Adjust to pass down target.
17778 (attach_command): Mark target's 'thread_executing' flag.
17779 (stop_current_target_threads_ns): New, factored out from ...
17780 (interrupt_target_1): ... this. Switch inferior before making
17781 target calls.
17782 * inferior-iter.h
17783 (struct all_inferiors_iterator, struct all_inferiors_range)
17784 (struct all_inferiors_safe_range)
17785 (struct all_non_exited_inferiors_range): Filter on
17786 process_stratum_target too. Remove explicit.
17787 * inferior.c (inferior::inferior): Push dummy target on target
17788 stack.
17789 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17790 Add process_stratum_target parameter, and pass it down.
17791 (have_live_inferiors): Adjust.
17792 (switch_to_inferior_and_push_target): New.
17793 (add_inferior_command, clone_inferior_command): Handle
17794 "-no-connection" parameter. Use
17795 switch_to_inferior_and_push_target.
17796 (_initialize_inferior): Mention "-no-connection" option in
17797 the help of "add-inferior" and "clone-inferior" commands.
17798 * inferior.h: Include "process-stratum-target.h".
17799 (interrupt_target_1): Use bool.
17800 (struct inferior) <push_target, unpush_target, target_is_pushed,
17801 find_target_beneath, top_target, process_target, target_at,
17802 m_stack>: New.
17803 (discard_all_inferiors): Delete.
17804 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17805 (all_inferiors, all_non_exited_inferiors): Add
17806 process_stratum_target parameter.
17807 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17808 (target_last_proc_target): New global.
17809 (follow_fork_inferior): Push target on new inferior. Pass target
17810 to add_thread_silent. Call exec_on_vfork. Handle target's
17811 reference count.
17812 (follow_fork): Adjust get_last_target_status call. Also consider
17813 target.
17814 (follow_exec): Push target on new inferior.
17815 (struct execution_control_state) <target>: New field.
17816 (user_visible_resume_target): New.
17817 (do_target_resume): Call target_async.
17818 (resume_1): Set target's threads_executing flag. Consider resume
17819 target.
17820 (commit_resume_all_targets): New.
17821 (proceed): Also consider resume target. Skip threads of inferiors
17822 with no execution. Commit resumtion in all targets.
17823 (start_remote): Pass current inferior to wait_for_inferior.
17824 (infrun_thread_stop_requested): Consider target as well. Pass
17825 thread_info pointer to clear_inline_frame_state instead of ptid.
17826 (infrun_thread_thread_exit): Consider target as well.
17827 (random_pending_event_thread): New inferior parameter. Use it.
17828 (do_target_wait): Rename to ...
17829 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17830 down.
17831 (threads_are_resumed_pending_p, do_target_wait): New.
17832 (prepare_for_detach): Adjust calls.
17833 (wait_for_inferior): New inferior parameter. Handle it. Use
17834 do_target_wait_1 instead of do_target_wait.
17835 (fetch_inferior_event): Adjust. Switch to representative
17836 inferior. Pass target down.
17837 (set_last_target_status): Add process_stratum_target parameter.
17838 Save target in global.
17839 (get_last_target_status): Add process_stratum_target parameter and
17840 handle it.
17841 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17842 (context_switch): Check inferior_ptid == null_ptid before calling
17843 inferior_thread().
17844 (get_inferior_stop_soon): Pass down target.
17845 (wait_one): Rename to ...
17846 (poll_one_curr_target): ... this.
17847 (struct wait_one_event): New.
17848 (wait_one): New.
17849 (stop_all_threads): Adjust.
17850 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17851 event's target.
17852 (switch_back_to_stepped_thread): Also consider target.
17853 (print_stop_event): Update.
17854 (normal_stop): Update. Also consider the resume target.
17855 * infrun.h (wait_for_inferior): Remove declaration.
17856 (user_visible_resume_target): New declaration.
17857 (get_last_target_status, set_last_target_status): New
17858 process_stratum_target parameter.
17859 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17860 process_stratum_target parameter, and use it.
17861 (clear_inline_frame_state (thread_info*)): New.
17862 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17863 process_stratum_target parameter.
17864 (clear_inline_frame_state (thread_info*)): Declare.
17865 * linux-fork.c (delete_checkpoint_command): Pass target down to
17866 find_thread_ptid.
17867 (checkpoint_command): Adjust.
17868 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17869 instead of just tweaking inferior_ptid.
17870 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17871 (exit_lwp): Pass target down to find_thread_ptid.
17872 (attach_proc_task_lwp_callback): Pass target down to
17873 add_thread/set_running/set_executing.
17874 (linux_nat_target::attach): Pass target down to
17875 thread_change_ptid.
17876 (get_detach_signal): Pass target down to find_thread_ptid.
17877 Consider last target status's target.
17878 (linux_resume_one_lwp_throw, resume_lwp)
17879 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17880 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17881 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17882 (linux_nat_target::async_wait_fd): New.
17883 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17884 target down.
17885 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17886 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17887 * linux-thread-db.c (struct thread_db_info::process_target): New
17888 field.
17889 (add_thread_db_info): Save target.
17890 (get_thread_db_info): New process_stratum_target parameter. Also
17891 match target.
17892 (delete_thread_db_info): New process_stratum_target parameter.
17893 Also match target.
17894 (thread_from_lwp): Adjust to pass down target.
17895 (thread_db_notice_clone): Pass down target.
17896 (check_thread_db_callback): Pass down target.
17897 (try_thread_db_load_1): Always push the thread_db target.
17898 (try_thread_db_load, record_thread): Pass target down.
17899 (thread_db_target::detach): Pass target down. Always unpush the
17900 thread_db target.
17901 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17902 target down. Always unpush the thread_db target.
17903 (find_new_threads_callback, thread_db_find_new_threads_2)
17904 (thread_db_target::update_thread_list): Pass target down.
17905 (thread_db_target::pid_to_str): Pass current inferior down.
17906 (thread_db_target::get_thread_local_address): Pass target down.
17907 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17908 target down.
17909 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17910 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17911 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17912 (procfs_init_inferior): Rename to ...
17913 (procfs_target::procfs_init_inferior): ... this and adjust.
17914 (procfs_target::create_inferior, procfs_notice_thread)
17915 (procfs_do_thread_registers): Adjust.
17916 * ppc-fbsd-tdep.c: Include "inferior.h".
17917 (ppcfbsd_get_thread_local_address): Pass down target.
17918 * proc-service.c (ps_xfer_memory): Switch current inferior and
17919 program space as well.
17920 (get_ps_regcache): Pass target down.
17921 * process-stratum-target.c
17922 (process_stratum_target::thread_address_space)
17923 (process_stratum_target::thread_architecture): Pass target down.
17924 * process-stratum-target.h
17925 (process_stratum_target::threads_executing): New field.
17926 (as_process_stratum_target): New.
17927 * ravenscar-thread.c
17928 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17929 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17930 down.
17931 * record-btrace.c (record_btrace_target::info_record): Adjust.
17932 (record_btrace_target::record_method)
17933 (record_btrace_target::record_is_replaying)
17934 (record_btrace_target::fetch_registers)
17935 (get_thread_current_frame_id, record_btrace_target::resume)
17936 (record_btrace_target::wait, record_btrace_target::stop): Pass
17937 target down.
17938 * record-full.c (record_full_wait_1): Switch to event thread.
17939 Pass target down.
17940 * regcache.c (regcache::regcache)
17941 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17942 process_stratum_target parameter and handle it.
17943 (current_thread_target): New global.
17944 (get_thread_regcache): Add process_stratum_target parameter and
17945 handle it. Switch inferior before calling target method.
17946 (get_thread_regcache): Pass target down.
17947 (get_thread_regcache_for_ptid): Pass target down.
17948 (registers_changed_ptid): Add process_stratum_target parameter and
17949 handle it.
17950 (registers_changed_thread, registers_changed): Pass target down.
17951 (test_get_thread_arch_aspace_regcache): New.
17952 (current_regcache_test): Define a couple local test_target_ops
17953 instances and use them for testing.
17954 (readwrite_regcache): Pass process_stratum_target parameter.
17955 (cooked_read_test, cooked_write_test): Pass mock_target down.
17956 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17957 (get_thread_arch_aspace_regcache): Add process_stratum_target
17958 parameter.
17959 (regcache::target): New method.
17960 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17961 (regcache::registers_changed_ptid): Add process_stratum_target
17962 parameter.
17963 (regcache::m_target): New field.
17964 (registers_changed_ptid): Add process_stratum_target parameter.
17965 * remote.c (remote_state::supports_vCont_probed): New field.
17966 (remote_target::async_wait_fd): New method.
17967 (remote_unpush_and_throw): Add remote_target parameter.
17968 (get_current_remote_target): Adjust.
17969 (remote_target::remote_add_inferior): Push target.
17970 (remote_target::remote_add_thread)
17971 (remote_target::remote_notice_new_inferior)
17972 (get_remote_thread_info): Pass target down.
17973 (remote_target::update_thread_list): Skip threads of inferiors
17974 bound to other targets. (remote_target::close): Don't discard
17975 inferiors. (remote_target::add_current_inferior_and_thread)
17976 (remote_target::process_initial_stop_replies)
17977 (remote_target::start_remote)
17978 (remote_target::remote_serial_quit_handler): Pass down target.
17979 (remote_target::remote_unpush_target): New remote_target
17980 parameter. Unpush the target from all inferiors.
17981 (remote_target::remote_unpush_and_throw): New remote_target
17982 parameter. Pass it down.
17983 (remote_target::open_1): Check whether the current inferior has
17984 execution instead of checking whether any inferior is live. Pass
17985 target down.
17986 (remote_target::remote_detach_1): Pass down target. Use
17987 remote_unpush_target.
17988 (extended_remote_target::attach): Pass down target.
17989 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17990 (remote_target::append_resumption): Pass down target.
17991 (remote_target::append_pending_thread_resumptions)
17992 (remote_target::remote_resume_with_hc, remote_target::resume)
17993 (remote_target::commit_resume): Pass down target.
17994 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17995 (remote_target::interrupt_query)
17996 (remote_target::remove_new_fork_children)
17997 (remote_target::check_pending_events_prevent_wildcard_vcont)
17998 (remote_target::remote_parse_stop_reply)
17999 (remote_target::process_stop_reply): Pass down target.
18000 (first_remote_resumed_thread): New remote_target parameter. Pass
18001 it down.
18002 (remote_target::wait_as): Pass down target.
18003 (unpush_and_perror): New remote_target parameter. Pass it down.
18004 (remote_target::readchar, remote_target::remote_serial_write)
18005 (remote_target::getpkt_or_notif_sane_1)
18006 (remote_target::kill_new_fork_children, remote_target::kill): Pass
18007 down target.
18008 (remote_target::mourn_inferior): Pass down target. Use
18009 remote_unpush_target.
18010 (remote_target::core_of_thread)
18011 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18012 (remote_target::pid_to_exec_file)
18013 (remote_target::thread_handle_to_thread_info): Pass down target.
18014 (remote_target::async_wait_fd): New.
18015 * riscv-fbsd-tdep.c: Include "inferior.h".
18016 (riscv_fbsd_get_thread_local_address): Pass down target.
18017 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18018 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18019 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18020 Adjust.
18021 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18022 * solib-svr4.c (enable_break): Pass down target.
18023 * spu-multiarch.c (parse_spufs_run): Pass down target.
18024 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18025 * target-delegates.c: Regenerate.
18026 * target.c (g_target_stack): Delete.
18027 (current_top_target): Return the current inferior's top target.
18028 (target_has_execution_1): Refer to the passed-in inferior's top
18029 target.
18030 (target_supports_terminal_ours): Check whether the initial
18031 inferior was already created.
18032 (decref_target): New.
18033 (target_stack::push): Incref/decref the target.
18034 (push_target, push_target, unpush_target): Adjust.
18035 (target_stack::unpush): Defref target.
18036 (target_is_pushed): Return bool. Adjust to refer to the current
18037 inferior's target stack.
18038 (dispose_inferior): Delete, and inline parts ...
18039 (target_preopen): ... here. Only dispose of the current inferior.
18040 (target_detach): Hold strong target reference while detaching.
18041 Pass target down.
18042 (target_thread_name): Add assertion.
18043 (target_resume): Pass down target.
18044 (target_ops::beneath, find_target_at): Adjust to refer to the
18045 current inferior's target stack.
18046 (get_dummy_target): New.
18047 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18048 has a thread running.
18049 (initialize_targets): Rename to ...
18050 (_initialize_target): ... this.
18051 * target.h: Include "gdbsupport/refcounted-object.h".
18052 (struct target_ops): Inherit refcounted_object.
18053 (target_ops::shortname, target_ops::longname): Make const.
18054 (target_ops::async_wait_fd): New method.
18055 (decref_target): Declare.
18056 (struct target_ops_ref_policy): New.
18057 (target_ops_ref): New typedef.
18058 (get_dummy_target): Declare function.
18059 (target_is_pushed): Return bool.
18060 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18061 (all_matching_threads_iterator::all_matching_threads_iterator):
18062 Handle filter target.
18063 * thread-iter.h (struct all_matching_threads_iterator, struct
18064 all_matching_threads_range, class all_non_exited_threads_range):
18065 Filter by target too. Remove explicit.
18066 * thread.c (threads_executing): Delete.
18067 (inferior_thread): Pass down current inferior.
18068 (clear_thread_inferior_resources): Pass down thread pointer
18069 instead of ptid_t.
18070 (add_thread_silent, add_thread_with_info, add_thread): Add
18071 process_stratum_target parameter. Use it for thread and inferior
18072 searches.
18073 (is_current_thread): New.
18074 (thread_info::deletable): Use it.
18075 (find_thread_ptid, thread_count, in_thread_list)
18076 (thread_change_ptid, set_resumed, set_running): New
18077 process_stratum_target parameter. Pass it down.
18078 (set_executing): New process_stratum_target parameter. Pass it
18079 down. Adjust reference to 'threads_executing'.
18080 (threads_are_executing): New process_stratum_target parameter.
18081 Adjust reference to 'threads_executing'.
18082 (set_stop_requested, finish_thread_state): New
18083 process_stratum_target parameter. Pass it down.
18084 (switch_to_thread): Also match inferior.
18085 (switch_to_thread): New process_stratum_target parameter. Pass it
18086 down.
18087 (update_threads_executing): Reimplement.
18088 * top.c (quit_force): Pop targets from all inferior.
18089 (gdb_init): Don't call initialize_targets.
18090 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18091 Declare.
18092 (windows_add_thread, windows_delete_thread): Adjust.
18093 (get_windows_debug_event): Rename to ...
18094 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18095 * tracefile-tfile.c (tfile_target_open): Pass down target.
18096 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18097 Forward declare.
18098 (switch_to_thread): Add process_stratum_target parameter.
18099 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18100 parameter. Use it.
18101 (mi_on_resume): Pass target down.
18102 * nat/fork-inferior.c (startup_inferior): Add
18103 process_stratum_target parameter. Pass it down.
18104 * nat/fork-inferior.h (startup_inferior): Add
18105 process_stratum_target parameter.
18106 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18107
18108 2020-01-10 Pedro Alves <palves@redhat.com>
18109
18110 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18111 directly. Instead find the first thread in the thread list and
18112 use switch_to_thread.
18113
18114 2020-01-10 Pedro Alves <palves@redhat.com>
18115
18116 * remote.c (remote_target::remote_add_inferior): Don't bind a
18117 process to the current inferior if the current inferior is already
18118 bound to a process.
18119
18120 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18121 Pedro Alves <palves@redhat.com>
18122
18123 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18124 If no process is specified, return null_ptid instead of
18125 inferior_ptid.
18126 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18127 TARGET_WAITKIND_SIGNALLED with no pid.
18128
18129 2020-01-10 Pedro Alves <palves@redhat.com>
18130
18131 * remote.c (first_remote_resumed_thread): New.
18132 (remote_target::wait_as): Use it as default event_ptid instead of
18133 inferior_ptid.
18134
18135 2020-01-10 Pedro Alves <palves@redhat.com>
18136
18137 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18138
18139 2020-01-10 Pedro Alves <palves@redhat.com>
18140
18141 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18142 not -1.
18143
18144 2020-01-10 Pedro Alves <palves@redhat.com>
18145
18146 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18147 ptid to get_last_target_status.
18148 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18149 ptid to get_last_target_status.
18150 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18151 get_last_target_status.
18152 (info_program_command): Don't pass a target_waitstatus to
18153 get_last_target_status.
18154 * infrun.c (init_wait_for_inferior): Use
18155 nullify_last_target_wait_ptid.
18156 (get_last_target_status): Handle nullptr arguments.
18157 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18158 (print_stop_event): Don't pass a ptid to get_last_target_status.
18159 (normal_stop): Don't pass a ptid to get_last_target_status.
18160 * infrun.h (get_last_target_status, set_last_target_status): Move
18161 comments here and update.
18162 (nullify_last_target_wait_ptid): Declare.
18163 * linux-fork.c (fork_load_infrun_state): Remove local extern
18164 declaration of nullify_last_target_wait_ptid.
18165 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18166 to get_last_target_status.
18167
18168 2020-01-10 Pedro Alves <palves@redhat.com>
18169
18170 * gdbthread.h (scoped_restore_current_thread)
18171 <dont_restore, restore, m_dont_restore>: Declare.
18172 * thread.c (thread_alive): Add assertion. Return bool.
18173 (switch_to_thread_if_alive): New.
18174 (prune_threads): Switch inferior/thread.
18175 (print_thread_info_1): Switch thread before calling target methods.
18176 (scoped_restore_current_thread::restore): New, factored out from
18177 ...
18178 (scoped_restore_current_thread::~scoped_restore_current_thread):
18179 ... this.
18180 (scoped_restore_current_thread::scoped_restore_current_thread):
18181 Add assertion.
18182 (thread_apply_all_command, thread_select): Use
18183 switch_to_thread_if_alive.
18184 * infrun.c (proceed, restart_threads, handle_signal_stop)
18185 (switch_back_to_stepped_thread): Switch current thread before
18186 calling target methods.
18187
18188 2020-01-10 Pedro Alves <palves@redhat.com>
18189
18190 * inferior.c (switch_to_inferior_no_thread): New function,
18191 factored out from ...
18192 (inferior_command): ... here.
18193 * inferior.h (switch_to_inferior_no_thread): Declare.
18194 * mi/mi-main.c (run_one_inferior): Use
18195 switch_to_inferior_no_thread.
18196
18197 2020-01-10 Pedro Alves <palves@redhat.com>
18198
18199 * infcmd.c (kill_command): Remove dead code.
18200
18201 2020-01-10 Pedro Alves <palves@redhat.com>
18202
18203 * remote.c (remote_target::mourn_inferior): No longer check
18204 whether the target is running.
18205
18206 2020-01-10 Pedro Alves <palves@redhat.com>
18207
18208 * corelow.c (core_target::has_execution): Change parameter type to
18209 inferior pointer.
18210 * inferior.c (number_of_live_inferiors): Use
18211 inferior::has_execution instead of target_has_execution_1.
18212 * inferior.h (inferior::has_execution): New.
18213 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18214 inferior::has_execution instead of target_has_execution_1.
18215 * process-stratum-target.c
18216 (process_stratum_target::has_execution): Change parameter type to
18217 inferior pointer. Check the inferior's PID instead of
18218 inferior_ptid.
18219 * process-stratum-target.h
18220 (process_stratum_target::has_execution): Change parameter type to
18221 inferior pointer.
18222 * record-full.c (record_full_core_target::has_execution): Change
18223 parameter type to inferior pointer.
18224 * target.c (target_has_execution_1): Change parameter type to
18225 inferior pointer.
18226 (target_has_execution_current): Adjust.
18227 * target.h (target_ops::has_execution): Change parameter type to
18228 inferior pointer.
18229 (target_has_execution_1): Change parameter type to inferior
18230 pointer. Change return type to bool.
18231 * tracefile.h (tracefile_target::has_execution): Change parameter
18232 type to inferior pointer.
18233
18234 2020-01-10 Pedro Alves <palves@redhat.com>
18235
18236 * exceptions.c (print_flush): Remove current_top_target() check.
18237
18238 2020-01-10 Pedro Alves <palves@redhat.com>
18239
18240 * remote.c (show_remote_exec_file): Show the current inferior's
18241 exec-file instead of the command variable's value.
18242
18243 2020-01-10 Pedro Alves <palves@redhat.com>
18244
18245 * record-full.c (record_full_resume_ptid): New global.
18246 (record_full_target::resume): Set it.
18247 (record_full_wait_1): Use record_full_resume_ptid instead of
18248 inferior_ptid.
18249
18250 2020-01-10 Pedro Alves <palves@redhat.com>
18251
18252 * gdbthread.h (scoped_restore_current_thread)
18253 <dont_restore, restore, m_dont_restore>: Declare.
18254 * thread.c (thread_alive): Add assertion. Return bool.
18255 (switch_to_thread_if_alive): New.
18256 (prune_threads): Switch inferior/thread.
18257 (print_thread_info_1): Switch thread before calling target methods.
18258 (scoped_restore_current_thread::restore): New, factored out from
18259 ...
18260 (scoped_restore_current_thread::~scoped_restore_current_thread):
18261 ... this.
18262 (scoped_restore_current_thread::scoped_restore_current_thread):
18263 Add assertion.
18264 (thread_apply_all_command, thread_select): Use
18265 switch_to_thread_if_alive.
18266
18267 2020-01-10 George Barrett <bob@bob131.so>
18268
18269 * stap-probe.c (stap_modify_semaphore): Don't check for null
18270 semaphores.
18271 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18272 for null semaphores.
18273
18274 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18275
18276 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18277 all source windows, and maintain horizontal scroll status while
18278 doing so.
18279
18280 2020-01-09 Tom Tromey <tom@tromey.com>
18281
18282 PR tui/18932:
18283 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18284 update_source_window, not print_source_lines.
18285
18286 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18287
18288 * tui/tui.c (tui_enable): Register tui hooks after calling
18289 tui_display_main.
18290
18291 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18292
18293 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18294
18295 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18296
18297 * thread.c (print_thread_info_1): Fix indentation.
18298
18299 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18300
18301 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18302 unique_xmalloc_ptr outside the if to always free the demangled name.
18303
18304 2020-01-08 Tom Tromey <tromey@adacore.com>
18305
18306 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18307 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18308 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18309 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18310 Remove.
18311 (section_offsets): New typedef.
18312 * symtab.c (fixup_section, get_msymbol_address): Update.
18313 * symmisc.c (dump_msymbols): Update.
18314 * symfile.h (relative_addr_info_to_section_offsets)
18315 (symfile_map_offsets_to_segments): Update.
18316 * symfile.c (build_section_addr_info_from_objfile)
18317 (init_objfile_sect_indices): Update.
18318 (struct place_section_arg): Change type of "offsets".
18319 (place_section): Update.
18320 (relative_addr_info_to_section_offsets): Change type of
18321 "section_offsets". Remove "num_sections" parameter.
18322 (default_symfile_offsets, syms_from_objfile_1)
18323 (set_objfile_default_section_offset): Update.
18324 (reread_symbols): No need to preserve section offsets by hand.
18325 (symfile_map_offsets_to_segments): Change type of "offsets".
18326 * stap-probe.c (relocate_address): Update.
18327 * stabsread.h (process_one_symbol): Update.
18328 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18329 (solib_target_relocate_section_addresses): Update.
18330 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18331 Update.
18332 * solib-frv.c (frv_relocate_main_executable): Update.
18333 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18334 * solib-aix.c (solib_aix_get_section_offsets): Change return
18335 type.
18336 (solib_aix_solib_create_inferior_hook): Update.
18337 * remote.c (remote_target::get_offsets): Update.
18338 * psymtab.c (find_pc_sect_psymtab): Update.
18339 * psympriv.h (struct partial_symbol) <address, text_low,
18340 text_high>: Update.
18341 * objfiles.h (obj_section_offset): Update.
18342 (struct objfile) <section_offsets>: Change type.
18343 <num_sections>: Remove.
18344 (objfile_relocate): Update.
18345 * objfiles.c (entry_point_address_query): Update
18346 (relocate_one_symbol): Change type of "section_offsets".
18347 (objfile_relocate1, objfile_relocate1): Change type of
18348 "new_offsets".
18349 (objfile_rebase1): Update.
18350 * mipsread.c (mipscoff_symfile_read): Update.
18351 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18352 parameter.
18353 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18354 (parse_external, psymtab_to_symtab_1): Update.
18355 * machoread.c (macho_symfile_offsets): Update.
18356 * ia64-tdep.c (ia64_find_unwind_table): Update.
18357 * hppa-tdep.c (read_unwind_info): Update.
18358 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18359 * dwarf2read.c (create_addrmap_from_index)
18360 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18361 (process_psymtab_comp_unit_reader, add_partial_symbol)
18362 (add_partial_subprogram, process_full_comp_unit)
18363 (read_file_scope, read_func_scope, read_lexical_block_scope)
18364 (read_call_site_scope, dwarf2_rnglists_process)
18365 (dwarf2_ranges_process, dwarf2_ranges_read)
18366 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18367 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18368 Update.
18369 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18370 Update.
18371 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18372 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18373 (process_one_symbol): Change type of "section_offsets".
18374 * ctfread.c (get_objfile_text_range): Update.
18375 * coffread.c (coff_symtab_read, enter_linenos)
18376 (process_coff_symbol): Update.
18377 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18378 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18379
18380 2020-01-08 Tom Tromey <tromey@adacore.com>
18381
18382 * dwarf2read.c (parse_macro_definition): Use std::string.
18383 (parse_macro_definition): Likewise.
18384
18385 2020-01-08 Tom Tromey <tromey@adacore.com>
18386
18387 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18388 (ATTR_ALLOC_CHUNK): Remove.
18389
18390 2020-01-08 Tom Tromey <tromey@adacore.com>
18391
18392 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18393
18394 2020-01-08 Tom Tromey <tromey@adacore.com>
18395
18396 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18397 (dwarf2_compute_name, open_dwo_file): Likewise.
18398 (process_enumeration_scope): Use std::vector.
18399 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18400 (partial_die_info::fixup, dwarf2_start_subfile)
18401 (guess_full_die_structure_name, dwarf2_name): Likewise.
18402 (determine_prefix): Update.
18403 (guess_full_die_structure_name): Make return type const.
18404 (partial_die_full_name): Return unique_xmalloc_ptr.
18405 (DW_FIELD_ALLOC_CHUNK): Remove.
18406
18407 2020-01-07 Tom Tromey <tromey@adacore.com>
18408
18409 PR build/24937:
18410 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18411
18412 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18413
18414 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18415
18416 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18417
18418 * stack.c (print_frame_info): Move disassemble_next_line code
18419 inside source_print block.
18420
18421 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18422
18423 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18424 gdb/signals.h, as we are now using native signal symbols.
18425
18426 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18427
18428 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18429 overflow by an early check of content vs threshold.
18430 * tui/tui-source.c (tui_source_window::line_is_displayed):
18431 Likewise.
18432
18433 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18434
18435 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18436
18437 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18438
18439 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18440 export table if no section contains it's RVA.
18441
18442 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18443
18444 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18445
18446 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18447
18448 * source.c (print_source_lines_base): Set last_line_listed.
18449
18450 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18451
18452 * tui/tui-disasm.c: Remove trailing spaces.
18453
18454 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18455 Pedro Alves <palves@redhat.com>
18456
18457 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18458 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18459 (windows_gdb_signal_to_target): New function, uses the above
18460 enumeration to convert GDB internal signal codes to equivalent
18461 Windows codes.
18462 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18463 * windows-nat.c: Include "gdb_wait.h".
18464 (get_windows_debug_event): Extract the fatal exception from the
18465 exit status and convert to the equivalent Posix signal number.
18466 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18467 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18468 * gdbsupport/gdb_wait.c: New file, implements
18469 windows_status_to_termsig.
18470 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18471 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18472
18473 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18474
18475 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18476 show_layout.
18477
18478 2020-01-05 Luis Machado <luis.machado@linaro.org>
18479
18480 * aarch64-linux-nat.c
18481 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18482 and bfd_mach_aarch64.
18483
18484 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18485
18486 * ui-file.c (stdio_file::can_emit_style_escape)
18487 (tee_file::can_emit_style_escape): Ensure style is used also on
18488 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18489 to gdb_stdout.
18490 * main.c (set_gdb_data_directory): Use file style to output the
18491 warning that the given pathname is not a directory.
18492 * top.c (show_history_filename, gdb_safe_append_history)
18493 (show_gdb_datadir): Use file style.
18494
18495 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18496
18497 * solib-target.c (struct lm_info_target):
18498 Change offsets to be a unique_xmalloc_ptr.
18499 (solib_target_relocate_section_addresses): Update.
18500
18501 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18502
18503 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18504
18505 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18506
18507 * MAINTAINERS (Write After Approval): Add myself.
18508
18509 2020-01-02 Luis Machado <luis.machado@linaro.org>
18510
18511 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18512 Cell BE architecture.
18513 * target.h (struct target_ops) <thread_architecture>: Likewise.
18514
18515 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18516
18517 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18518
18519 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18520
18521 * MAINTAINERS (Write After Approval): Add myself.
18522
18523 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18524
18525 * gdbarch.sh: Update copyright year range of generated files.
18526
18527 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18528
18529 Update copyright year range in all GDB files.
18530
18531 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18532
18533 * copyright.py: Convert to Python 3.
18534
18535 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18536
18537 * copyright.py: Adapt after move of gnulib directory from gdb
18538 directory to toplevel directory.
18539
18540 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18541
18542 * copyright.py (main): Exit if run from the wrong directory.
18543
18544 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18545
18546 * top.c (print_gdb_version): Change copyright year to 2020.
18547
18548 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18549
18550 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18551
18552 For older changes see ChangeLog-2019.
18553 \f
18554 Local Variables:
18555 mode: change-log
18556 left-margin: 8
18557 fill-column: 74
18558 version-control: never
18559 coding: utf-8
18560 End:
This page took 0.54016 seconds and 5 git commands to generate.