arc: Make variable name in comments uppercase
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
2
3 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
4
5 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
6
7 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
8 * configure.host (host to gdb names): Add arc*-*-linux*.
9 * configure.nat (gdb_host_cpu): Add arc.
10 * arc-linux-nat.c: New.
11
12 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
13
14 * arc-linux-tdep.c (supply_register): New.
15 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
16 arc_linux_collect_v2_regset): Consider REGNUM.
17
18 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
19
20 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
21 (arc_linux_is_sigtramp): New function.
22 (arc_linux_sigcontext_addr): Likewise.
23 (arc_linux_init_osabi): Use them.
24
25 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
26
27 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
28 (arc_sigtramp_frame_this_id): Likewise.
29 (arc_sigtramp_frame_prev_register): Likewise.
30 (arc_sigtramp_frame_sniffer): Likewise.
31 (arc_siftramp_frame_unwind): New global variable.
32 (arc_gdbarch_init): Use sigtramp capabilities.
33 (arc_dump_tdep): Print sigtramp fields.
34 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
35
36 2020-12-21 Tom Tromey <tom@tromey.com>
37
38 * expression.h (enum noside): Move earlier.
39
40 2020-12-21 Peter Waller <p@pwaller.net>
41
42 * interps.c (interpreter_exec_cmd): Restore streams pointers.
43
44 2020-12-21 Markus Metzger <markus.t.metzger@intel.com>
45
46 * record.c (require_record_target): Rephrase error message.
47 (info_record_command): Likewise.
48
49 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
50
51 PR exp/27070
52 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
53
54 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
55
56 * configure.ac: Move the static libs vs. source-highlight
57 error message to a better place.
58 * configure: Regenerate.
59
60 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
61
62 * gdb-gdb.py.in: Fix main_type field name.
63
64 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
65
66 * python/py-value.c (valpy_format_string): Implement address keyword.
67
68 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
69
70 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
71
72 2020-12-18 Jameson Nash <vtjnash@gmail.com>
73
74 * coffread.c (linetab_offset): Change type to file_ptr.
75 (linetab_size): Likewise.
76 (enter_linenos): Change parameter type to file_ptr.
77 (init_lineno): Likewise.
78 (init_stringtab): Likewise.
79 (coff_symtab_read): Likewise.
80 (coff_symfile_read): Change variable types to file_ptr.
81
82 2020-12-17 Tom Tromey <tromey@adacore.com>
83
84 * printcmd.c (print_variable_and_value): Don't use n_spaces.
85
86 2020-12-17 Tom Tromey <tromey@adacore.com>
87
88 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
89 (print_gnat_stuff, print_fixed_point_type_info)
90 (recursive_dump_type): Update.
91 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
92 * c-typeprint.c (c_type_print_base_struct_union)
93 (c_type_print_base_1): Update.
94 * rust-lang.c (rust_internal_print_type): Update.
95 * f-typeprint.c (f_language::f_type_print_base): Update.
96 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
97 * m2-typeprint.c (m2_record_fields): Update.
98 * p-typeprint.c (pascal_type_print_base): Update.
99 * compile/compile-loc2c.c (push, pushf, unary, binary)
100 (do_compile_dwarf_expr_to_c): Update.
101 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
102
103 2020-12-16 Tom Tromey <tom@tromey.com>
104
105 * rust-exp.y (rust_lex_tests): Update.
106 * parser-defs.h (parser_state): Add void_p parameter.
107 <void_context_p>: New member.
108 * parse.c (parse_exp_in_context): Update.
109 * language.h (language_defn::post_parser): Remove void_context_p,
110 completing, tracker parameters. Add parser state.
111 * ada-lang.c (ada_language::post_parser): Update.
112
113 2020-12-16 Tom Tromey <tom@tromey.com>
114
115 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
116 (parse_exp_in_context): Change void_context_p to bool.
117 * language.h (struct language_defn) <post_parser>: Change
118 void_context_p to bool.
119 * ada-lang.c (class ada_language) <post_parser>: Update.
120
121 2020-12-16 Tom Tromey <tom@tromey.com>
122 Tom Tromey <tromey@redhat.com>
123 Tom de Vries <tdevries@suse.de>
124
125 * utils.h (get_chars_per_line): Declare.
126 * utils.c (get_chars_per_line): New function.
127 (fputs_maybe_filtered): Handle '\r'.
128 * ui-out.h (ui_out::progress_meter): New class.
129 (ui_out::progress, ui_out::do_progress_start)
130 (ui_out::do_progress_notify, ui_out::do_progress_end): New
131 methods.
132 * ui-out.c (do_progress_end)
133 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
134 functions.
135 * mi/mi-out.h (mi_ui_out::do_progress_start)
136 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
137 methods.
138 * cli-out.h (struct cli_ui_out) <do_progress_start,
139 do_progress_notify, do_progress_end>: New methods.
140 <enum meter_stat, struct cli_progress_info>: New.
141 <m_meters>: New member.
142 * cli-out.c (cli_ui_out::do_progress_start)
143 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
144 methods.
145
146 2020-12-16 Luis Machado <luis.machado@linaro.org>
147
148 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
149
150 2020-12-16 Luis Machado <luis.machado@linaro.org>
151
152 * aarch64-linux-nat.c
153 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
154
155 2020-12-15 Rae Kim <rae.kim@gmail.com>
156
157 * cli/cli-script.c (do_document_command): Rename from
158 document_command. Handle multi-line input.
159 (multi_line_command_p): Handle document_control.
160 (build_command_line): Likewise.
161 (execute_control_command_1): Likewise.
162 (process_next_line): Likewise.
163 (document_command): Call do_document_command.
164 * cli/cli-script.h (enum command_control_type): Add
165 document_control.
166
167 2020-12-15 Tom Tromey <tom@tromey.com>
168
169 * stap-probe.c (stap_probe::evaluate_argument): Use
170 evaluate_expression.
171 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
172 evaluate_expression.
173 * value.h (evaluate_expression): Add expect_type parameter.
174 * objc-lang.c (print_object_command): Call evaluate_expression.
175 * eval.c (evaluate_expression): Add expect_type parameter.
176
177 2020-12-15 Tom Tromey <tom@tromey.com>
178
179 * varobj.c (varobj_create): Use first_opcode.
180 * value.c (init_if_undefined_command): Use first_opcode.
181 * typeprint.c (whatis_exp): Use first_opcode.
182 * tracepoint.c (validate_actionline): Use first_opcode.
183 (encode_actions_1): Use first_opcode.
184 * stack.c (return_command): Use first_opcode.
185 * expression.h (struct expression) <first_opcode>: New method.
186 * eval.c (parse_and_eval_type): Use first_opcode.
187 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
188
189 2020-12-15 Tom Tromey <tom@tromey.com>
190
191 * f-lang.c (evaluate_subexp_f): Update.
192 * expression.h (evaluate_subexp_do_call): Update.
193 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
194 nargs, argvec with array_view.
195 (evaluate_funcall): Update.
196
197 2020-12-15 Tom Tromey <tom@tromey.com>
198
199 * ada-lang.c (num_component_specs): Remove.
200 (assign_aggregate): Update.
201 (aggregate_assign_positional, aggregate_assign_from_choices)
202 (aggregate_assign_others, add_component_interval): Change
203 arguments.
204
205 2020-12-15 Tom Tromey <tromey@adacore.com>
206
207 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
208 command names.
209
210 2020-12-14 Tom Tromey <tom@tromey.com>
211
212 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
213 * typeprint.c (whatis_exp): Always use evaluate_type.
214 (maintenance_print_type): Likewise. Simplify.
215
216 2020-12-14 Tom Tromey <tromey@adacore.com>
217
218 * dictionary.c (language_defn::search_name_hash): Ignore "B".
219 * ada-lang.c (advance_wild_match): Ignore "B".
220 (full_match): Remove.
221 (do_full_match): Rewrite.
222
223 2020-12-14 Tom Tromey <tromey@adacore.com>
224
225 * ada-lang.c (get_var_value): Only consider exact matches.
226
227 2020-12-14 Tom Tromey <tromey@adacore.com>
228
229 * dwarf2/read.c (rewrite_array_type): New function.
230 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
231
232 2020-12-14 Tom Tromey <tromey@adacore.com>
233
234 * valarith.c (fixed_point_binop): Call error on division by zero.
235
236 2020-12-13 Tom Tromey <tom@tromey.com>
237
238 * gdbtypes.c (safe_parse_type): Make argument const.
239 * value.h (parse_and_eval_type): Make argument const.
240 * eval.c (parse_and_eval_type): Make argument const.
241
242 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
243
244 * NEWS: Mention new commands.
245 * target-dcache.c: Add 'cli/cli-cmds.h' include.
246 (maint_flush_dcache_command): New function.
247 (_initialize_target_dcache): Create new 'maint flush dcache'
248 command.
249
250 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * NEWS: Mention new commands, and that the old commands are now
253 deprecated.
254 * cli/cli-cmds.c (maintenanceflushlist): Define.
255 * cli/cli-cmds.h (maintenanceflushlist): Declare.
256 * maint.c (_initialize_maint_cmds): Initialise
257 maintenanceflushlist.
258 * regcache.c: Add 'cli/cli-cmds.h' include.
259 (reg_flush_command): Add header comment.
260 (_initialize_regcache): Create new 'maint flush register-cache'
261 command, make 'flushregs' an alias.
262 * symtab.c: Add 'cli/cli-cmds.h' include.
263 (_initialize_symtab): Create new 'maint flush symbol-cache'
264 command, make old command an alias.
265
266 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
267
268 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
269 result from lookup_cmd_composition_1, use the prefixes from both
270 the command and the alias instead.
271 (lookup_cmd_composition_1): Initial prefix command is the based on
272 the search list being passed in. Simplify the logic for tracking
273 the prefix command. Replace a use of alloca with a local
274 std::string.
275
276 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
277
278 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
279 of NULL. Don't print message piece by piece, but sentence at a
280 time to allow internationalisation. Some whitespace cleanup.
281
282 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
283
284 PR cli/15104
285 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
286 deprecated_cmd_warning.
287 (deprecated_cmd_warning): Take extra parameter, call
288 lookup_cmd_composition_1 and pass new parameter through.
289 (lookup_cmd_composition_1): New function, takes implementation of
290 lookup_cmd_composition but with extra parameter.
291 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
292 passing in cmdlist.
293 * command.h (deprecated_cmd_warning): Add extra parameter to
294 declaration.
295 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
296
297 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
298
299 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
300 command.h, add extra parameter, and use this to guard giving a
301 warning.
302 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
303 include argument names in declaration, add new argument.
304 * completer.c (complete_line_internal_1): Remove unneeded
305 brackets, pass extra argument to lookup_cmd_1.
306
307 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * infrun.h (debug_infrun): Make a bool.
310 * infrun.c (debug_infrun): Make a bool.
311 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
312 debug infrun".
313
314 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * displaced-stepping.h (displaced_debug_printf): Use
317 debug_prefixed_printf_cond.
318 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
319 (dwarf_read_debug_printf_v): Likewise.
320 * infrun.h (infrun_debug_printf): Likewise.
321 * linux-nat.c (linux_nat_debug_printf): Likewise.
322
323 2020-12-11 Tom Tromey <tom@tromey.com>
324
325 * p-exp.y (intvar): Remove global.
326 (DOLLAR_VARIABLE): Change type.
327 (start): Update.
328 (exp): Call write_dollar_variable here...
329 (yylex): ... not here.
330 * m2-exp.y (DOLLAR_VARIABLE): Change type.
331 (variable): Call write_dollar_variable here...
332 (yylex): ... not here.
333 * f-exp.y (DOLLAR_VARIABLE): Change type.
334 (exp): Call write_dollar_variable here...
335 (yylex): ... not here.
336
337 2020-12-11 Tom Tromey <tom@tromey.com>
338
339 * varobj.c (varobj_create): Update.
340 (install_variable): Return void.
341
342 2020-12-11 Tom Tromey <tom@tromey.com>
343
344 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
345
346 2020-12-11 Tom Tromey <tom@tromey.com>
347
348 * varobj.c (varobj_clear_saved_item): Remove.
349 (update_dynamic_varobj_children): Update.
350 (varobj::~varobj): Don't call varobj_clear_saved_item.
351
352 2020-12-11 Tom Tromey <tom@tromey.com>
353
354 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
355 (update_dynamic_varobj_children, create_child)
356 (create_child_with_value): Update.
357 * varobj-iter.h (struct varobj_item) <value>: Now a
358 value_ref_ptr.
359 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
360
361 2020-12-11 Tom Tromey <tom@tromey.com>
362
363 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
364 (varobj_get_iterator): Return unique_ptr.
365 (update_dynamic_varobj_children, install_visualizer)
366 (varobj::~varobj): Update.
367 * python/python-internal.h (py_varobj_get_iterator): Return
368 unique_ptr.
369 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
370
371 2020-12-11 Tom Tromey <tom@tromey.com>
372
373 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
374 (varobj_clear_saved_item, update_dynamic_varobj_children):
375 Update.
376
377 2020-12-11 Tom Tromey <tom@tromey.com>
378
379 * varobj.c (update_dynamic_varobj_children): Update.
380 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
381 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
382 type.
383 (py_varobj_iter::next): Likewise.
384
385 2020-12-11 Tom Tromey <tom@tromey.com>
386
387 * varobj.c (update_dynamic_varobj_children, install_visualizer)
388 (varobj::~varobj): Update.
389 * varobj-iter.h (struct varobj_iter): Change to interface class.
390 (struct varobj_iter_ops): Remove.
391 (varobj_iter_next, varobj_iter_delete): Remove.
392 * python/py-varobj.c (struct py_varobj_iter): Derive from
393 varobj_iter. Add constructor, destructor. Rename members.
394 (py_varobj_iter::~py_varobj_iter): Rename from
395 py_varobj_iter_dtor.
396 (py_varobj_iter::next): Rename from py_varobj_iter_next.
397 (py_varobj_iter_ops): Remove.
398 (py_varobj_iter): Rename from py_varobj_iter_ctor.
399 (py_varobj_iter_new): Remove.
400 (py_varobj_get_iterator): Update.
401
402 2020-12-11 Tom Tromey <tom@tromey.com>
403
404 * varobj.h (all_root_varobjs): Take a function_view.
405 * varobj.c (all_root_varobjs): Take a function_view.
406 (varobj_invalidate_iter): Remove unused parameter.
407 (varobj_invalidate): Update.
408 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
409 (mi_cmd_var_update_iter): Change parameters.
410
411 2020-12-11 Tom Tromey <tom@tromey.com>
412
413 * varobj.c (struct varobj_root) <next>: Remove.
414 (struct vlist): Remove.
415 (rootlist): Now a std::list.
416 (install_variable, uninstall_variable, all_root_varobjs): Update.
417
418 2020-12-11 Tom Tromey <tom@tromey.com>
419
420 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
421 (varobj_table): Now htab_t.
422 (varobj_get_handle, install_variable, uninstall_variable):
423 Update.
424 (hash_varobj, eq_varobj_and_string): New functions.
425 (hash_varobj): Update.
426
427 2020-12-11 Tom Tromey <tom@tromey.com>
428
429 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
430 * ada-lang.c (check_status_exception): Update.
431 * breakpoint.c (free_bp_location): Remove.
432 (decref_bp_location): Use bp_location_ref_policy.
433 (bpstats::bpstats): Don't call incref_bp_location.
434 (bpstats::~bpstats): Remove.
435 (bpstats::bpstats): Update.
436 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
437 (bp_location::bp_location): Update.
438 (incref_bp_location): Remove.
439 (bkpt_print_it): Update.
440 * breakpoint.h (class bp_location): Derive from
441 refcounted_object.
442 (struct bpstats): Remove destructor.
443 <bp_location_at>: Now a bp_location_ref_ptr.
444 <refc>: Remove.
445 (bp_location_ref_ptr): New typedef.
446 (struct bp_location_ref_policy): New.
447
448 2020-12-11 Tom Tromey <tom@tromey.com>
449
450 * thread.c (class scoped_inc_dec_ref): Remove.
451 (tp_array_compar_ascending, tp_array_compar_descending): Change
452 parameter types.
453 (thread_apply_all_command): Use thread_info_ref.
454
455 2020-12-11 Tom Tromey <tom@tromey.com>
456
457 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
458 (stop_context::stop_context): Update.
459 (stop_context::~stop_context): Remove.
460
461 2020-12-11 Tom Tromey <tom@tromey.com>
462
463 * inferior.c (current_inferior_): Change type.
464 (current_inferior, set_current_inferior, initialize_inferiors):
465 Update.
466
467 2020-12-11 Tom Tromey <tom@tromey.com>
468
469 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
470 Change type.
471
472 2020-12-11 Tom Tromey <tromey@adacore.com>
473
474 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
475 field.
476 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
477 (read_atcb): Use cpu_id_offset.
478
479 2020-12-10 Kevin Buettner <kevinb@redhat.com>
480
481 * ada-lang.c (ada_fold_name): Fix off-by-one error.
482
483 2020-12-10 Luis Machado <luis.machado@linaro.org>
484
485 * breakpoint.c (should_be_inserted): Don't output newline.
486
487 2020-12-10 Luis Machado <luis.machado@linaro.org>
488
489 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
490 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
491 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
492 * arch/aarch64.h: ... here.
493 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
494 (aarch64_maybe_swab128): New function.
495 (aarch64_sve_regs_copy_to_reg_buf)
496 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
497 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
498 the data field.
499 (TF_REG_VALUE_BYTES): New enum value.
500 (trad_frame_value_bytes_p): New function.
501 (trad_frame_set_value_bytes): New function.
502 (trad_frame_set_reg_value_bytes): New function.
503 (trad_frame_get_prev_register): Handle register values saved as bytes.
504 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
505 (struct trad_frame_saved_reg) <data>: New field.
506 (trad_frame_set_value_bytes): New prototype.
507 (trad_frame_value_bytes_p): New prototype.
508
509 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
510
511 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
512 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
513 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
514
515 2020-12-09 Tom Tromey <tromey@adacore.com>
516
517 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
518
519 2020-12-09 Tom Tromey <tromey@adacore.com>
520
521 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
522 and "denominator" to gdb_mpz. Handle block forms.
523 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
524 "denominator" to gdb_mpz.
525 (finish_fixed_point_type): Update.
526 (has_zero_over_zero_small_attribute): Update.
527
528 2020-12-09 Tom Tromey <tromey@adacore.com>
529
530 * expprint.c (op_name): Update.
531 * expression.h (enum exp_opcode): Update.
532 * std-operator.def: Add more opcodes.
533 * ada-operator.def, fortran-operator.def: Remove, moving contents
534 into std-operator.def.
535
536 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
537
538 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
539 Return {} instead of false.
540 (get_discrete_bounds): Compute high bound only if low bound is
541 valid.
542
543 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
544
545 PR 26875, PR 26901
546 * gdbtypes.c (get_discrete_low_bound): Make non-static.
547 (get_discrete_high_bound): Make non-static.
548 * gdbtypes.h (get_discrete_low_bound): New declaration.
549 (get_discrete_high_bound): New declaration.
550 * valarith.c (value_subscript): Only fetch high bound if
551 necessary.
552
553 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
554
555 * gdbtypes.c (get_discrete_bounds): Implement with
556 get_discrete_low_bound and get_discrete_high_bound.
557 (get_discrete_low_bound): New.
558 (get_discrete_high_bound): New.
559
560 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
561
562 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
563 callers.
564 * gdbtypes.c (get_discrete_bounds): Return bool.
565
566 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
567
568 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
569 (ada_value_slice): Adjust.
570 (pos_atr): Adjust.
571 * gdbtypes.c (get_discrete_bounds): Adjust.
572 (discrete_position): Return optional.
573 * gdbtypes.h (discrete_position): Return optional.
574
575 2020-12-07 Tom Tromey <tromey@adacore.com>
576
577 * maint.c (_initialize_maint_cmds): Use expression command
578 completer for "maint print type".
579
580 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
581
582 * completer.c (complete_explicit_location): Also add keywords
583 that start with '-' to the completion list.
584
585 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
586
587 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
588 keyword may be followed by any keyword.
589 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
590 'toklen' in the case for "-force-condition".
591
592 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
593
594 * main.c (catch_command_errors): Add a flag parameter; invoke
595 `bpstat_do_actions` if the flag is set.
596 (execute_cmdargs): Update a call to `catch_command_errors`.
597
598 2020-12-07 Tom de Vries <tdevries@suse.de>
599
600 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
601
602 2020-12-06 Tom Tromey <tom@tromey.com>
603
604 PR ada/26999
605 * ada-lang.c (replace_operator_with_call): Rewrite.
606
607 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
608
609 PR breakpoints/27009
610 * s390-tdep.h (op_bc): Correct BC opcode value.
611
612 2020-12-06 Joel Brobecker <brobecker@adacore.com>
613
614 * gmp-utils.h (gdb_mpz::safe_export): New private method.
615 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
616 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
617 (gdb_mpz::safe_export): New method.
618 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
619 Update function description.
620 (check_as_integer_raises_out_of_range_error): New function.
621 (gdb_mpz_as_integer_out_of_range): New function.
622 (_initialize_gmp_utils_selftests): Register
623 gdb_mpz_as_integer_out_of_range as a selftest.
624
625 2020-12-05 Joel Brobecker <brobecker@adacore.com>
626
627 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
628 TARGET_CHAR_BIT.
629 (gdb_mpz::write): Likewise.
630
631 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
632
633 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
634 number of displaced step buffers.
635
636 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
637
638 * displaced-stepping.h (struct displaced_step_buffer): Rename
639 to...
640 (struct displaced_step_buffers): ... this.
641 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
642 <struct displaced_step_buffer>: New inner class.
643 <m_buffers>: New.
644 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
645 to...
646 (displaced_step_buffers::prepare): ... this, adjust for multiple
647 buffers.
648 (displaced_step_buffer::finish): Rename to...
649 (displaced_step_buffers::finish): ... this, adjust for multiple
650 buffers.
651 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
652 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
653 adjust for multiple buffers.
654 (displaced_step_buffer::restore_in_ptid): Rename to...
655 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
656 multiple buffers.
657 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
658 for num_disp_step_buffers.
659 * linux-tdep.c (struct linux_gdbarch_data)
660 <num_disp_step_buffers>: New field.
661 (struct linux_info) <disp_step_buf>: Rename to...
662 <disp_step_bufs>: ... this, change type to
663 displaced_step_buffers.
664 (linux_displaced_step_prepare): Use
665 linux_gdbarch_data::num_disp_step_buffers to create that number
666 of buffers.
667 (linux_displaced_step_finish): Adjust.
668 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
669 (linux_displaced_step_restore_all_in_ptid): Adjust.
670 (linux_init_abi): Change supports_displaced_step parameter for
671 num_disp_step_buffers, save it in linux_gdbarch_data.
672 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
673 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
674 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
675 supports_displaced_step parameter for num_disp_step_buffers.
676 (amd64_linux_init_abi): Adjust.
677 (amd64_x32_linux_init_abi): Adjust.
678 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
679 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
680 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
681 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
682 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
683 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
684 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
685 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
686 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
687 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
688 * m68k-linux-tdep.c (m68k_linux_init_abi):
689 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
690 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
691 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
692 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
693 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
694 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
695 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
696 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
697 Change type to displaced_step_buffers.
698 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
699 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
700 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
701 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
702 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
703 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
704 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
705
706 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
707
708 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
709 obkstack.
710 (_initialize_linux_tdep): Register pre-init gdb data instead of
711 post-init.
712
713 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
714
715 * displaced-stepping.h (struct
716 displaced_step_copy_insn_closure): Adjust comments.
717 (struct displaced_step_inferior_state) <step_thread,
718 step_gdbarch, step_closure, step_original, step_copy,
719 step_saved_copy>: Remove fields.
720 (struct displaced_step_thread_state): New.
721 (struct displaced_step_buffer): New.
722 * displaced-stepping.c (displaced_step_buffer::prepare): New.
723 (write_memory_ptid): Move from infrun.c.
724 (displaced_step_instruction_executed_successfully): New,
725 factored out of displaced_step_finish.
726 (displaced_step_buffer::finish): New.
727 (displaced_step_buffer::copy_insn_closure_by_addr): New.
728 (displaced_step_buffer::restore_in_ptid): New.
729 * gdbarch.sh (displaced_step_location): Remove.
730 (displaced_step_prepare, displaced_step_finish,
731 displaced_step_copy_insn_closure_by_addr,
732 displaced_step_restore_all_in_ptid): New.
733 * gdbarch.c: Re-generate.
734 * gdbarch.h: Re-generate.
735 * gdbthread.h (class thread_info) <displaced_step_state>: New
736 field.
737 (thread_step_over_chain_remove): New declaration.
738 (thread_step_over_chain_next): New declaration.
739 (thread_step_over_chain_length): New declaration.
740 * thread.c (thread_step_over_chain_remove): Make non-static.
741 (thread_step_over_chain_next): New.
742 (global_thread_step_over_chain_next): Use
743 thread_step_over_chain_next.
744 (thread_step_over_chain_length): New.
745 (global_thread_step_over_chain_enqueue): Add debug print.
746 (global_thread_step_over_chain_remove): Add debug print.
747 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
748 Remove.
749 * infrun.c (get_displaced_stepping_state): New.
750 (displaced_step_in_progress_any_inferior): Remove.
751 (displaced_step_in_progress_thread): Adjust.
752 (displaced_step_in_progress): Adjust.
753 (displaced_step_in_progress_any_thread): New.
754 (get_displaced_step_copy_insn_closure_by_addr): Remove.
755 (gdbarch_supports_displaced_stepping): Use
756 gdbarch_displaced_step_prepare_p.
757 (displaced_step_reset): Change parameter from inferior to
758 thread.
759 (displaced_step_prepare_throw): Implement using
760 gdbarch_displaced_step_prepare.
761 (write_memory_ptid): Move to displaced-step.c.
762 (displaced_step_restore): Remove.
763 (displaced_step_finish): Implement using
764 gdbarch_displaced_step_finish.
765 (start_step_over): Allow starting more than one displaced step.
766 (prepare_for_detach): Handle possibly multiple threads doing
767 displaced steps.
768 (handle_inferior_event): Handle possibility that fork event
769 happens while another thread displaced steps.
770 * linux-tdep.h (linux_displaced_step_prepare): New.
771 (linux_displaced_step_finish): New.
772 (linux_displaced_step_copy_insn_closure_by_addr): New.
773 (linux_displaced_step_restore_all_in_ptid): New.
774 (linux_init_abi): Add supports_displaced_step parameter.
775 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
776 (linux_displaced_step_prepare): New.
777 (linux_displaced_step_finish): New.
778 (linux_displaced_step_copy_insn_closure_by_addr): New.
779 (linux_displaced_step_restore_all_in_ptid): New.
780 (linux_init_abi): Add supports_displaced_step parameter,
781 register displaced step methods if true.
782 (_initialize_linux_tdep): Register inferior_execd observer.
783 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
784 supports_displaced_step parameter, adjust call to
785 linux_init_abi. Remove call to
786 set_gdbarch_displaced_step_location.
787 (amd64_linux_init_abi): Adjust call to
788 amd64_linux_init_abi_common.
789 (amd64_x32_linux_init_abi): Likewise.
790 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
791 linux_init_abi. Remove call to
792 set_gdbarch_displaced_step_location.
793 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
794 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
795 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
796 linux_init_abi.
797 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
798 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
799 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
800 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
801 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
802 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
803 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
804 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
805 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
806 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
807 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
808 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
809 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
810 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
811 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
812 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
813 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
814 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
815 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
816 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
817 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
818 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
819 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
820 linux_init_abi. Remove call to
821 set_gdbarch_displaced_step_location.
822 * arm-tdep.c (arm_pc_is_thumb): Call
823 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
824 get_displaced_step_copy_insn_closure_by_addr.
825 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
826 clear gdbarch methods.
827 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
828 (get_ppc_per_inferior): New function.
829 (ppc_displaced_step_prepare): New function.
830 (ppc_displaced_step_finish): New function.
831 (ppc_displaced_step_restore_all_in_ptid): New function.
832 (rs6000_gdbarch_init): Register new gdbarch methods.
833 * s390-tdep.c (s390_gdbarch_init): Don't call
834 set_gdbarch_displaced_step_location, set new gdbarch methods.
835
836 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
837
838 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
839 * aarch64-tdep.h: Include displaced-stepping.h.
840 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
841 Move here.
842 (displaced_step_copy_insn_closure_up): Move here.
843 (struct buf_displaced_step_copy_insn_closure): Move here.
844 (struct displaced_step_inferior_state): Move here.
845 (debug_displaced): Move here.
846 (displaced_debug_printf_1): Move here.
847 (displaced_debug_printf): Move here.
848 * displaced-stepping.c: New file.
849 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
850 * gdbarch.h: Re-generate.
851 * inferior.h: Include displaced-stepping.h.
852 * infrun.h (debug_displaced): Move to displaced-stepping.h.
853 (displaced_debug_printf_1): Likewise.
854 (displaced_debug_printf): Likewise.
855 (struct displaced_step_copy_insn_closure): Likewise.
856 (displaced_step_copy_insn_closure_up): Likewise.
857 (struct buf_displaced_step_copy_insn_closure): Likewise.
858 (struct displaced_step_inferior_state): Likewise.
859 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
860 (displaced_debug_printf_1): Likewise.
861 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
862 Likewise.
863 (_initialize_infrun): Don't register "set/show debug displaced".
864
865 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
866
867 * linux-tdep.c (get_linux_inferior_data): Add inferior
868 parameter.
869 (linux_vsyscall_range): Pass current inferior.
870
871 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
872
873 * infrun.c (displaced_step_prepare_throw): Change return type to
874 displaced_step_prepare_status.
875 (displaced_step_prepare): Likewise.
876 (displaced_step_finish): Change return type to
877 displaced_step_finish_status.
878 (resume_1): Adjust.
879 (stop_all_threads): Adjust.
880 * displaced-stepping.h: New file.
881
882 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
883
884 * infrun.c (displaced_step_fixup): Rename to...
885 (displaced_step_finish): ... this, update all callers.
886
887 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
888
889 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
890 (get_displaced_step_copy_insn_closure_by_addr): ... this.
891 Update all users.
892 (displaced_step_closure): Rename to...
893 (displaced_step_copy_insn_closure): ... this. Update all users.
894 (displaced_step_closure_up): Rename to...
895 (displaced_step_copy_insn_closure_up). ... this. Update all
896 users.
897 (buf_displaced_step_closure): Rename to...
898 (buf_displaced_step_copy_insn_closure): ... this. Update all
899 users.
900 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
901 (get_displaced_step_copy_insn_closure_by_addr): ... this.
902 Update all users.
903 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
904 (aarch64_displaced_step_copy_insn_closure): ... this. Update
905 all users.
906 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
907 (amd64_displaced_step_copy_insn_closure): ... this. Update all
908 users.
909 * arm-tdep.h (arm_displaced_step_closure): Rename to...
910 (arm_displaced_step_copy_insn_closure): ... this. Update all
911 users.
912 * i386-tdep.h (i386_displaced_step_closure): Rename to...
913 (i386_displaced_step_copy_insn_closure): ... this. Update all
914 users.
915 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
916 (ppc_displaced_step_copy_insn_closure): ... this. Update all
917 users.
918 * s390-tdep.c (s390_displaced_step_closure): Rename to...
919 (s390_displaced_step_copy_insn_closure): ... this. Update all
920 users.
921 * gdbarch.h: Re-generate.
922 * gdbarch.c: Re-generate.
923
924 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
925
926 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
927 (global_thread_step_over_chain_enqueue): ... this. Update all
928 users.
929 (thread_step_over_chain_remove): Rename to...
930 (global_thread_step_over_chain_remove): ... this. Update all
931 users.
932 (thread_step_over_chain_next): Rename to...
933 (global_thread_step_over_chain_next): ... this. Update all
934 users.
935 * infrun.h (step_over_queue_head): Rename to...
936 (global_thread_step_over_chain_head): ... this. Update all
937 users.
938 * infrun.c (step_over_queue_head): Rename to...
939 (global_thread_step_over_chain_head): ... this. Update all
940 users.
941 * thread.c (step_over_chain_remove): Rename to...
942 (thread_step_over_chain_remove): ... this. Update all users.
943 (thread_step_over_chain_next): Rename to...
944 (global_thread_step_over_chain_next): ... this. Update all
945 users.
946 (thread_step_over_chain_enqueue): Rename to...
947 (global_thread_step_over_chain_enqueue): ... this. Update all
948 users.
949 (thread_step_over_chain_remove): Rename to...
950 (global_thread_step_over_chain_remove): ... this. Update all
951 users.
952
953 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
954
955 * infrun.c (get_displaced_stepping_state): Remove, change
956 callers to access the field directly.
957
958 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
959
960 * infrun.c (handle_inferior_event): Restore displaced step
961 buffer bytes in child process when handling fork, even if fork
962 happened in another thread than the displaced-stepping one.
963
964 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
965
966 * infrun.c (infrun_inferior_execd): New function.
967 (_initialize_infrun): Attach inferior_execd observer.
968
969 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
970
971 * observable.h (inferior_execd): Declare new observable.
972 * observable.c (inferior_execd): Declare new observable.
973 * infrun.c (follow_exec): Notify inferior_execd observer.
974 * jit.c (jit_inferior_created_hook): Make static.
975 (_initialize_jit): Register inferior_execd observer.
976 * jit.h (jit_inferior_created_hook): Remove declaration.
977 * solib.c (_initialize_solib): Register inferior_execd observer.
978
979 2020-12-04 Tom de Vries <tdevries@suse.de>
980
981 PR gdb/27003
982 * completer.c (completion_tracker::build_completion_result): Don't
983 access match_list[0][-1].
984
985 2020-12-04 Tom Tromey <tromey@adacore.com>
986
987 * linespec.c (struct linespec_token): Rename; remove typedef.
988 * guile/scm-block.c (struct block_smob): Remove typedef.
989 (struct block_syms_progress_smob): Likewise.
990 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
991 * guile/scm-symtab.c (symtab_smob): Remove typedef.
992 (struct sal_smob): Remove typedef.
993 * guile/scm-param.c (struct param_smob): Remove typedef.
994 * guile/scm-progspace.c (struct pspace_smob): Rename.
995 * guile/scm-objfile.c (struct objfile_smob): Rename.
996 * guile/scm-iterator.c (struct iterator_smob): Rename.
997 * guile/scm-frame.c (struct frame_smob): Rename.
998 * guile/scm-arch.c (struct arch_smob): Rename.
999 * guile/scm-type.c (struct field_smob): Remove typedef.
1000 (struct type_smob): Rename.
1001 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1002 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1003 * guile/scm-value.c (struct value_smob): Remove typedef.
1004 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1005 * guile/guile-internal.h (struct scheme_variable)
1006 (struct scheme_function, struct scheme_integer_constant)
1007 (struct gdb_smob, struct chained_gdb_smob)
1008 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1009 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1010 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1011 (struct pretty_printer_worker_smob): Remove typedef.
1012 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1013 * python/py-block.c (struct block_object): Remove typedef.
1014 (block_syms_iterator_object): Update.
1015 (set_block): Update.
1016 (block_syms_iterator_object): Remove typedef.
1017 * python/py-inferior.c (struct membuf_object): Remove typedef.
1018 * python/py-symtab.c (struct symtab_object): Remove typedef.
1019 (set_symtab): Update.
1020 (sal_object): Remove typedef.
1021 (set_sal): Update.
1022 * python/py-frame.c (frame_object): Remove typedef.
1023 * python/py-record-btrace.c (struct btpy_list_object): Remove
1024 typedef.
1025 * python/py-arch.c (struct arch_object): Remove typedef.
1026 * python/py-linetable.c (struct linetable_entry_object)
1027 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1028 * python/py-events.h (eventregistry_object): Remove typedef.
1029 (struct events_object): Remove typedef.
1030 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1031 typedef.
1032 (thread_object): Remove typedef.
1033 * python/py-progspace.c (pspace_object): Remove typedef.
1034 * python/py-value.c (struct value_object): Remove typedef.
1035 * python/py-record.h (recpy_record_object): Remove typedef.
1036 (struct recpy_element_object): Remove typedef.
1037 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1038 * python/py-objfile.c (objfile_object): Remove typedef.
1039 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1040 * python/py-type.c (type_object): Remove typedef.
1041 (typy_iterator_object): Update.
1042 (set_type): Update.
1043 (field_object): Remove typedef.
1044 (typy_iterator_object): Remove typedef.
1045 * python/py-registers.c (register_descriptor_iterator_object):
1046 Remove typedef.
1047 (struct register_descriptor_object)
1048 (struct reggroup_iterator_object, struct reggroup_object): Remove
1049 typedef.
1050 * python/py-record.c (recpy_gap_object): Remove typedef.
1051 * python/py-symbol.c (symbol_object): Remove typedef.
1052 (set_symbol): Update.
1053 * python/py-event.h (event_object): Remove typedef.
1054 * python/py-param.c (parmpy_object): Remove typedef.
1055 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1056 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1057 (unwind_info_object, struct cached_frame_info): Likewise.
1058
1059 2020-12-04 Tom Tromey <tromey@adacore.com>
1060
1061 * value.c (value_internal_function_name): Make return type const.
1062 * value.h (value_internal_function_name): Make return type const.
1063
1064 2020-12-04 Luis Machado <luis.machado@linaro.org>
1065
1066 * aarch64-tdep.c (submask, bit, bits): Remove.
1067 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1068 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1069 (aarch64_decode_cb, aarch64_decode_tb)
1070 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1071 immediate.
1072 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1073
1074 2020-12-04 Tom de Vries <tdevries@suse.de>
1075
1076 PR tdep/27007
1077 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1078
1079 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1080
1081 PR gdb/26876
1082 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1083 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1084
1085 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 * arch/riscv.c: Include 'rv32e-xregs.c'.
1088 (riscv_create_target_description): Update to handle rv32e.
1089 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1090 member variable.
1091 <operator==>: Update to account for new field.
1092 <hash>: Likewise.
1093 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1094 * features/riscv/rv32e-xregs.c: Generated.
1095 * features/riscv/rv32e-xregs.xml: New file.
1096 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1097 file.
1098 (riscv_debug_infcall): Likewise.
1099 (riscv_debug_unwinder): Likewise.
1100 (riscv_debug_gdbarch): Likewise.
1101 (enum riscv_register_required_status): Delete.
1102 (struct riscv_register_feature): Add constructor, delete default
1103 constructor, copy, and assign constructors.
1104 (struct riscv_register_feature::register_info) <required>: Delete.
1105 <check>: Update comment and arguments.
1106 (struct riscv_register_feature) <name>: Change to member function.
1107 <prefer_first_name>: Delete.
1108 <tdesc_feature>: New member function.
1109 <registers>: Rename to...
1110 <m_registers>: ...this.
1111 <m_feature_name>: New member variable.
1112 (riscv_register_feature::register_info::check): Update arguments.
1113 (riscv_xreg_feature): Rewrite as class, create a single static
1114 instance of the class.
1115 (riscv_freg_feature): Likewise.
1116 (riscv_virtual_feature): Likewise.
1117 (riscv_csr_feature): Likewise.
1118 (riscv_create_csr_aliases): Has become a member function inside
1119 riscv_csr_feature class.
1120 (riscv_abi_embedded): New function definition.
1121 (riscv_register_name): Adjust to use new feature objects.
1122 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1123 and adjust available argument registers.
1124 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1125 (riscv_check_tdesc_feature): Delete.
1126 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1127 (riscv_gdbarch_init): Delete target description checking code, and
1128 instead call to the new feature objects to perform the checks.
1129 Reorder handling of no abi information case, allows small code
1130 simplification.
1131 (_initialize_riscv_tdep): Remove call, this is now done in the
1132 riscv_csr_feature constructor.
1133 * riscv-tdep.h (riscv_abi_embedded): Declare.
1134
1135 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1136
1137 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1138 DECLARE_CSR_ALIAS.
1139
1140 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1143 implementation moved from riscv_register_reggroup_p.
1144 (riscv_register_reggroup_p): Update group handling for unknown
1145 CSRs.
1146
1147 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1148
1149 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1150 (dwarf2_get_dwz_file): Convert 'filename' to a
1151 std::string. Use dwz_search_other_debugdirs to search for DWZ
1152 files in the debug-file-directories provided by the user as well.
1153
1154 2020-12-01 Tom Tromey <tom@tromey.com>
1155
1156 * parse.c (expr_builder::expr_builder): Initialize expout.
1157 (expr_builder::release): Use expression::resize.
1158 (expression::expression, expression::~expression)
1159 (expression::resize): New methods.
1160 (write_exp_elt): Use expression::resize.
1161 (prefixify_expression): Update.
1162 (increase_expout_size): Use expression::resize.
1163 * expression.h (struct expression): Add constructor, destructor.
1164 <resize>: New method.
1165 (expression_up): Change type.
1166
1167 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1168 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1169 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1170 set region.
1171
1172 2020-11-30 Tom de Vries <tdevries@suse.de>
1173
1174 PR symtab/26905
1175 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1176 is_reference parameter.
1177 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1178
1179 2020-11-30 Tom Tromey <tom@tromey.com>
1180
1181 * rust-lang.c (rust_op_name): Remove.
1182 (exp_descriptor_rust): Update.
1183 * parser-defs.h (op_name_standard): Don't declare.
1184 (struct exp_descriptor) <op_name>: Remove.
1185 * parse.c (exp_descriptor_standard): Update.
1186 * opencl-lang.c (exp_descriptor_opencl): Update.
1187 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1188 * f-lang.c (op_name_f): Remove.
1189 (f_language::exp_descriptor_tab): Update.
1190 * expression.h (op_name): Update.
1191 * expprint.c (op_name): Rewrite.
1192 (op_name_standard): Remove.
1193 (dump_raw_expression, dump_subexp): Update.
1194 * c-lang.c (exp_descriptor_c): Update.
1195 * ax-gdb.c (gen_expr): Update.
1196 * ada-lang.c (ada_op_name): Remove.
1197 (ada_exp_descriptor): Update.
1198
1199 2020-11-30 Tom Tromey <tom@tromey.com>
1200
1201 * eval.c (init_array_element): Remove.
1202 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1203
1204 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1205
1206 PR tui/26973
1207 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1208 static locator win info.
1209
1210 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1211
1212 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1213 program.
1214
1215 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1218 is always initialized.
1219
1220 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1221 * MAINTAINERS (Write After Approval): Add myself.
1222
1223 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1224
1225 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1226 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1227
1228 2020-11-25 Tom Tromey <tom@tromey.com>
1229
1230 * eval.c (evaluate_subexp_standard): Remove unnecessary
1231 variables.
1232
1233 2020-11-25 Tom Tromey <tom@tromey.com>
1234
1235 * d-lang.c: Include parser-defs.h.
1236 * rust-lang.c: Include parser-defs.h.
1237 * c-lang.h: Do not include parser-defs.h.
1238
1239 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 * regcache.h (struct cached_reg): Remove typedef.
1242
1243 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1244
1245 * README: Fix the URL of the MPFR library.
1246
1247 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1248
1249 * README: Document the --with-libgmp-prefix configure option.
1250
1251 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1252
1253 * NEWS: Add entry documenting support for DWARF-based fixed
1254 point types.
1255
1256 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1257
1258 * NEWS: Document that building GDB now requires GMP.
1259
1260 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1261
1262 * typeprint.c (print_type_scalar): Add handling of
1263 TYPE_CODE_FIXED_POINT.
1264
1265 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1266
1267 * valarith.c (fixed_point_binop): Replace the
1268 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1269 users accordingly.
1270
1271 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1272
1273 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1274 replacing fixed_point_scaling_factor. All callers updated
1275 throughout this project.
1276 (fixed_point_scaling_factor): Delete declaration.
1277 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1278 fixed_point_scaling_factor. Adjust implementation accordingly.
1279
1280 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1281
1282 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1283 replacing the fixed_point_type_base_type function. All callers
1284 updated throughout this project.
1285 (fixed_point_type_base_type): Remove declaration.
1286 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1287 fixed_point_type_base_type. Adjust implementation accordingly.
1288
1289 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1290
1291 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1292 New methods.
1293 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1294 (TYPE_FIXED_POINT_INFO): Delete macro.
1295 (allocate_fixed_point_type_info): Change return type to void.
1296 * gdbtypes.c (copy_type_recursive): Replace the use of
1297 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1298 (fixed_point_scaling_factor): Likewise.
1299 (allocate_fixed_point_type_info): Change return type to void.
1300 Adjust implementation accordingly.
1301 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1302 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1303
1304 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1305
1306 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1307 into one single gdb::array_view parameter.
1308 (gdb_mpz::write): Likewise.
1309 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1310 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1311 into one single gdb::array_view parameter.
1312 Adjust implementation accordingly.
1313 (gdb_mpz::write): Likewise.
1314 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1315 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1316 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1317
1318 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1319
1320 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1321 Change return type to std::string. Update all callers.
1322 * gmp-utils.c (gmp_string_printf): Likewise.
1323
1324 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1325
1326 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1327 instead of mpq_set_ui to initialize our GMP rational.
1328
1329 2020-11-23 Tom de Vries <tdevries@suse.de>
1330
1331 * debuginfod-support.c (debuginfod_source_query)
1332 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1333
1334 2020-11-21 Tom Tromey <tom@tromey.com>
1335
1336 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1337
1338 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1339
1340 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1341 Pass 2.0 to pow.
1342 (gdb_mpz_write_all_from_small): Likewise.
1343
1344 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1345
1346 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1347 of abs.
1348
1349 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1350
1351 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1352 ctf_arc_open_by_name.
1353
1354 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1355
1356 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1357 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1358
1359 2020-11-20 Pedro Alves <pedro@palves.net>
1360
1361 * language.c (language_arch_info::lookup_primitive_type): Use
1362 gdb::function_view instead of gdb::function.
1363 (template language_lookup_primitive_type): Rename to ...
1364 (language_lookup_primitive_type_1): ... this, and make static.
1365 (language_lookup_primitive_type(const struct language_defn *,
1366 struct gdbarch *, const char *): Make non-template.
1367 (language_lookup_primitive_type(const struct language_defn *,
1368 struct gdbarch *, std::function<bool (struct type *)>): Make
1369 non-template and use gdb::function_view.
1370 * language.h (language_arch_info::lookup_primitive_type): Use
1371 gdb::function_view instead of std::function.
1372 (language_lookup_primitive_type): No longer template.
1373 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1374 lambda instead of a std::function.
1375
1376 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1377
1378 PR tdep/26916
1379 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1380 and STOCFH.
1381
1382 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1383
1384 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1385
1386 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1389 in `loop_cb` parameter.
1390 * gdbarch.c: Re-generate.
1391 * gdbarch.h: Re-generate.
1392 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1393 parameter.
1394 * arch-utils.h (default_read_core_file_mappings): Likewise.
1395 * corelow.c (core_target::build_file_mappings): Likewise.
1396 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1397 (linux_core_info_proc_mappings): Likewise.
1398
1399 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1402 * NEWS: Mention new options.
1403 * f-array-walker.h: New file.
1404 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1405 (repack_array_slices): New static global.
1406 (show_repack_array_slices): New function.
1407 (fortran_array_slicing_debug): New static global.
1408 (show_fortran_array_slicing_debug): New function.
1409 (value_f90_subarray): Delete.
1410 (skip_undetermined_arglist): Delete.
1411 (class fortran_array_repacker_base_impl): New class.
1412 (class fortran_lazy_array_repacker_impl): New class.
1413 (class fortran_array_repacker_impl): New class.
1414 (fortran_value_subarray): Complete rewrite.
1415 (set_fortran_list): New static global.
1416 (show_fortran_list): Likewise.
1417 (_initialize_f_language): Register new commands.
1418 (fortran_adjust_dynamic_array_base_address_hack): New function.
1419 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1420 Declare.
1421 * f-valprint.c: Include 'f-array-walker.h'.
1422 (class fortran_array_printer_impl): New class.
1423 (f77_print_array_1): Delete.
1424 (f77_print_array): Delete.
1425 (fortran_print_array): New.
1426 (f_value_print_inner): Update to call fortran_print_array.
1427 * gdbtypes.c: Include 'f-lang.h'.
1428 (resolve_dynamic_type_internal): Call
1429 fortran_adjust_dynamic_array_base_address_hack.
1430
1431 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * breakpoint.c (struct watch_options): New struct.
1434 (watch_option_defs): New static global.
1435 (make_watch_options_def_group): New function.
1436 (watch_maybe_just_location): Convert option parsing.
1437 (watch_command_completer): New function.
1438 (_initialize_breakpoint): Build help text using options mechanism.
1439
1440 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1443 (watch_command_1): Update parameter types. Convert locals to
1444 bool.
1445 (watch_command_wrapper): Change parameter type.
1446 (watch_maybe_just_location): Change locals to bool.
1447 (rwatch_command_wrapper): Update parameter type.
1448 (awatch_command_wrapper): Update parameter type.
1449 * breakpoint.h (watch_command_wrapper): Change parameter type.
1450 (rwatch_command_wrapper): Update parameter type.
1451 (awatch_command_wrapper): Update parameter type.
1452 * eval.c (fetch_subexp_value): Change parameter type.
1453 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1454 'false' not '0'.
1455 * value.h (fetch_subexp_value): Change parameter type in
1456 declaration.
1457
1458 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1459
1460 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1461 skip_spaces.
1462
1463 2020-11-18 Keith Seitz <keiths@redhat.com>
1464
1465 * linux-tdep.c (dump_note_entry_p): Return true instead of
1466 checking `filename'.
1467
1468 2020-11-18 Tom de Vries <tdevries@suse.de>
1469
1470 * debuginfod-support.c (debuginfod_source_query)
1471 (debuginfod_debuginfo_query): Also do early exit if
1472 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1473
1474 2020-11-18 Tom de Vries <tdevries@suse.de>
1475
1476 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1477 warning.
1478
1479 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1480
1481 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1482 callers. Move doc here.
1483 * gdbtypes.c (get_array_bounds): Return bool
1484
1485 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1488 assert.
1489 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1490 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1491 case to the default.
1492
1493 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1494
1495 * printcmd.c: Include 'safe-ctype.c'.
1496 (skip_over_slash_fmt): New function.
1497 (print_command_completer): Call skip_over_slash_fmt.
1498 (display_and_x_command_completer): New function.
1499 (_initialize_printcmd): Add command completion for 'x' and
1500 'display'.
1501
1502 2020-11-16 Pedro Alves <pedro@palves.net>
1503
1504 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1505 (get_prev_frame_always_1): ... to here.
1506 * inline-frame.c (inline_frame_this_id): Mention
1507 get_prev_frame_always_1 in comment.
1508
1509 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1510
1511 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1512 handling.
1513 (value_less): Add fixed-point handling.
1514
1515 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1516
1517 * eval.c (binop_promote): Add fixed-point type handling.
1518 * valarith.c (fixed_point_binop): New function.
1519 (scalar_binop): Add fixed-point type handling.
1520 (value_neg): Add fixed-point type handling.
1521 * valops.c (value_cast_to_fixed_point): New function.
1522 (value_cast): Add fixed-point type handling.
1523
1524 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1525
1526 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1527 range types.
1528 * c-typeprint.c (c_type_print_varspec_prefix)
1529 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1530 TYPE_CODE_FIXED_POINT handling.
1531 * p-typeprint.c (pascal_type_print_varspec_prefix)
1532 (pascal_type_print_varspec_suffix): Likewise.
1533 * typeprint.c (print_type_fixed_point): New function.
1534 * typeprint.h (print_type_fixed_point): Add declaration.
1535
1536 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1537
1538 * printcmd.c (print_scalar_formatted): Add fixed-point type
1539 handling when options->format is set.
1540
1541 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1542
1543 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1544 * dwarf2/read.c (get_dwarf2_rational_constant)
1545 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1546 (has_zero_over_zero_small_attribute): New functions.
1547 read_base_type, set_die_type): Add fixed-point type handling.
1548 * gdb-gdb.py.in: Add fixed-point type handling.
1549 * gdbtypes.c: #include "gmp-utils.h".
1550 (create_range_type, set_type_code): Add fixed-point type handling.
1551 (init_fixed_point_type): New function.
1552 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1553 (print_fixed_point_type_info): New function.
1554 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1555 handling.
1556 (fixed_point_type_storage): New typedef.
1557 (fixed_point_objfile_key): New static global.
1558 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1559 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1560 functions.
1561 * gdbtypes.h: #include "gmp-utils.h".
1562 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1563 (union type_specific) <fixed_point_info>: New field.
1564 (struct fixed_point_type_info): New struct.
1565 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1566 (init_fixed_point_type, is_fixed_point_type)
1567 (fixed_point_type_base_type, fixed_point_scaling_factor)
1568 (allocate_fixed_point_type_info): Add declarations.
1569 * valprint.c (generic_val_print_fixed_point): New function.
1570 (generic_value_print): Add fixed-point type handling.
1571 * value.c (value_as_address, unpack_long): Add fixed-point type
1572 handling.
1573
1574 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1575
1576 * utils.h (uinteger_pow): Add declaration.
1577 * utils.c (uinteger_pow): Moved here (without changes)...
1578 * valarith.c (uinteger_pow): ... from here.
1579
1580 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1581
1582 * gmp-utils.h, gmp-utils.c: New file.
1583 * unittests/gmp-utils-selftests.c: New file.
1584 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1585 unittests/gmp-utils-selftests.c.
1586 (COMMON_SFILES) Add gmp-utils.c.
1587 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1588
1589 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1590
1591 * configure.ac: Generate an error if a usable GMP library
1592 could not be found.
1593 * configure: Regenerate.
1594
1595 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1596
1597 * configure.ac: Add support for --with-libgmp-prefix.
1598 * Makefile.in (LIBGMP): New variable.
1599 (CLIBS): Include $(LIBGMP).
1600 * configure, config.in: Regenerate
1601
1602 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1603
1604 PR cli/26879
1605 * f-exp.y (COMPLETE): New token.
1606 (exp): Two new rules for tab-completion.
1607 (saw_name_at_eof): New static global.
1608 (last_was_structop): Likewise.
1609 (yylex): Set new variables, and return COMPLETE token at the end
1610 of the input stream in some cases.
1611
1612 2020-11-14 Tom Tromey <tom@tromey.com>
1613
1614 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1615
1616 2020-11-14 Tom Tromey <tom@tromey.com>
1617
1618 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1619
1620 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1621
1622 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1623
1624 2020-11-13 Tom Tromey <tom@tromey.com>
1625
1626 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1627 (convert_escape, parse_one_string): Constify.
1628
1629 2020-11-13 Keith Seitz <keiths@redhat.com>
1630
1631 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1632 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1633 outside of ELF segments" warning for debugin
1634
1635 2020-11-13 Keith Seitz <keiths@redhat.com>
1636
1637 PR gdb/23034
1638 * elfread.c (elf_symfile_segments): Output a BFD file name
1639 for the "Loadable section ... outside of ELF segments" warning.
1640
1641 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1642
1643 PR gdb/26835
1644 * arm-tdep.c (class arm_instruction_reader): New.
1645 (target_arm_instruction_reader): New.
1646 (arm_analyze_prologue): Add instruction reader parameter and use
1647 it. Use arm_expand_immediate.
1648 (class target_arm_instruction_reader): Adjust.
1649 (arm_skip_prologue): Adjust.
1650 (arm_expand_immediate): New.
1651 (arm_scan_prologue): Adjust.
1652 (arm_analyze_prologue_test): New.
1653 (class test_arm_instruction_reader): New.
1654
1655 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1656
1657 * f-lang.c (fortran_argument_convert): Add declaration. Add
1658 header comment, taken from f-lang.h. Make static.
1659 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1660 (fortran_argument_convert): Delete declaration.
1661
1662 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * ada-exp.y (find_primitive_type): Make parameter const.
1665 * ada-lang.c (enum ada_primitive_types): Delete.
1666 (ada_language::language_arch_info): Update.
1667 * c-lang.c (enum c_primitive_types): Delete.
1668 (c_language_arch_info): Update.
1669 (enum cplus_primitive_types): Delete.
1670 (cplus_language::language_arch_info): Update.
1671 * d-lang.c (enum d_primitive_types): Delete.
1672 (d_language::language_arch_info): Update.
1673 * f-lang.c (enum f_primitive_types): Delete.
1674 (f_language::language_arch_info): Update.
1675 * go-lang.c (enum go_primitive_types): Delete.
1676 (go_language::language_arch_info): Update.
1677 * language.c (auto_or_unknown_language::language_arch_info):
1678 Update.
1679 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1680 (language_string_char_type): Add header comment, call function in
1681 language_arch_info.
1682 (language_bool_type): Likewise
1683 (language_arch_info::bool_type): Define.
1684 (language_lookup_primitive_type_1): Delete.
1685 (language_lookup_primitive_type): Rewrite as a templated function
1686 to call function in language_arch_info, then instantiate twice.
1687 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1688 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1689 (language_arch_info::lookup_primitive_type): Define twice with
1690 different signatures.
1691 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1692 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1693 member function in language_arch_info.
1694 * language.h (language_arch_info): Complete rewrite.
1695 (language_lookup_primitive_type): Make templated.
1696 * m2-lang.c (enum m2_primitive_types): Delete.
1697 (m2_language::language_arch_info): Update.
1698 * opencl-lang.c (OCL_P_TYPE): Delete.
1699 (enum opencl_primitive_types): Delete.
1700 (opencl_type_data): Delete.
1701 (builtin_opencl_type): Delete.
1702 (lookup_opencl_vector_type): Update.
1703 (opencl_language::language_arch_info): Update, lots of content
1704 moved from...
1705 (build_opencl_types): ...here. This function is now deleted.
1706 (_initialize_opencl_language): Delete.
1707 * p-lang.c (enum pascal_primitive_types): Delete.
1708 (pascal_language::language_arch_info): Update.
1709 * rust-lang.c (enum rust_primitive_types): Delete.
1710 (rust_language::language_arch_info): Update.
1711
1712 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1713
1714 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1715 dwarf2_queue_guard.
1716
1717 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1718
1719 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1720 comment.
1721
1722 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1723
1724 * dwarf2/read.c (dwarf_read_debug_printf,
1725 dwarf_read_debug_printf_v): New macros, use throughout the file.
1726
1727 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1728
1729 PR tdep/27015
1730 * arc-linux-tdep.c (collect_register): Populate "eret" by
1731 "pc" value from the regcache when asked for "pc" value.
1732
1733 2020-11-12 Tom Tromey <tom@tromey.com>
1734
1735 PR rust/26799:
1736 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1737 exist.
1738
1739 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1740
1741 * features/Makefile (XMLTOC): Add rx.xml.
1742 (FEATURE_XMLFILES): Remove rx.xml.
1743 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1744 * features/rx.c: Regenerate.
1745 * features/rx.xml: Wrap in `target` tags, and reindent.
1746 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1747 structure.
1748 (maint_print_c_tdesc_opt_def): New typedef.
1749 (maint_print_c_tdesc_opt_defs): New static global.
1750 (make_maint_print_c_tdesc_options_def_group): New function.
1751 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1752 print single feature C file for target descriptions containing a
1753 single feature.
1754 (maint_print_c_tdesc_cmd_completer): New function.
1755 (_initialize_target_descriptions): Update call to register command
1756 completer, and include command line flag in help text.
1757
1758 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1759
1760 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1761 numbers.
1762 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1763 enum values.
1764
1765 2020-11-10 Tom Tromey <tom@tromey.com>
1766
1767 * value.h (internalvar_name): Update.
1768 * value.c (internalvar_name): Make return type const.
1769
1770 2020-11-10 Tom Tromey <tom@tromey.com>
1771
1772 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1773 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1774 const.
1775
1776 2020-11-10 Tom Tromey <tom@tromey.com>
1777
1778 * objc-lang.h (value_nsstring): Update.
1779 * objc-lang.c (value_nsstring): Make "ptr" const.
1780
1781 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * expprint.c (print_subexp_funcall): Increment expression position
1784 after reading argument count.
1785 * f-lang.c (print_subexp_f): Skip over opcode before calling
1786 common function.
1787 (dump_subexp_body_f): Likewise.
1788
1789 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1790
1791 PR python/26832
1792 * configure: Regenerate.
1793 * configure.ac: Check for python modules ctypes instead of
1794 itertools.
1795
1796 2020-11-06 Pedro Alves <pedro@palves.net>
1797
1798 * macroexp.c (struct macro_buffer): Split in two classes. Add
1799 uses adjusted.
1800 (struct shared_macro_buffer): New, factored out from struct
1801 macro_buffer.
1802 (struct growable_macro_buffer): New, factored out from struct
1803 macro_buffer.
1804 (set_token, get_comment, get_identifier, get_pp_number)
1805 (get_character_constant, get_string_literal, get_punctuator)
1806 (get_next_token_for_substitution): Constify parameters.
1807 (substitute_args): Constify locals.
1808
1809 2020-11-05 Tom Tromey <tom@tromey.com>
1810
1811 * dwarf2/read.c (read_cutu_die_from_dwo)
1812 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1813 (build_type_psymtabs_1): Update.
1814 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1815 parameter.
1816 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1817 Don't read section. Add assert.
1818
1819 2020-11-04 Tom Tromey <tromey@adacore.com>
1820
1821 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1822
1823 2020-11-04 Tom Tromey <tromey@adacore.com>
1824
1825 * ada-typeprint.c (ada_print_type): Handle __T types.
1826
1827 2020-11-04 Tom Tromey <tromey@adacore.com>
1828
1829 * dwarf2/read.c (add_partial_symbol, process_die):
1830 Handle DW_TAG_array_type.
1831 (is_type_tag_for_partial): Add "lang" parameter.
1832 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1833
1834 2020-11-04 Tom Tromey <tromey@adacore.com>
1835
1836 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1837
1838 2020-11-04 Tom Tromey <tromey@adacore.com>
1839
1840 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1841 array.
1842
1843 2020-11-04 Tom Tromey <tromey@adacore.com>
1844
1845 * gdbtypes.c (update_static_array_size): Handle bit stride.
1846
1847 2020-11-04 Tom Tromey <tromey@adacore.com>
1848
1849 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1850
1851 2020-11-04 Tom Tromey <tromey@adacore.com>
1852
1853 * ada-lang.c (ada_is_any_packed_array_type): New function.
1854 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1855
1856 2020-11-04 Tom Tromey <tromey@adacore.com>
1857
1858 * dwarf2/read.c (recognize_bound_expression)
1859 (quirk_ada_thick_pointer): New functions.
1860 (read_array_type): Call quirk_ada_thick_pointer.
1861 (set_die_type): Add "skip_data_location" parameter.
1862 (quirk_ada_thick_pointer): New function.
1863 (process_structure_scope): Call quirk_ada_thick_pointer.
1864 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1865 (decode_packed_array_bitsize): Handle thick pointers without
1866 parallel types.
1867 (ada_is_gnat_encoded_packed_array_type): Rename from
1868 ada_is_packed_array_type.
1869 (ada_is_constrained_packed_array_type): Update.
1870 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1871 (ada_value_print_1): Use ada_get_decoded_value.
1872
1873 2020-11-04 Tom Tromey <tromey@adacore.com>
1874
1875 * ada-lang.c (recursively_update_array_bitsize): New function.
1876 (decode_constrained_packed_array_type): Call it.
1877
1878 2020-11-04 Tom Tromey <tromey@adacore.com>
1879
1880 * ada-lang.c (to_fixed_array_type): Error if
1881 decode_constrained_packed_array_type returns NULL.
1882
1883 2020-11-04 Tom Tromey <tromey@adacore.com>
1884
1885 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1886
1887 2020-11-02 Tom Tromey <tromey@adacore.com>
1888
1889 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1890 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1891 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1892 * amd64-ravenscar-thread.c: New file.
1893 * amd64-ravenscar-thread.h: New file.
1894 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1895 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1896
1897 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * main.c (execute_cmdargs): New function.
1900 (captured_main_1): Make use of execute_cmdargs.
1901
1902 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * NEWS: Mention changes to config file search path.
1905 * main.c
1906
1907 2020-11-02 Tom Tromey <tromey@adacore.com>
1908
1909 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1910 (python_GdbModuleDef): Move earlier. Now static.
1911 (do_start_initialization): Consolidate some IS_PY3K blocks.
1912
1913 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1914
1915 * aarch64-linux-tdep.c: Fix indentation.
1916 * aarch64-ravenscar-thread.c: Fix indentation.
1917 * aarch64-tdep.c: Fix indentation.
1918 * aarch64-tdep.h: Fix indentation.
1919 * ada-lang.c: Fix indentation.
1920 * ada-lang.h: Fix indentation.
1921 * ada-tasks.c: Fix indentation.
1922 * ada-typeprint.c: Fix indentation.
1923 * ada-valprint.c: Fix indentation.
1924 * ada-varobj.c: Fix indentation.
1925 * addrmap.c: Fix indentation.
1926 * addrmap.h: Fix indentation.
1927 * agent.c: Fix indentation.
1928 * aix-thread.c: Fix indentation.
1929 * alpha-bsd-nat.c: Fix indentation.
1930 * alpha-linux-tdep.c: Fix indentation.
1931 * alpha-mdebug-tdep.c: Fix indentation.
1932 * alpha-nbsd-tdep.c: Fix indentation.
1933 * alpha-obsd-tdep.c: Fix indentation.
1934 * alpha-tdep.c: Fix indentation.
1935 * amd64-bsd-nat.c: Fix indentation.
1936 * amd64-darwin-tdep.c: Fix indentation.
1937 * amd64-linux-nat.c: Fix indentation.
1938 * amd64-linux-tdep.c: Fix indentation.
1939 * amd64-nat.c: Fix indentation.
1940 * amd64-obsd-tdep.c: Fix indentation.
1941 * amd64-tdep.c: Fix indentation.
1942 * amd64-windows-tdep.c: Fix indentation.
1943 * annotate.c: Fix indentation.
1944 * arc-tdep.c: Fix indentation.
1945 * arch-utils.c: Fix indentation.
1946 * arch/arm-get-next-pcs.c: Fix indentation.
1947 * arch/arm.c: Fix indentation.
1948 * arm-linux-nat.c: Fix indentation.
1949 * arm-linux-tdep.c: Fix indentation.
1950 * arm-nbsd-tdep.c: Fix indentation.
1951 * arm-pikeos-tdep.c: Fix indentation.
1952 * arm-tdep.c: Fix indentation.
1953 * arm-tdep.h: Fix indentation.
1954 * arm-wince-tdep.c: Fix indentation.
1955 * auto-load.c: Fix indentation.
1956 * auxv.c: Fix indentation.
1957 * avr-tdep.c: Fix indentation.
1958 * ax-gdb.c: Fix indentation.
1959 * ax-general.c: Fix indentation.
1960 * bfin-linux-tdep.c: Fix indentation.
1961 * block.c: Fix indentation.
1962 * block.h: Fix indentation.
1963 * blockframe.c: Fix indentation.
1964 * bpf-tdep.c: Fix indentation.
1965 * break-catch-sig.c: Fix indentation.
1966 * break-catch-syscall.c: Fix indentation.
1967 * break-catch-throw.c: Fix indentation.
1968 * breakpoint.c: Fix indentation.
1969 * breakpoint.h: Fix indentation.
1970 * bsd-uthread.c: Fix indentation.
1971 * btrace.c: Fix indentation.
1972 * build-id.c: Fix indentation.
1973 * buildsym-legacy.h: Fix indentation.
1974 * buildsym.c: Fix indentation.
1975 * c-typeprint.c: Fix indentation.
1976 * c-valprint.c: Fix indentation.
1977 * c-varobj.c: Fix indentation.
1978 * charset.c: Fix indentation.
1979 * cli/cli-cmds.c: Fix indentation.
1980 * cli/cli-decode.c: Fix indentation.
1981 * cli/cli-decode.h: Fix indentation.
1982 * cli/cli-script.c: Fix indentation.
1983 * cli/cli-setshow.c: Fix indentation.
1984 * coff-pe-read.c: Fix indentation.
1985 * coffread.c: Fix indentation.
1986 * compile/compile-cplus-types.c: Fix indentation.
1987 * compile/compile-object-load.c: Fix indentation.
1988 * compile/compile-object-run.c: Fix indentation.
1989 * completer.c: Fix indentation.
1990 * corefile.c: Fix indentation.
1991 * corelow.c: Fix indentation.
1992 * cp-abi.h: Fix indentation.
1993 * cp-namespace.c: Fix indentation.
1994 * cp-support.c: Fix indentation.
1995 * cp-valprint.c: Fix indentation.
1996 * cris-linux-tdep.c: Fix indentation.
1997 * cris-tdep.c: Fix indentation.
1998 * darwin-nat-info.c: Fix indentation.
1999 * darwin-nat.c: Fix indentation.
2000 * darwin-nat.h: Fix indentation.
2001 * dbxread.c: Fix indentation.
2002 * dcache.c: Fix indentation.
2003 * disasm.c: Fix indentation.
2004 * dtrace-probe.c: Fix indentation.
2005 * dwarf2/abbrev.c: Fix indentation.
2006 * dwarf2/attribute.c: Fix indentation.
2007 * dwarf2/expr.c: Fix indentation.
2008 * dwarf2/frame.c: Fix indentation.
2009 * dwarf2/index-cache.c: Fix indentation.
2010 * dwarf2/index-write.c: Fix indentation.
2011 * dwarf2/line-header.c: Fix indentation.
2012 * dwarf2/loc.c: Fix indentation.
2013 * dwarf2/macro.c: Fix indentation.
2014 * dwarf2/read.c: Fix indentation.
2015 * dwarf2/read.h: Fix indentation.
2016 * elfread.c: Fix indentation.
2017 * eval.c: Fix indentation.
2018 * event-top.c: Fix indentation.
2019 * exec.c: Fix indentation.
2020 * exec.h: Fix indentation.
2021 * expprint.c: Fix indentation.
2022 * f-lang.c: Fix indentation.
2023 * f-typeprint.c: Fix indentation.
2024 * f-valprint.c: Fix indentation.
2025 * fbsd-nat.c: Fix indentation.
2026 * fbsd-tdep.c: Fix indentation.
2027 * findvar.c: Fix indentation.
2028 * fork-child.c: Fix indentation.
2029 * frame-unwind.c: Fix indentation.
2030 * frame-unwind.h: Fix indentation.
2031 * frame.c: Fix indentation.
2032 * frv-linux-tdep.c: Fix indentation.
2033 * frv-tdep.c: Fix indentation.
2034 * frv-tdep.h: Fix indentation.
2035 * ft32-tdep.c: Fix indentation.
2036 * gcore.c: Fix indentation.
2037 * gdb_bfd.c: Fix indentation.
2038 * gdbarch.sh: Fix indentation.
2039 * gdbarch.c: Re-generate
2040 * gdbarch.h: Re-generate.
2041 * gdbcore.h: Fix indentation.
2042 * gdbthread.h: Fix indentation.
2043 * gdbtypes.c: Fix indentation.
2044 * gdbtypes.h: Fix indentation.
2045 * glibc-tdep.c: Fix indentation.
2046 * gnu-nat.c: Fix indentation.
2047 * gnu-nat.h: Fix indentation.
2048 * gnu-v2-abi.c: Fix indentation.
2049 * gnu-v3-abi.c: Fix indentation.
2050 * go32-nat.c: Fix indentation.
2051 * guile/guile-internal.h: Fix indentation.
2052 * guile/scm-cmd.c: Fix indentation.
2053 * guile/scm-frame.c: Fix indentation.
2054 * guile/scm-iterator.c: Fix indentation.
2055 * guile/scm-math.c: Fix indentation.
2056 * guile/scm-ports.c: Fix indentation.
2057 * guile/scm-pretty-print.c: Fix indentation.
2058 * guile/scm-value.c: Fix indentation.
2059 * h8300-tdep.c: Fix indentation.
2060 * hppa-linux-nat.c: Fix indentation.
2061 * hppa-linux-tdep.c: Fix indentation.
2062 * hppa-nbsd-nat.c: Fix indentation.
2063 * hppa-nbsd-tdep.c: Fix indentation.
2064 * hppa-obsd-nat.c: Fix indentation.
2065 * hppa-tdep.c: Fix indentation.
2066 * hppa-tdep.h: Fix indentation.
2067 * i386-bsd-nat.c: Fix indentation.
2068 * i386-darwin-nat.c: Fix indentation.
2069 * i386-darwin-tdep.c: Fix indentation.
2070 * i386-dicos-tdep.c: Fix indentation.
2071 * i386-gnu-nat.c: Fix indentation.
2072 * i386-linux-nat.c: Fix indentation.
2073 * i386-linux-tdep.c: Fix indentation.
2074 * i386-nto-tdep.c: Fix indentation.
2075 * i386-obsd-tdep.c: Fix indentation.
2076 * i386-sol2-nat.c: Fix indentation.
2077 * i386-tdep.c: Fix indentation.
2078 * i386-tdep.h: Fix indentation.
2079 * i386-windows-tdep.c: Fix indentation.
2080 * i387-tdep.c: Fix indentation.
2081 * i387-tdep.h: Fix indentation.
2082 * ia64-libunwind-tdep.c: Fix indentation.
2083 * ia64-libunwind-tdep.h: Fix indentation.
2084 * ia64-linux-nat.c: Fix indentation.
2085 * ia64-linux-tdep.c: Fix indentation.
2086 * ia64-tdep.c: Fix indentation.
2087 * ia64-tdep.h: Fix indentation.
2088 * ia64-vms-tdep.c: Fix indentation.
2089 * infcall.c: Fix indentation.
2090 * infcmd.c: Fix indentation.
2091 * inferior.c: Fix indentation.
2092 * infrun.c: Fix indentation.
2093 * iq2000-tdep.c: Fix indentation.
2094 * language.c: Fix indentation.
2095 * linespec.c: Fix indentation.
2096 * linux-fork.c: Fix indentation.
2097 * linux-nat.c: Fix indentation.
2098 * linux-tdep.c: Fix indentation.
2099 * linux-thread-db.c: Fix indentation.
2100 * lm32-tdep.c: Fix indentation.
2101 * m2-lang.c: Fix indentation.
2102 * m2-typeprint.c: Fix indentation.
2103 * m2-valprint.c: Fix indentation.
2104 * m32c-tdep.c: Fix indentation.
2105 * m32r-linux-tdep.c: Fix indentation.
2106 * m32r-tdep.c: Fix indentation.
2107 * m68hc11-tdep.c: Fix indentation.
2108 * m68k-bsd-nat.c: Fix indentation.
2109 * m68k-linux-nat.c: Fix indentation.
2110 * m68k-linux-tdep.c: Fix indentation.
2111 * m68k-tdep.c: Fix indentation.
2112 * machoread.c: Fix indentation.
2113 * macrocmd.c: Fix indentation.
2114 * macroexp.c: Fix indentation.
2115 * macroscope.c: Fix indentation.
2116 * macrotab.c: Fix indentation.
2117 * macrotab.h: Fix indentation.
2118 * main.c: Fix indentation.
2119 * mdebugread.c: Fix indentation.
2120 * mep-tdep.c: Fix indentation.
2121 * mi/mi-cmd-catch.c: Fix indentation.
2122 * mi/mi-cmd-disas.c: Fix indentation.
2123 * mi/mi-cmd-env.c: Fix indentation.
2124 * mi/mi-cmd-stack.c: Fix indentation.
2125 * mi/mi-cmd-var.c: Fix indentation.
2126 * mi/mi-cmds.c: Fix indentation.
2127 * mi/mi-main.c: Fix indentation.
2128 * mi/mi-parse.c: Fix indentation.
2129 * microblaze-tdep.c: Fix indentation.
2130 * minidebug.c: Fix indentation.
2131 * minsyms.c: Fix indentation.
2132 * mips-linux-nat.c: Fix indentation.
2133 * mips-linux-tdep.c: Fix indentation.
2134 * mips-nbsd-tdep.c: Fix indentation.
2135 * mips-tdep.c: Fix indentation.
2136 * mn10300-linux-tdep.c: Fix indentation.
2137 * mn10300-tdep.c: Fix indentation.
2138 * moxie-tdep.c: Fix indentation.
2139 * msp430-tdep.c: Fix indentation.
2140 * namespace.h: Fix indentation.
2141 * nat/fork-inferior.c: Fix indentation.
2142 * nat/gdb_ptrace.h: Fix indentation.
2143 * nat/linux-namespaces.c: Fix indentation.
2144 * nat/linux-osdata.c: Fix indentation.
2145 * nat/netbsd-nat.c: Fix indentation.
2146 * nat/x86-dregs.c: Fix indentation.
2147 * nbsd-nat.c: Fix indentation.
2148 * nbsd-tdep.c: Fix indentation.
2149 * nios2-linux-tdep.c: Fix indentation.
2150 * nios2-tdep.c: Fix indentation.
2151 * nto-procfs.c: Fix indentation.
2152 * nto-tdep.c: Fix indentation.
2153 * objfiles.c: Fix indentation.
2154 * objfiles.h: Fix indentation.
2155 * opencl-lang.c: Fix indentation.
2156 * or1k-tdep.c: Fix indentation.
2157 * osabi.c: Fix indentation.
2158 * osabi.h: Fix indentation.
2159 * osdata.c: Fix indentation.
2160 * p-lang.c: Fix indentation.
2161 * p-typeprint.c: Fix indentation.
2162 * p-valprint.c: Fix indentation.
2163 * parse.c: Fix indentation.
2164 * ppc-linux-nat.c: Fix indentation.
2165 * ppc-linux-tdep.c: Fix indentation.
2166 * ppc-nbsd-nat.c: Fix indentation.
2167 * ppc-nbsd-tdep.c: Fix indentation.
2168 * ppc-obsd-nat.c: Fix indentation.
2169 * ppc-ravenscar-thread.c: Fix indentation.
2170 * ppc-sysv-tdep.c: Fix indentation.
2171 * ppc64-tdep.c: Fix indentation.
2172 * printcmd.c: Fix indentation.
2173 * proc-api.c: Fix indentation.
2174 * producer.c: Fix indentation.
2175 * producer.h: Fix indentation.
2176 * prologue-value.c: Fix indentation.
2177 * prologue-value.h: Fix indentation.
2178 * psymtab.c: Fix indentation.
2179 * python/py-arch.c: Fix indentation.
2180 * python/py-bpevent.c: Fix indentation.
2181 * python/py-event.c: Fix indentation.
2182 * python/py-event.h: Fix indentation.
2183 * python/py-finishbreakpoint.c: Fix indentation.
2184 * python/py-frame.c: Fix indentation.
2185 * python/py-framefilter.c: Fix indentation.
2186 * python/py-inferior.c: Fix indentation.
2187 * python/py-infthread.c: Fix indentation.
2188 * python/py-objfile.c: Fix indentation.
2189 * python/py-prettyprint.c: Fix indentation.
2190 * python/py-registers.c: Fix indentation.
2191 * python/py-signalevent.c: Fix indentation.
2192 * python/py-stopevent.c: Fix indentation.
2193 * python/py-stopevent.h: Fix indentation.
2194 * python/py-threadevent.c: Fix indentation.
2195 * python/py-tui.c: Fix indentation.
2196 * python/py-unwind.c: Fix indentation.
2197 * python/py-value.c: Fix indentation.
2198 * python/py-xmethods.c: Fix indentation.
2199 * python/python-internal.h: Fix indentation.
2200 * python/python.c: Fix indentation.
2201 * ravenscar-thread.c: Fix indentation.
2202 * record-btrace.c: Fix indentation.
2203 * record-full.c: Fix indentation.
2204 * record.c: Fix indentation.
2205 * reggroups.c: Fix indentation.
2206 * regset.h: Fix indentation.
2207 * remote-fileio.c: Fix indentation.
2208 * remote.c: Fix indentation.
2209 * reverse.c: Fix indentation.
2210 * riscv-linux-tdep.c: Fix indentation.
2211 * riscv-ravenscar-thread.c: Fix indentation.
2212 * riscv-tdep.c: Fix indentation.
2213 * rl78-tdep.c: Fix indentation.
2214 * rs6000-aix-tdep.c: Fix indentation.
2215 * rs6000-lynx178-tdep.c: Fix indentation.
2216 * rs6000-nat.c: Fix indentation.
2217 * rs6000-tdep.c: Fix indentation.
2218 * rust-lang.c: Fix indentation.
2219 * rx-tdep.c: Fix indentation.
2220 * s12z-tdep.c: Fix indentation.
2221 * s390-linux-tdep.c: Fix indentation.
2222 * score-tdep.c: Fix indentation.
2223 * ser-base.c: Fix indentation.
2224 * ser-mingw.c: Fix indentation.
2225 * ser-uds.c: Fix indentation.
2226 * ser-unix.c: Fix indentation.
2227 * serial.c: Fix indentation.
2228 * sh-linux-tdep.c: Fix indentation.
2229 * sh-nbsd-tdep.c: Fix indentation.
2230 * sh-tdep.c: Fix indentation.
2231 * skip.c: Fix indentation.
2232 * sol-thread.c: Fix indentation.
2233 * solib-aix.c: Fix indentation.
2234 * solib-darwin.c: Fix indentation.
2235 * solib-frv.c: Fix indentation.
2236 * solib-svr4.c: Fix indentation.
2237 * solib.c: Fix indentation.
2238 * source.c: Fix indentation.
2239 * sparc-linux-tdep.c: Fix indentation.
2240 * sparc-nbsd-tdep.c: Fix indentation.
2241 * sparc-obsd-tdep.c: Fix indentation.
2242 * sparc-ravenscar-thread.c: Fix indentation.
2243 * sparc-tdep.c: Fix indentation.
2244 * sparc64-linux-tdep.c: Fix indentation.
2245 * sparc64-nbsd-tdep.c: Fix indentation.
2246 * sparc64-obsd-tdep.c: Fix indentation.
2247 * sparc64-tdep.c: Fix indentation.
2248 * stabsread.c: Fix indentation.
2249 * stack.c: Fix indentation.
2250 * stap-probe.c: Fix indentation.
2251 * stubs/ia64vms-stub.c: Fix indentation.
2252 * stubs/m32r-stub.c: Fix indentation.
2253 * stubs/m68k-stub.c: Fix indentation.
2254 * stubs/sh-stub.c: Fix indentation.
2255 * stubs/sparc-stub.c: Fix indentation.
2256 * symfile-mem.c: Fix indentation.
2257 * symfile.c: Fix indentation.
2258 * symfile.h: Fix indentation.
2259 * symmisc.c: Fix indentation.
2260 * symtab.c: Fix indentation.
2261 * symtab.h: Fix indentation.
2262 * target-float.c: Fix indentation.
2263 * target.c: Fix indentation.
2264 * target.h: Fix indentation.
2265 * tic6x-tdep.c: Fix indentation.
2266 * tilegx-linux-tdep.c: Fix indentation.
2267 * tilegx-tdep.c: Fix indentation.
2268 * top.c: Fix indentation.
2269 * tracefile-tfile.c: Fix indentation.
2270 * tracepoint.c: Fix indentation.
2271 * tui/tui-disasm.c: Fix indentation.
2272 * tui/tui-io.c: Fix indentation.
2273 * tui/tui-regs.c: Fix indentation.
2274 * tui/tui-stack.c: Fix indentation.
2275 * tui/tui-win.c: Fix indentation.
2276 * tui/tui-winsource.c: Fix indentation.
2277 * tui/tui.c: Fix indentation.
2278 * typeprint.c: Fix indentation.
2279 * ui-out.h: Fix indentation.
2280 * unittests/copy_bitwise-selftests.c: Fix indentation.
2281 * unittests/memory-map-selftests.c: Fix indentation.
2282 * utils.c: Fix indentation.
2283 * v850-tdep.c: Fix indentation.
2284 * valarith.c: Fix indentation.
2285 * valops.c: Fix indentation.
2286 * valprint.c: Fix indentation.
2287 * valprint.h: Fix indentation.
2288 * value.c: Fix indentation.
2289 * value.h: Fix indentation.
2290 * varobj.c: Fix indentation.
2291 * vax-tdep.c: Fix indentation.
2292 * windows-nat.c: Fix indentation.
2293 * windows-tdep.c: Fix indentation.
2294 * xcoffread.c: Fix indentation.
2295 * xml-syscall.c: Fix indentation.
2296 * xml-tdesc.c: Fix indentation.
2297 * xstormy16-tdep.c: Fix indentation.
2298 * xtensa-config.c: Fix indentation.
2299 * xtensa-linux-nat.c: Fix indentation.
2300 * xtensa-linux-tdep.c: Fix indentation.
2301 * xtensa-tdep.c: Fix indentation.
2302
2303 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2304 Craig Blackmore <craig.blackmore@embecosm.com>
2305
2306 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2307 as an unsigned value.
2308
2309 2020-11-01 Tom Tromey <tom@tromey.com>
2310
2311 * dbxread.c (dbx_end_psymtab): Update.
2312 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2313 (build_type_psymtabs_reader): Update.
2314 * xcoffread.c (xcoff_end_psymtab): Update.
2315 * ctfread.c (scan_partial_symbols): Update.
2316 * psymtab.c (sort_pst_symbols): Remove.
2317 (partial_symtab::end): Rename from end_psymtab_common. Inline
2318 sort_pst_symbols.
2319 * psympriv.h (struct partial_symtab) <end>: New method.
2320 (end_psymtab_common): Don't declare.
2321
2322 2020-11-01 Tom Tromey <tom@tromey.com>
2323
2324 * symmisc.c (count_psyms): New function.
2325 (print_objfile_statistics): Use it.
2326 * psymtab.c (append_psymbol_to_list): Remove.
2327 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2328 * objfiles.h (struct objstats) <n_psyms>: Remove.
2329
2330 2020-11-01 Tom Tromey <tom@tromey.com>
2331
2332 * dbxread.c (dbx_end_psymtab): Update.
2333 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2334 (build_type_psymtabs_reader): Update.
2335 * xcoffread.c (xcoff_end_psymtab): Update.
2336 * ctfread.c (scan_partial_symbols): Update.
2337 * psympriv.h (end_psymtab_common): Update.
2338 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2339 (sort_pst_symbols): Likewise.
2340
2341 2020-11-01 Tom Tromey <tom@tromey.com>
2342
2343 * dbxread.c (dbx_symfile_read): Update.
2344 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2345 * xcoffread.c (xcoff_initial_scan): Update.
2346 * psympriv.h (init_psymbol_list): Don't declare.
2347 * psymtab.c (init_psymbol_list): Remove.
2348
2349 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2350
2351 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2352 gnat_encoded_fixed_type_info. Update all callers.
2353
2354 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2355
2356 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2357 line too long.
2358
2359 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2360
2361 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2362 cast_from_fixed. Update all callers.
2363 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2364 Update all callers.
2365 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2366 Update all callers.
2367 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2368 ada_scaling_factor.
2369 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2370 to print_gnat_encoded_fixed_point_type.
2371 * ada-valprint.c: Likewise.
2372
2373 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2374
2375 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2376 (debug_prefixed_printf): Add check of debug_displaced flag.
2377 * linux-nat.c (linux_nat_debug_printf): Add check of
2378 debug_linux_nat flag.
2379
2380 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2381
2382 * infrun.c (infrun_debug_printf_1): Remove.
2383 (displaced_debug_printf_1): Remove.
2384 (stop_all_threads): Use debug_prefixed_printf.
2385 * infrun.h (infrun_debug_printf_1): Remove.
2386 (infrun_debug_printf): Use debug_prefixed_printf.
2387 (displaced_debug_printf_1): Remove.
2388 (displaced_debug_printf): Use debug_prefixed_printf.
2389 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2390 (linux_nat_debug_printf): Use debug_prefixed_printf.
2391
2392 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * configure: Re-generate.
2395 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2396 AC_LANG_PROGRAM.
2397
2398 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 * configure: Re-generate.
2401
2402 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 * configure: Re-generate.
2405
2406 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2407
2408 * configure: Re-generate.
2409
2410 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * configure: Re-generate.
2413
2414 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2415
2416 * acinclude.m4: Modernize.
2417 * configure: Re-generate.
2418
2419 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2420
2421 * configure.ac: Modernize.
2422 * configure: Re-generate.
2423
2424 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2425
2426 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2427 * configure: Re-generate.
2428 * configure.ac: Remove AM_PROG_CC_STDC.
2429
2430 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2431
2432 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2433 AC_CANONICAL_SYSTEM.
2434 * configure: Re-generate.
2435
2436 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2437
2438 * infrun.h (displaced_debug_printf): New macro. Replace
2439 displaced debug prints throughout to use it.
2440 (displaced_debug_printf_1): New declaration.
2441 (displaced_step_dump_bytes): Return string, remove ui_file
2442 parameter, update all callers.
2443 * infrun.c (displaced_debug_printf_1): New function.
2444 (displaced_step_dump_bytes): Return string, remove ui_file
2445 parameter
2446
2447 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2448
2449 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2450
2451 2020-10-30 Tom Tromey <tromey@adacore.com>
2452
2453 * Makefile.in (stamp-init): Depend on config.status.
2454
2455 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2456
2457 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2458
2459 2020-10-30 Pedro Alves <pedro@palves.net>
2460
2461 * thread.c (lookup_selected_frame): Move ...
2462 * frame.c (lookup_selected_frame): ... here.
2463
2464 2020-10-30 Pedro Alves <pedro@palves.net>
2465
2466 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2467 * frame.c
2468 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2469 Use save_selected_frame. Save language as well.
2470 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2471 Use restore_selected_frame, and restore language as well.
2472 (selected_frame_id, selected_frame_level): New.
2473 (selected_frame): Update comments.
2474 (save_selected_frame, restore_selected_frame): New.
2475 (get_selected_frame): Use lookup_selected_frame.
2476 (get_selected_frame_if_set): Delete.
2477 (select_frame): Record selected_frame_level and selected_frame_id.
2478 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2479 fields.
2480 (get_selected_frame): Make 'message' parameter optional.
2481 (get_selected_frame_if_set): Delete declaration.
2482 (select_frame): Update comments.
2483 (save_selected_frame, restore_selected_frame)
2484 (lookup_selected_frame): Declare.
2485 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2486 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2487 New field.
2488 (save_infcall_control_state): Use save_selected_frame.
2489 (restore_selected_frame): Delete.
2490 (restore_infcall_control_state): Use restore_selected_frame.
2491 * stack.c (select_frame_command_core, frame_command_core): Use
2492 get_selected_frame.
2493 * thread.c (restore_selected_frame): Rename to ...
2494 (lookup_selected_frame): ... this and make extern. Select the
2495 current frame if the frame level is -1.
2496 (scoped_restore_current_thread::restore): Also restore the
2497 language.
2498 (scoped_restore_current_thread::~scoped_restore_current_thread):
2499 Don't try/catch.
2500 (scoped_restore_current_thread::scoped_restore_current_thread):
2501 Save the language as well. Use save_selected_frame.
2502
2503 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2504
2505 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2506 documentation.
2507 * gdbarch.h: Re-generate.
2508
2509 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2512 parameter.
2513 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2514 Likewise.
2515 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2516 Likewise.
2517 * arch-utils.c (default_displaced_step_hw_singlestep):
2518 Likewise.
2519 * arch-utils.h (default_displaced_step_hw_singlestep):
2520 Likewise.
2521 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2522 Likewise.
2523 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2524 Likewise.
2525 * gdbarch.c: Re-generate.
2526 * gdbarch.h: Re-generate.
2527 * infrun.c (resume_1): Adjust.
2528
2529 2020-10-29 Tom Tromey <tom@tromey.com>
2530
2531 * progspace.c (program_space::~program_space): Don't call
2532 exec_close.
2533
2534 2020-10-29 Tom Tromey <tom@tromey.com>
2535
2536 * exec.c (exec_target::close): Don't change current program
2537 space.
2538
2539 2020-10-29 Tom Tromey <tom@tromey.com>
2540
2541 * symfile.c (add_symbol_file_command): Update.
2542 * exec.c (program_space::add_target_sections): Rename.
2543 * symfile-mem.c (symbol_file_add_from_memory): Update.
2544 * progspace.h (struct program_space) <add_target_sections>:
2545 Declare new overload.
2546 * exec.h (add_target_sections_of_objfile): Don't declare.
2547
2548 2020-10-29 Tom Tromey <tom@tromey.com>
2549
2550 * solib.c (solib_map_sections): Update.
2551 * exec.c (program_space::add_target_sections): Now a method.
2552 (exec_file_attach): Update.
2553 * exec.h (add_target_sections): Don't declare.
2554 * progspace.h (struct program_space) <add_target_sections>:
2555 Declare.
2556
2557 2020-10-29 Tom Tromey <tom@tromey.com>
2558
2559 * progspace.h (struct program_space) <remove_target_sections>:
2560 Declare.
2561 * exec.c (program_space::remove_target_sections): Now a method.
2562 * exec.h (remove_target_sections): Don't declare.
2563
2564 2020-10-29 Tom Tromey <tom@tromey.com>
2565
2566 * inferior.c (delete_inferior): Update.
2567 * progspace.c (program_space::empty): Rename from
2568 program_space_empty_p. Return bool.
2569 * progspace.h (struct program_space) <empty>: New method.
2570 (program_space_empty_p): Don't declare.
2571
2572 2020-10-29 Tom Tromey <tom@tromey.com>
2573
2574 * progspace.c (program_space::~program_space): Don't call
2575 clear_program_space_solib_cache.
2576 (program_space::clear_solib_cache): Rename from
2577 clear_solib_cache.
2578 * solib.c (handle_solib_event): Update.
2579 * progspace.h (struct program_space) <clear_solib_cache>: New
2580 method.
2581 (clear_program_space_solib_cache): Don't declare.
2582
2583 2020-10-29 Tom Tromey <tom@tromey.com>
2584
2585 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2586 * target.c (info_target_command): Update.
2587 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2588 (symbol_file_clear, reread_symbols): Update.
2589 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2590 * stabsread.c (scan_file_globals): Update.
2591 * solib.c (update_solib_list): Update.
2592 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2593 (svr4_fetch_objfile_link_map, enable_break)
2594 (svr4_relocate_main_executable)
2595 (svr4_iterate_over_objfiles_in_search_order): Update.
2596 * solib-frv.c (lm_base, enable_break)
2597 (frv_relocate_main_executable): Update.
2598 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2599 (frv_fetch_objfile_link_map): Update.
2600 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2601 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2602 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2603 * remote.c (remote_target::get_offsets): Update.
2604 (remote_target::start_remote)
2605 (extended_remote_target::post_attach): Update.
2606 * objfiles.c (entry_point_address_query): Update.
2607 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2608 * minsyms.c (get_symbol_leading_char): Update.
2609 * frame.c (inside_main_func): Update.
2610 * progspace.h (symfile_objfile): Remove macro.
2611
2612 2020-10-29 Tom Tromey <tom@tromey.com>
2613
2614 * exec.c (exec_file_attach): Update.
2615 * progspace.c (program_space::exec_close): Update.
2616 * progspace.h (struct program_space) <ebfd>: Now a
2617 gdb_bfd_ref_ptr.
2618 <set_exec_bfd>: Change argument type.
2619 <exec_bfd>: Update.
2620
2621 2020-10-29 Tom Tromey <tom@tromey.com>
2622
2623 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2624 * symfile.c (reread_symbols): Update.
2625 * symfile-mem.c (add_symbol_file_from_memory_command)
2626 (add_vsyscall_page): Update.
2627 * source-cache.c (source_cache::get_plain_source_lines): Update.
2628 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2629 (svr4_current_sos_direct, svr4_exec_displacement)
2630 (svr4_relocate_main_executable): Update.
2631 (svr4_iterate_over_objfiles_in_search_order): Update.
2632 * solib-frv.c (enable_break2, enable_break): Update.
2633 * solib-dsbt.c (lm_base, enable_break): Update.
2634 * solib-darwin.c (find_program_interpreter)
2635 (darwin_solib_create_inferior_hook): Update.
2636 * sol-thread.c (rw_common, ps_pdmodel): Update.
2637 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2638 * remote.c (compare_sections_command)
2639 (remote_target::trace_set_readonly_regions): Update.
2640 * remote-sim.c (get_sim_inferior_data)
2641 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2642 (gdbsim_target_open, gdbsim_target::files_info): Update.
2643 * exec.h (exec_bfd): Remove macro.
2644 * progspace.c (initialize_progspace): Update.
2645 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2646 Update.
2647 * nto-procfs.c (nto_procfs_target::post_attach)
2648 (nto_procfs_target::create_inferior): Update.
2649 * maint.c (maintenance_info_sections): Update.
2650 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2651 Update.
2652 * infcmd.c (post_create_inferior): Update.
2653 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2654 (objfile_find_memory_regions): Update.
2655 * exec.c (validate_exec_file, exec_file_attach)
2656 (exec_read_partial_read_only, print_section_info): Update.
2657 * corelow.c (core_target_open): Update.
2658 * corefile.c (reopen_exec_file, validate_files): Update.
2659 * arm-tdep.c (gdb_print_insn_arm): Update.
2660 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2661 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2662 methods.
2663
2664 2020-10-29 Tom Tromey <tom@tromey.com>
2665
2666 * progspace.h (current_target_sections): Remove macro.
2667 * solib-svr4.c (scan_dyntag): Update.
2668 * solib-dsbt.c (scan_dyntag): Update.
2669 * exec.c (exec_target::close): Update.
2670 (add_target_sections, add_target_sections_of_objfile)
2671 (remove_target_sections, exec_target::get_section_table)
2672 (exec_target::files_info, set_section_command)
2673 (exec_set_section_address, exec_target::has_memory)
2674 (exec_target::has_memory): Update.
2675
2676 2020-10-29 Tom Tromey <tom@tromey.com>
2677
2678 * source-cache.c (source_cache::get_plain_source_lines): Use
2679 current_program_space.
2680 * corefile.c (reopen_exec_file): Use current_program_space.
2681 * exec.c (exec_file_attach): Use current_program_space.
2682 * exec.h (exec_bfd_mtime): Remove.
2683
2684 2020-10-29 Tom Tromey <tom@tromey.com>
2685
2686 * gcore.c (default_gcore_mach): Remove.
2687 (create_gcore_bfd): Update.
2688
2689 2020-10-29 Tom Tromey <tom@tromey.com>
2690
2691 * progspace.c (program_space::exec_close): New method, from
2692 exec_close in exec.c.
2693 * exec.c (exec_close): Move to progspace.c.
2694 (exec_target::close, exec_file_attach): Update.
2695 * progspace.h (struct program_space) <exec_close>: Declare
2696 method.
2697
2698 2020-10-29 Tom Tromey <tom@tromey.com>
2699
2700 * progspace.h (struct program_space) <exec_filename>: Rename from
2701 pspace_exec_filename. Now a unique_xmalloc_ptr.
2702 * inferior.c (print_selected_inferior): Update.
2703 (print_inferior): Update.
2704 * mi/mi-main.c (print_one_inferior): Update.
2705 * exec.h (exec_filename): Remove macro.
2706 * corefile.c (get_exec_file): Update.
2707 * exec.c (exec_close): Update.
2708 (exec_file_attach): Update.
2709 * progspace.c (clone_program_space): Update.
2710 (print_program_space): Update.
2711
2712 2020-10-29 Tom Tromey <tom@tromey.com>
2713
2714 * target-section.h (struct target_section): Add constructor.
2715 * exec.c (build_section_table, add_target_sections_of_objfile):
2716 Update.
2717 * corelow.c (core_target::build_file_mappings): Update.
2718
2719 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2720
2721 PR gdb/19318
2722 * inferior.c (detach_inferior_command): Restore the current thread.
2723 (kill_inferior_command): Ditto.
2724
2725 2020-10-28 Tom de Vries <tdevries@suse.de>
2726
2727 PR symtab/26772
2728 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2729 map, check it in the "best match" loop.
2730
2731 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * m32c-tdep.c: Remove unused includes.
2734
2735 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * xtensa-tdep.c: Remove includes.
2738
2739 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2740
2741 * breakpoint.c (struct condition_command_opts): New struct.
2742 (condition_command_option_defs): New static global.
2743 (make_condition_command_options_def_group): New function.
2744 (condition_completer): Update to consider the '-force' flag.
2745 (condition_command): Use gdb::option for the '-force' flag.
2746
2747 2020-10-27 Tom de Vries <tdevries@suse.de>
2748
2749 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2750 symbols in section check.
2751
2752 2020-10-27 Tom de Vries <tdevries@suse.de>
2753
2754 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2755
2756 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2757
2758 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2759 * breakpoint.c: Update the help text of the 'condition' and 'break'
2760 commands.
2761 (set_breakpoint_condition): Take a new bool parameter
2762 to control whether condition definition should be forced even when
2763 the condition expression is invalid in all of the current locations.
2764 (condition_command): Update the call to 'set_breakpoint_condition'.
2765 (find_condition_and_thread): Take the "-force-condition" flag into
2766 account.
2767 * linespec.c (linespec_keywords): Add "-force-condition" as an
2768 element.
2769 (FORCE_KEYWORD_INDEX): New #define.
2770 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2771 as a keyword.
2772 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2773 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2774 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2775 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2776
2777 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2778
2779 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2780 * breakpoint.c (set_breakpoint_location_condition): New function.
2781 (set_breakpoint_condition): Disable a breakpoint location if parsing
2782 the condition string gives an error.
2783 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2784 (build_target_condition_list): Ditto.
2785 (build_target_command_list): Ditto.
2786 (build_bpstat_chain): Ditto.
2787 (print_one_breakpoint_location): Ditto.
2788 (print_one_breakpoint): Ditto.
2789 (breakpoint_1): Ditto.
2790 (bp_location::bp_location): Ditto.
2791 (locations_are_equal): Ditto.
2792 (update_breakpoint_locations): Ditto.
2793 (enable_disable_bp_num_loc): Ditto.
2794 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2795 (find_condition_and_thread_for_sals): New static function.
2796 (create_breakpoint): Call find_condition_and_thread_for_sals.
2797 (location_to_sals): Call find_condition_and_thread_for_sals instead
2798 of find_condition_and_thread.
2799
2800 2020-10-26 Tom de Vries <tdevries@suse.de>
2801
2802 * dwarf2/read.c (process_full_comp_unit): Call
2803 dwarf2_find_base_address.
2804
2805 2020-10-26 Tom Tromey <tromey@adacore.com>
2806
2807 * gdbtypes.c (create_range_type): Revert previous patch. Add
2808 comment.
2809
2810 2020-10-26 Pedro Alves <pedro@palves.net>
2811
2812 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2813 (my_waitpid): Use gdb::handle_eintr.
2814
2815 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2816
2817 * acinclude.m4: Update ptrace.m4 path.
2818 * ptrace.m4: Moved to gdbsupport.
2819
2820 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2821
2822 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2823 instead of target_gdbarch.
2824
2825 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2826
2827 * jit.c (jit_reader_load_command): Pass current inferior.
2828 (jit_inferior_init): Change parameter type to inferior, use it.
2829 (jit_inferior_created): Remove.
2830 (jit_inferior_created_hook): Pass inferior parameter down.
2831 (_initialize_jit): Use jit_inferior_created_hook instead of
2832 jit_inferior_created.
2833 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2834 * infrun.c (follow_exec): Pass inferior to
2835 jit_inferior_created_hook.
2836
2837 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2838
2839 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2840 parameter and use it.
2841 (thread_db_inferior_created): Pass inferior argument.
2842
2843 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2844
2845 * aix-thread.c (aix_thread_inferior_created): Add inferior
2846 parameter.
2847 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2848 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2849 * jit.c (jit_inferior_created): Likewise.
2850 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2851 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2852 * observable.h (inferior_created): Likewise.
2853 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2854 * symfile-mem.c (add_vsyscall_page): Likewise.
2855 * infcmd.c (post_create_inferior): Pass inferior argument.
2856
2857 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2858
2859 GDB 10.1 released.
2860
2861 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2862
2863 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2864 to ada_check_typedef.
2865
2866 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2867
2868 * f-exp.y (f_parse): Rename to...
2869 (f_language::parser): ...this.
2870 * f-lang.c (f_get_encoding): Rename to...
2871 (f_language::get_encoding): ...this.
2872 (f_op_print_tab): Rename to...
2873 (f_language::op_print_tab): ...this.
2874 (exp_descriptor_f): Rename to...
2875 (f_language::exp_descriptor_tab): ...this.
2876 (class f_language): Moved to f-lang.h.
2877 (f_language::language_arch_info): New function, moved out of class
2878 declaration.
2879 (f_language::search_name_hash): Likewise.
2880 (f_language::lookup_symbol_nonlocal): Likewise.
2881 (f_language::get_symbol_name_matcher_inner): Likewise.
2882 * f-lang.h: Add 'valprint.h' include.
2883 (class f_language): Moved here from f-lang.c.
2884 * f-typeprint.c (f_type_print_args): Delete commented out
2885 declaration.
2886 (f_print_typedef): Rename to...
2887 (f_language::print_typedef): ...this.
2888 (f_print_type): Rename to...
2889 (f_language::print_type): ...this.
2890 (f_type_print_varspec_prefix): Delete declaration and rename to...
2891 (f_language::f_type_print_varspec_prefix): ...this.
2892 (f_type_print_varspec_suffix): Delete declaration and rename to...
2893 (f_language::f_type_print_varspec_suffix): ...this.
2894 (f_type_print_base): Delete declaration and rename to...
2895 (f_language::f_type_print_base): ...this.
2896 * f-valprint.c (f_value_print_inner): Rename to...
2897 (f_language::value_print_inner): ...this.
2898 * parse.c: Delete 'f-lang.h' include.
2899
2900 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * language.h (language_defn::print_type): Add variable names in
2903 declaration, and update header comment.
2904
2905 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * ada-lang.c (ada_language::demangle): Rename to...
2908 (ada_language::demangle_symbol): ...this.
2909 * c-lang.c (cplus_language::demangle): Rename to...
2910 (cplus_language::demangle_symbol): ...this.
2911 * d-lang.c (d_language::demangle): Rename to...
2912 (d_language::demangle_symbol): ...this.
2913 * f-lang.c (f_language::demangle): Rename to...
2914 (f_language::demangle_symbol): ...this.
2915 * go-lang.c (go_language::demangle): Rename to...
2916 (go_language::demangle_symbol): ...this.
2917 * language.c (language_demangle): Update call to demangle_symbol.
2918 (auto_or_unknown_language::demangle): Rename to...
2919 (auto_or_unknown_language::demangle_symbol): ...this.
2920 * language.h (language_defn::demangle): Rename to...
2921 (language_defn::demangle_symbol): ...this.
2922 * objc-lang.c (objc_language::demangle): Rename to...
2923 (objc_language::demangle_symbol): ...this.
2924 * rust-lang.c (rust_language::demangle): Rename to...
2925 (rust_language::demangle_symbol): ...this.
2926
2927 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2930 (iterate_over_file_blocks): Replace use of macro with the macros
2931 definition.
2932
2933 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2934
2935 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2936 * valprint.c (maybe_print_array_index): Replace use of macro with
2937 the macros definition.
2938
2939 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2940
2941 * ada-lang.c (ada_language::print_array_index): Call value_print
2942 directly.
2943 * language.c (language_defn::print_array_index): Likewise.
2944 * language.h (LA_VALUE_PRINT): Delete.
2945 * valprint.c (value_print): Call value_print on the
2946 current_language directly.
2947
2948 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2949
2950 * language.h (LA_PRINT_TYPEDEF): Delete.
2951 * typeprint.c (typedef_print): Call print_typedef directly on the
2952 current_language object.
2953
2954 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * m2-exp.y (m2_parse): Rename to...
2957 (m2_language::parser): ...this. Update function signature.
2958 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2959 (m2_op_print): Rename to...
2960 (m2_language::op_print_tab): ...this, and make const.
2961 (exp_descriptor_modula2): Rename to...
2962 (m2_language::exp_descriptor_modula2): ...this.
2963 (class m2_language): Move to m2-lang.h.
2964 (m2_language::language_arch_info): New function, moved out of
2965 class declaration.
2966 (m2_language::printchar): New function, body from m2_printchar.
2967 (m2_language::printstr): New function, moved out of class
2968 declaration.
2969 (m2_language::emitchar): Likewise.
2970 * m2-lang.h (m2_parse): Delete declaration.
2971 (m2_print_typedef): Delete declaration.
2972 (m2_value_print_inner): Delete declaration.
2973 (class m2_language): Class declaration moved from m2-lang.c,
2974 larger functions are left in m2-lang.c.
2975 * m2-typeprint.c (m2_print_typedef): Rename to...
2976 (m2_language::print_typedef): ...this, and update function
2977 signature.
2978 * m2-valprint.c (m2_value_print_inner): Rename to...
2979 (m2_language::value_print_inner): ...this, replace use of
2980 LA_PRINT_STRING with a direct call to printstr member function,
2981 and update recursive call.
2982
2983 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2984
2985 * language.c (default_is_string_type_p): Delete, implementation
2986 moved into auto_or_unknown_language::is_string_type_p.
2987 (unk_op_print_tab): Moved into
2988 auto_or_unknown_language::opcode_print_table.
2989 (unknown_language_arch_info): Delete, implementation moved into
2990 auto_or_unknown_language::language_arch_info.
2991 (class auto_or_unknown_language): New class, member functions
2992 copied from unknown_language class, with some updates.
2993 (class unknown_language): Most member functions moved into
2994 auto_or_unknown_language class. Inherit from
2995 auto_or_unknown_language class.
2996 (class auto_language): Inherit from auto_or_unknown_language.
2997 Delete most member functions.
2998
2999 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3000
3001 * stabsread.c (read_member_functions): Remove gdb_assert.
3002
3003 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3004
3005 * gdbtypes.c (init_complex_type): Check target type name.
3006
3007 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3008
3009 * target-debug.h (target_debug_print_struct_target_ops_p):
3010 Remove.
3011 (target_debug_print_async_callback_ftype_p): Remove.
3012 (target_debug_print_struct_trace_state_variable_p): Remove.
3013 (target_debug_print_struct_traceframe_info_p): Remove.
3014 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3015 (target_debug_print_enum_btrace_format): Remove.
3016 (target_debug_print_enum_info_proc_what): Remove.
3017 (target_debug_print_thread_info_pp): Remove.
3018
3019 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * target.h (struct target_ops) <make_corefile_notes>:
3022 Change return type to unique pointer.
3023 * target.c (dummy_make_corefile_notes): Likewise.
3024 * exec.c (struct exec_target) <make_corefile_notes>:
3025 Likewise.
3026 (exec_target::make_corefile_notes): Likewise.
3027 * procfs.c (class procfs_target) <make_corefile_notes>:
3028 Likewise.
3029 (procfs_do_thread_registers): Adjust to unique pointer.
3030 (struct procfs_corefile_thread_data): Add constructor.
3031 <note_data>: Change type to unique pointer.
3032 (procfs_corefile_thread_callback): Adjust to unique pointer.
3033 (procfs_target::make_corefile_notes): Change return type to
3034 unique pointer.
3035 * target-delegates.c: Re-generate.
3036 * gcore.c (write_gcore_file_1): Adjust.
3037 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3038 New.
3039
3040 2020-10-22 Tom de Vries <tdevries@suse.de>
3041
3042 * block.c (find_block_in_blockvector): Make sure the returned block
3043 contains pc.
3044
3045 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3046
3047 PR gdb/26693
3048 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3049 parameter.
3050 (load_cu): Pass existing CU.
3051 (process_imported_unit_die): Likewise.
3052 (follow_die_offset): Likewise.
3053
3054 2020-10-22 Luis Machado <luis.machado@linaro.org>
3055
3056 * corelow.c (core_target::xfer_partial): Also check for an empty
3057 m_core_unavailable_mappings vector.
3058
3059 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3060
3061 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3062 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3063 * f-exp.y (arglist): Allow for a series of subranges.
3064 (subrange): Add cases for subranges with strides.
3065 * f-lang.c (value_f90_subarray): Catch use of array strides and
3066 throw an error.
3067 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3068
3069 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * expprint.c (print_subexp_standard): Change enum range_type to
3072 range_flag and rename variables to match.
3073 (dump_subexp_body_standard): Likewise.
3074 * expression.h (enum range_type): Rename to...
3075 (enum range_flag): ...this.
3076 (range_types): Rename to...
3077 (range_flags): ...this.
3078 * f-lang.c (value_f90_subarray): Change enum range_type to
3079 range_flag and rename variables to match.
3080 * parse.c (operator_length_standard): Likewise.
3081 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3082 range_type to range_flag.
3083 * rust-lang.c (rust_evaluate_funcall): Likewise.
3084 (rust_range): Likewise.
3085 (rust_compute_range): Likewise.
3086 (rust_subscript): Likewise.
3087
3088 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3089
3090 * expprint.c (print_subexp_standard): Update to reflect changes to
3091 enum range_type.
3092 (dump_subexp_body_standard): Likewise.
3093 * expression.h (enum range_type): Convert to a bit field enum, and
3094 make the enum unsigned.
3095 * f-exp.y (subrange): Update to reflect changes to enum
3096 range_type.
3097 * f-lang.c (value_f90_subarray): Likewise.
3098 * parse.c (operator_length_standard): Likewise.
3099 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3100 * rust-lang.c (rust_range): Likewise.
3101 (rust_compute_range): Likewise.
3102 (rust_subscript): Likewise.
3103
3104 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3105
3106 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3107 (displaced_step_in_progress): Fix comment.
3108
3109 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3110
3111 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3112 * gdbarch.c: Re-generate.
3113 * gdbarch.h: Re-generate.
3114 * gcore.c (write_gcore_file_1): Adjust.
3115 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3116 constructor.
3117 <note_data>: Change type to unique pointer.
3118 <abort_iteration>: Change type to bool.
3119 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3120 (fbsd_collect_thread_registers): Return void, adjust.
3121 (struct fbsd_corefile_thread_data): Add construtor.
3122 <note_data>: Change type to unique pointer.
3123 (fbsd_corefile_thread): Adjust.
3124 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3125 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3126 to unique pointer, adjust.
3127 (struct linux_collect_regset_section_cb_data): Add constructor.
3128 <note_data>: Change type to unique pointer.
3129 <abort_iteration>: Change type to bool.
3130 (linux_collect_thread_registers): Return void, adjust.
3131 (struct linux_corefile_thread_data): Add constructor.
3132 <note_data>: Change type to unique pointer.
3133 (linux_corefile_thread): Adjust.
3134 (linux_make_corefile_notes): Return unique pointer, adjust.
3135
3136 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3137
3138 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3139 * gdbarch.c: Re-generate.
3140 * gdbarch.h: Re-generate.
3141 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3142 bool.
3143 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3144 Likewise.
3145 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3146 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3147 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3148 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3149
3150 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3151
3152 * gdbarch.sh: Make generated predicates return bool.
3153 * gdbarch.c: Re-generate.
3154 * gdbarch.h: Re-generate.
3155
3156 2020-10-20 Tom Tromey <tom@tromey.com>
3157
3158 * varobj-iter.h (struct varobj_item): Remove typedef.
3159
3160 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3161
3162 * infrun.c (currently_stepping): Change int to bool
3163 (maybe_software_singlestep): Likewise.
3164 (show_stop_on_solib_events): Likewise.
3165 (stepping_past_nonsteppable_watchpoint): Likewise.
3166 (displaced_step_in_progress_any_inferior): Likewise.
3167 (displaced_step_in_progress_thread): Likewise.
3168 (keep_going_stepped_thread): Likewise.
3169 (thread_still_needs_step_over): Likewise.
3170 (start_step_over): Likewise.
3171 (do_target_resume): Likewise.
3172 (resume_1): Likewise.
3173 (clear_proceed_status): Likewise.
3174 (thread_still_needs_step_over_bp): Likewise.
3175 (proceed): Likewise.
3176 (switch_back_to_stepped_thread): Likewise.
3177 (adjust_pc_after_break): Likewise.
3178 (stepped_in_from): Likewise.
3179 (handle_stop_requested): Likewise.
3180 (handle_syscall_event): Likewise.
3181 (handle_no_resumed): Likewise.
3182 (handle_inferior_event): Likewise.
3183 (finish_step_over): Likewise.
3184 (handle_signal_stop): Likewise.
3185 (process_event_stop_test): Likewise.
3186
3187 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3188
3189 * infrun.c (get_displaced_stepping_state): Fix comment.
3190
3191 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3192
3193 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3194
3195 2020-10-19 Tom Tromey <tromey@adacore.com>
3196
3197 PR tui/26719
3198 * tui/tui-winsource.h (struct tui_source_window_base)
3199 <refresh_window>: Rename from refresh_pad.
3200 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3201 Rename from refresh_pad.
3202 (tui_source_window_base::show_source_content)
3203 (tui_source_window_base::do_scroll_horizontal): Update.
3204
3205 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3206
3207 * thread.c (_initialize_thread): Fine-tune the help text of
3208 'info threads'.
3209
3210 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3211
3212 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3213
3214 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3215
3216 * breakpoint.c (handle_jit_event): Add an argument, change how
3217 `jit_event_handler` is called.
3218
3219 2020-10-17 Tom Tromey <tom@tromey.com>
3220
3221 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3222 (scan_xcoff_symtab): Update.
3223 * psymtab.h (class psymtab_storage) <global_psymbols,
3224 static_psymbols, current_global_psymbols,
3225 current_static_psymbols>: Remove.
3226 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3227 (match_partial_symbol, lookup_partial_symbol): Update.
3228 (print_partial_symbols): Change parameters.
3229 (dump_psymtab, recursively_search_psymtabs)
3230 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3231 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3232 (concat): Remove.
3233 (end_psymtab_common): Simplify.
3234 (append_psymbol_to_list): Change parameters.
3235 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3236 (init_psymbol_list): Simplify.
3237 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3238 * psympriv.h (struct partial_symtab) <empty>: New method.
3239 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3240 Remove.
3241 <global_psymbols, static_psymbols>: New members.
3242 <add_psymbol>: New methods.
3243 (add_psymbol_to_list): Don't declare.
3244 (psymbol_placement): Move earlier.
3245 * mdebugread.c (parse_partial_symbols): Update.
3246 (handle_psymbol_enumerators): Change parameters.
3247 (mdebug_expand_psymtab): Update.
3248 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3249 (add_partial_symbol): Update.
3250 * dwarf2/index-write.c (write_psymbols): Change parameters.
3251 (write_one_signatured_type): Update.
3252 (recursively_count_psymbols): Update.
3253 (recursively_write_psymbols): Update.
3254 (class debug_names) <recursively_write_psymbols>: Update.
3255 <write_psymbols>: Change parameters.
3256 <write_one_signatured_type>: Update.
3257 * dbxread.c (read_dbx_symtab): Update.
3258 (dbx_end_psymtab): Use partial_symtab::empty.
3259 * ctfread.c (struct ctf_context) <pst>: New member.
3260 (create_partial_symtab): Set it.
3261 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3262 (scan_partial_symbols): Use the psymtab's context. Update.
3263
3264 2020-10-17 Tom Tromey <tom@tromey.com>
3265
3266 * valprint.c (generic_value_print): Remove comment.
3267 * m2-valprint.c (m2_value_print_inner): Remove comment.
3268 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3269 type.
3270
3271 2020-10-17 Tom de Vries <tdevries@suse.de>
3272
3273 PR symtab/26317
3274 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3275 symbol main.
3276
3277 2020-10-14 Tom de Vries <tdevries@suse.de>
3278
3279 PR gdb/26733
3280 * solib.c (solib_contains_address_p): Handle
3281 'solib->sections == nullptr'.
3282
3283 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3284
3285 PR gdb/26642
3286 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3287 target can't do async.
3288 * target.c (target_wait): Assert that we don't pass
3289 TARGET_WNOHANG to a target that can't async.
3290
3291 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3292
3293 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3294 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3295 * alpha-bsd-nat.c: Adjust include.
3296 * alpha-bsd-tdep.h: Adjust comment.
3297 * alpha-nbsd-tdep.c: Rename to ...
3298 * alpha-netbsd-tdep.c: ... this, adjust include.
3299 * amd64-nbsd-nat.c: Rename to ...
3300 * amd64-netbsd-nat.c: ... this, adjust include.
3301 * amd64-nbsd-tdep.c: Rename to ...
3302 * amd64-netbsd-tdep.c: ... this, adjust include.
3303 * amd64-tdep.h: Adjust include.
3304 * arm-nbsd-nat.c: Rename to ...
3305 * arm-netbsd-nat.c: ... this, adjust include.
3306 * arm-nbsd-tdep.c: Rename to ...
3307 * arm-netbsd-tdep.c: ... this, adjust include.
3308 * arm-nbsd-tdep.h: Rename to ...
3309 * arm-netbsd-tdep.h: ... this, adjust include.
3310 * configure.nat: Adjust file lists.
3311 * configure.tgt: Likewise.
3312 * hppa-nbsd-nat.c: Rename to ...
3313 * hppa-netbsd-nat.c: ... this, adjust include.
3314 * hppa-nbsd-tdep.c: Rename to ...
3315 * hppa-netbsd-tdep.c: ... this, adjust include.
3316 * i386-nbsd-nat.c: Rename to ...
3317 * i386-netbsd-nat.c: ... this, adjust include.
3318 * i386-nbsd-tdep.c: Rename to ...
3319 * i386-netbsd-tdep.c: ... this, adjust include.
3320 * m68k-bsd-nat.c: Adjust include.
3321 * mips-nbsd-nat.c: Rename to ...
3322 * mips-netbsd-nat.c: ... this, adjust include.
3323 * mips-nbsd-tdep.c: Rename to ...
3324 * mips-netbsd-tdep.c: ... this, adjust include.
3325 * mips-nbsd-tdep.h: Rename to ...
3326 * mips-netbsd-tdep.h: ... this.
3327 * nbsd-nat.c: Rename to ...
3328 * netbsd-nat.c: ... this, adjust include.
3329 * nbsd-nat.h: Rename to ...
3330 * netbsd-nat.h: ... this, adjust include.
3331 * nbsd-tdep.c: Rename to ...
3332 * netbsd-tdep.c: ... this, adjust include.
3333 * nbsd-tdep.h: Rename to ...
3334 * netbsd-tdep.h: ... this.
3335 * ppc-nbsd-nat.c: Rename to ...
3336 * ppc-netbsd-nat.c: ... this, adjust include.
3337 * ppc-nbsd-tdep.c: Rename to ...
3338 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3339 * ppc-nbsd-tdep.h: Rename to ...
3340 * ppc-netbsd-tdep.h: ... this.
3341 * sh-nbsd-nat.c: Rename to ...
3342 * sh-netbsd-nat.c: ... this, adjust include.
3343 * sh-nbsd-tdep.c: Rename to ...
3344 * sh-netbsd-tdep.c: ... this, adjust include.
3345 * sparc-nbsd-nat.c: Rename to ...
3346 * sparc-netbsd-nat.c: ... this.
3347 * sparc-nbsd-tdep.c: Rename to ...
3348 * sparc-netbsd-tdep.c: ... this, adjust include.
3349 * sparc64-nbsd-nat.c: Rename to ...
3350 * sparc64-netbsd-nat.c: ... this.
3351 * sparc64-nbsd-tdep.c: Rename to ...
3352 * sparc64-netbsd-tdep.c: ... this, adjust include.
3353 * sparc64-tdep.h: Adjust comment.
3354 * vax-bsd-nat.c: Adjust include.
3355 * vax-nbsd-tdep.c: Rename to ...
3356 * vax-netbsd-tdep.c: ... this, adjust include.
3357
3358 2020-10-12 Tom Tromey <tom@tromey.com>
3359
3360 * target.h (struct target_ops) <get_section_table>: Update.
3361 (target_get_section_table): Update.
3362 * target.c (target_get_section_table, target_section_by_addr)
3363 (memory_xfer_partial_1): Update.
3364 * target-section.h (target_section_table): Now an alias.
3365 * target-delegates.c: Rebuild.
3366 * target-debug.h (target_debug_print_target_section_table_p):
3367 Rename from target_debug_print_struct_target_section_table_p.
3368 * symfile.c (build_section_addr_info_from_section_table): Update.
3369 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3370 * solib-svr4.c (scan_dyntag): Update.
3371 * solib-dsbt.c (scan_dyntag): Update.
3372 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3373 Update.
3374 * record-full.c (record_full_core_target::xfer_partial): Update.
3375 * progspace.h (struct program_space) <target_sections>: Update.
3376 * exec.h (print_section_info): Update.
3377 * exec.c (exec_target::close, build_section_table)
3378 (add_target_sections, add_target_sections_of_objfile)
3379 (remove_target_sections, exec_on_vfork)
3380 (section_table_available_memory)
3381 (section_table_xfer_memory_partial)
3382 (exec_target::get_section_table, exec_target::xfer_partial)
3383 (print_section_info, set_section_command)
3384 (exec_set_section_address, exec_target::has_memory): Update.
3385 * corelow.c (core_target::build_file_mappings)
3386 (core_target::xfer_partial, core_target::info_proc_mappings)
3387 (core_target::info_proc_mappings): Update.
3388 * bfd-target.c (class target_bfd): Update
3389
3390 2020-10-12 Tom Tromey <tom@tromey.com>
3391
3392 * progspace.c (program_space::~program_space): Don't call
3393 clear_section_table.
3394 * exec.h (clear_section_table): Don't declare.
3395 * exec.c (exec_target::close): Update.
3396 (clear_section_table): Remove.
3397
3398 2020-10-12 Tom Tromey <tom@tromey.com>
3399
3400 * exec.c (add_target_sections_of_objfile): Simplify.
3401
3402 2020-10-12 Tom Tromey <tom@tromey.com>
3403
3404 * solib.c (solib_map_sections): Update.
3405 * record-full.c (record_full_core_open_1): Update.
3406 * exec.h (build_section_table): Return a target_section_table.
3407 * exec.c (exec_file_attach): Update.
3408 (build_section_table): Return a target_section_table.
3409 * corelow.c (core_target::core_target): Update.
3410 * bfd-target.c (target_bfd::target_bfd): Update.
3411
3412 2020-10-12 Tom Tromey <tom@tromey.com>
3413
3414 * target.c (target_section_by_addr, memory_xfer_partial_1):
3415 Update.
3416 * target-section.h (struct target_section_table): Use
3417 std::vector.
3418 * symfile.h (build_section_addr_info_from_section_table): Take a
3419 target_section_table.
3420 * symfile.c (build_section_addr_info_from_section_table): Take a
3421 target_section_table.
3422 * solist.h (struct so_list) <sections>: Change type.
3423 <sections_end>: Remove.
3424 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3425 (solib_contains_address_p): Update.
3426 * solib-svr4.c (scan_dyntag): Update.
3427 * solib-dsbt.c (scan_dyntag): Update.
3428 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3429 Update.
3430 * record-full.c (record_full_core_start, record_full_core_end):
3431 Remove.
3432 (record_full_core_sections): New global.
3433 (record_full_core_open_1, record_full_core_target::xfer_partial):
3434 Update.
3435 * exec.h (build_section_table, section_table_xfer_memory_partial)
3436 (add_target_sections): Take a target_section_table.
3437 * exec.c (exec_file_attach, clear_section_table): Update.
3438 (resize_section_table): Remove.
3439 (build_section_table, add_target_sections): Take a
3440 target_section_table.
3441 (add_target_sections_of_objfile, remove_target_sections)
3442 (exec_on_vfork): Update.
3443 (section_table_available_memory): Take a target_section_table.
3444 (section_table_read_available_memory): Update.
3445 (section_table_xfer_memory_partial): Take a target_section_table.
3446 (print_section_info, set_section_command)
3447 (exec_set_section_address, exec_target::has_memory): Update.
3448 * corelow.c (class core_target) <m_core_section_table,
3449 m_core_file_mappings>: Remove braces.
3450 <~core_target>: Remove.
3451 (core_target::core_target): Update.
3452 (core_target::~core_target): Remove.
3453 (core_target::build_file_mappings)
3454 (core_target::xfer_memory_via_mappings)
3455 (core_target::xfer_partial, core_target::info_proc_mappings):
3456 Update.
3457 * bfd-target.c (target_bfd::xfer_partial): Update.
3458 (target_bfd::target_bfd): Update.
3459 (target_bfd::~target_bfd): Remove.
3460
3461 2020-10-12 Tom Tromey <tom@tromey.com>
3462
3463 * target.h (struct target_section, struct target_section_table):
3464 Move to target-section.h.
3465 * target-section.h: New file.
3466
3467 2020-10-12 Pedro Alves <pedro@palves.net>
3468
3469 PR exp/26602
3470 * valops.c (struct struct_field_searcher): New.
3471 (update_search_result): Rename to ...
3472 (struct_field_searcher::update_result): ... this. Simplify
3473 prototype. Record all found fields.
3474 (do_search_struct_field): Rename to ...
3475 (struct_field_searcher::search): ... this. Simplify prototype.
3476 Maintain stack of visited baseclass path. Call update_result for
3477 fields too. Keep searching fields in baseclasses instead of
3478 stopping at the first found field.
3479 (search_struct_field): Use struct_field_searcher. When looking
3480 for fields, report ambiguous access attempts.
3481
3482 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 * frame.c (inside_main_func): Check full symbols as well as
3485 minimal symbols.
3486
3487 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3488
3489 * ada-lang.c (advance_wild_match): Rewrite the function's
3490 description. Change the type of target0, t0 and t1 to char.
3491
3492 2020-10-09 Tom Tromey <tromey@adacore.com>
3493
3494 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3495
3496 2020-10-09 Tom Tromey <tromey@adacore.com>
3497
3498 * ada-lang.h (ada_encode): Return std::string.
3499 * ada-lang.c (ada_encode_1): Return std::string.
3500 (ada_encode): Likewise.
3501 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3502 Update.
3503 * ada-exp.y (block_lookup, write_var_or_type): Update.
3504
3505 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3506
3507 PR exp/26714
3508 * printcmd.c (print_formatted): Handle void results as
3509 unformatted prints.
3510
3511 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * arch/aarch32.c (aarch32_create_target_description): Release the
3514 target_desc_up as late as possible.
3515 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3516 * arch/amd64.c (amd64_create_target_description): Likewise.
3517 * arch/arc.c (arc_create_target_description): Return a
3518 target_desc_up, don't release it.
3519 * arch/arc.h (arc_create_target_description): Update declaration.
3520 (arc_lookup_target_description): Move target_desc_up into the
3521 cache, and return a borrowed pointer.
3522 * arch/arm.c (arm_create_target_description): Release the
3523 target_desc_up as late as possible.
3524 * arch/i386.c (i386_create_target_description): Likewise.
3525 * arch/riscv.h (riscv_create_target_description): Update
3526 declaration to match definition.
3527 * arch/tic6x.c (tic6x_create_target_description): Release the
3528 target_desc_up as late as possible.
3529
3530 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3531
3532 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3533 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3534
3535 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3536
3537 * source.c (directory_command): Notify observers that "directories"
3538 parameter has changed.
3539
3540 2020-10-08 Tom Tromey <tom@tromey.com>
3541
3542 * cli/cli-cmds.c (print_disassembly): Style function name and
3543 addresses. Add _() wrappers.
3544
3545 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3546
3547 * NEWS: Mention ARC support in GDBserver.
3548
3549 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3550
3551 * arch/aarch32.c (aarch32_create_target_description): Release
3552 unique_ptr returned from allocate_target_description.
3553 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3554 * arch/amd64.c (amd64_create_target_description): Likewise.
3555 * arch/arc.c (arc_create_target_description): Likewise.
3556 * arch/arm.c (arm_create_target_description): Likewise.
3557 * arch/i386.c (i386_create_target_description): Likewise.
3558 * arch/riscv.c (riscv_create_target_description): Update return
3559 type. Handle allocate_target_description returning a unique_ptr.
3560 (riscv_lookup_target_description): Update to handle unique_ptr.
3561 * arch/tic6x.c (tic6x_create_target_description): Release
3562 unique_ptr returned from allocate_target_description.
3563 * features/microblaze-with-stack-protect.c: Regenerate.
3564 * features/microblaze.c: Regenerate.
3565 * features/mips-dsp-linux.c: Regenerate.
3566 * features/mips-linux.c: Regenerate.
3567 * features/mips64-dsp-linux.c: Regenerate.
3568 * features/mips64-linux.c: Regenerate.
3569 * features/nds32.c: Regenerate.
3570 * features/nios2.c: Regenerate.
3571 * features/or1k.c: Regenerate.
3572 * features/rs6000/powerpc-32.c: Regenerate.
3573 * features/rs6000/powerpc-32l.c: Regenerate.
3574 * features/rs6000/powerpc-403.c: Regenerate.
3575 * features/rs6000/powerpc-403gc.c: Regenerate.
3576 * features/rs6000/powerpc-405.c: Regenerate.
3577 * features/rs6000/powerpc-505.c: Regenerate.
3578 * features/rs6000/powerpc-601.c: Regenerate.
3579 * features/rs6000/powerpc-602.c: Regenerate.
3580 * features/rs6000/powerpc-603.c: Regenerate.
3581 * features/rs6000/powerpc-604.c: Regenerate.
3582 * features/rs6000/powerpc-64.c: Regenerate.
3583 * features/rs6000/powerpc-64l.c: Regenerate.
3584 * features/rs6000/powerpc-7400.c: Regenerate.
3585 * features/rs6000/powerpc-750.c: Regenerate.
3586 * features/rs6000/powerpc-860.c: Regenerate.
3587 * features/rs6000/powerpc-altivec32.c: Regenerate.
3588 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3589 * features/rs6000/powerpc-altivec64.c: Regenerate.
3590 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3591 * features/rs6000/powerpc-e500.c: Regenerate.
3592 * features/rs6000/powerpc-e500l.c: Regenerate.
3593 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3594 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3595 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3596 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3597 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3598 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3599 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3600 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3601 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3602 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3603 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3604 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3605 * features/rs6000/powerpc-vsx32.c: Regenerate.
3606 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3607 * features/rs6000/powerpc-vsx64.c: Regenerate.
3608 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3609 * features/rs6000/rs6000.c: Regenerate.
3610 * features/rx.c: Regenerate.
3611 * features/s390-gs-linux64.c: Regenerate.
3612 * features/s390-linux32.c: Regenerate.
3613 * features/s390-linux32v1.c: Regenerate.
3614 * features/s390-linux32v2.c: Regenerate.
3615 * features/s390-linux64.c: Regenerate.
3616 * features/s390-linux64v1.c: Regenerate.
3617 * features/s390-linux64v2.c: Regenerate.
3618 * features/s390-te-linux64.c: Regenerate.
3619 * features/s390-tevx-linux64.c: Regenerate.
3620 * features/s390-vx-linux64.c: Regenerate.
3621 * features/s390x-gs-linux64.c: Regenerate.
3622 * features/s390x-linux64.c: Regenerate.
3623 * features/s390x-linux64v1.c: Regenerate.
3624 * features/s390x-linux64v2.c: Regenerate.
3625 * features/s390x-te-linux64.c: Regenerate.
3626 * features/s390x-tevx-linux64.c: Regenerate.
3627 * features/s390x-vx-linux64.c: Regenerate.
3628 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3629 from allocate_target_description.
3630 * target-descriptions.c (allocate_target_description): Update
3631 return type.
3632 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3633 allocate_target_description.
3634
3635 2020-10-07 Tom Tromey <tromey@adacore.com>
3636
3637 * unittests/search-memory-selftests.c: New file.
3638 * Makefile.in (SELFTESTS_SRCS): Add
3639 unittests/search-memory-selftests.c.
3640
3641 2020-10-07 Tom Tromey <tromey@adacore.com>
3642
3643 PR gdb/16930:
3644 * findcmd.c (_initialize_mem_search): Mention that the range is
3645 inclusive.
3646
3647 2020-10-07 Tom Tromey <tromey@adacore.com>
3648
3649 * target.h (simple_search_memory): Don't declare.
3650 * target.c (simple_search_memory): Move to gdbsupport.
3651 (default_search_memory): Update.
3652 * remote.c (remote_target::search_memory): Update.
3653
3654 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * Makefile.in (COMPILE): Add CXXFLAGS.
3657 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3658 (check-headers): Add CXXFLAGS.
3659
3660 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3661
3662 * arc-linux-tdep.h: New file.
3663 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3664 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3665 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3666 arc_linux_gregset, arc_linux_v2_regset,
3667 arc_linux_iterate_over_regset_sections,
3668 arc_linux_core_read_description): Implement.
3669 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3670 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3671 (arc_gdbarch_features_create): Add.
3672 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3673
3674 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3675
3676 * arch/arc.h: Rename "arc_gdbarch_features" to
3677 "arc_arch_features".
3678 * arc-tdep.h: Likewise.
3679 * arc-tdep.c: Likewise.
3680
3681 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3682
3683 * infcmd.c (attach_command): Remove the redundant call to
3684 `clear_proceed_status`.
3685
3686 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3687
3688 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3689
3690 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3691
3692 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3693 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3694 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3695
3696 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3697
3698 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3699 (_initialize_break_catch_sig): Don't allocate array.
3700
3701 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * symtab.c (find_pc_line): Return unmapped addresses when the
3704 requested address is also unmapped.
3705
3706 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3709 tui/tui-out.h.
3710
3711 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3714 type::is_vector instead of TYPE_VECTOR.
3715
3716 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3717
3718 * auto-load.c (auto_load_objfile_script_1): Don't use
3719 debugfile_holder as temporary variable when stripping drive
3720 letter.
3721
3722 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3723
3724 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3725 Add TYPE_CODE_COMPLEX.
3726 (amd64_windows_return_value): Fix types returned via XMM0.
3727
3728 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3729
3730 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3731 AArch64/ARM maintainers.
3732
3733 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3734
3735 * NEWS: Mention set/show debug event-loop.
3736
3737 2020-10-02 Tom Tromey <tromey@adacore.com>
3738
3739 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3740 REG_EXTENDED.
3741
3742 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3743
3744 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3745 * procfs.c (procfs_inferior_created): Remove.
3746 (_initialize_procfs): Don't register procfs_inferior_created.
3747
3748 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * async-event.c (invoke_async_signal_handlers): Add debug
3751 print.
3752 (check_async_event_handlers): Likewise.
3753 * event-top.c (show_debug_event_loop): New function.
3754 (_initialize_event_top): Register "set debug event-loop"
3755 setting.
3756
3757 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3760 * debug.h: Remove.
3761 * infrun.c: Include gdbsupport/common-debug.h.
3762 * linux-nat.c: Likewise.
3763
3764 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3765
3766 * async-event.h (create_async_signal_handler): Add name
3767 parameter.
3768 (create_async_event_handler): Likewise.
3769 * async-event.c (struct async_signal_handler) <name>: New field.
3770 (struct async_event_handler) <name>: New field.
3771 (create_async_signal_handler): Assign name.
3772 (create_async_event_handler): Assign name.
3773 * event-top.c (async_init_signals): Pass name when creating
3774 handler.
3775 * infrun.c (_initialize_infrun): Likewise.
3776 * record-btrace.c (record_btrace_push_target): Likewise.
3777 * record-full.c (record_full_open): Likewise.
3778 * remote-notif.c (remote_notif_state_allocate): Likewise.
3779 * remote.c (remote_target::open_1): Likewise.
3780 * tui/tui-win.c (tui_initialize_win): Likewise.
3781
3782 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3783
3784 * async-event.c (initialize_async_signal_handlers): Pass name to
3785 add_file_handler
3786 * event-top.c (ui_register_input_event_handler): Likewise.
3787 * linux-nat.c (linux_nat_target::async): Likewise.
3788 * run-on-main-thread.c (_initialize_run_on_main_thread):
3789 Likewise
3790 * ser-base.c (reschedule): Likewise.
3791 (ser_base_async): Likewise.
3792 * tui/tui-io.c: Likewise.
3793 * top.h (struct ui) <num>: New field.
3794 * top.c (highest_ui_num): New variable.
3795 (ui::ui): Initialize num.
3796
3797 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3798
3799 * observable.h <inferior_created>: Remove parameters. Update all
3800 listeners.
3801 * inferior.h (post_create_inferior): Remove target parameter.
3802 Update all callers.
3803
3804 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3805
3806 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3807 and DW_MACRO_undef_strx.
3808 (dwarf_decode_macros): Likewise
3809 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3810 which is the value of DW_AT_str_offsets_base.
3811 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3812 str_offsets_base.
3813
3814 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3815
3816 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3817
3818 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3819
3820 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3821 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3822
3823 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3824
3825 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3826
3827 2020-09-30 Tom de Vries <tdevries@suse.de>
3828
3829 PR symtab/26683
3830 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3831
3832 2020-09-30 Tom Tromey <tromey@adacore.com>
3833
3834 * dwarf2/read.c (handle_variant): Use constant_value.
3835
3836 2020-09-29 Tom Tromey <tom@tromey.com>
3837
3838 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3839 (read_file_scope, dwarf2_get_pc_bounds)
3840 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3841 (read_structure_type, handle_struct_member_die)
3842 (read_enumeration_type, read_array_type, read_set_type)
3843 (read_tag_pointer_type, read_tag_reference_type)
3844 (read_subroutine_type, read_base_type, read_subrange_type)
3845 (read_full_die_1, partial_die_info::read)
3846 (partial_die_info::read, by, new_symbol)
3847 (dwarf2_const_value_data, dwarf2_const_value_attr)
3848 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3849 (prepare_one_comp_unit): Update.
3850 * dwarf2/attribute.h (DW_UNSND): Remove.
3851
3852 2020-09-29 Tom Tromey <tom@tromey.com>
3853
3854 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3855 (read_subroutine_type, partial_die_info::read)
3856 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3857 (dwarf2_add_member_fn): Update.
3858 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3859 * dwarf2/attribute.c (attribute::as_boolean): New method.
3860
3861 2020-09-29 Tom Tromey <tom@tromey.com>
3862
3863 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3864 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3865 method.
3866 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3867
3868 2020-09-29 Tom Tromey <tom@tromey.com>
3869
3870 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3871 the attribute's form.
3872
3873 2020-09-29 Tom Tromey <tom@tromey.com>
3874
3875 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3876 (dwarf2_add_member_fn): Update.
3877 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3878 * dwarf2/attribute.c (attribute::defaulted): New method, from
3879 is_valid_DW_AT_defaulted.
3880
3881 2020-09-29 Tom Tromey <tom@tromey.com>
3882
3883 * dwarf2/read.c (dw2_get_file_names_reader)
3884 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3885 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3886 (dwarf2_symbol_mark_computed): Use as_unsigned.
3887 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3888 method.
3889 <form_is_section_offset>: Update comment.
3890
3891 2020-09-29 Tom Tromey <tom@tromey.com>
3892
3893 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3894 dwarf2_default_access_attribute. Look up attribute.
3895 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3896 Update.
3897
3898 2020-09-29 Tom Tromey <tom@tromey.com>
3899
3900 * dwarf2/read.c (skip_one_die): Update.
3901 (read_full_die_1): Change how reprocessing is done.
3902 (partial_die_info::read): Update.
3903 (read_attribute_value): Remove need_reprocess parameter.
3904 (read_attribute): Likewise.
3905 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3906 New method.
3907
3908 2020-09-29 Tom Tromey <tom@tromey.com>
3909
3910 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3911 (dwarf2_const_value_attr, dump_die_shallow)
3912 (dwarf2_fetch_constant_bytes): Update.
3913 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3914 comment.
3915 <set_address>: New method.
3916 (DW_ADDR): Remove.
3917 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3918 (attribute::as_string, attribute::as_address): Add assert.
3919
3920 2020-09-29 Tom Tromey <tom@tromey.com>
3921
3922 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3923 (read_attribute_reprocess, read_attribute_value): Update.
3924 (read_attribute): Clear requires_reprocessing.
3925 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3926 form_requires_reprocessing>: New methods.
3927 <string_init>: Clear requires_reprocessing.
3928 <set_unsigned_reprocess>: New method.
3929 <name>: Shrink by one bit.
3930 <requires_reprocessing>: New member.
3931 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3932 method.
3933
3934 2020-09-29 Tom Tromey <tom@tromey.com>
3935
3936 * dwarf2/read.c (read_attribute_value): Update.
3937 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3938 set_unsigned>: New methods.
3939 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3940
3941 2020-09-29 Tom Tromey <tom@tromey.com>
3942
3943 * dwarf2/read.c (get_alignment, read_array_order)
3944 (read_attribute_value, dwarf2_const_value_attr)
3945 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3946 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3947 New methods.
3948 (DW_SND): Remove.
3949
3950 2020-09-29 Tom Tromey <tom@tromey.com>
3951
3952 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3953 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3954 Update.
3955 * dwarf2/attribute.h (struct attribute) <as_signature,
3956 set_signature>: New methods.
3957 (DW_SIGNATURE): Remove.
3958
3959 2020-09-29 Tom Tromey <tom@tromey.com>
3960
3961 * dwarf2/read.c (read_call_site_scope)
3962 (handle_data_member_location, dwarf2_add_member_fn)
3963 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3964 (partial_die_info::read, read_attribute_value)
3965 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3966 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3967 (dwarf2_symbol_mark_computed): Update.
3968 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3969 methods.
3970 (DW_BLOCK): Remove.
3971 * dwarf2/attribute.c (attribute::form_is_block): Add
3972 DW_FORM_data16.
3973
3974 2020-09-29 Tom Tromey <tom@tromey.com>
3975
3976 * dwarf2/read.c (read_cutu_die_from_dwo)
3977 (read_attribute_reprocess, read_attribute_value, read_attribute)
3978 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3979 (dwarf2_fetch_constant_bytes): Update.
3980 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3981 <set_string_noncanonical, set_string_canonical>: New methods.
3982 <string_is_canonical>: Update comment.
3983 <canonical_string_p>: Add assert.
3984 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3985 * dwarf2/attribute.c (attribute::form_is_string): New method.
3986 (attribute::string): Use it.
3987
3988 2020-09-29 Tom Tromey <tom@tromey.com>
3989
3990 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3991 (dump_die_shallow): Use canonical_string_p.
3992 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3993 method.
3994
3995 2020-09-29 Tom Tromey <tom@tromey.com>
3996
3997 * dwarf2/read.c (partial_die_info::read)
3998 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3999 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4000 attribute::as_string.
4001
4002 2020-09-29 Tom Tromey <tom@tromey.com>
4003
4004 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4005 DW_ADDR.
4006 (attribute::string): Don't use DW_STRING.
4007 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4008 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4009
4010 2020-09-29 Tom Tromey <tom@tromey.com>
4011
4012 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4013 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4014 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4015 * dwarf2/attribute.h (struct attribute): Rename methods.
4016 * dwarf2/attribute.c (attribute::as_address): Rename from
4017 value_as_address.
4018 (attribute::as_string): Rename from value_as_string.
4019
4020 2020-09-29 Tom Tromey <tom@tromey.com>
4021
4022 * dwarf2/read.c (partial_die_info::read) <case
4023 DW_AT_linkage_name>: Use value_as_string.
4024 (dwarf2_string_attr): Use value_as_string.
4025 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4026 method.
4027 * dwarf2/attribute.c (attribute::value_as_string): New method.
4028
4029 2020-09-29 Pedro Alves <pedro@palves.net>
4030
4031 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4032 defined before using '#pragma GCC diagnostic' instead of checking
4033 __clang__.
4034
4035 2020-09-28 Tom Tromey <tom@tromey.com>
4036
4037 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4038 (handle_signal_stop): Update.
4039 * procfs.c (procfs_target::insert_watchpoint): Update.
4040 * target.h (target_have_steppable_watchpoint): Now a function.
4041
4042 2020-09-28 Tom Tromey <tom@tromey.com>
4043
4044 * infrun.c (set_schedlock_func): Update.
4045 * target.h (target_can_lock_scheduler): Now a function.
4046
4047 2020-09-28 Tom Tromey <tom@tromey.com>
4048
4049 * inferior.h (class inferior) <has_execution>: Update.
4050 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4051 * valops.c (find_function_in_inferior)
4052 (value_allocate_space_in_inferior): Update.
4053 * top.c (kill_or_detach): Update.
4054 * target.c (target_preopen, set_target_permissions): Update.
4055 (target_has_execution_current): Remove.
4056 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4057 Update.
4058 * solib.c (update_solib_list, reload_shared_libraries): Update.
4059 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4060 * solib-dsbt.c (enable_break): Update.
4061 * score-tdep.c (score7_fetch_inst): Update.
4062 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4063 Update.
4064 * remote.c (remote_target::start_remote)
4065 (remote_target::remote_check_symbols, remote_target::open_1)
4066 (remote_target::remote_detach_1, remote_target::verify_memory)
4067 (remote_target::xfer_partial, remote_target::read_description)
4068 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4069 * record-full.c (record_full_open_1): Update.
4070 * record-btrace.c (record_btrace_target_open): Update.
4071 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4072 (value_nsstring): Update.
4073 * linux-thread-db.c (add_thread_db_info)
4074 (thread_db_find_new_threads_silently, check_thread_db_callback)
4075 (try_thread_db_load_1, record_thread): Update.
4076 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4077 Update.
4078 * linux-fork.c (checkpoint_command): Update.
4079 * infrun.c (set_non_stop, set_observer_mode)
4080 (check_multi_target_resumption, for_each_just_stopped_thread)
4081 (maybe_remove_breakpoints, normal_stop)
4082 (class infcall_suspend_state): Update.
4083 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4084 (info_program_command, attach_command): Update.
4085 * infcall.c (call_function_by_hand_dummy): Update.
4086 * inf-loop.c (inferior_event_handler): Update.
4087 * gcore.c (gcore_command, derive_heap_segment): Update.
4088 * exec.c (exec_file_command): Update.
4089 * eval.c (evaluate_subexp): Update.
4090 * compile/compile.c (compile_to_object): Update.
4091 * cli/cli-dump.c (restore_command): Update.
4092 * breakpoint.c (update_watchpoint)
4093 (update_inserted_breakpoint_locations)
4094 (insert_breakpoint_locations, get_bpstat_thread): Update.
4095 * target.h (target_has_execution): Remove macro.
4096 (target_has_execution_current): Don't declare.
4097 (target_has_execution): Rename from target_has_execution_1. Add
4098 argument default.
4099
4100 2020-09-28 Tom Tromey <tom@tromey.com>
4101
4102 * mi/mi-main.c (exec_reverse_continue)
4103 (mi_cmd_list_target_features): Update.
4104 * infrun.c (set_exec_direction_func): Update.
4105 * target.c (default_execution_direction): Update.
4106 * reverse.c (exec_reverse_once): Update.
4107 * target.h (target_can_execute_reverse): Now a function.
4108
4109 2020-09-28 Tom Tromey <tom@tromey.com>
4110
4111 * tui/tui-regs.c (tui_get_register)
4112 (tui_data_window::show_registers): Update.
4113 * thread.c (scoped_restore_current_thread::restore)
4114 (scoped_restore_current_thread::scoped_restore_current_thread):
4115 Update.
4116 * regcache-dump.c (regcache_print): Update.
4117 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4118 Update.
4119 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4120 * mep-tdep.c (current_me_module, current_options): Update.
4121 * linux-thread-db.c (thread_db_load): Update.
4122 * infcmd.c (registers_info, info_vector_command)
4123 (info_float_command): Update.
4124 * ia64-tdep.c (ia64_frame_prev_register)
4125 (ia64_sigtramp_frame_prev_register): Update.
4126 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4127 * gcore.c (derive_stack_segment): Update.
4128 * frame.c (get_current_frame, has_stack_frames): Update.
4129 * findvar.c (language_defn::read_var_value): Update.
4130 * arm-tdep.c (arm_pc_is_thumb): Update.
4131 * target.c (target_has_registers): Rename from
4132 target_has_registers_1.
4133 * target.h (target_has_registers): Remove macro.
4134 (target_has_registers): Rename from target_has_registers_1.
4135
4136 2020-09-28 Tom Tromey <tom@tromey.com>
4137
4138 * windows-tdep.c (tlb_make_value): Update.
4139 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4140 * thread.c (scoped_restore_current_thread::restore)
4141 (scoped_restore_current_thread::scoped_restore_current_thread)
4142 (thread_command): Update.
4143 * stack.c (backtrace_command_1, frame_apply_level_command)
4144 (frame_apply_all_command, frame_apply_command): Update.
4145 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4146 Update.
4147 * gcore.c (derive_stack_segment): Update.
4148 * frame.c (get_current_frame, has_stack_frames): Update.
4149 * auxv.c (info_auxv_command): Update.
4150 * ada-tasks.c (ada_build_task_list): Update.
4151 * target.c (target_has_stack): Rename from target_has_stack_1.
4152 * target.h (target_has_stack): Remove macro.
4153 (target_has_stack): Rename from target_has_stack_1.
4154
4155 2020-09-28 Tom Tromey <tom@tromey.com>
4156
4157 * target.c (target_has_memory): Rename from target_has_memory_1.
4158 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4159 * thread.c (scoped_restore_current_thread::restore)
4160 (scoped_restore_current_thread::scoped_restore_current_thread):
4161 Update.
4162 * frame.c (get_current_frame, has_stack_frames): Update.
4163 * target.h (target_has_memory): Remove macro.
4164 (target_has_memory): Rename from target_has_memory_1.
4165
4166 2020-09-28 Tom Tromey <tom@tromey.com>
4167
4168 * target.c (target_has_all_memory_1): Remove.
4169 * target.h (target_has_all_memory): Remove define.
4170 (target_has_all_memory_1): Don't declare.
4171
4172 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4173
4174 * ser-base.c: Adjust comments formatting.
4175
4176 2020-09-27 Tom Tromey <tom@tromey.com>
4177
4178 PR tui/25342:
4179 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4180
4181 2020-09-27 Tom Tromey <tom@tromey.com>
4182
4183 PR tui/25342:
4184 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4185
4186 2020-09-27 Tom Tromey <tom@tromey.com>
4187
4188 * unittests/tui-selftests.c: Update.
4189 * tui/tui-winsource.h (struct tui_source_window_base)
4190 <extra_margin, show_line_number, refresh_pad>: New methods.
4191 <m_max_length, m_pad>: New members.
4192 (tui_copy_source_line): Update.
4193 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4194 first_col, line_width, ndigits parameters. Add length.
4195 (tui_source_window_base::show_source_line): Write to pad. Line
4196 number now 0-based.
4197 (tui_source_window_base::refresh_pad): New method.
4198 (tui_source_window_base::show_source_content): Write to pad. Call
4199 refresh_pad.
4200 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4201 not refill.
4202 (tui_source_window_base::update_exec_info): Call
4203 show_line_number.
4204 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4205 method.
4206 <m_digits>: New member.
4207 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4208 and m_max_length.
4209 (tui_source_window::show_line_number): New method.
4210 * tui/tui-io.h (tui_puts): Fix comment.
4211 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4212 m_max_length.
4213
4214 2020-09-27 Tom Tromey <tom@tromey.com>
4215
4216 * tui/tui-winsource.c
4217 (tui_source_window_base::set_is_exec_point_at): Don't call
4218 show_source_line.
4219
4220 2020-09-27 Tom Tromey <tom@tromey.com>
4221
4222 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4223 method.
4224 <erase>: Update.
4225 <cursor_x, cursor_y>: Remove.
4226 <m_inner_window>: New member.
4227 (tui_py_window::rerender): Create inner window.
4228 (tui_py_window::output): Write to inner window.
4229
4230 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4231
4232 PR python/26586
4233 * cli/cli-script.c (execute_control_commands): don't set
4234 instream to nullptr here as this breaks the from_tty argument
4235 to gdb.execute in Python.
4236 (execute_user_command): set instream to nullptr here instead.
4237
4238 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4239
4240 * infrun.h (infrun_debug_printf): Fix formatting.
4241 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4242
4243 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4244
4245 * compile/compile-object-load.h (struct munmap_list): Add
4246 explicitly-defined move constructor.
4247
4248 2020-09-24 Tom Tromey <tromey@adacore.com>
4249
4250 PR tui/26638:
4251 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4252 method.
4253 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4254 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4255 (tui_prev_win): Rewrite.
4256
4257 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4258
4259 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4260 in WOW64 processes as SIGINT.
4261 * nat/windows-nat.h: Make wow64_process a shared variable.
4262 * windows-nat.c: Remove static wow64_process variable.
4263
4264 2020-09-23 Tom Tromey <tom@tromey.com>
4265
4266 PR symtab/25470:
4267 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4268 offset and bit size.
4269 * printcmd.c (print_scalar_formatted): Handle zero-length
4270 integer.
4271 (print_scalar_formatted): Use bit_size_differs_p.
4272 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4273 constant.
4274 (union type_specific): <int_stuff>: New member.
4275 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4276 methods.
4277 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4278 TYPE_SPECIFIC_FIELD.
4279 (recursive_dump_type, copy_type_recursive): Update.
4280 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4281 DW_AT_data_bit_offset.
4282
4283 2020-09-23 Tom Tromey <tom@tromey.com>
4284
4285 * utils.h (class gdb_argv): Add move operators.
4286 <append>: New methods.
4287 * compile/compile.c (build_argc_argv): Remove.
4288 (compile_args_argc): Remove.
4289 (compile_args_argv): Change type.
4290 (set_compile_args): Simplify.
4291 (append_args): Remove.
4292 (filter_args): Remove argcp parameter.
4293 (get_args): Return gdb_argv. Simplify.
4294 (compile_to_object): Update.
4295
4296 2020-09-23 Tom Tromey <tom@tromey.com>
4297
4298 * compile/compile-object-run.c (do_module_cleanup)
4299 <~do_module_cleanup> :Remove.
4300 (do_module_cleanup): Update.
4301 * compile/compile-object-load.h (struct munmap_list): Add move
4302 assignment operator.
4303 <source_file>: Now a std::string.
4304 <munmap_list>: Rename. No longer a pointer.
4305 * compile/compile-object-load.c (struct setup_sections_data): Add
4306 constructor.
4307 <setup_one_section>: Declare.
4308 <munmap_list>: Move earlier.
4309 <m_bfd>: New member.
4310 <m_last_size, m_last_section_first, m_last_prot,
4311 m_last_max_alignment>: Rename, add initializers where needed.
4312 (setup_sections_data::setup_one_section): Rename from
4313 setup_sections. Update.
4314 (compile_object_load): Update. Don't use bfd_map_over_sections.
4315
4316 2020-09-23 Tom Tromey <tom@tromey.com>
4317
4318 * compile/compile-object-run.c (struct do_module_cleanup): Add
4319 parameters to constructor. Update destructor.
4320 <source_file, scope, scope_data, out_value_type, out_value_addr,
4321 munmap_list_head, objfile_name_string>: Remove.
4322 <module>: New member.
4323 (do_module_cleanup): Update.
4324 (compile_object_run): Update.
4325
4326 2020-09-23 Tom Tromey <tom@tromey.com>
4327
4328 * compile/compile.c (eval_compile_command): Update.
4329 * compile/compile-object-run.h (compile_object_run): Take a
4330 compile_module_up.
4331 * compile/compile-object-run.c (compile_object_run): Take a
4332 compile_module_up.
4333 * compile/compile-object-load.h (struct compile_module): Add
4334 constructor, destructor.
4335 (compile_module_up): New typedef.
4336 (compile_object_load): Return compile_object_up.
4337 * compile/compile-object-load.c (compile_object_load): Return
4338 compile_module_up.
4339
4340 2020-09-23 Tom Tromey <tom@tromey.com>
4341
4342 * compile/compile-object-run.c (struct do_module_cleanup): Add
4343 constructor, destructor.
4344 <objfile_name_string>: Don't use struct hack.
4345 (do_module_cleanup): Use delete.
4346 (compile_object_run): Use new.
4347
4348 2020-09-23 Tom Tromey <tom@tromey.com>
4349
4350 * compile/compile-cplus-types.c
4351 (compile_cplus_convert_struct_or_union): Use std::vector.
4352 (compile_cplus_convert_func): Likewise.
4353 * compile/compile-c-types.c (convert_func): Use std::vector.
4354
4355 2020-09-21 Tom Tromey <tromey@adacore.com>
4356
4357 * sparc-tdep.c (sparc32_skip_prologue): Use
4358 skip_prologue_using_sal.
4359
4360 2020-09-19 Tom Tromey <tom@tromey.com>
4361
4362 * symfile.c (add_section_size_callback): Remove.
4363 (load_one_section): Rename from load_section_callback. Change
4364 parameters.
4365 (generic_load): Use foreach.
4366
4367 2020-09-19 Tom Tromey <tom@tromey.com>
4368
4369 * exec.c (add_to_section_table): Remove.
4370 (build_section_table): Use foreach.
4371
4372 2020-09-19 Tom Tromey <tom@tromey.com>
4373
4374 * elfread.c (elf_locate_sections): Change parameters.
4375 (elf_symfile_read): Use foreach.
4376
4377 2020-09-19 Tom Tromey <tom@tromey.com>
4378
4379 * cli/cli-dump.c (struct callback_data): Remove.
4380 (restore_one_section): Rename from restore_section_callback.
4381 Change parameters.
4382 (restore_binary_file): Change parameters.
4383 (restore_command): Use foreach.
4384
4385 2020-09-19 Tom Tromey <tom@tromey.com>
4386
4387 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4388 (gcore_copy_callback): Likewise.
4389 (gcore_memory_sections): Use foreach.
4390
4391 2020-09-19 Tom Tromey <tom@tromey.com>
4392
4393 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4394 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4395 parameters.
4396 (generic_elf_osabi_sniffer): Use foreach.
4397 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4398 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4399
4400 2020-09-19 Tom Tromey <tom@tromey.com>
4401
4402 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4403 (dwarf2_get_dwz_file): Use foreach.
4404 (dwarf2_locate_dwo_sections): Change parameters.
4405 (open_and_init_dwo_file): Use foreach.
4406 (dwarf2_locate_common_dwp_sections): Change parameters.
4407 (open_and_init_dwp_file): Use foreach.
4408
4409 2020-09-19 Tom Tromey <tom@tromey.com>
4410
4411 * symfile.h: (find_lowest_section): Don't declare.
4412 * symfile.c (find_lowest_section): Now static. Change
4413 parameters.
4414 (struct place_section_arg): Remove.
4415 (place_section): Change parameters.
4416 (addr_info_make_relative): Use foreach.
4417 (symfile_dummy_outputs): Remove.
4418 (default_symfile_relocate): Use foreach.
4419
4420 2020-09-19 Tom Tromey <tom@tromey.com>
4421
4422 * objfiles.c (add_to_objfile_sections): Rename from
4423 add_to_objfile_sections_full.
4424 (add_to_objfile_sections): Remove.
4425 (build_objfile_section_table): Use foreach.
4426
4427 2020-09-19 Tom Tromey <tom@tromey.com>
4428
4429 * stap-probe.c (get_stap_base_address_1): Remove.
4430 (get_stap_base_address): Use foreach.
4431
4432 2020-09-19 Tom Tromey <tom@tromey.com>
4433
4434 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4435 parameters.
4436 (gdb_bfd_close_or_warn): Use foreach.
4437
4438 2020-09-19 Tom Tromey <tom@tromey.com>
4439
4440 * corelow.c (add_to_thread_list): Change parameters.
4441 (core_target_open): Use foreach.
4442
4443 2020-09-19 Tom Tromey <tom@tromey.com>
4444
4445 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4446 existing function.
4447
4448 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4449
4450 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4451 for arrays.
4452
4453 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4454
4455 * eval.c: Remove 'f-lang.h' include.
4456 (value_f90_subarray): Moved to f-lang.c.
4457 (eval_call): Renamed to...
4458 (evaluate_subexp_do_call): ...this, is no longer static, header
4459 comment moved into header file.
4460 (evaluate_funcall): Update call to eval_call.
4461 (skip_undetermined_arglist): Moved to f-lang.c.
4462 (fortran_value_subarray): Likewise.
4463 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4464 moved to evaluate_subexp_f.
4465 (calc_f77_array_dims): Moved to f-lang.c
4466 * expprint.c (print_subexp_funcall): New function.
4467 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4468 moved to print_subexp_f, OP_FUNCALL uses new function.
4469 (dump_subexp_body_funcall): New function.
4470 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4471 moved to dump_subexp_f, OP_FUNCALL uses new function.
4472 * expression.h (evaluate_subexp_do_call): Declare.
4473 * f-lang.c (value_f90_subarray): Moved from eval.c.
4474 (skip_undetermined_arglist): Likewise.
4475 (calc_f77_array_dims): Likewise.
4476 (fortran_value_subarray): Likewise.
4477 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4478 (operator_length_f): Likewise.
4479 (print_subexp_f): Likewise.
4480 (dump_subexp_body_f): Likewise.
4481 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4482 declaration of this operation to here.
4483 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4484 support moved to operator_length_f.
4485 * parser-defs.h (dump_subexp_body_funcall): Declare.
4486 (print_subexp_funcall): Declare.
4487 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4488 fortran-operator.def.
4489
4490 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * eval.c (fortran_value_subarray): New function, content is taken
4493 from...
4494 (evaluate_subexp_standard): ...here, in two places. Now arrays
4495 and strings both call the new function.
4496 (calc_f77_array_dims): Add header comment, handle strings.
4497
4498 2020-09-18 Victor Collod <vcollod@nvidia.com>
4499
4500 PR gdb/26635
4501 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4502 (i386_analyze_prologue): Call i386_skip_endbr.
4503
4504 2020-09-18 Tom Tromey <tromey@adacore.com>
4505
4506 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4507 (windows_nat_target::wait): Update.
4508 * target/wait.h (enum target_wait_flag): New. Use
4509 DEF_ENUM_FLAGS_TYPE.
4510 * target/target.h (target_wait): Change type of options.
4511 * target.h (target_options_to_string, default_target_wait):
4512 Update.
4513 (struct target_ops) <wait>: Change type of options.
4514 * target.c (target_wait, default_target_wait, do_option): Change
4515 type of "options".
4516 (target_options_to_string): Likewise.
4517 * target-delegates.c: Rebuild.
4518 * target-debug.h (target_debug_print_target_wait_flags): Rename
4519 from target_debug_print_options.
4520 * sol-thread.c (class sol_thread_target) <wait>: Update.
4521 (sol_thread_target::wait): Update.
4522 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4523 (rs6000_nat_target::wait): Update.
4524 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4525 Update.
4526 (remote_target::wait_ns, remote_target::wait_as): Change type of
4527 "options".
4528 (remote_target::wait): Update.
4529 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4530 (gdbsim_target::wait): Update.
4531 * record-full.c (class record_full_base_target) <wait>: Update.
4532 (record_full_wait_1): Change type of "options".
4533 (record_full_base_target::wait): Update.
4534 * record-btrace.c (class record_btrace_target) <wait>: Update.
4535 (record_btrace_target::wait): Update.
4536 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4537 Update.
4538 (ravenscar_thread_target::wait): Update.
4539 * procfs.c (class procfs_target) <wait>: Update.
4540 (procfs_target::wait): Update.
4541 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4542 * obsd-nat.c (obsd_nat_target::wait): Update.
4543 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4544 (nto_procfs_target::wait): Update.
4545 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4546 * nbsd-nat.c (nbsd_wait): Change type of "options".
4547 (nbsd_nat_target::wait): Update.
4548 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4549 (thread_db_target::wait): Update.
4550 * linux-nat.h (class linux_nat_target) <wait>: Update.
4551 * linux-nat.c (linux_nat_target::wait): Update.
4552 (linux_nat_wait_1): Update.
4553 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4554 "options".
4555 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4556 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4557 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4558 (go32_nat_target::wait): Update.
4559 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4560 * gnu-nat.c (gnu_nat_target::wait): Update.
4561 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4562 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4563 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4564 * darwin-nat.c (darwin_nat_target::wait): Update.
4565 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4566 (bsd_uthread_target::wait): Update.
4567 * aix-thread.c (class aix_thread_target) <wait>: Update.
4568 (aix_thread_target::wait): Update.
4569
4570 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * compile/compile-object-run.c (create_copied_type_recursive): New
4573 function.
4574 (compile_object_run): Use new function.
4575
4576 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4577
4578 * NEWS: Mention x86_64 Cygwin core file support.
4579
4580 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4581
4582 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4583 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4584
4585 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4586
4587 * windows-tdep.h: Add prototypes.
4588 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4589 (i386_windows_core_pid_to_str): Move and rename ...
4590 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4591 (windows_core_pid_to_str): ... and here.
4592 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4593
4594 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4595 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4596 (amd64_windows_init_abi_common): ... and register.
4597
4598 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4599
4600 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4601 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4602
4603 2020-09-18 Pedro Alves <pedro@palves.net>
4604
4605 PR gdb/26631
4606 * thread.c (thread_find_command): Switch inferior before calling
4607 target methods.
4608
4609 2020-09-17 Tom Tromey <tromey@adacore.com>
4610
4611 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4612 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4613 (tdesc_arch_data_up): New typedef.
4614 (tdesc_use_registers, tdesc_data_alloc): Update.
4615 (tdesc_data_cleanup): Don't declare.
4616 * target-descriptions.c (tdesc_data_alloc): Return a
4617 tdesc_arch_data_up.
4618 (tdesc_arch_data_deleter::operator()): Rename from
4619 tdesc_data_cleanup. Change argument type.
4620 (tdesc_use_registers): Change early_data to an rvalue reference.
4621 (tdesc_use_registers): Don't use delete.
4622 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4623 * s390-tdep.c (s390_gdbarch_init): Update.
4624 * rx-tdep.c (rx_gdbarch_init): Update.
4625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4626 * riscv-tdep.c (riscv_gdbarch_init): Update.
4627 * or1k-tdep.c (or1k_gdbarch_init): Update.
4628 * nios2-tdep.c (nios2_gdbarch_init): Update.
4629 * nds32-tdep.c (nds32_gdbarch_init): Update.
4630 * mips-tdep.c (mips_gdbarch_init): Update.
4631 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4632 * m68k-tdep.c (m68k_gdbarch_init): Update.
4633 * i386-tdep.c (i386_gdbarch_init): Update.
4634 * arm-tdep.c (arm_gdbarch_init): Update.
4635 * arc-tdep.c (arc_tdesc_init): Update.
4636 (arc_gdbarch_init): Update.
4637 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4638
4639 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4640
4641 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4642 for WOW64 processes.
4643
4644 2020-09-17 Tom Tromey <tom@tromey.com>
4645
4646 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4647
4648 2020-09-17 Tom Tromey <tom@tromey.com>
4649
4650 * value.c (preserve_values): Update.
4651 * python/py-type.c (save_objfile_types): Update.
4652 * guile/scm-type.c (save_objfile_types): Update.
4653 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4654 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4655 * compile/compile-object-run.c (compile_object_run): Update.
4656
4657 2020-09-17 Tom Tromey <tom@tromey.com>
4658
4659 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4660 Remove.
4661 <m_table>: Now htab_up.
4662 * typeprint.c (typedef_hash_table::recursively_update)
4663 (typedef_hash_table::add_template_parameters)
4664 (typedef_hash_table::typedef_hash_table): Update.
4665 (typedef_hash_table::~typedef_hash_table): Remove.
4666 (typedef_hash_table::typedef_hash_table)
4667 (typedef_hash_table::find_global_typedef)
4668 (typedef_hash_table::find_typedef): Update.
4669
4670 2020-09-17 Tom Tromey <tom@tromey.com>
4671
4672 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4673
4674 2020-09-17 Tom Tromey <tom@tromey.com>
4675
4676 * linespec.c (class decode_compound_collector)
4677 <~decode_compound_collector>: Remove.
4678 <m_unique_syms>: Now htab_up.
4679 (decode_compound_collector::operator ()): Update.
4680 (class symtab_collector) <~symtab_collector>: Remove.
4681 <m_symtab_table>: Now htab_up.
4682 (symtab_collector::operator ()): Update.
4683
4684 2020-09-17 Tom Tromey <tom@tromey.com>
4685
4686 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4687 (filename_seen_cache::clear): Update.
4688 (~filename_seen_cache): Remove.
4689 (filename_seen_cache::seen): Update.
4690 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4691 htab_up.
4692 <~filename_seen_cache>: Remove.
4693 <traverse>: Update.
4694
4695 2020-09-17 Tom Tromey <tom@tromey.com>
4696
4697 * completer.c (completion_tracker::discard_completions)
4698 (completion_tracker::~completion_tracker)
4699 (completion_tracker::maybe_add_completion)
4700 (completion_tracker::remove_completion)
4701 (completion_tracker::recompute_lowest_common_denominator)
4702 (completion_tracker::build_completion_result): Update.
4703 * completer.h (class completion_tracker) <have_completions>:
4704 Update.
4705 <m_entries_hash>: Now htab_up.
4706
4707 2020-09-17 Tom Tromey <tom@tromey.com>
4708
4709 * breakpoint.c (ambiguous_names_p): Use htab_up.
4710
4711 2020-09-17 Tom Tromey <tom@tromey.com>
4712
4713 * auto-load.c (struct auto_load_pspace_info)
4714 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4715 <loaded_script_files, loaded_script_texts>: Change type to
4716 htab_up.
4717 (~auto_load_pspace_info) Remove.
4718 (init_loaded_scripts_info, maybe_add_script_file)
4719 (maybe_add_script_text, auto_load_info_scripts): Update.
4720
4721 2020-09-17 Tom Tromey <tromey@adacore.com>
4722
4723 * c-exp.y (name_obstack): Now static.
4724
4725 2020-09-17 Chungyi Chi <demonic@csie.io>
4726
4727 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4728
4729 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4732 (add_solib_catchpoint): Likewise.
4733 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4734 to bool.
4735 (add_solib_catchpoint): Change int parameter/variable to bool.
4736 (catch_load_or_unload): Likewise.
4737 (init_catchpoint): Likewise.
4738 (create_fork_vfork_event_catchpoint): Likewise.
4739 (catch_fork_command_1): Likewise.
4740 (catch_exec_command_1): Likewise.
4741
4742 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4743
4744 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4745 Change instance_flags to m_instance_flags.
4746
4747 2020-09-16 Tom Tromey <tromey@adacore.com>
4748
4749 PR gdb/26598:
4750 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4751
4752 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4753
4754 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4755 PL_FLAG_EXEC.
4756 (fbsd_nat_target::insert_exec_catchpoint)
4757 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4758 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4759 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4760
4761 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4762
4763 * configure.ac: Remove check for kinfo_getvmmap().
4764 * configure, config.in: Regenerate.
4765 * fbsd-nat.c (fbsd_read_mapping): Remove
4766 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4767 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4768 kinfo_get_vmmap() are always present.
4769
4770 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4771
4772 * fbsd-nat.c: Always include support for
4773 TARGET_OBJECT_SIGNAL_INFO.
4774
4775 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4776
4777 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4778 sysctl and remove procfs fallback.
4779
4780 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4781
4782 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4783 * fbsd-nat.h: Likewise.
4784
4785 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4786
4787 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4788 argument.
4789
4790 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4791
4792 * ada-lang.c (ada_language_data): Delete.
4793 (ada_language): Remove references to ada_language_data.
4794 * c-lang.c (c_language_data): Delete.
4795 (c_language): Remove references to c_language_data.
4796 (cplus_language_data): Delete.
4797 (cplus_language): Remove references to cplus_language_data.
4798 (asm_language_data): Delete.
4799 (asm_language): Remove references to asm_language_data.
4800 (minimal_language_data): Delete.
4801 (minimal_language): Remove references to minimal_language_data.
4802 * d-lang.c (d_language_data): Delete.
4803 (d_language): Remove references to d_language_data.
4804 * f-lang.c (f_language_data): Delete.
4805 (f_language): Remove references to f_language_data.
4806 * go-lang.c (go_language_data): Delete.
4807 (go_language): Remove references to go_language_data.
4808 * language.c (unknown_language_data): Delete.
4809 (unknown_language): Remove references to unknown_language_data.
4810 (auto_language_data): Delete.
4811 (auto_language): Remove references to auto_language_data.
4812 * language.h (language_data): Delete struct.
4813 (language_defn): No longer inherit from language_data.
4814 * m2-lang.c (m2_language_data): Delete.
4815 (m2_language): Remove references to m2_language_data.
4816 * objc-lang.c (objc_language_data): Delete.
4817 (objc_language): Remove references to objc_language_data.
4818 * opencl-lang.c (opencl_language_data): Delete.
4819 (opencl_language): Remove references to opencl_language_data.
4820 * p-lang.c (pascal_language_data): Delete.
4821 (pascal_language): Remove references to pascal_language_data.
4822 * rust-lang.c (rust_language_data): Delete.
4823 (rust_language): Remove references to rust_language_data.
4824
4825 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4826
4827 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4828 initializer.
4829 (ada_language::opcode_print_table): New member function.
4830 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4831 (c_language::opcode_print_table): New member function.
4832 (cplus_language_data): Remove la_op_print_tab initializer.
4833 (cplus_language::opcode_print_table): New member function.
4834 (asm_language_data): Remove la_op_print_tab initializer.
4835 (asm_language::opcode_print_table): New member function.
4836 (minimal_language_data): Remove la_op_print_tab initializer.
4837 (minimal_language::opcode_print_table): New member function.
4838 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4839 (d_language::opcode_print_table): New member function.
4840 * expprint.c (print_subexp_standard): Update call to
4841 opcode_print_table.
4842 (op_string): Likewise.
4843 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4844 (f_language::opcode_print_table): New member function.
4845 * go-lang.c (go_language_data): Remove la_op_print_tab
4846 initializer.
4847 (go_language::opcode_print_table): New member function.
4848 * language.c (unknown_language_data): Remove la_op_print_tab
4849 initializer.
4850 (unknown_language::opcode_print_table): New member function.
4851 (auto_language_data): Remove la_op_print_tab initializer.
4852 (auto_language::opcode_print_table): New member function.
4853 * language.h (language_data): Remove la_op_print_tab field.
4854 (language_defn::opcode_print_table): Declare new member function.
4855 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4856 initializer.
4857 (m2_language::opcode_print_table): New member function.
4858 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4859 initializer.
4860 (objc_language::opcode_print_table): New member function.
4861 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4862 initializer.
4863 (opencl_language::opcode_print_table): New member function.
4864 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4865 initializer.
4866 (pascal_language::opcode_print_table): New member function.
4867 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4868 initializer.
4869 (rust_language::opcode_print_table): New member function.
4870
4871 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4872
4873 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4874 (ada_language::expression_ops): New member function.
4875 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4876 (c_language::expression_ops): New member function.
4877 (cplus_language_data): Remove la_exp_desc initializer.
4878 (cplus_language::expression_ops): New member function.
4879 (asm_language_data): Remove la_exp_desc initializer.
4880 (asm_language::expression_ops): New member function.
4881 (minimal_language_data): Remove la_exp_desc initializer.
4882 (minimal_language::expression_ops): New member function.
4883 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4884 (d_language::expression_ops): New member function.
4885 * eval.c (evaluate_subexp): Update call to expression_ops.
4886 * expprint.c (print_subexp): Likewise.
4887 (op_name): Likewise.
4888 (dump_subexp_body): Likewise.
4889 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4890 (f_language::expression_ops): New member function.
4891 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4892 (go_language::expression_ops): New member function.
4893 * language.c (language_defn::expression_ops): New function.
4894 (unknown_language_data): Remove la_exp_desc initializer.
4895 (auto_language_data): Likewise.
4896 * language.h (language_data): Remove la_exp_desc field.
4897 (language_defn::expression_ops): Declare new member function.
4898 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4899 (m2_language::expression_ops): New member function.
4900 * objc-lang.c (objc_language_data): Remove la_exp_desc
4901 initializer.
4902 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4903 initializer.
4904 (opencl_language::expression_ops): New member function.
4905 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4906 * parse.c (operator_length): Update call to expression_ops.
4907 (exp_iterate): Likewise.
4908 * rust-lang.c (rust_language_data): Remove la_exp_desc
4909 initializer.
4910 (ruse_language::expression_ops): New member function.
4911
4912 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4913
4914 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4915 initializer.
4916 (ada_language::varobj_ops): New member function.
4917 * c-lang.c (c_language_data): Remove la_varobj_ops
4918 initializer.
4919 (cplus_language_data): Likewise.
4920 (cplus_language::varobj_ops): New member function.
4921 (asm_language_data): Remove la_varobj_ops initializer.
4922 (minimal_language_data): Likewise.
4923 * d-lang.c (d_language_data): Likewise.
4924 * f-lang.c (f_language_data): Likewise.
4925 * go-lang.c (go_language_data): Likewise.
4926 * language.c (language_defn::varobj_ops): New function.
4927 (unknown_language_data): Remove la_varobj_ops
4928 initializer.
4929 (auto_language_data): Likewise.
4930 * language.h (language_data): Remove la_varobj_ops field.
4931 (language_defn::varobj_ops): Declare new member function.
4932 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4933 * objc-lang.c (objc_language_data): Likewise.
4934 * opencl-lang.c (opencl_language_data): Likewise.
4935 * p-lang.c (pascal_language_data): Likewise.
4936 * rust-lang.c (rust_language_data): Likewise.
4937 * varobj.c (varobj_create): Update call to varobj_ops.
4938 * varobj.h (default_varobj_ops): Delete define.
4939
4940 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4941
4942 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4943 initializer.
4944 * c-lang.c (c_language_data): Likewise.
4945 (c_language::macro_expansion): New member function.
4946 (cplus_language_data): Likewise.
4947 (cplus_language::macro_expansion): New member function.
4948 (asm_language_data): Likewise.
4949 (asm_language::macro_expansion): New member function.
4950 (minimal_language_data): Likewise.
4951 (minimal_language::macro_expansion): New member function.
4952 * d-lang.c (d_language_data): Remove la_macro_expansion
4953 initializer.
4954 * f-lang.c (f_language_data): Likewise.
4955 * go-lang.c (go_language_data): Likewise.
4956 * language.c (unknown_language_data): Likewise.
4957 (auto_language_data): Likewise.
4958 * language.h (language_data): Remove la_macro_expansion field.
4959 (language_defn::macro_expansion): New member function.
4960 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4961 initializer.
4962 * objc-lang.c (objc_language_data): Likewise.
4963 (objc_language::macro_expansion): New member function.
4964 * opencl-lang.c (opencl_language_data): Likewise.
4965 (opencl_language::macro_expansion): New member function.
4966 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4967 initializer.
4968 * rust-lang.c (rust_language_data): Likewise.
4969 * symtab.c (default_collect_symbol_completion_matches_break_on):
4970 Update call to macro_expansion.
4971
4972 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4973
4974 * ada-lang.c (ada_language_data): Remove la_array_ordering
4975 initializer.
4976 * c-lang.c (c_language_data): Likewise.
4977 (cplus_language_data): Likewise.
4978 (asm_language_data): Likewise.
4979 (minimal_language_data): Likewise.
4980 * d-lang.c (d_language_data): Likewise.
4981 * dwarf2/read.c (read_array_order): Update for call to
4982 array_ordering.
4983 * f-lang.c (f_language_data): Remove la_array_ordering
4984 initializer.
4985 (f_language::array_ordering): New member function.
4986 * go-lang.c (go_language_data): Remove la_array_ordering
4987 initializer.
4988 * language.c (unknown_language_data): Likewise.
4989 (auto_language_data): Likewise.
4990 * language.h (language_data): Delete la_array_ordering field.
4991 (language_defn::array_ordering): New member function.
4992 * m2-lang.c (m2_language_data): Remove la_array_ordering
4993 initializer.
4994 * objc-lang.c (objc_language_data): Likewise.
4995 * opencl-lang.c (opencl_language_data): Likewise.
4996 * p-lang.c (pascal_language_data): Likewise.
4997 * rust-lang.c (rust_language_data): Likewise.
4998
4999 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5000
5001 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5002 initializer.
5003 * c-lang.c (c_language_data): Likewise.
5004 (cplus_language_data): Likewise.
5005 (asm_language_data): Likewise.
5006 (minimal_language_data): Likewise.
5007 * d-lang.c (d_language_data): Likewise.
5008 * f-lang.c (f_language_data): Likewise.
5009 (f_language::case_sensitivity): New member function.
5010 * go-lang.c (go_language_data): Remove la_case_sensitivity
5011 initializer.
5012 * language.c (enum case_mode): Moved here from language.h.
5013 (case_mode): Make static.
5014 (show_case_command): Update for case_sensitivity being a method.
5015 (set_case_command): Likewise.
5016 (set_range_case): Likewise.
5017 (unknown_language_data): Remove la_case_sensitivity initializer.
5018 (auto_language_data): Likewise.
5019 * language.h (case_mode): Delete, move enum declaration to
5020 language.c.
5021 (language_data): Delete la_case_sensitivity field.
5022 (language_defn::case_sensitivity): New member function.
5023 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5024 initializer.
5025 * objc-lang.c (objc_language_data): Likewise.
5026 * opencl-lang.c (opencl_language_data): Likewise.
5027 * p-lang.c (pascal_language_data): Likewise.
5028 * rust-lang.c (rust_language_data): Likewise.
5029
5030 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * ada-lang.c (ada_language_data): Remove la_range_check
5033 initializer.
5034 * c-lang.c (c_language_data): Likewise.
5035 (cplus_language_data): Likewise.
5036 (asm_language_data): Likewise.
5037 (minimal_language_data): Likewise.
5038 * d-lang.c (d_language_data): Likewise.
5039 * f-lang.c (f_language_data): Likewise.
5040 (f_language::range_checking_on_by_default): New member function.
5041 * go-lang.c (go_language_data): Remove la_range_check initializer.
5042 * language.c (enum range_mode): Moved here from language.h.
5043 (range_mode): Made static.
5044 (show_range_command): Update to use
5045 range_checking_on_by_default.
5046 (set_range_command): Likewise.
5047 (set_range_case): Likewise.
5048 (unknown_language_data): Remove la_range_check initializer.
5049 (auto_language_data): Likewise.
5050 * language.h (range_mode): Delete. Enum definition moved to
5051 language.c.
5052 (language_data): Remove la_range_check field.
5053 (language_defn::range_checking_on_by_default): New member
5054 function.
5055 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5056 (m2_language::range_checking_on_by_default): New member function.
5057 * objc-lang.c (objc_language_data): Remove la_range_check
5058 initializer.
5059 * opencl-lang.c (opencl_language_data): Likewise.
5060 * p-lang.c (pascal_language_data): Likewise.
5061 (pascal_language::range_checking_on_by_default): New member
5062 function.
5063 * rust-lang.c (rust_language_data): Remove la_range_check
5064 initializer.
5065 (rust_language::range_checking_on_by_default): New member
5066 function.
5067
5068 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5069
5070 * dwarf2/read.c (dwarf2_physname): Remove special case for
5071 language_go.
5072 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5073 member function.
5074
5075 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5076
5077 * ada-lang.c (ada_language_data): Remove
5078 la_store_sym_names_in_linkage_form_p initializer.
5079 (ada_language::store_sym_names_in_linkage_form_p): New member
5080 function.
5081 * c-lang.c (c_language_data): Remove
5082 la_store_sym_names_in_linkage_form_p initializer.
5083 (c_language::store_sym_names_in_linkage_form_p): New member
5084 function.
5085 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5086 initializer.
5087 (asm_language_data): Likewise.
5088 (asm_language::store_sym_names_in_linkage_form_p): New member
5089 function.
5090 (minimal_language_data): Remove
5091 la_store_sym_names_in_linkage_form_p initializer.
5092 (minimal_language::store_sym_names_in_linkage_form_p): New member
5093 function.
5094 * d-lang.c (d_language_data): Remove
5095 la_store_sym_names_in_linkage_form_p initializer.
5096 * dwarf2/read.c (dwarf2_physname): Update call to
5097 store_sym_names_in_linkage_form_p.
5098 * f-lang.c (f_language_data): Remove
5099 la_store_sym_names_in_linkage_form_p initializer.
5100 * go-lang.c (go_language_data): Remove
5101 la_store_sym_names_in_linkage_form_p initializer.
5102 * language.c (unknown_language_data): Remove
5103 la_store_sym_names_in_linkage_form_p initializer.
5104 (unknown_language::store_sym_names_in_linkage_form_p): New member
5105 function.
5106 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5107 initializer.
5108 (auto_language::store_sym_names_in_linkage_form_p): New member
5109 function.
5110 * language.h (language_data): Remove
5111 la_store_sym_names_in_linkage_form_p member variable.
5112 (language_defn::store_sym_names_in_linkage_form_p): New member
5113 function.
5114 * m2-lang.c (m2_language_data): Remove
5115 la_store_sym_names_in_linkage_form_p initializer.
5116 * objc-lang.c (objc_language_data): Likewise.
5117 * opencl-lang.c (opencl_language_data): Likewise.
5118 * p-lang.c (pascal_language_data): Likewise.
5119 * rust-lang.c (rust_language_data): Likewise.
5120
5121 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5122
5123 * ada-lang.c (ada_language_data): Remove string_lower_bound
5124 initializer.
5125 * c-lang.c (c_language_data): Likewise.
5126 (cplus_language_data): Likewise.
5127 (asm_language_data): Likewise.
5128 (minimal_language_data): Likewise.
5129 * d-lang.c (d_language_data): Likewise.
5130 * f-lang.c (f_language_data): Likewise.
5131 * go-lang.c (go_language_data): Likewise.
5132 * language.c (unknown_language_data): Likewise.
5133 (auto_language_data): Likewise.
5134 * language.h (language_data): Remove string_lower_bound field.
5135 (language_defn::string_lower_bound): New member function.
5136 * m2-lang.c (m2_language_data): Remove string_lower_bound
5137 initializer.
5138 (m2_language::string_lower_bound): New member function.
5139 * objc-lang.c (objc_language_data): Remove string_lower_bound
5140 initializer.
5141 * opencl-lang.c (opencl_language_data): Likewise.
5142 * p-lang.c (pascal_language_data): Likewise.
5143 * rust-lang.c (rust_language_data): Likewise.
5144 * valops.c (value_cstring): Update call to string_lower_bound.
5145 (value_string): Likewise.
5146 * value.c (allocate_repeated_value): Likewise.
5147
5148 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5149
5150 * valops.c (value_repeat): Fix incorrect argument name in comment.
5151
5152 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5153
5154 * ada-lang.c (ada_language_data): Remove c_style_arrays
5155 initializer.
5156 (ada_language::c_style_arrays_p): New member fuction.
5157 * c-lang.c (c_language_data): Remove c_style_arrays
5158 initializer.
5159 (cplus_language_data): Likewise.
5160 (asm_language_data): Likewise.
5161 (minimal_language_data): Likewise.
5162 * d-lang.c (d_language_data): Likewise.
5163 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5164 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5165 (f_language::c_style_arrays_p): New member function.
5166 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5167 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5168 * language.c (unknown_language_data): Remove c_style_arrays
5169 initializer.
5170 (auto_language_data): Likewise.
5171 * language.h (language_data): Remove c_style_arrays field.
5172 (language_defn::c_style_arrays_p): New member function.
5173 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5174 (m2_language::c_style_arrays_p): New member function.
5175 * objc-lang.c (objc_language_data): Remove c_style_arrays
5176 initializer.
5177 * opencl-lang.c (opencl_language_data): Likewise.
5178 * p-lang.c (pascal_language_data): Likewise.
5179 * rust-lang.c (rust_language_data): Likewise.
5180 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5181 and update local variable to a bool.
5182 * valops.c (value_cast): Update call to c_style_arrays_p.
5183 (value_array): Likewise.
5184 * value.c (coerce_array): Likewise.
5185
5186 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5187
5188 * ada-lang.c (ada_language_data): Remove la_language initializer.
5189 * c-lang.c (c_language_data): Likewise.
5190 (cplus_language_data): Likewise.
5191 (asm_language_data): Likewise.
5192 (minimal_language_data): Likewise.
5193 * d-lang.c (d_language_data): Likewise.
5194 * f-lang.c (f_language_data): Likewise.
5195 * go-lang.c (go_language_data): Likewise.
5196 * language.c (unknown_language_data): Likewise.
5197 (auto_language_data): Likewise.
5198 * language.h (language_data): Remove la_language field.
5199 (language_defn::language_defn): Initialise la_language field.
5200 (language_defn::la_language): New member variable.
5201 * m2-lang.c (m2_language_data): Remove la_language field.
5202 * objc-lang.c (objc_language_data): Likewise.
5203 * opencl-lang.c (opencl_language_data): Likewise.
5204 * p-lang.c (pascal_language_data): Likewise.
5205 * rust-lang.c (rust_language_data): Likewise.
5206
5207 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5208
5209 * ada-lang.c (ada_extensions): Delete, moved into
5210 ada_language::filename_extensions.
5211 (ada_language_data): Remove la_filename_extensions initializer.
5212 (ada_language::filename_extensions): New member function.
5213 * c-lang.c (c_extensions): Delete, moved into
5214 c_language::filename_extensions.
5215 (c_language_data): Remove la_filename_extensions initializer.
5216 (c_language::filename_extensions): New member function.
5217 (cplus_extensions): Delete, moved into
5218 cplus_language::filename_extensions.
5219 (cplus_language_data): Remove la_filename_extensions initializer.
5220 (cplus_language::filename_extensions): New member function.
5221 (asm_extensions): Delete, moved into
5222 asm_language::filename_extensions.
5223 (asm_language_data): Remove la_filename_extensions initializer.
5224 (asm_language::filename_extensions): New member function.
5225 (minimal_language_data): Remove la_filename_extensions
5226 initializer.
5227 * d-lang.c (d_extensions): Delete, moved into
5228 d_language::filename_extensions.
5229 (d_language_data): Remove la_filename_extensions initializer.
5230 (d_language::filename_extensions): New member function.
5231 * f-lang.c (f_extensions): Delete, moved into
5232 f_language::filename_extensions.
5233 (f_language_data): Remove la_filename_extensions initializer.
5234 (f_language::filename_extensions): New member function.
5235 * go-lang.c (go_language_data): Remove la_filename_extensions
5236 initializer.
5237 * language.c (add_set_language_command): Update now that
5238 filename_extensions returns a vector.
5239 (unknown_language_data): Remove la_filename_extensions
5240 initializer.
5241 (auto_language_data): Likewise.
5242 * language.h (language_data): Remove la_filename_extensions field.
5243 (language_defn::filename_extensions): New member function.
5244 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5245 initializer.
5246 * objc-lang.c (objc_extensions): Delete, moved into
5247 objc_language::filename_extensions.
5248 (objc_language_data): Remove la_filename_extensions initializer.
5249 (objc_language::filename_extensions): New member function.
5250 * opencl-lang.c (opencl_language_data): Remove
5251 la_filename_extensions initializer.
5252 * p-lang.c (pascal_extensions): Delete, moved into
5253 pascal_language::filename_extensions.
5254 (pascal_language_data): Remove la_filename_extensions initializer.
5255 (pascal_language::filename_extensions): New member function.
5256 * rust-lang.c (rust_extensions): Delete, moved into
5257 rust_language::filename_extensions.
5258 (rust_language_data): Remove la_filename_extensions initializer.
5259 (rust_language::filename_extensions): New member function.
5260 * symfile.c (add_filename_language): Add new assert.
5261
5262 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5263
5264 * ada-lang.c (ada_language_data): Remove la_name and
5265 la_natural_name initializers.
5266 (ada_language::name): New member function.
5267 (ada_language::natural_name): New member function.
5268 * c-lang.c (c_language_data): Remove la_name and
5269 la_natural_name initializers.
5270 (c_language::name): New member function.
5271 (c_language::natural_name): New member function.
5272 (cplus_language_data): Remove la_name and
5273 la_natural_name initializers.
5274 (cplus_language::name): New member function.
5275 (cplus_language::natural_name): New member function.
5276 (asm_language_data): Remove la_name and
5277 la_natural_name initializers.
5278 (asm_language::name): New member function.
5279 (asm_language::natural_name): New member function.
5280 (minimal_language_data): Remove la_name and
5281 la_natural_name initializers.
5282 (minimal_language::name): New member function.
5283 (minimal_language::natural_name): New member function.
5284 * compile/compile.c (compile_to_object): Update call to
5285 lanugage_defn::name.
5286 * d-lang.c (d_language_data): Remove la_name and
5287 la_natural_name initializers.
5288 (d_language::name): New member function.
5289 (d_language::natural_name): New member function.
5290 * expprint.c (print_subexp_standard): Update call to
5291 language_defn::name.
5292 (dump_raw_expression): Likewise
5293 (dump_prefix_expression): Likewise.
5294 * f-lang.c (f_language_data): Remove la_name and
5295 la_natural_name initializers.
5296 (f_language::name): New member function.
5297 (f_language::natural_name): New member function.
5298 * go-lang.c (go_language_data): Remove la_name and
5299 la_natural_name initializers.
5300 (go_language::name): New member function.
5301 (go_language::natural_name): New member function.
5302 * language.c (show_language_command): Update call to
5303 language_defn::name.
5304 (set_language_command): Likewise.
5305 (language_enum): Likewise.
5306 (language_str): Likewise.
5307 (add_set_language_command): Likewise, use
5308 language_defn::natural_name in the doc string.
5309 (unknown_language_data): Remove la_name and
5310 la_natural_name initializers.
5311 (unknown_language::name): New member function.
5312 (unknown_language::natural_name): New member function.
5313 (auto_language_data): Remove la_name and
5314 la_natural_name initializers.
5315 (auto_language::name): New member function.
5316 (auto_language::natural_name): New member function.
5317 (language_lookup_primitive_type_as_symbol): Update call to
5318 language_defn::name.
5319 * language.h (language_data): Remove la_name and la_natural_name
5320 member variables.
5321 (language_defn::name): New member function.
5322 (language_defn::natural_name): New member function.
5323 * m2-lang.c (m2_language_data): Remove la_name and
5324 la_natural_name initializers.
5325 (m2_language::name): New member function.
5326 (m2_language::natural_name): New member function.
5327 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5328 language_defn::natural_name.
5329 * objc-lang.c (objc_language_data): Remove la_name and
5330 la_natural_name initializers.
5331 (objc_language::name): New member function.
5332 (objc_language::natural_name): New member function.
5333 * opencl-lang.c (opencl_language_data): Remove la_name and
5334 la_natural_name initializers.
5335 (opencl_language::name): New member function.
5336 (opencl_language::natural_name): New member function.
5337 * p-lang.c (pascal_language_data): Remove la_name and
5338 la_natural_name initializers.
5339 (pascal_language::name): New member function.
5340 (pascal_language::natural_name): New member function.
5341 * rust-lang.c (rust_language_data): Remove la_name and
5342 la_natural_name initializers.
5343 (rust_language::name): New member function.
5344 (rust_language::natural_name): New member function.
5345 * symtab.c (lookup_language_this): Update call to
5346 language_defn::name.
5347
5348 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5349
5350 * ada-lang.c (ada_language_data): Remove la_name_of_this
5351 initializer.
5352 * ax-gdb.c (gen_expr): Update call to name_of_this.
5353 * c-exp.y (classify_name): Likewise.
5354 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5355 (cplus_language_data): Likewise.
5356 (cplus_language::name_of_this): New member function.
5357 (asm_language_data): Remove la_name_of_this initializer.
5358 (minimal_language_data): Likewise.
5359 * d-lang.c (d_language_data): Likewise.
5360 (d_language::name_of_this): New member function.
5361 * expprint.c (print_subexp_standard): Update call to name_of_this.
5362 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5363 * go-lang.c (go_language_data): Likewise.
5364 * language.c (unknown_language_data): Likewise.
5365 (unknown_language::name_of_this): New member function.
5366 (auto_language_data): Remove la_name_of_this initializer.
5367 (auto_language::name_of_this): New member function.
5368 * language.h (language_data): Delete la_name_of_this member
5369 variable.
5370 (language_defn::name_of_this): New member function.
5371 * m2-lang.c (m2_language_data): Remove la_name_of_this
5372 initializer.
5373 * objc-lang.c (objc_language_data): Likewise.
5374 (objc_language::name_of_this): New member function.
5375 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5376 initializer.
5377 * p-lang.c (pascal_language_data): Likewise.
5378 (pascal_language::name_of_this): New member function.
5379 * rust-lang.c (rust_language_data): Remove la_name_of_this
5380 initializer.
5381 * symtab.c (lookup_language_this): Update call to name_of_this.
5382 (lookup_symbol_aux): Likewise.
5383 * valops.c (value_of_this): Likewise.
5384
5385 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5386
5387 * ada-lang.c (ada_language_data): Remove
5388 la_struct_too_deep_ellipsis initializer.
5389 (ada_language::struct_too_deep_ellipsis): New member function.
5390 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5391 initializer.
5392 (cplus_language_data): Likewise.
5393 (asm_language_data): Likewise.
5394 (minimal_language_data): Likewise.
5395 * cp-valprint.c (cp_print_value): Update call to
5396 struct_too_deep_ellipsis.
5397 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5398 initializer.
5399 * f-lang.c (f_language_data): Likewise.
5400 (f_language::struct_too_deep_ellipsis): New member function.
5401 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5402 initializer.
5403 * language.c (unknown_language_data): Likewise.
5404 (auto_language_data): Likewise.
5405 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5406 member variable.
5407 (language_defn::struct_too_deep_ellipsis): New member function.
5408 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5409 initializer.Q
5410 * objc-lang.c (objc_language_data): Likewise.
5411 * opencl-lang.c (opencl_language_data): Likewise.
5412 * p-lang.c (pascal_language_data): Likewise.
5413 * rust-lang.c (rust_language_data): Likewise.
5414 * valprint.c (val_print_check_max_depth): Update call to
5415 struct_too_deep_ellipsis.
5416
5417 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5418
5419 * MAINTAINERS (Write After Approval): Add myself.
5420
5421 2020-09-15 Tom Tromey <tom@tromey.com>
5422
5423 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5424 Remove.
5425
5426 2020-09-15 Tom Tromey <tom@tromey.com>
5427
5428 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5429 and TYPE_CODE_METHODPTR cases.
5430 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5431 (c_value_print_inner): Update.
5432 * valprint.c (generic_value_print_memberptr): New function, from
5433 c_value_print_memberptr.
5434 (generic_value_print): Use it. Call cplus_print_method_ptr.
5435
5436 2020-09-15 Tom Tromey <tromey@adacore.com>
5437
5438 * python/python-internal.h (PyInt_FromLong): Remove define.
5439 * python/py-value.c (convert_value_from_python): Use
5440 gdb_py_object_from_longest.
5441 * python/py-type.c (typy_get_code): Use
5442 gdb_py_object_from_longest.
5443 * python/py-symtab.c (salpy_get_line): Use
5444 gdb_py_object_from_longest.
5445 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5446 gdb_py_object_from_longest.
5447 * python/py-record.c (recpy_gap_reason_code): Use
5448 gdb_py_object_from_longest.
5449 * python/py-record-btrace.c (recpy_bt_insn_size)
5450 (recpy_bt_func_level, btpy_list_count): Use
5451 gdb_py_object_from_longest.
5452 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5453 gdb_py_object_from_longest. Fix error handling.
5454 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5455 gdb_py_object_from_longest.
5456 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5457 gdb_py_object_from_longest.
5458 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5459 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5460 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5461
5462 2020-09-15 Tom Tromey <tromey@adacore.com>
5463
5464 * python/python.c (gdbpy_parameter_value): Use
5465 gdb_py_object_from_ulongest.
5466
5467 2020-09-15 Tom Tromey <tromey@adacore.com>
5468
5469 * python/py-infevents.c (create_register_changed_event_object):
5470 Use gdb_py_object_from_longest.
5471 * python/py-exitedevent.c (create_exited_event_object): Use
5472 gdb_py_object_from_longest.
5473
5474 2020-09-15 Tom Tromey <tromey@adacore.com>
5475
5476 * python/python.c (gdbpy_parameter_value): Use
5477 gdb_py_object_from_longest.
5478 * python/py-type.c (convert_field, typy_range): Use
5479 gdb_py_object_from_longest.
5480 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5481 gdb_py_object_from_longest.
5482 * python/py-lazy-string.c (stpy_get_length): Use
5483 gdb_py_object_from_longest.
5484 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5485 gdb_py_object_from_longest.
5486 * python/py-infevents.c (create_memory_changed_event_object): Use
5487 gdb_py_object_from_longest.
5488 * python/py-inferior.c (infpy_get_num): Use
5489 gdb_py_object_from_longest.
5490 (infpy_get_pid): Likewise.
5491
5492 2020-09-15 Tom Tromey <tromey@adacore.com>
5493
5494 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5495 defines.
5496 * python/py-value.c (valpy_long): Use
5497 gdb_py_object_from_ulongest.
5498 * python/py-symtab.c (salpy_get_pc): Use
5499 gdb_py_object_from_ulongest.
5500 (salpy_get_last): Likewise.
5501 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5502 gdb_py_object_from_ulongest.
5503 * python/py-lazy-string.c (stpy_get_address): Use
5504 gdb_py_object_from_ulongest.
5505 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5506 * python/py-arch.c (archpy_disassemble): Use
5507 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5508 error handling.
5509
5510 2020-09-15 Tom Tromey <tromey@adacore.com>
5511
5512 * python/python-internal.h (gdb_py_long_from_longest): Remove
5513 defines.
5514 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5515 * python/py-type.c (convert_field, typy_get_sizeof): Use
5516 gdb_py_object_from_longest.
5517 * python/py-record-btrace.c (btpy_list_index): Use
5518 gdb_py_object_from_longest.
5519
5520 2020-09-15 Tom Tromey <tromey@adacore.com>
5521
5522 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5523 * python/py-record.c (recpy_element_number): Use
5524 gdb_py_object_from_longest.
5525 (recpy_gap_number): Likewise.
5526
5527 2020-09-15 Tom Tromey <tromey@adacore.com>
5528
5529 * top.c (ui::ui): Update.
5530 (highest_ui_num): Remove.
5531 * top.h (struct ui) <num>: Remove.
5532
5533 2020-09-15 Tom Tromey <tromey@adacore.com>
5534
5535 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5536 * ui-style.c (ansi_regex_text): Now array.
5537 * rust-exp.y (number_regex_text): Now array.
5538 * linespec.c (linespec_quote_characters): Now array.
5539 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5540 Now arrays.
5541
5542 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5543
5544 * debuginfod-support.c (debuginfod_client_deleter): New.
5545 (debuginfod_client_up): New.
5546 (debuginfod_init): Return debuginfod_client_up.
5547 (debuginfod_source_query): Adjust.
5548 (debuginfod_debuginfo_query): Adjust.
5549
5550 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5551
5552 * debuginfod-support.c (debuginfod_source_query): Use
5553 make_unique_xstrdup.
5554
5555 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5558 with `type::instance_flags`.
5559
5560 2020-09-14 Michael Mullin <masmullin@gmail.com>
5561
5562 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5563 Remove baton parameter.
5564
5565 2020-09-14 Pedro Alves <pedro@palves.net>
5566
5567 * Makefile.in (SELFTESTS_SRCS): Add
5568 unittests/enum-flags-selftests.c.
5569 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5570 btrace_function_flags instead of enum btrace_function_flag.
5571 * compile/compile-c-types.c (convert_qualified): Use
5572 enum_flags::raw.
5573 * compile/compile-cplus-symbols.c (convert_one_symbol)
5574 (convert_symbol_bmsym):
5575 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5576 (compile_cplus_convert_struct_or_union_methods)
5577 (compile_cplus_instance::convert_qualified_base):
5578 * go-exp.y (parse_string_or_char): Add cast to int.
5579 * unittests/enum-flags-selftests.c: New file.
5580 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5581 type to btrace_thread_flags from btrace_thread_flag.
5582 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5583 local's type to btrace_thread_flags from btrace_thread_flag. Add
5584 cast in DEBUG call.
5585
5586 2020-09-14 Pedro Alves <pedro@palves.net>
5587
5588 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5589 * gdbtypes.c (address_space_name_to_int): Rename to ...
5590 (address_space_name_to_type_instance_flags): ... this.
5591 (address_space_int_to_name): Rename to ...
5592 (address_space_type_instance_flags_to_name): ... this.
5593 * gdbtypes.h (address_space_name_to_int): Rename to ...
5594 (address_space_name_to_type_instance_flags): ... this.
5595 (address_space_int_to_name): Rename to ...
5596 (address_space_type_instance_flags_to_name): ... this.
5597 * type-stack.c (type_stack::insert): Adjust to rename.
5598 * type-stack.h (type_stack::insert): Likewise.
5599
5600 2020-09-14 Pedro Alves <pedro@palves.net>
5601 Andrew Burgess <andrew.burgess@embecosm.com>
5602
5603 * avr-tdep.c (avr_address_class_type_flags): Return
5604 type_instance_flags.
5605 (avr_address_class_type_flags_to_name): Take a
5606 type_instance_flags.
5607 (avr_address_class_name_to_type_flags): Return bool and take a
5608 type_instance_flags.
5609 * d-lang.c (build_d_types): Use type::set_instance_flags.
5610 * ft32-tdep.c (ft32_address_class_type_flags): Return
5611 type_instance_flags.
5612 (ft32_address_class_type_flags_to_name): Take a
5613 type_instance_flags.
5614 (ft32_address_class_name_to_type_flags): Return bool and take a
5615 type_instance_flags.
5616 (ft32_gdbarch_init): Use type::set_instance_flags.
5617 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5618 * gdbarch.h, gdbarch.c: Regenerate.
5619 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5620 (address_class_name_to_type_flags): Use type_instance_flags and
5621 bool.
5622 * gdbtypes.c (address_space_name_to_int)
5623 (address_space_int_to_name, make_qualified_type): Use
5624 type_instance_flags.
5625 (make_qualified_type): Use type_instance_flags and
5626 type::set_instance_flags.
5627 (make_type_with_address_space, make_cv_type, make_vector_type)
5628 (check_typedef): Use type_instance_flags.
5629 (recursive_dump_type): Cast type_instance_flags to unsigned for
5630 printing.
5631 (copy_type_recursive): Use type::set_instance_flags.
5632 (gdbtypes_post_init): Use type::set_instance_flags.
5633 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5634 <m_instance_flags>: ... this.
5635 <instance_flags, set_instance_flags>: New methods.
5636 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5637 (SET_TYPE_INSTANCE_FLAGS): New.
5638 (address_space_name_to_int, address_space_int_to_name)
5639 (make_type_with_address_space): Pass flags using
5640 type_instance_flags instead of int.
5641 * stabsread.c (cleanup_undefined_types_noname): Use
5642 type::set_instance_flags.
5643 * s390-tdep.c (s390_address_class_type_flags): Return
5644 type_instance_flags.
5645 (s390_address_class_type_flags_to_name): Take a
5646 type_instance_flags.
5647 (s390_address_class_name_to_type_flags): Return bool and take a
5648 type_instance_flags.
5649 * type-stack.c (type_stack::follow_types): Use
5650 type_instance_flags.
5651 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5652
5653 2020-09-14 Tom Tromey <tromey@adacore.com>
5654
5655 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5656 * x86-tdep.c (x86_is_thunk_register_name)
5657 (x86_in_indirect_branch_thunk): Update.
5658 * sparc64-tdep.c (sparc64_fpu_register_names)
5659 (sparc64_cp0_register_names, sparc64_register_names)
5660 (sparc64_pseudo_register_names): Now const.
5661 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5662 cp0_registers_num>: Now const.
5663 * sparc-tdep.c (sparc_core_register_names)
5664 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5665 (sparc32_pseudo_register_names): Now const.
5666 (validate_tdesc_registers): Update.
5667 * rust-lang.c (rust_extensions): Now const.
5668 * p-lang.c (p_extensions): Now const.
5669 * objc-lang.c (objc_extensions): Now const.
5670 * nto-tdep.c (nto_thread_state_str): Now const.
5671 * moxie-tdep.c (moxie_register_names): Now const.
5672 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5673 Now const.
5674 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5675 (mips_linux_reg_names): Now const.
5676 (mips_gdbarch_init): Update.
5677 * microblaze-tdep.c (microblaze_register_names): Now const.
5678 * m68k-tdep.c (m68k_register_names): Now const.
5679 * m32r-tdep.c (m32r_register_names): Now const.
5680 * ia64-tdep.c (ia64_register_names): Now const.
5681 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5682 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5683 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5684 ymm_avx512_register_names, pkeys_register_names>: Now const.
5685 * i386-tdep.c (i386_register_names, i386_zmm_names)
5686 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5687 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5688 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5689 * f-lang.c (f_extensions): Now const.
5690 * d-lang.c (d_extensions): Now const.
5691 * csky-tdep.c (csky_register_names): Now const.
5692 * charset.c (default_charset_names, charset_enum): Now const.
5693 (_initialize_charset): Update.
5694 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5695 const.
5696 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5697 (bsd_uthread_solib_loaded): Update.
5698 (bsd_uthread_state): Now const.
5699 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5700 (amd64_ymm_avx512_names, amd64_ymmh_names)
5701 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5702 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5703 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5704 (amd64_dword_names): Now const.
5705 * agent.c (can_use_agent_enum): Now const.
5706 * ada-tasks.c (task_states, long_task_states): Now const.
5707 * ada-lang.c (known_runtime_file_name_patterns)
5708 (known_auxiliary_function_name_patterns, attribute_names)
5709 (standard_exc, ada_extensions): Now const.
5710
5711 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5712
5713 * bcache.h (struct bcache) <bcache>: Remove constructor.
5714 <m_hash_function, m_compare_function>: Remove.
5715 <~bcache>: Make virtual.
5716 <compare>: Remove static method, introduce virtual method.
5717 <default_hash>: Remove.
5718 <hash>: New virtual method.
5719 * bcache.c (bcache::expand_hash_table): Update.
5720 (bcache::insert): Update.
5721 (bcache::hash): New.
5722 (bcache::compare): Update comment and parameter names.
5723 * gdbtypes.c (types_deeply_equal): Update.
5724 * psymtab.h (struct psymbol_bcache): New struct.
5725 (class psymtab_storage) <psymtab_storage>: Make default.
5726 <psymbol_cache>: Change type to psymbol_bcache.
5727 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5728 (psymbol_hash): Change to...
5729 (psymbol_bcache::hash): ... this.
5730 (psymbol_compare): Change to...
5731 (psymbol_bcache::compare): ... this.
5732
5733 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5734
5735 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5736 checking for initial lwp.
5737
5738 2020-09-14 Tom Tromey <tromey@adacore.com>
5739
5740 * m68k-tdep.c (m68k_extract_return_value): Use
5741 pointer_result_regnum.
5742 (m68k_store_return_value): Likewise.
5743 (m68k_reg_struct_return_p): Handle vectors and arrays.
5744 (m68k_return_value): Handle arrays.
5745 (m68k_svr4_return_value): Fix single-element aggregate handling.
5746 Handle long double. Adjust for embedded ABI.
5747 (m68k_svr4_init_abi): Set pointer_result_regnum.
5748 (m68k_embedded_init_abi): New function.
5749 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5750 (m68k_osabi_sniffer): New function.
5751 (_initialize_m68k_tdep): Register osabi sniffer.
5752 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5753 member.
5754
5755 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5756
5757 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5758 with gdb::unique_xmalloc_ptr<char>.
5759
5760 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5761
5762 * xml-support.h (xml_fetch_another): Change type to be a
5763 function_view.
5764 (xml_process_xincludes): Remove baton parameter.
5765 (xml_fetch_content_from_file): Change baton parameter to
5766 dirname.
5767 * xml-support.c (struct xinclude_parsing_data)
5768 <xinclude_parsing_data>: Remove baton parameter.
5769 <fetcher_baton>: Remove.
5770 (xinclude_start_include): Adjust.
5771 (xml_process_xincludes): Adjust.
5772 (xml_fetch_content_from_file): Replace baton parameter with
5773 dirname.
5774 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5775 (xml_init_syscalls_info): Use a lambda.
5776 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5777 (file_read_description_xml): Use a lambda.
5778 (fetch_available_features_from_target): Change baton parameter
5779 to target_ops.
5780 (target_read_description_xml): Use a lambda.
5781 (target_fetch_description_xml): Use a lambda.
5782 (string_read_description_xml): Update.
5783
5784 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5785
5786 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5787 uses with type::endianity_is_not_default.
5788
5789 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5790
5791 * gdbtypes.h (struct type) <endianity_is_not_default,
5792 set_endianity_is_not_default>: New methods.
5793 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5794 type::endianity_is_not_default, change all write call sites to
5795 use type::set_endianity_is_not_default.
5796
5797 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5800 uses with type::is_fixed_instance.
5801
5802 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5803
5804 * gdbtypes.h (struct type) <is_fixed_instance,
5805 set_is_fixed_instance>: New methods.
5806 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5807 write call sites to use type::set_is_fixed_instance.
5808
5809 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5810
5811 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5812 uses with type::is_gnu_ifunc.
5813
5814 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5817 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5818 use type::set_is_gnu_ifunc.
5819
5820 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5821
5822 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5823 uses with type::stub_is_supported.
5824
5825 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5828 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5829 use type::set_stub_is_supported.
5830
5831 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5832
5833 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5834 uses with type::is_vector.
5835
5836 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5837
5838 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5839 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5840 use type::set_is_vector.
5841
5842 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5845 uses with type::has_varargs.
5846
5847 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5848
5849 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5850 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5851 use type::set_has_varargs.
5852
5853 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5856 uses with type::is_prototyped.
5857
5858 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5859
5860 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5861 New methods.
5862 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5863 call sites to use type::set_is_prototyped.
5864
5865 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5866
5867 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5868 uses with type::target_is_stub.
5869
5870 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5873 New methods.
5874 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5875 sites to use type::set_target_is_stub.
5876
5877 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5878
5879 * gdbtypes.h (TYPE_STUB): Remove, replace all
5880 uses with type::is_stub.
5881
5882 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5883
5884 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5885 (TYPE_STUB): Use type::is_stub, change all write call sites to
5886 use type::set_is_stub.
5887
5888 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5889
5890 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5891 type::has_no_signedness.
5892
5893 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5894
5895 * gdbtypes.h (struct type) <has_no_signedness,
5896 set_has_no_signedness>: New methods.
5897 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5898 call sites to use type::set_has_no_signedness.
5899
5900 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5901
5902 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5903 type::is_unsigned.
5904
5905 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5906
5907 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5908 methods.
5909 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5910 sites to use type::set_is_unsigned.
5911
5912 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5913 Adam Renquinha <arenquinha@cimeq.qc.ca>
5914
5915 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5916 pointer and stack frame offset when unwinding.
5917
5918 2020-09-13 Pedro Alves <pedro@palves.net>
5919
5920 * NEWS: Document "-break-insert --qualified".
5921 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5922
5923 2020-09-13 Pedro Alves <pedro@palves.net>
5924
5925 * linespec.c (classify_mtype, compare_msyms): Delete.
5926 (search_minsyms_for_name): Remove classification logic. Instead
5927 filter out trampoline symbols if we also found an external
5928 function of the same name.
5929
5930 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5931
5932 * NEWS: Create a new section for the next release branch.
5933 Rename the section of the current branch, now that it has
5934 been cut.
5935
5936 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5937
5938 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5939 * version.in: Bump version to 11.0.50.DATE-git.
5940
5941 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5942
5943 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5944
5945 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5946 Felix Willgerodt <Felix.Willgerodt@intel.com>
5947
5948 * gdbarch.sh: Added bfloat16 type.
5949 * gdbarch.c: Regenerated.
5950 * gdbarch.h: Regenerated.
5951 * gdbtypes.c (floatformats_bfloat16): New struct.
5952 (gdbtypes_post_init): Add builtin_bfloat16.
5953 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5954 (floatformats_bfloat16): New struct.
5955 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5956 (i386_ymm_type): Add field "v16_bfloat16"
5957 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5958 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5959 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5960 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5961 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5962 * features/i386/64bit-avx512.c: Regenerated.
5963 * features/i386/64bit-sse.xml: Add bfloat16 type.
5964 * features/i386/64bit-sse.c: Regenerated.
5965
5966 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5967
5968 * i386-tdep.c (i386_zmm_type): Fix field names.
5969 (i386_ymm_type): Fix field names.
5970
5971 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5972
5973 * breakpoint.c: Fix typo in the help message of the
5974 "set breakpoint condition-evaluation" command.
5975
5976 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5977
5978 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5979 * (nbsd_nat_target::pid_to_exec_file)
5980 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5981 (nbsd_nat_target::post_startup_inferior)
5982 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5983 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5984 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5985 * (nbsd_thread_lister): Remove.
5986
5987 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5988
5989 * fork-inferior.c (startup_inferior): Avoid double free.
5990
5991 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5992
5993 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5994 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5995
5996 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5997
5998 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5999 * netbsd-nat.c: Include <sys/ptrace.h>.
6000 * (netbsd_nat::enable_proc_events): Add.
6001
6002 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6003
6004 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6005 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6006 (netbsd_nat::for_each_thread): Add.
6007 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6008 "gdbsupport/common-debug.h".
6009 * (netbsd_nat::netbsd_thread_lister)
6010 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6011 (netbsd_nat::for_each_thread): Add.
6012
6013 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6014
6015 * netbsd-nat.h: Include <unistd.h>.
6016 * (netbsd_nat::pid_to_exec_file): Add.
6017 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6018 * (netbsd_nat::pid_to_exec_file) Add.
6019
6020 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6021
6022 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6023
6024 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6025
6026 * netbsd-nat.h: New file.
6027 * netbsd-nat.c: Likewise.
6028
6029 2020-09-09 Tom Tromey <tromey@adacore.com>
6030
6031 * ada-lang.c (remove_extra_symbols): Do not increment when
6032 removing an element
6033
6034 2020-09-08 Tom Tromey <tromey@adacore.com>
6035
6036 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6037
6038 2020-09-08 Tom Tromey <tromey@adacore.com>
6039
6040 PR win32/25302:
6041 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6042 (gdb_bfd_init_data): New function.
6043 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6044
6045 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6046
6047 * infrun.c (fetch_inferior_event): Use
6048 `switch_to_target_no_thread` to switch the target.
6049
6050 2020-09-06 Tom Tromey <tom@tromey.com>
6051
6052 * symfile.h (dwarf2_free_objfile): Don't declare.
6053
6054 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6055
6056 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6057 to match 16 byte real/complex type generated by Flang compiler.
6058
6059 2020-09-03 Tom de Vries <tdevries@suse.de>
6060
6061 PR breakpoint/26546
6062 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6063 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6064
6065 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * maint.c (index_digits): New function.
6068 (struct maint_print_section_data): Remove.
6069 (print_bfd_section_info): Remove print_data parameter, add arg
6070 and index_digits.
6071 (print_objfile_section_info): Likewise.
6072 (print_bfd_section_info_maybe_relocated): Likewise (plus
6073 objfile).
6074 (maintenance_info_sections): Adjust calls.
6075
6076 2020-09-02 Tom Tromey <tromey@adacore.com>
6077
6078 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6079 for null pointers.
6080 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6081
6082 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6083
6084 * bcache.h (struct bcache) <insert>: Change type of `added` to
6085 pointer to bool.
6086 * bcache.c (bcache::insert): Likewise.
6087 * gdbtypes.c (check_types_worklist): Adjust.
6088 * psymtab.c (add_psymbol_to_bcache): Adjust.
6089
6090 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6091
6092 * corelow.c (unordered_set): Include.
6093 (class core_target): Add field 'm_core_unavailable_mappings'.
6094 (core_target::build_file_mappings): Print only one warning
6095 per inaccessible file. Add unavailable/broken mappings
6096 to m_core_unavailable_mappings.
6097 (core_target::xfer_partial): Call...
6098 (core_target::xfer_memory_via_mappings): New method.
6099
6100 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6103 type to bool.
6104
6105 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6106
6107 * dwarf2/read.c (struct field_info): Fix indentation.
6108
6109 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6112 ordering in comment.
6113 * frame.c (frame_id_eq): Fix indentation.
6114
6115 2020-08-31 Scott Linder <scott@scottlinder.com>
6116 Simon Marchi <simon.marchi@efficios.com>
6117
6118 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6119 inline frame ids in outer frame.
6120
6121 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6124 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6125 (outer_frame_id): Use FID_STACK_OUTER instead of
6126 FID_STACK_INVALID.
6127 (frame_id_p): Don't check for outer_frame_id.
6128
6129 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6132 regnum/frame in value. Call allocate_value_lazy.
6133 * frame.c (frame_unwind_register_value): Use
6134 val_print_not_saved.
6135
6136 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6137
6138 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6139
6140 2020-08-29 Pedro Alves <pedro@palves.net>
6141
6142 * progspace.c (print_program_space): Use all_inferiors. Switch to
6143 the inferior before calling target_pid_to_str.
6144
6145 2020-08-28 Tom Tromey <tom@tromey.com>
6146
6147 * xcoffread.c (xcoff_end_psymtab): Update comment.
6148 * dbxread.c (dbx_end_psymtab): Update comment.
6149
6150 2020-08-28 Tom de Vries <tdevries@suse.de>
6151
6152 PR breakpoint/26544
6153 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6154 event_location.
6155 (create_breakpoint): Same.
6156 (base_breakpoint_decode_location): Same.
6157 (bkpt_create_sals_from_location): Same.
6158 (bkpt_decode_location): Same.
6159 (bkpt_probe_create_sals_from_location): Same.
6160 (bkpt_probe_decode_location): Same.
6161 (tracepoint_create_sals_from_location): Same.
6162 (tracepoint_decode_location): Same.
6163 (tracepoint_probe_decode_location): Same.
6164 (strace_marker_create_sals_from_location): Same.
6165 (strace_marker_decode_location): Same.
6166 (create_sals_from_location_default): Same.
6167 (decode_location_default): Same.
6168 * breakpoint.h (struct breakpoint_ops): Same.
6169 (create_breakpoint): Same.
6170 * linespec.h (decode_line_full): Same.
6171 * linespec.c (decode_line_full): Same. Throw error if
6172 result.size () == 0.
6173
6174 2020-08-27 Pedro Alves <pedro@palves.net>
6175
6176 PR gdb/26524
6177 * breakpoint.c (until_break_fsm) <location_breakpoint,
6178 caller_breakpoint>: Delete fields.
6179 <breakpoints>: New field.
6180 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6181 two individual breakpoints.
6182 (until_break_fsm::should_stop): Loop over breakpoints in the
6183 breakpoint vector.
6184 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6185 vector.
6186 (until_break_command): Handle location expanding into multiple
6187 sals.
6188
6189 2020-08-27 Pedro Alves <pedro@palves.net>
6190
6191 PR gdb/26523
6192 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6193 bp_until breakpoints user-specified locations. Update intro
6194 comment.
6195
6196 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6197
6198 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6199 gdb_bfd_sections): New.
6200 * maint.c (print_bfd_section_info): Change param type to
6201 maint_print_section_data.
6202 (print_objfile_section_info): Likewise.
6203 (print_bfd_section_info_maybe_relocated): Likewise.
6204 (maintenance_info_sections): Use gdb_bfd_sections.
6205
6206 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6207
6208 * MAINTAINERS: Add ARC target and maintainer.
6209
6210 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6211
6212 * configure.tgt: ARC support for GNU/Linux.
6213 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6214 * arc-linux-tdep.c: New file.
6215 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6216 * arc-tdep.c (arc_write_pc): Use it.
6217
6218 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6219
6220 * arc-tdep.c (arc_check_for_hardware_loop): New.
6221 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6222
6223 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6224
6225 * arc-tdep.h: Include "gdbarch.h".
6226
6227 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6228
6229 * arch/arc.h
6230 (arc_gdbarch_features): New class to stir the selection of target XML.
6231 (arc_create_target_description): Use FEATURES to choose XML target.
6232 (arc_lookup_target_description): Use arc_create_target_description
6233 to create _new_ target descriptions or return the already created
6234 ones if the FEATURES is the same.
6235 * arch/arc.c: Implementation of prototypes described above.
6236 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6237 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6238 * arc-tdep.c (*_feature_name): Make feature names consistent.
6239 (arc_register_feature): A new struct to hold information about
6240 registers of a particular target/feature.
6241 (arc_check_tdesc_feature): Check if XML provides registers in
6242 compliance with ARC_REGISTER_FEATURE structs.
6243 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6244 (determine_*_reg_feature_set): Which feature name to look for.
6245 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6246 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6247 to expected ISA enums to be used in arc_gdbarch_features structs.
6248 * features/Makefile (FEATURE_XMLFILES): Add new files.
6249 * gdb/features/arc/v1-aux.c: New file.
6250 * gdb/features/arc/v1-aux.xml: Likewise.
6251 * gdb/features/arc/v1-core.c: Likewise.
6252 * gdb/features/arc/v1-core.xml: Likewise.
6253 * gdb/features/arc/v2-aux.c: Likewise.
6254 * gdb/features/arc/v2-aux.xml: Likewise.
6255 * gdb/features/arc/v2-core.c: Likewise.
6256 * gdb/features/arc/v2-core.xml: Likewise.
6257 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6258
6259 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6260 Andrew Burgess <andrew.burgess@embecosm.com>
6261
6262 PR m2/26372
6263 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6264 an assert. Remove single element array indexing pattern as the
6265 MULTI_SUBSCRIPT support will handle this case too.
6266
6267 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6268
6269 * value.h (valprint_check_validity): Move declaration from
6270 here...
6271 * valprint.h (valprint_check_validity): ... to here.
6272
6273 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * debug.h: New file.
6276 * debug.c (debug_prefixed_vprintf): New function.
6277 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6278 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6279
6280 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6281
6282 * infrun.h (infrun_debug_printf_1): New function declaration.
6283 (infrun_debug_printf): New macro.
6284 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6285 throughout.
6286 (infrun_debug_printf): New function.
6287 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6288 (handle_jit_event): Likewise.
6289
6290 2020-08-21 Mark Wielaard <mark@klomp.org>
6291
6292 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6293
6294 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * frame.c (enum class frame_id_status): New.
6297 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6298 (fprintf_frame): Update.
6299 (compute_frame_id): Set frame id status to "computing" on entry.
6300 Set it back to "not_computed" on failure and to "computed" on
6301 success.
6302 (get_frame_id): Assert the frame id is not being computed.
6303 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6304 (create_new_frame): Likewise.
6305 (frame_cleanup_after_sniffer): Update assert.
6306
6307 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6308
6309 * regcache.c (pid_ptid_regcache_map): New type.
6310 (target_ptid_regcache_map): Remove.
6311 (target_pid_ptid_regcache_map): New type.
6312 (regcaches): Change type to target_pid_ptid_regcache_map.
6313 (get_thread_arch_aspace_regcache): Update.
6314 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6315 case.
6316 (regcaches_size): Update.
6317 (regcache_count): Update.
6318 (registers_changed_ptid_target_pid_test): New.
6319 (_initialize_regcache): Register new test.
6320
6321 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6322
6323 * regcache.c (regcache_count): New.
6324 (struct regcache_test_data): New.
6325 (regcache_test_data_up): New.
6326 (populate_regcaches_for_test): New.
6327 (regcaches_test): Remove.
6328 (get_thread_arch_aspace_regcache_test): New.
6329 (registers_changed_ptid_all_test): New.
6330 (registers_changed_ptid_target_test): New.
6331 (registers_changed_ptid_target_ptid_test): New.
6332 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6333 (_initialize_regcache): Register new tests.
6334
6335 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6336
6337 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6338 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6339 gdbarch and aspace parameter. Use current inferior's aspace.
6340 Validate regcache's arch value.
6341 (regcaches_test): Update.
6342
6343 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6344
6345 * regcache.c (regcaches_test): Call registers_changed.
6346
6347 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6348
6349 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6350
6351 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6352
6353 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6354 to find the end of prologue for flang compiled binaries.
6355 * arm-tdep.c (arm_skip_prologue): Likewise.
6356 * i386-tdep.c (i386_skip_prologue): Likewise.
6357 * producer.c (producer_is_llvm): New function.
6358 (producer_parsing_tests): Added new tests for clang/flang.
6359 * producer.h (producer_is_llvm): New declaration.
6360
6361 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6362
6363 * linux-nat.c (linux_nat_debug_printf): New function.
6364 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6365
6366 2020-08-18 Aaron Merey <amerey@redhat.com>
6367
6368 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6369 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6370 (CLIBS): Add DEBUGINFOD_LIBS.
6371
6372 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6373
6374 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6375 'gdbarch_num_regs'.
6376
6377 2020-08-17 Tom Tromey <tromey@adacore.com>
6378
6379 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6380 ada_get_decoded_value returns NULL.
6381
6382 2020-08-17 Tom Tromey <tromey@adacore.com>
6383
6384 * python/py-inferior.c (infpy_search_memory): Use
6385 gdb_py_object_from_ulongest.
6386 * python/py-infevents.c (create_inferior_call_event_object)
6387 (create_memory_changed_event_object): Use
6388 gdb_py_object_from_ulongest.
6389 * python/py-linetable.c (ltpy_entry_get_pc): Use
6390 gdb_py_object_from_ulongest.
6391
6392 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6393
6394 * loc.c (class symbol_needs_eval_context): Fix indentation.
6395
6396 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6397
6398 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6399 bool.
6400
6401 2020-08-17 Tom de Vries <tdevries@suse.de>
6402
6403 PR gdb/26393
6404 * gdbtypes.c (dump_dynamic_prop): New function.
6405 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6406
6407 2020-08-15 Tom de Vries <tdevries@suse.de>
6408
6409 PR backtrace/26390
6410 * stack.c (print_frame_args): Temporarily set the selected
6411 frame to FRAME while printing the frame's arguments.
6412
6413 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6414
6415 PR breakpoints/26385
6416 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6417 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6418
6419 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6420
6421 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6422 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6423 and >= to check return value instead of == -1 and != -1.
6424
6425 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6426
6427 * utils.h (class gdb_argv) <as_array_view>: New method.
6428 * utils.c (gdb_argv_as_array_view_test): New.
6429 (_initialize_utils): Register selftest.
6430 * maint.c (maintenance_selftest): Use the new method.
6431
6432 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6433
6434 * target.h (supports_dumpcore, dumpcore): New
6435 function declarations.
6436 * target.c (supports_dumpcore, dumpcore): New
6437 functions.
6438 * target-delegates.c: Rebuild.
6439 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6440 and target_dumpcore ().
6441
6442 2020-08-13 Aaron Merey <amerey@redhat.com>
6443
6444 * debuginfod-support.c: Replace global variables with user_data.
6445
6446 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6447
6448 * maint.c (maintenance_selftest): Split args and pass array_view
6449 to run_tests.
6450
6451 2020-08-12 Luis Machado <luis.machado@linaro.org>
6452
6453 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6454 type's length.
6455 Use %s and pulongest to print the length.
6456
6457 2020-08-12 Pedro Alves <palves@redhat.com>
6458
6459 * NEWS: Move "Multi-target debugging support" item to the
6460 "Changes since GDB 9" section.
6461
6462 2020-08-12 Pedro Alves <palves@redhat.com>
6463
6464 PR gdb/26336
6465 * progspace.c (program_space::remove_objfile): Invalidate the
6466 frame cache.
6467
6468 2020-08-11 Tom de Vries <tdevries@suse.de>
6469
6470 * MAINTAINERS: Mark ms1 as deleted.
6471
6472 2020-08-10 Luis Machado <luis.machado@linaro.org>
6473
6474 PR gdb/26310
6475
6476 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6477 act accordingly.
6478 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6479 movz/str/stur/stp skipping behavior.
6480
6481 2020-08-10 Luis Machado <luis.machado@linaro.org>
6482
6483 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6484 struct user_sve_header instead of struct sve_context.
6485
6486 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6487
6488 * read.h (dwarf2_fetch_die_loc_sect_off,
6489 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6490 `void *` parameter with function_view.
6491 * read.c (dwarf2_fetch_die_loc_sect_off,
6492 dwarf2_fetch_die_loc_cu_off): Likewise.
6493 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6494 (per_cu_dwarf_call): Adjust.
6495 (get_frame_address_in_block_wrapper): Remove.
6496 (indirect_synthetic_pointer): Adjust.
6497 (get_ax_pc): Remove.
6498 (dwarf2_compile_expr_to_ax): Adjust.
6499
6500 2020-08-08 Tom de Vries <tdevries@suse.de>
6501
6502 PR build/26344
6503 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6504 constructor.
6505 * regcache.c (get_thread_arch_aspace_regcache): Same.
6506
6507 2020-08-07 Tom Tromey <tromey@adacore.com>
6508
6509 * ravenscar-thread.c
6510 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6511 New method.
6512 (ravenscar_thread_target::wait): Check
6513 runtime_initialized.
6514 (ravenscar_thread_target::prepare_to_store)
6515 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6516 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6517 (ravenscar_thread_target::stopped_by_watchpoint)
6518 (ravenscar_thread_target::stopped_data_address)
6519 (ravenscar_thread_target::core_of_thread): Use
6520 scoped_restore_current_thread and
6521 set_base_thread_from_ravenscar_task.
6522
6523 2020-08-07 Tom Tromey <tromey@adacore.com>
6524
6525 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6526
6527 2020-08-07 Tom Tromey <tromey@adacore.com>
6528
6529 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6530 update_inferior_ptid before update_thread_list.
6531 (temporarily_change_regcache_ptid): New class.
6532 (ravenscar_thread_target::fetch_registers)
6533 (ravenscar_thread_target::store_registers)
6534 (ravenscar_thread_target::prepare_to_store): Use base thread when
6535 forwarding operation.
6536
6537 2020-08-07 Tom Tromey <tromey@adacore.com>
6538
6539 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6540 "is_pid" case.
6541
6542 2020-08-07 Tom Tromey <tromey@adacore.com>
6543
6544 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6545 New methods.
6546 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6547 first.
6548 (ravenscar_thread_target::add_thread): Rename from
6549 ravenscar_add_thread.
6550 (ravenscar_thread_target::update_thread_list): Use a lambda.
6551 (ravenscar_thread_target::xfer_partial): New method.
6552
6553 2020-08-07 Tom Tromey <tromey@adacore.com>
6554
6555 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6556 gdb::function_view.
6557 (iterate_over_live_ada_tasks): Change type of argument.
6558 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6559 of argument.
6560
6561 2020-08-07 Tom Tromey <tromey@adacore.com>
6562
6563 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6564 Remove.
6565 (ravenscar_thread_target::extra_thread_info): Remove.
6566 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6567 defer to target beneath for non-Ravenscar threads.
6568
6569 2020-08-07 Tom Tromey <tromey@adacore.com>
6570
6571 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6572 get_base_thread_from_ravenscar_task>: Now methods.
6573 <m_cpu_map>: New member.
6574 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6575 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6576 (ravenscar_thread_target::task_is_currently_active): Update.
6577 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6578 Now a method.
6579 (ravenscar_thread_target::add_active_thread): Put initial thread
6580 into the m_cpu_map.
6581
6582 2020-08-07 Tom Tromey <tromey@adacore.com>
6583
6584 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6585 event_ptid.
6586
6587 2020-08-07 Tom Tromey <tromey@adacore.com>
6588
6589 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6590 runtime_initialized.
6591
6592 2020-08-07 Tom Tromey <tromey@adacore.com>
6593
6594 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6595 add_active_thread.
6596 (ravenscar_thread_target::add_active_thread): Now public.
6597 (ravenscar_inferior_created): Call add_active_thread after pushing
6598 the target.
6599
6600 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * regcache.c (ptid_regcache_map): New type.
6603 (target_ptid_regcache_map): New type.
6604 (regcaches): Change type to target_ptid_regcache_map.
6605 (get_thread_arch_aspace_regcache): Update to regcaches' new
6606 type.
6607 (regcache_thread_ptid_changed): Likewise.
6608 (registers_changed_ptid): Likewise.
6609 (regcaches_size): Likewise.
6610 (regcaches_test): Update.
6611 (regcache_thread_ptid_changed): Update.
6612 * regcache.h (regcache_up): New type.
6613 * gdbsupport/ptid.h (hash_ptid): New struct.
6614
6615 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6616
6617 * observable.h (thread_ptid_changed): Add parameter
6618 `process_stratum_target *`.
6619 * infrun.c (infrun_thread_ptid_changed): Add parameter
6620 `process_stratum_target *` and use it.
6621 (selftests): New namespace.
6622 (infrun_thread_ptid_changed): New function.
6623 (_initialize_infrun): Register selftest.
6624 * regcache.c (regcache_thread_ptid_changed): Add parameter
6625 `process_stratum_target *` and use it.
6626 (regcache_thread_ptid_changed): New function.
6627 (_initialize_regcache): Register selftest.
6628 * thread.c (thread_change_ptid): Pass target to
6629 thread_ptid_changed observable.
6630
6631 2020-08-06 Caroline Tice <cmtice@google.com>
6632
6633 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6634 (struct dwp_sections): Update field comments. Add loclists and
6635 rnglists fields.
6636 (struct virtual_v2_dwo_sections): Rename struct to
6637 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6638 size & offset fields for loclists and rnglists.
6639 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6640 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6641 skipping dummy type units.
6642 (create_dwp_hash_table): Update the large comment above the function to
6643 discuss Version 5 DWP files as well, with references. Update all the
6644 version checks in the function to check for version 5 as well. Add new
6645 section at the end to create dwp hash table for version 5.
6646 (create_dwp_v2_section): Rename function to
6647 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6648 Add V5 to error message text.
6649 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6650 into calls to create_dwp_v2_or_v5_section.
6651 (create_dwo_unit_in_dwp_v5): New function.
6652 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6653 check for version2; add else clause to handle version 5.
6654 (open_and_init_dwo_file): Add code to check dwarf version & only call
6655 create_debug_types_hash_table (with sections.types) if version is not 5;
6656 else call create_debug_type_hash_table, with sections.info.
6657 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6658 version 5.
6659 (dwarf2_locate_v5_dwp_sections): New function.
6660 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6661 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6662
6663 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6664
6665 * regcache.h (class regcache): Remove friend
6666 registers_changed_ptid.
6667 <regcache_thread_ptid_changed>: Remove.
6668 <regcaches>: Remove.
6669 * regcache.c (regcache::regcaches): Rename to...
6670 (regcaches): ... this. Make static.
6671 (get_thread_arch_aspace_regcache): Update.
6672 (regcache::regcache_thread_ptid_changed): Rename to...
6673 (regcache_thread_ptid_changed): ... this. Update.
6674 (class regcache_access): Remove.
6675 (regcaches_test): Update.
6676 (_initialize_regcache): Update.
6677 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6678 <forward_list>.
6679
6680 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6681
6682 * regcache.h (class regcache) <current_regcache>: Rename to...
6683 <regcaches>: ... this. Move doc here.
6684 * regcache.c (regcache::current_regcache) Rename to...
6685 (regcache::regcaches): ... this. Move doc to header.
6686 (get_thread_arch_aspace_regcache): Update.
6687 (regcache::regcache_thread_ptid_changed): Update.
6688 (registers_changed_ptid): Update.
6689 (class regcache_access) <current_regcache_size>: Rename to...
6690 <regcaches_size>: ... this.
6691 (current_regcache_test): Rename to...
6692 (regcaches_test): ... this.
6693 (_initialize_regcache): Update.
6694
6695 2020-08-06 Victor Collod <vcollod@nvidia.com>
6696
6697 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6698
6699 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6700
6701 * corelow.c (core_target::build_file_mappings): Don't output
6702 null pathname in warning.
6703
6704 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6705
6706 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6707 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6708 gdb.dwarf2/dw2-single-line-discriminators.exp,
6709 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6710
6711 2020-08-05 Tom Tromey <tromey@adacore.com>
6712
6713 PR rust/26197:
6714 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6715 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6716 Fix off-by-one and type size errors in ordinary case.
6717
6718 2020-08-05 Tom de Vries <tdevries@suse.de>
6719
6720 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6721 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6722
6723 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6724
6725 * frame.h (frame_id_p): Return bool.
6726 (frame_id_artificial_p): Return bool.
6727 (frame_id_eq): Return bool.
6728 (has_stack_frames): Return bool.
6729 (get_selected_frame): Fix typo in comment.
6730 (get_frame_pc_if_available): Return bool.
6731 (get_frame_address_in_block_if_available): Return bool.
6732 (get_frame_func_if_available): Return bool.
6733 (read_frame_register_unsigned): Return bool.
6734 (get_frame_register_bytes): Return bool.
6735 (safe_frame_unwind_memory): Return bool.
6736 (deprecated_frame_register_read): Return bool.
6737 (frame_unwinder_is): Return bool.
6738 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6739 bool.
6740 <this_id::p>: Likewise.
6741 <prev_p>: Likewise.
6742 (frame_stash_add): Return bool.
6743 (get_frame_id): Use bool.
6744 (frame_id_build_special) Use bool.
6745 (frame_id_build_unavailable_stack): Use bool.
6746 (frame_id_build): Use bool.
6747 (frame_id_p): Return bool, use true/false instead of 1/0.
6748 (frame_id_artificial_p): Likewise.
6749 (frame_id_eq): Likewise.
6750 (frame_id_inner): Likewise.
6751 (get_frame_func_if_available): Likewise.
6752 (read_frame_register_unsigned): Likewise.
6753 (deprecated_frame_register_read): Likewise.
6754 (get_frame_register_bytes): Likewise.
6755 (has_stack_frames): Likewise.
6756 (inside_main_func): Likewise.
6757 (inside_entry_func): Likewise.
6758 (get_frame_pc_if_available): Likewise.
6759 (get_frame_address_in_block_if_available): Likewise.
6760 (frame_unwinder_is): Likewise.
6761 (safe_frame_unwind_memory): Likewise.
6762 (frame_unwind_arch): Likewise.
6763
6764 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6765
6766 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6767 type to cached_copy_status.
6768 (fprintf_frame): Adjust.
6769 (get_frame_func_if_available): Adjust.
6770 (frame_cleanup_after_sniffer): Adjust.
6771
6772 2020-08-04 Mark Wielaard <mark@klomp.org>
6773
6774 * MAINTAINERS (Write After Approval): Update email address.
6775
6776 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6777
6778 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6779 dynamic_prop::const_val.
6780
6781 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6782
6783 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6784 dynamic_prop::kind.
6785
6786 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6787
6788 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6789
6790 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6791
6792 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6793
6794 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6795 Jose E. Marchesi <jose.marchesi@oracle.com>
6796
6797 * configure.tgt: Add entry for bpf-*-*.
6798 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6799 (ALLDEPFILES): Add bpf-tdep.c.
6800 * bpf-tdep.c: New file.
6801 * MAINTAINERS: Add bpf target and maintainer.
6802 * NEWS: Mention the support for the new target.
6803
6804 2020-08-04 Tom de Vries <tdevries@suse.de>
6805
6806 PR symtab/23270
6807 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6808 Error.
6809
6810 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6811
6812 * syscalls/freebsd.xml: Regenerate.
6813
6814 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6815
6816 * syscalls/update-freebsd.sh: Fix usage and year range.
6817
6818 2020-08-03 Tom de Vries <tdevries@suse.de>
6819
6820 PR symtab/26333
6821 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6822 DW_LNE_lo_user/DW_LNE_hi_user range.
6823
6824 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6825
6826 PR ada/26318
6827 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6828 kind.
6829
6830 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6831
6832 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6833
6834 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6835
6836 * breakpoint.c (set_breakpoint_condition): Update the condition
6837 expressions after checking that the input condition string parses
6838 successfully and does not contain junk at the end.
6839
6840 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6841
6842 * breakpoint.c (set_breakpoint_condition): Update the
6843 condition string after parsing the new condition successfully.
6844
6845 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6846
6847 * proc-api.c (_STRUCTURED_PROC): Don't define.
6848 * proc-events.c: Likewise.
6849 * proc-flags.c: Likewise.
6850 * proc-why.c: Likewise.
6851 * procfs.c: Likewise.
6852
6853 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6854 * configure, config.in: Regenerate.
6855
6856 2020-07-30 Tom de Vries <tdevries@suse.de>
6857
6858 PR build/26320
6859 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6860 m_red/m_green/m_blue in a union.
6861
6862 2020-07-29 Tom de Vries <tdevries@suse.de>
6863
6864 PR tdep/26280
6865 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6866
6867 2020-07-28 Tom Tromey <tromey@adacore.com>
6868
6869 PR symtab/26270:
6870 * symtab.h (find_pc_partial_function_sym): Declare.
6871 * cli/cli-cmds.c (disassemble_command): Use
6872 find_pc_partial_function_sym. Check asm_demangle.
6873 * blockframe.c (cache_pc_function_sym): New global.
6874 (cache_pc_function_name): Remove.
6875 (clear_pc_function_cache): Update.
6876 (find_pc_partial_function_sym): New function, from
6877 find_pc_partial_function.
6878 (find_pc_partial_function): Rewrite using
6879 find_pc_partial_function_sym.
6880
6881 2020-07-28 Tom Tromey <tromey@adacore.com>
6882
6883 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6884 help. Add usage.
6885
6886 2020-07-28 Tom Tromey <tromey@adacore.com>
6887
6888 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6889 <DW_OP_GNU_variable_value>: Cast to address type.
6890
6891 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6892
6893 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6894 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6895 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6896 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6897 (nbsd_get_siginfo_type): New.
6898 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6899 (_initialize_nbsd_tdep): New.
6900
6901 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6902
6903 PR binutils/26301
6904 * configure: Regenerated.
6905
6906 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6907
6908 PR binutils/26301
6909 * configure: Regenerated.
6910
6911 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6912
6913 * python/py-frame.c: Remove 'user-regs.h' include.
6914 (frapy_read_register): Rewrite to make use of
6915 gdbpy_parse_register_id.
6916 * python/py-registers.c (gdbpy_parse_register_id): New function,
6917 moved here from python/py-unwind.c. Updated the return type, and
6918 also accepts register descriptor objects.
6919 * python/py-unwind.c: Remove 'user-regs.h' include.
6920 (pyuw_parse_register_id): Moved to python/py-registers.c.
6921 (unwind_infopy_add_saved_register): Update to use
6922 gdbpy_parse_register_id.
6923 (pending_framepy_read_register): Likewise.
6924 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6925
6926 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * python/py-registers.c: Add 'user-regs.h' include.
6929 (register_descriptor_iter_find): New function.
6930 (register_descriptor_iterator_object_methods): New static global
6931 methods array.
6932 (register_descriptor_iterator_object_type): Add pointer to methods
6933 array.
6934
6935 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6936
6937 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6938 for all architectures on FreeBSD 11.3 and later.
6939
6940 2020-07-27 Tom Tromey <tromey@adacore.com>
6941
6942 * gcore.h (load_corefile): Don't declare.
6943
6944 2020-07-27 Tom de Vries <tdevries@suse.de>
6945
6946 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6947 * config.in: Regenerate.
6948 * configure: Regenerate.
6949
6950 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6951
6952 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6953 ws2tcpip.h. When checking whether socklen_t type is defined, use
6954 ws2tcpip.h if it is available and sys/socket.h isn't.
6955 * configure: Regenerate.
6956 * config.in: Regenerate.
6957
6958 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6959
6960 PR fortran/23051
6961 PR fortran/26139
6962 * valops.c (value_ind): Pass address to
6963 readjust_indirect_value_type.
6964 * value.c (readjust_indirect_value_type): Make parameter
6965 non-const, and add extra address parameter. Resolve original type
6966 before using it.
6967 * value.h (readjust_indirect_value_type): Update function
6968 signature and comment.
6969
6970 2020-07-25 Tom de Vries <tdevries@suse.de>
6971
6972 PR symtab/26243
6973 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6974 entries.
6975
6976 2020-07-24 Aaron Merey <amerey@redhat.com>
6977
6978 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6979 * configure: Rebuild.
6980
6981 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6982
6983 PR corefiles/26294
6984 * corelow.c (_initialize_corelow): Add period to help text
6985 for "maintenance print core-file-backed-mappings".
6986
6987 2020-07-23 Pedro Alves <pedro@palves.net>
6988
6989 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6990 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6991 meanwhile.
6992 * frame.c (frame_cache_generation, get_frame_cache_generation):
6993 New.
6994 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6995 (get_prev_frame_if_no_cycle): On exception, don't touch
6996 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6997 * frame.h (get_frame_cache_generation): Declare.
6998
6999 2020-07-23 Tom de Vries <tdevries@suse.de>
7000
7001 PR tui/26282
7002 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7003 New default constructor.
7004
7005 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7008 exclude non-statement entries.
7009
7010 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7011
7012 * NEWS (New commands): Mention new command
7013 "maintenance print core-file-backed-mappings".
7014
7015 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7016
7017 * corelow.c (gdbcmd.h): Include.
7018 (core_target::info_proc_mappings): New method.
7019 (get_current_core_target): New function.
7020 (maintenance_print_core_file_backed_mappings): New function.
7021 (_initialize_corelow): Add core-file-backed-mappings to
7022 "maint print" commands.
7023
7024 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7025
7026 * linux-tdep.c (dump_note_entry_p): New function.
7027 (linux_dump_mapping_p_ftype): New typedef.
7028 (linux_find_memory_regions_full): Add new parameter,
7029 should_dump_mapping_p.
7030 (linux_find_memory_regions): Adjust call to
7031 linux_find_memory_regions_full.
7032 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7033 call to linux_find_memory_regions_full.
7034
7035 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7036
7037 * corelow.c (solist.h, unordered_map): Include.
7038 (class core_target): Add field m_core_file_mappings and
7039 method build_file_mappings.
7040 (core_target::core_target): Call build_file_mappings.
7041 (core_target::~core_target): Free memory associated with
7042 m_core_file_mappings.
7043 (core_target::build_file_mappings): New method.
7044 (core_target::xfer_partial): Use m_core_file_mappings
7045 for memory transfers.
7046 * linux-tdep.c (linux_read_core_file_mappings): New
7047 function.
7048 (linux_core_info_proc_mappings): Rewrite to use
7049 linux_read_core_file_mappings.
7050 (linux_init_abi): Register linux_read_core_file_mappings.
7051
7052 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7053
7054 * arch-utils.c (default_read_core_file_mappings): New function.
7055 * arch-utils.c (default_read_core_file_mappings): Declare.
7056 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7057 * gdbarch.h, gdbarch.c: Regenerate.
7058
7059 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7060
7061 PR corefiles/25631
7062 * corelow.c (core_target:xfer_partial): Revise
7063 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7064 case after first checking the stratum beneath the core
7065 target.
7066 (has_all_memory): Return true.
7067 * target.c (raw_memory_xfer_partial): Revise comment
7068 regarding use of has_all_memory.
7069
7070 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7071
7072 * exec.h (section_table_xfer_memory): Revise declaration,
7073 replacing section name parameter with an optional callback
7074 predicate.
7075 * exec.c (section_table_xfer_memory): Likewise.
7076 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7077 of section_table_xfer_memory.
7078
7079 2020-07-22 Tom Tromey <tromey@adacore.com>
7080
7081 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7082 lookup_symbol_search_name.
7083
7084 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7085
7086 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7087 redundant local variable.
7088 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7089 reference, not pointer, update code accordingly.
7090
7091 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7092 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7093
7094 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7095 * jit.c (jit_breakpoint_re_set_internal): Use the
7096 `skip_jit_symbol_lookup` field.
7097
7098 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7099 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7100
7101 * jit.c (jit_read_descriptor): Define the descriptor address once,
7102 use twice.
7103 (jit_breakpoint_deleted): Move the declaration of the loop variable
7104 `iter` into the loop header.
7105 (jit_breakpoint_re_set_internal): Move the declaration of the local
7106 variable `objf_data` to the first point of definition.
7107 (jit_event_handler): Move the declaration of local variables
7108 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7109 Rename `objf` to `jited`.
7110
7111 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7112
7113 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7114 Remove.
7115 * jit.c (get_jiter_objfile_data): Update.
7116
7117 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7118 Simon Marchi <simon.marchi@polymtl.ca>
7119
7120 * jit.c (struct jit_program_space_data): Remove.
7121 (jit_program_space_key): Remove.
7122 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7123 stuff.
7124 (get_jit_program_space_data): Remove.
7125 (jit_breakpoint_deleted): Iterate on all of the program space's
7126 objfiles.
7127 (jit_inferior_init): Likewise.
7128 (jit_breakpoint_re_set_internal): Likewise. Also change return
7129 type to void.
7130 (jit_breakpoint_re_set): Pass current_program_space to
7131 jit_breakpoint_re_set_internal.
7132
7133 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7134
7135 * jit.h (struct jiter_objfile_data) <cached_code_address,
7136 jit_breakpoint>: Move to here from ...
7137 * jit.c (jit_program_space_data): ... here.
7138 (jiter_objfile_data::~jiter_objfile_data): Update.
7139 (jit_breakpoint_deleted): Update.
7140 (jit_breakpoint_re_set_internal): Update.
7141
7142 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7143
7144 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7145 checks.
7146 (jit_read_descriptor): Remove NULL check.
7147 (jit_event_handler): Add an assertion.
7148
7149 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7150
7151 * jit.h (struct jit_objfile_data): Split into...
7152 (struct jiter_objfile_data): ... this ...
7153 (struct jited_objfile_data): ... and this.
7154 * objfiles.h (struct objfile) <jit_data>: Remove.
7155 <jiter_data, jited_data>: New fields.
7156 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7157 (jiter_objfile_data::~jiter_objfile_data): ... this.
7158 (get_jit_objfile_data): Rename to ...
7159 (get_jiter_objfile_data): ... this.
7160 (add_objfile_entry): Update.
7161 (jit_read_descriptor): Use get_jiter_objfile_data.
7162 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7163 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7164 (jit_inferior_exit_hook): Use objfile's jited_data field.
7165
7166 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7167
7168 * jit.h: Forward-declare `struct minimal_symbol`.
7169 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7170 constructor, destructor, and an objfile* field.
7171 * jit.c (jit_objfile_data): Remove.
7172 (struct jit_objfile_data): Migrate from here to jit.h.
7173 (jit_objfile_data::~jit_objfile_data): New destructor
7174 implementation with code moved from free_objfile_data.
7175 (free_objfile_data): Delete.
7176 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7177 (jit_find_objf_with_entry_addr): Ditto.
7178 (jit_inferior_exit_hook): Ditto.
7179 (_initialize_jit): Remove the call to
7180 register_objfile_data_with_cleanup.
7181 * objfiles.h (struct objfile) <jit_data>: New field.
7182
7183 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7184
7185 * jit.h: Forward-declare `struct objfile`.
7186 (jit_event_handler): Add a second parameter, the JITer objfile.
7187 * jit.c (jit_read_descriptor): Change the signature to take the
7188 JITer objfile as an argument instead of the jit_program_space_data.
7189 (jit_inferior_init): Update the call to jit_read_descriptor.
7190 (jit_event_handler): Use the new JITer objfile argument when calling
7191 jit_read_descriptor.
7192 * breakpoint.c (handle_jit_event): Update the call to
7193 jit_event_handler to pass the JITer objfile.
7194
7195 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7196
7197 * gdbarch.c: Regenerate.
7198 * gdbarch.h: Regenerate.
7199 * gdbarch.sh (handle_segmentation_fault): Remove method.
7200 * infrun.c (handle_segmentation_fault): Remove.
7201 (print_signal_received_reason): Remove call to
7202 handle_segmentation_fault.
7203
7204 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7205
7206 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7207 Rename to sparc64_linux_report_signal_info and add siggnal
7208 argument.
7209 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7210 instead of sparc64_linux_handle_segmentation_fault.
7211
7212 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7213
7214 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7215 i386_linux_report_signal_info instead of
7216 i386_linux_handle_segmentation_fault.
7217 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7218 to i386_linux_report_signal_info and add siggnal argument.
7219 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7220 of i386_linux_handle_segmentation_fault.
7221 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7222 to i386_linux_report_signal_info and add siggnal argument.
7223
7224 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7225
7226 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7227 hook if present.
7228
7229 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7230
7231 * gdbarch.c: Regenerate.
7232 * gdbarch.h: Regenerate.
7233 * gdbarch.sh (report_signal_info): New method.
7234 * infrun.c (print_signal_received_reason): Invoke gdbarch
7235 report_signal_info hook if present.
7236
7237 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7238
7239 * python/py-registers.c : Add 'unordered_map' include.
7240 (gdbpy_new_reggroup): Renamed to...
7241 (gdbpy_get_reggroup): ...this. Update to only create register
7242 group descriptors when needed.
7243 (gdbpy_reggroup_iter_next): Update.
7244
7245 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7246
7247 * python/py-registers.c (gdbpy_register_object_data): New static
7248 global.
7249 (gdbpy_register_object_data_init): New function.
7250 (gdbpy_new_register_descriptor): Renamed to...
7251 (gdbpy_get_register_descriptor): ...this, and update to reuse
7252 existing register descriptors where possible.
7253 (gdbpy_register_descriptor_iter_next): Update.
7254 (gdbpy_initialize_registers): Register new gdbarch data.
7255
7256 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7257
7258 * linux-nat.c (stopped_pids): Make static.
7259
7260 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7261
7262 PR ada/26235
7263 * gdbtypes.c (ada_discrete_type_low_bound,
7264 ada_discrete_type_high_bound): Handle undefined bounds.
7265
7266 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7267
7268 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7269 declaration.
7270 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7271 function.
7272
7273 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7274
7275 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7276 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7277 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7278 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7279 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7280 method.
7281
7282 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7283
7284 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7285 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7286 which are deprecated in Guile 3.0.
7287 * configure.ac (try_guile_versions): Add "guile-3.0".
7288 * configure (try_guile_versions): Regenerate.
7289 * NEWS: Update entry.
7290
7291 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7292 Doug Evans <dje@google.com>
7293
7294 PR gdb/21104
7295 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7296 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7297 USING_GUILE_BEFORE_2_2.
7298 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7299 Change type to 'scm_t_port_type *'.
7300 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7301 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7302 parameter and honor it. Update callers.
7303 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7304 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7305 functions.
7306 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7307 USING_GUILE_BEFORE_2_2.
7308 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7309 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7310 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7311 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7312 and 'SCM_PORT_TYPE'.
7313 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7314 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7315 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7316 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7317 [!USING_GUILE_BEFORE_2_2]: New functions.
7318 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7319 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7320 'gdbscm_memory_port_read'.
7321 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7322 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7323 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7324 function.
7325 (ioscm_init_memory_port): Remove.
7326 (ioscm_init_memory_port_stream): New function
7327 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7328 function.
7329 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7330 Return scm_from_uint (0).
7331 (gdbscm_set_memory_port_read_buffer_size_x)
7332 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7333 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7334 Return scm_from_uint (0).
7335 (gdbscm_set_memory_port_write_buffer_size_x)
7336 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7337 * configure.ac (try_guile_versions): Add "guile-2.2".
7338 * configure: Regenerate.
7339 * NEWS: Add entry.
7340
7341 2020-07-18 Tom Tromey <tom@tromey.com>
7342
7343 * linux-nat.c (linux_multi_process): Remove.
7344 (linux_nat_target::supports_multi_process): Return true.
7345
7346 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7347
7348 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7349 (riscv_lookup_target_description): Return pointer out of
7350 unique_ptr.
7351 * target-descriptions.c (allocate_target_description): Add
7352 comment.
7353 (target_desc_deleter::operator()): Likewise.
7354 * target-descriptions.h (struct target_desc_deleter): Moved to
7355 gdbsupport/tdesc.h.
7356 (target_desc_up): Likewise.
7357
7358 2020-07-17 Tom Tromey <tromey@adacore.com>
7359
7360 * linux-nat.c (linux_nat_target::supports_non_stop)
7361 (linux_nat_target::always_non_stop_p): Use "true".
7362 (linux_nat_target::supports_disable_randomization): Use "true" and
7363 "false".
7364
7365 2020-07-16 Caroline Tice <cmtice@google.com>
7366
7367 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7368 (RNGLIST_HEADER_SIZE64): New constant definition.
7369 (struct dwop_section_names): Add rnglists_dwo.
7370 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7371 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7372 (struct dwo_sections): Add rnglists field.
7373 (read_attribut_reprocess): Add tag parameter.
7374 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7375 (cu_debug_rnglists_section): New function (decl & definition).
7376 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7377 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7378 die whose range is being checked; get rnglist section from
7379 cu_debug_rnglists_section, to get from either objfile or dwo file as
7380 appropriate. Add cases for DW_RLE_base_addressx,
7381 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7382 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7383 test inside if-condition and updating complaint message.
7384 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7385 dwarf2_rnglists_process.
7386 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7387 dwarf2_ranges_process.
7388 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7389 need_ranges_base and update comment appropriately. Also pass die tag
7390 to dwarf2_ranges_read.
7391 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7392 need_ranges_base and update comment appropriately. Also pass die tag
7393 to dwarf2_ranges_process.
7394 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7395 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7396 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7397 need_ranges_base and update comment appropriately. Also pass die tag
7398 to read_attribute_reprocess and dwarf2_ranges_read.
7399 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7400 and update function comment appropriately.
7401 (read_loclist_index): Call read_loclists_rnglists_header instead of
7402 read_loclist_header.
7403 (read_rnglist_index): New function.
7404 (read_attribute_reprocess): Add tag parameter. Add code for
7405 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7406 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7407
7408 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7409
7410 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7411 being resolved.
7412
7413 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7414
7415 * arch-utils.c (show_architecture): Update formatting of messages.
7416
7417 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7418
7419 * gdbtypes.h (struct type) <bounds>: Handle array and string
7420 types.
7421 * ada-lang.c (assign_aggregate): Use type::bounds on
7422 array/string type.
7423 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7424 * c-varobj.c (c_number_of_children): Likewise.
7425 (c_describe_child): Likewise.
7426 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7427 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7428 (f_type_print_base): Likewise.
7429 * f-valprint.c (f77_array_offset_tbl): Likewise.
7430 (f77_get_upperbound): Likewise.
7431 (f77_print_array_1): Likewise.
7432 * guile/scm-type.c (gdbscm_type_range): Likewise.
7433 * m2-typeprint.c (m2_array): Likewise.
7434 (m2_is_long_set_of_type): Likewise.
7435 * m2-valprint.c (get_long_set_bounds): Likewise.
7436 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7437 * python/py-type.c (typy_range): Likewise.
7438 * rust-lang.c (rust_internal_print_type): Likewise.
7439 * type-stack.c (type_stack::follow_types): Likewise.
7440 * valarith.c (value_subscripted_rvalue): Likewise.
7441 * valops.c (value_cast): Likewise.
7442
7443 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7444
7445 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7446 callers to use the equivalent accessor methods.
7447
7448 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7449
7450 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7451 (struct type) <bit_stride>: New method.
7452 (TYPE_BIT_STRIDE): Remove.
7453 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7454
7455 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7456
7457 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7458 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7459 callers to use the equivalent accessor methods instead.
7460
7461 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7462
7463 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7464 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7465 callers to use the equivalent accessor methods instead.
7466
7467 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7468
7469 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7470 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7471 to use dynamic_prop::kind.
7472
7473 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7474
7475 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7476 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7477 to get the bound property's kind and check against
7478 PROP_UNDEFINED.
7479
7480 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7483 all callers to use type::range_bounds followed by
7484 dynamic_prop::{low,high}.
7485
7486 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7487
7488 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7489 const_val, set_const_val, baton, set_locexpr, set_loclist,
7490 set_addr_offset, variant_parts, set_variant_parts,
7491 original_type, set_original_type>: New methods.
7492 <kind>: Rename to...
7493 <m_kind>: ... this. Update all users to use the new methods
7494 instead.
7495 <data>: Rename to...
7496 <m_data>: ... this. Update all users to use the new methods
7497 instead.
7498
7499 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7500
7501 * gdbtypes.c (get_discrete_bounds): Return failure if
7502 the range type's bounds are not both defined and constant
7503 values.
7504 (get_array_bounds): Update comment. Remove undefined bound check.
7505
7506 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7507
7508 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7509 the type::bounds method directly.
7510
7511 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7512
7513 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7514 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7515 are used to set the range type's bounds to use set_bounds.
7516
7517 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7518
7519 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7520
7521 2020-07-10 Pedro Alves <pedro@palves.net>
7522
7523 * gdbthread.h (inferior_ref): Define.
7524 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7525 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7526 * thread.c
7527 (scoped_restore_current_thread::restore):
7528 Adjust to gdb::ref_ptr.
7529 (scoped_restore_current_thread::~scoped_restore_current_thread):
7530 Remove manual decref handling.
7531 (scoped_restore_current_thread::scoped_restore_current_thread):
7532 Adjust to use
7533 inferior_ref::new_reference/thread_info_ref::new_reference.
7534 Incref the thread before calling get_frame_id instead of after.
7535 Let TARGET_CLOSE_ERROR propagate.
7536
7537 2020-07-10 Pedro Alves <pedro@palves.net>
7538
7539 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7540 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7541 NOT_AVAILABLE_ERROR.
7542 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7543 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7544
7545 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7546 Pedro Alves <pedro@palves.net>
7547
7548 PR gdb/26199
7549 * infrun.c (threads_are_resumed_pending_p): Delete.
7550 (do_target_wait): Remove threads_are_executing and
7551 threads_are_resumed_pending_p checks from the inferior_matches
7552 lambda. Update comments.
7553
7554 2020-07-10 Pedro Alves <pedro@palves.net>
7555
7556 PR gdb/26199
7557 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7558 executing threads.
7559
7560 2020-07-10 Pedro Alves <pedro@palves.net>
7561
7562 PR gdb/26199
7563 * infrun.c (handle_no_resumed): Handle multiple targets.
7564
7565 2020-07-10 Pedro Alves <pedro@palves.net>
7566
7567 PR gdb/26199
7568 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7569 target_is_async_p.
7570
7571 2020-07-10 Pedro Alves <pedro@palves.net>
7572
7573 PR gdb/26199
7574 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7575 threads, not all threads.
7576
7577 2020-07-10 Pedro Alves <pedro@palves.net>
7578
7579 PR gdb/26199
7580 * remote.c (remote_target::open_1): Pass remote target pointer as
7581 data to create_async_event_handler.
7582 (remote_async_inferior_event_handler): Mark async event handler
7583 before returning if the remote target still has either pending
7584 events or unacknowledged notifications.
7585
7586 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7587
7588 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7589 declaration.
7590 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7591 function.
7592
7593 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7594
7595 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7596 inferior_ptid.
7597
7598 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7599
7600 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7601 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7602 AT_FREEBSD_PS_STRINGS.
7603
7604 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7605
7606 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7607 of debugfile path on Windows.
7608
7609 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7610
7611 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7612 argument to 'data'.
7613
7614 2020-07-08 Tom Tromey <tromey@adacore.com>
7615
7616 * ada-lang.c (ada_exception_message_1): Use read_memory.
7617
7618 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7619
7620 PR python/22748
7621 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7622 special handling for inline frames.
7623 * findvar.c (value_of_register_lazy): Skip inline frames when
7624 creating lazy register values.
7625 * frame.c (frame_id_computed_p): Delete definition.
7626 * frame.h (frame_id_computed_p): Delete declaration.
7627
7628 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7629
7630 * NEWS: Mention additions to Python API.
7631 * python/py-arch.c (archpy_register_groups): New function.
7632 (arch_object_methods): Add 'register_groups' method.
7633 * python/py-registers.c (reggroup_iterator_object): New struct.
7634 (reggroup_object): New struct.
7635 (gdbpy_new_reggroup): New function.
7636 (gdbpy_reggroup_to_string): New function.
7637 (gdbpy_reggroup_name): New function.
7638 (gdbpy_reggroup_iter): New function.
7639 (gdbpy_reggroup_iter_next): New function.
7640 (gdbpy_new_reggroup_iterator): New function
7641 (gdbpy_initialize_registers): Register new types.
7642 (reggroup_iterator_object_type): Define new Python type.
7643 (gdbpy_reggroup_getset): New static global.
7644 (reggroup_object_type): Define new Python type.
7645 * python/python-internal.h
7646
7647 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7648
7649 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7650 * python/py-arch.c (archpy_registers): New function.
7651 (arch_object_methods): Add 'registers' method.
7652 * python/py-registers.c: New file.
7653 * python/python-internal.h
7654 (gdbpy_new_register_descriptor_iterator): Declare.
7655 (gdbpy_initialize_registers): Declare.
7656 * python/python.c (do_start_initialization): Call
7657 gdbpy_initialize_registers.
7658 * NEWS: Mention additions to the Python API.
7659
7660 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * NEWS: Mention new Python API method.
7663 * python/py-unwind.c (pending_framepy_architecture): New function.
7664 (pending_frame_object_methods): Add architecture method.
7665
7666 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7667
7668 * gdbarch.c: Regenerate.
7669 * gdbarch.h: Regenerate.
7670 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7671 (gdbarch_data): Use internal_error for the case where
7672 deprecated_set_gdbarch_data was originally needed.
7673 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7674 and use passed in obstack.
7675 (libunwind_frame_set_descr): Should no longer get back NULL from
7676 gdbarch_data.
7677 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7678 type.
7679 * user-regs.c (user_regs_init): Update parameters, and use passed
7680 in obstack.
7681 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7682 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7683
7684 2020-07-06 Tom de Vries <tdevries@suse.de>
7685
7686 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7687 End-Of-Sequence in lte_is_less_than.
7688 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7689 "gdb: Don't reorder line table entries too much when sorting".
7690
7691 2020-07-06 Tom de Vries <tdevries@suse.de>
7692
7693 PR tui/26205
7694 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7695
7696 2020-07-05 Tom de Vries <tdevries@suse.de>
7697
7698 PR build/26187
7699 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7700 std::uncaught_exceptions instead of deprecated
7701 std::uncaught_exception.
7702
7703 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * macroexp.h (macro_stringify): Return
7706 gdb::unique_xmalloc_ptr<char>.
7707 * macroexp.c (macro_stringify): Likewise.
7708 * macrotab.c (fixup_definition): Update.
7709
7710 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7711
7712 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7713 (lex_one_token): Update.
7714 * macroexp.c (struct macro_buffer) <release>: Return
7715 gdb::unique_xmalloc_ptr<char>.
7716 (macro_stringify): Update.
7717 (macro_expand): Update.
7718 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7719 * macroexp.h (macro_expand_next): Likewise.
7720
7721 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * macroexp.h (macro_lookup_ftype): Remove.
7724 (macro_expand, macro_expand_once, macro_expand_next): Remove
7725 lookup function parameters, add scope parameter.
7726 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7727 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7728 * macroscope.h (standard_macro_lookup): Change parameter type
7729 to macro_scope.
7730 * macroscope.c (standard_macro_lookup): Likewise.
7731 * c-exp.y (lex_one_token): Update.
7732 * macrocmd.c (macro_expand_command): Likewise.
7733 (macro_expand_once_command): Likewise.
7734
7735 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7736
7737 * inf-loop.c (inferior_event_handler): Remove client_data param.
7738 * inf-loop.h (inferior_event_handler): Likewise.
7739 * infcmd.c (step_1): Adjust.
7740 * infrun.c (proceed): Adjust.
7741 (fetch_inferior_event): Remove client_data param.
7742 (infrun_async_inferior_event_handler): Adjust.
7743 * infrun.h (fetch_inferior_event): Remove `void *` param.
7744 * linux-nat.c (handle_target_event): Adjust.
7745 * record-btrace.c (record_btrace_handle_async_inferior_event):
7746 Adjust.
7747 * record-full.c (record_full_async_inferior_event_handler):
7748 Adjust.
7749 * remote.c (remote_async_inferior_event_handler): Adjust.
7750
7751 2020-07-01 Tom Tromey <tom@tromey.com>
7752
7753 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7754 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7755
7756 2020-07-01 Tom Tromey <tom@tromey.com>
7757
7758 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7759 tui_gen_win_info.
7760 (tui_win_info::make_window): Merge with
7761 tui_gen_win_info::make_window.
7762 (tui_win_info::make_visible): Move from tui_gen_win_info.
7763 * tui/tui-win.c (tui_win_info::max_width): Move from
7764 tui_gen_win_info.
7765 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7766 type.
7767 <window_factory>: Likewise.
7768 * tui/tui-layout.c (tui_win_info::resize): Move from
7769 tui_gen_win_info.
7770 (make_standard_window): Change return type.
7771 (get_locator_window, tui_get_window_by_name): Likewise.
7772 (tui_layout_window::apply): Remove a cast.
7773 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7774 (struct tui_win_info): Merge with tui_gen_win_info.
7775 (struct tui_gen_win_info): Remove.
7776
7777 2020-07-01 Tom Tromey <tom@tromey.com>
7778
7779 * tui/tui-stack.h (struct tui_locator_window): Derive from
7780 tui_win_info.
7781 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7782 <can_box>: New method.
7783
7784 2020-07-01 Tom Tromey <tom@tromey.com>
7785
7786 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7787
7788 2020-07-01 Tom Tromey <tom@tromey.com>
7789
7790 * tui/tui-regs.c (tui_data_window::display_registers_from)
7791 (tui_data_window::display_registers_from)
7792 (tui_data_window::first_data_item_displayed)
7793 (tui_data_window::delete_data_content_windows): Update.
7794 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7795 Remove.
7796 (tui_data_window::check_register_values): Update.
7797 (tui_data_item_window::rerender): Add parameters. Update.
7798 (tui_data_item_window::refresh_window): Remove.
7799 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7800 virtual.
7801 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7802 tui_gen_win_info.
7803 <refresh_window, max_height, min_height>: Remove.
7804 <rerender>: Add parameters.
7805 <x, y, visible>: New members.
7806 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7807 <m_item_width>: New member.
7808
7809 2020-07-01 Tom Tromey <tom@tromey.com>
7810
7811 * tui/tui-regs.c (tui_data_window::show_register_group)
7812 (tui_data_window::check_register_values): Update.
7813 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7814 from item_no.
7815
7816 2020-07-01 Tom Tromey <tom@tromey.com>
7817
7818 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7819 useless "if".
7820
7821 2020-07-01 Tom Tromey <tom@tromey.com>
7822
7823 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7824 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7825
7826 2020-07-01 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7829 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7830 (struct tui_line_or_address): Move from tui-data.h.
7831 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7832 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7833 (tui_cmd_window, tui_source_window_base, tui_source_window)
7834 (tui_disasm_window): Don't declare.
7835 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7836 to tui-winsource.h.
7837 (SINGLE_KEY): Move to tui-stack.c.
7838
7839 2020-07-01 Tom Tromey <tom@tromey.com>
7840
7841 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7842 std::string.
7843 * tui/tui-regs.c (class tab_expansion_file): New.
7844 (tab_expansion_file::write): New method.
7845 (tui_register_format): Change return type. Use
7846 tab_expansion_file.
7847 (tui_get_register, tui_data_window::display_registers_from)
7848 (tui_data_item_window::rerender): Update.
7849 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7850 * tui/tui-io.c (tui_expand_tabs): Remove.
7851
7852 2020-07-01 Tom Tromey <tom@tromey.com>
7853
7854 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7855
7856 2020-07-01 Fangrui Song <maskray@google.com>
7857
7858 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7859
7860 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7861
7862 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7863 forms for DW_AT_associated and DW_AT_allocated attributes,
7864 which is already checked in function attr_to_dynamic_prop.
7865
7866 2020-06-30 Tom Tromey <tromey@adacore.com>
7867
7868 * dwarf2/read.c (quirk_rust_enum): Correctly call
7869 alloc_rust_variant for default-less enum.
7870
7871 2020-06-30 Tom Tromey <tromey@adacore.com>
7872
7873 PR build/26183:
7874 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7875 gdb::to_string.
7876
7877 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7880 * gdbarch.h: Re-generate.
7881
7882 2020-06-28 Tom Tromey <tom@tromey.com>
7883
7884 * command.h (cmd_types): Remove.
7885 (cmd_type): Don't declare.
7886 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7887 typedef.
7888 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7889 * cli/cli-decode.c (cmd_type): Remove.
7890
7891 2020-06-27 Pedro Alves <palves@redhat.com>
7892
7893 * fork-child.c (prefork_hook): Adjust.
7894 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7895 Delete.
7896 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7897 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7898 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7899 Remove declarations.
7900 (struct inferior) <set_tty, tty>: New methods.
7901 (struct inferior) <terminal>: Rename to ...
7902 (struct inferior) <m_terminal>: ... this and make private.
7903 * main.c (captured_main_1): Adjust.
7904 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7905 (mi_cmd_inferior_tty_show): Adjust.
7906 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7907 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7908
7909 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7910
7911 * configure.ac: Add --enable-libctf: handle --disable-static
7912 properly.
7913 * acinclude.m4: sinclude ../config/enable.m4.
7914 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7915 (LIBCTF): Substitute in.
7916 (CTF_DEPS): New, likewise.
7917 (CLIBS): libctf needs symbols from libbfd: move earlier.
7918 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7919 flags.
7920 * ctfread.c: Surround in ENABLE_LIBCTF.
7921 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7922 * configure: Regenerate.
7923 * config.in: Likewise.
7924
7925 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7928
7929 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * inferior.h (struct inferior) <terminal>: Change type to
7932 gdb::unique_xmalloc_ptr<char>.
7933 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7934 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7935 field, adjust to unique pointer.
7936 (get_inferior_io_terminal): Adjust to unique pointer.
7937
7938 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7939
7940 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7941 registers, not just the known core set of registers.
7942
7943 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7946 fflags, frm, and fcsr registers.
7947 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7948 restore groups.
7949 (riscv_tdesc_unknown_reg): New function.
7950 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7951 tdesc_use_registers.
7952 * riscv-tdep.h (struct gdbarch_tdep): Add
7953 unknown_csrs_first_regnum, unknown_csrs_count,
7954 duplicate_fflags_regnum, duplicate_frm_regnum, and
7955 duplicate_fcsr_regnum fields.
7956
7957 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7958
7959 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7960 callback, use the callback (when not null) to help number unknown
7961 registers.
7962 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7963 (tdesc_use_registers): Add extra parameter to declaration.
7964
7965 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7966
7967 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7968 in the file.
7969 (class riscv_pending_register_alias): Likewise.
7970 (riscv_register_feature::register_info): Change 'required_p' field
7971 to 'required', and change its type. Add 'check' member function.
7972 (riscv_register_feature::register_info::check): Define new member
7973 function.
7974 (riscv_xreg_feature): Change initialisation of 'required' field.
7975 (riscv_freg_feature): Likewise.
7976 (riscv_virtual_feature): Likewise.
7977 (riscv_csr_feature): Likewise.
7978 (riscv_check_tdesc_feature): Take extra parameter, the csr
7979 tdesc_feature, rewrite the function to use the new
7980 riscv_register_feature::register_info::check function.
7981 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7982
7983 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7984
7985 * features/Makefile: Remove all references to the deleted files
7986 below.
7987 * features/riscv/32bit-csr.c: Deleted.
7988 * features/riscv/32bit-csr.xml: Deleted.
7989 * features/riscv/64bit-csr.c: Deleted.
7990 * features/riscv/64bit-csr.xml: Deleted.
7991 * features/riscv/rebuild-csr-xml.sh: Deleted.
7992
7993 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7994
7995 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7996 whitespace error for declaration of names member variable.
7997 (struct riscv_register_feature): Add new prefer_first_name member
7998 variable, and fix whitespace error in declaration of registers.
7999 (riscv_xreg_feature): Initialize prefer_first_name field.
8000 (riscv_freg_feature): Likewise.
8001 (riscv_virtual_feature): Likewise.
8002 (riscv_csr_feature): Likewise.
8003 (riscv_register_name): Expand on comments. Remove register name
8004 modifications for CSR and virtual registers.
8005
8006 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8007
8008 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8009 errors.
8010
8011 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8012
8013 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8014 riscv-opc.h.
8015 (class riscv_pending_register_alias): New class.
8016 (riscv_check_tdesc_feature): Take vector of pending aliases and
8017 populate it as appropriate.
8018 (riscv_setup_register_aliases): Delete.
8019 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8020 to riscv_check_tdesc_feature in all cases. Use the vector to
8021 create the register aliases.
8022
8023 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8024
8025 * sol2-tdep.c (sol2_static_transform_name): Remove.
8026 (sol2_init_abi): Don't register it.
8027 * gdbarch.sh (static_transform_name): Remove.
8028 * gdbarch.c, gdbarch.h: Regenerate.
8029
8030 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8031 gdbarch_static_transform_name.
8032 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8033 * stabsread.c (define_symbol) <'X'>: Remove.
8034 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8035 handling.
8036 <'V'>: Likewise.
8037 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8038 <'S'>: Remove call to gdbarch_static_transform_name.
8039
8040 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8041
8042 * procfs.c (procfs_pre_trace): New function.
8043 (procfs_target::create_inferior): Pass it to fork_inferior.
8044
8045 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8046
8047 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8048 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8049 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8050 sol2-tdep.o, sparc-sol2-tdep.o.
8051 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8052 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8053 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8054 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8055
8056 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8057
8058 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8059 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8060 Call sol2_init_abi.
8061 Remove calls to set_gdbarch_skip_solib_resolver,
8062 set_gdbarch_core_pid_to_str.
8063 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8064 (i386_sol2_static_transform_name): Remove.
8065 (i386_sol2_init_abi): Call sol2_init_abi.
8066 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8067 set_gdbarch_static_transform_name,
8068 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8069 Use sol2_sigtramp_p.
8070 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8071 (sol2_sigtramp_p): New function.
8072 (sol2_static_transform_name): New function.
8073 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8074 (sol2_init_abi): New function.
8075 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8076 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8077 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8078 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8079 (sparc_sol2_static_transform_name): Remove.
8080 (sparc32_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,
8084 set_gdbarch_core_pid_to_str.
8085 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8086 (sparc_sol2_static_transform_name): Remove
8087 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8088 call sol2_sigtramp_p.
8089 (sparc64_sol2_init_abi): Call sol2_init_abi.
8090 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8091 set_gdbarch_static_transform_name,
8092 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8093
8094 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8095
8096 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8097 * exec.c (validate_exec_file): If from_tty, set both
8098 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8099 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8100 and from_tty, unconditionally ask a confirmation.
8101
8102 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * target-descriptions.c (tdesc_architecture_name): Protect against
8105 NULL pointer dereference.
8106 (maint_print_xml_tdesc_cmd): New function.
8107 (_initialize_target_descriptions): Register new 'maint print
8108 xml-tdesc' command and give it the filename completer.
8109 * NEWS: Mention new 'maint print xml-tdesc' command.
8110
8111 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8112
8113 * target-descriptions.c (class tdesc_compatible_info): New class.
8114 (struct target_desc): Change type of compatible vector.
8115 (tdesc_compatible_p): Update for change in type of
8116 target_desc::compatible.
8117 (tdesc_compatible_info_list): New function.
8118 (tdesc_compatible_info_arch_name): New function.
8119 (tdesc_add_compatible): Update for change in type of
8120 target_desc::compatible.
8121 (print_c_tdesc::visit_pre): Likewise.
8122
8123 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8124
8125 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8126 whitespace to underscore.
8127 (maint_print_c_tdesc_cmd): Use fake filename for target
8128 descriptions that came from the target.
8129 (_initialize_target_descriptions): Add filename command completion
8130 for 'maint print c-tdesc'.
8131
8132 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8133
8134 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8135 lines.
8136
8137 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8140 lines.
8141 (dwarf2_find_location_expression): Likewise.
8142 (call_site_parameter_matches): Likewise.
8143 (dwarf2_compile_expr_to_ax): Likewise.
8144 (disassemble_dwarf_expression): Likewise.
8145 (loclist_describe_location): Likewise.
8146
8147 2020-06-23 Pedro Alves <palves@redhat.com>
8148
8149 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8150 progspace-and-thread.h. Include scoped-mock-context.h instead.
8151 (register_to_value_test): Use scoped_mock_context.
8152 * regcache.c: Include "scoped-mock-context.h".
8153 (cooked_read_test): Don't error out if a target is already pushed.
8154 Use scoped_mock_context. Adjust.
8155 * scoped-mock-context.h: New file.
8156
8157 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8160 initializer.
8161 (ada_language::is_string_type_p): New member function.
8162 * c-lang.c (c_language_data): Delete la_is_string_type_p
8163 initializer.
8164 (cplus_language_data): Likewise.
8165 (asm_language_data): Likewise.
8166 (minimal_language_data): Likewise.
8167 * d-lang.c (d_language_data): Likewise.
8168 * f-lang.c (f_is_string_type_p): Delete function, implementation
8169 moved to f_language::is_string_type_p.
8170 (f_language_data): Delete la_is_string_type_p initializer.
8171 (f_language::is_string_type_p): New member function,
8172 implementation from f_is_string_type_p.
8173 * go-lang.c (go_is_string_type_p): Delete function, implementation
8174 moved to go_language::is_string_type_p.
8175 (go_language_data): Delete la_is_string_type_p initializer.
8176 (go_language::is_string_type_p): New member function,
8177 implementation from go_is_string_type_p.
8178 * language.c (language_defn::is_string_type_p): Define new member
8179 function.
8180 (default_is_string_type_p): Make static, add comment copied from
8181 header file.
8182 (unknown_language_data): Delete la_is_string_type_p initializer.
8183 (unknown_language::is_string_type_p): New member function.
8184 (auto_language_data): Delete la_is_string_type_p initializer.
8185 (auto_language::is_string_type_p): New member function.
8186 * language.h (language_data): Delete la_is_string_type_p field.
8187 (language_defn::is_string_type_p): Declare new function.
8188 (default_is_string_type_p): Delete desclaration, move comment to
8189 definition.
8190 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8191 moved to m2_language::is_string_type_p.
8192 (m2_language_data): Delete la_is_string_type_p initializer.
8193 (m2_language::is_string_type_p): New member function,
8194 implementation from m2_is_string_type_p.
8195 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8196 initializer.
8197 * opencl-lang.c (opencl_language_data): Likewise.
8198 * p-lang.c (pascal_is_string_type_p): Delete function,
8199 implementation moved to pascal_language::is_string_type_p.
8200 (pascal_language_data): Delete la_is_string_type_p initializer.
8201 (pascal_language::is_string_type_p): New member function,
8202 implementation from pascal_is_string_type_p.
8203 * rust-lang.c (rust_is_string_type_p): Delete function,
8204 implementation moved to rust_language::is_string_type_p.
8205 (rust_language_data): Delete la_is_string_type_p initializer.
8206 (rust_language::is_string_type_p): New member function,
8207 implementation from rust_is_string_type_p.
8208 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8209 is_string_type_p.
8210
8211 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8212
8213 * ada-lang.c (ada_language_data): Delete la_print_typedef
8214 initializer.
8215 (ada_language::print_typedef): New member function.
8216 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8217 (cplus_language_data): Likewise.
8218 (asm_language_data): Likewise.
8219 (minimal_language_data): Likewise.
8220 * d-lang.c (d_language_data): Likewise.
8221 * f-lang.c (f_language_data): Likewise.
8222 (f_language::print_typedef): New member function.
8223 * go-lang.c (go_language_data): Delete la_print_typedef
8224 initializer.
8225 * language.c (language_defn::print_typedef): Define member
8226 function.
8227 (unknown_language_data): Delete la_print_typedef initializer.
8228 (unknown_language::print_typedef): New member function.
8229 (auto_language_data): Delete la_print_typedef initializer.
8230 (auto_language::print_typedef): New member function.
8231 * language.h (language_data): Delete la_print_typedef field.
8232 (language_defn::print_typedef): Declare new member function.
8233 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8234 (default_print_typedef): Delete declaration.
8235 * m2-lang.c (m2_language_data): Delete la_print_typedef
8236 initializer.
8237 (m2_language::print_typedef): New member function.
8238 * objc-lang.c (objc_language_data): Delete la_print_typedef
8239 initializer.
8240 * opencl-lang.c (opencl_language_data): Likewise.
8241 * p-lang.c (pascal_language_data): Likewise.
8242 (pascal_language::print_typedef): New member function.
8243 * rust-lang.c (rust_print_typedef): Delete function,
8244 implementation moved to rust_language::print_typedef.
8245 (rust_language): Delete la_print_typedef initializer.
8246 (rust_language::print_typedef): New member function,
8247 implementation from rust_print_typedef.
8248 * typeprint.c (default_print_typedef): Delete.
8249
8250 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8253 (ada_language::printstr): New member function.
8254 * c-lang.c (c_language_data): Delete la_printstr initializer.
8255 (cplus_language_data): Likewise.
8256 (asm_language_data): Likewise.
8257 (minimal_language_data): Likewise.
8258 * d-lang.c (d_language_data): Likewise.
8259 * f-lang.c (f_printstr): Rename to f_language::printstr.
8260 (f_language_data): Delete la_printstr initializer.
8261 (f_language::printstr): New member function, implementation from
8262 f_printstr.
8263 * go-lang.c (go_language_data): Delete la_printstr initializer.
8264 * language.c (language_defn::printstr): Define new member
8265 function.
8266 (unk_lang_printstr): Delete.
8267 (unknown_language_data): Delete la_printstr initializer.
8268 (unknown_language::printstr): New member function.
8269 (auto_language_data): Delete la_printstr initializer.
8270 (auto_language::printstr): New member function.
8271 * language.h (language_data): Delete la_printstr field.
8272 (language_defn::printstr): Declare new member function.
8273 (LA_PRINT_STRING): Update call to printstr.
8274 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8275 (m2_language_data): Delete la_printstr initializer.
8276 (m2_language::printstr): New member function, implementation from
8277 m2_printstr.
8278 * objc-lang.c (objc_language_data): Delete la_printstr
8279 initializer.
8280 * opencl-lang.c (opencl_language_data): Likewise.
8281 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8282 (pascal_language_data): Delete la_printstr initializer.
8283 (pascal_language::printstr): New member function, implementation
8284 from pascal_printstr.
8285 * p-lang.h (pascal_printstr): Delete declaration.
8286 * rust-lang.c (rust_printstr): Update header comment.
8287 (rust_language_data): Delete la_printstr initializer.
8288 (rust_language::printstr): New member function.
8289
8290 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8291
8292 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8293 (ada_language::printchar): New member function.
8294 * c-lang.c (c_language_data): Delete la_printchar initializer.
8295 (cplus_language_data): Likewise.
8296 (asm_language_data): Likewise.
8297 (minimal_language_data): Likewise.
8298 * d-lang.c (d_language_data): Likewise.
8299 * f-lang.c (f_printchar): Rename to f_language::printchar.
8300 (f_language_data): Delete la_printchar initializer.
8301 (f_language::printchar): New member function, implementation from
8302 f_printchar.
8303 * go-lang.c (go_language_data): Delete la_printchar initializer.
8304 * language.c (unk_lang_printchar): Delete.
8305 (language_defn::printchar): Define new member function.
8306 (unknown_language_data): Delete la_printchar initializer.
8307 (unknown_language::printchar): New member function.
8308 (auto_language_data): Delete la_printchar initializer.
8309 (auto_language::printchar): New member function.
8310 * language.h (language_data): Delete la_printchar field.
8311 (language_defn::printchar): Declare new member function.
8312 (LA_PRINT_CHAR): Update call to printchar.
8313 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8314 (m2_language::printchar): New member function.
8315 * objc-lang.c (objc_language_data): Delete la_printchar
8316 initializer.
8317 * opencl-lang.c (opencl_language_data): Likewise.
8318 * p-lang.c (pascal_language_data): Delete la_printchar
8319 initializer.
8320 (pascal_language::printchar): New member function.
8321 * rust-lang.c (rust_printchar): Rename to
8322 rust_language::printchar.
8323 (rust_language_data): Delete la_printchar initializer.
8324 (rust_language::printchar): New member function, implementation
8325 from rust_printchar.
8326
8327 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8328
8329 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8330 (ada_language_data): Delete la_emitchar initializer.
8331 (ada_language::emitchar): New member function, implementation from
8332 emit_char.
8333 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8334 (cplus_language_data): Likewise.
8335 (asm_language_data): Likewise.
8336 (minimal_language_data): Likewise.
8337 * d-lang.c (d_language_data): Likewise.
8338 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8339 (f_language_data): Delete la_emitchar initializer.
8340 (f_language::emitchar): New member function, implementation from
8341 f_emit_char.
8342 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8343 * language.c (unk_lang_emit_char): Delete.
8344 (language_defn::emitchar): New member function definition.
8345 (unknown_language_data): Delete la_emitchar initializer.
8346 (unknown_language::emitchar): New member function.
8347 (auto_language_data): Delete la_emitchar initializer.
8348 (auto_language::emitchar): New member function.
8349 * language.h (language_data): Delete la_emitchar field.
8350 (language_defn::emitchar): New member field declaration.
8351 (LA_EMIT_CHAR): Update call to emitchar.
8352 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8353 (m2_language_data): Delete la_emitchar initializer.
8354 (m2_language::emitchar): New member function, implementation from
8355 m2_emit_char.
8356 * objc-lang.c (objc_language_data): Delete la_emitchar
8357 initializer.
8358 * opencl-lang.c (opencl_language_data): Likewise.
8359 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8360 (pascal_language_data): Delete la_emitchar initializer.
8361 (pascal_language::emitchar): New member function, implementation
8362 from pascal_emit_char.
8363 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8364 (rust_language_data): Delete la_emitchar initializer.
8365 (rust_language::emitchar): New member function, implementation
8366 from rust_emitchar.
8367
8368 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8369
8370 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8371 (ada_language_data): Delete la_post_parser initializer.
8372 (ada_language::post_parser): New member function.
8373 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8374 (cplus_language_data): Likewise.
8375 (asm_language_data): Likewise.
8376 (minimal_language_data): Likewise.
8377 * d-lang.c (d_language_data): Likewise.
8378 * f-lang.c (f_language_data): Likewise.
8379 * go-lang.c (go_language_data): Likewise.
8380 * language.c (unknown_language_data): Likewise.
8381 (auto_language_data): Likewise.
8382 * language.h (language_data): Delete la_post_parser field.
8383 (language_defn::post_parser): New member function.
8384 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8385 * objc-lang.c (objc_language_data): Likewise.
8386 * opencl-lang.c (opencl_language_data): Likewise.
8387 * p-lang.c (pascal_language_data): Likewise.
8388 * parse.c (parse_exp_in_context): Update call to post_parser.
8389 (null_post_parser): Delete definition.
8390 * parser-defs.h (null_post_parser): Delete declaration.
8391 * rust-lang.c (rust_language_data): Delete la_post_parser
8392 initializer.
8393
8394 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8395
8396 * ada-lang.c (parse): Rename to ada_language::parser.
8397 (ada_language_data): Delete la_parser initializer.
8398 (ada_language::parser): New member function, implementation from
8399 parse.
8400 * c-lang.c (c_language_data): Delete la_parser initializer.
8401 (cplus_language_data): Likewise.
8402 (asm_language_data): Likewise.
8403 (minimal_language_data): Likewise.
8404 * d-lang.c (d_language_data): Likewise.
8405 (d_language::parser): New member function.
8406 * f-lang.c (f_language_data): Delete la_parser initializer.
8407 (f_language::parser): New member function.
8408 * go-lang.c (go_language_data): Delete la_parser initializer.
8409 (go_language::parser): New member function.
8410 * language.c (unk_lang_parser): Delete.
8411 (language_defn::parser): Define new member function.
8412 (unknown_language_data): Delete la_parser initializer.
8413 (unknown_language::parser): New member function.
8414 (auto_language_data): Delete la_parser initializer.
8415 (auto_language::parser): New member function.
8416 * language.h (language_data): Delete la_parser field.
8417 (language_defn::parser): Declare new member function.
8418 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8419 (m2_language::parser): New member function.
8420 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8421 * opencl-lang.c (opencl_language_data): Likewise.
8422 * p-lang.c (pascal_language_data): Likewise.
8423 (pascal_language::parser): New member function.
8424 * parse.c (parse_exp_in_context): Update call to parser.
8425 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8426 (rust_language::parser): New member function.
8427
8428 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * top.c (print_gdb_configuration): Print --with-python-libdir
8431 configuration value.
8432
8433 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8434
8435 * NEWS: Mention change to the alias command.
8436
8437 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8438
8439 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8440 (alias_command_completer)
8441 (make_alias_options_def_group): New functions.
8442 (alias_opts, alias_option_defs): New struct and array.
8443 (alias_usage_error): Update usage.
8444 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8445 Use option framework.
8446 (_initialize_cli_cmds): Update alias command help.
8447 Update aliases command help.
8448 (show_user):
8449 Add NULL for new default_args lookup_cmd argument.
8450 (valid_command_p): Rename to validate_aliased_command.
8451 Add NULL for new default_args lookup_cmd argument. Verify that the
8452 aliased_command has no default args.
8453 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8454 (lookup_cmd_1, lookup_cmd): New argument default_args.
8455 (add_alias_cmd):
8456 Add NULL for new default_args lookup_cmd argument.
8457 (print_help_for_command): Show default args under the layout
8458 alias some_alias = some_aliased_cmd some_alias_default_arg.
8459 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8460 xfree default_args in destructor.
8461 * cli/cli-script.c (process_next_line, do_define_command):
8462 Add NULL for new default_args lookup_cmd argument.
8463 * command.h: Declare new default_args argument in lookup_cmd
8464 and lookup_cmd_1.
8465 * completer.c (complete_line_internal_1):
8466 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8467 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8468 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8469 Likewise.
8470 * infcmd.c (_initialize_infcmd): Likewise.
8471 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8472 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8473 * python/py-param.c (add_setshow_generic): Likewise.
8474 * remote.c (_initialize_remote): Likewise.
8475 * top.c (execute_command): Prepend default_args if command has some.
8476 (set_verbose):
8477 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8478 * tracepoint.c (validate_actionline, encode_actions_1):
8479 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8480
8481 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8482
8483 * jit.c (jit_read_descriptor): Use bool as the return type.
8484 (jit_breakpoint_re_set_internal): Use bool as the return type.
8485 Invert the return value logic; return true if the jit breakpoint
8486 has been successfully initialized.
8487 (jit_inferior_init): Update the call to
8488 jit_breakpoint_re_set_internal.
8489
8490 2020-06-22 Pedro Alves <palves@redhat.com>
8491
8492 PR gdb/25939
8493 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8494 Use the current inferior instead. Don't return
8495 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8496 wait again.
8497 * sol-thread.c (sol_thread_target::wait): Don't reference
8498 inferior_ptid.
8499 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8500 (sol_update_thread_list_callback): Use the current inferior's pid
8501 instead of inferior_ptid.
8502
8503 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8504
8505 * procfs.c: Cleanup many comments.
8506
8507 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8508 (AFTER_WATCHFLAG): Replace by value.
8509
8510 (MAIN_PROC_NAME_FORMAT): Inline ...
8511 (create_procinfo): ... here.
8512
8513 (procfs_debug_inferior): Remove SYS_exec handling.
8514 (syscall_is_exec): Likewise.
8515 (procfs_set_exec_trap): Likewise.
8516
8517 (syscall_is_lwp_exit): Inline in callers.
8518 (syscall_is_exit): Likewise.
8519 (syscall_is_exec): Likewise.
8520 (syscall_is_lwp_create): Likewise.
8521
8522 (invalidate_cache): Remove #if 0 code.
8523
8524 (make_signal_thread_runnable): Remove.
8525 (procfs_target::resume): Remove #if 0 code.
8526
8527 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8528
8529 PR gdb/25939
8530 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8531 call ...
8532 (procfs_target::create_inferior): ... here.
8533
8534 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8535
8536 * exec.c (validate_exec_file): Ensure the build-id is up to
8537 date by calling reopen_exec_file (that checks file timestamp
8538 to decide to re-read the file).
8539
8540 2020-06-18 Pedro Alves <palves@redhat.com>
8541
8542 PR gdb/25412
8543 * gdbthread.h (delete_thread, delete_thread_silent)
8544 (find_thread_ptid): Update comments.
8545 * thread.c (current_thread_): New global.
8546 (is_current_thread): Move higher, and reimplement.
8547 (inferior_thread): Reimplement.
8548 (set_thread_exited): Use bool. Add assertions.
8549 (add_thread_silent): Simplify thread-reuse handling by always
8550 calling delete_thread.
8551 (delete_thread): Remove intro comment.
8552 (find_thread_ptid): Skip exited threads.
8553 (switch_to_thread_no_regs): Write to current_thread_.
8554 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8555 INFERIOR_PTID. Clear current_thread_.
8556
8557 2020-06-18 Pedro Alves <palves@redhat.com>
8558
8559 * aix-thread.c (pd_update): Use switch_to_thread.
8560
8561 2020-06-18 Pedro Alves <palves@redhat.com>
8562
8563 * ravenscar-thread.c (ravenscar_thread_target): Update.
8564 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8565 (ravenscar_thread_target::add_active_thread): ... this. Don't
8566 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8567 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8568
8569 2020-06-18 Pedro Alves <palves@redhat.com>
8570
8571 * nat/windows-nat.c (current_windows_thread): Remove.
8572 * nat/windows-nat.h (current_windows_thread): Remove.
8573 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8574 Adjust.
8575 (display_selectors): Adjust to fetch the current
8576 windows_thread_info based on inferior_ptid.
8577 (fake_create_process): No longer write to current_windows_thread.
8578 (windows_nat_target::get_windows_debug_event):
8579 Don't set inferior_ptid or current_windows_thread.
8580 (windows_nat_target::wait): Adjust to not rely on
8581 current_windows_thread.
8582 (do_initial_windows_stuff): Now a method of windows_nat_target.
8583 Switch to the last_ptid thread.
8584 (windows_nat_target::attach): Adjust.
8585 (windows_nat_target::detach): Use switch_to_no_thread instead of
8586 writing to inferior_ptid directly.
8587 (windows_nat_target::create_inferior): Adjust.
8588
8589 2020-06-18 Pedro Alves <palves@redhat.com>
8590
8591 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8592
8593 2020-06-18 Pedro Alves <palves@redhat.com>
8594
8595 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8596 after creating it, instead of writing to inferior_ptid. Don't
8597 write to inferior_ptid.
8598
8599 2020-06-18 Pedro Alves <palves@redhat.com>
8600
8601 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8602
8603 2020-06-18 Pedro Alves <palves@redhat.com>
8604
8605 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8606 it, instead of writing to inferior_ptid.
8607
8608 2020-06-18 Pedro Alves <palves@redhat.com>
8609
8610 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8611 to inferior_ptid.
8612
8613 2020-06-18 Pedro Alves <palves@redhat.com>
8614
8615 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8616 instead of writing to inferior_ptid directly.
8617
8618 2020-06-18 Pedro Alves <palves@redhat.com>
8619
8620 * corelow.c (core_target::close): Use switch_to_no_thread instead
8621 of writing to inferior_ptid directly.
8622 (add_to_thread_list, core_target_open): Use switch_to_thread
8623 instead of writing to inferior_ptid directly.
8624
8625 2020-06-18 Pedro Alves <palves@redhat.com>
8626
8627 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8628 inferior_ptid.
8629 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8630 inferior_ptid.
8631 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8632 inferior_ptid directly.
8633 (darwin_nat_target::init_thread_list): Switch to thread, instead
8634 of writing to inferior_ptid.
8635 (darwin_nat_target::attach): Don't write to inferior_ptid.
8636 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8637
8638 2020-06-18 Pedro Alves <palves@redhat.com>
8639
8640 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8641 thread.
8642 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8643 Instead use switch_to_thread.
8644 (gnu_nat_target::detach): Use switch_to_no_thread
8645 instead of writing to inferior_ptid directly. Used passed-in
8646 inferior instead of looking up the inferior by pid.
8647
8648 2020-06-18 Pedro Alves <palves@redhat.com>
8649
8650 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8651 inferior_ptid.
8652
8653 2020-06-18 Pedro Alves <palves@redhat.com>
8654
8655 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8656 inferior_ptid.
8657 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8658 thread.
8659 (nto_procfs_target::detach): Avoid referencing
8660 inferior_ptid. Use switch_to_no_thread instead of writing to
8661 inferior_ptid directly.
8662 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8663 instead of writing to inferior_ptid directly.
8664 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8665 to thread.
8666
8667 2020-06-18 Pedro Alves <palves@redhat.com>
8668
8669 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8670 after creating it, instead of writing to inferior_ptid.
8671 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8672 to inferior_ptid directly.
8673 (gdbsim_target::wait): Don't write to inferior_ptid.
8674
8675 2020-06-18 Pedro Alves <palves@redhat.com>
8676
8677 * remote.c (remote_target::remote_notice_new_inferior): Use
8678 switch_to_thread instead of writing to inferior_ptid directly.
8679 (remote_target::add_current_inferior_and_thread): Use
8680 switch_to_no_thread instead of writing to inferior_ptid directly.
8681 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8682 and switch_to_thread instead of using set_current_inferior or
8683 writing to inferior_ptid directly.
8684
8685 2020-06-18 Pedro Alves <palves@redhat.com>
8686
8687 * tracectf.c (ctf_target_open): Switch to added thread instead of
8688 writing to inferior_ptid directly.
8689 (ctf_target::close): Use switch_to_no_thread instead of writing to
8690 inferior_ptid directly.
8691
8692 2020-06-18 Pedro Alves <palves@redhat.com>
8693
8694 * tracefile-tfile.c (tfile_target_open): Don't write to
8695 inferior_ptid directly, instead switch to added thread.
8696 (tfile_target::close): Use switch_to_no_thread instead of writing
8697 to inferior_ptid directly.
8698
8699 2020-06-18 Pedro Alves <palves@redhat.com>
8700
8701 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8702 (procfs_target::detach): Use switch_to_no_thread
8703 instead of writing to inferior_ptid directly.
8704 (do_attach): Change return type to void. Switch to the added
8705 thread.
8706 (procfs_target::create_inferior): Switch to the added thread.
8707 (procfs_do_thread_registers): Don't write to inferior_ptid.
8708
8709 2020-06-18 Pedro Alves <palves@redhat.com>
8710
8711 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8712 of writing to inferior_ptid.
8713 (scoped_restore_exited_inferior): Delete.
8714 (handle_vfork_child_exec_or_exit): Simplify using
8715 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8716 instead of writing to inferior_ptid.
8717 (THREAD_STOPPED_BY): Delete.
8718 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8719 (thread_stopped_by_hw_breakpoint): Delete.
8720 (save_waitstatus): Use
8721 scoped_restore_current_thread+switch_to_thread, and call
8722 target_stopped_by_watchpoint instead of
8723 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8724 instead of thread_stopped_by_sw_breakpoint, and
8725 target_stopped_by_hw_breakpoint instead of
8726 thread_stopped_by_hw_breakpoint.
8727 (handle_inferior_event)
8728 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8729 inferior_ptid directly, nor
8730 set_current_inferior/set_current_program_space. Use
8731 switch_to_thread / switch_to_inferior_no_thread instead.
8732
8733 2020-06-18 Pedro Alves <palves@redhat.com>
8734
8735 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8736 instead of writing to inferior_ptid.
8737
8738 2020-06-18 Pedro Alves <palves@redhat.com>
8739
8740 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8741 added thread.
8742 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8743 to the added thread.
8744 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8745 instead of writing to inferior_ptid.
8746
8747 2020-06-18 Pedro Alves <palves@redhat.com>
8748
8749 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8750 (register_to_value_test): Mock a program_space too. Heap-allocate
8751 the address space. Don't write to inferior_ptid. Use
8752 switch_to_thread instead.
8753
8754 2020-06-18 Pedro Alves <palves@redhat.com>
8755
8756 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8757 Delete.
8758 (find_signalled_thread()): New, factored out from
8759 linux_make_corefile_notes and adjusted to handle exited threads.
8760 (linux_make_corefile_notes): Adjust to use the new
8761 find_signalled_thread.
8762
8763 2020-06-18 Pedro Alves <palves@redhat.com>
8764
8765 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8766 of saving/restoring inferior_ptid.
8767
8768 2020-06-17 Tom Tromey <tom@tromey.com>
8769
8770 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8771 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8772 declare.
8773 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8774
8775 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8776
8777 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8778 of partial symtabs.
8779
8780 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8781
8782 * regformats/reg-arm.dat: Remove.
8783 * regformats/reg-bfin.dat: Remove.
8784 * regformats/reg-cris.dat: Remove.
8785 * regformats/reg-crisv32.dat: Remove.
8786 * regformats/reg-m32r.dat: Remove.
8787 * regformats/reg-tilegx.dat: Remove.
8788 * regformats/reg-tilegx32.dat: Remove.
8789
8790 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8791
8792 * features/Makefile (WHICH): Remove arm files.
8793 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8794 * regformats/arm/arm-with-neon.dat: Remove.
8795 * regformats/arm/arm-with-vfpv2.dat: Remove.
8796 * regformats/arm/arm-with-vfpv3.dat: Remove.
8797
8798 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8799
8800 * features/Makefile (XMLTOC): Remove rx.xml.
8801
8802 2020-06-17 Pedro Alves <palves@redhat.com>
8803
8804 * gdbthread.h (thread_control_state) <trap_expected> Update
8805 comments.
8806
8807 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8808
8809 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8810 ada_language::lookup_symbol_nonlocal.
8811 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8812 (ada_language::lookup_symbol_nonlocal): New member function,
8813 implementation from ada_lookup_symbol_nonlocal.
8814 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8815 initializer.
8816 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8817 initializer.
8818 (cplus_language::lookup_symbol_nonlocal): New member function.
8819 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8820 (minimal_language_data) Likewise.
8821 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8822 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8823 initializer.
8824 (d_language::lookup_symbol_nonlocal): New member function.
8825 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8826 initializer.
8827 (f_language::lookup_symbol_nonlocal): New member function.
8828 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8829 initializer.
8830 * language.c (unknown_language_data): Likewise.
8831 (auto_language_data): Likewise.
8832 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8833 field.
8834 (language_defn::lookup_symbol_nonlocal): New member function.
8835 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8836 initializer.
8837 * objc-lang.c (objc_language_data): Likewise.
8838 * opencl-lang.c (opencl_language_data): Likewise.
8839 * p-lang.c (pascal_language_data): Likewise.
8840 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8841 rust_language::lookup_symbol_nonlocal.
8842 (rust_language_data): Delete la_lookup_symbol_nonlocal
8843 initializer.
8844 (rust_language::lookup_symbol_nonlocal): New member function,
8845 implementation from rust_lookup_symbol_nonlocal.
8846 * symtab.c (lookup_symbol_aux): Update call to
8847 lookup_symbol_nonlocal.
8848 (basic_lookup_symbol_nonlocal): Rename to...
8849 (language_defn::lookup_symbol_nonlocal): ...this, and update
8850 header comment. Remove language_defn parameter, and replace with
8851 uses of `this'.
8852 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8853
8854 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8855
8856 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8857 initializer.
8858 (ada_language::value_print_inner): New member function.
8859 * c-lang.c (c_language_data): Delete la_value_print_inner
8860 initializer.
8861 (cplus_language_data): Likewise.
8862 (asm_language_data): Likewise.
8863 (minimal_language_data): Likewise.
8864 * d-lang.c (d_language_data): Likewise.
8865 (d_language::value_print_inner): New member function.
8866 * f-lang.c (f_language_data): Delete la_value_print_inner
8867 initializer.
8868 (f_language::value_print_inner): New member function.
8869 * f-lang.h (f_value_print_innner): Rename to...
8870 (f_value_print_inner): ...this (note spelling of 'inner').
8871 * f-valprint.c (f_value_print_innner): Rename to...
8872 (f_value_print_inner): ...this (note spelling of 'inner').
8873 * go-lang.c (go_language_data): Delete la_value_print_inner
8874 initializer.
8875 (go_language::value_print_inner): New member function.
8876 * language.c (language_defn::value_print_inner): Define new member
8877 function.
8878 (unk_lang_value_print_inner): Delete.
8879 (unknown_language_data): Delete la_value_print_inner initializer.
8880 (unknown_language::value_print_inner): New member function.
8881 (auto_language_data): Delete la_value_print_inner initializer.
8882 (auto_language::value_print_inner): New member function.
8883 * language.h (language_data): Delete la_value_print_inner field.
8884 (language_defn::value_print_inner): Delcare new member function.
8885 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8886 initializer.
8887 (m2_language::value_print_inner): New member function.
8888 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8889 initializer.
8890 * opencl-lang.c (opencl_language_data): Likewise.
8891 * p-lang.c (pascal_language_data): Likewise.
8892 (pascal_language::value_print_inner): New member function.
8893 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8894 initializer.
8895 (rust_language::value_print_inner): New member function.
8896 * valprint.c (do_val_print): Update call to value_print_inner.
8897
8898 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8899
8900 * ada-lang.c (ada_language_data): Delete la_value_print
8901 initializer.
8902 (ada_language::value_print): New member function.
8903 * c-lang.c (c_language_data): Delete la_value_print initializer.
8904 (cplus_language_data): Likewise.
8905 (asm_language_data): Likewise.
8906 (minimal_language_data): Likewise.
8907 * d-lang.c (d_language_data): Likewise.
8908 * f-lang.c (f_language_data): Likewise.
8909 * go-lang.c (go_language_data): Likewise.
8910 * language.c (unk_lang_value_print): Delete.
8911 (language_defn::value_print): Define new member function.
8912 (unknown_language_data): Delete la_value_print initializer.
8913 (unknown_language::value_print): New member function.
8914 (auto_language_data): Delete la_value_print initializer.
8915 (auto_language::value_print): New member function.
8916 * language.h (language_data): Delete la_value_print field.
8917 (language_defn::value_print): Declare new member function.
8918 (LA_VALUE_PRINT): Update call to value_print.
8919 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8920 * objc-lang.c (objc_language_data): Likewise.
8921 * opencl-lang.c (opencl_language_data): Likewise.
8922 * p-lang.c (pascal_language_data): Likewise.
8923 (pascal_language::value_print): New member function.
8924 * rust-lang.c (rust_language_data): Delete la_value_print
8925 initializer.
8926
8927 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8928
8929 * ada-lang.c (ada_watch_location_expression): Rename to
8930 ada_language::watch_location_expression.
8931 (ada_language_data): Delete la_watch_location_expression
8932 initializer.
8933 (ada_language::watch_location_expression): New member function,
8934 implementation from ada_watch_location_expression.
8935 * breakpoint.c (watch_command_1): Update call to
8936 watch_location_expression.
8937 * c-lang.c (c_watch_location_expression): Rename to
8938 language_defn::watch_location_expression.
8939 (c_language_data): Delete la_watch_location_expression
8940 initializer.
8941 (cplus_language_data): Likewise.
8942 (asm_language_data): Likewise.
8943 (minimal_language_data): Likewise.
8944 * c-lang.h (c_watch_location_expression): Delete declaration.
8945 * d-lang.c (d_language_data): Delete la_watch_location_expression
8946 initializer.
8947 * f-lang.c (f_language_data): Likewise.
8948 * go-lang.c (go_language_data): Likewise.
8949 * language.c (language_defn::watch_location_expression): Member
8950 function implementation from c_watch_location_expression.
8951 (unknown_language_data): Delete la_watch_location_expression
8952 initializer.
8953 (auto_language_data): Likewise.
8954 * language.h (language_data): Delete la_watch_location_expression
8955 field.
8956 (language_defn::watch_location_expression): Declare new member
8957 function.
8958 * m2-lang.c (m2_language_data): Delete
8959 la_watch_location_expression initializer.
8960 * objc-lang.c (objc_language_data): Likewise.
8961 * opencl-lang.c (opencl_language_data): Likewise.
8962 * p-lang.c (pascal_language_data): Likewise.
8963 * rust-lang.c (rust_watch_location_expression): Rename to
8964 rust_language::watch_location_expression.
8965 (rust_language_data): Delete la_watch_location_expression
8966 initializer.
8967 (rust_language::watch_location_expression): New member function,
8968 implementation from rust_watch_location_expression.
8969
8970 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8971
8972 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8973 ada_language::collect_symbol_completion_matches.
8974 (ada_language_data): Delete la_collect_symbol_completion_matches
8975 initializer.
8976 (ada_language::collect_symbol_completion_matches): New member
8977 function, implementation from
8978 ada_collect_symbol_completion_matches.
8979 * c-lang.c (c_language_data): Delete
8980 la_collect_symbol_completion_matches initializer.
8981 (cplus_language_data): Likewise.
8982 (asm_language_data): Likewise.
8983 (minimal_language_data): Likewise.
8984 * d-lang.c (d_language_data): Likewise.
8985 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8986 f_language::collect_symbol_completion_matches.
8987 (f_language_data): Delete la_collect_symbol_completion_matches
8988 initializer.
8989 (f_language::collect_symbol_completion_matches) New member
8990 function, implementation from f_collect_symbol_completion_matches.
8991 * go-lang.c (go_language_data): Delete
8992 la_collect_symbol_completion_matches initializer.
8993 * language.c (unknown_language_data): Likewise.
8994 (auto_language_data): Likewise.
8995 * language.h (language_data): Delete
8996 la_collect_symbol_completion_matches field.
8997 (language_defn::collect_symbol_completion_matches): New member
8998 function.
8999 * m2-lang.c (m2_language_data): Delete
9000 la_collect_symbol_completion_matches initializer.
9001 * objc-lang.c (objc_language_data): Likewise.
9002 * opencl-lang.c (opencl_language_data): Likewise.
9003 * p-lang.c (pascal_language_data): Likewise.
9004 * rust-lang.c (rust_language_data): Likewise.
9005 * symtab.c (default_collect_symbol_completion_matches): Delete.
9006 (collect_symbol_completion_matches): Update call to
9007 collect_symbol_completion_matches.
9008 (collect_symbol_completion_matches_type): Likewise.
9009 * symtab.h (default_collect_symbol_completion_matches): Delete
9010 declaration.
9011
9012 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9013
9014 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9015 (ada_language_data): Delete la_word_break_characters initializer.
9016 (ada_language::word_break_characters): New member function.
9017 * c-lang.c (c_language_data): Delete la_word_break_characters
9018 initializer.
9019 (cplus_language_data): Likewise.
9020 (asm_language_data): Likewise.
9021 (minimal_language_data): Likewise.
9022 * completer.c: Update global comment.
9023 (advance_to_expression_complete_word_point): Update call to
9024 word_break_characters.
9025 (complete_files_symbols): Likewise.
9026 (complete_line_internal_1): Likewise.
9027 (default_completer_handle_brkchars): Likewise.
9028 (skip_quoted_chars): Likewise.
9029 * d-lang.c (d_language_data): Delete la_word_break_characters
9030 initializer.
9031 * f-lang.c (f_word_break_characters): Delete.
9032 (f_language_data): Delete la_word_break_characters initializer.
9033 (f_language::word_break_characters): New member function.
9034 * go-lang.c (go_language_data): Delete la_word_break_characters
9035 initializer.
9036 * language.c (unknown_language_data): Likewise.
9037 (auto_language_data): Likewise.
9038 * language.h (default_word_break_characters): Move declaration to
9039 earlier in the file.
9040 (language_data): Delete la_word_break_characters field.
9041 (language_defn::word_break_characters): New member function.
9042 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9043 initializer.
9044 * objc-lang.c (objc_language_data): Likewise.
9045 * opencl-lang.c (opencl_language_data): Likewise.
9046 * p-lang.c (pascal_language_data): Likewise.
9047 * rust-lang.c (rust_language_data): Likewise.
9048
9049 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9050
9051 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9052 (ada_language_data): Delete la_get_symbol_name_matcher
9053 initializer.
9054 (language_defn::get_symbol_name_matcher_inner): New member
9055 function.
9056 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9057 initializer.
9058 (cplus_language_data): Likewise.
9059 (cplus_language::get_symbol_name_matcher_inner): New member
9060 function.
9061 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9062 (minimal_language_data): Likewise.
9063 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9064 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9065 initializer.
9066 * dictionary.c (iter_match_first_hashed): Update call to
9067 get_symbol_name_matcher.
9068 (iter_match_next_hashed): Likewise.
9069 (iter_match_next_linear): Likewise.
9070 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9071 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9072 initializer.
9073 (f_language::get_symbol_name_matcher_inner): New member function.
9074 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9075 initializer.
9076 * language.c (default_symbol_name_matcher): Update header comment,
9077 make static.
9078 (language_defn::get_symbol_name_matcher): New definition.
9079 (language_defn::get_symbol_name_matcher_inner): Likewise.
9080 (get_symbol_name_matcher): Delete.
9081 (unknown_language_data): Delete la_get_symbol_name_matcher
9082 initializer.
9083 (auto_language_data): Likewise.
9084 * language.h (language_data): Delete la_get_symbol_name_matcher
9085 field.
9086 (language_defn::get_symbol_name_matcher): New member function.
9087 (language_defn::get_symbol_name_matcher_inner): Likewise.
9088 (default_symbol_name_matcher): Delete declaration.
9089 * linespec.c (find_methods): Update call to
9090 get_symbol_name_matcher.
9091 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9092 initializer.
9093 * minsyms.c (lookup_minimal_symbol): Update call to
9094 get_symbol_name_matcher.
9095 (iterate_over_minimal_symbols): Likewise.
9096 * objc-lang.c (objc_language_data): Delete
9097 la_get_symbol_name_matcher initializer.
9098 * opencl-lang.c (opencl_language_data): Likewise.
9099 * p-lang.c (pascal_language_data): Likewise.
9100 * psymtab.c (psymbol_name_matches): Update call to
9101 get_symbol_name_matcher.
9102 * rust-lang.c (rust_language_data): Delete
9103 la_get_symbol_name_matcher initializer.
9104 * symtab.c (symbol_matches_search_name): Update call to
9105 get_symbol_name_matcher.
9106 (compare_symbol_name): Likewise.
9107
9108 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * ada-lang.c (ada_language_data): Delete la_compute_program
9111 initializer.
9112 * c-lang.c (c_language_data): Likewise.
9113 (c_language::compute_program): New member function.
9114 (cplus_language_data): Delete la_compute_program initializer.
9115 (cplus_language::compute_program): New member function.
9116 (asm_language_data): Delete la_compute_program initializer.
9117 (minimal_language_data): Likewise.
9118 * c-lang.h (c_compute_program): Update comment.
9119 (cplus_compute_program): Likewise.
9120 * compile/compile-c-support.c (c_compute_program): Likewise.
9121 (cplus_compute_program): Likewise.
9122 * compile/compile.c (compile_to_object): Update call to
9123 la_compute_program.
9124 * d-lang.c (d_language_data): Delete la_compute_program
9125 initializer.
9126 * f-lang.c (f_language_data): Likewise.
9127 * go-lang.c (go_language_data): Likewise.
9128 * language.c (unknown_language_data): Likewise.
9129 (auto_language_data): Likewise.
9130 * language.h (language_data): Delete la_compute_program field.
9131 (language_defn::compute_program): New member function.
9132 * m2-lang.c (m2_language_data): Delete la_compute_program
9133 initializer.
9134 * objc-lang.c (objc_language_data): Likewise.
9135 * opencl-lang.c (opencl_language_data): Likewise.
9136 * p-lang.c (pascal_language_data): Likewise.
9137 * rust-lang.c (rust_language_data): Likewise.
9138
9139 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9140
9141 * ada-lang.c (ada_language_data) Delete
9142 la_class_name_from_physname initializer.
9143 * c-lang.c (c_language_data): Likewise.
9144 (cplus_language_data): Likewise.
9145 (cplus_language::class_name_from_physname): New member function.
9146 (asm_language_data): Delete la_class_name_from_physname
9147 initializer.
9148 (minimal_language_data): Likewise.
9149 * d-lang.c (d_language_data): Likewise.
9150 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9151 method on language_defn class.
9152 (guess_full_die_structure_name): Likewise.
9153 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9154 initializer.
9155 * go-lang.c (go_language_data): Likewise.
9156 * language.c (language_class_name_from_physname): Delete.
9157 (unk_lang_class_name): Delete.
9158 (unknown_language_data): Delete la_class_name_from_physname
9159 initializer.
9160 (auto_language_data): Likewise.
9161 * language.h (language_data): Delete la_class_name_from_physname
9162 field.
9163 (language_defn::class_name_from_physname): New function.
9164 (language_class_name_from_physname): Delete declaration.
9165 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9166 initializer.
9167 * objc-lang.c (objc_language_data): Likewise.
9168 * opencl-lang.c (opencl_language_data): Likewise.
9169 * p-lang.c (pascal_language_data): Likewise.
9170 * rust-lang.c (rust_language_data): Likewise.
9171
9172 2020-06-16 Tom Tromey <tom@tromey.com>
9173
9174 * tui/tui-data.h (STATUS_NAME): New macro.
9175 * tui/tui-layout.c (tui_remove_some_windows)
9176 (initialize_known_windows, tui_register_window)
9177 (tui_layout_split::remove_windows, initialize_layouts)
9178 (tui_new_layout_command): Don't use hard-coded window names.
9179
9180 2020-06-16 Tom Tromey <tom@tromey.com>
9181
9182 PR tui/25348:
9183 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9184 tui_initialize_readline. Only run once. Call rl_initialize.
9185 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9186 tui_initialize_readline.
9187 * tui/tui-io.c (tui_setup_io): Call
9188 tui_ensure_readline_initialized.
9189 * tui/tui-interp.c (tui_interp::init): Update.
9190
9191 2020-06-16 Tom Tromey <tom@tromey.com>
9192
9193 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9194 Also preserve the status window.
9195
9196 2020-06-16 Tom Tromey <tom@tromey.com>
9197
9198 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9199 where m_window==nullptr.
9200
9201 2020-06-15 Tom Tromey <tromey@adacore.com>
9202
9203 * windows-nat.c (windows_nat::handle_output_debug_string):
9204 Update.
9205 (windows_nat::handle_ms_vc_exception): Update.
9206 * target.h (target_read_string): Change API.
9207 * target.c (target_read_string): Change API.
9208 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9209 Update.
9210 * solib-frv.c (frv_current_sos): Update.
9211 * solib-dsbt.c (dsbt_current_sos): Update.
9212 * solib-darwin.c (darwin_current_sos): Update.
9213 * linux-thread-db.c (inferior_has_bug): Update.
9214 * expprint.c (print_subexp_standard): Update.
9215 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9216 (ada_exception_message_1): Update.
9217
9218 2020-06-15 Tom Tromey <tromey@adacore.com>
9219
9220 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9221
9222 2020-06-15 Tom Tromey <tromey@adacore.com>
9223
9224 * valprint.c (read_string): Update comment.
9225 * target.c (MIN): Remove.
9226 (target_read_string): Rewrite.
9227
9228 2020-06-15 Tom Tromey <tromey@adacore.com>
9229
9230 * corefile.c (read_memory_string): Remove.
9231 * ada-valprint.c (ada_value_print_ptr): Update.
9232 * ada-lang.h (ada_tag_name): Change return type.
9233 * ada-lang.c (type_from_tag): Update.
9234 (ada_tag_name_from_tsd): Change return type. Use
9235 target_read_string.
9236 (ada_tag_name): Likewise.
9237 * gdbcore.h (read_memory_string): Don't declare.
9238
9239 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9240
9241 * symtab.c (rbreak_command): Ignore Windows drive colon.
9242
9243 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * NEWS: Mention removed GDBserver host support.
9246
9247 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9248
9249 * features/riscv/rebuild-csr-xml.sh: Updated.
9250
9251 2020-06-11 Tom Tromey <tom@tromey.com>
9252
9253 PR gdb/18318:
9254 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9255
9256 2020-06-09 Jonny Grant <jg@jguk.org>
9257 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9258
9259 * main.c (captured_main_1): Don't print new line after help.
9260 (print_gdb_help): add mailing list and IRC channel information
9261 to --help. Add new lines between items in the footer. Remove
9262 quotes around bug url.
9263
9264 2020-06-11 Keith Seitz <keiths@redhat.com>
9265
9266 PR gdb/21356
9267 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9268 Resolve typedefs for type length calculations.
9269
9270 2020-06-10 Tom de Vries <tdevries@suse.de>
9271
9272 PR ada/24713
9273 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9274 (write_psymbols): Enable .gdb_index for ada.
9275 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9276 ada.
9277
9278 2020-06-10 Tom de Vries <tdevries@suse.de>
9279
9280 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9281 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9282 namei" instead of "const char *name" argument.
9283 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9284 dw2_symtab_iter_init.
9285
9286 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9287
9288 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9289 to use type::field and field::type instead.
9290
9291 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9294 to use field::type instead.
9295
9296 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * gdbtypes.h (struct field) <type, set_type>: New methods.
9299 Rename `type` field to...
9300 <m_type>: ... this. Change references throughout to use type or
9301 set_type methods.
9302 (FIELD_TYPE): Use field::type. Change call sites that modify
9303 the field's type to use field::set_type instead.
9304
9305 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9308 to use type::index_type instead.
9309
9310 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9311
9312 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9313 methods.
9314 (TYPE_INDEX_TYPE): Use type::index_type.
9315 * gdbtypes.c (create_array_type_with_stride): Likewise.
9316
9317 2020-06-07 Tom Tromey <tom@tromey.com>
9318
9319 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9320 parameter.
9321 (generic_value_print): Update.
9322
9323 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9324
9325 Revert commit 982a38f60b0.
9326 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9327
9328 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9329
9330 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9331 avoid use after free.
9332
9333 2020-06-05 Tom de Vries <tdevries@suse.de>
9334
9335 * NEWS: Fix typos.
9336
9337 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9338
9339 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9340 the per_bfd object.
9341 (dwarf2_read_debug_names): Likewise.
9342 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9343 object when re-using a per_bfd object with an index.
9344
9345 2020-06-03 Tom de Vries <tdevries@suse.de>
9346
9347 PR symtab/26046
9348 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9349 children for C++.
9350 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9351 DW_TAG_subprogram.
9352
9353 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9354
9355 * ada-lang.c (ada_language_data): Delete skip_trampoline
9356 initializer.
9357 * c-lang.c (c_language_data): Likewise.
9358 (cplus_language_data): Likewise.
9359 (cplus_language::skip_trampoline): New member function.
9360 (asm_language_data): Delete skip_trampoline initializer.
9361 (minimal_language_data): Likewise.
9362 * d-lang.c (d_language_data): Likewise.
9363 * f-lang.c (f_language_data): Likewise.
9364 * go-lang.c (go_language_data): Likewise.
9365 * language.c (unk_lang_trampoline): Delete function.
9366 (skip_language_trampoline): Update.
9367 (unknown_language_data): Delete skip_trampoline initializer.
9368 (auto_language_data): Likewise.
9369 * language.h (language_data): Delete skip_trampoline field.
9370 (language_defn::skip_trampoline): New function.
9371 * m2-lang.c (m2_language_data): Delete skip_trampoline
9372 initializer.
9373 * objc-lang.c (objc_skip_trampoline): Delete function, move
9374 implementation to objc_language::skip_trampoline.
9375 (objc_language_data): Delete skip_trampoline initializer.
9376 (objc_language::skip_trampoline): New member function with
9377 implementation from objc_skip_trampoline.
9378 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9379 initializer.
9380 * p-lang.c (pascal_language_data): Likewise.
9381 * rust-lang.c (rust_language_data): Likewise.
9382
9383 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9384
9385 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9386 (ada_language::demangle): New member function.
9387 * c-lang.c (c_language_data): Delete la_demangle initializer.
9388 (cplus_language_data): Delete la_demangle initializer.
9389 (cplus_language::demangle): New member function.
9390 (asm_language_data): Delete la_demangle initializer.
9391 (minimal_language_data): Delete la_demangle initializer.
9392 * d-lang.c (d_language_data): Delete la_demangle initializer.
9393 (d_language::demangle): New member function.
9394 * f-lang.c (f_language_data): Delete la_demangle initializer.
9395 (f_language::demangle): New member function.
9396 * go-lang.c (go_language_data): Delete la_demangle initializer.
9397 (go_language::demangle): New member function.
9398 * language.c (language_demangle): Update.
9399 (unk_lang_demangle): Delete.
9400 (unknown_language_data): Delete la_demangle initializer.
9401 (unknown_language::demangle): New member function.
9402 (auto_language_data): Delete la_demangle initializer.
9403 (auto_language::demangle): New member function.
9404 * language.h (language_data): Delete la_demangle field.
9405 (language_defn::demangle): New function.
9406 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9407 * objc-lang.c (objc_language_data): Delete la_demangle
9408 initializer.
9409 (objc_language::demangle): New member function.
9410 * opencl-lang.c (opencl_language_data): Delete la_demangle
9411 initializer.
9412 * p-lang.c (pascal_language_data): Likewise.
9413 * rust-lang.c (rust_language_data): Likewise.
9414 (rust_language::demangle): New member function.
9415
9416 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9417
9418 * ada-lang.c (ada_language_data): Delete la_print_type
9419 initializer.
9420 (ada_language::print_type): New member function.
9421 * c-lang.c (c_language_data): Delete la_print_type initializer.
9422 (c_language::print_type): New member function.
9423 (cplus_language_data): Delete la_print_type initializer.
9424 (cplus_language::print_type): New member function.
9425 (asm_language_data): Delete la_print_type initializer.
9426 (asm_language::print_type): New member function.
9427 (minimal_language_data): Delete la_print_type initializer.
9428 (minimal_language::print_type): New member function.
9429 * d-lang.c (d_language_data): Delete la_print_type initializer.
9430 (d_language::print_type): New member function.
9431 * f-lang.c (f_language_data): Delete la_print_type initializer.
9432 (f_language::print_type): New member function.
9433 * go-lang.c (go_language_data): Delete la_print_type initializer.
9434 (go_language::print_type): New member function.
9435 * language.c (unk_lang_print_type): Delete.
9436 (unknown_language_data): Delete la_print_type initializer.
9437 (unknown_language::print_type): New member function.
9438 (auto_language_data): Delete la_print_type initializer.
9439 (auto_language::print_type): New member function.
9440 * language.h (language_data): Delete la_print_type field.
9441 (language_defn::print_type): New function.
9442 (LA_PRINT_TYPE): Update.
9443 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9444 (m2_language::print_type): New member function.
9445 * objc-lang.c (objc_language_data): Delete la_print_type
9446 initializer.
9447 (objc_language::print_type): New member function.
9448 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9449 to opencl_language::print_type.
9450 (opencl_language_data): Delete la_print_type initializer.
9451 (opencl_language::print_type): New member function, implementation
9452 from opencl_print_type.
9453 * p-lang.c (pascal_language_data): Delete la_print_type
9454 initializer.
9455 (pascal_language::print_type): New member function.
9456 * rust-lang.c (rust_print_type): Delete, implementation moved to
9457 rust_language::print_type.
9458 (rust_language_data): Delete la_print_type initializer.
9459 (rust_language::print_type): New member function, implementation
9460 from rust_print_type.
9461
9462 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9463
9464 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9465 implementation moves to...
9466 (ada_language::sniff_from_mangled_name): ...here. Update return
9467 type.
9468 (ada_language_data): Delete la_sniff_from_mangled_name
9469 initializer.
9470 * c-lang.c (c_language_data): Likewise.
9471 (cplus_language_data): Likewise.
9472 (cplus_language::sniff_from_mangled_name): New member function,
9473 implementation taken from gdb_sniff_from_mangled_name.
9474 (asm_language_data): Delete la_sniff_from_mangled_name
9475 initializer.
9476 (minimal_language_data): Likewise.
9477 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9478 implementation moves to cplus_language::sniff_from_mangled_name.
9479 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9480 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9481 moves to...
9482 (d_language::sniff_from_mangled_name): ...here.
9483 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9484 * f-lang.c (f_language_data): Likewise.
9485 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9486 moves to...
9487 (go_language::sniff_from_mangled_name): ...here.
9488 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9489 * language.c (language_sniff_from_mangled_name): Delete.
9490 (unknown_language_data): Delete la_sniff_from_mangled_name
9491 initializer.
9492 (auto_language_data): Likewise.
9493 * language.h (language_data): Delete la_sniff_from_mangled_name
9494 field.
9495 (language_defn::sniff_from_mangled_name): New function.
9496 (language_sniff_from_mangled_name): Delete declaration.
9497 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9498 field.
9499 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9500 implementation moves to...
9501 (objc_language::sniff_from_mangled_name): ...here.
9502 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9503 * opencl-lang.c (opencl_language_data): Likewise.
9504 * p-lang.c (pascal_language_data): Likewise.
9505 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9506 implementation moves to...
9507 (rust_language::sniff_from_mangled_name): ...here.
9508 (rust_language_data): Delete la_sniff_from_mangled_name
9509 initializer.
9510 * symtab.c (symbol_find_demangled_name): Call
9511 sniff_from_mangled_name member function.
9512
9513 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9514
9515 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9516 initializer.
9517 * c-lang.c (c_language_data): Likewise.
9518 (cplus_language_data): Likewise.
9519 (cplus_language::search_name_hash): New member function.
9520 (asm_language_data): Delete la_search_name_hash initializer.
9521 (minimal_language_data): Likewise.
9522 * d-lang.c (d_language_data): Likewise.
9523 * dictionary.c (default_search_name_hash): Rename to...
9524 (language_defn::search_name_hash): ...this.
9525 * f-lang.c (f_language_data): Likewise.
9526 (f_language::search_name_hash): New member function.
9527 * go-lang.c (go_language_data): Delete la_search_name_hash
9528 initializer.
9529 * language.c (unknown_language_data): Likewise.
9530 (auto_language_data): Likewise.
9531 * language.h (struct language_data): Delete la_search_name_hash
9532 field.
9533 (language_defn::search_name_hash): Declare new member function.
9534 (default_search_name_hash): Delete declaration.
9535 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9536 initializer.
9537 * objc-lang.c (objc_language_data): Likewise.
9538 * opencl-lang.c (opencl_language_data): Likewise.
9539 * p-lang.c (pascal_language_data): Likewise.
9540 * rust-lang.c (rust_language_data): Likewise.
9541 * symtab.c (search_name_hash): Update call.
9542
9543 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9544
9545 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9546 initializer.
9547 * c-lang.c (class compile_instance): Declare.
9548 (c_language_data): Delete la_get_compile_instance initializer.
9549 (c_language::get_compile_instance): New member function.
9550 (cplus_language_data): Delete la_get_compile_instance initializer.
9551 (cplus_language::get_compile_instance): New member function.
9552 (asm_language_data): Delete la_get_compile_instance initializer.
9553 (minimal_language_data): Likewise.
9554 * c-lang.h (c_get_compile_context): Update comment.
9555 (cplus_get_compile_context): Update comment.
9556 * compile/compile.c (compile_to_object): Update calls, don't rely
9557 on function pointer being NULL.
9558 * d-lang.c (d_language_data): Delete la_get_compile_instance
9559 initializer.
9560 * f-lang.c (f_language_data): Likewise.
9561 * go-lang.c (go_language_data): Likewise.
9562 * language.c (unknown_language_data): Likewise.
9563 (auto_language_data): Likewise.
9564 * language.h (language_data): Delete la_get_compile_instance field.
9565 (language_defn::get_compile_instance): New member function.
9566 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9567 initializer.
9568 * objc-lang.c (objc_language_data): Likewise.
9569 * opencl-lang.c (opencl_language_data): Likewise.
9570 * p-lang.c (pascal_language_data): Likewise.
9571 * rust-lang.c (rust_language_data): Likewise.
9572
9573 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9574
9575 * ada-lang.c (ada_add_all_symbols): Update comment.
9576 (ada_iterate_over_symbols): Delete, move implementation to...
9577 (ada_language::iterate_over_symbols): ...here, a new member
9578 function, rewrite to use range based for loop.
9579 (ada_language_data): Delete la_iterate_over_symbols initializer.
9580 * c-lang.c (c_language_data): Likewise.
9581 (cplus_language_data): Likewise.
9582 (asm_language_data): Likewise.
9583 (minimal_language_data): Likewise.
9584 * d-lang.c (d_language_data): Likewise.
9585 * f-lang.c (f_language_data): Likewise.
9586 * go-lang.c (go_language_data): Likewise.
9587 * language.c (unknown_language_data): Likewise.
9588 (auto_language_data): Likewise.
9589 * language.h (language_data): Delete la_iterate_over_symbols field.
9590 (language_defn::iterate_over_symbols): New member function.
9591 (LA_ITERATE_OVER_SYMBOLS): Update.
9592 * linespec.c (iterate_over_all_matching_symtabs): Update.
9593 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9594 initializer.
9595 * objc-lang.c (objc_language_data): Likewise.
9596 * opencl-lang.c (opencl_language_data): Likewise.
9597 * p-lang.c (pascal_language_data): Likewise.
9598 * rust-lang.c (rust_language_data): Likewise.
9599
9600 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9601
9602 * ada-lang.c (ada_language_data): Delete
9603 la_lookup_transparent_type initializer.
9604 * c-lang.c (c_language_data): Likewise.
9605 (cplus_language_data): Likewise.
9606 (cplus_language::lookup_transparent_type): New member function.
9607 (asm_language_data): Delete la_lookup_transparent_type
9608 initializer.
9609 (minimal_language_data): Likewise.
9610 * d-lang.c (d_language_data): Likewise.
9611 * f-lang.c (f_language_data): Likewise.
9612 * go-lang.c (go_language_data): Likewise.
9613 * language.c (unknown_language_data): Likewise.
9614 (auto_language_data): Likewise.
9615 * language.h (struct language_data): Delete
9616 la_lookup_transparent_type field.
9617 (language_defn::lookup_transparent_type): New member function.
9618 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9619 initializer.
9620 * objc-lang.c (objc_language_data): Likewise.
9621 * opencl-lang.c (opencl_language_data): Likewise.
9622 * p-lang.c (pascal_language_data): Likewise.
9623 * rust-lang.c (rust_language_data): Likewise.
9624 * symtab.c (symbol_matches_domain): Update call.
9625
9626 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9627
9628 * ada-lang.c (ada_language_arch_info): Delete function, move
9629 implementation to...
9630 (ada_language::language_arch_info): ...here, a new member
9631 function.
9632 (ada_language_data): Delete la_language_arch_info.
9633 * c-lang.c (c_language_data): Likewise.
9634 (c_language::language_arch_info): New member function.
9635 (cplus_language_arch_info): Delete function, move
9636 implementation to...
9637 (cplus_language::language_arch_info): ...here, a new member
9638 function.
9639 (cplus_language_data): Delete la_language_arch_info.
9640 (asm_language_data): Likewise.
9641 (asm_language::language_arch_info): New member function.
9642 (minimal_language_data): Delete la_language_arch_info.
9643 (minimal_language::language_arch_info): New member function.
9644 * d-lang.c (d_language_arch_info): Delete function, move
9645 implementation to...
9646 (d_language::language_arch_info): ...here, a new member
9647 function.
9648 (d_language_data): Delete la_language_arch_info.
9649 * f-lang.c (f_language_arch_info): Delete function, move
9650 implementation to...
9651 (f_language::language_arch_info): ...here, a new member
9652 function.
9653 (f_language_data): Delete la_language_arch_info.
9654 * go-lang.c (go_language_arch_info): Delete function, move
9655 implementation to...
9656 (go_language::language_arch_info): ...here, a new member
9657 function.
9658 (go_language_data): Delete la_language_arch_info.
9659 * language.c (unknown_language_data): Likewise.
9660 (unknown_language::language_arch_info): New member function.
9661 (auto_language_data): Delete la_language_arch_info.
9662 (auto_language::language_arch_info): New member function.
9663 (language_gdbarch_post_init): Update call to
9664 la_language_arch_info.
9665 * language.h (language_data): Delete la_language_arch_info
9666 function pointer.
9667 (language_defn::language_arch_info): New function.
9668 * m2-lang.c (m2_language_arch_info): Delete function, move
9669 implementation to...
9670 (m2_language::language_arch_info): ...here, a new member
9671 function.
9672 (m2_language_data): Delete la_language_arch_info.
9673 * objc-lang.c (objc_language_arch_info): Delete function, move
9674 implementation to...
9675 (objc_language::language_arch_info): ...here, a new member
9676 function.
9677 (objc_language_data): Delete la_language_arch_info.
9678 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9679 implementation to...
9680 (opencl_language::language_arch_info): ...here, a new member
9681 function.
9682 (opencl_language_data): Delete la_language_arch_info.
9683 * p-lang.c (pascal_language_arch_info): Delete function, move
9684 implementation to...
9685 (pascal_language::language_arch_info): ...here, a new member
9686 function.
9687 (pascal_language_data): Delete la_language_arch_info.
9688 * rust-lang.c (rust_language_arch_info): Delete function, move
9689 implementation to...
9690 (rust_language::language_arch_info): ...here, a new member
9691 function.
9692 (rust_language_data): Delete la_language_arch_info.
9693
9694 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9695
9696 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9697 initializer.
9698 * c-lang.c (c_language_data): Likewise.
9699 (cplus_language_data): Likewise.
9700 (cplus_language::pass_by_reference_info): New method.
9701 (asm_language_data): Delete la_pass_by_reference initializer.
9702 (minimal_language_data): Likewise.
9703 * cp-abi.c (cp_pass_by_reference): Remove use of
9704 default_pass_by_reference.
9705 * d-lang.c (d_language_data): Likewise.
9706 * f-lang.c (f_language_data): Likewise.
9707 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9708 default_pass_by_reference.
9709 * go-lang.c (go_language_data): Likewise.
9710 * language.c (language_pass_by_reference): Update.
9711 (default_pass_by_reference): Delete.
9712 (unknown_language_data): Delete la_pass_by_reference
9713 initializer.
9714 (auto_language_data): Likewise.
9715 * language.h (struct language_data): Delete la_pass_by_reference
9716 field.
9717 (language_defn::pass_by_reference_info): New member function.
9718 (default_pass_by_reference): Delete declaration.
9719 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9720 initializer.
9721 * objc-lang.c (objc_language_data): Likewise.
9722 * opencl-lang.c (opencl_language_data): Likewise.
9723 * p-lang.c (pascal_language_data): Likewise.
9724 * rust-lang.c (rust_language_data): Likewise.
9725
9726 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9727
9728 * ada-lang.c (ada_read_var_value): Delete function, move
9729 implementation to...
9730 (ada_language::read_var_value): ...here.
9731 (ada_language_data): Delete la_read_var_value initializer.
9732 * c-lang.c (c_language_data): Likewise.
9733 (cplus_language_data): Likewise.
9734 (minimal_language_data): Likewise.
9735 * d-lang.c (d_language_data): Likewise.
9736 * f-lang.c (f_language_data): Likewise.
9737 * findvar.c (default_read_var_value): Rename to...
9738 (language_defn::read_var_value): ...this.
9739 * findvar.c (read_var_value): Update header comment, and change to
9740 call member function instead of function pointer.
9741 * go-lang.c (go_language_data): Likewise.
9742 * language.c (unknown_language_data): Delete la_read_var_value
9743 initializer.
9744 (auto_language_data): Likewise.
9745 * language.h (struct language_data): Delete la_read_var_value
9746 field.
9747 (language_defn::read_var_value): New member function.
9748 (default_read_var_value): Delete declaration.
9749 * m2-lang.c (m2_language_data): Delete la_read_var_value
9750 initializer.
9751 * objc-lang.c (objc_language_data): Likewise.
9752 * opencl-lang.c (opencl_language_data): Likewise.
9753 * p-lang.c (pascal_language_data): Likewise.
9754 * rust-lang.c (rust_language_data): Likewise.
9755 * value.h (default_read_var_value): Delete declaration.
9756
9757 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9758
9759 * ada-lang.c (ada_print_array_index): Delete function, move
9760 implementation to...
9761 (ada_language::print_array_index): ...here.
9762 (ada_language_data): Delete la_print_array_index initializer.
9763 * c-lang.c (c_language_data): Likewise.
9764 (cplus_language_data): Likewise.
9765 (minimal_language_data): Likewise.
9766 * d-lang.c (d_language_data): Likewise.
9767 * f-lang.c (f_language_data): Likewise.
9768 * go-lang.c (go_language_data): Likewise.
9769 * language.c (default_print_array_index): Delete function, move
9770 implementation to...
9771 (language_defn::print_array_index): ...here.
9772 (unknown_language_data): Delete la_print_array_index initializer.
9773 (auto_language_data): Likewise.
9774 * language.h (struct language_data): Delete la_print_array_index
9775 field.
9776 (language_defn::print_array_index): New member function.
9777 (LA_PRINT_ARRAY_INDEX): Update.
9778 (default_print_array_index): Delete declaration.
9779 * m2-lang.c (m2_language_data): Delete la_print_array_index
9780 initializer.
9781 * objc-lang.c (objc_language_data): Likewise.
9782 * opencl-lang.c (opencl_language_data): Likewise.
9783 * p-lang.c (pascal_language_data): Likewise.
9784 * rust-lang.c (rust_language_data): Likewise.
9785
9786 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9787
9788 * gdb/ada-lang.c (ada_language_defn): Convert to...
9789 (ada_language_data): ...this.
9790 (class ada_language): New class.
9791 (ada_language_defn): New static global.
9792 * gdb/c-lang.c (c_language_defn): Convert to...
9793 (c_language_data): ...this.
9794 (class c_language): New class.
9795 (c_language_defn): New static global.
9796 (cplus_language_defn): Convert to...
9797 (cplus_language_data): ...this.
9798 (class cplus_language): New class.
9799 (cplus_language_defn): New static global.
9800 (asm_language_defn): Convert to...
9801 (asm_language_data): ...this.
9802 (class asm_language): New class.
9803 (asm_language_defn): New static global.
9804 (minimal_language_defn): Convert to...
9805 (minimal_language_data): ...this.
9806 (class minimal_language): New class.
9807 (minimal_language_defn): New static global.
9808 * gdb/d-lang.c (d_language_defn): Convert to...
9809 (d_language_data): ...this.
9810 (class d_language): New class.
9811 (d_language_defn): New static global.
9812 * gdb/f-lang.c (f_language_defn): Convert to...
9813 (f_language_data): ...this.
9814 (class f_language): New class.
9815 (f_language_defn): New static global.
9816 * gdb/go-lang.c (go_language_defn): Convert to...
9817 (go_language_data): ...this.
9818 (class go_language): New class.
9819 (go_language_defn): New static global.
9820 * gdb/language.c (unknown_language_defn): Remove declaration.
9821 (current_language): Initialize to nullptr, real initialization is
9822 moved to _initialize_language.
9823 (languages): Delete global.
9824 (language_defn::languages): Define.
9825 (set_language_command): Use language_defn::languages.
9826 (set_language): Likewise.
9827 (range_error): Likewise.
9828 (language_enum): Likewise.
9829 (language_def): Likewise.
9830 (add_set_language_command): Use language_def::languages for the
9831 language list, and language_def to lookup language pointers.
9832 (skip_language_trampoline): Use language_defn::languages.
9833 (unknown_language_defn): Convert to...
9834 (unknown_language_data): ...this.
9835 (class unknown_language): New class.
9836 (unknown_language_defn): New static global.
9837 (auto_language_defn): Convert to...
9838 (auto_language_data): ...this.
9839 (class auto_language): New class.
9840 (auto_language_defn): New static global.
9841 (language_gdbarch_post_init): Use language_defn::languages.
9842 (_initialize_language): Initialize current_language.
9843 * gdb/language.h (struct language_defn): Rename to...
9844 (struct language_data): ...this.
9845 (struct language_defn): New.
9846 (auto_language_defn): Delete.
9847 (unknown_language_defn): Delete.
9848 (minimal_language_defn): Delete.
9849 (ada_language_defn): Delete.
9850 (asm_language_defn): Delete.
9851 (c_language_defn): Delete.
9852 (cplus_language_defn): Delete.
9853 (d_language_defn): Delete.
9854 (f_language_defn): Delete.
9855 (go_language_defn): Delete.
9856 (m2_language_defn): Delete.
9857 (objc_language_defn): Delete.
9858 (opencl_language_defn): Delete.
9859 (pascal_language_defn): Delete.
9860 (rust_language_defn): Delete.
9861 * gdb/m2-lang.c (m2_language_defn): Convert to...
9862 (m2_language_data): ...this.
9863 (class m2_language): New class.
9864 (m2_language_defn): New static global.
9865 * gdb/objc-lang.c (objc_language_defn): Convert to...
9866 (objc_language_data): ...this.
9867 (class objc_language): New class.
9868 (objc_language_defn): New static global.
9869 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9870 (opencl_language_data): ...this.
9871 (class opencl_language): New class.
9872 (opencl_language_defn): New static global.
9873 * gdb/p-lang.c (pascal_language_defn): Convert to...
9874 (pascal_language_data): ...this.
9875 (class pascal_language): New class.
9876 (pascal_language_defn): New static global.
9877 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9878 language pointer, update comment format.
9879 * gdb/rust-lang.c (rust_language_defn): Convert to...
9880 (rust_language_data): ...this.
9881 (class rust_language): New class.
9882 (rust_language_defn): New static global.
9883
9884 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9885
9886 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9887 member variable.
9888 <m_stmt_at_address>: New member variable.
9889 (lnp_state_machine::record_line): Don't record some lines, update
9890 tracking of is_stmt at the same address.
9891 (lnp_state_machine::lnp_state_machine): Initialise new member
9892 variables.
9893
9894 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9895
9896 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9897 "-include gnu-nat-mig.h".
9898 * gnu-nat-mig.h: New file.
9899 * gnu-nat.c: Include "gnu-nat-mig.h".
9900 (exc_server, msg_reply_server, notify_server,
9901 process_reply_server): Remove declarations.
9902
9903 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9904
9905 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9906 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9907 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9908 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9909 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9910 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9911 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9912 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9913 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9914 to gnu_nat_target class.
9915 * gnu-nat.c: Likewise.
9916 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9917 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9918 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9919 object.
9920 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9921 instead of `gnu_target'.
9922
9923 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9924
9925 * i386-gnu-tdep.c: Include "gdbcore.h"
9926 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9927 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9928 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9929 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9930 i386_gnu_sigcontext_addr): New functions
9931 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9932 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9933 tdep.
9934
9935 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9936
9937 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9938 before fork_inferior call. Avoid calling it if target_is_pushed returns
9939 true.
9940
9941 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9942
9943 * gnu-nat.h (gnu_target): New variable declaration.
9944 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9945 gnu_target.
9946 * gnu-nat.c (gnu_target): New variable.
9947 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9948 add_thread_silent, and add_thread calls.
9949 (gnu_nat_target::create_inferior): Pass gnu_target to
9950 add_thread_silent, thread_change_ptid call.
9951 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9952 call.
9953
9954 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9955
9956 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9957 (gnu_nat_target::find_memory_regions): Remove unused
9958 `old_address' variable.
9959
9960 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9961
9962 * gnu-nat.c: Include "gdbarch.h".
9963
9964 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9965
9966 * reply_mig_hack.awk (Error return): Cast function through
9967 void *, to bypass compiler function call check.
9968
9969 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9970
9971 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9972 $(srcdir)/reply_mig_hack.awk.
9973
9974 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9975
9976 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9977
9978 2020-05-30 Jonny Grant <jg@jguk.org>
9979
9980 * configure.ac (ACX_BUGURL): change bug URL to https.
9981
9982 2020-05-30 Pedro Alves <palves@redhat.com>
9983
9984 * cp-support.c (replace_typedefs_template): New.
9985 (replace_typedefs_qualified_name): Handle
9986 DEMANGLE_COMPONENT_TEMPLATE.
9987
9988 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9989
9990 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9991 dwarf2/index-cache.h, dwarf2/index-write.c,
9992 dwarf2/index-write.h, dwarf2/line-header.c,
9993 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9994 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9995 variables and fields from `dwarf2_per_objfile` to just
9996 `per_objfile` throughout.
9997
9998 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9999
10000 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10001 <push_dwarf_reg_entry_value>: Add comment.
10002
10003 2020-05-28 Kevin Buettner <kevinb@redhat.com>
10004 Keith Seitz <keiths@redhat.com>
10005
10006 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10007 instead of PyEval_ReleaseLock.
10008 (class gdbpy_gil): Move to earlier in file.
10009 (finalize_python): Set gdb_python_initialized.
10010 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10011 when not initialized.
10012
10013 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10016 <push_dwarf_reg_entry_value>: Remove assert. Override
10017 per_objfile with caller_per_objfile.
10018
10019 2020-05-28 Tom de Vries <tdevries@suse.de>
10020
10021 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10022 PR gold/15646 workaround to symbol kind "type".
10023
10024 2020-05-27 Tom Tromey <tromey@adacore.com>
10025
10026 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10027
10028 2020-05-27 Tom Tromey <tromey@adacore.com>
10029
10030 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10031 Use htab_find_with_hash.
10032 <add_abbrev>: Remove "abbrev_number" parameter.
10033 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10034 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10035 (hash_abbrev): Add comment.
10036 (abbrev_table::lookup_abbrev): Move to header file.
10037 (abbrev_table::read): Update.
10038
10039 2020-05-27 Tom Tromey <tromey@adacore.com>
10040
10041 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10042 method.
10043 <canonical_name>: New member.
10044 <raw_name>: Rename from "name".
10045 (partial_die_info): Initialize canonical_name.
10046 (scan_partial_symbols): Check raw_name.
10047 (partial_die_parent_scope, partial_die_full_name)
10048 (add_partial_symbol, add_partial_subprogram)
10049 (add_partial_enumeration, load_partial_dies): Use "name" method.
10050 (partial_die_info::name): New method.
10051 (partial_die_info::read, guess_partial_die_structure_name)
10052 (partial_die_info::fixup): Update.
10053
10054 2020-05-27 Tom Tromey <tromey@adacore.com>
10055
10056 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10057 <get_ref_die_offset>: Inline.
10058 <get_ref_die_offset_complaint>: New method.
10059 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10060 (attribute::get_ref_die_offset_complaint): Rename from
10061 get_ref_die_offset. Just issue complaint.
10062
10063 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10064
10065 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10066
10067 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10068
10069 * exec.c (exec_file_attach): Use errno value of first openp failure.
10070
10071 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10072
10073 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10074 Don't close thread handle.
10075
10076 2020-05-27 Tom Tromey <tom@tromey.com>
10077 Simon Marchi <simon.marchi@efficios.com>
10078
10079 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10080 shared_ptr.
10081 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10082 member.
10083 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10084 dwarf2_per_bfd_objfile_data_key>: New globals.
10085 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10086 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10087 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10088 shared.
10089 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10090 short-circuit when sharing.
10091 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10092 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10093
10094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10095
10096 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10097 to...
10098 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10099 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10100
10101 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10104 build_name_components, find_name_components_bounds>:
10105 Add per_objfile parameter.
10106 (struct mapped_index) <symbol_name_at>: Likewise.
10107 (struct mapped_debug_names): Remove constructor.
10108 <dwarf2_per_objfile>: Remove field.
10109 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10110 (mapped_index_base::find_name_components_bounds,
10111 mapped_index_base::build_name_components,
10112 dw2_expand_symtabs_matching_symbol): Likewise.
10113 (class mock_mapped_index) <symbol_name_at>: Likewise.
10114 (check_match): Likewise.
10115 (check_find_bounds_finds): Likewise.
10116 (test_mapped_index_find_name_component_bounds): Update.
10117 (CHECK_MATCH): Update.
10118 (dw2_expand_symtabs_matching): Update.
10119 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10120 per_objfile parameter.
10121 <find_vec_in_debug_names>: Likewise.
10122 <m_per_objfile>: New field.
10123 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10124 parameter.
10125 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10126 (dw2_debug_names_iterator::next): Update.
10127 (dw2_debug_names_lookup_symbol): Update.
10128 (dw2_debug_names_expand_symtabs_for_function): Update.
10129 (dw2_debug_names_map_matching_symbols): Update.
10130 (dw2_debug_names_expand_symtabs_matching): Update.
10131 (dwarf2_read_debug_names): Update.
10132
10133 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10134
10135 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10136 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10137 move to dwarf2_per_objfile.
10138 <read_in_chain>: Remove.
10139 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10140 remove_all_cus, age_comp_units>: New methods.
10141 <m_dwarf2_cus>: New member.
10142 (struct dwarf2_per_cu_data) <cu>: Remove.
10143 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10144 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10145 moved to methods of dwarf2_per_objfile.
10146 (dwarf2_clear_marks): Remove.
10147 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10148 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10149 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10150 (dwarf2_per_objfile::remove_all_cus): New.
10151 (class free_cached_comp_units) <~free_cached_comp_units>:
10152 Update.
10153 (load_cu): Update.
10154 (dw2_do_instantiate_symtab): Adjust.
10155 (fill_in_sig_entry_from_dwo_entry): Adjust.
10156 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10157 (cutu_reader::cutu_reader): Likewise.
10158 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10159 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10160 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10161 and dwarf2_per_objfile::age_comp_units.
10162 (load_partial_comp_unit): Update.
10163 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10164 (process_queue): Likewise.
10165 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10166 backlink.
10167 (dwarf2_read_addr_index): Likewise.
10168 (follow_die_offset): Likewise.
10169 (dwarf2_fetch_die_loc_sect_off): Likewise.
10170 (dwarf2_fetch_constant_bytes): Likewise.
10171 (dwarf2_fetch_die_type_sect_off): Likewise.
10172 (follow_die_sig_1): Likewise.
10173 (load_full_type_unit): Likewise.
10174 (read_signatured_type): Likewise.
10175 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10176 (dwarf2_cu::~dwarf2_cu): Remove.
10177 (dwarf2_per_objfile::get_cu): New.
10178 (dwarf2_per_objfile::set_cu): New.
10179 (age_cached_comp_units): Rename to...
10180 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10181 to std::unordered_map.
10182 (free_one_cached_comp_unit): Rename to...
10183 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10184 to std::unordered_map.
10185 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10186 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10187 a dwarf2_per_objfile in data.
10188 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10189 (dwarf2_clear_marks): Remove.
10190
10191 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10192
10193 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10194 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10195 (init_tu_and_read_dwo_dies): Likewise.
10196 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10197 (cutu_reader::cutu_reader): Likewise.
10198 (load_partial_comp_unit): Likewise.
10199 (process_psymtab_comp_unit): Update.
10200 (build_type_psymtabs_1): Update.
10201 (process_skeletonless_type_unit): Update.
10202 (load_full_comp_unit): Update.
10203 (find_partial_die): Update.
10204 (dwarf2_read_addr_index): Update.
10205 (read_signatured_type): Update.
10206
10207 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10208
10209 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10210 m_header_read_in>: New fields.
10211 <get_header>: New method.
10212 * dwarf2/read.c (per_cu_header_read_in): Remove.
10213 (dwarf2_per_cu_data::get_header): New.
10214 (dwarf2_per_cu_data::addr_size): Update.
10215 (dwarf2_per_cu_data::offset_size): Update.
10216 (dwarf2_per_cu_data::ref_addr_size): Update.
10217
10218 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10219
10220 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10221 (dw2_do_instantiate_symtab): Update.
10222 (queue_and_load_all_dwo_tus): Change parameter from
10223 dwarf2_per_cu_data to dwarf2_cu.
10224 (dwarf2_fetch_die_loc_sect_off): Update.
10225 (dwarf2_fetch_constant_bytes): Update.
10226 (dwarf2_fetch_die_type_sect_off): Update.
10227
10228 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10229
10230 * dwarf2/read.c (process_full_comp_unit,
10231 process_full_type_unit): Remove per_cu, per_objfile paramters.
10232 Add dwarf2_cu parameter.
10233 (process_queue): Update.
10234
10235 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10236
10237 * dwarf2/read.c (create_cu_from_index_list): Replace
10238 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10239 (create_cus_from_index_list): Likewise.
10240 (create_cus_from_index): Likewise.
10241 (create_signatured_type_table_from_index): Likewise.
10242 (create_cus_from_debug_names_list): Likewise.
10243 (create_cus_from_debug_names): Likewise.
10244 (dwarf2_read_gdb_index): Update.
10245 (dwarf2_read_debug_names): Update.
10246
10247 2020-05-27 Tom Tromey <tom@tromey.com>
10248 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * dwarf2/read.h (struct dwarf2_per_objfile)
10251 <get_type_for_signatured_type, set_type_for_signatured_type>:
10252 New methods.
10253 <m_type_map>: New member.
10254 (struct signatured_type) <type>: Remove.
10255 * dwarf2/read.c
10256 (dwarf2_per_objfile::get_type_for_signatured_type,
10257 dwarf2_per_objfile::set_type_for_signatured_type): New.
10258 (get_signatured_type): Use new methods.
10259
10260 2020-05-27 Tom Tromey <tom@tromey.com>
10261 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10264 (struct dwarf2_per_objfile) <type_units>: New member.
10265 <get_type_unit_group_unshareable>: New method.
10266 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10267 num_symtabs, symtabs>: Remove; move to
10268 type_unit_group_unshareable.
10269 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10270 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10271 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10272
10273 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10274
10275 * dwarf2/read.h (struct dwarf2_per_cu_data):
10276 <dwarf2_per_objfile>: Remove.
10277 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10278 dwarf2_per_objfile.
10279 (create_signatured_type_table_from_index): Likewise.
10280 (create_signatured_type_table_from_debug_names): Likewise.
10281 (create_debug_type_hash_table): Likewise.
10282 (fill_in_sig_entry_from_dwo_entry): Likewise.
10283 (create_type_unit_group): Likewise.
10284 (read_comp_units_from_section): Likewise.
10285 (create_cus_hash_table): Likewise.
10286
10287 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10288
10289 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10290 dwarf2_per_cu_data::dwarf2_per_objfile.
10291 (compute_compunit_symtab_includes): Likewise.
10292 (dwarf2_cu::start_symtab): Likewise.
10293
10294 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10295
10296 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10297 parameter.
10298 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10299 (read_namespace_alias): Update.
10300 (lookup_die_type): Update.
10301 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10302 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10303 Update.
10304 (disassemble_dwarf_expression): Update.
10305
10306 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10307
10308 * dwarf2/read.h (struct dwarf2_queue_item): Add
10309 dwarf2_per_objfile parameter, assign new parameter.
10310 <per_objfile>: New field.
10311 * dwarf2/read.c (free_one_cached_comp_unit): Add
10312 dwarf2_per_objfile parameter.
10313 (queue_comp_unit): Likewise.
10314 (dw2_do_instantiate_symtab): Update.
10315 (process_psymtab_comp_unit): Update.
10316 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10317 (process_imported_unit_die): Update.
10318 (queue_and_load_dwo_tu): Update.
10319 (follow_die_offset): Update.
10320 (follow_die_sig_1): Update.
10321
10322 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10323
10324 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10325 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10326 (read_call_site_scope): Assign per_objfile.
10327 (dwarf2_per_cu_data::objfile): Remove.
10328 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10329 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10330 dwarf2_per_objfile parameter.
10331 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10332 dwarf2_per_objfile parameter.
10333 (dwarf_expr_reg_to_entry_parameter): Add output
10334 dwarf2_per_objfile parameter.
10335 (locexpr_get_frame_base): Update.
10336 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10337 <push_dwarf_reg_entry_value>: Update.
10338 <call_site_to_target_addr>: Update.
10339 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10340 parameter.
10341 (value_of_dwarf_reg_entry): Update.
10342 (rw_pieced_value): Update.
10343 (indirect_synthetic_pointer): Update.
10344 (dwarf2_evaluate_property): Update.
10345 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10346 parameter.
10347 (locexpr_read_variable): Update.
10348 (locexpr_get_symbol_read_needs): Update.
10349 (loclist_read_variable): Update.
10350
10351 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10352
10353 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10354 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10355 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10356 parameter.
10357 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10358 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10359 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10360 parameter.
10361 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10362 sect_variable_value): Add dwarf2_per_objfile parameter.
10363 (class dwarf_evaluate_loc_desc) <dwarf_call,
10364 dwarf_variable_value>: Update.
10365 (fetch_const_value_from_synthetic_pointer): Add
10366 dwarf2_per_objfile parameter.
10367 (fetch_const_value_from_synthetic_pointer): Update.
10368 (coerced_pieced_ref): Update.
10369 (class symbol_needs_eval_context) <dwarf_call,
10370 dwarf_variable_value>: Update.
10371 (dwarf2_compile_expr_to_ax): Update.
10372
10373 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10374
10375 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10376 parameter.
10377 (dwarf2_evaluate_loc_desc_full): Update.
10378
10379 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10380
10381 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10382 parameter.
10383 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10384 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10385 dwarf2_per_objfile parameter.
10386 (decode_debug_loc_dwo_addresses): Likewise.
10387 (dwarf2_find_location_expression): Update.
10388 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10389 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10390 parameter.
10391 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10392 parameter.
10393 (locexpr_describe_location_1): Likewise.
10394 (locexpr_describe_location): Update.
10395
10396 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10397
10398 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10399 Remove.
10400 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10401 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10402 (dwarf2_compile_property_to_c): Update.
10403 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10404 use text offset from objfile.
10405 (locexpr_tracepoint_var_ref): Update.
10406 (locexpr_generate_c_location): Update.
10407 (loclist_describe_location): Update.
10408 (loclist_tracepoint_var_ref): Update.
10409 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10410 dwarf2_per_objfile parameter.
10411 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10412 use text offset from objfile.
10413 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10414
10415 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10416
10417 * dwarf2/expr.h (struct dwarf_expr_context)
10418 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10419 <offset>: Remove.
10420 <per_objfile>: New member.
10421 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10422 dwarf2_per_objfile parameter. Don't set offset, set
10423 per_objfile.
10424 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10425 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10426 a dwarf2_per_objfile object instead of an offset.
10427 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10428 constructor.
10429 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10430 to dwarf2_expr_executor constructor. Don't set offset.
10431 (dwarf2_fetch_cfa_info): Update.
10432 (struct dwarf2_frame_cache) <text_offset>: Remove.
10433 <per_objfile>: New field.
10434 (dwarf2_frame_cache): Update.
10435 (dwarf2_frame_prev_register): Update.
10436 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10437 <dwarf_evaluate_loc_desc>: Add constructor.
10438 (dwarf2_evaluate_loc_desc_full): Update.
10439 (dwarf2_locexpr_baton_eval): Update.
10440 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10441 Add constructor.
10442 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10443
10444 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10445
10446 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10447 addr_sized_int_type>: Move to dwarf2_cu.
10448 <int_type>: Move to dwarf2_per_objfile.
10449 (struct dwarf2_per_objfile) <int_type>: Move here.
10450 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10451 addr_sized_int_type>: Move here.
10452 (read_func_scope): Update.
10453 (read_array_type): Update.
10454 (read_tag_string_type): Update.
10455 (attr_to_dynamic_prop): Update.
10456 (dwarf2_per_cu_data::int_type): Rename to...
10457 (dwarf2_per_objfile::int_type): ... this.
10458 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10459 (dwarf2_cu::addr_sized_int_type): ... this.
10460 (read_subrange_type): Update.
10461 (dwarf2_per_cu_data::addr_type): Rename to...
10462 (dwarf2_cu::addr_type): ... this.
10463 (set_die_type): Update.
10464
10465 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10466
10467 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10468 data through per_cu->cu.
10469
10470 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10471
10472 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10473 dwarf2_per_cu_data parameter fo dwarf2_cu.
10474 (lookup_dwo_type_unit): Likewise.
10475 (read_cutu_die_from_dwo): Likewise.
10476 (lookup_dwo_unit): Likewise.
10477 (open_and_init_dwo_file): Likewise.
10478 (lookup_dwo_cutu): Likewise.
10479 (lookup_dwo_comp_unit): Likewise.
10480 (lookup_dwo_type_unit): Likewise.
10481 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10482 (cutu_reader::cutu_reader): Update.
10483
10484 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10485
10486 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10487 parameter.
10488 (process_full_type_unit): Likewise.
10489 (process_queue): Update.
10490
10491 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10492
10493 * dwarf2/read.c (recursively_compute_inclusions): Add
10494 dwarf2_per_objfile parameter.
10495 (compute_compunit_symtab_includes): Likewise.
10496 (process_cu_includes): Update.
10497
10498 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10499
10500 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10501 parameter.
10502 (create_type_unit_group): Update.
10503 (process_psymtab_comp_unit_reader): Update.
10504 (build_type_psymtabs_reader): Update.
10505
10506 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10507
10508 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10509 object through m_this_cu->cu.
10510
10511 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10512
10513 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10514 the info parameter.
10515 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10516
10517 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10518
10519 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10520 per_objfile parameter.
10521 (load_full_type_unit): Add per_objfile parameter.
10522 (read_signatured_type): Likewise.
10523 (load_full_comp_unit): Likewise.
10524 (load_cu): Likewise.
10525 (dw2_do_instantiate_symtab): Likewise.
10526 (dw2_get_file_names): Likewise.
10527 (dw2_map_symtabs_matching_filename): Update.
10528 (dw_expand_symtabs_matching_file_matcher): Update.
10529 (dw2_map_symbol_filenames): Update.
10530 (process_psymtab_comp_unit): Add per_objfile parameter.
10531 (build_type_psymtabs_1): Update.
10532 (process_skeletonless_type_unit): Update.
10533 (dwarf2_build_psymtabs_hard): Update.
10534 (load_partial_comp_unit): Add per_objfile parameter.
10535 (scan_partial_symbols): Update.
10536 (load_full_comp_unit): Add per_objfile parameter.
10537 (process_imported_unit_die): Update.
10538 (create_cus_hash_table): Update.
10539 (find_partial_die): Update.
10540 (dwarf2_read_addr_index): Update.
10541 (follow_die_offset): Update.
10542 (dwarf2_fetch_die_loc_sect_off): Update.
10543 (dwarf2_fetch_constant_bytes): Update.
10544 (dwarf2_fetch_die_type_sect_off): Update.
10545 (follow_die_sig_1): Update.
10546 (load_full_type_unit): Add per_objfile parameter.
10547 (read_signatured_type): Likewise.
10548
10549 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10550
10551 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10552 of objfile_name.
10553
10554 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10555
10556 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10557 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10558 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10559 field.
10560 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10561 (create_cus_from_index): Update.
10562 (dwarf2_read_gdb_index): Update.
10563 (create_cus_from_debug_names): Update.
10564 (dwarf2_read_debug_names): Update.
10565 (get_abbrev_section_for_cu): Update.
10566 (create_all_comp_units): Update.
10567 (read_attribute_value): Update.
10568 (get_debug_line_section): Update.
10569 * dwarf2/index-cache.c (index_cache::store): Update.
10570 * dwarf2/index-write.c (save_gdb_index_command): Update.
10571 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10572
10573 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10574
10575 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10576 member.
10577 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10578 dwarf2_per_cu_data::per_bfd.
10579 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10580 (create_type_unit_group): Likewise.
10581 (queue_comp_unit): Remove reference to
10582 per_cu->dwarf2_per_objfile.
10583 (maybe_queue_comp_unit): Likewise.
10584 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10585 (create_cus_hash_table): Assign new field.
10586
10587 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10588
10589 * dwarf2/read.c: Replace
10590 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10591 dwarf2_cu->per_objfile throughout.
10592
10593 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10594
10595 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10596 parameter, don't use per_cu->dwarf2_per_objfile.
10597 (dw2_instantiate_symtab): Likewise.
10598 (dw2_find_last_source_symtab): Update.
10599 (dw2_map_expand_apply): Update.
10600 (dw2_lookup_symbol): Update.
10601 (dw2_expand_symtabs_for_function): Update.
10602 (dw2_expand_all_symtabs): Update.
10603 (dw2_expand_symtabs_with_fullname): Update.
10604 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10605 don't use per_cu->dwarf2_per_objfile.
10606 (dw2_expand_marked_cus): Update.
10607 (dw2_find_pc_sect_compunit_symtab): Update.
10608 (dw2_debug_names_lookup_symbol): Update.
10609 (dw2_debug_names_expand_symtabs_for_function): Update.
10610 (dw2_debug_names_map_matching_symbols): Update.
10611 (dwarf2_psymtab::expand_psymtab): Update.
10612
10613 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10614
10615 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10616 <per_objfile>: New member.
10617 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10618 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10619 call to dwarf2_cu.
10620 (cutu_reader::cutu_reader): Update.
10621 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10622
10623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10626 struct dwarf2_per_objfile.
10627 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10628 dwarf2_per_bfd.
10629 * dwarf2/read.c (set_die_type): Update.
10630 (get_die_type_at_offset): Update.
10631
10632 2020-05-27 Tom Tromey <tom@tromey.com>
10633 Simon Marchi <simon.marchi@efficios.com>
10634
10635 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10636 method.
10637 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10638 get_symtab, set_symtab>: New methods.
10639 <m_symtabs>: New field.
10640 (struct dwarf2_psymtab): Derive from partial_symtab.
10641 <readin_p, get_compunit_symtab>: Declare methods.
10642 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10643 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10644 New methods.
10645 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10646 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10647 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10648 (dw2_symtab_iter_next, dw2_print_stats)
10649 (dw2_expand_symtabs_with_fullname)
10650 (dw2_expand_symtabs_matching_one)
10651 (dw_expand_symtabs_matching_file_matcher)
10652 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10653 (dw2_debug_names_iterator::next)
10654 (dw2_debug_names_map_matching_symbols)
10655 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10656 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10657 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10658 New methods.
10659 (get_compunit_symtab, process_full_comp_unit)
10660 (process_full_type_unit): Update.
10661 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10662
10663 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10664
10665 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10666 then introduce a new dwarf2_per_objfile type.
10667 <read_line_string>: Move to the new dwarf2_per_objfile type.
10668 <objfile>: Likewise.
10669 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10670 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10671 dwarf2_per_objfile->per_bfd.
10672 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10673 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10674 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10675 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10676 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10677 (dwarf2_per_objfile::locate_sections): Rename to...
10678 (dwarf2_per_bfd::locate_sections): ... this.
10679 (dwarf2_per_objfile::get_cutu): Rename to...
10680 (dwarf2_per_bfd::get_cutu): ... this.
10681 (dwarf2_per_objfile::get_cu): Rename to...
10682 (dwarf2_per_bfd::get_cu): ... this.
10683 (dwarf2_per_objfile::get_tu): Rename to...
10684 (dwarf2_per_bfd::get_tu): ... this.
10685 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10686 (dwarf2_per_bfd::allocate_per_cu): ... this.
10687 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10688 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10689 (get_gdb_index_contents_ftype): Change parameter from
10690 dwarf2_per_objfile to dwarf2_per_bfd.
10691 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10692 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10693
10694 2020-05-27 Tom Tromey <tom@tromey.com>
10695 Simon Marchi <simon.marchi@efficios.com>
10696
10697 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10698 (allocate_piece_closure): Set "per_objfile" member.
10699 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10700 (locexpr_describe_location, loclist_describe_location): Use new
10701 member.
10702 * dwarf2/read.c (read_call_site_scope)
10703 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10704 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10705 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10706 handle_data_member_location): Set per_objfile member.
10707 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10708 member.
10709 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10710
10711 2020-05-27 Tom Tromey <tom@tromey.com>
10712
10713 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10714 allocate_signatured_type>: Declare new methods.
10715 <m_num_psymtabs>: New member.
10716 (struct dwarf2_per_cu_data) <index>: New member.
10717 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10718 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10719 (create_cu_from_index_list): Use allocate_per_cu.
10720 (create_signatured_type_table_from_index)
10721 (create_signatured_type_table_from_debug_names)
10722 (create_debug_type_hash_table, add_type_unit)
10723 (read_comp_units_from_section): Use allocate_signatured_type.
10724
10725 2020-05-27 Tom Tromey <tom@tromey.com>
10726
10727 * psymtab.c (partial_map_expand_apply)
10728 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10729 (psym_lookup_global_symbol_language)
10730 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10731 (psym_print_stats, psym_expand_symtabs_for_function)
10732 (psym_map_symbol_filenames, psym_map_matching_symbols)
10733 (psym_expand_symtabs_matching)
10734 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10735 (maintenance_check_psymtabs): Update.
10736 * psympriv.h (struct partial_symtab) <readin_p,
10737 get_compunit_symtab>: Add objfile parameter.
10738 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10739 Likewise.
10740 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10741 get_compunit_symtab>: Likewise.
10742 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10743
10744 2020-05-27 Tom Tromey <tom@tromey.com>
10745
10746 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10747 member.
10748 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10749 (create_cu_from_index_list)
10750 (create_signatured_type_table_from_index)
10751 (create_signatured_type_table_from_debug_names)
10752 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10753 (dwarf2_create_include_psymtab)
10754 (create_debug_type_hash_table, add_type_unit)
10755 (create_type_unit_group, read_comp_units_from_section)
10756 (dwarf2_compute_name, create_cus_hash_table)
10757 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10758 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10759 obstack.
10760 (dw2_get_real_path): Likewise. Change argument to
10761 dwarf2_per_objfile.
10762
10763 2020-05-27 Luis Machado <luis.machado@linaro.org>
10764
10765 PR tdep/26000
10766 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10767 for ldrd (immediate).
10768
10769 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10770
10771 * command.h: Add comment giving the name of class_tui.
10772 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10773 create the fake command for the help for class_tui.
10774
10775 2020-05-26 Tom Tromey <tromey@adacore.com>
10776
10777 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10778 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10779 (val_atr): New function.
10780 (value_val_atr): Use it.
10781 * ada-valprint.c (print_optional_low_bound): Change low bound
10782 handling for enums.
10783 (val_print_packed_array_elements): Don't call discrete_position.
10784 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10785 discrete_position for enum types.
10786 * language.c (default_print_array_index): Change type.
10787 * language.h (struct language_defn) <la_print_array_index>: Add
10788 index_type parameter, change type of index_value.
10789 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10790 (default_print_array_index): Update.
10791 * valprint.c (maybe_print_array_index): Don't call
10792 value_from_longest. Update.
10793 (value_print_array_elements): Don't call discrete_position.
10794
10795 2020-05-26 Tom Tromey <tromey@adacore.com>
10796
10797 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10798 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10799
10800 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10801
10802 PR gdb/13519
10803 * avr-tdep.c (avr_integer_to_address): Return data or code
10804 address accordingly to the second 'type' argument of the
10805 function.
10806
10807 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10808
10809 * infcmd.c, inferior.h: (construct_inferior_arguments):
10810 Moved function from here to gdbsupport/common-inferior.{h,cc}
10811
10812 2020-05-23 Tom Tromey <tom@tromey.com>
10813
10814 Revert commit eca1f90c:
10815 * NEWS: Remove entry for completion styling.
10816 * completer.c (_rl_completion_prefix_display_length): Move
10817 declaration later.
10818 (gdb_fnprint): Revert.
10819 (gdb_display_match_list_1): Likewise.
10820 * cli/cli-style.c (completion_prefix_style)
10821 (completion_difference_style, completion_suffix_style): Remove.
10822 (_initialize_cli_style): Revert.
10823 * cli/cli-style.h (completion_prefix_style)
10824 (completion_difference_style, completion_suffix_style): Don't
10825 declare.
10826
10827 2020-05-24 Pedro Alves <palves@redhat.com>
10828
10829 * symtab.c (completion_list_add_name): Return boolean indication
10830 of whether the symbol matched.
10831 (completion_list_add_symbol): Don't try to remove C++ aliases if
10832 the symbol didn't match in the first place.
10833 * symtab.h (completion_list_add_name): Return bool.
10834
10835 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10836
10837 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10838 type::field.
10839
10840 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10841
10842 GDB 9.2 released.
10843
10844 2020-05-23 Tom Tromey <tom@tromey.com>
10845
10846 * NEWS: Add entry for completion styling.
10847 * completer.c (_rl_completion_prefix_display_length): Move
10848 declaration earlier.
10849 (gdb_fnprint): Use completion_style.
10850 (gdb_display_match_list_1): Likewise.
10851 * cli/cli-style.c (completion_prefix_style)
10852 (completion_difference_style, completion_suffix_style): New
10853 globals.
10854 (_initialize_cli_style): Register new globals.
10855 * cli/cli-style.h (completion_prefix_style)
10856 (completion_difference_style, completion_suffix_style): Declare.
10857
10858 2020-05-23 Pedro Alves <palves@redhat.com>
10859
10860 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10861 (parse_escape): Use ISDIGIT instead of isdigit.
10862 (puts_debug): Use gdb_isprint instead of isprint.
10863 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10864 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10865 ISSPACE instead of isspace.
10866 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10867 instead of isspace.
10868 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10869 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10870 instead of isxdigit and ISDIGIT instead of isdigit.
10871
10872 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10873
10874 * gdbtypes.h (struct type) <field>: New method.
10875 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10876 or type::field.
10877
10878 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10879
10880 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10881 (TYPE_FIELDS): Use type::fields. Change all call sites that
10882 modify the propery to use type::set_fields instead.
10883
10884 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10885
10886 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10887 type::num_fields instead.
10888
10889 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10890
10891 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10892 methods.
10893 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10894 that modify the number of fields to use type::set_num_fields
10895 instead.
10896
10897 2020-05-22 Tom Tromey <tromey@adacore.com>
10898
10899 * compile/compile-object-load.h (munmap_list_free): Don't
10900 declare.
10901
10902 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10903
10904 * annotate.c (annotate_source_line): Update return type, add call
10905 to update current symtab and line.
10906 * annotate.h (annotate_source_line): Update return type, and
10907 extend header comment.
10908 * source.c (info_line_command): Check annotation_level before
10909 calling annotate_source_line.
10910 * stack.c (print_frame_info): If calling annotate_source_line
10911 returns true, then don't print any other source line information.
10912
10913 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10914
10915 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10916
10917 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10918
10919 * coffread.c (patch_type): Remove NULL check before xfree.
10920 * corefile.c (set_gnutarget): Likewise.
10921 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10922 * exec.c (build_section_table): Likewise.
10923 * remote.c (remote_target::pass_signals): Likewise.
10924 * utils.c (n_spaces): Likewise.
10925 * cli/cli-script.c (document_command): Likewise.
10926 * i386-windows-tdep.c (core_process_module_section): Likewise.
10927 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10928
10929 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10930
10931 * symfile.c (reread_symbols): Clear objfile's section_offsets
10932 vector and section indices, re-compute them by calling
10933 sym_offsets.
10934
10935 2020-05-20 Tom Tromey <tromey@adacore.com>
10936
10937 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10938 (desc_one_bound, desc_index_type): Compute field name.
10939
10940 2020-05-20 Tom de Vries <tdevries@suse.de>
10941
10942 PR symtab/25833
10943 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10944
10945 2020-05-20 Alan Modra <amodra@gmail.com>
10946
10947 PR 25993
10948 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10949 bfd_set_filename.
10950 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10951 passed to bfd_set_filename.
10952 * symfile-mem.c (add_vsyscall_page): Likewise for string
10953 passed to symbol_file_add_from_memory.
10954 (symbol_file_add_from_memory): Make name param a const char* and
10955 don't strdup.
10956
10957 2020-05-20 Alan Modra <amodra@gmail.com>
10958
10959 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10960 rather than accessing bfd->filename directly.
10961 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10962 and use bfd_section_name.
10963 * dwarf2/frame.c (decode_frame_entry): Likewise.
10964 * exec.c (exec_set_section_address): Likewise.
10965 * solib-aix.c (solib_aix_bfd_open): Likewise.
10966 * stap-probe.c (get_stap_base_address): Likewise.
10967 * symfile.c (reread_symbols): Likewise.
10968
10969 2020-05-19 Tom Tromey <tromey@adacore.com>
10970
10971 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10972
10973 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10974
10975 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10976
10977 2020-05-19 Pedro Alves <palves@redhat.com>
10978
10979 * NEWS (set exec-file-mismatch): Adjust entry.
10980 * exec.c: Include "build-id.h".
10981 (validate_exec_file): Try to match build IDs instead of filenames.
10982 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10983 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10984 and pass down 'warn_if_slow'.
10985 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10986 gdb_bfd_open_closure to pass it down.
10987 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10988
10989 2020-05-19 Pedro Alves <palves@redhat.com>
10990
10991 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10992 * target.c (target_fileio_open_1): Rename to target_fileio_open
10993 and make extern. Use bool.
10994 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10995 (target_fileio_read_alloc_1): Adjust.
10996 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10997 (target_fileio_open_warn_if_slow): Delete declaration.
10998
10999 2020-05-19 Pedro Alves <palves@redhat.com>
11000
11001 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11002 Adjust all callers.
11003
11004 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11005
11006 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11007 whether disp is negative.
11008
11009 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11010
11011 * symfile.h (struct symfile_segment_data)
11012 <~symfile_segment_data>: Remove.
11013 <segment_info>: Change to std::vector.
11014 * symfile.c (default_symfile_segments): Update.
11015 * elfread.c (elf_symfile_segments): Update.
11016
11017 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11020 <segments>: New.
11021 <segment_bases, segment_sizes>: Remove.
11022 * symfile.c (default_symfile_segments): Update.
11023 * elfread.c (elf_symfile_segments): Update.
11024 * remote.c (remote_target::get_offsets): Update.
11025 * solib-target.c (solib_target_relocate_section_addresses):
11026 Update.
11027
11028 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11029
11030 * symfile.h (struct symfile_segment_data): Initialize fields.
11031 <~symfile_segment_data>: Add.
11032 (symfile_segment_data_up): New.
11033 (struct sym_fns) <sym_segments>: Return a
11034 symfile_segment_data_up.
11035 (default_symfile_segments): Return a symfile_segment_data_up.
11036 (free_symfile_segment_data): Remove.
11037 (get_symfile_segment_data): Return a symfile_segment_data_up.
11038 * symfile.c (default_symfile_segments): Likewise.
11039 (get_symfile_segment_data): Likewise.
11040 (free_symfile_segment_data): Remove.
11041 (symfile_find_segment_sections): Update.
11042 * elfread.c (elf_symfile_segments): Return a
11043 symfile_segment_data_up.
11044 * remote.c (remote_target::get_offsets): Update.
11045 * solib-target.c (solib_target_relocate_section_addresses):
11046 Update.
11047 * symfile-debug.c (debug_sym_segments): Return a
11048 symfile_segment_data_up.
11049
11050 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11051
11052 PR build/25981
11053 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11054 Hardcode register numbers.
11055
11056 PR build/25981
11057 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11058 procfs_find_LDT_entry): Remove.
11059 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11060 procfs_find_LDT_entry): Remove.
11061 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11062 Remove.
11063
11064 2020-05-17 Pedro Alves <palves@redhat.com>
11065 Andrew Burgess <andrew.burgess@embecosm.com>
11066 Keno Fischer <keno@juliacomputing.com>
11067
11068 PR gdb/25741
11069 * breakpoint.c (build_target_condition_list): Update comments.
11070 (build_target_command_list): Update comments and skip matching
11071 locations.
11072 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11073 a separate function. Simplify "set breakpoint auto-hw off"
11074 handling.
11075 (insert_breakpoints): Update comment.
11076 (tracepoint_locations_match): New parameter. For breakpoints,
11077 compare location types too, if the caller wants to.
11078 (handle_automatic_hardware_breakpoints): New functions.
11079 (bp_location_is_less_than): Also sort by location type and
11080 hardware breakpoint length.
11081 (update_global_location_list): Handle "set breakpoint auto-hw on"
11082 here.
11083 (update_breakpoint_locations): Ask breakpoint_locations_match to
11084 ignore location types.
11085
11086 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11087
11088 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11089 type::name instead.
11090
11091 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11092
11093 * gdbtypes.h (struct type) <name, set_name>: New methods.
11094 (TYPE_CODE): Use type::name. Change all call sites used to set
11095 the name to use type::set_name instead.
11096
11097 2020-05-16 Tom Tromey <tom@tromey.com>
11098
11099 * top.c (quit_force): Update.
11100 * infrun.c (handle_no_resumed): Update.
11101 * top.h (all_uis): New function.
11102 (ALL_UIS): Remove.
11103
11104 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11105
11106 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11107
11108 2020-05-16 Pedro Alves <palves@redhat.com>
11109
11110 * ia64-linux-nat.c
11111 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11112 Declare method.
11113 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11114
11115 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11116
11117 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11118 (sparc64_adi_info): Likewise.
11119
11120 2020-05-15 Tom Tromey <tom@tromey.com>
11121
11122 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11123 block_objfile.
11124 (lookup_objfile_from_block): Remove.
11125 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11126 (lookup_global_symbol): Use block_objfile.
11127 * symtab.h (lookup_objfile_from_block): Don't declare.
11128 * printcmd.c (clear_dangling_display_expressions): Use
11129 block_objfile.
11130 * parse.c (operator_check_standard): Use block_objfile.
11131
11132 2020-05-15 Tom Tromey <tom@tromey.com>
11133
11134 * language.c (language_alloc_type_symbol): Set
11135 SYMBOL_SECTION.
11136 * symtab.c (initialize_objfile_symbol): Remove.
11137 (allocate_symbol): Remove.
11138 (allocate_template_symbol): Remove.
11139 * dwarf2/read.c (fixup_go_packaging): Use "new".
11140 (new_symbol): Use "new".
11141 (read_variable): Don't call initialize_objfile_symbol. Use
11142 "new".
11143 (read_func_scope): Use "new".
11144 * xcoffread.c (process_xcoff_symbol): Don't call
11145 initialize_objfile_symbol.
11146 (SYMBOL_DUP): Remove.
11147 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11148 "new".
11149 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11150 (allocate_template_symbol): Don't declare.
11151 (struct symbol): Add copy constructor. Change defaults.
11152 * jit.c (finalize_symtab): Use "new".
11153 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11154 Use "new".
11155 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11156 (common_block_end): Use "new".
11157 * mdebugread.c (parse_symbol): Use "new".
11158 (new_symbol): Likewise.
11159
11160 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11161
11162 * NEWS: Mention changes to help and apropos.
11163
11164 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11165
11166 * command.h (enum command_class): Improve comments, document
11167 that class_alias is for user-defined aliases, give the class
11168 name for each class, remove unused class_xdb.
11169 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11170 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11171 by a precise class.
11172 * infcmd.c (_initialize_infcmd): Likewise.
11173 * reverse.c (_initialize_reverse): Likewise.
11174 * stack.c (_initialize_stack): Likewise.
11175 * symfile.c (_initialize_symfile): Likewise.
11176 * tracepoint.c (_initialize_tracepoint): Likewise.
11177
11178 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11179
11180 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11181 when their aliased command is traversed.
11182 (help_cmd): Add fput_command_names_styled call to
11183 output command name and aliases when command has an alias.
11184
11185 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11186
11187 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11188 * cli/cli-decode.c (help_cmd_list): Declare as static,
11189 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11190 a command together with the command.
11191 (fput_command_name_styled, fput_command_names_styled): New functions.
11192 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11193 fput_command_name_styled.
11194 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11195 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11196
11197 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11198
11199 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11200 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11201 * command.h (cmd_show_list): Likewise.
11202 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11203 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11204
11205 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11206
11207 * unittests/command-def-selftests.c (traverse_command_structure):
11208 Verify all commands of a list have the same prefix command and
11209 that only the top cmdlist commands have a null prefix.
11210
11211 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11212
11213 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11214 as prefix, not one of its aliases.
11215 (set_cmd_prefix): Remove.
11216 (do_add_cmd): Centralize the setting of the prefix of a command, when
11217 command is defined after its full chain of prefix commands.
11218 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11219 (add_setshow_cmd_full): Likewise.
11220 (update_prefix_field_of_prefixed_commands): New function.
11221 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11222 update_prefix_field_of_prefixed_commands.
11223 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11224 addresses of remote_set_cmdlist and remote_show_cmdlist given
11225 as argument, not the address of an argument.
11226 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11227 * gdb/remote.c (_initialize_remote): Likewise.
11228
11229 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11230
11231 * cli/cli-cmds.c (alias_command): Check for an existing alias
11232 using lookup_cmd_composition, as valid_command_p is too strict
11233 and forbids aliases that are the prefix of an existing alias
11234 or command.
11235 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11236 command is properly recognised as a valid command.
11237
11238 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11239
11240 * unittests/help-doc-selftests.c: Rename to
11241 unittests/command-def-selftests.c
11242 * unittests/command-def-selftests.c (help_doc_tests): Update some
11243 comments.
11244 (command_structure_tests, traverse_command_structure): New namespace
11245 and function.
11246 (command_structure_invariants_tests): New function.
11247 (_initialize_command_def_selftests) Renamed from
11248 _initialize_help_doc_selftests, register command_structure_invariants
11249 selftest.
11250
11251 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11252
11253 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11254 an alias of 'show'.
11255
11256 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11257
11258 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11259 ada_is_fixed_point_type. Update all callers.
11260 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11261 all callers.
11262 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11263 Update all callers.
11264 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11265 print_fixed_point_type. Update all callers.
11266 * ada-valprint.c (ada_value_print_num): Replace call to
11267 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11268
11269 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11270
11271 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11272 processors.
11273 (cpu_supports_bts): Add CV_AMD case.
11274
11275 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11276 Simon Marchi <simon.marchi@efficios.com>
11277
11278 * infrun.c (stop_all_threads): Collect multiple wait events at
11279 each pass.
11280
11281 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11282
11283 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11284 type::code instead.
11285
11286 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11287
11288 * gdbtypes.h (struct type) <code, set_code>: New methods.
11289 (TYPE_CODE): Use type::code. Change all call sites used to set
11290 the code to use type::set_code instead.
11291
11292 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11293 Tom de Vries <tdevries@suse.de>
11294 Pedro Alves <palves@redhat.com>
11295
11296 PR threads/25478
11297 * infrun.c (stop_all_threads): Do NOT ignore
11298 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11299 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11300 received.
11301 (handle_no_resumed): Remove code handling a live inferior with no
11302 threads.
11303 * remote.c (has_single_non_exited_thread): New.
11304 (remote_target::update_thread_list): Do not delete a thread if is
11305 the last thread of the process.
11306 * thread.c (thread_select): Call delete_exited_threads instead of
11307 prune_threads.
11308
11309 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11310
11311 * infrun.c (stop_all_threads): Enable/disable thread events of all
11312 targets. Move a debug message denoting the end of the function
11313 into the SCOPED_EXIT block.
11314
11315 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11316
11317 * process-stratum-target.h: Include <set>.
11318 (all_non_exited_process_targets, switch_to_target_no_thread): New
11319 function declarations.
11320 * process-stratum-target.c (all_non_exited_process_targets)
11321 (switch_to_target_no_thread): New function implementations.
11322
11323 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11324
11325 * infrun.c (handle_inferior_event): Extract out a piece of code
11326 into...
11327 (mark_non_executing_threads): ...this new function.
11328
11329 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11330
11331 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11332 use.
11333
11334 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11335
11336 * regcache.c (regcache_read_pc_protected): New function
11337 implementation that returns 0 if the PC cannot read via
11338 'regcache_read_pc'.
11339 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11340 instead of 'regcache_read_pc'.
11341 (keep_going_pass_signal): Ditto.
11342
11343 2020-05-13 Tom Tromey <tromey@adacore.com>
11344
11345 * ada-lang.c (align_value): Remove.
11346 (ada_template_to_fixed_record_type_1): Use align_up.
11347
11348 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11349
11350 * async-event.c: Update the copyright year.
11351 * async-event.h: Update the copyright year.
11352
11353 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * objfiles.h (is_addr_in_objfile,
11356 shared_objfile_contains_address_p): Return bool.
11357 * objfile.c (is_addr_in_objfile,
11358 shared_objfile_contains_address_p): Return bool.
11359
11360 2020-05-11 Tom Tromey <tromey@adacore.com>
11361
11362 * cli/cli-cmds.c (info_command): Restore.
11363 (_initialize_cli_cmds): Use add_prefix_command for "info".
11364 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11365
11366 2020-05-11 Tom Tromey <tromey@adacore.com>
11367
11368 * ada-lang.c (ada_value_primitive_field): Now public.
11369 * ada-lang.h (ada_value_primitive_field): Declare.
11370 * ada-valprint.c (print_field_values): Use
11371 ada_value_primitive_field for wrapper fields.
11372
11373 2020-05-11 Tom de Vries <tdevries@suse.de>
11374
11375 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11376 MODULE_DOMAIN.
11377
11378 2020-05-11 Tom de Vries <tdevries@suse.de>
11379
11380 PR symtab/25941
11381 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11382 with length 0, if not gdb-produced.
11383 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11384
11385 2020-05-09 Tom de Vries <tdevries@suse.de>
11386
11387 PR gdb/25955
11388 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11389 calculation.
11390
11391 2020-05-09 Tom Tromey <tom@tromey.com>
11392
11393 * top.c (server_command): Now bool.
11394 * top.h (server_command): Now bool.
11395
11396 2020-05-08 Tom Tromey <tromey@adacore.com>
11397
11398 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11399 already being processed.
11400
11401 2020-05-08 Tom Tromey <tom@tromey.com>
11402
11403 * printcmd.c (struct display) <next>: Remove.
11404 <display>: New constructor.
11405 <exp_string>: Now a std::string.
11406 <enabled_p>: Now a bool.
11407 (display_number): Move definition earlier.
11408 (displays): Rename from display_chain. Now a std::vector.
11409 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11410 (display_command): Update.
11411 (do_one_display, disable_display)
11412 (enable_disable_display_command, do_enable_disable_display):
11413 Update.
11414 (free_display): Remove.
11415 (clear_displays): Rewrite.
11416 (delete_display): Update.
11417 (map_display_numbers): Use function_view. Remove "data"
11418 parameter. Update.
11419 (do_delete_display): Remove.
11420 (undisplay_command): Update.
11421 (do_one_display, do_displays, disable_display)
11422 (info_display_command): Update.
11423 (do_enable_disable_display): Remove.
11424 (enable_disable_display_command)
11425 (clear_dangling_display_expressions): Update.
11426
11427 2020-05-08 Tom Tromey <tom@tromey.com>
11428
11429 * symtab.c (set_symbol_cache_size)
11430 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11431 (maintenance_print_symbol_cache_statistics): Update.
11432 * symmisc.c (print_symbol_bcache_statistics)
11433 (print_objfile_statistics, maintenance_print_objfiles)
11434 (maintenance_info_symtabs, maintenance_check_symtabs)
11435 (maintenance_expand_symtabs, maintenance_info_line_tables):
11436 Update.
11437 * symfile-debug.c (set_debug_symfile): Update.
11438 * source.c (forget_cached_source_info): Update.
11439 * python/python.c (gdbpy_progspaces): Update.
11440 * psymtab.c (maintenance_info_psymtabs): Update.
11441 * probe.c (parse_probes): Update.
11442 * linespec.c (iterate_over_all_matching_symtabs)
11443 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11444 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11445 * exec.c (exec_target::close): Update.
11446 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11447 * breakpoint.c (print_one_breakpoint_location)
11448 (create_longjmp_master_breakpoint)
11449 (create_std_terminate_master_breakpoint): Update.
11450 * progspace.c (program_spaces): Now a std::vector.
11451 (maybe_new_address_space): Update.
11452 (add_program_space): Remove.
11453 (program_space::program_space): Update.
11454 (remove_program_space): Update.
11455 (number_of_program_spaces): Remove.
11456 (print_program_space, update_address_spaces): Update.
11457 * progspace.h (program_spaces): Change type.
11458 (ALL_PSPACES): Remove.
11459 (number_of_program_spaces): Don't declare.
11460 (struct program_space) <next>: Remove.
11461
11462 2020-05-08 Tom Tromey <tom@tromey.com>
11463
11464 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11465 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11466 (enable_break): Update.
11467 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11468 (frv_fdpic_find_canonical_descriptor): Update.
11469 (frv_fetch_objfile_link_map): Update.
11470 * progspace.c (program_space::free_all_objfiles): Update.
11471 (program_space::solibs): New method.
11472 * progspace.h (struct program_space) <solibs>: New method.
11473 * solist.h (master_so_list): Don't declare.
11474 (ALL_SO_LIBS): Remove.
11475 * solib.h (so_list_head): Remove.
11476 (update_solib_list): Update comment.
11477 * solib.c (master_so_list): Remove.
11478 (solib_used, update_solib_list, solib_add)
11479 (info_sharedlibrary_command, clear_solib)
11480 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11481
11482 2020-05-08 Tom Tromey <tom@tromey.com>
11483
11484 * extension.c (extension_languages): Now a std::array.
11485 (ALL_EXTENSION_LANGUAGES): Remove.
11486 (get_ext_lang_defn, get_ext_lang_of_file)
11487 (eval_ext_lang_from_control_command): Update.
11488 (finish_ext_lang_initialization)
11489 (auto_load_ext_lang_scripts_for_objfile)
11490 (ext_lang_type_printers::ext_lang_type_printers)
11491 (apply_ext_lang_type_printers)
11492 (ext_lang_type_printers::~ext_lang_type_printers)
11493 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11494 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11495 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11496 (get_matching_xmethod_workers, ext_lang_colorize)
11497 (ext_lang_before_prompt): Update.
11498 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11499
11500 2020-05-08 Tom Tromey <tom@tromey.com>
11501
11502 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11503 overload.
11504 <swap_string, m_string>: Remove.
11505 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11506 Update.
11507 * stabsread.c (define_symbol, read_type): Update.
11508 * linespec.c (find_linespec_symbols): Update.
11509 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11510 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11511 * dbxread.c (read_dbx_symtab): Update.
11512 * cp-support.h (cp_canonicalize_string_full)
11513 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11514 Return unique_xmalloc_ptr.
11515 * cp-support.c (inspect_type): Update.
11516 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11517 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11518 Likewise.
11519 * c-typeprint.c (print_name_maybe_canonical): Update.
11520 * break-catch-throw.c (check_status_exception_catchpoint):
11521 Update.
11522
11523 2020-05-08 Tom de Vries <tdevries@suse.de>
11524
11525 * infrun.c (follow_fork): Copy current_line and current_symtab to
11526 child thread.
11527
11528 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11529
11530 * async-event.c (struct async_signal_handler, struct
11531 async_event_handler): Reformat, remove typedef.
11532
11533 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11534
11535 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11536 access thistype->main_type->dyn_prop_list directly.
11537
11538 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11539
11540 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11541 (remove_dyn_prop): Remove. Update all users to use
11542 type::remove_dyn_prop.
11543 * gdbtypes.c (remove_dyn_prop): Rename to...
11544 (type::remove_dyn_prop): ... this.
11545
11546 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11547
11548 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11549 (add_dyn_prop): Remove. Update all users to use
11550 type::add_dyn_prop.
11551 * gdbtypes.c (add_dyn_prop): Rename to...
11552 (type::add_dyn_prop): ... this.
11553
11554 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11555
11556 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11557 (get_dyn_prop): Remove. Update all users to use
11558 type::dyn_prop.
11559 * gdbtypes.c (get_dyn_prop): Rename to...
11560 (type::dyn_prop): ... this.
11561
11562 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11563
11564 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11565
11566 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11567
11568 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11569 instruction, skip it if it's there.
11570
11571 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11572
11573 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11574
11575 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11576
11577 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11578 * gdbtypes.c (recursive_dump_type): Remove use of
11579 TYPE_INCOMPLETE.
11580
11581 2020-05-03 Tom Tromey <tom@tromey.com>
11582
11583 * breakpoint.c (catch_command, tcatch_command): Remove.
11584 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11585 add_show_prefix_cmd.
11586 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11587 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11588 Remove.
11589 (add_internal_problem_command): Use add_basic_prefix_cmd,
11590 add_show_prefix_cmd.
11591 * mips-tdep.c (set_mipsfpu_command): Remove.
11592 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11593 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11594 (_initialize_index_cache): Use add_basic_prefix_cmd.
11595 * memattr.c (dummy_cmd): Remove.
11596 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11597 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11598 (_initialize_tui_win): Use add_basic_prefix_cmd,
11599 add_show_prefix_cmd.
11600 * cli/cli-logging.c (set_logging_command): Remove.
11601 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11602 add_show_prefix_cmd.
11603 (show_logging_command): Remove.
11604 * target.c (target_command): Remove.
11605 (add_target): Use add_basic_prefix_cmd.
11606
11607 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11608
11609 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11610
11611 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11612
11613 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11614 info_command.
11615
11616 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11617
11618 * nbsd-nat.c (nbsd_enable_proc_events)
11619 (nbsd_nat_target::post_startup_inferior): Add.
11620 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11621 (nbsd_nat_target::update_thread_list): Rewrite.
11622 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11623 "PTRACE_LWP_CREATE".
11624 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11625
11626 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11627
11628 * stack.c (_initialize_stack): Remove duplicated creation
11629 of "frame" command and "f" alias.
11630
11631 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11632
11633 PR gdb/18706
11634 * gdbtypes.c (check_typedef): Calculate size of array of
11635 stubbed type.
11636
11637 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11638
11639 PR gdb/15559
11640 * i386-tdep.c (i386_push_dummy_call): Call
11641 i386_thiscall_push_dummy_call.
11642 (i386_thiscall_push_dummy_call): New function.
11643 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11644 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11645 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11646
11647 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11648
11649 * gdbarch.sh (do_read): Add shellcheck disable directive for
11650 warning SC2162.
11651
11652 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11653
11654 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11655 "referenced but not assigned" warning.
11656
11657 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11658
11659 * gdbarch.sh: Remove code that sets fallbackdefault.
11660
11661 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11662
11663 * gdbarch.sh: Use shell operators && and || instead of
11664 -a and -o.
11665
11666 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11667
11668 * gdbarch.sh: Use $(...) instead of `...`.
11669
11670 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11671
11672 * gdbarch.sh: Use double quotes around variables.
11673
11674 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11675
11676 * gdbarch.sh: Use %s with printf, instead of variables in the
11677 format string.
11678
11679 2020-04-29 Tom Tromey <tromey@adacore.com>
11680
11681 PR ada/25875:
11682 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11683 type fields here.
11684 (read_enumeration_type): Call
11685 update_enumeration_type_from_children later. Update comments.
11686 (process_enumeration_scope): Don't create type fields.
11687
11688 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11689
11690 * nbsd-tdep.c: Include "xml-syscall.h".
11691 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11692
11693 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11694
11695 * nbsd-nat.c: Include "sys/wait.h".
11696 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11697 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11698 (nbsd_nat_target::remove_exec_catchpoint)
11699 (nbsd_nat_target::set_syscall_catchpoint): Add.
11700 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11701 (nbsd_nat_target::insert_exec_catchpoint)
11702 (nbsd_nat_target::remove_exec_catchpoint)
11703 (nbsd_nat_target::set_syscall_catchpoint): Add.
11704 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11705 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11706 `nbsd_get_syscall_number'.
11707
11708 2020-04-29 Tom Tromey <tom@tromey.com>
11709
11710 * stack.c (print_block_frame_labels): Remove.
11711
11712 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11713
11714 PR gdb/17320
11715 * ada-valprint.c (val_print_packed_array_elements): Move array
11716 end bracket to new line.
11717 (ada_val_print_string): Remove extra spaces before first array
11718 element.
11719 * c-valprint.c (c_value_print_array): Likewise.
11720 * m2-valprint.c (m2_print_array_contents): Likewise.
11721 (m2_value_print_inner): Likewise.
11722 * p-valprint.c (pascal_value_print_inner): Likewise.
11723 * valprint.c (generic_val_print_array): Likewise.
11724 (value_print_array_elements): Move first array element and array
11725 end bracket to new line.
11726
11727 2020-04-29 Tom de Vries <tdevries@suse.de>
11728
11729 PR symtab/25889
11730 * linespec.c (find_method): Fix ix calculation.
11731
11732 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11733
11734 * syscalls/update-netbsd.sh: New file.
11735 * syscalls/netbsd.xml: Regenerate.
11736 * data-directory/Makefile.in: Register `netbsd.xml' in
11737 `SYSCALLS_FILES'.
11738
11739 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * syscalls/update-freebsd.sh: Add double quotes.
11742
11743 2020-04-28 Tom Tromey <tom@tromey.com>
11744
11745 * NEWS: Update.
11746 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11747 (cmdpy_init): Allow class_tui.
11748
11749 2020-04-28 Mark Williams <mark@myosotissp.com>
11750
11751 PR gdb/24480
11752 * dwarf2read.c: Add missing assingments to list_in_scope when
11753 start_symtab was already called.
11754
11755 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11756
11757 PR gdb/25881
11758 * dwarf2/read.c (offset_map_type): Use
11759 gdb:hash_enum<sect_offset> as hash function.
11760
11761 2020-04-28 Tom de Vries <tdevries@suse.de>
11762
11763 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11764 with DW_AT_signature.
11765
11766 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11767
11768 * configure.ac: Remove check for fs_base/gs_base in
11769 user_regs_struct.
11770 * configure: Re-generate.
11771 * config.in: Re-generate.
11772 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11773 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11774 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11775
11776 2020-04-27 Luis Machado <luis.machado@linaro.org>
11777
11778 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11779 problematic inline frame unwinding situation.
11780 * frame.c (frame_id_computed_p): New function.
11781 * frame.h (frame_id_computed_p): New prototype.
11782
11783 2020-04-26 Tom Tromey <tom@tromey.com>
11784
11785 * command.h (enum command_class) <class_pseudo>: Remove.
11786
11787 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11788
11789 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11790 and whitespace.
11791
11792 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11793
11794 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11795 `PT_GET_PROCESS_STATE' block.
11796
11797 2020-04-24 Tom Tromey <tom@tromey.com>
11798
11799 * symtab.h (symbol_get_demangled_name): Don't declare.
11800 * symtab.c (symbol_get_demangled_name): Remove.
11801 (general_symbol_info::natural_name)
11802 (general_symbol_info::demangled_name): Update.
11803
11804 2020-04-24 Tom Tromey <tom@tromey.com>
11805
11806 PR rust/25025:
11807 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11808
11809 2020-04-24 Tom Tromey <tom@tromey.com>
11810
11811 PR symtab/12707:
11812 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11813 exists.
11814 (new_symbol): Likewise.
11815 * compile/compile-object-load.c (get_out_value_type): Use
11816 symbol_matches_search_name.
11817
11818 2020-04-24 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/read.c (add_partial_symbol): Do not call
11821 compute_and_set_names.
11822
11823 2020-04-24 Tom Tromey <tom@tromey.com>
11824
11825 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11826 overload.
11827
11828 2020-04-24 Tom Tromey <tom@tromey.com>
11829
11830 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11831 (add_psymbol_to_list): New overload. Make old overload call new
11832 one.
11833 * psympriv.h (add_psymbol_to_list): New overload.
11834
11835 2020-04-24 Tom Tromey <tom@tromey.com>
11836
11837 * dwarf2/read.c (partial_die_info::read) <case
11838 DW_AT_linkage_name>: Use value_as_string.
11839 (dwarf2_string_attr): Use value_as_string.
11840 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11841 method.
11842 * dwarf2/attribute.c (attribute::value_as_string): New method.
11843
11844 2020-04-24 Tom Tromey <tom@tromey.com>
11845
11846 * symtab.c (general_symbol_info::natural_name)
11847 (general_symbol_info::demangled_name): Check for language_rust.
11848
11849 2020-04-24 Tom Tromey <tom@tromey.com>
11850
11851 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11852 (dwarf2_physname): ... from here.
11853 (partial_die_info::read): Add Rust "{" hack.
11854
11855 2020-04-24 Tom Tromey <tom@tromey.com>
11856
11857 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11858 method.
11859 (symbol_set_demangled_name): Don't declare.
11860 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11861 symbol_set_demangled_name.
11862 (general_symbol_info::set_language)
11863 (general_symbol_info::compute_and_set_names): Update.
11864 * minsyms.c (minimal_symbol_reader::install): Update.
11865 * dwarf2/read.c (new_symbol): Update.
11866
11867 2020-04-24 Tom Tromey <tromey@adacore.com>
11868
11869 PR python/23662:
11870 * python/py-type.c (convert_field): Handle
11871 FIELD_LOC_KIND_DWARF_BLOCK.
11872 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11873 (typy_get_dynamic): Nw function.
11874 (type_object_getset): Add "dynamic".
11875 * NEWS: Add entry.
11876
11877 2020-04-24 Tom Tromey <tromey@adacore.com>
11878
11879 * ada-typeprint.c (print_choices, print_variant_part)
11880 (print_record_field_types_dynamic): New functions.
11881 (print_record_field_types): Use print_record_field_types_dynamic.
11882
11883 2020-04-24 Tom Tromey <tromey@adacore.com>
11884
11885 * dwarf2/read.c (handle_data_member_location): New overload.
11886 (dwarf2_add_field): Use it.
11887 (decode_locdesc): Add "computed" parameter. Update comment.
11888 * gdbtypes.c (is_dynamic_type_internal): Also look for
11889 FIELD_LOC_KIND_DWARF_BLOCK.
11890 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11891 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11892 virtual base classes.
11893 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11894 FIELD_LOC_KIND_DWARF_BLOCK.
11895
11896 2020-04-24 Tom Tromey <tromey@adacore.com>
11897
11898 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11899 * gdbtypes.c (is_dynamic_type_internal): Check
11900 TYPE_HAS_DYNAMIC_LENGTH.
11901 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11902 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11903 New macros.
11904 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11905 constant.
11906
11907 2020-04-24 Tom Tromey <tromey@adacore.com>
11908
11909 * dwarf2/read.c (struct variant_field): Rewrite.
11910 (struct variant_part_builder): New.
11911 (struct nextfield): Remove "variant" field. Add "offset".
11912 (struct field_info): Add "current_variant_part" and
11913 "variant_parts".
11914 (alloc_discriminant_info): Remove.
11915 (alloc_rust_variant): New function.
11916 (quirk_rust_enum): Update.
11917 (dwarf2_add_field): Set "offset" member. Don't handle
11918 DW_TAG_variant_part.
11919 (offset_map_type): New typedef.
11920 (convert_variant_range, create_one_variant)
11921 (create_one_variant_part, create_variant_parts)
11922 (add_variant_property): New functions.
11923 (dwarf2_attach_fields_to_type): Call add_variant_property.
11924 (read_structure_type): Don't handle DW_TAG_variant_part.
11925 (handle_variant_part, handle_variant): New functions.
11926 (handle_struct_member_die): Use them.
11927 (process_structure_scope): Don't handle variant parts.
11928 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11929 (struct discriminant_info): Remove.
11930 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11931 (struct main_type) <flag_discriminated_union>: Remove.
11932 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11933 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11934 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11935 Update.
11936 * valops.c (value_union_variant): Remove.
11937 * value.h (value_union_variant): Don't declare.
11938
11939 2020-04-24 Tom Tromey <tromey@adacore.com>
11940
11941 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11942 (ada_value_primitive_packed_val): Update.
11943 * ada-valprint.c (ada_value_print_1): Update.
11944 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11945 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11946 just an address. Use evaluate_for_locexpr_baton.
11947 (dwarf2_evaluate_property): Update.
11948 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11949 array_view.
11950 * findvar.c (default_read_var_value): Update.
11951 * gdbtypes.c (compute_variant_fields_inner)
11952 (resolve_dynamic_type_internal): Update.
11953 (resolve_dynamic_type): Change type of valaddr parameter.
11954 * gdbtypes.h (resolve_dynamic_type): Update.
11955 * valarith.c (value_subscripted_rvalue): Update.
11956 * value.c (value_from_contents_and_address): Update.
11957
11958 2020-04-24 Tom Tromey <tromey@adacore.com>
11959
11960 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11961 "push_initial_value" parameter.
11962 (dwarf2_evaluate_property): Likewise.
11963 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11964
11965 2020-04-24 Tom Tromey <tromey@adacore.com>
11966
11967 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11968 (variant::matches, compute_variant_fields_recurse)
11969 (compute_variant_fields_inner, compute_variant_fields): New
11970 functions.
11971 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11972 Use resolved_type after type is made.
11973 (operator==): Add new cases.
11974 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11975 (struct discriminant_range, struct variant, struct variant_part):
11976 New.
11977 (union dynamic_prop_data) <variant_parts, original_type>: New
11978 members.
11979 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11980 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11981 constants.
11982 * value.c (unpack_bits_as_long): Now public.
11983 * value.h (unpack_bits_as_long): Declare.
11984
11985 2020-04-24 Tom Tromey <tromey@adacore.com>
11986
11987 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11988 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11989
11990 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11991
11992 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11993
11994 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11995
11996 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11997 (remove_fork_catchpoint, post_startup_inferior)
11998 (post_attach): Move...
11999 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12000 (remove_fork_catchpoint, post_startup_inferior)
12001 (post_attach): ...here.
12002 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12003 (remove_fork_catchpoint, post_startup_inferior)
12004 (post_attach): Move...
12005 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12006 (remove_fork_catchpoint, post_startup_inferior)
12007 (post_attach): ...here.
12008
12009 2020-04-24 Tom Tromey <tromey@adacore.com>
12010
12011 * nat/windows-nat.h (struct windows_thread_info)
12012 <pc_adjusted>: New member.
12013 * windows-nat.c (windows_fetch_one_register): Check
12014 pc_adjusted.
12015 (windows_nat_target::get_windows_debug_event)
12016 (windows_nat_target::wait): Set pc_adjusted.
12017
12018 2020-04-24 Tom de Vries <tdevries@suse.de>
12019
12020 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12021 Run gdb-add-index inside temp dir.
12022
12023 2020-04-23 Tom Tromey <tromey@adacore.com>
12024
12025 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12026 in loop.
12027
12028 2020-04-23 Luis Machado <luis.machado@linaro.org>
12029
12030 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12031 get_frame_register instead of gdbarch_unwind_pc.
12032
12033 2020-04-23 Tom de Vries <tdevries@suse.de>
12034
12035 * symtab.c (lookup_global_symbol): Prefer def over decl.
12036
12037 2020-04-23 Tom de Vries <tdevries@suse.de>
12038
12039 PR symtab/25807
12040 * block.c (best_symbol, better_symbol): Promote to external.
12041 * block.h (best_symbol, better_symbol): Declare.
12042 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12043 decl.
12044
12045 2020-04-23 Tom Tromey <tromey@adacore.com>
12046
12047 PR ada/25837:
12048 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12049 "const char *", not a "const std::string &".
12050 <name_and_matcher::operator==>: Update.
12051 * unittests/lookup_name_info-selftests.c: Change type of
12052 "result".
12053
12054 2020-04-23 Tom Tromey <tom@tromey.com>
12055
12056 * inferior.h (iterate_over_inferiors): Don't declare.
12057 * inferior.c (iterate_over_inferiors): Remove.
12058 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12059 Remove.
12060 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12061 use iterate_over_inferiors.
12062 (darwin_resume_inferior_it)
12063 (struct resume_inferior_threads_param)
12064 (darwin_resume_inferior_threads_it): Remove.
12065 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12066
12067 2020-04-23 Tom de Vries <tdevries@suse.de>
12068
12069 * blockframe.c (find_pc_partial_function): Use
12070 find_pc_sect_compunit_symtab rather than
12071 objfile->sf->qf->find_pc_sect_compunit_symtab.
12072
12073 2020-04-22 Tom de Vries <tdevries@suse.de>
12074
12075 PR symtab/25764
12076 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12077 in psymtabs.
12078
12079 2020-04-22 Tom de Vries <tdevries@suse.de>
12080
12081 PR symtab/25801
12082 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12083 symtabs.
12084
12085 2020-04-22 Tom de Vries <tdevries@suse.de>
12086
12087 PR symtab/25700
12088 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12089 CU if already created.
12090
12091 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12092
12093 * infrun.c (displaced_step_fixup): Switch to the event_thread
12094 before calling displaced_step_restore, not after.
12095
12096 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12097
12098 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12099 its inferior is not recorded by us.
12100 (record_btrace_target_open): Replace call to
12101 all_non_exited_threads () with call to current_inferior
12102 ()->non_exited_threads ().
12103 (record_btrace_target::stop_recording): Likewise.
12104 (record_btrace_target::close): Likewise.
12105 (record_btrace_target::wait): Likewise.
12106 (record_btrace_target::record_stop_replaying): Likewise.
12107
12108 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12109
12110 * btrace.c (btrace_enable): Throw an error on double enables and
12111 when enabling recording fails.
12112 (btrace_disable): Throw an error if the thread is not recorded.
12113
12114 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12115
12116 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12117 request if we do not have a thread_info.
12118
12119 2020-04-21 Tom de Vries <tdevries@suse.de>
12120
12121 PR gdb/25471
12122 * thread.c
12123 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12124 exception in get_frame_id.
12125
12126 2020-04-20 Tom Tromey <tromey@adacore.com>
12127
12128 * python/python.c (struct gdbpy_event): Mark move constructor as
12129 noexcept.
12130 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12131 constructor as noexcept.
12132 * completer.h (struct completion_result): Mark move constructor as
12133 noexcept.
12134 * completer.c (completion_result::completion_result): Use
12135 initialization style. Don't call reset_match_list.
12136
12137 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12138
12139 * MAINTAINERS (Write After Approval): Add myself.
12140
12141 2020-04-18 Tom Tromey <tom@tromey.com>
12142
12143 * windows-tdep.c (init_w32_command_list)
12144 (w32_prefix_command_valid): Restore.
12145 (_initialize_windows_tdep): Call init_w32_command_list.
12146
12147 2020-04-18 Tom Tromey <tom@tromey.com>
12148
12149 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12150 * value.c (value_fn_field): Update.
12151 * valops.c (find_function_in_inferior)
12152 (value_allocate_space_in_inferior): Update.
12153 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12154 Update.
12155 * tui/tui-source.c (tui_source_window::set_contents): Update.
12156 * symtab.c (lookup_global_or_static_symbol)
12157 (find_function_start_sal_1, skip_prologue_sal)
12158 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12159 * symmisc.c (dump_msymbols, dump_symtab_1)
12160 (maintenance_print_one_line_table): Update.
12161 * symfile.c (init_entry_point_info, section_is_mapped)
12162 (list_overlays_command, simple_read_overlay_table)
12163 (simple_overlay_update_1): Update.
12164 * stap-probe.c (handle_stap_probe): Update.
12165 * stabsread.c (dbx_init_float_type, define_symbol)
12166 (read_one_struct_field, read_enum_type, read_range_type): Update.
12167 * source.c (info_line_command): Update.
12168 * python/python.c (gdbpy_source_objfile_script)
12169 (gdbpy_execute_objfile_script): Update.
12170 * python/py-type.c (save_objfile_types): Update.
12171 * python/py-objfile.c (py_free_objfile): Update.
12172 * python/py-inferior.c (python_new_objfile): Update.
12173 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12174 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12175 (maintenance_check_psymtabs): Update.
12176 * printcmd.c (info_address_command): Update.
12177 * objfiles.h (struct objfile) <arch>: New method, from
12178 get_objfile_arch.
12179 (get_objfile_arch): Don't declare.
12180 * objfiles.c (get_objfile_arch): Remove.
12181 (filter_overlapping_sections): Update.
12182 * minsyms.c (msymbol_is_function): Update.
12183 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12184 (output_nondebug_symbol): Update.
12185 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12186 (mdebug_expand_psymtab): Update.
12187 * machoread.c (macho_add_oso_symfile): Update.
12188 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12189 Update.
12190 * linux-fork.c (checkpoint_command): Update.
12191 * linespec.c (convert_linespec_to_sals): Update.
12192 * jit.c (finalize_symtab): Update.
12193 * infrun.c (insert_exception_resume_from_probe): Update.
12194 * ia64-tdep.c (ia64_find_unwind_table): Update.
12195 * hppa-tdep.c (internalize_unwinds): Update.
12196 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12197 Update.
12198 * gcore.c (call_target_sbrk): Update.
12199 * elfread.c (record_minimal_symbol, elf_symtab_read)
12200 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12201 (elf_gnu_ifunc_resolve_by_got): Update.
12202 * dwarf2/read.c (create_addrmap_from_index)
12203 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12204 (read_debug_names_from_section)
12205 (process_psymtab_comp_unit_reader, add_partial_symbol)
12206 (add_partial_subprogram, process_full_comp_unit)
12207 (read_file_scope, read_func_scope, read_lexical_block_scope)
12208 (read_call_site_scope, dwarf2_ranges_read)
12209 (dwarf2_record_block_ranges, dwarf2_add_field)
12210 (mark_common_block_symbol_computed, read_tag_pointer_type)
12211 (read_tag_string_type, dwarf2_init_float_type)
12212 (dwarf2_init_complex_target_type, read_base_type)
12213 (partial_die_info::read, partial_die_info::read)
12214 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12215 (dwarf2_fetch_die_loc_sect_off): Update.
12216 * dwarf2/loc.c (dwarf2_find_location_expression)
12217 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12218 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12219 (dwarf2_loc_desc_get_symbol_read_needs)
12220 (locexpr_describe_location_piece, locexpr_describe_location_1)
12221 (loclist_describe_location): Update.
12222 * dwarf2/index-write.c (write_debug_names): Update.
12223 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12224 * dtrace-probe.c (dtrace_process_dof): Update.
12225 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12226 (process_one_symbol): Update.
12227 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12228 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12229 (coff_read_enum_type): Update.
12230 * cli/cli-cmds.c (edit_command, list_command): Update.
12231 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12232 * breakpoint.c (create_overlay_event_breakpoint)
12233 (create_longjmp_master_breakpoint)
12234 (create_std_terminate_master_breakpoint)
12235 (create_exception_master_breakpoint, get_sal_arch): Update.
12236 * block.c (block_gdbarch): Update.
12237 * annotate.c (annotate_source_line): Update.
12238
12239 2020-04-17 Tom Tromey <tromey@adacore.com>
12240
12241 * auto-load.c (show_auto_load_cmd): Remove.
12242 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12243 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12244 (maintenance_print_arc_command): Remove.
12245 * tui/tui-win.c (tui_command): Remove.
12246 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12247 * tui/tui-layout.c (tui_layout_command): Remove.
12248 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12249 * python/python.c (user_set_python, user_show_python): Remove.
12250 (_initialize_python): Use add_basic_prefix_cmd,
12251 add_show_prefix_cmd.
12252 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12253 (install_gdb_commands): Use add_basic_prefix_cmd,
12254 add_show_prefix_cmd.
12255 (info_guile_command): Remove.
12256 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12257 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12258 add_show_prefix_cmd.
12259 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12260 Remove do_set and do_show parameters.
12261 * cli/cli-style.c (set_style, show_style): Remove.
12262 (_initialize_cli_style): Use add_basic_prefix_cmd,
12263 add_show_prefix_cmd.
12264 (cli_style_option::add_setshow_commands): Remove do_set and
12265 do_show parameters.
12266 (cli_style_option::add_setshow_commands): Use
12267 add_basic_prefix_cmd, add_show_prefix_cmd.
12268 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12269 (set_style_name): Remove.
12270 * cli/cli-dump.c (dump_command, append_command): Remove.
12271 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12272 (tekhex_dump_command, binary_dump_command)
12273 (binary_append_command): Remove.
12274 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12275 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12276 (init_w32_command_list): Remove; move into ...
12277 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12278 * valprint.c (set_print, show_print, set_print_raw)
12279 (show_print_raw): Remove.
12280 (_initialize_valprint): Use add_basic_prefix_cmd,
12281 add_show_prefix_cmd.
12282 * typeprint.c (set_print_type, show_print_type): Remove.
12283 (_initialize_typeprint): Use add_basic_prefix_cmd,
12284 add_show_prefix_cmd.
12285 * record.c (set_record_command, show_record_command): Remove.
12286 (_initialize_record): Use add_basic_prefix_cmd,
12287 add_show_prefix_cmd.
12288 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12289 add_show_prefix_cmd.
12290 (info_command, show_command, set_debug, show_debug): Remove.
12291 * top.h (set_history, show_history): Don't declare.
12292 * top.c (set_history, show_history): Remove.
12293 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12294 (unset_tdesc_cmd): Remove.
12295 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12296 add_show_prefix_cmd.
12297 * symtab.c (info_module_command): Remove.
12298 (_initialize_symtab): Use add_basic_prefix_cmd.
12299 * symfile.c (overlay_command): Remove.
12300 (_initialize_symfile): Use add_basic_prefix_cmd.
12301 * sparc64-tdep.c (info_adi_command): Remove.
12302 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12303 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12304 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12305 add_show_prefix_cmd.
12306 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12307 (_initialize_serial): Use add_basic_prefix_cmd,
12308 add_show_prefix_cmd.
12309 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12310 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12311 add_show_prefix_cmd.
12312 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12313 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12314 add_show_prefix_cmd.
12315 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12316 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12317 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12318 add_show_prefix_cmd.
12319 * remote.c (remote_command, set_remote_cmd): Remove.
12320 (_initialize_remote): Use add_basic_prefix_cmd.
12321 * record-full.c (set_record_full_command)
12322 (show_record_full_command): Remove.
12323 (_initialize_record_full): Use add_basic_prefix_cmd,
12324 add_show_prefix_cmd.
12325 * record-btrace.c (cmd_set_record_btrace)
12326 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12327 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12328 (cmd_show_record_btrace_pt): Remove.
12329 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12330 add_show_prefix_cmd.
12331 * ravenscar-thread.c (set_ravenscar_command)
12332 (show_ravenscar_command): Remove.
12333 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12334 add_show_prefix_cmd.
12335 * mips-tdep.c (show_mips_command, set_mips_command)
12336 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12337 add_show_prefix_cmd.
12338 * maint.c (maintenance_command, maintenance_info_command)
12339 (maintenance_check_command, maintenance_print_command)
12340 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12341 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12342 add_show_prefix_cmd.
12343 (show_per_command_cmd): Remove.
12344 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12345 Remove.
12346 (maintenance_show_test_settings_cmd): Remove.
12347 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12348 add_show_prefix_cmd.
12349 * maint-test-options.c (maintenance_test_options_command):
12350 Remove.
12351 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12352 * macrocmd.c (macro_command): Remove
12353 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12354 * language.c (set_check, show_check): Remove.
12355 (_initialize_language): Use add_basic_prefix_cmd,
12356 add_show_prefix_cmd.
12357 * infcmd.c (unset_command): Remove.
12358 (_initialize_infcmd): Use add_basic_prefix_cmd.
12359 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12360 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12361 add_show_prefix_cmd.
12362 * go32-nat.c (go32_info_dos_command): Remove.
12363 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12364 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12365 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12366 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12367 (_initialize_frame): Use add_basic_prefix_cmd,
12368 add_show_prefix_cmd.
12369 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12370 (_initialize_dcache): Use add_basic_prefix_cmd,
12371 add_show_prefix_cmd.
12372 * cp-support.c (maint_cplus_command): Remove.
12373 (_initialize_cp_support): Use add_basic_prefix_cmd.
12374 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12375 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12376 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12377 add_basic_prefix_cmd, add_show_prefix_cmd.
12378 * breakpoint.c (save_command): Remove.
12379 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12380 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12381 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12382 add_show_prefix_cmd.
12383 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12384 (set_ada_command, show_ada_command): Remove.
12385 (_initialize_ada_language): Use add_basic_prefix_cmd,
12386 add_show_prefix_cmd.
12387 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12388
12389 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12390
12391 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12392 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12393
12394 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12395
12396 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12397 warning messages.
12398
12399 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12400
12401 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12402 import table is not at beginning of .idata section.
12403
12404 2020-04-16 Pedro Alves <palves@redhat.com>
12405
12406 * inferior.c (delete_inferior): Use delete operator directly
12407 instead of delete_program_space.
12408 * progspace.c (add_program_space): New, factored out from
12409 program_space::program_space.
12410 (remove_program_space): New, factored out from
12411 delete_program_space.
12412 (program_space::program_space): Remove intro comment. Rewrite.
12413 (program_space::~program_space): Remove intro comment. Call
12414 remove_program_space.
12415 (delete_program_space): Delete.
12416 * progspace.h (program_space::program_space): Make explicit. Move
12417 intro comment here, adjusted.
12418 (program_space::~program_space): Move intro comment here,
12419 adjusted.
12420 (delete_program_space): Remove.
12421
12422 2020-04-16 Tom Tromey <tromey@adacore.com>
12423
12424 * windows-nat.c (windows_nat::handle_access_violation): New
12425 function.
12426 * nat/windows-nat.h (handle_access_violation): Declare.
12427 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12428 windows-nat.c. Call handle_access_violation.
12429
12430 2020-04-16 Tom de Vries <tdevries@suse.de>
12431
12432 PR symtab/25791
12433 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12434 CUs without psymtab.
12435
12436 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12437
12438 * python/python.c (do_start_initialization): Don't call
12439 PyEval_InitThreads for Python 3.9 and beyond.
12440
12441 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12442
12443 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12444 thread functions.
12445 (obsd_nat_target::wait): Likewise.
12446
12447 2020-04-15 Tom Tromey <tromey@adacore.com>
12448
12449 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12450 (DEBUG_EXCEPT): Use debug_printf.
12451
12452 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12453
12454 * completer.c (class completion_tracker::completion_hash_entry)
12455 <hash_name>: New member function.
12456 (completion_tracker::discard_completions): New callback to hash a
12457 completion_hash_entry, pass this to htab_create_alloc.
12458
12459 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12460
12461 * windows-nat.c (windows_make_so): Warn rather than stopping with
12462 an error if realpath() fails.
12463
12464 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12465
12466 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12467 (nbsd_nat_target::info_proc): Add do_status.
12468
12469 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12470 Tom de Vries <tdevries@suse.de>
12471
12472 PR symtab/25718
12473 * psympriv.h (struct partial_symtab::read_symtab)
12474 (struct partial_symtab::expand_psymtab)
12475 (struct partial_symtab::read_dependencies): Update comments.
12476 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12477 read_symtab for includer.
12478 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12479 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12480 (struct dwarf2_include_psymtab::m_readin): Remove.
12481 (struct dwarf2_include_psymtab::includer): New member function.
12482 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12483
12484 2020-04-14 Tom de Vries <tdevries@suse.de>
12485
12486 PR symtab/25720
12487 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12488 with NULL symbol_matcher and lookup_name.
12489 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12490 and lookup_name.
12491 * dwarf2/read.c (dw2_expand_symtabs_matching)
12492 (dw2_debug_names_expand_symtabs_matching): Same.
12493 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12494 Make lookup_name a pointer. Update comment.
12495 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12496 lookup_name being a pointer.
12497 * symfile.c (expand_symtabs_matching): Same.
12498 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12499 * linespec.c (iterate_over_all_matching_symtabs): Same.
12500
12501 2020-04-13 Tom Tromey <tom@tromey.com>
12502
12503 * run-on-main-thread.c: Update include.
12504 * unittests/main-thread-selftests.c: Update include.
12505 * tui/tui-win.c: Update include.
12506 * tui/tui-io.c: Update include.
12507 * tui/tui-interp.c: Update include.
12508 * tui/tui-hooks.c: Update include.
12509 * top.h: Update include.
12510 * top.c: Update include.
12511 * ser-base.c: Update include.
12512 * remote.c: Update include.
12513 * remote-notif.c: Update include.
12514 * remote-fileio.c: Update include.
12515 * record-full.c: Update include.
12516 * record-btrace.c: Update include.
12517 * python/python.c: Update include.
12518 * posix-hdep.c: Update include.
12519 * mingw-hdep.c: Update include.
12520 * mi/mi-main.c: Update include.
12521 * mi/mi-interp.c: Update include.
12522 * main.c: Update include.
12523 * linux-nat.c: Update include.
12524 * interps.c: Update include.
12525 * infrun.c: Update include.
12526 * inf-loop.c: Update include.
12527 * event-top.c: Update include.
12528 * event-loop.c: Move to ../gdbsupport/.
12529 * event-loop.h: Move to ../gdbsupport/.
12530 * async-event.h: Update include.
12531 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12532
12533 2020-04-13 Tom Tromey <tom@tromey.com>
12534
12535 * tui/tui-win.c: Include async-event.h.
12536 * remote.c: Include async-event.h.
12537 * remote-notif.c: Include async-event.h.
12538 * record-full.c: Include async-event.h.
12539 * record-btrace.c: Include async-event.h.
12540 * infrun.c: Include async-event.h.
12541 * event-top.c: Include async-event.h.
12542 * event-loop.h: Move some declarations to async-event.h.
12543 * event-loop.c: Don't include ser-event.h or top.h. Move some
12544 code to async-event.c.
12545 * async-event.h: New file.
12546 * async-event.c: New file.
12547 * Makefile.in (COMMON_SFILES): Add async-event.c.
12548 (HFILES_NO_SRCDIR): Add async-event.h.
12549
12550 2020-04-13 Tom Tromey <tom@tromey.com>
12551
12552 * utils.c (flush_streams): New function.
12553 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12554
12555 2020-04-13 Tom Tromey <tom@tromey.com>
12556
12557 * event-loop.c (handle_file_event): Use warning, not
12558 printf_unfiltered.
12559
12560 2020-04-13 Tom Tromey <tom@tromey.com>
12561
12562 * event-loop.c: Include <chrono>.
12563
12564 2020-04-13 Tom Tromey <tom@tromey.com>
12565
12566 * gdb_select.h: Move to ../gdbsupport/.
12567 * event-loop.c: Update include path.
12568 * top.c: Update include path.
12569 * ser-base.c: Update include path.
12570 * ui-file.c: Update include path.
12571 * ser-tcp.c: Update include path.
12572 * guile/scm-ports.c: Update include path.
12573 * posix-hdep.c: Update include path.
12574 * ser-unix.c: Update include path.
12575 * gdb_usleep.c: Update include path.
12576 * mingw-hdep.c: Update include path.
12577 * inflow.c: Update include path.
12578 * infrun.c: Update include path.
12579 * event-top.c: Update include path.
12580
12581 2020-04-13 Tom Tromey <tom@tromey.com>
12582
12583 * configure: Rebuild.
12584 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12585
12586 2020-04-13 Tom Tromey <tom@tromey.com>
12587
12588 * event-loop.h (start_event_loop): Don't declare.
12589 * event-loop.c (start_event_loop): Move...
12590 * main.c (start_event_loop): ...here. Now static.
12591
12592 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12593
12594 * MAINTAINERS: Update my email address.
12595
12596 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12597
12598 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12599 IP_ALL.
12600
12601 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12602
12603 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12604 (nbsd_nat_target::info_proc): Add do_cmdline.
12605
12606 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12607
12608 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12609 (nbsd_nat_target::info_proc): Add do_cwd.
12610
12611 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12612
12613 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12614
12615 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12616
12617 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12618 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12619 (nbsd_nat_target::info_proc): New functions.
12620 * nbsd-nat.c (kinfo_get_vmmap): New function.
12621 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12622 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12623 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12624 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12625 functions.
12626 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12627 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12628 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12629 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12630 (KINFO_VME_FLAG_GROWS_DOWN): New.
12631
12632 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12633
12634 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12635 bit shift.
12636
12637 2020-04-10 Tom Tromey <tromey@adacore.com>
12638
12639 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12640
12641 2020-04-10 Tom Tromey <tromey@adacore.com>
12642
12643 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12644 separate debug files.
12645
12646 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12647
12648 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12649 Move to...
12650 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12651 ... here.
12652 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12653 Check for STATUS_WX86_BREAKPOINT.
12654 (windows_nat_target::wait): Same.
12655
12656 2020-04-10 Tom de Vries <tdevries@suse.de>
12657
12658 PR cli/25808
12659 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12660
12661 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12662
12663 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12664 (Write After Approval): Remove Tom de Vries.
12665
12666 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12667
12668 revert partially:
12669 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12670
12671 * buildsym.c (record_line): Fix undefined behavior and preserve
12672 lines at eof.
12673
12674 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12675
12676 * auxv.h (svr4_auxv_parse): New.
12677 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12678 and generic_auxv_parse.
12679 (svr4_auxv_parse): Add.
12680 * obsd-tdep.c: Include "auxv.h".
12681 (obsd_auxv_parse): Remove.
12682 (obsd_init_abi): Remove comment.
12683 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12684 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12685 * nbsd-tdep.c: Include "auxv.h".
12686 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12687
12688 2020-04-08 Tom Tromey <tromey@adacore.com>
12689
12690 * nat/windows-nat.h (last_wait_event): Don't declare.
12691 (wait_for_debug_event): Update comment.
12692 * nat/windows-nat.c (last_wait_event): Now static.
12693
12694 2020-04-08 Tom Tromey <tromey@adacore.com>
12695
12696 * windows-nat.c (wait_for_debug_event): Move to
12697 nat/windows-nat.c.
12698 * nat/windows-nat.h (wait_for_debug_event): Declare.
12699 * nat/windows-nat.c (wait_for_debug_event): Move from
12700 windows-nat.c. No longer static.
12701
12702 2020-04-08 Tom Tromey <tromey@adacore.com>
12703
12704 * windows-nat.c (get_windows_debug_event): Use
12705 fetch_pending_stop.
12706 * nat/windows-nat.h (fetch_pending_stop): Declare.
12707 * nat/windows-nat.c (fetch_pending_stop): New function.
12708
12709 2020-04-08 Tom Tromey <tromey@adacore.com>
12710
12711 * windows-nat.c (windows_continue): Use matching_pending_stop and
12712 continue_last_debug_event.
12713 * nat/windows-nat.h (matching_pending_stop)
12714 (continue_last_debug_event): Declare.
12715 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12716 (matching_pending_stop, continue_last_debug_event): New
12717 functions.
12718
12719 2020-04-08 Tom Tromey <tromey@adacore.com>
12720
12721 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12722 (handle_exception_result): Move to nat/windows-nat.h.
12723 (DEBUG_EXCEPTION_SIMPLE): Remove.
12724 (windows_nat::handle_ms_vc_exception): New function.
12725 (handle_exception): Move to nat/windows-nat.c.
12726 (get_windows_debug_event): Update.
12727 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12728 nat/windows-nat.c.
12729 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12730 (handle_exception_result): Move from windows-nat.c.
12731 (handle_exception): Declare.
12732 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12733 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12734 windows-nat.c.
12735
12736 2020-04-08 Tom Tromey <tromey@adacore.com>
12737
12738 * windows-nat.c (exception_count, event_count): Remove.
12739 (handle_exception, get_windows_debug_event)
12740 (do_initial_windows_stuff): Update.
12741
12742 2020-04-08 Tom Tromey <tromey@adacore.com>
12743
12744 * windows-nat.c (windows_nat::handle_load_dll)
12745 (windows_nat::handle_unload_dll): Rename. No longer static.
12746 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12747 Declare.
12748
12749 2020-04-08 Tom Tromey <tromey@adacore.com>
12750
12751 * complaints.h (stop_whining): Declare at top-level.
12752 (complaint): Don't declare stop_whining.
12753
12754 2020-04-08 Tom Tromey <tromey@adacore.com>
12755
12756 * windows-nat.c (windows_nat::handle_output_debug_string):
12757 Rename. No longer static.
12758 * nat/windows-nat.h (handle_output_debug_string): Declare.
12759
12760 2020-04-08 Tom Tromey <tromey@adacore.com>
12761
12762 * windows-nat.c (current_process_handle, current_process_id)
12763 (main_thread_id, last_sig, current_event, last_wait_event)
12764 (current_windows_thread, desired_stop_thread_id, pending_stops)
12765 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12766 (display_selectors, fake_create_process)
12767 (get_windows_debug_event): Update.
12768 * nat/windows-nat.h (current_process_handle, current_process_id)
12769 (main_thread_id, last_sig, current_event, last_wait_event)
12770 (current_windows_thread, desired_stop_thread_id, pending_stops)
12771 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12772 * nat/windows-nat.c (current_process_handle, current_process_id)
12773 (main_thread_id, last_sig, current_event, last_wait_event)
12774 (current_windows_thread, desired_stop_thread_id, pending_stops)
12775 (siginfo_er): New globals. Move from windows-nat.c.
12776
12777 2020-04-08 Tom Tromey <tromey@adacore.com>
12778
12779 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12780 (handle_load_dll): Update.
12781 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12782
12783 2020-04-08 Tom Tromey <tromey@adacore.com>
12784
12785 * windows-nat.c (enum thread_disposition_type): Move to
12786 nat/windows-nat.h.
12787 (windows_nat::thread_rec): Rename from thread_rec. No longer
12788 static.
12789 (windows_add_thread, windows_nat_target::fetch_registers)
12790 (windows_nat_target::store_registers, handle_exception)
12791 (windows_nat_target::resume, get_windows_debug_event)
12792 (windows_nat_target::get_tib_address)
12793 (windows_nat_target::thread_name)
12794 (windows_nat_target::thread_alive): Update.
12795 * nat/windows-nat.h (enum thread_disposition_type): Move from
12796 windows-nat.c.
12797 (thread_rec): Declare.
12798
12799 2020-04-08 Tom Tromey <tromey@adacore.com>
12800
12801 * windows-nat.c: Add "using namespace".
12802 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12803 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12804
12805 2020-04-08 Tom Tromey <tromey@adacore.com>
12806
12807 * nat/windows-nat.h (struct windows_thread_info): Declare
12808 destructor.
12809 * nat/windows-nat.c (~windows_thread_info): New.
12810
12811 2020-04-08 Tom Tromey <tromey@adacore.com>
12812
12813 PR gdb/22992
12814 * windows-nat.c (current_event): Update comment.
12815 (last_wait_event, desired_stop_thread_id): New globals.
12816 (struct pending_stop): New.
12817 (pending_stops): New global.
12818 (windows_nat_target) <stopped_by_sw_breakpoint>
12819 <supports_stopped_by_sw_breakpoint>: New methods.
12820 (windows_fetch_one_register): Add assertions. Adjust PC.
12821 (windows_continue): Handle pending stops. Suspend other threads
12822 when stepping. Use last_wait_event
12823 (wait_for_debug_event): New function.
12824 (get_windows_debug_event): Use wait_for_debug_event. Handle
12825 pending stops. Queue spurious stops.
12826 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12827 (windows_nat_target::kill): Use wait_for_debug_event.
12828 * nat/windows-nat.h (struct windows_thread_info)
12829 <stopped_at_software_breakpoint>: New field.
12830 * nat/windows-nat.c (windows_thread_info::resume): Clear
12831 stopped_at_software_breakpoint.
12832
12833 2020-04-08 Tom Tromey <tromey@adacore.com>
12834
12835 * windows-nat.c (enum thread_disposition_type): New.
12836 (thread_rec): Replace "get_context" parameter with "disposition";
12837 change type.
12838 (windows_add_thread, windows_nat_target::fetch_registers)
12839 (windows_nat_target::store_registers, handle_exception)
12840 (windows_nat_target::resume, get_windows_debug_event)
12841 (windows_nat_target::get_tib_address)
12842 (windows_nat_target::thread_name)
12843 (windows_nat_target::thread_alive): Update.
12844
12845 2020-04-08 Tom Tromey <tromey@adacore.com>
12846
12847 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12848 (windows_continue): Use windows_continue::resume.
12849 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12850 resume>: Declare new methods.
12851 * nat/windows-nat.c: New file.
12852 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12853
12854 2020-04-08 Tom Tromey <tromey@adacore.com>
12855
12856 * windows-nat.c (windows_add_thread, windows_delete_thread)
12857 (windows_nat_target::fetch_registers)
12858 (windows_nat_target::store_registers, fake_create_process)
12859 (windows_nat_target::resume, windows_nat_target::resume)
12860 (get_windows_debug_event, windows_nat_target::wait)
12861 (windows_nat_target::pid_to_str)
12862 (windows_nat_target::get_tib_address)
12863 (windows_nat_target::get_ada_task_ptid)
12864 (windows_nat_target::thread_name)
12865 (windows_nat_target::thread_alive): Use lwp, not tid.
12866
12867 2020-04-08 Tom Tromey <tromey@adacore.com>
12868
12869 * windows-nat.c (handle_exception)
12870 (windows_nat_target::thread_name): Update.
12871 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12872 <name>: Now unique_xmalloc_ptr.
12873
12874 2020-04-08 Tom Tromey <tromey@adacore.com>
12875
12876 * windows-nat.c (thread_rec)
12877 (windows_nat_target::fetch_registers): Update.
12878 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12879 Update comment.
12880 <debug_registers_changed, reload_context>: Now bool.
12881
12882 2020-04-08 Tom Tromey <tromey@adacore.com>
12883
12884 * windows-nat.c (windows_add_thread): Use new.
12885 (windows_init_thread_list, windows_delete_thread): Use delete.
12886 (get_windows_debug_event): Update.
12887 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12888 destructor, and initializers.
12889
12890 2020-04-08 Tom Tromey <tromey@adacore.com>
12891
12892 * windows-nat.c (struct windows_thread_info): Remove.
12893 * nat/windows-nat.h: New file.
12894
12895 2020-04-08 Tom Tromey <tromey@adacore.com>
12896
12897 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12898 (thread_rec, windows_add_thread, windows_delete_thread)
12899 (windows_continue): Update.
12900
12901 2020-04-08 Tom Tromey <tromey@adacore.com>
12902
12903 * windows-nat.c (struct windows_thread_info): Remove typedef.
12904 (thread_head): Remove.
12905 (thread_list): New global.
12906 (thread_rec, windows_add_thread, windows_init_thread_list)
12907 (windows_delete_thread, windows_continue): Update.
12908
12909 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12910
12911 * windows-tdep.h (windows_init_abi): Add comment.
12912 (cygwin_init_abi): New declaration.
12913 * windows-tdep.c: Split signal enumeration in two, one for
12914 Windows and one for Cygwin.
12915 (windows_gdb_signal_to_target): Only deal with signal of the
12916 Windows OS ABI.
12917 (cygwin_gdb_signal_to_target): New function.
12918 (windows_init_abi): Rename to windows_init_abi_common, don't set
12919 gdb_signal_to_target gdbarch method. Add new new function with
12920 this name.
12921 (cygwin_init_abi): New function.
12922 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12923 comment. Don't call windows_init_abi.
12924 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12925 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12926 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12927 i386_windows_init_abi_common, don't call windows_init_abi. Add
12928 a new function of this name.
12929 (i386_cygwin_init_abi): New function.
12930 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12931 OS ABI Cygwin.
12932
12933 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12934
12935 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12936 parameter.c.
12937 (dwarf2_read_gdb_index): Update.
12938
12939 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12940
12941 * nbsd-tdep.c: Include "objfiles.h".
12942 (nbsd_skip_solib_resolver): New.
12943 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12944
12945 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12946
12947 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12948 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12949 with DW_LLE_base_addressx are being emitted in DWARFv5.
12950 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12951 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12952 unsigned integer.
12953
12954 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12955
12956 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12957 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12958 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12959 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12960 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12961 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12962 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12963
12964
12965 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12966
12967 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12968 (read_loclist_index): New function definition.
12969 (lookup_loclist_base): New function definition.
12970 (read_loclist_header): New function definition.
12971 (dwarf2_cu): Add loclist_base and loclist_header field.
12972 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12973 (read_full_die_1): Read the value of DW_AT_loclists_base.
12974 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12975 (read_attribute_value): Handle DW_FORM_loclistx.
12976 (skip_one_die): Handle DW_FORM_loclistx.
12977 (loclist_header): New structure declaration.
12978 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12979
12980 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12981
12982 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12983 constructor. Remove `addr` parameter from other constructor and
12984 add `per_cu` parameter.
12985 * dwarf2/read.c (create_partial_symtab): Update.
12986
12987 2020-04-07 Tom de Vries <tdevries@suse.de>
12988
12989 PR symtab/25796
12990 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12991 (partial_die_info::fixup): Inherit has_const_value.
12992
12993 2020-04-07 Tom de Vries <tdevries@suse.de>
12994
12995 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12996 symbols without address.
12997
12998 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12999
13000 * nbsd-nat.h (struct thread_info): Add forward declaration.
13001 (nbsd_nat_target::thread_alive): Add.
13002 (nbsd_nat_target::thread_name): Likewise.
13003 (nbsd_nat_target::update_thread_list): Likewise.
13004 (update_thread_list::post_attach): Likewise.
13005 (post_attach::pid_to_str): Likewise.
13006 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13007 (nbsd_thread_lister): Add.
13008 (nbsd_nat_target::thread_alive): Likewise.
13009 (nbsd_nat_target::thread_name): Likewise.
13010 (nbsd_add_threads): Likewise.
13011 (update_thread_list::post_attach): Likewise.
13012 (nbsd_nat_target::update_thread_list): Likewise.
13013 (post_attach::pid_to_str): Likewise.
13014
13015 2020-04-06 Tom Tromey <tromey@adacore.com>
13016
13017 * ada-valprint.c (print_variant_part): Extract the variant field.
13018 (print_field_values): Use the field as the outer value when
13019 recursing.
13020
13021 2020-04-06 Tom Tromey <tromey@adacore.com>
13022
13023 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13024 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13025 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13026 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13027 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13028
13029 2020-04-06 Tom Tromey <tromey@adacore.com>
13030
13031 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13032 TYPE_CODE_ERROR.
13033
13034 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13035
13036 * nbsd-tdep.c: Include "gdbarch.h".
13037 Define enum with NetBSD signal numbers.
13038 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13039 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13040 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13041 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13042 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13043 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13044 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13045 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13046 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13047 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13048 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13049 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13050
13051 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
13052
13053 PR gdb/25325
13054 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13055
13056 2020-04-03 Tom Tromey <tromey@adacore.com>
13057
13058 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13059 Read constant block.
13060
13061 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13062
13063 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13064 (gdb_bfd_get_full_section_contents): New declaration.
13065 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13066 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13067 gdb_bfd_get_full_section_contents.
13068
13069 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13070
13071 * exec.c (build_section_table): Replace internal_error with
13072 gdb_assert.
13073 (section_table_xfer_memory_partial): Likewise.
13074 * mdebugread.c (parse_partial_symbols): Likewise.
13075 * psymtab.c (lookup_partial_symbol): Likewise.
13076 * utils.c (wrap_here): Likewise.
13077
13078 2020-04-02 Tom Tromey <tromey@adacore.com>
13079
13080 * f-lang.c (build_fortran_types): Use arch_type to initialize
13081 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13082
13083 2020-04-02 Tom Tromey <tromey@adacore.com>
13084
13085 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13086 of attributes.
13087
13088 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13089 Bernd Edlinger <bernd.edlinger@hotmail.de>
13090 Tom Tromey <tromey@adacore.com>
13091
13092 * buildsym.c (buildsym_compunit::record_line): Remove
13093 deduplication code.
13094
13095 2020-04-02 Tom de Vries <tdevries@suse.de>
13096
13097 PR ada/24671
13098 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13099
13100 2020-04-02 Tom de Vries <tdevries@suse.de>
13101
13102 * dwarf2/read.c (dwarf2_gdb_index_functions,
13103 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13104 NULL.
13105 * psymtab.c (psym_lookup_global_symbol_language): New function.
13106 (psym_functions): Init psym_lookup_global_symbol_language with
13107 psym_lookup_global_symbol_language.
13108 * symfile-debug.c (debug_sym_quick_functions): Init
13109 lookup_global_symbol_language with NULL.
13110 * symfile.c (set_initial_language): Remove fixme comment.
13111 * symfile.h (struct quick_symbol_functions): Add
13112 lookup_global_symbol_language.
13113 * symtab.c (find_quick_global_symbol_language): New function.
13114 (find_main_name): Use find_quick_global_symbol_language.
13115
13116 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13117
13118 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13119
13120 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13121
13122 * buildsym.c (record_line): Fix undefined behavior and preserve
13123 lines at eof.
13124
13125 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13126
13127 * buildsym.c (record_line): Fix the resizing condition.
13128
13129 2020-04-01 Tom Tromey <tom@tromey.com>
13130
13131 * value.h (value_literal_complex): Add comment.
13132 * valops.c (value_literal_complex): Refer to value.h.
13133
13134 2020-04-01 Tom Tromey <tom@tromey.com>
13135
13136 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13137 (scalar_type): New rule, from typebase.
13138 (typebase): Use scalar_type. Recognize complex types.
13139 (field_name): Handle FLOAT_KEYWORD.
13140 (ident_tokens): Add _Complex and __complex__.
13141
13142 2020-04-01 Tom Tromey <tom@tromey.com>
13143
13144 PR exp/25299:
13145 * valarith.c (promotion_type, complex_binop): New functions.
13146 (scalar_binop): Handle complex numbers. Use promotion_type.
13147 (value_pos, value_neg, value_complement): Handle complex numbers.
13148
13149 2020-04-01 Tom Tromey <tom@tromey.com>
13150
13151 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13152 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13153 (parse_number): Handle complex numbers.
13154
13155 2020-04-01 Tom Tromey <tom@tromey.com>
13156
13157 * c-valprint.c (c_decorations): Change complex suffix to "i".
13158
13159 2020-04-01 Tom Tromey <tom@tromey.com>
13160
13161 * valprint.c (generic_value_print_complex): Use accessors.
13162 * value.h (value_real_part, value_imaginary_part): Declare.
13163 * valops.c (value_real_part, value_imaginary_part): New
13164 functions.
13165 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13166
13167 2020-04-01 Tom Tromey <tom@tromey.com>
13168
13169 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13170 (read_range_type): Update.
13171 * mdebugread.c (basic_type): Update.
13172 * go-lang.c (build_go_types): Use init_complex_type.
13173 * gdbtypes.h (struct main_type) <complex_type>: New member.
13174 (init_complex_type): Update.
13175 (arch_complex_type): Don't declare.
13176 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13177 Make name if none given. Use alloc_type_copy. Look for cached
13178 complex type.
13179 (arch_complex_type): Remove.
13180 (gdbtypes_post_init): Use init_complex_type.
13181 * f-lang.c (build_fortran_types): Use init_complex_type.
13182 * dwarf2/read.c (read_base_type): Update.
13183 * d-lang.c (build_d_types): Use init_complex_type.
13184 * ctfread.c (read_base_type): Update.
13185
13186 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13187
13188 * infrun.c (stop_all_threads): Update assertion, plus when
13189 stopping threads, take into account that we might be trying
13190 to stop an all-stop target.
13191 (stop_waiting): Call 'stop_all_threads' if there exists a
13192 non-stop target.
13193
13194 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13195
13196 * target.h (exists_non_stop_target): New function declaration.
13197 * target.c (exists_non_stop_target): New function.
13198
13199 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13200
13201 PR gdb/24789
13202 * eval.c (is_integral_or_integral_reference): New function.
13203 (evaluate_subexp_standard): Allow integer references in
13204 pointer arithmetic.
13205
13206 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13207
13208 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13209 check for no ptid in the stop reply when the target is non-stop.
13210
13211 2020-04-01 Tom Tromey <tromey@adacore.com>
13212
13213 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13214 "name" parameter to rvalue reference. Initialize m_name_holder.
13215 <lookup_name_info>: New overloads.
13216 <name>: Return gdb::string_view.
13217 <c_str>: New method.
13218 <make_ignore_params>: Update.
13219 <search_name_hash>: Update.
13220 <language_lookup_name>: Return const char *.
13221 <m_name>: Change type.
13222 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13223 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13224 (lookup_name_info::match_any): Update.
13225 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13226 Update.
13227 * minsyms.c (linkage_name_str): Update.
13228 * language.c (default_symbol_name_matcher): Update.
13229 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13230 Update.
13231 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13232 (ada_lookup_name_info::ada_lookup_name_info): Update.
13233 (literal_symbol_name_matcher): Update.
13234
13235 2020-04-01 Tom Tromey <tromey@adacore.com>
13236
13237 * psymtab.c (psymtab_search_name): Remove function.
13238 (psym_lookup_symbol): Create search name and lookup name here.
13239 (lookup_partial_symbol): Remove "name" parameter; add
13240 lookup_name.
13241 (psym_expand_symtabs_for_function): Update.
13242
13243 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13244
13245 PR tui/25597:
13246 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13247
13248 2020-03-31 Tom Tromey <tromey@adacore.com>
13249
13250 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13251 memcpy.
13252
13253 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13254
13255 * features/riscv/32bit-csr.xml: Regenerated.
13256 * features/riscv/64bit-csr.xml: Regenerated.
13257
13258 2020-03-30 Tom Tromey <tromey@adacore.com>
13259
13260 * ada-valprint.c (print_variant_part): Update.
13261 * ada-lang.h (ada_which_variant_applies): Update.
13262 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13263 outer_valaddr parameters; replace with "outer" value parameter.
13264 (to_fixed_variant_branch_type): Update.
13265
13266 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13267
13268 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13269 <list>. Remove inclusion of observable.h.
13270 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13271 (struct arch_lwp_info): New struct.
13272 (class ppc_linux_dreg_interface): New class.
13273 (struct ppc_linux_process_info): New struct.
13274 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13275 <low_new_clone, low_forget_process, low_prepare_to_resume>
13276 <copy_thread_dreg_state, mark_thread_stale>
13277 <mark_debug_registers_changed, register_hw_breakpoint>
13278 <clear_hw_breakpoint, register_wp, clear_wp>
13279 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13280 <num_memory_accesses, get_trigger_type>
13281 <create_watchpoint_request, hwdebug_point_cmp>
13282 <init_arch_lwp_info, get_arch_lwp_info>
13283 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13284 methods.
13285 <struct ptid_hash>: New inner struct.
13286 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13287 members.
13288 (saved_dabr_value, hwdebug_info, max_slots_number)
13289 (struct hw_break_tuple, struct thread_points, ppc_threads)
13290 (have_ptrace_hwdebug_interface)
13291 (hwdebug_find_thread_points_by_tid)
13292 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13293 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13294 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13295 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13296 use m_dreg_interface.
13297 (hwdebug_point_cmp): Change to...
13298 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13299 reference arguments instead of pointers.
13300 (ppc_linux_nat_target::ranged_break_num_registers): Use
13301 m_dreg_interface.
13302 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13303 m_dreg_interface. Call register_hw_breakpoint.
13304 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13305 m_dreg_interface. Call clear_hw_breakpoint.
13306 (get_trigger_type): Change to...
13307 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13308 comment.
13309 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13310 use m_dreg_interface. Call register_hw_breakpoint.
13311 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13312 use m_dreg_interface. Call clear_hw_breakpoint.
13313 (can_use_watchpoint_cond_accel): Change to...
13314 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13315 method. Update comment, use m_dreg_interface and
13316 m_process_info.
13317 (calculate_dvc): Change to...
13318 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13319 m_dreg_interface.
13320 (num_memory_accesses): Change to...
13321 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13322 (check_condition): Change to...
13323 (ppc_linux_nat_target::check_condition): ...this method.
13324 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13325 comment, use m_dreg_interface.
13326 (create_watchpoint_request): Change to...
13327 (ppc_linux_nat_target::create_watchpoint_request): ...this
13328 method. Use m_dreg_interface.
13329 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13330 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13331 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13332 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13333 (ppc_linux_nat_target::low_forget_process)
13334 (ppc_linux_nat_target::low_new_fork)
13335 (ppc_linux_nat_target::low_new_clone)
13336 (ppc_linux_nat_target::low_delete_thread)
13337 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13338 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13339 only call mark_thread_stale.
13340 (ppc_linux_thread_exit): Remove.
13341 (ppc_linux_nat_target::stopped_data_address): Change to...
13342 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13343 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13344 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13345 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13346 comment. Call low_stopped_data_address.
13347 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13348 m_dreg_interface.
13349 (ppc_linux_nat_target::masked_watch_num_registers): Use
13350 m_dreg_interface.
13351 (ppc_linux_nat_target::copy_thread_dreg_state)
13352 (ppc_linux_nat_target::mark_thread_stale)
13353 (ppc_linux_nat_target::mark_debug_registers_changed)
13354 (ppc_linux_nat_target::register_hw_breakpoint)
13355 (ppc_linux_nat_target::clear_hw_breakpoint)
13356 (ppc_linux_nat_target::register_wp)
13357 (ppc_linux_nat_target::clear_wp)
13358 (ppc_linux_nat_target::init_arch_lwp_info)
13359 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13360 (_initialize_ppc_linux_nat): Remove observer callback.
13361
13362 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13363
13364 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13365 (ppc_linux_nat_target::auxv_parse)
13366 (ppc_linux_nat_target::read_description)
13367 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13368 Move up.
13369
13370 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13371
13372 * linux-nat.h (low_new_clone): New method.
13373 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13374
13375 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13376
13377 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13378 (dbx_expand_psymtab): ... this.
13379 (start_psymtab): Update.
13380 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13381 (mdebug_expand_psymtab): ... this.
13382 (parse_partial_symbols): Update.
13383 (new_psymtab): Update.
13384 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13385 (xcoff_expand_psymtab): ... this.
13386 (xcoff_start_psymtab): Update.
13387
13388 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13389
13390 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13391 <expand_dependencies>: ... this.
13392 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13393 (partial_symtab::expand_dependencies): ... this.
13394 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13395 Update.
13396 (dwarf2_psymtab::expand_psymtab): Update.
13397 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13398 * mdebugread.c (psymtab_to_symtab_1): Update.
13399 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13400
13401 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13402
13403 * psympriv.h (discard_psymtab): Remove.
13404 * dbxread.c (dbx_end_psymtab): Update.
13405 * xcoffread.c (xcoff_end_psymtab): Update.
13406
13407 2020-03-28 Tom Tromey <tom@tromey.com>
13408
13409 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13410 comment.
13411
13412 2020-03-28 Tom Tromey <tom@tromey.com>
13413
13414 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13415
13416 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13417
13418 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13419
13420 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13421
13422 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13423
13424 2020-03-26 Tom Tromey <tom@tromey.com>
13425
13426 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13427 (mark_common_block_symbol_computed, read_tag_string_type)
13428 (attr_to_dynamic_prop, read_subrange_type): Update.
13429 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13430 to be methods on struct attribute.
13431 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13432 (read_call_site_scope, partial_die_info::read)
13433 (partial_die_info::read, lookup_die_type, follow_die_ref):
13434 Update.
13435 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13436 from dwarf2_get_ref_die_offset.
13437 (attribute::constant_value): New method, from
13438 dwarf2_get_attr_constant_value.
13439 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13440 Declare method.
13441 <constant_value>: New method.
13442
13443 2020-03-26 Tom Tromey <tom@tromey.com>
13444
13445 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13446 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13447 (dwarf_type_encoding_name): Move to stringify.c.
13448 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13449 * dwarf2/stringify.c: New file.
13450 * dwarf2/stringify.h: New file.
13451
13452 2020-03-26 Tom Tromey <tom@tromey.com>
13453
13454 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13455 Rewrite.
13456
13457 2020-03-26 Tom Tromey <tom@tromey.com>
13458
13459 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13460 methods.
13461 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13462 (lookup_ranges_base): Likewise.
13463 (read_cutu_die_from_dwo, read_full_die_1): Update.
13464
13465 2020-03-26 Tom Tromey <tom@tromey.com>
13466
13467 * dwarf2/read.c (read_import_statement, read_file_scope)
13468 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13469 (read_lexical_block_scope, read_call_site_scope)
13470 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13471 (handle_struct_member_die, process_structure_scope)
13472 (update_enumeration_type_from_children)
13473 (process_enumeration_scope, read_array_type, read_common_block)
13474 (read_namespace, read_module, read_subroutine_type): Update.
13475 (sibling_die): Remove.
13476
13477 2020-03-26 Tom Tromey <tom@tromey.com>
13478
13479 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13480 (build_type_psymtabs_reader, read_structure_type)
13481 (read_enumeration_type, read_full_die_1): Update.
13482 (dwarf2_attr_no_follow): Move to die.h.
13483 * dwarf2/die.h (struct die_info) <attr>: New method.
13484
13485 2020-03-26 Tom Tromey <tom@tromey.com>
13486
13487 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13488 <base_address>: Now an optional.
13489 (dwarf2_find_base_address, dwarf2_rnglists_process)
13490 (dwarf2_ranges_process, fill_in_loclist_baton)
13491 (dwarf2_symbol_mark_computed): Update.
13492
13493 2020-03-26 Tom Tromey <tom@tromey.com>
13494
13495 * dwarf2/read.c (struct die_info): Move to die.h.
13496 * dwarf2/die.h: New file.
13497
13498 2020-03-26 Tom Tromey <tom@tromey.com>
13499
13500 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13501 * dwarf2/read.c
13502 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13503 Move to line-header.c.
13504 (read_checked_initial_length_and_offset, read_formatted_entries):
13505 Likewise.
13506 (dwarf_decode_line_header): Split into two.
13507 * dwarf2/line-header.c
13508 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13509 Move from read.c.
13510 (read_checked_initial_length_and_offset, read_formatted_entries):
13511 Likewise.
13512 (dwarf_decode_line_header): New function, split from read.c.
13513
13514 2020-03-26 Tom Tromey <tom@tromey.com>
13515
13516 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13517 Declare method.
13518 * dwarf2/read.c (read_attribute_value): Update.
13519 (dwarf2_per_objfile::read_line_string): Rename from
13520 read_indirect_line_string.
13521 (read_formatted_entries): Update.
13522
13523 2020-03-26 Tom Tromey <tom@tromey.com>
13524
13525 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13526 variable.
13527
13528 2020-03-26 Tom Tromey <tom@tromey.com>
13529
13530 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13531 const.
13532 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13533 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13534 parameter const.
13535
13536 2020-03-26 Tom Tromey <tom@tromey.com>
13537
13538 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13539 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13540 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13541 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13542
13543 2020-03-26 Tom Tromey <tom@tromey.com>
13544
13545 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13546 file_names_size, file_full_name, file_file_name>: Use const.
13547 <file_name_at, file_names>: Add const overload.
13548 * dwarf2/line-header.c (line_header::file_file_name)
13549 (line_header::file_full_name): Update.
13550
13551 2020-03-26 Tom Tromey <tom@tromey.com>
13552
13553 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13554 (macro_start_file, consume_improper_spaces)
13555 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13556 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13557 (dwarf_decode_macros): Move to macro.c.
13558 * dwarf2/macro.c: New file.
13559 * dwarf2/macro.h: New file.
13560 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13561
13562 2020-03-26 Tom Tromey <tom@tromey.com>
13563
13564 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13565 method.
13566 * dwarf2/section.c: New method. From
13567 read_indirect_string_at_offset_from.
13568 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13569 (read_indirect_string_at_offset_from): Move to section.c.
13570 (read_indirect_string_at_offset): Rewrite.
13571 (read_indirect_line_string_at_offset): Remove.
13572 (read_indirect_string, read_indirect_line_string)
13573 (dwarf_decode_macro_bytes): Update.
13574
13575 2020-03-26 Tom Tromey <tom@tromey.com>
13576
13577 * dwarf2/section.h (struct dwarf2_section_info)
13578 <overload_complaint>: Declare.
13579 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13580 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13581 Rename from dwarf2_section_buffer_overflow_complaint.
13582 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13583 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13584
13585 2020-03-26 Tom Tromey <tom@tromey.com>
13586
13587 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13588 Declare.
13589 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13590 Move from read.c.
13591 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13592 to section.c.
13593
13594 2020-03-26 Tom Tromey <tom@tromey.com>
13595
13596 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13597
13598 2020-03-26 Tom Tromey <tom@tromey.com>
13599
13600 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13601 "builder".
13602 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13603 parameter.
13604 (dwarf_decode_macros): Update.
13605
13606 2020-03-26 Tom Tromey <tom@tromey.com>
13607
13608 * dwarf2/read.c (read_attribute_value): Update.
13609 (read_indirect_string_from_dwz): Move to dwz.c; change into
13610 method.
13611 (dwarf_decode_macro_bytes): Update.
13612 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13613 * dwarf2/dwz.c: New file.
13614 * Makefile.in (COMMON_SFILES): Add dwz.c.
13615
13616 2020-03-26 Tom Tromey <tom@tromey.com>
13617
13618 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13619 * dwarf2/read.c: Add include.
13620 * dwarf2/index-write.c: Add include.
13621 * dwarf2/index-cache.c: Add include.
13622 * dwarf2/dwz.h: New file.
13623
13624 2020-03-25 Tom Tromey <tom@tromey.com>
13625
13626 * compile/compile-object-load.c (get_out_value_type): Mention
13627 correct symbol name in error message.
13628
13629 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13630
13631 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13632
13633 2020-03-25 Tom de Vries <tdevries@suse.de>
13634
13635 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13636 * symmisc.c (dump_symtab_1): Print user and includes fields.
13637 (maintenance_info_symtabs): Same.
13638
13639 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13640
13641 PR gdb/25534
13642 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13643 (riscv_regcache_cooked_write): New function.
13644 (riscv_push_dummy_call): Use new function.
13645 (riscv_return_value): Likewise.
13646
13647 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13648
13649 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13650 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13651 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13652 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13653 * infrun.c (follow_fork): Likewise.
13654 (follow_fork_inferior): Likewise.
13655 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13656 * linux-nat.h (class linux_nat_target): Likewise.
13657 * remote.c (class remote_target) <follow_fork>: Likewise.
13658 (remote_target::follow_fork): Likewise.
13659 * target-delegates.c: Re-generate.
13660 * target.c (default_follow_fork): Likewise.
13661 (target_follow_fork): Likewise.
13662 * target.h (struct target_ops) <follow_fork>: Likewise.
13663 (target_follow_fork): Likewise.
13664
13665 2020-03-24 Tom de Vries <tdevries@suse.de>
13666
13667 * psymtab.c (maintenance_info_psymtabs): Print user field.
13668
13669 2020-03-20 Tom Tromey <tromey@adacore.com>
13670
13671 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13672 const.
13673 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13674 const.
13675
13676 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13677
13678 * ptrace.m4: Don't check for ptrace declaration.
13679 * config.in: Re-generate.
13680 * configure: Re-generate.
13681 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13682 not defined.
13683
13684 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13685
13686 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13687 `PTRACE_TYPE_RET'.
13688 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13689 * sparc-nat.c (gdb_ptrace): Likewise.
13690 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13691
13692 2020-03-20 Tom Tromey <tromey@adacore.com>
13693
13694 * c-exp.y (lex_one_token): Fix assert.
13695
13696 2020-03-20 Tom Tromey <tromey@adacore.com>
13697
13698 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13699 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13700 strncpy call.
13701
13702 2020-03-20 Tom Tromey <tromey@adacore.com>
13703
13704 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13705
13706 2020-03-20 Tom Tromey <tromey@adacore.com>
13707
13708 * ada-valprint.c (print_variant_part): Remove parameters; switch
13709 to value-based API.
13710 (print_field_values): Likewise.
13711 (ada_val_print_struct_union): Likewise.
13712 (ada_value_print_1): Update.
13713
13714 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13715
13716 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13717 nbsd_nat_target instead of inf_ptrace_target.
13718 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13719 nbsd_nat_target.
13720
13721 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13722
13723 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13724 it to the ptrace call.
13725 * (store_registers): Likewise.
13726
13727 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13728
13729 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13730 it to the ptrace call.
13731 * (store_registers): Likewise.
13732
13733 2020-03-19 Luis Machado <luis.machado@linaro.org>
13734
13735 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13736 valid, fetch vg value from ptrace.
13737
13738 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13739 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13740 * inf-ptrace.c: Likewise.
13741 * (gdb_ptrace): Add.
13742 * (inf_ptrace_target::resume): Update.
13743 * (inf_ptrace_target::xfer_partial): Likewise.
13744 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13745 * (inf_ptrace_peek_poke): Update.
13746
13747 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13748
13749 * x86-bsd-nat.c (gdb_ptrace): New.
13750 * (x86bsd_dr_set): Add new argument `ptid'.
13751 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13752 x86bsd_dr_set_addr): Update.
13753
13754 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13755
13756 * remote.c (remote_target::process_stop_reply): Handle events for
13757 all threads differently.
13758
13759 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13760
13761 * completer.c (completion_tracker::remove_completion): Define new
13762 function.
13763 * completer.h (completion_tracker::remove_completion): Declare new
13764 function.
13765 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13766 when adding a C++ function symbol.
13767
13768 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13769
13770 * completer.c (completion_tracker::completion_hash_entry): Define
13771 new class.
13772 (advance_to_filename_complete_word_point): Call
13773 recompute_lowest_common_denominator.
13774 (completion_tracker::completion_tracker): Call discard_completions
13775 to setup the hash table.
13776 (completion_tracker::discard_completions): Allow for being called
13777 from the constructor, pass new equal function, and element deleter
13778 when constructing the hash table. Initialise new class member
13779 variables.
13780 (completion_tracker::maybe_add_completion): Remove use of
13781 m_entries_vec, and store more information into m_entries_hash.
13782 (completion_tracker::recompute_lcd_visitor): New function, most
13783 content taken from...
13784 (completion_tracker::recompute_lowest_common_denominator):
13785 ...here, this now just visits each item in the hash calling the
13786 above visitor.
13787 (completion_tracker::build_completion_result): Remove use of
13788 m_entries_vec, call recompute_lowest_common_denominator.
13789 * completer.h (completion_tracker::have_completions): Remove use
13790 of m_entries_vec.
13791 (completion_tracker::completion_hash_entry): Declare new class.
13792 (completion_tracker::recompute_lowest_common_denominator): Change
13793 function signature.
13794 (completion_tracker::recompute_lcd_visitor): Declare new function.
13795 (completion_tracker::m_entries_vec): Delete.
13796 (completion_tracker::m_entries_hash): Initialize to NULL.
13797 (completion_tracker::m_lowest_common_denominator_valid): New
13798 member variable.
13799 (completion_tracker::m_lowest_common_denominator_max_length): New
13800 member variable.
13801
13802 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13803
13804 * regformats/regdef.h: Put reg in gdb namespace.
13805
13806 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13807
13808 * i386-bsd-nat.c (gdb_ptrace): New.
13809 * (i386bsd_fetch_inferior_registers,
13810 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13811 * (i386bsd_fetch_inferior_registers,
13812 i386bsd_store_inferior_registers) Use gdb_ptrace.
13813
13814 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13815
13816 * amd64-bsd-nat.c (gdb_ptrace): New.
13817 * (amd64bsd_fetch_inferior_registers,
13818 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13819 * (amd64bsd_fetch_inferior_registers,
13820 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13821
13822 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13823
13824 * user-regs.c (user_reg::read): Rename to...
13825 (user_reg::xread): ...this.
13826 * (append_user_reg): Rename argument `read' to `xread'.
13827 * (user_reg_add_builtin): Likewise.
13828 * (user_reg_add): Likewise.
13829 * (value_of_user_reg): Likewise.
13830
13831 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13832
13833 * sparc-nat.c (gdb_ptrace): New.
13834 * sparc-nat.c (sparc_fetch_inferior_registers)
13835 (sparc_store_inferior_registers) Remove obsolete comment.
13836 * sparc-nat.c (sparc_fetch_inferior_registers)
13837 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13838 * sparc-nat.c (sparc_fetch_inferior_registers)
13839 (sparc_store_inferior_registers) Use gdb_ptrace.
13840
13841 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13842
13843 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13844 it to the ptrace call.
13845 * sh-nbsd-nat.c (store_registers): Likewise.
13846
13847 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13848
13849 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13850 nbsd_nat_target instead of inf_ptrace_target.
13851 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13852 nbsd_nat_target.
13853
13854 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13855
13856 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13857
13858 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13859
13860 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13861 <sys/sysctl.h>.
13862 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13863
13864 2020-03-17 Tom de Vries <tdevries@suse.de>
13865
13866 PR gdb/23710
13867 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13868 fields.
13869 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13870 fields.
13871 (process_imported_unit_die): Skip import of c++ CUs.
13872
13873 2020-03-16 Tom Tromey <tom@tromey.com>
13874
13875 * p-valprint.c (pascal_object_print_value): Initialize
13876 base_value.
13877
13878 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13879 Shahab Vahedi <shahab@synopsys.com>
13880
13881 * Makefile.in: Add arch/arc.o
13882 * configure.tgt: Likewise.
13883 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13884 (_initialize_arc_tdep): Don't initialize old target descriptions.
13885 (arc_read_description): New function to cache target descriptions.
13886 * arc-tdep.h (arc_read_description): Add proto type.
13887 * arch/arc.c: New file.
13888 * arch/arc.h: Likewise.
13889 * features/Makefile: Replace old target descriptions with new.
13890 * features/arc-arcompact.c: Remove.
13891 * features/arc-arcompact.xml: Likewise.
13892 * features/arc-v2.c: Likewise
13893 * features/arc-v2.xml: Likewise
13894 * features/arc/aux-arcompact.xml: New file.
13895 * features/arc/aux-v2.xml: Likewise.
13896 * features/arc/core-arcompact.xml: Likewise.
13897 * features/arc/core-v2.xml: Likewise.
13898 * features/arc/aux-arcompact.c: Generate.
13899 * features/arc/aux-v2.c: Likewise.
13900 * features/arc/core-arcompact.c: Likewise.
13901 * features/arc/core-v2.c: Likewise.
13902 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13903
13904 2020-03-16 Tom Tromey <tromey@adacore.com>
13905
13906 PR gdb/25663:
13907 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13908 putting value into bcache.
13909
13910 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13911
13912 PR gdb/21500
13913 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13914 to...
13915 (amd64_windows_init_abi_common): ... this. Don't set size of
13916 long type.
13917 (amd64_windows_init_abi): New function.
13918 (amd64_cygwin_init_abi): New function.
13919 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13920 the Cygwin OS ABI.
13921 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13922 comment.
13923
13924 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13925
13926 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13927 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13928 (pe_import_directory_entry): New struct type.
13929 (is_linked_with_cygwin_dll): New function.
13930 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13931 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13932 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13933
13934 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13935
13936 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13937 i386_cygwin_core_osabi_sniffer.
13938
13939 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13940
13941 * i386-cygwin-tdep.c: Rename to...
13942 * i386-windows-tdep.c: ... this.
13943 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13944 i386-windows-tdep.c.
13945 * configure.tgt: Likewise.
13946
13947 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13948
13949 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13950 * osabi.c (gdb_osabi_names): Add "Windows".
13951 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13952 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13953 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13954 i386_cygwin_osabi_sniffer.
13955 (_initialize_i386_cygwin_tdep): Register OS ABI
13956 GDB_OSABI_WINDOWS for i386.
13957 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13958 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13959 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13960 for x86-64.
13961 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13962 when the target matches '*-*-mingw*'.
13963
13964 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13965
13966 * defs.h (enum gdb_osabi): Move to...
13967 * osabi.h (enum gdb_osabi): ... here.
13968 * gdbarch.sh: Include osabi.h in gdbarch.h.
13969 * gdbarch.h: Re-generate.
13970
13971 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13972
13973 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13974 function.
13975 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13976
13977 2020-03-14 Tom Tromey <tom@tromey.com>
13978
13979 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13980 for C++.
13981 (c_type_print_modifier): Likewise. Add "language" parameter.
13982 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13983 (c_type_print_base_1): Update.
13984 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13985 constants.
13986 * type-stack.c (type_stack::insert): Handle tp_atomic and
13987 tp_restrict.
13988 (type_stack::follow_type_instance_flags): Likewise.
13989 (type_stack::follow_types): Likewise. Merge type-following code.
13990 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13991 (space_identifier, cv_with_space_id)
13992 (const_or_volatile_or_space_identifier_noopt)
13993 (const_or_volatile_or_space_identifier): Remove.
13994 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13995 rules.
13996 (ptr_operator, typebase): Update.
13997 (enum token_flag) <FLAG_C>: New constant.
13998 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13999 "_Atomic".
14000 (lex_one_token): Handle FLAG_C.
14001
14002 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14003
14004 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14005 it to the ptrace call.
14006 * m68k-bsd-nat.c (store_registers): Likewise.
14007
14008 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14009
14010 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14011 gdb_byte *.
14012 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14013 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14014 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14015
14016 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14017
14018 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14019 nbsd_nat_target instead of inf_ptrace_target.
14020 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14021 nbsd_nat_target.
14022
14023 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14024
14025 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14026 register_t.
14027
14028 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14029
14030 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14031 it to the ptrace call.
14032 * alpha-bsd-nat.c (store_registers): Likewise.
14033
14034 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14035
14036 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14037 includes.
14038 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14039 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14040 fill_fpregset): Likewise.
14041
14042 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14043
14044 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14045 nbsd_nat_target instead of inf_ptrace_target.
14046 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14047 nbsd_nat_target.
14048
14049 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14050
14051 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14052 register_t.
14053
14054 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14055
14056 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14057 it to the ptrace call.
14058 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14059 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14060 * arm-nbsd-nat.c (store_register): Likewise.
14061 * arm-nbsd-nat.c (store_regs): Likewise.
14062 * arm-nbsd-nat.c (store_fp_register): Likewise.
14063 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14064
14065 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14066
14067 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14068 nbsd_nat_target instead of inf_ptrace_target.
14069 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14070 nbsd_nat_target.
14071
14072 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14073
14074 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14075 it to the ptrace call.
14076 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14077
14078 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14079
14080 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14081 it to the ptrace call.
14082 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14083
14084 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14085
14086 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14087 gdb_byte *.
14088 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14089
14090 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14091
14092 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14093 instead of inf_ptrace_target.
14094 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14095 nbsd_nat_target.
14096
14097 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14098
14099 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14100 register_t.
14101
14102 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14103
14104 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14105 register_t.
14106
14107 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14108
14109 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14110 register_t.
14111
14112 2020-03-13 Tom Tromey <tom@tromey.com>
14113
14114 * value.h (val_print): Don't declare.
14115 * valprint.h (val_print_array_elements)
14116 (val_print_scalar_formatted, generic_val_print): Don't declare.
14117 * valprint.c (generic_val_print_array): Take a struct value.
14118 (generic_val_print_ptr, generic_val_print_memberptr)
14119 (generic_val_print_bool, generic_val_print_int)
14120 (generic_val_print_char, generic_val_print_complex)
14121 (generic_val_print): Remove.
14122 (generic_value_print): Update.
14123 (do_val_print): Remove unused parameters. Don't call
14124 la_val_print.
14125 (val_print): Remove.
14126 (common_val_print): Update. Don't call value_check_printable.
14127 (val_print_scalar_formatted, val_print_array_elements): Remove.
14128 * rust-lang.c (rust_val_print): Remove.
14129 (rust_language_defn): Update.
14130 * p-valprint.c (pascal_val_print): Remove.
14131 (pascal_value_print_inner): Update.
14132 (pascal_object_print_val_fields, pascal_object_print_val):
14133 Remove.
14134 (pascal_object_print_static_field): Update.
14135 * p-lang.h (pascal_val_print): Don't declare.
14136 * p-lang.c (pascal_language_defn): Update.
14137 * opencl-lang.c (opencl_language_defn): Update.
14138 * objc-lang.c (objc_language_defn): Update.
14139 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14140 * m2-lang.h (m2_val_print): Don't declare.
14141 * m2-lang.c (m2_language_defn): Update.
14142 * language.h (struct language_defn) <la_val_print>: Remove.
14143 * language.c (unk_lang_value_print_inner): Rename. Change
14144 argument types.
14145 (unknown_language_defn, auto_language_defn): Update.
14146 * go-valprint.c (go_val_print): Remove.
14147 * go-lang.h (go_val_print): Don't declare.
14148 * go-lang.c (go_language_defn): Update.
14149 * f-valprint.c (f_val_print): Remove.
14150 * f-lang.h (f_value_print): Don't declare.
14151 * f-lang.c (f_language_defn): Update.
14152 * d-valprint.c (d_val_print): Remove.
14153 * d-lang.h (d_value_print): Don't declare.
14154 * d-lang.c (d_language_defn): Update.
14155 * cp-valprint.c (cp_print_value_fields)
14156 (cp_print_value_fields_rtti, cp_print_value): Remove.
14157 (cp_print_static_field): Update.
14158 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14159 (c_val_print_struct, c_val_print_union, c_val_print_int)
14160 (c_val_print_memberptr, c_val_print): Remove.
14161 * c-lang.h (c_val_print_array, cp_print_value_fields)
14162 (cp_print_value_fields_rtti): Don't declare.
14163 * c-lang.c (c_language_defn, cplus_language_defn)
14164 (asm_language_defn, minimal_language_defn): Update.
14165 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14166 (ada_val_print_enum): Take a struct value.
14167 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14168 (ada_val_print): Remove.
14169 (ada_value_print_1): Update.
14170 (printable_val_type): Remove.
14171 * ada-lang.h (ada_val_print): Don't declare.
14172 * ada-lang.c (ada_language_defn): Update.
14173
14174 2020-03-13 Tom Tromey <tom@tromey.com>
14175
14176 * valprint.c (do_val_print): Update.
14177 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14178 a struct value.
14179 (value_to_value_object_no_release): Declare.
14180 * python/py-value.c (value_to_value_object_no_release): New
14181 function.
14182 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14183 struct value.
14184 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14185 function.
14186 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14187 a struct value.
14188 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14189 Declare.
14190 (gdbscm_apply_val_pretty_printer): Take a struct value.
14191 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14192 value.
14193 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14194 value.
14195 * extension-priv.h (struct extension_language_ops)
14196 <apply_val_pretty_printer>: Take a struct value.
14197 * cp-valprint.c (cp_print_value): Create a struct value.
14198 (cp_print_value): Update.
14199
14200 2020-03-13 Tom Tromey <tom@tromey.com>
14201
14202 * ada-valprint.c (print_field_values): Call common_val_print.
14203
14204 2020-03-13 Tom Tromey <tom@tromey.com>
14205
14206 * ada-valprint.c (val_print_packed_array_elements): Remove
14207 bitoffset and val parameters. Call common_val_print.
14208 (ada_val_print_string): Remove offset, address, and original_value
14209 parameters.
14210 (ada_val_print_array): Update.
14211 (ada_value_print_array): New function.
14212 (ada_value_print_1): Call it.
14213
14214 2020-03-13 Tom Tromey <tom@tromey.com>
14215
14216 * ada-valprint.c (ada_value_print): Use common_val_print.
14217
14218 2020-03-13 Tom Tromey <tom@tromey.com>
14219
14220 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14221
14222 2020-03-13 Tom Tromey <tom@tromey.com>
14223
14224 * ada-valprint.c (ada_value_print_num): New function.
14225 (ada_value_print_1): Use it.
14226
14227 2020-03-13 Tom Tromey <tom@tromey.com>
14228
14229 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14230
14231 2020-03-13 Tom Tromey <tom@tromey.com>
14232
14233 * ada-valprint.c (ada_value_print_ptr): New function.
14234 (ada_value_print_1): Use it.
14235
14236 2020-03-13 Tom Tromey <tom@tromey.com>
14237
14238 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14239 call common_val_print.
14240 (ada_val_print_1): Update.
14241 (ada_value_print_1): New function.
14242 (ada_value_print_inner): Rewrite.
14243
14244 2020-03-13 Tom Tromey <tom@tromey.com>
14245
14246 * cp-valprint.c (cp_print_value_fields): Update.
14247 (cp_print_value): New function.
14248
14249 2020-03-13 Tom Tromey <tom@tromey.com>
14250
14251 * m2-valprint.c (m2_value_print_inner): Use
14252 cp_print_value_fields.
14253 * cp-valprint.c (cp_print_value_fields): New function.
14254 * c-valprint.c (c_value_print_struct): New function.
14255 (c_value_print_inner): Use c_value_print_struct.
14256 * c-lang.h (cp_print_value_fields): Declare.
14257
14258 2020-03-13 Tom Tromey <tom@tromey.com>
14259
14260 * c-valprint.c (c_value_print_array): New function.
14261 (c_value_print_inner): Use it.
14262
14263 2020-03-13 Tom Tromey <tom@tromey.com>
14264
14265 * c-valprint.c (c_value_print_memberptr): New function.
14266 (c_value_print_inner): Use it.
14267
14268 2020-03-13 Tom Tromey <tom@tromey.com>
14269
14270 * c-valprint.c (c_value_print_int): New function.
14271 (c_value_print_inner): Use it.
14272
14273 2020-03-13 Tom Tromey <tom@tromey.com>
14274
14275 * c-valprint.c (c_value_print_ptr): 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_inner): Rewrite.
14281
14282 2020-03-13 Tom Tromey <tom@tromey.com>
14283
14284 * valprint.c (generic_value_print_complex): New function.
14285 (generic_value_print): Use it.
14286
14287 2020-03-13 Tom Tromey <tom@tromey.com>
14288
14289 * valprint.c (generic_val_print_float): Don't call
14290 val_print_scalar_formatted.
14291 (generic_val_print, generic_value_print): Update.
14292
14293 2020-03-13 Tom Tromey <tom@tromey.com>
14294
14295 * valprint.c (generic_value_print_char): New function
14296 (generic_value_print): Use it.
14297
14298 2020-03-13 Tom Tromey <tom@tromey.com>
14299
14300 * valprint.c (generic_value_print_int): New function.
14301 (generic_value_print): Use it.
14302
14303 2020-03-13 Tom Tromey <tom@tromey.com>
14304
14305 * valprint.c (generic_value_print_bool): New function.
14306 (generic_value_print): Use it.
14307
14308 2020-03-13 Tom Tromey <tom@tromey.com>
14309
14310 * valprint.c (generic_val_print_func): Simplify.
14311 (generic_val_print, generic_value_print): Update.
14312
14313 2020-03-13 Tom Tromey <tom@tromey.com>
14314
14315 * valprint.c (generic_val_print_flags): Remove.
14316 (generic_val_print, generic_value_print): Update.
14317 (val_print_type_code_flags): Add original_value parameter.
14318
14319 2020-03-13 Tom Tromey <tom@tromey.com>
14320
14321 * valprint.c (generic_val_print): Update.
14322 (generic_value_print): Update.
14323 * valprint.c (generic_val_print_enum): Don't call
14324 val_print_scalar_formatted.
14325
14326 2020-03-13 Tom Tromey <tom@tromey.com>
14327
14328 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14329 * valprint.c (generic_value_print_ptr): New function.
14330
14331 2020-03-13 Tom Tromey <tom@tromey.com>
14332
14333 * valprint.c (generic_value_print): Rewrite.
14334
14335 2020-03-13 Tom Tromey <tom@tromey.com>
14336
14337 * p-valprint.c (pascal_object_print_value_fields)
14338 (pascal_object_print_value): New functions.
14339
14340 2020-03-13 Tom Tromey <tom@tromey.com>
14341
14342 * p-valprint.c (pascal_value_print_inner): Rewrite.
14343
14344 2020-03-13 Tom Tromey <tom@tromey.com>
14345
14346 * f-valprint.c (f_value_print_innner): Rewrite.
14347
14348 2020-03-13 Tom Tromey <tom@tromey.com>
14349
14350 * m2-valprint.c (m2_print_unbounded_array): New overload.
14351 (m2_print_unbounded_array): Update.
14352 (m2_print_array_contents): Take a struct value.
14353 (m2_value_print_inner): Rewrite.
14354
14355 2020-03-13 Tom Tromey <tom@tromey.com>
14356
14357 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14358 (d_value_print_inner): New function.
14359 * d-lang.h (d_value_print_inner): Declare.
14360 * d-lang.c (d_language_defn): Use d_value_print_inner.
14361
14362 2020-03-13 Tom Tromey <tom@tromey.com>
14363
14364 * go-valprint.c (go_value_print_inner): New function.
14365 * go-lang.h (go_value_print_inner): Declare.
14366 * go-lang.c (go_language_defn): Use go_value_print_inner.
14367
14368 2020-03-13 Tom Tromey <tom@tromey.com>
14369
14370 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14371 API.
14372 (rust_val_print): Rewrite.
14373 (rust_value_print_inner): New function, from rust_val_print.
14374 (rust_language_defn): Use rust_value_print_inner.
14375
14376 2020-03-13 Tom Tromey <tom@tromey.com>
14377
14378 * ada-valprint.c (ada_value_print_inner): New function.
14379 * ada-lang.h (ada_value_print_inner): Declare.
14380 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14381
14382 2020-03-13 Tom Tromey <tom@tromey.com>
14383
14384 * f-valprint.c (f_value_print_innner): New function.
14385 * f-lang.h (f_value_print_innner): Declare.
14386 * f-lang.c (f_language_defn): Use f_value_print_innner.
14387
14388 2020-03-13 Tom Tromey <tom@tromey.com>
14389
14390 * p-valprint.c (pascal_value_print_inner): New function.
14391 * p-lang.h (pascal_value_print_inner): Declare.
14392 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14393
14394 2020-03-13 Tom Tromey <tom@tromey.com>
14395
14396 * m2-valprint.c (m2_value_print_inner): New function.
14397 * m2-lang.h (m2_value_print_inner): Declare.
14398 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14399
14400 2020-03-13 Tom Tromey <tom@tromey.com>
14401
14402 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14403 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14404 * c-valprint.c (c_value_print_inner): New function.
14405 * c-lang.h (c_value_print_inner): Declare.
14406 * c-lang.c (c_language_defn, cplus_language_defn)
14407 (asm_language_defn, minimal_language_defn): Use
14408 c_value_print_inner.
14409
14410 2020-03-13 Tom Tromey <tom@tromey.com>
14411
14412 * p-valprint.c (pascal_object_print_value_fields): Now static.
14413 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14414
14415 2020-03-13 Tom Tromey <tom@tromey.com>
14416
14417 * c-valprint.c (c_val_print_array): Simplify.
14418
14419 2020-03-13 Tom Tromey <tom@tromey.com>
14420
14421 * valprint.c (value_print_array_elements): New function.
14422 * valprint.h (value_print_array_elements): Declare.
14423
14424 2020-03-13 Tom Tromey <tom@tromey.com>
14425
14426 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14427 * mips-tdep.c (mips_print_register): Use
14428 value_print_scalar_formatted.
14429
14430 2020-03-13 Tom Tromey <tom@tromey.com>
14431
14432 * valprint.h (value_print_scalar_formatted): Declare.
14433 * valprint.c (value_print_scalar_formatted): New function.
14434
14435 2020-03-13 Tom Tromey <tom@tromey.com>
14436
14437 * valprint.h (generic_value_print): Declare.
14438 * valprint.c (generic_value_print): New function.
14439
14440 2020-03-13 Tom Tromey <tom@tromey.com>
14441
14442 * valprint.c (do_val_print): Call la_value_print_inner, if
14443 available.
14444 * rust-lang.c (rust_language_defn): Update.
14445 * p-lang.c (pascal_language_defn): Update.
14446 * opencl-lang.c (opencl_language_defn): Update.
14447 * objc-lang.c (objc_language_defn): Update.
14448 * m2-lang.c (m2_language_defn): Update.
14449 * language.h (struct language_defn) <la_value_print_inner>: New
14450 member.
14451 * language.c (unknown_language_defn, auto_language_defn): Update.
14452 * go-lang.c (go_language_defn): Update.
14453 * f-lang.c (f_language_defn): Update.
14454 * d-lang.c (d_language_defn): Update.
14455 * c-lang.c (c_language_defn, cplus_language_defn)
14456 (asm_language_defn, minimal_language_defn): Update.
14457 * ada-lang.c (ada_language_defn): Update.
14458
14459 2020-03-13 Tom Tromey <tom@tromey.com>
14460
14461 * c-valprint.c (c_value_print): Use common_val_print.
14462
14463 2020-03-13 Tom Tromey <tom@tromey.com>
14464
14465 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14466
14467 2020-03-13 Tom Tromey <tom@tromey.com>
14468
14469 * f-valprint.c (f77_print_array_1, f_val_print): Use
14470 common_val_print.
14471
14472 2020-03-13 Tom Tromey <tom@tromey.com>
14473
14474 * riscv-tdep.c (riscv_print_one_register_info): Use
14475 common_val_print.
14476
14477 2020-03-13 Tom Tromey <tom@tromey.com>
14478
14479 * mi/mi-main.c (output_register): Use common_val_print.
14480
14481 2020-03-13 Tom Tromey <tom@tromey.com>
14482
14483 * infcmd.c (default_print_one_register_info): Use
14484 common_val_print.
14485
14486 2020-03-13 Tom Tromey <tom@tromey.com>
14487
14488 * valprint.h (common_val_print_checked): Declare.
14489 * valprint.c (common_val_print_checked): New function.
14490 * stack.c (print_frame_arg): Use common_val_print_checked.
14491
14492 2020-03-13 Tom Tromey <tom@tromey.com>
14493
14494 * valprint.c (do_val_print): New function, from val_print.
14495 (val_print): Use do_val_print.
14496 (common_val_print): Use do_val_print.
14497
14498 2020-03-13 Tom Tromey <tom@tromey.com>
14499
14500 * valprint.c (value_print): Use scoped_value_mark.
14501
14502 2020-03-13 Tom de Vries <tdevries@suse.de>
14503
14504 PR symtab/25646
14505 * psymtab.c (partial_symtab::partial_symtab): Don't set
14506 globals_offset and statics_offset. Push element onto
14507 current_global_psymbols and current_static_psymbols stacks.
14508 (concat): New function.
14509 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14510 element from current_global_psymbols and current_static_psymbols
14511 stacks. Concat popped elements to global_psymbols and
14512 static_symbols.
14513 (add_psymbol_to_list): Use current_global_psymbols and
14514 current_static_psymbols stacks.
14515 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14516 current_static_psymbols fields.
14517
14518 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14519
14520 * corelow.c (sniff_core_bfd): Remove.
14521 (class core_target) <m_core_vec>: Remove.
14522 (core_target::core_target): Update.
14523 (core_file_fns): Remove.
14524 (deprecated_add_core_fns): Remove.
14525 (default_core_sniffer): Remove.
14526 (sniff_core_bfd): Remove.
14527 (default_check_format): Remove.
14528 (gdb_check_format): Remove.
14529 (core_target_open): Update.
14530 (core_target::get_core_register_section): Update.
14531 (get_core_registers_cb): Update.
14532 (core_target::fetch_registers): Update.
14533 * gdbcore.h (struct core_fns): Remove.
14534 (deprecated_add_core_fns): Remove.
14535 (default_core_sniffer): Remove.
14536 (default_check_format): Remove.
14537
14538 2020-03-12 Tom Tromey <tom@tromey.com>
14539
14540 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14541 CORE_ADDR.
14542 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14543
14544 2020-03-12 Tom Tromey <tom@tromey.com>
14545
14546 * remote.c (remote_target::download_tracepoint)
14547 (remote_target::enable_tracepoint)
14548 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14549 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14550 sprintf_vma.
14551
14552 2020-03-12 Tom Tromey <tom@tromey.com>
14553
14554 * symfile-mem.c: Update CORE_ADDR size assert.
14555
14556 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14557
14558 * selftest.m4: Move to gdbsupport/.
14559 * acinclude.m4: Update path to selftest.m4.
14560
14561 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14562
14563 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14564 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14565 gdbarch-selfselftests.c and selftest-arch.c.
14566 (SUBDIR_UNITTESTS_OBS): Rename to...
14567 (SELFTESTS_OBS): ... this.
14568 (COMMON_SFILES): Remove disasm-selftests.c and
14569 gdbarch-selftests.c.
14570 * configure.ac: Don't add selftest-arch.{c,o} to
14571 CONFIG_{SRCS,OBS}.
14572 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14573 preprocessor conditions.
14574
14575 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14576
14577 * configure.ac: Don't source bfd/development.sh.
14578 * selftest.m4: Modify comment.
14579 * configure: Re-generate.
14580
14581 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14582
14583 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14584 not "true" or "false".
14585 * configure: Re-generate.
14586
14587 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14588
14589 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14590 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14591 renamed to arm_nbsd_supply_gregset.
14592 (fetch_register): Update to call arm_nbsd_supply_gregset.
14593 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14594 (arm_netbsd_nat_target::fetch_registers): Update.
14595 (fetch_elfcore_registers): Removed.
14596 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14597 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14598 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14599 not require NetBSD system headers.
14600 (arm_nbsd_regset): New struct.
14601 (arm_nbsd_iterate_over_regset_sections): New function.
14602 (arm_netbsd_init_abi_common): Updated to call
14603 set_gdbarch_iterate_over_regset_sections.
14604 * arm-nbsd-tdep.h: New file.
14605
14606 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14607
14608 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14609 recursion.
14610
14611 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14612
14613 * configure: Re-generate.
14614
14615 2020-03-11 Tom Tromey <tromey@adacore.com>
14616
14617 * ada-typeprint.c (print_choices): Fix comment.
14618
14619 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14620
14621 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14622 previous item in the list, when the list has no items.
14623
14624 2020-03-11 Tom de Vries <tdevries@suse.de>
14625
14626 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14627 PROP_LOCLIST handling code.
14628
14629 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14630
14631 * buildsym-legacy.c (record_line): Pass extra parameter to
14632 record_line.
14633 * buildsym.c (buildsym_compunit::record_line): Take an extra
14634 parameter, reduce duplication in the line table, and record the
14635 is_stmt flag in the line table.
14636 * buildsym.h (buildsym_compunit::record_line): Add extra
14637 parameter.
14638 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14639 non-statement lines.
14640 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14641 this to the symtab builder.
14642 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14643 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14644 through to dwarf_record_line_1.
14645 * infrun.c (process_event_stop_test): When stepping, don't stop at
14646 a non-statement instruction, and only refresh the step info when
14647 we land in the middle of a line's range. Also add an extra
14648 comment.
14649 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14650 field.
14651 * record-btrace.c (btrace_find_line_range): Only record lines
14652 marked as is-statement.
14653 * stack.c (frame_show_address): Show the frame address if we are
14654 in a non-statement sal.
14655 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14656 (maintenance_print_one_line_table): Print a header for the is_stmt
14657 column, and include is_stmt information in the output.
14658 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14659 preference to non-statements.
14660 (find_pcs_for_symtab_line): Prefer is-statement entries.
14661 (find_line_common): Likewise.
14662 * symtab.h (struct linetable_entry): Add is_stmt field.
14663 (struct symtab_and_line): Likewise.
14664 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14665 arranging the line table.
14666
14667 2020-03-07 Tom de Vries <tdevries@suse.de>
14668
14669 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14670 DIE.
14671
14672 2020-03-07 Tom Tromey <tom@tromey.com>
14673
14674 * valops.c (value_literal_complex): Remove obsolete comment.
14675 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14676 comment.
14677
14678 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14679
14680 * infrun.h: Forward-declare thread_info.
14681 (set_step_info): Add thread_info parameter, add doc.
14682 * infrun.c (set_step_info): Add thread_info parameter, move doc
14683 to header.
14684 * infrun.c (process_event_stop_test): Pass thread to
14685 set_step_info call.
14686 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14687 set_step_info.
14688 (prepare_one_step): Add thread_info parameter, pass it to
14689 set_step_frame and prepare_one_step (recursive) call.
14690 (step_1): Pass thread to prepare_one_step call.
14691 (step_command_fsm::should_stop): Pass thread to
14692 prepare_one_step.
14693 (until_next_fsm): Pass thread to set_step_frame call.
14694 (finish_command): Pass thread to set_step_info call.
14695
14696 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14697
14698 * windows-tdep.c (windows_solib_create_inferior_hook):
14699 Check if inferior is running.
14700
14701 2020-03-06 Tom de Vries <tdevries@suse.de>
14702
14703 * NEWS: Fix "the the".
14704 * ctfread.c: Same.
14705
14706 2020-03-06 Tom de Vries <tdevries@suse.de>
14707
14708 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14709
14710 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14711
14712 * .dir-locals.el: Add a comment referencing the other copies of
14713 this file.
14714
14715 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14716
14717 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14718 psargs.
14719
14720 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14721
14722 * .gitattributes: New file.
14723
14724 2020-03-04 Tom Tromey <tom@tromey.com>
14725
14726 * symmisc.c (print_symbol_bcache_statistics)
14727 (print_objfile_statistics): Update.
14728 * symfile.c (allocate_symtab): Use intern.
14729 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14730 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14731 macro_cache>: Remove.
14732 <string_cache>: New member.
14733 (struct objfile) <intern>: New methods.
14734 * elfread.c (elf_symtab_read): Use intern.
14735 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14736 (dwarf2_compute_name, dwarf2_physname)
14737 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14738 names.
14739 (guess_partial_die_structure_name): Update.
14740 (partial_die_info::fixup): Intern name.
14741 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14742 name.
14743 (dwarf2_name): Intern name. Update.
14744 * buildsym.c (buildsym_compunit::get_macro_table): Use
14745 string_cache.
14746
14747 2020-03-04 Tom Tromey <tom@tromey.com>
14748
14749 * jit.c (bfd_open_from_target_memory): Make "target" const.
14750 * corefile.c (gnutarget): Now const.
14751 * gdbcore.h (gnutarget): Now const.
14752
14753 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14754
14755 * NEWS: Mention support for WOW64 processes.
14756 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14757 (amd64_windows_segment_register_p): Remove static.
14758 (_initialize_amd64_windows_nat): Update.
14759 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14760 * i386-windows-nat.c (context_offset): Update.
14761 (i386_mappings): Rename and remove static.
14762 (i386_windows_segment_register_p): Remove static.
14763 (_initialize_i386_windows_nat): Update.
14764 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14765 (STATUS_WX86_SINGLE_STEP): New macro.
14766 (EnumProcessModulesEx): New macro.
14767 (Wow64SuspendThread): New macro.
14768 (Wow64GetThreadContext): New macro.
14769 (Wow64SetThreadContext): New macro.
14770 (Wow64GetThreadSelectorEntry): New macro.
14771 (windows_set_context_register_offsets): Add static.
14772 (windows_set_segment_register_p): Likewise.
14773 (windows_add_thread): Adapt for WOW64 processes.
14774 (windows_fetch_one_register): Likewise.
14775 (windows_nat_target::fetch_registers): Likewise.
14776 (windows_store_one_register): Likewise.
14777 (display_selector): Likewise.
14778 (display_selectors): Likewise.
14779 (handle_exception): Likewise.
14780 (windows_continue): Likewise.
14781 (windows_nat_target::resume): Likewise.
14782 (windows_add_all_dlls): Likewise.
14783 (do_initial_windows_stuff): Likewise.
14784 (windows_nat_target::attach): Likewise.
14785 (windows_get_exec_module_filename): Likewise.
14786 (windows_nat_target::create_inferior): Likewise.
14787 (windows_xfer_siginfo): Likewise.
14788 (_initialize_loadable): Initialize Wow64SuspendThread,
14789 Wow64GetThreadContext, Wow64SetThreadContext,
14790 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14791 * windows-nat.h (windows_set_context_register_offsets):
14792 Remove declaration.
14793 (windows_set_segment_register_p): Likewise.
14794 (i386_windows_segment_register_p): Add declaration.
14795 (amd64_windows_segment_register_p): Likewise.
14796
14797 2020-03-04 Luis Machado <luis.machado@linaro.org>
14798
14799 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14800 in "info registers" for AArch64/ARM.
14801
14802 The change caused "info registers" to not print GPR's.
14803
14804 gdb/ChangeLog:
14805
14806 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14807
14808 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14809 when reg->group is empty and reggroup is not.
14810
14811 2020-03-03 Tom Tromey <tromey@adacore.com>
14812
14813 * dwarf2/frame.c (struct dwarf2_frame_cache)
14814 <checked_tailcall_bottom, entry_cfa_sp_offset,
14815 entry_cfa_sp_offset_p>: Remove members.
14816 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14817 (dwarf2_frame_prev_register): Don't call
14818 dwarf2_tailcall_sniffer_first.
14819 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14820 * frame-unwind.c (add_unwinder): New fuction.
14821 (frame_unwind_init): Use it. Add tailcall unwinder.
14822
14823 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14824 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14825
14826 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14827 value should be printed as true.
14828
14829 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14830
14831 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14832 (windows_init_abi): Set and use windows_so_ops.
14833
14834 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14835
14836 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14837 when verifying if dealing with a convenience variable.
14838
14839 2020-03-03 Luis Machado <luis.machado@linaro.org>
14840
14841 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14842
14843 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14844
14845 * infrun.c (gdbarch_supports_displaced_stepping): New.
14846 (use_displaced_stepping): Break up conditions in smaller pieces.
14847 Use gdbarch_supports_displaced_stepping.
14848 (displaced_step_prepare_throw): Use
14849 gdbarch_supports_displaced_stepping.
14850
14851 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14852
14853 * NEWS: Mention new behaviour of the history filename.
14854 * top.c (write_history_p): Add comment.
14855 (show_write_history_p): Add header comment, give a different
14856 message when history writing is on, but the history filename is
14857 empty.
14858 (history_filename): Add comment.
14859 (history_filename_empty): New function.
14860 (show_history_filename): Add header comment, give a different
14861 message when the filename is empty.
14862 (init_history): Compare history_filename against nullptr, and only
14863 read history if the filename is not empty.
14864 (set_history_filename): Add header comment, and only make
14865 non-empty filenames absolute.
14866 (init_main): Make the filename argument to 'set history filename'
14867 optional.
14868
14869 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14870
14871 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14872 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14873 (fetch_fp_register): Update.
14874 (fetch_fp_regs): Update.
14875 (store_fp_register): Update.
14876 (store_fp_regs): Update.
14877 (arm_netbsd_nat_target::read_description): New function.
14878 (fetch_elfcore_registers): Update.
14879
14880 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14881
14882 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14883 general_thread if the stop reply is missing a thread-id.
14884 (remote_target::process_stop_reply): Use the first non-exited
14885 thread if the target didn't pass a thread-id.
14886 * infrun.c (do_target_wait): Move call to
14887 switch_to_inferior_no_thread to ....
14888 (do_target_wait_1): ... here.
14889
14890 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14891
14892 * debuginfod-support.c: Include defs.h first.
14893
14894 2020-02-28 Tom de Vries <tdevries@suse.de>
14895
14896 * symfile.c (set_initial_language): Use default language for lookup.
14897
14898 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14899
14900 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14901 reader variable, pass `this` to read_cutu_die_from_dwo.
14902
14903 2020-02-27 Aaron Merey <amerey@redhat.com>
14904
14905 * source.c (open_source_file): Check for nullptr when computing
14906 srcpath.
14907
14908 2020-02-27 Tom Tromey <tromey@adacore.com>
14909
14910 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14911 member.
14912 (dwarf2_add_field): Don't update nfields.
14913 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14914
14915 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14916
14917 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14918 abs.
14919
14920 2020-02-26 Tom Tromey <tom@tromey.com>
14921
14922 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14923 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14924 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14925 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14926 per_cu_data.
14927
14928 2020-02-26 Tom Tromey <tom@tromey.com>
14929
14930 * dwarf2/index-write.c (psym_index_map): Change type.
14931 (add_address_entry_worker, write_one_signatured_type)
14932 (recursively_count_psymbols, recursively_write_psymbols)
14933 (class debug_names, psyms_seen_size, write_gdbindex)
14934 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14935
14936 2020-02-26 Aaron Merey <amerey@redhat.com>
14937
14938 * Makefile.in: Handle optional debuginfod support.
14939 * NEWS: Update.
14940 * README: Add --with-debuginfod summary.
14941 * config.in: Regenerate.
14942 * configure: Regenerate.
14943 * configure.ac: Handle optional debuginfod support.
14944 * debuginfod-support.c: debuginfod helper functions.
14945 * debuginfod-support.h: Ditto.
14946 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14947 summary.
14948 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14949 when a dwz file cannot be found.
14950 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14951 debuginfo file cannot be found.
14952 * source.c (open_source_file): Query debuginfod servers when a
14953 source file cannot be found.
14954 * top.c (print_gdb_configuration): Include
14955 --{with,without}-debuginfod in the output.
14956
14957 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14958
14959 * thread.c (thr_try_catch_cmd): Print thread name.
14960
14961 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14962
14963 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14964 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14965 dwarf2_fetch_die_type_sect_off): Move to...
14966 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14967 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14968 dwarf2_fetch_die_type_sect_off): ... here.
14969 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14970 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14971 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14972
14973 2020-02-26 Tom de Vries <tdevries@suse.de>
14974
14975 PR gdb/25603
14976 * symfile.c (set_initial_language): Exit-early if
14977 language_mode == language_mode_manual.
14978
14979 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14980
14981 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14982 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14983 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14984
14985 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14986
14987 * gdbtypes.c (create_array_type_with_stride): Handle negative
14988 array strides.
14989 * valarith.c (value_subscripted_rvalue): Likewise.
14990
14991 2020-02-25 Luis Machado <luis.machado@linaro.org>
14992
14993 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14994
14995 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14996
14997 * loc.h (dwarf2_get_die_type): Move to...
14998 * read.h (dwarf2_get_die_type): ... here.
14999 * read.c (dwarf2_get_die_type): Move doc to header.
15000
15001 2020-02-25 Joel Brobecker <brobecker@adacore.com>
15002
15003 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15004 'gnulib/Makefile.in' to the list.
15005
15006 2020-02-24 Tom Tromey <tom@tromey.com>
15007
15008 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15009 Remove.
15010 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15011 XOBNEWVEC.
15012
15013 2020-02-24 Tom Tromey <tom@tromey.com>
15014
15015 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15016 New method.
15017 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15018 (dw2_do_instantiate_symtab, dw2_get_file_names)
15019 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15020
15021 2020-02-24 Tom Tromey <tom@tromey.com>
15022
15023 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15024 make_scoped_restore.
15025 (dwarf2_psymtab::read_symtab): Don't clear
15026 reading_partial_symbols.
15027
15028 2020-02-24 Tom de Vries <tdevries@suse.de>
15029
15030 PR gdb/25592
15031 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15032
15033 2020-02-24 Tom de Vries <tdevries@suse.de>
15034
15035 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15036 commands layout next/prev/regs.
15037
15038 2020-02-22 Tom Tromey <tom@tromey.com>
15039
15040 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15041 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15042
15043 2020-02-22 Tom Tromey <tom@tromey.com>
15044
15045 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15046
15047 2020-02-22 Tom Tromey <tom@tromey.com>
15048
15049 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15050 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15051 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15052 * tui/tui.c (_initialize_tui): Add usage text.
15053
15054 2020-02-22 Tom Tromey <tom@tromey.com>
15055
15056 * tui/tui-win.c (tui_set_focus_command)
15057 (tui_set_win_height_command): Use error_no_arg.
15058 (_initialize_tui_win): Update help text.
15059 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15060
15061 2020-02-22 Tom Tromey <tom@tromey.com>
15062
15063 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15064 * tui/tui-disasm.h (struct tui_disasm_window)
15065 <display_start_addr>: Declare.
15066 * tui/tui-source.h (struct tui_source_window)
15067 <display_start_addr>: Declare.
15068 * tui/tui-winsource.h (struct tui_source_window_base)
15069 <show_source_line, display_start_addr>: New methods.
15070 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15071 Rename and move to protected section.
15072 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15073 (tui_source_window_base::do_erase_source_content): Update.
15074 (tui_source_window_base::show_source_line): Now a method.
15075 (tui_source_window_base::show_source_content)
15076 (tui_source_window_base::tui_source_window_base)
15077 (tui_source_window_base::rerender)
15078 (tui_source_window_base::refill)
15079 (tui_source_window_base::do_scroll_horizontal)
15080 (tui_source_window_base::set_is_exec_point_at)
15081 (tui_source_window_base::update_breakpoint_info)
15082 (tui_source_window_base::update_exec_info): Update.
15083 * tui/tui-source.c (tui_source_window::set_contents)
15084 (tui_source_window::showing_source_p)
15085 (tui_source_window::do_scroll_vertical)
15086 (tui_source_window::location_matches_p)
15087 (tui_source_window::line_is_displayed): Update.
15088 (tui_source_window::display_start_addr): New method.
15089 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15090 (tui_disasm_window::do_scroll_vertical)
15091 (tui_disasm_window::location_matches_p): Update.
15092 (tui_disasm_window::display_start_addr): New method.
15093
15094 2020-02-22 Tom Tromey <tom@tromey.com>
15095
15096 * NEWS: Add entry for gdb.register_window_type.
15097 * tui/tui-layout.h (window_factory): New typedef.
15098 (tui_register_window): Declare.
15099 * tui/tui-layout.c (saved_tui_windows): New global.
15100 (tui_apply_current_layout): Use it.
15101 (tui_register_window): New function.
15102 * python/python.c (do_start_initialization): Call
15103 gdbpy_initialize_tui.
15104 (python_GdbMethods): Add "register_window_type" function.
15105 * python/python-internal.h (gdbpy_register_tui_window)
15106 (gdbpy_initialize_tui): Declare.
15107 * python/py-tui.c: New file.
15108 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15109
15110 2020-02-22 Tom Tromey <tom@tromey.com>
15111
15112 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15113
15114 2020-02-22 Tom Tromey <tom@tromey.com>
15115
15116 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15117 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15118 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15119 (tui_set_win_focus_to): Move from tui-win.c.
15120
15121 2020-02-22 Tom Tromey <tom@tromey.com>
15122
15123 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15124 functions.
15125 (known_window_types): New global.
15126 (tui_get_window_by_name): Reimplement.
15127 (initialize_known_windows): New function.
15128 (validate_window_name): Rewrite.
15129 (_initialize_tui_layout): Call initialize_known_windows.
15130
15131 2020-02-22 Tom Tromey <tom@tromey.com>
15132
15133 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15134 Remove constants.
15135 * tui/tui-winsource.h (struct tui_source_window_base)
15136 <tui_source_window_base>: Remove parameter.
15137 * tui/tui-winsource.c
15138 (tui_source_window_base::tui_source_window_base): Remove
15139 parameter.
15140 (tui_source_window_base::refill): Update.
15141 * tui/tui-stack.h (struct tui_locator_window)
15142 <tui_locator_window>: Update.
15143 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15144 Default the constructor.
15145 * tui/tui-regs.h (struct tui_data_item_window)
15146 <tui_data_item_window>: Default the constructor.
15147 (struct tui_data_window) <tui_data_window>: Likewise.
15148 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15149 Default the constructor.
15150 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15151 Default the constructor.
15152 <type>: Remove.
15153 (struct tui_win_info) <tui_win_info>: Default the constructor.
15154 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15155 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15156 Default the constructor.
15157
15158 2020-02-22 Tom Tromey <tom@tromey.com>
15159
15160 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15161 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15162 * tui/tui-win.c (tui_resize_all): Don't call
15163 tui_delete_invisible_windows.
15164 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15165 done.
15166 (tui_set_layout): Update.
15167 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15168 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15169 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15170
15171 2020-02-22 Tom Tromey <tom@tromey.com>
15172
15173 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15174 correctly.
15175
15176 2020-02-22 Tom Tromey <tom@tromey.com>
15177
15178 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15179
15180 2020-02-22 Tom Tromey <tom@tromey.com>
15181
15182 * tui/tui-winsource.h (struct tui_source_window_iterator)
15183 <inner_iterator>: New etytypedef.
15184 <tui_source_window_iterator>: Take "end" parameter.
15185 <tui_source_window_iterator>: Take iterator.
15186 <operator*, advance>: Update.
15187 <m_iter>: Change type.
15188 <m_end>: New field.
15189 (struct tui_source_windows) <begin, end>: Update.
15190 * tui/tui-layout.c (tui_windows): New global.
15191 (tui_apply_current_layout): Clear tui_windows.
15192 (tui_layout_window::apply): Update tui_windows.
15193 * tui/tui-data.h (tui_windows): Declare.
15194 (all_tui_windows): Now inline function.
15195 (class tui_window_iterator, struct all_tui_windows): Remove.
15196
15197 2020-02-22 Tom Tromey <tom@tromey.com>
15198
15199 PR tui/17850:
15200 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15201 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15202 "height" argument.
15203 (class tui_layout_window) <get_sizes>: Likewise.
15204 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15205 argument.
15206 <get_sizes>: Add "height" argument.
15207 <m_vertical>: New field.
15208 * tui/tui-layout.c (tui_layout_split::clone): Update.
15209 (tui_layout_split::get_sizes): Add "height" argument.
15210 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15211 (tui_new_layout_command): Parse "-horizontal".
15212 (_initialize_tui_layout): Update help string.
15213 (tui_layout_split::specification): Add "-horizontal" when needed.
15214 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15215 argument.
15216 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15217 New methods.
15218
15219 2020-02-22 Tom Tromey <tom@tromey.com>
15220
15221 * tui/tui-layout.h (enum tui_adjust_result): New.
15222 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15223 (class tui_layout_window) <adjust_size>: Return
15224 tui_adjust_result. Rewrite.
15225 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15226 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15227
15228 2020-02-22 Tom Tromey <tom@tromey.com>
15229
15230 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15231 parameter and return types.
15232 (class tui_layout_base) <specification>: Add "depth".
15233 (class tui_layout_window) <specification>: Add "depth".
15234 (class tui_layout_split) <specification>: Add "depth".
15235 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15236 and return types.
15237 (tui_new_layout_command): Parse sub-layouts.
15238 (_initialize_tui_layout): Update help string.
15239 (tui_layout_window::specification): Add "depth".
15240 (add_layout_command): Update.
15241
15242 2020-02-22 Tom Tromey <tom@tromey.com>
15243
15244 * NEWS: Add "tui new-layout" item.
15245 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15246 Add new-layout command to help text.
15247 (validate_window_name): New function.
15248 (tui_new_layout_command): New function.
15249 (_initialize_tui_layout): Register "new-layout".
15250 (tui_layout_window::specification): New method.
15251 (tui_layout_window::specification): New method.
15252 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15253 method.
15254 (class tui_layout_window) <specification>: New method.
15255 (class tui_layout_split) <specification>: New method.
15256
15257 2020-02-22 Tom Tromey <tom@tromey.com>
15258
15259 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15260 * tui/tui-win.c (window_name_completer): Update comment.
15261 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15262 Declare method.
15263 (class tui_layout_window) <replace_window>: Likewise.
15264 (class tui_layout_split) <replace_window>: Likewise.
15265 (tui_set_layout): Don't declare.
15266 (tui_set_initial_layout): Declare function.
15267 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15268 (asm_regs_layout): New globals.
15269 (tui_current_layout, show_layout): Remove.
15270 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15271 (find_layout, tui_apply_layout): New function.
15272 (layout_completer): Remove.
15273 (tui_next_layout): Reimplement.
15274 (tui_next_layout_command): New function.
15275 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15276 (tui_regs_layout): Reimplement.
15277 (tui_regs_layout_command): New function.
15278 (extract_display_start_addr): Rewrite.
15279 (next_layout, prev_layout): Remove.
15280 (tui_layout_window::replace_window): New method.
15281 (tui_layout_split::replace_window): New method.
15282 (destroy_layout): New function.
15283 (layout_list): New global.
15284 (add_layout_command): New function.
15285 (initialize_layouts): Update.
15286 (tui_layout_command): New function.
15287 (_initialize_tui_layout): Install "layout" commands.
15288 * tui/tui-data.h (enum tui_layout_type): Remove.
15289 (tui_current_layout): Don't declare.
15290
15291 2020-02-22 Tom Tromey <tom@tromey.com>
15292
15293 * tui/tui-regs.c (tui_reg_layout): Remove.
15294 (tui_reg_command): Use tui_regs_layout.
15295 * tui/tui-layout.h (tui_reg_command): Declare.
15296 * tui/tui-layout.c (tui_reg_command): New function.
15297
15298 2020-02-22 Tom Tromey <tom@tromey.com>
15299
15300 * tui/tui.c (tui_rl_delete_other_windows): Call
15301 tui_remove_some_windows.
15302 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15303 Declare method.
15304 (class tui_layout_window) <remove_windows>: New method.
15305 (class tui_layout_split) <remove_windows>: Declare.
15306 (tui_remove_some_windows): Declare.
15307 * tui/tui-layout.c (tui_remove_some_windows): New function.
15308 (tui_layout_split::remove_windows): New method.
15309
15310 2020-02-22 Tom Tromey <tom@tromey.com>
15311
15312 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15313 * tui/tui-layout.h (tui_next_layout): Declare.
15314 * tui/tui-layout.c (tui_next_layout): New function.
15315
15316 2020-02-22 Tom Tromey <tom@tromey.com>
15317
15318 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15319 correct coordinates.
15320
15321 2020-02-22 Tom Tromey <tom@tromey.com>
15322
15323 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15324 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15325 DATA_WIN case.
15326
15327 2020-02-22 Tom Tromey <tom@tromey.com>
15328
15329 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15330 TUI_DISASM_WIN, not tui_win_list.
15331
15332 2020-02-22 Tom Tromey <tom@tromey.com>
15333
15334 * valprint.c (generic_val_print_enum_1)
15335 (val_print_type_code_flags): Style member names.
15336 * rust-lang.c (val_print_struct, rust_print_enum)
15337 (rust_print_struct_def, rust_internal_print_type): Style member
15338 names.
15339 * p-valprint.c (pascal_object_print_value_fields): Style member
15340 names. Only call fprintf_symbol_filtered for static members.
15341 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15342 * f-valprint.c (f_val_print): Style member names.
15343 * f-typeprint.c (f_type_print_base): Style member names.
15344 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15345 call fprintf_symbol_filtered for static members.
15346 (cp_print_class_member): Style member names.
15347 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15348 member names.
15349 * ada-valprint.c (ada_print_scalar): Style enum names.
15350 (ada_val_print_enum): Likewise.
15351 * ada-typeprint.c (print_enum_type): Style enum names.
15352
15353 2020-02-21 Tom Tromey <tom@tromey.com>
15354
15355 * psympriv.h (struct partial_symtab): Update comment.
15356
15357 2020-02-21 Tom Tromey <tromey@adacore.com>
15358
15359 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15360 type is CORE_ADDR.
15361
15362 2020-02-21 Tom de Vries <tdevries@suse.de>
15363
15364 PR gdb/25534
15365 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15366 if dependencies[i]->user != NULL.
15367
15368 2020-02-21 Ali Tamur <tamur@google.com>
15369
15370 * dwarf2/read.c (dwarf2_name): Add null check.
15371
15372 2020-02-20 Tom Tromey <tom@tromey.com>
15373
15374 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15375 ">=", in binary search.
15376 (dwarf2_find_containing_comp_unit): New overload.
15377 (run_test): New self-test.
15378 (_initialize_dwarf2_read): Register new test.
15379
15380 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15381
15382 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15383 * riscv-tdep.h: Likewise.
15384 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15385 rv32-only CSR.
15386 * features/riscv/64bit-csr.xml: Regenerated.
15387
15388 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15389 Tom Tromey <tom@tromey.com>
15390
15391 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15392 of 'fputc_unfiltered'.
15393 (putchar_unfiltered): Call 'fputc_unfiltered'.
15394 (fputc_unfiltered): Call 'fputs_unfiltered'.
15395
15396 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15397
15398 * config.in: Regenerate.
15399 * configure: Regenerate.
15400 * configure.ac: Add --with-python-libdir option.
15401 * main.c: Use WITH_PYTHON_LIBDIR.
15402
15403 2020-02-19 Tom Tromey <tom@tromey.com>
15404
15405 * symtab.c (general_symbol_info::compute_and_set_names): Use
15406 obstack_strndup. Simplify call to symbol_set_demangled_name.
15407
15408 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15409
15410 * dwarf2/read.c (allocate_signatured_type_table,
15411 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15412 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15413 Remove objfile parameter, update all callers.
15414
15415 2020-02-19 Doug Evans <dje@google.com>
15416
15417 PR rust/25535
15418 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15419 rust_enum_variant calculation.
15420
15421 2020-02-19 Tom Tromey <tromey@adacore.com>
15422
15423 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15424
15425 2020-02-19 Tom Tromey <tromey@adacore.com>
15426
15427 * ada-lang.c (cache_symbol): Use obstack_strdup.
15428
15429 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15430
15431 * configure: Regenerate.
15432
15433 2020-02-19 Tom Tromey <tromey@adacore.com>
15434
15435 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15436 NULL check.
15437
15438 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15439
15440 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15441
15442 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15443
15444 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15445 if GDBSERVER is not defined.
15446 (riscv_tdesc_cache): Likewise, also store const target_desc.
15447 (STATIC_IN_GDB): Define.
15448 (riscv_create_target_description): Update declaration with
15449 STATIC_IN_GDB.
15450 (riscv_lookup_target_description): New function, only define if
15451 GDBSERVER is not defined.
15452 * arch/riscv.h (riscv_create_target_description): Declare only
15453 when GDBSERVER is defined.
15454 (riscv_lookup_target_description): New declaration when GDBSERVER
15455 is not defined.
15456 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15457 (riscv_linux_read_features): ...this, and return
15458 riscv_gdbarch_features instead of target_desc.
15459 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15460 (riscv_linux_read_description): Rename to...
15461 (riscv_linux_read_features): ...this.
15462 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15463 Update to use riscv_gdbarch_features and
15464 riscv_lookup_target_description.
15465 * riscv-tdep.c (riscv_find_default_target_description): Use
15466 riscv_lookup_target_description instead of
15467 riscv_create_target_description.
15468
15469 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15470
15471 * valprint.c (generic_val_print_enum_1): When printing a flag
15472 enum with value 0 and there is no enumerator with value 0, print
15473 just "0" instead of "(unknown: 0x0)".
15474
15475 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15476
15477 * valprint.c (generic_val_print_enum_1): Print unknown part of
15478 flag enum in hex.
15479
15480 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15481
15482 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15483 flag enums to contain duplicate enumerators.
15484 * valprint.c (generic_val_print_enum_1): Update comment.
15485
15486 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15487
15488 * dwarf2/read.c: Include "count-one-bits.h".
15489 (update_enumeration_type_from_children): If an enumerator has
15490 multiple bits set, don't treat the enumeration as a "flag enum".
15491 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15492 of flag enums have 0 or 1 bit set.
15493
15494 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15495
15496 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15497 conversion.
15498 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15499 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15500 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15501 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15502 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15503
15504 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15505
15506 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15507
15508 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15509
15510 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15511 displaced_step_closure_up.
15512 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15513 (struct displaced_step_closure_up):
15514 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15515 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15516 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15517 Likewise.
15518 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15519 * gdbarch.c, gdbarch.h: Re-generate.
15520 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15521 displaced_step_closure_up.
15522 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15523 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15524 * infrun.h (displaced_step_closure_up): New type alias.
15525 (struct displaced_step_inferior_state) <step_closure>: Change
15526 type to displaced_step_closure_up.
15527 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15528 displaced_step_closure_up.
15529 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15530
15531 2020-02-14 Tom Tromey <tom@tromey.com>
15532
15533 * minidebug.c (gnu_debug_key): New global.
15534 (find_separate_debug_file_in_section): Use it.
15535
15536 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15537
15538 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15539 std::unique_ptr.
15540 * gdbarch.c: Re-generate.
15541 * gdbarch.h: Re-generate.
15542 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15543 change.
15544 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15545 type to std::unique_ptr.
15546 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15547 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15548 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15549 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15550 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15551 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15552 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15553 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15554 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15555
15556 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15557
15558 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15559 std::unique_ptr.
15560 (displaced_step_clear): Rename to...
15561 (displaced_step_reset): ... this. Just call displaced->reset ().
15562 (displaced_step_clear_cleanup): Rename to...
15563 (displaced_step_reset_cleanup): ... this.
15564 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15565 (displaced_step_fixup): Likewise.
15566 (resume_1): Likewise.
15567 (handle_inferior_event): Restore child's memory before calling
15568 displaced_step_fixup on the parent.
15569 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15570 to std::unique_ptr.
15571 <step_closure>: Change type to std::unique_ptr.
15572
15573 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15574
15575 * arm-tdep.c: Include count-one-bits.h.
15576 (cleanup_block_store_pc): Use count_one_bits.
15577 (cleanup_block_load_pc): Use count_one_bits.
15578 (arm_copy_block_xfer): Use count_one_bits.
15579 (thumb2_copy_block_xfer): Use count_one_bits.
15580 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15581 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15582 (thumb_get_next_pcs_raw): Use count_one_bits.
15583 (arm_get_next_pcs_raw): Use count_one_bits_l.
15584 * arch/arm.c (bitcount): Remove.
15585 * arch/arm.h (bitcount): Remove.
15586
15587 2020-02-14 Tom Tromey <tromey@adacore.com>
15588
15589 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15590 Update.
15591 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15592 * dwarf2/loc.c (call_site_find_chain_1): Return
15593 unique_xmalloc_ptr.
15594 (call_site_find_chain): Likewise.
15595
15596 2020-02-14 Richard Biener <rguenther@suse.de>
15597
15598 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15599 on expression with division operators.
15600
15601 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15602
15603 * MAINTAINERS (Write After Approval): Adding myself.
15604
15605 2020-02-12 Tom Tromey <tom@tromey.com>
15606
15607 * event-loop.c (event_data, gdb_event, event_handler_func):
15608 Remove.
15609
15610 2020-02-12 Tom Tromey <tom@tromey.com>
15611
15612 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15613 (dwarf2_frame_objfile_data): Add comment.
15614 (find_comp_unit, set_comp_unit): New functions.
15615 (dwarf2_frame_find_fde): Use find_comp_unit.
15616 (dwarf2_build_frame_info): Use set_comp_unit.
15617
15618 2020-02-12 Tom Tromey <tom@tromey.com>
15619
15620 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15621 (comp_unit): Don't initialize objfile.
15622 (execute_cfa_program): Add text_offset parameter.
15623 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15624 (dwarf2_frame_cache): Update.
15625 (dwarf2_build_frame_info): Don't set "objfile" member.
15626
15627 2020-02-12 Tom Tromey <tom@tromey.com>
15628
15629 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15630 (decode_frame_entry): Likewise.
15631 (dwarf2_build_frame_info): Update.
15632
15633 2020-02-12 Tom Tromey <tom@tromey.com>
15634
15635 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15636 (decode_frame_entry_1): Use the comp_unit obstack.
15637
15638 2020-02-12 Tom Tromey <tom@tromey.com>
15639
15640 * dwarf2/frame.c (struct comp_unit): Add initializers and
15641 constructor.
15642 (dwarf2_frame_objfile_data): Store a comp_unit.
15643 (dwarf2_frame_find_fde): Update.
15644 (dwarf2_build_frame_info): Use "new".
15645
15646 2020-02-12 Tom Tromey <tom@tromey.com>
15647
15648 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15649 (dwarf2_fde_table): Typedef for std::vector.
15650 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15651 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15652 (decode_frame_entry): Update.
15653 (dwarf2_build_frame_info): Use "new".
15654
15655 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15656
15657 * arm-tdep.c (arm_gdbarch_init): Update.
15658 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15659 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15660 have_neon, is_m>: Change to bool.
15661
15662 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15663
15664 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15665
15666 2020-02-12 Tom Tromey <tom@tromey.com>
15667
15668 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15669
15670 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15671
15672 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15673 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15674
15675 2020-02-11 Tom Tromey <tom@tromey.com>
15676
15677 * psymtab.h: Update comment.
15678
15679 2020-02-11 Tom Tromey <tom@tromey.com>
15680
15681 * gdb_obstack.h (struct auto_obstack): Use
15682 DISABLE_COPY_AND_ASSIGN.
15683
15684 2020-02-11 Tom Tromey <tom@tromey.com>
15685
15686 * dwarf2/frame.h (struct objfile): Don't forward declare.
15687
15688 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15689
15690 * cris-tdep.c (cris_supply_gregset): Change signature to match
15691 what struct regset expects.
15692 (cris_regset): New struct.
15693 (fetch_core_registers): Remove.
15694 (cris_iterate_over_regset_sections): New function.
15695 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15696 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15697
15698 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15699
15700 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15701 registers.
15702
15703 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15704
15705 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15706
15707 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15708
15709 * configure: Re-generate.
15710
15711 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15712
15713 * configure: Re-generate.
15714
15715 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15716
15717 * acinclude: Update warning.m4 path.
15718 * warning.m4: Move to gdbsupport.
15719
15720 2020-02-11 Tom Tromey <tromey@adacore.com>
15721
15722 * remote.c (remote_console_output): Update.
15723 * printcmd.c (printf_command): Update.
15724 * event-loop.c (gdb_wait_for_event): Update.
15725 * linux-nat.c (sigchld_handler): Update.
15726 * remote-sim.c (gdb_os_write_stdout): Update.
15727 (gdb_os_flush_stdout): Update.
15728 (gdb_os_flush_stderr): Update.
15729 (gdb_os_write_stderr): Update.
15730 * exceptions.c (print_exception): Update.
15731 * remote-fileio.c (remote_fileio_func_read): Update.
15732 (remote_fileio_func_write): Update.
15733 * tui/tui.c (tui_enable): Update.
15734 * tui/tui-interp.c (tui_interp::init): Update.
15735 * utils.c (init_page_info): Update.
15736 (putchar_unfiltered, fputc_unfiltered): Update.
15737 (gdb_flush): Update.
15738 (emit_style_escape): Update.
15739 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15740 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15741 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15742 (stderr_file::write): Update.
15743 (stderr_file::puts): Update.
15744 * ui-file.h (ui_file_isatty, ui_file_write)
15745 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15746 (ui_file_puts): Don't declare.
15747
15748 2020-02-10 Tom de Vries <tdevries@suse.de>
15749
15750 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15751 sentinel to char *.
15752
15753 2020-02-09 Tom de Vries <tdevries@suse.de>
15754
15755 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15756 filename if it matches "<artificial>".
15757
15758 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15759
15760 * windows-tdep.c (struct enum_value_name): New struct.
15761 (create_enum): New function.
15762 (windows_get_siginfo_type): Create and use enum types.
15763
15764 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15765
15766 * NEWS: Mention $_siginfo support for Windows.
15767 * windows-nat.c (handle_exception): Set siginfo_er.
15768 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15769 (windows_xfer_siginfo): New function.
15770 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15771 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15772 (init_windows_gdbarch_data): New function.
15773 (get_windows_gdbarch_data): New function.
15774 (windows_get_siginfo_type): New function.
15775 (windows_init_abi): Register windows_get_siginfo_type.
15776 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15777
15778 2020-02-08 Tom Tromey <tom@tromey.com>
15779
15780 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15781 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15782 <keep>: Declare method.
15783 <m_keep>: Remove member.
15784 <~cutu_reader>: Remove.
15785 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15786 (cutu_reader::cutu_reader): Update.
15787 (cutu_reader::keep): Rename from ~cutu_reader.
15788 (process_psymtab_comp_unit, build_type_psymtabs_1)
15789 (process_skeletonless_type_unit, load_partial_comp_unit)
15790 (load_full_comp_unit, dwarf2_read_addr_index)
15791 (read_signatured_type): Update.
15792
15793 2020-02-08 Tom Tromey <tom@tromey.com>
15794
15795 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15796 "want_partial_unit" parameter.
15797 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15798 Inline check for DW_TAG_partial_unit.
15799 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15800
15801 2020-02-08 Tom Tromey <tom@tromey.com>
15802
15803 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15804 read.c.
15805 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15806 read.c.
15807
15808 2020-02-08 Tom Tromey <tom@tromey.com>
15809
15810 * dwarf2/read.c (read_address): Move to comp-unit.c.
15811 (dwarf2_rnglists_process, dwarf2_ranges_process)
15812 (read_attribute_value, dwarf_decode_lines_1)
15813 (var_decode_location, decode_locdesc): Update.
15814 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15815 read.c. Remove "cu" parameter.
15816 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15817 method.
15818
15819 2020-02-08 Tom Tromey <tom@tromey.com>
15820
15821 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15822 (read_indirect_line_string): Update.
15823 * dwarf2/comp-unit.c (read_offset): Remove.
15824 (read_comp_unit_head): Update.
15825 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15826 method.
15827 (read_offset): Don't declare.
15828
15829 2020-02-08 Tom Tromey <tom@tromey.com>
15830
15831 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15832 * dwarf2/read.c (struct comp_unit_head): Move to
15833 dwarf2/comp-unit.h.
15834 (enum class rcuh_kind): Move to comp-unit.h.
15835 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15836 (read_comp_unit_head, error_check_comp_unit_head)
15837 (read_and_check_comp_unit_head): Move to comp-unit.c.
15838 (read_offset, dwarf_unit_type_name): Likewise.
15839 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15840 (cutu_reader::cutu_reader, read_call_site_scope)
15841 (find_partial_die, follow_die_offset): Update.
15842 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15843
15844 2020-02-08 Tom Tromey <tom@tromey.com>
15845
15846 * dwarf2/read.c (read_offset_1): Move to leb.c.
15847 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15848 (dwarf_decode_macro_bytes): Update.
15849 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15850 * dwarf2/leb.h (read_offset): Declare.
15851
15852 2020-02-08 Tom Tromey <tom@tromey.com>
15853
15854 * dwarf2/read.c (dwarf2_section_size): Remove.
15855 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15856 Update.
15857 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15858
15859 2020-02-08 Tom Tromey <tom@tromey.com>
15860
15861 * dwarf2/read.c (read_initial_length): Move to leb.c.
15862 * dwarf2/leb.h (read_initial_length): Declare.
15863 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15864 handle_nonstd parameter.
15865 * dwarf2/frame.c (read_initial_length): Remove.
15866 (decode_frame_entry_1): Update.
15867
15868 2020-02-08 Tom Tromey <tom@tromey.com>
15869
15870 * dwarf2/loc.c (dwarf2_find_location_expression)
15871 (dwarf_evaluate_loc_desc::get_tls_address)
15872 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15873 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15874 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15875 (dwarf2_compile_property_to_c)
15876 (dwarf2_loc_desc_get_symbol_read_needs)
15877 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15878 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15879 (loclist_describe_location, loclist_tracepoint_var_ref)
15880 (loclist_generate_c_location): Update.
15881 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15882 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15883 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15884 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15885 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15886 (dwarf2_per_cu_data::addr_size)
15887 (dwarf2_per_cu_data::ref_addr_size)
15888 (dwarf2_per_cu_data::text_offset)
15889 (dwarf2_per_cu_data::addr_type): Now methods.
15890 (per_cu_header_read_in): Make per_cu "const".
15891 (dwarf2_version): Remove.
15892 (dwarf2_per_cu_data::int_type): Now a method.
15893 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15894 (set_die_type, read_array_type, read_subrange_index_type)
15895 (read_tag_string_type, read_subrange_type): Update.
15896 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15897 offset_size, ref_addr_size, text_offset, addr_type, version,
15898 objfile, int_type, addr_sized_int_type>: Declare methods.
15899
15900 2020-02-08 Tom Tromey <tom@tromey.com>
15901
15902 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15903 Move earlier.
15904
15905 2020-02-08 Tom Tromey <tom@tromey.com>
15906
15907 * dwarf2/read.h (dwarf_line_debug): Declare.
15908 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15909 * dwarf2/read.c: Move line_header code to new files.
15910 (dwarf_line_debug): No longer static.
15911 * dwarf2/line-header.c: New file.
15912 * dwarf2/line-header.h: New file.
15913
15914 2020-02-08 Tom Tromey <tom@tromey.com>
15915
15916 * dwarf2/read.c (struct line_header) <file_full_name,
15917 file_file_name>: Return unique_xmalloc_ptr.
15918 (line_header::file_file_name): Update.
15919 (line_header::file_full_name): Update.
15920 (dw2_get_file_names_reader): Update.
15921 (macro_start_file): Update.
15922
15923 2020-02-08 Tom Tromey <tom@tromey.com>
15924
15925 * dwarf2/read.c (struct line_header) <file_full_name,
15926 file_file_name>: Declare methods.
15927 (dw2_get_file_names_reader): Update.
15928 (file_file_name): Now a method.
15929 (file_full_name): Likewise.
15930 (macro_start_file): Update.
15931
15932 2020-02-08 Tom Tromey <tom@tromey.com>
15933
15934 * dwarf2/read.c (dwarf_always_disassemble)
15935 (show_dwarf_always_disassemble): Move to loc.c.
15936 (_initialize_dwarf2_read): Move "always-disassemble" registration
15937 to loc.c.
15938 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15939 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15940 static.
15941 (show_dwarf_always_disassemble): Move from read.c.
15942 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15943
15944 2020-02-08 Tom Tromey <tom@tromey.com>
15945
15946 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15947 (create_quick_file_names_table): Return htab_up.
15948 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15949 Update.
15950 * dwarf2/read.h (struct dwarf2_per_objfile)
15951 <quick_file_names_table>: Now htab_up.
15952
15953 2020-02-08 Tom Tromey <tom@tromey.com>
15954
15955 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15956
15957 2020-02-08 Tom Tromey <tom@tromey.com>
15958
15959 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15960 Rewrite.
15961 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15962 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15963 (abbrev_table::abbrev_table): No longer inline.
15964 (ABBREV_HASH_SIZE): Remove.
15965 (abbrev_table::m_abbrevs): Now an htab_up.
15966
15967 2020-02-08 Tom Tromey <tom@tromey.com>
15968
15969 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15970 (cutu_reader): Update.
15971 (build_type_psymtabs_1): Update.
15972 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15973 (abbrev_table::alloc_abbrev): Update.
15974 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15975 (abbrev_table::read): New static method, renamed from
15976 abbrev_table_read_table.
15977 (abbrev_table::alloc_abbrev)
15978 (abbrev_table::add_abbrev): Now private.
15979 (abbrev_table::abbrev_table): Now private.
15980 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15981
15982 2020-02-08 Tom Tromey <tom@tromey.com>
15983
15984 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15985 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15986 htab_up.
15987
15988 2020-02-08 Tom Tromey <tom@tromey.com>
15989
15990 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15991 htab_up.
15992 (lookup_dwo_unit_in_dwp): Update.
15993 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15994 on obstack.
15995
15996 2020-02-08 Tom Tromey <tom@tromey.com>
15997
15998 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15999 obstack.
16000
16001 2020-02-08 Tom Tromey <tom@tromey.com>
16002
16003 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16004 line_header_hash.
16005 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16006 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16007 Change type to htab_up.
16008
16009 2020-02-08 Tom Tromey <tom@tromey.com>
16010
16011 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16012 htab_up. Don't allocate on obstack.
16013 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16014 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16015 Change type to htab_up.
16016
16017 2020-02-08 Tom Tromey <tom@tromey.com>
16018
16019 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16020 Change type to htab_up.
16021 * dwarf2/read.c (create_signatured_type_table_from_index)
16022 (create_signatured_type_table_from_debug_names)
16023 (create_all_type_units, add_type_unit)
16024 (lookup_dwo_signatured_type, lookup_signatured_type)
16025 (process_skeletonless_type_unit): Update.
16026 (create_debug_type_hash_table, create_debug_types_hash_table):
16027 Change type of types_htab.
16028 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16029 htab_up. Don't allocate on obstack.
16030 (create_cus_hash_table): Change type of cus_htab parameter.
16031 (struct dwo_file) <cus, tus>: Now htab_up.
16032 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16033 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16034 (queue_and_load_all_dwo_tus): Update.
16035 * dwarf2/index-write.c (write_gdbindex): Update.
16036 (write_debug_names): Update.
16037
16038 2020-02-08 Tom Tromey <tom@tromey.com>
16039
16040 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16041 dwarf2/read.c. Remove "next" member. Add constructor ntad
16042 destructor.
16043 (struct dwarf2_per_objfile) <queue>: New member.
16044 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16045 dwarf2/read.h.
16046 (dwarf2_queue, dwarf2_queue_tail): Remove.
16047 (class dwarf2_queue_guard): Add parameter to constructor. Use
16048 DISABLE_COPY_AND_ASSIGN.
16049 <m_per_objfile>: New member.
16050 <~dwarf2_queue_guard>: Rewrite.
16051 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16052 Update.
16053 (~dwarf2_queue_item): New.
16054
16055 2020-02-08 Tom Tromey <tom@tromey.com>
16056
16057 * dwarf2/read.c (struct die_info) <has_children>: New member.
16058 (dw2_get_file_names_reader): Remove has_children.
16059 (dw2_get_file_names): Update.
16060 (read_cutu_die_from_dwo): Remove has_children.
16061 (cutu_reader::init_tu_and_read_dwo_dies)
16062 (cutu_reader::cutu_reader): Update.
16063 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16064 Remove has_children.
16065 (build_type_psymtabs_1, process_skeletonless_type_unit)
16066 (load_partial_comp_unit, load_full_comp_unit): Update.
16067 (create_dwo_cu_reader): Remove has_children.
16068 (create_cus_hash_table, read_die_and_children): Update.
16069 (read_full_die_1,read_full_die): Remove has_children.
16070 (read_signatured_type): Update.
16071 (class cutu_reader) <has_children>: Remove.
16072
16073 2020-02-08 Tom Tromey <tom@tromey.com>
16074
16075 * dwarf2/expr.c: Rename from dwarf2expr.c.
16076 * dwarf2/expr.h: Rename from dwarf2expr.h.
16077 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16078 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16079 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16080 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16081 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16082 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16083 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16084 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16085 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16086 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16087 * dwarf2/loc.c: Rename from dwarf2loc.c.
16088 * dwarf2/loc.h: Rename from dwarf2loc.h.
16089 * dwarf2/read.c: Rename from dwarf2read.c.
16090 * dwarf2/read.h: Rename from dwarf2read.h.
16091 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16092 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16093 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16094 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16095 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16096 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16097 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16098 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16099 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16100 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16101 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16102 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16103 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16104 Update.
16105 * Makefile.in (COMMON_SFILES): Update.
16106 (HFILES_NO_SRCDIR): Update.
16107
16108 2020-02-08 Tom Tromey <tom@tromey.com>
16109
16110 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16111 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16112
16113 2020-02-08 Tom Tromey <tom@tromey.com>
16114
16115 * dwarf2read.h (struct die_info): Don't declare.
16116
16117 2020-02-08 Tom Tromey <tom@tromey.com>
16118
16119 * dwarf2read.h (die_info_ptr): Remove typedef.
16120
16121 2020-02-08 Tom Tromey <tom@tromey.com>
16122
16123 * dwarf2read.c (read_call_site_scope)
16124 (handle_data_member_location, dwarf2_add_member_fn)
16125 (mark_common_block_symbol_computed, read_common_block)
16126 (attr_to_dynamic_prop, partial_die_info::read)
16127 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16128 (dwarf2_symbol_mark_computed, set_die_type): Update.
16129 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16130 method.
16131 (attr_form_is_block): Don't declare.
16132 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16133
16134 2020-02-08 Tom Tromey <tom@tromey.com>
16135
16136 * dwarf2read.c (dwarf2_find_base_address, )
16137 (read_call_site_scope, rust_containing_type)
16138 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16139 (handle_data_member_location, dwarf2_add_member_fn)
16140 (get_alignment, read_structure_type, process_structure_scope)
16141 (mark_common_block_symbol_computed, read_common_block)
16142 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16143 (partial_die_info::read, read_attribute_value, new_symbol)
16144 (lookup_die_type, dwarf2_get_ref_die_offset)
16145 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16146 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16147 (dwarf2_symbol_mark_computed): Update.
16148 * dwarf2/attribute.h (struct attribute) <value_as_address,
16149 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16150 methods.
16151 (value_as_address, attr_form_is_section_offset)
16152 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16153 * dwarf2/attribute.c (attribute::value_as_address)
16154 (attribute::form_is_section_offset, attribute::form_is_constant)
16155 (attribute::form_is_ref): Now methods.
16156
16157 2020-02-08 Tom Tromey <tom@tromey.com>
16158
16159 * dwarf2read.c (struct attribute, DW_STRING)
16160 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16161 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16162 (attr_form_is_block, attr_form_is_section_offset)
16163 (attr_form_is_constant, attr_form_is_ref): Move.
16164 * dwarf2/attribute.h: New file.
16165 * dwarf2/attribute.c: New file, from dwarf2read.c.
16166 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16167
16168 2020-02-08 Tom Tromey <tom@tromey.com>
16169
16170 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16171 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16172 Move.
16173 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16174 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16175 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16176 abbrev.c.
16177 * dwarf2/abbrev.h: New file.
16178 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16179 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16180
16181 2020-02-08 Tom Tromey <tom@tromey.com>
16182
16183 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16184 (dwarf2_section_size, dwarf2_get_section_info)
16185 (create_signatured_type_table_from_debug_names)
16186 (create_addrmap_from_aranges, read_debug_names_from_section)
16187 (get_gdb_index_contents_from_section, read_comp_unit_head)
16188 (error_check_comp_unit_head, read_abbrev_offset)
16189 (create_debug_type_hash_table, init_cu_die_reader)
16190 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16191 (read_comp_units_from_section, create_cus_hash_table)
16192 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16193 (create_dwp_v2_section, dwarf2_rnglists_process)
16194 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16195 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16196 (read_indirect_string_from_dwz, read_addr_index_1)
16197 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16198 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16199 (fill_in_loclist_baton): Update.
16200 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16201 get_containing_section, get_bfd_owner, get_bfd_section,
16202 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16203 (dwarf2_read_section, get_section_name, get_section_file_name)
16204 (get_containing_section, get_section_bfd_owner)
16205 (get_section_bfd_section, get_section_name, get_section_file_name)
16206 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16207 declare.
16208 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16209 (dwarf2_section_info::get_bfd_owner)
16210 (dwarf2_section_info::get_bfd_section)
16211 (dwarf2_section_info::get_name)
16212 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16213 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16214 (dwarf2_section_info::read): Now methods.
16215 * dwarf-index-write.c (class debug_names): Update.
16216
16217 2020-02-08 Tom Tromey <tom@tromey.com>
16218
16219 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16220 Move to dwarf2/section.h.
16221 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16222 (get_section_bfd_section, get_section_name)
16223 (get_section_file_name, get_section_id, get_section_flags)
16224 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16225 dwarf2/section.c.
16226 * dwarf2/section.h: New file.
16227 * dwarf2/section.c: New file, from dwarf2read.c.
16228 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16229
16230 2020-02-08 Tom Tromey <tom@tromey.com>
16231
16232 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16233 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16234 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16235 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16236 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16237 * dwarf2/leb.h: New file, from dwarf2read.c.
16238 * dwarf2/leb.c: New file, from dwarf2read.c.
16239 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16240 Remove.
16241 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16242 (COMMON_SFILES): Add dwarf2/leb.c.
16243
16244 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16245
16246 GDB 9.1 released.
16247
16248 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16249
16250 PR gdb/25190:
16251 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16252 * gdb/remote.c (remote_console_output): Update.
16253 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16254 (ui_file_puts): ...this.
16255 * gdb/ui-file.h (ui_file_puts): Add declaration.
16256 * gdb/utils.c (emit_style_escape): Update.
16257 (flush_wrap_buffer): Update.
16258 (fputs_maybe_filtered): Update.
16259 (fputs_unfiltered): Add function.
16260
16261 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16262
16263 * gdb/event-loop.c (gdb_wait_for_event): Update.
16264 * gdb/printcmd.c (printf_command): Update.
16265 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16266 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16267 (gdb_os_flush_stderr): Update.
16268 * gdb/remote.c (remote_console_output): Update.
16269 * gdb/ui-file.c (gdb_flush): Rename to...
16270 (ui_file_flush): ...this.
16271 (stderr_file::write): Update.
16272 (stderr_file::puts): Update.
16273 * gdb/ui-file.h (gdb_flush): Rename to...
16274 (ui_file_flush): ...this.
16275 * gdb/utils.c (gdb_flush): Add function.
16276 * gdb/utils.h (gdb_flush): Add declaration.
16277
16278 2020-02-07 Tom Tromey <tromey@adacore.com>
16279
16280 PR breakpoints/24915:
16281 * source.c (find_and_open_source): Do not check basenames_may_differ.
16282
16283 2020-02-07 Tom Tromey <tom@tromey.com>
16284
16285 * README: Update gdbserver documentation.
16286 * gdbserver: Move to top level.
16287 * configure.tgt (build_gdbserver): Remove.
16288 * configure.ac: Remove --enable-gdbserver.
16289 * configure: Rebuild.
16290 * Makefile.in (distclean): Don't mention gdbserver.
16291
16292 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16293
16294 * source-cache.c (source_cache::ensure): Surround
16295 get_plain_source_lines with a try/catch.
16296 (source_cache::get_line_charpos): Get rid of try/catch
16297 and only check for the return value of "ensure".
16298 * tui/tui-source.c (tui_source_window::set_contents):
16299 Simplify "nlines" calculation.
16300
16301 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16302
16303 * MAINTAINERS (Write After Approval): Add myself.
16304
16305 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16306
16307 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16308 function call.
16309
16310 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16311
16312 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16313
16314 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16315
16316 * nat/riscv-linux-tdesc.h: New file.
16317 * nat/riscv-linux-tdesc.c: New file, taking code from...
16318 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16319 ... here.
16320 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16321 NATDEPFILES.
16322
16323 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16324
16325 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16326 we don't set the fake simulator ptid to the null_ptid.
16327
16328 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16329
16330 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16331 * gdbthread.h (class thread_info) <resumed>: Likewise.
16332 * infrun.c (resume_1): Likewise.
16333 (proceed): Likewise.
16334 (infrun_thread_stop_requested): Likewise.
16335 (stop_all_threads): Likewise.
16336 (handle_inferior_event): Likewise.
16337 (restart_threads): Likewise.
16338 (finish_step_over): Likewise.
16339 (keep_going_stepped_thread): Likewise.
16340 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16341 (linux_handle_extended_wait): Likewise.
16342 * record-btrace.c (get_thread_current_frame_id): Likewise.
16343 * record-full.c (record_full_wait_1): Likewise.
16344 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16345 * target.c (target_resume): Likewise.
16346 * thread.c (set_running_thread): Likewise.
16347
16348 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16349
16350 * f-valprint.c (f77_print_array_1): Changed datatype of index
16351 variable to LONGEST from int to enable it to contain bound
16352 values correctly.
16353
16354 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16355
16356 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16357 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16358 offsets according to FLEN determined.
16359 (riscv_linux_nat_target::read_description): Determine FLEN
16360 dynamically.
16361 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16362 according to FLEN determined.
16363 (riscv_linux_nat_target::store_registers): Likewise.
16364
16365 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16366
16367 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16368 when reg->group is empty and reggroup is not.
16369
16370 2020-01-31 Tom Tromey <tromey@adacore.com>
16371
16372 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16373 Call beneath target's mourn_inferior after unpushing.
16374
16375 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16376
16377 PR tui/9765
16378 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16379 have enough lines to fill the screen, still return the lowest
16380 address we found.
16381
16382 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16383
16384 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16385 '-', '<', and '>' commands.
16386
16387 2020-01-29 Pedro Alves <palves@redhat.com>
16388 Sergio Durigan Junior <sergiodj@redhat.com>
16389
16390 * infcmd.c (construct_inferior_arguments): Assert that
16391 'argc' is greater than 0.
16392
16393 2020-01-29 Luis Machado <luis.machado@linaro.org>
16394
16395 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16396 (BRK_INSN_MASK): Define to 0xd4200000.
16397 (aarch64_program_breakpoint_here_p): New function.
16398 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16399 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16400 breakpoint.c.
16401 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16402 breakpoint.h
16403 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16404 call gdbarch_program_breakpoint_here_p.
16405 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16406 default_program_breakpoint_here_p, changed return type to bool and
16407 simplified.
16408 * breakpoint.h (program_breakpoint_here): Moved prototype to
16409 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16410 return type to bool.
16411 * gdbarch.c: Regenerate.
16412 * gdbarch.h: Regenerate.
16413 * gdbarch.sh (program_breakpoint_here_p): New method.
16414 * infrun.c (handle_signal_stop): Call
16415 gdbarch_program_breakpoint_here_p.
16416
16417 2020-01-26 Tom Tromey <tom@tromey.com>
16418
16419 * ctfread.c (struct ctf_fp_info): Reindent.
16420 (_initialize_ctfread): Remove.
16421
16422 2020-01-26 Tom Tromey <tom@tromey.com>
16423
16424 * psymtab.c (partial_map_expand_apply)
16425 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16426 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16427 (psym_print_stats, psym_expand_symtabs_for_function)
16428 (psym_map_symbol_filenames, psym_map_matching_symbols)
16429 (psym_expand_symtabs_matching)
16430 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16431 (maintenance_check_psymtabs): Use new methods.
16432 * psympriv.h (struct partial_symtab) <readin_p,
16433 get_compunit_symtab>: New methods.
16434 <readin, compunit_symtab>: Remove members.
16435 (struct standard_psymtab): New.
16436 (struct legacy_psymtab): Derive from standard_psymtab.
16437 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16438 standard_psymtab.
16439 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16440
16441 2020-01-26 Tom Tromey <tom@tromey.com>
16442
16443 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16444 read_dependencies. Add assert.
16445 * psymtab.c (partial_symtab::read_dependencies): New method.
16446 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16447 method.
16448 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16449 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16450 read_dependencies.
16451 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16452 Add assert.
16453
16454 2020-01-26 Tom Tromey <tom@tromey.com>
16455
16456 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16457 Call expand_psymtab.
16458 (xcoff_read_symtab): Call expand_psymtab.
16459 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16460 legacy_expand_psymtab.
16461 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16462 method.
16463 (struct legacy_psymtab) <expand_psymtab>: Implement.
16464 <legacy_expand_psymtab>: New member.
16465 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16466 (parse_partial_symbols): Set legacy_expand_psymtab.
16467 (psymtab_to_symtab_1): Change argument order. Call
16468 expand_psymtab.
16469 (new_psymtab): Set legacy_expand_psymtab.
16470 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16471 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16472 expand_psymtab.
16473 (dwarf2_psymtab::expand_psymtab): Rename from
16474 psymtab_to_symtab_1. Call expand_psymtab.
16475 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16476 (dbx_end_psymtab): Likewise.
16477 (dbx_psymtab_to_symtab_1): Change argument order. Call
16478 expand_psymtab.
16479 (dbx_read_symtab): Call expand_psymtab.
16480 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16481 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16482 (ctf_psymtab::read_symtab): Call expand_psymtab.
16483
16484 2020-01-26 Tom Tromey <tom@tromey.com>
16485
16486 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16487 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16488 messages.
16489 * mdebugread.c (mdebug_read_symtab): Remove prints.
16490 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16491 assert.
16492 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16493
16494 2020-01-26 Tom Tromey <tom@tromey.com>
16495
16496 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16497 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16498 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16499 legacy_symtab.
16500 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16501 * psymtab.c (psymtab_to_symtab): Call method.
16502 (dump_psymtab): Update.
16503 * psympriv.h (struct partial_symtab): Add virtual destructor.
16504 <read_symtab>: New method.
16505 (struct legacy_symtab): New.
16506 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16507 (struct pst_map) <pst>: Now a legacy_psymtab.
16508 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16509 (new_psymtab): Use legacy_psymtab.
16510 * dwarf2read.h (struct dwarf2_psymtab): New.
16511 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16512 * dwarf2read.c (dwarf2_create_include_psymtab)
16513 (dwarf2_build_include_psymtabs, create_type_unit_group)
16514 (create_partial_symtab, process_psymtab_comp_unit_reader)
16515 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16516 (set_partial_user): Use dwarf2_psymtab.
16517 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16518 (psymtab_to_symtab_1, process_full_comp_unit)
16519 (process_full_type_unit, dwarf2_ranges_read)
16520 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16521 (dwarf_decode_lines): Use dwarf2_psymtab.
16522 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16523 (add_address_entry_worker, write_one_signatured_type)
16524 (recursively_count_psymbols, recursively_write_psymbols)
16525 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16526 (write_debug_names): Likewise.
16527 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16528 <pst>: Now a legacy_psymtab.
16529 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16530 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16531 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16532 * ctfread.c (struct ctf_psymtab): New.
16533 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16534 ctf_psymtab.
16535 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16536 (create_partial_symtab): Return a ctf_psymtab.
16537 (scan_partial_symbols): Update.
16538
16539 2020-01-26 Tom Tromey <tom@tromey.com>
16540
16541 * xcoffread.c (xcoff_start_psymtab): Use new.
16542 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16543 renamed from start_psymtab_common.
16544 * psympriv.h (struct partial_symtab): Add new constructor.
16545 (start_psymtab_common): Don't declare.
16546 * mdebugread.c (parse_partial_symbols): Use new.
16547 * dwarf2read.c (create_partial_symtab): Use new.
16548 * dbxread.c (start_psymtab): Use new.
16549 * ctfread.c (create_partial_symtab): Use new.
16550
16551 2020-01-26 Tom Tromey <tom@tromey.com>
16552
16553 * xcoffread.c (xcoff_end_psymtab): Use new.
16554 * psymtab.c (start_psymtab_common): Use new.
16555 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16556 Update.
16557 * psympriv.h (struct partial_symtab): Add parameters to
16558 constructor. Don't inline.
16559 (allocate_psymtab): Don't declare.
16560 * mdebugread.c (new_psymtab): Use new.
16561 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16562 * dbxread.c (dbx_end_psymtab): Use new.
16563
16564 2020-01-26 Tom Tromey <tom@tromey.com>
16565
16566 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16567 allocate_psymtab. Update documentation.
16568 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16569 allocate_psymtab. Do not use new.
16570 (allocate_psymtab): Use new. Update.
16571
16572 2020-01-26 Tom Tromey <tom@tromey.com>
16573
16574 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16575 * psymtab.c (psym_print_stats): Update.
16576 * psympriv.h (struct partial_symtab) <readin,
16577 psymtabs_addrmap_supported, anonymous>: Now bool.
16578 * mdebugread.c (psymtab_to_symtab_1): Update.
16579 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16580 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16581 (process_full_comp_unit, process_full_type_unit): Update.
16582 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16583 * ctfread.c (psymtab_to_symtab): Update.
16584
16585 2020-01-26 Tom Tromey <tom@tromey.com>
16586
16587 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16588 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16589 * psymtab.c (psymtab_storage): Delete psymtabs.
16590 (psymtab_storage::allocate_psymtab): Use new.
16591 (psymtab_storage::discard_psymtab): Use delete.
16592 * psympriv.h (struct partial_symtab): Add constructor and
16593 initializers.
16594
16595 2020-01-26 Tom Tromey <tom@tromey.com>
16596
16597 * machoread.c: Do not include psympriv.h.
16598
16599 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16600
16601 * NEWS: Mention the new option and the set/show commands.
16602
16603 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16604
16605 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16606 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16607 (validate_exec_file): New variables, enums, functions.
16608 (exec_file_locate_attach, print_section_info): Style the filenames.
16609 (_initialize_exec): Install show_exec_file_mismatch_command and
16610 set_exec_file_mismatch_command.
16611 * gdbcore.h (validate_exec_file): Declare.
16612 * infcmd.c (attach_command): Call validate_exec_file.
16613 * remote.c ( remote_target::remote_add_inferior): Likewise.
16614
16615 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16616
16617 * frame.c (find_frame_sal): Move call to get_next_frame into more
16618 inner scope.
16619 * inline-frame.c (inilne_state) <inline_state>: Update argument
16620 types.
16621 (inilne_state) <skipped_symbol>: Rename to...
16622 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16623 (skip_inline_frames): Build vector of skipped symbols and use this
16624 to reate the inline_state.
16625 (inline_skipped_symbol): Add a comment and some assertions, fetch
16626 skipped symbol from the list.
16627
16628 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16629
16630 * buildsym.c (lte_is_less_than): Delete.
16631 (buildsym_compunit::end_symtab_with_blockvector): Create local
16632 lambda function to sort line table entries, and use
16633 std::stable_sort instead of std::sort.
16634 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16635 markers when looking for a previous line.
16636
16637 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16638
16639 * dwarf2read.c (lnp_state_machine::record_line): Include
16640 end_sequence parameter in debug print out. Record the line if we
16641 are at an end_sequence marker even if it's not the start of a
16642 statement.
16643 * symmisc.c (maintenance_print_one_line_table): Print end of
16644 sequence markers with 'END' not '0'.
16645
16646 2020-01-24 Pedro Alves <palves@redhat.com>
16647
16648 PR gdb/25410
16649 * thread.c (scoped_restore_current_thread::restore): Use
16650 switch_to_inferior_no_thread.
16651 * exec.c: Include "progspace-and-thread.h".
16652 (add_target_sections, remove_target_sections):
16653 scoped_restore_current_pspace_and_thread instead of
16654 scoped_restore_current_thread.
16655 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16656 and aspace to the inferior before calling clone_program_space.
16657 Remove stale comment.
16658
16659 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16660
16661 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16662 (arm_netbsd_nat_target::fetch_registers): ...this.
16663 (arm_nbsd_nat_target::store_registers): Rename to...
16664 (arm_netbsd_nat_target::store_registers): ...this.
16665
16666 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16667
16668 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16669 register_t.
16670
16671 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16672
16673 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16674 Update comment.
16675 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16676 Likewise.
16677 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16678 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16679 the correct replacement (iterate_over_regset_sections).
16680 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16681 Update comment.
16682
16683 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16684
16685 PR gdb/23718
16686 * gdb/python/python.c (execute_gdb_command): Call
16687 async_enable_stdin in catch block.
16688
16689 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16690
16691 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16692 SWITCH_THRU_ALL_UIS.
16693
16694 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16695
16696 PR tui/9765
16697 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16698 comment, add extra parameter, and update to store previous symbol
16699 when appropriate.
16700 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16701 add extra parameter.
16702 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16703 remove unneeded parameter, add try/catch around gdb_print_insn,
16704 rewrite to add items to asm_lines vector.
16705 (tui_find_backward_disassembly_start_address): New function.
16706 (tui_find_disassembly_address): Updated throughout.
16707 (tui_disasm_window::set_contents): Update for changes to
16708 tui_disassemble.
16709 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16710 number of lines to scroll.
16711
16712 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16713
16714 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16715 (SECT_OFF_DATA): Likewise.
16716 (SECT_OFF_RODATA): Likewise.
16717 (SECT_OFF_TEXT): Likewise.
16718 (SECT_OFF_BSS): Likewise.
16719 (struct objfile) <text_section_offset, data_section_offset>: New
16720 methods.
16721 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16722 objfile::text_section_offset.
16723 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16724 * coffread.c (coff_symtab_read): Likewise.
16725 (enter_linenos): Likewise.
16726 (process_coff_symbol): Likewise.
16727 * ctfread.c (get_objfile_text_range): Likewise.
16728 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16729 Use objfile::data_section_offset.
16730 * dwarf2-frame.c (execute_cfa_program): Use
16731 objfile::text_section_offset.
16732 (dwarf2_frame_find_fde): Likewise.
16733 * dwarf2read.c (create_addrmap_from_index): Likewise.
16734 (create_addrmap_from_aranges): Likewise.
16735 (dw2_find_pc_sect_compunit_symtab): Likewise.
16736 (process_psymtab_comp_unit_reader): Likewise.
16737 (add_partial_symbol): Likewise.
16738 (add_partial_subprogram): Likewise.
16739 (process_full_comp_unit): Likewise.
16740 (read_file_scope): Likewise.
16741 (read_func_scope): Likewise.
16742 (read_lexical_block_scope): Likewise.
16743 (read_call_site_scope): Likewise.
16744 (dwarf2_rnglists_process): Likewise.
16745 (dwarf2_ranges_process): Likewise.
16746 (dwarf2_ranges_read): Likewise.
16747 (dwarf_decode_lines_1): Likewise.
16748 (new_symbol): Likewise.
16749 (dwarf2_fetch_die_loc_sect_off): Likewise.
16750 (dwarf2_per_cu_text_offset): Likewise.
16751 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16752 * hppa-tdep.c (read_unwind_info): Likewise.
16753 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16754 * psympriv.h (struct partial_symtab): Likewise.
16755 * psymtab.c (find_pc_sect_psymtab): Likewise.
16756 * solib-svr4.c (enable_break): Likewise.
16757 * stap-probe.c (relocate_address): Use
16758 objfile::data_section_offset.
16759 * xcoffread.c (enter_line_range): Use
16760 objfile::text_section_offset.
16761 (read_xcoff_symtab): Likewise.
16762
16763 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16764
16765 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16766 declaration to narrower scopes.
16767
16768 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16769
16770 * darwin-nat.h (struct darwin_exception_msg, enum
16771 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16772 Move up.
16773 (class darwin_nat_target) <wait_1, check_new_threads,
16774 decode_exception_message, decode_message, stop_inferior,
16775 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16776 * darwin-nat.c (darwin_check_new_threads): Rename to...
16777 (darwin_nat_target::check_new_threads): ... this.
16778 (darwin_suspend_inferior_it): Remove.
16779 (darwin_decode_exception_message): Rename to...
16780 (darwin_nat_target::decode_exception_message): ... this.
16781 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16782 (darwin_decode_message): Rename to...
16783 (darwin_nat_target::decode_message): ... this.
16784 (cancel_breakpoint): Rename to...
16785 (darwin_nat_target::cancel_breakpoint): ... this.
16786 (darwin_wait): Rename to...
16787 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16788 instead of iterate_over_inferiors.
16789 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16790 (darwin_stop_inferior): Rename to...
16791 (darwin_nat_target::stop_inferior): ... this.
16792 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16793 (darwin_init_thread_list): Rename to...
16794 (darwin_nat_target::init_thread_list): ... this.
16795 (darwin_ptrace_him): Rename to...
16796 (darwin_nat_target::ptrace_him): ... this.
16797 (darwin_nat_target::create_inferior): Pass lambda function to
16798 fork_inferior.
16799 (darwin_nat_target::detach): Call stop_inferior instead of
16800 darwin_stop_inferior.
16801 * fork-inferior.h (fork_inferior): Change init_trace_fun
16802 parameter to gdb::function_view.
16803 * fork-inferior.c (fork_inferior): Likewise.
16804
16805 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16806
16807 * i386-cygwin-tdep.c (core_process_module_section): Update.
16808 * windows-nat.c (struct lm_info_windows): Add text_offset.
16809 (windows_xfer_shared_libraries): Update.
16810 * windows-tdep.c (windows_xfer_shared_library):
16811 Add text_offset_cached argument.
16812 * windows-tdep.h (windows_xfer_shared_library): Update.
16813
16814 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16815
16816 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16817
16818 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16819
16820 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16821 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16822 replace with range-based for.
16823 (gdbsim_interrupt_inferior): Remove.
16824 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16825 with a range-based for. Inline code from
16826 gdbsim_interrupt_inferior.
16827
16828 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16829
16830 * infrun.c (proceed): Fix indentation.
16831
16832 2020-01-21 Tom Tromey <tromey@adacore.com>
16833
16834 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16835 * python/python.c (python_extension_ops): Update.
16836 (gdbpy_colorize): New function.
16837 * python/lib/gdb/__init__.py (colorize): New function.
16838 * extension.h (ext_lang_colorize): Declare.
16839 * extension.c (ext_lang_colorize): New function.
16840 * extension-priv.h (struct extension_language_ops) <colorize>: New
16841 member.
16842 * cli/cli-style.c (_initialize_cli_style): Update help text.
16843
16844 2020-01-21 Luis Machado <luis.machado@linaro.org>
16845
16846 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16847 <cond>: Change type to bool.
16848 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16849 (aarch64_displaced_step_cb): Likewise.
16850 (aarch64_displaced_step_tb): Likewise.
16851
16852 2020-01-21 Luis Machado <luis.machado@linaro.org>
16853
16854 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16855 output.
16856
16857 2020-01-21 Luis Machado <luis.machado@linaro.org>
16858
16859 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16860 <pc_adjust>: Adjust the documentation.
16861 (aarch64_displaced_step_fixup): Check if PC really moved before
16862 adjusting it.
16863
16864 2020-01-19 Tom Tromey <tom@tromey.com>
16865
16866 * disasm.c (~gdb_disassembler): New destructor.
16867 (gdb_buffered_insn_length): Call disassemble_free_target.
16868 * disasm.h (class gdb_disassembler): Declare destructor. Use
16869 DISABLE_COPY_AND_ASSIGN.
16870
16871 2020-01-19 Tom Tromey <tom@tromey.com>
16872
16873 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16874 (die_reader_func_ftype): Remove.
16875 (cutu_reader): New class.
16876 (dw2_get_file_names_reader): Remove "data" parameter.
16877 (dw2_get_file_names): Use cutu_reader.
16878 (create_debug_type_hash_table): Update.
16879 (read_cutu_die_from_dwo): Update comment.
16880 (lookup_dwo_unit): Add dwo_name parameter.
16881 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16882 die_reader_func_ftype and data parameters.
16883 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16884 Remove die_reader_func_ftype and data parameters.
16885 (~cutu_reader): New; from init_cutu_and_read_dies.
16886 (cutu_reader::cutu_reader): Rename from
16887 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16888 and data parameters.
16889 (init_cutu_and_read_dies_simple): Remove.
16890 (struct process_psymtab_comp_unit_data): Remove.
16891 (process_psymtab_comp_unit_reader): Remove data parameter; add
16892 want_partial_unit and pretend_language parameters.
16893 (process_psymtab_comp_unit): Use cutu_reader.
16894 (build_type_psymtabs_reader): Remove data parameter.
16895 (build_type_psymtabs_1): Use cutu_reader.
16896 (process_skeletonless_type_unit): Likewise.
16897 (load_partial_comp_unit_reader): Remove.
16898 (load_partial_comp_unit): Use cutu_reader.
16899 (load_full_comp_unit_reader): Remove.
16900 (load_full_comp_unit): Use cutu_reader.
16901 (struct create_dwo_cu_data): Remove.
16902 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16903 dwo_unit parameters.
16904 (create_cus_hash_table): Use cutu_reader.
16905 (struct dwarf2_read_addr_index_data): Remove.
16906 (dwarf2_read_addr_index_reader): Remove.
16907 (dwarf2_read_addr_index): Use cutu_reader.
16908 (read_signatured_type_reader): Remove.
16909 (read_signatured_type): Use cutu_reader.
16910
16911 2020-01-19 Tom Tromey <tom@tromey.com>
16912
16913 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16914 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16915 (tui_wrefresh): Declare.
16916 * tui/tui-wingeneral.c (suppress_output): New global.
16917 (tui_suppress_output, ~tui_suppress_output): New constructor and
16918 destructor.
16919 (tui_wrefresh): New function.
16920 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16921 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16922 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16923 method.
16924 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16925 tui_wrefresh.
16926 (tui_data_window::no_refresh): New method.
16927 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16928 (tui_reg_command): Use tui_suppress_output
16929 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16930 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16931 method.
16932 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16933
16934 2020-01-19 Tom Tromey <tom@tromey.com>
16935
16936 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16937 Handle case where symtab is null.
16938
16939 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16940
16941 * linux-fork.c (one_fork_p): Simplify.
16942
16943 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16944
16945 * top.c (struct qt_args): Remove.
16946 (kill_or_detach): Change return type to void, replace `void *`
16947 parameter with a proper one.
16948 (print_inferior_quit_action): Likewise.
16949 (quit_confirm): Use range-based for loop to iterate over inferiors.
16950 (quit_force): Likewise.
16951
16952 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16953
16954 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16955 `void *` parameter with proper parameters.
16956 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16957 (print_one_inferior): Change return type to void, replace `void *`
16958 parameter with proper parameters.
16959 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16960 inferiors.
16961 (get_other_inferior): Remove.
16962 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16963 inferiors.
16964
16965 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16966
16967 * mi/mi-interp.c (report_initial_inferior): Remove.
16968 (mi_interp::init): Use range-based for to iterate over inferiors.
16969
16970 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16971
16972 * python/py-inferior.c (build_inferior_list): Remove.
16973 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16974
16975 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16976
16977 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16978 (btrace_stitch_trace): Likewise.
16979 * charset.c (intermediate_encoding): Likewise (vaild).
16980 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16981 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16982 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16983
16984 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16985
16986 * windows-tdep.c (windows_get_tlb_type):
16987 Add rtl_user_process_parameters type.
16988
16989 2020-01-16 Pedro Alves <palves@redhat.com>
16990 Norbert Lange <nolange79@gmail.com>
16991
16992 PR build/24805
16993 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16994 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16995 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16996 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16997 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16998 (ps_plog): Redeclare exported functions with default visibility.
16999
17000 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17001
17002 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17003 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17004
17005 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
17006
17007 * infcmd.c (post_create_inferior): Use get_thread_regcache
17008 instead of get_current_regcache.
17009
17010 2020-01-14 Tom Tromey <tom@tromey.com>
17011
17012 PR symtab/12535:
17013 * python/python.c (gdbpy_decode_line): Treat empty string the same
17014 as no argument.
17015
17016 2020-01-14 Tom Tromey <tom@tromey.com>
17017
17018 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17019
17020 2020-01-14 Tom Tromey <tom@tromey.com>
17021
17022 * nat/linux-btrace.c: Don't include <config.h>.
17023 * nat/linux-ptrace.c: Don't include <config.h>.
17024 * nat/x86-linux-dregs.c: Don't include <config.h>.
17025
17026 2020-01-14 Tom Tromey <tom@tromey.com>
17027
17028 * configure: Rebuild.
17029 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17030
17031 2020-01-14 Tom Tromey <tom@tromey.com>
17032
17033 * nat/x86-linux-dregs.c: Include configh.h.
17034 * nat/linux-ptrace.c: Include configh.h.
17035 * nat/linux-btrace.c: Include configh.h.
17036 * defs.h: Include config.h, bfd.h.
17037 * configure.ac: Don't source common.host.
17038 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17039 * configure: Rebuild.
17040 * acinclude.m4: Update path.
17041 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17042 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17043 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17044 (CLIBS): Add LIBSUPPORT.
17045 (CDEPS): Likewise.
17046 (COMMON_SFILES): Remove gdbsupport files.
17047 (HFILES_NO_SRCDIR): Likewise.
17048 (stamp-version): Update path to create-version.sh.
17049 (ALLDEPFILES): Remove gdbsupport files.
17050
17051 2020-01-14 Tom Tromey <tom@tromey.com>
17052
17053 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17054 USE_WIN32API when needed.
17055 * configure.ac (USE_WIN32API): Don't define.
17056 (WIN32LIBS): Use WIN32APILIBS.
17057 * configure: Rebuild.
17058
17059 2020-01-14 Tom Tromey <tom@tromey.com>
17060
17061 * configure: Rebuild.
17062 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17063
17064 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17065
17066 * skip.c (skip_function_command): Make skip w/o arguments use the
17067 name of the inlined function if pc is inside any inlined function.
17068
17069 2020-01-14 Luis Machado <luis.machado@linaro.org>
17070
17071 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17072 * infrun.c (resume_1): Likewise.
17073 (handle_inferior_event): Remove stale comment.
17074 * linux-nat.c (linux_nat_target::resume): Update comments.
17075 (save_stop_reason): Likewise.
17076 (linux_nat_filter_event): Likewise.
17077 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17078
17079 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17080
17081 * elfread.c (record_minimal_symbol): Set section index to 0 for
17082 non-allocatable sections.
17083
17084
17085 2020-01-13 Ali Tamur <tamur@google.com>
17086
17087 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17088 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17089 to gdb::optional. Update comments.
17090 (dwo_file): Update comments.
17091 (read_attribute): Update API to take an additional out parameter,
17092 need_reprocess. This is used to mark attributes that need other
17093 attributes (e.g. str_offsets_base) for correct computation which may not
17094 have been read yet.
17095 (read_attribute_reprocess): New function declaration.
17096 (read_addr_index): Likewise.
17097 (read_dwo_str_index): Likewise.
17098 (read_stub_str_index): Likewise.
17099 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17100 (lookup_addr_base): New function definition.
17101 (lookup_ranges_base): Likewise.
17102 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17103 lookup_ranges_base.
17104 (init_cutu_and_read_dies): Update comments.
17105 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17106 unit. This is used to inherit parent's str_offsets_base and addr_base.
17107 Update comments.
17108 (init_cutu_and_read_dies_simple): Reflect API changes.
17109 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17110 (create_cus_hash_table): Change API to take parent compile unit.
17111 Reflect API changes.
17112 (open_and_init_dwo_file): Reflect API changes.
17113 (dwarf2_get_pc_bounds): Update comments.
17114 (dwarf2_record_block_ranges): Likewise.
17115 (read_full_die_1): Change implementation to reprocess attributes that
17116 need str_offsets_base and addr_base.
17117 (partial_die_info::read): Likewise.
17118 (read_attribute_reprocess): New function definition.
17119 (read_attribute_value): Change API to take an additional out parameter,
17120 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17121 when a non-dwo compile unit has index based attributes.
17122 (read_attribute): Reflect API changes.
17123 (read_addr_index_1): Reflect API changes. Update comments.
17124 (dwarf2_read_addr_index_data): Reflect API changes.
17125 (dwarf2_read_addr_index): Likewise.
17126 (read_str_index): Change API and implementation. This becomes a helper
17127 to be used by the new string index related methods. Update error
17128 message and comments.
17129 (read_dwo_str_index): New function definition.
17130 (read_stub_str_index): Likewise.
17131 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17132 * symfile.h (dwarf2_debug_sections): Likewise.
17133 * xcoffread.c (dwarf2_debug_sections): Likewise.
17134
17135 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17136
17137 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17138 core_reg_sect type to gdb_byte *.
17139 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17140 * cris-tdep.c (fetch_core_registers): Likewise.
17141 * corelow.c (core_target::get_core_register_section): Change
17142 type of `contents` to gdb::byte_vector.
17143
17144 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17145
17146 * tui/tui-wingeneral.c (box_win): Position the title in the center
17147 of the border.
17148
17149 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17150
17151 * corelow.c (core_target::get_core_register_section): Use
17152 std::vector instead of alloca.
17153
17154 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17155
17156 * warning.m4: Add -Wmissing-declarations to build_warnings.
17157 * configure: Re-generate.
17158
17159 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17160
17161 * python/python.c (init__gdb_module): Add declaration.
17162
17163 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17164
17165 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17166 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17167 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17168 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17169 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17170 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17171 * ada-exp.y (_initialize_ada_exp): Add declaration.
17172 * ada-lang.c (_initialize_ada_language): Add declaration.
17173 * ada-tasks.c (_initialize_tasks): Add declaration.
17174 * agent.c (_initialize_agent): Add declaration.
17175 * aix-thread.c (_initialize_aix_thread): Add declaration.
17176 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17177 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17178 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17179 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17180 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17181 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17182 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17183 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17184 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17185 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17186 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17187 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17188 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17189 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17190 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17191 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17192 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17193 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17194 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17195 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17196 * annotate.c (_initialize_annotate): Add declaration.
17197 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17198 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17199 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17200 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17201 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17202 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17203 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17204 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17205 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17206 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17207 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17208 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17209 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17210 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17211 * auto-load.c (_initialize_auto_load): Add declaration.
17212 * auxv.c (_initialize_auxv): Add declaration.
17213 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17214 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17215 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17216 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17217 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17218 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17219 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17220 * breakpoint.c (_initialize_breakpoint): Add declaration.
17221 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17222 * btrace.c (_initialize_btrace): Add declaration.
17223 * charset.c (_initialize_charset): Add declaration.
17224 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17225 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17226 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17227 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17228 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17229 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17230 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17231 * coffread.c (_initialize_coffread): Add declaration.
17232 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17233 * compile/compile.c (_initialize_compile): Add declaration.
17234 * complaints.c (_initialize_complaints): Add declaration.
17235 * completer.c (_initialize_completer): Add declaration.
17236 * copying.c (_initialize_copying): Add declaration.
17237 * corefile.c (_initialize_core): Add declaration.
17238 * corelow.c (_initialize_corelow): Add declaration.
17239 * cp-abi.c (_initialize_cp_abi): Add declaration.
17240 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17241 * cp-support.c (_initialize_cp_support): Add declaration.
17242 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17243 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17244 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17245 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17246 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17247 * ctfread.c (_initialize_ctfread): Add declaration.
17248 * d-lang.c (_initialize_d_language): Add declaration.
17249 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17250 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17251 * dbxread.c (_initialize_dbxread): Add declaration.
17252 * dcache.c (_initialize_dcache): Add declaration.
17253 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17254 * disasm.c (_initialize_disasm): Add declaration.
17255 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17256 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17257 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17258 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17259 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17260 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17261 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17262 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17263 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17264 * elfread.c (_initialize_elfread): Add declaration.
17265 * exec.c (_initialize_exec): Add declaration.
17266 * extension.c (_initialize_extension): Add declaration.
17267 * f-lang.c (_initialize_f_language): Add declaration.
17268 * f-valprint.c (_initialize_f_valprint): Add declaration.
17269 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17270 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17271 * filesystem.c (_initialize_filesystem): Add declaration.
17272 * findcmd.c (_initialize_mem_search): Add declaration.
17273 * findvar.c (_initialize_findvar): Add declaration.
17274 * fork-child.c (_initialize_fork_child): Add declaration.
17275 * frame-base.c (_initialize_frame_base): Add declaration.
17276 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17277 * frame.c (_initialize_frame): Add declaration.
17278 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17279 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17280 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17281 * gcore.c (_initialize_gcore): Add declaration.
17282 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17283 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17284 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17285 * gdbarch.c (_initialize_gdbarch): Add declaration.
17286 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17287 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17288 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17289 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17290 * go-lang.c (_initialize_go_language): Add declaration.
17291 * go32-nat.c (_initialize_go32_nat): Add declaration.
17292 * guile/guile.c (_initialize_guile): Add declaration.
17293 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17294 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17295 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17296 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17297 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17298 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17299 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17300 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17301 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17302 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17303 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17304 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17305 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17306 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17307 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17308 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17309 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17310 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17311 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17312 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17313 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17314 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17315 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17316 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17317 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17318 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17319 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17320 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17321 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17322 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17323 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17324 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17325 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17326 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17327 * infcall.c (_initialize_infcall): Add declaration.
17328 * infcmd.c (_initialize_infcmd): Add declaration.
17329 * inflow.c (_initialize_inflow): Add declaration.
17330 * infrun.c (_initialize_infrun): Add declaration.
17331 * interps.c (_initialize_interpreter): Add declaration.
17332 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17333 * jit.c (_initialize_jit): Add declaration.
17334 * language.c (_initialize_language): Add declaration.
17335 * linux-fork.c (_initialize_linux_fork): Add declaration.
17336 * linux-nat.c (_initialize_linux_nat): Add declaration.
17337 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17338 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17339 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17340 * m2-lang.c (_initialize_m2_language): Add declaration.
17341 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17342 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17343 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17344 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17345 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17346 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17347 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17348 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17349 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17350 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17351 * machoread.c (_initialize_machoread): Add declaration.
17352 * macrocmd.c (_initialize_macrocmd): Add declaration.
17353 * macroscope.c (_initialize_macroscope): Add declaration.
17354 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17355 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17356 * maint.c (_initialize_maint_cmds): Add declaration.
17357 * mdebugread.c (_initialize_mdebugread): Add declaration.
17358 * memattr.c (_initialize_mem): Add declaration.
17359 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17360 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17361 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17362 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17363 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17364 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17365 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17366 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17367 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17368 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17369 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17370 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17371 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17372 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17373 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17374 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17375 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17376 * mipsread.c (_initialize_mipsread): Add declaration.
17377 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17378 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17379 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17380 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17381 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17382 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17383 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17384 * nto-procfs.c (_initialize_procfs): Add declaration.
17385 * objc-lang.c (_initialize_objc_language): Add declaration.
17386 * observable.c (_initialize_observer): Add declaration.
17387 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17388 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17389 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17390 * osabi.c (_initialize_gdb_osabi): Add declaration.
17391 * osdata.c (_initialize_osdata): Add declaration.
17392 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17393 * parse.c (_initialize_parse): Add declaration.
17394 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17395 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17396 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17397 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17398 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17399 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17400 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17401 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17402 * printcmd.c (_initialize_printcmd): Add declaration.
17403 * probe.c (_initialize_probe): Add declaration.
17404 * proc-api.c (_initialize_proc_api): Add declaration.
17405 * proc-events.c (_initialize_proc_events): Add declaration.
17406 * proc-service.c (_initialize_proc_service): Add declaration.
17407 * procfs.c (_initialize_procfs): Add declaration.
17408 * producer.c (_initialize_producer): Add declaration.
17409 * psymtab.c (_initialize_psymtab): Add declaration.
17410 * python/python.c (_initialize_python): Add declaration.
17411 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17412 * record-btrace.c (_initialize_record_btrace): Add declaration.
17413 * record-full.c (_initialize_record_full): Add declaration.
17414 * record.c (_initialize_record): Add declaration.
17415 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17416 * regcache.c (_initialize_regcache): Add declaration.
17417 * reggroups.c (_initialize_reggroup): Add declaration.
17418 * remote-notif.c (_initialize_notif): Add declaration.
17419 * remote-sim.c (_initialize_remote_sim): Add declaration.
17420 * remote.c (_initialize_remote): Add declaration.
17421 * reverse.c (_initialize_reverse): Add declaration.
17422 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17423 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17424 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17425 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17426 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17427 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17428 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17429 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17430 Add declaration.
17431 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17432 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17433 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17434 * rust-exp.y (_initialize_rust_exp): Add declaration.
17435 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17436 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17437 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17438 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17439 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17440 * score-tdep.c (_initialize_score_tdep): Add declaration.
17441 * ser-go32.c (_initialize_ser_dos): Add declaration.
17442 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17443 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17444 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17445 * ser-uds.c (_initialize_ser_socket): Add declaration.
17446 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17447 * serial.c (_initialize_serial): Add declaration.
17448 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17449 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17450 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17451 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17452 * skip.c (_initialize_step_skip): Add declaration.
17453 * sol-thread.c (_initialize_sol_thread): Add declaration.
17454 * solib-aix.c (_initialize_solib_aix): Add declaration.
17455 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17456 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17457 * solib-frv.c (_initialize_frv_solib): Add declaration.
17458 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17459 * solib-target.c (_initialize_solib_target): Add declaration.
17460 * solib.c (_initialize_solib): Add declaration.
17461 * source-cache.c (_initialize_source_cache): Add declaration.
17462 * source.c (_initialize_source): Add declaration.
17463 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17464 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17465 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17466 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17467 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17468 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17469 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17470 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17471 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17472 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17473 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17474 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17475 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17476 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17477 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17478 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17479 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17480 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17481 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17482 * stabsread.c (_initialize_stabsread): Add declaration.
17483 * stack.c (_initialize_stack): Add declaration.
17484 * stap-probe.c (_initialize_stap_probe): Add declaration.
17485 * std-regs.c (_initialize_frame_reg): Add declaration.
17486 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17487 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17488 * symfile.c (_initialize_symfile): Add declaration.
17489 * symmisc.c (_initialize_symmisc): Add declaration.
17490 * symtab.c (_initialize_symtab): Add declaration.
17491 * target.c (_initialize_target): Add declaration.
17492 * target-connection.c (_initialize_target_connection): Add
17493 declaration.
17494 * target-dcache.c (_initialize_target_dcache): Add declaration.
17495 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17496 * thread.c (_initialize_thread): Add declaration.
17497 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17498 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17499 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17500 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17501 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17502 * tracectf.c (_initialize_ctf): Add declaration.
17503 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17504 * tracefile.c (_initialize_tracefile): Add declaration.
17505 * tracepoint.c (_initialize_tracepoint): Add declaration.
17506 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17507 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17508 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17509 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17510 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17511 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17512 * tui/tui.c (_initialize_tui): Add declaration.
17513 * typeprint.c (_initialize_typeprint): Add declaration.
17514 * ui-style.c (_initialize_ui_style): Add declaration.
17515 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17516 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17517 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17518 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17519 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17520 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17521 * unittests/filtered_iterator-selftests.c
17522 (_initialize_filtered_iterator_selftests): Add declaration.
17523 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17524 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17525 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17526 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17527 * unittests/main-thread-selftests.c
17528 (_initialize_main_thread_selftests): Add declaration.
17529 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17530 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17531 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17532 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17533 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17534 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17535 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17536 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17537 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17538 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17539 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17540 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17541 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17542 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17543 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17544 declaration.
17545 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17546 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17547 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17548 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17549 * user-regs.c (_initialize_user_regs): Add declaration.
17550 * utils.c (_initialize_utils): Add declaration.
17551 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17552 * valops.c (_initialize_valops): Add declaration.
17553 * valprint.c (_initialize_valprint): Add declaration.
17554 * value.c (_initialize_values): Add declaration.
17555 * varobj.c (_initialize_varobj): Add declaration.
17556 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17557 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17558 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17559 * windows-nat.c (_initialize_windows_nat): Add declaration.
17560 (_initialize_check_for_gdb_ini): Add declaration.
17561 (_initialize_loadable): Add declaration.
17562 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17563 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17564 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17565 * xcoffread.c (_initialize_xcoffread): Add declaration.
17566 * xml-support.c (_initialize_xml_support): Add declaration.
17567 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17568 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17569 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17570 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17571
17572 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17573
17574 * regformats/regdat.sh: Generate declaration for init function.
17575
17576 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17577
17578 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17579 up.
17580 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17581 close_one_inferior>: New methods.
17582 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17583 pass down target to find_inferior_pid.
17584 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17585 Pass down target to find_inferior_ptid.
17586 (gdbsim_target::create_inferior): Pass down target to
17587 add_thread_silent.
17588 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17589 target down to find_inferior_ptid and switch_to_thread.
17590 (gdbsim_target::close): Update to call close_one_inferior.
17591 (struct resume_data): Remove.
17592 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17593 directly, rather than through a void pointer.
17594 (gdbsim_target::resume): Update to call resume_one_inferior.
17595
17596 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17597
17598 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17599
17600 2020-01-12 Pedro Alves <palves@redhat.com>
17601
17602 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17603 directly for the current inferior instead of
17604 discard_all_inferiors.
17605 (discard_all_inferiors): Delete.
17606
17607 2020-01-11 Tom Tromey <tom@tromey.com>
17608
17609 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17610 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17611 deprecated_safe_get_selected_frame.
17612
17613 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17614
17615 * inferior.c (print_inferior): Switch inferior before printing it.
17616
17617 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17618 Pedro Alves <palves@redhat.com>
17619
17620 * progspace-and-thread.c (switch_to_program_space_and_thread):
17621 Assert there's an inferior for PSPACE. Use
17622 switch_to_inferior_no_thread to switch the inferior too.
17623 * progspace.c (program_space::~program_space): Call
17624 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17625 (program_space::free_all_objfiles): Don't call clear_symtab_users
17626 here.
17627 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17628
17629 2020-01-10 Pedro Alves <palves@redhat.com>
17630
17631 * NEWS: Mention multi-target debugging, "info connections", and
17632 "add-inferior -no-connection".
17633
17634 2020-01-10 Pedro Alves <palves@redhat.com>
17635
17636 * infrun.c: Include "target-connection.h".
17637 (check_multi_target_resumption): New.
17638 (proceed): Call it.
17639 * target-connection.c (make_target_connection_string): Make
17640 extern.
17641 * target-connection.h (make_target_connection_string): Declare.
17642
17643 2020-01-10 Pedro Alves <palves@redhat.com>
17644
17645 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17646 * inferior.c (uiout_field_connection): New function.
17647 (print_inferior): Add new "connection-id" column.
17648 (add_inferior_command): Show connection number/string of added
17649 inferior.
17650 * process-stratum-target.h
17651 (process_stratum_target::connection_string): New virtual method.
17652 (process_stratum_target::connection_number): New field.
17653 * remote.c (remote_target::connection_string): New override.
17654 * target-connection.c: New file.
17655 * target-connection.h: New file.
17656 * target.c (decref_target): Remove process_stratum targets from
17657 the connection list.
17658 (target_stack::push): Add process_stratum targets to the
17659 connection list.
17660
17661 2020-01-10 Pedro Alves <palves@redhat.com>
17662
17663 Revert:
17664 2016-04-12 Pedro Alves <palves@redhat.com>
17665 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17666 Remove references to name.
17667 * serial.h (struct serial) <name>: Delete.
17668
17669 2020-01-10 Pedro Alves <palves@redhat.com>
17670
17671 * gdbarch-selftests.c (register_to_value_test): Remove "target
17672 already pushed" check.
17673
17674 2020-01-10 Pedro Alves <palves@redhat.com>
17675 John Baldwin <jhb@FreeBSD.org>
17676
17677 * aarch64-linux-nat.c
17678 (aarch64_linux_nat_target::thread_architecture): Adjust.
17679 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17680 (task_command_1): Likewise.
17681 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17682 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17683 (aix_thread_target::store_registers)
17684 (aix_thread_target::thread_alive): Adjust.
17685 * amd64-fbsd-tdep.c: Include "inferior.h".
17686 (amd64fbsd_get_thread_local_address): Pass down target.
17687 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17688 thread's gdbarch instead of target_gdbarch.
17689 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17690 get_last_target_status.
17691 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17692 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17693 inferiors.
17694 (update_inserted_breakpoint_locations): Skip if inferiors with no
17695 execution.
17696 (update_global_location_list): When handling moribund locations,
17697 find representative inferior for location's pspace, and use thread
17698 count of its process_stratum target.
17699 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17700 * bsd-uthread.c (bsd_uthread_target::wait): Use
17701 as_process_stratum_target and adjust thread_change_ptid and
17702 add_thread calls.
17703 (bsd_uthread_target::update_thread_list): Use
17704 as_process_stratum_target and adjust find_thread_ptid,
17705 thread_change_ptid and add_thread calls.
17706 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17707 find_thread_ptid call.
17708 * corelow.c (add_to_thread_list): Adjust add_thread call.
17709 (core_target_open): Adjust add_thread_silent and thread_count
17710 calls.
17711 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17712 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17713 * event-top.c (async_disconnect): Pop targets from all inferiors.
17714 * exec.c (add_target_sections): Push exec target on all inferiors
17715 sharing the program space.
17716 (remove_target_sections): Remove the exec target from all
17717 inferiors sharing the program space.
17718 (exec_on_vfork): New.
17719 * exec.h (exec_on_vfork): Declare.
17720 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17721 Pass it down.
17722 (fbsd_nat_target::update_thread_list): Adjust.
17723 (fbsd_nat_target::resume): Adjust.
17724 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17725 down.
17726 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17727 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17728 get_thread_arch_regcache call.
17729 * fork-child.c (gdb_startup_inferior): Pass target down to
17730 startup_inferior and set_executing.
17731 * gdbthread.h (struct process_stratum_target): Forward declare.
17732 (add_thread, add_thread_silent, add_thread_with_info)
17733 (in_thread_list): Add process_stratum_target parameter.
17734 (find_thread_ptid(inferior*, ptid_t)): New overload.
17735 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17736 parameter.
17737 (all_threads()): Delete overload.
17738 (all_threads, all_non_exited_threads): Add process_stratum_target
17739 parameter.
17740 (all_threads_safe): Use brace initialization.
17741 (thread_count): Add process_stratum_target parameter.
17742 (set_resumed, set_running, set_stop_requested, set_executing)
17743 (threads_are_executing, finish_thread_state): Add
17744 process_stratum_target parameter.
17745 (switch_to_thread): Use is_current_thread.
17746 * i386-fbsd-tdep.c: Include "inferior.h".
17747 (i386fbsd_get_thread_local_address): Pass down target.
17748 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17749 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17750 have_inferiors check.
17751 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17752 (inf_ptrace_target::attach): Adjust.
17753 * infcall.c (run_inferior_call): Adjust.
17754 * infcmd.c (run_command_1): Pass target to
17755 scoped_finish_thread_state.
17756 (proceed_thread_callback): Skip inferiors with no execution.
17757 (continue_command): Rename 'all_threads' local to avoid hiding
17758 'all_threads' function. Adjust get_last_target_status call.
17759 (prepare_one_step): Adjust set_running call.
17760 (signal_command): Use user_visible_resume_target. Compare thread
17761 pointers instead of inferior_ptid.
17762 (info_program_command): Adjust to pass down target.
17763 (attach_command): Mark target's 'thread_executing' flag.
17764 (stop_current_target_threads_ns): New, factored out from ...
17765 (interrupt_target_1): ... this. Switch inferior before making
17766 target calls.
17767 * inferior-iter.h
17768 (struct all_inferiors_iterator, struct all_inferiors_range)
17769 (struct all_inferiors_safe_range)
17770 (struct all_non_exited_inferiors_range): Filter on
17771 process_stratum_target too. Remove explicit.
17772 * inferior.c (inferior::inferior): Push dummy target on target
17773 stack.
17774 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17775 Add process_stratum_target parameter, and pass it down.
17776 (have_live_inferiors): Adjust.
17777 (switch_to_inferior_and_push_target): New.
17778 (add_inferior_command, clone_inferior_command): Handle
17779 "-no-connection" parameter. Use
17780 switch_to_inferior_and_push_target.
17781 (_initialize_inferior): Mention "-no-connection" option in
17782 the help of "add-inferior" and "clone-inferior" commands.
17783 * inferior.h: Include "process-stratum-target.h".
17784 (interrupt_target_1): Use bool.
17785 (struct inferior) <push_target, unpush_target, target_is_pushed,
17786 find_target_beneath, top_target, process_target, target_at,
17787 m_stack>: New.
17788 (discard_all_inferiors): Delete.
17789 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17790 (all_inferiors, all_non_exited_inferiors): Add
17791 process_stratum_target parameter.
17792 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17793 (target_last_proc_target): New global.
17794 (follow_fork_inferior): Push target on new inferior. Pass target
17795 to add_thread_silent. Call exec_on_vfork. Handle target's
17796 reference count.
17797 (follow_fork): Adjust get_last_target_status call. Also consider
17798 target.
17799 (follow_exec): Push target on new inferior.
17800 (struct execution_control_state) <target>: New field.
17801 (user_visible_resume_target): New.
17802 (do_target_resume): Call target_async.
17803 (resume_1): Set target's threads_executing flag. Consider resume
17804 target.
17805 (commit_resume_all_targets): New.
17806 (proceed): Also consider resume target. Skip threads of inferiors
17807 with no execution. Commit resumtion in all targets.
17808 (start_remote): Pass current inferior to wait_for_inferior.
17809 (infrun_thread_stop_requested): Consider target as well. Pass
17810 thread_info pointer to clear_inline_frame_state instead of ptid.
17811 (infrun_thread_thread_exit): Consider target as well.
17812 (random_pending_event_thread): New inferior parameter. Use it.
17813 (do_target_wait): Rename to ...
17814 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17815 down.
17816 (threads_are_resumed_pending_p, do_target_wait): New.
17817 (prepare_for_detach): Adjust calls.
17818 (wait_for_inferior): New inferior parameter. Handle it. Use
17819 do_target_wait_1 instead of do_target_wait.
17820 (fetch_inferior_event): Adjust. Switch to representative
17821 inferior. Pass target down.
17822 (set_last_target_status): Add process_stratum_target parameter.
17823 Save target in global.
17824 (get_last_target_status): Add process_stratum_target parameter and
17825 handle it.
17826 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17827 (context_switch): Check inferior_ptid == null_ptid before calling
17828 inferior_thread().
17829 (get_inferior_stop_soon): Pass down target.
17830 (wait_one): Rename to ...
17831 (poll_one_curr_target): ... this.
17832 (struct wait_one_event): New.
17833 (wait_one): New.
17834 (stop_all_threads): Adjust.
17835 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17836 event's target.
17837 (switch_back_to_stepped_thread): Also consider target.
17838 (print_stop_event): Update.
17839 (normal_stop): Update. Also consider the resume target.
17840 * infrun.h (wait_for_inferior): Remove declaration.
17841 (user_visible_resume_target): New declaration.
17842 (get_last_target_status, set_last_target_status): New
17843 process_stratum_target parameter.
17844 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17845 process_stratum_target parameter, and use it.
17846 (clear_inline_frame_state (thread_info*)): New.
17847 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17848 process_stratum_target parameter.
17849 (clear_inline_frame_state (thread_info*)): Declare.
17850 * linux-fork.c (delete_checkpoint_command): Pass target down to
17851 find_thread_ptid.
17852 (checkpoint_command): Adjust.
17853 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17854 instead of just tweaking inferior_ptid.
17855 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17856 (exit_lwp): Pass target down to find_thread_ptid.
17857 (attach_proc_task_lwp_callback): Pass target down to
17858 add_thread/set_running/set_executing.
17859 (linux_nat_target::attach): Pass target down to
17860 thread_change_ptid.
17861 (get_detach_signal): Pass target down to find_thread_ptid.
17862 Consider last target status's target.
17863 (linux_resume_one_lwp_throw, resume_lwp)
17864 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17865 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17866 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17867 (linux_nat_target::async_wait_fd): New.
17868 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17869 target down.
17870 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17871 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17872 * linux-thread-db.c (struct thread_db_info::process_target): New
17873 field.
17874 (add_thread_db_info): Save target.
17875 (get_thread_db_info): New process_stratum_target parameter. Also
17876 match target.
17877 (delete_thread_db_info): New process_stratum_target parameter.
17878 Also match target.
17879 (thread_from_lwp): Adjust to pass down target.
17880 (thread_db_notice_clone): Pass down target.
17881 (check_thread_db_callback): Pass down target.
17882 (try_thread_db_load_1): Always push the thread_db target.
17883 (try_thread_db_load, record_thread): Pass target down.
17884 (thread_db_target::detach): Pass target down. Always unpush the
17885 thread_db target.
17886 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17887 target down. Always unpush the thread_db target.
17888 (find_new_threads_callback, thread_db_find_new_threads_2)
17889 (thread_db_target::update_thread_list): Pass target down.
17890 (thread_db_target::pid_to_str): Pass current inferior down.
17891 (thread_db_target::get_thread_local_address): Pass target down.
17892 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17893 target down.
17894 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17895 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17896 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17897 (procfs_init_inferior): Rename to ...
17898 (procfs_target::procfs_init_inferior): ... this and adjust.
17899 (procfs_target::create_inferior, procfs_notice_thread)
17900 (procfs_do_thread_registers): Adjust.
17901 * ppc-fbsd-tdep.c: Include "inferior.h".
17902 (ppcfbsd_get_thread_local_address): Pass down target.
17903 * proc-service.c (ps_xfer_memory): Switch current inferior and
17904 program space as well.
17905 (get_ps_regcache): Pass target down.
17906 * process-stratum-target.c
17907 (process_stratum_target::thread_address_space)
17908 (process_stratum_target::thread_architecture): Pass target down.
17909 * process-stratum-target.h
17910 (process_stratum_target::threads_executing): New field.
17911 (as_process_stratum_target): New.
17912 * ravenscar-thread.c
17913 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17914 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17915 down.
17916 * record-btrace.c (record_btrace_target::info_record): Adjust.
17917 (record_btrace_target::record_method)
17918 (record_btrace_target::record_is_replaying)
17919 (record_btrace_target::fetch_registers)
17920 (get_thread_current_frame_id, record_btrace_target::resume)
17921 (record_btrace_target::wait, record_btrace_target::stop): Pass
17922 target down.
17923 * record-full.c (record_full_wait_1): Switch to event thread.
17924 Pass target down.
17925 * regcache.c (regcache::regcache)
17926 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17927 process_stratum_target parameter and handle it.
17928 (current_thread_target): New global.
17929 (get_thread_regcache): Add process_stratum_target parameter and
17930 handle it. Switch inferior before calling target method.
17931 (get_thread_regcache): Pass target down.
17932 (get_thread_regcache_for_ptid): Pass target down.
17933 (registers_changed_ptid): Add process_stratum_target parameter and
17934 handle it.
17935 (registers_changed_thread, registers_changed): Pass target down.
17936 (test_get_thread_arch_aspace_regcache): New.
17937 (current_regcache_test): Define a couple local test_target_ops
17938 instances and use them for testing.
17939 (readwrite_regcache): Pass process_stratum_target parameter.
17940 (cooked_read_test, cooked_write_test): Pass mock_target down.
17941 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17942 (get_thread_arch_aspace_regcache): Add process_stratum_target
17943 parameter.
17944 (regcache::target): New method.
17945 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17946 (regcache::registers_changed_ptid): Add process_stratum_target
17947 parameter.
17948 (regcache::m_target): New field.
17949 (registers_changed_ptid): Add process_stratum_target parameter.
17950 * remote.c (remote_state::supports_vCont_probed): New field.
17951 (remote_target::async_wait_fd): New method.
17952 (remote_unpush_and_throw): Add remote_target parameter.
17953 (get_current_remote_target): Adjust.
17954 (remote_target::remote_add_inferior): Push target.
17955 (remote_target::remote_add_thread)
17956 (remote_target::remote_notice_new_inferior)
17957 (get_remote_thread_info): Pass target down.
17958 (remote_target::update_thread_list): Skip threads of inferiors
17959 bound to other targets. (remote_target::close): Don't discard
17960 inferiors. (remote_target::add_current_inferior_and_thread)
17961 (remote_target::process_initial_stop_replies)
17962 (remote_target::start_remote)
17963 (remote_target::remote_serial_quit_handler): Pass down target.
17964 (remote_target::remote_unpush_target): New remote_target
17965 parameter. Unpush the target from all inferiors.
17966 (remote_target::remote_unpush_and_throw): New remote_target
17967 parameter. Pass it down.
17968 (remote_target::open_1): Check whether the current inferior has
17969 execution instead of checking whether any inferior is live. Pass
17970 target down.
17971 (remote_target::remote_detach_1): Pass down target. Use
17972 remote_unpush_target.
17973 (extended_remote_target::attach): Pass down target.
17974 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17975 (remote_target::append_resumption): Pass down target.
17976 (remote_target::append_pending_thread_resumptions)
17977 (remote_target::remote_resume_with_hc, remote_target::resume)
17978 (remote_target::commit_resume): Pass down target.
17979 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17980 (remote_target::interrupt_query)
17981 (remote_target::remove_new_fork_children)
17982 (remote_target::check_pending_events_prevent_wildcard_vcont)
17983 (remote_target::remote_parse_stop_reply)
17984 (remote_target::process_stop_reply): Pass down target.
17985 (first_remote_resumed_thread): New remote_target parameter. Pass
17986 it down.
17987 (remote_target::wait_as): Pass down target.
17988 (unpush_and_perror): New remote_target parameter. Pass it down.
17989 (remote_target::readchar, remote_target::remote_serial_write)
17990 (remote_target::getpkt_or_notif_sane_1)
17991 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17992 down target.
17993 (remote_target::mourn_inferior): Pass down target. Use
17994 remote_unpush_target.
17995 (remote_target::core_of_thread)
17996 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17997 (remote_target::pid_to_exec_file)
17998 (remote_target::thread_handle_to_thread_info): Pass down target.
17999 (remote_target::async_wait_fd): New.
18000 * riscv-fbsd-tdep.c: Include "inferior.h".
18001 (riscv_fbsd_get_thread_local_address): Pass down target.
18002 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18003 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18004 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18005 Adjust.
18006 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18007 * solib-svr4.c (enable_break): Pass down target.
18008 * spu-multiarch.c (parse_spufs_run): Pass down target.
18009 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18010 * target-delegates.c: Regenerate.
18011 * target.c (g_target_stack): Delete.
18012 (current_top_target): Return the current inferior's top target.
18013 (target_has_execution_1): Refer to the passed-in inferior's top
18014 target.
18015 (target_supports_terminal_ours): Check whether the initial
18016 inferior was already created.
18017 (decref_target): New.
18018 (target_stack::push): Incref/decref the target.
18019 (push_target, push_target, unpush_target): Adjust.
18020 (target_stack::unpush): Defref target.
18021 (target_is_pushed): Return bool. Adjust to refer to the current
18022 inferior's target stack.
18023 (dispose_inferior): Delete, and inline parts ...
18024 (target_preopen): ... here. Only dispose of the current inferior.
18025 (target_detach): Hold strong target reference while detaching.
18026 Pass target down.
18027 (target_thread_name): Add assertion.
18028 (target_resume): Pass down target.
18029 (target_ops::beneath, find_target_at): Adjust to refer to the
18030 current inferior's target stack.
18031 (get_dummy_target): New.
18032 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18033 has a thread running.
18034 (initialize_targets): Rename to ...
18035 (_initialize_target): ... this.
18036 * target.h: Include "gdbsupport/refcounted-object.h".
18037 (struct target_ops): Inherit refcounted_object.
18038 (target_ops::shortname, target_ops::longname): Make const.
18039 (target_ops::async_wait_fd): New method.
18040 (decref_target): Declare.
18041 (struct target_ops_ref_policy): New.
18042 (target_ops_ref): New typedef.
18043 (get_dummy_target): Declare function.
18044 (target_is_pushed): Return bool.
18045 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18046 (all_matching_threads_iterator::all_matching_threads_iterator):
18047 Handle filter target.
18048 * thread-iter.h (struct all_matching_threads_iterator, struct
18049 all_matching_threads_range, class all_non_exited_threads_range):
18050 Filter by target too. Remove explicit.
18051 * thread.c (threads_executing): Delete.
18052 (inferior_thread): Pass down current inferior.
18053 (clear_thread_inferior_resources): Pass down thread pointer
18054 instead of ptid_t.
18055 (add_thread_silent, add_thread_with_info, add_thread): Add
18056 process_stratum_target parameter. Use it for thread and inferior
18057 searches.
18058 (is_current_thread): New.
18059 (thread_info::deletable): Use it.
18060 (find_thread_ptid, thread_count, in_thread_list)
18061 (thread_change_ptid, set_resumed, set_running): New
18062 process_stratum_target parameter. Pass it down.
18063 (set_executing): New process_stratum_target parameter. Pass it
18064 down. Adjust reference to 'threads_executing'.
18065 (threads_are_executing): New process_stratum_target parameter.
18066 Adjust reference to 'threads_executing'.
18067 (set_stop_requested, finish_thread_state): New
18068 process_stratum_target parameter. Pass it down.
18069 (switch_to_thread): Also match inferior.
18070 (switch_to_thread): New process_stratum_target parameter. Pass it
18071 down.
18072 (update_threads_executing): Reimplement.
18073 * top.c (quit_force): Pop targets from all inferior.
18074 (gdb_init): Don't call initialize_targets.
18075 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18076 Declare.
18077 (windows_add_thread, windows_delete_thread): Adjust.
18078 (get_windows_debug_event): Rename to ...
18079 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18080 * tracefile-tfile.c (tfile_target_open): Pass down target.
18081 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18082 Forward declare.
18083 (switch_to_thread): Add process_stratum_target parameter.
18084 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18085 parameter. Use it.
18086 (mi_on_resume): Pass target down.
18087 * nat/fork-inferior.c (startup_inferior): Add
18088 process_stratum_target parameter. Pass it down.
18089 * nat/fork-inferior.h (startup_inferior): Add
18090 process_stratum_target parameter.
18091 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18092
18093 2020-01-10 Pedro Alves <palves@redhat.com>
18094
18095 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18096 directly. Instead find the first thread in the thread list and
18097 use switch_to_thread.
18098
18099 2020-01-10 Pedro Alves <palves@redhat.com>
18100
18101 * remote.c (remote_target::remote_add_inferior): Don't bind a
18102 process to the current inferior if the current inferior is already
18103 bound to a process.
18104
18105 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18106 Pedro Alves <palves@redhat.com>
18107
18108 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18109 If no process is specified, return null_ptid instead of
18110 inferior_ptid.
18111 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18112 TARGET_WAITKIND_SIGNALLED with no pid.
18113
18114 2020-01-10 Pedro Alves <palves@redhat.com>
18115
18116 * remote.c (first_remote_resumed_thread): New.
18117 (remote_target::wait_as): Use it as default event_ptid instead of
18118 inferior_ptid.
18119
18120 2020-01-10 Pedro Alves <palves@redhat.com>
18121
18122 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18123
18124 2020-01-10 Pedro Alves <palves@redhat.com>
18125
18126 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18127 not -1.
18128
18129 2020-01-10 Pedro Alves <palves@redhat.com>
18130
18131 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18132 ptid to get_last_target_status.
18133 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18134 ptid to get_last_target_status.
18135 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18136 get_last_target_status.
18137 (info_program_command): Don't pass a target_waitstatus to
18138 get_last_target_status.
18139 * infrun.c (init_wait_for_inferior): Use
18140 nullify_last_target_wait_ptid.
18141 (get_last_target_status): Handle nullptr arguments.
18142 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18143 (print_stop_event): Don't pass a ptid to get_last_target_status.
18144 (normal_stop): Don't pass a ptid to get_last_target_status.
18145 * infrun.h (get_last_target_status, set_last_target_status): Move
18146 comments here and update.
18147 (nullify_last_target_wait_ptid): Declare.
18148 * linux-fork.c (fork_load_infrun_state): Remove local extern
18149 declaration of nullify_last_target_wait_ptid.
18150 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18151 to get_last_target_status.
18152
18153 2020-01-10 Pedro Alves <palves@redhat.com>
18154
18155 * gdbthread.h (scoped_restore_current_thread)
18156 <dont_restore, restore, m_dont_restore>: Declare.
18157 * thread.c (thread_alive): Add assertion. Return bool.
18158 (switch_to_thread_if_alive): New.
18159 (prune_threads): Switch inferior/thread.
18160 (print_thread_info_1): Switch thread before calling target methods.
18161 (scoped_restore_current_thread::restore): New, factored out from
18162 ...
18163 (scoped_restore_current_thread::~scoped_restore_current_thread):
18164 ... this.
18165 (scoped_restore_current_thread::scoped_restore_current_thread):
18166 Add assertion.
18167 (thread_apply_all_command, thread_select): Use
18168 switch_to_thread_if_alive.
18169 * infrun.c (proceed, restart_threads, handle_signal_stop)
18170 (switch_back_to_stepped_thread): Switch current thread before
18171 calling target methods.
18172
18173 2020-01-10 Pedro Alves <palves@redhat.com>
18174
18175 * inferior.c (switch_to_inferior_no_thread): New function,
18176 factored out from ...
18177 (inferior_command): ... here.
18178 * inferior.h (switch_to_inferior_no_thread): Declare.
18179 * mi/mi-main.c (run_one_inferior): Use
18180 switch_to_inferior_no_thread.
18181
18182 2020-01-10 Pedro Alves <palves@redhat.com>
18183
18184 * infcmd.c (kill_command): Remove dead code.
18185
18186 2020-01-10 Pedro Alves <palves@redhat.com>
18187
18188 * remote.c (remote_target::mourn_inferior): No longer check
18189 whether the target is running.
18190
18191 2020-01-10 Pedro Alves <palves@redhat.com>
18192
18193 * corelow.c (core_target::has_execution): Change parameter type to
18194 inferior pointer.
18195 * inferior.c (number_of_live_inferiors): Use
18196 inferior::has_execution instead of target_has_execution_1.
18197 * inferior.h (inferior::has_execution): New.
18198 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18199 inferior::has_execution instead of target_has_execution_1.
18200 * process-stratum-target.c
18201 (process_stratum_target::has_execution): Change parameter type to
18202 inferior pointer. Check the inferior's PID instead of
18203 inferior_ptid.
18204 * process-stratum-target.h
18205 (process_stratum_target::has_execution): Change parameter type to
18206 inferior pointer.
18207 * record-full.c (record_full_core_target::has_execution): Change
18208 parameter type to inferior pointer.
18209 * target.c (target_has_execution_1): Change parameter type to
18210 inferior pointer.
18211 (target_has_execution_current): Adjust.
18212 * target.h (target_ops::has_execution): Change parameter type to
18213 inferior pointer.
18214 (target_has_execution_1): Change parameter type to inferior
18215 pointer. Change return type to bool.
18216 * tracefile.h (tracefile_target::has_execution): Change parameter
18217 type to inferior pointer.
18218
18219 2020-01-10 Pedro Alves <palves@redhat.com>
18220
18221 * exceptions.c (print_flush): Remove current_top_target() check.
18222
18223 2020-01-10 Pedro Alves <palves@redhat.com>
18224
18225 * remote.c (show_remote_exec_file): Show the current inferior's
18226 exec-file instead of the command variable's value.
18227
18228 2020-01-10 Pedro Alves <palves@redhat.com>
18229
18230 * record-full.c (record_full_resume_ptid): New global.
18231 (record_full_target::resume): Set it.
18232 (record_full_wait_1): Use record_full_resume_ptid instead of
18233 inferior_ptid.
18234
18235 2020-01-10 Pedro Alves <palves@redhat.com>
18236
18237 * gdbthread.h (scoped_restore_current_thread)
18238 <dont_restore, restore, m_dont_restore>: Declare.
18239 * thread.c (thread_alive): Add assertion. Return bool.
18240 (switch_to_thread_if_alive): New.
18241 (prune_threads): Switch inferior/thread.
18242 (print_thread_info_1): Switch thread before calling target methods.
18243 (scoped_restore_current_thread::restore): New, factored out from
18244 ...
18245 (scoped_restore_current_thread::~scoped_restore_current_thread):
18246 ... this.
18247 (scoped_restore_current_thread::scoped_restore_current_thread):
18248 Add assertion.
18249 (thread_apply_all_command, thread_select): Use
18250 switch_to_thread_if_alive.
18251
18252 2020-01-10 George Barrett <bob@bob131.so>
18253
18254 * stap-probe.c (stap_modify_semaphore): Don't check for null
18255 semaphores.
18256 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18257 for null semaphores.
18258
18259 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18260
18261 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18262 all source windows, and maintain horizontal scroll status while
18263 doing so.
18264
18265 2020-01-09 Tom Tromey <tom@tromey.com>
18266
18267 PR tui/18932:
18268 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18269 update_source_window, not print_source_lines.
18270
18271 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18272
18273 * tui/tui.c (tui_enable): Register tui hooks after calling
18274 tui_display_main.
18275
18276 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18277
18278 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18279
18280 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18281
18282 * thread.c (print_thread_info_1): Fix indentation.
18283
18284 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18285
18286 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18287 unique_xmalloc_ptr outside the if to always free the demangled name.
18288
18289 2020-01-08 Tom Tromey <tromey@adacore.com>
18290
18291 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18292 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18293 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18294 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18295 Remove.
18296 (section_offsets): New typedef.
18297 * symtab.c (fixup_section, get_msymbol_address): Update.
18298 * symmisc.c (dump_msymbols): Update.
18299 * symfile.h (relative_addr_info_to_section_offsets)
18300 (symfile_map_offsets_to_segments): Update.
18301 * symfile.c (build_section_addr_info_from_objfile)
18302 (init_objfile_sect_indices): Update.
18303 (struct place_section_arg): Change type of "offsets".
18304 (place_section): Update.
18305 (relative_addr_info_to_section_offsets): Change type of
18306 "section_offsets". Remove "num_sections" parameter.
18307 (default_symfile_offsets, syms_from_objfile_1)
18308 (set_objfile_default_section_offset): Update.
18309 (reread_symbols): No need to preserve section offsets by hand.
18310 (symfile_map_offsets_to_segments): Change type of "offsets".
18311 * stap-probe.c (relocate_address): Update.
18312 * stabsread.h (process_one_symbol): Update.
18313 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18314 (solib_target_relocate_section_addresses): Update.
18315 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18316 Update.
18317 * solib-frv.c (frv_relocate_main_executable): Update.
18318 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18319 * solib-aix.c (solib_aix_get_section_offsets): Change return
18320 type.
18321 (solib_aix_solib_create_inferior_hook): Update.
18322 * remote.c (remote_target::get_offsets): Update.
18323 * psymtab.c (find_pc_sect_psymtab): Update.
18324 * psympriv.h (struct partial_symbol) <address, text_low,
18325 text_high>: Update.
18326 * objfiles.h (obj_section_offset): Update.
18327 (struct objfile) <section_offsets>: Change type.
18328 <num_sections>: Remove.
18329 (objfile_relocate): Update.
18330 * objfiles.c (entry_point_address_query): Update
18331 (relocate_one_symbol): Change type of "section_offsets".
18332 (objfile_relocate1, objfile_relocate1): Change type of
18333 "new_offsets".
18334 (objfile_rebase1): Update.
18335 * mipsread.c (mipscoff_symfile_read): Update.
18336 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18337 parameter.
18338 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18339 (parse_external, psymtab_to_symtab_1): Update.
18340 * machoread.c (macho_symfile_offsets): Update.
18341 * ia64-tdep.c (ia64_find_unwind_table): Update.
18342 * hppa-tdep.c (read_unwind_info): Update.
18343 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18344 * dwarf2read.c (create_addrmap_from_index)
18345 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18346 (process_psymtab_comp_unit_reader, add_partial_symbol)
18347 (add_partial_subprogram, process_full_comp_unit)
18348 (read_file_scope, read_func_scope, read_lexical_block_scope)
18349 (read_call_site_scope, dwarf2_rnglists_process)
18350 (dwarf2_ranges_process, dwarf2_ranges_read)
18351 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18352 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18353 Update.
18354 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18355 Update.
18356 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18357 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18358 (process_one_symbol): Change type of "section_offsets".
18359 * ctfread.c (get_objfile_text_range): Update.
18360 * coffread.c (coff_symtab_read, enter_linenos)
18361 (process_coff_symbol): Update.
18362 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18363 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18364
18365 2020-01-08 Tom Tromey <tromey@adacore.com>
18366
18367 * dwarf2read.c (parse_macro_definition): Use std::string.
18368 (parse_macro_definition): Likewise.
18369
18370 2020-01-08 Tom Tromey <tromey@adacore.com>
18371
18372 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18373 (ATTR_ALLOC_CHUNK): Remove.
18374
18375 2020-01-08 Tom Tromey <tromey@adacore.com>
18376
18377 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18378
18379 2020-01-08 Tom Tromey <tromey@adacore.com>
18380
18381 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18382 (dwarf2_compute_name, open_dwo_file): Likewise.
18383 (process_enumeration_scope): Use std::vector.
18384 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18385 (partial_die_info::fixup, dwarf2_start_subfile)
18386 (guess_full_die_structure_name, dwarf2_name): Likewise.
18387 (determine_prefix): Update.
18388 (guess_full_die_structure_name): Make return type const.
18389 (partial_die_full_name): Return unique_xmalloc_ptr.
18390 (DW_FIELD_ALLOC_CHUNK): Remove.
18391
18392 2020-01-07 Tom Tromey <tromey@adacore.com>
18393
18394 PR build/24937:
18395 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18396
18397 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18398
18399 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18400
18401 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18402
18403 * stack.c (print_frame_info): Move disassemble_next_line code
18404 inside source_print block.
18405
18406 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18407
18408 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18409 gdb/signals.h, as we are now using native signal symbols.
18410
18411 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18412
18413 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18414 overflow by an early check of content vs threshold.
18415 * tui/tui-source.c (tui_source_window::line_is_displayed):
18416 Likewise.
18417
18418 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18419
18420 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18421
18422 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18423
18424 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18425 export table if no section contains it's RVA.
18426
18427 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18428
18429 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18430
18431 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18432
18433 * source.c (print_source_lines_base): Set last_line_listed.
18434
18435 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18436
18437 * tui/tui-disasm.c: Remove trailing spaces.
18438
18439 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18440 Pedro Alves <palves@redhat.com>
18441
18442 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18443 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18444 (windows_gdb_signal_to_target): New function, uses the above
18445 enumeration to convert GDB internal signal codes to equivalent
18446 Windows codes.
18447 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18448 * windows-nat.c: Include "gdb_wait.h".
18449 (get_windows_debug_event): Extract the fatal exception from the
18450 exit status and convert to the equivalent Posix signal number.
18451 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18452 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18453 * gdbsupport/gdb_wait.c: New file, implements
18454 windows_status_to_termsig.
18455 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18456 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18457
18458 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18459
18460 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18461 show_layout.
18462
18463 2020-01-05 Luis Machado <luis.machado@linaro.org>
18464
18465 * aarch64-linux-nat.c
18466 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18467 and bfd_mach_aarch64.
18468
18469 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18470
18471 * ui-file.c (stdio_file::can_emit_style_escape)
18472 (tee_file::can_emit_style_escape): Ensure style is used also on
18473 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18474 to gdb_stdout.
18475 * main.c (set_gdb_data_directory): Use file style to output the
18476 warning that the given pathname is not a directory.
18477 * top.c (show_history_filename, gdb_safe_append_history)
18478 (show_gdb_datadir): Use file style.
18479
18480 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18481
18482 * solib-target.c (struct lm_info_target):
18483 Change offsets to be a unique_xmalloc_ptr.
18484 (solib_target_relocate_section_addresses): Update.
18485
18486 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18487
18488 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18489
18490 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18491
18492 * MAINTAINERS (Write After Approval): Add myself.
18493
18494 2020-01-02 Luis Machado <luis.machado@linaro.org>
18495
18496 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18497 Cell BE architecture.
18498 * target.h (struct target_ops) <thread_architecture>: Likewise.
18499
18500 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18501
18502 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18503
18504 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18505
18506 * MAINTAINERS (Write After Approval): Add myself.
18507
18508 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18509
18510 * gdbarch.sh: Update copyright year range of generated files.
18511
18512 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18513
18514 Update copyright year range in all GDB files.
18515
18516 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18517
18518 * copyright.py: Convert to Python 3.
18519
18520 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18521
18522 * copyright.py: Adapt after move of gnulib directory from gdb
18523 directory to toplevel directory.
18524
18525 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18526
18527 * copyright.py (main): Exit if run from the wrong directory.
18528
18529 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18530
18531 * top.c (print_gdb_version): Change copyright year to 2020.
18532
18533 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18534
18535 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18536
18537 For older changes see ChangeLog-2019.
18538 \f
18539 Local Variables:
18540 mode: change-log
18541 left-margin: 8
18542 fill-column: 74
18543 version-control: never
18544 coding: utf-8
18545 End:
This page took 0.399861 seconds and 5 git commands to generate.