]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
c961d72a66ccd88ef5d7e0600ee1d4b1f6c26a1a
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
2
3 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
4 * configure.host (host to gdb names): Add arc*-*-linux*.
5 * configure.nat (gdb_host_cpu): Add arc.
6 * arc-linux-nat.c: New.
7
8 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
9
10 * arc-linux-tdep.c (supply_register): New.
11 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
12 arc_linux_collect_v2_regset): Consider REGNUM.
13
14 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
15
16 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
17 (arc_linux_is_sigtramp): New function.
18 (arc_linux_sigcontext_addr): Likewise.
19 (arc_linux_init_osabi): Use them.
20
21 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
22
23 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
24 (arc_sigtramp_frame_this_id): Likewise.
25 (arc_sigtramp_frame_prev_register): Likewise.
26 (arc_sigtramp_frame_sniffer): Likewise.
27 (arc_siftramp_frame_unwind): New global variable.
28 (arc_gdbarch_init): Use sigtramp capabilities.
29 (arc_dump_tdep): Print sigtramp fields.
30 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
31
32 2020-12-21 Tom Tromey <tom@tromey.com>
33
34 * expression.h (enum noside): Move earlier.
35
36 2020-12-21 Peter Waller <p@pwaller.net>
37
38 * interps.c (interpreter_exec_cmd): Restore streams pointers.
39
40 2020-12-21 Markus Metzger <markus.t.metzger@intel.com>
41
42 * record.c (require_record_target): Rephrase error message.
43 (info_record_command): Likewise.
44
45 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
46
47 PR exp/27070
48 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
49
50 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
51
52 * configure.ac: Move the static libs vs. source-highlight
53 error message to a better place.
54 * configure: Regenerate.
55
56 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
57
58 * gdb-gdb.py.in: Fix main_type field name.
59
60 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
61
62 * python/py-value.c (valpy_format_string): Implement address keyword.
63
64 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
65
66 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
67
68 2020-12-18 Jameson Nash <vtjnash@gmail.com>
69
70 * coffread.c (linetab_offset): Change type to file_ptr.
71 (linetab_size): Likewise.
72 (enter_linenos): Change parameter type to file_ptr.
73 (init_lineno): Likewise.
74 (init_stringtab): Likewise.
75 (coff_symtab_read): Likewise.
76 (coff_symfile_read): Change variable types to file_ptr.
77
78 2020-12-17 Tom Tromey <tromey@adacore.com>
79
80 * printcmd.c (print_variable_and_value): Don't use n_spaces.
81
82 2020-12-17 Tom Tromey <tromey@adacore.com>
83
84 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
85 (print_gnat_stuff, print_fixed_point_type_info)
86 (recursive_dump_type): Update.
87 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
88 * c-typeprint.c (c_type_print_base_struct_union)
89 (c_type_print_base_1): Update.
90 * rust-lang.c (rust_internal_print_type): Update.
91 * f-typeprint.c (f_language::f_type_print_base): Update.
92 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
93 * m2-typeprint.c (m2_record_fields): Update.
94 * p-typeprint.c (pascal_type_print_base): Update.
95 * compile/compile-loc2c.c (push, pushf, unary, binary)
96 (do_compile_dwarf_expr_to_c): Update.
97 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
98
99 2020-12-16 Tom Tromey <tom@tromey.com>
100
101 * rust-exp.y (rust_lex_tests): Update.
102 * parser-defs.h (parser_state): Add void_p parameter.
103 <void_context_p>: New member.
104 * parse.c (parse_exp_in_context): Update.
105 * language.h (language_defn::post_parser): Remove void_context_p,
106 completing, tracker parameters. Add parser state.
107 * ada-lang.c (ada_language::post_parser): Update.
108
109 2020-12-16 Tom Tromey <tom@tromey.com>
110
111 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
112 (parse_exp_in_context): Change void_context_p to bool.
113 * language.h (struct language_defn) <post_parser>: Change
114 void_context_p to bool.
115 * ada-lang.c (class ada_language) <post_parser>: Update.
116
117 2020-12-16 Tom Tromey <tom@tromey.com>
118 Tom Tromey <tromey@redhat.com>
119 Tom de Vries <tdevries@suse.de>
120
121 * utils.h (get_chars_per_line): Declare.
122 * utils.c (get_chars_per_line): New function.
123 (fputs_maybe_filtered): Handle '\r'.
124 * ui-out.h (ui_out::progress_meter): New class.
125 (ui_out::progress, ui_out::do_progress_start)
126 (ui_out::do_progress_notify, ui_out::do_progress_end): New
127 methods.
128 * ui-out.c (do_progress_end)
129 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
130 functions.
131 * mi/mi-out.h (mi_ui_out::do_progress_start)
132 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
133 methods.
134 * cli-out.h (struct cli_ui_out) <do_progress_start,
135 do_progress_notify, do_progress_end>: New methods.
136 <enum meter_stat, struct cli_progress_info>: New.
137 <m_meters>: New member.
138 * cli-out.c (cli_ui_out::do_progress_start)
139 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
140 methods.
141
142 2020-12-16 Luis Machado <luis.machado@linaro.org>
143
144 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
145
146 2020-12-16 Luis Machado <luis.machado@linaro.org>
147
148 * aarch64-linux-nat.c
149 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
150
151 2020-12-15 Rae Kim <rae.kim@gmail.com>
152
153 * cli/cli-script.c (do_document_command): Rename from
154 document_command. Handle multi-line input.
155 (multi_line_command_p): Handle document_control.
156 (build_command_line): Likewise.
157 (execute_control_command_1): Likewise.
158 (process_next_line): Likewise.
159 (document_command): Call do_document_command.
160 * cli/cli-script.h (enum command_control_type): Add
161 document_control.
162
163 2020-12-15 Tom Tromey <tom@tromey.com>
164
165 * stap-probe.c (stap_probe::evaluate_argument): Use
166 evaluate_expression.
167 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
168 evaluate_expression.
169 * value.h (evaluate_expression): Add expect_type parameter.
170 * objc-lang.c (print_object_command): Call evaluate_expression.
171 * eval.c (evaluate_expression): Add expect_type parameter.
172
173 2020-12-15 Tom Tromey <tom@tromey.com>
174
175 * varobj.c (varobj_create): Use first_opcode.
176 * value.c (init_if_undefined_command): Use first_opcode.
177 * typeprint.c (whatis_exp): Use first_opcode.
178 * tracepoint.c (validate_actionline): Use first_opcode.
179 (encode_actions_1): Use first_opcode.
180 * stack.c (return_command): Use first_opcode.
181 * expression.h (struct expression) <first_opcode>: New method.
182 * eval.c (parse_and_eval_type): Use first_opcode.
183 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
184
185 2020-12-15 Tom Tromey <tom@tromey.com>
186
187 * f-lang.c (evaluate_subexp_f): Update.
188 * expression.h (evaluate_subexp_do_call): Update.
189 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
190 nargs, argvec with array_view.
191 (evaluate_funcall): Update.
192
193 2020-12-15 Tom Tromey <tom@tromey.com>
194
195 * ada-lang.c (num_component_specs): Remove.
196 (assign_aggregate): Update.
197 (aggregate_assign_positional, aggregate_assign_from_choices)
198 (aggregate_assign_others, add_component_interval): Change
199 arguments.
200
201 2020-12-15 Tom Tromey <tromey@adacore.com>
202
203 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
204 command names.
205
206 2020-12-14 Tom Tromey <tom@tromey.com>
207
208 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
209 * typeprint.c (whatis_exp): Always use evaluate_type.
210 (maintenance_print_type): Likewise. Simplify.
211
212 2020-12-14 Tom Tromey <tromey@adacore.com>
213
214 * dictionary.c (language_defn::search_name_hash): Ignore "B".
215 * ada-lang.c (advance_wild_match): Ignore "B".
216 (full_match): Remove.
217 (do_full_match): Rewrite.
218
219 2020-12-14 Tom Tromey <tromey@adacore.com>
220
221 * ada-lang.c (get_var_value): Only consider exact matches.
222
223 2020-12-14 Tom Tromey <tromey@adacore.com>
224
225 * dwarf2/read.c (rewrite_array_type): New function.
226 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
227
228 2020-12-14 Tom Tromey <tromey@adacore.com>
229
230 * valarith.c (fixed_point_binop): Call error on division by zero.
231
232 2020-12-13 Tom Tromey <tom@tromey.com>
233
234 * gdbtypes.c (safe_parse_type): Make argument const.
235 * value.h (parse_and_eval_type): Make argument const.
236 * eval.c (parse_and_eval_type): Make argument const.
237
238 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
239
240 * NEWS: Mention new commands.
241 * target-dcache.c: Add 'cli/cli-cmds.h' include.
242 (maint_flush_dcache_command): New function.
243 (_initialize_target_dcache): Create new 'maint flush dcache'
244 command.
245
246 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * NEWS: Mention new commands, and that the old commands are now
249 deprecated.
250 * cli/cli-cmds.c (maintenanceflushlist): Define.
251 * cli/cli-cmds.h (maintenanceflushlist): Declare.
252 * maint.c (_initialize_maint_cmds): Initialise
253 maintenanceflushlist.
254 * regcache.c: Add 'cli/cli-cmds.h' include.
255 (reg_flush_command): Add header comment.
256 (_initialize_regcache): Create new 'maint flush register-cache'
257 command, make 'flushregs' an alias.
258 * symtab.c: Add 'cli/cli-cmds.h' include.
259 (_initialize_symtab): Create new 'maint flush symbol-cache'
260 command, make old command an alias.
261
262 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
265 result from lookup_cmd_composition_1, use the prefixes from both
266 the command and the alias instead.
267 (lookup_cmd_composition_1): Initial prefix command is the based on
268 the search list being passed in. Simplify the logic for tracking
269 the prefix command. Replace a use of alloca with a local
270 std::string.
271
272 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
273
274 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
275 of NULL. Don't print message piece by piece, but sentence at a
276 time to allow internationalisation. Some whitespace cleanup.
277
278 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
279
280 PR cli/15104
281 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
282 deprecated_cmd_warning.
283 (deprecated_cmd_warning): Take extra parameter, call
284 lookup_cmd_composition_1 and pass new parameter through.
285 (lookup_cmd_composition_1): New function, takes implementation of
286 lookup_cmd_composition but with extra parameter.
287 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
288 passing in cmdlist.
289 * command.h (deprecated_cmd_warning): Add extra parameter to
290 declaration.
291 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
292
293 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
294
295 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
296 command.h, add extra parameter, and use this to guard giving a
297 warning.
298 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
299 include argument names in declaration, add new argument.
300 * completer.c (complete_line_internal_1): Remove unneeded
301 brackets, pass extra argument to lookup_cmd_1.
302
303 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
304
305 * infrun.h (debug_infrun): Make a bool.
306 * infrun.c (debug_infrun): Make a bool.
307 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
308 debug infrun".
309
310 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
311
312 * displaced-stepping.h (displaced_debug_printf): Use
313 debug_prefixed_printf_cond.
314 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
315 (dwarf_read_debug_printf_v): Likewise.
316 * infrun.h (infrun_debug_printf): Likewise.
317 * linux-nat.c (linux_nat_debug_printf): Likewise.
318
319 2020-12-11 Tom Tromey <tom@tromey.com>
320
321 * p-exp.y (intvar): Remove global.
322 (DOLLAR_VARIABLE): Change type.
323 (start): Update.
324 (exp): Call write_dollar_variable here...
325 (yylex): ... not here.
326 * m2-exp.y (DOLLAR_VARIABLE): Change type.
327 (variable): Call write_dollar_variable here...
328 (yylex): ... not here.
329 * f-exp.y (DOLLAR_VARIABLE): Change type.
330 (exp): Call write_dollar_variable here...
331 (yylex): ... not here.
332
333 2020-12-11 Tom Tromey <tom@tromey.com>
334
335 * varobj.c (varobj_create): Update.
336 (install_variable): Return void.
337
338 2020-12-11 Tom Tromey <tom@tromey.com>
339
340 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
341
342 2020-12-11 Tom Tromey <tom@tromey.com>
343
344 * varobj.c (varobj_clear_saved_item): Remove.
345 (update_dynamic_varobj_children): Update.
346 (varobj::~varobj): Don't call varobj_clear_saved_item.
347
348 2020-12-11 Tom Tromey <tom@tromey.com>
349
350 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
351 (update_dynamic_varobj_children, create_child)
352 (create_child_with_value): Update.
353 * varobj-iter.h (struct varobj_item) <value>: Now a
354 value_ref_ptr.
355 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
356
357 2020-12-11 Tom Tromey <tom@tromey.com>
358
359 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
360 (varobj_get_iterator): Return unique_ptr.
361 (update_dynamic_varobj_children, install_visualizer)
362 (varobj::~varobj): Update.
363 * python/python-internal.h (py_varobj_get_iterator): Return
364 unique_ptr.
365 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
366
367 2020-12-11 Tom Tromey <tom@tromey.com>
368
369 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
370 (varobj_clear_saved_item, update_dynamic_varobj_children):
371 Update.
372
373 2020-12-11 Tom Tromey <tom@tromey.com>
374
375 * varobj.c (update_dynamic_varobj_children): Update.
376 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
377 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
378 type.
379 (py_varobj_iter::next): Likewise.
380
381 2020-12-11 Tom Tromey <tom@tromey.com>
382
383 * varobj.c (update_dynamic_varobj_children, install_visualizer)
384 (varobj::~varobj): Update.
385 * varobj-iter.h (struct varobj_iter): Change to interface class.
386 (struct varobj_iter_ops): Remove.
387 (varobj_iter_next, varobj_iter_delete): Remove.
388 * python/py-varobj.c (struct py_varobj_iter): Derive from
389 varobj_iter. Add constructor, destructor. Rename members.
390 (py_varobj_iter::~py_varobj_iter): Rename from
391 py_varobj_iter_dtor.
392 (py_varobj_iter::next): Rename from py_varobj_iter_next.
393 (py_varobj_iter_ops): Remove.
394 (py_varobj_iter): Rename from py_varobj_iter_ctor.
395 (py_varobj_iter_new): Remove.
396 (py_varobj_get_iterator): Update.
397
398 2020-12-11 Tom Tromey <tom@tromey.com>
399
400 * varobj.h (all_root_varobjs): Take a function_view.
401 * varobj.c (all_root_varobjs): Take a function_view.
402 (varobj_invalidate_iter): Remove unused parameter.
403 (varobj_invalidate): Update.
404 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
405 (mi_cmd_var_update_iter): Change parameters.
406
407 2020-12-11 Tom Tromey <tom@tromey.com>
408
409 * varobj.c (struct varobj_root) <next>: Remove.
410 (struct vlist): Remove.
411 (rootlist): Now a std::list.
412 (install_variable, uninstall_variable, all_root_varobjs): Update.
413
414 2020-12-11 Tom Tromey <tom@tromey.com>
415
416 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
417 (varobj_table): Now htab_t.
418 (varobj_get_handle, install_variable, uninstall_variable):
419 Update.
420 (hash_varobj, eq_varobj_and_string): New functions.
421 (hash_varobj): Update.
422
423 2020-12-11 Tom Tromey <tom@tromey.com>
424
425 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
426 * ada-lang.c (check_status_exception): Update.
427 * breakpoint.c (free_bp_location): Remove.
428 (decref_bp_location): Use bp_location_ref_policy.
429 (bpstats::bpstats): Don't call incref_bp_location.
430 (bpstats::~bpstats): Remove.
431 (bpstats::bpstats): Update.
432 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
433 (bp_location::bp_location): Update.
434 (incref_bp_location): Remove.
435 (bkpt_print_it): Update.
436 * breakpoint.h (class bp_location): Derive from
437 refcounted_object.
438 (struct bpstats): Remove destructor.
439 <bp_location_at>: Now a bp_location_ref_ptr.
440 <refc>: Remove.
441 (bp_location_ref_ptr): New typedef.
442 (struct bp_location_ref_policy): New.
443
444 2020-12-11 Tom Tromey <tom@tromey.com>
445
446 * thread.c (class scoped_inc_dec_ref): Remove.
447 (tp_array_compar_ascending, tp_array_compar_descending): Change
448 parameter types.
449 (thread_apply_all_command): Use thread_info_ref.
450
451 2020-12-11 Tom Tromey <tom@tromey.com>
452
453 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
454 (stop_context::stop_context): Update.
455 (stop_context::~stop_context): Remove.
456
457 2020-12-11 Tom Tromey <tom@tromey.com>
458
459 * inferior.c (current_inferior_): Change type.
460 (current_inferior, set_current_inferior, initialize_inferiors):
461 Update.
462
463 2020-12-11 Tom Tromey <tom@tromey.com>
464
465 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
466 Change type.
467
468 2020-12-11 Tom Tromey <tromey@adacore.com>
469
470 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
471 field.
472 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
473 (read_atcb): Use cpu_id_offset.
474
475 2020-12-10 Kevin Buettner <kevinb@redhat.com>
476
477 * ada-lang.c (ada_fold_name): Fix off-by-one error.
478
479 2020-12-10 Luis Machado <luis.machado@linaro.org>
480
481 * breakpoint.c (should_be_inserted): Don't output newline.
482
483 2020-12-10 Luis Machado <luis.machado@linaro.org>
484
485 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
486 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
487 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
488 * arch/aarch64.h: ... here.
489 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
490 (aarch64_maybe_swab128): New function.
491 (aarch64_sve_regs_copy_to_reg_buf)
492 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
493 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
494 the data field.
495 (TF_REG_VALUE_BYTES): New enum value.
496 (trad_frame_value_bytes_p): New function.
497 (trad_frame_set_value_bytes): New function.
498 (trad_frame_set_reg_value_bytes): New function.
499 (trad_frame_get_prev_register): Handle register values saved as bytes.
500 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
501 (struct trad_frame_saved_reg) <data>: New field.
502 (trad_frame_set_value_bytes): New prototype.
503 (trad_frame_value_bytes_p): New prototype.
504
505 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
506
507 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
508 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
509 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
510
511 2020-12-09 Tom Tromey <tromey@adacore.com>
512
513 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
514
515 2020-12-09 Tom Tromey <tromey@adacore.com>
516
517 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
518 and "denominator" to gdb_mpz. Handle block forms.
519 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
520 "denominator" to gdb_mpz.
521 (finish_fixed_point_type): Update.
522 (has_zero_over_zero_small_attribute): Update.
523
524 2020-12-09 Tom Tromey <tromey@adacore.com>
525
526 * expprint.c (op_name): Update.
527 * expression.h (enum exp_opcode): Update.
528 * std-operator.def: Add more opcodes.
529 * ada-operator.def, fortran-operator.def: Remove, moving contents
530 into std-operator.def.
531
532 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
533
534 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
535 Return {} instead of false.
536 (get_discrete_bounds): Compute high bound only if low bound is
537 valid.
538
539 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
540
541 PR 26875, PR 26901
542 * gdbtypes.c (get_discrete_low_bound): Make non-static.
543 (get_discrete_high_bound): Make non-static.
544 * gdbtypes.h (get_discrete_low_bound): New declaration.
545 (get_discrete_high_bound): New declaration.
546 * valarith.c (value_subscript): Only fetch high bound if
547 necessary.
548
549 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
550
551 * gdbtypes.c (get_discrete_bounds): Implement with
552 get_discrete_low_bound and get_discrete_high_bound.
553 (get_discrete_low_bound): New.
554 (get_discrete_high_bound): New.
555
556 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
557
558 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
559 callers.
560 * gdbtypes.c (get_discrete_bounds): Return bool.
561
562 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
563
564 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
565 (ada_value_slice): Adjust.
566 (pos_atr): Adjust.
567 * gdbtypes.c (get_discrete_bounds): Adjust.
568 (discrete_position): Return optional.
569 * gdbtypes.h (discrete_position): Return optional.
570
571 2020-12-07 Tom Tromey <tromey@adacore.com>
572
573 * maint.c (_initialize_maint_cmds): Use expression command
574 completer for "maint print type".
575
576 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577
578 * completer.c (complete_explicit_location): Also add keywords
579 that start with '-' to the completion list.
580
581 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
582
583 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
584 keyword may be followed by any keyword.
585 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
586 'toklen' in the case for "-force-condition".
587
588 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
589
590 * main.c (catch_command_errors): Add a flag parameter; invoke
591 `bpstat_do_actions` if the flag is set.
592 (execute_cmdargs): Update a call to `catch_command_errors`.
593
594 2020-12-07 Tom de Vries <tdevries@suse.de>
595
596 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
597
598 2020-12-06 Tom Tromey <tom@tromey.com>
599
600 PR ada/26999
601 * ada-lang.c (replace_operator_with_call): Rewrite.
602
603 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
604
605 PR breakpoints/27009
606 * s390-tdep.h (op_bc): Correct BC opcode value.
607
608 2020-12-06 Joel Brobecker <brobecker@adacore.com>
609
610 * gmp-utils.h (gdb_mpz::safe_export): New private method.
611 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
612 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
613 (gdb_mpz::safe_export): New method.
614 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
615 Update function description.
616 (check_as_integer_raises_out_of_range_error): New function.
617 (gdb_mpz_as_integer_out_of_range): New function.
618 (_initialize_gmp_utils_selftests): Register
619 gdb_mpz_as_integer_out_of_range as a selftest.
620
621 2020-12-05 Joel Brobecker <brobecker@adacore.com>
622
623 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
624 TARGET_CHAR_BIT.
625 (gdb_mpz::write): Likewise.
626
627 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
628
629 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
630 number of displaced step buffers.
631
632 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
633
634 * displaced-stepping.h (struct displaced_step_buffer): Rename
635 to...
636 (struct displaced_step_buffers): ... this.
637 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
638 <struct displaced_step_buffer>: New inner class.
639 <m_buffers>: New.
640 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
641 to...
642 (displaced_step_buffers::prepare): ... this, adjust for multiple
643 buffers.
644 (displaced_step_buffer::finish): Rename to...
645 (displaced_step_buffers::finish): ... this, adjust for multiple
646 buffers.
647 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
648 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
649 adjust for multiple buffers.
650 (displaced_step_buffer::restore_in_ptid): Rename to...
651 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
652 multiple buffers.
653 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
654 for num_disp_step_buffers.
655 * linux-tdep.c (struct linux_gdbarch_data)
656 <num_disp_step_buffers>: New field.
657 (struct linux_info) <disp_step_buf>: Rename to...
658 <disp_step_bufs>: ... this, change type to
659 displaced_step_buffers.
660 (linux_displaced_step_prepare): Use
661 linux_gdbarch_data::num_disp_step_buffers to create that number
662 of buffers.
663 (linux_displaced_step_finish): Adjust.
664 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
665 (linux_displaced_step_restore_all_in_ptid): Adjust.
666 (linux_init_abi): Change supports_displaced_step parameter for
667 num_disp_step_buffers, save it in linux_gdbarch_data.
668 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
669 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
670 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
671 supports_displaced_step parameter for num_disp_step_buffers.
672 (amd64_linux_init_abi): Adjust.
673 (amd64_x32_linux_init_abi): Adjust.
674 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
675 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
676 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
677 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
678 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
679 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
680 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
681 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
682 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
683 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
684 * m68k-linux-tdep.c (m68k_linux_init_abi):
685 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
686 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
687 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
688 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
689 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
690 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
691 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
692 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
693 Change type to displaced_step_buffers.
694 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
695 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
696 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
697 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
698 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
699 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
700 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
701
702 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
703
704 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
705 obkstack.
706 (_initialize_linux_tdep): Register pre-init gdb data instead of
707 post-init.
708
709 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
710
711 * displaced-stepping.h (struct
712 displaced_step_copy_insn_closure): Adjust comments.
713 (struct displaced_step_inferior_state) <step_thread,
714 step_gdbarch, step_closure, step_original, step_copy,
715 step_saved_copy>: Remove fields.
716 (struct displaced_step_thread_state): New.
717 (struct displaced_step_buffer): New.
718 * displaced-stepping.c (displaced_step_buffer::prepare): New.
719 (write_memory_ptid): Move from infrun.c.
720 (displaced_step_instruction_executed_successfully): New,
721 factored out of displaced_step_finish.
722 (displaced_step_buffer::finish): New.
723 (displaced_step_buffer::copy_insn_closure_by_addr): New.
724 (displaced_step_buffer::restore_in_ptid): New.
725 * gdbarch.sh (displaced_step_location): Remove.
726 (displaced_step_prepare, displaced_step_finish,
727 displaced_step_copy_insn_closure_by_addr,
728 displaced_step_restore_all_in_ptid): New.
729 * gdbarch.c: Re-generate.
730 * gdbarch.h: Re-generate.
731 * gdbthread.h (class thread_info) <displaced_step_state>: New
732 field.
733 (thread_step_over_chain_remove): New declaration.
734 (thread_step_over_chain_next): New declaration.
735 (thread_step_over_chain_length): New declaration.
736 * thread.c (thread_step_over_chain_remove): Make non-static.
737 (thread_step_over_chain_next): New.
738 (global_thread_step_over_chain_next): Use
739 thread_step_over_chain_next.
740 (thread_step_over_chain_length): New.
741 (global_thread_step_over_chain_enqueue): Add debug print.
742 (global_thread_step_over_chain_remove): Add debug print.
743 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
744 Remove.
745 * infrun.c (get_displaced_stepping_state): New.
746 (displaced_step_in_progress_any_inferior): Remove.
747 (displaced_step_in_progress_thread): Adjust.
748 (displaced_step_in_progress): Adjust.
749 (displaced_step_in_progress_any_thread): New.
750 (get_displaced_step_copy_insn_closure_by_addr): Remove.
751 (gdbarch_supports_displaced_stepping): Use
752 gdbarch_displaced_step_prepare_p.
753 (displaced_step_reset): Change parameter from inferior to
754 thread.
755 (displaced_step_prepare_throw): Implement using
756 gdbarch_displaced_step_prepare.
757 (write_memory_ptid): Move to displaced-step.c.
758 (displaced_step_restore): Remove.
759 (displaced_step_finish): Implement using
760 gdbarch_displaced_step_finish.
761 (start_step_over): Allow starting more than one displaced step.
762 (prepare_for_detach): Handle possibly multiple threads doing
763 displaced steps.
764 (handle_inferior_event): Handle possibility that fork event
765 happens while another thread displaced steps.
766 * linux-tdep.h (linux_displaced_step_prepare): New.
767 (linux_displaced_step_finish): New.
768 (linux_displaced_step_copy_insn_closure_by_addr): New.
769 (linux_displaced_step_restore_all_in_ptid): New.
770 (linux_init_abi): Add supports_displaced_step parameter.
771 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
772 (linux_displaced_step_prepare): New.
773 (linux_displaced_step_finish): New.
774 (linux_displaced_step_copy_insn_closure_by_addr): New.
775 (linux_displaced_step_restore_all_in_ptid): New.
776 (linux_init_abi): Add supports_displaced_step parameter,
777 register displaced step methods if true.
778 (_initialize_linux_tdep): Register inferior_execd observer.
779 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
780 supports_displaced_step parameter, adjust call to
781 linux_init_abi. Remove call to
782 set_gdbarch_displaced_step_location.
783 (amd64_linux_init_abi): Adjust call to
784 amd64_linux_init_abi_common.
785 (amd64_x32_linux_init_abi): Likewise.
786 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
787 linux_init_abi. Remove call to
788 set_gdbarch_displaced_step_location.
789 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
790 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
791 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
792 linux_init_abi.
793 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
794 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
795 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
796 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
797 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
798 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
799 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
800 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
801 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
802 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
803 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
804 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
805 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
806 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
807 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
808 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
809 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
810 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
811 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
812 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
813 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
814 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
815 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
816 linux_init_abi. Remove call to
817 set_gdbarch_displaced_step_location.
818 * arm-tdep.c (arm_pc_is_thumb): Call
819 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
820 get_displaced_step_copy_insn_closure_by_addr.
821 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
822 clear gdbarch methods.
823 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
824 (get_ppc_per_inferior): New function.
825 (ppc_displaced_step_prepare): New function.
826 (ppc_displaced_step_finish): New function.
827 (ppc_displaced_step_restore_all_in_ptid): New function.
828 (rs6000_gdbarch_init): Register new gdbarch methods.
829 * s390-tdep.c (s390_gdbarch_init): Don't call
830 set_gdbarch_displaced_step_location, set new gdbarch methods.
831
832 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
833
834 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
835 * aarch64-tdep.h: Include displaced-stepping.h.
836 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
837 Move here.
838 (displaced_step_copy_insn_closure_up): Move here.
839 (struct buf_displaced_step_copy_insn_closure): Move here.
840 (struct displaced_step_inferior_state): Move here.
841 (debug_displaced): Move here.
842 (displaced_debug_printf_1): Move here.
843 (displaced_debug_printf): Move here.
844 * displaced-stepping.c: New file.
845 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
846 * gdbarch.h: Re-generate.
847 * inferior.h: Include displaced-stepping.h.
848 * infrun.h (debug_displaced): Move to displaced-stepping.h.
849 (displaced_debug_printf_1): Likewise.
850 (displaced_debug_printf): Likewise.
851 (struct displaced_step_copy_insn_closure): Likewise.
852 (displaced_step_copy_insn_closure_up): Likewise.
853 (struct buf_displaced_step_copy_insn_closure): Likewise.
854 (struct displaced_step_inferior_state): Likewise.
855 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
856 (displaced_debug_printf_1): Likewise.
857 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
858 Likewise.
859 (_initialize_infrun): Don't register "set/show debug displaced".
860
861 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
862
863 * linux-tdep.c (get_linux_inferior_data): Add inferior
864 parameter.
865 (linux_vsyscall_range): Pass current inferior.
866
867 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
868
869 * infrun.c (displaced_step_prepare_throw): Change return type to
870 displaced_step_prepare_status.
871 (displaced_step_prepare): Likewise.
872 (displaced_step_finish): Change return type to
873 displaced_step_finish_status.
874 (resume_1): Adjust.
875 (stop_all_threads): Adjust.
876 * displaced-stepping.h: New file.
877
878 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
879
880 * infrun.c (displaced_step_fixup): Rename to...
881 (displaced_step_finish): ... this, update all callers.
882
883 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
884
885 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
886 (get_displaced_step_copy_insn_closure_by_addr): ... this.
887 Update all users.
888 (displaced_step_closure): Rename to...
889 (displaced_step_copy_insn_closure): ... this. Update all users.
890 (displaced_step_closure_up): Rename to...
891 (displaced_step_copy_insn_closure_up). ... this. Update all
892 users.
893 (buf_displaced_step_closure): Rename to...
894 (buf_displaced_step_copy_insn_closure): ... this. Update all
895 users.
896 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
897 (get_displaced_step_copy_insn_closure_by_addr): ... this.
898 Update all users.
899 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
900 (aarch64_displaced_step_copy_insn_closure): ... this. Update
901 all users.
902 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
903 (amd64_displaced_step_copy_insn_closure): ... this. Update all
904 users.
905 * arm-tdep.h (arm_displaced_step_closure): Rename to...
906 (arm_displaced_step_copy_insn_closure): ... this. Update all
907 users.
908 * i386-tdep.h (i386_displaced_step_closure): Rename to...
909 (i386_displaced_step_copy_insn_closure): ... this. Update all
910 users.
911 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
912 (ppc_displaced_step_copy_insn_closure): ... this. Update all
913 users.
914 * s390-tdep.c (s390_displaced_step_closure): Rename to...
915 (s390_displaced_step_copy_insn_closure): ... this. Update all
916 users.
917 * gdbarch.h: Re-generate.
918 * gdbarch.c: Re-generate.
919
920 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
921
922 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
923 (global_thread_step_over_chain_enqueue): ... this. Update all
924 users.
925 (thread_step_over_chain_remove): Rename to...
926 (global_thread_step_over_chain_remove): ... this. Update all
927 users.
928 (thread_step_over_chain_next): Rename to...
929 (global_thread_step_over_chain_next): ... this. Update all
930 users.
931 * infrun.h (step_over_queue_head): Rename to...
932 (global_thread_step_over_chain_head): ... this. Update all
933 users.
934 * infrun.c (step_over_queue_head): Rename to...
935 (global_thread_step_over_chain_head): ... this. Update all
936 users.
937 * thread.c (step_over_chain_remove): Rename to...
938 (thread_step_over_chain_remove): ... this. Update all users.
939 (thread_step_over_chain_next): Rename to...
940 (global_thread_step_over_chain_next): ... this. Update all
941 users.
942 (thread_step_over_chain_enqueue): Rename to...
943 (global_thread_step_over_chain_enqueue): ... this. Update all
944 users.
945 (thread_step_over_chain_remove): Rename to...
946 (global_thread_step_over_chain_remove): ... this. Update all
947 users.
948
949 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * infrun.c (get_displaced_stepping_state): Remove, change
952 callers to access the field directly.
953
954 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
955
956 * infrun.c (handle_inferior_event): Restore displaced step
957 buffer bytes in child process when handling fork, even if fork
958 happened in another thread than the displaced-stepping one.
959
960 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
961
962 * infrun.c (infrun_inferior_execd): New function.
963 (_initialize_infrun): Attach inferior_execd observer.
964
965 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
966
967 * observable.h (inferior_execd): Declare new observable.
968 * observable.c (inferior_execd): Declare new observable.
969 * infrun.c (follow_exec): Notify inferior_execd observer.
970 * jit.c (jit_inferior_created_hook): Make static.
971 (_initialize_jit): Register inferior_execd observer.
972 * jit.h (jit_inferior_created_hook): Remove declaration.
973 * solib.c (_initialize_solib): Register inferior_execd observer.
974
975 2020-12-04 Tom de Vries <tdevries@suse.de>
976
977 PR gdb/27003
978 * completer.c (completion_tracker::build_completion_result): Don't
979 access match_list[0][-1].
980
981 2020-12-04 Tom Tromey <tromey@adacore.com>
982
983 * linespec.c (struct linespec_token): Rename; remove typedef.
984 * guile/scm-block.c (struct block_smob): Remove typedef.
985 (struct block_syms_progress_smob): Likewise.
986 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
987 * guile/scm-symtab.c (symtab_smob): Remove typedef.
988 (struct sal_smob): Remove typedef.
989 * guile/scm-param.c (struct param_smob): Remove typedef.
990 * guile/scm-progspace.c (struct pspace_smob): Rename.
991 * guile/scm-objfile.c (struct objfile_smob): Rename.
992 * guile/scm-iterator.c (struct iterator_smob): Rename.
993 * guile/scm-frame.c (struct frame_smob): Rename.
994 * guile/scm-arch.c (struct arch_smob): Rename.
995 * guile/scm-type.c (struct field_smob): Remove typedef.
996 (struct type_smob): Rename.
997 * guile/scm-cmd.c (struct command_smob): Remove typedef.
998 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
999 * guile/scm-value.c (struct value_smob): Remove typedef.
1000 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1001 * guile/guile-internal.h (struct scheme_variable)
1002 (struct scheme_function, struct scheme_integer_constant)
1003 (struct gdb_smob, struct chained_gdb_smob)
1004 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1005 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1006 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1007 (struct pretty_printer_worker_smob): Remove typedef.
1008 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1009 * python/py-block.c (struct block_object): Remove typedef.
1010 (block_syms_iterator_object): Update.
1011 (set_block): Update.
1012 (block_syms_iterator_object): Remove typedef.
1013 * python/py-inferior.c (struct membuf_object): Remove typedef.
1014 * python/py-symtab.c (struct symtab_object): Remove typedef.
1015 (set_symtab): Update.
1016 (sal_object): Remove typedef.
1017 (set_sal): Update.
1018 * python/py-frame.c (frame_object): Remove typedef.
1019 * python/py-record-btrace.c (struct btpy_list_object): Remove
1020 typedef.
1021 * python/py-arch.c (struct arch_object): Remove typedef.
1022 * python/py-linetable.c (struct linetable_entry_object)
1023 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1024 * python/py-events.h (eventregistry_object): Remove typedef.
1025 (struct events_object): Remove typedef.
1026 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1027 typedef.
1028 (thread_object): Remove typedef.
1029 * python/py-progspace.c (pspace_object): Remove typedef.
1030 * python/py-value.c (struct value_object): Remove typedef.
1031 * python/py-record.h (recpy_record_object): Remove typedef.
1032 (struct recpy_element_object): Remove typedef.
1033 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1034 * python/py-objfile.c (objfile_object): Remove typedef.
1035 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1036 * python/py-type.c (type_object): Remove typedef.
1037 (typy_iterator_object): Update.
1038 (set_type): Update.
1039 (field_object): Remove typedef.
1040 (typy_iterator_object): Remove typedef.
1041 * python/py-registers.c (register_descriptor_iterator_object):
1042 Remove typedef.
1043 (struct register_descriptor_object)
1044 (struct reggroup_iterator_object, struct reggroup_object): Remove
1045 typedef.
1046 * python/py-record.c (recpy_gap_object): Remove typedef.
1047 * python/py-symbol.c (symbol_object): Remove typedef.
1048 (set_symbol): Update.
1049 * python/py-event.h (event_object): Remove typedef.
1050 * python/py-param.c (parmpy_object): Remove typedef.
1051 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1052 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1053 (unwind_info_object, struct cached_frame_info): Likewise.
1054
1055 2020-12-04 Tom Tromey <tromey@adacore.com>
1056
1057 * value.c (value_internal_function_name): Make return type const.
1058 * value.h (value_internal_function_name): Make return type const.
1059
1060 2020-12-04 Luis Machado <luis.machado@linaro.org>
1061
1062 * aarch64-tdep.c (submask, bit, bits): Remove.
1063 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1064 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1065 (aarch64_decode_cb, aarch64_decode_tb)
1066 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1067 immediate.
1068 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1069
1070 2020-12-04 Tom de Vries <tdevries@suse.de>
1071
1072 PR tdep/27007
1073 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1074
1075 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1076
1077 PR gdb/26876
1078 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1079 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1080
1081 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * arch/riscv.c: Include 'rv32e-xregs.c'.
1084 (riscv_create_target_description): Update to handle rv32e.
1085 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1086 member variable.
1087 <operator==>: Update to account for new field.
1088 <hash>: Likewise.
1089 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1090 * features/riscv/rv32e-xregs.c: Generated.
1091 * features/riscv/rv32e-xregs.xml: New file.
1092 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1093 file.
1094 (riscv_debug_infcall): Likewise.
1095 (riscv_debug_unwinder): Likewise.
1096 (riscv_debug_gdbarch): Likewise.
1097 (enum riscv_register_required_status): Delete.
1098 (struct riscv_register_feature): Add constructor, delete default
1099 constructor, copy, and assign constructors.
1100 (struct riscv_register_feature::register_info) <required>: Delete.
1101 <check>: Update comment and arguments.
1102 (struct riscv_register_feature) <name>: Change to member function.
1103 <prefer_first_name>: Delete.
1104 <tdesc_feature>: New member function.
1105 <registers>: Rename to...
1106 <m_registers>: ...this.
1107 <m_feature_name>: New member variable.
1108 (riscv_register_feature::register_info::check): Update arguments.
1109 (riscv_xreg_feature): Rewrite as class, create a single static
1110 instance of the class.
1111 (riscv_freg_feature): Likewise.
1112 (riscv_virtual_feature): Likewise.
1113 (riscv_csr_feature): Likewise.
1114 (riscv_create_csr_aliases): Has become a member function inside
1115 riscv_csr_feature class.
1116 (riscv_abi_embedded): New function definition.
1117 (riscv_register_name): Adjust to use new feature objects.
1118 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1119 and adjust available argument registers.
1120 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1121 (riscv_check_tdesc_feature): Delete.
1122 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1123 (riscv_gdbarch_init): Delete target description checking code, and
1124 instead call to the new feature objects to perform the checks.
1125 Reorder handling of no abi information case, allows small code
1126 simplification.
1127 (_initialize_riscv_tdep): Remove call, this is now done in the
1128 riscv_csr_feature constructor.
1129 * riscv-tdep.h (riscv_abi_embedded): Declare.
1130
1131 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1132
1133 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1134 DECLARE_CSR_ALIAS.
1135
1136 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1137
1138 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1139 implementation moved from riscv_register_reggroup_p.
1140 (riscv_register_reggroup_p): Update group handling for unknown
1141 CSRs.
1142
1143 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1144
1145 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1146 (dwarf2_get_dwz_file): Convert 'filename' to a
1147 std::string. Use dwz_search_other_debugdirs to search for DWZ
1148 files in the debug-file-directories provided by the user as well.
1149
1150 2020-12-01 Tom Tromey <tom@tromey.com>
1151
1152 * parse.c (expr_builder::expr_builder): Initialize expout.
1153 (expr_builder::release): Use expression::resize.
1154 (expression::expression, expression::~expression)
1155 (expression::resize): New methods.
1156 (write_exp_elt): Use expression::resize.
1157 (prefixify_expression): Update.
1158 (increase_expout_size): Use expression::resize.
1159 * expression.h (struct expression): Add constructor, destructor.
1160 <resize>: New method.
1161 (expression_up): Change type.
1162
1163 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1164 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1165 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1166 set region.
1167
1168 2020-11-30 Tom de Vries <tdevries@suse.de>
1169
1170 PR symtab/26905
1171 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1172 is_reference parameter.
1173 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1174
1175 2020-11-30 Tom Tromey <tom@tromey.com>
1176
1177 * rust-lang.c (rust_op_name): Remove.
1178 (exp_descriptor_rust): Update.
1179 * parser-defs.h (op_name_standard): Don't declare.
1180 (struct exp_descriptor) <op_name>: Remove.
1181 * parse.c (exp_descriptor_standard): Update.
1182 * opencl-lang.c (exp_descriptor_opencl): Update.
1183 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1184 * f-lang.c (op_name_f): Remove.
1185 (f_language::exp_descriptor_tab): Update.
1186 * expression.h (op_name): Update.
1187 * expprint.c (op_name): Rewrite.
1188 (op_name_standard): Remove.
1189 (dump_raw_expression, dump_subexp): Update.
1190 * c-lang.c (exp_descriptor_c): Update.
1191 * ax-gdb.c (gen_expr): Update.
1192 * ada-lang.c (ada_op_name): Remove.
1193 (ada_exp_descriptor): Update.
1194
1195 2020-11-30 Tom Tromey <tom@tromey.com>
1196
1197 * eval.c (init_array_element): Remove.
1198 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1199
1200 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1201
1202 PR tui/26973
1203 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1204 static locator win info.
1205
1206 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1207
1208 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1209 program.
1210
1211 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1212
1213 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1214 is always initialized.
1215
1216 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1217 * MAINTAINERS (Write After Approval): Add myself.
1218
1219 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1220
1221 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1222 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1223
1224 2020-11-25 Tom Tromey <tom@tromey.com>
1225
1226 * eval.c (evaluate_subexp_standard): Remove unnecessary
1227 variables.
1228
1229 2020-11-25 Tom Tromey <tom@tromey.com>
1230
1231 * d-lang.c: Include parser-defs.h.
1232 * rust-lang.c: Include parser-defs.h.
1233 * c-lang.h: Do not include parser-defs.h.
1234
1235 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1236
1237 * regcache.h (struct cached_reg): Remove typedef.
1238
1239 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1240
1241 * README: Fix the URL of the MPFR library.
1242
1243 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1244
1245 * README: Document the --with-libgmp-prefix configure option.
1246
1247 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1248
1249 * NEWS: Add entry documenting support for DWARF-based fixed
1250 point types.
1251
1252 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1253
1254 * NEWS: Document that building GDB now requires GMP.
1255
1256 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1257
1258 * typeprint.c (print_type_scalar): Add handling of
1259 TYPE_CODE_FIXED_POINT.
1260
1261 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1262
1263 * valarith.c (fixed_point_binop): Replace the
1264 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1265 users accordingly.
1266
1267 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1268
1269 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1270 replacing fixed_point_scaling_factor. All callers updated
1271 throughout this project.
1272 (fixed_point_scaling_factor): Delete declaration.
1273 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1274 fixed_point_scaling_factor. Adjust implementation accordingly.
1275
1276 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1277
1278 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1279 replacing the fixed_point_type_base_type function. All callers
1280 updated throughout this project.
1281 (fixed_point_type_base_type): Remove declaration.
1282 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1283 fixed_point_type_base_type. Adjust implementation accordingly.
1284
1285 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1286
1287 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1288 New methods.
1289 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1290 (TYPE_FIXED_POINT_INFO): Delete macro.
1291 (allocate_fixed_point_type_info): Change return type to void.
1292 * gdbtypes.c (copy_type_recursive): Replace the use of
1293 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1294 (fixed_point_scaling_factor): Likewise.
1295 (allocate_fixed_point_type_info): Change return type to void.
1296 Adjust implementation accordingly.
1297 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1298 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1299
1300 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1301
1302 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1303 into one single gdb::array_view parameter.
1304 (gdb_mpz::write): Likewise.
1305 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1306 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1307 into one single gdb::array_view parameter.
1308 Adjust implementation accordingly.
1309 (gdb_mpz::write): Likewise.
1310 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1311 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1312 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1313
1314 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1315
1316 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1317 Change return type to std::string. Update all callers.
1318 * gmp-utils.c (gmp_string_printf): Likewise.
1319
1320 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1321
1322 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1323 instead of mpq_set_ui to initialize our GMP rational.
1324
1325 2020-11-23 Tom de Vries <tdevries@suse.de>
1326
1327 * debuginfod-support.c (debuginfod_source_query)
1328 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1329
1330 2020-11-21 Tom Tromey <tom@tromey.com>
1331
1332 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1333
1334 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1337 Pass 2.0 to pow.
1338 (gdb_mpz_write_all_from_small): Likewise.
1339
1340 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1341
1342 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1343 of abs.
1344
1345 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1346
1347 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1348 ctf_arc_open_by_name.
1349
1350 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1351
1352 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1353 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1354
1355 2020-11-20 Pedro Alves <pedro@palves.net>
1356
1357 * language.c (language_arch_info::lookup_primitive_type): Use
1358 gdb::function_view instead of gdb::function.
1359 (template language_lookup_primitive_type): Rename to ...
1360 (language_lookup_primitive_type_1): ... this, and make static.
1361 (language_lookup_primitive_type(const struct language_defn *,
1362 struct gdbarch *, const char *): Make non-template.
1363 (language_lookup_primitive_type(const struct language_defn *,
1364 struct gdbarch *, std::function<bool (struct type *)>): Make
1365 non-template and use gdb::function_view.
1366 * language.h (language_arch_info::lookup_primitive_type): Use
1367 gdb::function_view instead of std::function.
1368 (language_lookup_primitive_type): No longer template.
1369 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1370 lambda instead of a std::function.
1371
1372 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1373
1374 PR tdep/26916
1375 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1376 and STOCFH.
1377
1378 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1381
1382 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1383
1384 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1385 in `loop_cb` parameter.
1386 * gdbarch.c: Re-generate.
1387 * gdbarch.h: Re-generate.
1388 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1389 parameter.
1390 * arch-utils.h (default_read_core_file_mappings): Likewise.
1391 * corelow.c (core_target::build_file_mappings): Likewise.
1392 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1393 (linux_core_info_proc_mappings): Likewise.
1394
1395 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1398 * NEWS: Mention new options.
1399 * f-array-walker.h: New file.
1400 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1401 (repack_array_slices): New static global.
1402 (show_repack_array_slices): New function.
1403 (fortran_array_slicing_debug): New static global.
1404 (show_fortran_array_slicing_debug): New function.
1405 (value_f90_subarray): Delete.
1406 (skip_undetermined_arglist): Delete.
1407 (class fortran_array_repacker_base_impl): New class.
1408 (class fortran_lazy_array_repacker_impl): New class.
1409 (class fortran_array_repacker_impl): New class.
1410 (fortran_value_subarray): Complete rewrite.
1411 (set_fortran_list): New static global.
1412 (show_fortran_list): Likewise.
1413 (_initialize_f_language): Register new commands.
1414 (fortran_adjust_dynamic_array_base_address_hack): New function.
1415 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1416 Declare.
1417 * f-valprint.c: Include 'f-array-walker.h'.
1418 (class fortran_array_printer_impl): New class.
1419 (f77_print_array_1): Delete.
1420 (f77_print_array): Delete.
1421 (fortran_print_array): New.
1422 (f_value_print_inner): Update to call fortran_print_array.
1423 * gdbtypes.c: Include 'f-lang.h'.
1424 (resolve_dynamic_type_internal): Call
1425 fortran_adjust_dynamic_array_base_address_hack.
1426
1427 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1428
1429 * breakpoint.c (struct watch_options): New struct.
1430 (watch_option_defs): New static global.
1431 (make_watch_options_def_group): New function.
1432 (watch_maybe_just_location): Convert option parsing.
1433 (watch_command_completer): New function.
1434 (_initialize_breakpoint): Build help text using options mechanism.
1435
1436 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1439 (watch_command_1): Update parameter types. Convert locals to
1440 bool.
1441 (watch_command_wrapper): Change parameter type.
1442 (watch_maybe_just_location): Change locals to bool.
1443 (rwatch_command_wrapper): Update parameter type.
1444 (awatch_command_wrapper): Update parameter type.
1445 * breakpoint.h (watch_command_wrapper): Change parameter type.
1446 (rwatch_command_wrapper): Update parameter type.
1447 (awatch_command_wrapper): Update parameter type.
1448 * eval.c (fetch_subexp_value): Change parameter type.
1449 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1450 'false' not '0'.
1451 * value.h (fetch_subexp_value): Change parameter type in
1452 declaration.
1453
1454 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1457 skip_spaces.
1458
1459 2020-11-18 Keith Seitz <keiths@redhat.com>
1460
1461 * linux-tdep.c (dump_note_entry_p): Return true instead of
1462 checking `filename'.
1463
1464 2020-11-18 Tom de Vries <tdevries@suse.de>
1465
1466 * debuginfod-support.c (debuginfod_source_query)
1467 (debuginfod_debuginfo_query): Also do early exit if
1468 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1469
1470 2020-11-18 Tom de Vries <tdevries@suse.de>
1471
1472 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1473 warning.
1474
1475 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1476
1477 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1478 callers. Move doc here.
1479 * gdbtypes.c (get_array_bounds): Return bool
1480
1481 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1484 assert.
1485 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1486 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1487 case to the default.
1488
1489 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * printcmd.c: Include 'safe-ctype.c'.
1492 (skip_over_slash_fmt): New function.
1493 (print_command_completer): Call skip_over_slash_fmt.
1494 (display_and_x_command_completer): New function.
1495 (_initialize_printcmd): Add command completion for 'x' and
1496 'display'.
1497
1498 2020-11-16 Pedro Alves <pedro@palves.net>
1499
1500 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1501 (get_prev_frame_always_1): ... to here.
1502 * inline-frame.c (inline_frame_this_id): Mention
1503 get_prev_frame_always_1 in comment.
1504
1505 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1506
1507 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1508 handling.
1509 (value_less): Add fixed-point handling.
1510
1511 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1512
1513 * eval.c (binop_promote): Add fixed-point type handling.
1514 * valarith.c (fixed_point_binop): New function.
1515 (scalar_binop): Add fixed-point type handling.
1516 (value_neg): Add fixed-point type handling.
1517 * valops.c (value_cast_to_fixed_point): New function.
1518 (value_cast): Add fixed-point type handling.
1519
1520 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1521
1522 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1523 range types.
1524 * c-typeprint.c (c_type_print_varspec_prefix)
1525 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1526 TYPE_CODE_FIXED_POINT handling.
1527 * p-typeprint.c (pascal_type_print_varspec_prefix)
1528 (pascal_type_print_varspec_suffix): Likewise.
1529 * typeprint.c (print_type_fixed_point): New function.
1530 * typeprint.h (print_type_fixed_point): Add declaration.
1531
1532 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1533
1534 * printcmd.c (print_scalar_formatted): Add fixed-point type
1535 handling when options->format is set.
1536
1537 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1538
1539 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1540 * dwarf2/read.c (get_dwarf2_rational_constant)
1541 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1542 (has_zero_over_zero_small_attribute): New functions.
1543 read_base_type, set_die_type): Add fixed-point type handling.
1544 * gdb-gdb.py.in: Add fixed-point type handling.
1545 * gdbtypes.c: #include "gmp-utils.h".
1546 (create_range_type, set_type_code): Add fixed-point type handling.
1547 (init_fixed_point_type): New function.
1548 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1549 (print_fixed_point_type_info): New function.
1550 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1551 handling.
1552 (fixed_point_type_storage): New typedef.
1553 (fixed_point_objfile_key): New static global.
1554 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1555 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1556 functions.
1557 * gdbtypes.h: #include "gmp-utils.h".
1558 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1559 (union type_specific) <fixed_point_info>: New field.
1560 (struct fixed_point_type_info): New struct.
1561 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1562 (init_fixed_point_type, is_fixed_point_type)
1563 (fixed_point_type_base_type, fixed_point_scaling_factor)
1564 (allocate_fixed_point_type_info): Add declarations.
1565 * valprint.c (generic_val_print_fixed_point): New function.
1566 (generic_value_print): Add fixed-point type handling.
1567 * value.c (value_as_address, unpack_long): Add fixed-point type
1568 handling.
1569
1570 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1571
1572 * utils.h (uinteger_pow): Add declaration.
1573 * utils.c (uinteger_pow): Moved here (without changes)...
1574 * valarith.c (uinteger_pow): ... from here.
1575
1576 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1577
1578 * gmp-utils.h, gmp-utils.c: New file.
1579 * unittests/gmp-utils-selftests.c: New file.
1580 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1581 unittests/gmp-utils-selftests.c.
1582 (COMMON_SFILES) Add gmp-utils.c.
1583 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1584
1585 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1586
1587 * configure.ac: Generate an error if a usable GMP library
1588 could not be found.
1589 * configure: Regenerate.
1590
1591 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1592
1593 * configure.ac: Add support for --with-libgmp-prefix.
1594 * Makefile.in (LIBGMP): New variable.
1595 (CLIBS): Include $(LIBGMP).
1596 * configure, config.in: Regenerate
1597
1598 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1599
1600 PR cli/26879
1601 * f-exp.y (COMPLETE): New token.
1602 (exp): Two new rules for tab-completion.
1603 (saw_name_at_eof): New static global.
1604 (last_was_structop): Likewise.
1605 (yylex): Set new variables, and return COMPLETE token at the end
1606 of the input stream in some cases.
1607
1608 2020-11-14 Tom Tromey <tom@tromey.com>
1609
1610 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1611
1612 2020-11-14 Tom Tromey <tom@tromey.com>
1613
1614 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1615
1616 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1617
1618 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1619
1620 2020-11-13 Tom Tromey <tom@tromey.com>
1621
1622 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1623 (convert_escape, parse_one_string): Constify.
1624
1625 2020-11-13 Keith Seitz <keiths@redhat.com>
1626
1627 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1628 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1629 outside of ELF segments" warning for debugin
1630
1631 2020-11-13 Keith Seitz <keiths@redhat.com>
1632
1633 PR gdb/23034
1634 * elfread.c (elf_symfile_segments): Output a BFD file name
1635 for the "Loadable section ... outside of ELF segments" warning.
1636
1637 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1638
1639 PR gdb/26835
1640 * arm-tdep.c (class arm_instruction_reader): New.
1641 (target_arm_instruction_reader): New.
1642 (arm_analyze_prologue): Add instruction reader parameter and use
1643 it. Use arm_expand_immediate.
1644 (class target_arm_instruction_reader): Adjust.
1645 (arm_skip_prologue): Adjust.
1646 (arm_expand_immediate): New.
1647 (arm_scan_prologue): Adjust.
1648 (arm_analyze_prologue_test): New.
1649 (class test_arm_instruction_reader): New.
1650
1651 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * f-lang.c (fortran_argument_convert): Add declaration. Add
1654 header comment, taken from f-lang.h. Make static.
1655 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1656 (fortran_argument_convert): Delete declaration.
1657
1658 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * ada-exp.y (find_primitive_type): Make parameter const.
1661 * ada-lang.c (enum ada_primitive_types): Delete.
1662 (ada_language::language_arch_info): Update.
1663 * c-lang.c (enum c_primitive_types): Delete.
1664 (c_language_arch_info): Update.
1665 (enum cplus_primitive_types): Delete.
1666 (cplus_language::language_arch_info): Update.
1667 * d-lang.c (enum d_primitive_types): Delete.
1668 (d_language::language_arch_info): Update.
1669 * f-lang.c (enum f_primitive_types): Delete.
1670 (f_language::language_arch_info): Update.
1671 * go-lang.c (enum go_primitive_types): Delete.
1672 (go_language::language_arch_info): Update.
1673 * language.c (auto_or_unknown_language::language_arch_info):
1674 Update.
1675 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1676 (language_string_char_type): Add header comment, call function in
1677 language_arch_info.
1678 (language_bool_type): Likewise
1679 (language_arch_info::bool_type): Define.
1680 (language_lookup_primitive_type_1): Delete.
1681 (language_lookup_primitive_type): Rewrite as a templated function
1682 to call function in language_arch_info, then instantiate twice.
1683 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1684 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1685 (language_arch_info::lookup_primitive_type): Define twice with
1686 different signatures.
1687 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1688 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1689 member function in language_arch_info.
1690 * language.h (language_arch_info): Complete rewrite.
1691 (language_lookup_primitive_type): Make templated.
1692 * m2-lang.c (enum m2_primitive_types): Delete.
1693 (m2_language::language_arch_info): Update.
1694 * opencl-lang.c (OCL_P_TYPE): Delete.
1695 (enum opencl_primitive_types): Delete.
1696 (opencl_type_data): Delete.
1697 (builtin_opencl_type): Delete.
1698 (lookup_opencl_vector_type): Update.
1699 (opencl_language::language_arch_info): Update, lots of content
1700 moved from...
1701 (build_opencl_types): ...here. This function is now deleted.
1702 (_initialize_opencl_language): Delete.
1703 * p-lang.c (enum pascal_primitive_types): Delete.
1704 (pascal_language::language_arch_info): Update.
1705 * rust-lang.c (enum rust_primitive_types): Delete.
1706 (rust_language::language_arch_info): Update.
1707
1708 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1709
1710 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1711 dwarf2_queue_guard.
1712
1713 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1714
1715 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1716 comment.
1717
1718 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * dwarf2/read.c (dwarf_read_debug_printf,
1721 dwarf_read_debug_printf_v): New macros, use throughout the file.
1722
1723 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1724
1725 PR tdep/27015
1726 * arc-linux-tdep.c (collect_register): Populate "eret" by
1727 "pc" value from the regcache when asked for "pc" value.
1728
1729 2020-11-12 Tom Tromey <tom@tromey.com>
1730
1731 PR rust/26799:
1732 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1733 exist.
1734
1735 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * features/Makefile (XMLTOC): Add rx.xml.
1738 (FEATURE_XMLFILES): Remove rx.xml.
1739 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1740 * features/rx.c: Regenerate.
1741 * features/rx.xml: Wrap in `target` tags, and reindent.
1742 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1743 structure.
1744 (maint_print_c_tdesc_opt_def): New typedef.
1745 (maint_print_c_tdesc_opt_defs): New static global.
1746 (make_maint_print_c_tdesc_options_def_group): New function.
1747 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1748 print single feature C file for target descriptions containing a
1749 single feature.
1750 (maint_print_c_tdesc_cmd_completer): New function.
1751 (_initialize_target_descriptions): Update call to register command
1752 completer, and include command line flag in help text.
1753
1754 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1755
1756 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1757 numbers.
1758 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1759 enum values.
1760
1761 2020-11-10 Tom Tromey <tom@tromey.com>
1762
1763 * value.h (internalvar_name): Update.
1764 * value.c (internalvar_name): Make return type const.
1765
1766 2020-11-10 Tom Tromey <tom@tromey.com>
1767
1768 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1769 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1770 const.
1771
1772 2020-11-10 Tom Tromey <tom@tromey.com>
1773
1774 * objc-lang.h (value_nsstring): Update.
1775 * objc-lang.c (value_nsstring): Make "ptr" const.
1776
1777 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * expprint.c (print_subexp_funcall): Increment expression position
1780 after reading argument count.
1781 * f-lang.c (print_subexp_f): Skip over opcode before calling
1782 common function.
1783 (dump_subexp_body_f): Likewise.
1784
1785 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1786
1787 PR python/26832
1788 * configure: Regenerate.
1789 * configure.ac: Check for python modules ctypes instead of
1790 itertools.
1791
1792 2020-11-06 Pedro Alves <pedro@palves.net>
1793
1794 * macroexp.c (struct macro_buffer): Split in two classes. Add
1795 uses adjusted.
1796 (struct shared_macro_buffer): New, factored out from struct
1797 macro_buffer.
1798 (struct growable_macro_buffer): New, factored out from struct
1799 macro_buffer.
1800 (set_token, get_comment, get_identifier, get_pp_number)
1801 (get_character_constant, get_string_literal, get_punctuator)
1802 (get_next_token_for_substitution): Constify parameters.
1803 (substitute_args): Constify locals.
1804
1805 2020-11-05 Tom Tromey <tom@tromey.com>
1806
1807 * dwarf2/read.c (read_cutu_die_from_dwo)
1808 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1809 (build_type_psymtabs_1): Update.
1810 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1811 parameter.
1812 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1813 Don't read section. Add assert.
1814
1815 2020-11-04 Tom Tromey <tromey@adacore.com>
1816
1817 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1818
1819 2020-11-04 Tom Tromey <tromey@adacore.com>
1820
1821 * ada-typeprint.c (ada_print_type): Handle __T types.
1822
1823 2020-11-04 Tom Tromey <tromey@adacore.com>
1824
1825 * dwarf2/read.c (add_partial_symbol, process_die):
1826 Handle DW_TAG_array_type.
1827 (is_type_tag_for_partial): Add "lang" parameter.
1828 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1829
1830 2020-11-04 Tom Tromey <tromey@adacore.com>
1831
1832 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1833
1834 2020-11-04 Tom Tromey <tromey@adacore.com>
1835
1836 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1837 array.
1838
1839 2020-11-04 Tom Tromey <tromey@adacore.com>
1840
1841 * gdbtypes.c (update_static_array_size): Handle bit stride.
1842
1843 2020-11-04 Tom Tromey <tromey@adacore.com>
1844
1845 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1846
1847 2020-11-04 Tom Tromey <tromey@adacore.com>
1848
1849 * ada-lang.c (ada_is_any_packed_array_type): New function.
1850 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1851
1852 2020-11-04 Tom Tromey <tromey@adacore.com>
1853
1854 * dwarf2/read.c (recognize_bound_expression)
1855 (quirk_ada_thick_pointer): New functions.
1856 (read_array_type): Call quirk_ada_thick_pointer.
1857 (set_die_type): Add "skip_data_location" parameter.
1858 (quirk_ada_thick_pointer): New function.
1859 (process_structure_scope): Call quirk_ada_thick_pointer.
1860 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1861 (decode_packed_array_bitsize): Handle thick pointers without
1862 parallel types.
1863 (ada_is_gnat_encoded_packed_array_type): Rename from
1864 ada_is_packed_array_type.
1865 (ada_is_constrained_packed_array_type): Update.
1866 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1867 (ada_value_print_1): Use ada_get_decoded_value.
1868
1869 2020-11-04 Tom Tromey <tromey@adacore.com>
1870
1871 * ada-lang.c (recursively_update_array_bitsize): New function.
1872 (decode_constrained_packed_array_type): Call it.
1873
1874 2020-11-04 Tom Tromey <tromey@adacore.com>
1875
1876 * ada-lang.c (to_fixed_array_type): Error if
1877 decode_constrained_packed_array_type returns NULL.
1878
1879 2020-11-04 Tom Tromey <tromey@adacore.com>
1880
1881 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1882
1883 2020-11-02 Tom Tromey <tromey@adacore.com>
1884
1885 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1886 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1887 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1888 * amd64-ravenscar-thread.c: New file.
1889 * amd64-ravenscar-thread.h: New file.
1890 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1891 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1892
1893 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1894
1895 * main.c (execute_cmdargs): New function.
1896 (captured_main_1): Make use of execute_cmdargs.
1897
1898 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * NEWS: Mention changes to config file search path.
1901 * main.c
1902
1903 2020-11-02 Tom Tromey <tromey@adacore.com>
1904
1905 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1906 (python_GdbModuleDef): Move earlier. Now static.
1907 (do_start_initialization): Consolidate some IS_PY3K blocks.
1908
1909 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1910
1911 * aarch64-linux-tdep.c: Fix indentation.
1912 * aarch64-ravenscar-thread.c: Fix indentation.
1913 * aarch64-tdep.c: Fix indentation.
1914 * aarch64-tdep.h: Fix indentation.
1915 * ada-lang.c: Fix indentation.
1916 * ada-lang.h: Fix indentation.
1917 * ada-tasks.c: Fix indentation.
1918 * ada-typeprint.c: Fix indentation.
1919 * ada-valprint.c: Fix indentation.
1920 * ada-varobj.c: Fix indentation.
1921 * addrmap.c: Fix indentation.
1922 * addrmap.h: Fix indentation.
1923 * agent.c: Fix indentation.
1924 * aix-thread.c: Fix indentation.
1925 * alpha-bsd-nat.c: Fix indentation.
1926 * alpha-linux-tdep.c: Fix indentation.
1927 * alpha-mdebug-tdep.c: Fix indentation.
1928 * alpha-nbsd-tdep.c: Fix indentation.
1929 * alpha-obsd-tdep.c: Fix indentation.
1930 * alpha-tdep.c: Fix indentation.
1931 * amd64-bsd-nat.c: Fix indentation.
1932 * amd64-darwin-tdep.c: Fix indentation.
1933 * amd64-linux-nat.c: Fix indentation.
1934 * amd64-linux-tdep.c: Fix indentation.
1935 * amd64-nat.c: Fix indentation.
1936 * amd64-obsd-tdep.c: Fix indentation.
1937 * amd64-tdep.c: Fix indentation.
1938 * amd64-windows-tdep.c: Fix indentation.
1939 * annotate.c: Fix indentation.
1940 * arc-tdep.c: Fix indentation.
1941 * arch-utils.c: Fix indentation.
1942 * arch/arm-get-next-pcs.c: Fix indentation.
1943 * arch/arm.c: Fix indentation.
1944 * arm-linux-nat.c: Fix indentation.
1945 * arm-linux-tdep.c: Fix indentation.
1946 * arm-nbsd-tdep.c: Fix indentation.
1947 * arm-pikeos-tdep.c: Fix indentation.
1948 * arm-tdep.c: Fix indentation.
1949 * arm-tdep.h: Fix indentation.
1950 * arm-wince-tdep.c: Fix indentation.
1951 * auto-load.c: Fix indentation.
1952 * auxv.c: Fix indentation.
1953 * avr-tdep.c: Fix indentation.
1954 * ax-gdb.c: Fix indentation.
1955 * ax-general.c: Fix indentation.
1956 * bfin-linux-tdep.c: Fix indentation.
1957 * block.c: Fix indentation.
1958 * block.h: Fix indentation.
1959 * blockframe.c: Fix indentation.
1960 * bpf-tdep.c: Fix indentation.
1961 * break-catch-sig.c: Fix indentation.
1962 * break-catch-syscall.c: Fix indentation.
1963 * break-catch-throw.c: Fix indentation.
1964 * breakpoint.c: Fix indentation.
1965 * breakpoint.h: Fix indentation.
1966 * bsd-uthread.c: Fix indentation.
1967 * btrace.c: Fix indentation.
1968 * build-id.c: Fix indentation.
1969 * buildsym-legacy.h: Fix indentation.
1970 * buildsym.c: Fix indentation.
1971 * c-typeprint.c: Fix indentation.
1972 * c-valprint.c: Fix indentation.
1973 * c-varobj.c: Fix indentation.
1974 * charset.c: Fix indentation.
1975 * cli/cli-cmds.c: Fix indentation.
1976 * cli/cli-decode.c: Fix indentation.
1977 * cli/cli-decode.h: Fix indentation.
1978 * cli/cli-script.c: Fix indentation.
1979 * cli/cli-setshow.c: Fix indentation.
1980 * coff-pe-read.c: Fix indentation.
1981 * coffread.c: Fix indentation.
1982 * compile/compile-cplus-types.c: Fix indentation.
1983 * compile/compile-object-load.c: Fix indentation.
1984 * compile/compile-object-run.c: Fix indentation.
1985 * completer.c: Fix indentation.
1986 * corefile.c: Fix indentation.
1987 * corelow.c: Fix indentation.
1988 * cp-abi.h: Fix indentation.
1989 * cp-namespace.c: Fix indentation.
1990 * cp-support.c: Fix indentation.
1991 * cp-valprint.c: Fix indentation.
1992 * cris-linux-tdep.c: Fix indentation.
1993 * cris-tdep.c: Fix indentation.
1994 * darwin-nat-info.c: Fix indentation.
1995 * darwin-nat.c: Fix indentation.
1996 * darwin-nat.h: Fix indentation.
1997 * dbxread.c: Fix indentation.
1998 * dcache.c: Fix indentation.
1999 * disasm.c: Fix indentation.
2000 * dtrace-probe.c: Fix indentation.
2001 * dwarf2/abbrev.c: Fix indentation.
2002 * dwarf2/attribute.c: Fix indentation.
2003 * dwarf2/expr.c: Fix indentation.
2004 * dwarf2/frame.c: Fix indentation.
2005 * dwarf2/index-cache.c: Fix indentation.
2006 * dwarf2/index-write.c: Fix indentation.
2007 * dwarf2/line-header.c: Fix indentation.
2008 * dwarf2/loc.c: Fix indentation.
2009 * dwarf2/macro.c: Fix indentation.
2010 * dwarf2/read.c: Fix indentation.
2011 * dwarf2/read.h: Fix indentation.
2012 * elfread.c: Fix indentation.
2013 * eval.c: Fix indentation.
2014 * event-top.c: Fix indentation.
2015 * exec.c: Fix indentation.
2016 * exec.h: Fix indentation.
2017 * expprint.c: Fix indentation.
2018 * f-lang.c: Fix indentation.
2019 * f-typeprint.c: Fix indentation.
2020 * f-valprint.c: Fix indentation.
2021 * fbsd-nat.c: Fix indentation.
2022 * fbsd-tdep.c: Fix indentation.
2023 * findvar.c: Fix indentation.
2024 * fork-child.c: Fix indentation.
2025 * frame-unwind.c: Fix indentation.
2026 * frame-unwind.h: Fix indentation.
2027 * frame.c: Fix indentation.
2028 * frv-linux-tdep.c: Fix indentation.
2029 * frv-tdep.c: Fix indentation.
2030 * frv-tdep.h: Fix indentation.
2031 * ft32-tdep.c: Fix indentation.
2032 * gcore.c: Fix indentation.
2033 * gdb_bfd.c: Fix indentation.
2034 * gdbarch.sh: Fix indentation.
2035 * gdbarch.c: Re-generate
2036 * gdbarch.h: Re-generate.
2037 * gdbcore.h: Fix indentation.
2038 * gdbthread.h: Fix indentation.
2039 * gdbtypes.c: Fix indentation.
2040 * gdbtypes.h: Fix indentation.
2041 * glibc-tdep.c: Fix indentation.
2042 * gnu-nat.c: Fix indentation.
2043 * gnu-nat.h: Fix indentation.
2044 * gnu-v2-abi.c: Fix indentation.
2045 * gnu-v3-abi.c: Fix indentation.
2046 * go32-nat.c: Fix indentation.
2047 * guile/guile-internal.h: Fix indentation.
2048 * guile/scm-cmd.c: Fix indentation.
2049 * guile/scm-frame.c: Fix indentation.
2050 * guile/scm-iterator.c: Fix indentation.
2051 * guile/scm-math.c: Fix indentation.
2052 * guile/scm-ports.c: Fix indentation.
2053 * guile/scm-pretty-print.c: Fix indentation.
2054 * guile/scm-value.c: Fix indentation.
2055 * h8300-tdep.c: Fix indentation.
2056 * hppa-linux-nat.c: Fix indentation.
2057 * hppa-linux-tdep.c: Fix indentation.
2058 * hppa-nbsd-nat.c: Fix indentation.
2059 * hppa-nbsd-tdep.c: Fix indentation.
2060 * hppa-obsd-nat.c: Fix indentation.
2061 * hppa-tdep.c: Fix indentation.
2062 * hppa-tdep.h: Fix indentation.
2063 * i386-bsd-nat.c: Fix indentation.
2064 * i386-darwin-nat.c: Fix indentation.
2065 * i386-darwin-tdep.c: Fix indentation.
2066 * i386-dicos-tdep.c: Fix indentation.
2067 * i386-gnu-nat.c: Fix indentation.
2068 * i386-linux-nat.c: Fix indentation.
2069 * i386-linux-tdep.c: Fix indentation.
2070 * i386-nto-tdep.c: Fix indentation.
2071 * i386-obsd-tdep.c: Fix indentation.
2072 * i386-sol2-nat.c: Fix indentation.
2073 * i386-tdep.c: Fix indentation.
2074 * i386-tdep.h: Fix indentation.
2075 * i386-windows-tdep.c: Fix indentation.
2076 * i387-tdep.c: Fix indentation.
2077 * i387-tdep.h: Fix indentation.
2078 * ia64-libunwind-tdep.c: Fix indentation.
2079 * ia64-libunwind-tdep.h: Fix indentation.
2080 * ia64-linux-nat.c: Fix indentation.
2081 * ia64-linux-tdep.c: Fix indentation.
2082 * ia64-tdep.c: Fix indentation.
2083 * ia64-tdep.h: Fix indentation.
2084 * ia64-vms-tdep.c: Fix indentation.
2085 * infcall.c: Fix indentation.
2086 * infcmd.c: Fix indentation.
2087 * inferior.c: Fix indentation.
2088 * infrun.c: Fix indentation.
2089 * iq2000-tdep.c: Fix indentation.
2090 * language.c: Fix indentation.
2091 * linespec.c: Fix indentation.
2092 * linux-fork.c: Fix indentation.
2093 * linux-nat.c: Fix indentation.
2094 * linux-tdep.c: Fix indentation.
2095 * linux-thread-db.c: Fix indentation.
2096 * lm32-tdep.c: Fix indentation.
2097 * m2-lang.c: Fix indentation.
2098 * m2-typeprint.c: Fix indentation.
2099 * m2-valprint.c: Fix indentation.
2100 * m32c-tdep.c: Fix indentation.
2101 * m32r-linux-tdep.c: Fix indentation.
2102 * m32r-tdep.c: Fix indentation.
2103 * m68hc11-tdep.c: Fix indentation.
2104 * m68k-bsd-nat.c: Fix indentation.
2105 * m68k-linux-nat.c: Fix indentation.
2106 * m68k-linux-tdep.c: Fix indentation.
2107 * m68k-tdep.c: Fix indentation.
2108 * machoread.c: Fix indentation.
2109 * macrocmd.c: Fix indentation.
2110 * macroexp.c: Fix indentation.
2111 * macroscope.c: Fix indentation.
2112 * macrotab.c: Fix indentation.
2113 * macrotab.h: Fix indentation.
2114 * main.c: Fix indentation.
2115 * mdebugread.c: Fix indentation.
2116 * mep-tdep.c: Fix indentation.
2117 * mi/mi-cmd-catch.c: Fix indentation.
2118 * mi/mi-cmd-disas.c: Fix indentation.
2119 * mi/mi-cmd-env.c: Fix indentation.
2120 * mi/mi-cmd-stack.c: Fix indentation.
2121 * mi/mi-cmd-var.c: Fix indentation.
2122 * mi/mi-cmds.c: Fix indentation.
2123 * mi/mi-main.c: Fix indentation.
2124 * mi/mi-parse.c: Fix indentation.
2125 * microblaze-tdep.c: Fix indentation.
2126 * minidebug.c: Fix indentation.
2127 * minsyms.c: Fix indentation.
2128 * mips-linux-nat.c: Fix indentation.
2129 * mips-linux-tdep.c: Fix indentation.
2130 * mips-nbsd-tdep.c: Fix indentation.
2131 * mips-tdep.c: Fix indentation.
2132 * mn10300-linux-tdep.c: Fix indentation.
2133 * mn10300-tdep.c: Fix indentation.
2134 * moxie-tdep.c: Fix indentation.
2135 * msp430-tdep.c: Fix indentation.
2136 * namespace.h: Fix indentation.
2137 * nat/fork-inferior.c: Fix indentation.
2138 * nat/gdb_ptrace.h: Fix indentation.
2139 * nat/linux-namespaces.c: Fix indentation.
2140 * nat/linux-osdata.c: Fix indentation.
2141 * nat/netbsd-nat.c: Fix indentation.
2142 * nat/x86-dregs.c: Fix indentation.
2143 * nbsd-nat.c: Fix indentation.
2144 * nbsd-tdep.c: Fix indentation.
2145 * nios2-linux-tdep.c: Fix indentation.
2146 * nios2-tdep.c: Fix indentation.
2147 * nto-procfs.c: Fix indentation.
2148 * nto-tdep.c: Fix indentation.
2149 * objfiles.c: Fix indentation.
2150 * objfiles.h: Fix indentation.
2151 * opencl-lang.c: Fix indentation.
2152 * or1k-tdep.c: Fix indentation.
2153 * osabi.c: Fix indentation.
2154 * osabi.h: Fix indentation.
2155 * osdata.c: Fix indentation.
2156 * p-lang.c: Fix indentation.
2157 * p-typeprint.c: Fix indentation.
2158 * p-valprint.c: Fix indentation.
2159 * parse.c: Fix indentation.
2160 * ppc-linux-nat.c: Fix indentation.
2161 * ppc-linux-tdep.c: Fix indentation.
2162 * ppc-nbsd-nat.c: Fix indentation.
2163 * ppc-nbsd-tdep.c: Fix indentation.
2164 * ppc-obsd-nat.c: Fix indentation.
2165 * ppc-ravenscar-thread.c: Fix indentation.
2166 * ppc-sysv-tdep.c: Fix indentation.
2167 * ppc64-tdep.c: Fix indentation.
2168 * printcmd.c: Fix indentation.
2169 * proc-api.c: Fix indentation.
2170 * producer.c: Fix indentation.
2171 * producer.h: Fix indentation.
2172 * prologue-value.c: Fix indentation.
2173 * prologue-value.h: Fix indentation.
2174 * psymtab.c: Fix indentation.
2175 * python/py-arch.c: Fix indentation.
2176 * python/py-bpevent.c: Fix indentation.
2177 * python/py-event.c: Fix indentation.
2178 * python/py-event.h: Fix indentation.
2179 * python/py-finishbreakpoint.c: Fix indentation.
2180 * python/py-frame.c: Fix indentation.
2181 * python/py-framefilter.c: Fix indentation.
2182 * python/py-inferior.c: Fix indentation.
2183 * python/py-infthread.c: Fix indentation.
2184 * python/py-objfile.c: Fix indentation.
2185 * python/py-prettyprint.c: Fix indentation.
2186 * python/py-registers.c: Fix indentation.
2187 * python/py-signalevent.c: Fix indentation.
2188 * python/py-stopevent.c: Fix indentation.
2189 * python/py-stopevent.h: Fix indentation.
2190 * python/py-threadevent.c: Fix indentation.
2191 * python/py-tui.c: Fix indentation.
2192 * python/py-unwind.c: Fix indentation.
2193 * python/py-value.c: Fix indentation.
2194 * python/py-xmethods.c: Fix indentation.
2195 * python/python-internal.h: Fix indentation.
2196 * python/python.c: Fix indentation.
2197 * ravenscar-thread.c: Fix indentation.
2198 * record-btrace.c: Fix indentation.
2199 * record-full.c: Fix indentation.
2200 * record.c: Fix indentation.
2201 * reggroups.c: Fix indentation.
2202 * regset.h: Fix indentation.
2203 * remote-fileio.c: Fix indentation.
2204 * remote.c: Fix indentation.
2205 * reverse.c: Fix indentation.
2206 * riscv-linux-tdep.c: Fix indentation.
2207 * riscv-ravenscar-thread.c: Fix indentation.
2208 * riscv-tdep.c: Fix indentation.
2209 * rl78-tdep.c: Fix indentation.
2210 * rs6000-aix-tdep.c: Fix indentation.
2211 * rs6000-lynx178-tdep.c: Fix indentation.
2212 * rs6000-nat.c: Fix indentation.
2213 * rs6000-tdep.c: Fix indentation.
2214 * rust-lang.c: Fix indentation.
2215 * rx-tdep.c: Fix indentation.
2216 * s12z-tdep.c: Fix indentation.
2217 * s390-linux-tdep.c: Fix indentation.
2218 * score-tdep.c: Fix indentation.
2219 * ser-base.c: Fix indentation.
2220 * ser-mingw.c: Fix indentation.
2221 * ser-uds.c: Fix indentation.
2222 * ser-unix.c: Fix indentation.
2223 * serial.c: Fix indentation.
2224 * sh-linux-tdep.c: Fix indentation.
2225 * sh-nbsd-tdep.c: Fix indentation.
2226 * sh-tdep.c: Fix indentation.
2227 * skip.c: Fix indentation.
2228 * sol-thread.c: Fix indentation.
2229 * solib-aix.c: Fix indentation.
2230 * solib-darwin.c: Fix indentation.
2231 * solib-frv.c: Fix indentation.
2232 * solib-svr4.c: Fix indentation.
2233 * solib.c: Fix indentation.
2234 * source.c: Fix indentation.
2235 * sparc-linux-tdep.c: Fix indentation.
2236 * sparc-nbsd-tdep.c: Fix indentation.
2237 * sparc-obsd-tdep.c: Fix indentation.
2238 * sparc-ravenscar-thread.c: Fix indentation.
2239 * sparc-tdep.c: Fix indentation.
2240 * sparc64-linux-tdep.c: Fix indentation.
2241 * sparc64-nbsd-tdep.c: Fix indentation.
2242 * sparc64-obsd-tdep.c: Fix indentation.
2243 * sparc64-tdep.c: Fix indentation.
2244 * stabsread.c: Fix indentation.
2245 * stack.c: Fix indentation.
2246 * stap-probe.c: Fix indentation.
2247 * stubs/ia64vms-stub.c: Fix indentation.
2248 * stubs/m32r-stub.c: Fix indentation.
2249 * stubs/m68k-stub.c: Fix indentation.
2250 * stubs/sh-stub.c: Fix indentation.
2251 * stubs/sparc-stub.c: Fix indentation.
2252 * symfile-mem.c: Fix indentation.
2253 * symfile.c: Fix indentation.
2254 * symfile.h: Fix indentation.
2255 * symmisc.c: Fix indentation.
2256 * symtab.c: Fix indentation.
2257 * symtab.h: Fix indentation.
2258 * target-float.c: Fix indentation.
2259 * target.c: Fix indentation.
2260 * target.h: Fix indentation.
2261 * tic6x-tdep.c: Fix indentation.
2262 * tilegx-linux-tdep.c: Fix indentation.
2263 * tilegx-tdep.c: Fix indentation.
2264 * top.c: Fix indentation.
2265 * tracefile-tfile.c: Fix indentation.
2266 * tracepoint.c: Fix indentation.
2267 * tui/tui-disasm.c: Fix indentation.
2268 * tui/tui-io.c: Fix indentation.
2269 * tui/tui-regs.c: Fix indentation.
2270 * tui/tui-stack.c: Fix indentation.
2271 * tui/tui-win.c: Fix indentation.
2272 * tui/tui-winsource.c: Fix indentation.
2273 * tui/tui.c: Fix indentation.
2274 * typeprint.c: Fix indentation.
2275 * ui-out.h: Fix indentation.
2276 * unittests/copy_bitwise-selftests.c: Fix indentation.
2277 * unittests/memory-map-selftests.c: Fix indentation.
2278 * utils.c: Fix indentation.
2279 * v850-tdep.c: Fix indentation.
2280 * valarith.c: Fix indentation.
2281 * valops.c: Fix indentation.
2282 * valprint.c: Fix indentation.
2283 * valprint.h: Fix indentation.
2284 * value.c: Fix indentation.
2285 * value.h: Fix indentation.
2286 * varobj.c: Fix indentation.
2287 * vax-tdep.c: Fix indentation.
2288 * windows-nat.c: Fix indentation.
2289 * windows-tdep.c: Fix indentation.
2290 * xcoffread.c: Fix indentation.
2291 * xml-syscall.c: Fix indentation.
2292 * xml-tdesc.c: Fix indentation.
2293 * xstormy16-tdep.c: Fix indentation.
2294 * xtensa-config.c: Fix indentation.
2295 * xtensa-linux-nat.c: Fix indentation.
2296 * xtensa-linux-tdep.c: Fix indentation.
2297 * xtensa-tdep.c: Fix indentation.
2298
2299 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2300 Craig Blackmore <craig.blackmore@embecosm.com>
2301
2302 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2303 as an unsigned value.
2304
2305 2020-11-01 Tom Tromey <tom@tromey.com>
2306
2307 * dbxread.c (dbx_end_psymtab): Update.
2308 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2309 (build_type_psymtabs_reader): Update.
2310 * xcoffread.c (xcoff_end_psymtab): Update.
2311 * ctfread.c (scan_partial_symbols): Update.
2312 * psymtab.c (sort_pst_symbols): Remove.
2313 (partial_symtab::end): Rename from end_psymtab_common. Inline
2314 sort_pst_symbols.
2315 * psympriv.h (struct partial_symtab) <end>: New method.
2316 (end_psymtab_common): Don't declare.
2317
2318 2020-11-01 Tom Tromey <tom@tromey.com>
2319
2320 * symmisc.c (count_psyms): New function.
2321 (print_objfile_statistics): Use it.
2322 * psymtab.c (append_psymbol_to_list): Remove.
2323 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2324 * objfiles.h (struct objstats) <n_psyms>: Remove.
2325
2326 2020-11-01 Tom Tromey <tom@tromey.com>
2327
2328 * dbxread.c (dbx_end_psymtab): Update.
2329 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2330 (build_type_psymtabs_reader): Update.
2331 * xcoffread.c (xcoff_end_psymtab): Update.
2332 * ctfread.c (scan_partial_symbols): Update.
2333 * psympriv.h (end_psymtab_common): Update.
2334 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2335 (sort_pst_symbols): Likewise.
2336
2337 2020-11-01 Tom Tromey <tom@tromey.com>
2338
2339 * dbxread.c (dbx_symfile_read): Update.
2340 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2341 * xcoffread.c (xcoff_initial_scan): Update.
2342 * psympriv.h (init_psymbol_list): Don't declare.
2343 * psymtab.c (init_psymbol_list): Remove.
2344
2345 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2346
2347 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2348 gnat_encoded_fixed_type_info. Update all callers.
2349
2350 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2351
2352 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2353 line too long.
2354
2355 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2356
2357 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2358 cast_from_fixed. Update all callers.
2359 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2360 Update all callers.
2361 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2362 Update all callers.
2363 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2364 ada_scaling_factor.
2365 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2366 to print_gnat_encoded_fixed_point_type.
2367 * ada-valprint.c: Likewise.
2368
2369 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2372 (debug_prefixed_printf): Add check of debug_displaced flag.
2373 * linux-nat.c (linux_nat_debug_printf): Add check of
2374 debug_linux_nat flag.
2375
2376 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2377
2378 * infrun.c (infrun_debug_printf_1): Remove.
2379 (displaced_debug_printf_1): Remove.
2380 (stop_all_threads): Use debug_prefixed_printf.
2381 * infrun.h (infrun_debug_printf_1): Remove.
2382 (infrun_debug_printf): Use debug_prefixed_printf.
2383 (displaced_debug_printf_1): Remove.
2384 (displaced_debug_printf): Use debug_prefixed_printf.
2385 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2386 (linux_nat_debug_printf): Use debug_prefixed_printf.
2387
2388 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2389
2390 * configure: Re-generate.
2391 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2392 AC_LANG_PROGRAM.
2393
2394 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2395
2396 * configure: Re-generate.
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 * acinclude.m4: Modernize.
2413 * configure: Re-generate.
2414
2415 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2416
2417 * configure.ac: Modernize.
2418 * configure: Re-generate.
2419
2420 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2421
2422 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2423 * configure: Re-generate.
2424 * configure.ac: Remove AM_PROG_CC_STDC.
2425
2426 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2427
2428 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2429 AC_CANONICAL_SYSTEM.
2430 * configure: Re-generate.
2431
2432 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2433
2434 * infrun.h (displaced_debug_printf): New macro. Replace
2435 displaced debug prints throughout to use it.
2436 (displaced_debug_printf_1): New declaration.
2437 (displaced_step_dump_bytes): Return string, remove ui_file
2438 parameter, update all callers.
2439 * infrun.c (displaced_debug_printf_1): New function.
2440 (displaced_step_dump_bytes): Return string, remove ui_file
2441 parameter
2442
2443 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2444
2445 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2446
2447 2020-10-30 Tom Tromey <tromey@adacore.com>
2448
2449 * Makefile.in (stamp-init): Depend on config.status.
2450
2451 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2452
2453 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2454
2455 2020-10-30 Pedro Alves <pedro@palves.net>
2456
2457 * thread.c (lookup_selected_frame): Move ...
2458 * frame.c (lookup_selected_frame): ... here.
2459
2460 2020-10-30 Pedro Alves <pedro@palves.net>
2461
2462 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2463 * frame.c
2464 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2465 Use save_selected_frame. Save language as well.
2466 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2467 Use restore_selected_frame, and restore language as well.
2468 (selected_frame_id, selected_frame_level): New.
2469 (selected_frame): Update comments.
2470 (save_selected_frame, restore_selected_frame): New.
2471 (get_selected_frame): Use lookup_selected_frame.
2472 (get_selected_frame_if_set): Delete.
2473 (select_frame): Record selected_frame_level and selected_frame_id.
2474 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2475 fields.
2476 (get_selected_frame): Make 'message' parameter optional.
2477 (get_selected_frame_if_set): Delete declaration.
2478 (select_frame): Update comments.
2479 (save_selected_frame, restore_selected_frame)
2480 (lookup_selected_frame): Declare.
2481 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2482 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2483 New field.
2484 (save_infcall_control_state): Use save_selected_frame.
2485 (restore_selected_frame): Delete.
2486 (restore_infcall_control_state): Use restore_selected_frame.
2487 * stack.c (select_frame_command_core, frame_command_core): Use
2488 get_selected_frame.
2489 * thread.c (restore_selected_frame): Rename to ...
2490 (lookup_selected_frame): ... this and make extern. Select the
2491 current frame if the frame level is -1.
2492 (scoped_restore_current_thread::restore): Also restore the
2493 language.
2494 (scoped_restore_current_thread::~scoped_restore_current_thread):
2495 Don't try/catch.
2496 (scoped_restore_current_thread::scoped_restore_current_thread):
2497 Save the language as well. Use save_selected_frame.
2498
2499 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2500
2501 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2502 documentation.
2503 * gdbarch.h: Re-generate.
2504
2505 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2506
2507 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2508 parameter.
2509 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2510 Likewise.
2511 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2512 Likewise.
2513 * arch-utils.c (default_displaced_step_hw_singlestep):
2514 Likewise.
2515 * arch-utils.h (default_displaced_step_hw_singlestep):
2516 Likewise.
2517 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2518 Likewise.
2519 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2520 Likewise.
2521 * gdbarch.c: Re-generate.
2522 * gdbarch.h: Re-generate.
2523 * infrun.c (resume_1): Adjust.
2524
2525 2020-10-29 Tom Tromey <tom@tromey.com>
2526
2527 * progspace.c (program_space::~program_space): Don't call
2528 exec_close.
2529
2530 2020-10-29 Tom Tromey <tom@tromey.com>
2531
2532 * exec.c (exec_target::close): Don't change current program
2533 space.
2534
2535 2020-10-29 Tom Tromey <tom@tromey.com>
2536
2537 * symfile.c (add_symbol_file_command): Update.
2538 * exec.c (program_space::add_target_sections): Rename.
2539 * symfile-mem.c (symbol_file_add_from_memory): Update.
2540 * progspace.h (struct program_space) <add_target_sections>:
2541 Declare new overload.
2542 * exec.h (add_target_sections_of_objfile): Don't declare.
2543
2544 2020-10-29 Tom Tromey <tom@tromey.com>
2545
2546 * solib.c (solib_map_sections): Update.
2547 * exec.c (program_space::add_target_sections): Now a method.
2548 (exec_file_attach): Update.
2549 * exec.h (add_target_sections): Don't declare.
2550 * progspace.h (struct program_space) <add_target_sections>:
2551 Declare.
2552
2553 2020-10-29 Tom Tromey <tom@tromey.com>
2554
2555 * progspace.h (struct program_space) <remove_target_sections>:
2556 Declare.
2557 * exec.c (program_space::remove_target_sections): Now a method.
2558 * exec.h (remove_target_sections): Don't declare.
2559
2560 2020-10-29 Tom Tromey <tom@tromey.com>
2561
2562 * inferior.c (delete_inferior): Update.
2563 * progspace.c (program_space::empty): Rename from
2564 program_space_empty_p. Return bool.
2565 * progspace.h (struct program_space) <empty>: New method.
2566 (program_space_empty_p): Don't declare.
2567
2568 2020-10-29 Tom Tromey <tom@tromey.com>
2569
2570 * progspace.c (program_space::~program_space): Don't call
2571 clear_program_space_solib_cache.
2572 (program_space::clear_solib_cache): Rename from
2573 clear_solib_cache.
2574 * solib.c (handle_solib_event): Update.
2575 * progspace.h (struct program_space) <clear_solib_cache>: New
2576 method.
2577 (clear_program_space_solib_cache): Don't declare.
2578
2579 2020-10-29 Tom Tromey <tom@tromey.com>
2580
2581 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2582 * target.c (info_target_command): Update.
2583 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2584 (symbol_file_clear, reread_symbols): Update.
2585 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2586 * stabsread.c (scan_file_globals): Update.
2587 * solib.c (update_solib_list): Update.
2588 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2589 (svr4_fetch_objfile_link_map, enable_break)
2590 (svr4_relocate_main_executable)
2591 (svr4_iterate_over_objfiles_in_search_order): Update.
2592 * solib-frv.c (lm_base, enable_break)
2593 (frv_relocate_main_executable): Update.
2594 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2595 (frv_fetch_objfile_link_map): Update.
2596 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2597 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2598 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2599 * remote.c (remote_target::get_offsets): Update.
2600 (remote_target::start_remote)
2601 (extended_remote_target::post_attach): Update.
2602 * objfiles.c (entry_point_address_query): Update.
2603 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2604 * minsyms.c (get_symbol_leading_char): Update.
2605 * frame.c (inside_main_func): Update.
2606 * progspace.h (symfile_objfile): Remove macro.
2607
2608 2020-10-29 Tom Tromey <tom@tromey.com>
2609
2610 * exec.c (exec_file_attach): Update.
2611 * progspace.c (program_space::exec_close): Update.
2612 * progspace.h (struct program_space) <ebfd>: Now a
2613 gdb_bfd_ref_ptr.
2614 <set_exec_bfd>: Change argument type.
2615 <exec_bfd>: Update.
2616
2617 2020-10-29 Tom Tromey <tom@tromey.com>
2618
2619 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2620 * symfile.c (reread_symbols): Update.
2621 * symfile-mem.c (add_symbol_file_from_memory_command)
2622 (add_vsyscall_page): Update.
2623 * source-cache.c (source_cache::get_plain_source_lines): Update.
2624 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2625 (svr4_current_sos_direct, svr4_exec_displacement)
2626 (svr4_relocate_main_executable): Update.
2627 (svr4_iterate_over_objfiles_in_search_order): Update.
2628 * solib-frv.c (enable_break2, enable_break): Update.
2629 * solib-dsbt.c (lm_base, enable_break): Update.
2630 * solib-darwin.c (find_program_interpreter)
2631 (darwin_solib_create_inferior_hook): Update.
2632 * sol-thread.c (rw_common, ps_pdmodel): Update.
2633 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2634 * remote.c (compare_sections_command)
2635 (remote_target::trace_set_readonly_regions): Update.
2636 * remote-sim.c (get_sim_inferior_data)
2637 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2638 (gdbsim_target_open, gdbsim_target::files_info): Update.
2639 * exec.h (exec_bfd): Remove macro.
2640 * progspace.c (initialize_progspace): Update.
2641 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2642 Update.
2643 * nto-procfs.c (nto_procfs_target::post_attach)
2644 (nto_procfs_target::create_inferior): Update.
2645 * maint.c (maintenance_info_sections): Update.
2646 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2647 Update.
2648 * infcmd.c (post_create_inferior): Update.
2649 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2650 (objfile_find_memory_regions): Update.
2651 * exec.c (validate_exec_file, exec_file_attach)
2652 (exec_read_partial_read_only, print_section_info): Update.
2653 * corelow.c (core_target_open): Update.
2654 * corefile.c (reopen_exec_file, validate_files): Update.
2655 * arm-tdep.c (gdb_print_insn_arm): Update.
2656 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2657 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2658 methods.
2659
2660 2020-10-29 Tom Tromey <tom@tromey.com>
2661
2662 * progspace.h (current_target_sections): Remove macro.
2663 * solib-svr4.c (scan_dyntag): Update.
2664 * solib-dsbt.c (scan_dyntag): Update.
2665 * exec.c (exec_target::close): Update.
2666 (add_target_sections, add_target_sections_of_objfile)
2667 (remove_target_sections, exec_target::get_section_table)
2668 (exec_target::files_info, set_section_command)
2669 (exec_set_section_address, exec_target::has_memory)
2670 (exec_target::has_memory): Update.
2671
2672 2020-10-29 Tom Tromey <tom@tromey.com>
2673
2674 * source-cache.c (source_cache::get_plain_source_lines): Use
2675 current_program_space.
2676 * corefile.c (reopen_exec_file): Use current_program_space.
2677 * exec.c (exec_file_attach): Use current_program_space.
2678 * exec.h (exec_bfd_mtime): Remove.
2679
2680 2020-10-29 Tom Tromey <tom@tromey.com>
2681
2682 * gcore.c (default_gcore_mach): Remove.
2683 (create_gcore_bfd): Update.
2684
2685 2020-10-29 Tom Tromey <tom@tromey.com>
2686
2687 * progspace.c (program_space::exec_close): New method, from
2688 exec_close in exec.c.
2689 * exec.c (exec_close): Move to progspace.c.
2690 (exec_target::close, exec_file_attach): Update.
2691 * progspace.h (struct program_space) <exec_close>: Declare
2692 method.
2693
2694 2020-10-29 Tom Tromey <tom@tromey.com>
2695
2696 * progspace.h (struct program_space) <exec_filename>: Rename from
2697 pspace_exec_filename. Now a unique_xmalloc_ptr.
2698 * inferior.c (print_selected_inferior): Update.
2699 (print_inferior): Update.
2700 * mi/mi-main.c (print_one_inferior): Update.
2701 * exec.h (exec_filename): Remove macro.
2702 * corefile.c (get_exec_file): Update.
2703 * exec.c (exec_close): Update.
2704 (exec_file_attach): Update.
2705 * progspace.c (clone_program_space): Update.
2706 (print_program_space): Update.
2707
2708 2020-10-29 Tom Tromey <tom@tromey.com>
2709
2710 * target-section.h (struct target_section): Add constructor.
2711 * exec.c (build_section_table, add_target_sections_of_objfile):
2712 Update.
2713 * corelow.c (core_target::build_file_mappings): Update.
2714
2715 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2716
2717 PR gdb/19318
2718 * inferior.c (detach_inferior_command): Restore the current thread.
2719 (kill_inferior_command): Ditto.
2720
2721 2020-10-28 Tom de Vries <tdevries@suse.de>
2722
2723 PR symtab/26772
2724 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2725 map, check it in the "best match" loop.
2726
2727 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2728
2729 * m32c-tdep.c: Remove unused includes.
2730
2731 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * xtensa-tdep.c: Remove includes.
2734
2735 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2736
2737 * breakpoint.c (struct condition_command_opts): New struct.
2738 (condition_command_option_defs): New static global.
2739 (make_condition_command_options_def_group): New function.
2740 (condition_completer): Update to consider the '-force' flag.
2741 (condition_command): Use gdb::option for the '-force' flag.
2742
2743 2020-10-27 Tom de Vries <tdevries@suse.de>
2744
2745 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2746 symbols in section check.
2747
2748 2020-10-27 Tom de Vries <tdevries@suse.de>
2749
2750 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2751
2752 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2753
2754 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2755 * breakpoint.c: Update the help text of the 'condition' and 'break'
2756 commands.
2757 (set_breakpoint_condition): Take a new bool parameter
2758 to control whether condition definition should be forced even when
2759 the condition expression is invalid in all of the current locations.
2760 (condition_command): Update the call to 'set_breakpoint_condition'.
2761 (find_condition_and_thread): Take the "-force-condition" flag into
2762 account.
2763 * linespec.c (linespec_keywords): Add "-force-condition" as an
2764 element.
2765 (FORCE_KEYWORD_INDEX): New #define.
2766 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2767 as a keyword.
2768 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2769 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2770 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2771 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2772
2773 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2774
2775 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2776 * breakpoint.c (set_breakpoint_location_condition): New function.
2777 (set_breakpoint_condition): Disable a breakpoint location if parsing
2778 the condition string gives an error.
2779 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2780 (build_target_condition_list): Ditto.
2781 (build_target_command_list): Ditto.
2782 (build_bpstat_chain): Ditto.
2783 (print_one_breakpoint_location): Ditto.
2784 (print_one_breakpoint): Ditto.
2785 (breakpoint_1): Ditto.
2786 (bp_location::bp_location): Ditto.
2787 (locations_are_equal): Ditto.
2788 (update_breakpoint_locations): Ditto.
2789 (enable_disable_bp_num_loc): Ditto.
2790 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2791 (find_condition_and_thread_for_sals): New static function.
2792 (create_breakpoint): Call find_condition_and_thread_for_sals.
2793 (location_to_sals): Call find_condition_and_thread_for_sals instead
2794 of find_condition_and_thread.
2795
2796 2020-10-26 Tom de Vries <tdevries@suse.de>
2797
2798 * dwarf2/read.c (process_full_comp_unit): Call
2799 dwarf2_find_base_address.
2800
2801 2020-10-26 Tom Tromey <tromey@adacore.com>
2802
2803 * gdbtypes.c (create_range_type): Revert previous patch. Add
2804 comment.
2805
2806 2020-10-26 Pedro Alves <pedro@palves.net>
2807
2808 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2809 (my_waitpid): Use gdb::handle_eintr.
2810
2811 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2812
2813 * acinclude.m4: Update ptrace.m4 path.
2814 * ptrace.m4: Moved to gdbsupport.
2815
2816 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2817
2818 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2819 instead of target_gdbarch.
2820
2821 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2822
2823 * jit.c (jit_reader_load_command): Pass current inferior.
2824 (jit_inferior_init): Change parameter type to inferior, use it.
2825 (jit_inferior_created): Remove.
2826 (jit_inferior_created_hook): Pass inferior parameter down.
2827 (_initialize_jit): Use jit_inferior_created_hook instead of
2828 jit_inferior_created.
2829 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2830 * infrun.c (follow_exec): Pass inferior to
2831 jit_inferior_created_hook.
2832
2833 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2836 parameter and use it.
2837 (thread_db_inferior_created): Pass inferior argument.
2838
2839 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2840
2841 * aix-thread.c (aix_thread_inferior_created): Add inferior
2842 parameter.
2843 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2844 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2845 * jit.c (jit_inferior_created): Likewise.
2846 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2847 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2848 * observable.h (inferior_created): Likewise.
2849 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2850 * symfile-mem.c (add_vsyscall_page): Likewise.
2851 * infcmd.c (post_create_inferior): Pass inferior argument.
2852
2853 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2854
2855 GDB 10.1 released.
2856
2857 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2858
2859 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2860 to ada_check_typedef.
2861
2862 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2863
2864 * f-exp.y (f_parse): Rename to...
2865 (f_language::parser): ...this.
2866 * f-lang.c (f_get_encoding): Rename to...
2867 (f_language::get_encoding): ...this.
2868 (f_op_print_tab): Rename to...
2869 (f_language::op_print_tab): ...this.
2870 (exp_descriptor_f): Rename to...
2871 (f_language::exp_descriptor_tab): ...this.
2872 (class f_language): Moved to f-lang.h.
2873 (f_language::language_arch_info): New function, moved out of class
2874 declaration.
2875 (f_language::search_name_hash): Likewise.
2876 (f_language::lookup_symbol_nonlocal): Likewise.
2877 (f_language::get_symbol_name_matcher_inner): Likewise.
2878 * f-lang.h: Add 'valprint.h' include.
2879 (class f_language): Moved here from f-lang.c.
2880 * f-typeprint.c (f_type_print_args): Delete commented out
2881 declaration.
2882 (f_print_typedef): Rename to...
2883 (f_language::print_typedef): ...this.
2884 (f_print_type): Rename to...
2885 (f_language::print_type): ...this.
2886 (f_type_print_varspec_prefix): Delete declaration and rename to...
2887 (f_language::f_type_print_varspec_prefix): ...this.
2888 (f_type_print_varspec_suffix): Delete declaration and rename to...
2889 (f_language::f_type_print_varspec_suffix): ...this.
2890 (f_type_print_base): Delete declaration and rename to...
2891 (f_language::f_type_print_base): ...this.
2892 * f-valprint.c (f_value_print_inner): Rename to...
2893 (f_language::value_print_inner): ...this.
2894 * parse.c: Delete 'f-lang.h' include.
2895
2896 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2897
2898 * language.h (language_defn::print_type): Add variable names in
2899 declaration, and update header comment.
2900
2901 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2902
2903 * ada-lang.c (ada_language::demangle): Rename to...
2904 (ada_language::demangle_symbol): ...this.
2905 * c-lang.c (cplus_language::demangle): Rename to...
2906 (cplus_language::demangle_symbol): ...this.
2907 * d-lang.c (d_language::demangle): Rename to...
2908 (d_language::demangle_symbol): ...this.
2909 * f-lang.c (f_language::demangle): Rename to...
2910 (f_language::demangle_symbol): ...this.
2911 * go-lang.c (go_language::demangle): Rename to...
2912 (go_language::demangle_symbol): ...this.
2913 * language.c (language_demangle): Update call to demangle_symbol.
2914 (auto_or_unknown_language::demangle): Rename to...
2915 (auto_or_unknown_language::demangle_symbol): ...this.
2916 * language.h (language_defn::demangle): Rename to...
2917 (language_defn::demangle_symbol): ...this.
2918 * objc-lang.c (objc_language::demangle): Rename to...
2919 (objc_language::demangle_symbol): ...this.
2920 * rust-lang.c (rust_language::demangle): Rename to...
2921 (rust_language::demangle_symbol): ...this.
2922
2923 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2926 (iterate_over_file_blocks): Replace use of macro with the macros
2927 definition.
2928
2929 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2930
2931 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2932 * valprint.c (maybe_print_array_index): Replace use of macro with
2933 the macros definition.
2934
2935 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * ada-lang.c (ada_language::print_array_index): Call value_print
2938 directly.
2939 * language.c (language_defn::print_array_index): Likewise.
2940 * language.h (LA_VALUE_PRINT): Delete.
2941 * valprint.c (value_print): Call value_print on the
2942 current_language directly.
2943
2944 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * language.h (LA_PRINT_TYPEDEF): Delete.
2947 * typeprint.c (typedef_print): Call print_typedef directly on the
2948 current_language object.
2949
2950 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * m2-exp.y (m2_parse): Rename to...
2953 (m2_language::parser): ...this. Update function signature.
2954 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2955 (m2_op_print): Rename to...
2956 (m2_language::op_print_tab): ...this, and make const.
2957 (exp_descriptor_modula2): Rename to...
2958 (m2_language::exp_descriptor_modula2): ...this.
2959 (class m2_language): Move to m2-lang.h.
2960 (m2_language::language_arch_info): New function, moved out of
2961 class declaration.
2962 (m2_language::printchar): New function, body from m2_printchar.
2963 (m2_language::printstr): New function, moved out of class
2964 declaration.
2965 (m2_language::emitchar): Likewise.
2966 * m2-lang.h (m2_parse): Delete declaration.
2967 (m2_print_typedef): Delete declaration.
2968 (m2_value_print_inner): Delete declaration.
2969 (class m2_language): Class declaration moved from m2-lang.c,
2970 larger functions are left in m2-lang.c.
2971 * m2-typeprint.c (m2_print_typedef): Rename to...
2972 (m2_language::print_typedef): ...this, and update function
2973 signature.
2974 * m2-valprint.c (m2_value_print_inner): Rename to...
2975 (m2_language::value_print_inner): ...this, replace use of
2976 LA_PRINT_STRING with a direct call to printstr member function,
2977 and update recursive call.
2978
2979 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2980
2981 * language.c (default_is_string_type_p): Delete, implementation
2982 moved into auto_or_unknown_language::is_string_type_p.
2983 (unk_op_print_tab): Moved into
2984 auto_or_unknown_language::opcode_print_table.
2985 (unknown_language_arch_info): Delete, implementation moved into
2986 auto_or_unknown_language::language_arch_info.
2987 (class auto_or_unknown_language): New class, member functions
2988 copied from unknown_language class, with some updates.
2989 (class unknown_language): Most member functions moved into
2990 auto_or_unknown_language class. Inherit from
2991 auto_or_unknown_language class.
2992 (class auto_language): Inherit from auto_or_unknown_language.
2993 Delete most member functions.
2994
2995 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2996
2997 * stabsread.c (read_member_functions): Remove gdb_assert.
2998
2999 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3000
3001 * gdbtypes.c (init_complex_type): Check target type name.
3002
3003 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3004
3005 * target-debug.h (target_debug_print_struct_target_ops_p):
3006 Remove.
3007 (target_debug_print_async_callback_ftype_p): Remove.
3008 (target_debug_print_struct_trace_state_variable_p): Remove.
3009 (target_debug_print_struct_traceframe_info_p): Remove.
3010 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3011 (target_debug_print_enum_btrace_format): Remove.
3012 (target_debug_print_enum_info_proc_what): Remove.
3013 (target_debug_print_thread_info_pp): Remove.
3014
3015 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
3016
3017 * target.h (struct target_ops) <make_corefile_notes>:
3018 Change return type to unique pointer.
3019 * target.c (dummy_make_corefile_notes): Likewise.
3020 * exec.c (struct exec_target) <make_corefile_notes>:
3021 Likewise.
3022 (exec_target::make_corefile_notes): Likewise.
3023 * procfs.c (class procfs_target) <make_corefile_notes>:
3024 Likewise.
3025 (procfs_do_thread_registers): Adjust to unique pointer.
3026 (struct procfs_corefile_thread_data): Add constructor.
3027 <note_data>: Change type to unique pointer.
3028 (procfs_corefile_thread_callback): Adjust to unique pointer.
3029 (procfs_target::make_corefile_notes): Change return type to
3030 unique pointer.
3031 * target-delegates.c: Re-generate.
3032 * gcore.c (write_gcore_file_1): Adjust.
3033 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3034 New.
3035
3036 2020-10-22 Tom de Vries <tdevries@suse.de>
3037
3038 * block.c (find_block_in_blockvector): Make sure the returned block
3039 contains pc.
3040
3041 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3042
3043 PR gdb/26693
3044 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3045 parameter.
3046 (load_cu): Pass existing CU.
3047 (process_imported_unit_die): Likewise.
3048 (follow_die_offset): Likewise.
3049
3050 2020-10-22 Luis Machado <luis.machado@linaro.org>
3051
3052 * corelow.c (core_target::xfer_partial): Also check for an empty
3053 m_core_unavailable_mappings vector.
3054
3055 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3056
3057 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3058 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3059 * f-exp.y (arglist): Allow for a series of subranges.
3060 (subrange): Add cases for subranges with strides.
3061 * f-lang.c (value_f90_subarray): Catch use of array strides and
3062 throw an error.
3063 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3064
3065 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * expprint.c (print_subexp_standard): Change enum range_type to
3068 range_flag and rename variables to match.
3069 (dump_subexp_body_standard): Likewise.
3070 * expression.h (enum range_type): Rename to...
3071 (enum range_flag): ...this.
3072 (range_types): Rename to...
3073 (range_flags): ...this.
3074 * f-lang.c (value_f90_subarray): Change enum range_type to
3075 range_flag and rename variables to match.
3076 * parse.c (operator_length_standard): Likewise.
3077 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3078 range_type to range_flag.
3079 * rust-lang.c (rust_evaluate_funcall): Likewise.
3080 (rust_range): Likewise.
3081 (rust_compute_range): Likewise.
3082 (rust_subscript): Likewise.
3083
3084 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3085
3086 * expprint.c (print_subexp_standard): Update to reflect changes to
3087 enum range_type.
3088 (dump_subexp_body_standard): Likewise.
3089 * expression.h (enum range_type): Convert to a bit field enum, and
3090 make the enum unsigned.
3091 * f-exp.y (subrange): Update to reflect changes to enum
3092 range_type.
3093 * f-lang.c (value_f90_subarray): Likewise.
3094 * parse.c (operator_length_standard): Likewise.
3095 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3096 * rust-lang.c (rust_range): Likewise.
3097 (rust_compute_range): Likewise.
3098 (rust_subscript): Likewise.
3099
3100 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3101
3102 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3103 (displaced_step_in_progress): Fix comment.
3104
3105 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3106
3107 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3108 * gdbarch.c: Re-generate.
3109 * gdbarch.h: Re-generate.
3110 * gcore.c (write_gcore_file_1): Adjust.
3111 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3112 constructor.
3113 <note_data>: Change type to unique pointer.
3114 <abort_iteration>: Change type to bool.
3115 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3116 (fbsd_collect_thread_registers): Return void, adjust.
3117 (struct fbsd_corefile_thread_data): Add construtor.
3118 <note_data>: Change type to unique pointer.
3119 (fbsd_corefile_thread): Adjust.
3120 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3121 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3122 to unique pointer, adjust.
3123 (struct linux_collect_regset_section_cb_data): Add constructor.
3124 <note_data>: Change type to unique pointer.
3125 <abort_iteration>: Change type to bool.
3126 (linux_collect_thread_registers): Return void, adjust.
3127 (struct linux_corefile_thread_data): Add constructor.
3128 <note_data>: Change type to unique pointer.
3129 (linux_corefile_thread): Adjust.
3130 (linux_make_corefile_notes): Return unique pointer, adjust.
3131
3132 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3135 * gdbarch.c: Re-generate.
3136 * gdbarch.h: Re-generate.
3137 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3138 bool.
3139 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3140 Likewise.
3141 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3142 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3143 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3144 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3145
3146 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3147
3148 * gdbarch.sh: Make generated predicates return bool.
3149 * gdbarch.c: Re-generate.
3150 * gdbarch.h: Re-generate.
3151
3152 2020-10-20 Tom Tromey <tom@tromey.com>
3153
3154 * varobj-iter.h (struct varobj_item): Remove typedef.
3155
3156 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3157
3158 * infrun.c (currently_stepping): Change int to bool
3159 (maybe_software_singlestep): Likewise.
3160 (show_stop_on_solib_events): Likewise.
3161 (stepping_past_nonsteppable_watchpoint): Likewise.
3162 (displaced_step_in_progress_any_inferior): Likewise.
3163 (displaced_step_in_progress_thread): Likewise.
3164 (keep_going_stepped_thread): Likewise.
3165 (thread_still_needs_step_over): Likewise.
3166 (start_step_over): Likewise.
3167 (do_target_resume): Likewise.
3168 (resume_1): Likewise.
3169 (clear_proceed_status): Likewise.
3170 (thread_still_needs_step_over_bp): Likewise.
3171 (proceed): Likewise.
3172 (switch_back_to_stepped_thread): Likewise.
3173 (adjust_pc_after_break): Likewise.
3174 (stepped_in_from): Likewise.
3175 (handle_stop_requested): Likewise.
3176 (handle_syscall_event): Likewise.
3177 (handle_no_resumed): Likewise.
3178 (handle_inferior_event): Likewise.
3179 (finish_step_over): Likewise.
3180 (handle_signal_stop): Likewise.
3181 (process_event_stop_test): Likewise.
3182
3183 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3184
3185 * infrun.c (get_displaced_stepping_state): Fix comment.
3186
3187 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3188
3189 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3190
3191 2020-10-19 Tom Tromey <tromey@adacore.com>
3192
3193 PR tui/26719
3194 * tui/tui-winsource.h (struct tui_source_window_base)
3195 <refresh_window>: Rename from refresh_pad.
3196 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3197 Rename from refresh_pad.
3198 (tui_source_window_base::show_source_content)
3199 (tui_source_window_base::do_scroll_horizontal): Update.
3200
3201 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3202
3203 * thread.c (_initialize_thread): Fine-tune the help text of
3204 'info threads'.
3205
3206 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3207
3208 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3209
3210 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3211
3212 * breakpoint.c (handle_jit_event): Add an argument, change how
3213 `jit_event_handler` is called.
3214
3215 2020-10-17 Tom Tromey <tom@tromey.com>
3216
3217 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3218 (scan_xcoff_symtab): Update.
3219 * psymtab.h (class psymtab_storage) <global_psymbols,
3220 static_psymbols, current_global_psymbols,
3221 current_static_psymbols>: Remove.
3222 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3223 (match_partial_symbol, lookup_partial_symbol): Update.
3224 (print_partial_symbols): Change parameters.
3225 (dump_psymtab, recursively_search_psymtabs)
3226 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3227 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3228 (concat): Remove.
3229 (end_psymtab_common): Simplify.
3230 (append_psymbol_to_list): Change parameters.
3231 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3232 (init_psymbol_list): Simplify.
3233 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3234 * psympriv.h (struct partial_symtab) <empty>: New method.
3235 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3236 Remove.
3237 <global_psymbols, static_psymbols>: New members.
3238 <add_psymbol>: New methods.
3239 (add_psymbol_to_list): Don't declare.
3240 (psymbol_placement): Move earlier.
3241 * mdebugread.c (parse_partial_symbols): Update.
3242 (handle_psymbol_enumerators): Change parameters.
3243 (mdebug_expand_psymtab): Update.
3244 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3245 (add_partial_symbol): Update.
3246 * dwarf2/index-write.c (write_psymbols): Change parameters.
3247 (write_one_signatured_type): Update.
3248 (recursively_count_psymbols): Update.
3249 (recursively_write_psymbols): Update.
3250 (class debug_names) <recursively_write_psymbols>: Update.
3251 <write_psymbols>: Change parameters.
3252 <write_one_signatured_type>: Update.
3253 * dbxread.c (read_dbx_symtab): Update.
3254 (dbx_end_psymtab): Use partial_symtab::empty.
3255 * ctfread.c (struct ctf_context) <pst>: New member.
3256 (create_partial_symtab): Set it.
3257 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3258 (scan_partial_symbols): Use the psymtab's context. Update.
3259
3260 2020-10-17 Tom Tromey <tom@tromey.com>
3261
3262 * valprint.c (generic_value_print): Remove comment.
3263 * m2-valprint.c (m2_value_print_inner): Remove comment.
3264 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3265 type.
3266
3267 2020-10-17 Tom de Vries <tdevries@suse.de>
3268
3269 PR symtab/26317
3270 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3271 symbol main.
3272
3273 2020-10-14 Tom de Vries <tdevries@suse.de>
3274
3275 PR gdb/26733
3276 * solib.c (solib_contains_address_p): Handle
3277 'solib->sections == nullptr'.
3278
3279 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3280
3281 PR gdb/26642
3282 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3283 target can't do async.
3284 * target.c (target_wait): Assert that we don't pass
3285 TARGET_WNOHANG to a target that can't async.
3286
3287 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3288
3289 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3290 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3291 * alpha-bsd-nat.c: Adjust include.
3292 * alpha-bsd-tdep.h: Adjust comment.
3293 * alpha-nbsd-tdep.c: Rename to ...
3294 * alpha-netbsd-tdep.c: ... this, adjust include.
3295 * amd64-nbsd-nat.c: Rename to ...
3296 * amd64-netbsd-nat.c: ... this, adjust include.
3297 * amd64-nbsd-tdep.c: Rename to ...
3298 * amd64-netbsd-tdep.c: ... this, adjust include.
3299 * amd64-tdep.h: Adjust include.
3300 * arm-nbsd-nat.c: Rename to ...
3301 * arm-netbsd-nat.c: ... this, adjust include.
3302 * arm-nbsd-tdep.c: Rename to ...
3303 * arm-netbsd-tdep.c: ... this, adjust include.
3304 * arm-nbsd-tdep.h: Rename to ...
3305 * arm-netbsd-tdep.h: ... this, adjust include.
3306 * configure.nat: Adjust file lists.
3307 * configure.tgt: Likewise.
3308 * hppa-nbsd-nat.c: Rename to ...
3309 * hppa-netbsd-nat.c: ... this, adjust include.
3310 * hppa-nbsd-tdep.c: Rename to ...
3311 * hppa-netbsd-tdep.c: ... this, adjust include.
3312 * i386-nbsd-nat.c: Rename to ...
3313 * i386-netbsd-nat.c: ... this, adjust include.
3314 * i386-nbsd-tdep.c: Rename to ...
3315 * i386-netbsd-tdep.c: ... this, adjust include.
3316 * m68k-bsd-nat.c: Adjust include.
3317 * mips-nbsd-nat.c: Rename to ...
3318 * mips-netbsd-nat.c: ... this, adjust include.
3319 * mips-nbsd-tdep.c: Rename to ...
3320 * mips-netbsd-tdep.c: ... this, adjust include.
3321 * mips-nbsd-tdep.h: Rename to ...
3322 * mips-netbsd-tdep.h: ... this.
3323 * nbsd-nat.c: Rename to ...
3324 * netbsd-nat.c: ... this, adjust include.
3325 * nbsd-nat.h: Rename to ...
3326 * netbsd-nat.h: ... this, adjust include.
3327 * nbsd-tdep.c: Rename to ...
3328 * netbsd-tdep.c: ... this, adjust include.
3329 * nbsd-tdep.h: Rename to ...
3330 * netbsd-tdep.h: ... this.
3331 * ppc-nbsd-nat.c: Rename to ...
3332 * ppc-netbsd-nat.c: ... this, adjust include.
3333 * ppc-nbsd-tdep.c: Rename to ...
3334 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3335 * ppc-nbsd-tdep.h: Rename to ...
3336 * ppc-netbsd-tdep.h: ... this.
3337 * sh-nbsd-nat.c: Rename to ...
3338 * sh-netbsd-nat.c: ... this, adjust include.
3339 * sh-nbsd-tdep.c: Rename to ...
3340 * sh-netbsd-tdep.c: ... this, adjust include.
3341 * sparc-nbsd-nat.c: Rename to ...
3342 * sparc-netbsd-nat.c: ... this.
3343 * sparc-nbsd-tdep.c: Rename to ...
3344 * sparc-netbsd-tdep.c: ... this, adjust include.
3345 * sparc64-nbsd-nat.c: Rename to ...
3346 * sparc64-netbsd-nat.c: ... this.
3347 * sparc64-nbsd-tdep.c: Rename to ...
3348 * sparc64-netbsd-tdep.c: ... this, adjust include.
3349 * sparc64-tdep.h: Adjust comment.
3350 * vax-bsd-nat.c: Adjust include.
3351 * vax-nbsd-tdep.c: Rename to ...
3352 * vax-netbsd-tdep.c: ... this, adjust include.
3353
3354 2020-10-12 Tom Tromey <tom@tromey.com>
3355
3356 * target.h (struct target_ops) <get_section_table>: Update.
3357 (target_get_section_table): Update.
3358 * target.c (target_get_section_table, target_section_by_addr)
3359 (memory_xfer_partial_1): Update.
3360 * target-section.h (target_section_table): Now an alias.
3361 * target-delegates.c: Rebuild.
3362 * target-debug.h (target_debug_print_target_section_table_p):
3363 Rename from target_debug_print_struct_target_section_table_p.
3364 * symfile.c (build_section_addr_info_from_section_table): Update.
3365 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3366 * solib-svr4.c (scan_dyntag): Update.
3367 * solib-dsbt.c (scan_dyntag): Update.
3368 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3369 Update.
3370 * record-full.c (record_full_core_target::xfer_partial): Update.
3371 * progspace.h (struct program_space) <target_sections>: Update.
3372 * exec.h (print_section_info): Update.
3373 * exec.c (exec_target::close, build_section_table)
3374 (add_target_sections, add_target_sections_of_objfile)
3375 (remove_target_sections, exec_on_vfork)
3376 (section_table_available_memory)
3377 (section_table_xfer_memory_partial)
3378 (exec_target::get_section_table, exec_target::xfer_partial)
3379 (print_section_info, set_section_command)
3380 (exec_set_section_address, exec_target::has_memory): Update.
3381 * corelow.c (core_target::build_file_mappings)
3382 (core_target::xfer_partial, core_target::info_proc_mappings)
3383 (core_target::info_proc_mappings): Update.
3384 * bfd-target.c (class target_bfd): Update
3385
3386 2020-10-12 Tom Tromey <tom@tromey.com>
3387
3388 * progspace.c (program_space::~program_space): Don't call
3389 clear_section_table.
3390 * exec.h (clear_section_table): Don't declare.
3391 * exec.c (exec_target::close): Update.
3392 (clear_section_table): Remove.
3393
3394 2020-10-12 Tom Tromey <tom@tromey.com>
3395
3396 * exec.c (add_target_sections_of_objfile): Simplify.
3397
3398 2020-10-12 Tom Tromey <tom@tromey.com>
3399
3400 * solib.c (solib_map_sections): Update.
3401 * record-full.c (record_full_core_open_1): Update.
3402 * exec.h (build_section_table): Return a target_section_table.
3403 * exec.c (exec_file_attach): Update.
3404 (build_section_table): Return a target_section_table.
3405 * corelow.c (core_target::core_target): Update.
3406 * bfd-target.c (target_bfd::target_bfd): Update.
3407
3408 2020-10-12 Tom Tromey <tom@tromey.com>
3409
3410 * target.c (target_section_by_addr, memory_xfer_partial_1):
3411 Update.
3412 * target-section.h (struct target_section_table): Use
3413 std::vector.
3414 * symfile.h (build_section_addr_info_from_section_table): Take a
3415 target_section_table.
3416 * symfile.c (build_section_addr_info_from_section_table): Take a
3417 target_section_table.
3418 * solist.h (struct so_list) <sections>: Change type.
3419 <sections_end>: Remove.
3420 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3421 (solib_contains_address_p): Update.
3422 * solib-svr4.c (scan_dyntag): Update.
3423 * solib-dsbt.c (scan_dyntag): Update.
3424 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3425 Update.
3426 * record-full.c (record_full_core_start, record_full_core_end):
3427 Remove.
3428 (record_full_core_sections): New global.
3429 (record_full_core_open_1, record_full_core_target::xfer_partial):
3430 Update.
3431 * exec.h (build_section_table, section_table_xfer_memory_partial)
3432 (add_target_sections): Take a target_section_table.
3433 * exec.c (exec_file_attach, clear_section_table): Update.
3434 (resize_section_table): Remove.
3435 (build_section_table, add_target_sections): Take a
3436 target_section_table.
3437 (add_target_sections_of_objfile, remove_target_sections)
3438 (exec_on_vfork): Update.
3439 (section_table_available_memory): Take a target_section_table.
3440 (section_table_read_available_memory): Update.
3441 (section_table_xfer_memory_partial): Take a target_section_table.
3442 (print_section_info, set_section_command)
3443 (exec_set_section_address, exec_target::has_memory): Update.
3444 * corelow.c (class core_target) <m_core_section_table,
3445 m_core_file_mappings>: Remove braces.
3446 <~core_target>: Remove.
3447 (core_target::core_target): Update.
3448 (core_target::~core_target): Remove.
3449 (core_target::build_file_mappings)
3450 (core_target::xfer_memory_via_mappings)
3451 (core_target::xfer_partial, core_target::info_proc_mappings):
3452 Update.
3453 * bfd-target.c (target_bfd::xfer_partial): Update.
3454 (target_bfd::target_bfd): Update.
3455 (target_bfd::~target_bfd): Remove.
3456
3457 2020-10-12 Tom Tromey <tom@tromey.com>
3458
3459 * target.h (struct target_section, struct target_section_table):
3460 Move to target-section.h.
3461 * target-section.h: New file.
3462
3463 2020-10-12 Pedro Alves <pedro@palves.net>
3464
3465 PR exp/26602
3466 * valops.c (struct struct_field_searcher): New.
3467 (update_search_result): Rename to ...
3468 (struct_field_searcher::update_result): ... this. Simplify
3469 prototype. Record all found fields.
3470 (do_search_struct_field): Rename to ...
3471 (struct_field_searcher::search): ... this. Simplify prototype.
3472 Maintain stack of visited baseclass path. Call update_result for
3473 fields too. Keep searching fields in baseclasses instead of
3474 stopping at the first found field.
3475 (search_struct_field): Use struct_field_searcher. When looking
3476 for fields, report ambiguous access attempts.
3477
3478 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3479
3480 * frame.c (inside_main_func): Check full symbols as well as
3481 minimal symbols.
3482
3483 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3484
3485 * ada-lang.c (advance_wild_match): Rewrite the function's
3486 description. Change the type of target0, t0 and t1 to char.
3487
3488 2020-10-09 Tom Tromey <tromey@adacore.com>
3489
3490 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3491
3492 2020-10-09 Tom Tromey <tromey@adacore.com>
3493
3494 * ada-lang.h (ada_encode): Return std::string.
3495 * ada-lang.c (ada_encode_1): Return std::string.
3496 (ada_encode): Likewise.
3497 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3498 Update.
3499 * ada-exp.y (block_lookup, write_var_or_type): Update.
3500
3501 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3502
3503 PR exp/26714
3504 * printcmd.c (print_formatted): Handle void results as
3505 unformatted prints.
3506
3507 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * arch/aarch32.c (aarch32_create_target_description): Release the
3510 target_desc_up as late as possible.
3511 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3512 * arch/amd64.c (amd64_create_target_description): Likewise.
3513 * arch/arc.c (arc_create_target_description): Return a
3514 target_desc_up, don't release it.
3515 * arch/arc.h (arc_create_target_description): Update declaration.
3516 (arc_lookup_target_description): Move target_desc_up into the
3517 cache, and return a borrowed pointer.
3518 * arch/arm.c (arm_create_target_description): Release the
3519 target_desc_up as late as possible.
3520 * arch/i386.c (i386_create_target_description): Likewise.
3521 * arch/riscv.h (riscv_create_target_description): Update
3522 declaration to match definition.
3523 * arch/tic6x.c (tic6x_create_target_description): Release the
3524 target_desc_up as late as possible.
3525
3526 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3527
3528 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3529 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3530
3531 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3532
3533 * source.c (directory_command): Notify observers that "directories"
3534 parameter has changed.
3535
3536 2020-10-08 Tom Tromey <tom@tromey.com>
3537
3538 * cli/cli-cmds.c (print_disassembly): Style function name and
3539 addresses. Add _() wrappers.
3540
3541 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3542
3543 * NEWS: Mention ARC support in GDBserver.
3544
3545 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3546
3547 * arch/aarch32.c (aarch32_create_target_description): Release
3548 unique_ptr returned from allocate_target_description.
3549 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3550 * arch/amd64.c (amd64_create_target_description): Likewise.
3551 * arch/arc.c (arc_create_target_description): Likewise.
3552 * arch/arm.c (arm_create_target_description): Likewise.
3553 * arch/i386.c (i386_create_target_description): Likewise.
3554 * arch/riscv.c (riscv_create_target_description): Update return
3555 type. Handle allocate_target_description returning a unique_ptr.
3556 (riscv_lookup_target_description): Update to handle unique_ptr.
3557 * arch/tic6x.c (tic6x_create_target_description): Release
3558 unique_ptr returned from allocate_target_description.
3559 * features/microblaze-with-stack-protect.c: Regenerate.
3560 * features/microblaze.c: Regenerate.
3561 * features/mips-dsp-linux.c: Regenerate.
3562 * features/mips-linux.c: Regenerate.
3563 * features/mips64-dsp-linux.c: Regenerate.
3564 * features/mips64-linux.c: Regenerate.
3565 * features/nds32.c: Regenerate.
3566 * features/nios2.c: Regenerate.
3567 * features/or1k.c: Regenerate.
3568 * features/rs6000/powerpc-32.c: Regenerate.
3569 * features/rs6000/powerpc-32l.c: Regenerate.
3570 * features/rs6000/powerpc-403.c: Regenerate.
3571 * features/rs6000/powerpc-403gc.c: Regenerate.
3572 * features/rs6000/powerpc-405.c: Regenerate.
3573 * features/rs6000/powerpc-505.c: Regenerate.
3574 * features/rs6000/powerpc-601.c: Regenerate.
3575 * features/rs6000/powerpc-602.c: Regenerate.
3576 * features/rs6000/powerpc-603.c: Regenerate.
3577 * features/rs6000/powerpc-604.c: Regenerate.
3578 * features/rs6000/powerpc-64.c: Regenerate.
3579 * features/rs6000/powerpc-64l.c: Regenerate.
3580 * features/rs6000/powerpc-7400.c: Regenerate.
3581 * features/rs6000/powerpc-750.c: Regenerate.
3582 * features/rs6000/powerpc-860.c: Regenerate.
3583 * features/rs6000/powerpc-altivec32.c: Regenerate.
3584 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3585 * features/rs6000/powerpc-altivec64.c: Regenerate.
3586 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3587 * features/rs6000/powerpc-e500.c: Regenerate.
3588 * features/rs6000/powerpc-e500l.c: Regenerate.
3589 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3590 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3591 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3592 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3593 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3594 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3595 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3596 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3597 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3598 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3599 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3600 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3601 * features/rs6000/powerpc-vsx32.c: Regenerate.
3602 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3603 * features/rs6000/powerpc-vsx64.c: Regenerate.
3604 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3605 * features/rs6000/rs6000.c: Regenerate.
3606 * features/rx.c: Regenerate.
3607 * features/s390-gs-linux64.c: Regenerate.
3608 * features/s390-linux32.c: Regenerate.
3609 * features/s390-linux32v1.c: Regenerate.
3610 * features/s390-linux32v2.c: Regenerate.
3611 * features/s390-linux64.c: Regenerate.
3612 * features/s390-linux64v1.c: Regenerate.
3613 * features/s390-linux64v2.c: Regenerate.
3614 * features/s390-te-linux64.c: Regenerate.
3615 * features/s390-tevx-linux64.c: Regenerate.
3616 * features/s390-vx-linux64.c: Regenerate.
3617 * features/s390x-gs-linux64.c: Regenerate.
3618 * features/s390x-linux64.c: Regenerate.
3619 * features/s390x-linux64v1.c: Regenerate.
3620 * features/s390x-linux64v2.c: Regenerate.
3621 * features/s390x-te-linux64.c: Regenerate.
3622 * features/s390x-tevx-linux64.c: Regenerate.
3623 * features/s390x-vx-linux64.c: Regenerate.
3624 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3625 from allocate_target_description.
3626 * target-descriptions.c (allocate_target_description): Update
3627 return type.
3628 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3629 allocate_target_description.
3630
3631 2020-10-07 Tom Tromey <tromey@adacore.com>
3632
3633 * unittests/search-memory-selftests.c: New file.
3634 * Makefile.in (SELFTESTS_SRCS): Add
3635 unittests/search-memory-selftests.c.
3636
3637 2020-10-07 Tom Tromey <tromey@adacore.com>
3638
3639 PR gdb/16930:
3640 * findcmd.c (_initialize_mem_search): Mention that the range is
3641 inclusive.
3642
3643 2020-10-07 Tom Tromey <tromey@adacore.com>
3644
3645 * target.h (simple_search_memory): Don't declare.
3646 * target.c (simple_search_memory): Move to gdbsupport.
3647 (default_search_memory): Update.
3648 * remote.c (remote_target::search_memory): Update.
3649
3650 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3651
3652 * Makefile.in (COMPILE): Add CXXFLAGS.
3653 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3654 (check-headers): Add CXXFLAGS.
3655
3656 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3657
3658 * arc-linux-tdep.h: New file.
3659 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3660 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3661 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3662 arc_linux_gregset, arc_linux_v2_regset,
3663 arc_linux_iterate_over_regset_sections,
3664 arc_linux_core_read_description): Implement.
3665 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3666 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3667 (arc_gdbarch_features_create): Add.
3668 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3669
3670 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3671
3672 * arch/arc.h: Rename "arc_gdbarch_features" to
3673 "arc_arch_features".
3674 * arc-tdep.h: Likewise.
3675 * arc-tdep.c: Likewise.
3676
3677 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3678
3679 * infcmd.c (attach_command): Remove the redundant call to
3680 `clear_proceed_status`.
3681
3682 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3683
3684 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3685
3686 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3687
3688 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3689 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3690 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3691
3692 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3693
3694 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3695 (_initialize_break_catch_sig): Don't allocate array.
3696
3697 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3698
3699 * symtab.c (find_pc_line): Return unmapped addresses when the
3700 requested address is also unmapped.
3701
3702 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3705 tui/tui-out.h.
3706
3707 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3710 type::is_vector instead of TYPE_VECTOR.
3711
3712 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3713
3714 * auto-load.c (auto_load_objfile_script_1): Don't use
3715 debugfile_holder as temporary variable when stripping drive
3716 letter.
3717
3718 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3719
3720 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3721 Add TYPE_CODE_COMPLEX.
3722 (amd64_windows_return_value): Fix types returned via XMM0.
3723
3724 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3725
3726 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3727 AArch64/ARM maintainers.
3728
3729 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3730
3731 * NEWS: Mention set/show debug event-loop.
3732
3733 2020-10-02 Tom Tromey <tromey@adacore.com>
3734
3735 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3736 REG_EXTENDED.
3737
3738 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3741 * procfs.c (procfs_inferior_created): Remove.
3742 (_initialize_procfs): Don't register procfs_inferior_created.
3743
3744 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3745
3746 * async-event.c (invoke_async_signal_handlers): Add debug
3747 print.
3748 (check_async_event_handlers): Likewise.
3749 * event-top.c (show_debug_event_loop): New function.
3750 (_initialize_event_top): Register "set debug event-loop"
3751 setting.
3752
3753 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3754
3755 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3756 * debug.h: Remove.
3757 * infrun.c: Include gdbsupport/common-debug.h.
3758 * linux-nat.c: Likewise.
3759
3760 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3761
3762 * async-event.h (create_async_signal_handler): Add name
3763 parameter.
3764 (create_async_event_handler): Likewise.
3765 * async-event.c (struct async_signal_handler) <name>: New field.
3766 (struct async_event_handler) <name>: New field.
3767 (create_async_signal_handler): Assign name.
3768 (create_async_event_handler): Assign name.
3769 * event-top.c (async_init_signals): Pass name when creating
3770 handler.
3771 * infrun.c (_initialize_infrun): Likewise.
3772 * record-btrace.c (record_btrace_push_target): Likewise.
3773 * record-full.c (record_full_open): Likewise.
3774 * remote-notif.c (remote_notif_state_allocate): Likewise.
3775 * remote.c (remote_target::open_1): Likewise.
3776 * tui/tui-win.c (tui_initialize_win): Likewise.
3777
3778 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 * async-event.c (initialize_async_signal_handlers): Pass name to
3781 add_file_handler
3782 * event-top.c (ui_register_input_event_handler): Likewise.
3783 * linux-nat.c (linux_nat_target::async): Likewise.
3784 * run-on-main-thread.c (_initialize_run_on_main_thread):
3785 Likewise
3786 * ser-base.c (reschedule): Likewise.
3787 (ser_base_async): Likewise.
3788 * tui/tui-io.c: Likewise.
3789 * top.h (struct ui) <num>: New field.
3790 * top.c (highest_ui_num): New variable.
3791 (ui::ui): Initialize num.
3792
3793 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3794
3795 * observable.h <inferior_created>: Remove parameters. Update all
3796 listeners.
3797 * inferior.h (post_create_inferior): Remove target parameter.
3798 Update all callers.
3799
3800 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3801
3802 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3803 and DW_MACRO_undef_strx.
3804 (dwarf_decode_macros): Likewise
3805 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3806 which is the value of DW_AT_str_offsets_base.
3807 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3808 str_offsets_base.
3809
3810 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3811
3812 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3813
3814 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3815
3816 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3817 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3818
3819 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3820
3821 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3822
3823 2020-09-30 Tom de Vries <tdevries@suse.de>
3824
3825 PR symtab/26683
3826 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3827
3828 2020-09-30 Tom Tromey <tromey@adacore.com>
3829
3830 * dwarf2/read.c (handle_variant): Use constant_value.
3831
3832 2020-09-29 Tom Tromey <tom@tromey.com>
3833
3834 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3835 (read_file_scope, dwarf2_get_pc_bounds)
3836 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3837 (read_structure_type, handle_struct_member_die)
3838 (read_enumeration_type, read_array_type, read_set_type)
3839 (read_tag_pointer_type, read_tag_reference_type)
3840 (read_subroutine_type, read_base_type, read_subrange_type)
3841 (read_full_die_1, partial_die_info::read)
3842 (partial_die_info::read, by, new_symbol)
3843 (dwarf2_const_value_data, dwarf2_const_value_attr)
3844 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3845 (prepare_one_comp_unit): Update.
3846 * dwarf2/attribute.h (DW_UNSND): Remove.
3847
3848 2020-09-29 Tom Tromey <tom@tromey.com>
3849
3850 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3851 (read_subroutine_type, partial_die_info::read)
3852 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3853 (dwarf2_add_member_fn): Update.
3854 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3855 * dwarf2/attribute.c (attribute::as_boolean): New method.
3856
3857 2020-09-29 Tom Tromey <tom@tromey.com>
3858
3859 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3860 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3861 method.
3862 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3863
3864 2020-09-29 Tom Tromey <tom@tromey.com>
3865
3866 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3867 the attribute's form.
3868
3869 2020-09-29 Tom Tromey <tom@tromey.com>
3870
3871 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3872 (dwarf2_add_member_fn): Update.
3873 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3874 * dwarf2/attribute.c (attribute::defaulted): New method, from
3875 is_valid_DW_AT_defaulted.
3876
3877 2020-09-29 Tom Tromey <tom@tromey.com>
3878
3879 * dwarf2/read.c (dw2_get_file_names_reader)
3880 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3881 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3882 (dwarf2_symbol_mark_computed): Use as_unsigned.
3883 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3884 method.
3885 <form_is_section_offset>: Update comment.
3886
3887 2020-09-29 Tom Tromey <tom@tromey.com>
3888
3889 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3890 dwarf2_default_access_attribute. Look up attribute.
3891 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3892 Update.
3893
3894 2020-09-29 Tom Tromey <tom@tromey.com>
3895
3896 * dwarf2/read.c (skip_one_die): Update.
3897 (read_full_die_1): Change how reprocessing is done.
3898 (partial_die_info::read): Update.
3899 (read_attribute_value): Remove need_reprocess parameter.
3900 (read_attribute): Likewise.
3901 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3902 New method.
3903
3904 2020-09-29 Tom Tromey <tom@tromey.com>
3905
3906 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3907 (dwarf2_const_value_attr, dump_die_shallow)
3908 (dwarf2_fetch_constant_bytes): Update.
3909 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3910 comment.
3911 <set_address>: New method.
3912 (DW_ADDR): Remove.
3913 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3914 (attribute::as_string, attribute::as_address): Add assert.
3915
3916 2020-09-29 Tom Tromey <tom@tromey.com>
3917
3918 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3919 (read_attribute_reprocess, read_attribute_value): Update.
3920 (read_attribute): Clear requires_reprocessing.
3921 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3922 form_requires_reprocessing>: New methods.
3923 <string_init>: Clear requires_reprocessing.
3924 <set_unsigned_reprocess>: New method.
3925 <name>: Shrink by one bit.
3926 <requires_reprocessing>: New member.
3927 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3928 method.
3929
3930 2020-09-29 Tom Tromey <tom@tromey.com>
3931
3932 * dwarf2/read.c (read_attribute_value): Update.
3933 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3934 set_unsigned>: New methods.
3935 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3936
3937 2020-09-29 Tom Tromey <tom@tromey.com>
3938
3939 * dwarf2/read.c (get_alignment, read_array_order)
3940 (read_attribute_value, dwarf2_const_value_attr)
3941 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3942 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3943 New methods.
3944 (DW_SND): Remove.
3945
3946 2020-09-29 Tom Tromey <tom@tromey.com>
3947
3948 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3949 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3950 Update.
3951 * dwarf2/attribute.h (struct attribute) <as_signature,
3952 set_signature>: New methods.
3953 (DW_SIGNATURE): Remove.
3954
3955 2020-09-29 Tom Tromey <tom@tromey.com>
3956
3957 * dwarf2/read.c (read_call_site_scope)
3958 (handle_data_member_location, dwarf2_add_member_fn)
3959 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3960 (partial_die_info::read, read_attribute_value)
3961 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3962 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3963 (dwarf2_symbol_mark_computed): Update.
3964 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3965 methods.
3966 (DW_BLOCK): Remove.
3967 * dwarf2/attribute.c (attribute::form_is_block): Add
3968 DW_FORM_data16.
3969
3970 2020-09-29 Tom Tromey <tom@tromey.com>
3971
3972 * dwarf2/read.c (read_cutu_die_from_dwo)
3973 (read_attribute_reprocess, read_attribute_value, read_attribute)
3974 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3975 (dwarf2_fetch_constant_bytes): Update.
3976 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3977 <set_string_noncanonical, set_string_canonical>: New methods.
3978 <string_is_canonical>: Update comment.
3979 <canonical_string_p>: Add assert.
3980 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3981 * dwarf2/attribute.c (attribute::form_is_string): New method.
3982 (attribute::string): Use it.
3983
3984 2020-09-29 Tom Tromey <tom@tromey.com>
3985
3986 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3987 (dump_die_shallow): Use canonical_string_p.
3988 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3989 method.
3990
3991 2020-09-29 Tom Tromey <tom@tromey.com>
3992
3993 * dwarf2/read.c (partial_die_info::read)
3994 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3995 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3996 attribute::as_string.
3997
3998 2020-09-29 Tom Tromey <tom@tromey.com>
3999
4000 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4001 DW_ADDR.
4002 (attribute::string): Don't use DW_STRING.
4003 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4004 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4005
4006 2020-09-29 Tom Tromey <tom@tromey.com>
4007
4008 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4009 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4010 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4011 * dwarf2/attribute.h (struct attribute): Rename methods.
4012 * dwarf2/attribute.c (attribute::as_address): Rename from
4013 value_as_address.
4014 (attribute::as_string): Rename from value_as_string.
4015
4016 2020-09-29 Tom Tromey <tom@tromey.com>
4017
4018 * dwarf2/read.c (partial_die_info::read) <case
4019 DW_AT_linkage_name>: Use value_as_string.
4020 (dwarf2_string_attr): Use value_as_string.
4021 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4022 method.
4023 * dwarf2/attribute.c (attribute::value_as_string): New method.
4024
4025 2020-09-29 Pedro Alves <pedro@palves.net>
4026
4027 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4028 defined before using '#pragma GCC diagnostic' instead of checking
4029 __clang__.
4030
4031 2020-09-28 Tom Tromey <tom@tromey.com>
4032
4033 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4034 (handle_signal_stop): Update.
4035 * procfs.c (procfs_target::insert_watchpoint): Update.
4036 * target.h (target_have_steppable_watchpoint): Now a function.
4037
4038 2020-09-28 Tom Tromey <tom@tromey.com>
4039
4040 * infrun.c (set_schedlock_func): Update.
4041 * target.h (target_can_lock_scheduler): Now a function.
4042
4043 2020-09-28 Tom Tromey <tom@tromey.com>
4044
4045 * inferior.h (class inferior) <has_execution>: Update.
4046 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4047 * valops.c (find_function_in_inferior)
4048 (value_allocate_space_in_inferior): Update.
4049 * top.c (kill_or_detach): Update.
4050 * target.c (target_preopen, set_target_permissions): Update.
4051 (target_has_execution_current): Remove.
4052 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4053 Update.
4054 * solib.c (update_solib_list, reload_shared_libraries): Update.
4055 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4056 * solib-dsbt.c (enable_break): Update.
4057 * score-tdep.c (score7_fetch_inst): Update.
4058 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4059 Update.
4060 * remote.c (remote_target::start_remote)
4061 (remote_target::remote_check_symbols, remote_target::open_1)
4062 (remote_target::remote_detach_1, remote_target::verify_memory)
4063 (remote_target::xfer_partial, remote_target::read_description)
4064 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4065 * record-full.c (record_full_open_1): Update.
4066 * record-btrace.c (record_btrace_target_open): Update.
4067 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4068 (value_nsstring): Update.
4069 * linux-thread-db.c (add_thread_db_info)
4070 (thread_db_find_new_threads_silently, check_thread_db_callback)
4071 (try_thread_db_load_1, record_thread): Update.
4072 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4073 Update.
4074 * linux-fork.c (checkpoint_command): Update.
4075 * infrun.c (set_non_stop, set_observer_mode)
4076 (check_multi_target_resumption, for_each_just_stopped_thread)
4077 (maybe_remove_breakpoints, normal_stop)
4078 (class infcall_suspend_state): Update.
4079 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4080 (info_program_command, attach_command): Update.
4081 * infcall.c (call_function_by_hand_dummy): Update.
4082 * inf-loop.c (inferior_event_handler): Update.
4083 * gcore.c (gcore_command, derive_heap_segment): Update.
4084 * exec.c (exec_file_command): Update.
4085 * eval.c (evaluate_subexp): Update.
4086 * compile/compile.c (compile_to_object): Update.
4087 * cli/cli-dump.c (restore_command): Update.
4088 * breakpoint.c (update_watchpoint)
4089 (update_inserted_breakpoint_locations)
4090 (insert_breakpoint_locations, get_bpstat_thread): Update.
4091 * target.h (target_has_execution): Remove macro.
4092 (target_has_execution_current): Don't declare.
4093 (target_has_execution): Rename from target_has_execution_1. Add
4094 argument default.
4095
4096 2020-09-28 Tom Tromey <tom@tromey.com>
4097
4098 * mi/mi-main.c (exec_reverse_continue)
4099 (mi_cmd_list_target_features): Update.
4100 * infrun.c (set_exec_direction_func): Update.
4101 * target.c (default_execution_direction): Update.
4102 * reverse.c (exec_reverse_once): Update.
4103 * target.h (target_can_execute_reverse): Now a function.
4104
4105 2020-09-28 Tom Tromey <tom@tromey.com>
4106
4107 * tui/tui-regs.c (tui_get_register)
4108 (tui_data_window::show_registers): Update.
4109 * thread.c (scoped_restore_current_thread::restore)
4110 (scoped_restore_current_thread::scoped_restore_current_thread):
4111 Update.
4112 * regcache-dump.c (regcache_print): Update.
4113 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4114 Update.
4115 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4116 * mep-tdep.c (current_me_module, current_options): Update.
4117 * linux-thread-db.c (thread_db_load): Update.
4118 * infcmd.c (registers_info, info_vector_command)
4119 (info_float_command): Update.
4120 * ia64-tdep.c (ia64_frame_prev_register)
4121 (ia64_sigtramp_frame_prev_register): Update.
4122 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4123 * gcore.c (derive_stack_segment): Update.
4124 * frame.c (get_current_frame, has_stack_frames): Update.
4125 * findvar.c (language_defn::read_var_value): Update.
4126 * arm-tdep.c (arm_pc_is_thumb): Update.
4127 * target.c (target_has_registers): Rename from
4128 target_has_registers_1.
4129 * target.h (target_has_registers): Remove macro.
4130 (target_has_registers): Rename from target_has_registers_1.
4131
4132 2020-09-28 Tom Tromey <tom@tromey.com>
4133
4134 * windows-tdep.c (tlb_make_value): Update.
4135 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4136 * thread.c (scoped_restore_current_thread::restore)
4137 (scoped_restore_current_thread::scoped_restore_current_thread)
4138 (thread_command): Update.
4139 * stack.c (backtrace_command_1, frame_apply_level_command)
4140 (frame_apply_all_command, frame_apply_command): Update.
4141 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4142 Update.
4143 * gcore.c (derive_stack_segment): Update.
4144 * frame.c (get_current_frame, has_stack_frames): Update.
4145 * auxv.c (info_auxv_command): Update.
4146 * ada-tasks.c (ada_build_task_list): Update.
4147 * target.c (target_has_stack): Rename from target_has_stack_1.
4148 * target.h (target_has_stack): Remove macro.
4149 (target_has_stack): Rename from target_has_stack_1.
4150
4151 2020-09-28 Tom Tromey <tom@tromey.com>
4152
4153 * target.c (target_has_memory): Rename from target_has_memory_1.
4154 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4155 * thread.c (scoped_restore_current_thread::restore)
4156 (scoped_restore_current_thread::scoped_restore_current_thread):
4157 Update.
4158 * frame.c (get_current_frame, has_stack_frames): Update.
4159 * target.h (target_has_memory): Remove macro.
4160 (target_has_memory): Rename from target_has_memory_1.
4161
4162 2020-09-28 Tom Tromey <tom@tromey.com>
4163
4164 * target.c (target_has_all_memory_1): Remove.
4165 * target.h (target_has_all_memory): Remove define.
4166 (target_has_all_memory_1): Don't declare.
4167
4168 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4169
4170 * ser-base.c: Adjust comments formatting.
4171
4172 2020-09-27 Tom Tromey <tom@tromey.com>
4173
4174 PR tui/25342:
4175 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4176
4177 2020-09-27 Tom Tromey <tom@tromey.com>
4178
4179 PR tui/25342:
4180 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4181
4182 2020-09-27 Tom Tromey <tom@tromey.com>
4183
4184 * unittests/tui-selftests.c: Update.
4185 * tui/tui-winsource.h (struct tui_source_window_base)
4186 <extra_margin, show_line_number, refresh_pad>: New methods.
4187 <m_max_length, m_pad>: New members.
4188 (tui_copy_source_line): Update.
4189 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4190 first_col, line_width, ndigits parameters. Add length.
4191 (tui_source_window_base::show_source_line): Write to pad. Line
4192 number now 0-based.
4193 (tui_source_window_base::refresh_pad): New method.
4194 (tui_source_window_base::show_source_content): Write to pad. Call
4195 refresh_pad.
4196 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4197 not refill.
4198 (tui_source_window_base::update_exec_info): Call
4199 show_line_number.
4200 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4201 method.
4202 <m_digits>: New member.
4203 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4204 and m_max_length.
4205 (tui_source_window::show_line_number): New method.
4206 * tui/tui-io.h (tui_puts): Fix comment.
4207 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4208 m_max_length.
4209
4210 2020-09-27 Tom Tromey <tom@tromey.com>
4211
4212 * tui/tui-winsource.c
4213 (tui_source_window_base::set_is_exec_point_at): Don't call
4214 show_source_line.
4215
4216 2020-09-27 Tom Tromey <tom@tromey.com>
4217
4218 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4219 method.
4220 <erase>: Update.
4221 <cursor_x, cursor_y>: Remove.
4222 <m_inner_window>: New member.
4223 (tui_py_window::rerender): Create inner window.
4224 (tui_py_window::output): Write to inner window.
4225
4226 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4227
4228 PR python/26586
4229 * cli/cli-script.c (execute_control_commands): don't set
4230 instream to nullptr here as this breaks the from_tty argument
4231 to gdb.execute in Python.
4232 (execute_user_command): set instream to nullptr here instead.
4233
4234 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * infrun.h (infrun_debug_printf): Fix formatting.
4237 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4238
4239 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4240
4241 * compile/compile-object-load.h (struct munmap_list): Add
4242 explicitly-defined move constructor.
4243
4244 2020-09-24 Tom Tromey <tromey@adacore.com>
4245
4246 PR tui/26638:
4247 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4248 method.
4249 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4250 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4251 (tui_prev_win): Rewrite.
4252
4253 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4254
4255 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4256 in WOW64 processes as SIGINT.
4257 * nat/windows-nat.h: Make wow64_process a shared variable.
4258 * windows-nat.c: Remove static wow64_process variable.
4259
4260 2020-09-23 Tom Tromey <tom@tromey.com>
4261
4262 PR symtab/25470:
4263 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4264 offset and bit size.
4265 * printcmd.c (print_scalar_formatted): Handle zero-length
4266 integer.
4267 (print_scalar_formatted): Use bit_size_differs_p.
4268 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4269 constant.
4270 (union type_specific): <int_stuff>: New member.
4271 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4272 methods.
4273 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4274 TYPE_SPECIFIC_FIELD.
4275 (recursive_dump_type, copy_type_recursive): Update.
4276 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4277 DW_AT_data_bit_offset.
4278
4279 2020-09-23 Tom Tromey <tom@tromey.com>
4280
4281 * utils.h (class gdb_argv): Add move operators.
4282 <append>: New methods.
4283 * compile/compile.c (build_argc_argv): Remove.
4284 (compile_args_argc): Remove.
4285 (compile_args_argv): Change type.
4286 (set_compile_args): Simplify.
4287 (append_args): Remove.
4288 (filter_args): Remove argcp parameter.
4289 (get_args): Return gdb_argv. Simplify.
4290 (compile_to_object): Update.
4291
4292 2020-09-23 Tom Tromey <tom@tromey.com>
4293
4294 * compile/compile-object-run.c (do_module_cleanup)
4295 <~do_module_cleanup> :Remove.
4296 (do_module_cleanup): Update.
4297 * compile/compile-object-load.h (struct munmap_list): Add move
4298 assignment operator.
4299 <source_file>: Now a std::string.
4300 <munmap_list>: Rename. No longer a pointer.
4301 * compile/compile-object-load.c (struct setup_sections_data): Add
4302 constructor.
4303 <setup_one_section>: Declare.
4304 <munmap_list>: Move earlier.
4305 <m_bfd>: New member.
4306 <m_last_size, m_last_section_first, m_last_prot,
4307 m_last_max_alignment>: Rename, add initializers where needed.
4308 (setup_sections_data::setup_one_section): Rename from
4309 setup_sections. Update.
4310 (compile_object_load): Update. Don't use bfd_map_over_sections.
4311
4312 2020-09-23 Tom Tromey <tom@tromey.com>
4313
4314 * compile/compile-object-run.c (struct do_module_cleanup): Add
4315 parameters to constructor. Update destructor.
4316 <source_file, scope, scope_data, out_value_type, out_value_addr,
4317 munmap_list_head, objfile_name_string>: Remove.
4318 <module>: New member.
4319 (do_module_cleanup): Update.
4320 (compile_object_run): Update.
4321
4322 2020-09-23 Tom Tromey <tom@tromey.com>
4323
4324 * compile/compile.c (eval_compile_command): Update.
4325 * compile/compile-object-run.h (compile_object_run): Take a
4326 compile_module_up.
4327 * compile/compile-object-run.c (compile_object_run): Take a
4328 compile_module_up.
4329 * compile/compile-object-load.h (struct compile_module): Add
4330 constructor, destructor.
4331 (compile_module_up): New typedef.
4332 (compile_object_load): Return compile_object_up.
4333 * compile/compile-object-load.c (compile_object_load): Return
4334 compile_module_up.
4335
4336 2020-09-23 Tom Tromey <tom@tromey.com>
4337
4338 * compile/compile-object-run.c (struct do_module_cleanup): Add
4339 constructor, destructor.
4340 <objfile_name_string>: Don't use struct hack.
4341 (do_module_cleanup): Use delete.
4342 (compile_object_run): Use new.
4343
4344 2020-09-23 Tom Tromey <tom@tromey.com>
4345
4346 * compile/compile-cplus-types.c
4347 (compile_cplus_convert_struct_or_union): Use std::vector.
4348 (compile_cplus_convert_func): Likewise.
4349 * compile/compile-c-types.c (convert_func): Use std::vector.
4350
4351 2020-09-21 Tom Tromey <tromey@adacore.com>
4352
4353 * sparc-tdep.c (sparc32_skip_prologue): Use
4354 skip_prologue_using_sal.
4355
4356 2020-09-19 Tom Tromey <tom@tromey.com>
4357
4358 * symfile.c (add_section_size_callback): Remove.
4359 (load_one_section): Rename from load_section_callback. Change
4360 parameters.
4361 (generic_load): Use foreach.
4362
4363 2020-09-19 Tom Tromey <tom@tromey.com>
4364
4365 * exec.c (add_to_section_table): Remove.
4366 (build_section_table): Use foreach.
4367
4368 2020-09-19 Tom Tromey <tom@tromey.com>
4369
4370 * elfread.c (elf_locate_sections): Change parameters.
4371 (elf_symfile_read): Use foreach.
4372
4373 2020-09-19 Tom Tromey <tom@tromey.com>
4374
4375 * cli/cli-dump.c (struct callback_data): Remove.
4376 (restore_one_section): Rename from restore_section_callback.
4377 Change parameters.
4378 (restore_binary_file): Change parameters.
4379 (restore_command): Use foreach.
4380
4381 2020-09-19 Tom Tromey <tom@tromey.com>
4382
4383 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4384 (gcore_copy_callback): Likewise.
4385 (gcore_memory_sections): Use foreach.
4386
4387 2020-09-19 Tom Tromey <tom@tromey.com>
4388
4389 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4390 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4391 parameters.
4392 (generic_elf_osabi_sniffer): Use foreach.
4393 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4394 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4395
4396 2020-09-19 Tom Tromey <tom@tromey.com>
4397
4398 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4399 (dwarf2_get_dwz_file): Use foreach.
4400 (dwarf2_locate_dwo_sections): Change parameters.
4401 (open_and_init_dwo_file): Use foreach.
4402 (dwarf2_locate_common_dwp_sections): Change parameters.
4403 (open_and_init_dwp_file): Use foreach.
4404
4405 2020-09-19 Tom Tromey <tom@tromey.com>
4406
4407 * symfile.h: (find_lowest_section): Don't declare.
4408 * symfile.c (find_lowest_section): Now static. Change
4409 parameters.
4410 (struct place_section_arg): Remove.
4411 (place_section): Change parameters.
4412 (addr_info_make_relative): Use foreach.
4413 (symfile_dummy_outputs): Remove.
4414 (default_symfile_relocate): Use foreach.
4415
4416 2020-09-19 Tom Tromey <tom@tromey.com>
4417
4418 * objfiles.c (add_to_objfile_sections): Rename from
4419 add_to_objfile_sections_full.
4420 (add_to_objfile_sections): Remove.
4421 (build_objfile_section_table): Use foreach.
4422
4423 2020-09-19 Tom Tromey <tom@tromey.com>
4424
4425 * stap-probe.c (get_stap_base_address_1): Remove.
4426 (get_stap_base_address): Use foreach.
4427
4428 2020-09-19 Tom Tromey <tom@tromey.com>
4429
4430 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4431 parameters.
4432 (gdb_bfd_close_or_warn): Use foreach.
4433
4434 2020-09-19 Tom Tromey <tom@tromey.com>
4435
4436 * corelow.c (add_to_thread_list): Change parameters.
4437 (core_target_open): Use foreach.
4438
4439 2020-09-19 Tom Tromey <tom@tromey.com>
4440
4441 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4442 existing function.
4443
4444 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4445
4446 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4447 for arrays.
4448
4449 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4450
4451 * eval.c: Remove 'f-lang.h' include.
4452 (value_f90_subarray): Moved to f-lang.c.
4453 (eval_call): Renamed to...
4454 (evaluate_subexp_do_call): ...this, is no longer static, header
4455 comment moved into header file.
4456 (evaluate_funcall): Update call to eval_call.
4457 (skip_undetermined_arglist): Moved to f-lang.c.
4458 (fortran_value_subarray): Likewise.
4459 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4460 moved to evaluate_subexp_f.
4461 (calc_f77_array_dims): Moved to f-lang.c
4462 * expprint.c (print_subexp_funcall): New function.
4463 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4464 moved to print_subexp_f, OP_FUNCALL uses new function.
4465 (dump_subexp_body_funcall): New function.
4466 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4467 moved to dump_subexp_f, OP_FUNCALL uses new function.
4468 * expression.h (evaluate_subexp_do_call): Declare.
4469 * f-lang.c (value_f90_subarray): Moved from eval.c.
4470 (skip_undetermined_arglist): Likewise.
4471 (calc_f77_array_dims): Likewise.
4472 (fortran_value_subarray): Likewise.
4473 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4474 (operator_length_f): Likewise.
4475 (print_subexp_f): Likewise.
4476 (dump_subexp_body_f): Likewise.
4477 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4478 declaration of this operation to here.
4479 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4480 support moved to operator_length_f.
4481 * parser-defs.h (dump_subexp_body_funcall): Declare.
4482 (print_subexp_funcall): Declare.
4483 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4484 fortran-operator.def.
4485
4486 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4487
4488 * eval.c (fortran_value_subarray): New function, content is taken
4489 from...
4490 (evaluate_subexp_standard): ...here, in two places. Now arrays
4491 and strings both call the new function.
4492 (calc_f77_array_dims): Add header comment, handle strings.
4493
4494 2020-09-18 Victor Collod <vcollod@nvidia.com>
4495
4496 PR gdb/26635
4497 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4498 (i386_analyze_prologue): Call i386_skip_endbr.
4499
4500 2020-09-18 Tom Tromey <tromey@adacore.com>
4501
4502 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4503 (windows_nat_target::wait): Update.
4504 * target/wait.h (enum target_wait_flag): New. Use
4505 DEF_ENUM_FLAGS_TYPE.
4506 * target/target.h (target_wait): Change type of options.
4507 * target.h (target_options_to_string, default_target_wait):
4508 Update.
4509 (struct target_ops) <wait>: Change type of options.
4510 * target.c (target_wait, default_target_wait, do_option): Change
4511 type of "options".
4512 (target_options_to_string): Likewise.
4513 * target-delegates.c: Rebuild.
4514 * target-debug.h (target_debug_print_target_wait_flags): Rename
4515 from target_debug_print_options.
4516 * sol-thread.c (class sol_thread_target) <wait>: Update.
4517 (sol_thread_target::wait): Update.
4518 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4519 (rs6000_nat_target::wait): Update.
4520 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4521 Update.
4522 (remote_target::wait_ns, remote_target::wait_as): Change type of
4523 "options".
4524 (remote_target::wait): Update.
4525 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4526 (gdbsim_target::wait): Update.
4527 * record-full.c (class record_full_base_target) <wait>: Update.
4528 (record_full_wait_1): Change type of "options".
4529 (record_full_base_target::wait): Update.
4530 * record-btrace.c (class record_btrace_target) <wait>: Update.
4531 (record_btrace_target::wait): Update.
4532 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4533 Update.
4534 (ravenscar_thread_target::wait): Update.
4535 * procfs.c (class procfs_target) <wait>: Update.
4536 (procfs_target::wait): Update.
4537 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4538 * obsd-nat.c (obsd_nat_target::wait): Update.
4539 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4540 (nto_procfs_target::wait): Update.
4541 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4542 * nbsd-nat.c (nbsd_wait): Change type of "options".
4543 (nbsd_nat_target::wait): Update.
4544 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4545 (thread_db_target::wait): Update.
4546 * linux-nat.h (class linux_nat_target) <wait>: Update.
4547 * linux-nat.c (linux_nat_target::wait): Update.
4548 (linux_nat_wait_1): Update.
4549 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4550 "options".
4551 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4552 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4553 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4554 (go32_nat_target::wait): Update.
4555 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4556 * gnu-nat.c (gnu_nat_target::wait): Update.
4557 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4558 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4559 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4560 * darwin-nat.c (darwin_nat_target::wait): Update.
4561 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4562 (bsd_uthread_target::wait): Update.
4563 * aix-thread.c (class aix_thread_target) <wait>: Update.
4564 (aix_thread_target::wait): Update.
4565
4566 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4567
4568 * compile/compile-object-run.c (create_copied_type_recursive): New
4569 function.
4570 (compile_object_run): Use new function.
4571
4572 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4573
4574 * NEWS: Mention x86_64 Cygwin core file support.
4575
4576 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4577
4578 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4579 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4580
4581 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4582
4583 * windows-tdep.h: Add prototypes.
4584 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4585 (i386_windows_core_pid_to_str): Move and rename ...
4586 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4587 (windows_core_pid_to_str): ... and here.
4588 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4589
4590 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4591 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4592 (amd64_windows_init_abi_common): ... and register.
4593
4594 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4595
4596 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4597 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4598
4599 2020-09-18 Pedro Alves <pedro@palves.net>
4600
4601 PR gdb/26631
4602 * thread.c (thread_find_command): Switch inferior before calling
4603 target methods.
4604
4605 2020-09-17 Tom Tromey <tromey@adacore.com>
4606
4607 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4608 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4609 (tdesc_arch_data_up): New typedef.
4610 (tdesc_use_registers, tdesc_data_alloc): Update.
4611 (tdesc_data_cleanup): Don't declare.
4612 * target-descriptions.c (tdesc_data_alloc): Return a
4613 tdesc_arch_data_up.
4614 (tdesc_arch_data_deleter::operator()): Rename from
4615 tdesc_data_cleanup. Change argument type.
4616 (tdesc_use_registers): Change early_data to an rvalue reference.
4617 (tdesc_use_registers): Don't use delete.
4618 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4619 * s390-tdep.c (s390_gdbarch_init): Update.
4620 * rx-tdep.c (rx_gdbarch_init): Update.
4621 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4622 * riscv-tdep.c (riscv_gdbarch_init): Update.
4623 * or1k-tdep.c (or1k_gdbarch_init): Update.
4624 * nios2-tdep.c (nios2_gdbarch_init): Update.
4625 * nds32-tdep.c (nds32_gdbarch_init): Update.
4626 * mips-tdep.c (mips_gdbarch_init): Update.
4627 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4628 * m68k-tdep.c (m68k_gdbarch_init): Update.
4629 * i386-tdep.c (i386_gdbarch_init): Update.
4630 * arm-tdep.c (arm_gdbarch_init): Update.
4631 * arc-tdep.c (arc_tdesc_init): Update.
4632 (arc_gdbarch_init): Update.
4633 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4634
4635 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4636
4637 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4638 for WOW64 processes.
4639
4640 2020-09-17 Tom Tromey <tom@tromey.com>
4641
4642 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4643
4644 2020-09-17 Tom Tromey <tom@tromey.com>
4645
4646 * value.c (preserve_values): Update.
4647 * python/py-type.c (save_objfile_types): Update.
4648 * guile/scm-type.c (save_objfile_types): Update.
4649 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4650 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4651 * compile/compile-object-run.c (compile_object_run): Update.
4652
4653 2020-09-17 Tom Tromey <tom@tromey.com>
4654
4655 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4656 Remove.
4657 <m_table>: Now htab_up.
4658 * typeprint.c (typedef_hash_table::recursively_update)
4659 (typedef_hash_table::add_template_parameters)
4660 (typedef_hash_table::typedef_hash_table): Update.
4661 (typedef_hash_table::~typedef_hash_table): Remove.
4662 (typedef_hash_table::typedef_hash_table)
4663 (typedef_hash_table::find_global_typedef)
4664 (typedef_hash_table::find_typedef): Update.
4665
4666 2020-09-17 Tom Tromey <tom@tromey.com>
4667
4668 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4669
4670 2020-09-17 Tom Tromey <tom@tromey.com>
4671
4672 * linespec.c (class decode_compound_collector)
4673 <~decode_compound_collector>: Remove.
4674 <m_unique_syms>: Now htab_up.
4675 (decode_compound_collector::operator ()): Update.
4676 (class symtab_collector) <~symtab_collector>: Remove.
4677 <m_symtab_table>: Now htab_up.
4678 (symtab_collector::operator ()): Update.
4679
4680 2020-09-17 Tom Tromey <tom@tromey.com>
4681
4682 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4683 (filename_seen_cache::clear): Update.
4684 (~filename_seen_cache): Remove.
4685 (filename_seen_cache::seen): Update.
4686 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4687 htab_up.
4688 <~filename_seen_cache>: Remove.
4689 <traverse>: Update.
4690
4691 2020-09-17 Tom Tromey <tom@tromey.com>
4692
4693 * completer.c (completion_tracker::discard_completions)
4694 (completion_tracker::~completion_tracker)
4695 (completion_tracker::maybe_add_completion)
4696 (completion_tracker::remove_completion)
4697 (completion_tracker::recompute_lowest_common_denominator)
4698 (completion_tracker::build_completion_result): Update.
4699 * completer.h (class completion_tracker) <have_completions>:
4700 Update.
4701 <m_entries_hash>: Now htab_up.
4702
4703 2020-09-17 Tom Tromey <tom@tromey.com>
4704
4705 * breakpoint.c (ambiguous_names_p): Use htab_up.
4706
4707 2020-09-17 Tom Tromey <tom@tromey.com>
4708
4709 * auto-load.c (struct auto_load_pspace_info)
4710 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4711 <loaded_script_files, loaded_script_texts>: Change type to
4712 htab_up.
4713 (~auto_load_pspace_info) Remove.
4714 (init_loaded_scripts_info, maybe_add_script_file)
4715 (maybe_add_script_text, auto_load_info_scripts): Update.
4716
4717 2020-09-17 Tom Tromey <tromey@adacore.com>
4718
4719 * c-exp.y (name_obstack): Now static.
4720
4721 2020-09-17 Chungyi Chi <demonic@csie.io>
4722
4723 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4724
4725 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4728 (add_solib_catchpoint): Likewise.
4729 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4730 to bool.
4731 (add_solib_catchpoint): Change int parameter/variable to bool.
4732 (catch_load_or_unload): Likewise.
4733 (init_catchpoint): Likewise.
4734 (create_fork_vfork_event_catchpoint): Likewise.
4735 (catch_fork_command_1): Likewise.
4736 (catch_exec_command_1): Likewise.
4737
4738 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4739
4740 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4741 Change instance_flags to m_instance_flags.
4742
4743 2020-09-16 Tom Tromey <tromey@adacore.com>
4744
4745 PR gdb/26598:
4746 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4747
4748 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4749
4750 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4751 PL_FLAG_EXEC.
4752 (fbsd_nat_target::insert_exec_catchpoint)
4753 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4754 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4755 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4756
4757 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4758
4759 * configure.ac: Remove check for kinfo_getvmmap().
4760 * configure, config.in: Regenerate.
4761 * fbsd-nat.c (fbsd_read_mapping): Remove
4762 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4763 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4764 kinfo_get_vmmap() are always present.
4765
4766 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4767
4768 * fbsd-nat.c: Always include support for
4769 TARGET_OBJECT_SIGNAL_INFO.
4770
4771 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4772
4773 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4774 sysctl and remove procfs fallback.
4775
4776 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4777
4778 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4779 * fbsd-nat.h: Likewise.
4780
4781 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4782
4783 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4784 argument.
4785
4786 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 * ada-lang.c (ada_language_data): Delete.
4789 (ada_language): Remove references to ada_language_data.
4790 * c-lang.c (c_language_data): Delete.
4791 (c_language): Remove references to c_language_data.
4792 (cplus_language_data): Delete.
4793 (cplus_language): Remove references to cplus_language_data.
4794 (asm_language_data): Delete.
4795 (asm_language): Remove references to asm_language_data.
4796 (minimal_language_data): Delete.
4797 (minimal_language): Remove references to minimal_language_data.
4798 * d-lang.c (d_language_data): Delete.
4799 (d_language): Remove references to d_language_data.
4800 * f-lang.c (f_language_data): Delete.
4801 (f_language): Remove references to f_language_data.
4802 * go-lang.c (go_language_data): Delete.
4803 (go_language): Remove references to go_language_data.
4804 * language.c (unknown_language_data): Delete.
4805 (unknown_language): Remove references to unknown_language_data.
4806 (auto_language_data): Delete.
4807 (auto_language): Remove references to auto_language_data.
4808 * language.h (language_data): Delete struct.
4809 (language_defn): No longer inherit from language_data.
4810 * m2-lang.c (m2_language_data): Delete.
4811 (m2_language): Remove references to m2_language_data.
4812 * objc-lang.c (objc_language_data): Delete.
4813 (objc_language): Remove references to objc_language_data.
4814 * opencl-lang.c (opencl_language_data): Delete.
4815 (opencl_language): Remove references to opencl_language_data.
4816 * p-lang.c (pascal_language_data): Delete.
4817 (pascal_language): Remove references to pascal_language_data.
4818 * rust-lang.c (rust_language_data): Delete.
4819 (rust_language): Remove references to rust_language_data.
4820
4821 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4822
4823 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4824 initializer.
4825 (ada_language::opcode_print_table): New member function.
4826 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4827 (c_language::opcode_print_table): New member function.
4828 (cplus_language_data): Remove la_op_print_tab initializer.
4829 (cplus_language::opcode_print_table): New member function.
4830 (asm_language_data): Remove la_op_print_tab initializer.
4831 (asm_language::opcode_print_table): New member function.
4832 (minimal_language_data): Remove la_op_print_tab initializer.
4833 (minimal_language::opcode_print_table): New member function.
4834 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4835 (d_language::opcode_print_table): New member function.
4836 * expprint.c (print_subexp_standard): Update call to
4837 opcode_print_table.
4838 (op_string): Likewise.
4839 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4840 (f_language::opcode_print_table): New member function.
4841 * go-lang.c (go_language_data): Remove la_op_print_tab
4842 initializer.
4843 (go_language::opcode_print_table): New member function.
4844 * language.c (unknown_language_data): Remove la_op_print_tab
4845 initializer.
4846 (unknown_language::opcode_print_table): New member function.
4847 (auto_language_data): Remove la_op_print_tab initializer.
4848 (auto_language::opcode_print_table): New member function.
4849 * language.h (language_data): Remove la_op_print_tab field.
4850 (language_defn::opcode_print_table): Declare new member function.
4851 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4852 initializer.
4853 (m2_language::opcode_print_table): New member function.
4854 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4855 initializer.
4856 (objc_language::opcode_print_table): New member function.
4857 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4858 initializer.
4859 (opencl_language::opcode_print_table): New member function.
4860 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4861 initializer.
4862 (pascal_language::opcode_print_table): New member function.
4863 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4864 initializer.
4865 (rust_language::opcode_print_table): New member function.
4866
4867 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4868
4869 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4870 (ada_language::expression_ops): New member function.
4871 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4872 (c_language::expression_ops): New member function.
4873 (cplus_language_data): Remove la_exp_desc initializer.
4874 (cplus_language::expression_ops): New member function.
4875 (asm_language_data): Remove la_exp_desc initializer.
4876 (asm_language::expression_ops): New member function.
4877 (minimal_language_data): Remove la_exp_desc initializer.
4878 (minimal_language::expression_ops): New member function.
4879 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4880 (d_language::expression_ops): New member function.
4881 * eval.c (evaluate_subexp): Update call to expression_ops.
4882 * expprint.c (print_subexp): Likewise.
4883 (op_name): Likewise.
4884 (dump_subexp_body): Likewise.
4885 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4886 (f_language::expression_ops): New member function.
4887 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4888 (go_language::expression_ops): New member function.
4889 * language.c (language_defn::expression_ops): New function.
4890 (unknown_language_data): Remove la_exp_desc initializer.
4891 (auto_language_data): Likewise.
4892 * language.h (language_data): Remove la_exp_desc field.
4893 (language_defn::expression_ops): Declare new member function.
4894 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4895 (m2_language::expression_ops): New member function.
4896 * objc-lang.c (objc_language_data): Remove la_exp_desc
4897 initializer.
4898 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4899 initializer.
4900 (opencl_language::expression_ops): New member function.
4901 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4902 * parse.c (operator_length): Update call to expression_ops.
4903 (exp_iterate): Likewise.
4904 * rust-lang.c (rust_language_data): Remove la_exp_desc
4905 initializer.
4906 (ruse_language::expression_ops): New member function.
4907
4908 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4909
4910 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4911 initializer.
4912 (ada_language::varobj_ops): New member function.
4913 * c-lang.c (c_language_data): Remove la_varobj_ops
4914 initializer.
4915 (cplus_language_data): Likewise.
4916 (cplus_language::varobj_ops): New member function.
4917 (asm_language_data): Remove la_varobj_ops initializer.
4918 (minimal_language_data): Likewise.
4919 * d-lang.c (d_language_data): Likewise.
4920 * f-lang.c (f_language_data): Likewise.
4921 * go-lang.c (go_language_data): Likewise.
4922 * language.c (language_defn::varobj_ops): New function.
4923 (unknown_language_data): Remove la_varobj_ops
4924 initializer.
4925 (auto_language_data): Likewise.
4926 * language.h (language_data): Remove la_varobj_ops field.
4927 (language_defn::varobj_ops): Declare new member function.
4928 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4929 * objc-lang.c (objc_language_data): Likewise.
4930 * opencl-lang.c (opencl_language_data): Likewise.
4931 * p-lang.c (pascal_language_data): Likewise.
4932 * rust-lang.c (rust_language_data): Likewise.
4933 * varobj.c (varobj_create): Update call to varobj_ops.
4934 * varobj.h (default_varobj_ops): Delete define.
4935
4936 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4939 initializer.
4940 * c-lang.c (c_language_data): Likewise.
4941 (c_language::macro_expansion): New member function.
4942 (cplus_language_data): Likewise.
4943 (cplus_language::macro_expansion): New member function.
4944 (asm_language_data): Likewise.
4945 (asm_language::macro_expansion): New member function.
4946 (minimal_language_data): Likewise.
4947 (minimal_language::macro_expansion): New member function.
4948 * d-lang.c (d_language_data): Remove la_macro_expansion
4949 initializer.
4950 * f-lang.c (f_language_data): Likewise.
4951 * go-lang.c (go_language_data): Likewise.
4952 * language.c (unknown_language_data): Likewise.
4953 (auto_language_data): Likewise.
4954 * language.h (language_data): Remove la_macro_expansion field.
4955 (language_defn::macro_expansion): New member function.
4956 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4957 initializer.
4958 * objc-lang.c (objc_language_data): Likewise.
4959 (objc_language::macro_expansion): New member function.
4960 * opencl-lang.c (opencl_language_data): Likewise.
4961 (opencl_language::macro_expansion): New member function.
4962 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4963 initializer.
4964 * rust-lang.c (rust_language_data): Likewise.
4965 * symtab.c (default_collect_symbol_completion_matches_break_on):
4966 Update call to macro_expansion.
4967
4968 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4969
4970 * ada-lang.c (ada_language_data): Remove la_array_ordering
4971 initializer.
4972 * c-lang.c (c_language_data): Likewise.
4973 (cplus_language_data): Likewise.
4974 (asm_language_data): Likewise.
4975 (minimal_language_data): Likewise.
4976 * d-lang.c (d_language_data): Likewise.
4977 * dwarf2/read.c (read_array_order): Update for call to
4978 array_ordering.
4979 * f-lang.c (f_language_data): Remove la_array_ordering
4980 initializer.
4981 (f_language::array_ordering): New member function.
4982 * go-lang.c (go_language_data): Remove la_array_ordering
4983 initializer.
4984 * language.c (unknown_language_data): Likewise.
4985 (auto_language_data): Likewise.
4986 * language.h (language_data): Delete la_array_ordering field.
4987 (language_defn::array_ordering): New member function.
4988 * m2-lang.c (m2_language_data): Remove la_array_ordering
4989 initializer.
4990 * objc-lang.c (objc_language_data): Likewise.
4991 * opencl-lang.c (opencl_language_data): Likewise.
4992 * p-lang.c (pascal_language_data): Likewise.
4993 * rust-lang.c (rust_language_data): Likewise.
4994
4995 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4996
4997 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4998 initializer.
4999 * c-lang.c (c_language_data): Likewise.
5000 (cplus_language_data): Likewise.
5001 (asm_language_data): Likewise.
5002 (minimal_language_data): Likewise.
5003 * d-lang.c (d_language_data): Likewise.
5004 * f-lang.c (f_language_data): Likewise.
5005 (f_language::case_sensitivity): New member function.
5006 * go-lang.c (go_language_data): Remove la_case_sensitivity
5007 initializer.
5008 * language.c (enum case_mode): Moved here from language.h.
5009 (case_mode): Make static.
5010 (show_case_command): Update for case_sensitivity being a method.
5011 (set_case_command): Likewise.
5012 (set_range_case): Likewise.
5013 (unknown_language_data): Remove la_case_sensitivity initializer.
5014 (auto_language_data): Likewise.
5015 * language.h (case_mode): Delete, move enum declaration to
5016 language.c.
5017 (language_data): Delete la_case_sensitivity field.
5018 (language_defn::case_sensitivity): New member function.
5019 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5020 initializer.
5021 * objc-lang.c (objc_language_data): Likewise.
5022 * opencl-lang.c (opencl_language_data): Likewise.
5023 * p-lang.c (pascal_language_data): Likewise.
5024 * rust-lang.c (rust_language_data): Likewise.
5025
5026 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5027
5028 * ada-lang.c (ada_language_data): Remove la_range_check
5029 initializer.
5030 * c-lang.c (c_language_data): Likewise.
5031 (cplus_language_data): Likewise.
5032 (asm_language_data): Likewise.
5033 (minimal_language_data): Likewise.
5034 * d-lang.c (d_language_data): Likewise.
5035 * f-lang.c (f_language_data): Likewise.
5036 (f_language::range_checking_on_by_default): New member function.
5037 * go-lang.c (go_language_data): Remove la_range_check initializer.
5038 * language.c (enum range_mode): Moved here from language.h.
5039 (range_mode): Made static.
5040 (show_range_command): Update to use
5041 range_checking_on_by_default.
5042 (set_range_command): Likewise.
5043 (set_range_case): Likewise.
5044 (unknown_language_data): Remove la_range_check initializer.
5045 (auto_language_data): Likewise.
5046 * language.h (range_mode): Delete. Enum definition moved to
5047 language.c.
5048 (language_data): Remove la_range_check field.
5049 (language_defn::range_checking_on_by_default): New member
5050 function.
5051 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5052 (m2_language::range_checking_on_by_default): New member function.
5053 * objc-lang.c (objc_language_data): Remove la_range_check
5054 initializer.
5055 * opencl-lang.c (opencl_language_data): Likewise.
5056 * p-lang.c (pascal_language_data): Likewise.
5057 (pascal_language::range_checking_on_by_default): New member
5058 function.
5059 * rust-lang.c (rust_language_data): Remove la_range_check
5060 initializer.
5061 (rust_language::range_checking_on_by_default): New member
5062 function.
5063
5064 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5065
5066 * dwarf2/read.c (dwarf2_physname): Remove special case for
5067 language_go.
5068 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5069 member function.
5070
5071 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5072
5073 * ada-lang.c (ada_language_data): Remove
5074 la_store_sym_names_in_linkage_form_p initializer.
5075 (ada_language::store_sym_names_in_linkage_form_p): New member
5076 function.
5077 * c-lang.c (c_language_data): Remove
5078 la_store_sym_names_in_linkage_form_p initializer.
5079 (c_language::store_sym_names_in_linkage_form_p): New member
5080 function.
5081 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5082 initializer.
5083 (asm_language_data): Likewise.
5084 (asm_language::store_sym_names_in_linkage_form_p): New member
5085 function.
5086 (minimal_language_data): Remove
5087 la_store_sym_names_in_linkage_form_p initializer.
5088 (minimal_language::store_sym_names_in_linkage_form_p): New member
5089 function.
5090 * d-lang.c (d_language_data): Remove
5091 la_store_sym_names_in_linkage_form_p initializer.
5092 * dwarf2/read.c (dwarf2_physname): Update call to
5093 store_sym_names_in_linkage_form_p.
5094 * f-lang.c (f_language_data): Remove
5095 la_store_sym_names_in_linkage_form_p initializer.
5096 * go-lang.c (go_language_data): Remove
5097 la_store_sym_names_in_linkage_form_p initializer.
5098 * language.c (unknown_language_data): Remove
5099 la_store_sym_names_in_linkage_form_p initializer.
5100 (unknown_language::store_sym_names_in_linkage_form_p): New member
5101 function.
5102 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5103 initializer.
5104 (auto_language::store_sym_names_in_linkage_form_p): New member
5105 function.
5106 * language.h (language_data): Remove
5107 la_store_sym_names_in_linkage_form_p member variable.
5108 (language_defn::store_sym_names_in_linkage_form_p): New member
5109 function.
5110 * m2-lang.c (m2_language_data): Remove
5111 la_store_sym_names_in_linkage_form_p initializer.
5112 * objc-lang.c (objc_language_data): Likewise.
5113 * opencl-lang.c (opencl_language_data): Likewise.
5114 * p-lang.c (pascal_language_data): Likewise.
5115 * rust-lang.c (rust_language_data): Likewise.
5116
5117 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * ada-lang.c (ada_language_data): Remove string_lower_bound
5120 initializer.
5121 * c-lang.c (c_language_data): Likewise.
5122 (cplus_language_data): Likewise.
5123 (asm_language_data): Likewise.
5124 (minimal_language_data): Likewise.
5125 * d-lang.c (d_language_data): Likewise.
5126 * f-lang.c (f_language_data): Likewise.
5127 * go-lang.c (go_language_data): Likewise.
5128 * language.c (unknown_language_data): Likewise.
5129 (auto_language_data): Likewise.
5130 * language.h (language_data): Remove string_lower_bound field.
5131 (language_defn::string_lower_bound): New member function.
5132 * m2-lang.c (m2_language_data): Remove string_lower_bound
5133 initializer.
5134 (m2_language::string_lower_bound): New member function.
5135 * objc-lang.c (objc_language_data): Remove string_lower_bound
5136 initializer.
5137 * opencl-lang.c (opencl_language_data): Likewise.
5138 * p-lang.c (pascal_language_data): Likewise.
5139 * rust-lang.c (rust_language_data): Likewise.
5140 * valops.c (value_cstring): Update call to string_lower_bound.
5141 (value_string): Likewise.
5142 * value.c (allocate_repeated_value): Likewise.
5143
5144 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * valops.c (value_repeat): Fix incorrect argument name in comment.
5147
5148 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5149
5150 * ada-lang.c (ada_language_data): Remove c_style_arrays
5151 initializer.
5152 (ada_language::c_style_arrays_p): New member fuction.
5153 * c-lang.c (c_language_data): Remove c_style_arrays
5154 initializer.
5155 (cplus_language_data): Likewise.
5156 (asm_language_data): Likewise.
5157 (minimal_language_data): Likewise.
5158 * d-lang.c (d_language_data): Likewise.
5159 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5160 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5161 (f_language::c_style_arrays_p): New member function.
5162 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5163 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5164 * language.c (unknown_language_data): Remove c_style_arrays
5165 initializer.
5166 (auto_language_data): Likewise.
5167 * language.h (language_data): Remove c_style_arrays field.
5168 (language_defn::c_style_arrays_p): New member function.
5169 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5170 (m2_language::c_style_arrays_p): New member function.
5171 * objc-lang.c (objc_language_data): Remove c_style_arrays
5172 initializer.
5173 * opencl-lang.c (opencl_language_data): Likewise.
5174 * p-lang.c (pascal_language_data): Likewise.
5175 * rust-lang.c (rust_language_data): Likewise.
5176 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5177 and update local variable to a bool.
5178 * valops.c (value_cast): Update call to c_style_arrays_p.
5179 (value_array): Likewise.
5180 * value.c (coerce_array): Likewise.
5181
5182 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5183
5184 * ada-lang.c (ada_language_data): Remove la_language initializer.
5185 * c-lang.c (c_language_data): Likewise.
5186 (cplus_language_data): Likewise.
5187 (asm_language_data): Likewise.
5188 (minimal_language_data): Likewise.
5189 * d-lang.c (d_language_data): Likewise.
5190 * f-lang.c (f_language_data): Likewise.
5191 * go-lang.c (go_language_data): Likewise.
5192 * language.c (unknown_language_data): Likewise.
5193 (auto_language_data): Likewise.
5194 * language.h (language_data): Remove la_language field.
5195 (language_defn::language_defn): Initialise la_language field.
5196 (language_defn::la_language): New member variable.
5197 * m2-lang.c (m2_language_data): Remove la_language field.
5198 * objc-lang.c (objc_language_data): Likewise.
5199 * opencl-lang.c (opencl_language_data): Likewise.
5200 * p-lang.c (pascal_language_data): Likewise.
5201 * rust-lang.c (rust_language_data): Likewise.
5202
5203 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5204
5205 * ada-lang.c (ada_extensions): Delete, moved into
5206 ada_language::filename_extensions.
5207 (ada_language_data): Remove la_filename_extensions initializer.
5208 (ada_language::filename_extensions): New member function.
5209 * c-lang.c (c_extensions): Delete, moved into
5210 c_language::filename_extensions.
5211 (c_language_data): Remove la_filename_extensions initializer.
5212 (c_language::filename_extensions): New member function.
5213 (cplus_extensions): Delete, moved into
5214 cplus_language::filename_extensions.
5215 (cplus_language_data): Remove la_filename_extensions initializer.
5216 (cplus_language::filename_extensions): New member function.
5217 (asm_extensions): Delete, moved into
5218 asm_language::filename_extensions.
5219 (asm_language_data): Remove la_filename_extensions initializer.
5220 (asm_language::filename_extensions): New member function.
5221 (minimal_language_data): Remove la_filename_extensions
5222 initializer.
5223 * d-lang.c (d_extensions): Delete, moved into
5224 d_language::filename_extensions.
5225 (d_language_data): Remove la_filename_extensions initializer.
5226 (d_language::filename_extensions): New member function.
5227 * f-lang.c (f_extensions): Delete, moved into
5228 f_language::filename_extensions.
5229 (f_language_data): Remove la_filename_extensions initializer.
5230 (f_language::filename_extensions): New member function.
5231 * go-lang.c (go_language_data): Remove la_filename_extensions
5232 initializer.
5233 * language.c (add_set_language_command): Update now that
5234 filename_extensions returns a vector.
5235 (unknown_language_data): Remove la_filename_extensions
5236 initializer.
5237 (auto_language_data): Likewise.
5238 * language.h (language_data): Remove la_filename_extensions field.
5239 (language_defn::filename_extensions): New member function.
5240 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5241 initializer.
5242 * objc-lang.c (objc_extensions): Delete, moved into
5243 objc_language::filename_extensions.
5244 (objc_language_data): Remove la_filename_extensions initializer.
5245 (objc_language::filename_extensions): New member function.
5246 * opencl-lang.c (opencl_language_data): Remove
5247 la_filename_extensions initializer.
5248 * p-lang.c (pascal_extensions): Delete, moved into
5249 pascal_language::filename_extensions.
5250 (pascal_language_data): Remove la_filename_extensions initializer.
5251 (pascal_language::filename_extensions): New member function.
5252 * rust-lang.c (rust_extensions): Delete, moved into
5253 rust_language::filename_extensions.
5254 (rust_language_data): Remove la_filename_extensions initializer.
5255 (rust_language::filename_extensions): New member function.
5256 * symfile.c (add_filename_language): Add new assert.
5257
5258 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5259
5260 * ada-lang.c (ada_language_data): Remove la_name and
5261 la_natural_name initializers.
5262 (ada_language::name): New member function.
5263 (ada_language::natural_name): New member function.
5264 * c-lang.c (c_language_data): Remove la_name and
5265 la_natural_name initializers.
5266 (c_language::name): New member function.
5267 (c_language::natural_name): New member function.
5268 (cplus_language_data): Remove la_name and
5269 la_natural_name initializers.
5270 (cplus_language::name): New member function.
5271 (cplus_language::natural_name): New member function.
5272 (asm_language_data): Remove la_name and
5273 la_natural_name initializers.
5274 (asm_language::name): New member function.
5275 (asm_language::natural_name): New member function.
5276 (minimal_language_data): Remove la_name and
5277 la_natural_name initializers.
5278 (minimal_language::name): New member function.
5279 (minimal_language::natural_name): New member function.
5280 * compile/compile.c (compile_to_object): Update call to
5281 lanugage_defn::name.
5282 * d-lang.c (d_language_data): Remove la_name and
5283 la_natural_name initializers.
5284 (d_language::name): New member function.
5285 (d_language::natural_name): New member function.
5286 * expprint.c (print_subexp_standard): Update call to
5287 language_defn::name.
5288 (dump_raw_expression): Likewise
5289 (dump_prefix_expression): Likewise.
5290 * f-lang.c (f_language_data): Remove la_name and
5291 la_natural_name initializers.
5292 (f_language::name): New member function.
5293 (f_language::natural_name): New member function.
5294 * go-lang.c (go_language_data): Remove la_name and
5295 la_natural_name initializers.
5296 (go_language::name): New member function.
5297 (go_language::natural_name): New member function.
5298 * language.c (show_language_command): Update call to
5299 language_defn::name.
5300 (set_language_command): Likewise.
5301 (language_enum): Likewise.
5302 (language_str): Likewise.
5303 (add_set_language_command): Likewise, use
5304 language_defn::natural_name in the doc string.
5305 (unknown_language_data): Remove la_name and
5306 la_natural_name initializers.
5307 (unknown_language::name): New member function.
5308 (unknown_language::natural_name): New member function.
5309 (auto_language_data): Remove la_name and
5310 la_natural_name initializers.
5311 (auto_language::name): New member function.
5312 (auto_language::natural_name): New member function.
5313 (language_lookup_primitive_type_as_symbol): Update call to
5314 language_defn::name.
5315 * language.h (language_data): Remove la_name and la_natural_name
5316 member variables.
5317 (language_defn::name): New member function.
5318 (language_defn::natural_name): New member function.
5319 * m2-lang.c (m2_language_data): Remove la_name and
5320 la_natural_name initializers.
5321 (m2_language::name): New member function.
5322 (m2_language::natural_name): New member function.
5323 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5324 language_defn::natural_name.
5325 * objc-lang.c (objc_language_data): Remove la_name and
5326 la_natural_name initializers.
5327 (objc_language::name): New member function.
5328 (objc_language::natural_name): New member function.
5329 * opencl-lang.c (opencl_language_data): Remove la_name and
5330 la_natural_name initializers.
5331 (opencl_language::name): New member function.
5332 (opencl_language::natural_name): New member function.
5333 * p-lang.c (pascal_language_data): Remove la_name and
5334 la_natural_name initializers.
5335 (pascal_language::name): New member function.
5336 (pascal_language::natural_name): New member function.
5337 * rust-lang.c (rust_language_data): Remove la_name and
5338 la_natural_name initializers.
5339 (rust_language::name): New member function.
5340 (rust_language::natural_name): New member function.
5341 * symtab.c (lookup_language_this): Update call to
5342 language_defn::name.
5343
5344 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5345
5346 * ada-lang.c (ada_language_data): Remove la_name_of_this
5347 initializer.
5348 * ax-gdb.c (gen_expr): Update call to name_of_this.
5349 * c-exp.y (classify_name): Likewise.
5350 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5351 (cplus_language_data): Likewise.
5352 (cplus_language::name_of_this): New member function.
5353 (asm_language_data): Remove la_name_of_this initializer.
5354 (minimal_language_data): Likewise.
5355 * d-lang.c (d_language_data): Likewise.
5356 (d_language::name_of_this): New member function.
5357 * expprint.c (print_subexp_standard): Update call to name_of_this.
5358 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5359 * go-lang.c (go_language_data): Likewise.
5360 * language.c (unknown_language_data): Likewise.
5361 (unknown_language::name_of_this): New member function.
5362 (auto_language_data): Remove la_name_of_this initializer.
5363 (auto_language::name_of_this): New member function.
5364 * language.h (language_data): Delete la_name_of_this member
5365 variable.
5366 (language_defn::name_of_this): New member function.
5367 * m2-lang.c (m2_language_data): Remove la_name_of_this
5368 initializer.
5369 * objc-lang.c (objc_language_data): Likewise.
5370 (objc_language::name_of_this): New member function.
5371 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5372 initializer.
5373 * p-lang.c (pascal_language_data): Likewise.
5374 (pascal_language::name_of_this): New member function.
5375 * rust-lang.c (rust_language_data): Remove la_name_of_this
5376 initializer.
5377 * symtab.c (lookup_language_this): Update call to name_of_this.
5378 (lookup_symbol_aux): Likewise.
5379 * valops.c (value_of_this): Likewise.
5380
5381 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * ada-lang.c (ada_language_data): Remove
5384 la_struct_too_deep_ellipsis initializer.
5385 (ada_language::struct_too_deep_ellipsis): New member function.
5386 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5387 initializer.
5388 (cplus_language_data): Likewise.
5389 (asm_language_data): Likewise.
5390 (minimal_language_data): Likewise.
5391 * cp-valprint.c (cp_print_value): Update call to
5392 struct_too_deep_ellipsis.
5393 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5394 initializer.
5395 * f-lang.c (f_language_data): Likewise.
5396 (f_language::struct_too_deep_ellipsis): New member function.
5397 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5398 initializer.
5399 * language.c (unknown_language_data): Likewise.
5400 (auto_language_data): Likewise.
5401 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5402 member variable.
5403 (language_defn::struct_too_deep_ellipsis): New member function.
5404 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5405 initializer.Q
5406 * objc-lang.c (objc_language_data): Likewise.
5407 * opencl-lang.c (opencl_language_data): Likewise.
5408 * p-lang.c (pascal_language_data): Likewise.
5409 * rust-lang.c (rust_language_data): Likewise.
5410 * valprint.c (val_print_check_max_depth): Update call to
5411 struct_too_deep_ellipsis.
5412
5413 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5414
5415 * MAINTAINERS (Write After Approval): Add myself.
5416
5417 2020-09-15 Tom Tromey <tom@tromey.com>
5418
5419 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5420 Remove.
5421
5422 2020-09-15 Tom Tromey <tom@tromey.com>
5423
5424 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5425 and TYPE_CODE_METHODPTR cases.
5426 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5427 (c_value_print_inner): Update.
5428 * valprint.c (generic_value_print_memberptr): New function, from
5429 c_value_print_memberptr.
5430 (generic_value_print): Use it. Call cplus_print_method_ptr.
5431
5432 2020-09-15 Tom Tromey <tromey@adacore.com>
5433
5434 * python/python-internal.h (PyInt_FromLong): Remove define.
5435 * python/py-value.c (convert_value_from_python): Use
5436 gdb_py_object_from_longest.
5437 * python/py-type.c (typy_get_code): Use
5438 gdb_py_object_from_longest.
5439 * python/py-symtab.c (salpy_get_line): Use
5440 gdb_py_object_from_longest.
5441 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5442 gdb_py_object_from_longest.
5443 * python/py-record.c (recpy_gap_reason_code): Use
5444 gdb_py_object_from_longest.
5445 * python/py-record-btrace.c (recpy_bt_insn_size)
5446 (recpy_bt_func_level, btpy_list_count): Use
5447 gdb_py_object_from_longest.
5448 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5449 gdb_py_object_from_longest. Fix error handling.
5450 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5451 gdb_py_object_from_longest.
5452 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5453 gdb_py_object_from_longest.
5454 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5455 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5456 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5457
5458 2020-09-15 Tom Tromey <tromey@adacore.com>
5459
5460 * python/python.c (gdbpy_parameter_value): Use
5461 gdb_py_object_from_ulongest.
5462
5463 2020-09-15 Tom Tromey <tromey@adacore.com>
5464
5465 * python/py-infevents.c (create_register_changed_event_object):
5466 Use gdb_py_object_from_longest.
5467 * python/py-exitedevent.c (create_exited_event_object): Use
5468 gdb_py_object_from_longest.
5469
5470 2020-09-15 Tom Tromey <tromey@adacore.com>
5471
5472 * python/python.c (gdbpy_parameter_value): Use
5473 gdb_py_object_from_longest.
5474 * python/py-type.c (convert_field, typy_range): Use
5475 gdb_py_object_from_longest.
5476 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5477 gdb_py_object_from_longest.
5478 * python/py-lazy-string.c (stpy_get_length): Use
5479 gdb_py_object_from_longest.
5480 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5481 gdb_py_object_from_longest.
5482 * python/py-infevents.c (create_memory_changed_event_object): Use
5483 gdb_py_object_from_longest.
5484 * python/py-inferior.c (infpy_get_num): Use
5485 gdb_py_object_from_longest.
5486 (infpy_get_pid): Likewise.
5487
5488 2020-09-15 Tom Tromey <tromey@adacore.com>
5489
5490 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5491 defines.
5492 * python/py-value.c (valpy_long): Use
5493 gdb_py_object_from_ulongest.
5494 * python/py-symtab.c (salpy_get_pc): Use
5495 gdb_py_object_from_ulongest.
5496 (salpy_get_last): Likewise.
5497 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5498 gdb_py_object_from_ulongest.
5499 * python/py-lazy-string.c (stpy_get_address): Use
5500 gdb_py_object_from_ulongest.
5501 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5502 * python/py-arch.c (archpy_disassemble): Use
5503 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5504 error handling.
5505
5506 2020-09-15 Tom Tromey <tromey@adacore.com>
5507
5508 * python/python-internal.h (gdb_py_long_from_longest): Remove
5509 defines.
5510 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5511 * python/py-type.c (convert_field, typy_get_sizeof): Use
5512 gdb_py_object_from_longest.
5513 * python/py-record-btrace.c (btpy_list_index): Use
5514 gdb_py_object_from_longest.
5515
5516 2020-09-15 Tom Tromey <tromey@adacore.com>
5517
5518 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5519 * python/py-record.c (recpy_element_number): Use
5520 gdb_py_object_from_longest.
5521 (recpy_gap_number): Likewise.
5522
5523 2020-09-15 Tom Tromey <tromey@adacore.com>
5524
5525 * top.c (ui::ui): Update.
5526 (highest_ui_num): Remove.
5527 * top.h (struct ui) <num>: Remove.
5528
5529 2020-09-15 Tom Tromey <tromey@adacore.com>
5530
5531 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5532 * ui-style.c (ansi_regex_text): Now array.
5533 * rust-exp.y (number_regex_text): Now array.
5534 * linespec.c (linespec_quote_characters): Now array.
5535 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5536 Now arrays.
5537
5538 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5539
5540 * debuginfod-support.c (debuginfod_client_deleter): New.
5541 (debuginfod_client_up): New.
5542 (debuginfod_init): Return debuginfod_client_up.
5543 (debuginfod_source_query): Adjust.
5544 (debuginfod_debuginfo_query): Adjust.
5545
5546 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5547
5548 * debuginfod-support.c (debuginfod_source_query): Use
5549 make_unique_xstrdup.
5550
5551 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5552
5553 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5554 with `type::instance_flags`.
5555
5556 2020-09-14 Michael Mullin <masmullin@gmail.com>
5557
5558 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5559 Remove baton parameter.
5560
5561 2020-09-14 Pedro Alves <pedro@palves.net>
5562
5563 * Makefile.in (SELFTESTS_SRCS): Add
5564 unittests/enum-flags-selftests.c.
5565 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5566 btrace_function_flags instead of enum btrace_function_flag.
5567 * compile/compile-c-types.c (convert_qualified): Use
5568 enum_flags::raw.
5569 * compile/compile-cplus-symbols.c (convert_one_symbol)
5570 (convert_symbol_bmsym):
5571 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5572 (compile_cplus_convert_struct_or_union_methods)
5573 (compile_cplus_instance::convert_qualified_base):
5574 * go-exp.y (parse_string_or_char): Add cast to int.
5575 * unittests/enum-flags-selftests.c: New file.
5576 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5577 type to btrace_thread_flags from btrace_thread_flag.
5578 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5579 local's type to btrace_thread_flags from btrace_thread_flag. Add
5580 cast in DEBUG call.
5581
5582 2020-09-14 Pedro Alves <pedro@palves.net>
5583
5584 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5585 * gdbtypes.c (address_space_name_to_int): Rename to ...
5586 (address_space_name_to_type_instance_flags): ... this.
5587 (address_space_int_to_name): Rename to ...
5588 (address_space_type_instance_flags_to_name): ... this.
5589 * gdbtypes.h (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 * type-stack.c (type_stack::insert): Adjust to rename.
5594 * type-stack.h (type_stack::insert): Likewise.
5595
5596 2020-09-14 Pedro Alves <pedro@palves.net>
5597 Andrew Burgess <andrew.burgess@embecosm.com>
5598
5599 * avr-tdep.c (avr_address_class_type_flags): Return
5600 type_instance_flags.
5601 (avr_address_class_type_flags_to_name): Take a
5602 type_instance_flags.
5603 (avr_address_class_name_to_type_flags): Return bool and take a
5604 type_instance_flags.
5605 * d-lang.c (build_d_types): Use type::set_instance_flags.
5606 * ft32-tdep.c (ft32_address_class_type_flags): Return
5607 type_instance_flags.
5608 (ft32_address_class_type_flags_to_name): Take a
5609 type_instance_flags.
5610 (ft32_address_class_name_to_type_flags): Return bool and take a
5611 type_instance_flags.
5612 (ft32_gdbarch_init): Use type::set_instance_flags.
5613 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5614 * gdbarch.h, gdbarch.c: Regenerate.
5615 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5616 (address_class_name_to_type_flags): Use type_instance_flags and
5617 bool.
5618 * gdbtypes.c (address_space_name_to_int)
5619 (address_space_int_to_name, make_qualified_type): Use
5620 type_instance_flags.
5621 (make_qualified_type): Use type_instance_flags and
5622 type::set_instance_flags.
5623 (make_type_with_address_space, make_cv_type, make_vector_type)
5624 (check_typedef): Use type_instance_flags.
5625 (recursive_dump_type): Cast type_instance_flags to unsigned for
5626 printing.
5627 (copy_type_recursive): Use type::set_instance_flags.
5628 (gdbtypes_post_init): Use type::set_instance_flags.
5629 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5630 <m_instance_flags>: ... this.
5631 <instance_flags, set_instance_flags>: New methods.
5632 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5633 (SET_TYPE_INSTANCE_FLAGS): New.
5634 (address_space_name_to_int, address_space_int_to_name)
5635 (make_type_with_address_space): Pass flags using
5636 type_instance_flags instead of int.
5637 * stabsread.c (cleanup_undefined_types_noname): Use
5638 type::set_instance_flags.
5639 * s390-tdep.c (s390_address_class_type_flags): Return
5640 type_instance_flags.
5641 (s390_address_class_type_flags_to_name): Take a
5642 type_instance_flags.
5643 (s390_address_class_name_to_type_flags): Return bool and take a
5644 type_instance_flags.
5645 * type-stack.c (type_stack::follow_types): Use
5646 type_instance_flags.
5647 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5648
5649 2020-09-14 Tom Tromey <tromey@adacore.com>
5650
5651 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5652 * x86-tdep.c (x86_is_thunk_register_name)
5653 (x86_in_indirect_branch_thunk): Update.
5654 * sparc64-tdep.c (sparc64_fpu_register_names)
5655 (sparc64_cp0_register_names, sparc64_register_names)
5656 (sparc64_pseudo_register_names): Now const.
5657 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5658 cp0_registers_num>: Now const.
5659 * sparc-tdep.c (sparc_core_register_names)
5660 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5661 (sparc32_pseudo_register_names): Now const.
5662 (validate_tdesc_registers): Update.
5663 * rust-lang.c (rust_extensions): Now const.
5664 * p-lang.c (p_extensions): Now const.
5665 * objc-lang.c (objc_extensions): Now const.
5666 * nto-tdep.c (nto_thread_state_str): Now const.
5667 * moxie-tdep.c (moxie_register_names): Now const.
5668 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5669 Now const.
5670 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5671 (mips_linux_reg_names): Now const.
5672 (mips_gdbarch_init): Update.
5673 * microblaze-tdep.c (microblaze_register_names): Now const.
5674 * m68k-tdep.c (m68k_register_names): Now const.
5675 * m32r-tdep.c (m32r_register_names): Now const.
5676 * ia64-tdep.c (ia64_register_names): Now const.
5677 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5678 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5679 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5680 ymm_avx512_register_names, pkeys_register_names>: Now const.
5681 * i386-tdep.c (i386_register_names, i386_zmm_names)
5682 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5683 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5684 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5685 * f-lang.c (f_extensions): Now const.
5686 * d-lang.c (d_extensions): Now const.
5687 * csky-tdep.c (csky_register_names): Now const.
5688 * charset.c (default_charset_names, charset_enum): Now const.
5689 (_initialize_charset): Update.
5690 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5691 const.
5692 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5693 (bsd_uthread_solib_loaded): Update.
5694 (bsd_uthread_state): Now const.
5695 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5696 (amd64_ymm_avx512_names, amd64_ymmh_names)
5697 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5698 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5699 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5700 (amd64_dword_names): Now const.
5701 * agent.c (can_use_agent_enum): Now const.
5702 * ada-tasks.c (task_states, long_task_states): Now const.
5703 * ada-lang.c (known_runtime_file_name_patterns)
5704 (known_auxiliary_function_name_patterns, attribute_names)
5705 (standard_exc, ada_extensions): Now const.
5706
5707 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5708
5709 * bcache.h (struct bcache) <bcache>: Remove constructor.
5710 <m_hash_function, m_compare_function>: Remove.
5711 <~bcache>: Make virtual.
5712 <compare>: Remove static method, introduce virtual method.
5713 <default_hash>: Remove.
5714 <hash>: New virtual method.
5715 * bcache.c (bcache::expand_hash_table): Update.
5716 (bcache::insert): Update.
5717 (bcache::hash): New.
5718 (bcache::compare): Update comment and parameter names.
5719 * gdbtypes.c (types_deeply_equal): Update.
5720 * psymtab.h (struct psymbol_bcache): New struct.
5721 (class psymtab_storage) <psymtab_storage>: Make default.
5722 <psymbol_cache>: Change type to psymbol_bcache.
5723 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5724 (psymbol_hash): Change to...
5725 (psymbol_bcache::hash): ... this.
5726 (psymbol_compare): Change to...
5727 (psymbol_bcache::compare): ... this.
5728
5729 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5732 checking for initial lwp.
5733
5734 2020-09-14 Tom Tromey <tromey@adacore.com>
5735
5736 * m68k-tdep.c (m68k_extract_return_value): Use
5737 pointer_result_regnum.
5738 (m68k_store_return_value): Likewise.
5739 (m68k_reg_struct_return_p): Handle vectors and arrays.
5740 (m68k_return_value): Handle arrays.
5741 (m68k_svr4_return_value): Fix single-element aggregate handling.
5742 Handle long double. Adjust for embedded ABI.
5743 (m68k_svr4_init_abi): Set pointer_result_regnum.
5744 (m68k_embedded_init_abi): New function.
5745 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5746 (m68k_osabi_sniffer): New function.
5747 (_initialize_m68k_tdep): Register osabi sniffer.
5748 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5749 member.
5750
5751 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5754 with gdb::unique_xmalloc_ptr<char>.
5755
5756 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5757
5758 * xml-support.h (xml_fetch_another): Change type to be a
5759 function_view.
5760 (xml_process_xincludes): Remove baton parameter.
5761 (xml_fetch_content_from_file): Change baton parameter to
5762 dirname.
5763 * xml-support.c (struct xinclude_parsing_data)
5764 <xinclude_parsing_data>: Remove baton parameter.
5765 <fetcher_baton>: Remove.
5766 (xinclude_start_include): Adjust.
5767 (xml_process_xincludes): Adjust.
5768 (xml_fetch_content_from_file): Replace baton parameter with
5769 dirname.
5770 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5771 (xml_init_syscalls_info): Use a lambda.
5772 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5773 (file_read_description_xml): Use a lambda.
5774 (fetch_available_features_from_target): Change baton parameter
5775 to target_ops.
5776 (target_read_description_xml): Use a lambda.
5777 (target_fetch_description_xml): Use a lambda.
5778 (string_read_description_xml): Update.
5779
5780 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5781
5782 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5783 uses with type::endianity_is_not_default.
5784
5785 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5786
5787 * gdbtypes.h (struct type) <endianity_is_not_default,
5788 set_endianity_is_not_default>: New methods.
5789 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5790 type::endianity_is_not_default, change all write call sites to
5791 use type::set_endianity_is_not_default.
5792
5793 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5794
5795 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5796 uses with type::is_fixed_instance.
5797
5798 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5799
5800 * gdbtypes.h (struct type) <is_fixed_instance,
5801 set_is_fixed_instance>: New methods.
5802 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5803 write call sites to use type::set_is_fixed_instance.
5804
5805 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5806
5807 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5808 uses with type::is_gnu_ifunc.
5809
5810 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5813 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5814 use type::set_is_gnu_ifunc.
5815
5816 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5817
5818 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5819 uses with type::stub_is_supported.
5820
5821 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5822
5823 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5824 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5825 use type::set_stub_is_supported.
5826
5827 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5828
5829 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5830 uses with type::is_vector.
5831
5832 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5833
5834 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5835 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5836 use type::set_is_vector.
5837
5838 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5841 uses with type::has_varargs.
5842
5843 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5846 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5847 use type::set_has_varargs.
5848
5849 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5852 uses with type::is_prototyped.
5853
5854 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5855
5856 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5857 New methods.
5858 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5859 call sites to use type::set_is_prototyped.
5860
5861 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5864 uses with type::target_is_stub.
5865
5866 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5867
5868 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5869 New methods.
5870 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5871 sites to use type::set_target_is_stub.
5872
5873 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5874
5875 * gdbtypes.h (TYPE_STUB): Remove, replace all
5876 uses with type::is_stub.
5877
5878 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5879
5880 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5881 (TYPE_STUB): Use type::is_stub, change all write call sites to
5882 use type::set_is_stub.
5883
5884 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5885
5886 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5887 type::has_no_signedness.
5888
5889 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5890
5891 * gdbtypes.h (struct type) <has_no_signedness,
5892 set_has_no_signedness>: New methods.
5893 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5894 call sites to use type::set_has_no_signedness.
5895
5896 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5897
5898 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5899 type::is_unsigned.
5900
5901 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5902
5903 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5904 methods.
5905 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5906 sites to use type::set_is_unsigned.
5907
5908 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5909 Adam Renquinha <arenquinha@cimeq.qc.ca>
5910
5911 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5912 pointer and stack frame offset when unwinding.
5913
5914 2020-09-13 Pedro Alves <pedro@palves.net>
5915
5916 * NEWS: Document "-break-insert --qualified".
5917 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5918
5919 2020-09-13 Pedro Alves <pedro@palves.net>
5920
5921 * linespec.c (classify_mtype, compare_msyms): Delete.
5922 (search_minsyms_for_name): Remove classification logic. Instead
5923 filter out trampoline symbols if we also found an external
5924 function of the same name.
5925
5926 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5927
5928 * NEWS: Create a new section for the next release branch.
5929 Rename the section of the current branch, now that it has
5930 been cut.
5931
5932 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5933
5934 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5935 * version.in: Bump version to 11.0.50.DATE-git.
5936
5937 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5938
5939 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5940
5941 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5942 Felix Willgerodt <Felix.Willgerodt@intel.com>
5943
5944 * gdbarch.sh: Added bfloat16 type.
5945 * gdbarch.c: Regenerated.
5946 * gdbarch.h: Regenerated.
5947 * gdbtypes.c (floatformats_bfloat16): New struct.
5948 (gdbtypes_post_init): Add builtin_bfloat16.
5949 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5950 (floatformats_bfloat16): New struct.
5951 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5952 (i386_ymm_type): Add field "v16_bfloat16"
5953 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5954 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5955 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5956 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5957 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5958 * features/i386/64bit-avx512.c: Regenerated.
5959 * features/i386/64bit-sse.xml: Add bfloat16 type.
5960 * features/i386/64bit-sse.c: Regenerated.
5961
5962 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5963
5964 * i386-tdep.c (i386_zmm_type): Fix field names.
5965 (i386_ymm_type): Fix field names.
5966
5967 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5968
5969 * breakpoint.c: Fix typo in the help message of the
5970 "set breakpoint condition-evaluation" command.
5971
5972 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5973
5974 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5975 * (nbsd_nat_target::pid_to_exec_file)
5976 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5977 (nbsd_nat_target::post_startup_inferior)
5978 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5979 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5980 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5981 * (nbsd_thread_lister): Remove.
5982
5983 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5984
5985 * fork-inferior.c (startup_inferior): Avoid double free.
5986
5987 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5988
5989 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5990 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5991
5992 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5993
5994 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5995 * netbsd-nat.c: Include <sys/ptrace.h>.
5996 * (netbsd_nat::enable_proc_events): Add.
5997
5998 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5999
6000 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6001 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6002 (netbsd_nat::for_each_thread): Add.
6003 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6004 "gdbsupport/common-debug.h".
6005 * (netbsd_nat::netbsd_thread_lister)
6006 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6007 (netbsd_nat::for_each_thread): Add.
6008
6009 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6010
6011 * netbsd-nat.h: Include <unistd.h>.
6012 * (netbsd_nat::pid_to_exec_file): Add.
6013 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6014 * (netbsd_nat::pid_to_exec_file) Add.
6015
6016 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6017
6018 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6019
6020 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6021
6022 * netbsd-nat.h: New file.
6023 * netbsd-nat.c: Likewise.
6024
6025 2020-09-09 Tom Tromey <tromey@adacore.com>
6026
6027 * ada-lang.c (remove_extra_symbols): Do not increment when
6028 removing an element
6029
6030 2020-09-08 Tom Tromey <tromey@adacore.com>
6031
6032 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6033
6034 2020-09-08 Tom Tromey <tromey@adacore.com>
6035
6036 PR win32/25302:
6037 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6038 (gdb_bfd_init_data): New function.
6039 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6040
6041 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6042
6043 * infrun.c (fetch_inferior_event): Use
6044 `switch_to_target_no_thread` to switch the target.
6045
6046 2020-09-06 Tom Tromey <tom@tromey.com>
6047
6048 * symfile.h (dwarf2_free_objfile): Don't declare.
6049
6050 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6051
6052 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6053 to match 16 byte real/complex type generated by Flang compiler.
6054
6055 2020-09-03 Tom de Vries <tdevries@suse.de>
6056
6057 PR breakpoint/26546
6058 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6059 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6060
6061 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * maint.c (index_digits): New function.
6064 (struct maint_print_section_data): Remove.
6065 (print_bfd_section_info): Remove print_data parameter, add arg
6066 and index_digits.
6067 (print_objfile_section_info): Likewise.
6068 (print_bfd_section_info_maybe_relocated): Likewise (plus
6069 objfile).
6070 (maintenance_info_sections): Adjust calls.
6071
6072 2020-09-02 Tom Tromey <tromey@adacore.com>
6073
6074 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6075 for null pointers.
6076 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6077
6078 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6079
6080 * bcache.h (struct bcache) <insert>: Change type of `added` to
6081 pointer to bool.
6082 * bcache.c (bcache::insert): Likewise.
6083 * gdbtypes.c (check_types_worklist): Adjust.
6084 * psymtab.c (add_psymbol_to_bcache): Adjust.
6085
6086 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6087
6088 * corelow.c (unordered_set): Include.
6089 (class core_target): Add field 'm_core_unavailable_mappings'.
6090 (core_target::build_file_mappings): Print only one warning
6091 per inaccessible file. Add unavailable/broken mappings
6092 to m_core_unavailable_mappings.
6093 (core_target::xfer_partial): Call...
6094 (core_target::xfer_memory_via_mappings): New method.
6095
6096 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6097
6098 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6099 type to bool.
6100
6101 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * dwarf2/read.c (struct field_info): Fix indentation.
6104
6105 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6106
6107 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6108 ordering in comment.
6109 * frame.c (frame_id_eq): Fix indentation.
6110
6111 2020-08-31 Scott Linder <scott@scottlinder.com>
6112 Simon Marchi <simon.marchi@efficios.com>
6113
6114 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6115 inline frame ids in outer frame.
6116
6117 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6120 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6121 (outer_frame_id): Use FID_STACK_OUTER instead of
6122 FID_STACK_INVALID.
6123 (frame_id_p): Don't check for outer_frame_id.
6124
6125 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6126
6127 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6128 regnum/frame in value. Call allocate_value_lazy.
6129 * frame.c (frame_unwind_register_value): Use
6130 val_print_not_saved.
6131
6132 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6133
6134 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6135
6136 2020-08-29 Pedro Alves <pedro@palves.net>
6137
6138 * progspace.c (print_program_space): Use all_inferiors. Switch to
6139 the inferior before calling target_pid_to_str.
6140
6141 2020-08-28 Tom Tromey <tom@tromey.com>
6142
6143 * xcoffread.c (xcoff_end_psymtab): Update comment.
6144 * dbxread.c (dbx_end_psymtab): Update comment.
6145
6146 2020-08-28 Tom de Vries <tdevries@suse.de>
6147
6148 PR breakpoint/26544
6149 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6150 event_location.
6151 (create_breakpoint): Same.
6152 (base_breakpoint_decode_location): Same.
6153 (bkpt_create_sals_from_location): Same.
6154 (bkpt_decode_location): Same.
6155 (bkpt_probe_create_sals_from_location): Same.
6156 (bkpt_probe_decode_location): Same.
6157 (tracepoint_create_sals_from_location): Same.
6158 (tracepoint_decode_location): Same.
6159 (tracepoint_probe_decode_location): Same.
6160 (strace_marker_create_sals_from_location): Same.
6161 (strace_marker_decode_location): Same.
6162 (create_sals_from_location_default): Same.
6163 (decode_location_default): Same.
6164 * breakpoint.h (struct breakpoint_ops): Same.
6165 (create_breakpoint): Same.
6166 * linespec.h (decode_line_full): Same.
6167 * linespec.c (decode_line_full): Same. Throw error if
6168 result.size () == 0.
6169
6170 2020-08-27 Pedro Alves <pedro@palves.net>
6171
6172 PR gdb/26524
6173 * breakpoint.c (until_break_fsm) <location_breakpoint,
6174 caller_breakpoint>: Delete fields.
6175 <breakpoints>: New field.
6176 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6177 two individual breakpoints.
6178 (until_break_fsm::should_stop): Loop over breakpoints in the
6179 breakpoint vector.
6180 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6181 vector.
6182 (until_break_command): Handle location expanding into multiple
6183 sals.
6184
6185 2020-08-27 Pedro Alves <pedro@palves.net>
6186
6187 PR gdb/26523
6188 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6189 bp_until breakpoints user-specified locations. Update intro
6190 comment.
6191
6192 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6195 gdb_bfd_sections): New.
6196 * maint.c (print_bfd_section_info): Change param type to
6197 maint_print_section_data.
6198 (print_objfile_section_info): Likewise.
6199 (print_bfd_section_info_maybe_relocated): Likewise.
6200 (maintenance_info_sections): Use gdb_bfd_sections.
6201
6202 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6203
6204 * MAINTAINERS: Add ARC target and maintainer.
6205
6206 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6207
6208 * configure.tgt: ARC support for GNU/Linux.
6209 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6210 * arc-linux-tdep.c: New file.
6211 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6212 * arc-tdep.c (arc_write_pc): Use it.
6213
6214 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6215
6216 * arc-tdep.c (arc_check_for_hardware_loop): New.
6217 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6218
6219 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6220
6221 * arc-tdep.h: Include "gdbarch.h".
6222
6223 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6224
6225 * arch/arc.h
6226 (arc_gdbarch_features): New class to stir the selection of target XML.
6227 (arc_create_target_description): Use FEATURES to choose XML target.
6228 (arc_lookup_target_description): Use arc_create_target_description
6229 to create _new_ target descriptions or return the already created
6230 ones if the FEATURES is the same.
6231 * arch/arc.c: Implementation of prototypes described above.
6232 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6233 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6234 * arc-tdep.c (*_feature_name): Make feature names consistent.
6235 (arc_register_feature): A new struct to hold information about
6236 registers of a particular target/feature.
6237 (arc_check_tdesc_feature): Check if XML provides registers in
6238 compliance with ARC_REGISTER_FEATURE structs.
6239 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6240 (determine_*_reg_feature_set): Which feature name to look for.
6241 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6242 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6243 to expected ISA enums to be used in arc_gdbarch_features structs.
6244 * features/Makefile (FEATURE_XMLFILES): Add new files.
6245 * gdb/features/arc/v1-aux.c: New file.
6246 * gdb/features/arc/v1-aux.xml: Likewise.
6247 * gdb/features/arc/v1-core.c: Likewise.
6248 * gdb/features/arc/v1-core.xml: Likewise.
6249 * gdb/features/arc/v2-aux.c: Likewise.
6250 * gdb/features/arc/v2-aux.xml: Likewise.
6251 * gdb/features/arc/v2-core.c: Likewise.
6252 * gdb/features/arc/v2-core.xml: Likewise.
6253 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6254
6255 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6256 Andrew Burgess <andrew.burgess@embecosm.com>
6257
6258 PR m2/26372
6259 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6260 an assert. Remove single element array indexing pattern as the
6261 MULTI_SUBSCRIPT support will handle this case too.
6262
6263 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * value.h (valprint_check_validity): Move declaration from
6266 here...
6267 * valprint.h (valprint_check_validity): ... to here.
6268
6269 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * debug.h: New file.
6272 * debug.c (debug_prefixed_vprintf): New function.
6273 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6274 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6275
6276 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6277
6278 * infrun.h (infrun_debug_printf_1): New function declaration.
6279 (infrun_debug_printf): New macro.
6280 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6281 throughout.
6282 (infrun_debug_printf): New function.
6283 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6284 (handle_jit_event): Likewise.
6285
6286 2020-08-21 Mark Wielaard <mark@klomp.org>
6287
6288 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6289
6290 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6291
6292 * frame.c (enum class frame_id_status): New.
6293 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6294 (fprintf_frame): Update.
6295 (compute_frame_id): Set frame id status to "computing" on entry.
6296 Set it back to "not_computed" on failure and to "computed" on
6297 success.
6298 (get_frame_id): Assert the frame id is not being computed.
6299 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6300 (create_new_frame): Likewise.
6301 (frame_cleanup_after_sniffer): Update assert.
6302
6303 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6304
6305 * regcache.c (pid_ptid_regcache_map): New type.
6306 (target_ptid_regcache_map): Remove.
6307 (target_pid_ptid_regcache_map): New type.
6308 (regcaches): Change type to target_pid_ptid_regcache_map.
6309 (get_thread_arch_aspace_regcache): Update.
6310 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6311 case.
6312 (regcaches_size): Update.
6313 (regcache_count): Update.
6314 (registers_changed_ptid_target_pid_test): New.
6315 (_initialize_regcache): Register new test.
6316
6317 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6318
6319 * regcache.c (regcache_count): New.
6320 (struct regcache_test_data): New.
6321 (regcache_test_data_up): New.
6322 (populate_regcaches_for_test): New.
6323 (regcaches_test): Remove.
6324 (get_thread_arch_aspace_regcache_test): New.
6325 (registers_changed_ptid_all_test): New.
6326 (registers_changed_ptid_target_test): New.
6327 (registers_changed_ptid_target_ptid_test): New.
6328 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6329 (_initialize_regcache): Register new tests.
6330
6331 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6332
6333 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6334 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6335 gdbarch and aspace parameter. Use current inferior's aspace.
6336 Validate regcache's arch value.
6337 (regcaches_test): Update.
6338
6339 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6340
6341 * regcache.c (regcaches_test): Call registers_changed.
6342
6343 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6344
6345 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6346
6347 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6348
6349 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6350 to find the end of prologue for flang compiled binaries.
6351 * arm-tdep.c (arm_skip_prologue): Likewise.
6352 * i386-tdep.c (i386_skip_prologue): Likewise.
6353 * producer.c (producer_is_llvm): New function.
6354 (producer_parsing_tests): Added new tests for clang/flang.
6355 * producer.h (producer_is_llvm): New declaration.
6356
6357 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6358
6359 * linux-nat.c (linux_nat_debug_printf): New function.
6360 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6361
6362 2020-08-18 Aaron Merey <amerey@redhat.com>
6363
6364 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6365 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6366 (CLIBS): Add DEBUGINFOD_LIBS.
6367
6368 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6369
6370 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6371 'gdbarch_num_regs'.
6372
6373 2020-08-17 Tom Tromey <tromey@adacore.com>
6374
6375 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6376 ada_get_decoded_value returns NULL.
6377
6378 2020-08-17 Tom Tromey <tromey@adacore.com>
6379
6380 * python/py-inferior.c (infpy_search_memory): Use
6381 gdb_py_object_from_ulongest.
6382 * python/py-infevents.c (create_inferior_call_event_object)
6383 (create_memory_changed_event_object): Use
6384 gdb_py_object_from_ulongest.
6385 * python/py-linetable.c (ltpy_entry_get_pc): Use
6386 gdb_py_object_from_ulongest.
6387
6388 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6389
6390 * loc.c (class symbol_needs_eval_context): Fix indentation.
6391
6392 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6393
6394 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6395 bool.
6396
6397 2020-08-17 Tom de Vries <tdevries@suse.de>
6398
6399 PR gdb/26393
6400 * gdbtypes.c (dump_dynamic_prop): New function.
6401 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6402
6403 2020-08-15 Tom de Vries <tdevries@suse.de>
6404
6405 PR backtrace/26390
6406 * stack.c (print_frame_args): Temporarily set the selected
6407 frame to FRAME while printing the frame's arguments.
6408
6409 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6410
6411 PR breakpoints/26385
6412 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6413 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6414
6415 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6416
6417 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6418 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6419 and >= to check return value instead of == -1 and != -1.
6420
6421 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * utils.h (class gdb_argv) <as_array_view>: New method.
6424 * utils.c (gdb_argv_as_array_view_test): New.
6425 (_initialize_utils): Register selftest.
6426 * maint.c (maintenance_selftest): Use the new method.
6427
6428 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6429
6430 * target.h (supports_dumpcore, dumpcore): New
6431 function declarations.
6432 * target.c (supports_dumpcore, dumpcore): New
6433 functions.
6434 * target-delegates.c: Rebuild.
6435 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6436 and target_dumpcore ().
6437
6438 2020-08-13 Aaron Merey <amerey@redhat.com>
6439
6440 * debuginfod-support.c: Replace global variables with user_data.
6441
6442 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6443
6444 * maint.c (maintenance_selftest): Split args and pass array_view
6445 to run_tests.
6446
6447 2020-08-12 Luis Machado <luis.machado@linaro.org>
6448
6449 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6450 type's length.
6451 Use %s and pulongest to print the length.
6452
6453 2020-08-12 Pedro Alves <palves@redhat.com>
6454
6455 * NEWS: Move "Multi-target debugging support" item to the
6456 "Changes since GDB 9" section.
6457
6458 2020-08-12 Pedro Alves <palves@redhat.com>
6459
6460 PR gdb/26336
6461 * progspace.c (program_space::remove_objfile): Invalidate the
6462 frame cache.
6463
6464 2020-08-11 Tom de Vries <tdevries@suse.de>
6465
6466 * MAINTAINERS: Mark ms1 as deleted.
6467
6468 2020-08-10 Luis Machado <luis.machado@linaro.org>
6469
6470 PR gdb/26310
6471
6472 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6473 act accordingly.
6474 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6475 movz/str/stur/stp skipping behavior.
6476
6477 2020-08-10 Luis Machado <luis.machado@linaro.org>
6478
6479 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6480 struct user_sve_header instead of struct sve_context.
6481
6482 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * read.h (dwarf2_fetch_die_loc_sect_off,
6485 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6486 `void *` parameter with function_view.
6487 * read.c (dwarf2_fetch_die_loc_sect_off,
6488 dwarf2_fetch_die_loc_cu_off): Likewise.
6489 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6490 (per_cu_dwarf_call): Adjust.
6491 (get_frame_address_in_block_wrapper): Remove.
6492 (indirect_synthetic_pointer): Adjust.
6493 (get_ax_pc): Remove.
6494 (dwarf2_compile_expr_to_ax): Adjust.
6495
6496 2020-08-08 Tom de Vries <tdevries@suse.de>
6497
6498 PR build/26344
6499 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6500 constructor.
6501 * regcache.c (get_thread_arch_aspace_regcache): Same.
6502
6503 2020-08-07 Tom Tromey <tromey@adacore.com>
6504
6505 * ravenscar-thread.c
6506 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6507 New method.
6508 (ravenscar_thread_target::wait): Check
6509 runtime_initialized.
6510 (ravenscar_thread_target::prepare_to_store)
6511 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6512 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6513 (ravenscar_thread_target::stopped_by_watchpoint)
6514 (ravenscar_thread_target::stopped_data_address)
6515 (ravenscar_thread_target::core_of_thread): Use
6516 scoped_restore_current_thread and
6517 set_base_thread_from_ravenscar_task.
6518
6519 2020-08-07 Tom Tromey <tromey@adacore.com>
6520
6521 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6522
6523 2020-08-07 Tom Tromey <tromey@adacore.com>
6524
6525 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6526 update_inferior_ptid before update_thread_list.
6527 (temporarily_change_regcache_ptid): New class.
6528 (ravenscar_thread_target::fetch_registers)
6529 (ravenscar_thread_target::store_registers)
6530 (ravenscar_thread_target::prepare_to_store): Use base thread when
6531 forwarding operation.
6532
6533 2020-08-07 Tom Tromey <tromey@adacore.com>
6534
6535 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6536 "is_pid" case.
6537
6538 2020-08-07 Tom Tromey <tromey@adacore.com>
6539
6540 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6541 New methods.
6542 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6543 first.
6544 (ravenscar_thread_target::add_thread): Rename from
6545 ravenscar_add_thread.
6546 (ravenscar_thread_target::update_thread_list): Use a lambda.
6547 (ravenscar_thread_target::xfer_partial): New method.
6548
6549 2020-08-07 Tom Tromey <tromey@adacore.com>
6550
6551 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6552 gdb::function_view.
6553 (iterate_over_live_ada_tasks): Change type of argument.
6554 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6555 of argument.
6556
6557 2020-08-07 Tom Tromey <tromey@adacore.com>
6558
6559 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6560 Remove.
6561 (ravenscar_thread_target::extra_thread_info): Remove.
6562 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6563 defer to target beneath for non-Ravenscar threads.
6564
6565 2020-08-07 Tom Tromey <tromey@adacore.com>
6566
6567 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6568 get_base_thread_from_ravenscar_task>: Now methods.
6569 <m_cpu_map>: New member.
6570 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6571 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6572 (ravenscar_thread_target::task_is_currently_active): Update.
6573 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6574 Now a method.
6575 (ravenscar_thread_target::add_active_thread): Put initial thread
6576 into the m_cpu_map.
6577
6578 2020-08-07 Tom Tromey <tromey@adacore.com>
6579
6580 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6581 event_ptid.
6582
6583 2020-08-07 Tom Tromey <tromey@adacore.com>
6584
6585 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6586 runtime_initialized.
6587
6588 2020-08-07 Tom Tromey <tromey@adacore.com>
6589
6590 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6591 add_active_thread.
6592 (ravenscar_thread_target::add_active_thread): Now public.
6593 (ravenscar_inferior_created): Call add_active_thread after pushing
6594 the target.
6595
6596 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6597
6598 * regcache.c (ptid_regcache_map): New type.
6599 (target_ptid_regcache_map): New type.
6600 (regcaches): Change type to target_ptid_regcache_map.
6601 (get_thread_arch_aspace_regcache): Update to regcaches' new
6602 type.
6603 (regcache_thread_ptid_changed): Likewise.
6604 (registers_changed_ptid): Likewise.
6605 (regcaches_size): Likewise.
6606 (regcaches_test): Update.
6607 (regcache_thread_ptid_changed): Update.
6608 * regcache.h (regcache_up): New type.
6609 * gdbsupport/ptid.h (hash_ptid): New struct.
6610
6611 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6612
6613 * observable.h (thread_ptid_changed): Add parameter
6614 `process_stratum_target *`.
6615 * infrun.c (infrun_thread_ptid_changed): Add parameter
6616 `process_stratum_target *` and use it.
6617 (selftests): New namespace.
6618 (infrun_thread_ptid_changed): New function.
6619 (_initialize_infrun): Register selftest.
6620 * regcache.c (regcache_thread_ptid_changed): Add parameter
6621 `process_stratum_target *` and use it.
6622 (regcache_thread_ptid_changed): New function.
6623 (_initialize_regcache): Register selftest.
6624 * thread.c (thread_change_ptid): Pass target to
6625 thread_ptid_changed observable.
6626
6627 2020-08-06 Caroline Tice <cmtice@google.com>
6628
6629 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6630 (struct dwp_sections): Update field comments. Add loclists and
6631 rnglists fields.
6632 (struct virtual_v2_dwo_sections): Rename struct to
6633 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6634 size & offset fields for loclists and rnglists.
6635 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6636 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6637 skipping dummy type units.
6638 (create_dwp_hash_table): Update the large comment above the function to
6639 discuss Version 5 DWP files as well, with references. Update all the
6640 version checks in the function to check for version 5 as well. Add new
6641 section at the end to create dwp hash table for version 5.
6642 (create_dwp_v2_section): Rename function to
6643 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6644 Add V5 to error message text.
6645 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6646 into calls to create_dwp_v2_or_v5_section.
6647 (create_dwo_unit_in_dwp_v5): New function.
6648 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6649 check for version2; add else clause to handle version 5.
6650 (open_and_init_dwo_file): Add code to check dwarf version & only call
6651 create_debug_types_hash_table (with sections.types) if version is not 5;
6652 else call create_debug_type_hash_table, with sections.info.
6653 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6654 version 5.
6655 (dwarf2_locate_v5_dwp_sections): New function.
6656 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6657 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6658
6659 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6660
6661 * regcache.h (class regcache): Remove friend
6662 registers_changed_ptid.
6663 <regcache_thread_ptid_changed>: Remove.
6664 <regcaches>: Remove.
6665 * regcache.c (regcache::regcaches): Rename to...
6666 (regcaches): ... this. Make static.
6667 (get_thread_arch_aspace_regcache): Update.
6668 (regcache::regcache_thread_ptid_changed): Rename to...
6669 (regcache_thread_ptid_changed): ... this. Update.
6670 (class regcache_access): Remove.
6671 (regcaches_test): Update.
6672 (_initialize_regcache): Update.
6673 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6674 <forward_list>.
6675
6676 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6677
6678 * regcache.h (class regcache) <current_regcache>: Rename to...
6679 <regcaches>: ... this. Move doc here.
6680 * regcache.c (regcache::current_regcache) Rename to...
6681 (regcache::regcaches): ... this. Move doc to header.
6682 (get_thread_arch_aspace_regcache): Update.
6683 (regcache::regcache_thread_ptid_changed): Update.
6684 (registers_changed_ptid): Update.
6685 (class regcache_access) <current_regcache_size>: Rename to...
6686 <regcaches_size>: ... this.
6687 (current_regcache_test): Rename to...
6688 (regcaches_test): ... this.
6689 (_initialize_regcache): Update.
6690
6691 2020-08-06 Victor Collod <vcollod@nvidia.com>
6692
6693 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6694
6695 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6696
6697 * corelow.c (core_target::build_file_mappings): Don't output
6698 null pathname in warning.
6699
6700 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6701
6702 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6703 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6704 gdb.dwarf2/dw2-single-line-discriminators.exp,
6705 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6706
6707 2020-08-05 Tom Tromey <tromey@adacore.com>
6708
6709 PR rust/26197:
6710 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6711 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6712 Fix off-by-one and type size errors in ordinary case.
6713
6714 2020-08-05 Tom de Vries <tdevries@suse.de>
6715
6716 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6717 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6718
6719 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6720
6721 * frame.h (frame_id_p): Return bool.
6722 (frame_id_artificial_p): Return bool.
6723 (frame_id_eq): Return bool.
6724 (has_stack_frames): Return bool.
6725 (get_selected_frame): Fix typo in comment.
6726 (get_frame_pc_if_available): Return bool.
6727 (get_frame_address_in_block_if_available): Return bool.
6728 (get_frame_func_if_available): Return bool.
6729 (read_frame_register_unsigned): Return bool.
6730 (get_frame_register_bytes): Return bool.
6731 (safe_frame_unwind_memory): Return bool.
6732 (deprecated_frame_register_read): Return bool.
6733 (frame_unwinder_is): Return bool.
6734 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6735 bool.
6736 <this_id::p>: Likewise.
6737 <prev_p>: Likewise.
6738 (frame_stash_add): Return bool.
6739 (get_frame_id): Use bool.
6740 (frame_id_build_special) Use bool.
6741 (frame_id_build_unavailable_stack): Use bool.
6742 (frame_id_build): Use bool.
6743 (frame_id_p): Return bool, use true/false instead of 1/0.
6744 (frame_id_artificial_p): Likewise.
6745 (frame_id_eq): Likewise.
6746 (frame_id_inner): Likewise.
6747 (get_frame_func_if_available): Likewise.
6748 (read_frame_register_unsigned): Likewise.
6749 (deprecated_frame_register_read): Likewise.
6750 (get_frame_register_bytes): Likewise.
6751 (has_stack_frames): Likewise.
6752 (inside_main_func): Likewise.
6753 (inside_entry_func): Likewise.
6754 (get_frame_pc_if_available): Likewise.
6755 (get_frame_address_in_block_if_available): Likewise.
6756 (frame_unwinder_is): Likewise.
6757 (safe_frame_unwind_memory): Likewise.
6758 (frame_unwind_arch): Likewise.
6759
6760 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6761
6762 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6763 type to cached_copy_status.
6764 (fprintf_frame): Adjust.
6765 (get_frame_func_if_available): Adjust.
6766 (frame_cleanup_after_sniffer): Adjust.
6767
6768 2020-08-04 Mark Wielaard <mark@klomp.org>
6769
6770 * MAINTAINERS (Write After Approval): Update email address.
6771
6772 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6775 dynamic_prop::const_val.
6776
6777 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6778
6779 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6780 dynamic_prop::kind.
6781
6782 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6783
6784 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6785
6786 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6787
6788 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6789
6790 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6791 Jose E. Marchesi <jose.marchesi@oracle.com>
6792
6793 * configure.tgt: Add entry for bpf-*-*.
6794 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6795 (ALLDEPFILES): Add bpf-tdep.c.
6796 * bpf-tdep.c: New file.
6797 * MAINTAINERS: Add bpf target and maintainer.
6798 * NEWS: Mention the support for the new target.
6799
6800 2020-08-04 Tom de Vries <tdevries@suse.de>
6801
6802 PR symtab/23270
6803 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6804 Error.
6805
6806 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6807
6808 * syscalls/freebsd.xml: Regenerate.
6809
6810 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6811
6812 * syscalls/update-freebsd.sh: Fix usage and year range.
6813
6814 2020-08-03 Tom de Vries <tdevries@suse.de>
6815
6816 PR symtab/26333
6817 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6818 DW_LNE_lo_user/DW_LNE_hi_user range.
6819
6820 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6821
6822 PR ada/26318
6823 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6824 kind.
6825
6826 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6827
6828 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6829
6830 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6831
6832 * breakpoint.c (set_breakpoint_condition): Update the condition
6833 expressions after checking that the input condition string parses
6834 successfully and does not contain junk at the end.
6835
6836 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6837
6838 * breakpoint.c (set_breakpoint_condition): Update the
6839 condition string after parsing the new condition successfully.
6840
6841 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6842
6843 * proc-api.c (_STRUCTURED_PROC): Don't define.
6844 * proc-events.c: Likewise.
6845 * proc-flags.c: Likewise.
6846 * proc-why.c: Likewise.
6847 * procfs.c: Likewise.
6848
6849 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6850 * configure, config.in: Regenerate.
6851
6852 2020-07-30 Tom de Vries <tdevries@suse.de>
6853
6854 PR build/26320
6855 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6856 m_red/m_green/m_blue in a union.
6857
6858 2020-07-29 Tom de Vries <tdevries@suse.de>
6859
6860 PR tdep/26280
6861 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6862
6863 2020-07-28 Tom Tromey <tromey@adacore.com>
6864
6865 PR symtab/26270:
6866 * symtab.h (find_pc_partial_function_sym): Declare.
6867 * cli/cli-cmds.c (disassemble_command): Use
6868 find_pc_partial_function_sym. Check asm_demangle.
6869 * blockframe.c (cache_pc_function_sym): New global.
6870 (cache_pc_function_name): Remove.
6871 (clear_pc_function_cache): Update.
6872 (find_pc_partial_function_sym): New function, from
6873 find_pc_partial_function.
6874 (find_pc_partial_function): Rewrite using
6875 find_pc_partial_function_sym.
6876
6877 2020-07-28 Tom Tromey <tromey@adacore.com>
6878
6879 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6880 help. Add usage.
6881
6882 2020-07-28 Tom Tromey <tromey@adacore.com>
6883
6884 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6885 <DW_OP_GNU_variable_value>: Cast to address type.
6886
6887 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6888
6889 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6890 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6891 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6892 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6893 (nbsd_get_siginfo_type): New.
6894 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6895 (_initialize_nbsd_tdep): New.
6896
6897 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6898
6899 PR binutils/26301
6900 * configure: Regenerated.
6901
6902 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6903
6904 PR binutils/26301
6905 * configure: Regenerated.
6906
6907 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6908
6909 * python/py-frame.c: Remove 'user-regs.h' include.
6910 (frapy_read_register): Rewrite to make use of
6911 gdbpy_parse_register_id.
6912 * python/py-registers.c (gdbpy_parse_register_id): New function,
6913 moved here from python/py-unwind.c. Updated the return type, and
6914 also accepts register descriptor objects.
6915 * python/py-unwind.c: Remove 'user-regs.h' include.
6916 (pyuw_parse_register_id): Moved to python/py-registers.c.
6917 (unwind_infopy_add_saved_register): Update to use
6918 gdbpy_parse_register_id.
6919 (pending_framepy_read_register): Likewise.
6920 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6921
6922 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6923
6924 * python/py-registers.c: Add 'user-regs.h' include.
6925 (register_descriptor_iter_find): New function.
6926 (register_descriptor_iterator_object_methods): New static global
6927 methods array.
6928 (register_descriptor_iterator_object_type): Add pointer to methods
6929 array.
6930
6931 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6932
6933 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6934 for all architectures on FreeBSD 11.3 and later.
6935
6936 2020-07-27 Tom Tromey <tromey@adacore.com>
6937
6938 * gcore.h (load_corefile): Don't declare.
6939
6940 2020-07-27 Tom de Vries <tdevries@suse.de>
6941
6942 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6943 * config.in: Regenerate.
6944 * configure: Regenerate.
6945
6946 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6947
6948 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6949 ws2tcpip.h. When checking whether socklen_t type is defined, use
6950 ws2tcpip.h if it is available and sys/socket.h isn't.
6951 * configure: Regenerate.
6952 * config.in: Regenerate.
6953
6954 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6955
6956 PR fortran/23051
6957 PR fortran/26139
6958 * valops.c (value_ind): Pass address to
6959 readjust_indirect_value_type.
6960 * value.c (readjust_indirect_value_type): Make parameter
6961 non-const, and add extra address parameter. Resolve original type
6962 before using it.
6963 * value.h (readjust_indirect_value_type): Update function
6964 signature and comment.
6965
6966 2020-07-25 Tom de Vries <tdevries@suse.de>
6967
6968 PR symtab/26243
6969 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6970 entries.
6971
6972 2020-07-24 Aaron Merey <amerey@redhat.com>
6973
6974 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6975 * configure: Rebuild.
6976
6977 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6978
6979 PR corefiles/26294
6980 * corelow.c (_initialize_corelow): Add period to help text
6981 for "maintenance print core-file-backed-mappings".
6982
6983 2020-07-23 Pedro Alves <pedro@palves.net>
6984
6985 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6986 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6987 meanwhile.
6988 * frame.c (frame_cache_generation, get_frame_cache_generation):
6989 New.
6990 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6991 (get_prev_frame_if_no_cycle): On exception, don't touch
6992 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6993 * frame.h (get_frame_cache_generation): Declare.
6994
6995 2020-07-23 Tom de Vries <tdevries@suse.de>
6996
6997 PR tui/26282
6998 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6999 New default constructor.
7000
7001 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7002
7003 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7004 exclude non-statement entries.
7005
7006 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7007
7008 * NEWS (New commands): Mention new command
7009 "maintenance print core-file-backed-mappings".
7010
7011 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7012
7013 * corelow.c (gdbcmd.h): Include.
7014 (core_target::info_proc_mappings): New method.
7015 (get_current_core_target): New function.
7016 (maintenance_print_core_file_backed_mappings): New function.
7017 (_initialize_corelow): Add core-file-backed-mappings to
7018 "maint print" commands.
7019
7020 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7021
7022 * linux-tdep.c (dump_note_entry_p): New function.
7023 (linux_dump_mapping_p_ftype): New typedef.
7024 (linux_find_memory_regions_full): Add new parameter,
7025 should_dump_mapping_p.
7026 (linux_find_memory_regions): Adjust call to
7027 linux_find_memory_regions_full.
7028 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7029 call to linux_find_memory_regions_full.
7030
7031 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7032
7033 * corelow.c (solist.h, unordered_map): Include.
7034 (class core_target): Add field m_core_file_mappings and
7035 method build_file_mappings.
7036 (core_target::core_target): Call build_file_mappings.
7037 (core_target::~core_target): Free memory associated with
7038 m_core_file_mappings.
7039 (core_target::build_file_mappings): New method.
7040 (core_target::xfer_partial): Use m_core_file_mappings
7041 for memory transfers.
7042 * linux-tdep.c (linux_read_core_file_mappings): New
7043 function.
7044 (linux_core_info_proc_mappings): Rewrite to use
7045 linux_read_core_file_mappings.
7046 (linux_init_abi): Register linux_read_core_file_mappings.
7047
7048 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7049
7050 * arch-utils.c (default_read_core_file_mappings): New function.
7051 * arch-utils.c (default_read_core_file_mappings): Declare.
7052 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7053 * gdbarch.h, gdbarch.c: Regenerate.
7054
7055 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7056
7057 PR corefiles/25631
7058 * corelow.c (core_target:xfer_partial): Revise
7059 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7060 case after first checking the stratum beneath the core
7061 target.
7062 (has_all_memory): Return true.
7063 * target.c (raw_memory_xfer_partial): Revise comment
7064 regarding use of has_all_memory.
7065
7066 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7067
7068 * exec.h (section_table_xfer_memory): Revise declaration,
7069 replacing section name parameter with an optional callback
7070 predicate.
7071 * exec.c (section_table_xfer_memory): Likewise.
7072 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7073 of section_table_xfer_memory.
7074
7075 2020-07-22 Tom Tromey <tromey@adacore.com>
7076
7077 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7078 lookup_symbol_search_name.
7079
7080 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7083 redundant local variable.
7084 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7085 reference, not pointer, update code accordingly.
7086
7087 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7088 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7089
7090 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7091 * jit.c (jit_breakpoint_re_set_internal): Use the
7092 `skip_jit_symbol_lookup` field.
7093
7094 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7095 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7096
7097 * jit.c (jit_read_descriptor): Define the descriptor address once,
7098 use twice.
7099 (jit_breakpoint_deleted): Move the declaration of the loop variable
7100 `iter` into the loop header.
7101 (jit_breakpoint_re_set_internal): Move the declaration of the local
7102 variable `objf_data` to the first point of definition.
7103 (jit_event_handler): Move the declaration of local variables
7104 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7105 Rename `objf` to `jited`.
7106
7107 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7108
7109 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7110 Remove.
7111 * jit.c (get_jiter_objfile_data): Update.
7112
7113 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7114 Simon Marchi <simon.marchi@polymtl.ca>
7115
7116 * jit.c (struct jit_program_space_data): Remove.
7117 (jit_program_space_key): Remove.
7118 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7119 stuff.
7120 (get_jit_program_space_data): Remove.
7121 (jit_breakpoint_deleted): Iterate on all of the program space's
7122 objfiles.
7123 (jit_inferior_init): Likewise.
7124 (jit_breakpoint_re_set_internal): Likewise. Also change return
7125 type to void.
7126 (jit_breakpoint_re_set): Pass current_program_space to
7127 jit_breakpoint_re_set_internal.
7128
7129 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7130
7131 * jit.h (struct jiter_objfile_data) <cached_code_address,
7132 jit_breakpoint>: Move to here from ...
7133 * jit.c (jit_program_space_data): ... here.
7134 (jiter_objfile_data::~jiter_objfile_data): Update.
7135 (jit_breakpoint_deleted): Update.
7136 (jit_breakpoint_re_set_internal): Update.
7137
7138 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7139
7140 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7141 checks.
7142 (jit_read_descriptor): Remove NULL check.
7143 (jit_event_handler): Add an assertion.
7144
7145 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7146
7147 * jit.h (struct jit_objfile_data): Split into...
7148 (struct jiter_objfile_data): ... this ...
7149 (struct jited_objfile_data): ... and this.
7150 * objfiles.h (struct objfile) <jit_data>: Remove.
7151 <jiter_data, jited_data>: New fields.
7152 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7153 (jiter_objfile_data::~jiter_objfile_data): ... this.
7154 (get_jit_objfile_data): Rename to ...
7155 (get_jiter_objfile_data): ... this.
7156 (add_objfile_entry): Update.
7157 (jit_read_descriptor): Use get_jiter_objfile_data.
7158 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7159 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7160 (jit_inferior_exit_hook): Use objfile's jited_data field.
7161
7162 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * jit.h: Forward-declare `struct minimal_symbol`.
7165 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7166 constructor, destructor, and an objfile* field.
7167 * jit.c (jit_objfile_data): Remove.
7168 (struct jit_objfile_data): Migrate from here to jit.h.
7169 (jit_objfile_data::~jit_objfile_data): New destructor
7170 implementation with code moved from free_objfile_data.
7171 (free_objfile_data): Delete.
7172 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7173 (jit_find_objf_with_entry_addr): Ditto.
7174 (jit_inferior_exit_hook): Ditto.
7175 (_initialize_jit): Remove the call to
7176 register_objfile_data_with_cleanup.
7177 * objfiles.h (struct objfile) <jit_data>: New field.
7178
7179 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7180
7181 * jit.h: Forward-declare `struct objfile`.
7182 (jit_event_handler): Add a second parameter, the JITer objfile.
7183 * jit.c (jit_read_descriptor): Change the signature to take the
7184 JITer objfile as an argument instead of the jit_program_space_data.
7185 (jit_inferior_init): Update the call to jit_read_descriptor.
7186 (jit_event_handler): Use the new JITer objfile argument when calling
7187 jit_read_descriptor.
7188 * breakpoint.c (handle_jit_event): Update the call to
7189 jit_event_handler to pass the JITer objfile.
7190
7191 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7192
7193 * gdbarch.c: Regenerate.
7194 * gdbarch.h: Regenerate.
7195 * gdbarch.sh (handle_segmentation_fault): Remove method.
7196 * infrun.c (handle_segmentation_fault): Remove.
7197 (print_signal_received_reason): Remove call to
7198 handle_segmentation_fault.
7199
7200 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7201
7202 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7203 Rename to sparc64_linux_report_signal_info and add siggnal
7204 argument.
7205 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7206 instead of sparc64_linux_handle_segmentation_fault.
7207
7208 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7209
7210 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7211 i386_linux_report_signal_info instead of
7212 i386_linux_handle_segmentation_fault.
7213 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7214 to i386_linux_report_signal_info and add siggnal argument.
7215 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7216 of i386_linux_handle_segmentation_fault.
7217 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7218 to i386_linux_report_signal_info and add siggnal argument.
7219
7220 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7221
7222 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7223 hook if present.
7224
7225 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7226
7227 * gdbarch.c: Regenerate.
7228 * gdbarch.h: Regenerate.
7229 * gdbarch.sh (report_signal_info): New method.
7230 * infrun.c (print_signal_received_reason): Invoke gdbarch
7231 report_signal_info hook if present.
7232
7233 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7234
7235 * python/py-registers.c : Add 'unordered_map' include.
7236 (gdbpy_new_reggroup): Renamed to...
7237 (gdbpy_get_reggroup): ...this. Update to only create register
7238 group descriptors when needed.
7239 (gdbpy_reggroup_iter_next): Update.
7240
7241 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7242
7243 * python/py-registers.c (gdbpy_register_object_data): New static
7244 global.
7245 (gdbpy_register_object_data_init): New function.
7246 (gdbpy_new_register_descriptor): Renamed to...
7247 (gdbpy_get_register_descriptor): ...this, and update to reuse
7248 existing register descriptors where possible.
7249 (gdbpy_register_descriptor_iter_next): Update.
7250 (gdbpy_initialize_registers): Register new gdbarch data.
7251
7252 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7253
7254 * linux-nat.c (stopped_pids): Make static.
7255
7256 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7257
7258 PR ada/26235
7259 * gdbtypes.c (ada_discrete_type_low_bound,
7260 ada_discrete_type_high_bound): Handle undefined bounds.
7261
7262 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7263
7264 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7265 declaration.
7266 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7267 function.
7268
7269 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7270
7271 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7272 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7273 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7274 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7275 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7276 method.
7277
7278 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7279
7280 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7281 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7282 which are deprecated in Guile 3.0.
7283 * configure.ac (try_guile_versions): Add "guile-3.0".
7284 * configure (try_guile_versions): Regenerate.
7285 * NEWS: Update entry.
7286
7287 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7288 Doug Evans <dje@google.com>
7289
7290 PR gdb/21104
7291 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7292 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7293 USING_GUILE_BEFORE_2_2.
7294 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7295 Change type to 'scm_t_port_type *'.
7296 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7297 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7298 parameter and honor it. Update callers.
7299 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7300 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7301 functions.
7302 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7303 USING_GUILE_BEFORE_2_2.
7304 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7305 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7306 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7307 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7308 and 'SCM_PORT_TYPE'.
7309 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7310 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7311 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7312 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7313 [!USING_GUILE_BEFORE_2_2]: New functions.
7314 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7315 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7316 'gdbscm_memory_port_read'.
7317 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7318 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7319 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7320 function.
7321 (ioscm_init_memory_port): Remove.
7322 (ioscm_init_memory_port_stream): New function
7323 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7324 function.
7325 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7326 Return scm_from_uint (0).
7327 (gdbscm_set_memory_port_read_buffer_size_x)
7328 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7329 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7330 Return scm_from_uint (0).
7331 (gdbscm_set_memory_port_write_buffer_size_x)
7332 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7333 * configure.ac (try_guile_versions): Add "guile-2.2".
7334 * configure: Regenerate.
7335 * NEWS: Add entry.
7336
7337 2020-07-18 Tom Tromey <tom@tromey.com>
7338
7339 * linux-nat.c (linux_multi_process): Remove.
7340 (linux_nat_target::supports_multi_process): Return true.
7341
7342 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7343
7344 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7345 (riscv_lookup_target_description): Return pointer out of
7346 unique_ptr.
7347 * target-descriptions.c (allocate_target_description): Add
7348 comment.
7349 (target_desc_deleter::operator()): Likewise.
7350 * target-descriptions.h (struct target_desc_deleter): Moved to
7351 gdbsupport/tdesc.h.
7352 (target_desc_up): Likewise.
7353
7354 2020-07-17 Tom Tromey <tromey@adacore.com>
7355
7356 * linux-nat.c (linux_nat_target::supports_non_stop)
7357 (linux_nat_target::always_non_stop_p): Use "true".
7358 (linux_nat_target::supports_disable_randomization): Use "true" and
7359 "false".
7360
7361 2020-07-16 Caroline Tice <cmtice@google.com>
7362
7363 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7364 (RNGLIST_HEADER_SIZE64): New constant definition.
7365 (struct dwop_section_names): Add rnglists_dwo.
7366 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7367 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7368 (struct dwo_sections): Add rnglists field.
7369 (read_attribut_reprocess): Add tag parameter.
7370 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7371 (cu_debug_rnglists_section): New function (decl & definition).
7372 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7373 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7374 die whose range is being checked; get rnglist section from
7375 cu_debug_rnglists_section, to get from either objfile or dwo file as
7376 appropriate. Add cases for DW_RLE_base_addressx,
7377 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7378 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7379 test inside if-condition and updating complaint message.
7380 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7381 dwarf2_rnglists_process.
7382 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7383 dwarf2_ranges_process.
7384 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7385 need_ranges_base and update comment appropriately. Also pass die tag
7386 to dwarf2_ranges_read.
7387 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7388 need_ranges_base and update comment appropriately. Also pass die tag
7389 to dwarf2_ranges_process.
7390 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7391 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7392 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7393 need_ranges_base and update comment appropriately. Also pass die tag
7394 to read_attribute_reprocess and dwarf2_ranges_read.
7395 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7396 and update function comment appropriately.
7397 (read_loclist_index): Call read_loclists_rnglists_header instead of
7398 read_loclist_header.
7399 (read_rnglist_index): New function.
7400 (read_attribute_reprocess): Add tag parameter. Add code for
7401 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7402 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7403
7404 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7405
7406 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7407 being resolved.
7408
7409 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * arch-utils.c (show_architecture): Update formatting of messages.
7412
7413 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * gdbtypes.h (struct type) <bounds>: Handle array and string
7416 types.
7417 * ada-lang.c (assign_aggregate): Use type::bounds on
7418 array/string type.
7419 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7420 * c-varobj.c (c_number_of_children): Likewise.
7421 (c_describe_child): Likewise.
7422 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7423 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7424 (f_type_print_base): Likewise.
7425 * f-valprint.c (f77_array_offset_tbl): Likewise.
7426 (f77_get_upperbound): Likewise.
7427 (f77_print_array_1): Likewise.
7428 * guile/scm-type.c (gdbscm_type_range): Likewise.
7429 * m2-typeprint.c (m2_array): Likewise.
7430 (m2_is_long_set_of_type): Likewise.
7431 * m2-valprint.c (get_long_set_bounds): Likewise.
7432 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7433 * python/py-type.c (typy_range): Likewise.
7434 * rust-lang.c (rust_internal_print_type): Likewise.
7435 * type-stack.c (type_stack::follow_types): Likewise.
7436 * valarith.c (value_subscripted_rvalue): Likewise.
7437 * valops.c (value_cast): Likewise.
7438
7439 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7440
7441 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7442 callers to use the equivalent accessor methods.
7443
7444 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7445
7446 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7447 (struct type) <bit_stride>: New method.
7448 (TYPE_BIT_STRIDE): Remove.
7449 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7450
7451 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7454 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7455 callers to use the equivalent accessor methods instead.
7456
7457 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7458
7459 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7460 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7461 callers to use the equivalent accessor methods instead.
7462
7463 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7466 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7467 to use dynamic_prop::kind.
7468
7469 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7470
7471 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7472 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7473 to get the bound property's kind and check against
7474 PROP_UNDEFINED.
7475
7476 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7477
7478 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7479 all callers to use type::range_bounds followed by
7480 dynamic_prop::{low,high}.
7481
7482 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7483
7484 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7485 const_val, set_const_val, baton, set_locexpr, set_loclist,
7486 set_addr_offset, variant_parts, set_variant_parts,
7487 original_type, set_original_type>: New methods.
7488 <kind>: Rename to...
7489 <m_kind>: ... this. Update all users to use the new methods
7490 instead.
7491 <data>: Rename to...
7492 <m_data>: ... this. Update all users to use the new methods
7493 instead.
7494
7495 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7496
7497 * gdbtypes.c (get_discrete_bounds): Return failure if
7498 the range type's bounds are not both defined and constant
7499 values.
7500 (get_array_bounds): Update comment. Remove undefined bound check.
7501
7502 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7503
7504 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7505 the type::bounds method directly.
7506
7507 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7508
7509 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7510 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7511 are used to set the range type's bounds to use set_bounds.
7512
7513 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7514
7515 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7516
7517 2020-07-10 Pedro Alves <pedro@palves.net>
7518
7519 * gdbthread.h (inferior_ref): Define.
7520 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7521 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7522 * thread.c
7523 (scoped_restore_current_thread::restore):
7524 Adjust to gdb::ref_ptr.
7525 (scoped_restore_current_thread::~scoped_restore_current_thread):
7526 Remove manual decref handling.
7527 (scoped_restore_current_thread::scoped_restore_current_thread):
7528 Adjust to use
7529 inferior_ref::new_reference/thread_info_ref::new_reference.
7530 Incref the thread before calling get_frame_id instead of after.
7531 Let TARGET_CLOSE_ERROR propagate.
7532
7533 2020-07-10 Pedro Alves <pedro@palves.net>
7534
7535 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7536 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7537 NOT_AVAILABLE_ERROR.
7538 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7539 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7540
7541 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7542 Pedro Alves <pedro@palves.net>
7543
7544 PR gdb/26199
7545 * infrun.c (threads_are_resumed_pending_p): Delete.
7546 (do_target_wait): Remove threads_are_executing and
7547 threads_are_resumed_pending_p checks from the inferior_matches
7548 lambda. Update comments.
7549
7550 2020-07-10 Pedro Alves <pedro@palves.net>
7551
7552 PR gdb/26199
7553 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7554 executing threads.
7555
7556 2020-07-10 Pedro Alves <pedro@palves.net>
7557
7558 PR gdb/26199
7559 * infrun.c (handle_no_resumed): Handle multiple targets.
7560
7561 2020-07-10 Pedro Alves <pedro@palves.net>
7562
7563 PR gdb/26199
7564 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7565 target_is_async_p.
7566
7567 2020-07-10 Pedro Alves <pedro@palves.net>
7568
7569 PR gdb/26199
7570 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7571 threads, not all threads.
7572
7573 2020-07-10 Pedro Alves <pedro@palves.net>
7574
7575 PR gdb/26199
7576 * remote.c (remote_target::open_1): Pass remote target pointer as
7577 data to create_async_event_handler.
7578 (remote_async_inferior_event_handler): Mark async event handler
7579 before returning if the remote target still has either pending
7580 events or unacknowledged notifications.
7581
7582 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7583
7584 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7585 declaration.
7586 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7587 function.
7588
7589 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7590
7591 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7592 inferior_ptid.
7593
7594 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7595
7596 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7597 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7598 AT_FREEBSD_PS_STRINGS.
7599
7600 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7601
7602 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7603 of debugfile path on Windows.
7604
7605 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7606
7607 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7608 argument to 'data'.
7609
7610 2020-07-08 Tom Tromey <tromey@adacore.com>
7611
7612 * ada-lang.c (ada_exception_message_1): Use read_memory.
7613
7614 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7615
7616 PR python/22748
7617 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7618 special handling for inline frames.
7619 * findvar.c (value_of_register_lazy): Skip inline frames when
7620 creating lazy register values.
7621 * frame.c (frame_id_computed_p): Delete definition.
7622 * frame.h (frame_id_computed_p): Delete declaration.
7623
7624 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7625
7626 * NEWS: Mention additions to Python API.
7627 * python/py-arch.c (archpy_register_groups): New function.
7628 (arch_object_methods): Add 'register_groups' method.
7629 * python/py-registers.c (reggroup_iterator_object): New struct.
7630 (reggroup_object): New struct.
7631 (gdbpy_new_reggroup): New function.
7632 (gdbpy_reggroup_to_string): New function.
7633 (gdbpy_reggroup_name): New function.
7634 (gdbpy_reggroup_iter): New function.
7635 (gdbpy_reggroup_iter_next): New function.
7636 (gdbpy_new_reggroup_iterator): New function
7637 (gdbpy_initialize_registers): Register new types.
7638 (reggroup_iterator_object_type): Define new Python type.
7639 (gdbpy_reggroup_getset): New static global.
7640 (reggroup_object_type): Define new Python type.
7641 * python/python-internal.h
7642
7643 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7644
7645 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7646 * python/py-arch.c (archpy_registers): New function.
7647 (arch_object_methods): Add 'registers' method.
7648 * python/py-registers.c: New file.
7649 * python/python-internal.h
7650 (gdbpy_new_register_descriptor_iterator): Declare.
7651 (gdbpy_initialize_registers): Declare.
7652 * python/python.c (do_start_initialization): Call
7653 gdbpy_initialize_registers.
7654 * NEWS: Mention additions to the Python API.
7655
7656 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7657
7658 * NEWS: Mention new Python API method.
7659 * python/py-unwind.c (pending_framepy_architecture): New function.
7660 (pending_frame_object_methods): Add architecture method.
7661
7662 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7663
7664 * gdbarch.c: Regenerate.
7665 * gdbarch.h: Regenerate.
7666 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7667 (gdbarch_data): Use internal_error for the case where
7668 deprecated_set_gdbarch_data was originally needed.
7669 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7670 and use passed in obstack.
7671 (libunwind_frame_set_descr): Should no longer get back NULL from
7672 gdbarch_data.
7673 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7674 type.
7675 * user-regs.c (user_regs_init): Update parameters, and use passed
7676 in obstack.
7677 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7678 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7679
7680 2020-07-06 Tom de Vries <tdevries@suse.de>
7681
7682 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7683 End-Of-Sequence in lte_is_less_than.
7684 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7685 "gdb: Don't reorder line table entries too much when sorting".
7686
7687 2020-07-06 Tom de Vries <tdevries@suse.de>
7688
7689 PR tui/26205
7690 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7691
7692 2020-07-05 Tom de Vries <tdevries@suse.de>
7693
7694 PR build/26187
7695 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7696 std::uncaught_exceptions instead of deprecated
7697 std::uncaught_exception.
7698
7699 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7700
7701 * macroexp.h (macro_stringify): Return
7702 gdb::unique_xmalloc_ptr<char>.
7703 * macroexp.c (macro_stringify): Likewise.
7704 * macrotab.c (fixup_definition): Update.
7705
7706 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7707
7708 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7709 (lex_one_token): Update.
7710 * macroexp.c (struct macro_buffer) <release>: Return
7711 gdb::unique_xmalloc_ptr<char>.
7712 (macro_stringify): Update.
7713 (macro_expand): Update.
7714 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7715 * macroexp.h (macro_expand_next): Likewise.
7716
7717 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7718
7719 * macroexp.h (macro_lookup_ftype): Remove.
7720 (macro_expand, macro_expand_once, macro_expand_next): Remove
7721 lookup function parameters, add scope parameter.
7722 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7723 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7724 * macroscope.h (standard_macro_lookup): Change parameter type
7725 to macro_scope.
7726 * macroscope.c (standard_macro_lookup): Likewise.
7727 * c-exp.y (lex_one_token): Update.
7728 * macrocmd.c (macro_expand_command): Likewise.
7729 (macro_expand_once_command): Likewise.
7730
7731 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7732
7733 * inf-loop.c (inferior_event_handler): Remove client_data param.
7734 * inf-loop.h (inferior_event_handler): Likewise.
7735 * infcmd.c (step_1): Adjust.
7736 * infrun.c (proceed): Adjust.
7737 (fetch_inferior_event): Remove client_data param.
7738 (infrun_async_inferior_event_handler): Adjust.
7739 * infrun.h (fetch_inferior_event): Remove `void *` param.
7740 * linux-nat.c (handle_target_event): Adjust.
7741 * record-btrace.c (record_btrace_handle_async_inferior_event):
7742 Adjust.
7743 * record-full.c (record_full_async_inferior_event_handler):
7744 Adjust.
7745 * remote.c (remote_async_inferior_event_handler): Adjust.
7746
7747 2020-07-01 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7750 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7751
7752 2020-07-01 Tom Tromey <tom@tromey.com>
7753
7754 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7755 tui_gen_win_info.
7756 (tui_win_info::make_window): Merge with
7757 tui_gen_win_info::make_window.
7758 (tui_win_info::make_visible): Move from tui_gen_win_info.
7759 * tui/tui-win.c (tui_win_info::max_width): Move from
7760 tui_gen_win_info.
7761 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7762 type.
7763 <window_factory>: Likewise.
7764 * tui/tui-layout.c (tui_win_info::resize): Move from
7765 tui_gen_win_info.
7766 (make_standard_window): Change return type.
7767 (get_locator_window, tui_get_window_by_name): Likewise.
7768 (tui_layout_window::apply): Remove a cast.
7769 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7770 (struct tui_win_info): Merge with tui_gen_win_info.
7771 (struct tui_gen_win_info): Remove.
7772
7773 2020-07-01 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-stack.h (struct tui_locator_window): Derive from
7776 tui_win_info.
7777 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7778 <can_box>: New method.
7779
7780 2020-07-01 Tom Tromey <tom@tromey.com>
7781
7782 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7783
7784 2020-07-01 Tom Tromey <tom@tromey.com>
7785
7786 * tui/tui-regs.c (tui_data_window::display_registers_from)
7787 (tui_data_window::display_registers_from)
7788 (tui_data_window::first_data_item_displayed)
7789 (tui_data_window::delete_data_content_windows): Update.
7790 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7791 Remove.
7792 (tui_data_window::check_register_values): Update.
7793 (tui_data_item_window::rerender): Add parameters. Update.
7794 (tui_data_item_window::refresh_window): Remove.
7795 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7796 virtual.
7797 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7798 tui_gen_win_info.
7799 <refresh_window, max_height, min_height>: Remove.
7800 <rerender>: Add parameters.
7801 <x, y, visible>: New members.
7802 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7803 <m_item_width>: New member.
7804
7805 2020-07-01 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui-regs.c (tui_data_window::show_register_group)
7808 (tui_data_window::check_register_values): Update.
7809 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7810 from item_no.
7811
7812 2020-07-01 Tom Tromey <tom@tromey.com>
7813
7814 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7815 useless "if".
7816
7817 2020-07-01 Tom Tromey <tom@tromey.com>
7818
7819 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7820 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7821
7822 2020-07-01 Tom Tromey <tom@tromey.com>
7823
7824 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7825 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7826 (struct tui_line_or_address): Move from tui-data.h.
7827 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7828 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7829 (tui_cmd_window, tui_source_window_base, tui_source_window)
7830 (tui_disasm_window): Don't declare.
7831 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7832 to tui-winsource.h.
7833 (SINGLE_KEY): Move to tui-stack.c.
7834
7835 2020-07-01 Tom Tromey <tom@tromey.com>
7836
7837 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7838 std::string.
7839 * tui/tui-regs.c (class tab_expansion_file): New.
7840 (tab_expansion_file::write): New method.
7841 (tui_register_format): Change return type. Use
7842 tab_expansion_file.
7843 (tui_get_register, tui_data_window::display_registers_from)
7844 (tui_data_item_window::rerender): Update.
7845 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7846 * tui/tui-io.c (tui_expand_tabs): Remove.
7847
7848 2020-07-01 Tom Tromey <tom@tromey.com>
7849
7850 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7851
7852 2020-07-01 Fangrui Song <maskray@google.com>
7853
7854 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7855
7856 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7857
7858 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7859 forms for DW_AT_associated and DW_AT_allocated attributes,
7860 which is already checked in function attr_to_dynamic_prop.
7861
7862 2020-06-30 Tom Tromey <tromey@adacore.com>
7863
7864 * dwarf2/read.c (quirk_rust_enum): Correctly call
7865 alloc_rust_variant for default-less enum.
7866
7867 2020-06-30 Tom Tromey <tromey@adacore.com>
7868
7869 PR build/26183:
7870 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7871 gdb::to_string.
7872
7873 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7874
7875 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7876 * gdbarch.h: Re-generate.
7877
7878 2020-06-28 Tom Tromey <tom@tromey.com>
7879
7880 * command.h (cmd_types): Remove.
7881 (cmd_type): Don't declare.
7882 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7883 typedef.
7884 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7885 * cli/cli-decode.c (cmd_type): Remove.
7886
7887 2020-06-27 Pedro Alves <palves@redhat.com>
7888
7889 * fork-child.c (prefork_hook): Adjust.
7890 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7891 Delete.
7892 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7893 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7894 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7895 Remove declarations.
7896 (struct inferior) <set_tty, tty>: New methods.
7897 (struct inferior) <terminal>: Rename to ...
7898 (struct inferior) <m_terminal>: ... this and make private.
7899 * main.c (captured_main_1): Adjust.
7900 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7901 (mi_cmd_inferior_tty_show): Adjust.
7902 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7903 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7904
7905 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7906
7907 * configure.ac: Add --enable-libctf: handle --disable-static
7908 properly.
7909 * acinclude.m4: sinclude ../config/enable.m4.
7910 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7911 (LIBCTF): Substitute in.
7912 (CTF_DEPS): New, likewise.
7913 (CLIBS): libctf needs symbols from libbfd: move earlier.
7914 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7915 flags.
7916 * ctfread.c: Surround in ENABLE_LIBCTF.
7917 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7918 * configure: Regenerate.
7919 * config.in: Likewise.
7920
7921 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7922
7923 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7924
7925 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * inferior.h (struct inferior) <terminal>: Change type to
7928 gdb::unique_xmalloc_ptr<char>.
7929 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7930 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7931 field, adjust to unique pointer.
7932 (get_inferior_io_terminal): Adjust to unique pointer.
7933
7934 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7935
7936 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7937 registers, not just the known core set of registers.
7938
7939 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7942 fflags, frm, and fcsr registers.
7943 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7944 restore groups.
7945 (riscv_tdesc_unknown_reg): New function.
7946 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7947 tdesc_use_registers.
7948 * riscv-tdep.h (struct gdbarch_tdep): Add
7949 unknown_csrs_first_regnum, unknown_csrs_count,
7950 duplicate_fflags_regnum, duplicate_frm_regnum, and
7951 duplicate_fcsr_regnum fields.
7952
7953 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7954
7955 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7956 callback, use the callback (when not null) to help number unknown
7957 registers.
7958 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7959 (tdesc_use_registers): Add extra parameter to declaration.
7960
7961 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7962
7963 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7964 in the file.
7965 (class riscv_pending_register_alias): Likewise.
7966 (riscv_register_feature::register_info): Change 'required_p' field
7967 to 'required', and change its type. Add 'check' member function.
7968 (riscv_register_feature::register_info::check): Define new member
7969 function.
7970 (riscv_xreg_feature): Change initialisation of 'required' field.
7971 (riscv_freg_feature): Likewise.
7972 (riscv_virtual_feature): Likewise.
7973 (riscv_csr_feature): Likewise.
7974 (riscv_check_tdesc_feature): Take extra parameter, the csr
7975 tdesc_feature, rewrite the function to use the new
7976 riscv_register_feature::register_info::check function.
7977 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7978
7979 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7980
7981 * features/Makefile: Remove all references to the deleted files
7982 below.
7983 * features/riscv/32bit-csr.c: Deleted.
7984 * features/riscv/32bit-csr.xml: Deleted.
7985 * features/riscv/64bit-csr.c: Deleted.
7986 * features/riscv/64bit-csr.xml: Deleted.
7987 * features/riscv/rebuild-csr-xml.sh: Deleted.
7988
7989 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7990
7991 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7992 whitespace error for declaration of names member variable.
7993 (struct riscv_register_feature): Add new prefer_first_name member
7994 variable, and fix whitespace error in declaration of registers.
7995 (riscv_xreg_feature): Initialize prefer_first_name field.
7996 (riscv_freg_feature): Likewise.
7997 (riscv_virtual_feature): Likewise.
7998 (riscv_csr_feature): Likewise.
7999 (riscv_register_name): Expand on comments. Remove register name
8000 modifications for CSR and virtual registers.
8001
8002 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8003
8004 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8005 errors.
8006
8007 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8010 riscv-opc.h.
8011 (class riscv_pending_register_alias): New class.
8012 (riscv_check_tdesc_feature): Take vector of pending aliases and
8013 populate it as appropriate.
8014 (riscv_setup_register_aliases): Delete.
8015 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8016 to riscv_check_tdesc_feature in all cases. Use the vector to
8017 create the register aliases.
8018
8019 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8020
8021 * sol2-tdep.c (sol2_static_transform_name): Remove.
8022 (sol2_init_abi): Don't register it.
8023 * gdbarch.sh (static_transform_name): Remove.
8024 * gdbarch.c, gdbarch.h: Regenerate.
8025
8026 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8027 gdbarch_static_transform_name.
8028 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8029 * stabsread.c (define_symbol) <'X'>: Remove.
8030 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8031 handling.
8032 <'V'>: Likewise.
8033 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8034 <'S'>: Remove call to gdbarch_static_transform_name.
8035
8036 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8037
8038 * procfs.c (procfs_pre_trace): New function.
8039 (procfs_target::create_inferior): Pass it to fork_inferior.
8040
8041 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8042
8043 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8044 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8045 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8046 sol2-tdep.o, sparc-sol2-tdep.o.
8047 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8048 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8049 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8050 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8051
8052 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8053
8054 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8055 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8056 Call sol2_init_abi.
8057 Remove calls to set_gdbarch_skip_solib_resolver,
8058 set_gdbarch_core_pid_to_str.
8059 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8060 (i386_sol2_static_transform_name): Remove.
8061 (i386_sol2_init_abi): Call sol2_init_abi.
8062 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8063 set_gdbarch_static_transform_name,
8064 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8065 Use sol2_sigtramp_p.
8066 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8067 (sol2_sigtramp_p): New function.
8068 (sol2_static_transform_name): New function.
8069 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8070 (sol2_init_abi): New function.
8071 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8072 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8073 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8074 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8075 (sparc_sol2_static_transform_name): Remove.
8076 (sparc32_sol2_init_abi): Call sol2_init_abi.
8077 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8078 set_gdbarch_static_transform_name,
8079 set_gdbarch_skip_solib_resolver,
8080 set_gdbarch_core_pid_to_str.
8081 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8082 (sparc_sol2_static_transform_name): Remove
8083 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8084 call sol2_sigtramp_p.
8085 (sparc64_sol2_init_abi): Call sol2_init_abi.
8086 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8087 set_gdbarch_static_transform_name,
8088 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8089
8090 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8091
8092 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8093 * exec.c (validate_exec_file): If from_tty, set both
8094 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8095 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8096 and from_tty, unconditionally ask a confirmation.
8097
8098 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * target-descriptions.c (tdesc_architecture_name): Protect against
8101 NULL pointer dereference.
8102 (maint_print_xml_tdesc_cmd): New function.
8103 (_initialize_target_descriptions): Register new 'maint print
8104 xml-tdesc' command and give it the filename completer.
8105 * NEWS: Mention new 'maint print xml-tdesc' command.
8106
8107 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8108
8109 * target-descriptions.c (class tdesc_compatible_info): New class.
8110 (struct target_desc): Change type of compatible vector.
8111 (tdesc_compatible_p): Update for change in type of
8112 target_desc::compatible.
8113 (tdesc_compatible_info_list): New function.
8114 (tdesc_compatible_info_arch_name): New function.
8115 (tdesc_add_compatible): Update for change in type of
8116 target_desc::compatible.
8117 (print_c_tdesc::visit_pre): Likewise.
8118
8119 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8120
8121 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8122 whitespace to underscore.
8123 (maint_print_c_tdesc_cmd): Use fake filename for target
8124 descriptions that came from the target.
8125 (_initialize_target_descriptions): Add filename command completion
8126 for 'maint print c-tdesc'.
8127
8128 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8129
8130 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8131 lines.
8132
8133 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8134
8135 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8136 lines.
8137 (dwarf2_find_location_expression): Likewise.
8138 (call_site_parameter_matches): Likewise.
8139 (dwarf2_compile_expr_to_ax): Likewise.
8140 (disassemble_dwarf_expression): Likewise.
8141 (loclist_describe_location): Likewise.
8142
8143 2020-06-23 Pedro Alves <palves@redhat.com>
8144
8145 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8146 progspace-and-thread.h. Include scoped-mock-context.h instead.
8147 (register_to_value_test): Use scoped_mock_context.
8148 * regcache.c: Include "scoped-mock-context.h".
8149 (cooked_read_test): Don't error out if a target is already pushed.
8150 Use scoped_mock_context. Adjust.
8151 * scoped-mock-context.h: New file.
8152
8153 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8154
8155 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8156 initializer.
8157 (ada_language::is_string_type_p): New member function.
8158 * c-lang.c (c_language_data): Delete la_is_string_type_p
8159 initializer.
8160 (cplus_language_data): Likewise.
8161 (asm_language_data): Likewise.
8162 (minimal_language_data): Likewise.
8163 * d-lang.c (d_language_data): Likewise.
8164 * f-lang.c (f_is_string_type_p): Delete function, implementation
8165 moved to f_language::is_string_type_p.
8166 (f_language_data): Delete la_is_string_type_p initializer.
8167 (f_language::is_string_type_p): New member function,
8168 implementation from f_is_string_type_p.
8169 * go-lang.c (go_is_string_type_p): Delete function, implementation
8170 moved to go_language::is_string_type_p.
8171 (go_language_data): Delete la_is_string_type_p initializer.
8172 (go_language::is_string_type_p): New member function,
8173 implementation from go_is_string_type_p.
8174 * language.c (language_defn::is_string_type_p): Define new member
8175 function.
8176 (default_is_string_type_p): Make static, add comment copied from
8177 header file.
8178 (unknown_language_data): Delete la_is_string_type_p initializer.
8179 (unknown_language::is_string_type_p): New member function.
8180 (auto_language_data): Delete la_is_string_type_p initializer.
8181 (auto_language::is_string_type_p): New member function.
8182 * language.h (language_data): Delete la_is_string_type_p field.
8183 (language_defn::is_string_type_p): Declare new function.
8184 (default_is_string_type_p): Delete desclaration, move comment to
8185 definition.
8186 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8187 moved to m2_language::is_string_type_p.
8188 (m2_language_data): Delete la_is_string_type_p initializer.
8189 (m2_language::is_string_type_p): New member function,
8190 implementation from m2_is_string_type_p.
8191 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8192 initializer.
8193 * opencl-lang.c (opencl_language_data): Likewise.
8194 * p-lang.c (pascal_is_string_type_p): Delete function,
8195 implementation moved to pascal_language::is_string_type_p.
8196 (pascal_language_data): Delete la_is_string_type_p initializer.
8197 (pascal_language::is_string_type_p): New member function,
8198 implementation from pascal_is_string_type_p.
8199 * rust-lang.c (rust_is_string_type_p): Delete function,
8200 implementation moved to rust_language::is_string_type_p.
8201 (rust_language_data): Delete la_is_string_type_p initializer.
8202 (rust_language::is_string_type_p): New member function,
8203 implementation from rust_is_string_type_p.
8204 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8205 is_string_type_p.
8206
8207 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8208
8209 * ada-lang.c (ada_language_data): Delete la_print_typedef
8210 initializer.
8211 (ada_language::print_typedef): New member function.
8212 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8213 (cplus_language_data): Likewise.
8214 (asm_language_data): Likewise.
8215 (minimal_language_data): Likewise.
8216 * d-lang.c (d_language_data): Likewise.
8217 * f-lang.c (f_language_data): Likewise.
8218 (f_language::print_typedef): New member function.
8219 * go-lang.c (go_language_data): Delete la_print_typedef
8220 initializer.
8221 * language.c (language_defn::print_typedef): Define member
8222 function.
8223 (unknown_language_data): Delete la_print_typedef initializer.
8224 (unknown_language::print_typedef): New member function.
8225 (auto_language_data): Delete la_print_typedef initializer.
8226 (auto_language::print_typedef): New member function.
8227 * language.h (language_data): Delete la_print_typedef field.
8228 (language_defn::print_typedef): Declare new member function.
8229 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8230 (default_print_typedef): Delete declaration.
8231 * m2-lang.c (m2_language_data): Delete la_print_typedef
8232 initializer.
8233 (m2_language::print_typedef): New member function.
8234 * objc-lang.c (objc_language_data): Delete la_print_typedef
8235 initializer.
8236 * opencl-lang.c (opencl_language_data): Likewise.
8237 * p-lang.c (pascal_language_data): Likewise.
8238 (pascal_language::print_typedef): New member function.
8239 * rust-lang.c (rust_print_typedef): Delete function,
8240 implementation moved to rust_language::print_typedef.
8241 (rust_language): Delete la_print_typedef initializer.
8242 (rust_language::print_typedef): New member function,
8243 implementation from rust_print_typedef.
8244 * typeprint.c (default_print_typedef): Delete.
8245
8246 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8247
8248 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8249 (ada_language::printstr): New member function.
8250 * c-lang.c (c_language_data): Delete la_printstr initializer.
8251 (cplus_language_data): Likewise.
8252 (asm_language_data): Likewise.
8253 (minimal_language_data): Likewise.
8254 * d-lang.c (d_language_data): Likewise.
8255 * f-lang.c (f_printstr): Rename to f_language::printstr.
8256 (f_language_data): Delete la_printstr initializer.
8257 (f_language::printstr): New member function, implementation from
8258 f_printstr.
8259 * go-lang.c (go_language_data): Delete la_printstr initializer.
8260 * language.c (language_defn::printstr): Define new member
8261 function.
8262 (unk_lang_printstr): Delete.
8263 (unknown_language_data): Delete la_printstr initializer.
8264 (unknown_language::printstr): New member function.
8265 (auto_language_data): Delete la_printstr initializer.
8266 (auto_language::printstr): New member function.
8267 * language.h (language_data): Delete la_printstr field.
8268 (language_defn::printstr): Declare new member function.
8269 (LA_PRINT_STRING): Update call to printstr.
8270 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8271 (m2_language_data): Delete la_printstr initializer.
8272 (m2_language::printstr): New member function, implementation from
8273 m2_printstr.
8274 * objc-lang.c (objc_language_data): Delete la_printstr
8275 initializer.
8276 * opencl-lang.c (opencl_language_data): Likewise.
8277 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8278 (pascal_language_data): Delete la_printstr initializer.
8279 (pascal_language::printstr): New member function, implementation
8280 from pascal_printstr.
8281 * p-lang.h (pascal_printstr): Delete declaration.
8282 * rust-lang.c (rust_printstr): Update header comment.
8283 (rust_language_data): Delete la_printstr initializer.
8284 (rust_language::printstr): New member function.
8285
8286 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8287
8288 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8289 (ada_language::printchar): New member function.
8290 * c-lang.c (c_language_data): Delete la_printchar initializer.
8291 (cplus_language_data): Likewise.
8292 (asm_language_data): Likewise.
8293 (minimal_language_data): Likewise.
8294 * d-lang.c (d_language_data): Likewise.
8295 * f-lang.c (f_printchar): Rename to f_language::printchar.
8296 (f_language_data): Delete la_printchar initializer.
8297 (f_language::printchar): New member function, implementation from
8298 f_printchar.
8299 * go-lang.c (go_language_data): Delete la_printchar initializer.
8300 * language.c (unk_lang_printchar): Delete.
8301 (language_defn::printchar): Define new member function.
8302 (unknown_language_data): Delete la_printchar initializer.
8303 (unknown_language::printchar): New member function.
8304 (auto_language_data): Delete la_printchar initializer.
8305 (auto_language::printchar): New member function.
8306 * language.h (language_data): Delete la_printchar field.
8307 (language_defn::printchar): Declare new member function.
8308 (LA_PRINT_CHAR): Update call to printchar.
8309 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8310 (m2_language::printchar): New member function.
8311 * objc-lang.c (objc_language_data): Delete la_printchar
8312 initializer.
8313 * opencl-lang.c (opencl_language_data): Likewise.
8314 * p-lang.c (pascal_language_data): Delete la_printchar
8315 initializer.
8316 (pascal_language::printchar): New member function.
8317 * rust-lang.c (rust_printchar): Rename to
8318 rust_language::printchar.
8319 (rust_language_data): Delete la_printchar initializer.
8320 (rust_language::printchar): New member function, implementation
8321 from rust_printchar.
8322
8323 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8324
8325 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8326 (ada_language_data): Delete la_emitchar initializer.
8327 (ada_language::emitchar): New member function, implementation from
8328 emit_char.
8329 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8330 (cplus_language_data): Likewise.
8331 (asm_language_data): Likewise.
8332 (minimal_language_data): Likewise.
8333 * d-lang.c (d_language_data): Likewise.
8334 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8335 (f_language_data): Delete la_emitchar initializer.
8336 (f_language::emitchar): New member function, implementation from
8337 f_emit_char.
8338 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8339 * language.c (unk_lang_emit_char): Delete.
8340 (language_defn::emitchar): New member function definition.
8341 (unknown_language_data): Delete la_emitchar initializer.
8342 (unknown_language::emitchar): New member function.
8343 (auto_language_data): Delete la_emitchar initializer.
8344 (auto_language::emitchar): New member function.
8345 * language.h (language_data): Delete la_emitchar field.
8346 (language_defn::emitchar): New member field declaration.
8347 (LA_EMIT_CHAR): Update call to emitchar.
8348 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8349 (m2_language_data): Delete la_emitchar initializer.
8350 (m2_language::emitchar): New member function, implementation from
8351 m2_emit_char.
8352 * objc-lang.c (objc_language_data): Delete la_emitchar
8353 initializer.
8354 * opencl-lang.c (opencl_language_data): Likewise.
8355 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8356 (pascal_language_data): Delete la_emitchar initializer.
8357 (pascal_language::emitchar): New member function, implementation
8358 from pascal_emit_char.
8359 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8360 (rust_language_data): Delete la_emitchar initializer.
8361 (rust_language::emitchar): New member function, implementation
8362 from rust_emitchar.
8363
8364 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8365
8366 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8367 (ada_language_data): Delete la_post_parser initializer.
8368 (ada_language::post_parser): New member function.
8369 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8370 (cplus_language_data): Likewise.
8371 (asm_language_data): Likewise.
8372 (minimal_language_data): Likewise.
8373 * d-lang.c (d_language_data): Likewise.
8374 * f-lang.c (f_language_data): Likewise.
8375 * go-lang.c (go_language_data): Likewise.
8376 * language.c (unknown_language_data): Likewise.
8377 (auto_language_data): Likewise.
8378 * language.h (language_data): Delete la_post_parser field.
8379 (language_defn::post_parser): New member function.
8380 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8381 * objc-lang.c (objc_language_data): Likewise.
8382 * opencl-lang.c (opencl_language_data): Likewise.
8383 * p-lang.c (pascal_language_data): Likewise.
8384 * parse.c (parse_exp_in_context): Update call to post_parser.
8385 (null_post_parser): Delete definition.
8386 * parser-defs.h (null_post_parser): Delete declaration.
8387 * rust-lang.c (rust_language_data): Delete la_post_parser
8388 initializer.
8389
8390 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8391
8392 * ada-lang.c (parse): Rename to ada_language::parser.
8393 (ada_language_data): Delete la_parser initializer.
8394 (ada_language::parser): New member function, implementation from
8395 parse.
8396 * c-lang.c (c_language_data): Delete la_parser initializer.
8397 (cplus_language_data): Likewise.
8398 (asm_language_data): Likewise.
8399 (minimal_language_data): Likewise.
8400 * d-lang.c (d_language_data): Likewise.
8401 (d_language::parser): New member function.
8402 * f-lang.c (f_language_data): Delete la_parser initializer.
8403 (f_language::parser): New member function.
8404 * go-lang.c (go_language_data): Delete la_parser initializer.
8405 (go_language::parser): New member function.
8406 * language.c (unk_lang_parser): Delete.
8407 (language_defn::parser): Define new member function.
8408 (unknown_language_data): Delete la_parser initializer.
8409 (unknown_language::parser): New member function.
8410 (auto_language_data): Delete la_parser initializer.
8411 (auto_language::parser): New member function.
8412 * language.h (language_data): Delete la_parser field.
8413 (language_defn::parser): Declare new member function.
8414 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8415 (m2_language::parser): New member function.
8416 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8417 * opencl-lang.c (opencl_language_data): Likewise.
8418 * p-lang.c (pascal_language_data): Likewise.
8419 (pascal_language::parser): New member function.
8420 * parse.c (parse_exp_in_context): Update call to parser.
8421 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8422 (rust_language::parser): New member function.
8423
8424 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8425
8426 * top.c (print_gdb_configuration): Print --with-python-libdir
8427 configuration value.
8428
8429 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8430
8431 * NEWS: Mention change to the alias command.
8432
8433 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8434
8435 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8436 (alias_command_completer)
8437 (make_alias_options_def_group): New functions.
8438 (alias_opts, alias_option_defs): New struct and array.
8439 (alias_usage_error): Update usage.
8440 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8441 Use option framework.
8442 (_initialize_cli_cmds): Update alias command help.
8443 Update aliases command help.
8444 (show_user):
8445 Add NULL for new default_args lookup_cmd argument.
8446 (valid_command_p): Rename to validate_aliased_command.
8447 Add NULL for new default_args lookup_cmd argument. Verify that the
8448 aliased_command has no default args.
8449 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8450 (lookup_cmd_1, lookup_cmd): New argument default_args.
8451 (add_alias_cmd):
8452 Add NULL for new default_args lookup_cmd argument.
8453 (print_help_for_command): Show default args under the layout
8454 alias some_alias = some_aliased_cmd some_alias_default_arg.
8455 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8456 xfree default_args in destructor.
8457 * cli/cli-script.c (process_next_line, do_define_command):
8458 Add NULL for new default_args lookup_cmd argument.
8459 * command.h: Declare new default_args argument in lookup_cmd
8460 and lookup_cmd_1.
8461 * completer.c (complete_line_internal_1):
8462 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8463 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8464 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8465 Likewise.
8466 * infcmd.c (_initialize_infcmd): Likewise.
8467 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8468 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8469 * python/py-param.c (add_setshow_generic): Likewise.
8470 * remote.c (_initialize_remote): Likewise.
8471 * top.c (execute_command): Prepend default_args if command has some.
8472 (set_verbose):
8473 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8474 * tracepoint.c (validate_actionline, encode_actions_1):
8475 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8476
8477 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8478
8479 * jit.c (jit_read_descriptor): Use bool as the return type.
8480 (jit_breakpoint_re_set_internal): Use bool as the return type.
8481 Invert the return value logic; return true if the jit breakpoint
8482 has been successfully initialized.
8483 (jit_inferior_init): Update the call to
8484 jit_breakpoint_re_set_internal.
8485
8486 2020-06-22 Pedro Alves <palves@redhat.com>
8487
8488 PR gdb/25939
8489 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8490 Use the current inferior instead. Don't return
8491 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8492 wait again.
8493 * sol-thread.c (sol_thread_target::wait): Don't reference
8494 inferior_ptid.
8495 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8496 (sol_update_thread_list_callback): Use the current inferior's pid
8497 instead of inferior_ptid.
8498
8499 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8500
8501 * procfs.c: Cleanup many comments.
8502
8503 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8504 (AFTER_WATCHFLAG): Replace by value.
8505
8506 (MAIN_PROC_NAME_FORMAT): Inline ...
8507 (create_procinfo): ... here.
8508
8509 (procfs_debug_inferior): Remove SYS_exec handling.
8510 (syscall_is_exec): Likewise.
8511 (procfs_set_exec_trap): Likewise.
8512
8513 (syscall_is_lwp_exit): Inline in callers.
8514 (syscall_is_exit): Likewise.
8515 (syscall_is_exec): Likewise.
8516 (syscall_is_lwp_create): Likewise.
8517
8518 (invalidate_cache): Remove #if 0 code.
8519
8520 (make_signal_thread_runnable): Remove.
8521 (procfs_target::resume): Remove #if 0 code.
8522
8523 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8524
8525 PR gdb/25939
8526 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8527 call ...
8528 (procfs_target::create_inferior): ... here.
8529
8530 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8531
8532 * exec.c (validate_exec_file): Ensure the build-id is up to
8533 date by calling reopen_exec_file (that checks file timestamp
8534 to decide to re-read the file).
8535
8536 2020-06-18 Pedro Alves <palves@redhat.com>
8537
8538 PR gdb/25412
8539 * gdbthread.h (delete_thread, delete_thread_silent)
8540 (find_thread_ptid): Update comments.
8541 * thread.c (current_thread_): New global.
8542 (is_current_thread): Move higher, and reimplement.
8543 (inferior_thread): Reimplement.
8544 (set_thread_exited): Use bool. Add assertions.
8545 (add_thread_silent): Simplify thread-reuse handling by always
8546 calling delete_thread.
8547 (delete_thread): Remove intro comment.
8548 (find_thread_ptid): Skip exited threads.
8549 (switch_to_thread_no_regs): Write to current_thread_.
8550 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8551 INFERIOR_PTID. Clear current_thread_.
8552
8553 2020-06-18 Pedro Alves <palves@redhat.com>
8554
8555 * aix-thread.c (pd_update): Use switch_to_thread.
8556
8557 2020-06-18 Pedro Alves <palves@redhat.com>
8558
8559 * ravenscar-thread.c (ravenscar_thread_target): Update.
8560 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8561 (ravenscar_thread_target::add_active_thread): ... this. Don't
8562 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8563 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8564
8565 2020-06-18 Pedro Alves <palves@redhat.com>
8566
8567 * nat/windows-nat.c (current_windows_thread): Remove.
8568 * nat/windows-nat.h (current_windows_thread): Remove.
8569 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8570 Adjust.
8571 (display_selectors): Adjust to fetch the current
8572 windows_thread_info based on inferior_ptid.
8573 (fake_create_process): No longer write to current_windows_thread.
8574 (windows_nat_target::get_windows_debug_event):
8575 Don't set inferior_ptid or current_windows_thread.
8576 (windows_nat_target::wait): Adjust to not rely on
8577 current_windows_thread.
8578 (do_initial_windows_stuff): Now a method of windows_nat_target.
8579 Switch to the last_ptid thread.
8580 (windows_nat_target::attach): Adjust.
8581 (windows_nat_target::detach): Use switch_to_no_thread instead of
8582 writing to inferior_ptid directly.
8583 (windows_nat_target::create_inferior): Adjust.
8584
8585 2020-06-18 Pedro Alves <palves@redhat.com>
8586
8587 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8588
8589 2020-06-18 Pedro Alves <palves@redhat.com>
8590
8591 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8592 after creating it, instead of writing to inferior_ptid. Don't
8593 write to inferior_ptid.
8594
8595 2020-06-18 Pedro Alves <palves@redhat.com>
8596
8597 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8598
8599 2020-06-18 Pedro Alves <palves@redhat.com>
8600
8601 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8602 it, instead of writing to inferior_ptid.
8603
8604 2020-06-18 Pedro Alves <palves@redhat.com>
8605
8606 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8607 to inferior_ptid.
8608
8609 2020-06-18 Pedro Alves <palves@redhat.com>
8610
8611 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8612 instead of writing to inferior_ptid directly.
8613
8614 2020-06-18 Pedro Alves <palves@redhat.com>
8615
8616 * corelow.c (core_target::close): Use switch_to_no_thread instead
8617 of writing to inferior_ptid directly.
8618 (add_to_thread_list, core_target_open): Use switch_to_thread
8619 instead of writing to inferior_ptid directly.
8620
8621 2020-06-18 Pedro Alves <palves@redhat.com>
8622
8623 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8624 inferior_ptid.
8625 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8626 inferior_ptid.
8627 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8628 inferior_ptid directly.
8629 (darwin_nat_target::init_thread_list): Switch to thread, instead
8630 of writing to inferior_ptid.
8631 (darwin_nat_target::attach): Don't write to inferior_ptid.
8632 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8633
8634 2020-06-18 Pedro Alves <palves@redhat.com>
8635
8636 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8637 thread.
8638 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8639 Instead use switch_to_thread.
8640 (gnu_nat_target::detach): Use switch_to_no_thread
8641 instead of writing to inferior_ptid directly. Used passed-in
8642 inferior instead of looking up the inferior by pid.
8643
8644 2020-06-18 Pedro Alves <palves@redhat.com>
8645
8646 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8647 inferior_ptid.
8648
8649 2020-06-18 Pedro Alves <palves@redhat.com>
8650
8651 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8652 inferior_ptid.
8653 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8654 thread.
8655 (nto_procfs_target::detach): Avoid referencing
8656 inferior_ptid. Use switch_to_no_thread instead of writing to
8657 inferior_ptid directly.
8658 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8659 instead of writing to inferior_ptid directly.
8660 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8661 to thread.
8662
8663 2020-06-18 Pedro Alves <palves@redhat.com>
8664
8665 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8666 after creating it, instead of writing to inferior_ptid.
8667 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8668 to inferior_ptid directly.
8669 (gdbsim_target::wait): Don't write to inferior_ptid.
8670
8671 2020-06-18 Pedro Alves <palves@redhat.com>
8672
8673 * remote.c (remote_target::remote_notice_new_inferior): Use
8674 switch_to_thread instead of writing to inferior_ptid directly.
8675 (remote_target::add_current_inferior_and_thread): Use
8676 switch_to_no_thread instead of writing to inferior_ptid directly.
8677 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8678 and switch_to_thread instead of using set_current_inferior or
8679 writing to inferior_ptid directly.
8680
8681 2020-06-18 Pedro Alves <palves@redhat.com>
8682
8683 * tracectf.c (ctf_target_open): Switch to added thread instead of
8684 writing to inferior_ptid directly.
8685 (ctf_target::close): Use switch_to_no_thread instead of writing to
8686 inferior_ptid directly.
8687
8688 2020-06-18 Pedro Alves <palves@redhat.com>
8689
8690 * tracefile-tfile.c (tfile_target_open): Don't write to
8691 inferior_ptid directly, instead switch to added thread.
8692 (tfile_target::close): Use switch_to_no_thread instead of writing
8693 to inferior_ptid directly.
8694
8695 2020-06-18 Pedro Alves <palves@redhat.com>
8696
8697 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8698 (procfs_target::detach): Use switch_to_no_thread
8699 instead of writing to inferior_ptid directly.
8700 (do_attach): Change return type to void. Switch to the added
8701 thread.
8702 (procfs_target::create_inferior): Switch to the added thread.
8703 (procfs_do_thread_registers): Don't write to inferior_ptid.
8704
8705 2020-06-18 Pedro Alves <palves@redhat.com>
8706
8707 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8708 of writing to inferior_ptid.
8709 (scoped_restore_exited_inferior): Delete.
8710 (handle_vfork_child_exec_or_exit): Simplify using
8711 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8712 instead of writing to inferior_ptid.
8713 (THREAD_STOPPED_BY): Delete.
8714 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8715 (thread_stopped_by_hw_breakpoint): Delete.
8716 (save_waitstatus): Use
8717 scoped_restore_current_thread+switch_to_thread, and call
8718 target_stopped_by_watchpoint instead of
8719 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8720 instead of thread_stopped_by_sw_breakpoint, and
8721 target_stopped_by_hw_breakpoint instead of
8722 thread_stopped_by_hw_breakpoint.
8723 (handle_inferior_event)
8724 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8725 inferior_ptid directly, nor
8726 set_current_inferior/set_current_program_space. Use
8727 switch_to_thread / switch_to_inferior_no_thread instead.
8728
8729 2020-06-18 Pedro Alves <palves@redhat.com>
8730
8731 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8732 instead of writing to inferior_ptid.
8733
8734 2020-06-18 Pedro Alves <palves@redhat.com>
8735
8736 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8737 added thread.
8738 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8739 to the added thread.
8740 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8741 instead of writing to inferior_ptid.
8742
8743 2020-06-18 Pedro Alves <palves@redhat.com>
8744
8745 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8746 (register_to_value_test): Mock a program_space too. Heap-allocate
8747 the address space. Don't write to inferior_ptid. Use
8748 switch_to_thread instead.
8749
8750 2020-06-18 Pedro Alves <palves@redhat.com>
8751
8752 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8753 Delete.
8754 (find_signalled_thread()): New, factored out from
8755 linux_make_corefile_notes and adjusted to handle exited threads.
8756 (linux_make_corefile_notes): Adjust to use the new
8757 find_signalled_thread.
8758
8759 2020-06-18 Pedro Alves <palves@redhat.com>
8760
8761 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8762 of saving/restoring inferior_ptid.
8763
8764 2020-06-17 Tom Tromey <tom@tromey.com>
8765
8766 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8767 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8768 declare.
8769 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8770
8771 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8772
8773 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8774 of partial symtabs.
8775
8776 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8777
8778 * regformats/reg-arm.dat: Remove.
8779 * regformats/reg-bfin.dat: Remove.
8780 * regformats/reg-cris.dat: Remove.
8781 * regformats/reg-crisv32.dat: Remove.
8782 * regformats/reg-m32r.dat: Remove.
8783 * regformats/reg-tilegx.dat: Remove.
8784 * regformats/reg-tilegx32.dat: Remove.
8785
8786 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * features/Makefile (WHICH): Remove arm files.
8789 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8790 * regformats/arm/arm-with-neon.dat: Remove.
8791 * regformats/arm/arm-with-vfpv2.dat: Remove.
8792 * regformats/arm/arm-with-vfpv3.dat: Remove.
8793
8794 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8795
8796 * features/Makefile (XMLTOC): Remove rx.xml.
8797
8798 2020-06-17 Pedro Alves <palves@redhat.com>
8799
8800 * gdbthread.h (thread_control_state) <trap_expected> Update
8801 comments.
8802
8803 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8804
8805 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8806 ada_language::lookup_symbol_nonlocal.
8807 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8808 (ada_language::lookup_symbol_nonlocal): New member function,
8809 implementation from ada_lookup_symbol_nonlocal.
8810 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8811 initializer.
8812 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8813 initializer.
8814 (cplus_language::lookup_symbol_nonlocal): New member function.
8815 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8816 (minimal_language_data) Likewise.
8817 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8818 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8819 initializer.
8820 (d_language::lookup_symbol_nonlocal): New member function.
8821 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8822 initializer.
8823 (f_language::lookup_symbol_nonlocal): New member function.
8824 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8825 initializer.
8826 * language.c (unknown_language_data): Likewise.
8827 (auto_language_data): Likewise.
8828 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8829 field.
8830 (language_defn::lookup_symbol_nonlocal): New member function.
8831 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8832 initializer.
8833 * objc-lang.c (objc_language_data): Likewise.
8834 * opencl-lang.c (opencl_language_data): Likewise.
8835 * p-lang.c (pascal_language_data): Likewise.
8836 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8837 rust_language::lookup_symbol_nonlocal.
8838 (rust_language_data): Delete la_lookup_symbol_nonlocal
8839 initializer.
8840 (rust_language::lookup_symbol_nonlocal): New member function,
8841 implementation from rust_lookup_symbol_nonlocal.
8842 * symtab.c (lookup_symbol_aux): Update call to
8843 lookup_symbol_nonlocal.
8844 (basic_lookup_symbol_nonlocal): Rename to...
8845 (language_defn::lookup_symbol_nonlocal): ...this, and update
8846 header comment. Remove language_defn parameter, and replace with
8847 uses of `this'.
8848 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8849
8850 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8853 initializer.
8854 (ada_language::value_print_inner): New member function.
8855 * c-lang.c (c_language_data): Delete la_value_print_inner
8856 initializer.
8857 (cplus_language_data): Likewise.
8858 (asm_language_data): Likewise.
8859 (minimal_language_data): Likewise.
8860 * d-lang.c (d_language_data): Likewise.
8861 (d_language::value_print_inner): New member function.
8862 * f-lang.c (f_language_data): Delete la_value_print_inner
8863 initializer.
8864 (f_language::value_print_inner): New member function.
8865 * f-lang.h (f_value_print_innner): Rename to...
8866 (f_value_print_inner): ...this (note spelling of 'inner').
8867 * f-valprint.c (f_value_print_innner): Rename to...
8868 (f_value_print_inner): ...this (note spelling of 'inner').
8869 * go-lang.c (go_language_data): Delete la_value_print_inner
8870 initializer.
8871 (go_language::value_print_inner): New member function.
8872 * language.c (language_defn::value_print_inner): Define new member
8873 function.
8874 (unk_lang_value_print_inner): Delete.
8875 (unknown_language_data): Delete la_value_print_inner initializer.
8876 (unknown_language::value_print_inner): New member function.
8877 (auto_language_data): Delete la_value_print_inner initializer.
8878 (auto_language::value_print_inner): New member function.
8879 * language.h (language_data): Delete la_value_print_inner field.
8880 (language_defn::value_print_inner): Delcare new member function.
8881 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8882 initializer.
8883 (m2_language::value_print_inner): New member function.
8884 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8885 initializer.
8886 * opencl-lang.c (opencl_language_data): Likewise.
8887 * p-lang.c (pascal_language_data): Likewise.
8888 (pascal_language::value_print_inner): New member function.
8889 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8890 initializer.
8891 (rust_language::value_print_inner): New member function.
8892 * valprint.c (do_val_print): Update call to value_print_inner.
8893
8894 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8895
8896 * ada-lang.c (ada_language_data): Delete la_value_print
8897 initializer.
8898 (ada_language::value_print): New member function.
8899 * c-lang.c (c_language_data): Delete la_value_print initializer.
8900 (cplus_language_data): Likewise.
8901 (asm_language_data): Likewise.
8902 (minimal_language_data): Likewise.
8903 * d-lang.c (d_language_data): Likewise.
8904 * f-lang.c (f_language_data): Likewise.
8905 * go-lang.c (go_language_data): Likewise.
8906 * language.c (unk_lang_value_print): Delete.
8907 (language_defn::value_print): Define new member function.
8908 (unknown_language_data): Delete la_value_print initializer.
8909 (unknown_language::value_print): New member function.
8910 (auto_language_data): Delete la_value_print initializer.
8911 (auto_language::value_print): New member function.
8912 * language.h (language_data): Delete la_value_print field.
8913 (language_defn::value_print): Declare new member function.
8914 (LA_VALUE_PRINT): Update call to value_print.
8915 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8916 * objc-lang.c (objc_language_data): Likewise.
8917 * opencl-lang.c (opencl_language_data): Likewise.
8918 * p-lang.c (pascal_language_data): Likewise.
8919 (pascal_language::value_print): New member function.
8920 * rust-lang.c (rust_language_data): Delete la_value_print
8921 initializer.
8922
8923 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8924
8925 * ada-lang.c (ada_watch_location_expression): Rename to
8926 ada_language::watch_location_expression.
8927 (ada_language_data): Delete la_watch_location_expression
8928 initializer.
8929 (ada_language::watch_location_expression): New member function,
8930 implementation from ada_watch_location_expression.
8931 * breakpoint.c (watch_command_1): Update call to
8932 watch_location_expression.
8933 * c-lang.c (c_watch_location_expression): Rename to
8934 language_defn::watch_location_expression.
8935 (c_language_data): Delete la_watch_location_expression
8936 initializer.
8937 (cplus_language_data): Likewise.
8938 (asm_language_data): Likewise.
8939 (minimal_language_data): Likewise.
8940 * c-lang.h (c_watch_location_expression): Delete declaration.
8941 * d-lang.c (d_language_data): Delete la_watch_location_expression
8942 initializer.
8943 * f-lang.c (f_language_data): Likewise.
8944 * go-lang.c (go_language_data): Likewise.
8945 * language.c (language_defn::watch_location_expression): Member
8946 function implementation from c_watch_location_expression.
8947 (unknown_language_data): Delete la_watch_location_expression
8948 initializer.
8949 (auto_language_data): Likewise.
8950 * language.h (language_data): Delete la_watch_location_expression
8951 field.
8952 (language_defn::watch_location_expression): Declare new member
8953 function.
8954 * m2-lang.c (m2_language_data): Delete
8955 la_watch_location_expression initializer.
8956 * objc-lang.c (objc_language_data): Likewise.
8957 * opencl-lang.c (opencl_language_data): Likewise.
8958 * p-lang.c (pascal_language_data): Likewise.
8959 * rust-lang.c (rust_watch_location_expression): Rename to
8960 rust_language::watch_location_expression.
8961 (rust_language_data): Delete la_watch_location_expression
8962 initializer.
8963 (rust_language::watch_location_expression): New member function,
8964 implementation from rust_watch_location_expression.
8965
8966 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8967
8968 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8969 ada_language::collect_symbol_completion_matches.
8970 (ada_language_data): Delete la_collect_symbol_completion_matches
8971 initializer.
8972 (ada_language::collect_symbol_completion_matches): New member
8973 function, implementation from
8974 ada_collect_symbol_completion_matches.
8975 * c-lang.c (c_language_data): Delete
8976 la_collect_symbol_completion_matches initializer.
8977 (cplus_language_data): Likewise.
8978 (asm_language_data): Likewise.
8979 (minimal_language_data): Likewise.
8980 * d-lang.c (d_language_data): Likewise.
8981 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8982 f_language::collect_symbol_completion_matches.
8983 (f_language_data): Delete la_collect_symbol_completion_matches
8984 initializer.
8985 (f_language::collect_symbol_completion_matches) New member
8986 function, implementation from f_collect_symbol_completion_matches.
8987 * go-lang.c (go_language_data): Delete
8988 la_collect_symbol_completion_matches initializer.
8989 * language.c (unknown_language_data): Likewise.
8990 (auto_language_data): Likewise.
8991 * language.h (language_data): Delete
8992 la_collect_symbol_completion_matches field.
8993 (language_defn::collect_symbol_completion_matches): New member
8994 function.
8995 * m2-lang.c (m2_language_data): Delete
8996 la_collect_symbol_completion_matches initializer.
8997 * objc-lang.c (objc_language_data): Likewise.
8998 * opencl-lang.c (opencl_language_data): Likewise.
8999 * p-lang.c (pascal_language_data): Likewise.
9000 * rust-lang.c (rust_language_data): Likewise.
9001 * symtab.c (default_collect_symbol_completion_matches): Delete.
9002 (collect_symbol_completion_matches): Update call to
9003 collect_symbol_completion_matches.
9004 (collect_symbol_completion_matches_type): Likewise.
9005 * symtab.h (default_collect_symbol_completion_matches): Delete
9006 declaration.
9007
9008 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9011 (ada_language_data): Delete la_word_break_characters initializer.
9012 (ada_language::word_break_characters): New member function.
9013 * c-lang.c (c_language_data): Delete la_word_break_characters
9014 initializer.
9015 (cplus_language_data): Likewise.
9016 (asm_language_data): Likewise.
9017 (minimal_language_data): Likewise.
9018 * completer.c: Update global comment.
9019 (advance_to_expression_complete_word_point): Update call to
9020 word_break_characters.
9021 (complete_files_symbols): Likewise.
9022 (complete_line_internal_1): Likewise.
9023 (default_completer_handle_brkchars): Likewise.
9024 (skip_quoted_chars): Likewise.
9025 * d-lang.c (d_language_data): Delete la_word_break_characters
9026 initializer.
9027 * f-lang.c (f_word_break_characters): Delete.
9028 (f_language_data): Delete la_word_break_characters initializer.
9029 (f_language::word_break_characters): New member function.
9030 * go-lang.c (go_language_data): Delete la_word_break_characters
9031 initializer.
9032 * language.c (unknown_language_data): Likewise.
9033 (auto_language_data): Likewise.
9034 * language.h (default_word_break_characters): Move declaration to
9035 earlier in the file.
9036 (language_data): Delete la_word_break_characters field.
9037 (language_defn::word_break_characters): New member function.
9038 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9039 initializer.
9040 * objc-lang.c (objc_language_data): Likewise.
9041 * opencl-lang.c (opencl_language_data): Likewise.
9042 * p-lang.c (pascal_language_data): Likewise.
9043 * rust-lang.c (rust_language_data): Likewise.
9044
9045 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9046
9047 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9048 (ada_language_data): Delete la_get_symbol_name_matcher
9049 initializer.
9050 (language_defn::get_symbol_name_matcher_inner): New member
9051 function.
9052 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9053 initializer.
9054 (cplus_language_data): Likewise.
9055 (cplus_language::get_symbol_name_matcher_inner): New member
9056 function.
9057 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9058 (minimal_language_data): Likewise.
9059 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9060 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9061 initializer.
9062 * dictionary.c (iter_match_first_hashed): Update call to
9063 get_symbol_name_matcher.
9064 (iter_match_next_hashed): Likewise.
9065 (iter_match_next_linear): Likewise.
9066 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9067 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9068 initializer.
9069 (f_language::get_symbol_name_matcher_inner): New member function.
9070 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9071 initializer.
9072 * language.c (default_symbol_name_matcher): Update header comment,
9073 make static.
9074 (language_defn::get_symbol_name_matcher): New definition.
9075 (language_defn::get_symbol_name_matcher_inner): Likewise.
9076 (get_symbol_name_matcher): Delete.
9077 (unknown_language_data): Delete la_get_symbol_name_matcher
9078 initializer.
9079 (auto_language_data): Likewise.
9080 * language.h (language_data): Delete la_get_symbol_name_matcher
9081 field.
9082 (language_defn::get_symbol_name_matcher): New member function.
9083 (language_defn::get_symbol_name_matcher_inner): Likewise.
9084 (default_symbol_name_matcher): Delete declaration.
9085 * linespec.c (find_methods): Update call to
9086 get_symbol_name_matcher.
9087 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9088 initializer.
9089 * minsyms.c (lookup_minimal_symbol): Update call to
9090 get_symbol_name_matcher.
9091 (iterate_over_minimal_symbols): Likewise.
9092 * objc-lang.c (objc_language_data): Delete
9093 la_get_symbol_name_matcher initializer.
9094 * opencl-lang.c (opencl_language_data): Likewise.
9095 * p-lang.c (pascal_language_data): Likewise.
9096 * psymtab.c (psymbol_name_matches): Update call to
9097 get_symbol_name_matcher.
9098 * rust-lang.c (rust_language_data): Delete
9099 la_get_symbol_name_matcher initializer.
9100 * symtab.c (symbol_matches_search_name): Update call to
9101 get_symbol_name_matcher.
9102 (compare_symbol_name): Likewise.
9103
9104 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9105
9106 * ada-lang.c (ada_language_data): Delete la_compute_program
9107 initializer.
9108 * c-lang.c (c_language_data): Likewise.
9109 (c_language::compute_program): New member function.
9110 (cplus_language_data): Delete la_compute_program initializer.
9111 (cplus_language::compute_program): New member function.
9112 (asm_language_data): Delete la_compute_program initializer.
9113 (minimal_language_data): Likewise.
9114 * c-lang.h (c_compute_program): Update comment.
9115 (cplus_compute_program): Likewise.
9116 * compile/compile-c-support.c (c_compute_program): Likewise.
9117 (cplus_compute_program): Likewise.
9118 * compile/compile.c (compile_to_object): Update call to
9119 la_compute_program.
9120 * d-lang.c (d_language_data): Delete la_compute_program
9121 initializer.
9122 * f-lang.c (f_language_data): Likewise.
9123 * go-lang.c (go_language_data): Likewise.
9124 * language.c (unknown_language_data): Likewise.
9125 (auto_language_data): Likewise.
9126 * language.h (language_data): Delete la_compute_program field.
9127 (language_defn::compute_program): New member function.
9128 * m2-lang.c (m2_language_data): Delete la_compute_program
9129 initializer.
9130 * objc-lang.c (objc_language_data): Likewise.
9131 * opencl-lang.c (opencl_language_data): Likewise.
9132 * p-lang.c (pascal_language_data): Likewise.
9133 * rust-lang.c (rust_language_data): Likewise.
9134
9135 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9136
9137 * ada-lang.c (ada_language_data) Delete
9138 la_class_name_from_physname initializer.
9139 * c-lang.c (c_language_data): Likewise.
9140 (cplus_language_data): Likewise.
9141 (cplus_language::class_name_from_physname): New member function.
9142 (asm_language_data): Delete la_class_name_from_physname
9143 initializer.
9144 (minimal_language_data): Likewise.
9145 * d-lang.c (d_language_data): Likewise.
9146 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9147 method on language_defn class.
9148 (guess_full_die_structure_name): Likewise.
9149 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9150 initializer.
9151 * go-lang.c (go_language_data): Likewise.
9152 * language.c (language_class_name_from_physname): Delete.
9153 (unk_lang_class_name): Delete.
9154 (unknown_language_data): Delete la_class_name_from_physname
9155 initializer.
9156 (auto_language_data): Likewise.
9157 * language.h (language_data): Delete la_class_name_from_physname
9158 field.
9159 (language_defn::class_name_from_physname): New function.
9160 (language_class_name_from_physname): Delete declaration.
9161 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9162 initializer.
9163 * objc-lang.c (objc_language_data): Likewise.
9164 * opencl-lang.c (opencl_language_data): Likewise.
9165 * p-lang.c (pascal_language_data): Likewise.
9166 * rust-lang.c (rust_language_data): Likewise.
9167
9168 2020-06-16 Tom Tromey <tom@tromey.com>
9169
9170 * tui/tui-data.h (STATUS_NAME): New macro.
9171 * tui/tui-layout.c (tui_remove_some_windows)
9172 (initialize_known_windows, tui_register_window)
9173 (tui_layout_split::remove_windows, initialize_layouts)
9174 (tui_new_layout_command): Don't use hard-coded window names.
9175
9176 2020-06-16 Tom Tromey <tom@tromey.com>
9177
9178 PR tui/25348:
9179 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9180 tui_initialize_readline. Only run once. Call rl_initialize.
9181 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9182 tui_initialize_readline.
9183 * tui/tui-io.c (tui_setup_io): Call
9184 tui_ensure_readline_initialized.
9185 * tui/tui-interp.c (tui_interp::init): Update.
9186
9187 2020-06-16 Tom Tromey <tom@tromey.com>
9188
9189 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9190 Also preserve the status window.
9191
9192 2020-06-16 Tom Tromey <tom@tromey.com>
9193
9194 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9195 where m_window==nullptr.
9196
9197 2020-06-15 Tom Tromey <tromey@adacore.com>
9198
9199 * windows-nat.c (windows_nat::handle_output_debug_string):
9200 Update.
9201 (windows_nat::handle_ms_vc_exception): Update.
9202 * target.h (target_read_string): Change API.
9203 * target.c (target_read_string): Change API.
9204 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9205 Update.
9206 * solib-frv.c (frv_current_sos): Update.
9207 * solib-dsbt.c (dsbt_current_sos): Update.
9208 * solib-darwin.c (darwin_current_sos): Update.
9209 * linux-thread-db.c (inferior_has_bug): Update.
9210 * expprint.c (print_subexp_standard): Update.
9211 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9212 (ada_exception_message_1): Update.
9213
9214 2020-06-15 Tom Tromey <tromey@adacore.com>
9215
9216 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9217
9218 2020-06-15 Tom Tromey <tromey@adacore.com>
9219
9220 * valprint.c (read_string): Update comment.
9221 * target.c (MIN): Remove.
9222 (target_read_string): Rewrite.
9223
9224 2020-06-15 Tom Tromey <tromey@adacore.com>
9225
9226 * corefile.c (read_memory_string): Remove.
9227 * ada-valprint.c (ada_value_print_ptr): Update.
9228 * ada-lang.h (ada_tag_name): Change return type.
9229 * ada-lang.c (type_from_tag): Update.
9230 (ada_tag_name_from_tsd): Change return type. Use
9231 target_read_string.
9232 (ada_tag_name): Likewise.
9233 * gdbcore.h (read_memory_string): Don't declare.
9234
9235 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9236
9237 * symtab.c (rbreak_command): Ignore Windows drive colon.
9238
9239 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9240
9241 * NEWS: Mention removed GDBserver host support.
9242
9243 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9244
9245 * features/riscv/rebuild-csr-xml.sh: Updated.
9246
9247 2020-06-11 Tom Tromey <tom@tromey.com>
9248
9249 PR gdb/18318:
9250 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9251
9252 2020-06-09 Jonny Grant <jg@jguk.org>
9253 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9254
9255 * main.c (captured_main_1): Don't print new line after help.
9256 (print_gdb_help): add mailing list and IRC channel information
9257 to --help. Add new lines between items in the footer. Remove
9258 quotes around bug url.
9259
9260 2020-06-11 Keith Seitz <keiths@redhat.com>
9261
9262 PR gdb/21356
9263 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9264 Resolve typedefs for type length calculations.
9265
9266 2020-06-10 Tom de Vries <tdevries@suse.de>
9267
9268 PR ada/24713
9269 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9270 (write_psymbols): Enable .gdb_index for ada.
9271 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9272 ada.
9273
9274 2020-06-10 Tom de Vries <tdevries@suse.de>
9275
9276 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9277 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9278 namei" instead of "const char *name" argument.
9279 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9280 dw2_symtab_iter_init.
9281
9282 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9283
9284 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9285 to use type::field and field::type instead.
9286
9287 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9290 to use field::type instead.
9291
9292 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9293
9294 * gdbtypes.h (struct field) <type, set_type>: New methods.
9295 Rename `type` field to...
9296 <m_type>: ... this. Change references throughout to use type or
9297 set_type methods.
9298 (FIELD_TYPE): Use field::type. Change call sites that modify
9299 the field's type to use field::set_type instead.
9300
9301 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9302
9303 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9304 to use type::index_type instead.
9305
9306 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9307
9308 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9309 methods.
9310 (TYPE_INDEX_TYPE): Use type::index_type.
9311 * gdbtypes.c (create_array_type_with_stride): Likewise.
9312
9313 2020-06-07 Tom Tromey <tom@tromey.com>
9314
9315 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9316 parameter.
9317 (generic_value_print): Update.
9318
9319 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9320
9321 Revert commit 982a38f60b0.
9322 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9323
9324 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9325
9326 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9327 avoid use after free.
9328
9329 2020-06-05 Tom de Vries <tdevries@suse.de>
9330
9331 * NEWS: Fix typos.
9332
9333 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9334
9335 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9336 the per_bfd object.
9337 (dwarf2_read_debug_names): Likewise.
9338 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9339 object when re-using a per_bfd object with an index.
9340
9341 2020-06-03 Tom de Vries <tdevries@suse.de>
9342
9343 PR symtab/26046
9344 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9345 children for C++.
9346 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9347 DW_TAG_subprogram.
9348
9349 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9350
9351 * ada-lang.c (ada_language_data): Delete skip_trampoline
9352 initializer.
9353 * c-lang.c (c_language_data): Likewise.
9354 (cplus_language_data): Likewise.
9355 (cplus_language::skip_trampoline): New member function.
9356 (asm_language_data): Delete skip_trampoline initializer.
9357 (minimal_language_data): Likewise.
9358 * d-lang.c (d_language_data): Likewise.
9359 * f-lang.c (f_language_data): Likewise.
9360 * go-lang.c (go_language_data): Likewise.
9361 * language.c (unk_lang_trampoline): Delete function.
9362 (skip_language_trampoline): Update.
9363 (unknown_language_data): Delete skip_trampoline initializer.
9364 (auto_language_data): Likewise.
9365 * language.h (language_data): Delete skip_trampoline field.
9366 (language_defn::skip_trampoline): New function.
9367 * m2-lang.c (m2_language_data): Delete skip_trampoline
9368 initializer.
9369 * objc-lang.c (objc_skip_trampoline): Delete function, move
9370 implementation to objc_language::skip_trampoline.
9371 (objc_language_data): Delete skip_trampoline initializer.
9372 (objc_language::skip_trampoline): New member function with
9373 implementation from objc_skip_trampoline.
9374 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9375 initializer.
9376 * p-lang.c (pascal_language_data): Likewise.
9377 * rust-lang.c (rust_language_data): Likewise.
9378
9379 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9380
9381 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9382 (ada_language::demangle): New member function.
9383 * c-lang.c (c_language_data): Delete la_demangle initializer.
9384 (cplus_language_data): Delete la_demangle initializer.
9385 (cplus_language::demangle): New member function.
9386 (asm_language_data): Delete la_demangle initializer.
9387 (minimal_language_data): Delete la_demangle initializer.
9388 * d-lang.c (d_language_data): Delete la_demangle initializer.
9389 (d_language::demangle): New member function.
9390 * f-lang.c (f_language_data): Delete la_demangle initializer.
9391 (f_language::demangle): New member function.
9392 * go-lang.c (go_language_data): Delete la_demangle initializer.
9393 (go_language::demangle): New member function.
9394 * language.c (language_demangle): Update.
9395 (unk_lang_demangle): Delete.
9396 (unknown_language_data): Delete la_demangle initializer.
9397 (unknown_language::demangle): New member function.
9398 (auto_language_data): Delete la_demangle initializer.
9399 (auto_language::demangle): New member function.
9400 * language.h (language_data): Delete la_demangle field.
9401 (language_defn::demangle): New function.
9402 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9403 * objc-lang.c (objc_language_data): Delete la_demangle
9404 initializer.
9405 (objc_language::demangle): New member function.
9406 * opencl-lang.c (opencl_language_data): Delete la_demangle
9407 initializer.
9408 * p-lang.c (pascal_language_data): Likewise.
9409 * rust-lang.c (rust_language_data): Likewise.
9410 (rust_language::demangle): New member function.
9411
9412 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9413
9414 * ada-lang.c (ada_language_data): Delete la_print_type
9415 initializer.
9416 (ada_language::print_type): New member function.
9417 * c-lang.c (c_language_data): Delete la_print_type initializer.
9418 (c_language::print_type): New member function.
9419 (cplus_language_data): Delete la_print_type initializer.
9420 (cplus_language::print_type): New member function.
9421 (asm_language_data): Delete la_print_type initializer.
9422 (asm_language::print_type): New member function.
9423 (minimal_language_data): Delete la_print_type initializer.
9424 (minimal_language::print_type): New member function.
9425 * d-lang.c (d_language_data): Delete la_print_type initializer.
9426 (d_language::print_type): New member function.
9427 * f-lang.c (f_language_data): Delete la_print_type initializer.
9428 (f_language::print_type): New member function.
9429 * go-lang.c (go_language_data): Delete la_print_type initializer.
9430 (go_language::print_type): New member function.
9431 * language.c (unk_lang_print_type): Delete.
9432 (unknown_language_data): Delete la_print_type initializer.
9433 (unknown_language::print_type): New member function.
9434 (auto_language_data): Delete la_print_type initializer.
9435 (auto_language::print_type): New member function.
9436 * language.h (language_data): Delete la_print_type field.
9437 (language_defn::print_type): New function.
9438 (LA_PRINT_TYPE): Update.
9439 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9440 (m2_language::print_type): New member function.
9441 * objc-lang.c (objc_language_data): Delete la_print_type
9442 initializer.
9443 (objc_language::print_type): New member function.
9444 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9445 to opencl_language::print_type.
9446 (opencl_language_data): Delete la_print_type initializer.
9447 (opencl_language::print_type): New member function, implementation
9448 from opencl_print_type.
9449 * p-lang.c (pascal_language_data): Delete la_print_type
9450 initializer.
9451 (pascal_language::print_type): New member function.
9452 * rust-lang.c (rust_print_type): Delete, implementation moved to
9453 rust_language::print_type.
9454 (rust_language_data): Delete la_print_type initializer.
9455 (rust_language::print_type): New member function, implementation
9456 from rust_print_type.
9457
9458 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9459
9460 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9461 implementation moves to...
9462 (ada_language::sniff_from_mangled_name): ...here. Update return
9463 type.
9464 (ada_language_data): Delete la_sniff_from_mangled_name
9465 initializer.
9466 * c-lang.c (c_language_data): Likewise.
9467 (cplus_language_data): Likewise.
9468 (cplus_language::sniff_from_mangled_name): New member function,
9469 implementation taken from gdb_sniff_from_mangled_name.
9470 (asm_language_data): Delete la_sniff_from_mangled_name
9471 initializer.
9472 (minimal_language_data): Likewise.
9473 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9474 implementation moves to cplus_language::sniff_from_mangled_name.
9475 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9476 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9477 moves to...
9478 (d_language::sniff_from_mangled_name): ...here.
9479 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9480 * f-lang.c (f_language_data): Likewise.
9481 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9482 moves to...
9483 (go_language::sniff_from_mangled_name): ...here.
9484 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9485 * language.c (language_sniff_from_mangled_name): Delete.
9486 (unknown_language_data): Delete la_sniff_from_mangled_name
9487 initializer.
9488 (auto_language_data): Likewise.
9489 * language.h (language_data): Delete la_sniff_from_mangled_name
9490 field.
9491 (language_defn::sniff_from_mangled_name): New function.
9492 (language_sniff_from_mangled_name): Delete declaration.
9493 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9494 field.
9495 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9496 implementation moves to...
9497 (objc_language::sniff_from_mangled_name): ...here.
9498 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9499 * opencl-lang.c (opencl_language_data): Likewise.
9500 * p-lang.c (pascal_language_data): Likewise.
9501 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9502 implementation moves to...
9503 (rust_language::sniff_from_mangled_name): ...here.
9504 (rust_language_data): Delete la_sniff_from_mangled_name
9505 initializer.
9506 * symtab.c (symbol_find_demangled_name): Call
9507 sniff_from_mangled_name member function.
9508
9509 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9510
9511 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9512 initializer.
9513 * c-lang.c (c_language_data): Likewise.
9514 (cplus_language_data): Likewise.
9515 (cplus_language::search_name_hash): New member function.
9516 (asm_language_data): Delete la_search_name_hash initializer.
9517 (minimal_language_data): Likewise.
9518 * d-lang.c (d_language_data): Likewise.
9519 * dictionary.c (default_search_name_hash): Rename to...
9520 (language_defn::search_name_hash): ...this.
9521 * f-lang.c (f_language_data): Likewise.
9522 (f_language::search_name_hash): New member function.
9523 * go-lang.c (go_language_data): Delete la_search_name_hash
9524 initializer.
9525 * language.c (unknown_language_data): Likewise.
9526 (auto_language_data): Likewise.
9527 * language.h (struct language_data): Delete la_search_name_hash
9528 field.
9529 (language_defn::search_name_hash): Declare new member function.
9530 (default_search_name_hash): Delete declaration.
9531 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9532 initializer.
9533 * objc-lang.c (objc_language_data): Likewise.
9534 * opencl-lang.c (opencl_language_data): Likewise.
9535 * p-lang.c (pascal_language_data): Likewise.
9536 * rust-lang.c (rust_language_data): Likewise.
9537 * symtab.c (search_name_hash): Update call.
9538
9539 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9540
9541 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9542 initializer.
9543 * c-lang.c (class compile_instance): Declare.
9544 (c_language_data): Delete la_get_compile_instance initializer.
9545 (c_language::get_compile_instance): New member function.
9546 (cplus_language_data): Delete la_get_compile_instance initializer.
9547 (cplus_language::get_compile_instance): New member function.
9548 (asm_language_data): Delete la_get_compile_instance initializer.
9549 (minimal_language_data): Likewise.
9550 * c-lang.h (c_get_compile_context): Update comment.
9551 (cplus_get_compile_context): Update comment.
9552 * compile/compile.c (compile_to_object): Update calls, don't rely
9553 on function pointer being NULL.
9554 * d-lang.c (d_language_data): Delete la_get_compile_instance
9555 initializer.
9556 * f-lang.c (f_language_data): Likewise.
9557 * go-lang.c (go_language_data): Likewise.
9558 * language.c (unknown_language_data): Likewise.
9559 (auto_language_data): Likewise.
9560 * language.h (language_data): Delete la_get_compile_instance field.
9561 (language_defn::get_compile_instance): New member function.
9562 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9563 initializer.
9564 * objc-lang.c (objc_language_data): Likewise.
9565 * opencl-lang.c (opencl_language_data): Likewise.
9566 * p-lang.c (pascal_language_data): Likewise.
9567 * rust-lang.c (rust_language_data): Likewise.
9568
9569 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9570
9571 * ada-lang.c (ada_add_all_symbols): Update comment.
9572 (ada_iterate_over_symbols): Delete, move implementation to...
9573 (ada_language::iterate_over_symbols): ...here, a new member
9574 function, rewrite to use range based for loop.
9575 (ada_language_data): Delete la_iterate_over_symbols initializer.
9576 * c-lang.c (c_language_data): Likewise.
9577 (cplus_language_data): Likewise.
9578 (asm_language_data): Likewise.
9579 (minimal_language_data): Likewise.
9580 * d-lang.c (d_language_data): Likewise.
9581 * f-lang.c (f_language_data): Likewise.
9582 * go-lang.c (go_language_data): Likewise.
9583 * language.c (unknown_language_data): Likewise.
9584 (auto_language_data): Likewise.
9585 * language.h (language_data): Delete la_iterate_over_symbols field.
9586 (language_defn::iterate_over_symbols): New member function.
9587 (LA_ITERATE_OVER_SYMBOLS): Update.
9588 * linespec.c (iterate_over_all_matching_symtabs): Update.
9589 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9590 initializer.
9591 * objc-lang.c (objc_language_data): Likewise.
9592 * opencl-lang.c (opencl_language_data): Likewise.
9593 * p-lang.c (pascal_language_data): Likewise.
9594 * rust-lang.c (rust_language_data): Likewise.
9595
9596 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9597
9598 * ada-lang.c (ada_language_data): Delete
9599 la_lookup_transparent_type initializer.
9600 * c-lang.c (c_language_data): Likewise.
9601 (cplus_language_data): Likewise.
9602 (cplus_language::lookup_transparent_type): New member function.
9603 (asm_language_data): Delete la_lookup_transparent_type
9604 initializer.
9605 (minimal_language_data): Likewise.
9606 * d-lang.c (d_language_data): Likewise.
9607 * f-lang.c (f_language_data): Likewise.
9608 * go-lang.c (go_language_data): Likewise.
9609 * language.c (unknown_language_data): Likewise.
9610 (auto_language_data): Likewise.
9611 * language.h (struct language_data): Delete
9612 la_lookup_transparent_type field.
9613 (language_defn::lookup_transparent_type): New member function.
9614 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9615 initializer.
9616 * objc-lang.c (objc_language_data): Likewise.
9617 * opencl-lang.c (opencl_language_data): Likewise.
9618 * p-lang.c (pascal_language_data): Likewise.
9619 * rust-lang.c (rust_language_data): Likewise.
9620 * symtab.c (symbol_matches_domain): Update call.
9621
9622 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9623
9624 * ada-lang.c (ada_language_arch_info): Delete function, move
9625 implementation to...
9626 (ada_language::language_arch_info): ...here, a new member
9627 function.
9628 (ada_language_data): Delete la_language_arch_info.
9629 * c-lang.c (c_language_data): Likewise.
9630 (c_language::language_arch_info): New member function.
9631 (cplus_language_arch_info): Delete function, move
9632 implementation to...
9633 (cplus_language::language_arch_info): ...here, a new member
9634 function.
9635 (cplus_language_data): Delete la_language_arch_info.
9636 (asm_language_data): Likewise.
9637 (asm_language::language_arch_info): New member function.
9638 (minimal_language_data): Delete la_language_arch_info.
9639 (minimal_language::language_arch_info): New member function.
9640 * d-lang.c (d_language_arch_info): Delete function, move
9641 implementation to...
9642 (d_language::language_arch_info): ...here, a new member
9643 function.
9644 (d_language_data): Delete la_language_arch_info.
9645 * f-lang.c (f_language_arch_info): Delete function, move
9646 implementation to...
9647 (f_language::language_arch_info): ...here, a new member
9648 function.
9649 (f_language_data): Delete la_language_arch_info.
9650 * go-lang.c (go_language_arch_info): Delete function, move
9651 implementation to...
9652 (go_language::language_arch_info): ...here, a new member
9653 function.
9654 (go_language_data): Delete la_language_arch_info.
9655 * language.c (unknown_language_data): Likewise.
9656 (unknown_language::language_arch_info): New member function.
9657 (auto_language_data): Delete la_language_arch_info.
9658 (auto_language::language_arch_info): New member function.
9659 (language_gdbarch_post_init): Update call to
9660 la_language_arch_info.
9661 * language.h (language_data): Delete la_language_arch_info
9662 function pointer.
9663 (language_defn::language_arch_info): New function.
9664 * m2-lang.c (m2_language_arch_info): Delete function, move
9665 implementation to...
9666 (m2_language::language_arch_info): ...here, a new member
9667 function.
9668 (m2_language_data): Delete la_language_arch_info.
9669 * objc-lang.c (objc_language_arch_info): Delete function, move
9670 implementation to...
9671 (objc_language::language_arch_info): ...here, a new member
9672 function.
9673 (objc_language_data): Delete la_language_arch_info.
9674 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9675 implementation to...
9676 (opencl_language::language_arch_info): ...here, a new member
9677 function.
9678 (opencl_language_data): Delete la_language_arch_info.
9679 * p-lang.c (pascal_language_arch_info): Delete function, move
9680 implementation to...
9681 (pascal_language::language_arch_info): ...here, a new member
9682 function.
9683 (pascal_language_data): Delete la_language_arch_info.
9684 * rust-lang.c (rust_language_arch_info): Delete function, move
9685 implementation to...
9686 (rust_language::language_arch_info): ...here, a new member
9687 function.
9688 (rust_language_data): Delete la_language_arch_info.
9689
9690 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9691
9692 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9693 initializer.
9694 * c-lang.c (c_language_data): Likewise.
9695 (cplus_language_data): Likewise.
9696 (cplus_language::pass_by_reference_info): New method.
9697 (asm_language_data): Delete la_pass_by_reference initializer.
9698 (minimal_language_data): Likewise.
9699 * cp-abi.c (cp_pass_by_reference): Remove use of
9700 default_pass_by_reference.
9701 * d-lang.c (d_language_data): Likewise.
9702 * f-lang.c (f_language_data): Likewise.
9703 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9704 default_pass_by_reference.
9705 * go-lang.c (go_language_data): Likewise.
9706 * language.c (language_pass_by_reference): Update.
9707 (default_pass_by_reference): Delete.
9708 (unknown_language_data): Delete la_pass_by_reference
9709 initializer.
9710 (auto_language_data): Likewise.
9711 * language.h (struct language_data): Delete la_pass_by_reference
9712 field.
9713 (language_defn::pass_by_reference_info): New member function.
9714 (default_pass_by_reference): Delete declaration.
9715 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9716 initializer.
9717 * objc-lang.c (objc_language_data): Likewise.
9718 * opencl-lang.c (opencl_language_data): Likewise.
9719 * p-lang.c (pascal_language_data): Likewise.
9720 * rust-lang.c (rust_language_data): Likewise.
9721
9722 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9723
9724 * ada-lang.c (ada_read_var_value): Delete function, move
9725 implementation to...
9726 (ada_language::read_var_value): ...here.
9727 (ada_language_data): Delete la_read_var_value initializer.
9728 * c-lang.c (c_language_data): Likewise.
9729 (cplus_language_data): Likewise.
9730 (minimal_language_data): Likewise.
9731 * d-lang.c (d_language_data): Likewise.
9732 * f-lang.c (f_language_data): Likewise.
9733 * findvar.c (default_read_var_value): Rename to...
9734 (language_defn::read_var_value): ...this.
9735 * findvar.c (read_var_value): Update header comment, and change to
9736 call member function instead of function pointer.
9737 * go-lang.c (go_language_data): Likewise.
9738 * language.c (unknown_language_data): Delete la_read_var_value
9739 initializer.
9740 (auto_language_data): Likewise.
9741 * language.h (struct language_data): Delete la_read_var_value
9742 field.
9743 (language_defn::read_var_value): New member function.
9744 (default_read_var_value): Delete declaration.
9745 * m2-lang.c (m2_language_data): Delete la_read_var_value
9746 initializer.
9747 * objc-lang.c (objc_language_data): Likewise.
9748 * opencl-lang.c (opencl_language_data): Likewise.
9749 * p-lang.c (pascal_language_data): Likewise.
9750 * rust-lang.c (rust_language_data): Likewise.
9751 * value.h (default_read_var_value): Delete declaration.
9752
9753 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9754
9755 * ada-lang.c (ada_print_array_index): Delete function, move
9756 implementation to...
9757 (ada_language::print_array_index): ...here.
9758 (ada_language_data): Delete la_print_array_index initializer.
9759 * c-lang.c (c_language_data): Likewise.
9760 (cplus_language_data): Likewise.
9761 (minimal_language_data): Likewise.
9762 * d-lang.c (d_language_data): Likewise.
9763 * f-lang.c (f_language_data): Likewise.
9764 * go-lang.c (go_language_data): Likewise.
9765 * language.c (default_print_array_index): Delete function, move
9766 implementation to...
9767 (language_defn::print_array_index): ...here.
9768 (unknown_language_data): Delete la_print_array_index initializer.
9769 (auto_language_data): Likewise.
9770 * language.h (struct language_data): Delete la_print_array_index
9771 field.
9772 (language_defn::print_array_index): New member function.
9773 (LA_PRINT_ARRAY_INDEX): Update.
9774 (default_print_array_index): Delete declaration.
9775 * m2-lang.c (m2_language_data): Delete la_print_array_index
9776 initializer.
9777 * objc-lang.c (objc_language_data): Likewise.
9778 * opencl-lang.c (opencl_language_data): Likewise.
9779 * p-lang.c (pascal_language_data): Likewise.
9780 * rust-lang.c (rust_language_data): Likewise.
9781
9782 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9783
9784 * gdb/ada-lang.c (ada_language_defn): Convert to...
9785 (ada_language_data): ...this.
9786 (class ada_language): New class.
9787 (ada_language_defn): New static global.
9788 * gdb/c-lang.c (c_language_defn): Convert to...
9789 (c_language_data): ...this.
9790 (class c_language): New class.
9791 (c_language_defn): New static global.
9792 (cplus_language_defn): Convert to...
9793 (cplus_language_data): ...this.
9794 (class cplus_language): New class.
9795 (cplus_language_defn): New static global.
9796 (asm_language_defn): Convert to...
9797 (asm_language_data): ...this.
9798 (class asm_language): New class.
9799 (asm_language_defn): New static global.
9800 (minimal_language_defn): Convert to...
9801 (minimal_language_data): ...this.
9802 (class minimal_language): New class.
9803 (minimal_language_defn): New static global.
9804 * gdb/d-lang.c (d_language_defn): Convert to...
9805 (d_language_data): ...this.
9806 (class d_language): New class.
9807 (d_language_defn): New static global.
9808 * gdb/f-lang.c (f_language_defn): Convert to...
9809 (f_language_data): ...this.
9810 (class f_language): New class.
9811 (f_language_defn): New static global.
9812 * gdb/go-lang.c (go_language_defn): Convert to...
9813 (go_language_data): ...this.
9814 (class go_language): New class.
9815 (go_language_defn): New static global.
9816 * gdb/language.c (unknown_language_defn): Remove declaration.
9817 (current_language): Initialize to nullptr, real initialization is
9818 moved to _initialize_language.
9819 (languages): Delete global.
9820 (language_defn::languages): Define.
9821 (set_language_command): Use language_defn::languages.
9822 (set_language): Likewise.
9823 (range_error): Likewise.
9824 (language_enum): Likewise.
9825 (language_def): Likewise.
9826 (add_set_language_command): Use language_def::languages for the
9827 language list, and language_def to lookup language pointers.
9828 (skip_language_trampoline): Use language_defn::languages.
9829 (unknown_language_defn): Convert to...
9830 (unknown_language_data): ...this.
9831 (class unknown_language): New class.
9832 (unknown_language_defn): New static global.
9833 (auto_language_defn): Convert to...
9834 (auto_language_data): ...this.
9835 (class auto_language): New class.
9836 (auto_language_defn): New static global.
9837 (language_gdbarch_post_init): Use language_defn::languages.
9838 (_initialize_language): Initialize current_language.
9839 * gdb/language.h (struct language_defn): Rename to...
9840 (struct language_data): ...this.
9841 (struct language_defn): New.
9842 (auto_language_defn): Delete.
9843 (unknown_language_defn): Delete.
9844 (minimal_language_defn): Delete.
9845 (ada_language_defn): Delete.
9846 (asm_language_defn): Delete.
9847 (c_language_defn): Delete.
9848 (cplus_language_defn): Delete.
9849 (d_language_defn): Delete.
9850 (f_language_defn): Delete.
9851 (go_language_defn): Delete.
9852 (m2_language_defn): Delete.
9853 (objc_language_defn): Delete.
9854 (opencl_language_defn): Delete.
9855 (pascal_language_defn): Delete.
9856 (rust_language_defn): Delete.
9857 * gdb/m2-lang.c (m2_language_defn): Convert to...
9858 (m2_language_data): ...this.
9859 (class m2_language): New class.
9860 (m2_language_defn): New static global.
9861 * gdb/objc-lang.c (objc_language_defn): Convert to...
9862 (objc_language_data): ...this.
9863 (class objc_language): New class.
9864 (objc_language_defn): New static global.
9865 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9866 (opencl_language_data): ...this.
9867 (class opencl_language): New class.
9868 (opencl_language_defn): New static global.
9869 * gdb/p-lang.c (pascal_language_defn): Convert to...
9870 (pascal_language_data): ...this.
9871 (class pascal_language): New class.
9872 (pascal_language_defn): New static global.
9873 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9874 language pointer, update comment format.
9875 * gdb/rust-lang.c (rust_language_defn): Convert to...
9876 (rust_language_data): ...this.
9877 (class rust_language): New class.
9878 (rust_language_defn): New static global.
9879
9880 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9881
9882 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9883 member variable.
9884 <m_stmt_at_address>: New member variable.
9885 (lnp_state_machine::record_line): Don't record some lines, update
9886 tracking of is_stmt at the same address.
9887 (lnp_state_machine::lnp_state_machine): Initialise new member
9888 variables.
9889
9890 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9891
9892 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9893 "-include gnu-nat-mig.h".
9894 * gnu-nat-mig.h: New file.
9895 * gnu-nat.c: Include "gnu-nat-mig.h".
9896 (exc_server, msg_reply_server, notify_server,
9897 process_reply_server): Remove declarations.
9898
9899 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9900
9901 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9902 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9903 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9904 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9905 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9906 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9907 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9908 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9909 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9910 to gnu_nat_target class.
9911 * gnu-nat.c: Likewise.
9912 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9913 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9914 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9915 object.
9916 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9917 instead of `gnu_target'.
9918
9919 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9920
9921 * i386-gnu-tdep.c: Include "gdbcore.h"
9922 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9923 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9924 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9925 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9926 i386_gnu_sigcontext_addr): New functions
9927 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9928 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9929 tdep.
9930
9931 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9932
9933 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9934 before fork_inferior call. Avoid calling it if target_is_pushed returns
9935 true.
9936
9937 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9938
9939 * gnu-nat.h (gnu_target): New variable declaration.
9940 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9941 gnu_target.
9942 * gnu-nat.c (gnu_target): New variable.
9943 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9944 add_thread_silent, and add_thread calls.
9945 (gnu_nat_target::create_inferior): Pass gnu_target to
9946 add_thread_silent, thread_change_ptid call.
9947 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9948 call.
9949
9950 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9951
9952 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9953 (gnu_nat_target::find_memory_regions): Remove unused
9954 `old_address' variable.
9955
9956 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9957
9958 * gnu-nat.c: Include "gdbarch.h".
9959
9960 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9961
9962 * reply_mig_hack.awk (Error return): Cast function through
9963 void *, to bypass compiler function call check.
9964
9965 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9966
9967 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9968 $(srcdir)/reply_mig_hack.awk.
9969
9970 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9971
9972 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9973
9974 2020-05-30 Jonny Grant <jg@jguk.org>
9975
9976 * configure.ac (ACX_BUGURL): change bug URL to https.
9977
9978 2020-05-30 Pedro Alves <palves@redhat.com>
9979
9980 * cp-support.c (replace_typedefs_template): New.
9981 (replace_typedefs_qualified_name): Handle
9982 DEMANGLE_COMPONENT_TEMPLATE.
9983
9984 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9985
9986 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9987 dwarf2/index-cache.h, dwarf2/index-write.c,
9988 dwarf2/index-write.h, dwarf2/line-header.c,
9989 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9990 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9991 variables and fields from `dwarf2_per_objfile` to just
9992 `per_objfile` throughout.
9993
9994 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9995
9996 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9997 <push_dwarf_reg_entry_value>: Add comment.
9998
9999 2020-05-28 Kevin Buettner <kevinb@redhat.com>
10000 Keith Seitz <keiths@redhat.com>
10001
10002 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10003 instead of PyEval_ReleaseLock.
10004 (class gdbpy_gil): Move to earlier in file.
10005 (finalize_python): Set gdb_python_initialized.
10006 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10007 when not initialized.
10008
10009 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10012 <push_dwarf_reg_entry_value>: Remove assert. Override
10013 per_objfile with caller_per_objfile.
10014
10015 2020-05-28 Tom de Vries <tdevries@suse.de>
10016
10017 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10018 PR gold/15646 workaround to symbol kind "type".
10019
10020 2020-05-27 Tom Tromey <tromey@adacore.com>
10021
10022 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10023
10024 2020-05-27 Tom Tromey <tromey@adacore.com>
10025
10026 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10027 Use htab_find_with_hash.
10028 <add_abbrev>: Remove "abbrev_number" parameter.
10029 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10030 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10031 (hash_abbrev): Add comment.
10032 (abbrev_table::lookup_abbrev): Move to header file.
10033 (abbrev_table::read): Update.
10034
10035 2020-05-27 Tom Tromey <tromey@adacore.com>
10036
10037 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10038 method.
10039 <canonical_name>: New member.
10040 <raw_name>: Rename from "name".
10041 (partial_die_info): Initialize canonical_name.
10042 (scan_partial_symbols): Check raw_name.
10043 (partial_die_parent_scope, partial_die_full_name)
10044 (add_partial_symbol, add_partial_subprogram)
10045 (add_partial_enumeration, load_partial_dies): Use "name" method.
10046 (partial_die_info::name): New method.
10047 (partial_die_info::read, guess_partial_die_structure_name)
10048 (partial_die_info::fixup): Update.
10049
10050 2020-05-27 Tom Tromey <tromey@adacore.com>
10051
10052 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10053 <get_ref_die_offset>: Inline.
10054 <get_ref_die_offset_complaint>: New method.
10055 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10056 (attribute::get_ref_die_offset_complaint): Rename from
10057 get_ref_die_offset. Just issue complaint.
10058
10059 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10060
10061 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10062
10063 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10064
10065 * exec.c (exec_file_attach): Use errno value of first openp failure.
10066
10067 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10068
10069 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10070 Don't close thread handle.
10071
10072 2020-05-27 Tom Tromey <tom@tromey.com>
10073 Simon Marchi <simon.marchi@efficios.com>
10074
10075 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10076 shared_ptr.
10077 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10078 member.
10079 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10080 dwarf2_per_bfd_objfile_data_key>: New globals.
10081 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10082 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10083 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10084 shared.
10085 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10086 short-circuit when sharing.
10087 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10088 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10089
10090 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10091
10092 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10093 to...
10094 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10095 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10096
10097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10098
10099 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10100 build_name_components, find_name_components_bounds>:
10101 Add per_objfile parameter.
10102 (struct mapped_index) <symbol_name_at>: Likewise.
10103 (struct mapped_debug_names): Remove constructor.
10104 <dwarf2_per_objfile>: Remove field.
10105 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10106 (mapped_index_base::find_name_components_bounds,
10107 mapped_index_base::build_name_components,
10108 dw2_expand_symtabs_matching_symbol): Likewise.
10109 (class mock_mapped_index) <symbol_name_at>: Likewise.
10110 (check_match): Likewise.
10111 (check_find_bounds_finds): Likewise.
10112 (test_mapped_index_find_name_component_bounds): Update.
10113 (CHECK_MATCH): Update.
10114 (dw2_expand_symtabs_matching): Update.
10115 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10116 per_objfile parameter.
10117 <find_vec_in_debug_names>: Likewise.
10118 <m_per_objfile>: New field.
10119 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10120 parameter.
10121 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10122 (dw2_debug_names_iterator::next): Update.
10123 (dw2_debug_names_lookup_symbol): Update.
10124 (dw2_debug_names_expand_symtabs_for_function): Update.
10125 (dw2_debug_names_map_matching_symbols): Update.
10126 (dw2_debug_names_expand_symtabs_matching): Update.
10127 (dwarf2_read_debug_names): Update.
10128
10129 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10130
10131 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10132 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10133 move to dwarf2_per_objfile.
10134 <read_in_chain>: Remove.
10135 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10136 remove_all_cus, age_comp_units>: New methods.
10137 <m_dwarf2_cus>: New member.
10138 (struct dwarf2_per_cu_data) <cu>: Remove.
10139 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10140 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10141 moved to methods of dwarf2_per_objfile.
10142 (dwarf2_clear_marks): Remove.
10143 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10144 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10145 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10146 (dwarf2_per_objfile::remove_all_cus): New.
10147 (class free_cached_comp_units) <~free_cached_comp_units>:
10148 Update.
10149 (load_cu): Update.
10150 (dw2_do_instantiate_symtab): Adjust.
10151 (fill_in_sig_entry_from_dwo_entry): Adjust.
10152 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10153 (cutu_reader::cutu_reader): Likewise.
10154 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10155 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10156 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10157 and dwarf2_per_objfile::age_comp_units.
10158 (load_partial_comp_unit): Update.
10159 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10160 (process_queue): Likewise.
10161 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10162 backlink.
10163 (dwarf2_read_addr_index): Likewise.
10164 (follow_die_offset): Likewise.
10165 (dwarf2_fetch_die_loc_sect_off): Likewise.
10166 (dwarf2_fetch_constant_bytes): Likewise.
10167 (dwarf2_fetch_die_type_sect_off): Likewise.
10168 (follow_die_sig_1): Likewise.
10169 (load_full_type_unit): Likewise.
10170 (read_signatured_type): Likewise.
10171 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10172 (dwarf2_cu::~dwarf2_cu): Remove.
10173 (dwarf2_per_objfile::get_cu): New.
10174 (dwarf2_per_objfile::set_cu): New.
10175 (age_cached_comp_units): Rename to...
10176 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10177 to std::unordered_map.
10178 (free_one_cached_comp_unit): Rename to...
10179 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10180 to std::unordered_map.
10181 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10182 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10183 a dwarf2_per_objfile in data.
10184 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10185 (dwarf2_clear_marks): Remove.
10186
10187 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10188
10189 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10190 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10191 (init_tu_and_read_dwo_dies): Likewise.
10192 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10193 (cutu_reader::cutu_reader): Likewise.
10194 (load_partial_comp_unit): Likewise.
10195 (process_psymtab_comp_unit): Update.
10196 (build_type_psymtabs_1): Update.
10197 (process_skeletonless_type_unit): Update.
10198 (load_full_comp_unit): Update.
10199 (find_partial_die): Update.
10200 (dwarf2_read_addr_index): Update.
10201 (read_signatured_type): Update.
10202
10203 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10204
10205 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10206 m_header_read_in>: New fields.
10207 <get_header>: New method.
10208 * dwarf2/read.c (per_cu_header_read_in): Remove.
10209 (dwarf2_per_cu_data::get_header): New.
10210 (dwarf2_per_cu_data::addr_size): Update.
10211 (dwarf2_per_cu_data::offset_size): Update.
10212 (dwarf2_per_cu_data::ref_addr_size): Update.
10213
10214 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10215
10216 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10217 (dw2_do_instantiate_symtab): Update.
10218 (queue_and_load_all_dwo_tus): Change parameter from
10219 dwarf2_per_cu_data to dwarf2_cu.
10220 (dwarf2_fetch_die_loc_sect_off): Update.
10221 (dwarf2_fetch_constant_bytes): Update.
10222 (dwarf2_fetch_die_type_sect_off): Update.
10223
10224 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10225
10226 * dwarf2/read.c (process_full_comp_unit,
10227 process_full_type_unit): Remove per_cu, per_objfile paramters.
10228 Add dwarf2_cu parameter.
10229 (process_queue): Update.
10230
10231 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10232
10233 * dwarf2/read.c (create_cu_from_index_list): Replace
10234 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10235 (create_cus_from_index_list): Likewise.
10236 (create_cus_from_index): Likewise.
10237 (create_signatured_type_table_from_index): Likewise.
10238 (create_cus_from_debug_names_list): Likewise.
10239 (create_cus_from_debug_names): Likewise.
10240 (dwarf2_read_gdb_index): Update.
10241 (dwarf2_read_debug_names): Update.
10242
10243 2020-05-27 Tom Tromey <tom@tromey.com>
10244 Simon Marchi <simon.marchi@efficios.com>
10245
10246 * dwarf2/read.h (struct dwarf2_per_objfile)
10247 <get_type_for_signatured_type, set_type_for_signatured_type>:
10248 New methods.
10249 <m_type_map>: New member.
10250 (struct signatured_type) <type>: Remove.
10251 * dwarf2/read.c
10252 (dwarf2_per_objfile::get_type_for_signatured_type,
10253 dwarf2_per_objfile::set_type_for_signatured_type): New.
10254 (get_signatured_type): Use new methods.
10255
10256 2020-05-27 Tom Tromey <tom@tromey.com>
10257 Simon Marchi <simon.marchi@efficios.com>
10258
10259 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10260 (struct dwarf2_per_objfile) <type_units>: New member.
10261 <get_type_unit_group_unshareable>: New method.
10262 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10263 num_symtabs, symtabs>: Remove; move to
10264 type_unit_group_unshareable.
10265 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10266 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10267 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10268
10269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * dwarf2/read.h (struct dwarf2_per_cu_data):
10272 <dwarf2_per_objfile>: Remove.
10273 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10274 dwarf2_per_objfile.
10275 (create_signatured_type_table_from_index): Likewise.
10276 (create_signatured_type_table_from_debug_names): Likewise.
10277 (create_debug_type_hash_table): Likewise.
10278 (fill_in_sig_entry_from_dwo_entry): Likewise.
10279 (create_type_unit_group): Likewise.
10280 (read_comp_units_from_section): Likewise.
10281 (create_cus_hash_table): Likewise.
10282
10283 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10284
10285 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10286 dwarf2_per_cu_data::dwarf2_per_objfile.
10287 (compute_compunit_symtab_includes): Likewise.
10288 (dwarf2_cu::start_symtab): Likewise.
10289
10290 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10291
10292 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10293 parameter.
10294 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10295 (read_namespace_alias): Update.
10296 (lookup_die_type): Update.
10297 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10298 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10299 Update.
10300 (disassemble_dwarf_expression): Update.
10301
10302 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * dwarf2/read.h (struct dwarf2_queue_item): Add
10305 dwarf2_per_objfile parameter, assign new parameter.
10306 <per_objfile>: New field.
10307 * dwarf2/read.c (free_one_cached_comp_unit): Add
10308 dwarf2_per_objfile parameter.
10309 (queue_comp_unit): Likewise.
10310 (dw2_do_instantiate_symtab): Update.
10311 (process_psymtab_comp_unit): Update.
10312 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10313 (process_imported_unit_die): Update.
10314 (queue_and_load_dwo_tu): Update.
10315 (follow_die_offset): Update.
10316 (follow_die_sig_1): Update.
10317
10318 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10321 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10322 (read_call_site_scope): Assign per_objfile.
10323 (dwarf2_per_cu_data::objfile): Remove.
10324 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10325 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10326 dwarf2_per_objfile parameter.
10327 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10328 dwarf2_per_objfile parameter.
10329 (dwarf_expr_reg_to_entry_parameter): Add output
10330 dwarf2_per_objfile parameter.
10331 (locexpr_get_frame_base): Update.
10332 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10333 <push_dwarf_reg_entry_value>: Update.
10334 <call_site_to_target_addr>: Update.
10335 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10336 parameter.
10337 (value_of_dwarf_reg_entry): Update.
10338 (rw_pieced_value): Update.
10339 (indirect_synthetic_pointer): Update.
10340 (dwarf2_evaluate_property): Update.
10341 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10342 parameter.
10343 (locexpr_read_variable): Update.
10344 (locexpr_get_symbol_read_needs): Update.
10345 (loclist_read_variable): Update.
10346
10347 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10348
10349 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10350 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10351 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10352 parameter.
10353 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10358 sect_variable_value): Add dwarf2_per_objfile parameter.
10359 (class dwarf_evaluate_loc_desc) <dwarf_call,
10360 dwarf_variable_value>: Update.
10361 (fetch_const_value_from_synthetic_pointer): Add
10362 dwarf2_per_objfile parameter.
10363 (fetch_const_value_from_synthetic_pointer): Update.
10364 (coerced_pieced_ref): Update.
10365 (class symbol_needs_eval_context) <dwarf_call,
10366 dwarf_variable_value>: Update.
10367 (dwarf2_compile_expr_to_ax): Update.
10368
10369 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10370
10371 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10372 parameter.
10373 (dwarf2_evaluate_loc_desc_full): Update.
10374
10375 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10376
10377 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10378 parameter.
10379 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10380 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10381 dwarf2_per_objfile parameter.
10382 (decode_debug_loc_dwo_addresses): Likewise.
10383 (dwarf2_find_location_expression): Update.
10384 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10385 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10386 parameter.
10387 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10388 parameter.
10389 (locexpr_describe_location_1): Likewise.
10390 (locexpr_describe_location): Update.
10391
10392 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10395 Remove.
10396 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10397 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10398 (dwarf2_compile_property_to_c): Update.
10399 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10400 use text offset from objfile.
10401 (locexpr_tracepoint_var_ref): Update.
10402 (locexpr_generate_c_location): Update.
10403 (loclist_describe_location): Update.
10404 (loclist_tracepoint_var_ref): Update.
10405 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10406 dwarf2_per_objfile parameter.
10407 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10408 use text offset from objfile.
10409 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10410
10411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * dwarf2/expr.h (struct dwarf_expr_context)
10414 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10415 <offset>: Remove.
10416 <per_objfile>: New member.
10417 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10418 dwarf2_per_objfile parameter. Don't set offset, set
10419 per_objfile.
10420 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10421 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10422 a dwarf2_per_objfile object instead of an offset.
10423 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10424 constructor.
10425 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10426 to dwarf2_expr_executor constructor. Don't set offset.
10427 (dwarf2_fetch_cfa_info): Update.
10428 (struct dwarf2_frame_cache) <text_offset>: Remove.
10429 <per_objfile>: New field.
10430 (dwarf2_frame_cache): Update.
10431 (dwarf2_frame_prev_register): Update.
10432 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10433 <dwarf_evaluate_loc_desc>: Add constructor.
10434 (dwarf2_evaluate_loc_desc_full): Update.
10435 (dwarf2_locexpr_baton_eval): Update.
10436 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10437 Add constructor.
10438 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10439
10440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10441
10442 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10443 addr_sized_int_type>: Move to dwarf2_cu.
10444 <int_type>: Move to dwarf2_per_objfile.
10445 (struct dwarf2_per_objfile) <int_type>: Move here.
10446 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10447 addr_sized_int_type>: Move here.
10448 (read_func_scope): Update.
10449 (read_array_type): Update.
10450 (read_tag_string_type): Update.
10451 (attr_to_dynamic_prop): Update.
10452 (dwarf2_per_cu_data::int_type): Rename to...
10453 (dwarf2_per_objfile::int_type): ... this.
10454 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10455 (dwarf2_cu::addr_sized_int_type): ... this.
10456 (read_subrange_type): Update.
10457 (dwarf2_per_cu_data::addr_type): Rename to...
10458 (dwarf2_cu::addr_type): ... this.
10459 (set_die_type): Update.
10460
10461 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10462
10463 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10464 data through per_cu->cu.
10465
10466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10467
10468 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10469 dwarf2_per_cu_data parameter fo dwarf2_cu.
10470 (lookup_dwo_type_unit): Likewise.
10471 (read_cutu_die_from_dwo): Likewise.
10472 (lookup_dwo_unit): Likewise.
10473 (open_and_init_dwo_file): Likewise.
10474 (lookup_dwo_cutu): Likewise.
10475 (lookup_dwo_comp_unit): Likewise.
10476 (lookup_dwo_type_unit): Likewise.
10477 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10478 (cutu_reader::cutu_reader): Update.
10479
10480 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10483 parameter.
10484 (process_full_type_unit): Likewise.
10485 (process_queue): Update.
10486
10487 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10488
10489 * dwarf2/read.c (recursively_compute_inclusions): Add
10490 dwarf2_per_objfile parameter.
10491 (compute_compunit_symtab_includes): Likewise.
10492 (process_cu_includes): Update.
10493
10494 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10495
10496 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10497 parameter.
10498 (create_type_unit_group): Update.
10499 (process_psymtab_comp_unit_reader): Update.
10500 (build_type_psymtabs_reader): Update.
10501
10502 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10503
10504 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10505 object through m_this_cu->cu.
10506
10507 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10508
10509 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10510 the info parameter.
10511 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10512
10513 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10514
10515 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10516 per_objfile parameter.
10517 (load_full_type_unit): Add per_objfile parameter.
10518 (read_signatured_type): Likewise.
10519 (load_full_comp_unit): Likewise.
10520 (load_cu): Likewise.
10521 (dw2_do_instantiate_symtab): Likewise.
10522 (dw2_get_file_names): Likewise.
10523 (dw2_map_symtabs_matching_filename): Update.
10524 (dw_expand_symtabs_matching_file_matcher): Update.
10525 (dw2_map_symbol_filenames): Update.
10526 (process_psymtab_comp_unit): Add per_objfile parameter.
10527 (build_type_psymtabs_1): Update.
10528 (process_skeletonless_type_unit): Update.
10529 (dwarf2_build_psymtabs_hard): Update.
10530 (load_partial_comp_unit): Add per_objfile parameter.
10531 (scan_partial_symbols): Update.
10532 (load_full_comp_unit): Add per_objfile parameter.
10533 (process_imported_unit_die): Update.
10534 (create_cus_hash_table): Update.
10535 (find_partial_die): Update.
10536 (dwarf2_read_addr_index): Update.
10537 (follow_die_offset): Update.
10538 (dwarf2_fetch_die_loc_sect_off): Update.
10539 (dwarf2_fetch_constant_bytes): Update.
10540 (dwarf2_fetch_die_type_sect_off): Update.
10541 (follow_die_sig_1): Update.
10542 (load_full_type_unit): Add per_objfile parameter.
10543 (read_signatured_type): Likewise.
10544
10545 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10546
10547 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10548 of objfile_name.
10549
10550 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10551
10552 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10553 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10554 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10555 field.
10556 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10557 (create_cus_from_index): Update.
10558 (dwarf2_read_gdb_index): Update.
10559 (create_cus_from_debug_names): Update.
10560 (dwarf2_read_debug_names): Update.
10561 (get_abbrev_section_for_cu): Update.
10562 (create_all_comp_units): Update.
10563 (read_attribute_value): Update.
10564 (get_debug_line_section): Update.
10565 * dwarf2/index-cache.c (index_cache::store): Update.
10566 * dwarf2/index-write.c (save_gdb_index_command): Update.
10567 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10568
10569 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10570
10571 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10572 member.
10573 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10574 dwarf2_per_cu_data::per_bfd.
10575 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10576 (create_type_unit_group): Likewise.
10577 (queue_comp_unit): Remove reference to
10578 per_cu->dwarf2_per_objfile.
10579 (maybe_queue_comp_unit): Likewise.
10580 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10581 (create_cus_hash_table): Assign new field.
10582
10583 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10584
10585 * dwarf2/read.c: Replace
10586 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10587 dwarf2_cu->per_objfile throughout.
10588
10589 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10590
10591 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10592 parameter, don't use per_cu->dwarf2_per_objfile.
10593 (dw2_instantiate_symtab): Likewise.
10594 (dw2_find_last_source_symtab): Update.
10595 (dw2_map_expand_apply): Update.
10596 (dw2_lookup_symbol): Update.
10597 (dw2_expand_symtabs_for_function): Update.
10598 (dw2_expand_all_symtabs): Update.
10599 (dw2_expand_symtabs_with_fullname): Update.
10600 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10601 don't use per_cu->dwarf2_per_objfile.
10602 (dw2_expand_marked_cus): Update.
10603 (dw2_find_pc_sect_compunit_symtab): Update.
10604 (dw2_debug_names_lookup_symbol): Update.
10605 (dw2_debug_names_expand_symtabs_for_function): Update.
10606 (dw2_debug_names_map_matching_symbols): Update.
10607 (dwarf2_psymtab::expand_psymtab): Update.
10608
10609 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10610
10611 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10612 <per_objfile>: New member.
10613 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10614 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10615 call to dwarf2_cu.
10616 (cutu_reader::cutu_reader): Update.
10617 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10618
10619 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10622 struct dwarf2_per_objfile.
10623 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10624 dwarf2_per_bfd.
10625 * dwarf2/read.c (set_die_type): Update.
10626 (get_die_type_at_offset): Update.
10627
10628 2020-05-27 Tom Tromey <tom@tromey.com>
10629 Simon Marchi <simon.marchi@efficios.com>
10630
10631 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10632 method.
10633 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10634 get_symtab, set_symtab>: New methods.
10635 <m_symtabs>: New field.
10636 (struct dwarf2_psymtab): Derive from partial_symtab.
10637 <readin_p, get_compunit_symtab>: Declare methods.
10638 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10639 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10640 New methods.
10641 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10642 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10643 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10644 (dw2_symtab_iter_next, dw2_print_stats)
10645 (dw2_expand_symtabs_with_fullname)
10646 (dw2_expand_symtabs_matching_one)
10647 (dw_expand_symtabs_matching_file_matcher)
10648 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10649 (dw2_debug_names_iterator::next)
10650 (dw2_debug_names_map_matching_symbols)
10651 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10652 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10653 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10654 New methods.
10655 (get_compunit_symtab, process_full_comp_unit)
10656 (process_full_type_unit): Update.
10657 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10658
10659 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10660
10661 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10662 then introduce a new dwarf2_per_objfile type.
10663 <read_line_string>: Move to the new dwarf2_per_objfile type.
10664 <objfile>: Likewise.
10665 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10666 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10667 dwarf2_per_objfile->per_bfd.
10668 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10669 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10670 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10671 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10672 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10673 (dwarf2_per_objfile::locate_sections): Rename to...
10674 (dwarf2_per_bfd::locate_sections): ... this.
10675 (dwarf2_per_objfile::get_cutu): Rename to...
10676 (dwarf2_per_bfd::get_cutu): ... this.
10677 (dwarf2_per_objfile::get_cu): Rename to...
10678 (dwarf2_per_bfd::get_cu): ... this.
10679 (dwarf2_per_objfile::get_tu): Rename to...
10680 (dwarf2_per_bfd::get_tu): ... this.
10681 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10682 (dwarf2_per_bfd::allocate_per_cu): ... this.
10683 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10684 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10685 (get_gdb_index_contents_ftype): Change parameter from
10686 dwarf2_per_objfile to dwarf2_per_bfd.
10687 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10688 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10689
10690 2020-05-27 Tom Tromey <tom@tromey.com>
10691 Simon Marchi <simon.marchi@efficios.com>
10692
10693 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10694 (allocate_piece_closure): Set "per_objfile" member.
10695 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10696 (locexpr_describe_location, loclist_describe_location): Use new
10697 member.
10698 * dwarf2/read.c (read_call_site_scope)
10699 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10700 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10701 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10702 handle_data_member_location): Set per_objfile member.
10703 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10704 member.
10705 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10706
10707 2020-05-27 Tom Tromey <tom@tromey.com>
10708
10709 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10710 allocate_signatured_type>: Declare new methods.
10711 <m_num_psymtabs>: New member.
10712 (struct dwarf2_per_cu_data) <index>: New member.
10713 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10714 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10715 (create_cu_from_index_list): Use allocate_per_cu.
10716 (create_signatured_type_table_from_index)
10717 (create_signatured_type_table_from_debug_names)
10718 (create_debug_type_hash_table, add_type_unit)
10719 (read_comp_units_from_section): Use allocate_signatured_type.
10720
10721 2020-05-27 Tom Tromey <tom@tromey.com>
10722
10723 * psymtab.c (partial_map_expand_apply)
10724 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10725 (psym_lookup_global_symbol_language)
10726 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10727 (psym_print_stats, psym_expand_symtabs_for_function)
10728 (psym_map_symbol_filenames, psym_map_matching_symbols)
10729 (psym_expand_symtabs_matching)
10730 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10731 (maintenance_check_psymtabs): Update.
10732 * psympriv.h (struct partial_symtab) <readin_p,
10733 get_compunit_symtab>: Add objfile parameter.
10734 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10735 Likewise.
10736 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10737 get_compunit_symtab>: Likewise.
10738 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10739
10740 2020-05-27 Tom Tromey <tom@tromey.com>
10741
10742 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10743 member.
10744 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10745 (create_cu_from_index_list)
10746 (create_signatured_type_table_from_index)
10747 (create_signatured_type_table_from_debug_names)
10748 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10749 (dwarf2_create_include_psymtab)
10750 (create_debug_type_hash_table, add_type_unit)
10751 (create_type_unit_group, read_comp_units_from_section)
10752 (dwarf2_compute_name, create_cus_hash_table)
10753 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10754 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10755 obstack.
10756 (dw2_get_real_path): Likewise. Change argument to
10757 dwarf2_per_objfile.
10758
10759 2020-05-27 Luis Machado <luis.machado@linaro.org>
10760
10761 PR tdep/26000
10762 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10763 for ldrd (immediate).
10764
10765 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10766
10767 * command.h: Add comment giving the name of class_tui.
10768 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10769 create the fake command for the help for class_tui.
10770
10771 2020-05-26 Tom Tromey <tromey@adacore.com>
10772
10773 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10774 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10775 (val_atr): New function.
10776 (value_val_atr): Use it.
10777 * ada-valprint.c (print_optional_low_bound): Change low bound
10778 handling for enums.
10779 (val_print_packed_array_elements): Don't call discrete_position.
10780 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10781 discrete_position for enum types.
10782 * language.c (default_print_array_index): Change type.
10783 * language.h (struct language_defn) <la_print_array_index>: Add
10784 index_type parameter, change type of index_value.
10785 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10786 (default_print_array_index): Update.
10787 * valprint.c (maybe_print_array_index): Don't call
10788 value_from_longest. Update.
10789 (value_print_array_elements): Don't call discrete_position.
10790
10791 2020-05-26 Tom Tromey <tromey@adacore.com>
10792
10793 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10794 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10795
10796 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10797
10798 PR gdb/13519
10799 * avr-tdep.c (avr_integer_to_address): Return data or code
10800 address accordingly to the second 'type' argument of the
10801 function.
10802
10803 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10804
10805 * infcmd.c, inferior.h: (construct_inferior_arguments):
10806 Moved function from here to gdbsupport/common-inferior.{h,cc}
10807
10808 2020-05-23 Tom Tromey <tom@tromey.com>
10809
10810 Revert commit eca1f90c:
10811 * NEWS: Remove entry for completion styling.
10812 * completer.c (_rl_completion_prefix_display_length): Move
10813 declaration later.
10814 (gdb_fnprint): Revert.
10815 (gdb_display_match_list_1): Likewise.
10816 * cli/cli-style.c (completion_prefix_style)
10817 (completion_difference_style, completion_suffix_style): Remove.
10818 (_initialize_cli_style): Revert.
10819 * cli/cli-style.h (completion_prefix_style)
10820 (completion_difference_style, completion_suffix_style): Don't
10821 declare.
10822
10823 2020-05-24 Pedro Alves <palves@redhat.com>
10824
10825 * symtab.c (completion_list_add_name): Return boolean indication
10826 of whether the symbol matched.
10827 (completion_list_add_symbol): Don't try to remove C++ aliases if
10828 the symbol didn't match in the first place.
10829 * symtab.h (completion_list_add_name): Return bool.
10830
10831 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10832
10833 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10834 type::field.
10835
10836 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10837
10838 GDB 9.2 released.
10839
10840 2020-05-23 Tom Tromey <tom@tromey.com>
10841
10842 * NEWS: Add entry for completion styling.
10843 * completer.c (_rl_completion_prefix_display_length): Move
10844 declaration earlier.
10845 (gdb_fnprint): Use completion_style.
10846 (gdb_display_match_list_1): Likewise.
10847 * cli/cli-style.c (completion_prefix_style)
10848 (completion_difference_style, completion_suffix_style): New
10849 globals.
10850 (_initialize_cli_style): Register new globals.
10851 * cli/cli-style.h (completion_prefix_style)
10852 (completion_difference_style, completion_suffix_style): Declare.
10853
10854 2020-05-23 Pedro Alves <palves@redhat.com>
10855
10856 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10857 (parse_escape): Use ISDIGIT instead of isdigit.
10858 (puts_debug): Use gdb_isprint instead of isprint.
10859 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10860 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10861 ISSPACE instead of isspace.
10862 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10863 instead of isspace.
10864 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10865 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10866 instead of isxdigit and ISDIGIT instead of isdigit.
10867
10868 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10869
10870 * gdbtypes.h (struct type) <field>: New method.
10871 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10872 or type::field.
10873
10874 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10875
10876 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10877 (TYPE_FIELDS): Use type::fields. Change all call sites that
10878 modify the propery to use type::set_fields instead.
10879
10880 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10881
10882 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10883 type::num_fields instead.
10884
10885 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10886
10887 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10888 methods.
10889 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10890 that modify the number of fields to use type::set_num_fields
10891 instead.
10892
10893 2020-05-22 Tom Tromey <tromey@adacore.com>
10894
10895 * compile/compile-object-load.h (munmap_list_free): Don't
10896 declare.
10897
10898 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10899
10900 * annotate.c (annotate_source_line): Update return type, add call
10901 to update current symtab and line.
10902 * annotate.h (annotate_source_line): Update return type, and
10903 extend header comment.
10904 * source.c (info_line_command): Check annotation_level before
10905 calling annotate_source_line.
10906 * stack.c (print_frame_info): If calling annotate_source_line
10907 returns true, then don't print any other source line information.
10908
10909 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10910
10911 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10912
10913 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10914
10915 * coffread.c (patch_type): Remove NULL check before xfree.
10916 * corefile.c (set_gnutarget): Likewise.
10917 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10918 * exec.c (build_section_table): Likewise.
10919 * remote.c (remote_target::pass_signals): Likewise.
10920 * utils.c (n_spaces): Likewise.
10921 * cli/cli-script.c (document_command): Likewise.
10922 * i386-windows-tdep.c (core_process_module_section): Likewise.
10923 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10924
10925 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10926
10927 * symfile.c (reread_symbols): Clear objfile's section_offsets
10928 vector and section indices, re-compute them by calling
10929 sym_offsets.
10930
10931 2020-05-20 Tom Tromey <tromey@adacore.com>
10932
10933 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10934 (desc_one_bound, desc_index_type): Compute field name.
10935
10936 2020-05-20 Tom de Vries <tdevries@suse.de>
10937
10938 PR symtab/25833
10939 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10940
10941 2020-05-20 Alan Modra <amodra@gmail.com>
10942
10943 PR 25993
10944 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10945 bfd_set_filename.
10946 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10947 passed to bfd_set_filename.
10948 * symfile-mem.c (add_vsyscall_page): Likewise for string
10949 passed to symbol_file_add_from_memory.
10950 (symbol_file_add_from_memory): Make name param a const char* and
10951 don't strdup.
10952
10953 2020-05-20 Alan Modra <amodra@gmail.com>
10954
10955 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10956 rather than accessing bfd->filename directly.
10957 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10958 and use bfd_section_name.
10959 * dwarf2/frame.c (decode_frame_entry): Likewise.
10960 * exec.c (exec_set_section_address): Likewise.
10961 * solib-aix.c (solib_aix_bfd_open): Likewise.
10962 * stap-probe.c (get_stap_base_address): Likewise.
10963 * symfile.c (reread_symbols): Likewise.
10964
10965 2020-05-19 Tom Tromey <tromey@adacore.com>
10966
10967 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10968
10969 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10970
10971 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10972
10973 2020-05-19 Pedro Alves <palves@redhat.com>
10974
10975 * NEWS (set exec-file-mismatch): Adjust entry.
10976 * exec.c: Include "build-id.h".
10977 (validate_exec_file): Try to match build IDs instead of filenames.
10978 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10979 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10980 and pass down 'warn_if_slow'.
10981 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10982 gdb_bfd_open_closure to pass it down.
10983 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10984
10985 2020-05-19 Pedro Alves <palves@redhat.com>
10986
10987 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10988 * target.c (target_fileio_open_1): Rename to target_fileio_open
10989 and make extern. Use bool.
10990 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10991 (target_fileio_read_alloc_1): Adjust.
10992 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10993 (target_fileio_open_warn_if_slow): Delete declaration.
10994
10995 2020-05-19 Pedro Alves <palves@redhat.com>
10996
10997 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10998 Adjust all callers.
10999
11000 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11001
11002 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11003 whether disp is negative.
11004
11005 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11006
11007 * symfile.h (struct symfile_segment_data)
11008 <~symfile_segment_data>: Remove.
11009 <segment_info>: Change to std::vector.
11010 * symfile.c (default_symfile_segments): Update.
11011 * elfread.c (elf_symfile_segments): Update.
11012
11013 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11014
11015 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11016 <segments>: New.
11017 <segment_bases, segment_sizes>: Remove.
11018 * symfile.c (default_symfile_segments): Update.
11019 * elfread.c (elf_symfile_segments): Update.
11020 * remote.c (remote_target::get_offsets): Update.
11021 * solib-target.c (solib_target_relocate_section_addresses):
11022 Update.
11023
11024 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11025
11026 * symfile.h (struct symfile_segment_data): Initialize fields.
11027 <~symfile_segment_data>: Add.
11028 (symfile_segment_data_up): New.
11029 (struct sym_fns) <sym_segments>: Return a
11030 symfile_segment_data_up.
11031 (default_symfile_segments): Return a symfile_segment_data_up.
11032 (free_symfile_segment_data): Remove.
11033 (get_symfile_segment_data): Return a symfile_segment_data_up.
11034 * symfile.c (default_symfile_segments): Likewise.
11035 (get_symfile_segment_data): Likewise.
11036 (free_symfile_segment_data): Remove.
11037 (symfile_find_segment_sections): Update.
11038 * elfread.c (elf_symfile_segments): Return a
11039 symfile_segment_data_up.
11040 * remote.c (remote_target::get_offsets): Update.
11041 * solib-target.c (solib_target_relocate_section_addresses):
11042 Update.
11043 * symfile-debug.c (debug_sym_segments): Return a
11044 symfile_segment_data_up.
11045
11046 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11047
11048 PR build/25981
11049 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11050 Hardcode register numbers.
11051
11052 PR build/25981
11053 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11054 procfs_find_LDT_entry): Remove.
11055 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11056 procfs_find_LDT_entry): Remove.
11057 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11058 Remove.
11059
11060 2020-05-17 Pedro Alves <palves@redhat.com>
11061 Andrew Burgess <andrew.burgess@embecosm.com>
11062 Keno Fischer <keno@juliacomputing.com>
11063
11064 PR gdb/25741
11065 * breakpoint.c (build_target_condition_list): Update comments.
11066 (build_target_command_list): Update comments and skip matching
11067 locations.
11068 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11069 a separate function. Simplify "set breakpoint auto-hw off"
11070 handling.
11071 (insert_breakpoints): Update comment.
11072 (tracepoint_locations_match): New parameter. For breakpoints,
11073 compare location types too, if the caller wants to.
11074 (handle_automatic_hardware_breakpoints): New functions.
11075 (bp_location_is_less_than): Also sort by location type and
11076 hardware breakpoint length.
11077 (update_global_location_list): Handle "set breakpoint auto-hw on"
11078 here.
11079 (update_breakpoint_locations): Ask breakpoint_locations_match to
11080 ignore location types.
11081
11082 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11083
11084 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11085 type::name instead.
11086
11087 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11088
11089 * gdbtypes.h (struct type) <name, set_name>: New methods.
11090 (TYPE_CODE): Use type::name. Change all call sites used to set
11091 the name to use type::set_name instead.
11092
11093 2020-05-16 Tom Tromey <tom@tromey.com>
11094
11095 * top.c (quit_force): Update.
11096 * infrun.c (handle_no_resumed): Update.
11097 * top.h (all_uis): New function.
11098 (ALL_UIS): Remove.
11099
11100 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11103
11104 2020-05-16 Pedro Alves <palves@redhat.com>
11105
11106 * ia64-linux-nat.c
11107 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11108 Declare method.
11109 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11110
11111 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11112
11113 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11114 (sparc64_adi_info): Likewise.
11115
11116 2020-05-15 Tom Tromey <tom@tromey.com>
11117
11118 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11119 block_objfile.
11120 (lookup_objfile_from_block): Remove.
11121 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11122 (lookup_global_symbol): Use block_objfile.
11123 * symtab.h (lookup_objfile_from_block): Don't declare.
11124 * printcmd.c (clear_dangling_display_expressions): Use
11125 block_objfile.
11126 * parse.c (operator_check_standard): Use block_objfile.
11127
11128 2020-05-15 Tom Tromey <tom@tromey.com>
11129
11130 * language.c (language_alloc_type_symbol): Set
11131 SYMBOL_SECTION.
11132 * symtab.c (initialize_objfile_symbol): Remove.
11133 (allocate_symbol): Remove.
11134 (allocate_template_symbol): Remove.
11135 * dwarf2/read.c (fixup_go_packaging): Use "new".
11136 (new_symbol): Use "new".
11137 (read_variable): Don't call initialize_objfile_symbol. Use
11138 "new".
11139 (read_func_scope): Use "new".
11140 * xcoffread.c (process_xcoff_symbol): Don't call
11141 initialize_objfile_symbol.
11142 (SYMBOL_DUP): Remove.
11143 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11144 "new".
11145 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11146 (allocate_template_symbol): Don't declare.
11147 (struct symbol): Add copy constructor. Change defaults.
11148 * jit.c (finalize_symtab): Use "new".
11149 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11150 Use "new".
11151 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11152 (common_block_end): Use "new".
11153 * mdebugread.c (parse_symbol): Use "new".
11154 (new_symbol): Likewise.
11155
11156 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11157
11158 * NEWS: Mention changes to help and apropos.
11159
11160 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11161
11162 * command.h (enum command_class): Improve comments, document
11163 that class_alias is for user-defined aliases, give the class
11164 name for each class, remove unused class_xdb.
11165 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11166 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11167 by a precise class.
11168 * infcmd.c (_initialize_infcmd): Likewise.
11169 * reverse.c (_initialize_reverse): Likewise.
11170 * stack.c (_initialize_stack): Likewise.
11171 * symfile.c (_initialize_symfile): Likewise.
11172 * tracepoint.c (_initialize_tracepoint): Likewise.
11173
11174 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11175
11176 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11177 when their aliased command is traversed.
11178 (help_cmd): Add fput_command_names_styled call to
11179 output command name and aliases when command has an alias.
11180
11181 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11182
11183 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11184 * cli/cli-decode.c (help_cmd_list): Declare as static,
11185 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11186 a command together with the command.
11187 (fput_command_name_styled, fput_command_names_styled): New functions.
11188 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11189 fput_command_name_styled.
11190 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11191 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11192
11193 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11194
11195 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11196 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11197 * command.h (cmd_show_list): Likewise.
11198 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11199 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11200
11201 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11202
11203 * unittests/command-def-selftests.c (traverse_command_structure):
11204 Verify all commands of a list have the same prefix command and
11205 that only the top cmdlist commands have a null prefix.
11206
11207 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11208
11209 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11210 as prefix, not one of its aliases.
11211 (set_cmd_prefix): Remove.
11212 (do_add_cmd): Centralize the setting of the prefix of a command, when
11213 command is defined after its full chain of prefix commands.
11214 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11215 (add_setshow_cmd_full): Likewise.
11216 (update_prefix_field_of_prefixed_commands): New function.
11217 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11218 update_prefix_field_of_prefixed_commands.
11219 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11220 addresses of remote_set_cmdlist and remote_show_cmdlist given
11221 as argument, not the address of an argument.
11222 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11223 * gdb/remote.c (_initialize_remote): Likewise.
11224
11225 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11226
11227 * cli/cli-cmds.c (alias_command): Check for an existing alias
11228 using lookup_cmd_composition, as valid_command_p is too strict
11229 and forbids aliases that are the prefix of an existing alias
11230 or command.
11231 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11232 command is properly recognised as a valid command.
11233
11234 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11235
11236 * unittests/help-doc-selftests.c: Rename to
11237 unittests/command-def-selftests.c
11238 * unittests/command-def-selftests.c (help_doc_tests): Update some
11239 comments.
11240 (command_structure_tests, traverse_command_structure): New namespace
11241 and function.
11242 (command_structure_invariants_tests): New function.
11243 (_initialize_command_def_selftests) Renamed from
11244 _initialize_help_doc_selftests, register command_structure_invariants
11245 selftest.
11246
11247 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11248
11249 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11250 an alias of 'show'.
11251
11252 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11253
11254 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11255 ada_is_fixed_point_type. Update all callers.
11256 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11257 all callers.
11258 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11259 Update all callers.
11260 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11261 print_fixed_point_type. Update all callers.
11262 * ada-valprint.c (ada_value_print_num): Replace call to
11263 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11264
11265 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11266
11267 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11268 processors.
11269 (cpu_supports_bts): Add CV_AMD case.
11270
11271 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11272 Simon Marchi <simon.marchi@efficios.com>
11273
11274 * infrun.c (stop_all_threads): Collect multiple wait events at
11275 each pass.
11276
11277 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11278
11279 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11280 type::code instead.
11281
11282 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11283
11284 * gdbtypes.h (struct type) <code, set_code>: New methods.
11285 (TYPE_CODE): Use type::code. Change all call sites used to set
11286 the code to use type::set_code instead.
11287
11288 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11289 Tom de Vries <tdevries@suse.de>
11290 Pedro Alves <palves@redhat.com>
11291
11292 PR threads/25478
11293 * infrun.c (stop_all_threads): Do NOT ignore
11294 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11295 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11296 received.
11297 (handle_no_resumed): Remove code handling a live inferior with no
11298 threads.
11299 * remote.c (has_single_non_exited_thread): New.
11300 (remote_target::update_thread_list): Do not delete a thread if is
11301 the last thread of the process.
11302 * thread.c (thread_select): Call delete_exited_threads instead of
11303 prune_threads.
11304
11305 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11306
11307 * infrun.c (stop_all_threads): Enable/disable thread events of all
11308 targets. Move a debug message denoting the end of the function
11309 into the SCOPED_EXIT block.
11310
11311 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11312
11313 * process-stratum-target.h: Include <set>.
11314 (all_non_exited_process_targets, switch_to_target_no_thread): New
11315 function declarations.
11316 * process-stratum-target.c (all_non_exited_process_targets)
11317 (switch_to_target_no_thread): New function implementations.
11318
11319 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11320
11321 * infrun.c (handle_inferior_event): Extract out a piece of code
11322 into...
11323 (mark_non_executing_threads): ...this new function.
11324
11325 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11326
11327 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11328 use.
11329
11330 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11331
11332 * regcache.c (regcache_read_pc_protected): New function
11333 implementation that returns 0 if the PC cannot read via
11334 'regcache_read_pc'.
11335 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11336 instead of 'regcache_read_pc'.
11337 (keep_going_pass_signal): Ditto.
11338
11339 2020-05-13 Tom Tromey <tromey@adacore.com>
11340
11341 * ada-lang.c (align_value): Remove.
11342 (ada_template_to_fixed_record_type_1): Use align_up.
11343
11344 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11345
11346 * async-event.c: Update the copyright year.
11347 * async-event.h: Update the copyright year.
11348
11349 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11350
11351 * objfiles.h (is_addr_in_objfile,
11352 shared_objfile_contains_address_p): Return bool.
11353 * objfile.c (is_addr_in_objfile,
11354 shared_objfile_contains_address_p): Return bool.
11355
11356 2020-05-11 Tom Tromey <tromey@adacore.com>
11357
11358 * cli/cli-cmds.c (info_command): Restore.
11359 (_initialize_cli_cmds): Use add_prefix_command for "info".
11360 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11361
11362 2020-05-11 Tom Tromey <tromey@adacore.com>
11363
11364 * ada-lang.c (ada_value_primitive_field): Now public.
11365 * ada-lang.h (ada_value_primitive_field): Declare.
11366 * ada-valprint.c (print_field_values): Use
11367 ada_value_primitive_field for wrapper fields.
11368
11369 2020-05-11 Tom de Vries <tdevries@suse.de>
11370
11371 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11372 MODULE_DOMAIN.
11373
11374 2020-05-11 Tom de Vries <tdevries@suse.de>
11375
11376 PR symtab/25941
11377 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11378 with length 0, if not gdb-produced.
11379 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11380
11381 2020-05-09 Tom de Vries <tdevries@suse.de>
11382
11383 PR gdb/25955
11384 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11385 calculation.
11386
11387 2020-05-09 Tom Tromey <tom@tromey.com>
11388
11389 * top.c (server_command): Now bool.
11390 * top.h (server_command): Now bool.
11391
11392 2020-05-08 Tom Tromey <tromey@adacore.com>
11393
11394 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11395 already being processed.
11396
11397 2020-05-08 Tom Tromey <tom@tromey.com>
11398
11399 * printcmd.c (struct display) <next>: Remove.
11400 <display>: New constructor.
11401 <exp_string>: Now a std::string.
11402 <enabled_p>: Now a bool.
11403 (display_number): Move definition earlier.
11404 (displays): Rename from display_chain. Now a std::vector.
11405 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11406 (display_command): Update.
11407 (do_one_display, disable_display)
11408 (enable_disable_display_command, do_enable_disable_display):
11409 Update.
11410 (free_display): Remove.
11411 (clear_displays): Rewrite.
11412 (delete_display): Update.
11413 (map_display_numbers): Use function_view. Remove "data"
11414 parameter. Update.
11415 (do_delete_display): Remove.
11416 (undisplay_command): Update.
11417 (do_one_display, do_displays, disable_display)
11418 (info_display_command): Update.
11419 (do_enable_disable_display): Remove.
11420 (enable_disable_display_command)
11421 (clear_dangling_display_expressions): Update.
11422
11423 2020-05-08 Tom Tromey <tom@tromey.com>
11424
11425 * symtab.c (set_symbol_cache_size)
11426 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11427 (maintenance_print_symbol_cache_statistics): Update.
11428 * symmisc.c (print_symbol_bcache_statistics)
11429 (print_objfile_statistics, maintenance_print_objfiles)
11430 (maintenance_info_symtabs, maintenance_check_symtabs)
11431 (maintenance_expand_symtabs, maintenance_info_line_tables):
11432 Update.
11433 * symfile-debug.c (set_debug_symfile): Update.
11434 * source.c (forget_cached_source_info): Update.
11435 * python/python.c (gdbpy_progspaces): Update.
11436 * psymtab.c (maintenance_info_psymtabs): Update.
11437 * probe.c (parse_probes): Update.
11438 * linespec.c (iterate_over_all_matching_symtabs)
11439 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11440 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11441 * exec.c (exec_target::close): Update.
11442 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11443 * breakpoint.c (print_one_breakpoint_location)
11444 (create_longjmp_master_breakpoint)
11445 (create_std_terminate_master_breakpoint): Update.
11446 * progspace.c (program_spaces): Now a std::vector.
11447 (maybe_new_address_space): Update.
11448 (add_program_space): Remove.
11449 (program_space::program_space): Update.
11450 (remove_program_space): Update.
11451 (number_of_program_spaces): Remove.
11452 (print_program_space, update_address_spaces): Update.
11453 * progspace.h (program_spaces): Change type.
11454 (ALL_PSPACES): Remove.
11455 (number_of_program_spaces): Don't declare.
11456 (struct program_space) <next>: Remove.
11457
11458 2020-05-08 Tom Tromey <tom@tromey.com>
11459
11460 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11461 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11462 (enable_break): Update.
11463 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11464 (frv_fdpic_find_canonical_descriptor): Update.
11465 (frv_fetch_objfile_link_map): Update.
11466 * progspace.c (program_space::free_all_objfiles): Update.
11467 (program_space::solibs): New method.
11468 * progspace.h (struct program_space) <solibs>: New method.
11469 * solist.h (master_so_list): Don't declare.
11470 (ALL_SO_LIBS): Remove.
11471 * solib.h (so_list_head): Remove.
11472 (update_solib_list): Update comment.
11473 * solib.c (master_so_list): Remove.
11474 (solib_used, update_solib_list, solib_add)
11475 (info_sharedlibrary_command, clear_solib)
11476 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11477
11478 2020-05-08 Tom Tromey <tom@tromey.com>
11479
11480 * extension.c (extension_languages): Now a std::array.
11481 (ALL_EXTENSION_LANGUAGES): Remove.
11482 (get_ext_lang_defn, get_ext_lang_of_file)
11483 (eval_ext_lang_from_control_command): Update.
11484 (finish_ext_lang_initialization)
11485 (auto_load_ext_lang_scripts_for_objfile)
11486 (ext_lang_type_printers::ext_lang_type_printers)
11487 (apply_ext_lang_type_printers)
11488 (ext_lang_type_printers::~ext_lang_type_printers)
11489 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11490 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11491 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11492 (get_matching_xmethod_workers, ext_lang_colorize)
11493 (ext_lang_before_prompt): Update.
11494 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11495
11496 2020-05-08 Tom Tromey <tom@tromey.com>
11497
11498 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11499 overload.
11500 <swap_string, m_string>: Remove.
11501 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11502 Update.
11503 * stabsread.c (define_symbol, read_type): Update.
11504 * linespec.c (find_linespec_symbols): Update.
11505 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11506 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11507 * dbxread.c (read_dbx_symtab): Update.
11508 * cp-support.h (cp_canonicalize_string_full)
11509 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11510 Return unique_xmalloc_ptr.
11511 * cp-support.c (inspect_type): Update.
11512 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11513 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11514 Likewise.
11515 * c-typeprint.c (print_name_maybe_canonical): Update.
11516 * break-catch-throw.c (check_status_exception_catchpoint):
11517 Update.
11518
11519 2020-05-08 Tom de Vries <tdevries@suse.de>
11520
11521 * infrun.c (follow_fork): Copy current_line and current_symtab to
11522 child thread.
11523
11524 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11525
11526 * async-event.c (struct async_signal_handler, struct
11527 async_event_handler): Reformat, remove typedef.
11528
11529 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11530
11531 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11532 access thistype->main_type->dyn_prop_list directly.
11533
11534 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11535
11536 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11537 (remove_dyn_prop): Remove. Update all users to use
11538 type::remove_dyn_prop.
11539 * gdbtypes.c (remove_dyn_prop): Rename to...
11540 (type::remove_dyn_prop): ... this.
11541
11542 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11543
11544 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11545 (add_dyn_prop): Remove. Update all users to use
11546 type::add_dyn_prop.
11547 * gdbtypes.c (add_dyn_prop): Rename to...
11548 (type::add_dyn_prop): ... this.
11549
11550 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11551
11552 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11553 (get_dyn_prop): Remove. Update all users to use
11554 type::dyn_prop.
11555 * gdbtypes.c (get_dyn_prop): Rename to...
11556 (type::dyn_prop): ... this.
11557
11558 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11559
11560 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11561
11562 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11563
11564 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11565 instruction, skip it if it's there.
11566
11567 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11568
11569 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11570
11571 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11572
11573 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11574 * gdbtypes.c (recursive_dump_type): Remove use of
11575 TYPE_INCOMPLETE.
11576
11577 2020-05-03 Tom Tromey <tom@tromey.com>
11578
11579 * breakpoint.c (catch_command, tcatch_command): Remove.
11580 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11581 add_show_prefix_cmd.
11582 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11583 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11584 Remove.
11585 (add_internal_problem_command): Use add_basic_prefix_cmd,
11586 add_show_prefix_cmd.
11587 * mips-tdep.c (set_mipsfpu_command): Remove.
11588 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11589 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11590 (_initialize_index_cache): Use add_basic_prefix_cmd.
11591 * memattr.c (dummy_cmd): Remove.
11592 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11593 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11594 (_initialize_tui_win): Use add_basic_prefix_cmd,
11595 add_show_prefix_cmd.
11596 * cli/cli-logging.c (set_logging_command): Remove.
11597 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11598 add_show_prefix_cmd.
11599 (show_logging_command): Remove.
11600 * target.c (target_command): Remove.
11601 (add_target): Use add_basic_prefix_cmd.
11602
11603 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11604
11605 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11606
11607 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11608
11609 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11610 info_command.
11611
11612 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11613
11614 * nbsd-nat.c (nbsd_enable_proc_events)
11615 (nbsd_nat_target::post_startup_inferior): Add.
11616 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11617 (nbsd_nat_target::update_thread_list): Rewrite.
11618 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11619 "PTRACE_LWP_CREATE".
11620 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11621
11622 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11623
11624 * stack.c (_initialize_stack): Remove duplicated creation
11625 of "frame" command and "f" alias.
11626
11627 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11628
11629 PR gdb/18706
11630 * gdbtypes.c (check_typedef): Calculate size of array of
11631 stubbed type.
11632
11633 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11634
11635 PR gdb/15559
11636 * i386-tdep.c (i386_push_dummy_call): Call
11637 i386_thiscall_push_dummy_call.
11638 (i386_thiscall_push_dummy_call): New function.
11639 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11640 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11641 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11642
11643 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11644
11645 * gdbarch.sh (do_read): Add shellcheck disable directive for
11646 warning SC2162.
11647
11648 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11649
11650 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11651 "referenced but not assigned" warning.
11652
11653 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11654
11655 * gdbarch.sh: Remove code that sets fallbackdefault.
11656
11657 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11658
11659 * gdbarch.sh: Use shell operators && and || instead of
11660 -a and -o.
11661
11662 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11663
11664 * gdbarch.sh: Use $(...) instead of `...`.
11665
11666 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11667
11668 * gdbarch.sh: Use double quotes around variables.
11669
11670 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11671
11672 * gdbarch.sh: Use %s with printf, instead of variables in the
11673 format string.
11674
11675 2020-04-29 Tom Tromey <tromey@adacore.com>
11676
11677 PR ada/25875:
11678 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11679 type fields here.
11680 (read_enumeration_type): Call
11681 update_enumeration_type_from_children later. Update comments.
11682 (process_enumeration_scope): Don't create type fields.
11683
11684 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11685
11686 * nbsd-tdep.c: Include "xml-syscall.h".
11687 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11688
11689 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11690
11691 * nbsd-nat.c: Include "sys/wait.h".
11692 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11693 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11694 (nbsd_nat_target::remove_exec_catchpoint)
11695 (nbsd_nat_target::set_syscall_catchpoint): Add.
11696 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11697 (nbsd_nat_target::insert_exec_catchpoint)
11698 (nbsd_nat_target::remove_exec_catchpoint)
11699 (nbsd_nat_target::set_syscall_catchpoint): Add.
11700 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11701 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11702 `nbsd_get_syscall_number'.
11703
11704 2020-04-29 Tom Tromey <tom@tromey.com>
11705
11706 * stack.c (print_block_frame_labels): Remove.
11707
11708 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11709
11710 PR gdb/17320
11711 * ada-valprint.c (val_print_packed_array_elements): Move array
11712 end bracket to new line.
11713 (ada_val_print_string): Remove extra spaces before first array
11714 element.
11715 * c-valprint.c (c_value_print_array): Likewise.
11716 * m2-valprint.c (m2_print_array_contents): Likewise.
11717 (m2_value_print_inner): Likewise.
11718 * p-valprint.c (pascal_value_print_inner): Likewise.
11719 * valprint.c (generic_val_print_array): Likewise.
11720 (value_print_array_elements): Move first array element and array
11721 end bracket to new line.
11722
11723 2020-04-29 Tom de Vries <tdevries@suse.de>
11724
11725 PR symtab/25889
11726 * linespec.c (find_method): Fix ix calculation.
11727
11728 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11729
11730 * syscalls/update-netbsd.sh: New file.
11731 * syscalls/netbsd.xml: Regenerate.
11732 * data-directory/Makefile.in: Register `netbsd.xml' in
11733 `SYSCALLS_FILES'.
11734
11735 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11736
11737 * syscalls/update-freebsd.sh: Add double quotes.
11738
11739 2020-04-28 Tom Tromey <tom@tromey.com>
11740
11741 * NEWS: Update.
11742 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11743 (cmdpy_init): Allow class_tui.
11744
11745 2020-04-28 Mark Williams <mark@myosotissp.com>
11746
11747 PR gdb/24480
11748 * dwarf2read.c: Add missing assingments to list_in_scope when
11749 start_symtab was already called.
11750
11751 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11752
11753 PR gdb/25881
11754 * dwarf2/read.c (offset_map_type): Use
11755 gdb:hash_enum<sect_offset> as hash function.
11756
11757 2020-04-28 Tom de Vries <tdevries@suse.de>
11758
11759 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11760 with DW_AT_signature.
11761
11762 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11763
11764 * configure.ac: Remove check for fs_base/gs_base in
11765 user_regs_struct.
11766 * configure: Re-generate.
11767 * config.in: Re-generate.
11768 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11769 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11770 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11771
11772 2020-04-27 Luis Machado <luis.machado@linaro.org>
11773
11774 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11775 problematic inline frame unwinding situation.
11776 * frame.c (frame_id_computed_p): New function.
11777 * frame.h (frame_id_computed_p): New prototype.
11778
11779 2020-04-26 Tom Tromey <tom@tromey.com>
11780
11781 * command.h (enum command_class) <class_pseudo>: Remove.
11782
11783 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11784
11785 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11786 and whitespace.
11787
11788 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11789
11790 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11791 `PT_GET_PROCESS_STATE' block.
11792
11793 2020-04-24 Tom Tromey <tom@tromey.com>
11794
11795 * symtab.h (symbol_get_demangled_name): Don't declare.
11796 * symtab.c (symbol_get_demangled_name): Remove.
11797 (general_symbol_info::natural_name)
11798 (general_symbol_info::demangled_name): Update.
11799
11800 2020-04-24 Tom Tromey <tom@tromey.com>
11801
11802 PR rust/25025:
11803 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11804
11805 2020-04-24 Tom Tromey <tom@tromey.com>
11806
11807 PR symtab/12707:
11808 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11809 exists.
11810 (new_symbol): Likewise.
11811 * compile/compile-object-load.c (get_out_value_type): Use
11812 symbol_matches_search_name.
11813
11814 2020-04-24 Tom Tromey <tom@tromey.com>
11815
11816 * dwarf2/read.c (add_partial_symbol): Do not call
11817 compute_and_set_names.
11818
11819 2020-04-24 Tom Tromey <tom@tromey.com>
11820
11821 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11822 overload.
11823
11824 2020-04-24 Tom Tromey <tom@tromey.com>
11825
11826 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11827 (add_psymbol_to_list): New overload. Make old overload call new
11828 one.
11829 * psympriv.h (add_psymbol_to_list): New overload.
11830
11831 2020-04-24 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2/read.c (partial_die_info::read) <case
11834 DW_AT_linkage_name>: Use value_as_string.
11835 (dwarf2_string_attr): Use value_as_string.
11836 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11837 method.
11838 * dwarf2/attribute.c (attribute::value_as_string): New method.
11839
11840 2020-04-24 Tom Tromey <tom@tromey.com>
11841
11842 * symtab.c (general_symbol_info::natural_name)
11843 (general_symbol_info::demangled_name): Check for language_rust.
11844
11845 2020-04-24 Tom Tromey <tom@tromey.com>
11846
11847 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11848 (dwarf2_physname): ... from here.
11849 (partial_die_info::read): Add Rust "{" hack.
11850
11851 2020-04-24 Tom Tromey <tom@tromey.com>
11852
11853 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11854 method.
11855 (symbol_set_demangled_name): Don't declare.
11856 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11857 symbol_set_demangled_name.
11858 (general_symbol_info::set_language)
11859 (general_symbol_info::compute_and_set_names): Update.
11860 * minsyms.c (minimal_symbol_reader::install): Update.
11861 * dwarf2/read.c (new_symbol): Update.
11862
11863 2020-04-24 Tom Tromey <tromey@adacore.com>
11864
11865 PR python/23662:
11866 * python/py-type.c (convert_field): Handle
11867 FIELD_LOC_KIND_DWARF_BLOCK.
11868 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11869 (typy_get_dynamic): Nw function.
11870 (type_object_getset): Add "dynamic".
11871 * NEWS: Add entry.
11872
11873 2020-04-24 Tom Tromey <tromey@adacore.com>
11874
11875 * ada-typeprint.c (print_choices, print_variant_part)
11876 (print_record_field_types_dynamic): New functions.
11877 (print_record_field_types): Use print_record_field_types_dynamic.
11878
11879 2020-04-24 Tom Tromey <tromey@adacore.com>
11880
11881 * dwarf2/read.c (handle_data_member_location): New overload.
11882 (dwarf2_add_field): Use it.
11883 (decode_locdesc): Add "computed" parameter. Update comment.
11884 * gdbtypes.c (is_dynamic_type_internal): Also look for
11885 FIELD_LOC_KIND_DWARF_BLOCK.
11886 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11887 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11888 virtual base classes.
11889 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11890 FIELD_LOC_KIND_DWARF_BLOCK.
11891
11892 2020-04-24 Tom Tromey <tromey@adacore.com>
11893
11894 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11895 * gdbtypes.c (is_dynamic_type_internal): Check
11896 TYPE_HAS_DYNAMIC_LENGTH.
11897 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11898 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11899 New macros.
11900 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11901 constant.
11902
11903 2020-04-24 Tom Tromey <tromey@adacore.com>
11904
11905 * dwarf2/read.c (struct variant_field): Rewrite.
11906 (struct variant_part_builder): New.
11907 (struct nextfield): Remove "variant" field. Add "offset".
11908 (struct field_info): Add "current_variant_part" and
11909 "variant_parts".
11910 (alloc_discriminant_info): Remove.
11911 (alloc_rust_variant): New function.
11912 (quirk_rust_enum): Update.
11913 (dwarf2_add_field): Set "offset" member. Don't handle
11914 DW_TAG_variant_part.
11915 (offset_map_type): New typedef.
11916 (convert_variant_range, create_one_variant)
11917 (create_one_variant_part, create_variant_parts)
11918 (add_variant_property): New functions.
11919 (dwarf2_attach_fields_to_type): Call add_variant_property.
11920 (read_structure_type): Don't handle DW_TAG_variant_part.
11921 (handle_variant_part, handle_variant): New functions.
11922 (handle_struct_member_die): Use them.
11923 (process_structure_scope): Don't handle variant parts.
11924 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11925 (struct discriminant_info): Remove.
11926 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11927 (struct main_type) <flag_discriminated_union>: Remove.
11928 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11929 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11930 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11931 Update.
11932 * valops.c (value_union_variant): Remove.
11933 * value.h (value_union_variant): Don't declare.
11934
11935 2020-04-24 Tom Tromey <tromey@adacore.com>
11936
11937 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11938 (ada_value_primitive_packed_val): Update.
11939 * ada-valprint.c (ada_value_print_1): Update.
11940 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11941 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11942 just an address. Use evaluate_for_locexpr_baton.
11943 (dwarf2_evaluate_property): Update.
11944 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11945 array_view.
11946 * findvar.c (default_read_var_value): Update.
11947 * gdbtypes.c (compute_variant_fields_inner)
11948 (resolve_dynamic_type_internal): Update.
11949 (resolve_dynamic_type): Change type of valaddr parameter.
11950 * gdbtypes.h (resolve_dynamic_type): Update.
11951 * valarith.c (value_subscripted_rvalue): Update.
11952 * value.c (value_from_contents_and_address): Update.
11953
11954 2020-04-24 Tom Tromey <tromey@adacore.com>
11955
11956 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11957 "push_initial_value" parameter.
11958 (dwarf2_evaluate_property): Likewise.
11959 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11960
11961 2020-04-24 Tom Tromey <tromey@adacore.com>
11962
11963 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11964 (variant::matches, compute_variant_fields_recurse)
11965 (compute_variant_fields_inner, compute_variant_fields): New
11966 functions.
11967 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11968 Use resolved_type after type is made.
11969 (operator==): Add new cases.
11970 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11971 (struct discriminant_range, struct variant, struct variant_part):
11972 New.
11973 (union dynamic_prop_data) <variant_parts, original_type>: New
11974 members.
11975 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11976 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11977 constants.
11978 * value.c (unpack_bits_as_long): Now public.
11979 * value.h (unpack_bits_as_long): Declare.
11980
11981 2020-04-24 Tom Tromey <tromey@adacore.com>
11982
11983 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11984 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11985
11986 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11987
11988 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11989
11990 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11991
11992 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11993 (remove_fork_catchpoint, post_startup_inferior)
11994 (post_attach): Move...
11995 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11996 (remove_fork_catchpoint, post_startup_inferior)
11997 (post_attach): ...here.
11998 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11999 (remove_fork_catchpoint, post_startup_inferior)
12000 (post_attach): Move...
12001 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12002 (remove_fork_catchpoint, post_startup_inferior)
12003 (post_attach): ...here.
12004
12005 2020-04-24 Tom Tromey <tromey@adacore.com>
12006
12007 * nat/windows-nat.h (struct windows_thread_info)
12008 <pc_adjusted>: New member.
12009 * windows-nat.c (windows_fetch_one_register): Check
12010 pc_adjusted.
12011 (windows_nat_target::get_windows_debug_event)
12012 (windows_nat_target::wait): Set pc_adjusted.
12013
12014 2020-04-24 Tom de Vries <tdevries@suse.de>
12015
12016 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12017 Run gdb-add-index inside temp dir.
12018
12019 2020-04-23 Tom Tromey <tromey@adacore.com>
12020
12021 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12022 in loop.
12023
12024 2020-04-23 Luis Machado <luis.machado@linaro.org>
12025
12026 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12027 get_frame_register instead of gdbarch_unwind_pc.
12028
12029 2020-04-23 Tom de Vries <tdevries@suse.de>
12030
12031 * symtab.c (lookup_global_symbol): Prefer def over decl.
12032
12033 2020-04-23 Tom de Vries <tdevries@suse.de>
12034
12035 PR symtab/25807
12036 * block.c (best_symbol, better_symbol): Promote to external.
12037 * block.h (best_symbol, better_symbol): Declare.
12038 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12039 decl.
12040
12041 2020-04-23 Tom Tromey <tromey@adacore.com>
12042
12043 PR ada/25837:
12044 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12045 "const char *", not a "const std::string &".
12046 <name_and_matcher::operator==>: Update.
12047 * unittests/lookup_name_info-selftests.c: Change type of
12048 "result".
12049
12050 2020-04-23 Tom Tromey <tom@tromey.com>
12051
12052 * inferior.h (iterate_over_inferiors): Don't declare.
12053 * inferior.c (iterate_over_inferiors): Remove.
12054 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12055 Remove.
12056 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12057 use iterate_over_inferiors.
12058 (darwin_resume_inferior_it)
12059 (struct resume_inferior_threads_param)
12060 (darwin_resume_inferior_threads_it): Remove.
12061 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12062
12063 2020-04-23 Tom de Vries <tdevries@suse.de>
12064
12065 * blockframe.c (find_pc_partial_function): Use
12066 find_pc_sect_compunit_symtab rather than
12067 objfile->sf->qf->find_pc_sect_compunit_symtab.
12068
12069 2020-04-22 Tom de Vries <tdevries@suse.de>
12070
12071 PR symtab/25764
12072 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12073 in psymtabs.
12074
12075 2020-04-22 Tom de Vries <tdevries@suse.de>
12076
12077 PR symtab/25801
12078 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12079 symtabs.
12080
12081 2020-04-22 Tom de Vries <tdevries@suse.de>
12082
12083 PR symtab/25700
12084 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12085 CU if already created.
12086
12087 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12088
12089 * infrun.c (displaced_step_fixup): Switch to the event_thread
12090 before calling displaced_step_restore, not after.
12091
12092 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12093
12094 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12095 its inferior is not recorded by us.
12096 (record_btrace_target_open): Replace call to
12097 all_non_exited_threads () with call to current_inferior
12098 ()->non_exited_threads ().
12099 (record_btrace_target::stop_recording): Likewise.
12100 (record_btrace_target::close): Likewise.
12101 (record_btrace_target::wait): Likewise.
12102 (record_btrace_target::record_stop_replaying): Likewise.
12103
12104 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12105
12106 * btrace.c (btrace_enable): Throw an error on double enables and
12107 when enabling recording fails.
12108 (btrace_disable): Throw an error if the thread is not recorded.
12109
12110 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12111
12112 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12113 request if we do not have a thread_info.
12114
12115 2020-04-21 Tom de Vries <tdevries@suse.de>
12116
12117 PR gdb/25471
12118 * thread.c
12119 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12120 exception in get_frame_id.
12121
12122 2020-04-20 Tom Tromey <tromey@adacore.com>
12123
12124 * python/python.c (struct gdbpy_event): Mark move constructor as
12125 noexcept.
12126 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12127 constructor as noexcept.
12128 * completer.h (struct completion_result): Mark move constructor as
12129 noexcept.
12130 * completer.c (completion_result::completion_result): Use
12131 initialization style. Don't call reset_match_list.
12132
12133 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12134
12135 * MAINTAINERS (Write After Approval): Add myself.
12136
12137 2020-04-18 Tom Tromey <tom@tromey.com>
12138
12139 * windows-tdep.c (init_w32_command_list)
12140 (w32_prefix_command_valid): Restore.
12141 (_initialize_windows_tdep): Call init_w32_command_list.
12142
12143 2020-04-18 Tom Tromey <tom@tromey.com>
12144
12145 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12146 * value.c (value_fn_field): Update.
12147 * valops.c (find_function_in_inferior)
12148 (value_allocate_space_in_inferior): Update.
12149 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12150 Update.
12151 * tui/tui-source.c (tui_source_window::set_contents): Update.
12152 * symtab.c (lookup_global_or_static_symbol)
12153 (find_function_start_sal_1, skip_prologue_sal)
12154 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12155 * symmisc.c (dump_msymbols, dump_symtab_1)
12156 (maintenance_print_one_line_table): Update.
12157 * symfile.c (init_entry_point_info, section_is_mapped)
12158 (list_overlays_command, simple_read_overlay_table)
12159 (simple_overlay_update_1): Update.
12160 * stap-probe.c (handle_stap_probe): Update.
12161 * stabsread.c (dbx_init_float_type, define_symbol)
12162 (read_one_struct_field, read_enum_type, read_range_type): Update.
12163 * source.c (info_line_command): Update.
12164 * python/python.c (gdbpy_source_objfile_script)
12165 (gdbpy_execute_objfile_script): Update.
12166 * python/py-type.c (save_objfile_types): Update.
12167 * python/py-objfile.c (py_free_objfile): Update.
12168 * python/py-inferior.c (python_new_objfile): Update.
12169 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12170 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12171 (maintenance_check_psymtabs): Update.
12172 * printcmd.c (info_address_command): Update.
12173 * objfiles.h (struct objfile) <arch>: New method, from
12174 get_objfile_arch.
12175 (get_objfile_arch): Don't declare.
12176 * objfiles.c (get_objfile_arch): Remove.
12177 (filter_overlapping_sections): Update.
12178 * minsyms.c (msymbol_is_function): Update.
12179 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12180 (output_nondebug_symbol): Update.
12181 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12182 (mdebug_expand_psymtab): Update.
12183 * machoread.c (macho_add_oso_symfile): Update.
12184 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12185 Update.
12186 * linux-fork.c (checkpoint_command): Update.
12187 * linespec.c (convert_linespec_to_sals): Update.
12188 * jit.c (finalize_symtab): Update.
12189 * infrun.c (insert_exception_resume_from_probe): Update.
12190 * ia64-tdep.c (ia64_find_unwind_table): Update.
12191 * hppa-tdep.c (internalize_unwinds): Update.
12192 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12193 Update.
12194 * gcore.c (call_target_sbrk): Update.
12195 * elfread.c (record_minimal_symbol, elf_symtab_read)
12196 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12197 (elf_gnu_ifunc_resolve_by_got): Update.
12198 * dwarf2/read.c (create_addrmap_from_index)
12199 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12200 (read_debug_names_from_section)
12201 (process_psymtab_comp_unit_reader, add_partial_symbol)
12202 (add_partial_subprogram, process_full_comp_unit)
12203 (read_file_scope, read_func_scope, read_lexical_block_scope)
12204 (read_call_site_scope, dwarf2_ranges_read)
12205 (dwarf2_record_block_ranges, dwarf2_add_field)
12206 (mark_common_block_symbol_computed, read_tag_pointer_type)
12207 (read_tag_string_type, dwarf2_init_float_type)
12208 (dwarf2_init_complex_target_type, read_base_type)
12209 (partial_die_info::read, partial_die_info::read)
12210 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12211 (dwarf2_fetch_die_loc_sect_off): Update.
12212 * dwarf2/loc.c (dwarf2_find_location_expression)
12213 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12214 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12215 (dwarf2_loc_desc_get_symbol_read_needs)
12216 (locexpr_describe_location_piece, locexpr_describe_location_1)
12217 (loclist_describe_location): Update.
12218 * dwarf2/index-write.c (write_debug_names): Update.
12219 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12220 * dtrace-probe.c (dtrace_process_dof): Update.
12221 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12222 (process_one_symbol): Update.
12223 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12224 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12225 (coff_read_enum_type): Update.
12226 * cli/cli-cmds.c (edit_command, list_command): Update.
12227 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12228 * breakpoint.c (create_overlay_event_breakpoint)
12229 (create_longjmp_master_breakpoint)
12230 (create_std_terminate_master_breakpoint)
12231 (create_exception_master_breakpoint, get_sal_arch): Update.
12232 * block.c (block_gdbarch): Update.
12233 * annotate.c (annotate_source_line): Update.
12234
12235 2020-04-17 Tom Tromey <tromey@adacore.com>
12236
12237 * auto-load.c (show_auto_load_cmd): Remove.
12238 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12239 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12240 (maintenance_print_arc_command): Remove.
12241 * tui/tui-win.c (tui_command): Remove.
12242 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12243 * tui/tui-layout.c (tui_layout_command): Remove.
12244 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12245 * python/python.c (user_set_python, user_show_python): Remove.
12246 (_initialize_python): Use add_basic_prefix_cmd,
12247 add_show_prefix_cmd.
12248 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12249 (install_gdb_commands): Use add_basic_prefix_cmd,
12250 add_show_prefix_cmd.
12251 (info_guile_command): Remove.
12252 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12253 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12254 add_show_prefix_cmd.
12255 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12256 Remove do_set and do_show parameters.
12257 * cli/cli-style.c (set_style, show_style): Remove.
12258 (_initialize_cli_style): Use add_basic_prefix_cmd,
12259 add_show_prefix_cmd.
12260 (cli_style_option::add_setshow_commands): Remove do_set and
12261 do_show parameters.
12262 (cli_style_option::add_setshow_commands): Use
12263 add_basic_prefix_cmd, add_show_prefix_cmd.
12264 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12265 (set_style_name): Remove.
12266 * cli/cli-dump.c (dump_command, append_command): Remove.
12267 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12268 (tekhex_dump_command, binary_dump_command)
12269 (binary_append_command): Remove.
12270 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12271 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12272 (init_w32_command_list): Remove; move into ...
12273 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12274 * valprint.c (set_print, show_print, set_print_raw)
12275 (show_print_raw): Remove.
12276 (_initialize_valprint): Use add_basic_prefix_cmd,
12277 add_show_prefix_cmd.
12278 * typeprint.c (set_print_type, show_print_type): Remove.
12279 (_initialize_typeprint): Use add_basic_prefix_cmd,
12280 add_show_prefix_cmd.
12281 * record.c (set_record_command, show_record_command): Remove.
12282 (_initialize_record): Use add_basic_prefix_cmd,
12283 add_show_prefix_cmd.
12284 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12285 add_show_prefix_cmd.
12286 (info_command, show_command, set_debug, show_debug): Remove.
12287 * top.h (set_history, show_history): Don't declare.
12288 * top.c (set_history, show_history): Remove.
12289 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12290 (unset_tdesc_cmd): Remove.
12291 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12292 add_show_prefix_cmd.
12293 * symtab.c (info_module_command): Remove.
12294 (_initialize_symtab): Use add_basic_prefix_cmd.
12295 * symfile.c (overlay_command): Remove.
12296 (_initialize_symfile): Use add_basic_prefix_cmd.
12297 * sparc64-tdep.c (info_adi_command): Remove.
12298 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12299 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12300 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12301 add_show_prefix_cmd.
12302 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12303 (_initialize_serial): Use add_basic_prefix_cmd,
12304 add_show_prefix_cmd.
12305 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12306 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12307 add_show_prefix_cmd.
12308 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12309 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12310 add_show_prefix_cmd.
12311 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12312 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12313 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12314 add_show_prefix_cmd.
12315 * remote.c (remote_command, set_remote_cmd): Remove.
12316 (_initialize_remote): Use add_basic_prefix_cmd.
12317 * record-full.c (set_record_full_command)
12318 (show_record_full_command): Remove.
12319 (_initialize_record_full): Use add_basic_prefix_cmd,
12320 add_show_prefix_cmd.
12321 * record-btrace.c (cmd_set_record_btrace)
12322 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12323 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12324 (cmd_show_record_btrace_pt): Remove.
12325 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12326 add_show_prefix_cmd.
12327 * ravenscar-thread.c (set_ravenscar_command)
12328 (show_ravenscar_command): Remove.
12329 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12330 add_show_prefix_cmd.
12331 * mips-tdep.c (show_mips_command, set_mips_command)
12332 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12333 add_show_prefix_cmd.
12334 * maint.c (maintenance_command, maintenance_info_command)
12335 (maintenance_check_command, maintenance_print_command)
12336 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12337 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12338 add_show_prefix_cmd.
12339 (show_per_command_cmd): Remove.
12340 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12341 Remove.
12342 (maintenance_show_test_settings_cmd): Remove.
12343 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12344 add_show_prefix_cmd.
12345 * maint-test-options.c (maintenance_test_options_command):
12346 Remove.
12347 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12348 * macrocmd.c (macro_command): Remove
12349 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12350 * language.c (set_check, show_check): Remove.
12351 (_initialize_language): Use add_basic_prefix_cmd,
12352 add_show_prefix_cmd.
12353 * infcmd.c (unset_command): Remove.
12354 (_initialize_infcmd): Use add_basic_prefix_cmd.
12355 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12356 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12357 add_show_prefix_cmd.
12358 * go32-nat.c (go32_info_dos_command): Remove.
12359 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12360 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12361 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12362 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12363 (_initialize_frame): Use add_basic_prefix_cmd,
12364 add_show_prefix_cmd.
12365 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12366 (_initialize_dcache): Use add_basic_prefix_cmd,
12367 add_show_prefix_cmd.
12368 * cp-support.c (maint_cplus_command): Remove.
12369 (_initialize_cp_support): Use add_basic_prefix_cmd.
12370 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12371 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12372 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12373 add_basic_prefix_cmd, add_show_prefix_cmd.
12374 * breakpoint.c (save_command): Remove.
12375 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12376 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12377 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12378 add_show_prefix_cmd.
12379 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12380 (set_ada_command, show_ada_command): Remove.
12381 (_initialize_ada_language): Use add_basic_prefix_cmd,
12382 add_show_prefix_cmd.
12383 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12384
12385 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12386
12387 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12388 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12389
12390 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12391
12392 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12393 warning messages.
12394
12395 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12396
12397 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12398 import table is not at beginning of .idata section.
12399
12400 2020-04-16 Pedro Alves <palves@redhat.com>
12401
12402 * inferior.c (delete_inferior): Use delete operator directly
12403 instead of delete_program_space.
12404 * progspace.c (add_program_space): New, factored out from
12405 program_space::program_space.
12406 (remove_program_space): New, factored out from
12407 delete_program_space.
12408 (program_space::program_space): Remove intro comment. Rewrite.
12409 (program_space::~program_space): Remove intro comment. Call
12410 remove_program_space.
12411 (delete_program_space): Delete.
12412 * progspace.h (program_space::program_space): Make explicit. Move
12413 intro comment here, adjusted.
12414 (program_space::~program_space): Move intro comment here,
12415 adjusted.
12416 (delete_program_space): Remove.
12417
12418 2020-04-16 Tom Tromey <tromey@adacore.com>
12419
12420 * windows-nat.c (windows_nat::handle_access_violation): New
12421 function.
12422 * nat/windows-nat.h (handle_access_violation): Declare.
12423 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12424 windows-nat.c. Call handle_access_violation.
12425
12426 2020-04-16 Tom de Vries <tdevries@suse.de>
12427
12428 PR symtab/25791
12429 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12430 CUs without psymtab.
12431
12432 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12433
12434 * python/python.c (do_start_initialization): Don't call
12435 PyEval_InitThreads for Python 3.9 and beyond.
12436
12437 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12438
12439 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12440 thread functions.
12441 (obsd_nat_target::wait): Likewise.
12442
12443 2020-04-15 Tom Tromey <tromey@adacore.com>
12444
12445 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12446 (DEBUG_EXCEPT): Use debug_printf.
12447
12448 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12449
12450 * completer.c (class completion_tracker::completion_hash_entry)
12451 <hash_name>: New member function.
12452 (completion_tracker::discard_completions): New callback to hash a
12453 completion_hash_entry, pass this to htab_create_alloc.
12454
12455 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12456
12457 * windows-nat.c (windows_make_so): Warn rather than stopping with
12458 an error if realpath() fails.
12459
12460 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12461
12462 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12463 (nbsd_nat_target::info_proc): Add do_status.
12464
12465 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12466 Tom de Vries <tdevries@suse.de>
12467
12468 PR symtab/25718
12469 * psympriv.h (struct partial_symtab::read_symtab)
12470 (struct partial_symtab::expand_psymtab)
12471 (struct partial_symtab::read_dependencies): Update comments.
12472 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12473 read_symtab for includer.
12474 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12475 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12476 (struct dwarf2_include_psymtab::m_readin): Remove.
12477 (struct dwarf2_include_psymtab::includer): New member function.
12478 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12479
12480 2020-04-14 Tom de Vries <tdevries@suse.de>
12481
12482 PR symtab/25720
12483 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12484 with NULL symbol_matcher and lookup_name.
12485 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12486 and lookup_name.
12487 * dwarf2/read.c (dw2_expand_symtabs_matching)
12488 (dw2_debug_names_expand_symtabs_matching): Same.
12489 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12490 Make lookup_name a pointer. Update comment.
12491 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12492 lookup_name being a pointer.
12493 * symfile.c (expand_symtabs_matching): Same.
12494 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12495 * linespec.c (iterate_over_all_matching_symtabs): Same.
12496
12497 2020-04-13 Tom Tromey <tom@tromey.com>
12498
12499 * run-on-main-thread.c: Update include.
12500 * unittests/main-thread-selftests.c: Update include.
12501 * tui/tui-win.c: Update include.
12502 * tui/tui-io.c: Update include.
12503 * tui/tui-interp.c: Update include.
12504 * tui/tui-hooks.c: Update include.
12505 * top.h: Update include.
12506 * top.c: Update include.
12507 * ser-base.c: Update include.
12508 * remote.c: Update include.
12509 * remote-notif.c: Update include.
12510 * remote-fileio.c: Update include.
12511 * record-full.c: Update include.
12512 * record-btrace.c: Update include.
12513 * python/python.c: Update include.
12514 * posix-hdep.c: Update include.
12515 * mingw-hdep.c: Update include.
12516 * mi/mi-main.c: Update include.
12517 * mi/mi-interp.c: Update include.
12518 * main.c: Update include.
12519 * linux-nat.c: Update include.
12520 * interps.c: Update include.
12521 * infrun.c: Update include.
12522 * inf-loop.c: Update include.
12523 * event-top.c: Update include.
12524 * event-loop.c: Move to ../gdbsupport/.
12525 * event-loop.h: Move to ../gdbsupport/.
12526 * async-event.h: Update include.
12527 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12528
12529 2020-04-13 Tom Tromey <tom@tromey.com>
12530
12531 * tui/tui-win.c: Include async-event.h.
12532 * remote.c: Include async-event.h.
12533 * remote-notif.c: Include async-event.h.
12534 * record-full.c: Include async-event.h.
12535 * record-btrace.c: Include async-event.h.
12536 * infrun.c: Include async-event.h.
12537 * event-top.c: Include async-event.h.
12538 * event-loop.h: Move some declarations to async-event.h.
12539 * event-loop.c: Don't include ser-event.h or top.h. Move some
12540 code to async-event.c.
12541 * async-event.h: New file.
12542 * async-event.c: New file.
12543 * Makefile.in (COMMON_SFILES): Add async-event.c.
12544 (HFILES_NO_SRCDIR): Add async-event.h.
12545
12546 2020-04-13 Tom Tromey <tom@tromey.com>
12547
12548 * utils.c (flush_streams): New function.
12549 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12550
12551 2020-04-13 Tom Tromey <tom@tromey.com>
12552
12553 * event-loop.c (handle_file_event): Use warning, not
12554 printf_unfiltered.
12555
12556 2020-04-13 Tom Tromey <tom@tromey.com>
12557
12558 * event-loop.c: Include <chrono>.
12559
12560 2020-04-13 Tom Tromey <tom@tromey.com>
12561
12562 * gdb_select.h: Move to ../gdbsupport/.
12563 * event-loop.c: Update include path.
12564 * top.c: Update include path.
12565 * ser-base.c: Update include path.
12566 * ui-file.c: Update include path.
12567 * ser-tcp.c: Update include path.
12568 * guile/scm-ports.c: Update include path.
12569 * posix-hdep.c: Update include path.
12570 * ser-unix.c: Update include path.
12571 * gdb_usleep.c: Update include path.
12572 * mingw-hdep.c: Update include path.
12573 * inflow.c: Update include path.
12574 * infrun.c: Update include path.
12575 * event-top.c: Update include path.
12576
12577 2020-04-13 Tom Tromey <tom@tromey.com>
12578
12579 * configure: Rebuild.
12580 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12581
12582 2020-04-13 Tom Tromey <tom@tromey.com>
12583
12584 * event-loop.h (start_event_loop): Don't declare.
12585 * event-loop.c (start_event_loop): Move...
12586 * main.c (start_event_loop): ...here. Now static.
12587
12588 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12589
12590 * MAINTAINERS: Update my email address.
12591
12592 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12593
12594 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12595 IP_ALL.
12596
12597 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12598
12599 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12600 (nbsd_nat_target::info_proc): Add do_cmdline.
12601
12602 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12603
12604 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12605 (nbsd_nat_target::info_proc): Add do_cwd.
12606
12607 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12608
12609 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12610
12611 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12612
12613 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12614 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12615 (nbsd_nat_target::info_proc): New functions.
12616 * nbsd-nat.c (kinfo_get_vmmap): New function.
12617 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12618 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12619 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12620 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12621 functions.
12622 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12623 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12624 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12625 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12626 (KINFO_VME_FLAG_GROWS_DOWN): New.
12627
12628 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12629
12630 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12631 bit shift.
12632
12633 2020-04-10 Tom Tromey <tromey@adacore.com>
12634
12635 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12636
12637 2020-04-10 Tom Tromey <tromey@adacore.com>
12638
12639 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12640 separate debug files.
12641
12642 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12643
12644 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12645 Move to...
12646 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12647 ... here.
12648 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12649 Check for STATUS_WX86_BREAKPOINT.
12650 (windows_nat_target::wait): Same.
12651
12652 2020-04-10 Tom de Vries <tdevries@suse.de>
12653
12654 PR cli/25808
12655 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12656
12657 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12658
12659 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12660 (Write After Approval): Remove Tom de Vries.
12661
12662 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12663
12664 revert partially:
12665 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12666
12667 * buildsym.c (record_line): Fix undefined behavior and preserve
12668 lines at eof.
12669
12670 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12671
12672 * auxv.h (svr4_auxv_parse): New.
12673 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12674 and generic_auxv_parse.
12675 (svr4_auxv_parse): Add.
12676 * obsd-tdep.c: Include "auxv.h".
12677 (obsd_auxv_parse): Remove.
12678 (obsd_init_abi): Remove comment.
12679 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12680 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12681 * nbsd-tdep.c: Include "auxv.h".
12682 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12683
12684 2020-04-08 Tom Tromey <tromey@adacore.com>
12685
12686 * nat/windows-nat.h (last_wait_event): Don't declare.
12687 (wait_for_debug_event): Update comment.
12688 * nat/windows-nat.c (last_wait_event): Now static.
12689
12690 2020-04-08 Tom Tromey <tromey@adacore.com>
12691
12692 * windows-nat.c (wait_for_debug_event): Move to
12693 nat/windows-nat.c.
12694 * nat/windows-nat.h (wait_for_debug_event): Declare.
12695 * nat/windows-nat.c (wait_for_debug_event): Move from
12696 windows-nat.c. No longer static.
12697
12698 2020-04-08 Tom Tromey <tromey@adacore.com>
12699
12700 * windows-nat.c (get_windows_debug_event): Use
12701 fetch_pending_stop.
12702 * nat/windows-nat.h (fetch_pending_stop): Declare.
12703 * nat/windows-nat.c (fetch_pending_stop): New function.
12704
12705 2020-04-08 Tom Tromey <tromey@adacore.com>
12706
12707 * windows-nat.c (windows_continue): Use matching_pending_stop and
12708 continue_last_debug_event.
12709 * nat/windows-nat.h (matching_pending_stop)
12710 (continue_last_debug_event): Declare.
12711 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12712 (matching_pending_stop, continue_last_debug_event): New
12713 functions.
12714
12715 2020-04-08 Tom Tromey <tromey@adacore.com>
12716
12717 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12718 (handle_exception_result): Move to nat/windows-nat.h.
12719 (DEBUG_EXCEPTION_SIMPLE): Remove.
12720 (windows_nat::handle_ms_vc_exception): New function.
12721 (handle_exception): Move to nat/windows-nat.c.
12722 (get_windows_debug_event): Update.
12723 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12724 nat/windows-nat.c.
12725 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12726 (handle_exception_result): Move from windows-nat.c.
12727 (handle_exception): Declare.
12728 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12729 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12730 windows-nat.c.
12731
12732 2020-04-08 Tom Tromey <tromey@adacore.com>
12733
12734 * windows-nat.c (exception_count, event_count): Remove.
12735 (handle_exception, get_windows_debug_event)
12736 (do_initial_windows_stuff): Update.
12737
12738 2020-04-08 Tom Tromey <tromey@adacore.com>
12739
12740 * windows-nat.c (windows_nat::handle_load_dll)
12741 (windows_nat::handle_unload_dll): Rename. No longer static.
12742 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12743 Declare.
12744
12745 2020-04-08 Tom Tromey <tromey@adacore.com>
12746
12747 * complaints.h (stop_whining): Declare at top-level.
12748 (complaint): Don't declare stop_whining.
12749
12750 2020-04-08 Tom Tromey <tromey@adacore.com>
12751
12752 * windows-nat.c (windows_nat::handle_output_debug_string):
12753 Rename. No longer static.
12754 * nat/windows-nat.h (handle_output_debug_string): Declare.
12755
12756 2020-04-08 Tom Tromey <tromey@adacore.com>
12757
12758 * windows-nat.c (current_process_handle, current_process_id)
12759 (main_thread_id, last_sig, current_event, last_wait_event)
12760 (current_windows_thread, desired_stop_thread_id, pending_stops)
12761 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12762 (display_selectors, fake_create_process)
12763 (get_windows_debug_event): Update.
12764 * nat/windows-nat.h (current_process_handle, current_process_id)
12765 (main_thread_id, last_sig, current_event, last_wait_event)
12766 (current_windows_thread, desired_stop_thread_id, pending_stops)
12767 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12768 * nat/windows-nat.c (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 (siginfo_er): New globals. Move from windows-nat.c.
12772
12773 2020-04-08 Tom Tromey <tromey@adacore.com>
12774
12775 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12776 (handle_load_dll): Update.
12777 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12778
12779 2020-04-08 Tom Tromey <tromey@adacore.com>
12780
12781 * windows-nat.c (enum thread_disposition_type): Move to
12782 nat/windows-nat.h.
12783 (windows_nat::thread_rec): Rename from thread_rec. No longer
12784 static.
12785 (windows_add_thread, windows_nat_target::fetch_registers)
12786 (windows_nat_target::store_registers, handle_exception)
12787 (windows_nat_target::resume, get_windows_debug_event)
12788 (windows_nat_target::get_tib_address)
12789 (windows_nat_target::thread_name)
12790 (windows_nat_target::thread_alive): Update.
12791 * nat/windows-nat.h (enum thread_disposition_type): Move from
12792 windows-nat.c.
12793 (thread_rec): Declare.
12794
12795 2020-04-08 Tom Tromey <tromey@adacore.com>
12796
12797 * windows-nat.c: Add "using namespace".
12798 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12799 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12800
12801 2020-04-08 Tom Tromey <tromey@adacore.com>
12802
12803 * nat/windows-nat.h (struct windows_thread_info): Declare
12804 destructor.
12805 * nat/windows-nat.c (~windows_thread_info): New.
12806
12807 2020-04-08 Tom Tromey <tromey@adacore.com>
12808
12809 PR gdb/22992
12810 * windows-nat.c (current_event): Update comment.
12811 (last_wait_event, desired_stop_thread_id): New globals.
12812 (struct pending_stop): New.
12813 (pending_stops): New global.
12814 (windows_nat_target) <stopped_by_sw_breakpoint>
12815 <supports_stopped_by_sw_breakpoint>: New methods.
12816 (windows_fetch_one_register): Add assertions. Adjust PC.
12817 (windows_continue): Handle pending stops. Suspend other threads
12818 when stepping. Use last_wait_event
12819 (wait_for_debug_event): New function.
12820 (get_windows_debug_event): Use wait_for_debug_event. Handle
12821 pending stops. Queue spurious stops.
12822 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12823 (windows_nat_target::kill): Use wait_for_debug_event.
12824 * nat/windows-nat.h (struct windows_thread_info)
12825 <stopped_at_software_breakpoint>: New field.
12826 * nat/windows-nat.c (windows_thread_info::resume): Clear
12827 stopped_at_software_breakpoint.
12828
12829 2020-04-08 Tom Tromey <tromey@adacore.com>
12830
12831 * windows-nat.c (enum thread_disposition_type): New.
12832 (thread_rec): Replace "get_context" parameter with "disposition";
12833 change type.
12834 (windows_add_thread, windows_nat_target::fetch_registers)
12835 (windows_nat_target::store_registers, handle_exception)
12836 (windows_nat_target::resume, get_windows_debug_event)
12837 (windows_nat_target::get_tib_address)
12838 (windows_nat_target::thread_name)
12839 (windows_nat_target::thread_alive): Update.
12840
12841 2020-04-08 Tom Tromey <tromey@adacore.com>
12842
12843 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12844 (windows_continue): Use windows_continue::resume.
12845 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12846 resume>: Declare new methods.
12847 * nat/windows-nat.c: New file.
12848 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12849
12850 2020-04-08 Tom Tromey <tromey@adacore.com>
12851
12852 * windows-nat.c (windows_add_thread, windows_delete_thread)
12853 (windows_nat_target::fetch_registers)
12854 (windows_nat_target::store_registers, fake_create_process)
12855 (windows_nat_target::resume, windows_nat_target::resume)
12856 (get_windows_debug_event, windows_nat_target::wait)
12857 (windows_nat_target::pid_to_str)
12858 (windows_nat_target::get_tib_address)
12859 (windows_nat_target::get_ada_task_ptid)
12860 (windows_nat_target::thread_name)
12861 (windows_nat_target::thread_alive): Use lwp, not tid.
12862
12863 2020-04-08 Tom Tromey <tromey@adacore.com>
12864
12865 * windows-nat.c (handle_exception)
12866 (windows_nat_target::thread_name): Update.
12867 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12868 <name>: Now unique_xmalloc_ptr.
12869
12870 2020-04-08 Tom Tromey <tromey@adacore.com>
12871
12872 * windows-nat.c (thread_rec)
12873 (windows_nat_target::fetch_registers): Update.
12874 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12875 Update comment.
12876 <debug_registers_changed, reload_context>: Now bool.
12877
12878 2020-04-08 Tom Tromey <tromey@adacore.com>
12879
12880 * windows-nat.c (windows_add_thread): Use new.
12881 (windows_init_thread_list, windows_delete_thread): Use delete.
12882 (get_windows_debug_event): Update.
12883 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12884 destructor, and initializers.
12885
12886 2020-04-08 Tom Tromey <tromey@adacore.com>
12887
12888 * windows-nat.c (struct windows_thread_info): Remove.
12889 * nat/windows-nat.h: New file.
12890
12891 2020-04-08 Tom Tromey <tromey@adacore.com>
12892
12893 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12894 (thread_rec, windows_add_thread, windows_delete_thread)
12895 (windows_continue): Update.
12896
12897 2020-04-08 Tom Tromey <tromey@adacore.com>
12898
12899 * windows-nat.c (struct windows_thread_info): Remove typedef.
12900 (thread_head): Remove.
12901 (thread_list): New global.
12902 (thread_rec, windows_add_thread, windows_init_thread_list)
12903 (windows_delete_thread, windows_continue): Update.
12904
12905 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12906
12907 * windows-tdep.h (windows_init_abi): Add comment.
12908 (cygwin_init_abi): New declaration.
12909 * windows-tdep.c: Split signal enumeration in two, one for
12910 Windows and one for Cygwin.
12911 (windows_gdb_signal_to_target): Only deal with signal of the
12912 Windows OS ABI.
12913 (cygwin_gdb_signal_to_target): New function.
12914 (windows_init_abi): Rename to windows_init_abi_common, don't set
12915 gdb_signal_to_target gdbarch method. Add new new function with
12916 this name.
12917 (cygwin_init_abi): New function.
12918 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12919 comment. Don't call windows_init_abi.
12920 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12921 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12922 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12923 i386_windows_init_abi_common, don't call windows_init_abi. Add
12924 a new function of this name.
12925 (i386_cygwin_init_abi): New function.
12926 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12927 OS ABI Cygwin.
12928
12929 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12930
12931 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12932 parameter.c.
12933 (dwarf2_read_gdb_index): Update.
12934
12935 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12936
12937 * nbsd-tdep.c: Include "objfiles.h".
12938 (nbsd_skip_solib_resolver): New.
12939 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12940
12941 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12942
12943 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12944 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12945 with DW_LLE_base_addressx are being emitted in DWARFv5.
12946 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12947 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12948 unsigned integer.
12949
12950 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12951
12952 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12953 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12954 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12955 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12956 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12957 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12958 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12959
12960
12961 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12962
12963 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12964 (read_loclist_index): New function definition.
12965 (lookup_loclist_base): New function definition.
12966 (read_loclist_header): New function definition.
12967 (dwarf2_cu): Add loclist_base and loclist_header field.
12968 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12969 (read_full_die_1): Read the value of DW_AT_loclists_base.
12970 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12971 (read_attribute_value): Handle DW_FORM_loclistx.
12972 (skip_one_die): Handle DW_FORM_loclistx.
12973 (loclist_header): New structure declaration.
12974 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12975
12976 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12977
12978 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12979 constructor. Remove `addr` parameter from other constructor and
12980 add `per_cu` parameter.
12981 * dwarf2/read.c (create_partial_symtab): Update.
12982
12983 2020-04-07 Tom de Vries <tdevries@suse.de>
12984
12985 PR symtab/25796
12986 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12987 (partial_die_info::fixup): Inherit has_const_value.
12988
12989 2020-04-07 Tom de Vries <tdevries@suse.de>
12990
12991 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12992 symbols without address.
12993
12994 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12995
12996 * nbsd-nat.h (struct thread_info): Add forward declaration.
12997 (nbsd_nat_target::thread_alive): Add.
12998 (nbsd_nat_target::thread_name): Likewise.
12999 (nbsd_nat_target::update_thread_list): Likewise.
13000 (update_thread_list::post_attach): Likewise.
13001 (post_attach::pid_to_str): Likewise.
13002 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13003 (nbsd_thread_lister): Add.
13004 (nbsd_nat_target::thread_alive): Likewise.
13005 (nbsd_nat_target::thread_name): Likewise.
13006 (nbsd_add_threads): Likewise.
13007 (update_thread_list::post_attach): Likewise.
13008 (nbsd_nat_target::update_thread_list): Likewise.
13009 (post_attach::pid_to_str): Likewise.
13010
13011 2020-04-06 Tom Tromey <tromey@adacore.com>
13012
13013 * ada-valprint.c (print_variant_part): Extract the variant field.
13014 (print_field_values): Use the field as the outer value when
13015 recursing.
13016
13017 2020-04-06 Tom Tromey <tromey@adacore.com>
13018
13019 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13020 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13021 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13022 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13023 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13024
13025 2020-04-06 Tom Tromey <tromey@adacore.com>
13026
13027 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13028 TYPE_CODE_ERROR.
13029
13030 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13031
13032 * nbsd-tdep.c: Include "gdbarch.h".
13033 Define enum with NetBSD signal numbers.
13034 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13035 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13036 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13037 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13038 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13039 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13040 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13041 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13042 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13043 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13044 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13045 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13046
13047 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
13048
13049 PR gdb/25325
13050 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13051
13052 2020-04-03 Tom Tromey <tromey@adacore.com>
13053
13054 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13055 Read constant block.
13056
13057 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13058
13059 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13060 (gdb_bfd_get_full_section_contents): New declaration.
13061 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13062 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13063 gdb_bfd_get_full_section_contents.
13064
13065 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13066
13067 * exec.c (build_section_table): Replace internal_error with
13068 gdb_assert.
13069 (section_table_xfer_memory_partial): Likewise.
13070 * mdebugread.c (parse_partial_symbols): Likewise.
13071 * psymtab.c (lookup_partial_symbol): Likewise.
13072 * utils.c (wrap_here): Likewise.
13073
13074 2020-04-02 Tom Tromey <tromey@adacore.com>
13075
13076 * f-lang.c (build_fortran_types): Use arch_type to initialize
13077 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13078
13079 2020-04-02 Tom Tromey <tromey@adacore.com>
13080
13081 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13082 of attributes.
13083
13084 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13085 Bernd Edlinger <bernd.edlinger@hotmail.de>
13086 Tom Tromey <tromey@adacore.com>
13087
13088 * buildsym.c (buildsym_compunit::record_line): Remove
13089 deduplication code.
13090
13091 2020-04-02 Tom de Vries <tdevries@suse.de>
13092
13093 PR ada/24671
13094 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13095
13096 2020-04-02 Tom de Vries <tdevries@suse.de>
13097
13098 * dwarf2/read.c (dwarf2_gdb_index_functions,
13099 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13100 NULL.
13101 * psymtab.c (psym_lookup_global_symbol_language): New function.
13102 (psym_functions): Init psym_lookup_global_symbol_language with
13103 psym_lookup_global_symbol_language.
13104 * symfile-debug.c (debug_sym_quick_functions): Init
13105 lookup_global_symbol_language with NULL.
13106 * symfile.c (set_initial_language): Remove fixme comment.
13107 * symfile.h (struct quick_symbol_functions): Add
13108 lookup_global_symbol_language.
13109 * symtab.c (find_quick_global_symbol_language): New function.
13110 (find_main_name): Use find_quick_global_symbol_language.
13111
13112 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13113
13114 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13115
13116 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13117
13118 * buildsym.c (record_line): Fix undefined behavior and preserve
13119 lines at eof.
13120
13121 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13122
13123 * buildsym.c (record_line): Fix the resizing condition.
13124
13125 2020-04-01 Tom Tromey <tom@tromey.com>
13126
13127 * value.h (value_literal_complex): Add comment.
13128 * valops.c (value_literal_complex): Refer to value.h.
13129
13130 2020-04-01 Tom Tromey <tom@tromey.com>
13131
13132 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13133 (scalar_type): New rule, from typebase.
13134 (typebase): Use scalar_type. Recognize complex types.
13135 (field_name): Handle FLOAT_KEYWORD.
13136 (ident_tokens): Add _Complex and __complex__.
13137
13138 2020-04-01 Tom Tromey <tom@tromey.com>
13139
13140 PR exp/25299:
13141 * valarith.c (promotion_type, complex_binop): New functions.
13142 (scalar_binop): Handle complex numbers. Use promotion_type.
13143 (value_pos, value_neg, value_complement): Handle complex numbers.
13144
13145 2020-04-01 Tom Tromey <tom@tromey.com>
13146
13147 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13148 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13149 (parse_number): Handle complex numbers.
13150
13151 2020-04-01 Tom Tromey <tom@tromey.com>
13152
13153 * c-valprint.c (c_decorations): Change complex suffix to "i".
13154
13155 2020-04-01 Tom Tromey <tom@tromey.com>
13156
13157 * valprint.c (generic_value_print_complex): Use accessors.
13158 * value.h (value_real_part, value_imaginary_part): Declare.
13159 * valops.c (value_real_part, value_imaginary_part): New
13160 functions.
13161 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13162
13163 2020-04-01 Tom Tromey <tom@tromey.com>
13164
13165 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13166 (read_range_type): Update.
13167 * mdebugread.c (basic_type): Update.
13168 * go-lang.c (build_go_types): Use init_complex_type.
13169 * gdbtypes.h (struct main_type) <complex_type>: New member.
13170 (init_complex_type): Update.
13171 (arch_complex_type): Don't declare.
13172 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13173 Make name if none given. Use alloc_type_copy. Look for cached
13174 complex type.
13175 (arch_complex_type): Remove.
13176 (gdbtypes_post_init): Use init_complex_type.
13177 * f-lang.c (build_fortran_types): Use init_complex_type.
13178 * dwarf2/read.c (read_base_type): Update.
13179 * d-lang.c (build_d_types): Use init_complex_type.
13180 * ctfread.c (read_base_type): Update.
13181
13182 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13183
13184 * infrun.c (stop_all_threads): Update assertion, plus when
13185 stopping threads, take into account that we might be trying
13186 to stop an all-stop target.
13187 (stop_waiting): Call 'stop_all_threads' if there exists a
13188 non-stop target.
13189
13190 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13191
13192 * target.h (exists_non_stop_target): New function declaration.
13193 * target.c (exists_non_stop_target): New function.
13194
13195 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13196
13197 PR gdb/24789
13198 * eval.c (is_integral_or_integral_reference): New function.
13199 (evaluate_subexp_standard): Allow integer references in
13200 pointer arithmetic.
13201
13202 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13203
13204 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13205 check for no ptid in the stop reply when the target is non-stop.
13206
13207 2020-04-01 Tom Tromey <tromey@adacore.com>
13208
13209 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13210 "name" parameter to rvalue reference. Initialize m_name_holder.
13211 <lookup_name_info>: New overloads.
13212 <name>: Return gdb::string_view.
13213 <c_str>: New method.
13214 <make_ignore_params>: Update.
13215 <search_name_hash>: Update.
13216 <language_lookup_name>: Return const char *.
13217 <m_name>: Change type.
13218 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13219 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13220 (lookup_name_info::match_any): Update.
13221 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13222 Update.
13223 * minsyms.c (linkage_name_str): Update.
13224 * language.c (default_symbol_name_matcher): Update.
13225 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13226 Update.
13227 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13228 (ada_lookup_name_info::ada_lookup_name_info): Update.
13229 (literal_symbol_name_matcher): Update.
13230
13231 2020-04-01 Tom Tromey <tromey@adacore.com>
13232
13233 * psymtab.c (psymtab_search_name): Remove function.
13234 (psym_lookup_symbol): Create search name and lookup name here.
13235 (lookup_partial_symbol): Remove "name" parameter; add
13236 lookup_name.
13237 (psym_expand_symtabs_for_function): Update.
13238
13239 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13240
13241 PR tui/25597:
13242 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13243
13244 2020-03-31 Tom Tromey <tromey@adacore.com>
13245
13246 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13247 memcpy.
13248
13249 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13250
13251 * features/riscv/32bit-csr.xml: Regenerated.
13252 * features/riscv/64bit-csr.xml: Regenerated.
13253
13254 2020-03-30 Tom Tromey <tromey@adacore.com>
13255
13256 * ada-valprint.c (print_variant_part): Update.
13257 * ada-lang.h (ada_which_variant_applies): Update.
13258 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13259 outer_valaddr parameters; replace with "outer" value parameter.
13260 (to_fixed_variant_branch_type): Update.
13261
13262 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13263
13264 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13265 <list>. Remove inclusion of observable.h.
13266 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13267 (struct arch_lwp_info): New struct.
13268 (class ppc_linux_dreg_interface): New class.
13269 (struct ppc_linux_process_info): New struct.
13270 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13271 <low_new_clone, low_forget_process, low_prepare_to_resume>
13272 <copy_thread_dreg_state, mark_thread_stale>
13273 <mark_debug_registers_changed, register_hw_breakpoint>
13274 <clear_hw_breakpoint, register_wp, clear_wp>
13275 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13276 <num_memory_accesses, get_trigger_type>
13277 <create_watchpoint_request, hwdebug_point_cmp>
13278 <init_arch_lwp_info, get_arch_lwp_info>
13279 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13280 methods.
13281 <struct ptid_hash>: New inner struct.
13282 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13283 members.
13284 (saved_dabr_value, hwdebug_info, max_slots_number)
13285 (struct hw_break_tuple, struct thread_points, ppc_threads)
13286 (have_ptrace_hwdebug_interface)
13287 (hwdebug_find_thread_points_by_tid)
13288 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13289 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13290 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13291 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13292 use m_dreg_interface.
13293 (hwdebug_point_cmp): Change to...
13294 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13295 reference arguments instead of pointers.
13296 (ppc_linux_nat_target::ranged_break_num_registers): Use
13297 m_dreg_interface.
13298 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13299 m_dreg_interface. Call register_hw_breakpoint.
13300 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13301 m_dreg_interface. Call clear_hw_breakpoint.
13302 (get_trigger_type): Change to...
13303 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13304 comment.
13305 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13306 use m_dreg_interface. Call register_hw_breakpoint.
13307 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13308 use m_dreg_interface. Call clear_hw_breakpoint.
13309 (can_use_watchpoint_cond_accel): Change to...
13310 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13311 method. Update comment, use m_dreg_interface and
13312 m_process_info.
13313 (calculate_dvc): Change to...
13314 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13315 m_dreg_interface.
13316 (num_memory_accesses): Change to...
13317 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13318 (check_condition): Change to...
13319 (ppc_linux_nat_target::check_condition): ...this method.
13320 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13321 comment, use m_dreg_interface.
13322 (create_watchpoint_request): Change to...
13323 (ppc_linux_nat_target::create_watchpoint_request): ...this
13324 method. Use m_dreg_interface.
13325 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13326 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13327 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13328 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13329 (ppc_linux_nat_target::low_forget_process)
13330 (ppc_linux_nat_target::low_new_fork)
13331 (ppc_linux_nat_target::low_new_clone)
13332 (ppc_linux_nat_target::low_delete_thread)
13333 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13334 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13335 only call mark_thread_stale.
13336 (ppc_linux_thread_exit): Remove.
13337 (ppc_linux_nat_target::stopped_data_address): Change to...
13338 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13339 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13340 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13341 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13342 comment. Call low_stopped_data_address.
13343 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13344 m_dreg_interface.
13345 (ppc_linux_nat_target::masked_watch_num_registers): Use
13346 m_dreg_interface.
13347 (ppc_linux_nat_target::copy_thread_dreg_state)
13348 (ppc_linux_nat_target::mark_thread_stale)
13349 (ppc_linux_nat_target::mark_debug_registers_changed)
13350 (ppc_linux_nat_target::register_hw_breakpoint)
13351 (ppc_linux_nat_target::clear_hw_breakpoint)
13352 (ppc_linux_nat_target::register_wp)
13353 (ppc_linux_nat_target::clear_wp)
13354 (ppc_linux_nat_target::init_arch_lwp_info)
13355 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13356 (_initialize_ppc_linux_nat): Remove observer callback.
13357
13358 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13359
13360 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13361 (ppc_linux_nat_target::auxv_parse)
13362 (ppc_linux_nat_target::read_description)
13363 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13364 Move up.
13365
13366 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13367
13368 * linux-nat.h (low_new_clone): New method.
13369 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13370
13371 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13372
13373 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13374 (dbx_expand_psymtab): ... this.
13375 (start_psymtab): Update.
13376 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13377 (mdebug_expand_psymtab): ... this.
13378 (parse_partial_symbols): Update.
13379 (new_psymtab): Update.
13380 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13381 (xcoff_expand_psymtab): ... this.
13382 (xcoff_start_psymtab): Update.
13383
13384 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13385
13386 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13387 <expand_dependencies>: ... this.
13388 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13389 (partial_symtab::expand_dependencies): ... this.
13390 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13391 Update.
13392 (dwarf2_psymtab::expand_psymtab): Update.
13393 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13394 * mdebugread.c (psymtab_to_symtab_1): Update.
13395 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13396
13397 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13398
13399 * psympriv.h (discard_psymtab): Remove.
13400 * dbxread.c (dbx_end_psymtab): Update.
13401 * xcoffread.c (xcoff_end_psymtab): Update.
13402
13403 2020-03-28 Tom Tromey <tom@tromey.com>
13404
13405 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13406 comment.
13407
13408 2020-03-28 Tom Tromey <tom@tromey.com>
13409
13410 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13411
13412 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13413
13414 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13415
13416 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13417
13418 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13419
13420 2020-03-26 Tom Tromey <tom@tromey.com>
13421
13422 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13423 (mark_common_block_symbol_computed, read_tag_string_type)
13424 (attr_to_dynamic_prop, read_subrange_type): Update.
13425 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13426 to be methods on struct attribute.
13427 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13428 (read_call_site_scope, partial_die_info::read)
13429 (partial_die_info::read, lookup_die_type, follow_die_ref):
13430 Update.
13431 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13432 from dwarf2_get_ref_die_offset.
13433 (attribute::constant_value): New method, from
13434 dwarf2_get_attr_constant_value.
13435 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13436 Declare method.
13437 <constant_value>: New method.
13438
13439 2020-03-26 Tom Tromey <tom@tromey.com>
13440
13441 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13442 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13443 (dwarf_type_encoding_name): Move to stringify.c.
13444 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13445 * dwarf2/stringify.c: New file.
13446 * dwarf2/stringify.h: New file.
13447
13448 2020-03-26 Tom Tromey <tom@tromey.com>
13449
13450 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13451 Rewrite.
13452
13453 2020-03-26 Tom Tromey <tom@tromey.com>
13454
13455 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13456 methods.
13457 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13458 (lookup_ranges_base): Likewise.
13459 (read_cutu_die_from_dwo, read_full_die_1): Update.
13460
13461 2020-03-26 Tom Tromey <tom@tromey.com>
13462
13463 * dwarf2/read.c (read_import_statement, read_file_scope)
13464 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13465 (read_lexical_block_scope, read_call_site_scope)
13466 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13467 (handle_struct_member_die, process_structure_scope)
13468 (update_enumeration_type_from_children)
13469 (process_enumeration_scope, read_array_type, read_common_block)
13470 (read_namespace, read_module, read_subroutine_type): Update.
13471 (sibling_die): Remove.
13472
13473 2020-03-26 Tom Tromey <tom@tromey.com>
13474
13475 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13476 (build_type_psymtabs_reader, read_structure_type)
13477 (read_enumeration_type, read_full_die_1): Update.
13478 (dwarf2_attr_no_follow): Move to die.h.
13479 * dwarf2/die.h (struct die_info) <attr>: New method.
13480
13481 2020-03-26 Tom Tromey <tom@tromey.com>
13482
13483 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13484 <base_address>: Now an optional.
13485 (dwarf2_find_base_address, dwarf2_rnglists_process)
13486 (dwarf2_ranges_process, fill_in_loclist_baton)
13487 (dwarf2_symbol_mark_computed): Update.
13488
13489 2020-03-26 Tom Tromey <tom@tromey.com>
13490
13491 * dwarf2/read.c (struct die_info): Move to die.h.
13492 * dwarf2/die.h: New file.
13493
13494 2020-03-26 Tom Tromey <tom@tromey.com>
13495
13496 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13497 * dwarf2/read.c
13498 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13499 Move to line-header.c.
13500 (read_checked_initial_length_and_offset, read_formatted_entries):
13501 Likewise.
13502 (dwarf_decode_line_header): Split into two.
13503 * dwarf2/line-header.c
13504 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13505 Move from read.c.
13506 (read_checked_initial_length_and_offset, read_formatted_entries):
13507 Likewise.
13508 (dwarf_decode_line_header): New function, split from read.c.
13509
13510 2020-03-26 Tom Tromey <tom@tromey.com>
13511
13512 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13513 Declare method.
13514 * dwarf2/read.c (read_attribute_value): Update.
13515 (dwarf2_per_objfile::read_line_string): Rename from
13516 read_indirect_line_string.
13517 (read_formatted_entries): Update.
13518
13519 2020-03-26 Tom Tromey <tom@tromey.com>
13520
13521 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13522 variable.
13523
13524 2020-03-26 Tom Tromey <tom@tromey.com>
13525
13526 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13527 const.
13528 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13529 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13530 parameter const.
13531
13532 2020-03-26 Tom Tromey <tom@tromey.com>
13533
13534 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13535 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13536 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13537 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13538
13539 2020-03-26 Tom Tromey <tom@tromey.com>
13540
13541 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13542 file_names_size, file_full_name, file_file_name>: Use const.
13543 <file_name_at, file_names>: Add const overload.
13544 * dwarf2/line-header.c (line_header::file_file_name)
13545 (line_header::file_full_name): Update.
13546
13547 2020-03-26 Tom Tromey <tom@tromey.com>
13548
13549 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13550 (macro_start_file, consume_improper_spaces)
13551 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13552 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13553 (dwarf_decode_macros): Move to macro.c.
13554 * dwarf2/macro.c: New file.
13555 * dwarf2/macro.h: New file.
13556 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13557
13558 2020-03-26 Tom Tromey <tom@tromey.com>
13559
13560 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13561 method.
13562 * dwarf2/section.c: New method. From
13563 read_indirect_string_at_offset_from.
13564 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13565 (read_indirect_string_at_offset_from): Move to section.c.
13566 (read_indirect_string_at_offset): Rewrite.
13567 (read_indirect_line_string_at_offset): Remove.
13568 (read_indirect_string, read_indirect_line_string)
13569 (dwarf_decode_macro_bytes): Update.
13570
13571 2020-03-26 Tom Tromey <tom@tromey.com>
13572
13573 * dwarf2/section.h (struct dwarf2_section_info)
13574 <overload_complaint>: Declare.
13575 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13576 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13577 Rename from dwarf2_section_buffer_overflow_complaint.
13578 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13579 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13580
13581 2020-03-26 Tom Tromey <tom@tromey.com>
13582
13583 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13584 Declare.
13585 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13586 Move from read.c.
13587 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13588 to section.c.
13589
13590 2020-03-26 Tom Tromey <tom@tromey.com>
13591
13592 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13593
13594 2020-03-26 Tom Tromey <tom@tromey.com>
13595
13596 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13597 "builder".
13598 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13599 parameter.
13600 (dwarf_decode_macros): Update.
13601
13602 2020-03-26 Tom Tromey <tom@tromey.com>
13603
13604 * dwarf2/read.c (read_attribute_value): Update.
13605 (read_indirect_string_from_dwz): Move to dwz.c; change into
13606 method.
13607 (dwarf_decode_macro_bytes): Update.
13608 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13609 * dwarf2/dwz.c: New file.
13610 * Makefile.in (COMMON_SFILES): Add dwz.c.
13611
13612 2020-03-26 Tom Tromey <tom@tromey.com>
13613
13614 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13615 * dwarf2/read.c: Add include.
13616 * dwarf2/index-write.c: Add include.
13617 * dwarf2/index-cache.c: Add include.
13618 * dwarf2/dwz.h: New file.
13619
13620 2020-03-25 Tom Tromey <tom@tromey.com>
13621
13622 * compile/compile-object-load.c (get_out_value_type): Mention
13623 correct symbol name in error message.
13624
13625 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13626
13627 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13628
13629 2020-03-25 Tom de Vries <tdevries@suse.de>
13630
13631 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13632 * symmisc.c (dump_symtab_1): Print user and includes fields.
13633 (maintenance_info_symtabs): Same.
13634
13635 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13636
13637 PR gdb/25534
13638 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13639 (riscv_regcache_cooked_write): New function.
13640 (riscv_push_dummy_call): Use new function.
13641 (riscv_return_value): Likewise.
13642
13643 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13644
13645 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13646 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13647 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13648 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13649 * infrun.c (follow_fork): Likewise.
13650 (follow_fork_inferior): Likewise.
13651 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13652 * linux-nat.h (class linux_nat_target): Likewise.
13653 * remote.c (class remote_target) <follow_fork>: Likewise.
13654 (remote_target::follow_fork): Likewise.
13655 * target-delegates.c: Re-generate.
13656 * target.c (default_follow_fork): Likewise.
13657 (target_follow_fork): Likewise.
13658 * target.h (struct target_ops) <follow_fork>: Likewise.
13659 (target_follow_fork): Likewise.
13660
13661 2020-03-24 Tom de Vries <tdevries@suse.de>
13662
13663 * psymtab.c (maintenance_info_psymtabs): Print user field.
13664
13665 2020-03-20 Tom Tromey <tromey@adacore.com>
13666
13667 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13668 const.
13669 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13670 const.
13671
13672 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13673
13674 * ptrace.m4: Don't check for ptrace declaration.
13675 * config.in: Re-generate.
13676 * configure: Re-generate.
13677 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13678 not defined.
13679
13680 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13681
13682 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13683 `PTRACE_TYPE_RET'.
13684 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13685 * sparc-nat.c (gdb_ptrace): Likewise.
13686 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13687
13688 2020-03-20 Tom Tromey <tromey@adacore.com>
13689
13690 * c-exp.y (lex_one_token): Fix assert.
13691
13692 2020-03-20 Tom Tromey <tromey@adacore.com>
13693
13694 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13695 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13696 strncpy call.
13697
13698 2020-03-20 Tom Tromey <tromey@adacore.com>
13699
13700 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13701
13702 2020-03-20 Tom Tromey <tromey@adacore.com>
13703
13704 * ada-valprint.c (print_variant_part): Remove parameters; switch
13705 to value-based API.
13706 (print_field_values): Likewise.
13707 (ada_val_print_struct_union): Likewise.
13708 (ada_value_print_1): Update.
13709
13710 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13711
13712 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13713 nbsd_nat_target instead of inf_ptrace_target.
13714 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13715 nbsd_nat_target.
13716
13717 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13718
13719 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13720 it to the ptrace call.
13721 * (store_registers): Likewise.
13722
13723 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13724
13725 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13726 it to the ptrace call.
13727 * (store_registers): Likewise.
13728
13729 2020-03-19 Luis Machado <luis.machado@linaro.org>
13730
13731 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13732 valid, fetch vg value from ptrace.
13733
13734 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13735 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13736 * inf-ptrace.c: Likewise.
13737 * (gdb_ptrace): Add.
13738 * (inf_ptrace_target::resume): Update.
13739 * (inf_ptrace_target::xfer_partial): Likewise.
13740 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13741 * (inf_ptrace_peek_poke): Update.
13742
13743 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13744
13745 * x86-bsd-nat.c (gdb_ptrace): New.
13746 * (x86bsd_dr_set): Add new argument `ptid'.
13747 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13748 x86bsd_dr_set_addr): Update.
13749
13750 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13751
13752 * remote.c (remote_target::process_stop_reply): Handle events for
13753 all threads differently.
13754
13755 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13756
13757 * completer.c (completion_tracker::remove_completion): Define new
13758 function.
13759 * completer.h (completion_tracker::remove_completion): Declare new
13760 function.
13761 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13762 when adding a C++ function symbol.
13763
13764 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13765
13766 * completer.c (completion_tracker::completion_hash_entry): Define
13767 new class.
13768 (advance_to_filename_complete_word_point): Call
13769 recompute_lowest_common_denominator.
13770 (completion_tracker::completion_tracker): Call discard_completions
13771 to setup the hash table.
13772 (completion_tracker::discard_completions): Allow for being called
13773 from the constructor, pass new equal function, and element deleter
13774 when constructing the hash table. Initialise new class member
13775 variables.
13776 (completion_tracker::maybe_add_completion): Remove use of
13777 m_entries_vec, and store more information into m_entries_hash.
13778 (completion_tracker::recompute_lcd_visitor): New function, most
13779 content taken from...
13780 (completion_tracker::recompute_lowest_common_denominator):
13781 ...here, this now just visits each item in the hash calling the
13782 above visitor.
13783 (completion_tracker::build_completion_result): Remove use of
13784 m_entries_vec, call recompute_lowest_common_denominator.
13785 * completer.h (completion_tracker::have_completions): Remove use
13786 of m_entries_vec.
13787 (completion_tracker::completion_hash_entry): Declare new class.
13788 (completion_tracker::recompute_lowest_common_denominator): Change
13789 function signature.
13790 (completion_tracker::recompute_lcd_visitor): Declare new function.
13791 (completion_tracker::m_entries_vec): Delete.
13792 (completion_tracker::m_entries_hash): Initialize to NULL.
13793 (completion_tracker::m_lowest_common_denominator_valid): New
13794 member variable.
13795 (completion_tracker::m_lowest_common_denominator_max_length): New
13796 member variable.
13797
13798 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13799
13800 * regformats/regdef.h: Put reg in gdb namespace.
13801
13802 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13803
13804 * i386-bsd-nat.c (gdb_ptrace): New.
13805 * (i386bsd_fetch_inferior_registers,
13806 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13807 * (i386bsd_fetch_inferior_registers,
13808 i386bsd_store_inferior_registers) Use gdb_ptrace.
13809
13810 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13811
13812 * amd64-bsd-nat.c (gdb_ptrace): New.
13813 * (amd64bsd_fetch_inferior_registers,
13814 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13815 * (amd64bsd_fetch_inferior_registers,
13816 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13817
13818 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13819
13820 * user-regs.c (user_reg::read): Rename to...
13821 (user_reg::xread): ...this.
13822 * (append_user_reg): Rename argument `read' to `xread'.
13823 * (user_reg_add_builtin): Likewise.
13824 * (user_reg_add): Likewise.
13825 * (value_of_user_reg): Likewise.
13826
13827 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13828
13829 * sparc-nat.c (gdb_ptrace): New.
13830 * sparc-nat.c (sparc_fetch_inferior_registers)
13831 (sparc_store_inferior_registers) Remove obsolete comment.
13832 * sparc-nat.c (sparc_fetch_inferior_registers)
13833 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13834 * sparc-nat.c (sparc_fetch_inferior_registers)
13835 (sparc_store_inferior_registers) Use gdb_ptrace.
13836
13837 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13838
13839 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13840 it to the ptrace call.
13841 * sh-nbsd-nat.c (store_registers): Likewise.
13842
13843 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13844
13845 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13846 nbsd_nat_target instead of inf_ptrace_target.
13847 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13848 nbsd_nat_target.
13849
13850 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13851
13852 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13853
13854 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13855
13856 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13857 <sys/sysctl.h>.
13858 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13859
13860 2020-03-17 Tom de Vries <tdevries@suse.de>
13861
13862 PR gdb/23710
13863 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13864 fields.
13865 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13866 fields.
13867 (process_imported_unit_die): Skip import of c++ CUs.
13868
13869 2020-03-16 Tom Tromey <tom@tromey.com>
13870
13871 * p-valprint.c (pascal_object_print_value): Initialize
13872 base_value.
13873
13874 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13875 Shahab Vahedi <shahab@synopsys.com>
13876
13877 * Makefile.in: Add arch/arc.o
13878 * configure.tgt: Likewise.
13879 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13880 (_initialize_arc_tdep): Don't initialize old target descriptions.
13881 (arc_read_description): New function to cache target descriptions.
13882 * arc-tdep.h (arc_read_description): Add proto type.
13883 * arch/arc.c: New file.
13884 * arch/arc.h: Likewise.
13885 * features/Makefile: Replace old target descriptions with new.
13886 * features/arc-arcompact.c: Remove.
13887 * features/arc-arcompact.xml: Likewise.
13888 * features/arc-v2.c: Likewise
13889 * features/arc-v2.xml: Likewise
13890 * features/arc/aux-arcompact.xml: New file.
13891 * features/arc/aux-v2.xml: Likewise.
13892 * features/arc/core-arcompact.xml: Likewise.
13893 * features/arc/core-v2.xml: Likewise.
13894 * features/arc/aux-arcompact.c: Generate.
13895 * features/arc/aux-v2.c: Likewise.
13896 * features/arc/core-arcompact.c: Likewise.
13897 * features/arc/core-v2.c: Likewise.
13898 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13899
13900 2020-03-16 Tom Tromey <tromey@adacore.com>
13901
13902 PR gdb/25663:
13903 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13904 putting value into bcache.
13905
13906 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13907
13908 PR gdb/21500
13909 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13910 to...
13911 (amd64_windows_init_abi_common): ... this. Don't set size of
13912 long type.
13913 (amd64_windows_init_abi): New function.
13914 (amd64_cygwin_init_abi): New function.
13915 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13916 the Cygwin OS ABI.
13917 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13918 comment.
13919
13920 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13921
13922 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13923 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13924 (pe_import_directory_entry): New struct type.
13925 (is_linked_with_cygwin_dll): New function.
13926 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13927 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13928 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13929
13930 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13931
13932 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13933 i386_cygwin_core_osabi_sniffer.
13934
13935 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13936
13937 * i386-cygwin-tdep.c: Rename to...
13938 * i386-windows-tdep.c: ... this.
13939 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13940 i386-windows-tdep.c.
13941 * configure.tgt: Likewise.
13942
13943 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13944
13945 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13946 * osabi.c (gdb_osabi_names): Add "Windows".
13947 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13948 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13949 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13950 i386_cygwin_osabi_sniffer.
13951 (_initialize_i386_cygwin_tdep): Register OS ABI
13952 GDB_OSABI_WINDOWS for i386.
13953 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13954 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13955 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13956 for x86-64.
13957 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13958 when the target matches '*-*-mingw*'.
13959
13960 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13961
13962 * defs.h (enum gdb_osabi): Move to...
13963 * osabi.h (enum gdb_osabi): ... here.
13964 * gdbarch.sh: Include osabi.h in gdbarch.h.
13965 * gdbarch.h: Re-generate.
13966
13967 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13968
13969 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13970 function.
13971 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13972
13973 2020-03-14 Tom Tromey <tom@tromey.com>
13974
13975 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13976 for C++.
13977 (c_type_print_modifier): Likewise. Add "language" parameter.
13978 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13979 (c_type_print_base_1): Update.
13980 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13981 constants.
13982 * type-stack.c (type_stack::insert): Handle tp_atomic and
13983 tp_restrict.
13984 (type_stack::follow_type_instance_flags): Likewise.
13985 (type_stack::follow_types): Likewise. Merge type-following code.
13986 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13987 (space_identifier, cv_with_space_id)
13988 (const_or_volatile_or_space_identifier_noopt)
13989 (const_or_volatile_or_space_identifier): Remove.
13990 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13991 rules.
13992 (ptr_operator, typebase): Update.
13993 (enum token_flag) <FLAG_C>: New constant.
13994 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13995 "_Atomic".
13996 (lex_one_token): Handle FLAG_C.
13997
13998 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13999
14000 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14001 it to the ptrace call.
14002 * m68k-bsd-nat.c (store_registers): Likewise.
14003
14004 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14005
14006 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14007 gdb_byte *.
14008 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14009 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14010 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14011
14012 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14013
14014 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14015 nbsd_nat_target instead of inf_ptrace_target.
14016 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14017 nbsd_nat_target.
14018
14019 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14020
14021 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14022 register_t.
14023
14024 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14025
14026 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14027 it to the ptrace call.
14028 * alpha-bsd-nat.c (store_registers): Likewise.
14029
14030 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14031
14032 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14033 includes.
14034 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14035 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14036 fill_fpregset): Likewise.
14037
14038 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14039
14040 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14041 nbsd_nat_target instead of inf_ptrace_target.
14042 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14043 nbsd_nat_target.
14044
14045 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14046
14047 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14048 register_t.
14049
14050 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14051
14052 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14053 it to the ptrace call.
14054 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14055 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14056 * arm-nbsd-nat.c (store_register): Likewise.
14057 * arm-nbsd-nat.c (store_regs): Likewise.
14058 * arm-nbsd-nat.c (store_fp_register): Likewise.
14059 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14060
14061 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14062
14063 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14064 nbsd_nat_target instead of inf_ptrace_target.
14065 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14066 nbsd_nat_target.
14067
14068 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14069
14070 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14071 it to the ptrace call.
14072 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14073
14074 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14075
14076 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14077 it to the ptrace call.
14078 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14079
14080 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14081
14082 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14083 gdb_byte *.
14084 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14085
14086 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14087
14088 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14089 instead of inf_ptrace_target.
14090 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14091 nbsd_nat_target.
14092
14093 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14094
14095 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14096 register_t.
14097
14098 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14099
14100 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14101 register_t.
14102
14103 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14104
14105 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14106 register_t.
14107
14108 2020-03-13 Tom Tromey <tom@tromey.com>
14109
14110 * value.h (val_print): Don't declare.
14111 * valprint.h (val_print_array_elements)
14112 (val_print_scalar_formatted, generic_val_print): Don't declare.
14113 * valprint.c (generic_val_print_array): Take a struct value.
14114 (generic_val_print_ptr, generic_val_print_memberptr)
14115 (generic_val_print_bool, generic_val_print_int)
14116 (generic_val_print_char, generic_val_print_complex)
14117 (generic_val_print): Remove.
14118 (generic_value_print): Update.
14119 (do_val_print): Remove unused parameters. Don't call
14120 la_val_print.
14121 (val_print): Remove.
14122 (common_val_print): Update. Don't call value_check_printable.
14123 (val_print_scalar_formatted, val_print_array_elements): Remove.
14124 * rust-lang.c (rust_val_print): Remove.
14125 (rust_language_defn): Update.
14126 * p-valprint.c (pascal_val_print): Remove.
14127 (pascal_value_print_inner): Update.
14128 (pascal_object_print_val_fields, pascal_object_print_val):
14129 Remove.
14130 (pascal_object_print_static_field): Update.
14131 * p-lang.h (pascal_val_print): Don't declare.
14132 * p-lang.c (pascal_language_defn): Update.
14133 * opencl-lang.c (opencl_language_defn): Update.
14134 * objc-lang.c (objc_language_defn): Update.
14135 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14136 * m2-lang.h (m2_val_print): Don't declare.
14137 * m2-lang.c (m2_language_defn): Update.
14138 * language.h (struct language_defn) <la_val_print>: Remove.
14139 * language.c (unk_lang_value_print_inner): Rename. Change
14140 argument types.
14141 (unknown_language_defn, auto_language_defn): Update.
14142 * go-valprint.c (go_val_print): Remove.
14143 * go-lang.h (go_val_print): Don't declare.
14144 * go-lang.c (go_language_defn): Update.
14145 * f-valprint.c (f_val_print): Remove.
14146 * f-lang.h (f_value_print): Don't declare.
14147 * f-lang.c (f_language_defn): Update.
14148 * d-valprint.c (d_val_print): Remove.
14149 * d-lang.h (d_value_print): Don't declare.
14150 * d-lang.c (d_language_defn): Update.
14151 * cp-valprint.c (cp_print_value_fields)
14152 (cp_print_value_fields_rtti, cp_print_value): Remove.
14153 (cp_print_static_field): Update.
14154 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14155 (c_val_print_struct, c_val_print_union, c_val_print_int)
14156 (c_val_print_memberptr, c_val_print): Remove.
14157 * c-lang.h (c_val_print_array, cp_print_value_fields)
14158 (cp_print_value_fields_rtti): Don't declare.
14159 * c-lang.c (c_language_defn, cplus_language_defn)
14160 (asm_language_defn, minimal_language_defn): Update.
14161 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14162 (ada_val_print_enum): Take a struct value.
14163 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14164 (ada_val_print): Remove.
14165 (ada_value_print_1): Update.
14166 (printable_val_type): Remove.
14167 * ada-lang.h (ada_val_print): Don't declare.
14168 * ada-lang.c (ada_language_defn): Update.
14169
14170 2020-03-13 Tom Tromey <tom@tromey.com>
14171
14172 * valprint.c (do_val_print): Update.
14173 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14174 a struct value.
14175 (value_to_value_object_no_release): Declare.
14176 * python/py-value.c (value_to_value_object_no_release): New
14177 function.
14178 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14179 struct value.
14180 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14181 function.
14182 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14183 a struct value.
14184 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14185 Declare.
14186 (gdbscm_apply_val_pretty_printer): Take a struct value.
14187 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14188 value.
14189 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14190 value.
14191 * extension-priv.h (struct extension_language_ops)
14192 <apply_val_pretty_printer>: Take a struct value.
14193 * cp-valprint.c (cp_print_value): Create a struct value.
14194 (cp_print_value): Update.
14195
14196 2020-03-13 Tom Tromey <tom@tromey.com>
14197
14198 * ada-valprint.c (print_field_values): Call common_val_print.
14199
14200 2020-03-13 Tom Tromey <tom@tromey.com>
14201
14202 * ada-valprint.c (val_print_packed_array_elements): Remove
14203 bitoffset and val parameters. Call common_val_print.
14204 (ada_val_print_string): Remove offset, address, and original_value
14205 parameters.
14206 (ada_val_print_array): Update.
14207 (ada_value_print_array): New function.
14208 (ada_value_print_1): Call it.
14209
14210 2020-03-13 Tom Tromey <tom@tromey.com>
14211
14212 * ada-valprint.c (ada_value_print): Use common_val_print.
14213
14214 2020-03-13 Tom Tromey <tom@tromey.com>
14215
14216 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14217
14218 2020-03-13 Tom Tromey <tom@tromey.com>
14219
14220 * ada-valprint.c (ada_value_print_num): New function.
14221 (ada_value_print_1): Use it.
14222
14223 2020-03-13 Tom Tromey <tom@tromey.com>
14224
14225 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14226
14227 2020-03-13 Tom Tromey <tom@tromey.com>
14228
14229 * ada-valprint.c (ada_value_print_ptr): New function.
14230 (ada_value_print_1): Use it.
14231
14232 2020-03-13 Tom Tromey <tom@tromey.com>
14233
14234 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14235 call common_val_print.
14236 (ada_val_print_1): Update.
14237 (ada_value_print_1): New function.
14238 (ada_value_print_inner): Rewrite.
14239
14240 2020-03-13 Tom Tromey <tom@tromey.com>
14241
14242 * cp-valprint.c (cp_print_value_fields): Update.
14243 (cp_print_value): New function.
14244
14245 2020-03-13 Tom Tromey <tom@tromey.com>
14246
14247 * m2-valprint.c (m2_value_print_inner): Use
14248 cp_print_value_fields.
14249 * cp-valprint.c (cp_print_value_fields): New function.
14250 * c-valprint.c (c_value_print_struct): New function.
14251 (c_value_print_inner): Use c_value_print_struct.
14252 * c-lang.h (cp_print_value_fields): Declare.
14253
14254 2020-03-13 Tom Tromey <tom@tromey.com>
14255
14256 * c-valprint.c (c_value_print_array): New function.
14257 (c_value_print_inner): Use it.
14258
14259 2020-03-13 Tom Tromey <tom@tromey.com>
14260
14261 * c-valprint.c (c_value_print_memberptr): New function.
14262 (c_value_print_inner): Use it.
14263
14264 2020-03-13 Tom Tromey <tom@tromey.com>
14265
14266 * c-valprint.c (c_value_print_int): New function.
14267 (c_value_print_inner): Use it.
14268
14269 2020-03-13 Tom Tromey <tom@tromey.com>
14270
14271 * c-valprint.c (c_value_print_ptr): New function.
14272 (c_value_print_inner): Use it.
14273
14274 2020-03-13 Tom Tromey <tom@tromey.com>
14275
14276 * c-valprint.c (c_value_print_inner): Rewrite.
14277
14278 2020-03-13 Tom Tromey <tom@tromey.com>
14279
14280 * valprint.c (generic_value_print_complex): New function.
14281 (generic_value_print): Use it.
14282
14283 2020-03-13 Tom Tromey <tom@tromey.com>
14284
14285 * valprint.c (generic_val_print_float): Don't call
14286 val_print_scalar_formatted.
14287 (generic_val_print, generic_value_print): Update.
14288
14289 2020-03-13 Tom Tromey <tom@tromey.com>
14290
14291 * valprint.c (generic_value_print_char): New function
14292 (generic_value_print): Use it.
14293
14294 2020-03-13 Tom Tromey <tom@tromey.com>
14295
14296 * valprint.c (generic_value_print_int): New function.
14297 (generic_value_print): Use it.
14298
14299 2020-03-13 Tom Tromey <tom@tromey.com>
14300
14301 * valprint.c (generic_value_print_bool): New function.
14302 (generic_value_print): Use it.
14303
14304 2020-03-13 Tom Tromey <tom@tromey.com>
14305
14306 * valprint.c (generic_val_print_func): Simplify.
14307 (generic_val_print, generic_value_print): Update.
14308
14309 2020-03-13 Tom Tromey <tom@tromey.com>
14310
14311 * valprint.c (generic_val_print_flags): Remove.
14312 (generic_val_print, generic_value_print): Update.
14313 (val_print_type_code_flags): Add original_value parameter.
14314
14315 2020-03-13 Tom Tromey <tom@tromey.com>
14316
14317 * valprint.c (generic_val_print): Update.
14318 (generic_value_print): Update.
14319 * valprint.c (generic_val_print_enum): Don't call
14320 val_print_scalar_formatted.
14321
14322 2020-03-13 Tom Tromey <tom@tromey.com>
14323
14324 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14325 * valprint.c (generic_value_print_ptr): New function.
14326
14327 2020-03-13 Tom Tromey <tom@tromey.com>
14328
14329 * valprint.c (generic_value_print): Rewrite.
14330
14331 2020-03-13 Tom Tromey <tom@tromey.com>
14332
14333 * p-valprint.c (pascal_object_print_value_fields)
14334 (pascal_object_print_value): New functions.
14335
14336 2020-03-13 Tom Tromey <tom@tromey.com>
14337
14338 * p-valprint.c (pascal_value_print_inner): Rewrite.
14339
14340 2020-03-13 Tom Tromey <tom@tromey.com>
14341
14342 * f-valprint.c (f_value_print_innner): Rewrite.
14343
14344 2020-03-13 Tom Tromey <tom@tromey.com>
14345
14346 * m2-valprint.c (m2_print_unbounded_array): New overload.
14347 (m2_print_unbounded_array): Update.
14348 (m2_print_array_contents): Take a struct value.
14349 (m2_value_print_inner): Rewrite.
14350
14351 2020-03-13 Tom Tromey <tom@tromey.com>
14352
14353 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14354 (d_value_print_inner): New function.
14355 * d-lang.h (d_value_print_inner): Declare.
14356 * d-lang.c (d_language_defn): Use d_value_print_inner.
14357
14358 2020-03-13 Tom Tromey <tom@tromey.com>
14359
14360 * go-valprint.c (go_value_print_inner): New function.
14361 * go-lang.h (go_value_print_inner): Declare.
14362 * go-lang.c (go_language_defn): Use go_value_print_inner.
14363
14364 2020-03-13 Tom Tromey <tom@tromey.com>
14365
14366 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14367 API.
14368 (rust_val_print): Rewrite.
14369 (rust_value_print_inner): New function, from rust_val_print.
14370 (rust_language_defn): Use rust_value_print_inner.
14371
14372 2020-03-13 Tom Tromey <tom@tromey.com>
14373
14374 * ada-valprint.c (ada_value_print_inner): New function.
14375 * ada-lang.h (ada_value_print_inner): Declare.
14376 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14377
14378 2020-03-13 Tom Tromey <tom@tromey.com>
14379
14380 * f-valprint.c (f_value_print_innner): New function.
14381 * f-lang.h (f_value_print_innner): Declare.
14382 * f-lang.c (f_language_defn): Use f_value_print_innner.
14383
14384 2020-03-13 Tom Tromey <tom@tromey.com>
14385
14386 * p-valprint.c (pascal_value_print_inner): New function.
14387 * p-lang.h (pascal_value_print_inner): Declare.
14388 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14389
14390 2020-03-13 Tom Tromey <tom@tromey.com>
14391
14392 * m2-valprint.c (m2_value_print_inner): New function.
14393 * m2-lang.h (m2_value_print_inner): Declare.
14394 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14395
14396 2020-03-13 Tom Tromey <tom@tromey.com>
14397
14398 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14399 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14400 * c-valprint.c (c_value_print_inner): New function.
14401 * c-lang.h (c_value_print_inner): Declare.
14402 * c-lang.c (c_language_defn, cplus_language_defn)
14403 (asm_language_defn, minimal_language_defn): Use
14404 c_value_print_inner.
14405
14406 2020-03-13 Tom Tromey <tom@tromey.com>
14407
14408 * p-valprint.c (pascal_object_print_value_fields): Now static.
14409 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14410
14411 2020-03-13 Tom Tromey <tom@tromey.com>
14412
14413 * c-valprint.c (c_val_print_array): Simplify.
14414
14415 2020-03-13 Tom Tromey <tom@tromey.com>
14416
14417 * valprint.c (value_print_array_elements): New function.
14418 * valprint.h (value_print_array_elements): Declare.
14419
14420 2020-03-13 Tom Tromey <tom@tromey.com>
14421
14422 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14423 * mips-tdep.c (mips_print_register): Use
14424 value_print_scalar_formatted.
14425
14426 2020-03-13 Tom Tromey <tom@tromey.com>
14427
14428 * valprint.h (value_print_scalar_formatted): Declare.
14429 * valprint.c (value_print_scalar_formatted): New function.
14430
14431 2020-03-13 Tom Tromey <tom@tromey.com>
14432
14433 * valprint.h (generic_value_print): Declare.
14434 * valprint.c (generic_value_print): New function.
14435
14436 2020-03-13 Tom Tromey <tom@tromey.com>
14437
14438 * valprint.c (do_val_print): Call la_value_print_inner, if
14439 available.
14440 * rust-lang.c (rust_language_defn): Update.
14441 * p-lang.c (pascal_language_defn): Update.
14442 * opencl-lang.c (opencl_language_defn): Update.
14443 * objc-lang.c (objc_language_defn): Update.
14444 * m2-lang.c (m2_language_defn): Update.
14445 * language.h (struct language_defn) <la_value_print_inner>: New
14446 member.
14447 * language.c (unknown_language_defn, auto_language_defn): Update.
14448 * go-lang.c (go_language_defn): Update.
14449 * f-lang.c (f_language_defn): Update.
14450 * d-lang.c (d_language_defn): Update.
14451 * c-lang.c (c_language_defn, cplus_language_defn)
14452 (asm_language_defn, minimal_language_defn): Update.
14453 * ada-lang.c (ada_language_defn): Update.
14454
14455 2020-03-13 Tom Tromey <tom@tromey.com>
14456
14457 * c-valprint.c (c_value_print): Use common_val_print.
14458
14459 2020-03-13 Tom Tromey <tom@tromey.com>
14460
14461 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14462
14463 2020-03-13 Tom Tromey <tom@tromey.com>
14464
14465 * f-valprint.c (f77_print_array_1, f_val_print): Use
14466 common_val_print.
14467
14468 2020-03-13 Tom Tromey <tom@tromey.com>
14469
14470 * riscv-tdep.c (riscv_print_one_register_info): Use
14471 common_val_print.
14472
14473 2020-03-13 Tom Tromey <tom@tromey.com>
14474
14475 * mi/mi-main.c (output_register): Use common_val_print.
14476
14477 2020-03-13 Tom Tromey <tom@tromey.com>
14478
14479 * infcmd.c (default_print_one_register_info): Use
14480 common_val_print.
14481
14482 2020-03-13 Tom Tromey <tom@tromey.com>
14483
14484 * valprint.h (common_val_print_checked): Declare.
14485 * valprint.c (common_val_print_checked): New function.
14486 * stack.c (print_frame_arg): Use common_val_print_checked.
14487
14488 2020-03-13 Tom Tromey <tom@tromey.com>
14489
14490 * valprint.c (do_val_print): New function, from val_print.
14491 (val_print): Use do_val_print.
14492 (common_val_print): Use do_val_print.
14493
14494 2020-03-13 Tom Tromey <tom@tromey.com>
14495
14496 * valprint.c (value_print): Use scoped_value_mark.
14497
14498 2020-03-13 Tom de Vries <tdevries@suse.de>
14499
14500 PR symtab/25646
14501 * psymtab.c (partial_symtab::partial_symtab): Don't set
14502 globals_offset and statics_offset. Push element onto
14503 current_global_psymbols and current_static_psymbols stacks.
14504 (concat): New function.
14505 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14506 element from current_global_psymbols and current_static_psymbols
14507 stacks. Concat popped elements to global_psymbols and
14508 static_symbols.
14509 (add_psymbol_to_list): Use current_global_psymbols and
14510 current_static_psymbols stacks.
14511 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14512 current_static_psymbols fields.
14513
14514 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14515
14516 * corelow.c (sniff_core_bfd): Remove.
14517 (class core_target) <m_core_vec>: Remove.
14518 (core_target::core_target): Update.
14519 (core_file_fns): Remove.
14520 (deprecated_add_core_fns): Remove.
14521 (default_core_sniffer): Remove.
14522 (sniff_core_bfd): Remove.
14523 (default_check_format): Remove.
14524 (gdb_check_format): Remove.
14525 (core_target_open): Update.
14526 (core_target::get_core_register_section): Update.
14527 (get_core_registers_cb): Update.
14528 (core_target::fetch_registers): Update.
14529 * gdbcore.h (struct core_fns): Remove.
14530 (deprecated_add_core_fns): Remove.
14531 (default_core_sniffer): Remove.
14532 (default_check_format): Remove.
14533
14534 2020-03-12 Tom Tromey <tom@tromey.com>
14535
14536 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14537 CORE_ADDR.
14538 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14539
14540 2020-03-12 Tom Tromey <tom@tromey.com>
14541
14542 * remote.c (remote_target::download_tracepoint)
14543 (remote_target::enable_tracepoint)
14544 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14545 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14546 sprintf_vma.
14547
14548 2020-03-12 Tom Tromey <tom@tromey.com>
14549
14550 * symfile-mem.c: Update CORE_ADDR size assert.
14551
14552 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14553
14554 * selftest.m4: Move to gdbsupport/.
14555 * acinclude.m4: Update path to selftest.m4.
14556
14557 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14558
14559 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14560 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14561 gdbarch-selfselftests.c and selftest-arch.c.
14562 (SUBDIR_UNITTESTS_OBS): Rename to...
14563 (SELFTESTS_OBS): ... this.
14564 (COMMON_SFILES): Remove disasm-selftests.c and
14565 gdbarch-selftests.c.
14566 * configure.ac: Don't add selftest-arch.{c,o} to
14567 CONFIG_{SRCS,OBS}.
14568 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14569 preprocessor conditions.
14570
14571 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14572
14573 * configure.ac: Don't source bfd/development.sh.
14574 * selftest.m4: Modify comment.
14575 * configure: Re-generate.
14576
14577 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14578
14579 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14580 not "true" or "false".
14581 * configure: Re-generate.
14582
14583 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14584
14585 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14586 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14587 renamed to arm_nbsd_supply_gregset.
14588 (fetch_register): Update to call arm_nbsd_supply_gregset.
14589 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14590 (arm_netbsd_nat_target::fetch_registers): Update.
14591 (fetch_elfcore_registers): Removed.
14592 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14593 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14594 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14595 not require NetBSD system headers.
14596 (arm_nbsd_regset): New struct.
14597 (arm_nbsd_iterate_over_regset_sections): New function.
14598 (arm_netbsd_init_abi_common): Updated to call
14599 set_gdbarch_iterate_over_regset_sections.
14600 * arm-nbsd-tdep.h: New file.
14601
14602 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14603
14604 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14605 recursion.
14606
14607 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14608
14609 * configure: Re-generate.
14610
14611 2020-03-11 Tom Tromey <tromey@adacore.com>
14612
14613 * ada-typeprint.c (print_choices): Fix comment.
14614
14615 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14616
14617 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14618 previous item in the list, when the list has no items.
14619
14620 2020-03-11 Tom de Vries <tdevries@suse.de>
14621
14622 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14623 PROP_LOCLIST handling code.
14624
14625 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14626
14627 * buildsym-legacy.c (record_line): Pass extra parameter to
14628 record_line.
14629 * buildsym.c (buildsym_compunit::record_line): Take an extra
14630 parameter, reduce duplication in the line table, and record the
14631 is_stmt flag in the line table.
14632 * buildsym.h (buildsym_compunit::record_line): Add extra
14633 parameter.
14634 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14635 non-statement lines.
14636 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14637 this to the symtab builder.
14638 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14639 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14640 through to dwarf_record_line_1.
14641 * infrun.c (process_event_stop_test): When stepping, don't stop at
14642 a non-statement instruction, and only refresh the step info when
14643 we land in the middle of a line's range. Also add an extra
14644 comment.
14645 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14646 field.
14647 * record-btrace.c (btrace_find_line_range): Only record lines
14648 marked as is-statement.
14649 * stack.c (frame_show_address): Show the frame address if we are
14650 in a non-statement sal.
14651 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14652 (maintenance_print_one_line_table): Print a header for the is_stmt
14653 column, and include is_stmt information in the output.
14654 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14655 preference to non-statements.
14656 (find_pcs_for_symtab_line): Prefer is-statement entries.
14657 (find_line_common): Likewise.
14658 * symtab.h (struct linetable_entry): Add is_stmt field.
14659 (struct symtab_and_line): Likewise.
14660 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14661 arranging the line table.
14662
14663 2020-03-07 Tom de Vries <tdevries@suse.de>
14664
14665 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14666 DIE.
14667
14668 2020-03-07 Tom Tromey <tom@tromey.com>
14669
14670 * valops.c (value_literal_complex): Remove obsolete comment.
14671 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14672 comment.
14673
14674 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14675
14676 * infrun.h: Forward-declare thread_info.
14677 (set_step_info): Add thread_info parameter, add doc.
14678 * infrun.c (set_step_info): Add thread_info parameter, move doc
14679 to header.
14680 * infrun.c (process_event_stop_test): Pass thread to
14681 set_step_info call.
14682 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14683 set_step_info.
14684 (prepare_one_step): Add thread_info parameter, pass it to
14685 set_step_frame and prepare_one_step (recursive) call.
14686 (step_1): Pass thread to prepare_one_step call.
14687 (step_command_fsm::should_stop): Pass thread to
14688 prepare_one_step.
14689 (until_next_fsm): Pass thread to set_step_frame call.
14690 (finish_command): Pass thread to set_step_info call.
14691
14692 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14693
14694 * windows-tdep.c (windows_solib_create_inferior_hook):
14695 Check if inferior is running.
14696
14697 2020-03-06 Tom de Vries <tdevries@suse.de>
14698
14699 * NEWS: Fix "the the".
14700 * ctfread.c: Same.
14701
14702 2020-03-06 Tom de Vries <tdevries@suse.de>
14703
14704 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14705
14706 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14707
14708 * .dir-locals.el: Add a comment referencing the other copies of
14709 this file.
14710
14711 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14712
14713 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14714 psargs.
14715
14716 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14717
14718 * .gitattributes: New file.
14719
14720 2020-03-04 Tom Tromey <tom@tromey.com>
14721
14722 * symmisc.c (print_symbol_bcache_statistics)
14723 (print_objfile_statistics): Update.
14724 * symfile.c (allocate_symtab): Use intern.
14725 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14726 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14727 macro_cache>: Remove.
14728 <string_cache>: New member.
14729 (struct objfile) <intern>: New methods.
14730 * elfread.c (elf_symtab_read): Use intern.
14731 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14732 (dwarf2_compute_name, dwarf2_physname)
14733 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14734 names.
14735 (guess_partial_die_structure_name): Update.
14736 (partial_die_info::fixup): Intern name.
14737 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14738 name.
14739 (dwarf2_name): Intern name. Update.
14740 * buildsym.c (buildsym_compunit::get_macro_table): Use
14741 string_cache.
14742
14743 2020-03-04 Tom Tromey <tom@tromey.com>
14744
14745 * jit.c (bfd_open_from_target_memory): Make "target" const.
14746 * corefile.c (gnutarget): Now const.
14747 * gdbcore.h (gnutarget): Now const.
14748
14749 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14750
14751 * NEWS: Mention support for WOW64 processes.
14752 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14753 (amd64_windows_segment_register_p): Remove static.
14754 (_initialize_amd64_windows_nat): Update.
14755 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14756 * i386-windows-nat.c (context_offset): Update.
14757 (i386_mappings): Rename and remove static.
14758 (i386_windows_segment_register_p): Remove static.
14759 (_initialize_i386_windows_nat): Update.
14760 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14761 (STATUS_WX86_SINGLE_STEP): New macro.
14762 (EnumProcessModulesEx): New macro.
14763 (Wow64SuspendThread): New macro.
14764 (Wow64GetThreadContext): New macro.
14765 (Wow64SetThreadContext): New macro.
14766 (Wow64GetThreadSelectorEntry): New macro.
14767 (windows_set_context_register_offsets): Add static.
14768 (windows_set_segment_register_p): Likewise.
14769 (windows_add_thread): Adapt for WOW64 processes.
14770 (windows_fetch_one_register): Likewise.
14771 (windows_nat_target::fetch_registers): Likewise.
14772 (windows_store_one_register): Likewise.
14773 (display_selector): Likewise.
14774 (display_selectors): Likewise.
14775 (handle_exception): Likewise.
14776 (windows_continue): Likewise.
14777 (windows_nat_target::resume): Likewise.
14778 (windows_add_all_dlls): Likewise.
14779 (do_initial_windows_stuff): Likewise.
14780 (windows_nat_target::attach): Likewise.
14781 (windows_get_exec_module_filename): Likewise.
14782 (windows_nat_target::create_inferior): Likewise.
14783 (windows_xfer_siginfo): Likewise.
14784 (_initialize_loadable): Initialize Wow64SuspendThread,
14785 Wow64GetThreadContext, Wow64SetThreadContext,
14786 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14787 * windows-nat.h (windows_set_context_register_offsets):
14788 Remove declaration.
14789 (windows_set_segment_register_p): Likewise.
14790 (i386_windows_segment_register_p): Add declaration.
14791 (amd64_windows_segment_register_p): Likewise.
14792
14793 2020-03-04 Luis Machado <luis.machado@linaro.org>
14794
14795 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14796 in "info registers" for AArch64/ARM.
14797
14798 The change caused "info registers" to not print GPR's.
14799
14800 gdb/ChangeLog:
14801
14802 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14803
14804 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14805 when reg->group is empty and reggroup is not.
14806
14807 2020-03-03 Tom Tromey <tromey@adacore.com>
14808
14809 * dwarf2/frame.c (struct dwarf2_frame_cache)
14810 <checked_tailcall_bottom, entry_cfa_sp_offset,
14811 entry_cfa_sp_offset_p>: Remove members.
14812 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14813 (dwarf2_frame_prev_register): Don't call
14814 dwarf2_tailcall_sniffer_first.
14815 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14816 * frame-unwind.c (add_unwinder): New fuction.
14817 (frame_unwind_init): Use it. Add tailcall unwinder.
14818
14819 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14820 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14821
14822 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14823 value should be printed as true.
14824
14825 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14826
14827 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14828 (windows_init_abi): Set and use windows_so_ops.
14829
14830 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14831
14832 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14833 when verifying if dealing with a convenience variable.
14834
14835 2020-03-03 Luis Machado <luis.machado@linaro.org>
14836
14837 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14838
14839 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14840
14841 * infrun.c (gdbarch_supports_displaced_stepping): New.
14842 (use_displaced_stepping): Break up conditions in smaller pieces.
14843 Use gdbarch_supports_displaced_stepping.
14844 (displaced_step_prepare_throw): Use
14845 gdbarch_supports_displaced_stepping.
14846
14847 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14848
14849 * NEWS: Mention new behaviour of the history filename.
14850 * top.c (write_history_p): Add comment.
14851 (show_write_history_p): Add header comment, give a different
14852 message when history writing is on, but the history filename is
14853 empty.
14854 (history_filename): Add comment.
14855 (history_filename_empty): New function.
14856 (show_history_filename): Add header comment, give a different
14857 message when the filename is empty.
14858 (init_history): Compare history_filename against nullptr, and only
14859 read history if the filename is not empty.
14860 (set_history_filename): Add header comment, and only make
14861 non-empty filenames absolute.
14862 (init_main): Make the filename argument to 'set history filename'
14863 optional.
14864
14865 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14866
14867 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14868 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14869 (fetch_fp_register): Update.
14870 (fetch_fp_regs): Update.
14871 (store_fp_register): Update.
14872 (store_fp_regs): Update.
14873 (arm_netbsd_nat_target::read_description): New function.
14874 (fetch_elfcore_registers): Update.
14875
14876 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14877
14878 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14879 general_thread if the stop reply is missing a thread-id.
14880 (remote_target::process_stop_reply): Use the first non-exited
14881 thread if the target didn't pass a thread-id.
14882 * infrun.c (do_target_wait): Move call to
14883 switch_to_inferior_no_thread to ....
14884 (do_target_wait_1): ... here.
14885
14886 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14887
14888 * debuginfod-support.c: Include defs.h first.
14889
14890 2020-02-28 Tom de Vries <tdevries@suse.de>
14891
14892 * symfile.c (set_initial_language): Use default language for lookup.
14893
14894 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14895
14896 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14897 reader variable, pass `this` to read_cutu_die_from_dwo.
14898
14899 2020-02-27 Aaron Merey <amerey@redhat.com>
14900
14901 * source.c (open_source_file): Check for nullptr when computing
14902 srcpath.
14903
14904 2020-02-27 Tom Tromey <tromey@adacore.com>
14905
14906 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14907 member.
14908 (dwarf2_add_field): Don't update nfields.
14909 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14910
14911 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14912
14913 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14914 abs.
14915
14916 2020-02-26 Tom Tromey <tom@tromey.com>
14917
14918 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14919 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14920 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14921 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14922 per_cu_data.
14923
14924 2020-02-26 Tom Tromey <tom@tromey.com>
14925
14926 * dwarf2/index-write.c (psym_index_map): Change type.
14927 (add_address_entry_worker, write_one_signatured_type)
14928 (recursively_count_psymbols, recursively_write_psymbols)
14929 (class debug_names, psyms_seen_size, write_gdbindex)
14930 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14931
14932 2020-02-26 Aaron Merey <amerey@redhat.com>
14933
14934 * Makefile.in: Handle optional debuginfod support.
14935 * NEWS: Update.
14936 * README: Add --with-debuginfod summary.
14937 * config.in: Regenerate.
14938 * configure: Regenerate.
14939 * configure.ac: Handle optional debuginfod support.
14940 * debuginfod-support.c: debuginfod helper functions.
14941 * debuginfod-support.h: Ditto.
14942 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14943 summary.
14944 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14945 when a dwz file cannot be found.
14946 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14947 debuginfo file cannot be found.
14948 * source.c (open_source_file): Query debuginfod servers when a
14949 source file cannot be found.
14950 * top.c (print_gdb_configuration): Include
14951 --{with,without}-debuginfod in the output.
14952
14953 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14954
14955 * thread.c (thr_try_catch_cmd): Print thread name.
14956
14957 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14958
14959 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14960 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14961 dwarf2_fetch_die_type_sect_off): Move to...
14962 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14963 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14964 dwarf2_fetch_die_type_sect_off): ... here.
14965 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14966 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14967 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14968
14969 2020-02-26 Tom de Vries <tdevries@suse.de>
14970
14971 PR gdb/25603
14972 * symfile.c (set_initial_language): Exit-early if
14973 language_mode == language_mode_manual.
14974
14975 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14976
14977 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14978 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14979 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14980
14981 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14982
14983 * gdbtypes.c (create_array_type_with_stride): Handle negative
14984 array strides.
14985 * valarith.c (value_subscripted_rvalue): Likewise.
14986
14987 2020-02-25 Luis Machado <luis.machado@linaro.org>
14988
14989 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14990
14991 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14992
14993 * loc.h (dwarf2_get_die_type): Move to...
14994 * read.h (dwarf2_get_die_type): ... here.
14995 * read.c (dwarf2_get_die_type): Move doc to header.
14996
14997 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14998
14999 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15000 'gnulib/Makefile.in' to the list.
15001
15002 2020-02-24 Tom Tromey <tom@tromey.com>
15003
15004 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15005 Remove.
15006 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15007 XOBNEWVEC.
15008
15009 2020-02-24 Tom Tromey <tom@tromey.com>
15010
15011 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15012 New method.
15013 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15014 (dw2_do_instantiate_symtab, dw2_get_file_names)
15015 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15016
15017 2020-02-24 Tom Tromey <tom@tromey.com>
15018
15019 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15020 make_scoped_restore.
15021 (dwarf2_psymtab::read_symtab): Don't clear
15022 reading_partial_symbols.
15023
15024 2020-02-24 Tom de Vries <tdevries@suse.de>
15025
15026 PR gdb/25592
15027 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15028
15029 2020-02-24 Tom de Vries <tdevries@suse.de>
15030
15031 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15032 commands layout next/prev/regs.
15033
15034 2020-02-22 Tom Tromey <tom@tromey.com>
15035
15036 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15037 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15038
15039 2020-02-22 Tom Tromey <tom@tromey.com>
15040
15041 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15042
15043 2020-02-22 Tom Tromey <tom@tromey.com>
15044
15045 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15046 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15047 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15048 * tui/tui.c (_initialize_tui): Add usage text.
15049
15050 2020-02-22 Tom Tromey <tom@tromey.com>
15051
15052 * tui/tui-win.c (tui_set_focus_command)
15053 (tui_set_win_height_command): Use error_no_arg.
15054 (_initialize_tui_win): Update help text.
15055 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15056
15057 2020-02-22 Tom Tromey <tom@tromey.com>
15058
15059 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15060 * tui/tui-disasm.h (struct tui_disasm_window)
15061 <display_start_addr>: Declare.
15062 * tui/tui-source.h (struct tui_source_window)
15063 <display_start_addr>: Declare.
15064 * tui/tui-winsource.h (struct tui_source_window_base)
15065 <show_source_line, display_start_addr>: New methods.
15066 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15067 Rename and move to protected section.
15068 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15069 (tui_source_window_base::do_erase_source_content): Update.
15070 (tui_source_window_base::show_source_line): Now a method.
15071 (tui_source_window_base::show_source_content)
15072 (tui_source_window_base::tui_source_window_base)
15073 (tui_source_window_base::rerender)
15074 (tui_source_window_base::refill)
15075 (tui_source_window_base::do_scroll_horizontal)
15076 (tui_source_window_base::set_is_exec_point_at)
15077 (tui_source_window_base::update_breakpoint_info)
15078 (tui_source_window_base::update_exec_info): Update.
15079 * tui/tui-source.c (tui_source_window::set_contents)
15080 (tui_source_window::showing_source_p)
15081 (tui_source_window::do_scroll_vertical)
15082 (tui_source_window::location_matches_p)
15083 (tui_source_window::line_is_displayed): Update.
15084 (tui_source_window::display_start_addr): New method.
15085 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15086 (tui_disasm_window::do_scroll_vertical)
15087 (tui_disasm_window::location_matches_p): Update.
15088 (tui_disasm_window::display_start_addr): New method.
15089
15090 2020-02-22 Tom Tromey <tom@tromey.com>
15091
15092 * NEWS: Add entry for gdb.register_window_type.
15093 * tui/tui-layout.h (window_factory): New typedef.
15094 (tui_register_window): Declare.
15095 * tui/tui-layout.c (saved_tui_windows): New global.
15096 (tui_apply_current_layout): Use it.
15097 (tui_register_window): New function.
15098 * python/python.c (do_start_initialization): Call
15099 gdbpy_initialize_tui.
15100 (python_GdbMethods): Add "register_window_type" function.
15101 * python/python-internal.h (gdbpy_register_tui_window)
15102 (gdbpy_initialize_tui): Declare.
15103 * python/py-tui.c: New file.
15104 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15105
15106 2020-02-22 Tom Tromey <tom@tromey.com>
15107
15108 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15109
15110 2020-02-22 Tom Tromey <tom@tromey.com>
15111
15112 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15113 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15114 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15115 (tui_set_win_focus_to): Move from tui-win.c.
15116
15117 2020-02-22 Tom Tromey <tom@tromey.com>
15118
15119 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15120 functions.
15121 (known_window_types): New global.
15122 (tui_get_window_by_name): Reimplement.
15123 (initialize_known_windows): New function.
15124 (validate_window_name): Rewrite.
15125 (_initialize_tui_layout): Call initialize_known_windows.
15126
15127 2020-02-22 Tom Tromey <tom@tromey.com>
15128
15129 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15130 Remove constants.
15131 * tui/tui-winsource.h (struct tui_source_window_base)
15132 <tui_source_window_base>: Remove parameter.
15133 * tui/tui-winsource.c
15134 (tui_source_window_base::tui_source_window_base): Remove
15135 parameter.
15136 (tui_source_window_base::refill): Update.
15137 * tui/tui-stack.h (struct tui_locator_window)
15138 <tui_locator_window>: Update.
15139 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15140 Default the constructor.
15141 * tui/tui-regs.h (struct tui_data_item_window)
15142 <tui_data_item_window>: Default the constructor.
15143 (struct tui_data_window) <tui_data_window>: Likewise.
15144 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15145 Default the constructor.
15146 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15147 Default the constructor.
15148 <type>: Remove.
15149 (struct tui_win_info) <tui_win_info>: Default the constructor.
15150 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15151 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15152 Default the constructor.
15153
15154 2020-02-22 Tom Tromey <tom@tromey.com>
15155
15156 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15157 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15158 * tui/tui-win.c (tui_resize_all): Don't call
15159 tui_delete_invisible_windows.
15160 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15161 done.
15162 (tui_set_layout): Update.
15163 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15164 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15165 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15166
15167 2020-02-22 Tom Tromey <tom@tromey.com>
15168
15169 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15170 correctly.
15171
15172 2020-02-22 Tom Tromey <tom@tromey.com>
15173
15174 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15175
15176 2020-02-22 Tom Tromey <tom@tromey.com>
15177
15178 * tui/tui-winsource.h (struct tui_source_window_iterator)
15179 <inner_iterator>: New etytypedef.
15180 <tui_source_window_iterator>: Take "end" parameter.
15181 <tui_source_window_iterator>: Take iterator.
15182 <operator*, advance>: Update.
15183 <m_iter>: Change type.
15184 <m_end>: New field.
15185 (struct tui_source_windows) <begin, end>: Update.
15186 * tui/tui-layout.c (tui_windows): New global.
15187 (tui_apply_current_layout): Clear tui_windows.
15188 (tui_layout_window::apply): Update tui_windows.
15189 * tui/tui-data.h (tui_windows): Declare.
15190 (all_tui_windows): Now inline function.
15191 (class tui_window_iterator, struct all_tui_windows): Remove.
15192
15193 2020-02-22 Tom Tromey <tom@tromey.com>
15194
15195 PR tui/17850:
15196 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15197 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15198 "height" argument.
15199 (class tui_layout_window) <get_sizes>: Likewise.
15200 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15201 argument.
15202 <get_sizes>: Add "height" argument.
15203 <m_vertical>: New field.
15204 * tui/tui-layout.c (tui_layout_split::clone): Update.
15205 (tui_layout_split::get_sizes): Add "height" argument.
15206 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15207 (tui_new_layout_command): Parse "-horizontal".
15208 (_initialize_tui_layout): Update help string.
15209 (tui_layout_split::specification): Add "-horizontal" when needed.
15210 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15211 argument.
15212 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15213 New methods.
15214
15215 2020-02-22 Tom Tromey <tom@tromey.com>
15216
15217 * tui/tui-layout.h (enum tui_adjust_result): New.
15218 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15219 (class tui_layout_window) <adjust_size>: Return
15220 tui_adjust_result. Rewrite.
15221 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15222 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15223
15224 2020-02-22 Tom Tromey <tom@tromey.com>
15225
15226 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15227 parameter and return types.
15228 (class tui_layout_base) <specification>: Add "depth".
15229 (class tui_layout_window) <specification>: Add "depth".
15230 (class tui_layout_split) <specification>: Add "depth".
15231 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15232 and return types.
15233 (tui_new_layout_command): Parse sub-layouts.
15234 (_initialize_tui_layout): Update help string.
15235 (tui_layout_window::specification): Add "depth".
15236 (add_layout_command): Update.
15237
15238 2020-02-22 Tom Tromey <tom@tromey.com>
15239
15240 * NEWS: Add "tui new-layout" item.
15241 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15242 Add new-layout command to help text.
15243 (validate_window_name): New function.
15244 (tui_new_layout_command): New function.
15245 (_initialize_tui_layout): Register "new-layout".
15246 (tui_layout_window::specification): New method.
15247 (tui_layout_window::specification): New method.
15248 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15249 method.
15250 (class tui_layout_window) <specification>: New method.
15251 (class tui_layout_split) <specification>: New method.
15252
15253 2020-02-22 Tom Tromey <tom@tromey.com>
15254
15255 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15256 * tui/tui-win.c (window_name_completer): Update comment.
15257 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15258 Declare method.
15259 (class tui_layout_window) <replace_window>: Likewise.
15260 (class tui_layout_split) <replace_window>: Likewise.
15261 (tui_set_layout): Don't declare.
15262 (tui_set_initial_layout): Declare function.
15263 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15264 (asm_regs_layout): New globals.
15265 (tui_current_layout, show_layout): Remove.
15266 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15267 (find_layout, tui_apply_layout): New function.
15268 (layout_completer): Remove.
15269 (tui_next_layout): Reimplement.
15270 (tui_next_layout_command): New function.
15271 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15272 (tui_regs_layout): Reimplement.
15273 (tui_regs_layout_command): New function.
15274 (extract_display_start_addr): Rewrite.
15275 (next_layout, prev_layout): Remove.
15276 (tui_layout_window::replace_window): New method.
15277 (tui_layout_split::replace_window): New method.
15278 (destroy_layout): New function.
15279 (layout_list): New global.
15280 (add_layout_command): New function.
15281 (initialize_layouts): Update.
15282 (tui_layout_command): New function.
15283 (_initialize_tui_layout): Install "layout" commands.
15284 * tui/tui-data.h (enum tui_layout_type): Remove.
15285 (tui_current_layout): Don't declare.
15286
15287 2020-02-22 Tom Tromey <tom@tromey.com>
15288
15289 * tui/tui-regs.c (tui_reg_layout): Remove.
15290 (tui_reg_command): Use tui_regs_layout.
15291 * tui/tui-layout.h (tui_reg_command): Declare.
15292 * tui/tui-layout.c (tui_reg_command): New function.
15293
15294 2020-02-22 Tom Tromey <tom@tromey.com>
15295
15296 * tui/tui.c (tui_rl_delete_other_windows): Call
15297 tui_remove_some_windows.
15298 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15299 Declare method.
15300 (class tui_layout_window) <remove_windows>: New method.
15301 (class tui_layout_split) <remove_windows>: Declare.
15302 (tui_remove_some_windows): Declare.
15303 * tui/tui-layout.c (tui_remove_some_windows): New function.
15304 (tui_layout_split::remove_windows): New method.
15305
15306 2020-02-22 Tom Tromey <tom@tromey.com>
15307
15308 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15309 * tui/tui-layout.h (tui_next_layout): Declare.
15310 * tui/tui-layout.c (tui_next_layout): New function.
15311
15312 2020-02-22 Tom Tromey <tom@tromey.com>
15313
15314 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15315 correct coordinates.
15316
15317 2020-02-22 Tom Tromey <tom@tromey.com>
15318
15319 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15320 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15321 DATA_WIN case.
15322
15323 2020-02-22 Tom Tromey <tom@tromey.com>
15324
15325 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15326 TUI_DISASM_WIN, not tui_win_list.
15327
15328 2020-02-22 Tom Tromey <tom@tromey.com>
15329
15330 * valprint.c (generic_val_print_enum_1)
15331 (val_print_type_code_flags): Style member names.
15332 * rust-lang.c (val_print_struct, rust_print_enum)
15333 (rust_print_struct_def, rust_internal_print_type): Style member
15334 names.
15335 * p-valprint.c (pascal_object_print_value_fields): Style member
15336 names. Only call fprintf_symbol_filtered for static members.
15337 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15338 * f-valprint.c (f_val_print): Style member names.
15339 * f-typeprint.c (f_type_print_base): Style member names.
15340 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15341 call fprintf_symbol_filtered for static members.
15342 (cp_print_class_member): Style member names.
15343 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15344 member names.
15345 * ada-valprint.c (ada_print_scalar): Style enum names.
15346 (ada_val_print_enum): Likewise.
15347 * ada-typeprint.c (print_enum_type): Style enum names.
15348
15349 2020-02-21 Tom Tromey <tom@tromey.com>
15350
15351 * psympriv.h (struct partial_symtab): Update comment.
15352
15353 2020-02-21 Tom Tromey <tromey@adacore.com>
15354
15355 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15356 type is CORE_ADDR.
15357
15358 2020-02-21 Tom de Vries <tdevries@suse.de>
15359
15360 PR gdb/25534
15361 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15362 if dependencies[i]->user != NULL.
15363
15364 2020-02-21 Ali Tamur <tamur@google.com>
15365
15366 * dwarf2/read.c (dwarf2_name): Add null check.
15367
15368 2020-02-20 Tom Tromey <tom@tromey.com>
15369
15370 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15371 ">=", in binary search.
15372 (dwarf2_find_containing_comp_unit): New overload.
15373 (run_test): New self-test.
15374 (_initialize_dwarf2_read): Register new test.
15375
15376 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15377
15378 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15379 * riscv-tdep.h: Likewise.
15380 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15381 rv32-only CSR.
15382 * features/riscv/64bit-csr.xml: Regenerated.
15383
15384 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15385 Tom Tromey <tom@tromey.com>
15386
15387 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15388 of 'fputc_unfiltered'.
15389 (putchar_unfiltered): Call 'fputc_unfiltered'.
15390 (fputc_unfiltered): Call 'fputs_unfiltered'.
15391
15392 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15393
15394 * config.in: Regenerate.
15395 * configure: Regenerate.
15396 * configure.ac: Add --with-python-libdir option.
15397 * main.c: Use WITH_PYTHON_LIBDIR.
15398
15399 2020-02-19 Tom Tromey <tom@tromey.com>
15400
15401 * symtab.c (general_symbol_info::compute_and_set_names): Use
15402 obstack_strndup. Simplify call to symbol_set_demangled_name.
15403
15404 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15405
15406 * dwarf2/read.c (allocate_signatured_type_table,
15407 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15408 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15409 Remove objfile parameter, update all callers.
15410
15411 2020-02-19 Doug Evans <dje@google.com>
15412
15413 PR rust/25535
15414 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15415 rust_enum_variant calculation.
15416
15417 2020-02-19 Tom Tromey <tromey@adacore.com>
15418
15419 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15420
15421 2020-02-19 Tom Tromey <tromey@adacore.com>
15422
15423 * ada-lang.c (cache_symbol): Use obstack_strdup.
15424
15425 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15426
15427 * configure: Regenerate.
15428
15429 2020-02-19 Tom Tromey <tromey@adacore.com>
15430
15431 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15432 NULL check.
15433
15434 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15435
15436 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15437
15438 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15439
15440 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15441 if GDBSERVER is not defined.
15442 (riscv_tdesc_cache): Likewise, also store const target_desc.
15443 (STATIC_IN_GDB): Define.
15444 (riscv_create_target_description): Update declaration with
15445 STATIC_IN_GDB.
15446 (riscv_lookup_target_description): New function, only define if
15447 GDBSERVER is not defined.
15448 * arch/riscv.h (riscv_create_target_description): Declare only
15449 when GDBSERVER is defined.
15450 (riscv_lookup_target_description): New declaration when GDBSERVER
15451 is not defined.
15452 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15453 (riscv_linux_read_features): ...this, and return
15454 riscv_gdbarch_features instead of target_desc.
15455 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15456 (riscv_linux_read_description): Rename to...
15457 (riscv_linux_read_features): ...this.
15458 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15459 Update to use riscv_gdbarch_features and
15460 riscv_lookup_target_description.
15461 * riscv-tdep.c (riscv_find_default_target_description): Use
15462 riscv_lookup_target_description instead of
15463 riscv_create_target_description.
15464
15465 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15466
15467 * valprint.c (generic_val_print_enum_1): When printing a flag
15468 enum with value 0 and there is no enumerator with value 0, print
15469 just "0" instead of "(unknown: 0x0)".
15470
15471 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15472
15473 * valprint.c (generic_val_print_enum_1): Print unknown part of
15474 flag enum in hex.
15475
15476 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15477
15478 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15479 flag enums to contain duplicate enumerators.
15480 * valprint.c (generic_val_print_enum_1): Update comment.
15481
15482 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15483
15484 * dwarf2/read.c: Include "count-one-bits.h".
15485 (update_enumeration_type_from_children): If an enumerator has
15486 multiple bits set, don't treat the enumeration as a "flag enum".
15487 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15488 of flag enums have 0 or 1 bit set.
15489
15490 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15491
15492 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15493 conversion.
15494 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15495 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15496 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15497 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15498 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15499
15500 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15501
15502 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15503
15504 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15505
15506 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15507 displaced_step_closure_up.
15508 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15509 (struct displaced_step_closure_up):
15510 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15511 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15512 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15513 Likewise.
15514 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15515 * gdbarch.c, gdbarch.h: Re-generate.
15516 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15517 displaced_step_closure_up.
15518 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15519 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15520 * infrun.h (displaced_step_closure_up): New type alias.
15521 (struct displaced_step_inferior_state) <step_closure>: Change
15522 type to displaced_step_closure_up.
15523 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15524 displaced_step_closure_up.
15525 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15526
15527 2020-02-14 Tom Tromey <tom@tromey.com>
15528
15529 * minidebug.c (gnu_debug_key): New global.
15530 (find_separate_debug_file_in_section): Use it.
15531
15532 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15533
15534 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15535 std::unique_ptr.
15536 * gdbarch.c: Re-generate.
15537 * gdbarch.h: Re-generate.
15538 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15539 change.
15540 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15541 type to std::unique_ptr.
15542 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15543 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15544 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15545 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15546 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15547 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15548 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15549 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15550 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15551
15552 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15553
15554 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15555 std::unique_ptr.
15556 (displaced_step_clear): Rename to...
15557 (displaced_step_reset): ... this. Just call displaced->reset ().
15558 (displaced_step_clear_cleanup): Rename to...
15559 (displaced_step_reset_cleanup): ... this.
15560 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15561 (displaced_step_fixup): Likewise.
15562 (resume_1): Likewise.
15563 (handle_inferior_event): Restore child's memory before calling
15564 displaced_step_fixup on the parent.
15565 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15566 to std::unique_ptr.
15567 <step_closure>: Change type to std::unique_ptr.
15568
15569 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15570
15571 * arm-tdep.c: Include count-one-bits.h.
15572 (cleanup_block_store_pc): Use count_one_bits.
15573 (cleanup_block_load_pc): Use count_one_bits.
15574 (arm_copy_block_xfer): Use count_one_bits.
15575 (thumb2_copy_block_xfer): Use count_one_bits.
15576 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15577 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15578 (thumb_get_next_pcs_raw): Use count_one_bits.
15579 (arm_get_next_pcs_raw): Use count_one_bits_l.
15580 * arch/arm.c (bitcount): Remove.
15581 * arch/arm.h (bitcount): Remove.
15582
15583 2020-02-14 Tom Tromey <tromey@adacore.com>
15584
15585 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15586 Update.
15587 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15588 * dwarf2/loc.c (call_site_find_chain_1): Return
15589 unique_xmalloc_ptr.
15590 (call_site_find_chain): Likewise.
15591
15592 2020-02-14 Richard Biener <rguenther@suse.de>
15593
15594 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15595 on expression with division operators.
15596
15597 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15598
15599 * MAINTAINERS (Write After Approval): Adding myself.
15600
15601 2020-02-12 Tom Tromey <tom@tromey.com>
15602
15603 * event-loop.c (event_data, gdb_event, event_handler_func):
15604 Remove.
15605
15606 2020-02-12 Tom Tromey <tom@tromey.com>
15607
15608 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15609 (dwarf2_frame_objfile_data): Add comment.
15610 (find_comp_unit, set_comp_unit): New functions.
15611 (dwarf2_frame_find_fde): Use find_comp_unit.
15612 (dwarf2_build_frame_info): Use set_comp_unit.
15613
15614 2020-02-12 Tom Tromey <tom@tromey.com>
15615
15616 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15617 (comp_unit): Don't initialize objfile.
15618 (execute_cfa_program): Add text_offset parameter.
15619 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15620 (dwarf2_frame_cache): Update.
15621 (dwarf2_build_frame_info): Don't set "objfile" member.
15622
15623 2020-02-12 Tom Tromey <tom@tromey.com>
15624
15625 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15626 (decode_frame_entry): Likewise.
15627 (dwarf2_build_frame_info): Update.
15628
15629 2020-02-12 Tom Tromey <tom@tromey.com>
15630
15631 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15632 (decode_frame_entry_1): Use the comp_unit obstack.
15633
15634 2020-02-12 Tom Tromey <tom@tromey.com>
15635
15636 * dwarf2/frame.c (struct comp_unit): Add initializers and
15637 constructor.
15638 (dwarf2_frame_objfile_data): Store a comp_unit.
15639 (dwarf2_frame_find_fde): Update.
15640 (dwarf2_build_frame_info): Use "new".
15641
15642 2020-02-12 Tom Tromey <tom@tromey.com>
15643
15644 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15645 (dwarf2_fde_table): Typedef for std::vector.
15646 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15647 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15648 (decode_frame_entry): Update.
15649 (dwarf2_build_frame_info): Use "new".
15650
15651 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15652
15653 * arm-tdep.c (arm_gdbarch_init): Update.
15654 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15655 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15656 have_neon, is_m>: Change to bool.
15657
15658 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15659
15660 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15661
15662 2020-02-12 Tom Tromey <tom@tromey.com>
15663
15664 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15665
15666 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15667
15668 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15669 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15670
15671 2020-02-11 Tom Tromey <tom@tromey.com>
15672
15673 * psymtab.h: Update comment.
15674
15675 2020-02-11 Tom Tromey <tom@tromey.com>
15676
15677 * gdb_obstack.h (struct auto_obstack): Use
15678 DISABLE_COPY_AND_ASSIGN.
15679
15680 2020-02-11 Tom Tromey <tom@tromey.com>
15681
15682 * dwarf2/frame.h (struct objfile): Don't forward declare.
15683
15684 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15685
15686 * cris-tdep.c (cris_supply_gregset): Change signature to match
15687 what struct regset expects.
15688 (cris_regset): New struct.
15689 (fetch_core_registers): Remove.
15690 (cris_iterate_over_regset_sections): New function.
15691 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15692 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15693
15694 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15695
15696 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15697 registers.
15698
15699 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15700
15701 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15702
15703 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15704
15705 * configure: Re-generate.
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 * acinclude: Update warning.m4 path.
15714 * warning.m4: Move to gdbsupport.
15715
15716 2020-02-11 Tom Tromey <tromey@adacore.com>
15717
15718 * remote.c (remote_console_output): Update.
15719 * printcmd.c (printf_command): Update.
15720 * event-loop.c (gdb_wait_for_event): Update.
15721 * linux-nat.c (sigchld_handler): Update.
15722 * remote-sim.c (gdb_os_write_stdout): Update.
15723 (gdb_os_flush_stdout): Update.
15724 (gdb_os_flush_stderr): Update.
15725 (gdb_os_write_stderr): Update.
15726 * exceptions.c (print_exception): Update.
15727 * remote-fileio.c (remote_fileio_func_read): Update.
15728 (remote_fileio_func_write): Update.
15729 * tui/tui.c (tui_enable): Update.
15730 * tui/tui-interp.c (tui_interp::init): Update.
15731 * utils.c (init_page_info): Update.
15732 (putchar_unfiltered, fputc_unfiltered): Update.
15733 (gdb_flush): Update.
15734 (emit_style_escape): Update.
15735 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15736 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15737 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15738 (stderr_file::write): Update.
15739 (stderr_file::puts): Update.
15740 * ui-file.h (ui_file_isatty, ui_file_write)
15741 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15742 (ui_file_puts): Don't declare.
15743
15744 2020-02-10 Tom de Vries <tdevries@suse.de>
15745
15746 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15747 sentinel to char *.
15748
15749 2020-02-09 Tom de Vries <tdevries@suse.de>
15750
15751 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15752 filename if it matches "<artificial>".
15753
15754 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15755
15756 * windows-tdep.c (struct enum_value_name): New struct.
15757 (create_enum): New function.
15758 (windows_get_siginfo_type): Create and use enum types.
15759
15760 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15761
15762 * NEWS: Mention $_siginfo support for Windows.
15763 * windows-nat.c (handle_exception): Set siginfo_er.
15764 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15765 (windows_xfer_siginfo): New function.
15766 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15767 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15768 (init_windows_gdbarch_data): New function.
15769 (get_windows_gdbarch_data): New function.
15770 (windows_get_siginfo_type): New function.
15771 (windows_init_abi): Register windows_get_siginfo_type.
15772 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15773
15774 2020-02-08 Tom Tromey <tom@tromey.com>
15775
15776 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15777 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15778 <keep>: Declare method.
15779 <m_keep>: Remove member.
15780 <~cutu_reader>: Remove.
15781 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15782 (cutu_reader::cutu_reader): Update.
15783 (cutu_reader::keep): Rename from ~cutu_reader.
15784 (process_psymtab_comp_unit, build_type_psymtabs_1)
15785 (process_skeletonless_type_unit, load_partial_comp_unit)
15786 (load_full_comp_unit, dwarf2_read_addr_index)
15787 (read_signatured_type): Update.
15788
15789 2020-02-08 Tom Tromey <tom@tromey.com>
15790
15791 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15792 "want_partial_unit" parameter.
15793 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15794 Inline check for DW_TAG_partial_unit.
15795 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15796
15797 2020-02-08 Tom Tromey <tom@tromey.com>
15798
15799 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15800 read.c.
15801 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15802 read.c.
15803
15804 2020-02-08 Tom Tromey <tom@tromey.com>
15805
15806 * dwarf2/read.c (read_address): Move to comp-unit.c.
15807 (dwarf2_rnglists_process, dwarf2_ranges_process)
15808 (read_attribute_value, dwarf_decode_lines_1)
15809 (var_decode_location, decode_locdesc): Update.
15810 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15811 read.c. Remove "cu" parameter.
15812 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15813 method.
15814
15815 2020-02-08 Tom Tromey <tom@tromey.com>
15816
15817 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15818 (read_indirect_line_string): Update.
15819 * dwarf2/comp-unit.c (read_offset): Remove.
15820 (read_comp_unit_head): Update.
15821 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15822 method.
15823 (read_offset): Don't declare.
15824
15825 2020-02-08 Tom Tromey <tom@tromey.com>
15826
15827 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15828 * dwarf2/read.c (struct comp_unit_head): Move to
15829 dwarf2/comp-unit.h.
15830 (enum class rcuh_kind): Move to comp-unit.h.
15831 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15832 (read_comp_unit_head, error_check_comp_unit_head)
15833 (read_and_check_comp_unit_head): Move to comp-unit.c.
15834 (read_offset, dwarf_unit_type_name): Likewise.
15835 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15836 (cutu_reader::cutu_reader, read_call_site_scope)
15837 (find_partial_die, follow_die_offset): Update.
15838 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15839
15840 2020-02-08 Tom Tromey <tom@tromey.com>
15841
15842 * dwarf2/read.c (read_offset_1): Move to leb.c.
15843 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15844 (dwarf_decode_macro_bytes): Update.
15845 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15846 * dwarf2/leb.h (read_offset): Declare.
15847
15848 2020-02-08 Tom Tromey <tom@tromey.com>
15849
15850 * dwarf2/read.c (dwarf2_section_size): Remove.
15851 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15852 Update.
15853 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15854
15855 2020-02-08 Tom Tromey <tom@tromey.com>
15856
15857 * dwarf2/read.c (read_initial_length): Move to leb.c.
15858 * dwarf2/leb.h (read_initial_length): Declare.
15859 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15860 handle_nonstd parameter.
15861 * dwarf2/frame.c (read_initial_length): Remove.
15862 (decode_frame_entry_1): Update.
15863
15864 2020-02-08 Tom Tromey <tom@tromey.com>
15865
15866 * dwarf2/loc.c (dwarf2_find_location_expression)
15867 (dwarf_evaluate_loc_desc::get_tls_address)
15868 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15869 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15870 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15871 (dwarf2_compile_property_to_c)
15872 (dwarf2_loc_desc_get_symbol_read_needs)
15873 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15874 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15875 (loclist_describe_location, loclist_tracepoint_var_ref)
15876 (loclist_generate_c_location): Update.
15877 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15878 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15879 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15880 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15881 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15882 (dwarf2_per_cu_data::addr_size)
15883 (dwarf2_per_cu_data::ref_addr_size)
15884 (dwarf2_per_cu_data::text_offset)
15885 (dwarf2_per_cu_data::addr_type): Now methods.
15886 (per_cu_header_read_in): Make per_cu "const".
15887 (dwarf2_version): Remove.
15888 (dwarf2_per_cu_data::int_type): Now a method.
15889 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15890 (set_die_type, read_array_type, read_subrange_index_type)
15891 (read_tag_string_type, read_subrange_type): Update.
15892 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15893 offset_size, ref_addr_size, text_offset, addr_type, version,
15894 objfile, int_type, addr_sized_int_type>: Declare methods.
15895
15896 2020-02-08 Tom Tromey <tom@tromey.com>
15897
15898 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15899 Move earlier.
15900
15901 2020-02-08 Tom Tromey <tom@tromey.com>
15902
15903 * dwarf2/read.h (dwarf_line_debug): Declare.
15904 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15905 * dwarf2/read.c: Move line_header code to new files.
15906 (dwarf_line_debug): No longer static.
15907 * dwarf2/line-header.c: New file.
15908 * dwarf2/line-header.h: New file.
15909
15910 2020-02-08 Tom Tromey <tom@tromey.com>
15911
15912 * dwarf2/read.c (struct line_header) <file_full_name,
15913 file_file_name>: Return unique_xmalloc_ptr.
15914 (line_header::file_file_name): Update.
15915 (line_header::file_full_name): Update.
15916 (dw2_get_file_names_reader): Update.
15917 (macro_start_file): Update.
15918
15919 2020-02-08 Tom Tromey <tom@tromey.com>
15920
15921 * dwarf2/read.c (struct line_header) <file_full_name,
15922 file_file_name>: Declare methods.
15923 (dw2_get_file_names_reader): Update.
15924 (file_file_name): Now a method.
15925 (file_full_name): Likewise.
15926 (macro_start_file): Update.
15927
15928 2020-02-08 Tom Tromey <tom@tromey.com>
15929
15930 * dwarf2/read.c (dwarf_always_disassemble)
15931 (show_dwarf_always_disassemble): Move to loc.c.
15932 (_initialize_dwarf2_read): Move "always-disassemble" registration
15933 to loc.c.
15934 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15935 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15936 static.
15937 (show_dwarf_always_disassemble): Move from read.c.
15938 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15939
15940 2020-02-08 Tom Tromey <tom@tromey.com>
15941
15942 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15943 (create_quick_file_names_table): Return htab_up.
15944 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15945 Update.
15946 * dwarf2/read.h (struct dwarf2_per_objfile)
15947 <quick_file_names_table>: Now htab_up.
15948
15949 2020-02-08 Tom Tromey <tom@tromey.com>
15950
15951 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15952
15953 2020-02-08 Tom Tromey <tom@tromey.com>
15954
15955 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15956 Rewrite.
15957 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15958 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15959 (abbrev_table::abbrev_table): No longer inline.
15960 (ABBREV_HASH_SIZE): Remove.
15961 (abbrev_table::m_abbrevs): Now an htab_up.
15962
15963 2020-02-08 Tom Tromey <tom@tromey.com>
15964
15965 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15966 (cutu_reader): Update.
15967 (build_type_psymtabs_1): Update.
15968 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15969 (abbrev_table::alloc_abbrev): Update.
15970 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15971 (abbrev_table::read): New static method, renamed from
15972 abbrev_table_read_table.
15973 (abbrev_table::alloc_abbrev)
15974 (abbrev_table::add_abbrev): Now private.
15975 (abbrev_table::abbrev_table): Now private.
15976 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15977
15978 2020-02-08 Tom Tromey <tom@tromey.com>
15979
15980 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15981 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15982 htab_up.
15983
15984 2020-02-08 Tom Tromey <tom@tromey.com>
15985
15986 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15987 htab_up.
15988 (lookup_dwo_unit_in_dwp): Update.
15989 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15990 on obstack.
15991
15992 2020-02-08 Tom Tromey <tom@tromey.com>
15993
15994 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15995 obstack.
15996
15997 2020-02-08 Tom Tromey <tom@tromey.com>
15998
15999 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16000 line_header_hash.
16001 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16002 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16003 Change type to htab_up.
16004
16005 2020-02-08 Tom Tromey <tom@tromey.com>
16006
16007 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16008 htab_up. Don't allocate on obstack.
16009 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16010 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16011 Change type to htab_up.
16012
16013 2020-02-08 Tom Tromey <tom@tromey.com>
16014
16015 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16016 Change type to htab_up.
16017 * dwarf2/read.c (create_signatured_type_table_from_index)
16018 (create_signatured_type_table_from_debug_names)
16019 (create_all_type_units, add_type_unit)
16020 (lookup_dwo_signatured_type, lookup_signatured_type)
16021 (process_skeletonless_type_unit): Update.
16022 (create_debug_type_hash_table, create_debug_types_hash_table):
16023 Change type of types_htab.
16024 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16025 htab_up. Don't allocate on obstack.
16026 (create_cus_hash_table): Change type of cus_htab parameter.
16027 (struct dwo_file) <cus, tus>: Now htab_up.
16028 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16029 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16030 (queue_and_load_all_dwo_tus): Update.
16031 * dwarf2/index-write.c (write_gdbindex): Update.
16032 (write_debug_names): Update.
16033
16034 2020-02-08 Tom Tromey <tom@tromey.com>
16035
16036 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16037 dwarf2/read.c. Remove "next" member. Add constructor ntad
16038 destructor.
16039 (struct dwarf2_per_objfile) <queue>: New member.
16040 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16041 dwarf2/read.h.
16042 (dwarf2_queue, dwarf2_queue_tail): Remove.
16043 (class dwarf2_queue_guard): Add parameter to constructor. Use
16044 DISABLE_COPY_AND_ASSIGN.
16045 <m_per_objfile>: New member.
16046 <~dwarf2_queue_guard>: Rewrite.
16047 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16048 Update.
16049 (~dwarf2_queue_item): New.
16050
16051 2020-02-08 Tom Tromey <tom@tromey.com>
16052
16053 * dwarf2/read.c (struct die_info) <has_children>: New member.
16054 (dw2_get_file_names_reader): Remove has_children.
16055 (dw2_get_file_names): Update.
16056 (read_cutu_die_from_dwo): Remove has_children.
16057 (cutu_reader::init_tu_and_read_dwo_dies)
16058 (cutu_reader::cutu_reader): Update.
16059 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16060 Remove has_children.
16061 (build_type_psymtabs_1, process_skeletonless_type_unit)
16062 (load_partial_comp_unit, load_full_comp_unit): Update.
16063 (create_dwo_cu_reader): Remove has_children.
16064 (create_cus_hash_table, read_die_and_children): Update.
16065 (read_full_die_1,read_full_die): Remove has_children.
16066 (read_signatured_type): Update.
16067 (class cutu_reader) <has_children>: Remove.
16068
16069 2020-02-08 Tom Tromey <tom@tromey.com>
16070
16071 * dwarf2/expr.c: Rename from dwarf2expr.c.
16072 * dwarf2/expr.h: Rename from dwarf2expr.h.
16073 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16074 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16075 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16076 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16077 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16078 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16079 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16080 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16081 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16082 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16083 * dwarf2/loc.c: Rename from dwarf2loc.c.
16084 * dwarf2/loc.h: Rename from dwarf2loc.h.
16085 * dwarf2/read.c: Rename from dwarf2read.c.
16086 * dwarf2/read.h: Rename from dwarf2read.h.
16087 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16088 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16089 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16090 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16091 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16092 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16093 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16094 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16095 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16096 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16097 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16098 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16099 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16100 Update.
16101 * Makefile.in (COMMON_SFILES): Update.
16102 (HFILES_NO_SRCDIR): Update.
16103
16104 2020-02-08 Tom Tromey <tom@tromey.com>
16105
16106 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16107 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16108
16109 2020-02-08 Tom Tromey <tom@tromey.com>
16110
16111 * dwarf2read.h (struct die_info): Don't declare.
16112
16113 2020-02-08 Tom Tromey <tom@tromey.com>
16114
16115 * dwarf2read.h (die_info_ptr): Remove typedef.
16116
16117 2020-02-08 Tom Tromey <tom@tromey.com>
16118
16119 * dwarf2read.c (read_call_site_scope)
16120 (handle_data_member_location, dwarf2_add_member_fn)
16121 (mark_common_block_symbol_computed, read_common_block)
16122 (attr_to_dynamic_prop, partial_die_info::read)
16123 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16124 (dwarf2_symbol_mark_computed, set_die_type): Update.
16125 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16126 method.
16127 (attr_form_is_block): Don't declare.
16128 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16129
16130 2020-02-08 Tom Tromey <tom@tromey.com>
16131
16132 * dwarf2read.c (dwarf2_find_base_address, )
16133 (read_call_site_scope, rust_containing_type)
16134 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16135 (handle_data_member_location, dwarf2_add_member_fn)
16136 (get_alignment, read_structure_type, process_structure_scope)
16137 (mark_common_block_symbol_computed, read_common_block)
16138 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16139 (partial_die_info::read, read_attribute_value, new_symbol)
16140 (lookup_die_type, dwarf2_get_ref_die_offset)
16141 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16142 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16143 (dwarf2_symbol_mark_computed): Update.
16144 * dwarf2/attribute.h (struct attribute) <value_as_address,
16145 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16146 methods.
16147 (value_as_address, attr_form_is_section_offset)
16148 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16149 * dwarf2/attribute.c (attribute::value_as_address)
16150 (attribute::form_is_section_offset, attribute::form_is_constant)
16151 (attribute::form_is_ref): Now methods.
16152
16153 2020-02-08 Tom Tromey <tom@tromey.com>
16154
16155 * dwarf2read.c (struct attribute, DW_STRING)
16156 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16157 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16158 (attr_form_is_block, attr_form_is_section_offset)
16159 (attr_form_is_constant, attr_form_is_ref): Move.
16160 * dwarf2/attribute.h: New file.
16161 * dwarf2/attribute.c: New file, from dwarf2read.c.
16162 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16163
16164 2020-02-08 Tom Tromey <tom@tromey.com>
16165
16166 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16167 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16168 Move.
16169 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16170 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16171 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16172 abbrev.c.
16173 * dwarf2/abbrev.h: New file.
16174 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16175 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16176
16177 2020-02-08 Tom Tromey <tom@tromey.com>
16178
16179 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16180 (dwarf2_section_size, dwarf2_get_section_info)
16181 (create_signatured_type_table_from_debug_names)
16182 (create_addrmap_from_aranges, read_debug_names_from_section)
16183 (get_gdb_index_contents_from_section, read_comp_unit_head)
16184 (error_check_comp_unit_head, read_abbrev_offset)
16185 (create_debug_type_hash_table, init_cu_die_reader)
16186 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16187 (read_comp_units_from_section, create_cus_hash_table)
16188 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16189 (create_dwp_v2_section, dwarf2_rnglists_process)
16190 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16191 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16192 (read_indirect_string_from_dwz, read_addr_index_1)
16193 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16194 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16195 (fill_in_loclist_baton): Update.
16196 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16197 get_containing_section, get_bfd_owner, get_bfd_section,
16198 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16199 (dwarf2_read_section, get_section_name, get_section_file_name)
16200 (get_containing_section, get_section_bfd_owner)
16201 (get_section_bfd_section, get_section_name, get_section_file_name)
16202 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16203 declare.
16204 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16205 (dwarf2_section_info::get_bfd_owner)
16206 (dwarf2_section_info::get_bfd_section)
16207 (dwarf2_section_info::get_name)
16208 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16209 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16210 (dwarf2_section_info::read): Now methods.
16211 * dwarf-index-write.c (class debug_names): Update.
16212
16213 2020-02-08 Tom Tromey <tom@tromey.com>
16214
16215 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16216 Move to dwarf2/section.h.
16217 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16218 (get_section_bfd_section, get_section_name)
16219 (get_section_file_name, get_section_id, get_section_flags)
16220 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16221 dwarf2/section.c.
16222 * dwarf2/section.h: New file.
16223 * dwarf2/section.c: New file, from dwarf2read.c.
16224 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16225
16226 2020-02-08 Tom Tromey <tom@tromey.com>
16227
16228 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16229 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16230 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16231 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16232 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16233 * dwarf2/leb.h: New file, from dwarf2read.c.
16234 * dwarf2/leb.c: New file, from dwarf2read.c.
16235 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16236 Remove.
16237 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16238 (COMMON_SFILES): Add dwarf2/leb.c.
16239
16240 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16241
16242 GDB 9.1 released.
16243
16244 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16245
16246 PR gdb/25190:
16247 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16248 * gdb/remote.c (remote_console_output): Update.
16249 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16250 (ui_file_puts): ...this.
16251 * gdb/ui-file.h (ui_file_puts): Add declaration.
16252 * gdb/utils.c (emit_style_escape): Update.
16253 (flush_wrap_buffer): Update.
16254 (fputs_maybe_filtered): Update.
16255 (fputs_unfiltered): Add function.
16256
16257 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16258
16259 * gdb/event-loop.c (gdb_wait_for_event): Update.
16260 * gdb/printcmd.c (printf_command): Update.
16261 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16262 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16263 (gdb_os_flush_stderr): Update.
16264 * gdb/remote.c (remote_console_output): Update.
16265 * gdb/ui-file.c (gdb_flush): Rename to...
16266 (ui_file_flush): ...this.
16267 (stderr_file::write): Update.
16268 (stderr_file::puts): Update.
16269 * gdb/ui-file.h (gdb_flush): Rename to...
16270 (ui_file_flush): ...this.
16271 * gdb/utils.c (gdb_flush): Add function.
16272 * gdb/utils.h (gdb_flush): Add declaration.
16273
16274 2020-02-07 Tom Tromey <tromey@adacore.com>
16275
16276 PR breakpoints/24915:
16277 * source.c (find_and_open_source): Do not check basenames_may_differ.
16278
16279 2020-02-07 Tom Tromey <tom@tromey.com>
16280
16281 * README: Update gdbserver documentation.
16282 * gdbserver: Move to top level.
16283 * configure.tgt (build_gdbserver): Remove.
16284 * configure.ac: Remove --enable-gdbserver.
16285 * configure: Rebuild.
16286 * Makefile.in (distclean): Don't mention gdbserver.
16287
16288 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16289
16290 * source-cache.c (source_cache::ensure): Surround
16291 get_plain_source_lines with a try/catch.
16292 (source_cache::get_line_charpos): Get rid of try/catch
16293 and only check for the return value of "ensure".
16294 * tui/tui-source.c (tui_source_window::set_contents):
16295 Simplify "nlines" calculation.
16296
16297 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16298
16299 * MAINTAINERS (Write After Approval): Add myself.
16300
16301 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16302
16303 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16304 function call.
16305
16306 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16307
16308 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16309
16310 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16311
16312 * nat/riscv-linux-tdesc.h: New file.
16313 * nat/riscv-linux-tdesc.c: New file, taking code from...
16314 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16315 ... here.
16316 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16317 NATDEPFILES.
16318
16319 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16320
16321 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16322 we don't set the fake simulator ptid to the null_ptid.
16323
16324 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16325
16326 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16327 * gdbthread.h (class thread_info) <resumed>: Likewise.
16328 * infrun.c (resume_1): Likewise.
16329 (proceed): Likewise.
16330 (infrun_thread_stop_requested): Likewise.
16331 (stop_all_threads): Likewise.
16332 (handle_inferior_event): Likewise.
16333 (restart_threads): Likewise.
16334 (finish_step_over): Likewise.
16335 (keep_going_stepped_thread): Likewise.
16336 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16337 (linux_handle_extended_wait): Likewise.
16338 * record-btrace.c (get_thread_current_frame_id): Likewise.
16339 * record-full.c (record_full_wait_1): Likewise.
16340 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16341 * target.c (target_resume): Likewise.
16342 * thread.c (set_running_thread): Likewise.
16343
16344 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16345
16346 * f-valprint.c (f77_print_array_1): Changed datatype of index
16347 variable to LONGEST from int to enable it to contain bound
16348 values correctly.
16349
16350 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16351
16352 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16353 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16354 offsets according to FLEN determined.
16355 (riscv_linux_nat_target::read_description): Determine FLEN
16356 dynamically.
16357 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16358 according to FLEN determined.
16359 (riscv_linux_nat_target::store_registers): Likewise.
16360
16361 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16362
16363 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16364 when reg->group is empty and reggroup is not.
16365
16366 2020-01-31 Tom Tromey <tromey@adacore.com>
16367
16368 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16369 Call beneath target's mourn_inferior after unpushing.
16370
16371 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16372
16373 PR tui/9765
16374 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16375 have enough lines to fill the screen, still return the lowest
16376 address we found.
16377
16378 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16379
16380 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16381 '-', '<', and '>' commands.
16382
16383 2020-01-29 Pedro Alves <palves@redhat.com>
16384 Sergio Durigan Junior <sergiodj@redhat.com>
16385
16386 * infcmd.c (construct_inferior_arguments): Assert that
16387 'argc' is greater than 0.
16388
16389 2020-01-29 Luis Machado <luis.machado@linaro.org>
16390
16391 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16392 (BRK_INSN_MASK): Define to 0xd4200000.
16393 (aarch64_program_breakpoint_here_p): New function.
16394 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16395 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16396 breakpoint.c.
16397 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16398 breakpoint.h
16399 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16400 call gdbarch_program_breakpoint_here_p.
16401 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16402 default_program_breakpoint_here_p, changed return type to bool and
16403 simplified.
16404 * breakpoint.h (program_breakpoint_here): Moved prototype to
16405 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16406 return type to bool.
16407 * gdbarch.c: Regenerate.
16408 * gdbarch.h: Regenerate.
16409 * gdbarch.sh (program_breakpoint_here_p): New method.
16410 * infrun.c (handle_signal_stop): Call
16411 gdbarch_program_breakpoint_here_p.
16412
16413 2020-01-26 Tom Tromey <tom@tromey.com>
16414
16415 * ctfread.c (struct ctf_fp_info): Reindent.
16416 (_initialize_ctfread): Remove.
16417
16418 2020-01-26 Tom Tromey <tom@tromey.com>
16419
16420 * psymtab.c (partial_map_expand_apply)
16421 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16422 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16423 (psym_print_stats, psym_expand_symtabs_for_function)
16424 (psym_map_symbol_filenames, psym_map_matching_symbols)
16425 (psym_expand_symtabs_matching)
16426 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16427 (maintenance_check_psymtabs): Use new methods.
16428 * psympriv.h (struct partial_symtab) <readin_p,
16429 get_compunit_symtab>: New methods.
16430 <readin, compunit_symtab>: Remove members.
16431 (struct standard_psymtab): New.
16432 (struct legacy_psymtab): Derive from standard_psymtab.
16433 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16434 standard_psymtab.
16435 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16436
16437 2020-01-26 Tom Tromey <tom@tromey.com>
16438
16439 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16440 read_dependencies. Add assert.
16441 * psymtab.c (partial_symtab::read_dependencies): New method.
16442 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16443 method.
16444 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16445 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16446 read_dependencies.
16447 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16448 Add assert.
16449
16450 2020-01-26 Tom Tromey <tom@tromey.com>
16451
16452 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16453 Call expand_psymtab.
16454 (xcoff_read_symtab): Call expand_psymtab.
16455 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16456 legacy_expand_psymtab.
16457 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16458 method.
16459 (struct legacy_psymtab) <expand_psymtab>: Implement.
16460 <legacy_expand_psymtab>: New member.
16461 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16462 (parse_partial_symbols): Set legacy_expand_psymtab.
16463 (psymtab_to_symtab_1): Change argument order. Call
16464 expand_psymtab.
16465 (new_psymtab): Set legacy_expand_psymtab.
16466 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16467 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16468 expand_psymtab.
16469 (dwarf2_psymtab::expand_psymtab): Rename from
16470 psymtab_to_symtab_1. Call expand_psymtab.
16471 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16472 (dbx_end_psymtab): Likewise.
16473 (dbx_psymtab_to_symtab_1): Change argument order. Call
16474 expand_psymtab.
16475 (dbx_read_symtab): Call expand_psymtab.
16476 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16477 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16478 (ctf_psymtab::read_symtab): Call expand_psymtab.
16479
16480 2020-01-26 Tom Tromey <tom@tromey.com>
16481
16482 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16483 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16484 messages.
16485 * mdebugread.c (mdebug_read_symtab): Remove prints.
16486 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16487 assert.
16488 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16489
16490 2020-01-26 Tom Tromey <tom@tromey.com>
16491
16492 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16493 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16494 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16495 legacy_symtab.
16496 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16497 * psymtab.c (psymtab_to_symtab): Call method.
16498 (dump_psymtab): Update.
16499 * psympriv.h (struct partial_symtab): Add virtual destructor.
16500 <read_symtab>: New method.
16501 (struct legacy_symtab): New.
16502 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16503 (struct pst_map) <pst>: Now a legacy_psymtab.
16504 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16505 (new_psymtab): Use legacy_psymtab.
16506 * dwarf2read.h (struct dwarf2_psymtab): New.
16507 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16508 * dwarf2read.c (dwarf2_create_include_psymtab)
16509 (dwarf2_build_include_psymtabs, create_type_unit_group)
16510 (create_partial_symtab, process_psymtab_comp_unit_reader)
16511 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16512 (set_partial_user): Use dwarf2_psymtab.
16513 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16514 (psymtab_to_symtab_1, process_full_comp_unit)
16515 (process_full_type_unit, dwarf2_ranges_read)
16516 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16517 (dwarf_decode_lines): Use dwarf2_psymtab.
16518 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16519 (add_address_entry_worker, write_one_signatured_type)
16520 (recursively_count_psymbols, recursively_write_psymbols)
16521 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16522 (write_debug_names): Likewise.
16523 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16524 <pst>: Now a legacy_psymtab.
16525 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16526 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16527 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16528 * ctfread.c (struct ctf_psymtab): New.
16529 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16530 ctf_psymtab.
16531 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16532 (create_partial_symtab): Return a ctf_psymtab.
16533 (scan_partial_symbols): Update.
16534
16535 2020-01-26 Tom Tromey <tom@tromey.com>
16536
16537 * xcoffread.c (xcoff_start_psymtab): Use new.
16538 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16539 renamed from start_psymtab_common.
16540 * psympriv.h (struct partial_symtab): Add new constructor.
16541 (start_psymtab_common): Don't declare.
16542 * mdebugread.c (parse_partial_symbols): Use new.
16543 * dwarf2read.c (create_partial_symtab): Use new.
16544 * dbxread.c (start_psymtab): Use new.
16545 * ctfread.c (create_partial_symtab): Use new.
16546
16547 2020-01-26 Tom Tromey <tom@tromey.com>
16548
16549 * xcoffread.c (xcoff_end_psymtab): Use new.
16550 * psymtab.c (start_psymtab_common): Use new.
16551 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16552 Update.
16553 * psympriv.h (struct partial_symtab): Add parameters to
16554 constructor. Don't inline.
16555 (allocate_psymtab): Don't declare.
16556 * mdebugread.c (new_psymtab): Use new.
16557 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16558 * dbxread.c (dbx_end_psymtab): Use new.
16559
16560 2020-01-26 Tom Tromey <tom@tromey.com>
16561
16562 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16563 allocate_psymtab. Update documentation.
16564 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16565 allocate_psymtab. Do not use new.
16566 (allocate_psymtab): Use new. Update.
16567
16568 2020-01-26 Tom Tromey <tom@tromey.com>
16569
16570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16571 * psymtab.c (psym_print_stats): Update.
16572 * psympriv.h (struct partial_symtab) <readin,
16573 psymtabs_addrmap_supported, anonymous>: Now bool.
16574 * mdebugread.c (psymtab_to_symtab_1): Update.
16575 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16576 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16577 (process_full_comp_unit, process_full_type_unit): Update.
16578 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16579 * ctfread.c (psymtab_to_symtab): Update.
16580
16581 2020-01-26 Tom Tromey <tom@tromey.com>
16582
16583 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16584 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16585 * psymtab.c (psymtab_storage): Delete psymtabs.
16586 (psymtab_storage::allocate_psymtab): Use new.
16587 (psymtab_storage::discard_psymtab): Use delete.
16588 * psympriv.h (struct partial_symtab): Add constructor and
16589 initializers.
16590
16591 2020-01-26 Tom Tromey <tom@tromey.com>
16592
16593 * machoread.c: Do not include psympriv.h.
16594
16595 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16596
16597 * NEWS: Mention the new option and the set/show commands.
16598
16599 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16600
16601 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16602 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16603 (validate_exec_file): New variables, enums, functions.
16604 (exec_file_locate_attach, print_section_info): Style the filenames.
16605 (_initialize_exec): Install show_exec_file_mismatch_command and
16606 set_exec_file_mismatch_command.
16607 * gdbcore.h (validate_exec_file): Declare.
16608 * infcmd.c (attach_command): Call validate_exec_file.
16609 * remote.c ( remote_target::remote_add_inferior): Likewise.
16610
16611 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16612
16613 * frame.c (find_frame_sal): Move call to get_next_frame into more
16614 inner scope.
16615 * inline-frame.c (inilne_state) <inline_state>: Update argument
16616 types.
16617 (inilne_state) <skipped_symbol>: Rename to...
16618 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16619 (skip_inline_frames): Build vector of skipped symbols and use this
16620 to reate the inline_state.
16621 (inline_skipped_symbol): Add a comment and some assertions, fetch
16622 skipped symbol from the list.
16623
16624 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16625
16626 * buildsym.c (lte_is_less_than): Delete.
16627 (buildsym_compunit::end_symtab_with_blockvector): Create local
16628 lambda function to sort line table entries, and use
16629 std::stable_sort instead of std::sort.
16630 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16631 markers when looking for a previous line.
16632
16633 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16634
16635 * dwarf2read.c (lnp_state_machine::record_line): Include
16636 end_sequence parameter in debug print out. Record the line if we
16637 are at an end_sequence marker even if it's not the start of a
16638 statement.
16639 * symmisc.c (maintenance_print_one_line_table): Print end of
16640 sequence markers with 'END' not '0'.
16641
16642 2020-01-24 Pedro Alves <palves@redhat.com>
16643
16644 PR gdb/25410
16645 * thread.c (scoped_restore_current_thread::restore): Use
16646 switch_to_inferior_no_thread.
16647 * exec.c: Include "progspace-and-thread.h".
16648 (add_target_sections, remove_target_sections):
16649 scoped_restore_current_pspace_and_thread instead of
16650 scoped_restore_current_thread.
16651 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16652 and aspace to the inferior before calling clone_program_space.
16653 Remove stale comment.
16654
16655 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16656
16657 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16658 (arm_netbsd_nat_target::fetch_registers): ...this.
16659 (arm_nbsd_nat_target::store_registers): Rename to...
16660 (arm_netbsd_nat_target::store_registers): ...this.
16661
16662 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16663
16664 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16665 register_t.
16666
16667 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16668
16669 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16670 Update comment.
16671 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16672 Likewise.
16673 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16674 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16675 the correct replacement (iterate_over_regset_sections).
16676 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16677 Update comment.
16678
16679 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16680
16681 PR gdb/23718
16682 * gdb/python/python.c (execute_gdb_command): Call
16683 async_enable_stdin in catch block.
16684
16685 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16686
16687 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16688 SWITCH_THRU_ALL_UIS.
16689
16690 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16691
16692 PR tui/9765
16693 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16694 comment, add extra parameter, and update to store previous symbol
16695 when appropriate.
16696 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16697 add extra parameter.
16698 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16699 remove unneeded parameter, add try/catch around gdb_print_insn,
16700 rewrite to add items to asm_lines vector.
16701 (tui_find_backward_disassembly_start_address): New function.
16702 (tui_find_disassembly_address): Updated throughout.
16703 (tui_disasm_window::set_contents): Update for changes to
16704 tui_disassemble.
16705 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16706 number of lines to scroll.
16707
16708 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16709
16710 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16711 (SECT_OFF_DATA): Likewise.
16712 (SECT_OFF_RODATA): Likewise.
16713 (SECT_OFF_TEXT): Likewise.
16714 (SECT_OFF_BSS): Likewise.
16715 (struct objfile) <text_section_offset, data_section_offset>: New
16716 methods.
16717 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16718 objfile::text_section_offset.
16719 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16720 * coffread.c (coff_symtab_read): Likewise.
16721 (enter_linenos): Likewise.
16722 (process_coff_symbol): Likewise.
16723 * ctfread.c (get_objfile_text_range): Likewise.
16724 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16725 Use objfile::data_section_offset.
16726 * dwarf2-frame.c (execute_cfa_program): Use
16727 objfile::text_section_offset.
16728 (dwarf2_frame_find_fde): Likewise.
16729 * dwarf2read.c (create_addrmap_from_index): Likewise.
16730 (create_addrmap_from_aranges): Likewise.
16731 (dw2_find_pc_sect_compunit_symtab): Likewise.
16732 (process_psymtab_comp_unit_reader): Likewise.
16733 (add_partial_symbol): Likewise.
16734 (add_partial_subprogram): Likewise.
16735 (process_full_comp_unit): Likewise.
16736 (read_file_scope): Likewise.
16737 (read_func_scope): Likewise.
16738 (read_lexical_block_scope): Likewise.
16739 (read_call_site_scope): Likewise.
16740 (dwarf2_rnglists_process): Likewise.
16741 (dwarf2_ranges_process): Likewise.
16742 (dwarf2_ranges_read): Likewise.
16743 (dwarf_decode_lines_1): Likewise.
16744 (new_symbol): Likewise.
16745 (dwarf2_fetch_die_loc_sect_off): Likewise.
16746 (dwarf2_per_cu_text_offset): Likewise.
16747 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16748 * hppa-tdep.c (read_unwind_info): Likewise.
16749 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16750 * psympriv.h (struct partial_symtab): Likewise.
16751 * psymtab.c (find_pc_sect_psymtab): Likewise.
16752 * solib-svr4.c (enable_break): Likewise.
16753 * stap-probe.c (relocate_address): Use
16754 objfile::data_section_offset.
16755 * xcoffread.c (enter_line_range): Use
16756 objfile::text_section_offset.
16757 (read_xcoff_symtab): Likewise.
16758
16759 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16760
16761 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16762 declaration to narrower scopes.
16763
16764 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16765
16766 * darwin-nat.h (struct darwin_exception_msg, enum
16767 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16768 Move up.
16769 (class darwin_nat_target) <wait_1, check_new_threads,
16770 decode_exception_message, decode_message, stop_inferior,
16771 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16772 * darwin-nat.c (darwin_check_new_threads): Rename to...
16773 (darwin_nat_target::check_new_threads): ... this.
16774 (darwin_suspend_inferior_it): Remove.
16775 (darwin_decode_exception_message): Rename to...
16776 (darwin_nat_target::decode_exception_message): ... this.
16777 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16778 (darwin_decode_message): Rename to...
16779 (darwin_nat_target::decode_message): ... this.
16780 (cancel_breakpoint): Rename to...
16781 (darwin_nat_target::cancel_breakpoint): ... this.
16782 (darwin_wait): Rename to...
16783 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16784 instead of iterate_over_inferiors.
16785 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16786 (darwin_stop_inferior): Rename to...
16787 (darwin_nat_target::stop_inferior): ... this.
16788 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16789 (darwin_init_thread_list): Rename to...
16790 (darwin_nat_target::init_thread_list): ... this.
16791 (darwin_ptrace_him): Rename to...
16792 (darwin_nat_target::ptrace_him): ... this.
16793 (darwin_nat_target::create_inferior): Pass lambda function to
16794 fork_inferior.
16795 (darwin_nat_target::detach): Call stop_inferior instead of
16796 darwin_stop_inferior.
16797 * fork-inferior.h (fork_inferior): Change init_trace_fun
16798 parameter to gdb::function_view.
16799 * fork-inferior.c (fork_inferior): Likewise.
16800
16801 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16802
16803 * i386-cygwin-tdep.c (core_process_module_section): Update.
16804 * windows-nat.c (struct lm_info_windows): Add text_offset.
16805 (windows_xfer_shared_libraries): Update.
16806 * windows-tdep.c (windows_xfer_shared_library):
16807 Add text_offset_cached argument.
16808 * windows-tdep.h (windows_xfer_shared_library): Update.
16809
16810 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16811
16812 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16813
16814 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16815
16816 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16817 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16818 replace with range-based for.
16819 (gdbsim_interrupt_inferior): Remove.
16820 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16821 with a range-based for. Inline code from
16822 gdbsim_interrupt_inferior.
16823
16824 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16825
16826 * infrun.c (proceed): Fix indentation.
16827
16828 2020-01-21 Tom Tromey <tromey@adacore.com>
16829
16830 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16831 * python/python.c (python_extension_ops): Update.
16832 (gdbpy_colorize): New function.
16833 * python/lib/gdb/__init__.py (colorize): New function.
16834 * extension.h (ext_lang_colorize): Declare.
16835 * extension.c (ext_lang_colorize): New function.
16836 * extension-priv.h (struct extension_language_ops) <colorize>: New
16837 member.
16838 * cli/cli-style.c (_initialize_cli_style): Update help text.
16839
16840 2020-01-21 Luis Machado <luis.machado@linaro.org>
16841
16842 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16843 <cond>: Change type to bool.
16844 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16845 (aarch64_displaced_step_cb): Likewise.
16846 (aarch64_displaced_step_tb): Likewise.
16847
16848 2020-01-21 Luis Machado <luis.machado@linaro.org>
16849
16850 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16851 output.
16852
16853 2020-01-21 Luis Machado <luis.machado@linaro.org>
16854
16855 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16856 <pc_adjust>: Adjust the documentation.
16857 (aarch64_displaced_step_fixup): Check if PC really moved before
16858 adjusting it.
16859
16860 2020-01-19 Tom Tromey <tom@tromey.com>
16861
16862 * disasm.c (~gdb_disassembler): New destructor.
16863 (gdb_buffered_insn_length): Call disassemble_free_target.
16864 * disasm.h (class gdb_disassembler): Declare destructor. Use
16865 DISABLE_COPY_AND_ASSIGN.
16866
16867 2020-01-19 Tom Tromey <tom@tromey.com>
16868
16869 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16870 (die_reader_func_ftype): Remove.
16871 (cutu_reader): New class.
16872 (dw2_get_file_names_reader): Remove "data" parameter.
16873 (dw2_get_file_names): Use cutu_reader.
16874 (create_debug_type_hash_table): Update.
16875 (read_cutu_die_from_dwo): Update comment.
16876 (lookup_dwo_unit): Add dwo_name parameter.
16877 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16878 die_reader_func_ftype and data parameters.
16879 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16880 Remove die_reader_func_ftype and data parameters.
16881 (~cutu_reader): New; from init_cutu_and_read_dies.
16882 (cutu_reader::cutu_reader): Rename from
16883 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16884 and data parameters.
16885 (init_cutu_and_read_dies_simple): Remove.
16886 (struct process_psymtab_comp_unit_data): Remove.
16887 (process_psymtab_comp_unit_reader): Remove data parameter; add
16888 want_partial_unit and pretend_language parameters.
16889 (process_psymtab_comp_unit): Use cutu_reader.
16890 (build_type_psymtabs_reader): Remove data parameter.
16891 (build_type_psymtabs_1): Use cutu_reader.
16892 (process_skeletonless_type_unit): Likewise.
16893 (load_partial_comp_unit_reader): Remove.
16894 (load_partial_comp_unit): Use cutu_reader.
16895 (load_full_comp_unit_reader): Remove.
16896 (load_full_comp_unit): Use cutu_reader.
16897 (struct create_dwo_cu_data): Remove.
16898 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16899 dwo_unit parameters.
16900 (create_cus_hash_table): Use cutu_reader.
16901 (struct dwarf2_read_addr_index_data): Remove.
16902 (dwarf2_read_addr_index_reader): Remove.
16903 (dwarf2_read_addr_index): Use cutu_reader.
16904 (read_signatured_type_reader): Remove.
16905 (read_signatured_type): Use cutu_reader.
16906
16907 2020-01-19 Tom Tromey <tom@tromey.com>
16908
16909 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16910 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16911 (tui_wrefresh): Declare.
16912 * tui/tui-wingeneral.c (suppress_output): New global.
16913 (tui_suppress_output, ~tui_suppress_output): New constructor and
16914 destructor.
16915 (tui_wrefresh): New function.
16916 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16917 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16918 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16919 method.
16920 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16921 tui_wrefresh.
16922 (tui_data_window::no_refresh): New method.
16923 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16924 (tui_reg_command): Use tui_suppress_output
16925 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16926 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16927 method.
16928 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16929
16930 2020-01-19 Tom Tromey <tom@tromey.com>
16931
16932 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16933 Handle case where symtab is null.
16934
16935 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16936
16937 * linux-fork.c (one_fork_p): Simplify.
16938
16939 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16940
16941 * top.c (struct qt_args): Remove.
16942 (kill_or_detach): Change return type to void, replace `void *`
16943 parameter with a proper one.
16944 (print_inferior_quit_action): Likewise.
16945 (quit_confirm): Use range-based for loop to iterate over inferiors.
16946 (quit_force): Likewise.
16947
16948 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16949
16950 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16951 `void *` parameter with proper parameters.
16952 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16953 (print_one_inferior): Change return type to void, replace `void *`
16954 parameter with proper parameters.
16955 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16956 inferiors.
16957 (get_other_inferior): Remove.
16958 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16959 inferiors.
16960
16961 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16962
16963 * mi/mi-interp.c (report_initial_inferior): Remove.
16964 (mi_interp::init): Use range-based for to iterate over inferiors.
16965
16966 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16967
16968 * python/py-inferior.c (build_inferior_list): Remove.
16969 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16970
16971 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16972
16973 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16974 (btrace_stitch_trace): Likewise.
16975 * charset.c (intermediate_encoding): Likewise (vaild).
16976 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16977 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16978 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16979
16980 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16981
16982 * windows-tdep.c (windows_get_tlb_type):
16983 Add rtl_user_process_parameters type.
16984
16985 2020-01-16 Pedro Alves <palves@redhat.com>
16986 Norbert Lange <nolange79@gmail.com>
16987
16988 PR build/24805
16989 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16990 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16991 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16992 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16993 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16994 (ps_plog): Redeclare exported functions with default visibility.
16995
16996 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16997
16998 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16999 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17000
17001 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
17002
17003 * infcmd.c (post_create_inferior): Use get_thread_regcache
17004 instead of get_current_regcache.
17005
17006 2020-01-14 Tom Tromey <tom@tromey.com>
17007
17008 PR symtab/12535:
17009 * python/python.c (gdbpy_decode_line): Treat empty string the same
17010 as no argument.
17011
17012 2020-01-14 Tom Tromey <tom@tromey.com>
17013
17014 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17015
17016 2020-01-14 Tom Tromey <tom@tromey.com>
17017
17018 * nat/linux-btrace.c: Don't include <config.h>.
17019 * nat/linux-ptrace.c: Don't include <config.h>.
17020 * nat/x86-linux-dregs.c: Don't include <config.h>.
17021
17022 2020-01-14 Tom Tromey <tom@tromey.com>
17023
17024 * configure: Rebuild.
17025 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17026
17027 2020-01-14 Tom Tromey <tom@tromey.com>
17028
17029 * nat/x86-linux-dregs.c: Include configh.h.
17030 * nat/linux-ptrace.c: Include configh.h.
17031 * nat/linux-btrace.c: Include configh.h.
17032 * defs.h: Include config.h, bfd.h.
17033 * configure.ac: Don't source common.host.
17034 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17035 * configure: Rebuild.
17036 * acinclude.m4: Update path.
17037 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17038 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17039 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17040 (CLIBS): Add LIBSUPPORT.
17041 (CDEPS): Likewise.
17042 (COMMON_SFILES): Remove gdbsupport files.
17043 (HFILES_NO_SRCDIR): Likewise.
17044 (stamp-version): Update path to create-version.sh.
17045 (ALLDEPFILES): Remove gdbsupport files.
17046
17047 2020-01-14 Tom Tromey <tom@tromey.com>
17048
17049 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17050 USE_WIN32API when needed.
17051 * configure.ac (USE_WIN32API): Don't define.
17052 (WIN32LIBS): Use WIN32APILIBS.
17053 * configure: Rebuild.
17054
17055 2020-01-14 Tom Tromey <tom@tromey.com>
17056
17057 * configure: Rebuild.
17058 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17059
17060 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17061
17062 * skip.c (skip_function_command): Make skip w/o arguments use the
17063 name of the inlined function if pc is inside any inlined function.
17064
17065 2020-01-14 Luis Machado <luis.machado@linaro.org>
17066
17067 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17068 * infrun.c (resume_1): Likewise.
17069 (handle_inferior_event): Remove stale comment.
17070 * linux-nat.c (linux_nat_target::resume): Update comments.
17071 (save_stop_reason): Likewise.
17072 (linux_nat_filter_event): Likewise.
17073 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17074
17075 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17076
17077 * elfread.c (record_minimal_symbol): Set section index to 0 for
17078 non-allocatable sections.
17079
17080
17081 2020-01-13 Ali Tamur <tamur@google.com>
17082
17083 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17084 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17085 to gdb::optional. Update comments.
17086 (dwo_file): Update comments.
17087 (read_attribute): Update API to take an additional out parameter,
17088 need_reprocess. This is used to mark attributes that need other
17089 attributes (e.g. str_offsets_base) for correct computation which may not
17090 have been read yet.
17091 (read_attribute_reprocess): New function declaration.
17092 (read_addr_index): Likewise.
17093 (read_dwo_str_index): Likewise.
17094 (read_stub_str_index): Likewise.
17095 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17096 (lookup_addr_base): New function definition.
17097 (lookup_ranges_base): Likewise.
17098 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17099 lookup_ranges_base.
17100 (init_cutu_and_read_dies): Update comments.
17101 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17102 unit. This is used to inherit parent's str_offsets_base and addr_base.
17103 Update comments.
17104 (init_cutu_and_read_dies_simple): Reflect API changes.
17105 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17106 (create_cus_hash_table): Change API to take parent compile unit.
17107 Reflect API changes.
17108 (open_and_init_dwo_file): Reflect API changes.
17109 (dwarf2_get_pc_bounds): Update comments.
17110 (dwarf2_record_block_ranges): Likewise.
17111 (read_full_die_1): Change implementation to reprocess attributes that
17112 need str_offsets_base and addr_base.
17113 (partial_die_info::read): Likewise.
17114 (read_attribute_reprocess): New function definition.
17115 (read_attribute_value): Change API to take an additional out parameter,
17116 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17117 when a non-dwo compile unit has index based attributes.
17118 (read_attribute): Reflect API changes.
17119 (read_addr_index_1): Reflect API changes. Update comments.
17120 (dwarf2_read_addr_index_data): Reflect API changes.
17121 (dwarf2_read_addr_index): Likewise.
17122 (read_str_index): Change API and implementation. This becomes a helper
17123 to be used by the new string index related methods. Update error
17124 message and comments.
17125 (read_dwo_str_index): New function definition.
17126 (read_stub_str_index): Likewise.
17127 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17128 * symfile.h (dwarf2_debug_sections): Likewise.
17129 * xcoffread.c (dwarf2_debug_sections): Likewise.
17130
17131 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17132
17133 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17134 core_reg_sect type to gdb_byte *.
17135 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17136 * cris-tdep.c (fetch_core_registers): Likewise.
17137 * corelow.c (core_target::get_core_register_section): Change
17138 type of `contents` to gdb::byte_vector.
17139
17140 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17141
17142 * tui/tui-wingeneral.c (box_win): Position the title in the center
17143 of the border.
17144
17145 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17146
17147 * corelow.c (core_target::get_core_register_section): Use
17148 std::vector instead of alloca.
17149
17150 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17151
17152 * warning.m4: Add -Wmissing-declarations to build_warnings.
17153 * configure: Re-generate.
17154
17155 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17156
17157 * python/python.c (init__gdb_module): Add declaration.
17158
17159 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17160
17161 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17162 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17163 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17164 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17165 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17166 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17167 * ada-exp.y (_initialize_ada_exp): Add declaration.
17168 * ada-lang.c (_initialize_ada_language): Add declaration.
17169 * ada-tasks.c (_initialize_tasks): Add declaration.
17170 * agent.c (_initialize_agent): Add declaration.
17171 * aix-thread.c (_initialize_aix_thread): Add declaration.
17172 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17173 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17174 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17175 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17176 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17177 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17178 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17179 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17180 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17181 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17182 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17183 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17184 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17185 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17186 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17187 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17188 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17189 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17190 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17191 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17192 * annotate.c (_initialize_annotate): Add declaration.
17193 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17194 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17195 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17196 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17197 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17198 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17199 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17200 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17201 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17202 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17203 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17204 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17205 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17206 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17207 * auto-load.c (_initialize_auto_load): Add declaration.
17208 * auxv.c (_initialize_auxv): Add declaration.
17209 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17210 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17211 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17212 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17213 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17214 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17215 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17216 * breakpoint.c (_initialize_breakpoint): Add declaration.
17217 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17218 * btrace.c (_initialize_btrace): Add declaration.
17219 * charset.c (_initialize_charset): Add declaration.
17220 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17221 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17222 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17223 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17224 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17225 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17226 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17227 * coffread.c (_initialize_coffread): Add declaration.
17228 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17229 * compile/compile.c (_initialize_compile): Add declaration.
17230 * complaints.c (_initialize_complaints): Add declaration.
17231 * completer.c (_initialize_completer): Add declaration.
17232 * copying.c (_initialize_copying): Add declaration.
17233 * corefile.c (_initialize_core): Add declaration.
17234 * corelow.c (_initialize_corelow): Add declaration.
17235 * cp-abi.c (_initialize_cp_abi): Add declaration.
17236 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17237 * cp-support.c (_initialize_cp_support): Add declaration.
17238 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17239 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17240 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17241 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17242 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17243 * ctfread.c (_initialize_ctfread): Add declaration.
17244 * d-lang.c (_initialize_d_language): Add declaration.
17245 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17246 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17247 * dbxread.c (_initialize_dbxread): Add declaration.
17248 * dcache.c (_initialize_dcache): Add declaration.
17249 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17250 * disasm.c (_initialize_disasm): Add declaration.
17251 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17252 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17253 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17254 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17255 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17256 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17257 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17258 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17259 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17260 * elfread.c (_initialize_elfread): Add declaration.
17261 * exec.c (_initialize_exec): Add declaration.
17262 * extension.c (_initialize_extension): Add declaration.
17263 * f-lang.c (_initialize_f_language): Add declaration.
17264 * f-valprint.c (_initialize_f_valprint): Add declaration.
17265 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17266 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17267 * filesystem.c (_initialize_filesystem): Add declaration.
17268 * findcmd.c (_initialize_mem_search): Add declaration.
17269 * findvar.c (_initialize_findvar): Add declaration.
17270 * fork-child.c (_initialize_fork_child): Add declaration.
17271 * frame-base.c (_initialize_frame_base): Add declaration.
17272 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17273 * frame.c (_initialize_frame): Add declaration.
17274 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17275 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17276 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17277 * gcore.c (_initialize_gcore): Add declaration.
17278 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17279 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17280 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17281 * gdbarch.c (_initialize_gdbarch): Add declaration.
17282 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17283 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17284 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17285 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17286 * go-lang.c (_initialize_go_language): Add declaration.
17287 * go32-nat.c (_initialize_go32_nat): Add declaration.
17288 * guile/guile.c (_initialize_guile): Add declaration.
17289 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17290 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17291 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17292 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17293 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17294 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17295 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17296 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17297 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17298 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17299 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17300 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17301 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17302 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17303 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17304 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17305 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17306 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17307 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17308 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17309 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17310 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17311 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17312 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17313 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17314 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17315 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17316 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17317 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17318 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17319 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17320 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17321 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17322 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17323 * infcall.c (_initialize_infcall): Add declaration.
17324 * infcmd.c (_initialize_infcmd): Add declaration.
17325 * inflow.c (_initialize_inflow): Add declaration.
17326 * infrun.c (_initialize_infrun): Add declaration.
17327 * interps.c (_initialize_interpreter): Add declaration.
17328 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17329 * jit.c (_initialize_jit): Add declaration.
17330 * language.c (_initialize_language): Add declaration.
17331 * linux-fork.c (_initialize_linux_fork): Add declaration.
17332 * linux-nat.c (_initialize_linux_nat): Add declaration.
17333 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17334 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17335 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17336 * m2-lang.c (_initialize_m2_language): Add declaration.
17337 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17338 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17339 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17340 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17341 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17342 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17343 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17344 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17345 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17346 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17347 * machoread.c (_initialize_machoread): Add declaration.
17348 * macrocmd.c (_initialize_macrocmd): Add declaration.
17349 * macroscope.c (_initialize_macroscope): Add declaration.
17350 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17351 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17352 * maint.c (_initialize_maint_cmds): Add declaration.
17353 * mdebugread.c (_initialize_mdebugread): Add declaration.
17354 * memattr.c (_initialize_mem): Add declaration.
17355 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17356 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17357 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17358 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17359 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17360 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17361 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17362 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17363 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17364 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17365 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17366 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17367 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17368 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17369 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17370 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17371 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17372 * mipsread.c (_initialize_mipsread): Add declaration.
17373 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17374 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17375 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17376 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17377 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17378 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17379 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17380 * nto-procfs.c (_initialize_procfs): Add declaration.
17381 * objc-lang.c (_initialize_objc_language): Add declaration.
17382 * observable.c (_initialize_observer): Add declaration.
17383 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17384 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17385 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17386 * osabi.c (_initialize_gdb_osabi): Add declaration.
17387 * osdata.c (_initialize_osdata): Add declaration.
17388 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17389 * parse.c (_initialize_parse): Add declaration.
17390 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17391 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17392 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17393 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17394 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17395 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17396 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17397 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17398 * printcmd.c (_initialize_printcmd): Add declaration.
17399 * probe.c (_initialize_probe): Add declaration.
17400 * proc-api.c (_initialize_proc_api): Add declaration.
17401 * proc-events.c (_initialize_proc_events): Add declaration.
17402 * proc-service.c (_initialize_proc_service): Add declaration.
17403 * procfs.c (_initialize_procfs): Add declaration.
17404 * producer.c (_initialize_producer): Add declaration.
17405 * psymtab.c (_initialize_psymtab): Add declaration.
17406 * python/python.c (_initialize_python): Add declaration.
17407 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17408 * record-btrace.c (_initialize_record_btrace): Add declaration.
17409 * record-full.c (_initialize_record_full): Add declaration.
17410 * record.c (_initialize_record): Add declaration.
17411 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17412 * regcache.c (_initialize_regcache): Add declaration.
17413 * reggroups.c (_initialize_reggroup): Add declaration.
17414 * remote-notif.c (_initialize_notif): Add declaration.
17415 * remote-sim.c (_initialize_remote_sim): Add declaration.
17416 * remote.c (_initialize_remote): Add declaration.
17417 * reverse.c (_initialize_reverse): Add declaration.
17418 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17419 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17420 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17421 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17422 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17423 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17424 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17425 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17426 Add declaration.
17427 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17428 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17429 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17430 * rust-exp.y (_initialize_rust_exp): Add declaration.
17431 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17432 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17433 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17434 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17435 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17436 * score-tdep.c (_initialize_score_tdep): Add declaration.
17437 * ser-go32.c (_initialize_ser_dos): Add declaration.
17438 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17439 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17440 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17441 * ser-uds.c (_initialize_ser_socket): Add declaration.
17442 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17443 * serial.c (_initialize_serial): Add declaration.
17444 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17445 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17446 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17447 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17448 * skip.c (_initialize_step_skip): Add declaration.
17449 * sol-thread.c (_initialize_sol_thread): Add declaration.
17450 * solib-aix.c (_initialize_solib_aix): Add declaration.
17451 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17452 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17453 * solib-frv.c (_initialize_frv_solib): Add declaration.
17454 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17455 * solib-target.c (_initialize_solib_target): Add declaration.
17456 * solib.c (_initialize_solib): Add declaration.
17457 * source-cache.c (_initialize_source_cache): Add declaration.
17458 * source.c (_initialize_source): Add declaration.
17459 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17460 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17461 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17462 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17463 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17464 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17465 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17466 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17467 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17468 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17469 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17470 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17471 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17472 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17473 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17474 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17475 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17476 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17477 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17478 * stabsread.c (_initialize_stabsread): Add declaration.
17479 * stack.c (_initialize_stack): Add declaration.
17480 * stap-probe.c (_initialize_stap_probe): Add declaration.
17481 * std-regs.c (_initialize_frame_reg): Add declaration.
17482 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17483 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17484 * symfile.c (_initialize_symfile): Add declaration.
17485 * symmisc.c (_initialize_symmisc): Add declaration.
17486 * symtab.c (_initialize_symtab): Add declaration.
17487 * target.c (_initialize_target): Add declaration.
17488 * target-connection.c (_initialize_target_connection): Add
17489 declaration.
17490 * target-dcache.c (_initialize_target_dcache): Add declaration.
17491 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17492 * thread.c (_initialize_thread): Add declaration.
17493 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17494 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17495 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17496 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17497 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17498 * tracectf.c (_initialize_ctf): Add declaration.
17499 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17500 * tracefile.c (_initialize_tracefile): Add declaration.
17501 * tracepoint.c (_initialize_tracepoint): Add declaration.
17502 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17503 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17504 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17505 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17506 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17507 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17508 * tui/tui.c (_initialize_tui): Add declaration.
17509 * typeprint.c (_initialize_typeprint): Add declaration.
17510 * ui-style.c (_initialize_ui_style): Add declaration.
17511 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17512 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17513 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17514 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17515 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17516 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17517 * unittests/filtered_iterator-selftests.c
17518 (_initialize_filtered_iterator_selftests): Add declaration.
17519 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17520 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17521 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17522 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17523 * unittests/main-thread-selftests.c
17524 (_initialize_main_thread_selftests): Add declaration.
17525 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17526 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17527 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17528 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17529 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17530 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17531 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17532 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17533 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17534 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17535 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17536 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17537 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17538 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17539 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17540 declaration.
17541 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17542 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17543 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17544 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17545 * user-regs.c (_initialize_user_regs): Add declaration.
17546 * utils.c (_initialize_utils): Add declaration.
17547 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17548 * valops.c (_initialize_valops): Add declaration.
17549 * valprint.c (_initialize_valprint): Add declaration.
17550 * value.c (_initialize_values): Add declaration.
17551 * varobj.c (_initialize_varobj): Add declaration.
17552 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17553 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17554 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17555 * windows-nat.c (_initialize_windows_nat): Add declaration.
17556 (_initialize_check_for_gdb_ini): Add declaration.
17557 (_initialize_loadable): Add declaration.
17558 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17559 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17560 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17561 * xcoffread.c (_initialize_xcoffread): Add declaration.
17562 * xml-support.c (_initialize_xml_support): Add declaration.
17563 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17564 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17565 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17566 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17567
17568 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17569
17570 * regformats/regdat.sh: Generate declaration for init function.
17571
17572 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17573
17574 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17575 up.
17576 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17577 close_one_inferior>: New methods.
17578 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17579 pass down target to find_inferior_pid.
17580 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17581 Pass down target to find_inferior_ptid.
17582 (gdbsim_target::create_inferior): Pass down target to
17583 add_thread_silent.
17584 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17585 target down to find_inferior_ptid and switch_to_thread.
17586 (gdbsim_target::close): Update to call close_one_inferior.
17587 (struct resume_data): Remove.
17588 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17589 directly, rather than through a void pointer.
17590 (gdbsim_target::resume): Update to call resume_one_inferior.
17591
17592 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17593
17594 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17595
17596 2020-01-12 Pedro Alves <palves@redhat.com>
17597
17598 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17599 directly for the current inferior instead of
17600 discard_all_inferiors.
17601 (discard_all_inferiors): Delete.
17602
17603 2020-01-11 Tom Tromey <tom@tromey.com>
17604
17605 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17606 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17607 deprecated_safe_get_selected_frame.
17608
17609 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17610
17611 * inferior.c (print_inferior): Switch inferior before printing it.
17612
17613 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17614 Pedro Alves <palves@redhat.com>
17615
17616 * progspace-and-thread.c (switch_to_program_space_and_thread):
17617 Assert there's an inferior for PSPACE. Use
17618 switch_to_inferior_no_thread to switch the inferior too.
17619 * progspace.c (program_space::~program_space): Call
17620 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17621 (program_space::free_all_objfiles): Don't call clear_symtab_users
17622 here.
17623 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17624
17625 2020-01-10 Pedro Alves <palves@redhat.com>
17626
17627 * NEWS: Mention multi-target debugging, "info connections", and
17628 "add-inferior -no-connection".
17629
17630 2020-01-10 Pedro Alves <palves@redhat.com>
17631
17632 * infrun.c: Include "target-connection.h".
17633 (check_multi_target_resumption): New.
17634 (proceed): Call it.
17635 * target-connection.c (make_target_connection_string): Make
17636 extern.
17637 * target-connection.h (make_target_connection_string): Declare.
17638
17639 2020-01-10 Pedro Alves <palves@redhat.com>
17640
17641 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17642 * inferior.c (uiout_field_connection): New function.
17643 (print_inferior): Add new "connection-id" column.
17644 (add_inferior_command): Show connection number/string of added
17645 inferior.
17646 * process-stratum-target.h
17647 (process_stratum_target::connection_string): New virtual method.
17648 (process_stratum_target::connection_number): New field.
17649 * remote.c (remote_target::connection_string): New override.
17650 * target-connection.c: New file.
17651 * target-connection.h: New file.
17652 * target.c (decref_target): Remove process_stratum targets from
17653 the connection list.
17654 (target_stack::push): Add process_stratum targets to the
17655 connection list.
17656
17657 2020-01-10 Pedro Alves <palves@redhat.com>
17658
17659 Revert:
17660 2016-04-12 Pedro Alves <palves@redhat.com>
17661 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17662 Remove references to name.
17663 * serial.h (struct serial) <name>: Delete.
17664
17665 2020-01-10 Pedro Alves <palves@redhat.com>
17666
17667 * gdbarch-selftests.c (register_to_value_test): Remove "target
17668 already pushed" check.
17669
17670 2020-01-10 Pedro Alves <palves@redhat.com>
17671 John Baldwin <jhb@FreeBSD.org>
17672
17673 * aarch64-linux-nat.c
17674 (aarch64_linux_nat_target::thread_architecture): Adjust.
17675 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17676 (task_command_1): Likewise.
17677 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17678 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17679 (aix_thread_target::store_registers)
17680 (aix_thread_target::thread_alive): Adjust.
17681 * amd64-fbsd-tdep.c: Include "inferior.h".
17682 (amd64fbsd_get_thread_local_address): Pass down target.
17683 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17684 thread's gdbarch instead of target_gdbarch.
17685 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17686 get_last_target_status.
17687 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17688 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17689 inferiors.
17690 (update_inserted_breakpoint_locations): Skip if inferiors with no
17691 execution.
17692 (update_global_location_list): When handling moribund locations,
17693 find representative inferior for location's pspace, and use thread
17694 count of its process_stratum target.
17695 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17696 * bsd-uthread.c (bsd_uthread_target::wait): Use
17697 as_process_stratum_target and adjust thread_change_ptid and
17698 add_thread calls.
17699 (bsd_uthread_target::update_thread_list): Use
17700 as_process_stratum_target and adjust find_thread_ptid,
17701 thread_change_ptid and add_thread calls.
17702 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17703 find_thread_ptid call.
17704 * corelow.c (add_to_thread_list): Adjust add_thread call.
17705 (core_target_open): Adjust add_thread_silent and thread_count
17706 calls.
17707 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17708 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17709 * event-top.c (async_disconnect): Pop targets from all inferiors.
17710 * exec.c (add_target_sections): Push exec target on all inferiors
17711 sharing the program space.
17712 (remove_target_sections): Remove the exec target from all
17713 inferiors sharing the program space.
17714 (exec_on_vfork): New.
17715 * exec.h (exec_on_vfork): Declare.
17716 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17717 Pass it down.
17718 (fbsd_nat_target::update_thread_list): Adjust.
17719 (fbsd_nat_target::resume): Adjust.
17720 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17721 down.
17722 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17723 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17724 get_thread_arch_regcache call.
17725 * fork-child.c (gdb_startup_inferior): Pass target down to
17726 startup_inferior and set_executing.
17727 * gdbthread.h (struct process_stratum_target): Forward declare.
17728 (add_thread, add_thread_silent, add_thread_with_info)
17729 (in_thread_list): Add process_stratum_target parameter.
17730 (find_thread_ptid(inferior*, ptid_t)): New overload.
17731 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17732 parameter.
17733 (all_threads()): Delete overload.
17734 (all_threads, all_non_exited_threads): Add process_stratum_target
17735 parameter.
17736 (all_threads_safe): Use brace initialization.
17737 (thread_count): Add process_stratum_target parameter.
17738 (set_resumed, set_running, set_stop_requested, set_executing)
17739 (threads_are_executing, finish_thread_state): Add
17740 process_stratum_target parameter.
17741 (switch_to_thread): Use is_current_thread.
17742 * i386-fbsd-tdep.c: Include "inferior.h".
17743 (i386fbsd_get_thread_local_address): Pass down target.
17744 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17745 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17746 have_inferiors check.
17747 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17748 (inf_ptrace_target::attach): Adjust.
17749 * infcall.c (run_inferior_call): Adjust.
17750 * infcmd.c (run_command_1): Pass target to
17751 scoped_finish_thread_state.
17752 (proceed_thread_callback): Skip inferiors with no execution.
17753 (continue_command): Rename 'all_threads' local to avoid hiding
17754 'all_threads' function. Adjust get_last_target_status call.
17755 (prepare_one_step): Adjust set_running call.
17756 (signal_command): Use user_visible_resume_target. Compare thread
17757 pointers instead of inferior_ptid.
17758 (info_program_command): Adjust to pass down target.
17759 (attach_command): Mark target's 'thread_executing' flag.
17760 (stop_current_target_threads_ns): New, factored out from ...
17761 (interrupt_target_1): ... this. Switch inferior before making
17762 target calls.
17763 * inferior-iter.h
17764 (struct all_inferiors_iterator, struct all_inferiors_range)
17765 (struct all_inferiors_safe_range)
17766 (struct all_non_exited_inferiors_range): Filter on
17767 process_stratum_target too. Remove explicit.
17768 * inferior.c (inferior::inferior): Push dummy target on target
17769 stack.
17770 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17771 Add process_stratum_target parameter, and pass it down.
17772 (have_live_inferiors): Adjust.
17773 (switch_to_inferior_and_push_target): New.
17774 (add_inferior_command, clone_inferior_command): Handle
17775 "-no-connection" parameter. Use
17776 switch_to_inferior_and_push_target.
17777 (_initialize_inferior): Mention "-no-connection" option in
17778 the help of "add-inferior" and "clone-inferior" commands.
17779 * inferior.h: Include "process-stratum-target.h".
17780 (interrupt_target_1): Use bool.
17781 (struct inferior) <push_target, unpush_target, target_is_pushed,
17782 find_target_beneath, top_target, process_target, target_at,
17783 m_stack>: New.
17784 (discard_all_inferiors): Delete.
17785 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17786 (all_inferiors, all_non_exited_inferiors): Add
17787 process_stratum_target parameter.
17788 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17789 (target_last_proc_target): New global.
17790 (follow_fork_inferior): Push target on new inferior. Pass target
17791 to add_thread_silent. Call exec_on_vfork. Handle target's
17792 reference count.
17793 (follow_fork): Adjust get_last_target_status call. Also consider
17794 target.
17795 (follow_exec): Push target on new inferior.
17796 (struct execution_control_state) <target>: New field.
17797 (user_visible_resume_target): New.
17798 (do_target_resume): Call target_async.
17799 (resume_1): Set target's threads_executing flag. Consider resume
17800 target.
17801 (commit_resume_all_targets): New.
17802 (proceed): Also consider resume target. Skip threads of inferiors
17803 with no execution. Commit resumtion in all targets.
17804 (start_remote): Pass current inferior to wait_for_inferior.
17805 (infrun_thread_stop_requested): Consider target as well. Pass
17806 thread_info pointer to clear_inline_frame_state instead of ptid.
17807 (infrun_thread_thread_exit): Consider target as well.
17808 (random_pending_event_thread): New inferior parameter. Use it.
17809 (do_target_wait): Rename to ...
17810 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17811 down.
17812 (threads_are_resumed_pending_p, do_target_wait): New.
17813 (prepare_for_detach): Adjust calls.
17814 (wait_for_inferior): New inferior parameter. Handle it. Use
17815 do_target_wait_1 instead of do_target_wait.
17816 (fetch_inferior_event): Adjust. Switch to representative
17817 inferior. Pass target down.
17818 (set_last_target_status): Add process_stratum_target parameter.
17819 Save target in global.
17820 (get_last_target_status): Add process_stratum_target parameter and
17821 handle it.
17822 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17823 (context_switch): Check inferior_ptid == null_ptid before calling
17824 inferior_thread().
17825 (get_inferior_stop_soon): Pass down target.
17826 (wait_one): Rename to ...
17827 (poll_one_curr_target): ... this.
17828 (struct wait_one_event): New.
17829 (wait_one): New.
17830 (stop_all_threads): Adjust.
17831 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17832 event's target.
17833 (switch_back_to_stepped_thread): Also consider target.
17834 (print_stop_event): Update.
17835 (normal_stop): Update. Also consider the resume target.
17836 * infrun.h (wait_for_inferior): Remove declaration.
17837 (user_visible_resume_target): New declaration.
17838 (get_last_target_status, set_last_target_status): New
17839 process_stratum_target parameter.
17840 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17841 process_stratum_target parameter, and use it.
17842 (clear_inline_frame_state (thread_info*)): New.
17843 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17844 process_stratum_target parameter.
17845 (clear_inline_frame_state (thread_info*)): Declare.
17846 * linux-fork.c (delete_checkpoint_command): Pass target down to
17847 find_thread_ptid.
17848 (checkpoint_command): Adjust.
17849 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17850 instead of just tweaking inferior_ptid.
17851 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17852 (exit_lwp): Pass target down to find_thread_ptid.
17853 (attach_proc_task_lwp_callback): Pass target down to
17854 add_thread/set_running/set_executing.
17855 (linux_nat_target::attach): Pass target down to
17856 thread_change_ptid.
17857 (get_detach_signal): Pass target down to find_thread_ptid.
17858 Consider last target status's target.
17859 (linux_resume_one_lwp_throw, resume_lwp)
17860 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17861 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17862 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17863 (linux_nat_target::async_wait_fd): New.
17864 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17865 target down.
17866 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17867 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17868 * linux-thread-db.c (struct thread_db_info::process_target): New
17869 field.
17870 (add_thread_db_info): Save target.
17871 (get_thread_db_info): New process_stratum_target parameter. Also
17872 match target.
17873 (delete_thread_db_info): New process_stratum_target parameter.
17874 Also match target.
17875 (thread_from_lwp): Adjust to pass down target.
17876 (thread_db_notice_clone): Pass down target.
17877 (check_thread_db_callback): Pass down target.
17878 (try_thread_db_load_1): Always push the thread_db target.
17879 (try_thread_db_load, record_thread): Pass target down.
17880 (thread_db_target::detach): Pass target down. Always unpush the
17881 thread_db target.
17882 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17883 target down. Always unpush the thread_db target.
17884 (find_new_threads_callback, thread_db_find_new_threads_2)
17885 (thread_db_target::update_thread_list): Pass target down.
17886 (thread_db_target::pid_to_str): Pass current inferior down.
17887 (thread_db_target::get_thread_local_address): Pass target down.
17888 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17889 target down.
17890 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17891 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17892 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17893 (procfs_init_inferior): Rename to ...
17894 (procfs_target::procfs_init_inferior): ... this and adjust.
17895 (procfs_target::create_inferior, procfs_notice_thread)
17896 (procfs_do_thread_registers): Adjust.
17897 * ppc-fbsd-tdep.c: Include "inferior.h".
17898 (ppcfbsd_get_thread_local_address): Pass down target.
17899 * proc-service.c (ps_xfer_memory): Switch current inferior and
17900 program space as well.
17901 (get_ps_regcache): Pass target down.
17902 * process-stratum-target.c
17903 (process_stratum_target::thread_address_space)
17904 (process_stratum_target::thread_architecture): Pass target down.
17905 * process-stratum-target.h
17906 (process_stratum_target::threads_executing): New field.
17907 (as_process_stratum_target): New.
17908 * ravenscar-thread.c
17909 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17910 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17911 down.
17912 * record-btrace.c (record_btrace_target::info_record): Adjust.
17913 (record_btrace_target::record_method)
17914 (record_btrace_target::record_is_replaying)
17915 (record_btrace_target::fetch_registers)
17916 (get_thread_current_frame_id, record_btrace_target::resume)
17917 (record_btrace_target::wait, record_btrace_target::stop): Pass
17918 target down.
17919 * record-full.c (record_full_wait_1): Switch to event thread.
17920 Pass target down.
17921 * regcache.c (regcache::regcache)
17922 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17923 process_stratum_target parameter and handle it.
17924 (current_thread_target): New global.
17925 (get_thread_regcache): Add process_stratum_target parameter and
17926 handle it. Switch inferior before calling target method.
17927 (get_thread_regcache): Pass target down.
17928 (get_thread_regcache_for_ptid): Pass target down.
17929 (registers_changed_ptid): Add process_stratum_target parameter and
17930 handle it.
17931 (registers_changed_thread, registers_changed): Pass target down.
17932 (test_get_thread_arch_aspace_regcache): New.
17933 (current_regcache_test): Define a couple local test_target_ops
17934 instances and use them for testing.
17935 (readwrite_regcache): Pass process_stratum_target parameter.
17936 (cooked_read_test, cooked_write_test): Pass mock_target down.
17937 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17938 (get_thread_arch_aspace_regcache): Add process_stratum_target
17939 parameter.
17940 (regcache::target): New method.
17941 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17942 (regcache::registers_changed_ptid): Add process_stratum_target
17943 parameter.
17944 (regcache::m_target): New field.
17945 (registers_changed_ptid): Add process_stratum_target parameter.
17946 * remote.c (remote_state::supports_vCont_probed): New field.
17947 (remote_target::async_wait_fd): New method.
17948 (remote_unpush_and_throw): Add remote_target parameter.
17949 (get_current_remote_target): Adjust.
17950 (remote_target::remote_add_inferior): Push target.
17951 (remote_target::remote_add_thread)
17952 (remote_target::remote_notice_new_inferior)
17953 (get_remote_thread_info): Pass target down.
17954 (remote_target::update_thread_list): Skip threads of inferiors
17955 bound to other targets. (remote_target::close): Don't discard
17956 inferiors. (remote_target::add_current_inferior_and_thread)
17957 (remote_target::process_initial_stop_replies)
17958 (remote_target::start_remote)
17959 (remote_target::remote_serial_quit_handler): Pass down target.
17960 (remote_target::remote_unpush_target): New remote_target
17961 parameter. Unpush the target from all inferiors.
17962 (remote_target::remote_unpush_and_throw): New remote_target
17963 parameter. Pass it down.
17964 (remote_target::open_1): Check whether the current inferior has
17965 execution instead of checking whether any inferior is live. Pass
17966 target down.
17967 (remote_target::remote_detach_1): Pass down target. Use
17968 remote_unpush_target.
17969 (extended_remote_target::attach): Pass down target.
17970 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17971 (remote_target::append_resumption): Pass down target.
17972 (remote_target::append_pending_thread_resumptions)
17973 (remote_target::remote_resume_with_hc, remote_target::resume)
17974 (remote_target::commit_resume): Pass down target.
17975 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17976 (remote_target::interrupt_query)
17977 (remote_target::remove_new_fork_children)
17978 (remote_target::check_pending_events_prevent_wildcard_vcont)
17979 (remote_target::remote_parse_stop_reply)
17980 (remote_target::process_stop_reply): Pass down target.
17981 (first_remote_resumed_thread): New remote_target parameter. Pass
17982 it down.
17983 (remote_target::wait_as): Pass down target.
17984 (unpush_and_perror): New remote_target parameter. Pass it down.
17985 (remote_target::readchar, remote_target::remote_serial_write)
17986 (remote_target::getpkt_or_notif_sane_1)
17987 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17988 down target.
17989 (remote_target::mourn_inferior): Pass down target. Use
17990 remote_unpush_target.
17991 (remote_target::core_of_thread)
17992 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17993 (remote_target::pid_to_exec_file)
17994 (remote_target::thread_handle_to_thread_info): Pass down target.
17995 (remote_target::async_wait_fd): New.
17996 * riscv-fbsd-tdep.c: Include "inferior.h".
17997 (riscv_fbsd_get_thread_local_address): Pass down target.
17998 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17999 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18000 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18001 Adjust.
18002 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18003 * solib-svr4.c (enable_break): Pass down target.
18004 * spu-multiarch.c (parse_spufs_run): Pass down target.
18005 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18006 * target-delegates.c: Regenerate.
18007 * target.c (g_target_stack): Delete.
18008 (current_top_target): Return the current inferior's top target.
18009 (target_has_execution_1): Refer to the passed-in inferior's top
18010 target.
18011 (target_supports_terminal_ours): Check whether the initial
18012 inferior was already created.
18013 (decref_target): New.
18014 (target_stack::push): Incref/decref the target.
18015 (push_target, push_target, unpush_target): Adjust.
18016 (target_stack::unpush): Defref target.
18017 (target_is_pushed): Return bool. Adjust to refer to the current
18018 inferior's target stack.
18019 (dispose_inferior): Delete, and inline parts ...
18020 (target_preopen): ... here. Only dispose of the current inferior.
18021 (target_detach): Hold strong target reference while detaching.
18022 Pass target down.
18023 (target_thread_name): Add assertion.
18024 (target_resume): Pass down target.
18025 (target_ops::beneath, find_target_at): Adjust to refer to the
18026 current inferior's target stack.
18027 (get_dummy_target): New.
18028 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18029 has a thread running.
18030 (initialize_targets): Rename to ...
18031 (_initialize_target): ... this.
18032 * target.h: Include "gdbsupport/refcounted-object.h".
18033 (struct target_ops): Inherit refcounted_object.
18034 (target_ops::shortname, target_ops::longname): Make const.
18035 (target_ops::async_wait_fd): New method.
18036 (decref_target): Declare.
18037 (struct target_ops_ref_policy): New.
18038 (target_ops_ref): New typedef.
18039 (get_dummy_target): Declare function.
18040 (target_is_pushed): Return bool.
18041 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18042 (all_matching_threads_iterator::all_matching_threads_iterator):
18043 Handle filter target.
18044 * thread-iter.h (struct all_matching_threads_iterator, struct
18045 all_matching_threads_range, class all_non_exited_threads_range):
18046 Filter by target too. Remove explicit.
18047 * thread.c (threads_executing): Delete.
18048 (inferior_thread): Pass down current inferior.
18049 (clear_thread_inferior_resources): Pass down thread pointer
18050 instead of ptid_t.
18051 (add_thread_silent, add_thread_with_info, add_thread): Add
18052 process_stratum_target parameter. Use it for thread and inferior
18053 searches.
18054 (is_current_thread): New.
18055 (thread_info::deletable): Use it.
18056 (find_thread_ptid, thread_count, in_thread_list)
18057 (thread_change_ptid, set_resumed, set_running): New
18058 process_stratum_target parameter. Pass it down.
18059 (set_executing): New process_stratum_target parameter. Pass it
18060 down. Adjust reference to 'threads_executing'.
18061 (threads_are_executing): New process_stratum_target parameter.
18062 Adjust reference to 'threads_executing'.
18063 (set_stop_requested, finish_thread_state): New
18064 process_stratum_target parameter. Pass it down.
18065 (switch_to_thread): Also match inferior.
18066 (switch_to_thread): New process_stratum_target parameter. Pass it
18067 down.
18068 (update_threads_executing): Reimplement.
18069 * top.c (quit_force): Pop targets from all inferior.
18070 (gdb_init): Don't call initialize_targets.
18071 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18072 Declare.
18073 (windows_add_thread, windows_delete_thread): Adjust.
18074 (get_windows_debug_event): Rename to ...
18075 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18076 * tracefile-tfile.c (tfile_target_open): Pass down target.
18077 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18078 Forward declare.
18079 (switch_to_thread): Add process_stratum_target parameter.
18080 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18081 parameter. Use it.
18082 (mi_on_resume): Pass target down.
18083 * nat/fork-inferior.c (startup_inferior): Add
18084 process_stratum_target parameter. Pass it down.
18085 * nat/fork-inferior.h (startup_inferior): Add
18086 process_stratum_target parameter.
18087 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18088
18089 2020-01-10 Pedro Alves <palves@redhat.com>
18090
18091 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18092 directly. Instead find the first thread in the thread list and
18093 use switch_to_thread.
18094
18095 2020-01-10 Pedro Alves <palves@redhat.com>
18096
18097 * remote.c (remote_target::remote_add_inferior): Don't bind a
18098 process to the current inferior if the current inferior is already
18099 bound to a process.
18100
18101 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18102 Pedro Alves <palves@redhat.com>
18103
18104 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18105 If no process is specified, return null_ptid instead of
18106 inferior_ptid.
18107 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18108 TARGET_WAITKIND_SIGNALLED with no pid.
18109
18110 2020-01-10 Pedro Alves <palves@redhat.com>
18111
18112 * remote.c (first_remote_resumed_thread): New.
18113 (remote_target::wait_as): Use it as default event_ptid instead of
18114 inferior_ptid.
18115
18116 2020-01-10 Pedro Alves <palves@redhat.com>
18117
18118 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18119
18120 2020-01-10 Pedro Alves <palves@redhat.com>
18121
18122 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18123 not -1.
18124
18125 2020-01-10 Pedro Alves <palves@redhat.com>
18126
18127 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18128 ptid to get_last_target_status.
18129 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18130 ptid to get_last_target_status.
18131 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18132 get_last_target_status.
18133 (info_program_command): Don't pass a target_waitstatus to
18134 get_last_target_status.
18135 * infrun.c (init_wait_for_inferior): Use
18136 nullify_last_target_wait_ptid.
18137 (get_last_target_status): Handle nullptr arguments.
18138 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18139 (print_stop_event): Don't pass a ptid to get_last_target_status.
18140 (normal_stop): Don't pass a ptid to get_last_target_status.
18141 * infrun.h (get_last_target_status, set_last_target_status): Move
18142 comments here and update.
18143 (nullify_last_target_wait_ptid): Declare.
18144 * linux-fork.c (fork_load_infrun_state): Remove local extern
18145 declaration of nullify_last_target_wait_ptid.
18146 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18147 to get_last_target_status.
18148
18149 2020-01-10 Pedro Alves <palves@redhat.com>
18150
18151 * gdbthread.h (scoped_restore_current_thread)
18152 <dont_restore, restore, m_dont_restore>: Declare.
18153 * thread.c (thread_alive): Add assertion. Return bool.
18154 (switch_to_thread_if_alive): New.
18155 (prune_threads): Switch inferior/thread.
18156 (print_thread_info_1): Switch thread before calling target methods.
18157 (scoped_restore_current_thread::restore): New, factored out from
18158 ...
18159 (scoped_restore_current_thread::~scoped_restore_current_thread):
18160 ... this.
18161 (scoped_restore_current_thread::scoped_restore_current_thread):
18162 Add assertion.
18163 (thread_apply_all_command, thread_select): Use
18164 switch_to_thread_if_alive.
18165 * infrun.c (proceed, restart_threads, handle_signal_stop)
18166 (switch_back_to_stepped_thread): Switch current thread before
18167 calling target methods.
18168
18169 2020-01-10 Pedro Alves <palves@redhat.com>
18170
18171 * inferior.c (switch_to_inferior_no_thread): New function,
18172 factored out from ...
18173 (inferior_command): ... here.
18174 * inferior.h (switch_to_inferior_no_thread): Declare.
18175 * mi/mi-main.c (run_one_inferior): Use
18176 switch_to_inferior_no_thread.
18177
18178 2020-01-10 Pedro Alves <palves@redhat.com>
18179
18180 * infcmd.c (kill_command): Remove dead code.
18181
18182 2020-01-10 Pedro Alves <palves@redhat.com>
18183
18184 * remote.c (remote_target::mourn_inferior): No longer check
18185 whether the target is running.
18186
18187 2020-01-10 Pedro Alves <palves@redhat.com>
18188
18189 * corelow.c (core_target::has_execution): Change parameter type to
18190 inferior pointer.
18191 * inferior.c (number_of_live_inferiors): Use
18192 inferior::has_execution instead of target_has_execution_1.
18193 * inferior.h (inferior::has_execution): New.
18194 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18195 inferior::has_execution instead of target_has_execution_1.
18196 * process-stratum-target.c
18197 (process_stratum_target::has_execution): Change parameter type to
18198 inferior pointer. Check the inferior's PID instead of
18199 inferior_ptid.
18200 * process-stratum-target.h
18201 (process_stratum_target::has_execution): Change parameter type to
18202 inferior pointer.
18203 * record-full.c (record_full_core_target::has_execution): Change
18204 parameter type to inferior pointer.
18205 * target.c (target_has_execution_1): Change parameter type to
18206 inferior pointer.
18207 (target_has_execution_current): Adjust.
18208 * target.h (target_ops::has_execution): Change parameter type to
18209 inferior pointer.
18210 (target_has_execution_1): Change parameter type to inferior
18211 pointer. Change return type to bool.
18212 * tracefile.h (tracefile_target::has_execution): Change parameter
18213 type to inferior pointer.
18214
18215 2020-01-10 Pedro Alves <palves@redhat.com>
18216
18217 * exceptions.c (print_flush): Remove current_top_target() check.
18218
18219 2020-01-10 Pedro Alves <palves@redhat.com>
18220
18221 * remote.c (show_remote_exec_file): Show the current inferior's
18222 exec-file instead of the command variable's value.
18223
18224 2020-01-10 Pedro Alves <palves@redhat.com>
18225
18226 * record-full.c (record_full_resume_ptid): New global.
18227 (record_full_target::resume): Set it.
18228 (record_full_wait_1): Use record_full_resume_ptid instead of
18229 inferior_ptid.
18230
18231 2020-01-10 Pedro Alves <palves@redhat.com>
18232
18233 * gdbthread.h (scoped_restore_current_thread)
18234 <dont_restore, restore, m_dont_restore>: Declare.
18235 * thread.c (thread_alive): Add assertion. Return bool.
18236 (switch_to_thread_if_alive): New.
18237 (prune_threads): Switch inferior/thread.
18238 (print_thread_info_1): Switch thread before calling target methods.
18239 (scoped_restore_current_thread::restore): New, factored out from
18240 ...
18241 (scoped_restore_current_thread::~scoped_restore_current_thread):
18242 ... this.
18243 (scoped_restore_current_thread::scoped_restore_current_thread):
18244 Add assertion.
18245 (thread_apply_all_command, thread_select): Use
18246 switch_to_thread_if_alive.
18247
18248 2020-01-10 George Barrett <bob@bob131.so>
18249
18250 * stap-probe.c (stap_modify_semaphore): Don't check for null
18251 semaphores.
18252 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18253 for null semaphores.
18254
18255 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18256
18257 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18258 all source windows, and maintain horizontal scroll status while
18259 doing so.
18260
18261 2020-01-09 Tom Tromey <tom@tromey.com>
18262
18263 PR tui/18932:
18264 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18265 update_source_window, not print_source_lines.
18266
18267 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18268
18269 * tui/tui.c (tui_enable): Register tui hooks after calling
18270 tui_display_main.
18271
18272 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18273
18274 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18275
18276 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18277
18278 * thread.c (print_thread_info_1): Fix indentation.
18279
18280 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18281
18282 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18283 unique_xmalloc_ptr outside the if to always free the demangled name.
18284
18285 2020-01-08 Tom Tromey <tromey@adacore.com>
18286
18287 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18288 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18289 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18290 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18291 Remove.
18292 (section_offsets): New typedef.
18293 * symtab.c (fixup_section, get_msymbol_address): Update.
18294 * symmisc.c (dump_msymbols): Update.
18295 * symfile.h (relative_addr_info_to_section_offsets)
18296 (symfile_map_offsets_to_segments): Update.
18297 * symfile.c (build_section_addr_info_from_objfile)
18298 (init_objfile_sect_indices): Update.
18299 (struct place_section_arg): Change type of "offsets".
18300 (place_section): Update.
18301 (relative_addr_info_to_section_offsets): Change type of
18302 "section_offsets". Remove "num_sections" parameter.
18303 (default_symfile_offsets, syms_from_objfile_1)
18304 (set_objfile_default_section_offset): Update.
18305 (reread_symbols): No need to preserve section offsets by hand.
18306 (symfile_map_offsets_to_segments): Change type of "offsets".
18307 * stap-probe.c (relocate_address): Update.
18308 * stabsread.h (process_one_symbol): Update.
18309 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18310 (solib_target_relocate_section_addresses): Update.
18311 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18312 Update.
18313 * solib-frv.c (frv_relocate_main_executable): Update.
18314 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18315 * solib-aix.c (solib_aix_get_section_offsets): Change return
18316 type.
18317 (solib_aix_solib_create_inferior_hook): Update.
18318 * remote.c (remote_target::get_offsets): Update.
18319 * psymtab.c (find_pc_sect_psymtab): Update.
18320 * psympriv.h (struct partial_symbol) <address, text_low,
18321 text_high>: Update.
18322 * objfiles.h (obj_section_offset): Update.
18323 (struct objfile) <section_offsets>: Change type.
18324 <num_sections>: Remove.
18325 (objfile_relocate): Update.
18326 * objfiles.c (entry_point_address_query): Update
18327 (relocate_one_symbol): Change type of "section_offsets".
18328 (objfile_relocate1, objfile_relocate1): Change type of
18329 "new_offsets".
18330 (objfile_rebase1): Update.
18331 * mipsread.c (mipscoff_symfile_read): Update.
18332 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18333 parameter.
18334 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18335 (parse_external, psymtab_to_symtab_1): Update.
18336 * machoread.c (macho_symfile_offsets): Update.
18337 * ia64-tdep.c (ia64_find_unwind_table): Update.
18338 * hppa-tdep.c (read_unwind_info): Update.
18339 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18340 * dwarf2read.c (create_addrmap_from_index)
18341 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18342 (process_psymtab_comp_unit_reader, add_partial_symbol)
18343 (add_partial_subprogram, process_full_comp_unit)
18344 (read_file_scope, read_func_scope, read_lexical_block_scope)
18345 (read_call_site_scope, dwarf2_rnglists_process)
18346 (dwarf2_ranges_process, dwarf2_ranges_read)
18347 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18348 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18349 Update.
18350 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18351 Update.
18352 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18353 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18354 (process_one_symbol): Change type of "section_offsets".
18355 * ctfread.c (get_objfile_text_range): Update.
18356 * coffread.c (coff_symtab_read, enter_linenos)
18357 (process_coff_symbol): Update.
18358 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18359 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18360
18361 2020-01-08 Tom Tromey <tromey@adacore.com>
18362
18363 * dwarf2read.c (parse_macro_definition): Use std::string.
18364 (parse_macro_definition): Likewise.
18365
18366 2020-01-08 Tom Tromey <tromey@adacore.com>
18367
18368 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18369 (ATTR_ALLOC_CHUNK): Remove.
18370
18371 2020-01-08 Tom Tromey <tromey@adacore.com>
18372
18373 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18374
18375 2020-01-08 Tom Tromey <tromey@adacore.com>
18376
18377 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18378 (dwarf2_compute_name, open_dwo_file): Likewise.
18379 (process_enumeration_scope): Use std::vector.
18380 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18381 (partial_die_info::fixup, dwarf2_start_subfile)
18382 (guess_full_die_structure_name, dwarf2_name): Likewise.
18383 (determine_prefix): Update.
18384 (guess_full_die_structure_name): Make return type const.
18385 (partial_die_full_name): Return unique_xmalloc_ptr.
18386 (DW_FIELD_ALLOC_CHUNK): Remove.
18387
18388 2020-01-07 Tom Tromey <tromey@adacore.com>
18389
18390 PR build/24937:
18391 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18392
18393 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18394
18395 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18396
18397 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18398
18399 * stack.c (print_frame_info): Move disassemble_next_line code
18400 inside source_print block.
18401
18402 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18403
18404 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18405 gdb/signals.h, as we are now using native signal symbols.
18406
18407 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18408
18409 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18410 overflow by an early check of content vs threshold.
18411 * tui/tui-source.c (tui_source_window::line_is_displayed):
18412 Likewise.
18413
18414 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18415
18416 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18417
18418 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18419
18420 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18421 export table if no section contains it's RVA.
18422
18423 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18424
18425 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18426
18427 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18428
18429 * source.c (print_source_lines_base): Set last_line_listed.
18430
18431 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18432
18433 * tui/tui-disasm.c: Remove trailing spaces.
18434
18435 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18436 Pedro Alves <palves@redhat.com>
18437
18438 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18439 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18440 (windows_gdb_signal_to_target): New function, uses the above
18441 enumeration to convert GDB internal signal codes to equivalent
18442 Windows codes.
18443 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18444 * windows-nat.c: Include "gdb_wait.h".
18445 (get_windows_debug_event): Extract the fatal exception from the
18446 exit status and convert to the equivalent Posix signal number.
18447 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18448 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18449 * gdbsupport/gdb_wait.c: New file, implements
18450 windows_status_to_termsig.
18451 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18452 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18453
18454 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18455
18456 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18457 show_layout.
18458
18459 2020-01-05 Luis Machado <luis.machado@linaro.org>
18460
18461 * aarch64-linux-nat.c
18462 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18463 and bfd_mach_aarch64.
18464
18465 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18466
18467 * ui-file.c (stdio_file::can_emit_style_escape)
18468 (tee_file::can_emit_style_escape): Ensure style is used also on
18469 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18470 to gdb_stdout.
18471 * main.c (set_gdb_data_directory): Use file style to output the
18472 warning that the given pathname is not a directory.
18473 * top.c (show_history_filename, gdb_safe_append_history)
18474 (show_gdb_datadir): Use file style.
18475
18476 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18477
18478 * solib-target.c (struct lm_info_target):
18479 Change offsets to be a unique_xmalloc_ptr.
18480 (solib_target_relocate_section_addresses): Update.
18481
18482 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18483
18484 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18485
18486 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18487
18488 * MAINTAINERS (Write After Approval): Add myself.
18489
18490 2020-01-02 Luis Machado <luis.machado@linaro.org>
18491
18492 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18493 Cell BE architecture.
18494 * target.h (struct target_ops) <thread_architecture>: Likewise.
18495
18496 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18497
18498 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18499
18500 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18501
18502 * MAINTAINERS (Write After Approval): Add myself.
18503
18504 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18505
18506 * gdbarch.sh: Update copyright year range of generated files.
18507
18508 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18509
18510 Update copyright year range in all GDB files.
18511
18512 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18513
18514 * copyright.py: Convert to Python 3.
18515
18516 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18517
18518 * copyright.py: Adapt after move of gnulib directory from gdb
18519 directory to toplevel directory.
18520
18521 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18522
18523 * copyright.py (main): Exit if run from the wrong directory.
18524
18525 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18526
18527 * top.c (print_gdb_version): Change copyright year to 2020.
18528
18529 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18530
18531 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18532
18533 For older changes see ChangeLog-2019.
18534 \f
18535 Local Variables:
18536 mode: change-log
18537 left-margin: 8
18538 fill-column: 74
18539 version-control: never
18540 coding: utf-8
18541 End: