]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Preserve gdb_std{out, err, log, targ, targerr} across interpreter_exec_cmd
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e1ff6226
PW
12020-12-21 Peter Waller <p@pwaller.net>
2
3 * interps.c (interpreter_exec_cmd): Restore streams pointers.
4
98d837f0
MM
52020-12-21 Markus Metzger <markus.t.metzger@intel.com>
6
7 * record.c (require_record_target): Rephrase error message.
8 (info_record_command): Likewise.
9
fa639f55
HD
102020-12-19 Hannes Domani <ssbssa@yahoo.de>
11
12 PR exp/27070
13 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
14
0455b7d3
BE
152020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
16
17 * configure.ac: Move the static libs vs. source-highlight
18 error message to a better place.
19 * configure: Regenerate.
20
e51765f9
HD
212020-12-18 Hannes Domani <ssbssa@yahoo.de>
22
23 * gdb-gdb.py.in: Fix main_type field name.
24
4aea001f
HD
252020-12-18 Hannes Domani <ssbssa@yahoo.de>
26
27 * python/py-value.c (valpy_format_string): Implement address keyword.
28
b3f9469b
HD
292020-12-18 Hannes Domani <ssbssa@yahoo.de>
30
31 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
32
a9e48095
JN
332020-12-18 Jameson Nash <vtjnash@gmail.com>
34
35 * coffread.c (linetab_offset): Change type to file_ptr.
36 (linetab_size): Likewise.
37 (enter_linenos): Change parameter type to file_ptr.
38 (init_lineno): Likewise.
39 (init_stringtab): Likewise.
40 (coff_symtab_read): Likewise.
41 (coff_symfile_read): Change variable types to file_ptr.
42
844a6538
TT
432020-12-17 Tom Tromey <tromey@adacore.com>
44
45 * printcmd.c (print_variable_and_value): Don't use n_spaces.
46
32f47895
TT
472020-12-17 Tom Tromey <tromey@adacore.com>
48
49 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
50 (print_gnat_stuff, print_fixed_point_type_info)
51 (recursive_dump_type): Update.
52 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
53 * c-typeprint.c (c_type_print_base_struct_union)
54 (c_type_print_base_1): Update.
55 * rust-lang.c (rust_internal_print_type): Update.
56 * f-typeprint.c (f_language::f_type_print_base): Update.
57 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
58 * m2-typeprint.c (m2_record_fields): Update.
59 * p-typeprint.c (pascal_type_print_base): Update.
60 * compile/compile-loc2c.c (push, pushf, unary, binary)
61 (do_compile_dwarf_expr_to_c): Update.
62 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
63
c5c41205
TT
642020-12-16 Tom Tromey <tom@tromey.com>
65
66 * rust-exp.y (rust_lex_tests): Update.
67 * parser-defs.h (parser_state): Add void_p parameter.
68 <void_context_p>: New member.
69 * parse.c (parse_exp_in_context): Update.
70 * language.h (language_defn::post_parser): Remove void_context_p,
71 completing, tracker parameters. Add parser state.
72 * ada-lang.c (ada_language::post_parser): Update.
73
35c1ab60
TT
742020-12-16 Tom Tromey <tom@tromey.com>
75
76 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
77 (parse_exp_in_context): Change void_context_p to bool.
78 * language.h (struct language_defn) <post_parser>: Change
79 void_context_p to bool.
80 * ada-lang.c (class ada_language) <post_parser>: Update.
81
2f228731
TT
822020-12-16 Tom Tromey <tom@tromey.com>
83 Tom Tromey <tromey@redhat.com>
84 Tom de Vries <tdevries@suse.de>
85
86 * utils.h (get_chars_per_line): Declare.
87 * utils.c (get_chars_per_line): New function.
88 (fputs_maybe_filtered): Handle '\r'.
89 * ui-out.h (ui_out::progress_meter): New class.
90 (ui_out::progress, ui_out::do_progress_start)
91 (ui_out::do_progress_notify, ui_out::do_progress_end): New
92 methods.
93 * ui-out.c (do_progress_end)
94 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
95 functions.
96 * mi/mi-out.h (mi_ui_out::do_progress_start)
97 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
98 methods.
99 * cli-out.h (struct cli_ui_out) <do_progress_start,
100 do_progress_notify, do_progress_end>: New methods.
101 <enum meter_stat, struct cli_progress_info>: New.
102 <m_meters>: New member.
103 * cli-out.c (cli_ui_out::do_progress_start)
104 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
105 methods.
106
bfbe4b84
LM
1072020-12-16 Luis Machado <luis.machado@linaro.org>
108
109 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
110
19007d95
LM
1112020-12-16 Luis Machado <luis.machado@linaro.org>
112
113 * aarch64-linux-nat.c
114 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
115
a33fc9ae
RK
1162020-12-15 Rae Kim <rae.kim@gmail.com>
117
118 * cli/cli-script.c (do_document_command): Rename from
119 document_command. Handle multi-line input.
120 (multi_line_command_p): Handle document_control.
121 (build_command_line): Likewise.
122 (execute_control_command_1): Likewise.
123 (process_next_line): Likewise.
124 (document_command): Call do_document_command.
125 * cli/cli-script.h (enum command_control_type): Add
126 document_control.
127
efd7ff14
TT
1282020-12-15 Tom Tromey <tom@tromey.com>
129
130 * stap-probe.c (stap_probe::evaluate_argument): Use
131 evaluate_expression.
132 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
133 evaluate_expression.
134 * value.h (evaluate_expression): Add expect_type parameter.
135 * objc-lang.c (print_object_command): Call evaluate_expression.
136 * eval.c (evaluate_expression): Add expect_type parameter.
137
2adab65c
TT
1382020-12-15 Tom Tromey <tom@tromey.com>
139
140 * varobj.c (varobj_create): Use first_opcode.
141 * value.c (init_if_undefined_command): Use first_opcode.
142 * typeprint.c (whatis_exp): Use first_opcode.
143 * tracepoint.c (validate_actionline): Use first_opcode.
144 (encode_actions_1): Use first_opcode.
145 * stack.c (return_command): Use first_opcode.
146 * expression.h (struct expression) <first_opcode>: New method.
147 * eval.c (parse_and_eval_type): Use first_opcode.
148 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
149
1ab8280d
TT
1502020-12-15 Tom Tromey <tom@tromey.com>
151
152 * f-lang.c (evaluate_subexp_f): Update.
153 * expression.h (evaluate_subexp_do_call): Update.
154 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
155 nargs, argvec with array_view.
156 (evaluate_funcall): Update.
157
cf608cc4
TT
1582020-12-15 Tom Tromey <tom@tromey.com>
159
160 * ada-lang.c (num_component_specs): Remove.
161 (assign_aggregate): Update.
162 (aggregate_assign_positional, aggregate_assign_from_choices)
163 (aggregate_assign_others, add_component_interval): Change
164 arguments.
165
0e5ad442
TT
1662020-12-15 Tom Tromey <tromey@adacore.com>
167
168 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
169 command names.
170
a6f3c8a1
TT
1712020-12-14 Tom Tromey <tom@tromey.com>
172
173 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
174 * typeprint.c (whatis_exp): Always use evaluate_type.
175 (maintenance_print_type): Likewise. Simplify.
176
86b44259
TT
1772020-12-14 Tom Tromey <tromey@adacore.com>
178
179 * dictionary.c (language_defn::search_name_hash): Ignore "B".
180 * ada-lang.c (advance_wild_match): Ignore "B".
181 (full_match): Remove.
182 (do_full_match): Rewrite.
183
25a1127b
TT
1842020-12-14 Tom Tromey <tromey@adacore.com>
185
186 * ada-lang.c (get_var_value): Only consider exact matches.
187
e26624c6
TT
1882020-12-14 Tom Tromey <tromey@adacore.com>
189
190 * dwarf2/read.c (rewrite_array_type): New function.
191 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
192
a3bdae4e
TT
1932020-12-14 Tom Tromey <tromey@adacore.com>
194
195 * valarith.c (fixed_point_binop): Call error on division by zero.
196
f5756acc
TT
1972020-12-13 Tom Tromey <tom@tromey.com>
198
199 * gdbtypes.c (safe_parse_type): Make argument const.
200 * value.h (parse_and_eval_type): Make argument const.
201 * eval.c (parse_and_eval_type): Make argument const.
202
ee9812a0
AB
2032020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * NEWS: Mention new commands.
206 * target-dcache.c: Add 'cli/cli-cmds.h' include.
207 (maint_flush_dcache_command): New function.
208 (_initialize_target_dcache): Create new 'maint flush dcache'
209 command.
210
50a5f187
AB
2112020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
212
213 * NEWS: Mention new commands, and that the old commands are now
214 deprecated.
215 * cli/cli-cmds.c (maintenanceflushlist): Define.
216 * cli/cli-cmds.h (maintenanceflushlist): Declare.
217 * maint.c (_initialize_maint_cmds): Initialise
218 maintenanceflushlist.
219 * regcache.c: Add 'cli/cli-cmds.h' include.
220 (reg_flush_command): Add header comment.
221 (_initialize_regcache): Create new 'maint flush register-cache'
222 command, make 'flushregs' an alias.
223 * symtab.c: Add 'cli/cli-cmds.h' include.
224 (_initialize_symtab): Create new 'maint flush symbol-cache'
225 command, make old command an alias.
226
19c659f1
AB
2272020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
228
229 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
230 result from lookup_cmd_composition_1, use the prefixes from both
231 the command and the alias instead.
232 (lookup_cmd_composition_1): Initial prefix command is the based on
233 the search list being passed in. Simplify the logic for tracking
234 the prefix command. Replace a use of alloca with a local
235 std::string.
236
44c77c32
AB
2372020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
240 of NULL. Don't print message piece by piece, but sentence at a
241 time to allow internationalisation. Some whitespace cleanup.
242
9ef6d4a1
AB
2432020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
244
245 PR cli/15104
246 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
247 deprecated_cmd_warning.
248 (deprecated_cmd_warning): Take extra parameter, call
249 lookup_cmd_composition_1 and pass new parameter through.
250 (lookup_cmd_composition_1): New function, takes implementation of
251 lookup_cmd_composition but with extra parameter.
252 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
253 passing in cmdlist.
254 * command.h (deprecated_cmd_warning): Add extra parameter to
255 declaration.
256 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
257
1536146f
AB
2582020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
259
260 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
261 command.h, add extra parameter, and use this to guard giving a
262 warning.
263 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
264 include argument names in declaration, add new argument.
265 * completer.c (complete_line_internal_1): Remove unneeded
266 brackets, pass extra argument to lookup_cmd_1.
267
94ba44a6
SM
2682020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
269
270 * infrun.h (debug_infrun): Make a bool.
271 * infrun.c (debug_infrun): Make a bool.
272 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
273 debug infrun".
274
74b773fc
SM
2752020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
276
277 * displaced-stepping.h (displaced_debug_printf): Use
278 debug_prefixed_printf_cond.
279 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
280 (dwarf_read_debug_printf_v): Likewise.
281 * infrun.h (infrun_debug_printf): Likewise.
282 * linux-nat.c (linux_nat_debug_printf): Likewise.
283
02c72701
TT
2842020-12-11 Tom Tromey <tom@tromey.com>
285
286 * p-exp.y (intvar): Remove global.
287 (DOLLAR_VARIABLE): Change type.
288 (start): Update.
289 (exp): Call write_dollar_variable here...
290 (yylex): ... not here.
291 * m2-exp.y (DOLLAR_VARIABLE): Change type.
292 (variable): Call write_dollar_variable here...
293 (yylex): ... not here.
294 * f-exp.y (DOLLAR_VARIABLE): Change type.
295 (exp): Call write_dollar_variable here...
296 (yylex): ... not here.
297
07d9937a
TT
2982020-12-11 Tom Tromey <tom@tromey.com>
299
300 * varobj.c (varobj_create): Update.
301 (install_variable): Return void.
302
1345dee2
TT
3032020-12-11 Tom Tromey <tom@tromey.com>
304
305 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
306
446d2c03
TT
3072020-12-11 Tom Tromey <tom@tromey.com>
308
309 * varobj.c (varobj_clear_saved_item): Remove.
310 (update_dynamic_varobj_children): Update.
311 (varobj::~varobj): Don't call varobj_clear_saved_item.
312
11106495
TT
3132020-12-11 Tom Tromey <tom@tromey.com>
314
315 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
316 (update_dynamic_varobj_children, create_child)
317 (create_child_with_value): Update.
318 * varobj-iter.h (struct varobj_item) <value>: Now a
319 value_ref_ptr.
320 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
321
24fd95b4
TT
3222020-12-11 Tom Tromey <tom@tromey.com>
323
324 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
325 (varobj_get_iterator): Return unique_ptr.
326 (update_dynamic_varobj_children, install_visualizer)
327 (varobj::~varobj): Update.
328 * python/python-internal.h (py_varobj_get_iterator): Return
329 unique_ptr.
330 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
331
74462664
TT
3322020-12-11 Tom Tromey <tom@tromey.com>
333
334 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
335 (varobj_clear_saved_item, update_dynamic_varobj_children):
336 Update.
337
60ee72f6
TT
3382020-12-11 Tom Tromey <tom@tromey.com>
339
340 * varobj.c (update_dynamic_varobj_children): Update.
341 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
342 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
343 type.
344 (py_varobj_iter::next): Likewise.
345
54746ce3
TT
3462020-12-11 Tom Tromey <tom@tromey.com>
347
348 * varobj.c (update_dynamic_varobj_children, install_visualizer)
349 (varobj::~varobj): Update.
350 * varobj-iter.h (struct varobj_iter): Change to interface class.
351 (struct varobj_iter_ops): Remove.
352 (varobj_iter_next, varobj_iter_delete): Remove.
353 * python/py-varobj.c (struct py_varobj_iter): Derive from
354 varobj_iter. Add constructor, destructor. Rename members.
355 (py_varobj_iter::~py_varobj_iter): Rename from
356 py_varobj_iter_dtor.
357 (py_varobj_iter::next): Rename from py_varobj_iter_next.
358 (py_varobj_iter_ops): Remove.
359 (py_varobj_iter): Rename from py_varobj_iter_ctor.
360 (py_varobj_iter_new): Remove.
361 (py_varobj_get_iterator): Update.
362
d8f168dd
TT
3632020-12-11 Tom Tromey <tom@tromey.com>
364
365 * varobj.h (all_root_varobjs): Take a function_view.
366 * varobj.c (all_root_varobjs): Take a function_view.
367 (varobj_invalidate_iter): Remove unused parameter.
368 (varobj_invalidate): Update.
369 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
370 (mi_cmd_var_update_iter): Change parameters.
371
76deb5d9
TT
3722020-12-11 Tom Tromey <tom@tromey.com>
373
374 * varobj.c (struct varobj_root) <next>: Remove.
375 (struct vlist): Remove.
376 (rootlist): Now a std::list.
377 (install_variable, uninstall_variable, all_root_varobjs): Update.
378
2c1413a9
TT
3792020-12-11 Tom Tromey <tom@tromey.com>
380
381 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
382 (varobj_table): Now htab_t.
383 (varobj_get_handle, install_variable, uninstall_variable):
384 Update.
385 (hash_varobj, eq_varobj_and_string): New functions.
386 (hash_varobj): Update.
387
b6433ede
TT
3882020-12-11 Tom Tromey <tom@tromey.com>
389
390 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
391 * ada-lang.c (check_status_exception): Update.
392 * breakpoint.c (free_bp_location): Remove.
393 (decref_bp_location): Use bp_location_ref_policy.
394 (bpstats::bpstats): Don't call incref_bp_location.
395 (bpstats::~bpstats): Remove.
396 (bpstats::bpstats): Update.
397 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
398 (bp_location::bp_location): Update.
399 (incref_bp_location): Remove.
400 (bkpt_print_it): Update.
401 * breakpoint.h (class bp_location): Derive from
402 refcounted_object.
403 (struct bpstats): Remove destructor.
404 <bp_location_at>: Now a bp_location_ref_ptr.
405 <refc>: Remove.
406 (bp_location_ref_ptr): New typedef.
407 (struct bp_location_ref_policy): New.
408
bfcb9db8
TT
4092020-12-11 Tom Tromey <tom@tromey.com>
410
411 * thread.c (class scoped_inc_dec_ref): Remove.
412 (tp_array_compar_ascending, tp_array_compar_descending): Change
413 parameter types.
414 (thread_apply_all_command): Use thread_info_ref.
415
d634cd0b
TT
4162020-12-11 Tom Tromey <tom@tromey.com>
417
418 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
419 (stop_context::stop_context): Update.
420 (stop_context::~stop_context): Remove.
421
51107df5
TT
4222020-12-11 Tom Tromey <tom@tromey.com>
423
424 * inferior.c (current_inferior_): Change type.
425 (current_inferior, set_current_inferior, initialize_inferiors):
426 Update.
427
15f4dddd
TT
4282020-12-11 Tom Tromey <tom@tromey.com>
429
430 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
431 Change type.
432
a9f14fa5
TT
4332020-12-11 Tom Tromey <tromey@adacore.com>
434
435 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
436 field.
437 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
438 (read_atcb): Use cpu_id_offset.
439
2ccee230
KB
4402020-12-10 Kevin Buettner <kevinb@redhat.com>
441
442 * ada-lang.c (ada_fold_name): Fix off-by-one error.
443
ae1f4d2d
LM
4442020-12-10 Luis Machado <luis.machado@linaro.org>
445
446 * breakpoint.c (should_be_inserted): Don't output newline.
447
6afcd2d4
LM
4482020-12-10 Luis Machado <luis.machado@linaro.org>
449
450 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
451 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
452 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
453 * arch/aarch64.h: ... here.
454 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
455 (aarch64_maybe_swab128): New function.
456 (aarch64_sve_regs_copy_to_reg_buf)
457 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
458 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
459 the data field.
460 (TF_REG_VALUE_BYTES): New enum value.
461 (trad_frame_value_bytes_p): New function.
462 (trad_frame_set_value_bytes): New function.
463 (trad_frame_set_reg_value_bytes): New function.
464 (trad_frame_get_prev_register): Handle register values saved as bytes.
465 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
466 (struct trad_frame_saved_reg) <data>: New field.
467 (trad_frame_set_value_bytes): New prototype.
468 (trad_frame_value_bytes_p): New prototype.
469
15cc148f
MS
4702020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
471
472 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
473 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
474 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
475
12932e2c
TT
4762020-12-09 Tom Tromey <tromey@adacore.com>
477
478 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
479
5cde1d82
TT
4802020-12-09 Tom Tromey <tromey@adacore.com>
481
482 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
483 and "denominator" to gdb_mpz. Handle block forms.
484 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
485 "denominator" to gdb_mpz.
486 (finish_fixed_point_type): Update.
487 (has_zero_over_zero_small_attribute): Update.
488
d9c3a9c0
TT
4892020-12-09 Tom Tromey <tromey@adacore.com>
490
491 * expprint.c (op_name): Update.
492 * expression.h (enum exp_opcode): Update.
493 * std-operator.def: Add more opcodes.
494 * ada-operator.def, fortran-operator.def: Remove, moving contents
495 into std-operator.def.
496
6ad368b8
SM
4972020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
498
499 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
500 Return {} instead of false.
501 (get_discrete_bounds): Compute high bound only if low bound is
502 valid.
503
5b56203a
SM
5042020-12-09 Simon Marchi <simon.marchi@efficios.com>
505
506 PR 26875, PR 26901
507 * gdbtypes.c (get_discrete_low_bound): Make non-static.
508 (get_discrete_high_bound): Make non-static.
509 * gdbtypes.h (get_discrete_low_bound): New declaration.
510 (get_discrete_high_bound): New declaration.
511 * valarith.c (value_subscript): Only fetch high bound if
512 necessary.
513
14c09924
SM
5142020-12-09 Simon Marchi <simon.marchi@efficios.com>
515
516 * gdbtypes.c (get_discrete_bounds): Implement with
517 get_discrete_low_bound and get_discrete_high_bound.
518 (get_discrete_low_bound): New.
519 (get_discrete_high_bound): New.
520
1f8d2881
SM
5212020-12-09 Simon Marchi <simon.marchi@efficios.com>
522
523 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
524 callers.
525 * gdbtypes.c (get_discrete_bounds): Return bool.
526
6244c119
SM
5272020-12-09 Simon Marchi <simon.marchi@efficios.com>
528
529 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
530 (ada_value_slice): Adjust.
531 (pos_atr): Adjust.
532 * gdbtypes.c (get_discrete_bounds): Adjust.
533 (discrete_position): Return optional.
534 * gdbtypes.h (discrete_position): Return optional.
535
a4915e8d
TT
5362020-12-07 Tom Tromey <tromey@adacore.com>
537
538 * maint.c (_initialize_maint_cmds): Use expression command
539 completer for "maint print type".
540
1f58f6c2
TBA
5412020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
542
543 * completer.c (complete_explicit_location): Also add keywords
544 that start with '-' to the completion list.
545
5759831a
TBA
5462020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
547
548 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
549 keyword may be followed by any keyword.
550 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
551 'toklen' in the case for "-force-condition".
552
21e051b3
TBA
5532020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
554
555 * main.c (catch_command_errors): Add a flag parameter; invoke
556 `bpstat_do_actions` if the flag is set.
557 (execute_cmdargs): Update a call to `catch_command_errors`.
558
f51f9f1d
TV
5592020-12-07 Tom de Vries <tdevries@suse.de>
560
561 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
562
00158a68
TT
5632020-12-06 Tom Tromey <tom@tromey.com>
564
565 PR ada/26999
566 * ada-lang.c (replace_operator_with_call): Rewrite.
567
296cfb88
GF
5682020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
569
570 PR breakpoints/27009
571 * s390-tdep.h (op_bc): Correct BC opcode value.
572
63c457b9
JB
5732020-12-06 Joel Brobecker <brobecker@adacore.com>
574
575 * gmp-utils.h (gdb_mpz::safe_export): New private method.
576 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
577 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
578 (gdb_mpz::safe_export): New method.
579 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
580 Update function description.
581 (check_as_integer_raises_out_of_range_error): New function.
582 (gdb_mpz_as_integer_out_of_range): New function.
583 (_initialize_gmp_utils_selftests): Register
584 gdb_mpz_as_integer_out_of_range as a selftest.
585
3c7ba803
JB
5862020-12-05 Joel Brobecker <brobecker@adacore.com>
587
588 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
589 TARGET_CHAR_BIT.
590 (gdb_mpz::write): Likewise.
591
372ff58f
SM
5922020-12-04 Simon Marchi <simon.marchi@efficios.com>
593
594 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
595 number of displaced step buffers.
596
480af54c
SM
5972020-12-04 Simon Marchi <simon.marchi@efficios.com>
598
599 * displaced-stepping.h (struct displaced_step_buffer): Rename
600 to...
601 (struct displaced_step_buffers): ... this.
602 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
603 <struct displaced_step_buffer>: New inner class.
604 <m_buffers>: New.
605 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
606 to...
607 (displaced_step_buffers::prepare): ... this, adjust for multiple
608 buffers.
609 (displaced_step_buffer::finish): Rename to...
610 (displaced_step_buffers::finish): ... this, adjust for multiple
611 buffers.
612 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
613 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
614 adjust for multiple buffers.
615 (displaced_step_buffer::restore_in_ptid): Rename to...
616 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
617 multiple buffers.
618 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
619 for num_disp_step_buffers.
620 * linux-tdep.c (struct linux_gdbarch_data)
621 <num_disp_step_buffers>: New field.
622 (struct linux_info) <disp_step_buf>: Rename to...
623 <disp_step_bufs>: ... this, change type to
624 displaced_step_buffers.
625 (linux_displaced_step_prepare): Use
626 linux_gdbarch_data::num_disp_step_buffers to create that number
627 of buffers.
628 (linux_displaced_step_finish): Adjust.
629 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
630 (linux_displaced_step_restore_all_in_ptid): Adjust.
631 (linux_init_abi): Change supports_displaced_step parameter for
632 num_disp_step_buffers, save it in linux_gdbarch_data.
633 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
634 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
635 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
636 supports_displaced_step parameter for num_disp_step_buffers.
637 (amd64_linux_init_abi): Adjust.
638 (amd64_x32_linux_init_abi): Adjust.
639 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
640 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
641 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
642 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
643 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
644 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
645 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
646 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
647 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
648 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
649 * m68k-linux-tdep.c (m68k_linux_init_abi):
650 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
651 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
652 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
653 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
654 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
655 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
656 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
657 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
658 Change type to displaced_step_buffers.
659 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
660 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
661 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
662 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
663 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
664 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
665 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
666
d9655058
SM
6672020-12-04 Simon Marchi <simon.marchi@efficios.com>
668
669 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
670 obkstack.
671 (_initialize_linux_tdep): Register pre-init gdb data instead of
672 post-init.
673
187b041e
SM
6742020-12-04 Simon Marchi <simon.marchi@efficios.com>
675
676 * displaced-stepping.h (struct
677 displaced_step_copy_insn_closure): Adjust comments.
678 (struct displaced_step_inferior_state) <step_thread,
679 step_gdbarch, step_closure, step_original, step_copy,
680 step_saved_copy>: Remove fields.
681 (struct displaced_step_thread_state): New.
682 (struct displaced_step_buffer): New.
683 * displaced-stepping.c (displaced_step_buffer::prepare): New.
684 (write_memory_ptid): Move from infrun.c.
685 (displaced_step_instruction_executed_successfully): New,
686 factored out of displaced_step_finish.
687 (displaced_step_buffer::finish): New.
688 (displaced_step_buffer::copy_insn_closure_by_addr): New.
689 (displaced_step_buffer::restore_in_ptid): New.
690 * gdbarch.sh (displaced_step_location): Remove.
691 (displaced_step_prepare, displaced_step_finish,
692 displaced_step_copy_insn_closure_by_addr,
693 displaced_step_restore_all_in_ptid): New.
694 * gdbarch.c: Re-generate.
695 * gdbarch.h: Re-generate.
696 * gdbthread.h (class thread_info) <displaced_step_state>: New
697 field.
698 (thread_step_over_chain_remove): New declaration.
699 (thread_step_over_chain_next): New declaration.
700 (thread_step_over_chain_length): New declaration.
701 * thread.c (thread_step_over_chain_remove): Make non-static.
702 (thread_step_over_chain_next): New.
703 (global_thread_step_over_chain_next): Use
704 thread_step_over_chain_next.
705 (thread_step_over_chain_length): New.
706 (global_thread_step_over_chain_enqueue): Add debug print.
707 (global_thread_step_over_chain_remove): Add debug print.
708 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
709 Remove.
710 * infrun.c (get_displaced_stepping_state): New.
711 (displaced_step_in_progress_any_inferior): Remove.
712 (displaced_step_in_progress_thread): Adjust.
713 (displaced_step_in_progress): Adjust.
714 (displaced_step_in_progress_any_thread): New.
715 (get_displaced_step_copy_insn_closure_by_addr): Remove.
716 (gdbarch_supports_displaced_stepping): Use
717 gdbarch_displaced_step_prepare_p.
718 (displaced_step_reset): Change parameter from inferior to
719 thread.
720 (displaced_step_prepare_throw): Implement using
721 gdbarch_displaced_step_prepare.
722 (write_memory_ptid): Move to displaced-step.c.
723 (displaced_step_restore): Remove.
724 (displaced_step_finish): Implement using
725 gdbarch_displaced_step_finish.
726 (start_step_over): Allow starting more than one displaced step.
727 (prepare_for_detach): Handle possibly multiple threads doing
728 displaced steps.
729 (handle_inferior_event): Handle possibility that fork event
730 happens while another thread displaced steps.
731 * linux-tdep.h (linux_displaced_step_prepare): New.
732 (linux_displaced_step_finish): New.
733 (linux_displaced_step_copy_insn_closure_by_addr): New.
734 (linux_displaced_step_restore_all_in_ptid): New.
735 (linux_init_abi): Add supports_displaced_step parameter.
736 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
737 (linux_displaced_step_prepare): New.
738 (linux_displaced_step_finish): New.
739 (linux_displaced_step_copy_insn_closure_by_addr): New.
740 (linux_displaced_step_restore_all_in_ptid): New.
741 (linux_init_abi): Add supports_displaced_step parameter,
742 register displaced step methods if true.
743 (_initialize_linux_tdep): Register inferior_execd observer.
744 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
745 supports_displaced_step parameter, adjust call to
746 linux_init_abi. Remove call to
747 set_gdbarch_displaced_step_location.
748 (amd64_linux_init_abi): Adjust call to
749 amd64_linux_init_abi_common.
750 (amd64_x32_linux_init_abi): Likewise.
751 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
752 linux_init_abi. Remove call to
753 set_gdbarch_displaced_step_location.
754 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
755 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
756 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
757 linux_init_abi.
758 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
759 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
760 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
761 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
762 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
763 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
764 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
765 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
766 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
767 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
768 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
769 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
770 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
771 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
772 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
773 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
774 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
775 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
776 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
777 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
778 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
779 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
780 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
781 linux_init_abi. Remove call to
782 set_gdbarch_displaced_step_location.
783 * arm-tdep.c (arm_pc_is_thumb): Call
784 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
785 get_displaced_step_copy_insn_closure_by_addr.
786 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
787 clear gdbarch methods.
788 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
789 (get_ppc_per_inferior): New function.
790 (ppc_displaced_step_prepare): New function.
791 (ppc_displaced_step_finish): New function.
792 (ppc_displaced_step_restore_all_in_ptid): New function.
793 (rs6000_gdbarch_init): Register new gdbarch methods.
794 * s390-tdep.c (s390_gdbarch_init): Don't call
795 set_gdbarch_displaced_step_location, set new gdbarch methods.
796
c7acb87b
SM
7972020-12-04 Simon Marchi <simon.marchi@efficios.com>
798
799 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
800 * aarch64-tdep.h: Include displaced-stepping.h.
801 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
802 Move here.
803 (displaced_step_copy_insn_closure_up): Move here.
804 (struct buf_displaced_step_copy_insn_closure): Move here.
805 (struct displaced_step_inferior_state): Move here.
806 (debug_displaced): Move here.
807 (displaced_debug_printf_1): Move here.
808 (displaced_debug_printf): Move here.
809 * displaced-stepping.c: New file.
810 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
811 * gdbarch.h: Re-generate.
812 * inferior.h: Include displaced-stepping.h.
813 * infrun.h (debug_displaced): Move to displaced-stepping.h.
814 (displaced_debug_printf_1): Likewise.
815 (displaced_debug_printf): Likewise.
816 (struct displaced_step_copy_insn_closure): Likewise.
817 (displaced_step_copy_insn_closure_up): Likewise.
818 (struct buf_displaced_step_copy_insn_closure): Likewise.
819 (struct displaced_step_inferior_state): Likewise.
820 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
821 (displaced_debug_printf_1): Likewise.
822 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
823 Likewise.
824 (_initialize_infrun): Don't register "set/show debug displaced".
825
94b24c74
SM
8262020-12-04 Simon Marchi <simon.marchi@efficios.com>
827
828 * linux-tdep.c (get_linux_inferior_data): Add inferior
829 parameter.
830 (linux_vsyscall_range): Pass current inferior.
831
bab37966
SM
8322020-12-04 Simon Marchi <simon.marchi@efficios.com>
833
834 * infrun.c (displaced_step_prepare_throw): Change return type to
835 displaced_step_prepare_status.
836 (displaced_step_prepare): Likewise.
837 (displaced_step_finish): Change return type to
838 displaced_step_finish_status.
839 (resume_1): Adjust.
840 (stop_all_threads): Adjust.
841 * displaced-stepping.h: New file.
842
7def77a1
SM
8432020-12-04 Simon Marchi <simon.marchi@efficios.com>
844
845 * infrun.c (displaced_step_fixup): Rename to...
846 (displaced_step_finish): ... this, update all callers.
847
1152d984
SM
8482020-12-04 Simon Marchi <simon.marchi@efficios.com>
849
850 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
851 (get_displaced_step_copy_insn_closure_by_addr): ... this.
852 Update all users.
853 (displaced_step_closure): Rename to...
854 (displaced_step_copy_insn_closure): ... this. Update all users.
855 (displaced_step_closure_up): Rename to...
856 (displaced_step_copy_insn_closure_up). ... this. Update all
857 users.
858 (buf_displaced_step_closure): Rename to...
859 (buf_displaced_step_copy_insn_closure): ... this. Update all
860 users.
861 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
862 (get_displaced_step_copy_insn_closure_by_addr): ... this.
863 Update all users.
864 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
865 (aarch64_displaced_step_copy_insn_closure): ... this. Update
866 all users.
867 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
868 (amd64_displaced_step_copy_insn_closure): ... this. Update all
869 users.
870 * arm-tdep.h (arm_displaced_step_closure): Rename to...
871 (arm_displaced_step_copy_insn_closure): ... this. Update all
872 users.
873 * i386-tdep.h (i386_displaced_step_closure): Rename to...
874 (i386_displaced_step_copy_insn_closure): ... this. Update all
875 users.
876 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
877 (ppc_displaced_step_copy_insn_closure): ... this. Update all
878 users.
879 * s390-tdep.c (s390_displaced_step_closure): Rename to...
880 (s390_displaced_step_copy_insn_closure): ... this. Update all
881 users.
882 * gdbarch.h: Re-generate.
883 * gdbarch.c: Re-generate.
884
28d5518b
SM
8852020-12-04 Simon Marchi <simon.marchi@efficios.com>
886
887 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
888 (global_thread_step_over_chain_enqueue): ... this. Update all
889 users.
890 (thread_step_over_chain_remove): Rename to...
891 (global_thread_step_over_chain_remove): ... this. Update all
892 users.
893 (thread_step_over_chain_next): Rename to...
894 (global_thread_step_over_chain_next): ... this. Update all
895 users.
896 * infrun.h (step_over_queue_head): Rename to...
897 (global_thread_step_over_chain_head): ... this. Update all
898 users.
899 * infrun.c (step_over_queue_head): Rename to...
900 (global_thread_step_over_chain_head): ... this. Update all
901 users.
902 * thread.c (step_over_chain_remove): Rename to...
903 (thread_step_over_chain_remove): ... this. Update all users.
904 (thread_step_over_chain_next): Rename to...
905 (global_thread_step_over_chain_next): ... this. Update all
906 users.
907 (thread_step_over_chain_enqueue): Rename to...
908 (global_thread_step_over_chain_enqueue): ... this. Update all
909 users.
910 (thread_step_over_chain_remove): Rename to...
911 (global_thread_step_over_chain_remove): ... this. Update all
912 users.
913
f5f01699
SM
9142020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * infrun.c (get_displaced_stepping_state): Remove, change
917 callers to access the field directly.
918
c0aba012
SM
9192020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * infrun.c (handle_inferior_event): Restore displaced step
922 buffer bytes in child process when handling fork, even if fork
923 happened in another thread than the displaced-stepping one.
924
3b7a962d
SM
9252020-12-04 Simon Marchi <simon.marchi@efficios.com>
926
927 * infrun.c (infrun_inferior_execd): New function.
928 (_initialize_infrun): Attach inferior_execd observer.
929
42a4fec5
SM
9302020-12-04 Simon Marchi <simon.marchi@efficios.com>
931
932 * observable.h (inferior_execd): Declare new observable.
933 * observable.c (inferior_execd): Declare new observable.
934 * infrun.c (follow_exec): Notify inferior_execd observer.
935 * jit.c (jit_inferior_created_hook): Make static.
936 (_initialize_jit): Register inferior_execd observer.
937 * jit.h (jit_inferior_created_hook): Remove declaration.
938 * solib.c (_initialize_solib): Register inferior_execd observer.
939
aafdfb4e
TV
9402020-12-04 Tom de Vries <tdevries@suse.de>
941
942 PR gdb/27003
943 * completer.c (completion_tracker::build_completion_result): Don't
944 access match_list[0][-1].
945
f99b5177
TT
9462020-12-04 Tom Tromey <tromey@adacore.com>
947
948 * linespec.c (struct linespec_token): Rename; remove typedef.
949 * guile/scm-block.c (struct block_smob): Remove typedef.
950 (struct block_syms_progress_smob): Likewise.
951 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
952 * guile/scm-symtab.c (symtab_smob): Remove typedef.
953 (struct sal_smob): Remove typedef.
954 * guile/scm-param.c (struct param_smob): Remove typedef.
955 * guile/scm-progspace.c (struct pspace_smob): Rename.
956 * guile/scm-objfile.c (struct objfile_smob): Rename.
957 * guile/scm-iterator.c (struct iterator_smob): Rename.
958 * guile/scm-frame.c (struct frame_smob): Rename.
959 * guile/scm-arch.c (struct arch_smob): Rename.
960 * guile/scm-type.c (struct field_smob): Remove typedef.
961 (struct type_smob): Rename.
962 * guile/scm-cmd.c (struct command_smob): Remove typedef.
963 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
964 * guile/scm-value.c (struct value_smob): Remove typedef.
965 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
966 * guile/guile-internal.h (struct scheme_variable)
967 (struct scheme_function, struct scheme_integer_constant)
968 (struct gdb_smob, struct chained_gdb_smob)
969 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
970 (objfile_smob, pspace_smob, type_smob): Remove typedef.
971 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
972 (struct pretty_printer_worker_smob): Remove typedef.
973 * guile/scm-exception.c (struct exception_smob): Remove typedef.
974 * python/py-block.c (struct block_object): Remove typedef.
975 (block_syms_iterator_object): Update.
976 (set_block): Update.
977 (block_syms_iterator_object): Remove typedef.
978 * python/py-inferior.c (struct membuf_object): Remove typedef.
979 * python/py-symtab.c (struct symtab_object): Remove typedef.
980 (set_symtab): Update.
981 (sal_object): Remove typedef.
982 (set_sal): Update.
983 * python/py-frame.c (frame_object): Remove typedef.
984 * python/py-record-btrace.c (struct btpy_list_object): Remove
985 typedef.
986 * python/py-arch.c (struct arch_object): Remove typedef.
987 * python/py-linetable.c (struct linetable_entry_object)
988 (linetable_object, struct ltpy_iterator_object): Remove typedef.
989 * python/py-events.h (eventregistry_object): Remove typedef.
990 (struct events_object): Remove typedef.
991 * python/python-internal.h (gdbpy_breakpoint_object): Remove
992 typedef.
993 (thread_object): Remove typedef.
994 * python/py-progspace.c (pspace_object): Remove typedef.
995 * python/py-value.c (struct value_object): Remove typedef.
996 * python/py-record.h (recpy_record_object): Remove typedef.
997 (struct recpy_element_object): Remove typedef.
998 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
999 * python/py-objfile.c (objfile_object): Remove typedef.
1000 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1001 * python/py-type.c (type_object): Remove typedef.
1002 (typy_iterator_object): Update.
1003 (set_type): Update.
1004 (field_object): Remove typedef.
1005 (typy_iterator_object): Remove typedef.
1006 * python/py-registers.c (register_descriptor_iterator_object):
1007 Remove typedef.
1008 (struct register_descriptor_object)
1009 (struct reggroup_iterator_object, struct reggroup_object): Remove
1010 typedef.
1011 * python/py-record.c (recpy_gap_object): Remove typedef.
1012 * python/py-symbol.c (symbol_object): Remove typedef.
1013 (set_symbol): Update.
1014 * python/py-event.h (event_object): Remove typedef.
1015 * python/py-param.c (parmpy_object): Remove typedef.
1016 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1017 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1018 (unwind_info_object, struct cached_frame_info): Likewise.
1019
91f87213
TT
10202020-12-04 Tom Tromey <tromey@adacore.com>
1021
1022 * value.c (value_internal_function_name): Make return type const.
1023 * value.h (value_internal_function_name): Make return type const.
1024
5382f971
LM
10252020-12-04 Luis Machado <luis.machado@linaro.org>
1026
1027 * aarch64-tdep.c (submask, bit, bits): Remove.
1028 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1029 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1030 (aarch64_decode_cb, aarch64_decode_tb)
1031 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1032 immediate.
1033 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1034
b6a6aa07
TV
10352020-12-04 Tom de Vries <tdevries@suse.de>
1036
1037 PR tdep/27007
1038 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1039
0bc2e38d
SM
10402020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1041
1042 PR gdb/26876
1043 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1044 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1045
25428040
AB
10462020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1047
1048 * arch/riscv.c: Include 'rv32e-xregs.c'.
1049 (riscv_create_target_description): Update to handle rv32e.
1050 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1051 member variable.
1052 <operator==>: Update to account for new field.
1053 <hash>: Likewise.
1054 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1055 * features/riscv/rv32e-xregs.c: Generated.
1056 * features/riscv/rv32e-xregs.xml: New file.
1057 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1058 file.
1059 (riscv_debug_infcall): Likewise.
1060 (riscv_debug_unwinder): Likewise.
1061 (riscv_debug_gdbarch): Likewise.
1062 (enum riscv_register_required_status): Delete.
1063 (struct riscv_register_feature): Add constructor, delete default
1064 constructor, copy, and assign constructors.
1065 (struct riscv_register_feature::register_info) <required>: Delete.
1066 <check>: Update comment and arguments.
1067 (struct riscv_register_feature) <name>: Change to member function.
1068 <prefer_first_name>: Delete.
1069 <tdesc_feature>: New member function.
1070 <registers>: Rename to...
1071 <m_registers>: ...this.
1072 <m_feature_name>: New member variable.
1073 (riscv_register_feature::register_info::check): Update arguments.
1074 (riscv_xreg_feature): Rewrite as class, create a single static
1075 instance of the class.
1076 (riscv_freg_feature): Likewise.
1077 (riscv_virtual_feature): Likewise.
1078 (riscv_csr_feature): Likewise.
1079 (riscv_create_csr_aliases): Has become a member function inside
1080 riscv_csr_feature class.
1081 (riscv_abi_embedded): New function definition.
1082 (riscv_register_name): Adjust to use new feature objects.
1083 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1084 and adjust available argument registers.
1085 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1086 (riscv_check_tdesc_feature): Delete.
1087 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1088 (riscv_gdbarch_init): Delete target description checking code, and
1089 instead call to the new feature objects to perform the checks.
1090 Reorder handling of no abi information case, allows small code
1091 simplification.
1092 (_initialize_riscv_tdep): Remove call, this is now done in the
1093 riscv_csr_feature constructor.
1094 * riscv-tdep.h (riscv_abi_embedded): Declare.
1095
533b2ae0
AB
10962020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1097
1098 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1099 DECLARE_CSR_ALIAS.
1100
e4502042
AB
11012020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1102
1103 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1104 implementation moved from riscv_register_reggroup_p.
1105 (riscv_register_reggroup_p): Update group handling for unknown
1106 CSRs.
1107
2bf3b79d
SDJ
11082020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1109
1110 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1111 (dwarf2_get_dwz_file): Convert 'filename' to a
1112 std::string. Use dwz_search_other_debugdirs to search for DWZ
1113 files in the debug-file-directories provided by the user as well.
1114
77bf7e99
TT
11152020-12-01 Tom Tromey <tom@tromey.com>
1116
1117 * parse.c (expr_builder::expr_builder): Initialize expout.
1118 (expr_builder::release): Use expression::resize.
1119 (expression::expression, expression::~expression)
1120 (expression::resize): New methods.
1121 (write_exp_elt): Use expression::resize.
1122 (prefixify_expression): Update.
1123 (increase_expout_size): Use expression::resize.
1124 * expression.h (struct expression): Add constructor, destructor.
1125 <resize>: New method.
1126 (expression_up): Change type.
1127
539d71e8
RA
11282020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1129 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1130 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1131 set region.
1132
7ce05d21
TV
11332020-11-30 Tom de Vries <tdevries@suse.de>
1134
1135 PR symtab/26905
1136 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1137 is_reference parameter.
1138 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1139
88b91969
TT
11402020-11-30 Tom Tromey <tom@tromey.com>
1141
1142 * rust-lang.c (rust_op_name): Remove.
1143 (exp_descriptor_rust): Update.
1144 * parser-defs.h (op_name_standard): Don't declare.
1145 (struct exp_descriptor) <op_name>: Remove.
1146 * parse.c (exp_descriptor_standard): Update.
1147 * opencl-lang.c (exp_descriptor_opencl): Update.
1148 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1149 * f-lang.c (op_name_f): Remove.
1150 (f_language::exp_descriptor_tab): Update.
1151 * expression.h (op_name): Update.
1152 * expprint.c (op_name): Rewrite.
1153 (op_name_standard): Remove.
1154 (dump_raw_expression, dump_subexp): Update.
1155 * c-lang.c (exp_descriptor_c): Update.
1156 * ax-gdb.c (gen_expr): Update.
1157 * ada-lang.c (ada_op_name): Remove.
1158 (ada_exp_descriptor): Update.
1159
1cd49c43
TT
11602020-11-30 Tom Tromey <tom@tromey.com>
1161
1162 * eval.c (init_array_element): Remove.
1163 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1164
96fb9086
HD
11652020-11-29 Hannes Domani <ssbssa@yahoo.de>
1166
1167 PR tui/26973
1168 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1169 static locator win info.
1170
b4132322
AR
11712020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1172
1173 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1174 program.
1175
3df8c6af
AB
11762020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1179 is always initialized.
1180
0ae45769
RA
11812020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1182 * MAINTAINERS (Write After Approval): Add myself.
1183
239ca5e4
PW
11842020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1185
1186 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1187 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1188
cbfa382a
TT
11892020-11-25 Tom Tromey <tom@tromey.com>
1190
1191 * eval.c (evaluate_subexp_standard): Remove unnecessary
1192 variables.
1193
af30c400
TT
11942020-11-25 Tom Tromey <tom@tromey.com>
1195
1196 * d-lang.c: Include parser-defs.h.
1197 * rust-lang.c: Include parser-defs.h.
1198 * c-lang.h: Do not include parser-defs.h.
1199
1c64f6cb
SM
12002020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1201
1202 * regcache.h (struct cached_reg): Remove typedef.
1203
2c20a601
JB
12042020-11-24 Joel Brobecker <brobecker@adacore.com>
1205
1206 * README: Fix the URL of the MPFR library.
1207
c609df64
JB
12082020-11-24 Joel Brobecker <brobecker@adacore.com>
1209
1210 * README: Document the --with-libgmp-prefix configure option.
1211
fa123c32
JB
12122020-11-24 Joel Brobecker <brobecker@adacore.com>
1213
1214 * NEWS: Add entry documenting support for DWARF-based fixed
1215 point types.
1216
0fb8bb02
JB
12172020-11-24 Joel Brobecker <brobecker@adacore.com>
1218
1219 * NEWS: Document that building GDB now requires GMP.
1220
4afa9fd9
JB
12212020-11-24 Joel Brobecker <brobecker@adacore.com>
1222
1223 * typeprint.c (print_type_scalar): Add handling of
1224 TYPE_CODE_FIXED_POINT.
1225
af619ce9
JB
12262020-11-24 Joel Brobecker <brobecker@adacore.com>
1227
1228 * valarith.c (fixed_point_binop): Replace the
1229 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1230 users accordingly.
1231
e6fcee3a
JB
12322020-11-24 Joel Brobecker <brobecker@adacore.com>
1233
1234 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1235 replacing fixed_point_scaling_factor. All callers updated
1236 throughout this project.
1237 (fixed_point_scaling_factor): Delete declaration.
1238 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1239 fixed_point_scaling_factor. Adjust implementation accordingly.
1240
d19937a7
JB
12412020-11-24 Joel Brobecker <brobecker@adacore.com>
1242
1243 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1244 replacing the fixed_point_type_base_type function. All callers
1245 updated throughout this project.
1246 (fixed_point_type_base_type): Remove declaration.
1247 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1248 fixed_point_type_base_type. Adjust implementation accordingly.
1249
2a12c336
JB
12502020-11-24 Joel Brobecker <brobecker@adacore.com>
1251
1252 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1253 New methods.
1254 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1255 (TYPE_FIXED_POINT_INFO): Delete macro.
1256 (allocate_fixed_point_type_info): Change return type to void.
1257 * gdbtypes.c (copy_type_recursive): Replace the use of
1258 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1259 (fixed_point_scaling_factor): Likewise.
1260 (allocate_fixed_point_type_info): Change return type to void.
1261 Adjust implementation accordingly.
1262 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1263 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1264
c9f0b43f
JB
12652020-11-24 Joel Brobecker <brobecker@adacore.com>
1266
1267 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1268 into one single gdb::array_view parameter.
1269 (gdb_mpz::write): Likewise.
1270 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1271 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1272 into one single gdb::array_view parameter.
1273 Adjust implementation accordingly.
1274 (gdb_mpz::write): Likewise.
1275 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1276 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1277 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1278
987b6703
JB
12792020-11-24 Joel Brobecker <brobecker@adacore.com>
1280
1281 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1282 Change return type to std::string. Update all callers.
1283 * gmp-utils.c (gmp_string_printf): Likewise.
1284
4fbb7cce
JB
12852020-11-24 Joel Brobecker <brobecker@adacore.com>
1286
1287 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1288 instead of mpq_set_ui to initialize our GMP rational.
1289
d6ab69dd
TV
12902020-11-23 Tom de Vries <tdevries@suse.de>
1291
1292 * debuginfod-support.c (debuginfod_source_query)
1293 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1294
dab72643
TT
12952020-11-21 Tom Tromey <tom@tromey.com>
1296
1297 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1298
c0ad05d5
SM
12992020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1302 Pass 2.0 to pow.
1303 (gdb_mpz_write_all_from_small): Likewise.
1304
a43b29c9
SM
13052020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1308 of abs.
1309
ae41200b
NA
13102020-11-20 Nick Alcock <nick.alcock@oracle.com>
1311
1312 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1313 ctf_arc_open_by_name.
1314
139633c3
NA
13152020-11-20 Nick Alcock <nick.alcock@oracle.com>
1316
1317 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1318 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1319
cbbcd7a7
PA
13202020-11-20 Pedro Alves <pedro@palves.net>
1321
1322 * language.c (language_arch_info::lookup_primitive_type): Use
1323 gdb::function_view instead of gdb::function.
1324 (template language_lookup_primitive_type): Rename to ...
1325 (language_lookup_primitive_type_1): ... this, and make static.
1326 (language_lookup_primitive_type(const struct language_defn *,
1327 struct gdbarch *, const char *): Make non-template.
1328 (language_lookup_primitive_type(const struct language_defn *,
1329 struct gdbarch *, std::function<bool (struct type *)>): Make
1330 non-template and use gdb::function_view.
1331 * language.h (language_arch_info::lookup_primitive_type): Use
1332 gdb::function_view instead of std::function.
1333 (language_lookup_primitive_type): No longer template.
1334 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1335 lambda instead of a std::function.
1336
d5ef21c3
AA
13372020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1338
1339 PR tdep/26916
1340 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1341 and STOCFH.
1342
a5adb8f3
SM
13432020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1344
1345 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1346
70125a45
SM
13472020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1350 in `loop_cb` parameter.
1351 * gdbarch.c: Re-generate.
1352 * gdbarch.h: Re-generate.
1353 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1354 parameter.
1355 * arch-utils.h (default_read_core_file_mappings): Likewise.
1356 * corelow.c (core_target::build_file_mappings): Likewise.
1357 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1358 (linux_core_info_proc_mappings): Likewise.
1359
a5c641b5
AB
13602020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1363 * NEWS: Mention new options.
1364 * f-array-walker.h: New file.
1365 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1366 (repack_array_slices): New static global.
1367 (show_repack_array_slices): New function.
1368 (fortran_array_slicing_debug): New static global.
1369 (show_fortran_array_slicing_debug): New function.
1370 (value_f90_subarray): Delete.
1371 (skip_undetermined_arglist): Delete.
1372 (class fortran_array_repacker_base_impl): New class.
1373 (class fortran_lazy_array_repacker_impl): New class.
1374 (class fortran_array_repacker_impl): New class.
1375 (fortran_value_subarray): Complete rewrite.
1376 (set_fortran_list): New static global.
1377 (show_fortran_list): Likewise.
1378 (_initialize_f_language): Register new commands.
1379 (fortran_adjust_dynamic_array_base_address_hack): New function.
1380 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1381 Declare.
1382 * f-valprint.c: Include 'f-array-walker.h'.
1383 (class fortran_array_printer_impl): New class.
1384 (f77_print_array_1): Delete.
1385 (f77_print_array): Delete.
1386 (fortran_print_array): New.
1387 (f_value_print_inner): Update to call fortran_print_array.
1388 * gdbtypes.c: Include 'f-lang.h'.
1389 (resolve_dynamic_type_internal): Call
1390 fortran_adjust_dynamic_array_base_address_hack.
1391
a15a5258
AB
13922020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * breakpoint.c (struct watch_options): New struct.
1395 (watch_option_defs): New static global.
1396 (make_watch_options_def_group): New function.
1397 (watch_maybe_just_location): Convert option parsing.
1398 (watch_command_completer): New function.
1399 (_initialize_breakpoint): Build help text using options mechanism.
1400
2e362716
AB
14012020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1402
1403 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1404 (watch_command_1): Update parameter types. Convert locals to
1405 bool.
1406 (watch_command_wrapper): Change parameter type.
1407 (watch_maybe_just_location): Change locals to bool.
1408 (rwatch_command_wrapper): Update parameter type.
1409 (awatch_command_wrapper): Update parameter type.
1410 * breakpoint.h (watch_command_wrapper): Change parameter type.
1411 (rwatch_command_wrapper): Update parameter type.
1412 (awatch_command_wrapper): Update parameter type.
1413 * eval.c (fetch_subexp_value): Change parameter type.
1414 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1415 'false' not '0'.
1416 * value.h (fetch_subexp_value): Change parameter type in
1417 declaration.
1418
b3ff61f8
AB
14192020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1422 skip_spaces.
1423
5b7d45d3
KS
14242020-11-18 Keith Seitz <keiths@redhat.com>
1425
1426 * linux-tdep.c (dump_note_entry_p): Return true instead of
1427 checking `filename'.
1428
c44191f8
TV
14292020-11-18 Tom de Vries <tdevries@suse.de>
1430
1431 * debuginfod-support.c (debuginfod_source_query)
1432 (debuginfod_debuginfo_query): Also do early exit if
1433 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1434
5d8254e1
TV
14352020-11-18 Tom de Vries <tdevries@suse.de>
1436
1437 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1438 warning.
1439
584903d3
SM
14402020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1441
1442 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1443 callers. Move doc here.
1444 * gdbtypes.c (get_array_bounds): Return bool
1445
6f2643db
AB
14462020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1449 assert.
1450 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1451 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1452 case to the default.
1453
037d7135
AB
14542020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * printcmd.c: Include 'safe-ctype.c'.
1457 (skip_over_slash_fmt): New function.
1458 (print_command_completer): Call skip_over_slash_fmt.
1459 (display_and_x_command_completer): New function.
1460 (_initialize_printcmd): Add command completion for 'x' and
1461 'display'.
1462
2b3cb400
PA
14632020-11-16 Pedro Alves <pedro@palves.net>
1464
1465 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1466 (get_prev_frame_always_1): ... to here.
1467 * inline-frame.c (inline_frame_this_id): Mention
1468 get_prev_frame_always_1 in comment.
1469
b74dbc20
JB
14702020-11-15 Joel Brobecker <brobecker@adacore.com>
1471
1472 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1473 handling.
1474 (value_less): Add fixed-point handling.
1475
0a12719e
JB
14762020-11-15 Joel Brobecker <brobecker@adacore.com>
1477
1478 * eval.c (binop_promote): Add fixed-point type handling.
1479 * valarith.c (fixed_point_binop): New function.
1480 (scalar_binop): Add fixed-point type handling.
1481 (value_neg): Add fixed-point type handling.
1482 * valops.c (value_cast_to_fixed_point): New function.
1483 (value_cast): Add fixed-point type handling.
1484
0c9150e4
JB
14852020-11-15 Joel Brobecker <brobecker@adacore.com>
1486
1487 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1488 range types.
1489 * c-typeprint.c (c_type_print_varspec_prefix)
1490 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1491 TYPE_CODE_FIXED_POINT handling.
1492 * p-typeprint.c (pascal_type_print_varspec_prefix)
1493 (pascal_type_print_varspec_suffix): Likewise.
1494 * typeprint.c (print_type_fixed_point): New function.
1495 * typeprint.h (print_type_fixed_point): Add declaration.
1496
b26daff9
JB
14972020-11-15 Joel Brobecker <brobecker@adacore.com>
1498
1499 * printcmd.c (print_scalar_formatted): Add fixed-point type
1500 handling when options->format is set.
1501
09584414
JB
15022020-11-15 Joel Brobecker <brobecker@adacore.com>
1503
1504 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1505 * dwarf2/read.c (get_dwarf2_rational_constant)
1506 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1507 (has_zero_over_zero_small_attribute): New functions.
1508 read_base_type, set_die_type): Add fixed-point type handling.
1509 * gdb-gdb.py.in: Add fixed-point type handling.
1510 * gdbtypes.c: #include "gmp-utils.h".
1511 (create_range_type, set_type_code): Add fixed-point type handling.
1512 (init_fixed_point_type): New function.
1513 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1514 (print_fixed_point_type_info): New function.
1515 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1516 handling.
1517 (fixed_point_type_storage): New typedef.
1518 (fixed_point_objfile_key): New static global.
1519 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1520 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1521 functions.
1522 * gdbtypes.h: #include "gmp-utils.h".
1523 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1524 (union type_specific) <fixed_point_info>: New field.
1525 (struct fixed_point_type_info): New struct.
1526 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1527 (init_fixed_point_type, is_fixed_point_type)
1528 (fixed_point_type_base_type, fixed_point_scaling_factor)
1529 (allocate_fixed_point_type_info): Add declarations.
1530 * valprint.c (generic_val_print_fixed_point): New function.
1531 (generic_value_print): Add fixed-point type handling.
1532 * value.c (value_as_address, unpack_long): Add fixed-point type
1533 handling.
1534
e55c6530
JB
15352020-11-15 Joel Brobecker <brobecker@adacore.com>
1536
1537 * utils.h (uinteger_pow): Add declaration.
1538 * utils.c (uinteger_pow): Moved here (without changes)...
1539 * valarith.c (uinteger_pow): ... from here.
1540
b34c74ab
JB
15412020-11-15 Joel Brobecker <brobecker@adacore.com>
1542
40d9d2fd 1543 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1544 * unittests/gmp-utils-selftests.c: New file.
1545 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1546 unittests/gmp-utils-selftests.c.
1547 (COMMON_SFILES) Add gmp-utils.c.
1548 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1549
1b4ac058
JB
15502020-11-15 Joel Brobecker <brobecker@adacore.com>
1551
1552 * configure.ac: Generate an error if a usable GMP library
1553 could not be found.
1554 * configure: Regenerate.
1555
2c947d9b
JB
15562020-11-15 Joel Brobecker <brobecker@adacore.com>
1557
1558 * configure.ac: Add support for --with-libgmp-prefix.
1559 * Makefile.in (LIBGMP): New variable.
1560 (CLIBS): Include $(LIBGMP).
1561 * configure, config.in: Regenerate
1562
9dd02fc0
AB
15632020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1564
1565 PR cli/26879
1566 * f-exp.y (COMPLETE): New token.
1567 (exp): Two new rules for tab-completion.
1568 (saw_name_at_eof): New static global.
1569 (last_was_structop): Likewise.
1570 (yylex): Set new variables, and return COMPLETE token at the end
1571 of the input stream in some cases.
1572
758cb810
TT
15732020-11-14 Tom Tromey <tom@tromey.com>
1574
1575 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1576
749065b7
TT
15772020-11-14 Tom Tromey <tom@tromey.com>
1578
1579 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1580
2c5b1849
SM
15812020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1582
1583 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1584
e8b2f0d9
TT
15852020-11-13 Tom Tromey <tom@tromey.com>
1586
1587 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1588 (convert_escape, parse_one_string): Constify.
1589
25f4c262
KS
15902020-11-13 Keith Seitz <keiths@redhat.com>
1591
1592 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1593 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1594 outside of ELF segments" warning for debugin
1595
9d3ab915
KS
15962020-11-13 Keith Seitz <keiths@redhat.com>
1597
1598 PR gdb/23034
1599 * elfread.c (elf_symfile_segments): Output a BFD file name
1600 for the "Loadable section ... outside of ELF segments" warning.
1601
9ecab40c
SM
16022020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 PR gdb/26835
1605 * arm-tdep.c (class arm_instruction_reader): New.
1606 (target_arm_instruction_reader): New.
1607 (arm_analyze_prologue): Add instruction reader parameter and use
1608 it. Use arm_expand_immediate.
1609 (class target_arm_instruction_reader): Adjust.
1610 (arm_skip_prologue): Adjust.
1611 (arm_expand_immediate): New.
1612 (arm_scan_prologue): Adjust.
1613 (arm_analyze_prologue_test): New.
1614 (class test_arm_instruction_reader): New.
1615
5a7cf527
AB
16162020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1617
1618 * f-lang.c (fortran_argument_convert): Add declaration. Add
1619 header comment, taken from f-lang.h. Make static.
1620 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1621 (fortran_argument_convert): Delete declaration.
1622
7bea47f0
AB
16232020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * ada-exp.y (find_primitive_type): Make parameter const.
1626 * ada-lang.c (enum ada_primitive_types): Delete.
1627 (ada_language::language_arch_info): Update.
1628 * c-lang.c (enum c_primitive_types): Delete.
1629 (c_language_arch_info): Update.
1630 (enum cplus_primitive_types): Delete.
1631 (cplus_language::language_arch_info): Update.
1632 * d-lang.c (enum d_primitive_types): Delete.
1633 (d_language::language_arch_info): Update.
1634 * f-lang.c (enum f_primitive_types): Delete.
1635 (f_language::language_arch_info): Update.
1636 * go-lang.c (enum go_primitive_types): Delete.
1637 (go_language::language_arch_info): Update.
1638 * language.c (auto_or_unknown_language::language_arch_info):
1639 Update.
1640 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1641 (language_string_char_type): Add header comment, call function in
1642 language_arch_info.
1643 (language_bool_type): Likewise
1644 (language_arch_info::bool_type): Define.
1645 (language_lookup_primitive_type_1): Delete.
1646 (language_lookup_primitive_type): Rewrite as a templated function
1647 to call function in language_arch_info, then instantiate twice.
1648 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1649 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1650 (language_arch_info::lookup_primitive_type): Define twice with
1651 different signatures.
1652 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1653 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1654 member function in language_arch_info.
1655 * language.h (language_arch_info): Complete rewrite.
1656 (language_lookup_primitive_type): Make templated.
1657 * m2-lang.c (enum m2_primitive_types): Delete.
1658 (m2_language::language_arch_info): Update.
1659 * opencl-lang.c (OCL_P_TYPE): Delete.
1660 (enum opencl_primitive_types): Delete.
1661 (opencl_type_data): Delete.
1662 (builtin_opencl_type): Delete.
1663 (lookup_opencl_vector_type): Update.
1664 (opencl_language::language_arch_info): Update, lots of content
1665 moved from...
1666 (build_opencl_types): ...here. This function is now deleted.
1667 (_initialize_opencl_language): Delete.
1668 * p-lang.c (enum pascal_primitive_types): Delete.
1669 (pascal_language::language_arch_info): Update.
1670 * rust-lang.c (enum rust_primitive_types): Delete.
1671 (rust_language::language_arch_info): Update.
1672
bf6e5d01
SM
16732020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1674
1675 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1676 dwarf2_queue_guard.
1677
1350c3b4
SM
16782020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1681 comment.
1682
6f738b01
SM
16832020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1684
1685 * dwarf2/read.c (dwarf_read_debug_printf,
1686 dwarf_read_debug_printf_v): New macros, use throughout the file.
1687
10c19fad
SV
16882020-11-12 Shahab Vahedi <shahab@synopsys.com>
1689
10806efd 1690 PR tdep/27015
10c19fad
SV
1691 * arc-linux-tdep.c (collect_register): Populate "eret" by
1692 "pc" value from the regcache when asked for "pc" value.
1693
1f2624a3
TT
16942020-11-12 Tom Tromey <tom@tromey.com>
1695
1696 PR rust/26799:
1697 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1698 exist.
1699
ab33b152
AB
17002020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1701
1702 * features/Makefile (XMLTOC): Add rx.xml.
1703 (FEATURE_XMLFILES): Remove rx.xml.
1704 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1705 * features/rx.c: Regenerate.
1706 * features/rx.xml: Wrap in `target` tags, and reindent.
1707 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1708 structure.
1709 (maint_print_c_tdesc_opt_def): New typedef.
1710 (maint_print_c_tdesc_opt_defs): New static global.
1711 (make_maint_print_c_tdesc_options_def_group): New function.
1712 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1713 print single feature C file for target descriptions containing a
1714 single feature.
1715 (maint_print_c_tdesc_cmd_completer): New function.
1716 (_initialize_target_descriptions): Update call to register command
1717 completer, and include command line flag in help text.
1718
550820e1
AB
17192020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1722 numbers.
1723 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1724 enum values.
1725
baf20f76
TT
17262020-11-10 Tom Tromey <tom@tromey.com>
1727
1728 * value.h (internalvar_name): Update.
1729 * value.c (internalvar_name): Make return type const.
1730
caaece0e
TT
17312020-11-10 Tom Tromey <tom@tromey.com>
1732
1733 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1734 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1735 const.
1736
8e20b4be
TT
17372020-11-10 Tom Tromey <tom@tromey.com>
1738
1739 * objc-lang.h (value_nsstring): Update.
1740 * objc-lang.c (value_nsstring): Make "ptr" const.
1741
86775fab
AB
17422020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1743
1744 * expprint.c (print_subexp_funcall): Increment expression position
1745 after reading argument count.
1746 * f-lang.c (print_subexp_f): Skip over opcode before calling
1747 common function.
1748 (dump_subexp_body_f): Likewise.
1749
3fed4c0b
RG
17502020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1751
1752 PR python/26832
1753 * configure: Regenerate.
1754 * configure.ac: Check for python modules ctypes instead of
1755 itertools.
1756
ac3d4064
PA
17572020-11-06 Pedro Alves <pedro@palves.net>
1758
1759 * macroexp.c (struct macro_buffer): Split in two classes. Add
1760 uses adjusted.
1761 (struct shared_macro_buffer): New, factored out from struct
1762 macro_buffer.
1763 (struct growable_macro_buffer): New, factored out from struct
1764 macro_buffer.
1765 (set_token, get_comment, get_identifier, get_pp_number)
1766 (get_character_constant, get_string_literal, get_punctuator)
1767 (get_next_token_for_substitution): Constify parameters.
1768 (substitute_args): Constify locals.
1769
606decb2
TT
17702020-11-05 Tom Tromey <tom@tromey.com>
1771
1772 * dwarf2/read.c (read_cutu_die_from_dwo)
1773 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1774 (build_type_psymtabs_1): Update.
1775 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1776 parameter.
1777 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1778 Don't read section. Add assert.
1779
9c91c725
TT
17802020-11-04 Tom Tromey <tromey@adacore.com>
1781
1782 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1783
8d9fd3a1
TT
17842020-11-04 Tom Tromey <tromey@adacore.com>
1785
1786 * ada-typeprint.c (ada_print_type): Handle __T types.
1787
d8f62e84
TT
17882020-11-04 Tom Tromey <tromey@adacore.com>
1789
1790 * dwarf2/read.c (add_partial_symbol, process_die):
1791 Handle DW_TAG_array_type.
1792 (is_type_tag_for_partial): Add "lang" parameter.
1793 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1794
7ff5b937
TT
17952020-11-04 Tom Tromey <tromey@adacore.com>
1796
1797 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1798
10f6a3ad
TT
17992020-11-04 Tom Tromey <tromey@adacore.com>
1800
1801 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1802 array.
1803
b72795a8
TT
18042020-11-04 Tom Tromey <tromey@adacore.com>
1805
1806 * gdbtypes.c (update_static_array_size): Handle bit stride.
1807
24aa1b02
TT
18082020-11-04 Tom Tromey <tromey@adacore.com>
1809
1810 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1811
c9a28cbe
TT
18122020-11-04 Tom Tromey <tromey@adacore.com>
1813
1814 * ada-lang.c (ada_is_any_packed_array_type): New function.
1815 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1816
57567375
TT
18172020-11-04 Tom Tromey <tromey@adacore.com>
1818
1819 * dwarf2/read.c (recognize_bound_expression)
1820 (quirk_ada_thick_pointer): New functions.
1821 (read_array_type): Call quirk_ada_thick_pointer.
1822 (set_die_type): Add "skip_data_location" parameter.
1823 (quirk_ada_thick_pointer): New function.
1824 (process_structure_scope): Call quirk_ada_thick_pointer.
1825 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1826 (decode_packed_array_bitsize): Handle thick pointers without
1827 parallel types.
1828 (ada_is_gnat_encoded_packed_array_type): Rename from
1829 ada_is_packed_array_type.
1830 (ada_is_constrained_packed_array_type): Update.
1831 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1832 (ada_value_print_1): Use ada_get_decoded_value.
1833
a7400e44
TT
18342020-11-04 Tom Tromey <tromey@adacore.com>
1835
1836 * ada-lang.c (recursively_update_array_bitsize): New function.
1837 (decode_constrained_packed_array_type): Call it.
1838
75fd6a26
TT
18392020-11-04 Tom Tromey <tromey@adacore.com>
1840
1841 * ada-lang.c (to_fixed_array_type): Error if
1842 decode_constrained_packed_array_type returns NULL.
1843
93f9561e
TT
18442020-11-04 Tom Tromey <tromey@adacore.com>
1845
1846 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1847
257e02d8
TT
18482020-11-02 Tom Tromey <tromey@adacore.com>
1849
1850 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1851 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1852 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1853 * amd64-ravenscar-thread.c: New file.
1854 * amd64-ravenscar-thread.h: New file.
1855 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1856 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1857
74d877e5
AB
18582020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * main.c (execute_cmdargs): New function.
1861 (captured_main_1): Make use of execute_cmdargs.
1862
64aaad63
AB
18632020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * NEWS: Mention changes to config file search path.
1866 * main.c
1867
5b3d3560
TT
18682020-11-02 Tom Tromey <tromey@adacore.com>
1869
1870 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1871 (python_GdbModuleDef): Move earlier. Now static.
1872 (do_start_initialization): Consolidate some IS_PY3K blocks.
1873
dda83cd7
SM
18742020-11-02 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * aarch64-linux-tdep.c: Fix indentation.
1877 * aarch64-ravenscar-thread.c: Fix indentation.
1878 * aarch64-tdep.c: Fix indentation.
1879 * aarch64-tdep.h: Fix indentation.
1880 * ada-lang.c: Fix indentation.
1881 * ada-lang.h: Fix indentation.
1882 * ada-tasks.c: Fix indentation.
1883 * ada-typeprint.c: Fix indentation.
1884 * ada-valprint.c: Fix indentation.
1885 * ada-varobj.c: Fix indentation.
1886 * addrmap.c: Fix indentation.
1887 * addrmap.h: Fix indentation.
1888 * agent.c: Fix indentation.
1889 * aix-thread.c: Fix indentation.
1890 * alpha-bsd-nat.c: Fix indentation.
1891 * alpha-linux-tdep.c: Fix indentation.
1892 * alpha-mdebug-tdep.c: Fix indentation.
1893 * alpha-nbsd-tdep.c: Fix indentation.
1894 * alpha-obsd-tdep.c: Fix indentation.
1895 * alpha-tdep.c: Fix indentation.
1896 * amd64-bsd-nat.c: Fix indentation.
1897 * amd64-darwin-tdep.c: Fix indentation.
1898 * amd64-linux-nat.c: Fix indentation.
1899 * amd64-linux-tdep.c: Fix indentation.
1900 * amd64-nat.c: Fix indentation.
1901 * amd64-obsd-tdep.c: Fix indentation.
1902 * amd64-tdep.c: Fix indentation.
1903 * amd64-windows-tdep.c: Fix indentation.
1904 * annotate.c: Fix indentation.
1905 * arc-tdep.c: Fix indentation.
1906 * arch-utils.c: Fix indentation.
1907 * arch/arm-get-next-pcs.c: Fix indentation.
1908 * arch/arm.c: Fix indentation.
1909 * arm-linux-nat.c: Fix indentation.
1910 * arm-linux-tdep.c: Fix indentation.
1911 * arm-nbsd-tdep.c: Fix indentation.
1912 * arm-pikeos-tdep.c: Fix indentation.
1913 * arm-tdep.c: Fix indentation.
1914 * arm-tdep.h: Fix indentation.
1915 * arm-wince-tdep.c: Fix indentation.
1916 * auto-load.c: Fix indentation.
1917 * auxv.c: Fix indentation.
1918 * avr-tdep.c: Fix indentation.
1919 * ax-gdb.c: Fix indentation.
1920 * ax-general.c: Fix indentation.
1921 * bfin-linux-tdep.c: Fix indentation.
1922 * block.c: Fix indentation.
1923 * block.h: Fix indentation.
1924 * blockframe.c: Fix indentation.
1925 * bpf-tdep.c: Fix indentation.
1926 * break-catch-sig.c: Fix indentation.
1927 * break-catch-syscall.c: Fix indentation.
1928 * break-catch-throw.c: Fix indentation.
1929 * breakpoint.c: Fix indentation.
1930 * breakpoint.h: Fix indentation.
1931 * bsd-uthread.c: Fix indentation.
1932 * btrace.c: Fix indentation.
1933 * build-id.c: Fix indentation.
1934 * buildsym-legacy.h: Fix indentation.
1935 * buildsym.c: Fix indentation.
1936 * c-typeprint.c: Fix indentation.
1937 * c-valprint.c: Fix indentation.
1938 * c-varobj.c: Fix indentation.
1939 * charset.c: Fix indentation.
1940 * cli/cli-cmds.c: Fix indentation.
1941 * cli/cli-decode.c: Fix indentation.
1942 * cli/cli-decode.h: Fix indentation.
1943 * cli/cli-script.c: Fix indentation.
1944 * cli/cli-setshow.c: Fix indentation.
1945 * coff-pe-read.c: Fix indentation.
1946 * coffread.c: Fix indentation.
1947 * compile/compile-cplus-types.c: Fix indentation.
1948 * compile/compile-object-load.c: Fix indentation.
1949 * compile/compile-object-run.c: Fix indentation.
1950 * completer.c: Fix indentation.
1951 * corefile.c: Fix indentation.
1952 * corelow.c: Fix indentation.
1953 * cp-abi.h: Fix indentation.
1954 * cp-namespace.c: Fix indentation.
1955 * cp-support.c: Fix indentation.
1956 * cp-valprint.c: Fix indentation.
1957 * cris-linux-tdep.c: Fix indentation.
1958 * cris-tdep.c: Fix indentation.
1959 * darwin-nat-info.c: Fix indentation.
1960 * darwin-nat.c: Fix indentation.
1961 * darwin-nat.h: Fix indentation.
1962 * dbxread.c: Fix indentation.
1963 * dcache.c: Fix indentation.
1964 * disasm.c: Fix indentation.
1965 * dtrace-probe.c: Fix indentation.
1966 * dwarf2/abbrev.c: Fix indentation.
1967 * dwarf2/attribute.c: Fix indentation.
1968 * dwarf2/expr.c: Fix indentation.
1969 * dwarf2/frame.c: Fix indentation.
1970 * dwarf2/index-cache.c: Fix indentation.
1971 * dwarf2/index-write.c: Fix indentation.
1972 * dwarf2/line-header.c: Fix indentation.
1973 * dwarf2/loc.c: Fix indentation.
1974 * dwarf2/macro.c: Fix indentation.
1975 * dwarf2/read.c: Fix indentation.
1976 * dwarf2/read.h: Fix indentation.
1977 * elfread.c: Fix indentation.
1978 * eval.c: Fix indentation.
1979 * event-top.c: Fix indentation.
1980 * exec.c: Fix indentation.
1981 * exec.h: Fix indentation.
1982 * expprint.c: Fix indentation.
1983 * f-lang.c: Fix indentation.
1984 * f-typeprint.c: Fix indentation.
1985 * f-valprint.c: Fix indentation.
1986 * fbsd-nat.c: Fix indentation.
1987 * fbsd-tdep.c: Fix indentation.
1988 * findvar.c: Fix indentation.
1989 * fork-child.c: Fix indentation.
1990 * frame-unwind.c: Fix indentation.
1991 * frame-unwind.h: Fix indentation.
1992 * frame.c: Fix indentation.
1993 * frv-linux-tdep.c: Fix indentation.
1994 * frv-tdep.c: Fix indentation.
1995 * frv-tdep.h: Fix indentation.
1996 * ft32-tdep.c: Fix indentation.
1997 * gcore.c: Fix indentation.
1998 * gdb_bfd.c: Fix indentation.
1999 * gdbarch.sh: Fix indentation.
2000 * gdbarch.c: Re-generate
2001 * gdbarch.h: Re-generate.
2002 * gdbcore.h: Fix indentation.
2003 * gdbthread.h: Fix indentation.
2004 * gdbtypes.c: Fix indentation.
2005 * gdbtypes.h: Fix indentation.
2006 * glibc-tdep.c: Fix indentation.
2007 * gnu-nat.c: Fix indentation.
2008 * gnu-nat.h: Fix indentation.
2009 * gnu-v2-abi.c: Fix indentation.
2010 * gnu-v3-abi.c: Fix indentation.
2011 * go32-nat.c: Fix indentation.
2012 * guile/guile-internal.h: Fix indentation.
2013 * guile/scm-cmd.c: Fix indentation.
2014 * guile/scm-frame.c: Fix indentation.
2015 * guile/scm-iterator.c: Fix indentation.
2016 * guile/scm-math.c: Fix indentation.
2017 * guile/scm-ports.c: Fix indentation.
2018 * guile/scm-pretty-print.c: Fix indentation.
2019 * guile/scm-value.c: Fix indentation.
2020 * h8300-tdep.c: Fix indentation.
2021 * hppa-linux-nat.c: Fix indentation.
2022 * hppa-linux-tdep.c: Fix indentation.
2023 * hppa-nbsd-nat.c: Fix indentation.
2024 * hppa-nbsd-tdep.c: Fix indentation.
2025 * hppa-obsd-nat.c: Fix indentation.
2026 * hppa-tdep.c: Fix indentation.
2027 * hppa-tdep.h: Fix indentation.
2028 * i386-bsd-nat.c: Fix indentation.
2029 * i386-darwin-nat.c: Fix indentation.
2030 * i386-darwin-tdep.c: Fix indentation.
2031 * i386-dicos-tdep.c: Fix indentation.
2032 * i386-gnu-nat.c: Fix indentation.
2033 * i386-linux-nat.c: Fix indentation.
2034 * i386-linux-tdep.c: Fix indentation.
2035 * i386-nto-tdep.c: Fix indentation.
2036 * i386-obsd-tdep.c: Fix indentation.
2037 * i386-sol2-nat.c: Fix indentation.
2038 * i386-tdep.c: Fix indentation.
2039 * i386-tdep.h: Fix indentation.
2040 * i386-windows-tdep.c: Fix indentation.
2041 * i387-tdep.c: Fix indentation.
2042 * i387-tdep.h: Fix indentation.
2043 * ia64-libunwind-tdep.c: Fix indentation.
2044 * ia64-libunwind-tdep.h: Fix indentation.
2045 * ia64-linux-nat.c: Fix indentation.
2046 * ia64-linux-tdep.c: Fix indentation.
2047 * ia64-tdep.c: Fix indentation.
2048 * ia64-tdep.h: Fix indentation.
2049 * ia64-vms-tdep.c: Fix indentation.
2050 * infcall.c: Fix indentation.
2051 * infcmd.c: Fix indentation.
2052 * inferior.c: Fix indentation.
2053 * infrun.c: Fix indentation.
2054 * iq2000-tdep.c: Fix indentation.
2055 * language.c: Fix indentation.
2056 * linespec.c: Fix indentation.
2057 * linux-fork.c: Fix indentation.
2058 * linux-nat.c: Fix indentation.
2059 * linux-tdep.c: Fix indentation.
2060 * linux-thread-db.c: Fix indentation.
2061 * lm32-tdep.c: Fix indentation.
2062 * m2-lang.c: Fix indentation.
2063 * m2-typeprint.c: Fix indentation.
2064 * m2-valprint.c: Fix indentation.
2065 * m32c-tdep.c: Fix indentation.
2066 * m32r-linux-tdep.c: Fix indentation.
2067 * m32r-tdep.c: Fix indentation.
2068 * m68hc11-tdep.c: Fix indentation.
2069 * m68k-bsd-nat.c: Fix indentation.
2070 * m68k-linux-nat.c: Fix indentation.
2071 * m68k-linux-tdep.c: Fix indentation.
2072 * m68k-tdep.c: Fix indentation.
2073 * machoread.c: Fix indentation.
2074 * macrocmd.c: Fix indentation.
2075 * macroexp.c: Fix indentation.
2076 * macroscope.c: Fix indentation.
2077 * macrotab.c: Fix indentation.
2078 * macrotab.h: Fix indentation.
2079 * main.c: Fix indentation.
2080 * mdebugread.c: Fix indentation.
2081 * mep-tdep.c: Fix indentation.
2082 * mi/mi-cmd-catch.c: Fix indentation.
2083 * mi/mi-cmd-disas.c: Fix indentation.
2084 * mi/mi-cmd-env.c: Fix indentation.
2085 * mi/mi-cmd-stack.c: Fix indentation.
2086 * mi/mi-cmd-var.c: Fix indentation.
2087 * mi/mi-cmds.c: Fix indentation.
2088 * mi/mi-main.c: Fix indentation.
2089 * mi/mi-parse.c: Fix indentation.
2090 * microblaze-tdep.c: Fix indentation.
2091 * minidebug.c: Fix indentation.
2092 * minsyms.c: Fix indentation.
2093 * mips-linux-nat.c: Fix indentation.
2094 * mips-linux-tdep.c: Fix indentation.
2095 * mips-nbsd-tdep.c: Fix indentation.
2096 * mips-tdep.c: Fix indentation.
2097 * mn10300-linux-tdep.c: Fix indentation.
2098 * mn10300-tdep.c: Fix indentation.
2099 * moxie-tdep.c: Fix indentation.
2100 * msp430-tdep.c: Fix indentation.
2101 * namespace.h: Fix indentation.
2102 * nat/fork-inferior.c: Fix indentation.
2103 * nat/gdb_ptrace.h: Fix indentation.
2104 * nat/linux-namespaces.c: Fix indentation.
2105 * nat/linux-osdata.c: Fix indentation.
2106 * nat/netbsd-nat.c: Fix indentation.
2107 * nat/x86-dregs.c: Fix indentation.
2108 * nbsd-nat.c: Fix indentation.
2109 * nbsd-tdep.c: Fix indentation.
2110 * nios2-linux-tdep.c: Fix indentation.
2111 * nios2-tdep.c: Fix indentation.
2112 * nto-procfs.c: Fix indentation.
2113 * nto-tdep.c: Fix indentation.
2114 * objfiles.c: Fix indentation.
2115 * objfiles.h: Fix indentation.
2116 * opencl-lang.c: Fix indentation.
2117 * or1k-tdep.c: Fix indentation.
2118 * osabi.c: Fix indentation.
2119 * osabi.h: Fix indentation.
2120 * osdata.c: Fix indentation.
2121 * p-lang.c: Fix indentation.
2122 * p-typeprint.c: Fix indentation.
2123 * p-valprint.c: Fix indentation.
2124 * parse.c: Fix indentation.
2125 * ppc-linux-nat.c: Fix indentation.
2126 * ppc-linux-tdep.c: Fix indentation.
2127 * ppc-nbsd-nat.c: Fix indentation.
2128 * ppc-nbsd-tdep.c: Fix indentation.
2129 * ppc-obsd-nat.c: Fix indentation.
2130 * ppc-ravenscar-thread.c: Fix indentation.
2131 * ppc-sysv-tdep.c: Fix indentation.
2132 * ppc64-tdep.c: Fix indentation.
2133 * printcmd.c: Fix indentation.
2134 * proc-api.c: Fix indentation.
2135 * producer.c: Fix indentation.
2136 * producer.h: Fix indentation.
2137 * prologue-value.c: Fix indentation.
2138 * prologue-value.h: Fix indentation.
2139 * psymtab.c: Fix indentation.
2140 * python/py-arch.c: Fix indentation.
2141 * python/py-bpevent.c: Fix indentation.
2142 * python/py-event.c: Fix indentation.
2143 * python/py-event.h: Fix indentation.
2144 * python/py-finishbreakpoint.c: Fix indentation.
2145 * python/py-frame.c: Fix indentation.
2146 * python/py-framefilter.c: Fix indentation.
2147 * python/py-inferior.c: Fix indentation.
2148 * python/py-infthread.c: Fix indentation.
2149 * python/py-objfile.c: Fix indentation.
2150 * python/py-prettyprint.c: Fix indentation.
2151 * python/py-registers.c: Fix indentation.
2152 * python/py-signalevent.c: Fix indentation.
2153 * python/py-stopevent.c: Fix indentation.
2154 * python/py-stopevent.h: Fix indentation.
2155 * python/py-threadevent.c: Fix indentation.
2156 * python/py-tui.c: Fix indentation.
2157 * python/py-unwind.c: Fix indentation.
2158 * python/py-value.c: Fix indentation.
2159 * python/py-xmethods.c: Fix indentation.
2160 * python/python-internal.h: Fix indentation.
2161 * python/python.c: Fix indentation.
2162 * ravenscar-thread.c: Fix indentation.
2163 * record-btrace.c: Fix indentation.
2164 * record-full.c: Fix indentation.
2165 * record.c: Fix indentation.
2166 * reggroups.c: Fix indentation.
2167 * regset.h: Fix indentation.
2168 * remote-fileio.c: Fix indentation.
2169 * remote.c: Fix indentation.
2170 * reverse.c: Fix indentation.
2171 * riscv-linux-tdep.c: Fix indentation.
2172 * riscv-ravenscar-thread.c: Fix indentation.
2173 * riscv-tdep.c: Fix indentation.
2174 * rl78-tdep.c: Fix indentation.
2175 * rs6000-aix-tdep.c: Fix indentation.
2176 * rs6000-lynx178-tdep.c: Fix indentation.
2177 * rs6000-nat.c: Fix indentation.
2178 * rs6000-tdep.c: Fix indentation.
2179 * rust-lang.c: Fix indentation.
2180 * rx-tdep.c: Fix indentation.
2181 * s12z-tdep.c: Fix indentation.
2182 * s390-linux-tdep.c: Fix indentation.
2183 * score-tdep.c: Fix indentation.
2184 * ser-base.c: Fix indentation.
2185 * ser-mingw.c: Fix indentation.
2186 * ser-uds.c: Fix indentation.
2187 * ser-unix.c: Fix indentation.
2188 * serial.c: Fix indentation.
2189 * sh-linux-tdep.c: Fix indentation.
2190 * sh-nbsd-tdep.c: Fix indentation.
2191 * sh-tdep.c: Fix indentation.
2192 * skip.c: Fix indentation.
2193 * sol-thread.c: Fix indentation.
2194 * solib-aix.c: Fix indentation.
2195 * solib-darwin.c: Fix indentation.
2196 * solib-frv.c: Fix indentation.
2197 * solib-svr4.c: Fix indentation.
2198 * solib.c: Fix indentation.
2199 * source.c: Fix indentation.
2200 * sparc-linux-tdep.c: Fix indentation.
2201 * sparc-nbsd-tdep.c: Fix indentation.
2202 * sparc-obsd-tdep.c: Fix indentation.
2203 * sparc-ravenscar-thread.c: Fix indentation.
2204 * sparc-tdep.c: Fix indentation.
2205 * sparc64-linux-tdep.c: Fix indentation.
2206 * sparc64-nbsd-tdep.c: Fix indentation.
2207 * sparc64-obsd-tdep.c: Fix indentation.
2208 * sparc64-tdep.c: Fix indentation.
2209 * stabsread.c: Fix indentation.
2210 * stack.c: Fix indentation.
2211 * stap-probe.c: Fix indentation.
2212 * stubs/ia64vms-stub.c: Fix indentation.
2213 * stubs/m32r-stub.c: Fix indentation.
2214 * stubs/m68k-stub.c: Fix indentation.
2215 * stubs/sh-stub.c: Fix indentation.
2216 * stubs/sparc-stub.c: Fix indentation.
2217 * symfile-mem.c: Fix indentation.
2218 * symfile.c: Fix indentation.
2219 * symfile.h: Fix indentation.
2220 * symmisc.c: Fix indentation.
2221 * symtab.c: Fix indentation.
2222 * symtab.h: Fix indentation.
2223 * target-float.c: Fix indentation.
2224 * target.c: Fix indentation.
2225 * target.h: Fix indentation.
2226 * tic6x-tdep.c: Fix indentation.
2227 * tilegx-linux-tdep.c: Fix indentation.
2228 * tilegx-tdep.c: Fix indentation.
2229 * top.c: Fix indentation.
2230 * tracefile-tfile.c: Fix indentation.
2231 * tracepoint.c: Fix indentation.
2232 * tui/tui-disasm.c: Fix indentation.
2233 * tui/tui-io.c: Fix indentation.
2234 * tui/tui-regs.c: Fix indentation.
2235 * tui/tui-stack.c: Fix indentation.
2236 * tui/tui-win.c: Fix indentation.
2237 * tui/tui-winsource.c: Fix indentation.
2238 * tui/tui.c: Fix indentation.
2239 * typeprint.c: Fix indentation.
2240 * ui-out.h: Fix indentation.
2241 * unittests/copy_bitwise-selftests.c: Fix indentation.
2242 * unittests/memory-map-selftests.c: Fix indentation.
2243 * utils.c: Fix indentation.
2244 * v850-tdep.c: Fix indentation.
2245 * valarith.c: Fix indentation.
2246 * valops.c: Fix indentation.
2247 * valprint.c: Fix indentation.
2248 * valprint.h: Fix indentation.
2249 * value.c: Fix indentation.
2250 * value.h: Fix indentation.
2251 * varobj.c: Fix indentation.
2252 * vax-tdep.c: Fix indentation.
2253 * windows-nat.c: Fix indentation.
2254 * windows-tdep.c: Fix indentation.
2255 * xcoffread.c: Fix indentation.
2256 * xml-syscall.c: Fix indentation.
2257 * xml-tdesc.c: Fix indentation.
2258 * xstormy16-tdep.c: Fix indentation.
2259 * xtensa-config.c: Fix indentation.
2260 * xtensa-linux-nat.c: Fix indentation.
2261 * xtensa-linux-tdep.c: Fix indentation.
2262 * xtensa-tdep.c: Fix indentation.
2263
e1f57067
AB
22642020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2265 Craig Blackmore <craig.blackmore@embecosm.com>
2266
2267 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2268 as an unsigned value.
2269
ae7754b2
TT
22702020-11-01 Tom Tromey <tom@tromey.com>
2271
2272 * dbxread.c (dbx_end_psymtab): Update.
2273 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2274 (build_type_psymtabs_reader): Update.
2275 * xcoffread.c (xcoff_end_psymtab): Update.
2276 * ctfread.c (scan_partial_symbols): Update.
2277 * psymtab.c (sort_pst_symbols): Remove.
2278 (partial_symtab::end): Rename from end_psymtab_common. Inline
2279 sort_pst_symbols.
2280 * psympriv.h (struct partial_symtab) <end>: New method.
2281 (end_psymtab_common): Don't declare.
2282
0684bb51
TT
22832020-11-01 Tom Tromey <tom@tromey.com>
2284
2285 * symmisc.c (count_psyms): New function.
2286 (print_objfile_statistics): Use it.
2287 * psymtab.c (append_psymbol_to_list): Remove.
2288 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2289 * objfiles.h (struct objstats) <n_psyms>: Remove.
2290
089002bb
TT
22912020-11-01 Tom Tromey <tom@tromey.com>
2292
2293 * dbxread.c (dbx_end_psymtab): Update.
2294 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2295 (build_type_psymtabs_reader): Update.
2296 * xcoffread.c (xcoff_end_psymtab): Update.
2297 * ctfread.c (scan_partial_symbols): Update.
2298 * psympriv.h (end_psymtab_common): Update.
2299 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2300 (sort_pst_symbols): Likewise.
2301
525454d6
TT
23022020-11-01 Tom Tromey <tom@tromey.com>
2303
2304 * dbxread.c (dbx_symfile_read): Update.
2305 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2306 * xcoffread.c (xcoff_initial_scan): Update.
2307 * psympriv.h (init_psymbol_list): Don't declare.
2308 * psymtab.c (init_psymbol_list): Remove.
2309
60bd1d53
JB
23102020-11-01 Joel Brobecker <brobecker@adacore.com>
2311
2312 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2313 gnat_encoded_fixed_type_info. Update all callers.
2314
db99d0d0
JB
23152020-11-01 Joel Brobecker <brobecker@adacore.com>
2316
2317 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2318 line too long.
2319
75f24e86
JB
23202020-11-01 Joel Brobecker <brobecker@adacore.com>
2321
2322 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2323 cast_from_fixed. Update all callers.
2324 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2325 Update all callers.
2326 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2327 Update all callers.
2328 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2329 ada_scaling_factor.
2330 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2331 to print_gnat_encoded_fixed_point_type.
2332 * ada-valprint.c: Likewise.
2333
4f0469cd
AB
23342020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2335
2336 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2337 (debug_prefixed_printf): Add check of debug_displaced flag.
2338 * linux-nat.c (linux_nat_debug_printf): Add check of
2339 debug_linux_nat flag.
2340
17417fb0
SM
23412020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2342
2343 * infrun.c (infrun_debug_printf_1): Remove.
2344 (displaced_debug_printf_1): Remove.
2345 (stop_all_threads): Use debug_prefixed_printf.
2346 * infrun.h (infrun_debug_printf_1): Remove.
2347 (infrun_debug_printf): Use debug_prefixed_printf.
2348 (displaced_debug_printf_1): Remove.
2349 (displaced_debug_printf): Use debug_prefixed_printf.
2350 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2351 (linux_nat_debug_printf): Use debug_prefixed_printf.
2352
ad6dba1c
SM
23532020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2354
2355 * configure: Re-generate.
2356 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2357 AC_LANG_PROGRAM.
2358
b6fb30ed
SM
23592020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2360
2361 * configure: Re-generate.
2362
5164c117
SM
23632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2364
2365 * configure: Re-generate.
2366
864ca435
SM
23672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2368
2369 * configure: Re-generate.
2370
b9442ec1
SM
23712020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * configure: Re-generate.
2374
294f2697
SM
23752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2376
2377 * acinclude.m4: Modernize.
2378 * configure: Re-generate.
2379
5593a99a
SM
23802020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2381
2382 * configure.ac: Modernize.
2383 * configure: Re-generate.
2384
e41fda1d
SM
23852020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2386
2387 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2388 * configure: Re-generate.
2389 * configure.ac: Remove AM_PROG_CC_STDC.
2390
91e1a0ed
SM
23912020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2394 AC_CANONICAL_SYSTEM.
2395 * configure: Re-generate.
2396
136821d9
SM
23972020-10-30 Simon Marchi <simon.marchi@efficios.com>
2398
2399 * infrun.h (displaced_debug_printf): New macro. Replace
2400 displaced debug prints throughout to use it.
2401 (displaced_debug_printf_1): New declaration.
2402 (displaced_step_dump_bytes): Return string, remove ui_file
2403 parameter, update all callers.
2404 * infrun.c (displaced_debug_printf_1): New function.
2405 (displaced_step_dump_bytes): Return string, remove ui_file
2406 parameter
2407
aa2045e7
SM
24082020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2409
2410 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2411
b1ec2735
TT
24122020-10-30 Tom Tromey <tromey@adacore.com>
2413
2414 * Makefile.in (stamp-init): Depend on config.status.
2415
b78b3a29
TBA
24162020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2417
2418 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2419
d70bdd3c
PA
24202020-10-30 Pedro Alves <pedro@palves.net>
2421
2422 * thread.c (lookup_selected_frame): Move ...
2423 * frame.c (lookup_selected_frame): ... here.
2424
79952e69
PA
24252020-10-30 Pedro Alves <pedro@palves.net>
2426
2427 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2428 * frame.c
2429 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2430 Use save_selected_frame. Save language as well.
2431 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2432 Use restore_selected_frame, and restore language as well.
2433 (selected_frame_id, selected_frame_level): New.
2434 (selected_frame): Update comments.
2435 (save_selected_frame, restore_selected_frame): New.
2436 (get_selected_frame): Use lookup_selected_frame.
2437 (get_selected_frame_if_set): Delete.
2438 (select_frame): Record selected_frame_level and selected_frame_id.
2439 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2440 fields.
2441 (get_selected_frame): Make 'message' parameter optional.
2442 (get_selected_frame_if_set): Delete declaration.
2443 (select_frame): Update comments.
2444 (save_selected_frame, restore_selected_frame)
2445 (lookup_selected_frame): Declare.
2446 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2447 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2448 New field.
2449 (save_infcall_control_state): Use save_selected_frame.
2450 (restore_selected_frame): Delete.
2451 (restore_infcall_control_state): Use restore_selected_frame.
2452 * stack.c (select_frame_command_core, frame_command_core): Use
2453 get_selected_frame.
2454 * thread.c (restore_selected_frame): Rename to ...
2455 (lookup_selected_frame): ... this and make extern. Select the
2456 current frame if the frame level is -1.
2457 (scoped_restore_current_thread::restore): Also restore the
2458 language.
2459 (scoped_restore_current_thread::~scoped_restore_current_thread):
2460 Don't try/catch.
2461 (scoped_restore_current_thread::scoped_restore_current_thread):
2462 Save the language as well. Use save_selected_frame.
2463
58103c33
SM
24642020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2465
2466 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2467 documentation.
2468 * gdbarch.h: Re-generate.
2469
40a53766
SM
24702020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2471
2472 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2473 parameter.
2474 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2475 Likewise.
2476 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2477 Likewise.
2478 * arch-utils.c (default_displaced_step_hw_singlestep):
2479 Likewise.
2480 * arch-utils.h (default_displaced_step_hw_singlestep):
2481 Likewise.
2482 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2483 Likewise.
2484 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2485 Likewise.
2486 * gdbarch.c: Re-generate.
2487 * gdbarch.h: Re-generate.
2488 * infrun.c (resume_1): Adjust.
2489
8407f91b
TT
24902020-10-29 Tom Tromey <tom@tromey.com>
2491
2492 * progspace.c (program_space::~program_space): Don't call
2493 exec_close.
2494
5008b3b2
TT
24952020-10-29 Tom Tromey <tom@tromey.com>
2496
2497 * exec.c (exec_target::close): Don't change current program
2498 space.
2499
d9eebde0
TT
25002020-10-29 Tom Tromey <tom@tromey.com>
2501
2502 * symfile.c (add_symbol_file_command): Update.
2503 * exec.c (program_space::add_target_sections): Rename.
2504 * symfile-mem.c (symbol_file_add_from_memory): Update.
2505 * progspace.h (struct program_space) <add_target_sections>:
2506 Declare new overload.
2507 * exec.h (add_target_sections_of_objfile): Don't declare.
2508
3769e227
TT
25092020-10-29 Tom Tromey <tom@tromey.com>
2510
2511 * solib.c (solib_map_sections): Update.
2512 * exec.c (program_space::add_target_sections): Now a method.
2513 (exec_file_attach): Update.
2514 * exec.h (add_target_sections): Don't declare.
2515 * progspace.h (struct program_space) <add_target_sections>:
2516 Declare.
2517
2a3f84af
TT
25182020-10-29 Tom Tromey <tom@tromey.com>
2519
2520 * progspace.h (struct program_space) <remove_target_sections>:
2521 Declare.
2522 * exec.c (program_space::remove_target_sections): Now a method.
2523 * exec.h (remove_target_sections): Don't declare.
2524
004eecfd
TT
25252020-10-29 Tom Tromey <tom@tromey.com>
2526
2527 * inferior.c (delete_inferior): Update.
2528 * progspace.c (program_space::empty): Rename from
2529 program_space_empty_p. Return bool.
2530 * progspace.h (struct program_space) <empty>: New method.
2531 (program_space_empty_p): Don't declare.
2532
e39fb971
TT
25332020-10-29 Tom Tromey <tom@tromey.com>
2534
2535 * progspace.c (program_space::~program_space): Don't call
2536 clear_program_space_solib_cache.
2537 (program_space::clear_solib_cache): Rename from
2538 clear_solib_cache.
2539 * solib.c (handle_solib_event): Update.
2540 * progspace.h (struct program_space) <clear_solib_cache>: New
2541 method.
2542 (clear_program_space_solib_cache): Don't declare.
2543
a42d7dd8
TT
25442020-10-29 Tom Tromey <tom@tromey.com>
2545
2546 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2547 * target.c (info_target_command): Update.
2548 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2549 (symbol_file_clear, reread_symbols): Update.
2550 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2551 * stabsread.c (scan_file_globals): Update.
2552 * solib.c (update_solib_list): Update.
2553 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2554 (svr4_fetch_objfile_link_map, enable_break)
2555 (svr4_relocate_main_executable)
2556 (svr4_iterate_over_objfiles_in_search_order): Update.
2557 * solib-frv.c (lm_base, enable_break)
2558 (frv_relocate_main_executable): Update.
2559 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2560 (frv_fetch_objfile_link_map): Update.
2561 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2562 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2563 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2564 * remote.c (remote_target::get_offsets): Update.
2565 (remote_target::start_remote)
2566 (extended_remote_target::post_attach): Update.
2567 * objfiles.c (entry_point_address_query): Update.
2568 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2569 * minsyms.c (get_symbol_leading_char): Update.
2570 * frame.c (inside_main_func): Update.
2571 * progspace.h (symfile_objfile): Remove macro.
2572
19f6550e
TT
25732020-10-29 Tom Tromey <tom@tromey.com>
2574
2575 * exec.c (exec_file_attach): Update.
2576 * progspace.c (program_space::exec_close): Update.
2577 * progspace.h (struct program_space) <ebfd>: Now a
2578 gdb_bfd_ref_ptr.
2579 <set_exec_bfd>: Change argument type.
2580 <exec_bfd>: Update.
2581
7e10abd1
TT
25822020-10-29 Tom Tromey <tom@tromey.com>
2583
2584 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2585 * symfile.c (reread_symbols): Update.
2586 * symfile-mem.c (add_symbol_file_from_memory_command)
2587 (add_vsyscall_page): Update.
2588 * source-cache.c (source_cache::get_plain_source_lines): Update.
2589 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2590 (svr4_current_sos_direct, svr4_exec_displacement)
2591 (svr4_relocate_main_executable): Update.
2592 (svr4_iterate_over_objfiles_in_search_order): Update.
2593 * solib-frv.c (enable_break2, enable_break): Update.
2594 * solib-dsbt.c (lm_base, enable_break): Update.
2595 * solib-darwin.c (find_program_interpreter)
2596 (darwin_solib_create_inferior_hook): Update.
2597 * sol-thread.c (rw_common, ps_pdmodel): Update.
2598 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2599 * remote.c (compare_sections_command)
2600 (remote_target::trace_set_readonly_regions): Update.
2601 * remote-sim.c (get_sim_inferior_data)
2602 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2603 (gdbsim_target_open, gdbsim_target::files_info): Update.
2604 * exec.h (exec_bfd): Remove macro.
2605 * progspace.c (initialize_progspace): Update.
2606 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2607 Update.
2608 * nto-procfs.c (nto_procfs_target::post_attach)
2609 (nto_procfs_target::create_inferior): Update.
2610 * maint.c (maintenance_info_sections): Update.
2611 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2612 Update.
2613 * infcmd.c (post_create_inferior): Update.
2614 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2615 (objfile_find_memory_regions): Update.
2616 * exec.c (validate_exec_file, exec_file_attach)
2617 (exec_read_partial_read_only, print_section_info): Update.
2618 * corelow.c (core_target_open): Update.
2619 * corefile.c (reopen_exec_file, validate_files): Update.
2620 * arm-tdep.c (gdb_print_insn_arm): Update.
2621 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2622 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2623 methods.
2624
b55221ab
TT
26252020-10-29 Tom Tromey <tom@tromey.com>
2626
2627 * progspace.h (current_target_sections): Remove macro.
2628 * solib-svr4.c (scan_dyntag): Update.
2629 * solib-dsbt.c (scan_dyntag): Update.
2630 * exec.c (exec_target::close): Update.
2631 (add_target_sections, add_target_sections_of_objfile)
2632 (remove_target_sections, exec_target::get_section_table)
2633 (exec_target::files_info, set_section_command)
2634 (exec_set_section_address, exec_target::has_memory)
2635 (exec_target::has_memory): Update.
2636
5a36e715
TT
26372020-10-29 Tom Tromey <tom@tromey.com>
2638
2639 * source-cache.c (source_cache::get_plain_source_lines): Use
2640 current_program_space.
2641 * corefile.c (reopen_exec_file): Use current_program_space.
2642 * exec.c (exec_file_attach): Use current_program_space.
2643 * exec.h (exec_bfd_mtime): Remove.
2644
784c8592
TT
26452020-10-29 Tom Tromey <tom@tromey.com>
2646
2647 * gcore.c (default_gcore_mach): Remove.
2648 (create_gcore_bfd): Update.
2649
8a4f1402
TT
26502020-10-29 Tom Tromey <tom@tromey.com>
2651
2652 * progspace.c (program_space::exec_close): New method, from
2653 exec_close in exec.c.
2654 * exec.c (exec_close): Move to progspace.c.
2655 (exec_target::close, exec_file_attach): Update.
2656 * progspace.h (struct program_space) <exec_close>: Declare
2657 method.
2658
c20cb686
TT
26592020-10-29 Tom Tromey <tom@tromey.com>
2660
2661 * progspace.h (struct program_space) <exec_filename>: Rename from
2662 pspace_exec_filename. Now a unique_xmalloc_ptr.
2663 * inferior.c (print_selected_inferior): Update.
2664 (print_inferior): Update.
2665 * mi/mi-main.c (print_one_inferior): Update.
2666 * exec.h (exec_filename): Remove macro.
2667 * corefile.c (get_exec_file): Update.
2668 * exec.c (exec_close): Update.
2669 (exec_file_attach): Update.
2670 * progspace.c (clone_program_space): Update.
2671 (print_program_space): Update.
2672
6be2a9ab
TT
26732020-10-29 Tom Tromey <tom@tromey.com>
2674
2675 * target-section.h (struct target_section): Add constructor.
2676 * exec.c (build_section_table, add_target_sections_of_objfile):
2677 Update.
2678 * corelow.c (core_target::build_file_mappings): Update.
2679
cfaa8f76
TBA
26802020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2681
2682 PR gdb/19318
2683 * inferior.c (detach_inferior_command): Restore the current thread.
2684 (kill_inferior_command): Ditto.
2685
1b00ef06
TV
26862020-10-28 Tom de Vries <tdevries@suse.de>
2687
2688 PR symtab/26772
2689 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2690 map, check it in the "best match" loop.
2691
7f40ce1a
SM
26922020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 * m32c-tdep.c: Remove unused includes.
2695
5eb9e3f5
SM
26962020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2697
2698 * xtensa-tdep.c: Remove includes.
2699
b1d4d8d1
TBA
27002020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2701
2702 * breakpoint.c (struct condition_command_opts): New struct.
2703 (condition_command_option_defs): New static global.
2704 (make_condition_command_options_def_group): New function.
2705 (condition_completer): Update to consider the '-force' flag.
2706 (condition_command): Use gdb::option for the '-force' flag.
2707
bd24c5d6
TV
27082020-10-27 Tom de Vries <tdevries@suse.de>
2709
2710 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2711 symbols in section check.
2712
61eb46a4
TV
27132020-10-27 Tom de Vries <tdevries@suse.de>
2714
2715 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2716
733d554a
TBA
27172020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2718
2719 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2720 * breakpoint.c: Update the help text of the 'condition' and 'break'
2721 commands.
2722 (set_breakpoint_condition): Take a new bool parameter
2723 to control whether condition definition should be forced even when
2724 the condition expression is invalid in all of the current locations.
2725 (condition_command): Update the call to 'set_breakpoint_condition'.
2726 (find_condition_and_thread): Take the "-force-condition" flag into
2727 account.
2728 * linespec.c (linespec_keywords): Add "-force-condition" as an
2729 element.
2730 (FORCE_KEYWORD_INDEX): New #define.
2731 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2732 as a keyword.
2733 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2734 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2735 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2736 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2737
b5fa468f
TBA
27382020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2739
2740 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2741 * breakpoint.c (set_breakpoint_location_condition): New function.
2742 (set_breakpoint_condition): Disable a breakpoint location if parsing
2743 the condition string gives an error.
2744 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2745 (build_target_condition_list): Ditto.
2746 (build_target_command_list): Ditto.
2747 (build_bpstat_chain): Ditto.
2748 (print_one_breakpoint_location): Ditto.
2749 (print_one_breakpoint): Ditto.
2750 (breakpoint_1): Ditto.
2751 (bp_location::bp_location): Ditto.
2752 (locations_are_equal): Ditto.
2753 (update_breakpoint_locations): Ditto.
2754 (enable_disable_bp_num_loc): Ditto.
2755 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2756 (find_condition_and_thread_for_sals): New static function.
2757 (create_breakpoint): Call find_condition_and_thread_for_sals.
2758 (location_to_sals): Call find_condition_and_thread_for_sals instead
2759 of find_condition_and_thread.
2760
1c47ec3e
TV
27612020-10-26 Tom de Vries <tdevries@suse.de>
2762
2763 * dwarf2/read.c (process_full_comp_unit): Call
2764 dwarf2_find_base_address.
2765
6390859c
TT
27662020-10-26 Tom Tromey <tromey@adacore.com>
2767
2768 * gdbtypes.c (create_range_type): Revert previous patch. Add
2769 comment.
2770
d744f0f9
PA
27712020-10-26 Pedro Alves <pedro@palves.net>
2772
2773 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2774 (my_waitpid): Use gdb::handle_eintr.
2775
006811bc
SM
27762020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2777
2778 * acinclude.m4: Update ptrace.m4 path.
2779 * ptrace.m4: Moved to gdbsupport.
2780
c75e31a1
SM
27812020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2782
2783 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2784 instead of target_gdbarch.
2785
32495661
SM
27862020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * jit.c (jit_reader_load_command): Pass current inferior.
2789 (jit_inferior_init): Change parameter type to inferior, use it.
2790 (jit_inferior_created): Remove.
2791 (jit_inferior_created_hook): Pass inferior parameter down.
2792 (_initialize_jit): Use jit_inferior_created_hook instead of
2793 jit_inferior_created.
2794 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2795 * infrun.c (follow_exec): Pass inferior to
2796 jit_inferior_created_hook.
2797
3f66685e
SM
27982020-10-24 Simon Marchi <simon.marchi@efficios.com>
2799
2800 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2801 parameter and use it.
2802 (thread_db_inferior_created): Pass inferior argument.
2803
a0ff652f
SM
28042020-10-24 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * aix-thread.c (aix_thread_inferior_created): Add inferior
2807 parameter.
2808 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2809 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2810 * jit.c (jit_inferior_created): Likewise.
2811 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2812 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2813 * observable.h (inferior_created): Likewise.
2814 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2815 * symfile-mem.c (add_vsyscall_page): Likewise.
2816 * infcmd.c (post_create_inferior): Pass inferior argument.
2817
3c67532c
JB
28182020-10-24 Joel Brobecker <brobecker@adacore.com>
2819
2820 GDB 10.1 released.
2821
8747316e
JB
28222020-10-23 Joel Brobecker <brobecker@adacore.com>
2823
2824 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2825 to ada_check_typedef.
2826
1a0ea399
AB
28272020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2828
2829 * f-exp.y (f_parse): Rename to...
2830 (f_language::parser): ...this.
2831 * f-lang.c (f_get_encoding): Rename to...
2832 (f_language::get_encoding): ...this.
2833 (f_op_print_tab): Rename to...
2834 (f_language::op_print_tab): ...this.
2835 (exp_descriptor_f): Rename to...
2836 (f_language::exp_descriptor_tab): ...this.
2837 (class f_language): Moved to f-lang.h.
2838 (f_language::language_arch_info): New function, moved out of class
2839 declaration.
2840 (f_language::search_name_hash): Likewise.
2841 (f_language::lookup_symbol_nonlocal): Likewise.
2842 (f_language::get_symbol_name_matcher_inner): Likewise.
2843 * f-lang.h: Add 'valprint.h' include.
2844 (class f_language): Moved here from f-lang.c.
2845 * f-typeprint.c (f_type_print_args): Delete commented out
2846 declaration.
2847 (f_print_typedef): Rename to...
2848 (f_language::print_typedef): ...this.
2849 (f_print_type): Rename to...
2850 (f_language::print_type): ...this.
2851 (f_type_print_varspec_prefix): Delete declaration and rename to...
2852 (f_language::f_type_print_varspec_prefix): ...this.
2853 (f_type_print_varspec_suffix): Delete declaration and rename to...
2854 (f_language::f_type_print_varspec_suffix): ...this.
2855 (f_type_print_base): Delete declaration and rename to...
2856 (f_language::f_type_print_base): ...this.
2857 * f-valprint.c (f_value_print_inner): Rename to...
2858 (f_language::value_print_inner): ...this.
2859 * parse.c: Delete 'f-lang.h' include.
2860
88cefd9b
AB
28612020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * language.h (language_defn::print_type): Add variable names in
2864 declaration, and update header comment.
2865
5399db93
AB
28662020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2867
2868 * ada-lang.c (ada_language::demangle): Rename to...
2869 (ada_language::demangle_symbol): ...this.
2870 * c-lang.c (cplus_language::demangle): Rename to...
2871 (cplus_language::demangle_symbol): ...this.
2872 * d-lang.c (d_language::demangle): Rename to...
2873 (d_language::demangle_symbol): ...this.
2874 * f-lang.c (f_language::demangle): Rename to...
2875 (f_language::demangle_symbol): ...this.
2876 * go-lang.c (go_language::demangle): Rename to...
2877 (go_language::demangle_symbol): ...this.
2878 * language.c (language_demangle): Update call to demangle_symbol.
2879 (auto_or_unknown_language::demangle): Rename to...
2880 (auto_or_unknown_language::demangle_symbol): ...this.
2881 * language.h (language_defn::demangle): Rename to...
2882 (language_defn::demangle_symbol): ...this.
2883 * objc-lang.c (objc_language::demangle): Rename to...
2884 (objc_language::demangle_symbol): ...this.
2885 * rust-lang.c (rust_language::demangle): Rename to...
2886 (rust_language::demangle_symbol): ...this.
2887
4b2f86ef
AB
28882020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2889
2890 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2891 (iterate_over_file_blocks): Replace use of macro with the macros
2892 definition.
2893
e74b39de
AB
28942020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2895
2896 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2897 * valprint.c (maybe_print_array_index): Replace use of macro with
2898 the macros definition.
2899
00c696a6
AB
29002020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * ada-lang.c (ada_language::print_array_index): Call value_print
2903 directly.
2904 * language.c (language_defn::print_array_index): Likewise.
2905 * language.h (LA_VALUE_PRINT): Delete.
2906 * valprint.c (value_print): Call value_print on the
2907 current_language directly.
2908
d3b67c56
AB
29092020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * language.h (LA_PRINT_TYPEDEF): Delete.
2912 * typeprint.c (typedef_print): Call print_typedef directly on the
2913 current_language object.
2914
790e2a12
AB
29152020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2916
2917 * m2-exp.y (m2_parse): Rename to...
2918 (m2_language::parser): ...this. Update function signature.
2919 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2920 (m2_op_print): Rename to...
2921 (m2_language::op_print_tab): ...this, and make const.
2922 (exp_descriptor_modula2): Rename to...
2923 (m2_language::exp_descriptor_modula2): ...this.
2924 (class m2_language): Move to m2-lang.h.
2925 (m2_language::language_arch_info): New function, moved out of
2926 class declaration.
2927 (m2_language::printchar): New function, body from m2_printchar.
2928 (m2_language::printstr): New function, moved out of class
2929 declaration.
2930 (m2_language::emitchar): Likewise.
2931 * m2-lang.h (m2_parse): Delete declaration.
2932 (m2_print_typedef): Delete declaration.
2933 (m2_value_print_inner): Delete declaration.
2934 (class m2_language): Class declaration moved from m2-lang.c,
2935 larger functions are left in m2-lang.c.
2936 * m2-typeprint.c (m2_print_typedef): Rename to...
2937 (m2_language::print_typedef): ...this, and update function
2938 signature.
2939 * m2-valprint.c (m2_value_print_inner): Rename to...
2940 (m2_language::value_print_inner): ...this, replace use of
2941 LA_PRINT_STRING with a direct call to printstr member function,
2942 and update recursive call.
2943
b01175fc
AB
29442020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * language.c (default_is_string_type_p): Delete, implementation
2947 moved into auto_or_unknown_language::is_string_type_p.
2948 (unk_op_print_tab): Moved into
2949 auto_or_unknown_language::opcode_print_table.
2950 (unknown_language_arch_info): Delete, implementation moved into
2951 auto_or_unknown_language::language_arch_info.
2952 (class auto_or_unknown_language): New class, member functions
2953 copied from unknown_language class, with some updates.
2954 (class unknown_language): Most member functions moved into
2955 auto_or_unknown_language class. Inherit from
2956 auto_or_unknown_language class.
2957 (class auto_language): Inherit from auto_or_unknown_language.
2958 Delete most member functions.
2959
1a97fe8c
HD
29602020-10-22 Hannes Domani <ssbssa@yahoo.de>
2961
2962 * stabsread.c (read_member_functions): Remove gdb_assert.
2963
6b9d0dfd
HD
29642020-10-22 Hannes Domani <ssbssa@yahoo.de>
2965
2966 * gdbtypes.c (init_complex_type): Check target type name.
2967
4b4bb603
SM
29682020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2969
2970 * target-debug.h (target_debug_print_struct_target_ops_p):
2971 Remove.
2972 (target_debug_print_async_callback_ftype_p): Remove.
2973 (target_debug_print_struct_trace_state_variable_p): Remove.
2974 (target_debug_print_struct_traceframe_info_p): Remove.
2975 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2976 (target_debug_print_enum_btrace_format): Remove.
2977 (target_debug_print_enum_info_proc_what): Remove.
2978 (target_debug_print_thread_info_pp): Remove.
2979
24f5300a
SM
29802020-10-22 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * target.h (struct target_ops) <make_corefile_notes>:
2983 Change return type to unique pointer.
2984 * target.c (dummy_make_corefile_notes): Likewise.
2985 * exec.c (struct exec_target) <make_corefile_notes>:
2986 Likewise.
2987 (exec_target::make_corefile_notes): Likewise.
2988 * procfs.c (class procfs_target) <make_corefile_notes>:
2989 Likewise.
2990 (procfs_do_thread_registers): Adjust to unique pointer.
2991 (struct procfs_corefile_thread_data): Add constructor.
2992 <note_data>: Change type to unique pointer.
2993 (procfs_corefile_thread_callback): Adjust to unique pointer.
2994 (procfs_target::make_corefile_notes): Change return type to
2995 unique pointer.
2996 * target-delegates.c: Re-generate.
2997 * gcore.c (write_gcore_file_1): Adjust.
2998 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2999 New.
3000
5fb4027f
TV
30012020-10-22 Tom de Vries <tdevries@suse.de>
3002
3003 * block.c (find_block_in_blockvector): Make sure the returned block
3004 contains pc.
3005
4a636814
SM
30062020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3007
3008 PR gdb/26693
3009 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3010 parameter.
3011 (load_cu): Pass existing CU.
3012 (process_imported_unit_die): Likewise.
3013 (follow_die_offset): Likewise.
3014
1bd57575
LM
30152020-10-22 Luis Machado <luis.machado@linaro.org>
3016
3017 * corelow.c (core_target::xfer_partial): Also check for an empty
3018 m_core_unavailable_mappings vector.
3019
6b4c676c
AB
30202020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3021
3022 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3023 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3024 * f-exp.y (arglist): Allow for a series of subranges.
3025 (subrange): Add cases for subranges with strides.
3026 * f-lang.c (value_f90_subarray): Catch use of array strides and
3027 throw an error.
3028 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3029
f2d8e4c5
AB
30302020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3031
3032 * expprint.c (print_subexp_standard): Change enum range_type to
3033 range_flag and rename variables to match.
3034 (dump_subexp_body_standard): Likewise.
3035 * expression.h (enum range_type): Rename to...
3036 (enum range_flag): ...this.
3037 (range_types): Rename to...
3038 (range_flags): ...this.
3039 * f-lang.c (value_f90_subarray): Change enum range_type to
3040 range_flag and rename variables to match.
3041 * parse.c (operator_length_standard): Likewise.
3042 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3043 range_type to range_flag.
3044 * rust-lang.c (rust_evaluate_funcall): Likewise.
3045 (rust_range): Likewise.
3046 (rust_compute_range): Likewise.
3047 (rust_subscript): Likewise.
3048
2f1b18db
AB
30492020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3050
3051 * expprint.c (print_subexp_standard): Update to reflect changes to
3052 enum range_type.
3053 (dump_subexp_body_standard): Likewise.
3054 * expression.h (enum range_type): Convert to a bit field enum, and
3055 make the enum unsigned.
3056 * f-exp.y (subrange): Update to reflect changes to enum
3057 range_type.
3058 * f-lang.c (value_f90_subarray): Likewise.
3059 * parse.c (operator_length_standard): Likewise.
3060 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3061 * rust-lang.c (rust_range): Likewise.
3062 (rust_compute_range): Likewise.
3063 (rust_subscript): Likewise.
3064
a46d1843
SM
30652020-10-21 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3068 (displaced_step_in_progress): Fix comment.
3069
c21f37a8
SM
30702020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3071
3072 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3073 * gdbarch.c: Re-generate.
3074 * gdbarch.h: Re-generate.
3075 * gcore.c (write_gcore_file_1): Adjust.
3076 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3077 constructor.
3078 <note_data>: Change type to unique pointer.
3079 <abort_iteration>: Change type to bool.
3080 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3081 (fbsd_collect_thread_registers): Return void, adjust.
3082 (struct fbsd_corefile_thread_data): Add construtor.
3083 <note_data>: Change type to unique pointer.
3084 (fbsd_corefile_thread): Adjust.
3085 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3086 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3087 to unique pointer, adjust.
3088 (struct linux_collect_regset_section_cb_data): Add constructor.
3089 <note_data>: Change type to unique pointer.
3090 <abort_iteration>: Change type to bool.
3091 (linux_collect_thread_registers): Return void, adjust.
3092 (struct linux_corefile_thread_data): Add constructor.
3093 <note_data>: Change type to unique pointer.
3094 (linux_corefile_thread): Adjust.
3095 (linux_make_corefile_notes): Return unique pointer, adjust.
3096
07fbbd01
SM
30972020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3098
3099 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3100 * gdbarch.c: Re-generate.
3101 * gdbarch.h: Re-generate.
3102 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3103 bool.
3104 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3105 Likewise.
3106 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3107 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3108 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3109 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3110
39535193
SM
31112020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3112
3113 * gdbarch.sh: Make generated predicates return bool.
3114 * gdbarch.c: Re-generate.
3115 * gdbarch.h: Re-generate.
3116
ad523d01
TT
31172020-10-20 Tom Tromey <tom@tromey.com>
3118
3119 * varobj-iter.h (struct varobj_item): Remove typedef.
3120
c4464ade
SM
31212020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3122
3123 * infrun.c (currently_stepping): Change int to bool
3124 (maybe_software_singlestep): Likewise.
3125 (show_stop_on_solib_events): Likewise.
3126 (stepping_past_nonsteppable_watchpoint): Likewise.
3127 (displaced_step_in_progress_any_inferior): Likewise.
3128 (displaced_step_in_progress_thread): Likewise.
3129 (keep_going_stepped_thread): Likewise.
3130 (thread_still_needs_step_over): Likewise.
3131 (start_step_over): Likewise.
3132 (do_target_resume): Likewise.
3133 (resume_1): Likewise.
3134 (clear_proceed_status): Likewise.
3135 (thread_still_needs_step_over_bp): Likewise.
3136 (proceed): Likewise.
3137 (switch_back_to_stepped_thread): Likewise.
3138 (adjust_pc_after_break): Likewise.
3139 (stepped_in_from): Likewise.
3140 (handle_stop_requested): Likewise.
3141 (handle_syscall_event): Likewise.
3142 (handle_no_resumed): Likewise.
3143 (handle_inferior_event): Likewise.
3144 (finish_step_over): Likewise.
3145 (handle_signal_stop): Likewise.
3146 (process_event_stop_test): Likewise.
3147
2eb20436
SM
31482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3149
3150 * infrun.c (get_displaced_stepping_state): Fix comment.
3151
e0c45ded
AS
31522020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3153
3154 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3155
22cc388e
TT
31562020-10-19 Tom Tromey <tromey@adacore.com>
3157
3158 PR tui/26719
3159 * tui/tui-winsource.h (struct tui_source_window_base)
3160 <refresh_window>: Rename from refresh_pad.
3161 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3162 Rename from refresh_pad.
3163 (tui_source_window_base::show_source_content)
3164 (tui_source_window_base::do_scroll_horizontal): Update.
3165
3c6eb4d4
TBA
31662020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3167
3168 * thread.c (_initialize_thread): Fine-tune the help text of
3169 'info threads'.
3170
26703721
TBA
31712020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3172
3173 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3174
61c26be8
MS
31752020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3176
3177 * breakpoint.c (handle_jit_event): Add an argument, change how
3178 `jit_event_handler` is called.
3179
932539d7
TT
31802020-10-17 Tom Tromey <tom@tromey.com>
3181
3182 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3183 (scan_xcoff_symtab): Update.
3184 * psymtab.h (class psymtab_storage) <global_psymbols,
3185 static_psymbols, current_global_psymbols,
3186 current_static_psymbols>: Remove.
3187 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3188 (match_partial_symbol, lookup_partial_symbol): Update.
3189 (print_partial_symbols): Change parameters.
3190 (dump_psymtab, recursively_search_psymtabs)
3191 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3192 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3193 (concat): Remove.
3194 (end_psymtab_common): Simplify.
3195 (append_psymbol_to_list): Change parameters.
3196 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3197 (init_psymbol_list): Simplify.
3198 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3199 * psympriv.h (struct partial_symtab) <empty>: New method.
3200 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3201 Remove.
3202 <global_psymbols, static_psymbols>: New members.
3203 <add_psymbol>: New methods.
3204 (add_psymbol_to_list): Don't declare.
3205 (psymbol_placement): Move earlier.
3206 * mdebugread.c (parse_partial_symbols): Update.
3207 (handle_psymbol_enumerators): Change parameters.
3208 (mdebug_expand_psymtab): Update.
3209 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3210 (add_partial_symbol): Update.
3211 * dwarf2/index-write.c (write_psymbols): Change parameters.
3212 (write_one_signatured_type): Update.
3213 (recursively_count_psymbols): Update.
3214 (recursively_write_psymbols): Update.
3215 (class debug_names) <recursively_write_psymbols>: Update.
3216 <write_psymbols>: Change parameters.
3217 <write_one_signatured_type>: Update.
3218 * dbxread.c (read_dbx_symtab): Update.
3219 (dbx_end_psymtab): Use partial_symtab::empty.
3220 * ctfread.c (struct ctf_context) <pst>: New member.
3221 (create_partial_symtab): Set it.
3222 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3223 (scan_partial_symbols): Use the psymtab's context. Update.
3224
cfabbd35
TT
32252020-10-17 Tom Tromey <tom@tromey.com>
3226
3227 * valprint.c (generic_value_print): Remove comment.
3228 * m2-valprint.c (m2_value_print_inner): Remove comment.
3229 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3230 type.
3231
520596f2
TV
32322020-10-17 Tom de Vries <tdevries@suse.de>
3233
3234 PR symtab/26317
3235 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3236 symbol main.
3237
76547ab3
TV
32382020-10-14 Tom de Vries <tdevries@suse.de>
3239
3240 PR gdb/26733
3241 * solib.c (solib_contains_address_p): Handle
3242 'solib->sections == nullptr'.
3243
d3a07122
SM
32442020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3245
3246 PR gdb/26642
3247 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3248 target can't do async.
3249 * target.c (target_wait): Assert that we don't pass
3250 TARGET_WNOHANG to a target that can't async.
3251
1b71cfcf
KR
32522020-10-13 Kamil Rytarowski <n54@gmx.com>
3253
3254 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3255 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3256 * alpha-bsd-nat.c: Adjust include.
3257 * alpha-bsd-tdep.h: Adjust comment.
3258 * alpha-nbsd-tdep.c: Rename to ...
3259 * alpha-netbsd-tdep.c: ... this, adjust include.
3260 * amd64-nbsd-nat.c: Rename to ...
3261 * amd64-netbsd-nat.c: ... this, adjust include.
3262 * amd64-nbsd-tdep.c: Rename to ...
3263 * amd64-netbsd-tdep.c: ... this, adjust include.
3264 * amd64-tdep.h: Adjust include.
3265 * arm-nbsd-nat.c: Rename to ...
3266 * arm-netbsd-nat.c: ... this, adjust include.
3267 * arm-nbsd-tdep.c: Rename to ...
3268 * arm-netbsd-tdep.c: ... this, adjust include.
3269 * arm-nbsd-tdep.h: Rename to ...
3270 * arm-netbsd-tdep.h: ... this, adjust include.
3271 * configure.nat: Adjust file lists.
3272 * configure.tgt: Likewise.
3273 * hppa-nbsd-nat.c: Rename to ...
3274 * hppa-netbsd-nat.c: ... this, adjust include.
3275 * hppa-nbsd-tdep.c: Rename to ...
3276 * hppa-netbsd-tdep.c: ... this, adjust include.
3277 * i386-nbsd-nat.c: Rename to ...
3278 * i386-netbsd-nat.c: ... this, adjust include.
3279 * i386-nbsd-tdep.c: Rename to ...
3280 * i386-netbsd-tdep.c: ... this, adjust include.
3281 * m68k-bsd-nat.c: Adjust include.
3282 * mips-nbsd-nat.c: Rename to ...
3283 * mips-netbsd-nat.c: ... this, adjust include.
3284 * mips-nbsd-tdep.c: Rename to ...
3285 * mips-netbsd-tdep.c: ... this, adjust include.
3286 * mips-nbsd-tdep.h: Rename to ...
3287 * mips-netbsd-tdep.h: ... this.
3288 * nbsd-nat.c: Rename to ...
3289 * netbsd-nat.c: ... this, adjust include.
3290 * nbsd-nat.h: Rename to ...
3291 * netbsd-nat.h: ... this, adjust include.
3292 * nbsd-tdep.c: Rename to ...
3293 * netbsd-tdep.c: ... this, adjust include.
3294 * nbsd-tdep.h: Rename to ...
3295 * netbsd-tdep.h: ... this.
3296 * ppc-nbsd-nat.c: Rename to ...
3297 * ppc-netbsd-nat.c: ... this, adjust include.
3298 * ppc-nbsd-tdep.c: Rename to ...
3299 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3300 * ppc-nbsd-tdep.h: Rename to ...
3301 * ppc-netbsd-tdep.h: ... this.
3302 * sh-nbsd-nat.c: Rename to ...
3303 * sh-netbsd-nat.c: ... this, adjust include.
3304 * sh-nbsd-tdep.c: Rename to ...
3305 * sh-netbsd-tdep.c: ... this, adjust include.
3306 * sparc-nbsd-nat.c: Rename to ...
3307 * sparc-netbsd-nat.c: ... this.
3308 * sparc-nbsd-tdep.c: Rename to ...
3309 * sparc-netbsd-tdep.c: ... this, adjust include.
3310 * sparc64-nbsd-nat.c: Rename to ...
3311 * sparc64-netbsd-nat.c: ... this.
3312 * sparc64-nbsd-tdep.c: Rename to ...
3313 * sparc64-netbsd-tdep.c: ... this, adjust include.
3314 * sparc64-tdep.h: Adjust comment.
3315 * vax-bsd-nat.c: Adjust include.
3316 * vax-nbsd-tdep.c: Rename to ...
3317 * vax-netbsd-tdep.c: ... this, adjust include.
3318
d7a78e5c
TT
33192020-10-12 Tom Tromey <tom@tromey.com>
3320
3321 * target.h (struct target_ops) <get_section_table>: Update.
3322 (target_get_section_table): Update.
3323 * target.c (target_get_section_table, target_section_by_addr)
3324 (memory_xfer_partial_1): Update.
3325 * target-section.h (target_section_table): Now an alias.
3326 * target-delegates.c: Rebuild.
3327 * target-debug.h (target_debug_print_target_section_table_p):
3328 Rename from target_debug_print_struct_target_section_table_p.
3329 * symfile.c (build_section_addr_info_from_section_table): Update.
3330 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3331 * solib-svr4.c (scan_dyntag): Update.
3332 * solib-dsbt.c (scan_dyntag): Update.
3333 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3334 Update.
3335 * record-full.c (record_full_core_target::xfer_partial): Update.
3336 * progspace.h (struct program_space) <target_sections>: Update.
3337 * exec.h (print_section_info): Update.
3338 * exec.c (exec_target::close, build_section_table)
3339 (add_target_sections, add_target_sections_of_objfile)
3340 (remove_target_sections, exec_on_vfork)
3341 (section_table_available_memory)
3342 (section_table_xfer_memory_partial)
3343 (exec_target::get_section_table, exec_target::xfer_partial)
3344 (print_section_info, set_section_command)
3345 (exec_set_section_address, exec_target::has_memory): Update.
3346 * corelow.c (core_target::build_file_mappings)
3347 (core_target::xfer_partial, core_target::info_proc_mappings)
3348 (core_target::info_proc_mappings): Update.
3349 * bfd-target.c (class target_bfd): Update
3350
eda214ce
TT
33512020-10-12 Tom Tromey <tom@tromey.com>
3352
3353 * progspace.c (program_space::~program_space): Don't call
3354 clear_section_table.
3355 * exec.h (clear_section_table): Don't declare.
3356 * exec.c (exec_target::close): Update.
3357 (clear_section_table): Remove.
3358
91840ee3
TT
33592020-10-12 Tom Tromey <tom@tromey.com>
3360
3361 * exec.c (add_target_sections_of_objfile): Simplify.
3362
2d128614
TT
33632020-10-12 Tom Tromey <tom@tromey.com>
3364
3365 * solib.c (solib_map_sections): Update.
3366 * record-full.c (record_full_core_open_1): Update.
3367 * exec.h (build_section_table): Return a target_section_table.
3368 * exec.c (exec_file_attach): Update.
3369 (build_section_table): Return a target_section_table.
3370 * corelow.c (core_target::core_target): Update.
3371 * bfd-target.c (target_bfd::target_bfd): Update.
3372
bb2a6777
TT
33732020-10-12 Tom Tromey <tom@tromey.com>
3374
3375 * target.c (target_section_by_addr, memory_xfer_partial_1):
3376 Update.
3377 * target-section.h (struct target_section_table): Use
3378 std::vector.
3379 * symfile.h (build_section_addr_info_from_section_table): Take a
3380 target_section_table.
3381 * symfile.c (build_section_addr_info_from_section_table): Take a
3382 target_section_table.
3383 * solist.h (struct so_list) <sections>: Change type.
3384 <sections_end>: Remove.
3385 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3386 (solib_contains_address_p): Update.
3387 * solib-svr4.c (scan_dyntag): Update.
3388 * solib-dsbt.c (scan_dyntag): Update.
3389 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3390 Update.
3391 * record-full.c (record_full_core_start, record_full_core_end):
3392 Remove.
3393 (record_full_core_sections): New global.
3394 (record_full_core_open_1, record_full_core_target::xfer_partial):
3395 Update.
3396 * exec.h (build_section_table, section_table_xfer_memory_partial)
3397 (add_target_sections): Take a target_section_table.
3398 * exec.c (exec_file_attach, clear_section_table): Update.
3399 (resize_section_table): Remove.
3400 (build_section_table, add_target_sections): Take a
3401 target_section_table.
3402 (add_target_sections_of_objfile, remove_target_sections)
3403 (exec_on_vfork): Update.
3404 (section_table_available_memory): Take a target_section_table.
3405 (section_table_read_available_memory): Update.
3406 (section_table_xfer_memory_partial): Take a target_section_table.
3407 (print_section_info, set_section_command)
3408 (exec_set_section_address, exec_target::has_memory): Update.
3409 * corelow.c (class core_target) <m_core_section_table,
3410 m_core_file_mappings>: Remove braces.
3411 <~core_target>: Remove.
3412 (core_target::core_target): Update.
3413 (core_target::~core_target): Remove.
3414 (core_target::build_file_mappings)
3415 (core_target::xfer_memory_via_mappings)
3416 (core_target::xfer_partial, core_target::info_proc_mappings):
3417 Update.
3418 * bfd-target.c (target_bfd::xfer_partial): Update.
3419 (target_bfd::target_bfd): Update.
3420 (target_bfd::~target_bfd): Remove.
3421
7b466b10
TT
34222020-10-12 Tom Tromey <tom@tromey.com>
3423
3424 * target.h (struct target_section, struct target_section_table):
3425 Move to target-section.h.
3426 * target-section.h: New file.
3427
87a37e5e
PA
34282020-10-12 Pedro Alves <pedro@palves.net>
3429
3430 PR exp/26602
3431 * valops.c (struct struct_field_searcher): New.
3432 (update_search_result): Rename to ...
3433 (struct_field_searcher::update_result): ... this. Simplify
3434 prototype. Record all found fields.
3435 (do_search_struct_field): Rename to ...
3436 (struct_field_searcher::search): ... this. Simplify prototype.
3437 Maintain stack of visited baseclass path. Call update_result for
3438 fields too. Keep searching fields in baseclasses instead of
3439 stopping at the first found field.
3440 (search_struct_field): Use struct_field_searcher. When looking
3441 for fields, report ambiguous access attempts.
3442
9370fd51
AB
34432020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 * frame.c (inside_main_func): Check full symbols as well as
3446 minimal symbols.
3447
59c8a30b
JB
34482020-10-09 Joel Brobecker <brobecker@adacore.com>
3449
3450 * ada-lang.c (advance_wild_match): Rewrite the function's
3451 description. Change the type of target0, t0 and t1 to char.
3452
7c184d33
TT
34532020-10-09 Tom Tromey <tromey@adacore.com>
3454
3455 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3456
5c4258f4
TT
34572020-10-09 Tom Tromey <tromey@adacore.com>
3458
3459 * ada-lang.h (ada_encode): Return std::string.
3460 * ada-lang.c (ada_encode_1): Return std::string.
3461 (ada_encode): Likewise.
3462 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3463 Update.
3464 * ada-exp.y (block_lookup, write_var_or_type): Update.
3465
3d87245c
HD
34662020-10-09 Hannes Domani <ssbssa@yahoo.de>
3467
3468 PR exp/26714
3469 * printcmd.c (print_formatted): Handle void results as
3470 unformatted prints.
3471
bbb826f5
AB
34722020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3473
3474 * arch/aarch32.c (aarch32_create_target_description): Release the
3475 target_desc_up as late as possible.
3476 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3477 * arch/amd64.c (amd64_create_target_description): Likewise.
3478 * arch/arc.c (arc_create_target_description): Return a
3479 target_desc_up, don't release it.
3480 * arch/arc.h (arc_create_target_description): Update declaration.
3481 (arc_lookup_target_description): Move target_desc_up into the
3482 cache, and return a borrowed pointer.
3483 * arch/arm.c (arm_create_target_description): Release the
3484 target_desc_up as late as possible.
3485 * arch/i386.c (i386_create_target_description): Likewise.
3486 * arch/riscv.h (riscv_create_target_description): Update
3487 declaration to match definition.
3488 * arch/tic6x.c (tic6x_create_target_description): Release the
3489 target_desc_up as late as possible.
3490
361cb219
AB
34912020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3492
3493 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3494 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3495
f5c4b229
JV
34962020-10-09 Jan Vrany <jan.vrany@labware.com>
3497
3498 * source.c (directory_command): Notify observers that "directories"
3499 parameter has changed.
3500
b2701685
TT
35012020-10-08 Tom Tromey <tom@tromey.com>
3502
3503 * cli/cli-cmds.c (print_disassembly): Style function name and
3504 addresses. Add _() wrappers.
3505
ada508b6
SV
35062020-10-08 Shahab Vahedi <shahab@synopsys.com>
3507
3508 * NEWS: Mention ARC support in GDBserver.
3509
51a948fd
AB
35102020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3511
3512 * arch/aarch32.c (aarch32_create_target_description): Release
3513 unique_ptr returned from allocate_target_description.
3514 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3515 * arch/amd64.c (amd64_create_target_description): Likewise.
3516 * arch/arc.c (arc_create_target_description): Likewise.
3517 * arch/arm.c (arm_create_target_description): Likewise.
3518 * arch/i386.c (i386_create_target_description): Likewise.
3519 * arch/riscv.c (riscv_create_target_description): Update return
3520 type. Handle allocate_target_description returning a unique_ptr.
3521 (riscv_lookup_target_description): Update to handle unique_ptr.
3522 * arch/tic6x.c (tic6x_create_target_description): Release
3523 unique_ptr returned from allocate_target_description.
3524 * features/microblaze-with-stack-protect.c: Regenerate.
3525 * features/microblaze.c: Regenerate.
3526 * features/mips-dsp-linux.c: Regenerate.
3527 * features/mips-linux.c: Regenerate.
3528 * features/mips64-dsp-linux.c: Regenerate.
3529 * features/mips64-linux.c: Regenerate.
3530 * features/nds32.c: Regenerate.
3531 * features/nios2.c: Regenerate.
3532 * features/or1k.c: Regenerate.
3533 * features/rs6000/powerpc-32.c: Regenerate.
3534 * features/rs6000/powerpc-32l.c: Regenerate.
3535 * features/rs6000/powerpc-403.c: Regenerate.
3536 * features/rs6000/powerpc-403gc.c: Regenerate.
3537 * features/rs6000/powerpc-405.c: Regenerate.
3538 * features/rs6000/powerpc-505.c: Regenerate.
3539 * features/rs6000/powerpc-601.c: Regenerate.
3540 * features/rs6000/powerpc-602.c: Regenerate.
3541 * features/rs6000/powerpc-603.c: Regenerate.
3542 * features/rs6000/powerpc-604.c: Regenerate.
3543 * features/rs6000/powerpc-64.c: Regenerate.
3544 * features/rs6000/powerpc-64l.c: Regenerate.
3545 * features/rs6000/powerpc-7400.c: Regenerate.
3546 * features/rs6000/powerpc-750.c: Regenerate.
3547 * features/rs6000/powerpc-860.c: Regenerate.
3548 * features/rs6000/powerpc-altivec32.c: Regenerate.
3549 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3550 * features/rs6000/powerpc-altivec64.c: Regenerate.
3551 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3552 * features/rs6000/powerpc-e500.c: Regenerate.
3553 * features/rs6000/powerpc-e500l.c: Regenerate.
3554 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3555 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3556 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3557 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3558 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3559 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3560 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3561 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3562 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3563 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3564 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3565 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3566 * features/rs6000/powerpc-vsx32.c: Regenerate.
3567 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3568 * features/rs6000/powerpc-vsx64.c: Regenerate.
3569 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3570 * features/rs6000/rs6000.c: Regenerate.
3571 * features/rx.c: Regenerate.
3572 * features/s390-gs-linux64.c: Regenerate.
3573 * features/s390-linux32.c: Regenerate.
3574 * features/s390-linux32v1.c: Regenerate.
3575 * features/s390-linux32v2.c: Regenerate.
3576 * features/s390-linux64.c: Regenerate.
3577 * features/s390-linux64v1.c: Regenerate.
3578 * features/s390-linux64v2.c: Regenerate.
3579 * features/s390-te-linux64.c: Regenerate.
3580 * features/s390-tevx-linux64.c: Regenerate.
3581 * features/s390-vx-linux64.c: Regenerate.
3582 * features/s390x-gs-linux64.c: Regenerate.
3583 * features/s390x-linux64.c: Regenerate.
3584 * features/s390x-linux64v1.c: Regenerate.
3585 * features/s390x-linux64v2.c: Regenerate.
3586 * features/s390x-te-linux64.c: Regenerate.
3587 * features/s390x-tevx-linux64.c: Regenerate.
3588 * features/s390x-vx-linux64.c: Regenerate.
3589 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3590 from allocate_target_description.
3591 * target-descriptions.c (allocate_target_description): Update
3592 return type.
3593 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3594 allocate_target_description.
3595
485c47e5
TT
35962020-10-07 Tom Tromey <tromey@adacore.com>
3597
3598 * unittests/search-memory-selftests.c: New file.
3599 * Makefile.in (SELFTESTS_SRCS): Add
3600 unittests/search-memory-selftests.c.
3601
3a135a91
TT
36022020-10-07 Tom Tromey <tromey@adacore.com>
3603
3604 PR gdb/16930:
3605 * findcmd.c (_initialize_mem_search): Mention that the range is
3606 inclusive.
3607
4a72de73
TT
36082020-10-07 Tom Tromey <tromey@adacore.com>
3609
3610 * target.h (simple_search_memory): Don't declare.
3611 * target.c (simple_search_memory): Move to gdbsupport.
3612 (default_search_memory): Update.
3613 * remote.c (remote_target::search_memory): Update.
3614
a038ffd8
SM
36152020-10-07 Simon Marchi <simon.marchi@efficios.com>
3616
3617 * Makefile.in (COMPILE): Add CXXFLAGS.
3618 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3619 (check-headers): Add CXXFLAGS.
3620
cc463201
AK
36212020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3622
3623 * arc-linux-tdep.h: New file.
3624 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3625 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3626 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3627 arc_linux_gregset, arc_linux_v2_regset,
3628 arc_linux_iterate_over_regset_sections,
3629 arc_linux_core_read_description): Implement.
3630 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3631 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3632 (arc_gdbarch_features_create): Add.
3633 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3634
e4bd363f
SV
36352020-10-07 Shahab Vahedi <shahab@synopsys.com>
3636
3637 * arch/arc.h: Rename "arc_gdbarch_features" to
3638 "arc_arch_features".
3639 * arc-tdep.h: Likewise.
3640 * arc-tdep.c: Likewise.
3641
b68bef99
TBA
36422020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3643
3644 * infcmd.c (attach_command): Remove the redundant call to
3645 `clear_proceed_status`.
3646
4641551a
KR
36472020-10-07 Kamil Rytarowski <n54@gmx.com>
3648
3649 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3650
91e5e8db
KR
36512020-10-07 Kamil Rytarowski <n54@gmx.com>
3652
3653 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3654 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3655 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3656
64c03bdb
SM
36572020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3658
3659 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3660 (_initialize_break_catch_sig): Don't allocate array.
3661
31a8f60f
AB
36622020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3663
3664 * symtab.c (find_pc_line): Return unmapped addresses when the
3665 requested address is also unmapped.
3666
9e6dbd8b
SM
36672020-10-05 Simon Marchi <simon.marchi@efficios.com>
3668
3669 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3670 tui/tui-out.h.
3671
a1d217e8
SM
36722020-10-05 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3675 type::is_vector instead of TYPE_VECTOR.
3676
7d144117
SM
36772020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3678
3679 * auto-load.c (auto_load_objfile_script_1): Don't use
3680 debugfile_holder as temporary variable when stripping drive
3681 letter.
3682
cd096ec8
HD
36832020-10-05 Hannes Domani <ssbssa@yahoo.de>
3684
3685 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3686 Add TYPE_CODE_COMPLEX.
3687 (amd64_windows_return_value): Fix types returned via XMM0.
3688
b58e7f72
AH
36892020-10-05 Alan Hayward <alan.hayward@arm.com>
3690
3691 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3692 AArch64/ARM maintainers.
3693
8d378f27
SM
36942020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * NEWS: Mention set/show debug event-loop.
3697
d5519913
TT
36982020-10-02 Tom Tromey <tromey@adacore.com>
3699
3700 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3701 REG_EXTENDED.
3702
18b67edc
SM
37032020-10-02 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3706 * procfs.c (procfs_inferior_created): Remove.
3707 (_initialize_procfs): Don't register procfs_inferior_created.
3708
6b01403b
SM
37092020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * async-event.c (invoke_async_signal_handlers): Add debug
3712 print.
3713 (check_async_event_handlers): Likewise.
3714 * event-top.c (show_debug_event_loop): New function.
3715 (_initialize_event_top): Register "set debug event-loop"
3716 setting.
3717
ba988419
SM
37182020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3719
3720 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3721 * debug.h: Remove.
3722 * infrun.c: Include gdbsupport/common-debug.h.
3723 * linux-nat.c: Likewise.
3724
db20ebdf
SM
37252020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3726
3727 * async-event.h (create_async_signal_handler): Add name
3728 parameter.
3729 (create_async_event_handler): Likewise.
3730 * async-event.c (struct async_signal_handler) <name>: New field.
3731 (struct async_event_handler) <name>: New field.
3732 (create_async_signal_handler): Assign name.
3733 (create_async_event_handler): Assign name.
3734 * event-top.c (async_init_signals): Pass name when creating
3735 handler.
3736 * infrun.c (_initialize_infrun): Likewise.
3737 * record-btrace.c (record_btrace_push_target): Likewise.
3738 * record-full.c (record_full_open): Likewise.
3739 * remote-notif.c (remote_notif_state_allocate): Likewise.
3740 * remote.c (remote_target::open_1): Likewise.
3741 * tui/tui-win.c (tui_initialize_win): Likewise.
3742
2554f6f5
SM
37432020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3744
3745 * async-event.c (initialize_async_signal_handlers): Pass name to
3746 add_file_handler
3747 * event-top.c (ui_register_input_event_handler): Likewise.
3748 * linux-nat.c (linux_nat_target::async): Likewise.
3749 * run-on-main-thread.c (_initialize_run_on_main_thread):
3750 Likewise
3751 * ser-base.c (reschedule): Likewise.
3752 (ser_base_async): Likewise.
3753 * tui/tui-io.c: Likewise.
3754 * top.h (struct ui) <num>: New field.
3755 * top.c (highest_ui_num): New variable.
3756 (ui::ui): Initialize num.
3757
a7aba266
SM
37582020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3759
3760 * observable.h <inferior_created>: Remove parameters. Update all
3761 listeners.
3762 * inferior.h (post_create_inferior): Remove target parameter.
3763 Update all callers.
3764
048fde1e 37652020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3766
3767 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3768 and DW_MACRO_undef_strx.
3769 (dwarf_decode_macros): Likewise
3770 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3771 which is the value of DW_AT_str_offsets_base.
3772 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3773 str_offsets_base.
3774
064280be
KR
37752020-10-01 Kamil Rytarowski <n54@gmx.com>
3776
3777 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3778
6ff33035
KR
37792020-10-01 Kamil Rytarowski <n54@gmx.com>
3780
3781 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3782 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3783
1eb6eb79
KR
37842020-10-01 Kamil Rytarowski <n54@gmx.com>
3785
3786 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3787
95eb9e54
TV
37882020-09-30 Tom de Vries <tdevries@suse.de>
3789
3790 PR symtab/26683
3791 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3792
cae21f8e
TT
37932020-09-30 Tom Tromey <tromey@adacore.com>
3794
3795 * dwarf2/read.c (handle_variant): Use constant_value.
3796
529908cb
TT
37972020-09-29 Tom Tromey <tom@tromey.com>
3798
3799 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3800 (read_file_scope, dwarf2_get_pc_bounds)
3801 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3802 (read_structure_type, handle_struct_member_die)
3803 (read_enumeration_type, read_array_type, read_set_type)
3804 (read_tag_pointer_type, read_tag_reference_type)
3805 (read_subroutine_type, read_base_type, read_subrange_type)
3806 (read_full_die_1, partial_die_info::read)
3807 (partial_die_info::read, by, new_symbol)
3808 (dwarf2_const_value_data, dwarf2_const_value_attr)
3809 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3810 (prepare_one_comp_unit): Update.
3811 * dwarf2/attribute.h (DW_UNSND): Remove.
3812
c45bc3f8
TT
38132020-09-29 Tom Tromey <tom@tromey.com>
3814
3815 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3816 (read_subroutine_type, partial_die_info::read)
3817 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3818 (dwarf2_add_member_fn): Update.
3819 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3820 * dwarf2/attribute.c (attribute::as_boolean): New method.
3821
23dca5c3
TT
38222020-09-29 Tom Tromey <tom@tromey.com>
3823
3824 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3825 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3826 method.
3827 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3828
52c14d11
TT
38292020-09-29 Tom Tromey <tom@tromey.com>
3830
3831 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3832 the attribute's form.
3833
e8e5c158
TT
38342020-09-29 Tom Tromey <tom@tromey.com>
3835
3836 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3837 (dwarf2_add_member_fn): Update.
3838 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3839 * dwarf2/attribute.c (attribute::defaulted): New method, from
3840 is_valid_DW_AT_defaulted.
3841
d4df075e
TT
38422020-09-29 Tom Tromey <tom@tromey.com>
3843
3844 * dwarf2/read.c (dw2_get_file_names_reader)
3845 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3846 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3847 (dwarf2_symbol_mark_computed): Use as_unsigned.
3848 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3849 method.
3850 <form_is_section_offset>: Update comment.
3851
bf23a268
TT
38522020-09-29 Tom Tromey <tom@tromey.com>
3853
3854 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3855 dwarf2_default_access_attribute. Look up attribute.
3856 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3857 Update.
3858
7a5f294d
TT
38592020-09-29 Tom Tromey <tom@tromey.com>
3860
3861 * dwarf2/read.c (skip_one_die): Update.
3862 (read_full_die_1): Change how reprocessing is done.
3863 (partial_die_info::read): Update.
3864 (read_attribute_value): Remove need_reprocess parameter.
3865 (read_attribute): Likewise.
3866 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3867 New method.
3868
36d378cf
TT
38692020-09-29 Tom Tromey <tom@tromey.com>
3870
3871 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3872 (dwarf2_const_value_attr, dump_die_shallow)
3873 (dwarf2_fetch_constant_bytes): Update.
3874 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3875 comment.
3876 <set_address>: New method.
3877 (DW_ADDR): Remove.
3878 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3879 (attribute::as_string, attribute::as_address): Add assert.
3880
fe56917a
TT
38812020-09-29 Tom Tromey <tom@tromey.com>
3882
3883 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3884 (read_attribute_reprocess, read_attribute_value): Update.
3885 (read_attribute): Clear requires_reprocessing.
3886 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3887 form_requires_reprocessing>: New methods.
3888 <string_init>: Clear requires_reprocessing.
3889 <set_unsigned_reprocess>: New method.
3890 <name>: Shrink by one bit.
3891 <requires_reprocessing>: New member.
3892 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3893 method.
3894
414ad644
TT
38952020-09-29 Tom Tromey <tom@tromey.com>
3896
3897 * dwarf2/read.c (read_attribute_value): Update.
3898 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3899 set_unsigned>: New methods.
3900 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3901
1bc397c5
TT
39022020-09-29 Tom Tromey <tom@tromey.com>
3903
3904 * dwarf2/read.c (get_alignment, read_array_order)
3905 (read_attribute_value, dwarf2_const_value_attr)
3906 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3907 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3908 New methods.
3909 (DW_SND): Remove.
3910
630ed6b9
TT
39112020-09-29 Tom Tromey <tom@tromey.com>
3912
3913 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3914 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3915 Update.
3916 * dwarf2/attribute.h (struct attribute) <as_signature,
3917 set_signature>: New methods.
3918 (DW_SIGNATURE): Remove.
3919
9d2246fc
TT
39202020-09-29 Tom Tromey <tom@tromey.com>
3921
3922 * dwarf2/read.c (read_call_site_scope)
3923 (handle_data_member_location, dwarf2_add_member_fn)
3924 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3925 (partial_die_info::read, read_attribute_value)
3926 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3927 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3928 (dwarf2_symbol_mark_computed): Update.
3929 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3930 methods.
3931 (DW_BLOCK): Remove.
3932 * dwarf2/attribute.c (attribute::form_is_block): Add
3933 DW_FORM_data16.
3934
c6481205
TT
39352020-09-29 Tom Tromey <tom@tromey.com>
3936
3937 * dwarf2/read.c (read_cutu_die_from_dwo)
3938 (read_attribute_reprocess, read_attribute_value, read_attribute)
3939 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3940 (dwarf2_fetch_constant_bytes): Update.
3941 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3942 <set_string_noncanonical, set_string_canonical>: New methods.
3943 <string_is_canonical>: Update comment.
3944 <canonical_string_p>: Add assert.
3945 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3946 * dwarf2/attribute.c (attribute::form_is_string): New method.
3947 (attribute::string): Use it.
3948
3b64bf15
TT
39492020-09-29 Tom Tromey <tom@tromey.com>
3950
3951 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3952 (dump_die_shallow): Use canonical_string_p.
3953 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3954 method.
3955
2c830f54
TT
39562020-09-29 Tom Tromey <tom@tromey.com>
3957
3958 * dwarf2/read.c (partial_die_info::read)
3959 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3960 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3961 attribute::as_string.
3962
6c412691
TT
39632020-09-29 Tom Tromey <tom@tromey.com>
3964
3965 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3966 DW_ADDR.
3967 (attribute::string): Don't use DW_STRING.
3968 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3969 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3970
95f982e5
TT
39712020-09-29 Tom Tromey <tom@tromey.com>
3972
3973 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3974 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3975 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3976 * dwarf2/attribute.h (struct attribute): Rename methods.
3977 * dwarf2/attribute.c (attribute::as_address): Rename from
3978 value_as_address.
3979 (attribute::as_string): Rename from value_as_string.
3980
f800b00e
TT
39812020-09-29 Tom Tromey <tom@tromey.com>
3982
3983 * dwarf2/read.c (partial_die_info::read) <case
3984 DW_AT_linkage_name>: Use value_as_string.
3985 (dwarf2_string_attr): Use value_as_string.
3986 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3987 method.
3988 * dwarf2/attribute.c (attribute::value_as_string): New method.
3989
de38d64a
PA
39902020-09-29 Pedro Alves <pedro@palves.net>
3991
3992 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3993 defined before using '#pragma GCC diagnostic' instead of checking
3994 __clang__.
3995
9aed480c
TT
39962020-09-28 Tom Tromey <tom@tromey.com>
3997
3998 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3999 (handle_signal_stop): Update.
4000 * procfs.c (procfs_target::insert_watchpoint): Update.
4001 * target.h (target_have_steppable_watchpoint): Now a function.
4002
8a3ecb79
TT
40032020-09-28 Tom Tromey <tom@tromey.com>
4004
4005 * infrun.c (set_schedlock_func): Update.
4006 * target.h (target_can_lock_scheduler): Now a function.
4007
55f6301a
TT
40082020-09-28 Tom Tromey <tom@tromey.com>
4009
4010 * inferior.h (class inferior) <has_execution>: Update.
4011 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4012 * valops.c (find_function_in_inferior)
4013 (value_allocate_space_in_inferior): Update.
4014 * top.c (kill_or_detach): Update.
4015 * target.c (target_preopen, set_target_permissions): Update.
4016 (target_has_execution_current): Remove.
4017 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4018 Update.
4019 * solib.c (update_solib_list, reload_shared_libraries): Update.
4020 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4021 * solib-dsbt.c (enable_break): Update.
4022 * score-tdep.c (score7_fetch_inst): Update.
4023 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4024 Update.
4025 * remote.c (remote_target::start_remote)
4026 (remote_target::remote_check_symbols, remote_target::open_1)
4027 (remote_target::remote_detach_1, remote_target::verify_memory)
4028 (remote_target::xfer_partial, remote_target::read_description)
4029 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4030 * record-full.c (record_full_open_1): Update.
4031 * record-btrace.c (record_btrace_target_open): Update.
4032 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4033 (value_nsstring): Update.
4034 * linux-thread-db.c (add_thread_db_info)
4035 (thread_db_find_new_threads_silently, check_thread_db_callback)
4036 (try_thread_db_load_1, record_thread): Update.
4037 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4038 Update.
4039 * linux-fork.c (checkpoint_command): Update.
4040 * infrun.c (set_non_stop, set_observer_mode)
4041 (check_multi_target_resumption, for_each_just_stopped_thread)
4042 (maybe_remove_breakpoints, normal_stop)
4043 (class infcall_suspend_state): Update.
4044 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4045 (info_program_command, attach_command): Update.
4046 * infcall.c (call_function_by_hand_dummy): Update.
4047 * inf-loop.c (inferior_event_handler): Update.
4048 * gcore.c (gcore_command, derive_heap_segment): Update.
4049 * exec.c (exec_file_command): Update.
4050 * eval.c (evaluate_subexp): Update.
4051 * compile/compile.c (compile_to_object): Update.
4052 * cli/cli-dump.c (restore_command): Update.
4053 * breakpoint.c (update_watchpoint)
4054 (update_inserted_breakpoint_locations)
4055 (insert_breakpoint_locations, get_bpstat_thread): Update.
4056 * target.h (target_has_execution): Remove macro.
4057 (target_has_execution_current): Don't declare.
4058 (target_has_execution): Rename from target_has_execution_1. Add
4059 argument default.
4060
05374cfd
TT
40612020-09-28 Tom Tromey <tom@tromey.com>
4062
4063 * mi/mi-main.c (exec_reverse_continue)
4064 (mi_cmd_list_target_features): Update.
4065 * infrun.c (set_exec_direction_func): Update.
4066 * target.c (default_execution_direction): Update.
4067 * reverse.c (exec_reverse_once): Update.
4068 * target.h (target_can_execute_reverse): Now a function.
4069
9dccd06e
TT
40702020-09-28 Tom Tromey <tom@tromey.com>
4071
4072 * tui/tui-regs.c (tui_get_register)
4073 (tui_data_window::show_registers): Update.
4074 * thread.c (scoped_restore_current_thread::restore)
4075 (scoped_restore_current_thread::scoped_restore_current_thread):
4076 Update.
4077 * regcache-dump.c (regcache_print): Update.
4078 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4079 Update.
4080 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4081 * mep-tdep.c (current_me_module, current_options): Update.
4082 * linux-thread-db.c (thread_db_load): Update.
4083 * infcmd.c (registers_info, info_vector_command)
4084 (info_float_command): Update.
4085 * ia64-tdep.c (ia64_frame_prev_register)
4086 (ia64_sigtramp_frame_prev_register): Update.
4087 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4088 * gcore.c (derive_stack_segment): Update.
4089 * frame.c (get_current_frame, has_stack_frames): Update.
4090 * findvar.c (language_defn::read_var_value): Update.
4091 * arm-tdep.c (arm_pc_is_thumb): Update.
4092 * target.c (target_has_registers): Rename from
4093 target_has_registers_1.
4094 * target.h (target_has_registers): Remove macro.
4095 (target_has_registers): Rename from target_has_registers_1.
4096
841de120
TT
40972020-09-28 Tom Tromey <tom@tromey.com>
4098
4099 * windows-tdep.c (tlb_make_value): Update.
4100 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4101 * thread.c (scoped_restore_current_thread::restore)
4102 (scoped_restore_current_thread::scoped_restore_current_thread)
4103 (thread_command): Update.
4104 * stack.c (backtrace_command_1, frame_apply_level_command)
4105 (frame_apply_all_command, frame_apply_command): Update.
4106 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4107 Update.
4108 * gcore.c (derive_stack_segment): Update.
4109 * frame.c (get_current_frame, has_stack_frames): Update.
4110 * auxv.c (info_auxv_command): Update.
4111 * ada-tasks.c (ada_build_task_list): Update.
4112 * target.c (target_has_stack): Rename from target_has_stack_1.
4113 * target.h (target_has_stack): Remove macro.
4114 (target_has_stack): Rename from target_has_stack_1.
4115
a739972c
TT
41162020-09-28 Tom Tromey <tom@tromey.com>
4117
4118 * target.c (target_has_memory): Rename from target_has_memory_1.
4119 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4120 * thread.c (scoped_restore_current_thread::restore)
4121 (scoped_restore_current_thread::scoped_restore_current_thread):
4122 Update.
4123 * frame.c (get_current_frame, has_stack_frames): Update.
4124 * target.h (target_has_memory): Remove macro.
4125 (target_has_memory): Rename from target_has_memory_1.
4126
5b8a4776
TT
41272020-09-28 Tom Tromey <tom@tromey.com>
4128
4129 * target.c (target_has_all_memory_1): Remove.
4130 * target.h (target_has_all_memory): Remove define.
4131 (target_has_all_memory_1): Don't declare.
4132
bd356ec6
SM
41332020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4134
4135 * ser-base.c: Adjust comments formatting.
4136
2c72d5e5
TT
41372020-09-27 Tom Tromey <tom@tromey.com>
4138
4139 PR tui/25342:
4140 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4141
35a98237
TT
41422020-09-27 Tom Tromey <tom@tromey.com>
4143
4144 PR tui/25342:
4145 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4146
9e820dec
TT
41472020-09-27 Tom Tromey <tom@tromey.com>
4148
4149 * unittests/tui-selftests.c: Update.
4150 * tui/tui-winsource.h (struct tui_source_window_base)
4151 <extra_margin, show_line_number, refresh_pad>: New methods.
4152 <m_max_length, m_pad>: New members.
4153 (tui_copy_source_line): Update.
4154 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4155 first_col, line_width, ndigits parameters. Add length.
4156 (tui_source_window_base::show_source_line): Write to pad. Line
4157 number now 0-based.
4158 (tui_source_window_base::refresh_pad): New method.
4159 (tui_source_window_base::show_source_content): Write to pad. Call
4160 refresh_pad.
4161 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4162 not refill.
4163 (tui_source_window_base::update_exec_info): Call
4164 show_line_number.
4165 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4166 method.
4167 <m_digits>: New member.
4168 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4169 and m_max_length.
4170 (tui_source_window::show_line_number): New method.
4171 * tui/tui-io.h (tui_puts): Fix comment.
4172 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4173 m_max_length.
4174
c15c15c8
TT
41752020-09-27 Tom Tromey <tom@tromey.com>
4176
4177 * tui/tui-winsource.c
4178 (tui_source_window_base::set_is_exec_point_at): Don't call
4179 show_source_line.
4180
149830c1
TT
41812020-09-27 Tom Tromey <tom@tromey.com>
4182
4183 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4184 method.
4185 <erase>: Update.
4186 <cursor_x, cursor_y>: Remove.
4187 <m_inner_window>: New member.
4188 (tui_py_window::rerender): Create inner window.
4189 (tui_py_window::output): Write to inner window.
4190
8f9929bb
GR
41912020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4192
4193 PR python/26586
4194 * cli/cli-script.c (execute_control_commands): don't set
4195 instream to nullptr here as this breaks the from_tty argument
4196 to gdb.execute in Python.
4197 (execute_user_command): set instream to nullptr here instead.
4198
956bdb59
SM
41992020-09-25 Simon Marchi <simon.marchi@efficios.com>
4200
4201 * infrun.h (infrun_debug_printf): Fix formatting.
4202 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4203
3b93626b
SJ
42042020-09-25 Saagar Jha <saagar@saagarjha.com>
4205
4206 * compile/compile-object-load.h (struct munmap_list): Add
4207 explicitly-defined move constructor.
4208
b551a89f
TT
42092020-09-24 Tom Tromey <tromey@adacore.com>
4210
4211 PR tui/26638:
4212 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4213 method.
4214 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4215 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4216 (tui_prev_win): Rewrite.
4217
99bb393f
HD
42182020-09-23 Hannes Domani <ssbssa@yahoo.de>
4219
4220 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4221 in WOW64 processes as SIGINT.
4222 * nat/windows-nat.h: Make wow64_process a shared variable.
4223 * windows-nat.c: Remove static wow64_process variable.
4224
20a5fcbd
TT
42252020-09-23 Tom Tromey <tom@tromey.com>
4226
4227 PR symtab/25470:
4228 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4229 offset and bit size.
4230 * printcmd.c (print_scalar_formatted): Handle zero-length
4231 integer.
4232 (print_scalar_formatted): Use bit_size_differs_p.
4233 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4234 constant.
4235 (union type_specific): <int_stuff>: New member.
4236 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4237 methods.
4238 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4239 TYPE_SPECIFIC_FIELD.
4240 (recursive_dump_type, copy_type_recursive): Update.
4241 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4242 DW_AT_data_bit_offset.
4243
bac51ab7
TT
42442020-09-23 Tom Tromey <tom@tromey.com>
4245
4246 * utils.h (class gdb_argv): Add move operators.
4247 <append>: New methods.
4248 * compile/compile.c (build_argc_argv): Remove.
4249 (compile_args_argc): Remove.
4250 (compile_args_argv): Change type.
4251 (set_compile_args): Simplify.
4252 (append_args): Remove.
4253 (filter_args): Remove argcp parameter.
4254 (get_args): Return gdb_argv. Simplify.
4255 (compile_to_object): Update.
4256
92677124
TT
42572020-09-23 Tom Tromey <tom@tromey.com>
4258
4259 * compile/compile-object-run.c (do_module_cleanup)
4260 <~do_module_cleanup> :Remove.
4261 (do_module_cleanup): Update.
4262 * compile/compile-object-load.h (struct munmap_list): Add move
4263 assignment operator.
4264 <source_file>: Now a std::string.
4265 <munmap_list>: Rename. No longer a pointer.
4266 * compile/compile-object-load.c (struct setup_sections_data): Add
4267 constructor.
4268 <setup_one_section>: Declare.
4269 <munmap_list>: Move earlier.
4270 <m_bfd>: New member.
4271 <m_last_size, m_last_section_first, m_last_prot,
4272 m_last_max_alignment>: Rename, add initializers where needed.
4273 (setup_sections_data::setup_one_section): Rename from
4274 setup_sections. Update.
4275 (compile_object_load): Update. Don't use bfd_map_over_sections.
4276
e616f60a
TT
42772020-09-23 Tom Tromey <tom@tromey.com>
4278
4279 * compile/compile-object-run.c (struct do_module_cleanup): Add
4280 parameters to constructor. Update destructor.
4281 <source_file, scope, scope_data, out_value_type, out_value_addr,
4282 munmap_list_head, objfile_name_string>: Remove.
4283 <module>: New member.
4284 (do_module_cleanup): Update.
4285 (compile_object_run): Update.
4286
e947a848
TT
42872020-09-23 Tom Tromey <tom@tromey.com>
4288
4289 * compile/compile.c (eval_compile_command): Update.
4290 * compile/compile-object-run.h (compile_object_run): Take a
4291 compile_module_up.
4292 * compile/compile-object-run.c (compile_object_run): Take a
4293 compile_module_up.
4294 * compile/compile-object-load.h (struct compile_module): Add
4295 constructor, destructor.
4296 (compile_module_up): New typedef.
4297 (compile_object_load): Return compile_object_up.
4298 * compile/compile-object-load.c (compile_object_load): Return
4299 compile_module_up.
4300
0dbf6ee6
TT
43012020-09-23 Tom Tromey <tom@tromey.com>
4302
4303 * compile/compile-object-run.c (struct do_module_cleanup): Add
4304 constructor, destructor.
4305 <objfile_name_string>: Don't use struct hack.
4306 (do_module_cleanup): Use delete.
4307 (compile_object_run): Use new.
4308
ebe824f5
TT
43092020-09-23 Tom Tromey <tom@tromey.com>
4310
4311 * compile/compile-cplus-types.c
4312 (compile_cplus_convert_struct_or_union): Use std::vector.
4313 (compile_cplus_convert_func): Likewise.
4314 * compile/compile-c-types.c (convert_func): Use std::vector.
4315
5dd918d9
TT
43162020-09-21 Tom Tromey <tromey@adacore.com>
4317
4318 * sparc-tdep.c (sparc32_skip_prologue): Use
4319 skip_prologue_using_sal.
4320
5486c517
TT
43212020-09-19 Tom Tromey <tom@tromey.com>
4322
4323 * symfile.c (add_section_size_callback): Remove.
4324 (load_one_section): Rename from load_section_callback. Change
4325 parameters.
4326 (generic_load): Use foreach.
4327
8a6bb1d1
TT
43282020-09-19 Tom Tromey <tom@tromey.com>
4329
4330 * exec.c (add_to_section_table): Remove.
4331 (build_section_table): Use foreach.
4332
08f93a1a
TT
43332020-09-19 Tom Tromey <tom@tromey.com>
4334
4335 * elfread.c (elf_locate_sections): Change parameters.
4336 (elf_symfile_read): Use foreach.
4337
03cd72b8
TT
43382020-09-19 Tom Tromey <tom@tromey.com>
4339
4340 * cli/cli-dump.c (struct callback_data): Remove.
4341 (restore_one_section): Rename from restore_section_callback.
4342 Change parameters.
4343 (restore_binary_file): Change parameters.
4344 (restore_command): Use foreach.
4345
f4f2b85f
TT
43462020-09-19 Tom Tromey <tom@tromey.com>
4347
4348 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4349 (gcore_copy_callback): Likewise.
4350 (gcore_memory_sections): Use foreach.
4351
b35c1d1c
TT
43522020-09-19 Tom Tromey <tom@tromey.com>
4353
4354 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4355 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4356 parameters.
4357 (generic_elf_osabi_sniffer): Use foreach.
4358 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4359 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4360
5bb6e9dd
TT
43612020-09-19 Tom Tromey <tom@tromey.com>
4362
4363 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4364 (dwarf2_get_dwz_file): Use foreach.
4365 (dwarf2_locate_dwo_sections): Change parameters.
4366 (open_and_init_dwo_file): Use foreach.
4367 (dwarf2_locate_common_dwp_sections): Change parameters.
4368 (open_and_init_dwp_file): Use foreach.
4369
ad7277da
TT
43702020-09-19 Tom Tromey <tom@tromey.com>
4371
4372 * symfile.h: (find_lowest_section): Don't declare.
4373 * symfile.c (find_lowest_section): Now static. Change
4374 parameters.
4375 (struct place_section_arg): Remove.
4376 (place_section): Change parameters.
4377 (addr_info_make_relative): Use foreach.
4378 (symfile_dummy_outputs): Remove.
4379 (default_symfile_relocate): Use foreach.
4380
cb814f2e
TT
43812020-09-19 Tom Tromey <tom@tromey.com>
4382
4383 * objfiles.c (add_to_objfile_sections): Rename from
4384 add_to_objfile_sections_full.
4385 (add_to_objfile_sections): Remove.
4386 (build_objfile_section_table): Use foreach.
4387
3cabfd26
TT
43882020-09-19 Tom Tromey <tom@tromey.com>
4389
4390 * stap-probe.c (get_stap_base_address_1): Remove.
4391 (get_stap_base_address): Use foreach.
4392
1ce51eb5
TT
43932020-09-19 Tom Tromey <tom@tromey.com>
4394
4395 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4396 parameters.
4397 (gdb_bfd_close_or_warn): Use foreach.
4398
a190fabb
TT
43992020-09-19 Tom Tromey <tom@tromey.com>
4400
4401 * corelow.c (add_to_thread_list): Change parameters.
4402 (core_target_open): Use foreach.
4403
cafb0d81
TT
44042020-09-19 Tom Tromey <tom@tromey.com>
4405
4406 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4407 existing function.
4408
c8d5abea
AB
44092020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4410
4411 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4412 for arrays.
4413
6d816919
AB
44142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4415
4416 * eval.c: Remove 'f-lang.h' include.
4417 (value_f90_subarray): Moved to f-lang.c.
4418 (eval_call): Renamed to...
4419 (evaluate_subexp_do_call): ...this, is no longer static, header
4420 comment moved into header file.
4421 (evaluate_funcall): Update call to eval_call.
4422 (skip_undetermined_arglist): Moved to f-lang.c.
4423 (fortran_value_subarray): Likewise.
4424 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4425 moved to evaluate_subexp_f.
4426 (calc_f77_array_dims): Moved to f-lang.c
4427 * expprint.c (print_subexp_funcall): New function.
4428 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4429 moved to print_subexp_f, OP_FUNCALL uses new function.
4430 (dump_subexp_body_funcall): New function.
4431 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4432 moved to dump_subexp_f, OP_FUNCALL uses new function.
4433 * expression.h (evaluate_subexp_do_call): Declare.
4434 * f-lang.c (value_f90_subarray): Moved from eval.c.
4435 (skip_undetermined_arglist): Likewise.
4436 (calc_f77_array_dims): Likewise.
4437 (fortran_value_subarray): Likewise.
4438 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4439 (operator_length_f): Likewise.
4440 (print_subexp_f): Likewise.
4441 (dump_subexp_body_f): Likewise.
4442 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4443 declaration of this operation to here.
4444 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4445 support moved to operator_length_f.
4446 * parser-defs.h (dump_subexp_body_funcall): Declare.
4447 (print_subexp_funcall): Declare.
4448 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4449 fortran-operator.def.
4450
8c37706a
AB
44512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * eval.c (fortran_value_subarray): New function, content is taken
4454 from...
4455 (evaluate_subexp_standard): ...here, in two places. Now arrays
4456 and strings both call the new function.
4457 (calc_f77_array_dims): Add header comment, handle strings.
4458
14f9473c
VC
44592020-09-18 Victor Collod <vcollod@nvidia.com>
4460
4461 PR gdb/26635
4462 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4463 (i386_analyze_prologue): Call i386_skip_endbr.
4464
b60cea74
TT
44652020-09-18 Tom Tromey <tromey@adacore.com>
4466
4467 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4468 (windows_nat_target::wait): Update.
4469 * target/wait.h (enum target_wait_flag): New. Use
4470 DEF_ENUM_FLAGS_TYPE.
4471 * target/target.h (target_wait): Change type of options.
4472 * target.h (target_options_to_string, default_target_wait):
4473 Update.
4474 (struct target_ops) <wait>: Change type of options.
4475 * target.c (target_wait, default_target_wait, do_option): Change
4476 type of "options".
4477 (target_options_to_string): Likewise.
4478 * target-delegates.c: Rebuild.
4479 * target-debug.h (target_debug_print_target_wait_flags): Rename
4480 from target_debug_print_options.
4481 * sol-thread.c (class sol_thread_target) <wait>: Update.
4482 (sol_thread_target::wait): Update.
4483 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4484 (rs6000_nat_target::wait): Update.
4485 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4486 Update.
4487 (remote_target::wait_ns, remote_target::wait_as): Change type of
4488 "options".
4489 (remote_target::wait): Update.
4490 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4491 (gdbsim_target::wait): Update.
4492 * record-full.c (class record_full_base_target) <wait>: Update.
4493 (record_full_wait_1): Change type of "options".
4494 (record_full_base_target::wait): Update.
4495 * record-btrace.c (class record_btrace_target) <wait>: Update.
4496 (record_btrace_target::wait): Update.
4497 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4498 Update.
4499 (ravenscar_thread_target::wait): Update.
4500 * procfs.c (class procfs_target) <wait>: Update.
4501 (procfs_target::wait): Update.
4502 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4503 * obsd-nat.c (obsd_nat_target::wait): Update.
4504 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4505 (nto_procfs_target::wait): Update.
4506 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4507 * nbsd-nat.c (nbsd_wait): Change type of "options".
4508 (nbsd_nat_target::wait): Update.
4509 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4510 (thread_db_target::wait): Update.
4511 * linux-nat.h (class linux_nat_target) <wait>: Update.
4512 * linux-nat.c (linux_nat_target::wait): Update.
4513 (linux_nat_wait_1): Update.
4514 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4515 "options".
4516 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4517 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4518 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4519 (go32_nat_target::wait): Update.
4520 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4521 * gnu-nat.c (gnu_nat_target::wait): Update.
4522 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4523 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4524 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4525 * darwin-nat.c (darwin_nat_target::wait): Update.
4526 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4527 (bsd_uthread_target::wait): Update.
4528 * aix-thread.c (class aix_thread_target) <wait>: Update.
4529 (aix_thread_target::wait): Update.
4530
0295dde6
AB
45312020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4532
4533 * compile/compile-object-run.c (create_copied_type_recursive): New
4534 function.
4535 (compile_object_run): Use new function.
4536
d3483b43
JT
45372020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4538
4539 * NEWS: Mention x86_64 Cygwin core file support.
4540
e7d612ad
JT
45412020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4542
4543 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4544 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4545
aff9d387
JT
45462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4547
62a5151b
JT
4548 * windows-tdep.h: Add prototypes.
4549 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4550 (i386_windows_core_pid_to_str): Move and rename ...
4551 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4552 (windows_core_pid_to_str): ... and here.
4553 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4554
45552020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4556 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4557 (amd64_windows_init_abi_common): ... and register.
4558
7d155da3
JT
45592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4560
4561 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4562 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4563
e8ef12b9
PA
45642020-09-18 Pedro Alves <pedro@palves.net>
4565
4566 PR gdb/26631
4567 * thread.c (thread_find_command): Switch inferior before calling
4568 target methods.
4569
c1e1314d
TT
45702020-09-17 Tom Tromey <tromey@adacore.com>
4571
4572 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4573 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4574 (tdesc_arch_data_up): New typedef.
4575 (tdesc_use_registers, tdesc_data_alloc): Update.
4576 (tdesc_data_cleanup): Don't declare.
4577 * target-descriptions.c (tdesc_data_alloc): Return a
4578 tdesc_arch_data_up.
4579 (tdesc_arch_data_deleter::operator()): Rename from
4580 tdesc_data_cleanup. Change argument type.
4581 (tdesc_use_registers): Change early_data to an rvalue reference.
4582 (tdesc_use_registers): Don't use delete.
4583 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4584 * s390-tdep.c (s390_gdbarch_init): Update.
4585 * rx-tdep.c (rx_gdbarch_init): Update.
4586 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4587 * riscv-tdep.c (riscv_gdbarch_init): Update.
4588 * or1k-tdep.c (or1k_gdbarch_init): Update.
4589 * nios2-tdep.c (nios2_gdbarch_init): Update.
4590 * nds32-tdep.c (nds32_gdbarch_init): Update.
4591 * mips-tdep.c (mips_gdbarch_init): Update.
4592 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4593 * m68k-tdep.c (m68k_gdbarch_init): Update.
4594 * i386-tdep.c (i386_gdbarch_init): Update.
4595 * arm-tdep.c (arm_gdbarch_init): Update.
4596 * arc-tdep.c (arc_tdesc_init): Update.
4597 (arc_gdbarch_init): Update.
4598 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4599
0363df3d
HD
46002020-09-17 Hannes Domani <ssbssa@yahoo.de>
4601
4602 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4603 for WOW64 processes.
4604
280a9412
TT
46052020-09-17 Tom Tromey <tom@tromey.com>
4606
4607 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4608
6108fd18
TT
46092020-09-17 Tom Tromey <tom@tromey.com>
4610
4611 * value.c (preserve_values): Update.
4612 * python/py-type.c (save_objfile_types): Update.
4613 * guile/scm-type.c (save_objfile_types): Update.
4614 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4615 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4616 * compile/compile-object-run.c (compile_object_run): Update.
4617
fa9b1164
TT
46182020-09-17 Tom Tromey <tom@tromey.com>
4619
4620 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4621 Remove.
4622 <m_table>: Now htab_up.
4623 * typeprint.c (typedef_hash_table::recursively_update)
4624 (typedef_hash_table::add_template_parameters)
4625 (typedef_hash_table::typedef_hash_table): Update.
4626 (typedef_hash_table::~typedef_hash_table): Remove.
4627 (typedef_hash_table::typedef_hash_table)
4628 (typedef_hash_table::find_global_typedef)
4629 (typedef_hash_table::find_typedef): Update.
4630
eb53f105
TT
46312020-09-17 Tom Tromey <tom@tromey.com>
4632
4633 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4634
7a8a5d47
TT
46352020-09-17 Tom Tromey <tom@tromey.com>
4636
4637 * linespec.c (class decode_compound_collector)
4638 <~decode_compound_collector>: Remove.
4639 <m_unique_syms>: Now htab_up.
4640 (decode_compound_collector::operator ()): Update.
4641 (class symtab_collector) <~symtab_collector>: Remove.
4642 <m_symtab_table>: Now htab_up.
4643 (symtab_collector::operator ()): Update.
4644
99032cfc
TT
46452020-09-17 Tom Tromey <tom@tromey.com>
4646
4647 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4648 (filename_seen_cache::clear): Update.
4649 (~filename_seen_cache): Remove.
4650 (filename_seen_cache::seen): Update.
4651 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4652 htab_up.
4653 <~filename_seen_cache>: Remove.
4654 <traverse>: Update.
4655
32580f6d
TT
46562020-09-17 Tom Tromey <tom@tromey.com>
4657
4658 * completer.c (completion_tracker::discard_completions)
4659 (completion_tracker::~completion_tracker)
4660 (completion_tracker::maybe_add_completion)
4661 (completion_tracker::remove_completion)
4662 (completion_tracker::recompute_lowest_common_denominator)
4663 (completion_tracker::build_completion_result): Update.
4664 * completer.h (class completion_tracker) <have_completions>:
4665 Update.
4666 <m_entries_hash>: Now htab_up.
4667
c1fb9836
TT
46682020-09-17 Tom Tromey <tom@tromey.com>
4669
4670 * breakpoint.c (ambiguous_names_p): Use htab_up.
4671
88f07206
TT
46722020-09-17 Tom Tromey <tom@tromey.com>
4673
4674 * auto-load.c (struct auto_load_pspace_info)
4675 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4676 <loaded_script_files, loaded_script_texts>: Change type to
4677 htab_up.
4678 (~auto_load_pspace_info) Remove.
4679 (init_loaded_scripts_info, maybe_add_script_file)
4680 (maybe_add_script_text, auto_load_info_scripts): Update.
4681
9519b2ee
TT
46822020-09-17 Tom Tromey <tromey@adacore.com>
4683
4684 * c-exp.y (name_obstack): Now static.
4685
d2cd4113
CC
46862020-09-17 Chungyi Chi <demonic@csie.io>
4687
4688 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4689
b650a282
SM
46902020-09-16 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4693 (add_solib_catchpoint): Likewise.
4694 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4695 to bool.
4696 (add_solib_catchpoint): Change int parameter/variable to bool.
4697 (catch_load_or_unload): Likewise.
4698 (init_catchpoint): Likewise.
4699 (create_fork_vfork_event_catchpoint): Likewise.
4700 (catch_fork_command_1): Likewise.
4701 (catch_exec_command_1): Likewise.
4702
4d0bcfcf
SM
47032020-09-16 Simon Marchi <simon.marchi@efficios.com>
4704
4705 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4706 Change instance_flags to m_instance_flags.
4707
fe830662
TT
47082020-09-16 Tom Tromey <tromey@adacore.com>
4709
4710 PR gdb/26598:
4711 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4712
fe5ddfc3
JB
47132020-09-16 John Baldwin <jhb@FreeBSD.org>
4714
4715 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4716 PL_FLAG_EXEC.
4717 (fbsd_nat_target::insert_exec_catchpoint)
4718 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4719 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4720 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4721
e911c666
JB
47222020-09-16 John Baldwin <jhb@FreeBSD.org>
4723
4724 * configure.ac: Remove check for kinfo_getvmmap().
4725 * configure, config.in: Regenerate.
4726 * fbsd-nat.c (fbsd_read_mapping): Remove
4727 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4728 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4729 kinfo_get_vmmap() are always present.
4730
1f17d372
JB
47312020-09-16 John Baldwin <jhb@FreeBSD.org>
4732
4733 * fbsd-nat.c: Always include support for
4734 TARGET_OBJECT_SIGNAL_INFO.
4735
bcb1da7f
JB
47362020-09-16 John Baldwin <jhb@FreeBSD.org>
4737
4738 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4739 sysctl and remove procfs fallback.
4740
5515f729
JB
47412020-09-16 John Baldwin <jhb@FreeBSD.org>
4742
4743 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4744 * fbsd-nat.h: Likewise.
4745
da1df1db
TBA
47462020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4747
4748 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4749 argument.
4750
0e25e767
AB
47512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4752
4753 * ada-lang.c (ada_language_data): Delete.
4754 (ada_language): Remove references to ada_language_data.
4755 * c-lang.c (c_language_data): Delete.
4756 (c_language): Remove references to c_language_data.
4757 (cplus_language_data): Delete.
4758 (cplus_language): Remove references to cplus_language_data.
4759 (asm_language_data): Delete.
4760 (asm_language): Remove references to asm_language_data.
4761 (minimal_language_data): Delete.
4762 (minimal_language): Remove references to minimal_language_data.
4763 * d-lang.c (d_language_data): Delete.
4764 (d_language): Remove references to d_language_data.
4765 * f-lang.c (f_language_data): Delete.
4766 (f_language): Remove references to f_language_data.
4767 * go-lang.c (go_language_data): Delete.
4768 (go_language): Remove references to go_language_data.
4769 * language.c (unknown_language_data): Delete.
4770 (unknown_language): Remove references to unknown_language_data.
4771 (auto_language_data): Delete.
4772 (auto_language): Remove references to auto_language_data.
4773 * language.h (language_data): Delete struct.
4774 (language_defn): No longer inherit from language_data.
4775 * m2-lang.c (m2_language_data): Delete.
4776 (m2_language): Remove references to m2_language_data.
4777 * objc-lang.c (objc_language_data): Delete.
4778 (objc_language): Remove references to objc_language_data.
4779 * opencl-lang.c (opencl_language_data): Delete.
4780 (opencl_language): Remove references to opencl_language_data.
4781 * p-lang.c (pascal_language_data): Delete.
4782 (pascal_language): Remove references to pascal_language_data.
4783 * rust-lang.c (rust_language_data): Delete.
4784 (rust_language): Remove references to rust_language_data.
4785
b7c6e27d
AB
47862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4789 initializer.
4790 (ada_language::opcode_print_table): New member function.
4791 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4792 (c_language::opcode_print_table): New member function.
4793 (cplus_language_data): Remove la_op_print_tab initializer.
4794 (cplus_language::opcode_print_table): New member function.
4795 (asm_language_data): Remove la_op_print_tab initializer.
4796 (asm_language::opcode_print_table): New member function.
4797 (minimal_language_data): Remove la_op_print_tab initializer.
4798 (minimal_language::opcode_print_table): New member function.
4799 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4800 (d_language::opcode_print_table): New member function.
4801 * expprint.c (print_subexp_standard): Update call to
4802 opcode_print_table.
4803 (op_string): Likewise.
4804 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4805 (f_language::opcode_print_table): New member function.
4806 * go-lang.c (go_language_data): Remove la_op_print_tab
4807 initializer.
4808 (go_language::opcode_print_table): New member function.
4809 * language.c (unknown_language_data): Remove la_op_print_tab
4810 initializer.
4811 (unknown_language::opcode_print_table): New member function.
4812 (auto_language_data): Remove la_op_print_tab initializer.
4813 (auto_language::opcode_print_table): New member function.
4814 * language.h (language_data): Remove la_op_print_tab field.
4815 (language_defn::opcode_print_table): Declare new member function.
4816 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4817 initializer.
4818 (m2_language::opcode_print_table): New member function.
4819 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4820 initializer.
4821 (objc_language::opcode_print_table): New member function.
4822 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4823 initializer.
4824 (opencl_language::opcode_print_table): New member function.
4825 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4826 initializer.
4827 (pascal_language::opcode_print_table): New member function.
4828 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4829 initializer.
4830 (rust_language::opcode_print_table): New member function.
4831
5aba6ebe
AB
48322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4833
4834 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4835 (ada_language::expression_ops): New member function.
4836 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4837 (c_language::expression_ops): New member function.
4838 (cplus_language_data): Remove la_exp_desc initializer.
4839 (cplus_language::expression_ops): New member function.
4840 (asm_language_data): Remove la_exp_desc initializer.
4841 (asm_language::expression_ops): New member function.
4842 (minimal_language_data): Remove la_exp_desc initializer.
4843 (minimal_language::expression_ops): New member function.
4844 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4845 (d_language::expression_ops): New member function.
4846 * eval.c (evaluate_subexp): Update call to expression_ops.
4847 * expprint.c (print_subexp): Likewise.
4848 (op_name): Likewise.
4849 (dump_subexp_body): Likewise.
4850 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4851 (f_language::expression_ops): New member function.
4852 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4853 (go_language::expression_ops): New member function.
4854 * language.c (language_defn::expression_ops): New function.
4855 (unknown_language_data): Remove la_exp_desc initializer.
4856 (auto_language_data): Likewise.
4857 * language.h (language_data): Remove la_exp_desc field.
4858 (language_defn::expression_ops): Declare new member function.
4859 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4860 (m2_language::expression_ops): New member function.
4861 * objc-lang.c (objc_language_data): Remove la_exp_desc
4862 initializer.
4863 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4864 initializer.
4865 (opencl_language::expression_ops): New member function.
4866 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4867 * parse.c (operator_length): Update call to expression_ops.
4868 (exp_iterate): Likewise.
4869 * rust-lang.c (rust_language_data): Remove la_exp_desc
4870 initializer.
4871 (ruse_language::expression_ops): New member function.
4872
b63a3f3f
AB
48732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4876 initializer.
4877 (ada_language::varobj_ops): New member function.
4878 * c-lang.c (c_language_data): Remove la_varobj_ops
4879 initializer.
4880 (cplus_language_data): Likewise.
4881 (cplus_language::varobj_ops): New member function.
4882 (asm_language_data): Remove la_varobj_ops initializer.
4883 (minimal_language_data): Likewise.
4884 * d-lang.c (d_language_data): Likewise.
4885 * f-lang.c (f_language_data): Likewise.
4886 * go-lang.c (go_language_data): Likewise.
4887 * language.c (language_defn::varobj_ops): New function.
4888 (unknown_language_data): Remove la_varobj_ops
4889 initializer.
4890 (auto_language_data): Likewise.
4891 * language.h (language_data): Remove la_varobj_ops field.
4892 (language_defn::varobj_ops): Declare new member function.
4893 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4894 * objc-lang.c (objc_language_data): Likewise.
4895 * opencl-lang.c (opencl_language_data): Likewise.
4896 * p-lang.c (pascal_language_data): Likewise.
4897 * rust-lang.c (rust_language_data): Likewise.
4898 * varobj.c (varobj_create): Update call to varobj_ops.
4899 * varobj.h (default_varobj_ops): Delete define.
4900
1ac14a04
AB
49012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4902
4903 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4904 initializer.
4905 * c-lang.c (c_language_data): Likewise.
4906 (c_language::macro_expansion): New member function.
4907 (cplus_language_data): Likewise.
4908 (cplus_language::macro_expansion): New member function.
4909 (asm_language_data): Likewise.
4910 (asm_language::macro_expansion): New member function.
4911 (minimal_language_data): Likewise.
4912 (minimal_language::macro_expansion): New member function.
4913 * d-lang.c (d_language_data): Remove la_macro_expansion
4914 initializer.
4915 * f-lang.c (f_language_data): Likewise.
4916 * go-lang.c (go_language_data): Likewise.
4917 * language.c (unknown_language_data): Likewise.
4918 (auto_language_data): Likewise.
4919 * language.h (language_data): Remove la_macro_expansion field.
4920 (language_defn::macro_expansion): New member function.
4921 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4922 initializer.
4923 * objc-lang.c (objc_language_data): Likewise.
4924 (objc_language::macro_expansion): New member function.
4925 * opencl-lang.c (opencl_language_data): Likewise.
4926 (opencl_language::macro_expansion): New member function.
4927 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4928 initializer.
4929 * rust-lang.c (rust_language_data): Likewise.
4930 * symtab.c (default_collect_symbol_completion_matches_break_on):
4931 Update call to macro_expansion.
4932
3a3440fb
AB
49332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4934
4935 * ada-lang.c (ada_language_data): Remove la_array_ordering
4936 initializer.
4937 * c-lang.c (c_language_data): Likewise.
4938 (cplus_language_data): Likewise.
4939 (asm_language_data): Likewise.
4940 (minimal_language_data): Likewise.
4941 * d-lang.c (d_language_data): Likewise.
4942 * dwarf2/read.c (read_array_order): Update for call to
4943 array_ordering.
4944 * f-lang.c (f_language_data): Remove la_array_ordering
4945 initializer.
4946 (f_language::array_ordering): New member function.
4947 * go-lang.c (go_language_data): Remove la_array_ordering
4948 initializer.
4949 * language.c (unknown_language_data): Likewise.
4950 (auto_language_data): Likewise.
4951 * language.h (language_data): Delete la_array_ordering field.
4952 (language_defn::array_ordering): New member function.
4953 * m2-lang.c (m2_language_data): Remove la_array_ordering
4954 initializer.
4955 * objc-lang.c (objc_language_data): Likewise.
4956 * opencl-lang.c (opencl_language_data): Likewise.
4957 * p-lang.c (pascal_language_data): Likewise.
4958 * rust-lang.c (rust_language_data): Likewise.
4959
0d201fa4
AB
49602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4961
4962 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4963 initializer.
4964 * c-lang.c (c_language_data): Likewise.
4965 (cplus_language_data): Likewise.
4966 (asm_language_data): Likewise.
4967 (minimal_language_data): Likewise.
4968 * d-lang.c (d_language_data): Likewise.
4969 * f-lang.c (f_language_data): Likewise.
4970 (f_language::case_sensitivity): New member function.
4971 * go-lang.c (go_language_data): Remove la_case_sensitivity
4972 initializer.
4973 * language.c (enum case_mode): Moved here from language.h.
4974 (case_mode): Make static.
4975 (show_case_command): Update for case_sensitivity being a method.
4976 (set_case_command): Likewise.
4977 (set_range_case): Likewise.
4978 (unknown_language_data): Remove la_case_sensitivity initializer.
4979 (auto_language_data): Likewise.
4980 * language.h (case_mode): Delete, move enum declaration to
4981 language.c.
4982 (language_data): Delete la_case_sensitivity field.
4983 (language_defn::case_sensitivity): New member function.
4984 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4985 initializer.
4986 * objc-lang.c (objc_language_data): Likewise.
4987 * opencl-lang.c (opencl_language_data): Likewise.
4988 * p-lang.c (pascal_language_data): Likewise.
4989 * rust-lang.c (rust_language_data): Likewise.
4990
efdf6a73
AB
49912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * ada-lang.c (ada_language_data): Remove la_range_check
4994 initializer.
4995 * c-lang.c (c_language_data): Likewise.
4996 (cplus_language_data): Likewise.
4997 (asm_language_data): Likewise.
4998 (minimal_language_data): Likewise.
4999 * d-lang.c (d_language_data): Likewise.
5000 * f-lang.c (f_language_data): Likewise.
5001 (f_language::range_checking_on_by_default): New member function.
5002 * go-lang.c (go_language_data): Remove la_range_check initializer.
5003 * language.c (enum range_mode): Moved here from language.h.
5004 (range_mode): Made static.
5005 (show_range_command): Update to use
5006 range_checking_on_by_default.
5007 (set_range_command): Likewise.
5008 (set_range_case): Likewise.
5009 (unknown_language_data): Remove la_range_check initializer.
5010 (auto_language_data): Likewise.
5011 * language.h (range_mode): Delete. Enum definition moved to
5012 language.c.
5013 (language_data): Remove la_range_check field.
5014 (language_defn::range_checking_on_by_default): New member
5015 function.
5016 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5017 (m2_language::range_checking_on_by_default): New member function.
5018 * objc-lang.c (objc_language_data): Remove la_range_check
5019 initializer.
5020 * opencl-lang.c (opencl_language_data): Likewise.
5021 * p-lang.c (pascal_language_data): Likewise.
5022 (pascal_language::range_checking_on_by_default): New member
5023 function.
5024 * rust-lang.c (rust_language_data): Remove la_range_check
5025 initializer.
5026 (rust_language::range_checking_on_by_default): New member
5027 function.
5028
bf92aec5
AB
50292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5030
5031 * dwarf2/read.c (dwarf2_physname): Remove special case for
5032 language_go.
5033 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5034 member function.
5035
d3355e4d
AB
50362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * ada-lang.c (ada_language_data): Remove
5039 la_store_sym_names_in_linkage_form_p initializer.
5040 (ada_language::store_sym_names_in_linkage_form_p): New member
5041 function.
5042 * c-lang.c (c_language_data): Remove
5043 la_store_sym_names_in_linkage_form_p initializer.
5044 (c_language::store_sym_names_in_linkage_form_p): New member
5045 function.
5046 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5047 initializer.
5048 (asm_language_data): Likewise.
5049 (asm_language::store_sym_names_in_linkage_form_p): New member
5050 function.
5051 (minimal_language_data): Remove
5052 la_store_sym_names_in_linkage_form_p initializer.
5053 (minimal_language::store_sym_names_in_linkage_form_p): New member
5054 function.
5055 * d-lang.c (d_language_data): Remove
5056 la_store_sym_names_in_linkage_form_p initializer.
5057 * dwarf2/read.c (dwarf2_physname): Update call to
5058 store_sym_names_in_linkage_form_p.
5059 * f-lang.c (f_language_data): Remove
5060 la_store_sym_names_in_linkage_form_p initializer.
5061 * go-lang.c (go_language_data): Remove
5062 la_store_sym_names_in_linkage_form_p initializer.
5063 * language.c (unknown_language_data): Remove
5064 la_store_sym_names_in_linkage_form_p initializer.
5065 (unknown_language::store_sym_names_in_linkage_form_p): New member
5066 function.
5067 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5068 initializer.
5069 (auto_language::store_sym_names_in_linkage_form_p): New member
5070 function.
5071 * language.h (language_data): Remove
5072 la_store_sym_names_in_linkage_form_p member variable.
5073 (language_defn::store_sym_names_in_linkage_form_p): New member
5074 function.
5075 * m2-lang.c (m2_language_data): Remove
5076 la_store_sym_names_in_linkage_form_p initializer.
5077 * objc-lang.c (objc_language_data): Likewise.
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
22c12a6c
AB
50822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5083
5084 * ada-lang.c (ada_language_data): Remove string_lower_bound
5085 initializer.
5086 * c-lang.c (c_language_data): Likewise.
5087 (cplus_language_data): Likewise.
5088 (asm_language_data): Likewise.
5089 (minimal_language_data): Likewise.
5090 * d-lang.c (d_language_data): Likewise.
5091 * f-lang.c (f_language_data): Likewise.
5092 * go-lang.c (go_language_data): Likewise.
5093 * language.c (unknown_language_data): Likewise.
5094 (auto_language_data): Likewise.
5095 * language.h (language_data): Remove string_lower_bound field.
5096 (language_defn::string_lower_bound): New member function.
5097 * m2-lang.c (m2_language_data): Remove string_lower_bound
5098 initializer.
5099 (m2_language::string_lower_bound): New member function.
5100 * objc-lang.c (objc_language_data): Remove string_lower_bound
5101 initializer.
5102 * opencl-lang.c (opencl_language_data): Likewise.
5103 * p-lang.c (pascal_language_data): Likewise.
5104 * rust-lang.c (rust_language_data): Likewise.
5105 * valops.c (value_cstring): Update call to string_lower_bound.
5106 (value_string): Likewise.
5107 * value.c (allocate_repeated_value): Likewise.
5108
1c236ddd
AB
51092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5110
5111 * valops.c (value_repeat): Fix incorrect argument name in comment.
5112
67bd3fd5
AB
51132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * ada-lang.c (ada_language_data): Remove c_style_arrays
5116 initializer.
5117 (ada_language::c_style_arrays_p): New member fuction.
5118 * c-lang.c (c_language_data): Remove c_style_arrays
5119 initializer.
5120 (cplus_language_data): Likewise.
5121 (asm_language_data): Likewise.
5122 (minimal_language_data): Likewise.
5123 * d-lang.c (d_language_data): Likewise.
5124 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5125 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5126 (f_language::c_style_arrays_p): New member function.
5127 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5128 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5129 * language.c (unknown_language_data): Remove c_style_arrays
5130 initializer.
5131 (auto_language_data): Likewise.
5132 * language.h (language_data): Remove c_style_arrays field.
5133 (language_defn::c_style_arrays_p): New member function.
5134 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5135 (m2_language::c_style_arrays_p): New member function.
5136 * objc-lang.c (objc_language_data): Remove c_style_arrays
5137 initializer.
5138 * opencl-lang.c (opencl_language_data): Likewise.
5139 * p-lang.c (pascal_language_data): Likewise.
5140 * rust-lang.c (rust_language_data): Likewise.
5141 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5142 and update local variable to a bool.
5143 * valops.c (value_cast): Update call to c_style_arrays_p.
5144 (value_array): Likewise.
5145 * value.c (coerce_array): Likewise.
5146
85967615
AB
51472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5148
5149 * ada-lang.c (ada_language_data): Remove la_language initializer.
5150 * c-lang.c (c_language_data): Likewise.
5151 (cplus_language_data): Likewise.
5152 (asm_language_data): Likewise.
5153 (minimal_language_data): Likewise.
5154 * d-lang.c (d_language_data): Likewise.
5155 * f-lang.c (f_language_data): Likewise.
5156 * go-lang.c (go_language_data): Likewise.
5157 * language.c (unknown_language_data): Likewise.
5158 (auto_language_data): Likewise.
5159 * language.h (language_data): Remove la_language field.
5160 (language_defn::language_defn): Initialise la_language field.
5161 (language_defn::la_language): New member variable.
5162 * m2-lang.c (m2_language_data): Remove la_language field.
5163 * objc-lang.c (objc_language_data): Likewise.
5164 * opencl-lang.c (opencl_language_data): Likewise.
5165 * p-lang.c (pascal_language_data): Likewise.
5166 * rust-lang.c (rust_language_data): Likewise.
5167
e171d6f1
AB
51682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5169
5170 * ada-lang.c (ada_extensions): Delete, moved into
5171 ada_language::filename_extensions.
5172 (ada_language_data): Remove la_filename_extensions initializer.
5173 (ada_language::filename_extensions): New member function.
5174 * c-lang.c (c_extensions): Delete, moved into
5175 c_language::filename_extensions.
5176 (c_language_data): Remove la_filename_extensions initializer.
5177 (c_language::filename_extensions): New member function.
5178 (cplus_extensions): Delete, moved into
5179 cplus_language::filename_extensions.
5180 (cplus_language_data): Remove la_filename_extensions initializer.
5181 (cplus_language::filename_extensions): New member function.
5182 (asm_extensions): Delete, moved into
5183 asm_language::filename_extensions.
5184 (asm_language_data): Remove la_filename_extensions initializer.
5185 (asm_language::filename_extensions): New member function.
5186 (minimal_language_data): Remove la_filename_extensions
5187 initializer.
5188 * d-lang.c (d_extensions): Delete, moved into
5189 d_language::filename_extensions.
5190 (d_language_data): Remove la_filename_extensions initializer.
5191 (d_language::filename_extensions): New member function.
5192 * f-lang.c (f_extensions): Delete, moved into
5193 f_language::filename_extensions.
5194 (f_language_data): Remove la_filename_extensions initializer.
5195 (f_language::filename_extensions): New member function.
5196 * go-lang.c (go_language_data): Remove la_filename_extensions
5197 initializer.
5198 * language.c (add_set_language_command): Update now that
5199 filename_extensions returns a vector.
5200 (unknown_language_data): Remove la_filename_extensions
5201 initializer.
5202 (auto_language_data): Likewise.
5203 * language.h (language_data): Remove la_filename_extensions field.
5204 (language_defn::filename_extensions): New member function.
5205 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5206 initializer.
5207 * objc-lang.c (objc_extensions): Delete, moved into
5208 objc_language::filename_extensions.
5209 (objc_language_data): Remove la_filename_extensions initializer.
5210 (objc_language::filename_extensions): New member function.
5211 * opencl-lang.c (opencl_language_data): Remove
5212 la_filename_extensions initializer.
5213 * p-lang.c (pascal_extensions): Delete, moved into
5214 pascal_language::filename_extensions.
5215 (pascal_language_data): Remove la_filename_extensions initializer.
5216 (pascal_language::filename_extensions): New member function.
5217 * rust-lang.c (rust_extensions): Delete, moved into
5218 rust_language::filename_extensions.
5219 (rust_language_data): Remove la_filename_extensions initializer.
5220 (rust_language::filename_extensions): New member function.
5221 * symfile.c (add_filename_language): Add new assert.
5222
6f7664a9
AB
52232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5224
5225 * ada-lang.c (ada_language_data): Remove la_name and
5226 la_natural_name initializers.
5227 (ada_language::name): New member function.
5228 (ada_language::natural_name): New member function.
5229 * c-lang.c (c_language_data): Remove la_name and
5230 la_natural_name initializers.
5231 (c_language::name): New member function.
5232 (c_language::natural_name): New member function.
5233 (cplus_language_data): Remove la_name and
5234 la_natural_name initializers.
5235 (cplus_language::name): New member function.
5236 (cplus_language::natural_name): New member function.
5237 (asm_language_data): Remove la_name and
5238 la_natural_name initializers.
5239 (asm_language::name): New member function.
5240 (asm_language::natural_name): New member function.
5241 (minimal_language_data): Remove la_name and
5242 la_natural_name initializers.
5243 (minimal_language::name): New member function.
5244 (minimal_language::natural_name): New member function.
5245 * compile/compile.c (compile_to_object): Update call to
5246 lanugage_defn::name.
5247 * d-lang.c (d_language_data): Remove la_name and
5248 la_natural_name initializers.
5249 (d_language::name): New member function.
5250 (d_language::natural_name): New member function.
5251 * expprint.c (print_subexp_standard): Update call to
5252 language_defn::name.
5253 (dump_raw_expression): Likewise
5254 (dump_prefix_expression): Likewise.
5255 * f-lang.c (f_language_data): Remove la_name and
5256 la_natural_name initializers.
5257 (f_language::name): New member function.
5258 (f_language::natural_name): New member function.
5259 * go-lang.c (go_language_data): Remove la_name and
5260 la_natural_name initializers.
5261 (go_language::name): New member function.
5262 (go_language::natural_name): New member function.
5263 * language.c (show_language_command): Update call to
5264 language_defn::name.
5265 (set_language_command): Likewise.
5266 (language_enum): Likewise.
5267 (language_str): Likewise.
5268 (add_set_language_command): Likewise, use
5269 language_defn::natural_name in the doc string.
5270 (unknown_language_data): Remove la_name and
5271 la_natural_name initializers.
5272 (unknown_language::name): New member function.
5273 (unknown_language::natural_name): New member function.
5274 (auto_language_data): Remove la_name and
5275 la_natural_name initializers.
5276 (auto_language::name): New member function.
5277 (auto_language::natural_name): New member function.
5278 (language_lookup_primitive_type_as_symbol): Update call to
5279 language_defn::name.
5280 * language.h (language_data): Remove la_name and la_natural_name
5281 member variables.
5282 (language_defn::name): New member function.
5283 (language_defn::natural_name): New member function.
5284 * m2-lang.c (m2_language_data): Remove la_name and
5285 la_natural_name initializers.
5286 (m2_language::name): New member function.
5287 (m2_language::natural_name): New member function.
5288 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5289 language_defn::natural_name.
5290 * objc-lang.c (objc_language_data): Remove la_name and
5291 la_natural_name initializers.
5292 (objc_language::name): New member function.
5293 (objc_language::natural_name): New member function.
5294 * opencl-lang.c (opencl_language_data): Remove la_name and
5295 la_natural_name initializers.
5296 (opencl_language::name): New member function.
5297 (opencl_language::natural_name): New member function.
5298 * p-lang.c (pascal_language_data): Remove la_name and
5299 la_natural_name initializers.
5300 (pascal_language::name): New member function.
5301 (pascal_language::natural_name): New member function.
5302 * rust-lang.c (rust_language_data): Remove la_name and
5303 la_natural_name initializers.
5304 (rust_language::name): New member function.
5305 (rust_language::natural_name): New member function.
5306 * symtab.c (lookup_language_this): Update call to
5307 language_defn::name.
5308
5bae7c4e
AB
53092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5310
5311 * ada-lang.c (ada_language_data): Remove la_name_of_this
5312 initializer.
5313 * ax-gdb.c (gen_expr): Update call to name_of_this.
5314 * c-exp.y (classify_name): Likewise.
5315 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5316 (cplus_language_data): Likewise.
5317 (cplus_language::name_of_this): New member function.
5318 (asm_language_data): Remove la_name_of_this initializer.
5319 (minimal_language_data): Likewise.
5320 * d-lang.c (d_language_data): Likewise.
5321 (d_language::name_of_this): New member function.
5322 * expprint.c (print_subexp_standard): Update call to name_of_this.
5323 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5324 * go-lang.c (go_language_data): Likewise.
5325 * language.c (unknown_language_data): Likewise.
5326 (unknown_language::name_of_this): New member function.
5327 (auto_language_data): Remove la_name_of_this initializer.
5328 (auto_language::name_of_this): New member function.
5329 * language.h (language_data): Delete la_name_of_this member
5330 variable.
5331 (language_defn::name_of_this): New member function.
5332 * m2-lang.c (m2_language_data): Remove la_name_of_this
5333 initializer.
5334 * objc-lang.c (objc_language_data): Likewise.
5335 (objc_language::name_of_this): New member function.
5336 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5337 initializer.
5338 * p-lang.c (pascal_language_data): Likewise.
5339 (pascal_language::name_of_this): New member function.
5340 * rust-lang.c (rust_language_data): Remove la_name_of_this
5341 initializer.
5342 * symtab.c (lookup_language_this): Update call to name_of_this.
5343 (lookup_symbol_aux): Likewise.
5344 * valops.c (value_of_this): Likewise.
5345
22e3f3ed
AB
53462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5347
5348 * ada-lang.c (ada_language_data): Remove
5349 la_struct_too_deep_ellipsis initializer.
5350 (ada_language::struct_too_deep_ellipsis): New member function.
5351 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5352 initializer.
5353 (cplus_language_data): Likewise.
5354 (asm_language_data): Likewise.
5355 (minimal_language_data): Likewise.
5356 * cp-valprint.c (cp_print_value): Update call to
5357 struct_too_deep_ellipsis.
5358 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5359 initializer.
5360 * f-lang.c (f_language_data): Likewise.
5361 (f_language::struct_too_deep_ellipsis): New member function.
5362 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5363 initializer.
5364 * language.c (unknown_language_data): Likewise.
5365 (auto_language_data): Likewise.
5366 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5367 member variable.
5368 (language_defn::struct_too_deep_ellipsis): New member function.
5369 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5370 initializer.Q
5371 * objc-lang.c (objc_language_data): Likewise.
5372 * opencl-lang.c (opencl_language_data): Likewise.
5373 * p-lang.c (pascal_language_data): Likewise.
5374 * rust-lang.c (rust_language_data): Likewise.
5375 * valprint.c (val_print_check_max_depth): Update call to
5376 struct_too_deep_ellipsis.
5377
ed29e1c7
FW
53782020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5379
5380 * MAINTAINERS (Write After Approval): Add myself.
5381
12d8f940
TT
53822020-09-15 Tom Tromey <tom@tromey.com>
5383
5384 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5385 Remove.
5386
6b5a7bc7
TT
53872020-09-15 Tom Tromey <tom@tromey.com>
5388
5389 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5390 and TYPE_CODE_METHODPTR cases.
5391 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5392 (c_value_print_inner): Update.
5393 * valprint.c (generic_value_print_memberptr): New function, from
5394 c_value_print_memberptr.
5395 (generic_value_print): Use it. Call cplus_print_method_ptr.
5396
47f0e2ff
TT
53972020-09-15 Tom Tromey <tromey@adacore.com>
5398
5399 * python/python-internal.h (PyInt_FromLong): Remove define.
5400 * python/py-value.c (convert_value_from_python): Use
5401 gdb_py_object_from_longest.
5402 * python/py-type.c (typy_get_code): Use
5403 gdb_py_object_from_longest.
5404 * python/py-symtab.c (salpy_get_line): Use
5405 gdb_py_object_from_longest.
5406 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5407 gdb_py_object_from_longest.
5408 * python/py-record.c (recpy_gap_reason_code): Use
5409 gdb_py_object_from_longest.
5410 * python/py-record-btrace.c (recpy_bt_insn_size)
5411 (recpy_bt_func_level, btpy_list_count): Use
5412 gdb_py_object_from_longest.
5413 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5414 gdb_py_object_from_longest. Fix error handling.
5415 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5416 gdb_py_object_from_longest.
5417 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5418 gdb_py_object_from_longest.
5419 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5420 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5421 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5422
512116ce
TT
54232020-09-15 Tom Tromey <tromey@adacore.com>
5424
5425 * python/python.c (gdbpy_parameter_value): Use
5426 gdb_py_object_from_ulongest.
5427
4ab1029c
TT
54282020-09-15 Tom Tromey <tromey@adacore.com>
5429
5430 * python/py-infevents.c (create_register_changed_event_object):
5431 Use gdb_py_object_from_longest.
5432 * python/py-exitedevent.c (create_exited_event_object): Use
5433 gdb_py_object_from_longest.
5434
062534d4
TT
54352020-09-15 Tom Tromey <tromey@adacore.com>
5436
5437 * python/python.c (gdbpy_parameter_value): Use
5438 gdb_py_object_from_longest.
5439 * python/py-type.c (convert_field, typy_range): Use
5440 gdb_py_object_from_longest.
5441 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5442 gdb_py_object_from_longest.
5443 * python/py-lazy-string.c (stpy_get_length): Use
5444 gdb_py_object_from_longest.
5445 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5446 gdb_py_object_from_longest.
5447 * python/py-infevents.c (create_memory_changed_event_object): Use
5448 gdb_py_object_from_longest.
5449 * python/py-inferior.c (infpy_get_num): Use
5450 gdb_py_object_from_longest.
5451 (infpy_get_pid): Likewise.
5452
d1cab987
TT
54532020-09-15 Tom Tromey <tromey@adacore.com>
5454
5455 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5456 defines.
5457 * python/py-value.c (valpy_long): Use
5458 gdb_py_object_from_ulongest.
5459 * python/py-symtab.c (salpy_get_pc): Use
5460 gdb_py_object_from_ulongest.
5461 (salpy_get_last): Likewise.
5462 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5463 gdb_py_object_from_ulongest.
5464 * python/py-lazy-string.c (stpy_get_address): Use
5465 gdb_py_object_from_ulongest.
5466 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5467 * python/py-arch.c (archpy_disassemble): Use
5468 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5469 error handling.
5470
4bde49dc
TT
54712020-09-15 Tom Tromey <tromey@adacore.com>
5472
5473 * python/python-internal.h (gdb_py_long_from_longest): Remove
5474 defines.
5475 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5476 * python/py-type.c (convert_field, typy_get_sizeof): Use
5477 gdb_py_object_from_longest.
5478 * python/py-record-btrace.c (btpy_list_index): Use
5479 gdb_py_object_from_longest.
5480
37431074
TT
54812020-09-15 Tom Tromey <tromey@adacore.com>
5482
5483 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5484 * python/py-record.c (recpy_element_number): Use
5485 gdb_py_object_from_longest.
5486 (recpy_gap_number): Likewise.
5487
cbe25684
TT
54882020-09-15 Tom Tromey <tromey@adacore.com>
5489
5490 * top.c (ui::ui): Update.
5491 (highest_ui_num): Remove.
5492 * top.h (struct ui) <num>: Remove.
5493
db92ac45
TT
54942020-09-15 Tom Tromey <tromey@adacore.com>
5495
5496 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5497 * ui-style.c (ansi_regex_text): Now array.
5498 * rust-exp.y (number_regex_text): Now array.
5499 * linespec.c (linespec_quote_characters): Now array.
5500 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5501 Now arrays.
5502
d2b31b67
SM
55032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5504
5505 * debuginfod-support.c (debuginfod_client_deleter): New.
5506 (debuginfod_client_up): New.
5507 (debuginfod_init): Return debuginfod_client_up.
5508 (debuginfod_source_query): Adjust.
5509 (debuginfod_debuginfo_query): Adjust.
5510
3246bd8e
SM
55112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5512
5513 * debuginfod-support.c (debuginfod_source_query): Use
5514 make_unique_xstrdup.
5515
10242f36
SM
55162020-09-14 Simon Marchi <simon.marchi@efficios.com>
5517
5518 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5519 with `type::instance_flags`.
5520
e1044e6a
MM
55212020-09-14 Michael Mullin <masmullin@gmail.com>
5522
5523 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5524 Remove baton parameter.
5525
04902b09
PA
55262020-09-14 Pedro Alves <pedro@palves.net>
5527
5528 * Makefile.in (SELFTESTS_SRCS): Add
5529 unittests/enum-flags-selftests.c.
5530 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5531 btrace_function_flags instead of enum btrace_function_flag.
5532 * compile/compile-c-types.c (convert_qualified): Use
5533 enum_flags::raw.
5534 * compile/compile-cplus-symbols.c (convert_one_symbol)
5535 (convert_symbol_bmsym):
5536 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5537 (compile_cplus_convert_struct_or_union_methods)
5538 (compile_cplus_instance::convert_qualified_base):
5539 * go-exp.y (parse_string_or_char): Add cast to int.
5540 * unittests/enum-flags-selftests.c: New file.
5541 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5542 type to btrace_thread_flags from btrace_thread_flag.
5543 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5544 local's type to btrace_thread_flags from btrace_thread_flag. Add
5545 cast in DEBUG call.
5546
69896a2c
PA
55472020-09-14 Pedro Alves <pedro@palves.net>
5548
5549 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5550 * gdbtypes.c (address_space_name_to_int): Rename to ...
5551 (address_space_name_to_type_instance_flags): ... this.
5552 (address_space_int_to_name): Rename to ...
5553 (address_space_type_instance_flags_to_name): ... this.
5554 * gdbtypes.h (address_space_name_to_int): Rename to ...
5555 (address_space_name_to_type_instance_flags): ... this.
5556 (address_space_int_to_name): Rename to ...
5557 (address_space_type_instance_flags_to_name): ... this.
5558 * type-stack.c (type_stack::insert): Adjust to rename.
5559 * type-stack.h (type_stack::insert): Likewise.
5560
314ad88d
PA
55612020-09-14 Pedro Alves <pedro@palves.net>
5562 Andrew Burgess <andrew.burgess@embecosm.com>
5563
5564 * avr-tdep.c (avr_address_class_type_flags): Return
5565 type_instance_flags.
5566 (avr_address_class_type_flags_to_name): Take a
5567 type_instance_flags.
5568 (avr_address_class_name_to_type_flags): Return bool and take a
5569 type_instance_flags.
5570 * d-lang.c (build_d_types): Use type::set_instance_flags.
5571 * ft32-tdep.c (ft32_address_class_type_flags): Return
5572 type_instance_flags.
5573 (ft32_address_class_type_flags_to_name): Take a
5574 type_instance_flags.
5575 (ft32_address_class_name_to_type_flags): Return bool and take a
5576 type_instance_flags.
5577 (ft32_gdbarch_init): Use type::set_instance_flags.
5578 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5579 * gdbarch.h, gdbarch.c: Regenerate.
5580 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5581 (address_class_name_to_type_flags): Use type_instance_flags and
5582 bool.
5583 * gdbtypes.c (address_space_name_to_int)
5584 (address_space_int_to_name, make_qualified_type): Use
5585 type_instance_flags.
5586 (make_qualified_type): Use type_instance_flags and
5587 type::set_instance_flags.
5588 (make_type_with_address_space, make_cv_type, make_vector_type)
5589 (check_typedef): Use type_instance_flags.
5590 (recursive_dump_type): Cast type_instance_flags to unsigned for
5591 printing.
5592 (copy_type_recursive): Use type::set_instance_flags.
5593 (gdbtypes_post_init): Use type::set_instance_flags.
5594 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5595 <m_instance_flags>: ... this.
5596 <instance_flags, set_instance_flags>: New methods.
5597 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5598 (SET_TYPE_INSTANCE_FLAGS): New.
5599 (address_space_name_to_int, address_space_int_to_name)
5600 (make_type_with_address_space): Pass flags using
5601 type_instance_flags instead of int.
5602 * stabsread.c (cleanup_undefined_types_noname): Use
5603 type::set_instance_flags.
5604 * s390-tdep.c (s390_address_class_type_flags): Return
5605 type_instance_flags.
5606 (s390_address_class_type_flags_to_name): Take a
5607 type_instance_flags.
5608 (s390_address_class_name_to_type_flags): Return bool and take a
5609 type_instance_flags.
5610 * type-stack.c (type_stack::follow_types): Use
5611 type_instance_flags.
5612 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5613
27087b7f
TT
56142020-09-14 Tom Tromey <tromey@adacore.com>
5615
5616 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5617 * x86-tdep.c (x86_is_thunk_register_name)
5618 (x86_in_indirect_branch_thunk): Update.
5619 * sparc64-tdep.c (sparc64_fpu_register_names)
5620 (sparc64_cp0_register_names, sparc64_register_names)
5621 (sparc64_pseudo_register_names): Now const.
5622 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5623 cp0_registers_num>: Now const.
5624 * sparc-tdep.c (sparc_core_register_names)
5625 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5626 (sparc32_pseudo_register_names): Now const.
5627 (validate_tdesc_registers): Update.
5628 * rust-lang.c (rust_extensions): Now const.
5629 * p-lang.c (p_extensions): Now const.
5630 * objc-lang.c (objc_extensions): Now const.
5631 * nto-tdep.c (nto_thread_state_str): Now const.
5632 * moxie-tdep.c (moxie_register_names): Now const.
5633 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5634 Now const.
5635 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5636 (mips_linux_reg_names): Now const.
5637 (mips_gdbarch_init): Update.
5638 * microblaze-tdep.c (microblaze_register_names): Now const.
5639 * m68k-tdep.c (m68k_register_names): Now const.
5640 * m32r-tdep.c (m32r_register_names): Now const.
5641 * ia64-tdep.c (ia64_register_names): Now const.
5642 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5643 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5644 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5645 ymm_avx512_register_names, pkeys_register_names>: Now const.
5646 * i386-tdep.c (i386_register_names, i386_zmm_names)
5647 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5648 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5649 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5650 * f-lang.c (f_extensions): Now const.
5651 * d-lang.c (d_extensions): Now const.
5652 * csky-tdep.c (csky_register_names): Now const.
5653 * charset.c (default_charset_names, charset_enum): Now const.
5654 (_initialize_charset): Update.
5655 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5656 const.
5657 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5658 (bsd_uthread_solib_loaded): Update.
5659 (bsd_uthread_state): Now const.
5660 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5661 (amd64_ymm_avx512_names, amd64_ymmh_names)
5662 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5663 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5664 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5665 (amd64_dword_names): Now const.
5666 * agent.c (can_use_agent_enum): Now const.
5667 * ada-tasks.c (task_states, long_task_states): Now const.
5668 * ada-lang.c (known_runtime_file_name_patterns)
5669 (known_auxiliary_function_name_patterns, attribute_names)
5670 (standard_exc, ada_extensions): Now const.
5671
89806626
SM
56722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5673
5674 * bcache.h (struct bcache) <bcache>: Remove constructor.
5675 <m_hash_function, m_compare_function>: Remove.
5676 <~bcache>: Make virtual.
5677 <compare>: Remove static method, introduce virtual method.
5678 <default_hash>: Remove.
5679 <hash>: New virtual method.
5680 * bcache.c (bcache::expand_hash_table): Update.
5681 (bcache::insert): Update.
5682 (bcache::hash): New.
5683 (bcache::compare): Update comment and parameter names.
5684 * gdbtypes.c (types_deeply_equal): Update.
5685 * psymtab.h (struct psymbol_bcache): New struct.
5686 (class psymtab_storage) <psymtab_storage>: Make default.
5687 <psymbol_cache>: Change type to psymbol_bcache.
5688 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5689 (psymbol_hash): Change to...
5690 (psymbol_bcache::hash): ... this.
5691 (psymbol_compare): Change to...
5692 (psymbol_bcache::compare): ... this.
5693
677c92fe
SM
56942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5695
5696 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5697 checking for initial lwp.
5698
3eba3a01
TT
56992020-09-14 Tom Tromey <tromey@adacore.com>
5700
5701 * m68k-tdep.c (m68k_extract_return_value): Use
5702 pointer_result_regnum.
5703 (m68k_store_return_value): Likewise.
5704 (m68k_reg_struct_return_p): Handle vectors and arrays.
5705 (m68k_return_value): Handle arrays.
5706 (m68k_svr4_return_value): Fix single-element aggregate handling.
5707 Handle long double. Adjust for embedded ABI.
5708 (m68k_svr4_init_abi): Set pointer_result_regnum.
5709 (m68k_embedded_init_abi): New function.
5710 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5711 (m68k_osabi_sniffer): New function.
5712 (_initialize_m68k_tdep): Register osabi sniffer.
5713 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5714 member.
5715
33f4dd48
SM
57162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5717
5718 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5719 with gdb::unique_xmalloc_ptr<char>.
5720
8400a90d
SM
57212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5722
5723 * xml-support.h (xml_fetch_another): Change type to be a
5724 function_view.
5725 (xml_process_xincludes): Remove baton parameter.
5726 (xml_fetch_content_from_file): Change baton parameter to
5727 dirname.
5728 * xml-support.c (struct xinclude_parsing_data)
5729 <xinclude_parsing_data>: Remove baton parameter.
5730 <fetcher_baton>: Remove.
5731 (xinclude_start_include): Adjust.
5732 (xml_process_xincludes): Adjust.
5733 (xml_fetch_content_from_file): Replace baton parameter with
5734 dirname.
5735 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5736 (xml_init_syscalls_info): Use a lambda.
5737 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5738 (file_read_description_xml): Use a lambda.
5739 (fetch_available_features_from_target): Change baton parameter
5740 to target_ops.
5741 (target_read_description_xml): Use a lambda.
5742 (target_fetch_description_xml): Use a lambda.
5743 (string_read_description_xml): Update.
5744
04f5bab2
SM
57452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5746
5747 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5748 uses with type::endianity_is_not_default.
5749
db558e34
SM
57502020-09-14 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * gdbtypes.h (struct type) <endianity_is_not_default,
5753 set_endianity_is_not_default>: New methods.
5754 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5755 type::endianity_is_not_default, change all write call sites to
5756 use type::set_endianity_is_not_default.
5757
22c4c60c
SM
57582020-09-14 Simon Marchi <simon.marchi@efficios.com>
5759
5760 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5761 uses with type::is_fixed_instance.
5762
9cdd0d12
SM
57632020-09-14 Simon Marchi <simon.marchi@efficios.com>
5764
5765 * gdbtypes.h (struct type) <is_fixed_instance,
5766 set_is_fixed_instance>: New methods.
5767 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5768 write call sites to use type::set_is_fixed_instance.
5769
0becda7a
SM
57702020-09-14 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5773 uses with type::is_gnu_ifunc.
5774
03cc7249
SM
57752020-09-14 Simon Marchi <simon.marchi@efficios.com>
5776
5777 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5778 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5779 use type::set_is_gnu_ifunc.
5780
3f46044c
SM
57812020-09-14 Simon Marchi <simon.marchi@efficios.com>
5782
5783 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5784 uses with type::stub_is_supported.
5785
9baccff6
SM
57862020-09-14 Simon Marchi <simon.marchi@efficios.com>
5787
5788 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5789 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5790 use type::set_stub_is_supported.
5791
bd63c870
SM
57922020-09-14 Simon Marchi <simon.marchi@efficios.com>
5793
5794 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5795 uses with type::is_vector.
5796
2062087b
SM
57972020-09-14 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5800 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5801 use type::set_is_vector.
5802
a409645d
SM
58032020-09-14 Simon Marchi <simon.marchi@efficios.com>
5804
5805 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5806 uses with type::has_varargs.
5807
1d6286ed
SM
58082020-09-14 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5811 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5812 use type::set_has_varargs.
5813
7f9f399b
SM
58142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5817 uses with type::is_prototyped.
5818
27e69b7a
SM
58192020-09-14 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5822 New methods.
5823 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5824 call sites to use type::set_is_prototyped.
5825
d2183968
SM
58262020-09-14 Simon Marchi <simon.marchi@efficios.com>
5827
5828 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5829 uses with type::target_is_stub.
5830
8f53807e
SM
58312020-09-14 Simon Marchi <simon.marchi@efficios.com>
5832
5833 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5834 New methods.
5835 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5836 sites to use type::set_target_is_stub.
5837
e46d3488
SM
58382020-09-14 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * gdbtypes.h (TYPE_STUB): Remove, replace all
5841 uses with type::is_stub.
5842
b4b73759
SM
58432020-09-14 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5846 (TYPE_STUB): Use type::is_stub, change all write call sites to
5847 use type::set_is_stub.
5848
20ce4123
SM
58492020-09-14 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5852 type::has_no_signedness.
5853
15152a54
SM
58542020-09-14 Simon Marchi <simon.marchi@efficios.com>
5855
5856 * gdbtypes.h (struct type) <has_no_signedness,
5857 set_has_no_signedness>: New methods.
5858 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5859 call sites to use type::set_has_no_signedness.
5860
c6d940a9
SM
58612020-09-14 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5864 type::is_unsigned.
5865
653223d3
SM
58662020-09-14 Simon Marchi <simon.marchi@efficios.com>
5867
5868 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5869 methods.
5870 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5871 sites to use type::set_is_unsigned.
5872
55ea94da 58732020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5874 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5875
e851246a
SM
5876 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5877 pointer and stack frame offset when unwinding.
55ea94da 5878
6791b117
PA
58792020-09-13 Pedro Alves <pedro@palves.net>
5880
5881 * NEWS: Document "-break-insert --qualified".
5882 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5883
77f2120b
PA
58842020-09-13 Pedro Alves <pedro@palves.net>
5885
5886 * linespec.c (classify_mtype, compare_msyms): Delete.
5887 (search_minsyms_for_name): Remove classification logic. Instead
5888 filter out trampoline symbols if we also found an external
5889 function of the same name.
5890
ed6a896c
JB
58912020-09-13 Joel Brobecker <brobecker@adacore.com>
5892
5893 * NEWS: Create a new section for the next release branch.
5894 Rename the section of the current branch, now that it has
5895 been cut.
5896
32aea73e
JB
58972020-09-13 Joel Brobecker <brobecker@adacore.com>
5898
5899 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5900 * version.in: Bump version to 11.0.50.DATE-git.
5901
8087c3fa
JB
59022020-09-12 Joel Brobecker <brobecker@adacore.com>
5903
5904 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5905
2a67f09d
FW
59062020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5907 Felix Willgerodt <Felix.Willgerodt@intel.com>
5908
5909 * gdbarch.sh: Added bfloat16 type.
5910 * gdbarch.c: Regenerated.
5911 * gdbarch.h: Regenerated.
5912 * gdbtypes.c (floatformats_bfloat16): New struct.
5913 (gdbtypes_post_init): Add builtin_bfloat16.
5914 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5915 (floatformats_bfloat16): New struct.
5916 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5917 (i386_ymm_type): Add field "v16_bfloat16"
5918 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5919 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5920 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5921 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5922 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5923 * features/i386/64bit-avx512.c: Regenerated.
5924 * features/i386/64bit-sse.xml: Add bfloat16 type.
5925 * features/i386/64bit-sse.c: Regenerated.
5926
1347d111
FW
59272020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5928
5929 * i386-tdep.c (i386_zmm_type): Fix field names.
5930 (i386_ymm_type): Fix field names.
5931
7a4e8e7d
TBA
59322020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5933
5934 * breakpoint.c: Fix typo in the help message of the
5935 "set breakpoint condition-evaluation" command.
5936
cf4ac4be
KR
59372020-09-10 Kamil Rytarowski <n54@gmx.com>
5938
5939 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5940 * (nbsd_nat_target::pid_to_exec_file)
5941 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5942 (nbsd_nat_target::post_startup_inferior)
5943 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5944 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5945 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5946 * (nbsd_thread_lister): Remove.
5947
f404573e
KR
59482020-09-10 Kamil Rytarowski <n54@gmx.com>
5949
5950 * fork-inferior.c (startup_inferior): Avoid double free.
5951
1ccb2c17
KR
59522020-09-10 Kamil Rytarowski <n54@gmx.com>
5953
5954 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5955 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5956
feedfcc7
KR
59572020-09-10 Kamil Rytarowski <n54@gmx.com>
5958
5959 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5960 * netbsd-nat.c: Include <sys/ptrace.h>.
5961 * (netbsd_nat::enable_proc_events): Add.
5962
c489f8c6
KR
59632020-09-10 Kamil Rytarowski <n54@gmx.com>
5964
5965 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5966 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5967 (netbsd_nat::for_each_thread): Add.
5968 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5969 "gdbsupport/common-debug.h".
5970 * (netbsd_nat::netbsd_thread_lister)
5971 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5972 (netbsd_nat::for_each_thread): Add.
5973
330662f6
KR
59742020-09-10 Kamil Rytarowski <n54@gmx.com>
5975
5976 * netbsd-nat.h: Include <unistd.h>.
5977 * (netbsd_nat::pid_to_exec_file): Add.
5978 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5979 * (netbsd_nat::pid_to_exec_file) Add.
5980
70b67307
KR
59812020-09-10 Kamil Rytarowski <n54@gmx.com>
5982
5983 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5984
99cf6da6
KR
59852020-09-10 Kamil Rytarowski <n54@gmx.com>
5986
5987 * netbsd-nat.h: New file.
5988 * netbsd-nat.c: Likewise.
5989
1b788fb6
TT
59902020-09-09 Tom Tromey <tromey@adacore.com>
5991
5992 * ada-lang.c (remove_extra_symbols): Do not increment when
5993 removing an element
5994
03b0a45f
TT
59952020-09-08 Tom Tromey <tromey@adacore.com>
5996
5997 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5998
3cae4447
TT
59992020-09-08 Tom Tromey <tromey@adacore.com>
6000
6001 PR win32/25302:
6002 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6003 (gdb_bfd_init_data): New function.
6004 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6005
7f08fd51
TBA
60062020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6007
6008 * infrun.c (fetch_inferior_event): Use
6009 `switch_to_target_no_thread` to switch the target.
6010
3e6ff933
TT
60112020-09-06 Tom Tromey <tom@tromey.com>
6012
6013 * symfile.h (dwarf2_free_objfile): Don't declare.
6014
e56798df
AKS
60152020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6016
6017 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6018 to match 16 byte real/complex type generated by Flang compiler.
6019
8f5c6526
TV
60202020-09-03 Tom de Vries <tdevries@suse.de>
6021
6022 PR breakpoint/26546
6023 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6024 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6025
c5065df0
SM
60262020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * maint.c (index_digits): New function.
6029 (struct maint_print_section_data): Remove.
6030 (print_bfd_section_info): Remove print_data parameter, add arg
6031 and index_digits.
6032 (print_objfile_section_info): Likewise.
6033 (print_bfd_section_info_maybe_relocated): Likewise (plus
6034 objfile).
6035 (maintenance_info_sections): Adjust calls.
6036
02c6f3f1
TT
60372020-09-02 Tom Tromey <tromey@adacore.com>
6038
6039 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6040 for null pointers.
6041 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6042
ef5e5b0b
SM
60432020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6044
6045 * bcache.h (struct bcache) <insert>: Change type of `added` to
6046 pointer to bool.
6047 * bcache.c (bcache::insert): Likewise.
6048 * gdbtypes.c (check_types_worklist): Adjust.
6049 * psymtab.c (add_psymbol_to_bcache): Adjust.
6050
973695d6
KB
60512020-08-31 Kevin Buettner <kevinb@redhat.com>
6052
6053 * corelow.c (unordered_set): Include.
6054 (class core_target): Add field 'm_core_unavailable_mappings'.
6055 (core_target::build_file_mappings): Print only one warning
6056 per inaccessible file. Add unavailable/broken mappings
6057 to m_core_unavailable_mappings.
6058 (core_target::xfer_partial): Call...
6059 (core_target::xfer_memory_via_mappings): New method.
6060
264fc0e2
SM
60612020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6062
6063 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6064 type to bool.
6065
2de01bdb
SM
60662020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6067
6068 * dwarf2/read.c (struct field_info): Fix indentation.
6069
f3bd50f1
SM
60702020-08-31 Simon Marchi <simon.marchi@efficios.com>
6071
6072 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6073 ordering in comment.
6074 * frame.c (frame_id_eq): Fix indentation.
6075
22b9b4b0
SL
60762020-08-31 Scott Linder <scott@scottlinder.com>
6077 Simon Marchi <simon.marchi@efficios.com>
6078
6079 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6080 inline frame ids in outer frame.
6081
84154d16
SM
60822020-08-31 Simon Marchi <simon.marchi@efficios.com>
6083
6084 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6085 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6086 (outer_frame_id): Use FID_STACK_OUTER instead of
6087 FID_STACK_INVALID.
6088 (frame_id_p): Don't check for outer_frame_id.
6089
8efaf6b3
SM
60902020-08-31 Simon Marchi <simon.marchi@efficios.com>
6091
6092 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6093 regnum/frame in value. Call allocate_value_lazy.
6094 * frame.c (frame_unwind_register_value): Use
6095 val_print_not_saved.
6096
fe1fe7ea
SM
60972020-08-31 Simon Marchi <simon.marchi@efficios.com>
6098
6099 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6100
f7c7700d
PA
61012020-08-29 Pedro Alves <pedro@palves.net>
6102
6103 * progspace.c (print_program_space): Use all_inferiors. Switch to
6104 the inferior before calling target_pid_to_str.
6105
e0814aae
TT
61062020-08-28 Tom Tromey <tom@tromey.com>
6107
6108 * xcoffread.c (xcoff_end_psymtab): Update comment.
6109 * dbxread.c (dbx_end_psymtab): Update comment.
6110
626d2320
TV
61112020-08-28 Tom de Vries <tdevries@suse.de>
6112
6113 PR breakpoint/26544
6114 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6115 event_location.
6116 (create_breakpoint): Same.
6117 (base_breakpoint_decode_location): Same.
6118 (bkpt_create_sals_from_location): Same.
6119 (bkpt_decode_location): Same.
6120 (bkpt_probe_create_sals_from_location): Same.
6121 (bkpt_probe_decode_location): Same.
6122 (tracepoint_create_sals_from_location): Same.
6123 (tracepoint_decode_location): Same.
6124 (tracepoint_probe_decode_location): Same.
6125 (strace_marker_create_sals_from_location): Same.
6126 (strace_marker_decode_location): Same.
6127 (create_sals_from_location_default): Same.
6128 (decode_location_default): Same.
6129 * breakpoint.h (struct breakpoint_ops): Same.
6130 (create_breakpoint): Same.
6131 * linespec.h (decode_line_full): Same.
6132 * linespec.c (decode_line_full): Same. Throw error if
6133 result.size () == 0.
6134
df631783
PA
61352020-08-27 Pedro Alves <pedro@palves.net>
6136
6137 PR gdb/26524
6138 * breakpoint.c (until_break_fsm) <location_breakpoint,
6139 caller_breakpoint>: Delete fields.
6140 <breakpoints>: New field.
6141 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6142 two individual breakpoints.
6143 (until_break_fsm::should_stop): Loop over breakpoints in the
6144 breakpoint vector.
6145 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6146 vector.
6147 (until_break_command): Handle location expanding into multiple
6148 sals.
6149
b2b38aa4
PA
61502020-08-27 Pedro Alves <pedro@palves.net>
6151
6152 PR gdb/26523
6153 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6154 bp_until breakpoints user-specified locations. Update intro
6155 comment.
6156
b886559f
SM
61572020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6158
6159 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6160 gdb_bfd_sections): New.
6161 * maint.c (print_bfd_section_info): Change param type to
6162 maint_print_section_data.
6163 (print_objfile_section_info): Likewise.
6164 (print_bfd_section_info_maybe_relocated): Likewise.
6165 (maintenance_info_sections): Use gdb_bfd_sections.
6166
4c6e63bf
SV
61672020-08-25 Shahab Vahedi <shahab@synopsys.com>
6168
6169 * MAINTAINERS: Add ARC target and maintainer.
6170
8d7f0635
AK
61712020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6172
6173 * configure.tgt: ARC support for GNU/Linux.
6174 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6175 * arc-linux-tdep.c: New file.
6176 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6177 * arc-tdep.c (arc_write_pc): Use it.
6178
fdd8731b
SV
61792020-08-25 Shahab Vahedi <shahab@synopsys.com>
6180
6181 * arc-tdep.c (arc_check_for_hardware_loop): New.
6182 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6183
22459524
SV
61842020-08-25 Shahab Vahedi <shahab@synopsys.com>
6185
6186 * arc-tdep.h: Include "gdbarch.h".
6187
995d3a19
SV
61882020-08-25 Shahab Vahedi <shahab@synopsys.com>
6189
6190 * arch/arc.h
6191 (arc_gdbarch_features): New class to stir the selection of target XML.
6192 (arc_create_target_description): Use FEATURES to choose XML target.
6193 (arc_lookup_target_description): Use arc_create_target_description
6194 to create _new_ target descriptions or return the already created
6195 ones if the FEATURES is the same.
6196 * arch/arc.c: Implementation of prototypes described above.
6197 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6198 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6199 * arc-tdep.c (*_feature_name): Make feature names consistent.
6200 (arc_register_feature): A new struct to hold information about
6201 registers of a particular target/feature.
6202 (arc_check_tdesc_feature): Check if XML provides registers in
6203 compliance with ARC_REGISTER_FEATURE structs.
6204 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6205 (determine_*_reg_feature_set): Which feature name to look for.
6206 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6207 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6208 to expected ISA enums to be used in arc_gdbarch_features structs.
6209 * features/Makefile (FEATURE_XMLFILES): Add new files.
6210 * gdb/features/arc/v1-aux.c: New file.
6211 * gdb/features/arc/v1-aux.xml: Likewise.
6212 * gdb/features/arc/v1-core.c: Likewise.
6213 * gdb/features/arc/v1-core.xml: Likewise.
6214 * gdb/features/arc/v2-aux.c: Likewise.
6215 * gdb/features/arc/v2-aux.xml: Likewise.
6216 * gdb/features/arc/v2-core.c: Likewise.
6217 * gdb/features/arc/v2-core.xml: Likewise.
6218 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6219
3945d2d7
GM
62202020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6221 Andrew Burgess <andrew.burgess@embecosm.com>
6222
6223 PR m2/26372
fc5d6901 6224 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6225 an assert. Remove single element array indexing pattern as the
6226 MULTI_SUBSCRIPT support will handle this case too.
6227
2677f2d3
SM
62282020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6229
6230 * value.h (valprint_check_validity): Move declaration from
6231 here...
6232 * valprint.h (valprint_check_validity): ... to here.
6233
c426fddb
SM
62342020-08-24 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * debug.h: New file.
6237 * debug.c (debug_prefixed_vprintf): New function.
6238 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6239 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6240
1eb8556f
SM
62412020-08-24 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * infrun.h (infrun_debug_printf_1): New function declaration.
6244 (infrun_debug_printf): New macro.
6245 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6246 throughout.
6247 (infrun_debug_printf): New function.
6248 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6249 (handle_jit_event): Likewise.
6250
b8fff44e
MW
62512020-08-21 Mark Wielaard <mark@klomp.org>
6252
6253 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6254
d19c3068
SM
62552020-08-22 Simon Marchi <simon.marchi@efficios.com>
6256
6257 * frame.c (enum class frame_id_status): New.
6258 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6259 (fprintf_frame): Update.
6260 (compute_frame_id): Set frame id status to "computing" on entry.
6261 Set it back to "not_computed" on failure and to "computed" on
6262 success.
6263 (get_frame_id): Assert the frame id is not being computed.
6264 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6265 (create_new_frame): Likewise.
6266 (frame_cleanup_after_sniffer): Update assert.
6267
b70e516e
SM
62682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * regcache.c (pid_ptid_regcache_map): New type.
6271 (target_ptid_regcache_map): Remove.
6272 (target_pid_ptid_regcache_map): New type.
6273 (regcaches): Change type to target_pid_ptid_regcache_map.
6274 (get_thread_arch_aspace_regcache): Update.
6275 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6276 case.
6277 (regcaches_size): Update.
6278 (regcache_count): Update.
6279 (registers_changed_ptid_target_pid_test): New.
6280 (_initialize_regcache): Register new test.
6281
cdd9148a
SM
62822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * regcache.c (regcache_count): New.
6285 (struct regcache_test_data): New.
6286 (regcache_test_data_up): New.
6287 (populate_regcaches_for_test): New.
6288 (regcaches_test): Remove.
6289 (get_thread_arch_aspace_regcache_test): New.
6290 (registers_changed_ptid_all_test): New.
6291 (registers_changed_ptid_target_test): New.
6292 (registers_changed_ptid_target_ptid_test): New.
6293 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6294 (_initialize_regcache): Register new tests.
6295
dd125343
SM
62962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6297
6298 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6299 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6300 gdbarch and aspace parameter. Use current inferior's aspace.
6301 Validate regcache's arch value.
6302 (regcaches_test): Update.
6303
3ee93972
SM
63042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6305
6306 * regcache.c (regcaches_test): Call registers_changed.
6307
33bf4c5c
TBA
63082020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6309
6310 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6311
c2fd7fae
AKS
63122020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6313
6314 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6315 to find the end of prologue for flang compiled binaries.
6316 * arm-tdep.c (arm_skip_prologue): Likewise.
6317 * i386-tdep.c (i386_skip_prologue): Likewise.
6318 * producer.c (producer_is_llvm): New function.
6319 (producer_parsing_tests): Added new tests for clang/flang.
6320 * producer.h (producer_is_llvm): New declaration.
6321
9327494e
SM
63222020-08-18 Simon Marchi <simon.marchi@efficios.com>
6323
6324 * linux-nat.c (linux_nat_debug_printf): New function.
6325 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6326
d138725a
AM
63272020-08-18 Aaron Merey <amerey@redhat.com>
6328
6329 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6330 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6331 (CLIBS): Add DEBUGINFOD_LIBS.
6332
f9b11e6b
ST
63332020-08-17 Sergei Trofimovich <siarheit@google.com>
6334
6335 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6336 'gdbarch_num_regs'.
6337
3ae7ab99
TT
63382020-08-17 Tom Tromey <tromey@adacore.com>
6339
6340 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6341 ada_get_decoded_value returns NULL.
6342
b017825f
TT
63432020-08-17 Tom Tromey <tromey@adacore.com>
6344
6345 * python/py-inferior.c (infpy_search_memory): Use
6346 gdb_py_object_from_ulongest.
6347 * python/py-infevents.c (create_inferior_call_event_object)
6348 (create_memory_changed_event_object): Use
6349 gdb_py_object_from_ulongest.
6350 * python/py-linetable.c (ltpy_entry_get_pc): Use
6351 gdb_py_object_from_ulongest.
6352
7635cf79
SM
63532020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6354
6355 * loc.c (class symbol_needs_eval_context): Fix indentation.
6356
f54be24b
SM
63572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6358
6359 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6360 bool.
6361
53d5a2a5
TV
63622020-08-17 Tom de Vries <tdevries@suse.de>
6363
6364 PR gdb/26393
6365 * gdbtypes.c (dump_dynamic_prop): New function.
6366 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6367
547ce8f0
TV
63682020-08-15 Tom de Vries <tdevries@suse.de>
6369
6370 PR backtrace/26390
6371 * stack.c (print_frame_args): Temporarily set the selected
6372 frame to FRAME while printing the frame's arguments.
6373
6ea815e7
PFC
63742020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6375
6376 PR breakpoints/26385
6377 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6378 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6379
6e562fa3
PFC
63802020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6381
6382 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6383 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6384 and >= to check return value instead of == -1 and != -1.
6385
d369b608
SM
63862020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6387
6388 * utils.h (class gdb_argv) <as_array_view>: New method.
6389 * utils.c (gdb_argv_as_array_view_test): New.
6390 (_initialize_utils): Register selftest.
6391 * maint.c (maintenance_selftest): Use the new method.
6392
b31488a3
KR
63932020-08-13 Kamil Rytarowski <n54@gmx.com>
6394
6395 * target.h (supports_dumpcore, dumpcore): New
6396 function declarations.
6397 * target.c (supports_dumpcore, dumpcore): New
6398 functions.
6399 * target-delegates.c: Rebuild.
6400 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6401 and target_dumpcore ().
6402
002a3166
AM
64032020-08-13 Aaron Merey <amerey@redhat.com>
6404
6405 * debuginfod-support.c: Replace global variables with user_data.
6406
ece5bc8a
SM
64072020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6408
6409 * maint.c (maintenance_selftest): Split args and pass array_view
6410 to run_tests.
6411
6d8a0a5e
LM
64122020-08-12 Luis Machado <luis.machado@linaro.org>
6413
6414 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6415 type's length.
6416 Use %s and pulongest to print the length.
6417
7cf663a9
PA
64182020-08-12 Pedro Alves <palves@redhat.com>
6419
6420 * NEWS: Move "Multi-target debugging support" item to the
6421 "Changes since GDB 9" section.
6422
27c7b875
PA
64232020-08-12 Pedro Alves <palves@redhat.com>
6424
6425 PR gdb/26336
6426 * progspace.c (program_space::remove_objfile): Invalidate the
6427 frame cache.
6428
1796a2a1
TV
64292020-08-11 Tom de Vries <tdevries@suse.de>
6430
6431 * MAINTAINERS: Mark ms1 as deleted.
6432
f8e3fe0d
LM
64332020-08-10 Luis Machado <luis.machado@linaro.org>
6434
6435 PR gdb/26310
6436
6437 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6438 act accordingly.
6439 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6440 movz/str/stur/stp skipping behavior.
6441
cc308722
LM
64422020-08-10 Luis Machado <luis.machado@linaro.org>
6443
6444 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6445 struct user_sve_header instead of struct sve_context.
6446
041d9819
SM
64472020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6448
6449 * read.h (dwarf2_fetch_die_loc_sect_off,
6450 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6451 `void *` parameter with function_view.
6452 * read.c (dwarf2_fetch_die_loc_sect_off,
6453 dwarf2_fetch_die_loc_cu_off): Likewise.
6454 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6455 (per_cu_dwarf_call): Adjust.
6456 (get_frame_address_in_block_wrapper): Remove.
6457 (indirect_synthetic_pointer): Adjust.
6458 (get_ax_pc): Remove.
6459 (dwarf2_compile_expr_to_ax): Adjust.
6460
38f8aa06
TV
64612020-08-08 Tom de Vries <tdevries@suse.de>
6462
6463 PR build/26344
6464 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6465 constructor.
6466 * regcache.c (get_thread_arch_aspace_regcache): Same.
6467
a52b3ae2
TT
64682020-08-07 Tom Tromey <tromey@adacore.com>
6469
6470 * ravenscar-thread.c
6471 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6472 New method.
6473 (ravenscar_thread_target::wait): Check
6474 runtime_initialized.
6475 (ravenscar_thread_target::prepare_to_store)
6476 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6477 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6478 (ravenscar_thread_target::stopped_by_watchpoint)
6479 (ravenscar_thread_target::stopped_data_address)
6480 (ravenscar_thread_target::core_of_thread): Use
6481 scoped_restore_current_thread and
6482 set_base_thread_from_ravenscar_task.
6483
0e29517d
TT
64842020-08-07 Tom Tromey <tromey@adacore.com>
6485
6486 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6487
592f9bd7
TT
64882020-08-07 Tom Tromey <tromey@adacore.com>
6489
6490 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6491 update_inferior_ptid before update_thread_list.
6492 (temporarily_change_regcache_ptid): New class.
6493 (ravenscar_thread_target::fetch_registers)
6494 (ravenscar_thread_target::store_registers)
6495 (ravenscar_thread_target::prepare_to_store): Use base thread when
6496 forwarding operation.
6497
39e2018a
TT
64982020-08-07 Tom Tromey <tromey@adacore.com>
6499
6500 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6501 "is_pid" case.
6502
2080266b
TT
65032020-08-07 Tom Tromey <tromey@adacore.com>
6504
6505 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6506 New methods.
6507 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6508 first.
6509 (ravenscar_thread_target::add_thread): Rename from
6510 ravenscar_add_thread.
6511 (ravenscar_thread_target::update_thread_list): Use a lambda.
6512 (ravenscar_thread_target::xfer_partial): New method.
6513
78c02f21
TT
65142020-08-07 Tom Tromey <tromey@adacore.com>
6515
6516 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6517 gdb::function_view.
6518 (iterate_over_live_ada_tasks): Change type of argument.
6519 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6520 of argument.
6521
d5d833af
TT
65222020-08-07 Tom Tromey <tromey@adacore.com>
6523
6524 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6525 Remove.
6526 (ravenscar_thread_target::extra_thread_info): Remove.
6527 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6528 defer to target beneath for non-Ravenscar threads.
6529
a8ac85bb
TT
65302020-08-07 Tom Tromey <tromey@adacore.com>
6531
6532 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6533 get_base_thread_from_ravenscar_task>: Now methods.
6534 <m_cpu_map>: New member.
6535 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6536 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6537 (ravenscar_thread_target::task_is_currently_active): Update.
6538 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6539 Now a method.
6540 (ravenscar_thread_target::add_active_thread): Put initial thread
6541 into the m_cpu_map.
6542
550ab58d
TT
65432020-08-07 Tom Tromey <tromey@adacore.com>
6544
6545 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6546 event_ptid.
6547
e9546579
TT
65482020-08-07 Tom Tromey <tromey@adacore.com>
6549
6550 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6551 runtime_initialized.
6552
3d4470e5
TT
65532020-08-07 Tom Tromey <tromey@adacore.com>
6554
6555 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6556 add_active_thread.
6557 (ravenscar_thread_target::add_active_thread): Now public.
6558 (ravenscar_inferior_created): Call add_active_thread after pushing
6559 the target.
6560
888bdb2b
SM
65612020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6562
6563 * regcache.c (ptid_regcache_map): New type.
6564 (target_ptid_regcache_map): New type.
6565 (regcaches): Change type to target_ptid_regcache_map.
6566 (get_thread_arch_aspace_regcache): Update to regcaches' new
6567 type.
6568 (regcache_thread_ptid_changed): Likewise.
6569 (registers_changed_ptid): Likewise.
6570 (regcaches_size): Likewise.
6571 (regcaches_test): Update.
6572 (regcache_thread_ptid_changed): Update.
6573 * regcache.h (regcache_up): New type.
6574 * gdbsupport/ptid.h (hash_ptid): New struct.
6575
b161a60d
SM
65762020-08-07 Simon Marchi <simon.marchi@efficios.com>
6577
6578 * observable.h (thread_ptid_changed): Add parameter
6579 `process_stratum_target *`.
6580 * infrun.c (infrun_thread_ptid_changed): Add parameter
6581 `process_stratum_target *` and use it.
6582 (selftests): New namespace.
6583 (infrun_thread_ptid_changed): New function.
6584 (_initialize_infrun): Register selftest.
6585 * regcache.c (regcache_thread_ptid_changed): Add parameter
6586 `process_stratum_target *` and use it.
6587 (regcache_thread_ptid_changed): New function.
6588 (_initialize_regcache): Register selftest.
6589 * thread.c (thread_change_ptid): Pass target to
6590 thread_ptid_changed observable.
6591
d2854d8d
CT
65922020-08-06 Caroline Tice <cmtice@google.com>
6593
fe4c3d43
SM
6594 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6595 (struct dwp_sections): Update field comments. Add loclists and
6596 rnglists fields.
6597 (struct virtual_v2_dwo_sections): Rename struct to
6598 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6599 size & offset fields for loclists and rnglists.
6600 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6601 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6602 skipping dummy type units.
6603 (create_dwp_hash_table): Update the large comment above the function to
6604 discuss Version 5 DWP files as well, with references. Update all the
6605 version checks in the function to check for version 5 as well. Add new
6606 section at the end to create dwp hash table for version 5.
6607 (create_dwp_v2_section): Rename function to
6608 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6609 Add V5 to error message text.
6610 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6611 into calls to create_dwp_v2_or_v5_section.
6612 (create_dwo_unit_in_dwp_v5): New function.
6613 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6614 check for version2; add else clause to handle version 5.
6615 (open_and_init_dwo_file): Add code to check dwarf version & only call
6616 create_debug_types_hash_table (with sections.types) if version is not 5;
6617 else call create_debug_type_hash_table, with sections.info.
6618 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6619 version 5.
6620 (dwarf2_locate_v5_dwp_sections): New function.
6621 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6622 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6623
159ed7d9
SM
66242020-08-06 Simon Marchi <simon.marchi@efficios.com>
6625
6626 * regcache.h (class regcache): Remove friend
6627 registers_changed_ptid.
6628 <regcache_thread_ptid_changed>: Remove.
6629 <regcaches>: Remove.
6630 * regcache.c (regcache::regcaches): Rename to...
6631 (regcaches): ... this. Make static.
6632 (get_thread_arch_aspace_regcache): Update.
6633 (regcache::regcache_thread_ptid_changed): Rename to...
6634 (regcache_thread_ptid_changed): ... this. Update.
6635 (class regcache_access): Remove.
6636 (regcaches_test): Update.
6637 (_initialize_regcache): Update.
6638 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6639 <forward_list>.
6640
174981ae
SM
66412020-08-06 Simon Marchi <simon.marchi@efficios.com>
6642
6643 * regcache.h (class regcache) <current_regcache>: Rename to...
6644 <regcaches>: ... this. Move doc here.
6645 * regcache.c (regcache::current_regcache) Rename to...
6646 (regcache::regcaches): ... this. Move doc to header.
6647 (get_thread_arch_aspace_regcache): Update.
6648 (regcache::regcache_thread_ptid_changed): Update.
6649 (registers_changed_ptid): Update.
6650 (class regcache_access) <current_regcache_size>: Rename to...
6651 <regcaches_size>: ... this.
6652 (current_regcache_test): Rename to...
6653 (regcaches_test): ... this.
6654 (_initialize_regcache): Update.
6655
ed908db6
VC
66562020-08-06 Victor Collod <vcollod@nvidia.com>
6657
6658 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6659
b5582ab7
KB
66602020-08-05 Kevin Buettner <kevinb@redhat.com>
6661
6662 * corelow.c (core_target::build_file_mappings): Don't output
6663 null pathname in warning.
6664
ea946b86
SM
66652020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6666
6667 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6668 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6669 gdb.dwarf2/dw2-single-line-discriminators.exp,
6670 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6671
57d02173
TT
66722020-08-05 Tom Tromey <tromey@adacore.com>
6673
6674 PR rust/26197:
6675 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6676 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6677 Fix off-by-one and type size errors in ordinary case.
6678
5555c86d
TV
66792020-08-05 Tom de Vries <tdevries@suse.de>
6680
6681 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6682 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6683
97916bfe
SM
66842020-08-04 Simon Marchi <simon.marchi@efficios.com>
6685
6686 * frame.h (frame_id_p): Return bool.
6687 (frame_id_artificial_p): Return bool.
6688 (frame_id_eq): Return bool.
6689 (has_stack_frames): Return bool.
6690 (get_selected_frame): Fix typo in comment.
6691 (get_frame_pc_if_available): Return bool.
6692 (get_frame_address_in_block_if_available): Return bool.
6693 (get_frame_func_if_available): Return bool.
6694 (read_frame_register_unsigned): Return bool.
6695 (get_frame_register_bytes): Return bool.
6696 (safe_frame_unwind_memory): Return bool.
6697 (deprecated_frame_register_read): Return bool.
6698 (frame_unwinder_is): Return bool.
6699 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6700 bool.
6701 <this_id::p>: Likewise.
6702 <prev_p>: Likewise.
6703 (frame_stash_add): Return bool.
6704 (get_frame_id): Use bool.
6705 (frame_id_build_special) Use bool.
6706 (frame_id_build_unavailable_stack): Use bool.
6707 (frame_id_build): Use bool.
6708 (frame_id_p): Return bool, use true/false instead of 1/0.
6709 (frame_id_artificial_p): Likewise.
6710 (frame_id_eq): Likewise.
6711 (frame_id_inner): Likewise.
6712 (get_frame_func_if_available): Likewise.
6713 (read_frame_register_unsigned): Likewise.
6714 (deprecated_frame_register_read): Likewise.
6715 (get_frame_register_bytes): Likewise.
6716 (has_stack_frames): Likewise.
6717 (inside_main_func): Likewise.
6718 (inside_entry_func): Likewise.
6719 (get_frame_pc_if_available): Likewise.
6720 (get_frame_address_in_block_if_available): Likewise.
6721 (frame_unwinder_is): Likewise.
6722 (safe_frame_unwind_memory): Likewise.
6723 (frame_unwind_arch): Likewise.
6724
fedfee88
SM
67252020-08-04 Simon Marchi <simon.marchi@efficios.com>
6726
6727 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6728 type to cached_copy_status.
6729 (fprintf_frame): Adjust.
6730 (get_frame_func_if_available): Adjust.
6731 (frame_cleanup_after_sniffer): Adjust.
6732
6cfa9b59
MW
67332020-08-04 Mark Wielaard <mark@klomp.org>
6734
6735 * MAINTAINERS (Write After Approval): Update email address.
6736
66d6346b
SM
67372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6738
6739 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6740 dynamic_prop::const_val.
6741
8a6d5e35
SM
67422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6743
6744 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6745 dynamic_prop::kind.
6746
51d6067d
SM
67472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6748
6749 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6750
b26e2ae7
JM
67512020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6752
6753 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6754
39791af2
JM
67552020-08-04 Weimin Pan <weimin.pan@oracle.com>
6756 Jose E. Marchesi <jose.marchesi@oracle.com>
6757
6758 * configure.tgt: Add entry for bpf-*-*.
6759 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6760 (ALLDEPFILES): Add bpf-tdep.c.
6761 * bpf-tdep.c: New file.
6762 * MAINTAINERS: Add bpf target and maintainer.
6763 * NEWS: Mention the support for the new target.
6764
521894aa
TV
67652020-08-04 Tom de Vries <tdevries@suse.de>
6766
6767 PR symtab/23270
6768 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6769 Error.
6770
5d6356e9
JB
67712020-08-03 John Baldwin <jhb@FreeBSD.org>
6772
6773 * syscalls/freebsd.xml: Regenerate.
6774
0cf82b81
JB
67752020-08-03 John Baldwin <jhb@FreeBSD.org>
6776
6777 * syscalls/update-freebsd.sh: Fix usage and year range.
6778
8f34b746
TV
67792020-08-03 Tom de Vries <tdevries@suse.de>
6780
6781 PR symtab/26333
6782 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6783 DW_LNE_lo_user/DW_LNE_hi_user range.
6784
5e500d33
SM
67852020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6786
6787 PR ada/26318
6788 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6789 kind.
6790
78319c15
TBA
67912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6792
6793 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6794
4c55e970
TBA
67952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6796
6797 * breakpoint.c (set_breakpoint_condition): Update the condition
6798 expressions after checking that the input condition string parses
6799 successfully and does not contain junk at the end.
6800
1e620590
TBA
68012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6802
6803 * breakpoint.c (set_breakpoint_condition): Update the
6804 condition string after parsing the new condition successfully.
6805
c8693053
RO
68062020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6807
6808 * proc-api.c (_STRUCTURED_PROC): Don't define.
6809 * proc-events.c: Likewise.
6810 * proc-flags.c: Likewise.
6811 * proc-why.c: Likewise.
6812 * procfs.c: Likewise.
6813
6814 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6815 * configure, config.in: Regenerate.
6816
5a99adb8
TV
68172020-07-30 Tom de Vries <tdevries@suse.de>
6818
6819 PR build/26320
6820 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6821 m_red/m_green/m_blue in a union.
6822
8ba83e91
TV
68232020-07-29 Tom de Vries <tdevries@suse.de>
6824
6825 PR tdep/26280
6826 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6827
f75a0693
AB
68282020-07-28 Tom Tromey <tromey@adacore.com>
6829
6830 PR symtab/26270:
6831 * symtab.h (find_pc_partial_function_sym): Declare.
6832 * cli/cli-cmds.c (disassemble_command): Use
6833 find_pc_partial_function_sym. Check asm_demangle.
6834 * blockframe.c (cache_pc_function_sym): New global.
6835 (cache_pc_function_name): Remove.
6836 (clear_pc_function_cache): Update.
6837 (find_pc_partial_function_sym): New function, from
6838 find_pc_partial_function.
6839 (find_pc_partial_function): Rewrite using
6840 find_pc_partial_function_sym.
6841
16f3242c
TT
68422020-07-28 Tom Tromey <tromey@adacore.com>
6843
6844 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6845 help. Add usage.
6846
4888741a
TT
68472020-07-28 Tom Tromey <tromey@adacore.com>
6848
6849 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6850 <DW_OP_GNU_variable_value>: Cast to address type.
6851
4d46f402
KR
68522020-07-28 Kamil Rytarowski <n54@gmx.com>
6853
6854 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6855 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6856 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6857 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6858 (nbsd_get_siginfo_type): New.
6859 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6860 (_initialize_nbsd_tdep): New.
6861
d70f978b
L
68622020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6863
6864 PR binutils/26301
6865 * configure: Regenerated.
6866
377170fa
L
68672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6868
6869 PR binutils/26301
6870 * configure: Regenerated.
6871
43d5901d
AB
68722020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * python/py-frame.c: Remove 'user-regs.h' include.
6875 (frapy_read_register): Rewrite to make use of
6876 gdbpy_parse_register_id.
6877 * python/py-registers.c (gdbpy_parse_register_id): New function,
6878 moved here from python/py-unwind.c. Updated the return type, and
6879 also accepts register descriptor objects.
6880 * python/py-unwind.c: Remove 'user-regs.h' include.
6881 (pyuw_parse_register_id): Moved to python/py-registers.c.
6882 (unwind_infopy_add_saved_register): Update to use
6883 gdbpy_parse_register_id.
6884 (pending_framepy_read_register): Likewise.
6885 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6886
14fa8fb3
AB
68872020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6888
6889 * python/py-registers.c: Add 'user-regs.h' include.
6890 (register_descriptor_iter_find): New function.
6891 (register_descriptor_iterator_object_methods): New static global
6892 methods array.
6893 (register_descriptor_iterator_object_type): Add pointer to methods
6894 array.
6895
ddce1758
JB
68962020-07-27 John Baldwin <jhb@FreeBSD.org>
6897
6898 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6899 for all architectures on FreeBSD 11.3 and later.
6900
a4089f52
TT
69012020-07-27 Tom Tromey <tromey@adacore.com>
6902
6903 * gcore.h (load_corefile): Don't declare.
6904
95420d30
TV
69052020-07-27 Tom de Vries <tdevries@suse.de>
6906
6907 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6908 * config.in: Regenerate.
6909 * configure: Regenerate.
6910
05a6b8c2
EZ
69112020-07-26 Eli Zaretskii <eliz@gnu.org>
6912
6913 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6914 ws2tcpip.h. When checking whether socklen_t type is defined, use
6915 ws2tcpip.h if it is available and sys/socket.h isn't.
6916 * configure: Regenerate.
6917 * config.in: Regenerate.
6918
e79eb02f
AB
69192020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6920
6921 PR fortran/23051
6922 PR fortran/26139
6923 * valops.c (value_ind): Pass address to
6924 readjust_indirect_value_type.
6925 * value.c (readjust_indirect_value_type): Make parameter
6926 non-const, and add extra address parameter. Resolve original type
6927 before using it.
6928 * value.h (readjust_indirect_value_type): Update function
6929 signature and comment.
6930
876518dd
TV
69312020-07-25 Tom de Vries <tdevries@suse.de>
6932
6933 PR symtab/26243
6934 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6935 entries.
6936
f6720b1c
AM
69372020-07-24 Aaron Merey <amerey@redhat.com>
6938
6939 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6940 * configure: Rebuild.
6941
513487e1
KB
69422020-07-23 Kevin Buettner <kevinb@redhat.com>
6943
6944 PR corefiles/26294
6945 * corelow.c (_initialize_corelow): Add period to help text
6946 for "maintenance print core-file-backed-mappings".
6947
e7bc9db8
PA
69482020-07-23 Pedro Alves <pedro@palves.net>
6949
6950 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6951 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6952 meanwhile.
6953 * frame.c (frame_cache_generation, get_frame_cache_generation):
6954 New.
6955 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6956 (get_prev_frame_if_no_cycle): On exception, don't touch
6957 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6958 * frame.h (get_frame_cache_generation): Declare.
6959
90fcc466
TV
69602020-07-23 Tom de Vries <tdevries@suse.de>
6961
6962 PR tui/26282
6963 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6964 New default constructor.
6965
78344df7
AB
69662020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6967
6968 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6969 exclude non-statement entries.
6970
b089853a
KB
69712020-07-22 Kevin Buettner <kevinb@redhat.com>
6972
6973 * NEWS (New commands): Mention new command
6974 "maintenance print core-file-backed-mappings".
6975
09c2f5d4
KB
69762020-07-22 Kevin Buettner <kevinb@redhat.com>
6977
6978 * corelow.c (gdbcmd.h): Include.
6979 (core_target::info_proc_mappings): New method.
6980 (get_current_core_target): New function.
6981 (maintenance_print_core_file_backed_mappings): New function.
6982 (_initialize_corelow): Add core-file-backed-mappings to
6983 "maint print" commands.
6984
9c5ec5c2 69852020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6986
9c5ec5c2
KB
6987 * linux-tdep.c (dump_note_entry_p): New function.
6988 (linux_dump_mapping_p_ftype): New typedef.
6989 (linux_find_memory_regions_full): Add new parameter,
6990 should_dump_mapping_p.
6991 (linux_find_memory_regions): Adjust call to
6992 linux_find_memory_regions_full.
6993 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6994 call to linux_find_memory_regions_full.
6995
db082f59
KB
69962020-07-22 Kevin Buettner <kevinb@redhat.com>
6997
6998 * corelow.c (solist.h, unordered_map): Include.
6999 (class core_target): Add field m_core_file_mappings and
7000 method build_file_mappings.
7001 (core_target::core_target): Call build_file_mappings.
7002 (core_target::~core_target): Free memory associated with
7003 m_core_file_mappings.
7004 (core_target::build_file_mappings): New method.
7005 (core_target::xfer_partial): Use m_core_file_mappings
7006 for memory transfers.
7007 * linux-tdep.c (linux_read_core_file_mappings): New
7008 function.
7009 (linux_core_info_proc_mappings): Rewrite to use
7010 linux_read_core_file_mappings.
7011 (linux_init_abi): Register linux_read_core_file_mappings.
7012
7e183d27
KB
70132020-07-22 Kevin Buettner <kevinb@redhat.com>
7014
7015 * arch-utils.c (default_read_core_file_mappings): New function.
7016 * arch-utils.c (default_read_core_file_mappings): Declare.
7017 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7018 * gdbarch.h, gdbarch.c: Regenerate.
7019
2735d421
KB
70202020-07-22 Kevin Buettner <kevinb@redhat.com>
7021
7022 PR corefiles/25631
7023 * corelow.c (core_target:xfer_partial): Revise
7024 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7025 case after first checking the stratum beneath the core
7026 target.
7027 (has_all_memory): Return true.
7028 * target.c (raw_memory_xfer_partial): Revise comment
7029 regarding use of has_all_memory.
7030
e56cb451
KB
70312020-07-22 Kevin Buettner <kevinb@redhat.com>
7032
7033 * exec.h (section_table_xfer_memory): Revise declaration,
7034 replacing section name parameter with an optional callback
7035 predicate.
7036 * exec.c (section_table_xfer_memory): Likewise.
7037 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7038 of section_table_xfer_memory.
7039
32fa152e
TT
70402020-07-22 Tom Tromey <tromey@adacore.com>
7041
7042 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7043 lookup_symbol_search_name.
7044
a67a1c41
AB
70452020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7046
7047 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7048 redundant local variable.
7049 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7050 reference, not pointer, update code accordingly.
7051
a7b4ff4f
SM
70522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7053 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7054
7055 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7056 * jit.c (jit_breakpoint_re_set_internal): Use the
7057 `skip_jit_symbol_lookup` field.
7058
2340e834
SM
70592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7060 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7061
7062 * jit.c (jit_read_descriptor): Define the descriptor address once,
7063 use twice.
7064 (jit_breakpoint_deleted): Move the declaration of the loop variable
7065 `iter` into the loop header.
7066 (jit_breakpoint_re_set_internal): Move the declaration of the local
7067 variable `objf_data` to the first point of definition.
7068 (jit_event_handler): Move the declaration of local variables
7069 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7070 Rename `objf` to `jited`.
7071
c1072906
SM
70722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7073
7074 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7075 Remove.
7076 * jit.c (get_jiter_objfile_data): Update.
7077
c8474dc3
TBA
70782020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7079 Simon Marchi <simon.marchi@polymtl.ca>
7080
7081 * jit.c (struct jit_program_space_data): Remove.
7082 (jit_program_space_key): Remove.
7083 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7084 stuff.
7085 (get_jit_program_space_data): Remove.
7086 (jit_breakpoint_deleted): Iterate on all of the program space's
7087 objfiles.
7088 (jit_inferior_init): Likewise.
7089 (jit_breakpoint_re_set_internal): Likewise. Also change return
7090 type to void.
7091 (jit_breakpoint_re_set): Pass current_program_space to
7092 jit_breakpoint_re_set_internal.
7093
77208eb7
SM
70942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7095
7096 * jit.h (struct jiter_objfile_data) <cached_code_address,
7097 jit_breakpoint>: Move to here from ...
7098 * jit.c (jit_program_space_data): ... here.
7099 (jiter_objfile_data::~jiter_objfile_data): Update.
7100 (jit_breakpoint_deleted): Update.
7101 (jit_breakpoint_re_set_internal): Update.
7102
8c1c720f
SM
71032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7104
7105 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7106 checks.
7107 (jit_read_descriptor): Remove NULL check.
7108 (jit_event_handler): Add an assertion.
7109
0e74a041
SM
71102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7111
7112 * jit.h (struct jit_objfile_data): Split into...
7113 (struct jiter_objfile_data): ... this ...
7114 (struct jited_objfile_data): ... and this.
7115 * objfiles.h (struct objfile) <jit_data>: Remove.
7116 <jiter_data, jited_data>: New fields.
7117 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7118 (jiter_objfile_data::~jiter_objfile_data): ... this.
7119 (get_jit_objfile_data): Rename to ...
7120 (get_jiter_objfile_data): ... this.
7121 (add_objfile_entry): Update.
7122 (jit_read_descriptor): Use get_jiter_objfile_data.
7123 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7124 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7125 (jit_inferior_exit_hook): Use objfile's jited_data field.
7126
238b5c9f
SM
71272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7128
7129 * jit.h: Forward-declare `struct minimal_symbol`.
7130 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7131 constructor, destructor, and an objfile* field.
7132 * jit.c (jit_objfile_data): Remove.
7133 (struct jit_objfile_data): Migrate from here to jit.h.
7134 (jit_objfile_data::~jit_objfile_data): New destructor
7135 implementation with code moved from free_objfile_data.
7136 (free_objfile_data): Delete.
7137 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7138 (jit_find_objf_with_entry_addr): Ditto.
7139 (jit_inferior_exit_hook): Ditto.
7140 (_initialize_jit): Remove the call to
7141 register_objfile_data_with_cleanup.
7142 * objfiles.h (struct objfile) <jit_data>: New field.
7143
fe053b9e
TBA
71442020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7145
7146 * jit.h: Forward-declare `struct objfile`.
7147 (jit_event_handler): Add a second parameter, the JITer objfile.
7148 * jit.c (jit_read_descriptor): Change the signature to take the
7149 JITer objfile as an argument instead of the jit_program_space_data.
7150 (jit_inferior_init): Update the call to jit_read_descriptor.
7151 (jit_event_handler): Use the new JITer objfile argument when calling
7152 jit_read_descriptor.
7153 * breakpoint.c (handle_jit_event): Update the call to
7154 jit_event_handler to pass the JITer objfile.
7155
4cec0c66
JB
71562020-07-21 John Baldwin <jhb@FreeBSD.org>
7157
7158 * gdbarch.c: Regenerate.
7159 * gdbarch.h: Regenerate.
7160 * gdbarch.sh (handle_segmentation_fault): Remove method.
7161 * infrun.c (handle_segmentation_fault): Remove.
7162 (print_signal_received_reason): Remove call to
7163 handle_segmentation_fault.
7164
0e42f66a
JB
71652020-07-21 John Baldwin <jhb@FreeBSD.org>
7166
7167 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7168 Rename to sparc64_linux_report_signal_info and add siggnal
7169 argument.
7170 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7171 instead of sparc64_linux_handle_segmentation_fault.
7172
77bdfeb2
JB
71732020-07-21 John Baldwin <jhb@FreeBSD.org>
7174
7175 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7176 i386_linux_report_signal_info instead of
7177 i386_linux_handle_segmentation_fault.
7178 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7179 to i386_linux_report_signal_info and add siggnal argument.
7180 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7181 of i386_linux_handle_segmentation_fault.
7182 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7183 to i386_linux_report_signal_info and add siggnal argument.
7184
ad97bfc5
JB
71852020-07-21 John Baldwin <jhb@FreeBSD.org>
7186
7187 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7188 hook if present.
7189
272bb05c
JB
71902020-07-21 John Baldwin <jhb@FreeBSD.org>
7191
7192 * gdbarch.c: Regenerate.
7193 * gdbarch.h: Regenerate.
7194 * gdbarch.sh (report_signal_info): New method.
7195 * infrun.c (print_signal_received_reason): Invoke gdbarch
7196 report_signal_info hook if present.
7197
baf8791e
AB
71982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7199
7200 * python/py-registers.c : Add 'unordered_map' include.
7201 (gdbpy_new_reggroup): Renamed to...
7202 (gdbpy_get_reggroup): ...this. Update to only create register
7203 group descriptors when needed.
7204 (gdbpy_reggroup_iter_next): Update.
7205
f7306dac
AB
72062020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7207
7208 * python/py-registers.c (gdbpy_register_object_data): New static
7209 global.
7210 (gdbpy_register_object_data_init): New function.
7211 (gdbpy_new_register_descriptor): Renamed to...
7212 (gdbpy_get_register_descriptor): ...this, and update to reuse
7213 existing register descriptors where possible.
7214 (gdbpy_register_descriptor_iter_next): Update.
7215 (gdbpy_initialize_registers): Register new gdbarch data.
7216
05c309a8
SM
72172020-07-21 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * linux-nat.c (stopped_pids): Make static.
7220
d1fd641e
SM
72212020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7222
7223 PR ada/26235
7224 * gdbtypes.c (ada_discrete_type_low_bound,
7225 ada_discrete_type_high_bound): Handle undefined bounds.
7226
1de14d77
KR
72272020-07-21 Kamil Rytarowski <n54@gmx.com>
7228
7229 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7230 declaration.
7231 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7232 function.
7233
ed810cc7
JB
72342020-07-20 John Baldwin <jhb@FreeBSD.org>
7235
7236 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7237 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7238 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7239 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7240 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7241 method.
7242
ae5369e7
LC
72432020-07-20 Ludovic Courtès <ludo@gnu.org>
7244
7245 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7246 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7247 which are deprecated in Guile 3.0.
7248 * configure.ac (try_guile_versions): Add "guile-3.0".
7249 * configure (try_guile_versions): Regenerate.
7250 * NEWS: Update entry.
7251
68cf161c
LC
72522020-07-20 Ludovic Courtès <ludo@gnu.org>
7253 Doug Evans <dje@google.com>
7254
7255 PR gdb/21104
7256 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7257 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7258 USING_GUILE_BEFORE_2_2.
7259 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7260 Change type to 'scm_t_port_type *'.
7261 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7262 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7263 parameter and honor it. Update callers.
7264 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7265 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7266 functions.
7267 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7268 USING_GUILE_BEFORE_2_2.
7269 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7270 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7271 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7272 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7273 and 'SCM_PORT_TYPE'.
7274 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7275 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7276 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7277 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7278 [!USING_GUILE_BEFORE_2_2]: New functions.
7279 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7280 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7281 'gdbscm_memory_port_read'.
7282 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7283 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7284 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7285 function.
7286 (ioscm_init_memory_port): Remove.
7287 (ioscm_init_memory_port_stream): New function
7288 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7289 function.
7290 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7291 Return scm_from_uint (0).
7292 (gdbscm_set_memory_port_read_buffer_size_x)
7293 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7294 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7295 Return scm_from_uint (0).
7296 (gdbscm_set_memory_port_write_buffer_size_x)
7297 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7298 * configure.ac (try_guile_versions): Add "guile-2.2".
7299 * configure: Regenerate.
7300 * NEWS: Add entry.
7301
aee91db3
TT
73022020-07-18 Tom Tromey <tom@tromey.com>
7303
7304 * linux-nat.c (linux_multi_process): Remove.
7305 (linux_nat_target::supports_multi_process): Return true.
7306
0e267416
AB
73072020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7308
7309 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7310 (riscv_lookup_target_description): Return pointer out of
7311 unique_ptr.
7312 * target-descriptions.c (allocate_target_description): Add
7313 comment.
7314 (target_desc_deleter::operator()): Likewise.
7315 * target-descriptions.h (struct target_desc_deleter): Moved to
7316 gdbsupport/tdesc.h.
7317 (target_desc_up): Likewise.
7318
f80c8ec4
TT
73192020-07-17 Tom Tromey <tromey@adacore.com>
7320
7321 * linux-nat.c (linux_nat_target::supports_non_stop)
7322 (linux_nat_target::always_non_stop_p): Use "true".
7323 (linux_nat_target::supports_disable_randomization): Use "true" and
7324 "false".
7325
d0ce17d8
CT
73262020-07-16 Caroline Tice <cmtice@google.com>
7327
7328 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7329 (RNGLIST_HEADER_SIZE64): New constant definition.
7330 (struct dwop_section_names): Add rnglists_dwo.
7331 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7332 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7333 (struct dwo_sections): Add rnglists field.
7334 (read_attribut_reprocess): Add tag parameter.
7335 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7336 (cu_debug_rnglists_section): New function (decl & definition).
7337 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7338 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7339 die whose range is being checked; get rnglist section from
7340 cu_debug_rnglists_section, to get from either objfile or dwo file as
7341 appropriate. Add cases for DW_RLE_base_addressx,
7342 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7343 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7344 test inside if-condition and updating complaint message.
7345 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7346 dwarf2_rnglists_process.
7347 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7348 dwarf2_ranges_process.
7349 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7350 need_ranges_base and update comment appropriately. Also pass die tag
7351 to dwarf2_ranges_read.
7352 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7353 need_ranges_base and update comment appropriately. Also pass die tag
7354 to dwarf2_ranges_process.
7355 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7356 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7357 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7358 need_ranges_base and update comment appropriately. Also pass die tag
7359 to read_attribute_reprocess and dwarf2_ranges_read.
7360 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7361 and update function comment appropriately.
7362 (read_loclist_index): Call read_loclists_rnglists_header instead of
7363 read_loclist_header.
7364 (read_rnglist_index): New function.
7365 (read_attribute_reprocess): Add tag parameter. Add code for
7366 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7367 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7368
3dcc261c
AB
73692020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7370
7371 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7372 being resolved.
7373
ccb9eba6
AB
73742020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7375
7376 * arch-utils.c (show_architecture): Update formatting of messages.
7377
cf88be68
SM
73782020-07-12 Simon Marchi <simon.marchi@efficios.com>
7379
7380 * gdbtypes.h (struct type) <bounds>: Handle array and string
7381 types.
7382 * ada-lang.c (assign_aggregate): Use type::bounds on
7383 array/string type.
7384 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7385 * c-varobj.c (c_number_of_children): Likewise.
7386 (c_describe_child): Likewise.
7387 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7388 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7389 (f_type_print_base): Likewise.
7390 * f-valprint.c (f77_array_offset_tbl): Likewise.
7391 (f77_get_upperbound): Likewise.
7392 (f77_print_array_1): Likewise.
7393 * guile/scm-type.c (gdbscm_type_range): Likewise.
7394 * m2-typeprint.c (m2_array): Likewise.
7395 (m2_is_long_set_of_type): Likewise.
7396 * m2-valprint.c (get_long_set_bounds): Likewise.
7397 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7398 * python/py-type.c (typy_range): Likewise.
7399 * rust-lang.c (rust_internal_print_type): Likewise.
7400 * type-stack.c (type_stack::follow_types): Likewise.
7401 * valarith.c (value_subscripted_rvalue): Likewise.
7402 * valops.c (value_cast): Likewise.
7403
509971ae
SM
74042020-07-12 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7407 callers to use the equivalent accessor methods.
7408
107406b7
SM
74092020-07-12 Simon Marchi <simon.marchi@efficios.com>
7410
7411 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7412 (struct type) <bit_stride>: New method.
7413 (TYPE_BIT_STRIDE): Remove.
7414 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7415
bb789949
SM
74162020-07-12 Simon Marchi <simon.marchi@efficios.com>
7417
7418 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7419 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7420 callers to use the equivalent accessor methods instead.
7421
39498edb
SM
74222020-07-12 Simon Marchi <simon.marchi@efficios.com>
7423
7424 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7425 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7426 callers to use the equivalent accessor methods instead.
7427
3b606f38
SM
74282020-07-12 Simon Marchi <simon.marchi@efficios.com>
7429
7430 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7431 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7432 to use dynamic_prop::kind.
7433
064d9cb9
SM
74342020-07-12 Simon Marchi <simon.marchi@efficios.com>
7435
7436 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7437 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7438 to get the bound property's kind and check against
7439 PROP_UNDEFINED.
7440
5537ddd0
SM
74412020-07-12 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7444 all callers to use type::range_bounds followed by
7445 dynamic_prop::{low,high}.
7446
8c2e4e06
SM
74472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7448
7449 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7450 const_val, set_const_val, baton, set_locexpr, set_loclist,
7451 set_addr_offset, variant_parts, set_variant_parts,
7452 original_type, set_original_type>: New methods.
7453 <kind>: Rename to...
7454 <m_kind>: ... this. Update all users to use the new methods
7455 instead.
7456 <data>: Rename to...
7457 <m_data>: ... this. Update all users to use the new methods
7458 instead.
7459
7c6f2712
SM
74602020-07-12 Simon Marchi <simon.marchi@efficios.com>
7461
7462 * gdbtypes.c (get_discrete_bounds): Return failure if
7463 the range type's bounds are not both defined and constant
7464 values.
7465 (get_array_bounds): Update comment. Remove undefined bound check.
7466
599088e3
SM
74672020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7468
7469 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7470 the type::bounds method directly.
7471
c4dfcb36
SM
74722020-07-12 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7475 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7476 are used to set the range type's bounds to use set_bounds.
7477
0a278aa7
PW
74782020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7479
7480 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7481
cce20f10
PA
74822020-07-10 Pedro Alves <pedro@palves.net>
7483
7484 * gdbthread.h (inferior_ref): Define.
7485 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7486 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7487 * thread.c
7488 (scoped_restore_current_thread::restore):
7489 Adjust to gdb::ref_ptr.
7490 (scoped_restore_current_thread::~scoped_restore_current_thread):
7491 Remove manual decref handling.
7492 (scoped_restore_current_thread::scoped_restore_current_thread):
7493 Adjust to use
7494 inferior_ref::new_reference/thread_info_ref::new_reference.
7495 Incref the thread before calling get_frame_id instead of after.
7496 Let TARGET_CLOSE_ERROR propagate.
7497
6d7aa592
PA
74982020-07-10 Pedro Alves <pedro@palves.net>
7499
7500 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7501 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7502 NOT_AVAILABLE_ERROR.
7503 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7504 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7505
b3e3a4c1
SM
75062020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7507 Pedro Alves <pedro@palves.net>
7508
7509 PR gdb/26199
7510 * infrun.c (threads_are_resumed_pending_p): Delete.
7511 (do_target_wait): Remove threads_are_executing and
7512 threads_are_resumed_pending_p checks from the inferior_matches
7513 lambda. Update comments.
7514
d6cc5d98
PA
75152020-07-10 Pedro Alves <pedro@palves.net>
7516
7517 PR gdb/26199
7518 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7519 executing threads.
7520
7d3badc6
PA
75212020-07-10 Pedro Alves <pedro@palves.net>
7522
7523 PR gdb/26199
7524 * infrun.c (handle_no_resumed): Handle multiple targets.
7525
42bd97a6
PA
75262020-07-10 Pedro Alves <pedro@palves.net>
7527
7528 PR gdb/26199
7529 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7530 target_is_async_p.
7531
43667cc6
PA
75322020-07-10 Pedro Alves <pedro@palves.net>
7533
7534 PR gdb/26199
7535 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7536 threads, not all threads.
7537
96118d11
PA
75382020-07-10 Pedro Alves <pedro@palves.net>
7539
7540 PR gdb/26199
7541 * remote.c (remote_target::open_1): Pass remote target pointer as
7542 data to create_async_event_handler.
7543 (remote_async_inferior_event_handler): Mark async event handler
7544 before returning if the remote target still has either pending
7545 events or unacknowledged notifications.
7546
54904d81
JB
75472020-07-10 John Baldwin <jhb@FreeBSD.org>
7548
7549 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7550 declaration.
7551 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7552 function.
7553
f37e5866
JB
75542020-07-09 John Baldwin <jhb@FreeBSD.org>
7555
7556 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7557 inferior_ptid.
7558
fc238d4a
JB
75592020-07-09 John Baldwin <jhb@FreeBSD.org>
7560
7561 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7562 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7563 AT_FREEBSD_PS_STRINGS.
7564
6e2469ff
HD
75652020-07-08 Hannes Domani <ssbssa@yahoo.de>
7566
7567 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7568 of debugfile path on Windows.
7569
d1076c41
JB
75702020-07-08 John Baldwin <jhb@FreeBSD.org>
7571
7572 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7573 argument to 'data'.
7574
15f3b077
TT
75752020-07-08 Tom Tromey <tromey@adacore.com>
7576
7577 * ada-lang.c (ada_exception_message_1): Use read_memory.
7578
9fc501fd
AB
75792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7580
7581 PR python/22748
7582 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7583 special handling for inline frames.
7584 * findvar.c (value_of_register_lazy): Skip inline frames when
7585 creating lazy register values.
7586 * frame.c (frame_id_computed_p): Delete definition.
7587 * frame.h (frame_id_computed_p): Delete declaration.
7588
64cb3757
AB
75892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7590
7591 * NEWS: Mention additions to Python API.
7592 * python/py-arch.c (archpy_register_groups): New function.
7593 (arch_object_methods): Add 'register_groups' method.
7594 * python/py-registers.c (reggroup_iterator_object): New struct.
7595 (reggroup_object): New struct.
7596 (gdbpy_new_reggroup): New function.
7597 (gdbpy_reggroup_to_string): New function.
7598 (gdbpy_reggroup_name): New function.
7599 (gdbpy_reggroup_iter): New function.
7600 (gdbpy_reggroup_iter_next): New function.
7601 (gdbpy_new_reggroup_iterator): New function
7602 (gdbpy_initialize_registers): Register new types.
7603 (reggroup_iterator_object_type): Define new Python type.
7604 (gdbpy_reggroup_getset): New static global.
7605 (reggroup_object_type): Define new Python type.
7606 * python/python-internal.h
7607
0f767f94
AB
76082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7609
7610 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7611 * python/py-arch.c (archpy_registers): New function.
7612 (arch_object_methods): Add 'registers' method.
7613 * python/py-registers.c: New file.
7614 * python/python-internal.h
7615 (gdbpy_new_register_descriptor_iterator): Declare.
7616 (gdbpy_initialize_registers): Declare.
7617 * python/python.c (do_start_initialization): Call
7618 gdbpy_initialize_registers.
7619 * NEWS: Mention additions to the Python API.
7620
87dbc774
AB
76212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7622
7623 * NEWS: Mention new Python API method.
7624 * python/py-unwind.c (pending_framepy_architecture): New function.
7625 (pending_frame_object_methods): Add architecture method.
7626
3bc98c0c
AB
76272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7628
7629 * gdbarch.c: Regenerate.
7630 * gdbarch.h: Regenerate.
7631 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7632 (gdbarch_data): Use internal_error for the case where
7633 deprecated_set_gdbarch_data was originally needed.
7634 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7635 and use passed in obstack.
7636 (libunwind_frame_set_descr): Should no longer get back NULL from
7637 gdbarch_data.
7638 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7639 type.
7640 * user-regs.c (user_regs_init): Update parameters, and use passed
7641 in obstack.
7642 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7643 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7644
d8cc8af6
TV
76452020-07-06 Tom de Vries <tdevries@suse.de>
7646
7647 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7648 End-Of-Sequence in lte_is_less_than.
7649 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7650 "gdb: Don't reorder line table entries too much when sorting".
7651
947f7597
TV
76522020-07-06 Tom de Vries <tdevries@suse.de>
7653
7654 PR tui/26205
7655 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7656
1e7c1b22
TV
76572020-07-05 Tom de Vries <tdevries@suse.de>
7658
7659 PR build/26187
7660 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7661 std::uncaught_exceptions instead of deprecated
7662 std::uncaught_exception.
7663
a36158ec
SM
76642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7665
7666 * macroexp.h (macro_stringify): Return
7667 gdb::unique_xmalloc_ptr<char>.
7668 * macroexp.c (macro_stringify): Likewise.
7669 * macrotab.c (fixup_definition): Update.
7670
14d960c8
SM
76712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7672
7673 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7674 (lex_one_token): Update.
7675 * macroexp.c (struct macro_buffer) <release>: Return
7676 gdb::unique_xmalloc_ptr<char>.
7677 (macro_stringify): Update.
7678 (macro_expand): Update.
7679 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7680 * macroexp.h (macro_expand_next): Likewise.
7681
211d5b1c
SM
76822020-07-02 Simon Marchi <simon.marchi@efficios.com>
7683
7684 * macroexp.h (macro_lookup_ftype): Remove.
7685 (macro_expand, macro_expand_once, macro_expand_next): Remove
7686 lookup function parameters, add scope parameter.
7687 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7688 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7689 * macroscope.h (standard_macro_lookup): Change parameter type
7690 to macro_scope.
7691 * macroscope.c (standard_macro_lookup): Likewise.
7692 * c-exp.y (lex_one_token): Update.
7693 * macrocmd.c (macro_expand_command): Likewise.
7694 (macro_expand_once_command): Likewise.
7695
b1a35af2
SM
76962020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7697
7698 * inf-loop.c (inferior_event_handler): Remove client_data param.
7699 * inf-loop.h (inferior_event_handler): Likewise.
7700 * infcmd.c (step_1): Adjust.
7701 * infrun.c (proceed): Adjust.
7702 (fetch_inferior_event): Remove client_data param.
7703 (infrun_async_inferior_event_handler): Adjust.
7704 * infrun.h (fetch_inferior_event): Remove `void *` param.
7705 * linux-nat.c (handle_target_event): Adjust.
7706 * record-btrace.c (record_btrace_handle_async_inferior_event):
7707 Adjust.
7708 * record-full.c (record_full_async_inferior_event_handler):
7709 Adjust.
7710 * remote.c (remote_async_inferior_event_handler): Adjust.
7711
1cdf9e33
TT
77122020-07-01 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7715 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7716
32c1e210
TT
77172020-07-01 Tom Tromey <tom@tromey.com>
7718
7719 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7720 tui_gen_win_info.
7721 (tui_win_info::make_window): Merge with
7722 tui_gen_win_info::make_window.
7723 (tui_win_info::make_visible): Move from tui_gen_win_info.
7724 * tui/tui-win.c (tui_win_info::max_width): Move from
7725 tui_gen_win_info.
7726 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7727 type.
7728 <window_factory>: Likewise.
7729 * tui/tui-layout.c (tui_win_info::resize): Move from
7730 tui_gen_win_info.
7731 (make_standard_window): Change return type.
7732 (get_locator_window, tui_get_window_by_name): Likewise.
7733 (tui_layout_window::apply): Remove a cast.
7734 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7735 (struct tui_win_info): Merge with tui_gen_win_info.
7736 (struct tui_gen_win_info): Remove.
7737
a30cb6da
TT
77382020-07-01 Tom Tromey <tom@tromey.com>
7739
7740 * tui/tui-stack.h (struct tui_locator_window): Derive from
7741 tui_win_info.
7742 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7743 <can_box>: New method.
7744
1eb2161f
TT
77452020-07-01 Tom Tromey <tom@tromey.com>
7746
7747 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7748
7134f2eb
TT
77492020-07-01 Tom Tromey <tom@tromey.com>
7750
7751 * tui/tui-regs.c (tui_data_window::display_registers_from)
7752 (tui_data_window::display_registers_from)
7753 (tui_data_window::first_data_item_displayed)
7754 (tui_data_window::delete_data_content_windows): Update.
7755 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7756 Remove.
7757 (tui_data_window::check_register_values): Update.
7758 (tui_data_item_window::rerender): Add parameters. Update.
7759 (tui_data_item_window::refresh_window): Remove.
7760 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7761 virtual.
7762 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7763 tui_gen_win_info.
7764 <refresh_window, max_height, min_height>: Remove.
7765 <rerender>: Add parameters.
7766 <x, y, visible>: New members.
7767 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7768 <m_item_width>: New member.
7769
22b7b041
TT
77702020-07-01 Tom Tromey <tom@tromey.com>
7771
7772 * tui/tui-regs.c (tui_data_window::show_register_group)
7773 (tui_data_window::check_register_values): Update.
7774 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7775 from item_no.
7776
c9753adb
TT
77772020-07-01 Tom Tromey <tom@tromey.com>
7778
7779 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7780 useless "if".
7781
9ab26b4a
TT
77822020-07-01 Tom Tromey <tom@tromey.com>
7783
7784 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7785 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7786
e555083f
TT
77872020-07-01 Tom Tromey <tom@tromey.com>
7788
7789 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7790 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7791 (struct tui_line_or_address): Move from tui-data.h.
7792 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7793 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7794 (tui_cmd_window, tui_source_window_base, tui_source_window)
7795 (tui_disasm_window): Don't declare.
7796 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7797 to tui-winsource.h.
7798 (SINGLE_KEY): Move to tui-stack.c.
7799
7a02bab7
TT
78002020-07-01 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7803 std::string.
7804 * tui/tui-regs.c (class tab_expansion_file): New.
7805 (tab_expansion_file::write): New method.
7806 (tui_register_format): Change return type. Use
7807 tab_expansion_file.
7808 (tui_get_register, tui_data_window::display_registers_from)
7809 (tui_data_item_window::rerender): Update.
7810 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7811 * tui/tui-io.c (tui_expand_tabs): Remove.
7812
ea68593b
TT
78132020-07-01 Tom Tromey <tom@tromey.com>
7814
7815 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7816
a8caed5d
FS
78172020-07-01 Fangrui Song <maskray@google.com>
7818
7819 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7820
9cdf9820
AKS
78212020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7822
7823 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7824 forms for DW_AT_associated and DW_AT_allocated attributes,
7825 which is already checked in function attr_to_dynamic_prop.
7826
a1520ad8
TT
78272020-06-30 Tom Tromey <tromey@adacore.com>
7828
7829 * dwarf2/read.c (quirk_rust_enum): Correctly call
7830 alloc_rust_variant for default-less enum.
7831
5ac58899
TT
78322020-06-30 Tom Tromey <tromey@adacore.com>
7833
7834 PR build/26183:
7835 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7836 gdb::to_string.
7837
19b187a9
SM
78382020-06-29 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7841 * gdbarch.h: Re-generate.
7842
cd4c4c07
TT
78432020-06-28 Tom Tromey <tom@tromey.com>
7844
7845 * command.h (cmd_types): Remove.
7846 (cmd_type): Don't declare.
7847 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7848 typedef.
7849 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7850 * cli/cli-decode.c (cmd_type): Remove.
7851
05779d57
PA
78522020-06-27 Pedro Alves <palves@redhat.com>
7853
7854 * fork-child.c (prefork_hook): Adjust.
7855 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7856 Delete.
7857 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7858 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7859 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7860 Remove declarations.
7861 (struct inferior) <set_tty, tty>: New methods.
7862 (struct inferior) <terminal>: Rename to ...
7863 (struct inferior) <m_terminal>: ... this and make private.
7864 * main.c (captured_main_1): Adjust.
7865 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7866 (mi_cmd_inferior_tty_show): Adjust.
7867 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7868 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7869
1776e3e5
NA
78702020-06-26 Nick Alcock <nick.alcock@oracle.com>
7871
7872 * configure.ac: Add --enable-libctf: handle --disable-static
7873 properly.
7874 * acinclude.m4: sinclude ../config/enable.m4.
7875 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7876 (LIBCTF): Substitute in.
7877 (CTF_DEPS): New, likewise.
7878 (CLIBS): libctf needs symbols from libbfd: move earlier.
7879 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7880 flags.
7881 * ctfread.c: Surround in ENABLE_LIBCTF.
7882 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7883 * configure: Regenerate.
7884 * config.in: Likewise.
7885
58373b80
SM
78862020-06-25 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7889
277474ee
SM
78902020-06-25 Simon Marchi <simon.marchi@efficios.com>
7891
7892 * inferior.h (struct inferior) <terminal>: Change type to
7893 gdb::unique_xmalloc_ptr<char>.
7894 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7895 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7896 field, adjust to unique pointer.
7897 (get_inferior_io_terminal): Adjust to unique pointer.
7898
6d74da72
AB
78992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7900
7901 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7902 registers, not just the known core set of registers.
7903
2e52d038
AB
79042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7905
7906 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7907 fflags, frm, and fcsr registers.
7908 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7909 restore groups.
7910 (riscv_tdesc_unknown_reg): New function.
7911 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7912 tdesc_use_registers.
7913 * riscv-tdep.h (struct gdbarch_tdep): Add
7914 unknown_csrs_first_regnum, unknown_csrs_count,
7915 duplicate_fflags_regnum, duplicate_frm_regnum, and
7916 duplicate_fcsr_regnum fields.
7917
be64fd07
AB
79182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7919
7920 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7921 callback, use the callback (when not null) to help number unknown
7922 registers.
7923 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7924 (tdesc_use_registers): Add extra parameter to declaration.
7925
3b9fce96
AB
79262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7929 in the file.
7930 (class riscv_pending_register_alias): Likewise.
7931 (riscv_register_feature::register_info): Change 'required_p' field
7932 to 'required', and change its type. Add 'check' member function.
7933 (riscv_register_feature::register_info::check): Define new member
7934 function.
7935 (riscv_xreg_feature): Change initialisation of 'required' field.
7936 (riscv_freg_feature): Likewise.
7937 (riscv_virtual_feature): Likewise.
7938 (riscv_csr_feature): Likewise.
7939 (riscv_check_tdesc_feature): Take extra parameter, the csr
7940 tdesc_feature, rewrite the function to use the new
7941 riscv_register_feature::register_info::check function.
7942 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7943
865bad26
AB
79442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7945
7946 * features/Makefile: Remove all references to the deleted files
7947 below.
7948 * features/riscv/32bit-csr.c: Deleted.
7949 * features/riscv/32bit-csr.xml: Deleted.
7950 * features/riscv/64bit-csr.c: Deleted.
7951 * features/riscv/64bit-csr.xml: Deleted.
7952 * features/riscv/rebuild-csr-xml.sh: Deleted.
7953
ed69cbc8
AB
79542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7955
7956 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7957 whitespace error for declaration of names member variable.
7958 (struct riscv_register_feature): Add new prefer_first_name member
7959 variable, and fix whitespace error in declaration of registers.
7960 (riscv_xreg_feature): Initialize prefer_first_name field.
7961 (riscv_freg_feature): Likewise.
7962 (riscv_virtual_feature): Likewise.
7963 (riscv_csr_feature): Likewise.
7964 (riscv_register_name): Expand on comments. Remove register name
7965 modifications for CSR and virtual registers.
7966
4445e8f5
AB
79672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7968
7969 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7970 errors.
7971
767a879e
AB
79722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7973
7974 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7975 riscv-opc.h.
7976 (class riscv_pending_register_alias): New class.
7977 (riscv_check_tdesc_feature): Take vector of pending aliases and
7978 populate it as appropriate.
7979 (riscv_setup_register_aliases): Delete.
7980 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7981 to riscv_check_tdesc_feature in all cases. Use the vector to
7982 create the register aliases.
7983
bb6e55f3
RO
79842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7985
7986 * sol2-tdep.c (sol2_static_transform_name): Remove.
7987 (sol2_init_abi): Don't register it.
7988 * gdbarch.sh (static_transform_name): Remove.
7989 * gdbarch.c, gdbarch.h: Regenerate.
7990
7991 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7992 gdbarch_static_transform_name.
7993 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7994 * stabsread.c (define_symbol) <'X'>: Remove.
7995 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7996 handling.
7997 <'V'>: Likewise.
7998 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7999 <'S'>: Remove call to gdbarch_static_transform_name.
8000
c6d36836
RO
80012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8002
8003 * procfs.c (procfs_pre_trace): New function.
8004 (procfs_target::create_inferior): Pass it to fork_inferior.
8005
a7e6196b
RO
80062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8007
8008 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8009 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8010 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8011 sol2-tdep.o, sparc-sol2-tdep.o.
8012 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8013 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8014 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8015 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8016
d412e696
RO
80172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8018
8019 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8020 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8021 Call sol2_init_abi.
8022 Remove calls to set_gdbarch_skip_solib_resolver,
8023 set_gdbarch_core_pid_to_str.
8024 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8025 (i386_sol2_static_transform_name): Remove.
8026 (i386_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 Use sol2_sigtramp_p.
8031 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8032 (sol2_sigtramp_p): New function.
8033 (sol2_static_transform_name): New function.
8034 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8035 (sol2_init_abi): New function.
8036 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8037 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8038 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8039 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8040 (sparc_sol2_static_transform_name): Remove.
8041 (sparc32_sol2_init_abi): Call sol2_init_abi.
8042 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8043 set_gdbarch_static_transform_name,
8044 set_gdbarch_skip_solib_resolver,
8045 set_gdbarch_core_pid_to_str.
8046 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8047 (sparc_sol2_static_transform_name): Remove
8048 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8049 call sol2_sigtramp_p.
8050 (sparc64_sol2_init_abi): Call sol2_init_abi.
8051 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8052 set_gdbarch_static_transform_name,
8053 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8054
a8654e7d
PW
80552020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8056
8057 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8058 * exec.c (validate_exec_file): If from_tty, set both
8059 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8060 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8061 and from_tty, unconditionally ask a confirmation.
8062
caa7fd04
AB
80632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8064
8065 * target-descriptions.c (tdesc_architecture_name): Protect against
8066 NULL pointer dereference.
8067 (maint_print_xml_tdesc_cmd): New function.
8068 (_initialize_target_descriptions): Register new 'maint print
8069 xml-tdesc' command and give it the filename completer.
8070 * NEWS: Mention new 'maint print xml-tdesc' command.
8071
fbf42f4e
AB
80722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8073
8074 * target-descriptions.c (class tdesc_compatible_info): New class.
8075 (struct target_desc): Change type of compatible vector.
8076 (tdesc_compatible_p): Update for change in type of
8077 target_desc::compatible.
8078 (tdesc_compatible_info_list): New function.
8079 (tdesc_compatible_info_arch_name): New function.
8080 (tdesc_add_compatible): Update for change in type of
8081 target_desc::compatible.
8082 (print_c_tdesc::visit_pre): Likewise.
8083
20821f4e
AB
80842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8085
8086 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8087 whitespace to underscore.
8088 (maint_print_c_tdesc_cmd): Use fake filename for target
8089 descriptions that came from the target.
8090 (_initialize_target_descriptions): Add filename command completion
8091 for 'maint print c-tdesc'.
8092
1fb5ee62
SM
80932020-06-23 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8096 lines.
8097
fc3ecb3e
SM
80982020-06-23 Simon Marchi <simon.marchi@efficios.com>
8099
8100 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8101 lines.
8102 (dwarf2_find_location_expression): Likewise.
8103 (call_site_parameter_matches): Likewise.
8104 (dwarf2_compile_expr_to_ax): Likewise.
8105 (disassemble_dwarf_expression): Likewise.
8106 (loclist_describe_location): Likewise.
8107
236ef034
PA
81082020-06-23 Pedro Alves <palves@redhat.com>
8109
8110 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8111 progspace-and-thread.h. Include scoped-mock-context.h instead.
8112 (register_to_value_test): Use scoped_mock_context.
8113 * regcache.c: Include "scoped-mock-context.h".
8114 (cooked_read_test): Don't error out if a target is already pushed.
8115 Use scoped_mock_context. Adjust.
8116 * scoped-mock-context.h: New file.
8117
39e7ecca
AB
81182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8119
8120 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8121 initializer.
8122 (ada_language::is_string_type_p): New member function.
8123 * c-lang.c (c_language_data): Delete la_is_string_type_p
8124 initializer.
8125 (cplus_language_data): Likewise.
8126 (asm_language_data): Likewise.
8127 (minimal_language_data): Likewise.
8128 * d-lang.c (d_language_data): Likewise.
8129 * f-lang.c (f_is_string_type_p): Delete function, implementation
8130 moved to f_language::is_string_type_p.
8131 (f_language_data): Delete la_is_string_type_p initializer.
8132 (f_language::is_string_type_p): New member function,
8133 implementation from f_is_string_type_p.
8134 * go-lang.c (go_is_string_type_p): Delete function, implementation
8135 moved to go_language::is_string_type_p.
8136 (go_language_data): Delete la_is_string_type_p initializer.
8137 (go_language::is_string_type_p): New member function,
8138 implementation from go_is_string_type_p.
8139 * language.c (language_defn::is_string_type_p): Define new member
8140 function.
8141 (default_is_string_type_p): Make static, add comment copied from
8142 header file.
8143 (unknown_language_data): Delete la_is_string_type_p initializer.
8144 (unknown_language::is_string_type_p): New member function.
8145 (auto_language_data): Delete la_is_string_type_p initializer.
8146 (auto_language::is_string_type_p): New member function.
8147 * language.h (language_data): Delete la_is_string_type_p field.
8148 (language_defn::is_string_type_p): Declare new function.
8149 (default_is_string_type_p): Delete desclaration, move comment to
8150 definition.
8151 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8152 moved to m2_language::is_string_type_p.
8153 (m2_language_data): Delete la_is_string_type_p initializer.
8154 (m2_language::is_string_type_p): New member function,
8155 implementation from m2_is_string_type_p.
8156 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8157 initializer.
8158 * opencl-lang.c (opencl_language_data): Likewise.
8159 * p-lang.c (pascal_is_string_type_p): Delete function,
8160 implementation moved to pascal_language::is_string_type_p.
8161 (pascal_language_data): Delete la_is_string_type_p initializer.
8162 (pascal_language::is_string_type_p): New member function,
8163 implementation from pascal_is_string_type_p.
8164 * rust-lang.c (rust_is_string_type_p): Delete function,
8165 implementation moved to rust_language::is_string_type_p.
8166 (rust_language_data): Delete la_is_string_type_p initializer.
8167 (rust_language::is_string_type_p): New member function,
8168 implementation from rust_is_string_type_p.
8169 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8170 is_string_type_p.
8171
4ffc13fb
AB
81722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * ada-lang.c (ada_language_data): Delete la_print_typedef
8175 initializer.
8176 (ada_language::print_typedef): New member function.
8177 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8178 (cplus_language_data): Likewise.
8179 (asm_language_data): Likewise.
8180 (minimal_language_data): Likewise.
8181 * d-lang.c (d_language_data): Likewise.
8182 * f-lang.c (f_language_data): Likewise.
8183 (f_language::print_typedef): New member function.
8184 * go-lang.c (go_language_data): Delete la_print_typedef
8185 initializer.
8186 * language.c (language_defn::print_typedef): Define member
8187 function.
8188 (unknown_language_data): Delete la_print_typedef initializer.
8189 (unknown_language::print_typedef): New member function.
8190 (auto_language_data): Delete la_print_typedef initializer.
8191 (auto_language::print_typedef): New member function.
8192 * language.h (language_data): Delete la_print_typedef field.
8193 (language_defn::print_typedef): Declare new member function.
8194 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8195 (default_print_typedef): Delete declaration.
8196 * m2-lang.c (m2_language_data): Delete la_print_typedef
8197 initializer.
8198 (m2_language::print_typedef): New member function.
8199 * objc-lang.c (objc_language_data): Delete la_print_typedef
8200 initializer.
8201 * opencl-lang.c (opencl_language_data): Likewise.
8202 * p-lang.c (pascal_language_data): Likewise.
8203 (pascal_language::print_typedef): New member function.
8204 * rust-lang.c (rust_print_typedef): Delete function,
8205 implementation moved to rust_language::print_typedef.
8206 (rust_language): Delete la_print_typedef initializer.
8207 (rust_language::print_typedef): New member function,
8208 implementation from rust_print_typedef.
8209 * typeprint.c (default_print_typedef): Delete.
8210
d711ee67
AB
82112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8212
8213 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8214 (ada_language::printstr): New member function.
8215 * c-lang.c (c_language_data): Delete la_printstr initializer.
8216 (cplus_language_data): Likewise.
8217 (asm_language_data): Likewise.
8218 (minimal_language_data): Likewise.
8219 * d-lang.c (d_language_data): Likewise.
8220 * f-lang.c (f_printstr): Rename to f_language::printstr.
8221 (f_language_data): Delete la_printstr initializer.
8222 (f_language::printstr): New member function, implementation from
8223 f_printstr.
8224 * go-lang.c (go_language_data): Delete la_printstr initializer.
8225 * language.c (language_defn::printstr): Define new member
8226 function.
8227 (unk_lang_printstr): Delete.
8228 (unknown_language_data): Delete la_printstr initializer.
8229 (unknown_language::printstr): New member function.
8230 (auto_language_data): Delete la_printstr initializer.
8231 (auto_language::printstr): New member function.
8232 * language.h (language_data): Delete la_printstr field.
8233 (language_defn::printstr): Declare new member function.
8234 (LA_PRINT_STRING): Update call to printstr.
8235 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8236 (m2_language_data): Delete la_printstr initializer.
8237 (m2_language::printstr): New member function, implementation from
8238 m2_printstr.
8239 * objc-lang.c (objc_language_data): Delete la_printstr
8240 initializer.
8241 * opencl-lang.c (opencl_language_data): Likewise.
8242 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8243 (pascal_language_data): Delete la_printstr initializer.
8244 (pascal_language::printstr): New member function, implementation
8245 from pascal_printstr.
8246 * p-lang.h (pascal_printstr): Delete declaration.
8247 * rust-lang.c (rust_printstr): Update header comment.
8248 (rust_language_data): Delete la_printstr initializer.
8249 (rust_language::printstr): New member function.
8250
52b50f2c
AB
82512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8252
8253 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8254 (ada_language::printchar): New member function.
8255 * c-lang.c (c_language_data): Delete la_printchar initializer.
8256 (cplus_language_data): Likewise.
8257 (asm_language_data): Likewise.
8258 (minimal_language_data): Likewise.
8259 * d-lang.c (d_language_data): Likewise.
8260 * f-lang.c (f_printchar): Rename to f_language::printchar.
8261 (f_language_data): Delete la_printchar initializer.
8262 (f_language::printchar): New member function, implementation from
8263 f_printchar.
8264 * go-lang.c (go_language_data): Delete la_printchar initializer.
8265 * language.c (unk_lang_printchar): Delete.
8266 (language_defn::printchar): Define new member function.
8267 (unknown_language_data): Delete la_printchar initializer.
8268 (unknown_language::printchar): New member function.
8269 (auto_language_data): Delete la_printchar initializer.
8270 (auto_language::printchar): New member function.
8271 * language.h (language_data): Delete la_printchar field.
8272 (language_defn::printchar): Declare new member function.
8273 (LA_PRINT_CHAR): Update call to printchar.
8274 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8275 (m2_language::printchar): New member function.
8276 * objc-lang.c (objc_language_data): Delete la_printchar
8277 initializer.
8278 * opencl-lang.c (opencl_language_data): Likewise.
8279 * p-lang.c (pascal_language_data): Delete la_printchar
8280 initializer.
8281 (pascal_language::printchar): New member function.
8282 * rust-lang.c (rust_printchar): Rename to
8283 rust_language::printchar.
8284 (rust_language_data): Delete la_printchar initializer.
8285 (rust_language::printchar): New member function, implementation
8286 from rust_printchar.
8287
ec8cec5b
AB
82882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8289
8290 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8291 (ada_language_data): Delete la_emitchar initializer.
8292 (ada_language::emitchar): New member function, implementation from
8293 emit_char.
8294 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8295 (cplus_language_data): Likewise.
8296 (asm_language_data): Likewise.
8297 (minimal_language_data): Likewise.
8298 * d-lang.c (d_language_data): Likewise.
8299 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8300 (f_language_data): Delete la_emitchar initializer.
8301 (f_language::emitchar): New member function, implementation from
8302 f_emit_char.
8303 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8304 * language.c (unk_lang_emit_char): Delete.
8305 (language_defn::emitchar): New member function definition.
8306 (unknown_language_data): Delete la_emitchar initializer.
8307 (unknown_language::emitchar): New member function.
8308 (auto_language_data): Delete la_emitchar initializer.
8309 (auto_language::emitchar): New member function.
8310 * language.h (language_data): Delete la_emitchar field.
8311 (language_defn::emitchar): New member field declaration.
8312 (LA_EMIT_CHAR): Update call to emitchar.
8313 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8314 (m2_language_data): Delete la_emitchar initializer.
8315 (m2_language::emitchar): New member function, implementation from
8316 m2_emit_char.
8317 * objc-lang.c (objc_language_data): Delete la_emitchar
8318 initializer.
8319 * opencl-lang.c (opencl_language_data): Likewise.
8320 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8321 (pascal_language_data): Delete la_emitchar initializer.
8322 (pascal_language::emitchar): New member function, implementation
8323 from pascal_emit_char.
8324 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8325 (rust_language_data): Delete la_emitchar initializer.
8326 (rust_language::emitchar): New member function, implementation
8327 from rust_emitchar.
8328
1bf9c363
AB
83292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8330
8331 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8332 (ada_language_data): Delete la_post_parser initializer.
8333 (ada_language::post_parser): New member function.
8334 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8335 (cplus_language_data): Likewise.
8336 (asm_language_data): Likewise.
8337 (minimal_language_data): Likewise.
8338 * d-lang.c (d_language_data): Likewise.
8339 * f-lang.c (f_language_data): Likewise.
8340 * go-lang.c (go_language_data): Likewise.
8341 * language.c (unknown_language_data): Likewise.
8342 (auto_language_data): Likewise.
8343 * language.h (language_data): Delete la_post_parser field.
8344 (language_defn::post_parser): New member function.
8345 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8346 * objc-lang.c (objc_language_data): Likewise.
8347 * opencl-lang.c (opencl_language_data): Likewise.
8348 * p-lang.c (pascal_language_data): Likewise.
8349 * parse.c (parse_exp_in_context): Update call to post_parser.
8350 (null_post_parser): Delete definition.
8351 * parser-defs.h (null_post_parser): Delete declaration.
8352 * rust-lang.c (rust_language_data): Delete la_post_parser
8353 initializer.
8354
87afa652
AB
83552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8356
8357 * ada-lang.c (parse): Rename to ada_language::parser.
8358 (ada_language_data): Delete la_parser initializer.
8359 (ada_language::parser): New member function, implementation from
8360 parse.
8361 * c-lang.c (c_language_data): Delete la_parser initializer.
8362 (cplus_language_data): Likewise.
8363 (asm_language_data): Likewise.
8364 (minimal_language_data): Likewise.
8365 * d-lang.c (d_language_data): Likewise.
8366 (d_language::parser): New member function.
8367 * f-lang.c (f_language_data): Delete la_parser initializer.
8368 (f_language::parser): New member function.
8369 * go-lang.c (go_language_data): Delete la_parser initializer.
8370 (go_language::parser): New member function.
8371 * language.c (unk_lang_parser): Delete.
8372 (language_defn::parser): Define new member function.
8373 (unknown_language_data): Delete la_parser initializer.
8374 (unknown_language::parser): New member function.
8375 (auto_language_data): Delete la_parser initializer.
8376 (auto_language::parser): New member function.
8377 * language.h (language_data): Delete la_parser field.
8378 (language_defn::parser): Declare new member function.
8379 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8380 (m2_language::parser): New member function.
8381 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8382 * opencl-lang.c (opencl_language_data): Likewise.
8383 * p-lang.c (pascal_language_data): Likewise.
8384 (pascal_language::parser): New member function.
8385 * parse.c (parse_exp_in_context): Update call to parser.
8386 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8387 (rust_language::parser): New member function.
8388
37825800
AB
83892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8390
8391 * top.c (print_gdb_configuration): Print --with-python-libdir
8392 configuration value.
8393
5b860c93
PW
83942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8395
8396 * NEWS: Mention change to the alias command.
8397
cf00cd6f
PW
83982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8399
8400 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8401 (alias_command_completer)
8402 (make_alias_options_def_group): New functions.
8403 (alias_opts, alias_option_defs): New struct and array.
8404 (alias_usage_error): Update usage.
8405 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8406 Use option framework.
8407 (_initialize_cli_cmds): Update alias command help.
8408 Update aliases command help.
8409 (show_user):
8410 Add NULL for new default_args lookup_cmd argument.
8411 (valid_command_p): Rename to validate_aliased_command.
8412 Add NULL for new default_args lookup_cmd argument. Verify that the
8413 aliased_command has no default args.
8414 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8415 (lookup_cmd_1, lookup_cmd): New argument default_args.
8416 (add_alias_cmd):
8417 Add NULL for new default_args lookup_cmd argument.
8418 (print_help_for_command): Show default args under the layout
8419 alias some_alias = some_aliased_cmd some_alias_default_arg.
8420 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8421 xfree default_args in destructor.
8422 * cli/cli-script.c (process_next_line, do_define_command):
8423 Add NULL for new default_args lookup_cmd argument.
8424 * command.h: Declare new default_args argument in lookup_cmd
8425 and lookup_cmd_1.
8426 * completer.c (complete_line_internal_1):
8427 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8428 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8429 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8430 Likewise.
8431 * infcmd.c (_initialize_infcmd): Likewise.
8432 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8433 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8434 * python/py-param.c (add_setshow_generic): Likewise.
8435 * remote.c (_initialize_remote): Likewise.
8436 * top.c (execute_command): Prepend default_args if command has some.
8437 (set_verbose):
8438 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8439 * tracepoint.c (validate_actionline, encode_actions_1):
8440 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8441
bd920864
TBA
84422020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8443
8444 * jit.c (jit_read_descriptor): Use bool as the return type.
8445 (jit_breakpoint_re_set_internal): Use bool as the return type.
8446 Invert the return value logic; return true if the jit breakpoint
8447 has been successfully initialized.
8448 (jit_inferior_init): Update the call to
8449 jit_breakpoint_re_set_internal.
8450
f8098322
PA
84512020-06-22 Pedro Alves <palves@redhat.com>
8452
8453 PR gdb/25939
8454 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8455 Use the current inferior instead. Don't return
8456 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8457 wait again.
8458 * sol-thread.c (sol_thread_target::wait): Don't reference
8459 inferior_ptid.
8460 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8461 (sol_update_thread_list_callback): Use the current inferior's pid
8462 instead of inferior_ptid.
8463
196535a6
RO
84642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8465
8466 * procfs.c: Cleanup many comments.
8467
8468 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8469 (AFTER_WATCHFLAG): Replace by value.
8470
8471 (MAIN_PROC_NAME_FORMAT): Inline ...
8472 (create_procinfo): ... here.
8473
8474 (procfs_debug_inferior): Remove SYS_exec handling.
8475 (syscall_is_exec): Likewise.
8476 (procfs_set_exec_trap): Likewise.
8477
8478 (syscall_is_lwp_exit): Inline in callers.
8479 (syscall_is_exit): Likewise.
8480 (syscall_is_exec): Likewise.
8481 (syscall_is_lwp_create): Likewise.
8482
8483 (invalidate_cache): Remove #if 0 code.
8484
8485 (make_signal_thread_runnable): Remove.
8486 (procfs_target::resume): Remove #if 0 code.
8487
cf6f3e86
RO
84882020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8489
8490 PR gdb/25939
8491 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8492 call ...
8493 (procfs_target::create_inferior): ... here.
8494
48e9cc84
PW
84952020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8496
8497 * exec.c (validate_exec_file): Ensure the build-id is up to
8498 date by calling reopen_exec_file (that checks file timestamp
8499 to decide to re-read the file).
8500
3922b302
PA
85012020-06-18 Pedro Alves <palves@redhat.com>
8502
8503 PR gdb/25412
8504 * gdbthread.h (delete_thread, delete_thread_silent)
8505 (find_thread_ptid): Update comments.
8506 * thread.c (current_thread_): New global.
8507 (is_current_thread): Move higher, and reimplement.
8508 (inferior_thread): Reimplement.
8509 (set_thread_exited): Use bool. Add assertions.
8510 (add_thread_silent): Simplify thread-reuse handling by always
8511 calling delete_thread.
8512 (delete_thread): Remove intro comment.
8513 (find_thread_ptid): Skip exited threads.
8514 (switch_to_thread_no_regs): Write to current_thread_.
8515 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8516 INFERIOR_PTID. Clear current_thread_.
8517
6dbdab44
PA
85182020-06-18 Pedro Alves <palves@redhat.com>
8519
8520 * aix-thread.c (pd_update): Use switch_to_thread.
8521
2da4b788
PA
85222020-06-18 Pedro Alves <palves@redhat.com>
8523
8524 * ravenscar-thread.c (ravenscar_thread_target): Update.
8525 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8526 (ravenscar_thread_target::add_active_thread): ... this. Don't
8527 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8528 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8529
50838d1b
PA
85302020-06-18 Pedro Alves <palves@redhat.com>
8531
8532 * nat/windows-nat.c (current_windows_thread): Remove.
8533 * nat/windows-nat.h (current_windows_thread): Remove.
8534 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8535 Adjust.
8536 (display_selectors): Adjust to fetch the current
8537 windows_thread_info based on inferior_ptid.
8538 (fake_create_process): No longer write to current_windows_thread.
8539 (windows_nat_target::get_windows_debug_event):
8540 Don't set inferior_ptid or current_windows_thread.
8541 (windows_nat_target::wait): Adjust to not rely on
8542 current_windows_thread.
8543 (do_initial_windows_stuff): Now a method of windows_nat_target.
8544 Switch to the last_ptid thread.
8545 (windows_nat_target::attach): Adjust.
8546 (windows_nat_target::detach): Use switch_to_no_thread instead of
8547 writing to inferior_ptid directly.
8548 (windows_nat_target::create_inferior): Adjust.
8549
31ce04e9
PA
85502020-06-18 Pedro Alves <palves@redhat.com>
8551
8552 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8553
1ee1a363
PA
85542020-06-18 Pedro Alves <palves@redhat.com>
8555
8556 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8557 after creating it, instead of writing to inferior_ptid. Don't
8558 write to inferior_ptid.
8559
6d350754
PA
85602020-06-18 Pedro Alves <palves@redhat.com>
8561
8562 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8563
5d971d48
PA
85642020-06-18 Pedro Alves <palves@redhat.com>
8565
8566 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8567 it, instead of writing to inferior_ptid.
8568
86e57d1b
PA
85692020-06-18 Pedro Alves <palves@redhat.com>
8570
8571 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8572 to inferior_ptid.
8573
f2e1c129
PA
85742020-06-18 Pedro Alves <palves@redhat.com>
8575
8576 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8577 instead of writing to inferior_ptid directly.
8578
60db1b85
PA
85792020-06-18 Pedro Alves <palves@redhat.com>
8580
8581 * corelow.c (core_target::close): Use switch_to_no_thread instead
8582 of writing to inferior_ptid directly.
8583 (add_to_thread_list, core_target_open): Use switch_to_thread
8584 instead of writing to inferior_ptid directly.
8585
fe7d6a8d
PA
85862020-06-18 Pedro Alves <palves@redhat.com>
8587
8588 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8589 inferior_ptid.
8590 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8591 inferior_ptid.
8592 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8593 inferior_ptid directly.
8594 (darwin_nat_target::init_thread_list): Switch to thread, instead
8595 of writing to inferior_ptid.
8596 (darwin_nat_target::attach): Don't write to inferior_ptid.
8597 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8598
975f8708
PA
85992020-06-18 Pedro Alves <palves@redhat.com>
8600
8601 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8602 thread.
8603 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8604 Instead use switch_to_thread.
8605 (gnu_nat_target::detach): Use switch_to_no_thread
8606 instead of writing to inferior_ptid directly. Used passed-in
8607 inferior instead of looking up the inferior by pid.
8608
1a204730
PA
86092020-06-18 Pedro Alves <palves@redhat.com>
8610
8611 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8612 inferior_ptid.
8613
ebe84f23
PA
86142020-06-18 Pedro Alves <palves@redhat.com>
8615
8616 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8617 inferior_ptid.
8618 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8619 thread.
8620 (nto_procfs_target::detach): Avoid referencing
8621 inferior_ptid. Use switch_to_no_thread instead of writing to
8622 inferior_ptid directly.
8623 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8624 instead of writing to inferior_ptid directly.
8625 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8626 to thread.
8627
191f02e5
PA
86282020-06-18 Pedro Alves <palves@redhat.com>
8629
8630 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8631 after creating it, instead of writing to inferior_ptid.
8632 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8633 to inferior_ptid directly.
8634 (gdbsim_target::wait): Don't write to inferior_ptid.
8635
0ac55310
PA
86362020-06-18 Pedro Alves <palves@redhat.com>
8637
8638 * remote.c (remote_target::remote_notice_new_inferior): Use
8639 switch_to_thread instead of writing to inferior_ptid directly.
8640 (remote_target::add_current_inferior_and_thread): Use
8641 switch_to_no_thread instead of writing to inferior_ptid directly.
8642 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8643 and switch_to_thread instead of using set_current_inferior or
8644 writing to inferior_ptid directly.
8645
5233f39b
PA
86462020-06-18 Pedro Alves <palves@redhat.com>
8647
8648 * tracectf.c (ctf_target_open): Switch to added thread instead of
8649 writing to inferior_ptid directly.
8650 (ctf_target::close): Use switch_to_no_thread instead of writing to
8651 inferior_ptid directly.
8652
087e161b
PA
86532020-06-18 Pedro Alves <palves@redhat.com>
8654
8655 * tracefile-tfile.c (tfile_target_open): Don't write to
8656 inferior_ptid directly, instead switch to added thread.
8657 (tfile_target::close): Use switch_to_no_thread instead of writing
8658 to inferior_ptid directly.
8659
7fb43e53
PA
86602020-06-18 Pedro Alves <palves@redhat.com>
8661
8662 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8663 (procfs_target::detach): Use switch_to_no_thread
8664 instead of writing to inferior_ptid directly.
8665 (do_attach): Change return type to void. Switch to the added
8666 thread.
8667 (procfs_target::create_inferior): Switch to the added thread.
8668 (procfs_do_thread_registers): Don't write to inferior_ptid.
8669
18493a00
PA
86702020-06-18 Pedro Alves <palves@redhat.com>
8671
8672 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8673 of writing to inferior_ptid.
8674 (scoped_restore_exited_inferior): Delete.
8675 (handle_vfork_child_exec_or_exit): Simplify using
8676 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8677 instead of writing to inferior_ptid.
8678 (THREAD_STOPPED_BY): Delete.
8679 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8680 (thread_stopped_by_hw_breakpoint): Delete.
8681 (save_waitstatus): Use
8682 scoped_restore_current_thread+switch_to_thread, and call
8683 target_stopped_by_watchpoint instead of
8684 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8685 instead of thread_stopped_by_sw_breakpoint, and
8686 target_stopped_by_hw_breakpoint instead of
8687 thread_stopped_by_hw_breakpoint.
8688 (handle_inferior_event)
8689 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8690 inferior_ptid directly, nor
8691 set_current_inferior/set_current_program_space. Use
8692 switch_to_thread / switch_to_inferior_no_thread instead.
8693
a0776b13
PA
86942020-06-18 Pedro Alves <palves@redhat.com>
8695
8696 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8697 instead of writing to inferior_ptid.
8698
6155c136
PA
86992020-06-18 Pedro Alves <palves@redhat.com>
8700
8701 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8702 added thread.
8703 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8704 to the added thread.
8705 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8706 instead of writing to inferior_ptid.
8707
c5316fc6
PA
87082020-06-18 Pedro Alves <palves@redhat.com>
8709
8710 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8711 (register_to_value_test): Mock a program_space too. Heap-allocate
8712 the address space. Don't write to inferior_ptid. Use
8713 switch_to_thread instead.
8714
8df01799
PA
87152020-06-18 Pedro Alves <palves@redhat.com>
8716
8717 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8718 Delete.
8719 (find_signalled_thread()): New, factored out from
8720 linux_make_corefile_notes and adjusted to handle exited threads.
8721 (linux_make_corefile_notes): Adjust to use the new
8722 find_signalled_thread.
8723
41792d68
PA
87242020-06-18 Pedro Alves <palves@redhat.com>
8725
8726 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8727 of saving/restoring inferior_ptid.
8728
612f258a
TT
87292020-06-17 Tom Tromey <tom@tromey.com>
8730
8731 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8732 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8733 declare.
8734 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8735
efb763a5
SM
87362020-06-15 Simon Marchi <simon.marchi@efficios.com>
8737
8738 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8739 of partial symtabs.
8740
2951f6c0
SM
87412020-06-17 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * regformats/reg-arm.dat: Remove.
8744 * regformats/reg-bfin.dat: Remove.
8745 * regformats/reg-cris.dat: Remove.
8746 * regformats/reg-crisv32.dat: Remove.
8747 * regformats/reg-m32r.dat: Remove.
8748 * regformats/reg-tilegx.dat: Remove.
8749 * regformats/reg-tilegx32.dat: Remove.
8750
7d458ea5
SM
87512020-06-17 Simon Marchi <simon.marchi@efficios.com>
8752
8753 * features/Makefile (WHICH): Remove arm files.
8754 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8755 * regformats/arm/arm-with-neon.dat: Remove.
8756 * regformats/arm/arm-with-vfpv2.dat: Remove.
8757 * regformats/arm/arm-with-vfpv3.dat: Remove.
8758
3af96c0d
SM
87592020-06-17 Simon Marchi <simon.marchi@efficios.com>
8760
8761 * features/Makefile (XMLTOC): Remove rx.xml.
8762
b25e22fd
PA
87632020-06-17 Pedro Alves <palves@redhat.com>
8764
8765 * gdbthread.h (thread_control_state) <trap_expected> Update
8766 comments.
8767
a78a19b1
AB
87682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8769
8770 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8771 ada_language::lookup_symbol_nonlocal.
8772 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8773 (ada_language::lookup_symbol_nonlocal): New member function,
8774 implementation from ada_lookup_symbol_nonlocal.
8775 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8776 initializer.
8777 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8778 initializer.
8779 (cplus_language::lookup_symbol_nonlocal): New member function.
8780 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8781 (minimal_language_data) Likewise.
8782 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8783 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8784 initializer.
8785 (d_language::lookup_symbol_nonlocal): New member function.
8786 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8787 initializer.
8788 (f_language::lookup_symbol_nonlocal): New member function.
8789 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8790 initializer.
8791 * language.c (unknown_language_data): Likewise.
8792 (auto_language_data): Likewise.
8793 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8794 field.
8795 (language_defn::lookup_symbol_nonlocal): New member function.
8796 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8797 initializer.
8798 * objc-lang.c (objc_language_data): Likewise.
8799 * opencl-lang.c (opencl_language_data): Likewise.
8800 * p-lang.c (pascal_language_data): Likewise.
8801 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8802 rust_language::lookup_symbol_nonlocal.
8803 (rust_language_data): Delete la_lookup_symbol_nonlocal
8804 initializer.
8805 (rust_language::lookup_symbol_nonlocal): New member function,
8806 implementation from rust_lookup_symbol_nonlocal.
8807 * symtab.c (lookup_symbol_aux): Update call to
8808 lookup_symbol_nonlocal.
8809 (basic_lookup_symbol_nonlocal): Rename to...
8810 (language_defn::lookup_symbol_nonlocal): ...this, and update
8811 header comment. Remove language_defn parameter, and replace with
8812 uses of `this'.
8813 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8814
ebe2334e
AB
88152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8816
8817 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8818 initializer.
8819 (ada_language::value_print_inner): New member function.
8820 * c-lang.c (c_language_data): Delete la_value_print_inner
8821 initializer.
8822 (cplus_language_data): Likewise.
8823 (asm_language_data): Likewise.
8824 (minimal_language_data): Likewise.
8825 * d-lang.c (d_language_data): Likewise.
8826 (d_language::value_print_inner): New member function.
8827 * f-lang.c (f_language_data): Delete la_value_print_inner
8828 initializer.
8829 (f_language::value_print_inner): New member function.
8830 * f-lang.h (f_value_print_innner): Rename to...
8831 (f_value_print_inner): ...this (note spelling of 'inner').
8832 * f-valprint.c (f_value_print_innner): Rename to...
8833 (f_value_print_inner): ...this (note spelling of 'inner').
8834 * go-lang.c (go_language_data): Delete la_value_print_inner
8835 initializer.
8836 (go_language::value_print_inner): New member function.
8837 * language.c (language_defn::value_print_inner): Define new member
8838 function.
8839 (unk_lang_value_print_inner): Delete.
8840 (unknown_language_data): Delete la_value_print_inner initializer.
8841 (unknown_language::value_print_inner): New member function.
8842 (auto_language_data): Delete la_value_print_inner initializer.
8843 (auto_language::value_print_inner): New member function.
8844 * language.h (language_data): Delete la_value_print_inner field.
8845 (language_defn::value_print_inner): Delcare new member function.
8846 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8847 initializer.
8848 (m2_language::value_print_inner): New member function.
8849 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8850 initializer.
8851 * opencl-lang.c (opencl_language_data): Likewise.
8852 * p-lang.c (pascal_language_data): Likewise.
8853 (pascal_language::value_print_inner): New member function.
8854 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8855 initializer.
8856 (rust_language::value_print_inner): New member function.
8857 * valprint.c (do_val_print): Update call to value_print_inner.
8858
a1d1fa3e
AB
88592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8860
8861 * ada-lang.c (ada_language_data): Delete la_value_print
8862 initializer.
8863 (ada_language::value_print): New member function.
8864 * c-lang.c (c_language_data): Delete la_value_print initializer.
8865 (cplus_language_data): Likewise.
8866 (asm_language_data): Likewise.
8867 (minimal_language_data): Likewise.
8868 * d-lang.c (d_language_data): Likewise.
8869 * f-lang.c (f_language_data): Likewise.
8870 * go-lang.c (go_language_data): Likewise.
8871 * language.c (unk_lang_value_print): Delete.
8872 (language_defn::value_print): Define new member function.
8873 (unknown_language_data): Delete la_value_print initializer.
8874 (unknown_language::value_print): New member function.
8875 (auto_language_data): Delete la_value_print initializer.
8876 (auto_language::value_print): New member function.
8877 * language.h (language_data): Delete la_value_print field.
8878 (language_defn::value_print): Declare new member function.
8879 (LA_VALUE_PRINT): Update call to value_print.
8880 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8881 * objc-lang.c (objc_language_data): Likewise.
8882 * opencl-lang.c (opencl_language_data): Likewise.
8883 * p-lang.c (pascal_language_data): Likewise.
8884 (pascal_language::value_print): New member function.
8885 * rust-lang.c (rust_language_data): Delete la_value_print
8886 initializer.
8887
f16a9f57
AB
88882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8889
8890 * ada-lang.c (ada_watch_location_expression): Rename to
8891 ada_language::watch_location_expression.
8892 (ada_language_data): Delete la_watch_location_expression
8893 initializer.
8894 (ada_language::watch_location_expression): New member function,
8895 implementation from ada_watch_location_expression.
8896 * breakpoint.c (watch_command_1): Update call to
8897 watch_location_expression.
8898 * c-lang.c (c_watch_location_expression): Rename to
8899 language_defn::watch_location_expression.
8900 (c_language_data): Delete la_watch_location_expression
8901 initializer.
8902 (cplus_language_data): Likewise.
8903 (asm_language_data): Likewise.
8904 (minimal_language_data): Likewise.
8905 * c-lang.h (c_watch_location_expression): Delete declaration.
8906 * d-lang.c (d_language_data): Delete la_watch_location_expression
8907 initializer.
8908 * f-lang.c (f_language_data): Likewise.
8909 * go-lang.c (go_language_data): Likewise.
8910 * language.c (language_defn::watch_location_expression): Member
8911 function implementation from c_watch_location_expression.
8912 (unknown_language_data): Delete la_watch_location_expression
8913 initializer.
8914 (auto_language_data): Likewise.
8915 * language.h (language_data): Delete la_watch_location_expression
8916 field.
8917 (language_defn::watch_location_expression): Declare new member
8918 function.
8919 * m2-lang.c (m2_language_data): Delete
8920 la_watch_location_expression initializer.
8921 * objc-lang.c (objc_language_data): Likewise.
8922 * opencl-lang.c (opencl_language_data): Likewise.
8923 * p-lang.c (pascal_language_data): Likewise.
8924 * rust-lang.c (rust_watch_location_expression): Rename to
8925 rust_language::watch_location_expression.
8926 (rust_language_data): Delete la_watch_location_expression
8927 initializer.
8928 (rust_language::watch_location_expression): New member function,
8929 implementation from rust_watch_location_expression.
8930
7e56227d
AB
89312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8932
8933 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8934 ada_language::collect_symbol_completion_matches.
8935 (ada_language_data): Delete la_collect_symbol_completion_matches
8936 initializer.
8937 (ada_language::collect_symbol_completion_matches): New member
8938 function, implementation from
8939 ada_collect_symbol_completion_matches.
8940 * c-lang.c (c_language_data): Delete
8941 la_collect_symbol_completion_matches initializer.
8942 (cplus_language_data): Likewise.
8943 (asm_language_data): Likewise.
8944 (minimal_language_data): Likewise.
8945 * d-lang.c (d_language_data): Likewise.
8946 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8947 f_language::collect_symbol_completion_matches.
8948 (f_language_data): Delete la_collect_symbol_completion_matches
8949 initializer.
8950 (f_language::collect_symbol_completion_matches) New member
8951 function, implementation from f_collect_symbol_completion_matches.
8952 * go-lang.c (go_language_data): Delete
8953 la_collect_symbol_completion_matches initializer.
8954 * language.c (unknown_language_data): Likewise.
8955 (auto_language_data): Likewise.
8956 * language.h (language_data): Delete
8957 la_collect_symbol_completion_matches field.
8958 (language_defn::collect_symbol_completion_matches): New member
8959 function.
8960 * m2-lang.c (m2_language_data): Delete
8961 la_collect_symbol_completion_matches initializer.
8962 * objc-lang.c (objc_language_data): Likewise.
8963 * opencl-lang.c (opencl_language_data): Likewise.
8964 * p-lang.c (pascal_language_data): Likewise.
8965 * rust-lang.c (rust_language_data): Likewise.
8966 * symtab.c (default_collect_symbol_completion_matches): Delete.
8967 (collect_symbol_completion_matches): Update call to
8968 collect_symbol_completion_matches.
8969 (collect_symbol_completion_matches_type): Likewise.
8970 * symtab.h (default_collect_symbol_completion_matches): Delete
8971 declaration.
8972
53fc67f8
AB
89732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8974
8975 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8976 (ada_language_data): Delete la_word_break_characters initializer.
8977 (ada_language::word_break_characters): New member function.
8978 * c-lang.c (c_language_data): Delete la_word_break_characters
8979 initializer.
8980 (cplus_language_data): Likewise.
8981 (asm_language_data): Likewise.
8982 (minimal_language_data): Likewise.
8983 * completer.c: Update global comment.
8984 (advance_to_expression_complete_word_point): Update call to
8985 word_break_characters.
8986 (complete_files_symbols): Likewise.
8987 (complete_line_internal_1): Likewise.
8988 (default_completer_handle_brkchars): Likewise.
8989 (skip_quoted_chars): Likewise.
8990 * d-lang.c (d_language_data): Delete la_word_break_characters
8991 initializer.
8992 * f-lang.c (f_word_break_characters): Delete.
8993 (f_language_data): Delete la_word_break_characters initializer.
8994 (f_language::word_break_characters): New member function.
8995 * go-lang.c (go_language_data): Delete la_word_break_characters
8996 initializer.
8997 * language.c (unknown_language_data): Likewise.
8998 (auto_language_data): Likewise.
8999 * language.h (default_word_break_characters): Move declaration to
9000 earlier in the file.
9001 (language_data): Delete la_word_break_characters field.
9002 (language_defn::word_break_characters): New member function.
9003 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9004 initializer.
9005 * objc-lang.c (objc_language_data): Likewise.
9006 * opencl-lang.c (opencl_language_data): Likewise.
9007 * p-lang.c (pascal_language_data): Likewise.
9008 * rust-lang.c (rust_language_data): Likewise.
9009
c9debfb9
AB
90102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9011
9012 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9013 (ada_language_data): Delete la_get_symbol_name_matcher
9014 initializer.
9015 (language_defn::get_symbol_name_matcher_inner): New member
9016 function.
9017 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9018 initializer.
9019 (cplus_language_data): Likewise.
9020 (cplus_language::get_symbol_name_matcher_inner): New member
9021 function.
9022 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9023 (minimal_language_data): Likewise.
9024 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9025 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9026 initializer.
9027 * dictionary.c (iter_match_first_hashed): Update call to
9028 get_symbol_name_matcher.
9029 (iter_match_next_hashed): Likewise.
9030 (iter_match_next_linear): Likewise.
9031 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9032 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9033 initializer.
9034 (f_language::get_symbol_name_matcher_inner): New member function.
9035 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9036 initializer.
9037 * language.c (default_symbol_name_matcher): Update header comment,
9038 make static.
9039 (language_defn::get_symbol_name_matcher): New definition.
9040 (language_defn::get_symbol_name_matcher_inner): Likewise.
9041 (get_symbol_name_matcher): Delete.
9042 (unknown_language_data): Delete la_get_symbol_name_matcher
9043 initializer.
9044 (auto_language_data): Likewise.
9045 * language.h (language_data): Delete la_get_symbol_name_matcher
9046 field.
9047 (language_defn::get_symbol_name_matcher): New member function.
9048 (language_defn::get_symbol_name_matcher_inner): Likewise.
9049 (default_symbol_name_matcher): Delete declaration.
9050 * linespec.c (find_methods): Update call to
9051 get_symbol_name_matcher.
9052 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9053 initializer.
9054 * minsyms.c (lookup_minimal_symbol): Update call to
9055 get_symbol_name_matcher.
9056 (iterate_over_minimal_symbols): Likewise.
9057 * objc-lang.c (objc_language_data): Delete
9058 la_get_symbol_name_matcher initializer.
9059 * opencl-lang.c (opencl_language_data): Likewise.
9060 * p-lang.c (pascal_language_data): Likewise.
9061 * psymtab.c (psymbol_name_matches): Update call to
9062 get_symbol_name_matcher.
9063 * rust-lang.c (rust_language_data): Delete
9064 la_get_symbol_name_matcher initializer.
9065 * symtab.c (symbol_matches_search_name): Update call to
9066 get_symbol_name_matcher.
9067 (compare_symbol_name): Likewise.
9068
9a49ad8c
AB
90692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9070
9071 * ada-lang.c (ada_language_data): Delete la_compute_program
9072 initializer.
9073 * c-lang.c (c_language_data): Likewise.
9074 (c_language::compute_program): New member function.
9075 (cplus_language_data): Delete la_compute_program initializer.
9076 (cplus_language::compute_program): New member function.
9077 (asm_language_data): Delete la_compute_program initializer.
9078 (minimal_language_data): Likewise.
9079 * c-lang.h (c_compute_program): Update comment.
9080 (cplus_compute_program): Likewise.
9081 * compile/compile-c-support.c (c_compute_program): Likewise.
9082 (cplus_compute_program): Likewise.
9083 * compile/compile.c (compile_to_object): Update call to
9084 la_compute_program.
9085 * d-lang.c (d_language_data): Delete la_compute_program
9086 initializer.
9087 * f-lang.c (f_language_data): Likewise.
9088 * go-lang.c (go_language_data): Likewise.
9089 * language.c (unknown_language_data): Likewise.
9090 (auto_language_data): Likewise.
9091 * language.h (language_data): Delete la_compute_program field.
9092 (language_defn::compute_program): New member function.
9093 * m2-lang.c (m2_language_data): Delete la_compute_program
9094 initializer.
9095 * objc-lang.c (objc_language_data): Likewise.
9096 * opencl-lang.c (opencl_language_data): Likewise.
9097 * p-lang.c (pascal_language_data): Likewise.
9098 * rust-lang.c (rust_language_data): Likewise.
9099
eff93b4d
AB
91002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9101
9102 * ada-lang.c (ada_language_data) Delete
9103 la_class_name_from_physname initializer.
9104 * c-lang.c (c_language_data): Likewise.
9105 (cplus_language_data): Likewise.
9106 (cplus_language::class_name_from_physname): New member function.
9107 (asm_language_data): Delete la_class_name_from_physname
9108 initializer.
9109 (minimal_language_data): Likewise.
9110 * d-lang.c (d_language_data): Likewise.
9111 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9112 method on language_defn class.
9113 (guess_full_die_structure_name): Likewise.
9114 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9115 initializer.
9116 * go-lang.c (go_language_data): Likewise.
9117 * language.c (language_class_name_from_physname): Delete.
9118 (unk_lang_class_name): Delete.
9119 (unknown_language_data): Delete la_class_name_from_physname
9120 initializer.
9121 (auto_language_data): Likewise.
9122 * language.h (language_data): Delete la_class_name_from_physname
9123 field.
9124 (language_defn::class_name_from_physname): New function.
9125 (language_class_name_from_physname): Delete declaration.
9126 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9127 initializer.
9128 * objc-lang.c (objc_language_data): Likewise.
9129 * opencl-lang.c (opencl_language_data): Likewise.
9130 * p-lang.c (pascal_language_data): Likewise.
9131 * rust-lang.c (rust_language_data): Likewise.
9132
de543742
TT
91332020-06-16 Tom Tromey <tom@tromey.com>
9134
9135 * tui/tui-data.h (STATUS_NAME): New macro.
9136 * tui/tui-layout.c (tui_remove_some_windows)
9137 (initialize_known_windows, tui_register_window)
9138 (tui_layout_split::remove_windows, initialize_layouts)
9139 (tui_new_layout_command): Don't use hard-coded window names.
9140
a350efd4
TT
91412020-06-16 Tom Tromey <tom@tromey.com>
9142
9143 PR tui/25348:
9144 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9145 tui_initialize_readline. Only run once. Call rl_initialize.
9146 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9147 tui_initialize_readline.
9148 * tui/tui-io.c (tui_setup_io): Call
9149 tui_ensure_readline_initialized.
9150 * tui/tui-interp.c (tui_interp::init): Update.
9151
39ec0490
TT
91522020-06-16 Tom Tromey <tom@tromey.com>
9153
9154 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9155 Also preserve the status window.
9156
d2d1ea20
TT
91572020-06-16 Tom Tromey <tom@tromey.com>
9158
9159 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9160 where m_window==nullptr.
9161
66920317
TT
91622020-06-15 Tom Tromey <tromey@adacore.com>
9163
9164 * windows-nat.c (windows_nat::handle_output_debug_string):
9165 Update.
9166 (windows_nat::handle_ms_vc_exception): Update.
9167 * target.h (target_read_string): Change API.
9168 * target.c (target_read_string): Change API.
9169 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9170 Update.
9171 * solib-frv.c (frv_current_sos): Update.
9172 * solib-dsbt.c (dsbt_current_sos): Update.
9173 * solib-darwin.c (darwin_current_sos): Update.
9174 * linux-thread-db.c (inferior_has_bug): Update.
9175 * expprint.c (print_subexp_standard): Update.
9176 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9177 (ada_exception_message_1): Update.
9178
a5d871dd
TT
91792020-06-15 Tom Tromey <tromey@adacore.com>
9180
9181 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9182
670e35fa
TT
91832020-06-15 Tom Tromey <tromey@adacore.com>
9184
9185 * valprint.c (read_string): Update comment.
9186 * target.c (MIN): Remove.
9187 (target_read_string): Rewrite.
9188
f5272a3b
TT
91892020-06-15 Tom Tromey <tromey@adacore.com>
9190
9191 * corefile.c (read_memory_string): Remove.
9192 * ada-valprint.c (ada_value_print_ptr): Update.
9193 * ada-lang.h (ada_tag_name): Change return type.
9194 * ada-lang.c (type_from_tag): Update.
9195 (ada_tag_name_from_tsd): Change return type. Use
9196 target_read_string.
9197 (ada_tag_name): Likewise.
9198 * gdbcore.h (read_memory_string): Don't declare.
9199
2c074f49
HD
92002020-06-14 Hannes Domani <ssbssa@yahoo.de>
9201
9202 * symtab.c (rbreak_command): Ignore Windows drive colon.
9203
6a17d503
SM
92042020-06-12 Simon Marchi <simon.marchi@efficios.com>
9205
9206 * NEWS: Mention removed GDBserver host support.
9207
453c733f
NC
92082020-06-12 Nelson Chu <nelson.chu@sifive.com>
9209
9210 * features/riscv/rebuild-csr-xml.sh: Updated.
9211
2b4e6a3f
TT
92122020-06-11 Tom Tromey <tom@tromey.com>
9213
9214 PR gdb/18318:
9215 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9216
4412332f
JG
92172020-06-09 Jonny Grant <jg@jguk.org>
92182020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9219
9220 * main.c (captured_main_1): Don't print new line after help.
9221 (print_gdb_help): add mailing list and IRC channel information
9222 to --help. Add new lines between items in the footer. Remove
9223 quotes around bug url.
9224
2f33032a
KS
92252020-06-11 Keith Seitz <keiths@redhat.com>
9226
9227 PR gdb/21356
9228 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9229 Resolve typedefs for type length calculations.
9230
7ab96794
TV
92312020-06-10 Tom de Vries <tdevries@suse.de>
9232
9233 PR ada/24713
9234 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9235 (write_psymbols): Enable .gdb_index for ada.
9236 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9237 ada.
9238
e5f3ece2
TV
92392020-06-10 Tom de Vries <tdevries@suse.de>
9240
9241 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9242 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9243 namei" instead of "const char *name" argument.
9244 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9245 dw2_symtab_iter_init.
9246
940da03e
SM
92472020-06-08 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9250 to use type::field and field::type instead.
9251
b6cdac4b
SM
92522020-06-08 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9255 to use field::type instead.
9256
5d14b6e5
SM
92572020-06-08 Simon Marchi <simon.marchi@efficios.com>
9258
9259 * gdbtypes.h (struct field) <type, set_type>: New methods.
9260 Rename `type` field to...
9261 <m_type>: ... this. Change references throughout to use type or
9262 set_type methods.
9263 (FIELD_TYPE): Use field::type. Change call sites that modify
9264 the field's type to use field::set_type instead.
9265
3d967001
SM
92662020-06-08 Simon Marchi <simon.marchi@efficios.com>
9267
9268 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9269 to use type::index_type instead.
9270
262abc0d
SM
92712020-06-08 Simon Marchi <simon.marchi@efficios.com>
9272
9273 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9274 methods.
9275 (TYPE_INDEX_TYPE): Use type::index_type.
9276 * gdbtypes.c (create_array_type_with_stride): Likewise.
9277
82836c92
TT
92782020-06-07 Tom Tromey <tom@tromey.com>
9279
9280 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9281 parameter.
9282 (generic_value_print): Update.
9283
940dace9
AB
92842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9285
9286 Revert commit 982a38f60b0.
9287 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9288
982a38f6
AB
92892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9290
9291 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9292 avoid use after free.
9293
82f06518
TV
92942020-06-05 Tom de Vries <tdevries@suse.de>
9295
9296 * NEWS: Fix typos.
9297
f8c41851
SM
92982020-06-04 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9301 the per_bfd object.
9302 (dwarf2_read_debug_names): Likewise.
9303 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9304 object when re-using a per_bfd object with an index.
9305
f9b5d5ea
TV
93062020-06-03 Tom de Vries <tdevries@suse.de>
9307
9308 PR symtab/26046
9309 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9310 children for C++.
9311 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9312 DW_TAG_subprogram.
9313
f6eee2d0
AB
93142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9315
9316 * ada-lang.c (ada_language_data): Delete skip_trampoline
9317 initializer.
9318 * c-lang.c (c_language_data): Likewise.
9319 (cplus_language_data): Likewise.
9320 (cplus_language::skip_trampoline): New member function.
9321 (asm_language_data): Delete skip_trampoline initializer.
9322 (minimal_language_data): Likewise.
9323 * d-lang.c (d_language_data): Likewise.
9324 * f-lang.c (f_language_data): Likewise.
9325 * go-lang.c (go_language_data): Likewise.
9326 * language.c (unk_lang_trampoline): Delete function.
9327 (skip_language_trampoline): Update.
9328 (unknown_language_data): Delete skip_trampoline initializer.
9329 (auto_language_data): Likewise.
9330 * language.h (language_data): Delete skip_trampoline field.
9331 (language_defn::skip_trampoline): New function.
9332 * m2-lang.c (m2_language_data): Delete skip_trampoline
9333 initializer.
9334 * objc-lang.c (objc_skip_trampoline): Delete function, move
9335 implementation to objc_language::skip_trampoline.
9336 (objc_language_data): Delete skip_trampoline initializer.
9337 (objc_language::skip_trampoline): New member function with
9338 implementation from objc_skip_trampoline.
9339 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9340 initializer.
9341 * p-lang.c (pascal_language_data): Likewise.
9342 * rust-lang.c (rust_language_data): Likewise.
9343
0a50df5d
AB
93442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9345
9346 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9347 (ada_language::demangle): New member function.
9348 * c-lang.c (c_language_data): Delete la_demangle initializer.
9349 (cplus_language_data): Delete la_demangle initializer.
9350 (cplus_language::demangle): New member function.
9351 (asm_language_data): Delete la_demangle initializer.
9352 (minimal_language_data): Delete la_demangle initializer.
9353 * d-lang.c (d_language_data): Delete la_demangle initializer.
9354 (d_language::demangle): New member function.
9355 * f-lang.c (f_language_data): Delete la_demangle initializer.
9356 (f_language::demangle): New member function.
9357 * go-lang.c (go_language_data): Delete la_demangle initializer.
9358 (go_language::demangle): New member function.
9359 * language.c (language_demangle): Update.
9360 (unk_lang_demangle): Delete.
9361 (unknown_language_data): Delete la_demangle initializer.
9362 (unknown_language::demangle): New member function.
9363 (auto_language_data): Delete la_demangle initializer.
9364 (auto_language::demangle): New member function.
9365 * language.h (language_data): Delete la_demangle field.
9366 (language_defn::demangle): New function.
9367 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9368 * objc-lang.c (objc_language_data): Delete la_demangle
9369 initializer.
9370 (objc_language::demangle): New member function.
9371 * opencl-lang.c (opencl_language_data): Delete la_demangle
9372 initializer.
9373 * p-lang.c (pascal_language_data): Likewise.
9374 * rust-lang.c (rust_language_data): Likewise.
9375 (rust_language::demangle): New member function.
9376
fbfb0a46
AB
93772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9378
9379 * ada-lang.c (ada_language_data): Delete la_print_type
9380 initializer.
9381 (ada_language::print_type): New member function.
9382 * c-lang.c (c_language_data): Delete la_print_type initializer.
9383 (c_language::print_type): New member function.
9384 (cplus_language_data): Delete la_print_type initializer.
9385 (cplus_language::print_type): New member function.
9386 (asm_language_data): Delete la_print_type initializer.
9387 (asm_language::print_type): New member function.
9388 (minimal_language_data): Delete la_print_type initializer.
9389 (minimal_language::print_type): New member function.
9390 * d-lang.c (d_language_data): Delete la_print_type initializer.
9391 (d_language::print_type): New member function.
9392 * f-lang.c (f_language_data): Delete la_print_type initializer.
9393 (f_language::print_type): New member function.
9394 * go-lang.c (go_language_data): Delete la_print_type initializer.
9395 (go_language::print_type): New member function.
9396 * language.c (unk_lang_print_type): Delete.
9397 (unknown_language_data): Delete la_print_type initializer.
9398 (unknown_language::print_type): New member function.
9399 (auto_language_data): Delete la_print_type initializer.
9400 (auto_language::print_type): New member function.
9401 * language.h (language_data): Delete la_print_type field.
9402 (language_defn::print_type): New function.
9403 (LA_PRINT_TYPE): Update.
9404 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9405 (m2_language::print_type): New member function.
9406 * objc-lang.c (objc_language_data): Delete la_print_type
9407 initializer.
9408 (objc_language::print_type): New member function.
9409 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9410 to opencl_language::print_type.
9411 (opencl_language_data): Delete la_print_type initializer.
9412 (opencl_language::print_type): New member function, implementation
9413 from opencl_print_type.
9414 * p-lang.c (pascal_language_data): Delete la_print_type
9415 initializer.
9416 (pascal_language::print_type): New member function.
9417 * rust-lang.c (rust_print_type): Delete, implementation moved to
9418 rust_language::print_type.
9419 (rust_language_data): Delete la_print_type initializer.
9420 (rust_language::print_type): New member function, implementation
9421 from rust_print_type.
9422
6f827019
AB
94232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9424
9425 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9426 implementation moves to...
9427 (ada_language::sniff_from_mangled_name): ...here. Update return
9428 type.
9429 (ada_language_data): Delete la_sniff_from_mangled_name
9430 initializer.
9431 * c-lang.c (c_language_data): Likewise.
9432 (cplus_language_data): Likewise.
9433 (cplus_language::sniff_from_mangled_name): New member function,
9434 implementation taken from gdb_sniff_from_mangled_name.
9435 (asm_language_data): Delete la_sniff_from_mangled_name
9436 initializer.
9437 (minimal_language_data): Likewise.
9438 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9439 implementation moves to cplus_language::sniff_from_mangled_name.
9440 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9441 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9442 moves to...
9443 (d_language::sniff_from_mangled_name): ...here.
9444 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9445 * f-lang.c (f_language_data): Likewise.
9446 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9447 moves to...
9448 (go_language::sniff_from_mangled_name): ...here.
9449 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9450 * language.c (language_sniff_from_mangled_name): Delete.
9451 (unknown_language_data): Delete la_sniff_from_mangled_name
9452 initializer.
9453 (auto_language_data): Likewise.
9454 * language.h (language_data): Delete la_sniff_from_mangled_name
9455 field.
9456 (language_defn::sniff_from_mangled_name): New function.
9457 (language_sniff_from_mangled_name): Delete declaration.
9458 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9459 field.
9460 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9461 implementation moves to...
9462 (objc_language::sniff_from_mangled_name): ...here.
9463 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9464 * opencl-lang.c (opencl_language_data): Likewise.
9465 * p-lang.c (pascal_language_data): Likewise.
9466 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9467 implementation moves to...
9468 (rust_language::sniff_from_mangled_name): ...here.
9469 (rust_language_data): Delete la_sniff_from_mangled_name
9470 initializer.
9471 * symtab.c (symbol_find_demangled_name): Call
9472 sniff_from_mangled_name member function.
9473
fb8006fd
AB
94742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9475
9476 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9477 initializer.
9478 * c-lang.c (c_language_data): Likewise.
9479 (cplus_language_data): Likewise.
9480 (cplus_language::search_name_hash): New member function.
9481 (asm_language_data): Delete la_search_name_hash initializer.
9482 (minimal_language_data): Likewise.
9483 * d-lang.c (d_language_data): Likewise.
9484 * dictionary.c (default_search_name_hash): Rename to...
9485 (language_defn::search_name_hash): ...this.
9486 * f-lang.c (f_language_data): Likewise.
9487 (f_language::search_name_hash): New member function.
9488 * go-lang.c (go_language_data): Delete la_search_name_hash
9489 initializer.
9490 * language.c (unknown_language_data): Likewise.
9491 (auto_language_data): Likewise.
9492 * language.h (struct language_data): Delete la_search_name_hash
9493 field.
9494 (language_defn::search_name_hash): Declare new member function.
9495 (default_search_name_hash): Delete declaration.
9496 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9497 initializer.
9498 * objc-lang.c (objc_language_data): Likewise.
9499 * opencl-lang.c (opencl_language_data): Likewise.
9500 * p-lang.c (pascal_language_data): Likewise.
9501 * rust-lang.c (rust_language_data): Likewise.
9502 * symtab.c (search_name_hash): Update call.
9503
8e25bafe
AB
95042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9505
9506 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9507 initializer.
9508 * c-lang.c (class compile_instance): Declare.
9509 (c_language_data): Delete la_get_compile_instance initializer.
9510 (c_language::get_compile_instance): New member function.
9511 (cplus_language_data): Delete la_get_compile_instance initializer.
9512 (cplus_language::get_compile_instance): New member function.
9513 (asm_language_data): Delete la_get_compile_instance initializer.
9514 (minimal_language_data): Likewise.
9515 * c-lang.h (c_get_compile_context): Update comment.
9516 (cplus_get_compile_context): Update comment.
9517 * compile/compile.c (compile_to_object): Update calls, don't rely
9518 on function pointer being NULL.
9519 * d-lang.c (d_language_data): Delete la_get_compile_instance
9520 initializer.
9521 * f-lang.c (f_language_data): Likewise.
9522 * go-lang.c (go_language_data): Likewise.
9523 * language.c (unknown_language_data): Likewise.
9524 (auto_language_data): Likewise.
9525 * language.h (language_data): Delete la_get_compile_instance field.
9526 (language_defn::get_compile_instance): New member function.
9527 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9528 initializer.
9529 * objc-lang.c (objc_language_data): Likewise.
9530 * opencl-lang.c (opencl_language_data): Likewise.
9531 * p-lang.c (pascal_language_data): Likewise.
9532 * rust-lang.c (rust_language_data): Likewise.
9533
4009ee92
AB
95342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9535
9536 * ada-lang.c (ada_add_all_symbols): Update comment.
9537 (ada_iterate_over_symbols): Delete, move implementation to...
9538 (ada_language::iterate_over_symbols): ...here, a new member
9539 function, rewrite to use range based for loop.
9540 (ada_language_data): Delete la_iterate_over_symbols initializer.
9541 * c-lang.c (c_language_data): Likewise.
9542 (cplus_language_data): Likewise.
9543 (asm_language_data): Likewise.
9544 (minimal_language_data): Likewise.
9545 * d-lang.c (d_language_data): Likewise.
9546 * f-lang.c (f_language_data): Likewise.
9547 * go-lang.c (go_language_data): Likewise.
9548 * language.c (unknown_language_data): Likewise.
9549 (auto_language_data): Likewise.
9550 * language.h (language_data): Delete la_iterate_over_symbols field.
9551 (language_defn::iterate_over_symbols): New member function.
9552 (LA_ITERATE_OVER_SYMBOLS): Update.
9553 * linespec.c (iterate_over_all_matching_symtabs): Update.
9554 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9555 initializer.
9556 * objc-lang.c (objc_language_data): Likewise.
9557 * opencl-lang.c (opencl_language_data): Likewise.
9558 * p-lang.c (pascal_language_data): Likewise.
9559 * rust-lang.c (rust_language_data): Likewise.
9560
54f4ca46
AB
95612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9562
9563 * ada-lang.c (ada_language_data): Delete
9564 la_lookup_transparent_type initializer.
9565 * c-lang.c (c_language_data): Likewise.
9566 (cplus_language_data): Likewise.
9567 (cplus_language::lookup_transparent_type): New member function.
9568 (asm_language_data): Delete la_lookup_transparent_type
9569 initializer.
9570 (minimal_language_data): Likewise.
9571 * d-lang.c (d_language_data): Likewise.
9572 * f-lang.c (f_language_data): Likewise.
9573 * go-lang.c (go_language_data): Likewise.
9574 * language.c (unknown_language_data): Likewise.
9575 (auto_language_data): Likewise.
9576 * language.h (struct language_data): Delete
9577 la_lookup_transparent_type field.
9578 (language_defn::lookup_transparent_type): New member function.
9579 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9580 initializer.
9581 * objc-lang.c (objc_language_data): Likewise.
9582 * opencl-lang.c (opencl_language_data): Likewise.
9583 * p-lang.c (pascal_language_data): Likewise.
9584 * rust-lang.c (rust_language_data): Likewise.
9585 * symtab.c (symbol_matches_domain): Update call.
9586
1fb314aa
AB
95872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9588
9589 * ada-lang.c (ada_language_arch_info): Delete function, move
9590 implementation to...
9591 (ada_language::language_arch_info): ...here, a new member
9592 function.
9593 (ada_language_data): Delete la_language_arch_info.
9594 * c-lang.c (c_language_data): Likewise.
9595 (c_language::language_arch_info): New member function.
9596 (cplus_language_arch_info): Delete function, move
9597 implementation to...
9598 (cplus_language::language_arch_info): ...here, a new member
9599 function.
9600 (cplus_language_data): Delete la_language_arch_info.
9601 (asm_language_data): Likewise.
9602 (asm_language::language_arch_info): New member function.
9603 (minimal_language_data): Delete la_language_arch_info.
9604 (minimal_language::language_arch_info): New member function.
9605 * d-lang.c (d_language_arch_info): Delete function, move
9606 implementation to...
9607 (d_language::language_arch_info): ...here, a new member
9608 function.
9609 (d_language_data): Delete la_language_arch_info.
9610 * f-lang.c (f_language_arch_info): Delete function, move
9611 implementation to...
9612 (f_language::language_arch_info): ...here, a new member
9613 function.
9614 (f_language_data): Delete la_language_arch_info.
9615 * go-lang.c (go_language_arch_info): Delete function, move
9616 implementation to...
9617 (go_language::language_arch_info): ...here, a new member
9618 function.
9619 (go_language_data): Delete la_language_arch_info.
9620 * language.c (unknown_language_data): Likewise.
9621 (unknown_language::language_arch_info): New member function.
9622 (auto_language_data): Delete la_language_arch_info.
9623 (auto_language::language_arch_info): New member function.
9624 (language_gdbarch_post_init): Update call to
9625 la_language_arch_info.
9626 * language.h (language_data): Delete la_language_arch_info
9627 function pointer.
9628 (language_defn::language_arch_info): New function.
9629 * m2-lang.c (m2_language_arch_info): Delete function, move
9630 implementation to...
9631 (m2_language::language_arch_info): ...here, a new member
9632 function.
9633 (m2_language_data): Delete la_language_arch_info.
9634 * objc-lang.c (objc_language_arch_info): Delete function, move
9635 implementation to...
9636 (objc_language::language_arch_info): ...here, a new member
9637 function.
9638 (objc_language_data): Delete la_language_arch_info.
9639 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9640 implementation to...
9641 (opencl_language::language_arch_info): ...here, a new member
9642 function.
9643 (opencl_language_data): Delete la_language_arch_info.
9644 * p-lang.c (pascal_language_arch_info): Delete function, move
9645 implementation to...
9646 (pascal_language::language_arch_info): ...here, a new member
9647 function.
9648 (pascal_language_data): Delete la_language_arch_info.
9649 * rust-lang.c (rust_language_arch_info): Delete function, move
9650 implementation to...
9651 (rust_language::language_arch_info): ...here, a new member
9652 function.
9653 (rust_language_data): Delete la_language_arch_info.
9654
48448202
AB
96552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9656
9657 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9658 initializer.
9659 * c-lang.c (c_language_data): Likewise.
9660 (cplus_language_data): Likewise.
9661 (cplus_language::pass_by_reference_info): New method.
9662 (asm_language_data): Delete la_pass_by_reference initializer.
9663 (minimal_language_data): Likewise.
9664 * cp-abi.c (cp_pass_by_reference): Remove use of
9665 default_pass_by_reference.
9666 * d-lang.c (d_language_data): Likewise.
9667 * f-lang.c (f_language_data): Likewise.
9668 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9669 default_pass_by_reference.
9670 * go-lang.c (go_language_data): Likewise.
9671 * language.c (language_pass_by_reference): Update.
9672 (default_pass_by_reference): Delete.
9673 (unknown_language_data): Delete la_pass_by_reference
9674 initializer.
9675 (auto_language_data): Likewise.
9676 * language.h (struct language_data): Delete la_pass_by_reference
9677 field.
9678 (language_defn::pass_by_reference_info): New member function.
9679 (default_pass_by_reference): Delete declaration.
9680 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9681 initializer.
9682 * objc-lang.c (objc_language_data): Likewise.
9683 * opencl-lang.c (opencl_language_data): Likewise.
9684 * p-lang.c (pascal_language_data): Likewise.
9685 * rust-lang.c (rust_language_data): Likewise.
9686
15e5fd35
AB
96872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9688
9689 * ada-lang.c (ada_read_var_value): Delete function, move
9690 implementation to...
9691 (ada_language::read_var_value): ...here.
9692 (ada_language_data): Delete la_read_var_value initializer.
9693 * c-lang.c (c_language_data): Likewise.
9694 (cplus_language_data): Likewise.
9695 (minimal_language_data): Likewise.
9696 * d-lang.c (d_language_data): Likewise.
9697 * f-lang.c (f_language_data): Likewise.
9698 * findvar.c (default_read_var_value): Rename to...
9699 (language_defn::read_var_value): ...this.
9700 * findvar.c (read_var_value): Update header comment, and change to
9701 call member function instead of function pointer.
9702 * go-lang.c (go_language_data): Likewise.
9703 * language.c (unknown_language_data): Delete la_read_var_value
9704 initializer.
9705 (auto_language_data): Likewise.
9706 * language.h (struct language_data): Delete la_read_var_value
9707 field.
9708 (language_defn::read_var_value): New member function.
9709 (default_read_var_value): Delete declaration.
9710 * m2-lang.c (m2_language_data): Delete la_read_var_value
9711 initializer.
9712 * objc-lang.c (objc_language_data): Likewise.
9713 * opencl-lang.c (opencl_language_data): Likewise.
9714 * p-lang.c (pascal_language_data): Likewise.
9715 * rust-lang.c (rust_language_data): Likewise.
9716 * value.h (default_read_var_value): Delete declaration.
9717
5bd40f2a
AB
97182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9719
9720 * ada-lang.c (ada_print_array_index): Delete function, move
9721 implementation to...
9722 (ada_language::print_array_index): ...here.
9723 (ada_language_data): Delete la_print_array_index initializer.
9724 * c-lang.c (c_language_data): Likewise.
9725 (cplus_language_data): Likewise.
9726 (minimal_language_data): Likewise.
9727 * d-lang.c (d_language_data): Likewise.
9728 * f-lang.c (f_language_data): Likewise.
9729 * go-lang.c (go_language_data): Likewise.
9730 * language.c (default_print_array_index): Delete function, move
9731 implementation to...
9732 (language_defn::print_array_index): ...here.
9733 (unknown_language_data): Delete la_print_array_index initializer.
9734 (auto_language_data): Likewise.
9735 * language.h (struct language_data): Delete la_print_array_index
9736 field.
9737 (language_defn::print_array_index): New member function.
9738 (LA_PRINT_ARRAY_INDEX): Update.
9739 (default_print_array_index): Delete declaration.
9740 * m2-lang.c (m2_language_data): Delete la_print_array_index
9741 initializer.
9742 * objc-lang.c (objc_language_data): Likewise.
9743 * opencl-lang.c (opencl_language_data): Likewise.
9744 * p-lang.c (pascal_language_data): Likewise.
9745 * rust-lang.c (rust_language_data): Likewise.
9746
0874fd07
AB
97472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9748
9749 * gdb/ada-lang.c (ada_language_defn): Convert to...
9750 (ada_language_data): ...this.
9751 (class ada_language): New class.
9752 (ada_language_defn): New static global.
9753 * gdb/c-lang.c (c_language_defn): Convert to...
9754 (c_language_data): ...this.
9755 (class c_language): New class.
9756 (c_language_defn): New static global.
9757 (cplus_language_defn): Convert to...
9758 (cplus_language_data): ...this.
9759 (class cplus_language): New class.
9760 (cplus_language_defn): New static global.
9761 (asm_language_defn): Convert to...
9762 (asm_language_data): ...this.
9763 (class asm_language): New class.
9764 (asm_language_defn): New static global.
9765 (minimal_language_defn): Convert to...
9766 (minimal_language_data): ...this.
9767 (class minimal_language): New class.
9768 (minimal_language_defn): New static global.
9769 * gdb/d-lang.c (d_language_defn): Convert to...
9770 (d_language_data): ...this.
9771 (class d_language): New class.
9772 (d_language_defn): New static global.
9773 * gdb/f-lang.c (f_language_defn): Convert to...
9774 (f_language_data): ...this.
9775 (class f_language): New class.
9776 (f_language_defn): New static global.
9777 * gdb/go-lang.c (go_language_defn): Convert to...
9778 (go_language_data): ...this.
9779 (class go_language): New class.
9780 (go_language_defn): New static global.
9781 * gdb/language.c (unknown_language_defn): Remove declaration.
9782 (current_language): Initialize to nullptr, real initialization is
9783 moved to _initialize_language.
9784 (languages): Delete global.
9785 (language_defn::languages): Define.
9786 (set_language_command): Use language_defn::languages.
9787 (set_language): Likewise.
9788 (range_error): Likewise.
9789 (language_enum): Likewise.
9790 (language_def): Likewise.
9791 (add_set_language_command): Use language_def::languages for the
9792 language list, and language_def to lookup language pointers.
9793 (skip_language_trampoline): Use language_defn::languages.
9794 (unknown_language_defn): Convert to...
9795 (unknown_language_data): ...this.
9796 (class unknown_language): New class.
9797 (unknown_language_defn): New static global.
9798 (auto_language_defn): Convert to...
9799 (auto_language_data): ...this.
9800 (class auto_language): New class.
9801 (auto_language_defn): New static global.
9802 (language_gdbarch_post_init): Use language_defn::languages.
9803 (_initialize_language): Initialize current_language.
9804 * gdb/language.h (struct language_defn): Rename to...
9805 (struct language_data): ...this.
9806 (struct language_defn): New.
9807 (auto_language_defn): Delete.
9808 (unknown_language_defn): Delete.
9809 (minimal_language_defn): Delete.
9810 (ada_language_defn): Delete.
9811 (asm_language_defn): Delete.
9812 (c_language_defn): Delete.
9813 (cplus_language_defn): Delete.
9814 (d_language_defn): Delete.
9815 (f_language_defn): Delete.
9816 (go_language_defn): Delete.
9817 (m2_language_defn): Delete.
9818 (objc_language_defn): Delete.
9819 (opencl_language_defn): Delete.
9820 (pascal_language_defn): Delete.
9821 (rust_language_defn): Delete.
9822 * gdb/m2-lang.c (m2_language_defn): Convert to...
9823 (m2_language_data): ...this.
9824 (class m2_language): New class.
9825 (m2_language_defn): New static global.
9826 * gdb/objc-lang.c (objc_language_defn): Convert to...
9827 (objc_language_data): ...this.
9828 (class objc_language): New class.
9829 (objc_language_defn): New static global.
9830 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9831 (opencl_language_data): ...this.
9832 (class opencl_language): New class.
9833 (opencl_language_defn): New static global.
9834 * gdb/p-lang.c (pascal_language_defn): Convert to...
9835 (pascal_language_data): ...this.
9836 (class pascal_language): New class.
9837 (pascal_language_defn): New static global.
9838 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9839 language pointer, update comment format.
9840 * gdb/rust-lang.c (rust_language_defn): Convert to...
9841 (rust_language_data): ...this.
9842 (class rust_language): New class.
9843 (rust_language_defn): New static global.
9844
1313c56e
AB
98452020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9846
9847 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9848 member variable.
9849 <m_stmt_at_address>: New member variable.
9850 (lnp_state_machine::record_line): Don't record some lines, update
9851 tracking of is_stmt at the same address.
9852 (lnp_state_machine::lnp_state_machine): Initialise new member
9853 variables.
9854
b7ed9f3d
ST
98552020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9856
9857 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9858 "-include gnu-nat-mig.h".
9859 * gnu-nat-mig.h: New file.
9860 * gnu-nat.c: Include "gnu-nat-mig.h".
9861 (exc_server, msg_reply_server, notify_server,
9862 process_reply_server): Remove declarations.
9863
14a8ad62
ST
98642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9865
9866 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9867 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9868 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9869 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9870 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9871 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9872 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9873 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9874 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9875 to gnu_nat_target class.
9876 * gnu-nat.c: Likewise.
9877 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9878 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9879 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9880 object.
9881 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9882 instead of `gnu_target'.
9883
0af5e106
ST
98842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9885
9886 * i386-gnu-tdep.c: Include "gdbcore.h"
9887 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9888 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9889 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9890 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9891 i386_gnu_sigcontext_addr): New functions
9892 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9893 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9894 tdep.
9895
078f2fc9
ST
98962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9897
9898 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9899 before fork_inferior call. Avoid calling it if target_is_pushed returns
9900 true.
9901
53dff92c
ST
99022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9903
9904 * gnu-nat.h (gnu_target): New variable declaration.
9905 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9906 gnu_target.
9907 * gnu-nat.c (gnu_target): New variable.
9908 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9909 add_thread_silent, and add_thread calls.
9910 (gnu_nat_target::create_inferior): Pass gnu_target to
9911 add_thread_silent, thread_change_ptid call.
9912 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9913 call.
9914
5a8b8627
ST
99152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9916
9917 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9918 (gnu_nat_target::find_memory_regions): Remove unused
9919 `old_address' variable.
9920
366f550a
ST
99212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9922
9923 * gnu-nat.c: Include "gdbarch.h".
9924
f14871bf
ST
99252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9926
9927 * reply_mig_hack.awk (Error return): Cast function through
9928 void *, to bypass compiler function call check.
9929
c6887cfb
ST
99302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9931
9932 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9933 $(srcdir)/reply_mig_hack.awk.
9934
6930bffe
ST
99352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9936
9937 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9938
112c22ed
JG
99392020-05-30 Jonny Grant <jg@jguk.org>
9940
9941 * configure.ac (ACX_BUGURL): change bug URL to https.
9942
f68f85b5
PA
99432020-05-30 Pedro Alves <palves@redhat.com>
9944
9945 * cp-support.c (replace_typedefs_template): New.
9946 (replace_typedefs_qualified_name): Handle
9947 DEMANGLE_COMPONENT_TEMPLATE.
9948
976ca316
SM
99492020-05-29 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9952 dwarf2/index-cache.h, dwarf2/index-write.c,
9953 dwarf2/index-write.h, dwarf2/line-header.c,
9954 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9955 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9956 variables and fields from `dwarf2_per_objfile` to just
9957 `per_objfile` throughout.
9958
989ade05
SM
99592020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9960
9961 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9962 <push_dwarf_reg_entry_value>: Add comment.
9963
c47bae85
KB
99642020-05-28 Kevin Buettner <kevinb@redhat.com>
9965 Keith Seitz <keiths@redhat.com>
9966
9967 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9968 instead of PyEval_ReleaseLock.
9969 (class gdbpy_gil): Move to earlier in file.
9970 (finalize_python): Set gdb_python_initialized.
9971 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9972 when not initialized.
9973
44486dcf
SM
99742020-05-28 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9977 <push_dwarf_reg_entry_value>: Remove assert. Override
9978 per_objfile with caller_per_objfile.
9979
f030440d
TV
99802020-05-28 Tom de Vries <tdevries@suse.de>
9981
9982 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9983 PR gold/15646 workaround to symbol kind "type".
9984
f0fbb768
TT
99852020-05-27 Tom Tromey <tromey@adacore.com>
9986
9987 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9988
af0b2a3e
TT
99892020-05-27 Tom Tromey <tromey@adacore.com>
9990
9991 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9992 Use htab_find_with_hash.
9993 <add_abbrev>: Remove "abbrev_number" parameter.
9994 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9995 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9996 (hash_abbrev): Add comment.
9997 (abbrev_table::lookup_abbrev): Move to header file.
9998 (abbrev_table::read): Update.
9999
7d00ffec
TT
100002020-05-27 Tom Tromey <tromey@adacore.com>
10001
10002 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10003 method.
10004 <canonical_name>: New member.
10005 <raw_name>: Rename from "name".
10006 (partial_die_info): Initialize canonical_name.
10007 (scan_partial_symbols): Check raw_name.
10008 (partial_die_parent_scope, partial_die_full_name)
10009 (add_partial_symbol, add_partial_subprogram)
10010 (add_partial_enumeration, load_partial_dies): Use "name" method.
10011 (partial_die_info::name): New method.
10012 (partial_die_info::read, guess_partial_die_structure_name)
10013 (partial_die_info::fixup): Update.
10014
697bba18
TT
100152020-05-27 Tom Tromey <tromey@adacore.com>
10016
10017 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10018 <get_ref_die_offset>: Inline.
10019 <get_ref_die_offset_complaint>: New method.
10020 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10021 (attribute::get_ref_die_offset_complaint): Rename from
10022 get_ref_die_offset. Just issue complaint.
10023
c17ace43
HD
100242020-05-27 Hannes Domani <ssbssa@yahoo.de>
10025
10026 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10027
96445f0b
HD
100282020-05-27 Hannes Domani <ssbssa@yahoo.de>
10029
10030 * exec.c (exec_file_attach): Use errno value of first openp failure.
10031
ac637ec3
HD
100322020-05-27 Hannes Domani <ssbssa@yahoo.de>
10033
10034 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10035 Don't close thread handle.
10036
17ee85fc
TT
100372020-05-27 Tom Tromey <tom@tromey.com>
10038 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10041 shared_ptr.
10042 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10043 member.
10044 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10045 dwarf2_per_bfd_objfile_data_key>: New globals.
10046 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10047 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10048 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10049 shared.
10050 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10051 short-circuit when sharing.
10052 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10053 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10054
39b16f87
SM
100552020-05-27 Simon Marchi <simon.marchi@efficios.com>
10056
10057 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10058 to...
10059 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10060 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10061
fcf23d5b
SM
100622020-05-27 Simon Marchi <simon.marchi@efficios.com>
10063
10064 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10065 build_name_components, find_name_components_bounds>:
10066 Add per_objfile parameter.
10067 (struct mapped_index) <symbol_name_at>: Likewise.
10068 (struct mapped_debug_names): Remove constructor.
10069 <dwarf2_per_objfile>: Remove field.
10070 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10071 (mapped_index_base::find_name_components_bounds,
10072 mapped_index_base::build_name_components,
10073 dw2_expand_symtabs_matching_symbol): Likewise.
10074 (class mock_mapped_index) <symbol_name_at>: Likewise.
10075 (check_match): Likewise.
10076 (check_find_bounds_finds): Likewise.
10077 (test_mapped_index_find_name_component_bounds): Update.
10078 (CHECK_MATCH): Update.
10079 (dw2_expand_symtabs_matching): Update.
10080 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10081 per_objfile parameter.
10082 <find_vec_in_debug_names>: Likewise.
10083 <m_per_objfile>: New field.
10084 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10085 parameter.
10086 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10087 (dw2_debug_names_iterator::next): Update.
10088 (dw2_debug_names_lookup_symbol): Update.
10089 (dw2_debug_names_expand_symtabs_for_function): Update.
10090 (dw2_debug_names_map_matching_symbols): Update.
10091 (dw2_debug_names_expand_symtabs_matching): Update.
10092 (dwarf2_read_debug_names): Update.
10093
7188ed02
SM
100942020-05-27 Simon Marchi <simon.marchi@efficios.com>
10095
10096 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10097 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10098 move to dwarf2_per_objfile.
10099 <read_in_chain>: Remove.
10100 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10101 remove_all_cus, age_comp_units>: New methods.
10102 <m_dwarf2_cus>: New member.
10103 (struct dwarf2_per_cu_data) <cu>: Remove.
10104 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10105 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10106 moved to methods of dwarf2_per_objfile.
10107 (dwarf2_clear_marks): Remove.
10108 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10109 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10110 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10111 (dwarf2_per_objfile::remove_all_cus): New.
10112 (class free_cached_comp_units) <~free_cached_comp_units>:
10113 Update.
10114 (load_cu): Update.
10115 (dw2_do_instantiate_symtab): Adjust.
10116 (fill_in_sig_entry_from_dwo_entry): Adjust.
10117 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10118 (cutu_reader::cutu_reader): Likewise.
10119 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10120 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10121 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10122 and dwarf2_per_objfile::age_comp_units.
10123 (load_partial_comp_unit): Update.
10124 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10125 (process_queue): Likewise.
10126 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10127 backlink.
10128 (dwarf2_read_addr_index): Likewise.
10129 (follow_die_offset): Likewise.
10130 (dwarf2_fetch_die_loc_sect_off): Likewise.
10131 (dwarf2_fetch_constant_bytes): Likewise.
10132 (dwarf2_fetch_die_type_sect_off): Likewise.
10133 (follow_die_sig_1): Likewise.
10134 (load_full_type_unit): Likewise.
10135 (read_signatured_type): Likewise.
10136 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10137 (dwarf2_cu::~dwarf2_cu): Remove.
10138 (dwarf2_per_objfile::get_cu): New.
10139 (dwarf2_per_objfile::set_cu): New.
10140 (age_cached_comp_units): Rename to...
10141 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10142 to std::unordered_map.
10143 (free_one_cached_comp_unit): Rename to...
10144 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10145 to std::unordered_map.
10146 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10147 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10148 a dwarf2_per_objfile in data.
10149 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10150 (dwarf2_clear_marks): Remove.
10151
2e671100
SM
101522020-05-27 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10155 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10156 (init_tu_and_read_dwo_dies): Likewise.
10157 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10158 (cutu_reader::cutu_reader): Likewise.
10159 (load_partial_comp_unit): Likewise.
10160 (process_psymtab_comp_unit): Update.
10161 (build_type_psymtabs_1): Update.
10162 (process_skeletonless_type_unit): Update.
10163 (load_full_comp_unit): Update.
10164 (find_partial_die): Update.
10165 (dwarf2_read_addr_index): Update.
10166 (read_signatured_type): Update.
10167
2e6a9f79
SM
101682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10169
10170 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10171 m_header_read_in>: New fields.
10172 <get_header>: New method.
10173 * dwarf2/read.c (per_cu_header_read_in): Remove.
10174 (dwarf2_per_cu_data::get_header): New.
10175 (dwarf2_per_cu_data::addr_size): Update.
10176 (dwarf2_per_cu_data::offset_size): Update.
10177 (dwarf2_per_cu_data::ref_addr_size): Update.
10178
1b555f17
SM
101792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10180
10181 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10182 (dw2_do_instantiate_symtab): Update.
10183 (queue_and_load_all_dwo_tus): Change parameter from
10184 dwarf2_per_cu_data to dwarf2_cu.
10185 (dwarf2_fetch_die_loc_sect_off): Update.
10186 (dwarf2_fetch_constant_bytes): Update.
10187 (dwarf2_fetch_die_type_sect_off): Update.
10188
8fc0b21d
SM
101892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10190
10191 * dwarf2/read.c (process_full_comp_unit,
10192 process_full_type_unit): Remove per_cu, per_objfile paramters.
10193 Add dwarf2_cu parameter.
10194 (process_queue): Update.
10195
168c9250
SM
101962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10197
10198 * dwarf2/read.c (create_cu_from_index_list): Replace
10199 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10200 (create_cus_from_index_list): Likewise.
10201 (create_cus_from_index): Likewise.
10202 (create_signatured_type_table_from_index): Likewise.
10203 (create_cus_from_debug_names_list): Likewise.
10204 (create_cus_from_debug_names): Likewise.
10205 (dwarf2_read_gdb_index): Update.
10206 (dwarf2_read_debug_names): Update.
10207
e286671b
TT
102082020-05-27 Tom Tromey <tom@tromey.com>
10209 Simon Marchi <simon.marchi@efficios.com>
10210
10211 * dwarf2/read.h (struct dwarf2_per_objfile)
10212 <get_type_for_signatured_type, set_type_for_signatured_type>:
10213 New methods.
10214 <m_type_map>: New member.
10215 (struct signatured_type) <type>: Remove.
10216 * dwarf2/read.c
10217 (dwarf2_per_objfile::get_type_for_signatured_type,
10218 dwarf2_per_objfile::set_type_for_signatured_type): New.
10219 (get_signatured_type): Use new methods.
10220
8adb8487
TT
102212020-05-27 Tom Tromey <tom@tromey.com>
10222 Simon Marchi <simon.marchi@efficios.com>
10223
10224 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10225 (struct dwarf2_per_objfile) <type_units>: New member.
10226 <get_type_unit_group_unshareable>: New method.
10227 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10228 num_symtabs, symtabs>: Remove; move to
10229 type_unit_group_unshareable.
10230 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10231 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10232 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10233
127bbf4b
SM
102342020-05-27 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * dwarf2/read.h (struct dwarf2_per_cu_data):
10237 <dwarf2_per_objfile>: Remove.
10238 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10239 dwarf2_per_objfile.
10240 (create_signatured_type_table_from_index): Likewise.
10241 (create_signatured_type_table_from_debug_names): Likewise.
10242 (create_debug_type_hash_table): Likewise.
10243 (fill_in_sig_entry_from_dwo_entry): Likewise.
10244 (create_type_unit_group): Likewise.
10245 (read_comp_units_from_section): Likewise.
10246 (create_cus_hash_table): Likewise.
10247
f6e649dd
SM
102482020-05-27 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10251 dwarf2_per_cu_data::dwarf2_per_objfile.
10252 (compute_compunit_symtab_includes): Likewise.
10253 (dwarf2_cu::start_symtab): Likewise.
10254
aa66c379
SM
102552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10256
10257 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10258 parameter.
10259 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10260 (read_namespace_alias): Update.
10261 (lookup_die_type): Update.
10262 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10263 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10264 Update.
10265 (disassemble_dwarf_expression): Update.
10266
120ce1b5
SM
102672020-05-27 Simon Marchi <simon.marchi@efficios.com>
10268
10269 * dwarf2/read.h (struct dwarf2_queue_item): Add
10270 dwarf2_per_objfile parameter, assign new parameter.
10271 <per_objfile>: New field.
10272 * dwarf2/read.c (free_one_cached_comp_unit): Add
10273 dwarf2_per_objfile parameter.
10274 (queue_comp_unit): Likewise.
10275 (dw2_do_instantiate_symtab): Update.
10276 (process_psymtab_comp_unit): Update.
10277 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10278 (process_imported_unit_die): Update.
10279 (queue_and_load_dwo_tu): Update.
10280 (follow_die_offset): Update.
10281 (follow_die_sig_1): Update.
10282
9f47c707
SM
102832020-05-27 Simon Marchi <simon.marchi@efficios.com>
10284
10285 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10286 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10287 (read_call_site_scope): Assign per_objfile.
10288 (dwarf2_per_cu_data::objfile): Remove.
10289 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10290 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10291 dwarf2_per_objfile parameter.
10292 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10293 dwarf2_per_objfile parameter.
10294 (dwarf_expr_reg_to_entry_parameter): Add output
10295 dwarf2_per_objfile parameter.
10296 (locexpr_get_frame_base): Update.
10297 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10298 <push_dwarf_reg_entry_value>: Update.
10299 <call_site_to_target_addr>: Update.
10300 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10301 parameter.
10302 (value_of_dwarf_reg_entry): Update.
10303 (rw_pieced_value): Update.
10304 (indirect_synthetic_pointer): Update.
10305 (dwarf2_evaluate_property): Update.
10306 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10307 parameter.
10308 (locexpr_read_variable): Update.
10309 (locexpr_get_symbol_read_needs): Update.
10310 (loclist_read_variable): Update.
10311
14095eb3
SM
103122020-05-27 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10315 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10316 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10317 parameter.
10318 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10319 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10320 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10321 parameter.
10322 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10323 sect_variable_value): Add dwarf2_per_objfile parameter.
10324 (class dwarf_evaluate_loc_desc) <dwarf_call,
10325 dwarf_variable_value>: Update.
10326 (fetch_const_value_from_synthetic_pointer): Add
10327 dwarf2_per_objfile parameter.
10328 (fetch_const_value_from_synthetic_pointer): Update.
10329 (coerced_pieced_ref): Update.
10330 (class symbol_needs_eval_context) <dwarf_call,
10331 dwarf_variable_value>: Update.
10332 (dwarf2_compile_expr_to_ax): Update.
10333
3c3cd3d4
SM
103342020-05-27 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10337 parameter.
10338 (dwarf2_evaluate_loc_desc_full): Update.
10339
82ca3f51
SM
103402020-05-27 Simon Marchi <simon.marchi@efficios.com>
10341
10342 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10343 parameter.
10344 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10345 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10346 dwarf2_per_objfile parameter.
10347 (decode_debug_loc_dwo_addresses): Likewise.
10348 (dwarf2_find_location_expression): Update.
10349 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10350 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10351 parameter.
10352 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10353 parameter.
10354 (locexpr_describe_location_1): Likewise.
10355 (locexpr_describe_location): Update.
10356
4b167ea1
SM
103572020-05-27 Simon Marchi <simon.marchi@efficios.com>
10358
10359 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10360 Remove.
10361 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10362 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10363 (dwarf2_compile_property_to_c): Update.
10364 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10365 use text offset from objfile.
10366 (locexpr_tracepoint_var_ref): Update.
10367 (locexpr_generate_c_location): Update.
10368 (loclist_describe_location): Update.
10369 (loclist_tracepoint_var_ref): Update.
10370 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10371 dwarf2_per_objfile parameter.
10372 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10373 use text offset from objfile.
10374 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10375
89b07335
SM
103762020-05-27 Simon Marchi <simon.marchi@efficios.com>
10377
10378 * dwarf2/expr.h (struct dwarf_expr_context)
10379 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10380 <offset>: Remove.
10381 <per_objfile>: New member.
10382 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10383 dwarf2_per_objfile parameter. Don't set offset, set
10384 per_objfile.
10385 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10386 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10387 a dwarf2_per_objfile object instead of an offset.
10388 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10389 constructor.
10390 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10391 to dwarf2_expr_executor constructor. Don't set offset.
10392 (dwarf2_fetch_cfa_info): Update.
10393 (struct dwarf2_frame_cache) <text_offset>: Remove.
10394 <per_objfile>: New field.
10395 (dwarf2_frame_cache): Update.
10396 (dwarf2_frame_prev_register): Update.
10397 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10398 <dwarf_evaluate_loc_desc>: Add constructor.
10399 (dwarf2_evaluate_loc_desc_full): Update.
10400 (dwarf2_locexpr_baton_eval): Update.
10401 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10402 Add constructor.
10403 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10404
293e7e51
SM
104052020-05-27 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10408 addr_sized_int_type>: Move to dwarf2_cu.
10409 <int_type>: Move to dwarf2_per_objfile.
10410 (struct dwarf2_per_objfile) <int_type>: Move here.
10411 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10412 addr_sized_int_type>: Move here.
10413 (read_func_scope): Update.
10414 (read_array_type): Update.
10415 (read_tag_string_type): Update.
10416 (attr_to_dynamic_prop): Update.
10417 (dwarf2_per_cu_data::int_type): Rename to...
10418 (dwarf2_per_objfile::int_type): ... this.
10419 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10420 (dwarf2_cu::addr_sized_int_type): ... this.
10421 (read_subrange_type): Update.
10422 (dwarf2_per_cu_data::addr_type): Rename to...
10423 (dwarf2_cu::addr_type): ... this.
10424 (set_die_type): Update.
10425
64874a40
SM
104262020-05-27 Simon Marchi <simon.marchi@efficios.com>
10427
10428 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10429 data through per_cu->cu.
10430
4ab09049
SM
104312020-05-27 Simon Marchi <simon.marchi@efficios.com>
10432
10433 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10434 dwarf2_per_cu_data parameter fo dwarf2_cu.
10435 (lookup_dwo_type_unit): Likewise.
10436 (read_cutu_die_from_dwo): Likewise.
10437 (lookup_dwo_unit): Likewise.
10438 (open_and_init_dwo_file): Likewise.
10439 (lookup_dwo_cutu): Likewise.
10440 (lookup_dwo_comp_unit): Likewise.
10441 (lookup_dwo_type_unit): Likewise.
10442 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10443 (cutu_reader::cutu_reader): Update.
10444
47b14e86
SM
104452020-05-27 Simon Marchi <simon.marchi@efficios.com>
10446
10447 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10448 parameter.
10449 (process_full_type_unit): Likewise.
10450 (process_queue): Update.
10451
43182c09
SM
104522020-05-27 Simon Marchi <simon.marchi@efficios.com>
10453
10454 * dwarf2/read.c (recursively_compute_inclusions): Add
10455 dwarf2_per_objfile parameter.
10456 (compute_compunit_symtab_includes): Likewise.
10457 (process_cu_includes): Update.
10458
7aa104c4
SM
104592020-05-27 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10462 parameter.
10463 (create_type_unit_group): Update.
10464 (process_psymtab_comp_unit_reader): Update.
10465 (build_type_psymtabs_reader): Update.
10466
e3beb21d
SM
104672020-05-27 Simon Marchi <simon.marchi@efficios.com>
10468
10469 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10470 object through m_this_cu->cu.
10471
d460f660
SM
104722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10473
10474 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10475 the info parameter.
10476 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10477
ab432490
SM
104782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10479
10480 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10481 per_objfile parameter.
10482 (load_full_type_unit): Add per_objfile parameter.
10483 (read_signatured_type): Likewise.
10484 (load_full_comp_unit): Likewise.
10485 (load_cu): Likewise.
10486 (dw2_do_instantiate_symtab): Likewise.
10487 (dw2_get_file_names): Likewise.
10488 (dw2_map_symtabs_matching_filename): Update.
10489 (dw_expand_symtabs_matching_file_matcher): Update.
10490 (dw2_map_symbol_filenames): Update.
10491 (process_psymtab_comp_unit): Add per_objfile parameter.
10492 (build_type_psymtabs_1): Update.
10493 (process_skeletonless_type_unit): Update.
10494 (dwarf2_build_psymtabs_hard): Update.
10495 (load_partial_comp_unit): Add per_objfile parameter.
10496 (scan_partial_symbols): Update.
10497 (load_full_comp_unit): Add per_objfile parameter.
10498 (process_imported_unit_die): Update.
10499 (create_cus_hash_table): Update.
10500 (find_partial_die): Update.
10501 (dwarf2_read_addr_index): Update.
10502 (follow_die_offset): Update.
10503 (dwarf2_fetch_die_loc_sect_off): Update.
10504 (dwarf2_fetch_constant_bytes): Update.
10505 (dwarf2_fetch_die_type_sect_off): Update.
10506 (follow_die_sig_1): Update.
10507 (load_full_type_unit): Add per_objfile parameter.
10508 (read_signatured_type): Likewise.
10509
313bad1b
SM
105102020-05-27 Simon Marchi <simon.marchi@efficios.com>
10511
10512 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10513 of objfile_name.
10514
c3699833
SM
105152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10516
10517 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10518 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10519 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10520 field.
10521 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10522 (create_cus_from_index): Update.
10523 (dwarf2_read_gdb_index): Update.
10524 (create_cus_from_debug_names): Update.
10525 (dwarf2_read_debug_names): Update.
10526 (get_abbrev_section_for_cu): Update.
10527 (create_all_comp_units): Update.
10528 (read_attribute_value): Update.
10529 (get_debug_line_section): Update.
10530 * dwarf2/index-cache.c (index_cache::store): Update.
10531 * dwarf2/index-write.c (save_gdb_index_command): Update.
10532 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10533
1859c670
SM
105342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10535
10536 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10537 member.
10538 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10539 dwarf2_per_cu_data::per_bfd.
10540 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10541 (create_type_unit_group): Likewise.
10542 (queue_comp_unit): Remove reference to
10543 per_cu->dwarf2_per_objfile.
10544 (maybe_queue_comp_unit): Likewise.
10545 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10546 (create_cus_hash_table): Assign new field.
10547
5e22e966
SM
105482020-05-27 Simon Marchi <simon.marchi@efficios.com>
10549
10550 * dwarf2/read.c: Replace
10551 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10552 dwarf2_cu->per_objfile throughout.
10553
97a1449a
SM
105542020-05-27 Simon Marchi <simon.marchi@efficios.com>
10555
10556 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10557 parameter, don't use per_cu->dwarf2_per_objfile.
10558 (dw2_instantiate_symtab): Likewise.
10559 (dw2_find_last_source_symtab): Update.
10560 (dw2_map_expand_apply): Update.
10561 (dw2_lookup_symbol): Update.
10562 (dw2_expand_symtabs_for_function): Update.
10563 (dw2_expand_all_symtabs): Update.
10564 (dw2_expand_symtabs_with_fullname): Update.
10565 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10566 don't use per_cu->dwarf2_per_objfile.
10567 (dw2_expand_marked_cus): Update.
10568 (dw2_find_pc_sect_compunit_symtab): Update.
10569 (dw2_debug_names_lookup_symbol): Update.
10570 (dw2_debug_names_expand_symtabs_for_function): Update.
10571 (dw2_debug_names_map_matching_symbols): Update.
10572 (dwarf2_psymtab::expand_psymtab): Update.
10573
9e021579
SM
105742020-05-27 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10577 <per_objfile>: New member.
10578 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10579 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10580 call to dwarf2_cu.
10581 (cutu_reader::cutu_reader): Update.
10582 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10583
ae090bdb
SM
105842020-05-27 Simon Marchi <simon.marchi@efficios.com>
10585
10586 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10587 struct dwarf2_per_objfile.
10588 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10589 dwarf2_per_bfd.
10590 * dwarf2/read.c (set_die_type): Update.
10591 (get_die_type_at_offset): Update.
10592
af758d11
SM
105932020-05-27 Tom Tromey <tom@tromey.com>
10594 Simon Marchi <simon.marchi@efficios.com>
10595
10596 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10597 method.
10598 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10599 get_symtab, set_symtab>: New methods.
10600 <m_symtabs>: New field.
10601 (struct dwarf2_psymtab): Derive from partial_symtab.
10602 <readin_p, get_compunit_symtab>: Declare methods.
10603 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10604 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10605 New methods.
10606 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10607 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10608 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10609 (dw2_symtab_iter_next, dw2_print_stats)
10610 (dw2_expand_symtabs_with_fullname)
10611 (dw2_expand_symtabs_matching_one)
10612 (dw_expand_symtabs_matching_file_matcher)
10613 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10614 (dw2_debug_names_iterator::next)
10615 (dw2_debug_names_map_matching_symbols)
10616 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10617 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10618 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10619 New methods.
10620 (get_compunit_symtab, process_full_comp_unit)
10621 (process_full_type_unit): Update.
10622 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10623
5989a64e
SM
106242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10625
10626 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10627 then introduce a new dwarf2_per_objfile type.
10628 <read_line_string>: Move to the new dwarf2_per_objfile type.
10629 <objfile>: Likewise.
10630 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10631 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10632 dwarf2_per_objfile->per_bfd.
10633 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10634 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10635 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10636 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10637 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10638 (dwarf2_per_objfile::locate_sections): Rename to...
10639 (dwarf2_per_bfd::locate_sections): ... this.
10640 (dwarf2_per_objfile::get_cutu): Rename to...
10641 (dwarf2_per_bfd::get_cutu): ... this.
10642 (dwarf2_per_objfile::get_cu): Rename to...
10643 (dwarf2_per_bfd::get_cu): ... this.
10644 (dwarf2_per_objfile::get_tu): Rename to...
10645 (dwarf2_per_bfd::get_tu): ... this.
10646 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10647 (dwarf2_per_bfd::allocate_per_cu): ... this.
10648 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10649 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10650 (get_gdb_index_contents_ftype): Change parameter from
10651 dwarf2_per_objfile to dwarf2_per_bfd.
10652 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10653 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10654
a50264ba
TT
106552020-05-27 Tom Tromey <tom@tromey.com>
10656 Simon Marchi <simon.marchi@efficios.com>
10657
10658 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10659 (allocate_piece_closure): Set "per_objfile" member.
10660 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10661 (locexpr_describe_location, loclist_describe_location): Use new
10662 member.
10663 * dwarf2/read.c (read_call_site_scope)
10664 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10665 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10666 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10667 handle_data_member_location): Set per_objfile member.
10668 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10669 member.
10670 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10671
d3473f0c
TT
106722020-05-27 Tom Tromey <tom@tromey.com>
10673
10674 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10675 allocate_signatured_type>: Declare new methods.
10676 <m_num_psymtabs>: New member.
10677 (struct dwarf2_per_cu_data) <index>: New member.
10678 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10679 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10680 (create_cu_from_index_list): Use allocate_per_cu.
10681 (create_signatured_type_table_from_index)
10682 (create_signatured_type_table_from_debug_names)
10683 (create_debug_type_hash_table, add_type_unit)
10684 (read_comp_units_from_section): Use allocate_signatured_type.
10685
5717c425
TT
106862020-05-27 Tom Tromey <tom@tromey.com>
10687
10688 * psymtab.c (partial_map_expand_apply)
10689 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10690 (psym_lookup_global_symbol_language)
10691 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10692 (psym_print_stats, psym_expand_symtabs_for_function)
10693 (psym_map_symbol_filenames, psym_map_matching_symbols)
10694 (psym_expand_symtabs_matching)
10695 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10696 (maintenance_check_psymtabs): Update.
10697 * psympriv.h (struct partial_symtab) <readin_p,
10698 get_compunit_symtab>: Add objfile parameter.
10699 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10700 Likewise.
10701 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10702 get_compunit_symtab>: Likewise.
10703 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10704
45940949
TT
107052020-05-27 Tom Tromey <tom@tromey.com>
10706
10707 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10708 member.
10709 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10710 (create_cu_from_index_list)
10711 (create_signatured_type_table_from_index)
10712 (create_signatured_type_table_from_debug_names)
10713 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10714 (dwarf2_create_include_psymtab)
10715 (create_debug_type_hash_table, add_type_unit)
10716 (create_type_unit_group, read_comp_units_from_section)
10717 (dwarf2_compute_name, create_cus_hash_table)
10718 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10719 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10720 obstack.
10721 (dw2_get_real_path): Likewise. Change argument to
10722 dwarf2_per_objfile.
10723
f8c6d152
LM
107242020-05-27 Luis Machado <luis.machado@linaro.org>
10725
10726 PR tdep/26000
10727 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10728 for ldrd (immediate).
10729
e98d2e6d
PW
107302020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10731
10732 * command.h: Add comment giving the name of class_tui.
10733 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10734 create the fake command for the help for class_tui.
10735
53a47a3e
TT
107362020-05-26 Tom Tromey <tromey@adacore.com>
10737
10738 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10739 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10740 (val_atr): New function.
10741 (value_val_atr): Use it.
10742 * ada-valprint.c (print_optional_low_bound): Change low bound
10743 handling for enums.
10744 (val_print_packed_array_elements): Don't call discrete_position.
10745 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10746 discrete_position for enum types.
10747 * language.c (default_print_array_index): Change type.
10748 * language.h (struct language_defn) <la_print_array_index>: Add
10749 index_type parameter, change type of index_value.
10750 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10751 (default_print_array_index): Update.
10752 * valprint.c (maybe_print_array_index): Don't call
10753 value_from_longest. Update.
10754 (value_print_array_elements): Don't call discrete_position.
10755
0bc2354b
TT
107562020-05-26 Tom Tromey <tromey@adacore.com>
10757
10758 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10759 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10760
1218a4bf
CDA
107612020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10762
10763 PR gdb/13519
10764 * avr-tdep.c (avr_integer_to_address): Return data or code
10765 address accordingly to the second 'type' argument of the
10766 function.
10767
92651b1d
MW
107682020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10769
10770 * infcmd.c, inferior.h: (construct_inferior_arguments):
10771 Moved function from here to gdbsupport/common-inferior.{h,cc}
10772
0a4f5f8c
TT
107732020-05-23 Tom Tromey <tom@tromey.com>
10774
10775 Revert commit eca1f90c:
10776 * NEWS: Remove entry for completion styling.
10777 * completer.c (_rl_completion_prefix_display_length): Move
10778 declaration later.
10779 (gdb_fnprint): Revert.
10780 (gdb_display_match_list_1): Likewise.
10781 * cli/cli-style.c (completion_prefix_style)
10782 (completion_difference_style, completion_suffix_style): Remove.
10783 (_initialize_cli_style): Revert.
10784 * cli/cli-style.h (completion_prefix_style)
10785 (completion_difference_style, completion_suffix_style): Don't
10786 declare.
10787
e08bd6c5
PA
107882020-05-24 Pedro Alves <palves@redhat.com>
10789
10790 * symtab.c (completion_list_add_name): Return boolean indication
10791 of whether the symbol matched.
10792 (completion_list_add_symbol): Don't try to remove C++ aliases if
10793 the symbol didn't match in the first place.
10794 * symtab.h (completion_list_add_name): Return bool.
10795
ceacbf6e
SM
107962020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10797
10798 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10799 type::field.
10800
26f16254
JB
108012020-05-23 Joel Brobecker <brobecker@adacore.com>
10802
10803 GDB 9.2 released.
10804
eca1f90c
TT
108052020-05-23 Tom Tromey <tom@tromey.com>
10806
10807 * NEWS: Add entry for completion styling.
10808 * completer.c (_rl_completion_prefix_display_length): Move
10809 declaration earlier.
10810 (gdb_fnprint): Use completion_style.
10811 (gdb_display_match_list_1): Likewise.
10812 * cli/cli-style.c (completion_prefix_style)
10813 (completion_difference_style, completion_suffix_style): New
10814 globals.
10815 (_initialize_cli_style): Register new globals.
10816 * cli/cli-style.h (completion_prefix_style)
10817 (completion_difference_style, completion_suffix_style): Declare.
10818
51e2cfa2
PA
108192020-05-23 Pedro Alves <palves@redhat.com>
10820
10821 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10822 (parse_escape): Use ISDIGIT instead of isdigit.
10823 (puts_debug): Use gdb_isprint instead of isprint.
10824 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10825 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10826 ISSPACE instead of isspace.
10827 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10828 instead of isspace.
10829 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10830 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10831 instead of isxdigit and ISDIGIT instead of isdigit.
10832
80fc5e77
SM
108332020-05-22 Simon Marchi <simon.marchi@efficios.com>
10834
10835 * gdbtypes.h (struct type) <field>: New method.
10836 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10837 or type::field.
10838
3cabb6b0
SM
108392020-05-22 Simon Marchi <simon.marchi@efficios.com>
10840
10841 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10842 (TYPE_FIELDS): Use type::fields. Change all call sites that
10843 modify the propery to use type::set_fields instead.
10844
1f704f76
SM
108452020-05-22 Simon Marchi <simon.marchi@efficios.com>
10846
10847 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10848 type::num_fields instead.
10849
5e33d5f4
SM
108502020-05-22 Simon Marchi <simon.marchi@efficios.com>
10851
10852 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10853 methods.
10854 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10855 that modify the number of fields to use type::set_num_fields
10856 instead.
10857
9392ebb3
TT
108582020-05-22 Tom Tromey <tromey@adacore.com>
10859
10860 * compile/compile-object-load.h (munmap_list_free): Don't
10861 declare.
10862
7c13f4e8
AB
108632020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10864
10865 * annotate.c (annotate_source_line): Update return type, add call
10866 to update current symtab and line.
10867 * annotate.h (annotate_source_line): Update return type, and
10868 extend header comment.
10869 * source.c (info_line_command): Check annotation_level before
10870 calling annotate_source_line.
10871 * stack.c (print_frame_info): If calling annotate_source_line
10872 returns true, then don't print any other source line information.
10873
aa370940
SM
108742020-05-21 Simon Marchi <simon.marchi@efficios.com>
10875
10876 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10877
84d53fa9
SM
108782020-05-21 Simon Marchi <simon.marchi@efficios.com>
10879
10880 * coffread.c (patch_type): Remove NULL check before xfree.
10881 * corefile.c (set_gnutarget): Likewise.
10882 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10883 * exec.c (build_section_table): Likewise.
10884 * remote.c (remote_target::pass_signals): Likewise.
10885 * utils.c (n_spaces): Likewise.
10886 * cli/cli-script.c (document_command): Likewise.
10887 * i386-windows-tdep.c (core_process_module_section): Likewise.
10888 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10889
9d428aae
SM
108902020-05-20 Simon Marchi <simon.marchi@efficios.com>
10891
10892 * symfile.c (reread_symbols): Clear objfile's section_offsets
10893 vector and section indices, re-compute them by calling
10894 sym_offsets.
10895
250106a7
TT
108962020-05-20 Tom Tromey <tromey@adacore.com>
10897
10898 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10899 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10900
9a0bacfb
TV
109012020-05-20 Tom de Vries <tdevries@suse.de>
10902
10903 PR symtab/25833
10904 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10905
7b958a48
AM
109062020-05-20 Alan Modra <amodra@gmail.com>
10907
10908 PR 25993
10909 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10910 bfd_set_filename.
10911 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10912 passed to bfd_set_filename.
10913 * symfile-mem.c (add_vsyscall_page): Likewise for string
10914 passed to symbol_file_add_from_memory.
10915 (symbol_file_add_from_memory): Make name param a const char* and
10916 don't strdup.
10917
c7e97679
AM
109182020-05-20 Alan Modra <amodra@gmail.com>
10919
10920 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10921 rather than accessing bfd->filename directly.
10922 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10923 and use bfd_section_name.
10924 * dwarf2/frame.c (decode_frame_entry): Likewise.
10925 * exec.c (exec_set_section_address): Likewise.
10926 * solib-aix.c (solib_aix_bfd_open): Likewise.
10927 * stap-probe.c (get_stap_base_address): Likewise.
10928 * symfile.c (reread_symbols): Likewise.
10929
563c591b
TT
109302020-05-19 Tom Tromey <tromey@adacore.com>
10931
10932 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10933
f408d82c
SM
109342020-05-19 Simon Marchi <simon.marchi@efficios.com>
10935
10936 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10937
98c59b52
PA
109382020-05-19 Pedro Alves <palves@redhat.com>
10939
10940 * NEWS (set exec-file-mismatch): Adjust entry.
10941 * exec.c: Include "build-id.h".
10942 (validate_exec_file): Try to match build IDs instead of filenames.
10943 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10944 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10945 and pass down 'warn_if_slow'.
10946 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10947 gdb_bfd_open_closure to pass it down.
10948 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10949
4111f652
PA
109502020-05-19 Pedro Alves <palves@redhat.com>
10951
10952 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10953 * target.c (target_fileio_open_1): Rename to target_fileio_open
10954 and make extern. Use bool.
10955 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10956 (target_fileio_read_alloc_1): Adjust.
10957 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10958 (target_fileio_open_warn_if_slow): Delete declaration.
10959
ad80db5b
PA
109602020-05-19 Pedro Alves <palves@redhat.com>
10961
10962 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10963 Adjust all callers.
10964
1d6ce4d3
YS
109652020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10966
10967 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10968 whether disp is negative.
10969
9005fbbb
SM
109702020-05-19 Simon Marchi <simon.marchi@efficios.com>
10971
10972 * symfile.h (struct symfile_segment_data)
10973 <~symfile_segment_data>: Remove.
10974 <segment_info>: Change to std::vector.
10975 * symfile.c (default_symfile_segments): Update.
10976 * elfread.c (elf_symfile_segments): Update.
10977
68b888ff
SM
109782020-05-19 Simon Marchi <simon.marchi@efficios.com>
10979
10980 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10981 <segments>: New.
10982 <segment_bases, segment_sizes>: Remove.
10983 * symfile.c (default_symfile_segments): Update.
10984 * elfread.c (elf_symfile_segments): Update.
10985 * remote.c (remote_target::get_offsets): Update.
10986 * solib-target.c (solib_target_relocate_section_addresses):
10987 Update.
10988
62982abd
SM
109892020-05-19 Simon Marchi <simon.marchi@efficios.com>
10990
10991 * symfile.h (struct symfile_segment_data): Initialize fields.
10992 <~symfile_segment_data>: Add.
10993 (symfile_segment_data_up): New.
10994 (struct sym_fns) <sym_segments>: Return a
10995 symfile_segment_data_up.
10996 (default_symfile_segments): Return a symfile_segment_data_up.
10997 (free_symfile_segment_data): Remove.
10998 (get_symfile_segment_data): Return a symfile_segment_data_up.
10999 * symfile.c (default_symfile_segments): Likewise.
11000 (get_symfile_segment_data): Likewise.
11001 (free_symfile_segment_data): Remove.
11002 (symfile_find_segment_sections): Update.
11003 * elfread.c (elf_symfile_segments): Return a
11004 symfile_segment_data_up.
11005 * remote.c (remote_target::get_offsets): Update.
11006 * solib-target.c (solib_target_relocate_section_addresses):
11007 Update.
11008 * symfile-debug.c (debug_sym_segments): Return a
11009 symfile_segment_data_up.
11010
7f204339
RO
110112020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11012
e52a0f1b
RO
11013 PR build/25981
11014 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11015 Hardcode register numbers.
11016
7f204339
RO
11017 PR build/25981
11018 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11019 procfs_find_LDT_entry): Remove.
11020 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11021 procfs_find_LDT_entry): Remove.
11022 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11023 Remove.
11024
7f32a4d5
PA
110252020-05-17 Pedro Alves <palves@redhat.com>
11026 Andrew Burgess <andrew.burgess@embecosm.com>
11027 Keno Fischer <keno@juliacomputing.com>
11028
11029 PR gdb/25741
11030 * breakpoint.c (build_target_condition_list): Update comments.
11031 (build_target_command_list): Update comments and skip matching
11032 locations.
11033 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11034 a separate function. Simplify "set breakpoint auto-hw off"
11035 handling.
11036 (insert_breakpoints): Update comment.
11037 (tracepoint_locations_match): New parameter. For breakpoints,
11038 compare location types too, if the caller wants to.
11039 (handle_automatic_hardware_breakpoints): New functions.
11040 (bp_location_is_less_than): Also sort by location type and
11041 hardware breakpoint length.
11042 (update_global_location_list): Handle "set breakpoint auto-hw on"
11043 here.
11044 (update_breakpoint_locations): Ask breakpoint_locations_match to
11045 ignore location types.
11046
7d93a1e0
SM
110472020-05-16 Simon Marchi <simon.marchi@efficios.com>
11048
11049 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11050 type::name instead.
11051
d0e39ea2
SM
110522020-05-16 Simon Marchi <simon.marchi@efficios.com>
11053
11054 * gdbtypes.h (struct type) <name, set_name>: New methods.
11055 (TYPE_CODE): Use type::name. Change all call sites used to set
11056 the name to use type::set_name instead.
11057
2dab0c7b
TT
110582020-05-16 Tom Tromey <tom@tromey.com>
11059
11060 * top.c (quit_force): Update.
11061 * infrun.c (handle_no_resumed): Update.
11062 * top.h (all_uis): New function.
11063 (ALL_UIS): Remove.
11064
59f7bd8d
SM
110652020-05-16 Simon Marchi <simon.marchi@efficios.com>
11066
11067 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11068
9bf058f0
PA
110692020-05-16 Pedro Alves <palves@redhat.com>
11070
11071 * ia64-linux-nat.c
11072 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11073 Declare method.
11074 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11075
8f86ae1a
SM
110762020-05-15 Simon Marchi <simon.marchi@efficios.com>
11077
11078 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11079 (sparc64_adi_info): Likewise.
11080
d6bc0792
TT
110812020-05-15 Tom Tromey <tom@tromey.com>
11082
11083 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11084 block_objfile.
11085 (lookup_objfile_from_block): Remove.
11086 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11087 (lookup_global_symbol): Use block_objfile.
11088 * symtab.h (lookup_objfile_from_block): Don't declare.
11089 * printcmd.c (clear_dangling_display_expressions): Use
11090 block_objfile.
11091 * parse.c (operator_check_standard): Use block_objfile.
11092
8c14c3a3
TT
110932020-05-15 Tom Tromey <tom@tromey.com>
11094
11095 * language.c (language_alloc_type_symbol): Set
11096 SYMBOL_SECTION.
11097 * symtab.c (initialize_objfile_symbol): Remove.
11098 (allocate_symbol): Remove.
11099 (allocate_template_symbol): Remove.
11100 * dwarf2/read.c (fixup_go_packaging): Use "new".
11101 (new_symbol): Use "new".
11102 (read_variable): Don't call initialize_objfile_symbol. Use
11103 "new".
11104 (read_func_scope): Use "new".
11105 * xcoffread.c (process_xcoff_symbol): Don't call
11106 initialize_objfile_symbol.
11107 (SYMBOL_DUP): Remove.
11108 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11109 "new".
11110 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11111 (allocate_template_symbol): Don't declare.
11112 (struct symbol): Add copy constructor. Change defaults.
11113 * jit.c (finalize_symtab): Use "new".
11114 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11115 Use "new".
11116 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11117 (common_block_end): Use "new".
11118 * mdebugread.c (parse_symbol): Use "new".
11119 (new_symbol): Likewise.
11120
5b4a1a8d
PW
111212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11122
11123 * NEWS: Mention changes to help and apropos.
11124
57b4f16e
PW
111252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11126
11127 * command.h (enum command_class): Improve comments, document
11128 that class_alias is for user-defined aliases, give the class
11129 name for each class, remove unused class_xdb.
11130 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11131 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11132 by a precise class.
11133 * infcmd.c (_initialize_infcmd): Likewise.
11134 * reverse.c (_initialize_reverse): Likewise.
11135 * stack.c (_initialize_stack): Likewise.
11136 * symfile.c (_initialize_symfile): Likewise.
11137 * tracepoint.c (_initialize_tracepoint): Likewise.
11138
7c05caf7
PW
111392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11140
11141 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11142 when their aliased command is traversed.
11143 (help_cmd): Add fput_command_names_styled call to
11144 output command name and aliases when command has an alias.
11145
3b3aaacb
PW
111462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11147
11148 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11149 * cli/cli-decode.c (help_cmd_list): Declare as static,
11150 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11151 a command together with the command.
11152 (fput_command_name_styled, fput_command_names_styled): New functions.
11153 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11154 fput_command_name_styled.
11155 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11156 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11157
7aa1b46f
PW
111582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11159
11160 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11161 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11162 * command.h (cmd_show_list): Likewise.
11163 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11164 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11165
89bcba74
PW
111662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11167
11168 * unittests/command-def-selftests.c (traverse_command_structure):
11169 Verify all commands of a list have the same prefix command and
11170 that only the top cmdlist commands have a null prefix.
11171
3f4d92eb
PW
111722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11173
11174 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11175 as prefix, not one of its aliases.
11176 (set_cmd_prefix): Remove.
11177 (do_add_cmd): Centralize the setting of the prefix of a command, when
11178 command is defined after its full chain of prefix commands.
11179 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11180 (add_setshow_cmd_full): Likewise.
11181 (update_prefix_field_of_prefixed_commands): New function.
11182 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11183 update_prefix_field_of_prefixed_commands.
11184 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11185 addresses of remote_set_cmdlist and remote_show_cmdlist given
11186 as argument, not the address of an argument.
11187 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11188 * gdb/remote.c (_initialize_remote): Likewise.
11189
0605465f
PW
111902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11191
11192 * cli/cli-cmds.c (alias_command): Check for an existing alias
11193 using lookup_cmd_composition, as valid_command_p is too strict
11194 and forbids aliases that are the prefix of an existing alias
11195 or command.
11196 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11197 command is properly recognised as a valid command.
11198
58e6ac70
PW
111992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11200
11201 * unittests/help-doc-selftests.c: Rename to
11202 unittests/command-def-selftests.c
11203 * unittests/command-def-selftests.c (help_doc_tests): Update some
11204 comments.
11205 (command_structure_tests, traverse_command_structure): New namespace
11206 and function.
11207 (command_structure_invariants_tests): New function.
11208 (_initialize_command_def_selftests) Renamed from
11209 _initialize_help_doc_selftests, register command_structure_invariants
11210 selftest.
11211
a7b9ceb8
PW
112122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11213
11214 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11215 an alias of 'show'.
11216
b2188a06
JB
112172020-05-15 Joel Brobecker <brobecker@adacore.com>
11218
11219 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11220 ada_is_fixed_point_type. Update all callers.
11221 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11222 all callers.
11223 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11224 Update all callers.
11225 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11226 print_fixed_point_type. Update all callers.
11227 * ada-valprint.c (ada_value_print_num): Replace call to
11228 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11229
a51951c2
KB
112302020-05-14 Kevin Buettner <kevinb@redhat.com>
11231
11232 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11233 processors.
11234 (cpu_supports_bts): Add CV_AMD case.
11235
29d6859f
LM
112362020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11237 Simon Marchi <simon.marchi@efficios.com>
11238
11239 * infrun.c (stop_all_threads): Collect multiple wait events at
11240 each pass.
11241
78134374
SM
112422020-05-14 Simon Marchi <simon.marchi@efficios.com>
11243
11244 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11245 type::code instead.
11246
67607e24
SM
112472020-05-14 Simon Marchi <simon.marchi@efficios.com>
11248
11249 * gdbtypes.h (struct type) <code, set_code>: New methods.
11250 (TYPE_CODE): Use type::code. Change all call sites used to set
11251 the code to use type::set_code instead.
11252
a05575d3
TBA
112532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11254 Tom de Vries <tdevries@suse.de>
11255 Pedro Alves <palves@redhat.com>
11256
11257 PR threads/25478
11258 * infrun.c (stop_all_threads): Do NOT ignore
11259 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11260 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11261 received.
11262 (handle_no_resumed): Remove code handling a live inferior with no
11263 threads.
11264 * remote.c (has_single_non_exited_thread): New.
11265 (remote_target::update_thread_list): Do not delete a thread if is
11266 the last thread of the process.
11267 * thread.c (thread_select): Call delete_exited_threads instead of
11268 prune_threads.
11269
6ad82919
TBA
112702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11271
11272 * infrun.c (stop_all_threads): Enable/disable thread events of all
11273 targets. Move a debug message denoting the end of the function
11274 into the SCOPED_EXIT block.
11275
d890404b
TBA
112762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11277
11278 * process-stratum-target.h: Include <set>.
11279 (all_non_exited_process_targets, switch_to_target_no_thread): New
11280 function declarations.
11281 * process-stratum-target.c (all_non_exited_process_targets)
11282 (switch_to_target_no_thread): New function implementations.
11283
293b3ebc
TBA
112842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11285
11286 * infrun.c (handle_inferior_event): Extract out a piece of code
11287 into...
11288 (mark_non_executing_threads): ...this new function.
11289
7ca9b62a
TBA
112902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11291
11292 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11293 use.
11294
fc75c28b
TBA
112952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11296
11297 * regcache.c (regcache_read_pc_protected): New function
11298 implementation that returns 0 if the PC cannot read via
11299 'regcache_read_pc'.
11300 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11301 instead of 'regcache_read_pc'.
11302 (keep_going_pass_signal): Ditto.
11303
a89febbd
TT
113042020-05-13 Tom Tromey <tromey@adacore.com>
11305
11306 * ada-lang.c (align_value): Remove.
11307 (ada_template_to_fixed_record_type_1): Use align_up.
11308
f7e23710
TBA
113092020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11310
11311 * async-event.c: Update the copyright year.
11312 * async-event.h: Update the copyright year.
11313
02ff80c2
SM
113142020-05-12 Simon Marchi <simon.marchi@efficios.com>
11315
11316 * objfiles.h (is_addr_in_objfile,
11317 shared_objfile_contains_address_p): Return bool.
11318 * objfile.c (is_addr_in_objfile,
11319 shared_objfile_contains_address_p): Return bool.
11320
4fd6c7e8
TT
113212020-05-11 Tom Tromey <tromey@adacore.com>
11322
11323 * cli/cli-cmds.c (info_command): Restore.
11324 (_initialize_cli_cmds): Use add_prefix_command for "info".
11325 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11326
5eb68a39
TT
113272020-05-11 Tom Tromey <tromey@adacore.com>
11328
11329 * ada-lang.c (ada_value_primitive_field): Now public.
11330 * ada-lang.h (ada_value_primitive_field): Declare.
11331 * ada-valprint.c (print_field_values): Use
11332 ada_value_primitive_field for wrapper fields.
11333
7666722f
TV
113342020-05-11 Tom de Vries <tdevries@suse.de>
11335
11336 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11337 MODULE_DOMAIN.
11338
3ee6bb11
TV
113392020-05-11 Tom de Vries <tdevries@suse.de>
11340
11341 PR symtab/25941
11342 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11343 with length 0, if not gdb-produced.
11344 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11345
43434996
TV
113462020-05-09 Tom de Vries <tdevries@suse.de>
11347
11348 PR gdb/25955
11349 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11350 calculation.
11351
2f78cffc
TT
113522020-05-09 Tom Tromey <tom@tromey.com>
11353
11354 * top.c (server_command): Now bool.
11355 * top.h (server_command): Now bool.
11356
4f7bc5ed
TT
113572020-05-08 Tom Tromey <tromey@adacore.com>
11358
11359 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11360 already being processed.
11361
8be4b118
TT
113622020-05-08 Tom Tromey <tom@tromey.com>
11363
11364 * printcmd.c (struct display) <next>: Remove.
11365 <display>: New constructor.
11366 <exp_string>: Now a std::string.
11367 <enabled_p>: Now a bool.
11368 (display_number): Move definition earlier.
11369 (displays): Rename from display_chain. Now a std::vector.
11370 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11371 (display_command): Update.
11372 (do_one_display, disable_display)
11373 (enable_disable_display_command, do_enable_disable_display):
11374 Update.
11375 (free_display): Remove.
11376 (clear_displays): Rewrite.
11377 (delete_display): Update.
11378 (map_display_numbers): Use function_view. Remove "data"
11379 parameter. Update.
11380 (do_delete_display): Remove.
11381 (undisplay_command): Update.
11382 (do_one_display, do_displays, disable_display)
11383 (info_display_command): Update.
11384 (do_enable_disable_display): Remove.
11385 (enable_disable_display_command)
11386 (clear_dangling_display_expressions): Update.
11387
94c93c35
TT
113882020-05-08 Tom Tromey <tom@tromey.com>
11389
11390 * symtab.c (set_symbol_cache_size)
11391 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11392 (maintenance_print_symbol_cache_statistics): Update.
11393 * symmisc.c (print_symbol_bcache_statistics)
11394 (print_objfile_statistics, maintenance_print_objfiles)
11395 (maintenance_info_symtabs, maintenance_check_symtabs)
11396 (maintenance_expand_symtabs, maintenance_info_line_tables):
11397 Update.
11398 * symfile-debug.c (set_debug_symfile): Update.
11399 * source.c (forget_cached_source_info): Update.
11400 * python/python.c (gdbpy_progspaces): Update.
11401 * psymtab.c (maintenance_info_psymtabs): Update.
11402 * probe.c (parse_probes): Update.
11403 * linespec.c (iterate_over_all_matching_symtabs)
11404 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11405 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11406 * exec.c (exec_target::close): Update.
11407 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11408 * breakpoint.c (print_one_breakpoint_location)
11409 (create_longjmp_master_breakpoint)
11410 (create_std_terminate_master_breakpoint): Update.
11411 * progspace.c (program_spaces): Now a std::vector.
11412 (maybe_new_address_space): Update.
11413 (add_program_space): Remove.
11414 (program_space::program_space): Update.
11415 (remove_program_space): Update.
11416 (number_of_program_spaces): Remove.
11417 (print_program_space, update_address_spaces): Update.
11418 * progspace.h (program_spaces): Change type.
11419 (ALL_PSPACES): Remove.
11420 (number_of_program_spaces): Don't declare.
11421 (struct program_space) <next>: Remove.
11422
a1fd1ac9
TT
114232020-05-08 Tom Tromey <tom@tromey.com>
11424
11425 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11426 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11427 (enable_break): Update.
11428 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11429 (frv_fdpic_find_canonical_descriptor): Update.
11430 (frv_fetch_objfile_link_map): Update.
11431 * progspace.c (program_space::free_all_objfiles): Update.
11432 (program_space::solibs): New method.
11433 * progspace.h (struct program_space) <solibs>: New method.
11434 * solist.h (master_so_list): Don't declare.
11435 (ALL_SO_LIBS): Remove.
11436 * solib.h (so_list_head): Remove.
11437 (update_solib_list): Update comment.
11438 * solib.c (master_so_list): Remove.
11439 (solib_used, update_solib_list, solib_add)
11440 (info_sharedlibrary_command, clear_solib)
11441 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11442
38eae084
TT
114432020-05-08 Tom Tromey <tom@tromey.com>
11444
11445 * extension.c (extension_languages): Now a std::array.
11446 (ALL_EXTENSION_LANGUAGES): Remove.
11447 (get_ext_lang_defn, get_ext_lang_of_file)
11448 (eval_ext_lang_from_control_command): Update.
11449 (finish_ext_lang_initialization)
11450 (auto_load_ext_lang_scripts_for_objfile)
11451 (ext_lang_type_printers::ext_lang_type_printers)
11452 (apply_ext_lang_type_printers)
11453 (ext_lang_type_printers::~ext_lang_type_printers)
11454 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11455 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11456 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11457 (get_matching_xmethod_workers, ext_lang_colorize)
11458 (ext_lang_before_prompt): Update.
11459 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11460
596dc4ad
TT
114612020-05-08 Tom Tromey <tom@tromey.com>
11462
11463 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11464 overload.
11465 <swap_string, m_string>: Remove.
11466 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11467 Update.
11468 * stabsread.c (define_symbol, read_type): Update.
11469 * linespec.c (find_linespec_symbols): Update.
11470 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11471 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11472 * dbxread.c (read_dbx_symtab): Update.
11473 * cp-support.h (cp_canonicalize_string_full)
11474 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11475 Return unique_xmalloc_ptr.
11476 * cp-support.c (inspect_type): Update.
11477 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11478 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11479 Likewise.
11480 * c-typeprint.c (print_name_maybe_canonical): Update.
11481 * break-catch-throw.c (check_status_exception_catchpoint):
11482 Update.
11483
bf4cb9be
TV
114842020-05-08 Tom de Vries <tdevries@suse.de>
11485
11486 * infrun.c (follow_fork): Copy current_line and current_symtab to
11487 child thread.
11488
a1b68f28
SM
114892020-05-07 Simon Marchi <simon.marchi@efficios.com>
11490
11491 * async-event.c (struct async_signal_handler, struct
11492 async_event_handler): Reformat, remove typedef.
11493
98d48915
SM
114942020-05-07 Simon Marchi <simon.marchi@efficios.com>
11495
11496 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11497 access thistype->main_type->dyn_prop_list directly.
11498
7aa91313
SM
114992020-05-07 Simon Marchi <simon.marchi@efficios.com>
11500
11501 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11502 (remove_dyn_prop): Remove. Update all users to use
11503 type::remove_dyn_prop.
11504 * gdbtypes.c (remove_dyn_prop): Rename to...
11505 (type::remove_dyn_prop): ... this.
11506
5c54719c
SM
115072020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11508
11509 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11510 (add_dyn_prop): Remove. Update all users to use
11511 type::add_dyn_prop.
11512 * gdbtypes.c (add_dyn_prop): Rename to...
11513 (type::add_dyn_prop): ... this.
11514
24e99c6c
SM
115152020-05-07 Simon Marchi <simon.marchi@efficios.com>
11516
11517 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11518 (get_dyn_prop): Remove. Update all users to use
11519 type::dyn_prop.
11520 * gdbtypes.c (get_dyn_prop): Rename to...
11521 (type::dyn_prop): ... this.
11522
0d4bf016
SM
115232020-05-06 Simon Marchi <simon.marchi@efficios.com>
11524
11525 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11526
ac4a4f1c
SM
115272020-05-06 Simon Marchi <simon.marchi@efficios.com>
11528
11529 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11530 instruction, skip it if it's there.
11531
a3bbacc1
SM
115322020-05-05 Simon Marchi <simon.marchi@efficios.com>
11533
11534 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11535
c3236f84
SM
115362020-05-04 Simon Marchi <simon.marchi@efficios.com>
11537
11538 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11539 * gdbtypes.c (recursive_dump_type): Remove use of
11540 TYPE_INCOMPLETE.
11541
3b6acaee
TT
115422020-05-03 Tom Tromey <tom@tromey.com>
11543
11544 * breakpoint.c (catch_command, tcatch_command): Remove.
11545 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11546 add_show_prefix_cmd.
11547 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11548 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11549 Remove.
11550 (add_internal_problem_command): Use add_basic_prefix_cmd,
11551 add_show_prefix_cmd.
11552 * mips-tdep.c (set_mipsfpu_command): Remove.
11553 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11554 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11555 (_initialize_index_cache): Use add_basic_prefix_cmd.
11556 * memattr.c (dummy_cmd): Remove.
11557 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11558 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11559 (_initialize_tui_win): Use add_basic_prefix_cmd,
11560 add_show_prefix_cmd.
11561 * cli/cli-logging.c (set_logging_command): Remove.
11562 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11563 add_show_prefix_cmd.
11564 (show_logging_command): Remove.
11565 * target.c (target_command): Remove.
11566 (add_target): Use add_basic_prefix_cmd.
11567
a51119cd
HD
115682020-05-02 Hannes Domani <ssbssa@yahoo.de>
11569
11570 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11571
652fc23a 115722020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11573
652fc23a
PW
11574 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11575 info_command.
11576
117539e6
KR
115772020-04-30 Kamil Rytarowski <n54@gmx.com>
11578
11579 * nbsd-nat.c (nbsd_enable_proc_events)
11580 (nbsd_nat_target::post_startup_inferior): Add.
11581 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11582 (nbsd_nat_target::update_thread_list): Rewrite.
11583 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11584 "PTRACE_LWP_CREATE".
11585 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11586
102e38eb 115872020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11588
102e38eb
PW
11589 * stack.c (_initialize_stack): Remove duplicated creation
11590 of "frame" command and "f" alias.
11591
ee9d1e5f
HD
115922020-04-30 Hannes Domani <ssbssa@yahoo.de>
11593
11594 PR gdb/18706
11595 * gdbtypes.c (check_typedef): Calculate size of array of
11596 stubbed type.
11597
627c7fb8
HD
115982020-04-30 Hannes Domani <ssbssa@yahoo.de>
11599
11600 PR gdb/15559
11601 * i386-tdep.c (i386_push_dummy_call): Call
11602 i386_thiscall_push_dummy_call.
11603 (i386_thiscall_push_dummy_call): New function.
11604 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11605 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11606 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11607
ffc2844e
SM
116082020-04-29 Simon Marchi <simon.marchi@efficios.com>
11609
11610 * gdbarch.sh (do_read): Add shellcheck disable directive for
11611 warning SC2162.
11612
1207375d
SM
116132020-04-29 Simon Marchi <simon.marchi@efficios.com>
11614
11615 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11616 "referenced but not assigned" warning.
11617
9fdb2916
SM
116182020-04-29 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * gdbarch.sh: Remove code that sets fallbackdefault.
11621
759cea5e
SM
116222020-04-29 Simon Marchi <simon.marchi@efficios.com>
11623
11624 * gdbarch.sh: Use shell operators && and || instead of
11625 -a and -o.
11626
cb02ab24
SM
116272020-04-29 Simon Marchi <simon.marchi@efficios.com>
11628
11629 * gdbarch.sh: Use $(...) instead of `...`.
11630
a6fc5ffc
SM
116312020-04-29 Simon Marchi <simon.marchi@efficios.com>
11632
11633 * gdbarch.sh: Use double quotes around variables.
11634
8d113d13
SM
116352020-04-29 Simon Marchi <simon.marchi@efficios.com>
11636
11637 * gdbarch.sh: Use %s with printf, instead of variables in the
11638 format string.
11639
ed6acedd
TT
116402020-04-29 Tom Tromey <tromey@adacore.com>
11641
11642 PR ada/25875:
11643 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11644 type fields here.
11645 (read_enumeration_type): Call
11646 update_enumeration_type_from_children later. Update comments.
11647 (process_enumeration_scope): Don't create type fields.
11648
b68b1b58
KR
116492020-04-29 Kamil Rytarowski <n54@gmx.com>
11650
11651 * nbsd-tdep.c: Include "xml-syscall.h".
11652 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11653
f94b2e03
KR
116542020-04-29 Kamil Rytarowski <n54@gmx.com>
11655
11656 * nbsd-nat.c: Include "sys/wait.h".
11657 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11658 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11659 (nbsd_nat_target::remove_exec_catchpoint)
11660 (nbsd_nat_target::set_syscall_catchpoint): Add.
11661 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11662 (nbsd_nat_target::insert_exec_catchpoint)
11663 (nbsd_nat_target::remove_exec_catchpoint)
11664 (nbsd_nat_target::set_syscall_catchpoint): Add.
11665 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11666 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11667 `nbsd_get_syscall_number'.
11668
fc49bc72
TT
116692020-04-29 Tom Tromey <tom@tromey.com>
11670
11671 * stack.c (print_block_frame_labels): Remove.
11672
d642b692
HD
116732020-04-29 Hannes Domani <ssbssa@yahoo.de>
11674
11675 PR gdb/17320
11676 * ada-valprint.c (val_print_packed_array_elements): Move array
11677 end bracket to new line.
11678 (ada_val_print_string): Remove extra spaces before first array
11679 element.
11680 * c-valprint.c (c_value_print_array): Likewise.
11681 * m2-valprint.c (m2_print_array_contents): Likewise.
11682 (m2_value_print_inner): Likewise.
11683 * p-valprint.c (pascal_value_print_inner): Likewise.
11684 * valprint.c (generic_val_print_array): Likewise.
11685 (value_print_array_elements): Move first array element and array
11686 end bracket to new line.
11687
ea90f227
TV
116882020-04-29 Tom de Vries <tdevries@suse.de>
11689
11690 PR symtab/25889
11691 * linespec.c (find_method): Fix ix calculation.
11692
4498ef4f
KR
116932020-04-28 Kamil Rytarowski <n54@gmx.com>
11694
11695 * syscalls/update-netbsd.sh: New file.
11696 * syscalls/netbsd.xml: Regenerate.
11697 * data-directory/Makefile.in: Register `netbsd.xml' in
11698 `SYSCALLS_FILES'.
11699
a55e30b5
SM
117002020-04-28 Simon Marchi <simon.marchi@efficios.com>
11701
11702 * syscalls/update-freebsd.sh: Add double quotes.
11703
2b2fbab8
TT
117042020-04-28 Tom Tromey <tom@tromey.com>
11705
11706 * NEWS: Update.
11707 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11708 (cmdpy_init): Allow class_tui.
11709
a65189c9
TV
117102020-04-28 Mark Williams <mark@myosotissp.com>
11711
11712 PR gdb/24480
11713 * dwarf2read.c: Add missing assingments to list_in_scope when
11714 start_symtab was already called.
11715
1b95cdb7
SM
117162020-04-28 Simon Marchi <simon.marchi@efficios.com>
11717
11718 PR gdb/25881
11719 * dwarf2/read.c (offset_map_type): Use
11720 gdb:hash_enum<sect_offset> as hash function.
11721
15cd93d0
TV
117222020-04-28 Tom de Vries <tdevries@suse.de>
11723
11724 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11725 with DW_AT_signature.
11726
1eb39914
SM
117272020-04-27 Simon Marchi <simon.marchi@efficios.com>
11728
11729 * configure.ac: Remove check for fs_base/gs_base in
11730 user_regs_struct.
11731 * configure: Re-generate.
11732 * config.in: Re-generate.
11733 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11734 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11735 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11736
991a3e2e
LM
117372020-04-27 Luis Machado <luis.machado@linaro.org>
11738
11739 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11740 problematic inline frame unwinding situation.
11741 * frame.c (frame_id_computed_p): New function.
11742 * frame.h (frame_id_computed_p): New prototype.
11743
361ba0e8
TT
117442020-04-26 Tom Tromey <tom@tromey.com>
11745
11746 * command.h (enum command_class) <class_pseudo>: Remove.
11747
bc3609fd
PW
117482020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11749
11750 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11751 and whitespace.
11752
b9771db7
KR
117532020-04-25 Kamil Rytarowski <n54@gmx.com>
11754
ec16513e
SM
11755 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11756 `PT_GET_PROCESS_STATE' block.
b9771db7 11757
7151c1af
TT
117582020-04-24 Tom Tromey <tom@tromey.com>
11759
11760 * symtab.h (symbol_get_demangled_name): Don't declare.
11761 * symtab.c (symbol_get_demangled_name): Remove.
11762 (general_symbol_info::natural_name)
11763 (general_symbol_info::demangled_name): Update.
11764
906bb4c5
TT
117652020-04-24 Tom Tromey <tom@tromey.com>
11766
11767 PR rust/25025:
11768 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11769
bcfe6157
TT
117702020-04-24 Tom Tromey <tom@tromey.com>
11771
11772 PR symtab/12707:
11773 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11774 exists.
11775 (new_symbol): Likewise.
11776 * compile/compile-object-load.c (get_out_value_type): Use
11777 symbol_matches_search_name.
11778
f049a313
TT
117792020-04-24 Tom Tromey <tom@tromey.com>
11780
11781 * dwarf2/read.c (add_partial_symbol): Do not call
11782 compute_and_set_names.
11783
76e288d1
TT
117842020-04-24 Tom Tromey <tom@tromey.com>
11785
11786 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11787 overload.
11788
2467f4f6
TT
117892020-04-24 Tom Tromey <tom@tromey.com>
11790
11791 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11792 (add_psymbol_to_list): New overload. Make old overload call new
11793 one.
11794 * psympriv.h (add_psymbol_to_list): New overload.
11795
e61108c9
TT
117962020-04-24 Tom Tromey <tom@tromey.com>
11797
11798 * dwarf2/read.c (partial_die_info::read) <case
11799 DW_AT_linkage_name>: Use value_as_string.
11800 (dwarf2_string_attr): Use value_as_string.
11801 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11802 method.
11803 * dwarf2/attribute.c (attribute::value_as_string): New method.
11804
8c87a452
TT
118052020-04-24 Tom Tromey <tom@tromey.com>
11806
11807 * symtab.c (general_symbol_info::natural_name)
11808 (general_symbol_info::demangled_name): Check for language_rust.
11809
787de330
TT
118102020-04-24 Tom Tromey <tom@tromey.com>
11811
11812 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11813 (dwarf2_physname): ... from here.
11814 (partial_die_info::read): Add Rust "{" hack.
11815
ff985671
TT
118162020-04-24 Tom Tromey <tom@tromey.com>
11817
11818 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11819 method.
11820 (symbol_set_demangled_name): Don't declare.
11821 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11822 symbol_set_demangled_name.
11823 (general_symbol_info::set_language)
11824 (general_symbol_info::compute_and_set_names): Update.
11825 * minsyms.c (minimal_symbol_reader::install): Update.
11826 * dwarf2/read.c (new_symbol): Update.
11827
1acda803
TT
118282020-04-24 Tom Tromey <tromey@adacore.com>
11829
11830 PR python/23662:
11831 * python/py-type.c (convert_field): Handle
11832 FIELD_LOC_KIND_DWARF_BLOCK.
11833 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11834 (typy_get_dynamic): Nw function.
11835 (type_object_getset): Add "dynamic".
11836 * NEWS: Add entry.
11837
d656f129
TT
118382020-04-24 Tom Tromey <tromey@adacore.com>
11839
11840 * ada-typeprint.c (print_choices, print_variant_part)
11841 (print_record_field_types_dynamic): New functions.
11842 (print_record_field_types): Use print_record_field_types_dynamic.
11843
7d79de9a
TT
118442020-04-24 Tom Tromey <tromey@adacore.com>
11845
11846 * dwarf2/read.c (handle_data_member_location): New overload.
11847 (dwarf2_add_field): Use it.
11848 (decode_locdesc): Add "computed" parameter. Update comment.
11849 * gdbtypes.c (is_dynamic_type_internal): Also look for
11850 FIELD_LOC_KIND_DWARF_BLOCK.
11851 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11852 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11853 virtual base classes.
11854 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11855 FIELD_LOC_KIND_DWARF_BLOCK.
11856
f8e89861
TT
118572020-04-24 Tom Tromey <tromey@adacore.com>
11858
11859 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11860 * gdbtypes.c (is_dynamic_type_internal): Check
11861 TYPE_HAS_DYNAMIC_LENGTH.
11862 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11863 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11864 New macros.
11865 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11866 constant.
11867
9c6a1327
TT
118682020-04-24 Tom Tromey <tromey@adacore.com>
11869
11870 * dwarf2/read.c (struct variant_field): Rewrite.
11871 (struct variant_part_builder): New.
11872 (struct nextfield): Remove "variant" field. Add "offset".
11873 (struct field_info): Add "current_variant_part" and
11874 "variant_parts".
11875 (alloc_discriminant_info): Remove.
11876 (alloc_rust_variant): New function.
11877 (quirk_rust_enum): Update.
11878 (dwarf2_add_field): Set "offset" member. Don't handle
11879 DW_TAG_variant_part.
11880 (offset_map_type): New typedef.
11881 (convert_variant_range, create_one_variant)
11882 (create_one_variant_part, create_variant_parts)
11883 (add_variant_property): New functions.
11884 (dwarf2_attach_fields_to_type): Call add_variant_property.
11885 (read_structure_type): Don't handle DW_TAG_variant_part.
11886 (handle_variant_part, handle_variant): New functions.
11887 (handle_struct_member_die): Use them.
11888 (process_structure_scope): Don't handle variant parts.
11889 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11890 (struct discriminant_info): Remove.
11891 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11892 (struct main_type) <flag_discriminated_union>: Remove.
11893 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11894 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11895 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11896 Update.
11897 * valops.c (value_union_variant): Remove.
11898 * value.h (value_union_variant): Don't declare.
11899
b249d2c2
TT
119002020-04-24 Tom Tromey <tromey@adacore.com>
11901
11902 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11903 (ada_value_primitive_packed_val): Update.
11904 * ada-valprint.c (ada_value_print_1): Update.
11905 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11906 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11907 just an address. Use evaluate_for_locexpr_baton.
11908 (dwarf2_evaluate_property): Update.
11909 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11910 array_view.
11911 * findvar.c (default_read_var_value): Update.
11912 * gdbtypes.c (compute_variant_fields_inner)
11913 (resolve_dynamic_type_internal): Update.
11914 (resolve_dynamic_type): Change type of valaddr parameter.
11915 * gdbtypes.h (resolve_dynamic_type): Update.
11916 * valarith.c (value_subscripted_rvalue): Update.
11917 * value.c (value_from_contents_and_address): Update.
11918
61122aa9
TT
119192020-04-24 Tom Tromey <tromey@adacore.com>
11920
11921 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11922 "push_initial_value" parameter.
11923 (dwarf2_evaluate_property): Likewise.
11924 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11925
ef83a141
TT
119262020-04-24 Tom Tromey <tromey@adacore.com>
11927
11928 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11929 (variant::matches, compute_variant_fields_recurse)
11930 (compute_variant_fields_inner, compute_variant_fields): New
11931 functions.
11932 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11933 Use resolved_type after type is made.
11934 (operator==): Add new cases.
11935 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11936 (struct discriminant_range, struct variant, struct variant_part):
11937 New.
11938 (union dynamic_prop_data) <variant_parts, original_type>: New
11939 members.
11940 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11941 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11942 constants.
11943 * value.c (unpack_bits_as_long): Now public.
11944 * value.h (unpack_bits_as_long): Declare.
11945
675127ec
TT
119462020-04-24 Tom Tromey <tromey@adacore.com>
11947
11948 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11949 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11950
9852ceef
HD
119512020-04-24 Hannes Domani <ssbssa@yahoo.de>
11952
11953 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11954
7632c6ce
KR
119552020-04-24 Kamil Rytarowski <n54@gmx.com>
11956
11957 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11958 (remove_fork_catchpoint, post_startup_inferior)
11959 (post_attach): Move...
11960 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11961 (remove_fork_catchpoint, post_startup_inferior)
11962 (post_attach): ...here.
11963 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11964 (remove_fork_catchpoint, post_startup_inferior)
11965 (post_attach): Move...
11966 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11967 (remove_fork_catchpoint, post_startup_inferior)
11968 (post_attach): ...here.
11969
7be2bb4f
TT
119702020-04-24 Tom Tromey <tromey@adacore.com>
11971
11972 * nat/windows-nat.h (struct windows_thread_info)
11973 <pc_adjusted>: New member.
11974 * windows-nat.c (windows_fetch_one_register): Check
11975 pc_adjusted.
11976 (windows_nat_target::get_windows_debug_event)
11977 (windows_nat_target::wait): Set pc_adjusted.
11978
f80cb3b4
TV
119792020-04-24 Tom de Vries <tdevries@suse.de>
11980
11981 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11982 Run gdb-add-index inside temp dir.
11983
29514b87
TT
119842020-04-23 Tom Tromey <tromey@adacore.com>
11985
11986 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11987 in loop.
11988
5939967b
LM
119892020-04-23 Luis Machado <luis.machado@linaro.org>
11990
11991 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11992 get_frame_register instead of gdbarch_unwind_pc.
11993
70bc38f5
TV
119942020-04-23 Tom de Vries <tdevries@suse.de>
11995
11996 * symtab.c (lookup_global_symbol): Prefer def over decl.
11997
de82891c
TV
119982020-04-23 Tom de Vries <tdevries@suse.de>
11999
12000 PR symtab/25807
12001 * block.c (best_symbol, better_symbol): Promote to external.
12002 * block.h (best_symbol, better_symbol): Declare.
12003 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12004 decl.
12005
ecc6c606
TT
120062020-04-23 Tom Tromey <tromey@adacore.com>
12007
12008 PR ada/25837:
12009 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12010 "const char *", not a "const std::string &".
12011 <name_and_matcher::operator==>: Update.
12012 * unittests/lookup_name_info-selftests.c: Change type of
12013 "result".
12014
740480b8
TT
120152020-04-23 Tom Tromey <tom@tromey.com>
12016
12017 * inferior.h (iterate_over_inferiors): Don't declare.
12018 * inferior.c (iterate_over_inferiors): Remove.
12019 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12020 Remove.
12021 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12022 use iterate_over_inferiors.
12023 (darwin_resume_inferior_it)
12024 (struct resume_inferior_threads_param)
12025 (darwin_resume_inferior_threads_it): Remove.
12026 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12027
ae3ab1f0
TV
120282020-04-23 Tom de Vries <tdevries@suse.de>
12029
12030 * blockframe.c (find_pc_partial_function): Use
12031 find_pc_sect_compunit_symtab rather than
12032 objfile->sf->qf->find_pc_sect_compunit_symtab.
12033
317d2668
TV
120342020-04-22 Tom de Vries <tdevries@suse.de>
12035
12036 PR symtab/25764
12037 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12038 in psymtabs.
12039
eea9e357
TV
120402020-04-22 Tom de Vries <tdevries@suse.de>
12041
12042 PR symtab/25801
12043 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12044 symtabs.
12045
3d5afab3
TV
120462020-04-22 Tom de Vries <tdevries@suse.de>
12047
12048 PR symtab/25700
12049 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12050 CU if already created.
12051
d43b7a2d
TBA
120522020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12053
12054 * infrun.c (displaced_step_fixup): Switch to the event_thread
12055 before calling displaced_step_restore, not after.
12056
d89edf9b
MM
120572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12058
12059 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12060 its inferior is not recorded by us.
12061 (record_btrace_target_open): Replace call to
12062 all_non_exited_threads () with call to current_inferior
12063 ()->non_exited_threads ().
12064 (record_btrace_target::stop_recording): Likewise.
12065 (record_btrace_target::close): Likewise.
12066 (record_btrace_target::wait): Likewise.
12067 (record_btrace_target::record_stop_replaying): Likewise.
12068
5897fd49
MM
120692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12070
12071 * btrace.c (btrace_enable): Throw an error on double enables and
12072 when enabling recording fails.
12073 (btrace_disable): Throw an error if the thread is not recorded.
12074
1a476b6d
MM
120752020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12076
12077 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12078 request if we do not have a thread_info.
12079
4778a5f8
TV
120802020-04-21 Tom de Vries <tdevries@suse.de>
12081
12082 PR gdb/25471
12083 * thread.c
12084 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12085 exception in get_frame_id.
12086
0fa7617d
TT
120872020-04-20 Tom Tromey <tromey@adacore.com>
12088
12089 * python/python.c (struct gdbpy_event): Mark move constructor as
12090 noexcept.
12091 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12092 constructor as noexcept.
12093 * completer.h (struct completion_result): Mark move constructor as
12094 noexcept.
12095 * completer.c (completion_result::completion_result): Use
12096 initialization style. Don't call reset_match_list.
12097
ad23bda0
MS
120982020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12099
12100 * MAINTAINERS (Write After Approval): Add myself.
12101
45e1f031
TT
121022020-04-18 Tom Tromey <tom@tromey.com>
12103
12104 * windows-tdep.c (init_w32_command_list)
12105 (w32_prefix_command_valid): Restore.
12106 (_initialize_windows_tdep): Call init_w32_command_list.
12107
08feed99
TT
121082020-04-18 Tom Tromey <tom@tromey.com>
12109
12110 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12111 * value.c (value_fn_field): Update.
12112 * valops.c (find_function_in_inferior)
12113 (value_allocate_space_in_inferior): Update.
12114 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12115 Update.
12116 * tui/tui-source.c (tui_source_window::set_contents): Update.
12117 * symtab.c (lookup_global_or_static_symbol)
12118 (find_function_start_sal_1, skip_prologue_sal)
12119 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12120 * symmisc.c (dump_msymbols, dump_symtab_1)
12121 (maintenance_print_one_line_table): Update.
12122 * symfile.c (init_entry_point_info, section_is_mapped)
12123 (list_overlays_command, simple_read_overlay_table)
12124 (simple_overlay_update_1): Update.
12125 * stap-probe.c (handle_stap_probe): Update.
12126 * stabsread.c (dbx_init_float_type, define_symbol)
12127 (read_one_struct_field, read_enum_type, read_range_type): Update.
12128 * source.c (info_line_command): Update.
12129 * python/python.c (gdbpy_source_objfile_script)
12130 (gdbpy_execute_objfile_script): Update.
12131 * python/py-type.c (save_objfile_types): Update.
12132 * python/py-objfile.c (py_free_objfile): Update.
12133 * python/py-inferior.c (python_new_objfile): Update.
12134 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12135 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12136 (maintenance_check_psymtabs): Update.
12137 * printcmd.c (info_address_command): Update.
12138 * objfiles.h (struct objfile) <arch>: New method, from
12139 get_objfile_arch.
12140 (get_objfile_arch): Don't declare.
12141 * objfiles.c (get_objfile_arch): Remove.
12142 (filter_overlapping_sections): Update.
12143 * minsyms.c (msymbol_is_function): Update.
12144 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12145 (output_nondebug_symbol): Update.
12146 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12147 (mdebug_expand_psymtab): Update.
12148 * machoread.c (macho_add_oso_symfile): Update.
12149 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12150 Update.
12151 * linux-fork.c (checkpoint_command): Update.
12152 * linespec.c (convert_linespec_to_sals): Update.
12153 * jit.c (finalize_symtab): Update.
12154 * infrun.c (insert_exception_resume_from_probe): Update.
12155 * ia64-tdep.c (ia64_find_unwind_table): Update.
12156 * hppa-tdep.c (internalize_unwinds): Update.
12157 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12158 Update.
12159 * gcore.c (call_target_sbrk): Update.
12160 * elfread.c (record_minimal_symbol, elf_symtab_read)
12161 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12162 (elf_gnu_ifunc_resolve_by_got): Update.
12163 * dwarf2/read.c (create_addrmap_from_index)
12164 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12165 (read_debug_names_from_section)
12166 (process_psymtab_comp_unit_reader, add_partial_symbol)
12167 (add_partial_subprogram, process_full_comp_unit)
12168 (read_file_scope, read_func_scope, read_lexical_block_scope)
12169 (read_call_site_scope, dwarf2_ranges_read)
12170 (dwarf2_record_block_ranges, dwarf2_add_field)
12171 (mark_common_block_symbol_computed, read_tag_pointer_type)
12172 (read_tag_string_type, dwarf2_init_float_type)
12173 (dwarf2_init_complex_target_type, read_base_type)
12174 (partial_die_info::read, partial_die_info::read)
12175 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12176 (dwarf2_fetch_die_loc_sect_off): Update.
12177 * dwarf2/loc.c (dwarf2_find_location_expression)
12178 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12179 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12180 (dwarf2_loc_desc_get_symbol_read_needs)
12181 (locexpr_describe_location_piece, locexpr_describe_location_1)
12182 (loclist_describe_location): Update.
12183 * dwarf2/index-write.c (write_debug_names): Update.
12184 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12185 * dtrace-probe.c (dtrace_process_dof): Update.
12186 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12187 (process_one_symbol): Update.
12188 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12189 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12190 (coff_read_enum_type): Update.
12191 * cli/cli-cmds.c (edit_command, list_command): Update.
12192 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12193 * breakpoint.c (create_overlay_event_breakpoint)
12194 (create_longjmp_master_breakpoint)
12195 (create_std_terminate_master_breakpoint)
12196 (create_exception_master_breakpoint, get_sal_arch): Update.
12197 * block.c (block_gdbarch): Update.
12198 * annotate.c (annotate_source_line): Update.
12199
0743fc83
TT
122002020-04-17 Tom Tromey <tromey@adacore.com>
12201
12202 * auto-load.c (show_auto_load_cmd): Remove.
12203 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12204 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12205 (maintenance_print_arc_command): Remove.
12206 * tui/tui-win.c (tui_command): Remove.
12207 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12208 * tui/tui-layout.c (tui_layout_command): Remove.
12209 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12210 * python/python.c (user_set_python, user_show_python): Remove.
12211 (_initialize_python): Use add_basic_prefix_cmd,
12212 add_show_prefix_cmd.
12213 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12214 (install_gdb_commands): Use add_basic_prefix_cmd,
12215 add_show_prefix_cmd.
12216 (info_guile_command): Remove.
12217 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12218 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12219 add_show_prefix_cmd.
12220 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12221 Remove do_set and do_show parameters.
12222 * cli/cli-style.c (set_style, show_style): Remove.
12223 (_initialize_cli_style): Use add_basic_prefix_cmd,
12224 add_show_prefix_cmd.
12225 (cli_style_option::add_setshow_commands): Remove do_set and
12226 do_show parameters.
12227 (cli_style_option::add_setshow_commands): Use
12228 add_basic_prefix_cmd, add_show_prefix_cmd.
12229 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12230 (set_style_name): Remove.
12231 * cli/cli-dump.c (dump_command, append_command): Remove.
12232 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12233 (tekhex_dump_command, binary_dump_command)
12234 (binary_append_command): Remove.
12235 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12236 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12237 (init_w32_command_list): Remove; move into ...
12238 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12239 * valprint.c (set_print, show_print, set_print_raw)
12240 (show_print_raw): Remove.
12241 (_initialize_valprint): Use add_basic_prefix_cmd,
12242 add_show_prefix_cmd.
12243 * typeprint.c (set_print_type, show_print_type): Remove.
12244 (_initialize_typeprint): Use add_basic_prefix_cmd,
12245 add_show_prefix_cmd.
12246 * record.c (set_record_command, show_record_command): Remove.
12247 (_initialize_record): Use add_basic_prefix_cmd,
12248 add_show_prefix_cmd.
12249 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12250 add_show_prefix_cmd.
12251 (info_command, show_command, set_debug, show_debug): Remove.
12252 * top.h (set_history, show_history): Don't declare.
12253 * top.c (set_history, show_history): Remove.
12254 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12255 (unset_tdesc_cmd): Remove.
12256 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12257 add_show_prefix_cmd.
12258 * symtab.c (info_module_command): Remove.
12259 (_initialize_symtab): Use add_basic_prefix_cmd.
12260 * symfile.c (overlay_command): Remove.
12261 (_initialize_symfile): Use add_basic_prefix_cmd.
12262 * sparc64-tdep.c (info_adi_command): Remove.
12263 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12264 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12265 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12266 add_show_prefix_cmd.
12267 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12268 (_initialize_serial): Use add_basic_prefix_cmd,
12269 add_show_prefix_cmd.
12270 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12271 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12272 add_show_prefix_cmd.
12273 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12274 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12275 add_show_prefix_cmd.
12276 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12277 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12278 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12279 add_show_prefix_cmd.
12280 * remote.c (remote_command, set_remote_cmd): Remove.
12281 (_initialize_remote): Use add_basic_prefix_cmd.
12282 * record-full.c (set_record_full_command)
12283 (show_record_full_command): Remove.
12284 (_initialize_record_full): Use add_basic_prefix_cmd,
12285 add_show_prefix_cmd.
12286 * record-btrace.c (cmd_set_record_btrace)
12287 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12288 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12289 (cmd_show_record_btrace_pt): Remove.
12290 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12291 add_show_prefix_cmd.
12292 * ravenscar-thread.c (set_ravenscar_command)
12293 (show_ravenscar_command): Remove.
12294 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12295 add_show_prefix_cmd.
12296 * mips-tdep.c (show_mips_command, set_mips_command)
12297 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12298 add_show_prefix_cmd.
12299 * maint.c (maintenance_command, maintenance_info_command)
12300 (maintenance_check_command, maintenance_print_command)
12301 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12302 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12303 add_show_prefix_cmd.
12304 (show_per_command_cmd): Remove.
12305 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12306 Remove.
12307 (maintenance_show_test_settings_cmd): Remove.
12308 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12309 add_show_prefix_cmd.
12310 * maint-test-options.c (maintenance_test_options_command):
12311 Remove.
12312 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12313 * macrocmd.c (macro_command): Remove
12314 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12315 * language.c (set_check, show_check): Remove.
12316 (_initialize_language): Use add_basic_prefix_cmd,
12317 add_show_prefix_cmd.
12318 * infcmd.c (unset_command): Remove.
12319 (_initialize_infcmd): Use add_basic_prefix_cmd.
12320 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12321 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12322 add_show_prefix_cmd.
12323 * go32-nat.c (go32_info_dos_command): Remove.
12324 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12325 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12326 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12327 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12328 (_initialize_frame): Use add_basic_prefix_cmd,
12329 add_show_prefix_cmd.
12330 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12331 (_initialize_dcache): Use add_basic_prefix_cmd,
12332 add_show_prefix_cmd.
12333 * cp-support.c (maint_cplus_command): Remove.
12334 (_initialize_cp_support): Use add_basic_prefix_cmd.
12335 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12336 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12337 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12338 add_basic_prefix_cmd, add_show_prefix_cmd.
12339 * breakpoint.c (save_command): Remove.
12340 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12341 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12342 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12343 add_show_prefix_cmd.
12344 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12345 (set_ada_command, show_ada_command): Remove.
12346 (_initialize_ada_language): Use add_basic_prefix_cmd,
12347 add_show_prefix_cmd.
12348 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12349
3557f442
KR
123502020-04-16 Kamil Rytarowski <n54@gmx.com>
12351
12352 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12353 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12354
16197208
SM
123552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12356
12357 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12358 warning messages.
12359
00ac85d3
SM
123602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12361
12362 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12363 import table is not at beginning of .idata section.
12364
381ce63f
PA
123652020-04-16 Pedro Alves <palves@redhat.com>
12366
12367 * inferior.c (delete_inferior): Use delete operator directly
12368 instead of delete_program_space.
12369 * progspace.c (add_program_space): New, factored out from
12370 program_space::program_space.
12371 (remove_program_space): New, factored out from
12372 delete_program_space.
12373 (program_space::program_space): Remove intro comment. Rewrite.
12374 (program_space::~program_space): Remove intro comment. Call
12375 remove_program_space.
12376 (delete_program_space): Delete.
12377 * progspace.h (program_space::program_space): Make explicit. Move
12378 intro comment here, adjusted.
12379 (program_space::~program_space): Move intro comment here,
12380 adjusted.
12381 (delete_program_space): Remove.
12382
a010605f
TT
123832020-04-16 Tom Tromey <tromey@adacore.com>
12384
12385 * windows-nat.c (windows_nat::handle_access_violation): New
12386 function.
12387 * nat/windows-nat.h (handle_access_violation): Declare.
12388 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12389 windows-nat.c. Call handle_access_violation.
12390
efba5c23
TV
123912020-04-16 Tom de Vries <tdevries@suse.de>
12392
12393 PR symtab/25791
12394 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12395 CUs without psymtab.
12396
97ed802d
KB
123972020-04-16 Kevin Buettner <kevinb@redhat.com>
12398
12399 * python/python.c (do_start_initialization): Don't call
12400 PyEval_InitThreads for Python 3.9 and beyond.
12401
c7d64809
KR
124022020-04-15 Kamil Rytarowski <n54@gmx.com>
12403
12404 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12405 thread functions.
12406 (obsd_nat_target::wait): Likewise.
12407
ce127a96
TT
124082020-04-15 Tom Tromey <tromey@adacore.com>
12409
12410 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12411 (DEBUG_EXCEPT): Use debug_printf.
12412
99f1bc6a
AB
124132020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12414
12415 * completer.c (class completion_tracker::completion_hash_entry)
12416 <hash_name>: New member function.
12417 (completion_tracker::discard_completions): New callback to hash a
12418 completion_hash_entry, pass this to htab_create_alloc.
12419
a0e9b532
JT
124202016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12421
12422 * windows-nat.c (windows_make_so): Warn rather than stopping with
12423 an error if realpath() fails.
12424
06ca5dd4
KR
124252020-04-14 Kamil Rytarowski <n54@gmx.com>
12426
12427 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12428 (nbsd_nat_target::info_proc): Add do_status.
12429
194d088f
TV
124302020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12431 Tom de Vries <tdevries@suse.de>
12432
12433 PR symtab/25718
12434 * psympriv.h (struct partial_symtab::read_symtab)
12435 (struct partial_symtab::expand_psymtab)
12436 (struct partial_symtab::read_dependencies): Update comments.
12437 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12438 read_symtab for includer.
12439 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12440 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12441 (struct dwarf2_include_psymtab::m_readin): Remove.
12442 (struct dwarf2_include_psymtab::includer): New member function.
12443 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12444
c1a66c06
TV
124452020-04-14 Tom de Vries <tdevries@suse.de>
12446
12447 PR symtab/25720
12448 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12449 with NULL symbol_matcher and lookup_name.
12450 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12451 and lookup_name.
12452 * dwarf2/read.c (dw2_expand_symtabs_matching)
12453 (dw2_debug_names_expand_symtabs_matching): Same.
12454 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12455 Make lookup_name a pointer. Update comment.
12456 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12457 lookup_name being a pointer.
12458 * symfile.c (expand_symtabs_matching): Same.
12459 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12460 * linespec.c (iterate_over_all_matching_symtabs): Same.
12461
400b5eca
TT
124622020-04-13 Tom Tromey <tom@tromey.com>
12463
12464 * run-on-main-thread.c: Update include.
12465 * unittests/main-thread-selftests.c: Update include.
12466 * tui/tui-win.c: Update include.
12467 * tui/tui-io.c: Update include.
12468 * tui/tui-interp.c: Update include.
12469 * tui/tui-hooks.c: Update include.
12470 * top.h: Update include.
12471 * top.c: Update include.
12472 * ser-base.c: Update include.
12473 * remote.c: Update include.
12474 * remote-notif.c: Update include.
12475 * remote-fileio.c: Update include.
12476 * record-full.c: Update include.
12477 * record-btrace.c: Update include.
12478 * python/python.c: Update include.
12479 * posix-hdep.c: Update include.
12480 * mingw-hdep.c: Update include.
12481 * mi/mi-main.c: Update include.
12482 * mi/mi-interp.c: Update include.
12483 * main.c: Update include.
12484 * linux-nat.c: Update include.
12485 * interps.c: Update include.
12486 * infrun.c: Update include.
12487 * inf-loop.c: Update include.
12488 * event-top.c: Update include.
12489 * event-loop.c: Move to ../gdbsupport/.
12490 * event-loop.h: Move to ../gdbsupport/.
12491 * async-event.h: Update include.
12492 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12493
93b54c8e
TT
124942020-04-13 Tom Tromey <tom@tromey.com>
12495
12496 * tui/tui-win.c: Include async-event.h.
12497 * remote.c: Include async-event.h.
12498 * remote-notif.c: Include async-event.h.
12499 * record-full.c: Include async-event.h.
12500 * record-btrace.c: Include async-event.h.
12501 * infrun.c: Include async-event.h.
12502 * event-top.c: Include async-event.h.
12503 * event-loop.h: Move some declarations to async-event.h.
12504 * event-loop.c: Don't include ser-event.h or top.h. Move some
12505 code to async-event.c.
12506 * async-event.h: New file.
12507 * async-event.c: New file.
12508 * Makefile.in (COMMON_SFILES): Add async-event.c.
12509 (HFILES_NO_SRCDIR): Add async-event.h.
12510
c1cd3163
TT
125112020-04-13 Tom Tromey <tom@tromey.com>
12512
12513 * utils.c (flush_streams): New function.
12514 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12515
29f2bf4f
TT
125162020-04-13 Tom Tromey <tom@tromey.com>
12517
12518 * event-loop.c (handle_file_event): Use warning, not
12519 printf_unfiltered.
12520
98029d02
TT
125212020-04-13 Tom Tromey <tom@tromey.com>
12522
12523 * event-loop.c: Include <chrono>.
12524
06cc9596
TT
125252020-04-13 Tom Tromey <tom@tromey.com>
12526
12527 * gdb_select.h: Move to ../gdbsupport/.
12528 * event-loop.c: Update include path.
12529 * top.c: Update include path.
12530 * ser-base.c: Update include path.
12531 * ui-file.c: Update include path.
12532 * ser-tcp.c: Update include path.
12533 * guile/scm-ports.c: Update include path.
12534 * posix-hdep.c: Update include path.
12535 * ser-unix.c: Update include path.
12536 * gdb_usleep.c: Update include path.
12537 * mingw-hdep.c: Update include path.
12538 * inflow.c: Update include path.
12539 * infrun.c: Update include path.
12540 * event-top.c: Update include path.
12541
8ae8e197
TT
125422020-04-13 Tom Tromey <tom@tromey.com>
12543
12544 * configure: Rebuild.
12545 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12546
58cf28e8
TT
125472020-04-13 Tom Tromey <tom@tromey.com>
12548
12549 * event-loop.h (start_event_loop): Don't declare.
12550 * event-loop.c (start_event_loop): Move...
12551 * main.c (start_event_loop): ...here. Now static.
12552
b7f999ae
SDJ
125532020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12554
12555 * MAINTAINERS: Update my email address.
12556
1085dfd4
KR
125572020-04-12 Kamil Rytarowski <n54@gmx.com>
12558
12559 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12560 IP_ALL.
12561
49d1d1f5
KR
125622020-04-12 Kamil Rytarowski <n54@gmx.com>
12563
12564 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12565 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12566
b4848d2a
KR
125672020-04-12 Kamil Rytarowski <n54@gmx.com>
12568
12569 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12570 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12571
51c133d5
KR
125722020-04-12 Kamil Rytarowski <n54@gmx.com>
12573
12574 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12575
54b8cbd0
KR
125762020-04-11 Kamil Rytarowski <n54@gmx.com>
12577
12578 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12579 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12580 (nbsd_nat_target::info_proc): New functions.
12581 * nbsd-nat.c (kinfo_get_vmmap): New function.
12582 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12583 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12584 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12585 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12586 functions.
12587 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12588 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12589 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12590 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12591 (KINFO_VME_FLAG_GROWS_DOWN): New.
12592
cf83625d
AS
125932020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12594
12595 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12596 bit shift.
12597
0c4311ab
TT
125982020-04-10 Tom Tromey <tromey@adacore.com>
12599
12600 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12601
3e65b3e9
TT
126022020-04-10 Tom Tromey <tromey@adacore.com>
12603
12604 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12605 separate debug files.
12606
13302e95
HD
126072020-04-10 Hannes Domani <ssbssa@yahoo.de>
12608
12609 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12610 Move to...
12611 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12612 ... here.
12613 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12614 Check for STATUS_WX86_BREAKPOINT.
12615 (windows_nat_target::wait): Same.
12616
bdfc1e8a
TV
126172020-04-10 Tom de Vries <tdevries@suse.de>
12618
12619 PR cli/25808
12620 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12621
f4460aec
SM
126222020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12623
12624 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12625 (Write After Approval): Remove Tom de Vries.
12626
a25198bb
BE
126272020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12628
12629 revert partially:
12630 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12631
aac66a4c
SM
12632 * buildsym.c (record_line): Fix undefined behavior and preserve
12633 lines at eof.
a25198bb 12634
206c98a6
KR
126352020-04-09 Kamil Rytarowski <n54@gmx.com>
12636
12637 * auxv.h (svr4_auxv_parse): New.
12638 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12639 and generic_auxv_parse.
12640 (svr4_auxv_parse): Add.
12641 * obsd-tdep.c: Include "auxv.h".
12642 (obsd_auxv_parse): Remove.
12643 (obsd_init_abi): Remove comment.
12644 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12645 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12646 * nbsd-tdep.c: Include "auxv.h".
12647 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12648
71fbdbaf
TT
126492020-04-08 Tom Tromey <tromey@adacore.com>
12650
12651 * nat/windows-nat.h (last_wait_event): Don't declare.
12652 (wait_for_debug_event): Update comment.
12653 * nat/windows-nat.c (last_wait_event): Now static.
12654
2c1d95e8
TT
126552020-04-08 Tom Tromey <tromey@adacore.com>
12656
12657 * windows-nat.c (wait_for_debug_event): Move to
12658 nat/windows-nat.c.
12659 * nat/windows-nat.h (wait_for_debug_event): Declare.
12660 * nat/windows-nat.c (wait_for_debug_event): Move from
12661 windows-nat.c. No longer static.
12662
d2977bc4
TT
126632020-04-08 Tom Tromey <tromey@adacore.com>
12664
12665 * windows-nat.c (get_windows_debug_event): Use
12666 fetch_pending_stop.
12667 * nat/windows-nat.h (fetch_pending_stop): Declare.
12668 * nat/windows-nat.c (fetch_pending_stop): New function.
12669
e758e19c
TT
126702020-04-08 Tom Tromey <tromey@adacore.com>
12671
12672 * windows-nat.c (windows_continue): Use matching_pending_stop and
12673 continue_last_debug_event.
12674 * nat/windows-nat.h (matching_pending_stop)
12675 (continue_last_debug_event): Declare.
12676 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12677 (matching_pending_stop, continue_last_debug_event): New
12678 functions.
12679
8d30e395
TT
126802020-04-08 Tom Tromey <tromey@adacore.com>
12681
12682 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12683 (handle_exception_result): Move to nat/windows-nat.h.
12684 (DEBUG_EXCEPTION_SIMPLE): Remove.
12685 (windows_nat::handle_ms_vc_exception): New function.
12686 (handle_exception): Move to nat/windows-nat.c.
12687 (get_windows_debug_event): Update.
12688 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12689 nat/windows-nat.c.
12690 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12691 (handle_exception_result): Move from windows-nat.c.
12692 (handle_exception): Declare.
12693 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12694 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12695 windows-nat.c.
12696
29de418d
TT
126972020-04-08 Tom Tromey <tromey@adacore.com>
12698
12699 * windows-nat.c (exception_count, event_count): Remove.
12700 (handle_exception, get_windows_debug_event)
12701 (do_initial_windows_stuff): Update.
12702
a816ba18
TT
127032020-04-08 Tom Tromey <tromey@adacore.com>
12704
12705 * windows-nat.c (windows_nat::handle_load_dll)
12706 (windows_nat::handle_unload_dll): Rename. No longer static.
12707 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12708 Declare.
12709
a00caa12
TT
127102020-04-08 Tom Tromey <tromey@adacore.com>
12711
12712 * complaints.h (stop_whining): Declare at top-level.
12713 (complaint): Don't declare stop_whining.
12714
d41b524f
TT
127152020-04-08 Tom Tromey <tromey@adacore.com>
12716
12717 * windows-nat.c (windows_nat::handle_output_debug_string):
12718 Rename. No longer static.
12719 * nat/windows-nat.h (handle_output_debug_string): Declare.
12720
3c76026d
TT
127212020-04-08 Tom Tromey <tromey@adacore.com>
12722
12723 * windows-nat.c (current_process_handle, current_process_id)
12724 (main_thread_id, last_sig, current_event, last_wait_event)
12725 (current_windows_thread, desired_stop_thread_id, pending_stops)
12726 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12727 (display_selectors, fake_create_process)
12728 (get_windows_debug_event): Update.
12729 * nat/windows-nat.h (current_process_handle, current_process_id)
12730 (main_thread_id, last_sig, current_event, last_wait_event)
12731 (current_windows_thread, desired_stop_thread_id, pending_stops)
12732 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12733 * nat/windows-nat.c (current_process_handle, current_process_id)
12734 (main_thread_id, last_sig, current_event, last_wait_event)
12735 (current_windows_thread, desired_stop_thread_id, pending_stops)
12736 (siginfo_er): New globals. Move from windows-nat.c.
12737
9d8679cc
TT
127382020-04-08 Tom Tromey <tromey@adacore.com>
12739
12740 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12741 (handle_load_dll): Update.
12742 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12743
28688adf
TT
127442020-04-08 Tom Tromey <tromey@adacore.com>
12745
12746 * windows-nat.c (enum thread_disposition_type): Move to
12747 nat/windows-nat.h.
12748 (windows_nat::thread_rec): Rename from thread_rec. No longer
12749 static.
12750 (windows_add_thread, windows_nat_target::fetch_registers)
12751 (windows_nat_target::store_registers, handle_exception)
12752 (windows_nat_target::resume, get_windows_debug_event)
12753 (windows_nat_target::get_tib_address)
12754 (windows_nat_target::thread_name)
12755 (windows_nat_target::thread_alive): Update.
12756 * nat/windows-nat.h (enum thread_disposition_type): Move from
12757 windows-nat.c.
12758 (thread_rec): Declare.
12759
4834dad0
TT
127602020-04-08 Tom Tromey <tromey@adacore.com>
12761
12762 * windows-nat.c: Add "using namespace".
12763 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12764 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12765
65bafd5b
TT
127662020-04-08 Tom Tromey <tromey@adacore.com>
12767
12768 * nat/windows-nat.h (struct windows_thread_info): Declare
12769 destructor.
12770 * nat/windows-nat.c (~windows_thread_info): New.
12771
0a4afda3
TT
127722020-04-08 Tom Tromey <tromey@adacore.com>
12773
12774 PR gdb/22992
12775 * windows-nat.c (current_event): Update comment.
12776 (last_wait_event, desired_stop_thread_id): New globals.
12777 (struct pending_stop): New.
12778 (pending_stops): New global.
12779 (windows_nat_target) <stopped_by_sw_breakpoint>
12780 <supports_stopped_by_sw_breakpoint>: New methods.
12781 (windows_fetch_one_register): Add assertions. Adjust PC.
12782 (windows_continue): Handle pending stops. Suspend other threads
12783 when stepping. Use last_wait_event
12784 (wait_for_debug_event): New function.
12785 (get_windows_debug_event): Use wait_for_debug_event. Handle
12786 pending stops. Queue spurious stops.
12787 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12788 (windows_nat_target::kill): Use wait_for_debug_event.
12789 * nat/windows-nat.h (struct windows_thread_info)
12790 <stopped_at_software_breakpoint>: New field.
12791 * nat/windows-nat.c (windows_thread_info::resume): Clear
12792 stopped_at_software_breakpoint.
12793
8e61ebec
TT
127942020-04-08 Tom Tromey <tromey@adacore.com>
12795
12796 * windows-nat.c (enum thread_disposition_type): New.
12797 (thread_rec): Replace "get_context" parameter with "disposition";
12798 change type.
12799 (windows_add_thread, windows_nat_target::fetch_registers)
12800 (windows_nat_target::store_registers, handle_exception)
12801 (windows_nat_target::resume, get_windows_debug_event)
12802 (windows_nat_target::get_tib_address)
12803 (windows_nat_target::thread_name)
12804 (windows_nat_target::thread_alive): Update.
12805
98a03287
TT
128062020-04-08 Tom Tromey <tromey@adacore.com>
12807
12808 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12809 (windows_continue): Use windows_continue::resume.
12810 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12811 resume>: Declare new methods.
12812 * nat/windows-nat.c: New file.
12813 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12814
7c7411bc
TT
128152020-04-08 Tom Tromey <tromey@adacore.com>
12816
12817 * windows-nat.c (windows_add_thread, windows_delete_thread)
12818 (windows_nat_target::fetch_registers)
12819 (windows_nat_target::store_registers, fake_create_process)
12820 (windows_nat_target::resume, windows_nat_target::resume)
12821 (get_windows_debug_event, windows_nat_target::wait)
12822 (windows_nat_target::pid_to_str)
12823 (windows_nat_target::get_tib_address)
12824 (windows_nat_target::get_ada_task_ptid)
12825 (windows_nat_target::thread_name)
12826 (windows_nat_target::thread_alive): Use lwp, not tid.
12827
2950fdf7
TT
128282020-04-08 Tom Tromey <tromey@adacore.com>
12829
12830 * windows-nat.c (handle_exception)
12831 (windows_nat_target::thread_name): Update.
12832 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12833 <name>: Now unique_xmalloc_ptr.
12834
62fe396b
TT
128352020-04-08 Tom Tromey <tromey@adacore.com>
12836
12837 * windows-nat.c (thread_rec)
12838 (windows_nat_target::fetch_registers): Update.
12839 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12840 Update comment.
12841 <debug_registers_changed, reload_context>: Now bool.
12842
e9534bd2
TT
128432020-04-08 Tom Tromey <tromey@adacore.com>
12844
12845 * windows-nat.c (windows_add_thread): Use new.
12846 (windows_init_thread_list, windows_delete_thread): Use delete.
12847 (get_windows_debug_event): Update.
12848 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12849 destructor, and initializers.
12850
ae1f8880
TT
128512020-04-08 Tom Tromey <tromey@adacore.com>
12852
12853 * windows-nat.c (struct windows_thread_info): Remove.
12854 * nat/windows-nat.h: New file.
12855
55a1e039
TT
128562020-04-08 Tom Tromey <tromey@adacore.com>
12857
12858 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12859 (thread_rec, windows_add_thread, windows_delete_thread)
12860 (windows_continue): Update.
12861
93366324
TT
128622020-04-08 Tom Tromey <tromey@adacore.com>
12863
12864 * windows-nat.c (struct windows_thread_info): Remove typedef.
12865 (thread_head): Remove.
12866 (thread_list): New global.
12867 (thread_rec, windows_add_thread, windows_init_thread_list)
12868 (windows_delete_thread, windows_continue): Update.
12869
0f2265e2
SM
128702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12871
12872 * windows-tdep.h (windows_init_abi): Add comment.
12873 (cygwin_init_abi): New declaration.
12874 * windows-tdep.c: Split signal enumeration in two, one for
12875 Windows and one for Cygwin.
12876 (windows_gdb_signal_to_target): Only deal with signal of the
12877 Windows OS ABI.
12878 (cygwin_gdb_signal_to_target): New function.
12879 (windows_init_abi): Rename to windows_init_abi_common, don't set
12880 gdb_signal_to_target gdbarch method. Add new new function with
12881 this name.
12882 (cygwin_init_abi): New function.
12883 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12884 comment. Don't call windows_init_abi.
12885 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12886 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12887 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12888 i386_windows_init_abi_common, don't call windows_init_abi. Add
12889 a new function of this name.
12890 (i386_cygwin_init_abi): New function.
12891 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12892 OS ABI Cygwin.
12893
3810f182
SM
128942020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12895
12896 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12897 parameter.c.
12898 (dwarf2_read_gdb_index): Update.
12899
063f8e80
KR
129002020-04-07 Kamil Rytarowski <n54@gmx.com>
12901
12902 * nbsd-tdep.c: Include "objfiles.h".
12903 (nbsd_skip_solib_resolver): New.
12904 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12905
85a9510c 129062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12907
12908 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12909 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12910 with DW_LLE_base_addressx are being emitted in DWARFv5.
12911 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12912 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12913 unsigned integer.
12914
9fc3eaae 129152020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12916
12917 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12918 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12919 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12920 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12921 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12922 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12923 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12924
12925
41144253 129262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12927
12928 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12929 (read_loclist_index): New function definition.
12930 (lookup_loclist_base): New function definition.
12931 (read_loclist_header): New function definition.
12932 (dwarf2_cu): Add loclist_base and loclist_header field.
12933 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12934 (read_full_die_1): Read the value of DW_AT_loclists_base.
12935 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12936 (read_attribute_value): Handle DW_FORM_loclistx.
12937 (skip_one_die): Handle DW_FORM_loclistx.
12938 (loclist_header): New structure declaration.
12939 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12940
9f4e76a4
SM
129412020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12942
12943 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12944 constructor. Remove `addr` parameter from other constructor and
12945 add `per_cu` parameter.
12946 * dwarf2/read.c (create_partial_symtab): Update.
12947
25c11aca
TV
129482020-04-07 Tom de Vries <tdevries@suse.de>
12949
12950 PR symtab/25796
12951 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12952 (partial_die_info::fixup): Inherit has_const_value.
12953
5707e24b
TV
129542020-04-07 Tom de Vries <tdevries@suse.de>
12955
12956 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12957 symbols without address.
12958
05f00e22
KR
129592020-04-06 Kamil Rytarowski <n54@gmx.com>
12960
12961 * nbsd-nat.h (struct thread_info): Add forward declaration.
12962 (nbsd_nat_target::thread_alive): Add.
12963 (nbsd_nat_target::thread_name): Likewise.
12964 (nbsd_nat_target::update_thread_list): Likewise.
12965 (update_thread_list::post_attach): Likewise.
12966 (post_attach::pid_to_str): Likewise.
12967 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12968 (nbsd_thread_lister): Add.
12969 (nbsd_nat_target::thread_alive): Likewise.
12970 (nbsd_nat_target::thread_name): Likewise.
12971 (nbsd_add_threads): Likewise.
12972 (update_thread_list::post_attach): Likewise.
12973 (nbsd_nat_target::update_thread_list): Likewise.
12974 (post_attach::pid_to_str): Likewise.
12975
6ee448cc
TT
129762020-04-06 Tom Tromey <tromey@adacore.com>
12977
12978 * ada-valprint.c (print_variant_part): Extract the variant field.
12979 (print_field_values): Use the field as the outer value when
12980 recursing.
12981
dea34e8c
TT
129822020-04-06 Tom Tromey <tromey@adacore.com>
12983
12984 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12985 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12986 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12987 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12988 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12989
93689ce9
TT
129902020-04-06 Tom Tromey <tromey@adacore.com>
12991
12992 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12993 TYPE_CODE_ERROR.
12994
79743962
KR
129952020-04-06 Kamil Rytarowski <n54@gmx.com>
12996
12997 * nbsd-tdep.c: Include "gdbarch.h".
12998 Define enum with NetBSD signal numbers.
12999 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13000 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13001 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13002 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13003 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13004 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13005 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13006 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13007 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13008 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13009 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13010 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13011
9e7c9a03
HD
130122020-04-03 Hannes Domani <ssbssa@yahoo.de>
13013
13014 PR gdb/25325
13015 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13016
d9e49b61
TT
130172020-04-03 Tom Tromey <tromey@adacore.com>
13018
13019 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13020 Read constant block.
13021
e0fc5c3f
SM
130222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13023
13024 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13025 (gdb_bfd_get_full_section_contents): New declaration.
13026 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13027 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13028 gdb_bfd_get_full_section_contents.
13029
e2ff18a0
SM
130302020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13031
13032 * exec.c (build_section_table): Replace internal_error with
13033 gdb_assert.
13034 (section_table_xfer_memory_partial): Likewise.
13035 * mdebugread.c (parse_partial_symbols): Likewise.
13036 * psymtab.c (lookup_partial_symbol): Likewise.
13037 * utils.c (wrap_here): Likewise.
13038
0830d301
TT
130392020-04-02 Tom Tromey <tromey@adacore.com>
13040
13041 * f-lang.c (build_fortran_types): Use arch_type to initialize
13042 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13043
e7da7f8f
TT
130442020-04-02 Tom Tromey <tromey@adacore.com>
13045
13046 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13047 of attributes.
13048
c90d28ac
AB
130492020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13050 Bernd Edlinger <bernd.edlinger@hotmail.de>
13051 Tom Tromey <tromey@adacore.com>
13052
13053 * buildsym.c (buildsym_compunit::record_line): Remove
13054 deduplication code.
13055
1aa98955
TV
130562020-04-02 Tom de Vries <tdevries@suse.de>
13057
13058 PR ada/24671
13059 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13060
d3214198
TV
130612020-04-02 Tom de Vries <tdevries@suse.de>
13062
13063 * dwarf2/read.c (dwarf2_gdb_index_functions,
13064 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13065 NULL.
13066 * psymtab.c (psym_lookup_global_symbol_language): New function.
13067 (psym_functions): Init psym_lookup_global_symbol_language with
13068 psym_lookup_global_symbol_language.
13069 * symfile-debug.c (debug_sym_quick_functions): Init
13070 lookup_global_symbol_language with NULL.
13071 * symfile.c (set_initial_language): Remove fixme comment.
13072 * symfile.h (struct quick_symbol_functions): Add
13073 lookup_global_symbol_language.
13074 * symtab.c (find_quick_global_symbol_language): New function.
13075 (find_main_name): Use find_quick_global_symbol_language.
13076
2836752f
SM
130772020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13078
13079 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13080
64dc2d4b
BE
130812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13082
13083 * buildsym.c (record_line): Fix undefined behavior and preserve
13084 lines at eof.
13085
bbe3dc41
BE
130862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13087
13088 * buildsym.c (record_line): Fix the resizing condition.
13089
6b4a335b
TT
130902020-04-01 Tom Tromey <tom@tromey.com>
13091
13092 * value.h (value_literal_complex): Add comment.
13093 * valops.c (value_literal_complex): Refer to value.h.
13094
3638a098
TT
130952020-04-01 Tom Tromey <tom@tromey.com>
13096
13097 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13098 (scalar_type): New rule, from typebase.
13099 (typebase): Use scalar_type. Recognize complex types.
13100 (field_name): Handle FLOAT_KEYWORD.
13101 (ident_tokens): Add _Complex and __complex__.
13102
c34e8714
TT
131032020-04-01 Tom Tromey <tom@tromey.com>
13104
13105 PR exp/25299:
13106 * valarith.c (promotion_type, complex_binop): New functions.
13107 (scalar_binop): Handle complex numbers. Use promotion_type.
13108 (value_pos, value_neg, value_complement): Handle complex numbers.
13109
fa649bb7
TT
131102020-04-01 Tom Tromey <tom@tromey.com>
13111
13112 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13113 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13114 (parse_number): Handle complex numbers.
13115
981c08ce
TT
131162020-04-01 Tom Tromey <tom@tromey.com>
13117
13118 * c-valprint.c (c_decorations): Change complex suffix to "i".
13119
4c99290d
TT
131202020-04-01 Tom Tromey <tom@tromey.com>
13121
13122 * valprint.c (generic_value_print_complex): Use accessors.
13123 * value.h (value_real_part, value_imaginary_part): Declare.
13124 * valops.c (value_real_part, value_imaginary_part): New
13125 functions.
13126 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13127
5b930b45
TT
131282020-04-01 Tom Tromey <tom@tromey.com>
13129
13130 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13131 (read_range_type): Update.
13132 * mdebugread.c (basic_type): Update.
13133 * go-lang.c (build_go_types): Use init_complex_type.
13134 * gdbtypes.h (struct main_type) <complex_type>: New member.
13135 (init_complex_type): Update.
13136 (arch_complex_type): Don't declare.
13137 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13138 Make name if none given. Use alloc_type_copy. Look for cached
13139 complex type.
13140 (arch_complex_type): Remove.
13141 (gdbtypes_post_init): Use init_complex_type.
13142 * f-lang.c (build_fortran_types): Use init_complex_type.
13143 * dwarf2/read.c (read_base_type): Update.
13144 * d-lang.c (build_d_types): Use init_complex_type.
13145 * ctfread.c (read_base_type): Update.
13146
53cccef1
TBA
131472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13148
13149 * infrun.c (stop_all_threads): Update assertion, plus when
13150 stopping threads, take into account that we might be trying
13151 to stop an all-stop target.
13152 (stop_waiting): Call 'stop_all_threads' if there exists a
13153 non-stop target.
13154
a0714d30
TBA
131552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13156
13157 * target.h (exists_non_stop_target): New function declaration.
13158 * target.c (exists_non_stop_target): New function.
13159
60e22c1e
HD
131602020-04-01 Hannes Domani <ssbssa@yahoo.de>
13161
13162 PR gdb/24789
13163 * eval.c (is_integral_or_integral_reference): New function.
13164 (evaluate_subexp_standard): Allow integer references in
13165 pointer arithmetic.
13166
e139a727
TBA
131672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13168
13169 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13170 check for no ptid in the stop reply when the target is non-stop.
13171
e0802d59
TT
131722020-04-01 Tom Tromey <tromey@adacore.com>
13173
13174 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13175 "name" parameter to rvalue reference. Initialize m_name_holder.
13176 <lookup_name_info>: New overloads.
13177 <name>: Return gdb::string_view.
13178 <c_str>: New method.
13179 <make_ignore_params>: Update.
13180 <search_name_hash>: Update.
13181 <language_lookup_name>: Return const char *.
13182 <m_name>: Change type.
13183 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13184 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13185 (lookup_name_info::match_any): Update.
13186 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13187 Update.
13188 * minsyms.c (linkage_name_str): Update.
13189 * language.c (default_symbol_name_matcher): Update.
13190 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13191 Update.
13192 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13193 (ada_lookup_name_info::ada_lookup_name_info): Update.
13194 (literal_symbol_name_matcher): Update.
13195
8c072cb6
TT
131962020-04-01 Tom Tromey <tromey@adacore.com>
13197
13198 * psymtab.c (psymtab_search_name): Remove function.
13199 (psym_lookup_symbol): Create search name and lookup name here.
13200 (lookup_partial_symbol): Remove "name" parameter; add
13201 lookup_name.
13202 (psym_expand_symtabs_for_function): Update.
13203
6f29a534
TT
132042020-03-31 Joel Jones <joelkevinjones@gmail.com>
13205
13206 PR tui/25597:
13207 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13208
af62665e
TT
132092020-03-31 Tom Tromey <tromey@adacore.com>
13210
13211 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13212 memcpy.
13213
d1a89da5
NC
132142020-03-30 Nelson Chu <nelson.chu@sifive.com>
13215
13216 * features/riscv/32bit-csr.xml: Regenerated.
13217 * features/riscv/64bit-csr.xml: Regenerated.
13218
d8af9068
TT
132192020-03-30 Tom Tromey <tromey@adacore.com>
13220
13221 * ada-valprint.c (print_variant_part): Update.
13222 * ada-lang.h (ada_which_variant_applies): Update.
13223 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13224 outer_valaddr parameters; replace with "outer" value parameter.
13225 (to_fixed_variant_branch_type): Update.
13226
227c0bf4
PFC
132272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13228
13229 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13230 <list>. Remove inclusion of observable.h.
13231 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13232 (struct arch_lwp_info): New struct.
13233 (class ppc_linux_dreg_interface): New class.
13234 (struct ppc_linux_process_info): New struct.
13235 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13236 <low_new_clone, low_forget_process, low_prepare_to_resume>
13237 <copy_thread_dreg_state, mark_thread_stale>
13238 <mark_debug_registers_changed, register_hw_breakpoint>
13239 <clear_hw_breakpoint, register_wp, clear_wp>
13240 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13241 <num_memory_accesses, get_trigger_type>
13242 <create_watchpoint_request, hwdebug_point_cmp>
13243 <init_arch_lwp_info, get_arch_lwp_info>
13244 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13245 methods.
13246 <struct ptid_hash>: New inner struct.
13247 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13248 members.
13249 (saved_dabr_value, hwdebug_info, max_slots_number)
13250 (struct hw_break_tuple, struct thread_points, ppc_threads)
13251 (have_ptrace_hwdebug_interface)
13252 (hwdebug_find_thread_points_by_tid)
13253 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13254 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13255 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13256 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13257 use m_dreg_interface.
13258 (hwdebug_point_cmp): Change to...
13259 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13260 reference arguments instead of pointers.
13261 (ppc_linux_nat_target::ranged_break_num_registers): Use
13262 m_dreg_interface.
13263 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13264 m_dreg_interface. Call register_hw_breakpoint.
13265 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13266 m_dreg_interface. Call clear_hw_breakpoint.
13267 (get_trigger_type): Change to...
13268 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13269 comment.
13270 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13271 use m_dreg_interface. Call register_hw_breakpoint.
13272 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13273 use m_dreg_interface. Call clear_hw_breakpoint.
13274 (can_use_watchpoint_cond_accel): Change to...
13275 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13276 method. Update comment, use m_dreg_interface and
13277 m_process_info.
13278 (calculate_dvc): Change to...
13279 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13280 m_dreg_interface.
13281 (num_memory_accesses): Change to...
13282 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13283 (check_condition): Change to...
13284 (ppc_linux_nat_target::check_condition): ...this method.
13285 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13286 comment, use m_dreg_interface.
13287 (create_watchpoint_request): Change to...
13288 (ppc_linux_nat_target::create_watchpoint_request): ...this
13289 method. Use m_dreg_interface.
13290 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13291 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13292 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13293 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13294 (ppc_linux_nat_target::low_forget_process)
13295 (ppc_linux_nat_target::low_new_fork)
13296 (ppc_linux_nat_target::low_new_clone)
13297 (ppc_linux_nat_target::low_delete_thread)
13298 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13299 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13300 only call mark_thread_stale.
13301 (ppc_linux_thread_exit): Remove.
13302 (ppc_linux_nat_target::stopped_data_address): Change to...
13303 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13304 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13305 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13306 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13307 comment. Call low_stopped_data_address.
13308 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13309 m_dreg_interface.
13310 (ppc_linux_nat_target::masked_watch_num_registers): Use
13311 m_dreg_interface.
13312 (ppc_linux_nat_target::copy_thread_dreg_state)
13313 (ppc_linux_nat_target::mark_thread_stale)
13314 (ppc_linux_nat_target::mark_debug_registers_changed)
13315 (ppc_linux_nat_target::register_hw_breakpoint)
13316 (ppc_linux_nat_target::clear_hw_breakpoint)
13317 (ppc_linux_nat_target::register_wp)
13318 (ppc_linux_nat_target::clear_wp)
13319 (ppc_linux_nat_target::init_arch_lwp_info)
13320 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13321 (_initialize_ppc_linux_nat): Remove observer callback.
13322
4db10d8f
PFC
133232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13324
13325 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13326 (ppc_linux_nat_target::auxv_parse)
13327 (ppc_linux_nat_target::read_description)
13328 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13329 Move up.
13330
1310c1b0
PFC
133312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13332
13333 * linux-nat.h (low_new_clone): New method.
13334 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13335
69b037c3
SM
133362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13337
13338 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13339 (dbx_expand_psymtab): ... this.
13340 (start_psymtab): Update.
13341 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13342 (mdebug_expand_psymtab): ... this.
13343 (parse_partial_symbols): Update.
13344 (new_psymtab): Update.
13345 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13346 (xcoff_expand_psymtab): ... this.
13347 (xcoff_start_psymtab): Update.
13348
48993951
SM
133492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13350
13351 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13352 <expand_dependencies>: ... this.
13353 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13354 (partial_symtab::expand_dependencies): ... this.
13355 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13356 Update.
13357 (dwarf2_psymtab::expand_psymtab): Update.
13358 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13359 * mdebugread.c (psymtab_to_symtab_1): Update.
13360 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13361
3ad83046
SM
133622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13363
13364 * psympriv.h (discard_psymtab): Remove.
13365 * dbxread.c (dbx_end_psymtab): Update.
13366 * xcoffread.c (xcoff_end_psymtab): Update.
13367
4d1b9ab6
TT
133682020-03-28 Tom Tromey <tom@tromey.com>
13369
13370 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13371 comment.
13372
f1749218
TT
133732020-03-28 Tom Tromey <tom@tromey.com>
13374
13375 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13376
ebea7626
HD
133772020-03-27 Hannes Domani <ssbssa@yahoo.de>
13378
13379 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13380
a879b4d5
JB
133812020-03-26 John Baldwin <jhb@FreeBSD.org>
13382
13383 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13384
0826b30a
TT
133852020-03-26 Tom Tromey <tom@tromey.com>
13386
13387 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13388 (mark_common_block_symbol_computed, read_tag_string_type)
13389 (attr_to_dynamic_prop, read_subrange_type): Update.
13390 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13391 to be methods on struct attribute.
13392 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13393 (read_call_site_scope, partial_die_info::read)
13394 (partial_die_info::read, lookup_die_type, follow_die_ref):
13395 Update.
13396 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13397 from dwarf2_get_ref_die_offset.
13398 (attribute::constant_value): New method, from
13399 dwarf2_get_attr_constant_value.
13400 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13401 Declare method.
13402 <constant_value>: New method.
13403
2b2558bf
TT
134042020-03-26 Tom Tromey <tom@tromey.com>
13405
13406 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13407 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13408 (dwarf_type_encoding_name): Move to stringify.c.
13409 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13410 * dwarf2/stringify.c: New file.
13411 * dwarf2/stringify.h: New file.
13412
eeb64781
TT
134132020-03-26 Tom Tromey <tom@tromey.com>
13414
13415 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13416 Rewrite.
13417
a39fdb41
TT
134182020-03-26 Tom Tromey <tom@tromey.com>
13419
13420 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13421 methods.
13422 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13423 (lookup_ranges_base): Likewise.
13424 (read_cutu_die_from_dwo, read_full_die_1): Update.
13425
436c571c
TT
134262020-03-26 Tom Tromey <tom@tromey.com>
13427
13428 * dwarf2/read.c (read_import_statement, read_file_scope)
13429 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13430 (read_lexical_block_scope, read_call_site_scope)
13431 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13432 (handle_struct_member_die, process_structure_scope)
13433 (update_enumeration_type_from_children)
13434 (process_enumeration_scope, read_array_type, read_common_block)
13435 (read_namespace, read_module, read_subroutine_type): Update.
13436 (sibling_die): Remove.
13437
052c8bb8
TT
134382020-03-26 Tom Tromey <tom@tromey.com>
13439
13440 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13441 (build_type_psymtabs_reader, read_structure_type)
13442 (read_enumeration_type, read_full_die_1): Update.
13443 (dwarf2_attr_no_follow): Move to die.h.
13444 * dwarf2/die.h (struct die_info) <attr>: New method.
13445
2b24b6e4
TT
134462020-03-26 Tom Tromey <tom@tromey.com>
13447
13448 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13449 <base_address>: Now an optional.
13450 (dwarf2_find_base_address, dwarf2_rnglists_process)
13451 (dwarf2_ranges_process, fill_in_loclist_baton)
13452 (dwarf2_symbol_mark_computed): Update.
13453
c2d50fd0
TT
134542020-03-26 Tom Tromey <tom@tromey.com>
13455
13456 * dwarf2/read.c (struct die_info): Move to die.h.
13457 * dwarf2/die.h: New file.
13458
0df7ad3a
TT
134592020-03-26 Tom Tromey <tom@tromey.com>
13460
13461 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13462 * dwarf2/read.c
13463 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13464 Move to line-header.c.
13465 (read_checked_initial_length_and_offset, read_formatted_entries):
13466 Likewise.
13467 (dwarf_decode_line_header): Split into two.
13468 * dwarf2/line-header.c
13469 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13470 Move from read.c.
13471 (read_checked_initial_length_and_offset, read_formatted_entries):
13472 Likewise.
13473 (dwarf_decode_line_header): New function, split from read.c.
13474
86c0bb4c
TT
134752020-03-26 Tom Tromey <tom@tromey.com>
13476
13477 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13478 Declare method.
13479 * dwarf2/read.c (read_attribute_value): Update.
13480 (dwarf2_per_objfile::read_line_string): Rename from
13481 read_indirect_line_string.
13482 (read_formatted_entries): Update.
13483
2ef46c2f
TT
134842020-03-26 Tom Tromey <tom@tromey.com>
13485
13486 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13487 variable.
13488
4f9c1eda
TT
134892020-03-26 Tom Tromey <tom@tromey.com>
13490
13491 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13492 const.
13493 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13494 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13495 parameter const.
13496
5a0e026f
TT
134972020-03-26 Tom Tromey <tom@tromey.com>
13498
13499 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13500 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13501 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13502 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13503
8844c11b
TT
135042020-03-26 Tom Tromey <tom@tromey.com>
13505
13506 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13507 file_names_size, file_full_name, file_file_name>: Use const.
13508 <file_name_at, file_names>: Add const overload.
13509 * dwarf2/line-header.c (line_header::file_file_name)
13510 (line_header::file_full_name): Update.
13511
c90ec28a
TT
135122020-03-26 Tom Tromey <tom@tromey.com>
13513
13514 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13515 (macro_start_file, consume_improper_spaces)
13516 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13517 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13518 (dwarf_decode_macros): Move to macro.c.
13519 * dwarf2/macro.c: New file.
13520 * dwarf2/macro.h: New file.
13521 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13522
4f44ae6c
TT
135232020-03-26 Tom Tromey <tom@tromey.com>
13524
13525 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13526 method.
13527 * dwarf2/section.c: New method. From
13528 read_indirect_string_at_offset_from.
13529 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13530 (read_indirect_string_at_offset_from): Move to section.c.
13531 (read_indirect_string_at_offset): Rewrite.
13532 (read_indirect_line_string_at_offset): Remove.
13533 (read_indirect_string, read_indirect_line_string)
13534 (dwarf_decode_macro_bytes): Update.
13535
a0194fa8
TT
135362020-03-26 Tom Tromey <tom@tromey.com>
13537
13538 * dwarf2/section.h (struct dwarf2_section_info)
13539 <overload_complaint>: Declare.
13540 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13541 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13542 Rename from dwarf2_section_buffer_overflow_complaint.
13543 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13544 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13545
3d27bbdb
TT
135462020-03-26 Tom Tromey <tom@tromey.com>
13547
13548 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13549 Declare.
13550 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13551 Move from read.c.
13552 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13553 to section.c.
13554
9eac9650
TT
135552020-03-26 Tom Tromey <tom@tromey.com>
13556
13557 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13558
bf80d710
TT
135592020-03-26 Tom Tromey <tom@tromey.com>
13560
13561 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13562 "builder".
13563 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13564 parameter.
13565 (dwarf_decode_macros): Update.
13566
0314b390
TT
135672020-03-26 Tom Tromey <tom@tromey.com>
13568
13569 * dwarf2/read.c (read_attribute_value): Update.
13570 (read_indirect_string_from_dwz): Move to dwz.c; change into
13571 method.
13572 (dwarf_decode_macro_bytes): Update.
13573 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13574 * dwarf2/dwz.c: New file.
13575 * Makefile.in (COMMON_SFILES): Add dwz.c.
13576
9fda78b6
TT
135772020-03-26 Tom Tromey <tom@tromey.com>
13578
13579 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13580 * dwarf2/read.c: Add include.
13581 * dwarf2/index-write.c: Add include.
13582 * dwarf2/index-cache.c: Add include.
13583 * dwarf2/dwz.h: New file.
13584
33aa3c10
TT
135852020-03-25 Tom Tromey <tom@tromey.com>
13586
13587 * compile/compile-object-load.c (get_out_value_type): Mention
13588 correct symbol name in error message.
13589
d503b685
HD
135902020-03-25 Hannes Domani <ssbssa@yahoo.de>
13591
13592 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13593
7b1eff95
TV
135942020-03-25 Tom de Vries <tdevries@suse.de>
13595
13596 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13597 * symmisc.c (dump_symtab_1): Print user and includes fields.
13598 (maintenance_info_symtabs): Same.
13599
dd895392
AB
136002020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13601
13602 PR gdb/25534
13603 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13604 (riscv_regcache_cooked_write): New function.
13605 (riscv_push_dummy_call): Use new function.
13606 (riscv_return_value): Likewise.
13607
5ab2fbf1
SM
136082020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13609
13610 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13611 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13612 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13613 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13614 * infrun.c (follow_fork): Likewise.
13615 (follow_fork_inferior): Likewise.
13616 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13617 * linux-nat.h (class linux_nat_target): Likewise.
13618 * remote.c (class remote_target) <follow_fork>: Likewise.
13619 (remote_target::follow_fork): Likewise.
13620 * target-delegates.c: Re-generate.
13621 * target.c (default_follow_fork): Likewise.
13622 (target_follow_fork): Likewise.
13623 * target.h (struct target_ops) <follow_fork>: Likewise.
13624 (target_follow_fork): Likewise.
13625
a64fafb5
TV
136262020-03-24 Tom de Vries <tdevries@suse.de>
13627
13628 * psymtab.c (maintenance_info_psymtabs): Print user field.
13629
fe26d3a3
TT
136302020-03-20 Tom Tromey <tromey@adacore.com>
13631
13632 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13633 const.
13634 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13635 const.
13636
c884cc46
SM
136372020-03-20 Simon Marchi <simon.marchi@efficios.com>
13638
13639 * ptrace.m4: Don't check for ptrace declaration.
13640 * config.in: Re-generate.
13641 * configure: Re-generate.
13642 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13643 not defined.
13644
1ff700c2
KR
136452020-03-20 Kamil Rytarowski <n54@gmx.com>
13646
13647 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13648 `PTRACE_TYPE_RET'.
13649 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13650 * sparc-nat.c (gdb_ptrace): Likewise.
13651 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13652
f7d4f0b1
TT
136532020-03-20 Tom Tromey <tromey@adacore.com>
13654
13655 * c-exp.y (lex_one_token): Fix assert.
13656
f67210ff
TT
136572020-03-20 Tom Tromey <tromey@adacore.com>
13658
13659 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13660 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13661 strncpy call.
13662
1773be9e
TT
136632020-03-20 Tom Tromey <tromey@adacore.com>
13664
13665 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13666
70304be9
TT
136672020-03-20 Tom Tromey <tromey@adacore.com>
13668
13669 * ada-valprint.c (print_variant_part): Remove parameters; switch
13670 to value-based API.
13671 (print_field_values): Likewise.
13672 (ada_val_print_struct_union): Likewise.
13673 (ada_value_print_1): Update.
13674
9faa006d
KR
136752020-03-20 Kamil Rytarowski <n54@gmx.com>
13676
13677 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13678 nbsd_nat_target instead of inf_ptrace_target.
13679 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13680 nbsd_nat_target.
13681
4a90f062
KR
136822020-03-20 Kamil Rytarowski <n54@gmx.com>
13683
13684 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13685 it to the ptrace call.
13686 * (store_registers): Likewise.
13687
136882020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13689
13690 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13691 it to the ptrace call.
13692 * (store_registers): Likewise.
13693
2d07da27
LM
136942020-03-19 Luis Machado <luis.machado@linaro.org>
13695
13696 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13697 valid, fetch vg value from ptrace.
13698
f09db380
KR
136992020-03-19 Kamil Rytarowski <n54@gmx.com>
13700 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13701 * inf-ptrace.c: Likewise.
13702 * (gdb_ptrace): Add.
13703 * (inf_ptrace_target::resume): Update.
13704 * (inf_ptrace_target::xfer_partial): Likewise.
13705 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13706 * (inf_ptrace_peek_poke): Update.
13707
fcc7376e
KR
137082020-03-19 Kamil Rytarowski <n54@gmx.com>
13709
13710 * x86-bsd-nat.c (gdb_ptrace): New.
13711 * (x86bsd_dr_set): Add new argument `ptid'.
13712 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13713 x86bsd_dr_set_addr): Update.
13714
cada5fc9
AB
137152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13716
13717 * remote.c (remote_target::process_stop_reply): Handle events for
13718 all threads differently.
13719
19a2740f
AB
137202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13721
13722 * completer.c (completion_tracker::remove_completion): Define new
13723 function.
13724 * completer.h (completion_tracker::remove_completion): Declare new
13725 function.
13726 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13727 when adding a C++ function symbol.
13728
724fd9ba
AB
137292020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13730
13731 * completer.c (completion_tracker::completion_hash_entry): Define
13732 new class.
13733 (advance_to_filename_complete_word_point): Call
13734 recompute_lowest_common_denominator.
13735 (completion_tracker::completion_tracker): Call discard_completions
13736 to setup the hash table.
13737 (completion_tracker::discard_completions): Allow for being called
13738 from the constructor, pass new equal function, and element deleter
13739 when constructing the hash table. Initialise new class member
13740 variables.
13741 (completion_tracker::maybe_add_completion): Remove use of
13742 m_entries_vec, and store more information into m_entries_hash.
13743 (completion_tracker::recompute_lcd_visitor): New function, most
13744 content taken from...
13745 (completion_tracker::recompute_lowest_common_denominator):
13746 ...here, this now just visits each item in the hash calling the
13747 above visitor.
13748 (completion_tracker::build_completion_result): Remove use of
13749 m_entries_vec, call recompute_lowest_common_denominator.
13750 * completer.h (completion_tracker::have_completions): Remove use
13751 of m_entries_vec.
13752 (completion_tracker::completion_hash_entry): Declare new class.
13753 (completion_tracker::recompute_lowest_common_denominator): Change
13754 function signature.
13755 (completion_tracker::recompute_lcd_visitor): Declare new function.
13756 (completion_tracker::m_entries_vec): Delete.
13757 (completion_tracker::m_entries_hash): Initialize to NULL.
13758 (completion_tracker::m_lowest_common_denominator_valid): New
13759 member variable.
13760 (completion_tracker::m_lowest_common_denominator_max_length): New
13761 member variable.
13762
5a82b8a1
KR
137632020-03-17 Kamil Rytarowski <n54@gmx.com>
13764
13765 * regformats/regdef.h: Put reg in gdb namespace.
13766
fb516a69
KR
137672020-03-17 Kamil Rytarowski <n54@gmx.com>
13768
13769 * i386-bsd-nat.c (gdb_ptrace): New.
13770 * (i386bsd_fetch_inferior_registers,
13771 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13772 * (i386bsd_fetch_inferior_registers,
13773 i386bsd_store_inferior_registers) Use gdb_ptrace.
13774
1c0aa1fb
KR
137752020-03-17 Kamil Rytarowski <n54@gmx.com>
13776
13777 * amd64-bsd-nat.c (gdb_ptrace): New.
13778 * (amd64bsd_fetch_inferior_registers,
13779 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13780 * (amd64bsd_fetch_inferior_registers,
13781 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13782
5ccd2fb7
KR
137832020-03-17 Kamil Rytarowski <n54@gmx.com>
13784
13785 * user-regs.c (user_reg::read): Rename to...
13786 (user_reg::xread): ...this.
13787 * (append_user_reg): Rename argument `read' to `xread'.
13788 * (user_reg_add_builtin): Likewise.
13789 * (user_reg_add): Likewise.
13790 * (value_of_user_reg): Likewise.
13791
2108a63a
KR
137922020-03-17 Kamil Rytarowski <n54@gmx.com>
13793
13794 * sparc-nat.c (gdb_ptrace): New.
13795 * sparc-nat.c (sparc_fetch_inferior_registers)
13796 (sparc_store_inferior_registers) Remove obsolete comment.
13797 * sparc-nat.c (sparc_fetch_inferior_registers)
13798 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13799 * sparc-nat.c (sparc_fetch_inferior_registers)
13800 (sparc_store_inferior_registers) Use gdb_ptrace.
13801
a225c9a8
KR
138022020-03-17 Kamil Rytarowski <n54@gmx.com>
13803
13804 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13805 it to the ptrace call.
13806 * sh-nbsd-nat.c (store_registers): Likewise.
13807
98097623
KR
138082020-03-17 Kamil Rytarowski <n54@gmx.com>
13809
13810 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13811 nbsd_nat_target instead of inf_ptrace_target.
13812 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13813 nbsd_nat_target.
13814
9e38d619
KR
138152020-03-17 Kamil Rytarowski <n54@gmx.com>
13816
13817 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13818
a2ecbe9f
KR
138192020-03-17 Kamil Rytarowski <n54@gmx.com>
13820
13821 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13822 <sys/sysctl.h>.
13823 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13824
58990295
TV
138252020-03-17 Tom de Vries <tdevries@suse.de>
13826
13827 PR gdb/23710
13828 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13829 fields.
13830 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13831 fields.
13832 (process_imported_unit_die): Skip import of c++ CUs.
13833
771dd3a8
TT
138342020-03-16 Tom Tromey <tom@tromey.com>
13835
13836 * p-valprint.c (pascal_object_print_value): Initialize
13837 base_value.
13838
817a7585
AK
138392020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13840 Shahab Vahedi <shahab@synopsys.com>
13841
13842 * Makefile.in: Add arch/arc.o
13843 * configure.tgt: Likewise.
13844 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13845 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13846 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13847 * arc-tdep.h (arc_read_description): Add proto type.
13848 * arch/arc.c: New file.
13849 * arch/arc.h: Likewise.
13850 * features/Makefile: Replace old target descriptions with new.
13851 * features/arc-arcompact.c: Remove.
13852 * features/arc-arcompact.xml: Likewise.
13853 * features/arc-v2.c: Likewise
13854 * features/arc-v2.xml: Likewise
13855 * features/arc/aux-arcompact.xml: New file.
13856 * features/arc/aux-v2.xml: Likewise.
13857 * features/arc/core-arcompact.xml: Likewise.
13858 * features/arc/core-v2.xml: Likewise.
13859 * features/arc/aux-arcompact.c: Generate.
13860 * features/arc/aux-v2.c: Likewise.
13861 * features/arc/core-arcompact.c: Likewise.
13862 * features/arc/core-v2.c: Likewise.
13863 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13864
67430cd0
TT
138652020-03-16 Tom Tromey <tromey@adacore.com>
13866
13867 PR gdb/25663:
13868 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13869 putting value into bcache.
13870
30efb6c7
SM
138712020-03-16 Simon Marchi <simon.marchi@efficios.com>
13872
13873 PR gdb/21500
13874 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13875 to...
13876 (amd64_windows_init_abi_common): ... this. Don't set size of
13877 long type.
13878 (amd64_windows_init_abi): New function.
13879 (amd64_cygwin_init_abi): New function.
13880 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13881 the Cygwin OS ABI.
13882 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13883 comment.
13884
8db52437
SM
138852020-03-16 Simon Marchi <simon.marchi@efficios.com>
13886
13887 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13888 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13889 (pe_import_directory_entry): New struct type.
13890 (is_linked_with_cygwin_dll): New function.
13891 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13892 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13893 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13894
5982a56a
SM
138952020-03-16 Simon Marchi <simon.marchi@efficios.com>
13896
13897 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13898 i386_cygwin_core_osabi_sniffer.
13899
7a1998df
SM
139002020-03-16 Simon Marchi <simon.marchi@efficios.com>
13901
13902 * i386-cygwin-tdep.c: Rename to...
13903 * i386-windows-tdep.c: ... this.
13904 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13905 i386-windows-tdep.c.
13906 * configure.tgt: Likewise.
13907
053205cc
SM
139082020-03-16 Simon Marchi <simon.marchi@efficios.com>
13909
13910 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13911 * osabi.c (gdb_osabi_names): Add "Windows".
13912 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13913 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13914 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13915 i386_cygwin_osabi_sniffer.
13916 (_initialize_i386_cygwin_tdep): Register OS ABI
13917 GDB_OSABI_WINDOWS for i386.
13918 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13919 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13920 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13921 for x86-64.
13922 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13923 when the target matches '*-*-mingw*'.
13924
fe4b2ee6
SM
139252020-03-16 Simon Marchi <simon.marchi@efficios.com>
13926
13927 * defs.h (enum gdb_osabi): Move to...
13928 * osabi.h (enum gdb_osabi): ... here.
13929 * gdbarch.sh: Include osabi.h in gdbarch.h.
13930 * gdbarch.h: Re-generate.
13931
cb9b645d
SM
139322020-03-16 Simon Marchi <simon.marchi@efficios.com>
13933
13934 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13935 function.
13936 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13937
3293bbaf
TT
139382020-03-14 Tom Tromey <tom@tromey.com>
13939
13940 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13941 for C++.
13942 (c_type_print_modifier): Likewise. Add "language" parameter.
13943 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13944 (c_type_print_base_1): Update.
13945 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13946 constants.
13947 * type-stack.c (type_stack::insert): Handle tp_atomic and
13948 tp_restrict.
13949 (type_stack::follow_type_instance_flags): Likewise.
13950 (type_stack::follow_types): Likewise. Merge type-following code.
13951 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13952 (space_identifier, cv_with_space_id)
13953 (const_or_volatile_or_space_identifier_noopt)
13954 (const_or_volatile_or_space_identifier): Remove.
13955 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13956 rules.
13957 (ptr_operator, typebase): Update.
13958 (enum token_flag) <FLAG_C>: New constant.
13959 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13960 "_Atomic".
13961 (lex_one_token): Handle FLAG_C.
13962
154151a6
KR
139632020-03-14 Kamil Rytarowski <n54@gmx.com>
13964
13965 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13966 it to the ptrace call.
13967 * m68k-bsd-nat.c (store_registers): Likewise.
13968
bc107784
KR
139692020-03-14 Kamil Rytarowski <n54@gmx.com>
13970
13971 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13972 gdb_byte *.
13973 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13974 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13975 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13976
01a80117
KR
139772020-03-14 Kamil Rytarowski <n54@gmx.com>
13978
13979 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13980 nbsd_nat_target instead of inf_ptrace_target.
13981 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13982 nbsd_nat_target.
13983
f90280ca
KR
139842020-03-14 Kamil Rytarowski <n54@gmx.com>
13985
13986 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13987 register_t.
13988
6def66f1
KR
139892020-03-14 Kamil Rytarowski <n54@gmx.com>
13990
13991 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13992 it to the ptrace call.
13993 * alpha-bsd-nat.c (store_registers): Likewise.
13994
66eaca97
KR
139952020-03-14 Kamil Rytarowski <n54@gmx.com>
13996
13997 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13998 includes.
13999 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14000 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14001 fill_fpregset): Likewise.
14002
4fed520b
KR
140032020-03-14 Kamil Rytarowski <n54@gmx.com>
14004
14005 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14006 nbsd_nat_target instead of inf_ptrace_target.
14007 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14008 nbsd_nat_target.
14009
2190cf06
KR
140102020-03-14 Kamil Rytarowski <n54@gmx.com>
14011
14012 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14013 register_t.
14014
75c56d3d
KR
140152020-03-14 Kamil Rytarowski <n54@gmx.com>
14016
14017 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14018 it to the ptrace call.
14019 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14020 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14021 * arm-nbsd-nat.c (store_register): Likewise.
14022 * arm-nbsd-nat.c (store_regs): Likewise.
14023 * arm-nbsd-nat.c (store_fp_register): Likewise.
14024 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14025
6018d381
KR
140262020-03-14 Kamil Rytarowski <n54@gmx.com>
14027
14028 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14029 nbsd_nat_target instead of inf_ptrace_target.
14030 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14031 nbsd_nat_target.
14032
013f99f0
KR
140332020-03-14 Kamil Rytarowski <n54@gmx.com>
14034
14035 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14036 it to the ptrace call.
14037 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14038
12753073
KR
140392020-03-14 Kamil Rytarowski <n54@gmx.com>
14040
6227b330
KR
14041 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14042 it to the ptrace call.
14043 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14044
140452020-03-14 Kamil Rytarowski <n54@gmx.com>
14046
14047 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14048 gdb_byte *.
12753073
KR
14049 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14050
d5be5fa4
KR
140512020-03-14 Kamil Rytarowski <n54@gmx.com>
14052
14053 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14054 instead of inf_ptrace_target.
14055 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14056 nbsd_nat_target.
14057
8110f842
KR
140582020-03-14 Kamil Rytarowski <n54@gmx.com>
14059
14060 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14061 register_t.
14062
52feded7
KR
140632020-03-14 Kamil Rytarowski <n54@gmx.com>
14064
14065 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14066 register_t.
14067
25567eee
KR
140682020-03-14 Kamil Rytarowski <n54@gmx.com>
14069
14070 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14071 register_t.
14072
426a9c18
TT
140732020-03-13 Tom Tromey <tom@tromey.com>
14074
14075 * value.h (val_print): Don't declare.
14076 * valprint.h (val_print_array_elements)
14077 (val_print_scalar_formatted, generic_val_print): Don't declare.
14078 * valprint.c (generic_val_print_array): Take a struct value.
14079 (generic_val_print_ptr, generic_val_print_memberptr)
14080 (generic_val_print_bool, generic_val_print_int)
14081 (generic_val_print_char, generic_val_print_complex)
14082 (generic_val_print): Remove.
14083 (generic_value_print): Update.
14084 (do_val_print): Remove unused parameters. Don't call
14085 la_val_print.
14086 (val_print): Remove.
14087 (common_val_print): Update. Don't call value_check_printable.
14088 (val_print_scalar_formatted, val_print_array_elements): Remove.
14089 * rust-lang.c (rust_val_print): Remove.
14090 (rust_language_defn): Update.
14091 * p-valprint.c (pascal_val_print): Remove.
14092 (pascal_value_print_inner): Update.
14093 (pascal_object_print_val_fields, pascal_object_print_val):
14094 Remove.
14095 (pascal_object_print_static_field): Update.
14096 * p-lang.h (pascal_val_print): Don't declare.
14097 * p-lang.c (pascal_language_defn): Update.
14098 * opencl-lang.c (opencl_language_defn): Update.
14099 * objc-lang.c (objc_language_defn): Update.
14100 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14101 * m2-lang.h (m2_val_print): Don't declare.
14102 * m2-lang.c (m2_language_defn): Update.
14103 * language.h (struct language_defn) <la_val_print>: Remove.
14104 * language.c (unk_lang_value_print_inner): Rename. Change
14105 argument types.
14106 (unknown_language_defn, auto_language_defn): Update.
14107 * go-valprint.c (go_val_print): Remove.
14108 * go-lang.h (go_val_print): Don't declare.
14109 * go-lang.c (go_language_defn): Update.
14110 * f-valprint.c (f_val_print): Remove.
14111 * f-lang.h (f_value_print): Don't declare.
14112 * f-lang.c (f_language_defn): Update.
14113 * d-valprint.c (d_val_print): Remove.
14114 * d-lang.h (d_value_print): Don't declare.
14115 * d-lang.c (d_language_defn): Update.
14116 * cp-valprint.c (cp_print_value_fields)
14117 (cp_print_value_fields_rtti, cp_print_value): Remove.
14118 (cp_print_static_field): Update.
14119 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14120 (c_val_print_struct, c_val_print_union, c_val_print_int)
14121 (c_val_print_memberptr, c_val_print): Remove.
14122 * c-lang.h (c_val_print_array, cp_print_value_fields)
14123 (cp_print_value_fields_rtti): Don't declare.
14124 * c-lang.c (c_language_defn, cplus_language_defn)
14125 (asm_language_defn, minimal_language_defn): Update.
14126 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14127 (ada_val_print_enum): Take a struct value.
14128 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14129 (ada_val_print): Remove.
14130 (ada_value_print_1): Update.
14131 (printable_val_type): Remove.
14132 * ada-lang.h (ada_val_print): Don't declare.
14133 * ada-lang.c (ada_language_defn): Update.
14134
42331a1e
TT
141352020-03-13 Tom Tromey <tom@tromey.com>
14136
14137 * valprint.c (do_val_print): Update.
14138 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14139 a struct value.
14140 (value_to_value_object_no_release): Declare.
14141 * python/py-value.c (value_to_value_object_no_release): New
14142 function.
14143 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14144 struct value.
14145 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14146 function.
14147 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14148 a struct value.
14149 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14150 Declare.
14151 (gdbscm_apply_val_pretty_printer): Take a struct value.
14152 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14153 value.
14154 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14155 value.
14156 * extension-priv.h (struct extension_language_ops)
14157 <apply_val_pretty_printer>: Take a struct value.
14158 * cp-valprint.c (cp_print_value): Create a struct value.
14159 (cp_print_value): Update.
14160
3a916a97
TT
141612020-03-13 Tom Tromey <tom@tromey.com>
14162
14163 * ada-valprint.c (print_field_values): Call common_val_print.
14164
b59eac37
TT
141652020-03-13 Tom Tromey <tom@tromey.com>
14166
14167 * ada-valprint.c (val_print_packed_array_elements): Remove
14168 bitoffset and val parameters. Call common_val_print.
14169 (ada_val_print_string): Remove offset, address, and original_value
14170 parameters.
14171 (ada_val_print_array): Update.
14172 (ada_value_print_array): New function.
14173 (ada_value_print_1): Call it.
14174
03371129
TT
141752020-03-13 Tom Tromey <tom@tromey.com>
14176
14177 * ada-valprint.c (ada_value_print): Use common_val_print.
14178
2e088f8b
TT
141792020-03-13 Tom Tromey <tom@tromey.com>
14180
14181 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14182
39ef85a8
TT
141832020-03-13 Tom Tromey <tom@tromey.com>
14184
14185 * ada-valprint.c (ada_value_print_num): New function.
14186 (ada_value_print_1): Use it.
14187
b9fa6e07
TT
141882020-03-13 Tom Tromey <tom@tromey.com>
14189
14190 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14191
416595d6
TT
141922020-03-13 Tom Tromey <tom@tromey.com>
14193
14194 * ada-valprint.c (ada_value_print_ptr): New function.
14195 (ada_value_print_1): Use it.
14196
5b5e15ec
TT
141972020-03-13 Tom Tromey <tom@tromey.com>
14198
14199 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14200 call common_val_print.
14201 (ada_val_print_1): Update.
14202 (ada_value_print_1): New function.
14203 (ada_value_print_inner): Rewrite.
14204
fbf54e75
TT
142052020-03-13 Tom Tromey <tom@tromey.com>
14206
14207 * cp-valprint.c (cp_print_value_fields): Update.
14208 (cp_print_value): New function.
14209
64b653ca
TT
142102020-03-13 Tom Tromey <tom@tromey.com>
14211
14212 * m2-valprint.c (m2_value_print_inner): Use
14213 cp_print_value_fields.
14214 * cp-valprint.c (cp_print_value_fields): New function.
14215 * c-valprint.c (c_value_print_struct): New function.
14216 (c_value_print_inner): Use c_value_print_struct.
14217 * c-lang.h (cp_print_value_fields): Declare.
14218
6999f067
TT
142192020-03-13 Tom Tromey <tom@tromey.com>
14220
14221 * c-valprint.c (c_value_print_array): New function.
14222 (c_value_print_inner): Use it.
14223
ce80b8bd
TT
142242020-03-13 Tom Tromey <tom@tromey.com>
14225
14226 * c-valprint.c (c_value_print_memberptr): New function.
14227 (c_value_print_inner): Use it.
14228
2faac269
TT
142292020-03-13 Tom Tromey <tom@tromey.com>
14230
14231 * c-valprint.c (c_value_print_int): New function.
14232 (c_value_print_inner): Use it.
14233
da3e2c29
TT
142342020-03-13 Tom Tromey <tom@tromey.com>
14235
14236 * c-valprint.c (c_value_print_ptr): New function.
14237 (c_value_print_inner): Use it.
14238
50836231
TT
142392020-03-13 Tom Tromey <tom@tromey.com>
14240
14241 * c-valprint.c (c_value_print_inner): Rewrite.
14242
4f412b6e
TT
142432020-03-13 Tom Tromey <tom@tromey.com>
14244
14245 * valprint.c (generic_value_print_complex): New function.
14246 (generic_value_print): Use it.
14247
f5354008
TT
142482020-03-13 Tom Tromey <tom@tromey.com>
14249
14250 * valprint.c (generic_val_print_float): Don't call
14251 val_print_scalar_formatted.
14252 (generic_val_print, generic_value_print): Update.
14253
3eec3b05
TT
142542020-03-13 Tom Tromey <tom@tromey.com>
14255
14256 * valprint.c (generic_value_print_char): New function
14257 (generic_value_print): Use it.
14258
fdddfccb
TT
142592020-03-13 Tom Tromey <tom@tromey.com>
14260
14261 * valprint.c (generic_value_print_int): New function.
14262 (generic_value_print): Use it.
14263
6dde7521
TT
142642020-03-13 Tom Tromey <tom@tromey.com>
14265
14266 * valprint.c (generic_value_print_bool): New function.
14267 (generic_value_print): Use it.
14268
4112d2e6
TT
142692020-03-13 Tom Tromey <tom@tromey.com>
14270
14271 * valprint.c (generic_val_print_func): Simplify.
14272 (generic_val_print, generic_value_print): Update.
14273
65786af6
TT
142742020-03-13 Tom Tromey <tom@tromey.com>
14275
14276 * valprint.c (generic_val_print_flags): Remove.
14277 (generic_val_print, generic_value_print): Update.
14278 (val_print_type_code_flags): Add original_value parameter.
14279
40f3ce18
TT
142802020-03-13 Tom Tromey <tom@tromey.com>
14281
14282 * valprint.c (generic_val_print): Update.
14283 (generic_value_print): Update.
14284 * valprint.c (generic_val_print_enum): Don't call
14285 val_print_scalar_formatted.
14286
2a5b130b
TT
142872020-03-13 Tom Tromey <tom@tromey.com>
14288
14289 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14290 * valprint.c (generic_value_print_ptr): New function.
14291
abc66ce9
TT
142922020-03-13 Tom Tromey <tom@tromey.com>
14293
14294 * valprint.c (generic_value_print): Rewrite.
14295
07a32858
TT
142962020-03-13 Tom Tromey <tom@tromey.com>
14297
14298 * p-valprint.c (pascal_object_print_value_fields)
14299 (pascal_object_print_value): New functions.
14300
64d64d3a
TT
143012020-03-13 Tom Tromey <tom@tromey.com>
14302
14303 * p-valprint.c (pascal_value_print_inner): Rewrite.
14304
6a95a1f5
TT
143052020-03-13 Tom Tromey <tom@tromey.com>
14306
14307 * f-valprint.c (f_value_print_innner): Rewrite.
14308
59fcdac6
TT
143092020-03-13 Tom Tromey <tom@tromey.com>
14310
14311 * m2-valprint.c (m2_print_unbounded_array): New overload.
14312 (m2_print_unbounded_array): Update.
14313 (m2_print_array_contents): Take a struct value.
14314 (m2_value_print_inner): Rewrite.
14315
d133c3e1
TT
143162020-03-13 Tom Tromey <tom@tromey.com>
14317
14318 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14319 (d_value_print_inner): New function.
14320 * d-lang.h (d_value_print_inner): Declare.
14321 * d-lang.c (d_language_defn): Use d_value_print_inner.
14322
23b0f06b
TT
143232020-03-13 Tom Tromey <tom@tromey.com>
14324
14325 * go-valprint.c (go_value_print_inner): New function.
14326 * go-lang.h (go_value_print_inner): Declare.
14327 * go-lang.c (go_language_defn): Use go_value_print_inner.
14328
5f56f7cb
TT
143292020-03-13 Tom Tromey <tom@tromey.com>
14330
14331 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14332 API.
14333 (rust_val_print): Rewrite.
14334 (rust_value_print_inner): New function, from rust_val_print.
14335 (rust_language_defn): Use rust_value_print_inner.
14336
26792ee0
TT
143372020-03-13 Tom Tromey <tom@tromey.com>
14338
14339 * ada-valprint.c (ada_value_print_inner): New function.
14340 * ada-lang.h (ada_value_print_inner): Declare.
14341 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14342
24051bbe
TT
143432020-03-13 Tom Tromey <tom@tromey.com>
14344
14345 * f-valprint.c (f_value_print_innner): New function.
14346 * f-lang.h (f_value_print_innner): Declare.
14347 * f-lang.c (f_language_defn): Use f_value_print_innner.
14348
c0941be6
TT
143492020-03-13 Tom Tromey <tom@tromey.com>
14350
14351 * p-valprint.c (pascal_value_print_inner): New function.
14352 * p-lang.h (pascal_value_print_inner): Declare.
14353 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14354
62c4663d
TT
143552020-03-13 Tom Tromey <tom@tromey.com>
14356
14357 * m2-valprint.c (m2_value_print_inner): New function.
14358 * m2-lang.h (m2_value_print_inner): Declare.
14359 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14360
62182190
TT
143612020-03-13 Tom Tromey <tom@tromey.com>
14362
14363 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14364 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14365 * c-valprint.c (c_value_print_inner): New function.
14366 * c-lang.h (c_value_print_inner): Declare.
14367 * c-lang.c (c_language_defn, cplus_language_defn)
14368 (asm_language_defn, minimal_language_defn): Use
14369 c_value_print_inner.
14370
1e592a8a
TT
143712020-03-13 Tom Tromey <tom@tromey.com>
14372
14373 * p-valprint.c (pascal_object_print_value_fields): Now static.
14374 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14375
7fe471e9
TT
143762020-03-13 Tom Tromey <tom@tromey.com>
14377
14378 * c-valprint.c (c_val_print_array): Simplify.
14379
d121c6ce
TT
143802020-03-13 Tom Tromey <tom@tromey.com>
14381
14382 * valprint.c (value_print_array_elements): New function.
14383 * valprint.h (value_print_array_elements): Declare.
14384
4dba70ee
TT
143852020-03-13 Tom Tromey <tom@tromey.com>
14386
14387 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14388 * mips-tdep.c (mips_print_register): Use
14389 value_print_scalar_formatted.
14390
4f9ae810
TT
143912020-03-13 Tom Tromey <tom@tromey.com>
14392
14393 * valprint.h (value_print_scalar_formatted): Declare.
14394 * valprint.c (value_print_scalar_formatted): New function.
14395
156bfec9
TT
143962020-03-13 Tom Tromey <tom@tromey.com>
14397
14398 * valprint.h (generic_value_print): Declare.
14399 * valprint.c (generic_value_print): New function.
14400
2b4e573d
TT
144012020-03-13 Tom Tromey <tom@tromey.com>
14402
14403 * valprint.c (do_val_print): Call la_value_print_inner, if
14404 available.
14405 * rust-lang.c (rust_language_defn): Update.
14406 * p-lang.c (pascal_language_defn): Update.
14407 * opencl-lang.c (opencl_language_defn): Update.
14408 * objc-lang.c (objc_language_defn): Update.
14409 * m2-lang.c (m2_language_defn): Update.
14410 * language.h (struct language_defn) <la_value_print_inner>: New
14411 member.
14412 * language.c (unknown_language_defn, auto_language_defn): Update.
14413 * go-lang.c (go_language_defn): Update.
14414 * f-lang.c (f_language_defn): Update.
14415 * d-lang.c (d_language_defn): Update.
14416 * c-lang.c (c_language_defn, cplus_language_defn)
14417 (asm_language_defn, minimal_language_defn): Update.
14418 * ada-lang.c (ada_language_defn): Update.
14419
a1f6a07c
TT
144202020-03-13 Tom Tromey <tom@tromey.com>
14421
14422 * c-valprint.c (c_value_print): Use common_val_print.
14423
410cf315
TT
144242020-03-13 Tom Tromey <tom@tromey.com>
14425
14426 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14427
72a45c93
TT
144282020-03-13 Tom Tromey <tom@tromey.com>
14429
14430 * f-valprint.c (f77_print_array_1, f_val_print): Use
14431 common_val_print.
14432
040f66bd
TT
144332020-03-13 Tom Tromey <tom@tromey.com>
14434
14435 * riscv-tdep.c (riscv_print_one_register_info): Use
14436 common_val_print.
14437
a6e05a6c
TT
144382020-03-13 Tom Tromey <tom@tromey.com>
14439
14440 * mi/mi-main.c (output_register): Use common_val_print.
14441
3444c526
TT
144422020-03-13 Tom Tromey <tom@tromey.com>
14443
14444 * infcmd.c (default_print_one_register_info): Use
14445 common_val_print.
14446
c2a44efe
TT
144472020-03-13 Tom Tromey <tom@tromey.com>
14448
14449 * valprint.h (common_val_print_checked): Declare.
14450 * valprint.c (common_val_print_checked): New function.
14451 * stack.c (print_frame_arg): Use common_val_print_checked.
14452
b0c26e99
TT
144532020-03-13 Tom Tromey <tom@tromey.com>
14454
14455 * valprint.c (do_val_print): New function, from val_print.
14456 (val_print): Use do_val_print.
14457 (common_val_print): Use do_val_print.
14458
ce3acbe9
TT
144592020-03-13 Tom Tromey <tom@tromey.com>
14460
14461 * valprint.c (value_print): Use scoped_value_mark.
14462
96c7f873
TV
144632020-03-13 Tom de Vries <tdevries@suse.de>
14464
14465 PR symtab/25646
14466 * psymtab.c (partial_symtab::partial_symtab): Don't set
14467 globals_offset and statics_offset. Push element onto
14468 current_global_psymbols and current_static_psymbols stacks.
14469 (concat): New function.
14470 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14471 element from current_global_psymbols and current_static_psymbols
14472 stacks. Concat popped elements to global_psymbols and
14473 static_symbols.
14474 (add_psymbol_to_list): Use current_global_psymbols and
14475 current_static_psymbols stacks.
14476 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14477 current_static_psymbols fields.
14478
6ba0a321
CB
144792020-03-12 Christian Biesinger <cbiesinger@google.com>
14480
14481 * corelow.c (sniff_core_bfd): Remove.
14482 (class core_target) <m_core_vec>: Remove.
14483 (core_target::core_target): Update.
14484 (core_file_fns): Remove.
14485 (deprecated_add_core_fns): Remove.
14486 (default_core_sniffer): Remove.
14487 (sniff_core_bfd): Remove.
14488 (default_check_format): Remove.
14489 (gdb_check_format): Remove.
14490 (core_target_open): Update.
14491 (core_target::get_core_register_section): Update.
14492 (get_core_registers_cb): Update.
14493 (core_target::fetch_registers): Update.
14494 * gdbcore.h (struct core_fns): Remove.
14495 (deprecated_add_core_fns): Remove.
14496 (default_core_sniffer): Remove.
14497 (default_check_format): Remove.
14498
227031b2
TT
144992020-03-12 Tom Tromey <tom@tromey.com>
14500
14501 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14502 CORE_ADDR.
14503 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14504
53807e9f
TT
145052020-03-12 Tom Tromey <tom@tromey.com>
14506
14507 * remote.c (remote_target::download_tracepoint)
14508 (remote_target::enable_tracepoint)
14509 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14510 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14511 sprintf_vma.
14512
64f25102
TT
145132020-03-12 Tom Tromey <tom@tromey.com>
14514
14515 * symfile-mem.c: Update CORE_ADDR size assert.
14516
272cd5a3
SM
145172020-03-12 Simon Marchi <simon.marchi@efficios.com>
14518
14519 * selftest.m4: Move to gdbsupport/.
14520 * acinclude.m4: Update path to selftest.m4.
14521
74cd3f9d
SM
145222020-03-12 Simon Marchi <simon.marchi@efficios.com>
14523
14524 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14525 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14526 gdbarch-selfselftests.c and selftest-arch.c.
14527 (SUBDIR_UNITTESTS_OBS): Rename to...
14528 (SELFTESTS_OBS): ... this.
14529 (COMMON_SFILES): Remove disasm-selftests.c and
14530 gdbarch-selftests.c.
14531 * configure.ac: Don't add selftest-arch.{c,o} to
14532 CONFIG_{SRCS,OBS}.
14533 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14534 preprocessor conditions.
14535
db6878ac
SM
145362020-03-12 Simon Marchi <simon.marchi@efficios.com>
14537
14538 * configure.ac: Don't source bfd/development.sh.
14539 * selftest.m4: Modify comment.
14540 * configure: Re-generate.
14541
4d696a5c
SM
145422020-03-12 Simon Marchi <simon.marchi@efficios.com>
14543
14544 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14545 not "true" or "false".
14546 * configure: Re-generate.
14547
8dd8e1c7
CB
145482020-03-12 Christian Biesinger <cbiesinger@google.com>
14549
14550 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14551 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14552 renamed to arm_nbsd_supply_gregset.
14553 (fetch_register): Update to call arm_nbsd_supply_gregset.
14554 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14555 (arm_netbsd_nat_target::fetch_registers): Update.
14556 (fetch_elfcore_registers): Removed.
14557 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14558 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14559 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14560 not require NetBSD system headers.
14561 (arm_nbsd_regset): New struct.
14562 (arm_nbsd_iterate_over_regset_sections): New function.
14563 (arm_netbsd_init_abi_common): Updated to call
14564 set_gdbarch_iterate_over_regset_sections.
14565 * arm-nbsd-tdep.h: New file.
14566
dd69bf7a
KB
145672020-03-11 Kevin Buettner <kevinb@redhat.com>
14568
14569 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14570 recursion.
14571
a0761e34
SM
145722020-03-11 Simon Marchi <simon.marchi@efficios.com>
14573
14574 * configure: Re-generate.
14575
e7a82140
TT
145762020-03-11 Tom Tromey <tromey@adacore.com>
14577
14578 * ada-typeprint.c (print_choices): Fix comment.
14579
dcc050c8
AB
145802020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14581
14582 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14583 previous item in the list, when the list has no items.
14584
1c33af77
TV
145852020-03-11 Tom de Vries <tdevries@suse.de>
14586
14587 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14588 PROP_LOCLIST handling code.
14589
8c95582d
AB
145902020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14591
14592 * buildsym-legacy.c (record_line): Pass extra parameter to
14593 record_line.
14594 * buildsym.c (buildsym_compunit::record_line): Take an extra
14595 parameter, reduce duplication in the line table, and record the
14596 is_stmt flag in the line table.
14597 * buildsym.h (buildsym_compunit::record_line): Add extra
14598 parameter.
14599 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14600 non-statement lines.
14601 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14602 this to the symtab builder.
14603 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14604 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14605 through to dwarf_record_line_1.
14606 * infrun.c (process_event_stop_test): When stepping, don't stop at
14607 a non-statement instruction, and only refresh the step info when
14608 we land in the middle of a line's range. Also add an extra
14609 comment.
14610 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14611 field.
14612 * record-btrace.c (btrace_find_line_range): Only record lines
14613 marked as is-statement.
14614 * stack.c (frame_show_address): Show the frame address if we are
14615 in a non-statement sal.
14616 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14617 (maintenance_print_one_line_table): Print a header for the is_stmt
14618 column, and include is_stmt information in the output.
14619 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14620 preference to non-statements.
14621 (find_pcs_for_symtab_line): Prefer is-statement entries.
14622 (find_line_common): Likewise.
14623 * symtab.h (struct linetable_entry): Add is_stmt field.
14624 (struct symtab_and_line): Likewise.
14625 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14626 arranging the line table.
14627
e4003a34
TV
146282020-03-07 Tom de Vries <tdevries@suse.de>
14629
14630 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14631 DIE.
14632
e8932576
TT
146332020-03-07 Tom Tromey <tom@tromey.com>
14634
14635 * valops.c (value_literal_complex): Remove obsolete comment.
14636 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14637 comment.
14638
29734269
SM
146392020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14640
14641 * infrun.h: Forward-declare thread_info.
14642 (set_step_info): Add thread_info parameter, add doc.
14643 * infrun.c (set_step_info): Add thread_info parameter, move doc
14644 to header.
14645 * infrun.c (process_event_stop_test): Pass thread to
14646 set_step_info call.
14647 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14648 set_step_info.
14649 (prepare_one_step): Add thread_info parameter, pass it to
14650 set_step_frame and prepare_one_step (recursive) call.
14651 (step_1): Pass thread to prepare_one_step call.
14652 (step_command_fsm::should_stop): Pass thread to
14653 prepare_one_step.
14654 (until_next_fsm): Pass thread to set_step_frame call.
14655 (finish_command): Pass thread to set_step_info call.
14656
b7d64b29
HD
146572020-03-06 Hannes Domani <ssbssa@yahoo.de>
14658
14659 * windows-tdep.c (windows_solib_create_inferior_hook):
14660 Check if inferior is running.
14661
09f2921c
TV
146622020-03-06 Tom de Vries <tdevries@suse.de>
14663
14664 * NEWS: Fix "the the".
14665 * ctfread.c: Same.
14666
fd760e79
TV
146672020-03-06 Tom de Vries <tdevries@suse.de>
14668
14669 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14670
20ea4a60
AB
146712020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14672
14673 * .dir-locals.el: Add a comment referencing the other copies of
14674 this file.
14675
0afbabf0
JB
146762020-03-05 John Baldwin <jhb@FreeBSD.org>
14677
14678 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14679 psargs.
14680
842806cb
TBA
146812020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14682
14683 * .gitattributes: New file.
14684
be1e3d3e
TT
146852020-03-04 Tom Tromey <tom@tromey.com>
14686
14687 * symmisc.c (print_symbol_bcache_statistics)
14688 (print_objfile_statistics): Update.
14689 * symfile.c (allocate_symtab): Use intern.
14690 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14691 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14692 macro_cache>: Remove.
14693 <string_cache>: New member.
14694 (struct objfile) <intern>: New methods.
14695 * elfread.c (elf_symtab_read): Use intern.
14696 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14697 (dwarf2_compute_name, dwarf2_physname)
14698 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14699 names.
14700 (guess_partial_die_structure_name): Update.
14701 (partial_die_info::fixup): Intern name.
14702 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14703 name.
14704 (dwarf2_name): Intern name. Update.
14705 * buildsym.c (buildsym_compunit::get_macro_table): Use
14706 string_cache.
14707
4e7625fd
TT
147082020-03-04 Tom Tromey <tom@tromey.com>
14709
14710 * jit.c (bfd_open_from_target_memory): Make "target" const.
14711 * corefile.c (gnutarget): Now const.
14712 * gdbcore.h (gnutarget): Now const.
14713
46f9f931
HD
147142020-03-04 Hannes Domani <ssbssa@yahoo.de>
14715
14716 * NEWS: Mention support for WOW64 processes.
14717 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14718 (amd64_windows_segment_register_p): Remove static.
14719 (_initialize_amd64_windows_nat): Update.
14720 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14721 * i386-windows-nat.c (context_offset): Update.
14722 (i386_mappings): Rename and remove static.
14723 (i386_windows_segment_register_p): Remove static.
14724 (_initialize_i386_windows_nat): Update.
14725 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14726 (STATUS_WX86_SINGLE_STEP): New macro.
14727 (EnumProcessModulesEx): New macro.
14728 (Wow64SuspendThread): New macro.
14729 (Wow64GetThreadContext): New macro.
14730 (Wow64SetThreadContext): New macro.
14731 (Wow64GetThreadSelectorEntry): New macro.
14732 (windows_set_context_register_offsets): Add static.
14733 (windows_set_segment_register_p): Likewise.
14734 (windows_add_thread): Adapt for WOW64 processes.
14735 (windows_fetch_one_register): Likewise.
14736 (windows_nat_target::fetch_registers): Likewise.
14737 (windows_store_one_register): Likewise.
14738 (display_selector): Likewise.
14739 (display_selectors): Likewise.
14740 (handle_exception): Likewise.
14741 (windows_continue): Likewise.
14742 (windows_nat_target::resume): Likewise.
14743 (windows_add_all_dlls): Likewise.
14744 (do_initial_windows_stuff): Likewise.
14745 (windows_nat_target::attach): Likewise.
14746 (windows_get_exec_module_filename): Likewise.
14747 (windows_nat_target::create_inferior): Likewise.
14748 (windows_xfer_siginfo): Likewise.
14749 (_initialize_loadable): Initialize Wow64SuspendThread,
14750 Wow64GetThreadContext, Wow64SetThreadContext,
14751 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14752 * windows-nat.h (windows_set_context_register_offsets):
14753 Remove declaration.
14754 (windows_set_segment_register_p): Likewise.
14755 (i386_windows_segment_register_p): Add declaration.
14756 (amd64_windows_segment_register_p): Likewise.
14757
440cf44e
LM
147582020-03-04 Luis Machado <luis.machado@linaro.org>
14759
14760 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14761 in "info registers" for AArch64/ARM.
14762
14763 The change caused "info registers" to not print GPR's.
14764
14765 gdb/ChangeLog:
14766
14767 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14768
14769 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14770 when reg->group is empty and reggroup is not.
14771
1009d92f
TT
147722020-03-03 Tom Tromey <tromey@adacore.com>
14773
14774 * dwarf2/frame.c (struct dwarf2_frame_cache)
14775 <checked_tailcall_bottom, entry_cfa_sp_offset,
14776 entry_cfa_sp_offset_p>: Remove members.
14777 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14778 (dwarf2_frame_prev_register): Don't call
14779 dwarf2_tailcall_sniffer_first.
14780 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14781 * frame-unwind.c (add_unwinder): New fuction.
14782 (frame_unwind_init): Use it. Add tailcall unwinder.
14783
5e5d66b6
AB
147842020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14785 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14786
14787 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14788 value should be printed as true.
14789
584cf46d
HD
147902020-03-03 Hannes Domani <ssbssa@yahoo.de>
14791
14792 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14793 (windows_init_abi): Set and use windows_so_ops.
14794
7b973adc
SDJ
147952020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14796
14797 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14798 when verifying if dealing with a convenience variable.
14799
bb7b70ab
LM
148002020-03-03 Luis Machado <luis.machado@linaro.org>
14801
14802 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14803
9822cb57
SM
148042020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14805
14806 * infrun.c (gdbarch_supports_displaced_stepping): New.
14807 (use_displaced_stepping): Break up conditions in smaller pieces.
14808 Use gdbarch_supports_displaced_stepping.
14809 (displaced_step_prepare_throw): Use
14810 gdbarch_supports_displaced_stepping.
14811
63e163f2
AB
148122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14813
14814 * NEWS: Mention new behaviour of the history filename.
14815 * top.c (write_history_p): Add comment.
14816 (show_write_history_p): Add header comment, give a different
14817 message when history writing is on, but the history filename is
14818 empty.
14819 (history_filename): Add comment.
14820 (history_filename_empty): New function.
14821 (show_history_filename): Add header comment, give a different
14822 message when the filename is empty.
14823 (init_history): Compare history_filename against nullptr, and only
14824 read history if the filename is not empty.
14825 (set_history_filename): Add header comment, and only make
14826 non-empty filenames absolute.
14827 (init_main): Make the filename argument to 'set history filename'
14828 optional.
14829
81b86b97
CB
148302020-03-02 Christian Biesinger <cbiesinger@google.com>
14831
14832 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14833 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14834 (fetch_fp_register): Update.
14835 (fetch_fp_regs): Update.
14836 (store_fp_register): Update.
14837 (store_fp_regs): Update.
14838 (arm_netbsd_nat_target::read_description): New function.
14839 (fetch_elfcore_registers): Update.
14840
24ed6739
AB
148412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14842
14843 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14844 general_thread if the stop reply is missing a thread-id.
14845 (remote_target::process_stop_reply): Use the first non-exited
14846 thread if the target didn't pass a thread-id.
14847 * infrun.c (do_target_wait): Move call to
14848 switch_to_inferior_no_thread to ....
14849 (do_target_wait_1): ... here.
14850
a84bb2a0
JT
148512020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14852
14853 * debuginfod-support.c: Include defs.h first.
14854
658dadf0
TV
148552020-02-28 Tom de Vries <tdevries@suse.de>
14856
14857 * symfile.c (set_initial_language): Use default language for lookup.
14858
4ebe4877
SM
148592020-02-28 Simon Marchi <simon.marchi@efficios.com>
14860
14861 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14862 reader variable, pass `this` to read_cutu_die_from_dwo.
14863
e5da1139
AM
148642020-02-27 Aaron Merey <amerey@redhat.com>
14865
14866 * source.c (open_source_file): Check for nullptr when computing
14867 srcpath.
14868
317f7127
TT
148692020-02-27 Tom Tromey <tromey@adacore.com>
14870
14871 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14872 member.
14873 (dwarf2_add_field): Don't update nfields.
14874 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14875
3104d9ee
AB
148762020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14877
14878 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14879 abs.
14880
b83470bf
TT
148812020-02-26 Tom Tromey <tom@tromey.com>
14882
14883 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14884 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14885 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14886 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14887 per_cu_data.
14888
edfe0a0c
TT
148892020-02-26 Tom Tromey <tom@tromey.com>
14890
14891 * dwarf2/index-write.c (psym_index_map): Change type.
14892 (add_address_entry_worker, write_one_signatured_type)
14893 (recursively_count_psymbols, recursively_write_psymbols)
14894 (class debug_names, psyms_seen_size, write_gdbindex)
14895 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14896
0d79cdc4
AM
148972020-02-26 Aaron Merey <amerey@redhat.com>
14898
14899 * Makefile.in: Handle optional debuginfod support.
14900 * NEWS: Update.
14901 * README: Add --with-debuginfod summary.
14902 * config.in: Regenerate.
14903 * configure: Regenerate.
14904 * configure.ac: Handle optional debuginfod support.
14905 * debuginfod-support.c: debuginfod helper functions.
14906 * debuginfod-support.h: Ditto.
14907 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14908 summary.
14909 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14910 when a dwz file cannot be found.
14911 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14912 debuginfo file cannot be found.
14913 * source.c (open_source_file): Query debuginfod servers when a
14914 source file cannot be found.
14915 * top.c (print_gdb_configuration): Include
14916 --{with,without}-debuginfod in the output.
14917
b65ce565
JG
149182020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14919
14920 * thread.c (thr_try_catch_cmd): Print thread name.
14921
d4c9a4f8
SM
149222020-02-26 Simon Marchi <simon.marchi@efficios.com>
14923
14924 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14925 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14926 dwarf2_fetch_die_type_sect_off): Move to...
14927 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14928 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14929 dwarf2_fetch_die_type_sect_off): ... here.
14930 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14931 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14932 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14933
0dce4280
TV
149342020-02-26 Tom de Vries <tdevries@suse.de>
14935
14936 PR gdb/25603
14937 * symfile.c (set_initial_language): Exit-early if
14938 language_mode == language_mode_manual.
14939
450a1bfc
SM
149402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14941
14942 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14943 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14944 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14945
9e80cfa1
AB
149462020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14947
14948 * gdbtypes.c (create_array_type_with_stride): Handle negative
14949 array strides.
14950 * valarith.c (value_subscripted_rvalue): Likewise.
14951
09624f1f
LM
149522020-02-25 Luis Machado <luis.machado@linaro.org>
14953
14954 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14955
8cb5117c
SM
149562020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14957
14958 * loc.h (dwarf2_get_die_type): Move to...
14959 * read.h (dwarf2_get_die_type): ... here.
14960 * read.c (dwarf2_get_die_type): Move doc to header.
14961
c325c44e
JB
149622020-02-25 Joel Brobecker <brobecker@adacore.com>
14963
14964 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14965 'gnulib/Makefile.in' to the list.
14966
4ac93832
TT
149672020-02-24 Tom Tromey <tom@tromey.com>
14968
14969 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14970 Remove.
14971 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14972 XOBNEWVEC.
14973
197400e8
TT
149742020-02-24 Tom Tromey <tom@tromey.com>
14975
14976 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14977 New method.
14978 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14979 (dw2_do_instantiate_symtab, dw2_get_file_names)
14980 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14981
76935768
TT
149822020-02-24 Tom Tromey <tom@tromey.com>
14983
14984 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14985 make_scoped_restore.
14986 (dwarf2_psymtab::read_symtab): Don't clear
14987 reading_partial_symbols.
14988
a88ef40d
TV
149892020-02-24 Tom de Vries <tdevries@suse.de>
14990
14991 PR gdb/25592
14992 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14993
c9af6521
TV
149942020-02-24 Tom de Vries <tdevries@suse.de>
14995
14996 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14997 commands layout next/prev/regs.
14998
5707a07a
TT
149992020-02-22 Tom Tromey <tom@tromey.com>
15000
15001 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15002 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15003
3b0fb49e
TT
150042020-02-22 Tom Tromey <tom@tromey.com>
15005
15006 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15007
283be8bf
TT
150082020-02-22 Tom Tromey <tom@tromey.com>
15009
15010 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15011 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15012 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15013 * tui/tui.c (_initialize_tui): Add usage text.
15014
ca793b96
TT
150152020-02-22 Tom Tromey <tom@tromey.com>
15016
15017 * tui/tui-win.c (tui_set_focus_command)
15018 (tui_set_win_height_command): Use error_no_arg.
15019 (_initialize_tui_win): Update help text.
15020 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15021
432b5c40
TT
150222020-02-22 Tom Tromey <tom@tromey.com>
15023
15024 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15025 * tui/tui-disasm.h (struct tui_disasm_window)
15026 <display_start_addr>: Declare.
15027 * tui/tui-source.h (struct tui_source_window)
15028 <display_start_addr>: Declare.
15029 * tui/tui-winsource.h (struct tui_source_window_base)
15030 <show_source_line, display_start_addr>: New methods.
15031 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15032 Rename and move to protected section.
15033 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15034 (tui_source_window_base::do_erase_source_content): Update.
15035 (tui_source_window_base::show_source_line): Now a method.
15036 (tui_source_window_base::show_source_content)
15037 (tui_source_window_base::tui_source_window_base)
15038 (tui_source_window_base::rerender)
15039 (tui_source_window_base::refill)
15040 (tui_source_window_base::do_scroll_horizontal)
15041 (tui_source_window_base::set_is_exec_point_at)
15042 (tui_source_window_base::update_breakpoint_info)
15043 (tui_source_window_base::update_exec_info): Update.
15044 * tui/tui-source.c (tui_source_window::set_contents)
15045 (tui_source_window::showing_source_p)
15046 (tui_source_window::do_scroll_vertical)
15047 (tui_source_window::location_matches_p)
15048 (tui_source_window::line_is_displayed): Update.
15049 (tui_source_window::display_start_addr): New method.
15050 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15051 (tui_disasm_window::do_scroll_vertical)
15052 (tui_disasm_window::location_matches_p): Update.
15053 (tui_disasm_window::display_start_addr): New method.
15054
01b1af32
TT
150552020-02-22 Tom Tromey <tom@tromey.com>
15056
15057 * NEWS: Add entry for gdb.register_window_type.
15058 * tui/tui-layout.h (window_factory): New typedef.
15059 (tui_register_window): Declare.
15060 * tui/tui-layout.c (saved_tui_windows): New global.
15061 (tui_apply_current_layout): Use it.
15062 (tui_register_window): New function.
15063 * python/python.c (do_start_initialization): Call
15064 gdbpy_initialize_tui.
15065 (python_GdbMethods): Add "register_window_type" function.
15066 * python/python-internal.h (gdbpy_register_tui_window)
15067 (gdbpy_initialize_tui): Declare.
15068 * python/py-tui.c: New file.
15069 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15070
fc96d20b
TT
150712020-02-22 Tom Tromey <tom@tromey.com>
15072
15073 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15074
935c78c0
TT
150752020-02-22 Tom Tromey <tom@tromey.com>
15076
15077 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15078 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15079 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15080 (tui_set_win_focus_to): Move from tui-win.c.
15081
0240c8f1
TT
150822020-02-22 Tom Tromey <tom@tromey.com>
15083
15084 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15085 functions.
15086 (known_window_types): New global.
15087 (tui_get_window_by_name): Reimplement.
15088 (initialize_known_windows): New function.
15089 (validate_window_name): Rewrite.
15090 (_initialize_tui_layout): Call initialize_known_windows.
15091
fdb01f0c
TT
150922020-02-22 Tom Tromey <tom@tromey.com>
15093
15094 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15095 Remove constants.
15096 * tui/tui-winsource.h (struct tui_source_window_base)
15097 <tui_source_window_base>: Remove parameter.
15098 * tui/tui-winsource.c
15099 (tui_source_window_base::tui_source_window_base): Remove
15100 parameter.
15101 (tui_source_window_base::refill): Update.
15102 * tui/tui-stack.h (struct tui_locator_window)
15103 <tui_locator_window>: Update.
15104 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15105 Default the constructor.
15106 * tui/tui-regs.h (struct tui_data_item_window)
15107 <tui_data_item_window>: Default the constructor.
15108 (struct tui_data_window) <tui_data_window>: Likewise.
15109 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15110 Default the constructor.
15111 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15112 Default the constructor.
15113 <type>: Remove.
15114 (struct tui_win_info) <tui_win_info>: Default the constructor.
15115 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15116 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15117 Default the constructor.
15118
865a5aec
TT
151192020-02-22 Tom Tromey <tom@tromey.com>
15120
15121 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15122 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15123 * tui/tui-win.c (tui_resize_all): Don't call
15124 tui_delete_invisible_windows.
15125 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15126 done.
15127 (tui_set_layout): Update.
15128 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15129 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15130 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15131
e098d18c
TT
151322020-02-22 Tom Tromey <tom@tromey.com>
15133
15134 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15135 correctly.
15136
eb9c8874
TT
151372020-02-22 Tom Tromey <tom@tromey.com>
15138
15139 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15140
7eed1a8e
TT
151412020-02-22 Tom Tromey <tom@tromey.com>
15142
15143 * tui/tui-winsource.h (struct tui_source_window_iterator)
15144 <inner_iterator>: New etytypedef.
15145 <tui_source_window_iterator>: Take "end" parameter.
15146 <tui_source_window_iterator>: Take iterator.
15147 <operator*, advance>: Update.
15148 <m_iter>: Change type.
15149 <m_end>: New field.
15150 (struct tui_source_windows) <begin, end>: Update.
15151 * tui/tui-layout.c (tui_windows): New global.
15152 (tui_apply_current_layout): Clear tui_windows.
15153 (tui_layout_window::apply): Update tui_windows.
15154 * tui/tui-data.h (tui_windows): Declare.
15155 (all_tui_windows): Now inline function.
15156 (class tui_window_iterator, struct all_tui_windows): Remove.
15157
7c043ba6
TT
151582020-02-22 Tom Tromey <tom@tromey.com>
15159
15160 PR tui/17850:
15161 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15162 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15163 "height" argument.
15164 (class tui_layout_window) <get_sizes>: Likewise.
15165 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15166 argument.
15167 <get_sizes>: Add "height" argument.
15168 <m_vertical>: New field.
15169 * tui/tui-layout.c (tui_layout_split::clone): Update.
15170 (tui_layout_split::get_sizes): Add "height" argument.
15171 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15172 (tui_new_layout_command): Parse "-horizontal".
15173 (_initialize_tui_layout): Update help string.
15174 (tui_layout_split::specification): Add "-horizontal" when needed.
15175 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15176 argument.
15177 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15178 New methods.
15179
6bc56648
TT
151802020-02-22 Tom Tromey <tom@tromey.com>
15181
15182 * tui/tui-layout.h (enum tui_adjust_result): New.
15183 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15184 (class tui_layout_window) <adjust_size>: Return
15185 tui_adjust_result. Rewrite.
15186 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15187 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15188
c22fef7e
TT
151892020-02-22 Tom Tromey <tom@tromey.com>
15190
15191 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15192 parameter and return types.
15193 (class tui_layout_base) <specification>: Add "depth".
15194 (class tui_layout_window) <specification>: Add "depth".
15195 (class tui_layout_split) <specification>: Add "depth".
15196 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15197 and return types.
15198 (tui_new_layout_command): Parse sub-layouts.
15199 (_initialize_tui_layout): Update help string.
15200 (tui_layout_window::specification): Add "depth".
15201 (add_layout_command): Update.
15202
ee325b61
TT
152032020-02-22 Tom Tromey <tom@tromey.com>
15204
15205 * NEWS: Add "tui new-layout" item.
15206 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15207 Add new-layout command to help text.
15208 (validate_window_name): New function.
15209 (tui_new_layout_command): New function.
15210 (_initialize_tui_layout): Register "new-layout".
15211 (tui_layout_window::specification): New method.
15212 (tui_layout_window::specification): New method.
15213 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15214 method.
15215 (class tui_layout_window) <specification>: New method.
15216 (class tui_layout_split) <specification>: New method.
15217
416eb92d
TT
152182020-02-22 Tom Tromey <tom@tromey.com>
15219
15220 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15221 * tui/tui-win.c (window_name_completer): Update comment.
15222 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15223 Declare method.
15224 (class tui_layout_window) <replace_window>: Likewise.
15225 (class tui_layout_split) <replace_window>: Likewise.
15226 (tui_set_layout): Don't declare.
15227 (tui_set_initial_layout): Declare function.
15228 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15229 (asm_regs_layout): New globals.
15230 (tui_current_layout, show_layout): Remove.
15231 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15232 (find_layout, tui_apply_layout): New function.
15233 (layout_completer): Remove.
15234 (tui_next_layout): Reimplement.
15235 (tui_next_layout_command): New function.
15236 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15237 (tui_regs_layout): Reimplement.
15238 (tui_regs_layout_command): New function.
15239 (extract_display_start_addr): Rewrite.
15240 (next_layout, prev_layout): Remove.
15241 (tui_layout_window::replace_window): New method.
15242 (tui_layout_split::replace_window): New method.
15243 (destroy_layout): New function.
15244 (layout_list): New global.
15245 (add_layout_command): New function.
15246 (initialize_layouts): Update.
15247 (tui_layout_command): New function.
15248 (_initialize_tui_layout): Install "layout" commands.
15249 * tui/tui-data.h (enum tui_layout_type): Remove.
15250 (tui_current_layout): Don't declare.
15251
0dbc2fc7
TT
152522020-02-22 Tom Tromey <tom@tromey.com>
15253
15254 * tui/tui-regs.c (tui_reg_layout): Remove.
15255 (tui_reg_command): Use tui_regs_layout.
15256 * tui/tui-layout.h (tui_reg_command): Declare.
15257 * tui/tui-layout.c (tui_reg_command): New function.
15258
5afe342e
TT
152592020-02-22 Tom Tromey <tom@tromey.com>
15260
15261 * tui/tui.c (tui_rl_delete_other_windows): Call
15262 tui_remove_some_windows.
15263 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15264 Declare method.
15265 (class tui_layout_window) <remove_windows>: New method.
15266 (class tui_layout_split) <remove_windows>: Declare.
15267 (tui_remove_some_windows): Declare.
15268 * tui/tui-layout.c (tui_remove_some_windows): New function.
15269 (tui_layout_split::remove_windows): New method.
15270
427326a8
TT
152712020-02-22 Tom Tromey <tom@tromey.com>
15272
15273 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15274 * tui/tui-layout.h (tui_next_layout): Declare.
15275 * tui/tui-layout.c (tui_next_layout): New function.
15276
3fe12b6d
TT
152772020-02-22 Tom Tromey <tom@tromey.com>
15278
15279 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15280 correct coordinates.
15281
59b8b5d2
TT
152822020-02-22 Tom Tromey <tom@tromey.com>
15283
15284 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15285 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15286 DATA_WIN case.
15287
2a3d458b
TT
152882020-02-22 Tom Tromey <tom@tromey.com>
15289
15290 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15291 TUI_DISASM_WIN, not tui_win_list.
15292
3f0cbb04
TT
152932020-02-22 Tom Tromey <tom@tromey.com>
15294
15295 * valprint.c (generic_val_print_enum_1)
15296 (val_print_type_code_flags): Style member names.
15297 * rust-lang.c (val_print_struct, rust_print_enum)
15298 (rust_print_struct_def, rust_internal_print_type): Style member
15299 names.
15300 * p-valprint.c (pascal_object_print_value_fields): Style member
15301 names. Only call fprintf_symbol_filtered for static members.
15302 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15303 * f-valprint.c (f_val_print): Style member names.
15304 * f-typeprint.c (f_type_print_base): Style member names.
15305 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15306 call fprintf_symbol_filtered for static members.
15307 (cp_print_class_member): Style member names.
15308 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15309 member names.
15310 * ada-valprint.c (ada_print_scalar): Style enum names.
15311 (ada_val_print_enum): Likewise.
15312 * ada-typeprint.c (print_enum_type): Style enum names.
15313
d4d947ae
TT
153142020-02-21 Tom Tromey <tom@tromey.com>
15315
15316 * psympriv.h (struct partial_symtab): Update comment.
15317
e94e944b
TT
153182020-02-21 Tom Tromey <tromey@adacore.com>
15319
15320 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15321 type is CORE_ADDR.
15322
1eb73179
TV
153232020-02-21 Tom de Vries <tdevries@suse.de>
15324
15325 PR gdb/25534
15326 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15327 if dependencies[i]->user != NULL.
15328
4f180d53
AT
153292020-02-21 Ali Tamur <tamur@google.com>
15330
15331 * dwarf2/read.c (dwarf2_name): Add null check.
15332
22b6cd70
TT
153332020-02-20 Tom Tromey <tom@tromey.com>
15334
15335 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15336 ">=", in binary search.
15337 (dwarf2_find_containing_comp_unit): New overload.
15338 (run_test): New self-test.
15339 (_initialize_dwarf2_read): Register new test.
15340
bd0cf5a6
NC
153412020-02-20 Nelson Chu <nelson.chu@sifive.com>
15342
15343 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15344 * riscv-tdep.h: Likewise.
15345 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15346 rv32-only CSR.
15347 * features/riscv/64bit-csr.xml: Regenerated.
15348
3f702acd
SDJ
153492020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15350 Tom Tromey <tom@tromey.com>
15351
15352 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15353 of 'fputc_unfiltered'.
15354 (putchar_unfiltered): Call 'fputc_unfiltered'.
15355 (fputc_unfiltered): Call 'fputs_unfiltered'.
15356
d13c7322
AB
153572020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15358
15359 * config.in: Regenerate.
15360 * configure: Regenerate.
15361 * configure.ac: Add --with-python-libdir option.
15362 * main.c: Use WITH_PYTHON_LIBDIR.
15363
869d8950
TT
153642020-02-19 Tom Tromey <tom@tromey.com>
15365
15366 * symtab.c (general_symbol_info::compute_and_set_names): Use
15367 obstack_strndup. Simplify call to symbol_set_demangled_name.
15368
298e9637
SM
153692020-02-19 Simon Marchi <simon.marchi@efficios.com>
15370
15371 * dwarf2/read.c (allocate_signatured_type_table,
15372 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15373 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15374 Remove objfile parameter, update all callers.
15375
08410482
DE
153762020-02-19 Doug Evans <dje@google.com>
15377
15378 PR rust/25535
15379 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15380 rust_enum_variant calculation.
15381
dfdeeca1
TT
153822020-02-19 Tom Tromey <tromey@adacore.com>
15383
15384 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15385
2ef5453b
TT
153862020-02-19 Tom Tromey <tromey@adacore.com>
15387
15388 * ada-lang.c (cache_symbol): Use obstack_strdup.
15389
9f1528a1
AB
153902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15391
15392 * configure: Regenerate.
15393
d3c22fa8
TT
153942020-02-19 Tom Tromey <tromey@adacore.com>
15395
15396 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15397 NULL check.
15398
bf84f706
MR
153992020-02-19 Maciej W. Rozycki <macro@wdc.com>
15400
15401 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15402
d1c9b20f
AB
154032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15404
15405 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15406 if GDBSERVER is not defined.
15407 (riscv_tdesc_cache): Likewise, also store const target_desc.
15408 (STATIC_IN_GDB): Define.
15409 (riscv_create_target_description): Update declaration with
15410 STATIC_IN_GDB.
15411 (riscv_lookup_target_description): New function, only define if
15412 GDBSERVER is not defined.
15413 * arch/riscv.h (riscv_create_target_description): Declare only
15414 when GDBSERVER is defined.
15415 (riscv_lookup_target_description): New declaration when GDBSERVER
15416 is not defined.
15417 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15418 (riscv_linux_read_features): ...this, and return
15419 riscv_gdbarch_features instead of target_desc.
15420 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15421 (riscv_linux_read_description): Rename to...
15422 (riscv_linux_read_features): ...this.
15423 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15424 Update to use riscv_gdbarch_features and
15425 riscv_lookup_target_description.
15426 * riscv-tdep.c (riscv_find_default_target_description): Use
15427 riscv_lookup_target_description instead of
15428 riscv_create_target_description.
15429
373d7ac0
SM
154302020-02-18 Simon Marchi <simon.marchi@efficios.com>
15431
15432 * valprint.c (generic_val_print_enum_1): When printing a flag
15433 enum with value 0 and there is no enumerator with value 0, print
15434 just "0" instead of "(unknown: 0x0)".
15435
b29a2df0
SM
154362020-02-18 Simon Marchi <simon.marchi@efficios.com>
15437
15438 * valprint.c (generic_val_print_enum_1): Print unknown part of
15439 flag enum in hex.
15440
6740f0cc
SM
154412020-02-18 Simon Marchi <simon.marchi@efficios.com>
15442
15443 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15444 flag enums to contain duplicate enumerators.
15445 * valprint.c (generic_val_print_enum_1): Update comment.
15446
edd45eb0
SM
154472020-02-18 Simon Marchi <simon.marchi@efficios.com>
15448
15449 * dwarf2/read.c: Include "count-one-bits.h".
15450 (update_enumeration_type_from_children): If an enumerator has
15451 multiple bits set, don't treat the enumeration as a "flag enum".
15452 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15453 of flag enums have 0 or 1 bit set.
15454
6d0cf446
BE
154552020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15456
15457 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15458 conversion.
15459 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15460 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15461 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15462 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15463 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15464
7001c1b7
SM
154652020-02-18 Simon Marchi <simon.marchi@efficios.com>
15466
15467 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15468
fdb61c6c
SM
154692020-02-14 Simon Marchi <simon.marchi@efficios.com>
15470
15471 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15472 displaced_step_closure_up.
15473 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15474 (struct displaced_step_closure_up):
15475 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15476 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15477 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15478 Likewise.
15479 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15480 * gdbarch.c, gdbarch.h: Re-generate.
15481 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15482 displaced_step_closure_up.
15483 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15484 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15485 * infrun.h (displaced_step_closure_up): New type alias.
15486 (struct displaced_step_inferior_state) <step_closure>: Change
15487 type to displaced_step_closure_up.
15488 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15489 displaced_step_closure_up.
15490 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15491
a4a38eb4
TT
154922020-02-14 Tom Tromey <tom@tromey.com>
15493
15494 * minidebug.c (gnu_debug_key): New global.
15495 (find_separate_debug_file_in_section): Use it.
15496
e8217e61
SM
154972020-02-14 Simon Marchi <simon.marchi@efficios.com>
15498
15499 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15500 std::unique_ptr.
15501 * gdbarch.c: Re-generate.
15502 * gdbarch.h: Re-generate.
15503 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15504 change.
15505 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15506 type to std::unique_ptr.
15507 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15508 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15509 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15510 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15511 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15512 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15513 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15514 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15515 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15516
d8d83535
SM
155172020-02-14 Simon Marchi <simon.marchi@efficios.com>
15518
15519 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15520 std::unique_ptr.
15521 (displaced_step_clear): Rename to...
15522 (displaced_step_reset): ... this. Just call displaced->reset ().
15523 (displaced_step_clear_cleanup): Rename to...
15524 (displaced_step_reset_cleanup): ... this.
15525 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15526 (displaced_step_fixup): Likewise.
15527 (resume_1): Likewise.
15528 (handle_inferior_event): Restore child's memory before calling
15529 displaced_step_fixup on the parent.
15530 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15531 to std::unique_ptr.
15532 <step_closure>: Change type to std::unique_ptr.
15533
5f661e03
SM
155342020-02-14 Simon Marchi <simon.marchi@efficios.com>
15535
15536 * arm-tdep.c: Include count-one-bits.h.
15537 (cleanup_block_store_pc): Use count_one_bits.
15538 (cleanup_block_load_pc): Use count_one_bits.
15539 (arm_copy_block_xfer): Use count_one_bits.
15540 (thumb2_copy_block_xfer): Use count_one_bits.
15541 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15542 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15543 (thumb_get_next_pcs_raw): Use count_one_bits.
15544 (arm_get_next_pcs_raw): Use count_one_bits_l.
15545 * arch/arm.c (bitcount): Remove.
15546 * arch/arm.h (bitcount): Remove.
15547
8084e579
TT
155482020-02-14 Tom Tromey <tromey@adacore.com>
15549
15550 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15551 Update.
15552 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15553 * dwarf2/loc.c (call_site_find_chain_1): Return
15554 unique_xmalloc_ptr.
15555 (call_site_find_chain): Likewise.
15556
258bf0ee
RB
155572020-02-14 Richard Biener <rguenther@suse.de>
15558
15559 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15560 on expression with division operators.
15561
f98a8458
AKS
155622020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15563
15564 * MAINTAINERS (Write After Approval): Adding myself.
15565
d1437c0e
TT
155662020-02-12 Tom Tromey <tom@tromey.com>
15567
15568 * event-loop.c (event_data, gdb_event, event_handler_func):
15569 Remove.
15570
3d4560f7
TT
155712020-02-12 Tom Tromey <tom@tromey.com>
15572
15573 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15574 (dwarf2_frame_objfile_data): Add comment.
15575 (find_comp_unit, set_comp_unit): New functions.
15576 (dwarf2_frame_find_fde): Use find_comp_unit.
15577 (dwarf2_build_frame_info): Use set_comp_unit.
15578
21982304
TT
155792020-02-12 Tom Tromey <tom@tromey.com>
15580
15581 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15582 (comp_unit): Don't initialize objfile.
15583 (execute_cfa_program): Add text_offset parameter.
15584 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15585 (dwarf2_frame_cache): Update.
15586 (dwarf2_build_frame_info): Don't set "objfile" member.
15587
4debb237
TT
155882020-02-12 Tom Tromey <tom@tromey.com>
15589
15590 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15591 (decode_frame_entry): Likewise.
15592 (dwarf2_build_frame_info): Update.
15593
0d404d44
TT
155942020-02-12 Tom Tromey <tom@tromey.com>
15595
15596 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15597 (decode_frame_entry_1): Use the comp_unit obstack.
15598
a7a3ae5c
TT
155992020-02-12 Tom Tromey <tom@tromey.com>
15600
15601 * dwarf2/frame.c (struct comp_unit): Add initializers and
15602 constructor.
15603 (dwarf2_frame_objfile_data): Store a comp_unit.
15604 (dwarf2_frame_find_fde): Update.
15605 (dwarf2_build_frame_info): Use "new".
15606
a9d65418
TT
156072020-02-12 Tom Tromey <tom@tromey.com>
15608
15609 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15610 (dwarf2_fde_table): Typedef for std::vector.
15611 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15612 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15613 (decode_frame_entry): Update.
15614 (dwarf2_build_frame_info): Use "new".
15615
7559c217
CB
156162020-02-12 Christian Biesinger <cbiesinger@google.com>
15617
15618 * arm-tdep.c (arm_gdbarch_init): Update.
15619 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15620 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15621 have_neon, is_m>: Change to bool.
15622
aeefc73c
CB
156232020-02-12 Christian Biesinger <cbiesinger@google.com>
15624
15625 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15626
d27b8e5f
TT
156272020-02-12 Tom Tromey <tom@tromey.com>
15628
15629 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15630
cd5900f3
HD
156312020-02-12 Hannes Domani <ssbssa@yahoo.de>
15632
15633 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15634 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15635
f056b22b
TT
156362020-02-11 Tom Tromey <tom@tromey.com>
15637
15638 * psymtab.h: Update comment.
15639
f92ff6b5
TT
156402020-02-11 Tom Tromey <tom@tromey.com>
15641
15642 * gdb_obstack.h (struct auto_obstack): Use
15643 DISABLE_COPY_AND_ASSIGN.
15644
3fd6912b
TT
156452020-02-11 Tom Tromey <tom@tromey.com>
15646
15647 * dwarf2/frame.h (struct objfile): Don't forward declare.
15648
69ed9b74
CB
156492020-02-11 Christian Biesinger <cbiesinger@google.com>
15650
15651 * cris-tdep.c (cris_supply_gregset): Change signature to match
15652 what struct regset expects.
15653 (cris_regset): New struct.
15654 (fetch_core_registers): Remove.
15655 (cris_iterate_over_regset_sections): New function.
15656 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15657 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15658
bda874f6
CB
156592020-02-11 Christian Biesinger <cbiesinger@google.com>
15660
15661 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15662 registers.
15663
754e1564
CB
156642020-02-11 Christian Biesinger <cbiesinger@google.com>
15665
15666 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15667
8ddd8e0e
SM
156682020-02-11 Simon Marchi <simon.marchi@efficios.com>
15669
15670 * configure: Re-generate.
15671
898e7f60
SM
156722020-02-11 Simon Marchi <simon.marchi@efficios.com>
15673
15674 * configure: Re-generate.
15675
58df732b
SM
156762020-02-11 Simon Marchi <simon.marchi@efficios.com>
15677
15678 * acinclude: Update warning.m4 path.
15679 * warning.m4: Move to gdbsupport.
15680
da5bd37e
TT
156812020-02-11 Tom Tromey <tromey@adacore.com>
15682
15683 * remote.c (remote_console_output): Update.
15684 * printcmd.c (printf_command): Update.
15685 * event-loop.c (gdb_wait_for_event): Update.
15686 * linux-nat.c (sigchld_handler): Update.
15687 * remote-sim.c (gdb_os_write_stdout): Update.
15688 (gdb_os_flush_stdout): Update.
15689 (gdb_os_flush_stderr): Update.
15690 (gdb_os_write_stderr): Update.
15691 * exceptions.c (print_exception): Update.
15692 * remote-fileio.c (remote_fileio_func_read): Update.
15693 (remote_fileio_func_write): Update.
15694 * tui/tui.c (tui_enable): Update.
15695 * tui/tui-interp.c (tui_interp::init): Update.
15696 * utils.c (init_page_info): Update.
15697 (putchar_unfiltered, fputc_unfiltered): Update.
15698 (gdb_flush): Update.
15699 (emit_style_escape): Update.
15700 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15701 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15702 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15703 (stderr_file::write): Update.
15704 (stderr_file::puts): Update.
15705 * ui-file.h (ui_file_isatty, ui_file_write)
15706 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15707 (ui_file_puts): Don't declare.
15708
85f0dd3c
TV
157092020-02-10 Tom de Vries <tdevries@suse.de>
15710
15711 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15712 sentinel to char *.
15713
2e927613
TV
157142020-02-09 Tom de Vries <tdevries@suse.de>
15715
15716 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15717 filename if it matches "<artificial>".
15718
6bafc845
HD
157192020-02-09 Hannes Domani <ssbssa@yahoo.de>
15720
15721 * windows-tdep.c (struct enum_value_name): New struct.
15722 (create_enum): New function.
15723 (windows_get_siginfo_type): Create and use enum types.
15724
7928d571
HD
157252020-02-09 Hannes Domani <ssbssa@yahoo.de>
15726
15727 * NEWS: Mention $_siginfo support for Windows.
15728 * windows-nat.c (handle_exception): Set siginfo_er.
15729 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15730 (windows_xfer_siginfo): New function.
15731 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15732 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15733 (init_windows_gdbarch_data): New function.
15734 (get_windows_gdbarch_data): New function.
15735 (windows_get_siginfo_type): New function.
15736 (windows_init_abi): Register windows_get_siginfo_type.
15737 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15738
6751ebae
TT
157392020-02-08 Tom Tromey <tom@tromey.com>
15740
15741 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15742 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15743 <keep>: Declare method.
15744 <m_keep>: Remove member.
15745 <~cutu_reader>: Remove.
15746 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15747 (cutu_reader::cutu_reader): Update.
15748 (cutu_reader::keep): Rename from ~cutu_reader.
15749 (process_psymtab_comp_unit, build_type_psymtabs_1)
15750 (process_skeletonless_type_unit, load_partial_comp_unit)
15751 (load_full_comp_unit, dwarf2_read_addr_index)
15752 (read_signatured_type): Update.
15753
135f5437
TT
157542020-02-08 Tom Tromey <tom@tromey.com>
15755
15756 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15757 "want_partial_unit" parameter.
15758 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15759 Inline check for DW_TAG_partial_unit.
15760 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15761
9f66ff1c
TT
157622020-02-08 Tom Tromey <tom@tromey.com>
15763
15764 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15765 read.c.
15766 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15767 read.c.
15768
c8a7a66f
TT
157692020-02-08 Tom Tromey <tom@tromey.com>
15770
15771 * dwarf2/read.c (read_address): Move to comp-unit.c.
15772 (dwarf2_rnglists_process, dwarf2_ranges_process)
15773 (read_attribute_value, dwarf_decode_lines_1)
15774 (var_decode_location, decode_locdesc): Update.
15775 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15776 read.c. Remove "cu" parameter.
15777 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15778 method.
15779
8266302d
TT
157802020-02-08 Tom Tromey <tom@tromey.com>
15781
15782 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15783 (read_indirect_line_string): Update.
15784 * dwarf2/comp-unit.c (read_offset): Remove.
15785 (read_comp_unit_head): Update.
15786 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15787 method.
15788 (read_offset): Don't declare.
15789
4057dfde
TT
157902020-02-08 Tom Tromey <tom@tromey.com>
15791
15792 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15793 * dwarf2/read.c (struct comp_unit_head): Move to
15794 dwarf2/comp-unit.h.
15795 (enum class rcuh_kind): Move to comp-unit.h.
15796 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15797 (read_comp_unit_head, error_check_comp_unit_head)
15798 (read_and_check_comp_unit_head): Move to comp-unit.c.
15799 (read_offset, dwarf_unit_type_name): Likewise.
15800 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15801 (cutu_reader::cutu_reader, read_call_site_scope)
15802 (find_partial_die, follow_die_offset): Update.
15803 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15804
24aa364d
TT
158052020-02-08 Tom Tromey <tom@tromey.com>
15806
15807 * dwarf2/read.c (read_offset_1): Move to leb.c.
15808 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15809 (dwarf_decode_macro_bytes): Update.
15810 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15811 * dwarf2/leb.h (read_offset): Declare.
15812
2c7d5afc
TT
158132020-02-08 Tom Tromey <tom@tromey.com>
15814
15815 * dwarf2/read.c (dwarf2_section_size): Remove.
15816 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15817 Update.
15818 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15819
4075cb26
TT
158202020-02-08 Tom Tromey <tom@tromey.com>
15821
15822 * dwarf2/read.c (read_initial_length): Move to leb.c.
15823 * dwarf2/leb.h (read_initial_length): Declare.
15824 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15825 handle_nonstd parameter.
15826 * dwarf2/frame.c (read_initial_length): Remove.
15827 (decode_frame_entry_1): Update.
15828
09ba997f
TT
158292020-02-08 Tom Tromey <tom@tromey.com>
15830
15831 * dwarf2/loc.c (dwarf2_find_location_expression)
15832 (dwarf_evaluate_loc_desc::get_tls_address)
15833 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15834 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15835 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15836 (dwarf2_compile_property_to_c)
15837 (dwarf2_loc_desc_get_symbol_read_needs)
15838 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15839 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15840 (loclist_describe_location, loclist_tracepoint_var_ref)
15841 (loclist_generate_c_location): Update.
15842 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15843 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15844 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15845 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15846 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15847 (dwarf2_per_cu_data::addr_size)
15848 (dwarf2_per_cu_data::ref_addr_size)
15849 (dwarf2_per_cu_data::text_offset)
15850 (dwarf2_per_cu_data::addr_type): Now methods.
15851 (per_cu_header_read_in): Make per_cu "const".
15852 (dwarf2_version): Remove.
15853 (dwarf2_per_cu_data::int_type): Now a method.
15854 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15855 (set_die_type, read_array_type, read_subrange_index_type)
15856 (read_tag_string_type, read_subrange_type): Update.
15857 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15858 offset_size, ref_addr_size, text_offset, addr_type, version,
15859 objfile, int_type, addr_sized_int_type>: Declare methods.
15860
96c738c0
TT
158612020-02-08 Tom Tromey <tom@tromey.com>
15862
15863 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15864 Move earlier.
15865
8fdd972c
TT
158662020-02-08 Tom Tromey <tom@tromey.com>
15867
15868 * dwarf2/read.h (dwarf_line_debug): Declare.
15869 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15870 * dwarf2/read.c: Move line_header code to new files.
15871 (dwarf_line_debug): No longer static.
15872 * dwarf2/line-header.c: New file.
15873 * dwarf2/line-header.h: New file.
15874
03075812
TT
158752020-02-08 Tom Tromey <tom@tromey.com>
15876
15877 * dwarf2/read.c (struct line_header) <file_full_name,
15878 file_file_name>: Return unique_xmalloc_ptr.
15879 (line_header::file_file_name): Update.
15880 (line_header::file_full_name): Update.
15881 (dw2_get_file_names_reader): Update.
15882 (macro_start_file): Update.
15883
bb822404
TT
158842020-02-08 Tom Tromey <tom@tromey.com>
15885
15886 * dwarf2/read.c (struct line_header) <file_full_name,
15887 file_file_name>: Declare methods.
15888 (dw2_get_file_names_reader): Update.
15889 (file_file_name): Now a method.
15890 (file_full_name): Likewise.
15891 (macro_start_file): Update.
15892
009b64fc
TT
158932020-02-08 Tom Tromey <tom@tromey.com>
15894
15895 * dwarf2/read.c (dwarf_always_disassemble)
15896 (show_dwarf_always_disassemble): Move to loc.c.
15897 (_initialize_dwarf2_read): Move "always-disassemble" registration
15898 to loc.c.
15899 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15900 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15901 static.
15902 (show_dwarf_always_disassemble): Move from read.c.
15903 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15904
5895093f
TT
159052020-02-08 Tom Tromey <tom@tromey.com>
15906
15907 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15908 (create_quick_file_names_table): Return htab_up.
15909 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15910 Update.
15911 * dwarf2/read.h (struct dwarf2_per_objfile)
15912 <quick_file_names_table>: Now htab_up.
15913
b3b32279
TT
159142020-02-08 Tom Tromey <tom@tromey.com>
15915
15916 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15917
1d33d811
TT
159182020-02-08 Tom Tromey <tom@tromey.com>
15919
15920 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15921 Rewrite.
15922 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15923 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15924 (abbrev_table::abbrev_table): No longer inline.
15925 (ABBREV_HASH_SIZE): Remove.
15926 (abbrev_table::m_abbrevs): Now an htab_up.
15927
86de1d91
TT
159282020-02-08 Tom Tromey <tom@tromey.com>
15929
15930 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15931 (cutu_reader): Update.
15932 (build_type_psymtabs_1): Update.
15933 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15934 (abbrev_table::alloc_abbrev): Update.
15935 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15936 (abbrev_table::read): New static method, renamed from
15937 abbrev_table_read_table.
15938 (abbrev_table::alloc_abbrev)
15939 (abbrev_table::add_abbrev): Now private.
15940 (abbrev_table::abbrev_table): Now private.
15941 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15942
0335378b
TT
159432020-02-08 Tom Tromey <tom@tromey.com>
15944
15945 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15946 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15947 htab_up.
15948
48b490f2
TT
159492020-02-08 Tom Tromey <tom@tromey.com>
15950
15951 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15952 htab_up.
15953 (lookup_dwo_unit_in_dwp): Update.
15954 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15955 on obstack.
15956
bc68fb19
TT
159572020-02-08 Tom Tromey <tom@tromey.com>
15958
15959 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15960 obstack.
15961
d15acc42
TT
159622020-02-08 Tom Tromey <tom@tromey.com>
15963
15964 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15965 line_header_hash.
15966 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15967 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15968 Change type to htab_up.
15969
eaa5fa8b
TT
159702020-02-08 Tom Tromey <tom@tromey.com>
15971
15972 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15973 htab_up. Don't allocate on obstack.
15974 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15975 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15976 Change type to htab_up.
15977
b0b6a987
TT
159782020-02-08 Tom Tromey <tom@tromey.com>
15979
15980 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15981 Change type to htab_up.
15982 * dwarf2/read.c (create_signatured_type_table_from_index)
15983 (create_signatured_type_table_from_debug_names)
15984 (create_all_type_units, add_type_unit)
15985 (lookup_dwo_signatured_type, lookup_signatured_type)
15986 (process_skeletonless_type_unit): Update.
15987 (create_debug_type_hash_table, create_debug_types_hash_table):
15988 Change type of types_htab.
15989 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15990 htab_up. Don't allocate on obstack.
15991 (create_cus_hash_table): Change type of cus_htab parameter.
15992 (struct dwo_file) <cus, tus>: Now htab_up.
15993 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15994 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15995 (queue_and_load_all_dwo_tus): Update.
15996 * dwarf2/index-write.c (write_gdbindex): Update.
15997 (write_debug_names): Update.
15998
39856def
TT
159992020-02-08 Tom Tromey <tom@tromey.com>
16000
16001 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16002 dwarf2/read.c. Remove "next" member. Add constructor ntad
16003 destructor.
16004 (struct dwarf2_per_objfile) <queue>: New member.
16005 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16006 dwarf2/read.h.
16007 (dwarf2_queue, dwarf2_queue_tail): Remove.
16008 (class dwarf2_queue_guard): Add parameter to constructor. Use
16009 DISABLE_COPY_AND_ASSIGN.
16010 <m_per_objfile>: New member.
16011 <~dwarf2_queue_guard>: Rewrite.
16012 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16013 Update.
16014 (~dwarf2_queue_item): New.
16015
3e225074
TT
160162020-02-08 Tom Tromey <tom@tromey.com>
16017
16018 * dwarf2/read.c (struct die_info) <has_children>: New member.
16019 (dw2_get_file_names_reader): Remove has_children.
16020 (dw2_get_file_names): Update.
16021 (read_cutu_die_from_dwo): Remove has_children.
16022 (cutu_reader::init_tu_and_read_dwo_dies)
16023 (cutu_reader::cutu_reader): Update.
16024 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16025 Remove has_children.
16026 (build_type_psymtabs_1, process_skeletonless_type_unit)
16027 (load_partial_comp_unit, load_full_comp_unit): Update.
16028 (create_dwo_cu_reader): Remove has_children.
16029 (create_cus_hash_table, read_die_and_children): Update.
16030 (read_full_die_1,read_full_die): Remove has_children.
16031 (read_signatured_type): Update.
16032 (class cutu_reader) <has_children>: Remove.
16033
82ca8957
TT
160342020-02-08 Tom Tromey <tom@tromey.com>
16035
16036 * dwarf2/expr.c: Rename from dwarf2expr.c.
16037 * dwarf2/expr.h: Rename from dwarf2expr.h.
16038 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16039 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16040 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16041 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16042 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16043 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16044 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16045 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16046 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16047 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16048 * dwarf2/loc.c: Rename from dwarf2loc.c.
16049 * dwarf2/loc.h: Rename from dwarf2loc.h.
16050 * dwarf2/read.c: Rename from dwarf2read.c.
16051 * dwarf2/read.h: Rename from dwarf2read.h.
16052 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16053 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16054 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16055 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16056 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16057 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16058 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16059 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16060 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16061 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16062 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16063 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16064 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16065 Update.
16066 * Makefile.in (COMMON_SFILES): Update.
16067 (HFILES_NO_SRCDIR): Update.
16068
9e35d499
TT
160692020-02-08 Tom Tromey <tom@tromey.com>
16070
16071 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16072 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16073
1eba2311
TT
160742020-02-08 Tom Tromey <tom@tromey.com>
16075
16076 * dwarf2read.h (struct die_info): Don't declare.
16077
e41c2da2
TT
160782020-02-08 Tom Tromey <tom@tromey.com>
16079
16080 * dwarf2read.h (die_info_ptr): Remove typedef.
16081
4fc6c0d5
TT
160822020-02-08 Tom Tromey <tom@tromey.com>
16083
16084 * dwarf2read.c (read_call_site_scope)
16085 (handle_data_member_location, dwarf2_add_member_fn)
16086 (mark_common_block_symbol_computed, read_common_block)
16087 (attr_to_dynamic_prop, partial_die_info::read)
16088 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16089 (dwarf2_symbol_mark_computed, set_die_type): Update.
16090 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16091 method.
16092 (attr_form_is_block): Don't declare.
16093 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16094
cd6c91b4
TT
160952020-02-08 Tom Tromey <tom@tromey.com>
16096
16097 * dwarf2read.c (dwarf2_find_base_address, )
16098 (read_call_site_scope, rust_containing_type)
16099 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16100 (handle_data_member_location, dwarf2_add_member_fn)
16101 (get_alignment, read_structure_type, process_structure_scope)
16102 (mark_common_block_symbol_computed, read_common_block)
16103 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16104 (partial_die_info::read, read_attribute_value, new_symbol)
16105 (lookup_die_type, dwarf2_get_ref_die_offset)
16106 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16107 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16108 (dwarf2_symbol_mark_computed): Update.
16109 * dwarf2/attribute.h (struct attribute) <value_as_address,
16110 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16111 methods.
16112 (value_as_address, attr_form_is_section_offset)
16113 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16114 * dwarf2/attribute.c (attribute::value_as_address)
16115 (attribute::form_is_section_offset, attribute::form_is_constant)
16116 (attribute::form_is_ref): Now methods.
16117
162dce55
TT
161182020-02-08 Tom Tromey <tom@tromey.com>
16119
16120 * dwarf2read.c (struct attribute, DW_STRING)
16121 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16122 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16123 (attr_form_is_block, attr_form_is_section_offset)
16124 (attr_form_is_constant, attr_form_is_ref): Move.
16125 * dwarf2/attribute.h: New file.
16126 * dwarf2/attribute.c: New file, from dwarf2read.c.
16127 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16128
3054dd54
TT
161292020-02-08 Tom Tromey <tom@tromey.com>
16130
16131 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16132 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16133 Move.
16134 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16135 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16136 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16137 abbrev.c.
16138 * dwarf2/abbrev.h: New file.
16139 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16140 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16141
96b79293
TT
161422020-02-08 Tom Tromey <tom@tromey.com>
16143
16144 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16145 (dwarf2_section_size, dwarf2_get_section_info)
16146 (create_signatured_type_table_from_debug_names)
16147 (create_addrmap_from_aranges, read_debug_names_from_section)
16148 (get_gdb_index_contents_from_section, read_comp_unit_head)
16149 (error_check_comp_unit_head, read_abbrev_offset)
16150 (create_debug_type_hash_table, init_cu_die_reader)
16151 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16152 (read_comp_units_from_section, create_cus_hash_table)
16153 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16154 (create_dwp_v2_section, dwarf2_rnglists_process)
16155 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16156 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16157 (read_indirect_string_from_dwz, read_addr_index_1)
16158 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16159 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16160 (fill_in_loclist_baton): Update.
16161 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16162 get_containing_section, get_bfd_owner, get_bfd_section,
16163 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16164 (dwarf2_read_section, get_section_name, get_section_file_name)
16165 (get_containing_section, get_section_bfd_owner)
16166 (get_section_bfd_section, get_section_name, get_section_file_name)
16167 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16168 declare.
16169 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16170 (dwarf2_section_info::get_bfd_owner)
16171 (dwarf2_section_info::get_bfd_section)
16172 (dwarf2_section_info::get_name)
16173 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16174 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16175 (dwarf2_section_info::read): Now methods.
16176 * dwarf-index-write.c (class debug_names): Update.
16177
2c86cff9
TT
161782020-02-08 Tom Tromey <tom@tromey.com>
16179
16180 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16181 Move to dwarf2/section.h.
16182 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16183 (get_section_bfd_section, get_section_name)
16184 (get_section_file_name, get_section_id, get_section_flags)
16185 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16186 dwarf2/section.c.
16187 * dwarf2/section.h: New file.
16188 * dwarf2/section.c: New file, from dwarf2read.c.
16189 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16190
f4382c45
TT
161912020-02-08 Tom Tromey <tom@tromey.com>
16192
16193 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16194 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16195 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16196 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16197 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16198 * dwarf2/leb.h: New file, from dwarf2read.c.
16199 * dwarf2/leb.c: New file, from dwarf2read.c.
16200 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16201 Remove.
16202 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16203 (COMMON_SFILES): Add dwarf2/leb.c.
16204
01840b7a
JB
162052020-02-08 Joel Brobecker <brobecker@adacore.com>
16206
16207 GDB 9.1 released.
16208
dfcb27e4
IB
162092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16210
16211 PR gdb/25190:
aac66a4c
SM
16212 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16213 * gdb/remote.c (remote_console_output): Update.
16214 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16215 (ui_file_puts): ...this.
16216 * gdb/ui-file.h (ui_file_puts): Add declaration.
16217 * gdb/utils.c (emit_style_escape): Update.
16218 (flush_wrap_buffer): Update.
16219 (fputs_maybe_filtered): Update.
16220 (fputs_unfiltered): Add function.
dfcb27e4 16221
faa17681
IB
162222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16223
aac66a4c
SM
16224 * gdb/event-loop.c (gdb_wait_for_event): Update.
16225 * gdb/printcmd.c (printf_command): Update.
16226 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16227 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16228 (gdb_os_flush_stderr): Update.
16229 * gdb/remote.c (remote_console_output): Update.
16230 * gdb/ui-file.c (gdb_flush): Rename to...
16231 (ui_file_flush): ...this.
16232 (stderr_file::write): Update.
16233 (stderr_file::puts): Update.
16234 * gdb/ui-file.h (gdb_flush): Rename to...
16235 (ui_file_flush): ...this.
16236 * gdb/utils.c (gdb_flush): Add function.
16237 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16238
5abbbe1d
TT
162392020-02-07 Tom Tromey <tromey@adacore.com>
16240
16241 PR breakpoints/24915:
16242 * source.c (find_and_open_source): Do not check basenames_may_differ.
16243
919adfe8
TT
162442020-02-07 Tom Tromey <tom@tromey.com>
16245
16246 * README: Update gdbserver documentation.
16247 * gdbserver: Move to top level.
16248 * configure.tgt (build_gdbserver): Remove.
16249 * configure.ac: Remove --enable-gdbserver.
16250 * configure: Rebuild.
16251 * Makefile.in (distclean): Don't mention gdbserver.
16252
1d5d29e7
SV
162532020-02-06 Shahab Vahedi <shahab@synopsys.com>
16254
16255 * source-cache.c (source_cache::ensure): Surround
16256 get_plain_source_lines with a try/catch.
16257 (source_cache::get_line_charpos): Get rid of try/catch
16258 and only check for the return value of "ensure".
16259 * tui/tui-source.c (tui_source_window::set_contents):
16260 Simplify "nlines" calculation.
16261
6eb1129c
SV
162622020-02-06 Shahab Vahedi <shahab@synopsys.com>
16263
16264 * MAINTAINERS (Write After Approval): Add myself.
16265
c6a42d11
CB
162662020-02-05 Christian Biesinger <cbiesinger@google.com>
16267
16268 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16269 function call.
16270
c8ecdda6
CB
162712020-02-05 Christian Biesinger <cbiesinger@google.com>
16272
16273 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16274
f6480e70
MR
162752020-02-05 Maciej W. Rozycki <macro@wdc.com>
16276
16277 * nat/riscv-linux-tdesc.h: New file.
16278 * nat/riscv-linux-tdesc.c: New file, taking code from...
16279 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16280 ... here.
16281 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16282 NATDEPFILES.
16283
dcc9fbc6
AB
162842020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16285
16286 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16287 we don't set the fake simulator ptid to the null_ptid.
16288
719546c4
SM
162892020-02-03 Simon Marchi <simon.marchi@efficios.com>
16290
16291 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16292 * gdbthread.h (class thread_info) <resumed>: Likewise.
16293 * infrun.c (resume_1): Likewise.
16294 (proceed): Likewise.
16295 (infrun_thread_stop_requested): Likewise.
16296 (stop_all_threads): Likewise.
16297 (handle_inferior_event): Likewise.
16298 (restart_threads): Likewise.
16299 (finish_step_over): Likewise.
16300 (keep_going_stepped_thread): Likewise.
16301 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16302 (linux_handle_extended_wait): Likewise.
16303 * record-btrace.c (get_thread_current_frame_id): Likewise.
16304 * record-full.c (record_full_wait_1): Likewise.
16305 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16306 * target.c (target_resume): Likewise.
16307 * thread.c (set_running_thread): Likewise.
16308
e409c542
AKS
163092020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16310
16311 * f-valprint.c (f77_print_array_1): Changed datatype of index
16312 variable to LONGEST from int to enable it to contain bound
16313 values correctly.
16314
ee98c0da
MR
163152020-02-03 Maciej W. Rozycki <macro@wdc.com>
16316
16317 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16318 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16319 offsets according to FLEN determined.
16320 (riscv_linux_nat_target::read_description): Determine FLEN
16321 dynamically.
16322 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16323 according to FLEN determined.
16324 (riscv_linux_nat_target::store_registers): Likewise.
16325
aa66aac4
SV
163262020-02-01 Shahab Vahedi <shahab@synopsys.com>
16327
16328 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16329 when reg->group is empty and reggroup is not.
16330
fd9faca8
TT
163312020-01-31 Tom Tromey <tromey@adacore.com>
16332
16333 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16334 Call beneath target's mourn_inferior after unpushing.
16335
42330a68
AB
163362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16337
16338 PR tui/9765
16339 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16340 have enough lines to fill the screen, still return the lowest
16341 address we found.
16342
7a27a45b
AB
163432020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16344
16345 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16346 '-', '<', and '>' commands.
16347
c47f70e2
PA
163482020-01-29 Pedro Alves <palves@redhat.com>
16349 Sergio Durigan Junior <sergiodj@redhat.com>
16350
16351 * infcmd.c (construct_inferior_arguments): Assert that
16352 'argc' is greater than 0.
16353
5133a315
LM
163542020-01-29 Luis Machado <luis.machado@linaro.org>
16355
16356 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16357 (BRK_INSN_MASK): Define to 0xd4200000.
16358 (aarch64_program_breakpoint_here_p): New function.
16359 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16360 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16361 breakpoint.c.
16362 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16363 breakpoint.h
16364 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16365 call gdbarch_program_breakpoint_here_p.
16366 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16367 default_program_breakpoint_here_p, changed return type to bool and
16368 simplified.
16369 * breakpoint.h (program_breakpoint_here): Moved prototype to
16370 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16371 return type to bool.
16372 * gdbarch.c: Regenerate.
16373 * gdbarch.h: Regenerate.
16374 * gdbarch.sh (program_breakpoint_here_p): New method.
16375 * infrun.c (handle_signal_stop): Call
16376 gdbarch_program_breakpoint_here_p.
16377
168f8c6b
TT
163782020-01-26 Tom Tromey <tom@tromey.com>
16379
16380 * ctfread.c (struct ctf_fp_info): Reindent.
16381 (_initialize_ctfread): Remove.
16382
128a391f
TT
163832020-01-26 Tom Tromey <tom@tromey.com>
16384
16385 * psymtab.c (partial_map_expand_apply)
16386 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16387 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16388 (psym_print_stats, psym_expand_symtabs_for_function)
16389 (psym_map_symbol_filenames, psym_map_matching_symbols)
16390 (psym_expand_symtabs_matching)
16391 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16392 (maintenance_check_psymtabs): Use new methods.
16393 * psympriv.h (struct partial_symtab) <readin_p,
16394 get_compunit_symtab>: New methods.
16395 <readin, compunit_symtab>: Remove members.
16396 (struct standard_psymtab): New.
16397 (struct legacy_psymtab): Derive from standard_psymtab.
16398 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16399 standard_psymtab.
16400 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16401
0494dbec
TT
164022020-01-26 Tom Tromey <tom@tromey.com>
16403
16404 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16405 read_dependencies. Add assert.
16406 * psymtab.c (partial_symtab::read_dependencies): New method.
16407 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16408 method.
16409 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16410 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16411 read_dependencies.
16412 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16413 Add assert.
16414
8566b89b
TT
164152020-01-26 Tom Tromey <tom@tromey.com>
16416
16417 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16418 Call expand_psymtab.
16419 (xcoff_read_symtab): Call expand_psymtab.
16420 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16421 legacy_expand_psymtab.
16422 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16423 method.
16424 (struct legacy_psymtab) <expand_psymtab>: Implement.
16425 <legacy_expand_psymtab>: New member.
16426 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16427 (parse_partial_symbols): Set legacy_expand_psymtab.
16428 (psymtab_to_symtab_1): Change argument order. Call
16429 expand_psymtab.
16430 (new_psymtab): Set legacy_expand_psymtab.
16431 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16432 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16433 expand_psymtab.
16434 (dwarf2_psymtab::expand_psymtab): Rename from
16435 psymtab_to_symtab_1. Call expand_psymtab.
16436 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16437 (dbx_end_psymtab): Likewise.
16438 (dbx_psymtab_to_symtab_1): Change argument order. Call
16439 expand_psymtab.
16440 (dbx_read_symtab): Call expand_psymtab.
16441 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16442 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16443 (ctf_psymtab::read_symtab): Call expand_psymtab.
16444
077cbab2
TT
164452020-01-26 Tom Tromey <tom@tromey.com>
16446
16447 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16448 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16449 messages.
16450 * mdebugread.c (mdebug_read_symtab): Remove prints.
16451 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16452 assert.
16453 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16454
891813be
TT
164552020-01-26 Tom Tromey <tom@tromey.com>
16456
16457 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16458 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16459 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16460 legacy_symtab.
16461 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16462 * psymtab.c (psymtab_to_symtab): Call method.
16463 (dump_psymtab): Update.
16464 * psympriv.h (struct partial_symtab): Add virtual destructor.
16465 <read_symtab>: New method.
16466 (struct legacy_symtab): New.
16467 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16468 (struct pst_map) <pst>: Now a legacy_psymtab.
16469 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16470 (new_psymtab): Use legacy_psymtab.
16471 * dwarf2read.h (struct dwarf2_psymtab): New.
16472 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16473 * dwarf2read.c (dwarf2_create_include_psymtab)
16474 (dwarf2_build_include_psymtabs, create_type_unit_group)
16475 (create_partial_symtab, process_psymtab_comp_unit_reader)
16476 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16477 (set_partial_user): Use dwarf2_psymtab.
16478 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16479 (psymtab_to_symtab_1, process_full_comp_unit)
16480 (process_full_type_unit, dwarf2_ranges_read)
16481 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16482 (dwarf_decode_lines): Use dwarf2_psymtab.
16483 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16484 (add_address_entry_worker, write_one_signatured_type)
16485 (recursively_count_psymbols, recursively_write_psymbols)
16486 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16487 (write_debug_names): Likewise.
16488 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16489 <pst>: Now a legacy_psymtab.
16490 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16491 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16492 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16493 * ctfread.c (struct ctf_psymtab): New.
16494 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16495 ctf_psymtab.
16496 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16497 (create_partial_symtab): Return a ctf_psymtab.
16498 (scan_partial_symbols): Update.
16499
c3693a1d
TT
165002020-01-26 Tom Tromey <tom@tromey.com>
16501
16502 * xcoffread.c (xcoff_start_psymtab): Use new.
16503 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16504 renamed from start_psymtab_common.
16505 * psympriv.h (struct partial_symtab): Add new constructor.
16506 (start_psymtab_common): Don't declare.
16507 * mdebugread.c (parse_partial_symbols): Use new.
16508 * dwarf2read.c (create_partial_symtab): Use new.
16509 * dbxread.c (start_psymtab): Use new.
16510 * ctfread.c (create_partial_symtab): Use new.
16511
32caafd0
TT
165122020-01-26 Tom Tromey <tom@tromey.com>
16513
16514 * xcoffread.c (xcoff_end_psymtab): Use new.
16515 * psymtab.c (start_psymtab_common): Use new.
16516 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16517 Update.
16518 * psympriv.h (struct partial_symtab): Add parameters to
16519 constructor. Don't inline.
16520 (allocate_psymtab): Don't declare.
16521 * mdebugread.c (new_psymtab): Use new.
16522 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16523 * dbxread.c (dbx_end_psymtab): Use new.
16524
abaa2f23
TT
165252020-01-26 Tom Tromey <tom@tromey.com>
16526
16527 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16528 allocate_psymtab. Update documentation.
16529 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16530 allocate_psymtab. Do not use new.
16531 (allocate_psymtab): Use new. Update.
16532
6d94535f
TT
165332020-01-26 Tom Tromey <tom@tromey.com>
16534
16535 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16536 * psymtab.c (psym_print_stats): Update.
16537 * psympriv.h (struct partial_symtab) <readin,
16538 psymtabs_addrmap_supported, anonymous>: Now bool.
16539 * mdebugread.c (psymtab_to_symtab_1): Update.
16540 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16541 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16542 (process_full_comp_unit, process_full_type_unit): Update.
16543 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16544 * ctfread.c (psymtab_to_symtab): Update.
16545
6f17252b
TT
165462020-01-26 Tom Tromey <tom@tromey.com>
16547
16548 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16549 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16550 * psymtab.c (psymtab_storage): Delete psymtabs.
16551 (psymtab_storage::allocate_psymtab): Use new.
16552 (psymtab_storage::discard_psymtab): Use delete.
16553 * psympriv.h (struct partial_symtab): Add constructor and
16554 initializers.
16555
f6f1cebc
TT
165562020-01-26 Tom Tromey <tom@tromey.com>
16557
16558 * machoread.c: Do not include psympriv.h.
16559
e47e48f6
PW
165602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16561
16562 * NEWS: Mention the new option and the set/show commands.
16563
a2fedca9
PW
165642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16565
16566 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16567 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16568 (validate_exec_file): New variables, enums, functions.
16569 (exec_file_locate_attach, print_section_info): Style the filenames.
16570 (_initialize_exec): Install show_exec_file_mismatch_command and
16571 set_exec_file_mismatch_command.
16572 * gdbcore.h (validate_exec_file): Declare.
16573 * infcmd.c (attach_command): Call validate_exec_file.
16574 * remote.c ( remote_target::remote_add_inferior): Likewise.
16575
7ffa82e1
AB
165762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16577
16578 * frame.c (find_frame_sal): Move call to get_next_frame into more
16579 inner scope.
16580 * inline-frame.c (inilne_state) <inline_state>: Update argument
16581 types.
16582 (inilne_state) <skipped_symbol>: Rename to...
16583 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16584 (skip_inline_frames): Build vector of skipped symbols and use this
16585 to reate the inline_state.
16586 (inline_skipped_symbol): Add a comment and some assertions, fetch
16587 skipped symbol from the list.
16588
3d92a3e3
AB
165892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16590
16591 * buildsym.c (lte_is_less_than): Delete.
16592 (buildsym_compunit::end_symtab_with_blockvector): Create local
16593 lambda function to sort line table entries, and use
16594 std::stable_sort instead of std::sort.
16595 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16596 markers when looking for a previous line.
16597
94a72be7
AB
165982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16599
16600 * dwarf2read.c (lnp_state_machine::record_line): Include
16601 end_sequence parameter in debug print out. Record the line if we
16602 are at an end_sequence marker even if it's not the start of a
16603 statement.
16604 * symmisc.c (maintenance_print_one_line_table): Print end of
16605 sequence markers with 'END' not '0'.
16606
53af73bf
PA
166072020-01-24 Pedro Alves <palves@redhat.com>
16608
16609 PR gdb/25410
16610 * thread.c (scoped_restore_current_thread::restore): Use
16611 switch_to_inferior_no_thread.
16612 * exec.c: Include "progspace-and-thread.h".
16613 (add_target_sections, remove_target_sections):
16614 scoped_restore_current_pspace_and_thread instead of
16615 scoped_restore_current_thread.
16616 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16617 and aspace to the inferior before calling clone_program_space.
16618 Remove stale comment.
16619
3050c6f4
CB
166202020-01-24 Christian Biesinger <cbiesinger@google.com>
16621
16622 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16623 (arm_netbsd_nat_target::fetch_registers): ...this.
16624 (arm_nbsd_nat_target::store_registers): Rename to...
16625 (arm_netbsd_nat_target::store_registers): ...this.
16626
73685c7e
CB
166272020-01-24 Christian Biesinger <cbiesinger@google.com>
16628
16629 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16630 register_t.
16631
89203d40
CB
166322020-01-24 Christian Biesinger <cbiesinger@google.com>
16633
16634 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16635 Update comment.
16636 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16637 Likewise.
16638 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16639 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16640 the correct replacement (iterate_over_regset_sections).
16641 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16642 Update comment.
16643
1ba1ac88
AB
166442020-01-24 Graham Markall <graham.markall@embecosm.com>
16645
16646 PR gdb/23718
16647 * gdb/python/python.c (execute_gdb_command): Call
16648 async_enable_stdin in catch block.
16649
f3364a6d
AB
166502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16651
16652 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16653 SWITCH_THRU_ALL_UIS.
16654
733d0a67
AB
166552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16656
16657 PR tui/9765
16658 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16659 comment, add extra parameter, and update to store previous symbol
16660 when appropriate.
16661 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16662 add extra parameter.
16663 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16664 remove unneeded parameter, add try/catch around gdb_print_insn,
16665 rewrite to add items to asm_lines vector.
16666 (tui_find_backward_disassembly_start_address): New function.
16667 (tui_find_disassembly_address): Updated throughout.
16668 (tui_disasm_window::set_contents): Update for changes to
16669 tui_disassemble.
16670 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16671 number of lines to scroll.
16672
b3b3bada
SM
166732020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16674
16675 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16676 (SECT_OFF_DATA): Likewise.
16677 (SECT_OFF_RODATA): Likewise.
16678 (SECT_OFF_TEXT): Likewise.
16679 (SECT_OFF_BSS): Likewise.
16680 (struct objfile) <text_section_offset, data_section_offset>: New
16681 methods.
16682 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16683 objfile::text_section_offset.
16684 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16685 * coffread.c (coff_symtab_read): Likewise.
16686 (enter_linenos): Likewise.
16687 (process_coff_symbol): Likewise.
16688 * ctfread.c (get_objfile_text_range): Likewise.
16689 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16690 Use objfile::data_section_offset.
16691 * dwarf2-frame.c (execute_cfa_program): Use
16692 objfile::text_section_offset.
16693 (dwarf2_frame_find_fde): Likewise.
16694 * dwarf2read.c (create_addrmap_from_index): Likewise.
16695 (create_addrmap_from_aranges): Likewise.
16696 (dw2_find_pc_sect_compunit_symtab): Likewise.
16697 (process_psymtab_comp_unit_reader): Likewise.
16698 (add_partial_symbol): Likewise.
16699 (add_partial_subprogram): Likewise.
16700 (process_full_comp_unit): Likewise.
16701 (read_file_scope): Likewise.
16702 (read_func_scope): Likewise.
16703 (read_lexical_block_scope): Likewise.
16704 (read_call_site_scope): Likewise.
16705 (dwarf2_rnglists_process): Likewise.
16706 (dwarf2_ranges_process): Likewise.
16707 (dwarf2_ranges_read): Likewise.
16708 (dwarf_decode_lines_1): Likewise.
16709 (new_symbol): Likewise.
16710 (dwarf2_fetch_die_loc_sect_off): Likewise.
16711 (dwarf2_per_cu_text_offset): Likewise.
16712 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16713 * hppa-tdep.c (read_unwind_info): Likewise.
16714 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16715 * psympriv.h (struct partial_symtab): Likewise.
16716 * psymtab.c (find_pc_sect_psymtab): Likewise.
16717 * solib-svr4.c (enable_break): Likewise.
16718 * stap-probe.c (relocate_address): Use
16719 objfile::data_section_offset.
16720 * xcoffread.c (enter_line_range): Use
16721 objfile::text_section_offset.
16722 (read_xcoff_symtab): Likewise.
16723
ab53f382
SM
167242020-01-23 Simon Marchi <simon.marchi@efficios.com>
16725
16726 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16727 declaration to narrower scopes.
16728
e7eee665
SM
167292020-01-23 Simon Marchi <simon.marchi@efficios.com>
16730
16731 * darwin-nat.h (struct darwin_exception_msg, enum
16732 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16733 Move up.
16734 (class darwin_nat_target) <wait_1, check_new_threads,
16735 decode_exception_message, decode_message, stop_inferior,
16736 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16737 * darwin-nat.c (darwin_check_new_threads): Rename to...
16738 (darwin_nat_target::check_new_threads): ... this.
16739 (darwin_suspend_inferior_it): Remove.
16740 (darwin_decode_exception_message): Rename to...
16741 (darwin_nat_target::decode_exception_message): ... this.
16742 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16743 (darwin_decode_message): Rename to...
16744 (darwin_nat_target::decode_message): ... this.
16745 (cancel_breakpoint): Rename to...
16746 (darwin_nat_target::cancel_breakpoint): ... this.
16747 (darwin_wait): Rename to...
16748 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16749 instead of iterate_over_inferiors.
16750 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16751 (darwin_stop_inferior): Rename to...
16752 (darwin_nat_target::stop_inferior): ... this.
16753 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16754 (darwin_init_thread_list): Rename to...
16755 (darwin_nat_target::init_thread_list): ... this.
16756 (darwin_ptrace_him): Rename to...
16757 (darwin_nat_target::ptrace_him): ... this.
16758 (darwin_nat_target::create_inferior): Pass lambda function to
16759 fork_inferior.
16760 (darwin_nat_target::detach): Call stop_inferior instead of
16761 darwin_stop_inferior.
16762 * fork-inferior.h (fork_inferior): Change init_trace_fun
16763 parameter to gdb::function_view.
16764 * fork-inferior.c (fork_inferior): Likewise.
16765
c162ed3e
HD
167662020-01-23 Hannes Domani <ssbssa@yahoo.de>
16767
16768 * i386-cygwin-tdep.c (core_process_module_section): Update.
16769 * windows-nat.c (struct lm_info_windows): Add text_offset.
16770 (windows_xfer_shared_libraries): Update.
16771 * windows-tdep.c (windows_xfer_shared_library):
16772 Add text_offset_cached argument.
16773 * windows-tdep.h (windows_xfer_shared_library): Update.
16774
a1237872
SM
167752020-01-21 Simon Marchi <simon.marchi@efficios.com>
16776
16777 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16778
b3ee6dd9
SM
167792020-01-21 Simon Marchi <simon.marchi@efficios.com>
16780
16781 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16782 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16783 replace with range-based for.
16784 (gdbsim_interrupt_inferior): Remove.
16785 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16786 with a range-based for. Inline code from
16787 gdbsim_interrupt_inferior.
16788
f9fac3c8
SM
167892020-01-21 Simon Marchi <simon.marchi@efficios.com>
16790
16791 * infrun.c (proceed): Fix indentation.
16792
f6474de9
TT
167932020-01-21 Tom Tromey <tromey@adacore.com>
16794
16795 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16796 * python/python.c (python_extension_ops): Update.
16797 (gdbpy_colorize): New function.
16798 * python/lib/gdb/__init__.py (colorize): New function.
16799 * extension.h (ext_lang_colorize): Declare.
16800 * extension.c (ext_lang_colorize): New function.
16801 * extension-priv.h (struct extension_language_ops) <colorize>: New
16802 member.
16803 * cli/cli-style.c (_initialize_cli_style): Update help text.
16804
f0c702d4
LM
168052020-01-21 Luis Machado <luis.machado@linaro.org>
16806
16807 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16808 <cond>: Change type to bool.
16809 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16810 (aarch64_displaced_step_cb): Likewise.
16811 (aarch64_displaced_step_tb): Likewise.
16812
1ab139e5
LM
168132020-01-21 Luis Machado <luis.machado@linaro.org>
16814
16815 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16816 output.
16817
0c271889
LM
168182020-01-21 Luis Machado <luis.machado@linaro.org>
16819
16820 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16821 <pc_adjust>: Adjust the documentation.
16822 (aarch64_displaced_step_fixup): Check if PC really moved before
16823 adjusting it.
16824
4d89c1c7
TT
168252020-01-19 Tom Tromey <tom@tromey.com>
16826
16827 * disasm.c (~gdb_disassembler): New destructor.
16828 (gdb_buffered_insn_length): Call disassemble_free_target.
16829 * disasm.h (class gdb_disassembler): Declare destructor. Use
16830 DISABLE_COPY_AND_ASSIGN.
16831
c0ab21c2
TT
168322020-01-19 Tom Tromey <tom@tromey.com>
16833
16834 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16835 (die_reader_func_ftype): Remove.
16836 (cutu_reader): New class.
16837 (dw2_get_file_names_reader): Remove "data" parameter.
16838 (dw2_get_file_names): Use cutu_reader.
16839 (create_debug_type_hash_table): Update.
16840 (read_cutu_die_from_dwo): Update comment.
16841 (lookup_dwo_unit): Add dwo_name parameter.
16842 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16843 die_reader_func_ftype and data parameters.
16844 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16845 Remove die_reader_func_ftype and data parameters.
16846 (~cutu_reader): New; from init_cutu_and_read_dies.
16847 (cutu_reader::cutu_reader): Rename from
16848 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16849 and data parameters.
16850 (init_cutu_and_read_dies_simple): Remove.
16851 (struct process_psymtab_comp_unit_data): Remove.
16852 (process_psymtab_comp_unit_reader): Remove data parameter; add
16853 want_partial_unit and pretend_language parameters.
16854 (process_psymtab_comp_unit): Use cutu_reader.
16855 (build_type_psymtabs_reader): Remove data parameter.
16856 (build_type_psymtabs_1): Use cutu_reader.
16857 (process_skeletonless_type_unit): Likewise.
16858 (load_partial_comp_unit_reader): Remove.
16859 (load_partial_comp_unit): Use cutu_reader.
16860 (load_full_comp_unit_reader): Remove.
16861 (load_full_comp_unit): Use cutu_reader.
16862 (struct create_dwo_cu_data): Remove.
16863 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16864 dwo_unit parameters.
16865 (create_cus_hash_table): Use cutu_reader.
16866 (struct dwarf2_read_addr_index_data): Remove.
16867 (dwarf2_read_addr_index_reader): Remove.
16868 (dwarf2_read_addr_index): Use cutu_reader.
16869 (read_signatured_type_reader): Remove.
16870 (read_signatured_type): Use cutu_reader.
16871
45bbae5c
TT
168722020-01-19 Tom Tromey <tom@tromey.com>
16873
16874 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16875 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16876 (tui_wrefresh): Declare.
16877 * tui/tui-wingeneral.c (suppress_output): New global.
16878 (tui_suppress_output, ~tui_suppress_output): New constructor and
16879 destructor.
16880 (tui_wrefresh): New function.
16881 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16882 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16883 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16884 method.
16885 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16886 tui_wrefresh.
16887 (tui_data_window::no_refresh): New method.
16888 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16889 (tui_reg_command): Use tui_suppress_output
16890 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16891 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16892 method.
16893 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16894
4f13c1c0
TT
168952020-01-19 Tom Tromey <tom@tromey.com>
16896
16897 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16898 Handle case where symtab is null.
16899
fa47e446
SM
169002020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16901
16902 * linux-fork.c (one_fork_p): Simplify.
16903
26f42329
SM
169042020-01-17 Simon Marchi <simon.marchi@efficios.com>
16905
16906 * top.c (struct qt_args): Remove.
16907 (kill_or_detach): Change return type to void, replace `void *`
16908 parameter with a proper one.
16909 (print_inferior_quit_action): Likewise.
16910 (quit_confirm): Use range-based for loop to iterate over inferiors.
16911 (quit_force): Likewise.
16912
a9ac81b1
SM
169132020-01-17 Simon Marchi <simon.marchi@efficios.com>
16914
16915 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16916 `void *` parameter with proper parameters.
16917 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16918 (print_one_inferior): Change return type to void, replace `void *`
16919 parameter with proper parameters.
16920 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16921 inferiors.
16922 (get_other_inferior): Remove.
16923 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16924 inferiors.
16925
788eca49
SM
169262020-01-17 Simon Marchi <simon.marchi@efficios.com>
16927
16928 * mi/mi-interp.c (report_initial_inferior): Remove.
16929 (mi_interp::init): Use range-based for to iterate over inferiors.
16930
d9bc85b6
SM
169312020-01-17 Simon Marchi <simon.marchi@efficios.com>
16932
16933 * python/py-inferior.c (build_inferior_list): Remove.
16934 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16935
40c94099
CB
169362020-01-16 Christian Biesinger <cbiesinger@google.com>
16937
16938 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16939 (btrace_stitch_trace): Likewise.
16940 * charset.c (intermediate_encoding): Likewise (vaild).
16941 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16942 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16943 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16944
e0cdfe3c
HD
169452020-01-16 Hannes Domani <ssbssa@yahoo.de>
16946
16947 * windows-tdep.c (windows_get_tlb_type):
16948 Add rtl_user_process_parameters type.
16949
790f1718 169502020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16951 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16952
16953 PR build/24805
16954 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16955 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16956 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16957 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16958 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16959 (ps_plog): Redeclare exported functions with default visibility.
16960
3112ed97
NA
169612020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16962
16963 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16964 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16965
8dc3273e
SM
169662020-01-15 Simon Marchi <simon.marchi@efficios.com>
16967
16968 * infcmd.c (post_create_inferior): Use get_thread_regcache
16969 instead of get_current_regcache.
16970
ff47f4f0
TT
169712020-01-14 Tom Tromey <tom@tromey.com>
16972
16973 PR symtab/12535:
16974 * python/python.c (gdbpy_decode_line): Treat empty string the same
16975 as no argument.
16976
975f45b7
TT
169772020-01-14 Tom Tromey <tom@tromey.com>
16978
16979 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16980
25e57356
TT
169812020-01-14 Tom Tromey <tom@tromey.com>
16982
16983 * nat/linux-btrace.c: Don't include <config.h>.
16984 * nat/linux-ptrace.c: Don't include <config.h>.
16985 * nat/x86-linux-dregs.c: Don't include <config.h>.
16986
05ea2a05
TT
169872020-01-14 Tom Tromey <tom@tromey.com>
16988
16989 * configure: Rebuild.
16990 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16991
01027315
TT
169922020-01-14 Tom Tromey <tom@tromey.com>
16993
16994 * nat/x86-linux-dregs.c: Include configh.h.
16995 * nat/linux-ptrace.c: Include configh.h.
16996 * nat/linux-btrace.c: Include configh.h.
16997 * defs.h: Include config.h, bfd.h.
16998 * configure.ac: Don't source common.host.
16999 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17000 * configure: Rebuild.
17001 * acinclude.m4: Update path.
17002 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17003 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17004 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17005 (CLIBS): Add LIBSUPPORT.
17006 (CDEPS): Likewise.
17007 (COMMON_SFILES): Remove gdbsupport files.
17008 (HFILES_NO_SRCDIR): Likewise.
17009 (stamp-version): Update path to create-version.sh.
17010 (ALLDEPFILES): Remove gdbsupport files.
17011
b2ceabe8
TT
170122020-01-14 Tom Tromey <tom@tromey.com>
17013
17014 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17015 USE_WIN32API when needed.
17016 * configure.ac (USE_WIN32API): Don't define.
17017 (WIN32LIBS): Use WIN32APILIBS.
17018 * configure: Rebuild.
17019
25c51f71
TT
170202020-01-14 Tom Tromey <tom@tromey.com>
17021
17022 * configure: Rebuild.
17023 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17024
717c684d
BE
170252020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17026
17027 * skip.c (skip_function_command): Make skip w/o arguments use the
17028 name of the inlined function if pc is inside any inlined function.
17029
7da6a5b9
LM
170302020-01-14 Luis Machado <luis.machado@linaro.org>
17031
17032 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17033 * infrun.c (resume_1): Likewise.
17034 (handle_inferior_event): Remove stale comment.
17035 * linux-nat.c (linux_nat_target::resume): Update comments.
17036 (save_stop_reason): Likewise.
17037 (linux_nat_filter_event): Likewise.
17038 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17039
44e4c775
AB
170402020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17041
17042 * elfread.c (record_minimal_symbol): Set section index to 0 for
17043 non-allocatable sections.
17044
18a8505e
AT
17045
170462020-01-13 Ali Tamur <tamur@google.com>
17047
17048 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17049 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17050 to gdb::optional. Update comments.
17051 (dwo_file): Update comments.
17052 (read_attribute): Update API to take an additional out parameter,
17053 need_reprocess. This is used to mark attributes that need other
17054 attributes (e.g. str_offsets_base) for correct computation which may not
17055 have been read yet.
17056 (read_attribute_reprocess): New function declaration.
17057 (read_addr_index): Likewise.
17058 (read_dwo_str_index): Likewise.
17059 (read_stub_str_index): Likewise.
17060 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17061 (lookup_addr_base): New function definition.
17062 (lookup_ranges_base): Likewise.
17063 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17064 lookup_ranges_base.
17065 (init_cutu_and_read_dies): Update comments.
17066 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17067 unit. This is used to inherit parent's str_offsets_base and addr_base.
17068 Update comments.
17069 (init_cutu_and_read_dies_simple): Reflect API changes.
17070 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17071 (create_cus_hash_table): Change API to take parent compile unit.
17072 Reflect API changes.
17073 (open_and_init_dwo_file): Reflect API changes.
17074 (dwarf2_get_pc_bounds): Update comments.
17075 (dwarf2_record_block_ranges): Likewise.
17076 (read_full_die_1): Change implementation to reprocess attributes that
17077 need str_offsets_base and addr_base.
17078 (partial_die_info::read): Likewise.
17079 (read_attribute_reprocess): New function definition.
17080 (read_attribute_value): Change API to take an additional out parameter,
17081 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17082 when a non-dwo compile unit has index based attributes.
17083 (read_attribute): Reflect API changes.
17084 (read_addr_index_1): Reflect API changes. Update comments.
17085 (dwarf2_read_addr_index_data): Reflect API changes.
17086 (dwarf2_read_addr_index): Likewise.
17087 (read_str_index): Change API and implementation. This becomes a helper
17088 to be used by the new string index related methods. Update error
17089 message and comments.
17090 (read_dwo_str_index): New function definition.
17091 (read_stub_str_index): Likewise.
17092 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17093 * symfile.h (dwarf2_debug_sections): Likewise.
17094 * xcoffread.c (dwarf2_debug_sections): Likewise.
17095
0cac9354
SM
170962020-01-13 Simon Marchi <simon.marchi@efficios.com>
17097
17098 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17099 core_reg_sect type to gdb_byte *.
17100 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17101 * cris-tdep.c (fetch_core_registers): Likewise.
17102 * corelow.c (core_target::get_core_register_section): Change
17103 type of `contents` to gdb::byte_vector.
17104
9a6d629c
AB
171052020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17106
17107 * tui/tui-wingeneral.c (box_win): Position the title in the center
17108 of the border.
17109
d8b2f9e3
SM
171102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17111
17112 * corelow.c (core_target::get_core_register_section): Use
17113 std::vector instead of alloca.
17114
bb564c58
SM
171152020-01-13 Simon Marchi <simon.marchi@efficios.com>
17116
17117 * warning.m4: Add -Wmissing-declarations to build_warnings.
17118 * configure: Re-generate.
17119
6b366111
SM
171202020-01-13 Simon Marchi <simon.marchi@efficios.com>
17121
17122 * python/python.c (init__gdb_module): Add declaration.
17123
6c265988
SM
171242020-01-13 Simon Marchi <simon.marchi@efficios.com>
17125
17126 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17127 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17128 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17129 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17130 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17131 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17132 * ada-exp.y (_initialize_ada_exp): Add declaration.
17133 * ada-lang.c (_initialize_ada_language): Add declaration.
17134 * ada-tasks.c (_initialize_tasks): Add declaration.
17135 * agent.c (_initialize_agent): Add declaration.
17136 * aix-thread.c (_initialize_aix_thread): Add declaration.
17137 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17138 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17139 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17140 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17141 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17142 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17143 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17144 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17145 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17146 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17147 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17148 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17149 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17150 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17151 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17152 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17153 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17154 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17155 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17156 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17157 * annotate.c (_initialize_annotate): Add declaration.
17158 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17159 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17160 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17161 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17162 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17163 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17164 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17165 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17166 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17167 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17168 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17169 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17170 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17171 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17172 * auto-load.c (_initialize_auto_load): Add declaration.
17173 * auxv.c (_initialize_auxv): Add declaration.
17174 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17175 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17176 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17177 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17178 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17179 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17180 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17181 * breakpoint.c (_initialize_breakpoint): Add declaration.
17182 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17183 * btrace.c (_initialize_btrace): Add declaration.
17184 * charset.c (_initialize_charset): Add declaration.
17185 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17186 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17187 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17188 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17189 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17190 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17191 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17192 * coffread.c (_initialize_coffread): Add declaration.
17193 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17194 * compile/compile.c (_initialize_compile): Add declaration.
17195 * complaints.c (_initialize_complaints): Add declaration.
17196 * completer.c (_initialize_completer): Add declaration.
17197 * copying.c (_initialize_copying): Add declaration.
17198 * corefile.c (_initialize_core): Add declaration.
17199 * corelow.c (_initialize_corelow): Add declaration.
17200 * cp-abi.c (_initialize_cp_abi): Add declaration.
17201 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17202 * cp-support.c (_initialize_cp_support): Add declaration.
17203 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17204 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17205 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17206 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17207 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17208 * ctfread.c (_initialize_ctfread): Add declaration.
17209 * d-lang.c (_initialize_d_language): Add declaration.
17210 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17211 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17212 * dbxread.c (_initialize_dbxread): Add declaration.
17213 * dcache.c (_initialize_dcache): Add declaration.
17214 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17215 * disasm.c (_initialize_disasm): Add declaration.
17216 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17217 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17218 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17219 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17220 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17221 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17222 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17223 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17224 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17225 * elfread.c (_initialize_elfread): Add declaration.
17226 * exec.c (_initialize_exec): Add declaration.
17227 * extension.c (_initialize_extension): Add declaration.
17228 * f-lang.c (_initialize_f_language): Add declaration.
17229 * f-valprint.c (_initialize_f_valprint): Add declaration.
17230 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17231 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17232 * filesystem.c (_initialize_filesystem): Add declaration.
17233 * findcmd.c (_initialize_mem_search): Add declaration.
17234 * findvar.c (_initialize_findvar): Add declaration.
17235 * fork-child.c (_initialize_fork_child): Add declaration.
17236 * frame-base.c (_initialize_frame_base): Add declaration.
17237 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17238 * frame.c (_initialize_frame): Add declaration.
17239 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17240 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17241 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17242 * gcore.c (_initialize_gcore): Add declaration.
17243 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17244 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17245 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17246 * gdbarch.c (_initialize_gdbarch): Add declaration.
17247 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17248 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17249 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17250 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17251 * go-lang.c (_initialize_go_language): Add declaration.
17252 * go32-nat.c (_initialize_go32_nat): Add declaration.
17253 * guile/guile.c (_initialize_guile): Add declaration.
17254 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17255 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17256 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17257 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17258 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17259 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17260 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17261 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17262 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17263 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17264 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17265 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17266 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17267 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17268 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17269 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17270 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17271 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17272 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17273 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17274 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17275 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17276 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17277 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17278 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17279 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17280 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17281 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17282 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17283 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17284 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17285 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17286 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17287 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17288 * infcall.c (_initialize_infcall): Add declaration.
17289 * infcmd.c (_initialize_infcmd): Add declaration.
17290 * inflow.c (_initialize_inflow): Add declaration.
17291 * infrun.c (_initialize_infrun): Add declaration.
17292 * interps.c (_initialize_interpreter): Add declaration.
17293 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17294 * jit.c (_initialize_jit): Add declaration.
17295 * language.c (_initialize_language): Add declaration.
17296 * linux-fork.c (_initialize_linux_fork): Add declaration.
17297 * linux-nat.c (_initialize_linux_nat): Add declaration.
17298 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17299 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17300 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17301 * m2-lang.c (_initialize_m2_language): Add declaration.
17302 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17303 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17304 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17305 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17306 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17307 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17308 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17309 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17310 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17311 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17312 * machoread.c (_initialize_machoread): Add declaration.
17313 * macrocmd.c (_initialize_macrocmd): Add declaration.
17314 * macroscope.c (_initialize_macroscope): Add declaration.
17315 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17316 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17317 * maint.c (_initialize_maint_cmds): Add declaration.
17318 * mdebugread.c (_initialize_mdebugread): Add declaration.
17319 * memattr.c (_initialize_mem): Add declaration.
17320 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17321 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17322 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17323 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17324 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17325 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17326 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17327 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17328 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17329 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17330 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17331 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17332 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17333 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17334 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17335 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17336 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17337 * mipsread.c (_initialize_mipsread): Add declaration.
17338 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17339 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17340 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17341 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17342 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17343 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17344 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17345 * nto-procfs.c (_initialize_procfs): Add declaration.
17346 * objc-lang.c (_initialize_objc_language): Add declaration.
17347 * observable.c (_initialize_observer): Add declaration.
17348 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17349 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17350 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17351 * osabi.c (_initialize_gdb_osabi): Add declaration.
17352 * osdata.c (_initialize_osdata): Add declaration.
17353 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17354 * parse.c (_initialize_parse): Add declaration.
17355 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17356 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17357 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17358 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17359 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17360 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17361 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17362 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17363 * printcmd.c (_initialize_printcmd): Add declaration.
17364 * probe.c (_initialize_probe): Add declaration.
17365 * proc-api.c (_initialize_proc_api): Add declaration.
17366 * proc-events.c (_initialize_proc_events): Add declaration.
17367 * proc-service.c (_initialize_proc_service): Add declaration.
17368 * procfs.c (_initialize_procfs): Add declaration.
17369 * producer.c (_initialize_producer): Add declaration.
17370 * psymtab.c (_initialize_psymtab): Add declaration.
17371 * python/python.c (_initialize_python): Add declaration.
17372 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17373 * record-btrace.c (_initialize_record_btrace): Add declaration.
17374 * record-full.c (_initialize_record_full): Add declaration.
17375 * record.c (_initialize_record): Add declaration.
17376 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17377 * regcache.c (_initialize_regcache): Add declaration.
17378 * reggroups.c (_initialize_reggroup): Add declaration.
17379 * remote-notif.c (_initialize_notif): Add declaration.
17380 * remote-sim.c (_initialize_remote_sim): Add declaration.
17381 * remote.c (_initialize_remote): Add declaration.
17382 * reverse.c (_initialize_reverse): Add declaration.
17383 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17384 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17385 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17386 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17387 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17388 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17389 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17390 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17391 Add declaration.
17392 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17393 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17394 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17395 * rust-exp.y (_initialize_rust_exp): Add declaration.
17396 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17397 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17398 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17399 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17400 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17401 * score-tdep.c (_initialize_score_tdep): Add declaration.
17402 * ser-go32.c (_initialize_ser_dos): Add declaration.
17403 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17404 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17405 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17406 * ser-uds.c (_initialize_ser_socket): Add declaration.
17407 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17408 * serial.c (_initialize_serial): Add declaration.
17409 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17410 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17411 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17412 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17413 * skip.c (_initialize_step_skip): Add declaration.
17414 * sol-thread.c (_initialize_sol_thread): Add declaration.
17415 * solib-aix.c (_initialize_solib_aix): Add declaration.
17416 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17417 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17418 * solib-frv.c (_initialize_frv_solib): Add declaration.
17419 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17420 * solib-target.c (_initialize_solib_target): Add declaration.
17421 * solib.c (_initialize_solib): Add declaration.
17422 * source-cache.c (_initialize_source_cache): Add declaration.
17423 * source.c (_initialize_source): Add declaration.
17424 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17425 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17426 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17427 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17428 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17429 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17430 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17431 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17432 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17433 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17434 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17435 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17436 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17437 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17438 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17439 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17440 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17441 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17442 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17443 * stabsread.c (_initialize_stabsread): Add declaration.
17444 * stack.c (_initialize_stack): Add declaration.
17445 * stap-probe.c (_initialize_stap_probe): Add declaration.
17446 * std-regs.c (_initialize_frame_reg): Add declaration.
17447 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17448 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17449 * symfile.c (_initialize_symfile): Add declaration.
17450 * symmisc.c (_initialize_symmisc): Add declaration.
17451 * symtab.c (_initialize_symtab): Add declaration.
17452 * target.c (_initialize_target): Add declaration.
17453 * target-connection.c (_initialize_target_connection): Add
17454 declaration.
17455 * target-dcache.c (_initialize_target_dcache): Add declaration.
17456 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17457 * thread.c (_initialize_thread): Add declaration.
17458 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17459 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17460 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17461 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17462 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17463 * tracectf.c (_initialize_ctf): Add declaration.
17464 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17465 * tracefile.c (_initialize_tracefile): Add declaration.
17466 * tracepoint.c (_initialize_tracepoint): Add declaration.
17467 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17468 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17469 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17470 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17471 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17472 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17473 * tui/tui.c (_initialize_tui): Add declaration.
17474 * typeprint.c (_initialize_typeprint): Add declaration.
17475 * ui-style.c (_initialize_ui_style): Add declaration.
17476 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17477 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17478 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17479 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17480 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17481 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17482 * unittests/filtered_iterator-selftests.c
17483 (_initialize_filtered_iterator_selftests): Add declaration.
17484 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17485 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17486 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17487 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17488 * unittests/main-thread-selftests.c
17489 (_initialize_main_thread_selftests): Add declaration.
17490 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17491 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17492 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17493 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17494 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17495 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17496 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17497 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17498 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17499 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17500 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17501 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17502 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17503 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17504 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17505 declaration.
17506 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17507 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17508 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17509 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17510 * user-regs.c (_initialize_user_regs): Add declaration.
17511 * utils.c (_initialize_utils): Add declaration.
17512 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17513 * valops.c (_initialize_valops): Add declaration.
17514 * valprint.c (_initialize_valprint): Add declaration.
17515 * value.c (_initialize_values): Add declaration.
17516 * varobj.c (_initialize_varobj): Add declaration.
17517 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17518 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17519 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17520 * windows-nat.c (_initialize_windows_nat): Add declaration.
17521 (_initialize_check_for_gdb_ini): Add declaration.
17522 (_initialize_loadable): Add declaration.
17523 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17524 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17525 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17526 * xcoffread.c (_initialize_xcoffread): Add declaration.
17527 * xml-support.c (_initialize_xml_support): Add declaration.
17528 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17529 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17530 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17531 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17532
e2de1eec
SM
175332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17534
17535 * regformats/regdat.sh: Generate declaration for init function.
17536
e0037b4c
SM
175372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17538
17539 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17540 up.
17541 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17542 close_one_inferior>: New methods.
17543 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17544 pass down target to find_inferior_pid.
17545 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17546 Pass down target to find_inferior_ptid.
17547 (gdbsim_target::create_inferior): Pass down target to
17548 add_thread_silent.
17549 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17550 target down to find_inferior_ptid and switch_to_thread.
17551 (gdbsim_target::close): Update to call close_one_inferior.
17552 (struct resume_data): Remove.
17553 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17554 directly, rather than through a void pointer.
17555 (gdbsim_target::resume): Update to call resume_one_inferior.
17556
58920b5b
SM
175572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17558
17559 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17560
4ec89149
PA
175612020-01-12 Pedro Alves <palves@redhat.com>
17562
17563 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17564 directly for the current inferior instead of
17565 discard_all_inferiors.
17566 (discard_all_inferiors): Delete.
17567
7c392d1d
TT
175682020-01-11 Tom Tromey <tom@tromey.com>
17569
17570 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17571 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17572 deprecated_safe_get_selected_frame.
17573
d9ebdab7
TBA
175742020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17575
17576 * inferior.c (print_inferior): Switch inferior before printing it.
17577
f3c469b9
PA
175782020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17579 Pedro Alves <palves@redhat.com>
17580
17581 * progspace-and-thread.c (switch_to_program_space_and_thread):
17582 Assert there's an inferior for PSPACE. Use
17583 switch_to_inferior_no_thread to switch the inferior too.
17584 * progspace.c (program_space::~program_space): Call
17585 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17586 (program_space::free_all_objfiles): Don't call clear_symtab_users
17587 here.
17588 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17589
65c574f6
PA
175902020-01-10 Pedro Alves <palves@redhat.com>
17591
17592 * NEWS: Mention multi-target debugging, "info connections", and
17593 "add-inferior -no-connection".
17594
2f4fcf00
PA
175952020-01-10 Pedro Alves <palves@redhat.com>
17596
17597 * infrun.c: Include "target-connection.h".
17598 (check_multi_target_resumption): New.
17599 (proceed): Call it.
17600 * target-connection.c (make_target_connection_string): Make
17601 extern.
17602 * target-connection.h (make_target_connection_string): Declare.
17603
121b3efd
PA
176042020-01-10 Pedro Alves <palves@redhat.com>
17605
17606 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17607 * inferior.c (uiout_field_connection): New function.
17608 (print_inferior): Add new "connection-id" column.
17609 (add_inferior_command): Show connection number/string of added
17610 inferior.
17611 * process-stratum-target.h
17612 (process_stratum_target::connection_string): New virtual method.
17613 (process_stratum_target::connection_number): New field.
17614 * remote.c (remote_target::connection_string): New override.
17615 * target-connection.c: New file.
17616 * target-connection.h: New file.
17617 * target.c (decref_target): Remove process_stratum targets from
17618 the connection list.
17619 (target_stack::push): Add process_stratum targets to the
17620 connection list.
17621
4f837581
PA
176222020-01-10 Pedro Alves <palves@redhat.com>
17623
17624 Revert:
17625 2016-04-12 Pedro Alves <palves@redhat.com>
17626 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17627 Remove references to name.
17628 * serial.h (struct serial) <name>: Delete.
17629
f4ec508e
PA
176302020-01-10 Pedro Alves <palves@redhat.com>
17631
17632 * gdbarch-selftests.c (register_to_value_test): Remove "target
17633 already pushed" check.
17634
5b6d1e4f
PA
176352020-01-10 Pedro Alves <palves@redhat.com>
17636 John Baldwin <jhb@FreeBSD.org>
17637
17638 * aarch64-linux-nat.c
17639 (aarch64_linux_nat_target::thread_architecture): Adjust.
17640 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17641 (task_command_1): Likewise.
17642 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17643 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17644 (aix_thread_target::store_registers)
17645 (aix_thread_target::thread_alive): Adjust.
17646 * amd64-fbsd-tdep.c: Include "inferior.h".
17647 (amd64fbsd_get_thread_local_address): Pass down target.
17648 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17649 thread's gdbarch instead of target_gdbarch.
17650 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17651 get_last_target_status.
17652 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17653 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17654 inferiors.
17655 (update_inserted_breakpoint_locations): Skip if inferiors with no
17656 execution.
17657 (update_global_location_list): When handling moribund locations,
17658 find representative inferior for location's pspace, and use thread
17659 count of its process_stratum target.
17660 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17661 * bsd-uthread.c (bsd_uthread_target::wait): Use
17662 as_process_stratum_target and adjust thread_change_ptid and
17663 add_thread calls.
17664 (bsd_uthread_target::update_thread_list): Use
17665 as_process_stratum_target and adjust find_thread_ptid,
17666 thread_change_ptid and add_thread calls.
17667 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17668 find_thread_ptid call.
17669 * corelow.c (add_to_thread_list): Adjust add_thread call.
17670 (core_target_open): Adjust add_thread_silent and thread_count
17671 calls.
17672 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17673 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17674 * event-top.c (async_disconnect): Pop targets from all inferiors.
17675 * exec.c (add_target_sections): Push exec target on all inferiors
17676 sharing the program space.
17677 (remove_target_sections): Remove the exec target from all
17678 inferiors sharing the program space.
17679 (exec_on_vfork): New.
17680 * exec.h (exec_on_vfork): Declare.
17681 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17682 Pass it down.
17683 (fbsd_nat_target::update_thread_list): Adjust.
17684 (fbsd_nat_target::resume): Adjust.
17685 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17686 down.
17687 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17688 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17689 get_thread_arch_regcache call.
17690 * fork-child.c (gdb_startup_inferior): Pass target down to
17691 startup_inferior and set_executing.
17692 * gdbthread.h (struct process_stratum_target): Forward declare.
17693 (add_thread, add_thread_silent, add_thread_with_info)
17694 (in_thread_list): Add process_stratum_target parameter.
17695 (find_thread_ptid(inferior*, ptid_t)): New overload.
17696 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17697 parameter.
17698 (all_threads()): Delete overload.
17699 (all_threads, all_non_exited_threads): Add process_stratum_target
17700 parameter.
17701 (all_threads_safe): Use brace initialization.
17702 (thread_count): Add process_stratum_target parameter.
17703 (set_resumed, set_running, set_stop_requested, set_executing)
17704 (threads_are_executing, finish_thread_state): Add
17705 process_stratum_target parameter.
17706 (switch_to_thread): Use is_current_thread.
17707 * i386-fbsd-tdep.c: Include "inferior.h".
17708 (i386fbsd_get_thread_local_address): Pass down target.
17709 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17710 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17711 have_inferiors check.
17712 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17713 (inf_ptrace_target::attach): Adjust.
17714 * infcall.c (run_inferior_call): Adjust.
17715 * infcmd.c (run_command_1): Pass target to
17716 scoped_finish_thread_state.
17717 (proceed_thread_callback): Skip inferiors with no execution.
17718 (continue_command): Rename 'all_threads' local to avoid hiding
17719 'all_threads' function. Adjust get_last_target_status call.
17720 (prepare_one_step): Adjust set_running call.
17721 (signal_command): Use user_visible_resume_target. Compare thread
17722 pointers instead of inferior_ptid.
17723 (info_program_command): Adjust to pass down target.
17724 (attach_command): Mark target's 'thread_executing' flag.
17725 (stop_current_target_threads_ns): New, factored out from ...
17726 (interrupt_target_1): ... this. Switch inferior before making
17727 target calls.
17728 * inferior-iter.h
17729 (struct all_inferiors_iterator, struct all_inferiors_range)
17730 (struct all_inferiors_safe_range)
17731 (struct all_non_exited_inferiors_range): Filter on
17732 process_stratum_target too. Remove explicit.
17733 * inferior.c (inferior::inferior): Push dummy target on target
17734 stack.
17735 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17736 Add process_stratum_target parameter, and pass it down.
17737 (have_live_inferiors): Adjust.
17738 (switch_to_inferior_and_push_target): New.
17739 (add_inferior_command, clone_inferior_command): Handle
17740 "-no-connection" parameter. Use
17741 switch_to_inferior_and_push_target.
17742 (_initialize_inferior): Mention "-no-connection" option in
17743 the help of "add-inferior" and "clone-inferior" commands.
17744 * inferior.h: Include "process-stratum-target.h".
17745 (interrupt_target_1): Use bool.
17746 (struct inferior) <push_target, unpush_target, target_is_pushed,
17747 find_target_beneath, top_target, process_target, target_at,
17748 m_stack>: New.
17749 (discard_all_inferiors): Delete.
17750 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17751 (all_inferiors, all_non_exited_inferiors): Add
17752 process_stratum_target parameter.
17753 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17754 (target_last_proc_target): New global.
17755 (follow_fork_inferior): Push target on new inferior. Pass target
17756 to add_thread_silent. Call exec_on_vfork. Handle target's
17757 reference count.
17758 (follow_fork): Adjust get_last_target_status call. Also consider
17759 target.
17760 (follow_exec): Push target on new inferior.
17761 (struct execution_control_state) <target>: New field.
17762 (user_visible_resume_target): New.
17763 (do_target_resume): Call target_async.
17764 (resume_1): Set target's threads_executing flag. Consider resume
17765 target.
17766 (commit_resume_all_targets): New.
17767 (proceed): Also consider resume target. Skip threads of inferiors
17768 with no execution. Commit resumtion in all targets.
17769 (start_remote): Pass current inferior to wait_for_inferior.
17770 (infrun_thread_stop_requested): Consider target as well. Pass
17771 thread_info pointer to clear_inline_frame_state instead of ptid.
17772 (infrun_thread_thread_exit): Consider target as well.
17773 (random_pending_event_thread): New inferior parameter. Use it.
17774 (do_target_wait): Rename to ...
17775 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17776 down.
17777 (threads_are_resumed_pending_p, do_target_wait): New.
17778 (prepare_for_detach): Adjust calls.
17779 (wait_for_inferior): New inferior parameter. Handle it. Use
17780 do_target_wait_1 instead of do_target_wait.
17781 (fetch_inferior_event): Adjust. Switch to representative
17782 inferior. Pass target down.
17783 (set_last_target_status): Add process_stratum_target parameter.
17784 Save target in global.
17785 (get_last_target_status): Add process_stratum_target parameter and
17786 handle it.
17787 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17788 (context_switch): Check inferior_ptid == null_ptid before calling
17789 inferior_thread().
17790 (get_inferior_stop_soon): Pass down target.
17791 (wait_one): Rename to ...
17792 (poll_one_curr_target): ... this.
17793 (struct wait_one_event): New.
17794 (wait_one): New.
17795 (stop_all_threads): Adjust.
17796 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17797 event's target.
17798 (switch_back_to_stepped_thread): Also consider target.
17799 (print_stop_event): Update.
17800 (normal_stop): Update. Also consider the resume target.
17801 * infrun.h (wait_for_inferior): Remove declaration.
17802 (user_visible_resume_target): New declaration.
17803 (get_last_target_status, set_last_target_status): New
17804 process_stratum_target parameter.
17805 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17806 process_stratum_target parameter, and use it.
17807 (clear_inline_frame_state (thread_info*)): New.
17808 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17809 process_stratum_target parameter.
17810 (clear_inline_frame_state (thread_info*)): Declare.
17811 * linux-fork.c (delete_checkpoint_command): Pass target down to
17812 find_thread_ptid.
17813 (checkpoint_command): Adjust.
17814 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17815 instead of just tweaking inferior_ptid.
17816 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17817 (exit_lwp): Pass target down to find_thread_ptid.
17818 (attach_proc_task_lwp_callback): Pass target down to
17819 add_thread/set_running/set_executing.
17820 (linux_nat_target::attach): Pass target down to
17821 thread_change_ptid.
17822 (get_detach_signal): Pass target down to find_thread_ptid.
17823 Consider last target status's target.
17824 (linux_resume_one_lwp_throw, resume_lwp)
17825 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17826 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17827 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17828 (linux_nat_target::async_wait_fd): New.
17829 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17830 target down.
17831 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17832 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17833 * linux-thread-db.c (struct thread_db_info::process_target): New
17834 field.
17835 (add_thread_db_info): Save target.
17836 (get_thread_db_info): New process_stratum_target parameter. Also
17837 match target.
17838 (delete_thread_db_info): New process_stratum_target parameter.
17839 Also match target.
17840 (thread_from_lwp): Adjust to pass down target.
17841 (thread_db_notice_clone): Pass down target.
17842 (check_thread_db_callback): Pass down target.
17843 (try_thread_db_load_1): Always push the thread_db target.
17844 (try_thread_db_load, record_thread): Pass target down.
17845 (thread_db_target::detach): Pass target down. Always unpush the
17846 thread_db target.
17847 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17848 target down. Always unpush the thread_db target.
17849 (find_new_threads_callback, thread_db_find_new_threads_2)
17850 (thread_db_target::update_thread_list): Pass target down.
17851 (thread_db_target::pid_to_str): Pass current inferior down.
17852 (thread_db_target::get_thread_local_address): Pass target down.
17853 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17854 target down.
17855 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17856 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17857 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17858 (procfs_init_inferior): Rename to ...
17859 (procfs_target::procfs_init_inferior): ... this and adjust.
17860 (procfs_target::create_inferior, procfs_notice_thread)
17861 (procfs_do_thread_registers): Adjust.
17862 * ppc-fbsd-tdep.c: Include "inferior.h".
17863 (ppcfbsd_get_thread_local_address): Pass down target.
17864 * proc-service.c (ps_xfer_memory): Switch current inferior and
17865 program space as well.
17866 (get_ps_regcache): Pass target down.
17867 * process-stratum-target.c
17868 (process_stratum_target::thread_address_space)
17869 (process_stratum_target::thread_architecture): Pass target down.
17870 * process-stratum-target.h
17871 (process_stratum_target::threads_executing): New field.
17872 (as_process_stratum_target): New.
17873 * ravenscar-thread.c
17874 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17875 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17876 down.
17877 * record-btrace.c (record_btrace_target::info_record): Adjust.
17878 (record_btrace_target::record_method)
17879 (record_btrace_target::record_is_replaying)
17880 (record_btrace_target::fetch_registers)
17881 (get_thread_current_frame_id, record_btrace_target::resume)
17882 (record_btrace_target::wait, record_btrace_target::stop): Pass
17883 target down.
17884 * record-full.c (record_full_wait_1): Switch to event thread.
17885 Pass target down.
17886 * regcache.c (regcache::regcache)
17887 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17888 process_stratum_target parameter and handle it.
17889 (current_thread_target): New global.
17890 (get_thread_regcache): Add process_stratum_target parameter and
17891 handle it. Switch inferior before calling target method.
17892 (get_thread_regcache): Pass target down.
17893 (get_thread_regcache_for_ptid): Pass target down.
17894 (registers_changed_ptid): Add process_stratum_target parameter and
17895 handle it.
17896 (registers_changed_thread, registers_changed): Pass target down.
17897 (test_get_thread_arch_aspace_regcache): New.
17898 (current_regcache_test): Define a couple local test_target_ops
17899 instances and use them for testing.
17900 (readwrite_regcache): Pass process_stratum_target parameter.
17901 (cooked_read_test, cooked_write_test): Pass mock_target down.
17902 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17903 (get_thread_arch_aspace_regcache): Add process_stratum_target
17904 parameter.
17905 (regcache::target): New method.
17906 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17907 (regcache::registers_changed_ptid): Add process_stratum_target
17908 parameter.
17909 (regcache::m_target): New field.
17910 (registers_changed_ptid): Add process_stratum_target parameter.
17911 * remote.c (remote_state::supports_vCont_probed): New field.
17912 (remote_target::async_wait_fd): New method.
17913 (remote_unpush_and_throw): Add remote_target parameter.
17914 (get_current_remote_target): Adjust.
17915 (remote_target::remote_add_inferior): Push target.
17916 (remote_target::remote_add_thread)
17917 (remote_target::remote_notice_new_inferior)
17918 (get_remote_thread_info): Pass target down.
17919 (remote_target::update_thread_list): Skip threads of inferiors
17920 bound to other targets. (remote_target::close): Don't discard
17921 inferiors. (remote_target::add_current_inferior_and_thread)
17922 (remote_target::process_initial_stop_replies)
17923 (remote_target::start_remote)
17924 (remote_target::remote_serial_quit_handler): Pass down target.
17925 (remote_target::remote_unpush_target): New remote_target
17926 parameter. Unpush the target from all inferiors.
17927 (remote_target::remote_unpush_and_throw): New remote_target
17928 parameter. Pass it down.
17929 (remote_target::open_1): Check whether the current inferior has
17930 execution instead of checking whether any inferior is live. Pass
17931 target down.
17932 (remote_target::remote_detach_1): Pass down target. Use
17933 remote_unpush_target.
17934 (extended_remote_target::attach): Pass down target.
17935 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17936 (remote_target::append_resumption): Pass down target.
17937 (remote_target::append_pending_thread_resumptions)
17938 (remote_target::remote_resume_with_hc, remote_target::resume)
17939 (remote_target::commit_resume): Pass down target.
17940 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17941 (remote_target::interrupt_query)
17942 (remote_target::remove_new_fork_children)
17943 (remote_target::check_pending_events_prevent_wildcard_vcont)
17944 (remote_target::remote_parse_stop_reply)
17945 (remote_target::process_stop_reply): Pass down target.
17946 (first_remote_resumed_thread): New remote_target parameter. Pass
17947 it down.
17948 (remote_target::wait_as): Pass down target.
17949 (unpush_and_perror): New remote_target parameter. Pass it down.
17950 (remote_target::readchar, remote_target::remote_serial_write)
17951 (remote_target::getpkt_or_notif_sane_1)
17952 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17953 down target.
17954 (remote_target::mourn_inferior): Pass down target. Use
17955 remote_unpush_target.
17956 (remote_target::core_of_thread)
17957 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17958 (remote_target::pid_to_exec_file)
17959 (remote_target::thread_handle_to_thread_info): Pass down target.
17960 (remote_target::async_wait_fd): New.
17961 * riscv-fbsd-tdep.c: Include "inferior.h".
17962 (riscv_fbsd_get_thread_local_address): Pass down target.
17963 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17964 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17965 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17966 Adjust.
17967 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17968 * solib-svr4.c (enable_break): Pass down target.
17969 * spu-multiarch.c (parse_spufs_run): Pass down target.
17970 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17971 * target-delegates.c: Regenerate.
17972 * target.c (g_target_stack): Delete.
17973 (current_top_target): Return the current inferior's top target.
17974 (target_has_execution_1): Refer to the passed-in inferior's top
17975 target.
17976 (target_supports_terminal_ours): Check whether the initial
17977 inferior was already created.
17978 (decref_target): New.
17979 (target_stack::push): Incref/decref the target.
17980 (push_target, push_target, unpush_target): Adjust.
17981 (target_stack::unpush): Defref target.
17982 (target_is_pushed): Return bool. Adjust to refer to the current
17983 inferior's target stack.
17984 (dispose_inferior): Delete, and inline parts ...
17985 (target_preopen): ... here. Only dispose of the current inferior.
17986 (target_detach): Hold strong target reference while detaching.
17987 Pass target down.
17988 (target_thread_name): Add assertion.
17989 (target_resume): Pass down target.
17990 (target_ops::beneath, find_target_at): Adjust to refer to the
17991 current inferior's target stack.
17992 (get_dummy_target): New.
17993 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17994 has a thread running.
17995 (initialize_targets): Rename to ...
17996 (_initialize_target): ... this.
17997 * target.h: Include "gdbsupport/refcounted-object.h".
17998 (struct target_ops): Inherit refcounted_object.
17999 (target_ops::shortname, target_ops::longname): Make const.
18000 (target_ops::async_wait_fd): New method.
18001 (decref_target): Declare.
18002 (struct target_ops_ref_policy): New.
18003 (target_ops_ref): New typedef.
18004 (get_dummy_target): Declare function.
18005 (target_is_pushed): Return bool.
18006 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18007 (all_matching_threads_iterator::all_matching_threads_iterator):
18008 Handle filter target.
18009 * thread-iter.h (struct all_matching_threads_iterator, struct
18010 all_matching_threads_range, class all_non_exited_threads_range):
18011 Filter by target too. Remove explicit.
18012 * thread.c (threads_executing): Delete.
18013 (inferior_thread): Pass down current inferior.
18014 (clear_thread_inferior_resources): Pass down thread pointer
18015 instead of ptid_t.
18016 (add_thread_silent, add_thread_with_info, add_thread): Add
18017 process_stratum_target parameter. Use it for thread and inferior
18018 searches.
18019 (is_current_thread): New.
18020 (thread_info::deletable): Use it.
18021 (find_thread_ptid, thread_count, in_thread_list)
18022 (thread_change_ptid, set_resumed, set_running): New
18023 process_stratum_target parameter. Pass it down.
18024 (set_executing): New process_stratum_target parameter. Pass it
18025 down. Adjust reference to 'threads_executing'.
18026 (threads_are_executing): New process_stratum_target parameter.
18027 Adjust reference to 'threads_executing'.
18028 (set_stop_requested, finish_thread_state): New
18029 process_stratum_target parameter. Pass it down.
18030 (switch_to_thread): Also match inferior.
18031 (switch_to_thread): New process_stratum_target parameter. Pass it
18032 down.
18033 (update_threads_executing): Reimplement.
18034 * top.c (quit_force): Pop targets from all inferior.
18035 (gdb_init): Don't call initialize_targets.
18036 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18037 Declare.
18038 (windows_add_thread, windows_delete_thread): Adjust.
18039 (get_windows_debug_event): Rename to ...
18040 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18041 * tracefile-tfile.c (tfile_target_open): Pass down target.
18042 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18043 Forward declare.
18044 (switch_to_thread): Add process_stratum_target parameter.
18045 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18046 parameter. Use it.
18047 (mi_on_resume): Pass target down.
18048 * nat/fork-inferior.c (startup_inferior): Add
18049 process_stratum_target parameter. Pass it down.
18050 * nat/fork-inferior.h (startup_inferior): Add
18051 process_stratum_target parameter.
18052 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18053
75c6c844
PA
180542020-01-10 Pedro Alves <palves@redhat.com>
18055
18056 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18057 directly. Instead find the first thread in the thread list and
18058 use switch_to_thread.
18059
78f2c40a
PA
180602020-01-10 Pedro Alves <palves@redhat.com>
18061
18062 * remote.c (remote_target::remote_add_inferior): Don't bind a
18063 process to the current inferior if the current inferior is already
18064 bound to a process.
18065
e7af6c70
TBA
180662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18067 Pedro Alves <palves@redhat.com>
18068
18069 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18070 If no process is specified, return null_ptid instead of
18071 inferior_ptid.
18072 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18073 TARGET_WAITKIND_SIGNALLED with no pid.
18074
31ba933e
PA
180752020-01-10 Pedro Alves <palves@redhat.com>
18076
18077 * remote.c (first_remote_resumed_thread): New.
18078 (remote_target::wait_as): Use it as default event_ptid instead of
18079 inferior_ptid.
18080
735fc2ca
PA
180812020-01-10 Pedro Alves <palves@redhat.com>
18082
18083 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18084
c17e02e1
PA
180852020-01-10 Pedro Alves <palves@redhat.com>
18086
18087 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18088 not -1.
18089
ab1ddbcf
PA
180902020-01-10 Pedro Alves <palves@redhat.com>
18091
18092 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18093 ptid to get_last_target_status.
18094 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18095 ptid to get_last_target_status.
18096 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18097 get_last_target_status.
18098 (info_program_command): Don't pass a target_waitstatus to
18099 get_last_target_status.
18100 * infrun.c (init_wait_for_inferior): Use
18101 nullify_last_target_wait_ptid.
18102 (get_last_target_status): Handle nullptr arguments.
18103 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18104 (print_stop_event): Don't pass a ptid to get_last_target_status.
18105 (normal_stop): Don't pass a ptid to get_last_target_status.
18106 * infrun.h (get_last_target_status, set_last_target_status): Move
18107 comments here and update.
18108 (nullify_last_target_wait_ptid): Declare.
18109 * linux-fork.c (fork_load_infrun_state): Remove local extern
18110 declaration of nullify_last_target_wait_ptid.
18111 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18112 to get_last_target_status.
18113
f3f8ece4
PA
181142020-01-10 Pedro Alves <palves@redhat.com>
18115
18116 * gdbthread.h (scoped_restore_current_thread)
18117 <dont_restore, restore, m_dont_restore>: Declare.
18118 * thread.c (thread_alive): Add assertion. Return bool.
18119 (switch_to_thread_if_alive): New.
18120 (prune_threads): Switch inferior/thread.
18121 (print_thread_info_1): Switch thread before calling target methods.
18122 (scoped_restore_current_thread::restore): New, factored out from
18123 ...
18124 (scoped_restore_current_thread::~scoped_restore_current_thread):
18125 ... this.
18126 (scoped_restore_current_thread::scoped_restore_current_thread):
18127 Add assertion.
18128 (thread_apply_all_command, thread_select): Use
18129 switch_to_thread_if_alive.
18130 * infrun.c (proceed, restart_threads, handle_signal_stop)
18131 (switch_back_to_stepped_thread): Switch current thread before
18132 calling target methods.
18133
db2d40f7
PA
181342020-01-10 Pedro Alves <palves@redhat.com>
18135
18136 * inferior.c (switch_to_inferior_no_thread): New function,
18137 factored out from ...
18138 (inferior_command): ... here.
18139 * inferior.h (switch_to_inferior_no_thread): Declare.
18140 * mi/mi-main.c (run_one_inferior): Use
18141 switch_to_inferior_no_thread.
18142
bd420a2d
PA
181432020-01-10 Pedro Alves <palves@redhat.com>
18144
18145 * infcmd.c (kill_command): Remove dead code.
18146
ddf5db90
PA
181472020-01-10 Pedro Alves <palves@redhat.com>
18148
18149 * remote.c (remote_target::mourn_inferior): No longer check
18150 whether the target is running.
18151
5018ce90
PA
181522020-01-10 Pedro Alves <palves@redhat.com>
18153
18154 * corelow.c (core_target::has_execution): Change parameter type to
18155 inferior pointer.
18156 * inferior.c (number_of_live_inferiors): Use
18157 inferior::has_execution instead of target_has_execution_1.
18158 * inferior.h (inferior::has_execution): New.
18159 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18160 inferior::has_execution instead of target_has_execution_1.
18161 * process-stratum-target.c
18162 (process_stratum_target::has_execution): Change parameter type to
18163 inferior pointer. Check the inferior's PID instead of
18164 inferior_ptid.
18165 * process-stratum-target.h
18166 (process_stratum_target::has_execution): Change parameter type to
18167 inferior pointer.
18168 * record-full.c (record_full_core_target::has_execution): Change
18169 parameter type to inferior pointer.
18170 * target.c (target_has_execution_1): Change parameter type to
18171 inferior pointer.
18172 (target_has_execution_current): Adjust.
18173 * target.h (target_ops::has_execution): Change parameter type to
18174 inferior pointer.
18175 (target_has_execution_1): Change parameter type to inferior
18176 pointer. Change return type to bool.
18177 * tracefile.h (tracefile_target::has_execution): Change parameter
18178 type to inferior pointer.
18179
74375d18
PA
181802020-01-10 Pedro Alves <palves@redhat.com>
18181
18182 * exceptions.c (print_flush): Remove current_top_target() check.
18183
acdf84a6
PA
181842020-01-10 Pedro Alves <palves@redhat.com>
18185
18186 * remote.c (show_remote_exec_file): Show the current inferior's
18187 exec-file instead of the command variable's value.
18188
ec506636
PA
181892020-01-10 Pedro Alves <palves@redhat.com>
18190
18191 * record-full.c (record_full_resume_ptid): New global.
18192 (record_full_target::resume): Set it.
18193 (record_full_wait_1): Use record_full_resume_ptid instead of
18194 inferior_ptid.
18195
873657b9
PA
181962020-01-10 Pedro Alves <palves@redhat.com>
18197
18198 * gdbthread.h (scoped_restore_current_thread)
18199 <dont_restore, restore, m_dont_restore>: Declare.
18200 * thread.c (thread_alive): Add assertion. Return bool.
18201 (switch_to_thread_if_alive): New.
18202 (prune_threads): Switch inferior/thread.
18203 (print_thread_info_1): Switch thread before calling target methods.
18204 (scoped_restore_current_thread::restore): New, factored out from
18205 ...
18206 (scoped_restore_current_thread::~scoped_restore_current_thread):
18207 ... this.
18208 (scoped_restore_current_thread::scoped_restore_current_thread):
18209 Add assertion.
18210 (thread_apply_all_command, thread_select): Use
18211 switch_to_thread_if_alive.
18212
7f0ae84c
GB
182132020-01-10 George Barrett <bob@bob131.so>
18214
18215 * stap-probe.c (stap_modify_semaphore): Don't check for null
18216 semaphores.
18217 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18218 for null semaphores.
18219
f5a7c406
AB
182202020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18221
18222 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18223 all source windows, and maintain horizontal scroll status while
18224 doing so.
18225
9ae6bf64
TT
182262020-01-09 Tom Tromey <tom@tromey.com>
18227
18228 PR tui/18932:
18229 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18230 update_source_window, not print_source_lines.
18231
b2efe70c
AB
182322020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18233
18234 * tui/tui.c (tui_enable): Register tui hooks after calling
18235 tui_display_main.
18236
5f23a082
CB
182372020-01-09 Christian Biesinger <cbiesinger@google.com>
18238
18239 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18240
3061113b
SM
182412020-01-08 Simon Marchi <simon.marchi@efficios.com>
18242
18243 * thread.c (print_thread_info_1): Fix indentation.
18244
57d75002
CB
182452020-01-09 Christian Biesinger <cbiesinger@google.com>
18246
18247 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18248 unique_xmalloc_ptr outside the if to always free the demangled name.
18249
6a053cb1
TT
182502020-01-08 Tom Tromey <tromey@adacore.com>
18251
18252 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18253 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18254 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18255 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18256 Remove.
18257 (section_offsets): New typedef.
18258 * symtab.c (fixup_section, get_msymbol_address): Update.
18259 * symmisc.c (dump_msymbols): Update.
18260 * symfile.h (relative_addr_info_to_section_offsets)
18261 (symfile_map_offsets_to_segments): Update.
18262 * symfile.c (build_section_addr_info_from_objfile)
18263 (init_objfile_sect_indices): Update.
18264 (struct place_section_arg): Change type of "offsets".
18265 (place_section): Update.
18266 (relative_addr_info_to_section_offsets): Change type of
18267 "section_offsets". Remove "num_sections" parameter.
18268 (default_symfile_offsets, syms_from_objfile_1)
18269 (set_objfile_default_section_offset): Update.
18270 (reread_symbols): No need to preserve section offsets by hand.
18271 (symfile_map_offsets_to_segments): Change type of "offsets".
18272 * stap-probe.c (relocate_address): Update.
18273 * stabsread.h (process_one_symbol): Update.
18274 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18275 (solib_target_relocate_section_addresses): Update.
18276 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18277 Update.
18278 * solib-frv.c (frv_relocate_main_executable): Update.
18279 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18280 * solib-aix.c (solib_aix_get_section_offsets): Change return
18281 type.
18282 (solib_aix_solib_create_inferior_hook): Update.
18283 * remote.c (remote_target::get_offsets): Update.
18284 * psymtab.c (find_pc_sect_psymtab): Update.
18285 * psympriv.h (struct partial_symbol) <address, text_low,
18286 text_high>: Update.
18287 * objfiles.h (obj_section_offset): Update.
18288 (struct objfile) <section_offsets>: Change type.
18289 <num_sections>: Remove.
18290 (objfile_relocate): Update.
18291 * objfiles.c (entry_point_address_query): Update
18292 (relocate_one_symbol): Change type of "section_offsets".
18293 (objfile_relocate1, objfile_relocate1): Change type of
18294 "new_offsets".
18295 (objfile_rebase1): Update.
18296 * mipsread.c (mipscoff_symfile_read): Update.
18297 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18298 parameter.
18299 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18300 (parse_external, psymtab_to_symtab_1): Update.
18301 * machoread.c (macho_symfile_offsets): Update.
18302 * ia64-tdep.c (ia64_find_unwind_table): Update.
18303 * hppa-tdep.c (read_unwind_info): Update.
18304 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18305 * dwarf2read.c (create_addrmap_from_index)
18306 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18307 (process_psymtab_comp_unit_reader, add_partial_symbol)
18308 (add_partial_subprogram, process_full_comp_unit)
18309 (read_file_scope, read_func_scope, read_lexical_block_scope)
18310 (read_call_site_scope, dwarf2_rnglists_process)
18311 (dwarf2_ranges_process, dwarf2_ranges_read)
18312 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18313 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18314 Update.
18315 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18316 Update.
18317 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18318 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18319 (process_one_symbol): Change type of "section_offsets".
18320 * ctfread.c (get_objfile_text_range): Update.
18321 * coffread.c (coff_symtab_read, enter_linenos)
18322 (process_coff_symbol): Update.
18323 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18324 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18325
456e800a
TT
183262020-01-08 Tom Tromey <tromey@adacore.com>
18327
18328 * dwarf2read.c (parse_macro_definition): Use std::string.
18329 (parse_macro_definition): Likewise.
18330
6dfa2fc2
TT
183312020-01-08 Tom Tromey <tromey@adacore.com>
18332
18333 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18334 (ATTR_ALLOC_CHUNK): Remove.
18335
421d1616
TT
183362020-01-08 Tom Tromey <tromey@adacore.com>
18337
18338 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18339
43816ebc
TT
183402020-01-08 Tom Tromey <tromey@adacore.com>
18341
18342 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18343 (dwarf2_compute_name, open_dwo_file): Likewise.
18344 (process_enumeration_scope): Use std::vector.
18345 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18346 (partial_die_info::fixup, dwarf2_start_subfile)
18347 (guess_full_die_structure_name, dwarf2_name): Likewise.
18348 (determine_prefix): Update.
18349 (guess_full_die_structure_name): Make return type const.
18350 (partial_die_full_name): Return unique_xmalloc_ptr.
18351 (DW_FIELD_ALLOC_CHUNK): Remove.
18352
4212d509
TT
183532020-01-07 Tom Tromey <tromey@adacore.com>
18354
18355 PR build/24937:
18356 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18357
06a6207a
JT
183582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18359
18360 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18361
153d79c4
AB
183622020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18363
18364 * stack.c (print_frame_info): Move disassemble_next_line code
18365 inside source_print block.
18366
66182876
EZ
183672020-01-06 Eli Zaretskii <eliz@gnu.org>
18368
18369 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18370 gdb/signals.h, as we are now using native signal symbols.
18371
cbfa8581
SV
183722020-01-06 Shahab Vahedi <shahab@synopsys.com>
18373
18374 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18375 overflow by an early check of content vs threshold.
aac66a4c 18376 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18377 Likewise.
18378
3f602821
EZ
183792020-01-06 Eli Zaretskii <eliz@gnu.org>
18380
18381 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18382
a08c904d
JT
183832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18384
18385 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18386 export table if no section contains it's RVA.
18387
89a65580
EZ
183882020-01-06 Eli Zaretskii <eliz@gnu.org>
18389
18390 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18391
8b7fcda2
HD
183922020-01-06 Hannes Domani <ssbssa@yahoo.de>
18393
18394 * source.c (print_source_lines_base): Set last_line_listed.
18395
a61b4f69
SV
183962020-01-06 Shahab Vahedi <shahab@synopsys.com>
18397
18398 * tui/tui-disasm.c: Remove trailing spaces.
18399
559e7e50
EZ
184002020-01-06 Eli Zaretskii <eliz@gnu.org>
18401 Pedro Alves <palves@redhat.com>
18402
18403 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18404 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18405 (windows_gdb_signal_to_target): New function, uses the above
18406 enumeration to convert GDB internal signal codes to equivalent
18407 Windows codes.
18408 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18409 * windows-nat.c: Include "gdb_wait.h".
18410 (get_windows_debug_event): Extract the fatal exception from the
18411 exit status and convert to the equivalent Posix signal number.
18412 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18413 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18414 * gdbsupport/gdb_wait.c: New file, implements
18415 windows_status_to_termsig.
18416 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18417 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18418
f2302a34
AB
184192020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18420
18421 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18422 show_layout.
18423
6a5206eb
LM
184242020-01-05 Luis Machado <luis.machado@linaro.org>
18425
18426 * aarch64-linux-nat.c
18427 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18428 and bfd_mach_aarch64.
18429
6ec1d75e
PW
184302020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18431
18432 * ui-file.c (stdio_file::can_emit_style_escape)
18433 (tee_file::can_emit_style_escape): Ensure style is used also on
18434 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18435 to gdb_stdout.
18436 * main.c (set_gdb_data_directory): Use file style to output the
18437 warning that the given pathname is not a directory.
18438 * top.c (show_history_filename, gdb_safe_append_history)
18439 (show_gdb_datadir): Use file style.
18440
44f81a76
HD
184412020-01-03 Hannes Domani <ssbssa@yahoo.de>
18442
18443 * solib-target.c (struct lm_info_target):
18444 Change offsets to be a unique_xmalloc_ptr.
18445 (solib_target_relocate_section_addresses): Update.
18446
25057eb0
HD
184472020-01-03 Hannes Domani <ssbssa@yahoo.de>
18448
18449 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18450
6e2118f5
BE
184512020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18452
18453 * MAINTAINERS (Write After Approval): Add myself.
18454
8133c7dc
LM
184552020-01-02 Luis Machado <luis.machado@linaro.org>
18456
18457 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18458 Cell BE architecture.
18459 * target.h (struct target_ops) <thread_architecture>: Likewise.
18460
48189bec
HD
184612020-01-01 Hannes Domani <ssbssa@yahoo.de>
18462
18463 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18464
ead1063b
HD
184652020-01-01 Hannes Domani <ssbssa@yahoo.de>
18466
18467 * MAINTAINERS (Write After Approval): Add myself.
18468
e5d78223
JB
184692020-01-01 Joel Brobecker <brobecker@adacore.com>
18470
18471 * gdbarch.sh: Update copyright year range of generated files.
18472
b811d2c2
JB
184732020-01-01 Joel Brobecker <brobecker@adacore.com>
18474
18475 Update copyright year range in all GDB files.
18476
5f4def5c
JB
184772020-01-01 Joel Brobecker <brobecker@adacore.com>
18478
18479 * copyright.py: Convert to Python 3.
18480
51fd4002
JB
184812020-01-01 Joel Brobecker <brobecker@adacore.com>
18482
18483 * copyright.py: Adapt after move of gnulib directory from gdb
18484 directory to toplevel directory.
18485
5fb651f2
JB
184862020-01-01 Joel Brobecker <brobecker@adacore.com>
18487
18488 * copyright.py (main): Exit if run from the wrong directory.
18489
5dd8bf88
JB
184902020-01-01 Joel Brobecker <brobecker@adacore.com>
18491
18492 * top.c (print_gdb_version): Change copyright year to 2020.
18493
9f71dacb 184942020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18495
9f71dacb 18496 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18497
9f71dacb 18498For older changes see ChangeLog-2019.
c906108c
SS
18499\f
18500Local Variables:
18501mode: change-log
18502left-margin: 8
18503fill-column: 74
18504version-control: never
57da7796 18505coding: utf-8
c906108c 18506End: