Don't compare types of enum fields
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
2
3 PR exp/27070
4 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
5
6 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7
8 * configure.ac: Move the static libs vs. source-highlight
9 error message to a better place.
10 * configure: Regenerate.
11
12 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
13
14 * gdb-gdb.py.in: Fix main_type field name.
15
16 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
17
18 * python/py-value.c (valpy_format_string): Implement address keyword.
19
20 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
21
22 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
23
24 2020-12-18 Jameson Nash <vtjnash@gmail.com>
25
26 * coffread.c (linetab_offset): Change type to file_ptr.
27 (linetab_size): Likewise.
28 (enter_linenos): Change parameter type to file_ptr.
29 (init_lineno): Likewise.
30 (init_stringtab): Likewise.
31 (coff_symtab_read): Likewise.
32 (coff_symfile_read): Change variable types to file_ptr.
33
34 2020-12-17 Tom Tromey <tromey@adacore.com>
35
36 * printcmd.c (print_variable_and_value): Don't use n_spaces.
37
38 2020-12-17 Tom Tromey <tromey@adacore.com>
39
40 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
41 (print_gnat_stuff, print_fixed_point_type_info)
42 (recursive_dump_type): Update.
43 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
44 * c-typeprint.c (c_type_print_base_struct_union)
45 (c_type_print_base_1): Update.
46 * rust-lang.c (rust_internal_print_type): Update.
47 * f-typeprint.c (f_language::f_type_print_base): Update.
48 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
49 * m2-typeprint.c (m2_record_fields): Update.
50 * p-typeprint.c (pascal_type_print_base): Update.
51 * compile/compile-loc2c.c (push, pushf, unary, binary)
52 (do_compile_dwarf_expr_to_c): Update.
53 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
54
55 2020-12-16 Tom Tromey <tom@tromey.com>
56
57 * rust-exp.y (rust_lex_tests): Update.
58 * parser-defs.h (parser_state): Add void_p parameter.
59 <void_context_p>: New member.
60 * parse.c (parse_exp_in_context): Update.
61 * language.h (language_defn::post_parser): Remove void_context_p,
62 completing, tracker parameters. Add parser state.
63 * ada-lang.c (ada_language::post_parser): Update.
64
65 2020-12-16 Tom Tromey <tom@tromey.com>
66
67 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
68 (parse_exp_in_context): Change void_context_p to bool.
69 * language.h (struct language_defn) <post_parser>: Change
70 void_context_p to bool.
71 * ada-lang.c (class ada_language) <post_parser>: Update.
72
73 2020-12-16 Tom Tromey <tom@tromey.com>
74 Tom Tromey <tromey@redhat.com>
75 Tom de Vries <tdevries@suse.de>
76
77 * utils.h (get_chars_per_line): Declare.
78 * utils.c (get_chars_per_line): New function.
79 (fputs_maybe_filtered): Handle '\r'.
80 * ui-out.h (ui_out::progress_meter): New class.
81 (ui_out::progress, ui_out::do_progress_start)
82 (ui_out::do_progress_notify, ui_out::do_progress_end): New
83 methods.
84 * ui-out.c (do_progress_end)
85 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
86 functions.
87 * mi/mi-out.h (mi_ui_out::do_progress_start)
88 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
89 methods.
90 * cli-out.h (struct cli_ui_out) <do_progress_start,
91 do_progress_notify, do_progress_end>: New methods.
92 <enum meter_stat, struct cli_progress_info>: New.
93 <m_meters>: New member.
94 * cli-out.c (cli_ui_out::do_progress_start)
95 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
96 methods.
97
98 2020-12-16 Luis Machado <luis.machado@linaro.org>
99
100 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
101
102 2020-12-16 Luis Machado <luis.machado@linaro.org>
103
104 * aarch64-linux-nat.c
105 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
106
107 2020-12-15 Rae Kim <rae.kim@gmail.com>
108
109 * cli/cli-script.c (do_document_command): Rename from
110 document_command. Handle multi-line input.
111 (multi_line_command_p): Handle document_control.
112 (build_command_line): Likewise.
113 (execute_control_command_1): Likewise.
114 (process_next_line): Likewise.
115 (document_command): Call do_document_command.
116 * cli/cli-script.h (enum command_control_type): Add
117 document_control.
118
119 2020-12-15 Tom Tromey <tom@tromey.com>
120
121 * stap-probe.c (stap_probe::evaluate_argument): Use
122 evaluate_expression.
123 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
124 evaluate_expression.
125 * value.h (evaluate_expression): Add expect_type parameter.
126 * objc-lang.c (print_object_command): Call evaluate_expression.
127 * eval.c (evaluate_expression): Add expect_type parameter.
128
129 2020-12-15 Tom Tromey <tom@tromey.com>
130
131 * varobj.c (varobj_create): Use first_opcode.
132 * value.c (init_if_undefined_command): Use first_opcode.
133 * typeprint.c (whatis_exp): Use first_opcode.
134 * tracepoint.c (validate_actionline): Use first_opcode.
135 (encode_actions_1): Use first_opcode.
136 * stack.c (return_command): Use first_opcode.
137 * expression.h (struct expression) <first_opcode>: New method.
138 * eval.c (parse_and_eval_type): Use first_opcode.
139 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
140
141 2020-12-15 Tom Tromey <tom@tromey.com>
142
143 * f-lang.c (evaluate_subexp_f): Update.
144 * expression.h (evaluate_subexp_do_call): Update.
145 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
146 nargs, argvec with array_view.
147 (evaluate_funcall): Update.
148
149 2020-12-15 Tom Tromey <tom@tromey.com>
150
151 * ada-lang.c (num_component_specs): Remove.
152 (assign_aggregate): Update.
153 (aggregate_assign_positional, aggregate_assign_from_choices)
154 (aggregate_assign_others, add_component_interval): Change
155 arguments.
156
157 2020-12-15 Tom Tromey <tromey@adacore.com>
158
159 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
160 command names.
161
162 2020-12-14 Tom Tromey <tom@tromey.com>
163
164 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
165 * typeprint.c (whatis_exp): Always use evaluate_type.
166 (maintenance_print_type): Likewise. Simplify.
167
168 2020-12-14 Tom Tromey <tromey@adacore.com>
169
170 * dictionary.c (language_defn::search_name_hash): Ignore "B".
171 * ada-lang.c (advance_wild_match): Ignore "B".
172 (full_match): Remove.
173 (do_full_match): Rewrite.
174
175 2020-12-14 Tom Tromey <tromey@adacore.com>
176
177 * ada-lang.c (get_var_value): Only consider exact matches.
178
179 2020-12-14 Tom Tromey <tromey@adacore.com>
180
181 * dwarf2/read.c (rewrite_array_type): New function.
182 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
183
184 2020-12-14 Tom Tromey <tromey@adacore.com>
185
186 * valarith.c (fixed_point_binop): Call error on division by zero.
187
188 2020-12-13 Tom Tromey <tom@tromey.com>
189
190 * gdbtypes.c (safe_parse_type): Make argument const.
191 * value.h (parse_and_eval_type): Make argument const.
192 * eval.c (parse_and_eval_type): Make argument const.
193
194 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * NEWS: Mention new commands.
197 * target-dcache.c: Add 'cli/cli-cmds.h' include.
198 (maint_flush_dcache_command): New function.
199 (_initialize_target_dcache): Create new 'maint flush dcache'
200 command.
201
202 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
203
204 * NEWS: Mention new commands, and that the old commands are now
205 deprecated.
206 * cli/cli-cmds.c (maintenanceflushlist): Define.
207 * cli/cli-cmds.h (maintenanceflushlist): Declare.
208 * maint.c (_initialize_maint_cmds): Initialise
209 maintenanceflushlist.
210 * regcache.c: Add 'cli/cli-cmds.h' include.
211 (reg_flush_command): Add header comment.
212 (_initialize_regcache): Create new 'maint flush register-cache'
213 command, make 'flushregs' an alias.
214 * symtab.c: Add 'cli/cli-cmds.h' include.
215 (_initialize_symtab): Create new 'maint flush symbol-cache'
216 command, make old command an alias.
217
218 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
219
220 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
221 result from lookup_cmd_composition_1, use the prefixes from both
222 the command and the alias instead.
223 (lookup_cmd_composition_1): Initial prefix command is the based on
224 the search list being passed in. Simplify the logic for tracking
225 the prefix command. Replace a use of alloca with a local
226 std::string.
227
228 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
231 of NULL. Don't print message piece by piece, but sentence at a
232 time to allow internationalisation. Some whitespace cleanup.
233
234 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 PR cli/15104
237 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
238 deprecated_cmd_warning.
239 (deprecated_cmd_warning): Take extra parameter, call
240 lookup_cmd_composition_1 and pass new parameter through.
241 (lookup_cmd_composition_1): New function, takes implementation of
242 lookup_cmd_composition but with extra parameter.
243 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
244 passing in cmdlist.
245 * command.h (deprecated_cmd_warning): Add extra parameter to
246 declaration.
247 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
248
249 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
250
251 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
252 command.h, add extra parameter, and use this to guard giving a
253 warning.
254 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
255 include argument names in declaration, add new argument.
256 * completer.c (complete_line_internal_1): Remove unneeded
257 brackets, pass extra argument to lookup_cmd_1.
258
259 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
260
261 * infrun.h (debug_infrun): Make a bool.
262 * infrun.c (debug_infrun): Make a bool.
263 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
264 debug infrun".
265
266 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
267
268 * displaced-stepping.h (displaced_debug_printf): Use
269 debug_prefixed_printf_cond.
270 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
271 (dwarf_read_debug_printf_v): Likewise.
272 * infrun.h (infrun_debug_printf): Likewise.
273 * linux-nat.c (linux_nat_debug_printf): Likewise.
274
275 2020-12-11 Tom Tromey <tom@tromey.com>
276
277 * p-exp.y (intvar): Remove global.
278 (DOLLAR_VARIABLE): Change type.
279 (start): Update.
280 (exp): Call write_dollar_variable here...
281 (yylex): ... not here.
282 * m2-exp.y (DOLLAR_VARIABLE): Change type.
283 (variable): Call write_dollar_variable here...
284 (yylex): ... not here.
285 * f-exp.y (DOLLAR_VARIABLE): Change type.
286 (exp): Call write_dollar_variable here...
287 (yylex): ... not here.
288
289 2020-12-11 Tom Tromey <tom@tromey.com>
290
291 * varobj.c (varobj_create): Update.
292 (install_variable): Return void.
293
294 2020-12-11 Tom Tromey <tom@tromey.com>
295
296 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
297
298 2020-12-11 Tom Tromey <tom@tromey.com>
299
300 * varobj.c (varobj_clear_saved_item): Remove.
301 (update_dynamic_varobj_children): Update.
302 (varobj::~varobj): Don't call varobj_clear_saved_item.
303
304 2020-12-11 Tom Tromey <tom@tromey.com>
305
306 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
307 (update_dynamic_varobj_children, create_child)
308 (create_child_with_value): Update.
309 * varobj-iter.h (struct varobj_item) <value>: Now a
310 value_ref_ptr.
311 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
312
313 2020-12-11 Tom Tromey <tom@tromey.com>
314
315 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
316 (varobj_get_iterator): Return unique_ptr.
317 (update_dynamic_varobj_children, install_visualizer)
318 (varobj::~varobj): Update.
319 * python/python-internal.h (py_varobj_get_iterator): Return
320 unique_ptr.
321 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
322
323 2020-12-11 Tom Tromey <tom@tromey.com>
324
325 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
326 (varobj_clear_saved_item, update_dynamic_varobj_children):
327 Update.
328
329 2020-12-11 Tom Tromey <tom@tromey.com>
330
331 * varobj.c (update_dynamic_varobj_children): Update.
332 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
333 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
334 type.
335 (py_varobj_iter::next): Likewise.
336
337 2020-12-11 Tom Tromey <tom@tromey.com>
338
339 * varobj.c (update_dynamic_varobj_children, install_visualizer)
340 (varobj::~varobj): Update.
341 * varobj-iter.h (struct varobj_iter): Change to interface class.
342 (struct varobj_iter_ops): Remove.
343 (varobj_iter_next, varobj_iter_delete): Remove.
344 * python/py-varobj.c (struct py_varobj_iter): Derive from
345 varobj_iter. Add constructor, destructor. Rename members.
346 (py_varobj_iter::~py_varobj_iter): Rename from
347 py_varobj_iter_dtor.
348 (py_varobj_iter::next): Rename from py_varobj_iter_next.
349 (py_varobj_iter_ops): Remove.
350 (py_varobj_iter): Rename from py_varobj_iter_ctor.
351 (py_varobj_iter_new): Remove.
352 (py_varobj_get_iterator): Update.
353
354 2020-12-11 Tom Tromey <tom@tromey.com>
355
356 * varobj.h (all_root_varobjs): Take a function_view.
357 * varobj.c (all_root_varobjs): Take a function_view.
358 (varobj_invalidate_iter): Remove unused parameter.
359 (varobj_invalidate): Update.
360 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
361 (mi_cmd_var_update_iter): Change parameters.
362
363 2020-12-11 Tom Tromey <tom@tromey.com>
364
365 * varobj.c (struct varobj_root) <next>: Remove.
366 (struct vlist): Remove.
367 (rootlist): Now a std::list.
368 (install_variable, uninstall_variable, all_root_varobjs): Update.
369
370 2020-12-11 Tom Tromey <tom@tromey.com>
371
372 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
373 (varobj_table): Now htab_t.
374 (varobj_get_handle, install_variable, uninstall_variable):
375 Update.
376 (hash_varobj, eq_varobj_and_string): New functions.
377 (hash_varobj): Update.
378
379 2020-12-11 Tom Tromey <tom@tromey.com>
380
381 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
382 * ada-lang.c (check_status_exception): Update.
383 * breakpoint.c (free_bp_location): Remove.
384 (decref_bp_location): Use bp_location_ref_policy.
385 (bpstats::bpstats): Don't call incref_bp_location.
386 (bpstats::~bpstats): Remove.
387 (bpstats::bpstats): Update.
388 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
389 (bp_location::bp_location): Update.
390 (incref_bp_location): Remove.
391 (bkpt_print_it): Update.
392 * breakpoint.h (class bp_location): Derive from
393 refcounted_object.
394 (struct bpstats): Remove destructor.
395 <bp_location_at>: Now a bp_location_ref_ptr.
396 <refc>: Remove.
397 (bp_location_ref_ptr): New typedef.
398 (struct bp_location_ref_policy): New.
399
400 2020-12-11 Tom Tromey <tom@tromey.com>
401
402 * thread.c (class scoped_inc_dec_ref): Remove.
403 (tp_array_compar_ascending, tp_array_compar_descending): Change
404 parameter types.
405 (thread_apply_all_command): Use thread_info_ref.
406
407 2020-12-11 Tom Tromey <tom@tromey.com>
408
409 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
410 (stop_context::stop_context): Update.
411 (stop_context::~stop_context): Remove.
412
413 2020-12-11 Tom Tromey <tom@tromey.com>
414
415 * inferior.c (current_inferior_): Change type.
416 (current_inferior, set_current_inferior, initialize_inferiors):
417 Update.
418
419 2020-12-11 Tom Tromey <tom@tromey.com>
420
421 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
422 Change type.
423
424 2020-12-11 Tom Tromey <tromey@adacore.com>
425
426 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
427 field.
428 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
429 (read_atcb): Use cpu_id_offset.
430
431 2020-12-10 Kevin Buettner <kevinb@redhat.com>
432
433 * ada-lang.c (ada_fold_name): Fix off-by-one error.
434
435 2020-12-10 Luis Machado <luis.machado@linaro.org>
436
437 * breakpoint.c (should_be_inserted): Don't output newline.
438
439 2020-12-10 Luis Machado <luis.machado@linaro.org>
440
441 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
442 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
443 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
444 * arch/aarch64.h: ... here.
445 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
446 (aarch64_maybe_swab128): New function.
447 (aarch64_sve_regs_copy_to_reg_buf)
448 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
449 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
450 the data field.
451 (TF_REG_VALUE_BYTES): New enum value.
452 (trad_frame_value_bytes_p): New function.
453 (trad_frame_set_value_bytes): New function.
454 (trad_frame_set_reg_value_bytes): New function.
455 (trad_frame_get_prev_register): Handle register values saved as bytes.
456 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
457 (struct trad_frame_saved_reg) <data>: New field.
458 (trad_frame_set_value_bytes): New prototype.
459 (trad_frame_value_bytes_p): New prototype.
460
461 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
462
463 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
464 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
465 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
466
467 2020-12-09 Tom Tromey <tromey@adacore.com>
468
469 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
470
471 2020-12-09 Tom Tromey <tromey@adacore.com>
472
473 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
474 and "denominator" to gdb_mpz. Handle block forms.
475 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
476 "denominator" to gdb_mpz.
477 (finish_fixed_point_type): Update.
478 (has_zero_over_zero_small_attribute): Update.
479
480 2020-12-09 Tom Tromey <tromey@adacore.com>
481
482 * expprint.c (op_name): Update.
483 * expression.h (enum exp_opcode): Update.
484 * std-operator.def: Add more opcodes.
485 * ada-operator.def, fortran-operator.def: Remove, moving contents
486 into std-operator.def.
487
488 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
489
490 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
491 Return {} instead of false.
492 (get_discrete_bounds): Compute high bound only if low bound is
493 valid.
494
495 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
496
497 PR 26875, PR 26901
498 * gdbtypes.c (get_discrete_low_bound): Make non-static.
499 (get_discrete_high_bound): Make non-static.
500 * gdbtypes.h (get_discrete_low_bound): New declaration.
501 (get_discrete_high_bound): New declaration.
502 * valarith.c (value_subscript): Only fetch high bound if
503 necessary.
504
505 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
506
507 * gdbtypes.c (get_discrete_bounds): Implement with
508 get_discrete_low_bound and get_discrete_high_bound.
509 (get_discrete_low_bound): New.
510 (get_discrete_high_bound): New.
511
512 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
513
514 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
515 callers.
516 * gdbtypes.c (get_discrete_bounds): Return bool.
517
518 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
519
520 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
521 (ada_value_slice): Adjust.
522 (pos_atr): Adjust.
523 * gdbtypes.c (get_discrete_bounds): Adjust.
524 (discrete_position): Return optional.
525 * gdbtypes.h (discrete_position): Return optional.
526
527 2020-12-07 Tom Tromey <tromey@adacore.com>
528
529 * maint.c (_initialize_maint_cmds): Use expression command
530 completer for "maint print type".
531
532 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
533
534 * completer.c (complete_explicit_location): Also add keywords
535 that start with '-' to the completion list.
536
537 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
538
539 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
540 keyword may be followed by any keyword.
541 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
542 'toklen' in the case for "-force-condition".
543
544 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
545
546 * main.c (catch_command_errors): Add a flag parameter; invoke
547 `bpstat_do_actions` if the flag is set.
548 (execute_cmdargs): Update a call to `catch_command_errors`.
549
550 2020-12-07 Tom de Vries <tdevries@suse.de>
551
552 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
553
554 2020-12-06 Tom Tromey <tom@tromey.com>
555
556 PR ada/26999
557 * ada-lang.c (replace_operator_with_call): Rewrite.
558
559 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
560
561 PR breakpoints/27009
562 * s390-tdep.h (op_bc): Correct BC opcode value.
563
564 2020-12-06 Joel Brobecker <brobecker@adacore.com>
565
566 * gmp-utils.h (gdb_mpz::safe_export): New private method.
567 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
568 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
569 (gdb_mpz::safe_export): New method.
570 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
571 Update function description.
572 (check_as_integer_raises_out_of_range_error): New function.
573 (gdb_mpz_as_integer_out_of_range): New function.
574 (_initialize_gmp_utils_selftests): Register
575 gdb_mpz_as_integer_out_of_range as a selftest.
576
577 2020-12-05 Joel Brobecker <brobecker@adacore.com>
578
579 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
580 TARGET_CHAR_BIT.
581 (gdb_mpz::write): Likewise.
582
583 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
584
585 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
586 number of displaced step buffers.
587
588 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
589
590 * displaced-stepping.h (struct displaced_step_buffer): Rename
591 to...
592 (struct displaced_step_buffers): ... this.
593 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
594 <struct displaced_step_buffer>: New inner class.
595 <m_buffers>: New.
596 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
597 to...
598 (displaced_step_buffers::prepare): ... this, adjust for multiple
599 buffers.
600 (displaced_step_buffer::finish): Rename to...
601 (displaced_step_buffers::finish): ... this, adjust for multiple
602 buffers.
603 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
604 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
605 adjust for multiple buffers.
606 (displaced_step_buffer::restore_in_ptid): Rename to...
607 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
608 multiple buffers.
609 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
610 for num_disp_step_buffers.
611 * linux-tdep.c (struct linux_gdbarch_data)
612 <num_disp_step_buffers>: New field.
613 (struct linux_info) <disp_step_buf>: Rename to...
614 <disp_step_bufs>: ... this, change type to
615 displaced_step_buffers.
616 (linux_displaced_step_prepare): Use
617 linux_gdbarch_data::num_disp_step_buffers to create that number
618 of buffers.
619 (linux_displaced_step_finish): Adjust.
620 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
621 (linux_displaced_step_restore_all_in_ptid): Adjust.
622 (linux_init_abi): Change supports_displaced_step parameter for
623 num_disp_step_buffers, save it in linux_gdbarch_data.
624 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
625 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
626 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
627 supports_displaced_step parameter for num_disp_step_buffers.
628 (amd64_linux_init_abi): Adjust.
629 (amd64_x32_linux_init_abi): Adjust.
630 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
631 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
632 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
633 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
634 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
635 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
636 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
637 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
638 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
639 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
640 * m68k-linux-tdep.c (m68k_linux_init_abi):
641 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
642 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
643 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
644 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
645 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
646 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
647 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
648 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
649 Change type to displaced_step_buffers.
650 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
651 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
652 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
653 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
654 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
655 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
656 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
657
658 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
659
660 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
661 obkstack.
662 (_initialize_linux_tdep): Register pre-init gdb data instead of
663 post-init.
664
665 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
666
667 * displaced-stepping.h (struct
668 displaced_step_copy_insn_closure): Adjust comments.
669 (struct displaced_step_inferior_state) <step_thread,
670 step_gdbarch, step_closure, step_original, step_copy,
671 step_saved_copy>: Remove fields.
672 (struct displaced_step_thread_state): New.
673 (struct displaced_step_buffer): New.
674 * displaced-stepping.c (displaced_step_buffer::prepare): New.
675 (write_memory_ptid): Move from infrun.c.
676 (displaced_step_instruction_executed_successfully): New,
677 factored out of displaced_step_finish.
678 (displaced_step_buffer::finish): New.
679 (displaced_step_buffer::copy_insn_closure_by_addr): New.
680 (displaced_step_buffer::restore_in_ptid): New.
681 * gdbarch.sh (displaced_step_location): Remove.
682 (displaced_step_prepare, displaced_step_finish,
683 displaced_step_copy_insn_closure_by_addr,
684 displaced_step_restore_all_in_ptid): New.
685 * gdbarch.c: Re-generate.
686 * gdbarch.h: Re-generate.
687 * gdbthread.h (class thread_info) <displaced_step_state>: New
688 field.
689 (thread_step_over_chain_remove): New declaration.
690 (thread_step_over_chain_next): New declaration.
691 (thread_step_over_chain_length): New declaration.
692 * thread.c (thread_step_over_chain_remove): Make non-static.
693 (thread_step_over_chain_next): New.
694 (global_thread_step_over_chain_next): Use
695 thread_step_over_chain_next.
696 (thread_step_over_chain_length): New.
697 (global_thread_step_over_chain_enqueue): Add debug print.
698 (global_thread_step_over_chain_remove): Add debug print.
699 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
700 Remove.
701 * infrun.c (get_displaced_stepping_state): New.
702 (displaced_step_in_progress_any_inferior): Remove.
703 (displaced_step_in_progress_thread): Adjust.
704 (displaced_step_in_progress): Adjust.
705 (displaced_step_in_progress_any_thread): New.
706 (get_displaced_step_copy_insn_closure_by_addr): Remove.
707 (gdbarch_supports_displaced_stepping): Use
708 gdbarch_displaced_step_prepare_p.
709 (displaced_step_reset): Change parameter from inferior to
710 thread.
711 (displaced_step_prepare_throw): Implement using
712 gdbarch_displaced_step_prepare.
713 (write_memory_ptid): Move to displaced-step.c.
714 (displaced_step_restore): Remove.
715 (displaced_step_finish): Implement using
716 gdbarch_displaced_step_finish.
717 (start_step_over): Allow starting more than one displaced step.
718 (prepare_for_detach): Handle possibly multiple threads doing
719 displaced steps.
720 (handle_inferior_event): Handle possibility that fork event
721 happens while another thread displaced steps.
722 * linux-tdep.h (linux_displaced_step_prepare): New.
723 (linux_displaced_step_finish): New.
724 (linux_displaced_step_copy_insn_closure_by_addr): New.
725 (linux_displaced_step_restore_all_in_ptid): New.
726 (linux_init_abi): Add supports_displaced_step parameter.
727 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
728 (linux_displaced_step_prepare): New.
729 (linux_displaced_step_finish): New.
730 (linux_displaced_step_copy_insn_closure_by_addr): New.
731 (linux_displaced_step_restore_all_in_ptid): New.
732 (linux_init_abi): Add supports_displaced_step parameter,
733 register displaced step methods if true.
734 (_initialize_linux_tdep): Register inferior_execd observer.
735 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
736 supports_displaced_step parameter, adjust call to
737 linux_init_abi. Remove call to
738 set_gdbarch_displaced_step_location.
739 (amd64_linux_init_abi): Adjust call to
740 amd64_linux_init_abi_common.
741 (amd64_x32_linux_init_abi): Likewise.
742 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
743 linux_init_abi. Remove call to
744 set_gdbarch_displaced_step_location.
745 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
746 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
747 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
748 linux_init_abi.
749 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
750 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
751 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
752 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
753 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
754 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
755 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
756 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
757 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
758 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
759 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
760 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
761 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
762 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
763 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
764 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
765 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
766 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
767 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
768 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
769 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
770 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
771 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
772 linux_init_abi. Remove call to
773 set_gdbarch_displaced_step_location.
774 * arm-tdep.c (arm_pc_is_thumb): Call
775 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
776 get_displaced_step_copy_insn_closure_by_addr.
777 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
778 clear gdbarch methods.
779 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
780 (get_ppc_per_inferior): New function.
781 (ppc_displaced_step_prepare): New function.
782 (ppc_displaced_step_finish): New function.
783 (ppc_displaced_step_restore_all_in_ptid): New function.
784 (rs6000_gdbarch_init): Register new gdbarch methods.
785 * s390-tdep.c (s390_gdbarch_init): Don't call
786 set_gdbarch_displaced_step_location, set new gdbarch methods.
787
788 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
789
790 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
791 * aarch64-tdep.h: Include displaced-stepping.h.
792 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
793 Move here.
794 (displaced_step_copy_insn_closure_up): Move here.
795 (struct buf_displaced_step_copy_insn_closure): Move here.
796 (struct displaced_step_inferior_state): Move here.
797 (debug_displaced): Move here.
798 (displaced_debug_printf_1): Move here.
799 (displaced_debug_printf): Move here.
800 * displaced-stepping.c: New file.
801 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
802 * gdbarch.h: Re-generate.
803 * inferior.h: Include displaced-stepping.h.
804 * infrun.h (debug_displaced): Move to displaced-stepping.h.
805 (displaced_debug_printf_1): Likewise.
806 (displaced_debug_printf): Likewise.
807 (struct displaced_step_copy_insn_closure): Likewise.
808 (displaced_step_copy_insn_closure_up): Likewise.
809 (struct buf_displaced_step_copy_insn_closure): Likewise.
810 (struct displaced_step_inferior_state): Likewise.
811 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
812 (displaced_debug_printf_1): Likewise.
813 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
814 Likewise.
815 (_initialize_infrun): Don't register "set/show debug displaced".
816
817 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
818
819 * linux-tdep.c (get_linux_inferior_data): Add inferior
820 parameter.
821 (linux_vsyscall_range): Pass current inferior.
822
823 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
824
825 * infrun.c (displaced_step_prepare_throw): Change return type to
826 displaced_step_prepare_status.
827 (displaced_step_prepare): Likewise.
828 (displaced_step_finish): Change return type to
829 displaced_step_finish_status.
830 (resume_1): Adjust.
831 (stop_all_threads): Adjust.
832 * displaced-stepping.h: New file.
833
834 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
835
836 * infrun.c (displaced_step_fixup): Rename to...
837 (displaced_step_finish): ... this, update all callers.
838
839 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
840
841 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
842 (get_displaced_step_copy_insn_closure_by_addr): ... this.
843 Update all users.
844 (displaced_step_closure): Rename to...
845 (displaced_step_copy_insn_closure): ... this. Update all users.
846 (displaced_step_closure_up): Rename to...
847 (displaced_step_copy_insn_closure_up). ... this. Update all
848 users.
849 (buf_displaced_step_closure): Rename to...
850 (buf_displaced_step_copy_insn_closure): ... this. Update all
851 users.
852 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
853 (get_displaced_step_copy_insn_closure_by_addr): ... this.
854 Update all users.
855 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
856 (aarch64_displaced_step_copy_insn_closure): ... this. Update
857 all users.
858 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
859 (amd64_displaced_step_copy_insn_closure): ... this. Update all
860 users.
861 * arm-tdep.h (arm_displaced_step_closure): Rename to...
862 (arm_displaced_step_copy_insn_closure): ... this. Update all
863 users.
864 * i386-tdep.h (i386_displaced_step_closure): Rename to...
865 (i386_displaced_step_copy_insn_closure): ... this. Update all
866 users.
867 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
868 (ppc_displaced_step_copy_insn_closure): ... this. Update all
869 users.
870 * s390-tdep.c (s390_displaced_step_closure): Rename to...
871 (s390_displaced_step_copy_insn_closure): ... this. Update all
872 users.
873 * gdbarch.h: Re-generate.
874 * gdbarch.c: Re-generate.
875
876 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
877
878 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
879 (global_thread_step_over_chain_enqueue): ... this. Update all
880 users.
881 (thread_step_over_chain_remove): Rename to...
882 (global_thread_step_over_chain_remove): ... this. Update all
883 users.
884 (thread_step_over_chain_next): Rename to...
885 (global_thread_step_over_chain_next): ... this. Update all
886 users.
887 * infrun.h (step_over_queue_head): Rename to...
888 (global_thread_step_over_chain_head): ... this. Update all
889 users.
890 * infrun.c (step_over_queue_head): Rename to...
891 (global_thread_step_over_chain_head): ... this. Update all
892 users.
893 * thread.c (step_over_chain_remove): Rename to...
894 (thread_step_over_chain_remove): ... this. Update all users.
895 (thread_step_over_chain_next): Rename to...
896 (global_thread_step_over_chain_next): ... this. Update all
897 users.
898 (thread_step_over_chain_enqueue): Rename to...
899 (global_thread_step_over_chain_enqueue): ... this. Update all
900 users.
901 (thread_step_over_chain_remove): Rename to...
902 (global_thread_step_over_chain_remove): ... this. Update all
903 users.
904
905 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
906
907 * infrun.c (get_displaced_stepping_state): Remove, change
908 callers to access the field directly.
909
910 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * infrun.c (handle_inferior_event): Restore displaced step
913 buffer bytes in child process when handling fork, even if fork
914 happened in another thread than the displaced-stepping one.
915
916 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
917
918 * infrun.c (infrun_inferior_execd): New function.
919 (_initialize_infrun): Attach inferior_execd observer.
920
921 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
922
923 * observable.h (inferior_execd): Declare new observable.
924 * observable.c (inferior_execd): Declare new observable.
925 * infrun.c (follow_exec): Notify inferior_execd observer.
926 * jit.c (jit_inferior_created_hook): Make static.
927 (_initialize_jit): Register inferior_execd observer.
928 * jit.h (jit_inferior_created_hook): Remove declaration.
929 * solib.c (_initialize_solib): Register inferior_execd observer.
930
931 2020-12-04 Tom de Vries <tdevries@suse.de>
932
933 PR gdb/27003
934 * completer.c (completion_tracker::build_completion_result): Don't
935 access match_list[0][-1].
936
937 2020-12-04 Tom Tromey <tromey@adacore.com>
938
939 * linespec.c (struct linespec_token): Rename; remove typedef.
940 * guile/scm-block.c (struct block_smob): Remove typedef.
941 (struct block_syms_progress_smob): Likewise.
942 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
943 * guile/scm-symtab.c (symtab_smob): Remove typedef.
944 (struct sal_smob): Remove typedef.
945 * guile/scm-param.c (struct param_smob): Remove typedef.
946 * guile/scm-progspace.c (struct pspace_smob): Rename.
947 * guile/scm-objfile.c (struct objfile_smob): Rename.
948 * guile/scm-iterator.c (struct iterator_smob): Rename.
949 * guile/scm-frame.c (struct frame_smob): Rename.
950 * guile/scm-arch.c (struct arch_smob): Rename.
951 * guile/scm-type.c (struct field_smob): Remove typedef.
952 (struct type_smob): Rename.
953 * guile/scm-cmd.c (struct command_smob): Remove typedef.
954 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
955 * guile/scm-value.c (struct value_smob): Remove typedef.
956 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
957 * guile/guile-internal.h (struct scheme_variable)
958 (struct scheme_function, struct scheme_integer_constant)
959 (struct gdb_smob, struct chained_gdb_smob)
960 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
961 (objfile_smob, pspace_smob, type_smob): Remove typedef.
962 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
963 (struct pretty_printer_worker_smob): Remove typedef.
964 * guile/scm-exception.c (struct exception_smob): Remove typedef.
965 * python/py-block.c (struct block_object): Remove typedef.
966 (block_syms_iterator_object): Update.
967 (set_block): Update.
968 (block_syms_iterator_object): Remove typedef.
969 * python/py-inferior.c (struct membuf_object): Remove typedef.
970 * python/py-symtab.c (struct symtab_object): Remove typedef.
971 (set_symtab): Update.
972 (sal_object): Remove typedef.
973 (set_sal): Update.
974 * python/py-frame.c (frame_object): Remove typedef.
975 * python/py-record-btrace.c (struct btpy_list_object): Remove
976 typedef.
977 * python/py-arch.c (struct arch_object): Remove typedef.
978 * python/py-linetable.c (struct linetable_entry_object)
979 (linetable_object, struct ltpy_iterator_object): Remove typedef.
980 * python/py-events.h (eventregistry_object): Remove typedef.
981 (struct events_object): Remove typedef.
982 * python/python-internal.h (gdbpy_breakpoint_object): Remove
983 typedef.
984 (thread_object): Remove typedef.
985 * python/py-progspace.c (pspace_object): Remove typedef.
986 * python/py-value.c (struct value_object): Remove typedef.
987 * python/py-record.h (recpy_record_object): Remove typedef.
988 (struct recpy_element_object): Remove typedef.
989 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
990 * python/py-objfile.c (objfile_object): Remove typedef.
991 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
992 * python/py-type.c (type_object): Remove typedef.
993 (typy_iterator_object): Update.
994 (set_type): Update.
995 (field_object): Remove typedef.
996 (typy_iterator_object): Remove typedef.
997 * python/py-registers.c (register_descriptor_iterator_object):
998 Remove typedef.
999 (struct register_descriptor_object)
1000 (struct reggroup_iterator_object, struct reggroup_object): Remove
1001 typedef.
1002 * python/py-record.c (recpy_gap_object): Remove typedef.
1003 * python/py-symbol.c (symbol_object): Remove typedef.
1004 (set_symbol): Update.
1005 * python/py-event.h (event_object): Remove typedef.
1006 * python/py-param.c (parmpy_object): Remove typedef.
1007 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1008 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1009 (unwind_info_object, struct cached_frame_info): Likewise.
1010
1011 2020-12-04 Tom Tromey <tromey@adacore.com>
1012
1013 * value.c (value_internal_function_name): Make return type const.
1014 * value.h (value_internal_function_name): Make return type const.
1015
1016 2020-12-04 Luis Machado <luis.machado@linaro.org>
1017
1018 * aarch64-tdep.c (submask, bit, bits): Remove.
1019 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1020 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1021 (aarch64_decode_cb, aarch64_decode_tb)
1022 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1023 immediate.
1024 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1025
1026 2020-12-04 Tom de Vries <tdevries@suse.de>
1027
1028 PR tdep/27007
1029 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1030
1031 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1032
1033 PR gdb/26876
1034 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1035 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1036
1037 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1038
1039 * arch/riscv.c: Include 'rv32e-xregs.c'.
1040 (riscv_create_target_description): Update to handle rv32e.
1041 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1042 member variable.
1043 <operator==>: Update to account for new field.
1044 <hash>: Likewise.
1045 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1046 * features/riscv/rv32e-xregs.c: Generated.
1047 * features/riscv/rv32e-xregs.xml: New file.
1048 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1049 file.
1050 (riscv_debug_infcall): Likewise.
1051 (riscv_debug_unwinder): Likewise.
1052 (riscv_debug_gdbarch): Likewise.
1053 (enum riscv_register_required_status): Delete.
1054 (struct riscv_register_feature): Add constructor, delete default
1055 constructor, copy, and assign constructors.
1056 (struct riscv_register_feature::register_info) <required>: Delete.
1057 <check>: Update comment and arguments.
1058 (struct riscv_register_feature) <name>: Change to member function.
1059 <prefer_first_name>: Delete.
1060 <tdesc_feature>: New member function.
1061 <registers>: Rename to...
1062 <m_registers>: ...this.
1063 <m_feature_name>: New member variable.
1064 (riscv_register_feature::register_info::check): Update arguments.
1065 (riscv_xreg_feature): Rewrite as class, create a single static
1066 instance of the class.
1067 (riscv_freg_feature): Likewise.
1068 (riscv_virtual_feature): Likewise.
1069 (riscv_csr_feature): Likewise.
1070 (riscv_create_csr_aliases): Has become a member function inside
1071 riscv_csr_feature class.
1072 (riscv_abi_embedded): New function definition.
1073 (riscv_register_name): Adjust to use new feature objects.
1074 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1075 and adjust available argument registers.
1076 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1077 (riscv_check_tdesc_feature): Delete.
1078 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1079 (riscv_gdbarch_init): Delete target description checking code, and
1080 instead call to the new feature objects to perform the checks.
1081 Reorder handling of no abi information case, allows small code
1082 simplification.
1083 (_initialize_riscv_tdep): Remove call, this is now done in the
1084 riscv_csr_feature constructor.
1085 * riscv-tdep.h (riscv_abi_embedded): Declare.
1086
1087 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1090 DECLARE_CSR_ALIAS.
1091
1092 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1095 implementation moved from riscv_register_reggroup_p.
1096 (riscv_register_reggroup_p): Update group handling for unknown
1097 CSRs.
1098
1099 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1100
1101 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1102 (dwarf2_get_dwz_file): Convert 'filename' to a
1103 std::string. Use dwz_search_other_debugdirs to search for DWZ
1104 files in the debug-file-directories provided by the user as well.
1105
1106 2020-12-01 Tom Tromey <tom@tromey.com>
1107
1108 * parse.c (expr_builder::expr_builder): Initialize expout.
1109 (expr_builder::release): Use expression::resize.
1110 (expression::expression, expression::~expression)
1111 (expression::resize): New methods.
1112 (write_exp_elt): Use expression::resize.
1113 (prefixify_expression): Update.
1114 (increase_expout_size): Use expression::resize.
1115 * expression.h (struct expression): Add constructor, destructor.
1116 <resize>: New method.
1117 (expression_up): Change type.
1118
1119 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1120 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1121 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1122 set region.
1123
1124 2020-11-30 Tom de Vries <tdevries@suse.de>
1125
1126 PR symtab/26905
1127 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1128 is_reference parameter.
1129 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1130
1131 2020-11-30 Tom Tromey <tom@tromey.com>
1132
1133 * rust-lang.c (rust_op_name): Remove.
1134 (exp_descriptor_rust): Update.
1135 * parser-defs.h (op_name_standard): Don't declare.
1136 (struct exp_descriptor) <op_name>: Remove.
1137 * parse.c (exp_descriptor_standard): Update.
1138 * opencl-lang.c (exp_descriptor_opencl): Update.
1139 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1140 * f-lang.c (op_name_f): Remove.
1141 (f_language::exp_descriptor_tab): Update.
1142 * expression.h (op_name): Update.
1143 * expprint.c (op_name): Rewrite.
1144 (op_name_standard): Remove.
1145 (dump_raw_expression, dump_subexp): Update.
1146 * c-lang.c (exp_descriptor_c): Update.
1147 * ax-gdb.c (gen_expr): Update.
1148 * ada-lang.c (ada_op_name): Remove.
1149 (ada_exp_descriptor): Update.
1150
1151 2020-11-30 Tom Tromey <tom@tromey.com>
1152
1153 * eval.c (init_array_element): Remove.
1154 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1155
1156 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1157
1158 PR tui/26973
1159 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1160 static locator win info.
1161
1162 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1163
1164 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1165 program.
1166
1167 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1170 is always initialized.
1171
1172 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1173 * MAINTAINERS (Write After Approval): Add myself.
1174
1175 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1176
1177 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1178 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1179
1180 2020-11-25 Tom Tromey <tom@tromey.com>
1181
1182 * eval.c (evaluate_subexp_standard): Remove unnecessary
1183 variables.
1184
1185 2020-11-25 Tom Tromey <tom@tromey.com>
1186
1187 * d-lang.c: Include parser-defs.h.
1188 * rust-lang.c: Include parser-defs.h.
1189 * c-lang.h: Do not include parser-defs.h.
1190
1191 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1192
1193 * regcache.h (struct cached_reg): Remove typedef.
1194
1195 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1196
1197 * README: Fix the URL of the MPFR library.
1198
1199 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1200
1201 * README: Document the --with-libgmp-prefix configure option.
1202
1203 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1204
1205 * NEWS: Add entry documenting support for DWARF-based fixed
1206 point types.
1207
1208 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1209
1210 * NEWS: Document that building GDB now requires GMP.
1211
1212 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1213
1214 * typeprint.c (print_type_scalar): Add handling of
1215 TYPE_CODE_FIXED_POINT.
1216
1217 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1218
1219 * valarith.c (fixed_point_binop): Replace the
1220 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1221 users accordingly.
1222
1223 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1224
1225 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1226 replacing fixed_point_scaling_factor. All callers updated
1227 throughout this project.
1228 (fixed_point_scaling_factor): Delete declaration.
1229 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1230 fixed_point_scaling_factor. Adjust implementation accordingly.
1231
1232 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1233
1234 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1235 replacing the fixed_point_type_base_type function. All callers
1236 updated throughout this project.
1237 (fixed_point_type_base_type): Remove declaration.
1238 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1239 fixed_point_type_base_type. Adjust implementation accordingly.
1240
1241 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1242
1243 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1244 New methods.
1245 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1246 (TYPE_FIXED_POINT_INFO): Delete macro.
1247 (allocate_fixed_point_type_info): Change return type to void.
1248 * gdbtypes.c (copy_type_recursive): Replace the use of
1249 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1250 (fixed_point_scaling_factor): Likewise.
1251 (allocate_fixed_point_type_info): Change return type to void.
1252 Adjust implementation accordingly.
1253 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1254 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1255
1256 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1257
1258 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1259 into one single gdb::array_view parameter.
1260 (gdb_mpz::write): Likewise.
1261 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1262 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1263 into one single gdb::array_view parameter.
1264 Adjust implementation accordingly.
1265 (gdb_mpz::write): Likewise.
1266 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1267 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1268 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1269
1270 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1271
1272 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1273 Change return type to std::string. Update all callers.
1274 * gmp-utils.c (gmp_string_printf): Likewise.
1275
1276 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1277
1278 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1279 instead of mpq_set_ui to initialize our GMP rational.
1280
1281 2020-11-23 Tom de Vries <tdevries@suse.de>
1282
1283 * debuginfod-support.c (debuginfod_source_query)
1284 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1285
1286 2020-11-21 Tom Tromey <tom@tromey.com>
1287
1288 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1289
1290 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1291
1292 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1293 Pass 2.0 to pow.
1294 (gdb_mpz_write_all_from_small): Likewise.
1295
1296 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1297
1298 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1299 of abs.
1300
1301 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1302
1303 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1304 ctf_arc_open_by_name.
1305
1306 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1307
1308 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1309 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1310
1311 2020-11-20 Pedro Alves <pedro@palves.net>
1312
1313 * language.c (language_arch_info::lookup_primitive_type): Use
1314 gdb::function_view instead of gdb::function.
1315 (template language_lookup_primitive_type): Rename to ...
1316 (language_lookup_primitive_type_1): ... this, and make static.
1317 (language_lookup_primitive_type(const struct language_defn *,
1318 struct gdbarch *, const char *): Make non-template.
1319 (language_lookup_primitive_type(const struct language_defn *,
1320 struct gdbarch *, std::function<bool (struct type *)>): Make
1321 non-template and use gdb::function_view.
1322 * language.h (language_arch_info::lookup_primitive_type): Use
1323 gdb::function_view instead of std::function.
1324 (language_lookup_primitive_type): No longer template.
1325 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1326 lambda instead of a std::function.
1327
1328 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1329
1330 PR tdep/26916
1331 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1332 and STOCFH.
1333
1334 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1337
1338 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1339
1340 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1341 in `loop_cb` parameter.
1342 * gdbarch.c: Re-generate.
1343 * gdbarch.h: Re-generate.
1344 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1345 parameter.
1346 * arch-utils.h (default_read_core_file_mappings): Likewise.
1347 * corelow.c (core_target::build_file_mappings): Likewise.
1348 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1349 (linux_core_info_proc_mappings): Likewise.
1350
1351 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1352
1353 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1354 * NEWS: Mention new options.
1355 * f-array-walker.h: New file.
1356 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1357 (repack_array_slices): New static global.
1358 (show_repack_array_slices): New function.
1359 (fortran_array_slicing_debug): New static global.
1360 (show_fortran_array_slicing_debug): New function.
1361 (value_f90_subarray): Delete.
1362 (skip_undetermined_arglist): Delete.
1363 (class fortran_array_repacker_base_impl): New class.
1364 (class fortran_lazy_array_repacker_impl): New class.
1365 (class fortran_array_repacker_impl): New class.
1366 (fortran_value_subarray): Complete rewrite.
1367 (set_fortran_list): New static global.
1368 (show_fortran_list): Likewise.
1369 (_initialize_f_language): Register new commands.
1370 (fortran_adjust_dynamic_array_base_address_hack): New function.
1371 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1372 Declare.
1373 * f-valprint.c: Include 'f-array-walker.h'.
1374 (class fortran_array_printer_impl): New class.
1375 (f77_print_array_1): Delete.
1376 (f77_print_array): Delete.
1377 (fortran_print_array): New.
1378 (f_value_print_inner): Update to call fortran_print_array.
1379 * gdbtypes.c: Include 'f-lang.h'.
1380 (resolve_dynamic_type_internal): Call
1381 fortran_adjust_dynamic_array_base_address_hack.
1382
1383 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1384
1385 * breakpoint.c (struct watch_options): New struct.
1386 (watch_option_defs): New static global.
1387 (make_watch_options_def_group): New function.
1388 (watch_maybe_just_location): Convert option parsing.
1389 (watch_command_completer): New function.
1390 (_initialize_breakpoint): Build help text using options mechanism.
1391
1392 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1395 (watch_command_1): Update parameter types. Convert locals to
1396 bool.
1397 (watch_command_wrapper): Change parameter type.
1398 (watch_maybe_just_location): Change locals to bool.
1399 (rwatch_command_wrapper): Update parameter type.
1400 (awatch_command_wrapper): Update parameter type.
1401 * breakpoint.h (watch_command_wrapper): Change parameter type.
1402 (rwatch_command_wrapper): Update parameter type.
1403 (awatch_command_wrapper): Update parameter type.
1404 * eval.c (fetch_subexp_value): Change parameter type.
1405 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1406 'false' not '0'.
1407 * value.h (fetch_subexp_value): Change parameter type in
1408 declaration.
1409
1410 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1411
1412 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1413 skip_spaces.
1414
1415 2020-11-18 Keith Seitz <keiths@redhat.com>
1416
1417 * linux-tdep.c (dump_note_entry_p): Return true instead of
1418 checking `filename'.
1419
1420 2020-11-18 Tom de Vries <tdevries@suse.de>
1421
1422 * debuginfod-support.c (debuginfod_source_query)
1423 (debuginfod_debuginfo_query): Also do early exit if
1424 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1425
1426 2020-11-18 Tom de Vries <tdevries@suse.de>
1427
1428 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1429 warning.
1430
1431 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1432
1433 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1434 callers. Move doc here.
1435 * gdbtypes.c (get_array_bounds): Return bool
1436
1437 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1440 assert.
1441 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1442 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1443 case to the default.
1444
1445 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * printcmd.c: Include 'safe-ctype.c'.
1448 (skip_over_slash_fmt): New function.
1449 (print_command_completer): Call skip_over_slash_fmt.
1450 (display_and_x_command_completer): New function.
1451 (_initialize_printcmd): Add command completion for 'x' and
1452 'display'.
1453
1454 2020-11-16 Pedro Alves <pedro@palves.net>
1455
1456 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1457 (get_prev_frame_always_1): ... to here.
1458 * inline-frame.c (inline_frame_this_id): Mention
1459 get_prev_frame_always_1 in comment.
1460
1461 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1462
1463 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1464 handling.
1465 (value_less): Add fixed-point handling.
1466
1467 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1468
1469 * eval.c (binop_promote): Add fixed-point type handling.
1470 * valarith.c (fixed_point_binop): New function.
1471 (scalar_binop): Add fixed-point type handling.
1472 (value_neg): Add fixed-point type handling.
1473 * valops.c (value_cast_to_fixed_point): New function.
1474 (value_cast): Add fixed-point type handling.
1475
1476 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1477
1478 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1479 range types.
1480 * c-typeprint.c (c_type_print_varspec_prefix)
1481 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1482 TYPE_CODE_FIXED_POINT handling.
1483 * p-typeprint.c (pascal_type_print_varspec_prefix)
1484 (pascal_type_print_varspec_suffix): Likewise.
1485 * typeprint.c (print_type_fixed_point): New function.
1486 * typeprint.h (print_type_fixed_point): Add declaration.
1487
1488 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1489
1490 * printcmd.c (print_scalar_formatted): Add fixed-point type
1491 handling when options->format is set.
1492
1493 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1494
1495 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1496 * dwarf2/read.c (get_dwarf2_rational_constant)
1497 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1498 (has_zero_over_zero_small_attribute): New functions.
1499 read_base_type, set_die_type): Add fixed-point type handling.
1500 * gdb-gdb.py.in: Add fixed-point type handling.
1501 * gdbtypes.c: #include "gmp-utils.h".
1502 (create_range_type, set_type_code): Add fixed-point type handling.
1503 (init_fixed_point_type): New function.
1504 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1505 (print_fixed_point_type_info): New function.
1506 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1507 handling.
1508 (fixed_point_type_storage): New typedef.
1509 (fixed_point_objfile_key): New static global.
1510 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1511 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1512 functions.
1513 * gdbtypes.h: #include "gmp-utils.h".
1514 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1515 (union type_specific) <fixed_point_info>: New field.
1516 (struct fixed_point_type_info): New struct.
1517 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1518 (init_fixed_point_type, is_fixed_point_type)
1519 (fixed_point_type_base_type, fixed_point_scaling_factor)
1520 (allocate_fixed_point_type_info): Add declarations.
1521 * valprint.c (generic_val_print_fixed_point): New function.
1522 (generic_value_print): Add fixed-point type handling.
1523 * value.c (value_as_address, unpack_long): Add fixed-point type
1524 handling.
1525
1526 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1527
1528 * utils.h (uinteger_pow): Add declaration.
1529 * utils.c (uinteger_pow): Moved here (without changes)...
1530 * valarith.c (uinteger_pow): ... from here.
1531
1532 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1533
1534 * gmp-utils.h, gmp-utils.c: New file.
1535 * unittests/gmp-utils-selftests.c: New file.
1536 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1537 unittests/gmp-utils-selftests.c.
1538 (COMMON_SFILES) Add gmp-utils.c.
1539 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1540
1541 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1542
1543 * configure.ac: Generate an error if a usable GMP library
1544 could not be found.
1545 * configure: Regenerate.
1546
1547 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1548
1549 * configure.ac: Add support for --with-libgmp-prefix.
1550 * Makefile.in (LIBGMP): New variable.
1551 (CLIBS): Include $(LIBGMP).
1552 * configure, config.in: Regenerate
1553
1554 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1555
1556 PR cli/26879
1557 * f-exp.y (COMPLETE): New token.
1558 (exp): Two new rules for tab-completion.
1559 (saw_name_at_eof): New static global.
1560 (last_was_structop): Likewise.
1561 (yylex): Set new variables, and return COMPLETE token at the end
1562 of the input stream in some cases.
1563
1564 2020-11-14 Tom Tromey <tom@tromey.com>
1565
1566 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1567
1568 2020-11-14 Tom Tromey <tom@tromey.com>
1569
1570 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1571
1572 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1573
1574 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1575
1576 2020-11-13 Tom Tromey <tom@tromey.com>
1577
1578 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1579 (convert_escape, parse_one_string): Constify.
1580
1581 2020-11-13 Keith Seitz <keiths@redhat.com>
1582
1583 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1584 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1585 outside of ELF segments" warning for debugin
1586
1587 2020-11-13 Keith Seitz <keiths@redhat.com>
1588
1589 PR gdb/23034
1590 * elfread.c (elf_symfile_segments): Output a BFD file name
1591 for the "Loadable section ... outside of ELF segments" warning.
1592
1593 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1594
1595 PR gdb/26835
1596 * arm-tdep.c (class arm_instruction_reader): New.
1597 (target_arm_instruction_reader): New.
1598 (arm_analyze_prologue): Add instruction reader parameter and use
1599 it. Use arm_expand_immediate.
1600 (class target_arm_instruction_reader): Adjust.
1601 (arm_skip_prologue): Adjust.
1602 (arm_expand_immediate): New.
1603 (arm_scan_prologue): Adjust.
1604 (arm_analyze_prologue_test): New.
1605 (class test_arm_instruction_reader): New.
1606
1607 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1608
1609 * f-lang.c (fortran_argument_convert): Add declaration. Add
1610 header comment, taken from f-lang.h. Make static.
1611 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1612 (fortran_argument_convert): Delete declaration.
1613
1614 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * ada-exp.y (find_primitive_type): Make parameter const.
1617 * ada-lang.c (enum ada_primitive_types): Delete.
1618 (ada_language::language_arch_info): Update.
1619 * c-lang.c (enum c_primitive_types): Delete.
1620 (c_language_arch_info): Update.
1621 (enum cplus_primitive_types): Delete.
1622 (cplus_language::language_arch_info): Update.
1623 * d-lang.c (enum d_primitive_types): Delete.
1624 (d_language::language_arch_info): Update.
1625 * f-lang.c (enum f_primitive_types): Delete.
1626 (f_language::language_arch_info): Update.
1627 * go-lang.c (enum go_primitive_types): Delete.
1628 (go_language::language_arch_info): Update.
1629 * language.c (auto_or_unknown_language::language_arch_info):
1630 Update.
1631 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1632 (language_string_char_type): Add header comment, call function in
1633 language_arch_info.
1634 (language_bool_type): Likewise
1635 (language_arch_info::bool_type): Define.
1636 (language_lookup_primitive_type_1): Delete.
1637 (language_lookup_primitive_type): Rewrite as a templated function
1638 to call function in language_arch_info, then instantiate twice.
1639 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1640 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1641 (language_arch_info::lookup_primitive_type): Define twice with
1642 different signatures.
1643 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1644 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1645 member function in language_arch_info.
1646 * language.h (language_arch_info): Complete rewrite.
1647 (language_lookup_primitive_type): Make templated.
1648 * m2-lang.c (enum m2_primitive_types): Delete.
1649 (m2_language::language_arch_info): Update.
1650 * opencl-lang.c (OCL_P_TYPE): Delete.
1651 (enum opencl_primitive_types): Delete.
1652 (opencl_type_data): Delete.
1653 (builtin_opencl_type): Delete.
1654 (lookup_opencl_vector_type): Update.
1655 (opencl_language::language_arch_info): Update, lots of content
1656 moved from...
1657 (build_opencl_types): ...here. This function is now deleted.
1658 (_initialize_opencl_language): Delete.
1659 * p-lang.c (enum pascal_primitive_types): Delete.
1660 (pascal_language::language_arch_info): Update.
1661 * rust-lang.c (enum rust_primitive_types): Delete.
1662 (rust_language::language_arch_info): Update.
1663
1664 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1665
1666 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1667 dwarf2_queue_guard.
1668
1669 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1670
1671 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1672 comment.
1673
1674 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1675
1676 * dwarf2/read.c (dwarf_read_debug_printf,
1677 dwarf_read_debug_printf_v): New macros, use throughout the file.
1678
1679 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1680
1681 PR tdep/27015
1682 * arc-linux-tdep.c (collect_register): Populate "eret" by
1683 "pc" value from the regcache when asked for "pc" value.
1684
1685 2020-11-12 Tom Tromey <tom@tromey.com>
1686
1687 PR rust/26799:
1688 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1689 exist.
1690
1691 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * features/Makefile (XMLTOC): Add rx.xml.
1694 (FEATURE_XMLFILES): Remove rx.xml.
1695 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1696 * features/rx.c: Regenerate.
1697 * features/rx.xml: Wrap in `target` tags, and reindent.
1698 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1699 structure.
1700 (maint_print_c_tdesc_opt_def): New typedef.
1701 (maint_print_c_tdesc_opt_defs): New static global.
1702 (make_maint_print_c_tdesc_options_def_group): New function.
1703 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1704 print single feature C file for target descriptions containing a
1705 single feature.
1706 (maint_print_c_tdesc_cmd_completer): New function.
1707 (_initialize_target_descriptions): Update call to register command
1708 completer, and include command line flag in help text.
1709
1710 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1713 numbers.
1714 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1715 enum values.
1716
1717 2020-11-10 Tom Tromey <tom@tromey.com>
1718
1719 * value.h (internalvar_name): Update.
1720 * value.c (internalvar_name): Make return type const.
1721
1722 2020-11-10 Tom Tromey <tom@tromey.com>
1723
1724 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1725 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1726 const.
1727
1728 2020-11-10 Tom Tromey <tom@tromey.com>
1729
1730 * objc-lang.h (value_nsstring): Update.
1731 * objc-lang.c (value_nsstring): Make "ptr" const.
1732
1733 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * expprint.c (print_subexp_funcall): Increment expression position
1736 after reading argument count.
1737 * f-lang.c (print_subexp_f): Skip over opcode before calling
1738 common function.
1739 (dump_subexp_body_f): Likewise.
1740
1741 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1742
1743 PR python/26832
1744 * configure: Regenerate.
1745 * configure.ac: Check for python modules ctypes instead of
1746 itertools.
1747
1748 2020-11-06 Pedro Alves <pedro@palves.net>
1749
1750 * macroexp.c (struct macro_buffer): Split in two classes. Add
1751 uses adjusted.
1752 (struct shared_macro_buffer): New, factored out from struct
1753 macro_buffer.
1754 (struct growable_macro_buffer): New, factored out from struct
1755 macro_buffer.
1756 (set_token, get_comment, get_identifier, get_pp_number)
1757 (get_character_constant, get_string_literal, get_punctuator)
1758 (get_next_token_for_substitution): Constify parameters.
1759 (substitute_args): Constify locals.
1760
1761 2020-11-05 Tom Tromey <tom@tromey.com>
1762
1763 * dwarf2/read.c (read_cutu_die_from_dwo)
1764 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1765 (build_type_psymtabs_1): Update.
1766 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1767 parameter.
1768 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1769 Don't read section. Add assert.
1770
1771 2020-11-04 Tom Tromey <tromey@adacore.com>
1772
1773 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1774
1775 2020-11-04 Tom Tromey <tromey@adacore.com>
1776
1777 * ada-typeprint.c (ada_print_type): Handle __T types.
1778
1779 2020-11-04 Tom Tromey <tromey@adacore.com>
1780
1781 * dwarf2/read.c (add_partial_symbol, process_die):
1782 Handle DW_TAG_array_type.
1783 (is_type_tag_for_partial): Add "lang" parameter.
1784 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1785
1786 2020-11-04 Tom Tromey <tromey@adacore.com>
1787
1788 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1789
1790 2020-11-04 Tom Tromey <tromey@adacore.com>
1791
1792 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1793 array.
1794
1795 2020-11-04 Tom Tromey <tromey@adacore.com>
1796
1797 * gdbtypes.c (update_static_array_size): Handle bit stride.
1798
1799 2020-11-04 Tom Tromey <tromey@adacore.com>
1800
1801 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1802
1803 2020-11-04 Tom Tromey <tromey@adacore.com>
1804
1805 * ada-lang.c (ada_is_any_packed_array_type): New function.
1806 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1807
1808 2020-11-04 Tom Tromey <tromey@adacore.com>
1809
1810 * dwarf2/read.c (recognize_bound_expression)
1811 (quirk_ada_thick_pointer): New functions.
1812 (read_array_type): Call quirk_ada_thick_pointer.
1813 (set_die_type): Add "skip_data_location" parameter.
1814 (quirk_ada_thick_pointer): New function.
1815 (process_structure_scope): Call quirk_ada_thick_pointer.
1816 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1817 (decode_packed_array_bitsize): Handle thick pointers without
1818 parallel types.
1819 (ada_is_gnat_encoded_packed_array_type): Rename from
1820 ada_is_packed_array_type.
1821 (ada_is_constrained_packed_array_type): Update.
1822 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1823 (ada_value_print_1): Use ada_get_decoded_value.
1824
1825 2020-11-04 Tom Tromey <tromey@adacore.com>
1826
1827 * ada-lang.c (recursively_update_array_bitsize): New function.
1828 (decode_constrained_packed_array_type): Call it.
1829
1830 2020-11-04 Tom Tromey <tromey@adacore.com>
1831
1832 * ada-lang.c (to_fixed_array_type): Error if
1833 decode_constrained_packed_array_type returns NULL.
1834
1835 2020-11-04 Tom Tromey <tromey@adacore.com>
1836
1837 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1838
1839 2020-11-02 Tom Tromey <tromey@adacore.com>
1840
1841 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1842 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1843 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1844 * amd64-ravenscar-thread.c: New file.
1845 * amd64-ravenscar-thread.h: New file.
1846 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1847 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1848
1849 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * main.c (execute_cmdargs): New function.
1852 (captured_main_1): Make use of execute_cmdargs.
1853
1854 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * NEWS: Mention changes to config file search path.
1857 * main.c
1858
1859 2020-11-02 Tom Tromey <tromey@adacore.com>
1860
1861 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1862 (python_GdbModuleDef): Move earlier. Now static.
1863 (do_start_initialization): Consolidate some IS_PY3K blocks.
1864
1865 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * aarch64-linux-tdep.c: Fix indentation.
1868 * aarch64-ravenscar-thread.c: Fix indentation.
1869 * aarch64-tdep.c: Fix indentation.
1870 * aarch64-tdep.h: Fix indentation.
1871 * ada-lang.c: Fix indentation.
1872 * ada-lang.h: Fix indentation.
1873 * ada-tasks.c: Fix indentation.
1874 * ada-typeprint.c: Fix indentation.
1875 * ada-valprint.c: Fix indentation.
1876 * ada-varobj.c: Fix indentation.
1877 * addrmap.c: Fix indentation.
1878 * addrmap.h: Fix indentation.
1879 * agent.c: Fix indentation.
1880 * aix-thread.c: Fix indentation.
1881 * alpha-bsd-nat.c: Fix indentation.
1882 * alpha-linux-tdep.c: Fix indentation.
1883 * alpha-mdebug-tdep.c: Fix indentation.
1884 * alpha-nbsd-tdep.c: Fix indentation.
1885 * alpha-obsd-tdep.c: Fix indentation.
1886 * alpha-tdep.c: Fix indentation.
1887 * amd64-bsd-nat.c: Fix indentation.
1888 * amd64-darwin-tdep.c: Fix indentation.
1889 * amd64-linux-nat.c: Fix indentation.
1890 * amd64-linux-tdep.c: Fix indentation.
1891 * amd64-nat.c: Fix indentation.
1892 * amd64-obsd-tdep.c: Fix indentation.
1893 * amd64-tdep.c: Fix indentation.
1894 * amd64-windows-tdep.c: Fix indentation.
1895 * annotate.c: Fix indentation.
1896 * arc-tdep.c: Fix indentation.
1897 * arch-utils.c: Fix indentation.
1898 * arch/arm-get-next-pcs.c: Fix indentation.
1899 * arch/arm.c: Fix indentation.
1900 * arm-linux-nat.c: Fix indentation.
1901 * arm-linux-tdep.c: Fix indentation.
1902 * arm-nbsd-tdep.c: Fix indentation.
1903 * arm-pikeos-tdep.c: Fix indentation.
1904 * arm-tdep.c: Fix indentation.
1905 * arm-tdep.h: Fix indentation.
1906 * arm-wince-tdep.c: Fix indentation.
1907 * auto-load.c: Fix indentation.
1908 * auxv.c: Fix indentation.
1909 * avr-tdep.c: Fix indentation.
1910 * ax-gdb.c: Fix indentation.
1911 * ax-general.c: Fix indentation.
1912 * bfin-linux-tdep.c: Fix indentation.
1913 * block.c: Fix indentation.
1914 * block.h: Fix indentation.
1915 * blockframe.c: Fix indentation.
1916 * bpf-tdep.c: Fix indentation.
1917 * break-catch-sig.c: Fix indentation.
1918 * break-catch-syscall.c: Fix indentation.
1919 * break-catch-throw.c: Fix indentation.
1920 * breakpoint.c: Fix indentation.
1921 * breakpoint.h: Fix indentation.
1922 * bsd-uthread.c: Fix indentation.
1923 * btrace.c: Fix indentation.
1924 * build-id.c: Fix indentation.
1925 * buildsym-legacy.h: Fix indentation.
1926 * buildsym.c: Fix indentation.
1927 * c-typeprint.c: Fix indentation.
1928 * c-valprint.c: Fix indentation.
1929 * c-varobj.c: Fix indentation.
1930 * charset.c: Fix indentation.
1931 * cli/cli-cmds.c: Fix indentation.
1932 * cli/cli-decode.c: Fix indentation.
1933 * cli/cli-decode.h: Fix indentation.
1934 * cli/cli-script.c: Fix indentation.
1935 * cli/cli-setshow.c: Fix indentation.
1936 * coff-pe-read.c: Fix indentation.
1937 * coffread.c: Fix indentation.
1938 * compile/compile-cplus-types.c: Fix indentation.
1939 * compile/compile-object-load.c: Fix indentation.
1940 * compile/compile-object-run.c: Fix indentation.
1941 * completer.c: Fix indentation.
1942 * corefile.c: Fix indentation.
1943 * corelow.c: Fix indentation.
1944 * cp-abi.h: Fix indentation.
1945 * cp-namespace.c: Fix indentation.
1946 * cp-support.c: Fix indentation.
1947 * cp-valprint.c: Fix indentation.
1948 * cris-linux-tdep.c: Fix indentation.
1949 * cris-tdep.c: Fix indentation.
1950 * darwin-nat-info.c: Fix indentation.
1951 * darwin-nat.c: Fix indentation.
1952 * darwin-nat.h: Fix indentation.
1953 * dbxread.c: Fix indentation.
1954 * dcache.c: Fix indentation.
1955 * disasm.c: Fix indentation.
1956 * dtrace-probe.c: Fix indentation.
1957 * dwarf2/abbrev.c: Fix indentation.
1958 * dwarf2/attribute.c: Fix indentation.
1959 * dwarf2/expr.c: Fix indentation.
1960 * dwarf2/frame.c: Fix indentation.
1961 * dwarf2/index-cache.c: Fix indentation.
1962 * dwarf2/index-write.c: Fix indentation.
1963 * dwarf2/line-header.c: Fix indentation.
1964 * dwarf2/loc.c: Fix indentation.
1965 * dwarf2/macro.c: Fix indentation.
1966 * dwarf2/read.c: Fix indentation.
1967 * dwarf2/read.h: Fix indentation.
1968 * elfread.c: Fix indentation.
1969 * eval.c: Fix indentation.
1970 * event-top.c: Fix indentation.
1971 * exec.c: Fix indentation.
1972 * exec.h: Fix indentation.
1973 * expprint.c: Fix indentation.
1974 * f-lang.c: Fix indentation.
1975 * f-typeprint.c: Fix indentation.
1976 * f-valprint.c: Fix indentation.
1977 * fbsd-nat.c: Fix indentation.
1978 * fbsd-tdep.c: Fix indentation.
1979 * findvar.c: Fix indentation.
1980 * fork-child.c: Fix indentation.
1981 * frame-unwind.c: Fix indentation.
1982 * frame-unwind.h: Fix indentation.
1983 * frame.c: Fix indentation.
1984 * frv-linux-tdep.c: Fix indentation.
1985 * frv-tdep.c: Fix indentation.
1986 * frv-tdep.h: Fix indentation.
1987 * ft32-tdep.c: Fix indentation.
1988 * gcore.c: Fix indentation.
1989 * gdb_bfd.c: Fix indentation.
1990 * gdbarch.sh: Fix indentation.
1991 * gdbarch.c: Re-generate
1992 * gdbarch.h: Re-generate.
1993 * gdbcore.h: Fix indentation.
1994 * gdbthread.h: Fix indentation.
1995 * gdbtypes.c: Fix indentation.
1996 * gdbtypes.h: Fix indentation.
1997 * glibc-tdep.c: Fix indentation.
1998 * gnu-nat.c: Fix indentation.
1999 * gnu-nat.h: Fix indentation.
2000 * gnu-v2-abi.c: Fix indentation.
2001 * gnu-v3-abi.c: Fix indentation.
2002 * go32-nat.c: Fix indentation.
2003 * guile/guile-internal.h: Fix indentation.
2004 * guile/scm-cmd.c: Fix indentation.
2005 * guile/scm-frame.c: Fix indentation.
2006 * guile/scm-iterator.c: Fix indentation.
2007 * guile/scm-math.c: Fix indentation.
2008 * guile/scm-ports.c: Fix indentation.
2009 * guile/scm-pretty-print.c: Fix indentation.
2010 * guile/scm-value.c: Fix indentation.
2011 * h8300-tdep.c: Fix indentation.
2012 * hppa-linux-nat.c: Fix indentation.
2013 * hppa-linux-tdep.c: Fix indentation.
2014 * hppa-nbsd-nat.c: Fix indentation.
2015 * hppa-nbsd-tdep.c: Fix indentation.
2016 * hppa-obsd-nat.c: Fix indentation.
2017 * hppa-tdep.c: Fix indentation.
2018 * hppa-tdep.h: Fix indentation.
2019 * i386-bsd-nat.c: Fix indentation.
2020 * i386-darwin-nat.c: Fix indentation.
2021 * i386-darwin-tdep.c: Fix indentation.
2022 * i386-dicos-tdep.c: Fix indentation.
2023 * i386-gnu-nat.c: Fix indentation.
2024 * i386-linux-nat.c: Fix indentation.
2025 * i386-linux-tdep.c: Fix indentation.
2026 * i386-nto-tdep.c: Fix indentation.
2027 * i386-obsd-tdep.c: Fix indentation.
2028 * i386-sol2-nat.c: Fix indentation.
2029 * i386-tdep.c: Fix indentation.
2030 * i386-tdep.h: Fix indentation.
2031 * i386-windows-tdep.c: Fix indentation.
2032 * i387-tdep.c: Fix indentation.
2033 * i387-tdep.h: Fix indentation.
2034 * ia64-libunwind-tdep.c: Fix indentation.
2035 * ia64-libunwind-tdep.h: Fix indentation.
2036 * ia64-linux-nat.c: Fix indentation.
2037 * ia64-linux-tdep.c: Fix indentation.
2038 * ia64-tdep.c: Fix indentation.
2039 * ia64-tdep.h: Fix indentation.
2040 * ia64-vms-tdep.c: Fix indentation.
2041 * infcall.c: Fix indentation.
2042 * infcmd.c: Fix indentation.
2043 * inferior.c: Fix indentation.
2044 * infrun.c: Fix indentation.
2045 * iq2000-tdep.c: Fix indentation.
2046 * language.c: Fix indentation.
2047 * linespec.c: Fix indentation.
2048 * linux-fork.c: Fix indentation.
2049 * linux-nat.c: Fix indentation.
2050 * linux-tdep.c: Fix indentation.
2051 * linux-thread-db.c: Fix indentation.
2052 * lm32-tdep.c: Fix indentation.
2053 * m2-lang.c: Fix indentation.
2054 * m2-typeprint.c: Fix indentation.
2055 * m2-valprint.c: Fix indentation.
2056 * m32c-tdep.c: Fix indentation.
2057 * m32r-linux-tdep.c: Fix indentation.
2058 * m32r-tdep.c: Fix indentation.
2059 * m68hc11-tdep.c: Fix indentation.
2060 * m68k-bsd-nat.c: Fix indentation.
2061 * m68k-linux-nat.c: Fix indentation.
2062 * m68k-linux-tdep.c: Fix indentation.
2063 * m68k-tdep.c: Fix indentation.
2064 * machoread.c: Fix indentation.
2065 * macrocmd.c: Fix indentation.
2066 * macroexp.c: Fix indentation.
2067 * macroscope.c: Fix indentation.
2068 * macrotab.c: Fix indentation.
2069 * macrotab.h: Fix indentation.
2070 * main.c: Fix indentation.
2071 * mdebugread.c: Fix indentation.
2072 * mep-tdep.c: Fix indentation.
2073 * mi/mi-cmd-catch.c: Fix indentation.
2074 * mi/mi-cmd-disas.c: Fix indentation.
2075 * mi/mi-cmd-env.c: Fix indentation.
2076 * mi/mi-cmd-stack.c: Fix indentation.
2077 * mi/mi-cmd-var.c: Fix indentation.
2078 * mi/mi-cmds.c: Fix indentation.
2079 * mi/mi-main.c: Fix indentation.
2080 * mi/mi-parse.c: Fix indentation.
2081 * microblaze-tdep.c: Fix indentation.
2082 * minidebug.c: Fix indentation.
2083 * minsyms.c: Fix indentation.
2084 * mips-linux-nat.c: Fix indentation.
2085 * mips-linux-tdep.c: Fix indentation.
2086 * mips-nbsd-tdep.c: Fix indentation.
2087 * mips-tdep.c: Fix indentation.
2088 * mn10300-linux-tdep.c: Fix indentation.
2089 * mn10300-tdep.c: Fix indentation.
2090 * moxie-tdep.c: Fix indentation.
2091 * msp430-tdep.c: Fix indentation.
2092 * namespace.h: Fix indentation.
2093 * nat/fork-inferior.c: Fix indentation.
2094 * nat/gdb_ptrace.h: Fix indentation.
2095 * nat/linux-namespaces.c: Fix indentation.
2096 * nat/linux-osdata.c: Fix indentation.
2097 * nat/netbsd-nat.c: Fix indentation.
2098 * nat/x86-dregs.c: Fix indentation.
2099 * nbsd-nat.c: Fix indentation.
2100 * nbsd-tdep.c: Fix indentation.
2101 * nios2-linux-tdep.c: Fix indentation.
2102 * nios2-tdep.c: Fix indentation.
2103 * nto-procfs.c: Fix indentation.
2104 * nto-tdep.c: Fix indentation.
2105 * objfiles.c: Fix indentation.
2106 * objfiles.h: Fix indentation.
2107 * opencl-lang.c: Fix indentation.
2108 * or1k-tdep.c: Fix indentation.
2109 * osabi.c: Fix indentation.
2110 * osabi.h: Fix indentation.
2111 * osdata.c: Fix indentation.
2112 * p-lang.c: Fix indentation.
2113 * p-typeprint.c: Fix indentation.
2114 * p-valprint.c: Fix indentation.
2115 * parse.c: Fix indentation.
2116 * ppc-linux-nat.c: Fix indentation.
2117 * ppc-linux-tdep.c: Fix indentation.
2118 * ppc-nbsd-nat.c: Fix indentation.
2119 * ppc-nbsd-tdep.c: Fix indentation.
2120 * ppc-obsd-nat.c: Fix indentation.
2121 * ppc-ravenscar-thread.c: Fix indentation.
2122 * ppc-sysv-tdep.c: Fix indentation.
2123 * ppc64-tdep.c: Fix indentation.
2124 * printcmd.c: Fix indentation.
2125 * proc-api.c: Fix indentation.
2126 * producer.c: Fix indentation.
2127 * producer.h: Fix indentation.
2128 * prologue-value.c: Fix indentation.
2129 * prologue-value.h: Fix indentation.
2130 * psymtab.c: Fix indentation.
2131 * python/py-arch.c: Fix indentation.
2132 * python/py-bpevent.c: Fix indentation.
2133 * python/py-event.c: Fix indentation.
2134 * python/py-event.h: Fix indentation.
2135 * python/py-finishbreakpoint.c: Fix indentation.
2136 * python/py-frame.c: Fix indentation.
2137 * python/py-framefilter.c: Fix indentation.
2138 * python/py-inferior.c: Fix indentation.
2139 * python/py-infthread.c: Fix indentation.
2140 * python/py-objfile.c: Fix indentation.
2141 * python/py-prettyprint.c: Fix indentation.
2142 * python/py-registers.c: Fix indentation.
2143 * python/py-signalevent.c: Fix indentation.
2144 * python/py-stopevent.c: Fix indentation.
2145 * python/py-stopevent.h: Fix indentation.
2146 * python/py-threadevent.c: Fix indentation.
2147 * python/py-tui.c: Fix indentation.
2148 * python/py-unwind.c: Fix indentation.
2149 * python/py-value.c: Fix indentation.
2150 * python/py-xmethods.c: Fix indentation.
2151 * python/python-internal.h: Fix indentation.
2152 * python/python.c: Fix indentation.
2153 * ravenscar-thread.c: Fix indentation.
2154 * record-btrace.c: Fix indentation.
2155 * record-full.c: Fix indentation.
2156 * record.c: Fix indentation.
2157 * reggroups.c: Fix indentation.
2158 * regset.h: Fix indentation.
2159 * remote-fileio.c: Fix indentation.
2160 * remote.c: Fix indentation.
2161 * reverse.c: Fix indentation.
2162 * riscv-linux-tdep.c: Fix indentation.
2163 * riscv-ravenscar-thread.c: Fix indentation.
2164 * riscv-tdep.c: Fix indentation.
2165 * rl78-tdep.c: Fix indentation.
2166 * rs6000-aix-tdep.c: Fix indentation.
2167 * rs6000-lynx178-tdep.c: Fix indentation.
2168 * rs6000-nat.c: Fix indentation.
2169 * rs6000-tdep.c: Fix indentation.
2170 * rust-lang.c: Fix indentation.
2171 * rx-tdep.c: Fix indentation.
2172 * s12z-tdep.c: Fix indentation.
2173 * s390-linux-tdep.c: Fix indentation.
2174 * score-tdep.c: Fix indentation.
2175 * ser-base.c: Fix indentation.
2176 * ser-mingw.c: Fix indentation.
2177 * ser-uds.c: Fix indentation.
2178 * ser-unix.c: Fix indentation.
2179 * serial.c: Fix indentation.
2180 * sh-linux-tdep.c: Fix indentation.
2181 * sh-nbsd-tdep.c: Fix indentation.
2182 * sh-tdep.c: Fix indentation.
2183 * skip.c: Fix indentation.
2184 * sol-thread.c: Fix indentation.
2185 * solib-aix.c: Fix indentation.
2186 * solib-darwin.c: Fix indentation.
2187 * solib-frv.c: Fix indentation.
2188 * solib-svr4.c: Fix indentation.
2189 * solib.c: Fix indentation.
2190 * source.c: Fix indentation.
2191 * sparc-linux-tdep.c: Fix indentation.
2192 * sparc-nbsd-tdep.c: Fix indentation.
2193 * sparc-obsd-tdep.c: Fix indentation.
2194 * sparc-ravenscar-thread.c: Fix indentation.
2195 * sparc-tdep.c: Fix indentation.
2196 * sparc64-linux-tdep.c: Fix indentation.
2197 * sparc64-nbsd-tdep.c: Fix indentation.
2198 * sparc64-obsd-tdep.c: Fix indentation.
2199 * sparc64-tdep.c: Fix indentation.
2200 * stabsread.c: Fix indentation.
2201 * stack.c: Fix indentation.
2202 * stap-probe.c: Fix indentation.
2203 * stubs/ia64vms-stub.c: Fix indentation.
2204 * stubs/m32r-stub.c: Fix indentation.
2205 * stubs/m68k-stub.c: Fix indentation.
2206 * stubs/sh-stub.c: Fix indentation.
2207 * stubs/sparc-stub.c: Fix indentation.
2208 * symfile-mem.c: Fix indentation.
2209 * symfile.c: Fix indentation.
2210 * symfile.h: Fix indentation.
2211 * symmisc.c: Fix indentation.
2212 * symtab.c: Fix indentation.
2213 * symtab.h: Fix indentation.
2214 * target-float.c: Fix indentation.
2215 * target.c: Fix indentation.
2216 * target.h: Fix indentation.
2217 * tic6x-tdep.c: Fix indentation.
2218 * tilegx-linux-tdep.c: Fix indentation.
2219 * tilegx-tdep.c: Fix indentation.
2220 * top.c: Fix indentation.
2221 * tracefile-tfile.c: Fix indentation.
2222 * tracepoint.c: Fix indentation.
2223 * tui/tui-disasm.c: Fix indentation.
2224 * tui/tui-io.c: Fix indentation.
2225 * tui/tui-regs.c: Fix indentation.
2226 * tui/tui-stack.c: Fix indentation.
2227 * tui/tui-win.c: Fix indentation.
2228 * tui/tui-winsource.c: Fix indentation.
2229 * tui/tui.c: Fix indentation.
2230 * typeprint.c: Fix indentation.
2231 * ui-out.h: Fix indentation.
2232 * unittests/copy_bitwise-selftests.c: Fix indentation.
2233 * unittests/memory-map-selftests.c: Fix indentation.
2234 * utils.c: Fix indentation.
2235 * v850-tdep.c: Fix indentation.
2236 * valarith.c: Fix indentation.
2237 * valops.c: Fix indentation.
2238 * valprint.c: Fix indentation.
2239 * valprint.h: Fix indentation.
2240 * value.c: Fix indentation.
2241 * value.h: Fix indentation.
2242 * varobj.c: Fix indentation.
2243 * vax-tdep.c: Fix indentation.
2244 * windows-nat.c: Fix indentation.
2245 * windows-tdep.c: Fix indentation.
2246 * xcoffread.c: Fix indentation.
2247 * xml-syscall.c: Fix indentation.
2248 * xml-tdesc.c: Fix indentation.
2249 * xstormy16-tdep.c: Fix indentation.
2250 * xtensa-config.c: Fix indentation.
2251 * xtensa-linux-nat.c: Fix indentation.
2252 * xtensa-linux-tdep.c: Fix indentation.
2253 * xtensa-tdep.c: Fix indentation.
2254
2255 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2256 Craig Blackmore <craig.blackmore@embecosm.com>
2257
2258 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2259 as an unsigned value.
2260
2261 2020-11-01 Tom Tromey <tom@tromey.com>
2262
2263 * dbxread.c (dbx_end_psymtab): Update.
2264 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2265 (build_type_psymtabs_reader): Update.
2266 * xcoffread.c (xcoff_end_psymtab): Update.
2267 * ctfread.c (scan_partial_symbols): Update.
2268 * psymtab.c (sort_pst_symbols): Remove.
2269 (partial_symtab::end): Rename from end_psymtab_common. Inline
2270 sort_pst_symbols.
2271 * psympriv.h (struct partial_symtab) <end>: New method.
2272 (end_psymtab_common): Don't declare.
2273
2274 2020-11-01 Tom Tromey <tom@tromey.com>
2275
2276 * symmisc.c (count_psyms): New function.
2277 (print_objfile_statistics): Use it.
2278 * psymtab.c (append_psymbol_to_list): Remove.
2279 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2280 * objfiles.h (struct objstats) <n_psyms>: Remove.
2281
2282 2020-11-01 Tom Tromey <tom@tromey.com>
2283
2284 * dbxread.c (dbx_end_psymtab): Update.
2285 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2286 (build_type_psymtabs_reader): Update.
2287 * xcoffread.c (xcoff_end_psymtab): Update.
2288 * ctfread.c (scan_partial_symbols): Update.
2289 * psympriv.h (end_psymtab_common): Update.
2290 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2291 (sort_pst_symbols): Likewise.
2292
2293 2020-11-01 Tom Tromey <tom@tromey.com>
2294
2295 * dbxread.c (dbx_symfile_read): Update.
2296 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2297 * xcoffread.c (xcoff_initial_scan): Update.
2298 * psympriv.h (init_psymbol_list): Don't declare.
2299 * psymtab.c (init_psymbol_list): Remove.
2300
2301 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2302
2303 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2304 gnat_encoded_fixed_type_info. Update all callers.
2305
2306 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2307
2308 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2309 line too long.
2310
2311 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2312
2313 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2314 cast_from_fixed. Update all callers.
2315 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2316 Update all callers.
2317 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2318 Update all callers.
2319 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2320 ada_scaling_factor.
2321 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2322 to print_gnat_encoded_fixed_point_type.
2323 * ada-valprint.c: Likewise.
2324
2325 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2326
2327 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2328 (debug_prefixed_printf): Add check of debug_displaced flag.
2329 * linux-nat.c (linux_nat_debug_printf): Add check of
2330 debug_linux_nat flag.
2331
2332 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2333
2334 * infrun.c (infrun_debug_printf_1): Remove.
2335 (displaced_debug_printf_1): Remove.
2336 (stop_all_threads): Use debug_prefixed_printf.
2337 * infrun.h (infrun_debug_printf_1): Remove.
2338 (infrun_debug_printf): Use debug_prefixed_printf.
2339 (displaced_debug_printf_1): Remove.
2340 (displaced_debug_printf): Use debug_prefixed_printf.
2341 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2342 (linux_nat_debug_printf): Use debug_prefixed_printf.
2343
2344 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * configure: Re-generate.
2347 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2348 AC_LANG_PROGRAM.
2349
2350 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2351
2352 * configure: Re-generate.
2353
2354 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2355
2356 * configure: Re-generate.
2357
2358 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * configure: Re-generate.
2361
2362 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2363
2364 * configure: Re-generate.
2365
2366 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2367
2368 * acinclude.m4: Modernize.
2369 * configure: Re-generate.
2370
2371 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * configure.ac: Modernize.
2374 * configure: Re-generate.
2375
2376 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2377
2378 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2379 * configure: Re-generate.
2380 * configure.ac: Remove AM_PROG_CC_STDC.
2381
2382 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2385 AC_CANONICAL_SYSTEM.
2386 * configure: Re-generate.
2387
2388 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * infrun.h (displaced_debug_printf): New macro. Replace
2391 displaced debug prints throughout to use it.
2392 (displaced_debug_printf_1): New declaration.
2393 (displaced_step_dump_bytes): Return string, remove ui_file
2394 parameter, update all callers.
2395 * infrun.c (displaced_debug_printf_1): New function.
2396 (displaced_step_dump_bytes): Return string, remove ui_file
2397 parameter
2398
2399 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2400
2401 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2402
2403 2020-10-30 Tom Tromey <tromey@adacore.com>
2404
2405 * Makefile.in (stamp-init): Depend on config.status.
2406
2407 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2408
2409 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2410
2411 2020-10-30 Pedro Alves <pedro@palves.net>
2412
2413 * thread.c (lookup_selected_frame): Move ...
2414 * frame.c (lookup_selected_frame): ... here.
2415
2416 2020-10-30 Pedro Alves <pedro@palves.net>
2417
2418 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2419 * frame.c
2420 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2421 Use save_selected_frame. Save language as well.
2422 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2423 Use restore_selected_frame, and restore language as well.
2424 (selected_frame_id, selected_frame_level): New.
2425 (selected_frame): Update comments.
2426 (save_selected_frame, restore_selected_frame): New.
2427 (get_selected_frame): Use lookup_selected_frame.
2428 (get_selected_frame_if_set): Delete.
2429 (select_frame): Record selected_frame_level and selected_frame_id.
2430 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2431 fields.
2432 (get_selected_frame): Make 'message' parameter optional.
2433 (get_selected_frame_if_set): Delete declaration.
2434 (select_frame): Update comments.
2435 (save_selected_frame, restore_selected_frame)
2436 (lookup_selected_frame): Declare.
2437 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2438 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2439 New field.
2440 (save_infcall_control_state): Use save_selected_frame.
2441 (restore_selected_frame): Delete.
2442 (restore_infcall_control_state): Use restore_selected_frame.
2443 * stack.c (select_frame_command_core, frame_command_core): Use
2444 get_selected_frame.
2445 * thread.c (restore_selected_frame): Rename to ...
2446 (lookup_selected_frame): ... this and make extern. Select the
2447 current frame if the frame level is -1.
2448 (scoped_restore_current_thread::restore): Also restore the
2449 language.
2450 (scoped_restore_current_thread::~scoped_restore_current_thread):
2451 Don't try/catch.
2452 (scoped_restore_current_thread::scoped_restore_current_thread):
2453 Save the language as well. Use save_selected_frame.
2454
2455 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2458 documentation.
2459 * gdbarch.h: Re-generate.
2460
2461 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2462
2463 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2464 parameter.
2465 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2466 Likewise.
2467 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2468 Likewise.
2469 * arch-utils.c (default_displaced_step_hw_singlestep):
2470 Likewise.
2471 * arch-utils.h (default_displaced_step_hw_singlestep):
2472 Likewise.
2473 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2474 Likewise.
2475 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2476 Likewise.
2477 * gdbarch.c: Re-generate.
2478 * gdbarch.h: Re-generate.
2479 * infrun.c (resume_1): Adjust.
2480
2481 2020-10-29 Tom Tromey <tom@tromey.com>
2482
2483 * progspace.c (program_space::~program_space): Don't call
2484 exec_close.
2485
2486 2020-10-29 Tom Tromey <tom@tromey.com>
2487
2488 * exec.c (exec_target::close): Don't change current program
2489 space.
2490
2491 2020-10-29 Tom Tromey <tom@tromey.com>
2492
2493 * symfile.c (add_symbol_file_command): Update.
2494 * exec.c (program_space::add_target_sections): Rename.
2495 * symfile-mem.c (symbol_file_add_from_memory): Update.
2496 * progspace.h (struct program_space) <add_target_sections>:
2497 Declare new overload.
2498 * exec.h (add_target_sections_of_objfile): Don't declare.
2499
2500 2020-10-29 Tom Tromey <tom@tromey.com>
2501
2502 * solib.c (solib_map_sections): Update.
2503 * exec.c (program_space::add_target_sections): Now a method.
2504 (exec_file_attach): Update.
2505 * exec.h (add_target_sections): Don't declare.
2506 * progspace.h (struct program_space) <add_target_sections>:
2507 Declare.
2508
2509 2020-10-29 Tom Tromey <tom@tromey.com>
2510
2511 * progspace.h (struct program_space) <remove_target_sections>:
2512 Declare.
2513 * exec.c (program_space::remove_target_sections): Now a method.
2514 * exec.h (remove_target_sections): Don't declare.
2515
2516 2020-10-29 Tom Tromey <tom@tromey.com>
2517
2518 * inferior.c (delete_inferior): Update.
2519 * progspace.c (program_space::empty): Rename from
2520 program_space_empty_p. Return bool.
2521 * progspace.h (struct program_space) <empty>: New method.
2522 (program_space_empty_p): Don't declare.
2523
2524 2020-10-29 Tom Tromey <tom@tromey.com>
2525
2526 * progspace.c (program_space::~program_space): Don't call
2527 clear_program_space_solib_cache.
2528 (program_space::clear_solib_cache): Rename from
2529 clear_solib_cache.
2530 * solib.c (handle_solib_event): Update.
2531 * progspace.h (struct program_space) <clear_solib_cache>: New
2532 method.
2533 (clear_program_space_solib_cache): Don't declare.
2534
2535 2020-10-29 Tom Tromey <tom@tromey.com>
2536
2537 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2538 * target.c (info_target_command): Update.
2539 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2540 (symbol_file_clear, reread_symbols): Update.
2541 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2542 * stabsread.c (scan_file_globals): Update.
2543 * solib.c (update_solib_list): Update.
2544 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2545 (svr4_fetch_objfile_link_map, enable_break)
2546 (svr4_relocate_main_executable)
2547 (svr4_iterate_over_objfiles_in_search_order): Update.
2548 * solib-frv.c (lm_base, enable_break)
2549 (frv_relocate_main_executable): Update.
2550 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2551 (frv_fetch_objfile_link_map): Update.
2552 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2553 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2554 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2555 * remote.c (remote_target::get_offsets): Update.
2556 (remote_target::start_remote)
2557 (extended_remote_target::post_attach): Update.
2558 * objfiles.c (entry_point_address_query): Update.
2559 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2560 * minsyms.c (get_symbol_leading_char): Update.
2561 * frame.c (inside_main_func): Update.
2562 * progspace.h (symfile_objfile): Remove macro.
2563
2564 2020-10-29 Tom Tromey <tom@tromey.com>
2565
2566 * exec.c (exec_file_attach): Update.
2567 * progspace.c (program_space::exec_close): Update.
2568 * progspace.h (struct program_space) <ebfd>: Now a
2569 gdb_bfd_ref_ptr.
2570 <set_exec_bfd>: Change argument type.
2571 <exec_bfd>: Update.
2572
2573 2020-10-29 Tom Tromey <tom@tromey.com>
2574
2575 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2576 * symfile.c (reread_symbols): Update.
2577 * symfile-mem.c (add_symbol_file_from_memory_command)
2578 (add_vsyscall_page): Update.
2579 * source-cache.c (source_cache::get_plain_source_lines): Update.
2580 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2581 (svr4_current_sos_direct, svr4_exec_displacement)
2582 (svr4_relocate_main_executable): Update.
2583 (svr4_iterate_over_objfiles_in_search_order): Update.
2584 * solib-frv.c (enable_break2, enable_break): Update.
2585 * solib-dsbt.c (lm_base, enable_break): Update.
2586 * solib-darwin.c (find_program_interpreter)
2587 (darwin_solib_create_inferior_hook): Update.
2588 * sol-thread.c (rw_common, ps_pdmodel): Update.
2589 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2590 * remote.c (compare_sections_command)
2591 (remote_target::trace_set_readonly_regions): Update.
2592 * remote-sim.c (get_sim_inferior_data)
2593 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2594 (gdbsim_target_open, gdbsim_target::files_info): Update.
2595 * exec.h (exec_bfd): Remove macro.
2596 * progspace.c (initialize_progspace): Update.
2597 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2598 Update.
2599 * nto-procfs.c (nto_procfs_target::post_attach)
2600 (nto_procfs_target::create_inferior): Update.
2601 * maint.c (maintenance_info_sections): Update.
2602 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2603 Update.
2604 * infcmd.c (post_create_inferior): Update.
2605 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2606 (objfile_find_memory_regions): Update.
2607 * exec.c (validate_exec_file, exec_file_attach)
2608 (exec_read_partial_read_only, print_section_info): Update.
2609 * corelow.c (core_target_open): Update.
2610 * corefile.c (reopen_exec_file, validate_files): Update.
2611 * arm-tdep.c (gdb_print_insn_arm): Update.
2612 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2613 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2614 methods.
2615
2616 2020-10-29 Tom Tromey <tom@tromey.com>
2617
2618 * progspace.h (current_target_sections): Remove macro.
2619 * solib-svr4.c (scan_dyntag): Update.
2620 * solib-dsbt.c (scan_dyntag): Update.
2621 * exec.c (exec_target::close): Update.
2622 (add_target_sections, add_target_sections_of_objfile)
2623 (remove_target_sections, exec_target::get_section_table)
2624 (exec_target::files_info, set_section_command)
2625 (exec_set_section_address, exec_target::has_memory)
2626 (exec_target::has_memory): Update.
2627
2628 2020-10-29 Tom Tromey <tom@tromey.com>
2629
2630 * source-cache.c (source_cache::get_plain_source_lines): Use
2631 current_program_space.
2632 * corefile.c (reopen_exec_file): Use current_program_space.
2633 * exec.c (exec_file_attach): Use current_program_space.
2634 * exec.h (exec_bfd_mtime): Remove.
2635
2636 2020-10-29 Tom Tromey <tom@tromey.com>
2637
2638 * gcore.c (default_gcore_mach): Remove.
2639 (create_gcore_bfd): Update.
2640
2641 2020-10-29 Tom Tromey <tom@tromey.com>
2642
2643 * progspace.c (program_space::exec_close): New method, from
2644 exec_close in exec.c.
2645 * exec.c (exec_close): Move to progspace.c.
2646 (exec_target::close, exec_file_attach): Update.
2647 * progspace.h (struct program_space) <exec_close>: Declare
2648 method.
2649
2650 2020-10-29 Tom Tromey <tom@tromey.com>
2651
2652 * progspace.h (struct program_space) <exec_filename>: Rename from
2653 pspace_exec_filename. Now a unique_xmalloc_ptr.
2654 * inferior.c (print_selected_inferior): Update.
2655 (print_inferior): Update.
2656 * mi/mi-main.c (print_one_inferior): Update.
2657 * exec.h (exec_filename): Remove macro.
2658 * corefile.c (get_exec_file): Update.
2659 * exec.c (exec_close): Update.
2660 (exec_file_attach): Update.
2661 * progspace.c (clone_program_space): Update.
2662 (print_program_space): Update.
2663
2664 2020-10-29 Tom Tromey <tom@tromey.com>
2665
2666 * target-section.h (struct target_section): Add constructor.
2667 * exec.c (build_section_table, add_target_sections_of_objfile):
2668 Update.
2669 * corelow.c (core_target::build_file_mappings): Update.
2670
2671 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2672
2673 PR gdb/19318
2674 * inferior.c (detach_inferior_command): Restore the current thread.
2675 (kill_inferior_command): Ditto.
2676
2677 2020-10-28 Tom de Vries <tdevries@suse.de>
2678
2679 PR symtab/26772
2680 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2681 map, check it in the "best match" loop.
2682
2683 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2684
2685 * m32c-tdep.c: Remove unused includes.
2686
2687 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2688
2689 * xtensa-tdep.c: Remove includes.
2690
2691 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2692
2693 * breakpoint.c (struct condition_command_opts): New struct.
2694 (condition_command_option_defs): New static global.
2695 (make_condition_command_options_def_group): New function.
2696 (condition_completer): Update to consider the '-force' flag.
2697 (condition_command): Use gdb::option for the '-force' flag.
2698
2699 2020-10-27 Tom de Vries <tdevries@suse.de>
2700
2701 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2702 symbols in section check.
2703
2704 2020-10-27 Tom de Vries <tdevries@suse.de>
2705
2706 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2707
2708 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2709
2710 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2711 * breakpoint.c: Update the help text of the 'condition' and 'break'
2712 commands.
2713 (set_breakpoint_condition): Take a new bool parameter
2714 to control whether condition definition should be forced even when
2715 the condition expression is invalid in all of the current locations.
2716 (condition_command): Update the call to 'set_breakpoint_condition'.
2717 (find_condition_and_thread): Take the "-force-condition" flag into
2718 account.
2719 * linespec.c (linespec_keywords): Add "-force-condition" as an
2720 element.
2721 (FORCE_KEYWORD_INDEX): New #define.
2722 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2723 as a keyword.
2724 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2725 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2726 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2727 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2728
2729 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2730
2731 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2732 * breakpoint.c (set_breakpoint_location_condition): New function.
2733 (set_breakpoint_condition): Disable a breakpoint location if parsing
2734 the condition string gives an error.
2735 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2736 (build_target_condition_list): Ditto.
2737 (build_target_command_list): Ditto.
2738 (build_bpstat_chain): Ditto.
2739 (print_one_breakpoint_location): Ditto.
2740 (print_one_breakpoint): Ditto.
2741 (breakpoint_1): Ditto.
2742 (bp_location::bp_location): Ditto.
2743 (locations_are_equal): Ditto.
2744 (update_breakpoint_locations): Ditto.
2745 (enable_disable_bp_num_loc): Ditto.
2746 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2747 (find_condition_and_thread_for_sals): New static function.
2748 (create_breakpoint): Call find_condition_and_thread_for_sals.
2749 (location_to_sals): Call find_condition_and_thread_for_sals instead
2750 of find_condition_and_thread.
2751
2752 2020-10-26 Tom de Vries <tdevries@suse.de>
2753
2754 * dwarf2/read.c (process_full_comp_unit): Call
2755 dwarf2_find_base_address.
2756
2757 2020-10-26 Tom Tromey <tromey@adacore.com>
2758
2759 * gdbtypes.c (create_range_type): Revert previous patch. Add
2760 comment.
2761
2762 2020-10-26 Pedro Alves <pedro@palves.net>
2763
2764 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2765 (my_waitpid): Use gdb::handle_eintr.
2766
2767 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2768
2769 * acinclude.m4: Update ptrace.m4 path.
2770 * ptrace.m4: Moved to gdbsupport.
2771
2772 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2773
2774 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2775 instead of target_gdbarch.
2776
2777 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2778
2779 * jit.c (jit_reader_load_command): Pass current inferior.
2780 (jit_inferior_init): Change parameter type to inferior, use it.
2781 (jit_inferior_created): Remove.
2782 (jit_inferior_created_hook): Pass inferior parameter down.
2783 (_initialize_jit): Use jit_inferior_created_hook instead of
2784 jit_inferior_created.
2785 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2786 * infrun.c (follow_exec): Pass inferior to
2787 jit_inferior_created_hook.
2788
2789 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2790
2791 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2792 parameter and use it.
2793 (thread_db_inferior_created): Pass inferior argument.
2794
2795 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * aix-thread.c (aix_thread_inferior_created): Add inferior
2798 parameter.
2799 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2800 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2801 * jit.c (jit_inferior_created): Likewise.
2802 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2803 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2804 * observable.h (inferior_created): Likewise.
2805 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2806 * symfile-mem.c (add_vsyscall_page): Likewise.
2807 * infcmd.c (post_create_inferior): Pass inferior argument.
2808
2809 2020-10-24 Joel Brobecker <brobecker@adacore.com>
2810
2811 GDB 10.1 released.
2812
2813 2020-10-23 Joel Brobecker <brobecker@adacore.com>
2814
2815 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2816 to ada_check_typedef.
2817
2818 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * f-exp.y (f_parse): Rename to...
2821 (f_language::parser): ...this.
2822 * f-lang.c (f_get_encoding): Rename to...
2823 (f_language::get_encoding): ...this.
2824 (f_op_print_tab): Rename to...
2825 (f_language::op_print_tab): ...this.
2826 (exp_descriptor_f): Rename to...
2827 (f_language::exp_descriptor_tab): ...this.
2828 (class f_language): Moved to f-lang.h.
2829 (f_language::language_arch_info): New function, moved out of class
2830 declaration.
2831 (f_language::search_name_hash): Likewise.
2832 (f_language::lookup_symbol_nonlocal): Likewise.
2833 (f_language::get_symbol_name_matcher_inner): Likewise.
2834 * f-lang.h: Add 'valprint.h' include.
2835 (class f_language): Moved here from f-lang.c.
2836 * f-typeprint.c (f_type_print_args): Delete commented out
2837 declaration.
2838 (f_print_typedef): Rename to...
2839 (f_language::print_typedef): ...this.
2840 (f_print_type): Rename to...
2841 (f_language::print_type): ...this.
2842 (f_type_print_varspec_prefix): Delete declaration and rename to...
2843 (f_language::f_type_print_varspec_prefix): ...this.
2844 (f_type_print_varspec_suffix): Delete declaration and rename to...
2845 (f_language::f_type_print_varspec_suffix): ...this.
2846 (f_type_print_base): Delete declaration and rename to...
2847 (f_language::f_type_print_base): ...this.
2848 * f-valprint.c (f_value_print_inner): Rename to...
2849 (f_language::value_print_inner): ...this.
2850 * parse.c: Delete 'f-lang.h' include.
2851
2852 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2853
2854 * language.h (language_defn::print_type): Add variable names in
2855 declaration, and update header comment.
2856
2857 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2858
2859 * ada-lang.c (ada_language::demangle): Rename to...
2860 (ada_language::demangle_symbol): ...this.
2861 * c-lang.c (cplus_language::demangle): Rename to...
2862 (cplus_language::demangle_symbol): ...this.
2863 * d-lang.c (d_language::demangle): Rename to...
2864 (d_language::demangle_symbol): ...this.
2865 * f-lang.c (f_language::demangle): Rename to...
2866 (f_language::demangle_symbol): ...this.
2867 * go-lang.c (go_language::demangle): Rename to...
2868 (go_language::demangle_symbol): ...this.
2869 * language.c (language_demangle): Update call to demangle_symbol.
2870 (auto_or_unknown_language::demangle): Rename to...
2871 (auto_or_unknown_language::demangle_symbol): ...this.
2872 * language.h (language_defn::demangle): Rename to...
2873 (language_defn::demangle_symbol): ...this.
2874 * objc-lang.c (objc_language::demangle): Rename to...
2875 (objc_language::demangle_symbol): ...this.
2876 * rust-lang.c (rust_language::demangle): Rename to...
2877 (rust_language::demangle_symbol): ...this.
2878
2879 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2880
2881 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2882 (iterate_over_file_blocks): Replace use of macro with the macros
2883 definition.
2884
2885 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2888 * valprint.c (maybe_print_array_index): Replace use of macro with
2889 the macros definition.
2890
2891 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * ada-lang.c (ada_language::print_array_index): Call value_print
2894 directly.
2895 * language.c (language_defn::print_array_index): Likewise.
2896 * language.h (LA_VALUE_PRINT): Delete.
2897 * valprint.c (value_print): Call value_print on the
2898 current_language directly.
2899
2900 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * language.h (LA_PRINT_TYPEDEF): Delete.
2903 * typeprint.c (typedef_print): Call print_typedef directly on the
2904 current_language object.
2905
2906 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 * m2-exp.y (m2_parse): Rename to...
2909 (m2_language::parser): ...this. Update function signature.
2910 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2911 (m2_op_print): Rename to...
2912 (m2_language::op_print_tab): ...this, and make const.
2913 (exp_descriptor_modula2): Rename to...
2914 (m2_language::exp_descriptor_modula2): ...this.
2915 (class m2_language): Move to m2-lang.h.
2916 (m2_language::language_arch_info): New function, moved out of
2917 class declaration.
2918 (m2_language::printchar): New function, body from m2_printchar.
2919 (m2_language::printstr): New function, moved out of class
2920 declaration.
2921 (m2_language::emitchar): Likewise.
2922 * m2-lang.h (m2_parse): Delete declaration.
2923 (m2_print_typedef): Delete declaration.
2924 (m2_value_print_inner): Delete declaration.
2925 (class m2_language): Class declaration moved from m2-lang.c,
2926 larger functions are left in m2-lang.c.
2927 * m2-typeprint.c (m2_print_typedef): Rename to...
2928 (m2_language::print_typedef): ...this, and update function
2929 signature.
2930 * m2-valprint.c (m2_value_print_inner): Rename to...
2931 (m2_language::value_print_inner): ...this, replace use of
2932 LA_PRINT_STRING with a direct call to printstr member function,
2933 and update recursive call.
2934
2935 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2936
2937 * language.c (default_is_string_type_p): Delete, implementation
2938 moved into auto_or_unknown_language::is_string_type_p.
2939 (unk_op_print_tab): Moved into
2940 auto_or_unknown_language::opcode_print_table.
2941 (unknown_language_arch_info): Delete, implementation moved into
2942 auto_or_unknown_language::language_arch_info.
2943 (class auto_or_unknown_language): New class, member functions
2944 copied from unknown_language class, with some updates.
2945 (class unknown_language): Most member functions moved into
2946 auto_or_unknown_language class. Inherit from
2947 auto_or_unknown_language class.
2948 (class auto_language): Inherit from auto_or_unknown_language.
2949 Delete most member functions.
2950
2951 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2952
2953 * stabsread.c (read_member_functions): Remove gdb_assert.
2954
2955 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
2956
2957 * gdbtypes.c (init_complex_type): Check target type name.
2958
2959 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2960
2961 * target-debug.h (target_debug_print_struct_target_ops_p):
2962 Remove.
2963 (target_debug_print_async_callback_ftype_p): Remove.
2964 (target_debug_print_struct_trace_state_variable_p): Remove.
2965 (target_debug_print_struct_traceframe_info_p): Remove.
2966 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2967 (target_debug_print_enum_btrace_format): Remove.
2968 (target_debug_print_enum_info_proc_what): Remove.
2969 (target_debug_print_thread_info_pp): Remove.
2970
2971 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * target.h (struct target_ops) <make_corefile_notes>:
2974 Change return type to unique pointer.
2975 * target.c (dummy_make_corefile_notes): Likewise.
2976 * exec.c (struct exec_target) <make_corefile_notes>:
2977 Likewise.
2978 (exec_target::make_corefile_notes): Likewise.
2979 * procfs.c (class procfs_target) <make_corefile_notes>:
2980 Likewise.
2981 (procfs_do_thread_registers): Adjust to unique pointer.
2982 (struct procfs_corefile_thread_data): Add constructor.
2983 <note_data>: Change type to unique pointer.
2984 (procfs_corefile_thread_callback): Adjust to unique pointer.
2985 (procfs_target::make_corefile_notes): Change return type to
2986 unique pointer.
2987 * target-delegates.c: Re-generate.
2988 * gcore.c (write_gcore_file_1): Adjust.
2989 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2990 New.
2991
2992 2020-10-22 Tom de Vries <tdevries@suse.de>
2993
2994 * block.c (find_block_in_blockvector): Make sure the returned block
2995 contains pc.
2996
2997 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 PR gdb/26693
3000 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3001 parameter.
3002 (load_cu): Pass existing CU.
3003 (process_imported_unit_die): Likewise.
3004 (follow_die_offset): Likewise.
3005
3006 2020-10-22 Luis Machado <luis.machado@linaro.org>
3007
3008 * corelow.c (core_target::xfer_partial): Also check for an empty
3009 m_core_unavailable_mappings vector.
3010
3011 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3012
3013 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3014 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3015 * f-exp.y (arglist): Allow for a series of subranges.
3016 (subrange): Add cases for subranges with strides.
3017 * f-lang.c (value_f90_subarray): Catch use of array strides and
3018 throw an error.
3019 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3020
3021 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3022
3023 * expprint.c (print_subexp_standard): Change enum range_type to
3024 range_flag and rename variables to match.
3025 (dump_subexp_body_standard): Likewise.
3026 * expression.h (enum range_type): Rename to...
3027 (enum range_flag): ...this.
3028 (range_types): Rename to...
3029 (range_flags): ...this.
3030 * f-lang.c (value_f90_subarray): Change enum range_type to
3031 range_flag and rename variables to match.
3032 * parse.c (operator_length_standard): Likewise.
3033 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3034 range_type to range_flag.
3035 * rust-lang.c (rust_evaluate_funcall): Likewise.
3036 (rust_range): Likewise.
3037 (rust_compute_range): Likewise.
3038 (rust_subscript): Likewise.
3039
3040 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * expprint.c (print_subexp_standard): Update to reflect changes to
3043 enum range_type.
3044 (dump_subexp_body_standard): Likewise.
3045 * expression.h (enum range_type): Convert to a bit field enum, and
3046 make the enum unsigned.
3047 * f-exp.y (subrange): Update to reflect changes to enum
3048 range_type.
3049 * f-lang.c (value_f90_subarray): Likewise.
3050 * parse.c (operator_length_standard): Likewise.
3051 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3052 * rust-lang.c (rust_range): Likewise.
3053 (rust_compute_range): Likewise.
3054 (rust_subscript): Likewise.
3055
3056 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3057
3058 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3059 (displaced_step_in_progress): Fix comment.
3060
3061 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3064 * gdbarch.c: Re-generate.
3065 * gdbarch.h: Re-generate.
3066 * gcore.c (write_gcore_file_1): Adjust.
3067 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3068 constructor.
3069 <note_data>: Change type to unique pointer.
3070 <abort_iteration>: Change type to bool.
3071 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3072 (fbsd_collect_thread_registers): Return void, adjust.
3073 (struct fbsd_corefile_thread_data): Add construtor.
3074 <note_data>: Change type to unique pointer.
3075 (fbsd_corefile_thread): Adjust.
3076 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3077 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3078 to unique pointer, adjust.
3079 (struct linux_collect_regset_section_cb_data): Add constructor.
3080 <note_data>: Change type to unique pointer.
3081 <abort_iteration>: Change type to bool.
3082 (linux_collect_thread_registers): Return void, adjust.
3083 (struct linux_corefile_thread_data): Add constructor.
3084 <note_data>: Change type to unique pointer.
3085 (linux_corefile_thread): Adjust.
3086 (linux_make_corefile_notes): Return unique pointer, adjust.
3087
3088 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3089
3090 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3091 * gdbarch.c: Re-generate.
3092 * gdbarch.h: Re-generate.
3093 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3094 bool.
3095 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3096 Likewise.
3097 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3098 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3099 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3100 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3101
3102 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3103
3104 * gdbarch.sh: Make generated predicates return bool.
3105 * gdbarch.c: Re-generate.
3106 * gdbarch.h: Re-generate.
3107
3108 2020-10-20 Tom Tromey <tom@tromey.com>
3109
3110 * varobj-iter.h (struct varobj_item): Remove typedef.
3111
3112 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3113
3114 * infrun.c (currently_stepping): Change int to bool
3115 (maybe_software_singlestep): Likewise.
3116 (show_stop_on_solib_events): Likewise.
3117 (stepping_past_nonsteppable_watchpoint): Likewise.
3118 (displaced_step_in_progress_any_inferior): Likewise.
3119 (displaced_step_in_progress_thread): Likewise.
3120 (keep_going_stepped_thread): Likewise.
3121 (thread_still_needs_step_over): Likewise.
3122 (start_step_over): Likewise.
3123 (do_target_resume): Likewise.
3124 (resume_1): Likewise.
3125 (clear_proceed_status): Likewise.
3126 (thread_still_needs_step_over_bp): Likewise.
3127 (proceed): Likewise.
3128 (switch_back_to_stepped_thread): Likewise.
3129 (adjust_pc_after_break): Likewise.
3130 (stepped_in_from): Likewise.
3131 (handle_stop_requested): Likewise.
3132 (handle_syscall_event): Likewise.
3133 (handle_no_resumed): Likewise.
3134 (handle_inferior_event): Likewise.
3135 (finish_step_over): Likewise.
3136 (handle_signal_stop): Likewise.
3137 (process_event_stop_test): Likewise.
3138
3139 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3140
3141 * infrun.c (get_displaced_stepping_state): Fix comment.
3142
3143 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3144
3145 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3146
3147 2020-10-19 Tom Tromey <tromey@adacore.com>
3148
3149 PR tui/26719
3150 * tui/tui-winsource.h (struct tui_source_window_base)
3151 <refresh_window>: Rename from refresh_pad.
3152 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3153 Rename from refresh_pad.
3154 (tui_source_window_base::show_source_content)
3155 (tui_source_window_base::do_scroll_horizontal): Update.
3156
3157 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3158
3159 * thread.c (_initialize_thread): Fine-tune the help text of
3160 'info threads'.
3161
3162 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3163
3164 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3165
3166 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3167
3168 * breakpoint.c (handle_jit_event): Add an argument, change how
3169 `jit_event_handler` is called.
3170
3171 2020-10-17 Tom Tromey <tom@tromey.com>
3172
3173 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3174 (scan_xcoff_symtab): Update.
3175 * psymtab.h (class psymtab_storage) <global_psymbols,
3176 static_psymbols, current_global_psymbols,
3177 current_static_psymbols>: Remove.
3178 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3179 (match_partial_symbol, lookup_partial_symbol): Update.
3180 (print_partial_symbols): Change parameters.
3181 (dump_psymtab, recursively_search_psymtabs)
3182 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3183 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3184 (concat): Remove.
3185 (end_psymtab_common): Simplify.
3186 (append_psymbol_to_list): Change parameters.
3187 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3188 (init_psymbol_list): Simplify.
3189 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3190 * psympriv.h (struct partial_symtab) <empty>: New method.
3191 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3192 Remove.
3193 <global_psymbols, static_psymbols>: New members.
3194 <add_psymbol>: New methods.
3195 (add_psymbol_to_list): Don't declare.
3196 (psymbol_placement): Move earlier.
3197 * mdebugread.c (parse_partial_symbols): Update.
3198 (handle_psymbol_enumerators): Change parameters.
3199 (mdebug_expand_psymtab): Update.
3200 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3201 (add_partial_symbol): Update.
3202 * dwarf2/index-write.c (write_psymbols): Change parameters.
3203 (write_one_signatured_type): Update.
3204 (recursively_count_psymbols): Update.
3205 (recursively_write_psymbols): Update.
3206 (class debug_names) <recursively_write_psymbols>: Update.
3207 <write_psymbols>: Change parameters.
3208 <write_one_signatured_type>: Update.
3209 * dbxread.c (read_dbx_symtab): Update.
3210 (dbx_end_psymtab): Use partial_symtab::empty.
3211 * ctfread.c (struct ctf_context) <pst>: New member.
3212 (create_partial_symtab): Set it.
3213 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3214 (scan_partial_symbols): Use the psymtab's context. Update.
3215
3216 2020-10-17 Tom Tromey <tom@tromey.com>
3217
3218 * valprint.c (generic_value_print): Remove comment.
3219 * m2-valprint.c (m2_value_print_inner): Remove comment.
3220 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3221 type.
3222
3223 2020-10-17 Tom de Vries <tdevries@suse.de>
3224
3225 PR symtab/26317
3226 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3227 symbol main.
3228
3229 2020-10-14 Tom de Vries <tdevries@suse.de>
3230
3231 PR gdb/26733
3232 * solib.c (solib_contains_address_p): Handle
3233 'solib->sections == nullptr'.
3234
3235 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3236
3237 PR gdb/26642
3238 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3239 target can't do async.
3240 * target.c (target_wait): Assert that we don't pass
3241 TARGET_WNOHANG to a target that can't async.
3242
3243 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3244
3245 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3246 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3247 * alpha-bsd-nat.c: Adjust include.
3248 * alpha-bsd-tdep.h: Adjust comment.
3249 * alpha-nbsd-tdep.c: Rename to ...
3250 * alpha-netbsd-tdep.c: ... this, adjust include.
3251 * amd64-nbsd-nat.c: Rename to ...
3252 * amd64-netbsd-nat.c: ... this, adjust include.
3253 * amd64-nbsd-tdep.c: Rename to ...
3254 * amd64-netbsd-tdep.c: ... this, adjust include.
3255 * amd64-tdep.h: Adjust include.
3256 * arm-nbsd-nat.c: Rename to ...
3257 * arm-netbsd-nat.c: ... this, adjust include.
3258 * arm-nbsd-tdep.c: Rename to ...
3259 * arm-netbsd-tdep.c: ... this, adjust include.
3260 * arm-nbsd-tdep.h: Rename to ...
3261 * arm-netbsd-tdep.h: ... this, adjust include.
3262 * configure.nat: Adjust file lists.
3263 * configure.tgt: Likewise.
3264 * hppa-nbsd-nat.c: Rename to ...
3265 * hppa-netbsd-nat.c: ... this, adjust include.
3266 * hppa-nbsd-tdep.c: Rename to ...
3267 * hppa-netbsd-tdep.c: ... this, adjust include.
3268 * i386-nbsd-nat.c: Rename to ...
3269 * i386-netbsd-nat.c: ... this, adjust include.
3270 * i386-nbsd-tdep.c: Rename to ...
3271 * i386-netbsd-tdep.c: ... this, adjust include.
3272 * m68k-bsd-nat.c: Adjust include.
3273 * mips-nbsd-nat.c: Rename to ...
3274 * mips-netbsd-nat.c: ... this, adjust include.
3275 * mips-nbsd-tdep.c: Rename to ...
3276 * mips-netbsd-tdep.c: ... this, adjust include.
3277 * mips-nbsd-tdep.h: Rename to ...
3278 * mips-netbsd-tdep.h: ... this.
3279 * nbsd-nat.c: Rename to ...
3280 * netbsd-nat.c: ... this, adjust include.
3281 * nbsd-nat.h: Rename to ...
3282 * netbsd-nat.h: ... this, adjust include.
3283 * nbsd-tdep.c: Rename to ...
3284 * netbsd-tdep.c: ... this, adjust include.
3285 * nbsd-tdep.h: Rename to ...
3286 * netbsd-tdep.h: ... this.
3287 * ppc-nbsd-nat.c: Rename to ...
3288 * ppc-netbsd-nat.c: ... this, adjust include.
3289 * ppc-nbsd-tdep.c: Rename to ...
3290 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3291 * ppc-nbsd-tdep.h: Rename to ...
3292 * ppc-netbsd-tdep.h: ... this.
3293 * sh-nbsd-nat.c: Rename to ...
3294 * sh-netbsd-nat.c: ... this, adjust include.
3295 * sh-nbsd-tdep.c: Rename to ...
3296 * sh-netbsd-tdep.c: ... this, adjust include.
3297 * sparc-nbsd-nat.c: Rename to ...
3298 * sparc-netbsd-nat.c: ... this.
3299 * sparc-nbsd-tdep.c: Rename to ...
3300 * sparc-netbsd-tdep.c: ... this, adjust include.
3301 * sparc64-nbsd-nat.c: Rename to ...
3302 * sparc64-netbsd-nat.c: ... this.
3303 * sparc64-nbsd-tdep.c: Rename to ...
3304 * sparc64-netbsd-tdep.c: ... this, adjust include.
3305 * sparc64-tdep.h: Adjust comment.
3306 * vax-bsd-nat.c: Adjust include.
3307 * vax-nbsd-tdep.c: Rename to ...
3308 * vax-netbsd-tdep.c: ... this, adjust include.
3309
3310 2020-10-12 Tom Tromey <tom@tromey.com>
3311
3312 * target.h (struct target_ops) <get_section_table>: Update.
3313 (target_get_section_table): Update.
3314 * target.c (target_get_section_table, target_section_by_addr)
3315 (memory_xfer_partial_1): Update.
3316 * target-section.h (target_section_table): Now an alias.
3317 * target-delegates.c: Rebuild.
3318 * target-debug.h (target_debug_print_target_section_table_p):
3319 Rename from target_debug_print_struct_target_section_table_p.
3320 * symfile.c (build_section_addr_info_from_section_table): Update.
3321 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3322 * solib-svr4.c (scan_dyntag): Update.
3323 * solib-dsbt.c (scan_dyntag): Update.
3324 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3325 Update.
3326 * record-full.c (record_full_core_target::xfer_partial): Update.
3327 * progspace.h (struct program_space) <target_sections>: Update.
3328 * exec.h (print_section_info): Update.
3329 * exec.c (exec_target::close, build_section_table)
3330 (add_target_sections, add_target_sections_of_objfile)
3331 (remove_target_sections, exec_on_vfork)
3332 (section_table_available_memory)
3333 (section_table_xfer_memory_partial)
3334 (exec_target::get_section_table, exec_target::xfer_partial)
3335 (print_section_info, set_section_command)
3336 (exec_set_section_address, exec_target::has_memory): Update.
3337 * corelow.c (core_target::build_file_mappings)
3338 (core_target::xfer_partial, core_target::info_proc_mappings)
3339 (core_target::info_proc_mappings): Update.
3340 * bfd-target.c (class target_bfd): Update
3341
3342 2020-10-12 Tom Tromey <tom@tromey.com>
3343
3344 * progspace.c (program_space::~program_space): Don't call
3345 clear_section_table.
3346 * exec.h (clear_section_table): Don't declare.
3347 * exec.c (exec_target::close): Update.
3348 (clear_section_table): Remove.
3349
3350 2020-10-12 Tom Tromey <tom@tromey.com>
3351
3352 * exec.c (add_target_sections_of_objfile): Simplify.
3353
3354 2020-10-12 Tom Tromey <tom@tromey.com>
3355
3356 * solib.c (solib_map_sections): Update.
3357 * record-full.c (record_full_core_open_1): Update.
3358 * exec.h (build_section_table): Return a target_section_table.
3359 * exec.c (exec_file_attach): Update.
3360 (build_section_table): Return a target_section_table.
3361 * corelow.c (core_target::core_target): Update.
3362 * bfd-target.c (target_bfd::target_bfd): Update.
3363
3364 2020-10-12 Tom Tromey <tom@tromey.com>
3365
3366 * target.c (target_section_by_addr, memory_xfer_partial_1):
3367 Update.
3368 * target-section.h (struct target_section_table): Use
3369 std::vector.
3370 * symfile.h (build_section_addr_info_from_section_table): Take a
3371 target_section_table.
3372 * symfile.c (build_section_addr_info_from_section_table): Take a
3373 target_section_table.
3374 * solist.h (struct so_list) <sections>: Change type.
3375 <sections_end>: Remove.
3376 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3377 (solib_contains_address_p): Update.
3378 * solib-svr4.c (scan_dyntag): Update.
3379 * solib-dsbt.c (scan_dyntag): Update.
3380 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3381 Update.
3382 * record-full.c (record_full_core_start, record_full_core_end):
3383 Remove.
3384 (record_full_core_sections): New global.
3385 (record_full_core_open_1, record_full_core_target::xfer_partial):
3386 Update.
3387 * exec.h (build_section_table, section_table_xfer_memory_partial)
3388 (add_target_sections): Take a target_section_table.
3389 * exec.c (exec_file_attach, clear_section_table): Update.
3390 (resize_section_table): Remove.
3391 (build_section_table, add_target_sections): Take a
3392 target_section_table.
3393 (add_target_sections_of_objfile, remove_target_sections)
3394 (exec_on_vfork): Update.
3395 (section_table_available_memory): Take a target_section_table.
3396 (section_table_read_available_memory): Update.
3397 (section_table_xfer_memory_partial): Take a target_section_table.
3398 (print_section_info, set_section_command)
3399 (exec_set_section_address, exec_target::has_memory): Update.
3400 * corelow.c (class core_target) <m_core_section_table,
3401 m_core_file_mappings>: Remove braces.
3402 <~core_target>: Remove.
3403 (core_target::core_target): Update.
3404 (core_target::~core_target): Remove.
3405 (core_target::build_file_mappings)
3406 (core_target::xfer_memory_via_mappings)
3407 (core_target::xfer_partial, core_target::info_proc_mappings):
3408 Update.
3409 * bfd-target.c (target_bfd::xfer_partial): Update.
3410 (target_bfd::target_bfd): Update.
3411 (target_bfd::~target_bfd): Remove.
3412
3413 2020-10-12 Tom Tromey <tom@tromey.com>
3414
3415 * target.h (struct target_section, struct target_section_table):
3416 Move to target-section.h.
3417 * target-section.h: New file.
3418
3419 2020-10-12 Pedro Alves <pedro@palves.net>
3420
3421 PR exp/26602
3422 * valops.c (struct struct_field_searcher): New.
3423 (update_search_result): Rename to ...
3424 (struct_field_searcher::update_result): ... this. Simplify
3425 prototype. Record all found fields.
3426 (do_search_struct_field): Rename to ...
3427 (struct_field_searcher::search): ... this. Simplify prototype.
3428 Maintain stack of visited baseclass path. Call update_result for
3429 fields too. Keep searching fields in baseclasses instead of
3430 stopping at the first found field.
3431 (search_struct_field): Use struct_field_searcher. When looking
3432 for fields, report ambiguous access attempts.
3433
3434 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * frame.c (inside_main_func): Check full symbols as well as
3437 minimal symbols.
3438
3439 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3440
3441 * ada-lang.c (advance_wild_match): Rewrite the function's
3442 description. Change the type of target0, t0 and t1 to char.
3443
3444 2020-10-09 Tom Tromey <tromey@adacore.com>
3445
3446 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3447
3448 2020-10-09 Tom Tromey <tromey@adacore.com>
3449
3450 * ada-lang.h (ada_encode): Return std::string.
3451 * ada-lang.c (ada_encode_1): Return std::string.
3452 (ada_encode): Likewise.
3453 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3454 Update.
3455 * ada-exp.y (block_lookup, write_var_or_type): Update.
3456
3457 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3458
3459 PR exp/26714
3460 * printcmd.c (print_formatted): Handle void results as
3461 unformatted prints.
3462
3463 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3464
3465 * arch/aarch32.c (aarch32_create_target_description): Release the
3466 target_desc_up as late as possible.
3467 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3468 * arch/amd64.c (amd64_create_target_description): Likewise.
3469 * arch/arc.c (arc_create_target_description): Return a
3470 target_desc_up, don't release it.
3471 * arch/arc.h (arc_create_target_description): Update declaration.
3472 (arc_lookup_target_description): Move target_desc_up into the
3473 cache, and return a borrowed pointer.
3474 * arch/arm.c (arm_create_target_description): Release the
3475 target_desc_up as late as possible.
3476 * arch/i386.c (i386_create_target_description): Likewise.
3477 * arch/riscv.h (riscv_create_target_description): Update
3478 declaration to match definition.
3479 * arch/tic6x.c (tic6x_create_target_description): Release the
3480 target_desc_up as late as possible.
3481
3482 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3485 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3486
3487 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3488
3489 * source.c (directory_command): Notify observers that "directories"
3490 parameter has changed.
3491
3492 2020-10-08 Tom Tromey <tom@tromey.com>
3493
3494 * cli/cli-cmds.c (print_disassembly): Style function name and
3495 addresses. Add _() wrappers.
3496
3497 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3498
3499 * NEWS: Mention ARC support in GDBserver.
3500
3501 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * arch/aarch32.c (aarch32_create_target_description): Release
3504 unique_ptr returned from allocate_target_description.
3505 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3506 * arch/amd64.c (amd64_create_target_description): Likewise.
3507 * arch/arc.c (arc_create_target_description): Likewise.
3508 * arch/arm.c (arm_create_target_description): Likewise.
3509 * arch/i386.c (i386_create_target_description): Likewise.
3510 * arch/riscv.c (riscv_create_target_description): Update return
3511 type. Handle allocate_target_description returning a unique_ptr.
3512 (riscv_lookup_target_description): Update to handle unique_ptr.
3513 * arch/tic6x.c (tic6x_create_target_description): Release
3514 unique_ptr returned from allocate_target_description.
3515 * features/microblaze-with-stack-protect.c: Regenerate.
3516 * features/microblaze.c: Regenerate.
3517 * features/mips-dsp-linux.c: Regenerate.
3518 * features/mips-linux.c: Regenerate.
3519 * features/mips64-dsp-linux.c: Regenerate.
3520 * features/mips64-linux.c: Regenerate.
3521 * features/nds32.c: Regenerate.
3522 * features/nios2.c: Regenerate.
3523 * features/or1k.c: Regenerate.
3524 * features/rs6000/powerpc-32.c: Regenerate.
3525 * features/rs6000/powerpc-32l.c: Regenerate.
3526 * features/rs6000/powerpc-403.c: Regenerate.
3527 * features/rs6000/powerpc-403gc.c: Regenerate.
3528 * features/rs6000/powerpc-405.c: Regenerate.
3529 * features/rs6000/powerpc-505.c: Regenerate.
3530 * features/rs6000/powerpc-601.c: Regenerate.
3531 * features/rs6000/powerpc-602.c: Regenerate.
3532 * features/rs6000/powerpc-603.c: Regenerate.
3533 * features/rs6000/powerpc-604.c: Regenerate.
3534 * features/rs6000/powerpc-64.c: Regenerate.
3535 * features/rs6000/powerpc-64l.c: Regenerate.
3536 * features/rs6000/powerpc-7400.c: Regenerate.
3537 * features/rs6000/powerpc-750.c: Regenerate.
3538 * features/rs6000/powerpc-860.c: Regenerate.
3539 * features/rs6000/powerpc-altivec32.c: Regenerate.
3540 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3541 * features/rs6000/powerpc-altivec64.c: Regenerate.
3542 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3543 * features/rs6000/powerpc-e500.c: Regenerate.
3544 * features/rs6000/powerpc-e500l.c: Regenerate.
3545 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3546 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3547 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3548 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3549 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3550 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3551 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3552 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3553 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3554 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3555 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3556 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3557 * features/rs6000/powerpc-vsx32.c: Regenerate.
3558 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3559 * features/rs6000/powerpc-vsx64.c: Regenerate.
3560 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3561 * features/rs6000/rs6000.c: Regenerate.
3562 * features/rx.c: Regenerate.
3563 * features/s390-gs-linux64.c: Regenerate.
3564 * features/s390-linux32.c: Regenerate.
3565 * features/s390-linux32v1.c: Regenerate.
3566 * features/s390-linux32v2.c: Regenerate.
3567 * features/s390-linux64.c: Regenerate.
3568 * features/s390-linux64v1.c: Regenerate.
3569 * features/s390-linux64v2.c: Regenerate.
3570 * features/s390-te-linux64.c: Regenerate.
3571 * features/s390-tevx-linux64.c: Regenerate.
3572 * features/s390-vx-linux64.c: Regenerate.
3573 * features/s390x-gs-linux64.c: Regenerate.
3574 * features/s390x-linux64.c: Regenerate.
3575 * features/s390x-linux64v1.c: Regenerate.
3576 * features/s390x-linux64v2.c: Regenerate.
3577 * features/s390x-te-linux64.c: Regenerate.
3578 * features/s390x-tevx-linux64.c: Regenerate.
3579 * features/s390x-vx-linux64.c: Regenerate.
3580 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3581 from allocate_target_description.
3582 * target-descriptions.c (allocate_target_description): Update
3583 return type.
3584 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3585 allocate_target_description.
3586
3587 2020-10-07 Tom Tromey <tromey@adacore.com>
3588
3589 * unittests/search-memory-selftests.c: New file.
3590 * Makefile.in (SELFTESTS_SRCS): Add
3591 unittests/search-memory-selftests.c.
3592
3593 2020-10-07 Tom Tromey <tromey@adacore.com>
3594
3595 PR gdb/16930:
3596 * findcmd.c (_initialize_mem_search): Mention that the range is
3597 inclusive.
3598
3599 2020-10-07 Tom Tromey <tromey@adacore.com>
3600
3601 * target.h (simple_search_memory): Don't declare.
3602 * target.c (simple_search_memory): Move to gdbsupport.
3603 (default_search_memory): Update.
3604 * remote.c (remote_target::search_memory): Update.
3605
3606 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * Makefile.in (COMPILE): Add CXXFLAGS.
3609 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3610 (check-headers): Add CXXFLAGS.
3611
3612 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3613
3614 * arc-linux-tdep.h: New file.
3615 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3616 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3617 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3618 arc_linux_gregset, arc_linux_v2_regset,
3619 arc_linux_iterate_over_regset_sections,
3620 arc_linux_core_read_description): Implement.
3621 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3622 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3623 (arc_gdbarch_features_create): Add.
3624 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3625
3626 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3627
3628 * arch/arc.h: Rename "arc_gdbarch_features" to
3629 "arc_arch_features".
3630 * arc-tdep.h: Likewise.
3631 * arc-tdep.c: Likewise.
3632
3633 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3634
3635 * infcmd.c (attach_command): Remove the redundant call to
3636 `clear_proceed_status`.
3637
3638 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3639
3640 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3641
3642 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3643
3644 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3645 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3646 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3647
3648 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3649
3650 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3651 (_initialize_break_catch_sig): Don't allocate array.
3652
3653 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3654
3655 * symtab.c (find_pc_line): Return unmapped addresses when the
3656 requested address is also unmapped.
3657
3658 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3661 tui/tui-out.h.
3662
3663 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3664
3665 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3666 type::is_vector instead of TYPE_VECTOR.
3667
3668 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3669
3670 * auto-load.c (auto_load_objfile_script_1): Don't use
3671 debugfile_holder as temporary variable when stripping drive
3672 letter.
3673
3674 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3675
3676 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3677 Add TYPE_CODE_COMPLEX.
3678 (amd64_windows_return_value): Fix types returned via XMM0.
3679
3680 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3681
3682 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3683 AArch64/ARM maintainers.
3684
3685 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3686
3687 * NEWS: Mention set/show debug event-loop.
3688
3689 2020-10-02 Tom Tromey <tromey@adacore.com>
3690
3691 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3692 REG_EXTENDED.
3693
3694 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3697 * procfs.c (procfs_inferior_created): Remove.
3698 (_initialize_procfs): Don't register procfs_inferior_created.
3699
3700 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3701
3702 * async-event.c (invoke_async_signal_handlers): Add debug
3703 print.
3704 (check_async_event_handlers): Likewise.
3705 * event-top.c (show_debug_event_loop): New function.
3706 (_initialize_event_top): Register "set debug event-loop"
3707 setting.
3708
3709 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3712 * debug.h: Remove.
3713 * infrun.c: Include gdbsupport/common-debug.h.
3714 * linux-nat.c: Likewise.
3715
3716 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3717
3718 * async-event.h (create_async_signal_handler): Add name
3719 parameter.
3720 (create_async_event_handler): Likewise.
3721 * async-event.c (struct async_signal_handler) <name>: New field.
3722 (struct async_event_handler) <name>: New field.
3723 (create_async_signal_handler): Assign name.
3724 (create_async_event_handler): Assign name.
3725 * event-top.c (async_init_signals): Pass name when creating
3726 handler.
3727 * infrun.c (_initialize_infrun): Likewise.
3728 * record-btrace.c (record_btrace_push_target): Likewise.
3729 * record-full.c (record_full_open): Likewise.
3730 * remote-notif.c (remote_notif_state_allocate): Likewise.
3731 * remote.c (remote_target::open_1): Likewise.
3732 * tui/tui-win.c (tui_initialize_win): Likewise.
3733
3734 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3735
3736 * async-event.c (initialize_async_signal_handlers): Pass name to
3737 add_file_handler
3738 * event-top.c (ui_register_input_event_handler): Likewise.
3739 * linux-nat.c (linux_nat_target::async): Likewise.
3740 * run-on-main-thread.c (_initialize_run_on_main_thread):
3741 Likewise
3742 * ser-base.c (reschedule): Likewise.
3743 (ser_base_async): Likewise.
3744 * tui/tui-io.c: Likewise.
3745 * top.h (struct ui) <num>: New field.
3746 * top.c (highest_ui_num): New variable.
3747 (ui::ui): Initialize num.
3748
3749 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3750
3751 * observable.h <inferior_created>: Remove parameters. Update all
3752 listeners.
3753 * inferior.h (post_create_inferior): Remove target parameter.
3754 Update all callers.
3755
3756 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3757
3758 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3759 and DW_MACRO_undef_strx.
3760 (dwarf_decode_macros): Likewise
3761 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3762 which is the value of DW_AT_str_offsets_base.
3763 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3764 str_offsets_base.
3765
3766 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3767
3768 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3769
3770 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3771
3772 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3773 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3774
3775 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3776
3777 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3778
3779 2020-09-30 Tom de Vries <tdevries@suse.de>
3780
3781 PR symtab/26683
3782 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3783
3784 2020-09-30 Tom Tromey <tromey@adacore.com>
3785
3786 * dwarf2/read.c (handle_variant): Use constant_value.
3787
3788 2020-09-29 Tom Tromey <tom@tromey.com>
3789
3790 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3791 (read_file_scope, dwarf2_get_pc_bounds)
3792 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3793 (read_structure_type, handle_struct_member_die)
3794 (read_enumeration_type, read_array_type, read_set_type)
3795 (read_tag_pointer_type, read_tag_reference_type)
3796 (read_subroutine_type, read_base_type, read_subrange_type)
3797 (read_full_die_1, partial_die_info::read)
3798 (partial_die_info::read, by, new_symbol)
3799 (dwarf2_const_value_data, dwarf2_const_value_attr)
3800 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3801 (prepare_one_comp_unit): Update.
3802 * dwarf2/attribute.h (DW_UNSND): Remove.
3803
3804 2020-09-29 Tom Tromey <tom@tromey.com>
3805
3806 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3807 (read_subroutine_type, partial_die_info::read)
3808 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3809 (dwarf2_add_member_fn): Update.
3810 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3811 * dwarf2/attribute.c (attribute::as_boolean): New method.
3812
3813 2020-09-29 Tom Tromey <tom@tromey.com>
3814
3815 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3816 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3817 method.
3818 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3819
3820 2020-09-29 Tom Tromey <tom@tromey.com>
3821
3822 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3823 the attribute's form.
3824
3825 2020-09-29 Tom Tromey <tom@tromey.com>
3826
3827 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3828 (dwarf2_add_member_fn): Update.
3829 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3830 * dwarf2/attribute.c (attribute::defaulted): New method, from
3831 is_valid_DW_AT_defaulted.
3832
3833 2020-09-29 Tom Tromey <tom@tromey.com>
3834
3835 * dwarf2/read.c (dw2_get_file_names_reader)
3836 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3837 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3838 (dwarf2_symbol_mark_computed): Use as_unsigned.
3839 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3840 method.
3841 <form_is_section_offset>: Update comment.
3842
3843 2020-09-29 Tom Tromey <tom@tromey.com>
3844
3845 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3846 dwarf2_default_access_attribute. Look up attribute.
3847 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3848 Update.
3849
3850 2020-09-29 Tom Tromey <tom@tromey.com>
3851
3852 * dwarf2/read.c (skip_one_die): Update.
3853 (read_full_die_1): Change how reprocessing is done.
3854 (partial_die_info::read): Update.
3855 (read_attribute_value): Remove need_reprocess parameter.
3856 (read_attribute): Likewise.
3857 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3858 New method.
3859
3860 2020-09-29 Tom Tromey <tom@tromey.com>
3861
3862 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3863 (dwarf2_const_value_attr, dump_die_shallow)
3864 (dwarf2_fetch_constant_bytes): Update.
3865 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3866 comment.
3867 <set_address>: New method.
3868 (DW_ADDR): Remove.
3869 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3870 (attribute::as_string, attribute::as_address): Add assert.
3871
3872 2020-09-29 Tom Tromey <tom@tromey.com>
3873
3874 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3875 (read_attribute_reprocess, read_attribute_value): Update.
3876 (read_attribute): Clear requires_reprocessing.
3877 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3878 form_requires_reprocessing>: New methods.
3879 <string_init>: Clear requires_reprocessing.
3880 <set_unsigned_reprocess>: New method.
3881 <name>: Shrink by one bit.
3882 <requires_reprocessing>: New member.
3883 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3884 method.
3885
3886 2020-09-29 Tom Tromey <tom@tromey.com>
3887
3888 * dwarf2/read.c (read_attribute_value): Update.
3889 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3890 set_unsigned>: New methods.
3891 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3892
3893 2020-09-29 Tom Tromey <tom@tromey.com>
3894
3895 * dwarf2/read.c (get_alignment, read_array_order)
3896 (read_attribute_value, dwarf2_const_value_attr)
3897 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3898 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3899 New methods.
3900 (DW_SND): Remove.
3901
3902 2020-09-29 Tom Tromey <tom@tromey.com>
3903
3904 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3905 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3906 Update.
3907 * dwarf2/attribute.h (struct attribute) <as_signature,
3908 set_signature>: New methods.
3909 (DW_SIGNATURE): Remove.
3910
3911 2020-09-29 Tom Tromey <tom@tromey.com>
3912
3913 * dwarf2/read.c (read_call_site_scope)
3914 (handle_data_member_location, dwarf2_add_member_fn)
3915 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3916 (partial_die_info::read, read_attribute_value)
3917 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3918 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3919 (dwarf2_symbol_mark_computed): Update.
3920 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3921 methods.
3922 (DW_BLOCK): Remove.
3923 * dwarf2/attribute.c (attribute::form_is_block): Add
3924 DW_FORM_data16.
3925
3926 2020-09-29 Tom Tromey <tom@tromey.com>
3927
3928 * dwarf2/read.c (read_cutu_die_from_dwo)
3929 (read_attribute_reprocess, read_attribute_value, read_attribute)
3930 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3931 (dwarf2_fetch_constant_bytes): Update.
3932 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3933 <set_string_noncanonical, set_string_canonical>: New methods.
3934 <string_is_canonical>: Update comment.
3935 <canonical_string_p>: Add assert.
3936 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3937 * dwarf2/attribute.c (attribute::form_is_string): New method.
3938 (attribute::string): Use it.
3939
3940 2020-09-29 Tom Tromey <tom@tromey.com>
3941
3942 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3943 (dump_die_shallow): Use canonical_string_p.
3944 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3945 method.
3946
3947 2020-09-29 Tom Tromey <tom@tromey.com>
3948
3949 * dwarf2/read.c (partial_die_info::read)
3950 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3951 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3952 attribute::as_string.
3953
3954 2020-09-29 Tom Tromey <tom@tromey.com>
3955
3956 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3957 DW_ADDR.
3958 (attribute::string): Don't use DW_STRING.
3959 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3960 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3961
3962 2020-09-29 Tom Tromey <tom@tromey.com>
3963
3964 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3965 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3966 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3967 * dwarf2/attribute.h (struct attribute): Rename methods.
3968 * dwarf2/attribute.c (attribute::as_address): Rename from
3969 value_as_address.
3970 (attribute::as_string): Rename from value_as_string.
3971
3972 2020-09-29 Tom Tromey <tom@tromey.com>
3973
3974 * dwarf2/read.c (partial_die_info::read) <case
3975 DW_AT_linkage_name>: Use value_as_string.
3976 (dwarf2_string_attr): Use value_as_string.
3977 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3978 method.
3979 * dwarf2/attribute.c (attribute::value_as_string): New method.
3980
3981 2020-09-29 Pedro Alves <pedro@palves.net>
3982
3983 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3984 defined before using '#pragma GCC diagnostic' instead of checking
3985 __clang__.
3986
3987 2020-09-28 Tom Tromey <tom@tromey.com>
3988
3989 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3990 (handle_signal_stop): Update.
3991 * procfs.c (procfs_target::insert_watchpoint): Update.
3992 * target.h (target_have_steppable_watchpoint): Now a function.
3993
3994 2020-09-28 Tom Tromey <tom@tromey.com>
3995
3996 * infrun.c (set_schedlock_func): Update.
3997 * target.h (target_can_lock_scheduler): Now a function.
3998
3999 2020-09-28 Tom Tromey <tom@tromey.com>
4000
4001 * inferior.h (class inferior) <has_execution>: Update.
4002 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4003 * valops.c (find_function_in_inferior)
4004 (value_allocate_space_in_inferior): Update.
4005 * top.c (kill_or_detach): Update.
4006 * target.c (target_preopen, set_target_permissions): Update.
4007 (target_has_execution_current): Remove.
4008 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4009 Update.
4010 * solib.c (update_solib_list, reload_shared_libraries): Update.
4011 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4012 * solib-dsbt.c (enable_break): Update.
4013 * score-tdep.c (score7_fetch_inst): Update.
4014 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4015 Update.
4016 * remote.c (remote_target::start_remote)
4017 (remote_target::remote_check_symbols, remote_target::open_1)
4018 (remote_target::remote_detach_1, remote_target::verify_memory)
4019 (remote_target::xfer_partial, remote_target::read_description)
4020 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4021 * record-full.c (record_full_open_1): Update.
4022 * record-btrace.c (record_btrace_target_open): Update.
4023 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4024 (value_nsstring): Update.
4025 * linux-thread-db.c (add_thread_db_info)
4026 (thread_db_find_new_threads_silently, check_thread_db_callback)
4027 (try_thread_db_load_1, record_thread): Update.
4028 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4029 Update.
4030 * linux-fork.c (checkpoint_command): Update.
4031 * infrun.c (set_non_stop, set_observer_mode)
4032 (check_multi_target_resumption, for_each_just_stopped_thread)
4033 (maybe_remove_breakpoints, normal_stop)
4034 (class infcall_suspend_state): Update.
4035 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4036 (info_program_command, attach_command): Update.
4037 * infcall.c (call_function_by_hand_dummy): Update.
4038 * inf-loop.c (inferior_event_handler): Update.
4039 * gcore.c (gcore_command, derive_heap_segment): Update.
4040 * exec.c (exec_file_command): Update.
4041 * eval.c (evaluate_subexp): Update.
4042 * compile/compile.c (compile_to_object): Update.
4043 * cli/cli-dump.c (restore_command): Update.
4044 * breakpoint.c (update_watchpoint)
4045 (update_inserted_breakpoint_locations)
4046 (insert_breakpoint_locations, get_bpstat_thread): Update.
4047 * target.h (target_has_execution): Remove macro.
4048 (target_has_execution_current): Don't declare.
4049 (target_has_execution): Rename from target_has_execution_1. Add
4050 argument default.
4051
4052 2020-09-28 Tom Tromey <tom@tromey.com>
4053
4054 * mi/mi-main.c (exec_reverse_continue)
4055 (mi_cmd_list_target_features): Update.
4056 * infrun.c (set_exec_direction_func): Update.
4057 * target.c (default_execution_direction): Update.
4058 * reverse.c (exec_reverse_once): Update.
4059 * target.h (target_can_execute_reverse): Now a function.
4060
4061 2020-09-28 Tom Tromey <tom@tromey.com>
4062
4063 * tui/tui-regs.c (tui_get_register)
4064 (tui_data_window::show_registers): Update.
4065 * thread.c (scoped_restore_current_thread::restore)
4066 (scoped_restore_current_thread::scoped_restore_current_thread):
4067 Update.
4068 * regcache-dump.c (regcache_print): Update.
4069 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4070 Update.
4071 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4072 * mep-tdep.c (current_me_module, current_options): Update.
4073 * linux-thread-db.c (thread_db_load): Update.
4074 * infcmd.c (registers_info, info_vector_command)
4075 (info_float_command): Update.
4076 * ia64-tdep.c (ia64_frame_prev_register)
4077 (ia64_sigtramp_frame_prev_register): Update.
4078 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4079 * gcore.c (derive_stack_segment): Update.
4080 * frame.c (get_current_frame, has_stack_frames): Update.
4081 * findvar.c (language_defn::read_var_value): Update.
4082 * arm-tdep.c (arm_pc_is_thumb): Update.
4083 * target.c (target_has_registers): Rename from
4084 target_has_registers_1.
4085 * target.h (target_has_registers): Remove macro.
4086 (target_has_registers): Rename from target_has_registers_1.
4087
4088 2020-09-28 Tom Tromey <tom@tromey.com>
4089
4090 * windows-tdep.c (tlb_make_value): Update.
4091 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4092 * thread.c (scoped_restore_current_thread::restore)
4093 (scoped_restore_current_thread::scoped_restore_current_thread)
4094 (thread_command): Update.
4095 * stack.c (backtrace_command_1, frame_apply_level_command)
4096 (frame_apply_all_command, frame_apply_command): Update.
4097 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4098 Update.
4099 * gcore.c (derive_stack_segment): Update.
4100 * frame.c (get_current_frame, has_stack_frames): Update.
4101 * auxv.c (info_auxv_command): Update.
4102 * ada-tasks.c (ada_build_task_list): Update.
4103 * target.c (target_has_stack): Rename from target_has_stack_1.
4104 * target.h (target_has_stack): Remove macro.
4105 (target_has_stack): Rename from target_has_stack_1.
4106
4107 2020-09-28 Tom Tromey <tom@tromey.com>
4108
4109 * target.c (target_has_memory): Rename from target_has_memory_1.
4110 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4111 * thread.c (scoped_restore_current_thread::restore)
4112 (scoped_restore_current_thread::scoped_restore_current_thread):
4113 Update.
4114 * frame.c (get_current_frame, has_stack_frames): Update.
4115 * target.h (target_has_memory): Remove macro.
4116 (target_has_memory): Rename from target_has_memory_1.
4117
4118 2020-09-28 Tom Tromey <tom@tromey.com>
4119
4120 * target.c (target_has_all_memory_1): Remove.
4121 * target.h (target_has_all_memory): Remove define.
4122 (target_has_all_memory_1): Don't declare.
4123
4124 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4125
4126 * ser-base.c: Adjust comments formatting.
4127
4128 2020-09-27 Tom Tromey <tom@tromey.com>
4129
4130 PR tui/25342:
4131 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4132
4133 2020-09-27 Tom Tromey <tom@tromey.com>
4134
4135 PR tui/25342:
4136 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4137
4138 2020-09-27 Tom Tromey <tom@tromey.com>
4139
4140 * unittests/tui-selftests.c: Update.
4141 * tui/tui-winsource.h (struct tui_source_window_base)
4142 <extra_margin, show_line_number, refresh_pad>: New methods.
4143 <m_max_length, m_pad>: New members.
4144 (tui_copy_source_line): Update.
4145 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4146 first_col, line_width, ndigits parameters. Add length.
4147 (tui_source_window_base::show_source_line): Write to pad. Line
4148 number now 0-based.
4149 (tui_source_window_base::refresh_pad): New method.
4150 (tui_source_window_base::show_source_content): Write to pad. Call
4151 refresh_pad.
4152 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4153 not refill.
4154 (tui_source_window_base::update_exec_info): Call
4155 show_line_number.
4156 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4157 method.
4158 <m_digits>: New member.
4159 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4160 and m_max_length.
4161 (tui_source_window::show_line_number): New method.
4162 * tui/tui-io.h (tui_puts): Fix comment.
4163 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4164 m_max_length.
4165
4166 2020-09-27 Tom Tromey <tom@tromey.com>
4167
4168 * tui/tui-winsource.c
4169 (tui_source_window_base::set_is_exec_point_at): Don't call
4170 show_source_line.
4171
4172 2020-09-27 Tom Tromey <tom@tromey.com>
4173
4174 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4175 method.
4176 <erase>: Update.
4177 <cursor_x, cursor_y>: Remove.
4178 <m_inner_window>: New member.
4179 (tui_py_window::rerender): Create inner window.
4180 (tui_py_window::output): Write to inner window.
4181
4182 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4183
4184 PR python/26586
4185 * cli/cli-script.c (execute_control_commands): don't set
4186 instream to nullptr here as this breaks the from_tty argument
4187 to gdb.execute in Python.
4188 (execute_user_command): set instream to nullptr here instead.
4189
4190 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * infrun.h (infrun_debug_printf): Fix formatting.
4193 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4194
4195 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4196
4197 * compile/compile-object-load.h (struct munmap_list): Add
4198 explicitly-defined move constructor.
4199
4200 2020-09-24 Tom Tromey <tromey@adacore.com>
4201
4202 PR tui/26638:
4203 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4204 method.
4205 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4206 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4207 (tui_prev_win): Rewrite.
4208
4209 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4210
4211 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4212 in WOW64 processes as SIGINT.
4213 * nat/windows-nat.h: Make wow64_process a shared variable.
4214 * windows-nat.c: Remove static wow64_process variable.
4215
4216 2020-09-23 Tom Tromey <tom@tromey.com>
4217
4218 PR symtab/25470:
4219 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4220 offset and bit size.
4221 * printcmd.c (print_scalar_formatted): Handle zero-length
4222 integer.
4223 (print_scalar_formatted): Use bit_size_differs_p.
4224 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4225 constant.
4226 (union type_specific): <int_stuff>: New member.
4227 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4228 methods.
4229 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4230 TYPE_SPECIFIC_FIELD.
4231 (recursive_dump_type, copy_type_recursive): Update.
4232 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4233 DW_AT_data_bit_offset.
4234
4235 2020-09-23 Tom Tromey <tom@tromey.com>
4236
4237 * utils.h (class gdb_argv): Add move operators.
4238 <append>: New methods.
4239 * compile/compile.c (build_argc_argv): Remove.
4240 (compile_args_argc): Remove.
4241 (compile_args_argv): Change type.
4242 (set_compile_args): Simplify.
4243 (append_args): Remove.
4244 (filter_args): Remove argcp parameter.
4245 (get_args): Return gdb_argv. Simplify.
4246 (compile_to_object): Update.
4247
4248 2020-09-23 Tom Tromey <tom@tromey.com>
4249
4250 * compile/compile-object-run.c (do_module_cleanup)
4251 <~do_module_cleanup> :Remove.
4252 (do_module_cleanup): Update.
4253 * compile/compile-object-load.h (struct munmap_list): Add move
4254 assignment operator.
4255 <source_file>: Now a std::string.
4256 <munmap_list>: Rename. No longer a pointer.
4257 * compile/compile-object-load.c (struct setup_sections_data): Add
4258 constructor.
4259 <setup_one_section>: Declare.
4260 <munmap_list>: Move earlier.
4261 <m_bfd>: New member.
4262 <m_last_size, m_last_section_first, m_last_prot,
4263 m_last_max_alignment>: Rename, add initializers where needed.
4264 (setup_sections_data::setup_one_section): Rename from
4265 setup_sections. Update.
4266 (compile_object_load): Update. Don't use bfd_map_over_sections.
4267
4268 2020-09-23 Tom Tromey <tom@tromey.com>
4269
4270 * compile/compile-object-run.c (struct do_module_cleanup): Add
4271 parameters to constructor. Update destructor.
4272 <source_file, scope, scope_data, out_value_type, out_value_addr,
4273 munmap_list_head, objfile_name_string>: Remove.
4274 <module>: New member.
4275 (do_module_cleanup): Update.
4276 (compile_object_run): Update.
4277
4278 2020-09-23 Tom Tromey <tom@tromey.com>
4279
4280 * compile/compile.c (eval_compile_command): Update.
4281 * compile/compile-object-run.h (compile_object_run): Take a
4282 compile_module_up.
4283 * compile/compile-object-run.c (compile_object_run): Take a
4284 compile_module_up.
4285 * compile/compile-object-load.h (struct compile_module): Add
4286 constructor, destructor.
4287 (compile_module_up): New typedef.
4288 (compile_object_load): Return compile_object_up.
4289 * compile/compile-object-load.c (compile_object_load): Return
4290 compile_module_up.
4291
4292 2020-09-23 Tom Tromey <tom@tromey.com>
4293
4294 * compile/compile-object-run.c (struct do_module_cleanup): Add
4295 constructor, destructor.
4296 <objfile_name_string>: Don't use struct hack.
4297 (do_module_cleanup): Use delete.
4298 (compile_object_run): Use new.
4299
4300 2020-09-23 Tom Tromey <tom@tromey.com>
4301
4302 * compile/compile-cplus-types.c
4303 (compile_cplus_convert_struct_or_union): Use std::vector.
4304 (compile_cplus_convert_func): Likewise.
4305 * compile/compile-c-types.c (convert_func): Use std::vector.
4306
4307 2020-09-21 Tom Tromey <tromey@adacore.com>
4308
4309 * sparc-tdep.c (sparc32_skip_prologue): Use
4310 skip_prologue_using_sal.
4311
4312 2020-09-19 Tom Tromey <tom@tromey.com>
4313
4314 * symfile.c (add_section_size_callback): Remove.
4315 (load_one_section): Rename from load_section_callback. Change
4316 parameters.
4317 (generic_load): Use foreach.
4318
4319 2020-09-19 Tom Tromey <tom@tromey.com>
4320
4321 * exec.c (add_to_section_table): Remove.
4322 (build_section_table): Use foreach.
4323
4324 2020-09-19 Tom Tromey <tom@tromey.com>
4325
4326 * elfread.c (elf_locate_sections): Change parameters.
4327 (elf_symfile_read): Use foreach.
4328
4329 2020-09-19 Tom Tromey <tom@tromey.com>
4330
4331 * cli/cli-dump.c (struct callback_data): Remove.
4332 (restore_one_section): Rename from restore_section_callback.
4333 Change parameters.
4334 (restore_binary_file): Change parameters.
4335 (restore_command): Use foreach.
4336
4337 2020-09-19 Tom Tromey <tom@tromey.com>
4338
4339 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4340 (gcore_copy_callback): Likewise.
4341 (gcore_memory_sections): Use foreach.
4342
4343 2020-09-19 Tom Tromey <tom@tromey.com>
4344
4345 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4346 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4347 parameters.
4348 (generic_elf_osabi_sniffer): Use foreach.
4349 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4350 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4351
4352 2020-09-19 Tom Tromey <tom@tromey.com>
4353
4354 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4355 (dwarf2_get_dwz_file): Use foreach.
4356 (dwarf2_locate_dwo_sections): Change parameters.
4357 (open_and_init_dwo_file): Use foreach.
4358 (dwarf2_locate_common_dwp_sections): Change parameters.
4359 (open_and_init_dwp_file): Use foreach.
4360
4361 2020-09-19 Tom Tromey <tom@tromey.com>
4362
4363 * symfile.h: (find_lowest_section): Don't declare.
4364 * symfile.c (find_lowest_section): Now static. Change
4365 parameters.
4366 (struct place_section_arg): Remove.
4367 (place_section): Change parameters.
4368 (addr_info_make_relative): Use foreach.
4369 (symfile_dummy_outputs): Remove.
4370 (default_symfile_relocate): Use foreach.
4371
4372 2020-09-19 Tom Tromey <tom@tromey.com>
4373
4374 * objfiles.c (add_to_objfile_sections): Rename from
4375 add_to_objfile_sections_full.
4376 (add_to_objfile_sections): Remove.
4377 (build_objfile_section_table): Use foreach.
4378
4379 2020-09-19 Tom Tromey <tom@tromey.com>
4380
4381 * stap-probe.c (get_stap_base_address_1): Remove.
4382 (get_stap_base_address): Use foreach.
4383
4384 2020-09-19 Tom Tromey <tom@tromey.com>
4385
4386 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4387 parameters.
4388 (gdb_bfd_close_or_warn): Use foreach.
4389
4390 2020-09-19 Tom Tromey <tom@tromey.com>
4391
4392 * corelow.c (add_to_thread_list): Change parameters.
4393 (core_target_open): Use foreach.
4394
4395 2020-09-19 Tom Tromey <tom@tromey.com>
4396
4397 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4398 existing function.
4399
4400 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4401
4402 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4403 for arrays.
4404
4405 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4406
4407 * eval.c: Remove 'f-lang.h' include.
4408 (value_f90_subarray): Moved to f-lang.c.
4409 (eval_call): Renamed to...
4410 (evaluate_subexp_do_call): ...this, is no longer static, header
4411 comment moved into header file.
4412 (evaluate_funcall): Update call to eval_call.
4413 (skip_undetermined_arglist): Moved to f-lang.c.
4414 (fortran_value_subarray): Likewise.
4415 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4416 moved to evaluate_subexp_f.
4417 (calc_f77_array_dims): Moved to f-lang.c
4418 * expprint.c (print_subexp_funcall): New function.
4419 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4420 moved to print_subexp_f, OP_FUNCALL uses new function.
4421 (dump_subexp_body_funcall): New function.
4422 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4423 moved to dump_subexp_f, OP_FUNCALL uses new function.
4424 * expression.h (evaluate_subexp_do_call): Declare.
4425 * f-lang.c (value_f90_subarray): Moved from eval.c.
4426 (skip_undetermined_arglist): Likewise.
4427 (calc_f77_array_dims): Likewise.
4428 (fortran_value_subarray): Likewise.
4429 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4430 (operator_length_f): Likewise.
4431 (print_subexp_f): Likewise.
4432 (dump_subexp_body_f): Likewise.
4433 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4434 declaration of this operation to here.
4435 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4436 support moved to operator_length_f.
4437 * parser-defs.h (dump_subexp_body_funcall): Declare.
4438 (print_subexp_funcall): Declare.
4439 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4440 fortran-operator.def.
4441
4442 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4443
4444 * eval.c (fortran_value_subarray): New function, content is taken
4445 from...
4446 (evaluate_subexp_standard): ...here, in two places. Now arrays
4447 and strings both call the new function.
4448 (calc_f77_array_dims): Add header comment, handle strings.
4449
4450 2020-09-18 Victor Collod <vcollod@nvidia.com>
4451
4452 PR gdb/26635
4453 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4454 (i386_analyze_prologue): Call i386_skip_endbr.
4455
4456 2020-09-18 Tom Tromey <tromey@adacore.com>
4457
4458 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4459 (windows_nat_target::wait): Update.
4460 * target/wait.h (enum target_wait_flag): New. Use
4461 DEF_ENUM_FLAGS_TYPE.
4462 * target/target.h (target_wait): Change type of options.
4463 * target.h (target_options_to_string, default_target_wait):
4464 Update.
4465 (struct target_ops) <wait>: Change type of options.
4466 * target.c (target_wait, default_target_wait, do_option): Change
4467 type of "options".
4468 (target_options_to_string): Likewise.
4469 * target-delegates.c: Rebuild.
4470 * target-debug.h (target_debug_print_target_wait_flags): Rename
4471 from target_debug_print_options.
4472 * sol-thread.c (class sol_thread_target) <wait>: Update.
4473 (sol_thread_target::wait): Update.
4474 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4475 (rs6000_nat_target::wait): Update.
4476 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4477 Update.
4478 (remote_target::wait_ns, remote_target::wait_as): Change type of
4479 "options".
4480 (remote_target::wait): Update.
4481 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4482 (gdbsim_target::wait): Update.
4483 * record-full.c (class record_full_base_target) <wait>: Update.
4484 (record_full_wait_1): Change type of "options".
4485 (record_full_base_target::wait): Update.
4486 * record-btrace.c (class record_btrace_target) <wait>: Update.
4487 (record_btrace_target::wait): Update.
4488 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4489 Update.
4490 (ravenscar_thread_target::wait): Update.
4491 * procfs.c (class procfs_target) <wait>: Update.
4492 (procfs_target::wait): Update.
4493 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4494 * obsd-nat.c (obsd_nat_target::wait): Update.
4495 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4496 (nto_procfs_target::wait): Update.
4497 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4498 * nbsd-nat.c (nbsd_wait): Change type of "options".
4499 (nbsd_nat_target::wait): Update.
4500 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4501 (thread_db_target::wait): Update.
4502 * linux-nat.h (class linux_nat_target) <wait>: Update.
4503 * linux-nat.c (linux_nat_target::wait): Update.
4504 (linux_nat_wait_1): Update.
4505 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4506 "options".
4507 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4508 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4509 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4510 (go32_nat_target::wait): Update.
4511 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4512 * gnu-nat.c (gnu_nat_target::wait): Update.
4513 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4514 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4515 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4516 * darwin-nat.c (darwin_nat_target::wait): Update.
4517 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4518 (bsd_uthread_target::wait): Update.
4519 * aix-thread.c (class aix_thread_target) <wait>: Update.
4520 (aix_thread_target::wait): Update.
4521
4522 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 * compile/compile-object-run.c (create_copied_type_recursive): New
4525 function.
4526 (compile_object_run): Use new function.
4527
4528 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4529
4530 * NEWS: Mention x86_64 Cygwin core file support.
4531
4532 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4533
4534 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4535 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4536
4537 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4538
4539 * windows-tdep.h: Add prototypes.
4540 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4541 (i386_windows_core_pid_to_str): Move and rename ...
4542 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4543 (windows_core_pid_to_str): ... and here.
4544 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4545
4546 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4547 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4548 (amd64_windows_init_abi_common): ... and register.
4549
4550 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4551
4552 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4553 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4554
4555 2020-09-18 Pedro Alves <pedro@palves.net>
4556
4557 PR gdb/26631
4558 * thread.c (thread_find_command): Switch inferior before calling
4559 target methods.
4560
4561 2020-09-17 Tom Tromey <tromey@adacore.com>
4562
4563 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4564 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4565 (tdesc_arch_data_up): New typedef.
4566 (tdesc_use_registers, tdesc_data_alloc): Update.
4567 (tdesc_data_cleanup): Don't declare.
4568 * target-descriptions.c (tdesc_data_alloc): Return a
4569 tdesc_arch_data_up.
4570 (tdesc_arch_data_deleter::operator()): Rename from
4571 tdesc_data_cleanup. Change argument type.
4572 (tdesc_use_registers): Change early_data to an rvalue reference.
4573 (tdesc_use_registers): Don't use delete.
4574 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4575 * s390-tdep.c (s390_gdbarch_init): Update.
4576 * rx-tdep.c (rx_gdbarch_init): Update.
4577 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4578 * riscv-tdep.c (riscv_gdbarch_init): Update.
4579 * or1k-tdep.c (or1k_gdbarch_init): Update.
4580 * nios2-tdep.c (nios2_gdbarch_init): Update.
4581 * nds32-tdep.c (nds32_gdbarch_init): Update.
4582 * mips-tdep.c (mips_gdbarch_init): Update.
4583 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4584 * m68k-tdep.c (m68k_gdbarch_init): Update.
4585 * i386-tdep.c (i386_gdbarch_init): Update.
4586 * arm-tdep.c (arm_gdbarch_init): Update.
4587 * arc-tdep.c (arc_tdesc_init): Update.
4588 (arc_gdbarch_init): Update.
4589 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4590
4591 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4592
4593 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4594 for WOW64 processes.
4595
4596 2020-09-17 Tom Tromey <tom@tromey.com>
4597
4598 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4599
4600 2020-09-17 Tom Tromey <tom@tromey.com>
4601
4602 * value.c (preserve_values): Update.
4603 * python/py-type.c (save_objfile_types): Update.
4604 * guile/scm-type.c (save_objfile_types): Update.
4605 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4606 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4607 * compile/compile-object-run.c (compile_object_run): Update.
4608
4609 2020-09-17 Tom Tromey <tom@tromey.com>
4610
4611 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4612 Remove.
4613 <m_table>: Now htab_up.
4614 * typeprint.c (typedef_hash_table::recursively_update)
4615 (typedef_hash_table::add_template_parameters)
4616 (typedef_hash_table::typedef_hash_table): Update.
4617 (typedef_hash_table::~typedef_hash_table): Remove.
4618 (typedef_hash_table::typedef_hash_table)
4619 (typedef_hash_table::find_global_typedef)
4620 (typedef_hash_table::find_typedef): Update.
4621
4622 2020-09-17 Tom Tromey <tom@tromey.com>
4623
4624 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4625
4626 2020-09-17 Tom Tromey <tom@tromey.com>
4627
4628 * linespec.c (class decode_compound_collector)
4629 <~decode_compound_collector>: Remove.
4630 <m_unique_syms>: Now htab_up.
4631 (decode_compound_collector::operator ()): Update.
4632 (class symtab_collector) <~symtab_collector>: Remove.
4633 <m_symtab_table>: Now htab_up.
4634 (symtab_collector::operator ()): Update.
4635
4636 2020-09-17 Tom Tromey <tom@tromey.com>
4637
4638 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4639 (filename_seen_cache::clear): Update.
4640 (~filename_seen_cache): Remove.
4641 (filename_seen_cache::seen): Update.
4642 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4643 htab_up.
4644 <~filename_seen_cache>: Remove.
4645 <traverse>: Update.
4646
4647 2020-09-17 Tom Tromey <tom@tromey.com>
4648
4649 * completer.c (completion_tracker::discard_completions)
4650 (completion_tracker::~completion_tracker)
4651 (completion_tracker::maybe_add_completion)
4652 (completion_tracker::remove_completion)
4653 (completion_tracker::recompute_lowest_common_denominator)
4654 (completion_tracker::build_completion_result): Update.
4655 * completer.h (class completion_tracker) <have_completions>:
4656 Update.
4657 <m_entries_hash>: Now htab_up.
4658
4659 2020-09-17 Tom Tromey <tom@tromey.com>
4660
4661 * breakpoint.c (ambiguous_names_p): Use htab_up.
4662
4663 2020-09-17 Tom Tromey <tom@tromey.com>
4664
4665 * auto-load.c (struct auto_load_pspace_info)
4666 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4667 <loaded_script_files, loaded_script_texts>: Change type to
4668 htab_up.
4669 (~auto_load_pspace_info) Remove.
4670 (init_loaded_scripts_info, maybe_add_script_file)
4671 (maybe_add_script_text, auto_load_info_scripts): Update.
4672
4673 2020-09-17 Tom Tromey <tromey@adacore.com>
4674
4675 * c-exp.y (name_obstack): Now static.
4676
4677 2020-09-17 Chungyi Chi <demonic@csie.io>
4678
4679 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4680
4681 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4684 (add_solib_catchpoint): Likewise.
4685 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4686 to bool.
4687 (add_solib_catchpoint): Change int parameter/variable to bool.
4688 (catch_load_or_unload): Likewise.
4689 (init_catchpoint): Likewise.
4690 (create_fork_vfork_event_catchpoint): Likewise.
4691 (catch_fork_command_1): Likewise.
4692 (catch_exec_command_1): Likewise.
4693
4694 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4697 Change instance_flags to m_instance_flags.
4698
4699 2020-09-16 Tom Tromey <tromey@adacore.com>
4700
4701 PR gdb/26598:
4702 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4703
4704 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4705
4706 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4707 PL_FLAG_EXEC.
4708 (fbsd_nat_target::insert_exec_catchpoint)
4709 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4710 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4711 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4712
4713 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4714
4715 * configure.ac: Remove check for kinfo_getvmmap().
4716 * configure, config.in: Regenerate.
4717 * fbsd-nat.c (fbsd_read_mapping): Remove
4718 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4719 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4720 kinfo_get_vmmap() are always present.
4721
4722 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4723
4724 * fbsd-nat.c: Always include support for
4725 TARGET_OBJECT_SIGNAL_INFO.
4726
4727 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4728
4729 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4730 sysctl and remove procfs fallback.
4731
4732 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4733
4734 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4735 * fbsd-nat.h: Likewise.
4736
4737 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4738
4739 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4740 argument.
4741
4742 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4743
4744 * ada-lang.c (ada_language_data): Delete.
4745 (ada_language): Remove references to ada_language_data.
4746 * c-lang.c (c_language_data): Delete.
4747 (c_language): Remove references to c_language_data.
4748 (cplus_language_data): Delete.
4749 (cplus_language): Remove references to cplus_language_data.
4750 (asm_language_data): Delete.
4751 (asm_language): Remove references to asm_language_data.
4752 (minimal_language_data): Delete.
4753 (minimal_language): Remove references to minimal_language_data.
4754 * d-lang.c (d_language_data): Delete.
4755 (d_language): Remove references to d_language_data.
4756 * f-lang.c (f_language_data): Delete.
4757 (f_language): Remove references to f_language_data.
4758 * go-lang.c (go_language_data): Delete.
4759 (go_language): Remove references to go_language_data.
4760 * language.c (unknown_language_data): Delete.
4761 (unknown_language): Remove references to unknown_language_data.
4762 (auto_language_data): Delete.
4763 (auto_language): Remove references to auto_language_data.
4764 * language.h (language_data): Delete struct.
4765 (language_defn): No longer inherit from language_data.
4766 * m2-lang.c (m2_language_data): Delete.
4767 (m2_language): Remove references to m2_language_data.
4768 * objc-lang.c (objc_language_data): Delete.
4769 (objc_language): Remove references to objc_language_data.
4770 * opencl-lang.c (opencl_language_data): Delete.
4771 (opencl_language): Remove references to opencl_language_data.
4772 * p-lang.c (pascal_language_data): Delete.
4773 (pascal_language): Remove references to pascal_language_data.
4774 * rust-lang.c (rust_language_data): Delete.
4775 (rust_language): Remove references to rust_language_data.
4776
4777 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4778
4779 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4780 initializer.
4781 (ada_language::opcode_print_table): New member function.
4782 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4783 (c_language::opcode_print_table): New member function.
4784 (cplus_language_data): Remove la_op_print_tab initializer.
4785 (cplus_language::opcode_print_table): New member function.
4786 (asm_language_data): Remove la_op_print_tab initializer.
4787 (asm_language::opcode_print_table): New member function.
4788 (minimal_language_data): Remove la_op_print_tab initializer.
4789 (minimal_language::opcode_print_table): New member function.
4790 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4791 (d_language::opcode_print_table): New member function.
4792 * expprint.c (print_subexp_standard): Update call to
4793 opcode_print_table.
4794 (op_string): Likewise.
4795 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4796 (f_language::opcode_print_table): New member function.
4797 * go-lang.c (go_language_data): Remove la_op_print_tab
4798 initializer.
4799 (go_language::opcode_print_table): New member function.
4800 * language.c (unknown_language_data): Remove la_op_print_tab
4801 initializer.
4802 (unknown_language::opcode_print_table): New member function.
4803 (auto_language_data): Remove la_op_print_tab initializer.
4804 (auto_language::opcode_print_table): New member function.
4805 * language.h (language_data): Remove la_op_print_tab field.
4806 (language_defn::opcode_print_table): Declare new member function.
4807 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4808 initializer.
4809 (m2_language::opcode_print_table): New member function.
4810 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4811 initializer.
4812 (objc_language::opcode_print_table): New member function.
4813 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4814 initializer.
4815 (opencl_language::opcode_print_table): New member function.
4816 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4817 initializer.
4818 (pascal_language::opcode_print_table): New member function.
4819 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4820 initializer.
4821 (rust_language::opcode_print_table): New member function.
4822
4823 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4824
4825 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4826 (ada_language::expression_ops): New member function.
4827 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4828 (c_language::expression_ops): New member function.
4829 (cplus_language_data): Remove la_exp_desc initializer.
4830 (cplus_language::expression_ops): New member function.
4831 (asm_language_data): Remove la_exp_desc initializer.
4832 (asm_language::expression_ops): New member function.
4833 (minimal_language_data): Remove la_exp_desc initializer.
4834 (minimal_language::expression_ops): New member function.
4835 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4836 (d_language::expression_ops): New member function.
4837 * eval.c (evaluate_subexp): Update call to expression_ops.
4838 * expprint.c (print_subexp): Likewise.
4839 (op_name): Likewise.
4840 (dump_subexp_body): Likewise.
4841 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4842 (f_language::expression_ops): New member function.
4843 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4844 (go_language::expression_ops): New member function.
4845 * language.c (language_defn::expression_ops): New function.
4846 (unknown_language_data): Remove la_exp_desc initializer.
4847 (auto_language_data): Likewise.
4848 * language.h (language_data): Remove la_exp_desc field.
4849 (language_defn::expression_ops): Declare new member function.
4850 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4851 (m2_language::expression_ops): New member function.
4852 * objc-lang.c (objc_language_data): Remove la_exp_desc
4853 initializer.
4854 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4855 initializer.
4856 (opencl_language::expression_ops): New member function.
4857 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4858 * parse.c (operator_length): Update call to expression_ops.
4859 (exp_iterate): Likewise.
4860 * rust-lang.c (rust_language_data): Remove la_exp_desc
4861 initializer.
4862 (ruse_language::expression_ops): New member function.
4863
4864 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4865
4866 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4867 initializer.
4868 (ada_language::varobj_ops): New member function.
4869 * c-lang.c (c_language_data): Remove la_varobj_ops
4870 initializer.
4871 (cplus_language_data): Likewise.
4872 (cplus_language::varobj_ops): New member function.
4873 (asm_language_data): Remove la_varobj_ops initializer.
4874 (minimal_language_data): Likewise.
4875 * d-lang.c (d_language_data): Likewise.
4876 * f-lang.c (f_language_data): Likewise.
4877 * go-lang.c (go_language_data): Likewise.
4878 * language.c (language_defn::varobj_ops): New function.
4879 (unknown_language_data): Remove la_varobj_ops
4880 initializer.
4881 (auto_language_data): Likewise.
4882 * language.h (language_data): Remove la_varobj_ops field.
4883 (language_defn::varobj_ops): Declare new member function.
4884 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4885 * objc-lang.c (objc_language_data): Likewise.
4886 * opencl-lang.c (opencl_language_data): Likewise.
4887 * p-lang.c (pascal_language_data): Likewise.
4888 * rust-lang.c (rust_language_data): Likewise.
4889 * varobj.c (varobj_create): Update call to varobj_ops.
4890 * varobj.h (default_varobj_ops): Delete define.
4891
4892 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4893
4894 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4895 initializer.
4896 * c-lang.c (c_language_data): Likewise.
4897 (c_language::macro_expansion): New member function.
4898 (cplus_language_data): Likewise.
4899 (cplus_language::macro_expansion): New member function.
4900 (asm_language_data): Likewise.
4901 (asm_language::macro_expansion): New member function.
4902 (minimal_language_data): Likewise.
4903 (minimal_language::macro_expansion): New member function.
4904 * d-lang.c (d_language_data): Remove la_macro_expansion
4905 initializer.
4906 * f-lang.c (f_language_data): Likewise.
4907 * go-lang.c (go_language_data): Likewise.
4908 * language.c (unknown_language_data): Likewise.
4909 (auto_language_data): Likewise.
4910 * language.h (language_data): Remove la_macro_expansion field.
4911 (language_defn::macro_expansion): New member function.
4912 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4913 initializer.
4914 * objc-lang.c (objc_language_data): Likewise.
4915 (objc_language::macro_expansion): New member function.
4916 * opencl-lang.c (opencl_language_data): Likewise.
4917 (opencl_language::macro_expansion): New member function.
4918 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4919 initializer.
4920 * rust-lang.c (rust_language_data): Likewise.
4921 * symtab.c (default_collect_symbol_completion_matches_break_on):
4922 Update call to macro_expansion.
4923
4924 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4925
4926 * ada-lang.c (ada_language_data): Remove la_array_ordering
4927 initializer.
4928 * c-lang.c (c_language_data): Likewise.
4929 (cplus_language_data): Likewise.
4930 (asm_language_data): Likewise.
4931 (minimal_language_data): Likewise.
4932 * d-lang.c (d_language_data): Likewise.
4933 * dwarf2/read.c (read_array_order): Update for call to
4934 array_ordering.
4935 * f-lang.c (f_language_data): Remove la_array_ordering
4936 initializer.
4937 (f_language::array_ordering): New member function.
4938 * go-lang.c (go_language_data): Remove la_array_ordering
4939 initializer.
4940 * language.c (unknown_language_data): Likewise.
4941 (auto_language_data): Likewise.
4942 * language.h (language_data): Delete la_array_ordering field.
4943 (language_defn::array_ordering): New member function.
4944 * m2-lang.c (m2_language_data): Remove la_array_ordering
4945 initializer.
4946 * objc-lang.c (objc_language_data): Likewise.
4947 * opencl-lang.c (opencl_language_data): Likewise.
4948 * p-lang.c (pascal_language_data): Likewise.
4949 * rust-lang.c (rust_language_data): Likewise.
4950
4951 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4952
4953 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4954 initializer.
4955 * c-lang.c (c_language_data): Likewise.
4956 (cplus_language_data): Likewise.
4957 (asm_language_data): Likewise.
4958 (minimal_language_data): Likewise.
4959 * d-lang.c (d_language_data): Likewise.
4960 * f-lang.c (f_language_data): Likewise.
4961 (f_language::case_sensitivity): New member function.
4962 * go-lang.c (go_language_data): Remove la_case_sensitivity
4963 initializer.
4964 * language.c (enum case_mode): Moved here from language.h.
4965 (case_mode): Make static.
4966 (show_case_command): Update for case_sensitivity being a method.
4967 (set_case_command): Likewise.
4968 (set_range_case): Likewise.
4969 (unknown_language_data): Remove la_case_sensitivity initializer.
4970 (auto_language_data): Likewise.
4971 * language.h (case_mode): Delete, move enum declaration to
4972 language.c.
4973 (language_data): Delete la_case_sensitivity field.
4974 (language_defn::case_sensitivity): New member function.
4975 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4976 initializer.
4977 * objc-lang.c (objc_language_data): Likewise.
4978 * opencl-lang.c (opencl_language_data): Likewise.
4979 * p-lang.c (pascal_language_data): Likewise.
4980 * rust-lang.c (rust_language_data): Likewise.
4981
4982 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4983
4984 * ada-lang.c (ada_language_data): Remove la_range_check
4985 initializer.
4986 * c-lang.c (c_language_data): Likewise.
4987 (cplus_language_data): Likewise.
4988 (asm_language_data): Likewise.
4989 (minimal_language_data): Likewise.
4990 * d-lang.c (d_language_data): Likewise.
4991 * f-lang.c (f_language_data): Likewise.
4992 (f_language::range_checking_on_by_default): New member function.
4993 * go-lang.c (go_language_data): Remove la_range_check initializer.
4994 * language.c (enum range_mode): Moved here from language.h.
4995 (range_mode): Made static.
4996 (show_range_command): Update to use
4997 range_checking_on_by_default.
4998 (set_range_command): Likewise.
4999 (set_range_case): Likewise.
5000 (unknown_language_data): Remove la_range_check initializer.
5001 (auto_language_data): Likewise.
5002 * language.h (range_mode): Delete. Enum definition moved to
5003 language.c.
5004 (language_data): Remove la_range_check field.
5005 (language_defn::range_checking_on_by_default): New member
5006 function.
5007 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5008 (m2_language::range_checking_on_by_default): New member function.
5009 * objc-lang.c (objc_language_data): Remove la_range_check
5010 initializer.
5011 * opencl-lang.c (opencl_language_data): Likewise.
5012 * p-lang.c (pascal_language_data): Likewise.
5013 (pascal_language::range_checking_on_by_default): New member
5014 function.
5015 * rust-lang.c (rust_language_data): Remove la_range_check
5016 initializer.
5017 (rust_language::range_checking_on_by_default): New member
5018 function.
5019
5020 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5021
5022 * dwarf2/read.c (dwarf2_physname): Remove special case for
5023 language_go.
5024 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5025 member function.
5026
5027 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * ada-lang.c (ada_language_data): Remove
5030 la_store_sym_names_in_linkage_form_p initializer.
5031 (ada_language::store_sym_names_in_linkage_form_p): New member
5032 function.
5033 * c-lang.c (c_language_data): Remove
5034 la_store_sym_names_in_linkage_form_p initializer.
5035 (c_language::store_sym_names_in_linkage_form_p): New member
5036 function.
5037 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5038 initializer.
5039 (asm_language_data): Likewise.
5040 (asm_language::store_sym_names_in_linkage_form_p): New member
5041 function.
5042 (minimal_language_data): Remove
5043 la_store_sym_names_in_linkage_form_p initializer.
5044 (minimal_language::store_sym_names_in_linkage_form_p): New member
5045 function.
5046 * d-lang.c (d_language_data): Remove
5047 la_store_sym_names_in_linkage_form_p initializer.
5048 * dwarf2/read.c (dwarf2_physname): Update call to
5049 store_sym_names_in_linkage_form_p.
5050 * f-lang.c (f_language_data): Remove
5051 la_store_sym_names_in_linkage_form_p initializer.
5052 * go-lang.c (go_language_data): Remove
5053 la_store_sym_names_in_linkage_form_p initializer.
5054 * language.c (unknown_language_data): Remove
5055 la_store_sym_names_in_linkage_form_p initializer.
5056 (unknown_language::store_sym_names_in_linkage_form_p): New member
5057 function.
5058 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5059 initializer.
5060 (auto_language::store_sym_names_in_linkage_form_p): New member
5061 function.
5062 * language.h (language_data): Remove
5063 la_store_sym_names_in_linkage_form_p member variable.
5064 (language_defn::store_sym_names_in_linkage_form_p): New member
5065 function.
5066 * m2-lang.c (m2_language_data): Remove
5067 la_store_sym_names_in_linkage_form_p initializer.
5068 * objc-lang.c (objc_language_data): Likewise.
5069 * opencl-lang.c (opencl_language_data): Likewise.
5070 * p-lang.c (pascal_language_data): Likewise.
5071 * rust-lang.c (rust_language_data): Likewise.
5072
5073 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5074
5075 * ada-lang.c (ada_language_data): Remove string_lower_bound
5076 initializer.
5077 * c-lang.c (c_language_data): Likewise.
5078 (cplus_language_data): Likewise.
5079 (asm_language_data): Likewise.
5080 (minimal_language_data): Likewise.
5081 * d-lang.c (d_language_data): Likewise.
5082 * f-lang.c (f_language_data): Likewise.
5083 * go-lang.c (go_language_data): Likewise.
5084 * language.c (unknown_language_data): Likewise.
5085 (auto_language_data): Likewise.
5086 * language.h (language_data): Remove string_lower_bound field.
5087 (language_defn::string_lower_bound): New member function.
5088 * m2-lang.c (m2_language_data): Remove string_lower_bound
5089 initializer.
5090 (m2_language::string_lower_bound): New member function.
5091 * objc-lang.c (objc_language_data): Remove string_lower_bound
5092 initializer.
5093 * opencl-lang.c (opencl_language_data): Likewise.
5094 * p-lang.c (pascal_language_data): Likewise.
5095 * rust-lang.c (rust_language_data): Likewise.
5096 * valops.c (value_cstring): Update call to string_lower_bound.
5097 (value_string): Likewise.
5098 * value.c (allocate_repeated_value): Likewise.
5099
5100 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * valops.c (value_repeat): Fix incorrect argument name in comment.
5103
5104 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5105
5106 * ada-lang.c (ada_language_data): Remove c_style_arrays
5107 initializer.
5108 (ada_language::c_style_arrays_p): New member fuction.
5109 * c-lang.c (c_language_data): Remove c_style_arrays
5110 initializer.
5111 (cplus_language_data): Likewise.
5112 (asm_language_data): Likewise.
5113 (minimal_language_data): Likewise.
5114 * d-lang.c (d_language_data): Likewise.
5115 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5116 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5117 (f_language::c_style_arrays_p): New member function.
5118 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5119 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5120 * language.c (unknown_language_data): Remove c_style_arrays
5121 initializer.
5122 (auto_language_data): Likewise.
5123 * language.h (language_data): Remove c_style_arrays field.
5124 (language_defn::c_style_arrays_p): New member function.
5125 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5126 (m2_language::c_style_arrays_p): New member function.
5127 * objc-lang.c (objc_language_data): Remove c_style_arrays
5128 initializer.
5129 * opencl-lang.c (opencl_language_data): Likewise.
5130 * p-lang.c (pascal_language_data): Likewise.
5131 * rust-lang.c (rust_language_data): Likewise.
5132 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5133 and update local variable to a bool.
5134 * valops.c (value_cast): Update call to c_style_arrays_p.
5135 (value_array): Likewise.
5136 * value.c (coerce_array): Likewise.
5137
5138 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5139
5140 * ada-lang.c (ada_language_data): Remove la_language initializer.
5141 * c-lang.c (c_language_data): Likewise.
5142 (cplus_language_data): Likewise.
5143 (asm_language_data): Likewise.
5144 (minimal_language_data): Likewise.
5145 * d-lang.c (d_language_data): Likewise.
5146 * f-lang.c (f_language_data): Likewise.
5147 * go-lang.c (go_language_data): Likewise.
5148 * language.c (unknown_language_data): Likewise.
5149 (auto_language_data): Likewise.
5150 * language.h (language_data): Remove la_language field.
5151 (language_defn::language_defn): Initialise la_language field.
5152 (language_defn::la_language): New member variable.
5153 * m2-lang.c (m2_language_data): Remove la_language field.
5154 * objc-lang.c (objc_language_data): Likewise.
5155 * opencl-lang.c (opencl_language_data): Likewise.
5156 * p-lang.c (pascal_language_data): Likewise.
5157 * rust-lang.c (rust_language_data): Likewise.
5158
5159 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_extensions): Delete, moved into
5162 ada_language::filename_extensions.
5163 (ada_language_data): Remove la_filename_extensions initializer.
5164 (ada_language::filename_extensions): New member function.
5165 * c-lang.c (c_extensions): Delete, moved into
5166 c_language::filename_extensions.
5167 (c_language_data): Remove la_filename_extensions initializer.
5168 (c_language::filename_extensions): New member function.
5169 (cplus_extensions): Delete, moved into
5170 cplus_language::filename_extensions.
5171 (cplus_language_data): Remove la_filename_extensions initializer.
5172 (cplus_language::filename_extensions): New member function.
5173 (asm_extensions): Delete, moved into
5174 asm_language::filename_extensions.
5175 (asm_language_data): Remove la_filename_extensions initializer.
5176 (asm_language::filename_extensions): New member function.
5177 (minimal_language_data): Remove la_filename_extensions
5178 initializer.
5179 * d-lang.c (d_extensions): Delete, moved into
5180 d_language::filename_extensions.
5181 (d_language_data): Remove la_filename_extensions initializer.
5182 (d_language::filename_extensions): New member function.
5183 * f-lang.c (f_extensions): Delete, moved into
5184 f_language::filename_extensions.
5185 (f_language_data): Remove la_filename_extensions initializer.
5186 (f_language::filename_extensions): New member function.
5187 * go-lang.c (go_language_data): Remove la_filename_extensions
5188 initializer.
5189 * language.c (add_set_language_command): Update now that
5190 filename_extensions returns a vector.
5191 (unknown_language_data): Remove la_filename_extensions
5192 initializer.
5193 (auto_language_data): Likewise.
5194 * language.h (language_data): Remove la_filename_extensions field.
5195 (language_defn::filename_extensions): New member function.
5196 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5197 initializer.
5198 * objc-lang.c (objc_extensions): Delete, moved into
5199 objc_language::filename_extensions.
5200 (objc_language_data): Remove la_filename_extensions initializer.
5201 (objc_language::filename_extensions): New member function.
5202 * opencl-lang.c (opencl_language_data): Remove
5203 la_filename_extensions initializer.
5204 * p-lang.c (pascal_extensions): Delete, moved into
5205 pascal_language::filename_extensions.
5206 (pascal_language_data): Remove la_filename_extensions initializer.
5207 (pascal_language::filename_extensions): New member function.
5208 * rust-lang.c (rust_extensions): Delete, moved into
5209 rust_language::filename_extensions.
5210 (rust_language_data): Remove la_filename_extensions initializer.
5211 (rust_language::filename_extensions): New member function.
5212 * symfile.c (add_filename_language): Add new assert.
5213
5214 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5215
5216 * ada-lang.c (ada_language_data): Remove la_name and
5217 la_natural_name initializers.
5218 (ada_language::name): New member function.
5219 (ada_language::natural_name): New member function.
5220 * c-lang.c (c_language_data): Remove la_name and
5221 la_natural_name initializers.
5222 (c_language::name): New member function.
5223 (c_language::natural_name): New member function.
5224 (cplus_language_data): Remove la_name and
5225 la_natural_name initializers.
5226 (cplus_language::name): New member function.
5227 (cplus_language::natural_name): New member function.
5228 (asm_language_data): Remove la_name and
5229 la_natural_name initializers.
5230 (asm_language::name): New member function.
5231 (asm_language::natural_name): New member function.
5232 (minimal_language_data): Remove la_name and
5233 la_natural_name initializers.
5234 (minimal_language::name): New member function.
5235 (minimal_language::natural_name): New member function.
5236 * compile/compile.c (compile_to_object): Update call to
5237 lanugage_defn::name.
5238 * d-lang.c (d_language_data): Remove la_name and
5239 la_natural_name initializers.
5240 (d_language::name): New member function.
5241 (d_language::natural_name): New member function.
5242 * expprint.c (print_subexp_standard): Update call to
5243 language_defn::name.
5244 (dump_raw_expression): Likewise
5245 (dump_prefix_expression): Likewise.
5246 * f-lang.c (f_language_data): Remove la_name and
5247 la_natural_name initializers.
5248 (f_language::name): New member function.
5249 (f_language::natural_name): New member function.
5250 * go-lang.c (go_language_data): Remove la_name and
5251 la_natural_name initializers.
5252 (go_language::name): New member function.
5253 (go_language::natural_name): New member function.
5254 * language.c (show_language_command): Update call to
5255 language_defn::name.
5256 (set_language_command): Likewise.
5257 (language_enum): Likewise.
5258 (language_str): Likewise.
5259 (add_set_language_command): Likewise, use
5260 language_defn::natural_name in the doc string.
5261 (unknown_language_data): Remove la_name and
5262 la_natural_name initializers.
5263 (unknown_language::name): New member function.
5264 (unknown_language::natural_name): New member function.
5265 (auto_language_data): Remove la_name and
5266 la_natural_name initializers.
5267 (auto_language::name): New member function.
5268 (auto_language::natural_name): New member function.
5269 (language_lookup_primitive_type_as_symbol): Update call to
5270 language_defn::name.
5271 * language.h (language_data): Remove la_name and la_natural_name
5272 member variables.
5273 (language_defn::name): New member function.
5274 (language_defn::natural_name): New member function.
5275 * m2-lang.c (m2_language_data): Remove la_name and
5276 la_natural_name initializers.
5277 (m2_language::name): New member function.
5278 (m2_language::natural_name): New member function.
5279 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5280 language_defn::natural_name.
5281 * objc-lang.c (objc_language_data): Remove la_name and
5282 la_natural_name initializers.
5283 (objc_language::name): New member function.
5284 (objc_language::natural_name): New member function.
5285 * opencl-lang.c (opencl_language_data): Remove la_name and
5286 la_natural_name initializers.
5287 (opencl_language::name): New member function.
5288 (opencl_language::natural_name): New member function.
5289 * p-lang.c (pascal_language_data): Remove la_name and
5290 la_natural_name initializers.
5291 (pascal_language::name): New member function.
5292 (pascal_language::natural_name): New member function.
5293 * rust-lang.c (rust_language_data): Remove la_name and
5294 la_natural_name initializers.
5295 (rust_language::name): New member function.
5296 (rust_language::natural_name): New member function.
5297 * symtab.c (lookup_language_this): Update call to
5298 language_defn::name.
5299
5300 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5301
5302 * ada-lang.c (ada_language_data): Remove la_name_of_this
5303 initializer.
5304 * ax-gdb.c (gen_expr): Update call to name_of_this.
5305 * c-exp.y (classify_name): Likewise.
5306 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5307 (cplus_language_data): Likewise.
5308 (cplus_language::name_of_this): New member function.
5309 (asm_language_data): Remove la_name_of_this initializer.
5310 (minimal_language_data): Likewise.
5311 * d-lang.c (d_language_data): Likewise.
5312 (d_language::name_of_this): New member function.
5313 * expprint.c (print_subexp_standard): Update call to name_of_this.
5314 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5315 * go-lang.c (go_language_data): Likewise.
5316 * language.c (unknown_language_data): Likewise.
5317 (unknown_language::name_of_this): New member function.
5318 (auto_language_data): Remove la_name_of_this initializer.
5319 (auto_language::name_of_this): New member function.
5320 * language.h (language_data): Delete la_name_of_this member
5321 variable.
5322 (language_defn::name_of_this): New member function.
5323 * m2-lang.c (m2_language_data): Remove la_name_of_this
5324 initializer.
5325 * objc-lang.c (objc_language_data): Likewise.
5326 (objc_language::name_of_this): New member function.
5327 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5328 initializer.
5329 * p-lang.c (pascal_language_data): Likewise.
5330 (pascal_language::name_of_this): New member function.
5331 * rust-lang.c (rust_language_data): Remove la_name_of_this
5332 initializer.
5333 * symtab.c (lookup_language_this): Update call to name_of_this.
5334 (lookup_symbol_aux): Likewise.
5335 * valops.c (value_of_this): Likewise.
5336
5337 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5338
5339 * ada-lang.c (ada_language_data): Remove
5340 la_struct_too_deep_ellipsis initializer.
5341 (ada_language::struct_too_deep_ellipsis): New member function.
5342 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5343 initializer.
5344 (cplus_language_data): Likewise.
5345 (asm_language_data): Likewise.
5346 (minimal_language_data): Likewise.
5347 * cp-valprint.c (cp_print_value): Update call to
5348 struct_too_deep_ellipsis.
5349 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5350 initializer.
5351 * f-lang.c (f_language_data): Likewise.
5352 (f_language::struct_too_deep_ellipsis): New member function.
5353 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5354 initializer.
5355 * language.c (unknown_language_data): Likewise.
5356 (auto_language_data): Likewise.
5357 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5358 member variable.
5359 (language_defn::struct_too_deep_ellipsis): New member function.
5360 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5361 initializer.Q
5362 * objc-lang.c (objc_language_data): Likewise.
5363 * opencl-lang.c (opencl_language_data): Likewise.
5364 * p-lang.c (pascal_language_data): Likewise.
5365 * rust-lang.c (rust_language_data): Likewise.
5366 * valprint.c (val_print_check_max_depth): Update call to
5367 struct_too_deep_ellipsis.
5368
5369 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5370
5371 * MAINTAINERS (Write After Approval): Add myself.
5372
5373 2020-09-15 Tom Tromey <tom@tromey.com>
5374
5375 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5376 Remove.
5377
5378 2020-09-15 Tom Tromey <tom@tromey.com>
5379
5380 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5381 and TYPE_CODE_METHODPTR cases.
5382 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5383 (c_value_print_inner): Update.
5384 * valprint.c (generic_value_print_memberptr): New function, from
5385 c_value_print_memberptr.
5386 (generic_value_print): Use it. Call cplus_print_method_ptr.
5387
5388 2020-09-15 Tom Tromey <tromey@adacore.com>
5389
5390 * python/python-internal.h (PyInt_FromLong): Remove define.
5391 * python/py-value.c (convert_value_from_python): Use
5392 gdb_py_object_from_longest.
5393 * python/py-type.c (typy_get_code): Use
5394 gdb_py_object_from_longest.
5395 * python/py-symtab.c (salpy_get_line): Use
5396 gdb_py_object_from_longest.
5397 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5398 gdb_py_object_from_longest.
5399 * python/py-record.c (recpy_gap_reason_code): Use
5400 gdb_py_object_from_longest.
5401 * python/py-record-btrace.c (recpy_bt_insn_size)
5402 (recpy_bt_func_level, btpy_list_count): Use
5403 gdb_py_object_from_longest.
5404 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5405 gdb_py_object_from_longest. Fix error handling.
5406 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5407 gdb_py_object_from_longest.
5408 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5409 gdb_py_object_from_longest.
5410 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5411 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5412 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5413
5414 2020-09-15 Tom Tromey <tromey@adacore.com>
5415
5416 * python/python.c (gdbpy_parameter_value): Use
5417 gdb_py_object_from_ulongest.
5418
5419 2020-09-15 Tom Tromey <tromey@adacore.com>
5420
5421 * python/py-infevents.c (create_register_changed_event_object):
5422 Use gdb_py_object_from_longest.
5423 * python/py-exitedevent.c (create_exited_event_object): Use
5424 gdb_py_object_from_longest.
5425
5426 2020-09-15 Tom Tromey <tromey@adacore.com>
5427
5428 * python/python.c (gdbpy_parameter_value): Use
5429 gdb_py_object_from_longest.
5430 * python/py-type.c (convert_field, typy_range): Use
5431 gdb_py_object_from_longest.
5432 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5433 gdb_py_object_from_longest.
5434 * python/py-lazy-string.c (stpy_get_length): Use
5435 gdb_py_object_from_longest.
5436 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5437 gdb_py_object_from_longest.
5438 * python/py-infevents.c (create_memory_changed_event_object): Use
5439 gdb_py_object_from_longest.
5440 * python/py-inferior.c (infpy_get_num): Use
5441 gdb_py_object_from_longest.
5442 (infpy_get_pid): Likewise.
5443
5444 2020-09-15 Tom Tromey <tromey@adacore.com>
5445
5446 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5447 defines.
5448 * python/py-value.c (valpy_long): Use
5449 gdb_py_object_from_ulongest.
5450 * python/py-symtab.c (salpy_get_pc): Use
5451 gdb_py_object_from_ulongest.
5452 (salpy_get_last): Likewise.
5453 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5454 gdb_py_object_from_ulongest.
5455 * python/py-lazy-string.c (stpy_get_address): Use
5456 gdb_py_object_from_ulongest.
5457 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5458 * python/py-arch.c (archpy_disassemble): Use
5459 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5460 error handling.
5461
5462 2020-09-15 Tom Tromey <tromey@adacore.com>
5463
5464 * python/python-internal.h (gdb_py_long_from_longest): Remove
5465 defines.
5466 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5467 * python/py-type.c (convert_field, typy_get_sizeof): Use
5468 gdb_py_object_from_longest.
5469 * python/py-record-btrace.c (btpy_list_index): Use
5470 gdb_py_object_from_longest.
5471
5472 2020-09-15 Tom Tromey <tromey@adacore.com>
5473
5474 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5475 * python/py-record.c (recpy_element_number): Use
5476 gdb_py_object_from_longest.
5477 (recpy_gap_number): Likewise.
5478
5479 2020-09-15 Tom Tromey <tromey@adacore.com>
5480
5481 * top.c (ui::ui): Update.
5482 (highest_ui_num): Remove.
5483 * top.h (struct ui) <num>: Remove.
5484
5485 2020-09-15 Tom Tromey <tromey@adacore.com>
5486
5487 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5488 * ui-style.c (ansi_regex_text): Now array.
5489 * rust-exp.y (number_regex_text): Now array.
5490 * linespec.c (linespec_quote_characters): Now array.
5491 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5492 Now arrays.
5493
5494 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * debuginfod-support.c (debuginfod_client_deleter): New.
5497 (debuginfod_client_up): New.
5498 (debuginfod_init): Return debuginfod_client_up.
5499 (debuginfod_source_query): Adjust.
5500 (debuginfod_debuginfo_query): Adjust.
5501
5502 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * debuginfod-support.c (debuginfod_source_query): Use
5505 make_unique_xstrdup.
5506
5507 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5510 with `type::instance_flags`.
5511
5512 2020-09-14 Michael Mullin <masmullin@gmail.com>
5513
5514 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5515 Remove baton parameter.
5516
5517 2020-09-14 Pedro Alves <pedro@palves.net>
5518
5519 * Makefile.in (SELFTESTS_SRCS): Add
5520 unittests/enum-flags-selftests.c.
5521 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5522 btrace_function_flags instead of enum btrace_function_flag.
5523 * compile/compile-c-types.c (convert_qualified): Use
5524 enum_flags::raw.
5525 * compile/compile-cplus-symbols.c (convert_one_symbol)
5526 (convert_symbol_bmsym):
5527 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5528 (compile_cplus_convert_struct_or_union_methods)
5529 (compile_cplus_instance::convert_qualified_base):
5530 * go-exp.y (parse_string_or_char): Add cast to int.
5531 * unittests/enum-flags-selftests.c: New file.
5532 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5533 type to btrace_thread_flags from btrace_thread_flag.
5534 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5535 local's type to btrace_thread_flags from btrace_thread_flag. Add
5536 cast in DEBUG call.
5537
5538 2020-09-14 Pedro Alves <pedro@palves.net>
5539
5540 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5541 * gdbtypes.c (address_space_name_to_int): Rename to ...
5542 (address_space_name_to_type_instance_flags): ... this.
5543 (address_space_int_to_name): Rename to ...
5544 (address_space_type_instance_flags_to_name): ... this.
5545 * gdbtypes.h (address_space_name_to_int): Rename to ...
5546 (address_space_name_to_type_instance_flags): ... this.
5547 (address_space_int_to_name): Rename to ...
5548 (address_space_type_instance_flags_to_name): ... this.
5549 * type-stack.c (type_stack::insert): Adjust to rename.
5550 * type-stack.h (type_stack::insert): Likewise.
5551
5552 2020-09-14 Pedro Alves <pedro@palves.net>
5553 Andrew Burgess <andrew.burgess@embecosm.com>
5554
5555 * avr-tdep.c (avr_address_class_type_flags): Return
5556 type_instance_flags.
5557 (avr_address_class_type_flags_to_name): Take a
5558 type_instance_flags.
5559 (avr_address_class_name_to_type_flags): Return bool and take a
5560 type_instance_flags.
5561 * d-lang.c (build_d_types): Use type::set_instance_flags.
5562 * ft32-tdep.c (ft32_address_class_type_flags): Return
5563 type_instance_flags.
5564 (ft32_address_class_type_flags_to_name): Take a
5565 type_instance_flags.
5566 (ft32_address_class_name_to_type_flags): Return bool and take a
5567 type_instance_flags.
5568 (ft32_gdbarch_init): Use type::set_instance_flags.
5569 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5570 * gdbarch.h, gdbarch.c: Regenerate.
5571 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5572 (address_class_name_to_type_flags): Use type_instance_flags and
5573 bool.
5574 * gdbtypes.c (address_space_name_to_int)
5575 (address_space_int_to_name, make_qualified_type): Use
5576 type_instance_flags.
5577 (make_qualified_type): Use type_instance_flags and
5578 type::set_instance_flags.
5579 (make_type_with_address_space, make_cv_type, make_vector_type)
5580 (check_typedef): Use type_instance_flags.
5581 (recursive_dump_type): Cast type_instance_flags to unsigned for
5582 printing.
5583 (copy_type_recursive): Use type::set_instance_flags.
5584 (gdbtypes_post_init): Use type::set_instance_flags.
5585 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5586 <m_instance_flags>: ... this.
5587 <instance_flags, set_instance_flags>: New methods.
5588 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5589 (SET_TYPE_INSTANCE_FLAGS): New.
5590 (address_space_name_to_int, address_space_int_to_name)
5591 (make_type_with_address_space): Pass flags using
5592 type_instance_flags instead of int.
5593 * stabsread.c (cleanup_undefined_types_noname): Use
5594 type::set_instance_flags.
5595 * s390-tdep.c (s390_address_class_type_flags): Return
5596 type_instance_flags.
5597 (s390_address_class_type_flags_to_name): Take a
5598 type_instance_flags.
5599 (s390_address_class_name_to_type_flags): Return bool and take a
5600 type_instance_flags.
5601 * type-stack.c (type_stack::follow_types): Use
5602 type_instance_flags.
5603 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5604
5605 2020-09-14 Tom Tromey <tromey@adacore.com>
5606
5607 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5608 * x86-tdep.c (x86_is_thunk_register_name)
5609 (x86_in_indirect_branch_thunk): Update.
5610 * sparc64-tdep.c (sparc64_fpu_register_names)
5611 (sparc64_cp0_register_names, sparc64_register_names)
5612 (sparc64_pseudo_register_names): Now const.
5613 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5614 cp0_registers_num>: Now const.
5615 * sparc-tdep.c (sparc_core_register_names)
5616 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5617 (sparc32_pseudo_register_names): Now const.
5618 (validate_tdesc_registers): Update.
5619 * rust-lang.c (rust_extensions): Now const.
5620 * p-lang.c (p_extensions): Now const.
5621 * objc-lang.c (objc_extensions): Now const.
5622 * nto-tdep.c (nto_thread_state_str): Now const.
5623 * moxie-tdep.c (moxie_register_names): Now const.
5624 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5625 Now const.
5626 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5627 (mips_linux_reg_names): Now const.
5628 (mips_gdbarch_init): Update.
5629 * microblaze-tdep.c (microblaze_register_names): Now const.
5630 * m68k-tdep.c (m68k_register_names): Now const.
5631 * m32r-tdep.c (m32r_register_names): Now const.
5632 * ia64-tdep.c (ia64_register_names): Now const.
5633 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5634 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5635 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5636 ymm_avx512_register_names, pkeys_register_names>: Now const.
5637 * i386-tdep.c (i386_register_names, i386_zmm_names)
5638 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5639 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5640 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5641 * f-lang.c (f_extensions): Now const.
5642 * d-lang.c (d_extensions): Now const.
5643 * csky-tdep.c (csky_register_names): Now const.
5644 * charset.c (default_charset_names, charset_enum): Now const.
5645 (_initialize_charset): Update.
5646 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5647 const.
5648 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5649 (bsd_uthread_solib_loaded): Update.
5650 (bsd_uthread_state): Now const.
5651 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5652 (amd64_ymm_avx512_names, amd64_ymmh_names)
5653 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5654 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5655 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5656 (amd64_dword_names): Now const.
5657 * agent.c (can_use_agent_enum): Now const.
5658 * ada-tasks.c (task_states, long_task_states): Now const.
5659 * ada-lang.c (known_runtime_file_name_patterns)
5660 (known_auxiliary_function_name_patterns, attribute_names)
5661 (standard_exc, ada_extensions): Now const.
5662
5663 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5664
5665 * bcache.h (struct bcache) <bcache>: Remove constructor.
5666 <m_hash_function, m_compare_function>: Remove.
5667 <~bcache>: Make virtual.
5668 <compare>: Remove static method, introduce virtual method.
5669 <default_hash>: Remove.
5670 <hash>: New virtual method.
5671 * bcache.c (bcache::expand_hash_table): Update.
5672 (bcache::insert): Update.
5673 (bcache::hash): New.
5674 (bcache::compare): Update comment and parameter names.
5675 * gdbtypes.c (types_deeply_equal): Update.
5676 * psymtab.h (struct psymbol_bcache): New struct.
5677 (class psymtab_storage) <psymtab_storage>: Make default.
5678 <psymbol_cache>: Change type to psymbol_bcache.
5679 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5680 (psymbol_hash): Change to...
5681 (psymbol_bcache::hash): ... this.
5682 (psymbol_compare): Change to...
5683 (psymbol_bcache::compare): ... this.
5684
5685 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5686
5687 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5688 checking for initial lwp.
5689
5690 2020-09-14 Tom Tromey <tromey@adacore.com>
5691
5692 * m68k-tdep.c (m68k_extract_return_value): Use
5693 pointer_result_regnum.
5694 (m68k_store_return_value): Likewise.
5695 (m68k_reg_struct_return_p): Handle vectors and arrays.
5696 (m68k_return_value): Handle arrays.
5697 (m68k_svr4_return_value): Fix single-element aggregate handling.
5698 Handle long double. Adjust for embedded ABI.
5699 (m68k_svr4_init_abi): Set pointer_result_regnum.
5700 (m68k_embedded_init_abi): New function.
5701 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5702 (m68k_osabi_sniffer): New function.
5703 (_initialize_m68k_tdep): Register osabi sniffer.
5704 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5705 member.
5706
5707 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5708
5709 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5710 with gdb::unique_xmalloc_ptr<char>.
5711
5712 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5713
5714 * xml-support.h (xml_fetch_another): Change type to be a
5715 function_view.
5716 (xml_process_xincludes): Remove baton parameter.
5717 (xml_fetch_content_from_file): Change baton parameter to
5718 dirname.
5719 * xml-support.c (struct xinclude_parsing_data)
5720 <xinclude_parsing_data>: Remove baton parameter.
5721 <fetcher_baton>: Remove.
5722 (xinclude_start_include): Adjust.
5723 (xml_process_xincludes): Adjust.
5724 (xml_fetch_content_from_file): Replace baton parameter with
5725 dirname.
5726 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5727 (xml_init_syscalls_info): Use a lambda.
5728 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5729 (file_read_description_xml): Use a lambda.
5730 (fetch_available_features_from_target): Change baton parameter
5731 to target_ops.
5732 (target_read_description_xml): Use a lambda.
5733 (target_fetch_description_xml): Use a lambda.
5734 (string_read_description_xml): Update.
5735
5736 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5737
5738 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5739 uses with type::endianity_is_not_default.
5740
5741 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * gdbtypes.h (struct type) <endianity_is_not_default,
5744 set_endianity_is_not_default>: New methods.
5745 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5746 type::endianity_is_not_default, change all write call sites to
5747 use type::set_endianity_is_not_default.
5748
5749 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5750
5751 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5752 uses with type::is_fixed_instance.
5753
5754 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5755
5756 * gdbtypes.h (struct type) <is_fixed_instance,
5757 set_is_fixed_instance>: New methods.
5758 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5759 write call sites to use type::set_is_fixed_instance.
5760
5761 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5762
5763 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5764 uses with type::is_gnu_ifunc.
5765
5766 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5769 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5770 use type::set_is_gnu_ifunc.
5771
5772 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5773
5774 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5775 uses with type::stub_is_supported.
5776
5777 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5780 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5781 use type::set_stub_is_supported.
5782
5783 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5784
5785 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5786 uses with type::is_vector.
5787
5788 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5791 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5792 use type::set_is_vector.
5793
5794 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5795
5796 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5797 uses with type::has_varargs.
5798
5799 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5800
5801 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5802 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5803 use type::set_has_varargs.
5804
5805 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5806
5807 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5808 uses with type::is_prototyped.
5809
5810 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5813 New methods.
5814 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5815 call sites to use type::set_is_prototyped.
5816
5817 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5820 uses with type::target_is_stub.
5821
5822 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5825 New methods.
5826 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5827 sites to use type::set_target_is_stub.
5828
5829 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5830
5831 * gdbtypes.h (TYPE_STUB): Remove, replace all
5832 uses with type::is_stub.
5833
5834 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5837 (TYPE_STUB): Use type::is_stub, change all write call sites to
5838 use type::set_is_stub.
5839
5840 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5841
5842 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5843 type::has_no_signedness.
5844
5845 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5846
5847 * gdbtypes.h (struct type) <has_no_signedness,
5848 set_has_no_signedness>: New methods.
5849 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5850 call sites to use type::set_has_no_signedness.
5851
5852 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5853
5854 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5855 type::is_unsigned.
5856
5857 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5858
5859 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5860 methods.
5861 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5862 sites to use type::set_is_unsigned.
5863
5864 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
5865 Adam Renquinha <arenquinha@cimeq.qc.ca>
5866
5867 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5868 pointer and stack frame offset when unwinding.
5869
5870 2020-09-13 Pedro Alves <pedro@palves.net>
5871
5872 * NEWS: Document "-break-insert --qualified".
5873 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5874
5875 2020-09-13 Pedro Alves <pedro@palves.net>
5876
5877 * linespec.c (classify_mtype, compare_msyms): Delete.
5878 (search_minsyms_for_name): Remove classification logic. Instead
5879 filter out trampoline symbols if we also found an external
5880 function of the same name.
5881
5882 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5883
5884 * NEWS: Create a new section for the next release branch.
5885 Rename the section of the current branch, now that it has
5886 been cut.
5887
5888 2020-09-13 Joel Brobecker <brobecker@adacore.com>
5889
5890 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5891 * version.in: Bump version to 11.0.50.DATE-git.
5892
5893 2020-09-12 Joel Brobecker <brobecker@adacore.com>
5894
5895 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5896
5897 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5898 Felix Willgerodt <Felix.Willgerodt@intel.com>
5899
5900 * gdbarch.sh: Added bfloat16 type.
5901 * gdbarch.c: Regenerated.
5902 * gdbarch.h: Regenerated.
5903 * gdbtypes.c (floatformats_bfloat16): New struct.
5904 (gdbtypes_post_init): Add builtin_bfloat16.
5905 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5906 (floatformats_bfloat16): New struct.
5907 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5908 (i386_ymm_type): Add field "v16_bfloat16"
5909 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5910 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5911 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5912 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5913 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5914 * features/i386/64bit-avx512.c: Regenerated.
5915 * features/i386/64bit-sse.xml: Add bfloat16 type.
5916 * features/i386/64bit-sse.c: Regenerated.
5917
5918 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5919
5920 * i386-tdep.c (i386_zmm_type): Fix field names.
5921 (i386_ymm_type): Fix field names.
5922
5923 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5924
5925 * breakpoint.c: Fix typo in the help message of the
5926 "set breakpoint condition-evaluation" command.
5927
5928 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5929
5930 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5931 * (nbsd_nat_target::pid_to_exec_file)
5932 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5933 (nbsd_nat_target::post_startup_inferior)
5934 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5935 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5936 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5937 * (nbsd_thread_lister): Remove.
5938
5939 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5940
5941 * fork-inferior.c (startup_inferior): Avoid double free.
5942
5943 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5944
5945 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5946 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5947
5948 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5949
5950 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5951 * netbsd-nat.c: Include <sys/ptrace.h>.
5952 * (netbsd_nat::enable_proc_events): Add.
5953
5954 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5955
5956 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5957 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5958 (netbsd_nat::for_each_thread): Add.
5959 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5960 "gdbsupport/common-debug.h".
5961 * (netbsd_nat::netbsd_thread_lister)
5962 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5963 (netbsd_nat::for_each_thread): Add.
5964
5965 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5966
5967 * netbsd-nat.h: Include <unistd.h>.
5968 * (netbsd_nat::pid_to_exec_file): Add.
5969 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5970 * (netbsd_nat::pid_to_exec_file) Add.
5971
5972 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5973
5974 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5975
5976 2020-09-10 Kamil Rytarowski <n54@gmx.com>
5977
5978 * netbsd-nat.h: New file.
5979 * netbsd-nat.c: Likewise.
5980
5981 2020-09-09 Tom Tromey <tromey@adacore.com>
5982
5983 * ada-lang.c (remove_extra_symbols): Do not increment when
5984 removing an element
5985
5986 2020-09-08 Tom Tromey <tromey@adacore.com>
5987
5988 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5989
5990 2020-09-08 Tom Tromey <tromey@adacore.com>
5991
5992 PR win32/25302:
5993 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5994 (gdb_bfd_init_data): New function.
5995 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5996
5997 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5998
5999 * infrun.c (fetch_inferior_event): Use
6000 `switch_to_target_no_thread` to switch the target.
6001
6002 2020-09-06 Tom Tromey <tom@tromey.com>
6003
6004 * symfile.h (dwarf2_free_objfile): Don't declare.
6005
6006 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6007
6008 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6009 to match 16 byte real/complex type generated by Flang compiler.
6010
6011 2020-09-03 Tom de Vries <tdevries@suse.de>
6012
6013 PR breakpoint/26546
6014 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6015 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6016
6017 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6018
6019 * maint.c (index_digits): New function.
6020 (struct maint_print_section_data): Remove.
6021 (print_bfd_section_info): Remove print_data parameter, add arg
6022 and index_digits.
6023 (print_objfile_section_info): Likewise.
6024 (print_bfd_section_info_maybe_relocated): Likewise (plus
6025 objfile).
6026 (maintenance_info_sections): Adjust calls.
6027
6028 2020-09-02 Tom Tromey <tromey@adacore.com>
6029
6030 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6031 for null pointers.
6032 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6033
6034 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6035
6036 * bcache.h (struct bcache) <insert>: Change type of `added` to
6037 pointer to bool.
6038 * bcache.c (bcache::insert): Likewise.
6039 * gdbtypes.c (check_types_worklist): Adjust.
6040 * psymtab.c (add_psymbol_to_bcache): Adjust.
6041
6042 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6043
6044 * corelow.c (unordered_set): Include.
6045 (class core_target): Add field 'm_core_unavailable_mappings'.
6046 (core_target::build_file_mappings): Print only one warning
6047 per inaccessible file. Add unavailable/broken mappings
6048 to m_core_unavailable_mappings.
6049 (core_target::xfer_partial): Call...
6050 (core_target::xfer_memory_via_mappings): New method.
6051
6052 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6053
6054 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6055 type to bool.
6056
6057 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6058
6059 * dwarf2/read.c (struct field_info): Fix indentation.
6060
6061 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6062
6063 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6064 ordering in comment.
6065 * frame.c (frame_id_eq): Fix indentation.
6066
6067 2020-08-31 Scott Linder <scott@scottlinder.com>
6068 Simon Marchi <simon.marchi@efficios.com>
6069
6070 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6071 inline frame ids in outer frame.
6072
6073 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6076 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6077 (outer_frame_id): Use FID_STACK_OUTER instead of
6078 FID_STACK_INVALID.
6079 (frame_id_p): Don't check for outer_frame_id.
6080
6081 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6082
6083 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6084 regnum/frame in value. Call allocate_value_lazy.
6085 * frame.c (frame_unwind_register_value): Use
6086 val_print_not_saved.
6087
6088 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6091
6092 2020-08-29 Pedro Alves <pedro@palves.net>
6093
6094 * progspace.c (print_program_space): Use all_inferiors. Switch to
6095 the inferior before calling target_pid_to_str.
6096
6097 2020-08-28 Tom Tromey <tom@tromey.com>
6098
6099 * xcoffread.c (xcoff_end_psymtab): Update comment.
6100 * dbxread.c (dbx_end_psymtab): Update comment.
6101
6102 2020-08-28 Tom de Vries <tdevries@suse.de>
6103
6104 PR breakpoint/26544
6105 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6106 event_location.
6107 (create_breakpoint): Same.
6108 (base_breakpoint_decode_location): Same.
6109 (bkpt_create_sals_from_location): Same.
6110 (bkpt_decode_location): Same.
6111 (bkpt_probe_create_sals_from_location): Same.
6112 (bkpt_probe_decode_location): Same.
6113 (tracepoint_create_sals_from_location): Same.
6114 (tracepoint_decode_location): Same.
6115 (tracepoint_probe_decode_location): Same.
6116 (strace_marker_create_sals_from_location): Same.
6117 (strace_marker_decode_location): Same.
6118 (create_sals_from_location_default): Same.
6119 (decode_location_default): Same.
6120 * breakpoint.h (struct breakpoint_ops): Same.
6121 (create_breakpoint): Same.
6122 * linespec.h (decode_line_full): Same.
6123 * linespec.c (decode_line_full): Same. Throw error if
6124 result.size () == 0.
6125
6126 2020-08-27 Pedro Alves <pedro@palves.net>
6127
6128 PR gdb/26524
6129 * breakpoint.c (until_break_fsm) <location_breakpoint,
6130 caller_breakpoint>: Delete fields.
6131 <breakpoints>: New field.
6132 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6133 two individual breakpoints.
6134 (until_break_fsm::should_stop): Loop over breakpoints in the
6135 breakpoint vector.
6136 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6137 vector.
6138 (until_break_command): Handle location expanding into multiple
6139 sals.
6140
6141 2020-08-27 Pedro Alves <pedro@palves.net>
6142
6143 PR gdb/26523
6144 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6145 bp_until breakpoints user-specified locations. Update intro
6146 comment.
6147
6148 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6149
6150 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6151 gdb_bfd_sections): New.
6152 * maint.c (print_bfd_section_info): Change param type to
6153 maint_print_section_data.
6154 (print_objfile_section_info): Likewise.
6155 (print_bfd_section_info_maybe_relocated): Likewise.
6156 (maintenance_info_sections): Use gdb_bfd_sections.
6157
6158 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6159
6160 * MAINTAINERS: Add ARC target and maintainer.
6161
6162 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6163
6164 * configure.tgt: ARC support for GNU/Linux.
6165 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6166 * arc-linux-tdep.c: New file.
6167 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6168 * arc-tdep.c (arc_write_pc): Use it.
6169
6170 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6171
6172 * arc-tdep.c (arc_check_for_hardware_loop): New.
6173 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6174
6175 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6176
6177 * arc-tdep.h: Include "gdbarch.h".
6178
6179 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6180
6181 * arch/arc.h
6182 (arc_gdbarch_features): New class to stir the selection of target XML.
6183 (arc_create_target_description): Use FEATURES to choose XML target.
6184 (arc_lookup_target_description): Use arc_create_target_description
6185 to create _new_ target descriptions or return the already created
6186 ones if the FEATURES is the same.
6187 * arch/arc.c: Implementation of prototypes described above.
6188 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6189 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6190 * arc-tdep.c (*_feature_name): Make feature names consistent.
6191 (arc_register_feature): A new struct to hold information about
6192 registers of a particular target/feature.
6193 (arc_check_tdesc_feature): Check if XML provides registers in
6194 compliance with ARC_REGISTER_FEATURE structs.
6195 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6196 (determine_*_reg_feature_set): Which feature name to look for.
6197 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6198 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6199 to expected ISA enums to be used in arc_gdbarch_features structs.
6200 * features/Makefile (FEATURE_XMLFILES): Add new files.
6201 * gdb/features/arc/v1-aux.c: New file.
6202 * gdb/features/arc/v1-aux.xml: Likewise.
6203 * gdb/features/arc/v1-core.c: Likewise.
6204 * gdb/features/arc/v1-core.xml: Likewise.
6205 * gdb/features/arc/v2-aux.c: Likewise.
6206 * gdb/features/arc/v2-aux.xml: Likewise.
6207 * gdb/features/arc/v2-core.c: Likewise.
6208 * gdb/features/arc/v2-core.xml: Likewise.
6209 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6210
6211 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6212 Andrew Burgess <andrew.burgess@embecosm.com>
6213
6214 PR m2/26372
6215 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6216 an assert. Remove single element array indexing pattern as the
6217 MULTI_SUBSCRIPT support will handle this case too.
6218
6219 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6220
6221 * value.h (valprint_check_validity): Move declaration from
6222 here...
6223 * valprint.h (valprint_check_validity): ... to here.
6224
6225 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6226
6227 * debug.h: New file.
6228 * debug.c (debug_prefixed_vprintf): New function.
6229 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6230 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6231
6232 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6233
6234 * infrun.h (infrun_debug_printf_1): New function declaration.
6235 (infrun_debug_printf): New macro.
6236 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6237 throughout.
6238 (infrun_debug_printf): New function.
6239 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6240 (handle_jit_event): Likewise.
6241
6242 2020-08-21 Mark Wielaard <mark@klomp.org>
6243
6244 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6245
6246 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * frame.c (enum class frame_id_status): New.
6249 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6250 (fprintf_frame): Update.
6251 (compute_frame_id): Set frame id status to "computing" on entry.
6252 Set it back to "not_computed" on failure and to "computed" on
6253 success.
6254 (get_frame_id): Assert the frame id is not being computed.
6255 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6256 (create_new_frame): Likewise.
6257 (frame_cleanup_after_sniffer): Update assert.
6258
6259 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * regcache.c (pid_ptid_regcache_map): New type.
6262 (target_ptid_regcache_map): Remove.
6263 (target_pid_ptid_regcache_map): New type.
6264 (regcaches): Change type to target_pid_ptid_regcache_map.
6265 (get_thread_arch_aspace_regcache): Update.
6266 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6267 case.
6268 (regcaches_size): Update.
6269 (regcache_count): Update.
6270 (registers_changed_ptid_target_pid_test): New.
6271 (_initialize_regcache): Register new test.
6272
6273 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6274
6275 * regcache.c (regcache_count): New.
6276 (struct regcache_test_data): New.
6277 (regcache_test_data_up): New.
6278 (populate_regcaches_for_test): New.
6279 (regcaches_test): Remove.
6280 (get_thread_arch_aspace_regcache_test): New.
6281 (registers_changed_ptid_all_test): New.
6282 (registers_changed_ptid_target_test): New.
6283 (registers_changed_ptid_target_ptid_test): New.
6284 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6285 (_initialize_regcache): Register new tests.
6286
6287 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6288
6289 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6290 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6291 gdbarch and aspace parameter. Use current inferior's aspace.
6292 Validate regcache's arch value.
6293 (regcaches_test): Update.
6294
6295 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6296
6297 * regcache.c (regcaches_test): Call registers_changed.
6298
6299 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6300
6301 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6302
6303 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6304
6305 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6306 to find the end of prologue for flang compiled binaries.
6307 * arm-tdep.c (arm_skip_prologue): Likewise.
6308 * i386-tdep.c (i386_skip_prologue): Likewise.
6309 * producer.c (producer_is_llvm): New function.
6310 (producer_parsing_tests): Added new tests for clang/flang.
6311 * producer.h (producer_is_llvm): New declaration.
6312
6313 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * linux-nat.c (linux_nat_debug_printf): New function.
6316 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6317
6318 2020-08-18 Aaron Merey <amerey@redhat.com>
6319
6320 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6321 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6322 (CLIBS): Add DEBUGINFOD_LIBS.
6323
6324 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6325
6326 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6327 'gdbarch_num_regs'.
6328
6329 2020-08-17 Tom Tromey <tromey@adacore.com>
6330
6331 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6332 ada_get_decoded_value returns NULL.
6333
6334 2020-08-17 Tom Tromey <tromey@adacore.com>
6335
6336 * python/py-inferior.c (infpy_search_memory): Use
6337 gdb_py_object_from_ulongest.
6338 * python/py-infevents.c (create_inferior_call_event_object)
6339 (create_memory_changed_event_object): Use
6340 gdb_py_object_from_ulongest.
6341 * python/py-linetable.c (ltpy_entry_get_pc): Use
6342 gdb_py_object_from_ulongest.
6343
6344 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * loc.c (class symbol_needs_eval_context): Fix indentation.
6347
6348 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6349
6350 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6351 bool.
6352
6353 2020-08-17 Tom de Vries <tdevries@suse.de>
6354
6355 PR gdb/26393
6356 * gdbtypes.c (dump_dynamic_prop): New function.
6357 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6358
6359 2020-08-15 Tom de Vries <tdevries@suse.de>
6360
6361 PR backtrace/26390
6362 * stack.c (print_frame_args): Temporarily set the selected
6363 frame to FRAME while printing the frame's arguments.
6364
6365 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6366
6367 PR breakpoints/26385
6368 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6369 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6370
6371 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6372
6373 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6374 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6375 and >= to check return value instead of == -1 and != -1.
6376
6377 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6378
6379 * utils.h (class gdb_argv) <as_array_view>: New method.
6380 * utils.c (gdb_argv_as_array_view_test): New.
6381 (_initialize_utils): Register selftest.
6382 * maint.c (maintenance_selftest): Use the new method.
6383
6384 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6385
6386 * target.h (supports_dumpcore, dumpcore): New
6387 function declarations.
6388 * target.c (supports_dumpcore, dumpcore): New
6389 functions.
6390 * target-delegates.c: Rebuild.
6391 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6392 and target_dumpcore ().
6393
6394 2020-08-13 Aaron Merey <amerey@redhat.com>
6395
6396 * debuginfod-support.c: Replace global variables with user_data.
6397
6398 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6399
6400 * maint.c (maintenance_selftest): Split args and pass array_view
6401 to run_tests.
6402
6403 2020-08-12 Luis Machado <luis.machado@linaro.org>
6404
6405 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6406 type's length.
6407 Use %s and pulongest to print the length.
6408
6409 2020-08-12 Pedro Alves <palves@redhat.com>
6410
6411 * NEWS: Move "Multi-target debugging support" item to the
6412 "Changes since GDB 9" section.
6413
6414 2020-08-12 Pedro Alves <palves@redhat.com>
6415
6416 PR gdb/26336
6417 * progspace.c (program_space::remove_objfile): Invalidate the
6418 frame cache.
6419
6420 2020-08-11 Tom de Vries <tdevries@suse.de>
6421
6422 * MAINTAINERS: Mark ms1 as deleted.
6423
6424 2020-08-10 Luis Machado <luis.machado@linaro.org>
6425
6426 PR gdb/26310
6427
6428 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6429 act accordingly.
6430 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6431 movz/str/stur/stp skipping behavior.
6432
6433 2020-08-10 Luis Machado <luis.machado@linaro.org>
6434
6435 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6436 struct user_sve_header instead of struct sve_context.
6437
6438 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6439
6440 * read.h (dwarf2_fetch_die_loc_sect_off,
6441 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6442 `void *` parameter with function_view.
6443 * read.c (dwarf2_fetch_die_loc_sect_off,
6444 dwarf2_fetch_die_loc_cu_off): Likewise.
6445 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6446 (per_cu_dwarf_call): Adjust.
6447 (get_frame_address_in_block_wrapper): Remove.
6448 (indirect_synthetic_pointer): Adjust.
6449 (get_ax_pc): Remove.
6450 (dwarf2_compile_expr_to_ax): Adjust.
6451
6452 2020-08-08 Tom de Vries <tdevries@suse.de>
6453
6454 PR build/26344
6455 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6456 constructor.
6457 * regcache.c (get_thread_arch_aspace_regcache): Same.
6458
6459 2020-08-07 Tom Tromey <tromey@adacore.com>
6460
6461 * ravenscar-thread.c
6462 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6463 New method.
6464 (ravenscar_thread_target::wait): Check
6465 runtime_initialized.
6466 (ravenscar_thread_target::prepare_to_store)
6467 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6468 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6469 (ravenscar_thread_target::stopped_by_watchpoint)
6470 (ravenscar_thread_target::stopped_data_address)
6471 (ravenscar_thread_target::core_of_thread): Use
6472 scoped_restore_current_thread and
6473 set_base_thread_from_ravenscar_task.
6474
6475 2020-08-07 Tom Tromey <tromey@adacore.com>
6476
6477 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6478
6479 2020-08-07 Tom Tromey <tromey@adacore.com>
6480
6481 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6482 update_inferior_ptid before update_thread_list.
6483 (temporarily_change_regcache_ptid): New class.
6484 (ravenscar_thread_target::fetch_registers)
6485 (ravenscar_thread_target::store_registers)
6486 (ravenscar_thread_target::prepare_to_store): Use base thread when
6487 forwarding operation.
6488
6489 2020-08-07 Tom Tromey <tromey@adacore.com>
6490
6491 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6492 "is_pid" case.
6493
6494 2020-08-07 Tom Tromey <tromey@adacore.com>
6495
6496 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6497 New methods.
6498 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6499 first.
6500 (ravenscar_thread_target::add_thread): Rename from
6501 ravenscar_add_thread.
6502 (ravenscar_thread_target::update_thread_list): Use a lambda.
6503 (ravenscar_thread_target::xfer_partial): New method.
6504
6505 2020-08-07 Tom Tromey <tromey@adacore.com>
6506
6507 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6508 gdb::function_view.
6509 (iterate_over_live_ada_tasks): Change type of argument.
6510 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6511 of argument.
6512
6513 2020-08-07 Tom Tromey <tromey@adacore.com>
6514
6515 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6516 Remove.
6517 (ravenscar_thread_target::extra_thread_info): Remove.
6518 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6519 defer to target beneath for non-Ravenscar threads.
6520
6521 2020-08-07 Tom Tromey <tromey@adacore.com>
6522
6523 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6524 get_base_thread_from_ravenscar_task>: Now methods.
6525 <m_cpu_map>: New member.
6526 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6527 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6528 (ravenscar_thread_target::task_is_currently_active): Update.
6529 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6530 Now a method.
6531 (ravenscar_thread_target::add_active_thread): Put initial thread
6532 into the m_cpu_map.
6533
6534 2020-08-07 Tom Tromey <tromey@adacore.com>
6535
6536 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6537 event_ptid.
6538
6539 2020-08-07 Tom Tromey <tromey@adacore.com>
6540
6541 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6542 runtime_initialized.
6543
6544 2020-08-07 Tom Tromey <tromey@adacore.com>
6545
6546 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6547 add_active_thread.
6548 (ravenscar_thread_target::add_active_thread): Now public.
6549 (ravenscar_inferior_created): Call add_active_thread after pushing
6550 the target.
6551
6552 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6553
6554 * regcache.c (ptid_regcache_map): New type.
6555 (target_ptid_regcache_map): New type.
6556 (regcaches): Change type to target_ptid_regcache_map.
6557 (get_thread_arch_aspace_regcache): Update to regcaches' new
6558 type.
6559 (regcache_thread_ptid_changed): Likewise.
6560 (registers_changed_ptid): Likewise.
6561 (regcaches_size): Likewise.
6562 (regcaches_test): Update.
6563 (regcache_thread_ptid_changed): Update.
6564 * regcache.h (regcache_up): New type.
6565 * gdbsupport/ptid.h (hash_ptid): New struct.
6566
6567 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6568
6569 * observable.h (thread_ptid_changed): Add parameter
6570 `process_stratum_target *`.
6571 * infrun.c (infrun_thread_ptid_changed): Add parameter
6572 `process_stratum_target *` and use it.
6573 (selftests): New namespace.
6574 (infrun_thread_ptid_changed): New function.
6575 (_initialize_infrun): Register selftest.
6576 * regcache.c (regcache_thread_ptid_changed): Add parameter
6577 `process_stratum_target *` and use it.
6578 (regcache_thread_ptid_changed): New function.
6579 (_initialize_regcache): Register selftest.
6580 * thread.c (thread_change_ptid): Pass target to
6581 thread_ptid_changed observable.
6582
6583 2020-08-06 Caroline Tice <cmtice@google.com>
6584
6585 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6586 (struct dwp_sections): Update field comments. Add loclists and
6587 rnglists fields.
6588 (struct virtual_v2_dwo_sections): Rename struct to
6589 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6590 size & offset fields for loclists and rnglists.
6591 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6592 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6593 skipping dummy type units.
6594 (create_dwp_hash_table): Update the large comment above the function to
6595 discuss Version 5 DWP files as well, with references. Update all the
6596 version checks in the function to check for version 5 as well. Add new
6597 section at the end to create dwp hash table for version 5.
6598 (create_dwp_v2_section): Rename function to
6599 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6600 Add V5 to error message text.
6601 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6602 into calls to create_dwp_v2_or_v5_section.
6603 (create_dwo_unit_in_dwp_v5): New function.
6604 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6605 check for version2; add else clause to handle version 5.
6606 (open_and_init_dwo_file): Add code to check dwarf version & only call
6607 create_debug_types_hash_table (with sections.types) if version is not 5;
6608 else call create_debug_type_hash_table, with sections.info.
6609 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6610 version 5.
6611 (dwarf2_locate_v5_dwp_sections): New function.
6612 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6613 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6614
6615 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6616
6617 * regcache.h (class regcache): Remove friend
6618 registers_changed_ptid.
6619 <regcache_thread_ptid_changed>: Remove.
6620 <regcaches>: Remove.
6621 * regcache.c (regcache::regcaches): Rename to...
6622 (regcaches): ... this. Make static.
6623 (get_thread_arch_aspace_regcache): Update.
6624 (regcache::regcache_thread_ptid_changed): Rename to...
6625 (regcache_thread_ptid_changed): ... this. Update.
6626 (class regcache_access): Remove.
6627 (regcaches_test): Update.
6628 (_initialize_regcache): Update.
6629 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6630 <forward_list>.
6631
6632 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6633
6634 * regcache.h (class regcache) <current_regcache>: Rename to...
6635 <regcaches>: ... this. Move doc here.
6636 * regcache.c (regcache::current_regcache) Rename to...
6637 (regcache::regcaches): ... this. Move doc to header.
6638 (get_thread_arch_aspace_regcache): Update.
6639 (regcache::regcache_thread_ptid_changed): Update.
6640 (registers_changed_ptid): Update.
6641 (class regcache_access) <current_regcache_size>: Rename to...
6642 <regcaches_size>: ... this.
6643 (current_regcache_test): Rename to...
6644 (regcaches_test): ... this.
6645 (_initialize_regcache): Update.
6646
6647 2020-08-06 Victor Collod <vcollod@nvidia.com>
6648
6649 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6650
6651 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6652
6653 * corelow.c (core_target::build_file_mappings): Don't output
6654 null pathname in warning.
6655
6656 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6657
6658 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6659 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6660 gdb.dwarf2/dw2-single-line-discriminators.exp,
6661 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6662
6663 2020-08-05 Tom Tromey <tromey@adacore.com>
6664
6665 PR rust/26197:
6666 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6667 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6668 Fix off-by-one and type size errors in ordinary case.
6669
6670 2020-08-05 Tom de Vries <tdevries@suse.de>
6671
6672 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6673 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6674
6675 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6676
6677 * frame.h (frame_id_p): Return bool.
6678 (frame_id_artificial_p): Return bool.
6679 (frame_id_eq): Return bool.
6680 (has_stack_frames): Return bool.
6681 (get_selected_frame): Fix typo in comment.
6682 (get_frame_pc_if_available): Return bool.
6683 (get_frame_address_in_block_if_available): Return bool.
6684 (get_frame_func_if_available): Return bool.
6685 (read_frame_register_unsigned): Return bool.
6686 (get_frame_register_bytes): Return bool.
6687 (safe_frame_unwind_memory): Return bool.
6688 (deprecated_frame_register_read): Return bool.
6689 (frame_unwinder_is): Return bool.
6690 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6691 bool.
6692 <this_id::p>: Likewise.
6693 <prev_p>: Likewise.
6694 (frame_stash_add): Return bool.
6695 (get_frame_id): Use bool.
6696 (frame_id_build_special) Use bool.
6697 (frame_id_build_unavailable_stack): Use bool.
6698 (frame_id_build): Use bool.
6699 (frame_id_p): Return bool, use true/false instead of 1/0.
6700 (frame_id_artificial_p): Likewise.
6701 (frame_id_eq): Likewise.
6702 (frame_id_inner): Likewise.
6703 (get_frame_func_if_available): Likewise.
6704 (read_frame_register_unsigned): Likewise.
6705 (deprecated_frame_register_read): Likewise.
6706 (get_frame_register_bytes): Likewise.
6707 (has_stack_frames): Likewise.
6708 (inside_main_func): Likewise.
6709 (inside_entry_func): Likewise.
6710 (get_frame_pc_if_available): Likewise.
6711 (get_frame_address_in_block_if_available): Likewise.
6712 (frame_unwinder_is): Likewise.
6713 (safe_frame_unwind_memory): Likewise.
6714 (frame_unwind_arch): Likewise.
6715
6716 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6717
6718 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6719 type to cached_copy_status.
6720 (fprintf_frame): Adjust.
6721 (get_frame_func_if_available): Adjust.
6722 (frame_cleanup_after_sniffer): Adjust.
6723
6724 2020-08-04 Mark Wielaard <mark@klomp.org>
6725
6726 * MAINTAINERS (Write After Approval): Update email address.
6727
6728 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6729
6730 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6731 dynamic_prop::const_val.
6732
6733 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6734
6735 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6736 dynamic_prop::kind.
6737
6738 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6739
6740 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6741
6742 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6743
6744 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6745
6746 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6747 Jose E. Marchesi <jose.marchesi@oracle.com>
6748
6749 * configure.tgt: Add entry for bpf-*-*.
6750 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6751 (ALLDEPFILES): Add bpf-tdep.c.
6752 * bpf-tdep.c: New file.
6753 * MAINTAINERS: Add bpf target and maintainer.
6754 * NEWS: Mention the support for the new target.
6755
6756 2020-08-04 Tom de Vries <tdevries@suse.de>
6757
6758 PR symtab/23270
6759 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6760 Error.
6761
6762 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6763
6764 * syscalls/freebsd.xml: Regenerate.
6765
6766 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6767
6768 * syscalls/update-freebsd.sh: Fix usage and year range.
6769
6770 2020-08-03 Tom de Vries <tdevries@suse.de>
6771
6772 PR symtab/26333
6773 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6774 DW_LNE_lo_user/DW_LNE_hi_user range.
6775
6776 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6777
6778 PR ada/26318
6779 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6780 kind.
6781
6782 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6783
6784 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6785
6786 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6787
6788 * breakpoint.c (set_breakpoint_condition): Update the condition
6789 expressions after checking that the input condition string parses
6790 successfully and does not contain junk at the end.
6791
6792 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6793
6794 * breakpoint.c (set_breakpoint_condition): Update the
6795 condition string after parsing the new condition successfully.
6796
6797 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6798
6799 * proc-api.c (_STRUCTURED_PROC): Don't define.
6800 * proc-events.c: Likewise.
6801 * proc-flags.c: Likewise.
6802 * proc-why.c: Likewise.
6803 * procfs.c: Likewise.
6804
6805 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6806 * configure, config.in: Regenerate.
6807
6808 2020-07-30 Tom de Vries <tdevries@suse.de>
6809
6810 PR build/26320
6811 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6812 m_red/m_green/m_blue in a union.
6813
6814 2020-07-29 Tom de Vries <tdevries@suse.de>
6815
6816 PR tdep/26280
6817 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6818
6819 2020-07-28 Tom Tromey <tromey@adacore.com>
6820
6821 PR symtab/26270:
6822 * symtab.h (find_pc_partial_function_sym): Declare.
6823 * cli/cli-cmds.c (disassemble_command): Use
6824 find_pc_partial_function_sym. Check asm_demangle.
6825 * blockframe.c (cache_pc_function_sym): New global.
6826 (cache_pc_function_name): Remove.
6827 (clear_pc_function_cache): Update.
6828 (find_pc_partial_function_sym): New function, from
6829 find_pc_partial_function.
6830 (find_pc_partial_function): Rewrite using
6831 find_pc_partial_function_sym.
6832
6833 2020-07-28 Tom Tromey <tromey@adacore.com>
6834
6835 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6836 help. Add usage.
6837
6838 2020-07-28 Tom Tromey <tromey@adacore.com>
6839
6840 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6841 <DW_OP_GNU_variable_value>: Cast to address type.
6842
6843 2020-07-28 Kamil Rytarowski <n54@gmx.com>
6844
6845 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6846 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6847 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6848 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6849 (nbsd_get_siginfo_type): New.
6850 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6851 (_initialize_nbsd_tdep): New.
6852
6853 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6854
6855 PR binutils/26301
6856 * configure: Regenerated.
6857
6858 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6859
6860 PR binutils/26301
6861 * configure: Regenerated.
6862
6863 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6864
6865 * python/py-frame.c: Remove 'user-regs.h' include.
6866 (frapy_read_register): Rewrite to make use of
6867 gdbpy_parse_register_id.
6868 * python/py-registers.c (gdbpy_parse_register_id): New function,
6869 moved here from python/py-unwind.c. Updated the return type, and
6870 also accepts register descriptor objects.
6871 * python/py-unwind.c: Remove 'user-regs.h' include.
6872 (pyuw_parse_register_id): Moved to python/py-registers.c.
6873 (unwind_infopy_add_saved_register): Update to use
6874 gdbpy_parse_register_id.
6875 (pending_framepy_read_register): Likewise.
6876 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6877
6878 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6879
6880 * python/py-registers.c: Add 'user-regs.h' include.
6881 (register_descriptor_iter_find): New function.
6882 (register_descriptor_iterator_object_methods): New static global
6883 methods array.
6884 (register_descriptor_iterator_object_type): Add pointer to methods
6885 array.
6886
6887 2020-07-27 John Baldwin <jhb@FreeBSD.org>
6888
6889 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6890 for all architectures on FreeBSD 11.3 and later.
6891
6892 2020-07-27 Tom Tromey <tromey@adacore.com>
6893
6894 * gcore.h (load_corefile): Don't declare.
6895
6896 2020-07-27 Tom de Vries <tdevries@suse.de>
6897
6898 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6899 * config.in: Regenerate.
6900 * configure: Regenerate.
6901
6902 2020-07-26 Eli Zaretskii <eliz@gnu.org>
6903
6904 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6905 ws2tcpip.h. When checking whether socklen_t type is defined, use
6906 ws2tcpip.h if it is available and sys/socket.h isn't.
6907 * configure: Regenerate.
6908 * config.in: Regenerate.
6909
6910 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6911
6912 PR fortran/23051
6913 PR fortran/26139
6914 * valops.c (value_ind): Pass address to
6915 readjust_indirect_value_type.
6916 * value.c (readjust_indirect_value_type): Make parameter
6917 non-const, and add extra address parameter. Resolve original type
6918 before using it.
6919 * value.h (readjust_indirect_value_type): Update function
6920 signature and comment.
6921
6922 2020-07-25 Tom de Vries <tdevries@suse.de>
6923
6924 PR symtab/26243
6925 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6926 entries.
6927
6928 2020-07-24 Aaron Merey <amerey@redhat.com>
6929
6930 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6931 * configure: Rebuild.
6932
6933 2020-07-23 Kevin Buettner <kevinb@redhat.com>
6934
6935 PR corefiles/26294
6936 * corelow.c (_initialize_corelow): Add period to help text
6937 for "maintenance print core-file-backed-mappings".
6938
6939 2020-07-23 Pedro Alves <pedro@palves.net>
6940
6941 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6942 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6943 meanwhile.
6944 * frame.c (frame_cache_generation, get_frame_cache_generation):
6945 New.
6946 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6947 (get_prev_frame_if_no_cycle): On exception, don't touch
6948 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6949 * frame.h (get_frame_cache_generation): Declare.
6950
6951 2020-07-23 Tom de Vries <tdevries@suse.de>
6952
6953 PR tui/26282
6954 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6955 New default constructor.
6956
6957 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6958
6959 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6960 exclude non-statement entries.
6961
6962 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6963
6964 * NEWS (New commands): Mention new command
6965 "maintenance print core-file-backed-mappings".
6966
6967 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6968
6969 * corelow.c (gdbcmd.h): Include.
6970 (core_target::info_proc_mappings): New method.
6971 (get_current_core_target): New function.
6972 (maintenance_print_core_file_backed_mappings): New function.
6973 (_initialize_corelow): Add core-file-backed-mappings to
6974 "maint print" commands.
6975
6976 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6977
6978 * linux-tdep.c (dump_note_entry_p): New function.
6979 (linux_dump_mapping_p_ftype): New typedef.
6980 (linux_find_memory_regions_full): Add new parameter,
6981 should_dump_mapping_p.
6982 (linux_find_memory_regions): Adjust call to
6983 linux_find_memory_regions_full.
6984 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6985 call to linux_find_memory_regions_full.
6986
6987 2020-07-22 Kevin Buettner <kevinb@redhat.com>
6988
6989 * corelow.c (solist.h, unordered_map): Include.
6990 (class core_target): Add field m_core_file_mappings and
6991 method build_file_mappings.
6992 (core_target::core_target): Call build_file_mappings.
6993 (core_target::~core_target): Free memory associated with
6994 m_core_file_mappings.
6995 (core_target::build_file_mappings): New method.
6996 (core_target::xfer_partial): Use m_core_file_mappings
6997 for memory transfers.
6998 * linux-tdep.c (linux_read_core_file_mappings): New
6999 function.
7000 (linux_core_info_proc_mappings): Rewrite to use
7001 linux_read_core_file_mappings.
7002 (linux_init_abi): Register linux_read_core_file_mappings.
7003
7004 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7005
7006 * arch-utils.c (default_read_core_file_mappings): New function.
7007 * arch-utils.c (default_read_core_file_mappings): Declare.
7008 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7009 * gdbarch.h, gdbarch.c: Regenerate.
7010
7011 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7012
7013 PR corefiles/25631
7014 * corelow.c (core_target:xfer_partial): Revise
7015 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7016 case after first checking the stratum beneath the core
7017 target.
7018 (has_all_memory): Return true.
7019 * target.c (raw_memory_xfer_partial): Revise comment
7020 regarding use of has_all_memory.
7021
7022 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7023
7024 * exec.h (section_table_xfer_memory): Revise declaration,
7025 replacing section name parameter with an optional callback
7026 predicate.
7027 * exec.c (section_table_xfer_memory): Likewise.
7028 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7029 of section_table_xfer_memory.
7030
7031 2020-07-22 Tom Tromey <tromey@adacore.com>
7032
7033 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7034 lookup_symbol_search_name.
7035
7036 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7037
7038 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7039 redundant local variable.
7040 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7041 reference, not pointer, update code accordingly.
7042
7043 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7044 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7045
7046 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7047 * jit.c (jit_breakpoint_re_set_internal): Use the
7048 `skip_jit_symbol_lookup` field.
7049
7050 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7051 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7052
7053 * jit.c (jit_read_descriptor): Define the descriptor address once,
7054 use twice.
7055 (jit_breakpoint_deleted): Move the declaration of the loop variable
7056 `iter` into the loop header.
7057 (jit_breakpoint_re_set_internal): Move the declaration of the local
7058 variable `objf_data` to the first point of definition.
7059 (jit_event_handler): Move the declaration of local variables
7060 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7061 Rename `objf` to `jited`.
7062
7063 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7064
7065 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7066 Remove.
7067 * jit.c (get_jiter_objfile_data): Update.
7068
7069 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7070 Simon Marchi <simon.marchi@polymtl.ca>
7071
7072 * jit.c (struct jit_program_space_data): Remove.
7073 (jit_program_space_key): Remove.
7074 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7075 stuff.
7076 (get_jit_program_space_data): Remove.
7077 (jit_breakpoint_deleted): Iterate on all of the program space's
7078 objfiles.
7079 (jit_inferior_init): Likewise.
7080 (jit_breakpoint_re_set_internal): Likewise. Also change return
7081 type to void.
7082 (jit_breakpoint_re_set): Pass current_program_space to
7083 jit_breakpoint_re_set_internal.
7084
7085 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7086
7087 * jit.h (struct jiter_objfile_data) <cached_code_address,
7088 jit_breakpoint>: Move to here from ...
7089 * jit.c (jit_program_space_data): ... here.
7090 (jiter_objfile_data::~jiter_objfile_data): Update.
7091 (jit_breakpoint_deleted): Update.
7092 (jit_breakpoint_re_set_internal): Update.
7093
7094 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7095
7096 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7097 checks.
7098 (jit_read_descriptor): Remove NULL check.
7099 (jit_event_handler): Add an assertion.
7100
7101 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7102
7103 * jit.h (struct jit_objfile_data): Split into...
7104 (struct jiter_objfile_data): ... this ...
7105 (struct jited_objfile_data): ... and this.
7106 * objfiles.h (struct objfile) <jit_data>: Remove.
7107 <jiter_data, jited_data>: New fields.
7108 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7109 (jiter_objfile_data::~jiter_objfile_data): ... this.
7110 (get_jit_objfile_data): Rename to ...
7111 (get_jiter_objfile_data): ... this.
7112 (add_objfile_entry): Update.
7113 (jit_read_descriptor): Use get_jiter_objfile_data.
7114 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7115 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7116 (jit_inferior_exit_hook): Use objfile's jited_data field.
7117
7118 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7119
7120 * jit.h: Forward-declare `struct minimal_symbol`.
7121 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7122 constructor, destructor, and an objfile* field.
7123 * jit.c (jit_objfile_data): Remove.
7124 (struct jit_objfile_data): Migrate from here to jit.h.
7125 (jit_objfile_data::~jit_objfile_data): New destructor
7126 implementation with code moved from free_objfile_data.
7127 (free_objfile_data): Delete.
7128 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7129 (jit_find_objf_with_entry_addr): Ditto.
7130 (jit_inferior_exit_hook): Ditto.
7131 (_initialize_jit): Remove the call to
7132 register_objfile_data_with_cleanup.
7133 * objfiles.h (struct objfile) <jit_data>: New field.
7134
7135 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7136
7137 * jit.h: Forward-declare `struct objfile`.
7138 (jit_event_handler): Add a second parameter, the JITer objfile.
7139 * jit.c (jit_read_descriptor): Change the signature to take the
7140 JITer objfile as an argument instead of the jit_program_space_data.
7141 (jit_inferior_init): Update the call to jit_read_descriptor.
7142 (jit_event_handler): Use the new JITer objfile argument when calling
7143 jit_read_descriptor.
7144 * breakpoint.c (handle_jit_event): Update the call to
7145 jit_event_handler to pass the JITer objfile.
7146
7147 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7148
7149 * gdbarch.c: Regenerate.
7150 * gdbarch.h: Regenerate.
7151 * gdbarch.sh (handle_segmentation_fault): Remove method.
7152 * infrun.c (handle_segmentation_fault): Remove.
7153 (print_signal_received_reason): Remove call to
7154 handle_segmentation_fault.
7155
7156 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7157
7158 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7159 Rename to sparc64_linux_report_signal_info and add siggnal
7160 argument.
7161 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7162 instead of sparc64_linux_handle_segmentation_fault.
7163
7164 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7165
7166 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7167 i386_linux_report_signal_info instead of
7168 i386_linux_handle_segmentation_fault.
7169 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7170 to i386_linux_report_signal_info and add siggnal argument.
7171 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7172 of i386_linux_handle_segmentation_fault.
7173 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7174 to i386_linux_report_signal_info and add siggnal argument.
7175
7176 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7177
7178 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7179 hook if present.
7180
7181 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7182
7183 * gdbarch.c: Regenerate.
7184 * gdbarch.h: Regenerate.
7185 * gdbarch.sh (report_signal_info): New method.
7186 * infrun.c (print_signal_received_reason): Invoke gdbarch
7187 report_signal_info hook if present.
7188
7189 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7190
7191 * python/py-registers.c : Add 'unordered_map' include.
7192 (gdbpy_new_reggroup): Renamed to...
7193 (gdbpy_get_reggroup): ...this. Update to only create register
7194 group descriptors when needed.
7195 (gdbpy_reggroup_iter_next): Update.
7196
7197 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7198
7199 * python/py-registers.c (gdbpy_register_object_data): New static
7200 global.
7201 (gdbpy_register_object_data_init): New function.
7202 (gdbpy_new_register_descriptor): Renamed to...
7203 (gdbpy_get_register_descriptor): ...this, and update to reuse
7204 existing register descriptors where possible.
7205 (gdbpy_register_descriptor_iter_next): Update.
7206 (gdbpy_initialize_registers): Register new gdbarch data.
7207
7208 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7209
7210 * linux-nat.c (stopped_pids): Make static.
7211
7212 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7213
7214 PR ada/26235
7215 * gdbtypes.c (ada_discrete_type_low_bound,
7216 ada_discrete_type_high_bound): Handle undefined bounds.
7217
7218 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7219
7220 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7221 declaration.
7222 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7223 function.
7224
7225 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7226
7227 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7228 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7229 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7230 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7231 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7232 method.
7233
7234 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7235
7236 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7237 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7238 which are deprecated in Guile 3.0.
7239 * configure.ac (try_guile_versions): Add "guile-3.0".
7240 * configure (try_guile_versions): Regenerate.
7241 * NEWS: Update entry.
7242
7243 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7244 Doug Evans <dje@google.com>
7245
7246 PR gdb/21104
7247 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7248 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7249 USING_GUILE_BEFORE_2_2.
7250 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7251 Change type to 'scm_t_port_type *'.
7252 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7253 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7254 parameter and honor it. Update callers.
7255 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7256 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7257 functions.
7258 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7259 USING_GUILE_BEFORE_2_2.
7260 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7261 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7262 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7263 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7264 and 'SCM_PORT_TYPE'.
7265 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7266 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7267 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7268 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7269 [!USING_GUILE_BEFORE_2_2]: New functions.
7270 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7271 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7272 'gdbscm_memory_port_read'.
7273 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7274 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7275 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7276 function.
7277 (ioscm_init_memory_port): Remove.
7278 (ioscm_init_memory_port_stream): New function
7279 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7280 function.
7281 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7282 Return scm_from_uint (0).
7283 (gdbscm_set_memory_port_read_buffer_size_x)
7284 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7285 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7286 Return scm_from_uint (0).
7287 (gdbscm_set_memory_port_write_buffer_size_x)
7288 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7289 * configure.ac (try_guile_versions): Add "guile-2.2".
7290 * configure: Regenerate.
7291 * NEWS: Add entry.
7292
7293 2020-07-18 Tom Tromey <tom@tromey.com>
7294
7295 * linux-nat.c (linux_multi_process): Remove.
7296 (linux_nat_target::supports_multi_process): Return true.
7297
7298 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7301 (riscv_lookup_target_description): Return pointer out of
7302 unique_ptr.
7303 * target-descriptions.c (allocate_target_description): Add
7304 comment.
7305 (target_desc_deleter::operator()): Likewise.
7306 * target-descriptions.h (struct target_desc_deleter): Moved to
7307 gdbsupport/tdesc.h.
7308 (target_desc_up): Likewise.
7309
7310 2020-07-17 Tom Tromey <tromey@adacore.com>
7311
7312 * linux-nat.c (linux_nat_target::supports_non_stop)
7313 (linux_nat_target::always_non_stop_p): Use "true".
7314 (linux_nat_target::supports_disable_randomization): Use "true" and
7315 "false".
7316
7317 2020-07-16 Caroline Tice <cmtice@google.com>
7318
7319 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7320 (RNGLIST_HEADER_SIZE64): New constant definition.
7321 (struct dwop_section_names): Add rnglists_dwo.
7322 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7323 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7324 (struct dwo_sections): Add rnglists field.
7325 (read_attribut_reprocess): Add tag parameter.
7326 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7327 (cu_debug_rnglists_section): New function (decl & definition).
7328 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7329 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7330 die whose range is being checked; get rnglist section from
7331 cu_debug_rnglists_section, to get from either objfile or dwo file as
7332 appropriate. Add cases for DW_RLE_base_addressx,
7333 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7334 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7335 test inside if-condition and updating complaint message.
7336 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7337 dwarf2_rnglists_process.
7338 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7339 dwarf2_ranges_process.
7340 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7341 need_ranges_base and update comment appropriately. Also pass die tag
7342 to dwarf2_ranges_read.
7343 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7344 need_ranges_base and update comment appropriately. Also pass die tag
7345 to dwarf2_ranges_process.
7346 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7347 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7348 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7349 need_ranges_base and update comment appropriately. Also pass die tag
7350 to read_attribute_reprocess and dwarf2_ranges_read.
7351 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7352 and update function comment appropriately.
7353 (read_loclist_index): Call read_loclists_rnglists_header instead of
7354 read_loclist_header.
7355 (read_rnglist_index): New function.
7356 (read_attribute_reprocess): Add tag parameter. Add code for
7357 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7358 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7359
7360 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7361
7362 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7363 being resolved.
7364
7365 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7366
7367 * arch-utils.c (show_architecture): Update formatting of messages.
7368
7369 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7370
7371 * gdbtypes.h (struct type) <bounds>: Handle array and string
7372 types.
7373 * ada-lang.c (assign_aggregate): Use type::bounds on
7374 array/string type.
7375 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7376 * c-varobj.c (c_number_of_children): Likewise.
7377 (c_describe_child): Likewise.
7378 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7379 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7380 (f_type_print_base): Likewise.
7381 * f-valprint.c (f77_array_offset_tbl): Likewise.
7382 (f77_get_upperbound): Likewise.
7383 (f77_print_array_1): Likewise.
7384 * guile/scm-type.c (gdbscm_type_range): Likewise.
7385 * m2-typeprint.c (m2_array): Likewise.
7386 (m2_is_long_set_of_type): Likewise.
7387 * m2-valprint.c (get_long_set_bounds): Likewise.
7388 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7389 * python/py-type.c (typy_range): Likewise.
7390 * rust-lang.c (rust_internal_print_type): Likewise.
7391 * type-stack.c (type_stack::follow_types): Likewise.
7392 * valarith.c (value_subscripted_rvalue): Likewise.
7393 * valops.c (value_cast): Likewise.
7394
7395 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7396
7397 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7398 callers to use the equivalent accessor methods.
7399
7400 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7401
7402 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7403 (struct type) <bit_stride>: New method.
7404 (TYPE_BIT_STRIDE): Remove.
7405 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7406
7407 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7408
7409 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7410 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7411 callers to use the equivalent accessor methods instead.
7412
7413 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7416 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7417 callers to use the equivalent accessor methods instead.
7418
7419 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7422 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7423 to use dynamic_prop::kind.
7424
7425 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7426
7427 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7428 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7429 to get the bound property's kind and check against
7430 PROP_UNDEFINED.
7431
7432 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7433
7434 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7435 all callers to use type::range_bounds followed by
7436 dynamic_prop::{low,high}.
7437
7438 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7439
7440 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7441 const_val, set_const_val, baton, set_locexpr, set_loclist,
7442 set_addr_offset, variant_parts, set_variant_parts,
7443 original_type, set_original_type>: New methods.
7444 <kind>: Rename to...
7445 <m_kind>: ... this. Update all users to use the new methods
7446 instead.
7447 <data>: Rename to...
7448 <m_data>: ... this. Update all users to use the new methods
7449 instead.
7450
7451 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * gdbtypes.c (get_discrete_bounds): Return failure if
7454 the range type's bounds are not both defined and constant
7455 values.
7456 (get_array_bounds): Update comment. Remove undefined bound check.
7457
7458 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7459
7460 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7461 the type::bounds method directly.
7462
7463 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7466 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7467 are used to set the range type's bounds to use set_bounds.
7468
7469 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7470
7471 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7472
7473 2020-07-10 Pedro Alves <pedro@palves.net>
7474
7475 * gdbthread.h (inferior_ref): Define.
7476 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7477 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7478 * thread.c
7479 (scoped_restore_current_thread::restore):
7480 Adjust to gdb::ref_ptr.
7481 (scoped_restore_current_thread::~scoped_restore_current_thread):
7482 Remove manual decref handling.
7483 (scoped_restore_current_thread::scoped_restore_current_thread):
7484 Adjust to use
7485 inferior_ref::new_reference/thread_info_ref::new_reference.
7486 Incref the thread before calling get_frame_id instead of after.
7487 Let TARGET_CLOSE_ERROR propagate.
7488
7489 2020-07-10 Pedro Alves <pedro@palves.net>
7490
7491 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7492 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7493 NOT_AVAILABLE_ERROR.
7494 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7495 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7496
7497 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7498 Pedro Alves <pedro@palves.net>
7499
7500 PR gdb/26199
7501 * infrun.c (threads_are_resumed_pending_p): Delete.
7502 (do_target_wait): Remove threads_are_executing and
7503 threads_are_resumed_pending_p checks from the inferior_matches
7504 lambda. Update comments.
7505
7506 2020-07-10 Pedro Alves <pedro@palves.net>
7507
7508 PR gdb/26199
7509 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7510 executing threads.
7511
7512 2020-07-10 Pedro Alves <pedro@palves.net>
7513
7514 PR gdb/26199
7515 * infrun.c (handle_no_resumed): Handle multiple targets.
7516
7517 2020-07-10 Pedro Alves <pedro@palves.net>
7518
7519 PR gdb/26199
7520 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7521 target_is_async_p.
7522
7523 2020-07-10 Pedro Alves <pedro@palves.net>
7524
7525 PR gdb/26199
7526 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7527 threads, not all threads.
7528
7529 2020-07-10 Pedro Alves <pedro@palves.net>
7530
7531 PR gdb/26199
7532 * remote.c (remote_target::open_1): Pass remote target pointer as
7533 data to create_async_event_handler.
7534 (remote_async_inferior_event_handler): Mark async event handler
7535 before returning if the remote target still has either pending
7536 events or unacknowledged notifications.
7537
7538 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7539
7540 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7541 declaration.
7542 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7543 function.
7544
7545 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7546
7547 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7548 inferior_ptid.
7549
7550 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7551
7552 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7553 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7554 AT_FREEBSD_PS_STRINGS.
7555
7556 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7557
7558 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7559 of debugfile path on Windows.
7560
7561 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7562
7563 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7564 argument to 'data'.
7565
7566 2020-07-08 Tom Tromey <tromey@adacore.com>
7567
7568 * ada-lang.c (ada_exception_message_1): Use read_memory.
7569
7570 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7571
7572 PR python/22748
7573 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7574 special handling for inline frames.
7575 * findvar.c (value_of_register_lazy): Skip inline frames when
7576 creating lazy register values.
7577 * frame.c (frame_id_computed_p): Delete definition.
7578 * frame.h (frame_id_computed_p): Delete declaration.
7579
7580 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7581
7582 * NEWS: Mention additions to Python API.
7583 * python/py-arch.c (archpy_register_groups): New function.
7584 (arch_object_methods): Add 'register_groups' method.
7585 * python/py-registers.c (reggroup_iterator_object): New struct.
7586 (reggroup_object): New struct.
7587 (gdbpy_new_reggroup): New function.
7588 (gdbpy_reggroup_to_string): New function.
7589 (gdbpy_reggroup_name): New function.
7590 (gdbpy_reggroup_iter): New function.
7591 (gdbpy_reggroup_iter_next): New function.
7592 (gdbpy_new_reggroup_iterator): New function
7593 (gdbpy_initialize_registers): Register new types.
7594 (reggroup_iterator_object_type): Define new Python type.
7595 (gdbpy_reggroup_getset): New static global.
7596 (reggroup_object_type): Define new Python type.
7597 * python/python-internal.h
7598
7599 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7600
7601 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7602 * python/py-arch.c (archpy_registers): New function.
7603 (arch_object_methods): Add 'registers' method.
7604 * python/py-registers.c: New file.
7605 * python/python-internal.h
7606 (gdbpy_new_register_descriptor_iterator): Declare.
7607 (gdbpy_initialize_registers): Declare.
7608 * python/python.c (do_start_initialization): Call
7609 gdbpy_initialize_registers.
7610 * NEWS: Mention additions to the Python API.
7611
7612 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7613
7614 * NEWS: Mention new Python API method.
7615 * python/py-unwind.c (pending_framepy_architecture): New function.
7616 (pending_frame_object_methods): Add architecture method.
7617
7618 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7619
7620 * gdbarch.c: Regenerate.
7621 * gdbarch.h: Regenerate.
7622 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7623 (gdbarch_data): Use internal_error for the case where
7624 deprecated_set_gdbarch_data was originally needed.
7625 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7626 and use passed in obstack.
7627 (libunwind_frame_set_descr): Should no longer get back NULL from
7628 gdbarch_data.
7629 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7630 type.
7631 * user-regs.c (user_regs_init): Update parameters, and use passed
7632 in obstack.
7633 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7634 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7635
7636 2020-07-06 Tom de Vries <tdevries@suse.de>
7637
7638 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7639 End-Of-Sequence in lte_is_less_than.
7640 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7641 "gdb: Don't reorder line table entries too much when sorting".
7642
7643 2020-07-06 Tom de Vries <tdevries@suse.de>
7644
7645 PR tui/26205
7646 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7647
7648 2020-07-05 Tom de Vries <tdevries@suse.de>
7649
7650 PR build/26187
7651 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7652 std::uncaught_exceptions instead of deprecated
7653 std::uncaught_exception.
7654
7655 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7656
7657 * macroexp.h (macro_stringify): Return
7658 gdb::unique_xmalloc_ptr<char>.
7659 * macroexp.c (macro_stringify): Likewise.
7660 * macrotab.c (fixup_definition): Update.
7661
7662 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7663
7664 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7665 (lex_one_token): Update.
7666 * macroexp.c (struct macro_buffer) <release>: Return
7667 gdb::unique_xmalloc_ptr<char>.
7668 (macro_stringify): Update.
7669 (macro_expand): Update.
7670 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7671 * macroexp.h (macro_expand_next): Likewise.
7672
7673 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7674
7675 * macroexp.h (macro_lookup_ftype): Remove.
7676 (macro_expand, macro_expand_once, macro_expand_next): Remove
7677 lookup function parameters, add scope parameter.
7678 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7679 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7680 * macroscope.h (standard_macro_lookup): Change parameter type
7681 to macro_scope.
7682 * macroscope.c (standard_macro_lookup): Likewise.
7683 * c-exp.y (lex_one_token): Update.
7684 * macrocmd.c (macro_expand_command): Likewise.
7685 (macro_expand_once_command): Likewise.
7686
7687 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7688
7689 * inf-loop.c (inferior_event_handler): Remove client_data param.
7690 * inf-loop.h (inferior_event_handler): Likewise.
7691 * infcmd.c (step_1): Adjust.
7692 * infrun.c (proceed): Adjust.
7693 (fetch_inferior_event): Remove client_data param.
7694 (infrun_async_inferior_event_handler): Adjust.
7695 * infrun.h (fetch_inferior_event): Remove `void *` param.
7696 * linux-nat.c (handle_target_event): Adjust.
7697 * record-btrace.c (record_btrace_handle_async_inferior_event):
7698 Adjust.
7699 * record-full.c (record_full_async_inferior_event_handler):
7700 Adjust.
7701 * remote.c (remote_async_inferior_event_handler): Adjust.
7702
7703 2020-07-01 Tom Tromey <tom@tromey.com>
7704
7705 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7706 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7707
7708 2020-07-01 Tom Tromey <tom@tromey.com>
7709
7710 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7711 tui_gen_win_info.
7712 (tui_win_info::make_window): Merge with
7713 tui_gen_win_info::make_window.
7714 (tui_win_info::make_visible): Move from tui_gen_win_info.
7715 * tui/tui-win.c (tui_win_info::max_width): Move from
7716 tui_gen_win_info.
7717 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7718 type.
7719 <window_factory>: Likewise.
7720 * tui/tui-layout.c (tui_win_info::resize): Move from
7721 tui_gen_win_info.
7722 (make_standard_window): Change return type.
7723 (get_locator_window, tui_get_window_by_name): Likewise.
7724 (tui_layout_window::apply): Remove a cast.
7725 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7726 (struct tui_win_info): Merge with tui_gen_win_info.
7727 (struct tui_gen_win_info): Remove.
7728
7729 2020-07-01 Tom Tromey <tom@tromey.com>
7730
7731 * tui/tui-stack.h (struct tui_locator_window): Derive from
7732 tui_win_info.
7733 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7734 <can_box>: New method.
7735
7736 2020-07-01 Tom Tromey <tom@tromey.com>
7737
7738 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7739
7740 2020-07-01 Tom Tromey <tom@tromey.com>
7741
7742 * tui/tui-regs.c (tui_data_window::display_registers_from)
7743 (tui_data_window::display_registers_from)
7744 (tui_data_window::first_data_item_displayed)
7745 (tui_data_window::delete_data_content_windows): Update.
7746 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7747 Remove.
7748 (tui_data_window::check_register_values): Update.
7749 (tui_data_item_window::rerender): Add parameters. Update.
7750 (tui_data_item_window::refresh_window): Remove.
7751 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7752 virtual.
7753 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7754 tui_gen_win_info.
7755 <refresh_window, max_height, min_height>: Remove.
7756 <rerender>: Add parameters.
7757 <x, y, visible>: New members.
7758 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7759 <m_item_width>: New member.
7760
7761 2020-07-01 Tom Tromey <tom@tromey.com>
7762
7763 * tui/tui-regs.c (tui_data_window::show_register_group)
7764 (tui_data_window::check_register_values): Update.
7765 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7766 from item_no.
7767
7768 2020-07-01 Tom Tromey <tom@tromey.com>
7769
7770 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7771 useless "if".
7772
7773 2020-07-01 Tom Tromey <tom@tromey.com>
7774
7775 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7776 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7777
7778 2020-07-01 Tom Tromey <tom@tromey.com>
7779
7780 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7781 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7782 (struct tui_line_or_address): Move from tui-data.h.
7783 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7784 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7785 (tui_cmd_window, tui_source_window_base, tui_source_window)
7786 (tui_disasm_window): Don't declare.
7787 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7788 to tui-winsource.h.
7789 (SINGLE_KEY): Move to tui-stack.c.
7790
7791 2020-07-01 Tom Tromey <tom@tromey.com>
7792
7793 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7794 std::string.
7795 * tui/tui-regs.c (class tab_expansion_file): New.
7796 (tab_expansion_file::write): New method.
7797 (tui_register_format): Change return type. Use
7798 tab_expansion_file.
7799 (tui_get_register, tui_data_window::display_registers_from)
7800 (tui_data_item_window::rerender): Update.
7801 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7802 * tui/tui-io.c (tui_expand_tabs): Remove.
7803
7804 2020-07-01 Tom Tromey <tom@tromey.com>
7805
7806 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7807
7808 2020-07-01 Fangrui Song <maskray@google.com>
7809
7810 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7811
7812 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7813
7814 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7815 forms for DW_AT_associated and DW_AT_allocated attributes,
7816 which is already checked in function attr_to_dynamic_prop.
7817
7818 2020-06-30 Tom Tromey <tromey@adacore.com>
7819
7820 * dwarf2/read.c (quirk_rust_enum): Correctly call
7821 alloc_rust_variant for default-less enum.
7822
7823 2020-06-30 Tom Tromey <tromey@adacore.com>
7824
7825 PR build/26183:
7826 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7827 gdb::to_string.
7828
7829 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
7830
7831 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7832 * gdbarch.h: Re-generate.
7833
7834 2020-06-28 Tom Tromey <tom@tromey.com>
7835
7836 * command.h (cmd_types): Remove.
7837 (cmd_type): Don't declare.
7838 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7839 typedef.
7840 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7841 * cli/cli-decode.c (cmd_type): Remove.
7842
7843 2020-06-27 Pedro Alves <palves@redhat.com>
7844
7845 * fork-child.c (prefork_hook): Adjust.
7846 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7847 Delete.
7848 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7849 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7850 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7851 Remove declarations.
7852 (struct inferior) <set_tty, tty>: New methods.
7853 (struct inferior) <terminal>: Rename to ...
7854 (struct inferior) <m_terminal>: ... this and make private.
7855 * main.c (captured_main_1): Adjust.
7856 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7857 (mi_cmd_inferior_tty_show): Adjust.
7858 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7859 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7860
7861 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
7862
7863 * configure.ac: Add --enable-libctf: handle --disable-static
7864 properly.
7865 * acinclude.m4: sinclude ../config/enable.m4.
7866 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7867 (LIBCTF): Substitute in.
7868 (CTF_DEPS): New, likewise.
7869 (CLIBS): libctf needs symbols from libbfd: move earlier.
7870 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7871 flags.
7872 * ctfread.c: Surround in ENABLE_LIBCTF.
7873 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7874 * configure: Regenerate.
7875 * config.in: Likewise.
7876
7877 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7880
7881 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
7882
7883 * inferior.h (struct inferior) <terminal>: Change type to
7884 gdb::unique_xmalloc_ptr<char>.
7885 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7886 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7887 field, adjust to unique pointer.
7888 (get_inferior_io_terminal): Adjust to unique pointer.
7889
7890 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7891
7892 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7893 registers, not just the known core set of registers.
7894
7895 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7896
7897 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7898 fflags, frm, and fcsr registers.
7899 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7900 restore groups.
7901 (riscv_tdesc_unknown_reg): New function.
7902 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7903 tdesc_use_registers.
7904 * riscv-tdep.h (struct gdbarch_tdep): Add
7905 unknown_csrs_first_regnum, unknown_csrs_count,
7906 duplicate_fflags_regnum, duplicate_frm_regnum, and
7907 duplicate_fcsr_regnum fields.
7908
7909 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7910
7911 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7912 callback, use the callback (when not null) to help number unknown
7913 registers.
7914 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7915 (tdesc_use_registers): Add extra parameter to declaration.
7916
7917 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7920 in the file.
7921 (class riscv_pending_register_alias): Likewise.
7922 (riscv_register_feature::register_info): Change 'required_p' field
7923 to 'required', and change its type. Add 'check' member function.
7924 (riscv_register_feature::register_info::check): Define new member
7925 function.
7926 (riscv_xreg_feature): Change initialisation of 'required' field.
7927 (riscv_freg_feature): Likewise.
7928 (riscv_virtual_feature): Likewise.
7929 (riscv_csr_feature): Likewise.
7930 (riscv_check_tdesc_feature): Take extra parameter, the csr
7931 tdesc_feature, rewrite the function to use the new
7932 riscv_register_feature::register_info::check function.
7933 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7934
7935 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * features/Makefile: Remove all references to the deleted files
7938 below.
7939 * features/riscv/32bit-csr.c: Deleted.
7940 * features/riscv/32bit-csr.xml: Deleted.
7941 * features/riscv/64bit-csr.c: Deleted.
7942 * features/riscv/64bit-csr.xml: Deleted.
7943 * features/riscv/rebuild-csr-xml.sh: Deleted.
7944
7945 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7946
7947 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7948 whitespace error for declaration of names member variable.
7949 (struct riscv_register_feature): Add new prefer_first_name member
7950 variable, and fix whitespace error in declaration of registers.
7951 (riscv_xreg_feature): Initialize prefer_first_name field.
7952 (riscv_freg_feature): Likewise.
7953 (riscv_virtual_feature): Likewise.
7954 (riscv_csr_feature): Likewise.
7955 (riscv_register_name): Expand on comments. Remove register name
7956 modifications for CSR and virtual registers.
7957
7958 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7959
7960 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7961 errors.
7962
7963 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7964
7965 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7966 riscv-opc.h.
7967 (class riscv_pending_register_alias): New class.
7968 (riscv_check_tdesc_feature): Take vector of pending aliases and
7969 populate it as appropriate.
7970 (riscv_setup_register_aliases): Delete.
7971 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7972 to riscv_check_tdesc_feature in all cases. Use the vector to
7973 create the register aliases.
7974
7975 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7976
7977 * sol2-tdep.c (sol2_static_transform_name): Remove.
7978 (sol2_init_abi): Don't register it.
7979 * gdbarch.sh (static_transform_name): Remove.
7980 * gdbarch.c, gdbarch.h: Regenerate.
7981
7982 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7983 gdbarch_static_transform_name.
7984 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7985 * stabsread.c (define_symbol) <'X'>: Remove.
7986 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7987 handling.
7988 <'V'>: Likewise.
7989 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7990 <'S'>: Remove call to gdbarch_static_transform_name.
7991
7992 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7993
7994 * procfs.c (procfs_pre_trace): New function.
7995 (procfs_target::create_inferior): Pass it to fork_inferior.
7996
7997 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7998
7999 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8000 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8001 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8002 sol2-tdep.o, sparc-sol2-tdep.o.
8003 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8004 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8005 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8006 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8007
8008 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8009
8010 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8011 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8012 Call sol2_init_abi.
8013 Remove calls to set_gdbarch_skip_solib_resolver,
8014 set_gdbarch_core_pid_to_str.
8015 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8016 (i386_sol2_static_transform_name): Remove.
8017 (i386_sol2_init_abi): Call sol2_init_abi.
8018 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8019 set_gdbarch_static_transform_name,
8020 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8021 Use sol2_sigtramp_p.
8022 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8023 (sol2_sigtramp_p): New function.
8024 (sol2_static_transform_name): New function.
8025 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8026 (sol2_init_abi): New function.
8027 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8028 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8029 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8030 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8031 (sparc_sol2_static_transform_name): Remove.
8032 (sparc32_sol2_init_abi): Call sol2_init_abi.
8033 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8034 set_gdbarch_static_transform_name,
8035 set_gdbarch_skip_solib_resolver,
8036 set_gdbarch_core_pid_to_str.
8037 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8038 (sparc_sol2_static_transform_name): Remove
8039 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8040 call sol2_sigtramp_p.
8041 (sparc64_sol2_init_abi): Call sol2_init_abi.
8042 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8043 set_gdbarch_static_transform_name,
8044 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8045
8046 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8047
8048 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8049 * exec.c (validate_exec_file): If from_tty, set both
8050 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8051 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8052 and from_tty, unconditionally ask a confirmation.
8053
8054 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8055
8056 * target-descriptions.c (tdesc_architecture_name): Protect against
8057 NULL pointer dereference.
8058 (maint_print_xml_tdesc_cmd): New function.
8059 (_initialize_target_descriptions): Register new 'maint print
8060 xml-tdesc' command and give it the filename completer.
8061 * NEWS: Mention new 'maint print xml-tdesc' command.
8062
8063 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8064
8065 * target-descriptions.c (class tdesc_compatible_info): New class.
8066 (struct target_desc): Change type of compatible vector.
8067 (tdesc_compatible_p): Update for change in type of
8068 target_desc::compatible.
8069 (tdesc_compatible_info_list): New function.
8070 (tdesc_compatible_info_arch_name): New function.
8071 (tdesc_add_compatible): Update for change in type of
8072 target_desc::compatible.
8073 (print_c_tdesc::visit_pre): Likewise.
8074
8075 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8076
8077 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8078 whitespace to underscore.
8079 (maint_print_c_tdesc_cmd): Use fake filename for target
8080 descriptions that came from the target.
8081 (_initialize_target_descriptions): Add filename command completion
8082 for 'maint print c-tdesc'.
8083
8084 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8085
8086 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8087 lines.
8088
8089 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8090
8091 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8092 lines.
8093 (dwarf2_find_location_expression): Likewise.
8094 (call_site_parameter_matches): Likewise.
8095 (dwarf2_compile_expr_to_ax): Likewise.
8096 (disassemble_dwarf_expression): Likewise.
8097 (loclist_describe_location): Likewise.
8098
8099 2020-06-23 Pedro Alves <palves@redhat.com>
8100
8101 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8102 progspace-and-thread.h. Include scoped-mock-context.h instead.
8103 (register_to_value_test): Use scoped_mock_context.
8104 * regcache.c: Include "scoped-mock-context.h".
8105 (cooked_read_test): Don't error out if a target is already pushed.
8106 Use scoped_mock_context. Adjust.
8107 * scoped-mock-context.h: New file.
8108
8109 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8110
8111 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8112 initializer.
8113 (ada_language::is_string_type_p): New member function.
8114 * c-lang.c (c_language_data): Delete la_is_string_type_p
8115 initializer.
8116 (cplus_language_data): Likewise.
8117 (asm_language_data): Likewise.
8118 (minimal_language_data): Likewise.
8119 * d-lang.c (d_language_data): Likewise.
8120 * f-lang.c (f_is_string_type_p): Delete function, implementation
8121 moved to f_language::is_string_type_p.
8122 (f_language_data): Delete la_is_string_type_p initializer.
8123 (f_language::is_string_type_p): New member function,
8124 implementation from f_is_string_type_p.
8125 * go-lang.c (go_is_string_type_p): Delete function, implementation
8126 moved to go_language::is_string_type_p.
8127 (go_language_data): Delete la_is_string_type_p initializer.
8128 (go_language::is_string_type_p): New member function,
8129 implementation from go_is_string_type_p.
8130 * language.c (language_defn::is_string_type_p): Define new member
8131 function.
8132 (default_is_string_type_p): Make static, add comment copied from
8133 header file.
8134 (unknown_language_data): Delete la_is_string_type_p initializer.
8135 (unknown_language::is_string_type_p): New member function.
8136 (auto_language_data): Delete la_is_string_type_p initializer.
8137 (auto_language::is_string_type_p): New member function.
8138 * language.h (language_data): Delete la_is_string_type_p field.
8139 (language_defn::is_string_type_p): Declare new function.
8140 (default_is_string_type_p): Delete desclaration, move comment to
8141 definition.
8142 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8143 moved to m2_language::is_string_type_p.
8144 (m2_language_data): Delete la_is_string_type_p initializer.
8145 (m2_language::is_string_type_p): New member function,
8146 implementation from m2_is_string_type_p.
8147 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8148 initializer.
8149 * opencl-lang.c (opencl_language_data): Likewise.
8150 * p-lang.c (pascal_is_string_type_p): Delete function,
8151 implementation moved to pascal_language::is_string_type_p.
8152 (pascal_language_data): Delete la_is_string_type_p initializer.
8153 (pascal_language::is_string_type_p): New member function,
8154 implementation from pascal_is_string_type_p.
8155 * rust-lang.c (rust_is_string_type_p): Delete function,
8156 implementation moved to rust_language::is_string_type_p.
8157 (rust_language_data): Delete la_is_string_type_p initializer.
8158 (rust_language::is_string_type_p): New member function,
8159 implementation from rust_is_string_type_p.
8160 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8161 is_string_type_p.
8162
8163 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8164
8165 * ada-lang.c (ada_language_data): Delete la_print_typedef
8166 initializer.
8167 (ada_language::print_typedef): New member function.
8168 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8169 (cplus_language_data): Likewise.
8170 (asm_language_data): Likewise.
8171 (minimal_language_data): Likewise.
8172 * d-lang.c (d_language_data): Likewise.
8173 * f-lang.c (f_language_data): Likewise.
8174 (f_language::print_typedef): New member function.
8175 * go-lang.c (go_language_data): Delete la_print_typedef
8176 initializer.
8177 * language.c (language_defn::print_typedef): Define member
8178 function.
8179 (unknown_language_data): Delete la_print_typedef initializer.
8180 (unknown_language::print_typedef): New member function.
8181 (auto_language_data): Delete la_print_typedef initializer.
8182 (auto_language::print_typedef): New member function.
8183 * language.h (language_data): Delete la_print_typedef field.
8184 (language_defn::print_typedef): Declare new member function.
8185 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8186 (default_print_typedef): Delete declaration.
8187 * m2-lang.c (m2_language_data): Delete la_print_typedef
8188 initializer.
8189 (m2_language::print_typedef): New member function.
8190 * objc-lang.c (objc_language_data): Delete la_print_typedef
8191 initializer.
8192 * opencl-lang.c (opencl_language_data): Likewise.
8193 * p-lang.c (pascal_language_data): Likewise.
8194 (pascal_language::print_typedef): New member function.
8195 * rust-lang.c (rust_print_typedef): Delete function,
8196 implementation moved to rust_language::print_typedef.
8197 (rust_language): Delete la_print_typedef initializer.
8198 (rust_language::print_typedef): New member function,
8199 implementation from rust_print_typedef.
8200 * typeprint.c (default_print_typedef): Delete.
8201
8202 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8203
8204 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8205 (ada_language::printstr): New member function.
8206 * c-lang.c (c_language_data): Delete la_printstr initializer.
8207 (cplus_language_data): Likewise.
8208 (asm_language_data): Likewise.
8209 (minimal_language_data): Likewise.
8210 * d-lang.c (d_language_data): Likewise.
8211 * f-lang.c (f_printstr): Rename to f_language::printstr.
8212 (f_language_data): Delete la_printstr initializer.
8213 (f_language::printstr): New member function, implementation from
8214 f_printstr.
8215 * go-lang.c (go_language_data): Delete la_printstr initializer.
8216 * language.c (language_defn::printstr): Define new member
8217 function.
8218 (unk_lang_printstr): Delete.
8219 (unknown_language_data): Delete la_printstr initializer.
8220 (unknown_language::printstr): New member function.
8221 (auto_language_data): Delete la_printstr initializer.
8222 (auto_language::printstr): New member function.
8223 * language.h (language_data): Delete la_printstr field.
8224 (language_defn::printstr): Declare new member function.
8225 (LA_PRINT_STRING): Update call to printstr.
8226 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8227 (m2_language_data): Delete la_printstr initializer.
8228 (m2_language::printstr): New member function, implementation from
8229 m2_printstr.
8230 * objc-lang.c (objc_language_data): Delete la_printstr
8231 initializer.
8232 * opencl-lang.c (opencl_language_data): Likewise.
8233 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8234 (pascal_language_data): Delete la_printstr initializer.
8235 (pascal_language::printstr): New member function, implementation
8236 from pascal_printstr.
8237 * p-lang.h (pascal_printstr): Delete declaration.
8238 * rust-lang.c (rust_printstr): Update header comment.
8239 (rust_language_data): Delete la_printstr initializer.
8240 (rust_language::printstr): New member function.
8241
8242 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8243
8244 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8245 (ada_language::printchar): New member function.
8246 * c-lang.c (c_language_data): Delete la_printchar initializer.
8247 (cplus_language_data): Likewise.
8248 (asm_language_data): Likewise.
8249 (minimal_language_data): Likewise.
8250 * d-lang.c (d_language_data): Likewise.
8251 * f-lang.c (f_printchar): Rename to f_language::printchar.
8252 (f_language_data): Delete la_printchar initializer.
8253 (f_language::printchar): New member function, implementation from
8254 f_printchar.
8255 * go-lang.c (go_language_data): Delete la_printchar initializer.
8256 * language.c (unk_lang_printchar): Delete.
8257 (language_defn::printchar): Define new member function.
8258 (unknown_language_data): Delete la_printchar initializer.
8259 (unknown_language::printchar): New member function.
8260 (auto_language_data): Delete la_printchar initializer.
8261 (auto_language::printchar): New member function.
8262 * language.h (language_data): Delete la_printchar field.
8263 (language_defn::printchar): Declare new member function.
8264 (LA_PRINT_CHAR): Update call to printchar.
8265 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8266 (m2_language::printchar): New member function.
8267 * objc-lang.c (objc_language_data): Delete la_printchar
8268 initializer.
8269 * opencl-lang.c (opencl_language_data): Likewise.
8270 * p-lang.c (pascal_language_data): Delete la_printchar
8271 initializer.
8272 (pascal_language::printchar): New member function.
8273 * rust-lang.c (rust_printchar): Rename to
8274 rust_language::printchar.
8275 (rust_language_data): Delete la_printchar initializer.
8276 (rust_language::printchar): New member function, implementation
8277 from rust_printchar.
8278
8279 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8280
8281 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8282 (ada_language_data): Delete la_emitchar initializer.
8283 (ada_language::emitchar): New member function, implementation from
8284 emit_char.
8285 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8286 (cplus_language_data): Likewise.
8287 (asm_language_data): Likewise.
8288 (minimal_language_data): Likewise.
8289 * d-lang.c (d_language_data): Likewise.
8290 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8291 (f_language_data): Delete la_emitchar initializer.
8292 (f_language::emitchar): New member function, implementation from
8293 f_emit_char.
8294 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8295 * language.c (unk_lang_emit_char): Delete.
8296 (language_defn::emitchar): New member function definition.
8297 (unknown_language_data): Delete la_emitchar initializer.
8298 (unknown_language::emitchar): New member function.
8299 (auto_language_data): Delete la_emitchar initializer.
8300 (auto_language::emitchar): New member function.
8301 * language.h (language_data): Delete la_emitchar field.
8302 (language_defn::emitchar): New member field declaration.
8303 (LA_EMIT_CHAR): Update call to emitchar.
8304 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8305 (m2_language_data): Delete la_emitchar initializer.
8306 (m2_language::emitchar): New member function, implementation from
8307 m2_emit_char.
8308 * objc-lang.c (objc_language_data): Delete la_emitchar
8309 initializer.
8310 * opencl-lang.c (opencl_language_data): Likewise.
8311 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8312 (pascal_language_data): Delete la_emitchar initializer.
8313 (pascal_language::emitchar): New member function, implementation
8314 from pascal_emit_char.
8315 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8316 (rust_language_data): Delete la_emitchar initializer.
8317 (rust_language::emitchar): New member function, implementation
8318 from rust_emitchar.
8319
8320 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8321
8322 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8323 (ada_language_data): Delete la_post_parser initializer.
8324 (ada_language::post_parser): New member function.
8325 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8326 (cplus_language_data): Likewise.
8327 (asm_language_data): Likewise.
8328 (minimal_language_data): Likewise.
8329 * d-lang.c (d_language_data): Likewise.
8330 * f-lang.c (f_language_data): Likewise.
8331 * go-lang.c (go_language_data): Likewise.
8332 * language.c (unknown_language_data): Likewise.
8333 (auto_language_data): Likewise.
8334 * language.h (language_data): Delete la_post_parser field.
8335 (language_defn::post_parser): New member function.
8336 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8337 * objc-lang.c (objc_language_data): Likewise.
8338 * opencl-lang.c (opencl_language_data): Likewise.
8339 * p-lang.c (pascal_language_data): Likewise.
8340 * parse.c (parse_exp_in_context): Update call to post_parser.
8341 (null_post_parser): Delete definition.
8342 * parser-defs.h (null_post_parser): Delete declaration.
8343 * rust-lang.c (rust_language_data): Delete la_post_parser
8344 initializer.
8345
8346 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8347
8348 * ada-lang.c (parse): Rename to ada_language::parser.
8349 (ada_language_data): Delete la_parser initializer.
8350 (ada_language::parser): New member function, implementation from
8351 parse.
8352 * c-lang.c (c_language_data): Delete la_parser initializer.
8353 (cplus_language_data): Likewise.
8354 (asm_language_data): Likewise.
8355 (minimal_language_data): Likewise.
8356 * d-lang.c (d_language_data): Likewise.
8357 (d_language::parser): New member function.
8358 * f-lang.c (f_language_data): Delete la_parser initializer.
8359 (f_language::parser): New member function.
8360 * go-lang.c (go_language_data): Delete la_parser initializer.
8361 (go_language::parser): New member function.
8362 * language.c (unk_lang_parser): Delete.
8363 (language_defn::parser): Define new member function.
8364 (unknown_language_data): Delete la_parser initializer.
8365 (unknown_language::parser): New member function.
8366 (auto_language_data): Delete la_parser initializer.
8367 (auto_language::parser): New member function.
8368 * language.h (language_data): Delete la_parser field.
8369 (language_defn::parser): Declare new member function.
8370 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8371 (m2_language::parser): New member function.
8372 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8373 * opencl-lang.c (opencl_language_data): Likewise.
8374 * p-lang.c (pascal_language_data): Likewise.
8375 (pascal_language::parser): New member function.
8376 * parse.c (parse_exp_in_context): Update call to parser.
8377 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8378 (rust_language::parser): New member function.
8379
8380 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8381
8382 * top.c (print_gdb_configuration): Print --with-python-libdir
8383 configuration value.
8384
8385 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8386
8387 * NEWS: Mention change to the alias command.
8388
8389 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8390
8391 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8392 (alias_command_completer)
8393 (make_alias_options_def_group): New functions.
8394 (alias_opts, alias_option_defs): New struct and array.
8395 (alias_usage_error): Update usage.
8396 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8397 Use option framework.
8398 (_initialize_cli_cmds): Update alias command help.
8399 Update aliases command help.
8400 (show_user):
8401 Add NULL for new default_args lookup_cmd argument.
8402 (valid_command_p): Rename to validate_aliased_command.
8403 Add NULL for new default_args lookup_cmd argument. Verify that the
8404 aliased_command has no default args.
8405 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8406 (lookup_cmd_1, lookup_cmd): New argument default_args.
8407 (add_alias_cmd):
8408 Add NULL for new default_args lookup_cmd argument.
8409 (print_help_for_command): Show default args under the layout
8410 alias some_alias = some_aliased_cmd some_alias_default_arg.
8411 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8412 xfree default_args in destructor.
8413 * cli/cli-script.c (process_next_line, do_define_command):
8414 Add NULL for new default_args lookup_cmd argument.
8415 * command.h: Declare new default_args argument in lookup_cmd
8416 and lookup_cmd_1.
8417 * completer.c (complete_line_internal_1):
8418 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8419 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8420 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8421 Likewise.
8422 * infcmd.c (_initialize_infcmd): Likewise.
8423 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8424 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8425 * python/py-param.c (add_setshow_generic): Likewise.
8426 * remote.c (_initialize_remote): Likewise.
8427 * top.c (execute_command): Prepend default_args if command has some.
8428 (set_verbose):
8429 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8430 * tracepoint.c (validate_actionline, encode_actions_1):
8431 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8432
8433 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8434
8435 * jit.c (jit_read_descriptor): Use bool as the return type.
8436 (jit_breakpoint_re_set_internal): Use bool as the return type.
8437 Invert the return value logic; return true if the jit breakpoint
8438 has been successfully initialized.
8439 (jit_inferior_init): Update the call to
8440 jit_breakpoint_re_set_internal.
8441
8442 2020-06-22 Pedro Alves <palves@redhat.com>
8443
8444 PR gdb/25939
8445 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8446 Use the current inferior instead. Don't return
8447 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8448 wait again.
8449 * sol-thread.c (sol_thread_target::wait): Don't reference
8450 inferior_ptid.
8451 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8452 (sol_update_thread_list_callback): Use the current inferior's pid
8453 instead of inferior_ptid.
8454
8455 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8456
8457 * procfs.c: Cleanup many comments.
8458
8459 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8460 (AFTER_WATCHFLAG): Replace by value.
8461
8462 (MAIN_PROC_NAME_FORMAT): Inline ...
8463 (create_procinfo): ... here.
8464
8465 (procfs_debug_inferior): Remove SYS_exec handling.
8466 (syscall_is_exec): Likewise.
8467 (procfs_set_exec_trap): Likewise.
8468
8469 (syscall_is_lwp_exit): Inline in callers.
8470 (syscall_is_exit): Likewise.
8471 (syscall_is_exec): Likewise.
8472 (syscall_is_lwp_create): Likewise.
8473
8474 (invalidate_cache): Remove #if 0 code.
8475
8476 (make_signal_thread_runnable): Remove.
8477 (procfs_target::resume): Remove #if 0 code.
8478
8479 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8480
8481 PR gdb/25939
8482 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8483 call ...
8484 (procfs_target::create_inferior): ... here.
8485
8486 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8487
8488 * exec.c (validate_exec_file): Ensure the build-id is up to
8489 date by calling reopen_exec_file (that checks file timestamp
8490 to decide to re-read the file).
8491
8492 2020-06-18 Pedro Alves <palves@redhat.com>
8493
8494 PR gdb/25412
8495 * gdbthread.h (delete_thread, delete_thread_silent)
8496 (find_thread_ptid): Update comments.
8497 * thread.c (current_thread_): New global.
8498 (is_current_thread): Move higher, and reimplement.
8499 (inferior_thread): Reimplement.
8500 (set_thread_exited): Use bool. Add assertions.
8501 (add_thread_silent): Simplify thread-reuse handling by always
8502 calling delete_thread.
8503 (delete_thread): Remove intro comment.
8504 (find_thread_ptid): Skip exited threads.
8505 (switch_to_thread_no_regs): Write to current_thread_.
8506 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8507 INFERIOR_PTID. Clear current_thread_.
8508
8509 2020-06-18 Pedro Alves <palves@redhat.com>
8510
8511 * aix-thread.c (pd_update): Use switch_to_thread.
8512
8513 2020-06-18 Pedro Alves <palves@redhat.com>
8514
8515 * ravenscar-thread.c (ravenscar_thread_target): Update.
8516 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8517 (ravenscar_thread_target::add_active_thread): ... this. Don't
8518 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8519 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8520
8521 2020-06-18 Pedro Alves <palves@redhat.com>
8522
8523 * nat/windows-nat.c (current_windows_thread): Remove.
8524 * nat/windows-nat.h (current_windows_thread): Remove.
8525 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8526 Adjust.
8527 (display_selectors): Adjust to fetch the current
8528 windows_thread_info based on inferior_ptid.
8529 (fake_create_process): No longer write to current_windows_thread.
8530 (windows_nat_target::get_windows_debug_event):
8531 Don't set inferior_ptid or current_windows_thread.
8532 (windows_nat_target::wait): Adjust to not rely on
8533 current_windows_thread.
8534 (do_initial_windows_stuff): Now a method of windows_nat_target.
8535 Switch to the last_ptid thread.
8536 (windows_nat_target::attach): Adjust.
8537 (windows_nat_target::detach): Use switch_to_no_thread instead of
8538 writing to inferior_ptid directly.
8539 (windows_nat_target::create_inferior): Adjust.
8540
8541 2020-06-18 Pedro Alves <palves@redhat.com>
8542
8543 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8544
8545 2020-06-18 Pedro Alves <palves@redhat.com>
8546
8547 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8548 after creating it, instead of writing to inferior_ptid. Don't
8549 write to inferior_ptid.
8550
8551 2020-06-18 Pedro Alves <palves@redhat.com>
8552
8553 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8554
8555 2020-06-18 Pedro Alves <palves@redhat.com>
8556
8557 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8558 it, instead of writing to inferior_ptid.
8559
8560 2020-06-18 Pedro Alves <palves@redhat.com>
8561
8562 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8563 to inferior_ptid.
8564
8565 2020-06-18 Pedro Alves <palves@redhat.com>
8566
8567 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8568 instead of writing to inferior_ptid directly.
8569
8570 2020-06-18 Pedro Alves <palves@redhat.com>
8571
8572 * corelow.c (core_target::close): Use switch_to_no_thread instead
8573 of writing to inferior_ptid directly.
8574 (add_to_thread_list, core_target_open): Use switch_to_thread
8575 instead of writing to inferior_ptid directly.
8576
8577 2020-06-18 Pedro Alves <palves@redhat.com>
8578
8579 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8580 inferior_ptid.
8581 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8582 inferior_ptid.
8583 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8584 inferior_ptid directly.
8585 (darwin_nat_target::init_thread_list): Switch to thread, instead
8586 of writing to inferior_ptid.
8587 (darwin_nat_target::attach): Don't write to inferior_ptid.
8588 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8589
8590 2020-06-18 Pedro Alves <palves@redhat.com>
8591
8592 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8593 thread.
8594 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8595 Instead use switch_to_thread.
8596 (gnu_nat_target::detach): Use switch_to_no_thread
8597 instead of writing to inferior_ptid directly. Used passed-in
8598 inferior instead of looking up the inferior by pid.
8599
8600 2020-06-18 Pedro Alves <palves@redhat.com>
8601
8602 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8603 inferior_ptid.
8604
8605 2020-06-18 Pedro Alves <palves@redhat.com>
8606
8607 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8608 inferior_ptid.
8609 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8610 thread.
8611 (nto_procfs_target::detach): Avoid referencing
8612 inferior_ptid. Use switch_to_no_thread instead of writing to
8613 inferior_ptid directly.
8614 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8615 instead of writing to inferior_ptid directly.
8616 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8617 to thread.
8618
8619 2020-06-18 Pedro Alves <palves@redhat.com>
8620
8621 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8622 after creating it, instead of writing to inferior_ptid.
8623 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8624 to inferior_ptid directly.
8625 (gdbsim_target::wait): Don't write to inferior_ptid.
8626
8627 2020-06-18 Pedro Alves <palves@redhat.com>
8628
8629 * remote.c (remote_target::remote_notice_new_inferior): Use
8630 switch_to_thread instead of writing to inferior_ptid directly.
8631 (remote_target::add_current_inferior_and_thread): Use
8632 switch_to_no_thread instead of writing to inferior_ptid directly.
8633 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8634 and switch_to_thread instead of using set_current_inferior or
8635 writing to inferior_ptid directly.
8636
8637 2020-06-18 Pedro Alves <palves@redhat.com>
8638
8639 * tracectf.c (ctf_target_open): Switch to added thread instead of
8640 writing to inferior_ptid directly.
8641 (ctf_target::close): Use switch_to_no_thread instead of writing to
8642 inferior_ptid directly.
8643
8644 2020-06-18 Pedro Alves <palves@redhat.com>
8645
8646 * tracefile-tfile.c (tfile_target_open): Don't write to
8647 inferior_ptid directly, instead switch to added thread.
8648 (tfile_target::close): Use switch_to_no_thread instead of writing
8649 to inferior_ptid directly.
8650
8651 2020-06-18 Pedro Alves <palves@redhat.com>
8652
8653 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8654 (procfs_target::detach): Use switch_to_no_thread
8655 instead of writing to inferior_ptid directly.
8656 (do_attach): Change return type to void. Switch to the added
8657 thread.
8658 (procfs_target::create_inferior): Switch to the added thread.
8659 (procfs_do_thread_registers): Don't write to inferior_ptid.
8660
8661 2020-06-18 Pedro Alves <palves@redhat.com>
8662
8663 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8664 of writing to inferior_ptid.
8665 (scoped_restore_exited_inferior): Delete.
8666 (handle_vfork_child_exec_or_exit): Simplify using
8667 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8668 instead of writing to inferior_ptid.
8669 (THREAD_STOPPED_BY): Delete.
8670 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8671 (thread_stopped_by_hw_breakpoint): Delete.
8672 (save_waitstatus): Use
8673 scoped_restore_current_thread+switch_to_thread, and call
8674 target_stopped_by_watchpoint instead of
8675 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8676 instead of thread_stopped_by_sw_breakpoint, and
8677 target_stopped_by_hw_breakpoint instead of
8678 thread_stopped_by_hw_breakpoint.
8679 (handle_inferior_event)
8680 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8681 inferior_ptid directly, nor
8682 set_current_inferior/set_current_program_space. Use
8683 switch_to_thread / switch_to_inferior_no_thread instead.
8684
8685 2020-06-18 Pedro Alves <palves@redhat.com>
8686
8687 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8688 instead of writing to inferior_ptid.
8689
8690 2020-06-18 Pedro Alves <palves@redhat.com>
8691
8692 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8693 added thread.
8694 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8695 to the added thread.
8696 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8697 instead of writing to inferior_ptid.
8698
8699 2020-06-18 Pedro Alves <palves@redhat.com>
8700
8701 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8702 (register_to_value_test): Mock a program_space too. Heap-allocate
8703 the address space. Don't write to inferior_ptid. Use
8704 switch_to_thread instead.
8705
8706 2020-06-18 Pedro Alves <palves@redhat.com>
8707
8708 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8709 Delete.
8710 (find_signalled_thread()): New, factored out from
8711 linux_make_corefile_notes and adjusted to handle exited threads.
8712 (linux_make_corefile_notes): Adjust to use the new
8713 find_signalled_thread.
8714
8715 2020-06-18 Pedro Alves <palves@redhat.com>
8716
8717 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8718 of saving/restoring inferior_ptid.
8719
8720 2020-06-17 Tom Tromey <tom@tromey.com>
8721
8722 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8723 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8724 declare.
8725 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8726
8727 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8730 of partial symtabs.
8731
8732 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * regformats/reg-arm.dat: Remove.
8735 * regformats/reg-bfin.dat: Remove.
8736 * regformats/reg-cris.dat: Remove.
8737 * regformats/reg-crisv32.dat: Remove.
8738 * regformats/reg-m32r.dat: Remove.
8739 * regformats/reg-tilegx.dat: Remove.
8740 * regformats/reg-tilegx32.dat: Remove.
8741
8742 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * features/Makefile (WHICH): Remove arm files.
8745 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8746 * regformats/arm/arm-with-neon.dat: Remove.
8747 * regformats/arm/arm-with-vfpv2.dat: Remove.
8748 * regformats/arm/arm-with-vfpv3.dat: Remove.
8749
8750 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8751
8752 * features/Makefile (XMLTOC): Remove rx.xml.
8753
8754 2020-06-17 Pedro Alves <palves@redhat.com>
8755
8756 * gdbthread.h (thread_control_state) <trap_expected> Update
8757 comments.
8758
8759 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8760
8761 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8762 ada_language::lookup_symbol_nonlocal.
8763 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8764 (ada_language::lookup_symbol_nonlocal): New member function,
8765 implementation from ada_lookup_symbol_nonlocal.
8766 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8767 initializer.
8768 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8769 initializer.
8770 (cplus_language::lookup_symbol_nonlocal): New member function.
8771 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8772 (minimal_language_data) Likewise.
8773 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8774 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8775 initializer.
8776 (d_language::lookup_symbol_nonlocal): New member function.
8777 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8778 initializer.
8779 (f_language::lookup_symbol_nonlocal): New member function.
8780 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8781 initializer.
8782 * language.c (unknown_language_data): Likewise.
8783 (auto_language_data): Likewise.
8784 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8785 field.
8786 (language_defn::lookup_symbol_nonlocal): New member function.
8787 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8788 initializer.
8789 * objc-lang.c (objc_language_data): Likewise.
8790 * opencl-lang.c (opencl_language_data): Likewise.
8791 * p-lang.c (pascal_language_data): Likewise.
8792 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8793 rust_language::lookup_symbol_nonlocal.
8794 (rust_language_data): Delete la_lookup_symbol_nonlocal
8795 initializer.
8796 (rust_language::lookup_symbol_nonlocal): New member function,
8797 implementation from rust_lookup_symbol_nonlocal.
8798 * symtab.c (lookup_symbol_aux): Update call to
8799 lookup_symbol_nonlocal.
8800 (basic_lookup_symbol_nonlocal): Rename to...
8801 (language_defn::lookup_symbol_nonlocal): ...this, and update
8802 header comment. Remove language_defn parameter, and replace with
8803 uses of `this'.
8804 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8805
8806 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8807
8808 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8809 initializer.
8810 (ada_language::value_print_inner): New member function.
8811 * c-lang.c (c_language_data): Delete la_value_print_inner
8812 initializer.
8813 (cplus_language_data): Likewise.
8814 (asm_language_data): Likewise.
8815 (minimal_language_data): Likewise.
8816 * d-lang.c (d_language_data): Likewise.
8817 (d_language::value_print_inner): New member function.
8818 * f-lang.c (f_language_data): Delete la_value_print_inner
8819 initializer.
8820 (f_language::value_print_inner): New member function.
8821 * f-lang.h (f_value_print_innner): Rename to...
8822 (f_value_print_inner): ...this (note spelling of 'inner').
8823 * f-valprint.c (f_value_print_innner): Rename to...
8824 (f_value_print_inner): ...this (note spelling of 'inner').
8825 * go-lang.c (go_language_data): Delete la_value_print_inner
8826 initializer.
8827 (go_language::value_print_inner): New member function.
8828 * language.c (language_defn::value_print_inner): Define new member
8829 function.
8830 (unk_lang_value_print_inner): Delete.
8831 (unknown_language_data): Delete la_value_print_inner initializer.
8832 (unknown_language::value_print_inner): New member function.
8833 (auto_language_data): Delete la_value_print_inner initializer.
8834 (auto_language::value_print_inner): New member function.
8835 * language.h (language_data): Delete la_value_print_inner field.
8836 (language_defn::value_print_inner): Delcare new member function.
8837 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8838 initializer.
8839 (m2_language::value_print_inner): New member function.
8840 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8841 initializer.
8842 * opencl-lang.c (opencl_language_data): Likewise.
8843 * p-lang.c (pascal_language_data): Likewise.
8844 (pascal_language::value_print_inner): New member function.
8845 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8846 initializer.
8847 (rust_language::value_print_inner): New member function.
8848 * valprint.c (do_val_print): Update call to value_print_inner.
8849
8850 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8851
8852 * ada-lang.c (ada_language_data): Delete la_value_print
8853 initializer.
8854 (ada_language::value_print): New member function.
8855 * c-lang.c (c_language_data): Delete la_value_print initializer.
8856 (cplus_language_data): Likewise.
8857 (asm_language_data): Likewise.
8858 (minimal_language_data): Likewise.
8859 * d-lang.c (d_language_data): Likewise.
8860 * f-lang.c (f_language_data): Likewise.
8861 * go-lang.c (go_language_data): Likewise.
8862 * language.c (unk_lang_value_print): Delete.
8863 (language_defn::value_print): Define new member function.
8864 (unknown_language_data): Delete la_value_print initializer.
8865 (unknown_language::value_print): New member function.
8866 (auto_language_data): Delete la_value_print initializer.
8867 (auto_language::value_print): New member function.
8868 * language.h (language_data): Delete la_value_print field.
8869 (language_defn::value_print): Declare new member function.
8870 (LA_VALUE_PRINT): Update call to value_print.
8871 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8872 * objc-lang.c (objc_language_data): Likewise.
8873 * opencl-lang.c (opencl_language_data): Likewise.
8874 * p-lang.c (pascal_language_data): Likewise.
8875 (pascal_language::value_print): New member function.
8876 * rust-lang.c (rust_language_data): Delete la_value_print
8877 initializer.
8878
8879 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8880
8881 * ada-lang.c (ada_watch_location_expression): Rename to
8882 ada_language::watch_location_expression.
8883 (ada_language_data): Delete la_watch_location_expression
8884 initializer.
8885 (ada_language::watch_location_expression): New member function,
8886 implementation from ada_watch_location_expression.
8887 * breakpoint.c (watch_command_1): Update call to
8888 watch_location_expression.
8889 * c-lang.c (c_watch_location_expression): Rename to
8890 language_defn::watch_location_expression.
8891 (c_language_data): Delete la_watch_location_expression
8892 initializer.
8893 (cplus_language_data): Likewise.
8894 (asm_language_data): Likewise.
8895 (minimal_language_data): Likewise.
8896 * c-lang.h (c_watch_location_expression): Delete declaration.
8897 * d-lang.c (d_language_data): Delete la_watch_location_expression
8898 initializer.
8899 * f-lang.c (f_language_data): Likewise.
8900 * go-lang.c (go_language_data): Likewise.
8901 * language.c (language_defn::watch_location_expression): Member
8902 function implementation from c_watch_location_expression.
8903 (unknown_language_data): Delete la_watch_location_expression
8904 initializer.
8905 (auto_language_data): Likewise.
8906 * language.h (language_data): Delete la_watch_location_expression
8907 field.
8908 (language_defn::watch_location_expression): Declare new member
8909 function.
8910 * m2-lang.c (m2_language_data): Delete
8911 la_watch_location_expression initializer.
8912 * objc-lang.c (objc_language_data): Likewise.
8913 * opencl-lang.c (opencl_language_data): Likewise.
8914 * p-lang.c (pascal_language_data): Likewise.
8915 * rust-lang.c (rust_watch_location_expression): Rename to
8916 rust_language::watch_location_expression.
8917 (rust_language_data): Delete la_watch_location_expression
8918 initializer.
8919 (rust_language::watch_location_expression): New member function,
8920 implementation from rust_watch_location_expression.
8921
8922 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8923
8924 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8925 ada_language::collect_symbol_completion_matches.
8926 (ada_language_data): Delete la_collect_symbol_completion_matches
8927 initializer.
8928 (ada_language::collect_symbol_completion_matches): New member
8929 function, implementation from
8930 ada_collect_symbol_completion_matches.
8931 * c-lang.c (c_language_data): Delete
8932 la_collect_symbol_completion_matches initializer.
8933 (cplus_language_data): Likewise.
8934 (asm_language_data): Likewise.
8935 (minimal_language_data): Likewise.
8936 * d-lang.c (d_language_data): Likewise.
8937 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8938 f_language::collect_symbol_completion_matches.
8939 (f_language_data): Delete la_collect_symbol_completion_matches
8940 initializer.
8941 (f_language::collect_symbol_completion_matches) New member
8942 function, implementation from f_collect_symbol_completion_matches.
8943 * go-lang.c (go_language_data): Delete
8944 la_collect_symbol_completion_matches initializer.
8945 * language.c (unknown_language_data): Likewise.
8946 (auto_language_data): Likewise.
8947 * language.h (language_data): Delete
8948 la_collect_symbol_completion_matches field.
8949 (language_defn::collect_symbol_completion_matches): New member
8950 function.
8951 * m2-lang.c (m2_language_data): Delete
8952 la_collect_symbol_completion_matches initializer.
8953 * objc-lang.c (objc_language_data): Likewise.
8954 * opencl-lang.c (opencl_language_data): Likewise.
8955 * p-lang.c (pascal_language_data): Likewise.
8956 * rust-lang.c (rust_language_data): Likewise.
8957 * symtab.c (default_collect_symbol_completion_matches): Delete.
8958 (collect_symbol_completion_matches): Update call to
8959 collect_symbol_completion_matches.
8960 (collect_symbol_completion_matches_type): Likewise.
8961 * symtab.h (default_collect_symbol_completion_matches): Delete
8962 declaration.
8963
8964 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8965
8966 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8967 (ada_language_data): Delete la_word_break_characters initializer.
8968 (ada_language::word_break_characters): New member function.
8969 * c-lang.c (c_language_data): Delete la_word_break_characters
8970 initializer.
8971 (cplus_language_data): Likewise.
8972 (asm_language_data): Likewise.
8973 (minimal_language_data): Likewise.
8974 * completer.c: Update global comment.
8975 (advance_to_expression_complete_word_point): Update call to
8976 word_break_characters.
8977 (complete_files_symbols): Likewise.
8978 (complete_line_internal_1): Likewise.
8979 (default_completer_handle_brkchars): Likewise.
8980 (skip_quoted_chars): Likewise.
8981 * d-lang.c (d_language_data): Delete la_word_break_characters
8982 initializer.
8983 * f-lang.c (f_word_break_characters): Delete.
8984 (f_language_data): Delete la_word_break_characters initializer.
8985 (f_language::word_break_characters): New member function.
8986 * go-lang.c (go_language_data): Delete la_word_break_characters
8987 initializer.
8988 * language.c (unknown_language_data): Likewise.
8989 (auto_language_data): Likewise.
8990 * language.h (default_word_break_characters): Move declaration to
8991 earlier in the file.
8992 (language_data): Delete la_word_break_characters field.
8993 (language_defn::word_break_characters): New member function.
8994 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8995 initializer.
8996 * objc-lang.c (objc_language_data): Likewise.
8997 * opencl-lang.c (opencl_language_data): Likewise.
8998 * p-lang.c (pascal_language_data): Likewise.
8999 * rust-lang.c (rust_language_data): Likewise.
9000
9001 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9002
9003 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9004 (ada_language_data): Delete la_get_symbol_name_matcher
9005 initializer.
9006 (language_defn::get_symbol_name_matcher_inner): New member
9007 function.
9008 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9009 initializer.
9010 (cplus_language_data): Likewise.
9011 (cplus_language::get_symbol_name_matcher_inner): New member
9012 function.
9013 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9014 (minimal_language_data): Likewise.
9015 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9016 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9017 initializer.
9018 * dictionary.c (iter_match_first_hashed): Update call to
9019 get_symbol_name_matcher.
9020 (iter_match_next_hashed): Likewise.
9021 (iter_match_next_linear): Likewise.
9022 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9023 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9024 initializer.
9025 (f_language::get_symbol_name_matcher_inner): New member function.
9026 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9027 initializer.
9028 * language.c (default_symbol_name_matcher): Update header comment,
9029 make static.
9030 (language_defn::get_symbol_name_matcher): New definition.
9031 (language_defn::get_symbol_name_matcher_inner): Likewise.
9032 (get_symbol_name_matcher): Delete.
9033 (unknown_language_data): Delete la_get_symbol_name_matcher
9034 initializer.
9035 (auto_language_data): Likewise.
9036 * language.h (language_data): Delete la_get_symbol_name_matcher
9037 field.
9038 (language_defn::get_symbol_name_matcher): New member function.
9039 (language_defn::get_symbol_name_matcher_inner): Likewise.
9040 (default_symbol_name_matcher): Delete declaration.
9041 * linespec.c (find_methods): Update call to
9042 get_symbol_name_matcher.
9043 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9044 initializer.
9045 * minsyms.c (lookup_minimal_symbol): Update call to
9046 get_symbol_name_matcher.
9047 (iterate_over_minimal_symbols): Likewise.
9048 * objc-lang.c (objc_language_data): Delete
9049 la_get_symbol_name_matcher initializer.
9050 * opencl-lang.c (opencl_language_data): Likewise.
9051 * p-lang.c (pascal_language_data): Likewise.
9052 * psymtab.c (psymbol_name_matches): Update call to
9053 get_symbol_name_matcher.
9054 * rust-lang.c (rust_language_data): Delete
9055 la_get_symbol_name_matcher initializer.
9056 * symtab.c (symbol_matches_search_name): Update call to
9057 get_symbol_name_matcher.
9058 (compare_symbol_name): Likewise.
9059
9060 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9061
9062 * ada-lang.c (ada_language_data): Delete la_compute_program
9063 initializer.
9064 * c-lang.c (c_language_data): Likewise.
9065 (c_language::compute_program): New member function.
9066 (cplus_language_data): Delete la_compute_program initializer.
9067 (cplus_language::compute_program): New member function.
9068 (asm_language_data): Delete la_compute_program initializer.
9069 (minimal_language_data): Likewise.
9070 * c-lang.h (c_compute_program): Update comment.
9071 (cplus_compute_program): Likewise.
9072 * compile/compile-c-support.c (c_compute_program): Likewise.
9073 (cplus_compute_program): Likewise.
9074 * compile/compile.c (compile_to_object): Update call to
9075 la_compute_program.
9076 * d-lang.c (d_language_data): Delete la_compute_program
9077 initializer.
9078 * f-lang.c (f_language_data): Likewise.
9079 * go-lang.c (go_language_data): Likewise.
9080 * language.c (unknown_language_data): Likewise.
9081 (auto_language_data): Likewise.
9082 * language.h (language_data): Delete la_compute_program field.
9083 (language_defn::compute_program): New member function.
9084 * m2-lang.c (m2_language_data): Delete la_compute_program
9085 initializer.
9086 * objc-lang.c (objc_language_data): Likewise.
9087 * opencl-lang.c (opencl_language_data): Likewise.
9088 * p-lang.c (pascal_language_data): Likewise.
9089 * rust-lang.c (rust_language_data): Likewise.
9090
9091 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9092
9093 * ada-lang.c (ada_language_data) Delete
9094 la_class_name_from_physname initializer.
9095 * c-lang.c (c_language_data): Likewise.
9096 (cplus_language_data): Likewise.
9097 (cplus_language::class_name_from_physname): New member function.
9098 (asm_language_data): Delete la_class_name_from_physname
9099 initializer.
9100 (minimal_language_data): Likewise.
9101 * d-lang.c (d_language_data): Likewise.
9102 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9103 method on language_defn class.
9104 (guess_full_die_structure_name): Likewise.
9105 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9106 initializer.
9107 * go-lang.c (go_language_data): Likewise.
9108 * language.c (language_class_name_from_physname): Delete.
9109 (unk_lang_class_name): Delete.
9110 (unknown_language_data): Delete la_class_name_from_physname
9111 initializer.
9112 (auto_language_data): Likewise.
9113 * language.h (language_data): Delete la_class_name_from_physname
9114 field.
9115 (language_defn::class_name_from_physname): New function.
9116 (language_class_name_from_physname): Delete declaration.
9117 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9118 initializer.
9119 * objc-lang.c (objc_language_data): Likewise.
9120 * opencl-lang.c (opencl_language_data): Likewise.
9121 * p-lang.c (pascal_language_data): Likewise.
9122 * rust-lang.c (rust_language_data): Likewise.
9123
9124 2020-06-16 Tom Tromey <tom@tromey.com>
9125
9126 * tui/tui-data.h (STATUS_NAME): New macro.
9127 * tui/tui-layout.c (tui_remove_some_windows)
9128 (initialize_known_windows, tui_register_window)
9129 (tui_layout_split::remove_windows, initialize_layouts)
9130 (tui_new_layout_command): Don't use hard-coded window names.
9131
9132 2020-06-16 Tom Tromey <tom@tromey.com>
9133
9134 PR tui/25348:
9135 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9136 tui_initialize_readline. Only run once. Call rl_initialize.
9137 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9138 tui_initialize_readline.
9139 * tui/tui-io.c (tui_setup_io): Call
9140 tui_ensure_readline_initialized.
9141 * tui/tui-interp.c (tui_interp::init): Update.
9142
9143 2020-06-16 Tom Tromey <tom@tromey.com>
9144
9145 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9146 Also preserve the status window.
9147
9148 2020-06-16 Tom Tromey <tom@tromey.com>
9149
9150 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9151 where m_window==nullptr.
9152
9153 2020-06-15 Tom Tromey <tromey@adacore.com>
9154
9155 * windows-nat.c (windows_nat::handle_output_debug_string):
9156 Update.
9157 (windows_nat::handle_ms_vc_exception): Update.
9158 * target.h (target_read_string): Change API.
9159 * target.c (target_read_string): Change API.
9160 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9161 Update.
9162 * solib-frv.c (frv_current_sos): Update.
9163 * solib-dsbt.c (dsbt_current_sos): Update.
9164 * solib-darwin.c (darwin_current_sos): Update.
9165 * linux-thread-db.c (inferior_has_bug): Update.
9166 * expprint.c (print_subexp_standard): Update.
9167 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9168 (ada_exception_message_1): Update.
9169
9170 2020-06-15 Tom Tromey <tromey@adacore.com>
9171
9172 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9173
9174 2020-06-15 Tom Tromey <tromey@adacore.com>
9175
9176 * valprint.c (read_string): Update comment.
9177 * target.c (MIN): Remove.
9178 (target_read_string): Rewrite.
9179
9180 2020-06-15 Tom Tromey <tromey@adacore.com>
9181
9182 * corefile.c (read_memory_string): Remove.
9183 * ada-valprint.c (ada_value_print_ptr): Update.
9184 * ada-lang.h (ada_tag_name): Change return type.
9185 * ada-lang.c (type_from_tag): Update.
9186 (ada_tag_name_from_tsd): Change return type. Use
9187 target_read_string.
9188 (ada_tag_name): Likewise.
9189 * gdbcore.h (read_memory_string): Don't declare.
9190
9191 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9192
9193 * symtab.c (rbreak_command): Ignore Windows drive colon.
9194
9195 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9196
9197 * NEWS: Mention removed GDBserver host support.
9198
9199 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9200
9201 * features/riscv/rebuild-csr-xml.sh: Updated.
9202
9203 2020-06-11 Tom Tromey <tom@tromey.com>
9204
9205 PR gdb/18318:
9206 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9207
9208 2020-06-09 Jonny Grant <jg@jguk.org>
9209 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9210
9211 * main.c (captured_main_1): Don't print new line after help.
9212 (print_gdb_help): add mailing list and IRC channel information
9213 to --help. Add new lines between items in the footer. Remove
9214 quotes around bug url.
9215
9216 2020-06-11 Keith Seitz <keiths@redhat.com>
9217
9218 PR gdb/21356
9219 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9220 Resolve typedefs for type length calculations.
9221
9222 2020-06-10 Tom de Vries <tdevries@suse.de>
9223
9224 PR ada/24713
9225 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9226 (write_psymbols): Enable .gdb_index for ada.
9227 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9228 ada.
9229
9230 2020-06-10 Tom de Vries <tdevries@suse.de>
9231
9232 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9233 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9234 namei" instead of "const char *name" argument.
9235 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9236 dw2_symtab_iter_init.
9237
9238 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9239
9240 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9241 to use type::field and field::type instead.
9242
9243 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9246 to use field::type instead.
9247
9248 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9249
9250 * gdbtypes.h (struct field) <type, set_type>: New methods.
9251 Rename `type` field to...
9252 <m_type>: ... this. Change references throughout to use type or
9253 set_type methods.
9254 (FIELD_TYPE): Use field::type. Change call sites that modify
9255 the field's type to use field::set_type instead.
9256
9257 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9258
9259 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9260 to use type::index_type instead.
9261
9262 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9263
9264 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9265 methods.
9266 (TYPE_INDEX_TYPE): Use type::index_type.
9267 * gdbtypes.c (create_array_type_with_stride): Likewise.
9268
9269 2020-06-07 Tom Tromey <tom@tromey.com>
9270
9271 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9272 parameter.
9273 (generic_value_print): Update.
9274
9275 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9276
9277 Revert commit 982a38f60b0.
9278 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9279
9280 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9281
9282 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9283 avoid use after free.
9284
9285 2020-06-05 Tom de Vries <tdevries@suse.de>
9286
9287 * NEWS: Fix typos.
9288
9289 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9292 the per_bfd object.
9293 (dwarf2_read_debug_names): Likewise.
9294 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9295 object when re-using a per_bfd object with an index.
9296
9297 2020-06-03 Tom de Vries <tdevries@suse.de>
9298
9299 PR symtab/26046
9300 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9301 children for C++.
9302 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9303 DW_TAG_subprogram.
9304
9305 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9306
9307 * ada-lang.c (ada_language_data): Delete skip_trampoline
9308 initializer.
9309 * c-lang.c (c_language_data): Likewise.
9310 (cplus_language_data): Likewise.
9311 (cplus_language::skip_trampoline): New member function.
9312 (asm_language_data): Delete skip_trampoline initializer.
9313 (minimal_language_data): Likewise.
9314 * d-lang.c (d_language_data): Likewise.
9315 * f-lang.c (f_language_data): Likewise.
9316 * go-lang.c (go_language_data): Likewise.
9317 * language.c (unk_lang_trampoline): Delete function.
9318 (skip_language_trampoline): Update.
9319 (unknown_language_data): Delete skip_trampoline initializer.
9320 (auto_language_data): Likewise.
9321 * language.h (language_data): Delete skip_trampoline field.
9322 (language_defn::skip_trampoline): New function.
9323 * m2-lang.c (m2_language_data): Delete skip_trampoline
9324 initializer.
9325 * objc-lang.c (objc_skip_trampoline): Delete function, move
9326 implementation to objc_language::skip_trampoline.
9327 (objc_language_data): Delete skip_trampoline initializer.
9328 (objc_language::skip_trampoline): New member function with
9329 implementation from objc_skip_trampoline.
9330 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9331 initializer.
9332 * p-lang.c (pascal_language_data): Likewise.
9333 * rust-lang.c (rust_language_data): Likewise.
9334
9335 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9336
9337 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9338 (ada_language::demangle): New member function.
9339 * c-lang.c (c_language_data): Delete la_demangle initializer.
9340 (cplus_language_data): Delete la_demangle initializer.
9341 (cplus_language::demangle): New member function.
9342 (asm_language_data): Delete la_demangle initializer.
9343 (minimal_language_data): Delete la_demangle initializer.
9344 * d-lang.c (d_language_data): Delete la_demangle initializer.
9345 (d_language::demangle): New member function.
9346 * f-lang.c (f_language_data): Delete la_demangle initializer.
9347 (f_language::demangle): New member function.
9348 * go-lang.c (go_language_data): Delete la_demangle initializer.
9349 (go_language::demangle): New member function.
9350 * language.c (language_demangle): Update.
9351 (unk_lang_demangle): Delete.
9352 (unknown_language_data): Delete la_demangle initializer.
9353 (unknown_language::demangle): New member function.
9354 (auto_language_data): Delete la_demangle initializer.
9355 (auto_language::demangle): New member function.
9356 * language.h (language_data): Delete la_demangle field.
9357 (language_defn::demangle): New function.
9358 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9359 * objc-lang.c (objc_language_data): Delete la_demangle
9360 initializer.
9361 (objc_language::demangle): New member function.
9362 * opencl-lang.c (opencl_language_data): Delete la_demangle
9363 initializer.
9364 * p-lang.c (pascal_language_data): Likewise.
9365 * rust-lang.c (rust_language_data): Likewise.
9366 (rust_language::demangle): New member function.
9367
9368 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9369
9370 * ada-lang.c (ada_language_data): Delete la_print_type
9371 initializer.
9372 (ada_language::print_type): New member function.
9373 * c-lang.c (c_language_data): Delete la_print_type initializer.
9374 (c_language::print_type): New member function.
9375 (cplus_language_data): Delete la_print_type initializer.
9376 (cplus_language::print_type): New member function.
9377 (asm_language_data): Delete la_print_type initializer.
9378 (asm_language::print_type): New member function.
9379 (minimal_language_data): Delete la_print_type initializer.
9380 (minimal_language::print_type): New member function.
9381 * d-lang.c (d_language_data): Delete la_print_type initializer.
9382 (d_language::print_type): New member function.
9383 * f-lang.c (f_language_data): Delete la_print_type initializer.
9384 (f_language::print_type): New member function.
9385 * go-lang.c (go_language_data): Delete la_print_type initializer.
9386 (go_language::print_type): New member function.
9387 * language.c (unk_lang_print_type): Delete.
9388 (unknown_language_data): Delete la_print_type initializer.
9389 (unknown_language::print_type): New member function.
9390 (auto_language_data): Delete la_print_type initializer.
9391 (auto_language::print_type): New member function.
9392 * language.h (language_data): Delete la_print_type field.
9393 (language_defn::print_type): New function.
9394 (LA_PRINT_TYPE): Update.
9395 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9396 (m2_language::print_type): New member function.
9397 * objc-lang.c (objc_language_data): Delete la_print_type
9398 initializer.
9399 (objc_language::print_type): New member function.
9400 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9401 to opencl_language::print_type.
9402 (opencl_language_data): Delete la_print_type initializer.
9403 (opencl_language::print_type): New member function, implementation
9404 from opencl_print_type.
9405 * p-lang.c (pascal_language_data): Delete la_print_type
9406 initializer.
9407 (pascal_language::print_type): New member function.
9408 * rust-lang.c (rust_print_type): Delete, implementation moved to
9409 rust_language::print_type.
9410 (rust_language_data): Delete la_print_type initializer.
9411 (rust_language::print_type): New member function, implementation
9412 from rust_print_type.
9413
9414 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9415
9416 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9417 implementation moves to...
9418 (ada_language::sniff_from_mangled_name): ...here. Update return
9419 type.
9420 (ada_language_data): Delete la_sniff_from_mangled_name
9421 initializer.
9422 * c-lang.c (c_language_data): Likewise.
9423 (cplus_language_data): Likewise.
9424 (cplus_language::sniff_from_mangled_name): New member function,
9425 implementation taken from gdb_sniff_from_mangled_name.
9426 (asm_language_data): Delete la_sniff_from_mangled_name
9427 initializer.
9428 (minimal_language_data): Likewise.
9429 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9430 implementation moves to cplus_language::sniff_from_mangled_name.
9431 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9432 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9433 moves to...
9434 (d_language::sniff_from_mangled_name): ...here.
9435 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9436 * f-lang.c (f_language_data): Likewise.
9437 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9438 moves to...
9439 (go_language::sniff_from_mangled_name): ...here.
9440 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9441 * language.c (language_sniff_from_mangled_name): Delete.
9442 (unknown_language_data): Delete la_sniff_from_mangled_name
9443 initializer.
9444 (auto_language_data): Likewise.
9445 * language.h (language_data): Delete la_sniff_from_mangled_name
9446 field.
9447 (language_defn::sniff_from_mangled_name): New function.
9448 (language_sniff_from_mangled_name): Delete declaration.
9449 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9450 field.
9451 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9452 implementation moves to...
9453 (objc_language::sniff_from_mangled_name): ...here.
9454 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9455 * opencl-lang.c (opencl_language_data): Likewise.
9456 * p-lang.c (pascal_language_data): Likewise.
9457 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9458 implementation moves to...
9459 (rust_language::sniff_from_mangled_name): ...here.
9460 (rust_language_data): Delete la_sniff_from_mangled_name
9461 initializer.
9462 * symtab.c (symbol_find_demangled_name): Call
9463 sniff_from_mangled_name member function.
9464
9465 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9466
9467 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9468 initializer.
9469 * c-lang.c (c_language_data): Likewise.
9470 (cplus_language_data): Likewise.
9471 (cplus_language::search_name_hash): New member function.
9472 (asm_language_data): Delete la_search_name_hash initializer.
9473 (minimal_language_data): Likewise.
9474 * d-lang.c (d_language_data): Likewise.
9475 * dictionary.c (default_search_name_hash): Rename to...
9476 (language_defn::search_name_hash): ...this.
9477 * f-lang.c (f_language_data): Likewise.
9478 (f_language::search_name_hash): New member function.
9479 * go-lang.c (go_language_data): Delete la_search_name_hash
9480 initializer.
9481 * language.c (unknown_language_data): Likewise.
9482 (auto_language_data): Likewise.
9483 * language.h (struct language_data): Delete la_search_name_hash
9484 field.
9485 (language_defn::search_name_hash): Declare new member function.
9486 (default_search_name_hash): Delete declaration.
9487 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9488 initializer.
9489 * objc-lang.c (objc_language_data): Likewise.
9490 * opencl-lang.c (opencl_language_data): Likewise.
9491 * p-lang.c (pascal_language_data): Likewise.
9492 * rust-lang.c (rust_language_data): Likewise.
9493 * symtab.c (search_name_hash): Update call.
9494
9495 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9496
9497 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9498 initializer.
9499 * c-lang.c (class compile_instance): Declare.
9500 (c_language_data): Delete la_get_compile_instance initializer.
9501 (c_language::get_compile_instance): New member function.
9502 (cplus_language_data): Delete la_get_compile_instance initializer.
9503 (cplus_language::get_compile_instance): New member function.
9504 (asm_language_data): Delete la_get_compile_instance initializer.
9505 (minimal_language_data): Likewise.
9506 * c-lang.h (c_get_compile_context): Update comment.
9507 (cplus_get_compile_context): Update comment.
9508 * compile/compile.c (compile_to_object): Update calls, don't rely
9509 on function pointer being NULL.
9510 * d-lang.c (d_language_data): Delete la_get_compile_instance
9511 initializer.
9512 * f-lang.c (f_language_data): Likewise.
9513 * go-lang.c (go_language_data): Likewise.
9514 * language.c (unknown_language_data): Likewise.
9515 (auto_language_data): Likewise.
9516 * language.h (language_data): Delete la_get_compile_instance field.
9517 (language_defn::get_compile_instance): New member function.
9518 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9519 initializer.
9520 * objc-lang.c (objc_language_data): Likewise.
9521 * opencl-lang.c (opencl_language_data): Likewise.
9522 * p-lang.c (pascal_language_data): Likewise.
9523 * rust-lang.c (rust_language_data): Likewise.
9524
9525 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9526
9527 * ada-lang.c (ada_add_all_symbols): Update comment.
9528 (ada_iterate_over_symbols): Delete, move implementation to...
9529 (ada_language::iterate_over_symbols): ...here, a new member
9530 function, rewrite to use range based for loop.
9531 (ada_language_data): Delete la_iterate_over_symbols initializer.
9532 * c-lang.c (c_language_data): Likewise.
9533 (cplus_language_data): Likewise.
9534 (asm_language_data): Likewise.
9535 (minimal_language_data): Likewise.
9536 * d-lang.c (d_language_data): Likewise.
9537 * f-lang.c (f_language_data): Likewise.
9538 * go-lang.c (go_language_data): Likewise.
9539 * language.c (unknown_language_data): Likewise.
9540 (auto_language_data): Likewise.
9541 * language.h (language_data): Delete la_iterate_over_symbols field.
9542 (language_defn::iterate_over_symbols): New member function.
9543 (LA_ITERATE_OVER_SYMBOLS): Update.
9544 * linespec.c (iterate_over_all_matching_symtabs): Update.
9545 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9546 initializer.
9547 * objc-lang.c (objc_language_data): Likewise.
9548 * opencl-lang.c (opencl_language_data): Likewise.
9549 * p-lang.c (pascal_language_data): Likewise.
9550 * rust-lang.c (rust_language_data): Likewise.
9551
9552 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9553
9554 * ada-lang.c (ada_language_data): Delete
9555 la_lookup_transparent_type initializer.
9556 * c-lang.c (c_language_data): Likewise.
9557 (cplus_language_data): Likewise.
9558 (cplus_language::lookup_transparent_type): New member function.
9559 (asm_language_data): Delete la_lookup_transparent_type
9560 initializer.
9561 (minimal_language_data): Likewise.
9562 * d-lang.c (d_language_data): Likewise.
9563 * f-lang.c (f_language_data): Likewise.
9564 * go-lang.c (go_language_data): Likewise.
9565 * language.c (unknown_language_data): Likewise.
9566 (auto_language_data): Likewise.
9567 * language.h (struct language_data): Delete
9568 la_lookup_transparent_type field.
9569 (language_defn::lookup_transparent_type): New member function.
9570 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9571 initializer.
9572 * objc-lang.c (objc_language_data): Likewise.
9573 * opencl-lang.c (opencl_language_data): Likewise.
9574 * p-lang.c (pascal_language_data): Likewise.
9575 * rust-lang.c (rust_language_data): Likewise.
9576 * symtab.c (symbol_matches_domain): Update call.
9577
9578 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9579
9580 * ada-lang.c (ada_language_arch_info): Delete function, move
9581 implementation to...
9582 (ada_language::language_arch_info): ...here, a new member
9583 function.
9584 (ada_language_data): Delete la_language_arch_info.
9585 * c-lang.c (c_language_data): Likewise.
9586 (c_language::language_arch_info): New member function.
9587 (cplus_language_arch_info): Delete function, move
9588 implementation to...
9589 (cplus_language::language_arch_info): ...here, a new member
9590 function.
9591 (cplus_language_data): Delete la_language_arch_info.
9592 (asm_language_data): Likewise.
9593 (asm_language::language_arch_info): New member function.
9594 (minimal_language_data): Delete la_language_arch_info.
9595 (minimal_language::language_arch_info): New member function.
9596 * d-lang.c (d_language_arch_info): Delete function, move
9597 implementation to...
9598 (d_language::language_arch_info): ...here, a new member
9599 function.
9600 (d_language_data): Delete la_language_arch_info.
9601 * f-lang.c (f_language_arch_info): Delete function, move
9602 implementation to...
9603 (f_language::language_arch_info): ...here, a new member
9604 function.
9605 (f_language_data): Delete la_language_arch_info.
9606 * go-lang.c (go_language_arch_info): Delete function, move
9607 implementation to...
9608 (go_language::language_arch_info): ...here, a new member
9609 function.
9610 (go_language_data): Delete la_language_arch_info.
9611 * language.c (unknown_language_data): Likewise.
9612 (unknown_language::language_arch_info): New member function.
9613 (auto_language_data): Delete la_language_arch_info.
9614 (auto_language::language_arch_info): New member function.
9615 (language_gdbarch_post_init): Update call to
9616 la_language_arch_info.
9617 * language.h (language_data): Delete la_language_arch_info
9618 function pointer.
9619 (language_defn::language_arch_info): New function.
9620 * m2-lang.c (m2_language_arch_info): Delete function, move
9621 implementation to...
9622 (m2_language::language_arch_info): ...here, a new member
9623 function.
9624 (m2_language_data): Delete la_language_arch_info.
9625 * objc-lang.c (objc_language_arch_info): Delete function, move
9626 implementation to...
9627 (objc_language::language_arch_info): ...here, a new member
9628 function.
9629 (objc_language_data): Delete la_language_arch_info.
9630 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9631 implementation to...
9632 (opencl_language::language_arch_info): ...here, a new member
9633 function.
9634 (opencl_language_data): Delete la_language_arch_info.
9635 * p-lang.c (pascal_language_arch_info): Delete function, move
9636 implementation to...
9637 (pascal_language::language_arch_info): ...here, a new member
9638 function.
9639 (pascal_language_data): Delete la_language_arch_info.
9640 * rust-lang.c (rust_language_arch_info): Delete function, move
9641 implementation to...
9642 (rust_language::language_arch_info): ...here, a new member
9643 function.
9644 (rust_language_data): Delete la_language_arch_info.
9645
9646 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9647
9648 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9649 initializer.
9650 * c-lang.c (c_language_data): Likewise.
9651 (cplus_language_data): Likewise.
9652 (cplus_language::pass_by_reference_info): New method.
9653 (asm_language_data): Delete la_pass_by_reference initializer.
9654 (minimal_language_data): Likewise.
9655 * cp-abi.c (cp_pass_by_reference): Remove use of
9656 default_pass_by_reference.
9657 * d-lang.c (d_language_data): Likewise.
9658 * f-lang.c (f_language_data): Likewise.
9659 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9660 default_pass_by_reference.
9661 * go-lang.c (go_language_data): Likewise.
9662 * language.c (language_pass_by_reference): Update.
9663 (default_pass_by_reference): Delete.
9664 (unknown_language_data): Delete la_pass_by_reference
9665 initializer.
9666 (auto_language_data): Likewise.
9667 * language.h (struct language_data): Delete la_pass_by_reference
9668 field.
9669 (language_defn::pass_by_reference_info): New member function.
9670 (default_pass_by_reference): Delete declaration.
9671 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9672 initializer.
9673 * objc-lang.c (objc_language_data): Likewise.
9674 * opencl-lang.c (opencl_language_data): Likewise.
9675 * p-lang.c (pascal_language_data): Likewise.
9676 * rust-lang.c (rust_language_data): Likewise.
9677
9678 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9679
9680 * ada-lang.c (ada_read_var_value): Delete function, move
9681 implementation to...
9682 (ada_language::read_var_value): ...here.
9683 (ada_language_data): Delete la_read_var_value initializer.
9684 * c-lang.c (c_language_data): Likewise.
9685 (cplus_language_data): Likewise.
9686 (minimal_language_data): Likewise.
9687 * d-lang.c (d_language_data): Likewise.
9688 * f-lang.c (f_language_data): Likewise.
9689 * findvar.c (default_read_var_value): Rename to...
9690 (language_defn::read_var_value): ...this.
9691 * findvar.c (read_var_value): Update header comment, and change to
9692 call member function instead of function pointer.
9693 * go-lang.c (go_language_data): Likewise.
9694 * language.c (unknown_language_data): Delete la_read_var_value
9695 initializer.
9696 (auto_language_data): Likewise.
9697 * language.h (struct language_data): Delete la_read_var_value
9698 field.
9699 (language_defn::read_var_value): New member function.
9700 (default_read_var_value): Delete declaration.
9701 * m2-lang.c (m2_language_data): Delete la_read_var_value
9702 initializer.
9703 * objc-lang.c (objc_language_data): Likewise.
9704 * opencl-lang.c (opencl_language_data): Likewise.
9705 * p-lang.c (pascal_language_data): Likewise.
9706 * rust-lang.c (rust_language_data): Likewise.
9707 * value.h (default_read_var_value): Delete declaration.
9708
9709 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9710
9711 * ada-lang.c (ada_print_array_index): Delete function, move
9712 implementation to...
9713 (ada_language::print_array_index): ...here.
9714 (ada_language_data): Delete la_print_array_index initializer.
9715 * c-lang.c (c_language_data): Likewise.
9716 (cplus_language_data): Likewise.
9717 (minimal_language_data): Likewise.
9718 * d-lang.c (d_language_data): Likewise.
9719 * f-lang.c (f_language_data): Likewise.
9720 * go-lang.c (go_language_data): Likewise.
9721 * language.c (default_print_array_index): Delete function, move
9722 implementation to...
9723 (language_defn::print_array_index): ...here.
9724 (unknown_language_data): Delete la_print_array_index initializer.
9725 (auto_language_data): Likewise.
9726 * language.h (struct language_data): Delete la_print_array_index
9727 field.
9728 (language_defn::print_array_index): New member function.
9729 (LA_PRINT_ARRAY_INDEX): Update.
9730 (default_print_array_index): Delete declaration.
9731 * m2-lang.c (m2_language_data): Delete la_print_array_index
9732 initializer.
9733 * objc-lang.c (objc_language_data): Likewise.
9734 * opencl-lang.c (opencl_language_data): Likewise.
9735 * p-lang.c (pascal_language_data): Likewise.
9736 * rust-lang.c (rust_language_data): Likewise.
9737
9738 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9739
9740 * gdb/ada-lang.c (ada_language_defn): Convert to...
9741 (ada_language_data): ...this.
9742 (class ada_language): New class.
9743 (ada_language_defn): New static global.
9744 * gdb/c-lang.c (c_language_defn): Convert to...
9745 (c_language_data): ...this.
9746 (class c_language): New class.
9747 (c_language_defn): New static global.
9748 (cplus_language_defn): Convert to...
9749 (cplus_language_data): ...this.
9750 (class cplus_language): New class.
9751 (cplus_language_defn): New static global.
9752 (asm_language_defn): Convert to...
9753 (asm_language_data): ...this.
9754 (class asm_language): New class.
9755 (asm_language_defn): New static global.
9756 (minimal_language_defn): Convert to...
9757 (minimal_language_data): ...this.
9758 (class minimal_language): New class.
9759 (minimal_language_defn): New static global.
9760 * gdb/d-lang.c (d_language_defn): Convert to...
9761 (d_language_data): ...this.
9762 (class d_language): New class.
9763 (d_language_defn): New static global.
9764 * gdb/f-lang.c (f_language_defn): Convert to...
9765 (f_language_data): ...this.
9766 (class f_language): New class.
9767 (f_language_defn): New static global.
9768 * gdb/go-lang.c (go_language_defn): Convert to...
9769 (go_language_data): ...this.
9770 (class go_language): New class.
9771 (go_language_defn): New static global.
9772 * gdb/language.c (unknown_language_defn): Remove declaration.
9773 (current_language): Initialize to nullptr, real initialization is
9774 moved to _initialize_language.
9775 (languages): Delete global.
9776 (language_defn::languages): Define.
9777 (set_language_command): Use language_defn::languages.
9778 (set_language): Likewise.
9779 (range_error): Likewise.
9780 (language_enum): Likewise.
9781 (language_def): Likewise.
9782 (add_set_language_command): Use language_def::languages for the
9783 language list, and language_def to lookup language pointers.
9784 (skip_language_trampoline): Use language_defn::languages.
9785 (unknown_language_defn): Convert to...
9786 (unknown_language_data): ...this.
9787 (class unknown_language): New class.
9788 (unknown_language_defn): New static global.
9789 (auto_language_defn): Convert to...
9790 (auto_language_data): ...this.
9791 (class auto_language): New class.
9792 (auto_language_defn): New static global.
9793 (language_gdbarch_post_init): Use language_defn::languages.
9794 (_initialize_language): Initialize current_language.
9795 * gdb/language.h (struct language_defn): Rename to...
9796 (struct language_data): ...this.
9797 (struct language_defn): New.
9798 (auto_language_defn): Delete.
9799 (unknown_language_defn): Delete.
9800 (minimal_language_defn): Delete.
9801 (ada_language_defn): Delete.
9802 (asm_language_defn): Delete.
9803 (c_language_defn): Delete.
9804 (cplus_language_defn): Delete.
9805 (d_language_defn): Delete.
9806 (f_language_defn): Delete.
9807 (go_language_defn): Delete.
9808 (m2_language_defn): Delete.
9809 (objc_language_defn): Delete.
9810 (opencl_language_defn): Delete.
9811 (pascal_language_defn): Delete.
9812 (rust_language_defn): Delete.
9813 * gdb/m2-lang.c (m2_language_defn): Convert to...
9814 (m2_language_data): ...this.
9815 (class m2_language): New class.
9816 (m2_language_defn): New static global.
9817 * gdb/objc-lang.c (objc_language_defn): Convert to...
9818 (objc_language_data): ...this.
9819 (class objc_language): New class.
9820 (objc_language_defn): New static global.
9821 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9822 (opencl_language_data): ...this.
9823 (class opencl_language): New class.
9824 (opencl_language_defn): New static global.
9825 * gdb/p-lang.c (pascal_language_defn): Convert to...
9826 (pascal_language_data): ...this.
9827 (class pascal_language): New class.
9828 (pascal_language_defn): New static global.
9829 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9830 language pointer, update comment format.
9831 * gdb/rust-lang.c (rust_language_defn): Convert to...
9832 (rust_language_data): ...this.
9833 (class rust_language): New class.
9834 (rust_language_defn): New static global.
9835
9836 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9837
9838 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9839 member variable.
9840 <m_stmt_at_address>: New member variable.
9841 (lnp_state_machine::record_line): Don't record some lines, update
9842 tracking of is_stmt at the same address.
9843 (lnp_state_machine::lnp_state_machine): Initialise new member
9844 variables.
9845
9846 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9847
9848 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9849 "-include gnu-nat-mig.h".
9850 * gnu-nat-mig.h: New file.
9851 * gnu-nat.c: Include "gnu-nat-mig.h".
9852 (exc_server, msg_reply_server, notify_server,
9853 process_reply_server): Remove declarations.
9854
9855 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9856
9857 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9858 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9859 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9860 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9861 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9862 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9863 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9864 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9865 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9866 to gnu_nat_target class.
9867 * gnu-nat.c: Likewise.
9868 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9869 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9870 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9871 object.
9872 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9873 instead of `gnu_target'.
9874
9875 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9876
9877 * i386-gnu-tdep.c: Include "gdbcore.h"
9878 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9879 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9880 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9881 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9882 i386_gnu_sigcontext_addr): New functions
9883 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9884 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9885 tdep.
9886
9887 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9888
9889 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9890 before fork_inferior call. Avoid calling it if target_is_pushed returns
9891 true.
9892
9893 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9894
9895 * gnu-nat.h (gnu_target): New variable declaration.
9896 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9897 gnu_target.
9898 * gnu-nat.c (gnu_target): New variable.
9899 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9900 add_thread_silent, and add_thread calls.
9901 (gnu_nat_target::create_inferior): Pass gnu_target to
9902 add_thread_silent, thread_change_ptid call.
9903 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9904 call.
9905
9906 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9907
9908 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9909 (gnu_nat_target::find_memory_regions): Remove unused
9910 `old_address' variable.
9911
9912 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9913
9914 * gnu-nat.c: Include "gdbarch.h".
9915
9916 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9917
9918 * reply_mig_hack.awk (Error return): Cast function through
9919 void *, to bypass compiler function call check.
9920
9921 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9922
9923 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9924 $(srcdir)/reply_mig_hack.awk.
9925
9926 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9927
9928 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9929
9930 2020-05-30 Jonny Grant <jg@jguk.org>
9931
9932 * configure.ac (ACX_BUGURL): change bug URL to https.
9933
9934 2020-05-30 Pedro Alves <palves@redhat.com>
9935
9936 * cp-support.c (replace_typedefs_template): New.
9937 (replace_typedefs_qualified_name): Handle
9938 DEMANGLE_COMPONENT_TEMPLATE.
9939
9940 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
9941
9942 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9943 dwarf2/index-cache.h, dwarf2/index-write.c,
9944 dwarf2/index-write.h, dwarf2/line-header.c,
9945 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9946 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9947 variables and fields from `dwarf2_per_objfile` to just
9948 `per_objfile` throughout.
9949
9950 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9951
9952 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9953 <push_dwarf_reg_entry_value>: Add comment.
9954
9955 2020-05-28 Kevin Buettner <kevinb@redhat.com>
9956 Keith Seitz <keiths@redhat.com>
9957
9958 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9959 instead of PyEval_ReleaseLock.
9960 (class gdbpy_gil): Move to earlier in file.
9961 (finalize_python): Set gdb_python_initialized.
9962 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9963 when not initialized.
9964
9965 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
9966
9967 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9968 <push_dwarf_reg_entry_value>: Remove assert. Override
9969 per_objfile with caller_per_objfile.
9970
9971 2020-05-28 Tom de Vries <tdevries@suse.de>
9972
9973 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9974 PR gold/15646 workaround to symbol kind "type".
9975
9976 2020-05-27 Tom Tromey <tromey@adacore.com>
9977
9978 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9979
9980 2020-05-27 Tom Tromey <tromey@adacore.com>
9981
9982 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9983 Use htab_find_with_hash.
9984 <add_abbrev>: Remove "abbrev_number" parameter.
9985 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9986 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9987 (hash_abbrev): Add comment.
9988 (abbrev_table::lookup_abbrev): Move to header file.
9989 (abbrev_table::read): Update.
9990
9991 2020-05-27 Tom Tromey <tromey@adacore.com>
9992
9993 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9994 method.
9995 <canonical_name>: New member.
9996 <raw_name>: Rename from "name".
9997 (partial_die_info): Initialize canonical_name.
9998 (scan_partial_symbols): Check raw_name.
9999 (partial_die_parent_scope, partial_die_full_name)
10000 (add_partial_symbol, add_partial_subprogram)
10001 (add_partial_enumeration, load_partial_dies): Use "name" method.
10002 (partial_die_info::name): New method.
10003 (partial_die_info::read, guess_partial_die_structure_name)
10004 (partial_die_info::fixup): Update.
10005
10006 2020-05-27 Tom Tromey <tromey@adacore.com>
10007
10008 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10009 <get_ref_die_offset>: Inline.
10010 <get_ref_die_offset_complaint>: New method.
10011 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10012 (attribute::get_ref_die_offset_complaint): Rename from
10013 get_ref_die_offset. Just issue complaint.
10014
10015 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10016
10017 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10018
10019 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10020
10021 * exec.c (exec_file_attach): Use errno value of first openp failure.
10022
10023 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10024
10025 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10026 Don't close thread handle.
10027
10028 2020-05-27 Tom Tromey <tom@tromey.com>
10029 Simon Marchi <simon.marchi@efficios.com>
10030
10031 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10032 shared_ptr.
10033 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10034 member.
10035 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10036 dwarf2_per_bfd_objfile_data_key>: New globals.
10037 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10038 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10039 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10040 shared.
10041 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10042 short-circuit when sharing.
10043 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10044 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10045
10046 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10047
10048 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10049 to...
10050 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10051 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10052
10053 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10054
10055 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10056 build_name_components, find_name_components_bounds>:
10057 Add per_objfile parameter.
10058 (struct mapped_index) <symbol_name_at>: Likewise.
10059 (struct mapped_debug_names): Remove constructor.
10060 <dwarf2_per_objfile>: Remove field.
10061 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10062 (mapped_index_base::find_name_components_bounds,
10063 mapped_index_base::build_name_components,
10064 dw2_expand_symtabs_matching_symbol): Likewise.
10065 (class mock_mapped_index) <symbol_name_at>: Likewise.
10066 (check_match): Likewise.
10067 (check_find_bounds_finds): Likewise.
10068 (test_mapped_index_find_name_component_bounds): Update.
10069 (CHECK_MATCH): Update.
10070 (dw2_expand_symtabs_matching): Update.
10071 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10072 per_objfile parameter.
10073 <find_vec_in_debug_names>: Likewise.
10074 <m_per_objfile>: New field.
10075 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10076 parameter.
10077 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10078 (dw2_debug_names_iterator::next): Update.
10079 (dw2_debug_names_lookup_symbol): Update.
10080 (dw2_debug_names_expand_symtabs_for_function): Update.
10081 (dw2_debug_names_map_matching_symbols): Update.
10082 (dw2_debug_names_expand_symtabs_matching): Update.
10083 (dwarf2_read_debug_names): Update.
10084
10085 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10086
10087 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10088 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10089 move to dwarf2_per_objfile.
10090 <read_in_chain>: Remove.
10091 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10092 remove_all_cus, age_comp_units>: New methods.
10093 <m_dwarf2_cus>: New member.
10094 (struct dwarf2_per_cu_data) <cu>: Remove.
10095 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10096 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10097 moved to methods of dwarf2_per_objfile.
10098 (dwarf2_clear_marks): Remove.
10099 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10100 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10101 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10102 (dwarf2_per_objfile::remove_all_cus): New.
10103 (class free_cached_comp_units) <~free_cached_comp_units>:
10104 Update.
10105 (load_cu): Update.
10106 (dw2_do_instantiate_symtab): Adjust.
10107 (fill_in_sig_entry_from_dwo_entry): Adjust.
10108 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10109 (cutu_reader::cutu_reader): Likewise.
10110 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10111 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10112 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10113 and dwarf2_per_objfile::age_comp_units.
10114 (load_partial_comp_unit): Update.
10115 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10116 (process_queue): Likewise.
10117 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10118 backlink.
10119 (dwarf2_read_addr_index): Likewise.
10120 (follow_die_offset): Likewise.
10121 (dwarf2_fetch_die_loc_sect_off): Likewise.
10122 (dwarf2_fetch_constant_bytes): Likewise.
10123 (dwarf2_fetch_die_type_sect_off): Likewise.
10124 (follow_die_sig_1): Likewise.
10125 (load_full_type_unit): Likewise.
10126 (read_signatured_type): Likewise.
10127 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10128 (dwarf2_cu::~dwarf2_cu): Remove.
10129 (dwarf2_per_objfile::get_cu): New.
10130 (dwarf2_per_objfile::set_cu): New.
10131 (age_cached_comp_units): Rename to...
10132 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10133 to std::unordered_map.
10134 (free_one_cached_comp_unit): Rename to...
10135 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10136 to std::unordered_map.
10137 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10138 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10139 a dwarf2_per_objfile in data.
10140 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10141 (dwarf2_clear_marks): Remove.
10142
10143 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10144
10145 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10146 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10147 (init_tu_and_read_dwo_dies): Likewise.
10148 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10149 (cutu_reader::cutu_reader): Likewise.
10150 (load_partial_comp_unit): Likewise.
10151 (process_psymtab_comp_unit): Update.
10152 (build_type_psymtabs_1): Update.
10153 (process_skeletonless_type_unit): Update.
10154 (load_full_comp_unit): Update.
10155 (find_partial_die): Update.
10156 (dwarf2_read_addr_index): Update.
10157 (read_signatured_type): Update.
10158
10159 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10160
10161 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10162 m_header_read_in>: New fields.
10163 <get_header>: New method.
10164 * dwarf2/read.c (per_cu_header_read_in): Remove.
10165 (dwarf2_per_cu_data::get_header): New.
10166 (dwarf2_per_cu_data::addr_size): Update.
10167 (dwarf2_per_cu_data::offset_size): Update.
10168 (dwarf2_per_cu_data::ref_addr_size): Update.
10169
10170 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10171
10172 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10173 (dw2_do_instantiate_symtab): Update.
10174 (queue_and_load_all_dwo_tus): Change parameter from
10175 dwarf2_per_cu_data to dwarf2_cu.
10176 (dwarf2_fetch_die_loc_sect_off): Update.
10177 (dwarf2_fetch_constant_bytes): Update.
10178 (dwarf2_fetch_die_type_sect_off): Update.
10179
10180 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10181
10182 * dwarf2/read.c (process_full_comp_unit,
10183 process_full_type_unit): Remove per_cu, per_objfile paramters.
10184 Add dwarf2_cu parameter.
10185 (process_queue): Update.
10186
10187 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10188
10189 * dwarf2/read.c (create_cu_from_index_list): Replace
10190 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10191 (create_cus_from_index_list): Likewise.
10192 (create_cus_from_index): Likewise.
10193 (create_signatured_type_table_from_index): Likewise.
10194 (create_cus_from_debug_names_list): Likewise.
10195 (create_cus_from_debug_names): Likewise.
10196 (dwarf2_read_gdb_index): Update.
10197 (dwarf2_read_debug_names): Update.
10198
10199 2020-05-27 Tom Tromey <tom@tromey.com>
10200 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * dwarf2/read.h (struct dwarf2_per_objfile)
10203 <get_type_for_signatured_type, set_type_for_signatured_type>:
10204 New methods.
10205 <m_type_map>: New member.
10206 (struct signatured_type) <type>: Remove.
10207 * dwarf2/read.c
10208 (dwarf2_per_objfile::get_type_for_signatured_type,
10209 dwarf2_per_objfile::set_type_for_signatured_type): New.
10210 (get_signatured_type): Use new methods.
10211
10212 2020-05-27 Tom Tromey <tom@tromey.com>
10213 Simon Marchi <simon.marchi@efficios.com>
10214
10215 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10216 (struct dwarf2_per_objfile) <type_units>: New member.
10217 <get_type_unit_group_unshareable>: New method.
10218 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10219 num_symtabs, symtabs>: Remove; move to
10220 type_unit_group_unshareable.
10221 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10222 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10223 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10224
10225 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10226
10227 * dwarf2/read.h (struct dwarf2_per_cu_data):
10228 <dwarf2_per_objfile>: Remove.
10229 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10230 dwarf2_per_objfile.
10231 (create_signatured_type_table_from_index): Likewise.
10232 (create_signatured_type_table_from_debug_names): Likewise.
10233 (create_debug_type_hash_table): Likewise.
10234 (fill_in_sig_entry_from_dwo_entry): Likewise.
10235 (create_type_unit_group): Likewise.
10236 (read_comp_units_from_section): Likewise.
10237 (create_cus_hash_table): Likewise.
10238
10239 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10240
10241 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10242 dwarf2_per_cu_data::dwarf2_per_objfile.
10243 (compute_compunit_symtab_includes): Likewise.
10244 (dwarf2_cu::start_symtab): Likewise.
10245
10246 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10247
10248 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10249 parameter.
10250 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10251 (read_namespace_alias): Update.
10252 (lookup_die_type): Update.
10253 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10254 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10255 Update.
10256 (disassemble_dwarf_expression): Update.
10257
10258 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10259
10260 * dwarf2/read.h (struct dwarf2_queue_item): Add
10261 dwarf2_per_objfile parameter, assign new parameter.
10262 <per_objfile>: New field.
10263 * dwarf2/read.c (free_one_cached_comp_unit): Add
10264 dwarf2_per_objfile parameter.
10265 (queue_comp_unit): Likewise.
10266 (dw2_do_instantiate_symtab): Update.
10267 (process_psymtab_comp_unit): Update.
10268 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10269 (process_imported_unit_die): Update.
10270 (queue_and_load_dwo_tu): Update.
10271 (follow_die_offset): Update.
10272 (follow_die_sig_1): Update.
10273
10274 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10275
10276 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10277 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10278 (read_call_site_scope): Assign per_objfile.
10279 (dwarf2_per_cu_data::objfile): Remove.
10280 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10281 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10282 dwarf2_per_objfile parameter.
10283 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10284 dwarf2_per_objfile parameter.
10285 (dwarf_expr_reg_to_entry_parameter): Add output
10286 dwarf2_per_objfile parameter.
10287 (locexpr_get_frame_base): Update.
10288 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10289 <push_dwarf_reg_entry_value>: Update.
10290 <call_site_to_target_addr>: Update.
10291 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10292 parameter.
10293 (value_of_dwarf_reg_entry): Update.
10294 (rw_pieced_value): Update.
10295 (indirect_synthetic_pointer): Update.
10296 (dwarf2_evaluate_property): Update.
10297 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10298 parameter.
10299 (locexpr_read_variable): Update.
10300 (locexpr_get_symbol_read_needs): Update.
10301 (loclist_read_variable): Update.
10302
10303 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10306 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10307 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10308 parameter.
10309 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10310 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10311 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10312 parameter.
10313 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10314 sect_variable_value): Add dwarf2_per_objfile parameter.
10315 (class dwarf_evaluate_loc_desc) <dwarf_call,
10316 dwarf_variable_value>: Update.
10317 (fetch_const_value_from_synthetic_pointer): Add
10318 dwarf2_per_objfile parameter.
10319 (fetch_const_value_from_synthetic_pointer): Update.
10320 (coerced_pieced_ref): Update.
10321 (class symbol_needs_eval_context) <dwarf_call,
10322 dwarf_variable_value>: Update.
10323 (dwarf2_compile_expr_to_ax): Update.
10324
10325 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10326
10327 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10328 parameter.
10329 (dwarf2_evaluate_loc_desc_full): Update.
10330
10331 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10332
10333 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10334 parameter.
10335 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10336 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10337 dwarf2_per_objfile parameter.
10338 (decode_debug_loc_dwo_addresses): Likewise.
10339 (dwarf2_find_location_expression): Update.
10340 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10341 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10342 parameter.
10343 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10344 parameter.
10345 (locexpr_describe_location_1): Likewise.
10346 (locexpr_describe_location): Update.
10347
10348 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10351 Remove.
10352 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10353 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10354 (dwarf2_compile_property_to_c): Update.
10355 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10356 use text offset from objfile.
10357 (locexpr_tracepoint_var_ref): Update.
10358 (locexpr_generate_c_location): Update.
10359 (loclist_describe_location): Update.
10360 (loclist_tracepoint_var_ref): Update.
10361 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10362 dwarf2_per_objfile parameter.
10363 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10364 use text offset from objfile.
10365 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10366
10367 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10368
10369 * dwarf2/expr.h (struct dwarf_expr_context)
10370 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10371 <offset>: Remove.
10372 <per_objfile>: New member.
10373 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10374 dwarf2_per_objfile parameter. Don't set offset, set
10375 per_objfile.
10376 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10377 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10378 a dwarf2_per_objfile object instead of an offset.
10379 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10380 constructor.
10381 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10382 to dwarf2_expr_executor constructor. Don't set offset.
10383 (dwarf2_fetch_cfa_info): Update.
10384 (struct dwarf2_frame_cache) <text_offset>: Remove.
10385 <per_objfile>: New field.
10386 (dwarf2_frame_cache): Update.
10387 (dwarf2_frame_prev_register): Update.
10388 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10389 <dwarf_evaluate_loc_desc>: Add constructor.
10390 (dwarf2_evaluate_loc_desc_full): Update.
10391 (dwarf2_locexpr_baton_eval): Update.
10392 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10393 Add constructor.
10394 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10395
10396 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10397
10398 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10399 addr_sized_int_type>: Move to dwarf2_cu.
10400 <int_type>: Move to dwarf2_per_objfile.
10401 (struct dwarf2_per_objfile) <int_type>: Move here.
10402 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10403 addr_sized_int_type>: Move here.
10404 (read_func_scope): Update.
10405 (read_array_type): Update.
10406 (read_tag_string_type): Update.
10407 (attr_to_dynamic_prop): Update.
10408 (dwarf2_per_cu_data::int_type): Rename to...
10409 (dwarf2_per_objfile::int_type): ... this.
10410 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10411 (dwarf2_cu::addr_sized_int_type): ... this.
10412 (read_subrange_type): Update.
10413 (dwarf2_per_cu_data::addr_type): Rename to...
10414 (dwarf2_cu::addr_type): ... this.
10415 (set_die_type): Update.
10416
10417 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10418
10419 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10420 data through per_cu->cu.
10421
10422 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10423
10424 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10425 dwarf2_per_cu_data parameter fo dwarf2_cu.
10426 (lookup_dwo_type_unit): Likewise.
10427 (read_cutu_die_from_dwo): Likewise.
10428 (lookup_dwo_unit): Likewise.
10429 (open_and_init_dwo_file): Likewise.
10430 (lookup_dwo_cutu): Likewise.
10431 (lookup_dwo_comp_unit): Likewise.
10432 (lookup_dwo_type_unit): Likewise.
10433 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10434 (cutu_reader::cutu_reader): Update.
10435
10436 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10437
10438 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10439 parameter.
10440 (process_full_type_unit): Likewise.
10441 (process_queue): Update.
10442
10443 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * dwarf2/read.c (recursively_compute_inclusions): Add
10446 dwarf2_per_objfile parameter.
10447 (compute_compunit_symtab_includes): Likewise.
10448 (process_cu_includes): Update.
10449
10450 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10451
10452 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10453 parameter.
10454 (create_type_unit_group): Update.
10455 (process_psymtab_comp_unit_reader): Update.
10456 (build_type_psymtabs_reader): Update.
10457
10458 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10459
10460 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10461 object through m_this_cu->cu.
10462
10463 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10464
10465 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10466 the info parameter.
10467 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10468
10469 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10470
10471 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10472 per_objfile parameter.
10473 (load_full_type_unit): Add per_objfile parameter.
10474 (read_signatured_type): Likewise.
10475 (load_full_comp_unit): Likewise.
10476 (load_cu): Likewise.
10477 (dw2_do_instantiate_symtab): Likewise.
10478 (dw2_get_file_names): Likewise.
10479 (dw2_map_symtabs_matching_filename): Update.
10480 (dw_expand_symtabs_matching_file_matcher): Update.
10481 (dw2_map_symbol_filenames): Update.
10482 (process_psymtab_comp_unit): Add per_objfile parameter.
10483 (build_type_psymtabs_1): Update.
10484 (process_skeletonless_type_unit): Update.
10485 (dwarf2_build_psymtabs_hard): Update.
10486 (load_partial_comp_unit): Add per_objfile parameter.
10487 (scan_partial_symbols): Update.
10488 (load_full_comp_unit): Add per_objfile parameter.
10489 (process_imported_unit_die): Update.
10490 (create_cus_hash_table): Update.
10491 (find_partial_die): Update.
10492 (dwarf2_read_addr_index): Update.
10493 (follow_die_offset): Update.
10494 (dwarf2_fetch_die_loc_sect_off): Update.
10495 (dwarf2_fetch_constant_bytes): Update.
10496 (dwarf2_fetch_die_type_sect_off): Update.
10497 (follow_die_sig_1): Update.
10498 (load_full_type_unit): Add per_objfile parameter.
10499 (read_signatured_type): Likewise.
10500
10501 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10502
10503 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10504 of objfile_name.
10505
10506 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10507
10508 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10509 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10510 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10511 field.
10512 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10513 (create_cus_from_index): Update.
10514 (dwarf2_read_gdb_index): Update.
10515 (create_cus_from_debug_names): Update.
10516 (dwarf2_read_debug_names): Update.
10517 (get_abbrev_section_for_cu): Update.
10518 (create_all_comp_units): Update.
10519 (read_attribute_value): Update.
10520 (get_debug_line_section): Update.
10521 * dwarf2/index-cache.c (index_cache::store): Update.
10522 * dwarf2/index-write.c (save_gdb_index_command): Update.
10523 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10524
10525 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10526
10527 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10528 member.
10529 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10530 dwarf2_per_cu_data::per_bfd.
10531 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10532 (create_type_unit_group): Likewise.
10533 (queue_comp_unit): Remove reference to
10534 per_cu->dwarf2_per_objfile.
10535 (maybe_queue_comp_unit): Likewise.
10536 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10537 (create_cus_hash_table): Assign new field.
10538
10539 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10540
10541 * dwarf2/read.c: Replace
10542 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10543 dwarf2_cu->per_objfile throughout.
10544
10545 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10546
10547 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10548 parameter, don't use per_cu->dwarf2_per_objfile.
10549 (dw2_instantiate_symtab): Likewise.
10550 (dw2_find_last_source_symtab): Update.
10551 (dw2_map_expand_apply): Update.
10552 (dw2_lookup_symbol): Update.
10553 (dw2_expand_symtabs_for_function): Update.
10554 (dw2_expand_all_symtabs): Update.
10555 (dw2_expand_symtabs_with_fullname): Update.
10556 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10557 don't use per_cu->dwarf2_per_objfile.
10558 (dw2_expand_marked_cus): Update.
10559 (dw2_find_pc_sect_compunit_symtab): Update.
10560 (dw2_debug_names_lookup_symbol): Update.
10561 (dw2_debug_names_expand_symtabs_for_function): Update.
10562 (dw2_debug_names_map_matching_symbols): Update.
10563 (dwarf2_psymtab::expand_psymtab): Update.
10564
10565 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10566
10567 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10568 <per_objfile>: New member.
10569 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10570 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10571 call to dwarf2_cu.
10572 (cutu_reader::cutu_reader): Update.
10573 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10574
10575 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10576
10577 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10578 struct dwarf2_per_objfile.
10579 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10580 dwarf2_per_bfd.
10581 * dwarf2/read.c (set_die_type): Update.
10582 (get_die_type_at_offset): Update.
10583
10584 2020-05-27 Tom Tromey <tom@tromey.com>
10585 Simon Marchi <simon.marchi@efficios.com>
10586
10587 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10588 method.
10589 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10590 get_symtab, set_symtab>: New methods.
10591 <m_symtabs>: New field.
10592 (struct dwarf2_psymtab): Derive from partial_symtab.
10593 <readin_p, get_compunit_symtab>: Declare methods.
10594 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10595 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10596 New methods.
10597 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10598 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10599 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10600 (dw2_symtab_iter_next, dw2_print_stats)
10601 (dw2_expand_symtabs_with_fullname)
10602 (dw2_expand_symtabs_matching_one)
10603 (dw_expand_symtabs_matching_file_matcher)
10604 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10605 (dw2_debug_names_iterator::next)
10606 (dw2_debug_names_map_matching_symbols)
10607 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10608 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10609 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10610 New methods.
10611 (get_compunit_symtab, process_full_comp_unit)
10612 (process_full_type_unit): Update.
10613 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10614
10615 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10616
10617 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10618 then introduce a new dwarf2_per_objfile type.
10619 <read_line_string>: Move to the new dwarf2_per_objfile type.
10620 <objfile>: Likewise.
10621 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10622 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10623 dwarf2_per_objfile->per_bfd.
10624 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10625 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10626 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10627 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10628 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10629 (dwarf2_per_objfile::locate_sections): Rename to...
10630 (dwarf2_per_bfd::locate_sections): ... this.
10631 (dwarf2_per_objfile::get_cutu): Rename to...
10632 (dwarf2_per_bfd::get_cutu): ... this.
10633 (dwarf2_per_objfile::get_cu): Rename to...
10634 (dwarf2_per_bfd::get_cu): ... this.
10635 (dwarf2_per_objfile::get_tu): Rename to...
10636 (dwarf2_per_bfd::get_tu): ... this.
10637 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10638 (dwarf2_per_bfd::allocate_per_cu): ... this.
10639 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10640 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10641 (get_gdb_index_contents_ftype): Change parameter from
10642 dwarf2_per_objfile to dwarf2_per_bfd.
10643 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10644 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10645
10646 2020-05-27 Tom Tromey <tom@tromey.com>
10647 Simon Marchi <simon.marchi@efficios.com>
10648
10649 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10650 (allocate_piece_closure): Set "per_objfile" member.
10651 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10652 (locexpr_describe_location, loclist_describe_location): Use new
10653 member.
10654 * dwarf2/read.c (read_call_site_scope)
10655 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10656 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10657 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10658 handle_data_member_location): Set per_objfile member.
10659 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10660 member.
10661 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10662
10663 2020-05-27 Tom Tromey <tom@tromey.com>
10664
10665 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10666 allocate_signatured_type>: Declare new methods.
10667 <m_num_psymtabs>: New member.
10668 (struct dwarf2_per_cu_data) <index>: New member.
10669 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10670 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10671 (create_cu_from_index_list): Use allocate_per_cu.
10672 (create_signatured_type_table_from_index)
10673 (create_signatured_type_table_from_debug_names)
10674 (create_debug_type_hash_table, add_type_unit)
10675 (read_comp_units_from_section): Use allocate_signatured_type.
10676
10677 2020-05-27 Tom Tromey <tom@tromey.com>
10678
10679 * psymtab.c (partial_map_expand_apply)
10680 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10681 (psym_lookup_global_symbol_language)
10682 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10683 (psym_print_stats, psym_expand_symtabs_for_function)
10684 (psym_map_symbol_filenames, psym_map_matching_symbols)
10685 (psym_expand_symtabs_matching)
10686 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10687 (maintenance_check_psymtabs): Update.
10688 * psympriv.h (struct partial_symtab) <readin_p,
10689 get_compunit_symtab>: Add objfile parameter.
10690 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10691 Likewise.
10692 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10693 get_compunit_symtab>: Likewise.
10694 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10695
10696 2020-05-27 Tom Tromey <tom@tromey.com>
10697
10698 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10699 member.
10700 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10701 (create_cu_from_index_list)
10702 (create_signatured_type_table_from_index)
10703 (create_signatured_type_table_from_debug_names)
10704 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10705 (dwarf2_create_include_psymtab)
10706 (create_debug_type_hash_table, add_type_unit)
10707 (create_type_unit_group, read_comp_units_from_section)
10708 (dwarf2_compute_name, create_cus_hash_table)
10709 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10710 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10711 obstack.
10712 (dw2_get_real_path): Likewise. Change argument to
10713 dwarf2_per_objfile.
10714
10715 2020-05-27 Luis Machado <luis.machado@linaro.org>
10716
10717 PR tdep/26000
10718 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10719 for ldrd (immediate).
10720
10721 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10722
10723 * command.h: Add comment giving the name of class_tui.
10724 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10725 create the fake command for the help for class_tui.
10726
10727 2020-05-26 Tom Tromey <tromey@adacore.com>
10728
10729 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10730 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10731 (val_atr): New function.
10732 (value_val_atr): Use it.
10733 * ada-valprint.c (print_optional_low_bound): Change low bound
10734 handling for enums.
10735 (val_print_packed_array_elements): Don't call discrete_position.
10736 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10737 discrete_position for enum types.
10738 * language.c (default_print_array_index): Change type.
10739 * language.h (struct language_defn) <la_print_array_index>: Add
10740 index_type parameter, change type of index_value.
10741 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10742 (default_print_array_index): Update.
10743 * valprint.c (maybe_print_array_index): Don't call
10744 value_from_longest. Update.
10745 (value_print_array_elements): Don't call discrete_position.
10746
10747 2020-05-26 Tom Tromey <tromey@adacore.com>
10748
10749 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10750 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10751
10752 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10753
10754 PR gdb/13519
10755 * avr-tdep.c (avr_integer_to_address): Return data or code
10756 address accordingly to the second 'type' argument of the
10757 function.
10758
10759 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10760
10761 * infcmd.c, inferior.h: (construct_inferior_arguments):
10762 Moved function from here to gdbsupport/common-inferior.{h,cc}
10763
10764 2020-05-23 Tom Tromey <tom@tromey.com>
10765
10766 Revert commit eca1f90c:
10767 * NEWS: Remove entry for completion styling.
10768 * completer.c (_rl_completion_prefix_display_length): Move
10769 declaration later.
10770 (gdb_fnprint): Revert.
10771 (gdb_display_match_list_1): Likewise.
10772 * cli/cli-style.c (completion_prefix_style)
10773 (completion_difference_style, completion_suffix_style): Remove.
10774 (_initialize_cli_style): Revert.
10775 * cli/cli-style.h (completion_prefix_style)
10776 (completion_difference_style, completion_suffix_style): Don't
10777 declare.
10778
10779 2020-05-24 Pedro Alves <palves@redhat.com>
10780
10781 * symtab.c (completion_list_add_name): Return boolean indication
10782 of whether the symbol matched.
10783 (completion_list_add_symbol): Don't try to remove C++ aliases if
10784 the symbol didn't match in the first place.
10785 * symtab.h (completion_list_add_name): Return bool.
10786
10787 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10788
10789 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10790 type::field.
10791
10792 2020-05-23 Joel Brobecker <brobecker@adacore.com>
10793
10794 GDB 9.2 released.
10795
10796 2020-05-23 Tom Tromey <tom@tromey.com>
10797
10798 * NEWS: Add entry for completion styling.
10799 * completer.c (_rl_completion_prefix_display_length): Move
10800 declaration earlier.
10801 (gdb_fnprint): Use completion_style.
10802 (gdb_display_match_list_1): Likewise.
10803 * cli/cli-style.c (completion_prefix_style)
10804 (completion_difference_style, completion_suffix_style): New
10805 globals.
10806 (_initialize_cli_style): Register new globals.
10807 * cli/cli-style.h (completion_prefix_style)
10808 (completion_difference_style, completion_suffix_style): Declare.
10809
10810 2020-05-23 Pedro Alves <palves@redhat.com>
10811
10812 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10813 (parse_escape): Use ISDIGIT instead of isdigit.
10814 (puts_debug): Use gdb_isprint instead of isprint.
10815 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10816 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10817 ISSPACE instead of isspace.
10818 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10819 instead of isspace.
10820 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10821 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10822 instead of isxdigit and ISDIGIT instead of isdigit.
10823
10824 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * gdbtypes.h (struct type) <field>: New method.
10827 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10828 or type::field.
10829
10830 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10831
10832 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10833 (TYPE_FIELDS): Use type::fields. Change all call sites that
10834 modify the propery to use type::set_fields instead.
10835
10836 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10837
10838 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10839 type::num_fields instead.
10840
10841 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
10842
10843 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10844 methods.
10845 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10846 that modify the number of fields to use type::set_num_fields
10847 instead.
10848
10849 2020-05-22 Tom Tromey <tromey@adacore.com>
10850
10851 * compile/compile-object-load.h (munmap_list_free): Don't
10852 declare.
10853
10854 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10855
10856 * annotate.c (annotate_source_line): Update return type, add call
10857 to update current symtab and line.
10858 * annotate.h (annotate_source_line): Update return type, and
10859 extend header comment.
10860 * source.c (info_line_command): Check annotation_level before
10861 calling annotate_source_line.
10862 * stack.c (print_frame_info): If calling annotate_source_line
10863 returns true, then don't print any other source line information.
10864
10865 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10866
10867 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10868
10869 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
10870
10871 * coffread.c (patch_type): Remove NULL check before xfree.
10872 * corefile.c (set_gnutarget): Likewise.
10873 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10874 * exec.c (build_section_table): Likewise.
10875 * remote.c (remote_target::pass_signals): Likewise.
10876 * utils.c (n_spaces): Likewise.
10877 * cli/cli-script.c (document_command): Likewise.
10878 * i386-windows-tdep.c (core_process_module_section): Likewise.
10879 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10880
10881 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
10882
10883 * symfile.c (reread_symbols): Clear objfile's section_offsets
10884 vector and section indices, re-compute them by calling
10885 sym_offsets.
10886
10887 2020-05-20 Tom Tromey <tromey@adacore.com>
10888
10889 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
10890 (desc_one_bound, desc_index_type): Compute field name.
10891
10892 2020-05-20 Tom de Vries <tdevries@suse.de>
10893
10894 PR symtab/25833
10895 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10896
10897 2020-05-20 Alan Modra <amodra@gmail.com>
10898
10899 PR 25993
10900 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10901 bfd_set_filename.
10902 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10903 passed to bfd_set_filename.
10904 * symfile-mem.c (add_vsyscall_page): Likewise for string
10905 passed to symbol_file_add_from_memory.
10906 (symbol_file_add_from_memory): Make name param a const char* and
10907 don't strdup.
10908
10909 2020-05-20 Alan Modra <amodra@gmail.com>
10910
10911 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10912 rather than accessing bfd->filename directly.
10913 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10914 and use bfd_section_name.
10915 * dwarf2/frame.c (decode_frame_entry): Likewise.
10916 * exec.c (exec_set_section_address): Likewise.
10917 * solib-aix.c (solib_aix_bfd_open): Likewise.
10918 * stap-probe.c (get_stap_base_address): Likewise.
10919 * symfile.c (reread_symbols): Likewise.
10920
10921 2020-05-19 Tom Tromey <tromey@adacore.com>
10922
10923 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10924
10925 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10926
10927 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10928
10929 2020-05-19 Pedro Alves <palves@redhat.com>
10930
10931 * NEWS (set exec-file-mismatch): Adjust entry.
10932 * exec.c: Include "build-id.h".
10933 (validate_exec_file): Try to match build IDs instead of filenames.
10934 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10935 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10936 and pass down 'warn_if_slow'.
10937 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10938 gdb_bfd_open_closure to pass it down.
10939 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10940
10941 2020-05-19 Pedro Alves <palves@redhat.com>
10942
10943 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10944 * target.c (target_fileio_open_1): Rename to target_fileio_open
10945 and make extern. Use bool.
10946 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10947 (target_fileio_read_alloc_1): Adjust.
10948 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10949 (target_fileio_open_warn_if_slow): Delete declaration.
10950
10951 2020-05-19 Pedro Alves <palves@redhat.com>
10952
10953 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10954 Adjust all callers.
10955
10956 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10957
10958 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10959 whether disp is negative.
10960
10961 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10962
10963 * symfile.h (struct symfile_segment_data)
10964 <~symfile_segment_data>: Remove.
10965 <segment_info>: Change to std::vector.
10966 * symfile.c (default_symfile_segments): Update.
10967 * elfread.c (elf_symfile_segments): Update.
10968
10969 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10970
10971 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10972 <segments>: New.
10973 <segment_bases, segment_sizes>: Remove.
10974 * symfile.c (default_symfile_segments): Update.
10975 * elfread.c (elf_symfile_segments): Update.
10976 * remote.c (remote_target::get_offsets): Update.
10977 * solib-target.c (solib_target_relocate_section_addresses):
10978 Update.
10979
10980 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
10981
10982 * symfile.h (struct symfile_segment_data): Initialize fields.
10983 <~symfile_segment_data>: Add.
10984 (symfile_segment_data_up): New.
10985 (struct sym_fns) <sym_segments>: Return a
10986 symfile_segment_data_up.
10987 (default_symfile_segments): Return a symfile_segment_data_up.
10988 (free_symfile_segment_data): Remove.
10989 (get_symfile_segment_data): Return a symfile_segment_data_up.
10990 * symfile.c (default_symfile_segments): Likewise.
10991 (get_symfile_segment_data): Likewise.
10992 (free_symfile_segment_data): Remove.
10993 (symfile_find_segment_sections): Update.
10994 * elfread.c (elf_symfile_segments): Return a
10995 symfile_segment_data_up.
10996 * remote.c (remote_target::get_offsets): Update.
10997 * solib-target.c (solib_target_relocate_section_addresses):
10998 Update.
10999 * symfile-debug.c (debug_sym_segments): Return a
11000 symfile_segment_data_up.
11001
11002 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11003
11004 PR build/25981
11005 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11006 Hardcode register numbers.
11007
11008 PR build/25981
11009 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11010 procfs_find_LDT_entry): Remove.
11011 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11012 procfs_find_LDT_entry): Remove.
11013 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11014 Remove.
11015
11016 2020-05-17 Pedro Alves <palves@redhat.com>
11017 Andrew Burgess <andrew.burgess@embecosm.com>
11018 Keno Fischer <keno@juliacomputing.com>
11019
11020 PR gdb/25741
11021 * breakpoint.c (build_target_condition_list): Update comments.
11022 (build_target_command_list): Update comments and skip matching
11023 locations.
11024 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11025 a separate function. Simplify "set breakpoint auto-hw off"
11026 handling.
11027 (insert_breakpoints): Update comment.
11028 (tracepoint_locations_match): New parameter. For breakpoints,
11029 compare location types too, if the caller wants to.
11030 (handle_automatic_hardware_breakpoints): New functions.
11031 (bp_location_is_less_than): Also sort by location type and
11032 hardware breakpoint length.
11033 (update_global_location_list): Handle "set breakpoint auto-hw on"
11034 here.
11035 (update_breakpoint_locations): Ask breakpoint_locations_match to
11036 ignore location types.
11037
11038 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11039
11040 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11041 type::name instead.
11042
11043 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11044
11045 * gdbtypes.h (struct type) <name, set_name>: New methods.
11046 (TYPE_CODE): Use type::name. Change all call sites used to set
11047 the name to use type::set_name instead.
11048
11049 2020-05-16 Tom Tromey <tom@tromey.com>
11050
11051 * top.c (quit_force): Update.
11052 * infrun.c (handle_no_resumed): Update.
11053 * top.h (all_uis): New function.
11054 (ALL_UIS): Remove.
11055
11056 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11057
11058 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11059
11060 2020-05-16 Pedro Alves <palves@redhat.com>
11061
11062 * ia64-linux-nat.c
11063 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11064 Declare method.
11065 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11066
11067 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11070 (sparc64_adi_info): Likewise.
11071
11072 2020-05-15 Tom Tromey <tom@tromey.com>
11073
11074 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11075 block_objfile.
11076 (lookup_objfile_from_block): Remove.
11077 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11078 (lookup_global_symbol): Use block_objfile.
11079 * symtab.h (lookup_objfile_from_block): Don't declare.
11080 * printcmd.c (clear_dangling_display_expressions): Use
11081 block_objfile.
11082 * parse.c (operator_check_standard): Use block_objfile.
11083
11084 2020-05-15 Tom Tromey <tom@tromey.com>
11085
11086 * language.c (language_alloc_type_symbol): Set
11087 SYMBOL_SECTION.
11088 * symtab.c (initialize_objfile_symbol): Remove.
11089 (allocate_symbol): Remove.
11090 (allocate_template_symbol): Remove.
11091 * dwarf2/read.c (fixup_go_packaging): Use "new".
11092 (new_symbol): Use "new".
11093 (read_variable): Don't call initialize_objfile_symbol. Use
11094 "new".
11095 (read_func_scope): Use "new".
11096 * xcoffread.c (process_xcoff_symbol): Don't call
11097 initialize_objfile_symbol.
11098 (SYMBOL_DUP): Remove.
11099 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11100 "new".
11101 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11102 (allocate_template_symbol): Don't declare.
11103 (struct symbol): Add copy constructor. Change defaults.
11104 * jit.c (finalize_symtab): Use "new".
11105 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11106 Use "new".
11107 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11108 (common_block_end): Use "new".
11109 * mdebugread.c (parse_symbol): Use "new".
11110 (new_symbol): Likewise.
11111
11112 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11113
11114 * NEWS: Mention changes to help and apropos.
11115
11116 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11117
11118 * command.h (enum command_class): Improve comments, document
11119 that class_alias is for user-defined aliases, give the class
11120 name for each class, remove unused class_xdb.
11121 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11122 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11123 by a precise class.
11124 * infcmd.c (_initialize_infcmd): Likewise.
11125 * reverse.c (_initialize_reverse): Likewise.
11126 * stack.c (_initialize_stack): Likewise.
11127 * symfile.c (_initialize_symfile): Likewise.
11128 * tracepoint.c (_initialize_tracepoint): Likewise.
11129
11130 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11131
11132 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11133 when their aliased command is traversed.
11134 (help_cmd): Add fput_command_names_styled call to
11135 output command name and aliases when command has an alias.
11136
11137 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11138
11139 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11140 * cli/cli-decode.c (help_cmd_list): Declare as static,
11141 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11142 a command together with the command.
11143 (fput_command_name_styled, fput_command_names_styled): New functions.
11144 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11145 fput_command_name_styled.
11146 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11147 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11148
11149 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11150
11151 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11152 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11153 * command.h (cmd_show_list): Likewise.
11154 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11155 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11156
11157 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11158
11159 * unittests/command-def-selftests.c (traverse_command_structure):
11160 Verify all commands of a list have the same prefix command and
11161 that only the top cmdlist commands have a null prefix.
11162
11163 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11164
11165 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11166 as prefix, not one of its aliases.
11167 (set_cmd_prefix): Remove.
11168 (do_add_cmd): Centralize the setting of the prefix of a command, when
11169 command is defined after its full chain of prefix commands.
11170 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11171 (add_setshow_cmd_full): Likewise.
11172 (update_prefix_field_of_prefixed_commands): New function.
11173 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11174 update_prefix_field_of_prefixed_commands.
11175 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11176 addresses of remote_set_cmdlist and remote_show_cmdlist given
11177 as argument, not the address of an argument.
11178 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11179 * gdb/remote.c (_initialize_remote): Likewise.
11180
11181 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11182
11183 * cli/cli-cmds.c (alias_command): Check for an existing alias
11184 using lookup_cmd_composition, as valid_command_p is too strict
11185 and forbids aliases that are the prefix of an existing alias
11186 or command.
11187 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11188 command is properly recognised as a valid command.
11189
11190 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11191
11192 * unittests/help-doc-selftests.c: Rename to
11193 unittests/command-def-selftests.c
11194 * unittests/command-def-selftests.c (help_doc_tests): Update some
11195 comments.
11196 (command_structure_tests, traverse_command_structure): New namespace
11197 and function.
11198 (command_structure_invariants_tests): New function.
11199 (_initialize_command_def_selftests) Renamed from
11200 _initialize_help_doc_selftests, register command_structure_invariants
11201 selftest.
11202
11203 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11204
11205 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11206 an alias of 'show'.
11207
11208 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11209
11210 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11211 ada_is_fixed_point_type. Update all callers.
11212 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11213 all callers.
11214 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11215 Update all callers.
11216 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11217 print_fixed_point_type. Update all callers.
11218 * ada-valprint.c (ada_value_print_num): Replace call to
11219 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11220
11221 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11222
11223 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11224 processors.
11225 (cpu_supports_bts): Add CV_AMD case.
11226
11227 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11228 Simon Marchi <simon.marchi@efficios.com>
11229
11230 * infrun.c (stop_all_threads): Collect multiple wait events at
11231 each pass.
11232
11233 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11234
11235 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11236 type::code instead.
11237
11238 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11239
11240 * gdbtypes.h (struct type) <code, set_code>: New methods.
11241 (TYPE_CODE): Use type::code. Change all call sites used to set
11242 the code to use type::set_code instead.
11243
11244 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11245 Tom de Vries <tdevries@suse.de>
11246 Pedro Alves <palves@redhat.com>
11247
11248 PR threads/25478
11249 * infrun.c (stop_all_threads): Do NOT ignore
11250 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11251 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11252 received.
11253 (handle_no_resumed): Remove code handling a live inferior with no
11254 threads.
11255 * remote.c (has_single_non_exited_thread): New.
11256 (remote_target::update_thread_list): Do not delete a thread if is
11257 the last thread of the process.
11258 * thread.c (thread_select): Call delete_exited_threads instead of
11259 prune_threads.
11260
11261 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11262
11263 * infrun.c (stop_all_threads): Enable/disable thread events of all
11264 targets. Move a debug message denoting the end of the function
11265 into the SCOPED_EXIT block.
11266
11267 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11268
11269 * process-stratum-target.h: Include <set>.
11270 (all_non_exited_process_targets, switch_to_target_no_thread): New
11271 function declarations.
11272 * process-stratum-target.c (all_non_exited_process_targets)
11273 (switch_to_target_no_thread): New function implementations.
11274
11275 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11276
11277 * infrun.c (handle_inferior_event): Extract out a piece of code
11278 into...
11279 (mark_non_executing_threads): ...this new function.
11280
11281 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11282
11283 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11284 use.
11285
11286 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11287
11288 * regcache.c (regcache_read_pc_protected): New function
11289 implementation that returns 0 if the PC cannot read via
11290 'regcache_read_pc'.
11291 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11292 instead of 'regcache_read_pc'.
11293 (keep_going_pass_signal): Ditto.
11294
11295 2020-05-13 Tom Tromey <tromey@adacore.com>
11296
11297 * ada-lang.c (align_value): Remove.
11298 (ada_template_to_fixed_record_type_1): Use align_up.
11299
11300 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11301
11302 * async-event.c: Update the copyright year.
11303 * async-event.h: Update the copyright year.
11304
11305 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11306
11307 * objfiles.h (is_addr_in_objfile,
11308 shared_objfile_contains_address_p): Return bool.
11309 * objfile.c (is_addr_in_objfile,
11310 shared_objfile_contains_address_p): Return bool.
11311
11312 2020-05-11 Tom Tromey <tromey@adacore.com>
11313
11314 * cli/cli-cmds.c (info_command): Restore.
11315 (_initialize_cli_cmds): Use add_prefix_command for "info".
11316 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11317
11318 2020-05-11 Tom Tromey <tromey@adacore.com>
11319
11320 * ada-lang.c (ada_value_primitive_field): Now public.
11321 * ada-lang.h (ada_value_primitive_field): Declare.
11322 * ada-valprint.c (print_field_values): Use
11323 ada_value_primitive_field for wrapper fields.
11324
11325 2020-05-11 Tom de Vries <tdevries@suse.de>
11326
11327 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11328 MODULE_DOMAIN.
11329
11330 2020-05-11 Tom de Vries <tdevries@suse.de>
11331
11332 PR symtab/25941
11333 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11334 with length 0, if not gdb-produced.
11335 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11336
11337 2020-05-09 Tom de Vries <tdevries@suse.de>
11338
11339 PR gdb/25955
11340 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11341 calculation.
11342
11343 2020-05-09 Tom Tromey <tom@tromey.com>
11344
11345 * top.c (server_command): Now bool.
11346 * top.h (server_command): Now bool.
11347
11348 2020-05-08 Tom Tromey <tromey@adacore.com>
11349
11350 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11351 already being processed.
11352
11353 2020-05-08 Tom Tromey <tom@tromey.com>
11354
11355 * printcmd.c (struct display) <next>: Remove.
11356 <display>: New constructor.
11357 <exp_string>: Now a std::string.
11358 <enabled_p>: Now a bool.
11359 (display_number): Move definition earlier.
11360 (displays): Rename from display_chain. Now a std::vector.
11361 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11362 (display_command): Update.
11363 (do_one_display, disable_display)
11364 (enable_disable_display_command, do_enable_disable_display):
11365 Update.
11366 (free_display): Remove.
11367 (clear_displays): Rewrite.
11368 (delete_display): Update.
11369 (map_display_numbers): Use function_view. Remove "data"
11370 parameter. Update.
11371 (do_delete_display): Remove.
11372 (undisplay_command): Update.
11373 (do_one_display, do_displays, disable_display)
11374 (info_display_command): Update.
11375 (do_enable_disable_display): Remove.
11376 (enable_disable_display_command)
11377 (clear_dangling_display_expressions): Update.
11378
11379 2020-05-08 Tom Tromey <tom@tromey.com>
11380
11381 * symtab.c (set_symbol_cache_size)
11382 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11383 (maintenance_print_symbol_cache_statistics): Update.
11384 * symmisc.c (print_symbol_bcache_statistics)
11385 (print_objfile_statistics, maintenance_print_objfiles)
11386 (maintenance_info_symtabs, maintenance_check_symtabs)
11387 (maintenance_expand_symtabs, maintenance_info_line_tables):
11388 Update.
11389 * symfile-debug.c (set_debug_symfile): Update.
11390 * source.c (forget_cached_source_info): Update.
11391 * python/python.c (gdbpy_progspaces): Update.
11392 * psymtab.c (maintenance_info_psymtabs): Update.
11393 * probe.c (parse_probes): Update.
11394 * linespec.c (iterate_over_all_matching_symtabs)
11395 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11396 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11397 * exec.c (exec_target::close): Update.
11398 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11399 * breakpoint.c (print_one_breakpoint_location)
11400 (create_longjmp_master_breakpoint)
11401 (create_std_terminate_master_breakpoint): Update.
11402 * progspace.c (program_spaces): Now a std::vector.
11403 (maybe_new_address_space): Update.
11404 (add_program_space): Remove.
11405 (program_space::program_space): Update.
11406 (remove_program_space): Update.
11407 (number_of_program_spaces): Remove.
11408 (print_program_space, update_address_spaces): Update.
11409 * progspace.h (program_spaces): Change type.
11410 (ALL_PSPACES): Remove.
11411 (number_of_program_spaces): Don't declare.
11412 (struct program_space) <next>: Remove.
11413
11414 2020-05-08 Tom Tromey <tom@tromey.com>
11415
11416 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11417 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11418 (enable_break): Update.
11419 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11420 (frv_fdpic_find_canonical_descriptor): Update.
11421 (frv_fetch_objfile_link_map): Update.
11422 * progspace.c (program_space::free_all_objfiles): Update.
11423 (program_space::solibs): New method.
11424 * progspace.h (struct program_space) <solibs>: New method.
11425 * solist.h (master_so_list): Don't declare.
11426 (ALL_SO_LIBS): Remove.
11427 * solib.h (so_list_head): Remove.
11428 (update_solib_list): Update comment.
11429 * solib.c (master_so_list): Remove.
11430 (solib_used, update_solib_list, solib_add)
11431 (info_sharedlibrary_command, clear_solib)
11432 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11433
11434 2020-05-08 Tom Tromey <tom@tromey.com>
11435
11436 * extension.c (extension_languages): Now a std::array.
11437 (ALL_EXTENSION_LANGUAGES): Remove.
11438 (get_ext_lang_defn, get_ext_lang_of_file)
11439 (eval_ext_lang_from_control_command): Update.
11440 (finish_ext_lang_initialization)
11441 (auto_load_ext_lang_scripts_for_objfile)
11442 (ext_lang_type_printers::ext_lang_type_printers)
11443 (apply_ext_lang_type_printers)
11444 (ext_lang_type_printers::~ext_lang_type_printers)
11445 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11446 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11447 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11448 (get_matching_xmethod_workers, ext_lang_colorize)
11449 (ext_lang_before_prompt): Update.
11450 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11451
11452 2020-05-08 Tom Tromey <tom@tromey.com>
11453
11454 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11455 overload.
11456 <swap_string, m_string>: Remove.
11457 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11458 Update.
11459 * stabsread.c (define_symbol, read_type): Update.
11460 * linespec.c (find_linespec_symbols): Update.
11461 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11462 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11463 * dbxread.c (read_dbx_symtab): Update.
11464 * cp-support.h (cp_canonicalize_string_full)
11465 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11466 Return unique_xmalloc_ptr.
11467 * cp-support.c (inspect_type): Update.
11468 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11469 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11470 Likewise.
11471 * c-typeprint.c (print_name_maybe_canonical): Update.
11472 * break-catch-throw.c (check_status_exception_catchpoint):
11473 Update.
11474
11475 2020-05-08 Tom de Vries <tdevries@suse.de>
11476
11477 * infrun.c (follow_fork): Copy current_line and current_symtab to
11478 child thread.
11479
11480 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11481
11482 * async-event.c (struct async_signal_handler, struct
11483 async_event_handler): Reformat, remove typedef.
11484
11485 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11486
11487 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11488 access thistype->main_type->dyn_prop_list directly.
11489
11490 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11491
11492 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11493 (remove_dyn_prop): Remove. Update all users to use
11494 type::remove_dyn_prop.
11495 * gdbtypes.c (remove_dyn_prop): Rename to...
11496 (type::remove_dyn_prop): ... this.
11497
11498 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11499
11500 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11501 (add_dyn_prop): Remove. Update all users to use
11502 type::add_dyn_prop.
11503 * gdbtypes.c (add_dyn_prop): Rename to...
11504 (type::add_dyn_prop): ... this.
11505
11506 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11507
11508 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11509 (get_dyn_prop): Remove. Update all users to use
11510 type::dyn_prop.
11511 * gdbtypes.c (get_dyn_prop): Rename to...
11512 (type::dyn_prop): ... this.
11513
11514 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11515
11516 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11517
11518 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11519
11520 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11521 instruction, skip it if it's there.
11522
11523 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11524
11525 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11526
11527 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11528
11529 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11530 * gdbtypes.c (recursive_dump_type): Remove use of
11531 TYPE_INCOMPLETE.
11532
11533 2020-05-03 Tom Tromey <tom@tromey.com>
11534
11535 * breakpoint.c (catch_command, tcatch_command): Remove.
11536 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11537 add_show_prefix_cmd.
11538 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11539 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11540 Remove.
11541 (add_internal_problem_command): Use add_basic_prefix_cmd,
11542 add_show_prefix_cmd.
11543 * mips-tdep.c (set_mipsfpu_command): Remove.
11544 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11545 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11546 (_initialize_index_cache): Use add_basic_prefix_cmd.
11547 * memattr.c (dummy_cmd): Remove.
11548 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11549 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11550 (_initialize_tui_win): Use add_basic_prefix_cmd,
11551 add_show_prefix_cmd.
11552 * cli/cli-logging.c (set_logging_command): Remove.
11553 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11554 add_show_prefix_cmd.
11555 (show_logging_command): Remove.
11556 * target.c (target_command): Remove.
11557 (add_target): Use add_basic_prefix_cmd.
11558
11559 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11560
11561 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11562
11563 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11564
11565 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11566 info_command.
11567
11568 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11569
11570 * nbsd-nat.c (nbsd_enable_proc_events)
11571 (nbsd_nat_target::post_startup_inferior): Add.
11572 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11573 (nbsd_nat_target::update_thread_list): Rewrite.
11574 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11575 "PTRACE_LWP_CREATE".
11576 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11577
11578 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11579
11580 * stack.c (_initialize_stack): Remove duplicated creation
11581 of "frame" command and "f" alias.
11582
11583 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11584
11585 PR gdb/18706
11586 * gdbtypes.c (check_typedef): Calculate size of array of
11587 stubbed type.
11588
11589 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11590
11591 PR gdb/15559
11592 * i386-tdep.c (i386_push_dummy_call): Call
11593 i386_thiscall_push_dummy_call.
11594 (i386_thiscall_push_dummy_call): New function.
11595 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11596 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11597 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11598
11599 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11600
11601 * gdbarch.sh (do_read): Add shellcheck disable directive for
11602 warning SC2162.
11603
11604 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11605
11606 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11607 "referenced but not assigned" warning.
11608
11609 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11610
11611 * gdbarch.sh: Remove code that sets fallbackdefault.
11612
11613 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11614
11615 * gdbarch.sh: Use shell operators && and || instead of
11616 -a and -o.
11617
11618 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * gdbarch.sh: Use $(...) instead of `...`.
11621
11622 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11623
11624 * gdbarch.sh: Use double quotes around variables.
11625
11626 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11627
11628 * gdbarch.sh: Use %s with printf, instead of variables in the
11629 format string.
11630
11631 2020-04-29 Tom Tromey <tromey@adacore.com>
11632
11633 PR ada/25875:
11634 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11635 type fields here.
11636 (read_enumeration_type): Call
11637 update_enumeration_type_from_children later. Update comments.
11638 (process_enumeration_scope): Don't create type fields.
11639
11640 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11641
11642 * nbsd-tdep.c: Include "xml-syscall.h".
11643 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11644
11645 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11646
11647 * nbsd-nat.c: Include "sys/wait.h".
11648 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11649 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11650 (nbsd_nat_target::remove_exec_catchpoint)
11651 (nbsd_nat_target::set_syscall_catchpoint): Add.
11652 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11653 (nbsd_nat_target::insert_exec_catchpoint)
11654 (nbsd_nat_target::remove_exec_catchpoint)
11655 (nbsd_nat_target::set_syscall_catchpoint): Add.
11656 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11657 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11658 `nbsd_get_syscall_number'.
11659
11660 2020-04-29 Tom Tromey <tom@tromey.com>
11661
11662 * stack.c (print_block_frame_labels): Remove.
11663
11664 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11665
11666 PR gdb/17320
11667 * ada-valprint.c (val_print_packed_array_elements): Move array
11668 end bracket to new line.
11669 (ada_val_print_string): Remove extra spaces before first array
11670 element.
11671 * c-valprint.c (c_value_print_array): Likewise.
11672 * m2-valprint.c (m2_print_array_contents): Likewise.
11673 (m2_value_print_inner): Likewise.
11674 * p-valprint.c (pascal_value_print_inner): Likewise.
11675 * valprint.c (generic_val_print_array): Likewise.
11676 (value_print_array_elements): Move first array element and array
11677 end bracket to new line.
11678
11679 2020-04-29 Tom de Vries <tdevries@suse.de>
11680
11681 PR symtab/25889
11682 * linespec.c (find_method): Fix ix calculation.
11683
11684 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11685
11686 * syscalls/update-netbsd.sh: New file.
11687 * syscalls/netbsd.xml: Regenerate.
11688 * data-directory/Makefile.in: Register `netbsd.xml' in
11689 `SYSCALLS_FILES'.
11690
11691 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11692
11693 * syscalls/update-freebsd.sh: Add double quotes.
11694
11695 2020-04-28 Tom Tromey <tom@tromey.com>
11696
11697 * NEWS: Update.
11698 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11699 (cmdpy_init): Allow class_tui.
11700
11701 2020-04-28 Mark Williams <mark@myosotissp.com>
11702
11703 PR gdb/24480
11704 * dwarf2read.c: Add missing assingments to list_in_scope when
11705 start_symtab was already called.
11706
11707 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11708
11709 PR gdb/25881
11710 * dwarf2/read.c (offset_map_type): Use
11711 gdb:hash_enum<sect_offset> as hash function.
11712
11713 2020-04-28 Tom de Vries <tdevries@suse.de>
11714
11715 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11716 with DW_AT_signature.
11717
11718 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11719
11720 * configure.ac: Remove check for fs_base/gs_base in
11721 user_regs_struct.
11722 * configure: Re-generate.
11723 * config.in: Re-generate.
11724 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11725 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11726 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11727
11728 2020-04-27 Luis Machado <luis.machado@linaro.org>
11729
11730 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11731 problematic inline frame unwinding situation.
11732 * frame.c (frame_id_computed_p): New function.
11733 * frame.h (frame_id_computed_p): New prototype.
11734
11735 2020-04-26 Tom Tromey <tom@tromey.com>
11736
11737 * command.h (enum command_class) <class_pseudo>: Remove.
11738
11739 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11740
11741 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11742 and whitespace.
11743
11744 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11745
11746 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11747 `PT_GET_PROCESS_STATE' block.
11748
11749 2020-04-24 Tom Tromey <tom@tromey.com>
11750
11751 * symtab.h (symbol_get_demangled_name): Don't declare.
11752 * symtab.c (symbol_get_demangled_name): Remove.
11753 (general_symbol_info::natural_name)
11754 (general_symbol_info::demangled_name): Update.
11755
11756 2020-04-24 Tom Tromey <tom@tromey.com>
11757
11758 PR rust/25025:
11759 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11760
11761 2020-04-24 Tom Tromey <tom@tromey.com>
11762
11763 PR symtab/12707:
11764 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11765 exists.
11766 (new_symbol): Likewise.
11767 * compile/compile-object-load.c (get_out_value_type): Use
11768 symbol_matches_search_name.
11769
11770 2020-04-24 Tom Tromey <tom@tromey.com>
11771
11772 * dwarf2/read.c (add_partial_symbol): Do not call
11773 compute_and_set_names.
11774
11775 2020-04-24 Tom Tromey <tom@tromey.com>
11776
11777 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11778 overload.
11779
11780 2020-04-24 Tom Tromey <tom@tromey.com>
11781
11782 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11783 (add_psymbol_to_list): New overload. Make old overload call new
11784 one.
11785 * psympriv.h (add_psymbol_to_list): New overload.
11786
11787 2020-04-24 Tom Tromey <tom@tromey.com>
11788
11789 * dwarf2/read.c (partial_die_info::read) <case
11790 DW_AT_linkage_name>: Use value_as_string.
11791 (dwarf2_string_attr): Use value_as_string.
11792 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11793 method.
11794 * dwarf2/attribute.c (attribute::value_as_string): New method.
11795
11796 2020-04-24 Tom Tromey <tom@tromey.com>
11797
11798 * symtab.c (general_symbol_info::natural_name)
11799 (general_symbol_info::demangled_name): Check for language_rust.
11800
11801 2020-04-24 Tom Tromey <tom@tromey.com>
11802
11803 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11804 (dwarf2_physname): ... from here.
11805 (partial_die_info::read): Add Rust "{" hack.
11806
11807 2020-04-24 Tom Tromey <tom@tromey.com>
11808
11809 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11810 method.
11811 (symbol_set_demangled_name): Don't declare.
11812 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11813 symbol_set_demangled_name.
11814 (general_symbol_info::set_language)
11815 (general_symbol_info::compute_and_set_names): Update.
11816 * minsyms.c (minimal_symbol_reader::install): Update.
11817 * dwarf2/read.c (new_symbol): Update.
11818
11819 2020-04-24 Tom Tromey <tromey@adacore.com>
11820
11821 PR python/23662:
11822 * python/py-type.c (convert_field): Handle
11823 FIELD_LOC_KIND_DWARF_BLOCK.
11824 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11825 (typy_get_dynamic): Nw function.
11826 (type_object_getset): Add "dynamic".
11827 * NEWS: Add entry.
11828
11829 2020-04-24 Tom Tromey <tromey@adacore.com>
11830
11831 * ada-typeprint.c (print_choices, print_variant_part)
11832 (print_record_field_types_dynamic): New functions.
11833 (print_record_field_types): Use print_record_field_types_dynamic.
11834
11835 2020-04-24 Tom Tromey <tromey@adacore.com>
11836
11837 * dwarf2/read.c (handle_data_member_location): New overload.
11838 (dwarf2_add_field): Use it.
11839 (decode_locdesc): Add "computed" parameter. Update comment.
11840 * gdbtypes.c (is_dynamic_type_internal): Also look for
11841 FIELD_LOC_KIND_DWARF_BLOCK.
11842 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11843 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11844 virtual base classes.
11845 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11846 FIELD_LOC_KIND_DWARF_BLOCK.
11847
11848 2020-04-24 Tom Tromey <tromey@adacore.com>
11849
11850 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11851 * gdbtypes.c (is_dynamic_type_internal): Check
11852 TYPE_HAS_DYNAMIC_LENGTH.
11853 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11854 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11855 New macros.
11856 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11857 constant.
11858
11859 2020-04-24 Tom Tromey <tromey@adacore.com>
11860
11861 * dwarf2/read.c (struct variant_field): Rewrite.
11862 (struct variant_part_builder): New.
11863 (struct nextfield): Remove "variant" field. Add "offset".
11864 (struct field_info): Add "current_variant_part" and
11865 "variant_parts".
11866 (alloc_discriminant_info): Remove.
11867 (alloc_rust_variant): New function.
11868 (quirk_rust_enum): Update.
11869 (dwarf2_add_field): Set "offset" member. Don't handle
11870 DW_TAG_variant_part.
11871 (offset_map_type): New typedef.
11872 (convert_variant_range, create_one_variant)
11873 (create_one_variant_part, create_variant_parts)
11874 (add_variant_property): New functions.
11875 (dwarf2_attach_fields_to_type): Call add_variant_property.
11876 (read_structure_type): Don't handle DW_TAG_variant_part.
11877 (handle_variant_part, handle_variant): New functions.
11878 (handle_struct_member_die): Use them.
11879 (process_structure_scope): Don't handle variant parts.
11880 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11881 (struct discriminant_info): Remove.
11882 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11883 (struct main_type) <flag_discriminated_union>: Remove.
11884 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11885 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11886 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11887 Update.
11888 * valops.c (value_union_variant): Remove.
11889 * value.h (value_union_variant): Don't declare.
11890
11891 2020-04-24 Tom Tromey <tromey@adacore.com>
11892
11893 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11894 (ada_value_primitive_packed_val): Update.
11895 * ada-valprint.c (ada_value_print_1): Update.
11896 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11897 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11898 just an address. Use evaluate_for_locexpr_baton.
11899 (dwarf2_evaluate_property): Update.
11900 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11901 array_view.
11902 * findvar.c (default_read_var_value): Update.
11903 * gdbtypes.c (compute_variant_fields_inner)
11904 (resolve_dynamic_type_internal): Update.
11905 (resolve_dynamic_type): Change type of valaddr parameter.
11906 * gdbtypes.h (resolve_dynamic_type): Update.
11907 * valarith.c (value_subscripted_rvalue): Update.
11908 * value.c (value_from_contents_and_address): Update.
11909
11910 2020-04-24 Tom Tromey <tromey@adacore.com>
11911
11912 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11913 "push_initial_value" parameter.
11914 (dwarf2_evaluate_property): Likewise.
11915 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11916
11917 2020-04-24 Tom Tromey <tromey@adacore.com>
11918
11919 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11920 (variant::matches, compute_variant_fields_recurse)
11921 (compute_variant_fields_inner, compute_variant_fields): New
11922 functions.
11923 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11924 Use resolved_type after type is made.
11925 (operator==): Add new cases.
11926 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11927 (struct discriminant_range, struct variant, struct variant_part):
11928 New.
11929 (union dynamic_prop_data) <variant_parts, original_type>: New
11930 members.
11931 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11932 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11933 constants.
11934 * value.c (unpack_bits_as_long): Now public.
11935 * value.h (unpack_bits_as_long): Declare.
11936
11937 2020-04-24 Tom Tromey <tromey@adacore.com>
11938
11939 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11940 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11941
11942 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
11943
11944 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11945
11946 2020-04-24 Kamil Rytarowski <n54@gmx.com>
11947
11948 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11949 (remove_fork_catchpoint, post_startup_inferior)
11950 (post_attach): Move...
11951 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11952 (remove_fork_catchpoint, post_startup_inferior)
11953 (post_attach): ...here.
11954 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11955 (remove_fork_catchpoint, post_startup_inferior)
11956 (post_attach): Move...
11957 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11958 (remove_fork_catchpoint, post_startup_inferior)
11959 (post_attach): ...here.
11960
11961 2020-04-24 Tom Tromey <tromey@adacore.com>
11962
11963 * nat/windows-nat.h (struct windows_thread_info)
11964 <pc_adjusted>: New member.
11965 * windows-nat.c (windows_fetch_one_register): Check
11966 pc_adjusted.
11967 (windows_nat_target::get_windows_debug_event)
11968 (windows_nat_target::wait): Set pc_adjusted.
11969
11970 2020-04-24 Tom de Vries <tdevries@suse.de>
11971
11972 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11973 Run gdb-add-index inside temp dir.
11974
11975 2020-04-23 Tom Tromey <tromey@adacore.com>
11976
11977 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11978 in loop.
11979
11980 2020-04-23 Luis Machado <luis.machado@linaro.org>
11981
11982 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11983 get_frame_register instead of gdbarch_unwind_pc.
11984
11985 2020-04-23 Tom de Vries <tdevries@suse.de>
11986
11987 * symtab.c (lookup_global_symbol): Prefer def over decl.
11988
11989 2020-04-23 Tom de Vries <tdevries@suse.de>
11990
11991 PR symtab/25807
11992 * block.c (best_symbol, better_symbol): Promote to external.
11993 * block.h (best_symbol, better_symbol): Declare.
11994 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11995 decl.
11996
11997 2020-04-23 Tom Tromey <tromey@adacore.com>
11998
11999 PR ada/25837:
12000 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12001 "const char *", not a "const std::string &".
12002 <name_and_matcher::operator==>: Update.
12003 * unittests/lookup_name_info-selftests.c: Change type of
12004 "result".
12005
12006 2020-04-23 Tom Tromey <tom@tromey.com>
12007
12008 * inferior.h (iterate_over_inferiors): Don't declare.
12009 * inferior.c (iterate_over_inferiors): Remove.
12010 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12011 Remove.
12012 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12013 use iterate_over_inferiors.
12014 (darwin_resume_inferior_it)
12015 (struct resume_inferior_threads_param)
12016 (darwin_resume_inferior_threads_it): Remove.
12017 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12018
12019 2020-04-23 Tom de Vries <tdevries@suse.de>
12020
12021 * blockframe.c (find_pc_partial_function): Use
12022 find_pc_sect_compunit_symtab rather than
12023 objfile->sf->qf->find_pc_sect_compunit_symtab.
12024
12025 2020-04-22 Tom de Vries <tdevries@suse.de>
12026
12027 PR symtab/25764
12028 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12029 in psymtabs.
12030
12031 2020-04-22 Tom de Vries <tdevries@suse.de>
12032
12033 PR symtab/25801
12034 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12035 symtabs.
12036
12037 2020-04-22 Tom de Vries <tdevries@suse.de>
12038
12039 PR symtab/25700
12040 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12041 CU if already created.
12042
12043 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12044
12045 * infrun.c (displaced_step_fixup): Switch to the event_thread
12046 before calling displaced_step_restore, not after.
12047
12048 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12049
12050 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12051 its inferior is not recorded by us.
12052 (record_btrace_target_open): Replace call to
12053 all_non_exited_threads () with call to current_inferior
12054 ()->non_exited_threads ().
12055 (record_btrace_target::stop_recording): Likewise.
12056 (record_btrace_target::close): Likewise.
12057 (record_btrace_target::wait): Likewise.
12058 (record_btrace_target::record_stop_replaying): Likewise.
12059
12060 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12061
12062 * btrace.c (btrace_enable): Throw an error on double enables and
12063 when enabling recording fails.
12064 (btrace_disable): Throw an error if the thread is not recorded.
12065
12066 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12067
12068 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12069 request if we do not have a thread_info.
12070
12071 2020-04-21 Tom de Vries <tdevries@suse.de>
12072
12073 PR gdb/25471
12074 * thread.c
12075 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12076 exception in get_frame_id.
12077
12078 2020-04-20 Tom Tromey <tromey@adacore.com>
12079
12080 * python/python.c (struct gdbpy_event): Mark move constructor as
12081 noexcept.
12082 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12083 constructor as noexcept.
12084 * completer.h (struct completion_result): Mark move constructor as
12085 noexcept.
12086 * completer.c (completion_result::completion_result): Use
12087 initialization style. Don't call reset_match_list.
12088
12089 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12090
12091 * MAINTAINERS (Write After Approval): Add myself.
12092
12093 2020-04-18 Tom Tromey <tom@tromey.com>
12094
12095 * windows-tdep.c (init_w32_command_list)
12096 (w32_prefix_command_valid): Restore.
12097 (_initialize_windows_tdep): Call init_w32_command_list.
12098
12099 2020-04-18 Tom Tromey <tom@tromey.com>
12100
12101 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12102 * value.c (value_fn_field): Update.
12103 * valops.c (find_function_in_inferior)
12104 (value_allocate_space_in_inferior): Update.
12105 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12106 Update.
12107 * tui/tui-source.c (tui_source_window::set_contents): Update.
12108 * symtab.c (lookup_global_or_static_symbol)
12109 (find_function_start_sal_1, skip_prologue_sal)
12110 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12111 * symmisc.c (dump_msymbols, dump_symtab_1)
12112 (maintenance_print_one_line_table): Update.
12113 * symfile.c (init_entry_point_info, section_is_mapped)
12114 (list_overlays_command, simple_read_overlay_table)
12115 (simple_overlay_update_1): Update.
12116 * stap-probe.c (handle_stap_probe): Update.
12117 * stabsread.c (dbx_init_float_type, define_symbol)
12118 (read_one_struct_field, read_enum_type, read_range_type): Update.
12119 * source.c (info_line_command): Update.
12120 * python/python.c (gdbpy_source_objfile_script)
12121 (gdbpy_execute_objfile_script): Update.
12122 * python/py-type.c (save_objfile_types): Update.
12123 * python/py-objfile.c (py_free_objfile): Update.
12124 * python/py-inferior.c (python_new_objfile): Update.
12125 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12126 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12127 (maintenance_check_psymtabs): Update.
12128 * printcmd.c (info_address_command): Update.
12129 * objfiles.h (struct objfile) <arch>: New method, from
12130 get_objfile_arch.
12131 (get_objfile_arch): Don't declare.
12132 * objfiles.c (get_objfile_arch): Remove.
12133 (filter_overlapping_sections): Update.
12134 * minsyms.c (msymbol_is_function): Update.
12135 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12136 (output_nondebug_symbol): Update.
12137 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12138 (mdebug_expand_psymtab): Update.
12139 * machoread.c (macho_add_oso_symfile): Update.
12140 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12141 Update.
12142 * linux-fork.c (checkpoint_command): Update.
12143 * linespec.c (convert_linespec_to_sals): Update.
12144 * jit.c (finalize_symtab): Update.
12145 * infrun.c (insert_exception_resume_from_probe): Update.
12146 * ia64-tdep.c (ia64_find_unwind_table): Update.
12147 * hppa-tdep.c (internalize_unwinds): Update.
12148 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12149 Update.
12150 * gcore.c (call_target_sbrk): Update.
12151 * elfread.c (record_minimal_symbol, elf_symtab_read)
12152 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12153 (elf_gnu_ifunc_resolve_by_got): Update.
12154 * dwarf2/read.c (create_addrmap_from_index)
12155 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12156 (read_debug_names_from_section)
12157 (process_psymtab_comp_unit_reader, add_partial_symbol)
12158 (add_partial_subprogram, process_full_comp_unit)
12159 (read_file_scope, read_func_scope, read_lexical_block_scope)
12160 (read_call_site_scope, dwarf2_ranges_read)
12161 (dwarf2_record_block_ranges, dwarf2_add_field)
12162 (mark_common_block_symbol_computed, read_tag_pointer_type)
12163 (read_tag_string_type, dwarf2_init_float_type)
12164 (dwarf2_init_complex_target_type, read_base_type)
12165 (partial_die_info::read, partial_die_info::read)
12166 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12167 (dwarf2_fetch_die_loc_sect_off): Update.
12168 * dwarf2/loc.c (dwarf2_find_location_expression)
12169 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12170 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12171 (dwarf2_loc_desc_get_symbol_read_needs)
12172 (locexpr_describe_location_piece, locexpr_describe_location_1)
12173 (loclist_describe_location): Update.
12174 * dwarf2/index-write.c (write_debug_names): Update.
12175 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12176 * dtrace-probe.c (dtrace_process_dof): Update.
12177 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12178 (process_one_symbol): Update.
12179 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12180 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12181 (coff_read_enum_type): Update.
12182 * cli/cli-cmds.c (edit_command, list_command): Update.
12183 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12184 * breakpoint.c (create_overlay_event_breakpoint)
12185 (create_longjmp_master_breakpoint)
12186 (create_std_terminate_master_breakpoint)
12187 (create_exception_master_breakpoint, get_sal_arch): Update.
12188 * block.c (block_gdbarch): Update.
12189 * annotate.c (annotate_source_line): Update.
12190
12191 2020-04-17 Tom Tromey <tromey@adacore.com>
12192
12193 * auto-load.c (show_auto_load_cmd): Remove.
12194 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12195 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12196 (maintenance_print_arc_command): Remove.
12197 * tui/tui-win.c (tui_command): Remove.
12198 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12199 * tui/tui-layout.c (tui_layout_command): Remove.
12200 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12201 * python/python.c (user_set_python, user_show_python): Remove.
12202 (_initialize_python): Use add_basic_prefix_cmd,
12203 add_show_prefix_cmd.
12204 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12205 (install_gdb_commands): Use add_basic_prefix_cmd,
12206 add_show_prefix_cmd.
12207 (info_guile_command): Remove.
12208 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12209 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12210 add_show_prefix_cmd.
12211 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12212 Remove do_set and do_show parameters.
12213 * cli/cli-style.c (set_style, show_style): Remove.
12214 (_initialize_cli_style): Use add_basic_prefix_cmd,
12215 add_show_prefix_cmd.
12216 (cli_style_option::add_setshow_commands): Remove do_set and
12217 do_show parameters.
12218 (cli_style_option::add_setshow_commands): Use
12219 add_basic_prefix_cmd, add_show_prefix_cmd.
12220 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12221 (set_style_name): Remove.
12222 * cli/cli-dump.c (dump_command, append_command): Remove.
12223 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12224 (tekhex_dump_command, binary_dump_command)
12225 (binary_append_command): Remove.
12226 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12227 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12228 (init_w32_command_list): Remove; move into ...
12229 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12230 * valprint.c (set_print, show_print, set_print_raw)
12231 (show_print_raw): Remove.
12232 (_initialize_valprint): Use add_basic_prefix_cmd,
12233 add_show_prefix_cmd.
12234 * typeprint.c (set_print_type, show_print_type): Remove.
12235 (_initialize_typeprint): Use add_basic_prefix_cmd,
12236 add_show_prefix_cmd.
12237 * record.c (set_record_command, show_record_command): Remove.
12238 (_initialize_record): Use add_basic_prefix_cmd,
12239 add_show_prefix_cmd.
12240 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12241 add_show_prefix_cmd.
12242 (info_command, show_command, set_debug, show_debug): Remove.
12243 * top.h (set_history, show_history): Don't declare.
12244 * top.c (set_history, show_history): Remove.
12245 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12246 (unset_tdesc_cmd): Remove.
12247 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12248 add_show_prefix_cmd.
12249 * symtab.c (info_module_command): Remove.
12250 (_initialize_symtab): Use add_basic_prefix_cmd.
12251 * symfile.c (overlay_command): Remove.
12252 (_initialize_symfile): Use add_basic_prefix_cmd.
12253 * sparc64-tdep.c (info_adi_command): Remove.
12254 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12255 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12256 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12257 add_show_prefix_cmd.
12258 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12259 (_initialize_serial): Use add_basic_prefix_cmd,
12260 add_show_prefix_cmd.
12261 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12262 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12263 add_show_prefix_cmd.
12264 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12265 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12266 add_show_prefix_cmd.
12267 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12268 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12269 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12270 add_show_prefix_cmd.
12271 * remote.c (remote_command, set_remote_cmd): Remove.
12272 (_initialize_remote): Use add_basic_prefix_cmd.
12273 * record-full.c (set_record_full_command)
12274 (show_record_full_command): Remove.
12275 (_initialize_record_full): Use add_basic_prefix_cmd,
12276 add_show_prefix_cmd.
12277 * record-btrace.c (cmd_set_record_btrace)
12278 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12279 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12280 (cmd_show_record_btrace_pt): Remove.
12281 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12282 add_show_prefix_cmd.
12283 * ravenscar-thread.c (set_ravenscar_command)
12284 (show_ravenscar_command): Remove.
12285 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12286 add_show_prefix_cmd.
12287 * mips-tdep.c (show_mips_command, set_mips_command)
12288 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12289 add_show_prefix_cmd.
12290 * maint.c (maintenance_command, maintenance_info_command)
12291 (maintenance_check_command, maintenance_print_command)
12292 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12293 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12294 add_show_prefix_cmd.
12295 (show_per_command_cmd): Remove.
12296 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12297 Remove.
12298 (maintenance_show_test_settings_cmd): Remove.
12299 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12300 add_show_prefix_cmd.
12301 * maint-test-options.c (maintenance_test_options_command):
12302 Remove.
12303 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12304 * macrocmd.c (macro_command): Remove
12305 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12306 * language.c (set_check, show_check): Remove.
12307 (_initialize_language): Use add_basic_prefix_cmd,
12308 add_show_prefix_cmd.
12309 * infcmd.c (unset_command): Remove.
12310 (_initialize_infcmd): Use add_basic_prefix_cmd.
12311 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12312 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12313 add_show_prefix_cmd.
12314 * go32-nat.c (go32_info_dos_command): Remove.
12315 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12316 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12317 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12318 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12319 (_initialize_frame): Use add_basic_prefix_cmd,
12320 add_show_prefix_cmd.
12321 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12322 (_initialize_dcache): Use add_basic_prefix_cmd,
12323 add_show_prefix_cmd.
12324 * cp-support.c (maint_cplus_command): Remove.
12325 (_initialize_cp_support): Use add_basic_prefix_cmd.
12326 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12327 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12328 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12329 add_basic_prefix_cmd, add_show_prefix_cmd.
12330 * breakpoint.c (save_command): Remove.
12331 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12332 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12333 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12334 add_show_prefix_cmd.
12335 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12336 (set_ada_command, show_ada_command): Remove.
12337 (_initialize_ada_language): Use add_basic_prefix_cmd,
12338 add_show_prefix_cmd.
12339 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12340
12341 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12342
12343 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12344 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12345
12346 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12347
12348 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12349 warning messages.
12350
12351 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12352
12353 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12354 import table is not at beginning of .idata section.
12355
12356 2020-04-16 Pedro Alves <palves@redhat.com>
12357
12358 * inferior.c (delete_inferior): Use delete operator directly
12359 instead of delete_program_space.
12360 * progspace.c (add_program_space): New, factored out from
12361 program_space::program_space.
12362 (remove_program_space): New, factored out from
12363 delete_program_space.
12364 (program_space::program_space): Remove intro comment. Rewrite.
12365 (program_space::~program_space): Remove intro comment. Call
12366 remove_program_space.
12367 (delete_program_space): Delete.
12368 * progspace.h (program_space::program_space): Make explicit. Move
12369 intro comment here, adjusted.
12370 (program_space::~program_space): Move intro comment here,
12371 adjusted.
12372 (delete_program_space): Remove.
12373
12374 2020-04-16 Tom Tromey <tromey@adacore.com>
12375
12376 * windows-nat.c (windows_nat::handle_access_violation): New
12377 function.
12378 * nat/windows-nat.h (handle_access_violation): Declare.
12379 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12380 windows-nat.c. Call handle_access_violation.
12381
12382 2020-04-16 Tom de Vries <tdevries@suse.de>
12383
12384 PR symtab/25791
12385 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12386 CUs without psymtab.
12387
12388 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12389
12390 * python/python.c (do_start_initialization): Don't call
12391 PyEval_InitThreads for Python 3.9 and beyond.
12392
12393 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12394
12395 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12396 thread functions.
12397 (obsd_nat_target::wait): Likewise.
12398
12399 2020-04-15 Tom Tromey <tromey@adacore.com>
12400
12401 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12402 (DEBUG_EXCEPT): Use debug_printf.
12403
12404 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12405
12406 * completer.c (class completion_tracker::completion_hash_entry)
12407 <hash_name>: New member function.
12408 (completion_tracker::discard_completions): New callback to hash a
12409 completion_hash_entry, pass this to htab_create_alloc.
12410
12411 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12412
12413 * windows-nat.c (windows_make_so): Warn rather than stopping with
12414 an error if realpath() fails.
12415
12416 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12417
12418 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12419 (nbsd_nat_target::info_proc): Add do_status.
12420
12421 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12422 Tom de Vries <tdevries@suse.de>
12423
12424 PR symtab/25718
12425 * psympriv.h (struct partial_symtab::read_symtab)
12426 (struct partial_symtab::expand_psymtab)
12427 (struct partial_symtab::read_dependencies): Update comments.
12428 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12429 read_symtab for includer.
12430 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12431 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12432 (struct dwarf2_include_psymtab::m_readin): Remove.
12433 (struct dwarf2_include_psymtab::includer): New member function.
12434 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12435
12436 2020-04-14 Tom de Vries <tdevries@suse.de>
12437
12438 PR symtab/25720
12439 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12440 with NULL symbol_matcher and lookup_name.
12441 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12442 and lookup_name.
12443 * dwarf2/read.c (dw2_expand_symtabs_matching)
12444 (dw2_debug_names_expand_symtabs_matching): Same.
12445 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12446 Make lookup_name a pointer. Update comment.
12447 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12448 lookup_name being a pointer.
12449 * symfile.c (expand_symtabs_matching): Same.
12450 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12451 * linespec.c (iterate_over_all_matching_symtabs): Same.
12452
12453 2020-04-13 Tom Tromey <tom@tromey.com>
12454
12455 * run-on-main-thread.c: Update include.
12456 * unittests/main-thread-selftests.c: Update include.
12457 * tui/tui-win.c: Update include.
12458 * tui/tui-io.c: Update include.
12459 * tui/tui-interp.c: Update include.
12460 * tui/tui-hooks.c: Update include.
12461 * top.h: Update include.
12462 * top.c: Update include.
12463 * ser-base.c: Update include.
12464 * remote.c: Update include.
12465 * remote-notif.c: Update include.
12466 * remote-fileio.c: Update include.
12467 * record-full.c: Update include.
12468 * record-btrace.c: Update include.
12469 * python/python.c: Update include.
12470 * posix-hdep.c: Update include.
12471 * mingw-hdep.c: Update include.
12472 * mi/mi-main.c: Update include.
12473 * mi/mi-interp.c: Update include.
12474 * main.c: Update include.
12475 * linux-nat.c: Update include.
12476 * interps.c: Update include.
12477 * infrun.c: Update include.
12478 * inf-loop.c: Update include.
12479 * event-top.c: Update include.
12480 * event-loop.c: Move to ../gdbsupport/.
12481 * event-loop.h: Move to ../gdbsupport/.
12482 * async-event.h: Update include.
12483 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12484
12485 2020-04-13 Tom Tromey <tom@tromey.com>
12486
12487 * tui/tui-win.c: Include async-event.h.
12488 * remote.c: Include async-event.h.
12489 * remote-notif.c: Include async-event.h.
12490 * record-full.c: Include async-event.h.
12491 * record-btrace.c: Include async-event.h.
12492 * infrun.c: Include async-event.h.
12493 * event-top.c: Include async-event.h.
12494 * event-loop.h: Move some declarations to async-event.h.
12495 * event-loop.c: Don't include ser-event.h or top.h. Move some
12496 code to async-event.c.
12497 * async-event.h: New file.
12498 * async-event.c: New file.
12499 * Makefile.in (COMMON_SFILES): Add async-event.c.
12500 (HFILES_NO_SRCDIR): Add async-event.h.
12501
12502 2020-04-13 Tom Tromey <tom@tromey.com>
12503
12504 * utils.c (flush_streams): New function.
12505 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12506
12507 2020-04-13 Tom Tromey <tom@tromey.com>
12508
12509 * event-loop.c (handle_file_event): Use warning, not
12510 printf_unfiltered.
12511
12512 2020-04-13 Tom Tromey <tom@tromey.com>
12513
12514 * event-loop.c: Include <chrono>.
12515
12516 2020-04-13 Tom Tromey <tom@tromey.com>
12517
12518 * gdb_select.h: Move to ../gdbsupport/.
12519 * event-loop.c: Update include path.
12520 * top.c: Update include path.
12521 * ser-base.c: Update include path.
12522 * ui-file.c: Update include path.
12523 * ser-tcp.c: Update include path.
12524 * guile/scm-ports.c: Update include path.
12525 * posix-hdep.c: Update include path.
12526 * ser-unix.c: Update include path.
12527 * gdb_usleep.c: Update include path.
12528 * mingw-hdep.c: Update include path.
12529 * inflow.c: Update include path.
12530 * infrun.c: Update include path.
12531 * event-top.c: Update include path.
12532
12533 2020-04-13 Tom Tromey <tom@tromey.com>
12534
12535 * configure: Rebuild.
12536 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12537
12538 2020-04-13 Tom Tromey <tom@tromey.com>
12539
12540 * event-loop.h (start_event_loop): Don't declare.
12541 * event-loop.c (start_event_loop): Move...
12542 * main.c (start_event_loop): ...here. Now static.
12543
12544 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12545
12546 * MAINTAINERS: Update my email address.
12547
12548 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12549
12550 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12551 IP_ALL.
12552
12553 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12554
12555 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12556 (nbsd_nat_target::info_proc): Add do_cmdline.
12557
12558 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12559
12560 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12561 (nbsd_nat_target::info_proc): Add do_cwd.
12562
12563 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12564
12565 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12566
12567 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12568
12569 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12570 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12571 (nbsd_nat_target::info_proc): New functions.
12572 * nbsd-nat.c (kinfo_get_vmmap): New function.
12573 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12574 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12575 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12576 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12577 functions.
12578 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12579 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12580 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12581 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12582 (KINFO_VME_FLAG_GROWS_DOWN): New.
12583
12584 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12585
12586 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12587 bit shift.
12588
12589 2020-04-10 Tom Tromey <tromey@adacore.com>
12590
12591 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12592
12593 2020-04-10 Tom Tromey <tromey@adacore.com>
12594
12595 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12596 separate debug files.
12597
12598 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12599
12600 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12601 Move to...
12602 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12603 ... here.
12604 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12605 Check for STATUS_WX86_BREAKPOINT.
12606 (windows_nat_target::wait): Same.
12607
12608 2020-04-10 Tom de Vries <tdevries@suse.de>
12609
12610 PR cli/25808
12611 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12612
12613 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12614
12615 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12616 (Write After Approval): Remove Tom de Vries.
12617
12618 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12619
12620 revert partially:
12621 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12622
12623 * buildsym.c (record_line): Fix undefined behavior and preserve
12624 lines at eof.
12625
12626 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12627
12628 * auxv.h (svr4_auxv_parse): New.
12629 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12630 and generic_auxv_parse.
12631 (svr4_auxv_parse): Add.
12632 * obsd-tdep.c: Include "auxv.h".
12633 (obsd_auxv_parse): Remove.
12634 (obsd_init_abi): Remove comment.
12635 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12636 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12637 * nbsd-tdep.c: Include "auxv.h".
12638 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12639
12640 2020-04-08 Tom Tromey <tromey@adacore.com>
12641
12642 * nat/windows-nat.h (last_wait_event): Don't declare.
12643 (wait_for_debug_event): Update comment.
12644 * nat/windows-nat.c (last_wait_event): Now static.
12645
12646 2020-04-08 Tom Tromey <tromey@adacore.com>
12647
12648 * windows-nat.c (wait_for_debug_event): Move to
12649 nat/windows-nat.c.
12650 * nat/windows-nat.h (wait_for_debug_event): Declare.
12651 * nat/windows-nat.c (wait_for_debug_event): Move from
12652 windows-nat.c. No longer static.
12653
12654 2020-04-08 Tom Tromey <tromey@adacore.com>
12655
12656 * windows-nat.c (get_windows_debug_event): Use
12657 fetch_pending_stop.
12658 * nat/windows-nat.h (fetch_pending_stop): Declare.
12659 * nat/windows-nat.c (fetch_pending_stop): New function.
12660
12661 2020-04-08 Tom Tromey <tromey@adacore.com>
12662
12663 * windows-nat.c (windows_continue): Use matching_pending_stop and
12664 continue_last_debug_event.
12665 * nat/windows-nat.h (matching_pending_stop)
12666 (continue_last_debug_event): Declare.
12667 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12668 (matching_pending_stop, continue_last_debug_event): New
12669 functions.
12670
12671 2020-04-08 Tom Tromey <tromey@adacore.com>
12672
12673 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12674 (handle_exception_result): Move to nat/windows-nat.h.
12675 (DEBUG_EXCEPTION_SIMPLE): Remove.
12676 (windows_nat::handle_ms_vc_exception): New function.
12677 (handle_exception): Move to nat/windows-nat.c.
12678 (get_windows_debug_event): Update.
12679 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12680 nat/windows-nat.c.
12681 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12682 (handle_exception_result): Move from windows-nat.c.
12683 (handle_exception): Declare.
12684 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12685 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12686 windows-nat.c.
12687
12688 2020-04-08 Tom Tromey <tromey@adacore.com>
12689
12690 * windows-nat.c (exception_count, event_count): Remove.
12691 (handle_exception, get_windows_debug_event)
12692 (do_initial_windows_stuff): Update.
12693
12694 2020-04-08 Tom Tromey <tromey@adacore.com>
12695
12696 * windows-nat.c (windows_nat::handle_load_dll)
12697 (windows_nat::handle_unload_dll): Rename. No longer static.
12698 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12699 Declare.
12700
12701 2020-04-08 Tom Tromey <tromey@adacore.com>
12702
12703 * complaints.h (stop_whining): Declare at top-level.
12704 (complaint): Don't declare stop_whining.
12705
12706 2020-04-08 Tom Tromey <tromey@adacore.com>
12707
12708 * windows-nat.c (windows_nat::handle_output_debug_string):
12709 Rename. No longer static.
12710 * nat/windows-nat.h (handle_output_debug_string): Declare.
12711
12712 2020-04-08 Tom Tromey <tromey@adacore.com>
12713
12714 * windows-nat.c (current_process_handle, current_process_id)
12715 (main_thread_id, last_sig, current_event, last_wait_event)
12716 (current_windows_thread, desired_stop_thread_id, pending_stops)
12717 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12718 (display_selectors, fake_create_process)
12719 (get_windows_debug_event): Update.
12720 * nat/windows-nat.h (current_process_handle, current_process_id)
12721 (main_thread_id, last_sig, current_event, last_wait_event)
12722 (current_windows_thread, desired_stop_thread_id, pending_stops)
12723 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12724 * nat/windows-nat.c (current_process_handle, current_process_id)
12725 (main_thread_id, last_sig, current_event, last_wait_event)
12726 (current_windows_thread, desired_stop_thread_id, pending_stops)
12727 (siginfo_er): New globals. Move from windows-nat.c.
12728
12729 2020-04-08 Tom Tromey <tromey@adacore.com>
12730
12731 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12732 (handle_load_dll): Update.
12733 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12734
12735 2020-04-08 Tom Tromey <tromey@adacore.com>
12736
12737 * windows-nat.c (enum thread_disposition_type): Move to
12738 nat/windows-nat.h.
12739 (windows_nat::thread_rec): Rename from thread_rec. No longer
12740 static.
12741 (windows_add_thread, windows_nat_target::fetch_registers)
12742 (windows_nat_target::store_registers, handle_exception)
12743 (windows_nat_target::resume, get_windows_debug_event)
12744 (windows_nat_target::get_tib_address)
12745 (windows_nat_target::thread_name)
12746 (windows_nat_target::thread_alive): Update.
12747 * nat/windows-nat.h (enum thread_disposition_type): Move from
12748 windows-nat.c.
12749 (thread_rec): Declare.
12750
12751 2020-04-08 Tom Tromey <tromey@adacore.com>
12752
12753 * windows-nat.c: Add "using namespace".
12754 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12755 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12756
12757 2020-04-08 Tom Tromey <tromey@adacore.com>
12758
12759 * nat/windows-nat.h (struct windows_thread_info): Declare
12760 destructor.
12761 * nat/windows-nat.c (~windows_thread_info): New.
12762
12763 2020-04-08 Tom Tromey <tromey@adacore.com>
12764
12765 PR gdb/22992
12766 * windows-nat.c (current_event): Update comment.
12767 (last_wait_event, desired_stop_thread_id): New globals.
12768 (struct pending_stop): New.
12769 (pending_stops): New global.
12770 (windows_nat_target) <stopped_by_sw_breakpoint>
12771 <supports_stopped_by_sw_breakpoint>: New methods.
12772 (windows_fetch_one_register): Add assertions. Adjust PC.
12773 (windows_continue): Handle pending stops. Suspend other threads
12774 when stepping. Use last_wait_event
12775 (wait_for_debug_event): New function.
12776 (get_windows_debug_event): Use wait_for_debug_event. Handle
12777 pending stops. Queue spurious stops.
12778 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12779 (windows_nat_target::kill): Use wait_for_debug_event.
12780 * nat/windows-nat.h (struct windows_thread_info)
12781 <stopped_at_software_breakpoint>: New field.
12782 * nat/windows-nat.c (windows_thread_info::resume): Clear
12783 stopped_at_software_breakpoint.
12784
12785 2020-04-08 Tom Tromey <tromey@adacore.com>
12786
12787 * windows-nat.c (enum thread_disposition_type): New.
12788 (thread_rec): Replace "get_context" parameter with "disposition";
12789 change type.
12790 (windows_add_thread, windows_nat_target::fetch_registers)
12791 (windows_nat_target::store_registers, handle_exception)
12792 (windows_nat_target::resume, get_windows_debug_event)
12793 (windows_nat_target::get_tib_address)
12794 (windows_nat_target::thread_name)
12795 (windows_nat_target::thread_alive): Update.
12796
12797 2020-04-08 Tom Tromey <tromey@adacore.com>
12798
12799 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12800 (windows_continue): Use windows_continue::resume.
12801 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12802 resume>: Declare new methods.
12803 * nat/windows-nat.c: New file.
12804 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12805
12806 2020-04-08 Tom Tromey <tromey@adacore.com>
12807
12808 * windows-nat.c (windows_add_thread, windows_delete_thread)
12809 (windows_nat_target::fetch_registers)
12810 (windows_nat_target::store_registers, fake_create_process)
12811 (windows_nat_target::resume, windows_nat_target::resume)
12812 (get_windows_debug_event, windows_nat_target::wait)
12813 (windows_nat_target::pid_to_str)
12814 (windows_nat_target::get_tib_address)
12815 (windows_nat_target::get_ada_task_ptid)
12816 (windows_nat_target::thread_name)
12817 (windows_nat_target::thread_alive): Use lwp, not tid.
12818
12819 2020-04-08 Tom Tromey <tromey@adacore.com>
12820
12821 * windows-nat.c (handle_exception)
12822 (windows_nat_target::thread_name): Update.
12823 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12824 <name>: Now unique_xmalloc_ptr.
12825
12826 2020-04-08 Tom Tromey <tromey@adacore.com>
12827
12828 * windows-nat.c (thread_rec)
12829 (windows_nat_target::fetch_registers): Update.
12830 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12831 Update comment.
12832 <debug_registers_changed, reload_context>: Now bool.
12833
12834 2020-04-08 Tom Tromey <tromey@adacore.com>
12835
12836 * windows-nat.c (windows_add_thread): Use new.
12837 (windows_init_thread_list, windows_delete_thread): Use delete.
12838 (get_windows_debug_event): Update.
12839 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12840 destructor, and initializers.
12841
12842 2020-04-08 Tom Tromey <tromey@adacore.com>
12843
12844 * windows-nat.c (struct windows_thread_info): Remove.
12845 * nat/windows-nat.h: New file.
12846
12847 2020-04-08 Tom Tromey <tromey@adacore.com>
12848
12849 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12850 (thread_rec, windows_add_thread, windows_delete_thread)
12851 (windows_continue): Update.
12852
12853 2020-04-08 Tom Tromey <tromey@adacore.com>
12854
12855 * windows-nat.c (struct windows_thread_info): Remove typedef.
12856 (thread_head): Remove.
12857 (thread_list): New global.
12858 (thread_rec, windows_add_thread, windows_init_thread_list)
12859 (windows_delete_thread, windows_continue): Update.
12860
12861 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12862
12863 * windows-tdep.h (windows_init_abi): Add comment.
12864 (cygwin_init_abi): New declaration.
12865 * windows-tdep.c: Split signal enumeration in two, one for
12866 Windows and one for Cygwin.
12867 (windows_gdb_signal_to_target): Only deal with signal of the
12868 Windows OS ABI.
12869 (cygwin_gdb_signal_to_target): New function.
12870 (windows_init_abi): Rename to windows_init_abi_common, don't set
12871 gdb_signal_to_target gdbarch method. Add new new function with
12872 this name.
12873 (cygwin_init_abi): New function.
12874 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12875 comment. Don't call windows_init_abi.
12876 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12877 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12878 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12879 i386_windows_init_abi_common, don't call windows_init_abi. Add
12880 a new function of this name.
12881 (i386_cygwin_init_abi): New function.
12882 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12883 OS ABI Cygwin.
12884
12885 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12886
12887 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12888 parameter.c.
12889 (dwarf2_read_gdb_index): Update.
12890
12891 2020-04-07 Kamil Rytarowski <n54@gmx.com>
12892
12893 * nbsd-tdep.c: Include "objfiles.h".
12894 (nbsd_skip_solib_resolver): New.
12895 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12896
12897 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12898
12899 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12900 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12901 with DW_LLE_base_addressx are being emitted in DWARFv5.
12902 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12903 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12904 unsigned integer.
12905
12906 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12907
12908 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12909 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12910 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12911 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12912 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12913 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12914 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12915
12916
12917 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12918
12919 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12920 (read_loclist_index): New function definition.
12921 (lookup_loclist_base): New function definition.
12922 (read_loclist_header): New function definition.
12923 (dwarf2_cu): Add loclist_base and loclist_header field.
12924 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12925 (read_full_die_1): Read the value of DW_AT_loclists_base.
12926 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12927 (read_attribute_value): Handle DW_FORM_loclistx.
12928 (skip_one_die): Handle DW_FORM_loclistx.
12929 (loclist_header): New structure declaration.
12930 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12931
12932 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12933
12934 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12935 constructor. Remove `addr` parameter from other constructor and
12936 add `per_cu` parameter.
12937 * dwarf2/read.c (create_partial_symtab): Update.
12938
12939 2020-04-07 Tom de Vries <tdevries@suse.de>
12940
12941 PR symtab/25796
12942 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12943 (partial_die_info::fixup): Inherit has_const_value.
12944
12945 2020-04-07 Tom de Vries <tdevries@suse.de>
12946
12947 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12948 symbols without address.
12949
12950 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12951
12952 * nbsd-nat.h (struct thread_info): Add forward declaration.
12953 (nbsd_nat_target::thread_alive): Add.
12954 (nbsd_nat_target::thread_name): Likewise.
12955 (nbsd_nat_target::update_thread_list): Likewise.
12956 (update_thread_list::post_attach): Likewise.
12957 (post_attach::pid_to_str): Likewise.
12958 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12959 (nbsd_thread_lister): Add.
12960 (nbsd_nat_target::thread_alive): Likewise.
12961 (nbsd_nat_target::thread_name): Likewise.
12962 (nbsd_add_threads): Likewise.
12963 (update_thread_list::post_attach): Likewise.
12964 (nbsd_nat_target::update_thread_list): Likewise.
12965 (post_attach::pid_to_str): Likewise.
12966
12967 2020-04-06 Tom Tromey <tromey@adacore.com>
12968
12969 * ada-valprint.c (print_variant_part): Extract the variant field.
12970 (print_field_values): Use the field as the outer value when
12971 recursing.
12972
12973 2020-04-06 Tom Tromey <tromey@adacore.com>
12974
12975 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12976 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12977 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12978 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12979 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12980
12981 2020-04-06 Tom Tromey <tromey@adacore.com>
12982
12983 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12984 TYPE_CODE_ERROR.
12985
12986 2020-04-06 Kamil Rytarowski <n54@gmx.com>
12987
12988 * nbsd-tdep.c: Include "gdbarch.h".
12989 Define enum with NetBSD signal numbers.
12990 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12991 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12992 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12993 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12994 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12995 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12996 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12997 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12998 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12999 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13000 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13001 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13002
13003 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
13004
13005 PR gdb/25325
13006 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13007
13008 2020-04-03 Tom Tromey <tromey@adacore.com>
13009
13010 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13011 Read constant block.
13012
13013 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13014
13015 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13016 (gdb_bfd_get_full_section_contents): New declaration.
13017 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13018 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13019 gdb_bfd_get_full_section_contents.
13020
13021 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13022
13023 * exec.c (build_section_table): Replace internal_error with
13024 gdb_assert.
13025 (section_table_xfer_memory_partial): Likewise.
13026 * mdebugread.c (parse_partial_symbols): Likewise.
13027 * psymtab.c (lookup_partial_symbol): Likewise.
13028 * utils.c (wrap_here): Likewise.
13029
13030 2020-04-02 Tom Tromey <tromey@adacore.com>
13031
13032 * f-lang.c (build_fortran_types): Use arch_type to initialize
13033 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13034
13035 2020-04-02 Tom Tromey <tromey@adacore.com>
13036
13037 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13038 of attributes.
13039
13040 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13041 Bernd Edlinger <bernd.edlinger@hotmail.de>
13042 Tom Tromey <tromey@adacore.com>
13043
13044 * buildsym.c (buildsym_compunit::record_line): Remove
13045 deduplication code.
13046
13047 2020-04-02 Tom de Vries <tdevries@suse.de>
13048
13049 PR ada/24671
13050 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13051
13052 2020-04-02 Tom de Vries <tdevries@suse.de>
13053
13054 * dwarf2/read.c (dwarf2_gdb_index_functions,
13055 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13056 NULL.
13057 * psymtab.c (psym_lookup_global_symbol_language): New function.
13058 (psym_functions): Init psym_lookup_global_symbol_language with
13059 psym_lookup_global_symbol_language.
13060 * symfile-debug.c (debug_sym_quick_functions): Init
13061 lookup_global_symbol_language with NULL.
13062 * symfile.c (set_initial_language): Remove fixme comment.
13063 * symfile.h (struct quick_symbol_functions): Add
13064 lookup_global_symbol_language.
13065 * symtab.c (find_quick_global_symbol_language): New function.
13066 (find_main_name): Use find_quick_global_symbol_language.
13067
13068 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13069
13070 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13071
13072 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13073
13074 * buildsym.c (record_line): Fix undefined behavior and preserve
13075 lines at eof.
13076
13077 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13078
13079 * buildsym.c (record_line): Fix the resizing condition.
13080
13081 2020-04-01 Tom Tromey <tom@tromey.com>
13082
13083 * value.h (value_literal_complex): Add comment.
13084 * valops.c (value_literal_complex): Refer to value.h.
13085
13086 2020-04-01 Tom Tromey <tom@tromey.com>
13087
13088 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13089 (scalar_type): New rule, from typebase.
13090 (typebase): Use scalar_type. Recognize complex types.
13091 (field_name): Handle FLOAT_KEYWORD.
13092 (ident_tokens): Add _Complex and __complex__.
13093
13094 2020-04-01 Tom Tromey <tom@tromey.com>
13095
13096 PR exp/25299:
13097 * valarith.c (promotion_type, complex_binop): New functions.
13098 (scalar_binop): Handle complex numbers. Use promotion_type.
13099 (value_pos, value_neg, value_complement): Handle complex numbers.
13100
13101 2020-04-01 Tom Tromey <tom@tromey.com>
13102
13103 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13104 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13105 (parse_number): Handle complex numbers.
13106
13107 2020-04-01 Tom Tromey <tom@tromey.com>
13108
13109 * c-valprint.c (c_decorations): Change complex suffix to "i".
13110
13111 2020-04-01 Tom Tromey <tom@tromey.com>
13112
13113 * valprint.c (generic_value_print_complex): Use accessors.
13114 * value.h (value_real_part, value_imaginary_part): Declare.
13115 * valops.c (value_real_part, value_imaginary_part): New
13116 functions.
13117 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13118
13119 2020-04-01 Tom Tromey <tom@tromey.com>
13120
13121 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13122 (read_range_type): Update.
13123 * mdebugread.c (basic_type): Update.
13124 * go-lang.c (build_go_types): Use init_complex_type.
13125 * gdbtypes.h (struct main_type) <complex_type>: New member.
13126 (init_complex_type): Update.
13127 (arch_complex_type): Don't declare.
13128 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13129 Make name if none given. Use alloc_type_copy. Look for cached
13130 complex type.
13131 (arch_complex_type): Remove.
13132 (gdbtypes_post_init): Use init_complex_type.
13133 * f-lang.c (build_fortran_types): Use init_complex_type.
13134 * dwarf2/read.c (read_base_type): Update.
13135 * d-lang.c (build_d_types): Use init_complex_type.
13136 * ctfread.c (read_base_type): Update.
13137
13138 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13139
13140 * infrun.c (stop_all_threads): Update assertion, plus when
13141 stopping threads, take into account that we might be trying
13142 to stop an all-stop target.
13143 (stop_waiting): Call 'stop_all_threads' if there exists a
13144 non-stop target.
13145
13146 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13147
13148 * target.h (exists_non_stop_target): New function declaration.
13149 * target.c (exists_non_stop_target): New function.
13150
13151 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13152
13153 PR gdb/24789
13154 * eval.c (is_integral_or_integral_reference): New function.
13155 (evaluate_subexp_standard): Allow integer references in
13156 pointer arithmetic.
13157
13158 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13159
13160 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13161 check for no ptid in the stop reply when the target is non-stop.
13162
13163 2020-04-01 Tom Tromey <tromey@adacore.com>
13164
13165 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13166 "name" parameter to rvalue reference. Initialize m_name_holder.
13167 <lookup_name_info>: New overloads.
13168 <name>: Return gdb::string_view.
13169 <c_str>: New method.
13170 <make_ignore_params>: Update.
13171 <search_name_hash>: Update.
13172 <language_lookup_name>: Return const char *.
13173 <m_name>: Change type.
13174 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13175 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13176 (lookup_name_info::match_any): Update.
13177 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13178 Update.
13179 * minsyms.c (linkage_name_str): Update.
13180 * language.c (default_symbol_name_matcher): Update.
13181 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13182 Update.
13183 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13184 (ada_lookup_name_info::ada_lookup_name_info): Update.
13185 (literal_symbol_name_matcher): Update.
13186
13187 2020-04-01 Tom Tromey <tromey@adacore.com>
13188
13189 * psymtab.c (psymtab_search_name): Remove function.
13190 (psym_lookup_symbol): Create search name and lookup name here.
13191 (lookup_partial_symbol): Remove "name" parameter; add
13192 lookup_name.
13193 (psym_expand_symtabs_for_function): Update.
13194
13195 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13196
13197 PR tui/25597:
13198 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13199
13200 2020-03-31 Tom Tromey <tromey@adacore.com>
13201
13202 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13203 memcpy.
13204
13205 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13206
13207 * features/riscv/32bit-csr.xml: Regenerated.
13208 * features/riscv/64bit-csr.xml: Regenerated.
13209
13210 2020-03-30 Tom Tromey <tromey@adacore.com>
13211
13212 * ada-valprint.c (print_variant_part): Update.
13213 * ada-lang.h (ada_which_variant_applies): Update.
13214 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13215 outer_valaddr parameters; replace with "outer" value parameter.
13216 (to_fixed_variant_branch_type): Update.
13217
13218 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13219
13220 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13221 <list>. Remove inclusion of observable.h.
13222 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13223 (struct arch_lwp_info): New struct.
13224 (class ppc_linux_dreg_interface): New class.
13225 (struct ppc_linux_process_info): New struct.
13226 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13227 <low_new_clone, low_forget_process, low_prepare_to_resume>
13228 <copy_thread_dreg_state, mark_thread_stale>
13229 <mark_debug_registers_changed, register_hw_breakpoint>
13230 <clear_hw_breakpoint, register_wp, clear_wp>
13231 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13232 <num_memory_accesses, get_trigger_type>
13233 <create_watchpoint_request, hwdebug_point_cmp>
13234 <init_arch_lwp_info, get_arch_lwp_info>
13235 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13236 methods.
13237 <struct ptid_hash>: New inner struct.
13238 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13239 members.
13240 (saved_dabr_value, hwdebug_info, max_slots_number)
13241 (struct hw_break_tuple, struct thread_points, ppc_threads)
13242 (have_ptrace_hwdebug_interface)
13243 (hwdebug_find_thread_points_by_tid)
13244 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13245 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13246 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13247 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13248 use m_dreg_interface.
13249 (hwdebug_point_cmp): Change to...
13250 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13251 reference arguments instead of pointers.
13252 (ppc_linux_nat_target::ranged_break_num_registers): Use
13253 m_dreg_interface.
13254 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13255 m_dreg_interface. Call register_hw_breakpoint.
13256 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13257 m_dreg_interface. Call clear_hw_breakpoint.
13258 (get_trigger_type): Change to...
13259 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13260 comment.
13261 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13262 use m_dreg_interface. Call register_hw_breakpoint.
13263 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13264 use m_dreg_interface. Call clear_hw_breakpoint.
13265 (can_use_watchpoint_cond_accel): Change to...
13266 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13267 method. Update comment, use m_dreg_interface and
13268 m_process_info.
13269 (calculate_dvc): Change to...
13270 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13271 m_dreg_interface.
13272 (num_memory_accesses): Change to...
13273 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13274 (check_condition): Change to...
13275 (ppc_linux_nat_target::check_condition): ...this method.
13276 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13277 comment, use m_dreg_interface.
13278 (create_watchpoint_request): Change to...
13279 (ppc_linux_nat_target::create_watchpoint_request): ...this
13280 method. Use m_dreg_interface.
13281 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13282 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13283 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13284 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13285 (ppc_linux_nat_target::low_forget_process)
13286 (ppc_linux_nat_target::low_new_fork)
13287 (ppc_linux_nat_target::low_new_clone)
13288 (ppc_linux_nat_target::low_delete_thread)
13289 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13290 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13291 only call mark_thread_stale.
13292 (ppc_linux_thread_exit): Remove.
13293 (ppc_linux_nat_target::stopped_data_address): Change to...
13294 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13295 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13296 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13297 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13298 comment. Call low_stopped_data_address.
13299 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13300 m_dreg_interface.
13301 (ppc_linux_nat_target::masked_watch_num_registers): Use
13302 m_dreg_interface.
13303 (ppc_linux_nat_target::copy_thread_dreg_state)
13304 (ppc_linux_nat_target::mark_thread_stale)
13305 (ppc_linux_nat_target::mark_debug_registers_changed)
13306 (ppc_linux_nat_target::register_hw_breakpoint)
13307 (ppc_linux_nat_target::clear_hw_breakpoint)
13308 (ppc_linux_nat_target::register_wp)
13309 (ppc_linux_nat_target::clear_wp)
13310 (ppc_linux_nat_target::init_arch_lwp_info)
13311 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13312 (_initialize_ppc_linux_nat): Remove observer callback.
13313
13314 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13315
13316 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13317 (ppc_linux_nat_target::auxv_parse)
13318 (ppc_linux_nat_target::read_description)
13319 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13320 Move up.
13321
13322 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13323
13324 * linux-nat.h (low_new_clone): New method.
13325 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13326
13327 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13328
13329 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13330 (dbx_expand_psymtab): ... this.
13331 (start_psymtab): Update.
13332 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13333 (mdebug_expand_psymtab): ... this.
13334 (parse_partial_symbols): Update.
13335 (new_psymtab): Update.
13336 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13337 (xcoff_expand_psymtab): ... this.
13338 (xcoff_start_psymtab): Update.
13339
13340 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13341
13342 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13343 <expand_dependencies>: ... this.
13344 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13345 (partial_symtab::expand_dependencies): ... this.
13346 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13347 Update.
13348 (dwarf2_psymtab::expand_psymtab): Update.
13349 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13350 * mdebugread.c (psymtab_to_symtab_1): Update.
13351 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13352
13353 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13354
13355 * psympriv.h (discard_psymtab): Remove.
13356 * dbxread.c (dbx_end_psymtab): Update.
13357 * xcoffread.c (xcoff_end_psymtab): Update.
13358
13359 2020-03-28 Tom Tromey <tom@tromey.com>
13360
13361 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13362 comment.
13363
13364 2020-03-28 Tom Tromey <tom@tromey.com>
13365
13366 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13367
13368 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13369
13370 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13371
13372 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13373
13374 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13375
13376 2020-03-26 Tom Tromey <tom@tromey.com>
13377
13378 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13379 (mark_common_block_symbol_computed, read_tag_string_type)
13380 (attr_to_dynamic_prop, read_subrange_type): Update.
13381 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13382 to be methods on struct attribute.
13383 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13384 (read_call_site_scope, partial_die_info::read)
13385 (partial_die_info::read, lookup_die_type, follow_die_ref):
13386 Update.
13387 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13388 from dwarf2_get_ref_die_offset.
13389 (attribute::constant_value): New method, from
13390 dwarf2_get_attr_constant_value.
13391 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13392 Declare method.
13393 <constant_value>: New method.
13394
13395 2020-03-26 Tom Tromey <tom@tromey.com>
13396
13397 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13398 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13399 (dwarf_type_encoding_name): Move to stringify.c.
13400 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13401 * dwarf2/stringify.c: New file.
13402 * dwarf2/stringify.h: New file.
13403
13404 2020-03-26 Tom Tromey <tom@tromey.com>
13405
13406 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13407 Rewrite.
13408
13409 2020-03-26 Tom Tromey <tom@tromey.com>
13410
13411 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13412 methods.
13413 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13414 (lookup_ranges_base): Likewise.
13415 (read_cutu_die_from_dwo, read_full_die_1): Update.
13416
13417 2020-03-26 Tom Tromey <tom@tromey.com>
13418
13419 * dwarf2/read.c (read_import_statement, read_file_scope)
13420 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13421 (read_lexical_block_scope, read_call_site_scope)
13422 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13423 (handle_struct_member_die, process_structure_scope)
13424 (update_enumeration_type_from_children)
13425 (process_enumeration_scope, read_array_type, read_common_block)
13426 (read_namespace, read_module, read_subroutine_type): Update.
13427 (sibling_die): Remove.
13428
13429 2020-03-26 Tom Tromey <tom@tromey.com>
13430
13431 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13432 (build_type_psymtabs_reader, read_structure_type)
13433 (read_enumeration_type, read_full_die_1): Update.
13434 (dwarf2_attr_no_follow): Move to die.h.
13435 * dwarf2/die.h (struct die_info) <attr>: New method.
13436
13437 2020-03-26 Tom Tromey <tom@tromey.com>
13438
13439 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13440 <base_address>: Now an optional.
13441 (dwarf2_find_base_address, dwarf2_rnglists_process)
13442 (dwarf2_ranges_process, fill_in_loclist_baton)
13443 (dwarf2_symbol_mark_computed): Update.
13444
13445 2020-03-26 Tom Tromey <tom@tromey.com>
13446
13447 * dwarf2/read.c (struct die_info): Move to die.h.
13448 * dwarf2/die.h: New file.
13449
13450 2020-03-26 Tom Tromey <tom@tromey.com>
13451
13452 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13453 * dwarf2/read.c
13454 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13455 Move to line-header.c.
13456 (read_checked_initial_length_and_offset, read_formatted_entries):
13457 Likewise.
13458 (dwarf_decode_line_header): Split into two.
13459 * dwarf2/line-header.c
13460 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13461 Move from read.c.
13462 (read_checked_initial_length_and_offset, read_formatted_entries):
13463 Likewise.
13464 (dwarf_decode_line_header): New function, split from read.c.
13465
13466 2020-03-26 Tom Tromey <tom@tromey.com>
13467
13468 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13469 Declare method.
13470 * dwarf2/read.c (read_attribute_value): Update.
13471 (dwarf2_per_objfile::read_line_string): Rename from
13472 read_indirect_line_string.
13473 (read_formatted_entries): Update.
13474
13475 2020-03-26 Tom Tromey <tom@tromey.com>
13476
13477 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13478 variable.
13479
13480 2020-03-26 Tom Tromey <tom@tromey.com>
13481
13482 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13483 const.
13484 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13485 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13486 parameter const.
13487
13488 2020-03-26 Tom Tromey <tom@tromey.com>
13489
13490 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13491 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13492 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13493 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13494
13495 2020-03-26 Tom Tromey <tom@tromey.com>
13496
13497 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13498 file_names_size, file_full_name, file_file_name>: Use const.
13499 <file_name_at, file_names>: Add const overload.
13500 * dwarf2/line-header.c (line_header::file_file_name)
13501 (line_header::file_full_name): Update.
13502
13503 2020-03-26 Tom Tromey <tom@tromey.com>
13504
13505 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13506 (macro_start_file, consume_improper_spaces)
13507 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13508 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13509 (dwarf_decode_macros): Move to macro.c.
13510 * dwarf2/macro.c: New file.
13511 * dwarf2/macro.h: New file.
13512 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13513
13514 2020-03-26 Tom Tromey <tom@tromey.com>
13515
13516 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13517 method.
13518 * dwarf2/section.c: New method. From
13519 read_indirect_string_at_offset_from.
13520 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13521 (read_indirect_string_at_offset_from): Move to section.c.
13522 (read_indirect_string_at_offset): Rewrite.
13523 (read_indirect_line_string_at_offset): Remove.
13524 (read_indirect_string, read_indirect_line_string)
13525 (dwarf_decode_macro_bytes): Update.
13526
13527 2020-03-26 Tom Tromey <tom@tromey.com>
13528
13529 * dwarf2/section.h (struct dwarf2_section_info)
13530 <overload_complaint>: Declare.
13531 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13532 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13533 Rename from dwarf2_section_buffer_overflow_complaint.
13534 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13535 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13536
13537 2020-03-26 Tom Tromey <tom@tromey.com>
13538
13539 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13540 Declare.
13541 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13542 Move from read.c.
13543 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13544 to section.c.
13545
13546 2020-03-26 Tom Tromey <tom@tromey.com>
13547
13548 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13549
13550 2020-03-26 Tom Tromey <tom@tromey.com>
13551
13552 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13553 "builder".
13554 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13555 parameter.
13556 (dwarf_decode_macros): Update.
13557
13558 2020-03-26 Tom Tromey <tom@tromey.com>
13559
13560 * dwarf2/read.c (read_attribute_value): Update.
13561 (read_indirect_string_from_dwz): Move to dwz.c; change into
13562 method.
13563 (dwarf_decode_macro_bytes): Update.
13564 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13565 * dwarf2/dwz.c: New file.
13566 * Makefile.in (COMMON_SFILES): Add dwz.c.
13567
13568 2020-03-26 Tom Tromey <tom@tromey.com>
13569
13570 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13571 * dwarf2/read.c: Add include.
13572 * dwarf2/index-write.c: Add include.
13573 * dwarf2/index-cache.c: Add include.
13574 * dwarf2/dwz.h: New file.
13575
13576 2020-03-25 Tom Tromey <tom@tromey.com>
13577
13578 * compile/compile-object-load.c (get_out_value_type): Mention
13579 correct symbol name in error message.
13580
13581 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13582
13583 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13584
13585 2020-03-25 Tom de Vries <tdevries@suse.de>
13586
13587 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13588 * symmisc.c (dump_symtab_1): Print user and includes fields.
13589 (maintenance_info_symtabs): Same.
13590
13591 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13592
13593 PR gdb/25534
13594 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13595 (riscv_regcache_cooked_write): New function.
13596 (riscv_push_dummy_call): Use new function.
13597 (riscv_return_value): Likewise.
13598
13599 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13600
13601 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13602 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13603 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13604 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13605 * infrun.c (follow_fork): Likewise.
13606 (follow_fork_inferior): Likewise.
13607 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13608 * linux-nat.h (class linux_nat_target): Likewise.
13609 * remote.c (class remote_target) <follow_fork>: Likewise.
13610 (remote_target::follow_fork): Likewise.
13611 * target-delegates.c: Re-generate.
13612 * target.c (default_follow_fork): Likewise.
13613 (target_follow_fork): Likewise.
13614 * target.h (struct target_ops) <follow_fork>: Likewise.
13615 (target_follow_fork): Likewise.
13616
13617 2020-03-24 Tom de Vries <tdevries@suse.de>
13618
13619 * psymtab.c (maintenance_info_psymtabs): Print user field.
13620
13621 2020-03-20 Tom Tromey <tromey@adacore.com>
13622
13623 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13624 const.
13625 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13626 const.
13627
13628 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13629
13630 * ptrace.m4: Don't check for ptrace declaration.
13631 * config.in: Re-generate.
13632 * configure: Re-generate.
13633 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13634 not defined.
13635
13636 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13637
13638 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13639 `PTRACE_TYPE_RET'.
13640 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13641 * sparc-nat.c (gdb_ptrace): Likewise.
13642 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13643
13644 2020-03-20 Tom Tromey <tromey@adacore.com>
13645
13646 * c-exp.y (lex_one_token): Fix assert.
13647
13648 2020-03-20 Tom Tromey <tromey@adacore.com>
13649
13650 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13651 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13652 strncpy call.
13653
13654 2020-03-20 Tom Tromey <tromey@adacore.com>
13655
13656 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13657
13658 2020-03-20 Tom Tromey <tromey@adacore.com>
13659
13660 * ada-valprint.c (print_variant_part): Remove parameters; switch
13661 to value-based API.
13662 (print_field_values): Likewise.
13663 (ada_val_print_struct_union): Likewise.
13664 (ada_value_print_1): Update.
13665
13666 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13667
13668 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13669 nbsd_nat_target instead of inf_ptrace_target.
13670 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13671 nbsd_nat_target.
13672
13673 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13674
13675 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13676 it to the ptrace call.
13677 * (store_registers): Likewise.
13678
13679 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13680
13681 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13682 it to the ptrace call.
13683 * (store_registers): Likewise.
13684
13685 2020-03-19 Luis Machado <luis.machado@linaro.org>
13686
13687 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13688 valid, fetch vg value from ptrace.
13689
13690 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13691 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13692 * inf-ptrace.c: Likewise.
13693 * (gdb_ptrace): Add.
13694 * (inf_ptrace_target::resume): Update.
13695 * (inf_ptrace_target::xfer_partial): Likewise.
13696 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13697 * (inf_ptrace_peek_poke): Update.
13698
13699 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13700
13701 * x86-bsd-nat.c (gdb_ptrace): New.
13702 * (x86bsd_dr_set): Add new argument `ptid'.
13703 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13704 x86bsd_dr_set_addr): Update.
13705
13706 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13707
13708 * remote.c (remote_target::process_stop_reply): Handle events for
13709 all threads differently.
13710
13711 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13712
13713 * completer.c (completion_tracker::remove_completion): Define new
13714 function.
13715 * completer.h (completion_tracker::remove_completion): Declare new
13716 function.
13717 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13718 when adding a C++ function symbol.
13719
13720 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13721
13722 * completer.c (completion_tracker::completion_hash_entry): Define
13723 new class.
13724 (advance_to_filename_complete_word_point): Call
13725 recompute_lowest_common_denominator.
13726 (completion_tracker::completion_tracker): Call discard_completions
13727 to setup the hash table.
13728 (completion_tracker::discard_completions): Allow for being called
13729 from the constructor, pass new equal function, and element deleter
13730 when constructing the hash table. Initialise new class member
13731 variables.
13732 (completion_tracker::maybe_add_completion): Remove use of
13733 m_entries_vec, and store more information into m_entries_hash.
13734 (completion_tracker::recompute_lcd_visitor): New function, most
13735 content taken from...
13736 (completion_tracker::recompute_lowest_common_denominator):
13737 ...here, this now just visits each item in the hash calling the
13738 above visitor.
13739 (completion_tracker::build_completion_result): Remove use of
13740 m_entries_vec, call recompute_lowest_common_denominator.
13741 * completer.h (completion_tracker::have_completions): Remove use
13742 of m_entries_vec.
13743 (completion_tracker::completion_hash_entry): Declare new class.
13744 (completion_tracker::recompute_lowest_common_denominator): Change
13745 function signature.
13746 (completion_tracker::recompute_lcd_visitor): Declare new function.
13747 (completion_tracker::m_entries_vec): Delete.
13748 (completion_tracker::m_entries_hash): Initialize to NULL.
13749 (completion_tracker::m_lowest_common_denominator_valid): New
13750 member variable.
13751 (completion_tracker::m_lowest_common_denominator_max_length): New
13752 member variable.
13753
13754 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13755
13756 * regformats/regdef.h: Put reg in gdb namespace.
13757
13758 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13759
13760 * i386-bsd-nat.c (gdb_ptrace): New.
13761 * (i386bsd_fetch_inferior_registers,
13762 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13763 * (i386bsd_fetch_inferior_registers,
13764 i386bsd_store_inferior_registers) Use gdb_ptrace.
13765
13766 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13767
13768 * amd64-bsd-nat.c (gdb_ptrace): New.
13769 * (amd64bsd_fetch_inferior_registers,
13770 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13771 * (amd64bsd_fetch_inferior_registers,
13772 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13773
13774 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13775
13776 * user-regs.c (user_reg::read): Rename to...
13777 (user_reg::xread): ...this.
13778 * (append_user_reg): Rename argument `read' to `xread'.
13779 * (user_reg_add_builtin): Likewise.
13780 * (user_reg_add): Likewise.
13781 * (value_of_user_reg): Likewise.
13782
13783 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13784
13785 * sparc-nat.c (gdb_ptrace): New.
13786 * sparc-nat.c (sparc_fetch_inferior_registers)
13787 (sparc_store_inferior_registers) Remove obsolete comment.
13788 * sparc-nat.c (sparc_fetch_inferior_registers)
13789 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13790 * sparc-nat.c (sparc_fetch_inferior_registers)
13791 (sparc_store_inferior_registers) Use gdb_ptrace.
13792
13793 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13794
13795 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13796 it to the ptrace call.
13797 * sh-nbsd-nat.c (store_registers): Likewise.
13798
13799 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13800
13801 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13802 nbsd_nat_target instead of inf_ptrace_target.
13803 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13804 nbsd_nat_target.
13805
13806 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13807
13808 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13809
13810 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13811
13812 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13813 <sys/sysctl.h>.
13814 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13815
13816 2020-03-17 Tom de Vries <tdevries@suse.de>
13817
13818 PR gdb/23710
13819 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13820 fields.
13821 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13822 fields.
13823 (process_imported_unit_die): Skip import of c++ CUs.
13824
13825 2020-03-16 Tom Tromey <tom@tromey.com>
13826
13827 * p-valprint.c (pascal_object_print_value): Initialize
13828 base_value.
13829
13830 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13831 Shahab Vahedi <shahab@synopsys.com>
13832
13833 * Makefile.in: Add arch/arc.o
13834 * configure.tgt: Likewise.
13835 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13836 (_initialize_arc_tdep): Don't initialize old target descriptions.
13837 (arc_read_description): New function to cache target descriptions.
13838 * arc-tdep.h (arc_read_description): Add proto type.
13839 * arch/arc.c: New file.
13840 * arch/arc.h: Likewise.
13841 * features/Makefile: Replace old target descriptions with new.
13842 * features/arc-arcompact.c: Remove.
13843 * features/arc-arcompact.xml: Likewise.
13844 * features/arc-v2.c: Likewise
13845 * features/arc-v2.xml: Likewise
13846 * features/arc/aux-arcompact.xml: New file.
13847 * features/arc/aux-v2.xml: Likewise.
13848 * features/arc/core-arcompact.xml: Likewise.
13849 * features/arc/core-v2.xml: Likewise.
13850 * features/arc/aux-arcompact.c: Generate.
13851 * features/arc/aux-v2.c: Likewise.
13852 * features/arc/core-arcompact.c: Likewise.
13853 * features/arc/core-v2.c: Likewise.
13854 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13855
13856 2020-03-16 Tom Tromey <tromey@adacore.com>
13857
13858 PR gdb/25663:
13859 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13860 putting value into bcache.
13861
13862 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13863
13864 PR gdb/21500
13865 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13866 to...
13867 (amd64_windows_init_abi_common): ... this. Don't set size of
13868 long type.
13869 (amd64_windows_init_abi): New function.
13870 (amd64_cygwin_init_abi): New function.
13871 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13872 the Cygwin OS ABI.
13873 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13874 comment.
13875
13876 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13877
13878 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13879 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13880 (pe_import_directory_entry): New struct type.
13881 (is_linked_with_cygwin_dll): New function.
13882 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13883 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13884 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13885
13886 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13887
13888 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13889 i386_cygwin_core_osabi_sniffer.
13890
13891 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13892
13893 * i386-cygwin-tdep.c: Rename to...
13894 * i386-windows-tdep.c: ... this.
13895 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13896 i386-windows-tdep.c.
13897 * configure.tgt: Likewise.
13898
13899 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13900
13901 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13902 * osabi.c (gdb_osabi_names): Add "Windows".
13903 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13904 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13905 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13906 i386_cygwin_osabi_sniffer.
13907 (_initialize_i386_cygwin_tdep): Register OS ABI
13908 GDB_OSABI_WINDOWS for i386.
13909 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13910 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13911 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13912 for x86-64.
13913 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13914 when the target matches '*-*-mingw*'.
13915
13916 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13917
13918 * defs.h (enum gdb_osabi): Move to...
13919 * osabi.h (enum gdb_osabi): ... here.
13920 * gdbarch.sh: Include osabi.h in gdbarch.h.
13921 * gdbarch.h: Re-generate.
13922
13923 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
13924
13925 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13926 function.
13927 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13928
13929 2020-03-14 Tom Tromey <tom@tromey.com>
13930
13931 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13932 for C++.
13933 (c_type_print_modifier): Likewise. Add "language" parameter.
13934 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13935 (c_type_print_base_1): Update.
13936 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13937 constants.
13938 * type-stack.c (type_stack::insert): Handle tp_atomic and
13939 tp_restrict.
13940 (type_stack::follow_type_instance_flags): Likewise.
13941 (type_stack::follow_types): Likewise. Merge type-following code.
13942 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13943 (space_identifier, cv_with_space_id)
13944 (const_or_volatile_or_space_identifier_noopt)
13945 (const_or_volatile_or_space_identifier): Remove.
13946 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13947 rules.
13948 (ptr_operator, typebase): Update.
13949 (enum token_flag) <FLAG_C>: New constant.
13950 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13951 "_Atomic".
13952 (lex_one_token): Handle FLAG_C.
13953
13954 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13955
13956 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13957 it to the ptrace call.
13958 * m68k-bsd-nat.c (store_registers): Likewise.
13959
13960 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13961
13962 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13963 gdb_byte *.
13964 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13965 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13966 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13967
13968 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13969
13970 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13971 nbsd_nat_target instead of inf_ptrace_target.
13972 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13973 nbsd_nat_target.
13974
13975 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13976
13977 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13978 register_t.
13979
13980 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13981
13982 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13983 it to the ptrace call.
13984 * alpha-bsd-nat.c (store_registers): Likewise.
13985
13986 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13987
13988 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13989 includes.
13990 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13991 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13992 fill_fpregset): Likewise.
13993
13994 2020-03-14 Kamil Rytarowski <n54@gmx.com>
13995
13996 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13997 nbsd_nat_target instead of inf_ptrace_target.
13998 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13999 nbsd_nat_target.
14000
14001 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14002
14003 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14004 register_t.
14005
14006 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14007
14008 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14009 it to the ptrace call.
14010 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14011 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14012 * arm-nbsd-nat.c (store_register): Likewise.
14013 * arm-nbsd-nat.c (store_regs): Likewise.
14014 * arm-nbsd-nat.c (store_fp_register): Likewise.
14015 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14016
14017 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14018
14019 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14020 nbsd_nat_target instead of inf_ptrace_target.
14021 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14022 nbsd_nat_target.
14023
14024 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14025
14026 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14027 it to the ptrace call.
14028 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14029
14030 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14031
14032 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14033 it to the ptrace call.
14034 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14035
14036 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14037
14038 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14039 gdb_byte *.
14040 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14041
14042 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14043
14044 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14045 instead of inf_ptrace_target.
14046 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14047 nbsd_nat_target.
14048
14049 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14050
14051 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14052 register_t.
14053
14054 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14055
14056 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14057 register_t.
14058
14059 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14060
14061 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14062 register_t.
14063
14064 2020-03-13 Tom Tromey <tom@tromey.com>
14065
14066 * value.h (val_print): Don't declare.
14067 * valprint.h (val_print_array_elements)
14068 (val_print_scalar_formatted, generic_val_print): Don't declare.
14069 * valprint.c (generic_val_print_array): Take a struct value.
14070 (generic_val_print_ptr, generic_val_print_memberptr)
14071 (generic_val_print_bool, generic_val_print_int)
14072 (generic_val_print_char, generic_val_print_complex)
14073 (generic_val_print): Remove.
14074 (generic_value_print): Update.
14075 (do_val_print): Remove unused parameters. Don't call
14076 la_val_print.
14077 (val_print): Remove.
14078 (common_val_print): Update. Don't call value_check_printable.
14079 (val_print_scalar_formatted, val_print_array_elements): Remove.
14080 * rust-lang.c (rust_val_print): Remove.
14081 (rust_language_defn): Update.
14082 * p-valprint.c (pascal_val_print): Remove.
14083 (pascal_value_print_inner): Update.
14084 (pascal_object_print_val_fields, pascal_object_print_val):
14085 Remove.
14086 (pascal_object_print_static_field): Update.
14087 * p-lang.h (pascal_val_print): Don't declare.
14088 * p-lang.c (pascal_language_defn): Update.
14089 * opencl-lang.c (opencl_language_defn): Update.
14090 * objc-lang.c (objc_language_defn): Update.
14091 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14092 * m2-lang.h (m2_val_print): Don't declare.
14093 * m2-lang.c (m2_language_defn): Update.
14094 * language.h (struct language_defn) <la_val_print>: Remove.
14095 * language.c (unk_lang_value_print_inner): Rename. Change
14096 argument types.
14097 (unknown_language_defn, auto_language_defn): Update.
14098 * go-valprint.c (go_val_print): Remove.
14099 * go-lang.h (go_val_print): Don't declare.
14100 * go-lang.c (go_language_defn): Update.
14101 * f-valprint.c (f_val_print): Remove.
14102 * f-lang.h (f_value_print): Don't declare.
14103 * f-lang.c (f_language_defn): Update.
14104 * d-valprint.c (d_val_print): Remove.
14105 * d-lang.h (d_value_print): Don't declare.
14106 * d-lang.c (d_language_defn): Update.
14107 * cp-valprint.c (cp_print_value_fields)
14108 (cp_print_value_fields_rtti, cp_print_value): Remove.
14109 (cp_print_static_field): Update.
14110 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14111 (c_val_print_struct, c_val_print_union, c_val_print_int)
14112 (c_val_print_memberptr, c_val_print): Remove.
14113 * c-lang.h (c_val_print_array, cp_print_value_fields)
14114 (cp_print_value_fields_rtti): Don't declare.
14115 * c-lang.c (c_language_defn, cplus_language_defn)
14116 (asm_language_defn, minimal_language_defn): Update.
14117 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14118 (ada_val_print_enum): Take a struct value.
14119 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14120 (ada_val_print): Remove.
14121 (ada_value_print_1): Update.
14122 (printable_val_type): Remove.
14123 * ada-lang.h (ada_val_print): Don't declare.
14124 * ada-lang.c (ada_language_defn): Update.
14125
14126 2020-03-13 Tom Tromey <tom@tromey.com>
14127
14128 * valprint.c (do_val_print): Update.
14129 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14130 a struct value.
14131 (value_to_value_object_no_release): Declare.
14132 * python/py-value.c (value_to_value_object_no_release): New
14133 function.
14134 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14135 struct value.
14136 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14137 function.
14138 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14139 a struct value.
14140 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14141 Declare.
14142 (gdbscm_apply_val_pretty_printer): Take a struct value.
14143 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14144 value.
14145 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14146 value.
14147 * extension-priv.h (struct extension_language_ops)
14148 <apply_val_pretty_printer>: Take a struct value.
14149 * cp-valprint.c (cp_print_value): Create a struct value.
14150 (cp_print_value): Update.
14151
14152 2020-03-13 Tom Tromey <tom@tromey.com>
14153
14154 * ada-valprint.c (print_field_values): Call common_val_print.
14155
14156 2020-03-13 Tom Tromey <tom@tromey.com>
14157
14158 * ada-valprint.c (val_print_packed_array_elements): Remove
14159 bitoffset and val parameters. Call common_val_print.
14160 (ada_val_print_string): Remove offset, address, and original_value
14161 parameters.
14162 (ada_val_print_array): Update.
14163 (ada_value_print_array): New function.
14164 (ada_value_print_1): Call it.
14165
14166 2020-03-13 Tom Tromey <tom@tromey.com>
14167
14168 * ada-valprint.c (ada_value_print): Use common_val_print.
14169
14170 2020-03-13 Tom Tromey <tom@tromey.com>
14171
14172 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14173
14174 2020-03-13 Tom Tromey <tom@tromey.com>
14175
14176 * ada-valprint.c (ada_value_print_num): New function.
14177 (ada_value_print_1): Use it.
14178
14179 2020-03-13 Tom Tromey <tom@tromey.com>
14180
14181 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14182
14183 2020-03-13 Tom Tromey <tom@tromey.com>
14184
14185 * ada-valprint.c (ada_value_print_ptr): New function.
14186 (ada_value_print_1): Use it.
14187
14188 2020-03-13 Tom Tromey <tom@tromey.com>
14189
14190 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14191 call common_val_print.
14192 (ada_val_print_1): Update.
14193 (ada_value_print_1): New function.
14194 (ada_value_print_inner): Rewrite.
14195
14196 2020-03-13 Tom Tromey <tom@tromey.com>
14197
14198 * cp-valprint.c (cp_print_value_fields): Update.
14199 (cp_print_value): New function.
14200
14201 2020-03-13 Tom Tromey <tom@tromey.com>
14202
14203 * m2-valprint.c (m2_value_print_inner): Use
14204 cp_print_value_fields.
14205 * cp-valprint.c (cp_print_value_fields): New function.
14206 * c-valprint.c (c_value_print_struct): New function.
14207 (c_value_print_inner): Use c_value_print_struct.
14208 * c-lang.h (cp_print_value_fields): Declare.
14209
14210 2020-03-13 Tom Tromey <tom@tromey.com>
14211
14212 * c-valprint.c (c_value_print_array): New function.
14213 (c_value_print_inner): Use it.
14214
14215 2020-03-13 Tom Tromey <tom@tromey.com>
14216
14217 * c-valprint.c (c_value_print_memberptr): New function.
14218 (c_value_print_inner): Use it.
14219
14220 2020-03-13 Tom Tromey <tom@tromey.com>
14221
14222 * c-valprint.c (c_value_print_int): New function.
14223 (c_value_print_inner): Use it.
14224
14225 2020-03-13 Tom Tromey <tom@tromey.com>
14226
14227 * c-valprint.c (c_value_print_ptr): New function.
14228 (c_value_print_inner): Use it.
14229
14230 2020-03-13 Tom Tromey <tom@tromey.com>
14231
14232 * c-valprint.c (c_value_print_inner): Rewrite.
14233
14234 2020-03-13 Tom Tromey <tom@tromey.com>
14235
14236 * valprint.c (generic_value_print_complex): New function.
14237 (generic_value_print): Use it.
14238
14239 2020-03-13 Tom Tromey <tom@tromey.com>
14240
14241 * valprint.c (generic_val_print_float): Don't call
14242 val_print_scalar_formatted.
14243 (generic_val_print, generic_value_print): Update.
14244
14245 2020-03-13 Tom Tromey <tom@tromey.com>
14246
14247 * valprint.c (generic_value_print_char): New function
14248 (generic_value_print): Use it.
14249
14250 2020-03-13 Tom Tromey <tom@tromey.com>
14251
14252 * valprint.c (generic_value_print_int): New function.
14253 (generic_value_print): Use it.
14254
14255 2020-03-13 Tom Tromey <tom@tromey.com>
14256
14257 * valprint.c (generic_value_print_bool): New function.
14258 (generic_value_print): Use it.
14259
14260 2020-03-13 Tom Tromey <tom@tromey.com>
14261
14262 * valprint.c (generic_val_print_func): Simplify.
14263 (generic_val_print, generic_value_print): Update.
14264
14265 2020-03-13 Tom Tromey <tom@tromey.com>
14266
14267 * valprint.c (generic_val_print_flags): Remove.
14268 (generic_val_print, generic_value_print): Update.
14269 (val_print_type_code_flags): Add original_value parameter.
14270
14271 2020-03-13 Tom Tromey <tom@tromey.com>
14272
14273 * valprint.c (generic_val_print): Update.
14274 (generic_value_print): Update.
14275 * valprint.c (generic_val_print_enum): Don't call
14276 val_print_scalar_formatted.
14277
14278 2020-03-13 Tom Tromey <tom@tromey.com>
14279
14280 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14281 * valprint.c (generic_value_print_ptr): New function.
14282
14283 2020-03-13 Tom Tromey <tom@tromey.com>
14284
14285 * valprint.c (generic_value_print): Rewrite.
14286
14287 2020-03-13 Tom Tromey <tom@tromey.com>
14288
14289 * p-valprint.c (pascal_object_print_value_fields)
14290 (pascal_object_print_value): New functions.
14291
14292 2020-03-13 Tom Tromey <tom@tromey.com>
14293
14294 * p-valprint.c (pascal_value_print_inner): Rewrite.
14295
14296 2020-03-13 Tom Tromey <tom@tromey.com>
14297
14298 * f-valprint.c (f_value_print_innner): Rewrite.
14299
14300 2020-03-13 Tom Tromey <tom@tromey.com>
14301
14302 * m2-valprint.c (m2_print_unbounded_array): New overload.
14303 (m2_print_unbounded_array): Update.
14304 (m2_print_array_contents): Take a struct value.
14305 (m2_value_print_inner): Rewrite.
14306
14307 2020-03-13 Tom Tromey <tom@tromey.com>
14308
14309 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14310 (d_value_print_inner): New function.
14311 * d-lang.h (d_value_print_inner): Declare.
14312 * d-lang.c (d_language_defn): Use d_value_print_inner.
14313
14314 2020-03-13 Tom Tromey <tom@tromey.com>
14315
14316 * go-valprint.c (go_value_print_inner): New function.
14317 * go-lang.h (go_value_print_inner): Declare.
14318 * go-lang.c (go_language_defn): Use go_value_print_inner.
14319
14320 2020-03-13 Tom Tromey <tom@tromey.com>
14321
14322 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14323 API.
14324 (rust_val_print): Rewrite.
14325 (rust_value_print_inner): New function, from rust_val_print.
14326 (rust_language_defn): Use rust_value_print_inner.
14327
14328 2020-03-13 Tom Tromey <tom@tromey.com>
14329
14330 * ada-valprint.c (ada_value_print_inner): New function.
14331 * ada-lang.h (ada_value_print_inner): Declare.
14332 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14333
14334 2020-03-13 Tom Tromey <tom@tromey.com>
14335
14336 * f-valprint.c (f_value_print_innner): New function.
14337 * f-lang.h (f_value_print_innner): Declare.
14338 * f-lang.c (f_language_defn): Use f_value_print_innner.
14339
14340 2020-03-13 Tom Tromey <tom@tromey.com>
14341
14342 * p-valprint.c (pascal_value_print_inner): New function.
14343 * p-lang.h (pascal_value_print_inner): Declare.
14344 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14345
14346 2020-03-13 Tom Tromey <tom@tromey.com>
14347
14348 * m2-valprint.c (m2_value_print_inner): New function.
14349 * m2-lang.h (m2_value_print_inner): Declare.
14350 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14351
14352 2020-03-13 Tom Tromey <tom@tromey.com>
14353
14354 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14355 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14356 * c-valprint.c (c_value_print_inner): New function.
14357 * c-lang.h (c_value_print_inner): Declare.
14358 * c-lang.c (c_language_defn, cplus_language_defn)
14359 (asm_language_defn, minimal_language_defn): Use
14360 c_value_print_inner.
14361
14362 2020-03-13 Tom Tromey <tom@tromey.com>
14363
14364 * p-valprint.c (pascal_object_print_value_fields): Now static.
14365 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14366
14367 2020-03-13 Tom Tromey <tom@tromey.com>
14368
14369 * c-valprint.c (c_val_print_array): Simplify.
14370
14371 2020-03-13 Tom Tromey <tom@tromey.com>
14372
14373 * valprint.c (value_print_array_elements): New function.
14374 * valprint.h (value_print_array_elements): Declare.
14375
14376 2020-03-13 Tom Tromey <tom@tromey.com>
14377
14378 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14379 * mips-tdep.c (mips_print_register): Use
14380 value_print_scalar_formatted.
14381
14382 2020-03-13 Tom Tromey <tom@tromey.com>
14383
14384 * valprint.h (value_print_scalar_formatted): Declare.
14385 * valprint.c (value_print_scalar_formatted): New function.
14386
14387 2020-03-13 Tom Tromey <tom@tromey.com>
14388
14389 * valprint.h (generic_value_print): Declare.
14390 * valprint.c (generic_value_print): New function.
14391
14392 2020-03-13 Tom Tromey <tom@tromey.com>
14393
14394 * valprint.c (do_val_print): Call la_value_print_inner, if
14395 available.
14396 * rust-lang.c (rust_language_defn): Update.
14397 * p-lang.c (pascal_language_defn): Update.
14398 * opencl-lang.c (opencl_language_defn): Update.
14399 * objc-lang.c (objc_language_defn): Update.
14400 * m2-lang.c (m2_language_defn): Update.
14401 * language.h (struct language_defn) <la_value_print_inner>: New
14402 member.
14403 * language.c (unknown_language_defn, auto_language_defn): Update.
14404 * go-lang.c (go_language_defn): Update.
14405 * f-lang.c (f_language_defn): Update.
14406 * d-lang.c (d_language_defn): Update.
14407 * c-lang.c (c_language_defn, cplus_language_defn)
14408 (asm_language_defn, minimal_language_defn): Update.
14409 * ada-lang.c (ada_language_defn): Update.
14410
14411 2020-03-13 Tom Tromey <tom@tromey.com>
14412
14413 * c-valprint.c (c_value_print): Use common_val_print.
14414
14415 2020-03-13 Tom Tromey <tom@tromey.com>
14416
14417 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14418
14419 2020-03-13 Tom Tromey <tom@tromey.com>
14420
14421 * f-valprint.c (f77_print_array_1, f_val_print): Use
14422 common_val_print.
14423
14424 2020-03-13 Tom Tromey <tom@tromey.com>
14425
14426 * riscv-tdep.c (riscv_print_one_register_info): Use
14427 common_val_print.
14428
14429 2020-03-13 Tom Tromey <tom@tromey.com>
14430
14431 * mi/mi-main.c (output_register): Use common_val_print.
14432
14433 2020-03-13 Tom Tromey <tom@tromey.com>
14434
14435 * infcmd.c (default_print_one_register_info): Use
14436 common_val_print.
14437
14438 2020-03-13 Tom Tromey <tom@tromey.com>
14439
14440 * valprint.h (common_val_print_checked): Declare.
14441 * valprint.c (common_val_print_checked): New function.
14442 * stack.c (print_frame_arg): Use common_val_print_checked.
14443
14444 2020-03-13 Tom Tromey <tom@tromey.com>
14445
14446 * valprint.c (do_val_print): New function, from val_print.
14447 (val_print): Use do_val_print.
14448 (common_val_print): Use do_val_print.
14449
14450 2020-03-13 Tom Tromey <tom@tromey.com>
14451
14452 * valprint.c (value_print): Use scoped_value_mark.
14453
14454 2020-03-13 Tom de Vries <tdevries@suse.de>
14455
14456 PR symtab/25646
14457 * psymtab.c (partial_symtab::partial_symtab): Don't set
14458 globals_offset and statics_offset. Push element onto
14459 current_global_psymbols and current_static_psymbols stacks.
14460 (concat): New function.
14461 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14462 element from current_global_psymbols and current_static_psymbols
14463 stacks. Concat popped elements to global_psymbols and
14464 static_symbols.
14465 (add_psymbol_to_list): Use current_global_psymbols and
14466 current_static_psymbols stacks.
14467 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14468 current_static_psymbols fields.
14469
14470 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14471
14472 * corelow.c (sniff_core_bfd): Remove.
14473 (class core_target) <m_core_vec>: Remove.
14474 (core_target::core_target): Update.
14475 (core_file_fns): Remove.
14476 (deprecated_add_core_fns): Remove.
14477 (default_core_sniffer): Remove.
14478 (sniff_core_bfd): Remove.
14479 (default_check_format): Remove.
14480 (gdb_check_format): Remove.
14481 (core_target_open): Update.
14482 (core_target::get_core_register_section): Update.
14483 (get_core_registers_cb): Update.
14484 (core_target::fetch_registers): Update.
14485 * gdbcore.h (struct core_fns): Remove.
14486 (deprecated_add_core_fns): Remove.
14487 (default_core_sniffer): Remove.
14488 (default_check_format): Remove.
14489
14490 2020-03-12 Tom Tromey <tom@tromey.com>
14491
14492 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14493 CORE_ADDR.
14494 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14495
14496 2020-03-12 Tom Tromey <tom@tromey.com>
14497
14498 * remote.c (remote_target::download_tracepoint)
14499 (remote_target::enable_tracepoint)
14500 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14501 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14502 sprintf_vma.
14503
14504 2020-03-12 Tom Tromey <tom@tromey.com>
14505
14506 * symfile-mem.c: Update CORE_ADDR size assert.
14507
14508 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14509
14510 * selftest.m4: Move to gdbsupport/.
14511 * acinclude.m4: Update path to selftest.m4.
14512
14513 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14514
14515 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14516 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14517 gdbarch-selfselftests.c and selftest-arch.c.
14518 (SUBDIR_UNITTESTS_OBS): Rename to...
14519 (SELFTESTS_OBS): ... this.
14520 (COMMON_SFILES): Remove disasm-selftests.c and
14521 gdbarch-selftests.c.
14522 * configure.ac: Don't add selftest-arch.{c,o} to
14523 CONFIG_{SRCS,OBS}.
14524 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14525 preprocessor conditions.
14526
14527 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14528
14529 * configure.ac: Don't source bfd/development.sh.
14530 * selftest.m4: Modify comment.
14531 * configure: Re-generate.
14532
14533 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14534
14535 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14536 not "true" or "false".
14537 * configure: Re-generate.
14538
14539 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14540
14541 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14542 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14543 renamed to arm_nbsd_supply_gregset.
14544 (fetch_register): Update to call arm_nbsd_supply_gregset.
14545 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14546 (arm_netbsd_nat_target::fetch_registers): Update.
14547 (fetch_elfcore_registers): Removed.
14548 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14549 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14550 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14551 not require NetBSD system headers.
14552 (arm_nbsd_regset): New struct.
14553 (arm_nbsd_iterate_over_regset_sections): New function.
14554 (arm_netbsd_init_abi_common): Updated to call
14555 set_gdbarch_iterate_over_regset_sections.
14556 * arm-nbsd-tdep.h: New file.
14557
14558 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14559
14560 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14561 recursion.
14562
14563 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14564
14565 * configure: Re-generate.
14566
14567 2020-03-11 Tom Tromey <tromey@adacore.com>
14568
14569 * ada-typeprint.c (print_choices): Fix comment.
14570
14571 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14572
14573 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14574 previous item in the list, when the list has no items.
14575
14576 2020-03-11 Tom de Vries <tdevries@suse.de>
14577
14578 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14579 PROP_LOCLIST handling code.
14580
14581 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14582
14583 * buildsym-legacy.c (record_line): Pass extra parameter to
14584 record_line.
14585 * buildsym.c (buildsym_compunit::record_line): Take an extra
14586 parameter, reduce duplication in the line table, and record the
14587 is_stmt flag in the line table.
14588 * buildsym.h (buildsym_compunit::record_line): Add extra
14589 parameter.
14590 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14591 non-statement lines.
14592 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14593 this to the symtab builder.
14594 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14595 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14596 through to dwarf_record_line_1.
14597 * infrun.c (process_event_stop_test): When stepping, don't stop at
14598 a non-statement instruction, and only refresh the step info when
14599 we land in the middle of a line's range. Also add an extra
14600 comment.
14601 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14602 field.
14603 * record-btrace.c (btrace_find_line_range): Only record lines
14604 marked as is-statement.
14605 * stack.c (frame_show_address): Show the frame address if we are
14606 in a non-statement sal.
14607 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14608 (maintenance_print_one_line_table): Print a header for the is_stmt
14609 column, and include is_stmt information in the output.
14610 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14611 preference to non-statements.
14612 (find_pcs_for_symtab_line): Prefer is-statement entries.
14613 (find_line_common): Likewise.
14614 * symtab.h (struct linetable_entry): Add is_stmt field.
14615 (struct symtab_and_line): Likewise.
14616 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14617 arranging the line table.
14618
14619 2020-03-07 Tom de Vries <tdevries@suse.de>
14620
14621 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14622 DIE.
14623
14624 2020-03-07 Tom Tromey <tom@tromey.com>
14625
14626 * valops.c (value_literal_complex): Remove obsolete comment.
14627 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14628 comment.
14629
14630 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14631
14632 * infrun.h: Forward-declare thread_info.
14633 (set_step_info): Add thread_info parameter, add doc.
14634 * infrun.c (set_step_info): Add thread_info parameter, move doc
14635 to header.
14636 * infrun.c (process_event_stop_test): Pass thread to
14637 set_step_info call.
14638 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14639 set_step_info.
14640 (prepare_one_step): Add thread_info parameter, pass it to
14641 set_step_frame and prepare_one_step (recursive) call.
14642 (step_1): Pass thread to prepare_one_step call.
14643 (step_command_fsm::should_stop): Pass thread to
14644 prepare_one_step.
14645 (until_next_fsm): Pass thread to set_step_frame call.
14646 (finish_command): Pass thread to set_step_info call.
14647
14648 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14649
14650 * windows-tdep.c (windows_solib_create_inferior_hook):
14651 Check if inferior is running.
14652
14653 2020-03-06 Tom de Vries <tdevries@suse.de>
14654
14655 * NEWS: Fix "the the".
14656 * ctfread.c: Same.
14657
14658 2020-03-06 Tom de Vries <tdevries@suse.de>
14659
14660 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14661
14662 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14663
14664 * .dir-locals.el: Add a comment referencing the other copies of
14665 this file.
14666
14667 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14668
14669 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14670 psargs.
14671
14672 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14673
14674 * .gitattributes: New file.
14675
14676 2020-03-04 Tom Tromey <tom@tromey.com>
14677
14678 * symmisc.c (print_symbol_bcache_statistics)
14679 (print_objfile_statistics): Update.
14680 * symfile.c (allocate_symtab): Use intern.
14681 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14682 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14683 macro_cache>: Remove.
14684 <string_cache>: New member.
14685 (struct objfile) <intern>: New methods.
14686 * elfread.c (elf_symtab_read): Use intern.
14687 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14688 (dwarf2_compute_name, dwarf2_physname)
14689 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14690 names.
14691 (guess_partial_die_structure_name): Update.
14692 (partial_die_info::fixup): Intern name.
14693 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14694 name.
14695 (dwarf2_name): Intern name. Update.
14696 * buildsym.c (buildsym_compunit::get_macro_table): Use
14697 string_cache.
14698
14699 2020-03-04 Tom Tromey <tom@tromey.com>
14700
14701 * jit.c (bfd_open_from_target_memory): Make "target" const.
14702 * corefile.c (gnutarget): Now const.
14703 * gdbcore.h (gnutarget): Now const.
14704
14705 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14706
14707 * NEWS: Mention support for WOW64 processes.
14708 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14709 (amd64_windows_segment_register_p): Remove static.
14710 (_initialize_amd64_windows_nat): Update.
14711 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14712 * i386-windows-nat.c (context_offset): Update.
14713 (i386_mappings): Rename and remove static.
14714 (i386_windows_segment_register_p): Remove static.
14715 (_initialize_i386_windows_nat): Update.
14716 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14717 (STATUS_WX86_SINGLE_STEP): New macro.
14718 (EnumProcessModulesEx): New macro.
14719 (Wow64SuspendThread): New macro.
14720 (Wow64GetThreadContext): New macro.
14721 (Wow64SetThreadContext): New macro.
14722 (Wow64GetThreadSelectorEntry): New macro.
14723 (windows_set_context_register_offsets): Add static.
14724 (windows_set_segment_register_p): Likewise.
14725 (windows_add_thread): Adapt for WOW64 processes.
14726 (windows_fetch_one_register): Likewise.
14727 (windows_nat_target::fetch_registers): Likewise.
14728 (windows_store_one_register): Likewise.
14729 (display_selector): Likewise.
14730 (display_selectors): Likewise.
14731 (handle_exception): Likewise.
14732 (windows_continue): Likewise.
14733 (windows_nat_target::resume): Likewise.
14734 (windows_add_all_dlls): Likewise.
14735 (do_initial_windows_stuff): Likewise.
14736 (windows_nat_target::attach): Likewise.
14737 (windows_get_exec_module_filename): Likewise.
14738 (windows_nat_target::create_inferior): Likewise.
14739 (windows_xfer_siginfo): Likewise.
14740 (_initialize_loadable): Initialize Wow64SuspendThread,
14741 Wow64GetThreadContext, Wow64SetThreadContext,
14742 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14743 * windows-nat.h (windows_set_context_register_offsets):
14744 Remove declaration.
14745 (windows_set_segment_register_p): Likewise.
14746 (i386_windows_segment_register_p): Add declaration.
14747 (amd64_windows_segment_register_p): Likewise.
14748
14749 2020-03-04 Luis Machado <luis.machado@linaro.org>
14750
14751 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14752 in "info registers" for AArch64/ARM.
14753
14754 The change caused "info registers" to not print GPR's.
14755
14756 gdb/ChangeLog:
14757
14758 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14759
14760 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14761 when reg->group is empty and reggroup is not.
14762
14763 2020-03-03 Tom Tromey <tromey@adacore.com>
14764
14765 * dwarf2/frame.c (struct dwarf2_frame_cache)
14766 <checked_tailcall_bottom, entry_cfa_sp_offset,
14767 entry_cfa_sp_offset_p>: Remove members.
14768 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14769 (dwarf2_frame_prev_register): Don't call
14770 dwarf2_tailcall_sniffer_first.
14771 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14772 * frame-unwind.c (add_unwinder): New fuction.
14773 (frame_unwind_init): Use it. Add tailcall unwinder.
14774
14775 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14776 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14777
14778 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14779 value should be printed as true.
14780
14781 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
14782
14783 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14784 (windows_init_abi): Set and use windows_so_ops.
14785
14786 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14787
14788 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14789 when verifying if dealing with a convenience variable.
14790
14791 2020-03-03 Luis Machado <luis.machado@linaro.org>
14792
14793 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14794
14795 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14796
14797 * infrun.c (gdbarch_supports_displaced_stepping): New.
14798 (use_displaced_stepping): Break up conditions in smaller pieces.
14799 Use gdbarch_supports_displaced_stepping.
14800 (displaced_step_prepare_throw): Use
14801 gdbarch_supports_displaced_stepping.
14802
14803 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14804
14805 * NEWS: Mention new behaviour of the history filename.
14806 * top.c (write_history_p): Add comment.
14807 (show_write_history_p): Add header comment, give a different
14808 message when history writing is on, but the history filename is
14809 empty.
14810 (history_filename): Add comment.
14811 (history_filename_empty): New function.
14812 (show_history_filename): Add header comment, give a different
14813 message when the filename is empty.
14814 (init_history): Compare history_filename against nullptr, and only
14815 read history if the filename is not empty.
14816 (set_history_filename): Add header comment, and only make
14817 non-empty filenames absolute.
14818 (init_main): Make the filename argument to 'set history filename'
14819 optional.
14820
14821 2020-03-02 Christian Biesinger <cbiesinger@google.com>
14822
14823 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14824 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14825 (fetch_fp_register): Update.
14826 (fetch_fp_regs): Update.
14827 (store_fp_register): Update.
14828 (store_fp_regs): Update.
14829 (arm_netbsd_nat_target::read_description): New function.
14830 (fetch_elfcore_registers): Update.
14831
14832 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14833
14834 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14835 general_thread if the stop reply is missing a thread-id.
14836 (remote_target::process_stop_reply): Use the first non-exited
14837 thread if the target didn't pass a thread-id.
14838 * infrun.c (do_target_wait): Move call to
14839 switch_to_inferior_no_thread to ....
14840 (do_target_wait_1): ... here.
14841
14842 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14843
14844 * debuginfod-support.c: Include defs.h first.
14845
14846 2020-02-28 Tom de Vries <tdevries@suse.de>
14847
14848 * symfile.c (set_initial_language): Use default language for lookup.
14849
14850 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
14851
14852 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14853 reader variable, pass `this` to read_cutu_die_from_dwo.
14854
14855 2020-02-27 Aaron Merey <amerey@redhat.com>
14856
14857 * source.c (open_source_file): Check for nullptr when computing
14858 srcpath.
14859
14860 2020-02-27 Tom Tromey <tromey@adacore.com>
14861
14862 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14863 member.
14864 (dwarf2_add_field): Don't update nfields.
14865 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14866
14867 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14868
14869 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14870 abs.
14871
14872 2020-02-26 Tom Tromey <tom@tromey.com>
14873
14874 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14875 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14876 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14877 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14878 per_cu_data.
14879
14880 2020-02-26 Tom Tromey <tom@tromey.com>
14881
14882 * dwarf2/index-write.c (psym_index_map): Change type.
14883 (add_address_entry_worker, write_one_signatured_type)
14884 (recursively_count_psymbols, recursively_write_psymbols)
14885 (class debug_names, psyms_seen_size, write_gdbindex)
14886 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14887
14888 2020-02-26 Aaron Merey <amerey@redhat.com>
14889
14890 * Makefile.in: Handle optional debuginfod support.
14891 * NEWS: Update.
14892 * README: Add --with-debuginfod summary.
14893 * config.in: Regenerate.
14894 * configure: Regenerate.
14895 * configure.ac: Handle optional debuginfod support.
14896 * debuginfod-support.c: debuginfod helper functions.
14897 * debuginfod-support.h: Ditto.
14898 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14899 summary.
14900 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14901 when a dwz file cannot be found.
14902 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14903 debuginfo file cannot be found.
14904 * source.c (open_source_file): Query debuginfod servers when a
14905 source file cannot be found.
14906 * top.c (print_gdb_configuration): Include
14907 --{with,without}-debuginfod in the output.
14908
14909 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14910
14911 * thread.c (thr_try_catch_cmd): Print thread name.
14912
14913 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
14914
14915 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14916 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14917 dwarf2_fetch_die_type_sect_off): Move to...
14918 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14919 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14920 dwarf2_fetch_die_type_sect_off): ... here.
14921 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14922 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14923 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14924
14925 2020-02-26 Tom de Vries <tdevries@suse.de>
14926
14927 PR gdb/25603
14928 * symfile.c (set_initial_language): Exit-early if
14929 language_mode == language_mode_manual.
14930
14931 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14932
14933 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14934 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14935 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14936
14937 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14938
14939 * gdbtypes.c (create_array_type_with_stride): Handle negative
14940 array strides.
14941 * valarith.c (value_subscripted_rvalue): Likewise.
14942
14943 2020-02-25 Luis Machado <luis.machado@linaro.org>
14944
14945 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14946
14947 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14948
14949 * loc.h (dwarf2_get_die_type): Move to...
14950 * read.h (dwarf2_get_die_type): ... here.
14951 * read.c (dwarf2_get_die_type): Move doc to header.
14952
14953 2020-02-25 Joel Brobecker <brobecker@adacore.com>
14954
14955 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14956 'gnulib/Makefile.in' to the list.
14957
14958 2020-02-24 Tom Tromey <tom@tromey.com>
14959
14960 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14961 Remove.
14962 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14963 XOBNEWVEC.
14964
14965 2020-02-24 Tom Tromey <tom@tromey.com>
14966
14967 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14968 New method.
14969 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14970 (dw2_do_instantiate_symtab, dw2_get_file_names)
14971 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14972
14973 2020-02-24 Tom Tromey <tom@tromey.com>
14974
14975 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14976 make_scoped_restore.
14977 (dwarf2_psymtab::read_symtab): Don't clear
14978 reading_partial_symbols.
14979
14980 2020-02-24 Tom de Vries <tdevries@suse.de>
14981
14982 PR gdb/25592
14983 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14984
14985 2020-02-24 Tom de Vries <tdevries@suse.de>
14986
14987 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14988 commands layout next/prev/regs.
14989
14990 2020-02-22 Tom Tromey <tom@tromey.com>
14991
14992 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14993 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14994
14995 2020-02-22 Tom Tromey <tom@tromey.com>
14996
14997 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14998
14999 2020-02-22 Tom Tromey <tom@tromey.com>
15000
15001 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15002 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15003 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15004 * tui/tui.c (_initialize_tui): Add usage text.
15005
15006 2020-02-22 Tom Tromey <tom@tromey.com>
15007
15008 * tui/tui-win.c (tui_set_focus_command)
15009 (tui_set_win_height_command): Use error_no_arg.
15010 (_initialize_tui_win): Update help text.
15011 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15012
15013 2020-02-22 Tom Tromey <tom@tromey.com>
15014
15015 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15016 * tui/tui-disasm.h (struct tui_disasm_window)
15017 <display_start_addr>: Declare.
15018 * tui/tui-source.h (struct tui_source_window)
15019 <display_start_addr>: Declare.
15020 * tui/tui-winsource.h (struct tui_source_window_base)
15021 <show_source_line, display_start_addr>: New methods.
15022 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15023 Rename and move to protected section.
15024 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15025 (tui_source_window_base::do_erase_source_content): Update.
15026 (tui_source_window_base::show_source_line): Now a method.
15027 (tui_source_window_base::show_source_content)
15028 (tui_source_window_base::tui_source_window_base)
15029 (tui_source_window_base::rerender)
15030 (tui_source_window_base::refill)
15031 (tui_source_window_base::do_scroll_horizontal)
15032 (tui_source_window_base::set_is_exec_point_at)
15033 (tui_source_window_base::update_breakpoint_info)
15034 (tui_source_window_base::update_exec_info): Update.
15035 * tui/tui-source.c (tui_source_window::set_contents)
15036 (tui_source_window::showing_source_p)
15037 (tui_source_window::do_scroll_vertical)
15038 (tui_source_window::location_matches_p)
15039 (tui_source_window::line_is_displayed): Update.
15040 (tui_source_window::display_start_addr): New method.
15041 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15042 (tui_disasm_window::do_scroll_vertical)
15043 (tui_disasm_window::location_matches_p): Update.
15044 (tui_disasm_window::display_start_addr): New method.
15045
15046 2020-02-22 Tom Tromey <tom@tromey.com>
15047
15048 * NEWS: Add entry for gdb.register_window_type.
15049 * tui/tui-layout.h (window_factory): New typedef.
15050 (tui_register_window): Declare.
15051 * tui/tui-layout.c (saved_tui_windows): New global.
15052 (tui_apply_current_layout): Use it.
15053 (tui_register_window): New function.
15054 * python/python.c (do_start_initialization): Call
15055 gdbpy_initialize_tui.
15056 (python_GdbMethods): Add "register_window_type" function.
15057 * python/python-internal.h (gdbpy_register_tui_window)
15058 (gdbpy_initialize_tui): Declare.
15059 * python/py-tui.c: New file.
15060 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15061
15062 2020-02-22 Tom Tromey <tom@tromey.com>
15063
15064 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15065
15066 2020-02-22 Tom Tromey <tom@tromey.com>
15067
15068 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15069 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15070 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15071 (tui_set_win_focus_to): Move from tui-win.c.
15072
15073 2020-02-22 Tom Tromey <tom@tromey.com>
15074
15075 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15076 functions.
15077 (known_window_types): New global.
15078 (tui_get_window_by_name): Reimplement.
15079 (initialize_known_windows): New function.
15080 (validate_window_name): Rewrite.
15081 (_initialize_tui_layout): Call initialize_known_windows.
15082
15083 2020-02-22 Tom Tromey <tom@tromey.com>
15084
15085 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15086 Remove constants.
15087 * tui/tui-winsource.h (struct tui_source_window_base)
15088 <tui_source_window_base>: Remove parameter.
15089 * tui/tui-winsource.c
15090 (tui_source_window_base::tui_source_window_base): Remove
15091 parameter.
15092 (tui_source_window_base::refill): Update.
15093 * tui/tui-stack.h (struct tui_locator_window)
15094 <tui_locator_window>: Update.
15095 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15096 Default the constructor.
15097 * tui/tui-regs.h (struct tui_data_item_window)
15098 <tui_data_item_window>: Default the constructor.
15099 (struct tui_data_window) <tui_data_window>: Likewise.
15100 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15101 Default the constructor.
15102 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15103 Default the constructor.
15104 <type>: Remove.
15105 (struct tui_win_info) <tui_win_info>: Default the constructor.
15106 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15107 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15108 Default the constructor.
15109
15110 2020-02-22 Tom Tromey <tom@tromey.com>
15111
15112 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15113 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15114 * tui/tui-win.c (tui_resize_all): Don't call
15115 tui_delete_invisible_windows.
15116 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15117 done.
15118 (tui_set_layout): Update.
15119 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15120 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15121 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15122
15123 2020-02-22 Tom Tromey <tom@tromey.com>
15124
15125 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15126 correctly.
15127
15128 2020-02-22 Tom Tromey <tom@tromey.com>
15129
15130 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15131
15132 2020-02-22 Tom Tromey <tom@tromey.com>
15133
15134 * tui/tui-winsource.h (struct tui_source_window_iterator)
15135 <inner_iterator>: New etytypedef.
15136 <tui_source_window_iterator>: Take "end" parameter.
15137 <tui_source_window_iterator>: Take iterator.
15138 <operator*, advance>: Update.
15139 <m_iter>: Change type.
15140 <m_end>: New field.
15141 (struct tui_source_windows) <begin, end>: Update.
15142 * tui/tui-layout.c (tui_windows): New global.
15143 (tui_apply_current_layout): Clear tui_windows.
15144 (tui_layout_window::apply): Update tui_windows.
15145 * tui/tui-data.h (tui_windows): Declare.
15146 (all_tui_windows): Now inline function.
15147 (class tui_window_iterator, struct all_tui_windows): Remove.
15148
15149 2020-02-22 Tom Tromey <tom@tromey.com>
15150
15151 PR tui/17850:
15152 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15153 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15154 "height" argument.
15155 (class tui_layout_window) <get_sizes>: Likewise.
15156 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15157 argument.
15158 <get_sizes>: Add "height" argument.
15159 <m_vertical>: New field.
15160 * tui/tui-layout.c (tui_layout_split::clone): Update.
15161 (tui_layout_split::get_sizes): Add "height" argument.
15162 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15163 (tui_new_layout_command): Parse "-horizontal".
15164 (_initialize_tui_layout): Update help string.
15165 (tui_layout_split::specification): Add "-horizontal" when needed.
15166 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15167 argument.
15168 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15169 New methods.
15170
15171 2020-02-22 Tom Tromey <tom@tromey.com>
15172
15173 * tui/tui-layout.h (enum tui_adjust_result): New.
15174 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15175 (class tui_layout_window) <adjust_size>: Return
15176 tui_adjust_result. Rewrite.
15177 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15178 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15179
15180 2020-02-22 Tom Tromey <tom@tromey.com>
15181
15182 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15183 parameter and return types.
15184 (class tui_layout_base) <specification>: Add "depth".
15185 (class tui_layout_window) <specification>: Add "depth".
15186 (class tui_layout_split) <specification>: Add "depth".
15187 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15188 and return types.
15189 (tui_new_layout_command): Parse sub-layouts.
15190 (_initialize_tui_layout): Update help string.
15191 (tui_layout_window::specification): Add "depth".
15192 (add_layout_command): Update.
15193
15194 2020-02-22 Tom Tromey <tom@tromey.com>
15195
15196 * NEWS: Add "tui new-layout" item.
15197 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15198 Add new-layout command to help text.
15199 (validate_window_name): New function.
15200 (tui_new_layout_command): New function.
15201 (_initialize_tui_layout): Register "new-layout".
15202 (tui_layout_window::specification): New method.
15203 (tui_layout_window::specification): New method.
15204 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15205 method.
15206 (class tui_layout_window) <specification>: New method.
15207 (class tui_layout_split) <specification>: New method.
15208
15209 2020-02-22 Tom Tromey <tom@tromey.com>
15210
15211 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15212 * tui/tui-win.c (window_name_completer): Update comment.
15213 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15214 Declare method.
15215 (class tui_layout_window) <replace_window>: Likewise.
15216 (class tui_layout_split) <replace_window>: Likewise.
15217 (tui_set_layout): Don't declare.
15218 (tui_set_initial_layout): Declare function.
15219 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15220 (asm_regs_layout): New globals.
15221 (tui_current_layout, show_layout): Remove.
15222 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15223 (find_layout, tui_apply_layout): New function.
15224 (layout_completer): Remove.
15225 (tui_next_layout): Reimplement.
15226 (tui_next_layout_command): New function.
15227 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15228 (tui_regs_layout): Reimplement.
15229 (tui_regs_layout_command): New function.
15230 (extract_display_start_addr): Rewrite.
15231 (next_layout, prev_layout): Remove.
15232 (tui_layout_window::replace_window): New method.
15233 (tui_layout_split::replace_window): New method.
15234 (destroy_layout): New function.
15235 (layout_list): New global.
15236 (add_layout_command): New function.
15237 (initialize_layouts): Update.
15238 (tui_layout_command): New function.
15239 (_initialize_tui_layout): Install "layout" commands.
15240 * tui/tui-data.h (enum tui_layout_type): Remove.
15241 (tui_current_layout): Don't declare.
15242
15243 2020-02-22 Tom Tromey <tom@tromey.com>
15244
15245 * tui/tui-regs.c (tui_reg_layout): Remove.
15246 (tui_reg_command): Use tui_regs_layout.
15247 * tui/tui-layout.h (tui_reg_command): Declare.
15248 * tui/tui-layout.c (tui_reg_command): New function.
15249
15250 2020-02-22 Tom Tromey <tom@tromey.com>
15251
15252 * tui/tui.c (tui_rl_delete_other_windows): Call
15253 tui_remove_some_windows.
15254 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15255 Declare method.
15256 (class tui_layout_window) <remove_windows>: New method.
15257 (class tui_layout_split) <remove_windows>: Declare.
15258 (tui_remove_some_windows): Declare.
15259 * tui/tui-layout.c (tui_remove_some_windows): New function.
15260 (tui_layout_split::remove_windows): New method.
15261
15262 2020-02-22 Tom Tromey <tom@tromey.com>
15263
15264 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15265 * tui/tui-layout.h (tui_next_layout): Declare.
15266 * tui/tui-layout.c (tui_next_layout): New function.
15267
15268 2020-02-22 Tom Tromey <tom@tromey.com>
15269
15270 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15271 correct coordinates.
15272
15273 2020-02-22 Tom Tromey <tom@tromey.com>
15274
15275 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15276 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15277 DATA_WIN case.
15278
15279 2020-02-22 Tom Tromey <tom@tromey.com>
15280
15281 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15282 TUI_DISASM_WIN, not tui_win_list.
15283
15284 2020-02-22 Tom Tromey <tom@tromey.com>
15285
15286 * valprint.c (generic_val_print_enum_1)
15287 (val_print_type_code_flags): Style member names.
15288 * rust-lang.c (val_print_struct, rust_print_enum)
15289 (rust_print_struct_def, rust_internal_print_type): Style member
15290 names.
15291 * p-valprint.c (pascal_object_print_value_fields): Style member
15292 names. Only call fprintf_symbol_filtered for static members.
15293 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15294 * f-valprint.c (f_val_print): Style member names.
15295 * f-typeprint.c (f_type_print_base): Style member names.
15296 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15297 call fprintf_symbol_filtered for static members.
15298 (cp_print_class_member): Style member names.
15299 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15300 member names.
15301 * ada-valprint.c (ada_print_scalar): Style enum names.
15302 (ada_val_print_enum): Likewise.
15303 * ada-typeprint.c (print_enum_type): Style enum names.
15304
15305 2020-02-21 Tom Tromey <tom@tromey.com>
15306
15307 * psympriv.h (struct partial_symtab): Update comment.
15308
15309 2020-02-21 Tom Tromey <tromey@adacore.com>
15310
15311 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15312 type is CORE_ADDR.
15313
15314 2020-02-21 Tom de Vries <tdevries@suse.de>
15315
15316 PR gdb/25534
15317 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15318 if dependencies[i]->user != NULL.
15319
15320 2020-02-21 Ali Tamur <tamur@google.com>
15321
15322 * dwarf2/read.c (dwarf2_name): Add null check.
15323
15324 2020-02-20 Tom Tromey <tom@tromey.com>
15325
15326 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15327 ">=", in binary search.
15328 (dwarf2_find_containing_comp_unit): New overload.
15329 (run_test): New self-test.
15330 (_initialize_dwarf2_read): Register new test.
15331
15332 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15333
15334 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15335 * riscv-tdep.h: Likewise.
15336 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15337 rv32-only CSR.
15338 * features/riscv/64bit-csr.xml: Regenerated.
15339
15340 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15341 Tom Tromey <tom@tromey.com>
15342
15343 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15344 of 'fputc_unfiltered'.
15345 (putchar_unfiltered): Call 'fputc_unfiltered'.
15346 (fputc_unfiltered): Call 'fputs_unfiltered'.
15347
15348 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15349
15350 * config.in: Regenerate.
15351 * configure: Regenerate.
15352 * configure.ac: Add --with-python-libdir option.
15353 * main.c: Use WITH_PYTHON_LIBDIR.
15354
15355 2020-02-19 Tom Tromey <tom@tromey.com>
15356
15357 * symtab.c (general_symbol_info::compute_and_set_names): Use
15358 obstack_strndup. Simplify call to symbol_set_demangled_name.
15359
15360 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15361
15362 * dwarf2/read.c (allocate_signatured_type_table,
15363 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15364 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15365 Remove objfile parameter, update all callers.
15366
15367 2020-02-19 Doug Evans <dje@google.com>
15368
15369 PR rust/25535
15370 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15371 rust_enum_variant calculation.
15372
15373 2020-02-19 Tom Tromey <tromey@adacore.com>
15374
15375 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15376
15377 2020-02-19 Tom Tromey <tromey@adacore.com>
15378
15379 * ada-lang.c (cache_symbol): Use obstack_strdup.
15380
15381 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15382
15383 * configure: Regenerate.
15384
15385 2020-02-19 Tom Tromey <tromey@adacore.com>
15386
15387 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15388 NULL check.
15389
15390 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15391
15392 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15393
15394 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15395
15396 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15397 if GDBSERVER is not defined.
15398 (riscv_tdesc_cache): Likewise, also store const target_desc.
15399 (STATIC_IN_GDB): Define.
15400 (riscv_create_target_description): Update declaration with
15401 STATIC_IN_GDB.
15402 (riscv_lookup_target_description): New function, only define if
15403 GDBSERVER is not defined.
15404 * arch/riscv.h (riscv_create_target_description): Declare only
15405 when GDBSERVER is defined.
15406 (riscv_lookup_target_description): New declaration when GDBSERVER
15407 is not defined.
15408 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15409 (riscv_linux_read_features): ...this, and return
15410 riscv_gdbarch_features instead of target_desc.
15411 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15412 (riscv_linux_read_description): Rename to...
15413 (riscv_linux_read_features): ...this.
15414 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15415 Update to use riscv_gdbarch_features and
15416 riscv_lookup_target_description.
15417 * riscv-tdep.c (riscv_find_default_target_description): Use
15418 riscv_lookup_target_description instead of
15419 riscv_create_target_description.
15420
15421 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15422
15423 * valprint.c (generic_val_print_enum_1): When printing a flag
15424 enum with value 0 and there is no enumerator with value 0, print
15425 just "0" instead of "(unknown: 0x0)".
15426
15427 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15428
15429 * valprint.c (generic_val_print_enum_1): Print unknown part of
15430 flag enum in hex.
15431
15432 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15433
15434 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15435 flag enums to contain duplicate enumerators.
15436 * valprint.c (generic_val_print_enum_1): Update comment.
15437
15438 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15439
15440 * dwarf2/read.c: Include "count-one-bits.h".
15441 (update_enumeration_type_from_children): If an enumerator has
15442 multiple bits set, don't treat the enumeration as a "flag enum".
15443 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15444 of flag enums have 0 or 1 bit set.
15445
15446 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15447
15448 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15449 conversion.
15450 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15451 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15452 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15453 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15454 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15455
15456 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15457
15458 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15459
15460 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15461
15462 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15463 displaced_step_closure_up.
15464 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15465 (struct displaced_step_closure_up):
15466 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15467 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15468 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15469 Likewise.
15470 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15471 * gdbarch.c, gdbarch.h: Re-generate.
15472 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15473 displaced_step_closure_up.
15474 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15475 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15476 * infrun.h (displaced_step_closure_up): New type alias.
15477 (struct displaced_step_inferior_state) <step_closure>: Change
15478 type to displaced_step_closure_up.
15479 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15480 displaced_step_closure_up.
15481 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15482
15483 2020-02-14 Tom Tromey <tom@tromey.com>
15484
15485 * minidebug.c (gnu_debug_key): New global.
15486 (find_separate_debug_file_in_section): Use it.
15487
15488 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15489
15490 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15491 std::unique_ptr.
15492 * gdbarch.c: Re-generate.
15493 * gdbarch.h: Re-generate.
15494 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15495 change.
15496 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15497 type to std::unique_ptr.
15498 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15499 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15500 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15501 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15502 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15503 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15504 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15505 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15506 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15507
15508 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15509
15510 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15511 std::unique_ptr.
15512 (displaced_step_clear): Rename to...
15513 (displaced_step_reset): ... this. Just call displaced->reset ().
15514 (displaced_step_clear_cleanup): Rename to...
15515 (displaced_step_reset_cleanup): ... this.
15516 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15517 (displaced_step_fixup): Likewise.
15518 (resume_1): Likewise.
15519 (handle_inferior_event): Restore child's memory before calling
15520 displaced_step_fixup on the parent.
15521 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15522 to std::unique_ptr.
15523 <step_closure>: Change type to std::unique_ptr.
15524
15525 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15526
15527 * arm-tdep.c: Include count-one-bits.h.
15528 (cleanup_block_store_pc): Use count_one_bits.
15529 (cleanup_block_load_pc): Use count_one_bits.
15530 (arm_copy_block_xfer): Use count_one_bits.
15531 (thumb2_copy_block_xfer): Use count_one_bits.
15532 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15533 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15534 (thumb_get_next_pcs_raw): Use count_one_bits.
15535 (arm_get_next_pcs_raw): Use count_one_bits_l.
15536 * arch/arm.c (bitcount): Remove.
15537 * arch/arm.h (bitcount): Remove.
15538
15539 2020-02-14 Tom Tromey <tromey@adacore.com>
15540
15541 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15542 Update.
15543 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15544 * dwarf2/loc.c (call_site_find_chain_1): Return
15545 unique_xmalloc_ptr.
15546 (call_site_find_chain): Likewise.
15547
15548 2020-02-14 Richard Biener <rguenther@suse.de>
15549
15550 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15551 on expression with division operators.
15552
15553 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15554
15555 * MAINTAINERS (Write After Approval): Adding myself.
15556
15557 2020-02-12 Tom Tromey <tom@tromey.com>
15558
15559 * event-loop.c (event_data, gdb_event, event_handler_func):
15560 Remove.
15561
15562 2020-02-12 Tom Tromey <tom@tromey.com>
15563
15564 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15565 (dwarf2_frame_objfile_data): Add comment.
15566 (find_comp_unit, set_comp_unit): New functions.
15567 (dwarf2_frame_find_fde): Use find_comp_unit.
15568 (dwarf2_build_frame_info): Use set_comp_unit.
15569
15570 2020-02-12 Tom Tromey <tom@tromey.com>
15571
15572 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15573 (comp_unit): Don't initialize objfile.
15574 (execute_cfa_program): Add text_offset parameter.
15575 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15576 (dwarf2_frame_cache): Update.
15577 (dwarf2_build_frame_info): Don't set "objfile" member.
15578
15579 2020-02-12 Tom Tromey <tom@tromey.com>
15580
15581 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15582 (decode_frame_entry): Likewise.
15583 (dwarf2_build_frame_info): Update.
15584
15585 2020-02-12 Tom Tromey <tom@tromey.com>
15586
15587 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15588 (decode_frame_entry_1): Use the comp_unit obstack.
15589
15590 2020-02-12 Tom Tromey <tom@tromey.com>
15591
15592 * dwarf2/frame.c (struct comp_unit): Add initializers and
15593 constructor.
15594 (dwarf2_frame_objfile_data): Store a comp_unit.
15595 (dwarf2_frame_find_fde): Update.
15596 (dwarf2_build_frame_info): Use "new".
15597
15598 2020-02-12 Tom Tromey <tom@tromey.com>
15599
15600 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15601 (dwarf2_fde_table): Typedef for std::vector.
15602 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15603 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15604 (decode_frame_entry): Update.
15605 (dwarf2_build_frame_info): Use "new".
15606
15607 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15608
15609 * arm-tdep.c (arm_gdbarch_init): Update.
15610 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15611 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15612 have_neon, is_m>: Change to bool.
15613
15614 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15615
15616 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15617
15618 2020-02-12 Tom Tromey <tom@tromey.com>
15619
15620 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15621
15622 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15623
15624 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15625 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15626
15627 2020-02-11 Tom Tromey <tom@tromey.com>
15628
15629 * psymtab.h: Update comment.
15630
15631 2020-02-11 Tom Tromey <tom@tromey.com>
15632
15633 * gdb_obstack.h (struct auto_obstack): Use
15634 DISABLE_COPY_AND_ASSIGN.
15635
15636 2020-02-11 Tom Tromey <tom@tromey.com>
15637
15638 * dwarf2/frame.h (struct objfile): Don't forward declare.
15639
15640 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15641
15642 * cris-tdep.c (cris_supply_gregset): Change signature to match
15643 what struct regset expects.
15644 (cris_regset): New struct.
15645 (fetch_core_registers): Remove.
15646 (cris_iterate_over_regset_sections): New function.
15647 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15648 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15649
15650 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15651
15652 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15653 registers.
15654
15655 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15656
15657 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15658
15659 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15660
15661 * configure: Re-generate.
15662
15663 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15664
15665 * configure: Re-generate.
15666
15667 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15668
15669 * acinclude: Update warning.m4 path.
15670 * warning.m4: Move to gdbsupport.
15671
15672 2020-02-11 Tom Tromey <tromey@adacore.com>
15673
15674 * remote.c (remote_console_output): Update.
15675 * printcmd.c (printf_command): Update.
15676 * event-loop.c (gdb_wait_for_event): Update.
15677 * linux-nat.c (sigchld_handler): Update.
15678 * remote-sim.c (gdb_os_write_stdout): Update.
15679 (gdb_os_flush_stdout): Update.
15680 (gdb_os_flush_stderr): Update.
15681 (gdb_os_write_stderr): Update.
15682 * exceptions.c (print_exception): Update.
15683 * remote-fileio.c (remote_fileio_func_read): Update.
15684 (remote_fileio_func_write): Update.
15685 * tui/tui.c (tui_enable): Update.
15686 * tui/tui-interp.c (tui_interp::init): Update.
15687 * utils.c (init_page_info): Update.
15688 (putchar_unfiltered, fputc_unfiltered): Update.
15689 (gdb_flush): Update.
15690 (emit_style_escape): Update.
15691 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15692 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15693 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15694 (stderr_file::write): Update.
15695 (stderr_file::puts): Update.
15696 * ui-file.h (ui_file_isatty, ui_file_write)
15697 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15698 (ui_file_puts): Don't declare.
15699
15700 2020-02-10 Tom de Vries <tdevries@suse.de>
15701
15702 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15703 sentinel to char *.
15704
15705 2020-02-09 Tom de Vries <tdevries@suse.de>
15706
15707 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15708 filename if it matches "<artificial>".
15709
15710 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15711
15712 * windows-tdep.c (struct enum_value_name): New struct.
15713 (create_enum): New function.
15714 (windows_get_siginfo_type): Create and use enum types.
15715
15716 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15717
15718 * NEWS: Mention $_siginfo support for Windows.
15719 * windows-nat.c (handle_exception): Set siginfo_er.
15720 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15721 (windows_xfer_siginfo): New function.
15722 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15723 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15724 (init_windows_gdbarch_data): New function.
15725 (get_windows_gdbarch_data): New function.
15726 (windows_get_siginfo_type): New function.
15727 (windows_init_abi): Register windows_get_siginfo_type.
15728 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15729
15730 2020-02-08 Tom Tromey <tom@tromey.com>
15731
15732 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15733 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15734 <keep>: Declare method.
15735 <m_keep>: Remove member.
15736 <~cutu_reader>: Remove.
15737 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15738 (cutu_reader::cutu_reader): Update.
15739 (cutu_reader::keep): Rename from ~cutu_reader.
15740 (process_psymtab_comp_unit, build_type_psymtabs_1)
15741 (process_skeletonless_type_unit, load_partial_comp_unit)
15742 (load_full_comp_unit, dwarf2_read_addr_index)
15743 (read_signatured_type): Update.
15744
15745 2020-02-08 Tom Tromey <tom@tromey.com>
15746
15747 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15748 "want_partial_unit" parameter.
15749 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15750 Inline check for DW_TAG_partial_unit.
15751 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15752
15753 2020-02-08 Tom Tromey <tom@tromey.com>
15754
15755 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15756 read.c.
15757 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15758 read.c.
15759
15760 2020-02-08 Tom Tromey <tom@tromey.com>
15761
15762 * dwarf2/read.c (read_address): Move to comp-unit.c.
15763 (dwarf2_rnglists_process, dwarf2_ranges_process)
15764 (read_attribute_value, dwarf_decode_lines_1)
15765 (var_decode_location, decode_locdesc): Update.
15766 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15767 read.c. Remove "cu" parameter.
15768 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15769 method.
15770
15771 2020-02-08 Tom Tromey <tom@tromey.com>
15772
15773 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15774 (read_indirect_line_string): Update.
15775 * dwarf2/comp-unit.c (read_offset): Remove.
15776 (read_comp_unit_head): Update.
15777 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15778 method.
15779 (read_offset): Don't declare.
15780
15781 2020-02-08 Tom Tromey <tom@tromey.com>
15782
15783 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15784 * dwarf2/read.c (struct comp_unit_head): Move to
15785 dwarf2/comp-unit.h.
15786 (enum class rcuh_kind): Move to comp-unit.h.
15787 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15788 (read_comp_unit_head, error_check_comp_unit_head)
15789 (read_and_check_comp_unit_head): Move to comp-unit.c.
15790 (read_offset, dwarf_unit_type_name): Likewise.
15791 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15792 (cutu_reader::cutu_reader, read_call_site_scope)
15793 (find_partial_die, follow_die_offset): Update.
15794 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15795
15796 2020-02-08 Tom Tromey <tom@tromey.com>
15797
15798 * dwarf2/read.c (read_offset_1): Move to leb.c.
15799 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15800 (dwarf_decode_macro_bytes): Update.
15801 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15802 * dwarf2/leb.h (read_offset): Declare.
15803
15804 2020-02-08 Tom Tromey <tom@tromey.com>
15805
15806 * dwarf2/read.c (dwarf2_section_size): Remove.
15807 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15808 Update.
15809 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15810
15811 2020-02-08 Tom Tromey <tom@tromey.com>
15812
15813 * dwarf2/read.c (read_initial_length): Move to leb.c.
15814 * dwarf2/leb.h (read_initial_length): Declare.
15815 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15816 handle_nonstd parameter.
15817 * dwarf2/frame.c (read_initial_length): Remove.
15818 (decode_frame_entry_1): Update.
15819
15820 2020-02-08 Tom Tromey <tom@tromey.com>
15821
15822 * dwarf2/loc.c (dwarf2_find_location_expression)
15823 (dwarf_evaluate_loc_desc::get_tls_address)
15824 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15825 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15826 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15827 (dwarf2_compile_property_to_c)
15828 (dwarf2_loc_desc_get_symbol_read_needs)
15829 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15830 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15831 (loclist_describe_location, loclist_tracepoint_var_ref)
15832 (loclist_generate_c_location): Update.
15833 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15834 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15835 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15836 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15837 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15838 (dwarf2_per_cu_data::addr_size)
15839 (dwarf2_per_cu_data::ref_addr_size)
15840 (dwarf2_per_cu_data::text_offset)
15841 (dwarf2_per_cu_data::addr_type): Now methods.
15842 (per_cu_header_read_in): Make per_cu "const".
15843 (dwarf2_version): Remove.
15844 (dwarf2_per_cu_data::int_type): Now a method.
15845 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15846 (set_die_type, read_array_type, read_subrange_index_type)
15847 (read_tag_string_type, read_subrange_type): Update.
15848 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15849 offset_size, ref_addr_size, text_offset, addr_type, version,
15850 objfile, int_type, addr_sized_int_type>: Declare methods.
15851
15852 2020-02-08 Tom Tromey <tom@tromey.com>
15853
15854 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15855 Move earlier.
15856
15857 2020-02-08 Tom Tromey <tom@tromey.com>
15858
15859 * dwarf2/read.h (dwarf_line_debug): Declare.
15860 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15861 * dwarf2/read.c: Move line_header code to new files.
15862 (dwarf_line_debug): No longer static.
15863 * dwarf2/line-header.c: New file.
15864 * dwarf2/line-header.h: New file.
15865
15866 2020-02-08 Tom Tromey <tom@tromey.com>
15867
15868 * dwarf2/read.c (struct line_header) <file_full_name,
15869 file_file_name>: Return unique_xmalloc_ptr.
15870 (line_header::file_file_name): Update.
15871 (line_header::file_full_name): Update.
15872 (dw2_get_file_names_reader): Update.
15873 (macro_start_file): Update.
15874
15875 2020-02-08 Tom Tromey <tom@tromey.com>
15876
15877 * dwarf2/read.c (struct line_header) <file_full_name,
15878 file_file_name>: Declare methods.
15879 (dw2_get_file_names_reader): Update.
15880 (file_file_name): Now a method.
15881 (file_full_name): Likewise.
15882 (macro_start_file): Update.
15883
15884 2020-02-08 Tom Tromey <tom@tromey.com>
15885
15886 * dwarf2/read.c (dwarf_always_disassemble)
15887 (show_dwarf_always_disassemble): Move to loc.c.
15888 (_initialize_dwarf2_read): Move "always-disassemble" registration
15889 to loc.c.
15890 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15891 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15892 static.
15893 (show_dwarf_always_disassemble): Move from read.c.
15894 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15895
15896 2020-02-08 Tom Tromey <tom@tromey.com>
15897
15898 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15899 (create_quick_file_names_table): Return htab_up.
15900 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15901 Update.
15902 * dwarf2/read.h (struct dwarf2_per_objfile)
15903 <quick_file_names_table>: Now htab_up.
15904
15905 2020-02-08 Tom Tromey <tom@tromey.com>
15906
15907 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15908
15909 2020-02-08 Tom Tromey <tom@tromey.com>
15910
15911 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15912 Rewrite.
15913 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15914 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15915 (abbrev_table::abbrev_table): No longer inline.
15916 (ABBREV_HASH_SIZE): Remove.
15917 (abbrev_table::m_abbrevs): Now an htab_up.
15918
15919 2020-02-08 Tom Tromey <tom@tromey.com>
15920
15921 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15922 (cutu_reader): Update.
15923 (build_type_psymtabs_1): Update.
15924 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15925 (abbrev_table::alloc_abbrev): Update.
15926 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15927 (abbrev_table::read): New static method, renamed from
15928 abbrev_table_read_table.
15929 (abbrev_table::alloc_abbrev)
15930 (abbrev_table::add_abbrev): Now private.
15931 (abbrev_table::abbrev_table): Now private.
15932 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15933
15934 2020-02-08 Tom Tromey <tom@tromey.com>
15935
15936 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15937 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15938 htab_up.
15939
15940 2020-02-08 Tom Tromey <tom@tromey.com>
15941
15942 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15943 htab_up.
15944 (lookup_dwo_unit_in_dwp): Update.
15945 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15946 on obstack.
15947
15948 2020-02-08 Tom Tromey <tom@tromey.com>
15949
15950 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15951 obstack.
15952
15953 2020-02-08 Tom Tromey <tom@tromey.com>
15954
15955 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15956 line_header_hash.
15957 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15958 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15959 Change type to htab_up.
15960
15961 2020-02-08 Tom Tromey <tom@tromey.com>
15962
15963 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15964 htab_up. Don't allocate on obstack.
15965 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15966 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15967 Change type to htab_up.
15968
15969 2020-02-08 Tom Tromey <tom@tromey.com>
15970
15971 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15972 Change type to htab_up.
15973 * dwarf2/read.c (create_signatured_type_table_from_index)
15974 (create_signatured_type_table_from_debug_names)
15975 (create_all_type_units, add_type_unit)
15976 (lookup_dwo_signatured_type, lookup_signatured_type)
15977 (process_skeletonless_type_unit): Update.
15978 (create_debug_type_hash_table, create_debug_types_hash_table):
15979 Change type of types_htab.
15980 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15981 htab_up. Don't allocate on obstack.
15982 (create_cus_hash_table): Change type of cus_htab parameter.
15983 (struct dwo_file) <cus, tus>: Now htab_up.
15984 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15985 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15986 (queue_and_load_all_dwo_tus): Update.
15987 * dwarf2/index-write.c (write_gdbindex): Update.
15988 (write_debug_names): Update.
15989
15990 2020-02-08 Tom Tromey <tom@tromey.com>
15991
15992 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15993 dwarf2/read.c. Remove "next" member. Add constructor ntad
15994 destructor.
15995 (struct dwarf2_per_objfile) <queue>: New member.
15996 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15997 dwarf2/read.h.
15998 (dwarf2_queue, dwarf2_queue_tail): Remove.
15999 (class dwarf2_queue_guard): Add parameter to constructor. Use
16000 DISABLE_COPY_AND_ASSIGN.
16001 <m_per_objfile>: New member.
16002 <~dwarf2_queue_guard>: Rewrite.
16003 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16004 Update.
16005 (~dwarf2_queue_item): New.
16006
16007 2020-02-08 Tom Tromey <tom@tromey.com>
16008
16009 * dwarf2/read.c (struct die_info) <has_children>: New member.
16010 (dw2_get_file_names_reader): Remove has_children.
16011 (dw2_get_file_names): Update.
16012 (read_cutu_die_from_dwo): Remove has_children.
16013 (cutu_reader::init_tu_and_read_dwo_dies)
16014 (cutu_reader::cutu_reader): Update.
16015 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16016 Remove has_children.
16017 (build_type_psymtabs_1, process_skeletonless_type_unit)
16018 (load_partial_comp_unit, load_full_comp_unit): Update.
16019 (create_dwo_cu_reader): Remove has_children.
16020 (create_cus_hash_table, read_die_and_children): Update.
16021 (read_full_die_1,read_full_die): Remove has_children.
16022 (read_signatured_type): Update.
16023 (class cutu_reader) <has_children>: Remove.
16024
16025 2020-02-08 Tom Tromey <tom@tromey.com>
16026
16027 * dwarf2/expr.c: Rename from dwarf2expr.c.
16028 * dwarf2/expr.h: Rename from dwarf2expr.h.
16029 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16030 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16031 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16032 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16033 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16034 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16035 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16036 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16037 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16038 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16039 * dwarf2/loc.c: Rename from dwarf2loc.c.
16040 * dwarf2/loc.h: Rename from dwarf2loc.h.
16041 * dwarf2/read.c: Rename from dwarf2read.c.
16042 * dwarf2/read.h: Rename from dwarf2read.h.
16043 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16044 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16045 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16046 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16047 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16048 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16049 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16050 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16051 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16052 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16053 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16054 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16055 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16056 Update.
16057 * Makefile.in (COMMON_SFILES): Update.
16058 (HFILES_NO_SRCDIR): Update.
16059
16060 2020-02-08 Tom Tromey <tom@tromey.com>
16061
16062 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16063 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16064
16065 2020-02-08 Tom Tromey <tom@tromey.com>
16066
16067 * dwarf2read.h (struct die_info): Don't declare.
16068
16069 2020-02-08 Tom Tromey <tom@tromey.com>
16070
16071 * dwarf2read.h (die_info_ptr): Remove typedef.
16072
16073 2020-02-08 Tom Tromey <tom@tromey.com>
16074
16075 * dwarf2read.c (read_call_site_scope)
16076 (handle_data_member_location, dwarf2_add_member_fn)
16077 (mark_common_block_symbol_computed, read_common_block)
16078 (attr_to_dynamic_prop, partial_die_info::read)
16079 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16080 (dwarf2_symbol_mark_computed, set_die_type): Update.
16081 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16082 method.
16083 (attr_form_is_block): Don't declare.
16084 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16085
16086 2020-02-08 Tom Tromey <tom@tromey.com>
16087
16088 * dwarf2read.c (dwarf2_find_base_address, )
16089 (read_call_site_scope, rust_containing_type)
16090 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16091 (handle_data_member_location, dwarf2_add_member_fn)
16092 (get_alignment, read_structure_type, process_structure_scope)
16093 (mark_common_block_symbol_computed, read_common_block)
16094 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16095 (partial_die_info::read, read_attribute_value, new_symbol)
16096 (lookup_die_type, dwarf2_get_ref_die_offset)
16097 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16098 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16099 (dwarf2_symbol_mark_computed): Update.
16100 * dwarf2/attribute.h (struct attribute) <value_as_address,
16101 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16102 methods.
16103 (value_as_address, attr_form_is_section_offset)
16104 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16105 * dwarf2/attribute.c (attribute::value_as_address)
16106 (attribute::form_is_section_offset, attribute::form_is_constant)
16107 (attribute::form_is_ref): Now methods.
16108
16109 2020-02-08 Tom Tromey <tom@tromey.com>
16110
16111 * dwarf2read.c (struct attribute, DW_STRING)
16112 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16113 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16114 (attr_form_is_block, attr_form_is_section_offset)
16115 (attr_form_is_constant, attr_form_is_ref): Move.
16116 * dwarf2/attribute.h: New file.
16117 * dwarf2/attribute.c: New file, from dwarf2read.c.
16118 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16119
16120 2020-02-08 Tom Tromey <tom@tromey.com>
16121
16122 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16123 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16124 Move.
16125 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16126 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16127 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16128 abbrev.c.
16129 * dwarf2/abbrev.h: New file.
16130 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16131 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16132
16133 2020-02-08 Tom Tromey <tom@tromey.com>
16134
16135 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16136 (dwarf2_section_size, dwarf2_get_section_info)
16137 (create_signatured_type_table_from_debug_names)
16138 (create_addrmap_from_aranges, read_debug_names_from_section)
16139 (get_gdb_index_contents_from_section, read_comp_unit_head)
16140 (error_check_comp_unit_head, read_abbrev_offset)
16141 (create_debug_type_hash_table, init_cu_die_reader)
16142 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16143 (read_comp_units_from_section, create_cus_hash_table)
16144 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16145 (create_dwp_v2_section, dwarf2_rnglists_process)
16146 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16147 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16148 (read_indirect_string_from_dwz, read_addr_index_1)
16149 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16150 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16151 (fill_in_loclist_baton): Update.
16152 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16153 get_containing_section, get_bfd_owner, get_bfd_section,
16154 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16155 (dwarf2_read_section, get_section_name, get_section_file_name)
16156 (get_containing_section, get_section_bfd_owner)
16157 (get_section_bfd_section, get_section_name, get_section_file_name)
16158 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16159 declare.
16160 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16161 (dwarf2_section_info::get_bfd_owner)
16162 (dwarf2_section_info::get_bfd_section)
16163 (dwarf2_section_info::get_name)
16164 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16165 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16166 (dwarf2_section_info::read): Now methods.
16167 * dwarf-index-write.c (class debug_names): Update.
16168
16169 2020-02-08 Tom Tromey <tom@tromey.com>
16170
16171 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16172 Move to dwarf2/section.h.
16173 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16174 (get_section_bfd_section, get_section_name)
16175 (get_section_file_name, get_section_id, get_section_flags)
16176 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16177 dwarf2/section.c.
16178 * dwarf2/section.h: New file.
16179 * dwarf2/section.c: New file, from dwarf2read.c.
16180 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16181
16182 2020-02-08 Tom Tromey <tom@tromey.com>
16183
16184 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16185 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16186 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16187 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16188 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16189 * dwarf2/leb.h: New file, from dwarf2read.c.
16190 * dwarf2/leb.c: New file, from dwarf2read.c.
16191 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16192 Remove.
16193 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16194 (COMMON_SFILES): Add dwarf2/leb.c.
16195
16196 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16197
16198 GDB 9.1 released.
16199
16200 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16201
16202 PR gdb/25190:
16203 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16204 * gdb/remote.c (remote_console_output): Update.
16205 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16206 (ui_file_puts): ...this.
16207 * gdb/ui-file.h (ui_file_puts): Add declaration.
16208 * gdb/utils.c (emit_style_escape): Update.
16209 (flush_wrap_buffer): Update.
16210 (fputs_maybe_filtered): Update.
16211 (fputs_unfiltered): Add function.
16212
16213 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16214
16215 * gdb/event-loop.c (gdb_wait_for_event): Update.
16216 * gdb/printcmd.c (printf_command): Update.
16217 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16218 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16219 (gdb_os_flush_stderr): Update.
16220 * gdb/remote.c (remote_console_output): Update.
16221 * gdb/ui-file.c (gdb_flush): Rename to...
16222 (ui_file_flush): ...this.
16223 (stderr_file::write): Update.
16224 (stderr_file::puts): Update.
16225 * gdb/ui-file.h (gdb_flush): Rename to...
16226 (ui_file_flush): ...this.
16227 * gdb/utils.c (gdb_flush): Add function.
16228 * gdb/utils.h (gdb_flush): Add declaration.
16229
16230 2020-02-07 Tom Tromey <tromey@adacore.com>
16231
16232 PR breakpoints/24915:
16233 * source.c (find_and_open_source): Do not check basenames_may_differ.
16234
16235 2020-02-07 Tom Tromey <tom@tromey.com>
16236
16237 * README: Update gdbserver documentation.
16238 * gdbserver: Move to top level.
16239 * configure.tgt (build_gdbserver): Remove.
16240 * configure.ac: Remove --enable-gdbserver.
16241 * configure: Rebuild.
16242 * Makefile.in (distclean): Don't mention gdbserver.
16243
16244 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16245
16246 * source-cache.c (source_cache::ensure): Surround
16247 get_plain_source_lines with a try/catch.
16248 (source_cache::get_line_charpos): Get rid of try/catch
16249 and only check for the return value of "ensure".
16250 * tui/tui-source.c (tui_source_window::set_contents):
16251 Simplify "nlines" calculation.
16252
16253 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16254
16255 * MAINTAINERS (Write After Approval): Add myself.
16256
16257 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16258
16259 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16260 function call.
16261
16262 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16263
16264 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16265
16266 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16267
16268 * nat/riscv-linux-tdesc.h: New file.
16269 * nat/riscv-linux-tdesc.c: New file, taking code from...
16270 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16271 ... here.
16272 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16273 NATDEPFILES.
16274
16275 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16276
16277 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16278 we don't set the fake simulator ptid to the null_ptid.
16279
16280 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16281
16282 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16283 * gdbthread.h (class thread_info) <resumed>: Likewise.
16284 * infrun.c (resume_1): Likewise.
16285 (proceed): Likewise.
16286 (infrun_thread_stop_requested): Likewise.
16287 (stop_all_threads): Likewise.
16288 (handle_inferior_event): Likewise.
16289 (restart_threads): Likewise.
16290 (finish_step_over): Likewise.
16291 (keep_going_stepped_thread): Likewise.
16292 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16293 (linux_handle_extended_wait): Likewise.
16294 * record-btrace.c (get_thread_current_frame_id): Likewise.
16295 * record-full.c (record_full_wait_1): Likewise.
16296 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16297 * target.c (target_resume): Likewise.
16298 * thread.c (set_running_thread): Likewise.
16299
16300 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16301
16302 * f-valprint.c (f77_print_array_1): Changed datatype of index
16303 variable to LONGEST from int to enable it to contain bound
16304 values correctly.
16305
16306 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16307
16308 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16309 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16310 offsets according to FLEN determined.
16311 (riscv_linux_nat_target::read_description): Determine FLEN
16312 dynamically.
16313 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16314 according to FLEN determined.
16315 (riscv_linux_nat_target::store_registers): Likewise.
16316
16317 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16318
16319 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16320 when reg->group is empty and reggroup is not.
16321
16322 2020-01-31 Tom Tromey <tromey@adacore.com>
16323
16324 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16325 Call beneath target's mourn_inferior after unpushing.
16326
16327 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16328
16329 PR tui/9765
16330 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16331 have enough lines to fill the screen, still return the lowest
16332 address we found.
16333
16334 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16335
16336 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16337 '-', '<', and '>' commands.
16338
16339 2020-01-29 Pedro Alves <palves@redhat.com>
16340 Sergio Durigan Junior <sergiodj@redhat.com>
16341
16342 * infcmd.c (construct_inferior_arguments): Assert that
16343 'argc' is greater than 0.
16344
16345 2020-01-29 Luis Machado <luis.machado@linaro.org>
16346
16347 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16348 (BRK_INSN_MASK): Define to 0xd4200000.
16349 (aarch64_program_breakpoint_here_p): New function.
16350 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16351 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16352 breakpoint.c.
16353 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16354 breakpoint.h
16355 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16356 call gdbarch_program_breakpoint_here_p.
16357 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16358 default_program_breakpoint_here_p, changed return type to bool and
16359 simplified.
16360 * breakpoint.h (program_breakpoint_here): Moved prototype to
16361 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16362 return type to bool.
16363 * gdbarch.c: Regenerate.
16364 * gdbarch.h: Regenerate.
16365 * gdbarch.sh (program_breakpoint_here_p): New method.
16366 * infrun.c (handle_signal_stop): Call
16367 gdbarch_program_breakpoint_here_p.
16368
16369 2020-01-26 Tom Tromey <tom@tromey.com>
16370
16371 * ctfread.c (struct ctf_fp_info): Reindent.
16372 (_initialize_ctfread): Remove.
16373
16374 2020-01-26 Tom Tromey <tom@tromey.com>
16375
16376 * psymtab.c (partial_map_expand_apply)
16377 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16378 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16379 (psym_print_stats, psym_expand_symtabs_for_function)
16380 (psym_map_symbol_filenames, psym_map_matching_symbols)
16381 (psym_expand_symtabs_matching)
16382 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16383 (maintenance_check_psymtabs): Use new methods.
16384 * psympriv.h (struct partial_symtab) <readin_p,
16385 get_compunit_symtab>: New methods.
16386 <readin, compunit_symtab>: Remove members.
16387 (struct standard_psymtab): New.
16388 (struct legacy_psymtab): Derive from standard_psymtab.
16389 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16390 standard_psymtab.
16391 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16392
16393 2020-01-26 Tom Tromey <tom@tromey.com>
16394
16395 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16396 read_dependencies. Add assert.
16397 * psymtab.c (partial_symtab::read_dependencies): New method.
16398 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16399 method.
16400 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16401 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16402 read_dependencies.
16403 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16404 Add assert.
16405
16406 2020-01-26 Tom Tromey <tom@tromey.com>
16407
16408 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16409 Call expand_psymtab.
16410 (xcoff_read_symtab): Call expand_psymtab.
16411 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16412 legacy_expand_psymtab.
16413 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16414 method.
16415 (struct legacy_psymtab) <expand_psymtab>: Implement.
16416 <legacy_expand_psymtab>: New member.
16417 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16418 (parse_partial_symbols): Set legacy_expand_psymtab.
16419 (psymtab_to_symtab_1): Change argument order. Call
16420 expand_psymtab.
16421 (new_psymtab): Set legacy_expand_psymtab.
16422 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16423 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16424 expand_psymtab.
16425 (dwarf2_psymtab::expand_psymtab): Rename from
16426 psymtab_to_symtab_1. Call expand_psymtab.
16427 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16428 (dbx_end_psymtab): Likewise.
16429 (dbx_psymtab_to_symtab_1): Change argument order. Call
16430 expand_psymtab.
16431 (dbx_read_symtab): Call expand_psymtab.
16432 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16433 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16434 (ctf_psymtab::read_symtab): Call expand_psymtab.
16435
16436 2020-01-26 Tom Tromey <tom@tromey.com>
16437
16438 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16439 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16440 messages.
16441 * mdebugread.c (mdebug_read_symtab): Remove prints.
16442 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16443 assert.
16444 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16445
16446 2020-01-26 Tom Tromey <tom@tromey.com>
16447
16448 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16449 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16450 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16451 legacy_symtab.
16452 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16453 * psymtab.c (psymtab_to_symtab): Call method.
16454 (dump_psymtab): Update.
16455 * psympriv.h (struct partial_symtab): Add virtual destructor.
16456 <read_symtab>: New method.
16457 (struct legacy_symtab): New.
16458 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16459 (struct pst_map) <pst>: Now a legacy_psymtab.
16460 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16461 (new_psymtab): Use legacy_psymtab.
16462 * dwarf2read.h (struct dwarf2_psymtab): New.
16463 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16464 * dwarf2read.c (dwarf2_create_include_psymtab)
16465 (dwarf2_build_include_psymtabs, create_type_unit_group)
16466 (create_partial_symtab, process_psymtab_comp_unit_reader)
16467 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16468 (set_partial_user): Use dwarf2_psymtab.
16469 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16470 (psymtab_to_symtab_1, process_full_comp_unit)
16471 (process_full_type_unit, dwarf2_ranges_read)
16472 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16473 (dwarf_decode_lines): Use dwarf2_psymtab.
16474 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16475 (add_address_entry_worker, write_one_signatured_type)
16476 (recursively_count_psymbols, recursively_write_psymbols)
16477 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16478 (write_debug_names): Likewise.
16479 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16480 <pst>: Now a legacy_psymtab.
16481 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16482 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16483 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16484 * ctfread.c (struct ctf_psymtab): New.
16485 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16486 ctf_psymtab.
16487 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16488 (create_partial_symtab): Return a ctf_psymtab.
16489 (scan_partial_symbols): Update.
16490
16491 2020-01-26 Tom Tromey <tom@tromey.com>
16492
16493 * xcoffread.c (xcoff_start_psymtab): Use new.
16494 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16495 renamed from start_psymtab_common.
16496 * psympriv.h (struct partial_symtab): Add new constructor.
16497 (start_psymtab_common): Don't declare.
16498 * mdebugread.c (parse_partial_symbols): Use new.
16499 * dwarf2read.c (create_partial_symtab): Use new.
16500 * dbxread.c (start_psymtab): Use new.
16501 * ctfread.c (create_partial_symtab): Use new.
16502
16503 2020-01-26 Tom Tromey <tom@tromey.com>
16504
16505 * xcoffread.c (xcoff_end_psymtab): Use new.
16506 * psymtab.c (start_psymtab_common): Use new.
16507 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16508 Update.
16509 * psympriv.h (struct partial_symtab): Add parameters to
16510 constructor. Don't inline.
16511 (allocate_psymtab): Don't declare.
16512 * mdebugread.c (new_psymtab): Use new.
16513 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16514 * dbxread.c (dbx_end_psymtab): Use new.
16515
16516 2020-01-26 Tom Tromey <tom@tromey.com>
16517
16518 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16519 allocate_psymtab. Update documentation.
16520 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16521 allocate_psymtab. Do not use new.
16522 (allocate_psymtab): Use new. Update.
16523
16524 2020-01-26 Tom Tromey <tom@tromey.com>
16525
16526 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16527 * psymtab.c (psym_print_stats): Update.
16528 * psympriv.h (struct partial_symtab) <readin,
16529 psymtabs_addrmap_supported, anonymous>: Now bool.
16530 * mdebugread.c (psymtab_to_symtab_1): Update.
16531 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16532 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16533 (process_full_comp_unit, process_full_type_unit): Update.
16534 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16535 * ctfread.c (psymtab_to_symtab): Update.
16536
16537 2020-01-26 Tom Tromey <tom@tromey.com>
16538
16539 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16540 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16541 * psymtab.c (psymtab_storage): Delete psymtabs.
16542 (psymtab_storage::allocate_psymtab): Use new.
16543 (psymtab_storage::discard_psymtab): Use delete.
16544 * psympriv.h (struct partial_symtab): Add constructor and
16545 initializers.
16546
16547 2020-01-26 Tom Tromey <tom@tromey.com>
16548
16549 * machoread.c: Do not include psympriv.h.
16550
16551 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16552
16553 * NEWS: Mention the new option and the set/show commands.
16554
16555 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16556
16557 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16558 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16559 (validate_exec_file): New variables, enums, functions.
16560 (exec_file_locate_attach, print_section_info): Style the filenames.
16561 (_initialize_exec): Install show_exec_file_mismatch_command and
16562 set_exec_file_mismatch_command.
16563 * gdbcore.h (validate_exec_file): Declare.
16564 * infcmd.c (attach_command): Call validate_exec_file.
16565 * remote.c ( remote_target::remote_add_inferior): Likewise.
16566
16567 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16568
16569 * frame.c (find_frame_sal): Move call to get_next_frame into more
16570 inner scope.
16571 * inline-frame.c (inilne_state) <inline_state>: Update argument
16572 types.
16573 (inilne_state) <skipped_symbol>: Rename to...
16574 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16575 (skip_inline_frames): Build vector of skipped symbols and use this
16576 to reate the inline_state.
16577 (inline_skipped_symbol): Add a comment and some assertions, fetch
16578 skipped symbol from the list.
16579
16580 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16581
16582 * buildsym.c (lte_is_less_than): Delete.
16583 (buildsym_compunit::end_symtab_with_blockvector): Create local
16584 lambda function to sort line table entries, and use
16585 std::stable_sort instead of std::sort.
16586 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16587 markers when looking for a previous line.
16588
16589 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16590
16591 * dwarf2read.c (lnp_state_machine::record_line): Include
16592 end_sequence parameter in debug print out. Record the line if we
16593 are at an end_sequence marker even if it's not the start of a
16594 statement.
16595 * symmisc.c (maintenance_print_one_line_table): Print end of
16596 sequence markers with 'END' not '0'.
16597
16598 2020-01-24 Pedro Alves <palves@redhat.com>
16599
16600 PR gdb/25410
16601 * thread.c (scoped_restore_current_thread::restore): Use
16602 switch_to_inferior_no_thread.
16603 * exec.c: Include "progspace-and-thread.h".
16604 (add_target_sections, remove_target_sections):
16605 scoped_restore_current_pspace_and_thread instead of
16606 scoped_restore_current_thread.
16607 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16608 and aspace to the inferior before calling clone_program_space.
16609 Remove stale comment.
16610
16611 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16612
16613 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16614 (arm_netbsd_nat_target::fetch_registers): ...this.
16615 (arm_nbsd_nat_target::store_registers): Rename to...
16616 (arm_netbsd_nat_target::store_registers): ...this.
16617
16618 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16619
16620 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16621 register_t.
16622
16623 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16624
16625 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16626 Update comment.
16627 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16628 Likewise.
16629 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16630 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16631 the correct replacement (iterate_over_regset_sections).
16632 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16633 Update comment.
16634
16635 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16636
16637 PR gdb/23718
16638 * gdb/python/python.c (execute_gdb_command): Call
16639 async_enable_stdin in catch block.
16640
16641 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16642
16643 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16644 SWITCH_THRU_ALL_UIS.
16645
16646 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16647
16648 PR tui/9765
16649 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16650 comment, add extra parameter, and update to store previous symbol
16651 when appropriate.
16652 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16653 add extra parameter.
16654 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16655 remove unneeded parameter, add try/catch around gdb_print_insn,
16656 rewrite to add items to asm_lines vector.
16657 (tui_find_backward_disassembly_start_address): New function.
16658 (tui_find_disassembly_address): Updated throughout.
16659 (tui_disasm_window::set_contents): Update for changes to
16660 tui_disassemble.
16661 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16662 number of lines to scroll.
16663
16664 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16665
16666 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16667 (SECT_OFF_DATA): Likewise.
16668 (SECT_OFF_RODATA): Likewise.
16669 (SECT_OFF_TEXT): Likewise.
16670 (SECT_OFF_BSS): Likewise.
16671 (struct objfile) <text_section_offset, data_section_offset>: New
16672 methods.
16673 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16674 objfile::text_section_offset.
16675 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16676 * coffread.c (coff_symtab_read): Likewise.
16677 (enter_linenos): Likewise.
16678 (process_coff_symbol): Likewise.
16679 * ctfread.c (get_objfile_text_range): Likewise.
16680 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16681 Use objfile::data_section_offset.
16682 * dwarf2-frame.c (execute_cfa_program): Use
16683 objfile::text_section_offset.
16684 (dwarf2_frame_find_fde): Likewise.
16685 * dwarf2read.c (create_addrmap_from_index): Likewise.
16686 (create_addrmap_from_aranges): Likewise.
16687 (dw2_find_pc_sect_compunit_symtab): Likewise.
16688 (process_psymtab_comp_unit_reader): Likewise.
16689 (add_partial_symbol): Likewise.
16690 (add_partial_subprogram): Likewise.
16691 (process_full_comp_unit): Likewise.
16692 (read_file_scope): Likewise.
16693 (read_func_scope): Likewise.
16694 (read_lexical_block_scope): Likewise.
16695 (read_call_site_scope): Likewise.
16696 (dwarf2_rnglists_process): Likewise.
16697 (dwarf2_ranges_process): Likewise.
16698 (dwarf2_ranges_read): Likewise.
16699 (dwarf_decode_lines_1): Likewise.
16700 (new_symbol): Likewise.
16701 (dwarf2_fetch_die_loc_sect_off): Likewise.
16702 (dwarf2_per_cu_text_offset): Likewise.
16703 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16704 * hppa-tdep.c (read_unwind_info): Likewise.
16705 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16706 * psympriv.h (struct partial_symtab): Likewise.
16707 * psymtab.c (find_pc_sect_psymtab): Likewise.
16708 * solib-svr4.c (enable_break): Likewise.
16709 * stap-probe.c (relocate_address): Use
16710 objfile::data_section_offset.
16711 * xcoffread.c (enter_line_range): Use
16712 objfile::text_section_offset.
16713 (read_xcoff_symtab): Likewise.
16714
16715 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16716
16717 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16718 declaration to narrower scopes.
16719
16720 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16721
16722 * darwin-nat.h (struct darwin_exception_msg, enum
16723 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16724 Move up.
16725 (class darwin_nat_target) <wait_1, check_new_threads,
16726 decode_exception_message, decode_message, stop_inferior,
16727 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16728 * darwin-nat.c (darwin_check_new_threads): Rename to...
16729 (darwin_nat_target::check_new_threads): ... this.
16730 (darwin_suspend_inferior_it): Remove.
16731 (darwin_decode_exception_message): Rename to...
16732 (darwin_nat_target::decode_exception_message): ... this.
16733 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16734 (darwin_decode_message): Rename to...
16735 (darwin_nat_target::decode_message): ... this.
16736 (cancel_breakpoint): Rename to...
16737 (darwin_nat_target::cancel_breakpoint): ... this.
16738 (darwin_wait): Rename to...
16739 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16740 instead of iterate_over_inferiors.
16741 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16742 (darwin_stop_inferior): Rename to...
16743 (darwin_nat_target::stop_inferior): ... this.
16744 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16745 (darwin_init_thread_list): Rename to...
16746 (darwin_nat_target::init_thread_list): ... this.
16747 (darwin_ptrace_him): Rename to...
16748 (darwin_nat_target::ptrace_him): ... this.
16749 (darwin_nat_target::create_inferior): Pass lambda function to
16750 fork_inferior.
16751 (darwin_nat_target::detach): Call stop_inferior instead of
16752 darwin_stop_inferior.
16753 * fork-inferior.h (fork_inferior): Change init_trace_fun
16754 parameter to gdb::function_view.
16755 * fork-inferior.c (fork_inferior): Likewise.
16756
16757 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16758
16759 * i386-cygwin-tdep.c (core_process_module_section): Update.
16760 * windows-nat.c (struct lm_info_windows): Add text_offset.
16761 (windows_xfer_shared_libraries): Update.
16762 * windows-tdep.c (windows_xfer_shared_library):
16763 Add text_offset_cached argument.
16764 * windows-tdep.h (windows_xfer_shared_library): Update.
16765
16766 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16767
16768 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16769
16770 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16771
16772 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16773 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16774 replace with range-based for.
16775 (gdbsim_interrupt_inferior): Remove.
16776 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16777 with a range-based for. Inline code from
16778 gdbsim_interrupt_inferior.
16779
16780 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16781
16782 * infrun.c (proceed): Fix indentation.
16783
16784 2020-01-21 Tom Tromey <tromey@adacore.com>
16785
16786 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16787 * python/python.c (python_extension_ops): Update.
16788 (gdbpy_colorize): New function.
16789 * python/lib/gdb/__init__.py (colorize): New function.
16790 * extension.h (ext_lang_colorize): Declare.
16791 * extension.c (ext_lang_colorize): New function.
16792 * extension-priv.h (struct extension_language_ops) <colorize>: New
16793 member.
16794 * cli/cli-style.c (_initialize_cli_style): Update help text.
16795
16796 2020-01-21 Luis Machado <luis.machado@linaro.org>
16797
16798 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16799 <cond>: Change type to bool.
16800 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16801 (aarch64_displaced_step_cb): Likewise.
16802 (aarch64_displaced_step_tb): Likewise.
16803
16804 2020-01-21 Luis Machado <luis.machado@linaro.org>
16805
16806 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16807 output.
16808
16809 2020-01-21 Luis Machado <luis.machado@linaro.org>
16810
16811 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16812 <pc_adjust>: Adjust the documentation.
16813 (aarch64_displaced_step_fixup): Check if PC really moved before
16814 adjusting it.
16815
16816 2020-01-19 Tom Tromey <tom@tromey.com>
16817
16818 * disasm.c (~gdb_disassembler): New destructor.
16819 (gdb_buffered_insn_length): Call disassemble_free_target.
16820 * disasm.h (class gdb_disassembler): Declare destructor. Use
16821 DISABLE_COPY_AND_ASSIGN.
16822
16823 2020-01-19 Tom Tromey <tom@tromey.com>
16824
16825 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16826 (die_reader_func_ftype): Remove.
16827 (cutu_reader): New class.
16828 (dw2_get_file_names_reader): Remove "data" parameter.
16829 (dw2_get_file_names): Use cutu_reader.
16830 (create_debug_type_hash_table): Update.
16831 (read_cutu_die_from_dwo): Update comment.
16832 (lookup_dwo_unit): Add dwo_name parameter.
16833 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16834 die_reader_func_ftype and data parameters.
16835 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16836 Remove die_reader_func_ftype and data parameters.
16837 (~cutu_reader): New; from init_cutu_and_read_dies.
16838 (cutu_reader::cutu_reader): Rename from
16839 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16840 and data parameters.
16841 (init_cutu_and_read_dies_simple): Remove.
16842 (struct process_psymtab_comp_unit_data): Remove.
16843 (process_psymtab_comp_unit_reader): Remove data parameter; add
16844 want_partial_unit and pretend_language parameters.
16845 (process_psymtab_comp_unit): Use cutu_reader.
16846 (build_type_psymtabs_reader): Remove data parameter.
16847 (build_type_psymtabs_1): Use cutu_reader.
16848 (process_skeletonless_type_unit): Likewise.
16849 (load_partial_comp_unit_reader): Remove.
16850 (load_partial_comp_unit): Use cutu_reader.
16851 (load_full_comp_unit_reader): Remove.
16852 (load_full_comp_unit): Use cutu_reader.
16853 (struct create_dwo_cu_data): Remove.
16854 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16855 dwo_unit parameters.
16856 (create_cus_hash_table): Use cutu_reader.
16857 (struct dwarf2_read_addr_index_data): Remove.
16858 (dwarf2_read_addr_index_reader): Remove.
16859 (dwarf2_read_addr_index): Use cutu_reader.
16860 (read_signatured_type_reader): Remove.
16861 (read_signatured_type): Use cutu_reader.
16862
16863 2020-01-19 Tom Tromey <tom@tromey.com>
16864
16865 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16866 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16867 (tui_wrefresh): Declare.
16868 * tui/tui-wingeneral.c (suppress_output): New global.
16869 (tui_suppress_output, ~tui_suppress_output): New constructor and
16870 destructor.
16871 (tui_wrefresh): New function.
16872 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16873 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16874 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16875 method.
16876 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16877 tui_wrefresh.
16878 (tui_data_window::no_refresh): New method.
16879 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16880 (tui_reg_command): Use tui_suppress_output
16881 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16882 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16883 method.
16884 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16885
16886 2020-01-19 Tom Tromey <tom@tromey.com>
16887
16888 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16889 Handle case where symtab is null.
16890
16891 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16892
16893 * linux-fork.c (one_fork_p): Simplify.
16894
16895 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16896
16897 * top.c (struct qt_args): Remove.
16898 (kill_or_detach): Change return type to void, replace `void *`
16899 parameter with a proper one.
16900 (print_inferior_quit_action): Likewise.
16901 (quit_confirm): Use range-based for loop to iterate over inferiors.
16902 (quit_force): Likewise.
16903
16904 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16905
16906 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16907 `void *` parameter with proper parameters.
16908 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16909 (print_one_inferior): Change return type to void, replace `void *`
16910 parameter with proper parameters.
16911 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16912 inferiors.
16913 (get_other_inferior): Remove.
16914 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16915 inferiors.
16916
16917 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16918
16919 * mi/mi-interp.c (report_initial_inferior): Remove.
16920 (mi_interp::init): Use range-based for to iterate over inferiors.
16921
16922 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
16923
16924 * python/py-inferior.c (build_inferior_list): Remove.
16925 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16926
16927 2020-01-16 Christian Biesinger <cbiesinger@google.com>
16928
16929 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16930 (btrace_stitch_trace): Likewise.
16931 * charset.c (intermediate_encoding): Likewise (vaild).
16932 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16933 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16934 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16935
16936 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
16937
16938 * windows-tdep.c (windows_get_tlb_type):
16939 Add rtl_user_process_parameters type.
16940
16941 2020-01-16 Pedro Alves <palves@redhat.com>
16942 Norbert Lange <nolange79@gmail.com>
16943
16944 PR build/24805
16945 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16946 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16947 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16948 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16949 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16950 (ps_plog): Redeclare exported functions with default visibility.
16951
16952 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16953
16954 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16955 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16956
16957 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
16958
16959 * infcmd.c (post_create_inferior): Use get_thread_regcache
16960 instead of get_current_regcache.
16961
16962 2020-01-14 Tom Tromey <tom@tromey.com>
16963
16964 PR symtab/12535:
16965 * python/python.c (gdbpy_decode_line): Treat empty string the same
16966 as no argument.
16967
16968 2020-01-14 Tom Tromey <tom@tromey.com>
16969
16970 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16971
16972 2020-01-14 Tom Tromey <tom@tromey.com>
16973
16974 * nat/linux-btrace.c: Don't include <config.h>.
16975 * nat/linux-ptrace.c: Don't include <config.h>.
16976 * nat/x86-linux-dregs.c: Don't include <config.h>.
16977
16978 2020-01-14 Tom Tromey <tom@tromey.com>
16979
16980 * configure: Rebuild.
16981 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16982
16983 2020-01-14 Tom Tromey <tom@tromey.com>
16984
16985 * nat/x86-linux-dregs.c: Include configh.h.
16986 * nat/linux-ptrace.c: Include configh.h.
16987 * nat/linux-btrace.c: Include configh.h.
16988 * defs.h: Include config.h, bfd.h.
16989 * configure.ac: Don't source common.host.
16990 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16991 * configure: Rebuild.
16992 * acinclude.m4: Update path.
16993 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16994 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16995 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16996 (CLIBS): Add LIBSUPPORT.
16997 (CDEPS): Likewise.
16998 (COMMON_SFILES): Remove gdbsupport files.
16999 (HFILES_NO_SRCDIR): Likewise.
17000 (stamp-version): Update path to create-version.sh.
17001 (ALLDEPFILES): Remove gdbsupport files.
17002
17003 2020-01-14 Tom Tromey <tom@tromey.com>
17004
17005 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17006 USE_WIN32API when needed.
17007 * configure.ac (USE_WIN32API): Don't define.
17008 (WIN32LIBS): Use WIN32APILIBS.
17009 * configure: Rebuild.
17010
17011 2020-01-14 Tom Tromey <tom@tromey.com>
17012
17013 * configure: Rebuild.
17014 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17015
17016 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17017
17018 * skip.c (skip_function_command): Make skip w/o arguments use the
17019 name of the inlined function if pc is inside any inlined function.
17020
17021 2020-01-14 Luis Machado <luis.machado@linaro.org>
17022
17023 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17024 * infrun.c (resume_1): Likewise.
17025 (handle_inferior_event): Remove stale comment.
17026 * linux-nat.c (linux_nat_target::resume): Update comments.
17027 (save_stop_reason): Likewise.
17028 (linux_nat_filter_event): Likewise.
17029 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17030
17031 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17032
17033 * elfread.c (record_minimal_symbol): Set section index to 0 for
17034 non-allocatable sections.
17035
17036
17037 2020-01-13 Ali Tamur <tamur@google.com>
17038
17039 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17040 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17041 to gdb::optional. Update comments.
17042 (dwo_file): Update comments.
17043 (read_attribute): Update API to take an additional out parameter,
17044 need_reprocess. This is used to mark attributes that need other
17045 attributes (e.g. str_offsets_base) for correct computation which may not
17046 have been read yet.
17047 (read_attribute_reprocess): New function declaration.
17048 (read_addr_index): Likewise.
17049 (read_dwo_str_index): Likewise.
17050 (read_stub_str_index): Likewise.
17051 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17052 (lookup_addr_base): New function definition.
17053 (lookup_ranges_base): Likewise.
17054 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17055 lookup_ranges_base.
17056 (init_cutu_and_read_dies): Update comments.
17057 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17058 unit. This is used to inherit parent's str_offsets_base and addr_base.
17059 Update comments.
17060 (init_cutu_and_read_dies_simple): Reflect API changes.
17061 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17062 (create_cus_hash_table): Change API to take parent compile unit.
17063 Reflect API changes.
17064 (open_and_init_dwo_file): Reflect API changes.
17065 (dwarf2_get_pc_bounds): Update comments.
17066 (dwarf2_record_block_ranges): Likewise.
17067 (read_full_die_1): Change implementation to reprocess attributes that
17068 need str_offsets_base and addr_base.
17069 (partial_die_info::read): Likewise.
17070 (read_attribute_reprocess): New function definition.
17071 (read_attribute_value): Change API to take an additional out parameter,
17072 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17073 when a non-dwo compile unit has index based attributes.
17074 (read_attribute): Reflect API changes.
17075 (read_addr_index_1): Reflect API changes. Update comments.
17076 (dwarf2_read_addr_index_data): Reflect API changes.
17077 (dwarf2_read_addr_index): Likewise.
17078 (read_str_index): Change API and implementation. This becomes a helper
17079 to be used by the new string index related methods. Update error
17080 message and comments.
17081 (read_dwo_str_index): New function definition.
17082 (read_stub_str_index): Likewise.
17083 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17084 * symfile.h (dwarf2_debug_sections): Likewise.
17085 * xcoffread.c (dwarf2_debug_sections): Likewise.
17086
17087 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17088
17089 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17090 core_reg_sect type to gdb_byte *.
17091 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17092 * cris-tdep.c (fetch_core_registers): Likewise.
17093 * corelow.c (core_target::get_core_register_section): Change
17094 type of `contents` to gdb::byte_vector.
17095
17096 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17097
17098 * tui/tui-wingeneral.c (box_win): Position the title in the center
17099 of the border.
17100
17101 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17102
17103 * corelow.c (core_target::get_core_register_section): Use
17104 std::vector instead of alloca.
17105
17106 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17107
17108 * warning.m4: Add -Wmissing-declarations to build_warnings.
17109 * configure: Re-generate.
17110
17111 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17112
17113 * python/python.c (init__gdb_module): Add declaration.
17114
17115 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17116
17117 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17118 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17119 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17120 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17121 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17122 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17123 * ada-exp.y (_initialize_ada_exp): Add declaration.
17124 * ada-lang.c (_initialize_ada_language): Add declaration.
17125 * ada-tasks.c (_initialize_tasks): Add declaration.
17126 * agent.c (_initialize_agent): Add declaration.
17127 * aix-thread.c (_initialize_aix_thread): Add declaration.
17128 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17129 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17130 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17131 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17132 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17133 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17134 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17135 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17136 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17137 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17138 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17139 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17140 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17141 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17142 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17143 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17144 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17145 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17146 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17147 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17148 * annotate.c (_initialize_annotate): Add declaration.
17149 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17150 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17151 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17152 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17153 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17154 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17155 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17156 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17157 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17158 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17159 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17160 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17161 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17162 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17163 * auto-load.c (_initialize_auto_load): Add declaration.
17164 * auxv.c (_initialize_auxv): Add declaration.
17165 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17166 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17167 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17168 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17169 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17170 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17171 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17172 * breakpoint.c (_initialize_breakpoint): Add declaration.
17173 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17174 * btrace.c (_initialize_btrace): Add declaration.
17175 * charset.c (_initialize_charset): Add declaration.
17176 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17177 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17178 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17179 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17180 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17181 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17182 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17183 * coffread.c (_initialize_coffread): Add declaration.
17184 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17185 * compile/compile.c (_initialize_compile): Add declaration.
17186 * complaints.c (_initialize_complaints): Add declaration.
17187 * completer.c (_initialize_completer): Add declaration.
17188 * copying.c (_initialize_copying): Add declaration.
17189 * corefile.c (_initialize_core): Add declaration.
17190 * corelow.c (_initialize_corelow): Add declaration.
17191 * cp-abi.c (_initialize_cp_abi): Add declaration.
17192 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17193 * cp-support.c (_initialize_cp_support): Add declaration.
17194 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17195 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17196 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17197 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17198 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17199 * ctfread.c (_initialize_ctfread): Add declaration.
17200 * d-lang.c (_initialize_d_language): Add declaration.
17201 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17202 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17203 * dbxread.c (_initialize_dbxread): Add declaration.
17204 * dcache.c (_initialize_dcache): Add declaration.
17205 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17206 * disasm.c (_initialize_disasm): Add declaration.
17207 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17208 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17209 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17210 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17211 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17212 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17213 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17214 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17215 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17216 * elfread.c (_initialize_elfread): Add declaration.
17217 * exec.c (_initialize_exec): Add declaration.
17218 * extension.c (_initialize_extension): Add declaration.
17219 * f-lang.c (_initialize_f_language): Add declaration.
17220 * f-valprint.c (_initialize_f_valprint): Add declaration.
17221 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17222 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17223 * filesystem.c (_initialize_filesystem): Add declaration.
17224 * findcmd.c (_initialize_mem_search): Add declaration.
17225 * findvar.c (_initialize_findvar): Add declaration.
17226 * fork-child.c (_initialize_fork_child): Add declaration.
17227 * frame-base.c (_initialize_frame_base): Add declaration.
17228 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17229 * frame.c (_initialize_frame): Add declaration.
17230 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17231 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17232 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17233 * gcore.c (_initialize_gcore): Add declaration.
17234 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17235 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17236 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17237 * gdbarch.c (_initialize_gdbarch): Add declaration.
17238 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17239 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17240 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17241 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17242 * go-lang.c (_initialize_go_language): Add declaration.
17243 * go32-nat.c (_initialize_go32_nat): Add declaration.
17244 * guile/guile.c (_initialize_guile): Add declaration.
17245 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17246 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17247 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17248 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17249 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17250 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17251 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17252 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17253 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17254 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17255 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17256 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17257 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17258 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17259 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17260 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17261 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17262 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17263 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17264 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17265 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17266 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17267 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17268 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17269 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17270 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17271 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17272 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17273 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17274 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17275 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17276 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17277 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17278 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17279 * infcall.c (_initialize_infcall): Add declaration.
17280 * infcmd.c (_initialize_infcmd): Add declaration.
17281 * inflow.c (_initialize_inflow): Add declaration.
17282 * infrun.c (_initialize_infrun): Add declaration.
17283 * interps.c (_initialize_interpreter): Add declaration.
17284 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17285 * jit.c (_initialize_jit): Add declaration.
17286 * language.c (_initialize_language): Add declaration.
17287 * linux-fork.c (_initialize_linux_fork): Add declaration.
17288 * linux-nat.c (_initialize_linux_nat): Add declaration.
17289 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17290 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17291 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17292 * m2-lang.c (_initialize_m2_language): Add declaration.
17293 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17294 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17295 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17296 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17297 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17298 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17299 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17300 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17301 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17302 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17303 * machoread.c (_initialize_machoread): Add declaration.
17304 * macrocmd.c (_initialize_macrocmd): Add declaration.
17305 * macroscope.c (_initialize_macroscope): Add declaration.
17306 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17307 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17308 * maint.c (_initialize_maint_cmds): Add declaration.
17309 * mdebugread.c (_initialize_mdebugread): Add declaration.
17310 * memattr.c (_initialize_mem): Add declaration.
17311 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17312 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17313 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17314 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17315 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17316 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17317 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17318 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17319 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17320 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17321 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17322 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17323 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17324 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17325 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17326 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17327 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17328 * mipsread.c (_initialize_mipsread): Add declaration.
17329 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17330 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17331 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17332 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17333 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17334 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17335 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17336 * nto-procfs.c (_initialize_procfs): Add declaration.
17337 * objc-lang.c (_initialize_objc_language): Add declaration.
17338 * observable.c (_initialize_observer): Add declaration.
17339 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17340 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17341 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17342 * osabi.c (_initialize_gdb_osabi): Add declaration.
17343 * osdata.c (_initialize_osdata): Add declaration.
17344 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17345 * parse.c (_initialize_parse): Add declaration.
17346 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17347 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17348 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17349 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17350 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17351 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17352 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17353 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17354 * printcmd.c (_initialize_printcmd): Add declaration.
17355 * probe.c (_initialize_probe): Add declaration.
17356 * proc-api.c (_initialize_proc_api): Add declaration.
17357 * proc-events.c (_initialize_proc_events): Add declaration.
17358 * proc-service.c (_initialize_proc_service): Add declaration.
17359 * procfs.c (_initialize_procfs): Add declaration.
17360 * producer.c (_initialize_producer): Add declaration.
17361 * psymtab.c (_initialize_psymtab): Add declaration.
17362 * python/python.c (_initialize_python): Add declaration.
17363 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17364 * record-btrace.c (_initialize_record_btrace): Add declaration.
17365 * record-full.c (_initialize_record_full): Add declaration.
17366 * record.c (_initialize_record): Add declaration.
17367 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17368 * regcache.c (_initialize_regcache): Add declaration.
17369 * reggroups.c (_initialize_reggroup): Add declaration.
17370 * remote-notif.c (_initialize_notif): Add declaration.
17371 * remote-sim.c (_initialize_remote_sim): Add declaration.
17372 * remote.c (_initialize_remote): Add declaration.
17373 * reverse.c (_initialize_reverse): Add declaration.
17374 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17375 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17376 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17377 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17378 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17379 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17380 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17381 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17382 Add declaration.
17383 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17384 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17385 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17386 * rust-exp.y (_initialize_rust_exp): Add declaration.
17387 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17388 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17389 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17390 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17391 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17392 * score-tdep.c (_initialize_score_tdep): Add declaration.
17393 * ser-go32.c (_initialize_ser_dos): Add declaration.
17394 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17395 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17396 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17397 * ser-uds.c (_initialize_ser_socket): Add declaration.
17398 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17399 * serial.c (_initialize_serial): Add declaration.
17400 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17401 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17402 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17403 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17404 * skip.c (_initialize_step_skip): Add declaration.
17405 * sol-thread.c (_initialize_sol_thread): Add declaration.
17406 * solib-aix.c (_initialize_solib_aix): Add declaration.
17407 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17408 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17409 * solib-frv.c (_initialize_frv_solib): Add declaration.
17410 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17411 * solib-target.c (_initialize_solib_target): Add declaration.
17412 * solib.c (_initialize_solib): Add declaration.
17413 * source-cache.c (_initialize_source_cache): Add declaration.
17414 * source.c (_initialize_source): Add declaration.
17415 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17416 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17417 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17418 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17419 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17420 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17421 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17422 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17423 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17424 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17425 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17426 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17427 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17428 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17429 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17430 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17431 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17432 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17433 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17434 * stabsread.c (_initialize_stabsread): Add declaration.
17435 * stack.c (_initialize_stack): Add declaration.
17436 * stap-probe.c (_initialize_stap_probe): Add declaration.
17437 * std-regs.c (_initialize_frame_reg): Add declaration.
17438 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17439 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17440 * symfile.c (_initialize_symfile): Add declaration.
17441 * symmisc.c (_initialize_symmisc): Add declaration.
17442 * symtab.c (_initialize_symtab): Add declaration.
17443 * target.c (_initialize_target): Add declaration.
17444 * target-connection.c (_initialize_target_connection): Add
17445 declaration.
17446 * target-dcache.c (_initialize_target_dcache): Add declaration.
17447 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17448 * thread.c (_initialize_thread): Add declaration.
17449 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17450 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17451 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17452 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17453 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17454 * tracectf.c (_initialize_ctf): Add declaration.
17455 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17456 * tracefile.c (_initialize_tracefile): Add declaration.
17457 * tracepoint.c (_initialize_tracepoint): Add declaration.
17458 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17459 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17460 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17461 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17462 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17463 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17464 * tui/tui.c (_initialize_tui): Add declaration.
17465 * typeprint.c (_initialize_typeprint): Add declaration.
17466 * ui-style.c (_initialize_ui_style): Add declaration.
17467 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17468 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17469 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17470 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17471 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17472 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17473 * unittests/filtered_iterator-selftests.c
17474 (_initialize_filtered_iterator_selftests): Add declaration.
17475 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17476 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17477 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17478 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17479 * unittests/main-thread-selftests.c
17480 (_initialize_main_thread_selftests): Add declaration.
17481 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17482 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17483 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17484 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17485 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17486 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17487 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17488 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17489 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17490 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17491 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17492 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17493 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17494 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17495 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17496 declaration.
17497 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17498 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17499 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17500 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17501 * user-regs.c (_initialize_user_regs): Add declaration.
17502 * utils.c (_initialize_utils): Add declaration.
17503 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17504 * valops.c (_initialize_valops): Add declaration.
17505 * valprint.c (_initialize_valprint): Add declaration.
17506 * value.c (_initialize_values): Add declaration.
17507 * varobj.c (_initialize_varobj): Add declaration.
17508 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17509 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17510 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17511 * windows-nat.c (_initialize_windows_nat): Add declaration.
17512 (_initialize_check_for_gdb_ini): Add declaration.
17513 (_initialize_loadable): Add declaration.
17514 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17515 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17516 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17517 * xcoffread.c (_initialize_xcoffread): Add declaration.
17518 * xml-support.c (_initialize_xml_support): Add declaration.
17519 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17520 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17521 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17522 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17523
17524 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17525
17526 * regformats/regdat.sh: Generate declaration for init function.
17527
17528 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17529
17530 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17531 up.
17532 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17533 close_one_inferior>: New methods.
17534 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17535 pass down target to find_inferior_pid.
17536 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17537 Pass down target to find_inferior_ptid.
17538 (gdbsim_target::create_inferior): Pass down target to
17539 add_thread_silent.
17540 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17541 target down to find_inferior_ptid and switch_to_thread.
17542 (gdbsim_target::close): Update to call close_one_inferior.
17543 (struct resume_data): Remove.
17544 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17545 directly, rather than through a void pointer.
17546 (gdbsim_target::resume): Update to call resume_one_inferior.
17547
17548 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17549
17550 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17551
17552 2020-01-12 Pedro Alves <palves@redhat.com>
17553
17554 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17555 directly for the current inferior instead of
17556 discard_all_inferiors.
17557 (discard_all_inferiors): Delete.
17558
17559 2020-01-11 Tom Tromey <tom@tromey.com>
17560
17561 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17562 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17563 deprecated_safe_get_selected_frame.
17564
17565 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17566
17567 * inferior.c (print_inferior): Switch inferior before printing it.
17568
17569 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17570 Pedro Alves <palves@redhat.com>
17571
17572 * progspace-and-thread.c (switch_to_program_space_and_thread):
17573 Assert there's an inferior for PSPACE. Use
17574 switch_to_inferior_no_thread to switch the inferior too.
17575 * progspace.c (program_space::~program_space): Call
17576 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17577 (program_space::free_all_objfiles): Don't call clear_symtab_users
17578 here.
17579 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17580
17581 2020-01-10 Pedro Alves <palves@redhat.com>
17582
17583 * NEWS: Mention multi-target debugging, "info connections", and
17584 "add-inferior -no-connection".
17585
17586 2020-01-10 Pedro Alves <palves@redhat.com>
17587
17588 * infrun.c: Include "target-connection.h".
17589 (check_multi_target_resumption): New.
17590 (proceed): Call it.
17591 * target-connection.c (make_target_connection_string): Make
17592 extern.
17593 * target-connection.h (make_target_connection_string): Declare.
17594
17595 2020-01-10 Pedro Alves <palves@redhat.com>
17596
17597 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17598 * inferior.c (uiout_field_connection): New function.
17599 (print_inferior): Add new "connection-id" column.
17600 (add_inferior_command): Show connection number/string of added
17601 inferior.
17602 * process-stratum-target.h
17603 (process_stratum_target::connection_string): New virtual method.
17604 (process_stratum_target::connection_number): New field.
17605 * remote.c (remote_target::connection_string): New override.
17606 * target-connection.c: New file.
17607 * target-connection.h: New file.
17608 * target.c (decref_target): Remove process_stratum targets from
17609 the connection list.
17610 (target_stack::push): Add process_stratum targets to the
17611 connection list.
17612
17613 2020-01-10 Pedro Alves <palves@redhat.com>
17614
17615 Revert:
17616 2016-04-12 Pedro Alves <palves@redhat.com>
17617 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17618 Remove references to name.
17619 * serial.h (struct serial) <name>: Delete.
17620
17621 2020-01-10 Pedro Alves <palves@redhat.com>
17622
17623 * gdbarch-selftests.c (register_to_value_test): Remove "target
17624 already pushed" check.
17625
17626 2020-01-10 Pedro Alves <palves@redhat.com>
17627 John Baldwin <jhb@FreeBSD.org>
17628
17629 * aarch64-linux-nat.c
17630 (aarch64_linux_nat_target::thread_architecture): Adjust.
17631 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17632 (task_command_1): Likewise.
17633 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17634 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17635 (aix_thread_target::store_registers)
17636 (aix_thread_target::thread_alive): Adjust.
17637 * amd64-fbsd-tdep.c: Include "inferior.h".
17638 (amd64fbsd_get_thread_local_address): Pass down target.
17639 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17640 thread's gdbarch instead of target_gdbarch.
17641 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17642 get_last_target_status.
17643 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17644 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17645 inferiors.
17646 (update_inserted_breakpoint_locations): Skip if inferiors with no
17647 execution.
17648 (update_global_location_list): When handling moribund locations,
17649 find representative inferior for location's pspace, and use thread
17650 count of its process_stratum target.
17651 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17652 * bsd-uthread.c (bsd_uthread_target::wait): Use
17653 as_process_stratum_target and adjust thread_change_ptid and
17654 add_thread calls.
17655 (bsd_uthread_target::update_thread_list): Use
17656 as_process_stratum_target and adjust find_thread_ptid,
17657 thread_change_ptid and add_thread calls.
17658 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17659 find_thread_ptid call.
17660 * corelow.c (add_to_thread_list): Adjust add_thread call.
17661 (core_target_open): Adjust add_thread_silent and thread_count
17662 calls.
17663 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17664 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17665 * event-top.c (async_disconnect): Pop targets from all inferiors.
17666 * exec.c (add_target_sections): Push exec target on all inferiors
17667 sharing the program space.
17668 (remove_target_sections): Remove the exec target from all
17669 inferiors sharing the program space.
17670 (exec_on_vfork): New.
17671 * exec.h (exec_on_vfork): Declare.
17672 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17673 Pass it down.
17674 (fbsd_nat_target::update_thread_list): Adjust.
17675 (fbsd_nat_target::resume): Adjust.
17676 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17677 down.
17678 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17679 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17680 get_thread_arch_regcache call.
17681 * fork-child.c (gdb_startup_inferior): Pass target down to
17682 startup_inferior and set_executing.
17683 * gdbthread.h (struct process_stratum_target): Forward declare.
17684 (add_thread, add_thread_silent, add_thread_with_info)
17685 (in_thread_list): Add process_stratum_target parameter.
17686 (find_thread_ptid(inferior*, ptid_t)): New overload.
17687 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17688 parameter.
17689 (all_threads()): Delete overload.
17690 (all_threads, all_non_exited_threads): Add process_stratum_target
17691 parameter.
17692 (all_threads_safe): Use brace initialization.
17693 (thread_count): Add process_stratum_target parameter.
17694 (set_resumed, set_running, set_stop_requested, set_executing)
17695 (threads_are_executing, finish_thread_state): Add
17696 process_stratum_target parameter.
17697 (switch_to_thread): Use is_current_thread.
17698 * i386-fbsd-tdep.c: Include "inferior.h".
17699 (i386fbsd_get_thread_local_address): Pass down target.
17700 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17701 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17702 have_inferiors check.
17703 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17704 (inf_ptrace_target::attach): Adjust.
17705 * infcall.c (run_inferior_call): Adjust.
17706 * infcmd.c (run_command_1): Pass target to
17707 scoped_finish_thread_state.
17708 (proceed_thread_callback): Skip inferiors with no execution.
17709 (continue_command): Rename 'all_threads' local to avoid hiding
17710 'all_threads' function. Adjust get_last_target_status call.
17711 (prepare_one_step): Adjust set_running call.
17712 (signal_command): Use user_visible_resume_target. Compare thread
17713 pointers instead of inferior_ptid.
17714 (info_program_command): Adjust to pass down target.
17715 (attach_command): Mark target's 'thread_executing' flag.
17716 (stop_current_target_threads_ns): New, factored out from ...
17717 (interrupt_target_1): ... this. Switch inferior before making
17718 target calls.
17719 * inferior-iter.h
17720 (struct all_inferiors_iterator, struct all_inferiors_range)
17721 (struct all_inferiors_safe_range)
17722 (struct all_non_exited_inferiors_range): Filter on
17723 process_stratum_target too. Remove explicit.
17724 * inferior.c (inferior::inferior): Push dummy target on target
17725 stack.
17726 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17727 Add process_stratum_target parameter, and pass it down.
17728 (have_live_inferiors): Adjust.
17729 (switch_to_inferior_and_push_target): New.
17730 (add_inferior_command, clone_inferior_command): Handle
17731 "-no-connection" parameter. Use
17732 switch_to_inferior_and_push_target.
17733 (_initialize_inferior): Mention "-no-connection" option in
17734 the help of "add-inferior" and "clone-inferior" commands.
17735 * inferior.h: Include "process-stratum-target.h".
17736 (interrupt_target_1): Use bool.
17737 (struct inferior) <push_target, unpush_target, target_is_pushed,
17738 find_target_beneath, top_target, process_target, target_at,
17739 m_stack>: New.
17740 (discard_all_inferiors): Delete.
17741 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17742 (all_inferiors, all_non_exited_inferiors): Add
17743 process_stratum_target parameter.
17744 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17745 (target_last_proc_target): New global.
17746 (follow_fork_inferior): Push target on new inferior. Pass target
17747 to add_thread_silent. Call exec_on_vfork. Handle target's
17748 reference count.
17749 (follow_fork): Adjust get_last_target_status call. Also consider
17750 target.
17751 (follow_exec): Push target on new inferior.
17752 (struct execution_control_state) <target>: New field.
17753 (user_visible_resume_target): New.
17754 (do_target_resume): Call target_async.
17755 (resume_1): Set target's threads_executing flag. Consider resume
17756 target.
17757 (commit_resume_all_targets): New.
17758 (proceed): Also consider resume target. Skip threads of inferiors
17759 with no execution. Commit resumtion in all targets.
17760 (start_remote): Pass current inferior to wait_for_inferior.
17761 (infrun_thread_stop_requested): Consider target as well. Pass
17762 thread_info pointer to clear_inline_frame_state instead of ptid.
17763 (infrun_thread_thread_exit): Consider target as well.
17764 (random_pending_event_thread): New inferior parameter. Use it.
17765 (do_target_wait): Rename to ...
17766 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17767 down.
17768 (threads_are_resumed_pending_p, do_target_wait): New.
17769 (prepare_for_detach): Adjust calls.
17770 (wait_for_inferior): New inferior parameter. Handle it. Use
17771 do_target_wait_1 instead of do_target_wait.
17772 (fetch_inferior_event): Adjust. Switch to representative
17773 inferior. Pass target down.
17774 (set_last_target_status): Add process_stratum_target parameter.
17775 Save target in global.
17776 (get_last_target_status): Add process_stratum_target parameter and
17777 handle it.
17778 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17779 (context_switch): Check inferior_ptid == null_ptid before calling
17780 inferior_thread().
17781 (get_inferior_stop_soon): Pass down target.
17782 (wait_one): Rename to ...
17783 (poll_one_curr_target): ... this.
17784 (struct wait_one_event): New.
17785 (wait_one): New.
17786 (stop_all_threads): Adjust.
17787 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17788 event's target.
17789 (switch_back_to_stepped_thread): Also consider target.
17790 (print_stop_event): Update.
17791 (normal_stop): Update. Also consider the resume target.
17792 * infrun.h (wait_for_inferior): Remove declaration.
17793 (user_visible_resume_target): New declaration.
17794 (get_last_target_status, set_last_target_status): New
17795 process_stratum_target parameter.
17796 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17797 process_stratum_target parameter, and use it.
17798 (clear_inline_frame_state (thread_info*)): New.
17799 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17800 process_stratum_target parameter.
17801 (clear_inline_frame_state (thread_info*)): Declare.
17802 * linux-fork.c (delete_checkpoint_command): Pass target down to
17803 find_thread_ptid.
17804 (checkpoint_command): Adjust.
17805 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17806 instead of just tweaking inferior_ptid.
17807 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17808 (exit_lwp): Pass target down to find_thread_ptid.
17809 (attach_proc_task_lwp_callback): Pass target down to
17810 add_thread/set_running/set_executing.
17811 (linux_nat_target::attach): Pass target down to
17812 thread_change_ptid.
17813 (get_detach_signal): Pass target down to find_thread_ptid.
17814 Consider last target status's target.
17815 (linux_resume_one_lwp_throw, resume_lwp)
17816 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17817 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17818 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17819 (linux_nat_target::async_wait_fd): New.
17820 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17821 target down.
17822 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17823 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17824 * linux-thread-db.c (struct thread_db_info::process_target): New
17825 field.
17826 (add_thread_db_info): Save target.
17827 (get_thread_db_info): New process_stratum_target parameter. Also
17828 match target.
17829 (delete_thread_db_info): New process_stratum_target parameter.
17830 Also match target.
17831 (thread_from_lwp): Adjust to pass down target.
17832 (thread_db_notice_clone): Pass down target.
17833 (check_thread_db_callback): Pass down target.
17834 (try_thread_db_load_1): Always push the thread_db target.
17835 (try_thread_db_load, record_thread): Pass target down.
17836 (thread_db_target::detach): Pass target down. Always unpush the
17837 thread_db target.
17838 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17839 target down. Always unpush the thread_db target.
17840 (find_new_threads_callback, thread_db_find_new_threads_2)
17841 (thread_db_target::update_thread_list): Pass target down.
17842 (thread_db_target::pid_to_str): Pass current inferior down.
17843 (thread_db_target::get_thread_local_address): Pass target down.
17844 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17845 target down.
17846 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17847 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17848 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17849 (procfs_init_inferior): Rename to ...
17850 (procfs_target::procfs_init_inferior): ... this and adjust.
17851 (procfs_target::create_inferior, procfs_notice_thread)
17852 (procfs_do_thread_registers): Adjust.
17853 * ppc-fbsd-tdep.c: Include "inferior.h".
17854 (ppcfbsd_get_thread_local_address): Pass down target.
17855 * proc-service.c (ps_xfer_memory): Switch current inferior and
17856 program space as well.
17857 (get_ps_regcache): Pass target down.
17858 * process-stratum-target.c
17859 (process_stratum_target::thread_address_space)
17860 (process_stratum_target::thread_architecture): Pass target down.
17861 * process-stratum-target.h
17862 (process_stratum_target::threads_executing): New field.
17863 (as_process_stratum_target): New.
17864 * ravenscar-thread.c
17865 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17866 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17867 down.
17868 * record-btrace.c (record_btrace_target::info_record): Adjust.
17869 (record_btrace_target::record_method)
17870 (record_btrace_target::record_is_replaying)
17871 (record_btrace_target::fetch_registers)
17872 (get_thread_current_frame_id, record_btrace_target::resume)
17873 (record_btrace_target::wait, record_btrace_target::stop): Pass
17874 target down.
17875 * record-full.c (record_full_wait_1): Switch to event thread.
17876 Pass target down.
17877 * regcache.c (regcache::regcache)
17878 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17879 process_stratum_target parameter and handle it.
17880 (current_thread_target): New global.
17881 (get_thread_regcache): Add process_stratum_target parameter and
17882 handle it. Switch inferior before calling target method.
17883 (get_thread_regcache): Pass target down.
17884 (get_thread_regcache_for_ptid): Pass target down.
17885 (registers_changed_ptid): Add process_stratum_target parameter and
17886 handle it.
17887 (registers_changed_thread, registers_changed): Pass target down.
17888 (test_get_thread_arch_aspace_regcache): New.
17889 (current_regcache_test): Define a couple local test_target_ops
17890 instances and use them for testing.
17891 (readwrite_regcache): Pass process_stratum_target parameter.
17892 (cooked_read_test, cooked_write_test): Pass mock_target down.
17893 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17894 (get_thread_arch_aspace_regcache): Add process_stratum_target
17895 parameter.
17896 (regcache::target): New method.
17897 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17898 (regcache::registers_changed_ptid): Add process_stratum_target
17899 parameter.
17900 (regcache::m_target): New field.
17901 (registers_changed_ptid): Add process_stratum_target parameter.
17902 * remote.c (remote_state::supports_vCont_probed): New field.
17903 (remote_target::async_wait_fd): New method.
17904 (remote_unpush_and_throw): Add remote_target parameter.
17905 (get_current_remote_target): Adjust.
17906 (remote_target::remote_add_inferior): Push target.
17907 (remote_target::remote_add_thread)
17908 (remote_target::remote_notice_new_inferior)
17909 (get_remote_thread_info): Pass target down.
17910 (remote_target::update_thread_list): Skip threads of inferiors
17911 bound to other targets. (remote_target::close): Don't discard
17912 inferiors. (remote_target::add_current_inferior_and_thread)
17913 (remote_target::process_initial_stop_replies)
17914 (remote_target::start_remote)
17915 (remote_target::remote_serial_quit_handler): Pass down target.
17916 (remote_target::remote_unpush_target): New remote_target
17917 parameter. Unpush the target from all inferiors.
17918 (remote_target::remote_unpush_and_throw): New remote_target
17919 parameter. Pass it down.
17920 (remote_target::open_1): Check whether the current inferior has
17921 execution instead of checking whether any inferior is live. Pass
17922 target down.
17923 (remote_target::remote_detach_1): Pass down target. Use
17924 remote_unpush_target.
17925 (extended_remote_target::attach): Pass down target.
17926 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17927 (remote_target::append_resumption): Pass down target.
17928 (remote_target::append_pending_thread_resumptions)
17929 (remote_target::remote_resume_with_hc, remote_target::resume)
17930 (remote_target::commit_resume): Pass down target.
17931 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17932 (remote_target::interrupt_query)
17933 (remote_target::remove_new_fork_children)
17934 (remote_target::check_pending_events_prevent_wildcard_vcont)
17935 (remote_target::remote_parse_stop_reply)
17936 (remote_target::process_stop_reply): Pass down target.
17937 (first_remote_resumed_thread): New remote_target parameter. Pass
17938 it down.
17939 (remote_target::wait_as): Pass down target.
17940 (unpush_and_perror): New remote_target parameter. Pass it down.
17941 (remote_target::readchar, remote_target::remote_serial_write)
17942 (remote_target::getpkt_or_notif_sane_1)
17943 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17944 down target.
17945 (remote_target::mourn_inferior): Pass down target. Use
17946 remote_unpush_target.
17947 (remote_target::core_of_thread)
17948 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17949 (remote_target::pid_to_exec_file)
17950 (remote_target::thread_handle_to_thread_info): Pass down target.
17951 (remote_target::async_wait_fd): New.
17952 * riscv-fbsd-tdep.c: Include "inferior.h".
17953 (riscv_fbsd_get_thread_local_address): Pass down target.
17954 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17955 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17956 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17957 Adjust.
17958 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17959 * solib-svr4.c (enable_break): Pass down target.
17960 * spu-multiarch.c (parse_spufs_run): Pass down target.
17961 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17962 * target-delegates.c: Regenerate.
17963 * target.c (g_target_stack): Delete.
17964 (current_top_target): Return the current inferior's top target.
17965 (target_has_execution_1): Refer to the passed-in inferior's top
17966 target.
17967 (target_supports_terminal_ours): Check whether the initial
17968 inferior was already created.
17969 (decref_target): New.
17970 (target_stack::push): Incref/decref the target.
17971 (push_target, push_target, unpush_target): Adjust.
17972 (target_stack::unpush): Defref target.
17973 (target_is_pushed): Return bool. Adjust to refer to the current
17974 inferior's target stack.
17975 (dispose_inferior): Delete, and inline parts ...
17976 (target_preopen): ... here. Only dispose of the current inferior.
17977 (target_detach): Hold strong target reference while detaching.
17978 Pass target down.
17979 (target_thread_name): Add assertion.
17980 (target_resume): Pass down target.
17981 (target_ops::beneath, find_target_at): Adjust to refer to the
17982 current inferior's target stack.
17983 (get_dummy_target): New.
17984 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17985 has a thread running.
17986 (initialize_targets): Rename to ...
17987 (_initialize_target): ... this.
17988 * target.h: Include "gdbsupport/refcounted-object.h".
17989 (struct target_ops): Inherit refcounted_object.
17990 (target_ops::shortname, target_ops::longname): Make const.
17991 (target_ops::async_wait_fd): New method.
17992 (decref_target): Declare.
17993 (struct target_ops_ref_policy): New.
17994 (target_ops_ref): New typedef.
17995 (get_dummy_target): Declare function.
17996 (target_is_pushed): Return bool.
17997 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17998 (all_matching_threads_iterator::all_matching_threads_iterator):
17999 Handle filter target.
18000 * thread-iter.h (struct all_matching_threads_iterator, struct
18001 all_matching_threads_range, class all_non_exited_threads_range):
18002 Filter by target too. Remove explicit.
18003 * thread.c (threads_executing): Delete.
18004 (inferior_thread): Pass down current inferior.
18005 (clear_thread_inferior_resources): Pass down thread pointer
18006 instead of ptid_t.
18007 (add_thread_silent, add_thread_with_info, add_thread): Add
18008 process_stratum_target parameter. Use it for thread and inferior
18009 searches.
18010 (is_current_thread): New.
18011 (thread_info::deletable): Use it.
18012 (find_thread_ptid, thread_count, in_thread_list)
18013 (thread_change_ptid, set_resumed, set_running): New
18014 process_stratum_target parameter. Pass it down.
18015 (set_executing): New process_stratum_target parameter. Pass it
18016 down. Adjust reference to 'threads_executing'.
18017 (threads_are_executing): New process_stratum_target parameter.
18018 Adjust reference to 'threads_executing'.
18019 (set_stop_requested, finish_thread_state): New
18020 process_stratum_target parameter. Pass it down.
18021 (switch_to_thread): Also match inferior.
18022 (switch_to_thread): New process_stratum_target parameter. Pass it
18023 down.
18024 (update_threads_executing): Reimplement.
18025 * top.c (quit_force): Pop targets from all inferior.
18026 (gdb_init): Don't call initialize_targets.
18027 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18028 Declare.
18029 (windows_add_thread, windows_delete_thread): Adjust.
18030 (get_windows_debug_event): Rename to ...
18031 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18032 * tracefile-tfile.c (tfile_target_open): Pass down target.
18033 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18034 Forward declare.
18035 (switch_to_thread): Add process_stratum_target parameter.
18036 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18037 parameter. Use it.
18038 (mi_on_resume): Pass target down.
18039 * nat/fork-inferior.c (startup_inferior): Add
18040 process_stratum_target parameter. Pass it down.
18041 * nat/fork-inferior.h (startup_inferior): Add
18042 process_stratum_target parameter.
18043 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18044
18045 2020-01-10 Pedro Alves <palves@redhat.com>
18046
18047 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18048 directly. Instead find the first thread in the thread list and
18049 use switch_to_thread.
18050
18051 2020-01-10 Pedro Alves <palves@redhat.com>
18052
18053 * remote.c (remote_target::remote_add_inferior): Don't bind a
18054 process to the current inferior if the current inferior is already
18055 bound to a process.
18056
18057 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18058 Pedro Alves <palves@redhat.com>
18059
18060 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18061 If no process is specified, return null_ptid instead of
18062 inferior_ptid.
18063 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18064 TARGET_WAITKIND_SIGNALLED with no pid.
18065
18066 2020-01-10 Pedro Alves <palves@redhat.com>
18067
18068 * remote.c (first_remote_resumed_thread): New.
18069 (remote_target::wait_as): Use it as default event_ptid instead of
18070 inferior_ptid.
18071
18072 2020-01-10 Pedro Alves <palves@redhat.com>
18073
18074 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18075
18076 2020-01-10 Pedro Alves <palves@redhat.com>
18077
18078 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18079 not -1.
18080
18081 2020-01-10 Pedro Alves <palves@redhat.com>
18082
18083 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18084 ptid to get_last_target_status.
18085 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18086 ptid to get_last_target_status.
18087 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18088 get_last_target_status.
18089 (info_program_command): Don't pass a target_waitstatus to
18090 get_last_target_status.
18091 * infrun.c (init_wait_for_inferior): Use
18092 nullify_last_target_wait_ptid.
18093 (get_last_target_status): Handle nullptr arguments.
18094 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18095 (print_stop_event): Don't pass a ptid to get_last_target_status.
18096 (normal_stop): Don't pass a ptid to get_last_target_status.
18097 * infrun.h (get_last_target_status, set_last_target_status): Move
18098 comments here and update.
18099 (nullify_last_target_wait_ptid): Declare.
18100 * linux-fork.c (fork_load_infrun_state): Remove local extern
18101 declaration of nullify_last_target_wait_ptid.
18102 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18103 to get_last_target_status.
18104
18105 2020-01-10 Pedro Alves <palves@redhat.com>
18106
18107 * gdbthread.h (scoped_restore_current_thread)
18108 <dont_restore, restore, m_dont_restore>: Declare.
18109 * thread.c (thread_alive): Add assertion. Return bool.
18110 (switch_to_thread_if_alive): New.
18111 (prune_threads): Switch inferior/thread.
18112 (print_thread_info_1): Switch thread before calling target methods.
18113 (scoped_restore_current_thread::restore): New, factored out from
18114 ...
18115 (scoped_restore_current_thread::~scoped_restore_current_thread):
18116 ... this.
18117 (scoped_restore_current_thread::scoped_restore_current_thread):
18118 Add assertion.
18119 (thread_apply_all_command, thread_select): Use
18120 switch_to_thread_if_alive.
18121 * infrun.c (proceed, restart_threads, handle_signal_stop)
18122 (switch_back_to_stepped_thread): Switch current thread before
18123 calling target methods.
18124
18125 2020-01-10 Pedro Alves <palves@redhat.com>
18126
18127 * inferior.c (switch_to_inferior_no_thread): New function,
18128 factored out from ...
18129 (inferior_command): ... here.
18130 * inferior.h (switch_to_inferior_no_thread): Declare.
18131 * mi/mi-main.c (run_one_inferior): Use
18132 switch_to_inferior_no_thread.
18133
18134 2020-01-10 Pedro Alves <palves@redhat.com>
18135
18136 * infcmd.c (kill_command): Remove dead code.
18137
18138 2020-01-10 Pedro Alves <palves@redhat.com>
18139
18140 * remote.c (remote_target::mourn_inferior): No longer check
18141 whether the target is running.
18142
18143 2020-01-10 Pedro Alves <palves@redhat.com>
18144
18145 * corelow.c (core_target::has_execution): Change parameter type to
18146 inferior pointer.
18147 * inferior.c (number_of_live_inferiors): Use
18148 inferior::has_execution instead of target_has_execution_1.
18149 * inferior.h (inferior::has_execution): New.
18150 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18151 inferior::has_execution instead of target_has_execution_1.
18152 * process-stratum-target.c
18153 (process_stratum_target::has_execution): Change parameter type to
18154 inferior pointer. Check the inferior's PID instead of
18155 inferior_ptid.
18156 * process-stratum-target.h
18157 (process_stratum_target::has_execution): Change parameter type to
18158 inferior pointer.
18159 * record-full.c (record_full_core_target::has_execution): Change
18160 parameter type to inferior pointer.
18161 * target.c (target_has_execution_1): Change parameter type to
18162 inferior pointer.
18163 (target_has_execution_current): Adjust.
18164 * target.h (target_ops::has_execution): Change parameter type to
18165 inferior pointer.
18166 (target_has_execution_1): Change parameter type to inferior
18167 pointer. Change return type to bool.
18168 * tracefile.h (tracefile_target::has_execution): Change parameter
18169 type to inferior pointer.
18170
18171 2020-01-10 Pedro Alves <palves@redhat.com>
18172
18173 * exceptions.c (print_flush): Remove current_top_target() check.
18174
18175 2020-01-10 Pedro Alves <palves@redhat.com>
18176
18177 * remote.c (show_remote_exec_file): Show the current inferior's
18178 exec-file instead of the command variable's value.
18179
18180 2020-01-10 Pedro Alves <palves@redhat.com>
18181
18182 * record-full.c (record_full_resume_ptid): New global.
18183 (record_full_target::resume): Set it.
18184 (record_full_wait_1): Use record_full_resume_ptid instead of
18185 inferior_ptid.
18186
18187 2020-01-10 Pedro Alves <palves@redhat.com>
18188
18189 * gdbthread.h (scoped_restore_current_thread)
18190 <dont_restore, restore, m_dont_restore>: Declare.
18191 * thread.c (thread_alive): Add assertion. Return bool.
18192 (switch_to_thread_if_alive): New.
18193 (prune_threads): Switch inferior/thread.
18194 (print_thread_info_1): Switch thread before calling target methods.
18195 (scoped_restore_current_thread::restore): New, factored out from
18196 ...
18197 (scoped_restore_current_thread::~scoped_restore_current_thread):
18198 ... this.
18199 (scoped_restore_current_thread::scoped_restore_current_thread):
18200 Add assertion.
18201 (thread_apply_all_command, thread_select): Use
18202 switch_to_thread_if_alive.
18203
18204 2020-01-10 George Barrett <bob@bob131.so>
18205
18206 * stap-probe.c (stap_modify_semaphore): Don't check for null
18207 semaphores.
18208 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18209 for null semaphores.
18210
18211 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18212
18213 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18214 all source windows, and maintain horizontal scroll status while
18215 doing so.
18216
18217 2020-01-09 Tom Tromey <tom@tromey.com>
18218
18219 PR tui/18932:
18220 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18221 update_source_window, not print_source_lines.
18222
18223 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18224
18225 * tui/tui.c (tui_enable): Register tui hooks after calling
18226 tui_display_main.
18227
18228 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18229
18230 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18231
18232 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18233
18234 * thread.c (print_thread_info_1): Fix indentation.
18235
18236 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18237
18238 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18239 unique_xmalloc_ptr outside the if to always free the demangled name.
18240
18241 2020-01-08 Tom Tromey <tromey@adacore.com>
18242
18243 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18244 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18245 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18246 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18247 Remove.
18248 (section_offsets): New typedef.
18249 * symtab.c (fixup_section, get_msymbol_address): Update.
18250 * symmisc.c (dump_msymbols): Update.
18251 * symfile.h (relative_addr_info_to_section_offsets)
18252 (symfile_map_offsets_to_segments): Update.
18253 * symfile.c (build_section_addr_info_from_objfile)
18254 (init_objfile_sect_indices): Update.
18255 (struct place_section_arg): Change type of "offsets".
18256 (place_section): Update.
18257 (relative_addr_info_to_section_offsets): Change type of
18258 "section_offsets". Remove "num_sections" parameter.
18259 (default_symfile_offsets, syms_from_objfile_1)
18260 (set_objfile_default_section_offset): Update.
18261 (reread_symbols): No need to preserve section offsets by hand.
18262 (symfile_map_offsets_to_segments): Change type of "offsets".
18263 * stap-probe.c (relocate_address): Update.
18264 * stabsread.h (process_one_symbol): Update.
18265 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18266 (solib_target_relocate_section_addresses): Update.
18267 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18268 Update.
18269 * solib-frv.c (frv_relocate_main_executable): Update.
18270 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18271 * solib-aix.c (solib_aix_get_section_offsets): Change return
18272 type.
18273 (solib_aix_solib_create_inferior_hook): Update.
18274 * remote.c (remote_target::get_offsets): Update.
18275 * psymtab.c (find_pc_sect_psymtab): Update.
18276 * psympriv.h (struct partial_symbol) <address, text_low,
18277 text_high>: Update.
18278 * objfiles.h (obj_section_offset): Update.
18279 (struct objfile) <section_offsets>: Change type.
18280 <num_sections>: Remove.
18281 (objfile_relocate): Update.
18282 * objfiles.c (entry_point_address_query): Update
18283 (relocate_one_symbol): Change type of "section_offsets".
18284 (objfile_relocate1, objfile_relocate1): Change type of
18285 "new_offsets".
18286 (objfile_rebase1): Update.
18287 * mipsread.c (mipscoff_symfile_read): Update.
18288 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18289 parameter.
18290 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18291 (parse_external, psymtab_to_symtab_1): Update.
18292 * machoread.c (macho_symfile_offsets): Update.
18293 * ia64-tdep.c (ia64_find_unwind_table): Update.
18294 * hppa-tdep.c (read_unwind_info): Update.
18295 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18296 * dwarf2read.c (create_addrmap_from_index)
18297 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18298 (process_psymtab_comp_unit_reader, add_partial_symbol)
18299 (add_partial_subprogram, process_full_comp_unit)
18300 (read_file_scope, read_func_scope, read_lexical_block_scope)
18301 (read_call_site_scope, dwarf2_rnglists_process)
18302 (dwarf2_ranges_process, dwarf2_ranges_read)
18303 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18304 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18305 Update.
18306 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18307 Update.
18308 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18309 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18310 (process_one_symbol): Change type of "section_offsets".
18311 * ctfread.c (get_objfile_text_range): Update.
18312 * coffread.c (coff_symtab_read, enter_linenos)
18313 (process_coff_symbol): Update.
18314 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18315 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18316
18317 2020-01-08 Tom Tromey <tromey@adacore.com>
18318
18319 * dwarf2read.c (parse_macro_definition): Use std::string.
18320 (parse_macro_definition): Likewise.
18321
18322 2020-01-08 Tom Tromey <tromey@adacore.com>
18323
18324 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18325 (ATTR_ALLOC_CHUNK): Remove.
18326
18327 2020-01-08 Tom Tromey <tromey@adacore.com>
18328
18329 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18330
18331 2020-01-08 Tom Tromey <tromey@adacore.com>
18332
18333 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18334 (dwarf2_compute_name, open_dwo_file): Likewise.
18335 (process_enumeration_scope): Use std::vector.
18336 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18337 (partial_die_info::fixup, dwarf2_start_subfile)
18338 (guess_full_die_structure_name, dwarf2_name): Likewise.
18339 (determine_prefix): Update.
18340 (guess_full_die_structure_name): Make return type const.
18341 (partial_die_full_name): Return unique_xmalloc_ptr.
18342 (DW_FIELD_ALLOC_CHUNK): Remove.
18343
18344 2020-01-07 Tom Tromey <tromey@adacore.com>
18345
18346 PR build/24937:
18347 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18348
18349 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18350
18351 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18352
18353 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18354
18355 * stack.c (print_frame_info): Move disassemble_next_line code
18356 inside source_print block.
18357
18358 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18359
18360 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18361 gdb/signals.h, as we are now using native signal symbols.
18362
18363 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18364
18365 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18366 overflow by an early check of content vs threshold.
18367 * tui/tui-source.c (tui_source_window::line_is_displayed):
18368 Likewise.
18369
18370 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18371
18372 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18373
18374 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18375
18376 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18377 export table if no section contains it's RVA.
18378
18379 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18380
18381 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18382
18383 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18384
18385 * source.c (print_source_lines_base): Set last_line_listed.
18386
18387 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18388
18389 * tui/tui-disasm.c: Remove trailing spaces.
18390
18391 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18392 Pedro Alves <palves@redhat.com>
18393
18394 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18395 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18396 (windows_gdb_signal_to_target): New function, uses the above
18397 enumeration to convert GDB internal signal codes to equivalent
18398 Windows codes.
18399 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18400 * windows-nat.c: Include "gdb_wait.h".
18401 (get_windows_debug_event): Extract the fatal exception from the
18402 exit status and convert to the equivalent Posix signal number.
18403 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18404 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18405 * gdbsupport/gdb_wait.c: New file, implements
18406 windows_status_to_termsig.
18407 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18408 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18409
18410 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18411
18412 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18413 show_layout.
18414
18415 2020-01-05 Luis Machado <luis.machado@linaro.org>
18416
18417 * aarch64-linux-nat.c
18418 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18419 and bfd_mach_aarch64.
18420
18421 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18422
18423 * ui-file.c (stdio_file::can_emit_style_escape)
18424 (tee_file::can_emit_style_escape): Ensure style is used also on
18425 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18426 to gdb_stdout.
18427 * main.c (set_gdb_data_directory): Use file style to output the
18428 warning that the given pathname is not a directory.
18429 * top.c (show_history_filename, gdb_safe_append_history)
18430 (show_gdb_datadir): Use file style.
18431
18432 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18433
18434 * solib-target.c (struct lm_info_target):
18435 Change offsets to be a unique_xmalloc_ptr.
18436 (solib_target_relocate_section_addresses): Update.
18437
18438 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18439
18440 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18441
18442 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18443
18444 * MAINTAINERS (Write After Approval): Add myself.
18445
18446 2020-01-02 Luis Machado <luis.machado@linaro.org>
18447
18448 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18449 Cell BE architecture.
18450 * target.h (struct target_ops) <thread_architecture>: Likewise.
18451
18452 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18453
18454 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18455
18456 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18457
18458 * MAINTAINERS (Write After Approval): Add myself.
18459
18460 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18461
18462 * gdbarch.sh: Update copyright year range of generated files.
18463
18464 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18465
18466 Update copyright year range in all GDB files.
18467
18468 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18469
18470 * copyright.py: Convert to Python 3.
18471
18472 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18473
18474 * copyright.py: Adapt after move of gnulib directory from gdb
18475 directory to toplevel directory.
18476
18477 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18478
18479 * copyright.py (main): Exit if run from the wrong directory.
18480
18481 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18482
18483 * top.c (print_gdb_version): Change copyright year to 2020.
18484
18485 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18486
18487 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18488
18489 For older changes see ChangeLog-2019.
18490 \f
18491 Local Variables:
18492 mode: change-log
18493 left-margin: 8
18494 fill-column: 74
18495 version-control: never
18496 coding: utf-8
18497 End:
This page took 0.411143 seconds and 4 git commands to generate.