]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove erroneous 'a' in gdb.register_window_type documentation
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4aea001f
HD
12020-12-18 Hannes Domani <ssbssa@yahoo.de>
2
3 * python/py-value.c (valpy_format_string): Implement address keyword.
4
b3f9469b
HD
52020-12-18 Hannes Domani <ssbssa@yahoo.de>
6
7 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
8
a9e48095
JN
92020-12-18 Jameson Nash <vtjnash@gmail.com>
10
11 * coffread.c (linetab_offset): Change type to file_ptr.
12 (linetab_size): Likewise.
13 (enter_linenos): Change parameter type to file_ptr.
14 (init_lineno): Likewise.
15 (init_stringtab): Likewise.
16 (coff_symtab_read): Likewise.
17 (coff_symfile_read): Change variable types to file_ptr.
18
844a6538
TT
192020-12-17 Tom Tromey <tromey@adacore.com>
20
21 * printcmd.c (print_variable_and_value): Don't use n_spaces.
22
32f47895
TT
232020-12-17 Tom Tromey <tromey@adacore.com>
24
25 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
26 (print_gnat_stuff, print_fixed_point_type_info)
27 (recursive_dump_type): Update.
28 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
29 * c-typeprint.c (c_type_print_base_struct_union)
30 (c_type_print_base_1): Update.
31 * rust-lang.c (rust_internal_print_type): Update.
32 * f-typeprint.c (f_language::f_type_print_base): Update.
33 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
34 * m2-typeprint.c (m2_record_fields): Update.
35 * p-typeprint.c (pascal_type_print_base): Update.
36 * compile/compile-loc2c.c (push, pushf, unary, binary)
37 (do_compile_dwarf_expr_to_c): Update.
38 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
39
c5c41205
TT
402020-12-16 Tom Tromey <tom@tromey.com>
41
42 * rust-exp.y (rust_lex_tests): Update.
43 * parser-defs.h (parser_state): Add void_p parameter.
44 <void_context_p>: New member.
45 * parse.c (parse_exp_in_context): Update.
46 * language.h (language_defn::post_parser): Remove void_context_p,
47 completing, tracker parameters. Add parser state.
48 * ada-lang.c (ada_language::post_parser): Update.
49
35c1ab60
TT
502020-12-16 Tom Tromey <tom@tromey.com>
51
52 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
53 (parse_exp_in_context): Change void_context_p to bool.
54 * language.h (struct language_defn) <post_parser>: Change
55 void_context_p to bool.
56 * ada-lang.c (class ada_language) <post_parser>: Update.
57
2f228731
TT
582020-12-16 Tom Tromey <tom@tromey.com>
59 Tom Tromey <tromey@redhat.com>
60 Tom de Vries <tdevries@suse.de>
61
62 * utils.h (get_chars_per_line): Declare.
63 * utils.c (get_chars_per_line): New function.
64 (fputs_maybe_filtered): Handle '\r'.
65 * ui-out.h (ui_out::progress_meter): New class.
66 (ui_out::progress, ui_out::do_progress_start)
67 (ui_out::do_progress_notify, ui_out::do_progress_end): New
68 methods.
69 * ui-out.c (do_progress_end)
70 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
71 functions.
72 * mi/mi-out.h (mi_ui_out::do_progress_start)
73 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
74 methods.
75 * cli-out.h (struct cli_ui_out) <do_progress_start,
76 do_progress_notify, do_progress_end>: New methods.
77 <enum meter_stat, struct cli_progress_info>: New.
78 <m_meters>: New member.
79 * cli-out.c (cli_ui_out::do_progress_start)
80 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
81 methods.
82
bfbe4b84
LM
832020-12-16 Luis Machado <luis.machado@linaro.org>
84
85 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
86
19007d95
LM
872020-12-16 Luis Machado <luis.machado@linaro.org>
88
89 * aarch64-linux-nat.c
90 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
91
a33fc9ae
RK
922020-12-15 Rae Kim <rae.kim@gmail.com>
93
94 * cli/cli-script.c (do_document_command): Rename from
95 document_command. Handle multi-line input.
96 (multi_line_command_p): Handle document_control.
97 (build_command_line): Likewise.
98 (execute_control_command_1): Likewise.
99 (process_next_line): Likewise.
100 (document_command): Call do_document_command.
101 * cli/cli-script.h (enum command_control_type): Add
102 document_control.
103
efd7ff14
TT
1042020-12-15 Tom Tromey <tom@tromey.com>
105
106 * stap-probe.c (stap_probe::evaluate_argument): Use
107 evaluate_expression.
108 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
109 evaluate_expression.
110 * value.h (evaluate_expression): Add expect_type parameter.
111 * objc-lang.c (print_object_command): Call evaluate_expression.
112 * eval.c (evaluate_expression): Add expect_type parameter.
113
2adab65c
TT
1142020-12-15 Tom Tromey <tom@tromey.com>
115
116 * varobj.c (varobj_create): Use first_opcode.
117 * value.c (init_if_undefined_command): Use first_opcode.
118 * typeprint.c (whatis_exp): Use first_opcode.
119 * tracepoint.c (validate_actionline): Use first_opcode.
120 (encode_actions_1): Use first_opcode.
121 * stack.c (return_command): Use first_opcode.
122 * expression.h (struct expression) <first_opcode>: New method.
123 * eval.c (parse_and_eval_type): Use first_opcode.
124 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
125
1ab8280d
TT
1262020-12-15 Tom Tromey <tom@tromey.com>
127
128 * f-lang.c (evaluate_subexp_f): Update.
129 * expression.h (evaluate_subexp_do_call): Update.
130 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
131 nargs, argvec with array_view.
132 (evaluate_funcall): Update.
133
cf608cc4
TT
1342020-12-15 Tom Tromey <tom@tromey.com>
135
136 * ada-lang.c (num_component_specs): Remove.
137 (assign_aggregate): Update.
138 (aggregate_assign_positional, aggregate_assign_from_choices)
139 (aggregate_assign_others, add_component_interval): Change
140 arguments.
141
0e5ad442
TT
1422020-12-15 Tom Tromey <tromey@adacore.com>
143
144 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
145 command names.
146
a6f3c8a1
TT
1472020-12-14 Tom Tromey <tom@tromey.com>
148
149 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
150 * typeprint.c (whatis_exp): Always use evaluate_type.
151 (maintenance_print_type): Likewise. Simplify.
152
86b44259
TT
1532020-12-14 Tom Tromey <tromey@adacore.com>
154
155 * dictionary.c (language_defn::search_name_hash): Ignore "B".
156 * ada-lang.c (advance_wild_match): Ignore "B".
157 (full_match): Remove.
158 (do_full_match): Rewrite.
159
25a1127b
TT
1602020-12-14 Tom Tromey <tromey@adacore.com>
161
162 * ada-lang.c (get_var_value): Only consider exact matches.
163
e26624c6
TT
1642020-12-14 Tom Tromey <tromey@adacore.com>
165
166 * dwarf2/read.c (rewrite_array_type): New function.
167 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
168
a3bdae4e
TT
1692020-12-14 Tom Tromey <tromey@adacore.com>
170
171 * valarith.c (fixed_point_binop): Call error on division by zero.
172
f5756acc
TT
1732020-12-13 Tom Tromey <tom@tromey.com>
174
175 * gdbtypes.c (safe_parse_type): Make argument const.
176 * value.h (parse_and_eval_type): Make argument const.
177 * eval.c (parse_and_eval_type): Make argument const.
178
ee9812a0
AB
1792020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * NEWS: Mention new commands.
182 * target-dcache.c: Add 'cli/cli-cmds.h' include.
183 (maint_flush_dcache_command): New function.
184 (_initialize_target_dcache): Create new 'maint flush dcache'
185 command.
186
50a5f187
AB
1872020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 * NEWS: Mention new commands, and that the old commands are now
190 deprecated.
191 * cli/cli-cmds.c (maintenanceflushlist): Define.
192 * cli/cli-cmds.h (maintenanceflushlist): Declare.
193 * maint.c (_initialize_maint_cmds): Initialise
194 maintenanceflushlist.
195 * regcache.c: Add 'cli/cli-cmds.h' include.
196 (reg_flush_command): Add header comment.
197 (_initialize_regcache): Create new 'maint flush register-cache'
198 command, make 'flushregs' an alias.
199 * symtab.c: Add 'cli/cli-cmds.h' include.
200 (_initialize_symtab): Create new 'maint flush symbol-cache'
201 command, make old command an alias.
202
19c659f1
AB
2032020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
206 result from lookup_cmd_composition_1, use the prefixes from both
207 the command and the alias instead.
208 (lookup_cmd_composition_1): Initial prefix command is the based on
209 the search list being passed in. Simplify the logic for tracking
210 the prefix command. Replace a use of alloca with a local
211 std::string.
212
44c77c32
AB
2132020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
214
215 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
216 of NULL. Don't print message piece by piece, but sentence at a
217 time to allow internationalisation. Some whitespace cleanup.
218
9ef6d4a1
AB
2192020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
220
221 PR cli/15104
222 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
223 deprecated_cmd_warning.
224 (deprecated_cmd_warning): Take extra parameter, call
225 lookup_cmd_composition_1 and pass new parameter through.
226 (lookup_cmd_composition_1): New function, takes implementation of
227 lookup_cmd_composition but with extra parameter.
228 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
229 passing in cmdlist.
230 * command.h (deprecated_cmd_warning): Add extra parameter to
231 declaration.
232 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
233
1536146f
AB
2342020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
237 command.h, add extra parameter, and use this to guard giving a
238 warning.
239 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
240 include argument names in declaration, add new argument.
241 * completer.c (complete_line_internal_1): Remove unneeded
242 brackets, pass extra argument to lookup_cmd_1.
243
94ba44a6
SM
2442020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * infrun.h (debug_infrun): Make a bool.
247 * infrun.c (debug_infrun): Make a bool.
248 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
249 debug infrun".
250
74b773fc
SM
2512020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
252
253 * displaced-stepping.h (displaced_debug_printf): Use
254 debug_prefixed_printf_cond.
255 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
256 (dwarf_read_debug_printf_v): Likewise.
257 * infrun.h (infrun_debug_printf): Likewise.
258 * linux-nat.c (linux_nat_debug_printf): Likewise.
259
02c72701
TT
2602020-12-11 Tom Tromey <tom@tromey.com>
261
262 * p-exp.y (intvar): Remove global.
263 (DOLLAR_VARIABLE): Change type.
264 (start): Update.
265 (exp): Call write_dollar_variable here...
266 (yylex): ... not here.
267 * m2-exp.y (DOLLAR_VARIABLE): Change type.
268 (variable): Call write_dollar_variable here...
269 (yylex): ... not here.
270 * f-exp.y (DOLLAR_VARIABLE): Change type.
271 (exp): Call write_dollar_variable here...
272 (yylex): ... not here.
273
07d9937a
TT
2742020-12-11 Tom Tromey <tom@tromey.com>
275
276 * varobj.c (varobj_create): Update.
277 (install_variable): Return void.
278
1345dee2
TT
2792020-12-11 Tom Tromey <tom@tromey.com>
280
281 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
282
446d2c03
TT
2832020-12-11 Tom Tromey <tom@tromey.com>
284
285 * varobj.c (varobj_clear_saved_item): Remove.
286 (update_dynamic_varobj_children): Update.
287 (varobj::~varobj): Don't call varobj_clear_saved_item.
288
11106495
TT
2892020-12-11 Tom Tromey <tom@tromey.com>
290
291 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
292 (update_dynamic_varobj_children, create_child)
293 (create_child_with_value): Update.
294 * varobj-iter.h (struct varobj_item) <value>: Now a
295 value_ref_ptr.
296 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
297
24fd95b4
TT
2982020-12-11 Tom Tromey <tom@tromey.com>
299
300 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
301 (varobj_get_iterator): Return unique_ptr.
302 (update_dynamic_varobj_children, install_visualizer)
303 (varobj::~varobj): Update.
304 * python/python-internal.h (py_varobj_get_iterator): Return
305 unique_ptr.
306 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
307
74462664
TT
3082020-12-11 Tom Tromey <tom@tromey.com>
309
310 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
311 (varobj_clear_saved_item, update_dynamic_varobj_children):
312 Update.
313
60ee72f6
TT
3142020-12-11 Tom Tromey <tom@tromey.com>
315
316 * varobj.c (update_dynamic_varobj_children): Update.
317 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
318 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
319 type.
320 (py_varobj_iter::next): Likewise.
321
54746ce3
TT
3222020-12-11 Tom Tromey <tom@tromey.com>
323
324 * varobj.c (update_dynamic_varobj_children, install_visualizer)
325 (varobj::~varobj): Update.
326 * varobj-iter.h (struct varobj_iter): Change to interface class.
327 (struct varobj_iter_ops): Remove.
328 (varobj_iter_next, varobj_iter_delete): Remove.
329 * python/py-varobj.c (struct py_varobj_iter): Derive from
330 varobj_iter. Add constructor, destructor. Rename members.
331 (py_varobj_iter::~py_varobj_iter): Rename from
332 py_varobj_iter_dtor.
333 (py_varobj_iter::next): Rename from py_varobj_iter_next.
334 (py_varobj_iter_ops): Remove.
335 (py_varobj_iter): Rename from py_varobj_iter_ctor.
336 (py_varobj_iter_new): Remove.
337 (py_varobj_get_iterator): Update.
338
d8f168dd
TT
3392020-12-11 Tom Tromey <tom@tromey.com>
340
341 * varobj.h (all_root_varobjs): Take a function_view.
342 * varobj.c (all_root_varobjs): Take a function_view.
343 (varobj_invalidate_iter): Remove unused parameter.
344 (varobj_invalidate): Update.
345 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
346 (mi_cmd_var_update_iter): Change parameters.
347
76deb5d9
TT
3482020-12-11 Tom Tromey <tom@tromey.com>
349
350 * varobj.c (struct varobj_root) <next>: Remove.
351 (struct vlist): Remove.
352 (rootlist): Now a std::list.
353 (install_variable, uninstall_variable, all_root_varobjs): Update.
354
2c1413a9
TT
3552020-12-11 Tom Tromey <tom@tromey.com>
356
357 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
358 (varobj_table): Now htab_t.
359 (varobj_get_handle, install_variable, uninstall_variable):
360 Update.
361 (hash_varobj, eq_varobj_and_string): New functions.
362 (hash_varobj): Update.
363
b6433ede
TT
3642020-12-11 Tom Tromey <tom@tromey.com>
365
366 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
367 * ada-lang.c (check_status_exception): Update.
368 * breakpoint.c (free_bp_location): Remove.
369 (decref_bp_location): Use bp_location_ref_policy.
370 (bpstats::bpstats): Don't call incref_bp_location.
371 (bpstats::~bpstats): Remove.
372 (bpstats::bpstats): Update.
373 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
374 (bp_location::bp_location): Update.
375 (incref_bp_location): Remove.
376 (bkpt_print_it): Update.
377 * breakpoint.h (class bp_location): Derive from
378 refcounted_object.
379 (struct bpstats): Remove destructor.
380 <bp_location_at>: Now a bp_location_ref_ptr.
381 <refc>: Remove.
382 (bp_location_ref_ptr): New typedef.
383 (struct bp_location_ref_policy): New.
384
bfcb9db8
TT
3852020-12-11 Tom Tromey <tom@tromey.com>
386
387 * thread.c (class scoped_inc_dec_ref): Remove.
388 (tp_array_compar_ascending, tp_array_compar_descending): Change
389 parameter types.
390 (thread_apply_all_command): Use thread_info_ref.
391
d634cd0b
TT
3922020-12-11 Tom Tromey <tom@tromey.com>
393
394 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
395 (stop_context::stop_context): Update.
396 (stop_context::~stop_context): Remove.
397
51107df5
TT
3982020-12-11 Tom Tromey <tom@tromey.com>
399
400 * inferior.c (current_inferior_): Change type.
401 (current_inferior, set_current_inferior, initialize_inferiors):
402 Update.
403
15f4dddd
TT
4042020-12-11 Tom Tromey <tom@tromey.com>
405
406 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
407 Change type.
408
a9f14fa5
TT
4092020-12-11 Tom Tromey <tromey@adacore.com>
410
411 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
412 field.
413 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
414 (read_atcb): Use cpu_id_offset.
415
2ccee230
KB
4162020-12-10 Kevin Buettner <kevinb@redhat.com>
417
418 * ada-lang.c (ada_fold_name): Fix off-by-one error.
419
ae1f4d2d
LM
4202020-12-10 Luis Machado <luis.machado@linaro.org>
421
422 * breakpoint.c (should_be_inserted): Don't output newline.
423
6afcd2d4
LM
4242020-12-10 Luis Machado <luis.machado@linaro.org>
425
426 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
427 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
428 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
429 * arch/aarch64.h: ... here.
430 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
431 (aarch64_maybe_swab128): New function.
432 (aarch64_sve_regs_copy_to_reg_buf)
433 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
434 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
435 the data field.
436 (TF_REG_VALUE_BYTES): New enum value.
437 (trad_frame_value_bytes_p): New function.
438 (trad_frame_set_value_bytes): New function.
439 (trad_frame_set_reg_value_bytes): New function.
440 (trad_frame_get_prev_register): Handle register values saved as bytes.
441 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
442 (struct trad_frame_saved_reg) <data>: New field.
443 (trad_frame_set_value_bytes): New prototype.
444 (trad_frame_value_bytes_p): New prototype.
445
15cc148f
MS
4462020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
447
448 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
449 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
450 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
451
12932e2c
TT
4522020-12-09 Tom Tromey <tromey@adacore.com>
453
454 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
455
5cde1d82
TT
4562020-12-09 Tom Tromey <tromey@adacore.com>
457
458 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
459 and "denominator" to gdb_mpz. Handle block forms.
460 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
461 "denominator" to gdb_mpz.
462 (finish_fixed_point_type): Update.
463 (has_zero_over_zero_small_attribute): Update.
464
d9c3a9c0
TT
4652020-12-09 Tom Tromey <tromey@adacore.com>
466
467 * expprint.c (op_name): Update.
468 * expression.h (enum exp_opcode): Update.
469 * std-operator.def: Add more opcodes.
470 * ada-operator.def, fortran-operator.def: Remove, moving contents
471 into std-operator.def.
472
6ad368b8
SM
4732020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
474
475 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
476 Return {} instead of false.
477 (get_discrete_bounds): Compute high bound only if low bound is
478 valid.
479
5b56203a
SM
4802020-12-09 Simon Marchi <simon.marchi@efficios.com>
481
482 PR 26875, PR 26901
483 * gdbtypes.c (get_discrete_low_bound): Make non-static.
484 (get_discrete_high_bound): Make non-static.
485 * gdbtypes.h (get_discrete_low_bound): New declaration.
486 (get_discrete_high_bound): New declaration.
487 * valarith.c (value_subscript): Only fetch high bound if
488 necessary.
489
14c09924
SM
4902020-12-09 Simon Marchi <simon.marchi@efficios.com>
491
492 * gdbtypes.c (get_discrete_bounds): Implement with
493 get_discrete_low_bound and get_discrete_high_bound.
494 (get_discrete_low_bound): New.
495 (get_discrete_high_bound): New.
496
1f8d2881
SM
4972020-12-09 Simon Marchi <simon.marchi@efficios.com>
498
499 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
500 callers.
501 * gdbtypes.c (get_discrete_bounds): Return bool.
502
6244c119
SM
5032020-12-09 Simon Marchi <simon.marchi@efficios.com>
504
505 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
506 (ada_value_slice): Adjust.
507 (pos_atr): Adjust.
508 * gdbtypes.c (get_discrete_bounds): Adjust.
509 (discrete_position): Return optional.
510 * gdbtypes.h (discrete_position): Return optional.
511
a4915e8d
TT
5122020-12-07 Tom Tromey <tromey@adacore.com>
513
514 * maint.c (_initialize_maint_cmds): Use expression command
515 completer for "maint print type".
516
1f58f6c2
TBA
5172020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
518
519 * completer.c (complete_explicit_location): Also add keywords
520 that start with '-' to the completion list.
521
5759831a
TBA
5222020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523
524 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
525 keyword may be followed by any keyword.
526 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
527 'toklen' in the case for "-force-condition".
528
21e051b3
TBA
5292020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
530
531 * main.c (catch_command_errors): Add a flag parameter; invoke
532 `bpstat_do_actions` if the flag is set.
533 (execute_cmdargs): Update a call to `catch_command_errors`.
534
f51f9f1d
TV
5352020-12-07 Tom de Vries <tdevries@suse.de>
536
537 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
538
00158a68
TT
5392020-12-06 Tom Tromey <tom@tromey.com>
540
541 PR ada/26999
542 * ada-lang.c (replace_operator_with_call): Rewrite.
543
296cfb88
GF
5442020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
545
546 PR breakpoints/27009
547 * s390-tdep.h (op_bc): Correct BC opcode value.
548
63c457b9
JB
5492020-12-06 Joel Brobecker <brobecker@adacore.com>
550
551 * gmp-utils.h (gdb_mpz::safe_export): New private method.
552 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
553 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
554 (gdb_mpz::safe_export): New method.
555 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
556 Update function description.
557 (check_as_integer_raises_out_of_range_error): New function.
558 (gdb_mpz_as_integer_out_of_range): New function.
559 (_initialize_gmp_utils_selftests): Register
560 gdb_mpz_as_integer_out_of_range as a selftest.
561
3c7ba803
JB
5622020-12-05 Joel Brobecker <brobecker@adacore.com>
563
564 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
565 TARGET_CHAR_BIT.
566 (gdb_mpz::write): Likewise.
567
372ff58f
SM
5682020-12-04 Simon Marchi <simon.marchi@efficios.com>
569
570 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
571 number of displaced step buffers.
572
480af54c
SM
5732020-12-04 Simon Marchi <simon.marchi@efficios.com>
574
575 * displaced-stepping.h (struct displaced_step_buffer): Rename
576 to...
577 (struct displaced_step_buffers): ... this.
578 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
579 <struct displaced_step_buffer>: New inner class.
580 <m_buffers>: New.
581 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
582 to...
583 (displaced_step_buffers::prepare): ... this, adjust for multiple
584 buffers.
585 (displaced_step_buffer::finish): Rename to...
586 (displaced_step_buffers::finish): ... this, adjust for multiple
587 buffers.
588 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
589 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
590 adjust for multiple buffers.
591 (displaced_step_buffer::restore_in_ptid): Rename to...
592 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
593 multiple buffers.
594 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
595 for num_disp_step_buffers.
596 * linux-tdep.c (struct linux_gdbarch_data)
597 <num_disp_step_buffers>: New field.
598 (struct linux_info) <disp_step_buf>: Rename to...
599 <disp_step_bufs>: ... this, change type to
600 displaced_step_buffers.
601 (linux_displaced_step_prepare): Use
602 linux_gdbarch_data::num_disp_step_buffers to create that number
603 of buffers.
604 (linux_displaced_step_finish): Adjust.
605 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
606 (linux_displaced_step_restore_all_in_ptid): Adjust.
607 (linux_init_abi): Change supports_displaced_step parameter for
608 num_disp_step_buffers, save it in linux_gdbarch_data.
609 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
610 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
611 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
612 supports_displaced_step parameter for num_disp_step_buffers.
613 (amd64_linux_init_abi): Adjust.
614 (amd64_x32_linux_init_abi): Adjust.
615 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
616 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
617 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
618 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
619 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
620 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
621 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
622 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
623 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
624 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
625 * m68k-linux-tdep.c (m68k_linux_init_abi):
626 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
627 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
628 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
629 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
630 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
631 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
632 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
633 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
634 Change type to displaced_step_buffers.
635 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
636 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
637 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
638 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
639 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
640 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
641 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
642
d9655058
SM
6432020-12-04 Simon Marchi <simon.marchi@efficios.com>
644
645 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
646 obkstack.
647 (_initialize_linux_tdep): Register pre-init gdb data instead of
648 post-init.
649
187b041e
SM
6502020-12-04 Simon Marchi <simon.marchi@efficios.com>
651
652 * displaced-stepping.h (struct
653 displaced_step_copy_insn_closure): Adjust comments.
654 (struct displaced_step_inferior_state) <step_thread,
655 step_gdbarch, step_closure, step_original, step_copy,
656 step_saved_copy>: Remove fields.
657 (struct displaced_step_thread_state): New.
658 (struct displaced_step_buffer): New.
659 * displaced-stepping.c (displaced_step_buffer::prepare): New.
660 (write_memory_ptid): Move from infrun.c.
661 (displaced_step_instruction_executed_successfully): New,
662 factored out of displaced_step_finish.
663 (displaced_step_buffer::finish): New.
664 (displaced_step_buffer::copy_insn_closure_by_addr): New.
665 (displaced_step_buffer::restore_in_ptid): New.
666 * gdbarch.sh (displaced_step_location): Remove.
667 (displaced_step_prepare, displaced_step_finish,
668 displaced_step_copy_insn_closure_by_addr,
669 displaced_step_restore_all_in_ptid): New.
670 * gdbarch.c: Re-generate.
671 * gdbarch.h: Re-generate.
672 * gdbthread.h (class thread_info) <displaced_step_state>: New
673 field.
674 (thread_step_over_chain_remove): New declaration.
675 (thread_step_over_chain_next): New declaration.
676 (thread_step_over_chain_length): New declaration.
677 * thread.c (thread_step_over_chain_remove): Make non-static.
678 (thread_step_over_chain_next): New.
679 (global_thread_step_over_chain_next): Use
680 thread_step_over_chain_next.
681 (thread_step_over_chain_length): New.
682 (global_thread_step_over_chain_enqueue): Add debug print.
683 (global_thread_step_over_chain_remove): Add debug print.
684 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
685 Remove.
686 * infrun.c (get_displaced_stepping_state): New.
687 (displaced_step_in_progress_any_inferior): Remove.
688 (displaced_step_in_progress_thread): Adjust.
689 (displaced_step_in_progress): Adjust.
690 (displaced_step_in_progress_any_thread): New.
691 (get_displaced_step_copy_insn_closure_by_addr): Remove.
692 (gdbarch_supports_displaced_stepping): Use
693 gdbarch_displaced_step_prepare_p.
694 (displaced_step_reset): Change parameter from inferior to
695 thread.
696 (displaced_step_prepare_throw): Implement using
697 gdbarch_displaced_step_prepare.
698 (write_memory_ptid): Move to displaced-step.c.
699 (displaced_step_restore): Remove.
700 (displaced_step_finish): Implement using
701 gdbarch_displaced_step_finish.
702 (start_step_over): Allow starting more than one displaced step.
703 (prepare_for_detach): Handle possibly multiple threads doing
704 displaced steps.
705 (handle_inferior_event): Handle possibility that fork event
706 happens while another thread displaced steps.
707 * linux-tdep.h (linux_displaced_step_prepare): New.
708 (linux_displaced_step_finish): New.
709 (linux_displaced_step_copy_insn_closure_by_addr): New.
710 (linux_displaced_step_restore_all_in_ptid): New.
711 (linux_init_abi): Add supports_displaced_step parameter.
712 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
713 (linux_displaced_step_prepare): New.
714 (linux_displaced_step_finish): New.
715 (linux_displaced_step_copy_insn_closure_by_addr): New.
716 (linux_displaced_step_restore_all_in_ptid): New.
717 (linux_init_abi): Add supports_displaced_step parameter,
718 register displaced step methods if true.
719 (_initialize_linux_tdep): Register inferior_execd observer.
720 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
721 supports_displaced_step parameter, adjust call to
722 linux_init_abi. Remove call to
723 set_gdbarch_displaced_step_location.
724 (amd64_linux_init_abi): Adjust call to
725 amd64_linux_init_abi_common.
726 (amd64_x32_linux_init_abi): Likewise.
727 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
728 linux_init_abi. Remove call to
729 set_gdbarch_displaced_step_location.
730 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
731 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
732 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
733 linux_init_abi.
734 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
735 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
736 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
737 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
738 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
739 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
740 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
741 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
742 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
743 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
744 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
745 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
746 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
747 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
748 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
749 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
750 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
751 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
752 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
753 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
754 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
755 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
756 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
757 linux_init_abi. Remove call to
758 set_gdbarch_displaced_step_location.
759 * arm-tdep.c (arm_pc_is_thumb): Call
760 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
761 get_displaced_step_copy_insn_closure_by_addr.
762 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
763 clear gdbarch methods.
764 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
765 (get_ppc_per_inferior): New function.
766 (ppc_displaced_step_prepare): New function.
767 (ppc_displaced_step_finish): New function.
768 (ppc_displaced_step_restore_all_in_ptid): New function.
769 (rs6000_gdbarch_init): Register new gdbarch methods.
770 * s390-tdep.c (s390_gdbarch_init): Don't call
771 set_gdbarch_displaced_step_location, set new gdbarch methods.
772
c7acb87b
SM
7732020-12-04 Simon Marchi <simon.marchi@efficios.com>
774
775 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
776 * aarch64-tdep.h: Include displaced-stepping.h.
777 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
778 Move here.
779 (displaced_step_copy_insn_closure_up): Move here.
780 (struct buf_displaced_step_copy_insn_closure): Move here.
781 (struct displaced_step_inferior_state): Move here.
782 (debug_displaced): Move here.
783 (displaced_debug_printf_1): Move here.
784 (displaced_debug_printf): Move here.
785 * displaced-stepping.c: New file.
786 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
787 * gdbarch.h: Re-generate.
788 * inferior.h: Include displaced-stepping.h.
789 * infrun.h (debug_displaced): Move to displaced-stepping.h.
790 (displaced_debug_printf_1): Likewise.
791 (displaced_debug_printf): Likewise.
792 (struct displaced_step_copy_insn_closure): Likewise.
793 (displaced_step_copy_insn_closure_up): Likewise.
794 (struct buf_displaced_step_copy_insn_closure): Likewise.
795 (struct displaced_step_inferior_state): Likewise.
796 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
797 (displaced_debug_printf_1): Likewise.
798 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
799 Likewise.
800 (_initialize_infrun): Don't register "set/show debug displaced".
801
94b24c74
SM
8022020-12-04 Simon Marchi <simon.marchi@efficios.com>
803
804 * linux-tdep.c (get_linux_inferior_data): Add inferior
805 parameter.
806 (linux_vsyscall_range): Pass current inferior.
807
bab37966
SM
8082020-12-04 Simon Marchi <simon.marchi@efficios.com>
809
810 * infrun.c (displaced_step_prepare_throw): Change return type to
811 displaced_step_prepare_status.
812 (displaced_step_prepare): Likewise.
813 (displaced_step_finish): Change return type to
814 displaced_step_finish_status.
815 (resume_1): Adjust.
816 (stop_all_threads): Adjust.
817 * displaced-stepping.h: New file.
818
7def77a1
SM
8192020-12-04 Simon Marchi <simon.marchi@efficios.com>
820
821 * infrun.c (displaced_step_fixup): Rename to...
822 (displaced_step_finish): ... this, update all callers.
823
1152d984
SM
8242020-12-04 Simon Marchi <simon.marchi@efficios.com>
825
826 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
827 (get_displaced_step_copy_insn_closure_by_addr): ... this.
828 Update all users.
829 (displaced_step_closure): Rename to...
830 (displaced_step_copy_insn_closure): ... this. Update all users.
831 (displaced_step_closure_up): Rename to...
832 (displaced_step_copy_insn_closure_up). ... this. Update all
833 users.
834 (buf_displaced_step_closure): Rename to...
835 (buf_displaced_step_copy_insn_closure): ... this. Update all
836 users.
837 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
838 (get_displaced_step_copy_insn_closure_by_addr): ... this.
839 Update all users.
840 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
841 (aarch64_displaced_step_copy_insn_closure): ... this. Update
842 all users.
843 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
844 (amd64_displaced_step_copy_insn_closure): ... this. Update all
845 users.
846 * arm-tdep.h (arm_displaced_step_closure): Rename to...
847 (arm_displaced_step_copy_insn_closure): ... this. Update all
848 users.
849 * i386-tdep.h (i386_displaced_step_closure): Rename to...
850 (i386_displaced_step_copy_insn_closure): ... this. Update all
851 users.
852 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
853 (ppc_displaced_step_copy_insn_closure): ... this. Update all
854 users.
855 * s390-tdep.c (s390_displaced_step_closure): Rename to...
856 (s390_displaced_step_copy_insn_closure): ... this. Update all
857 users.
858 * gdbarch.h: Re-generate.
859 * gdbarch.c: Re-generate.
860
28d5518b
SM
8612020-12-04 Simon Marchi <simon.marchi@efficios.com>
862
863 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
864 (global_thread_step_over_chain_enqueue): ... this. Update all
865 users.
866 (thread_step_over_chain_remove): Rename to...
867 (global_thread_step_over_chain_remove): ... this. Update all
868 users.
869 (thread_step_over_chain_next): Rename to...
870 (global_thread_step_over_chain_next): ... this. Update all
871 users.
872 * infrun.h (step_over_queue_head): Rename to...
873 (global_thread_step_over_chain_head): ... this. Update all
874 users.
875 * infrun.c (step_over_queue_head): Rename to...
876 (global_thread_step_over_chain_head): ... this. Update all
877 users.
878 * thread.c (step_over_chain_remove): Rename to...
879 (thread_step_over_chain_remove): ... this. Update all users.
880 (thread_step_over_chain_next): Rename to...
881 (global_thread_step_over_chain_next): ... this. Update all
882 users.
883 (thread_step_over_chain_enqueue): Rename to...
884 (global_thread_step_over_chain_enqueue): ... this. Update all
885 users.
886 (thread_step_over_chain_remove): Rename to...
887 (global_thread_step_over_chain_remove): ... this. Update all
888 users.
889
f5f01699
SM
8902020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * infrun.c (get_displaced_stepping_state): Remove, change
893 callers to access the field directly.
894
c0aba012
SM
8952020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
896
897 * infrun.c (handle_inferior_event): Restore displaced step
898 buffer bytes in child process when handling fork, even if fork
899 happened in another thread than the displaced-stepping one.
900
3b7a962d
SM
9012020-12-04 Simon Marchi <simon.marchi@efficios.com>
902
903 * infrun.c (infrun_inferior_execd): New function.
904 (_initialize_infrun): Attach inferior_execd observer.
905
42a4fec5
SM
9062020-12-04 Simon Marchi <simon.marchi@efficios.com>
907
908 * observable.h (inferior_execd): Declare new observable.
909 * observable.c (inferior_execd): Declare new observable.
910 * infrun.c (follow_exec): Notify inferior_execd observer.
911 * jit.c (jit_inferior_created_hook): Make static.
912 (_initialize_jit): Register inferior_execd observer.
913 * jit.h (jit_inferior_created_hook): Remove declaration.
914 * solib.c (_initialize_solib): Register inferior_execd observer.
915
aafdfb4e
TV
9162020-12-04 Tom de Vries <tdevries@suse.de>
917
918 PR gdb/27003
919 * completer.c (completion_tracker::build_completion_result): Don't
920 access match_list[0][-1].
921
f99b5177
TT
9222020-12-04 Tom Tromey <tromey@adacore.com>
923
924 * linespec.c (struct linespec_token): Rename; remove typedef.
925 * guile/scm-block.c (struct block_smob): Remove typedef.
926 (struct block_syms_progress_smob): Likewise.
927 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
928 * guile/scm-symtab.c (symtab_smob): Remove typedef.
929 (struct sal_smob): Remove typedef.
930 * guile/scm-param.c (struct param_smob): Remove typedef.
931 * guile/scm-progspace.c (struct pspace_smob): Rename.
932 * guile/scm-objfile.c (struct objfile_smob): Rename.
933 * guile/scm-iterator.c (struct iterator_smob): Rename.
934 * guile/scm-frame.c (struct frame_smob): Rename.
935 * guile/scm-arch.c (struct arch_smob): Rename.
936 * guile/scm-type.c (struct field_smob): Remove typedef.
937 (struct type_smob): Rename.
938 * guile/scm-cmd.c (struct command_smob): Remove typedef.
939 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
940 * guile/scm-value.c (struct value_smob): Remove typedef.
941 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
942 * guile/guile-internal.h (struct scheme_variable)
943 (struct scheme_function, struct scheme_integer_constant)
944 (struct gdb_smob, struct chained_gdb_smob)
945 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
946 (objfile_smob, pspace_smob, type_smob): Remove typedef.
947 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
948 (struct pretty_printer_worker_smob): Remove typedef.
949 * guile/scm-exception.c (struct exception_smob): Remove typedef.
950 * python/py-block.c (struct block_object): Remove typedef.
951 (block_syms_iterator_object): Update.
952 (set_block): Update.
953 (block_syms_iterator_object): Remove typedef.
954 * python/py-inferior.c (struct membuf_object): Remove typedef.
955 * python/py-symtab.c (struct symtab_object): Remove typedef.
956 (set_symtab): Update.
957 (sal_object): Remove typedef.
958 (set_sal): Update.
959 * python/py-frame.c (frame_object): Remove typedef.
960 * python/py-record-btrace.c (struct btpy_list_object): Remove
961 typedef.
962 * python/py-arch.c (struct arch_object): Remove typedef.
963 * python/py-linetable.c (struct linetable_entry_object)
964 (linetable_object, struct ltpy_iterator_object): Remove typedef.
965 * python/py-events.h (eventregistry_object): Remove typedef.
966 (struct events_object): Remove typedef.
967 * python/python-internal.h (gdbpy_breakpoint_object): Remove
968 typedef.
969 (thread_object): Remove typedef.
970 * python/py-progspace.c (pspace_object): Remove typedef.
971 * python/py-value.c (struct value_object): Remove typedef.
972 * python/py-record.h (recpy_record_object): Remove typedef.
973 (struct recpy_element_object): Remove typedef.
974 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
975 * python/py-objfile.c (objfile_object): Remove typedef.
976 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
977 * python/py-type.c (type_object): Remove typedef.
978 (typy_iterator_object): Update.
979 (set_type): Update.
980 (field_object): Remove typedef.
981 (typy_iterator_object): Remove typedef.
982 * python/py-registers.c (register_descriptor_iterator_object):
983 Remove typedef.
984 (struct register_descriptor_object)
985 (struct reggroup_iterator_object, struct reggroup_object): Remove
986 typedef.
987 * python/py-record.c (recpy_gap_object): Remove typedef.
988 * python/py-symbol.c (symbol_object): Remove typedef.
989 (set_symbol): Update.
990 * python/py-event.h (event_object): Remove typedef.
991 * python/py-param.c (parmpy_object): Remove typedef.
992 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
993 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
994 (unwind_info_object, struct cached_frame_info): Likewise.
995
91f87213
TT
9962020-12-04 Tom Tromey <tromey@adacore.com>
997
998 * value.c (value_internal_function_name): Make return type const.
999 * value.h (value_internal_function_name): Make return type const.
1000
5382f971
LM
10012020-12-04 Luis Machado <luis.machado@linaro.org>
1002
1003 * aarch64-tdep.c (submask, bit, bits): Remove.
1004 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1005 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1006 (aarch64_decode_cb, aarch64_decode_tb)
1007 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1008 immediate.
1009 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1010
b6a6aa07
TV
10112020-12-04 Tom de Vries <tdevries@suse.de>
1012
1013 PR tdep/27007
1014 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1015
0bc2e38d
SM
10162020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 PR gdb/26876
1019 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1020 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1021
25428040
AB
10222020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1023
1024 * arch/riscv.c: Include 'rv32e-xregs.c'.
1025 (riscv_create_target_description): Update to handle rv32e.
1026 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1027 member variable.
1028 <operator==>: Update to account for new field.
1029 <hash>: Likewise.
1030 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1031 * features/riscv/rv32e-xregs.c: Generated.
1032 * features/riscv/rv32e-xregs.xml: New file.
1033 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1034 file.
1035 (riscv_debug_infcall): Likewise.
1036 (riscv_debug_unwinder): Likewise.
1037 (riscv_debug_gdbarch): Likewise.
1038 (enum riscv_register_required_status): Delete.
1039 (struct riscv_register_feature): Add constructor, delete default
1040 constructor, copy, and assign constructors.
1041 (struct riscv_register_feature::register_info) <required>: Delete.
1042 <check>: Update comment and arguments.
1043 (struct riscv_register_feature) <name>: Change to member function.
1044 <prefer_first_name>: Delete.
1045 <tdesc_feature>: New member function.
1046 <registers>: Rename to...
1047 <m_registers>: ...this.
1048 <m_feature_name>: New member variable.
1049 (riscv_register_feature::register_info::check): Update arguments.
1050 (riscv_xreg_feature): Rewrite as class, create a single static
1051 instance of the class.
1052 (riscv_freg_feature): Likewise.
1053 (riscv_virtual_feature): Likewise.
1054 (riscv_csr_feature): Likewise.
1055 (riscv_create_csr_aliases): Has become a member function inside
1056 riscv_csr_feature class.
1057 (riscv_abi_embedded): New function definition.
1058 (riscv_register_name): Adjust to use new feature objects.
1059 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1060 and adjust available argument registers.
1061 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1062 (riscv_check_tdesc_feature): Delete.
1063 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1064 (riscv_gdbarch_init): Delete target description checking code, and
1065 instead call to the new feature objects to perform the checks.
1066 Reorder handling of no abi information case, allows small code
1067 simplification.
1068 (_initialize_riscv_tdep): Remove call, this is now done in the
1069 riscv_csr_feature constructor.
1070 * riscv-tdep.h (riscv_abi_embedded): Declare.
1071
533b2ae0
AB
10722020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1075 DECLARE_CSR_ALIAS.
1076
e4502042
AB
10772020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1080 implementation moved from riscv_register_reggroup_p.
1081 (riscv_register_reggroup_p): Update group handling for unknown
1082 CSRs.
1083
2bf3b79d
SDJ
10842020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1085
1086 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1087 (dwarf2_get_dwz_file): Convert 'filename' to a
1088 std::string. Use dwz_search_other_debugdirs to search for DWZ
1089 files in the debug-file-directories provided by the user as well.
1090
77bf7e99
TT
10912020-12-01 Tom Tromey <tom@tromey.com>
1092
1093 * parse.c (expr_builder::expr_builder): Initialize expout.
1094 (expr_builder::release): Use expression::resize.
1095 (expression::expression, expression::~expression)
1096 (expression::resize): New methods.
1097 (write_exp_elt): Use expression::resize.
1098 (prefixify_expression): Update.
1099 (increase_expout_size): Use expression::resize.
1100 * expression.h (struct expression): Add constructor, destructor.
1101 <resize>: New method.
1102 (expression_up): Change type.
1103
539d71e8
RA
11042020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1105 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1106 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1107 set region.
1108
7ce05d21
TV
11092020-11-30 Tom de Vries <tdevries@suse.de>
1110
1111 PR symtab/26905
1112 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1113 is_reference parameter.
1114 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1115
88b91969
TT
11162020-11-30 Tom Tromey <tom@tromey.com>
1117
1118 * rust-lang.c (rust_op_name): Remove.
1119 (exp_descriptor_rust): Update.
1120 * parser-defs.h (op_name_standard): Don't declare.
1121 (struct exp_descriptor) <op_name>: Remove.
1122 * parse.c (exp_descriptor_standard): Update.
1123 * opencl-lang.c (exp_descriptor_opencl): Update.
1124 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1125 * f-lang.c (op_name_f): Remove.
1126 (f_language::exp_descriptor_tab): Update.
1127 * expression.h (op_name): Update.
1128 * expprint.c (op_name): Rewrite.
1129 (op_name_standard): Remove.
1130 (dump_raw_expression, dump_subexp): Update.
1131 * c-lang.c (exp_descriptor_c): Update.
1132 * ax-gdb.c (gen_expr): Update.
1133 * ada-lang.c (ada_op_name): Remove.
1134 (ada_exp_descriptor): Update.
1135
1cd49c43
TT
11362020-11-30 Tom Tromey <tom@tromey.com>
1137
1138 * eval.c (init_array_element): Remove.
1139 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1140
96fb9086
HD
11412020-11-29 Hannes Domani <ssbssa@yahoo.de>
1142
1143 PR tui/26973
1144 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1145 static locator win info.
1146
b4132322
AR
11472020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1148
1149 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1150 program.
1151
3df8c6af
AB
11522020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1155 is always initialized.
1156
0ae45769
RA
11572020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1158 * MAINTAINERS (Write After Approval): Add myself.
1159
239ca5e4
PW
11602020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1161
1162 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1163 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1164
cbfa382a
TT
11652020-11-25 Tom Tromey <tom@tromey.com>
1166
1167 * eval.c (evaluate_subexp_standard): Remove unnecessary
1168 variables.
1169
af30c400
TT
11702020-11-25 Tom Tromey <tom@tromey.com>
1171
1172 * d-lang.c: Include parser-defs.h.
1173 * rust-lang.c: Include parser-defs.h.
1174 * c-lang.h: Do not include parser-defs.h.
1175
1c64f6cb
SM
11762020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * regcache.h (struct cached_reg): Remove typedef.
1179
2c20a601
JB
11802020-11-24 Joel Brobecker <brobecker@adacore.com>
1181
1182 * README: Fix the URL of the MPFR library.
1183
c609df64
JB
11842020-11-24 Joel Brobecker <brobecker@adacore.com>
1185
1186 * README: Document the --with-libgmp-prefix configure option.
1187
fa123c32
JB
11882020-11-24 Joel Brobecker <brobecker@adacore.com>
1189
1190 * NEWS: Add entry documenting support for DWARF-based fixed
1191 point types.
1192
0fb8bb02
JB
11932020-11-24 Joel Brobecker <brobecker@adacore.com>
1194
1195 * NEWS: Document that building GDB now requires GMP.
1196
4afa9fd9
JB
11972020-11-24 Joel Brobecker <brobecker@adacore.com>
1198
1199 * typeprint.c (print_type_scalar): Add handling of
1200 TYPE_CODE_FIXED_POINT.
1201
af619ce9
JB
12022020-11-24 Joel Brobecker <brobecker@adacore.com>
1203
1204 * valarith.c (fixed_point_binop): Replace the
1205 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1206 users accordingly.
1207
e6fcee3a
JB
12082020-11-24 Joel Brobecker <brobecker@adacore.com>
1209
1210 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1211 replacing fixed_point_scaling_factor. All callers updated
1212 throughout this project.
1213 (fixed_point_scaling_factor): Delete declaration.
1214 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1215 fixed_point_scaling_factor. Adjust implementation accordingly.
1216
d19937a7
JB
12172020-11-24 Joel Brobecker <brobecker@adacore.com>
1218
1219 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1220 replacing the fixed_point_type_base_type function. All callers
1221 updated throughout this project.
1222 (fixed_point_type_base_type): Remove declaration.
1223 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1224 fixed_point_type_base_type. Adjust implementation accordingly.
1225
2a12c336
JB
12262020-11-24 Joel Brobecker <brobecker@adacore.com>
1227
1228 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1229 New methods.
1230 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1231 (TYPE_FIXED_POINT_INFO): Delete macro.
1232 (allocate_fixed_point_type_info): Change return type to void.
1233 * gdbtypes.c (copy_type_recursive): Replace the use of
1234 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1235 (fixed_point_scaling_factor): Likewise.
1236 (allocate_fixed_point_type_info): Change return type to void.
1237 Adjust implementation accordingly.
1238 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1239 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1240
c9f0b43f
JB
12412020-11-24 Joel Brobecker <brobecker@adacore.com>
1242
1243 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1244 into one single gdb::array_view parameter.
1245 (gdb_mpz::write): Likewise.
1246 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1247 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1248 into one single gdb::array_view parameter.
1249 Adjust implementation accordingly.
1250 (gdb_mpz::write): Likewise.
1251 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1252 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1253 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1254
987b6703
JB
12552020-11-24 Joel Brobecker <brobecker@adacore.com>
1256
1257 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1258 Change return type to std::string. Update all callers.
1259 * gmp-utils.c (gmp_string_printf): Likewise.
1260
4fbb7cce
JB
12612020-11-24 Joel Brobecker <brobecker@adacore.com>
1262
1263 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1264 instead of mpq_set_ui to initialize our GMP rational.
1265
d6ab69dd
TV
12662020-11-23 Tom de Vries <tdevries@suse.de>
1267
1268 * debuginfod-support.c (debuginfod_source_query)
1269 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1270
dab72643
TT
12712020-11-21 Tom Tromey <tom@tromey.com>
1272
1273 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1274
c0ad05d5
SM
12752020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1278 Pass 2.0 to pow.
1279 (gdb_mpz_write_all_from_small): Likewise.
1280
a43b29c9
SM
12812020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1284 of abs.
1285
ae41200b
NA
12862020-11-20 Nick Alcock <nick.alcock@oracle.com>
1287
1288 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1289 ctf_arc_open_by_name.
1290
139633c3
NA
12912020-11-20 Nick Alcock <nick.alcock@oracle.com>
1292
1293 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1294 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1295
cbbcd7a7
PA
12962020-11-20 Pedro Alves <pedro@palves.net>
1297
1298 * language.c (language_arch_info::lookup_primitive_type): Use
1299 gdb::function_view instead of gdb::function.
1300 (template language_lookup_primitive_type): Rename to ...
1301 (language_lookup_primitive_type_1): ... this, and make static.
1302 (language_lookup_primitive_type(const struct language_defn *,
1303 struct gdbarch *, const char *): Make non-template.
1304 (language_lookup_primitive_type(const struct language_defn *,
1305 struct gdbarch *, std::function<bool (struct type *)>): Make
1306 non-template and use gdb::function_view.
1307 * language.h (language_arch_info::lookup_primitive_type): Use
1308 gdb::function_view instead of std::function.
1309 (language_lookup_primitive_type): No longer template.
1310 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1311 lambda instead of a std::function.
1312
d5ef21c3
AA
13132020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1314
1315 PR tdep/26916
1316 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1317 and STOCFH.
1318
a5adb8f3
SM
13192020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1320
1321 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1322
70125a45
SM
13232020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1324
1325 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1326 in `loop_cb` parameter.
1327 * gdbarch.c: Re-generate.
1328 * gdbarch.h: Re-generate.
1329 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1330 parameter.
1331 * arch-utils.h (default_read_core_file_mappings): Likewise.
1332 * corelow.c (core_target::build_file_mappings): Likewise.
1333 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1334 (linux_core_info_proc_mappings): Likewise.
1335
a5c641b5
AB
13362020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1339 * NEWS: Mention new options.
1340 * f-array-walker.h: New file.
1341 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1342 (repack_array_slices): New static global.
1343 (show_repack_array_slices): New function.
1344 (fortran_array_slicing_debug): New static global.
1345 (show_fortran_array_slicing_debug): New function.
1346 (value_f90_subarray): Delete.
1347 (skip_undetermined_arglist): Delete.
1348 (class fortran_array_repacker_base_impl): New class.
1349 (class fortran_lazy_array_repacker_impl): New class.
1350 (class fortran_array_repacker_impl): New class.
1351 (fortran_value_subarray): Complete rewrite.
1352 (set_fortran_list): New static global.
1353 (show_fortran_list): Likewise.
1354 (_initialize_f_language): Register new commands.
1355 (fortran_adjust_dynamic_array_base_address_hack): New function.
1356 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1357 Declare.
1358 * f-valprint.c: Include 'f-array-walker.h'.
1359 (class fortran_array_printer_impl): New class.
1360 (f77_print_array_1): Delete.
1361 (f77_print_array): Delete.
1362 (fortran_print_array): New.
1363 (f_value_print_inner): Update to call fortran_print_array.
1364 * gdbtypes.c: Include 'f-lang.h'.
1365 (resolve_dynamic_type_internal): Call
1366 fortran_adjust_dynamic_array_base_address_hack.
1367
a15a5258
AB
13682020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * breakpoint.c (struct watch_options): New struct.
1371 (watch_option_defs): New static global.
1372 (make_watch_options_def_group): New function.
1373 (watch_maybe_just_location): Convert option parsing.
1374 (watch_command_completer): New function.
1375 (_initialize_breakpoint): Build help text using options mechanism.
1376
2e362716
AB
13772020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1378
1379 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1380 (watch_command_1): Update parameter types. Convert locals to
1381 bool.
1382 (watch_command_wrapper): Change parameter type.
1383 (watch_maybe_just_location): Change locals to bool.
1384 (rwatch_command_wrapper): Update parameter type.
1385 (awatch_command_wrapper): Update parameter type.
1386 * breakpoint.h (watch_command_wrapper): Change parameter type.
1387 (rwatch_command_wrapper): Update parameter type.
1388 (awatch_command_wrapper): Update parameter type.
1389 * eval.c (fetch_subexp_value): Change parameter type.
1390 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1391 'false' not '0'.
1392 * value.h (fetch_subexp_value): Change parameter type in
1393 declaration.
1394
b3ff61f8
AB
13952020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1398 skip_spaces.
1399
5b7d45d3
KS
14002020-11-18 Keith Seitz <keiths@redhat.com>
1401
1402 * linux-tdep.c (dump_note_entry_p): Return true instead of
1403 checking `filename'.
1404
c44191f8
TV
14052020-11-18 Tom de Vries <tdevries@suse.de>
1406
1407 * debuginfod-support.c (debuginfod_source_query)
1408 (debuginfod_debuginfo_query): Also do early exit if
1409 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1410
5d8254e1
TV
14112020-11-18 Tom de Vries <tdevries@suse.de>
1412
1413 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1414 warning.
1415
584903d3
SM
14162020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1419 callers. Move doc here.
1420 * gdbtypes.c (get_array_bounds): Return bool
1421
6f2643db
AB
14222020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1425 assert.
1426 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1427 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1428 case to the default.
1429
037d7135
AB
14302020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * printcmd.c: Include 'safe-ctype.c'.
1433 (skip_over_slash_fmt): New function.
1434 (print_command_completer): Call skip_over_slash_fmt.
1435 (display_and_x_command_completer): New function.
1436 (_initialize_printcmd): Add command completion for 'x' and
1437 'display'.
1438
2b3cb400
PA
14392020-11-16 Pedro Alves <pedro@palves.net>
1440
1441 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1442 (get_prev_frame_always_1): ... to here.
1443 * inline-frame.c (inline_frame_this_id): Mention
1444 get_prev_frame_always_1 in comment.
1445
b74dbc20
JB
14462020-11-15 Joel Brobecker <brobecker@adacore.com>
1447
1448 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1449 handling.
1450 (value_less): Add fixed-point handling.
1451
0a12719e
JB
14522020-11-15 Joel Brobecker <brobecker@adacore.com>
1453
1454 * eval.c (binop_promote): Add fixed-point type handling.
1455 * valarith.c (fixed_point_binop): New function.
1456 (scalar_binop): Add fixed-point type handling.
1457 (value_neg): Add fixed-point type handling.
1458 * valops.c (value_cast_to_fixed_point): New function.
1459 (value_cast): Add fixed-point type handling.
1460
0c9150e4
JB
14612020-11-15 Joel Brobecker <brobecker@adacore.com>
1462
1463 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1464 range types.
1465 * c-typeprint.c (c_type_print_varspec_prefix)
1466 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1467 TYPE_CODE_FIXED_POINT handling.
1468 * p-typeprint.c (pascal_type_print_varspec_prefix)
1469 (pascal_type_print_varspec_suffix): Likewise.
1470 * typeprint.c (print_type_fixed_point): New function.
1471 * typeprint.h (print_type_fixed_point): Add declaration.
1472
b26daff9
JB
14732020-11-15 Joel Brobecker <brobecker@adacore.com>
1474
1475 * printcmd.c (print_scalar_formatted): Add fixed-point type
1476 handling when options->format is set.
1477
09584414
JB
14782020-11-15 Joel Brobecker <brobecker@adacore.com>
1479
1480 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1481 * dwarf2/read.c (get_dwarf2_rational_constant)
1482 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1483 (has_zero_over_zero_small_attribute): New functions.
1484 read_base_type, set_die_type): Add fixed-point type handling.
1485 * gdb-gdb.py.in: Add fixed-point type handling.
1486 * gdbtypes.c: #include "gmp-utils.h".
1487 (create_range_type, set_type_code): Add fixed-point type handling.
1488 (init_fixed_point_type): New function.
1489 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1490 (print_fixed_point_type_info): New function.
1491 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1492 handling.
1493 (fixed_point_type_storage): New typedef.
1494 (fixed_point_objfile_key): New static global.
1495 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1496 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1497 functions.
1498 * gdbtypes.h: #include "gmp-utils.h".
1499 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1500 (union type_specific) <fixed_point_info>: New field.
1501 (struct fixed_point_type_info): New struct.
1502 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1503 (init_fixed_point_type, is_fixed_point_type)
1504 (fixed_point_type_base_type, fixed_point_scaling_factor)
1505 (allocate_fixed_point_type_info): Add declarations.
1506 * valprint.c (generic_val_print_fixed_point): New function.
1507 (generic_value_print): Add fixed-point type handling.
1508 * value.c (value_as_address, unpack_long): Add fixed-point type
1509 handling.
1510
e55c6530
JB
15112020-11-15 Joel Brobecker <brobecker@adacore.com>
1512
1513 * utils.h (uinteger_pow): Add declaration.
1514 * utils.c (uinteger_pow): Moved here (without changes)...
1515 * valarith.c (uinteger_pow): ... from here.
1516
b34c74ab
JB
15172020-11-15 Joel Brobecker <brobecker@adacore.com>
1518
40d9d2fd 1519 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1520 * unittests/gmp-utils-selftests.c: New file.
1521 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1522 unittests/gmp-utils-selftests.c.
1523 (COMMON_SFILES) Add gmp-utils.c.
1524 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1525
1b4ac058
JB
15262020-11-15 Joel Brobecker <brobecker@adacore.com>
1527
1528 * configure.ac: Generate an error if a usable GMP library
1529 could not be found.
1530 * configure: Regenerate.
1531
2c947d9b
JB
15322020-11-15 Joel Brobecker <brobecker@adacore.com>
1533
1534 * configure.ac: Add support for --with-libgmp-prefix.
1535 * Makefile.in (LIBGMP): New variable.
1536 (CLIBS): Include $(LIBGMP).
1537 * configure, config.in: Regenerate
1538
9dd02fc0
AB
15392020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1540
1541 PR cli/26879
1542 * f-exp.y (COMPLETE): New token.
1543 (exp): Two new rules for tab-completion.
1544 (saw_name_at_eof): New static global.
1545 (last_was_structop): Likewise.
1546 (yylex): Set new variables, and return COMPLETE token at the end
1547 of the input stream in some cases.
1548
758cb810
TT
15492020-11-14 Tom Tromey <tom@tromey.com>
1550
1551 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1552
749065b7
TT
15532020-11-14 Tom Tromey <tom@tromey.com>
1554
1555 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1556
2c5b1849
SM
15572020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1558
1559 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1560
e8b2f0d9
TT
15612020-11-13 Tom Tromey <tom@tromey.com>
1562
1563 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1564 (convert_escape, parse_one_string): Constify.
1565
25f4c262
KS
15662020-11-13 Keith Seitz <keiths@redhat.com>
1567
1568 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1569 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1570 outside of ELF segments" warning for debugin
1571
9d3ab915
KS
15722020-11-13 Keith Seitz <keiths@redhat.com>
1573
1574 PR gdb/23034
1575 * elfread.c (elf_symfile_segments): Output a BFD file name
1576 for the "Loadable section ... outside of ELF segments" warning.
1577
9ecab40c
SM
15782020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1579
1580 PR gdb/26835
1581 * arm-tdep.c (class arm_instruction_reader): New.
1582 (target_arm_instruction_reader): New.
1583 (arm_analyze_prologue): Add instruction reader parameter and use
1584 it. Use arm_expand_immediate.
1585 (class target_arm_instruction_reader): Adjust.
1586 (arm_skip_prologue): Adjust.
1587 (arm_expand_immediate): New.
1588 (arm_scan_prologue): Adjust.
1589 (arm_analyze_prologue_test): New.
1590 (class test_arm_instruction_reader): New.
1591
5a7cf527
AB
15922020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * f-lang.c (fortran_argument_convert): Add declaration. Add
1595 header comment, taken from f-lang.h. Make static.
1596 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1597 (fortran_argument_convert): Delete declaration.
1598
7bea47f0
AB
15992020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1600
1601 * ada-exp.y (find_primitive_type): Make parameter const.
1602 * ada-lang.c (enum ada_primitive_types): Delete.
1603 (ada_language::language_arch_info): Update.
1604 * c-lang.c (enum c_primitive_types): Delete.
1605 (c_language_arch_info): Update.
1606 (enum cplus_primitive_types): Delete.
1607 (cplus_language::language_arch_info): Update.
1608 * d-lang.c (enum d_primitive_types): Delete.
1609 (d_language::language_arch_info): Update.
1610 * f-lang.c (enum f_primitive_types): Delete.
1611 (f_language::language_arch_info): Update.
1612 * go-lang.c (enum go_primitive_types): Delete.
1613 (go_language::language_arch_info): Update.
1614 * language.c (auto_or_unknown_language::language_arch_info):
1615 Update.
1616 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1617 (language_string_char_type): Add header comment, call function in
1618 language_arch_info.
1619 (language_bool_type): Likewise
1620 (language_arch_info::bool_type): Define.
1621 (language_lookup_primitive_type_1): Delete.
1622 (language_lookup_primitive_type): Rewrite as a templated function
1623 to call function in language_arch_info, then instantiate twice.
1624 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1625 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1626 (language_arch_info::lookup_primitive_type): Define twice with
1627 different signatures.
1628 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1629 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1630 member function in language_arch_info.
1631 * language.h (language_arch_info): Complete rewrite.
1632 (language_lookup_primitive_type): Make templated.
1633 * m2-lang.c (enum m2_primitive_types): Delete.
1634 (m2_language::language_arch_info): Update.
1635 * opencl-lang.c (OCL_P_TYPE): Delete.
1636 (enum opencl_primitive_types): Delete.
1637 (opencl_type_data): Delete.
1638 (builtin_opencl_type): Delete.
1639 (lookup_opencl_vector_type): Update.
1640 (opencl_language::language_arch_info): Update, lots of content
1641 moved from...
1642 (build_opencl_types): ...here. This function is now deleted.
1643 (_initialize_opencl_language): Delete.
1644 * p-lang.c (enum pascal_primitive_types): Delete.
1645 (pascal_language::language_arch_info): Update.
1646 * rust-lang.c (enum rust_primitive_types): Delete.
1647 (rust_language::language_arch_info): Update.
1648
bf6e5d01
SM
16492020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1650
1651 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1652 dwarf2_queue_guard.
1653
1350c3b4
SM
16542020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1655
1656 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1657 comment.
1658
6f738b01
SM
16592020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1660
1661 * dwarf2/read.c (dwarf_read_debug_printf,
1662 dwarf_read_debug_printf_v): New macros, use throughout the file.
1663
10c19fad
SV
16642020-11-12 Shahab Vahedi <shahab@synopsys.com>
1665
10806efd 1666 PR tdep/27015
10c19fad
SV
1667 * arc-linux-tdep.c (collect_register): Populate "eret" by
1668 "pc" value from the regcache when asked for "pc" value.
1669
1f2624a3
TT
16702020-11-12 Tom Tromey <tom@tromey.com>
1671
1672 PR rust/26799:
1673 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1674 exist.
1675
ab33b152
AB
16762020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * features/Makefile (XMLTOC): Add rx.xml.
1679 (FEATURE_XMLFILES): Remove rx.xml.
1680 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1681 * features/rx.c: Regenerate.
1682 * features/rx.xml: Wrap in `target` tags, and reindent.
1683 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1684 structure.
1685 (maint_print_c_tdesc_opt_def): New typedef.
1686 (maint_print_c_tdesc_opt_defs): New static global.
1687 (make_maint_print_c_tdesc_options_def_group): New function.
1688 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1689 print single feature C file for target descriptions containing a
1690 single feature.
1691 (maint_print_c_tdesc_cmd_completer): New function.
1692 (_initialize_target_descriptions): Update call to register command
1693 completer, and include command line flag in help text.
1694
550820e1
AB
16952020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1696
1697 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1698 numbers.
1699 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1700 enum values.
1701
baf20f76
TT
17022020-11-10 Tom Tromey <tom@tromey.com>
1703
1704 * value.h (internalvar_name): Update.
1705 * value.c (internalvar_name): Make return type const.
1706
caaece0e
TT
17072020-11-10 Tom Tromey <tom@tromey.com>
1708
1709 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1710 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1711 const.
1712
8e20b4be
TT
17132020-11-10 Tom Tromey <tom@tromey.com>
1714
1715 * objc-lang.h (value_nsstring): Update.
1716 * objc-lang.c (value_nsstring): Make "ptr" const.
1717
86775fab
AB
17182020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * expprint.c (print_subexp_funcall): Increment expression position
1721 after reading argument count.
1722 * f-lang.c (print_subexp_f): Skip over opcode before calling
1723 common function.
1724 (dump_subexp_body_f): Likewise.
1725
3fed4c0b
RG
17262020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1727
1728 PR python/26832
1729 * configure: Regenerate.
1730 * configure.ac: Check for python modules ctypes instead of
1731 itertools.
1732
ac3d4064
PA
17332020-11-06 Pedro Alves <pedro@palves.net>
1734
1735 * macroexp.c (struct macro_buffer): Split in two classes. Add
1736 uses adjusted.
1737 (struct shared_macro_buffer): New, factored out from struct
1738 macro_buffer.
1739 (struct growable_macro_buffer): New, factored out from struct
1740 macro_buffer.
1741 (set_token, get_comment, get_identifier, get_pp_number)
1742 (get_character_constant, get_string_literal, get_punctuator)
1743 (get_next_token_for_substitution): Constify parameters.
1744 (substitute_args): Constify locals.
1745
606decb2
TT
17462020-11-05 Tom Tromey <tom@tromey.com>
1747
1748 * dwarf2/read.c (read_cutu_die_from_dwo)
1749 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1750 (build_type_psymtabs_1): Update.
1751 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1752 parameter.
1753 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1754 Don't read section. Add assert.
1755
9c91c725
TT
17562020-11-04 Tom Tromey <tromey@adacore.com>
1757
1758 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1759
8d9fd3a1
TT
17602020-11-04 Tom Tromey <tromey@adacore.com>
1761
1762 * ada-typeprint.c (ada_print_type): Handle __T types.
1763
d8f62e84
TT
17642020-11-04 Tom Tromey <tromey@adacore.com>
1765
1766 * dwarf2/read.c (add_partial_symbol, process_die):
1767 Handle DW_TAG_array_type.
1768 (is_type_tag_for_partial): Add "lang" parameter.
1769 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1770
7ff5b937
TT
17712020-11-04 Tom Tromey <tromey@adacore.com>
1772
1773 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1774
10f6a3ad
TT
17752020-11-04 Tom Tromey <tromey@adacore.com>
1776
1777 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1778 array.
1779
b72795a8
TT
17802020-11-04 Tom Tromey <tromey@adacore.com>
1781
1782 * gdbtypes.c (update_static_array_size): Handle bit stride.
1783
24aa1b02
TT
17842020-11-04 Tom Tromey <tromey@adacore.com>
1785
1786 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1787
c9a28cbe
TT
17882020-11-04 Tom Tromey <tromey@adacore.com>
1789
1790 * ada-lang.c (ada_is_any_packed_array_type): New function.
1791 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1792
57567375
TT
17932020-11-04 Tom Tromey <tromey@adacore.com>
1794
1795 * dwarf2/read.c (recognize_bound_expression)
1796 (quirk_ada_thick_pointer): New functions.
1797 (read_array_type): Call quirk_ada_thick_pointer.
1798 (set_die_type): Add "skip_data_location" parameter.
1799 (quirk_ada_thick_pointer): New function.
1800 (process_structure_scope): Call quirk_ada_thick_pointer.
1801 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1802 (decode_packed_array_bitsize): Handle thick pointers without
1803 parallel types.
1804 (ada_is_gnat_encoded_packed_array_type): Rename from
1805 ada_is_packed_array_type.
1806 (ada_is_constrained_packed_array_type): Update.
1807 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1808 (ada_value_print_1): Use ada_get_decoded_value.
1809
a7400e44
TT
18102020-11-04 Tom Tromey <tromey@adacore.com>
1811
1812 * ada-lang.c (recursively_update_array_bitsize): New function.
1813 (decode_constrained_packed_array_type): Call it.
1814
75fd6a26
TT
18152020-11-04 Tom Tromey <tromey@adacore.com>
1816
1817 * ada-lang.c (to_fixed_array_type): Error if
1818 decode_constrained_packed_array_type returns NULL.
1819
93f9561e
TT
18202020-11-04 Tom Tromey <tromey@adacore.com>
1821
1822 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1823
257e02d8
TT
18242020-11-02 Tom Tromey <tromey@adacore.com>
1825
1826 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1827 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1828 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1829 * amd64-ravenscar-thread.c: New file.
1830 * amd64-ravenscar-thread.h: New file.
1831 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1832 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1833
74d877e5
AB
18342020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * main.c (execute_cmdargs): New function.
1837 (captured_main_1): Make use of execute_cmdargs.
1838
64aaad63
AB
18392020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * NEWS: Mention changes to config file search path.
1842 * main.c
1843
5b3d3560
TT
18442020-11-02 Tom Tromey <tromey@adacore.com>
1845
1846 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1847 (python_GdbModuleDef): Move earlier. Now static.
1848 (do_start_initialization): Consolidate some IS_PY3K blocks.
1849
dda83cd7
SM
18502020-11-02 Simon Marchi <simon.marchi@efficios.com>
1851
1852 * aarch64-linux-tdep.c: Fix indentation.
1853 * aarch64-ravenscar-thread.c: Fix indentation.
1854 * aarch64-tdep.c: Fix indentation.
1855 * aarch64-tdep.h: Fix indentation.
1856 * ada-lang.c: Fix indentation.
1857 * ada-lang.h: Fix indentation.
1858 * ada-tasks.c: Fix indentation.
1859 * ada-typeprint.c: Fix indentation.
1860 * ada-valprint.c: Fix indentation.
1861 * ada-varobj.c: Fix indentation.
1862 * addrmap.c: Fix indentation.
1863 * addrmap.h: Fix indentation.
1864 * agent.c: Fix indentation.
1865 * aix-thread.c: Fix indentation.
1866 * alpha-bsd-nat.c: Fix indentation.
1867 * alpha-linux-tdep.c: Fix indentation.
1868 * alpha-mdebug-tdep.c: Fix indentation.
1869 * alpha-nbsd-tdep.c: Fix indentation.
1870 * alpha-obsd-tdep.c: Fix indentation.
1871 * alpha-tdep.c: Fix indentation.
1872 * amd64-bsd-nat.c: Fix indentation.
1873 * amd64-darwin-tdep.c: Fix indentation.
1874 * amd64-linux-nat.c: Fix indentation.
1875 * amd64-linux-tdep.c: Fix indentation.
1876 * amd64-nat.c: Fix indentation.
1877 * amd64-obsd-tdep.c: Fix indentation.
1878 * amd64-tdep.c: Fix indentation.
1879 * amd64-windows-tdep.c: Fix indentation.
1880 * annotate.c: Fix indentation.
1881 * arc-tdep.c: Fix indentation.
1882 * arch-utils.c: Fix indentation.
1883 * arch/arm-get-next-pcs.c: Fix indentation.
1884 * arch/arm.c: Fix indentation.
1885 * arm-linux-nat.c: Fix indentation.
1886 * arm-linux-tdep.c: Fix indentation.
1887 * arm-nbsd-tdep.c: Fix indentation.
1888 * arm-pikeos-tdep.c: Fix indentation.
1889 * arm-tdep.c: Fix indentation.
1890 * arm-tdep.h: Fix indentation.
1891 * arm-wince-tdep.c: Fix indentation.
1892 * auto-load.c: Fix indentation.
1893 * auxv.c: Fix indentation.
1894 * avr-tdep.c: Fix indentation.
1895 * ax-gdb.c: Fix indentation.
1896 * ax-general.c: Fix indentation.
1897 * bfin-linux-tdep.c: Fix indentation.
1898 * block.c: Fix indentation.
1899 * block.h: Fix indentation.
1900 * blockframe.c: Fix indentation.
1901 * bpf-tdep.c: Fix indentation.
1902 * break-catch-sig.c: Fix indentation.
1903 * break-catch-syscall.c: Fix indentation.
1904 * break-catch-throw.c: Fix indentation.
1905 * breakpoint.c: Fix indentation.
1906 * breakpoint.h: Fix indentation.
1907 * bsd-uthread.c: Fix indentation.
1908 * btrace.c: Fix indentation.
1909 * build-id.c: Fix indentation.
1910 * buildsym-legacy.h: Fix indentation.
1911 * buildsym.c: Fix indentation.
1912 * c-typeprint.c: Fix indentation.
1913 * c-valprint.c: Fix indentation.
1914 * c-varobj.c: Fix indentation.
1915 * charset.c: Fix indentation.
1916 * cli/cli-cmds.c: Fix indentation.
1917 * cli/cli-decode.c: Fix indentation.
1918 * cli/cli-decode.h: Fix indentation.
1919 * cli/cli-script.c: Fix indentation.
1920 * cli/cli-setshow.c: Fix indentation.
1921 * coff-pe-read.c: Fix indentation.
1922 * coffread.c: Fix indentation.
1923 * compile/compile-cplus-types.c: Fix indentation.
1924 * compile/compile-object-load.c: Fix indentation.
1925 * compile/compile-object-run.c: Fix indentation.
1926 * completer.c: Fix indentation.
1927 * corefile.c: Fix indentation.
1928 * corelow.c: Fix indentation.
1929 * cp-abi.h: Fix indentation.
1930 * cp-namespace.c: Fix indentation.
1931 * cp-support.c: Fix indentation.
1932 * cp-valprint.c: Fix indentation.
1933 * cris-linux-tdep.c: Fix indentation.
1934 * cris-tdep.c: Fix indentation.
1935 * darwin-nat-info.c: Fix indentation.
1936 * darwin-nat.c: Fix indentation.
1937 * darwin-nat.h: Fix indentation.
1938 * dbxread.c: Fix indentation.
1939 * dcache.c: Fix indentation.
1940 * disasm.c: Fix indentation.
1941 * dtrace-probe.c: Fix indentation.
1942 * dwarf2/abbrev.c: Fix indentation.
1943 * dwarf2/attribute.c: Fix indentation.
1944 * dwarf2/expr.c: Fix indentation.
1945 * dwarf2/frame.c: Fix indentation.
1946 * dwarf2/index-cache.c: Fix indentation.
1947 * dwarf2/index-write.c: Fix indentation.
1948 * dwarf2/line-header.c: Fix indentation.
1949 * dwarf2/loc.c: Fix indentation.
1950 * dwarf2/macro.c: Fix indentation.
1951 * dwarf2/read.c: Fix indentation.
1952 * dwarf2/read.h: Fix indentation.
1953 * elfread.c: Fix indentation.
1954 * eval.c: Fix indentation.
1955 * event-top.c: Fix indentation.
1956 * exec.c: Fix indentation.
1957 * exec.h: Fix indentation.
1958 * expprint.c: Fix indentation.
1959 * f-lang.c: Fix indentation.
1960 * f-typeprint.c: Fix indentation.
1961 * f-valprint.c: Fix indentation.
1962 * fbsd-nat.c: Fix indentation.
1963 * fbsd-tdep.c: Fix indentation.
1964 * findvar.c: Fix indentation.
1965 * fork-child.c: Fix indentation.
1966 * frame-unwind.c: Fix indentation.
1967 * frame-unwind.h: Fix indentation.
1968 * frame.c: Fix indentation.
1969 * frv-linux-tdep.c: Fix indentation.
1970 * frv-tdep.c: Fix indentation.
1971 * frv-tdep.h: Fix indentation.
1972 * ft32-tdep.c: Fix indentation.
1973 * gcore.c: Fix indentation.
1974 * gdb_bfd.c: Fix indentation.
1975 * gdbarch.sh: Fix indentation.
1976 * gdbarch.c: Re-generate
1977 * gdbarch.h: Re-generate.
1978 * gdbcore.h: Fix indentation.
1979 * gdbthread.h: Fix indentation.
1980 * gdbtypes.c: Fix indentation.
1981 * gdbtypes.h: Fix indentation.
1982 * glibc-tdep.c: Fix indentation.
1983 * gnu-nat.c: Fix indentation.
1984 * gnu-nat.h: Fix indentation.
1985 * gnu-v2-abi.c: Fix indentation.
1986 * gnu-v3-abi.c: Fix indentation.
1987 * go32-nat.c: Fix indentation.
1988 * guile/guile-internal.h: Fix indentation.
1989 * guile/scm-cmd.c: Fix indentation.
1990 * guile/scm-frame.c: Fix indentation.
1991 * guile/scm-iterator.c: Fix indentation.
1992 * guile/scm-math.c: Fix indentation.
1993 * guile/scm-ports.c: Fix indentation.
1994 * guile/scm-pretty-print.c: Fix indentation.
1995 * guile/scm-value.c: Fix indentation.
1996 * h8300-tdep.c: Fix indentation.
1997 * hppa-linux-nat.c: Fix indentation.
1998 * hppa-linux-tdep.c: Fix indentation.
1999 * hppa-nbsd-nat.c: Fix indentation.
2000 * hppa-nbsd-tdep.c: Fix indentation.
2001 * hppa-obsd-nat.c: Fix indentation.
2002 * hppa-tdep.c: Fix indentation.
2003 * hppa-tdep.h: Fix indentation.
2004 * i386-bsd-nat.c: Fix indentation.
2005 * i386-darwin-nat.c: Fix indentation.
2006 * i386-darwin-tdep.c: Fix indentation.
2007 * i386-dicos-tdep.c: Fix indentation.
2008 * i386-gnu-nat.c: Fix indentation.
2009 * i386-linux-nat.c: Fix indentation.
2010 * i386-linux-tdep.c: Fix indentation.
2011 * i386-nto-tdep.c: Fix indentation.
2012 * i386-obsd-tdep.c: Fix indentation.
2013 * i386-sol2-nat.c: Fix indentation.
2014 * i386-tdep.c: Fix indentation.
2015 * i386-tdep.h: Fix indentation.
2016 * i386-windows-tdep.c: Fix indentation.
2017 * i387-tdep.c: Fix indentation.
2018 * i387-tdep.h: Fix indentation.
2019 * ia64-libunwind-tdep.c: Fix indentation.
2020 * ia64-libunwind-tdep.h: Fix indentation.
2021 * ia64-linux-nat.c: Fix indentation.
2022 * ia64-linux-tdep.c: Fix indentation.
2023 * ia64-tdep.c: Fix indentation.
2024 * ia64-tdep.h: Fix indentation.
2025 * ia64-vms-tdep.c: Fix indentation.
2026 * infcall.c: Fix indentation.
2027 * infcmd.c: Fix indentation.
2028 * inferior.c: Fix indentation.
2029 * infrun.c: Fix indentation.
2030 * iq2000-tdep.c: Fix indentation.
2031 * language.c: Fix indentation.
2032 * linespec.c: Fix indentation.
2033 * linux-fork.c: Fix indentation.
2034 * linux-nat.c: Fix indentation.
2035 * linux-tdep.c: Fix indentation.
2036 * linux-thread-db.c: Fix indentation.
2037 * lm32-tdep.c: Fix indentation.
2038 * m2-lang.c: Fix indentation.
2039 * m2-typeprint.c: Fix indentation.
2040 * m2-valprint.c: Fix indentation.
2041 * m32c-tdep.c: Fix indentation.
2042 * m32r-linux-tdep.c: Fix indentation.
2043 * m32r-tdep.c: Fix indentation.
2044 * m68hc11-tdep.c: Fix indentation.
2045 * m68k-bsd-nat.c: Fix indentation.
2046 * m68k-linux-nat.c: Fix indentation.
2047 * m68k-linux-tdep.c: Fix indentation.
2048 * m68k-tdep.c: Fix indentation.
2049 * machoread.c: Fix indentation.
2050 * macrocmd.c: Fix indentation.
2051 * macroexp.c: Fix indentation.
2052 * macroscope.c: Fix indentation.
2053 * macrotab.c: Fix indentation.
2054 * macrotab.h: Fix indentation.
2055 * main.c: Fix indentation.
2056 * mdebugread.c: Fix indentation.
2057 * mep-tdep.c: Fix indentation.
2058 * mi/mi-cmd-catch.c: Fix indentation.
2059 * mi/mi-cmd-disas.c: Fix indentation.
2060 * mi/mi-cmd-env.c: Fix indentation.
2061 * mi/mi-cmd-stack.c: Fix indentation.
2062 * mi/mi-cmd-var.c: Fix indentation.
2063 * mi/mi-cmds.c: Fix indentation.
2064 * mi/mi-main.c: Fix indentation.
2065 * mi/mi-parse.c: Fix indentation.
2066 * microblaze-tdep.c: Fix indentation.
2067 * minidebug.c: Fix indentation.
2068 * minsyms.c: Fix indentation.
2069 * mips-linux-nat.c: Fix indentation.
2070 * mips-linux-tdep.c: Fix indentation.
2071 * mips-nbsd-tdep.c: Fix indentation.
2072 * mips-tdep.c: Fix indentation.
2073 * mn10300-linux-tdep.c: Fix indentation.
2074 * mn10300-tdep.c: Fix indentation.
2075 * moxie-tdep.c: Fix indentation.
2076 * msp430-tdep.c: Fix indentation.
2077 * namespace.h: Fix indentation.
2078 * nat/fork-inferior.c: Fix indentation.
2079 * nat/gdb_ptrace.h: Fix indentation.
2080 * nat/linux-namespaces.c: Fix indentation.
2081 * nat/linux-osdata.c: Fix indentation.
2082 * nat/netbsd-nat.c: Fix indentation.
2083 * nat/x86-dregs.c: Fix indentation.
2084 * nbsd-nat.c: Fix indentation.
2085 * nbsd-tdep.c: Fix indentation.
2086 * nios2-linux-tdep.c: Fix indentation.
2087 * nios2-tdep.c: Fix indentation.
2088 * nto-procfs.c: Fix indentation.
2089 * nto-tdep.c: Fix indentation.
2090 * objfiles.c: Fix indentation.
2091 * objfiles.h: Fix indentation.
2092 * opencl-lang.c: Fix indentation.
2093 * or1k-tdep.c: Fix indentation.
2094 * osabi.c: Fix indentation.
2095 * osabi.h: Fix indentation.
2096 * osdata.c: Fix indentation.
2097 * p-lang.c: Fix indentation.
2098 * p-typeprint.c: Fix indentation.
2099 * p-valprint.c: Fix indentation.
2100 * parse.c: Fix indentation.
2101 * ppc-linux-nat.c: Fix indentation.
2102 * ppc-linux-tdep.c: Fix indentation.
2103 * ppc-nbsd-nat.c: Fix indentation.
2104 * ppc-nbsd-tdep.c: Fix indentation.
2105 * ppc-obsd-nat.c: Fix indentation.
2106 * ppc-ravenscar-thread.c: Fix indentation.
2107 * ppc-sysv-tdep.c: Fix indentation.
2108 * ppc64-tdep.c: Fix indentation.
2109 * printcmd.c: Fix indentation.
2110 * proc-api.c: Fix indentation.
2111 * producer.c: Fix indentation.
2112 * producer.h: Fix indentation.
2113 * prologue-value.c: Fix indentation.
2114 * prologue-value.h: Fix indentation.
2115 * psymtab.c: Fix indentation.
2116 * python/py-arch.c: Fix indentation.
2117 * python/py-bpevent.c: Fix indentation.
2118 * python/py-event.c: Fix indentation.
2119 * python/py-event.h: Fix indentation.
2120 * python/py-finishbreakpoint.c: Fix indentation.
2121 * python/py-frame.c: Fix indentation.
2122 * python/py-framefilter.c: Fix indentation.
2123 * python/py-inferior.c: Fix indentation.
2124 * python/py-infthread.c: Fix indentation.
2125 * python/py-objfile.c: Fix indentation.
2126 * python/py-prettyprint.c: Fix indentation.
2127 * python/py-registers.c: Fix indentation.
2128 * python/py-signalevent.c: Fix indentation.
2129 * python/py-stopevent.c: Fix indentation.
2130 * python/py-stopevent.h: Fix indentation.
2131 * python/py-threadevent.c: Fix indentation.
2132 * python/py-tui.c: Fix indentation.
2133 * python/py-unwind.c: Fix indentation.
2134 * python/py-value.c: Fix indentation.
2135 * python/py-xmethods.c: Fix indentation.
2136 * python/python-internal.h: Fix indentation.
2137 * python/python.c: Fix indentation.
2138 * ravenscar-thread.c: Fix indentation.
2139 * record-btrace.c: Fix indentation.
2140 * record-full.c: Fix indentation.
2141 * record.c: Fix indentation.
2142 * reggroups.c: Fix indentation.
2143 * regset.h: Fix indentation.
2144 * remote-fileio.c: Fix indentation.
2145 * remote.c: Fix indentation.
2146 * reverse.c: Fix indentation.
2147 * riscv-linux-tdep.c: Fix indentation.
2148 * riscv-ravenscar-thread.c: Fix indentation.
2149 * riscv-tdep.c: Fix indentation.
2150 * rl78-tdep.c: Fix indentation.
2151 * rs6000-aix-tdep.c: Fix indentation.
2152 * rs6000-lynx178-tdep.c: Fix indentation.
2153 * rs6000-nat.c: Fix indentation.
2154 * rs6000-tdep.c: Fix indentation.
2155 * rust-lang.c: Fix indentation.
2156 * rx-tdep.c: Fix indentation.
2157 * s12z-tdep.c: Fix indentation.
2158 * s390-linux-tdep.c: Fix indentation.
2159 * score-tdep.c: Fix indentation.
2160 * ser-base.c: Fix indentation.
2161 * ser-mingw.c: Fix indentation.
2162 * ser-uds.c: Fix indentation.
2163 * ser-unix.c: Fix indentation.
2164 * serial.c: Fix indentation.
2165 * sh-linux-tdep.c: Fix indentation.
2166 * sh-nbsd-tdep.c: Fix indentation.
2167 * sh-tdep.c: Fix indentation.
2168 * skip.c: Fix indentation.
2169 * sol-thread.c: Fix indentation.
2170 * solib-aix.c: Fix indentation.
2171 * solib-darwin.c: Fix indentation.
2172 * solib-frv.c: Fix indentation.
2173 * solib-svr4.c: Fix indentation.
2174 * solib.c: Fix indentation.
2175 * source.c: Fix indentation.
2176 * sparc-linux-tdep.c: Fix indentation.
2177 * sparc-nbsd-tdep.c: Fix indentation.
2178 * sparc-obsd-tdep.c: Fix indentation.
2179 * sparc-ravenscar-thread.c: Fix indentation.
2180 * sparc-tdep.c: Fix indentation.
2181 * sparc64-linux-tdep.c: Fix indentation.
2182 * sparc64-nbsd-tdep.c: Fix indentation.
2183 * sparc64-obsd-tdep.c: Fix indentation.
2184 * sparc64-tdep.c: Fix indentation.
2185 * stabsread.c: Fix indentation.
2186 * stack.c: Fix indentation.
2187 * stap-probe.c: Fix indentation.
2188 * stubs/ia64vms-stub.c: Fix indentation.
2189 * stubs/m32r-stub.c: Fix indentation.
2190 * stubs/m68k-stub.c: Fix indentation.
2191 * stubs/sh-stub.c: Fix indentation.
2192 * stubs/sparc-stub.c: Fix indentation.
2193 * symfile-mem.c: Fix indentation.
2194 * symfile.c: Fix indentation.
2195 * symfile.h: Fix indentation.
2196 * symmisc.c: Fix indentation.
2197 * symtab.c: Fix indentation.
2198 * symtab.h: Fix indentation.
2199 * target-float.c: Fix indentation.
2200 * target.c: Fix indentation.
2201 * target.h: Fix indentation.
2202 * tic6x-tdep.c: Fix indentation.
2203 * tilegx-linux-tdep.c: Fix indentation.
2204 * tilegx-tdep.c: Fix indentation.
2205 * top.c: Fix indentation.
2206 * tracefile-tfile.c: Fix indentation.
2207 * tracepoint.c: Fix indentation.
2208 * tui/tui-disasm.c: Fix indentation.
2209 * tui/tui-io.c: Fix indentation.
2210 * tui/tui-regs.c: Fix indentation.
2211 * tui/tui-stack.c: Fix indentation.
2212 * tui/tui-win.c: Fix indentation.
2213 * tui/tui-winsource.c: Fix indentation.
2214 * tui/tui.c: Fix indentation.
2215 * typeprint.c: Fix indentation.
2216 * ui-out.h: Fix indentation.
2217 * unittests/copy_bitwise-selftests.c: Fix indentation.
2218 * unittests/memory-map-selftests.c: Fix indentation.
2219 * utils.c: Fix indentation.
2220 * v850-tdep.c: Fix indentation.
2221 * valarith.c: Fix indentation.
2222 * valops.c: Fix indentation.
2223 * valprint.c: Fix indentation.
2224 * valprint.h: Fix indentation.
2225 * value.c: Fix indentation.
2226 * value.h: Fix indentation.
2227 * varobj.c: Fix indentation.
2228 * vax-tdep.c: Fix indentation.
2229 * windows-nat.c: Fix indentation.
2230 * windows-tdep.c: Fix indentation.
2231 * xcoffread.c: Fix indentation.
2232 * xml-syscall.c: Fix indentation.
2233 * xml-tdesc.c: Fix indentation.
2234 * xstormy16-tdep.c: Fix indentation.
2235 * xtensa-config.c: Fix indentation.
2236 * xtensa-linux-nat.c: Fix indentation.
2237 * xtensa-linux-tdep.c: Fix indentation.
2238 * xtensa-tdep.c: Fix indentation.
2239
e1f57067
AB
22402020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2241 Craig Blackmore <craig.blackmore@embecosm.com>
2242
2243 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2244 as an unsigned value.
2245
ae7754b2
TT
22462020-11-01 Tom Tromey <tom@tromey.com>
2247
2248 * dbxread.c (dbx_end_psymtab): Update.
2249 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2250 (build_type_psymtabs_reader): Update.
2251 * xcoffread.c (xcoff_end_psymtab): Update.
2252 * ctfread.c (scan_partial_symbols): Update.
2253 * psymtab.c (sort_pst_symbols): Remove.
2254 (partial_symtab::end): Rename from end_psymtab_common. Inline
2255 sort_pst_symbols.
2256 * psympriv.h (struct partial_symtab) <end>: New method.
2257 (end_psymtab_common): Don't declare.
2258
0684bb51
TT
22592020-11-01 Tom Tromey <tom@tromey.com>
2260
2261 * symmisc.c (count_psyms): New function.
2262 (print_objfile_statistics): Use it.
2263 * psymtab.c (append_psymbol_to_list): Remove.
2264 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2265 * objfiles.h (struct objstats) <n_psyms>: Remove.
2266
089002bb
TT
22672020-11-01 Tom Tromey <tom@tromey.com>
2268
2269 * dbxread.c (dbx_end_psymtab): Update.
2270 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2271 (build_type_psymtabs_reader): Update.
2272 * xcoffread.c (xcoff_end_psymtab): Update.
2273 * ctfread.c (scan_partial_symbols): Update.
2274 * psympriv.h (end_psymtab_common): Update.
2275 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2276 (sort_pst_symbols): Likewise.
2277
525454d6
TT
22782020-11-01 Tom Tromey <tom@tromey.com>
2279
2280 * dbxread.c (dbx_symfile_read): Update.
2281 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2282 * xcoffread.c (xcoff_initial_scan): Update.
2283 * psympriv.h (init_psymbol_list): Don't declare.
2284 * psymtab.c (init_psymbol_list): Remove.
2285
60bd1d53
JB
22862020-11-01 Joel Brobecker <brobecker@adacore.com>
2287
2288 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2289 gnat_encoded_fixed_type_info. Update all callers.
2290
db99d0d0
JB
22912020-11-01 Joel Brobecker <brobecker@adacore.com>
2292
2293 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2294 line too long.
2295
75f24e86
JB
22962020-11-01 Joel Brobecker <brobecker@adacore.com>
2297
2298 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2299 cast_from_fixed. Update all callers.
2300 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2301 Update all callers.
2302 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2303 Update all callers.
2304 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2305 ada_scaling_factor.
2306 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2307 to print_gnat_encoded_fixed_point_type.
2308 * ada-valprint.c: Likewise.
2309
4f0469cd
AB
23102020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2313 (debug_prefixed_printf): Add check of debug_displaced flag.
2314 * linux-nat.c (linux_nat_debug_printf): Add check of
2315 debug_linux_nat flag.
2316
17417fb0
SM
23172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * infrun.c (infrun_debug_printf_1): Remove.
2320 (displaced_debug_printf_1): Remove.
2321 (stop_all_threads): Use debug_prefixed_printf.
2322 * infrun.h (infrun_debug_printf_1): Remove.
2323 (infrun_debug_printf): Use debug_prefixed_printf.
2324 (displaced_debug_printf_1): Remove.
2325 (displaced_debug_printf): Use debug_prefixed_printf.
2326 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2327 (linux_nat_debug_printf): Use debug_prefixed_printf.
2328
ad6dba1c
SM
23292020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * configure: Re-generate.
2332 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2333 AC_LANG_PROGRAM.
2334
b6fb30ed
SM
23352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2336
2337 * configure: Re-generate.
2338
5164c117
SM
23392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * configure: Re-generate.
2342
864ca435
SM
23432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2344
2345 * configure: Re-generate.
2346
b9442ec1
SM
23472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * configure: Re-generate.
2350
294f2697
SM
23512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 * acinclude.m4: Modernize.
2354 * configure: Re-generate.
2355
5593a99a
SM
23562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2357
2358 * configure.ac: Modernize.
2359 * configure: Re-generate.
2360
e41fda1d
SM
23612020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2362
2363 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2364 * configure: Re-generate.
2365 * configure.ac: Remove AM_PROG_CC_STDC.
2366
91e1a0ed
SM
23672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2368
2369 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2370 AC_CANONICAL_SYSTEM.
2371 * configure: Re-generate.
2372
136821d9
SM
23732020-10-30 Simon Marchi <simon.marchi@efficios.com>
2374
2375 * infrun.h (displaced_debug_printf): New macro. Replace
2376 displaced debug prints throughout to use it.
2377 (displaced_debug_printf_1): New declaration.
2378 (displaced_step_dump_bytes): Return string, remove ui_file
2379 parameter, update all callers.
2380 * infrun.c (displaced_debug_printf_1): New function.
2381 (displaced_step_dump_bytes): Return string, remove ui_file
2382 parameter
2383
aa2045e7
SM
23842020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2385
2386 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2387
b1ec2735
TT
23882020-10-30 Tom Tromey <tromey@adacore.com>
2389
2390 * Makefile.in (stamp-init): Depend on config.status.
2391
b78b3a29
TBA
23922020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2393
2394 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2395
d70bdd3c
PA
23962020-10-30 Pedro Alves <pedro@palves.net>
2397
2398 * thread.c (lookup_selected_frame): Move ...
2399 * frame.c (lookup_selected_frame): ... here.
2400
79952e69
PA
24012020-10-30 Pedro Alves <pedro@palves.net>
2402
2403 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2404 * frame.c
2405 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2406 Use save_selected_frame. Save language as well.
2407 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2408 Use restore_selected_frame, and restore language as well.
2409 (selected_frame_id, selected_frame_level): New.
2410 (selected_frame): Update comments.
2411 (save_selected_frame, restore_selected_frame): New.
2412 (get_selected_frame): Use lookup_selected_frame.
2413 (get_selected_frame_if_set): Delete.
2414 (select_frame): Record selected_frame_level and selected_frame_id.
2415 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2416 fields.
2417 (get_selected_frame): Make 'message' parameter optional.
2418 (get_selected_frame_if_set): Delete declaration.
2419 (select_frame): Update comments.
2420 (save_selected_frame, restore_selected_frame)
2421 (lookup_selected_frame): Declare.
2422 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2423 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2424 New field.
2425 (save_infcall_control_state): Use save_selected_frame.
2426 (restore_selected_frame): Delete.
2427 (restore_infcall_control_state): Use restore_selected_frame.
2428 * stack.c (select_frame_command_core, frame_command_core): Use
2429 get_selected_frame.
2430 * thread.c (restore_selected_frame): Rename to ...
2431 (lookup_selected_frame): ... this and make extern. Select the
2432 current frame if the frame level is -1.
2433 (scoped_restore_current_thread::restore): Also restore the
2434 language.
2435 (scoped_restore_current_thread::~scoped_restore_current_thread):
2436 Don't try/catch.
2437 (scoped_restore_current_thread::scoped_restore_current_thread):
2438 Save the language as well. Use save_selected_frame.
2439
58103c33
SM
24402020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2443 documentation.
2444 * gdbarch.h: Re-generate.
2445
40a53766
SM
24462020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2447
2448 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2449 parameter.
2450 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2451 Likewise.
2452 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2453 Likewise.
2454 * arch-utils.c (default_displaced_step_hw_singlestep):
2455 Likewise.
2456 * arch-utils.h (default_displaced_step_hw_singlestep):
2457 Likewise.
2458 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2459 Likewise.
2460 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2461 Likewise.
2462 * gdbarch.c: Re-generate.
2463 * gdbarch.h: Re-generate.
2464 * infrun.c (resume_1): Adjust.
2465
8407f91b
TT
24662020-10-29 Tom Tromey <tom@tromey.com>
2467
2468 * progspace.c (program_space::~program_space): Don't call
2469 exec_close.
2470
5008b3b2
TT
24712020-10-29 Tom Tromey <tom@tromey.com>
2472
2473 * exec.c (exec_target::close): Don't change current program
2474 space.
2475
d9eebde0
TT
24762020-10-29 Tom Tromey <tom@tromey.com>
2477
2478 * symfile.c (add_symbol_file_command): Update.
2479 * exec.c (program_space::add_target_sections): Rename.
2480 * symfile-mem.c (symbol_file_add_from_memory): Update.
2481 * progspace.h (struct program_space) <add_target_sections>:
2482 Declare new overload.
2483 * exec.h (add_target_sections_of_objfile): Don't declare.
2484
3769e227
TT
24852020-10-29 Tom Tromey <tom@tromey.com>
2486
2487 * solib.c (solib_map_sections): Update.
2488 * exec.c (program_space::add_target_sections): Now a method.
2489 (exec_file_attach): Update.
2490 * exec.h (add_target_sections): Don't declare.
2491 * progspace.h (struct program_space) <add_target_sections>:
2492 Declare.
2493
2a3f84af
TT
24942020-10-29 Tom Tromey <tom@tromey.com>
2495
2496 * progspace.h (struct program_space) <remove_target_sections>:
2497 Declare.
2498 * exec.c (program_space::remove_target_sections): Now a method.
2499 * exec.h (remove_target_sections): Don't declare.
2500
004eecfd
TT
25012020-10-29 Tom Tromey <tom@tromey.com>
2502
2503 * inferior.c (delete_inferior): Update.
2504 * progspace.c (program_space::empty): Rename from
2505 program_space_empty_p. Return bool.
2506 * progspace.h (struct program_space) <empty>: New method.
2507 (program_space_empty_p): Don't declare.
2508
e39fb971
TT
25092020-10-29 Tom Tromey <tom@tromey.com>
2510
2511 * progspace.c (program_space::~program_space): Don't call
2512 clear_program_space_solib_cache.
2513 (program_space::clear_solib_cache): Rename from
2514 clear_solib_cache.
2515 * solib.c (handle_solib_event): Update.
2516 * progspace.h (struct program_space) <clear_solib_cache>: New
2517 method.
2518 (clear_program_space_solib_cache): Don't declare.
2519
a42d7dd8
TT
25202020-10-29 Tom Tromey <tom@tromey.com>
2521
2522 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2523 * target.c (info_target_command): Update.
2524 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2525 (symbol_file_clear, reread_symbols): Update.
2526 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2527 * stabsread.c (scan_file_globals): Update.
2528 * solib.c (update_solib_list): Update.
2529 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2530 (svr4_fetch_objfile_link_map, enable_break)
2531 (svr4_relocate_main_executable)
2532 (svr4_iterate_over_objfiles_in_search_order): Update.
2533 * solib-frv.c (lm_base, enable_break)
2534 (frv_relocate_main_executable): Update.
2535 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2536 (frv_fetch_objfile_link_map): Update.
2537 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2538 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2539 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2540 * remote.c (remote_target::get_offsets): Update.
2541 (remote_target::start_remote)
2542 (extended_remote_target::post_attach): Update.
2543 * objfiles.c (entry_point_address_query): Update.
2544 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2545 * minsyms.c (get_symbol_leading_char): Update.
2546 * frame.c (inside_main_func): Update.
2547 * progspace.h (symfile_objfile): Remove macro.
2548
19f6550e
TT
25492020-10-29 Tom Tromey <tom@tromey.com>
2550
2551 * exec.c (exec_file_attach): Update.
2552 * progspace.c (program_space::exec_close): Update.
2553 * progspace.h (struct program_space) <ebfd>: Now a
2554 gdb_bfd_ref_ptr.
2555 <set_exec_bfd>: Change argument type.
2556 <exec_bfd>: Update.
2557
7e10abd1
TT
25582020-10-29 Tom Tromey <tom@tromey.com>
2559
2560 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2561 * symfile.c (reread_symbols): Update.
2562 * symfile-mem.c (add_symbol_file_from_memory_command)
2563 (add_vsyscall_page): Update.
2564 * source-cache.c (source_cache::get_plain_source_lines): Update.
2565 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2566 (svr4_current_sos_direct, svr4_exec_displacement)
2567 (svr4_relocate_main_executable): Update.
2568 (svr4_iterate_over_objfiles_in_search_order): Update.
2569 * solib-frv.c (enable_break2, enable_break): Update.
2570 * solib-dsbt.c (lm_base, enable_break): Update.
2571 * solib-darwin.c (find_program_interpreter)
2572 (darwin_solib_create_inferior_hook): Update.
2573 * sol-thread.c (rw_common, ps_pdmodel): Update.
2574 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2575 * remote.c (compare_sections_command)
2576 (remote_target::trace_set_readonly_regions): Update.
2577 * remote-sim.c (get_sim_inferior_data)
2578 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2579 (gdbsim_target_open, gdbsim_target::files_info): Update.
2580 * exec.h (exec_bfd): Remove macro.
2581 * progspace.c (initialize_progspace): Update.
2582 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2583 Update.
2584 * nto-procfs.c (nto_procfs_target::post_attach)
2585 (nto_procfs_target::create_inferior): Update.
2586 * maint.c (maintenance_info_sections): Update.
2587 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2588 Update.
2589 * infcmd.c (post_create_inferior): Update.
2590 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2591 (objfile_find_memory_regions): Update.
2592 * exec.c (validate_exec_file, exec_file_attach)
2593 (exec_read_partial_read_only, print_section_info): Update.
2594 * corelow.c (core_target_open): Update.
2595 * corefile.c (reopen_exec_file, validate_files): Update.
2596 * arm-tdep.c (gdb_print_insn_arm): Update.
2597 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2598 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2599 methods.
2600
b55221ab
TT
26012020-10-29 Tom Tromey <tom@tromey.com>
2602
2603 * progspace.h (current_target_sections): Remove macro.
2604 * solib-svr4.c (scan_dyntag): Update.
2605 * solib-dsbt.c (scan_dyntag): Update.
2606 * exec.c (exec_target::close): Update.
2607 (add_target_sections, add_target_sections_of_objfile)
2608 (remove_target_sections, exec_target::get_section_table)
2609 (exec_target::files_info, set_section_command)
2610 (exec_set_section_address, exec_target::has_memory)
2611 (exec_target::has_memory): Update.
2612
5a36e715
TT
26132020-10-29 Tom Tromey <tom@tromey.com>
2614
2615 * source-cache.c (source_cache::get_plain_source_lines): Use
2616 current_program_space.
2617 * corefile.c (reopen_exec_file): Use current_program_space.
2618 * exec.c (exec_file_attach): Use current_program_space.
2619 * exec.h (exec_bfd_mtime): Remove.
2620
784c8592
TT
26212020-10-29 Tom Tromey <tom@tromey.com>
2622
2623 * gcore.c (default_gcore_mach): Remove.
2624 (create_gcore_bfd): Update.
2625
8a4f1402
TT
26262020-10-29 Tom Tromey <tom@tromey.com>
2627
2628 * progspace.c (program_space::exec_close): New method, from
2629 exec_close in exec.c.
2630 * exec.c (exec_close): Move to progspace.c.
2631 (exec_target::close, exec_file_attach): Update.
2632 * progspace.h (struct program_space) <exec_close>: Declare
2633 method.
2634
c20cb686
TT
26352020-10-29 Tom Tromey <tom@tromey.com>
2636
2637 * progspace.h (struct program_space) <exec_filename>: Rename from
2638 pspace_exec_filename. Now a unique_xmalloc_ptr.
2639 * inferior.c (print_selected_inferior): Update.
2640 (print_inferior): Update.
2641 * mi/mi-main.c (print_one_inferior): Update.
2642 * exec.h (exec_filename): Remove macro.
2643 * corefile.c (get_exec_file): Update.
2644 * exec.c (exec_close): Update.
2645 (exec_file_attach): Update.
2646 * progspace.c (clone_program_space): Update.
2647 (print_program_space): Update.
2648
6be2a9ab
TT
26492020-10-29 Tom Tromey <tom@tromey.com>
2650
2651 * target-section.h (struct target_section): Add constructor.
2652 * exec.c (build_section_table, add_target_sections_of_objfile):
2653 Update.
2654 * corelow.c (core_target::build_file_mappings): Update.
2655
cfaa8f76
TBA
26562020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2657
2658 PR gdb/19318
2659 * inferior.c (detach_inferior_command): Restore the current thread.
2660 (kill_inferior_command): Ditto.
2661
1b00ef06
TV
26622020-10-28 Tom de Vries <tdevries@suse.de>
2663
2664 PR symtab/26772
2665 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2666 map, check it in the "best match" loop.
2667
7f40ce1a
SM
26682020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2669
2670 * m32c-tdep.c: Remove unused includes.
2671
5eb9e3f5
SM
26722020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2673
2674 * xtensa-tdep.c: Remove includes.
2675
b1d4d8d1
TBA
26762020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2677
2678 * breakpoint.c (struct condition_command_opts): New struct.
2679 (condition_command_option_defs): New static global.
2680 (make_condition_command_options_def_group): New function.
2681 (condition_completer): Update to consider the '-force' flag.
2682 (condition_command): Use gdb::option for the '-force' flag.
2683
bd24c5d6
TV
26842020-10-27 Tom de Vries <tdevries@suse.de>
2685
2686 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2687 symbols in section check.
2688
61eb46a4
TV
26892020-10-27 Tom de Vries <tdevries@suse.de>
2690
2691 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2692
733d554a
TBA
26932020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2694
2695 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2696 * breakpoint.c: Update the help text of the 'condition' and 'break'
2697 commands.
2698 (set_breakpoint_condition): Take a new bool parameter
2699 to control whether condition definition should be forced even when
2700 the condition expression is invalid in all of the current locations.
2701 (condition_command): Update the call to 'set_breakpoint_condition'.
2702 (find_condition_and_thread): Take the "-force-condition" flag into
2703 account.
2704 * linespec.c (linespec_keywords): Add "-force-condition" as an
2705 element.
2706 (FORCE_KEYWORD_INDEX): New #define.
2707 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2708 as a keyword.
2709 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2710 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2711 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2712 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2713
b5fa468f
TBA
27142020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2715
2716 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2717 * breakpoint.c (set_breakpoint_location_condition): New function.
2718 (set_breakpoint_condition): Disable a breakpoint location if parsing
2719 the condition string gives an error.
2720 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2721 (build_target_condition_list): Ditto.
2722 (build_target_command_list): Ditto.
2723 (build_bpstat_chain): Ditto.
2724 (print_one_breakpoint_location): Ditto.
2725 (print_one_breakpoint): Ditto.
2726 (breakpoint_1): Ditto.
2727 (bp_location::bp_location): Ditto.
2728 (locations_are_equal): Ditto.
2729 (update_breakpoint_locations): Ditto.
2730 (enable_disable_bp_num_loc): Ditto.
2731 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2732 (find_condition_and_thread_for_sals): New static function.
2733 (create_breakpoint): Call find_condition_and_thread_for_sals.
2734 (location_to_sals): Call find_condition_and_thread_for_sals instead
2735 of find_condition_and_thread.
2736
1c47ec3e
TV
27372020-10-26 Tom de Vries <tdevries@suse.de>
2738
2739 * dwarf2/read.c (process_full_comp_unit): Call
2740 dwarf2_find_base_address.
2741
6390859c
TT
27422020-10-26 Tom Tromey <tromey@adacore.com>
2743
2744 * gdbtypes.c (create_range_type): Revert previous patch. Add
2745 comment.
2746
d744f0f9
PA
27472020-10-26 Pedro Alves <pedro@palves.net>
2748
2749 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2750 (my_waitpid): Use gdb::handle_eintr.
2751
006811bc
SM
27522020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2753
2754 * acinclude.m4: Update ptrace.m4 path.
2755 * ptrace.m4: Moved to gdbsupport.
2756
c75e31a1
SM
27572020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2758
2759 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2760 instead of target_gdbarch.
2761
32495661
SM
27622020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2763
2764 * jit.c (jit_reader_load_command): Pass current inferior.
2765 (jit_inferior_init): Change parameter type to inferior, use it.
2766 (jit_inferior_created): Remove.
2767 (jit_inferior_created_hook): Pass inferior parameter down.
2768 (_initialize_jit): Use jit_inferior_created_hook instead of
2769 jit_inferior_created.
2770 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2771 * infrun.c (follow_exec): Pass inferior to
2772 jit_inferior_created_hook.
2773
3f66685e
SM
27742020-10-24 Simon Marchi <simon.marchi@efficios.com>
2775
2776 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2777 parameter and use it.
2778 (thread_db_inferior_created): Pass inferior argument.
2779
a0ff652f
SM
27802020-10-24 Simon Marchi <simon.marchi@efficios.com>
2781
2782 * aix-thread.c (aix_thread_inferior_created): Add inferior
2783 parameter.
2784 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2785 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2786 * jit.c (jit_inferior_created): Likewise.
2787 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2788 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2789 * observable.h (inferior_created): Likewise.
2790 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2791 * symfile-mem.c (add_vsyscall_page): Likewise.
2792 * infcmd.c (post_create_inferior): Pass inferior argument.
2793
3c67532c
JB
27942020-10-24 Joel Brobecker <brobecker@adacore.com>
2795
2796 GDB 10.1 released.
2797
8747316e
JB
27982020-10-23 Joel Brobecker <brobecker@adacore.com>
2799
2800 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2801 to ada_check_typedef.
2802
1a0ea399
AB
28032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2804
2805 * f-exp.y (f_parse): Rename to...
2806 (f_language::parser): ...this.
2807 * f-lang.c (f_get_encoding): Rename to...
2808 (f_language::get_encoding): ...this.
2809 (f_op_print_tab): Rename to...
2810 (f_language::op_print_tab): ...this.
2811 (exp_descriptor_f): Rename to...
2812 (f_language::exp_descriptor_tab): ...this.
2813 (class f_language): Moved to f-lang.h.
2814 (f_language::language_arch_info): New function, moved out of class
2815 declaration.
2816 (f_language::search_name_hash): Likewise.
2817 (f_language::lookup_symbol_nonlocal): Likewise.
2818 (f_language::get_symbol_name_matcher_inner): Likewise.
2819 * f-lang.h: Add 'valprint.h' include.
2820 (class f_language): Moved here from f-lang.c.
2821 * f-typeprint.c (f_type_print_args): Delete commented out
2822 declaration.
2823 (f_print_typedef): Rename to...
2824 (f_language::print_typedef): ...this.
2825 (f_print_type): Rename to...
2826 (f_language::print_type): ...this.
2827 (f_type_print_varspec_prefix): Delete declaration and rename to...
2828 (f_language::f_type_print_varspec_prefix): ...this.
2829 (f_type_print_varspec_suffix): Delete declaration and rename to...
2830 (f_language::f_type_print_varspec_suffix): ...this.
2831 (f_type_print_base): Delete declaration and rename to...
2832 (f_language::f_type_print_base): ...this.
2833 * f-valprint.c (f_value_print_inner): Rename to...
2834 (f_language::value_print_inner): ...this.
2835 * parse.c: Delete 'f-lang.h' include.
2836
88cefd9b
AB
28372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * language.h (language_defn::print_type): Add variable names in
2840 declaration, and update header comment.
2841
5399db93
AB
28422020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * ada-lang.c (ada_language::demangle): Rename to...
2845 (ada_language::demangle_symbol): ...this.
2846 * c-lang.c (cplus_language::demangle): Rename to...
2847 (cplus_language::demangle_symbol): ...this.
2848 * d-lang.c (d_language::demangle): Rename to...
2849 (d_language::demangle_symbol): ...this.
2850 * f-lang.c (f_language::demangle): Rename to...
2851 (f_language::demangle_symbol): ...this.
2852 * go-lang.c (go_language::demangle): Rename to...
2853 (go_language::demangle_symbol): ...this.
2854 * language.c (language_demangle): Update call to demangle_symbol.
2855 (auto_or_unknown_language::demangle): Rename to...
2856 (auto_or_unknown_language::demangle_symbol): ...this.
2857 * language.h (language_defn::demangle): Rename to...
2858 (language_defn::demangle_symbol): ...this.
2859 * objc-lang.c (objc_language::demangle): Rename to...
2860 (objc_language::demangle_symbol): ...this.
2861 * rust-lang.c (rust_language::demangle): Rename to...
2862 (rust_language::demangle_symbol): ...this.
2863
4b2f86ef
AB
28642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2867 (iterate_over_file_blocks): Replace use of macro with the macros
2868 definition.
2869
e74b39de
AB
28702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2871
2872 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2873 * valprint.c (maybe_print_array_index): Replace use of macro with
2874 the macros definition.
2875
00c696a6
AB
28762020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2877
2878 * ada-lang.c (ada_language::print_array_index): Call value_print
2879 directly.
2880 * language.c (language_defn::print_array_index): Likewise.
2881 * language.h (LA_VALUE_PRINT): Delete.
2882 * valprint.c (value_print): Call value_print on the
2883 current_language directly.
2884
d3b67c56
AB
28852020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * language.h (LA_PRINT_TYPEDEF): Delete.
2888 * typeprint.c (typedef_print): Call print_typedef directly on the
2889 current_language object.
2890
790e2a12
AB
28912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * m2-exp.y (m2_parse): Rename to...
2894 (m2_language::parser): ...this. Update function signature.
2895 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2896 (m2_op_print): Rename to...
2897 (m2_language::op_print_tab): ...this, and make const.
2898 (exp_descriptor_modula2): Rename to...
2899 (m2_language::exp_descriptor_modula2): ...this.
2900 (class m2_language): Move to m2-lang.h.
2901 (m2_language::language_arch_info): New function, moved out of
2902 class declaration.
2903 (m2_language::printchar): New function, body from m2_printchar.
2904 (m2_language::printstr): New function, moved out of class
2905 declaration.
2906 (m2_language::emitchar): Likewise.
2907 * m2-lang.h (m2_parse): Delete declaration.
2908 (m2_print_typedef): Delete declaration.
2909 (m2_value_print_inner): Delete declaration.
2910 (class m2_language): Class declaration moved from m2-lang.c,
2911 larger functions are left in m2-lang.c.
2912 * m2-typeprint.c (m2_print_typedef): Rename to...
2913 (m2_language::print_typedef): ...this, and update function
2914 signature.
2915 * m2-valprint.c (m2_value_print_inner): Rename to...
2916 (m2_language::value_print_inner): ...this, replace use of
2917 LA_PRINT_STRING with a direct call to printstr member function,
2918 and update recursive call.
2919
b01175fc
AB
29202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2921
2922 * language.c (default_is_string_type_p): Delete, implementation
2923 moved into auto_or_unknown_language::is_string_type_p.
2924 (unk_op_print_tab): Moved into
2925 auto_or_unknown_language::opcode_print_table.
2926 (unknown_language_arch_info): Delete, implementation moved into
2927 auto_or_unknown_language::language_arch_info.
2928 (class auto_or_unknown_language): New class, member functions
2929 copied from unknown_language class, with some updates.
2930 (class unknown_language): Most member functions moved into
2931 auto_or_unknown_language class. Inherit from
2932 auto_or_unknown_language class.
2933 (class auto_language): Inherit from auto_or_unknown_language.
2934 Delete most member functions.
2935
1a97fe8c
HD
29362020-10-22 Hannes Domani <ssbssa@yahoo.de>
2937
2938 * stabsread.c (read_member_functions): Remove gdb_assert.
2939
6b9d0dfd
HD
29402020-10-22 Hannes Domani <ssbssa@yahoo.de>
2941
2942 * gdbtypes.c (init_complex_type): Check target type name.
2943
4b4bb603
SM
29442020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 * target-debug.h (target_debug_print_struct_target_ops_p):
2947 Remove.
2948 (target_debug_print_async_callback_ftype_p): Remove.
2949 (target_debug_print_struct_trace_state_variable_p): Remove.
2950 (target_debug_print_struct_traceframe_info_p): Remove.
2951 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2952 (target_debug_print_enum_btrace_format): Remove.
2953 (target_debug_print_enum_info_proc_what): Remove.
2954 (target_debug_print_thread_info_pp): Remove.
2955
24f5300a
SM
29562020-10-22 Simon Marchi <simon.marchi@efficios.com>
2957
2958 * target.h (struct target_ops) <make_corefile_notes>:
2959 Change return type to unique pointer.
2960 * target.c (dummy_make_corefile_notes): Likewise.
2961 * exec.c (struct exec_target) <make_corefile_notes>:
2962 Likewise.
2963 (exec_target::make_corefile_notes): Likewise.
2964 * procfs.c (class procfs_target) <make_corefile_notes>:
2965 Likewise.
2966 (procfs_do_thread_registers): Adjust to unique pointer.
2967 (struct procfs_corefile_thread_data): Add constructor.
2968 <note_data>: Change type to unique pointer.
2969 (procfs_corefile_thread_callback): Adjust to unique pointer.
2970 (procfs_target::make_corefile_notes): Change return type to
2971 unique pointer.
2972 * target-delegates.c: Re-generate.
2973 * gcore.c (write_gcore_file_1): Adjust.
2974 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2975 New.
2976
5fb4027f
TV
29772020-10-22 Tom de Vries <tdevries@suse.de>
2978
2979 * block.c (find_block_in_blockvector): Make sure the returned block
2980 contains pc.
2981
4a636814
SM
29822020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 PR gdb/26693
2985 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2986 parameter.
2987 (load_cu): Pass existing CU.
2988 (process_imported_unit_die): Likewise.
2989 (follow_die_offset): Likewise.
2990
1bd57575
LM
29912020-10-22 Luis Machado <luis.machado@linaro.org>
2992
2993 * corelow.c (core_target::xfer_partial): Also check for an empty
2994 m_core_unavailable_mappings vector.
2995
6b4c676c
AB
29962020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2997
2998 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2999 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3000 * f-exp.y (arglist): Allow for a series of subranges.
3001 (subrange): Add cases for subranges with strides.
3002 * f-lang.c (value_f90_subarray): Catch use of array strides and
3003 throw an error.
3004 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3005
f2d8e4c5
AB
30062020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3007
3008 * expprint.c (print_subexp_standard): Change enum range_type to
3009 range_flag and rename variables to match.
3010 (dump_subexp_body_standard): Likewise.
3011 * expression.h (enum range_type): Rename to...
3012 (enum range_flag): ...this.
3013 (range_types): Rename to...
3014 (range_flags): ...this.
3015 * f-lang.c (value_f90_subarray): Change enum range_type to
3016 range_flag and rename variables to match.
3017 * parse.c (operator_length_standard): Likewise.
3018 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3019 range_type to range_flag.
3020 * rust-lang.c (rust_evaluate_funcall): Likewise.
3021 (rust_range): Likewise.
3022 (rust_compute_range): Likewise.
3023 (rust_subscript): Likewise.
3024
2f1b18db
AB
30252020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * expprint.c (print_subexp_standard): Update to reflect changes to
3028 enum range_type.
3029 (dump_subexp_body_standard): Likewise.
3030 * expression.h (enum range_type): Convert to a bit field enum, and
3031 make the enum unsigned.
3032 * f-exp.y (subrange): Update to reflect changes to enum
3033 range_type.
3034 * f-lang.c (value_f90_subarray): Likewise.
3035 * parse.c (operator_length_standard): Likewise.
3036 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3037 * rust-lang.c (rust_range): Likewise.
3038 (rust_compute_range): Likewise.
3039 (rust_subscript): Likewise.
3040
a46d1843
SM
30412020-10-21 Simon Marchi <simon.marchi@efficios.com>
3042
3043 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3044 (displaced_step_in_progress): Fix comment.
3045
c21f37a8
SM
30462020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3047
3048 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3049 * gdbarch.c: Re-generate.
3050 * gdbarch.h: Re-generate.
3051 * gcore.c (write_gcore_file_1): Adjust.
3052 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3053 constructor.
3054 <note_data>: Change type to unique pointer.
3055 <abort_iteration>: Change type to bool.
3056 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3057 (fbsd_collect_thread_registers): Return void, adjust.
3058 (struct fbsd_corefile_thread_data): Add construtor.
3059 <note_data>: Change type to unique pointer.
3060 (fbsd_corefile_thread): Adjust.
3061 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3062 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3063 to unique pointer, adjust.
3064 (struct linux_collect_regset_section_cb_data): Add constructor.
3065 <note_data>: Change type to unique pointer.
3066 <abort_iteration>: Change type to bool.
3067 (linux_collect_thread_registers): Return void, adjust.
3068 (struct linux_corefile_thread_data): Add constructor.
3069 <note_data>: Change type to unique pointer.
3070 (linux_corefile_thread): Adjust.
3071 (linux_make_corefile_notes): Return unique pointer, adjust.
3072
07fbbd01
SM
30732020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3074
3075 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3076 * gdbarch.c: Re-generate.
3077 * gdbarch.h: Re-generate.
3078 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3079 bool.
3080 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3081 Likewise.
3082 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3083 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3084 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3085 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3086
39535193
SM
30872020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * gdbarch.sh: Make generated predicates return bool.
3090 * gdbarch.c: Re-generate.
3091 * gdbarch.h: Re-generate.
3092
ad523d01
TT
30932020-10-20 Tom Tromey <tom@tromey.com>
3094
3095 * varobj-iter.h (struct varobj_item): Remove typedef.
3096
c4464ade
SM
30972020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3098
3099 * infrun.c (currently_stepping): Change int to bool
3100 (maybe_software_singlestep): Likewise.
3101 (show_stop_on_solib_events): Likewise.
3102 (stepping_past_nonsteppable_watchpoint): Likewise.
3103 (displaced_step_in_progress_any_inferior): Likewise.
3104 (displaced_step_in_progress_thread): Likewise.
3105 (keep_going_stepped_thread): Likewise.
3106 (thread_still_needs_step_over): Likewise.
3107 (start_step_over): Likewise.
3108 (do_target_resume): Likewise.
3109 (resume_1): Likewise.
3110 (clear_proceed_status): Likewise.
3111 (thread_still_needs_step_over_bp): Likewise.
3112 (proceed): Likewise.
3113 (switch_back_to_stepped_thread): Likewise.
3114 (adjust_pc_after_break): Likewise.
3115 (stepped_in_from): Likewise.
3116 (handle_stop_requested): Likewise.
3117 (handle_syscall_event): Likewise.
3118 (handle_no_resumed): Likewise.
3119 (handle_inferior_event): Likewise.
3120 (finish_step_over): Likewise.
3121 (handle_signal_stop): Likewise.
3122 (process_event_stop_test): Likewise.
3123
2eb20436
SM
31242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * infrun.c (get_displaced_stepping_state): Fix comment.
3127
e0c45ded
AS
31282020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3129
3130 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3131
22cc388e
TT
31322020-10-19 Tom Tromey <tromey@adacore.com>
3133
3134 PR tui/26719
3135 * tui/tui-winsource.h (struct tui_source_window_base)
3136 <refresh_window>: Rename from refresh_pad.
3137 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3138 Rename from refresh_pad.
3139 (tui_source_window_base::show_source_content)
3140 (tui_source_window_base::do_scroll_horizontal): Update.
3141
3c6eb4d4
TBA
31422020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3143
3144 * thread.c (_initialize_thread): Fine-tune the help text of
3145 'info threads'.
3146
26703721
TBA
31472020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3148
3149 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3150
61c26be8
MS
31512020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3152
3153 * breakpoint.c (handle_jit_event): Add an argument, change how
3154 `jit_event_handler` is called.
3155
932539d7
TT
31562020-10-17 Tom Tromey <tom@tromey.com>
3157
3158 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3159 (scan_xcoff_symtab): Update.
3160 * psymtab.h (class psymtab_storage) <global_psymbols,
3161 static_psymbols, current_global_psymbols,
3162 current_static_psymbols>: Remove.
3163 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3164 (match_partial_symbol, lookup_partial_symbol): Update.
3165 (print_partial_symbols): Change parameters.
3166 (dump_psymtab, recursively_search_psymtabs)
3167 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3168 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3169 (concat): Remove.
3170 (end_psymtab_common): Simplify.
3171 (append_psymbol_to_list): Change parameters.
3172 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3173 (init_psymbol_list): Simplify.
3174 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3175 * psympriv.h (struct partial_symtab) <empty>: New method.
3176 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3177 Remove.
3178 <global_psymbols, static_psymbols>: New members.
3179 <add_psymbol>: New methods.
3180 (add_psymbol_to_list): Don't declare.
3181 (psymbol_placement): Move earlier.
3182 * mdebugread.c (parse_partial_symbols): Update.
3183 (handle_psymbol_enumerators): Change parameters.
3184 (mdebug_expand_psymtab): Update.
3185 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3186 (add_partial_symbol): Update.
3187 * dwarf2/index-write.c (write_psymbols): Change parameters.
3188 (write_one_signatured_type): Update.
3189 (recursively_count_psymbols): Update.
3190 (recursively_write_psymbols): Update.
3191 (class debug_names) <recursively_write_psymbols>: Update.
3192 <write_psymbols>: Change parameters.
3193 <write_one_signatured_type>: Update.
3194 * dbxread.c (read_dbx_symtab): Update.
3195 (dbx_end_psymtab): Use partial_symtab::empty.
3196 * ctfread.c (struct ctf_context) <pst>: New member.
3197 (create_partial_symtab): Set it.
3198 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3199 (scan_partial_symbols): Use the psymtab's context. Update.
3200
cfabbd35
TT
32012020-10-17 Tom Tromey <tom@tromey.com>
3202
3203 * valprint.c (generic_value_print): Remove comment.
3204 * m2-valprint.c (m2_value_print_inner): Remove comment.
3205 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3206 type.
3207
520596f2
TV
32082020-10-17 Tom de Vries <tdevries@suse.de>
3209
3210 PR symtab/26317
3211 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3212 symbol main.
3213
76547ab3
TV
32142020-10-14 Tom de Vries <tdevries@suse.de>
3215
3216 PR gdb/26733
3217 * solib.c (solib_contains_address_p): Handle
3218 'solib->sections == nullptr'.
3219
d3a07122
SM
32202020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3221
3222 PR gdb/26642
3223 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3224 target can't do async.
3225 * target.c (target_wait): Assert that we don't pass
3226 TARGET_WNOHANG to a target that can't async.
3227
1b71cfcf
KR
32282020-10-13 Kamil Rytarowski <n54@gmx.com>
3229
3230 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3231 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3232 * alpha-bsd-nat.c: Adjust include.
3233 * alpha-bsd-tdep.h: Adjust comment.
3234 * alpha-nbsd-tdep.c: Rename to ...
3235 * alpha-netbsd-tdep.c: ... this, adjust include.
3236 * amd64-nbsd-nat.c: Rename to ...
3237 * amd64-netbsd-nat.c: ... this, adjust include.
3238 * amd64-nbsd-tdep.c: Rename to ...
3239 * amd64-netbsd-tdep.c: ... this, adjust include.
3240 * amd64-tdep.h: Adjust include.
3241 * arm-nbsd-nat.c: Rename to ...
3242 * arm-netbsd-nat.c: ... this, adjust include.
3243 * arm-nbsd-tdep.c: Rename to ...
3244 * arm-netbsd-tdep.c: ... this, adjust include.
3245 * arm-nbsd-tdep.h: Rename to ...
3246 * arm-netbsd-tdep.h: ... this, adjust include.
3247 * configure.nat: Adjust file lists.
3248 * configure.tgt: Likewise.
3249 * hppa-nbsd-nat.c: Rename to ...
3250 * hppa-netbsd-nat.c: ... this, adjust include.
3251 * hppa-nbsd-tdep.c: Rename to ...
3252 * hppa-netbsd-tdep.c: ... this, adjust include.
3253 * i386-nbsd-nat.c: Rename to ...
3254 * i386-netbsd-nat.c: ... this, adjust include.
3255 * i386-nbsd-tdep.c: Rename to ...
3256 * i386-netbsd-tdep.c: ... this, adjust include.
3257 * m68k-bsd-nat.c: Adjust include.
3258 * mips-nbsd-nat.c: Rename to ...
3259 * mips-netbsd-nat.c: ... this, adjust include.
3260 * mips-nbsd-tdep.c: Rename to ...
3261 * mips-netbsd-tdep.c: ... this, adjust include.
3262 * mips-nbsd-tdep.h: Rename to ...
3263 * mips-netbsd-tdep.h: ... this.
3264 * nbsd-nat.c: Rename to ...
3265 * netbsd-nat.c: ... this, adjust include.
3266 * nbsd-nat.h: Rename to ...
3267 * netbsd-nat.h: ... this, adjust include.
3268 * nbsd-tdep.c: Rename to ...
3269 * netbsd-tdep.c: ... this, adjust include.
3270 * nbsd-tdep.h: Rename to ...
3271 * netbsd-tdep.h: ... this.
3272 * ppc-nbsd-nat.c: Rename to ...
3273 * ppc-netbsd-nat.c: ... this, adjust include.
3274 * ppc-nbsd-tdep.c: Rename to ...
3275 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3276 * ppc-nbsd-tdep.h: Rename to ...
3277 * ppc-netbsd-tdep.h: ... this.
3278 * sh-nbsd-nat.c: Rename to ...
3279 * sh-netbsd-nat.c: ... this, adjust include.
3280 * sh-nbsd-tdep.c: Rename to ...
3281 * sh-netbsd-tdep.c: ... this, adjust include.
3282 * sparc-nbsd-nat.c: Rename to ...
3283 * sparc-netbsd-nat.c: ... this.
3284 * sparc-nbsd-tdep.c: Rename to ...
3285 * sparc-netbsd-tdep.c: ... this, adjust include.
3286 * sparc64-nbsd-nat.c: Rename to ...
3287 * sparc64-netbsd-nat.c: ... this.
3288 * sparc64-nbsd-tdep.c: Rename to ...
3289 * sparc64-netbsd-tdep.c: ... this, adjust include.
3290 * sparc64-tdep.h: Adjust comment.
3291 * vax-bsd-nat.c: Adjust include.
3292 * vax-nbsd-tdep.c: Rename to ...
3293 * vax-netbsd-tdep.c: ... this, adjust include.
3294
d7a78e5c
TT
32952020-10-12 Tom Tromey <tom@tromey.com>
3296
3297 * target.h (struct target_ops) <get_section_table>: Update.
3298 (target_get_section_table): Update.
3299 * target.c (target_get_section_table, target_section_by_addr)
3300 (memory_xfer_partial_1): Update.
3301 * target-section.h (target_section_table): Now an alias.
3302 * target-delegates.c: Rebuild.
3303 * target-debug.h (target_debug_print_target_section_table_p):
3304 Rename from target_debug_print_struct_target_section_table_p.
3305 * symfile.c (build_section_addr_info_from_section_table): Update.
3306 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3307 * solib-svr4.c (scan_dyntag): Update.
3308 * solib-dsbt.c (scan_dyntag): Update.
3309 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3310 Update.
3311 * record-full.c (record_full_core_target::xfer_partial): Update.
3312 * progspace.h (struct program_space) <target_sections>: Update.
3313 * exec.h (print_section_info): Update.
3314 * exec.c (exec_target::close, build_section_table)
3315 (add_target_sections, add_target_sections_of_objfile)
3316 (remove_target_sections, exec_on_vfork)
3317 (section_table_available_memory)
3318 (section_table_xfer_memory_partial)
3319 (exec_target::get_section_table, exec_target::xfer_partial)
3320 (print_section_info, set_section_command)
3321 (exec_set_section_address, exec_target::has_memory): Update.
3322 * corelow.c (core_target::build_file_mappings)
3323 (core_target::xfer_partial, core_target::info_proc_mappings)
3324 (core_target::info_proc_mappings): Update.
3325 * bfd-target.c (class target_bfd): Update
3326
eda214ce
TT
33272020-10-12 Tom Tromey <tom@tromey.com>
3328
3329 * progspace.c (program_space::~program_space): Don't call
3330 clear_section_table.
3331 * exec.h (clear_section_table): Don't declare.
3332 * exec.c (exec_target::close): Update.
3333 (clear_section_table): Remove.
3334
91840ee3
TT
33352020-10-12 Tom Tromey <tom@tromey.com>
3336
3337 * exec.c (add_target_sections_of_objfile): Simplify.
3338
2d128614
TT
33392020-10-12 Tom Tromey <tom@tromey.com>
3340
3341 * solib.c (solib_map_sections): Update.
3342 * record-full.c (record_full_core_open_1): Update.
3343 * exec.h (build_section_table): Return a target_section_table.
3344 * exec.c (exec_file_attach): Update.
3345 (build_section_table): Return a target_section_table.
3346 * corelow.c (core_target::core_target): Update.
3347 * bfd-target.c (target_bfd::target_bfd): Update.
3348
bb2a6777
TT
33492020-10-12 Tom Tromey <tom@tromey.com>
3350
3351 * target.c (target_section_by_addr, memory_xfer_partial_1):
3352 Update.
3353 * target-section.h (struct target_section_table): Use
3354 std::vector.
3355 * symfile.h (build_section_addr_info_from_section_table): Take a
3356 target_section_table.
3357 * symfile.c (build_section_addr_info_from_section_table): Take a
3358 target_section_table.
3359 * solist.h (struct so_list) <sections>: Change type.
3360 <sections_end>: Remove.
3361 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3362 (solib_contains_address_p): Update.
3363 * solib-svr4.c (scan_dyntag): Update.
3364 * solib-dsbt.c (scan_dyntag): Update.
3365 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3366 Update.
3367 * record-full.c (record_full_core_start, record_full_core_end):
3368 Remove.
3369 (record_full_core_sections): New global.
3370 (record_full_core_open_1, record_full_core_target::xfer_partial):
3371 Update.
3372 * exec.h (build_section_table, section_table_xfer_memory_partial)
3373 (add_target_sections): Take a target_section_table.
3374 * exec.c (exec_file_attach, clear_section_table): Update.
3375 (resize_section_table): Remove.
3376 (build_section_table, add_target_sections): Take a
3377 target_section_table.
3378 (add_target_sections_of_objfile, remove_target_sections)
3379 (exec_on_vfork): Update.
3380 (section_table_available_memory): Take a target_section_table.
3381 (section_table_read_available_memory): Update.
3382 (section_table_xfer_memory_partial): Take a target_section_table.
3383 (print_section_info, set_section_command)
3384 (exec_set_section_address, exec_target::has_memory): Update.
3385 * corelow.c (class core_target) <m_core_section_table,
3386 m_core_file_mappings>: Remove braces.
3387 <~core_target>: Remove.
3388 (core_target::core_target): Update.
3389 (core_target::~core_target): Remove.
3390 (core_target::build_file_mappings)
3391 (core_target::xfer_memory_via_mappings)
3392 (core_target::xfer_partial, core_target::info_proc_mappings):
3393 Update.
3394 * bfd-target.c (target_bfd::xfer_partial): Update.
3395 (target_bfd::target_bfd): Update.
3396 (target_bfd::~target_bfd): Remove.
3397
7b466b10
TT
33982020-10-12 Tom Tromey <tom@tromey.com>
3399
3400 * target.h (struct target_section, struct target_section_table):
3401 Move to target-section.h.
3402 * target-section.h: New file.
3403
87a37e5e
PA
34042020-10-12 Pedro Alves <pedro@palves.net>
3405
3406 PR exp/26602
3407 * valops.c (struct struct_field_searcher): New.
3408 (update_search_result): Rename to ...
3409 (struct_field_searcher::update_result): ... this. Simplify
3410 prototype. Record all found fields.
3411 (do_search_struct_field): Rename to ...
3412 (struct_field_searcher::search): ... this. Simplify prototype.
3413 Maintain stack of visited baseclass path. Call update_result for
3414 fields too. Keep searching fields in baseclasses instead of
3415 stopping at the first found field.
3416 (search_struct_field): Use struct_field_searcher. When looking
3417 for fields, report ambiguous access attempts.
3418
9370fd51
AB
34192020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 * frame.c (inside_main_func): Check full symbols as well as
3422 minimal symbols.
3423
59c8a30b
JB
34242020-10-09 Joel Brobecker <brobecker@adacore.com>
3425
3426 * ada-lang.c (advance_wild_match): Rewrite the function's
3427 description. Change the type of target0, t0 and t1 to char.
3428
7c184d33
TT
34292020-10-09 Tom Tromey <tromey@adacore.com>
3430
3431 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3432
5c4258f4
TT
34332020-10-09 Tom Tromey <tromey@adacore.com>
3434
3435 * ada-lang.h (ada_encode): Return std::string.
3436 * ada-lang.c (ada_encode_1): Return std::string.
3437 (ada_encode): Likewise.
3438 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3439 Update.
3440 * ada-exp.y (block_lookup, write_var_or_type): Update.
3441
3d87245c
HD
34422020-10-09 Hannes Domani <ssbssa@yahoo.de>
3443
3444 PR exp/26714
3445 * printcmd.c (print_formatted): Handle void results as
3446 unformatted prints.
3447
bbb826f5
AB
34482020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * arch/aarch32.c (aarch32_create_target_description): Release the
3451 target_desc_up as late as possible.
3452 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3453 * arch/amd64.c (amd64_create_target_description): Likewise.
3454 * arch/arc.c (arc_create_target_description): Return a
3455 target_desc_up, don't release it.
3456 * arch/arc.h (arc_create_target_description): Update declaration.
3457 (arc_lookup_target_description): Move target_desc_up into the
3458 cache, and return a borrowed pointer.
3459 * arch/arm.c (arm_create_target_description): Release the
3460 target_desc_up as late as possible.
3461 * arch/i386.c (i386_create_target_description): Likewise.
3462 * arch/riscv.h (riscv_create_target_description): Update
3463 declaration to match definition.
3464 * arch/tic6x.c (tic6x_create_target_description): Release the
3465 target_desc_up as late as possible.
3466
361cb219
AB
34672020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3468
3469 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3470 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3471
f5c4b229
JV
34722020-10-09 Jan Vrany <jan.vrany@labware.com>
3473
3474 * source.c (directory_command): Notify observers that "directories"
3475 parameter has changed.
3476
b2701685
TT
34772020-10-08 Tom Tromey <tom@tromey.com>
3478
3479 * cli/cli-cmds.c (print_disassembly): Style function name and
3480 addresses. Add _() wrappers.
3481
ada508b6
SV
34822020-10-08 Shahab Vahedi <shahab@synopsys.com>
3483
3484 * NEWS: Mention ARC support in GDBserver.
3485
51a948fd
AB
34862020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3487
3488 * arch/aarch32.c (aarch32_create_target_description): Release
3489 unique_ptr returned from allocate_target_description.
3490 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3491 * arch/amd64.c (amd64_create_target_description): Likewise.
3492 * arch/arc.c (arc_create_target_description): Likewise.
3493 * arch/arm.c (arm_create_target_description): Likewise.
3494 * arch/i386.c (i386_create_target_description): Likewise.
3495 * arch/riscv.c (riscv_create_target_description): Update return
3496 type. Handle allocate_target_description returning a unique_ptr.
3497 (riscv_lookup_target_description): Update to handle unique_ptr.
3498 * arch/tic6x.c (tic6x_create_target_description): Release
3499 unique_ptr returned from allocate_target_description.
3500 * features/microblaze-with-stack-protect.c: Regenerate.
3501 * features/microblaze.c: Regenerate.
3502 * features/mips-dsp-linux.c: Regenerate.
3503 * features/mips-linux.c: Regenerate.
3504 * features/mips64-dsp-linux.c: Regenerate.
3505 * features/mips64-linux.c: Regenerate.
3506 * features/nds32.c: Regenerate.
3507 * features/nios2.c: Regenerate.
3508 * features/or1k.c: Regenerate.
3509 * features/rs6000/powerpc-32.c: Regenerate.
3510 * features/rs6000/powerpc-32l.c: Regenerate.
3511 * features/rs6000/powerpc-403.c: Regenerate.
3512 * features/rs6000/powerpc-403gc.c: Regenerate.
3513 * features/rs6000/powerpc-405.c: Regenerate.
3514 * features/rs6000/powerpc-505.c: Regenerate.
3515 * features/rs6000/powerpc-601.c: Regenerate.
3516 * features/rs6000/powerpc-602.c: Regenerate.
3517 * features/rs6000/powerpc-603.c: Regenerate.
3518 * features/rs6000/powerpc-604.c: Regenerate.
3519 * features/rs6000/powerpc-64.c: Regenerate.
3520 * features/rs6000/powerpc-64l.c: Regenerate.
3521 * features/rs6000/powerpc-7400.c: Regenerate.
3522 * features/rs6000/powerpc-750.c: Regenerate.
3523 * features/rs6000/powerpc-860.c: Regenerate.
3524 * features/rs6000/powerpc-altivec32.c: Regenerate.
3525 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3526 * features/rs6000/powerpc-altivec64.c: Regenerate.
3527 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3528 * features/rs6000/powerpc-e500.c: Regenerate.
3529 * features/rs6000/powerpc-e500l.c: Regenerate.
3530 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3531 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3532 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3533 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3534 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3535 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3536 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3537 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3538 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3539 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3540 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3541 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3542 * features/rs6000/powerpc-vsx32.c: Regenerate.
3543 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3544 * features/rs6000/powerpc-vsx64.c: Regenerate.
3545 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3546 * features/rs6000/rs6000.c: Regenerate.
3547 * features/rx.c: Regenerate.
3548 * features/s390-gs-linux64.c: Regenerate.
3549 * features/s390-linux32.c: Regenerate.
3550 * features/s390-linux32v1.c: Regenerate.
3551 * features/s390-linux32v2.c: Regenerate.
3552 * features/s390-linux64.c: Regenerate.
3553 * features/s390-linux64v1.c: Regenerate.
3554 * features/s390-linux64v2.c: Regenerate.
3555 * features/s390-te-linux64.c: Regenerate.
3556 * features/s390-tevx-linux64.c: Regenerate.
3557 * features/s390-vx-linux64.c: Regenerate.
3558 * features/s390x-gs-linux64.c: Regenerate.
3559 * features/s390x-linux64.c: Regenerate.
3560 * features/s390x-linux64v1.c: Regenerate.
3561 * features/s390x-linux64v2.c: Regenerate.
3562 * features/s390x-te-linux64.c: Regenerate.
3563 * features/s390x-tevx-linux64.c: Regenerate.
3564 * features/s390x-vx-linux64.c: Regenerate.
3565 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3566 from allocate_target_description.
3567 * target-descriptions.c (allocate_target_description): Update
3568 return type.
3569 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3570 allocate_target_description.
3571
485c47e5
TT
35722020-10-07 Tom Tromey <tromey@adacore.com>
3573
3574 * unittests/search-memory-selftests.c: New file.
3575 * Makefile.in (SELFTESTS_SRCS): Add
3576 unittests/search-memory-selftests.c.
3577
3a135a91
TT
35782020-10-07 Tom Tromey <tromey@adacore.com>
3579
3580 PR gdb/16930:
3581 * findcmd.c (_initialize_mem_search): Mention that the range is
3582 inclusive.
3583
4a72de73
TT
35842020-10-07 Tom Tromey <tromey@adacore.com>
3585
3586 * target.h (simple_search_memory): Don't declare.
3587 * target.c (simple_search_memory): Move to gdbsupport.
3588 (default_search_memory): Update.
3589 * remote.c (remote_target::search_memory): Update.
3590
a038ffd8
SM
35912020-10-07 Simon Marchi <simon.marchi@efficios.com>
3592
3593 * Makefile.in (COMPILE): Add CXXFLAGS.
3594 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3595 (check-headers): Add CXXFLAGS.
3596
cc463201
AK
35972020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3598
3599 * arc-linux-tdep.h: New file.
3600 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3601 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3602 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3603 arc_linux_gregset, arc_linux_v2_regset,
3604 arc_linux_iterate_over_regset_sections,
3605 arc_linux_core_read_description): Implement.
3606 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3607 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3608 (arc_gdbarch_features_create): Add.
3609 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3610
e4bd363f
SV
36112020-10-07 Shahab Vahedi <shahab@synopsys.com>
3612
3613 * arch/arc.h: Rename "arc_gdbarch_features" to
3614 "arc_arch_features".
3615 * arc-tdep.h: Likewise.
3616 * arc-tdep.c: Likewise.
3617
b68bef99
TBA
36182020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3619
3620 * infcmd.c (attach_command): Remove the redundant call to
3621 `clear_proceed_status`.
3622
4641551a
KR
36232020-10-07 Kamil Rytarowski <n54@gmx.com>
3624
3625 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3626
91e5e8db
KR
36272020-10-07 Kamil Rytarowski <n54@gmx.com>
3628
3629 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3630 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3631 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3632
64c03bdb
SM
36332020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3634
3635 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3636 (_initialize_break_catch_sig): Don't allocate array.
3637
31a8f60f
AB
36382020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3639
3640 * symtab.c (find_pc_line): Return unmapped addresses when the
3641 requested address is also unmapped.
3642
9e6dbd8b
SM
36432020-10-05 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3646 tui/tui-out.h.
3647
a1d217e8
SM
36482020-10-05 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3651 type::is_vector instead of TYPE_VECTOR.
3652
7d144117
SM
36532020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3654
3655 * auto-load.c (auto_load_objfile_script_1): Don't use
3656 debugfile_holder as temporary variable when stripping drive
3657 letter.
3658
cd096ec8
HD
36592020-10-05 Hannes Domani <ssbssa@yahoo.de>
3660
3661 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3662 Add TYPE_CODE_COMPLEX.
3663 (amd64_windows_return_value): Fix types returned via XMM0.
3664
b58e7f72
AH
36652020-10-05 Alan Hayward <alan.hayward@arm.com>
3666
3667 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3668 AArch64/ARM maintainers.
3669
8d378f27
SM
36702020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3671
3672 * NEWS: Mention set/show debug event-loop.
3673
d5519913
TT
36742020-10-02 Tom Tromey <tromey@adacore.com>
3675
3676 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3677 REG_EXTENDED.
3678
18b67edc
SM
36792020-10-02 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3682 * procfs.c (procfs_inferior_created): Remove.
3683 (_initialize_procfs): Don't register procfs_inferior_created.
3684
6b01403b
SM
36852020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3686
3687 * async-event.c (invoke_async_signal_handlers): Add debug
3688 print.
3689 (check_async_event_handlers): Likewise.
3690 * event-top.c (show_debug_event_loop): New function.
3691 (_initialize_event_top): Register "set debug event-loop"
3692 setting.
3693
ba988419
SM
36942020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3697 * debug.h: Remove.
3698 * infrun.c: Include gdbsupport/common-debug.h.
3699 * linux-nat.c: Likewise.
3700
db20ebdf
SM
37012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3702
3703 * async-event.h (create_async_signal_handler): Add name
3704 parameter.
3705 (create_async_event_handler): Likewise.
3706 * async-event.c (struct async_signal_handler) <name>: New field.
3707 (struct async_event_handler) <name>: New field.
3708 (create_async_signal_handler): Assign name.
3709 (create_async_event_handler): Assign name.
3710 * event-top.c (async_init_signals): Pass name when creating
3711 handler.
3712 * infrun.c (_initialize_infrun): Likewise.
3713 * record-btrace.c (record_btrace_push_target): Likewise.
3714 * record-full.c (record_full_open): Likewise.
3715 * remote-notif.c (remote_notif_state_allocate): Likewise.
3716 * remote.c (remote_target::open_1): Likewise.
3717 * tui/tui-win.c (tui_initialize_win): Likewise.
3718
2554f6f5
SM
37192020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3720
3721 * async-event.c (initialize_async_signal_handlers): Pass name to
3722 add_file_handler
3723 * event-top.c (ui_register_input_event_handler): Likewise.
3724 * linux-nat.c (linux_nat_target::async): Likewise.
3725 * run-on-main-thread.c (_initialize_run_on_main_thread):
3726 Likewise
3727 * ser-base.c (reschedule): Likewise.
3728 (ser_base_async): Likewise.
3729 * tui/tui-io.c: Likewise.
3730 * top.h (struct ui) <num>: New field.
3731 * top.c (highest_ui_num): New variable.
3732 (ui::ui): Initialize num.
3733
a7aba266
SM
37342020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3735
3736 * observable.h <inferior_created>: Remove parameters. Update all
3737 listeners.
3738 * inferior.h (post_create_inferior): Remove target parameter.
3739 Update all callers.
3740
048fde1e 37412020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3742
3743 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3744 and DW_MACRO_undef_strx.
3745 (dwarf_decode_macros): Likewise
3746 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3747 which is the value of DW_AT_str_offsets_base.
3748 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3749 str_offsets_base.
3750
064280be
KR
37512020-10-01 Kamil Rytarowski <n54@gmx.com>
3752
3753 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3754
6ff33035
KR
37552020-10-01 Kamil Rytarowski <n54@gmx.com>
3756
3757 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3758 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3759
1eb6eb79
KR
37602020-10-01 Kamil Rytarowski <n54@gmx.com>
3761
3762 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3763
95eb9e54
TV
37642020-09-30 Tom de Vries <tdevries@suse.de>
3765
3766 PR symtab/26683
3767 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3768
cae21f8e
TT
37692020-09-30 Tom Tromey <tromey@adacore.com>
3770
3771 * dwarf2/read.c (handle_variant): Use constant_value.
3772
529908cb
TT
37732020-09-29 Tom Tromey <tom@tromey.com>
3774
3775 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3776 (read_file_scope, dwarf2_get_pc_bounds)
3777 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3778 (read_structure_type, handle_struct_member_die)
3779 (read_enumeration_type, read_array_type, read_set_type)
3780 (read_tag_pointer_type, read_tag_reference_type)
3781 (read_subroutine_type, read_base_type, read_subrange_type)
3782 (read_full_die_1, partial_die_info::read)
3783 (partial_die_info::read, by, new_symbol)
3784 (dwarf2_const_value_data, dwarf2_const_value_attr)
3785 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3786 (prepare_one_comp_unit): Update.
3787 * dwarf2/attribute.h (DW_UNSND): Remove.
3788
c45bc3f8
TT
37892020-09-29 Tom Tromey <tom@tromey.com>
3790
3791 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3792 (read_subroutine_type, partial_die_info::read)
3793 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3794 (dwarf2_add_member_fn): Update.
3795 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3796 * dwarf2/attribute.c (attribute::as_boolean): New method.
3797
23dca5c3
TT
37982020-09-29 Tom Tromey <tom@tromey.com>
3799
3800 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3801 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3802 method.
3803 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3804
52c14d11
TT
38052020-09-29 Tom Tromey <tom@tromey.com>
3806
3807 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3808 the attribute's form.
3809
e8e5c158
TT
38102020-09-29 Tom Tromey <tom@tromey.com>
3811
3812 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3813 (dwarf2_add_member_fn): Update.
3814 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3815 * dwarf2/attribute.c (attribute::defaulted): New method, from
3816 is_valid_DW_AT_defaulted.
3817
d4df075e
TT
38182020-09-29 Tom Tromey <tom@tromey.com>
3819
3820 * dwarf2/read.c (dw2_get_file_names_reader)
3821 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3822 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3823 (dwarf2_symbol_mark_computed): Use as_unsigned.
3824 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3825 method.
3826 <form_is_section_offset>: Update comment.
3827
bf23a268
TT
38282020-09-29 Tom Tromey <tom@tromey.com>
3829
3830 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3831 dwarf2_default_access_attribute. Look up attribute.
3832 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3833 Update.
3834
7a5f294d
TT
38352020-09-29 Tom Tromey <tom@tromey.com>
3836
3837 * dwarf2/read.c (skip_one_die): Update.
3838 (read_full_die_1): Change how reprocessing is done.
3839 (partial_die_info::read): Update.
3840 (read_attribute_value): Remove need_reprocess parameter.
3841 (read_attribute): Likewise.
3842 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3843 New method.
3844
36d378cf
TT
38452020-09-29 Tom Tromey <tom@tromey.com>
3846
3847 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3848 (dwarf2_const_value_attr, dump_die_shallow)
3849 (dwarf2_fetch_constant_bytes): Update.
3850 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3851 comment.
3852 <set_address>: New method.
3853 (DW_ADDR): Remove.
3854 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3855 (attribute::as_string, attribute::as_address): Add assert.
3856
fe56917a
TT
38572020-09-29 Tom Tromey <tom@tromey.com>
3858
3859 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3860 (read_attribute_reprocess, read_attribute_value): Update.
3861 (read_attribute): Clear requires_reprocessing.
3862 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3863 form_requires_reprocessing>: New methods.
3864 <string_init>: Clear requires_reprocessing.
3865 <set_unsigned_reprocess>: New method.
3866 <name>: Shrink by one bit.
3867 <requires_reprocessing>: New member.
3868 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3869 method.
3870
414ad644
TT
38712020-09-29 Tom Tromey <tom@tromey.com>
3872
3873 * dwarf2/read.c (read_attribute_value): Update.
3874 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3875 set_unsigned>: New methods.
3876 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3877
1bc397c5
TT
38782020-09-29 Tom Tromey <tom@tromey.com>
3879
3880 * dwarf2/read.c (get_alignment, read_array_order)
3881 (read_attribute_value, dwarf2_const_value_attr)
3882 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3883 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3884 New methods.
3885 (DW_SND): Remove.
3886
630ed6b9
TT
38872020-09-29 Tom Tromey <tom@tromey.com>
3888
3889 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3890 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3891 Update.
3892 * dwarf2/attribute.h (struct attribute) <as_signature,
3893 set_signature>: New methods.
3894 (DW_SIGNATURE): Remove.
3895
9d2246fc
TT
38962020-09-29 Tom Tromey <tom@tromey.com>
3897
3898 * dwarf2/read.c (read_call_site_scope)
3899 (handle_data_member_location, dwarf2_add_member_fn)
3900 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3901 (partial_die_info::read, read_attribute_value)
3902 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3903 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3904 (dwarf2_symbol_mark_computed): Update.
3905 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3906 methods.
3907 (DW_BLOCK): Remove.
3908 * dwarf2/attribute.c (attribute::form_is_block): Add
3909 DW_FORM_data16.
3910
c6481205
TT
39112020-09-29 Tom Tromey <tom@tromey.com>
3912
3913 * dwarf2/read.c (read_cutu_die_from_dwo)
3914 (read_attribute_reprocess, read_attribute_value, read_attribute)
3915 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3916 (dwarf2_fetch_constant_bytes): Update.
3917 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3918 <set_string_noncanonical, set_string_canonical>: New methods.
3919 <string_is_canonical>: Update comment.
3920 <canonical_string_p>: Add assert.
3921 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3922 * dwarf2/attribute.c (attribute::form_is_string): New method.
3923 (attribute::string): Use it.
3924
3b64bf15
TT
39252020-09-29 Tom Tromey <tom@tromey.com>
3926
3927 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3928 (dump_die_shallow): Use canonical_string_p.
3929 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3930 method.
3931
2c830f54
TT
39322020-09-29 Tom Tromey <tom@tromey.com>
3933
3934 * dwarf2/read.c (partial_die_info::read)
3935 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3936 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3937 attribute::as_string.
3938
6c412691
TT
39392020-09-29 Tom Tromey <tom@tromey.com>
3940
3941 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3942 DW_ADDR.
3943 (attribute::string): Don't use DW_STRING.
3944 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3945 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3946
95f982e5
TT
39472020-09-29 Tom Tromey <tom@tromey.com>
3948
3949 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3950 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3951 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3952 * dwarf2/attribute.h (struct attribute): Rename methods.
3953 * dwarf2/attribute.c (attribute::as_address): Rename from
3954 value_as_address.
3955 (attribute::as_string): Rename from value_as_string.
3956
f800b00e
TT
39572020-09-29 Tom Tromey <tom@tromey.com>
3958
3959 * dwarf2/read.c (partial_die_info::read) <case
3960 DW_AT_linkage_name>: Use value_as_string.
3961 (dwarf2_string_attr): Use value_as_string.
3962 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3963 method.
3964 * dwarf2/attribute.c (attribute::value_as_string): New method.
3965
de38d64a
PA
39662020-09-29 Pedro Alves <pedro@palves.net>
3967
3968 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3969 defined before using '#pragma GCC diagnostic' instead of checking
3970 __clang__.
3971
9aed480c
TT
39722020-09-28 Tom Tromey <tom@tromey.com>
3973
3974 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3975 (handle_signal_stop): Update.
3976 * procfs.c (procfs_target::insert_watchpoint): Update.
3977 * target.h (target_have_steppable_watchpoint): Now a function.
3978
8a3ecb79
TT
39792020-09-28 Tom Tromey <tom@tromey.com>
3980
3981 * infrun.c (set_schedlock_func): Update.
3982 * target.h (target_can_lock_scheduler): Now a function.
3983
55f6301a
TT
39842020-09-28 Tom Tromey <tom@tromey.com>
3985
3986 * inferior.h (class inferior) <has_execution>: Update.
3987 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3988 * valops.c (find_function_in_inferior)
3989 (value_allocate_space_in_inferior): Update.
3990 * top.c (kill_or_detach): Update.
3991 * target.c (target_preopen, set_target_permissions): Update.
3992 (target_has_execution_current): Remove.
3993 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3994 Update.
3995 * solib.c (update_solib_list, reload_shared_libraries): Update.
3996 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3997 * solib-dsbt.c (enable_break): Update.
3998 * score-tdep.c (score7_fetch_inst): Update.
3999 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4000 Update.
4001 * remote.c (remote_target::start_remote)
4002 (remote_target::remote_check_symbols, remote_target::open_1)
4003 (remote_target::remote_detach_1, remote_target::verify_memory)
4004 (remote_target::xfer_partial, remote_target::read_description)
4005 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4006 * record-full.c (record_full_open_1): Update.
4007 * record-btrace.c (record_btrace_target_open): Update.
4008 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4009 (value_nsstring): Update.
4010 * linux-thread-db.c (add_thread_db_info)
4011 (thread_db_find_new_threads_silently, check_thread_db_callback)
4012 (try_thread_db_load_1, record_thread): Update.
4013 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4014 Update.
4015 * linux-fork.c (checkpoint_command): Update.
4016 * infrun.c (set_non_stop, set_observer_mode)
4017 (check_multi_target_resumption, for_each_just_stopped_thread)
4018 (maybe_remove_breakpoints, normal_stop)
4019 (class infcall_suspend_state): Update.
4020 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4021 (info_program_command, attach_command): Update.
4022 * infcall.c (call_function_by_hand_dummy): Update.
4023 * inf-loop.c (inferior_event_handler): Update.
4024 * gcore.c (gcore_command, derive_heap_segment): Update.
4025 * exec.c (exec_file_command): Update.
4026 * eval.c (evaluate_subexp): Update.
4027 * compile/compile.c (compile_to_object): Update.
4028 * cli/cli-dump.c (restore_command): Update.
4029 * breakpoint.c (update_watchpoint)
4030 (update_inserted_breakpoint_locations)
4031 (insert_breakpoint_locations, get_bpstat_thread): Update.
4032 * target.h (target_has_execution): Remove macro.
4033 (target_has_execution_current): Don't declare.
4034 (target_has_execution): Rename from target_has_execution_1. Add
4035 argument default.
4036
05374cfd
TT
40372020-09-28 Tom Tromey <tom@tromey.com>
4038
4039 * mi/mi-main.c (exec_reverse_continue)
4040 (mi_cmd_list_target_features): Update.
4041 * infrun.c (set_exec_direction_func): Update.
4042 * target.c (default_execution_direction): Update.
4043 * reverse.c (exec_reverse_once): Update.
4044 * target.h (target_can_execute_reverse): Now a function.
4045
9dccd06e
TT
40462020-09-28 Tom Tromey <tom@tromey.com>
4047
4048 * tui/tui-regs.c (tui_get_register)
4049 (tui_data_window::show_registers): Update.
4050 * thread.c (scoped_restore_current_thread::restore)
4051 (scoped_restore_current_thread::scoped_restore_current_thread):
4052 Update.
4053 * regcache-dump.c (regcache_print): Update.
4054 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4055 Update.
4056 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4057 * mep-tdep.c (current_me_module, current_options): Update.
4058 * linux-thread-db.c (thread_db_load): Update.
4059 * infcmd.c (registers_info, info_vector_command)
4060 (info_float_command): Update.
4061 * ia64-tdep.c (ia64_frame_prev_register)
4062 (ia64_sigtramp_frame_prev_register): Update.
4063 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4064 * gcore.c (derive_stack_segment): Update.
4065 * frame.c (get_current_frame, has_stack_frames): Update.
4066 * findvar.c (language_defn::read_var_value): Update.
4067 * arm-tdep.c (arm_pc_is_thumb): Update.
4068 * target.c (target_has_registers): Rename from
4069 target_has_registers_1.
4070 * target.h (target_has_registers): Remove macro.
4071 (target_has_registers): Rename from target_has_registers_1.
4072
841de120
TT
40732020-09-28 Tom Tromey <tom@tromey.com>
4074
4075 * windows-tdep.c (tlb_make_value): Update.
4076 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4077 * thread.c (scoped_restore_current_thread::restore)
4078 (scoped_restore_current_thread::scoped_restore_current_thread)
4079 (thread_command): Update.
4080 * stack.c (backtrace_command_1, frame_apply_level_command)
4081 (frame_apply_all_command, frame_apply_command): Update.
4082 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4083 Update.
4084 * gcore.c (derive_stack_segment): Update.
4085 * frame.c (get_current_frame, has_stack_frames): Update.
4086 * auxv.c (info_auxv_command): Update.
4087 * ada-tasks.c (ada_build_task_list): Update.
4088 * target.c (target_has_stack): Rename from target_has_stack_1.
4089 * target.h (target_has_stack): Remove macro.
4090 (target_has_stack): Rename from target_has_stack_1.
4091
a739972c
TT
40922020-09-28 Tom Tromey <tom@tromey.com>
4093
4094 * target.c (target_has_memory): Rename from target_has_memory_1.
4095 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4096 * thread.c (scoped_restore_current_thread::restore)
4097 (scoped_restore_current_thread::scoped_restore_current_thread):
4098 Update.
4099 * frame.c (get_current_frame, has_stack_frames): Update.
4100 * target.h (target_has_memory): Remove macro.
4101 (target_has_memory): Rename from target_has_memory_1.
4102
5b8a4776
TT
41032020-09-28 Tom Tromey <tom@tromey.com>
4104
4105 * target.c (target_has_all_memory_1): Remove.
4106 * target.h (target_has_all_memory): Remove define.
4107 (target_has_all_memory_1): Don't declare.
4108
bd356ec6
SM
41092020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4110
4111 * ser-base.c: Adjust comments formatting.
4112
2c72d5e5
TT
41132020-09-27 Tom Tromey <tom@tromey.com>
4114
4115 PR tui/25342:
4116 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4117
35a98237
TT
41182020-09-27 Tom Tromey <tom@tromey.com>
4119
4120 PR tui/25342:
4121 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4122
9e820dec
TT
41232020-09-27 Tom Tromey <tom@tromey.com>
4124
4125 * unittests/tui-selftests.c: Update.
4126 * tui/tui-winsource.h (struct tui_source_window_base)
4127 <extra_margin, show_line_number, refresh_pad>: New methods.
4128 <m_max_length, m_pad>: New members.
4129 (tui_copy_source_line): Update.
4130 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4131 first_col, line_width, ndigits parameters. Add length.
4132 (tui_source_window_base::show_source_line): Write to pad. Line
4133 number now 0-based.
4134 (tui_source_window_base::refresh_pad): New method.
4135 (tui_source_window_base::show_source_content): Write to pad. Call
4136 refresh_pad.
4137 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4138 not refill.
4139 (tui_source_window_base::update_exec_info): Call
4140 show_line_number.
4141 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4142 method.
4143 <m_digits>: New member.
4144 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4145 and m_max_length.
4146 (tui_source_window::show_line_number): New method.
4147 * tui/tui-io.h (tui_puts): Fix comment.
4148 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4149 m_max_length.
4150
c15c15c8
TT
41512020-09-27 Tom Tromey <tom@tromey.com>
4152
4153 * tui/tui-winsource.c
4154 (tui_source_window_base::set_is_exec_point_at): Don't call
4155 show_source_line.
4156
149830c1
TT
41572020-09-27 Tom Tromey <tom@tromey.com>
4158
4159 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4160 method.
4161 <erase>: Update.
4162 <cursor_x, cursor_y>: Remove.
4163 <m_inner_window>: New member.
4164 (tui_py_window::rerender): Create inner window.
4165 (tui_py_window::output): Write to inner window.
4166
8f9929bb
GR
41672020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4168
4169 PR python/26586
4170 * cli/cli-script.c (execute_control_commands): don't set
4171 instream to nullptr here as this breaks the from_tty argument
4172 to gdb.execute in Python.
4173 (execute_user_command): set instream to nullptr here instead.
4174
956bdb59
SM
41752020-09-25 Simon Marchi <simon.marchi@efficios.com>
4176
4177 * infrun.h (infrun_debug_printf): Fix formatting.
4178 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4179
3b93626b
SJ
41802020-09-25 Saagar Jha <saagar@saagarjha.com>
4181
4182 * compile/compile-object-load.h (struct munmap_list): Add
4183 explicitly-defined move constructor.
4184
b551a89f
TT
41852020-09-24 Tom Tromey <tromey@adacore.com>
4186
4187 PR tui/26638:
4188 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4189 method.
4190 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4191 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4192 (tui_prev_win): Rewrite.
4193
99bb393f
HD
41942020-09-23 Hannes Domani <ssbssa@yahoo.de>
4195
4196 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4197 in WOW64 processes as SIGINT.
4198 * nat/windows-nat.h: Make wow64_process a shared variable.
4199 * windows-nat.c: Remove static wow64_process variable.
4200
20a5fcbd
TT
42012020-09-23 Tom Tromey <tom@tromey.com>
4202
4203 PR symtab/25470:
4204 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4205 offset and bit size.
4206 * printcmd.c (print_scalar_formatted): Handle zero-length
4207 integer.
4208 (print_scalar_formatted): Use bit_size_differs_p.
4209 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4210 constant.
4211 (union type_specific): <int_stuff>: New member.
4212 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4213 methods.
4214 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4215 TYPE_SPECIFIC_FIELD.
4216 (recursive_dump_type, copy_type_recursive): Update.
4217 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4218 DW_AT_data_bit_offset.
4219
bac51ab7
TT
42202020-09-23 Tom Tromey <tom@tromey.com>
4221
4222 * utils.h (class gdb_argv): Add move operators.
4223 <append>: New methods.
4224 * compile/compile.c (build_argc_argv): Remove.
4225 (compile_args_argc): Remove.
4226 (compile_args_argv): Change type.
4227 (set_compile_args): Simplify.
4228 (append_args): Remove.
4229 (filter_args): Remove argcp parameter.
4230 (get_args): Return gdb_argv. Simplify.
4231 (compile_to_object): Update.
4232
92677124
TT
42332020-09-23 Tom Tromey <tom@tromey.com>
4234
4235 * compile/compile-object-run.c (do_module_cleanup)
4236 <~do_module_cleanup> :Remove.
4237 (do_module_cleanup): Update.
4238 * compile/compile-object-load.h (struct munmap_list): Add move
4239 assignment operator.
4240 <source_file>: Now a std::string.
4241 <munmap_list>: Rename. No longer a pointer.
4242 * compile/compile-object-load.c (struct setup_sections_data): Add
4243 constructor.
4244 <setup_one_section>: Declare.
4245 <munmap_list>: Move earlier.
4246 <m_bfd>: New member.
4247 <m_last_size, m_last_section_first, m_last_prot,
4248 m_last_max_alignment>: Rename, add initializers where needed.
4249 (setup_sections_data::setup_one_section): Rename from
4250 setup_sections. Update.
4251 (compile_object_load): Update. Don't use bfd_map_over_sections.
4252
e616f60a
TT
42532020-09-23 Tom Tromey <tom@tromey.com>
4254
4255 * compile/compile-object-run.c (struct do_module_cleanup): Add
4256 parameters to constructor. Update destructor.
4257 <source_file, scope, scope_data, out_value_type, out_value_addr,
4258 munmap_list_head, objfile_name_string>: Remove.
4259 <module>: New member.
4260 (do_module_cleanup): Update.
4261 (compile_object_run): Update.
4262
e947a848
TT
42632020-09-23 Tom Tromey <tom@tromey.com>
4264
4265 * compile/compile.c (eval_compile_command): Update.
4266 * compile/compile-object-run.h (compile_object_run): Take a
4267 compile_module_up.
4268 * compile/compile-object-run.c (compile_object_run): Take a
4269 compile_module_up.
4270 * compile/compile-object-load.h (struct compile_module): Add
4271 constructor, destructor.
4272 (compile_module_up): New typedef.
4273 (compile_object_load): Return compile_object_up.
4274 * compile/compile-object-load.c (compile_object_load): Return
4275 compile_module_up.
4276
0dbf6ee6
TT
42772020-09-23 Tom Tromey <tom@tromey.com>
4278
4279 * compile/compile-object-run.c (struct do_module_cleanup): Add
4280 constructor, destructor.
4281 <objfile_name_string>: Don't use struct hack.
4282 (do_module_cleanup): Use delete.
4283 (compile_object_run): Use new.
4284
ebe824f5
TT
42852020-09-23 Tom Tromey <tom@tromey.com>
4286
4287 * compile/compile-cplus-types.c
4288 (compile_cplus_convert_struct_or_union): Use std::vector.
4289 (compile_cplus_convert_func): Likewise.
4290 * compile/compile-c-types.c (convert_func): Use std::vector.
4291
5dd918d9
TT
42922020-09-21 Tom Tromey <tromey@adacore.com>
4293
4294 * sparc-tdep.c (sparc32_skip_prologue): Use
4295 skip_prologue_using_sal.
4296
5486c517
TT
42972020-09-19 Tom Tromey <tom@tromey.com>
4298
4299 * symfile.c (add_section_size_callback): Remove.
4300 (load_one_section): Rename from load_section_callback. Change
4301 parameters.
4302 (generic_load): Use foreach.
4303
8a6bb1d1
TT
43042020-09-19 Tom Tromey <tom@tromey.com>
4305
4306 * exec.c (add_to_section_table): Remove.
4307 (build_section_table): Use foreach.
4308
08f93a1a
TT
43092020-09-19 Tom Tromey <tom@tromey.com>
4310
4311 * elfread.c (elf_locate_sections): Change parameters.
4312 (elf_symfile_read): Use foreach.
4313
03cd72b8
TT
43142020-09-19 Tom Tromey <tom@tromey.com>
4315
4316 * cli/cli-dump.c (struct callback_data): Remove.
4317 (restore_one_section): Rename from restore_section_callback.
4318 Change parameters.
4319 (restore_binary_file): Change parameters.
4320 (restore_command): Use foreach.
4321
f4f2b85f
TT
43222020-09-19 Tom Tromey <tom@tromey.com>
4323
4324 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4325 (gcore_copy_callback): Likewise.
4326 (gcore_memory_sections): Use foreach.
4327
b35c1d1c
TT
43282020-09-19 Tom Tromey <tom@tromey.com>
4329
4330 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4331 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4332 parameters.
4333 (generic_elf_osabi_sniffer): Use foreach.
4334 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4335 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4336
5bb6e9dd
TT
43372020-09-19 Tom Tromey <tom@tromey.com>
4338
4339 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4340 (dwarf2_get_dwz_file): Use foreach.
4341 (dwarf2_locate_dwo_sections): Change parameters.
4342 (open_and_init_dwo_file): Use foreach.
4343 (dwarf2_locate_common_dwp_sections): Change parameters.
4344 (open_and_init_dwp_file): Use foreach.
4345
ad7277da
TT
43462020-09-19 Tom Tromey <tom@tromey.com>
4347
4348 * symfile.h: (find_lowest_section): Don't declare.
4349 * symfile.c (find_lowest_section): Now static. Change
4350 parameters.
4351 (struct place_section_arg): Remove.
4352 (place_section): Change parameters.
4353 (addr_info_make_relative): Use foreach.
4354 (symfile_dummy_outputs): Remove.
4355 (default_symfile_relocate): Use foreach.
4356
cb814f2e
TT
43572020-09-19 Tom Tromey <tom@tromey.com>
4358
4359 * objfiles.c (add_to_objfile_sections): Rename from
4360 add_to_objfile_sections_full.
4361 (add_to_objfile_sections): Remove.
4362 (build_objfile_section_table): Use foreach.
4363
3cabfd26
TT
43642020-09-19 Tom Tromey <tom@tromey.com>
4365
4366 * stap-probe.c (get_stap_base_address_1): Remove.
4367 (get_stap_base_address): Use foreach.
4368
1ce51eb5
TT
43692020-09-19 Tom Tromey <tom@tromey.com>
4370
4371 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4372 parameters.
4373 (gdb_bfd_close_or_warn): Use foreach.
4374
a190fabb
TT
43752020-09-19 Tom Tromey <tom@tromey.com>
4376
4377 * corelow.c (add_to_thread_list): Change parameters.
4378 (core_target_open): Use foreach.
4379
cafb0d81
TT
43802020-09-19 Tom Tromey <tom@tromey.com>
4381
4382 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4383 existing function.
4384
c8d5abea
AB
43852020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4386
4387 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4388 for arrays.
4389
6d816919
AB
43902020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4391
4392 * eval.c: Remove 'f-lang.h' include.
4393 (value_f90_subarray): Moved to f-lang.c.
4394 (eval_call): Renamed to...
4395 (evaluate_subexp_do_call): ...this, is no longer static, header
4396 comment moved into header file.
4397 (evaluate_funcall): Update call to eval_call.
4398 (skip_undetermined_arglist): Moved to f-lang.c.
4399 (fortran_value_subarray): Likewise.
4400 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4401 moved to evaluate_subexp_f.
4402 (calc_f77_array_dims): Moved to f-lang.c
4403 * expprint.c (print_subexp_funcall): New function.
4404 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4405 moved to print_subexp_f, OP_FUNCALL uses new function.
4406 (dump_subexp_body_funcall): New function.
4407 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4408 moved to dump_subexp_f, OP_FUNCALL uses new function.
4409 * expression.h (evaluate_subexp_do_call): Declare.
4410 * f-lang.c (value_f90_subarray): Moved from eval.c.
4411 (skip_undetermined_arglist): Likewise.
4412 (calc_f77_array_dims): Likewise.
4413 (fortran_value_subarray): Likewise.
4414 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4415 (operator_length_f): Likewise.
4416 (print_subexp_f): Likewise.
4417 (dump_subexp_body_f): Likewise.
4418 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4419 declaration of this operation to here.
4420 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4421 support moved to operator_length_f.
4422 * parser-defs.h (dump_subexp_body_funcall): Declare.
4423 (print_subexp_funcall): Declare.
4424 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4425 fortran-operator.def.
4426
8c37706a
AB
44272020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4428
4429 * eval.c (fortran_value_subarray): New function, content is taken
4430 from...
4431 (evaluate_subexp_standard): ...here, in two places. Now arrays
4432 and strings both call the new function.
4433 (calc_f77_array_dims): Add header comment, handle strings.
4434
14f9473c
VC
44352020-09-18 Victor Collod <vcollod@nvidia.com>
4436
4437 PR gdb/26635
4438 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4439 (i386_analyze_prologue): Call i386_skip_endbr.
4440
b60cea74
TT
44412020-09-18 Tom Tromey <tromey@adacore.com>
4442
4443 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4444 (windows_nat_target::wait): Update.
4445 * target/wait.h (enum target_wait_flag): New. Use
4446 DEF_ENUM_FLAGS_TYPE.
4447 * target/target.h (target_wait): Change type of options.
4448 * target.h (target_options_to_string, default_target_wait):
4449 Update.
4450 (struct target_ops) <wait>: Change type of options.
4451 * target.c (target_wait, default_target_wait, do_option): Change
4452 type of "options".
4453 (target_options_to_string): Likewise.
4454 * target-delegates.c: Rebuild.
4455 * target-debug.h (target_debug_print_target_wait_flags): Rename
4456 from target_debug_print_options.
4457 * sol-thread.c (class sol_thread_target) <wait>: Update.
4458 (sol_thread_target::wait): Update.
4459 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4460 (rs6000_nat_target::wait): Update.
4461 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4462 Update.
4463 (remote_target::wait_ns, remote_target::wait_as): Change type of
4464 "options".
4465 (remote_target::wait): Update.
4466 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4467 (gdbsim_target::wait): Update.
4468 * record-full.c (class record_full_base_target) <wait>: Update.
4469 (record_full_wait_1): Change type of "options".
4470 (record_full_base_target::wait): Update.
4471 * record-btrace.c (class record_btrace_target) <wait>: Update.
4472 (record_btrace_target::wait): Update.
4473 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4474 Update.
4475 (ravenscar_thread_target::wait): Update.
4476 * procfs.c (class procfs_target) <wait>: Update.
4477 (procfs_target::wait): Update.
4478 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4479 * obsd-nat.c (obsd_nat_target::wait): Update.
4480 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4481 (nto_procfs_target::wait): Update.
4482 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4483 * nbsd-nat.c (nbsd_wait): Change type of "options".
4484 (nbsd_nat_target::wait): Update.
4485 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4486 (thread_db_target::wait): Update.
4487 * linux-nat.h (class linux_nat_target) <wait>: Update.
4488 * linux-nat.c (linux_nat_target::wait): Update.
4489 (linux_nat_wait_1): Update.
4490 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4491 "options".
4492 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4493 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4494 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4495 (go32_nat_target::wait): Update.
4496 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4497 * gnu-nat.c (gnu_nat_target::wait): Update.
4498 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4499 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4500 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4501 * darwin-nat.c (darwin_nat_target::wait): Update.
4502 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4503 (bsd_uthread_target::wait): Update.
4504 * aix-thread.c (class aix_thread_target) <wait>: Update.
4505 (aix_thread_target::wait): Update.
4506
0295dde6
AB
45072020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4508
4509 * compile/compile-object-run.c (create_copied_type_recursive): New
4510 function.
4511 (compile_object_run): Use new function.
4512
d3483b43
JT
45132020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4514
4515 * NEWS: Mention x86_64 Cygwin core file support.
4516
e7d612ad
JT
45172020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4518
4519 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4520 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4521
aff9d387
JT
45222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4523
62a5151b
JT
4524 * windows-tdep.h: Add prototypes.
4525 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4526 (i386_windows_core_pid_to_str): Move and rename ...
4527 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4528 (windows_core_pid_to_str): ... and here.
4529 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4530
45312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4532 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4533 (amd64_windows_init_abi_common): ... and register.
4534
7d155da3
JT
45352020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4536
4537 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4538 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4539
e8ef12b9
PA
45402020-09-18 Pedro Alves <pedro@palves.net>
4541
4542 PR gdb/26631
4543 * thread.c (thread_find_command): Switch inferior before calling
4544 target methods.
4545
c1e1314d
TT
45462020-09-17 Tom Tromey <tromey@adacore.com>
4547
4548 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4549 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4550 (tdesc_arch_data_up): New typedef.
4551 (tdesc_use_registers, tdesc_data_alloc): Update.
4552 (tdesc_data_cleanup): Don't declare.
4553 * target-descriptions.c (tdesc_data_alloc): Return a
4554 tdesc_arch_data_up.
4555 (tdesc_arch_data_deleter::operator()): Rename from
4556 tdesc_data_cleanup. Change argument type.
4557 (tdesc_use_registers): Change early_data to an rvalue reference.
4558 (tdesc_use_registers): Don't use delete.
4559 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4560 * s390-tdep.c (s390_gdbarch_init): Update.
4561 * rx-tdep.c (rx_gdbarch_init): Update.
4562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4563 * riscv-tdep.c (riscv_gdbarch_init): Update.
4564 * or1k-tdep.c (or1k_gdbarch_init): Update.
4565 * nios2-tdep.c (nios2_gdbarch_init): Update.
4566 * nds32-tdep.c (nds32_gdbarch_init): Update.
4567 * mips-tdep.c (mips_gdbarch_init): Update.
4568 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4569 * m68k-tdep.c (m68k_gdbarch_init): Update.
4570 * i386-tdep.c (i386_gdbarch_init): Update.
4571 * arm-tdep.c (arm_gdbarch_init): Update.
4572 * arc-tdep.c (arc_tdesc_init): Update.
4573 (arc_gdbarch_init): Update.
4574 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4575
0363df3d
HD
45762020-09-17 Hannes Domani <ssbssa@yahoo.de>
4577
4578 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4579 for WOW64 processes.
4580
280a9412
TT
45812020-09-17 Tom Tromey <tom@tromey.com>
4582
4583 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4584
6108fd18
TT
45852020-09-17 Tom Tromey <tom@tromey.com>
4586
4587 * value.c (preserve_values): Update.
4588 * python/py-type.c (save_objfile_types): Update.
4589 * guile/scm-type.c (save_objfile_types): Update.
4590 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4591 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4592 * compile/compile-object-run.c (compile_object_run): Update.
4593
fa9b1164
TT
45942020-09-17 Tom Tromey <tom@tromey.com>
4595
4596 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4597 Remove.
4598 <m_table>: Now htab_up.
4599 * typeprint.c (typedef_hash_table::recursively_update)
4600 (typedef_hash_table::add_template_parameters)
4601 (typedef_hash_table::typedef_hash_table): Update.
4602 (typedef_hash_table::~typedef_hash_table): Remove.
4603 (typedef_hash_table::typedef_hash_table)
4604 (typedef_hash_table::find_global_typedef)
4605 (typedef_hash_table::find_typedef): Update.
4606
eb53f105
TT
46072020-09-17 Tom Tromey <tom@tromey.com>
4608
4609 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4610
7a8a5d47
TT
46112020-09-17 Tom Tromey <tom@tromey.com>
4612
4613 * linespec.c (class decode_compound_collector)
4614 <~decode_compound_collector>: Remove.
4615 <m_unique_syms>: Now htab_up.
4616 (decode_compound_collector::operator ()): Update.
4617 (class symtab_collector) <~symtab_collector>: Remove.
4618 <m_symtab_table>: Now htab_up.
4619 (symtab_collector::operator ()): Update.
4620
99032cfc
TT
46212020-09-17 Tom Tromey <tom@tromey.com>
4622
4623 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4624 (filename_seen_cache::clear): Update.
4625 (~filename_seen_cache): Remove.
4626 (filename_seen_cache::seen): Update.
4627 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4628 htab_up.
4629 <~filename_seen_cache>: Remove.
4630 <traverse>: Update.
4631
32580f6d
TT
46322020-09-17 Tom Tromey <tom@tromey.com>
4633
4634 * completer.c (completion_tracker::discard_completions)
4635 (completion_tracker::~completion_tracker)
4636 (completion_tracker::maybe_add_completion)
4637 (completion_tracker::remove_completion)
4638 (completion_tracker::recompute_lowest_common_denominator)
4639 (completion_tracker::build_completion_result): Update.
4640 * completer.h (class completion_tracker) <have_completions>:
4641 Update.
4642 <m_entries_hash>: Now htab_up.
4643
c1fb9836
TT
46442020-09-17 Tom Tromey <tom@tromey.com>
4645
4646 * breakpoint.c (ambiguous_names_p): Use htab_up.
4647
88f07206
TT
46482020-09-17 Tom Tromey <tom@tromey.com>
4649
4650 * auto-load.c (struct auto_load_pspace_info)
4651 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4652 <loaded_script_files, loaded_script_texts>: Change type to
4653 htab_up.
4654 (~auto_load_pspace_info) Remove.
4655 (init_loaded_scripts_info, maybe_add_script_file)
4656 (maybe_add_script_text, auto_load_info_scripts): Update.
4657
9519b2ee
TT
46582020-09-17 Tom Tromey <tromey@adacore.com>
4659
4660 * c-exp.y (name_obstack): Now static.
4661
d2cd4113
CC
46622020-09-17 Chungyi Chi <demonic@csie.io>
4663
4664 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4665
b650a282
SM
46662020-09-16 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4669 (add_solib_catchpoint): Likewise.
4670 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4671 to bool.
4672 (add_solib_catchpoint): Change int parameter/variable to bool.
4673 (catch_load_or_unload): Likewise.
4674 (init_catchpoint): Likewise.
4675 (create_fork_vfork_event_catchpoint): Likewise.
4676 (catch_fork_command_1): Likewise.
4677 (catch_exec_command_1): Likewise.
4678
4d0bcfcf
SM
46792020-09-16 Simon Marchi <simon.marchi@efficios.com>
4680
4681 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4682 Change instance_flags to m_instance_flags.
4683
fe830662
TT
46842020-09-16 Tom Tromey <tromey@adacore.com>
4685
4686 PR gdb/26598:
4687 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4688
fe5ddfc3
JB
46892020-09-16 John Baldwin <jhb@FreeBSD.org>
4690
4691 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4692 PL_FLAG_EXEC.
4693 (fbsd_nat_target::insert_exec_catchpoint)
4694 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4695 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4696 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4697
e911c666
JB
46982020-09-16 John Baldwin <jhb@FreeBSD.org>
4699
4700 * configure.ac: Remove check for kinfo_getvmmap().
4701 * configure, config.in: Regenerate.
4702 * fbsd-nat.c (fbsd_read_mapping): Remove
4703 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4704 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4705 kinfo_get_vmmap() are always present.
4706
1f17d372
JB
47072020-09-16 John Baldwin <jhb@FreeBSD.org>
4708
4709 * fbsd-nat.c: Always include support for
4710 TARGET_OBJECT_SIGNAL_INFO.
4711
bcb1da7f
JB
47122020-09-16 John Baldwin <jhb@FreeBSD.org>
4713
4714 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4715 sysctl and remove procfs fallback.
4716
5515f729
JB
47172020-09-16 John Baldwin <jhb@FreeBSD.org>
4718
4719 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4720 * fbsd-nat.h: Likewise.
4721
da1df1db
TBA
47222020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4723
4724 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4725 argument.
4726
0e25e767
AB
47272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4728
4729 * ada-lang.c (ada_language_data): Delete.
4730 (ada_language): Remove references to ada_language_data.
4731 * c-lang.c (c_language_data): Delete.
4732 (c_language): Remove references to c_language_data.
4733 (cplus_language_data): Delete.
4734 (cplus_language): Remove references to cplus_language_data.
4735 (asm_language_data): Delete.
4736 (asm_language): Remove references to asm_language_data.
4737 (minimal_language_data): Delete.
4738 (minimal_language): Remove references to minimal_language_data.
4739 * d-lang.c (d_language_data): Delete.
4740 (d_language): Remove references to d_language_data.
4741 * f-lang.c (f_language_data): Delete.
4742 (f_language): Remove references to f_language_data.
4743 * go-lang.c (go_language_data): Delete.
4744 (go_language): Remove references to go_language_data.
4745 * language.c (unknown_language_data): Delete.
4746 (unknown_language): Remove references to unknown_language_data.
4747 (auto_language_data): Delete.
4748 (auto_language): Remove references to auto_language_data.
4749 * language.h (language_data): Delete struct.
4750 (language_defn): No longer inherit from language_data.
4751 * m2-lang.c (m2_language_data): Delete.
4752 (m2_language): Remove references to m2_language_data.
4753 * objc-lang.c (objc_language_data): Delete.
4754 (objc_language): Remove references to objc_language_data.
4755 * opencl-lang.c (opencl_language_data): Delete.
4756 (opencl_language): Remove references to opencl_language_data.
4757 * p-lang.c (pascal_language_data): Delete.
4758 (pascal_language): Remove references to pascal_language_data.
4759 * rust-lang.c (rust_language_data): Delete.
4760 (rust_language): Remove references to rust_language_data.
4761
b7c6e27d
AB
47622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4763
4764 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4765 initializer.
4766 (ada_language::opcode_print_table): New member function.
4767 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4768 (c_language::opcode_print_table): New member function.
4769 (cplus_language_data): Remove la_op_print_tab initializer.
4770 (cplus_language::opcode_print_table): New member function.
4771 (asm_language_data): Remove la_op_print_tab initializer.
4772 (asm_language::opcode_print_table): New member function.
4773 (minimal_language_data): Remove la_op_print_tab initializer.
4774 (minimal_language::opcode_print_table): New member function.
4775 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4776 (d_language::opcode_print_table): New member function.
4777 * expprint.c (print_subexp_standard): Update call to
4778 opcode_print_table.
4779 (op_string): Likewise.
4780 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4781 (f_language::opcode_print_table): New member function.
4782 * go-lang.c (go_language_data): Remove la_op_print_tab
4783 initializer.
4784 (go_language::opcode_print_table): New member function.
4785 * language.c (unknown_language_data): Remove la_op_print_tab
4786 initializer.
4787 (unknown_language::opcode_print_table): New member function.
4788 (auto_language_data): Remove la_op_print_tab initializer.
4789 (auto_language::opcode_print_table): New member function.
4790 * language.h (language_data): Remove la_op_print_tab field.
4791 (language_defn::opcode_print_table): Declare new member function.
4792 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4793 initializer.
4794 (m2_language::opcode_print_table): New member function.
4795 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4796 initializer.
4797 (objc_language::opcode_print_table): New member function.
4798 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4799 initializer.
4800 (opencl_language::opcode_print_table): New member function.
4801 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4802 initializer.
4803 (pascal_language::opcode_print_table): New member function.
4804 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4805 initializer.
4806 (rust_language::opcode_print_table): New member function.
4807
5aba6ebe
AB
48082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4809
4810 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4811 (ada_language::expression_ops): New member function.
4812 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4813 (c_language::expression_ops): New member function.
4814 (cplus_language_data): Remove la_exp_desc initializer.
4815 (cplus_language::expression_ops): New member function.
4816 (asm_language_data): Remove la_exp_desc initializer.
4817 (asm_language::expression_ops): New member function.
4818 (minimal_language_data): Remove la_exp_desc initializer.
4819 (minimal_language::expression_ops): New member function.
4820 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4821 (d_language::expression_ops): New member function.
4822 * eval.c (evaluate_subexp): Update call to expression_ops.
4823 * expprint.c (print_subexp): Likewise.
4824 (op_name): Likewise.
4825 (dump_subexp_body): Likewise.
4826 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4827 (f_language::expression_ops): New member function.
4828 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4829 (go_language::expression_ops): New member function.
4830 * language.c (language_defn::expression_ops): New function.
4831 (unknown_language_data): Remove la_exp_desc initializer.
4832 (auto_language_data): Likewise.
4833 * language.h (language_data): Remove la_exp_desc field.
4834 (language_defn::expression_ops): Declare new member function.
4835 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4836 (m2_language::expression_ops): New member function.
4837 * objc-lang.c (objc_language_data): Remove la_exp_desc
4838 initializer.
4839 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4840 initializer.
4841 (opencl_language::expression_ops): New member function.
4842 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4843 * parse.c (operator_length): Update call to expression_ops.
4844 (exp_iterate): Likewise.
4845 * rust-lang.c (rust_language_data): Remove la_exp_desc
4846 initializer.
4847 (ruse_language::expression_ops): New member function.
4848
b63a3f3f
AB
48492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4852 initializer.
4853 (ada_language::varobj_ops): New member function.
4854 * c-lang.c (c_language_data): Remove la_varobj_ops
4855 initializer.
4856 (cplus_language_data): Likewise.
4857 (cplus_language::varobj_ops): New member function.
4858 (asm_language_data): Remove la_varobj_ops initializer.
4859 (minimal_language_data): Likewise.
4860 * d-lang.c (d_language_data): Likewise.
4861 * f-lang.c (f_language_data): Likewise.
4862 * go-lang.c (go_language_data): Likewise.
4863 * language.c (language_defn::varobj_ops): New function.
4864 (unknown_language_data): Remove la_varobj_ops
4865 initializer.
4866 (auto_language_data): Likewise.
4867 * language.h (language_data): Remove la_varobj_ops field.
4868 (language_defn::varobj_ops): Declare new member function.
4869 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4870 * objc-lang.c (objc_language_data): Likewise.
4871 * opencl-lang.c (opencl_language_data): Likewise.
4872 * p-lang.c (pascal_language_data): Likewise.
4873 * rust-lang.c (rust_language_data): Likewise.
4874 * varobj.c (varobj_create): Update call to varobj_ops.
4875 * varobj.h (default_varobj_ops): Delete define.
4876
1ac14a04
AB
48772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4878
4879 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4880 initializer.
4881 * c-lang.c (c_language_data): Likewise.
4882 (c_language::macro_expansion): New member function.
4883 (cplus_language_data): Likewise.
4884 (cplus_language::macro_expansion): New member function.
4885 (asm_language_data): Likewise.
4886 (asm_language::macro_expansion): New member function.
4887 (minimal_language_data): Likewise.
4888 (minimal_language::macro_expansion): New member function.
4889 * d-lang.c (d_language_data): Remove la_macro_expansion
4890 initializer.
4891 * f-lang.c (f_language_data): Likewise.
4892 * go-lang.c (go_language_data): Likewise.
4893 * language.c (unknown_language_data): Likewise.
4894 (auto_language_data): Likewise.
4895 * language.h (language_data): Remove la_macro_expansion field.
4896 (language_defn::macro_expansion): New member function.
4897 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4898 initializer.
4899 * objc-lang.c (objc_language_data): Likewise.
4900 (objc_language::macro_expansion): New member function.
4901 * opencl-lang.c (opencl_language_data): Likewise.
4902 (opencl_language::macro_expansion): New member function.
4903 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4904 initializer.
4905 * rust-lang.c (rust_language_data): Likewise.
4906 * symtab.c (default_collect_symbol_completion_matches_break_on):
4907 Update call to macro_expansion.
4908
3a3440fb
AB
49092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4910
4911 * ada-lang.c (ada_language_data): Remove la_array_ordering
4912 initializer.
4913 * c-lang.c (c_language_data): Likewise.
4914 (cplus_language_data): Likewise.
4915 (asm_language_data): Likewise.
4916 (minimal_language_data): Likewise.
4917 * d-lang.c (d_language_data): Likewise.
4918 * dwarf2/read.c (read_array_order): Update for call to
4919 array_ordering.
4920 * f-lang.c (f_language_data): Remove la_array_ordering
4921 initializer.
4922 (f_language::array_ordering): New member function.
4923 * go-lang.c (go_language_data): Remove la_array_ordering
4924 initializer.
4925 * language.c (unknown_language_data): Likewise.
4926 (auto_language_data): Likewise.
4927 * language.h (language_data): Delete la_array_ordering field.
4928 (language_defn::array_ordering): New member function.
4929 * m2-lang.c (m2_language_data): Remove la_array_ordering
4930 initializer.
4931 * objc-lang.c (objc_language_data): Likewise.
4932 * opencl-lang.c (opencl_language_data): Likewise.
4933 * p-lang.c (pascal_language_data): Likewise.
4934 * rust-lang.c (rust_language_data): Likewise.
4935
0d201fa4
AB
49362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4939 initializer.
4940 * c-lang.c (c_language_data): Likewise.
4941 (cplus_language_data): Likewise.
4942 (asm_language_data): Likewise.
4943 (minimal_language_data): Likewise.
4944 * d-lang.c (d_language_data): Likewise.
4945 * f-lang.c (f_language_data): Likewise.
4946 (f_language::case_sensitivity): New member function.
4947 * go-lang.c (go_language_data): Remove la_case_sensitivity
4948 initializer.
4949 * language.c (enum case_mode): Moved here from language.h.
4950 (case_mode): Make static.
4951 (show_case_command): Update for case_sensitivity being a method.
4952 (set_case_command): Likewise.
4953 (set_range_case): Likewise.
4954 (unknown_language_data): Remove la_case_sensitivity initializer.
4955 (auto_language_data): Likewise.
4956 * language.h (case_mode): Delete, move enum declaration to
4957 language.c.
4958 (language_data): Delete la_case_sensitivity field.
4959 (language_defn::case_sensitivity): New member function.
4960 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4961 initializer.
4962 * objc-lang.c (objc_language_data): Likewise.
4963 * opencl-lang.c (opencl_language_data): Likewise.
4964 * p-lang.c (pascal_language_data): Likewise.
4965 * rust-lang.c (rust_language_data): Likewise.
4966
efdf6a73
AB
49672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * ada-lang.c (ada_language_data): Remove la_range_check
4970 initializer.
4971 * c-lang.c (c_language_data): Likewise.
4972 (cplus_language_data): Likewise.
4973 (asm_language_data): Likewise.
4974 (minimal_language_data): Likewise.
4975 * d-lang.c (d_language_data): Likewise.
4976 * f-lang.c (f_language_data): Likewise.
4977 (f_language::range_checking_on_by_default): New member function.
4978 * go-lang.c (go_language_data): Remove la_range_check initializer.
4979 * language.c (enum range_mode): Moved here from language.h.
4980 (range_mode): Made static.
4981 (show_range_command): Update to use
4982 range_checking_on_by_default.
4983 (set_range_command): Likewise.
4984 (set_range_case): Likewise.
4985 (unknown_language_data): Remove la_range_check initializer.
4986 (auto_language_data): Likewise.
4987 * language.h (range_mode): Delete. Enum definition moved to
4988 language.c.
4989 (language_data): Remove la_range_check field.
4990 (language_defn::range_checking_on_by_default): New member
4991 function.
4992 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4993 (m2_language::range_checking_on_by_default): New member function.
4994 * objc-lang.c (objc_language_data): Remove la_range_check
4995 initializer.
4996 * opencl-lang.c (opencl_language_data): Likewise.
4997 * p-lang.c (pascal_language_data): Likewise.
4998 (pascal_language::range_checking_on_by_default): New member
4999 function.
5000 * rust-lang.c (rust_language_data): Remove la_range_check
5001 initializer.
5002 (rust_language::range_checking_on_by_default): New member
5003 function.
5004
bf92aec5
AB
50052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5006
5007 * dwarf2/read.c (dwarf2_physname): Remove special case for
5008 language_go.
5009 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5010 member function.
5011
d3355e4d
AB
50122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * ada-lang.c (ada_language_data): Remove
5015 la_store_sym_names_in_linkage_form_p initializer.
5016 (ada_language::store_sym_names_in_linkage_form_p): New member
5017 function.
5018 * c-lang.c (c_language_data): Remove
5019 la_store_sym_names_in_linkage_form_p initializer.
5020 (c_language::store_sym_names_in_linkage_form_p): New member
5021 function.
5022 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5023 initializer.
5024 (asm_language_data): Likewise.
5025 (asm_language::store_sym_names_in_linkage_form_p): New member
5026 function.
5027 (minimal_language_data): Remove
5028 la_store_sym_names_in_linkage_form_p initializer.
5029 (minimal_language::store_sym_names_in_linkage_form_p): New member
5030 function.
5031 * d-lang.c (d_language_data): Remove
5032 la_store_sym_names_in_linkage_form_p initializer.
5033 * dwarf2/read.c (dwarf2_physname): Update call to
5034 store_sym_names_in_linkage_form_p.
5035 * f-lang.c (f_language_data): Remove
5036 la_store_sym_names_in_linkage_form_p initializer.
5037 * go-lang.c (go_language_data): Remove
5038 la_store_sym_names_in_linkage_form_p initializer.
5039 * language.c (unknown_language_data): Remove
5040 la_store_sym_names_in_linkage_form_p initializer.
5041 (unknown_language::store_sym_names_in_linkage_form_p): New member
5042 function.
5043 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5044 initializer.
5045 (auto_language::store_sym_names_in_linkage_form_p): New member
5046 function.
5047 * language.h (language_data): Remove
5048 la_store_sym_names_in_linkage_form_p member variable.
5049 (language_defn::store_sym_names_in_linkage_form_p): New member
5050 function.
5051 * m2-lang.c (m2_language_data): Remove
5052 la_store_sym_names_in_linkage_form_p initializer.
5053 * objc-lang.c (objc_language_data): Likewise.
5054 * opencl-lang.c (opencl_language_data): Likewise.
5055 * p-lang.c (pascal_language_data): Likewise.
5056 * rust-lang.c (rust_language_data): Likewise.
5057
22c12a6c
AB
50582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 * ada-lang.c (ada_language_data): Remove string_lower_bound
5061 initializer.
5062 * c-lang.c (c_language_data): Likewise.
5063 (cplus_language_data): Likewise.
5064 (asm_language_data): Likewise.
5065 (minimal_language_data): Likewise.
5066 * d-lang.c (d_language_data): Likewise.
5067 * f-lang.c (f_language_data): Likewise.
5068 * go-lang.c (go_language_data): Likewise.
5069 * language.c (unknown_language_data): Likewise.
5070 (auto_language_data): Likewise.
5071 * language.h (language_data): Remove string_lower_bound field.
5072 (language_defn::string_lower_bound): New member function.
5073 * m2-lang.c (m2_language_data): Remove string_lower_bound
5074 initializer.
5075 (m2_language::string_lower_bound): New member function.
5076 * objc-lang.c (objc_language_data): Remove string_lower_bound
5077 initializer.
5078 * opencl-lang.c (opencl_language_data): Likewise.
5079 * p-lang.c (pascal_language_data): Likewise.
5080 * rust-lang.c (rust_language_data): Likewise.
5081 * valops.c (value_cstring): Update call to string_lower_bound.
5082 (value_string): Likewise.
5083 * value.c (allocate_repeated_value): Likewise.
5084
1c236ddd
AB
50852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5086
5087 * valops.c (value_repeat): Fix incorrect argument name in comment.
5088
67bd3fd5
AB
50892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5090
5091 * ada-lang.c (ada_language_data): Remove c_style_arrays
5092 initializer.
5093 (ada_language::c_style_arrays_p): New member fuction.
5094 * c-lang.c (c_language_data): Remove c_style_arrays
5095 initializer.
5096 (cplus_language_data): Likewise.
5097 (asm_language_data): Likewise.
5098 (minimal_language_data): Likewise.
5099 * d-lang.c (d_language_data): Likewise.
5100 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5101 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5102 (f_language::c_style_arrays_p): New member function.
5103 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5104 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5105 * language.c (unknown_language_data): Remove c_style_arrays
5106 initializer.
5107 (auto_language_data): Likewise.
5108 * language.h (language_data): Remove c_style_arrays field.
5109 (language_defn::c_style_arrays_p): New member function.
5110 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5111 (m2_language::c_style_arrays_p): New member function.
5112 * objc-lang.c (objc_language_data): Remove c_style_arrays
5113 initializer.
5114 * opencl-lang.c (opencl_language_data): Likewise.
5115 * p-lang.c (pascal_language_data): Likewise.
5116 * rust-lang.c (rust_language_data): Likewise.
5117 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5118 and update local variable to a bool.
5119 * valops.c (value_cast): Update call to c_style_arrays_p.
5120 (value_array): Likewise.
5121 * value.c (coerce_array): Likewise.
5122
85967615
AB
51232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * ada-lang.c (ada_language_data): Remove la_language initializer.
5126 * c-lang.c (c_language_data): Likewise.
5127 (cplus_language_data): Likewise.
5128 (asm_language_data): Likewise.
5129 (minimal_language_data): Likewise.
5130 * d-lang.c (d_language_data): Likewise.
5131 * f-lang.c (f_language_data): Likewise.
5132 * go-lang.c (go_language_data): Likewise.
5133 * language.c (unknown_language_data): Likewise.
5134 (auto_language_data): Likewise.
5135 * language.h (language_data): Remove la_language field.
5136 (language_defn::language_defn): Initialise la_language field.
5137 (language_defn::la_language): New member variable.
5138 * m2-lang.c (m2_language_data): Remove la_language field.
5139 * objc-lang.c (objc_language_data): Likewise.
5140 * opencl-lang.c (opencl_language_data): Likewise.
5141 * p-lang.c (pascal_language_data): Likewise.
5142 * rust-lang.c (rust_language_data): Likewise.
5143
e171d6f1
AB
51442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * ada-lang.c (ada_extensions): Delete, moved into
5147 ada_language::filename_extensions.
5148 (ada_language_data): Remove la_filename_extensions initializer.
5149 (ada_language::filename_extensions): New member function.
5150 * c-lang.c (c_extensions): Delete, moved into
5151 c_language::filename_extensions.
5152 (c_language_data): Remove la_filename_extensions initializer.
5153 (c_language::filename_extensions): New member function.
5154 (cplus_extensions): Delete, moved into
5155 cplus_language::filename_extensions.
5156 (cplus_language_data): Remove la_filename_extensions initializer.
5157 (cplus_language::filename_extensions): New member function.
5158 (asm_extensions): Delete, moved into
5159 asm_language::filename_extensions.
5160 (asm_language_data): Remove la_filename_extensions initializer.
5161 (asm_language::filename_extensions): New member function.
5162 (minimal_language_data): Remove la_filename_extensions
5163 initializer.
5164 * d-lang.c (d_extensions): Delete, moved into
5165 d_language::filename_extensions.
5166 (d_language_data): Remove la_filename_extensions initializer.
5167 (d_language::filename_extensions): New member function.
5168 * f-lang.c (f_extensions): Delete, moved into
5169 f_language::filename_extensions.
5170 (f_language_data): Remove la_filename_extensions initializer.
5171 (f_language::filename_extensions): New member function.
5172 * go-lang.c (go_language_data): Remove la_filename_extensions
5173 initializer.
5174 * language.c (add_set_language_command): Update now that
5175 filename_extensions returns a vector.
5176 (unknown_language_data): Remove la_filename_extensions
5177 initializer.
5178 (auto_language_data): Likewise.
5179 * language.h (language_data): Remove la_filename_extensions field.
5180 (language_defn::filename_extensions): New member function.
5181 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5182 initializer.
5183 * objc-lang.c (objc_extensions): Delete, moved into
5184 objc_language::filename_extensions.
5185 (objc_language_data): Remove la_filename_extensions initializer.
5186 (objc_language::filename_extensions): New member function.
5187 * opencl-lang.c (opencl_language_data): Remove
5188 la_filename_extensions initializer.
5189 * p-lang.c (pascal_extensions): Delete, moved into
5190 pascal_language::filename_extensions.
5191 (pascal_language_data): Remove la_filename_extensions initializer.
5192 (pascal_language::filename_extensions): New member function.
5193 * rust-lang.c (rust_extensions): Delete, moved into
5194 rust_language::filename_extensions.
5195 (rust_language_data): Remove la_filename_extensions initializer.
5196 (rust_language::filename_extensions): New member function.
5197 * symfile.c (add_filename_language): Add new assert.
5198
6f7664a9
AB
51992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5200
5201 * ada-lang.c (ada_language_data): Remove la_name and
5202 la_natural_name initializers.
5203 (ada_language::name): New member function.
5204 (ada_language::natural_name): New member function.
5205 * c-lang.c (c_language_data): Remove la_name and
5206 la_natural_name initializers.
5207 (c_language::name): New member function.
5208 (c_language::natural_name): New member function.
5209 (cplus_language_data): Remove la_name and
5210 la_natural_name initializers.
5211 (cplus_language::name): New member function.
5212 (cplus_language::natural_name): New member function.
5213 (asm_language_data): Remove la_name and
5214 la_natural_name initializers.
5215 (asm_language::name): New member function.
5216 (asm_language::natural_name): New member function.
5217 (minimal_language_data): Remove la_name and
5218 la_natural_name initializers.
5219 (minimal_language::name): New member function.
5220 (minimal_language::natural_name): New member function.
5221 * compile/compile.c (compile_to_object): Update call to
5222 lanugage_defn::name.
5223 * d-lang.c (d_language_data): Remove la_name and
5224 la_natural_name initializers.
5225 (d_language::name): New member function.
5226 (d_language::natural_name): New member function.
5227 * expprint.c (print_subexp_standard): Update call to
5228 language_defn::name.
5229 (dump_raw_expression): Likewise
5230 (dump_prefix_expression): Likewise.
5231 * f-lang.c (f_language_data): Remove la_name and
5232 la_natural_name initializers.
5233 (f_language::name): New member function.
5234 (f_language::natural_name): New member function.
5235 * go-lang.c (go_language_data): Remove la_name and
5236 la_natural_name initializers.
5237 (go_language::name): New member function.
5238 (go_language::natural_name): New member function.
5239 * language.c (show_language_command): Update call to
5240 language_defn::name.
5241 (set_language_command): Likewise.
5242 (language_enum): Likewise.
5243 (language_str): Likewise.
5244 (add_set_language_command): Likewise, use
5245 language_defn::natural_name in the doc string.
5246 (unknown_language_data): Remove la_name and
5247 la_natural_name initializers.
5248 (unknown_language::name): New member function.
5249 (unknown_language::natural_name): New member function.
5250 (auto_language_data): Remove la_name and
5251 la_natural_name initializers.
5252 (auto_language::name): New member function.
5253 (auto_language::natural_name): New member function.
5254 (language_lookup_primitive_type_as_symbol): Update call to
5255 language_defn::name.
5256 * language.h (language_data): Remove la_name and la_natural_name
5257 member variables.
5258 (language_defn::name): New member function.
5259 (language_defn::natural_name): New member function.
5260 * m2-lang.c (m2_language_data): Remove la_name and
5261 la_natural_name initializers.
5262 (m2_language::name): New member function.
5263 (m2_language::natural_name): New member function.
5264 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5265 language_defn::natural_name.
5266 * objc-lang.c (objc_language_data): Remove la_name and
5267 la_natural_name initializers.
5268 (objc_language::name): New member function.
5269 (objc_language::natural_name): New member function.
5270 * opencl-lang.c (opencl_language_data): Remove la_name and
5271 la_natural_name initializers.
5272 (opencl_language::name): New member function.
5273 (opencl_language::natural_name): New member function.
5274 * p-lang.c (pascal_language_data): Remove la_name and
5275 la_natural_name initializers.
5276 (pascal_language::name): New member function.
5277 (pascal_language::natural_name): New member function.
5278 * rust-lang.c (rust_language_data): Remove la_name and
5279 la_natural_name initializers.
5280 (rust_language::name): New member function.
5281 (rust_language::natural_name): New member function.
5282 * symtab.c (lookup_language_this): Update call to
5283 language_defn::name.
5284
5bae7c4e
AB
52852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 * ada-lang.c (ada_language_data): Remove la_name_of_this
5288 initializer.
5289 * ax-gdb.c (gen_expr): Update call to name_of_this.
5290 * c-exp.y (classify_name): Likewise.
5291 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5292 (cplus_language_data): Likewise.
5293 (cplus_language::name_of_this): New member function.
5294 (asm_language_data): Remove la_name_of_this initializer.
5295 (minimal_language_data): Likewise.
5296 * d-lang.c (d_language_data): Likewise.
5297 (d_language::name_of_this): New member function.
5298 * expprint.c (print_subexp_standard): Update call to name_of_this.
5299 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5300 * go-lang.c (go_language_data): Likewise.
5301 * language.c (unknown_language_data): Likewise.
5302 (unknown_language::name_of_this): New member function.
5303 (auto_language_data): Remove la_name_of_this initializer.
5304 (auto_language::name_of_this): New member function.
5305 * language.h (language_data): Delete la_name_of_this member
5306 variable.
5307 (language_defn::name_of_this): New member function.
5308 * m2-lang.c (m2_language_data): Remove la_name_of_this
5309 initializer.
5310 * objc-lang.c (objc_language_data): Likewise.
5311 (objc_language::name_of_this): New member function.
5312 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5313 initializer.
5314 * p-lang.c (pascal_language_data): Likewise.
5315 (pascal_language::name_of_this): New member function.
5316 * rust-lang.c (rust_language_data): Remove la_name_of_this
5317 initializer.
5318 * symtab.c (lookup_language_this): Update call to name_of_this.
5319 (lookup_symbol_aux): Likewise.
5320 * valops.c (value_of_this): Likewise.
5321
22e3f3ed
AB
53222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5323
5324 * ada-lang.c (ada_language_data): Remove
5325 la_struct_too_deep_ellipsis initializer.
5326 (ada_language::struct_too_deep_ellipsis): New member function.
5327 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5328 initializer.
5329 (cplus_language_data): Likewise.
5330 (asm_language_data): Likewise.
5331 (minimal_language_data): Likewise.
5332 * cp-valprint.c (cp_print_value): Update call to
5333 struct_too_deep_ellipsis.
5334 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5335 initializer.
5336 * f-lang.c (f_language_data): Likewise.
5337 (f_language::struct_too_deep_ellipsis): New member function.
5338 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5339 initializer.
5340 * language.c (unknown_language_data): Likewise.
5341 (auto_language_data): Likewise.
5342 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5343 member variable.
5344 (language_defn::struct_too_deep_ellipsis): New member function.
5345 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5346 initializer.Q
5347 * objc-lang.c (objc_language_data): Likewise.
5348 * opencl-lang.c (opencl_language_data): Likewise.
5349 * p-lang.c (pascal_language_data): Likewise.
5350 * rust-lang.c (rust_language_data): Likewise.
5351 * valprint.c (val_print_check_max_depth): Update call to
5352 struct_too_deep_ellipsis.
5353
ed29e1c7
FW
53542020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5355
5356 * MAINTAINERS (Write After Approval): Add myself.
5357
12d8f940
TT
53582020-09-15 Tom Tromey <tom@tromey.com>
5359
5360 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5361 Remove.
5362
6b5a7bc7
TT
53632020-09-15 Tom Tromey <tom@tromey.com>
5364
5365 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5366 and TYPE_CODE_METHODPTR cases.
5367 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5368 (c_value_print_inner): Update.
5369 * valprint.c (generic_value_print_memberptr): New function, from
5370 c_value_print_memberptr.
5371 (generic_value_print): Use it. Call cplus_print_method_ptr.
5372
47f0e2ff
TT
53732020-09-15 Tom Tromey <tromey@adacore.com>
5374
5375 * python/python-internal.h (PyInt_FromLong): Remove define.
5376 * python/py-value.c (convert_value_from_python): Use
5377 gdb_py_object_from_longest.
5378 * python/py-type.c (typy_get_code): Use
5379 gdb_py_object_from_longest.
5380 * python/py-symtab.c (salpy_get_line): Use
5381 gdb_py_object_from_longest.
5382 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5383 gdb_py_object_from_longest.
5384 * python/py-record.c (recpy_gap_reason_code): Use
5385 gdb_py_object_from_longest.
5386 * python/py-record-btrace.c (recpy_bt_insn_size)
5387 (recpy_bt_func_level, btpy_list_count): Use
5388 gdb_py_object_from_longest.
5389 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5390 gdb_py_object_from_longest. Fix error handling.
5391 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5392 gdb_py_object_from_longest.
5393 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5394 gdb_py_object_from_longest.
5395 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5396 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5397 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5398
512116ce
TT
53992020-09-15 Tom Tromey <tromey@adacore.com>
5400
5401 * python/python.c (gdbpy_parameter_value): Use
5402 gdb_py_object_from_ulongest.
5403
4ab1029c
TT
54042020-09-15 Tom Tromey <tromey@adacore.com>
5405
5406 * python/py-infevents.c (create_register_changed_event_object):
5407 Use gdb_py_object_from_longest.
5408 * python/py-exitedevent.c (create_exited_event_object): Use
5409 gdb_py_object_from_longest.
5410
062534d4
TT
54112020-09-15 Tom Tromey <tromey@adacore.com>
5412
5413 * python/python.c (gdbpy_parameter_value): Use
5414 gdb_py_object_from_longest.
5415 * python/py-type.c (convert_field, typy_range): Use
5416 gdb_py_object_from_longest.
5417 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5418 gdb_py_object_from_longest.
5419 * python/py-lazy-string.c (stpy_get_length): Use
5420 gdb_py_object_from_longest.
5421 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5422 gdb_py_object_from_longest.
5423 * python/py-infevents.c (create_memory_changed_event_object): Use
5424 gdb_py_object_from_longest.
5425 * python/py-inferior.c (infpy_get_num): Use
5426 gdb_py_object_from_longest.
5427 (infpy_get_pid): Likewise.
5428
d1cab987
TT
54292020-09-15 Tom Tromey <tromey@adacore.com>
5430
5431 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5432 defines.
5433 * python/py-value.c (valpy_long): Use
5434 gdb_py_object_from_ulongest.
5435 * python/py-symtab.c (salpy_get_pc): Use
5436 gdb_py_object_from_ulongest.
5437 (salpy_get_last): Likewise.
5438 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5439 gdb_py_object_from_ulongest.
5440 * python/py-lazy-string.c (stpy_get_address): Use
5441 gdb_py_object_from_ulongest.
5442 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5443 * python/py-arch.c (archpy_disassemble): Use
5444 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5445 error handling.
5446
4bde49dc
TT
54472020-09-15 Tom Tromey <tromey@adacore.com>
5448
5449 * python/python-internal.h (gdb_py_long_from_longest): Remove
5450 defines.
5451 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5452 * python/py-type.c (convert_field, typy_get_sizeof): Use
5453 gdb_py_object_from_longest.
5454 * python/py-record-btrace.c (btpy_list_index): Use
5455 gdb_py_object_from_longest.
5456
37431074
TT
54572020-09-15 Tom Tromey <tromey@adacore.com>
5458
5459 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5460 * python/py-record.c (recpy_element_number): Use
5461 gdb_py_object_from_longest.
5462 (recpy_gap_number): Likewise.
5463
cbe25684
TT
54642020-09-15 Tom Tromey <tromey@adacore.com>
5465
5466 * top.c (ui::ui): Update.
5467 (highest_ui_num): Remove.
5468 * top.h (struct ui) <num>: Remove.
5469
db92ac45
TT
54702020-09-15 Tom Tromey <tromey@adacore.com>
5471
5472 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5473 * ui-style.c (ansi_regex_text): Now array.
5474 * rust-exp.y (number_regex_text): Now array.
5475 * linespec.c (linespec_quote_characters): Now array.
5476 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5477 Now arrays.
5478
d2b31b67
SM
54792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5480
5481 * debuginfod-support.c (debuginfod_client_deleter): New.
5482 (debuginfod_client_up): New.
5483 (debuginfod_init): Return debuginfod_client_up.
5484 (debuginfod_source_query): Adjust.
5485 (debuginfod_debuginfo_query): Adjust.
5486
3246bd8e
SM
54872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 * debuginfod-support.c (debuginfod_source_query): Use
5490 make_unique_xstrdup.
5491
10242f36
SM
54922020-09-14 Simon Marchi <simon.marchi@efficios.com>
5493
5494 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5495 with `type::instance_flags`.
5496
e1044e6a
MM
54972020-09-14 Michael Mullin <masmullin@gmail.com>
5498
5499 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5500 Remove baton parameter.
5501
04902b09
PA
55022020-09-14 Pedro Alves <pedro@palves.net>
5503
5504 * Makefile.in (SELFTESTS_SRCS): Add
5505 unittests/enum-flags-selftests.c.
5506 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5507 btrace_function_flags instead of enum btrace_function_flag.
5508 * compile/compile-c-types.c (convert_qualified): Use
5509 enum_flags::raw.
5510 * compile/compile-cplus-symbols.c (convert_one_symbol)
5511 (convert_symbol_bmsym):
5512 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5513 (compile_cplus_convert_struct_or_union_methods)
5514 (compile_cplus_instance::convert_qualified_base):
5515 * go-exp.y (parse_string_or_char): Add cast to int.
5516 * unittests/enum-flags-selftests.c: New file.
5517 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5518 type to btrace_thread_flags from btrace_thread_flag.
5519 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5520 local's type to btrace_thread_flags from btrace_thread_flag. Add
5521 cast in DEBUG call.
5522
69896a2c
PA
55232020-09-14 Pedro Alves <pedro@palves.net>
5524
5525 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5526 * gdbtypes.c (address_space_name_to_int): Rename to ...
5527 (address_space_name_to_type_instance_flags): ... this.
5528 (address_space_int_to_name): Rename to ...
5529 (address_space_type_instance_flags_to_name): ... this.
5530 * gdbtypes.h (address_space_name_to_int): Rename to ...
5531 (address_space_name_to_type_instance_flags): ... this.
5532 (address_space_int_to_name): Rename to ...
5533 (address_space_type_instance_flags_to_name): ... this.
5534 * type-stack.c (type_stack::insert): Adjust to rename.
5535 * type-stack.h (type_stack::insert): Likewise.
5536
314ad88d
PA
55372020-09-14 Pedro Alves <pedro@palves.net>
5538 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * avr-tdep.c (avr_address_class_type_flags): Return
5541 type_instance_flags.
5542 (avr_address_class_type_flags_to_name): Take a
5543 type_instance_flags.
5544 (avr_address_class_name_to_type_flags): Return bool and take a
5545 type_instance_flags.
5546 * d-lang.c (build_d_types): Use type::set_instance_flags.
5547 * ft32-tdep.c (ft32_address_class_type_flags): Return
5548 type_instance_flags.
5549 (ft32_address_class_type_flags_to_name): Take a
5550 type_instance_flags.
5551 (ft32_address_class_name_to_type_flags): Return bool and take a
5552 type_instance_flags.
5553 (ft32_gdbarch_init): Use type::set_instance_flags.
5554 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5555 * gdbarch.h, gdbarch.c: Regenerate.
5556 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5557 (address_class_name_to_type_flags): Use type_instance_flags and
5558 bool.
5559 * gdbtypes.c (address_space_name_to_int)
5560 (address_space_int_to_name, make_qualified_type): Use
5561 type_instance_flags.
5562 (make_qualified_type): Use type_instance_flags and
5563 type::set_instance_flags.
5564 (make_type_with_address_space, make_cv_type, make_vector_type)
5565 (check_typedef): Use type_instance_flags.
5566 (recursive_dump_type): Cast type_instance_flags to unsigned for
5567 printing.
5568 (copy_type_recursive): Use type::set_instance_flags.
5569 (gdbtypes_post_init): Use type::set_instance_flags.
5570 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5571 <m_instance_flags>: ... this.
5572 <instance_flags, set_instance_flags>: New methods.
5573 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5574 (SET_TYPE_INSTANCE_FLAGS): New.
5575 (address_space_name_to_int, address_space_int_to_name)
5576 (make_type_with_address_space): Pass flags using
5577 type_instance_flags instead of int.
5578 * stabsread.c (cleanup_undefined_types_noname): Use
5579 type::set_instance_flags.
5580 * s390-tdep.c (s390_address_class_type_flags): Return
5581 type_instance_flags.
5582 (s390_address_class_type_flags_to_name): Take a
5583 type_instance_flags.
5584 (s390_address_class_name_to_type_flags): Return bool and take a
5585 type_instance_flags.
5586 * type-stack.c (type_stack::follow_types): Use
5587 type_instance_flags.
5588 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5589
27087b7f
TT
55902020-09-14 Tom Tromey <tromey@adacore.com>
5591
5592 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5593 * x86-tdep.c (x86_is_thunk_register_name)
5594 (x86_in_indirect_branch_thunk): Update.
5595 * sparc64-tdep.c (sparc64_fpu_register_names)
5596 (sparc64_cp0_register_names, sparc64_register_names)
5597 (sparc64_pseudo_register_names): Now const.
5598 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5599 cp0_registers_num>: Now const.
5600 * sparc-tdep.c (sparc_core_register_names)
5601 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5602 (sparc32_pseudo_register_names): Now const.
5603 (validate_tdesc_registers): Update.
5604 * rust-lang.c (rust_extensions): Now const.
5605 * p-lang.c (p_extensions): Now const.
5606 * objc-lang.c (objc_extensions): Now const.
5607 * nto-tdep.c (nto_thread_state_str): Now const.
5608 * moxie-tdep.c (moxie_register_names): Now const.
5609 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5610 Now const.
5611 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5612 (mips_linux_reg_names): Now const.
5613 (mips_gdbarch_init): Update.
5614 * microblaze-tdep.c (microblaze_register_names): Now const.
5615 * m68k-tdep.c (m68k_register_names): Now const.
5616 * m32r-tdep.c (m32r_register_names): Now const.
5617 * ia64-tdep.c (ia64_register_names): Now const.
5618 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5619 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5620 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5621 ymm_avx512_register_names, pkeys_register_names>: Now const.
5622 * i386-tdep.c (i386_register_names, i386_zmm_names)
5623 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5624 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5625 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5626 * f-lang.c (f_extensions): Now const.
5627 * d-lang.c (d_extensions): Now const.
5628 * csky-tdep.c (csky_register_names): Now const.
5629 * charset.c (default_charset_names, charset_enum): Now const.
5630 (_initialize_charset): Update.
5631 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5632 const.
5633 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5634 (bsd_uthread_solib_loaded): Update.
5635 (bsd_uthread_state): Now const.
5636 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5637 (amd64_ymm_avx512_names, amd64_ymmh_names)
5638 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5639 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5640 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5641 (amd64_dword_names): Now const.
5642 * agent.c (can_use_agent_enum): Now const.
5643 * ada-tasks.c (task_states, long_task_states): Now const.
5644 * ada-lang.c (known_runtime_file_name_patterns)
5645 (known_auxiliary_function_name_patterns, attribute_names)
5646 (standard_exc, ada_extensions): Now const.
5647
89806626
SM
56482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5649
5650 * bcache.h (struct bcache) <bcache>: Remove constructor.
5651 <m_hash_function, m_compare_function>: Remove.
5652 <~bcache>: Make virtual.
5653 <compare>: Remove static method, introduce virtual method.
5654 <default_hash>: Remove.
5655 <hash>: New virtual method.
5656 * bcache.c (bcache::expand_hash_table): Update.
5657 (bcache::insert): Update.
5658 (bcache::hash): New.
5659 (bcache::compare): Update comment and parameter names.
5660 * gdbtypes.c (types_deeply_equal): Update.
5661 * psymtab.h (struct psymbol_bcache): New struct.
5662 (class psymtab_storage) <psymtab_storage>: Make default.
5663 <psymbol_cache>: Change type to psymbol_bcache.
5664 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5665 (psymbol_hash): Change to...
5666 (psymbol_bcache::hash): ... this.
5667 (psymbol_compare): Change to...
5668 (psymbol_bcache::compare): ... this.
5669
677c92fe
SM
56702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5671
5672 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5673 checking for initial lwp.
5674
3eba3a01
TT
56752020-09-14 Tom Tromey <tromey@adacore.com>
5676
5677 * m68k-tdep.c (m68k_extract_return_value): Use
5678 pointer_result_regnum.
5679 (m68k_store_return_value): Likewise.
5680 (m68k_reg_struct_return_p): Handle vectors and arrays.
5681 (m68k_return_value): Handle arrays.
5682 (m68k_svr4_return_value): Fix single-element aggregate handling.
5683 Handle long double. Adjust for embedded ABI.
5684 (m68k_svr4_init_abi): Set pointer_result_regnum.
5685 (m68k_embedded_init_abi): New function.
5686 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5687 (m68k_osabi_sniffer): New function.
5688 (_initialize_m68k_tdep): Register osabi sniffer.
5689 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5690 member.
5691
33f4dd48
SM
56922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5693
5694 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5695 with gdb::unique_xmalloc_ptr<char>.
5696
8400a90d
SM
56972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5698
5699 * xml-support.h (xml_fetch_another): Change type to be a
5700 function_view.
5701 (xml_process_xincludes): Remove baton parameter.
5702 (xml_fetch_content_from_file): Change baton parameter to
5703 dirname.
5704 * xml-support.c (struct xinclude_parsing_data)
5705 <xinclude_parsing_data>: Remove baton parameter.
5706 <fetcher_baton>: Remove.
5707 (xinclude_start_include): Adjust.
5708 (xml_process_xincludes): Adjust.
5709 (xml_fetch_content_from_file): Replace baton parameter with
5710 dirname.
5711 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5712 (xml_init_syscalls_info): Use a lambda.
5713 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5714 (file_read_description_xml): Use a lambda.
5715 (fetch_available_features_from_target): Change baton parameter
5716 to target_ops.
5717 (target_read_description_xml): Use a lambda.
5718 (target_fetch_description_xml): Use a lambda.
5719 (string_read_description_xml): Update.
5720
04f5bab2
SM
57212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5722
5723 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5724 uses with type::endianity_is_not_default.
5725
db558e34
SM
57262020-09-14 Simon Marchi <simon.marchi@efficios.com>
5727
5728 * gdbtypes.h (struct type) <endianity_is_not_default,
5729 set_endianity_is_not_default>: New methods.
5730 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5731 type::endianity_is_not_default, change all write call sites to
5732 use type::set_endianity_is_not_default.
5733
22c4c60c
SM
57342020-09-14 Simon Marchi <simon.marchi@efficios.com>
5735
5736 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5737 uses with type::is_fixed_instance.
5738
9cdd0d12
SM
57392020-09-14 Simon Marchi <simon.marchi@efficios.com>
5740
5741 * gdbtypes.h (struct type) <is_fixed_instance,
5742 set_is_fixed_instance>: New methods.
5743 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5744 write call sites to use type::set_is_fixed_instance.
5745
0becda7a
SM
57462020-09-14 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5749 uses with type::is_gnu_ifunc.
5750
03cc7249
SM
57512020-09-14 Simon Marchi <simon.marchi@efficios.com>
5752
5753 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5754 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5755 use type::set_is_gnu_ifunc.
5756
3f46044c
SM
57572020-09-14 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5760 uses with type::stub_is_supported.
5761
9baccff6
SM
57622020-09-14 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5765 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5766 use type::set_stub_is_supported.
5767
bd63c870
SM
57682020-09-14 Simon Marchi <simon.marchi@efficios.com>
5769
5770 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5771 uses with type::is_vector.
5772
2062087b
SM
57732020-09-14 Simon Marchi <simon.marchi@efficios.com>
5774
5775 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5776 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5777 use type::set_is_vector.
5778
a409645d
SM
57792020-09-14 Simon Marchi <simon.marchi@efficios.com>
5780
5781 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5782 uses with type::has_varargs.
5783
1d6286ed
SM
57842020-09-14 Simon Marchi <simon.marchi@efficios.com>
5785
5786 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5787 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5788 use type::set_has_varargs.
5789
7f9f399b
SM
57902020-09-14 Simon Marchi <simon.marchi@efficios.com>
5791
5792 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5793 uses with type::is_prototyped.
5794
27e69b7a
SM
57952020-09-14 Simon Marchi <simon.marchi@efficios.com>
5796
5797 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5798 New methods.
5799 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5800 call sites to use type::set_is_prototyped.
5801
d2183968
SM
58022020-09-14 Simon Marchi <simon.marchi@efficios.com>
5803
5804 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5805 uses with type::target_is_stub.
5806
8f53807e
SM
58072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5808
5809 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5810 New methods.
5811 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5812 sites to use type::set_target_is_stub.
5813
e46d3488
SM
58142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * gdbtypes.h (TYPE_STUB): Remove, replace all
5817 uses with type::is_stub.
5818
b4b73759
SM
58192020-09-14 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5822 (TYPE_STUB): Use type::is_stub, change all write call sites to
5823 use type::set_is_stub.
5824
20ce4123
SM
58252020-09-14 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5828 type::has_no_signedness.
5829
15152a54
SM
58302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * gdbtypes.h (struct type) <has_no_signedness,
5833 set_has_no_signedness>: New methods.
5834 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5835 call sites to use type::set_has_no_signedness.
5836
c6d940a9
SM
58372020-09-14 Simon Marchi <simon.marchi@efficios.com>
5838
5839 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5840 type::is_unsigned.
5841
653223d3
SM
58422020-09-14 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5845 methods.
5846 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5847 sites to use type::set_is_unsigned.
5848
55ea94da 58492020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5850 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5851
e851246a
SM
5852 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5853 pointer and stack frame offset when unwinding.
55ea94da 5854
6791b117
PA
58552020-09-13 Pedro Alves <pedro@palves.net>
5856
5857 * NEWS: Document "-break-insert --qualified".
5858 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5859
77f2120b
PA
58602020-09-13 Pedro Alves <pedro@palves.net>
5861
5862 * linespec.c (classify_mtype, compare_msyms): Delete.
5863 (search_minsyms_for_name): Remove classification logic. Instead
5864 filter out trampoline symbols if we also found an external
5865 function of the same name.
5866
ed6a896c
JB
58672020-09-13 Joel Brobecker <brobecker@adacore.com>
5868
5869 * NEWS: Create a new section for the next release branch.
5870 Rename the section of the current branch, now that it has
5871 been cut.
5872
32aea73e
JB
58732020-09-13 Joel Brobecker <brobecker@adacore.com>
5874
5875 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5876 * version.in: Bump version to 11.0.50.DATE-git.
5877
8087c3fa
JB
58782020-09-12 Joel Brobecker <brobecker@adacore.com>
5879
5880 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5881
2a67f09d
FW
58822020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5883 Felix Willgerodt <Felix.Willgerodt@intel.com>
5884
5885 * gdbarch.sh: Added bfloat16 type.
5886 * gdbarch.c: Regenerated.
5887 * gdbarch.h: Regenerated.
5888 * gdbtypes.c (floatformats_bfloat16): New struct.
5889 (gdbtypes_post_init): Add builtin_bfloat16.
5890 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5891 (floatformats_bfloat16): New struct.
5892 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5893 (i386_ymm_type): Add field "v16_bfloat16"
5894 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5895 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5896 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5897 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5898 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5899 * features/i386/64bit-avx512.c: Regenerated.
5900 * features/i386/64bit-sse.xml: Add bfloat16 type.
5901 * features/i386/64bit-sse.c: Regenerated.
5902
1347d111
FW
59032020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5904
5905 * i386-tdep.c (i386_zmm_type): Fix field names.
5906 (i386_ymm_type): Fix field names.
5907
7a4e8e7d
TBA
59082020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5909
5910 * breakpoint.c: Fix typo in the help message of the
5911 "set breakpoint condition-evaluation" command.
5912
cf4ac4be
KR
59132020-09-10 Kamil Rytarowski <n54@gmx.com>
5914
5915 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5916 * (nbsd_nat_target::pid_to_exec_file)
5917 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5918 (nbsd_nat_target::post_startup_inferior)
5919 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5920 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5921 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5922 * (nbsd_thread_lister): Remove.
5923
f404573e
KR
59242020-09-10 Kamil Rytarowski <n54@gmx.com>
5925
5926 * fork-inferior.c (startup_inferior): Avoid double free.
5927
1ccb2c17
KR
59282020-09-10 Kamil Rytarowski <n54@gmx.com>
5929
5930 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5931 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5932
feedfcc7
KR
59332020-09-10 Kamil Rytarowski <n54@gmx.com>
5934
5935 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5936 * netbsd-nat.c: Include <sys/ptrace.h>.
5937 * (netbsd_nat::enable_proc_events): Add.
5938
c489f8c6
KR
59392020-09-10 Kamil Rytarowski <n54@gmx.com>
5940
5941 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5942 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5943 (netbsd_nat::for_each_thread): Add.
5944 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5945 "gdbsupport/common-debug.h".
5946 * (netbsd_nat::netbsd_thread_lister)
5947 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5948 (netbsd_nat::for_each_thread): Add.
5949
330662f6
KR
59502020-09-10 Kamil Rytarowski <n54@gmx.com>
5951
5952 * netbsd-nat.h: Include <unistd.h>.
5953 * (netbsd_nat::pid_to_exec_file): Add.
5954 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5955 * (netbsd_nat::pid_to_exec_file) Add.
5956
70b67307
KR
59572020-09-10 Kamil Rytarowski <n54@gmx.com>
5958
5959 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5960
99cf6da6
KR
59612020-09-10 Kamil Rytarowski <n54@gmx.com>
5962
5963 * netbsd-nat.h: New file.
5964 * netbsd-nat.c: Likewise.
5965
1b788fb6
TT
59662020-09-09 Tom Tromey <tromey@adacore.com>
5967
5968 * ada-lang.c (remove_extra_symbols): Do not increment when
5969 removing an element
5970
03b0a45f
TT
59712020-09-08 Tom Tromey <tromey@adacore.com>
5972
5973 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5974
3cae4447
TT
59752020-09-08 Tom Tromey <tromey@adacore.com>
5976
5977 PR win32/25302:
5978 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5979 (gdb_bfd_init_data): New function.
5980 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5981
7f08fd51
TBA
59822020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5983
5984 * infrun.c (fetch_inferior_event): Use
5985 `switch_to_target_no_thread` to switch the target.
5986
3e6ff933
TT
59872020-09-06 Tom Tromey <tom@tromey.com>
5988
5989 * symfile.h (dwarf2_free_objfile): Don't declare.
5990
e56798df
AKS
59912020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5992
5993 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5994 to match 16 byte real/complex type generated by Flang compiler.
5995
8f5c6526
TV
59962020-09-03 Tom de Vries <tdevries@suse.de>
5997
5998 PR breakpoint/26546
5999 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6000 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6001
c5065df0
SM
60022020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6003
6004 * maint.c (index_digits): New function.
6005 (struct maint_print_section_data): Remove.
6006 (print_bfd_section_info): Remove print_data parameter, add arg
6007 and index_digits.
6008 (print_objfile_section_info): Likewise.
6009 (print_bfd_section_info_maybe_relocated): Likewise (plus
6010 objfile).
6011 (maintenance_info_sections): Adjust calls.
6012
02c6f3f1
TT
60132020-09-02 Tom Tromey <tromey@adacore.com>
6014
6015 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6016 for null pointers.
6017 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6018
ef5e5b0b
SM
60192020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6020
6021 * bcache.h (struct bcache) <insert>: Change type of `added` to
6022 pointer to bool.
6023 * bcache.c (bcache::insert): Likewise.
6024 * gdbtypes.c (check_types_worklist): Adjust.
6025 * psymtab.c (add_psymbol_to_bcache): Adjust.
6026
973695d6
KB
60272020-08-31 Kevin Buettner <kevinb@redhat.com>
6028
6029 * corelow.c (unordered_set): Include.
6030 (class core_target): Add field 'm_core_unavailable_mappings'.
6031 (core_target::build_file_mappings): Print only one warning
6032 per inaccessible file. Add unavailable/broken mappings
6033 to m_core_unavailable_mappings.
6034 (core_target::xfer_partial): Call...
6035 (core_target::xfer_memory_via_mappings): New method.
6036
264fc0e2
SM
60372020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6038
6039 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6040 type to bool.
6041
2de01bdb
SM
60422020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6043
6044 * dwarf2/read.c (struct field_info): Fix indentation.
6045
f3bd50f1
SM
60462020-08-31 Simon Marchi <simon.marchi@efficios.com>
6047
6048 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6049 ordering in comment.
6050 * frame.c (frame_id_eq): Fix indentation.
6051
22b9b4b0
SL
60522020-08-31 Scott Linder <scott@scottlinder.com>
6053 Simon Marchi <simon.marchi@efficios.com>
6054
6055 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6056 inline frame ids in outer frame.
6057
84154d16
SM
60582020-08-31 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6061 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6062 (outer_frame_id): Use FID_STACK_OUTER instead of
6063 FID_STACK_INVALID.
6064 (frame_id_p): Don't check for outer_frame_id.
6065
8efaf6b3
SM
60662020-08-31 Simon Marchi <simon.marchi@efficios.com>
6067
6068 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6069 regnum/frame in value. Call allocate_value_lazy.
6070 * frame.c (frame_unwind_register_value): Use
6071 val_print_not_saved.
6072
fe1fe7ea
SM
60732020-08-31 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6076
f7c7700d
PA
60772020-08-29 Pedro Alves <pedro@palves.net>
6078
6079 * progspace.c (print_program_space): Use all_inferiors. Switch to
6080 the inferior before calling target_pid_to_str.
6081
e0814aae
TT
60822020-08-28 Tom Tromey <tom@tromey.com>
6083
6084 * xcoffread.c (xcoff_end_psymtab): Update comment.
6085 * dbxread.c (dbx_end_psymtab): Update comment.
6086
626d2320
TV
60872020-08-28 Tom de Vries <tdevries@suse.de>
6088
6089 PR breakpoint/26544
6090 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6091 event_location.
6092 (create_breakpoint): Same.
6093 (base_breakpoint_decode_location): Same.
6094 (bkpt_create_sals_from_location): Same.
6095 (bkpt_decode_location): Same.
6096 (bkpt_probe_create_sals_from_location): Same.
6097 (bkpt_probe_decode_location): Same.
6098 (tracepoint_create_sals_from_location): Same.
6099 (tracepoint_decode_location): Same.
6100 (tracepoint_probe_decode_location): Same.
6101 (strace_marker_create_sals_from_location): Same.
6102 (strace_marker_decode_location): Same.
6103 (create_sals_from_location_default): Same.
6104 (decode_location_default): Same.
6105 * breakpoint.h (struct breakpoint_ops): Same.
6106 (create_breakpoint): Same.
6107 * linespec.h (decode_line_full): Same.
6108 * linespec.c (decode_line_full): Same. Throw error if
6109 result.size () == 0.
6110
df631783
PA
61112020-08-27 Pedro Alves <pedro@palves.net>
6112
6113 PR gdb/26524
6114 * breakpoint.c (until_break_fsm) <location_breakpoint,
6115 caller_breakpoint>: Delete fields.
6116 <breakpoints>: New field.
6117 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6118 two individual breakpoints.
6119 (until_break_fsm::should_stop): Loop over breakpoints in the
6120 breakpoint vector.
6121 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6122 vector.
6123 (until_break_command): Handle location expanding into multiple
6124 sals.
6125
b2b38aa4
PA
61262020-08-27 Pedro Alves <pedro@palves.net>
6127
6128 PR gdb/26523
6129 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6130 bp_until breakpoints user-specified locations. Update intro
6131 comment.
6132
b886559f
SM
61332020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6134
6135 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6136 gdb_bfd_sections): New.
6137 * maint.c (print_bfd_section_info): Change param type to
6138 maint_print_section_data.
6139 (print_objfile_section_info): Likewise.
6140 (print_bfd_section_info_maybe_relocated): Likewise.
6141 (maintenance_info_sections): Use gdb_bfd_sections.
6142
4c6e63bf
SV
61432020-08-25 Shahab Vahedi <shahab@synopsys.com>
6144
6145 * MAINTAINERS: Add ARC target and maintainer.
6146
8d7f0635
AK
61472020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6148
6149 * configure.tgt: ARC support for GNU/Linux.
6150 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6151 * arc-linux-tdep.c: New file.
6152 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6153 * arc-tdep.c (arc_write_pc): Use it.
6154
fdd8731b
SV
61552020-08-25 Shahab Vahedi <shahab@synopsys.com>
6156
6157 * arc-tdep.c (arc_check_for_hardware_loop): New.
6158 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6159
22459524
SV
61602020-08-25 Shahab Vahedi <shahab@synopsys.com>
6161
6162 * arc-tdep.h: Include "gdbarch.h".
6163
995d3a19
SV
61642020-08-25 Shahab Vahedi <shahab@synopsys.com>
6165
6166 * arch/arc.h
6167 (arc_gdbarch_features): New class to stir the selection of target XML.
6168 (arc_create_target_description): Use FEATURES to choose XML target.
6169 (arc_lookup_target_description): Use arc_create_target_description
6170 to create _new_ target descriptions or return the already created
6171 ones if the FEATURES is the same.
6172 * arch/arc.c: Implementation of prototypes described above.
6173 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6174 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6175 * arc-tdep.c (*_feature_name): Make feature names consistent.
6176 (arc_register_feature): A new struct to hold information about
6177 registers of a particular target/feature.
6178 (arc_check_tdesc_feature): Check if XML provides registers in
6179 compliance with ARC_REGISTER_FEATURE structs.
6180 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6181 (determine_*_reg_feature_set): Which feature name to look for.
6182 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6183 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6184 to expected ISA enums to be used in arc_gdbarch_features structs.
6185 * features/Makefile (FEATURE_XMLFILES): Add new files.
6186 * gdb/features/arc/v1-aux.c: New file.
6187 * gdb/features/arc/v1-aux.xml: Likewise.
6188 * gdb/features/arc/v1-core.c: Likewise.
6189 * gdb/features/arc/v1-core.xml: Likewise.
6190 * gdb/features/arc/v2-aux.c: Likewise.
6191 * gdb/features/arc/v2-aux.xml: Likewise.
6192 * gdb/features/arc/v2-core.c: Likewise.
6193 * gdb/features/arc/v2-core.xml: Likewise.
6194 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6195
3945d2d7
GM
61962020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6197 Andrew Burgess <andrew.burgess@embecosm.com>
6198
6199 PR m2/26372
fc5d6901 6200 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6201 an assert. Remove single element array indexing pattern as the
6202 MULTI_SUBSCRIPT support will handle this case too.
6203
2677f2d3
SM
62042020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6205
6206 * value.h (valprint_check_validity): Move declaration from
6207 here...
6208 * valprint.h (valprint_check_validity): ... to here.
6209
c426fddb
SM
62102020-08-24 Simon Marchi <simon.marchi@efficios.com>
6211
6212 * debug.h: New file.
6213 * debug.c (debug_prefixed_vprintf): New function.
6214 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6215 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6216
1eb8556f
SM
62172020-08-24 Simon Marchi <simon.marchi@efficios.com>
6218
6219 * infrun.h (infrun_debug_printf_1): New function declaration.
6220 (infrun_debug_printf): New macro.
6221 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6222 throughout.
6223 (infrun_debug_printf): New function.
6224 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6225 (handle_jit_event): Likewise.
6226
b8fff44e
MW
62272020-08-21 Mark Wielaard <mark@klomp.org>
6228
6229 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6230
d19c3068
SM
62312020-08-22 Simon Marchi <simon.marchi@efficios.com>
6232
6233 * frame.c (enum class frame_id_status): New.
6234 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6235 (fprintf_frame): Update.
6236 (compute_frame_id): Set frame id status to "computing" on entry.
6237 Set it back to "not_computed" on failure and to "computed" on
6238 success.
6239 (get_frame_id): Assert the frame id is not being computed.
6240 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6241 (create_new_frame): Likewise.
6242 (frame_cleanup_after_sniffer): Update assert.
6243
b70e516e
SM
62442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6245
6246 * regcache.c (pid_ptid_regcache_map): New type.
6247 (target_ptid_regcache_map): Remove.
6248 (target_pid_ptid_regcache_map): New type.
6249 (regcaches): Change type to target_pid_ptid_regcache_map.
6250 (get_thread_arch_aspace_regcache): Update.
6251 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6252 case.
6253 (regcaches_size): Update.
6254 (regcache_count): Update.
6255 (registers_changed_ptid_target_pid_test): New.
6256 (_initialize_regcache): Register new test.
6257
cdd9148a
SM
62582020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * regcache.c (regcache_count): New.
6261 (struct regcache_test_data): New.
6262 (regcache_test_data_up): New.
6263 (populate_regcaches_for_test): New.
6264 (regcaches_test): Remove.
6265 (get_thread_arch_aspace_regcache_test): New.
6266 (registers_changed_ptid_all_test): New.
6267 (registers_changed_ptid_target_test): New.
6268 (registers_changed_ptid_target_ptid_test): New.
6269 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6270 (_initialize_regcache): Register new tests.
6271
dd125343
SM
62722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6275 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6276 gdbarch and aspace parameter. Use current inferior's aspace.
6277 Validate regcache's arch value.
6278 (regcaches_test): Update.
6279
3ee93972
SM
62802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * regcache.c (regcaches_test): Call registers_changed.
6283
33bf4c5c
TBA
62842020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6285
6286 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6287
c2fd7fae
AKS
62882020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6289
6290 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6291 to find the end of prologue for flang compiled binaries.
6292 * arm-tdep.c (arm_skip_prologue): Likewise.
6293 * i386-tdep.c (i386_skip_prologue): Likewise.
6294 * producer.c (producer_is_llvm): New function.
6295 (producer_parsing_tests): Added new tests for clang/flang.
6296 * producer.h (producer_is_llvm): New declaration.
6297
9327494e
SM
62982020-08-18 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * linux-nat.c (linux_nat_debug_printf): New function.
6301 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6302
d138725a
AM
63032020-08-18 Aaron Merey <amerey@redhat.com>
6304
6305 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6306 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6307 (CLIBS): Add DEBUGINFOD_LIBS.
6308
f9b11e6b
ST
63092020-08-17 Sergei Trofimovich <siarheit@google.com>
6310
6311 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6312 'gdbarch_num_regs'.
6313
3ae7ab99
TT
63142020-08-17 Tom Tromey <tromey@adacore.com>
6315
6316 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6317 ada_get_decoded_value returns NULL.
6318
b017825f
TT
63192020-08-17 Tom Tromey <tromey@adacore.com>
6320
6321 * python/py-inferior.c (infpy_search_memory): Use
6322 gdb_py_object_from_ulongest.
6323 * python/py-infevents.c (create_inferior_call_event_object)
6324 (create_memory_changed_event_object): Use
6325 gdb_py_object_from_ulongest.
6326 * python/py-linetable.c (ltpy_entry_get_pc): Use
6327 gdb_py_object_from_ulongest.
6328
7635cf79
SM
63292020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6330
6331 * loc.c (class symbol_needs_eval_context): Fix indentation.
6332
f54be24b
SM
63332020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6334
6335 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6336 bool.
6337
53d5a2a5
TV
63382020-08-17 Tom de Vries <tdevries@suse.de>
6339
6340 PR gdb/26393
6341 * gdbtypes.c (dump_dynamic_prop): New function.
6342 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6343
547ce8f0
TV
63442020-08-15 Tom de Vries <tdevries@suse.de>
6345
6346 PR backtrace/26390
6347 * stack.c (print_frame_args): Temporarily set the selected
6348 frame to FRAME while printing the frame's arguments.
6349
6ea815e7
PFC
63502020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6351
6352 PR breakpoints/26385
6353 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6354 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6355
6e562fa3
PFC
63562020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6357
6358 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6359 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6360 and >= to check return value instead of == -1 and != -1.
6361
d369b608
SM
63622020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6363
6364 * utils.h (class gdb_argv) <as_array_view>: New method.
6365 * utils.c (gdb_argv_as_array_view_test): New.
6366 (_initialize_utils): Register selftest.
6367 * maint.c (maintenance_selftest): Use the new method.
6368
b31488a3
KR
63692020-08-13 Kamil Rytarowski <n54@gmx.com>
6370
6371 * target.h (supports_dumpcore, dumpcore): New
6372 function declarations.
6373 * target.c (supports_dumpcore, dumpcore): New
6374 functions.
6375 * target-delegates.c: Rebuild.
6376 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6377 and target_dumpcore ().
6378
002a3166
AM
63792020-08-13 Aaron Merey <amerey@redhat.com>
6380
6381 * debuginfod-support.c: Replace global variables with user_data.
6382
ece5bc8a
SM
63832020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6384
6385 * maint.c (maintenance_selftest): Split args and pass array_view
6386 to run_tests.
6387
6d8a0a5e
LM
63882020-08-12 Luis Machado <luis.machado@linaro.org>
6389
6390 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6391 type's length.
6392 Use %s and pulongest to print the length.
6393
7cf663a9
PA
63942020-08-12 Pedro Alves <palves@redhat.com>
6395
6396 * NEWS: Move "Multi-target debugging support" item to the
6397 "Changes since GDB 9" section.
6398
27c7b875
PA
63992020-08-12 Pedro Alves <palves@redhat.com>
6400
6401 PR gdb/26336
6402 * progspace.c (program_space::remove_objfile): Invalidate the
6403 frame cache.
6404
1796a2a1
TV
64052020-08-11 Tom de Vries <tdevries@suse.de>
6406
6407 * MAINTAINERS: Mark ms1 as deleted.
6408
f8e3fe0d
LM
64092020-08-10 Luis Machado <luis.machado@linaro.org>
6410
6411 PR gdb/26310
6412
6413 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6414 act accordingly.
6415 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6416 movz/str/stur/stp skipping behavior.
6417
cc308722
LM
64182020-08-10 Luis Machado <luis.machado@linaro.org>
6419
6420 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6421 struct user_sve_header instead of struct sve_context.
6422
041d9819
SM
64232020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6424
6425 * read.h (dwarf2_fetch_die_loc_sect_off,
6426 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6427 `void *` parameter with function_view.
6428 * read.c (dwarf2_fetch_die_loc_sect_off,
6429 dwarf2_fetch_die_loc_cu_off): Likewise.
6430 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6431 (per_cu_dwarf_call): Adjust.
6432 (get_frame_address_in_block_wrapper): Remove.
6433 (indirect_synthetic_pointer): Adjust.
6434 (get_ax_pc): Remove.
6435 (dwarf2_compile_expr_to_ax): Adjust.
6436
38f8aa06
TV
64372020-08-08 Tom de Vries <tdevries@suse.de>
6438
6439 PR build/26344
6440 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6441 constructor.
6442 * regcache.c (get_thread_arch_aspace_regcache): Same.
6443
a52b3ae2
TT
64442020-08-07 Tom Tromey <tromey@adacore.com>
6445
6446 * ravenscar-thread.c
6447 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6448 New method.
6449 (ravenscar_thread_target::wait): Check
6450 runtime_initialized.
6451 (ravenscar_thread_target::prepare_to_store)
6452 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6453 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6454 (ravenscar_thread_target::stopped_by_watchpoint)
6455 (ravenscar_thread_target::stopped_data_address)
6456 (ravenscar_thread_target::core_of_thread): Use
6457 scoped_restore_current_thread and
6458 set_base_thread_from_ravenscar_task.
6459
0e29517d
TT
64602020-08-07 Tom Tromey <tromey@adacore.com>
6461
6462 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6463
592f9bd7
TT
64642020-08-07 Tom Tromey <tromey@adacore.com>
6465
6466 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6467 update_inferior_ptid before update_thread_list.
6468 (temporarily_change_regcache_ptid): New class.
6469 (ravenscar_thread_target::fetch_registers)
6470 (ravenscar_thread_target::store_registers)
6471 (ravenscar_thread_target::prepare_to_store): Use base thread when
6472 forwarding operation.
6473
39e2018a
TT
64742020-08-07 Tom Tromey <tromey@adacore.com>
6475
6476 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6477 "is_pid" case.
6478
2080266b
TT
64792020-08-07 Tom Tromey <tromey@adacore.com>
6480
6481 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6482 New methods.
6483 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6484 first.
6485 (ravenscar_thread_target::add_thread): Rename from
6486 ravenscar_add_thread.
6487 (ravenscar_thread_target::update_thread_list): Use a lambda.
6488 (ravenscar_thread_target::xfer_partial): New method.
6489
78c02f21
TT
64902020-08-07 Tom Tromey <tromey@adacore.com>
6491
6492 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6493 gdb::function_view.
6494 (iterate_over_live_ada_tasks): Change type of argument.
6495 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6496 of argument.
6497
d5d833af
TT
64982020-08-07 Tom Tromey <tromey@adacore.com>
6499
6500 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6501 Remove.
6502 (ravenscar_thread_target::extra_thread_info): Remove.
6503 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6504 defer to target beneath for non-Ravenscar threads.
6505
a8ac85bb
TT
65062020-08-07 Tom Tromey <tromey@adacore.com>
6507
6508 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6509 get_base_thread_from_ravenscar_task>: Now methods.
6510 <m_cpu_map>: New member.
6511 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6512 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6513 (ravenscar_thread_target::task_is_currently_active): Update.
6514 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6515 Now a method.
6516 (ravenscar_thread_target::add_active_thread): Put initial thread
6517 into the m_cpu_map.
6518
550ab58d
TT
65192020-08-07 Tom Tromey <tromey@adacore.com>
6520
6521 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6522 event_ptid.
6523
e9546579
TT
65242020-08-07 Tom Tromey <tromey@adacore.com>
6525
6526 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6527 runtime_initialized.
6528
3d4470e5
TT
65292020-08-07 Tom Tromey <tromey@adacore.com>
6530
6531 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6532 add_active_thread.
6533 (ravenscar_thread_target::add_active_thread): Now public.
6534 (ravenscar_inferior_created): Call add_active_thread after pushing
6535 the target.
6536
888bdb2b
SM
65372020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6538
6539 * regcache.c (ptid_regcache_map): New type.
6540 (target_ptid_regcache_map): New type.
6541 (regcaches): Change type to target_ptid_regcache_map.
6542 (get_thread_arch_aspace_regcache): Update to regcaches' new
6543 type.
6544 (regcache_thread_ptid_changed): Likewise.
6545 (registers_changed_ptid): Likewise.
6546 (regcaches_size): Likewise.
6547 (regcaches_test): Update.
6548 (regcache_thread_ptid_changed): Update.
6549 * regcache.h (regcache_up): New type.
6550 * gdbsupport/ptid.h (hash_ptid): New struct.
6551
b161a60d
SM
65522020-08-07 Simon Marchi <simon.marchi@efficios.com>
6553
6554 * observable.h (thread_ptid_changed): Add parameter
6555 `process_stratum_target *`.
6556 * infrun.c (infrun_thread_ptid_changed): Add parameter
6557 `process_stratum_target *` and use it.
6558 (selftests): New namespace.
6559 (infrun_thread_ptid_changed): New function.
6560 (_initialize_infrun): Register selftest.
6561 * regcache.c (regcache_thread_ptid_changed): Add parameter
6562 `process_stratum_target *` and use it.
6563 (regcache_thread_ptid_changed): New function.
6564 (_initialize_regcache): Register selftest.
6565 * thread.c (thread_change_ptid): Pass target to
6566 thread_ptid_changed observable.
6567
d2854d8d
CT
65682020-08-06 Caroline Tice <cmtice@google.com>
6569
fe4c3d43
SM
6570 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6571 (struct dwp_sections): Update field comments. Add loclists and
6572 rnglists fields.
6573 (struct virtual_v2_dwo_sections): Rename struct to
6574 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6575 size & offset fields for loclists and rnglists.
6576 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6577 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6578 skipping dummy type units.
6579 (create_dwp_hash_table): Update the large comment above the function to
6580 discuss Version 5 DWP files as well, with references. Update all the
6581 version checks in the function to check for version 5 as well. Add new
6582 section at the end to create dwp hash table for version 5.
6583 (create_dwp_v2_section): Rename function to
6584 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6585 Add V5 to error message text.
6586 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6587 into calls to create_dwp_v2_or_v5_section.
6588 (create_dwo_unit_in_dwp_v5): New function.
6589 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6590 check for version2; add else clause to handle version 5.
6591 (open_and_init_dwo_file): Add code to check dwarf version & only call
6592 create_debug_types_hash_table (with sections.types) if version is not 5;
6593 else call create_debug_type_hash_table, with sections.info.
6594 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6595 version 5.
6596 (dwarf2_locate_v5_dwp_sections): New function.
6597 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6598 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6599
159ed7d9
SM
66002020-08-06 Simon Marchi <simon.marchi@efficios.com>
6601
6602 * regcache.h (class regcache): Remove friend
6603 registers_changed_ptid.
6604 <regcache_thread_ptid_changed>: Remove.
6605 <regcaches>: Remove.
6606 * regcache.c (regcache::regcaches): Rename to...
6607 (regcaches): ... this. Make static.
6608 (get_thread_arch_aspace_regcache): Update.
6609 (regcache::regcache_thread_ptid_changed): Rename to...
6610 (regcache_thread_ptid_changed): ... this. Update.
6611 (class regcache_access): Remove.
6612 (regcaches_test): Update.
6613 (_initialize_regcache): Update.
6614 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6615 <forward_list>.
6616
174981ae
SM
66172020-08-06 Simon Marchi <simon.marchi@efficios.com>
6618
6619 * regcache.h (class regcache) <current_regcache>: Rename to...
6620 <regcaches>: ... this. Move doc here.
6621 * regcache.c (regcache::current_regcache) Rename to...
6622 (regcache::regcaches): ... this. Move doc to header.
6623 (get_thread_arch_aspace_regcache): Update.
6624 (regcache::regcache_thread_ptid_changed): Update.
6625 (registers_changed_ptid): Update.
6626 (class regcache_access) <current_regcache_size>: Rename to...
6627 <regcaches_size>: ... this.
6628 (current_regcache_test): Rename to...
6629 (regcaches_test): ... this.
6630 (_initialize_regcache): Update.
6631
ed908db6
VC
66322020-08-06 Victor Collod <vcollod@nvidia.com>
6633
6634 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6635
b5582ab7
KB
66362020-08-05 Kevin Buettner <kevinb@redhat.com>
6637
6638 * corelow.c (core_target::build_file_mappings): Don't output
6639 null pathname in warning.
6640
ea946b86
SM
66412020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6642
6643 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6644 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6645 gdb.dwarf2/dw2-single-line-discriminators.exp,
6646 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6647
57d02173
TT
66482020-08-05 Tom Tromey <tromey@adacore.com>
6649
6650 PR rust/26197:
6651 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6652 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6653 Fix off-by-one and type size errors in ordinary case.
6654
5555c86d
TV
66552020-08-05 Tom de Vries <tdevries@suse.de>
6656
6657 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6658 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6659
97916bfe
SM
66602020-08-04 Simon Marchi <simon.marchi@efficios.com>
6661
6662 * frame.h (frame_id_p): Return bool.
6663 (frame_id_artificial_p): Return bool.
6664 (frame_id_eq): Return bool.
6665 (has_stack_frames): Return bool.
6666 (get_selected_frame): Fix typo in comment.
6667 (get_frame_pc_if_available): Return bool.
6668 (get_frame_address_in_block_if_available): Return bool.
6669 (get_frame_func_if_available): Return bool.
6670 (read_frame_register_unsigned): Return bool.
6671 (get_frame_register_bytes): Return bool.
6672 (safe_frame_unwind_memory): Return bool.
6673 (deprecated_frame_register_read): Return bool.
6674 (frame_unwinder_is): Return bool.
6675 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6676 bool.
6677 <this_id::p>: Likewise.
6678 <prev_p>: Likewise.
6679 (frame_stash_add): Return bool.
6680 (get_frame_id): Use bool.
6681 (frame_id_build_special) Use bool.
6682 (frame_id_build_unavailable_stack): Use bool.
6683 (frame_id_build): Use bool.
6684 (frame_id_p): Return bool, use true/false instead of 1/0.
6685 (frame_id_artificial_p): Likewise.
6686 (frame_id_eq): Likewise.
6687 (frame_id_inner): Likewise.
6688 (get_frame_func_if_available): Likewise.
6689 (read_frame_register_unsigned): Likewise.
6690 (deprecated_frame_register_read): Likewise.
6691 (get_frame_register_bytes): Likewise.
6692 (has_stack_frames): Likewise.
6693 (inside_main_func): Likewise.
6694 (inside_entry_func): Likewise.
6695 (get_frame_pc_if_available): Likewise.
6696 (get_frame_address_in_block_if_available): Likewise.
6697 (frame_unwinder_is): Likewise.
6698 (safe_frame_unwind_memory): Likewise.
6699 (frame_unwind_arch): Likewise.
6700
fedfee88
SM
67012020-08-04 Simon Marchi <simon.marchi@efficios.com>
6702
6703 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6704 type to cached_copy_status.
6705 (fprintf_frame): Adjust.
6706 (get_frame_func_if_available): Adjust.
6707 (frame_cleanup_after_sniffer): Adjust.
6708
6cfa9b59
MW
67092020-08-04 Mark Wielaard <mark@klomp.org>
6710
6711 * MAINTAINERS (Write After Approval): Update email address.
6712
66d6346b
SM
67132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6714
6715 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6716 dynamic_prop::const_val.
6717
8a6d5e35
SM
67182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6719
6720 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6721 dynamic_prop::kind.
6722
51d6067d
SM
67232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6724
6725 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6726
b26e2ae7
JM
67272020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6728
6729 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6730
39791af2
JM
67312020-08-04 Weimin Pan <weimin.pan@oracle.com>
6732 Jose E. Marchesi <jose.marchesi@oracle.com>
6733
6734 * configure.tgt: Add entry for bpf-*-*.
6735 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6736 (ALLDEPFILES): Add bpf-tdep.c.
6737 * bpf-tdep.c: New file.
6738 * MAINTAINERS: Add bpf target and maintainer.
6739 * NEWS: Mention the support for the new target.
6740
521894aa
TV
67412020-08-04 Tom de Vries <tdevries@suse.de>
6742
6743 PR symtab/23270
6744 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6745 Error.
6746
5d6356e9
JB
67472020-08-03 John Baldwin <jhb@FreeBSD.org>
6748
6749 * syscalls/freebsd.xml: Regenerate.
6750
0cf82b81
JB
67512020-08-03 John Baldwin <jhb@FreeBSD.org>
6752
6753 * syscalls/update-freebsd.sh: Fix usage and year range.
6754
8f34b746
TV
67552020-08-03 Tom de Vries <tdevries@suse.de>
6756
6757 PR symtab/26333
6758 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6759 DW_LNE_lo_user/DW_LNE_hi_user range.
6760
5e500d33
SM
67612020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6762
6763 PR ada/26318
6764 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6765 kind.
6766
78319c15
TBA
67672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6768
6769 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6770
4c55e970
TBA
67712020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6772
6773 * breakpoint.c (set_breakpoint_condition): Update the condition
6774 expressions after checking that the input condition string parses
6775 successfully and does not contain junk at the end.
6776
1e620590
TBA
67772020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6778
6779 * breakpoint.c (set_breakpoint_condition): Update the
6780 condition string after parsing the new condition successfully.
6781
c8693053
RO
67822020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6783
6784 * proc-api.c (_STRUCTURED_PROC): Don't define.
6785 * proc-events.c: Likewise.
6786 * proc-flags.c: Likewise.
6787 * proc-why.c: Likewise.
6788 * procfs.c: Likewise.
6789
6790 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6791 * configure, config.in: Regenerate.
6792
5a99adb8
TV
67932020-07-30 Tom de Vries <tdevries@suse.de>
6794
6795 PR build/26320
6796 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6797 m_red/m_green/m_blue in a union.
6798
8ba83e91
TV
67992020-07-29 Tom de Vries <tdevries@suse.de>
6800
6801 PR tdep/26280
6802 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6803
f75a0693
AB
68042020-07-28 Tom Tromey <tromey@adacore.com>
6805
6806 PR symtab/26270:
6807 * symtab.h (find_pc_partial_function_sym): Declare.
6808 * cli/cli-cmds.c (disassemble_command): Use
6809 find_pc_partial_function_sym. Check asm_demangle.
6810 * blockframe.c (cache_pc_function_sym): New global.
6811 (cache_pc_function_name): Remove.
6812 (clear_pc_function_cache): Update.
6813 (find_pc_partial_function_sym): New function, from
6814 find_pc_partial_function.
6815 (find_pc_partial_function): Rewrite using
6816 find_pc_partial_function_sym.
6817
16f3242c
TT
68182020-07-28 Tom Tromey <tromey@adacore.com>
6819
6820 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6821 help. Add usage.
6822
4888741a
TT
68232020-07-28 Tom Tromey <tromey@adacore.com>
6824
6825 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6826 <DW_OP_GNU_variable_value>: Cast to address type.
6827
4d46f402
KR
68282020-07-28 Kamil Rytarowski <n54@gmx.com>
6829
6830 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6831 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6832 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6833 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6834 (nbsd_get_siginfo_type): New.
6835 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6836 (_initialize_nbsd_tdep): New.
6837
d70f978b
L
68382020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6839
6840 PR binutils/26301
6841 * configure: Regenerated.
6842
377170fa
L
68432020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6844
6845 PR binutils/26301
6846 * configure: Regenerated.
6847
43d5901d
AB
68482020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6849
6850 * python/py-frame.c: Remove 'user-regs.h' include.
6851 (frapy_read_register): Rewrite to make use of
6852 gdbpy_parse_register_id.
6853 * python/py-registers.c (gdbpy_parse_register_id): New function,
6854 moved here from python/py-unwind.c. Updated the return type, and
6855 also accepts register descriptor objects.
6856 * python/py-unwind.c: Remove 'user-regs.h' include.
6857 (pyuw_parse_register_id): Moved to python/py-registers.c.
6858 (unwind_infopy_add_saved_register): Update to use
6859 gdbpy_parse_register_id.
6860 (pending_framepy_read_register): Likewise.
6861 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6862
14fa8fb3
AB
68632020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6864
6865 * python/py-registers.c: Add 'user-regs.h' include.
6866 (register_descriptor_iter_find): New function.
6867 (register_descriptor_iterator_object_methods): New static global
6868 methods array.
6869 (register_descriptor_iterator_object_type): Add pointer to methods
6870 array.
6871
ddce1758
JB
68722020-07-27 John Baldwin <jhb@FreeBSD.org>
6873
6874 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6875 for all architectures on FreeBSD 11.3 and later.
6876
a4089f52
TT
68772020-07-27 Tom Tromey <tromey@adacore.com>
6878
6879 * gcore.h (load_corefile): Don't declare.
6880
95420d30
TV
68812020-07-27 Tom de Vries <tdevries@suse.de>
6882
6883 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6884 * config.in: Regenerate.
6885 * configure: Regenerate.
6886
05a6b8c2
EZ
68872020-07-26 Eli Zaretskii <eliz@gnu.org>
6888
6889 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6890 ws2tcpip.h. When checking whether socklen_t type is defined, use
6891 ws2tcpip.h if it is available and sys/socket.h isn't.
6892 * configure: Regenerate.
6893 * config.in: Regenerate.
6894
e79eb02f
AB
68952020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6896
6897 PR fortran/23051
6898 PR fortran/26139
6899 * valops.c (value_ind): Pass address to
6900 readjust_indirect_value_type.
6901 * value.c (readjust_indirect_value_type): Make parameter
6902 non-const, and add extra address parameter. Resolve original type
6903 before using it.
6904 * value.h (readjust_indirect_value_type): Update function
6905 signature and comment.
6906
876518dd
TV
69072020-07-25 Tom de Vries <tdevries@suse.de>
6908
6909 PR symtab/26243
6910 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6911 entries.
6912
f6720b1c
AM
69132020-07-24 Aaron Merey <amerey@redhat.com>
6914
6915 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6916 * configure: Rebuild.
6917
513487e1
KB
69182020-07-23 Kevin Buettner <kevinb@redhat.com>
6919
6920 PR corefiles/26294
6921 * corelow.c (_initialize_corelow): Add period to help text
6922 for "maintenance print core-file-backed-mappings".
6923
e7bc9db8
PA
69242020-07-23 Pedro Alves <pedro@palves.net>
6925
6926 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6927 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6928 meanwhile.
6929 * frame.c (frame_cache_generation, get_frame_cache_generation):
6930 New.
6931 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6932 (get_prev_frame_if_no_cycle): On exception, don't touch
6933 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6934 * frame.h (get_frame_cache_generation): Declare.
6935
90fcc466
TV
69362020-07-23 Tom de Vries <tdevries@suse.de>
6937
6938 PR tui/26282
6939 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6940 New default constructor.
6941
78344df7
AB
69422020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6943
6944 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6945 exclude non-statement entries.
6946
b089853a
KB
69472020-07-22 Kevin Buettner <kevinb@redhat.com>
6948
6949 * NEWS (New commands): Mention new command
6950 "maintenance print core-file-backed-mappings".
6951
09c2f5d4
KB
69522020-07-22 Kevin Buettner <kevinb@redhat.com>
6953
6954 * corelow.c (gdbcmd.h): Include.
6955 (core_target::info_proc_mappings): New method.
6956 (get_current_core_target): New function.
6957 (maintenance_print_core_file_backed_mappings): New function.
6958 (_initialize_corelow): Add core-file-backed-mappings to
6959 "maint print" commands.
6960
9c5ec5c2 69612020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6962
9c5ec5c2
KB
6963 * linux-tdep.c (dump_note_entry_p): New function.
6964 (linux_dump_mapping_p_ftype): New typedef.
6965 (linux_find_memory_regions_full): Add new parameter,
6966 should_dump_mapping_p.
6967 (linux_find_memory_regions): Adjust call to
6968 linux_find_memory_regions_full.
6969 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6970 call to linux_find_memory_regions_full.
6971
db082f59
KB
69722020-07-22 Kevin Buettner <kevinb@redhat.com>
6973
6974 * corelow.c (solist.h, unordered_map): Include.
6975 (class core_target): Add field m_core_file_mappings and
6976 method build_file_mappings.
6977 (core_target::core_target): Call build_file_mappings.
6978 (core_target::~core_target): Free memory associated with
6979 m_core_file_mappings.
6980 (core_target::build_file_mappings): New method.
6981 (core_target::xfer_partial): Use m_core_file_mappings
6982 for memory transfers.
6983 * linux-tdep.c (linux_read_core_file_mappings): New
6984 function.
6985 (linux_core_info_proc_mappings): Rewrite to use
6986 linux_read_core_file_mappings.
6987 (linux_init_abi): Register linux_read_core_file_mappings.
6988
7e183d27
KB
69892020-07-22 Kevin Buettner <kevinb@redhat.com>
6990
6991 * arch-utils.c (default_read_core_file_mappings): New function.
6992 * arch-utils.c (default_read_core_file_mappings): Declare.
6993 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6994 * gdbarch.h, gdbarch.c: Regenerate.
6995
2735d421
KB
69962020-07-22 Kevin Buettner <kevinb@redhat.com>
6997
6998 PR corefiles/25631
6999 * corelow.c (core_target:xfer_partial): Revise
7000 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7001 case after first checking the stratum beneath the core
7002 target.
7003 (has_all_memory): Return true.
7004 * target.c (raw_memory_xfer_partial): Revise comment
7005 regarding use of has_all_memory.
7006
e56cb451
KB
70072020-07-22 Kevin Buettner <kevinb@redhat.com>
7008
7009 * exec.h (section_table_xfer_memory): Revise declaration,
7010 replacing section name parameter with an optional callback
7011 predicate.
7012 * exec.c (section_table_xfer_memory): Likewise.
7013 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7014 of section_table_xfer_memory.
7015
32fa152e
TT
70162020-07-22 Tom Tromey <tromey@adacore.com>
7017
7018 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7019 lookup_symbol_search_name.
7020
a67a1c41
AB
70212020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7022
7023 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7024 redundant local variable.
7025 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7026 reference, not pointer, update code accordingly.
7027
a7b4ff4f
SM
70282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7029 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7030
7031 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7032 * jit.c (jit_breakpoint_re_set_internal): Use the
7033 `skip_jit_symbol_lookup` field.
7034
2340e834
SM
70352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7036 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7037
7038 * jit.c (jit_read_descriptor): Define the descriptor address once,
7039 use twice.
7040 (jit_breakpoint_deleted): Move the declaration of the loop variable
7041 `iter` into the loop header.
7042 (jit_breakpoint_re_set_internal): Move the declaration of the local
7043 variable `objf_data` to the first point of definition.
7044 (jit_event_handler): Move the declaration of local variables
7045 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7046 Rename `objf` to `jited`.
7047
c1072906
SM
70482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7049
7050 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7051 Remove.
7052 * jit.c (get_jiter_objfile_data): Update.
7053
c8474dc3
TBA
70542020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7055 Simon Marchi <simon.marchi@polymtl.ca>
7056
7057 * jit.c (struct jit_program_space_data): Remove.
7058 (jit_program_space_key): Remove.
7059 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7060 stuff.
7061 (get_jit_program_space_data): Remove.
7062 (jit_breakpoint_deleted): Iterate on all of the program space's
7063 objfiles.
7064 (jit_inferior_init): Likewise.
7065 (jit_breakpoint_re_set_internal): Likewise. Also change return
7066 type to void.
7067 (jit_breakpoint_re_set): Pass current_program_space to
7068 jit_breakpoint_re_set_internal.
7069
77208eb7
SM
70702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7071
7072 * jit.h (struct jiter_objfile_data) <cached_code_address,
7073 jit_breakpoint>: Move to here from ...
7074 * jit.c (jit_program_space_data): ... here.
7075 (jiter_objfile_data::~jiter_objfile_data): Update.
7076 (jit_breakpoint_deleted): Update.
7077 (jit_breakpoint_re_set_internal): Update.
7078
8c1c720f
SM
70792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7080
7081 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7082 checks.
7083 (jit_read_descriptor): Remove NULL check.
7084 (jit_event_handler): Add an assertion.
7085
0e74a041
SM
70862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7087
7088 * jit.h (struct jit_objfile_data): Split into...
7089 (struct jiter_objfile_data): ... this ...
7090 (struct jited_objfile_data): ... and this.
7091 * objfiles.h (struct objfile) <jit_data>: Remove.
7092 <jiter_data, jited_data>: New fields.
7093 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7094 (jiter_objfile_data::~jiter_objfile_data): ... this.
7095 (get_jit_objfile_data): Rename to ...
7096 (get_jiter_objfile_data): ... this.
7097 (add_objfile_entry): Update.
7098 (jit_read_descriptor): Use get_jiter_objfile_data.
7099 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7100 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7101 (jit_inferior_exit_hook): Use objfile's jited_data field.
7102
238b5c9f
SM
71032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7104
7105 * jit.h: Forward-declare `struct minimal_symbol`.
7106 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7107 constructor, destructor, and an objfile* field.
7108 * jit.c (jit_objfile_data): Remove.
7109 (struct jit_objfile_data): Migrate from here to jit.h.
7110 (jit_objfile_data::~jit_objfile_data): New destructor
7111 implementation with code moved from free_objfile_data.
7112 (free_objfile_data): Delete.
7113 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7114 (jit_find_objf_with_entry_addr): Ditto.
7115 (jit_inferior_exit_hook): Ditto.
7116 (_initialize_jit): Remove the call to
7117 register_objfile_data_with_cleanup.
7118 * objfiles.h (struct objfile) <jit_data>: New field.
7119
fe053b9e
TBA
71202020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7121
7122 * jit.h: Forward-declare `struct objfile`.
7123 (jit_event_handler): Add a second parameter, the JITer objfile.
7124 * jit.c (jit_read_descriptor): Change the signature to take the
7125 JITer objfile as an argument instead of the jit_program_space_data.
7126 (jit_inferior_init): Update the call to jit_read_descriptor.
7127 (jit_event_handler): Use the new JITer objfile argument when calling
7128 jit_read_descriptor.
7129 * breakpoint.c (handle_jit_event): Update the call to
7130 jit_event_handler to pass the JITer objfile.
7131
4cec0c66
JB
71322020-07-21 John Baldwin <jhb@FreeBSD.org>
7133
7134 * gdbarch.c: Regenerate.
7135 * gdbarch.h: Regenerate.
7136 * gdbarch.sh (handle_segmentation_fault): Remove method.
7137 * infrun.c (handle_segmentation_fault): Remove.
7138 (print_signal_received_reason): Remove call to
7139 handle_segmentation_fault.
7140
0e42f66a
JB
71412020-07-21 John Baldwin <jhb@FreeBSD.org>
7142
7143 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7144 Rename to sparc64_linux_report_signal_info and add siggnal
7145 argument.
7146 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7147 instead of sparc64_linux_handle_segmentation_fault.
7148
77bdfeb2
JB
71492020-07-21 John Baldwin <jhb@FreeBSD.org>
7150
7151 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7152 i386_linux_report_signal_info instead of
7153 i386_linux_handle_segmentation_fault.
7154 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7155 to i386_linux_report_signal_info and add siggnal argument.
7156 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7157 of i386_linux_handle_segmentation_fault.
7158 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7159 to i386_linux_report_signal_info and add siggnal argument.
7160
ad97bfc5
JB
71612020-07-21 John Baldwin <jhb@FreeBSD.org>
7162
7163 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7164 hook if present.
7165
272bb05c
JB
71662020-07-21 John Baldwin <jhb@FreeBSD.org>
7167
7168 * gdbarch.c: Regenerate.
7169 * gdbarch.h: Regenerate.
7170 * gdbarch.sh (report_signal_info): New method.
7171 * infrun.c (print_signal_received_reason): Invoke gdbarch
7172 report_signal_info hook if present.
7173
baf8791e
AB
71742020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7175
7176 * python/py-registers.c : Add 'unordered_map' include.
7177 (gdbpy_new_reggroup): Renamed to...
7178 (gdbpy_get_reggroup): ...this. Update to only create register
7179 group descriptors when needed.
7180 (gdbpy_reggroup_iter_next): Update.
7181
f7306dac
AB
71822020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * python/py-registers.c (gdbpy_register_object_data): New static
7185 global.
7186 (gdbpy_register_object_data_init): New function.
7187 (gdbpy_new_register_descriptor): Renamed to...
7188 (gdbpy_get_register_descriptor): ...this, and update to reuse
7189 existing register descriptors where possible.
7190 (gdbpy_register_descriptor_iter_next): Update.
7191 (gdbpy_initialize_registers): Register new gdbarch data.
7192
05c309a8
SM
71932020-07-21 Simon Marchi <simon.marchi@efficios.com>
7194
7195 * linux-nat.c (stopped_pids): Make static.
7196
d1fd641e
SM
71972020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7198
7199 PR ada/26235
7200 * gdbtypes.c (ada_discrete_type_low_bound,
7201 ada_discrete_type_high_bound): Handle undefined bounds.
7202
1de14d77
KR
72032020-07-21 Kamil Rytarowski <n54@gmx.com>
7204
7205 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7206 declaration.
7207 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7208 function.
7209
ed810cc7
JB
72102020-07-20 John Baldwin <jhb@FreeBSD.org>
7211
7212 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7213 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7214 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7215 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7216 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7217 method.
7218
ae5369e7
LC
72192020-07-20 Ludovic Courtès <ludo@gnu.org>
7220
7221 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7222 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7223 which are deprecated in Guile 3.0.
7224 * configure.ac (try_guile_versions): Add "guile-3.0".
7225 * configure (try_guile_versions): Regenerate.
7226 * NEWS: Update entry.
7227
68cf161c
LC
72282020-07-20 Ludovic Courtès <ludo@gnu.org>
7229 Doug Evans <dje@google.com>
7230
7231 PR gdb/21104
7232 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7233 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7234 USING_GUILE_BEFORE_2_2.
7235 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7236 Change type to 'scm_t_port_type *'.
7237 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7238 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7239 parameter and honor it. Update callers.
7240 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7241 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7242 functions.
7243 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7244 USING_GUILE_BEFORE_2_2.
7245 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7246 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7247 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7248 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7249 and 'SCM_PORT_TYPE'.
7250 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7251 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7252 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7253 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7254 [!USING_GUILE_BEFORE_2_2]: New functions.
7255 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7256 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7257 'gdbscm_memory_port_read'.
7258 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7259 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7260 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7261 function.
7262 (ioscm_init_memory_port): Remove.
7263 (ioscm_init_memory_port_stream): New function
7264 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7265 function.
7266 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7267 Return scm_from_uint (0).
7268 (gdbscm_set_memory_port_read_buffer_size_x)
7269 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7270 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7271 Return scm_from_uint (0).
7272 (gdbscm_set_memory_port_write_buffer_size_x)
7273 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7274 * configure.ac (try_guile_versions): Add "guile-2.2".
7275 * configure: Regenerate.
7276 * NEWS: Add entry.
7277
aee91db3
TT
72782020-07-18 Tom Tromey <tom@tromey.com>
7279
7280 * linux-nat.c (linux_multi_process): Remove.
7281 (linux_nat_target::supports_multi_process): Return true.
7282
0e267416
AB
72832020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7286 (riscv_lookup_target_description): Return pointer out of
7287 unique_ptr.
7288 * target-descriptions.c (allocate_target_description): Add
7289 comment.
7290 (target_desc_deleter::operator()): Likewise.
7291 * target-descriptions.h (struct target_desc_deleter): Moved to
7292 gdbsupport/tdesc.h.
7293 (target_desc_up): Likewise.
7294
f80c8ec4
TT
72952020-07-17 Tom Tromey <tromey@adacore.com>
7296
7297 * linux-nat.c (linux_nat_target::supports_non_stop)
7298 (linux_nat_target::always_non_stop_p): Use "true".
7299 (linux_nat_target::supports_disable_randomization): Use "true" and
7300 "false".
7301
d0ce17d8
CT
73022020-07-16 Caroline Tice <cmtice@google.com>
7303
7304 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7305 (RNGLIST_HEADER_SIZE64): New constant definition.
7306 (struct dwop_section_names): Add rnglists_dwo.
7307 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7308 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7309 (struct dwo_sections): Add rnglists field.
7310 (read_attribut_reprocess): Add tag parameter.
7311 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7312 (cu_debug_rnglists_section): New function (decl & definition).
7313 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7314 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7315 die whose range is being checked; get rnglist section from
7316 cu_debug_rnglists_section, to get from either objfile or dwo file as
7317 appropriate. Add cases for DW_RLE_base_addressx,
7318 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7319 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7320 test inside if-condition and updating complaint message.
7321 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7322 dwarf2_rnglists_process.
7323 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7324 dwarf2_ranges_process.
7325 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7326 need_ranges_base and update comment appropriately. Also pass die tag
7327 to dwarf2_ranges_read.
7328 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7329 need_ranges_base and update comment appropriately. Also pass die tag
7330 to dwarf2_ranges_process.
7331 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7332 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7333 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7334 need_ranges_base and update comment appropriately. Also pass die tag
7335 to read_attribute_reprocess and dwarf2_ranges_read.
7336 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7337 and update function comment appropriately.
7338 (read_loclist_index): Call read_loclists_rnglists_header instead of
7339 read_loclist_header.
7340 (read_rnglist_index): New function.
7341 (read_attribute_reprocess): Add tag parameter. Add code for
7342 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7343 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7344
3dcc261c
AB
73452020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7346
7347 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7348 being resolved.
7349
ccb9eba6
AB
73502020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7351
7352 * arch-utils.c (show_architecture): Update formatting of messages.
7353
cf88be68
SM
73542020-07-12 Simon Marchi <simon.marchi@efficios.com>
7355
7356 * gdbtypes.h (struct type) <bounds>: Handle array and string
7357 types.
7358 * ada-lang.c (assign_aggregate): Use type::bounds on
7359 array/string type.
7360 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7361 * c-varobj.c (c_number_of_children): Likewise.
7362 (c_describe_child): Likewise.
7363 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7364 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7365 (f_type_print_base): Likewise.
7366 * f-valprint.c (f77_array_offset_tbl): Likewise.
7367 (f77_get_upperbound): Likewise.
7368 (f77_print_array_1): Likewise.
7369 * guile/scm-type.c (gdbscm_type_range): Likewise.
7370 * m2-typeprint.c (m2_array): Likewise.
7371 (m2_is_long_set_of_type): Likewise.
7372 * m2-valprint.c (get_long_set_bounds): Likewise.
7373 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7374 * python/py-type.c (typy_range): Likewise.
7375 * rust-lang.c (rust_internal_print_type): Likewise.
7376 * type-stack.c (type_stack::follow_types): Likewise.
7377 * valarith.c (value_subscripted_rvalue): Likewise.
7378 * valops.c (value_cast): Likewise.
7379
509971ae
SM
73802020-07-12 Simon Marchi <simon.marchi@efficios.com>
7381
7382 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7383 callers to use the equivalent accessor methods.
7384
107406b7
SM
73852020-07-12 Simon Marchi <simon.marchi@efficios.com>
7386
7387 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7388 (struct type) <bit_stride>: New method.
7389 (TYPE_BIT_STRIDE): Remove.
7390 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7391
bb789949
SM
73922020-07-12 Simon Marchi <simon.marchi@efficios.com>
7393
7394 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7395 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7396 callers to use the equivalent accessor methods instead.
7397
39498edb
SM
73982020-07-12 Simon Marchi <simon.marchi@efficios.com>
7399
7400 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7401 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7402 callers to use the equivalent accessor methods instead.
7403
3b606f38
SM
74042020-07-12 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7407 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7408 to use dynamic_prop::kind.
7409
064d9cb9
SM
74102020-07-12 Simon Marchi <simon.marchi@efficios.com>
7411
7412 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7413 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7414 to get the bound property's kind and check against
7415 PROP_UNDEFINED.
7416
5537ddd0
SM
74172020-07-12 Simon Marchi <simon.marchi@efficios.com>
7418
7419 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7420 all callers to use type::range_bounds followed by
7421 dynamic_prop::{low,high}.
7422
8c2e4e06
SM
74232020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7424
7425 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7426 const_val, set_const_val, baton, set_locexpr, set_loclist,
7427 set_addr_offset, variant_parts, set_variant_parts,
7428 original_type, set_original_type>: New methods.
7429 <kind>: Rename to...
7430 <m_kind>: ... this. Update all users to use the new methods
7431 instead.
7432 <data>: Rename to...
7433 <m_data>: ... this. Update all users to use the new methods
7434 instead.
7435
7c6f2712
SM
74362020-07-12 Simon Marchi <simon.marchi@efficios.com>
7437
7438 * gdbtypes.c (get_discrete_bounds): Return failure if
7439 the range type's bounds are not both defined and constant
7440 values.
7441 (get_array_bounds): Update comment. Remove undefined bound check.
7442
599088e3
SM
74432020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7444
7445 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7446 the type::bounds method directly.
7447
c4dfcb36
SM
74482020-07-12 Simon Marchi <simon.marchi@efficios.com>
7449
7450 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7451 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7452 are used to set the range type's bounds to use set_bounds.
7453
0a278aa7
PW
74542020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7455
7456 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7457
cce20f10
PA
74582020-07-10 Pedro Alves <pedro@palves.net>
7459
7460 * gdbthread.h (inferior_ref): Define.
7461 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7462 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7463 * thread.c
7464 (scoped_restore_current_thread::restore):
7465 Adjust to gdb::ref_ptr.
7466 (scoped_restore_current_thread::~scoped_restore_current_thread):
7467 Remove manual decref handling.
7468 (scoped_restore_current_thread::scoped_restore_current_thread):
7469 Adjust to use
7470 inferior_ref::new_reference/thread_info_ref::new_reference.
7471 Incref the thread before calling get_frame_id instead of after.
7472 Let TARGET_CLOSE_ERROR propagate.
7473
6d7aa592
PA
74742020-07-10 Pedro Alves <pedro@palves.net>
7475
7476 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7477 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7478 NOT_AVAILABLE_ERROR.
7479 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7480 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7481
b3e3a4c1
SM
74822020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7483 Pedro Alves <pedro@palves.net>
7484
7485 PR gdb/26199
7486 * infrun.c (threads_are_resumed_pending_p): Delete.
7487 (do_target_wait): Remove threads_are_executing and
7488 threads_are_resumed_pending_p checks from the inferior_matches
7489 lambda. Update comments.
7490
d6cc5d98
PA
74912020-07-10 Pedro Alves <pedro@palves.net>
7492
7493 PR gdb/26199
7494 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7495 executing threads.
7496
7d3badc6
PA
74972020-07-10 Pedro Alves <pedro@palves.net>
7498
7499 PR gdb/26199
7500 * infrun.c (handle_no_resumed): Handle multiple targets.
7501
42bd97a6
PA
75022020-07-10 Pedro Alves <pedro@palves.net>
7503
7504 PR gdb/26199
7505 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7506 target_is_async_p.
7507
43667cc6
PA
75082020-07-10 Pedro Alves <pedro@palves.net>
7509
7510 PR gdb/26199
7511 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7512 threads, not all threads.
7513
96118d11
PA
75142020-07-10 Pedro Alves <pedro@palves.net>
7515
7516 PR gdb/26199
7517 * remote.c (remote_target::open_1): Pass remote target pointer as
7518 data to create_async_event_handler.
7519 (remote_async_inferior_event_handler): Mark async event handler
7520 before returning if the remote target still has either pending
7521 events or unacknowledged notifications.
7522
54904d81
JB
75232020-07-10 John Baldwin <jhb@FreeBSD.org>
7524
7525 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7526 declaration.
7527 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7528 function.
7529
f37e5866
JB
75302020-07-09 John Baldwin <jhb@FreeBSD.org>
7531
7532 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7533 inferior_ptid.
7534
fc238d4a
JB
75352020-07-09 John Baldwin <jhb@FreeBSD.org>
7536
7537 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7538 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7539 AT_FREEBSD_PS_STRINGS.
7540
6e2469ff
HD
75412020-07-08 Hannes Domani <ssbssa@yahoo.de>
7542
7543 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7544 of debugfile path on Windows.
7545
d1076c41
JB
75462020-07-08 John Baldwin <jhb@FreeBSD.org>
7547
7548 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7549 argument to 'data'.
7550
15f3b077
TT
75512020-07-08 Tom Tromey <tromey@adacore.com>
7552
7553 * ada-lang.c (ada_exception_message_1): Use read_memory.
7554
9fc501fd
AB
75552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7556
7557 PR python/22748
7558 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7559 special handling for inline frames.
7560 * findvar.c (value_of_register_lazy): Skip inline frames when
7561 creating lazy register values.
7562 * frame.c (frame_id_computed_p): Delete definition.
7563 * frame.h (frame_id_computed_p): Delete declaration.
7564
64cb3757
AB
75652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7566
7567 * NEWS: Mention additions to Python API.
7568 * python/py-arch.c (archpy_register_groups): New function.
7569 (arch_object_methods): Add 'register_groups' method.
7570 * python/py-registers.c (reggroup_iterator_object): New struct.
7571 (reggroup_object): New struct.
7572 (gdbpy_new_reggroup): New function.
7573 (gdbpy_reggroup_to_string): New function.
7574 (gdbpy_reggroup_name): New function.
7575 (gdbpy_reggroup_iter): New function.
7576 (gdbpy_reggroup_iter_next): New function.
7577 (gdbpy_new_reggroup_iterator): New function
7578 (gdbpy_initialize_registers): Register new types.
7579 (reggroup_iterator_object_type): Define new Python type.
7580 (gdbpy_reggroup_getset): New static global.
7581 (reggroup_object_type): Define new Python type.
7582 * python/python-internal.h
7583
0f767f94
AB
75842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7585
7586 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7587 * python/py-arch.c (archpy_registers): New function.
7588 (arch_object_methods): Add 'registers' method.
7589 * python/py-registers.c: New file.
7590 * python/python-internal.h
7591 (gdbpy_new_register_descriptor_iterator): Declare.
7592 (gdbpy_initialize_registers): Declare.
7593 * python/python.c (do_start_initialization): Call
7594 gdbpy_initialize_registers.
7595 * NEWS: Mention additions to the Python API.
7596
87dbc774
AB
75972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7598
7599 * NEWS: Mention new Python API method.
7600 * python/py-unwind.c (pending_framepy_architecture): New function.
7601 (pending_frame_object_methods): Add architecture method.
7602
3bc98c0c
AB
76032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7604
7605 * gdbarch.c: Regenerate.
7606 * gdbarch.h: Regenerate.
7607 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7608 (gdbarch_data): Use internal_error for the case where
7609 deprecated_set_gdbarch_data was originally needed.
7610 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7611 and use passed in obstack.
7612 (libunwind_frame_set_descr): Should no longer get back NULL from
7613 gdbarch_data.
7614 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7615 type.
7616 * user-regs.c (user_regs_init): Update parameters, and use passed
7617 in obstack.
7618 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7619 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7620
d8cc8af6
TV
76212020-07-06 Tom de Vries <tdevries@suse.de>
7622
7623 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7624 End-Of-Sequence in lte_is_less_than.
7625 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7626 "gdb: Don't reorder line table entries too much when sorting".
7627
947f7597
TV
76282020-07-06 Tom de Vries <tdevries@suse.de>
7629
7630 PR tui/26205
7631 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7632
1e7c1b22
TV
76332020-07-05 Tom de Vries <tdevries@suse.de>
7634
7635 PR build/26187
7636 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7637 std::uncaught_exceptions instead of deprecated
7638 std::uncaught_exception.
7639
a36158ec
SM
76402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7641
7642 * macroexp.h (macro_stringify): Return
7643 gdb::unique_xmalloc_ptr<char>.
7644 * macroexp.c (macro_stringify): Likewise.
7645 * macrotab.c (fixup_definition): Update.
7646
14d960c8
SM
76472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7648
7649 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7650 (lex_one_token): Update.
7651 * macroexp.c (struct macro_buffer) <release>: Return
7652 gdb::unique_xmalloc_ptr<char>.
7653 (macro_stringify): Update.
7654 (macro_expand): Update.
7655 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7656 * macroexp.h (macro_expand_next): Likewise.
7657
211d5b1c
SM
76582020-07-02 Simon Marchi <simon.marchi@efficios.com>
7659
7660 * macroexp.h (macro_lookup_ftype): Remove.
7661 (macro_expand, macro_expand_once, macro_expand_next): Remove
7662 lookup function parameters, add scope parameter.
7663 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7664 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7665 * macroscope.h (standard_macro_lookup): Change parameter type
7666 to macro_scope.
7667 * macroscope.c (standard_macro_lookup): Likewise.
7668 * c-exp.y (lex_one_token): Update.
7669 * macrocmd.c (macro_expand_command): Likewise.
7670 (macro_expand_once_command): Likewise.
7671
b1a35af2
SM
76722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7673
7674 * inf-loop.c (inferior_event_handler): Remove client_data param.
7675 * inf-loop.h (inferior_event_handler): Likewise.
7676 * infcmd.c (step_1): Adjust.
7677 * infrun.c (proceed): Adjust.
7678 (fetch_inferior_event): Remove client_data param.
7679 (infrun_async_inferior_event_handler): Adjust.
7680 * infrun.h (fetch_inferior_event): Remove `void *` param.
7681 * linux-nat.c (handle_target_event): Adjust.
7682 * record-btrace.c (record_btrace_handle_async_inferior_event):
7683 Adjust.
7684 * record-full.c (record_full_async_inferior_event_handler):
7685 Adjust.
7686 * remote.c (remote_async_inferior_event_handler): Adjust.
7687
1cdf9e33
TT
76882020-07-01 Tom Tromey <tom@tromey.com>
7689
7690 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7691 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7692
32c1e210
TT
76932020-07-01 Tom Tromey <tom@tromey.com>
7694
7695 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7696 tui_gen_win_info.
7697 (tui_win_info::make_window): Merge with
7698 tui_gen_win_info::make_window.
7699 (tui_win_info::make_visible): Move from tui_gen_win_info.
7700 * tui/tui-win.c (tui_win_info::max_width): Move from
7701 tui_gen_win_info.
7702 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7703 type.
7704 <window_factory>: Likewise.
7705 * tui/tui-layout.c (tui_win_info::resize): Move from
7706 tui_gen_win_info.
7707 (make_standard_window): Change return type.
7708 (get_locator_window, tui_get_window_by_name): Likewise.
7709 (tui_layout_window::apply): Remove a cast.
7710 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7711 (struct tui_win_info): Merge with tui_gen_win_info.
7712 (struct tui_gen_win_info): Remove.
7713
a30cb6da
TT
77142020-07-01 Tom Tromey <tom@tromey.com>
7715
7716 * tui/tui-stack.h (struct tui_locator_window): Derive from
7717 tui_win_info.
7718 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7719 <can_box>: New method.
7720
1eb2161f
TT
77212020-07-01 Tom Tromey <tom@tromey.com>
7722
7723 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7724
7134f2eb
TT
77252020-07-01 Tom Tromey <tom@tromey.com>
7726
7727 * tui/tui-regs.c (tui_data_window::display_registers_from)
7728 (tui_data_window::display_registers_from)
7729 (tui_data_window::first_data_item_displayed)
7730 (tui_data_window::delete_data_content_windows): Update.
7731 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7732 Remove.
7733 (tui_data_window::check_register_values): Update.
7734 (tui_data_item_window::rerender): Add parameters. Update.
7735 (tui_data_item_window::refresh_window): Remove.
7736 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7737 virtual.
7738 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7739 tui_gen_win_info.
7740 <refresh_window, max_height, min_height>: Remove.
7741 <rerender>: Add parameters.
7742 <x, y, visible>: New members.
7743 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7744 <m_item_width>: New member.
7745
22b7b041
TT
77462020-07-01 Tom Tromey <tom@tromey.com>
7747
7748 * tui/tui-regs.c (tui_data_window::show_register_group)
7749 (tui_data_window::check_register_values): Update.
7750 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7751 from item_no.
7752
c9753adb
TT
77532020-07-01 Tom Tromey <tom@tromey.com>
7754
7755 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7756 useless "if".
7757
9ab26b4a
TT
77582020-07-01 Tom Tromey <tom@tromey.com>
7759
7760 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7761 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7762
e555083f
TT
77632020-07-01 Tom Tromey <tom@tromey.com>
7764
7765 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7766 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7767 (struct tui_line_or_address): Move from tui-data.h.
7768 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7769 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7770 (tui_cmd_window, tui_source_window_base, tui_source_window)
7771 (tui_disasm_window): Don't declare.
7772 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7773 to tui-winsource.h.
7774 (SINGLE_KEY): Move to tui-stack.c.
7775
7a02bab7
TT
77762020-07-01 Tom Tromey <tom@tromey.com>
7777
7778 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7779 std::string.
7780 * tui/tui-regs.c (class tab_expansion_file): New.
7781 (tab_expansion_file::write): New method.
7782 (tui_register_format): Change return type. Use
7783 tab_expansion_file.
7784 (tui_get_register, tui_data_window::display_registers_from)
7785 (tui_data_item_window::rerender): Update.
7786 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7787 * tui/tui-io.c (tui_expand_tabs): Remove.
7788
ea68593b
TT
77892020-07-01 Tom Tromey <tom@tromey.com>
7790
7791 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7792
a8caed5d
FS
77932020-07-01 Fangrui Song <maskray@google.com>
7794
7795 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7796
9cdf9820
AKS
77972020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7798
7799 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7800 forms for DW_AT_associated and DW_AT_allocated attributes,
7801 which is already checked in function attr_to_dynamic_prop.
7802
a1520ad8
TT
78032020-06-30 Tom Tromey <tromey@adacore.com>
7804
7805 * dwarf2/read.c (quirk_rust_enum): Correctly call
7806 alloc_rust_variant for default-less enum.
7807
5ac58899
TT
78082020-06-30 Tom Tromey <tromey@adacore.com>
7809
7810 PR build/26183:
7811 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7812 gdb::to_string.
7813
19b187a9
SM
78142020-06-29 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7817 * gdbarch.h: Re-generate.
7818
cd4c4c07
TT
78192020-06-28 Tom Tromey <tom@tromey.com>
7820
7821 * command.h (cmd_types): Remove.
7822 (cmd_type): Don't declare.
7823 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7824 typedef.
7825 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7826 * cli/cli-decode.c (cmd_type): Remove.
7827
05779d57
PA
78282020-06-27 Pedro Alves <palves@redhat.com>
7829
7830 * fork-child.c (prefork_hook): Adjust.
7831 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7832 Delete.
7833 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7834 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7835 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7836 Remove declarations.
7837 (struct inferior) <set_tty, tty>: New methods.
7838 (struct inferior) <terminal>: Rename to ...
7839 (struct inferior) <m_terminal>: ... this and make private.
7840 * main.c (captured_main_1): Adjust.
7841 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7842 (mi_cmd_inferior_tty_show): Adjust.
7843 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7844 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7845
1776e3e5
NA
78462020-06-26 Nick Alcock <nick.alcock@oracle.com>
7847
7848 * configure.ac: Add --enable-libctf: handle --disable-static
7849 properly.
7850 * acinclude.m4: sinclude ../config/enable.m4.
7851 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7852 (LIBCTF): Substitute in.
7853 (CTF_DEPS): New, likewise.
7854 (CLIBS): libctf needs symbols from libbfd: move earlier.
7855 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7856 flags.
7857 * ctfread.c: Surround in ENABLE_LIBCTF.
7858 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7859 * configure: Regenerate.
7860 * config.in: Likewise.
7861
58373b80
SM
78622020-06-25 Simon Marchi <simon.marchi@efficios.com>
7863
7864 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7865
277474ee
SM
78662020-06-25 Simon Marchi <simon.marchi@efficios.com>
7867
7868 * inferior.h (struct inferior) <terminal>: Change type to
7869 gdb::unique_xmalloc_ptr<char>.
7870 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7871 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7872 field, adjust to unique pointer.
7873 (get_inferior_io_terminal): Adjust to unique pointer.
7874
6d74da72
AB
78752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7876
7877 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7878 registers, not just the known core set of registers.
7879
2e52d038
AB
78802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7881
7882 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7883 fflags, frm, and fcsr registers.
7884 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7885 restore groups.
7886 (riscv_tdesc_unknown_reg): New function.
7887 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7888 tdesc_use_registers.
7889 * riscv-tdep.h (struct gdbarch_tdep): Add
7890 unknown_csrs_first_regnum, unknown_csrs_count,
7891 duplicate_fflags_regnum, duplicate_frm_regnum, and
7892 duplicate_fcsr_regnum fields.
7893
be64fd07
AB
78942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7895
7896 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7897 callback, use the callback (when not null) to help number unknown
7898 registers.
7899 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7900 (tdesc_use_registers): Add extra parameter to declaration.
7901
3b9fce96
AB
79022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7905 in the file.
7906 (class riscv_pending_register_alias): Likewise.
7907 (riscv_register_feature::register_info): Change 'required_p' field
7908 to 'required', and change its type. Add 'check' member function.
7909 (riscv_register_feature::register_info::check): Define new member
7910 function.
7911 (riscv_xreg_feature): Change initialisation of 'required' field.
7912 (riscv_freg_feature): Likewise.
7913 (riscv_virtual_feature): Likewise.
7914 (riscv_csr_feature): Likewise.
7915 (riscv_check_tdesc_feature): Take extra parameter, the csr
7916 tdesc_feature, rewrite the function to use the new
7917 riscv_register_feature::register_info::check function.
7918 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7919
865bad26
AB
79202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * features/Makefile: Remove all references to the deleted files
7923 below.
7924 * features/riscv/32bit-csr.c: Deleted.
7925 * features/riscv/32bit-csr.xml: Deleted.
7926 * features/riscv/64bit-csr.c: Deleted.
7927 * features/riscv/64bit-csr.xml: Deleted.
7928 * features/riscv/rebuild-csr-xml.sh: Deleted.
7929
ed69cbc8
AB
79302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7931
7932 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7933 whitespace error for declaration of names member variable.
7934 (struct riscv_register_feature): Add new prefer_first_name member
7935 variable, and fix whitespace error in declaration of registers.
7936 (riscv_xreg_feature): Initialize prefer_first_name field.
7937 (riscv_freg_feature): Likewise.
7938 (riscv_virtual_feature): Likewise.
7939 (riscv_csr_feature): Likewise.
7940 (riscv_register_name): Expand on comments. Remove register name
7941 modifications for CSR and virtual registers.
7942
4445e8f5
AB
79432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7946 errors.
7947
767a879e
AB
79482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7951 riscv-opc.h.
7952 (class riscv_pending_register_alias): New class.
7953 (riscv_check_tdesc_feature): Take vector of pending aliases and
7954 populate it as appropriate.
7955 (riscv_setup_register_aliases): Delete.
7956 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7957 to riscv_check_tdesc_feature in all cases. Use the vector to
7958 create the register aliases.
7959
bb6e55f3
RO
79602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7961
7962 * sol2-tdep.c (sol2_static_transform_name): Remove.
7963 (sol2_init_abi): Don't register it.
7964 * gdbarch.sh (static_transform_name): Remove.
7965 * gdbarch.c, gdbarch.h: Regenerate.
7966
7967 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7968 gdbarch_static_transform_name.
7969 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7970 * stabsread.c (define_symbol) <'X'>: Remove.
7971 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7972 handling.
7973 <'V'>: Likewise.
7974 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7975 <'S'>: Remove call to gdbarch_static_transform_name.
7976
c6d36836
RO
79772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7978
7979 * procfs.c (procfs_pre_trace): New function.
7980 (procfs_target::create_inferior): Pass it to fork_inferior.
7981
a7e6196b
RO
79822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7983
7984 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7985 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7986 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7987 sol2-tdep.o, sparc-sol2-tdep.o.
7988 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7989 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7990 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7991 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7992
d412e696
RO
79932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7994
7995 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7996 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7997 Call sol2_init_abi.
7998 Remove calls to set_gdbarch_skip_solib_resolver,
7999 set_gdbarch_core_pid_to_str.
8000 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8001 (i386_sol2_static_transform_name): Remove.
8002 (i386_sol2_init_abi): Call sol2_init_abi.
8003 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8004 set_gdbarch_static_transform_name,
8005 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8006 Use sol2_sigtramp_p.
8007 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8008 (sol2_sigtramp_p): New function.
8009 (sol2_static_transform_name): New function.
8010 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8011 (sol2_init_abi): New function.
8012 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8013 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8014 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8015 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8016 (sparc_sol2_static_transform_name): Remove.
8017 (sparc32_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,
8021 set_gdbarch_core_pid_to_str.
8022 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8023 (sparc_sol2_static_transform_name): Remove
8024 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8025 call sol2_sigtramp_p.
8026 (sparc64_sol2_init_abi): Call sol2_init_abi.
8027 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8028 set_gdbarch_static_transform_name,
8029 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8030
a8654e7d
PW
80312020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8032
8033 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8034 * exec.c (validate_exec_file): If from_tty, set both
8035 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8036 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8037 and from_tty, unconditionally ask a confirmation.
8038
caa7fd04
AB
80392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8040
8041 * target-descriptions.c (tdesc_architecture_name): Protect against
8042 NULL pointer dereference.
8043 (maint_print_xml_tdesc_cmd): New function.
8044 (_initialize_target_descriptions): Register new 'maint print
8045 xml-tdesc' command and give it the filename completer.
8046 * NEWS: Mention new 'maint print xml-tdesc' command.
8047
fbf42f4e
AB
80482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8049
8050 * target-descriptions.c (class tdesc_compatible_info): New class.
8051 (struct target_desc): Change type of compatible vector.
8052 (tdesc_compatible_p): Update for change in type of
8053 target_desc::compatible.
8054 (tdesc_compatible_info_list): New function.
8055 (tdesc_compatible_info_arch_name): New function.
8056 (tdesc_add_compatible): Update for change in type of
8057 target_desc::compatible.
8058 (print_c_tdesc::visit_pre): Likewise.
8059
20821f4e
AB
80602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8061
8062 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8063 whitespace to underscore.
8064 (maint_print_c_tdesc_cmd): Use fake filename for target
8065 descriptions that came from the target.
8066 (_initialize_target_descriptions): Add filename command completion
8067 for 'maint print c-tdesc'.
8068
1fb5ee62
SM
80692020-06-23 Simon Marchi <simon.marchi@efficios.com>
8070
8071 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8072 lines.
8073
fc3ecb3e
SM
80742020-06-23 Simon Marchi <simon.marchi@efficios.com>
8075
8076 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8077 lines.
8078 (dwarf2_find_location_expression): Likewise.
8079 (call_site_parameter_matches): Likewise.
8080 (dwarf2_compile_expr_to_ax): Likewise.
8081 (disassemble_dwarf_expression): Likewise.
8082 (loclist_describe_location): Likewise.
8083
236ef034
PA
80842020-06-23 Pedro Alves <palves@redhat.com>
8085
8086 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8087 progspace-and-thread.h. Include scoped-mock-context.h instead.
8088 (register_to_value_test): Use scoped_mock_context.
8089 * regcache.c: Include "scoped-mock-context.h".
8090 (cooked_read_test): Don't error out if a target is already pushed.
8091 Use scoped_mock_context. Adjust.
8092 * scoped-mock-context.h: New file.
8093
39e7ecca
AB
80942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8095
8096 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8097 initializer.
8098 (ada_language::is_string_type_p): New member function.
8099 * c-lang.c (c_language_data): Delete la_is_string_type_p
8100 initializer.
8101 (cplus_language_data): Likewise.
8102 (asm_language_data): Likewise.
8103 (minimal_language_data): Likewise.
8104 * d-lang.c (d_language_data): Likewise.
8105 * f-lang.c (f_is_string_type_p): Delete function, implementation
8106 moved to f_language::is_string_type_p.
8107 (f_language_data): Delete la_is_string_type_p initializer.
8108 (f_language::is_string_type_p): New member function,
8109 implementation from f_is_string_type_p.
8110 * go-lang.c (go_is_string_type_p): Delete function, implementation
8111 moved to go_language::is_string_type_p.
8112 (go_language_data): Delete la_is_string_type_p initializer.
8113 (go_language::is_string_type_p): New member function,
8114 implementation from go_is_string_type_p.
8115 * language.c (language_defn::is_string_type_p): Define new member
8116 function.
8117 (default_is_string_type_p): Make static, add comment copied from
8118 header file.
8119 (unknown_language_data): Delete la_is_string_type_p initializer.
8120 (unknown_language::is_string_type_p): New member function.
8121 (auto_language_data): Delete la_is_string_type_p initializer.
8122 (auto_language::is_string_type_p): New member function.
8123 * language.h (language_data): Delete la_is_string_type_p field.
8124 (language_defn::is_string_type_p): Declare new function.
8125 (default_is_string_type_p): Delete desclaration, move comment to
8126 definition.
8127 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8128 moved to m2_language::is_string_type_p.
8129 (m2_language_data): Delete la_is_string_type_p initializer.
8130 (m2_language::is_string_type_p): New member function,
8131 implementation from m2_is_string_type_p.
8132 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8133 initializer.
8134 * opencl-lang.c (opencl_language_data): Likewise.
8135 * p-lang.c (pascal_is_string_type_p): Delete function,
8136 implementation moved to pascal_language::is_string_type_p.
8137 (pascal_language_data): Delete la_is_string_type_p initializer.
8138 (pascal_language::is_string_type_p): New member function,
8139 implementation from pascal_is_string_type_p.
8140 * rust-lang.c (rust_is_string_type_p): Delete function,
8141 implementation moved to rust_language::is_string_type_p.
8142 (rust_language_data): Delete la_is_string_type_p initializer.
8143 (rust_language::is_string_type_p): New member function,
8144 implementation from rust_is_string_type_p.
8145 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8146 is_string_type_p.
8147
4ffc13fb
AB
81482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8149
8150 * ada-lang.c (ada_language_data): Delete la_print_typedef
8151 initializer.
8152 (ada_language::print_typedef): New member function.
8153 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8154 (cplus_language_data): Likewise.
8155 (asm_language_data): Likewise.
8156 (minimal_language_data): Likewise.
8157 * d-lang.c (d_language_data): Likewise.
8158 * f-lang.c (f_language_data): Likewise.
8159 (f_language::print_typedef): New member function.
8160 * go-lang.c (go_language_data): Delete la_print_typedef
8161 initializer.
8162 * language.c (language_defn::print_typedef): Define member
8163 function.
8164 (unknown_language_data): Delete la_print_typedef initializer.
8165 (unknown_language::print_typedef): New member function.
8166 (auto_language_data): Delete la_print_typedef initializer.
8167 (auto_language::print_typedef): New member function.
8168 * language.h (language_data): Delete la_print_typedef field.
8169 (language_defn::print_typedef): Declare new member function.
8170 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8171 (default_print_typedef): Delete declaration.
8172 * m2-lang.c (m2_language_data): Delete la_print_typedef
8173 initializer.
8174 (m2_language::print_typedef): New member function.
8175 * objc-lang.c (objc_language_data): Delete la_print_typedef
8176 initializer.
8177 * opencl-lang.c (opencl_language_data): Likewise.
8178 * p-lang.c (pascal_language_data): Likewise.
8179 (pascal_language::print_typedef): New member function.
8180 * rust-lang.c (rust_print_typedef): Delete function,
8181 implementation moved to rust_language::print_typedef.
8182 (rust_language): Delete la_print_typedef initializer.
8183 (rust_language::print_typedef): New member function,
8184 implementation from rust_print_typedef.
8185 * typeprint.c (default_print_typedef): Delete.
8186
d711ee67
AB
81872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8188
8189 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8190 (ada_language::printstr): New member function.
8191 * c-lang.c (c_language_data): Delete la_printstr initializer.
8192 (cplus_language_data): Likewise.
8193 (asm_language_data): Likewise.
8194 (minimal_language_data): Likewise.
8195 * d-lang.c (d_language_data): Likewise.
8196 * f-lang.c (f_printstr): Rename to f_language::printstr.
8197 (f_language_data): Delete la_printstr initializer.
8198 (f_language::printstr): New member function, implementation from
8199 f_printstr.
8200 * go-lang.c (go_language_data): Delete la_printstr initializer.
8201 * language.c (language_defn::printstr): Define new member
8202 function.
8203 (unk_lang_printstr): Delete.
8204 (unknown_language_data): Delete la_printstr initializer.
8205 (unknown_language::printstr): New member function.
8206 (auto_language_data): Delete la_printstr initializer.
8207 (auto_language::printstr): New member function.
8208 * language.h (language_data): Delete la_printstr field.
8209 (language_defn::printstr): Declare new member function.
8210 (LA_PRINT_STRING): Update call to printstr.
8211 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8212 (m2_language_data): Delete la_printstr initializer.
8213 (m2_language::printstr): New member function, implementation from
8214 m2_printstr.
8215 * objc-lang.c (objc_language_data): Delete la_printstr
8216 initializer.
8217 * opencl-lang.c (opencl_language_data): Likewise.
8218 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8219 (pascal_language_data): Delete la_printstr initializer.
8220 (pascal_language::printstr): New member function, implementation
8221 from pascal_printstr.
8222 * p-lang.h (pascal_printstr): Delete declaration.
8223 * rust-lang.c (rust_printstr): Update header comment.
8224 (rust_language_data): Delete la_printstr initializer.
8225 (rust_language::printstr): New member function.
8226
52b50f2c
AB
82272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8228
8229 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8230 (ada_language::printchar): New member function.
8231 * c-lang.c (c_language_data): Delete la_printchar initializer.
8232 (cplus_language_data): Likewise.
8233 (asm_language_data): Likewise.
8234 (minimal_language_data): Likewise.
8235 * d-lang.c (d_language_data): Likewise.
8236 * f-lang.c (f_printchar): Rename to f_language::printchar.
8237 (f_language_data): Delete la_printchar initializer.
8238 (f_language::printchar): New member function, implementation from
8239 f_printchar.
8240 * go-lang.c (go_language_data): Delete la_printchar initializer.
8241 * language.c (unk_lang_printchar): Delete.
8242 (language_defn::printchar): Define new member function.
8243 (unknown_language_data): Delete la_printchar initializer.
8244 (unknown_language::printchar): New member function.
8245 (auto_language_data): Delete la_printchar initializer.
8246 (auto_language::printchar): New member function.
8247 * language.h (language_data): Delete la_printchar field.
8248 (language_defn::printchar): Declare new member function.
8249 (LA_PRINT_CHAR): Update call to printchar.
8250 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8251 (m2_language::printchar): New member function.
8252 * objc-lang.c (objc_language_data): Delete la_printchar
8253 initializer.
8254 * opencl-lang.c (opencl_language_data): Likewise.
8255 * p-lang.c (pascal_language_data): Delete la_printchar
8256 initializer.
8257 (pascal_language::printchar): New member function.
8258 * rust-lang.c (rust_printchar): Rename to
8259 rust_language::printchar.
8260 (rust_language_data): Delete la_printchar initializer.
8261 (rust_language::printchar): New member function, implementation
8262 from rust_printchar.
8263
ec8cec5b
AB
82642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8265
8266 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8267 (ada_language_data): Delete la_emitchar initializer.
8268 (ada_language::emitchar): New member function, implementation from
8269 emit_char.
8270 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8271 (cplus_language_data): Likewise.
8272 (asm_language_data): Likewise.
8273 (minimal_language_data): Likewise.
8274 * d-lang.c (d_language_data): Likewise.
8275 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8276 (f_language_data): Delete la_emitchar initializer.
8277 (f_language::emitchar): New member function, implementation from
8278 f_emit_char.
8279 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8280 * language.c (unk_lang_emit_char): Delete.
8281 (language_defn::emitchar): New member function definition.
8282 (unknown_language_data): Delete la_emitchar initializer.
8283 (unknown_language::emitchar): New member function.
8284 (auto_language_data): Delete la_emitchar initializer.
8285 (auto_language::emitchar): New member function.
8286 * language.h (language_data): Delete la_emitchar field.
8287 (language_defn::emitchar): New member field declaration.
8288 (LA_EMIT_CHAR): Update call to emitchar.
8289 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8290 (m2_language_data): Delete la_emitchar initializer.
8291 (m2_language::emitchar): New member function, implementation from
8292 m2_emit_char.
8293 * objc-lang.c (objc_language_data): Delete la_emitchar
8294 initializer.
8295 * opencl-lang.c (opencl_language_data): Likewise.
8296 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8297 (pascal_language_data): Delete la_emitchar initializer.
8298 (pascal_language::emitchar): New member function, implementation
8299 from pascal_emit_char.
8300 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8301 (rust_language_data): Delete la_emitchar initializer.
8302 (rust_language::emitchar): New member function, implementation
8303 from rust_emitchar.
8304
1bf9c363
AB
83052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8306
8307 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8308 (ada_language_data): Delete la_post_parser initializer.
8309 (ada_language::post_parser): New member function.
8310 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8311 (cplus_language_data): Likewise.
8312 (asm_language_data): Likewise.
8313 (minimal_language_data): Likewise.
8314 * d-lang.c (d_language_data): Likewise.
8315 * f-lang.c (f_language_data): Likewise.
8316 * go-lang.c (go_language_data): Likewise.
8317 * language.c (unknown_language_data): Likewise.
8318 (auto_language_data): Likewise.
8319 * language.h (language_data): Delete la_post_parser field.
8320 (language_defn::post_parser): New member function.
8321 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8322 * objc-lang.c (objc_language_data): Likewise.
8323 * opencl-lang.c (opencl_language_data): Likewise.
8324 * p-lang.c (pascal_language_data): Likewise.
8325 * parse.c (parse_exp_in_context): Update call to post_parser.
8326 (null_post_parser): Delete definition.
8327 * parser-defs.h (null_post_parser): Delete declaration.
8328 * rust-lang.c (rust_language_data): Delete la_post_parser
8329 initializer.
8330
87afa652
AB
83312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8332
8333 * ada-lang.c (parse): Rename to ada_language::parser.
8334 (ada_language_data): Delete la_parser initializer.
8335 (ada_language::parser): New member function, implementation from
8336 parse.
8337 * c-lang.c (c_language_data): Delete la_parser initializer.
8338 (cplus_language_data): Likewise.
8339 (asm_language_data): Likewise.
8340 (minimal_language_data): Likewise.
8341 * d-lang.c (d_language_data): Likewise.
8342 (d_language::parser): New member function.
8343 * f-lang.c (f_language_data): Delete la_parser initializer.
8344 (f_language::parser): New member function.
8345 * go-lang.c (go_language_data): Delete la_parser initializer.
8346 (go_language::parser): New member function.
8347 * language.c (unk_lang_parser): Delete.
8348 (language_defn::parser): Define new member function.
8349 (unknown_language_data): Delete la_parser initializer.
8350 (unknown_language::parser): New member function.
8351 (auto_language_data): Delete la_parser initializer.
8352 (auto_language::parser): New member function.
8353 * language.h (language_data): Delete la_parser field.
8354 (language_defn::parser): Declare new member function.
8355 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8356 (m2_language::parser): New member function.
8357 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8358 * opencl-lang.c (opencl_language_data): Likewise.
8359 * p-lang.c (pascal_language_data): Likewise.
8360 (pascal_language::parser): New member function.
8361 * parse.c (parse_exp_in_context): Update call to parser.
8362 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8363 (rust_language::parser): New member function.
8364
37825800
AB
83652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8366
8367 * top.c (print_gdb_configuration): Print --with-python-libdir
8368 configuration value.
8369
5b860c93
PW
83702020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8371
8372 * NEWS: Mention change to the alias command.
8373
cf00cd6f
PW
83742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8375
8376 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8377 (alias_command_completer)
8378 (make_alias_options_def_group): New functions.
8379 (alias_opts, alias_option_defs): New struct and array.
8380 (alias_usage_error): Update usage.
8381 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8382 Use option framework.
8383 (_initialize_cli_cmds): Update alias command help.
8384 Update aliases command help.
8385 (show_user):
8386 Add NULL for new default_args lookup_cmd argument.
8387 (valid_command_p): Rename to validate_aliased_command.
8388 Add NULL for new default_args lookup_cmd argument. Verify that the
8389 aliased_command has no default args.
8390 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8391 (lookup_cmd_1, lookup_cmd): New argument default_args.
8392 (add_alias_cmd):
8393 Add NULL for new default_args lookup_cmd argument.
8394 (print_help_for_command): Show default args under the layout
8395 alias some_alias = some_aliased_cmd some_alias_default_arg.
8396 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8397 xfree default_args in destructor.
8398 * cli/cli-script.c (process_next_line, do_define_command):
8399 Add NULL for new default_args lookup_cmd argument.
8400 * command.h: Declare new default_args argument in lookup_cmd
8401 and lookup_cmd_1.
8402 * completer.c (complete_line_internal_1):
8403 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8404 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8405 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8406 Likewise.
8407 * infcmd.c (_initialize_infcmd): Likewise.
8408 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8409 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8410 * python/py-param.c (add_setshow_generic): Likewise.
8411 * remote.c (_initialize_remote): Likewise.
8412 * top.c (execute_command): Prepend default_args if command has some.
8413 (set_verbose):
8414 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8415 * tracepoint.c (validate_actionline, encode_actions_1):
8416 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8417
bd920864
TBA
84182020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8419
8420 * jit.c (jit_read_descriptor): Use bool as the return type.
8421 (jit_breakpoint_re_set_internal): Use bool as the return type.
8422 Invert the return value logic; return true if the jit breakpoint
8423 has been successfully initialized.
8424 (jit_inferior_init): Update the call to
8425 jit_breakpoint_re_set_internal.
8426
f8098322
PA
84272020-06-22 Pedro Alves <palves@redhat.com>
8428
8429 PR gdb/25939
8430 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8431 Use the current inferior instead. Don't return
8432 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8433 wait again.
8434 * sol-thread.c (sol_thread_target::wait): Don't reference
8435 inferior_ptid.
8436 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8437 (sol_update_thread_list_callback): Use the current inferior's pid
8438 instead of inferior_ptid.
8439
196535a6
RO
84402020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8441
8442 * procfs.c: Cleanup many comments.
8443
8444 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8445 (AFTER_WATCHFLAG): Replace by value.
8446
8447 (MAIN_PROC_NAME_FORMAT): Inline ...
8448 (create_procinfo): ... here.
8449
8450 (procfs_debug_inferior): Remove SYS_exec handling.
8451 (syscall_is_exec): Likewise.
8452 (procfs_set_exec_trap): Likewise.
8453
8454 (syscall_is_lwp_exit): Inline in callers.
8455 (syscall_is_exit): Likewise.
8456 (syscall_is_exec): Likewise.
8457 (syscall_is_lwp_create): Likewise.
8458
8459 (invalidate_cache): Remove #if 0 code.
8460
8461 (make_signal_thread_runnable): Remove.
8462 (procfs_target::resume): Remove #if 0 code.
8463
cf6f3e86
RO
84642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8465
8466 PR gdb/25939
8467 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8468 call ...
8469 (procfs_target::create_inferior): ... here.
8470
48e9cc84
PW
84712020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8472
8473 * exec.c (validate_exec_file): Ensure the build-id is up to
8474 date by calling reopen_exec_file (that checks file timestamp
8475 to decide to re-read the file).
8476
3922b302
PA
84772020-06-18 Pedro Alves <palves@redhat.com>
8478
8479 PR gdb/25412
8480 * gdbthread.h (delete_thread, delete_thread_silent)
8481 (find_thread_ptid): Update comments.
8482 * thread.c (current_thread_): New global.
8483 (is_current_thread): Move higher, and reimplement.
8484 (inferior_thread): Reimplement.
8485 (set_thread_exited): Use bool. Add assertions.
8486 (add_thread_silent): Simplify thread-reuse handling by always
8487 calling delete_thread.
8488 (delete_thread): Remove intro comment.
8489 (find_thread_ptid): Skip exited threads.
8490 (switch_to_thread_no_regs): Write to current_thread_.
8491 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8492 INFERIOR_PTID. Clear current_thread_.
8493
6dbdab44
PA
84942020-06-18 Pedro Alves <palves@redhat.com>
8495
8496 * aix-thread.c (pd_update): Use switch_to_thread.
8497
2da4b788
PA
84982020-06-18 Pedro Alves <palves@redhat.com>
8499
8500 * ravenscar-thread.c (ravenscar_thread_target): Update.
8501 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8502 (ravenscar_thread_target::add_active_thread): ... this. Don't
8503 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8504 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8505
50838d1b
PA
85062020-06-18 Pedro Alves <palves@redhat.com>
8507
8508 * nat/windows-nat.c (current_windows_thread): Remove.
8509 * nat/windows-nat.h (current_windows_thread): Remove.
8510 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8511 Adjust.
8512 (display_selectors): Adjust to fetch the current
8513 windows_thread_info based on inferior_ptid.
8514 (fake_create_process): No longer write to current_windows_thread.
8515 (windows_nat_target::get_windows_debug_event):
8516 Don't set inferior_ptid or current_windows_thread.
8517 (windows_nat_target::wait): Adjust to not rely on
8518 current_windows_thread.
8519 (do_initial_windows_stuff): Now a method of windows_nat_target.
8520 Switch to the last_ptid thread.
8521 (windows_nat_target::attach): Adjust.
8522 (windows_nat_target::detach): Use switch_to_no_thread instead of
8523 writing to inferior_ptid directly.
8524 (windows_nat_target::create_inferior): Adjust.
8525
31ce04e9
PA
85262020-06-18 Pedro Alves <palves@redhat.com>
8527
8528 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8529
1ee1a363
PA
85302020-06-18 Pedro Alves <palves@redhat.com>
8531
8532 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8533 after creating it, instead of writing to inferior_ptid. Don't
8534 write to inferior_ptid.
8535
6d350754
PA
85362020-06-18 Pedro Alves <palves@redhat.com>
8537
8538 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8539
5d971d48
PA
85402020-06-18 Pedro Alves <palves@redhat.com>
8541
8542 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8543 it, instead of writing to inferior_ptid.
8544
86e57d1b
PA
85452020-06-18 Pedro Alves <palves@redhat.com>
8546
8547 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8548 to inferior_ptid.
8549
f2e1c129
PA
85502020-06-18 Pedro Alves <palves@redhat.com>
8551
8552 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8553 instead of writing to inferior_ptid directly.
8554
60db1b85
PA
85552020-06-18 Pedro Alves <palves@redhat.com>
8556
8557 * corelow.c (core_target::close): Use switch_to_no_thread instead
8558 of writing to inferior_ptid directly.
8559 (add_to_thread_list, core_target_open): Use switch_to_thread
8560 instead of writing to inferior_ptid directly.
8561
fe7d6a8d
PA
85622020-06-18 Pedro Alves <palves@redhat.com>
8563
8564 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8565 inferior_ptid.
8566 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8567 inferior_ptid.
8568 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8569 inferior_ptid directly.
8570 (darwin_nat_target::init_thread_list): Switch to thread, instead
8571 of writing to inferior_ptid.
8572 (darwin_nat_target::attach): Don't write to inferior_ptid.
8573 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8574
975f8708
PA
85752020-06-18 Pedro Alves <palves@redhat.com>
8576
8577 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8578 thread.
8579 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8580 Instead use switch_to_thread.
8581 (gnu_nat_target::detach): Use switch_to_no_thread
8582 instead of writing to inferior_ptid directly. Used passed-in
8583 inferior instead of looking up the inferior by pid.
8584
1a204730
PA
85852020-06-18 Pedro Alves <palves@redhat.com>
8586
8587 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8588 inferior_ptid.
8589
ebe84f23
PA
85902020-06-18 Pedro Alves <palves@redhat.com>
8591
8592 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8593 inferior_ptid.
8594 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8595 thread.
8596 (nto_procfs_target::detach): Avoid referencing
8597 inferior_ptid. Use switch_to_no_thread instead of writing to
8598 inferior_ptid directly.
8599 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8600 instead of writing to inferior_ptid directly.
8601 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8602 to thread.
8603
191f02e5
PA
86042020-06-18 Pedro Alves <palves@redhat.com>
8605
8606 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8607 after creating it, instead of writing to inferior_ptid.
8608 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8609 to inferior_ptid directly.
8610 (gdbsim_target::wait): Don't write to inferior_ptid.
8611
0ac55310
PA
86122020-06-18 Pedro Alves <palves@redhat.com>
8613
8614 * remote.c (remote_target::remote_notice_new_inferior): Use
8615 switch_to_thread instead of writing to inferior_ptid directly.
8616 (remote_target::add_current_inferior_and_thread): Use
8617 switch_to_no_thread instead of writing to inferior_ptid directly.
8618 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8619 and switch_to_thread instead of using set_current_inferior or
8620 writing to inferior_ptid directly.
8621
5233f39b
PA
86222020-06-18 Pedro Alves <palves@redhat.com>
8623
8624 * tracectf.c (ctf_target_open): Switch to added thread instead of
8625 writing to inferior_ptid directly.
8626 (ctf_target::close): Use switch_to_no_thread instead of writing to
8627 inferior_ptid directly.
8628
087e161b
PA
86292020-06-18 Pedro Alves <palves@redhat.com>
8630
8631 * tracefile-tfile.c (tfile_target_open): Don't write to
8632 inferior_ptid directly, instead switch to added thread.
8633 (tfile_target::close): Use switch_to_no_thread instead of writing
8634 to inferior_ptid directly.
8635
7fb43e53
PA
86362020-06-18 Pedro Alves <palves@redhat.com>
8637
8638 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8639 (procfs_target::detach): Use switch_to_no_thread
8640 instead of writing to inferior_ptid directly.
8641 (do_attach): Change return type to void. Switch to the added
8642 thread.
8643 (procfs_target::create_inferior): Switch to the added thread.
8644 (procfs_do_thread_registers): Don't write to inferior_ptid.
8645
18493a00
PA
86462020-06-18 Pedro Alves <palves@redhat.com>
8647
8648 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8649 of writing to inferior_ptid.
8650 (scoped_restore_exited_inferior): Delete.
8651 (handle_vfork_child_exec_or_exit): Simplify using
8652 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8653 instead of writing to inferior_ptid.
8654 (THREAD_STOPPED_BY): Delete.
8655 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8656 (thread_stopped_by_hw_breakpoint): Delete.
8657 (save_waitstatus): Use
8658 scoped_restore_current_thread+switch_to_thread, and call
8659 target_stopped_by_watchpoint instead of
8660 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8661 instead of thread_stopped_by_sw_breakpoint, and
8662 target_stopped_by_hw_breakpoint instead of
8663 thread_stopped_by_hw_breakpoint.
8664 (handle_inferior_event)
8665 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8666 inferior_ptid directly, nor
8667 set_current_inferior/set_current_program_space. Use
8668 switch_to_thread / switch_to_inferior_no_thread instead.
8669
a0776b13
PA
86702020-06-18 Pedro Alves <palves@redhat.com>
8671
8672 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8673 instead of writing to inferior_ptid.
8674
6155c136
PA
86752020-06-18 Pedro Alves <palves@redhat.com>
8676
8677 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8678 added thread.
8679 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8680 to the added thread.
8681 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8682 instead of writing to inferior_ptid.
8683
c5316fc6
PA
86842020-06-18 Pedro Alves <palves@redhat.com>
8685
8686 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8687 (register_to_value_test): Mock a program_space too. Heap-allocate
8688 the address space. Don't write to inferior_ptid. Use
8689 switch_to_thread instead.
8690
8df01799
PA
86912020-06-18 Pedro Alves <palves@redhat.com>
8692
8693 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8694 Delete.
8695 (find_signalled_thread()): New, factored out from
8696 linux_make_corefile_notes and adjusted to handle exited threads.
8697 (linux_make_corefile_notes): Adjust to use the new
8698 find_signalled_thread.
8699
41792d68
PA
87002020-06-18 Pedro Alves <palves@redhat.com>
8701
8702 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8703 of saving/restoring inferior_ptid.
8704
612f258a
TT
87052020-06-17 Tom Tromey <tom@tromey.com>
8706
8707 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8708 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8709 declare.
8710 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8711
efb763a5
SM
87122020-06-15 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8715 of partial symtabs.
8716
2951f6c0
SM
87172020-06-17 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * regformats/reg-arm.dat: Remove.
8720 * regformats/reg-bfin.dat: Remove.
8721 * regformats/reg-cris.dat: Remove.
8722 * regformats/reg-crisv32.dat: Remove.
8723 * regformats/reg-m32r.dat: Remove.
8724 * regformats/reg-tilegx.dat: Remove.
8725 * regformats/reg-tilegx32.dat: Remove.
8726
7d458ea5
SM
87272020-06-17 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * features/Makefile (WHICH): Remove arm files.
8730 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8731 * regformats/arm/arm-with-neon.dat: Remove.
8732 * regformats/arm/arm-with-vfpv2.dat: Remove.
8733 * regformats/arm/arm-with-vfpv3.dat: Remove.
8734
3af96c0d
SM
87352020-06-17 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * features/Makefile (XMLTOC): Remove rx.xml.
8738
b25e22fd
PA
87392020-06-17 Pedro Alves <palves@redhat.com>
8740
8741 * gdbthread.h (thread_control_state) <trap_expected> Update
8742 comments.
8743
a78a19b1
AB
87442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8747 ada_language::lookup_symbol_nonlocal.
8748 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8749 (ada_language::lookup_symbol_nonlocal): New member function,
8750 implementation from ada_lookup_symbol_nonlocal.
8751 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8752 initializer.
8753 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8754 initializer.
8755 (cplus_language::lookup_symbol_nonlocal): New member function.
8756 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8757 (minimal_language_data) Likewise.
8758 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8759 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8760 initializer.
8761 (d_language::lookup_symbol_nonlocal): New member function.
8762 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8763 initializer.
8764 (f_language::lookup_symbol_nonlocal): New member function.
8765 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8766 initializer.
8767 * language.c (unknown_language_data): Likewise.
8768 (auto_language_data): Likewise.
8769 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8770 field.
8771 (language_defn::lookup_symbol_nonlocal): New member function.
8772 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8773 initializer.
8774 * objc-lang.c (objc_language_data): Likewise.
8775 * opencl-lang.c (opencl_language_data): Likewise.
8776 * p-lang.c (pascal_language_data): Likewise.
8777 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8778 rust_language::lookup_symbol_nonlocal.
8779 (rust_language_data): Delete la_lookup_symbol_nonlocal
8780 initializer.
8781 (rust_language::lookup_symbol_nonlocal): New member function,
8782 implementation from rust_lookup_symbol_nonlocal.
8783 * symtab.c (lookup_symbol_aux): Update call to
8784 lookup_symbol_nonlocal.
8785 (basic_lookup_symbol_nonlocal): Rename to...
8786 (language_defn::lookup_symbol_nonlocal): ...this, and update
8787 header comment. Remove language_defn parameter, and replace with
8788 uses of `this'.
8789 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8790
ebe2334e
AB
87912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8792
8793 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8794 initializer.
8795 (ada_language::value_print_inner): New member function.
8796 * c-lang.c (c_language_data): Delete la_value_print_inner
8797 initializer.
8798 (cplus_language_data): Likewise.
8799 (asm_language_data): Likewise.
8800 (minimal_language_data): Likewise.
8801 * d-lang.c (d_language_data): Likewise.
8802 (d_language::value_print_inner): New member function.
8803 * f-lang.c (f_language_data): Delete la_value_print_inner
8804 initializer.
8805 (f_language::value_print_inner): New member function.
8806 * f-lang.h (f_value_print_innner): Rename to...
8807 (f_value_print_inner): ...this (note spelling of 'inner').
8808 * f-valprint.c (f_value_print_innner): Rename to...
8809 (f_value_print_inner): ...this (note spelling of 'inner').
8810 * go-lang.c (go_language_data): Delete la_value_print_inner
8811 initializer.
8812 (go_language::value_print_inner): New member function.
8813 * language.c (language_defn::value_print_inner): Define new member
8814 function.
8815 (unk_lang_value_print_inner): Delete.
8816 (unknown_language_data): Delete la_value_print_inner initializer.
8817 (unknown_language::value_print_inner): New member function.
8818 (auto_language_data): Delete la_value_print_inner initializer.
8819 (auto_language::value_print_inner): New member function.
8820 * language.h (language_data): Delete la_value_print_inner field.
8821 (language_defn::value_print_inner): Delcare new member function.
8822 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8823 initializer.
8824 (m2_language::value_print_inner): New member function.
8825 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8826 initializer.
8827 * opencl-lang.c (opencl_language_data): Likewise.
8828 * p-lang.c (pascal_language_data): Likewise.
8829 (pascal_language::value_print_inner): New member function.
8830 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8831 initializer.
8832 (rust_language::value_print_inner): New member function.
8833 * valprint.c (do_val_print): Update call to value_print_inner.
8834
a1d1fa3e
AB
88352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8836
8837 * ada-lang.c (ada_language_data): Delete la_value_print
8838 initializer.
8839 (ada_language::value_print): New member function.
8840 * c-lang.c (c_language_data): Delete la_value_print initializer.
8841 (cplus_language_data): Likewise.
8842 (asm_language_data): Likewise.
8843 (minimal_language_data): Likewise.
8844 * d-lang.c (d_language_data): Likewise.
8845 * f-lang.c (f_language_data): Likewise.
8846 * go-lang.c (go_language_data): Likewise.
8847 * language.c (unk_lang_value_print): Delete.
8848 (language_defn::value_print): Define new member function.
8849 (unknown_language_data): Delete la_value_print initializer.
8850 (unknown_language::value_print): New member function.
8851 (auto_language_data): Delete la_value_print initializer.
8852 (auto_language::value_print): New member function.
8853 * language.h (language_data): Delete la_value_print field.
8854 (language_defn::value_print): Declare new member function.
8855 (LA_VALUE_PRINT): Update call to value_print.
8856 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8857 * objc-lang.c (objc_language_data): Likewise.
8858 * opencl-lang.c (opencl_language_data): Likewise.
8859 * p-lang.c (pascal_language_data): Likewise.
8860 (pascal_language::value_print): New member function.
8861 * rust-lang.c (rust_language_data): Delete la_value_print
8862 initializer.
8863
f16a9f57
AB
88642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8865
8866 * ada-lang.c (ada_watch_location_expression): Rename to
8867 ada_language::watch_location_expression.
8868 (ada_language_data): Delete la_watch_location_expression
8869 initializer.
8870 (ada_language::watch_location_expression): New member function,
8871 implementation from ada_watch_location_expression.
8872 * breakpoint.c (watch_command_1): Update call to
8873 watch_location_expression.
8874 * c-lang.c (c_watch_location_expression): Rename to
8875 language_defn::watch_location_expression.
8876 (c_language_data): Delete la_watch_location_expression
8877 initializer.
8878 (cplus_language_data): Likewise.
8879 (asm_language_data): Likewise.
8880 (minimal_language_data): Likewise.
8881 * c-lang.h (c_watch_location_expression): Delete declaration.
8882 * d-lang.c (d_language_data): Delete la_watch_location_expression
8883 initializer.
8884 * f-lang.c (f_language_data): Likewise.
8885 * go-lang.c (go_language_data): Likewise.
8886 * language.c (language_defn::watch_location_expression): Member
8887 function implementation from c_watch_location_expression.
8888 (unknown_language_data): Delete la_watch_location_expression
8889 initializer.
8890 (auto_language_data): Likewise.
8891 * language.h (language_data): Delete la_watch_location_expression
8892 field.
8893 (language_defn::watch_location_expression): Declare new member
8894 function.
8895 * m2-lang.c (m2_language_data): Delete
8896 la_watch_location_expression initializer.
8897 * objc-lang.c (objc_language_data): Likewise.
8898 * opencl-lang.c (opencl_language_data): Likewise.
8899 * p-lang.c (pascal_language_data): Likewise.
8900 * rust-lang.c (rust_watch_location_expression): Rename to
8901 rust_language::watch_location_expression.
8902 (rust_language_data): Delete la_watch_location_expression
8903 initializer.
8904 (rust_language::watch_location_expression): New member function,
8905 implementation from rust_watch_location_expression.
8906
7e56227d
AB
89072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8908
8909 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8910 ada_language::collect_symbol_completion_matches.
8911 (ada_language_data): Delete la_collect_symbol_completion_matches
8912 initializer.
8913 (ada_language::collect_symbol_completion_matches): New member
8914 function, implementation from
8915 ada_collect_symbol_completion_matches.
8916 * c-lang.c (c_language_data): Delete
8917 la_collect_symbol_completion_matches initializer.
8918 (cplus_language_data): Likewise.
8919 (asm_language_data): Likewise.
8920 (minimal_language_data): Likewise.
8921 * d-lang.c (d_language_data): Likewise.
8922 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8923 f_language::collect_symbol_completion_matches.
8924 (f_language_data): Delete la_collect_symbol_completion_matches
8925 initializer.
8926 (f_language::collect_symbol_completion_matches) New member
8927 function, implementation from f_collect_symbol_completion_matches.
8928 * go-lang.c (go_language_data): Delete
8929 la_collect_symbol_completion_matches initializer.
8930 * language.c (unknown_language_data): Likewise.
8931 (auto_language_data): Likewise.
8932 * language.h (language_data): Delete
8933 la_collect_symbol_completion_matches field.
8934 (language_defn::collect_symbol_completion_matches): New member
8935 function.
8936 * m2-lang.c (m2_language_data): Delete
8937 la_collect_symbol_completion_matches initializer.
8938 * objc-lang.c (objc_language_data): Likewise.
8939 * opencl-lang.c (opencl_language_data): Likewise.
8940 * p-lang.c (pascal_language_data): Likewise.
8941 * rust-lang.c (rust_language_data): Likewise.
8942 * symtab.c (default_collect_symbol_completion_matches): Delete.
8943 (collect_symbol_completion_matches): Update call to
8944 collect_symbol_completion_matches.
8945 (collect_symbol_completion_matches_type): Likewise.
8946 * symtab.h (default_collect_symbol_completion_matches): Delete
8947 declaration.
8948
53fc67f8
AB
89492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8950
8951 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8952 (ada_language_data): Delete la_word_break_characters initializer.
8953 (ada_language::word_break_characters): New member function.
8954 * c-lang.c (c_language_data): Delete la_word_break_characters
8955 initializer.
8956 (cplus_language_data): Likewise.
8957 (asm_language_data): Likewise.
8958 (minimal_language_data): Likewise.
8959 * completer.c: Update global comment.
8960 (advance_to_expression_complete_word_point): Update call to
8961 word_break_characters.
8962 (complete_files_symbols): Likewise.
8963 (complete_line_internal_1): Likewise.
8964 (default_completer_handle_brkchars): Likewise.
8965 (skip_quoted_chars): Likewise.
8966 * d-lang.c (d_language_data): Delete la_word_break_characters
8967 initializer.
8968 * f-lang.c (f_word_break_characters): Delete.
8969 (f_language_data): Delete la_word_break_characters initializer.
8970 (f_language::word_break_characters): New member function.
8971 * go-lang.c (go_language_data): Delete la_word_break_characters
8972 initializer.
8973 * language.c (unknown_language_data): Likewise.
8974 (auto_language_data): Likewise.
8975 * language.h (default_word_break_characters): Move declaration to
8976 earlier in the file.
8977 (language_data): Delete la_word_break_characters field.
8978 (language_defn::word_break_characters): New member function.
8979 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8980 initializer.
8981 * objc-lang.c (objc_language_data): Likewise.
8982 * opencl-lang.c (opencl_language_data): Likewise.
8983 * p-lang.c (pascal_language_data): Likewise.
8984 * rust-lang.c (rust_language_data): Likewise.
8985
c9debfb9
AB
89862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8987
8988 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8989 (ada_language_data): Delete la_get_symbol_name_matcher
8990 initializer.
8991 (language_defn::get_symbol_name_matcher_inner): New member
8992 function.
8993 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8994 initializer.
8995 (cplus_language_data): Likewise.
8996 (cplus_language::get_symbol_name_matcher_inner): New member
8997 function.
8998 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8999 (minimal_language_data): Likewise.
9000 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9001 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9002 initializer.
9003 * dictionary.c (iter_match_first_hashed): Update call to
9004 get_symbol_name_matcher.
9005 (iter_match_next_hashed): Likewise.
9006 (iter_match_next_linear): Likewise.
9007 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9008 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9009 initializer.
9010 (f_language::get_symbol_name_matcher_inner): New member function.
9011 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9012 initializer.
9013 * language.c (default_symbol_name_matcher): Update header comment,
9014 make static.
9015 (language_defn::get_symbol_name_matcher): New definition.
9016 (language_defn::get_symbol_name_matcher_inner): Likewise.
9017 (get_symbol_name_matcher): Delete.
9018 (unknown_language_data): Delete la_get_symbol_name_matcher
9019 initializer.
9020 (auto_language_data): Likewise.
9021 * language.h (language_data): Delete la_get_symbol_name_matcher
9022 field.
9023 (language_defn::get_symbol_name_matcher): New member function.
9024 (language_defn::get_symbol_name_matcher_inner): Likewise.
9025 (default_symbol_name_matcher): Delete declaration.
9026 * linespec.c (find_methods): Update call to
9027 get_symbol_name_matcher.
9028 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9029 initializer.
9030 * minsyms.c (lookup_minimal_symbol): Update call to
9031 get_symbol_name_matcher.
9032 (iterate_over_minimal_symbols): Likewise.
9033 * objc-lang.c (objc_language_data): Delete
9034 la_get_symbol_name_matcher initializer.
9035 * opencl-lang.c (opencl_language_data): Likewise.
9036 * p-lang.c (pascal_language_data): Likewise.
9037 * psymtab.c (psymbol_name_matches): Update call to
9038 get_symbol_name_matcher.
9039 * rust-lang.c (rust_language_data): Delete
9040 la_get_symbol_name_matcher initializer.
9041 * symtab.c (symbol_matches_search_name): Update call to
9042 get_symbol_name_matcher.
9043 (compare_symbol_name): Likewise.
9044
9a49ad8c
AB
90452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9046
9047 * ada-lang.c (ada_language_data): Delete la_compute_program
9048 initializer.
9049 * c-lang.c (c_language_data): Likewise.
9050 (c_language::compute_program): New member function.
9051 (cplus_language_data): Delete la_compute_program initializer.
9052 (cplus_language::compute_program): New member function.
9053 (asm_language_data): Delete la_compute_program initializer.
9054 (minimal_language_data): Likewise.
9055 * c-lang.h (c_compute_program): Update comment.
9056 (cplus_compute_program): Likewise.
9057 * compile/compile-c-support.c (c_compute_program): Likewise.
9058 (cplus_compute_program): Likewise.
9059 * compile/compile.c (compile_to_object): Update call to
9060 la_compute_program.
9061 * d-lang.c (d_language_data): Delete la_compute_program
9062 initializer.
9063 * f-lang.c (f_language_data): Likewise.
9064 * go-lang.c (go_language_data): Likewise.
9065 * language.c (unknown_language_data): Likewise.
9066 (auto_language_data): Likewise.
9067 * language.h (language_data): Delete la_compute_program field.
9068 (language_defn::compute_program): New member function.
9069 * m2-lang.c (m2_language_data): Delete la_compute_program
9070 initializer.
9071 * objc-lang.c (objc_language_data): Likewise.
9072 * opencl-lang.c (opencl_language_data): Likewise.
9073 * p-lang.c (pascal_language_data): Likewise.
9074 * rust-lang.c (rust_language_data): Likewise.
9075
eff93b4d
AB
90762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9077
9078 * ada-lang.c (ada_language_data) Delete
9079 la_class_name_from_physname initializer.
9080 * c-lang.c (c_language_data): Likewise.
9081 (cplus_language_data): Likewise.
9082 (cplus_language::class_name_from_physname): New member function.
9083 (asm_language_data): Delete la_class_name_from_physname
9084 initializer.
9085 (minimal_language_data): Likewise.
9086 * d-lang.c (d_language_data): Likewise.
9087 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9088 method on language_defn class.
9089 (guess_full_die_structure_name): Likewise.
9090 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9091 initializer.
9092 * go-lang.c (go_language_data): Likewise.
9093 * language.c (language_class_name_from_physname): Delete.
9094 (unk_lang_class_name): Delete.
9095 (unknown_language_data): Delete la_class_name_from_physname
9096 initializer.
9097 (auto_language_data): Likewise.
9098 * language.h (language_data): Delete la_class_name_from_physname
9099 field.
9100 (language_defn::class_name_from_physname): New function.
9101 (language_class_name_from_physname): Delete declaration.
9102 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9103 initializer.
9104 * objc-lang.c (objc_language_data): Likewise.
9105 * opencl-lang.c (opencl_language_data): Likewise.
9106 * p-lang.c (pascal_language_data): Likewise.
9107 * rust-lang.c (rust_language_data): Likewise.
9108
de543742
TT
91092020-06-16 Tom Tromey <tom@tromey.com>
9110
9111 * tui/tui-data.h (STATUS_NAME): New macro.
9112 * tui/tui-layout.c (tui_remove_some_windows)
9113 (initialize_known_windows, tui_register_window)
9114 (tui_layout_split::remove_windows, initialize_layouts)
9115 (tui_new_layout_command): Don't use hard-coded window names.
9116
a350efd4
TT
91172020-06-16 Tom Tromey <tom@tromey.com>
9118
9119 PR tui/25348:
9120 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9121 tui_initialize_readline. Only run once. Call rl_initialize.
9122 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9123 tui_initialize_readline.
9124 * tui/tui-io.c (tui_setup_io): Call
9125 tui_ensure_readline_initialized.
9126 * tui/tui-interp.c (tui_interp::init): Update.
9127
39ec0490
TT
91282020-06-16 Tom Tromey <tom@tromey.com>
9129
9130 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9131 Also preserve the status window.
9132
d2d1ea20
TT
91332020-06-16 Tom Tromey <tom@tromey.com>
9134
9135 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9136 where m_window==nullptr.
9137
66920317
TT
91382020-06-15 Tom Tromey <tromey@adacore.com>
9139
9140 * windows-nat.c (windows_nat::handle_output_debug_string):
9141 Update.
9142 (windows_nat::handle_ms_vc_exception): Update.
9143 * target.h (target_read_string): Change API.
9144 * target.c (target_read_string): Change API.
9145 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9146 Update.
9147 * solib-frv.c (frv_current_sos): Update.
9148 * solib-dsbt.c (dsbt_current_sos): Update.
9149 * solib-darwin.c (darwin_current_sos): Update.
9150 * linux-thread-db.c (inferior_has_bug): Update.
9151 * expprint.c (print_subexp_standard): Update.
9152 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9153 (ada_exception_message_1): Update.
9154
a5d871dd
TT
91552020-06-15 Tom Tromey <tromey@adacore.com>
9156
9157 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9158
670e35fa
TT
91592020-06-15 Tom Tromey <tromey@adacore.com>
9160
9161 * valprint.c (read_string): Update comment.
9162 * target.c (MIN): Remove.
9163 (target_read_string): Rewrite.
9164
f5272a3b
TT
91652020-06-15 Tom Tromey <tromey@adacore.com>
9166
9167 * corefile.c (read_memory_string): Remove.
9168 * ada-valprint.c (ada_value_print_ptr): Update.
9169 * ada-lang.h (ada_tag_name): Change return type.
9170 * ada-lang.c (type_from_tag): Update.
9171 (ada_tag_name_from_tsd): Change return type. Use
9172 target_read_string.
9173 (ada_tag_name): Likewise.
9174 * gdbcore.h (read_memory_string): Don't declare.
9175
2c074f49
HD
91762020-06-14 Hannes Domani <ssbssa@yahoo.de>
9177
9178 * symtab.c (rbreak_command): Ignore Windows drive colon.
9179
6a17d503
SM
91802020-06-12 Simon Marchi <simon.marchi@efficios.com>
9181
9182 * NEWS: Mention removed GDBserver host support.
9183
453c733f
NC
91842020-06-12 Nelson Chu <nelson.chu@sifive.com>
9185
9186 * features/riscv/rebuild-csr-xml.sh: Updated.
9187
2b4e6a3f
TT
91882020-06-11 Tom Tromey <tom@tromey.com>
9189
9190 PR gdb/18318:
9191 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9192
4412332f
JG
91932020-06-09 Jonny Grant <jg@jguk.org>
91942020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9195
9196 * main.c (captured_main_1): Don't print new line after help.
9197 (print_gdb_help): add mailing list and IRC channel information
9198 to --help. Add new lines between items in the footer. Remove
9199 quotes around bug url.
9200
2f33032a
KS
92012020-06-11 Keith Seitz <keiths@redhat.com>
9202
9203 PR gdb/21356
9204 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9205 Resolve typedefs for type length calculations.
9206
7ab96794
TV
92072020-06-10 Tom de Vries <tdevries@suse.de>
9208
9209 PR ada/24713
9210 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9211 (write_psymbols): Enable .gdb_index for ada.
9212 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9213 ada.
9214
e5f3ece2
TV
92152020-06-10 Tom de Vries <tdevries@suse.de>
9216
9217 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9218 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9219 namei" instead of "const char *name" argument.
9220 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9221 dw2_symtab_iter_init.
9222
940da03e
SM
92232020-06-08 Simon Marchi <simon.marchi@efficios.com>
9224
9225 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9226 to use type::field and field::type instead.
9227
b6cdac4b
SM
92282020-06-08 Simon Marchi <simon.marchi@efficios.com>
9229
9230 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9231 to use field::type instead.
9232
5d14b6e5
SM
92332020-06-08 Simon Marchi <simon.marchi@efficios.com>
9234
9235 * gdbtypes.h (struct field) <type, set_type>: New methods.
9236 Rename `type` field to...
9237 <m_type>: ... this. Change references throughout to use type or
9238 set_type methods.
9239 (FIELD_TYPE): Use field::type. Change call sites that modify
9240 the field's type to use field::set_type instead.
9241
3d967001
SM
92422020-06-08 Simon Marchi <simon.marchi@efficios.com>
9243
9244 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9245 to use type::index_type instead.
9246
262abc0d
SM
92472020-06-08 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9250 methods.
9251 (TYPE_INDEX_TYPE): Use type::index_type.
9252 * gdbtypes.c (create_array_type_with_stride): Likewise.
9253
82836c92
TT
92542020-06-07 Tom Tromey <tom@tromey.com>
9255
9256 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9257 parameter.
9258 (generic_value_print): Update.
9259
940dace9
AB
92602020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9261
9262 Revert commit 982a38f60b0.
9263 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9264
982a38f6
AB
92652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9266
9267 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9268 avoid use after free.
9269
82f06518
TV
92702020-06-05 Tom de Vries <tdevries@suse.de>
9271
9272 * NEWS: Fix typos.
9273
f8c41851
SM
92742020-06-04 Simon Marchi <simon.marchi@efficios.com>
9275
9276 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9277 the per_bfd object.
9278 (dwarf2_read_debug_names): Likewise.
9279 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9280 object when re-using a per_bfd object with an index.
9281
f9b5d5ea
TV
92822020-06-03 Tom de Vries <tdevries@suse.de>
9283
9284 PR symtab/26046
9285 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9286 children for C++.
9287 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9288 DW_TAG_subprogram.
9289
f6eee2d0
AB
92902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9291
9292 * ada-lang.c (ada_language_data): Delete skip_trampoline
9293 initializer.
9294 * c-lang.c (c_language_data): Likewise.
9295 (cplus_language_data): Likewise.
9296 (cplus_language::skip_trampoline): New member function.
9297 (asm_language_data): Delete skip_trampoline initializer.
9298 (minimal_language_data): Likewise.
9299 * d-lang.c (d_language_data): Likewise.
9300 * f-lang.c (f_language_data): Likewise.
9301 * go-lang.c (go_language_data): Likewise.
9302 * language.c (unk_lang_trampoline): Delete function.
9303 (skip_language_trampoline): Update.
9304 (unknown_language_data): Delete skip_trampoline initializer.
9305 (auto_language_data): Likewise.
9306 * language.h (language_data): Delete skip_trampoline field.
9307 (language_defn::skip_trampoline): New function.
9308 * m2-lang.c (m2_language_data): Delete skip_trampoline
9309 initializer.
9310 * objc-lang.c (objc_skip_trampoline): Delete function, move
9311 implementation to objc_language::skip_trampoline.
9312 (objc_language_data): Delete skip_trampoline initializer.
9313 (objc_language::skip_trampoline): New member function with
9314 implementation from objc_skip_trampoline.
9315 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9316 initializer.
9317 * p-lang.c (pascal_language_data): Likewise.
9318 * rust-lang.c (rust_language_data): Likewise.
9319
0a50df5d
AB
93202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9321
9322 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9323 (ada_language::demangle): New member function.
9324 * c-lang.c (c_language_data): Delete la_demangle initializer.
9325 (cplus_language_data): Delete la_demangle initializer.
9326 (cplus_language::demangle): New member function.
9327 (asm_language_data): Delete la_demangle initializer.
9328 (minimal_language_data): Delete la_demangle initializer.
9329 * d-lang.c (d_language_data): Delete la_demangle initializer.
9330 (d_language::demangle): New member function.
9331 * f-lang.c (f_language_data): Delete la_demangle initializer.
9332 (f_language::demangle): New member function.
9333 * go-lang.c (go_language_data): Delete la_demangle initializer.
9334 (go_language::demangle): New member function.
9335 * language.c (language_demangle): Update.
9336 (unk_lang_demangle): Delete.
9337 (unknown_language_data): Delete la_demangle initializer.
9338 (unknown_language::demangle): New member function.
9339 (auto_language_data): Delete la_demangle initializer.
9340 (auto_language::demangle): New member function.
9341 * language.h (language_data): Delete la_demangle field.
9342 (language_defn::demangle): New function.
9343 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9344 * objc-lang.c (objc_language_data): Delete la_demangle
9345 initializer.
9346 (objc_language::demangle): New member function.
9347 * opencl-lang.c (opencl_language_data): Delete la_demangle
9348 initializer.
9349 * p-lang.c (pascal_language_data): Likewise.
9350 * rust-lang.c (rust_language_data): Likewise.
9351 (rust_language::demangle): New member function.
9352
fbfb0a46
AB
93532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9354
9355 * ada-lang.c (ada_language_data): Delete la_print_type
9356 initializer.
9357 (ada_language::print_type): New member function.
9358 * c-lang.c (c_language_data): Delete la_print_type initializer.
9359 (c_language::print_type): New member function.
9360 (cplus_language_data): Delete la_print_type initializer.
9361 (cplus_language::print_type): New member function.
9362 (asm_language_data): Delete la_print_type initializer.
9363 (asm_language::print_type): New member function.
9364 (minimal_language_data): Delete la_print_type initializer.
9365 (minimal_language::print_type): New member function.
9366 * d-lang.c (d_language_data): Delete la_print_type initializer.
9367 (d_language::print_type): New member function.
9368 * f-lang.c (f_language_data): Delete la_print_type initializer.
9369 (f_language::print_type): New member function.
9370 * go-lang.c (go_language_data): Delete la_print_type initializer.
9371 (go_language::print_type): New member function.
9372 * language.c (unk_lang_print_type): Delete.
9373 (unknown_language_data): Delete la_print_type initializer.
9374 (unknown_language::print_type): New member function.
9375 (auto_language_data): Delete la_print_type initializer.
9376 (auto_language::print_type): New member function.
9377 * language.h (language_data): Delete la_print_type field.
9378 (language_defn::print_type): New function.
9379 (LA_PRINT_TYPE): Update.
9380 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9381 (m2_language::print_type): New member function.
9382 * objc-lang.c (objc_language_data): Delete la_print_type
9383 initializer.
9384 (objc_language::print_type): New member function.
9385 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9386 to opencl_language::print_type.
9387 (opencl_language_data): Delete la_print_type initializer.
9388 (opencl_language::print_type): New member function, implementation
9389 from opencl_print_type.
9390 * p-lang.c (pascal_language_data): Delete la_print_type
9391 initializer.
9392 (pascal_language::print_type): New member function.
9393 * rust-lang.c (rust_print_type): Delete, implementation moved to
9394 rust_language::print_type.
9395 (rust_language_data): Delete la_print_type initializer.
9396 (rust_language::print_type): New member function, implementation
9397 from rust_print_type.
9398
6f827019
AB
93992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9400
9401 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9402 implementation moves to...
9403 (ada_language::sniff_from_mangled_name): ...here. Update return
9404 type.
9405 (ada_language_data): Delete la_sniff_from_mangled_name
9406 initializer.
9407 * c-lang.c (c_language_data): Likewise.
9408 (cplus_language_data): Likewise.
9409 (cplus_language::sniff_from_mangled_name): New member function,
9410 implementation taken from gdb_sniff_from_mangled_name.
9411 (asm_language_data): Delete la_sniff_from_mangled_name
9412 initializer.
9413 (minimal_language_data): Likewise.
9414 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9415 implementation moves to cplus_language::sniff_from_mangled_name.
9416 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9417 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9418 moves to...
9419 (d_language::sniff_from_mangled_name): ...here.
9420 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9421 * f-lang.c (f_language_data): Likewise.
9422 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9423 moves to...
9424 (go_language::sniff_from_mangled_name): ...here.
9425 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9426 * language.c (language_sniff_from_mangled_name): Delete.
9427 (unknown_language_data): Delete la_sniff_from_mangled_name
9428 initializer.
9429 (auto_language_data): Likewise.
9430 * language.h (language_data): Delete la_sniff_from_mangled_name
9431 field.
9432 (language_defn::sniff_from_mangled_name): New function.
9433 (language_sniff_from_mangled_name): Delete declaration.
9434 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9435 field.
9436 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9437 implementation moves to...
9438 (objc_language::sniff_from_mangled_name): ...here.
9439 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9440 * opencl-lang.c (opencl_language_data): Likewise.
9441 * p-lang.c (pascal_language_data): Likewise.
9442 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9443 implementation moves to...
9444 (rust_language::sniff_from_mangled_name): ...here.
9445 (rust_language_data): Delete la_sniff_from_mangled_name
9446 initializer.
9447 * symtab.c (symbol_find_demangled_name): Call
9448 sniff_from_mangled_name member function.
9449
fb8006fd
AB
94502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9451
9452 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9453 initializer.
9454 * c-lang.c (c_language_data): Likewise.
9455 (cplus_language_data): Likewise.
9456 (cplus_language::search_name_hash): New member function.
9457 (asm_language_data): Delete la_search_name_hash initializer.
9458 (minimal_language_data): Likewise.
9459 * d-lang.c (d_language_data): Likewise.
9460 * dictionary.c (default_search_name_hash): Rename to...
9461 (language_defn::search_name_hash): ...this.
9462 * f-lang.c (f_language_data): Likewise.
9463 (f_language::search_name_hash): New member function.
9464 * go-lang.c (go_language_data): Delete la_search_name_hash
9465 initializer.
9466 * language.c (unknown_language_data): Likewise.
9467 (auto_language_data): Likewise.
9468 * language.h (struct language_data): Delete la_search_name_hash
9469 field.
9470 (language_defn::search_name_hash): Declare new member function.
9471 (default_search_name_hash): Delete declaration.
9472 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9473 initializer.
9474 * objc-lang.c (objc_language_data): Likewise.
9475 * opencl-lang.c (opencl_language_data): Likewise.
9476 * p-lang.c (pascal_language_data): Likewise.
9477 * rust-lang.c (rust_language_data): Likewise.
9478 * symtab.c (search_name_hash): Update call.
9479
8e25bafe
AB
94802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9481
9482 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9483 initializer.
9484 * c-lang.c (class compile_instance): Declare.
9485 (c_language_data): Delete la_get_compile_instance initializer.
9486 (c_language::get_compile_instance): New member function.
9487 (cplus_language_data): Delete la_get_compile_instance initializer.
9488 (cplus_language::get_compile_instance): New member function.
9489 (asm_language_data): Delete la_get_compile_instance initializer.
9490 (minimal_language_data): Likewise.
9491 * c-lang.h (c_get_compile_context): Update comment.
9492 (cplus_get_compile_context): Update comment.
9493 * compile/compile.c (compile_to_object): Update calls, don't rely
9494 on function pointer being NULL.
9495 * d-lang.c (d_language_data): Delete la_get_compile_instance
9496 initializer.
9497 * f-lang.c (f_language_data): Likewise.
9498 * go-lang.c (go_language_data): Likewise.
9499 * language.c (unknown_language_data): Likewise.
9500 (auto_language_data): Likewise.
9501 * language.h (language_data): Delete la_get_compile_instance field.
9502 (language_defn::get_compile_instance): New member function.
9503 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9504 initializer.
9505 * objc-lang.c (objc_language_data): Likewise.
9506 * opencl-lang.c (opencl_language_data): Likewise.
9507 * p-lang.c (pascal_language_data): Likewise.
9508 * rust-lang.c (rust_language_data): Likewise.
9509
4009ee92
AB
95102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9511
9512 * ada-lang.c (ada_add_all_symbols): Update comment.
9513 (ada_iterate_over_symbols): Delete, move implementation to...
9514 (ada_language::iterate_over_symbols): ...here, a new member
9515 function, rewrite to use range based for loop.
9516 (ada_language_data): Delete la_iterate_over_symbols initializer.
9517 * c-lang.c (c_language_data): Likewise.
9518 (cplus_language_data): Likewise.
9519 (asm_language_data): Likewise.
9520 (minimal_language_data): Likewise.
9521 * d-lang.c (d_language_data): Likewise.
9522 * f-lang.c (f_language_data): Likewise.
9523 * go-lang.c (go_language_data): Likewise.
9524 * language.c (unknown_language_data): Likewise.
9525 (auto_language_data): Likewise.
9526 * language.h (language_data): Delete la_iterate_over_symbols field.
9527 (language_defn::iterate_over_symbols): New member function.
9528 (LA_ITERATE_OVER_SYMBOLS): Update.
9529 * linespec.c (iterate_over_all_matching_symtabs): Update.
9530 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9531 initializer.
9532 * objc-lang.c (objc_language_data): Likewise.
9533 * opencl-lang.c (opencl_language_data): Likewise.
9534 * p-lang.c (pascal_language_data): Likewise.
9535 * rust-lang.c (rust_language_data): Likewise.
9536
54f4ca46
AB
95372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9538
9539 * ada-lang.c (ada_language_data): Delete
9540 la_lookup_transparent_type initializer.
9541 * c-lang.c (c_language_data): Likewise.
9542 (cplus_language_data): Likewise.
9543 (cplus_language::lookup_transparent_type): New member function.
9544 (asm_language_data): Delete la_lookup_transparent_type
9545 initializer.
9546 (minimal_language_data): Likewise.
9547 * d-lang.c (d_language_data): Likewise.
9548 * f-lang.c (f_language_data): Likewise.
9549 * go-lang.c (go_language_data): Likewise.
9550 * language.c (unknown_language_data): Likewise.
9551 (auto_language_data): Likewise.
9552 * language.h (struct language_data): Delete
9553 la_lookup_transparent_type field.
9554 (language_defn::lookup_transparent_type): New member function.
9555 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9556 initializer.
9557 * objc-lang.c (objc_language_data): Likewise.
9558 * opencl-lang.c (opencl_language_data): Likewise.
9559 * p-lang.c (pascal_language_data): Likewise.
9560 * rust-lang.c (rust_language_data): Likewise.
9561 * symtab.c (symbol_matches_domain): Update call.
9562
1fb314aa
AB
95632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9564
9565 * ada-lang.c (ada_language_arch_info): Delete function, move
9566 implementation to...
9567 (ada_language::language_arch_info): ...here, a new member
9568 function.
9569 (ada_language_data): Delete la_language_arch_info.
9570 * c-lang.c (c_language_data): Likewise.
9571 (c_language::language_arch_info): New member function.
9572 (cplus_language_arch_info): Delete function, move
9573 implementation to...
9574 (cplus_language::language_arch_info): ...here, a new member
9575 function.
9576 (cplus_language_data): Delete la_language_arch_info.
9577 (asm_language_data): Likewise.
9578 (asm_language::language_arch_info): New member function.
9579 (minimal_language_data): Delete la_language_arch_info.
9580 (minimal_language::language_arch_info): New member function.
9581 * d-lang.c (d_language_arch_info): Delete function, move
9582 implementation to...
9583 (d_language::language_arch_info): ...here, a new member
9584 function.
9585 (d_language_data): Delete la_language_arch_info.
9586 * f-lang.c (f_language_arch_info): Delete function, move
9587 implementation to...
9588 (f_language::language_arch_info): ...here, a new member
9589 function.
9590 (f_language_data): Delete la_language_arch_info.
9591 * go-lang.c (go_language_arch_info): Delete function, move
9592 implementation to...
9593 (go_language::language_arch_info): ...here, a new member
9594 function.
9595 (go_language_data): Delete la_language_arch_info.
9596 * language.c (unknown_language_data): Likewise.
9597 (unknown_language::language_arch_info): New member function.
9598 (auto_language_data): Delete la_language_arch_info.
9599 (auto_language::language_arch_info): New member function.
9600 (language_gdbarch_post_init): Update call to
9601 la_language_arch_info.
9602 * language.h (language_data): Delete la_language_arch_info
9603 function pointer.
9604 (language_defn::language_arch_info): New function.
9605 * m2-lang.c (m2_language_arch_info): Delete function, move
9606 implementation to...
9607 (m2_language::language_arch_info): ...here, a new member
9608 function.
9609 (m2_language_data): Delete la_language_arch_info.
9610 * objc-lang.c (objc_language_arch_info): Delete function, move
9611 implementation to...
9612 (objc_language::language_arch_info): ...here, a new member
9613 function.
9614 (objc_language_data): Delete la_language_arch_info.
9615 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9616 implementation to...
9617 (opencl_language::language_arch_info): ...here, a new member
9618 function.
9619 (opencl_language_data): Delete la_language_arch_info.
9620 * p-lang.c (pascal_language_arch_info): Delete function, move
9621 implementation to...
9622 (pascal_language::language_arch_info): ...here, a new member
9623 function.
9624 (pascal_language_data): Delete la_language_arch_info.
9625 * rust-lang.c (rust_language_arch_info): Delete function, move
9626 implementation to...
9627 (rust_language::language_arch_info): ...here, a new member
9628 function.
9629 (rust_language_data): Delete la_language_arch_info.
9630
48448202
AB
96312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9632
9633 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9634 initializer.
9635 * c-lang.c (c_language_data): Likewise.
9636 (cplus_language_data): Likewise.
9637 (cplus_language::pass_by_reference_info): New method.
9638 (asm_language_data): Delete la_pass_by_reference initializer.
9639 (minimal_language_data): Likewise.
9640 * cp-abi.c (cp_pass_by_reference): Remove use of
9641 default_pass_by_reference.
9642 * d-lang.c (d_language_data): Likewise.
9643 * f-lang.c (f_language_data): Likewise.
9644 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9645 default_pass_by_reference.
9646 * go-lang.c (go_language_data): Likewise.
9647 * language.c (language_pass_by_reference): Update.
9648 (default_pass_by_reference): Delete.
9649 (unknown_language_data): Delete la_pass_by_reference
9650 initializer.
9651 (auto_language_data): Likewise.
9652 * language.h (struct language_data): Delete la_pass_by_reference
9653 field.
9654 (language_defn::pass_by_reference_info): New member function.
9655 (default_pass_by_reference): Delete declaration.
9656 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9657 initializer.
9658 * objc-lang.c (objc_language_data): Likewise.
9659 * opencl-lang.c (opencl_language_data): Likewise.
9660 * p-lang.c (pascal_language_data): Likewise.
9661 * rust-lang.c (rust_language_data): Likewise.
9662
15e5fd35
AB
96632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9664
9665 * ada-lang.c (ada_read_var_value): Delete function, move
9666 implementation to...
9667 (ada_language::read_var_value): ...here.
9668 (ada_language_data): Delete la_read_var_value initializer.
9669 * c-lang.c (c_language_data): Likewise.
9670 (cplus_language_data): Likewise.
9671 (minimal_language_data): Likewise.
9672 * d-lang.c (d_language_data): Likewise.
9673 * f-lang.c (f_language_data): Likewise.
9674 * findvar.c (default_read_var_value): Rename to...
9675 (language_defn::read_var_value): ...this.
9676 * findvar.c (read_var_value): Update header comment, and change to
9677 call member function instead of function pointer.
9678 * go-lang.c (go_language_data): Likewise.
9679 * language.c (unknown_language_data): Delete la_read_var_value
9680 initializer.
9681 (auto_language_data): Likewise.
9682 * language.h (struct language_data): Delete la_read_var_value
9683 field.
9684 (language_defn::read_var_value): New member function.
9685 (default_read_var_value): Delete declaration.
9686 * m2-lang.c (m2_language_data): Delete la_read_var_value
9687 initializer.
9688 * objc-lang.c (objc_language_data): Likewise.
9689 * opencl-lang.c (opencl_language_data): Likewise.
9690 * p-lang.c (pascal_language_data): Likewise.
9691 * rust-lang.c (rust_language_data): Likewise.
9692 * value.h (default_read_var_value): Delete declaration.
9693
5bd40f2a
AB
96942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9695
9696 * ada-lang.c (ada_print_array_index): Delete function, move
9697 implementation to...
9698 (ada_language::print_array_index): ...here.
9699 (ada_language_data): Delete la_print_array_index initializer.
9700 * c-lang.c (c_language_data): Likewise.
9701 (cplus_language_data): Likewise.
9702 (minimal_language_data): Likewise.
9703 * d-lang.c (d_language_data): Likewise.
9704 * f-lang.c (f_language_data): Likewise.
9705 * go-lang.c (go_language_data): Likewise.
9706 * language.c (default_print_array_index): Delete function, move
9707 implementation to...
9708 (language_defn::print_array_index): ...here.
9709 (unknown_language_data): Delete la_print_array_index initializer.
9710 (auto_language_data): Likewise.
9711 * language.h (struct language_data): Delete la_print_array_index
9712 field.
9713 (language_defn::print_array_index): New member function.
9714 (LA_PRINT_ARRAY_INDEX): Update.
9715 (default_print_array_index): Delete declaration.
9716 * m2-lang.c (m2_language_data): Delete la_print_array_index
9717 initializer.
9718 * objc-lang.c (objc_language_data): Likewise.
9719 * opencl-lang.c (opencl_language_data): Likewise.
9720 * p-lang.c (pascal_language_data): Likewise.
9721 * rust-lang.c (rust_language_data): Likewise.
9722
0874fd07
AB
97232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9724
9725 * gdb/ada-lang.c (ada_language_defn): Convert to...
9726 (ada_language_data): ...this.
9727 (class ada_language): New class.
9728 (ada_language_defn): New static global.
9729 * gdb/c-lang.c (c_language_defn): Convert to...
9730 (c_language_data): ...this.
9731 (class c_language): New class.
9732 (c_language_defn): New static global.
9733 (cplus_language_defn): Convert to...
9734 (cplus_language_data): ...this.
9735 (class cplus_language): New class.
9736 (cplus_language_defn): New static global.
9737 (asm_language_defn): Convert to...
9738 (asm_language_data): ...this.
9739 (class asm_language): New class.
9740 (asm_language_defn): New static global.
9741 (minimal_language_defn): Convert to...
9742 (minimal_language_data): ...this.
9743 (class minimal_language): New class.
9744 (minimal_language_defn): New static global.
9745 * gdb/d-lang.c (d_language_defn): Convert to...
9746 (d_language_data): ...this.
9747 (class d_language): New class.
9748 (d_language_defn): New static global.
9749 * gdb/f-lang.c (f_language_defn): Convert to...
9750 (f_language_data): ...this.
9751 (class f_language): New class.
9752 (f_language_defn): New static global.
9753 * gdb/go-lang.c (go_language_defn): Convert to...
9754 (go_language_data): ...this.
9755 (class go_language): New class.
9756 (go_language_defn): New static global.
9757 * gdb/language.c (unknown_language_defn): Remove declaration.
9758 (current_language): Initialize to nullptr, real initialization is
9759 moved to _initialize_language.
9760 (languages): Delete global.
9761 (language_defn::languages): Define.
9762 (set_language_command): Use language_defn::languages.
9763 (set_language): Likewise.
9764 (range_error): Likewise.
9765 (language_enum): Likewise.
9766 (language_def): Likewise.
9767 (add_set_language_command): Use language_def::languages for the
9768 language list, and language_def to lookup language pointers.
9769 (skip_language_trampoline): Use language_defn::languages.
9770 (unknown_language_defn): Convert to...
9771 (unknown_language_data): ...this.
9772 (class unknown_language): New class.
9773 (unknown_language_defn): New static global.
9774 (auto_language_defn): Convert to...
9775 (auto_language_data): ...this.
9776 (class auto_language): New class.
9777 (auto_language_defn): New static global.
9778 (language_gdbarch_post_init): Use language_defn::languages.
9779 (_initialize_language): Initialize current_language.
9780 * gdb/language.h (struct language_defn): Rename to...
9781 (struct language_data): ...this.
9782 (struct language_defn): New.
9783 (auto_language_defn): Delete.
9784 (unknown_language_defn): Delete.
9785 (minimal_language_defn): Delete.
9786 (ada_language_defn): Delete.
9787 (asm_language_defn): Delete.
9788 (c_language_defn): Delete.
9789 (cplus_language_defn): Delete.
9790 (d_language_defn): Delete.
9791 (f_language_defn): Delete.
9792 (go_language_defn): Delete.
9793 (m2_language_defn): Delete.
9794 (objc_language_defn): Delete.
9795 (opencl_language_defn): Delete.
9796 (pascal_language_defn): Delete.
9797 (rust_language_defn): Delete.
9798 * gdb/m2-lang.c (m2_language_defn): Convert to...
9799 (m2_language_data): ...this.
9800 (class m2_language): New class.
9801 (m2_language_defn): New static global.
9802 * gdb/objc-lang.c (objc_language_defn): Convert to...
9803 (objc_language_data): ...this.
9804 (class objc_language): New class.
9805 (objc_language_defn): New static global.
9806 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9807 (opencl_language_data): ...this.
9808 (class opencl_language): New class.
9809 (opencl_language_defn): New static global.
9810 * gdb/p-lang.c (pascal_language_defn): Convert to...
9811 (pascal_language_data): ...this.
9812 (class pascal_language): New class.
9813 (pascal_language_defn): New static global.
9814 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9815 language pointer, update comment format.
9816 * gdb/rust-lang.c (rust_language_defn): Convert to...
9817 (rust_language_data): ...this.
9818 (class rust_language): New class.
9819 (rust_language_defn): New static global.
9820
1313c56e
AB
98212020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9822
9823 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9824 member variable.
9825 <m_stmt_at_address>: New member variable.
9826 (lnp_state_machine::record_line): Don't record some lines, update
9827 tracking of is_stmt at the same address.
9828 (lnp_state_machine::lnp_state_machine): Initialise new member
9829 variables.
9830
b7ed9f3d
ST
98312020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9832
9833 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9834 "-include gnu-nat-mig.h".
9835 * gnu-nat-mig.h: New file.
9836 * gnu-nat.c: Include "gnu-nat-mig.h".
9837 (exc_server, msg_reply_server, notify_server,
9838 process_reply_server): Remove declarations.
9839
14a8ad62
ST
98402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9841
9842 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9843 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9844 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9845 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9846 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9847 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9848 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9849 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9850 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9851 to gnu_nat_target class.
9852 * gnu-nat.c: Likewise.
9853 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9854 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9855 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9856 object.
9857 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9858 instead of `gnu_target'.
9859
0af5e106
ST
98602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9861
9862 * i386-gnu-tdep.c: Include "gdbcore.h"
9863 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9864 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9865 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9866 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9867 i386_gnu_sigcontext_addr): New functions
9868 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9869 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9870 tdep.
9871
078f2fc9
ST
98722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9873
9874 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9875 before fork_inferior call. Avoid calling it if target_is_pushed returns
9876 true.
9877
53dff92c
ST
98782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9879
9880 * gnu-nat.h (gnu_target): New variable declaration.
9881 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9882 gnu_target.
9883 * gnu-nat.c (gnu_target): New variable.
9884 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9885 add_thread_silent, and add_thread calls.
9886 (gnu_nat_target::create_inferior): Pass gnu_target to
9887 add_thread_silent, thread_change_ptid call.
9888 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9889 call.
9890
5a8b8627
ST
98912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9892
9893 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9894 (gnu_nat_target::find_memory_regions): Remove unused
9895 `old_address' variable.
9896
366f550a
ST
98972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9898
9899 * gnu-nat.c: Include "gdbarch.h".
9900
f14871bf
ST
99012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9902
9903 * reply_mig_hack.awk (Error return): Cast function through
9904 void *, to bypass compiler function call check.
9905
c6887cfb
ST
99062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9907
9908 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9909 $(srcdir)/reply_mig_hack.awk.
9910
6930bffe
ST
99112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9912
9913 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9914
112c22ed
JG
99152020-05-30 Jonny Grant <jg@jguk.org>
9916
9917 * configure.ac (ACX_BUGURL): change bug URL to https.
9918
f68f85b5
PA
99192020-05-30 Pedro Alves <palves@redhat.com>
9920
9921 * cp-support.c (replace_typedefs_template): New.
9922 (replace_typedefs_qualified_name): Handle
9923 DEMANGLE_COMPONENT_TEMPLATE.
9924
976ca316
SM
99252020-05-29 Simon Marchi <simon.marchi@efficios.com>
9926
9927 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9928 dwarf2/index-cache.h, dwarf2/index-write.c,
9929 dwarf2/index-write.h, dwarf2/line-header.c,
9930 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9931 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9932 variables and fields from `dwarf2_per_objfile` to just
9933 `per_objfile` throughout.
9934
989ade05
SM
99352020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9936
9937 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9938 <push_dwarf_reg_entry_value>: Add comment.
9939
c47bae85
KB
99402020-05-28 Kevin Buettner <kevinb@redhat.com>
9941 Keith Seitz <keiths@redhat.com>
9942
9943 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9944 instead of PyEval_ReleaseLock.
9945 (class gdbpy_gil): Move to earlier in file.
9946 (finalize_python): Set gdb_python_initialized.
9947 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9948 when not initialized.
9949
44486dcf
SM
99502020-05-28 Simon Marchi <simon.marchi@efficios.com>
9951
9952 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9953 <push_dwarf_reg_entry_value>: Remove assert. Override
9954 per_objfile with caller_per_objfile.
9955
f030440d
TV
99562020-05-28 Tom de Vries <tdevries@suse.de>
9957
9958 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9959 PR gold/15646 workaround to symbol kind "type".
9960
f0fbb768
TT
99612020-05-27 Tom Tromey <tromey@adacore.com>
9962
9963 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9964
af0b2a3e
TT
99652020-05-27 Tom Tromey <tromey@adacore.com>
9966
9967 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9968 Use htab_find_with_hash.
9969 <add_abbrev>: Remove "abbrev_number" parameter.
9970 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9971 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9972 (hash_abbrev): Add comment.
9973 (abbrev_table::lookup_abbrev): Move to header file.
9974 (abbrev_table::read): Update.
9975
7d00ffec
TT
99762020-05-27 Tom Tromey <tromey@adacore.com>
9977
9978 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9979 method.
9980 <canonical_name>: New member.
9981 <raw_name>: Rename from "name".
9982 (partial_die_info): Initialize canonical_name.
9983 (scan_partial_symbols): Check raw_name.
9984 (partial_die_parent_scope, partial_die_full_name)
9985 (add_partial_symbol, add_partial_subprogram)
9986 (add_partial_enumeration, load_partial_dies): Use "name" method.
9987 (partial_die_info::name): New method.
9988 (partial_die_info::read, guess_partial_die_structure_name)
9989 (partial_die_info::fixup): Update.
9990
697bba18
TT
99912020-05-27 Tom Tromey <tromey@adacore.com>
9992
9993 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9994 <get_ref_die_offset>: Inline.
9995 <get_ref_die_offset_complaint>: New method.
9996 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9997 (attribute::get_ref_die_offset_complaint): Rename from
9998 get_ref_die_offset. Just issue complaint.
9999
c17ace43
HD
100002020-05-27 Hannes Domani <ssbssa@yahoo.de>
10001
10002 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10003
96445f0b
HD
100042020-05-27 Hannes Domani <ssbssa@yahoo.de>
10005
10006 * exec.c (exec_file_attach): Use errno value of first openp failure.
10007
ac637ec3
HD
100082020-05-27 Hannes Domani <ssbssa@yahoo.de>
10009
10010 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10011 Don't close thread handle.
10012
17ee85fc
TT
100132020-05-27 Tom Tromey <tom@tromey.com>
10014 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10017 shared_ptr.
10018 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10019 member.
10020 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10021 dwarf2_per_bfd_objfile_data_key>: New globals.
10022 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10023 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10024 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10025 shared.
10026 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10027 short-circuit when sharing.
10028 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10029 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10030
39b16f87
SM
100312020-05-27 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10034 to...
10035 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10036 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10037
fcf23d5b
SM
100382020-05-27 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10041 build_name_components, find_name_components_bounds>:
10042 Add per_objfile parameter.
10043 (struct mapped_index) <symbol_name_at>: Likewise.
10044 (struct mapped_debug_names): Remove constructor.
10045 <dwarf2_per_objfile>: Remove field.
10046 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10047 (mapped_index_base::find_name_components_bounds,
10048 mapped_index_base::build_name_components,
10049 dw2_expand_symtabs_matching_symbol): Likewise.
10050 (class mock_mapped_index) <symbol_name_at>: Likewise.
10051 (check_match): Likewise.
10052 (check_find_bounds_finds): Likewise.
10053 (test_mapped_index_find_name_component_bounds): Update.
10054 (CHECK_MATCH): Update.
10055 (dw2_expand_symtabs_matching): Update.
10056 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10057 per_objfile parameter.
10058 <find_vec_in_debug_names>: Likewise.
10059 <m_per_objfile>: New field.
10060 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10061 parameter.
10062 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10063 (dw2_debug_names_iterator::next): Update.
10064 (dw2_debug_names_lookup_symbol): Update.
10065 (dw2_debug_names_expand_symtabs_for_function): Update.
10066 (dw2_debug_names_map_matching_symbols): Update.
10067 (dw2_debug_names_expand_symtabs_matching): Update.
10068 (dwarf2_read_debug_names): Update.
10069
7188ed02
SM
100702020-05-27 Simon Marchi <simon.marchi@efficios.com>
10071
10072 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10073 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10074 move to dwarf2_per_objfile.
10075 <read_in_chain>: Remove.
10076 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10077 remove_all_cus, age_comp_units>: New methods.
10078 <m_dwarf2_cus>: New member.
10079 (struct dwarf2_per_cu_data) <cu>: Remove.
10080 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10081 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10082 moved to methods of dwarf2_per_objfile.
10083 (dwarf2_clear_marks): Remove.
10084 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10085 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10086 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10087 (dwarf2_per_objfile::remove_all_cus): New.
10088 (class free_cached_comp_units) <~free_cached_comp_units>:
10089 Update.
10090 (load_cu): Update.
10091 (dw2_do_instantiate_symtab): Adjust.
10092 (fill_in_sig_entry_from_dwo_entry): Adjust.
10093 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10094 (cutu_reader::cutu_reader): Likewise.
10095 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10096 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10097 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10098 and dwarf2_per_objfile::age_comp_units.
10099 (load_partial_comp_unit): Update.
10100 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10101 (process_queue): Likewise.
10102 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10103 backlink.
10104 (dwarf2_read_addr_index): Likewise.
10105 (follow_die_offset): Likewise.
10106 (dwarf2_fetch_die_loc_sect_off): Likewise.
10107 (dwarf2_fetch_constant_bytes): Likewise.
10108 (dwarf2_fetch_die_type_sect_off): Likewise.
10109 (follow_die_sig_1): Likewise.
10110 (load_full_type_unit): Likewise.
10111 (read_signatured_type): Likewise.
10112 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10113 (dwarf2_cu::~dwarf2_cu): Remove.
10114 (dwarf2_per_objfile::get_cu): New.
10115 (dwarf2_per_objfile::set_cu): New.
10116 (age_cached_comp_units): Rename to...
10117 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10118 to std::unordered_map.
10119 (free_one_cached_comp_unit): Rename to...
10120 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10121 to std::unordered_map.
10122 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10123 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10124 a dwarf2_per_objfile in data.
10125 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10126 (dwarf2_clear_marks): Remove.
10127
2e671100
SM
101282020-05-27 Simon Marchi <simon.marchi@efficios.com>
10129
10130 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10131 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10132 (init_tu_and_read_dwo_dies): Likewise.
10133 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10134 (cutu_reader::cutu_reader): Likewise.
10135 (load_partial_comp_unit): Likewise.
10136 (process_psymtab_comp_unit): Update.
10137 (build_type_psymtabs_1): Update.
10138 (process_skeletonless_type_unit): Update.
10139 (load_full_comp_unit): Update.
10140 (find_partial_die): Update.
10141 (dwarf2_read_addr_index): Update.
10142 (read_signatured_type): Update.
10143
2e6a9f79
SM
101442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10145
10146 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10147 m_header_read_in>: New fields.
10148 <get_header>: New method.
10149 * dwarf2/read.c (per_cu_header_read_in): Remove.
10150 (dwarf2_per_cu_data::get_header): New.
10151 (dwarf2_per_cu_data::addr_size): Update.
10152 (dwarf2_per_cu_data::offset_size): Update.
10153 (dwarf2_per_cu_data::ref_addr_size): Update.
10154
1b555f17
SM
101552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10156
10157 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10158 (dw2_do_instantiate_symtab): Update.
10159 (queue_and_load_all_dwo_tus): Change parameter from
10160 dwarf2_per_cu_data to dwarf2_cu.
10161 (dwarf2_fetch_die_loc_sect_off): Update.
10162 (dwarf2_fetch_constant_bytes): Update.
10163 (dwarf2_fetch_die_type_sect_off): Update.
10164
8fc0b21d
SM
101652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10166
10167 * dwarf2/read.c (process_full_comp_unit,
10168 process_full_type_unit): Remove per_cu, per_objfile paramters.
10169 Add dwarf2_cu parameter.
10170 (process_queue): Update.
10171
168c9250
SM
101722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10173
10174 * dwarf2/read.c (create_cu_from_index_list): Replace
10175 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10176 (create_cus_from_index_list): Likewise.
10177 (create_cus_from_index): Likewise.
10178 (create_signatured_type_table_from_index): Likewise.
10179 (create_cus_from_debug_names_list): Likewise.
10180 (create_cus_from_debug_names): Likewise.
10181 (dwarf2_read_gdb_index): Update.
10182 (dwarf2_read_debug_names): Update.
10183
e286671b
TT
101842020-05-27 Tom Tromey <tom@tromey.com>
10185 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * dwarf2/read.h (struct dwarf2_per_objfile)
10188 <get_type_for_signatured_type, set_type_for_signatured_type>:
10189 New methods.
10190 <m_type_map>: New member.
10191 (struct signatured_type) <type>: Remove.
10192 * dwarf2/read.c
10193 (dwarf2_per_objfile::get_type_for_signatured_type,
10194 dwarf2_per_objfile::set_type_for_signatured_type): New.
10195 (get_signatured_type): Use new methods.
10196
8adb8487
TT
101972020-05-27 Tom Tromey <tom@tromey.com>
10198 Simon Marchi <simon.marchi@efficios.com>
10199
10200 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10201 (struct dwarf2_per_objfile) <type_units>: New member.
10202 <get_type_unit_group_unshareable>: New method.
10203 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10204 num_symtabs, symtabs>: Remove; move to
10205 type_unit_group_unshareable.
10206 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10207 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10208 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10209
127bbf4b
SM
102102020-05-27 Simon Marchi <simon.marchi@efficios.com>
10211
10212 * dwarf2/read.h (struct dwarf2_per_cu_data):
10213 <dwarf2_per_objfile>: Remove.
10214 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10215 dwarf2_per_objfile.
10216 (create_signatured_type_table_from_index): Likewise.
10217 (create_signatured_type_table_from_debug_names): Likewise.
10218 (create_debug_type_hash_table): Likewise.
10219 (fill_in_sig_entry_from_dwo_entry): Likewise.
10220 (create_type_unit_group): Likewise.
10221 (read_comp_units_from_section): Likewise.
10222 (create_cus_hash_table): Likewise.
10223
f6e649dd
SM
102242020-05-27 Simon Marchi <simon.marchi@efficios.com>
10225
10226 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10227 dwarf2_per_cu_data::dwarf2_per_objfile.
10228 (compute_compunit_symtab_includes): Likewise.
10229 (dwarf2_cu::start_symtab): Likewise.
10230
aa66c379
SM
102312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10232
10233 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10234 parameter.
10235 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10236 (read_namespace_alias): Update.
10237 (lookup_die_type): Update.
10238 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10239 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10240 Update.
10241 (disassemble_dwarf_expression): Update.
10242
120ce1b5
SM
102432020-05-27 Simon Marchi <simon.marchi@efficios.com>
10244
10245 * dwarf2/read.h (struct dwarf2_queue_item): Add
10246 dwarf2_per_objfile parameter, assign new parameter.
10247 <per_objfile>: New field.
10248 * dwarf2/read.c (free_one_cached_comp_unit): Add
10249 dwarf2_per_objfile parameter.
10250 (queue_comp_unit): Likewise.
10251 (dw2_do_instantiate_symtab): Update.
10252 (process_psymtab_comp_unit): Update.
10253 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10254 (process_imported_unit_die): Update.
10255 (queue_and_load_dwo_tu): Update.
10256 (follow_die_offset): Update.
10257 (follow_die_sig_1): Update.
10258
9f47c707
SM
102592020-05-27 Simon Marchi <simon.marchi@efficios.com>
10260
10261 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10262 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10263 (read_call_site_scope): Assign per_objfile.
10264 (dwarf2_per_cu_data::objfile): Remove.
10265 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10266 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10267 dwarf2_per_objfile parameter.
10268 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10269 dwarf2_per_objfile parameter.
10270 (dwarf_expr_reg_to_entry_parameter): Add output
10271 dwarf2_per_objfile parameter.
10272 (locexpr_get_frame_base): Update.
10273 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10274 <push_dwarf_reg_entry_value>: Update.
10275 <call_site_to_target_addr>: Update.
10276 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10277 parameter.
10278 (value_of_dwarf_reg_entry): Update.
10279 (rw_pieced_value): Update.
10280 (indirect_synthetic_pointer): Update.
10281 (dwarf2_evaluate_property): Update.
10282 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10283 parameter.
10284 (locexpr_read_variable): Update.
10285 (locexpr_get_symbol_read_needs): Update.
10286 (loclist_read_variable): Update.
10287
14095eb3
SM
102882020-05-27 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10291 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10292 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10293 parameter.
10294 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10295 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10296 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10297 parameter.
10298 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10299 sect_variable_value): Add dwarf2_per_objfile parameter.
10300 (class dwarf_evaluate_loc_desc) <dwarf_call,
10301 dwarf_variable_value>: Update.
10302 (fetch_const_value_from_synthetic_pointer): Add
10303 dwarf2_per_objfile parameter.
10304 (fetch_const_value_from_synthetic_pointer): Update.
10305 (coerced_pieced_ref): Update.
10306 (class symbol_needs_eval_context) <dwarf_call,
10307 dwarf_variable_value>: Update.
10308 (dwarf2_compile_expr_to_ax): Update.
10309
3c3cd3d4
SM
103102020-05-27 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10313 parameter.
10314 (dwarf2_evaluate_loc_desc_full): Update.
10315
82ca3f51
SM
103162020-05-27 Simon Marchi <simon.marchi@efficios.com>
10317
10318 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10319 parameter.
10320 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10321 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10322 dwarf2_per_objfile parameter.
10323 (decode_debug_loc_dwo_addresses): Likewise.
10324 (dwarf2_find_location_expression): Update.
10325 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10326 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10327 parameter.
10328 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10329 parameter.
10330 (locexpr_describe_location_1): Likewise.
10331 (locexpr_describe_location): Update.
10332
4b167ea1
SM
103332020-05-27 Simon Marchi <simon.marchi@efficios.com>
10334
10335 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10336 Remove.
10337 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10338 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10339 (dwarf2_compile_property_to_c): Update.
10340 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10341 use text offset from objfile.
10342 (locexpr_tracepoint_var_ref): Update.
10343 (locexpr_generate_c_location): Update.
10344 (loclist_describe_location): Update.
10345 (loclist_tracepoint_var_ref): Update.
10346 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10347 dwarf2_per_objfile parameter.
10348 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10349 use text offset from objfile.
10350 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10351
89b07335
SM
103522020-05-27 Simon Marchi <simon.marchi@efficios.com>
10353
10354 * dwarf2/expr.h (struct dwarf_expr_context)
10355 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10356 <offset>: Remove.
10357 <per_objfile>: New member.
10358 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10359 dwarf2_per_objfile parameter. Don't set offset, set
10360 per_objfile.
10361 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10362 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10363 a dwarf2_per_objfile object instead of an offset.
10364 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10365 constructor.
10366 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10367 to dwarf2_expr_executor constructor. Don't set offset.
10368 (dwarf2_fetch_cfa_info): Update.
10369 (struct dwarf2_frame_cache) <text_offset>: Remove.
10370 <per_objfile>: New field.
10371 (dwarf2_frame_cache): Update.
10372 (dwarf2_frame_prev_register): Update.
10373 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10374 <dwarf_evaluate_loc_desc>: Add constructor.
10375 (dwarf2_evaluate_loc_desc_full): Update.
10376 (dwarf2_locexpr_baton_eval): Update.
10377 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10378 Add constructor.
10379 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10380
293e7e51
SM
103812020-05-27 Simon Marchi <simon.marchi@efficios.com>
10382
10383 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10384 addr_sized_int_type>: Move to dwarf2_cu.
10385 <int_type>: Move to dwarf2_per_objfile.
10386 (struct dwarf2_per_objfile) <int_type>: Move here.
10387 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10388 addr_sized_int_type>: Move here.
10389 (read_func_scope): Update.
10390 (read_array_type): Update.
10391 (read_tag_string_type): Update.
10392 (attr_to_dynamic_prop): Update.
10393 (dwarf2_per_cu_data::int_type): Rename to...
10394 (dwarf2_per_objfile::int_type): ... this.
10395 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10396 (dwarf2_cu::addr_sized_int_type): ... this.
10397 (read_subrange_type): Update.
10398 (dwarf2_per_cu_data::addr_type): Rename to...
10399 (dwarf2_cu::addr_type): ... this.
10400 (set_die_type): Update.
10401
64874a40
SM
104022020-05-27 Simon Marchi <simon.marchi@efficios.com>
10403
10404 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10405 data through per_cu->cu.
10406
4ab09049
SM
104072020-05-27 Simon Marchi <simon.marchi@efficios.com>
10408
10409 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10410 dwarf2_per_cu_data parameter fo dwarf2_cu.
10411 (lookup_dwo_type_unit): Likewise.
10412 (read_cutu_die_from_dwo): Likewise.
10413 (lookup_dwo_unit): Likewise.
10414 (open_and_init_dwo_file): Likewise.
10415 (lookup_dwo_cutu): Likewise.
10416 (lookup_dwo_comp_unit): Likewise.
10417 (lookup_dwo_type_unit): Likewise.
10418 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10419 (cutu_reader::cutu_reader): Update.
10420
47b14e86
SM
104212020-05-27 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10424 parameter.
10425 (process_full_type_unit): Likewise.
10426 (process_queue): Update.
10427
43182c09
SM
104282020-05-27 Simon Marchi <simon.marchi@efficios.com>
10429
10430 * dwarf2/read.c (recursively_compute_inclusions): Add
10431 dwarf2_per_objfile parameter.
10432 (compute_compunit_symtab_includes): Likewise.
10433 (process_cu_includes): Update.
10434
7aa104c4
SM
104352020-05-27 Simon Marchi <simon.marchi@efficios.com>
10436
10437 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10438 parameter.
10439 (create_type_unit_group): Update.
10440 (process_psymtab_comp_unit_reader): Update.
10441 (build_type_psymtabs_reader): Update.
10442
e3beb21d
SM
104432020-05-27 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10446 object through m_this_cu->cu.
10447
d460f660
SM
104482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10449
10450 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10451 the info parameter.
10452 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10453
ab432490
SM
104542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10455
10456 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10457 per_objfile parameter.
10458 (load_full_type_unit): Add per_objfile parameter.
10459 (read_signatured_type): Likewise.
10460 (load_full_comp_unit): Likewise.
10461 (load_cu): Likewise.
10462 (dw2_do_instantiate_symtab): Likewise.
10463 (dw2_get_file_names): Likewise.
10464 (dw2_map_symtabs_matching_filename): Update.
10465 (dw_expand_symtabs_matching_file_matcher): Update.
10466 (dw2_map_symbol_filenames): Update.
10467 (process_psymtab_comp_unit): Add per_objfile parameter.
10468 (build_type_psymtabs_1): Update.
10469 (process_skeletonless_type_unit): Update.
10470 (dwarf2_build_psymtabs_hard): Update.
10471 (load_partial_comp_unit): Add per_objfile parameter.
10472 (scan_partial_symbols): Update.
10473 (load_full_comp_unit): Add per_objfile parameter.
10474 (process_imported_unit_die): Update.
10475 (create_cus_hash_table): Update.
10476 (find_partial_die): Update.
10477 (dwarf2_read_addr_index): Update.
10478 (follow_die_offset): Update.
10479 (dwarf2_fetch_die_loc_sect_off): Update.
10480 (dwarf2_fetch_constant_bytes): Update.
10481 (dwarf2_fetch_die_type_sect_off): Update.
10482 (follow_die_sig_1): Update.
10483 (load_full_type_unit): Add per_objfile parameter.
10484 (read_signatured_type): Likewise.
10485
313bad1b
SM
104862020-05-27 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10489 of objfile_name.
10490
c3699833
SM
104912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10492
10493 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10494 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10495 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10496 field.
10497 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10498 (create_cus_from_index): Update.
10499 (dwarf2_read_gdb_index): Update.
10500 (create_cus_from_debug_names): Update.
10501 (dwarf2_read_debug_names): Update.
10502 (get_abbrev_section_for_cu): Update.
10503 (create_all_comp_units): Update.
10504 (read_attribute_value): Update.
10505 (get_debug_line_section): Update.
10506 * dwarf2/index-cache.c (index_cache::store): Update.
10507 * dwarf2/index-write.c (save_gdb_index_command): Update.
10508 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10509
1859c670
SM
105102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10511
10512 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10513 member.
10514 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10515 dwarf2_per_cu_data::per_bfd.
10516 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10517 (create_type_unit_group): Likewise.
10518 (queue_comp_unit): Remove reference to
10519 per_cu->dwarf2_per_objfile.
10520 (maybe_queue_comp_unit): Likewise.
10521 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10522 (create_cus_hash_table): Assign new field.
10523
5e22e966
SM
105242020-05-27 Simon Marchi <simon.marchi@efficios.com>
10525
10526 * dwarf2/read.c: Replace
10527 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10528 dwarf2_cu->per_objfile throughout.
10529
97a1449a
SM
105302020-05-27 Simon Marchi <simon.marchi@efficios.com>
10531
10532 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10533 parameter, don't use per_cu->dwarf2_per_objfile.
10534 (dw2_instantiate_symtab): Likewise.
10535 (dw2_find_last_source_symtab): Update.
10536 (dw2_map_expand_apply): Update.
10537 (dw2_lookup_symbol): Update.
10538 (dw2_expand_symtabs_for_function): Update.
10539 (dw2_expand_all_symtabs): Update.
10540 (dw2_expand_symtabs_with_fullname): Update.
10541 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10542 don't use per_cu->dwarf2_per_objfile.
10543 (dw2_expand_marked_cus): Update.
10544 (dw2_find_pc_sect_compunit_symtab): Update.
10545 (dw2_debug_names_lookup_symbol): Update.
10546 (dw2_debug_names_expand_symtabs_for_function): Update.
10547 (dw2_debug_names_map_matching_symbols): Update.
10548 (dwarf2_psymtab::expand_psymtab): Update.
10549
9e021579
SM
105502020-05-27 Simon Marchi <simon.marchi@efficios.com>
10551
10552 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10553 <per_objfile>: New member.
10554 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10555 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10556 call to dwarf2_cu.
10557 (cutu_reader::cutu_reader): Update.
10558 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10559
ae090bdb
SM
105602020-05-27 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10563 struct dwarf2_per_objfile.
10564 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10565 dwarf2_per_bfd.
10566 * dwarf2/read.c (set_die_type): Update.
10567 (get_die_type_at_offset): Update.
10568
af758d11
SM
105692020-05-27 Tom Tromey <tom@tromey.com>
10570 Simon Marchi <simon.marchi@efficios.com>
10571
10572 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10573 method.
10574 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10575 get_symtab, set_symtab>: New methods.
10576 <m_symtabs>: New field.
10577 (struct dwarf2_psymtab): Derive from partial_symtab.
10578 <readin_p, get_compunit_symtab>: Declare methods.
10579 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10580 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10581 New methods.
10582 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10583 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10584 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10585 (dw2_symtab_iter_next, dw2_print_stats)
10586 (dw2_expand_symtabs_with_fullname)
10587 (dw2_expand_symtabs_matching_one)
10588 (dw_expand_symtabs_matching_file_matcher)
10589 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10590 (dw2_debug_names_iterator::next)
10591 (dw2_debug_names_map_matching_symbols)
10592 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10593 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10594 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10595 New methods.
10596 (get_compunit_symtab, process_full_comp_unit)
10597 (process_full_type_unit): Update.
10598 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10599
5989a64e
SM
106002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10601
10602 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10603 then introduce a new dwarf2_per_objfile type.
10604 <read_line_string>: Move to the new dwarf2_per_objfile type.
10605 <objfile>: Likewise.
10606 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10607 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10608 dwarf2_per_objfile->per_bfd.
10609 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10610 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10611 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10612 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10613 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10614 (dwarf2_per_objfile::locate_sections): Rename to...
10615 (dwarf2_per_bfd::locate_sections): ... this.
10616 (dwarf2_per_objfile::get_cutu): Rename to...
10617 (dwarf2_per_bfd::get_cutu): ... this.
10618 (dwarf2_per_objfile::get_cu): Rename to...
10619 (dwarf2_per_bfd::get_cu): ... this.
10620 (dwarf2_per_objfile::get_tu): Rename to...
10621 (dwarf2_per_bfd::get_tu): ... this.
10622 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10623 (dwarf2_per_bfd::allocate_per_cu): ... this.
10624 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10625 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10626 (get_gdb_index_contents_ftype): Change parameter from
10627 dwarf2_per_objfile to dwarf2_per_bfd.
10628 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10629 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10630
a50264ba
TT
106312020-05-27 Tom Tromey <tom@tromey.com>
10632 Simon Marchi <simon.marchi@efficios.com>
10633
10634 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10635 (allocate_piece_closure): Set "per_objfile" member.
10636 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10637 (locexpr_describe_location, loclist_describe_location): Use new
10638 member.
10639 * dwarf2/read.c (read_call_site_scope)
10640 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10641 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10642 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10643 handle_data_member_location): Set per_objfile member.
10644 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10645 member.
10646 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10647
d3473f0c
TT
106482020-05-27 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10651 allocate_signatured_type>: Declare new methods.
10652 <m_num_psymtabs>: New member.
10653 (struct dwarf2_per_cu_data) <index>: New member.
10654 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10655 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10656 (create_cu_from_index_list): Use allocate_per_cu.
10657 (create_signatured_type_table_from_index)
10658 (create_signatured_type_table_from_debug_names)
10659 (create_debug_type_hash_table, add_type_unit)
10660 (read_comp_units_from_section): Use allocate_signatured_type.
10661
5717c425
TT
106622020-05-27 Tom Tromey <tom@tromey.com>
10663
10664 * psymtab.c (partial_map_expand_apply)
10665 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10666 (psym_lookup_global_symbol_language)
10667 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10668 (psym_print_stats, psym_expand_symtabs_for_function)
10669 (psym_map_symbol_filenames, psym_map_matching_symbols)
10670 (psym_expand_symtabs_matching)
10671 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10672 (maintenance_check_psymtabs): Update.
10673 * psympriv.h (struct partial_symtab) <readin_p,
10674 get_compunit_symtab>: Add objfile parameter.
10675 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10676 Likewise.
10677 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10678 get_compunit_symtab>: Likewise.
10679 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10680
45940949
TT
106812020-05-27 Tom Tromey <tom@tromey.com>
10682
10683 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10684 member.
10685 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10686 (create_cu_from_index_list)
10687 (create_signatured_type_table_from_index)
10688 (create_signatured_type_table_from_debug_names)
10689 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10690 (dwarf2_create_include_psymtab)
10691 (create_debug_type_hash_table, add_type_unit)
10692 (create_type_unit_group, read_comp_units_from_section)
10693 (dwarf2_compute_name, create_cus_hash_table)
10694 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10695 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10696 obstack.
10697 (dw2_get_real_path): Likewise. Change argument to
10698 dwarf2_per_objfile.
10699
f8c6d152
LM
107002020-05-27 Luis Machado <luis.machado@linaro.org>
10701
10702 PR tdep/26000
10703 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10704 for ldrd (immediate).
10705
e98d2e6d
PW
107062020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10707
10708 * command.h: Add comment giving the name of class_tui.
10709 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10710 create the fake command for the help for class_tui.
10711
53a47a3e
TT
107122020-05-26 Tom Tromey <tromey@adacore.com>
10713
10714 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10715 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10716 (val_atr): New function.
10717 (value_val_atr): Use it.
10718 * ada-valprint.c (print_optional_low_bound): Change low bound
10719 handling for enums.
10720 (val_print_packed_array_elements): Don't call discrete_position.
10721 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10722 discrete_position for enum types.
10723 * language.c (default_print_array_index): Change type.
10724 * language.h (struct language_defn) <la_print_array_index>: Add
10725 index_type parameter, change type of index_value.
10726 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10727 (default_print_array_index): Update.
10728 * valprint.c (maybe_print_array_index): Don't call
10729 value_from_longest. Update.
10730 (value_print_array_elements): Don't call discrete_position.
10731
0bc2354b
TT
107322020-05-26 Tom Tromey <tromey@adacore.com>
10733
10734 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10735 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10736
1218a4bf
CDA
107372020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10738
10739 PR gdb/13519
10740 * avr-tdep.c (avr_integer_to_address): Return data or code
10741 address accordingly to the second 'type' argument of the
10742 function.
10743
92651b1d
MW
107442020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10745
10746 * infcmd.c, inferior.h: (construct_inferior_arguments):
10747 Moved function from here to gdbsupport/common-inferior.{h,cc}
10748
0a4f5f8c
TT
107492020-05-23 Tom Tromey <tom@tromey.com>
10750
10751 Revert commit eca1f90c:
10752 * NEWS: Remove entry for completion styling.
10753 * completer.c (_rl_completion_prefix_display_length): Move
10754 declaration later.
10755 (gdb_fnprint): Revert.
10756 (gdb_display_match_list_1): Likewise.
10757 * cli/cli-style.c (completion_prefix_style)
10758 (completion_difference_style, completion_suffix_style): Remove.
10759 (_initialize_cli_style): Revert.
10760 * cli/cli-style.h (completion_prefix_style)
10761 (completion_difference_style, completion_suffix_style): Don't
10762 declare.
10763
e08bd6c5
PA
107642020-05-24 Pedro Alves <palves@redhat.com>
10765
10766 * symtab.c (completion_list_add_name): Return boolean indication
10767 of whether the symbol matched.
10768 (completion_list_add_symbol): Don't try to remove C++ aliases if
10769 the symbol didn't match in the first place.
10770 * symtab.h (completion_list_add_name): Return bool.
10771
ceacbf6e
SM
107722020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10773
10774 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10775 type::field.
10776
26f16254
JB
107772020-05-23 Joel Brobecker <brobecker@adacore.com>
10778
10779 GDB 9.2 released.
10780
eca1f90c
TT
107812020-05-23 Tom Tromey <tom@tromey.com>
10782
10783 * NEWS: Add entry for completion styling.
10784 * completer.c (_rl_completion_prefix_display_length): Move
10785 declaration earlier.
10786 (gdb_fnprint): Use completion_style.
10787 (gdb_display_match_list_1): Likewise.
10788 * cli/cli-style.c (completion_prefix_style)
10789 (completion_difference_style, completion_suffix_style): New
10790 globals.
10791 (_initialize_cli_style): Register new globals.
10792 * cli/cli-style.h (completion_prefix_style)
10793 (completion_difference_style, completion_suffix_style): Declare.
10794
51e2cfa2
PA
107952020-05-23 Pedro Alves <palves@redhat.com>
10796
10797 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10798 (parse_escape): Use ISDIGIT instead of isdigit.
10799 (puts_debug): Use gdb_isprint instead of isprint.
10800 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10801 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10802 ISSPACE instead of isspace.
10803 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10804 instead of isspace.
10805 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10806 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10807 instead of isxdigit and ISDIGIT instead of isdigit.
10808
80fc5e77
SM
108092020-05-22 Simon Marchi <simon.marchi@efficios.com>
10810
10811 * gdbtypes.h (struct type) <field>: New method.
10812 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10813 or type::field.
10814
3cabb6b0
SM
108152020-05-22 Simon Marchi <simon.marchi@efficios.com>
10816
10817 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10818 (TYPE_FIELDS): Use type::fields. Change all call sites that
10819 modify the propery to use type::set_fields instead.
10820
1f704f76
SM
108212020-05-22 Simon Marchi <simon.marchi@efficios.com>
10822
10823 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10824 type::num_fields instead.
10825
5e33d5f4
SM
108262020-05-22 Simon Marchi <simon.marchi@efficios.com>
10827
10828 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10829 methods.
10830 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10831 that modify the number of fields to use type::set_num_fields
10832 instead.
10833
9392ebb3
TT
108342020-05-22 Tom Tromey <tromey@adacore.com>
10835
10836 * compile/compile-object-load.h (munmap_list_free): Don't
10837 declare.
10838
7c13f4e8
AB
108392020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10840
10841 * annotate.c (annotate_source_line): Update return type, add call
10842 to update current symtab and line.
10843 * annotate.h (annotate_source_line): Update return type, and
10844 extend header comment.
10845 * source.c (info_line_command): Check annotation_level before
10846 calling annotate_source_line.
10847 * stack.c (print_frame_info): If calling annotate_source_line
10848 returns true, then don't print any other source line information.
10849
aa370940
SM
108502020-05-21 Simon Marchi <simon.marchi@efficios.com>
10851
10852 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10853
84d53fa9
SM
108542020-05-21 Simon Marchi <simon.marchi@efficios.com>
10855
10856 * coffread.c (patch_type): Remove NULL check before xfree.
10857 * corefile.c (set_gnutarget): Likewise.
10858 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10859 * exec.c (build_section_table): Likewise.
10860 * remote.c (remote_target::pass_signals): Likewise.
10861 * utils.c (n_spaces): Likewise.
10862 * cli/cli-script.c (document_command): Likewise.
10863 * i386-windows-tdep.c (core_process_module_section): Likewise.
10864 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10865
9d428aae
SM
108662020-05-20 Simon Marchi <simon.marchi@efficios.com>
10867
10868 * symfile.c (reread_symbols): Clear objfile's section_offsets
10869 vector and section indices, re-compute them by calling
10870 sym_offsets.
10871
250106a7
TT
108722020-05-20 Tom Tromey <tromey@adacore.com>
10873
10874 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10875 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10876
9a0bacfb
TV
108772020-05-20 Tom de Vries <tdevries@suse.de>
10878
10879 PR symtab/25833
10880 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10881
7b958a48
AM
108822020-05-20 Alan Modra <amodra@gmail.com>
10883
10884 PR 25993
10885 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10886 bfd_set_filename.
10887 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10888 passed to bfd_set_filename.
10889 * symfile-mem.c (add_vsyscall_page): Likewise for string
10890 passed to symbol_file_add_from_memory.
10891 (symbol_file_add_from_memory): Make name param a const char* and
10892 don't strdup.
10893
c7e97679
AM
108942020-05-20 Alan Modra <amodra@gmail.com>
10895
10896 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10897 rather than accessing bfd->filename directly.
10898 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10899 and use bfd_section_name.
10900 * dwarf2/frame.c (decode_frame_entry): Likewise.
10901 * exec.c (exec_set_section_address): Likewise.
10902 * solib-aix.c (solib_aix_bfd_open): Likewise.
10903 * stap-probe.c (get_stap_base_address): Likewise.
10904 * symfile.c (reread_symbols): Likewise.
10905
563c591b
TT
109062020-05-19 Tom Tromey <tromey@adacore.com>
10907
10908 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10909
f408d82c
SM
109102020-05-19 Simon Marchi <simon.marchi@efficios.com>
10911
10912 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10913
98c59b52
PA
109142020-05-19 Pedro Alves <palves@redhat.com>
10915
10916 * NEWS (set exec-file-mismatch): Adjust entry.
10917 * exec.c: Include "build-id.h".
10918 (validate_exec_file): Try to match build IDs instead of filenames.
10919 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10920 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10921 and pass down 'warn_if_slow'.
10922 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10923 gdb_bfd_open_closure to pass it down.
10924 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10925
4111f652
PA
109262020-05-19 Pedro Alves <palves@redhat.com>
10927
10928 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10929 * target.c (target_fileio_open_1): Rename to target_fileio_open
10930 and make extern. Use bool.
10931 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10932 (target_fileio_read_alloc_1): Adjust.
10933 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10934 (target_fileio_open_warn_if_slow): Delete declaration.
10935
ad80db5b
PA
109362020-05-19 Pedro Alves <palves@redhat.com>
10937
10938 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10939 Adjust all callers.
10940
1d6ce4d3
YS
109412020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10942
10943 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10944 whether disp is negative.
10945
9005fbbb
SM
109462020-05-19 Simon Marchi <simon.marchi@efficios.com>
10947
10948 * symfile.h (struct symfile_segment_data)
10949 <~symfile_segment_data>: Remove.
10950 <segment_info>: Change to std::vector.
10951 * symfile.c (default_symfile_segments): Update.
10952 * elfread.c (elf_symfile_segments): Update.
10953
68b888ff
SM
109542020-05-19 Simon Marchi <simon.marchi@efficios.com>
10955
10956 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10957 <segments>: New.
10958 <segment_bases, segment_sizes>: Remove.
10959 * symfile.c (default_symfile_segments): Update.
10960 * elfread.c (elf_symfile_segments): Update.
10961 * remote.c (remote_target::get_offsets): Update.
10962 * solib-target.c (solib_target_relocate_section_addresses):
10963 Update.
10964
62982abd
SM
109652020-05-19 Simon Marchi <simon.marchi@efficios.com>
10966
10967 * symfile.h (struct symfile_segment_data): Initialize fields.
10968 <~symfile_segment_data>: Add.
10969 (symfile_segment_data_up): New.
10970 (struct sym_fns) <sym_segments>: Return a
10971 symfile_segment_data_up.
10972 (default_symfile_segments): Return a symfile_segment_data_up.
10973 (free_symfile_segment_data): Remove.
10974 (get_symfile_segment_data): Return a symfile_segment_data_up.
10975 * symfile.c (default_symfile_segments): Likewise.
10976 (get_symfile_segment_data): Likewise.
10977 (free_symfile_segment_data): Remove.
10978 (symfile_find_segment_sections): Update.
10979 * elfread.c (elf_symfile_segments): Return a
10980 symfile_segment_data_up.
10981 * remote.c (remote_target::get_offsets): Update.
10982 * solib-target.c (solib_target_relocate_section_addresses):
10983 Update.
10984 * symfile-debug.c (debug_sym_segments): Return a
10985 symfile_segment_data_up.
10986
7f204339
RO
109872020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10988
e52a0f1b
RO
10989 PR build/25981
10990 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10991 Hardcode register numbers.
10992
7f204339
RO
10993 PR build/25981
10994 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10995 procfs_find_LDT_entry): Remove.
10996 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10997 procfs_find_LDT_entry): Remove.
10998 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10999 Remove.
11000
7f32a4d5
PA
110012020-05-17 Pedro Alves <palves@redhat.com>
11002 Andrew Burgess <andrew.burgess@embecosm.com>
11003 Keno Fischer <keno@juliacomputing.com>
11004
11005 PR gdb/25741
11006 * breakpoint.c (build_target_condition_list): Update comments.
11007 (build_target_command_list): Update comments and skip matching
11008 locations.
11009 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11010 a separate function. Simplify "set breakpoint auto-hw off"
11011 handling.
11012 (insert_breakpoints): Update comment.
11013 (tracepoint_locations_match): New parameter. For breakpoints,
11014 compare location types too, if the caller wants to.
11015 (handle_automatic_hardware_breakpoints): New functions.
11016 (bp_location_is_less_than): Also sort by location type and
11017 hardware breakpoint length.
11018 (update_global_location_list): Handle "set breakpoint auto-hw on"
11019 here.
11020 (update_breakpoint_locations): Ask breakpoint_locations_match to
11021 ignore location types.
11022
7d93a1e0
SM
110232020-05-16 Simon Marchi <simon.marchi@efficios.com>
11024
11025 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11026 type::name instead.
11027
d0e39ea2
SM
110282020-05-16 Simon Marchi <simon.marchi@efficios.com>
11029
11030 * gdbtypes.h (struct type) <name, set_name>: New methods.
11031 (TYPE_CODE): Use type::name. Change all call sites used to set
11032 the name to use type::set_name instead.
11033
2dab0c7b
TT
110342020-05-16 Tom Tromey <tom@tromey.com>
11035
11036 * top.c (quit_force): Update.
11037 * infrun.c (handle_no_resumed): Update.
11038 * top.h (all_uis): New function.
11039 (ALL_UIS): Remove.
11040
59f7bd8d
SM
110412020-05-16 Simon Marchi <simon.marchi@efficios.com>
11042
11043 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11044
9bf058f0
PA
110452020-05-16 Pedro Alves <palves@redhat.com>
11046
11047 * ia64-linux-nat.c
11048 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11049 Declare method.
11050 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11051
8f86ae1a
SM
110522020-05-15 Simon Marchi <simon.marchi@efficios.com>
11053
11054 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11055 (sparc64_adi_info): Likewise.
11056
d6bc0792
TT
110572020-05-15 Tom Tromey <tom@tromey.com>
11058
11059 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11060 block_objfile.
11061 (lookup_objfile_from_block): Remove.
11062 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11063 (lookup_global_symbol): Use block_objfile.
11064 * symtab.h (lookup_objfile_from_block): Don't declare.
11065 * printcmd.c (clear_dangling_display_expressions): Use
11066 block_objfile.
11067 * parse.c (operator_check_standard): Use block_objfile.
11068
8c14c3a3
TT
110692020-05-15 Tom Tromey <tom@tromey.com>
11070
11071 * language.c (language_alloc_type_symbol): Set
11072 SYMBOL_SECTION.
11073 * symtab.c (initialize_objfile_symbol): Remove.
11074 (allocate_symbol): Remove.
11075 (allocate_template_symbol): Remove.
11076 * dwarf2/read.c (fixup_go_packaging): Use "new".
11077 (new_symbol): Use "new".
11078 (read_variable): Don't call initialize_objfile_symbol. Use
11079 "new".
11080 (read_func_scope): Use "new".
11081 * xcoffread.c (process_xcoff_symbol): Don't call
11082 initialize_objfile_symbol.
11083 (SYMBOL_DUP): Remove.
11084 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11085 "new".
11086 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11087 (allocate_template_symbol): Don't declare.
11088 (struct symbol): Add copy constructor. Change defaults.
11089 * jit.c (finalize_symtab): Use "new".
11090 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11091 Use "new".
11092 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11093 (common_block_end): Use "new".
11094 * mdebugread.c (parse_symbol): Use "new".
11095 (new_symbol): Likewise.
11096
5b4a1a8d
PW
110972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11098
11099 * NEWS: Mention changes to help and apropos.
11100
57b4f16e
PW
111012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11102
11103 * command.h (enum command_class): Improve comments, document
11104 that class_alias is for user-defined aliases, give the class
11105 name for each class, remove unused class_xdb.
11106 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11107 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11108 by a precise class.
11109 * infcmd.c (_initialize_infcmd): Likewise.
11110 * reverse.c (_initialize_reverse): Likewise.
11111 * stack.c (_initialize_stack): Likewise.
11112 * symfile.c (_initialize_symfile): Likewise.
11113 * tracepoint.c (_initialize_tracepoint): Likewise.
11114
7c05caf7
PW
111152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11116
11117 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11118 when their aliased command is traversed.
11119 (help_cmd): Add fput_command_names_styled call to
11120 output command name and aliases when command has an alias.
11121
3b3aaacb
PW
111222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11123
11124 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11125 * cli/cli-decode.c (help_cmd_list): Declare as static,
11126 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11127 a command together with the command.
11128 (fput_command_name_styled, fput_command_names_styled): New functions.
11129 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11130 fput_command_name_styled.
11131 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11132 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11133
7aa1b46f
PW
111342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11135
11136 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11137 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11138 * command.h (cmd_show_list): Likewise.
11139 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11140 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11141
89bcba74
PW
111422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11143
11144 * unittests/command-def-selftests.c (traverse_command_structure):
11145 Verify all commands of a list have the same prefix command and
11146 that only the top cmdlist commands have a null prefix.
11147
3f4d92eb
PW
111482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11149
11150 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11151 as prefix, not one of its aliases.
11152 (set_cmd_prefix): Remove.
11153 (do_add_cmd): Centralize the setting of the prefix of a command, when
11154 command is defined after its full chain of prefix commands.
11155 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11156 (add_setshow_cmd_full): Likewise.
11157 (update_prefix_field_of_prefixed_commands): New function.
11158 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11159 update_prefix_field_of_prefixed_commands.
11160 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11161 addresses of remote_set_cmdlist and remote_show_cmdlist given
11162 as argument, not the address of an argument.
11163 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11164 * gdb/remote.c (_initialize_remote): Likewise.
11165
0605465f
PW
111662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11167
11168 * cli/cli-cmds.c (alias_command): Check for an existing alias
11169 using lookup_cmd_composition, as valid_command_p is too strict
11170 and forbids aliases that are the prefix of an existing alias
11171 or command.
11172 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11173 command is properly recognised as a valid command.
11174
58e6ac70
PW
111752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11176
11177 * unittests/help-doc-selftests.c: Rename to
11178 unittests/command-def-selftests.c
11179 * unittests/command-def-selftests.c (help_doc_tests): Update some
11180 comments.
11181 (command_structure_tests, traverse_command_structure): New namespace
11182 and function.
11183 (command_structure_invariants_tests): New function.
11184 (_initialize_command_def_selftests) Renamed from
11185 _initialize_help_doc_selftests, register command_structure_invariants
11186 selftest.
11187
a7b9ceb8
PW
111882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11189
11190 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11191 an alias of 'show'.
11192
b2188a06
JB
111932020-05-15 Joel Brobecker <brobecker@adacore.com>
11194
11195 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11196 ada_is_fixed_point_type. Update all callers.
11197 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11198 all callers.
11199 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11200 Update all callers.
11201 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11202 print_fixed_point_type. Update all callers.
11203 * ada-valprint.c (ada_value_print_num): Replace call to
11204 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11205
a51951c2
KB
112062020-05-14 Kevin Buettner <kevinb@redhat.com>
11207
11208 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11209 processors.
11210 (cpu_supports_bts): Add CV_AMD case.
11211
29d6859f
LM
112122020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11213 Simon Marchi <simon.marchi@efficios.com>
11214
11215 * infrun.c (stop_all_threads): Collect multiple wait events at
11216 each pass.
11217
78134374
SM
112182020-05-14 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11221 type::code instead.
11222
67607e24
SM
112232020-05-14 Simon Marchi <simon.marchi@efficios.com>
11224
11225 * gdbtypes.h (struct type) <code, set_code>: New methods.
11226 (TYPE_CODE): Use type::code. Change all call sites used to set
11227 the code to use type::set_code instead.
11228
a05575d3
TBA
112292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11230 Tom de Vries <tdevries@suse.de>
11231 Pedro Alves <palves@redhat.com>
11232
11233 PR threads/25478
11234 * infrun.c (stop_all_threads): Do NOT ignore
11235 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11236 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11237 received.
11238 (handle_no_resumed): Remove code handling a live inferior with no
11239 threads.
11240 * remote.c (has_single_non_exited_thread): New.
11241 (remote_target::update_thread_list): Do not delete a thread if is
11242 the last thread of the process.
11243 * thread.c (thread_select): Call delete_exited_threads instead of
11244 prune_threads.
11245
6ad82919
TBA
112462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11247
11248 * infrun.c (stop_all_threads): Enable/disable thread events of all
11249 targets. Move a debug message denoting the end of the function
11250 into the SCOPED_EXIT block.
11251
d890404b
TBA
112522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11253
11254 * process-stratum-target.h: Include <set>.
11255 (all_non_exited_process_targets, switch_to_target_no_thread): New
11256 function declarations.
11257 * process-stratum-target.c (all_non_exited_process_targets)
11258 (switch_to_target_no_thread): New function implementations.
11259
293b3ebc
TBA
112602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11261
11262 * infrun.c (handle_inferior_event): Extract out a piece of code
11263 into...
11264 (mark_non_executing_threads): ...this new function.
11265
7ca9b62a
TBA
112662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11267
11268 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11269 use.
11270
fc75c28b
TBA
112712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11272
11273 * regcache.c (regcache_read_pc_protected): New function
11274 implementation that returns 0 if the PC cannot read via
11275 'regcache_read_pc'.
11276 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11277 instead of 'regcache_read_pc'.
11278 (keep_going_pass_signal): Ditto.
11279
a89febbd
TT
112802020-05-13 Tom Tromey <tromey@adacore.com>
11281
11282 * ada-lang.c (align_value): Remove.
11283 (ada_template_to_fixed_record_type_1): Use align_up.
11284
f7e23710
TBA
112852020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11286
11287 * async-event.c: Update the copyright year.
11288 * async-event.h: Update the copyright year.
11289
02ff80c2
SM
112902020-05-12 Simon Marchi <simon.marchi@efficios.com>
11291
11292 * objfiles.h (is_addr_in_objfile,
11293 shared_objfile_contains_address_p): Return bool.
11294 * objfile.c (is_addr_in_objfile,
11295 shared_objfile_contains_address_p): Return bool.
11296
4fd6c7e8
TT
112972020-05-11 Tom Tromey <tromey@adacore.com>
11298
11299 * cli/cli-cmds.c (info_command): Restore.
11300 (_initialize_cli_cmds): Use add_prefix_command for "info".
11301 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11302
5eb68a39
TT
113032020-05-11 Tom Tromey <tromey@adacore.com>
11304
11305 * ada-lang.c (ada_value_primitive_field): Now public.
11306 * ada-lang.h (ada_value_primitive_field): Declare.
11307 * ada-valprint.c (print_field_values): Use
11308 ada_value_primitive_field for wrapper fields.
11309
7666722f
TV
113102020-05-11 Tom de Vries <tdevries@suse.de>
11311
11312 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11313 MODULE_DOMAIN.
11314
3ee6bb11
TV
113152020-05-11 Tom de Vries <tdevries@suse.de>
11316
11317 PR symtab/25941
11318 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11319 with length 0, if not gdb-produced.
11320 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11321
43434996
TV
113222020-05-09 Tom de Vries <tdevries@suse.de>
11323
11324 PR gdb/25955
11325 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11326 calculation.
11327
2f78cffc
TT
113282020-05-09 Tom Tromey <tom@tromey.com>
11329
11330 * top.c (server_command): Now bool.
11331 * top.h (server_command): Now bool.
11332
4f7bc5ed
TT
113332020-05-08 Tom Tromey <tromey@adacore.com>
11334
11335 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11336 already being processed.
11337
8be4b118
TT
113382020-05-08 Tom Tromey <tom@tromey.com>
11339
11340 * printcmd.c (struct display) <next>: Remove.
11341 <display>: New constructor.
11342 <exp_string>: Now a std::string.
11343 <enabled_p>: Now a bool.
11344 (display_number): Move definition earlier.
11345 (displays): Rename from display_chain. Now a std::vector.
11346 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11347 (display_command): Update.
11348 (do_one_display, disable_display)
11349 (enable_disable_display_command, do_enable_disable_display):
11350 Update.
11351 (free_display): Remove.
11352 (clear_displays): Rewrite.
11353 (delete_display): Update.
11354 (map_display_numbers): Use function_view. Remove "data"
11355 parameter. Update.
11356 (do_delete_display): Remove.
11357 (undisplay_command): Update.
11358 (do_one_display, do_displays, disable_display)
11359 (info_display_command): Update.
11360 (do_enable_disable_display): Remove.
11361 (enable_disable_display_command)
11362 (clear_dangling_display_expressions): Update.
11363
94c93c35
TT
113642020-05-08 Tom Tromey <tom@tromey.com>
11365
11366 * symtab.c (set_symbol_cache_size)
11367 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11368 (maintenance_print_symbol_cache_statistics): Update.
11369 * symmisc.c (print_symbol_bcache_statistics)
11370 (print_objfile_statistics, maintenance_print_objfiles)
11371 (maintenance_info_symtabs, maintenance_check_symtabs)
11372 (maintenance_expand_symtabs, maintenance_info_line_tables):
11373 Update.
11374 * symfile-debug.c (set_debug_symfile): Update.
11375 * source.c (forget_cached_source_info): Update.
11376 * python/python.c (gdbpy_progspaces): Update.
11377 * psymtab.c (maintenance_info_psymtabs): Update.
11378 * probe.c (parse_probes): Update.
11379 * linespec.c (iterate_over_all_matching_symtabs)
11380 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11381 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11382 * exec.c (exec_target::close): Update.
11383 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11384 * breakpoint.c (print_one_breakpoint_location)
11385 (create_longjmp_master_breakpoint)
11386 (create_std_terminate_master_breakpoint): Update.
11387 * progspace.c (program_spaces): Now a std::vector.
11388 (maybe_new_address_space): Update.
11389 (add_program_space): Remove.
11390 (program_space::program_space): Update.
11391 (remove_program_space): Update.
11392 (number_of_program_spaces): Remove.
11393 (print_program_space, update_address_spaces): Update.
11394 * progspace.h (program_spaces): Change type.
11395 (ALL_PSPACES): Remove.
11396 (number_of_program_spaces): Don't declare.
11397 (struct program_space) <next>: Remove.
11398
a1fd1ac9
TT
113992020-05-08 Tom Tromey <tom@tromey.com>
11400
11401 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11402 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11403 (enable_break): Update.
11404 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11405 (frv_fdpic_find_canonical_descriptor): Update.
11406 (frv_fetch_objfile_link_map): Update.
11407 * progspace.c (program_space::free_all_objfiles): Update.
11408 (program_space::solibs): New method.
11409 * progspace.h (struct program_space) <solibs>: New method.
11410 * solist.h (master_so_list): Don't declare.
11411 (ALL_SO_LIBS): Remove.
11412 * solib.h (so_list_head): Remove.
11413 (update_solib_list): Update comment.
11414 * solib.c (master_so_list): Remove.
11415 (solib_used, update_solib_list, solib_add)
11416 (info_sharedlibrary_command, clear_solib)
11417 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11418
38eae084
TT
114192020-05-08 Tom Tromey <tom@tromey.com>
11420
11421 * extension.c (extension_languages): Now a std::array.
11422 (ALL_EXTENSION_LANGUAGES): Remove.
11423 (get_ext_lang_defn, get_ext_lang_of_file)
11424 (eval_ext_lang_from_control_command): Update.
11425 (finish_ext_lang_initialization)
11426 (auto_load_ext_lang_scripts_for_objfile)
11427 (ext_lang_type_printers::ext_lang_type_printers)
11428 (apply_ext_lang_type_printers)
11429 (ext_lang_type_printers::~ext_lang_type_printers)
11430 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11431 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11432 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11433 (get_matching_xmethod_workers, ext_lang_colorize)
11434 (ext_lang_before_prompt): Update.
11435 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11436
596dc4ad
TT
114372020-05-08 Tom Tromey <tom@tromey.com>
11438
11439 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11440 overload.
11441 <swap_string, m_string>: Remove.
11442 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11443 Update.
11444 * stabsread.c (define_symbol, read_type): Update.
11445 * linespec.c (find_linespec_symbols): Update.
11446 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11447 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11448 * dbxread.c (read_dbx_symtab): Update.
11449 * cp-support.h (cp_canonicalize_string_full)
11450 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11451 Return unique_xmalloc_ptr.
11452 * cp-support.c (inspect_type): Update.
11453 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11454 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11455 Likewise.
11456 * c-typeprint.c (print_name_maybe_canonical): Update.
11457 * break-catch-throw.c (check_status_exception_catchpoint):
11458 Update.
11459
bf4cb9be
TV
114602020-05-08 Tom de Vries <tdevries@suse.de>
11461
11462 * infrun.c (follow_fork): Copy current_line and current_symtab to
11463 child thread.
11464
a1b68f28
SM
114652020-05-07 Simon Marchi <simon.marchi@efficios.com>
11466
11467 * async-event.c (struct async_signal_handler, struct
11468 async_event_handler): Reformat, remove typedef.
11469
98d48915
SM
114702020-05-07 Simon Marchi <simon.marchi@efficios.com>
11471
11472 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11473 access thistype->main_type->dyn_prop_list directly.
11474
7aa91313
SM
114752020-05-07 Simon Marchi <simon.marchi@efficios.com>
11476
11477 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11478 (remove_dyn_prop): Remove. Update all users to use
11479 type::remove_dyn_prop.
11480 * gdbtypes.c (remove_dyn_prop): Rename to...
11481 (type::remove_dyn_prop): ... this.
11482
5c54719c
SM
114832020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11484
11485 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11486 (add_dyn_prop): Remove. Update all users to use
11487 type::add_dyn_prop.
11488 * gdbtypes.c (add_dyn_prop): Rename to...
11489 (type::add_dyn_prop): ... this.
11490
24e99c6c
SM
114912020-05-07 Simon Marchi <simon.marchi@efficios.com>
11492
11493 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11494 (get_dyn_prop): Remove. Update all users to use
11495 type::dyn_prop.
11496 * gdbtypes.c (get_dyn_prop): Rename to...
11497 (type::dyn_prop): ... this.
11498
0d4bf016
SM
114992020-05-06 Simon Marchi <simon.marchi@efficios.com>
11500
11501 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11502
ac4a4f1c
SM
115032020-05-06 Simon Marchi <simon.marchi@efficios.com>
11504
11505 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11506 instruction, skip it if it's there.
11507
a3bbacc1
SM
115082020-05-05 Simon Marchi <simon.marchi@efficios.com>
11509
11510 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11511
c3236f84
SM
115122020-05-04 Simon Marchi <simon.marchi@efficios.com>
11513
11514 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11515 * gdbtypes.c (recursive_dump_type): Remove use of
11516 TYPE_INCOMPLETE.
11517
3b6acaee
TT
115182020-05-03 Tom Tromey <tom@tromey.com>
11519
11520 * breakpoint.c (catch_command, tcatch_command): Remove.
11521 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11522 add_show_prefix_cmd.
11523 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11524 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11525 Remove.
11526 (add_internal_problem_command): Use add_basic_prefix_cmd,
11527 add_show_prefix_cmd.
11528 * mips-tdep.c (set_mipsfpu_command): Remove.
11529 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11530 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11531 (_initialize_index_cache): Use add_basic_prefix_cmd.
11532 * memattr.c (dummy_cmd): Remove.
11533 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11534 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11535 (_initialize_tui_win): Use add_basic_prefix_cmd,
11536 add_show_prefix_cmd.
11537 * cli/cli-logging.c (set_logging_command): Remove.
11538 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11539 add_show_prefix_cmd.
11540 (show_logging_command): Remove.
11541 * target.c (target_command): Remove.
11542 (add_target): Use add_basic_prefix_cmd.
11543
a51119cd
HD
115442020-05-02 Hannes Domani <ssbssa@yahoo.de>
11545
11546 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11547
652fc23a 115482020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11549
652fc23a
PW
11550 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11551 info_command.
11552
117539e6
KR
115532020-04-30 Kamil Rytarowski <n54@gmx.com>
11554
11555 * nbsd-nat.c (nbsd_enable_proc_events)
11556 (nbsd_nat_target::post_startup_inferior): Add.
11557 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11558 (nbsd_nat_target::update_thread_list): Rewrite.
11559 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11560 "PTRACE_LWP_CREATE".
11561 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11562
102e38eb 115632020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11564
102e38eb
PW
11565 * stack.c (_initialize_stack): Remove duplicated creation
11566 of "frame" command and "f" alias.
11567
ee9d1e5f
HD
115682020-04-30 Hannes Domani <ssbssa@yahoo.de>
11569
11570 PR gdb/18706
11571 * gdbtypes.c (check_typedef): Calculate size of array of
11572 stubbed type.
11573
627c7fb8
HD
115742020-04-30 Hannes Domani <ssbssa@yahoo.de>
11575
11576 PR gdb/15559
11577 * i386-tdep.c (i386_push_dummy_call): Call
11578 i386_thiscall_push_dummy_call.
11579 (i386_thiscall_push_dummy_call): New function.
11580 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11581 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11582 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11583
ffc2844e
SM
115842020-04-29 Simon Marchi <simon.marchi@efficios.com>
11585
11586 * gdbarch.sh (do_read): Add shellcheck disable directive for
11587 warning SC2162.
11588
1207375d
SM
115892020-04-29 Simon Marchi <simon.marchi@efficios.com>
11590
11591 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11592 "referenced but not assigned" warning.
11593
9fdb2916
SM
115942020-04-29 Simon Marchi <simon.marchi@efficios.com>
11595
11596 * gdbarch.sh: Remove code that sets fallbackdefault.
11597
759cea5e
SM
115982020-04-29 Simon Marchi <simon.marchi@efficios.com>
11599
11600 * gdbarch.sh: Use shell operators && and || instead of
11601 -a and -o.
11602
cb02ab24
SM
116032020-04-29 Simon Marchi <simon.marchi@efficios.com>
11604
11605 * gdbarch.sh: Use $(...) instead of `...`.
11606
a6fc5ffc
SM
116072020-04-29 Simon Marchi <simon.marchi@efficios.com>
11608
11609 * gdbarch.sh: Use double quotes around variables.
11610
8d113d13
SM
116112020-04-29 Simon Marchi <simon.marchi@efficios.com>
11612
11613 * gdbarch.sh: Use %s with printf, instead of variables in the
11614 format string.
11615
ed6acedd
TT
116162020-04-29 Tom Tromey <tromey@adacore.com>
11617
11618 PR ada/25875:
11619 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11620 type fields here.
11621 (read_enumeration_type): Call
11622 update_enumeration_type_from_children later. Update comments.
11623 (process_enumeration_scope): Don't create type fields.
11624
b68b1b58
KR
116252020-04-29 Kamil Rytarowski <n54@gmx.com>
11626
11627 * nbsd-tdep.c: Include "xml-syscall.h".
11628 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11629
f94b2e03
KR
116302020-04-29 Kamil Rytarowski <n54@gmx.com>
11631
11632 * nbsd-nat.c: Include "sys/wait.h".
11633 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11634 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11635 (nbsd_nat_target::remove_exec_catchpoint)
11636 (nbsd_nat_target::set_syscall_catchpoint): Add.
11637 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11638 (nbsd_nat_target::insert_exec_catchpoint)
11639 (nbsd_nat_target::remove_exec_catchpoint)
11640 (nbsd_nat_target::set_syscall_catchpoint): Add.
11641 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11642 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11643 `nbsd_get_syscall_number'.
11644
fc49bc72
TT
116452020-04-29 Tom Tromey <tom@tromey.com>
11646
11647 * stack.c (print_block_frame_labels): Remove.
11648
d642b692
HD
116492020-04-29 Hannes Domani <ssbssa@yahoo.de>
11650
11651 PR gdb/17320
11652 * ada-valprint.c (val_print_packed_array_elements): Move array
11653 end bracket to new line.
11654 (ada_val_print_string): Remove extra spaces before first array
11655 element.
11656 * c-valprint.c (c_value_print_array): Likewise.
11657 * m2-valprint.c (m2_print_array_contents): Likewise.
11658 (m2_value_print_inner): Likewise.
11659 * p-valprint.c (pascal_value_print_inner): Likewise.
11660 * valprint.c (generic_val_print_array): Likewise.
11661 (value_print_array_elements): Move first array element and array
11662 end bracket to new line.
11663
ea90f227
TV
116642020-04-29 Tom de Vries <tdevries@suse.de>
11665
11666 PR symtab/25889
11667 * linespec.c (find_method): Fix ix calculation.
11668
4498ef4f
KR
116692020-04-28 Kamil Rytarowski <n54@gmx.com>
11670
11671 * syscalls/update-netbsd.sh: New file.
11672 * syscalls/netbsd.xml: Regenerate.
11673 * data-directory/Makefile.in: Register `netbsd.xml' in
11674 `SYSCALLS_FILES'.
11675
a55e30b5
SM
116762020-04-28 Simon Marchi <simon.marchi@efficios.com>
11677
11678 * syscalls/update-freebsd.sh: Add double quotes.
11679
2b2fbab8
TT
116802020-04-28 Tom Tromey <tom@tromey.com>
11681
11682 * NEWS: Update.
11683 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11684 (cmdpy_init): Allow class_tui.
11685
a65189c9
TV
116862020-04-28 Mark Williams <mark@myosotissp.com>
11687
11688 PR gdb/24480
11689 * dwarf2read.c: Add missing assingments to list_in_scope when
11690 start_symtab was already called.
11691
1b95cdb7
SM
116922020-04-28 Simon Marchi <simon.marchi@efficios.com>
11693
11694 PR gdb/25881
11695 * dwarf2/read.c (offset_map_type): Use
11696 gdb:hash_enum<sect_offset> as hash function.
11697
15cd93d0
TV
116982020-04-28 Tom de Vries <tdevries@suse.de>
11699
11700 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11701 with DW_AT_signature.
11702
1eb39914
SM
117032020-04-27 Simon Marchi <simon.marchi@efficios.com>
11704
11705 * configure.ac: Remove check for fs_base/gs_base in
11706 user_regs_struct.
11707 * configure: Re-generate.
11708 * config.in: Re-generate.
11709 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11710 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11711 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11712
991a3e2e
LM
117132020-04-27 Luis Machado <luis.machado@linaro.org>
11714
11715 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11716 problematic inline frame unwinding situation.
11717 * frame.c (frame_id_computed_p): New function.
11718 * frame.h (frame_id_computed_p): New prototype.
11719
361ba0e8
TT
117202020-04-26 Tom Tromey <tom@tromey.com>
11721
11722 * command.h (enum command_class) <class_pseudo>: Remove.
11723
bc3609fd
PW
117242020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11725
11726 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11727 and whitespace.
11728
b9771db7
KR
117292020-04-25 Kamil Rytarowski <n54@gmx.com>
11730
ec16513e
SM
11731 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11732 `PT_GET_PROCESS_STATE' block.
b9771db7 11733
7151c1af
TT
117342020-04-24 Tom Tromey <tom@tromey.com>
11735
11736 * symtab.h (symbol_get_demangled_name): Don't declare.
11737 * symtab.c (symbol_get_demangled_name): Remove.
11738 (general_symbol_info::natural_name)
11739 (general_symbol_info::demangled_name): Update.
11740
906bb4c5
TT
117412020-04-24 Tom Tromey <tom@tromey.com>
11742
11743 PR rust/25025:
11744 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11745
bcfe6157
TT
117462020-04-24 Tom Tromey <tom@tromey.com>
11747
11748 PR symtab/12707:
11749 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11750 exists.
11751 (new_symbol): Likewise.
11752 * compile/compile-object-load.c (get_out_value_type): Use
11753 symbol_matches_search_name.
11754
f049a313
TT
117552020-04-24 Tom Tromey <tom@tromey.com>
11756
11757 * dwarf2/read.c (add_partial_symbol): Do not call
11758 compute_and_set_names.
11759
76e288d1
TT
117602020-04-24 Tom Tromey <tom@tromey.com>
11761
11762 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11763 overload.
11764
2467f4f6
TT
117652020-04-24 Tom Tromey <tom@tromey.com>
11766
11767 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11768 (add_psymbol_to_list): New overload. Make old overload call new
11769 one.
11770 * psympriv.h (add_psymbol_to_list): New overload.
11771
e61108c9
TT
117722020-04-24 Tom Tromey <tom@tromey.com>
11773
11774 * dwarf2/read.c (partial_die_info::read) <case
11775 DW_AT_linkage_name>: Use value_as_string.
11776 (dwarf2_string_attr): Use value_as_string.
11777 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11778 method.
11779 * dwarf2/attribute.c (attribute::value_as_string): New method.
11780
8c87a452
TT
117812020-04-24 Tom Tromey <tom@tromey.com>
11782
11783 * symtab.c (general_symbol_info::natural_name)
11784 (general_symbol_info::demangled_name): Check for language_rust.
11785
787de330
TT
117862020-04-24 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11789 (dwarf2_physname): ... from here.
11790 (partial_die_info::read): Add Rust "{" hack.
11791
ff985671
TT
117922020-04-24 Tom Tromey <tom@tromey.com>
11793
11794 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11795 method.
11796 (symbol_set_demangled_name): Don't declare.
11797 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11798 symbol_set_demangled_name.
11799 (general_symbol_info::set_language)
11800 (general_symbol_info::compute_and_set_names): Update.
11801 * minsyms.c (minimal_symbol_reader::install): Update.
11802 * dwarf2/read.c (new_symbol): Update.
11803
1acda803
TT
118042020-04-24 Tom Tromey <tromey@adacore.com>
11805
11806 PR python/23662:
11807 * python/py-type.c (convert_field): Handle
11808 FIELD_LOC_KIND_DWARF_BLOCK.
11809 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11810 (typy_get_dynamic): Nw function.
11811 (type_object_getset): Add "dynamic".
11812 * NEWS: Add entry.
11813
d656f129
TT
118142020-04-24 Tom Tromey <tromey@adacore.com>
11815
11816 * ada-typeprint.c (print_choices, print_variant_part)
11817 (print_record_field_types_dynamic): New functions.
11818 (print_record_field_types): Use print_record_field_types_dynamic.
11819
7d79de9a
TT
118202020-04-24 Tom Tromey <tromey@adacore.com>
11821
11822 * dwarf2/read.c (handle_data_member_location): New overload.
11823 (dwarf2_add_field): Use it.
11824 (decode_locdesc): Add "computed" parameter. Update comment.
11825 * gdbtypes.c (is_dynamic_type_internal): Also look for
11826 FIELD_LOC_KIND_DWARF_BLOCK.
11827 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11828 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11829 virtual base classes.
11830 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11831 FIELD_LOC_KIND_DWARF_BLOCK.
11832
f8e89861
TT
118332020-04-24 Tom Tromey <tromey@adacore.com>
11834
11835 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11836 * gdbtypes.c (is_dynamic_type_internal): Check
11837 TYPE_HAS_DYNAMIC_LENGTH.
11838 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11839 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11840 New macros.
11841 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11842 constant.
11843
9c6a1327
TT
118442020-04-24 Tom Tromey <tromey@adacore.com>
11845
11846 * dwarf2/read.c (struct variant_field): Rewrite.
11847 (struct variant_part_builder): New.
11848 (struct nextfield): Remove "variant" field. Add "offset".
11849 (struct field_info): Add "current_variant_part" and
11850 "variant_parts".
11851 (alloc_discriminant_info): Remove.
11852 (alloc_rust_variant): New function.
11853 (quirk_rust_enum): Update.
11854 (dwarf2_add_field): Set "offset" member. Don't handle
11855 DW_TAG_variant_part.
11856 (offset_map_type): New typedef.
11857 (convert_variant_range, create_one_variant)
11858 (create_one_variant_part, create_variant_parts)
11859 (add_variant_property): New functions.
11860 (dwarf2_attach_fields_to_type): Call add_variant_property.
11861 (read_structure_type): Don't handle DW_TAG_variant_part.
11862 (handle_variant_part, handle_variant): New functions.
11863 (handle_struct_member_die): Use them.
11864 (process_structure_scope): Don't handle variant parts.
11865 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11866 (struct discriminant_info): Remove.
11867 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11868 (struct main_type) <flag_discriminated_union>: Remove.
11869 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11870 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11871 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11872 Update.
11873 * valops.c (value_union_variant): Remove.
11874 * value.h (value_union_variant): Don't declare.
11875
b249d2c2
TT
118762020-04-24 Tom Tromey <tromey@adacore.com>
11877
11878 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11879 (ada_value_primitive_packed_val): Update.
11880 * ada-valprint.c (ada_value_print_1): Update.
11881 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11882 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11883 just an address. Use evaluate_for_locexpr_baton.
11884 (dwarf2_evaluate_property): Update.
11885 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11886 array_view.
11887 * findvar.c (default_read_var_value): Update.
11888 * gdbtypes.c (compute_variant_fields_inner)
11889 (resolve_dynamic_type_internal): Update.
11890 (resolve_dynamic_type): Change type of valaddr parameter.
11891 * gdbtypes.h (resolve_dynamic_type): Update.
11892 * valarith.c (value_subscripted_rvalue): Update.
11893 * value.c (value_from_contents_and_address): Update.
11894
61122aa9
TT
118952020-04-24 Tom Tromey <tromey@adacore.com>
11896
11897 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11898 "push_initial_value" parameter.
11899 (dwarf2_evaluate_property): Likewise.
11900 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11901
ef83a141
TT
119022020-04-24 Tom Tromey <tromey@adacore.com>
11903
11904 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11905 (variant::matches, compute_variant_fields_recurse)
11906 (compute_variant_fields_inner, compute_variant_fields): New
11907 functions.
11908 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11909 Use resolved_type after type is made.
11910 (operator==): Add new cases.
11911 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11912 (struct discriminant_range, struct variant, struct variant_part):
11913 New.
11914 (union dynamic_prop_data) <variant_parts, original_type>: New
11915 members.
11916 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11917 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11918 constants.
11919 * value.c (unpack_bits_as_long): Now public.
11920 * value.h (unpack_bits_as_long): Declare.
11921
675127ec
TT
119222020-04-24 Tom Tromey <tromey@adacore.com>
11923
11924 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11925 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11926
9852ceef
HD
119272020-04-24 Hannes Domani <ssbssa@yahoo.de>
11928
11929 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11930
7632c6ce
KR
119312020-04-24 Kamil Rytarowski <n54@gmx.com>
11932
11933 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11934 (remove_fork_catchpoint, post_startup_inferior)
11935 (post_attach): Move...
11936 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11937 (remove_fork_catchpoint, post_startup_inferior)
11938 (post_attach): ...here.
11939 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11940 (remove_fork_catchpoint, post_startup_inferior)
11941 (post_attach): Move...
11942 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11943 (remove_fork_catchpoint, post_startup_inferior)
11944 (post_attach): ...here.
11945
7be2bb4f
TT
119462020-04-24 Tom Tromey <tromey@adacore.com>
11947
11948 * nat/windows-nat.h (struct windows_thread_info)
11949 <pc_adjusted>: New member.
11950 * windows-nat.c (windows_fetch_one_register): Check
11951 pc_adjusted.
11952 (windows_nat_target::get_windows_debug_event)
11953 (windows_nat_target::wait): Set pc_adjusted.
11954
f80cb3b4
TV
119552020-04-24 Tom de Vries <tdevries@suse.de>
11956
11957 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11958 Run gdb-add-index inside temp dir.
11959
29514b87
TT
119602020-04-23 Tom Tromey <tromey@adacore.com>
11961
11962 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11963 in loop.
11964
5939967b
LM
119652020-04-23 Luis Machado <luis.machado@linaro.org>
11966
11967 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11968 get_frame_register instead of gdbarch_unwind_pc.
11969
70bc38f5
TV
119702020-04-23 Tom de Vries <tdevries@suse.de>
11971
11972 * symtab.c (lookup_global_symbol): Prefer def over decl.
11973
de82891c
TV
119742020-04-23 Tom de Vries <tdevries@suse.de>
11975
11976 PR symtab/25807
11977 * block.c (best_symbol, better_symbol): Promote to external.
11978 * block.h (best_symbol, better_symbol): Declare.
11979 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11980 decl.
11981
ecc6c606
TT
119822020-04-23 Tom Tromey <tromey@adacore.com>
11983
11984 PR ada/25837:
11985 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11986 "const char *", not a "const std::string &".
11987 <name_and_matcher::operator==>: Update.
11988 * unittests/lookup_name_info-selftests.c: Change type of
11989 "result".
11990
740480b8
TT
119912020-04-23 Tom Tromey <tom@tromey.com>
11992
11993 * inferior.h (iterate_over_inferiors): Don't declare.
11994 * inferior.c (iterate_over_inferiors): Remove.
11995 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11996 Remove.
11997 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11998 use iterate_over_inferiors.
11999 (darwin_resume_inferior_it)
12000 (struct resume_inferior_threads_param)
12001 (darwin_resume_inferior_threads_it): Remove.
12002 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12003
ae3ab1f0
TV
120042020-04-23 Tom de Vries <tdevries@suse.de>
12005
12006 * blockframe.c (find_pc_partial_function): Use
12007 find_pc_sect_compunit_symtab rather than
12008 objfile->sf->qf->find_pc_sect_compunit_symtab.
12009
317d2668
TV
120102020-04-22 Tom de Vries <tdevries@suse.de>
12011
12012 PR symtab/25764
12013 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12014 in psymtabs.
12015
eea9e357
TV
120162020-04-22 Tom de Vries <tdevries@suse.de>
12017
12018 PR symtab/25801
12019 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12020 symtabs.
12021
3d5afab3
TV
120222020-04-22 Tom de Vries <tdevries@suse.de>
12023
12024 PR symtab/25700
12025 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12026 CU if already created.
12027
d43b7a2d
TBA
120282020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12029
12030 * infrun.c (displaced_step_fixup): Switch to the event_thread
12031 before calling displaced_step_restore, not after.
12032
d89edf9b
MM
120332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12034
12035 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12036 its inferior is not recorded by us.
12037 (record_btrace_target_open): Replace call to
12038 all_non_exited_threads () with call to current_inferior
12039 ()->non_exited_threads ().
12040 (record_btrace_target::stop_recording): Likewise.
12041 (record_btrace_target::close): Likewise.
12042 (record_btrace_target::wait): Likewise.
12043 (record_btrace_target::record_stop_replaying): Likewise.
12044
5897fd49
MM
120452020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12046
12047 * btrace.c (btrace_enable): Throw an error on double enables and
12048 when enabling recording fails.
12049 (btrace_disable): Throw an error if the thread is not recorded.
12050
1a476b6d
MM
120512020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12052
12053 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12054 request if we do not have a thread_info.
12055
4778a5f8
TV
120562020-04-21 Tom de Vries <tdevries@suse.de>
12057
12058 PR gdb/25471
12059 * thread.c
12060 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12061 exception in get_frame_id.
12062
0fa7617d
TT
120632020-04-20 Tom Tromey <tromey@adacore.com>
12064
12065 * python/python.c (struct gdbpy_event): Mark move constructor as
12066 noexcept.
12067 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12068 constructor as noexcept.
12069 * completer.h (struct completion_result): Mark move constructor as
12070 noexcept.
12071 * completer.c (completion_result::completion_result): Use
12072 initialization style. Don't call reset_match_list.
12073
ad23bda0
MS
120742020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12075
12076 * MAINTAINERS (Write After Approval): Add myself.
12077
45e1f031
TT
120782020-04-18 Tom Tromey <tom@tromey.com>
12079
12080 * windows-tdep.c (init_w32_command_list)
12081 (w32_prefix_command_valid): Restore.
12082 (_initialize_windows_tdep): Call init_w32_command_list.
12083
08feed99
TT
120842020-04-18 Tom Tromey <tom@tromey.com>
12085
12086 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12087 * value.c (value_fn_field): Update.
12088 * valops.c (find_function_in_inferior)
12089 (value_allocate_space_in_inferior): Update.
12090 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12091 Update.
12092 * tui/tui-source.c (tui_source_window::set_contents): Update.
12093 * symtab.c (lookup_global_or_static_symbol)
12094 (find_function_start_sal_1, skip_prologue_sal)
12095 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12096 * symmisc.c (dump_msymbols, dump_symtab_1)
12097 (maintenance_print_one_line_table): Update.
12098 * symfile.c (init_entry_point_info, section_is_mapped)
12099 (list_overlays_command, simple_read_overlay_table)
12100 (simple_overlay_update_1): Update.
12101 * stap-probe.c (handle_stap_probe): Update.
12102 * stabsread.c (dbx_init_float_type, define_symbol)
12103 (read_one_struct_field, read_enum_type, read_range_type): Update.
12104 * source.c (info_line_command): Update.
12105 * python/python.c (gdbpy_source_objfile_script)
12106 (gdbpy_execute_objfile_script): Update.
12107 * python/py-type.c (save_objfile_types): Update.
12108 * python/py-objfile.c (py_free_objfile): Update.
12109 * python/py-inferior.c (python_new_objfile): Update.
12110 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12111 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12112 (maintenance_check_psymtabs): Update.
12113 * printcmd.c (info_address_command): Update.
12114 * objfiles.h (struct objfile) <arch>: New method, from
12115 get_objfile_arch.
12116 (get_objfile_arch): Don't declare.
12117 * objfiles.c (get_objfile_arch): Remove.
12118 (filter_overlapping_sections): Update.
12119 * minsyms.c (msymbol_is_function): Update.
12120 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12121 (output_nondebug_symbol): Update.
12122 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12123 (mdebug_expand_psymtab): Update.
12124 * machoread.c (macho_add_oso_symfile): Update.
12125 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12126 Update.
12127 * linux-fork.c (checkpoint_command): Update.
12128 * linespec.c (convert_linespec_to_sals): Update.
12129 * jit.c (finalize_symtab): Update.
12130 * infrun.c (insert_exception_resume_from_probe): Update.
12131 * ia64-tdep.c (ia64_find_unwind_table): Update.
12132 * hppa-tdep.c (internalize_unwinds): Update.
12133 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12134 Update.
12135 * gcore.c (call_target_sbrk): Update.
12136 * elfread.c (record_minimal_symbol, elf_symtab_read)
12137 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12138 (elf_gnu_ifunc_resolve_by_got): Update.
12139 * dwarf2/read.c (create_addrmap_from_index)
12140 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12141 (read_debug_names_from_section)
12142 (process_psymtab_comp_unit_reader, add_partial_symbol)
12143 (add_partial_subprogram, process_full_comp_unit)
12144 (read_file_scope, read_func_scope, read_lexical_block_scope)
12145 (read_call_site_scope, dwarf2_ranges_read)
12146 (dwarf2_record_block_ranges, dwarf2_add_field)
12147 (mark_common_block_symbol_computed, read_tag_pointer_type)
12148 (read_tag_string_type, dwarf2_init_float_type)
12149 (dwarf2_init_complex_target_type, read_base_type)
12150 (partial_die_info::read, partial_die_info::read)
12151 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12152 (dwarf2_fetch_die_loc_sect_off): Update.
12153 * dwarf2/loc.c (dwarf2_find_location_expression)
12154 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12155 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12156 (dwarf2_loc_desc_get_symbol_read_needs)
12157 (locexpr_describe_location_piece, locexpr_describe_location_1)
12158 (loclist_describe_location): Update.
12159 * dwarf2/index-write.c (write_debug_names): Update.
12160 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12161 * dtrace-probe.c (dtrace_process_dof): Update.
12162 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12163 (process_one_symbol): Update.
12164 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12165 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12166 (coff_read_enum_type): Update.
12167 * cli/cli-cmds.c (edit_command, list_command): Update.
12168 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12169 * breakpoint.c (create_overlay_event_breakpoint)
12170 (create_longjmp_master_breakpoint)
12171 (create_std_terminate_master_breakpoint)
12172 (create_exception_master_breakpoint, get_sal_arch): Update.
12173 * block.c (block_gdbarch): Update.
12174 * annotate.c (annotate_source_line): Update.
12175
0743fc83
TT
121762020-04-17 Tom Tromey <tromey@adacore.com>
12177
12178 * auto-load.c (show_auto_load_cmd): Remove.
12179 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12180 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12181 (maintenance_print_arc_command): Remove.
12182 * tui/tui-win.c (tui_command): Remove.
12183 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12184 * tui/tui-layout.c (tui_layout_command): Remove.
12185 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12186 * python/python.c (user_set_python, user_show_python): Remove.
12187 (_initialize_python): Use add_basic_prefix_cmd,
12188 add_show_prefix_cmd.
12189 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12190 (install_gdb_commands): Use add_basic_prefix_cmd,
12191 add_show_prefix_cmd.
12192 (info_guile_command): Remove.
12193 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12194 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12195 add_show_prefix_cmd.
12196 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12197 Remove do_set and do_show parameters.
12198 * cli/cli-style.c (set_style, show_style): Remove.
12199 (_initialize_cli_style): Use add_basic_prefix_cmd,
12200 add_show_prefix_cmd.
12201 (cli_style_option::add_setshow_commands): Remove do_set and
12202 do_show parameters.
12203 (cli_style_option::add_setshow_commands): Use
12204 add_basic_prefix_cmd, add_show_prefix_cmd.
12205 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12206 (set_style_name): Remove.
12207 * cli/cli-dump.c (dump_command, append_command): Remove.
12208 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12209 (tekhex_dump_command, binary_dump_command)
12210 (binary_append_command): Remove.
12211 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12212 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12213 (init_w32_command_list): Remove; move into ...
12214 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12215 * valprint.c (set_print, show_print, set_print_raw)
12216 (show_print_raw): Remove.
12217 (_initialize_valprint): Use add_basic_prefix_cmd,
12218 add_show_prefix_cmd.
12219 * typeprint.c (set_print_type, show_print_type): Remove.
12220 (_initialize_typeprint): Use add_basic_prefix_cmd,
12221 add_show_prefix_cmd.
12222 * record.c (set_record_command, show_record_command): Remove.
12223 (_initialize_record): Use add_basic_prefix_cmd,
12224 add_show_prefix_cmd.
12225 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12226 add_show_prefix_cmd.
12227 (info_command, show_command, set_debug, show_debug): Remove.
12228 * top.h (set_history, show_history): Don't declare.
12229 * top.c (set_history, show_history): Remove.
12230 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12231 (unset_tdesc_cmd): Remove.
12232 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12233 add_show_prefix_cmd.
12234 * symtab.c (info_module_command): Remove.
12235 (_initialize_symtab): Use add_basic_prefix_cmd.
12236 * symfile.c (overlay_command): Remove.
12237 (_initialize_symfile): Use add_basic_prefix_cmd.
12238 * sparc64-tdep.c (info_adi_command): Remove.
12239 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12240 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12241 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12242 add_show_prefix_cmd.
12243 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12244 (_initialize_serial): Use add_basic_prefix_cmd,
12245 add_show_prefix_cmd.
12246 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12247 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12248 add_show_prefix_cmd.
12249 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12250 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12251 add_show_prefix_cmd.
12252 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12253 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12254 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12255 add_show_prefix_cmd.
12256 * remote.c (remote_command, set_remote_cmd): Remove.
12257 (_initialize_remote): Use add_basic_prefix_cmd.
12258 * record-full.c (set_record_full_command)
12259 (show_record_full_command): Remove.
12260 (_initialize_record_full): Use add_basic_prefix_cmd,
12261 add_show_prefix_cmd.
12262 * record-btrace.c (cmd_set_record_btrace)
12263 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12264 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12265 (cmd_show_record_btrace_pt): Remove.
12266 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12267 add_show_prefix_cmd.
12268 * ravenscar-thread.c (set_ravenscar_command)
12269 (show_ravenscar_command): Remove.
12270 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12271 add_show_prefix_cmd.
12272 * mips-tdep.c (show_mips_command, set_mips_command)
12273 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12274 add_show_prefix_cmd.
12275 * maint.c (maintenance_command, maintenance_info_command)
12276 (maintenance_check_command, maintenance_print_command)
12277 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12278 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12279 add_show_prefix_cmd.
12280 (show_per_command_cmd): Remove.
12281 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12282 Remove.
12283 (maintenance_show_test_settings_cmd): Remove.
12284 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12285 add_show_prefix_cmd.
12286 * maint-test-options.c (maintenance_test_options_command):
12287 Remove.
12288 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12289 * macrocmd.c (macro_command): Remove
12290 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12291 * language.c (set_check, show_check): Remove.
12292 (_initialize_language): Use add_basic_prefix_cmd,
12293 add_show_prefix_cmd.
12294 * infcmd.c (unset_command): Remove.
12295 (_initialize_infcmd): Use add_basic_prefix_cmd.
12296 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12297 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12298 add_show_prefix_cmd.
12299 * go32-nat.c (go32_info_dos_command): Remove.
12300 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12301 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12302 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12303 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12304 (_initialize_frame): Use add_basic_prefix_cmd,
12305 add_show_prefix_cmd.
12306 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12307 (_initialize_dcache): Use add_basic_prefix_cmd,
12308 add_show_prefix_cmd.
12309 * cp-support.c (maint_cplus_command): Remove.
12310 (_initialize_cp_support): Use add_basic_prefix_cmd.
12311 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12312 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12313 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12314 add_basic_prefix_cmd, add_show_prefix_cmd.
12315 * breakpoint.c (save_command): Remove.
12316 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12317 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12318 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12319 add_show_prefix_cmd.
12320 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12321 (set_ada_command, show_ada_command): Remove.
12322 (_initialize_ada_language): Use add_basic_prefix_cmd,
12323 add_show_prefix_cmd.
12324 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12325
3557f442
KR
123262020-04-16 Kamil Rytarowski <n54@gmx.com>
12327
12328 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12329 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12330
16197208
SM
123312020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12332
12333 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12334 warning messages.
12335
00ac85d3
SM
123362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12337
12338 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12339 import table is not at beginning of .idata section.
12340
381ce63f
PA
123412020-04-16 Pedro Alves <palves@redhat.com>
12342
12343 * inferior.c (delete_inferior): Use delete operator directly
12344 instead of delete_program_space.
12345 * progspace.c (add_program_space): New, factored out from
12346 program_space::program_space.
12347 (remove_program_space): New, factored out from
12348 delete_program_space.
12349 (program_space::program_space): Remove intro comment. Rewrite.
12350 (program_space::~program_space): Remove intro comment. Call
12351 remove_program_space.
12352 (delete_program_space): Delete.
12353 * progspace.h (program_space::program_space): Make explicit. Move
12354 intro comment here, adjusted.
12355 (program_space::~program_space): Move intro comment here,
12356 adjusted.
12357 (delete_program_space): Remove.
12358
a010605f
TT
123592020-04-16 Tom Tromey <tromey@adacore.com>
12360
12361 * windows-nat.c (windows_nat::handle_access_violation): New
12362 function.
12363 * nat/windows-nat.h (handle_access_violation): Declare.
12364 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12365 windows-nat.c. Call handle_access_violation.
12366
efba5c23
TV
123672020-04-16 Tom de Vries <tdevries@suse.de>
12368
12369 PR symtab/25791
12370 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12371 CUs without psymtab.
12372
97ed802d
KB
123732020-04-16 Kevin Buettner <kevinb@redhat.com>
12374
12375 * python/python.c (do_start_initialization): Don't call
12376 PyEval_InitThreads for Python 3.9 and beyond.
12377
c7d64809
KR
123782020-04-15 Kamil Rytarowski <n54@gmx.com>
12379
12380 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12381 thread functions.
12382 (obsd_nat_target::wait): Likewise.
12383
ce127a96
TT
123842020-04-15 Tom Tromey <tromey@adacore.com>
12385
12386 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12387 (DEBUG_EXCEPT): Use debug_printf.
12388
99f1bc6a
AB
123892020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12390
12391 * completer.c (class completion_tracker::completion_hash_entry)
12392 <hash_name>: New member function.
12393 (completion_tracker::discard_completions): New callback to hash a
12394 completion_hash_entry, pass this to htab_create_alloc.
12395
a0e9b532
JT
123962016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12397
12398 * windows-nat.c (windows_make_so): Warn rather than stopping with
12399 an error if realpath() fails.
12400
06ca5dd4
KR
124012020-04-14 Kamil Rytarowski <n54@gmx.com>
12402
12403 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12404 (nbsd_nat_target::info_proc): Add do_status.
12405
194d088f
TV
124062020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12407 Tom de Vries <tdevries@suse.de>
12408
12409 PR symtab/25718
12410 * psympriv.h (struct partial_symtab::read_symtab)
12411 (struct partial_symtab::expand_psymtab)
12412 (struct partial_symtab::read_dependencies): Update comments.
12413 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12414 read_symtab for includer.
12415 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12416 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12417 (struct dwarf2_include_psymtab::m_readin): Remove.
12418 (struct dwarf2_include_psymtab::includer): New member function.
12419 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12420
c1a66c06
TV
124212020-04-14 Tom de Vries <tdevries@suse.de>
12422
12423 PR symtab/25720
12424 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12425 with NULL symbol_matcher and lookup_name.
12426 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12427 and lookup_name.
12428 * dwarf2/read.c (dw2_expand_symtabs_matching)
12429 (dw2_debug_names_expand_symtabs_matching): Same.
12430 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12431 Make lookup_name a pointer. Update comment.
12432 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12433 lookup_name being a pointer.
12434 * symfile.c (expand_symtabs_matching): Same.
12435 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12436 * linespec.c (iterate_over_all_matching_symtabs): Same.
12437
400b5eca
TT
124382020-04-13 Tom Tromey <tom@tromey.com>
12439
12440 * run-on-main-thread.c: Update include.
12441 * unittests/main-thread-selftests.c: Update include.
12442 * tui/tui-win.c: Update include.
12443 * tui/tui-io.c: Update include.
12444 * tui/tui-interp.c: Update include.
12445 * tui/tui-hooks.c: Update include.
12446 * top.h: Update include.
12447 * top.c: Update include.
12448 * ser-base.c: Update include.
12449 * remote.c: Update include.
12450 * remote-notif.c: Update include.
12451 * remote-fileio.c: Update include.
12452 * record-full.c: Update include.
12453 * record-btrace.c: Update include.
12454 * python/python.c: Update include.
12455 * posix-hdep.c: Update include.
12456 * mingw-hdep.c: Update include.
12457 * mi/mi-main.c: Update include.
12458 * mi/mi-interp.c: Update include.
12459 * main.c: Update include.
12460 * linux-nat.c: Update include.
12461 * interps.c: Update include.
12462 * infrun.c: Update include.
12463 * inf-loop.c: Update include.
12464 * event-top.c: Update include.
12465 * event-loop.c: Move to ../gdbsupport/.
12466 * event-loop.h: Move to ../gdbsupport/.
12467 * async-event.h: Update include.
12468 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12469
93b54c8e
TT
124702020-04-13 Tom Tromey <tom@tromey.com>
12471
12472 * tui/tui-win.c: Include async-event.h.
12473 * remote.c: Include async-event.h.
12474 * remote-notif.c: Include async-event.h.
12475 * record-full.c: Include async-event.h.
12476 * record-btrace.c: Include async-event.h.
12477 * infrun.c: Include async-event.h.
12478 * event-top.c: Include async-event.h.
12479 * event-loop.h: Move some declarations to async-event.h.
12480 * event-loop.c: Don't include ser-event.h or top.h. Move some
12481 code to async-event.c.
12482 * async-event.h: New file.
12483 * async-event.c: New file.
12484 * Makefile.in (COMMON_SFILES): Add async-event.c.
12485 (HFILES_NO_SRCDIR): Add async-event.h.
12486
c1cd3163
TT
124872020-04-13 Tom Tromey <tom@tromey.com>
12488
12489 * utils.c (flush_streams): New function.
12490 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12491
29f2bf4f
TT
124922020-04-13 Tom Tromey <tom@tromey.com>
12493
12494 * event-loop.c (handle_file_event): Use warning, not
12495 printf_unfiltered.
12496
98029d02
TT
124972020-04-13 Tom Tromey <tom@tromey.com>
12498
12499 * event-loop.c: Include <chrono>.
12500
06cc9596
TT
125012020-04-13 Tom Tromey <tom@tromey.com>
12502
12503 * gdb_select.h: Move to ../gdbsupport/.
12504 * event-loop.c: Update include path.
12505 * top.c: Update include path.
12506 * ser-base.c: Update include path.
12507 * ui-file.c: Update include path.
12508 * ser-tcp.c: Update include path.
12509 * guile/scm-ports.c: Update include path.
12510 * posix-hdep.c: Update include path.
12511 * ser-unix.c: Update include path.
12512 * gdb_usleep.c: Update include path.
12513 * mingw-hdep.c: Update include path.
12514 * inflow.c: Update include path.
12515 * infrun.c: Update include path.
12516 * event-top.c: Update include path.
12517
8ae8e197
TT
125182020-04-13 Tom Tromey <tom@tromey.com>
12519
12520 * configure: Rebuild.
12521 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12522
58cf28e8
TT
125232020-04-13 Tom Tromey <tom@tromey.com>
12524
12525 * event-loop.h (start_event_loop): Don't declare.
12526 * event-loop.c (start_event_loop): Move...
12527 * main.c (start_event_loop): ...here. Now static.
12528
b7f999ae
SDJ
125292020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12530
12531 * MAINTAINERS: Update my email address.
12532
1085dfd4
KR
125332020-04-12 Kamil Rytarowski <n54@gmx.com>
12534
12535 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12536 IP_ALL.
12537
49d1d1f5
KR
125382020-04-12 Kamil Rytarowski <n54@gmx.com>
12539
12540 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12541 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12542
b4848d2a
KR
125432020-04-12 Kamil Rytarowski <n54@gmx.com>
12544
12545 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12546 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12547
51c133d5
KR
125482020-04-12 Kamil Rytarowski <n54@gmx.com>
12549
12550 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12551
54b8cbd0
KR
125522020-04-11 Kamil Rytarowski <n54@gmx.com>
12553
12554 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12555 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12556 (nbsd_nat_target::info_proc): New functions.
12557 * nbsd-nat.c (kinfo_get_vmmap): New function.
12558 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12559 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12560 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12561 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12562 functions.
12563 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12564 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12565 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12566 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12567 (KINFO_VME_FLAG_GROWS_DOWN): New.
12568
cf83625d
AS
125692020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12570
12571 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12572 bit shift.
12573
0c4311ab
TT
125742020-04-10 Tom Tromey <tromey@adacore.com>
12575
12576 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12577
3e65b3e9
TT
125782020-04-10 Tom Tromey <tromey@adacore.com>
12579
12580 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12581 separate debug files.
12582
13302e95
HD
125832020-04-10 Hannes Domani <ssbssa@yahoo.de>
12584
12585 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12586 Move to...
12587 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12588 ... here.
12589 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12590 Check for STATUS_WX86_BREAKPOINT.
12591 (windows_nat_target::wait): Same.
12592
bdfc1e8a
TV
125932020-04-10 Tom de Vries <tdevries@suse.de>
12594
12595 PR cli/25808
12596 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12597
f4460aec
SM
125982020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12599
12600 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12601 (Write After Approval): Remove Tom de Vries.
12602
a25198bb
BE
126032020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12604
12605 revert partially:
12606 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12607
aac66a4c
SM
12608 * buildsym.c (record_line): Fix undefined behavior and preserve
12609 lines at eof.
a25198bb 12610
206c98a6
KR
126112020-04-09 Kamil Rytarowski <n54@gmx.com>
12612
12613 * auxv.h (svr4_auxv_parse): New.
12614 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12615 and generic_auxv_parse.
12616 (svr4_auxv_parse): Add.
12617 * obsd-tdep.c: Include "auxv.h".
12618 (obsd_auxv_parse): Remove.
12619 (obsd_init_abi): Remove comment.
12620 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12621 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12622 * nbsd-tdep.c: Include "auxv.h".
12623 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12624
71fbdbaf
TT
126252020-04-08 Tom Tromey <tromey@adacore.com>
12626
12627 * nat/windows-nat.h (last_wait_event): Don't declare.
12628 (wait_for_debug_event): Update comment.
12629 * nat/windows-nat.c (last_wait_event): Now static.
12630
2c1d95e8
TT
126312020-04-08 Tom Tromey <tromey@adacore.com>
12632
12633 * windows-nat.c (wait_for_debug_event): Move to
12634 nat/windows-nat.c.
12635 * nat/windows-nat.h (wait_for_debug_event): Declare.
12636 * nat/windows-nat.c (wait_for_debug_event): Move from
12637 windows-nat.c. No longer static.
12638
d2977bc4
TT
126392020-04-08 Tom Tromey <tromey@adacore.com>
12640
12641 * windows-nat.c (get_windows_debug_event): Use
12642 fetch_pending_stop.
12643 * nat/windows-nat.h (fetch_pending_stop): Declare.
12644 * nat/windows-nat.c (fetch_pending_stop): New function.
12645
e758e19c
TT
126462020-04-08 Tom Tromey <tromey@adacore.com>
12647
12648 * windows-nat.c (windows_continue): Use matching_pending_stop and
12649 continue_last_debug_event.
12650 * nat/windows-nat.h (matching_pending_stop)
12651 (continue_last_debug_event): Declare.
12652 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12653 (matching_pending_stop, continue_last_debug_event): New
12654 functions.
12655
8d30e395
TT
126562020-04-08 Tom Tromey <tromey@adacore.com>
12657
12658 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12659 (handle_exception_result): Move to nat/windows-nat.h.
12660 (DEBUG_EXCEPTION_SIMPLE): Remove.
12661 (windows_nat::handle_ms_vc_exception): New function.
12662 (handle_exception): Move to nat/windows-nat.c.
12663 (get_windows_debug_event): Update.
12664 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12665 nat/windows-nat.c.
12666 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12667 (handle_exception_result): Move from windows-nat.c.
12668 (handle_exception): Declare.
12669 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12670 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12671 windows-nat.c.
12672
29de418d
TT
126732020-04-08 Tom Tromey <tromey@adacore.com>
12674
12675 * windows-nat.c (exception_count, event_count): Remove.
12676 (handle_exception, get_windows_debug_event)
12677 (do_initial_windows_stuff): Update.
12678
a816ba18
TT
126792020-04-08 Tom Tromey <tromey@adacore.com>
12680
12681 * windows-nat.c (windows_nat::handle_load_dll)
12682 (windows_nat::handle_unload_dll): Rename. No longer static.
12683 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12684 Declare.
12685
a00caa12
TT
126862020-04-08 Tom Tromey <tromey@adacore.com>
12687
12688 * complaints.h (stop_whining): Declare at top-level.
12689 (complaint): Don't declare stop_whining.
12690
d41b524f
TT
126912020-04-08 Tom Tromey <tromey@adacore.com>
12692
12693 * windows-nat.c (windows_nat::handle_output_debug_string):
12694 Rename. No longer static.
12695 * nat/windows-nat.h (handle_output_debug_string): Declare.
12696
3c76026d
TT
126972020-04-08 Tom Tromey <tromey@adacore.com>
12698
12699 * windows-nat.c (current_process_handle, current_process_id)
12700 (main_thread_id, last_sig, current_event, last_wait_event)
12701 (current_windows_thread, desired_stop_thread_id, pending_stops)
12702 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12703 (display_selectors, fake_create_process)
12704 (get_windows_debug_event): Update.
12705 * nat/windows-nat.h (current_process_handle, current_process_id)
12706 (main_thread_id, last_sig, current_event, last_wait_event)
12707 (current_windows_thread, desired_stop_thread_id, pending_stops)
12708 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12709 * nat/windows-nat.c (current_process_handle, current_process_id)
12710 (main_thread_id, last_sig, current_event, last_wait_event)
12711 (current_windows_thread, desired_stop_thread_id, pending_stops)
12712 (siginfo_er): New globals. Move from windows-nat.c.
12713
9d8679cc
TT
127142020-04-08 Tom Tromey <tromey@adacore.com>
12715
12716 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12717 (handle_load_dll): Update.
12718 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12719
28688adf
TT
127202020-04-08 Tom Tromey <tromey@adacore.com>
12721
12722 * windows-nat.c (enum thread_disposition_type): Move to
12723 nat/windows-nat.h.
12724 (windows_nat::thread_rec): Rename from thread_rec. No longer
12725 static.
12726 (windows_add_thread, windows_nat_target::fetch_registers)
12727 (windows_nat_target::store_registers, handle_exception)
12728 (windows_nat_target::resume, get_windows_debug_event)
12729 (windows_nat_target::get_tib_address)
12730 (windows_nat_target::thread_name)
12731 (windows_nat_target::thread_alive): Update.
12732 * nat/windows-nat.h (enum thread_disposition_type): Move from
12733 windows-nat.c.
12734 (thread_rec): Declare.
12735
4834dad0
TT
127362020-04-08 Tom Tromey <tromey@adacore.com>
12737
12738 * windows-nat.c: Add "using namespace".
12739 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12740 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12741
65bafd5b
TT
127422020-04-08 Tom Tromey <tromey@adacore.com>
12743
12744 * nat/windows-nat.h (struct windows_thread_info): Declare
12745 destructor.
12746 * nat/windows-nat.c (~windows_thread_info): New.
12747
0a4afda3
TT
127482020-04-08 Tom Tromey <tromey@adacore.com>
12749
12750 PR gdb/22992
12751 * windows-nat.c (current_event): Update comment.
12752 (last_wait_event, desired_stop_thread_id): New globals.
12753 (struct pending_stop): New.
12754 (pending_stops): New global.
12755 (windows_nat_target) <stopped_by_sw_breakpoint>
12756 <supports_stopped_by_sw_breakpoint>: New methods.
12757 (windows_fetch_one_register): Add assertions. Adjust PC.
12758 (windows_continue): Handle pending stops. Suspend other threads
12759 when stepping. Use last_wait_event
12760 (wait_for_debug_event): New function.
12761 (get_windows_debug_event): Use wait_for_debug_event. Handle
12762 pending stops. Queue spurious stops.
12763 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12764 (windows_nat_target::kill): Use wait_for_debug_event.
12765 * nat/windows-nat.h (struct windows_thread_info)
12766 <stopped_at_software_breakpoint>: New field.
12767 * nat/windows-nat.c (windows_thread_info::resume): Clear
12768 stopped_at_software_breakpoint.
12769
8e61ebec
TT
127702020-04-08 Tom Tromey <tromey@adacore.com>
12771
12772 * windows-nat.c (enum thread_disposition_type): New.
12773 (thread_rec): Replace "get_context" parameter with "disposition";
12774 change type.
12775 (windows_add_thread, windows_nat_target::fetch_registers)
12776 (windows_nat_target::store_registers, handle_exception)
12777 (windows_nat_target::resume, get_windows_debug_event)
12778 (windows_nat_target::get_tib_address)
12779 (windows_nat_target::thread_name)
12780 (windows_nat_target::thread_alive): Update.
12781
98a03287
TT
127822020-04-08 Tom Tromey <tromey@adacore.com>
12783
12784 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12785 (windows_continue): Use windows_continue::resume.
12786 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12787 resume>: Declare new methods.
12788 * nat/windows-nat.c: New file.
12789 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12790
7c7411bc
TT
127912020-04-08 Tom Tromey <tromey@adacore.com>
12792
12793 * windows-nat.c (windows_add_thread, windows_delete_thread)
12794 (windows_nat_target::fetch_registers)
12795 (windows_nat_target::store_registers, fake_create_process)
12796 (windows_nat_target::resume, windows_nat_target::resume)
12797 (get_windows_debug_event, windows_nat_target::wait)
12798 (windows_nat_target::pid_to_str)
12799 (windows_nat_target::get_tib_address)
12800 (windows_nat_target::get_ada_task_ptid)
12801 (windows_nat_target::thread_name)
12802 (windows_nat_target::thread_alive): Use lwp, not tid.
12803
2950fdf7
TT
128042020-04-08 Tom Tromey <tromey@adacore.com>
12805
12806 * windows-nat.c (handle_exception)
12807 (windows_nat_target::thread_name): Update.
12808 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12809 <name>: Now unique_xmalloc_ptr.
12810
62fe396b
TT
128112020-04-08 Tom Tromey <tromey@adacore.com>
12812
12813 * windows-nat.c (thread_rec)
12814 (windows_nat_target::fetch_registers): Update.
12815 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12816 Update comment.
12817 <debug_registers_changed, reload_context>: Now bool.
12818
e9534bd2
TT
128192020-04-08 Tom Tromey <tromey@adacore.com>
12820
12821 * windows-nat.c (windows_add_thread): Use new.
12822 (windows_init_thread_list, windows_delete_thread): Use delete.
12823 (get_windows_debug_event): Update.
12824 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12825 destructor, and initializers.
12826
ae1f8880
TT
128272020-04-08 Tom Tromey <tromey@adacore.com>
12828
12829 * windows-nat.c (struct windows_thread_info): Remove.
12830 * nat/windows-nat.h: New file.
12831
55a1e039
TT
128322020-04-08 Tom Tromey <tromey@adacore.com>
12833
12834 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12835 (thread_rec, windows_add_thread, windows_delete_thread)
12836 (windows_continue): Update.
12837
93366324
TT
128382020-04-08 Tom Tromey <tromey@adacore.com>
12839
12840 * windows-nat.c (struct windows_thread_info): Remove typedef.
12841 (thread_head): Remove.
12842 (thread_list): New global.
12843 (thread_rec, windows_add_thread, windows_init_thread_list)
12844 (windows_delete_thread, windows_continue): Update.
12845
0f2265e2
SM
128462020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12847
12848 * windows-tdep.h (windows_init_abi): Add comment.
12849 (cygwin_init_abi): New declaration.
12850 * windows-tdep.c: Split signal enumeration in two, one for
12851 Windows and one for Cygwin.
12852 (windows_gdb_signal_to_target): Only deal with signal of the
12853 Windows OS ABI.
12854 (cygwin_gdb_signal_to_target): New function.
12855 (windows_init_abi): Rename to windows_init_abi_common, don't set
12856 gdb_signal_to_target gdbarch method. Add new new function with
12857 this name.
12858 (cygwin_init_abi): New function.
12859 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12860 comment. Don't call windows_init_abi.
12861 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12862 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12863 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12864 i386_windows_init_abi_common, don't call windows_init_abi. Add
12865 a new function of this name.
12866 (i386_cygwin_init_abi): New function.
12867 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12868 OS ABI Cygwin.
12869
3810f182
SM
128702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12871
12872 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12873 parameter.c.
12874 (dwarf2_read_gdb_index): Update.
12875
063f8e80
KR
128762020-04-07 Kamil Rytarowski <n54@gmx.com>
12877
12878 * nbsd-tdep.c: Include "objfiles.h".
12879 (nbsd_skip_solib_resolver): New.
12880 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12881
85a9510c 128822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12883
12884 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12885 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12886 with DW_LLE_base_addressx are being emitted in DWARFv5.
12887 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12888 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12889 unsigned integer.
12890
9fc3eaae 128912020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12892
12893 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12894 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12895 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12896 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12897 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12898 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12899 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12900
12901
41144253 129022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12903
12904 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12905 (read_loclist_index): New function definition.
12906 (lookup_loclist_base): New function definition.
12907 (read_loclist_header): New function definition.
12908 (dwarf2_cu): Add loclist_base and loclist_header field.
12909 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12910 (read_full_die_1): Read the value of DW_AT_loclists_base.
12911 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12912 (read_attribute_value): Handle DW_FORM_loclistx.
12913 (skip_one_die): Handle DW_FORM_loclistx.
12914 (loclist_header): New structure declaration.
12915 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12916
9f4e76a4
SM
129172020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12918
12919 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12920 constructor. Remove `addr` parameter from other constructor and
12921 add `per_cu` parameter.
12922 * dwarf2/read.c (create_partial_symtab): Update.
12923
25c11aca
TV
129242020-04-07 Tom de Vries <tdevries@suse.de>
12925
12926 PR symtab/25796
12927 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12928 (partial_die_info::fixup): Inherit has_const_value.
12929
5707e24b
TV
129302020-04-07 Tom de Vries <tdevries@suse.de>
12931
12932 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12933 symbols without address.
12934
05f00e22
KR
129352020-04-06 Kamil Rytarowski <n54@gmx.com>
12936
12937 * nbsd-nat.h (struct thread_info): Add forward declaration.
12938 (nbsd_nat_target::thread_alive): Add.
12939 (nbsd_nat_target::thread_name): Likewise.
12940 (nbsd_nat_target::update_thread_list): Likewise.
12941 (update_thread_list::post_attach): Likewise.
12942 (post_attach::pid_to_str): Likewise.
12943 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12944 (nbsd_thread_lister): Add.
12945 (nbsd_nat_target::thread_alive): Likewise.
12946 (nbsd_nat_target::thread_name): Likewise.
12947 (nbsd_add_threads): Likewise.
12948 (update_thread_list::post_attach): Likewise.
12949 (nbsd_nat_target::update_thread_list): Likewise.
12950 (post_attach::pid_to_str): Likewise.
12951
6ee448cc
TT
129522020-04-06 Tom Tromey <tromey@adacore.com>
12953
12954 * ada-valprint.c (print_variant_part): Extract the variant field.
12955 (print_field_values): Use the field as the outer value when
12956 recursing.
12957
dea34e8c
TT
129582020-04-06 Tom Tromey <tromey@adacore.com>
12959
12960 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12961 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12962 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12963 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12964 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12965
93689ce9
TT
129662020-04-06 Tom Tromey <tromey@adacore.com>
12967
12968 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12969 TYPE_CODE_ERROR.
12970
79743962
KR
129712020-04-06 Kamil Rytarowski <n54@gmx.com>
12972
12973 * nbsd-tdep.c: Include "gdbarch.h".
12974 Define enum with NetBSD signal numbers.
12975 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12976 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12977 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12978 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12979 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12980 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12981 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12982 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12983 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12984 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12985 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12986 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12987
9e7c9a03
HD
129882020-04-03 Hannes Domani <ssbssa@yahoo.de>
12989
12990 PR gdb/25325
12991 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12992
d9e49b61
TT
129932020-04-03 Tom Tromey <tromey@adacore.com>
12994
12995 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12996 Read constant block.
12997
e0fc5c3f
SM
129982020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12999
13000 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13001 (gdb_bfd_get_full_section_contents): New declaration.
13002 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13003 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13004 gdb_bfd_get_full_section_contents.
13005
e2ff18a0
SM
130062020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13007
13008 * exec.c (build_section_table): Replace internal_error with
13009 gdb_assert.
13010 (section_table_xfer_memory_partial): Likewise.
13011 * mdebugread.c (parse_partial_symbols): Likewise.
13012 * psymtab.c (lookup_partial_symbol): Likewise.
13013 * utils.c (wrap_here): Likewise.
13014
0830d301
TT
130152020-04-02 Tom Tromey <tromey@adacore.com>
13016
13017 * f-lang.c (build_fortran_types): Use arch_type to initialize
13018 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13019
e7da7f8f
TT
130202020-04-02 Tom Tromey <tromey@adacore.com>
13021
13022 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13023 of attributes.
13024
c90d28ac
AB
130252020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13026 Bernd Edlinger <bernd.edlinger@hotmail.de>
13027 Tom Tromey <tromey@adacore.com>
13028
13029 * buildsym.c (buildsym_compunit::record_line): Remove
13030 deduplication code.
13031
1aa98955
TV
130322020-04-02 Tom de Vries <tdevries@suse.de>
13033
13034 PR ada/24671
13035 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13036
d3214198
TV
130372020-04-02 Tom de Vries <tdevries@suse.de>
13038
13039 * dwarf2/read.c (dwarf2_gdb_index_functions,
13040 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13041 NULL.
13042 * psymtab.c (psym_lookup_global_symbol_language): New function.
13043 (psym_functions): Init psym_lookup_global_symbol_language with
13044 psym_lookup_global_symbol_language.
13045 * symfile-debug.c (debug_sym_quick_functions): Init
13046 lookup_global_symbol_language with NULL.
13047 * symfile.c (set_initial_language): Remove fixme comment.
13048 * symfile.h (struct quick_symbol_functions): Add
13049 lookup_global_symbol_language.
13050 * symtab.c (find_quick_global_symbol_language): New function.
13051 (find_main_name): Use find_quick_global_symbol_language.
13052
2836752f
SM
130532020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13054
13055 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13056
64dc2d4b
BE
130572020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13058
13059 * buildsym.c (record_line): Fix undefined behavior and preserve
13060 lines at eof.
13061
bbe3dc41
BE
130622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13063
13064 * buildsym.c (record_line): Fix the resizing condition.
13065
6b4a335b
TT
130662020-04-01 Tom Tromey <tom@tromey.com>
13067
13068 * value.h (value_literal_complex): Add comment.
13069 * valops.c (value_literal_complex): Refer to value.h.
13070
3638a098
TT
130712020-04-01 Tom Tromey <tom@tromey.com>
13072
13073 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13074 (scalar_type): New rule, from typebase.
13075 (typebase): Use scalar_type. Recognize complex types.
13076 (field_name): Handle FLOAT_KEYWORD.
13077 (ident_tokens): Add _Complex and __complex__.
13078
c34e8714
TT
130792020-04-01 Tom Tromey <tom@tromey.com>
13080
13081 PR exp/25299:
13082 * valarith.c (promotion_type, complex_binop): New functions.
13083 (scalar_binop): Handle complex numbers. Use promotion_type.
13084 (value_pos, value_neg, value_complement): Handle complex numbers.
13085
fa649bb7
TT
130862020-04-01 Tom Tromey <tom@tromey.com>
13087
13088 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13089 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13090 (parse_number): Handle complex numbers.
13091
981c08ce
TT
130922020-04-01 Tom Tromey <tom@tromey.com>
13093
13094 * c-valprint.c (c_decorations): Change complex suffix to "i".
13095
4c99290d
TT
130962020-04-01 Tom Tromey <tom@tromey.com>
13097
13098 * valprint.c (generic_value_print_complex): Use accessors.
13099 * value.h (value_real_part, value_imaginary_part): Declare.
13100 * valops.c (value_real_part, value_imaginary_part): New
13101 functions.
13102 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13103
5b930b45
TT
131042020-04-01 Tom Tromey <tom@tromey.com>
13105
13106 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13107 (read_range_type): Update.
13108 * mdebugread.c (basic_type): Update.
13109 * go-lang.c (build_go_types): Use init_complex_type.
13110 * gdbtypes.h (struct main_type) <complex_type>: New member.
13111 (init_complex_type): Update.
13112 (arch_complex_type): Don't declare.
13113 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13114 Make name if none given. Use alloc_type_copy. Look for cached
13115 complex type.
13116 (arch_complex_type): Remove.
13117 (gdbtypes_post_init): Use init_complex_type.
13118 * f-lang.c (build_fortran_types): Use init_complex_type.
13119 * dwarf2/read.c (read_base_type): Update.
13120 * d-lang.c (build_d_types): Use init_complex_type.
13121 * ctfread.c (read_base_type): Update.
13122
53cccef1
TBA
131232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13124
13125 * infrun.c (stop_all_threads): Update assertion, plus when
13126 stopping threads, take into account that we might be trying
13127 to stop an all-stop target.
13128 (stop_waiting): Call 'stop_all_threads' if there exists a
13129 non-stop target.
13130
a0714d30
TBA
131312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13132
13133 * target.h (exists_non_stop_target): New function declaration.
13134 * target.c (exists_non_stop_target): New function.
13135
60e22c1e
HD
131362020-04-01 Hannes Domani <ssbssa@yahoo.de>
13137
13138 PR gdb/24789
13139 * eval.c (is_integral_or_integral_reference): New function.
13140 (evaluate_subexp_standard): Allow integer references in
13141 pointer arithmetic.
13142
e139a727
TBA
131432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13144
13145 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13146 check for no ptid in the stop reply when the target is non-stop.
13147
e0802d59
TT
131482020-04-01 Tom Tromey <tromey@adacore.com>
13149
13150 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13151 "name" parameter to rvalue reference. Initialize m_name_holder.
13152 <lookup_name_info>: New overloads.
13153 <name>: Return gdb::string_view.
13154 <c_str>: New method.
13155 <make_ignore_params>: Update.
13156 <search_name_hash>: Update.
13157 <language_lookup_name>: Return const char *.
13158 <m_name>: Change type.
13159 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13160 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13161 (lookup_name_info::match_any): Update.
13162 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13163 Update.
13164 * minsyms.c (linkage_name_str): Update.
13165 * language.c (default_symbol_name_matcher): Update.
13166 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13167 Update.
13168 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13169 (ada_lookup_name_info::ada_lookup_name_info): Update.
13170 (literal_symbol_name_matcher): Update.
13171
8c072cb6
TT
131722020-04-01 Tom Tromey <tromey@adacore.com>
13173
13174 * psymtab.c (psymtab_search_name): Remove function.
13175 (psym_lookup_symbol): Create search name and lookup name here.
13176 (lookup_partial_symbol): Remove "name" parameter; add
13177 lookup_name.
13178 (psym_expand_symtabs_for_function): Update.
13179
6f29a534
TT
131802020-03-31 Joel Jones <joelkevinjones@gmail.com>
13181
13182 PR tui/25597:
13183 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13184
af62665e
TT
131852020-03-31 Tom Tromey <tromey@adacore.com>
13186
13187 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13188 memcpy.
13189
d1a89da5
NC
131902020-03-30 Nelson Chu <nelson.chu@sifive.com>
13191
13192 * features/riscv/32bit-csr.xml: Regenerated.
13193 * features/riscv/64bit-csr.xml: Regenerated.
13194
d8af9068
TT
131952020-03-30 Tom Tromey <tromey@adacore.com>
13196
13197 * ada-valprint.c (print_variant_part): Update.
13198 * ada-lang.h (ada_which_variant_applies): Update.
13199 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13200 outer_valaddr parameters; replace with "outer" value parameter.
13201 (to_fixed_variant_branch_type): Update.
13202
227c0bf4
PFC
132032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13204
13205 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13206 <list>. Remove inclusion of observable.h.
13207 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13208 (struct arch_lwp_info): New struct.
13209 (class ppc_linux_dreg_interface): New class.
13210 (struct ppc_linux_process_info): New struct.
13211 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13212 <low_new_clone, low_forget_process, low_prepare_to_resume>
13213 <copy_thread_dreg_state, mark_thread_stale>
13214 <mark_debug_registers_changed, register_hw_breakpoint>
13215 <clear_hw_breakpoint, register_wp, clear_wp>
13216 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13217 <num_memory_accesses, get_trigger_type>
13218 <create_watchpoint_request, hwdebug_point_cmp>
13219 <init_arch_lwp_info, get_arch_lwp_info>
13220 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13221 methods.
13222 <struct ptid_hash>: New inner struct.
13223 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13224 members.
13225 (saved_dabr_value, hwdebug_info, max_slots_number)
13226 (struct hw_break_tuple, struct thread_points, ppc_threads)
13227 (have_ptrace_hwdebug_interface)
13228 (hwdebug_find_thread_points_by_tid)
13229 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13230 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13231 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13232 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13233 use m_dreg_interface.
13234 (hwdebug_point_cmp): Change to...
13235 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13236 reference arguments instead of pointers.
13237 (ppc_linux_nat_target::ranged_break_num_registers): Use
13238 m_dreg_interface.
13239 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13240 m_dreg_interface. Call register_hw_breakpoint.
13241 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13242 m_dreg_interface. Call clear_hw_breakpoint.
13243 (get_trigger_type): Change to...
13244 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13245 comment.
13246 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13247 use m_dreg_interface. Call register_hw_breakpoint.
13248 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13249 use m_dreg_interface. Call clear_hw_breakpoint.
13250 (can_use_watchpoint_cond_accel): Change to...
13251 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13252 method. Update comment, use m_dreg_interface and
13253 m_process_info.
13254 (calculate_dvc): Change to...
13255 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13256 m_dreg_interface.
13257 (num_memory_accesses): Change to...
13258 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13259 (check_condition): Change to...
13260 (ppc_linux_nat_target::check_condition): ...this method.
13261 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13262 comment, use m_dreg_interface.
13263 (create_watchpoint_request): Change to...
13264 (ppc_linux_nat_target::create_watchpoint_request): ...this
13265 method. Use m_dreg_interface.
13266 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13267 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13268 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13269 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13270 (ppc_linux_nat_target::low_forget_process)
13271 (ppc_linux_nat_target::low_new_fork)
13272 (ppc_linux_nat_target::low_new_clone)
13273 (ppc_linux_nat_target::low_delete_thread)
13274 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13275 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13276 only call mark_thread_stale.
13277 (ppc_linux_thread_exit): Remove.
13278 (ppc_linux_nat_target::stopped_data_address): Change to...
13279 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13280 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13281 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13282 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13283 comment. Call low_stopped_data_address.
13284 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13285 m_dreg_interface.
13286 (ppc_linux_nat_target::masked_watch_num_registers): Use
13287 m_dreg_interface.
13288 (ppc_linux_nat_target::copy_thread_dreg_state)
13289 (ppc_linux_nat_target::mark_thread_stale)
13290 (ppc_linux_nat_target::mark_debug_registers_changed)
13291 (ppc_linux_nat_target::register_hw_breakpoint)
13292 (ppc_linux_nat_target::clear_hw_breakpoint)
13293 (ppc_linux_nat_target::register_wp)
13294 (ppc_linux_nat_target::clear_wp)
13295 (ppc_linux_nat_target::init_arch_lwp_info)
13296 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13297 (_initialize_ppc_linux_nat): Remove observer callback.
13298
4db10d8f
PFC
132992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13300
13301 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13302 (ppc_linux_nat_target::auxv_parse)
13303 (ppc_linux_nat_target::read_description)
13304 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13305 Move up.
13306
1310c1b0
PFC
133072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13308
13309 * linux-nat.h (low_new_clone): New method.
13310 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13311
69b037c3
SM
133122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13313
13314 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13315 (dbx_expand_psymtab): ... this.
13316 (start_psymtab): Update.
13317 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13318 (mdebug_expand_psymtab): ... this.
13319 (parse_partial_symbols): Update.
13320 (new_psymtab): Update.
13321 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13322 (xcoff_expand_psymtab): ... this.
13323 (xcoff_start_psymtab): Update.
13324
48993951
SM
133252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13326
13327 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13328 <expand_dependencies>: ... this.
13329 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13330 (partial_symtab::expand_dependencies): ... this.
13331 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13332 Update.
13333 (dwarf2_psymtab::expand_psymtab): Update.
13334 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13335 * mdebugread.c (psymtab_to_symtab_1): Update.
13336 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13337
3ad83046
SM
133382020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13339
13340 * psympriv.h (discard_psymtab): Remove.
13341 * dbxread.c (dbx_end_psymtab): Update.
13342 * xcoffread.c (xcoff_end_psymtab): Update.
13343
4d1b9ab6
TT
133442020-03-28 Tom Tromey <tom@tromey.com>
13345
13346 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13347 comment.
13348
f1749218
TT
133492020-03-28 Tom Tromey <tom@tromey.com>
13350
13351 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13352
ebea7626
HD
133532020-03-27 Hannes Domani <ssbssa@yahoo.de>
13354
13355 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13356
a879b4d5
JB
133572020-03-26 John Baldwin <jhb@FreeBSD.org>
13358
13359 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13360
0826b30a
TT
133612020-03-26 Tom Tromey <tom@tromey.com>
13362
13363 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13364 (mark_common_block_symbol_computed, read_tag_string_type)
13365 (attr_to_dynamic_prop, read_subrange_type): Update.
13366 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13367 to be methods on struct attribute.
13368 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13369 (read_call_site_scope, partial_die_info::read)
13370 (partial_die_info::read, lookup_die_type, follow_die_ref):
13371 Update.
13372 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13373 from dwarf2_get_ref_die_offset.
13374 (attribute::constant_value): New method, from
13375 dwarf2_get_attr_constant_value.
13376 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13377 Declare method.
13378 <constant_value>: New method.
13379
2b2558bf
TT
133802020-03-26 Tom Tromey <tom@tromey.com>
13381
13382 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13383 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13384 (dwarf_type_encoding_name): Move to stringify.c.
13385 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13386 * dwarf2/stringify.c: New file.
13387 * dwarf2/stringify.h: New file.
13388
eeb64781
TT
133892020-03-26 Tom Tromey <tom@tromey.com>
13390
13391 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13392 Rewrite.
13393
a39fdb41
TT
133942020-03-26 Tom Tromey <tom@tromey.com>
13395
13396 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13397 methods.
13398 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13399 (lookup_ranges_base): Likewise.
13400 (read_cutu_die_from_dwo, read_full_die_1): Update.
13401
436c571c
TT
134022020-03-26 Tom Tromey <tom@tromey.com>
13403
13404 * dwarf2/read.c (read_import_statement, read_file_scope)
13405 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13406 (read_lexical_block_scope, read_call_site_scope)
13407 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13408 (handle_struct_member_die, process_structure_scope)
13409 (update_enumeration_type_from_children)
13410 (process_enumeration_scope, read_array_type, read_common_block)
13411 (read_namespace, read_module, read_subroutine_type): Update.
13412 (sibling_die): Remove.
13413
052c8bb8
TT
134142020-03-26 Tom Tromey <tom@tromey.com>
13415
13416 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13417 (build_type_psymtabs_reader, read_structure_type)
13418 (read_enumeration_type, read_full_die_1): Update.
13419 (dwarf2_attr_no_follow): Move to die.h.
13420 * dwarf2/die.h (struct die_info) <attr>: New method.
13421
2b24b6e4
TT
134222020-03-26 Tom Tromey <tom@tromey.com>
13423
13424 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13425 <base_address>: Now an optional.
13426 (dwarf2_find_base_address, dwarf2_rnglists_process)
13427 (dwarf2_ranges_process, fill_in_loclist_baton)
13428 (dwarf2_symbol_mark_computed): Update.
13429
c2d50fd0
TT
134302020-03-26 Tom Tromey <tom@tromey.com>
13431
13432 * dwarf2/read.c (struct die_info): Move to die.h.
13433 * dwarf2/die.h: New file.
13434
0df7ad3a
TT
134352020-03-26 Tom Tromey <tom@tromey.com>
13436
13437 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13438 * dwarf2/read.c
13439 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13440 Move to line-header.c.
13441 (read_checked_initial_length_and_offset, read_formatted_entries):
13442 Likewise.
13443 (dwarf_decode_line_header): Split into two.
13444 * dwarf2/line-header.c
13445 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13446 Move from read.c.
13447 (read_checked_initial_length_and_offset, read_formatted_entries):
13448 Likewise.
13449 (dwarf_decode_line_header): New function, split from read.c.
13450
86c0bb4c
TT
134512020-03-26 Tom Tromey <tom@tromey.com>
13452
13453 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13454 Declare method.
13455 * dwarf2/read.c (read_attribute_value): Update.
13456 (dwarf2_per_objfile::read_line_string): Rename from
13457 read_indirect_line_string.
13458 (read_formatted_entries): Update.
13459
2ef46c2f
TT
134602020-03-26 Tom Tromey <tom@tromey.com>
13461
13462 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13463 variable.
13464
4f9c1eda
TT
134652020-03-26 Tom Tromey <tom@tromey.com>
13466
13467 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13468 const.
13469 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13470 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13471 parameter const.
13472
5a0e026f
TT
134732020-03-26 Tom Tromey <tom@tromey.com>
13474
13475 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13476 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13477 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13478 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13479
8844c11b
TT
134802020-03-26 Tom Tromey <tom@tromey.com>
13481
13482 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13483 file_names_size, file_full_name, file_file_name>: Use const.
13484 <file_name_at, file_names>: Add const overload.
13485 * dwarf2/line-header.c (line_header::file_file_name)
13486 (line_header::file_full_name): Update.
13487
c90ec28a
TT
134882020-03-26 Tom Tromey <tom@tromey.com>
13489
13490 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13491 (macro_start_file, consume_improper_spaces)
13492 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13493 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13494 (dwarf_decode_macros): Move to macro.c.
13495 * dwarf2/macro.c: New file.
13496 * dwarf2/macro.h: New file.
13497 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13498
4f44ae6c
TT
134992020-03-26 Tom Tromey <tom@tromey.com>
13500
13501 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13502 method.
13503 * dwarf2/section.c: New method. From
13504 read_indirect_string_at_offset_from.
13505 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13506 (read_indirect_string_at_offset_from): Move to section.c.
13507 (read_indirect_string_at_offset): Rewrite.
13508 (read_indirect_line_string_at_offset): Remove.
13509 (read_indirect_string, read_indirect_line_string)
13510 (dwarf_decode_macro_bytes): Update.
13511
a0194fa8
TT
135122020-03-26 Tom Tromey <tom@tromey.com>
13513
13514 * dwarf2/section.h (struct dwarf2_section_info)
13515 <overload_complaint>: Declare.
13516 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13517 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13518 Rename from dwarf2_section_buffer_overflow_complaint.
13519 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13520 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13521
3d27bbdb
TT
135222020-03-26 Tom Tromey <tom@tromey.com>
13523
13524 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13525 Declare.
13526 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13527 Move from read.c.
13528 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13529 to section.c.
13530
9eac9650
TT
135312020-03-26 Tom Tromey <tom@tromey.com>
13532
13533 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13534
bf80d710
TT
135352020-03-26 Tom Tromey <tom@tromey.com>
13536
13537 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13538 "builder".
13539 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13540 parameter.
13541 (dwarf_decode_macros): Update.
13542
0314b390
TT
135432020-03-26 Tom Tromey <tom@tromey.com>
13544
13545 * dwarf2/read.c (read_attribute_value): Update.
13546 (read_indirect_string_from_dwz): Move to dwz.c; change into
13547 method.
13548 (dwarf_decode_macro_bytes): Update.
13549 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13550 * dwarf2/dwz.c: New file.
13551 * Makefile.in (COMMON_SFILES): Add dwz.c.
13552
9fda78b6
TT
135532020-03-26 Tom Tromey <tom@tromey.com>
13554
13555 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13556 * dwarf2/read.c: Add include.
13557 * dwarf2/index-write.c: Add include.
13558 * dwarf2/index-cache.c: Add include.
13559 * dwarf2/dwz.h: New file.
13560
33aa3c10
TT
135612020-03-25 Tom Tromey <tom@tromey.com>
13562
13563 * compile/compile-object-load.c (get_out_value_type): Mention
13564 correct symbol name in error message.
13565
d503b685
HD
135662020-03-25 Hannes Domani <ssbssa@yahoo.de>
13567
13568 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13569
7b1eff95
TV
135702020-03-25 Tom de Vries <tdevries@suse.de>
13571
13572 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13573 * symmisc.c (dump_symtab_1): Print user and includes fields.
13574 (maintenance_info_symtabs): Same.
13575
dd895392
AB
135762020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13577
13578 PR gdb/25534
13579 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13580 (riscv_regcache_cooked_write): New function.
13581 (riscv_push_dummy_call): Use new function.
13582 (riscv_return_value): Likewise.
13583
5ab2fbf1
SM
135842020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13585
13586 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13587 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13588 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13589 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13590 * infrun.c (follow_fork): Likewise.
13591 (follow_fork_inferior): Likewise.
13592 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13593 * linux-nat.h (class linux_nat_target): Likewise.
13594 * remote.c (class remote_target) <follow_fork>: Likewise.
13595 (remote_target::follow_fork): Likewise.
13596 * target-delegates.c: Re-generate.
13597 * target.c (default_follow_fork): Likewise.
13598 (target_follow_fork): Likewise.
13599 * target.h (struct target_ops) <follow_fork>: Likewise.
13600 (target_follow_fork): Likewise.
13601
a64fafb5
TV
136022020-03-24 Tom de Vries <tdevries@suse.de>
13603
13604 * psymtab.c (maintenance_info_psymtabs): Print user field.
13605
fe26d3a3
TT
136062020-03-20 Tom Tromey <tromey@adacore.com>
13607
13608 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13609 const.
13610 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13611 const.
13612
c884cc46
SM
136132020-03-20 Simon Marchi <simon.marchi@efficios.com>
13614
13615 * ptrace.m4: Don't check for ptrace declaration.
13616 * config.in: Re-generate.
13617 * configure: Re-generate.
13618 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13619 not defined.
13620
1ff700c2
KR
136212020-03-20 Kamil Rytarowski <n54@gmx.com>
13622
13623 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13624 `PTRACE_TYPE_RET'.
13625 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13626 * sparc-nat.c (gdb_ptrace): Likewise.
13627 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13628
f7d4f0b1
TT
136292020-03-20 Tom Tromey <tromey@adacore.com>
13630
13631 * c-exp.y (lex_one_token): Fix assert.
13632
f67210ff
TT
136332020-03-20 Tom Tromey <tromey@adacore.com>
13634
13635 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13636 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13637 strncpy call.
13638
1773be9e
TT
136392020-03-20 Tom Tromey <tromey@adacore.com>
13640
13641 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13642
70304be9
TT
136432020-03-20 Tom Tromey <tromey@adacore.com>
13644
13645 * ada-valprint.c (print_variant_part): Remove parameters; switch
13646 to value-based API.
13647 (print_field_values): Likewise.
13648 (ada_val_print_struct_union): Likewise.
13649 (ada_value_print_1): Update.
13650
9faa006d
KR
136512020-03-20 Kamil Rytarowski <n54@gmx.com>
13652
13653 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13654 nbsd_nat_target instead of inf_ptrace_target.
13655 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13656 nbsd_nat_target.
13657
4a90f062
KR
136582020-03-20 Kamil Rytarowski <n54@gmx.com>
13659
13660 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13661 it to the ptrace call.
13662 * (store_registers): Likewise.
13663
136642020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13665
13666 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13667 it to the ptrace call.
13668 * (store_registers): Likewise.
13669
2d07da27
LM
136702020-03-19 Luis Machado <luis.machado@linaro.org>
13671
13672 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13673 valid, fetch vg value from ptrace.
13674
f09db380
KR
136752020-03-19 Kamil Rytarowski <n54@gmx.com>
13676 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13677 * inf-ptrace.c: Likewise.
13678 * (gdb_ptrace): Add.
13679 * (inf_ptrace_target::resume): Update.
13680 * (inf_ptrace_target::xfer_partial): Likewise.
13681 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13682 * (inf_ptrace_peek_poke): Update.
13683
fcc7376e
KR
136842020-03-19 Kamil Rytarowski <n54@gmx.com>
13685
13686 * x86-bsd-nat.c (gdb_ptrace): New.
13687 * (x86bsd_dr_set): Add new argument `ptid'.
13688 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13689 x86bsd_dr_set_addr): Update.
13690
cada5fc9
AB
136912020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13692
13693 * remote.c (remote_target::process_stop_reply): Handle events for
13694 all threads differently.
13695
19a2740f
AB
136962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13697
13698 * completer.c (completion_tracker::remove_completion): Define new
13699 function.
13700 * completer.h (completion_tracker::remove_completion): Declare new
13701 function.
13702 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13703 when adding a C++ function symbol.
13704
724fd9ba
AB
137052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13706
13707 * completer.c (completion_tracker::completion_hash_entry): Define
13708 new class.
13709 (advance_to_filename_complete_word_point): Call
13710 recompute_lowest_common_denominator.
13711 (completion_tracker::completion_tracker): Call discard_completions
13712 to setup the hash table.
13713 (completion_tracker::discard_completions): Allow for being called
13714 from the constructor, pass new equal function, and element deleter
13715 when constructing the hash table. Initialise new class member
13716 variables.
13717 (completion_tracker::maybe_add_completion): Remove use of
13718 m_entries_vec, and store more information into m_entries_hash.
13719 (completion_tracker::recompute_lcd_visitor): New function, most
13720 content taken from...
13721 (completion_tracker::recompute_lowest_common_denominator):
13722 ...here, this now just visits each item in the hash calling the
13723 above visitor.
13724 (completion_tracker::build_completion_result): Remove use of
13725 m_entries_vec, call recompute_lowest_common_denominator.
13726 * completer.h (completion_tracker::have_completions): Remove use
13727 of m_entries_vec.
13728 (completion_tracker::completion_hash_entry): Declare new class.
13729 (completion_tracker::recompute_lowest_common_denominator): Change
13730 function signature.
13731 (completion_tracker::recompute_lcd_visitor): Declare new function.
13732 (completion_tracker::m_entries_vec): Delete.
13733 (completion_tracker::m_entries_hash): Initialize to NULL.
13734 (completion_tracker::m_lowest_common_denominator_valid): New
13735 member variable.
13736 (completion_tracker::m_lowest_common_denominator_max_length): New
13737 member variable.
13738
5a82b8a1
KR
137392020-03-17 Kamil Rytarowski <n54@gmx.com>
13740
13741 * regformats/regdef.h: Put reg in gdb namespace.
13742
fb516a69
KR
137432020-03-17 Kamil Rytarowski <n54@gmx.com>
13744
13745 * i386-bsd-nat.c (gdb_ptrace): New.
13746 * (i386bsd_fetch_inferior_registers,
13747 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13748 * (i386bsd_fetch_inferior_registers,
13749 i386bsd_store_inferior_registers) Use gdb_ptrace.
13750
1c0aa1fb
KR
137512020-03-17 Kamil Rytarowski <n54@gmx.com>
13752
13753 * amd64-bsd-nat.c (gdb_ptrace): New.
13754 * (amd64bsd_fetch_inferior_registers,
13755 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13756 * (amd64bsd_fetch_inferior_registers,
13757 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13758
5ccd2fb7
KR
137592020-03-17 Kamil Rytarowski <n54@gmx.com>
13760
13761 * user-regs.c (user_reg::read): Rename to...
13762 (user_reg::xread): ...this.
13763 * (append_user_reg): Rename argument `read' to `xread'.
13764 * (user_reg_add_builtin): Likewise.
13765 * (user_reg_add): Likewise.
13766 * (value_of_user_reg): Likewise.
13767
2108a63a
KR
137682020-03-17 Kamil Rytarowski <n54@gmx.com>
13769
13770 * sparc-nat.c (gdb_ptrace): New.
13771 * sparc-nat.c (sparc_fetch_inferior_registers)
13772 (sparc_store_inferior_registers) Remove obsolete comment.
13773 * sparc-nat.c (sparc_fetch_inferior_registers)
13774 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13775 * sparc-nat.c (sparc_fetch_inferior_registers)
13776 (sparc_store_inferior_registers) Use gdb_ptrace.
13777
a225c9a8
KR
137782020-03-17 Kamil Rytarowski <n54@gmx.com>
13779
13780 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13781 it to the ptrace call.
13782 * sh-nbsd-nat.c (store_registers): Likewise.
13783
98097623
KR
137842020-03-17 Kamil Rytarowski <n54@gmx.com>
13785
13786 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13787 nbsd_nat_target instead of inf_ptrace_target.
13788 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13789 nbsd_nat_target.
13790
9e38d619
KR
137912020-03-17 Kamil Rytarowski <n54@gmx.com>
13792
13793 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13794
a2ecbe9f
KR
137952020-03-17 Kamil Rytarowski <n54@gmx.com>
13796
13797 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13798 <sys/sysctl.h>.
13799 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13800
58990295
TV
138012020-03-17 Tom de Vries <tdevries@suse.de>
13802
13803 PR gdb/23710
13804 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13805 fields.
13806 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13807 fields.
13808 (process_imported_unit_die): Skip import of c++ CUs.
13809
771dd3a8
TT
138102020-03-16 Tom Tromey <tom@tromey.com>
13811
13812 * p-valprint.c (pascal_object_print_value): Initialize
13813 base_value.
13814
817a7585
AK
138152020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13816 Shahab Vahedi <shahab@synopsys.com>
13817
13818 * Makefile.in: Add arch/arc.o
13819 * configure.tgt: Likewise.
13820 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13821 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13822 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13823 * arc-tdep.h (arc_read_description): Add proto type.
13824 * arch/arc.c: New file.
13825 * arch/arc.h: Likewise.
13826 * features/Makefile: Replace old target descriptions with new.
13827 * features/arc-arcompact.c: Remove.
13828 * features/arc-arcompact.xml: Likewise.
13829 * features/arc-v2.c: Likewise
13830 * features/arc-v2.xml: Likewise
13831 * features/arc/aux-arcompact.xml: New file.
13832 * features/arc/aux-v2.xml: Likewise.
13833 * features/arc/core-arcompact.xml: Likewise.
13834 * features/arc/core-v2.xml: Likewise.
13835 * features/arc/aux-arcompact.c: Generate.
13836 * features/arc/aux-v2.c: Likewise.
13837 * features/arc/core-arcompact.c: Likewise.
13838 * features/arc/core-v2.c: Likewise.
13839 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13840
67430cd0
TT
138412020-03-16 Tom Tromey <tromey@adacore.com>
13842
13843 PR gdb/25663:
13844 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13845 putting value into bcache.
13846
30efb6c7
SM
138472020-03-16 Simon Marchi <simon.marchi@efficios.com>
13848
13849 PR gdb/21500
13850 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13851 to...
13852 (amd64_windows_init_abi_common): ... this. Don't set size of
13853 long type.
13854 (amd64_windows_init_abi): New function.
13855 (amd64_cygwin_init_abi): New function.
13856 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13857 the Cygwin OS ABI.
13858 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13859 comment.
13860
8db52437
SM
138612020-03-16 Simon Marchi <simon.marchi@efficios.com>
13862
13863 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13864 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13865 (pe_import_directory_entry): New struct type.
13866 (is_linked_with_cygwin_dll): New function.
13867 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13868 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13869 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13870
5982a56a
SM
138712020-03-16 Simon Marchi <simon.marchi@efficios.com>
13872
13873 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13874 i386_cygwin_core_osabi_sniffer.
13875
7a1998df
SM
138762020-03-16 Simon Marchi <simon.marchi@efficios.com>
13877
13878 * i386-cygwin-tdep.c: Rename to...
13879 * i386-windows-tdep.c: ... this.
13880 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13881 i386-windows-tdep.c.
13882 * configure.tgt: Likewise.
13883
053205cc
SM
138842020-03-16 Simon Marchi <simon.marchi@efficios.com>
13885
13886 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13887 * osabi.c (gdb_osabi_names): Add "Windows".
13888 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13889 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13890 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13891 i386_cygwin_osabi_sniffer.
13892 (_initialize_i386_cygwin_tdep): Register OS ABI
13893 GDB_OSABI_WINDOWS for i386.
13894 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13895 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13896 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13897 for x86-64.
13898 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13899 when the target matches '*-*-mingw*'.
13900
fe4b2ee6
SM
139012020-03-16 Simon Marchi <simon.marchi@efficios.com>
13902
13903 * defs.h (enum gdb_osabi): Move to...
13904 * osabi.h (enum gdb_osabi): ... here.
13905 * gdbarch.sh: Include osabi.h in gdbarch.h.
13906 * gdbarch.h: Re-generate.
13907
cb9b645d
SM
139082020-03-16 Simon Marchi <simon.marchi@efficios.com>
13909
13910 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13911 function.
13912 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13913
3293bbaf
TT
139142020-03-14 Tom Tromey <tom@tromey.com>
13915
13916 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13917 for C++.
13918 (c_type_print_modifier): Likewise. Add "language" parameter.
13919 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13920 (c_type_print_base_1): Update.
13921 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13922 constants.
13923 * type-stack.c (type_stack::insert): Handle tp_atomic and
13924 tp_restrict.
13925 (type_stack::follow_type_instance_flags): Likewise.
13926 (type_stack::follow_types): Likewise. Merge type-following code.
13927 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13928 (space_identifier, cv_with_space_id)
13929 (const_or_volatile_or_space_identifier_noopt)
13930 (const_or_volatile_or_space_identifier): Remove.
13931 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13932 rules.
13933 (ptr_operator, typebase): Update.
13934 (enum token_flag) <FLAG_C>: New constant.
13935 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13936 "_Atomic".
13937 (lex_one_token): Handle FLAG_C.
13938
154151a6
KR
139392020-03-14 Kamil Rytarowski <n54@gmx.com>
13940
13941 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13942 it to the ptrace call.
13943 * m68k-bsd-nat.c (store_registers): Likewise.
13944
bc107784
KR
139452020-03-14 Kamil Rytarowski <n54@gmx.com>
13946
13947 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13948 gdb_byte *.
13949 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13950 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13951 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13952
01a80117
KR
139532020-03-14 Kamil Rytarowski <n54@gmx.com>
13954
13955 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13956 nbsd_nat_target instead of inf_ptrace_target.
13957 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13958 nbsd_nat_target.
13959
f90280ca
KR
139602020-03-14 Kamil Rytarowski <n54@gmx.com>
13961
13962 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13963 register_t.
13964
6def66f1
KR
139652020-03-14 Kamil Rytarowski <n54@gmx.com>
13966
13967 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13968 it to the ptrace call.
13969 * alpha-bsd-nat.c (store_registers): Likewise.
13970
66eaca97
KR
139712020-03-14 Kamil Rytarowski <n54@gmx.com>
13972
13973 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13974 includes.
13975 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13976 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13977 fill_fpregset): Likewise.
13978
4fed520b
KR
139792020-03-14 Kamil Rytarowski <n54@gmx.com>
13980
13981 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13982 nbsd_nat_target instead of inf_ptrace_target.
13983 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13984 nbsd_nat_target.
13985
2190cf06
KR
139862020-03-14 Kamil Rytarowski <n54@gmx.com>
13987
13988 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13989 register_t.
13990
75c56d3d
KR
139912020-03-14 Kamil Rytarowski <n54@gmx.com>
13992
13993 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13994 it to the ptrace call.
13995 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13996 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13997 * arm-nbsd-nat.c (store_register): Likewise.
13998 * arm-nbsd-nat.c (store_regs): Likewise.
13999 * arm-nbsd-nat.c (store_fp_register): Likewise.
14000 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14001
6018d381
KR
140022020-03-14 Kamil Rytarowski <n54@gmx.com>
14003
14004 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14005 nbsd_nat_target instead of inf_ptrace_target.
14006 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14007 nbsd_nat_target.
14008
013f99f0
KR
140092020-03-14 Kamil Rytarowski <n54@gmx.com>
14010
14011 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14012 it to the ptrace call.
14013 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14014
12753073
KR
140152020-03-14 Kamil Rytarowski <n54@gmx.com>
14016
6227b330
KR
14017 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14018 it to the ptrace call.
14019 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14020
140212020-03-14 Kamil Rytarowski <n54@gmx.com>
14022
14023 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14024 gdb_byte *.
12753073
KR
14025 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14026
d5be5fa4
KR
140272020-03-14 Kamil Rytarowski <n54@gmx.com>
14028
14029 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14030 instead of inf_ptrace_target.
14031 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14032 nbsd_nat_target.
14033
8110f842
KR
140342020-03-14 Kamil Rytarowski <n54@gmx.com>
14035
14036 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14037 register_t.
14038
52feded7
KR
140392020-03-14 Kamil Rytarowski <n54@gmx.com>
14040
14041 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14042 register_t.
14043
25567eee
KR
140442020-03-14 Kamil Rytarowski <n54@gmx.com>
14045
14046 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14047 register_t.
14048
426a9c18
TT
140492020-03-13 Tom Tromey <tom@tromey.com>
14050
14051 * value.h (val_print): Don't declare.
14052 * valprint.h (val_print_array_elements)
14053 (val_print_scalar_formatted, generic_val_print): Don't declare.
14054 * valprint.c (generic_val_print_array): Take a struct value.
14055 (generic_val_print_ptr, generic_val_print_memberptr)
14056 (generic_val_print_bool, generic_val_print_int)
14057 (generic_val_print_char, generic_val_print_complex)
14058 (generic_val_print): Remove.
14059 (generic_value_print): Update.
14060 (do_val_print): Remove unused parameters. Don't call
14061 la_val_print.
14062 (val_print): Remove.
14063 (common_val_print): Update. Don't call value_check_printable.
14064 (val_print_scalar_formatted, val_print_array_elements): Remove.
14065 * rust-lang.c (rust_val_print): Remove.
14066 (rust_language_defn): Update.
14067 * p-valprint.c (pascal_val_print): Remove.
14068 (pascal_value_print_inner): Update.
14069 (pascal_object_print_val_fields, pascal_object_print_val):
14070 Remove.
14071 (pascal_object_print_static_field): Update.
14072 * p-lang.h (pascal_val_print): Don't declare.
14073 * p-lang.c (pascal_language_defn): Update.
14074 * opencl-lang.c (opencl_language_defn): Update.
14075 * objc-lang.c (objc_language_defn): Update.
14076 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14077 * m2-lang.h (m2_val_print): Don't declare.
14078 * m2-lang.c (m2_language_defn): Update.
14079 * language.h (struct language_defn) <la_val_print>: Remove.
14080 * language.c (unk_lang_value_print_inner): Rename. Change
14081 argument types.
14082 (unknown_language_defn, auto_language_defn): Update.
14083 * go-valprint.c (go_val_print): Remove.
14084 * go-lang.h (go_val_print): Don't declare.
14085 * go-lang.c (go_language_defn): Update.
14086 * f-valprint.c (f_val_print): Remove.
14087 * f-lang.h (f_value_print): Don't declare.
14088 * f-lang.c (f_language_defn): Update.
14089 * d-valprint.c (d_val_print): Remove.
14090 * d-lang.h (d_value_print): Don't declare.
14091 * d-lang.c (d_language_defn): Update.
14092 * cp-valprint.c (cp_print_value_fields)
14093 (cp_print_value_fields_rtti, cp_print_value): Remove.
14094 (cp_print_static_field): Update.
14095 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14096 (c_val_print_struct, c_val_print_union, c_val_print_int)
14097 (c_val_print_memberptr, c_val_print): Remove.
14098 * c-lang.h (c_val_print_array, cp_print_value_fields)
14099 (cp_print_value_fields_rtti): Don't declare.
14100 * c-lang.c (c_language_defn, cplus_language_defn)
14101 (asm_language_defn, minimal_language_defn): Update.
14102 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14103 (ada_val_print_enum): Take a struct value.
14104 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14105 (ada_val_print): Remove.
14106 (ada_value_print_1): Update.
14107 (printable_val_type): Remove.
14108 * ada-lang.h (ada_val_print): Don't declare.
14109 * ada-lang.c (ada_language_defn): Update.
14110
42331a1e
TT
141112020-03-13 Tom Tromey <tom@tromey.com>
14112
14113 * valprint.c (do_val_print): Update.
14114 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14115 a struct value.
14116 (value_to_value_object_no_release): Declare.
14117 * python/py-value.c (value_to_value_object_no_release): New
14118 function.
14119 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14120 struct value.
14121 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14122 function.
14123 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14124 a struct value.
14125 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14126 Declare.
14127 (gdbscm_apply_val_pretty_printer): Take a struct value.
14128 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14129 value.
14130 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14131 value.
14132 * extension-priv.h (struct extension_language_ops)
14133 <apply_val_pretty_printer>: Take a struct value.
14134 * cp-valprint.c (cp_print_value): Create a struct value.
14135 (cp_print_value): Update.
14136
3a916a97
TT
141372020-03-13 Tom Tromey <tom@tromey.com>
14138
14139 * ada-valprint.c (print_field_values): Call common_val_print.
14140
b59eac37
TT
141412020-03-13 Tom Tromey <tom@tromey.com>
14142
14143 * ada-valprint.c (val_print_packed_array_elements): Remove
14144 bitoffset and val parameters. Call common_val_print.
14145 (ada_val_print_string): Remove offset, address, and original_value
14146 parameters.
14147 (ada_val_print_array): Update.
14148 (ada_value_print_array): New function.
14149 (ada_value_print_1): Call it.
14150
03371129
TT
141512020-03-13 Tom Tromey <tom@tromey.com>
14152
14153 * ada-valprint.c (ada_value_print): Use common_val_print.
14154
2e088f8b
TT
141552020-03-13 Tom Tromey <tom@tromey.com>
14156
14157 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14158
39ef85a8
TT
141592020-03-13 Tom Tromey <tom@tromey.com>
14160
14161 * ada-valprint.c (ada_value_print_num): New function.
14162 (ada_value_print_1): Use it.
14163
b9fa6e07
TT
141642020-03-13 Tom Tromey <tom@tromey.com>
14165
14166 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14167
416595d6
TT
141682020-03-13 Tom Tromey <tom@tromey.com>
14169
14170 * ada-valprint.c (ada_value_print_ptr): New function.
14171 (ada_value_print_1): Use it.
14172
5b5e15ec
TT
141732020-03-13 Tom Tromey <tom@tromey.com>
14174
14175 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14176 call common_val_print.
14177 (ada_val_print_1): Update.
14178 (ada_value_print_1): New function.
14179 (ada_value_print_inner): Rewrite.
14180
fbf54e75
TT
141812020-03-13 Tom Tromey <tom@tromey.com>
14182
14183 * cp-valprint.c (cp_print_value_fields): Update.
14184 (cp_print_value): New function.
14185
64b653ca
TT
141862020-03-13 Tom Tromey <tom@tromey.com>
14187
14188 * m2-valprint.c (m2_value_print_inner): Use
14189 cp_print_value_fields.
14190 * cp-valprint.c (cp_print_value_fields): New function.
14191 * c-valprint.c (c_value_print_struct): New function.
14192 (c_value_print_inner): Use c_value_print_struct.
14193 * c-lang.h (cp_print_value_fields): Declare.
14194
6999f067
TT
141952020-03-13 Tom Tromey <tom@tromey.com>
14196
14197 * c-valprint.c (c_value_print_array): New function.
14198 (c_value_print_inner): Use it.
14199
ce80b8bd
TT
142002020-03-13 Tom Tromey <tom@tromey.com>
14201
14202 * c-valprint.c (c_value_print_memberptr): New function.
14203 (c_value_print_inner): Use it.
14204
2faac269
TT
142052020-03-13 Tom Tromey <tom@tromey.com>
14206
14207 * c-valprint.c (c_value_print_int): New function.
14208 (c_value_print_inner): Use it.
14209
da3e2c29
TT
142102020-03-13 Tom Tromey <tom@tromey.com>
14211
14212 * c-valprint.c (c_value_print_ptr): New function.
14213 (c_value_print_inner): Use it.
14214
50836231
TT
142152020-03-13 Tom Tromey <tom@tromey.com>
14216
14217 * c-valprint.c (c_value_print_inner): Rewrite.
14218
4f412b6e
TT
142192020-03-13 Tom Tromey <tom@tromey.com>
14220
14221 * valprint.c (generic_value_print_complex): New function.
14222 (generic_value_print): Use it.
14223
f5354008
TT
142242020-03-13 Tom Tromey <tom@tromey.com>
14225
14226 * valprint.c (generic_val_print_float): Don't call
14227 val_print_scalar_formatted.
14228 (generic_val_print, generic_value_print): Update.
14229
3eec3b05
TT
142302020-03-13 Tom Tromey <tom@tromey.com>
14231
14232 * valprint.c (generic_value_print_char): New function
14233 (generic_value_print): Use it.
14234
fdddfccb
TT
142352020-03-13 Tom Tromey <tom@tromey.com>
14236
14237 * valprint.c (generic_value_print_int): New function.
14238 (generic_value_print): Use it.
14239
6dde7521
TT
142402020-03-13 Tom Tromey <tom@tromey.com>
14241
14242 * valprint.c (generic_value_print_bool): New function.
14243 (generic_value_print): Use it.
14244
4112d2e6
TT
142452020-03-13 Tom Tromey <tom@tromey.com>
14246
14247 * valprint.c (generic_val_print_func): Simplify.
14248 (generic_val_print, generic_value_print): Update.
14249
65786af6
TT
142502020-03-13 Tom Tromey <tom@tromey.com>
14251
14252 * valprint.c (generic_val_print_flags): Remove.
14253 (generic_val_print, generic_value_print): Update.
14254 (val_print_type_code_flags): Add original_value parameter.
14255
40f3ce18
TT
142562020-03-13 Tom Tromey <tom@tromey.com>
14257
14258 * valprint.c (generic_val_print): Update.
14259 (generic_value_print): Update.
14260 * valprint.c (generic_val_print_enum): Don't call
14261 val_print_scalar_formatted.
14262
2a5b130b
TT
142632020-03-13 Tom Tromey <tom@tromey.com>
14264
14265 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14266 * valprint.c (generic_value_print_ptr): New function.
14267
abc66ce9
TT
142682020-03-13 Tom Tromey <tom@tromey.com>
14269
14270 * valprint.c (generic_value_print): Rewrite.
14271
07a32858
TT
142722020-03-13 Tom Tromey <tom@tromey.com>
14273
14274 * p-valprint.c (pascal_object_print_value_fields)
14275 (pascal_object_print_value): New functions.
14276
64d64d3a
TT
142772020-03-13 Tom Tromey <tom@tromey.com>
14278
14279 * p-valprint.c (pascal_value_print_inner): Rewrite.
14280
6a95a1f5
TT
142812020-03-13 Tom Tromey <tom@tromey.com>
14282
14283 * f-valprint.c (f_value_print_innner): Rewrite.
14284
59fcdac6
TT
142852020-03-13 Tom Tromey <tom@tromey.com>
14286
14287 * m2-valprint.c (m2_print_unbounded_array): New overload.
14288 (m2_print_unbounded_array): Update.
14289 (m2_print_array_contents): Take a struct value.
14290 (m2_value_print_inner): Rewrite.
14291
d133c3e1
TT
142922020-03-13 Tom Tromey <tom@tromey.com>
14293
14294 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14295 (d_value_print_inner): New function.
14296 * d-lang.h (d_value_print_inner): Declare.
14297 * d-lang.c (d_language_defn): Use d_value_print_inner.
14298
23b0f06b
TT
142992020-03-13 Tom Tromey <tom@tromey.com>
14300
14301 * go-valprint.c (go_value_print_inner): New function.
14302 * go-lang.h (go_value_print_inner): Declare.
14303 * go-lang.c (go_language_defn): Use go_value_print_inner.
14304
5f56f7cb
TT
143052020-03-13 Tom Tromey <tom@tromey.com>
14306
14307 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14308 API.
14309 (rust_val_print): Rewrite.
14310 (rust_value_print_inner): New function, from rust_val_print.
14311 (rust_language_defn): Use rust_value_print_inner.
14312
26792ee0
TT
143132020-03-13 Tom Tromey <tom@tromey.com>
14314
14315 * ada-valprint.c (ada_value_print_inner): New function.
14316 * ada-lang.h (ada_value_print_inner): Declare.
14317 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14318
24051bbe
TT
143192020-03-13 Tom Tromey <tom@tromey.com>
14320
14321 * f-valprint.c (f_value_print_innner): New function.
14322 * f-lang.h (f_value_print_innner): Declare.
14323 * f-lang.c (f_language_defn): Use f_value_print_innner.
14324
c0941be6
TT
143252020-03-13 Tom Tromey <tom@tromey.com>
14326
14327 * p-valprint.c (pascal_value_print_inner): New function.
14328 * p-lang.h (pascal_value_print_inner): Declare.
14329 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14330
62c4663d
TT
143312020-03-13 Tom Tromey <tom@tromey.com>
14332
14333 * m2-valprint.c (m2_value_print_inner): New function.
14334 * m2-lang.h (m2_value_print_inner): Declare.
14335 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14336
62182190
TT
143372020-03-13 Tom Tromey <tom@tromey.com>
14338
14339 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14340 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14341 * c-valprint.c (c_value_print_inner): New function.
14342 * c-lang.h (c_value_print_inner): Declare.
14343 * c-lang.c (c_language_defn, cplus_language_defn)
14344 (asm_language_defn, minimal_language_defn): Use
14345 c_value_print_inner.
14346
1e592a8a
TT
143472020-03-13 Tom Tromey <tom@tromey.com>
14348
14349 * p-valprint.c (pascal_object_print_value_fields): Now static.
14350 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14351
7fe471e9
TT
143522020-03-13 Tom Tromey <tom@tromey.com>
14353
14354 * c-valprint.c (c_val_print_array): Simplify.
14355
d121c6ce
TT
143562020-03-13 Tom Tromey <tom@tromey.com>
14357
14358 * valprint.c (value_print_array_elements): New function.
14359 * valprint.h (value_print_array_elements): Declare.
14360
4dba70ee
TT
143612020-03-13 Tom Tromey <tom@tromey.com>
14362
14363 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14364 * mips-tdep.c (mips_print_register): Use
14365 value_print_scalar_formatted.
14366
4f9ae810
TT
143672020-03-13 Tom Tromey <tom@tromey.com>
14368
14369 * valprint.h (value_print_scalar_formatted): Declare.
14370 * valprint.c (value_print_scalar_formatted): New function.
14371
156bfec9
TT
143722020-03-13 Tom Tromey <tom@tromey.com>
14373
14374 * valprint.h (generic_value_print): Declare.
14375 * valprint.c (generic_value_print): New function.
14376
2b4e573d
TT
143772020-03-13 Tom Tromey <tom@tromey.com>
14378
14379 * valprint.c (do_val_print): Call la_value_print_inner, if
14380 available.
14381 * rust-lang.c (rust_language_defn): Update.
14382 * p-lang.c (pascal_language_defn): Update.
14383 * opencl-lang.c (opencl_language_defn): Update.
14384 * objc-lang.c (objc_language_defn): Update.
14385 * m2-lang.c (m2_language_defn): Update.
14386 * language.h (struct language_defn) <la_value_print_inner>: New
14387 member.
14388 * language.c (unknown_language_defn, auto_language_defn): Update.
14389 * go-lang.c (go_language_defn): Update.
14390 * f-lang.c (f_language_defn): Update.
14391 * d-lang.c (d_language_defn): Update.
14392 * c-lang.c (c_language_defn, cplus_language_defn)
14393 (asm_language_defn, minimal_language_defn): Update.
14394 * ada-lang.c (ada_language_defn): Update.
14395
a1f6a07c
TT
143962020-03-13 Tom Tromey <tom@tromey.com>
14397
14398 * c-valprint.c (c_value_print): Use common_val_print.
14399
410cf315
TT
144002020-03-13 Tom Tromey <tom@tromey.com>
14401
14402 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14403
72a45c93
TT
144042020-03-13 Tom Tromey <tom@tromey.com>
14405
14406 * f-valprint.c (f77_print_array_1, f_val_print): Use
14407 common_val_print.
14408
040f66bd
TT
144092020-03-13 Tom Tromey <tom@tromey.com>
14410
14411 * riscv-tdep.c (riscv_print_one_register_info): Use
14412 common_val_print.
14413
a6e05a6c
TT
144142020-03-13 Tom Tromey <tom@tromey.com>
14415
14416 * mi/mi-main.c (output_register): Use common_val_print.
14417
3444c526
TT
144182020-03-13 Tom Tromey <tom@tromey.com>
14419
14420 * infcmd.c (default_print_one_register_info): Use
14421 common_val_print.
14422
c2a44efe
TT
144232020-03-13 Tom Tromey <tom@tromey.com>
14424
14425 * valprint.h (common_val_print_checked): Declare.
14426 * valprint.c (common_val_print_checked): New function.
14427 * stack.c (print_frame_arg): Use common_val_print_checked.
14428
b0c26e99
TT
144292020-03-13 Tom Tromey <tom@tromey.com>
14430
14431 * valprint.c (do_val_print): New function, from val_print.
14432 (val_print): Use do_val_print.
14433 (common_val_print): Use do_val_print.
14434
ce3acbe9
TT
144352020-03-13 Tom Tromey <tom@tromey.com>
14436
14437 * valprint.c (value_print): Use scoped_value_mark.
14438
96c7f873
TV
144392020-03-13 Tom de Vries <tdevries@suse.de>
14440
14441 PR symtab/25646
14442 * psymtab.c (partial_symtab::partial_symtab): Don't set
14443 globals_offset and statics_offset. Push element onto
14444 current_global_psymbols and current_static_psymbols stacks.
14445 (concat): New function.
14446 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14447 element from current_global_psymbols and current_static_psymbols
14448 stacks. Concat popped elements to global_psymbols and
14449 static_symbols.
14450 (add_psymbol_to_list): Use current_global_psymbols and
14451 current_static_psymbols stacks.
14452 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14453 current_static_psymbols fields.
14454
6ba0a321
CB
144552020-03-12 Christian Biesinger <cbiesinger@google.com>
14456
14457 * corelow.c (sniff_core_bfd): Remove.
14458 (class core_target) <m_core_vec>: Remove.
14459 (core_target::core_target): Update.
14460 (core_file_fns): Remove.
14461 (deprecated_add_core_fns): Remove.
14462 (default_core_sniffer): Remove.
14463 (sniff_core_bfd): Remove.
14464 (default_check_format): Remove.
14465 (gdb_check_format): Remove.
14466 (core_target_open): Update.
14467 (core_target::get_core_register_section): Update.
14468 (get_core_registers_cb): Update.
14469 (core_target::fetch_registers): Update.
14470 * gdbcore.h (struct core_fns): Remove.
14471 (deprecated_add_core_fns): Remove.
14472 (default_core_sniffer): Remove.
14473 (default_check_format): Remove.
14474
227031b2
TT
144752020-03-12 Tom Tromey <tom@tromey.com>
14476
14477 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14478 CORE_ADDR.
14479 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14480
53807e9f
TT
144812020-03-12 Tom Tromey <tom@tromey.com>
14482
14483 * remote.c (remote_target::download_tracepoint)
14484 (remote_target::enable_tracepoint)
14485 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14486 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14487 sprintf_vma.
14488
64f25102
TT
144892020-03-12 Tom Tromey <tom@tromey.com>
14490
14491 * symfile-mem.c: Update CORE_ADDR size assert.
14492
272cd5a3
SM
144932020-03-12 Simon Marchi <simon.marchi@efficios.com>
14494
14495 * selftest.m4: Move to gdbsupport/.
14496 * acinclude.m4: Update path to selftest.m4.
14497
74cd3f9d
SM
144982020-03-12 Simon Marchi <simon.marchi@efficios.com>
14499
14500 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14501 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14502 gdbarch-selfselftests.c and selftest-arch.c.
14503 (SUBDIR_UNITTESTS_OBS): Rename to...
14504 (SELFTESTS_OBS): ... this.
14505 (COMMON_SFILES): Remove disasm-selftests.c and
14506 gdbarch-selftests.c.
14507 * configure.ac: Don't add selftest-arch.{c,o} to
14508 CONFIG_{SRCS,OBS}.
14509 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14510 preprocessor conditions.
14511
db6878ac
SM
145122020-03-12 Simon Marchi <simon.marchi@efficios.com>
14513
14514 * configure.ac: Don't source bfd/development.sh.
14515 * selftest.m4: Modify comment.
14516 * configure: Re-generate.
14517
4d696a5c
SM
145182020-03-12 Simon Marchi <simon.marchi@efficios.com>
14519
14520 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14521 not "true" or "false".
14522 * configure: Re-generate.
14523
8dd8e1c7
CB
145242020-03-12 Christian Biesinger <cbiesinger@google.com>
14525
14526 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14527 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14528 renamed to arm_nbsd_supply_gregset.
14529 (fetch_register): Update to call arm_nbsd_supply_gregset.
14530 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14531 (arm_netbsd_nat_target::fetch_registers): Update.
14532 (fetch_elfcore_registers): Removed.
14533 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14534 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14535 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14536 not require NetBSD system headers.
14537 (arm_nbsd_regset): New struct.
14538 (arm_nbsd_iterate_over_regset_sections): New function.
14539 (arm_netbsd_init_abi_common): Updated to call
14540 set_gdbarch_iterate_over_regset_sections.
14541 * arm-nbsd-tdep.h: New file.
14542
dd69bf7a
KB
145432020-03-11 Kevin Buettner <kevinb@redhat.com>
14544
14545 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14546 recursion.
14547
a0761e34
SM
145482020-03-11 Simon Marchi <simon.marchi@efficios.com>
14549
14550 * configure: Re-generate.
14551
e7a82140
TT
145522020-03-11 Tom Tromey <tromey@adacore.com>
14553
14554 * ada-typeprint.c (print_choices): Fix comment.
14555
dcc050c8
AB
145562020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14557
14558 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14559 previous item in the list, when the list has no items.
14560
1c33af77
TV
145612020-03-11 Tom de Vries <tdevries@suse.de>
14562
14563 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14564 PROP_LOCLIST handling code.
14565
8c95582d
AB
145662020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14567
14568 * buildsym-legacy.c (record_line): Pass extra parameter to
14569 record_line.
14570 * buildsym.c (buildsym_compunit::record_line): Take an extra
14571 parameter, reduce duplication in the line table, and record the
14572 is_stmt flag in the line table.
14573 * buildsym.h (buildsym_compunit::record_line): Add extra
14574 parameter.
14575 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14576 non-statement lines.
14577 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14578 this to the symtab builder.
14579 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14580 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14581 through to dwarf_record_line_1.
14582 * infrun.c (process_event_stop_test): When stepping, don't stop at
14583 a non-statement instruction, and only refresh the step info when
14584 we land in the middle of a line's range. Also add an extra
14585 comment.
14586 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14587 field.
14588 * record-btrace.c (btrace_find_line_range): Only record lines
14589 marked as is-statement.
14590 * stack.c (frame_show_address): Show the frame address if we are
14591 in a non-statement sal.
14592 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14593 (maintenance_print_one_line_table): Print a header for the is_stmt
14594 column, and include is_stmt information in the output.
14595 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14596 preference to non-statements.
14597 (find_pcs_for_symtab_line): Prefer is-statement entries.
14598 (find_line_common): Likewise.
14599 * symtab.h (struct linetable_entry): Add is_stmt field.
14600 (struct symtab_and_line): Likewise.
14601 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14602 arranging the line table.
14603
e4003a34
TV
146042020-03-07 Tom de Vries <tdevries@suse.de>
14605
14606 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14607 DIE.
14608
e8932576
TT
146092020-03-07 Tom Tromey <tom@tromey.com>
14610
14611 * valops.c (value_literal_complex): Remove obsolete comment.
14612 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14613 comment.
14614
29734269
SM
146152020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14616
14617 * infrun.h: Forward-declare thread_info.
14618 (set_step_info): Add thread_info parameter, add doc.
14619 * infrun.c (set_step_info): Add thread_info parameter, move doc
14620 to header.
14621 * infrun.c (process_event_stop_test): Pass thread to
14622 set_step_info call.
14623 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14624 set_step_info.
14625 (prepare_one_step): Add thread_info parameter, pass it to
14626 set_step_frame and prepare_one_step (recursive) call.
14627 (step_1): Pass thread to prepare_one_step call.
14628 (step_command_fsm::should_stop): Pass thread to
14629 prepare_one_step.
14630 (until_next_fsm): Pass thread to set_step_frame call.
14631 (finish_command): Pass thread to set_step_info call.
14632
b7d64b29
HD
146332020-03-06 Hannes Domani <ssbssa@yahoo.de>
14634
14635 * windows-tdep.c (windows_solib_create_inferior_hook):
14636 Check if inferior is running.
14637
09f2921c
TV
146382020-03-06 Tom de Vries <tdevries@suse.de>
14639
14640 * NEWS: Fix "the the".
14641 * ctfread.c: Same.
14642
fd760e79
TV
146432020-03-06 Tom de Vries <tdevries@suse.de>
14644
14645 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14646
20ea4a60
AB
146472020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14648
14649 * .dir-locals.el: Add a comment referencing the other copies of
14650 this file.
14651
0afbabf0
JB
146522020-03-05 John Baldwin <jhb@FreeBSD.org>
14653
14654 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14655 psargs.
14656
842806cb
TBA
146572020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14658
14659 * .gitattributes: New file.
14660
be1e3d3e
TT
146612020-03-04 Tom Tromey <tom@tromey.com>
14662
14663 * symmisc.c (print_symbol_bcache_statistics)
14664 (print_objfile_statistics): Update.
14665 * symfile.c (allocate_symtab): Use intern.
14666 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14667 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14668 macro_cache>: Remove.
14669 <string_cache>: New member.
14670 (struct objfile) <intern>: New methods.
14671 * elfread.c (elf_symtab_read): Use intern.
14672 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14673 (dwarf2_compute_name, dwarf2_physname)
14674 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14675 names.
14676 (guess_partial_die_structure_name): Update.
14677 (partial_die_info::fixup): Intern name.
14678 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14679 name.
14680 (dwarf2_name): Intern name. Update.
14681 * buildsym.c (buildsym_compunit::get_macro_table): Use
14682 string_cache.
14683
4e7625fd
TT
146842020-03-04 Tom Tromey <tom@tromey.com>
14685
14686 * jit.c (bfd_open_from_target_memory): Make "target" const.
14687 * corefile.c (gnutarget): Now const.
14688 * gdbcore.h (gnutarget): Now const.
14689
46f9f931
HD
146902020-03-04 Hannes Domani <ssbssa@yahoo.de>
14691
14692 * NEWS: Mention support for WOW64 processes.
14693 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14694 (amd64_windows_segment_register_p): Remove static.
14695 (_initialize_amd64_windows_nat): Update.
14696 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14697 * i386-windows-nat.c (context_offset): Update.
14698 (i386_mappings): Rename and remove static.
14699 (i386_windows_segment_register_p): Remove static.
14700 (_initialize_i386_windows_nat): Update.
14701 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14702 (STATUS_WX86_SINGLE_STEP): New macro.
14703 (EnumProcessModulesEx): New macro.
14704 (Wow64SuspendThread): New macro.
14705 (Wow64GetThreadContext): New macro.
14706 (Wow64SetThreadContext): New macro.
14707 (Wow64GetThreadSelectorEntry): New macro.
14708 (windows_set_context_register_offsets): Add static.
14709 (windows_set_segment_register_p): Likewise.
14710 (windows_add_thread): Adapt for WOW64 processes.
14711 (windows_fetch_one_register): Likewise.
14712 (windows_nat_target::fetch_registers): Likewise.
14713 (windows_store_one_register): Likewise.
14714 (display_selector): Likewise.
14715 (display_selectors): Likewise.
14716 (handle_exception): Likewise.
14717 (windows_continue): Likewise.
14718 (windows_nat_target::resume): Likewise.
14719 (windows_add_all_dlls): Likewise.
14720 (do_initial_windows_stuff): Likewise.
14721 (windows_nat_target::attach): Likewise.
14722 (windows_get_exec_module_filename): Likewise.
14723 (windows_nat_target::create_inferior): Likewise.
14724 (windows_xfer_siginfo): Likewise.
14725 (_initialize_loadable): Initialize Wow64SuspendThread,
14726 Wow64GetThreadContext, Wow64SetThreadContext,
14727 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14728 * windows-nat.h (windows_set_context_register_offsets):
14729 Remove declaration.
14730 (windows_set_segment_register_p): Likewise.
14731 (i386_windows_segment_register_p): Add declaration.
14732 (amd64_windows_segment_register_p): Likewise.
14733
440cf44e
LM
147342020-03-04 Luis Machado <luis.machado@linaro.org>
14735
14736 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14737 in "info registers" for AArch64/ARM.
14738
14739 The change caused "info registers" to not print GPR's.
14740
14741 gdb/ChangeLog:
14742
14743 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14744
14745 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14746 when reg->group is empty and reggroup is not.
14747
1009d92f
TT
147482020-03-03 Tom Tromey <tromey@adacore.com>
14749
14750 * dwarf2/frame.c (struct dwarf2_frame_cache)
14751 <checked_tailcall_bottom, entry_cfa_sp_offset,
14752 entry_cfa_sp_offset_p>: Remove members.
14753 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14754 (dwarf2_frame_prev_register): Don't call
14755 dwarf2_tailcall_sniffer_first.
14756 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14757 * frame-unwind.c (add_unwinder): New fuction.
14758 (frame_unwind_init): Use it. Add tailcall unwinder.
14759
5e5d66b6
AB
147602020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14761 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14762
14763 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14764 value should be printed as true.
14765
584cf46d
HD
147662020-03-03 Hannes Domani <ssbssa@yahoo.de>
14767
14768 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14769 (windows_init_abi): Set and use windows_so_ops.
14770
7b973adc
SDJ
147712020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14772
14773 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14774 when verifying if dealing with a convenience variable.
14775
bb7b70ab
LM
147762020-03-03 Luis Machado <luis.machado@linaro.org>
14777
14778 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14779
9822cb57
SM
147802020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14781
14782 * infrun.c (gdbarch_supports_displaced_stepping): New.
14783 (use_displaced_stepping): Break up conditions in smaller pieces.
14784 Use gdbarch_supports_displaced_stepping.
14785 (displaced_step_prepare_throw): Use
14786 gdbarch_supports_displaced_stepping.
14787
63e163f2
AB
147882020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14789
14790 * NEWS: Mention new behaviour of the history filename.
14791 * top.c (write_history_p): Add comment.
14792 (show_write_history_p): Add header comment, give a different
14793 message when history writing is on, but the history filename is
14794 empty.
14795 (history_filename): Add comment.
14796 (history_filename_empty): New function.
14797 (show_history_filename): Add header comment, give a different
14798 message when the filename is empty.
14799 (init_history): Compare history_filename against nullptr, and only
14800 read history if the filename is not empty.
14801 (set_history_filename): Add header comment, and only make
14802 non-empty filenames absolute.
14803 (init_main): Make the filename argument to 'set history filename'
14804 optional.
14805
81b86b97
CB
148062020-03-02 Christian Biesinger <cbiesinger@google.com>
14807
14808 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14809 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14810 (fetch_fp_register): Update.
14811 (fetch_fp_regs): Update.
14812 (store_fp_register): Update.
14813 (store_fp_regs): Update.
14814 (arm_netbsd_nat_target::read_description): New function.
14815 (fetch_elfcore_registers): Update.
14816
24ed6739
AB
148172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14818
14819 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14820 general_thread if the stop reply is missing a thread-id.
14821 (remote_target::process_stop_reply): Use the first non-exited
14822 thread if the target didn't pass a thread-id.
14823 * infrun.c (do_target_wait): Move call to
14824 switch_to_inferior_no_thread to ....
14825 (do_target_wait_1): ... here.
14826
a84bb2a0
JT
148272020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14828
14829 * debuginfod-support.c: Include defs.h first.
14830
658dadf0
TV
148312020-02-28 Tom de Vries <tdevries@suse.de>
14832
14833 * symfile.c (set_initial_language): Use default language for lookup.
14834
4ebe4877
SM
148352020-02-28 Simon Marchi <simon.marchi@efficios.com>
14836
14837 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14838 reader variable, pass `this` to read_cutu_die_from_dwo.
14839
e5da1139
AM
148402020-02-27 Aaron Merey <amerey@redhat.com>
14841
14842 * source.c (open_source_file): Check for nullptr when computing
14843 srcpath.
14844
317f7127
TT
148452020-02-27 Tom Tromey <tromey@adacore.com>
14846
14847 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14848 member.
14849 (dwarf2_add_field): Don't update nfields.
14850 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14851
3104d9ee
AB
148522020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14853
14854 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14855 abs.
14856
b83470bf
TT
148572020-02-26 Tom Tromey <tom@tromey.com>
14858
14859 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14860 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14861 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14862 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14863 per_cu_data.
14864
edfe0a0c
TT
148652020-02-26 Tom Tromey <tom@tromey.com>
14866
14867 * dwarf2/index-write.c (psym_index_map): Change type.
14868 (add_address_entry_worker, write_one_signatured_type)
14869 (recursively_count_psymbols, recursively_write_psymbols)
14870 (class debug_names, psyms_seen_size, write_gdbindex)
14871 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14872
0d79cdc4
AM
148732020-02-26 Aaron Merey <amerey@redhat.com>
14874
14875 * Makefile.in: Handle optional debuginfod support.
14876 * NEWS: Update.
14877 * README: Add --with-debuginfod summary.
14878 * config.in: Regenerate.
14879 * configure: Regenerate.
14880 * configure.ac: Handle optional debuginfod support.
14881 * debuginfod-support.c: debuginfod helper functions.
14882 * debuginfod-support.h: Ditto.
14883 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14884 summary.
14885 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14886 when a dwz file cannot be found.
14887 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14888 debuginfo file cannot be found.
14889 * source.c (open_source_file): Query debuginfod servers when a
14890 source file cannot be found.
14891 * top.c (print_gdb_configuration): Include
14892 --{with,without}-debuginfod in the output.
14893
b65ce565
JG
148942020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14895
14896 * thread.c (thr_try_catch_cmd): Print thread name.
14897
d4c9a4f8
SM
148982020-02-26 Simon Marchi <simon.marchi@efficios.com>
14899
14900 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14901 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14902 dwarf2_fetch_die_type_sect_off): Move to...
14903 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14904 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14905 dwarf2_fetch_die_type_sect_off): ... here.
14906 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14907 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14908 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14909
0dce4280
TV
149102020-02-26 Tom de Vries <tdevries@suse.de>
14911
14912 PR gdb/25603
14913 * symfile.c (set_initial_language): Exit-early if
14914 language_mode == language_mode_manual.
14915
450a1bfc
SM
149162020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14917
14918 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14919 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14920 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14921
9e80cfa1
AB
149222020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14923
14924 * gdbtypes.c (create_array_type_with_stride): Handle negative
14925 array strides.
14926 * valarith.c (value_subscripted_rvalue): Likewise.
14927
09624f1f
LM
149282020-02-25 Luis Machado <luis.machado@linaro.org>
14929
14930 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14931
8cb5117c
SM
149322020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14933
14934 * loc.h (dwarf2_get_die_type): Move to...
14935 * read.h (dwarf2_get_die_type): ... here.
14936 * read.c (dwarf2_get_die_type): Move doc to header.
14937
c325c44e
JB
149382020-02-25 Joel Brobecker <brobecker@adacore.com>
14939
14940 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14941 'gnulib/Makefile.in' to the list.
14942
4ac93832
TT
149432020-02-24 Tom Tromey <tom@tromey.com>
14944
14945 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14946 Remove.
14947 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14948 XOBNEWVEC.
14949
197400e8
TT
149502020-02-24 Tom Tromey <tom@tromey.com>
14951
14952 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14953 New method.
14954 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14955 (dw2_do_instantiate_symtab, dw2_get_file_names)
14956 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14957
76935768
TT
149582020-02-24 Tom Tromey <tom@tromey.com>
14959
14960 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14961 make_scoped_restore.
14962 (dwarf2_psymtab::read_symtab): Don't clear
14963 reading_partial_symbols.
14964
a88ef40d
TV
149652020-02-24 Tom de Vries <tdevries@suse.de>
14966
14967 PR gdb/25592
14968 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14969
c9af6521
TV
149702020-02-24 Tom de Vries <tdevries@suse.de>
14971
14972 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14973 commands layout next/prev/regs.
14974
5707a07a
TT
149752020-02-22 Tom Tromey <tom@tromey.com>
14976
14977 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14978 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14979
3b0fb49e
TT
149802020-02-22 Tom Tromey <tom@tromey.com>
14981
14982 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14983
283be8bf
TT
149842020-02-22 Tom Tromey <tom@tromey.com>
14985
14986 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14987 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14988 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14989 * tui/tui.c (_initialize_tui): Add usage text.
14990
ca793b96
TT
149912020-02-22 Tom Tromey <tom@tromey.com>
14992
14993 * tui/tui-win.c (tui_set_focus_command)
14994 (tui_set_win_height_command): Use error_no_arg.
14995 (_initialize_tui_win): Update help text.
14996 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14997
432b5c40
TT
149982020-02-22 Tom Tromey <tom@tromey.com>
14999
15000 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15001 * tui/tui-disasm.h (struct tui_disasm_window)
15002 <display_start_addr>: Declare.
15003 * tui/tui-source.h (struct tui_source_window)
15004 <display_start_addr>: Declare.
15005 * tui/tui-winsource.h (struct tui_source_window_base)
15006 <show_source_line, display_start_addr>: New methods.
15007 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15008 Rename and move to protected section.
15009 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15010 (tui_source_window_base::do_erase_source_content): Update.
15011 (tui_source_window_base::show_source_line): Now a method.
15012 (tui_source_window_base::show_source_content)
15013 (tui_source_window_base::tui_source_window_base)
15014 (tui_source_window_base::rerender)
15015 (tui_source_window_base::refill)
15016 (tui_source_window_base::do_scroll_horizontal)
15017 (tui_source_window_base::set_is_exec_point_at)
15018 (tui_source_window_base::update_breakpoint_info)
15019 (tui_source_window_base::update_exec_info): Update.
15020 * tui/tui-source.c (tui_source_window::set_contents)
15021 (tui_source_window::showing_source_p)
15022 (tui_source_window::do_scroll_vertical)
15023 (tui_source_window::location_matches_p)
15024 (tui_source_window::line_is_displayed): Update.
15025 (tui_source_window::display_start_addr): New method.
15026 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15027 (tui_disasm_window::do_scroll_vertical)
15028 (tui_disasm_window::location_matches_p): Update.
15029 (tui_disasm_window::display_start_addr): New method.
15030
01b1af32
TT
150312020-02-22 Tom Tromey <tom@tromey.com>
15032
15033 * NEWS: Add entry for gdb.register_window_type.
15034 * tui/tui-layout.h (window_factory): New typedef.
15035 (tui_register_window): Declare.
15036 * tui/tui-layout.c (saved_tui_windows): New global.
15037 (tui_apply_current_layout): Use it.
15038 (tui_register_window): New function.
15039 * python/python.c (do_start_initialization): Call
15040 gdbpy_initialize_tui.
15041 (python_GdbMethods): Add "register_window_type" function.
15042 * python/python-internal.h (gdbpy_register_tui_window)
15043 (gdbpy_initialize_tui): Declare.
15044 * python/py-tui.c: New file.
15045 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15046
fc96d20b
TT
150472020-02-22 Tom Tromey <tom@tromey.com>
15048
15049 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15050
935c78c0
TT
150512020-02-22 Tom Tromey <tom@tromey.com>
15052
15053 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15054 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15055 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15056 (tui_set_win_focus_to): Move from tui-win.c.
15057
0240c8f1
TT
150582020-02-22 Tom Tromey <tom@tromey.com>
15059
15060 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15061 functions.
15062 (known_window_types): New global.
15063 (tui_get_window_by_name): Reimplement.
15064 (initialize_known_windows): New function.
15065 (validate_window_name): Rewrite.
15066 (_initialize_tui_layout): Call initialize_known_windows.
15067
fdb01f0c
TT
150682020-02-22 Tom Tromey <tom@tromey.com>
15069
15070 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15071 Remove constants.
15072 * tui/tui-winsource.h (struct tui_source_window_base)
15073 <tui_source_window_base>: Remove parameter.
15074 * tui/tui-winsource.c
15075 (tui_source_window_base::tui_source_window_base): Remove
15076 parameter.
15077 (tui_source_window_base::refill): Update.
15078 * tui/tui-stack.h (struct tui_locator_window)
15079 <tui_locator_window>: Update.
15080 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15081 Default the constructor.
15082 * tui/tui-regs.h (struct tui_data_item_window)
15083 <tui_data_item_window>: Default the constructor.
15084 (struct tui_data_window) <tui_data_window>: Likewise.
15085 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15086 Default the constructor.
15087 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15088 Default the constructor.
15089 <type>: Remove.
15090 (struct tui_win_info) <tui_win_info>: Default the constructor.
15091 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15092 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15093 Default the constructor.
15094
865a5aec
TT
150952020-02-22 Tom Tromey <tom@tromey.com>
15096
15097 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15098 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15099 * tui/tui-win.c (tui_resize_all): Don't call
15100 tui_delete_invisible_windows.
15101 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15102 done.
15103 (tui_set_layout): Update.
15104 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15105 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15106 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15107
e098d18c
TT
151082020-02-22 Tom Tromey <tom@tromey.com>
15109
15110 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15111 correctly.
15112
eb9c8874
TT
151132020-02-22 Tom Tromey <tom@tromey.com>
15114
15115 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15116
7eed1a8e
TT
151172020-02-22 Tom Tromey <tom@tromey.com>
15118
15119 * tui/tui-winsource.h (struct tui_source_window_iterator)
15120 <inner_iterator>: New etytypedef.
15121 <tui_source_window_iterator>: Take "end" parameter.
15122 <tui_source_window_iterator>: Take iterator.
15123 <operator*, advance>: Update.
15124 <m_iter>: Change type.
15125 <m_end>: New field.
15126 (struct tui_source_windows) <begin, end>: Update.
15127 * tui/tui-layout.c (tui_windows): New global.
15128 (tui_apply_current_layout): Clear tui_windows.
15129 (tui_layout_window::apply): Update tui_windows.
15130 * tui/tui-data.h (tui_windows): Declare.
15131 (all_tui_windows): Now inline function.
15132 (class tui_window_iterator, struct all_tui_windows): Remove.
15133
7c043ba6
TT
151342020-02-22 Tom Tromey <tom@tromey.com>
15135
15136 PR tui/17850:
15137 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15138 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15139 "height" argument.
15140 (class tui_layout_window) <get_sizes>: Likewise.
15141 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15142 argument.
15143 <get_sizes>: Add "height" argument.
15144 <m_vertical>: New field.
15145 * tui/tui-layout.c (tui_layout_split::clone): Update.
15146 (tui_layout_split::get_sizes): Add "height" argument.
15147 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15148 (tui_new_layout_command): Parse "-horizontal".
15149 (_initialize_tui_layout): Update help string.
15150 (tui_layout_split::specification): Add "-horizontal" when needed.
15151 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15152 argument.
15153 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15154 New methods.
15155
6bc56648
TT
151562020-02-22 Tom Tromey <tom@tromey.com>
15157
15158 * tui/tui-layout.h (enum tui_adjust_result): New.
15159 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15160 (class tui_layout_window) <adjust_size>: Return
15161 tui_adjust_result. Rewrite.
15162 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15163 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15164
c22fef7e
TT
151652020-02-22 Tom Tromey <tom@tromey.com>
15166
15167 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15168 parameter and return types.
15169 (class tui_layout_base) <specification>: Add "depth".
15170 (class tui_layout_window) <specification>: Add "depth".
15171 (class tui_layout_split) <specification>: Add "depth".
15172 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15173 and return types.
15174 (tui_new_layout_command): Parse sub-layouts.
15175 (_initialize_tui_layout): Update help string.
15176 (tui_layout_window::specification): Add "depth".
15177 (add_layout_command): Update.
15178
ee325b61
TT
151792020-02-22 Tom Tromey <tom@tromey.com>
15180
15181 * NEWS: Add "tui new-layout" item.
15182 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15183 Add new-layout command to help text.
15184 (validate_window_name): New function.
15185 (tui_new_layout_command): New function.
15186 (_initialize_tui_layout): Register "new-layout".
15187 (tui_layout_window::specification): New method.
15188 (tui_layout_window::specification): New method.
15189 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15190 method.
15191 (class tui_layout_window) <specification>: New method.
15192 (class tui_layout_split) <specification>: New method.
15193
416eb92d
TT
151942020-02-22 Tom Tromey <tom@tromey.com>
15195
15196 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15197 * tui/tui-win.c (window_name_completer): Update comment.
15198 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15199 Declare method.
15200 (class tui_layout_window) <replace_window>: Likewise.
15201 (class tui_layout_split) <replace_window>: Likewise.
15202 (tui_set_layout): Don't declare.
15203 (tui_set_initial_layout): Declare function.
15204 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15205 (asm_regs_layout): New globals.
15206 (tui_current_layout, show_layout): Remove.
15207 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15208 (find_layout, tui_apply_layout): New function.
15209 (layout_completer): Remove.
15210 (tui_next_layout): Reimplement.
15211 (tui_next_layout_command): New function.
15212 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15213 (tui_regs_layout): Reimplement.
15214 (tui_regs_layout_command): New function.
15215 (extract_display_start_addr): Rewrite.
15216 (next_layout, prev_layout): Remove.
15217 (tui_layout_window::replace_window): New method.
15218 (tui_layout_split::replace_window): New method.
15219 (destroy_layout): New function.
15220 (layout_list): New global.
15221 (add_layout_command): New function.
15222 (initialize_layouts): Update.
15223 (tui_layout_command): New function.
15224 (_initialize_tui_layout): Install "layout" commands.
15225 * tui/tui-data.h (enum tui_layout_type): Remove.
15226 (tui_current_layout): Don't declare.
15227
0dbc2fc7
TT
152282020-02-22 Tom Tromey <tom@tromey.com>
15229
15230 * tui/tui-regs.c (tui_reg_layout): Remove.
15231 (tui_reg_command): Use tui_regs_layout.
15232 * tui/tui-layout.h (tui_reg_command): Declare.
15233 * tui/tui-layout.c (tui_reg_command): New function.
15234
5afe342e
TT
152352020-02-22 Tom Tromey <tom@tromey.com>
15236
15237 * tui/tui.c (tui_rl_delete_other_windows): Call
15238 tui_remove_some_windows.
15239 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15240 Declare method.
15241 (class tui_layout_window) <remove_windows>: New method.
15242 (class tui_layout_split) <remove_windows>: Declare.
15243 (tui_remove_some_windows): Declare.
15244 * tui/tui-layout.c (tui_remove_some_windows): New function.
15245 (tui_layout_split::remove_windows): New method.
15246
427326a8
TT
152472020-02-22 Tom Tromey <tom@tromey.com>
15248
15249 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15250 * tui/tui-layout.h (tui_next_layout): Declare.
15251 * tui/tui-layout.c (tui_next_layout): New function.
15252
3fe12b6d
TT
152532020-02-22 Tom Tromey <tom@tromey.com>
15254
15255 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15256 correct coordinates.
15257
59b8b5d2
TT
152582020-02-22 Tom Tromey <tom@tromey.com>
15259
15260 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15261 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15262 DATA_WIN case.
15263
2a3d458b
TT
152642020-02-22 Tom Tromey <tom@tromey.com>
15265
15266 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15267 TUI_DISASM_WIN, not tui_win_list.
15268
3f0cbb04
TT
152692020-02-22 Tom Tromey <tom@tromey.com>
15270
15271 * valprint.c (generic_val_print_enum_1)
15272 (val_print_type_code_flags): Style member names.
15273 * rust-lang.c (val_print_struct, rust_print_enum)
15274 (rust_print_struct_def, rust_internal_print_type): Style member
15275 names.
15276 * p-valprint.c (pascal_object_print_value_fields): Style member
15277 names. Only call fprintf_symbol_filtered for static members.
15278 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15279 * f-valprint.c (f_val_print): Style member names.
15280 * f-typeprint.c (f_type_print_base): Style member names.
15281 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15282 call fprintf_symbol_filtered for static members.
15283 (cp_print_class_member): Style member names.
15284 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15285 member names.
15286 * ada-valprint.c (ada_print_scalar): Style enum names.
15287 (ada_val_print_enum): Likewise.
15288 * ada-typeprint.c (print_enum_type): Style enum names.
15289
d4d947ae
TT
152902020-02-21 Tom Tromey <tom@tromey.com>
15291
15292 * psympriv.h (struct partial_symtab): Update comment.
15293
e94e944b
TT
152942020-02-21 Tom Tromey <tromey@adacore.com>
15295
15296 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15297 type is CORE_ADDR.
15298
1eb73179
TV
152992020-02-21 Tom de Vries <tdevries@suse.de>
15300
15301 PR gdb/25534
15302 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15303 if dependencies[i]->user != NULL.
15304
4f180d53
AT
153052020-02-21 Ali Tamur <tamur@google.com>
15306
15307 * dwarf2/read.c (dwarf2_name): Add null check.
15308
22b6cd70
TT
153092020-02-20 Tom Tromey <tom@tromey.com>
15310
15311 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15312 ">=", in binary search.
15313 (dwarf2_find_containing_comp_unit): New overload.
15314 (run_test): New self-test.
15315 (_initialize_dwarf2_read): Register new test.
15316
bd0cf5a6
NC
153172020-02-20 Nelson Chu <nelson.chu@sifive.com>
15318
15319 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15320 * riscv-tdep.h: Likewise.
15321 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15322 rv32-only CSR.
15323 * features/riscv/64bit-csr.xml: Regenerated.
15324
3f702acd
SDJ
153252020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15326 Tom Tromey <tom@tromey.com>
15327
15328 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15329 of 'fputc_unfiltered'.
15330 (putchar_unfiltered): Call 'fputc_unfiltered'.
15331 (fputc_unfiltered): Call 'fputs_unfiltered'.
15332
d13c7322
AB
153332020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15334
15335 * config.in: Regenerate.
15336 * configure: Regenerate.
15337 * configure.ac: Add --with-python-libdir option.
15338 * main.c: Use WITH_PYTHON_LIBDIR.
15339
869d8950
TT
153402020-02-19 Tom Tromey <tom@tromey.com>
15341
15342 * symtab.c (general_symbol_info::compute_and_set_names): Use
15343 obstack_strndup. Simplify call to symbol_set_demangled_name.
15344
298e9637
SM
153452020-02-19 Simon Marchi <simon.marchi@efficios.com>
15346
15347 * dwarf2/read.c (allocate_signatured_type_table,
15348 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15349 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15350 Remove objfile parameter, update all callers.
15351
08410482
DE
153522020-02-19 Doug Evans <dje@google.com>
15353
15354 PR rust/25535
15355 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15356 rust_enum_variant calculation.
15357
dfdeeca1
TT
153582020-02-19 Tom Tromey <tromey@adacore.com>
15359
15360 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15361
2ef5453b
TT
153622020-02-19 Tom Tromey <tromey@adacore.com>
15363
15364 * ada-lang.c (cache_symbol): Use obstack_strdup.
15365
9f1528a1
AB
153662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15367
15368 * configure: Regenerate.
15369
d3c22fa8
TT
153702020-02-19 Tom Tromey <tromey@adacore.com>
15371
15372 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15373 NULL check.
15374
bf84f706
MR
153752020-02-19 Maciej W. Rozycki <macro@wdc.com>
15376
15377 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15378
d1c9b20f
AB
153792020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15380
15381 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15382 if GDBSERVER is not defined.
15383 (riscv_tdesc_cache): Likewise, also store const target_desc.
15384 (STATIC_IN_GDB): Define.
15385 (riscv_create_target_description): Update declaration with
15386 STATIC_IN_GDB.
15387 (riscv_lookup_target_description): New function, only define if
15388 GDBSERVER is not defined.
15389 * arch/riscv.h (riscv_create_target_description): Declare only
15390 when GDBSERVER is defined.
15391 (riscv_lookup_target_description): New declaration when GDBSERVER
15392 is not defined.
15393 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15394 (riscv_linux_read_features): ...this, and return
15395 riscv_gdbarch_features instead of target_desc.
15396 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15397 (riscv_linux_read_description): Rename to...
15398 (riscv_linux_read_features): ...this.
15399 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15400 Update to use riscv_gdbarch_features and
15401 riscv_lookup_target_description.
15402 * riscv-tdep.c (riscv_find_default_target_description): Use
15403 riscv_lookup_target_description instead of
15404 riscv_create_target_description.
15405
373d7ac0
SM
154062020-02-18 Simon Marchi <simon.marchi@efficios.com>
15407
15408 * valprint.c (generic_val_print_enum_1): When printing a flag
15409 enum with value 0 and there is no enumerator with value 0, print
15410 just "0" instead of "(unknown: 0x0)".
15411
b29a2df0
SM
154122020-02-18 Simon Marchi <simon.marchi@efficios.com>
15413
15414 * valprint.c (generic_val_print_enum_1): Print unknown part of
15415 flag enum in hex.
15416
6740f0cc
SM
154172020-02-18 Simon Marchi <simon.marchi@efficios.com>
15418
15419 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15420 flag enums to contain duplicate enumerators.
15421 * valprint.c (generic_val_print_enum_1): Update comment.
15422
edd45eb0
SM
154232020-02-18 Simon Marchi <simon.marchi@efficios.com>
15424
15425 * dwarf2/read.c: Include "count-one-bits.h".
15426 (update_enumeration_type_from_children): If an enumerator has
15427 multiple bits set, don't treat the enumeration as a "flag enum".
15428 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15429 of flag enums have 0 or 1 bit set.
15430
6d0cf446
BE
154312020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15432
15433 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15434 conversion.
15435 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15436 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15437 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15438 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15439 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15440
7001c1b7
SM
154412020-02-18 Simon Marchi <simon.marchi@efficios.com>
15442
15443 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15444
fdb61c6c
SM
154452020-02-14 Simon Marchi <simon.marchi@efficios.com>
15446
15447 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15448 displaced_step_closure_up.
15449 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15450 (struct displaced_step_closure_up):
15451 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15452 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15453 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15454 Likewise.
15455 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15456 * gdbarch.c, gdbarch.h: Re-generate.
15457 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15458 displaced_step_closure_up.
15459 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15460 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15461 * infrun.h (displaced_step_closure_up): New type alias.
15462 (struct displaced_step_inferior_state) <step_closure>: Change
15463 type to displaced_step_closure_up.
15464 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15465 displaced_step_closure_up.
15466 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15467
a4a38eb4
TT
154682020-02-14 Tom Tromey <tom@tromey.com>
15469
15470 * minidebug.c (gnu_debug_key): New global.
15471 (find_separate_debug_file_in_section): Use it.
15472
e8217e61
SM
154732020-02-14 Simon Marchi <simon.marchi@efficios.com>
15474
15475 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15476 std::unique_ptr.
15477 * gdbarch.c: Re-generate.
15478 * gdbarch.h: Re-generate.
15479 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15480 change.
15481 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15482 type to std::unique_ptr.
15483 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15484 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15485 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15486 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15487 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15488 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15489 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15490 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15491 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15492
d8d83535
SM
154932020-02-14 Simon Marchi <simon.marchi@efficios.com>
15494
15495 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15496 std::unique_ptr.
15497 (displaced_step_clear): Rename to...
15498 (displaced_step_reset): ... this. Just call displaced->reset ().
15499 (displaced_step_clear_cleanup): Rename to...
15500 (displaced_step_reset_cleanup): ... this.
15501 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15502 (displaced_step_fixup): Likewise.
15503 (resume_1): Likewise.
15504 (handle_inferior_event): Restore child's memory before calling
15505 displaced_step_fixup on the parent.
15506 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15507 to std::unique_ptr.
15508 <step_closure>: Change type to std::unique_ptr.
15509
5f661e03
SM
155102020-02-14 Simon Marchi <simon.marchi@efficios.com>
15511
15512 * arm-tdep.c: Include count-one-bits.h.
15513 (cleanup_block_store_pc): Use count_one_bits.
15514 (cleanup_block_load_pc): Use count_one_bits.
15515 (arm_copy_block_xfer): Use count_one_bits.
15516 (thumb2_copy_block_xfer): Use count_one_bits.
15517 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15518 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15519 (thumb_get_next_pcs_raw): Use count_one_bits.
15520 (arm_get_next_pcs_raw): Use count_one_bits_l.
15521 * arch/arm.c (bitcount): Remove.
15522 * arch/arm.h (bitcount): Remove.
15523
8084e579
TT
155242020-02-14 Tom Tromey <tromey@adacore.com>
15525
15526 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15527 Update.
15528 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15529 * dwarf2/loc.c (call_site_find_chain_1): Return
15530 unique_xmalloc_ptr.
15531 (call_site_find_chain): Likewise.
15532
258bf0ee
RB
155332020-02-14 Richard Biener <rguenther@suse.de>
15534
15535 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15536 on expression with division operators.
15537
f98a8458
AKS
155382020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15539
15540 * MAINTAINERS (Write After Approval): Adding myself.
15541
d1437c0e
TT
155422020-02-12 Tom Tromey <tom@tromey.com>
15543
15544 * event-loop.c (event_data, gdb_event, event_handler_func):
15545 Remove.
15546
3d4560f7
TT
155472020-02-12 Tom Tromey <tom@tromey.com>
15548
15549 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15550 (dwarf2_frame_objfile_data): Add comment.
15551 (find_comp_unit, set_comp_unit): New functions.
15552 (dwarf2_frame_find_fde): Use find_comp_unit.
15553 (dwarf2_build_frame_info): Use set_comp_unit.
15554
21982304
TT
155552020-02-12 Tom Tromey <tom@tromey.com>
15556
15557 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15558 (comp_unit): Don't initialize objfile.
15559 (execute_cfa_program): Add text_offset parameter.
15560 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15561 (dwarf2_frame_cache): Update.
15562 (dwarf2_build_frame_info): Don't set "objfile" member.
15563
4debb237
TT
155642020-02-12 Tom Tromey <tom@tromey.com>
15565
15566 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15567 (decode_frame_entry): Likewise.
15568 (dwarf2_build_frame_info): Update.
15569
0d404d44
TT
155702020-02-12 Tom Tromey <tom@tromey.com>
15571
15572 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15573 (decode_frame_entry_1): Use the comp_unit obstack.
15574
a7a3ae5c
TT
155752020-02-12 Tom Tromey <tom@tromey.com>
15576
15577 * dwarf2/frame.c (struct comp_unit): Add initializers and
15578 constructor.
15579 (dwarf2_frame_objfile_data): Store a comp_unit.
15580 (dwarf2_frame_find_fde): Update.
15581 (dwarf2_build_frame_info): Use "new".
15582
a9d65418
TT
155832020-02-12 Tom Tromey <tom@tromey.com>
15584
15585 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15586 (dwarf2_fde_table): Typedef for std::vector.
15587 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15588 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15589 (decode_frame_entry): Update.
15590 (dwarf2_build_frame_info): Use "new".
15591
7559c217
CB
155922020-02-12 Christian Biesinger <cbiesinger@google.com>
15593
15594 * arm-tdep.c (arm_gdbarch_init): Update.
15595 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15596 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15597 have_neon, is_m>: Change to bool.
15598
aeefc73c
CB
155992020-02-12 Christian Biesinger <cbiesinger@google.com>
15600
15601 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15602
d27b8e5f
TT
156032020-02-12 Tom Tromey <tom@tromey.com>
15604
15605 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15606
cd5900f3
HD
156072020-02-12 Hannes Domani <ssbssa@yahoo.de>
15608
15609 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15610 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15611
f056b22b
TT
156122020-02-11 Tom Tromey <tom@tromey.com>
15613
15614 * psymtab.h: Update comment.
15615
f92ff6b5
TT
156162020-02-11 Tom Tromey <tom@tromey.com>
15617
15618 * gdb_obstack.h (struct auto_obstack): Use
15619 DISABLE_COPY_AND_ASSIGN.
15620
3fd6912b
TT
156212020-02-11 Tom Tromey <tom@tromey.com>
15622
15623 * dwarf2/frame.h (struct objfile): Don't forward declare.
15624
69ed9b74
CB
156252020-02-11 Christian Biesinger <cbiesinger@google.com>
15626
15627 * cris-tdep.c (cris_supply_gregset): Change signature to match
15628 what struct regset expects.
15629 (cris_regset): New struct.
15630 (fetch_core_registers): Remove.
15631 (cris_iterate_over_regset_sections): New function.
15632 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15633 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15634
bda874f6
CB
156352020-02-11 Christian Biesinger <cbiesinger@google.com>
15636
15637 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15638 registers.
15639
754e1564
CB
156402020-02-11 Christian Biesinger <cbiesinger@google.com>
15641
15642 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15643
8ddd8e0e
SM
156442020-02-11 Simon Marchi <simon.marchi@efficios.com>
15645
15646 * configure: Re-generate.
15647
898e7f60
SM
156482020-02-11 Simon Marchi <simon.marchi@efficios.com>
15649
15650 * configure: Re-generate.
15651
58df732b
SM
156522020-02-11 Simon Marchi <simon.marchi@efficios.com>
15653
15654 * acinclude: Update warning.m4 path.
15655 * warning.m4: Move to gdbsupport.
15656
da5bd37e
TT
156572020-02-11 Tom Tromey <tromey@adacore.com>
15658
15659 * remote.c (remote_console_output): Update.
15660 * printcmd.c (printf_command): Update.
15661 * event-loop.c (gdb_wait_for_event): Update.
15662 * linux-nat.c (sigchld_handler): Update.
15663 * remote-sim.c (gdb_os_write_stdout): Update.
15664 (gdb_os_flush_stdout): Update.
15665 (gdb_os_flush_stderr): Update.
15666 (gdb_os_write_stderr): Update.
15667 * exceptions.c (print_exception): Update.
15668 * remote-fileio.c (remote_fileio_func_read): Update.
15669 (remote_fileio_func_write): Update.
15670 * tui/tui.c (tui_enable): Update.
15671 * tui/tui-interp.c (tui_interp::init): Update.
15672 * utils.c (init_page_info): Update.
15673 (putchar_unfiltered, fputc_unfiltered): Update.
15674 (gdb_flush): Update.
15675 (emit_style_escape): Update.
15676 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15677 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15678 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15679 (stderr_file::write): Update.
15680 (stderr_file::puts): Update.
15681 * ui-file.h (ui_file_isatty, ui_file_write)
15682 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15683 (ui_file_puts): Don't declare.
15684
85f0dd3c
TV
156852020-02-10 Tom de Vries <tdevries@suse.de>
15686
15687 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15688 sentinel to char *.
15689
2e927613
TV
156902020-02-09 Tom de Vries <tdevries@suse.de>
15691
15692 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15693 filename if it matches "<artificial>".
15694
6bafc845
HD
156952020-02-09 Hannes Domani <ssbssa@yahoo.de>
15696
15697 * windows-tdep.c (struct enum_value_name): New struct.
15698 (create_enum): New function.
15699 (windows_get_siginfo_type): Create and use enum types.
15700
7928d571
HD
157012020-02-09 Hannes Domani <ssbssa@yahoo.de>
15702
15703 * NEWS: Mention $_siginfo support for Windows.
15704 * windows-nat.c (handle_exception): Set siginfo_er.
15705 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15706 (windows_xfer_siginfo): New function.
15707 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15708 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15709 (init_windows_gdbarch_data): New function.
15710 (get_windows_gdbarch_data): New function.
15711 (windows_get_siginfo_type): New function.
15712 (windows_init_abi): Register windows_get_siginfo_type.
15713 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15714
6751ebae
TT
157152020-02-08 Tom Tromey <tom@tromey.com>
15716
15717 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15718 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15719 <keep>: Declare method.
15720 <m_keep>: Remove member.
15721 <~cutu_reader>: Remove.
15722 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15723 (cutu_reader::cutu_reader): Update.
15724 (cutu_reader::keep): Rename from ~cutu_reader.
15725 (process_psymtab_comp_unit, build_type_psymtabs_1)
15726 (process_skeletonless_type_unit, load_partial_comp_unit)
15727 (load_full_comp_unit, dwarf2_read_addr_index)
15728 (read_signatured_type): Update.
15729
135f5437
TT
157302020-02-08 Tom Tromey <tom@tromey.com>
15731
15732 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15733 "want_partial_unit" parameter.
15734 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15735 Inline check for DW_TAG_partial_unit.
15736 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15737
9f66ff1c
TT
157382020-02-08 Tom Tromey <tom@tromey.com>
15739
15740 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15741 read.c.
15742 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15743 read.c.
15744
c8a7a66f
TT
157452020-02-08 Tom Tromey <tom@tromey.com>
15746
15747 * dwarf2/read.c (read_address): Move to comp-unit.c.
15748 (dwarf2_rnglists_process, dwarf2_ranges_process)
15749 (read_attribute_value, dwarf_decode_lines_1)
15750 (var_decode_location, decode_locdesc): Update.
15751 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15752 read.c. Remove "cu" parameter.
15753 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15754 method.
15755
8266302d
TT
157562020-02-08 Tom Tromey <tom@tromey.com>
15757
15758 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15759 (read_indirect_line_string): Update.
15760 * dwarf2/comp-unit.c (read_offset): Remove.
15761 (read_comp_unit_head): Update.
15762 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15763 method.
15764 (read_offset): Don't declare.
15765
4057dfde
TT
157662020-02-08 Tom Tromey <tom@tromey.com>
15767
15768 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15769 * dwarf2/read.c (struct comp_unit_head): Move to
15770 dwarf2/comp-unit.h.
15771 (enum class rcuh_kind): Move to comp-unit.h.
15772 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15773 (read_comp_unit_head, error_check_comp_unit_head)
15774 (read_and_check_comp_unit_head): Move to comp-unit.c.
15775 (read_offset, dwarf_unit_type_name): Likewise.
15776 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15777 (cutu_reader::cutu_reader, read_call_site_scope)
15778 (find_partial_die, follow_die_offset): Update.
15779 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15780
24aa364d
TT
157812020-02-08 Tom Tromey <tom@tromey.com>
15782
15783 * dwarf2/read.c (read_offset_1): Move to leb.c.
15784 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15785 (dwarf_decode_macro_bytes): Update.
15786 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15787 * dwarf2/leb.h (read_offset): Declare.
15788
2c7d5afc
TT
157892020-02-08 Tom Tromey <tom@tromey.com>
15790
15791 * dwarf2/read.c (dwarf2_section_size): Remove.
15792 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15793 Update.
15794 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15795
4075cb26
TT
157962020-02-08 Tom Tromey <tom@tromey.com>
15797
15798 * dwarf2/read.c (read_initial_length): Move to leb.c.
15799 * dwarf2/leb.h (read_initial_length): Declare.
15800 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15801 handle_nonstd parameter.
15802 * dwarf2/frame.c (read_initial_length): Remove.
15803 (decode_frame_entry_1): Update.
15804
09ba997f
TT
158052020-02-08 Tom Tromey <tom@tromey.com>
15806
15807 * dwarf2/loc.c (dwarf2_find_location_expression)
15808 (dwarf_evaluate_loc_desc::get_tls_address)
15809 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15810 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15811 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15812 (dwarf2_compile_property_to_c)
15813 (dwarf2_loc_desc_get_symbol_read_needs)
15814 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15815 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15816 (loclist_describe_location, loclist_tracepoint_var_ref)
15817 (loclist_generate_c_location): Update.
15818 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15819 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15820 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15821 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15822 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15823 (dwarf2_per_cu_data::addr_size)
15824 (dwarf2_per_cu_data::ref_addr_size)
15825 (dwarf2_per_cu_data::text_offset)
15826 (dwarf2_per_cu_data::addr_type): Now methods.
15827 (per_cu_header_read_in): Make per_cu "const".
15828 (dwarf2_version): Remove.
15829 (dwarf2_per_cu_data::int_type): Now a method.
15830 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15831 (set_die_type, read_array_type, read_subrange_index_type)
15832 (read_tag_string_type, read_subrange_type): Update.
15833 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15834 offset_size, ref_addr_size, text_offset, addr_type, version,
15835 objfile, int_type, addr_sized_int_type>: Declare methods.
15836
96c738c0
TT
158372020-02-08 Tom Tromey <tom@tromey.com>
15838
15839 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15840 Move earlier.
15841
8fdd972c
TT
158422020-02-08 Tom Tromey <tom@tromey.com>
15843
15844 * dwarf2/read.h (dwarf_line_debug): Declare.
15845 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15846 * dwarf2/read.c: Move line_header code to new files.
15847 (dwarf_line_debug): No longer static.
15848 * dwarf2/line-header.c: New file.
15849 * dwarf2/line-header.h: New file.
15850
03075812
TT
158512020-02-08 Tom Tromey <tom@tromey.com>
15852
15853 * dwarf2/read.c (struct line_header) <file_full_name,
15854 file_file_name>: Return unique_xmalloc_ptr.
15855 (line_header::file_file_name): Update.
15856 (line_header::file_full_name): Update.
15857 (dw2_get_file_names_reader): Update.
15858 (macro_start_file): Update.
15859
bb822404
TT
158602020-02-08 Tom Tromey <tom@tromey.com>
15861
15862 * dwarf2/read.c (struct line_header) <file_full_name,
15863 file_file_name>: Declare methods.
15864 (dw2_get_file_names_reader): Update.
15865 (file_file_name): Now a method.
15866 (file_full_name): Likewise.
15867 (macro_start_file): Update.
15868
009b64fc
TT
158692020-02-08 Tom Tromey <tom@tromey.com>
15870
15871 * dwarf2/read.c (dwarf_always_disassemble)
15872 (show_dwarf_always_disassemble): Move to loc.c.
15873 (_initialize_dwarf2_read): Move "always-disassemble" registration
15874 to loc.c.
15875 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15876 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15877 static.
15878 (show_dwarf_always_disassemble): Move from read.c.
15879 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15880
5895093f
TT
158812020-02-08 Tom Tromey <tom@tromey.com>
15882
15883 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15884 (create_quick_file_names_table): Return htab_up.
15885 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15886 Update.
15887 * dwarf2/read.h (struct dwarf2_per_objfile)
15888 <quick_file_names_table>: Now htab_up.
15889
b3b32279
TT
158902020-02-08 Tom Tromey <tom@tromey.com>
15891
15892 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15893
1d33d811
TT
158942020-02-08 Tom Tromey <tom@tromey.com>
15895
15896 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15897 Rewrite.
15898 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15899 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15900 (abbrev_table::abbrev_table): No longer inline.
15901 (ABBREV_HASH_SIZE): Remove.
15902 (abbrev_table::m_abbrevs): Now an htab_up.
15903
86de1d91
TT
159042020-02-08 Tom Tromey <tom@tromey.com>
15905
15906 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15907 (cutu_reader): Update.
15908 (build_type_psymtabs_1): Update.
15909 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15910 (abbrev_table::alloc_abbrev): Update.
15911 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15912 (abbrev_table::read): New static method, renamed from
15913 abbrev_table_read_table.
15914 (abbrev_table::alloc_abbrev)
15915 (abbrev_table::add_abbrev): Now private.
15916 (abbrev_table::abbrev_table): Now private.
15917 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15918
0335378b
TT
159192020-02-08 Tom Tromey <tom@tromey.com>
15920
15921 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15922 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15923 htab_up.
15924
48b490f2
TT
159252020-02-08 Tom Tromey <tom@tromey.com>
15926
15927 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15928 htab_up.
15929 (lookup_dwo_unit_in_dwp): Update.
15930 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15931 on obstack.
15932
bc68fb19
TT
159332020-02-08 Tom Tromey <tom@tromey.com>
15934
15935 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15936 obstack.
15937
d15acc42
TT
159382020-02-08 Tom Tromey <tom@tromey.com>
15939
15940 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15941 line_header_hash.
15942 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15943 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15944 Change type to htab_up.
15945
eaa5fa8b
TT
159462020-02-08 Tom Tromey <tom@tromey.com>
15947
15948 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15949 htab_up. Don't allocate on obstack.
15950 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15951 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15952 Change type to htab_up.
15953
b0b6a987
TT
159542020-02-08 Tom Tromey <tom@tromey.com>
15955
15956 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15957 Change type to htab_up.
15958 * dwarf2/read.c (create_signatured_type_table_from_index)
15959 (create_signatured_type_table_from_debug_names)
15960 (create_all_type_units, add_type_unit)
15961 (lookup_dwo_signatured_type, lookup_signatured_type)
15962 (process_skeletonless_type_unit): Update.
15963 (create_debug_type_hash_table, create_debug_types_hash_table):
15964 Change type of types_htab.
15965 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15966 htab_up. Don't allocate on obstack.
15967 (create_cus_hash_table): Change type of cus_htab parameter.
15968 (struct dwo_file) <cus, tus>: Now htab_up.
15969 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15970 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15971 (queue_and_load_all_dwo_tus): Update.
15972 * dwarf2/index-write.c (write_gdbindex): Update.
15973 (write_debug_names): Update.
15974
39856def
TT
159752020-02-08 Tom Tromey <tom@tromey.com>
15976
15977 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15978 dwarf2/read.c. Remove "next" member. Add constructor ntad
15979 destructor.
15980 (struct dwarf2_per_objfile) <queue>: New member.
15981 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15982 dwarf2/read.h.
15983 (dwarf2_queue, dwarf2_queue_tail): Remove.
15984 (class dwarf2_queue_guard): Add parameter to constructor. Use
15985 DISABLE_COPY_AND_ASSIGN.
15986 <m_per_objfile>: New member.
15987 <~dwarf2_queue_guard>: Rewrite.
15988 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15989 Update.
15990 (~dwarf2_queue_item): New.
15991
3e225074
TT
159922020-02-08 Tom Tromey <tom@tromey.com>
15993
15994 * dwarf2/read.c (struct die_info) <has_children>: New member.
15995 (dw2_get_file_names_reader): Remove has_children.
15996 (dw2_get_file_names): Update.
15997 (read_cutu_die_from_dwo): Remove has_children.
15998 (cutu_reader::init_tu_and_read_dwo_dies)
15999 (cutu_reader::cutu_reader): Update.
16000 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16001 Remove has_children.
16002 (build_type_psymtabs_1, process_skeletonless_type_unit)
16003 (load_partial_comp_unit, load_full_comp_unit): Update.
16004 (create_dwo_cu_reader): Remove has_children.
16005 (create_cus_hash_table, read_die_and_children): Update.
16006 (read_full_die_1,read_full_die): Remove has_children.
16007 (read_signatured_type): Update.
16008 (class cutu_reader) <has_children>: Remove.
16009
82ca8957
TT
160102020-02-08 Tom Tromey <tom@tromey.com>
16011
16012 * dwarf2/expr.c: Rename from dwarf2expr.c.
16013 * dwarf2/expr.h: Rename from dwarf2expr.h.
16014 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16015 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16016 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16017 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16018 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16019 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16020 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16021 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16022 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16023 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16024 * dwarf2/loc.c: Rename from dwarf2loc.c.
16025 * dwarf2/loc.h: Rename from dwarf2loc.h.
16026 * dwarf2/read.c: Rename from dwarf2read.c.
16027 * dwarf2/read.h: Rename from dwarf2read.h.
16028 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16029 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16030 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16031 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16032 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16033 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16034 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16035 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16036 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16037 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16038 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16039 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16040 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16041 Update.
16042 * Makefile.in (COMMON_SFILES): Update.
16043 (HFILES_NO_SRCDIR): Update.
16044
9e35d499
TT
160452020-02-08 Tom Tromey <tom@tromey.com>
16046
16047 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16048 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16049
1eba2311
TT
160502020-02-08 Tom Tromey <tom@tromey.com>
16051
16052 * dwarf2read.h (struct die_info): Don't declare.
16053
e41c2da2
TT
160542020-02-08 Tom Tromey <tom@tromey.com>
16055
16056 * dwarf2read.h (die_info_ptr): Remove typedef.
16057
4fc6c0d5
TT
160582020-02-08 Tom Tromey <tom@tromey.com>
16059
16060 * dwarf2read.c (read_call_site_scope)
16061 (handle_data_member_location, dwarf2_add_member_fn)
16062 (mark_common_block_symbol_computed, read_common_block)
16063 (attr_to_dynamic_prop, partial_die_info::read)
16064 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16065 (dwarf2_symbol_mark_computed, set_die_type): Update.
16066 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16067 method.
16068 (attr_form_is_block): Don't declare.
16069 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16070
cd6c91b4
TT
160712020-02-08 Tom Tromey <tom@tromey.com>
16072
16073 * dwarf2read.c (dwarf2_find_base_address, )
16074 (read_call_site_scope, rust_containing_type)
16075 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16076 (handle_data_member_location, dwarf2_add_member_fn)
16077 (get_alignment, read_structure_type, process_structure_scope)
16078 (mark_common_block_symbol_computed, read_common_block)
16079 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16080 (partial_die_info::read, read_attribute_value, new_symbol)
16081 (lookup_die_type, dwarf2_get_ref_die_offset)
16082 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16083 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16084 (dwarf2_symbol_mark_computed): Update.
16085 * dwarf2/attribute.h (struct attribute) <value_as_address,
16086 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16087 methods.
16088 (value_as_address, attr_form_is_section_offset)
16089 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16090 * dwarf2/attribute.c (attribute::value_as_address)
16091 (attribute::form_is_section_offset, attribute::form_is_constant)
16092 (attribute::form_is_ref): Now methods.
16093
162dce55
TT
160942020-02-08 Tom Tromey <tom@tromey.com>
16095
16096 * dwarf2read.c (struct attribute, DW_STRING)
16097 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16098 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16099 (attr_form_is_block, attr_form_is_section_offset)
16100 (attr_form_is_constant, attr_form_is_ref): Move.
16101 * dwarf2/attribute.h: New file.
16102 * dwarf2/attribute.c: New file, from dwarf2read.c.
16103 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16104
3054dd54
TT
161052020-02-08 Tom Tromey <tom@tromey.com>
16106
16107 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16108 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16109 Move.
16110 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16111 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16112 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16113 abbrev.c.
16114 * dwarf2/abbrev.h: New file.
16115 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16116 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16117
96b79293
TT
161182020-02-08 Tom Tromey <tom@tromey.com>
16119
16120 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16121 (dwarf2_section_size, dwarf2_get_section_info)
16122 (create_signatured_type_table_from_debug_names)
16123 (create_addrmap_from_aranges, read_debug_names_from_section)
16124 (get_gdb_index_contents_from_section, read_comp_unit_head)
16125 (error_check_comp_unit_head, read_abbrev_offset)
16126 (create_debug_type_hash_table, init_cu_die_reader)
16127 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16128 (read_comp_units_from_section, create_cus_hash_table)
16129 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16130 (create_dwp_v2_section, dwarf2_rnglists_process)
16131 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16132 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16133 (read_indirect_string_from_dwz, read_addr_index_1)
16134 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16135 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16136 (fill_in_loclist_baton): Update.
16137 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16138 get_containing_section, get_bfd_owner, get_bfd_section,
16139 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16140 (dwarf2_read_section, get_section_name, get_section_file_name)
16141 (get_containing_section, get_section_bfd_owner)
16142 (get_section_bfd_section, get_section_name, get_section_file_name)
16143 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16144 declare.
16145 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16146 (dwarf2_section_info::get_bfd_owner)
16147 (dwarf2_section_info::get_bfd_section)
16148 (dwarf2_section_info::get_name)
16149 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16150 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16151 (dwarf2_section_info::read): Now methods.
16152 * dwarf-index-write.c (class debug_names): Update.
16153
2c86cff9
TT
161542020-02-08 Tom Tromey <tom@tromey.com>
16155
16156 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16157 Move to dwarf2/section.h.
16158 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16159 (get_section_bfd_section, get_section_name)
16160 (get_section_file_name, get_section_id, get_section_flags)
16161 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16162 dwarf2/section.c.
16163 * dwarf2/section.h: New file.
16164 * dwarf2/section.c: New file, from dwarf2read.c.
16165 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16166
f4382c45
TT
161672020-02-08 Tom Tromey <tom@tromey.com>
16168
16169 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16170 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16171 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16172 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16173 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16174 * dwarf2/leb.h: New file, from dwarf2read.c.
16175 * dwarf2/leb.c: New file, from dwarf2read.c.
16176 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16177 Remove.
16178 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16179 (COMMON_SFILES): Add dwarf2/leb.c.
16180
01840b7a
JB
161812020-02-08 Joel Brobecker <brobecker@adacore.com>
16182
16183 GDB 9.1 released.
16184
dfcb27e4
IB
161852020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16186
16187 PR gdb/25190:
aac66a4c
SM
16188 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16189 * gdb/remote.c (remote_console_output): Update.
16190 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16191 (ui_file_puts): ...this.
16192 * gdb/ui-file.h (ui_file_puts): Add declaration.
16193 * gdb/utils.c (emit_style_escape): Update.
16194 (flush_wrap_buffer): Update.
16195 (fputs_maybe_filtered): Update.
16196 (fputs_unfiltered): Add function.
dfcb27e4 16197
faa17681
IB
161982020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16199
aac66a4c
SM
16200 * gdb/event-loop.c (gdb_wait_for_event): Update.
16201 * gdb/printcmd.c (printf_command): Update.
16202 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16203 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16204 (gdb_os_flush_stderr): Update.
16205 * gdb/remote.c (remote_console_output): Update.
16206 * gdb/ui-file.c (gdb_flush): Rename to...
16207 (ui_file_flush): ...this.
16208 (stderr_file::write): Update.
16209 (stderr_file::puts): Update.
16210 * gdb/ui-file.h (gdb_flush): Rename to...
16211 (ui_file_flush): ...this.
16212 * gdb/utils.c (gdb_flush): Add function.
16213 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16214
5abbbe1d
TT
162152020-02-07 Tom Tromey <tromey@adacore.com>
16216
16217 PR breakpoints/24915:
16218 * source.c (find_and_open_source): Do not check basenames_may_differ.
16219
919adfe8
TT
162202020-02-07 Tom Tromey <tom@tromey.com>
16221
16222 * README: Update gdbserver documentation.
16223 * gdbserver: Move to top level.
16224 * configure.tgt (build_gdbserver): Remove.
16225 * configure.ac: Remove --enable-gdbserver.
16226 * configure: Rebuild.
16227 * Makefile.in (distclean): Don't mention gdbserver.
16228
1d5d29e7
SV
162292020-02-06 Shahab Vahedi <shahab@synopsys.com>
16230
16231 * source-cache.c (source_cache::ensure): Surround
16232 get_plain_source_lines with a try/catch.
16233 (source_cache::get_line_charpos): Get rid of try/catch
16234 and only check for the return value of "ensure".
16235 * tui/tui-source.c (tui_source_window::set_contents):
16236 Simplify "nlines" calculation.
16237
6eb1129c
SV
162382020-02-06 Shahab Vahedi <shahab@synopsys.com>
16239
16240 * MAINTAINERS (Write After Approval): Add myself.
16241
c6a42d11
CB
162422020-02-05 Christian Biesinger <cbiesinger@google.com>
16243
16244 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16245 function call.
16246
c8ecdda6
CB
162472020-02-05 Christian Biesinger <cbiesinger@google.com>
16248
16249 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16250
f6480e70
MR
162512020-02-05 Maciej W. Rozycki <macro@wdc.com>
16252
16253 * nat/riscv-linux-tdesc.h: New file.
16254 * nat/riscv-linux-tdesc.c: New file, taking code from...
16255 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16256 ... here.
16257 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16258 NATDEPFILES.
16259
dcc9fbc6
AB
162602020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16261
16262 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16263 we don't set the fake simulator ptid to the null_ptid.
16264
719546c4
SM
162652020-02-03 Simon Marchi <simon.marchi@efficios.com>
16266
16267 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16268 * gdbthread.h (class thread_info) <resumed>: Likewise.
16269 * infrun.c (resume_1): Likewise.
16270 (proceed): Likewise.
16271 (infrun_thread_stop_requested): Likewise.
16272 (stop_all_threads): Likewise.
16273 (handle_inferior_event): Likewise.
16274 (restart_threads): Likewise.
16275 (finish_step_over): Likewise.
16276 (keep_going_stepped_thread): Likewise.
16277 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16278 (linux_handle_extended_wait): Likewise.
16279 * record-btrace.c (get_thread_current_frame_id): Likewise.
16280 * record-full.c (record_full_wait_1): Likewise.
16281 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16282 * target.c (target_resume): Likewise.
16283 * thread.c (set_running_thread): Likewise.
16284
e409c542
AKS
162852020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16286
16287 * f-valprint.c (f77_print_array_1): Changed datatype of index
16288 variable to LONGEST from int to enable it to contain bound
16289 values correctly.
16290
ee98c0da
MR
162912020-02-03 Maciej W. Rozycki <macro@wdc.com>
16292
16293 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16294 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16295 offsets according to FLEN determined.
16296 (riscv_linux_nat_target::read_description): Determine FLEN
16297 dynamically.
16298 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16299 according to FLEN determined.
16300 (riscv_linux_nat_target::store_registers): Likewise.
16301
aa66aac4
SV
163022020-02-01 Shahab Vahedi <shahab@synopsys.com>
16303
16304 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16305 when reg->group is empty and reggroup is not.
16306
fd9faca8
TT
163072020-01-31 Tom Tromey <tromey@adacore.com>
16308
16309 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16310 Call beneath target's mourn_inferior after unpushing.
16311
42330a68
AB
163122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16313
16314 PR tui/9765
16315 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16316 have enough lines to fill the screen, still return the lowest
16317 address we found.
16318
7a27a45b
AB
163192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16320
16321 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16322 '-', '<', and '>' commands.
16323
c47f70e2
PA
163242020-01-29 Pedro Alves <palves@redhat.com>
16325 Sergio Durigan Junior <sergiodj@redhat.com>
16326
16327 * infcmd.c (construct_inferior_arguments): Assert that
16328 'argc' is greater than 0.
16329
5133a315
LM
163302020-01-29 Luis Machado <luis.machado@linaro.org>
16331
16332 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16333 (BRK_INSN_MASK): Define to 0xd4200000.
16334 (aarch64_program_breakpoint_here_p): New function.
16335 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16336 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16337 breakpoint.c.
16338 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16339 breakpoint.h
16340 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16341 call gdbarch_program_breakpoint_here_p.
16342 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16343 default_program_breakpoint_here_p, changed return type to bool and
16344 simplified.
16345 * breakpoint.h (program_breakpoint_here): Moved prototype to
16346 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16347 return type to bool.
16348 * gdbarch.c: Regenerate.
16349 * gdbarch.h: Regenerate.
16350 * gdbarch.sh (program_breakpoint_here_p): New method.
16351 * infrun.c (handle_signal_stop): Call
16352 gdbarch_program_breakpoint_here_p.
16353
168f8c6b
TT
163542020-01-26 Tom Tromey <tom@tromey.com>
16355
16356 * ctfread.c (struct ctf_fp_info): Reindent.
16357 (_initialize_ctfread): Remove.
16358
128a391f
TT
163592020-01-26 Tom Tromey <tom@tromey.com>
16360
16361 * psymtab.c (partial_map_expand_apply)
16362 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16363 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16364 (psym_print_stats, psym_expand_symtabs_for_function)
16365 (psym_map_symbol_filenames, psym_map_matching_symbols)
16366 (psym_expand_symtabs_matching)
16367 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16368 (maintenance_check_psymtabs): Use new methods.
16369 * psympriv.h (struct partial_symtab) <readin_p,
16370 get_compunit_symtab>: New methods.
16371 <readin, compunit_symtab>: Remove members.
16372 (struct standard_psymtab): New.
16373 (struct legacy_psymtab): Derive from standard_psymtab.
16374 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16375 standard_psymtab.
16376 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16377
0494dbec
TT
163782020-01-26 Tom Tromey <tom@tromey.com>
16379
16380 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16381 read_dependencies. Add assert.
16382 * psymtab.c (partial_symtab::read_dependencies): New method.
16383 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16384 method.
16385 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16386 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16387 read_dependencies.
16388 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16389 Add assert.
16390
8566b89b
TT
163912020-01-26 Tom Tromey <tom@tromey.com>
16392
16393 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16394 Call expand_psymtab.
16395 (xcoff_read_symtab): Call expand_psymtab.
16396 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16397 legacy_expand_psymtab.
16398 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16399 method.
16400 (struct legacy_psymtab) <expand_psymtab>: Implement.
16401 <legacy_expand_psymtab>: New member.
16402 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16403 (parse_partial_symbols): Set legacy_expand_psymtab.
16404 (psymtab_to_symtab_1): Change argument order. Call
16405 expand_psymtab.
16406 (new_psymtab): Set legacy_expand_psymtab.
16407 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16408 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16409 expand_psymtab.
16410 (dwarf2_psymtab::expand_psymtab): Rename from
16411 psymtab_to_symtab_1. Call expand_psymtab.
16412 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16413 (dbx_end_psymtab): Likewise.
16414 (dbx_psymtab_to_symtab_1): Change argument order. Call
16415 expand_psymtab.
16416 (dbx_read_symtab): Call expand_psymtab.
16417 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16418 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16419 (ctf_psymtab::read_symtab): Call expand_psymtab.
16420
077cbab2
TT
164212020-01-26 Tom Tromey <tom@tromey.com>
16422
16423 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16424 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16425 messages.
16426 * mdebugread.c (mdebug_read_symtab): Remove prints.
16427 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16428 assert.
16429 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16430
891813be
TT
164312020-01-26 Tom Tromey <tom@tromey.com>
16432
16433 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16434 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16435 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16436 legacy_symtab.
16437 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16438 * psymtab.c (psymtab_to_symtab): Call method.
16439 (dump_psymtab): Update.
16440 * psympriv.h (struct partial_symtab): Add virtual destructor.
16441 <read_symtab>: New method.
16442 (struct legacy_symtab): New.
16443 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16444 (struct pst_map) <pst>: Now a legacy_psymtab.
16445 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16446 (new_psymtab): Use legacy_psymtab.
16447 * dwarf2read.h (struct dwarf2_psymtab): New.
16448 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16449 * dwarf2read.c (dwarf2_create_include_psymtab)
16450 (dwarf2_build_include_psymtabs, create_type_unit_group)
16451 (create_partial_symtab, process_psymtab_comp_unit_reader)
16452 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16453 (set_partial_user): Use dwarf2_psymtab.
16454 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16455 (psymtab_to_symtab_1, process_full_comp_unit)
16456 (process_full_type_unit, dwarf2_ranges_read)
16457 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16458 (dwarf_decode_lines): Use dwarf2_psymtab.
16459 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16460 (add_address_entry_worker, write_one_signatured_type)
16461 (recursively_count_psymbols, recursively_write_psymbols)
16462 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16463 (write_debug_names): Likewise.
16464 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16465 <pst>: Now a legacy_psymtab.
16466 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16467 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16468 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16469 * ctfread.c (struct ctf_psymtab): New.
16470 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16471 ctf_psymtab.
16472 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16473 (create_partial_symtab): Return a ctf_psymtab.
16474 (scan_partial_symbols): Update.
16475
c3693a1d
TT
164762020-01-26 Tom Tromey <tom@tromey.com>
16477
16478 * xcoffread.c (xcoff_start_psymtab): Use new.
16479 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16480 renamed from start_psymtab_common.
16481 * psympriv.h (struct partial_symtab): Add new constructor.
16482 (start_psymtab_common): Don't declare.
16483 * mdebugread.c (parse_partial_symbols): Use new.
16484 * dwarf2read.c (create_partial_symtab): Use new.
16485 * dbxread.c (start_psymtab): Use new.
16486 * ctfread.c (create_partial_symtab): Use new.
16487
32caafd0
TT
164882020-01-26 Tom Tromey <tom@tromey.com>
16489
16490 * xcoffread.c (xcoff_end_psymtab): Use new.
16491 * psymtab.c (start_psymtab_common): Use new.
16492 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16493 Update.
16494 * psympriv.h (struct partial_symtab): Add parameters to
16495 constructor. Don't inline.
16496 (allocate_psymtab): Don't declare.
16497 * mdebugread.c (new_psymtab): Use new.
16498 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16499 * dbxread.c (dbx_end_psymtab): Use new.
16500
abaa2f23
TT
165012020-01-26 Tom Tromey <tom@tromey.com>
16502
16503 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16504 allocate_psymtab. Update documentation.
16505 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16506 allocate_psymtab. Do not use new.
16507 (allocate_psymtab): Use new. Update.
16508
6d94535f
TT
165092020-01-26 Tom Tromey <tom@tromey.com>
16510
16511 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16512 * psymtab.c (psym_print_stats): Update.
16513 * psympriv.h (struct partial_symtab) <readin,
16514 psymtabs_addrmap_supported, anonymous>: Now bool.
16515 * mdebugread.c (psymtab_to_symtab_1): Update.
16516 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16517 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16518 (process_full_comp_unit, process_full_type_unit): Update.
16519 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16520 * ctfread.c (psymtab_to_symtab): Update.
16521
6f17252b
TT
165222020-01-26 Tom Tromey <tom@tromey.com>
16523
16524 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16525 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16526 * psymtab.c (psymtab_storage): Delete psymtabs.
16527 (psymtab_storage::allocate_psymtab): Use new.
16528 (psymtab_storage::discard_psymtab): Use delete.
16529 * psympriv.h (struct partial_symtab): Add constructor and
16530 initializers.
16531
f6f1cebc
TT
165322020-01-26 Tom Tromey <tom@tromey.com>
16533
16534 * machoread.c: Do not include psympriv.h.
16535
e47e48f6
PW
165362020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16537
16538 * NEWS: Mention the new option and the set/show commands.
16539
a2fedca9
PW
165402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16541
16542 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16543 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16544 (validate_exec_file): New variables, enums, functions.
16545 (exec_file_locate_attach, print_section_info): Style the filenames.
16546 (_initialize_exec): Install show_exec_file_mismatch_command and
16547 set_exec_file_mismatch_command.
16548 * gdbcore.h (validate_exec_file): Declare.
16549 * infcmd.c (attach_command): Call validate_exec_file.
16550 * remote.c ( remote_target::remote_add_inferior): Likewise.
16551
7ffa82e1
AB
165522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16553
16554 * frame.c (find_frame_sal): Move call to get_next_frame into more
16555 inner scope.
16556 * inline-frame.c (inilne_state) <inline_state>: Update argument
16557 types.
16558 (inilne_state) <skipped_symbol>: Rename to...
16559 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16560 (skip_inline_frames): Build vector of skipped symbols and use this
16561 to reate the inline_state.
16562 (inline_skipped_symbol): Add a comment and some assertions, fetch
16563 skipped symbol from the list.
16564
3d92a3e3
AB
165652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16566
16567 * buildsym.c (lte_is_less_than): Delete.
16568 (buildsym_compunit::end_symtab_with_blockvector): Create local
16569 lambda function to sort line table entries, and use
16570 std::stable_sort instead of std::sort.
16571 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16572 markers when looking for a previous line.
16573
94a72be7
AB
165742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16575
16576 * dwarf2read.c (lnp_state_machine::record_line): Include
16577 end_sequence parameter in debug print out. Record the line if we
16578 are at an end_sequence marker even if it's not the start of a
16579 statement.
16580 * symmisc.c (maintenance_print_one_line_table): Print end of
16581 sequence markers with 'END' not '0'.
16582
53af73bf
PA
165832020-01-24 Pedro Alves <palves@redhat.com>
16584
16585 PR gdb/25410
16586 * thread.c (scoped_restore_current_thread::restore): Use
16587 switch_to_inferior_no_thread.
16588 * exec.c: Include "progspace-and-thread.h".
16589 (add_target_sections, remove_target_sections):
16590 scoped_restore_current_pspace_and_thread instead of
16591 scoped_restore_current_thread.
16592 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16593 and aspace to the inferior before calling clone_program_space.
16594 Remove stale comment.
16595
3050c6f4
CB
165962020-01-24 Christian Biesinger <cbiesinger@google.com>
16597
16598 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16599 (arm_netbsd_nat_target::fetch_registers): ...this.
16600 (arm_nbsd_nat_target::store_registers): Rename to...
16601 (arm_netbsd_nat_target::store_registers): ...this.
16602
73685c7e
CB
166032020-01-24 Christian Biesinger <cbiesinger@google.com>
16604
16605 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16606 register_t.
16607
89203d40
CB
166082020-01-24 Christian Biesinger <cbiesinger@google.com>
16609
16610 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16611 Update comment.
16612 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16613 Likewise.
16614 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16615 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16616 the correct replacement (iterate_over_regset_sections).
16617 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16618 Update comment.
16619
1ba1ac88
AB
166202020-01-24 Graham Markall <graham.markall@embecosm.com>
16621
16622 PR gdb/23718
16623 * gdb/python/python.c (execute_gdb_command): Call
16624 async_enable_stdin in catch block.
16625
f3364a6d
AB
166262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16627
16628 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16629 SWITCH_THRU_ALL_UIS.
16630
733d0a67
AB
166312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16632
16633 PR tui/9765
16634 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16635 comment, add extra parameter, and update to store previous symbol
16636 when appropriate.
16637 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16638 add extra parameter.
16639 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16640 remove unneeded parameter, add try/catch around gdb_print_insn,
16641 rewrite to add items to asm_lines vector.
16642 (tui_find_backward_disassembly_start_address): New function.
16643 (tui_find_disassembly_address): Updated throughout.
16644 (tui_disasm_window::set_contents): Update for changes to
16645 tui_disassemble.
16646 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16647 number of lines to scroll.
16648
b3b3bada
SM
166492020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16650
16651 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16652 (SECT_OFF_DATA): Likewise.
16653 (SECT_OFF_RODATA): Likewise.
16654 (SECT_OFF_TEXT): Likewise.
16655 (SECT_OFF_BSS): Likewise.
16656 (struct objfile) <text_section_offset, data_section_offset>: New
16657 methods.
16658 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16659 objfile::text_section_offset.
16660 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16661 * coffread.c (coff_symtab_read): Likewise.
16662 (enter_linenos): Likewise.
16663 (process_coff_symbol): Likewise.
16664 * ctfread.c (get_objfile_text_range): Likewise.
16665 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16666 Use objfile::data_section_offset.
16667 * dwarf2-frame.c (execute_cfa_program): Use
16668 objfile::text_section_offset.
16669 (dwarf2_frame_find_fde): Likewise.
16670 * dwarf2read.c (create_addrmap_from_index): Likewise.
16671 (create_addrmap_from_aranges): Likewise.
16672 (dw2_find_pc_sect_compunit_symtab): Likewise.
16673 (process_psymtab_comp_unit_reader): Likewise.
16674 (add_partial_symbol): Likewise.
16675 (add_partial_subprogram): Likewise.
16676 (process_full_comp_unit): Likewise.
16677 (read_file_scope): Likewise.
16678 (read_func_scope): Likewise.
16679 (read_lexical_block_scope): Likewise.
16680 (read_call_site_scope): Likewise.
16681 (dwarf2_rnglists_process): Likewise.
16682 (dwarf2_ranges_process): Likewise.
16683 (dwarf2_ranges_read): Likewise.
16684 (dwarf_decode_lines_1): Likewise.
16685 (new_symbol): Likewise.
16686 (dwarf2_fetch_die_loc_sect_off): Likewise.
16687 (dwarf2_per_cu_text_offset): Likewise.
16688 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16689 * hppa-tdep.c (read_unwind_info): Likewise.
16690 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16691 * psympriv.h (struct partial_symtab): Likewise.
16692 * psymtab.c (find_pc_sect_psymtab): Likewise.
16693 * solib-svr4.c (enable_break): Likewise.
16694 * stap-probe.c (relocate_address): Use
16695 objfile::data_section_offset.
16696 * xcoffread.c (enter_line_range): Use
16697 objfile::text_section_offset.
16698 (read_xcoff_symtab): Likewise.
16699
ab53f382
SM
167002020-01-23 Simon Marchi <simon.marchi@efficios.com>
16701
16702 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16703 declaration to narrower scopes.
16704
e7eee665
SM
167052020-01-23 Simon Marchi <simon.marchi@efficios.com>
16706
16707 * darwin-nat.h (struct darwin_exception_msg, enum
16708 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16709 Move up.
16710 (class darwin_nat_target) <wait_1, check_new_threads,
16711 decode_exception_message, decode_message, stop_inferior,
16712 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16713 * darwin-nat.c (darwin_check_new_threads): Rename to...
16714 (darwin_nat_target::check_new_threads): ... this.
16715 (darwin_suspend_inferior_it): Remove.
16716 (darwin_decode_exception_message): Rename to...
16717 (darwin_nat_target::decode_exception_message): ... this.
16718 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16719 (darwin_decode_message): Rename to...
16720 (darwin_nat_target::decode_message): ... this.
16721 (cancel_breakpoint): Rename to...
16722 (darwin_nat_target::cancel_breakpoint): ... this.
16723 (darwin_wait): Rename to...
16724 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16725 instead of iterate_over_inferiors.
16726 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16727 (darwin_stop_inferior): Rename to...
16728 (darwin_nat_target::stop_inferior): ... this.
16729 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16730 (darwin_init_thread_list): Rename to...
16731 (darwin_nat_target::init_thread_list): ... this.
16732 (darwin_ptrace_him): Rename to...
16733 (darwin_nat_target::ptrace_him): ... this.
16734 (darwin_nat_target::create_inferior): Pass lambda function to
16735 fork_inferior.
16736 (darwin_nat_target::detach): Call stop_inferior instead of
16737 darwin_stop_inferior.
16738 * fork-inferior.h (fork_inferior): Change init_trace_fun
16739 parameter to gdb::function_view.
16740 * fork-inferior.c (fork_inferior): Likewise.
16741
c162ed3e
HD
167422020-01-23 Hannes Domani <ssbssa@yahoo.de>
16743
16744 * i386-cygwin-tdep.c (core_process_module_section): Update.
16745 * windows-nat.c (struct lm_info_windows): Add text_offset.
16746 (windows_xfer_shared_libraries): Update.
16747 * windows-tdep.c (windows_xfer_shared_library):
16748 Add text_offset_cached argument.
16749 * windows-tdep.h (windows_xfer_shared_library): Update.
16750
a1237872
SM
167512020-01-21 Simon Marchi <simon.marchi@efficios.com>
16752
16753 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16754
b3ee6dd9
SM
167552020-01-21 Simon Marchi <simon.marchi@efficios.com>
16756
16757 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16758 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16759 replace with range-based for.
16760 (gdbsim_interrupt_inferior): Remove.
16761 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16762 with a range-based for. Inline code from
16763 gdbsim_interrupt_inferior.
16764
f9fac3c8
SM
167652020-01-21 Simon Marchi <simon.marchi@efficios.com>
16766
16767 * infrun.c (proceed): Fix indentation.
16768
f6474de9
TT
167692020-01-21 Tom Tromey <tromey@adacore.com>
16770
16771 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16772 * python/python.c (python_extension_ops): Update.
16773 (gdbpy_colorize): New function.
16774 * python/lib/gdb/__init__.py (colorize): New function.
16775 * extension.h (ext_lang_colorize): Declare.
16776 * extension.c (ext_lang_colorize): New function.
16777 * extension-priv.h (struct extension_language_ops) <colorize>: New
16778 member.
16779 * cli/cli-style.c (_initialize_cli_style): Update help text.
16780
f0c702d4
LM
167812020-01-21 Luis Machado <luis.machado@linaro.org>
16782
16783 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16784 <cond>: Change type to bool.
16785 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16786 (aarch64_displaced_step_cb): Likewise.
16787 (aarch64_displaced_step_tb): Likewise.
16788
1ab139e5
LM
167892020-01-21 Luis Machado <luis.machado@linaro.org>
16790
16791 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16792 output.
16793
0c271889
LM
167942020-01-21 Luis Machado <luis.machado@linaro.org>
16795
16796 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16797 <pc_adjust>: Adjust the documentation.
16798 (aarch64_displaced_step_fixup): Check if PC really moved before
16799 adjusting it.
16800
4d89c1c7
TT
168012020-01-19 Tom Tromey <tom@tromey.com>
16802
16803 * disasm.c (~gdb_disassembler): New destructor.
16804 (gdb_buffered_insn_length): Call disassemble_free_target.
16805 * disasm.h (class gdb_disassembler): Declare destructor. Use
16806 DISABLE_COPY_AND_ASSIGN.
16807
c0ab21c2
TT
168082020-01-19 Tom Tromey <tom@tromey.com>
16809
16810 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16811 (die_reader_func_ftype): Remove.
16812 (cutu_reader): New class.
16813 (dw2_get_file_names_reader): Remove "data" parameter.
16814 (dw2_get_file_names): Use cutu_reader.
16815 (create_debug_type_hash_table): Update.
16816 (read_cutu_die_from_dwo): Update comment.
16817 (lookup_dwo_unit): Add dwo_name parameter.
16818 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16819 die_reader_func_ftype and data parameters.
16820 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16821 Remove die_reader_func_ftype and data parameters.
16822 (~cutu_reader): New; from init_cutu_and_read_dies.
16823 (cutu_reader::cutu_reader): Rename from
16824 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16825 and data parameters.
16826 (init_cutu_and_read_dies_simple): Remove.
16827 (struct process_psymtab_comp_unit_data): Remove.
16828 (process_psymtab_comp_unit_reader): Remove data parameter; add
16829 want_partial_unit and pretend_language parameters.
16830 (process_psymtab_comp_unit): Use cutu_reader.
16831 (build_type_psymtabs_reader): Remove data parameter.
16832 (build_type_psymtabs_1): Use cutu_reader.
16833 (process_skeletonless_type_unit): Likewise.
16834 (load_partial_comp_unit_reader): Remove.
16835 (load_partial_comp_unit): Use cutu_reader.
16836 (load_full_comp_unit_reader): Remove.
16837 (load_full_comp_unit): Use cutu_reader.
16838 (struct create_dwo_cu_data): Remove.
16839 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16840 dwo_unit parameters.
16841 (create_cus_hash_table): Use cutu_reader.
16842 (struct dwarf2_read_addr_index_data): Remove.
16843 (dwarf2_read_addr_index_reader): Remove.
16844 (dwarf2_read_addr_index): Use cutu_reader.
16845 (read_signatured_type_reader): Remove.
16846 (read_signatured_type): Use cutu_reader.
16847
45bbae5c
TT
168482020-01-19 Tom Tromey <tom@tromey.com>
16849
16850 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16851 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16852 (tui_wrefresh): Declare.
16853 * tui/tui-wingeneral.c (suppress_output): New global.
16854 (tui_suppress_output, ~tui_suppress_output): New constructor and
16855 destructor.
16856 (tui_wrefresh): New function.
16857 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16858 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16859 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16860 method.
16861 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16862 tui_wrefresh.
16863 (tui_data_window::no_refresh): New method.
16864 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16865 (tui_reg_command): Use tui_suppress_output
16866 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16867 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16868 method.
16869 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16870
4f13c1c0
TT
168712020-01-19 Tom Tromey <tom@tromey.com>
16872
16873 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16874 Handle case where symtab is null.
16875
fa47e446
SM
168762020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16877
16878 * linux-fork.c (one_fork_p): Simplify.
16879
26f42329
SM
168802020-01-17 Simon Marchi <simon.marchi@efficios.com>
16881
16882 * top.c (struct qt_args): Remove.
16883 (kill_or_detach): Change return type to void, replace `void *`
16884 parameter with a proper one.
16885 (print_inferior_quit_action): Likewise.
16886 (quit_confirm): Use range-based for loop to iterate over inferiors.
16887 (quit_force): Likewise.
16888
a9ac81b1
SM
168892020-01-17 Simon Marchi <simon.marchi@efficios.com>
16890
16891 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16892 `void *` parameter with proper parameters.
16893 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16894 (print_one_inferior): Change return type to void, replace `void *`
16895 parameter with proper parameters.
16896 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16897 inferiors.
16898 (get_other_inferior): Remove.
16899 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16900 inferiors.
16901
788eca49
SM
169022020-01-17 Simon Marchi <simon.marchi@efficios.com>
16903
16904 * mi/mi-interp.c (report_initial_inferior): Remove.
16905 (mi_interp::init): Use range-based for to iterate over inferiors.
16906
d9bc85b6
SM
169072020-01-17 Simon Marchi <simon.marchi@efficios.com>
16908
16909 * python/py-inferior.c (build_inferior_list): Remove.
16910 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16911
40c94099
CB
169122020-01-16 Christian Biesinger <cbiesinger@google.com>
16913
16914 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16915 (btrace_stitch_trace): Likewise.
16916 * charset.c (intermediate_encoding): Likewise (vaild).
16917 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16918 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16919 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16920
e0cdfe3c
HD
169212020-01-16 Hannes Domani <ssbssa@yahoo.de>
16922
16923 * windows-tdep.c (windows_get_tlb_type):
16924 Add rtl_user_process_parameters type.
16925
790f1718 169262020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16927 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16928
16929 PR build/24805
16930 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16931 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16932 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16933 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16934 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16935 (ps_plog): Redeclare exported functions with default visibility.
16936
3112ed97
NA
169372020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16938
16939 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16940 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16941
8dc3273e
SM
169422020-01-15 Simon Marchi <simon.marchi@efficios.com>
16943
16944 * infcmd.c (post_create_inferior): Use get_thread_regcache
16945 instead of get_current_regcache.
16946
ff47f4f0
TT
169472020-01-14 Tom Tromey <tom@tromey.com>
16948
16949 PR symtab/12535:
16950 * python/python.c (gdbpy_decode_line): Treat empty string the same
16951 as no argument.
16952
975f45b7
TT
169532020-01-14 Tom Tromey <tom@tromey.com>
16954
16955 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16956
25e57356
TT
169572020-01-14 Tom Tromey <tom@tromey.com>
16958
16959 * nat/linux-btrace.c: Don't include <config.h>.
16960 * nat/linux-ptrace.c: Don't include <config.h>.
16961 * nat/x86-linux-dregs.c: Don't include <config.h>.
16962
05ea2a05
TT
169632020-01-14 Tom Tromey <tom@tromey.com>
16964
16965 * configure: Rebuild.
16966 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16967
01027315
TT
169682020-01-14 Tom Tromey <tom@tromey.com>
16969
16970 * nat/x86-linux-dregs.c: Include configh.h.
16971 * nat/linux-ptrace.c: Include configh.h.
16972 * nat/linux-btrace.c: Include configh.h.
16973 * defs.h: Include config.h, bfd.h.
16974 * configure.ac: Don't source common.host.
16975 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16976 * configure: Rebuild.
16977 * acinclude.m4: Update path.
16978 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16979 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16980 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16981 (CLIBS): Add LIBSUPPORT.
16982 (CDEPS): Likewise.
16983 (COMMON_SFILES): Remove gdbsupport files.
16984 (HFILES_NO_SRCDIR): Likewise.
16985 (stamp-version): Update path to create-version.sh.
16986 (ALLDEPFILES): Remove gdbsupport files.
16987
b2ceabe8
TT
169882020-01-14 Tom Tromey <tom@tromey.com>
16989
16990 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16991 USE_WIN32API when needed.
16992 * configure.ac (USE_WIN32API): Don't define.
16993 (WIN32LIBS): Use WIN32APILIBS.
16994 * configure: Rebuild.
16995
25c51f71
TT
169962020-01-14 Tom Tromey <tom@tromey.com>
16997
16998 * configure: Rebuild.
16999 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17000
717c684d
BE
170012020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17002
17003 * skip.c (skip_function_command): Make skip w/o arguments use the
17004 name of the inlined function if pc is inside any inlined function.
17005
7da6a5b9
LM
170062020-01-14 Luis Machado <luis.machado@linaro.org>
17007
17008 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17009 * infrun.c (resume_1): Likewise.
17010 (handle_inferior_event): Remove stale comment.
17011 * linux-nat.c (linux_nat_target::resume): Update comments.
17012 (save_stop_reason): Likewise.
17013 (linux_nat_filter_event): Likewise.
17014 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17015
44e4c775
AB
170162020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17017
17018 * elfread.c (record_minimal_symbol): Set section index to 0 for
17019 non-allocatable sections.
17020
18a8505e
AT
17021
170222020-01-13 Ali Tamur <tamur@google.com>
17023
17024 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17025 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17026 to gdb::optional. Update comments.
17027 (dwo_file): Update comments.
17028 (read_attribute): Update API to take an additional out parameter,
17029 need_reprocess. This is used to mark attributes that need other
17030 attributes (e.g. str_offsets_base) for correct computation which may not
17031 have been read yet.
17032 (read_attribute_reprocess): New function declaration.
17033 (read_addr_index): Likewise.
17034 (read_dwo_str_index): Likewise.
17035 (read_stub_str_index): Likewise.
17036 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17037 (lookup_addr_base): New function definition.
17038 (lookup_ranges_base): Likewise.
17039 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17040 lookup_ranges_base.
17041 (init_cutu_and_read_dies): Update comments.
17042 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17043 unit. This is used to inherit parent's str_offsets_base and addr_base.
17044 Update comments.
17045 (init_cutu_and_read_dies_simple): Reflect API changes.
17046 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17047 (create_cus_hash_table): Change API to take parent compile unit.
17048 Reflect API changes.
17049 (open_and_init_dwo_file): Reflect API changes.
17050 (dwarf2_get_pc_bounds): Update comments.
17051 (dwarf2_record_block_ranges): Likewise.
17052 (read_full_die_1): Change implementation to reprocess attributes that
17053 need str_offsets_base and addr_base.
17054 (partial_die_info::read): Likewise.
17055 (read_attribute_reprocess): New function definition.
17056 (read_attribute_value): Change API to take an additional out parameter,
17057 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17058 when a non-dwo compile unit has index based attributes.
17059 (read_attribute): Reflect API changes.
17060 (read_addr_index_1): Reflect API changes. Update comments.
17061 (dwarf2_read_addr_index_data): Reflect API changes.
17062 (dwarf2_read_addr_index): Likewise.
17063 (read_str_index): Change API and implementation. This becomes a helper
17064 to be used by the new string index related methods. Update error
17065 message and comments.
17066 (read_dwo_str_index): New function definition.
17067 (read_stub_str_index): Likewise.
17068 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17069 * symfile.h (dwarf2_debug_sections): Likewise.
17070 * xcoffread.c (dwarf2_debug_sections): Likewise.
17071
0cac9354
SM
170722020-01-13 Simon Marchi <simon.marchi@efficios.com>
17073
17074 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17075 core_reg_sect type to gdb_byte *.
17076 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17077 * cris-tdep.c (fetch_core_registers): Likewise.
17078 * corelow.c (core_target::get_core_register_section): Change
17079 type of `contents` to gdb::byte_vector.
17080
9a6d629c
AB
170812020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17082
17083 * tui/tui-wingeneral.c (box_win): Position the title in the center
17084 of the border.
17085
d8b2f9e3
SM
170862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17087
17088 * corelow.c (core_target::get_core_register_section): Use
17089 std::vector instead of alloca.
17090
bb564c58
SM
170912020-01-13 Simon Marchi <simon.marchi@efficios.com>
17092
17093 * warning.m4: Add -Wmissing-declarations to build_warnings.
17094 * configure: Re-generate.
17095
6b366111
SM
170962020-01-13 Simon Marchi <simon.marchi@efficios.com>
17097
17098 * python/python.c (init__gdb_module): Add declaration.
17099
6c265988
SM
171002020-01-13 Simon Marchi <simon.marchi@efficios.com>
17101
17102 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17103 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17104 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17105 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17106 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17107 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17108 * ada-exp.y (_initialize_ada_exp): Add declaration.
17109 * ada-lang.c (_initialize_ada_language): Add declaration.
17110 * ada-tasks.c (_initialize_tasks): Add declaration.
17111 * agent.c (_initialize_agent): Add declaration.
17112 * aix-thread.c (_initialize_aix_thread): Add declaration.
17113 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17114 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17115 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17116 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17117 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17118 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17119 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17120 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17121 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17122 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17123 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17124 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17125 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17126 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17127 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17128 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17129 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17130 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17131 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17132 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17133 * annotate.c (_initialize_annotate): Add declaration.
17134 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17135 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17136 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17137 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17138 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17139 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17140 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17141 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17142 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17143 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17144 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17145 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17146 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17147 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17148 * auto-load.c (_initialize_auto_load): Add declaration.
17149 * auxv.c (_initialize_auxv): Add declaration.
17150 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17151 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17152 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17153 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17154 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17155 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17156 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17157 * breakpoint.c (_initialize_breakpoint): Add declaration.
17158 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17159 * btrace.c (_initialize_btrace): Add declaration.
17160 * charset.c (_initialize_charset): Add declaration.
17161 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17162 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17163 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17164 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17165 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17166 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17167 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17168 * coffread.c (_initialize_coffread): Add declaration.
17169 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17170 * compile/compile.c (_initialize_compile): Add declaration.
17171 * complaints.c (_initialize_complaints): Add declaration.
17172 * completer.c (_initialize_completer): Add declaration.
17173 * copying.c (_initialize_copying): Add declaration.
17174 * corefile.c (_initialize_core): Add declaration.
17175 * corelow.c (_initialize_corelow): Add declaration.
17176 * cp-abi.c (_initialize_cp_abi): Add declaration.
17177 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17178 * cp-support.c (_initialize_cp_support): Add declaration.
17179 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17180 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17181 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17182 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17183 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17184 * ctfread.c (_initialize_ctfread): Add declaration.
17185 * d-lang.c (_initialize_d_language): Add declaration.
17186 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17187 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17188 * dbxread.c (_initialize_dbxread): Add declaration.
17189 * dcache.c (_initialize_dcache): Add declaration.
17190 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17191 * disasm.c (_initialize_disasm): Add declaration.
17192 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17193 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17194 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17195 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17196 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17197 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17198 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17199 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17200 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17201 * elfread.c (_initialize_elfread): Add declaration.
17202 * exec.c (_initialize_exec): Add declaration.
17203 * extension.c (_initialize_extension): Add declaration.
17204 * f-lang.c (_initialize_f_language): Add declaration.
17205 * f-valprint.c (_initialize_f_valprint): Add declaration.
17206 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17207 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17208 * filesystem.c (_initialize_filesystem): Add declaration.
17209 * findcmd.c (_initialize_mem_search): Add declaration.
17210 * findvar.c (_initialize_findvar): Add declaration.
17211 * fork-child.c (_initialize_fork_child): Add declaration.
17212 * frame-base.c (_initialize_frame_base): Add declaration.
17213 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17214 * frame.c (_initialize_frame): Add declaration.
17215 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17216 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17217 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17218 * gcore.c (_initialize_gcore): Add declaration.
17219 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17220 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17221 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17222 * gdbarch.c (_initialize_gdbarch): Add declaration.
17223 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17224 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17225 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17226 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17227 * go-lang.c (_initialize_go_language): Add declaration.
17228 * go32-nat.c (_initialize_go32_nat): Add declaration.
17229 * guile/guile.c (_initialize_guile): Add declaration.
17230 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17231 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17232 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17233 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17234 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17235 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17236 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17237 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17238 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17239 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17240 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17241 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17242 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17243 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17244 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17245 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17246 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17247 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17248 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17249 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17250 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17251 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17252 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17253 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17254 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17255 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17256 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17257 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17258 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17259 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17260 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17261 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17262 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17263 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17264 * infcall.c (_initialize_infcall): Add declaration.
17265 * infcmd.c (_initialize_infcmd): Add declaration.
17266 * inflow.c (_initialize_inflow): Add declaration.
17267 * infrun.c (_initialize_infrun): Add declaration.
17268 * interps.c (_initialize_interpreter): Add declaration.
17269 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17270 * jit.c (_initialize_jit): Add declaration.
17271 * language.c (_initialize_language): Add declaration.
17272 * linux-fork.c (_initialize_linux_fork): Add declaration.
17273 * linux-nat.c (_initialize_linux_nat): Add declaration.
17274 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17275 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17276 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17277 * m2-lang.c (_initialize_m2_language): Add declaration.
17278 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17279 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17280 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17281 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17282 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17283 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17284 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17285 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17286 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17287 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17288 * machoread.c (_initialize_machoread): Add declaration.
17289 * macrocmd.c (_initialize_macrocmd): Add declaration.
17290 * macroscope.c (_initialize_macroscope): Add declaration.
17291 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17292 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17293 * maint.c (_initialize_maint_cmds): Add declaration.
17294 * mdebugread.c (_initialize_mdebugread): Add declaration.
17295 * memattr.c (_initialize_mem): Add declaration.
17296 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17297 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17298 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17299 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17300 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17301 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17302 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17303 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17304 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17305 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17306 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17307 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17308 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17309 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17310 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17311 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17312 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17313 * mipsread.c (_initialize_mipsread): Add declaration.
17314 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17315 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17316 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17317 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17318 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17319 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17320 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17321 * nto-procfs.c (_initialize_procfs): Add declaration.
17322 * objc-lang.c (_initialize_objc_language): Add declaration.
17323 * observable.c (_initialize_observer): Add declaration.
17324 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17325 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17326 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17327 * osabi.c (_initialize_gdb_osabi): Add declaration.
17328 * osdata.c (_initialize_osdata): Add declaration.
17329 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17330 * parse.c (_initialize_parse): Add declaration.
17331 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17332 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17333 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17334 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17335 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17336 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17337 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17338 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17339 * printcmd.c (_initialize_printcmd): Add declaration.
17340 * probe.c (_initialize_probe): Add declaration.
17341 * proc-api.c (_initialize_proc_api): Add declaration.
17342 * proc-events.c (_initialize_proc_events): Add declaration.
17343 * proc-service.c (_initialize_proc_service): Add declaration.
17344 * procfs.c (_initialize_procfs): Add declaration.
17345 * producer.c (_initialize_producer): Add declaration.
17346 * psymtab.c (_initialize_psymtab): Add declaration.
17347 * python/python.c (_initialize_python): Add declaration.
17348 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17349 * record-btrace.c (_initialize_record_btrace): Add declaration.
17350 * record-full.c (_initialize_record_full): Add declaration.
17351 * record.c (_initialize_record): Add declaration.
17352 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17353 * regcache.c (_initialize_regcache): Add declaration.
17354 * reggroups.c (_initialize_reggroup): Add declaration.
17355 * remote-notif.c (_initialize_notif): Add declaration.
17356 * remote-sim.c (_initialize_remote_sim): Add declaration.
17357 * remote.c (_initialize_remote): Add declaration.
17358 * reverse.c (_initialize_reverse): Add declaration.
17359 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17360 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17361 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17362 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17363 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17364 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17365 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17366 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17367 Add declaration.
17368 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17369 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17370 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17371 * rust-exp.y (_initialize_rust_exp): Add declaration.
17372 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17373 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17374 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17375 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17376 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17377 * score-tdep.c (_initialize_score_tdep): Add declaration.
17378 * ser-go32.c (_initialize_ser_dos): Add declaration.
17379 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17380 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17381 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17382 * ser-uds.c (_initialize_ser_socket): Add declaration.
17383 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17384 * serial.c (_initialize_serial): Add declaration.
17385 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17386 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17387 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17388 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17389 * skip.c (_initialize_step_skip): Add declaration.
17390 * sol-thread.c (_initialize_sol_thread): Add declaration.
17391 * solib-aix.c (_initialize_solib_aix): Add declaration.
17392 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17393 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17394 * solib-frv.c (_initialize_frv_solib): Add declaration.
17395 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17396 * solib-target.c (_initialize_solib_target): Add declaration.
17397 * solib.c (_initialize_solib): Add declaration.
17398 * source-cache.c (_initialize_source_cache): Add declaration.
17399 * source.c (_initialize_source): Add declaration.
17400 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17401 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17402 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17403 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17404 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17405 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17406 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17407 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17408 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17409 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17410 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17411 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17412 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17413 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17414 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17415 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17416 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17417 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17418 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17419 * stabsread.c (_initialize_stabsread): Add declaration.
17420 * stack.c (_initialize_stack): Add declaration.
17421 * stap-probe.c (_initialize_stap_probe): Add declaration.
17422 * std-regs.c (_initialize_frame_reg): Add declaration.
17423 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17424 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17425 * symfile.c (_initialize_symfile): Add declaration.
17426 * symmisc.c (_initialize_symmisc): Add declaration.
17427 * symtab.c (_initialize_symtab): Add declaration.
17428 * target.c (_initialize_target): Add declaration.
17429 * target-connection.c (_initialize_target_connection): Add
17430 declaration.
17431 * target-dcache.c (_initialize_target_dcache): Add declaration.
17432 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17433 * thread.c (_initialize_thread): Add declaration.
17434 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17435 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17436 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17437 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17438 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17439 * tracectf.c (_initialize_ctf): Add declaration.
17440 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17441 * tracefile.c (_initialize_tracefile): Add declaration.
17442 * tracepoint.c (_initialize_tracepoint): Add declaration.
17443 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17444 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17445 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17446 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17447 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17448 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17449 * tui/tui.c (_initialize_tui): Add declaration.
17450 * typeprint.c (_initialize_typeprint): Add declaration.
17451 * ui-style.c (_initialize_ui_style): Add declaration.
17452 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17453 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17454 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17455 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17456 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17457 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17458 * unittests/filtered_iterator-selftests.c
17459 (_initialize_filtered_iterator_selftests): Add declaration.
17460 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17461 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17462 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17463 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17464 * unittests/main-thread-selftests.c
17465 (_initialize_main_thread_selftests): Add declaration.
17466 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17467 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17468 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17469 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17470 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17471 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17472 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17473 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17474 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17475 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17476 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17477 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17478 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17479 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17480 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17481 declaration.
17482 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17483 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17484 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17485 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17486 * user-regs.c (_initialize_user_regs): Add declaration.
17487 * utils.c (_initialize_utils): Add declaration.
17488 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17489 * valops.c (_initialize_valops): Add declaration.
17490 * valprint.c (_initialize_valprint): Add declaration.
17491 * value.c (_initialize_values): Add declaration.
17492 * varobj.c (_initialize_varobj): Add declaration.
17493 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17494 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17495 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17496 * windows-nat.c (_initialize_windows_nat): Add declaration.
17497 (_initialize_check_for_gdb_ini): Add declaration.
17498 (_initialize_loadable): Add declaration.
17499 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17500 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17501 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17502 * xcoffread.c (_initialize_xcoffread): Add declaration.
17503 * xml-support.c (_initialize_xml_support): Add declaration.
17504 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17505 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17506 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17507 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17508
e2de1eec
SM
175092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17510
17511 * regformats/regdat.sh: Generate declaration for init function.
17512
e0037b4c
SM
175132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17514
17515 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17516 up.
17517 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17518 close_one_inferior>: New methods.
17519 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17520 pass down target to find_inferior_pid.
17521 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17522 Pass down target to find_inferior_ptid.
17523 (gdbsim_target::create_inferior): Pass down target to
17524 add_thread_silent.
17525 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17526 target down to find_inferior_ptid and switch_to_thread.
17527 (gdbsim_target::close): Update to call close_one_inferior.
17528 (struct resume_data): Remove.
17529 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17530 directly, rather than through a void pointer.
17531 (gdbsim_target::resume): Update to call resume_one_inferior.
17532
58920b5b
SM
175332020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17534
17535 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17536
4ec89149
PA
175372020-01-12 Pedro Alves <palves@redhat.com>
17538
17539 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17540 directly for the current inferior instead of
17541 discard_all_inferiors.
17542 (discard_all_inferiors): Delete.
17543
7c392d1d
TT
175442020-01-11 Tom Tromey <tom@tromey.com>
17545
17546 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17547 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17548 deprecated_safe_get_selected_frame.
17549
d9ebdab7
TBA
175502020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17551
17552 * inferior.c (print_inferior): Switch inferior before printing it.
17553
f3c469b9
PA
175542020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17555 Pedro Alves <palves@redhat.com>
17556
17557 * progspace-and-thread.c (switch_to_program_space_and_thread):
17558 Assert there's an inferior for PSPACE. Use
17559 switch_to_inferior_no_thread to switch the inferior too.
17560 * progspace.c (program_space::~program_space): Call
17561 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17562 (program_space::free_all_objfiles): Don't call clear_symtab_users
17563 here.
17564 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17565
65c574f6
PA
175662020-01-10 Pedro Alves <palves@redhat.com>
17567
17568 * NEWS: Mention multi-target debugging, "info connections", and
17569 "add-inferior -no-connection".
17570
2f4fcf00
PA
175712020-01-10 Pedro Alves <palves@redhat.com>
17572
17573 * infrun.c: Include "target-connection.h".
17574 (check_multi_target_resumption): New.
17575 (proceed): Call it.
17576 * target-connection.c (make_target_connection_string): Make
17577 extern.
17578 * target-connection.h (make_target_connection_string): Declare.
17579
121b3efd
PA
175802020-01-10 Pedro Alves <palves@redhat.com>
17581
17582 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17583 * inferior.c (uiout_field_connection): New function.
17584 (print_inferior): Add new "connection-id" column.
17585 (add_inferior_command): Show connection number/string of added
17586 inferior.
17587 * process-stratum-target.h
17588 (process_stratum_target::connection_string): New virtual method.
17589 (process_stratum_target::connection_number): New field.
17590 * remote.c (remote_target::connection_string): New override.
17591 * target-connection.c: New file.
17592 * target-connection.h: New file.
17593 * target.c (decref_target): Remove process_stratum targets from
17594 the connection list.
17595 (target_stack::push): Add process_stratum targets to the
17596 connection list.
17597
4f837581
PA
175982020-01-10 Pedro Alves <palves@redhat.com>
17599
17600 Revert:
17601 2016-04-12 Pedro Alves <palves@redhat.com>
17602 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17603 Remove references to name.
17604 * serial.h (struct serial) <name>: Delete.
17605
f4ec508e
PA
176062020-01-10 Pedro Alves <palves@redhat.com>
17607
17608 * gdbarch-selftests.c (register_to_value_test): Remove "target
17609 already pushed" check.
17610
5b6d1e4f
PA
176112020-01-10 Pedro Alves <palves@redhat.com>
17612 John Baldwin <jhb@FreeBSD.org>
17613
17614 * aarch64-linux-nat.c
17615 (aarch64_linux_nat_target::thread_architecture): Adjust.
17616 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17617 (task_command_1): Likewise.
17618 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17619 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17620 (aix_thread_target::store_registers)
17621 (aix_thread_target::thread_alive): Adjust.
17622 * amd64-fbsd-tdep.c: Include "inferior.h".
17623 (amd64fbsd_get_thread_local_address): Pass down target.
17624 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17625 thread's gdbarch instead of target_gdbarch.
17626 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17627 get_last_target_status.
17628 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17629 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17630 inferiors.
17631 (update_inserted_breakpoint_locations): Skip if inferiors with no
17632 execution.
17633 (update_global_location_list): When handling moribund locations,
17634 find representative inferior for location's pspace, and use thread
17635 count of its process_stratum target.
17636 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17637 * bsd-uthread.c (bsd_uthread_target::wait): Use
17638 as_process_stratum_target and adjust thread_change_ptid and
17639 add_thread calls.
17640 (bsd_uthread_target::update_thread_list): Use
17641 as_process_stratum_target and adjust find_thread_ptid,
17642 thread_change_ptid and add_thread calls.
17643 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17644 find_thread_ptid call.
17645 * corelow.c (add_to_thread_list): Adjust add_thread call.
17646 (core_target_open): Adjust add_thread_silent and thread_count
17647 calls.
17648 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17649 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17650 * event-top.c (async_disconnect): Pop targets from all inferiors.
17651 * exec.c (add_target_sections): Push exec target on all inferiors
17652 sharing the program space.
17653 (remove_target_sections): Remove the exec target from all
17654 inferiors sharing the program space.
17655 (exec_on_vfork): New.
17656 * exec.h (exec_on_vfork): Declare.
17657 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17658 Pass it down.
17659 (fbsd_nat_target::update_thread_list): Adjust.
17660 (fbsd_nat_target::resume): Adjust.
17661 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17662 down.
17663 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17664 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17665 get_thread_arch_regcache call.
17666 * fork-child.c (gdb_startup_inferior): Pass target down to
17667 startup_inferior and set_executing.
17668 * gdbthread.h (struct process_stratum_target): Forward declare.
17669 (add_thread, add_thread_silent, add_thread_with_info)
17670 (in_thread_list): Add process_stratum_target parameter.
17671 (find_thread_ptid(inferior*, ptid_t)): New overload.
17672 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17673 parameter.
17674 (all_threads()): Delete overload.
17675 (all_threads, all_non_exited_threads): Add process_stratum_target
17676 parameter.
17677 (all_threads_safe): Use brace initialization.
17678 (thread_count): Add process_stratum_target parameter.
17679 (set_resumed, set_running, set_stop_requested, set_executing)
17680 (threads_are_executing, finish_thread_state): Add
17681 process_stratum_target parameter.
17682 (switch_to_thread): Use is_current_thread.
17683 * i386-fbsd-tdep.c: Include "inferior.h".
17684 (i386fbsd_get_thread_local_address): Pass down target.
17685 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17686 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17687 have_inferiors check.
17688 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17689 (inf_ptrace_target::attach): Adjust.
17690 * infcall.c (run_inferior_call): Adjust.
17691 * infcmd.c (run_command_1): Pass target to
17692 scoped_finish_thread_state.
17693 (proceed_thread_callback): Skip inferiors with no execution.
17694 (continue_command): Rename 'all_threads' local to avoid hiding
17695 'all_threads' function. Adjust get_last_target_status call.
17696 (prepare_one_step): Adjust set_running call.
17697 (signal_command): Use user_visible_resume_target. Compare thread
17698 pointers instead of inferior_ptid.
17699 (info_program_command): Adjust to pass down target.
17700 (attach_command): Mark target's 'thread_executing' flag.
17701 (stop_current_target_threads_ns): New, factored out from ...
17702 (interrupt_target_1): ... this. Switch inferior before making
17703 target calls.
17704 * inferior-iter.h
17705 (struct all_inferiors_iterator, struct all_inferiors_range)
17706 (struct all_inferiors_safe_range)
17707 (struct all_non_exited_inferiors_range): Filter on
17708 process_stratum_target too. Remove explicit.
17709 * inferior.c (inferior::inferior): Push dummy target on target
17710 stack.
17711 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17712 Add process_stratum_target parameter, and pass it down.
17713 (have_live_inferiors): Adjust.
17714 (switch_to_inferior_and_push_target): New.
17715 (add_inferior_command, clone_inferior_command): Handle
17716 "-no-connection" parameter. Use
17717 switch_to_inferior_and_push_target.
17718 (_initialize_inferior): Mention "-no-connection" option in
17719 the help of "add-inferior" and "clone-inferior" commands.
17720 * inferior.h: Include "process-stratum-target.h".
17721 (interrupt_target_1): Use bool.
17722 (struct inferior) <push_target, unpush_target, target_is_pushed,
17723 find_target_beneath, top_target, process_target, target_at,
17724 m_stack>: New.
17725 (discard_all_inferiors): Delete.
17726 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17727 (all_inferiors, all_non_exited_inferiors): Add
17728 process_stratum_target parameter.
17729 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17730 (target_last_proc_target): New global.
17731 (follow_fork_inferior): Push target on new inferior. Pass target
17732 to add_thread_silent. Call exec_on_vfork. Handle target's
17733 reference count.
17734 (follow_fork): Adjust get_last_target_status call. Also consider
17735 target.
17736 (follow_exec): Push target on new inferior.
17737 (struct execution_control_state) <target>: New field.
17738 (user_visible_resume_target): New.
17739 (do_target_resume): Call target_async.
17740 (resume_1): Set target's threads_executing flag. Consider resume
17741 target.
17742 (commit_resume_all_targets): New.
17743 (proceed): Also consider resume target. Skip threads of inferiors
17744 with no execution. Commit resumtion in all targets.
17745 (start_remote): Pass current inferior to wait_for_inferior.
17746 (infrun_thread_stop_requested): Consider target as well. Pass
17747 thread_info pointer to clear_inline_frame_state instead of ptid.
17748 (infrun_thread_thread_exit): Consider target as well.
17749 (random_pending_event_thread): New inferior parameter. Use it.
17750 (do_target_wait): Rename to ...
17751 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17752 down.
17753 (threads_are_resumed_pending_p, do_target_wait): New.
17754 (prepare_for_detach): Adjust calls.
17755 (wait_for_inferior): New inferior parameter. Handle it. Use
17756 do_target_wait_1 instead of do_target_wait.
17757 (fetch_inferior_event): Adjust. Switch to representative
17758 inferior. Pass target down.
17759 (set_last_target_status): Add process_stratum_target parameter.
17760 Save target in global.
17761 (get_last_target_status): Add process_stratum_target parameter and
17762 handle it.
17763 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17764 (context_switch): Check inferior_ptid == null_ptid before calling
17765 inferior_thread().
17766 (get_inferior_stop_soon): Pass down target.
17767 (wait_one): Rename to ...
17768 (poll_one_curr_target): ... this.
17769 (struct wait_one_event): New.
17770 (wait_one): New.
17771 (stop_all_threads): Adjust.
17772 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17773 event's target.
17774 (switch_back_to_stepped_thread): Also consider target.
17775 (print_stop_event): Update.
17776 (normal_stop): Update. Also consider the resume target.
17777 * infrun.h (wait_for_inferior): Remove declaration.
17778 (user_visible_resume_target): New declaration.
17779 (get_last_target_status, set_last_target_status): New
17780 process_stratum_target parameter.
17781 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17782 process_stratum_target parameter, and use it.
17783 (clear_inline_frame_state (thread_info*)): New.
17784 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17785 process_stratum_target parameter.
17786 (clear_inline_frame_state (thread_info*)): Declare.
17787 * linux-fork.c (delete_checkpoint_command): Pass target down to
17788 find_thread_ptid.
17789 (checkpoint_command): Adjust.
17790 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17791 instead of just tweaking inferior_ptid.
17792 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17793 (exit_lwp): Pass target down to find_thread_ptid.
17794 (attach_proc_task_lwp_callback): Pass target down to
17795 add_thread/set_running/set_executing.
17796 (linux_nat_target::attach): Pass target down to
17797 thread_change_ptid.
17798 (get_detach_signal): Pass target down to find_thread_ptid.
17799 Consider last target status's target.
17800 (linux_resume_one_lwp_throw, resume_lwp)
17801 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17802 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17803 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17804 (linux_nat_target::async_wait_fd): New.
17805 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17806 target down.
17807 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17808 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17809 * linux-thread-db.c (struct thread_db_info::process_target): New
17810 field.
17811 (add_thread_db_info): Save target.
17812 (get_thread_db_info): New process_stratum_target parameter. Also
17813 match target.
17814 (delete_thread_db_info): New process_stratum_target parameter.
17815 Also match target.
17816 (thread_from_lwp): Adjust to pass down target.
17817 (thread_db_notice_clone): Pass down target.
17818 (check_thread_db_callback): Pass down target.
17819 (try_thread_db_load_1): Always push the thread_db target.
17820 (try_thread_db_load, record_thread): Pass target down.
17821 (thread_db_target::detach): Pass target down. Always unpush the
17822 thread_db target.
17823 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17824 target down. Always unpush the thread_db target.
17825 (find_new_threads_callback, thread_db_find_new_threads_2)
17826 (thread_db_target::update_thread_list): Pass target down.
17827 (thread_db_target::pid_to_str): Pass current inferior down.
17828 (thread_db_target::get_thread_local_address): Pass target down.
17829 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17830 target down.
17831 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17832 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17833 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17834 (procfs_init_inferior): Rename to ...
17835 (procfs_target::procfs_init_inferior): ... this and adjust.
17836 (procfs_target::create_inferior, procfs_notice_thread)
17837 (procfs_do_thread_registers): Adjust.
17838 * ppc-fbsd-tdep.c: Include "inferior.h".
17839 (ppcfbsd_get_thread_local_address): Pass down target.
17840 * proc-service.c (ps_xfer_memory): Switch current inferior and
17841 program space as well.
17842 (get_ps_regcache): Pass target down.
17843 * process-stratum-target.c
17844 (process_stratum_target::thread_address_space)
17845 (process_stratum_target::thread_architecture): Pass target down.
17846 * process-stratum-target.h
17847 (process_stratum_target::threads_executing): New field.
17848 (as_process_stratum_target): New.
17849 * ravenscar-thread.c
17850 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17851 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17852 down.
17853 * record-btrace.c (record_btrace_target::info_record): Adjust.
17854 (record_btrace_target::record_method)
17855 (record_btrace_target::record_is_replaying)
17856 (record_btrace_target::fetch_registers)
17857 (get_thread_current_frame_id, record_btrace_target::resume)
17858 (record_btrace_target::wait, record_btrace_target::stop): Pass
17859 target down.
17860 * record-full.c (record_full_wait_1): Switch to event thread.
17861 Pass target down.
17862 * regcache.c (regcache::regcache)
17863 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17864 process_stratum_target parameter and handle it.
17865 (current_thread_target): New global.
17866 (get_thread_regcache): Add process_stratum_target parameter and
17867 handle it. Switch inferior before calling target method.
17868 (get_thread_regcache): Pass target down.
17869 (get_thread_regcache_for_ptid): Pass target down.
17870 (registers_changed_ptid): Add process_stratum_target parameter and
17871 handle it.
17872 (registers_changed_thread, registers_changed): Pass target down.
17873 (test_get_thread_arch_aspace_regcache): New.
17874 (current_regcache_test): Define a couple local test_target_ops
17875 instances and use them for testing.
17876 (readwrite_regcache): Pass process_stratum_target parameter.
17877 (cooked_read_test, cooked_write_test): Pass mock_target down.
17878 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17879 (get_thread_arch_aspace_regcache): Add process_stratum_target
17880 parameter.
17881 (regcache::target): New method.
17882 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17883 (regcache::registers_changed_ptid): Add process_stratum_target
17884 parameter.
17885 (regcache::m_target): New field.
17886 (registers_changed_ptid): Add process_stratum_target parameter.
17887 * remote.c (remote_state::supports_vCont_probed): New field.
17888 (remote_target::async_wait_fd): New method.
17889 (remote_unpush_and_throw): Add remote_target parameter.
17890 (get_current_remote_target): Adjust.
17891 (remote_target::remote_add_inferior): Push target.
17892 (remote_target::remote_add_thread)
17893 (remote_target::remote_notice_new_inferior)
17894 (get_remote_thread_info): Pass target down.
17895 (remote_target::update_thread_list): Skip threads of inferiors
17896 bound to other targets. (remote_target::close): Don't discard
17897 inferiors. (remote_target::add_current_inferior_and_thread)
17898 (remote_target::process_initial_stop_replies)
17899 (remote_target::start_remote)
17900 (remote_target::remote_serial_quit_handler): Pass down target.
17901 (remote_target::remote_unpush_target): New remote_target
17902 parameter. Unpush the target from all inferiors.
17903 (remote_target::remote_unpush_and_throw): New remote_target
17904 parameter. Pass it down.
17905 (remote_target::open_1): Check whether the current inferior has
17906 execution instead of checking whether any inferior is live. Pass
17907 target down.
17908 (remote_target::remote_detach_1): Pass down target. Use
17909 remote_unpush_target.
17910 (extended_remote_target::attach): Pass down target.
17911 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17912 (remote_target::append_resumption): Pass down target.
17913 (remote_target::append_pending_thread_resumptions)
17914 (remote_target::remote_resume_with_hc, remote_target::resume)
17915 (remote_target::commit_resume): Pass down target.
17916 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17917 (remote_target::interrupt_query)
17918 (remote_target::remove_new_fork_children)
17919 (remote_target::check_pending_events_prevent_wildcard_vcont)
17920 (remote_target::remote_parse_stop_reply)
17921 (remote_target::process_stop_reply): Pass down target.
17922 (first_remote_resumed_thread): New remote_target parameter. Pass
17923 it down.
17924 (remote_target::wait_as): Pass down target.
17925 (unpush_and_perror): New remote_target parameter. Pass it down.
17926 (remote_target::readchar, remote_target::remote_serial_write)
17927 (remote_target::getpkt_or_notif_sane_1)
17928 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17929 down target.
17930 (remote_target::mourn_inferior): Pass down target. Use
17931 remote_unpush_target.
17932 (remote_target::core_of_thread)
17933 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17934 (remote_target::pid_to_exec_file)
17935 (remote_target::thread_handle_to_thread_info): Pass down target.
17936 (remote_target::async_wait_fd): New.
17937 * riscv-fbsd-tdep.c: Include "inferior.h".
17938 (riscv_fbsd_get_thread_local_address): Pass down target.
17939 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17940 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17941 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17942 Adjust.
17943 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17944 * solib-svr4.c (enable_break): Pass down target.
17945 * spu-multiarch.c (parse_spufs_run): Pass down target.
17946 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17947 * target-delegates.c: Regenerate.
17948 * target.c (g_target_stack): Delete.
17949 (current_top_target): Return the current inferior's top target.
17950 (target_has_execution_1): Refer to the passed-in inferior's top
17951 target.
17952 (target_supports_terminal_ours): Check whether the initial
17953 inferior was already created.
17954 (decref_target): New.
17955 (target_stack::push): Incref/decref the target.
17956 (push_target, push_target, unpush_target): Adjust.
17957 (target_stack::unpush): Defref target.
17958 (target_is_pushed): Return bool. Adjust to refer to the current
17959 inferior's target stack.
17960 (dispose_inferior): Delete, and inline parts ...
17961 (target_preopen): ... here. Only dispose of the current inferior.
17962 (target_detach): Hold strong target reference while detaching.
17963 Pass target down.
17964 (target_thread_name): Add assertion.
17965 (target_resume): Pass down target.
17966 (target_ops::beneath, find_target_at): Adjust to refer to the
17967 current inferior's target stack.
17968 (get_dummy_target): New.
17969 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17970 has a thread running.
17971 (initialize_targets): Rename to ...
17972 (_initialize_target): ... this.
17973 * target.h: Include "gdbsupport/refcounted-object.h".
17974 (struct target_ops): Inherit refcounted_object.
17975 (target_ops::shortname, target_ops::longname): Make const.
17976 (target_ops::async_wait_fd): New method.
17977 (decref_target): Declare.
17978 (struct target_ops_ref_policy): New.
17979 (target_ops_ref): New typedef.
17980 (get_dummy_target): Declare function.
17981 (target_is_pushed): Return bool.
17982 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17983 (all_matching_threads_iterator::all_matching_threads_iterator):
17984 Handle filter target.
17985 * thread-iter.h (struct all_matching_threads_iterator, struct
17986 all_matching_threads_range, class all_non_exited_threads_range):
17987 Filter by target too. Remove explicit.
17988 * thread.c (threads_executing): Delete.
17989 (inferior_thread): Pass down current inferior.
17990 (clear_thread_inferior_resources): Pass down thread pointer
17991 instead of ptid_t.
17992 (add_thread_silent, add_thread_with_info, add_thread): Add
17993 process_stratum_target parameter. Use it for thread and inferior
17994 searches.
17995 (is_current_thread): New.
17996 (thread_info::deletable): Use it.
17997 (find_thread_ptid, thread_count, in_thread_list)
17998 (thread_change_ptid, set_resumed, set_running): New
17999 process_stratum_target parameter. Pass it down.
18000 (set_executing): New process_stratum_target parameter. Pass it
18001 down. Adjust reference to 'threads_executing'.
18002 (threads_are_executing): New process_stratum_target parameter.
18003 Adjust reference to 'threads_executing'.
18004 (set_stop_requested, finish_thread_state): New
18005 process_stratum_target parameter. Pass it down.
18006 (switch_to_thread): Also match inferior.
18007 (switch_to_thread): New process_stratum_target parameter. Pass it
18008 down.
18009 (update_threads_executing): Reimplement.
18010 * top.c (quit_force): Pop targets from all inferior.
18011 (gdb_init): Don't call initialize_targets.
18012 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18013 Declare.
18014 (windows_add_thread, windows_delete_thread): Adjust.
18015 (get_windows_debug_event): Rename to ...
18016 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18017 * tracefile-tfile.c (tfile_target_open): Pass down target.
18018 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18019 Forward declare.
18020 (switch_to_thread): Add process_stratum_target parameter.
18021 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18022 parameter. Use it.
18023 (mi_on_resume): Pass target down.
18024 * nat/fork-inferior.c (startup_inferior): Add
18025 process_stratum_target parameter. Pass it down.
18026 * nat/fork-inferior.h (startup_inferior): Add
18027 process_stratum_target parameter.
18028 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18029
75c6c844
PA
180302020-01-10 Pedro Alves <palves@redhat.com>
18031
18032 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18033 directly. Instead find the first thread in the thread list and
18034 use switch_to_thread.
18035
78f2c40a
PA
180362020-01-10 Pedro Alves <palves@redhat.com>
18037
18038 * remote.c (remote_target::remote_add_inferior): Don't bind a
18039 process to the current inferior if the current inferior is already
18040 bound to a process.
18041
e7af6c70
TBA
180422020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18043 Pedro Alves <palves@redhat.com>
18044
18045 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18046 If no process is specified, return null_ptid instead of
18047 inferior_ptid.
18048 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18049 TARGET_WAITKIND_SIGNALLED with no pid.
18050
31ba933e
PA
180512020-01-10 Pedro Alves <palves@redhat.com>
18052
18053 * remote.c (first_remote_resumed_thread): New.
18054 (remote_target::wait_as): Use it as default event_ptid instead of
18055 inferior_ptid.
18056
735fc2ca
PA
180572020-01-10 Pedro Alves <palves@redhat.com>
18058
18059 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18060
c17e02e1
PA
180612020-01-10 Pedro Alves <palves@redhat.com>
18062
18063 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18064 not -1.
18065
ab1ddbcf
PA
180662020-01-10 Pedro Alves <palves@redhat.com>
18067
18068 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18069 ptid to get_last_target_status.
18070 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18071 ptid to get_last_target_status.
18072 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18073 get_last_target_status.
18074 (info_program_command): Don't pass a target_waitstatus to
18075 get_last_target_status.
18076 * infrun.c (init_wait_for_inferior): Use
18077 nullify_last_target_wait_ptid.
18078 (get_last_target_status): Handle nullptr arguments.
18079 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18080 (print_stop_event): Don't pass a ptid to get_last_target_status.
18081 (normal_stop): Don't pass a ptid to get_last_target_status.
18082 * infrun.h (get_last_target_status, set_last_target_status): Move
18083 comments here and update.
18084 (nullify_last_target_wait_ptid): Declare.
18085 * linux-fork.c (fork_load_infrun_state): Remove local extern
18086 declaration of nullify_last_target_wait_ptid.
18087 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18088 to get_last_target_status.
18089
f3f8ece4
PA
180902020-01-10 Pedro Alves <palves@redhat.com>
18091
18092 * gdbthread.h (scoped_restore_current_thread)
18093 <dont_restore, restore, m_dont_restore>: Declare.
18094 * thread.c (thread_alive): Add assertion. Return bool.
18095 (switch_to_thread_if_alive): New.
18096 (prune_threads): Switch inferior/thread.
18097 (print_thread_info_1): Switch thread before calling target methods.
18098 (scoped_restore_current_thread::restore): New, factored out from
18099 ...
18100 (scoped_restore_current_thread::~scoped_restore_current_thread):
18101 ... this.
18102 (scoped_restore_current_thread::scoped_restore_current_thread):
18103 Add assertion.
18104 (thread_apply_all_command, thread_select): Use
18105 switch_to_thread_if_alive.
18106 * infrun.c (proceed, restart_threads, handle_signal_stop)
18107 (switch_back_to_stepped_thread): Switch current thread before
18108 calling target methods.
18109
db2d40f7
PA
181102020-01-10 Pedro Alves <palves@redhat.com>
18111
18112 * inferior.c (switch_to_inferior_no_thread): New function,
18113 factored out from ...
18114 (inferior_command): ... here.
18115 * inferior.h (switch_to_inferior_no_thread): Declare.
18116 * mi/mi-main.c (run_one_inferior): Use
18117 switch_to_inferior_no_thread.
18118
bd420a2d
PA
181192020-01-10 Pedro Alves <palves@redhat.com>
18120
18121 * infcmd.c (kill_command): Remove dead code.
18122
ddf5db90
PA
181232020-01-10 Pedro Alves <palves@redhat.com>
18124
18125 * remote.c (remote_target::mourn_inferior): No longer check
18126 whether the target is running.
18127
5018ce90
PA
181282020-01-10 Pedro Alves <palves@redhat.com>
18129
18130 * corelow.c (core_target::has_execution): Change parameter type to
18131 inferior pointer.
18132 * inferior.c (number_of_live_inferiors): Use
18133 inferior::has_execution instead of target_has_execution_1.
18134 * inferior.h (inferior::has_execution): New.
18135 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18136 inferior::has_execution instead of target_has_execution_1.
18137 * process-stratum-target.c
18138 (process_stratum_target::has_execution): Change parameter type to
18139 inferior pointer. Check the inferior's PID instead of
18140 inferior_ptid.
18141 * process-stratum-target.h
18142 (process_stratum_target::has_execution): Change parameter type to
18143 inferior pointer.
18144 * record-full.c (record_full_core_target::has_execution): Change
18145 parameter type to inferior pointer.
18146 * target.c (target_has_execution_1): Change parameter type to
18147 inferior pointer.
18148 (target_has_execution_current): Adjust.
18149 * target.h (target_ops::has_execution): Change parameter type to
18150 inferior pointer.
18151 (target_has_execution_1): Change parameter type to inferior
18152 pointer. Change return type to bool.
18153 * tracefile.h (tracefile_target::has_execution): Change parameter
18154 type to inferior pointer.
18155
74375d18
PA
181562020-01-10 Pedro Alves <palves@redhat.com>
18157
18158 * exceptions.c (print_flush): Remove current_top_target() check.
18159
acdf84a6
PA
181602020-01-10 Pedro Alves <palves@redhat.com>
18161
18162 * remote.c (show_remote_exec_file): Show the current inferior's
18163 exec-file instead of the command variable's value.
18164
ec506636
PA
181652020-01-10 Pedro Alves <palves@redhat.com>
18166
18167 * record-full.c (record_full_resume_ptid): New global.
18168 (record_full_target::resume): Set it.
18169 (record_full_wait_1): Use record_full_resume_ptid instead of
18170 inferior_ptid.
18171
873657b9
PA
181722020-01-10 Pedro Alves <palves@redhat.com>
18173
18174 * gdbthread.h (scoped_restore_current_thread)
18175 <dont_restore, restore, m_dont_restore>: Declare.
18176 * thread.c (thread_alive): Add assertion. Return bool.
18177 (switch_to_thread_if_alive): New.
18178 (prune_threads): Switch inferior/thread.
18179 (print_thread_info_1): Switch thread before calling target methods.
18180 (scoped_restore_current_thread::restore): New, factored out from
18181 ...
18182 (scoped_restore_current_thread::~scoped_restore_current_thread):
18183 ... this.
18184 (scoped_restore_current_thread::scoped_restore_current_thread):
18185 Add assertion.
18186 (thread_apply_all_command, thread_select): Use
18187 switch_to_thread_if_alive.
18188
7f0ae84c
GB
181892020-01-10 George Barrett <bob@bob131.so>
18190
18191 * stap-probe.c (stap_modify_semaphore): Don't check for null
18192 semaphores.
18193 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18194 for null semaphores.
18195
f5a7c406
AB
181962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18197
18198 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18199 all source windows, and maintain horizontal scroll status while
18200 doing so.
18201
9ae6bf64
TT
182022020-01-09 Tom Tromey <tom@tromey.com>
18203
18204 PR tui/18932:
18205 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18206 update_source_window, not print_source_lines.
18207
b2efe70c
AB
182082020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18209
18210 * tui/tui.c (tui_enable): Register tui hooks after calling
18211 tui_display_main.
18212
5f23a082
CB
182132020-01-09 Christian Biesinger <cbiesinger@google.com>
18214
18215 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18216
3061113b
SM
182172020-01-08 Simon Marchi <simon.marchi@efficios.com>
18218
18219 * thread.c (print_thread_info_1): Fix indentation.
18220
57d75002
CB
182212020-01-09 Christian Biesinger <cbiesinger@google.com>
18222
18223 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18224 unique_xmalloc_ptr outside the if to always free the demangled name.
18225
6a053cb1
TT
182262020-01-08 Tom Tromey <tromey@adacore.com>
18227
18228 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18229 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18230 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18231 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18232 Remove.
18233 (section_offsets): New typedef.
18234 * symtab.c (fixup_section, get_msymbol_address): Update.
18235 * symmisc.c (dump_msymbols): Update.
18236 * symfile.h (relative_addr_info_to_section_offsets)
18237 (symfile_map_offsets_to_segments): Update.
18238 * symfile.c (build_section_addr_info_from_objfile)
18239 (init_objfile_sect_indices): Update.
18240 (struct place_section_arg): Change type of "offsets".
18241 (place_section): Update.
18242 (relative_addr_info_to_section_offsets): Change type of
18243 "section_offsets". Remove "num_sections" parameter.
18244 (default_symfile_offsets, syms_from_objfile_1)
18245 (set_objfile_default_section_offset): Update.
18246 (reread_symbols): No need to preserve section offsets by hand.
18247 (symfile_map_offsets_to_segments): Change type of "offsets".
18248 * stap-probe.c (relocate_address): Update.
18249 * stabsread.h (process_one_symbol): Update.
18250 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18251 (solib_target_relocate_section_addresses): Update.
18252 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18253 Update.
18254 * solib-frv.c (frv_relocate_main_executable): Update.
18255 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18256 * solib-aix.c (solib_aix_get_section_offsets): Change return
18257 type.
18258 (solib_aix_solib_create_inferior_hook): Update.
18259 * remote.c (remote_target::get_offsets): Update.
18260 * psymtab.c (find_pc_sect_psymtab): Update.
18261 * psympriv.h (struct partial_symbol) <address, text_low,
18262 text_high>: Update.
18263 * objfiles.h (obj_section_offset): Update.
18264 (struct objfile) <section_offsets>: Change type.
18265 <num_sections>: Remove.
18266 (objfile_relocate): Update.
18267 * objfiles.c (entry_point_address_query): Update
18268 (relocate_one_symbol): Change type of "section_offsets".
18269 (objfile_relocate1, objfile_relocate1): Change type of
18270 "new_offsets".
18271 (objfile_rebase1): Update.
18272 * mipsread.c (mipscoff_symfile_read): Update.
18273 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18274 parameter.
18275 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18276 (parse_external, psymtab_to_symtab_1): Update.
18277 * machoread.c (macho_symfile_offsets): Update.
18278 * ia64-tdep.c (ia64_find_unwind_table): Update.
18279 * hppa-tdep.c (read_unwind_info): Update.
18280 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18281 * dwarf2read.c (create_addrmap_from_index)
18282 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18283 (process_psymtab_comp_unit_reader, add_partial_symbol)
18284 (add_partial_subprogram, process_full_comp_unit)
18285 (read_file_scope, read_func_scope, read_lexical_block_scope)
18286 (read_call_site_scope, dwarf2_rnglists_process)
18287 (dwarf2_ranges_process, dwarf2_ranges_read)
18288 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18289 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18290 Update.
18291 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18292 Update.
18293 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18294 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18295 (process_one_symbol): Change type of "section_offsets".
18296 * ctfread.c (get_objfile_text_range): Update.
18297 * coffread.c (coff_symtab_read, enter_linenos)
18298 (process_coff_symbol): Update.
18299 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18300 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18301
456e800a
TT
183022020-01-08 Tom Tromey <tromey@adacore.com>
18303
18304 * dwarf2read.c (parse_macro_definition): Use std::string.
18305 (parse_macro_definition): Likewise.
18306
6dfa2fc2
TT
183072020-01-08 Tom Tromey <tromey@adacore.com>
18308
18309 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18310 (ATTR_ALLOC_CHUNK): Remove.
18311
421d1616
TT
183122020-01-08 Tom Tromey <tromey@adacore.com>
18313
18314 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18315
43816ebc
TT
183162020-01-08 Tom Tromey <tromey@adacore.com>
18317
18318 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18319 (dwarf2_compute_name, open_dwo_file): Likewise.
18320 (process_enumeration_scope): Use std::vector.
18321 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18322 (partial_die_info::fixup, dwarf2_start_subfile)
18323 (guess_full_die_structure_name, dwarf2_name): Likewise.
18324 (determine_prefix): Update.
18325 (guess_full_die_structure_name): Make return type const.
18326 (partial_die_full_name): Return unique_xmalloc_ptr.
18327 (DW_FIELD_ALLOC_CHUNK): Remove.
18328
4212d509
TT
183292020-01-07 Tom Tromey <tromey@adacore.com>
18330
18331 PR build/24937:
18332 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18333
06a6207a
JT
183342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18335
18336 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18337
153d79c4
AB
183382020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18339
18340 * stack.c (print_frame_info): Move disassemble_next_line code
18341 inside source_print block.
18342
66182876
EZ
183432020-01-06 Eli Zaretskii <eliz@gnu.org>
18344
18345 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18346 gdb/signals.h, as we are now using native signal symbols.
18347
cbfa8581
SV
183482020-01-06 Shahab Vahedi <shahab@synopsys.com>
18349
18350 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18351 overflow by an early check of content vs threshold.
aac66a4c 18352 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18353 Likewise.
18354
3f602821
EZ
183552020-01-06 Eli Zaretskii <eliz@gnu.org>
18356
18357 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18358
a08c904d
JT
183592020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18360
18361 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18362 export table if no section contains it's RVA.
18363
89a65580
EZ
183642020-01-06 Eli Zaretskii <eliz@gnu.org>
18365
18366 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18367
8b7fcda2
HD
183682020-01-06 Hannes Domani <ssbssa@yahoo.de>
18369
18370 * source.c (print_source_lines_base): Set last_line_listed.
18371
a61b4f69
SV
183722020-01-06 Shahab Vahedi <shahab@synopsys.com>
18373
18374 * tui/tui-disasm.c: Remove trailing spaces.
18375
559e7e50
EZ
183762020-01-06 Eli Zaretskii <eliz@gnu.org>
18377 Pedro Alves <palves@redhat.com>
18378
18379 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18380 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18381 (windows_gdb_signal_to_target): New function, uses the above
18382 enumeration to convert GDB internal signal codes to equivalent
18383 Windows codes.
18384 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18385 * windows-nat.c: Include "gdb_wait.h".
18386 (get_windows_debug_event): Extract the fatal exception from the
18387 exit status and convert to the equivalent Posix signal number.
18388 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18389 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18390 * gdbsupport/gdb_wait.c: New file, implements
18391 windows_status_to_termsig.
18392 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18393 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18394
f2302a34
AB
183952020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18396
18397 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18398 show_layout.
18399
6a5206eb
LM
184002020-01-05 Luis Machado <luis.machado@linaro.org>
18401
18402 * aarch64-linux-nat.c
18403 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18404 and bfd_mach_aarch64.
18405
6ec1d75e
PW
184062020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18407
18408 * ui-file.c (stdio_file::can_emit_style_escape)
18409 (tee_file::can_emit_style_escape): Ensure style is used also on
18410 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18411 to gdb_stdout.
18412 * main.c (set_gdb_data_directory): Use file style to output the
18413 warning that the given pathname is not a directory.
18414 * top.c (show_history_filename, gdb_safe_append_history)
18415 (show_gdb_datadir): Use file style.
18416
44f81a76
HD
184172020-01-03 Hannes Domani <ssbssa@yahoo.de>
18418
18419 * solib-target.c (struct lm_info_target):
18420 Change offsets to be a unique_xmalloc_ptr.
18421 (solib_target_relocate_section_addresses): Update.
18422
25057eb0
HD
184232020-01-03 Hannes Domani <ssbssa@yahoo.de>
18424
18425 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18426
6e2118f5
BE
184272020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18428
18429 * MAINTAINERS (Write After Approval): Add myself.
18430
8133c7dc
LM
184312020-01-02 Luis Machado <luis.machado@linaro.org>
18432
18433 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18434 Cell BE architecture.
18435 * target.h (struct target_ops) <thread_architecture>: Likewise.
18436
48189bec
HD
184372020-01-01 Hannes Domani <ssbssa@yahoo.de>
18438
18439 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18440
ead1063b
HD
184412020-01-01 Hannes Domani <ssbssa@yahoo.de>
18442
18443 * MAINTAINERS (Write After Approval): Add myself.
18444
e5d78223
JB
184452020-01-01 Joel Brobecker <brobecker@adacore.com>
18446
18447 * gdbarch.sh: Update copyright year range of generated files.
18448
b811d2c2
JB
184492020-01-01 Joel Brobecker <brobecker@adacore.com>
18450
18451 Update copyright year range in all GDB files.
18452
5f4def5c
JB
184532020-01-01 Joel Brobecker <brobecker@adacore.com>
18454
18455 * copyright.py: Convert to Python 3.
18456
51fd4002
JB
184572020-01-01 Joel Brobecker <brobecker@adacore.com>
18458
18459 * copyright.py: Adapt after move of gnulib directory from gdb
18460 directory to toplevel directory.
18461
5fb651f2
JB
184622020-01-01 Joel Brobecker <brobecker@adacore.com>
18463
18464 * copyright.py (main): Exit if run from the wrong directory.
18465
5dd8bf88
JB
184662020-01-01 Joel Brobecker <brobecker@adacore.com>
18467
18468 * top.c (print_gdb_version): Change copyright year to 2020.
18469
9f71dacb 184702020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18471
9f71dacb 18472 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18473
9f71dacb 18474For older changes see ChangeLog-2019.
c906108c
SS
18475\f
18476Local Variables:
18477mode: change-log
18478left-margin: 8
18479fill-column: 74
18480version-control: never
57da7796 18481coding: utf-8
c906108c 18482End: