gdb: remove LA_EMIT_CHAR macro
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
76ca72bc
AB
12020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * c-lang.c (language_defn::printchar): Call emitchar, not
4 LA_EMIT_CHAR.
5 * f-lang.h (f_language::printchar): Likewise.
6 * language.h (LA_EMIT_CHAR): Delete macro.
7 * rust-lang.c (rust_language::printchar): Call emitchar, not
8 LA_EMIT_CHAR.
9
c5ee319e
AB
102020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * c-lang.c (c_printchar): Rename to...
13 (language_defn::printchar): ...this.
14 * c-lang.h (c_printchar): Delete declaration.
15 * language.c (language_defn::printchar): Delete this
16 implementation. Is now implemented in c-lang.c.
17
2c75ccb2
AB
182020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
19
20 * dwarf2/read.c (dwarf2_compute_name): Call methods on C++
21 language object instead of calling global functions directly.
22
016382f8
AB
232020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
24
25 * valprint.c (print_char_chars): Delete definition.
26 * valprint.h (print_char_chars): Delete declaration.
27
06f6f78f
ST
282020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
29
30 * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
31 macro.
32 (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
33 second parameter, which is a small sigcode in the legacy case, and a
34 pointer in the siginfo case.
35
05ecfa47
ST
36 * MAINTAINERS (Write After Approval): Add myself.
37
e512699a
SV
382020-12-22 Shahab Vahedi <shahab@synopsys.com>
39
40 * frame.c: Remove trailing white spaces.
41 * frame.h: Likewise.
42
acf10cac
SV
432020-12-22 Shahab Vahedi <shahab@synopsys.com>
44
45 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
46
04c9f85e
AK
472020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
48
49 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
50 * configure.host (host to gdb names): Add arc*-*-linux*.
51 * configure.nat (gdb_host_cpu): Add arc.
52 * arc-linux-nat.c: New.
53
46023bbe
SV
542020-12-22 Shahab Vahedi <shahab@synopsys.com>
55
56 * arc-linux-tdep.c (supply_register): New.
57 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
58 arc_linux_collect_v2_regset): Consider REGNUM.
59
d4af7272
AK
602020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
61
62 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
63 (arc_linux_is_sigtramp): New function.
64 (arc_linux_sigcontext_addr): Likewise.
65 (arc_linux_init_osabi): Use them.
66
b4e3cd04
AK
672020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
68
69 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
70 (arc_sigtramp_frame_this_id): Likewise.
71 (arc_sigtramp_frame_prev_register): Likewise.
72 (arc_sigtramp_frame_sniffer): Likewise.
73 (arc_siftramp_frame_unwind): New global variable.
74 (arc_gdbarch_init): Use sigtramp capabilities.
75 (arc_dump_tdep): Print sigtramp fields.
76 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
77
6c078f0b
TT
782020-12-21 Tom Tromey <tom@tromey.com>
79
80 * expression.h (enum noside): Move earlier.
81
e1ff6226
PW
822020-12-21 Peter Waller <p@pwaller.net>
83
84 * interps.c (interpreter_exec_cmd): Restore streams pointers.
85
98d837f0
MM
862020-12-21 Markus Metzger <markus.t.metzger@intel.com>
87
88 * record.c (require_record_target): Rephrase error message.
89 (info_record_command): Likewise.
90
fa639f55
HD
912020-12-19 Hannes Domani <ssbssa@yahoo.de>
92
93 PR exp/27070
94 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
95
0455b7d3
BE
962020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
97
98 * configure.ac: Move the static libs vs. source-highlight
99 error message to a better place.
100 * configure: Regenerate.
101
e51765f9
HD
1022020-12-18 Hannes Domani <ssbssa@yahoo.de>
103
104 * gdb-gdb.py.in: Fix main_type field name.
105
4aea001f
HD
1062020-12-18 Hannes Domani <ssbssa@yahoo.de>
107
108 * python/py-value.c (valpy_format_string): Implement address keyword.
109
b3f9469b
HD
1102020-12-18 Hannes Domani <ssbssa@yahoo.de>
111
112 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
113
a9e48095
JN
1142020-12-18 Jameson Nash <vtjnash@gmail.com>
115
116 * coffread.c (linetab_offset): Change type to file_ptr.
117 (linetab_size): Likewise.
118 (enter_linenos): Change parameter type to file_ptr.
119 (init_lineno): Likewise.
120 (init_stringtab): Likewise.
121 (coff_symtab_read): Likewise.
122 (coff_symfile_read): Change variable types to file_ptr.
123
844a6538
TT
1242020-12-17 Tom Tromey <tromey@adacore.com>
125
126 * printcmd.c (print_variable_and_value): Don't use n_spaces.
127
32f47895
TT
1282020-12-17 Tom Tromey <tromey@adacore.com>
129
130 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
131 (print_gnat_stuff, print_fixed_point_type_info)
132 (recursive_dump_type): Update.
133 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
134 * c-typeprint.c (c_type_print_base_struct_union)
135 (c_type_print_base_1): Update.
136 * rust-lang.c (rust_internal_print_type): Update.
137 * f-typeprint.c (f_language::f_type_print_base): Update.
138 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
139 * m2-typeprint.c (m2_record_fields): Update.
140 * p-typeprint.c (pascal_type_print_base): Update.
141 * compile/compile-loc2c.c (push, pushf, unary, binary)
142 (do_compile_dwarf_expr_to_c): Update.
143 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
144
c5c41205
TT
1452020-12-16 Tom Tromey <tom@tromey.com>
146
147 * rust-exp.y (rust_lex_tests): Update.
148 * parser-defs.h (parser_state): Add void_p parameter.
149 <void_context_p>: New member.
150 * parse.c (parse_exp_in_context): Update.
151 * language.h (language_defn::post_parser): Remove void_context_p,
152 completing, tracker parameters. Add parser state.
153 * ada-lang.c (ada_language::post_parser): Update.
154
35c1ab60
TT
1552020-12-16 Tom Tromey <tom@tromey.com>
156
157 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
158 (parse_exp_in_context): Change void_context_p to bool.
159 * language.h (struct language_defn) <post_parser>: Change
160 void_context_p to bool.
161 * ada-lang.c (class ada_language) <post_parser>: Update.
162
2f228731
TT
1632020-12-16 Tom Tromey <tom@tromey.com>
164 Tom Tromey <tromey@redhat.com>
165 Tom de Vries <tdevries@suse.de>
166
167 * utils.h (get_chars_per_line): Declare.
168 * utils.c (get_chars_per_line): New function.
169 (fputs_maybe_filtered): Handle '\r'.
170 * ui-out.h (ui_out::progress_meter): New class.
171 (ui_out::progress, ui_out::do_progress_start)
172 (ui_out::do_progress_notify, ui_out::do_progress_end): New
173 methods.
174 * ui-out.c (do_progress_end)
175 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
176 functions.
177 * mi/mi-out.h (mi_ui_out::do_progress_start)
178 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
179 methods.
180 * cli-out.h (struct cli_ui_out) <do_progress_start,
181 do_progress_notify, do_progress_end>: New methods.
182 <enum meter_stat, struct cli_progress_info>: New.
183 <m_meters>: New member.
184 * cli-out.c (cli_ui_out::do_progress_start)
185 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
186 methods.
187
bfbe4b84
LM
1882020-12-16 Luis Machado <luis.machado@linaro.org>
189
190 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
191
19007d95
LM
1922020-12-16 Luis Machado <luis.machado@linaro.org>
193
194 * aarch64-linux-nat.c
195 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
196
a33fc9ae
RK
1972020-12-15 Rae Kim <rae.kim@gmail.com>
198
199 * cli/cli-script.c (do_document_command): Rename from
200 document_command. Handle multi-line input.
201 (multi_line_command_p): Handle document_control.
202 (build_command_line): Likewise.
203 (execute_control_command_1): Likewise.
204 (process_next_line): Likewise.
205 (document_command): Call do_document_command.
206 * cli/cli-script.h (enum command_control_type): Add
207 document_control.
208
efd7ff14
TT
2092020-12-15 Tom Tromey <tom@tromey.com>
210
211 * stap-probe.c (stap_probe::evaluate_argument): Use
212 evaluate_expression.
213 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
214 evaluate_expression.
215 * value.h (evaluate_expression): Add expect_type parameter.
216 * objc-lang.c (print_object_command): Call evaluate_expression.
217 * eval.c (evaluate_expression): Add expect_type parameter.
218
2adab65c
TT
2192020-12-15 Tom Tromey <tom@tromey.com>
220
221 * varobj.c (varobj_create): Use first_opcode.
222 * value.c (init_if_undefined_command): Use first_opcode.
223 * typeprint.c (whatis_exp): Use first_opcode.
224 * tracepoint.c (validate_actionline): Use first_opcode.
225 (encode_actions_1): Use first_opcode.
226 * stack.c (return_command): Use first_opcode.
227 * expression.h (struct expression) <first_opcode>: New method.
228 * eval.c (parse_and_eval_type): Use first_opcode.
229 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
230
1ab8280d
TT
2312020-12-15 Tom Tromey <tom@tromey.com>
232
233 * f-lang.c (evaluate_subexp_f): Update.
234 * expression.h (evaluate_subexp_do_call): Update.
235 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
236 nargs, argvec with array_view.
237 (evaluate_funcall): Update.
238
cf608cc4
TT
2392020-12-15 Tom Tromey <tom@tromey.com>
240
241 * ada-lang.c (num_component_specs): Remove.
242 (assign_aggregate): Update.
243 (aggregate_assign_positional, aggregate_assign_from_choices)
244 (aggregate_assign_others, add_component_interval): Change
245 arguments.
246
0e5ad442
TT
2472020-12-15 Tom Tromey <tromey@adacore.com>
248
249 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
250 command names.
251
a6f3c8a1
TT
2522020-12-14 Tom Tromey <tom@tromey.com>
253
254 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
255 * typeprint.c (whatis_exp): Always use evaluate_type.
256 (maintenance_print_type): Likewise. Simplify.
257
86b44259
TT
2582020-12-14 Tom Tromey <tromey@adacore.com>
259
260 * dictionary.c (language_defn::search_name_hash): Ignore "B".
261 * ada-lang.c (advance_wild_match): Ignore "B".
262 (full_match): Remove.
263 (do_full_match): Rewrite.
264
25a1127b
TT
2652020-12-14 Tom Tromey <tromey@adacore.com>
266
267 * ada-lang.c (get_var_value): Only consider exact matches.
268
e26624c6
TT
2692020-12-14 Tom Tromey <tromey@adacore.com>
270
271 * dwarf2/read.c (rewrite_array_type): New function.
272 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
273
a3bdae4e
TT
2742020-12-14 Tom Tromey <tromey@adacore.com>
275
276 * valarith.c (fixed_point_binop): Call error on division by zero.
277
f5756acc
TT
2782020-12-13 Tom Tromey <tom@tromey.com>
279
280 * gdbtypes.c (safe_parse_type): Make argument const.
281 * value.h (parse_and_eval_type): Make argument const.
282 * eval.c (parse_and_eval_type): Make argument const.
283
ee9812a0
AB
2842020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * NEWS: Mention new commands.
287 * target-dcache.c: Add 'cli/cli-cmds.h' include.
288 (maint_flush_dcache_command): New function.
289 (_initialize_target_dcache): Create new 'maint flush dcache'
290 command.
291
50a5f187
AB
2922020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * NEWS: Mention new commands, and that the old commands are now
295 deprecated.
296 * cli/cli-cmds.c (maintenanceflushlist): Define.
297 * cli/cli-cmds.h (maintenanceflushlist): Declare.
298 * maint.c (_initialize_maint_cmds): Initialise
299 maintenanceflushlist.
300 * regcache.c: Add 'cli/cli-cmds.h' include.
301 (reg_flush_command): Add header comment.
302 (_initialize_regcache): Create new 'maint flush register-cache'
303 command, make 'flushregs' an alias.
304 * symtab.c: Add 'cli/cli-cmds.h' include.
305 (_initialize_symtab): Create new 'maint flush symbol-cache'
306 command, make old command an alias.
307
19c659f1
AB
3082020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
311 result from lookup_cmd_composition_1, use the prefixes from both
312 the command and the alias instead.
313 (lookup_cmd_composition_1): Initial prefix command is the based on
314 the search list being passed in. Simplify the logic for tracking
315 the prefix command. Replace a use of alloca with a local
316 std::string.
317
44c77c32
AB
3182020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
321 of NULL. Don't print message piece by piece, but sentence at a
322 time to allow internationalisation. Some whitespace cleanup.
323
9ef6d4a1
AB
3242020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
325
326 PR cli/15104
327 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
328 deprecated_cmd_warning.
329 (deprecated_cmd_warning): Take extra parameter, call
330 lookup_cmd_composition_1 and pass new parameter through.
331 (lookup_cmd_composition_1): New function, takes implementation of
332 lookup_cmd_composition but with extra parameter.
333 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
334 passing in cmdlist.
335 * command.h (deprecated_cmd_warning): Add extra parameter to
336 declaration.
337 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
338
1536146f
AB
3392020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
342 command.h, add extra parameter, and use this to guard giving a
343 warning.
344 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
345 include argument names in declaration, add new argument.
346 * completer.c (complete_line_internal_1): Remove unneeded
347 brackets, pass extra argument to lookup_cmd_1.
348
94ba44a6
SM
3492020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * infrun.h (debug_infrun): Make a bool.
352 * infrun.c (debug_infrun): Make a bool.
353 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
354 debug infrun".
355
74b773fc
SM
3562020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
357
358 * displaced-stepping.h (displaced_debug_printf): Use
359 debug_prefixed_printf_cond.
360 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
361 (dwarf_read_debug_printf_v): Likewise.
362 * infrun.h (infrun_debug_printf): Likewise.
363 * linux-nat.c (linux_nat_debug_printf): Likewise.
364
02c72701
TT
3652020-12-11 Tom Tromey <tom@tromey.com>
366
367 * p-exp.y (intvar): Remove global.
368 (DOLLAR_VARIABLE): Change type.
369 (start): Update.
370 (exp): Call write_dollar_variable here...
371 (yylex): ... not here.
372 * m2-exp.y (DOLLAR_VARIABLE): Change type.
373 (variable): Call write_dollar_variable here...
374 (yylex): ... not here.
375 * f-exp.y (DOLLAR_VARIABLE): Change type.
376 (exp): Call write_dollar_variable here...
377 (yylex): ... not here.
378
07d9937a
TT
3792020-12-11 Tom Tromey <tom@tromey.com>
380
381 * varobj.c (varobj_create): Update.
382 (install_variable): Return void.
383
1345dee2
TT
3842020-12-11 Tom Tromey <tom@tromey.com>
385
386 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
387
446d2c03
TT
3882020-12-11 Tom Tromey <tom@tromey.com>
389
390 * varobj.c (varobj_clear_saved_item): Remove.
391 (update_dynamic_varobj_children): Update.
392 (varobj::~varobj): Don't call varobj_clear_saved_item.
393
11106495
TT
3942020-12-11 Tom Tromey <tom@tromey.com>
395
396 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
397 (update_dynamic_varobj_children, create_child)
398 (create_child_with_value): Update.
399 * varobj-iter.h (struct varobj_item) <value>: Now a
400 value_ref_ptr.
401 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
402
24fd95b4
TT
4032020-12-11 Tom Tromey <tom@tromey.com>
404
405 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
406 (varobj_get_iterator): Return unique_ptr.
407 (update_dynamic_varobj_children, install_visualizer)
408 (varobj::~varobj): Update.
409 * python/python-internal.h (py_varobj_get_iterator): Return
410 unique_ptr.
411 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
412
74462664
TT
4132020-12-11 Tom Tromey <tom@tromey.com>
414
415 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
416 (varobj_clear_saved_item, update_dynamic_varobj_children):
417 Update.
418
60ee72f6
TT
4192020-12-11 Tom Tromey <tom@tromey.com>
420
421 * varobj.c (update_dynamic_varobj_children): Update.
422 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
423 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
424 type.
425 (py_varobj_iter::next): Likewise.
426
54746ce3
TT
4272020-12-11 Tom Tromey <tom@tromey.com>
428
429 * varobj.c (update_dynamic_varobj_children, install_visualizer)
430 (varobj::~varobj): Update.
431 * varobj-iter.h (struct varobj_iter): Change to interface class.
432 (struct varobj_iter_ops): Remove.
433 (varobj_iter_next, varobj_iter_delete): Remove.
434 * python/py-varobj.c (struct py_varobj_iter): Derive from
435 varobj_iter. Add constructor, destructor. Rename members.
436 (py_varobj_iter::~py_varobj_iter): Rename from
437 py_varobj_iter_dtor.
438 (py_varobj_iter::next): Rename from py_varobj_iter_next.
439 (py_varobj_iter_ops): Remove.
440 (py_varobj_iter): Rename from py_varobj_iter_ctor.
441 (py_varobj_iter_new): Remove.
442 (py_varobj_get_iterator): Update.
443
d8f168dd
TT
4442020-12-11 Tom Tromey <tom@tromey.com>
445
446 * varobj.h (all_root_varobjs): Take a function_view.
447 * varobj.c (all_root_varobjs): Take a function_view.
448 (varobj_invalidate_iter): Remove unused parameter.
449 (varobj_invalidate): Update.
450 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
451 (mi_cmd_var_update_iter): Change parameters.
452
76deb5d9
TT
4532020-12-11 Tom Tromey <tom@tromey.com>
454
455 * varobj.c (struct varobj_root) <next>: Remove.
456 (struct vlist): Remove.
457 (rootlist): Now a std::list.
458 (install_variable, uninstall_variable, all_root_varobjs): Update.
459
2c1413a9
TT
4602020-12-11 Tom Tromey <tom@tromey.com>
461
462 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
463 (varobj_table): Now htab_t.
464 (varobj_get_handle, install_variable, uninstall_variable):
465 Update.
466 (hash_varobj, eq_varobj_and_string): New functions.
467 (hash_varobj): Update.
468
b6433ede
TT
4692020-12-11 Tom Tromey <tom@tromey.com>
470
471 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
472 * ada-lang.c (check_status_exception): Update.
473 * breakpoint.c (free_bp_location): Remove.
474 (decref_bp_location): Use bp_location_ref_policy.
475 (bpstats::bpstats): Don't call incref_bp_location.
476 (bpstats::~bpstats): Remove.
477 (bpstats::bpstats): Update.
478 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
479 (bp_location::bp_location): Update.
480 (incref_bp_location): Remove.
481 (bkpt_print_it): Update.
482 * breakpoint.h (class bp_location): Derive from
483 refcounted_object.
484 (struct bpstats): Remove destructor.
485 <bp_location_at>: Now a bp_location_ref_ptr.
486 <refc>: Remove.
487 (bp_location_ref_ptr): New typedef.
488 (struct bp_location_ref_policy): New.
489
bfcb9db8
TT
4902020-12-11 Tom Tromey <tom@tromey.com>
491
492 * thread.c (class scoped_inc_dec_ref): Remove.
493 (tp_array_compar_ascending, tp_array_compar_descending): Change
494 parameter types.
495 (thread_apply_all_command): Use thread_info_ref.
496
d634cd0b
TT
4972020-12-11 Tom Tromey <tom@tromey.com>
498
499 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
500 (stop_context::stop_context): Update.
501 (stop_context::~stop_context): Remove.
502
51107df5
TT
5032020-12-11 Tom Tromey <tom@tromey.com>
504
505 * inferior.c (current_inferior_): Change type.
506 (current_inferior, set_current_inferior, initialize_inferiors):
507 Update.
508
15f4dddd
TT
5092020-12-11 Tom Tromey <tom@tromey.com>
510
511 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
512 Change type.
513
a9f14fa5
TT
5142020-12-11 Tom Tromey <tromey@adacore.com>
515
516 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
517 field.
518 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
519 (read_atcb): Use cpu_id_offset.
520
2ccee230
KB
5212020-12-10 Kevin Buettner <kevinb@redhat.com>
522
523 * ada-lang.c (ada_fold_name): Fix off-by-one error.
524
ae1f4d2d
LM
5252020-12-10 Luis Machado <luis.machado@linaro.org>
526
527 * breakpoint.c (should_be_inserted): Don't output newline.
528
6afcd2d4
LM
5292020-12-10 Luis Machado <luis.machado@linaro.org>
530
531 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
532 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
533 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
534 * arch/aarch64.h: ... here.
535 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
536 (aarch64_maybe_swab128): New function.
537 (aarch64_sve_regs_copy_to_reg_buf)
538 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
539 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
540 the data field.
541 (TF_REG_VALUE_BYTES): New enum value.
542 (trad_frame_value_bytes_p): New function.
543 (trad_frame_set_value_bytes): New function.
544 (trad_frame_set_reg_value_bytes): New function.
545 (trad_frame_get_prev_register): Handle register values saved as bytes.
546 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
547 (struct trad_frame_saved_reg) <data>: New field.
548 (trad_frame_set_value_bytes): New prototype.
549 (trad_frame_value_bytes_p): New prototype.
550
15cc148f
MS
5512020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
552
553 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
554 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
555 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
556
12932e2c
TT
5572020-12-09 Tom Tromey <tromey@adacore.com>
558
559 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
560
5cde1d82
TT
5612020-12-09 Tom Tromey <tromey@adacore.com>
562
563 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
564 and "denominator" to gdb_mpz. Handle block forms.
565 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
566 "denominator" to gdb_mpz.
567 (finish_fixed_point_type): Update.
568 (has_zero_over_zero_small_attribute): Update.
569
d9c3a9c0
TT
5702020-12-09 Tom Tromey <tromey@adacore.com>
571
572 * expprint.c (op_name): Update.
573 * expression.h (enum exp_opcode): Update.
574 * std-operator.def: Add more opcodes.
575 * ada-operator.def, fortran-operator.def: Remove, moving contents
576 into std-operator.def.
577
6ad368b8
SM
5782020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
581 Return {} instead of false.
582 (get_discrete_bounds): Compute high bound only if low bound is
583 valid.
584
5b56203a
SM
5852020-12-09 Simon Marchi <simon.marchi@efficios.com>
586
587 PR 26875, PR 26901
588 * gdbtypes.c (get_discrete_low_bound): Make non-static.
589 (get_discrete_high_bound): Make non-static.
590 * gdbtypes.h (get_discrete_low_bound): New declaration.
591 (get_discrete_high_bound): New declaration.
592 * valarith.c (value_subscript): Only fetch high bound if
593 necessary.
594
14c09924
SM
5952020-12-09 Simon Marchi <simon.marchi@efficios.com>
596
597 * gdbtypes.c (get_discrete_bounds): Implement with
598 get_discrete_low_bound and get_discrete_high_bound.
599 (get_discrete_low_bound): New.
600 (get_discrete_high_bound): New.
601
1f8d2881
SM
6022020-12-09 Simon Marchi <simon.marchi@efficios.com>
603
604 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
605 callers.
606 * gdbtypes.c (get_discrete_bounds): Return bool.
607
6244c119
SM
6082020-12-09 Simon Marchi <simon.marchi@efficios.com>
609
610 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
611 (ada_value_slice): Adjust.
612 (pos_atr): Adjust.
613 * gdbtypes.c (get_discrete_bounds): Adjust.
614 (discrete_position): Return optional.
615 * gdbtypes.h (discrete_position): Return optional.
616
a4915e8d
TT
6172020-12-07 Tom Tromey <tromey@adacore.com>
618
619 * maint.c (_initialize_maint_cmds): Use expression command
620 completer for "maint print type".
621
1f58f6c2
TBA
6222020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
623
624 * completer.c (complete_explicit_location): Also add keywords
625 that start with '-' to the completion list.
626
5759831a
TBA
6272020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
628
629 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
630 keyword may be followed by any keyword.
631 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
632 'toklen' in the case for "-force-condition".
633
21e051b3
TBA
6342020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
635
636 * main.c (catch_command_errors): Add a flag parameter; invoke
637 `bpstat_do_actions` if the flag is set.
638 (execute_cmdargs): Update a call to `catch_command_errors`.
639
f51f9f1d
TV
6402020-12-07 Tom de Vries <tdevries@suse.de>
641
642 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
643
00158a68
TT
6442020-12-06 Tom Tromey <tom@tromey.com>
645
646 PR ada/26999
647 * ada-lang.c (replace_operator_with_call): Rewrite.
648
296cfb88
GF
6492020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
650
651 PR breakpoints/27009
652 * s390-tdep.h (op_bc): Correct BC opcode value.
653
63c457b9
JB
6542020-12-06 Joel Brobecker <brobecker@adacore.com>
655
656 * gmp-utils.h (gdb_mpz::safe_export): New private method.
657 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
658 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
659 (gdb_mpz::safe_export): New method.
660 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
661 Update function description.
662 (check_as_integer_raises_out_of_range_error): New function.
663 (gdb_mpz_as_integer_out_of_range): New function.
664 (_initialize_gmp_utils_selftests): Register
665 gdb_mpz_as_integer_out_of_range as a selftest.
666
3c7ba803
JB
6672020-12-05 Joel Brobecker <brobecker@adacore.com>
668
669 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
670 TARGET_CHAR_BIT.
671 (gdb_mpz::write): Likewise.
672
372ff58f
SM
6732020-12-04 Simon Marchi <simon.marchi@efficios.com>
674
675 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
676 number of displaced step buffers.
677
480af54c
SM
6782020-12-04 Simon Marchi <simon.marchi@efficios.com>
679
680 * displaced-stepping.h (struct displaced_step_buffer): Rename
681 to...
682 (struct displaced_step_buffers): ... this.
683 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
684 <struct displaced_step_buffer>: New inner class.
685 <m_buffers>: New.
686 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
687 to...
688 (displaced_step_buffers::prepare): ... this, adjust for multiple
689 buffers.
690 (displaced_step_buffer::finish): Rename to...
691 (displaced_step_buffers::finish): ... this, adjust for multiple
692 buffers.
693 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
694 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
695 adjust for multiple buffers.
696 (displaced_step_buffer::restore_in_ptid): Rename to...
697 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
698 multiple buffers.
699 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
700 for num_disp_step_buffers.
701 * linux-tdep.c (struct linux_gdbarch_data)
702 <num_disp_step_buffers>: New field.
703 (struct linux_info) <disp_step_buf>: Rename to...
704 <disp_step_bufs>: ... this, change type to
705 displaced_step_buffers.
706 (linux_displaced_step_prepare): Use
707 linux_gdbarch_data::num_disp_step_buffers to create that number
708 of buffers.
709 (linux_displaced_step_finish): Adjust.
710 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
711 (linux_displaced_step_restore_all_in_ptid): Adjust.
712 (linux_init_abi): Change supports_displaced_step parameter for
713 num_disp_step_buffers, save it in linux_gdbarch_data.
714 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
715 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
716 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
717 supports_displaced_step parameter for num_disp_step_buffers.
718 (amd64_linux_init_abi): Adjust.
719 (amd64_x32_linux_init_abi): Adjust.
720 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
721 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
722 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
723 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
724 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
725 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
726 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
727 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
728 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
729 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
730 * m68k-linux-tdep.c (m68k_linux_init_abi):
731 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
732 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
733 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
734 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
735 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
736 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
737 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
738 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
739 Change type to displaced_step_buffers.
740 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
741 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
742 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
743 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
744 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
745 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
746 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
747
d9655058
SM
7482020-12-04 Simon Marchi <simon.marchi@efficios.com>
749
750 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
751 obkstack.
752 (_initialize_linux_tdep): Register pre-init gdb data instead of
753 post-init.
754
187b041e
SM
7552020-12-04 Simon Marchi <simon.marchi@efficios.com>
756
757 * displaced-stepping.h (struct
758 displaced_step_copy_insn_closure): Adjust comments.
759 (struct displaced_step_inferior_state) <step_thread,
760 step_gdbarch, step_closure, step_original, step_copy,
761 step_saved_copy>: Remove fields.
762 (struct displaced_step_thread_state): New.
763 (struct displaced_step_buffer): New.
764 * displaced-stepping.c (displaced_step_buffer::prepare): New.
765 (write_memory_ptid): Move from infrun.c.
766 (displaced_step_instruction_executed_successfully): New,
767 factored out of displaced_step_finish.
768 (displaced_step_buffer::finish): New.
769 (displaced_step_buffer::copy_insn_closure_by_addr): New.
770 (displaced_step_buffer::restore_in_ptid): New.
771 * gdbarch.sh (displaced_step_location): Remove.
772 (displaced_step_prepare, displaced_step_finish,
773 displaced_step_copy_insn_closure_by_addr,
774 displaced_step_restore_all_in_ptid): New.
775 * gdbarch.c: Re-generate.
776 * gdbarch.h: Re-generate.
777 * gdbthread.h (class thread_info) <displaced_step_state>: New
778 field.
779 (thread_step_over_chain_remove): New declaration.
780 (thread_step_over_chain_next): New declaration.
781 (thread_step_over_chain_length): New declaration.
782 * thread.c (thread_step_over_chain_remove): Make non-static.
783 (thread_step_over_chain_next): New.
784 (global_thread_step_over_chain_next): Use
785 thread_step_over_chain_next.
786 (thread_step_over_chain_length): New.
787 (global_thread_step_over_chain_enqueue): Add debug print.
788 (global_thread_step_over_chain_remove): Add debug print.
789 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
790 Remove.
791 * infrun.c (get_displaced_stepping_state): New.
792 (displaced_step_in_progress_any_inferior): Remove.
793 (displaced_step_in_progress_thread): Adjust.
794 (displaced_step_in_progress): Adjust.
795 (displaced_step_in_progress_any_thread): New.
796 (get_displaced_step_copy_insn_closure_by_addr): Remove.
797 (gdbarch_supports_displaced_stepping): Use
798 gdbarch_displaced_step_prepare_p.
799 (displaced_step_reset): Change parameter from inferior to
800 thread.
801 (displaced_step_prepare_throw): Implement using
802 gdbarch_displaced_step_prepare.
803 (write_memory_ptid): Move to displaced-step.c.
804 (displaced_step_restore): Remove.
805 (displaced_step_finish): Implement using
806 gdbarch_displaced_step_finish.
807 (start_step_over): Allow starting more than one displaced step.
808 (prepare_for_detach): Handle possibly multiple threads doing
809 displaced steps.
810 (handle_inferior_event): Handle possibility that fork event
811 happens while another thread displaced steps.
812 * linux-tdep.h (linux_displaced_step_prepare): New.
813 (linux_displaced_step_finish): New.
814 (linux_displaced_step_copy_insn_closure_by_addr): New.
815 (linux_displaced_step_restore_all_in_ptid): New.
816 (linux_init_abi): Add supports_displaced_step parameter.
817 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
818 (linux_displaced_step_prepare): New.
819 (linux_displaced_step_finish): New.
820 (linux_displaced_step_copy_insn_closure_by_addr): New.
821 (linux_displaced_step_restore_all_in_ptid): New.
822 (linux_init_abi): Add supports_displaced_step parameter,
823 register displaced step methods if true.
824 (_initialize_linux_tdep): Register inferior_execd observer.
825 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
826 supports_displaced_step parameter, adjust call to
827 linux_init_abi. Remove call to
828 set_gdbarch_displaced_step_location.
829 (amd64_linux_init_abi): Adjust call to
830 amd64_linux_init_abi_common.
831 (amd64_x32_linux_init_abi): Likewise.
832 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
833 linux_init_abi. Remove call to
834 set_gdbarch_displaced_step_location.
835 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
836 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
837 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
838 linux_init_abi.
839 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
840 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
841 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
842 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
843 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
844 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
845 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
846 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
847 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
848 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
849 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
850 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
851 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
852 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
853 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
854 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
855 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
856 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
857 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
858 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
859 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
860 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
861 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
862 linux_init_abi. Remove call to
863 set_gdbarch_displaced_step_location.
864 * arm-tdep.c (arm_pc_is_thumb): Call
865 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
866 get_displaced_step_copy_insn_closure_by_addr.
867 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
868 clear gdbarch methods.
869 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
870 (get_ppc_per_inferior): New function.
871 (ppc_displaced_step_prepare): New function.
872 (ppc_displaced_step_finish): New function.
873 (ppc_displaced_step_restore_all_in_ptid): New function.
874 (rs6000_gdbarch_init): Register new gdbarch methods.
875 * s390-tdep.c (s390_gdbarch_init): Don't call
876 set_gdbarch_displaced_step_location, set new gdbarch methods.
877
c7acb87b
SM
8782020-12-04 Simon Marchi <simon.marchi@efficios.com>
879
880 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
881 * aarch64-tdep.h: Include displaced-stepping.h.
882 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
883 Move here.
884 (displaced_step_copy_insn_closure_up): Move here.
885 (struct buf_displaced_step_copy_insn_closure): Move here.
886 (struct displaced_step_inferior_state): Move here.
887 (debug_displaced): Move here.
888 (displaced_debug_printf_1): Move here.
889 (displaced_debug_printf): Move here.
890 * displaced-stepping.c: New file.
891 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
892 * gdbarch.h: Re-generate.
893 * inferior.h: Include displaced-stepping.h.
894 * infrun.h (debug_displaced): Move to displaced-stepping.h.
895 (displaced_debug_printf_1): Likewise.
896 (displaced_debug_printf): Likewise.
897 (struct displaced_step_copy_insn_closure): Likewise.
898 (displaced_step_copy_insn_closure_up): Likewise.
899 (struct buf_displaced_step_copy_insn_closure): Likewise.
900 (struct displaced_step_inferior_state): Likewise.
901 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
902 (displaced_debug_printf_1): Likewise.
903 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
904 Likewise.
905 (_initialize_infrun): Don't register "set/show debug displaced".
906
94b24c74
SM
9072020-12-04 Simon Marchi <simon.marchi@efficios.com>
908
909 * linux-tdep.c (get_linux_inferior_data): Add inferior
910 parameter.
911 (linux_vsyscall_range): Pass current inferior.
912
bab37966
SM
9132020-12-04 Simon Marchi <simon.marchi@efficios.com>
914
915 * infrun.c (displaced_step_prepare_throw): Change return type to
916 displaced_step_prepare_status.
917 (displaced_step_prepare): Likewise.
918 (displaced_step_finish): Change return type to
919 displaced_step_finish_status.
920 (resume_1): Adjust.
921 (stop_all_threads): Adjust.
922 * displaced-stepping.h: New file.
923
7def77a1
SM
9242020-12-04 Simon Marchi <simon.marchi@efficios.com>
925
926 * infrun.c (displaced_step_fixup): Rename to...
927 (displaced_step_finish): ... this, update all callers.
928
1152d984
SM
9292020-12-04 Simon Marchi <simon.marchi@efficios.com>
930
931 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
932 (get_displaced_step_copy_insn_closure_by_addr): ... this.
933 Update all users.
934 (displaced_step_closure): Rename to...
935 (displaced_step_copy_insn_closure): ... this. Update all users.
936 (displaced_step_closure_up): Rename to...
937 (displaced_step_copy_insn_closure_up). ... this. Update all
938 users.
939 (buf_displaced_step_closure): Rename to...
940 (buf_displaced_step_copy_insn_closure): ... this. Update all
941 users.
942 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
943 (get_displaced_step_copy_insn_closure_by_addr): ... this.
944 Update all users.
945 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
946 (aarch64_displaced_step_copy_insn_closure): ... this. Update
947 all users.
948 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
949 (amd64_displaced_step_copy_insn_closure): ... this. Update all
950 users.
951 * arm-tdep.h (arm_displaced_step_closure): Rename to...
952 (arm_displaced_step_copy_insn_closure): ... this. Update all
953 users.
954 * i386-tdep.h (i386_displaced_step_closure): Rename to...
955 (i386_displaced_step_copy_insn_closure): ... this. Update all
956 users.
957 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
958 (ppc_displaced_step_copy_insn_closure): ... this. Update all
959 users.
960 * s390-tdep.c (s390_displaced_step_closure): Rename to...
961 (s390_displaced_step_copy_insn_closure): ... this. Update all
962 users.
963 * gdbarch.h: Re-generate.
964 * gdbarch.c: Re-generate.
965
28d5518b
SM
9662020-12-04 Simon Marchi <simon.marchi@efficios.com>
967
968 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
969 (global_thread_step_over_chain_enqueue): ... this. Update all
970 users.
971 (thread_step_over_chain_remove): Rename to...
972 (global_thread_step_over_chain_remove): ... this. Update all
973 users.
974 (thread_step_over_chain_next): Rename to...
975 (global_thread_step_over_chain_next): ... this. Update all
976 users.
977 * infrun.h (step_over_queue_head): Rename to...
978 (global_thread_step_over_chain_head): ... this. Update all
979 users.
980 * infrun.c (step_over_queue_head): Rename to...
981 (global_thread_step_over_chain_head): ... this. Update all
982 users.
983 * thread.c (step_over_chain_remove): Rename to...
984 (thread_step_over_chain_remove): ... this. Update all users.
985 (thread_step_over_chain_next): Rename to...
986 (global_thread_step_over_chain_next): ... this. Update all
987 users.
988 (thread_step_over_chain_enqueue): Rename to...
989 (global_thread_step_over_chain_enqueue): ... this. Update all
990 users.
991 (thread_step_over_chain_remove): Rename to...
992 (global_thread_step_over_chain_remove): ... this. Update all
993 users.
994
f5f01699
SM
9952020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
996
997 * infrun.c (get_displaced_stepping_state): Remove, change
998 callers to access the field directly.
999
c0aba012
SM
10002020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * infrun.c (handle_inferior_event): Restore displaced step
1003 buffer bytes in child process when handling fork, even if fork
1004 happened in another thread than the displaced-stepping one.
1005
3b7a962d
SM
10062020-12-04 Simon Marchi <simon.marchi@efficios.com>
1007
1008 * infrun.c (infrun_inferior_execd): New function.
1009 (_initialize_infrun): Attach inferior_execd observer.
1010
42a4fec5
SM
10112020-12-04 Simon Marchi <simon.marchi@efficios.com>
1012
1013 * observable.h (inferior_execd): Declare new observable.
1014 * observable.c (inferior_execd): Declare new observable.
1015 * infrun.c (follow_exec): Notify inferior_execd observer.
1016 * jit.c (jit_inferior_created_hook): Make static.
1017 (_initialize_jit): Register inferior_execd observer.
1018 * jit.h (jit_inferior_created_hook): Remove declaration.
1019 * solib.c (_initialize_solib): Register inferior_execd observer.
1020
aafdfb4e
TV
10212020-12-04 Tom de Vries <tdevries@suse.de>
1022
1023 PR gdb/27003
1024 * completer.c (completion_tracker::build_completion_result): Don't
1025 access match_list[0][-1].
1026
f99b5177
TT
10272020-12-04 Tom Tromey <tromey@adacore.com>
1028
1029 * linespec.c (struct linespec_token): Rename; remove typedef.
1030 * guile/scm-block.c (struct block_smob): Remove typedef.
1031 (struct block_syms_progress_smob): Likewise.
1032 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
1033 * guile/scm-symtab.c (symtab_smob): Remove typedef.
1034 (struct sal_smob): Remove typedef.
1035 * guile/scm-param.c (struct param_smob): Remove typedef.
1036 * guile/scm-progspace.c (struct pspace_smob): Rename.
1037 * guile/scm-objfile.c (struct objfile_smob): Rename.
1038 * guile/scm-iterator.c (struct iterator_smob): Rename.
1039 * guile/scm-frame.c (struct frame_smob): Rename.
1040 * guile/scm-arch.c (struct arch_smob): Rename.
1041 * guile/scm-type.c (struct field_smob): Remove typedef.
1042 (struct type_smob): Rename.
1043 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1044 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1045 * guile/scm-value.c (struct value_smob): Remove typedef.
1046 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1047 * guile/guile-internal.h (struct scheme_variable)
1048 (struct scheme_function, struct scheme_integer_constant)
1049 (struct gdb_smob, struct chained_gdb_smob)
1050 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1051 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1052 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1053 (struct pretty_printer_worker_smob): Remove typedef.
1054 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1055 * python/py-block.c (struct block_object): Remove typedef.
1056 (block_syms_iterator_object): Update.
1057 (set_block): Update.
1058 (block_syms_iterator_object): Remove typedef.
1059 * python/py-inferior.c (struct membuf_object): Remove typedef.
1060 * python/py-symtab.c (struct symtab_object): Remove typedef.
1061 (set_symtab): Update.
1062 (sal_object): Remove typedef.
1063 (set_sal): Update.
1064 * python/py-frame.c (frame_object): Remove typedef.
1065 * python/py-record-btrace.c (struct btpy_list_object): Remove
1066 typedef.
1067 * python/py-arch.c (struct arch_object): Remove typedef.
1068 * python/py-linetable.c (struct linetable_entry_object)
1069 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1070 * python/py-events.h (eventregistry_object): Remove typedef.
1071 (struct events_object): Remove typedef.
1072 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1073 typedef.
1074 (thread_object): Remove typedef.
1075 * python/py-progspace.c (pspace_object): Remove typedef.
1076 * python/py-value.c (struct value_object): Remove typedef.
1077 * python/py-record.h (recpy_record_object): Remove typedef.
1078 (struct recpy_element_object): Remove typedef.
1079 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1080 * python/py-objfile.c (objfile_object): Remove typedef.
1081 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1082 * python/py-type.c (type_object): Remove typedef.
1083 (typy_iterator_object): Update.
1084 (set_type): Update.
1085 (field_object): Remove typedef.
1086 (typy_iterator_object): Remove typedef.
1087 * python/py-registers.c (register_descriptor_iterator_object):
1088 Remove typedef.
1089 (struct register_descriptor_object)
1090 (struct reggroup_iterator_object, struct reggroup_object): Remove
1091 typedef.
1092 * python/py-record.c (recpy_gap_object): Remove typedef.
1093 * python/py-symbol.c (symbol_object): Remove typedef.
1094 (set_symbol): Update.
1095 * python/py-event.h (event_object): Remove typedef.
1096 * python/py-param.c (parmpy_object): Remove typedef.
1097 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1098 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1099 (unwind_info_object, struct cached_frame_info): Likewise.
1100
91f87213
TT
11012020-12-04 Tom Tromey <tromey@adacore.com>
1102
1103 * value.c (value_internal_function_name): Make return type const.
1104 * value.h (value_internal_function_name): Make return type const.
1105
5382f971
LM
11062020-12-04 Luis Machado <luis.machado@linaro.org>
1107
1108 * aarch64-tdep.c (submask, bit, bits): Remove.
1109 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1110 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1111 (aarch64_decode_cb, aarch64_decode_tb)
1112 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1113 immediate.
1114 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1115
b6a6aa07
TV
11162020-12-04 Tom de Vries <tdevries@suse.de>
1117
1118 PR tdep/27007
1119 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1120
0bc2e38d
SM
11212020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1122
1123 PR gdb/26876
1124 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1125 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1126
25428040
AB
11272020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1128
1129 * arch/riscv.c: Include 'rv32e-xregs.c'.
1130 (riscv_create_target_description): Update to handle rv32e.
1131 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1132 member variable.
1133 <operator==>: Update to account for new field.
1134 <hash>: Likewise.
1135 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1136 * features/riscv/rv32e-xregs.c: Generated.
1137 * features/riscv/rv32e-xregs.xml: New file.
1138 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1139 file.
1140 (riscv_debug_infcall): Likewise.
1141 (riscv_debug_unwinder): Likewise.
1142 (riscv_debug_gdbarch): Likewise.
1143 (enum riscv_register_required_status): Delete.
1144 (struct riscv_register_feature): Add constructor, delete default
1145 constructor, copy, and assign constructors.
1146 (struct riscv_register_feature::register_info) <required>: Delete.
1147 <check>: Update comment and arguments.
1148 (struct riscv_register_feature) <name>: Change to member function.
1149 <prefer_first_name>: Delete.
1150 <tdesc_feature>: New member function.
1151 <registers>: Rename to...
1152 <m_registers>: ...this.
1153 <m_feature_name>: New member variable.
1154 (riscv_register_feature::register_info::check): Update arguments.
1155 (riscv_xreg_feature): Rewrite as class, create a single static
1156 instance of the class.
1157 (riscv_freg_feature): Likewise.
1158 (riscv_virtual_feature): Likewise.
1159 (riscv_csr_feature): Likewise.
1160 (riscv_create_csr_aliases): Has become a member function inside
1161 riscv_csr_feature class.
1162 (riscv_abi_embedded): New function definition.
1163 (riscv_register_name): Adjust to use new feature objects.
1164 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1165 and adjust available argument registers.
1166 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1167 (riscv_check_tdesc_feature): Delete.
1168 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1169 (riscv_gdbarch_init): Delete target description checking code, and
1170 instead call to the new feature objects to perform the checks.
1171 Reorder handling of no abi information case, allows small code
1172 simplification.
1173 (_initialize_riscv_tdep): Remove call, this is now done in the
1174 riscv_csr_feature constructor.
1175 * riscv-tdep.h (riscv_abi_embedded): Declare.
1176
533b2ae0
AB
11772020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1180 DECLARE_CSR_ALIAS.
1181
e4502042
AB
11822020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1183
1184 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1185 implementation moved from riscv_register_reggroup_p.
1186 (riscv_register_reggroup_p): Update group handling for unknown
1187 CSRs.
1188
2bf3b79d
SDJ
11892020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1190
1191 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1192 (dwarf2_get_dwz_file): Convert 'filename' to a
1193 std::string. Use dwz_search_other_debugdirs to search for DWZ
1194 files in the debug-file-directories provided by the user as well.
1195
77bf7e99
TT
11962020-12-01 Tom Tromey <tom@tromey.com>
1197
1198 * parse.c (expr_builder::expr_builder): Initialize expout.
1199 (expr_builder::release): Use expression::resize.
1200 (expression::expression, expression::~expression)
1201 (expression::resize): New methods.
1202 (write_exp_elt): Use expression::resize.
1203 (prefixify_expression): Update.
1204 (increase_expout_size): Use expression::resize.
1205 * expression.h (struct expression): Add constructor, destructor.
1206 <resize>: New method.
1207 (expression_up): Change type.
1208
539d71e8
RA
12092020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1210 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1211 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1212 set region.
1213
7ce05d21
TV
12142020-11-30 Tom de Vries <tdevries@suse.de>
1215
1216 PR symtab/26905
1217 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1218 is_reference parameter.
1219 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1220
88b91969
TT
12212020-11-30 Tom Tromey <tom@tromey.com>
1222
1223 * rust-lang.c (rust_op_name): Remove.
1224 (exp_descriptor_rust): Update.
1225 * parser-defs.h (op_name_standard): Don't declare.
1226 (struct exp_descriptor) <op_name>: Remove.
1227 * parse.c (exp_descriptor_standard): Update.
1228 * opencl-lang.c (exp_descriptor_opencl): Update.
1229 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1230 * f-lang.c (op_name_f): Remove.
1231 (f_language::exp_descriptor_tab): Update.
1232 * expression.h (op_name): Update.
1233 * expprint.c (op_name): Rewrite.
1234 (op_name_standard): Remove.
1235 (dump_raw_expression, dump_subexp): Update.
1236 * c-lang.c (exp_descriptor_c): Update.
1237 * ax-gdb.c (gen_expr): Update.
1238 * ada-lang.c (ada_op_name): Remove.
1239 (ada_exp_descriptor): Update.
1240
1cd49c43
TT
12412020-11-30 Tom Tromey <tom@tromey.com>
1242
1243 * eval.c (init_array_element): Remove.
1244 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1245
96fb9086
HD
12462020-11-29 Hannes Domani <ssbssa@yahoo.de>
1247
1248 PR tui/26973
1249 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1250 static locator win info.
1251
b4132322
AR
12522020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1253
1254 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1255 program.
1256
3df8c6af
AB
12572020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1260 is always initialized.
1261
0ae45769
RA
12622020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1263 * MAINTAINERS (Write After Approval): Add myself.
1264
239ca5e4
PW
12652020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1266
1267 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1268 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1269
cbfa382a
TT
12702020-11-25 Tom Tromey <tom@tromey.com>
1271
1272 * eval.c (evaluate_subexp_standard): Remove unnecessary
1273 variables.
1274
af30c400
TT
12752020-11-25 Tom Tromey <tom@tromey.com>
1276
1277 * d-lang.c: Include parser-defs.h.
1278 * rust-lang.c: Include parser-defs.h.
1279 * c-lang.h: Do not include parser-defs.h.
1280
1c64f6cb
SM
12812020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1282
1283 * regcache.h (struct cached_reg): Remove typedef.
1284
2c20a601
JB
12852020-11-24 Joel Brobecker <brobecker@adacore.com>
1286
1287 * README: Fix the URL of the MPFR library.
1288
c609df64
JB
12892020-11-24 Joel Brobecker <brobecker@adacore.com>
1290
1291 * README: Document the --with-libgmp-prefix configure option.
1292
fa123c32
JB
12932020-11-24 Joel Brobecker <brobecker@adacore.com>
1294
1295 * NEWS: Add entry documenting support for DWARF-based fixed
1296 point types.
1297
0fb8bb02
JB
12982020-11-24 Joel Brobecker <brobecker@adacore.com>
1299
1300 * NEWS: Document that building GDB now requires GMP.
1301
4afa9fd9
JB
13022020-11-24 Joel Brobecker <brobecker@adacore.com>
1303
1304 * typeprint.c (print_type_scalar): Add handling of
1305 TYPE_CODE_FIXED_POINT.
1306
af619ce9
JB
13072020-11-24 Joel Brobecker <brobecker@adacore.com>
1308
1309 * valarith.c (fixed_point_binop): Replace the
1310 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1311 users accordingly.
1312
e6fcee3a
JB
13132020-11-24 Joel Brobecker <brobecker@adacore.com>
1314
1315 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1316 replacing fixed_point_scaling_factor. All callers updated
1317 throughout this project.
1318 (fixed_point_scaling_factor): Delete declaration.
1319 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1320 fixed_point_scaling_factor. Adjust implementation accordingly.
1321
d19937a7
JB
13222020-11-24 Joel Brobecker <brobecker@adacore.com>
1323
1324 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1325 replacing the fixed_point_type_base_type function. All callers
1326 updated throughout this project.
1327 (fixed_point_type_base_type): Remove declaration.
1328 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1329 fixed_point_type_base_type. Adjust implementation accordingly.
1330
2a12c336
JB
13312020-11-24 Joel Brobecker <brobecker@adacore.com>
1332
1333 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1334 New methods.
1335 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1336 (TYPE_FIXED_POINT_INFO): Delete macro.
1337 (allocate_fixed_point_type_info): Change return type to void.
1338 * gdbtypes.c (copy_type_recursive): Replace the use of
1339 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1340 (fixed_point_scaling_factor): Likewise.
1341 (allocate_fixed_point_type_info): Change return type to void.
1342 Adjust implementation accordingly.
1343 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1344 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1345
c9f0b43f
JB
13462020-11-24 Joel Brobecker <brobecker@adacore.com>
1347
1348 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1349 into one single gdb::array_view parameter.
1350 (gdb_mpz::write): Likewise.
1351 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1352 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1353 into one single gdb::array_view parameter.
1354 Adjust implementation accordingly.
1355 (gdb_mpz::write): Likewise.
1356 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1357 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1358 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1359
987b6703
JB
13602020-11-24 Joel Brobecker <brobecker@adacore.com>
1361
1362 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1363 Change return type to std::string. Update all callers.
1364 * gmp-utils.c (gmp_string_printf): Likewise.
1365
4fbb7cce
JB
13662020-11-24 Joel Brobecker <brobecker@adacore.com>
1367
1368 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1369 instead of mpq_set_ui to initialize our GMP rational.
1370
d6ab69dd
TV
13712020-11-23 Tom de Vries <tdevries@suse.de>
1372
1373 * debuginfod-support.c (debuginfod_source_query)
1374 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1375
dab72643
TT
13762020-11-21 Tom Tromey <tom@tromey.com>
1377
1378 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1379
c0ad05d5
SM
13802020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1381
1382 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1383 Pass 2.0 to pow.
1384 (gdb_mpz_write_all_from_small): Likewise.
1385
a43b29c9
SM
13862020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1387
1388 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1389 of abs.
1390
ae41200b
NA
13912020-11-20 Nick Alcock <nick.alcock@oracle.com>
1392
1393 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1394 ctf_arc_open_by_name.
1395
139633c3
NA
13962020-11-20 Nick Alcock <nick.alcock@oracle.com>
1397
1398 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1399 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1400
cbbcd7a7
PA
14012020-11-20 Pedro Alves <pedro@palves.net>
1402
1403 * language.c (language_arch_info::lookup_primitive_type): Use
1404 gdb::function_view instead of gdb::function.
1405 (template language_lookup_primitive_type): Rename to ...
1406 (language_lookup_primitive_type_1): ... this, and make static.
1407 (language_lookup_primitive_type(const struct language_defn *,
1408 struct gdbarch *, const char *): Make non-template.
1409 (language_lookup_primitive_type(const struct language_defn *,
1410 struct gdbarch *, std::function<bool (struct type *)>): Make
1411 non-template and use gdb::function_view.
1412 * language.h (language_arch_info::lookup_primitive_type): Use
1413 gdb::function_view instead of std::function.
1414 (language_lookup_primitive_type): No longer template.
1415 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1416 lambda instead of a std::function.
1417
d5ef21c3
AA
14182020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1419
1420 PR tdep/26916
1421 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1422 and STOCFH.
1423
a5adb8f3
SM
14242020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1425
1426 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1427
70125a45
SM
14282020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1429
1430 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1431 in `loop_cb` parameter.
1432 * gdbarch.c: Re-generate.
1433 * gdbarch.h: Re-generate.
1434 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1435 parameter.
1436 * arch-utils.h (default_read_core_file_mappings): Likewise.
1437 * corelow.c (core_target::build_file_mappings): Likewise.
1438 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1439 (linux_core_info_proc_mappings): Likewise.
1440
a5c641b5
AB
14412020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1444 * NEWS: Mention new options.
1445 * f-array-walker.h: New file.
1446 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1447 (repack_array_slices): New static global.
1448 (show_repack_array_slices): New function.
1449 (fortran_array_slicing_debug): New static global.
1450 (show_fortran_array_slicing_debug): New function.
1451 (value_f90_subarray): Delete.
1452 (skip_undetermined_arglist): Delete.
1453 (class fortran_array_repacker_base_impl): New class.
1454 (class fortran_lazy_array_repacker_impl): New class.
1455 (class fortran_array_repacker_impl): New class.
1456 (fortran_value_subarray): Complete rewrite.
1457 (set_fortran_list): New static global.
1458 (show_fortran_list): Likewise.
1459 (_initialize_f_language): Register new commands.
1460 (fortran_adjust_dynamic_array_base_address_hack): New function.
1461 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1462 Declare.
1463 * f-valprint.c: Include 'f-array-walker.h'.
1464 (class fortran_array_printer_impl): New class.
1465 (f77_print_array_1): Delete.
1466 (f77_print_array): Delete.
1467 (fortran_print_array): New.
1468 (f_value_print_inner): Update to call fortran_print_array.
1469 * gdbtypes.c: Include 'f-lang.h'.
1470 (resolve_dynamic_type_internal): Call
1471 fortran_adjust_dynamic_array_base_address_hack.
1472
a15a5258
AB
14732020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1474
1475 * breakpoint.c (struct watch_options): New struct.
1476 (watch_option_defs): New static global.
1477 (make_watch_options_def_group): New function.
1478 (watch_maybe_just_location): Convert option parsing.
1479 (watch_command_completer): New function.
1480 (_initialize_breakpoint): Build help text using options mechanism.
1481
2e362716
AB
14822020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1483
1484 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1485 (watch_command_1): Update parameter types. Convert locals to
1486 bool.
1487 (watch_command_wrapper): Change parameter type.
1488 (watch_maybe_just_location): Change locals to bool.
1489 (rwatch_command_wrapper): Update parameter type.
1490 (awatch_command_wrapper): Update parameter type.
1491 * breakpoint.h (watch_command_wrapper): Change parameter type.
1492 (rwatch_command_wrapper): Update parameter type.
1493 (awatch_command_wrapper): Update parameter type.
1494 * eval.c (fetch_subexp_value): Change parameter type.
1495 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1496 'false' not '0'.
1497 * value.h (fetch_subexp_value): Change parameter type in
1498 declaration.
1499
b3ff61f8
AB
15002020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1503 skip_spaces.
1504
5b7d45d3
KS
15052020-11-18 Keith Seitz <keiths@redhat.com>
1506
1507 * linux-tdep.c (dump_note_entry_p): Return true instead of
1508 checking `filename'.
1509
c44191f8
TV
15102020-11-18 Tom de Vries <tdevries@suse.de>
1511
1512 * debuginfod-support.c (debuginfod_source_query)
1513 (debuginfod_debuginfo_query): Also do early exit if
1514 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1515
5d8254e1
TV
15162020-11-18 Tom de Vries <tdevries@suse.de>
1517
1518 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1519 warning.
1520
584903d3
SM
15212020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1522
1523 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1524 callers. Move doc here.
1525 * gdbtypes.c (get_array_bounds): Return bool
1526
6f2643db
AB
15272020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1530 assert.
1531 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1532 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1533 case to the default.
1534
037d7135
AB
15352020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1536
1537 * printcmd.c: Include 'safe-ctype.c'.
1538 (skip_over_slash_fmt): New function.
1539 (print_command_completer): Call skip_over_slash_fmt.
1540 (display_and_x_command_completer): New function.
1541 (_initialize_printcmd): Add command completion for 'x' and
1542 'display'.
1543
2b3cb400
PA
15442020-11-16 Pedro Alves <pedro@palves.net>
1545
1546 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1547 (get_prev_frame_always_1): ... to here.
1548 * inline-frame.c (inline_frame_this_id): Mention
1549 get_prev_frame_always_1 in comment.
1550
b74dbc20
JB
15512020-11-15 Joel Brobecker <brobecker@adacore.com>
1552
1553 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1554 handling.
1555 (value_less): Add fixed-point handling.
1556
0a12719e
JB
15572020-11-15 Joel Brobecker <brobecker@adacore.com>
1558
1559 * eval.c (binop_promote): Add fixed-point type handling.
1560 * valarith.c (fixed_point_binop): New function.
1561 (scalar_binop): Add fixed-point type handling.
1562 (value_neg): Add fixed-point type handling.
1563 * valops.c (value_cast_to_fixed_point): New function.
1564 (value_cast): Add fixed-point type handling.
1565
0c9150e4
JB
15662020-11-15 Joel Brobecker <brobecker@adacore.com>
1567
1568 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1569 range types.
1570 * c-typeprint.c (c_type_print_varspec_prefix)
1571 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1572 TYPE_CODE_FIXED_POINT handling.
1573 * p-typeprint.c (pascal_type_print_varspec_prefix)
1574 (pascal_type_print_varspec_suffix): Likewise.
1575 * typeprint.c (print_type_fixed_point): New function.
1576 * typeprint.h (print_type_fixed_point): Add declaration.
1577
b26daff9
JB
15782020-11-15 Joel Brobecker <brobecker@adacore.com>
1579
1580 * printcmd.c (print_scalar_formatted): Add fixed-point type
1581 handling when options->format is set.
1582
09584414
JB
15832020-11-15 Joel Brobecker <brobecker@adacore.com>
1584
1585 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1586 * dwarf2/read.c (get_dwarf2_rational_constant)
1587 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1588 (has_zero_over_zero_small_attribute): New functions.
1589 read_base_type, set_die_type): Add fixed-point type handling.
1590 * gdb-gdb.py.in: Add fixed-point type handling.
1591 * gdbtypes.c: #include "gmp-utils.h".
1592 (create_range_type, set_type_code): Add fixed-point type handling.
1593 (init_fixed_point_type): New function.
1594 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1595 (print_fixed_point_type_info): New function.
1596 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1597 handling.
1598 (fixed_point_type_storage): New typedef.
1599 (fixed_point_objfile_key): New static global.
1600 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1601 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1602 functions.
1603 * gdbtypes.h: #include "gmp-utils.h".
1604 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1605 (union type_specific) <fixed_point_info>: New field.
1606 (struct fixed_point_type_info): New struct.
1607 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1608 (init_fixed_point_type, is_fixed_point_type)
1609 (fixed_point_type_base_type, fixed_point_scaling_factor)
1610 (allocate_fixed_point_type_info): Add declarations.
1611 * valprint.c (generic_val_print_fixed_point): New function.
1612 (generic_value_print): Add fixed-point type handling.
1613 * value.c (value_as_address, unpack_long): Add fixed-point type
1614 handling.
1615
e55c6530
JB
16162020-11-15 Joel Brobecker <brobecker@adacore.com>
1617
1618 * utils.h (uinteger_pow): Add declaration.
1619 * utils.c (uinteger_pow): Moved here (without changes)...
1620 * valarith.c (uinteger_pow): ... from here.
1621
b34c74ab
JB
16222020-11-15 Joel Brobecker <brobecker@adacore.com>
1623
40d9d2fd 1624 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1625 * unittests/gmp-utils-selftests.c: New file.
1626 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1627 unittests/gmp-utils-selftests.c.
1628 (COMMON_SFILES) Add gmp-utils.c.
1629 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1630
1b4ac058
JB
16312020-11-15 Joel Brobecker <brobecker@adacore.com>
1632
1633 * configure.ac: Generate an error if a usable GMP library
1634 could not be found.
1635 * configure: Regenerate.
1636
2c947d9b
JB
16372020-11-15 Joel Brobecker <brobecker@adacore.com>
1638
1639 * configure.ac: Add support for --with-libgmp-prefix.
1640 * Makefile.in (LIBGMP): New variable.
1641 (CLIBS): Include $(LIBGMP).
1642 * configure, config.in: Regenerate
1643
9dd02fc0
AB
16442020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 PR cli/26879
1647 * f-exp.y (COMPLETE): New token.
1648 (exp): Two new rules for tab-completion.
1649 (saw_name_at_eof): New static global.
1650 (last_was_structop): Likewise.
1651 (yylex): Set new variables, and return COMPLETE token at the end
1652 of the input stream in some cases.
1653
758cb810
TT
16542020-11-14 Tom Tromey <tom@tromey.com>
1655
1656 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1657
749065b7
TT
16582020-11-14 Tom Tromey <tom@tromey.com>
1659
1660 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1661
2c5b1849
SM
16622020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1663
1664 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1665
e8b2f0d9
TT
16662020-11-13 Tom Tromey <tom@tromey.com>
1667
1668 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1669 (convert_escape, parse_one_string): Constify.
1670
25f4c262
KS
16712020-11-13 Keith Seitz <keiths@redhat.com>
1672
1673 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1674 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1675 outside of ELF segments" warning for debugin
1676
9d3ab915
KS
16772020-11-13 Keith Seitz <keiths@redhat.com>
1678
1679 PR gdb/23034
1680 * elfread.c (elf_symfile_segments): Output a BFD file name
1681 for the "Loadable section ... outside of ELF segments" warning.
1682
9ecab40c
SM
16832020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1684
1685 PR gdb/26835
1686 * arm-tdep.c (class arm_instruction_reader): New.
1687 (target_arm_instruction_reader): New.
1688 (arm_analyze_prologue): Add instruction reader parameter and use
1689 it. Use arm_expand_immediate.
1690 (class target_arm_instruction_reader): Adjust.
1691 (arm_skip_prologue): Adjust.
1692 (arm_expand_immediate): New.
1693 (arm_scan_prologue): Adjust.
1694 (arm_analyze_prologue_test): New.
1695 (class test_arm_instruction_reader): New.
1696
5a7cf527
AB
16972020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1698
1699 * f-lang.c (fortran_argument_convert): Add declaration. Add
1700 header comment, taken from f-lang.h. Make static.
1701 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1702 (fortran_argument_convert): Delete declaration.
1703
7bea47f0
AB
17042020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1705
1706 * ada-exp.y (find_primitive_type): Make parameter const.
1707 * ada-lang.c (enum ada_primitive_types): Delete.
1708 (ada_language::language_arch_info): Update.
1709 * c-lang.c (enum c_primitive_types): Delete.
1710 (c_language_arch_info): Update.
1711 (enum cplus_primitive_types): Delete.
1712 (cplus_language::language_arch_info): Update.
1713 * d-lang.c (enum d_primitive_types): Delete.
1714 (d_language::language_arch_info): Update.
1715 * f-lang.c (enum f_primitive_types): Delete.
1716 (f_language::language_arch_info): Update.
1717 * go-lang.c (enum go_primitive_types): Delete.
1718 (go_language::language_arch_info): Update.
1719 * language.c (auto_or_unknown_language::language_arch_info):
1720 Update.
1721 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1722 (language_string_char_type): Add header comment, call function in
1723 language_arch_info.
1724 (language_bool_type): Likewise
1725 (language_arch_info::bool_type): Define.
1726 (language_lookup_primitive_type_1): Delete.
1727 (language_lookup_primitive_type): Rewrite as a templated function
1728 to call function in language_arch_info, then instantiate twice.
1729 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1730 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1731 (language_arch_info::lookup_primitive_type): Define twice with
1732 different signatures.
1733 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1734 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1735 member function in language_arch_info.
1736 * language.h (language_arch_info): Complete rewrite.
1737 (language_lookup_primitive_type): Make templated.
1738 * m2-lang.c (enum m2_primitive_types): Delete.
1739 (m2_language::language_arch_info): Update.
1740 * opencl-lang.c (OCL_P_TYPE): Delete.
1741 (enum opencl_primitive_types): Delete.
1742 (opencl_type_data): Delete.
1743 (builtin_opencl_type): Delete.
1744 (lookup_opencl_vector_type): Update.
1745 (opencl_language::language_arch_info): Update, lots of content
1746 moved from...
1747 (build_opencl_types): ...here. This function is now deleted.
1748 (_initialize_opencl_language): Delete.
1749 * p-lang.c (enum pascal_primitive_types): Delete.
1750 (pascal_language::language_arch_info): Update.
1751 * rust-lang.c (enum rust_primitive_types): Delete.
1752 (rust_language::language_arch_info): Update.
1753
bf6e5d01
SM
17542020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1757 dwarf2_queue_guard.
1758
1350c3b4
SM
17592020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1762 comment.
1763
6f738b01
SM
17642020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1765
1766 * dwarf2/read.c (dwarf_read_debug_printf,
1767 dwarf_read_debug_printf_v): New macros, use throughout the file.
1768
10c19fad
SV
17692020-11-12 Shahab Vahedi <shahab@synopsys.com>
1770
10806efd 1771 PR tdep/27015
10c19fad
SV
1772 * arc-linux-tdep.c (collect_register): Populate "eret" by
1773 "pc" value from the regcache when asked for "pc" value.
1774
1f2624a3
TT
17752020-11-12 Tom Tromey <tom@tromey.com>
1776
1777 PR rust/26799:
1778 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1779 exist.
1780
ab33b152
AB
17812020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * features/Makefile (XMLTOC): Add rx.xml.
1784 (FEATURE_XMLFILES): Remove rx.xml.
1785 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1786 * features/rx.c: Regenerate.
1787 * features/rx.xml: Wrap in `target` tags, and reindent.
1788 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1789 structure.
1790 (maint_print_c_tdesc_opt_def): New typedef.
1791 (maint_print_c_tdesc_opt_defs): New static global.
1792 (make_maint_print_c_tdesc_options_def_group): New function.
1793 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1794 print single feature C file for target descriptions containing a
1795 single feature.
1796 (maint_print_c_tdesc_cmd_completer): New function.
1797 (_initialize_target_descriptions): Update call to register command
1798 completer, and include command line flag in help text.
1799
550820e1
AB
18002020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1801
1802 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1803 numbers.
1804 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1805 enum values.
1806
baf20f76
TT
18072020-11-10 Tom Tromey <tom@tromey.com>
1808
1809 * value.h (internalvar_name): Update.
1810 * value.c (internalvar_name): Make return type const.
1811
caaece0e
TT
18122020-11-10 Tom Tromey <tom@tromey.com>
1813
1814 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1815 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1816 const.
1817
8e20b4be
TT
18182020-11-10 Tom Tromey <tom@tromey.com>
1819
1820 * objc-lang.h (value_nsstring): Update.
1821 * objc-lang.c (value_nsstring): Make "ptr" const.
1822
86775fab
AB
18232020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * expprint.c (print_subexp_funcall): Increment expression position
1826 after reading argument count.
1827 * f-lang.c (print_subexp_f): Skip over opcode before calling
1828 common function.
1829 (dump_subexp_body_f): Likewise.
1830
3fed4c0b
RG
18312020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1832
1833 PR python/26832
1834 * configure: Regenerate.
1835 * configure.ac: Check for python modules ctypes instead of
1836 itertools.
1837
ac3d4064
PA
18382020-11-06 Pedro Alves <pedro@palves.net>
1839
1840 * macroexp.c (struct macro_buffer): Split in two classes. Add
1841 uses adjusted.
1842 (struct shared_macro_buffer): New, factored out from struct
1843 macro_buffer.
1844 (struct growable_macro_buffer): New, factored out from struct
1845 macro_buffer.
1846 (set_token, get_comment, get_identifier, get_pp_number)
1847 (get_character_constant, get_string_literal, get_punctuator)
1848 (get_next_token_for_substitution): Constify parameters.
1849 (substitute_args): Constify locals.
1850
606decb2
TT
18512020-11-05 Tom Tromey <tom@tromey.com>
1852
1853 * dwarf2/read.c (read_cutu_die_from_dwo)
1854 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1855 (build_type_psymtabs_1): Update.
1856 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1857 parameter.
1858 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1859 Don't read section. Add assert.
1860
9c91c725
TT
18612020-11-04 Tom Tromey <tromey@adacore.com>
1862
1863 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1864
8d9fd3a1
TT
18652020-11-04 Tom Tromey <tromey@adacore.com>
1866
1867 * ada-typeprint.c (ada_print_type): Handle __T types.
1868
d8f62e84
TT
18692020-11-04 Tom Tromey <tromey@adacore.com>
1870
1871 * dwarf2/read.c (add_partial_symbol, process_die):
1872 Handle DW_TAG_array_type.
1873 (is_type_tag_for_partial): Add "lang" parameter.
1874 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1875
7ff5b937
TT
18762020-11-04 Tom Tromey <tromey@adacore.com>
1877
1878 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1879
10f6a3ad
TT
18802020-11-04 Tom Tromey <tromey@adacore.com>
1881
1882 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1883 array.
1884
b72795a8
TT
18852020-11-04 Tom Tromey <tromey@adacore.com>
1886
1887 * gdbtypes.c (update_static_array_size): Handle bit stride.
1888
24aa1b02
TT
18892020-11-04 Tom Tromey <tromey@adacore.com>
1890
1891 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1892
c9a28cbe
TT
18932020-11-04 Tom Tromey <tromey@adacore.com>
1894
1895 * ada-lang.c (ada_is_any_packed_array_type): New function.
1896 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1897
57567375
TT
18982020-11-04 Tom Tromey <tromey@adacore.com>
1899
1900 * dwarf2/read.c (recognize_bound_expression)
1901 (quirk_ada_thick_pointer): New functions.
1902 (read_array_type): Call quirk_ada_thick_pointer.
1903 (set_die_type): Add "skip_data_location" parameter.
1904 (quirk_ada_thick_pointer): New function.
1905 (process_structure_scope): Call quirk_ada_thick_pointer.
1906 * ada-lang.c (ada_is_unconstrained_packed_array_type)
1907 (decode_packed_array_bitsize): Handle thick pointers without
1908 parallel types.
1909 (ada_is_gnat_encoded_packed_array_type): Rename from
1910 ada_is_packed_array_type.
1911 (ada_is_constrained_packed_array_type): Update.
1912 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1913 (ada_value_print_1): Use ada_get_decoded_value.
1914
a7400e44
TT
19152020-11-04 Tom Tromey <tromey@adacore.com>
1916
1917 * ada-lang.c (recursively_update_array_bitsize): New function.
1918 (decode_constrained_packed_array_type): Call it.
1919
75fd6a26
TT
19202020-11-04 Tom Tromey <tromey@adacore.com>
1921
1922 * ada-lang.c (to_fixed_array_type): Error if
1923 decode_constrained_packed_array_type returns NULL.
1924
93f9561e
TT
19252020-11-04 Tom Tromey <tromey@adacore.com>
1926
1927 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1928
257e02d8
TT
19292020-11-02 Tom Tromey <tromey@adacore.com>
1930
1931 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1932 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1933 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1934 * amd64-ravenscar-thread.c: New file.
1935 * amd64-ravenscar-thread.h: New file.
1936 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1937 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1938
74d877e5
AB
19392020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1940
1941 * main.c (execute_cmdargs): New function.
1942 (captured_main_1): Make use of execute_cmdargs.
1943
64aaad63
AB
19442020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * NEWS: Mention changes to config file search path.
1947 * main.c
1948
5b3d3560
TT
19492020-11-02 Tom Tromey <tromey@adacore.com>
1950
1951 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1952 (python_GdbModuleDef): Move earlier. Now static.
1953 (do_start_initialization): Consolidate some IS_PY3K blocks.
1954
dda83cd7
SM
19552020-11-02 Simon Marchi <simon.marchi@efficios.com>
1956
1957 * aarch64-linux-tdep.c: Fix indentation.
1958 * aarch64-ravenscar-thread.c: Fix indentation.
1959 * aarch64-tdep.c: Fix indentation.
1960 * aarch64-tdep.h: Fix indentation.
1961 * ada-lang.c: Fix indentation.
1962 * ada-lang.h: Fix indentation.
1963 * ada-tasks.c: Fix indentation.
1964 * ada-typeprint.c: Fix indentation.
1965 * ada-valprint.c: Fix indentation.
1966 * ada-varobj.c: Fix indentation.
1967 * addrmap.c: Fix indentation.
1968 * addrmap.h: Fix indentation.
1969 * agent.c: Fix indentation.
1970 * aix-thread.c: Fix indentation.
1971 * alpha-bsd-nat.c: Fix indentation.
1972 * alpha-linux-tdep.c: Fix indentation.
1973 * alpha-mdebug-tdep.c: Fix indentation.
1974 * alpha-nbsd-tdep.c: Fix indentation.
1975 * alpha-obsd-tdep.c: Fix indentation.
1976 * alpha-tdep.c: Fix indentation.
1977 * amd64-bsd-nat.c: Fix indentation.
1978 * amd64-darwin-tdep.c: Fix indentation.
1979 * amd64-linux-nat.c: Fix indentation.
1980 * amd64-linux-tdep.c: Fix indentation.
1981 * amd64-nat.c: Fix indentation.
1982 * amd64-obsd-tdep.c: Fix indentation.
1983 * amd64-tdep.c: Fix indentation.
1984 * amd64-windows-tdep.c: Fix indentation.
1985 * annotate.c: Fix indentation.
1986 * arc-tdep.c: Fix indentation.
1987 * arch-utils.c: Fix indentation.
1988 * arch/arm-get-next-pcs.c: Fix indentation.
1989 * arch/arm.c: Fix indentation.
1990 * arm-linux-nat.c: Fix indentation.
1991 * arm-linux-tdep.c: Fix indentation.
1992 * arm-nbsd-tdep.c: Fix indentation.
1993 * arm-pikeos-tdep.c: Fix indentation.
1994 * arm-tdep.c: Fix indentation.
1995 * arm-tdep.h: Fix indentation.
1996 * arm-wince-tdep.c: Fix indentation.
1997 * auto-load.c: Fix indentation.
1998 * auxv.c: Fix indentation.
1999 * avr-tdep.c: Fix indentation.
2000 * ax-gdb.c: Fix indentation.
2001 * ax-general.c: Fix indentation.
2002 * bfin-linux-tdep.c: Fix indentation.
2003 * block.c: Fix indentation.
2004 * block.h: Fix indentation.
2005 * blockframe.c: Fix indentation.
2006 * bpf-tdep.c: Fix indentation.
2007 * break-catch-sig.c: Fix indentation.
2008 * break-catch-syscall.c: Fix indentation.
2009 * break-catch-throw.c: Fix indentation.
2010 * breakpoint.c: Fix indentation.
2011 * breakpoint.h: Fix indentation.
2012 * bsd-uthread.c: Fix indentation.
2013 * btrace.c: Fix indentation.
2014 * build-id.c: Fix indentation.
2015 * buildsym-legacy.h: Fix indentation.
2016 * buildsym.c: Fix indentation.
2017 * c-typeprint.c: Fix indentation.
2018 * c-valprint.c: Fix indentation.
2019 * c-varobj.c: Fix indentation.
2020 * charset.c: Fix indentation.
2021 * cli/cli-cmds.c: Fix indentation.
2022 * cli/cli-decode.c: Fix indentation.
2023 * cli/cli-decode.h: Fix indentation.
2024 * cli/cli-script.c: Fix indentation.
2025 * cli/cli-setshow.c: Fix indentation.
2026 * coff-pe-read.c: Fix indentation.
2027 * coffread.c: Fix indentation.
2028 * compile/compile-cplus-types.c: Fix indentation.
2029 * compile/compile-object-load.c: Fix indentation.
2030 * compile/compile-object-run.c: Fix indentation.
2031 * completer.c: Fix indentation.
2032 * corefile.c: Fix indentation.
2033 * corelow.c: Fix indentation.
2034 * cp-abi.h: Fix indentation.
2035 * cp-namespace.c: Fix indentation.
2036 * cp-support.c: Fix indentation.
2037 * cp-valprint.c: Fix indentation.
2038 * cris-linux-tdep.c: Fix indentation.
2039 * cris-tdep.c: Fix indentation.
2040 * darwin-nat-info.c: Fix indentation.
2041 * darwin-nat.c: Fix indentation.
2042 * darwin-nat.h: Fix indentation.
2043 * dbxread.c: Fix indentation.
2044 * dcache.c: Fix indentation.
2045 * disasm.c: Fix indentation.
2046 * dtrace-probe.c: Fix indentation.
2047 * dwarf2/abbrev.c: Fix indentation.
2048 * dwarf2/attribute.c: Fix indentation.
2049 * dwarf2/expr.c: Fix indentation.
2050 * dwarf2/frame.c: Fix indentation.
2051 * dwarf2/index-cache.c: Fix indentation.
2052 * dwarf2/index-write.c: Fix indentation.
2053 * dwarf2/line-header.c: Fix indentation.
2054 * dwarf2/loc.c: Fix indentation.
2055 * dwarf2/macro.c: Fix indentation.
2056 * dwarf2/read.c: Fix indentation.
2057 * dwarf2/read.h: Fix indentation.
2058 * elfread.c: Fix indentation.
2059 * eval.c: Fix indentation.
2060 * event-top.c: Fix indentation.
2061 * exec.c: Fix indentation.
2062 * exec.h: Fix indentation.
2063 * expprint.c: Fix indentation.
2064 * f-lang.c: Fix indentation.
2065 * f-typeprint.c: Fix indentation.
2066 * f-valprint.c: Fix indentation.
2067 * fbsd-nat.c: Fix indentation.
2068 * fbsd-tdep.c: Fix indentation.
2069 * findvar.c: Fix indentation.
2070 * fork-child.c: Fix indentation.
2071 * frame-unwind.c: Fix indentation.
2072 * frame-unwind.h: Fix indentation.
2073 * frame.c: Fix indentation.
2074 * frv-linux-tdep.c: Fix indentation.
2075 * frv-tdep.c: Fix indentation.
2076 * frv-tdep.h: Fix indentation.
2077 * ft32-tdep.c: Fix indentation.
2078 * gcore.c: Fix indentation.
2079 * gdb_bfd.c: Fix indentation.
2080 * gdbarch.sh: Fix indentation.
2081 * gdbarch.c: Re-generate
2082 * gdbarch.h: Re-generate.
2083 * gdbcore.h: Fix indentation.
2084 * gdbthread.h: Fix indentation.
2085 * gdbtypes.c: Fix indentation.
2086 * gdbtypes.h: Fix indentation.
2087 * glibc-tdep.c: Fix indentation.
2088 * gnu-nat.c: Fix indentation.
2089 * gnu-nat.h: Fix indentation.
2090 * gnu-v2-abi.c: Fix indentation.
2091 * gnu-v3-abi.c: Fix indentation.
2092 * go32-nat.c: Fix indentation.
2093 * guile/guile-internal.h: Fix indentation.
2094 * guile/scm-cmd.c: Fix indentation.
2095 * guile/scm-frame.c: Fix indentation.
2096 * guile/scm-iterator.c: Fix indentation.
2097 * guile/scm-math.c: Fix indentation.
2098 * guile/scm-ports.c: Fix indentation.
2099 * guile/scm-pretty-print.c: Fix indentation.
2100 * guile/scm-value.c: Fix indentation.
2101 * h8300-tdep.c: Fix indentation.
2102 * hppa-linux-nat.c: Fix indentation.
2103 * hppa-linux-tdep.c: Fix indentation.
2104 * hppa-nbsd-nat.c: Fix indentation.
2105 * hppa-nbsd-tdep.c: Fix indentation.
2106 * hppa-obsd-nat.c: Fix indentation.
2107 * hppa-tdep.c: Fix indentation.
2108 * hppa-tdep.h: Fix indentation.
2109 * i386-bsd-nat.c: Fix indentation.
2110 * i386-darwin-nat.c: Fix indentation.
2111 * i386-darwin-tdep.c: Fix indentation.
2112 * i386-dicos-tdep.c: Fix indentation.
2113 * i386-gnu-nat.c: Fix indentation.
2114 * i386-linux-nat.c: Fix indentation.
2115 * i386-linux-tdep.c: Fix indentation.
2116 * i386-nto-tdep.c: Fix indentation.
2117 * i386-obsd-tdep.c: Fix indentation.
2118 * i386-sol2-nat.c: Fix indentation.
2119 * i386-tdep.c: Fix indentation.
2120 * i386-tdep.h: Fix indentation.
2121 * i386-windows-tdep.c: Fix indentation.
2122 * i387-tdep.c: Fix indentation.
2123 * i387-tdep.h: Fix indentation.
2124 * ia64-libunwind-tdep.c: Fix indentation.
2125 * ia64-libunwind-tdep.h: Fix indentation.
2126 * ia64-linux-nat.c: Fix indentation.
2127 * ia64-linux-tdep.c: Fix indentation.
2128 * ia64-tdep.c: Fix indentation.
2129 * ia64-tdep.h: Fix indentation.
2130 * ia64-vms-tdep.c: Fix indentation.
2131 * infcall.c: Fix indentation.
2132 * infcmd.c: Fix indentation.
2133 * inferior.c: Fix indentation.
2134 * infrun.c: Fix indentation.
2135 * iq2000-tdep.c: Fix indentation.
2136 * language.c: Fix indentation.
2137 * linespec.c: Fix indentation.
2138 * linux-fork.c: Fix indentation.
2139 * linux-nat.c: Fix indentation.
2140 * linux-tdep.c: Fix indentation.
2141 * linux-thread-db.c: Fix indentation.
2142 * lm32-tdep.c: Fix indentation.
2143 * m2-lang.c: Fix indentation.
2144 * m2-typeprint.c: Fix indentation.
2145 * m2-valprint.c: Fix indentation.
2146 * m32c-tdep.c: Fix indentation.
2147 * m32r-linux-tdep.c: Fix indentation.
2148 * m32r-tdep.c: Fix indentation.
2149 * m68hc11-tdep.c: Fix indentation.
2150 * m68k-bsd-nat.c: Fix indentation.
2151 * m68k-linux-nat.c: Fix indentation.
2152 * m68k-linux-tdep.c: Fix indentation.
2153 * m68k-tdep.c: Fix indentation.
2154 * machoread.c: Fix indentation.
2155 * macrocmd.c: Fix indentation.
2156 * macroexp.c: Fix indentation.
2157 * macroscope.c: Fix indentation.
2158 * macrotab.c: Fix indentation.
2159 * macrotab.h: Fix indentation.
2160 * main.c: Fix indentation.
2161 * mdebugread.c: Fix indentation.
2162 * mep-tdep.c: Fix indentation.
2163 * mi/mi-cmd-catch.c: Fix indentation.
2164 * mi/mi-cmd-disas.c: Fix indentation.
2165 * mi/mi-cmd-env.c: Fix indentation.
2166 * mi/mi-cmd-stack.c: Fix indentation.
2167 * mi/mi-cmd-var.c: Fix indentation.
2168 * mi/mi-cmds.c: Fix indentation.
2169 * mi/mi-main.c: Fix indentation.
2170 * mi/mi-parse.c: Fix indentation.
2171 * microblaze-tdep.c: Fix indentation.
2172 * minidebug.c: Fix indentation.
2173 * minsyms.c: Fix indentation.
2174 * mips-linux-nat.c: Fix indentation.
2175 * mips-linux-tdep.c: Fix indentation.
2176 * mips-nbsd-tdep.c: Fix indentation.
2177 * mips-tdep.c: Fix indentation.
2178 * mn10300-linux-tdep.c: Fix indentation.
2179 * mn10300-tdep.c: Fix indentation.
2180 * moxie-tdep.c: Fix indentation.
2181 * msp430-tdep.c: Fix indentation.
2182 * namespace.h: Fix indentation.
2183 * nat/fork-inferior.c: Fix indentation.
2184 * nat/gdb_ptrace.h: Fix indentation.
2185 * nat/linux-namespaces.c: Fix indentation.
2186 * nat/linux-osdata.c: Fix indentation.
2187 * nat/netbsd-nat.c: Fix indentation.
2188 * nat/x86-dregs.c: Fix indentation.
2189 * nbsd-nat.c: Fix indentation.
2190 * nbsd-tdep.c: Fix indentation.
2191 * nios2-linux-tdep.c: Fix indentation.
2192 * nios2-tdep.c: Fix indentation.
2193 * nto-procfs.c: Fix indentation.
2194 * nto-tdep.c: Fix indentation.
2195 * objfiles.c: Fix indentation.
2196 * objfiles.h: Fix indentation.
2197 * opencl-lang.c: Fix indentation.
2198 * or1k-tdep.c: Fix indentation.
2199 * osabi.c: Fix indentation.
2200 * osabi.h: Fix indentation.
2201 * osdata.c: Fix indentation.
2202 * p-lang.c: Fix indentation.
2203 * p-typeprint.c: Fix indentation.
2204 * p-valprint.c: Fix indentation.
2205 * parse.c: Fix indentation.
2206 * ppc-linux-nat.c: Fix indentation.
2207 * ppc-linux-tdep.c: Fix indentation.
2208 * ppc-nbsd-nat.c: Fix indentation.
2209 * ppc-nbsd-tdep.c: Fix indentation.
2210 * ppc-obsd-nat.c: Fix indentation.
2211 * ppc-ravenscar-thread.c: Fix indentation.
2212 * ppc-sysv-tdep.c: Fix indentation.
2213 * ppc64-tdep.c: Fix indentation.
2214 * printcmd.c: Fix indentation.
2215 * proc-api.c: Fix indentation.
2216 * producer.c: Fix indentation.
2217 * producer.h: Fix indentation.
2218 * prologue-value.c: Fix indentation.
2219 * prologue-value.h: Fix indentation.
2220 * psymtab.c: Fix indentation.
2221 * python/py-arch.c: Fix indentation.
2222 * python/py-bpevent.c: Fix indentation.
2223 * python/py-event.c: Fix indentation.
2224 * python/py-event.h: Fix indentation.
2225 * python/py-finishbreakpoint.c: Fix indentation.
2226 * python/py-frame.c: Fix indentation.
2227 * python/py-framefilter.c: Fix indentation.
2228 * python/py-inferior.c: Fix indentation.
2229 * python/py-infthread.c: Fix indentation.
2230 * python/py-objfile.c: Fix indentation.
2231 * python/py-prettyprint.c: Fix indentation.
2232 * python/py-registers.c: Fix indentation.
2233 * python/py-signalevent.c: Fix indentation.
2234 * python/py-stopevent.c: Fix indentation.
2235 * python/py-stopevent.h: Fix indentation.
2236 * python/py-threadevent.c: Fix indentation.
2237 * python/py-tui.c: Fix indentation.
2238 * python/py-unwind.c: Fix indentation.
2239 * python/py-value.c: Fix indentation.
2240 * python/py-xmethods.c: Fix indentation.
2241 * python/python-internal.h: Fix indentation.
2242 * python/python.c: Fix indentation.
2243 * ravenscar-thread.c: Fix indentation.
2244 * record-btrace.c: Fix indentation.
2245 * record-full.c: Fix indentation.
2246 * record.c: Fix indentation.
2247 * reggroups.c: Fix indentation.
2248 * regset.h: Fix indentation.
2249 * remote-fileio.c: Fix indentation.
2250 * remote.c: Fix indentation.
2251 * reverse.c: Fix indentation.
2252 * riscv-linux-tdep.c: Fix indentation.
2253 * riscv-ravenscar-thread.c: Fix indentation.
2254 * riscv-tdep.c: Fix indentation.
2255 * rl78-tdep.c: Fix indentation.
2256 * rs6000-aix-tdep.c: Fix indentation.
2257 * rs6000-lynx178-tdep.c: Fix indentation.
2258 * rs6000-nat.c: Fix indentation.
2259 * rs6000-tdep.c: Fix indentation.
2260 * rust-lang.c: Fix indentation.
2261 * rx-tdep.c: Fix indentation.
2262 * s12z-tdep.c: Fix indentation.
2263 * s390-linux-tdep.c: Fix indentation.
2264 * score-tdep.c: Fix indentation.
2265 * ser-base.c: Fix indentation.
2266 * ser-mingw.c: Fix indentation.
2267 * ser-uds.c: Fix indentation.
2268 * ser-unix.c: Fix indentation.
2269 * serial.c: Fix indentation.
2270 * sh-linux-tdep.c: Fix indentation.
2271 * sh-nbsd-tdep.c: Fix indentation.
2272 * sh-tdep.c: Fix indentation.
2273 * skip.c: Fix indentation.
2274 * sol-thread.c: Fix indentation.
2275 * solib-aix.c: Fix indentation.
2276 * solib-darwin.c: Fix indentation.
2277 * solib-frv.c: Fix indentation.
2278 * solib-svr4.c: Fix indentation.
2279 * solib.c: Fix indentation.
2280 * source.c: Fix indentation.
2281 * sparc-linux-tdep.c: Fix indentation.
2282 * sparc-nbsd-tdep.c: Fix indentation.
2283 * sparc-obsd-tdep.c: Fix indentation.
2284 * sparc-ravenscar-thread.c: Fix indentation.
2285 * sparc-tdep.c: Fix indentation.
2286 * sparc64-linux-tdep.c: Fix indentation.
2287 * sparc64-nbsd-tdep.c: Fix indentation.
2288 * sparc64-obsd-tdep.c: Fix indentation.
2289 * sparc64-tdep.c: Fix indentation.
2290 * stabsread.c: Fix indentation.
2291 * stack.c: Fix indentation.
2292 * stap-probe.c: Fix indentation.
2293 * stubs/ia64vms-stub.c: Fix indentation.
2294 * stubs/m32r-stub.c: Fix indentation.
2295 * stubs/m68k-stub.c: Fix indentation.
2296 * stubs/sh-stub.c: Fix indentation.
2297 * stubs/sparc-stub.c: Fix indentation.
2298 * symfile-mem.c: Fix indentation.
2299 * symfile.c: Fix indentation.
2300 * symfile.h: Fix indentation.
2301 * symmisc.c: Fix indentation.
2302 * symtab.c: Fix indentation.
2303 * symtab.h: Fix indentation.
2304 * target-float.c: Fix indentation.
2305 * target.c: Fix indentation.
2306 * target.h: Fix indentation.
2307 * tic6x-tdep.c: Fix indentation.
2308 * tilegx-linux-tdep.c: Fix indentation.
2309 * tilegx-tdep.c: Fix indentation.
2310 * top.c: Fix indentation.
2311 * tracefile-tfile.c: Fix indentation.
2312 * tracepoint.c: Fix indentation.
2313 * tui/tui-disasm.c: Fix indentation.
2314 * tui/tui-io.c: Fix indentation.
2315 * tui/tui-regs.c: Fix indentation.
2316 * tui/tui-stack.c: Fix indentation.
2317 * tui/tui-win.c: Fix indentation.
2318 * tui/tui-winsource.c: Fix indentation.
2319 * tui/tui.c: Fix indentation.
2320 * typeprint.c: Fix indentation.
2321 * ui-out.h: Fix indentation.
2322 * unittests/copy_bitwise-selftests.c: Fix indentation.
2323 * unittests/memory-map-selftests.c: Fix indentation.
2324 * utils.c: Fix indentation.
2325 * v850-tdep.c: Fix indentation.
2326 * valarith.c: Fix indentation.
2327 * valops.c: Fix indentation.
2328 * valprint.c: Fix indentation.
2329 * valprint.h: Fix indentation.
2330 * value.c: Fix indentation.
2331 * value.h: Fix indentation.
2332 * varobj.c: Fix indentation.
2333 * vax-tdep.c: Fix indentation.
2334 * windows-nat.c: Fix indentation.
2335 * windows-tdep.c: Fix indentation.
2336 * xcoffread.c: Fix indentation.
2337 * xml-syscall.c: Fix indentation.
2338 * xml-tdesc.c: Fix indentation.
2339 * xstormy16-tdep.c: Fix indentation.
2340 * xtensa-config.c: Fix indentation.
2341 * xtensa-linux-nat.c: Fix indentation.
2342 * xtensa-linux-tdep.c: Fix indentation.
2343 * xtensa-tdep.c: Fix indentation.
2344
e1f57067
AB
23452020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2346 Craig Blackmore <craig.blackmore@embecosm.com>
2347
2348 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2349 as an unsigned value.
2350
ae7754b2
TT
23512020-11-01 Tom Tromey <tom@tromey.com>
2352
2353 * dbxread.c (dbx_end_psymtab): Update.
2354 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2355 (build_type_psymtabs_reader): Update.
2356 * xcoffread.c (xcoff_end_psymtab): Update.
2357 * ctfread.c (scan_partial_symbols): Update.
2358 * psymtab.c (sort_pst_symbols): Remove.
2359 (partial_symtab::end): Rename from end_psymtab_common. Inline
2360 sort_pst_symbols.
2361 * psympriv.h (struct partial_symtab) <end>: New method.
2362 (end_psymtab_common): Don't declare.
2363
0684bb51
TT
23642020-11-01 Tom Tromey <tom@tromey.com>
2365
2366 * symmisc.c (count_psyms): New function.
2367 (print_objfile_statistics): Use it.
2368 * psymtab.c (append_psymbol_to_list): Remove.
2369 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2370 * objfiles.h (struct objstats) <n_psyms>: Remove.
2371
089002bb
TT
23722020-11-01 Tom Tromey <tom@tromey.com>
2373
2374 * dbxread.c (dbx_end_psymtab): Update.
2375 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2376 (build_type_psymtabs_reader): Update.
2377 * xcoffread.c (xcoff_end_psymtab): Update.
2378 * ctfread.c (scan_partial_symbols): Update.
2379 * psympriv.h (end_psymtab_common): Update.
2380 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2381 (sort_pst_symbols): Likewise.
2382
525454d6
TT
23832020-11-01 Tom Tromey <tom@tromey.com>
2384
2385 * dbxread.c (dbx_symfile_read): Update.
2386 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2387 * xcoffread.c (xcoff_initial_scan): Update.
2388 * psympriv.h (init_psymbol_list): Don't declare.
2389 * psymtab.c (init_psymbol_list): Remove.
2390
60bd1d53
JB
23912020-11-01 Joel Brobecker <brobecker@adacore.com>
2392
2393 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2394 gnat_encoded_fixed_type_info. Update all callers.
2395
db99d0d0
JB
23962020-11-01 Joel Brobecker <brobecker@adacore.com>
2397
2398 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2399 line too long.
2400
75f24e86
JB
24012020-11-01 Joel Brobecker <brobecker@adacore.com>
2402
2403 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2404 cast_from_fixed. Update all callers.
2405 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2406 Update all callers.
2407 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2408 Update all callers.
2409 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2410 ada_scaling_factor.
2411 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2412 to print_gnat_encoded_fixed_point_type.
2413 * ada-valprint.c: Likewise.
2414
4f0469cd
AB
24152020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2416
2417 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2418 (debug_prefixed_printf): Add check of debug_displaced flag.
2419 * linux-nat.c (linux_nat_debug_printf): Add check of
2420 debug_linux_nat flag.
2421
17417fb0
SM
24222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2423
2424 * infrun.c (infrun_debug_printf_1): Remove.
2425 (displaced_debug_printf_1): Remove.
2426 (stop_all_threads): Use debug_prefixed_printf.
2427 * infrun.h (infrun_debug_printf_1): Remove.
2428 (infrun_debug_printf): Use debug_prefixed_printf.
2429 (displaced_debug_printf_1): Remove.
2430 (displaced_debug_printf): Use debug_prefixed_printf.
2431 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2432 (linux_nat_debug_printf): Use debug_prefixed_printf.
2433
ad6dba1c
SM
24342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2435
2436 * configure: Re-generate.
2437 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2438 AC_LANG_PROGRAM.
2439
b6fb30ed
SM
24402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * configure: Re-generate.
2443
5164c117
SM
24442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2445
2446 * configure: Re-generate.
2447
864ca435
SM
24482020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 * configure: Re-generate.
2451
b9442ec1
SM
24522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2453
2454 * configure: Re-generate.
2455
294f2697
SM
24562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2457
2458 * acinclude.m4: Modernize.
2459 * configure: Re-generate.
2460
5593a99a
SM
24612020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2462
2463 * configure.ac: Modernize.
2464 * configure: Re-generate.
2465
e41fda1d
SM
24662020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2467
2468 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2469 * configure: Re-generate.
2470 * configure.ac: Remove AM_PROG_CC_STDC.
2471
91e1a0ed
SM
24722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2475 AC_CANONICAL_SYSTEM.
2476 * configure: Re-generate.
2477
136821d9
SM
24782020-10-30 Simon Marchi <simon.marchi@efficios.com>
2479
2480 * infrun.h (displaced_debug_printf): New macro. Replace
2481 displaced debug prints throughout to use it.
2482 (displaced_debug_printf_1): New declaration.
2483 (displaced_step_dump_bytes): Return string, remove ui_file
2484 parameter, update all callers.
2485 * infrun.c (displaced_debug_printf_1): New function.
2486 (displaced_step_dump_bytes): Return string, remove ui_file
2487 parameter
2488
aa2045e7
SM
24892020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2490
2491 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2492
b1ec2735
TT
24932020-10-30 Tom Tromey <tromey@adacore.com>
2494
2495 * Makefile.in (stamp-init): Depend on config.status.
2496
b78b3a29
TBA
24972020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2498
2499 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2500
d70bdd3c
PA
25012020-10-30 Pedro Alves <pedro@palves.net>
2502
2503 * thread.c (lookup_selected_frame): Move ...
2504 * frame.c (lookup_selected_frame): ... here.
2505
79952e69
PA
25062020-10-30 Pedro Alves <pedro@palves.net>
2507
2508 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2509 * frame.c
2510 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2511 Use save_selected_frame. Save language as well.
2512 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2513 Use restore_selected_frame, and restore language as well.
2514 (selected_frame_id, selected_frame_level): New.
2515 (selected_frame): Update comments.
2516 (save_selected_frame, restore_selected_frame): New.
2517 (get_selected_frame): Use lookup_selected_frame.
2518 (get_selected_frame_if_set): Delete.
2519 (select_frame): Record selected_frame_level and selected_frame_id.
2520 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2521 fields.
2522 (get_selected_frame): Make 'message' parameter optional.
2523 (get_selected_frame_if_set): Delete declaration.
2524 (select_frame): Update comments.
2525 (save_selected_frame, restore_selected_frame)
2526 (lookup_selected_frame): Declare.
2527 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2528 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2529 New field.
2530 (save_infcall_control_state): Use save_selected_frame.
2531 (restore_selected_frame): Delete.
2532 (restore_infcall_control_state): Use restore_selected_frame.
2533 * stack.c (select_frame_command_core, frame_command_core): Use
2534 get_selected_frame.
2535 * thread.c (restore_selected_frame): Rename to ...
2536 (lookup_selected_frame): ... this and make extern. Select the
2537 current frame if the frame level is -1.
2538 (scoped_restore_current_thread::restore): Also restore the
2539 language.
2540 (scoped_restore_current_thread::~scoped_restore_current_thread):
2541 Don't try/catch.
2542 (scoped_restore_current_thread::scoped_restore_current_thread):
2543 Save the language as well. Use save_selected_frame.
2544
58103c33
SM
25452020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2546
2547 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2548 documentation.
2549 * gdbarch.h: Re-generate.
2550
40a53766
SM
25512020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2554 parameter.
2555 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2556 Likewise.
2557 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2558 Likewise.
2559 * arch-utils.c (default_displaced_step_hw_singlestep):
2560 Likewise.
2561 * arch-utils.h (default_displaced_step_hw_singlestep):
2562 Likewise.
2563 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2564 Likewise.
2565 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2566 Likewise.
2567 * gdbarch.c: Re-generate.
2568 * gdbarch.h: Re-generate.
2569 * infrun.c (resume_1): Adjust.
2570
8407f91b
TT
25712020-10-29 Tom Tromey <tom@tromey.com>
2572
2573 * progspace.c (program_space::~program_space): Don't call
2574 exec_close.
2575
5008b3b2
TT
25762020-10-29 Tom Tromey <tom@tromey.com>
2577
2578 * exec.c (exec_target::close): Don't change current program
2579 space.
2580
d9eebde0
TT
25812020-10-29 Tom Tromey <tom@tromey.com>
2582
2583 * symfile.c (add_symbol_file_command): Update.
2584 * exec.c (program_space::add_target_sections): Rename.
2585 * symfile-mem.c (symbol_file_add_from_memory): Update.
2586 * progspace.h (struct program_space) <add_target_sections>:
2587 Declare new overload.
2588 * exec.h (add_target_sections_of_objfile): Don't declare.
2589
3769e227
TT
25902020-10-29 Tom Tromey <tom@tromey.com>
2591
2592 * solib.c (solib_map_sections): Update.
2593 * exec.c (program_space::add_target_sections): Now a method.
2594 (exec_file_attach): Update.
2595 * exec.h (add_target_sections): Don't declare.
2596 * progspace.h (struct program_space) <add_target_sections>:
2597 Declare.
2598
2a3f84af
TT
25992020-10-29 Tom Tromey <tom@tromey.com>
2600
2601 * progspace.h (struct program_space) <remove_target_sections>:
2602 Declare.
2603 * exec.c (program_space::remove_target_sections): Now a method.
2604 * exec.h (remove_target_sections): Don't declare.
2605
004eecfd
TT
26062020-10-29 Tom Tromey <tom@tromey.com>
2607
2608 * inferior.c (delete_inferior): Update.
2609 * progspace.c (program_space::empty): Rename from
2610 program_space_empty_p. Return bool.
2611 * progspace.h (struct program_space) <empty>: New method.
2612 (program_space_empty_p): Don't declare.
2613
e39fb971
TT
26142020-10-29 Tom Tromey <tom@tromey.com>
2615
2616 * progspace.c (program_space::~program_space): Don't call
2617 clear_program_space_solib_cache.
2618 (program_space::clear_solib_cache): Rename from
2619 clear_solib_cache.
2620 * solib.c (handle_solib_event): Update.
2621 * progspace.h (struct program_space) <clear_solib_cache>: New
2622 method.
2623 (clear_program_space_solib_cache): Don't declare.
2624
a42d7dd8
TT
26252020-10-29 Tom Tromey <tom@tromey.com>
2626
2627 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2628 * target.c (info_target_command): Update.
2629 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2630 (symbol_file_clear, reread_symbols): Update.
2631 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2632 * stabsread.c (scan_file_globals): Update.
2633 * solib.c (update_solib_list): Update.
2634 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2635 (svr4_fetch_objfile_link_map, enable_break)
2636 (svr4_relocate_main_executable)
2637 (svr4_iterate_over_objfiles_in_search_order): Update.
2638 * solib-frv.c (lm_base, enable_break)
2639 (frv_relocate_main_executable): Update.
2640 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2641 (frv_fetch_objfile_link_map): Update.
2642 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2643 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2644 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2645 * remote.c (remote_target::get_offsets): Update.
2646 (remote_target::start_remote)
2647 (extended_remote_target::post_attach): Update.
2648 * objfiles.c (entry_point_address_query): Update.
2649 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2650 * minsyms.c (get_symbol_leading_char): Update.
2651 * frame.c (inside_main_func): Update.
2652 * progspace.h (symfile_objfile): Remove macro.
2653
19f6550e
TT
26542020-10-29 Tom Tromey <tom@tromey.com>
2655
2656 * exec.c (exec_file_attach): Update.
2657 * progspace.c (program_space::exec_close): Update.
2658 * progspace.h (struct program_space) <ebfd>: Now a
2659 gdb_bfd_ref_ptr.
2660 <set_exec_bfd>: Change argument type.
2661 <exec_bfd>: Update.
2662
7e10abd1
TT
26632020-10-29 Tom Tromey <tom@tromey.com>
2664
2665 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2666 * symfile.c (reread_symbols): Update.
2667 * symfile-mem.c (add_symbol_file_from_memory_command)
2668 (add_vsyscall_page): Update.
2669 * source-cache.c (source_cache::get_plain_source_lines): Update.
2670 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2671 (svr4_current_sos_direct, svr4_exec_displacement)
2672 (svr4_relocate_main_executable): Update.
2673 (svr4_iterate_over_objfiles_in_search_order): Update.
2674 * solib-frv.c (enable_break2, enable_break): Update.
2675 * solib-dsbt.c (lm_base, enable_break): Update.
2676 * solib-darwin.c (find_program_interpreter)
2677 (darwin_solib_create_inferior_hook): Update.
2678 * sol-thread.c (rw_common, ps_pdmodel): Update.
2679 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2680 * remote.c (compare_sections_command)
2681 (remote_target::trace_set_readonly_regions): Update.
2682 * remote-sim.c (get_sim_inferior_data)
2683 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2684 (gdbsim_target_open, gdbsim_target::files_info): Update.
2685 * exec.h (exec_bfd): Remove macro.
2686 * progspace.c (initialize_progspace): Update.
2687 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2688 Update.
2689 * nto-procfs.c (nto_procfs_target::post_attach)
2690 (nto_procfs_target::create_inferior): Update.
2691 * maint.c (maintenance_info_sections): Update.
2692 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2693 Update.
2694 * infcmd.c (post_create_inferior): Update.
2695 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2696 (objfile_find_memory_regions): Update.
2697 * exec.c (validate_exec_file, exec_file_attach)
2698 (exec_read_partial_read_only, print_section_info): Update.
2699 * corelow.c (core_target_open): Update.
2700 * corefile.c (reopen_exec_file, validate_files): Update.
2701 * arm-tdep.c (gdb_print_insn_arm): Update.
2702 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2703 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2704 methods.
2705
b55221ab
TT
27062020-10-29 Tom Tromey <tom@tromey.com>
2707
2708 * progspace.h (current_target_sections): Remove macro.
2709 * solib-svr4.c (scan_dyntag): Update.
2710 * solib-dsbt.c (scan_dyntag): Update.
2711 * exec.c (exec_target::close): Update.
2712 (add_target_sections, add_target_sections_of_objfile)
2713 (remove_target_sections, exec_target::get_section_table)
2714 (exec_target::files_info, set_section_command)
2715 (exec_set_section_address, exec_target::has_memory)
2716 (exec_target::has_memory): Update.
2717
5a36e715
TT
27182020-10-29 Tom Tromey <tom@tromey.com>
2719
2720 * source-cache.c (source_cache::get_plain_source_lines): Use
2721 current_program_space.
2722 * corefile.c (reopen_exec_file): Use current_program_space.
2723 * exec.c (exec_file_attach): Use current_program_space.
2724 * exec.h (exec_bfd_mtime): Remove.
2725
784c8592
TT
27262020-10-29 Tom Tromey <tom@tromey.com>
2727
2728 * gcore.c (default_gcore_mach): Remove.
2729 (create_gcore_bfd): Update.
2730
8a4f1402
TT
27312020-10-29 Tom Tromey <tom@tromey.com>
2732
2733 * progspace.c (program_space::exec_close): New method, from
2734 exec_close in exec.c.
2735 * exec.c (exec_close): Move to progspace.c.
2736 (exec_target::close, exec_file_attach): Update.
2737 * progspace.h (struct program_space) <exec_close>: Declare
2738 method.
2739
c20cb686
TT
27402020-10-29 Tom Tromey <tom@tromey.com>
2741
2742 * progspace.h (struct program_space) <exec_filename>: Rename from
2743 pspace_exec_filename. Now a unique_xmalloc_ptr.
2744 * inferior.c (print_selected_inferior): Update.
2745 (print_inferior): Update.
2746 * mi/mi-main.c (print_one_inferior): Update.
2747 * exec.h (exec_filename): Remove macro.
2748 * corefile.c (get_exec_file): Update.
2749 * exec.c (exec_close): Update.
2750 (exec_file_attach): Update.
2751 * progspace.c (clone_program_space): Update.
2752 (print_program_space): Update.
2753
6be2a9ab
TT
27542020-10-29 Tom Tromey <tom@tromey.com>
2755
2756 * target-section.h (struct target_section): Add constructor.
2757 * exec.c (build_section_table, add_target_sections_of_objfile):
2758 Update.
2759 * corelow.c (core_target::build_file_mappings): Update.
2760
cfaa8f76
TBA
27612020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2762
2763 PR gdb/19318
2764 * inferior.c (detach_inferior_command): Restore the current thread.
2765 (kill_inferior_command): Ditto.
2766
1b00ef06
TV
27672020-10-28 Tom de Vries <tdevries@suse.de>
2768
2769 PR symtab/26772
2770 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2771 map, check it in the "best match" loop.
2772
7f40ce1a
SM
27732020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * m32c-tdep.c: Remove unused includes.
2776
5eb9e3f5
SM
27772020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2778
2779 * xtensa-tdep.c: Remove includes.
2780
b1d4d8d1
TBA
27812020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2782
2783 * breakpoint.c (struct condition_command_opts): New struct.
2784 (condition_command_option_defs): New static global.
2785 (make_condition_command_options_def_group): New function.
2786 (condition_completer): Update to consider the '-force' flag.
2787 (condition_command): Use gdb::option for the '-force' flag.
2788
bd24c5d6
TV
27892020-10-27 Tom de Vries <tdevries@suse.de>
2790
2791 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2792 symbols in section check.
2793
61eb46a4
TV
27942020-10-27 Tom de Vries <tdevries@suse.de>
2795
2796 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2797
733d554a
TBA
27982020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2799
2800 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2801 * breakpoint.c: Update the help text of the 'condition' and 'break'
2802 commands.
2803 (set_breakpoint_condition): Take a new bool parameter
2804 to control whether condition definition should be forced even when
2805 the condition expression is invalid in all of the current locations.
2806 (condition_command): Update the call to 'set_breakpoint_condition'.
2807 (find_condition_and_thread): Take the "-force-condition" flag into
2808 account.
2809 * linespec.c (linespec_keywords): Add "-force-condition" as an
2810 element.
2811 (FORCE_KEYWORD_INDEX): New #define.
2812 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2813 as a keyword.
2814 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2815 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2816 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2817 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2818
b5fa468f
TBA
28192020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2820
2821 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2822 * breakpoint.c (set_breakpoint_location_condition): New function.
2823 (set_breakpoint_condition): Disable a breakpoint location if parsing
2824 the condition string gives an error.
2825 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2826 (build_target_condition_list): Ditto.
2827 (build_target_command_list): Ditto.
2828 (build_bpstat_chain): Ditto.
2829 (print_one_breakpoint_location): Ditto.
2830 (print_one_breakpoint): Ditto.
2831 (breakpoint_1): Ditto.
2832 (bp_location::bp_location): Ditto.
2833 (locations_are_equal): Ditto.
2834 (update_breakpoint_locations): Ditto.
2835 (enable_disable_bp_num_loc): Ditto.
2836 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2837 (find_condition_and_thread_for_sals): New static function.
2838 (create_breakpoint): Call find_condition_and_thread_for_sals.
2839 (location_to_sals): Call find_condition_and_thread_for_sals instead
2840 of find_condition_and_thread.
2841
1c47ec3e
TV
28422020-10-26 Tom de Vries <tdevries@suse.de>
2843
2844 * dwarf2/read.c (process_full_comp_unit): Call
2845 dwarf2_find_base_address.
2846
6390859c
TT
28472020-10-26 Tom Tromey <tromey@adacore.com>
2848
2849 * gdbtypes.c (create_range_type): Revert previous patch. Add
2850 comment.
2851
d744f0f9
PA
28522020-10-26 Pedro Alves <pedro@palves.net>
2853
2854 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2855 (my_waitpid): Use gdb::handle_eintr.
2856
006811bc
SM
28572020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 * acinclude.m4: Update ptrace.m4 path.
2860 * ptrace.m4: Moved to gdbsupport.
2861
c75e31a1
SM
28622020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2865 instead of target_gdbarch.
2866
32495661
SM
28672020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2868
2869 * jit.c (jit_reader_load_command): Pass current inferior.
2870 (jit_inferior_init): Change parameter type to inferior, use it.
2871 (jit_inferior_created): Remove.
2872 (jit_inferior_created_hook): Pass inferior parameter down.
2873 (_initialize_jit): Use jit_inferior_created_hook instead of
2874 jit_inferior_created.
2875 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2876 * infrun.c (follow_exec): Pass inferior to
2877 jit_inferior_created_hook.
2878
3f66685e
SM
28792020-10-24 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2882 parameter and use it.
2883 (thread_db_inferior_created): Pass inferior argument.
2884
a0ff652f
SM
28852020-10-24 Simon Marchi <simon.marchi@efficios.com>
2886
2887 * aix-thread.c (aix_thread_inferior_created): Add inferior
2888 parameter.
2889 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2890 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2891 * jit.c (jit_inferior_created): Likewise.
2892 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2893 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2894 * observable.h (inferior_created): Likewise.
2895 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2896 * symfile-mem.c (add_vsyscall_page): Likewise.
2897 * infcmd.c (post_create_inferior): Pass inferior argument.
2898
3c67532c
JB
28992020-10-24 Joel Brobecker <brobecker@adacore.com>
2900
2901 GDB 10.1 released.
2902
8747316e
JB
29032020-10-23 Joel Brobecker <brobecker@adacore.com>
2904
2905 * ada-typeprint.c (ada_print_type): Remove superfluous second call
2906 to ada_check_typedef.
2907
1a0ea399
AB
29082020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2909
2910 * f-exp.y (f_parse): Rename to...
2911 (f_language::parser): ...this.
2912 * f-lang.c (f_get_encoding): Rename to...
2913 (f_language::get_encoding): ...this.
2914 (f_op_print_tab): Rename to...
2915 (f_language::op_print_tab): ...this.
2916 (exp_descriptor_f): Rename to...
2917 (f_language::exp_descriptor_tab): ...this.
2918 (class f_language): Moved to f-lang.h.
2919 (f_language::language_arch_info): New function, moved out of class
2920 declaration.
2921 (f_language::search_name_hash): Likewise.
2922 (f_language::lookup_symbol_nonlocal): Likewise.
2923 (f_language::get_symbol_name_matcher_inner): Likewise.
2924 * f-lang.h: Add 'valprint.h' include.
2925 (class f_language): Moved here from f-lang.c.
2926 * f-typeprint.c (f_type_print_args): Delete commented out
2927 declaration.
2928 (f_print_typedef): Rename to...
2929 (f_language::print_typedef): ...this.
2930 (f_print_type): Rename to...
2931 (f_language::print_type): ...this.
2932 (f_type_print_varspec_prefix): Delete declaration and rename to...
2933 (f_language::f_type_print_varspec_prefix): ...this.
2934 (f_type_print_varspec_suffix): Delete declaration and rename to...
2935 (f_language::f_type_print_varspec_suffix): ...this.
2936 (f_type_print_base): Delete declaration and rename to...
2937 (f_language::f_type_print_base): ...this.
2938 * f-valprint.c (f_value_print_inner): Rename to...
2939 (f_language::value_print_inner): ...this.
2940 * parse.c: Delete 'f-lang.h' include.
2941
88cefd9b
AB
29422020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * language.h (language_defn::print_type): Add variable names in
2945 declaration, and update header comment.
2946
5399db93
AB
29472020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * ada-lang.c (ada_language::demangle): Rename to...
2950 (ada_language::demangle_symbol): ...this.
2951 * c-lang.c (cplus_language::demangle): Rename to...
2952 (cplus_language::demangle_symbol): ...this.
2953 * d-lang.c (d_language::demangle): Rename to...
2954 (d_language::demangle_symbol): ...this.
2955 * f-lang.c (f_language::demangle): Rename to...
2956 (f_language::demangle_symbol): ...this.
2957 * go-lang.c (go_language::demangle): Rename to...
2958 (go_language::demangle_symbol): ...this.
2959 * language.c (language_demangle): Update call to demangle_symbol.
2960 (auto_or_unknown_language::demangle): Rename to...
2961 (auto_or_unknown_language::demangle_symbol): ...this.
2962 * language.h (language_defn::demangle): Rename to...
2963 (language_defn::demangle_symbol): ...this.
2964 * objc-lang.c (objc_language::demangle): Rename to...
2965 (objc_language::demangle_symbol): ...this.
2966 * rust-lang.c (rust_language::demangle): Rename to...
2967 (rust_language::demangle_symbol): ...this.
2968
4b2f86ef
AB
29692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2972 (iterate_over_file_blocks): Replace use of macro with the macros
2973 definition.
2974
e74b39de
AB
29752020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2976
2977 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2978 * valprint.c (maybe_print_array_index): Replace use of macro with
2979 the macros definition.
2980
00c696a6
AB
29812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2982
2983 * ada-lang.c (ada_language::print_array_index): Call value_print
2984 directly.
2985 * language.c (language_defn::print_array_index): Likewise.
2986 * language.h (LA_VALUE_PRINT): Delete.
2987 * valprint.c (value_print): Call value_print on the
2988 current_language directly.
2989
d3b67c56
AB
29902020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * language.h (LA_PRINT_TYPEDEF): Delete.
2993 * typeprint.c (typedef_print): Call print_typedef directly on the
2994 current_language object.
2995
790e2a12
AB
29962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2997
2998 * m2-exp.y (m2_parse): Rename to...
2999 (m2_language::parser): ...this. Update function signature.
3000 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
3001 (m2_op_print): Rename to...
3002 (m2_language::op_print_tab): ...this, and make const.
3003 (exp_descriptor_modula2): Rename to...
3004 (m2_language::exp_descriptor_modula2): ...this.
3005 (class m2_language): Move to m2-lang.h.
3006 (m2_language::language_arch_info): New function, moved out of
3007 class declaration.
3008 (m2_language::printchar): New function, body from m2_printchar.
3009 (m2_language::printstr): New function, moved out of class
3010 declaration.
3011 (m2_language::emitchar): Likewise.
3012 * m2-lang.h (m2_parse): Delete declaration.
3013 (m2_print_typedef): Delete declaration.
3014 (m2_value_print_inner): Delete declaration.
3015 (class m2_language): Class declaration moved from m2-lang.c,
3016 larger functions are left in m2-lang.c.
3017 * m2-typeprint.c (m2_print_typedef): Rename to...
3018 (m2_language::print_typedef): ...this, and update function
3019 signature.
3020 * m2-valprint.c (m2_value_print_inner): Rename to...
3021 (m2_language::value_print_inner): ...this, replace use of
3022 LA_PRINT_STRING with a direct call to printstr member function,
3023 and update recursive call.
3024
b01175fc
AB
30252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * language.c (default_is_string_type_p): Delete, implementation
3028 moved into auto_or_unknown_language::is_string_type_p.
3029 (unk_op_print_tab): Moved into
3030 auto_or_unknown_language::opcode_print_table.
3031 (unknown_language_arch_info): Delete, implementation moved into
3032 auto_or_unknown_language::language_arch_info.
3033 (class auto_or_unknown_language): New class, member functions
3034 copied from unknown_language class, with some updates.
3035 (class unknown_language): Most member functions moved into
3036 auto_or_unknown_language class. Inherit from
3037 auto_or_unknown_language class.
3038 (class auto_language): Inherit from auto_or_unknown_language.
3039 Delete most member functions.
3040
1a97fe8c
HD
30412020-10-22 Hannes Domani <ssbssa@yahoo.de>
3042
3043 * stabsread.c (read_member_functions): Remove gdb_assert.
3044
6b9d0dfd
HD
30452020-10-22 Hannes Domani <ssbssa@yahoo.de>
3046
3047 * gdbtypes.c (init_complex_type): Check target type name.
3048
4b4bb603
SM
30492020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * target-debug.h (target_debug_print_struct_target_ops_p):
3052 Remove.
3053 (target_debug_print_async_callback_ftype_p): Remove.
3054 (target_debug_print_struct_trace_state_variable_p): Remove.
3055 (target_debug_print_struct_traceframe_info_p): Remove.
3056 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3057 (target_debug_print_enum_btrace_format): Remove.
3058 (target_debug_print_enum_info_proc_what): Remove.
3059 (target_debug_print_thread_info_pp): Remove.
3060
24f5300a
SM
30612020-10-22 Simon Marchi <simon.marchi@efficios.com>
3062
3063 * target.h (struct target_ops) <make_corefile_notes>:
3064 Change return type to unique pointer.
3065 * target.c (dummy_make_corefile_notes): Likewise.
3066 * exec.c (struct exec_target) <make_corefile_notes>:
3067 Likewise.
3068 (exec_target::make_corefile_notes): Likewise.
3069 * procfs.c (class procfs_target) <make_corefile_notes>:
3070 Likewise.
3071 (procfs_do_thread_registers): Adjust to unique pointer.
3072 (struct procfs_corefile_thread_data): Add constructor.
3073 <note_data>: Change type to unique pointer.
3074 (procfs_corefile_thread_callback): Adjust to unique pointer.
3075 (procfs_target::make_corefile_notes): Change return type to
3076 unique pointer.
3077 * target-delegates.c: Re-generate.
3078 * gcore.c (write_gcore_file_1): Adjust.
3079 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3080 New.
3081
5fb4027f
TV
30822020-10-22 Tom de Vries <tdevries@suse.de>
3083
3084 * block.c (find_block_in_blockvector): Make sure the returned block
3085 contains pc.
3086
4a636814
SM
30872020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 PR gdb/26693
3090 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3091 parameter.
3092 (load_cu): Pass existing CU.
3093 (process_imported_unit_die): Likewise.
3094 (follow_die_offset): Likewise.
3095
1bd57575
LM
30962020-10-22 Luis Machado <luis.machado@linaro.org>
3097
3098 * corelow.c (core_target::xfer_partial): Also check for an empty
3099 m_core_unavailable_mappings vector.
3100
6b4c676c
AB
31012020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3104 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3105 * f-exp.y (arglist): Allow for a series of subranges.
3106 (subrange): Add cases for subranges with strides.
3107 * f-lang.c (value_f90_subarray): Catch use of array strides and
3108 throw an error.
3109 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3110
f2d8e4c5
AB
31112020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * expprint.c (print_subexp_standard): Change enum range_type to
3114 range_flag and rename variables to match.
3115 (dump_subexp_body_standard): Likewise.
3116 * expression.h (enum range_type): Rename to...
3117 (enum range_flag): ...this.
3118 (range_types): Rename to...
3119 (range_flags): ...this.
3120 * f-lang.c (value_f90_subarray): Change enum range_type to
3121 range_flag and rename variables to match.
3122 * parse.c (operator_length_standard): Likewise.
3123 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3124 range_type to range_flag.
3125 * rust-lang.c (rust_evaluate_funcall): Likewise.
3126 (rust_range): Likewise.
3127 (rust_compute_range): Likewise.
3128 (rust_subscript): Likewise.
3129
2f1b18db
AB
31302020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3131
3132 * expprint.c (print_subexp_standard): Update to reflect changes to
3133 enum range_type.
3134 (dump_subexp_body_standard): Likewise.
3135 * expression.h (enum range_type): Convert to a bit field enum, and
3136 make the enum unsigned.
3137 * f-exp.y (subrange): Update to reflect changes to enum
3138 range_type.
3139 * f-lang.c (value_f90_subarray): Likewise.
3140 * parse.c (operator_length_standard): Likewise.
3141 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3142 * rust-lang.c (rust_range): Likewise.
3143 (rust_compute_range): Likewise.
3144 (rust_subscript): Likewise.
3145
a46d1843
SM
31462020-10-21 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3149 (displaced_step_in_progress): Fix comment.
3150
c21f37a8
SM
31512020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3154 * gdbarch.c: Re-generate.
3155 * gdbarch.h: Re-generate.
3156 * gcore.c (write_gcore_file_1): Adjust.
3157 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3158 constructor.
3159 <note_data>: Change type to unique pointer.
3160 <abort_iteration>: Change type to bool.
3161 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3162 (fbsd_collect_thread_registers): Return void, adjust.
3163 (struct fbsd_corefile_thread_data): Add construtor.
3164 <note_data>: Change type to unique pointer.
3165 (fbsd_corefile_thread): Adjust.
3166 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3167 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3168 to unique pointer, adjust.
3169 (struct linux_collect_regset_section_cb_data): Add constructor.
3170 <note_data>: Change type to unique pointer.
3171 <abort_iteration>: Change type to bool.
3172 (linux_collect_thread_registers): Return void, adjust.
3173 (struct linux_corefile_thread_data): Add constructor.
3174 <note_data>: Change type to unique pointer.
3175 (linux_corefile_thread): Adjust.
3176 (linux_make_corefile_notes): Return unique pointer, adjust.
3177
07fbbd01
SM
31782020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3181 * gdbarch.c: Re-generate.
3182 * gdbarch.h: Re-generate.
3183 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3184 bool.
3185 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3186 Likewise.
3187 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3188 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3189 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3190 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3191
39535193
SM
31922020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3193
3194 * gdbarch.sh: Make generated predicates return bool.
3195 * gdbarch.c: Re-generate.
3196 * gdbarch.h: Re-generate.
3197
ad523d01
TT
31982020-10-20 Tom Tromey <tom@tromey.com>
3199
3200 * varobj-iter.h (struct varobj_item): Remove typedef.
3201
c4464ade
SM
32022020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * infrun.c (currently_stepping): Change int to bool
3205 (maybe_software_singlestep): Likewise.
3206 (show_stop_on_solib_events): Likewise.
3207 (stepping_past_nonsteppable_watchpoint): Likewise.
3208 (displaced_step_in_progress_any_inferior): Likewise.
3209 (displaced_step_in_progress_thread): Likewise.
3210 (keep_going_stepped_thread): Likewise.
3211 (thread_still_needs_step_over): Likewise.
3212 (start_step_over): Likewise.
3213 (do_target_resume): Likewise.
3214 (resume_1): Likewise.
3215 (clear_proceed_status): Likewise.
3216 (thread_still_needs_step_over_bp): Likewise.
3217 (proceed): Likewise.
3218 (switch_back_to_stepped_thread): Likewise.
3219 (adjust_pc_after_break): Likewise.
3220 (stepped_in_from): Likewise.
3221 (handle_stop_requested): Likewise.
3222 (handle_syscall_event): Likewise.
3223 (handle_no_resumed): Likewise.
3224 (handle_inferior_event): Likewise.
3225 (finish_step_over): Likewise.
3226 (handle_signal_stop): Likewise.
3227 (process_event_stop_test): Likewise.
3228
2eb20436
SM
32292020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * infrun.c (get_displaced_stepping_state): Fix comment.
3232
e0c45ded
AS
32332020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3234
3235 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3236
22cc388e
TT
32372020-10-19 Tom Tromey <tromey@adacore.com>
3238
3239 PR tui/26719
3240 * tui/tui-winsource.h (struct tui_source_window_base)
3241 <refresh_window>: Rename from refresh_pad.
3242 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3243 Rename from refresh_pad.
3244 (tui_source_window_base::show_source_content)
3245 (tui_source_window_base::do_scroll_horizontal): Update.
3246
3c6eb4d4
TBA
32472020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3248
3249 * thread.c (_initialize_thread): Fine-tune the help text of
3250 'info threads'.
3251
26703721
TBA
32522020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3253
3254 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3255
61c26be8
MS
32562020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3257
3258 * breakpoint.c (handle_jit_event): Add an argument, change how
3259 `jit_event_handler` is called.
3260
932539d7
TT
32612020-10-17 Tom Tromey <tom@tromey.com>
3262
3263 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3264 (scan_xcoff_symtab): Update.
3265 * psymtab.h (class psymtab_storage) <global_psymbols,
3266 static_psymbols, current_global_psymbols,
3267 current_static_psymbols>: Remove.
3268 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3269 (match_partial_symbol, lookup_partial_symbol): Update.
3270 (print_partial_symbols): Change parameters.
3271 (dump_psymtab, recursively_search_psymtabs)
3272 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3273 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3274 (concat): Remove.
3275 (end_psymtab_common): Simplify.
3276 (append_psymbol_to_list): Change parameters.
3277 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3278 (init_psymbol_list): Simplify.
3279 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3280 * psympriv.h (struct partial_symtab) <empty>: New method.
3281 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3282 Remove.
3283 <global_psymbols, static_psymbols>: New members.
3284 <add_psymbol>: New methods.
3285 (add_psymbol_to_list): Don't declare.
3286 (psymbol_placement): Move earlier.
3287 * mdebugread.c (parse_partial_symbols): Update.
3288 (handle_psymbol_enumerators): Change parameters.
3289 (mdebug_expand_psymtab): Update.
3290 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3291 (add_partial_symbol): Update.
3292 * dwarf2/index-write.c (write_psymbols): Change parameters.
3293 (write_one_signatured_type): Update.
3294 (recursively_count_psymbols): Update.
3295 (recursively_write_psymbols): Update.
3296 (class debug_names) <recursively_write_psymbols>: Update.
3297 <write_psymbols>: Change parameters.
3298 <write_one_signatured_type>: Update.
3299 * dbxread.c (read_dbx_symtab): Update.
3300 (dbx_end_psymtab): Use partial_symtab::empty.
3301 * ctfread.c (struct ctf_context) <pst>: New member.
3302 (create_partial_symtab): Set it.
3303 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3304 (scan_partial_symbols): Use the psymtab's context. Update.
3305
cfabbd35
TT
33062020-10-17 Tom Tromey <tom@tromey.com>
3307
3308 * valprint.c (generic_value_print): Remove comment.
3309 * m2-valprint.c (m2_value_print_inner): Remove comment.
3310 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3311 type.
3312
520596f2
TV
33132020-10-17 Tom de Vries <tdevries@suse.de>
3314
3315 PR symtab/26317
3316 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3317 symbol main.
3318
76547ab3
TV
33192020-10-14 Tom de Vries <tdevries@suse.de>
3320
3321 PR gdb/26733
3322 * solib.c (solib_contains_address_p): Handle
3323 'solib->sections == nullptr'.
3324
d3a07122
SM
33252020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3326
3327 PR gdb/26642
3328 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3329 target can't do async.
3330 * target.c (target_wait): Assert that we don't pass
3331 TARGET_WNOHANG to a target that can't async.
3332
1b71cfcf
KR
33332020-10-13 Kamil Rytarowski <n54@gmx.com>
3334
3335 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3336 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3337 * alpha-bsd-nat.c: Adjust include.
3338 * alpha-bsd-tdep.h: Adjust comment.
3339 * alpha-nbsd-tdep.c: Rename to ...
3340 * alpha-netbsd-tdep.c: ... this, adjust include.
3341 * amd64-nbsd-nat.c: Rename to ...
3342 * amd64-netbsd-nat.c: ... this, adjust include.
3343 * amd64-nbsd-tdep.c: Rename to ...
3344 * amd64-netbsd-tdep.c: ... this, adjust include.
3345 * amd64-tdep.h: Adjust include.
3346 * arm-nbsd-nat.c: Rename to ...
3347 * arm-netbsd-nat.c: ... this, adjust include.
3348 * arm-nbsd-tdep.c: Rename to ...
3349 * arm-netbsd-tdep.c: ... this, adjust include.
3350 * arm-nbsd-tdep.h: Rename to ...
3351 * arm-netbsd-tdep.h: ... this, adjust include.
3352 * configure.nat: Adjust file lists.
3353 * configure.tgt: Likewise.
3354 * hppa-nbsd-nat.c: Rename to ...
3355 * hppa-netbsd-nat.c: ... this, adjust include.
3356 * hppa-nbsd-tdep.c: Rename to ...
3357 * hppa-netbsd-tdep.c: ... this, adjust include.
3358 * i386-nbsd-nat.c: Rename to ...
3359 * i386-netbsd-nat.c: ... this, adjust include.
3360 * i386-nbsd-tdep.c: Rename to ...
3361 * i386-netbsd-tdep.c: ... this, adjust include.
3362 * m68k-bsd-nat.c: Adjust include.
3363 * mips-nbsd-nat.c: Rename to ...
3364 * mips-netbsd-nat.c: ... this, adjust include.
3365 * mips-nbsd-tdep.c: Rename to ...
3366 * mips-netbsd-tdep.c: ... this, adjust include.
3367 * mips-nbsd-tdep.h: Rename to ...
3368 * mips-netbsd-tdep.h: ... this.
3369 * nbsd-nat.c: Rename to ...
3370 * netbsd-nat.c: ... this, adjust include.
3371 * nbsd-nat.h: Rename to ...
3372 * netbsd-nat.h: ... this, adjust include.
3373 * nbsd-tdep.c: Rename to ...
3374 * netbsd-tdep.c: ... this, adjust include.
3375 * nbsd-tdep.h: Rename to ...
3376 * netbsd-tdep.h: ... this.
3377 * ppc-nbsd-nat.c: Rename to ...
3378 * ppc-netbsd-nat.c: ... this, adjust include.
3379 * ppc-nbsd-tdep.c: Rename to ...
3380 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3381 * ppc-nbsd-tdep.h: Rename to ...
3382 * ppc-netbsd-tdep.h: ... this.
3383 * sh-nbsd-nat.c: Rename to ...
3384 * sh-netbsd-nat.c: ... this, adjust include.
3385 * sh-nbsd-tdep.c: Rename to ...
3386 * sh-netbsd-tdep.c: ... this, adjust include.
3387 * sparc-nbsd-nat.c: Rename to ...
3388 * sparc-netbsd-nat.c: ... this.
3389 * sparc-nbsd-tdep.c: Rename to ...
3390 * sparc-netbsd-tdep.c: ... this, adjust include.
3391 * sparc64-nbsd-nat.c: Rename to ...
3392 * sparc64-netbsd-nat.c: ... this.
3393 * sparc64-nbsd-tdep.c: Rename to ...
3394 * sparc64-netbsd-tdep.c: ... this, adjust include.
3395 * sparc64-tdep.h: Adjust comment.
3396 * vax-bsd-nat.c: Adjust include.
3397 * vax-nbsd-tdep.c: Rename to ...
3398 * vax-netbsd-tdep.c: ... this, adjust include.
3399
d7a78e5c
TT
34002020-10-12 Tom Tromey <tom@tromey.com>
3401
3402 * target.h (struct target_ops) <get_section_table>: Update.
3403 (target_get_section_table): Update.
3404 * target.c (target_get_section_table, target_section_by_addr)
3405 (memory_xfer_partial_1): Update.
3406 * target-section.h (target_section_table): Now an alias.
3407 * target-delegates.c: Rebuild.
3408 * target-debug.h (target_debug_print_target_section_table_p):
3409 Rename from target_debug_print_struct_target_section_table_p.
3410 * symfile.c (build_section_addr_info_from_section_table): Update.
3411 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3412 * solib-svr4.c (scan_dyntag): Update.
3413 * solib-dsbt.c (scan_dyntag): Update.
3414 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3415 Update.
3416 * record-full.c (record_full_core_target::xfer_partial): Update.
3417 * progspace.h (struct program_space) <target_sections>: Update.
3418 * exec.h (print_section_info): Update.
3419 * exec.c (exec_target::close, build_section_table)
3420 (add_target_sections, add_target_sections_of_objfile)
3421 (remove_target_sections, exec_on_vfork)
3422 (section_table_available_memory)
3423 (section_table_xfer_memory_partial)
3424 (exec_target::get_section_table, exec_target::xfer_partial)
3425 (print_section_info, set_section_command)
3426 (exec_set_section_address, exec_target::has_memory): Update.
3427 * corelow.c (core_target::build_file_mappings)
3428 (core_target::xfer_partial, core_target::info_proc_mappings)
3429 (core_target::info_proc_mappings): Update.
3430 * bfd-target.c (class target_bfd): Update
3431
eda214ce
TT
34322020-10-12 Tom Tromey <tom@tromey.com>
3433
3434 * progspace.c (program_space::~program_space): Don't call
3435 clear_section_table.
3436 * exec.h (clear_section_table): Don't declare.
3437 * exec.c (exec_target::close): Update.
3438 (clear_section_table): Remove.
3439
91840ee3
TT
34402020-10-12 Tom Tromey <tom@tromey.com>
3441
3442 * exec.c (add_target_sections_of_objfile): Simplify.
3443
2d128614
TT
34442020-10-12 Tom Tromey <tom@tromey.com>
3445
3446 * solib.c (solib_map_sections): Update.
3447 * record-full.c (record_full_core_open_1): Update.
3448 * exec.h (build_section_table): Return a target_section_table.
3449 * exec.c (exec_file_attach): Update.
3450 (build_section_table): Return a target_section_table.
3451 * corelow.c (core_target::core_target): Update.
3452 * bfd-target.c (target_bfd::target_bfd): Update.
3453
bb2a6777
TT
34542020-10-12 Tom Tromey <tom@tromey.com>
3455
3456 * target.c (target_section_by_addr, memory_xfer_partial_1):
3457 Update.
3458 * target-section.h (struct target_section_table): Use
3459 std::vector.
3460 * symfile.h (build_section_addr_info_from_section_table): Take a
3461 target_section_table.
3462 * symfile.c (build_section_addr_info_from_section_table): Take a
3463 target_section_table.
3464 * solist.h (struct so_list) <sections>: Change type.
3465 <sections_end>: Remove.
3466 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3467 (solib_contains_address_p): Update.
3468 * solib-svr4.c (scan_dyntag): Update.
3469 * solib-dsbt.c (scan_dyntag): Update.
3470 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3471 Update.
3472 * record-full.c (record_full_core_start, record_full_core_end):
3473 Remove.
3474 (record_full_core_sections): New global.
3475 (record_full_core_open_1, record_full_core_target::xfer_partial):
3476 Update.
3477 * exec.h (build_section_table, section_table_xfer_memory_partial)
3478 (add_target_sections): Take a target_section_table.
3479 * exec.c (exec_file_attach, clear_section_table): Update.
3480 (resize_section_table): Remove.
3481 (build_section_table, add_target_sections): Take a
3482 target_section_table.
3483 (add_target_sections_of_objfile, remove_target_sections)
3484 (exec_on_vfork): Update.
3485 (section_table_available_memory): Take a target_section_table.
3486 (section_table_read_available_memory): Update.
3487 (section_table_xfer_memory_partial): Take a target_section_table.
3488 (print_section_info, set_section_command)
3489 (exec_set_section_address, exec_target::has_memory): Update.
3490 * corelow.c (class core_target) <m_core_section_table,
3491 m_core_file_mappings>: Remove braces.
3492 <~core_target>: Remove.
3493 (core_target::core_target): Update.
3494 (core_target::~core_target): Remove.
3495 (core_target::build_file_mappings)
3496 (core_target::xfer_memory_via_mappings)
3497 (core_target::xfer_partial, core_target::info_proc_mappings):
3498 Update.
3499 * bfd-target.c (target_bfd::xfer_partial): Update.
3500 (target_bfd::target_bfd): Update.
3501 (target_bfd::~target_bfd): Remove.
3502
7b466b10
TT
35032020-10-12 Tom Tromey <tom@tromey.com>
3504
3505 * target.h (struct target_section, struct target_section_table):
3506 Move to target-section.h.
3507 * target-section.h: New file.
3508
87a37e5e
PA
35092020-10-12 Pedro Alves <pedro@palves.net>
3510
3511 PR exp/26602
3512 * valops.c (struct struct_field_searcher): New.
3513 (update_search_result): Rename to ...
3514 (struct_field_searcher::update_result): ... this. Simplify
3515 prototype. Record all found fields.
3516 (do_search_struct_field): Rename to ...
3517 (struct_field_searcher::search): ... this. Simplify prototype.
3518 Maintain stack of visited baseclass path. Call update_result for
3519 fields too. Keep searching fields in baseclasses instead of
3520 stopping at the first found field.
3521 (search_struct_field): Use struct_field_searcher. When looking
3522 for fields, report ambiguous access attempts.
3523
9370fd51
AB
35242020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3525
3526 * frame.c (inside_main_func): Check full symbols as well as
3527 minimal symbols.
3528
59c8a30b
JB
35292020-10-09 Joel Brobecker <brobecker@adacore.com>
3530
3531 * ada-lang.c (advance_wild_match): Rewrite the function's
3532 description. Change the type of target0, t0 and t1 to char.
3533
7c184d33
TT
35342020-10-09 Tom Tromey <tromey@adacore.com>
3535
3536 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3537
5c4258f4
TT
35382020-10-09 Tom Tromey <tromey@adacore.com>
3539
3540 * ada-lang.h (ada_encode): Return std::string.
3541 * ada-lang.c (ada_encode_1): Return std::string.
3542 (ada_encode): Likewise.
3543 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3544 Update.
3545 * ada-exp.y (block_lookup, write_var_or_type): Update.
3546
3d87245c
HD
35472020-10-09 Hannes Domani <ssbssa@yahoo.de>
3548
3549 PR exp/26714
3550 * printcmd.c (print_formatted): Handle void results as
3551 unformatted prints.
3552
bbb826f5
AB
35532020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3554
3555 * arch/aarch32.c (aarch32_create_target_description): Release the
3556 target_desc_up as late as possible.
3557 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3558 * arch/amd64.c (amd64_create_target_description): Likewise.
3559 * arch/arc.c (arc_create_target_description): Return a
3560 target_desc_up, don't release it.
3561 * arch/arc.h (arc_create_target_description): Update declaration.
3562 (arc_lookup_target_description): Move target_desc_up into the
3563 cache, and return a borrowed pointer.
3564 * arch/arm.c (arm_create_target_description): Release the
3565 target_desc_up as late as possible.
3566 * arch/i386.c (i386_create_target_description): Likewise.
3567 * arch/riscv.h (riscv_create_target_description): Update
3568 declaration to match definition.
3569 * arch/tic6x.c (tic6x_create_target_description): Release the
3570 target_desc_up as late as possible.
3571
361cb219
AB
35722020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3573
3574 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3575 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3576
f5c4b229
JV
35772020-10-09 Jan Vrany <jan.vrany@labware.com>
3578
3579 * source.c (directory_command): Notify observers that "directories"
3580 parameter has changed.
3581
b2701685
TT
35822020-10-08 Tom Tromey <tom@tromey.com>
3583
3584 * cli/cli-cmds.c (print_disassembly): Style function name and
3585 addresses. Add _() wrappers.
3586
ada508b6
SV
35872020-10-08 Shahab Vahedi <shahab@synopsys.com>
3588
3589 * NEWS: Mention ARC support in GDBserver.
3590
51a948fd
AB
35912020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3592
3593 * arch/aarch32.c (aarch32_create_target_description): Release
3594 unique_ptr returned from allocate_target_description.
3595 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3596 * arch/amd64.c (amd64_create_target_description): Likewise.
3597 * arch/arc.c (arc_create_target_description): Likewise.
3598 * arch/arm.c (arm_create_target_description): Likewise.
3599 * arch/i386.c (i386_create_target_description): Likewise.
3600 * arch/riscv.c (riscv_create_target_description): Update return
3601 type. Handle allocate_target_description returning a unique_ptr.
3602 (riscv_lookup_target_description): Update to handle unique_ptr.
3603 * arch/tic6x.c (tic6x_create_target_description): Release
3604 unique_ptr returned from allocate_target_description.
3605 * features/microblaze-with-stack-protect.c: Regenerate.
3606 * features/microblaze.c: Regenerate.
3607 * features/mips-dsp-linux.c: Regenerate.
3608 * features/mips-linux.c: Regenerate.
3609 * features/mips64-dsp-linux.c: Regenerate.
3610 * features/mips64-linux.c: Regenerate.
3611 * features/nds32.c: Regenerate.
3612 * features/nios2.c: Regenerate.
3613 * features/or1k.c: Regenerate.
3614 * features/rs6000/powerpc-32.c: Regenerate.
3615 * features/rs6000/powerpc-32l.c: Regenerate.
3616 * features/rs6000/powerpc-403.c: Regenerate.
3617 * features/rs6000/powerpc-403gc.c: Regenerate.
3618 * features/rs6000/powerpc-405.c: Regenerate.
3619 * features/rs6000/powerpc-505.c: Regenerate.
3620 * features/rs6000/powerpc-601.c: Regenerate.
3621 * features/rs6000/powerpc-602.c: Regenerate.
3622 * features/rs6000/powerpc-603.c: Regenerate.
3623 * features/rs6000/powerpc-604.c: Regenerate.
3624 * features/rs6000/powerpc-64.c: Regenerate.
3625 * features/rs6000/powerpc-64l.c: Regenerate.
3626 * features/rs6000/powerpc-7400.c: Regenerate.
3627 * features/rs6000/powerpc-750.c: Regenerate.
3628 * features/rs6000/powerpc-860.c: Regenerate.
3629 * features/rs6000/powerpc-altivec32.c: Regenerate.
3630 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3631 * features/rs6000/powerpc-altivec64.c: Regenerate.
3632 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3633 * features/rs6000/powerpc-e500.c: Regenerate.
3634 * features/rs6000/powerpc-e500l.c: Regenerate.
3635 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3636 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3637 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3638 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3639 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3640 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3641 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3642 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3643 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3644 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3645 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3646 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3647 * features/rs6000/powerpc-vsx32.c: Regenerate.
3648 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3649 * features/rs6000/powerpc-vsx64.c: Regenerate.
3650 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3651 * features/rs6000/rs6000.c: Regenerate.
3652 * features/rx.c: Regenerate.
3653 * features/s390-gs-linux64.c: Regenerate.
3654 * features/s390-linux32.c: Regenerate.
3655 * features/s390-linux32v1.c: Regenerate.
3656 * features/s390-linux32v2.c: Regenerate.
3657 * features/s390-linux64.c: Regenerate.
3658 * features/s390-linux64v1.c: Regenerate.
3659 * features/s390-linux64v2.c: Regenerate.
3660 * features/s390-te-linux64.c: Regenerate.
3661 * features/s390-tevx-linux64.c: Regenerate.
3662 * features/s390-vx-linux64.c: Regenerate.
3663 * features/s390x-gs-linux64.c: Regenerate.
3664 * features/s390x-linux64.c: Regenerate.
3665 * features/s390x-linux64v1.c: Regenerate.
3666 * features/s390x-linux64v2.c: Regenerate.
3667 * features/s390x-te-linux64.c: Regenerate.
3668 * features/s390x-tevx-linux64.c: Regenerate.
3669 * features/s390x-vx-linux64.c: Regenerate.
3670 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3671 from allocate_target_description.
3672 * target-descriptions.c (allocate_target_description): Update
3673 return type.
3674 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3675 allocate_target_description.
3676
485c47e5
TT
36772020-10-07 Tom Tromey <tromey@adacore.com>
3678
3679 * unittests/search-memory-selftests.c: New file.
3680 * Makefile.in (SELFTESTS_SRCS): Add
3681 unittests/search-memory-selftests.c.
3682
3a135a91
TT
36832020-10-07 Tom Tromey <tromey@adacore.com>
3684
3685 PR gdb/16930:
3686 * findcmd.c (_initialize_mem_search): Mention that the range is
3687 inclusive.
3688
4a72de73
TT
36892020-10-07 Tom Tromey <tromey@adacore.com>
3690
3691 * target.h (simple_search_memory): Don't declare.
3692 * target.c (simple_search_memory): Move to gdbsupport.
3693 (default_search_memory): Update.
3694 * remote.c (remote_target::search_memory): Update.
3695
a038ffd8
SM
36962020-10-07 Simon Marchi <simon.marchi@efficios.com>
3697
3698 * Makefile.in (COMPILE): Add CXXFLAGS.
3699 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3700 (check-headers): Add CXXFLAGS.
3701
cc463201
AK
37022020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3703
3704 * arc-linux-tdep.h: New file.
3705 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3706 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3707 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3708 arc_linux_gregset, arc_linux_v2_regset,
3709 arc_linux_iterate_over_regset_sections,
3710 arc_linux_core_read_description): Implement.
3711 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3712 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3713 (arc_gdbarch_features_create): Add.
3714 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3715
e4bd363f
SV
37162020-10-07 Shahab Vahedi <shahab@synopsys.com>
3717
3718 * arch/arc.h: Rename "arc_gdbarch_features" to
3719 "arc_arch_features".
3720 * arc-tdep.h: Likewise.
3721 * arc-tdep.c: Likewise.
3722
b68bef99
TBA
37232020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3724
3725 * infcmd.c (attach_command): Remove the redundant call to
3726 `clear_proceed_status`.
3727
4641551a
KR
37282020-10-07 Kamil Rytarowski <n54@gmx.com>
3729
3730 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3731
91e5e8db
KR
37322020-10-07 Kamil Rytarowski <n54@gmx.com>
3733
3734 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3735 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3736 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3737
64c03bdb
SM
37382020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3739
3740 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3741 (_initialize_break_catch_sig): Don't allocate array.
3742
31a8f60f
AB
37432020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3744
3745 * symtab.c (find_pc_line): Return unmapped addresses when the
3746 requested address is also unmapped.
3747
9e6dbd8b
SM
37482020-10-05 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3751 tui/tui-out.h.
3752
a1d217e8
SM
37532020-10-05 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3756 type::is_vector instead of TYPE_VECTOR.
3757
7d144117
SM
37582020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3759
3760 * auto-load.c (auto_load_objfile_script_1): Don't use
3761 debugfile_holder as temporary variable when stripping drive
3762 letter.
3763
cd096ec8
HD
37642020-10-05 Hannes Domani <ssbssa@yahoo.de>
3765
3766 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3767 Add TYPE_CODE_COMPLEX.
3768 (amd64_windows_return_value): Fix types returned via XMM0.
3769
b58e7f72
AH
37702020-10-05 Alan Hayward <alan.hayward@arm.com>
3771
3772 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3773 AArch64/ARM maintainers.
3774
8d378f27
SM
37752020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3776
3777 * NEWS: Mention set/show debug event-loop.
3778
d5519913
TT
37792020-10-02 Tom Tromey <tromey@adacore.com>
3780
3781 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3782 REG_EXTENDED.
3783
18b67edc
SM
37842020-10-02 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3787 * procfs.c (procfs_inferior_created): Remove.
3788 (_initialize_procfs): Don't register procfs_inferior_created.
3789
6b01403b
SM
37902020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3791
3792 * async-event.c (invoke_async_signal_handlers): Add debug
3793 print.
3794 (check_async_event_handlers): Likewise.
3795 * event-top.c (show_debug_event_loop): New function.
3796 (_initialize_event_top): Register "set debug event-loop"
3797 setting.
3798
ba988419
SM
37992020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3800
3801 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3802 * debug.h: Remove.
3803 * infrun.c: Include gdbsupport/common-debug.h.
3804 * linux-nat.c: Likewise.
3805
db20ebdf
SM
38062020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3807
3808 * async-event.h (create_async_signal_handler): Add name
3809 parameter.
3810 (create_async_event_handler): Likewise.
3811 * async-event.c (struct async_signal_handler) <name>: New field.
3812 (struct async_event_handler) <name>: New field.
3813 (create_async_signal_handler): Assign name.
3814 (create_async_event_handler): Assign name.
3815 * event-top.c (async_init_signals): Pass name when creating
3816 handler.
3817 * infrun.c (_initialize_infrun): Likewise.
3818 * record-btrace.c (record_btrace_push_target): Likewise.
3819 * record-full.c (record_full_open): Likewise.
3820 * remote-notif.c (remote_notif_state_allocate): Likewise.
3821 * remote.c (remote_target::open_1): Likewise.
3822 * tui/tui-win.c (tui_initialize_win): Likewise.
3823
2554f6f5
SM
38242020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3825
3826 * async-event.c (initialize_async_signal_handlers): Pass name to
3827 add_file_handler
3828 * event-top.c (ui_register_input_event_handler): Likewise.
3829 * linux-nat.c (linux_nat_target::async): Likewise.
3830 * run-on-main-thread.c (_initialize_run_on_main_thread):
3831 Likewise
3832 * ser-base.c (reschedule): Likewise.
3833 (ser_base_async): Likewise.
3834 * tui/tui-io.c: Likewise.
3835 * top.h (struct ui) <num>: New field.
3836 * top.c (highest_ui_num): New variable.
3837 (ui::ui): Initialize num.
3838
a7aba266
SM
38392020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3840
3841 * observable.h <inferior_created>: Remove parameters. Update all
3842 listeners.
3843 * inferior.h (post_create_inferior): Remove target parameter.
3844 Update all callers.
3845
048fde1e 38462020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3847
3848 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3849 and DW_MACRO_undef_strx.
3850 (dwarf_decode_macros): Likewise
3851 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3852 which is the value of DW_AT_str_offsets_base.
3853 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3854 str_offsets_base.
3855
064280be
KR
38562020-10-01 Kamil Rytarowski <n54@gmx.com>
3857
3858 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3859
6ff33035
KR
38602020-10-01 Kamil Rytarowski <n54@gmx.com>
3861
3862 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3863 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3864
1eb6eb79
KR
38652020-10-01 Kamil Rytarowski <n54@gmx.com>
3866
3867 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3868
95eb9e54
TV
38692020-09-30 Tom de Vries <tdevries@suse.de>
3870
3871 PR symtab/26683
3872 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3873
cae21f8e
TT
38742020-09-30 Tom Tromey <tromey@adacore.com>
3875
3876 * dwarf2/read.c (handle_variant): Use constant_value.
3877
529908cb
TT
38782020-09-29 Tom Tromey <tom@tromey.com>
3879
3880 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3881 (read_file_scope, dwarf2_get_pc_bounds)
3882 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3883 (read_structure_type, handle_struct_member_die)
3884 (read_enumeration_type, read_array_type, read_set_type)
3885 (read_tag_pointer_type, read_tag_reference_type)
3886 (read_subroutine_type, read_base_type, read_subrange_type)
3887 (read_full_die_1, partial_die_info::read)
3888 (partial_die_info::read, by, new_symbol)
3889 (dwarf2_const_value_data, dwarf2_const_value_attr)
3890 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3891 (prepare_one_comp_unit): Update.
3892 * dwarf2/attribute.h (DW_UNSND): Remove.
3893
c45bc3f8
TT
38942020-09-29 Tom Tromey <tom@tromey.com>
3895
3896 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3897 (read_subroutine_type, partial_die_info::read)
3898 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3899 (dwarf2_add_member_fn): Update.
3900 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3901 * dwarf2/attribute.c (attribute::as_boolean): New method.
3902
23dca5c3
TT
39032020-09-29 Tom Tromey <tom@tromey.com>
3904
3905 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
3906 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
3907 method.
3908 * dwarf2/attribute.c (attribute::as_virtuality): New method.
3909
52c14d11
TT
39102020-09-29 Tom Tromey <tom@tromey.com>
3911
3912 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3913 the attribute's form.
3914
e8e5c158
TT
39152020-09-29 Tom Tromey <tom@tromey.com>
3916
3917 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3918 (dwarf2_add_member_fn): Update.
3919 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3920 * dwarf2/attribute.c (attribute::defaulted): New method, from
3921 is_valid_DW_AT_defaulted.
3922
d4df075e
TT
39232020-09-29 Tom Tromey <tom@tromey.com>
3924
3925 * dwarf2/read.c (dw2_get_file_names_reader)
3926 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3927 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3928 (dwarf2_symbol_mark_computed): Use as_unsigned.
3929 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3930 method.
3931 <form_is_section_offset>: Update comment.
3932
bf23a268
TT
39332020-09-29 Tom Tromey <tom@tromey.com>
3934
3935 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3936 dwarf2_default_access_attribute. Look up attribute.
3937 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3938 Update.
3939
7a5f294d
TT
39402020-09-29 Tom Tromey <tom@tromey.com>
3941
3942 * dwarf2/read.c (skip_one_die): Update.
3943 (read_full_die_1): Change how reprocessing is done.
3944 (partial_die_info::read): Update.
3945 (read_attribute_value): Remove need_reprocess parameter.
3946 (read_attribute): Likewise.
3947 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3948 New method.
3949
36d378cf
TT
39502020-09-29 Tom Tromey <tom@tromey.com>
3951
3952 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3953 (dwarf2_const_value_attr, dump_die_shallow)
3954 (dwarf2_fetch_constant_bytes): Update.
3955 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3956 comment.
3957 <set_address>: New method.
3958 (DW_ADDR): Remove.
3959 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3960 (attribute::as_string, attribute::as_address): Add assert.
3961
fe56917a
TT
39622020-09-29 Tom Tromey <tom@tromey.com>
3963
3964 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3965 (read_attribute_reprocess, read_attribute_value): Update.
3966 (read_attribute): Clear requires_reprocessing.
3967 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3968 form_requires_reprocessing>: New methods.
3969 <string_init>: Clear requires_reprocessing.
3970 <set_unsigned_reprocess>: New method.
3971 <name>: Shrink by one bit.
3972 <requires_reprocessing>: New member.
3973 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3974 method.
3975
414ad644
TT
39762020-09-29 Tom Tromey <tom@tromey.com>
3977
3978 * dwarf2/read.c (read_attribute_value): Update.
3979 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3980 set_unsigned>: New methods.
3981 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3982
1bc397c5
TT
39832020-09-29 Tom Tromey <tom@tromey.com>
3984
3985 * dwarf2/read.c (get_alignment, read_array_order)
3986 (read_attribute_value, dwarf2_const_value_attr)
3987 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3988 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3989 New methods.
3990 (DW_SND): Remove.
3991
630ed6b9
TT
39922020-09-29 Tom Tromey <tom@tromey.com>
3993
3994 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3995 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3996 Update.
3997 * dwarf2/attribute.h (struct attribute) <as_signature,
3998 set_signature>: New methods.
3999 (DW_SIGNATURE): Remove.
4000
9d2246fc
TT
40012020-09-29 Tom Tromey <tom@tromey.com>
4002
4003 * dwarf2/read.c (read_call_site_scope)
4004 (handle_data_member_location, dwarf2_add_member_fn)
4005 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4006 (partial_die_info::read, read_attribute_value)
4007 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
4008 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
4009 (dwarf2_symbol_mark_computed): Update.
4010 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
4011 methods.
4012 (DW_BLOCK): Remove.
4013 * dwarf2/attribute.c (attribute::form_is_block): Add
4014 DW_FORM_data16.
4015
c6481205
TT
40162020-09-29 Tom Tromey <tom@tromey.com>
4017
4018 * dwarf2/read.c (read_cutu_die_from_dwo)
4019 (read_attribute_reprocess, read_attribute_value, read_attribute)
4020 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
4021 (dwarf2_fetch_constant_bytes): Update.
4022 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
4023 <set_string_noncanonical, set_string_canonical>: New methods.
4024 <string_is_canonical>: Update comment.
4025 <canonical_string_p>: Add assert.
4026 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
4027 * dwarf2/attribute.c (attribute::form_is_string): New method.
4028 (attribute::string): Use it.
4029
3b64bf15
TT
40302020-09-29 Tom Tromey <tom@tromey.com>
4031
4032 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
4033 (dump_die_shallow): Use canonical_string_p.
4034 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4035 method.
4036
2c830f54
TT
40372020-09-29 Tom Tromey <tom@tromey.com>
4038
4039 * dwarf2/read.c (partial_die_info::read)
4040 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4041 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4042 attribute::as_string.
4043
6c412691
TT
40442020-09-29 Tom Tromey <tom@tromey.com>
4045
4046 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4047 DW_ADDR.
4048 (attribute::string): Don't use DW_STRING.
4049 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4050 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4051
95f982e5
TT
40522020-09-29 Tom Tromey <tom@tromey.com>
4053
4054 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4055 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4056 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4057 * dwarf2/attribute.h (struct attribute): Rename methods.
4058 * dwarf2/attribute.c (attribute::as_address): Rename from
4059 value_as_address.
4060 (attribute::as_string): Rename from value_as_string.
4061
f800b00e
TT
40622020-09-29 Tom Tromey <tom@tromey.com>
4063
4064 * dwarf2/read.c (partial_die_info::read) <case
4065 DW_AT_linkage_name>: Use value_as_string.
4066 (dwarf2_string_attr): Use value_as_string.
4067 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4068 method.
4069 * dwarf2/attribute.c (attribute::value_as_string): New method.
4070
de38d64a
PA
40712020-09-29 Pedro Alves <pedro@palves.net>
4072
4073 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4074 defined before using '#pragma GCC diagnostic' instead of checking
4075 __clang__.
4076
9aed480c
TT
40772020-09-28 Tom Tromey <tom@tromey.com>
4078
4079 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4080 (handle_signal_stop): Update.
4081 * procfs.c (procfs_target::insert_watchpoint): Update.
4082 * target.h (target_have_steppable_watchpoint): Now a function.
4083
8a3ecb79
TT
40842020-09-28 Tom Tromey <tom@tromey.com>
4085
4086 * infrun.c (set_schedlock_func): Update.
4087 * target.h (target_can_lock_scheduler): Now a function.
4088
55f6301a
TT
40892020-09-28 Tom Tromey <tom@tromey.com>
4090
4091 * inferior.h (class inferior) <has_execution>: Update.
4092 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4093 * valops.c (find_function_in_inferior)
4094 (value_allocate_space_in_inferior): Update.
4095 * top.c (kill_or_detach): Update.
4096 * target.c (target_preopen, set_target_permissions): Update.
4097 (target_has_execution_current): Remove.
4098 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4099 Update.
4100 * solib.c (update_solib_list, reload_shared_libraries): Update.
4101 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4102 * solib-dsbt.c (enable_break): Update.
4103 * score-tdep.c (score7_fetch_inst): Update.
4104 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4105 Update.
4106 * remote.c (remote_target::start_remote)
4107 (remote_target::remote_check_symbols, remote_target::open_1)
4108 (remote_target::remote_detach_1, remote_target::verify_memory)
4109 (remote_target::xfer_partial, remote_target::read_description)
4110 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4111 * record-full.c (record_full_open_1): Update.
4112 * record-btrace.c (record_btrace_target_open): Update.
4113 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4114 (value_nsstring): Update.
4115 * linux-thread-db.c (add_thread_db_info)
4116 (thread_db_find_new_threads_silently, check_thread_db_callback)
4117 (try_thread_db_load_1, record_thread): Update.
4118 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4119 Update.
4120 * linux-fork.c (checkpoint_command): Update.
4121 * infrun.c (set_non_stop, set_observer_mode)
4122 (check_multi_target_resumption, for_each_just_stopped_thread)
4123 (maybe_remove_breakpoints, normal_stop)
4124 (class infcall_suspend_state): Update.
4125 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4126 (info_program_command, attach_command): Update.
4127 * infcall.c (call_function_by_hand_dummy): Update.
4128 * inf-loop.c (inferior_event_handler): Update.
4129 * gcore.c (gcore_command, derive_heap_segment): Update.
4130 * exec.c (exec_file_command): Update.
4131 * eval.c (evaluate_subexp): Update.
4132 * compile/compile.c (compile_to_object): Update.
4133 * cli/cli-dump.c (restore_command): Update.
4134 * breakpoint.c (update_watchpoint)
4135 (update_inserted_breakpoint_locations)
4136 (insert_breakpoint_locations, get_bpstat_thread): Update.
4137 * target.h (target_has_execution): Remove macro.
4138 (target_has_execution_current): Don't declare.
4139 (target_has_execution): Rename from target_has_execution_1. Add
4140 argument default.
4141
05374cfd
TT
41422020-09-28 Tom Tromey <tom@tromey.com>
4143
4144 * mi/mi-main.c (exec_reverse_continue)
4145 (mi_cmd_list_target_features): Update.
4146 * infrun.c (set_exec_direction_func): Update.
4147 * target.c (default_execution_direction): Update.
4148 * reverse.c (exec_reverse_once): Update.
4149 * target.h (target_can_execute_reverse): Now a function.
4150
9dccd06e
TT
41512020-09-28 Tom Tromey <tom@tromey.com>
4152
4153 * tui/tui-regs.c (tui_get_register)
4154 (tui_data_window::show_registers): Update.
4155 * thread.c (scoped_restore_current_thread::restore)
4156 (scoped_restore_current_thread::scoped_restore_current_thread):
4157 Update.
4158 * regcache-dump.c (regcache_print): Update.
4159 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4160 Update.
4161 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4162 * mep-tdep.c (current_me_module, current_options): Update.
4163 * linux-thread-db.c (thread_db_load): Update.
4164 * infcmd.c (registers_info, info_vector_command)
4165 (info_float_command): Update.
4166 * ia64-tdep.c (ia64_frame_prev_register)
4167 (ia64_sigtramp_frame_prev_register): Update.
4168 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4169 * gcore.c (derive_stack_segment): Update.
4170 * frame.c (get_current_frame, has_stack_frames): Update.
4171 * findvar.c (language_defn::read_var_value): Update.
4172 * arm-tdep.c (arm_pc_is_thumb): Update.
4173 * target.c (target_has_registers): Rename from
4174 target_has_registers_1.
4175 * target.h (target_has_registers): Remove macro.
4176 (target_has_registers): Rename from target_has_registers_1.
4177
841de120
TT
41782020-09-28 Tom Tromey <tom@tromey.com>
4179
4180 * windows-tdep.c (tlb_make_value): Update.
4181 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4182 * thread.c (scoped_restore_current_thread::restore)
4183 (scoped_restore_current_thread::scoped_restore_current_thread)
4184 (thread_command): Update.
4185 * stack.c (backtrace_command_1, frame_apply_level_command)
4186 (frame_apply_all_command, frame_apply_command): Update.
4187 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4188 Update.
4189 * gcore.c (derive_stack_segment): Update.
4190 * frame.c (get_current_frame, has_stack_frames): Update.
4191 * auxv.c (info_auxv_command): Update.
4192 * ada-tasks.c (ada_build_task_list): Update.
4193 * target.c (target_has_stack): Rename from target_has_stack_1.
4194 * target.h (target_has_stack): Remove macro.
4195 (target_has_stack): Rename from target_has_stack_1.
4196
a739972c
TT
41972020-09-28 Tom Tromey <tom@tromey.com>
4198
4199 * target.c (target_has_memory): Rename from target_has_memory_1.
4200 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4201 * thread.c (scoped_restore_current_thread::restore)
4202 (scoped_restore_current_thread::scoped_restore_current_thread):
4203 Update.
4204 * frame.c (get_current_frame, has_stack_frames): Update.
4205 * target.h (target_has_memory): Remove macro.
4206 (target_has_memory): Rename from target_has_memory_1.
4207
5b8a4776
TT
42082020-09-28 Tom Tromey <tom@tromey.com>
4209
4210 * target.c (target_has_all_memory_1): Remove.
4211 * target.h (target_has_all_memory): Remove define.
4212 (target_has_all_memory_1): Don't declare.
4213
bd356ec6
SM
42142020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4215
4216 * ser-base.c: Adjust comments formatting.
4217
2c72d5e5
TT
42182020-09-27 Tom Tromey <tom@tromey.com>
4219
4220 PR tui/25342:
4221 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4222
35a98237
TT
42232020-09-27 Tom Tromey <tom@tromey.com>
4224
4225 PR tui/25342:
4226 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4227
9e820dec
TT
42282020-09-27 Tom Tromey <tom@tromey.com>
4229
4230 * unittests/tui-selftests.c: Update.
4231 * tui/tui-winsource.h (struct tui_source_window_base)
4232 <extra_margin, show_line_number, refresh_pad>: New methods.
4233 <m_max_length, m_pad>: New members.
4234 (tui_copy_source_line): Update.
4235 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4236 first_col, line_width, ndigits parameters. Add length.
4237 (tui_source_window_base::show_source_line): Write to pad. Line
4238 number now 0-based.
4239 (tui_source_window_base::refresh_pad): New method.
4240 (tui_source_window_base::show_source_content): Write to pad. Call
4241 refresh_pad.
4242 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4243 not refill.
4244 (tui_source_window_base::update_exec_info): Call
4245 show_line_number.
4246 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4247 method.
4248 <m_digits>: New member.
4249 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4250 and m_max_length.
4251 (tui_source_window::show_line_number): New method.
4252 * tui/tui-io.h (tui_puts): Fix comment.
4253 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4254 m_max_length.
4255
c15c15c8
TT
42562020-09-27 Tom Tromey <tom@tromey.com>
4257
4258 * tui/tui-winsource.c
4259 (tui_source_window_base::set_is_exec_point_at): Don't call
4260 show_source_line.
4261
149830c1
TT
42622020-09-27 Tom Tromey <tom@tromey.com>
4263
4264 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4265 method.
4266 <erase>: Update.
4267 <cursor_x, cursor_y>: Remove.
4268 <m_inner_window>: New member.
4269 (tui_py_window::rerender): Create inner window.
4270 (tui_py_window::output): Write to inner window.
4271
8f9929bb
GR
42722020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4273
4274 PR python/26586
4275 * cli/cli-script.c (execute_control_commands): don't set
4276 instream to nullptr here as this breaks the from_tty argument
4277 to gdb.execute in Python.
4278 (execute_user_command): set instream to nullptr here instead.
4279
956bdb59
SM
42802020-09-25 Simon Marchi <simon.marchi@efficios.com>
4281
4282 * infrun.h (infrun_debug_printf): Fix formatting.
4283 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4284
3b93626b
SJ
42852020-09-25 Saagar Jha <saagar@saagarjha.com>
4286
4287 * compile/compile-object-load.h (struct munmap_list): Add
4288 explicitly-defined move constructor.
4289
b551a89f
TT
42902020-09-24 Tom Tromey <tromey@adacore.com>
4291
4292 PR tui/26638:
4293 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4294 method.
4295 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4296 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4297 (tui_prev_win): Rewrite.
4298
99bb393f
HD
42992020-09-23 Hannes Domani <ssbssa@yahoo.de>
4300
4301 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4302 in WOW64 processes as SIGINT.
4303 * nat/windows-nat.h: Make wow64_process a shared variable.
4304 * windows-nat.c: Remove static wow64_process variable.
4305
20a5fcbd
TT
43062020-09-23 Tom Tromey <tom@tromey.com>
4307
4308 PR symtab/25470:
4309 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4310 offset and bit size.
4311 * printcmd.c (print_scalar_formatted): Handle zero-length
4312 integer.
4313 (print_scalar_formatted): Use bit_size_differs_p.
4314 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4315 constant.
4316 (union type_specific): <int_stuff>: New member.
4317 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4318 methods.
4319 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4320 TYPE_SPECIFIC_FIELD.
4321 (recursive_dump_type, copy_type_recursive): Update.
4322 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4323 DW_AT_data_bit_offset.
4324
bac51ab7
TT
43252020-09-23 Tom Tromey <tom@tromey.com>
4326
4327 * utils.h (class gdb_argv): Add move operators.
4328 <append>: New methods.
4329 * compile/compile.c (build_argc_argv): Remove.
4330 (compile_args_argc): Remove.
4331 (compile_args_argv): Change type.
4332 (set_compile_args): Simplify.
4333 (append_args): Remove.
4334 (filter_args): Remove argcp parameter.
4335 (get_args): Return gdb_argv. Simplify.
4336 (compile_to_object): Update.
4337
92677124
TT
43382020-09-23 Tom Tromey <tom@tromey.com>
4339
4340 * compile/compile-object-run.c (do_module_cleanup)
4341 <~do_module_cleanup> :Remove.
4342 (do_module_cleanup): Update.
4343 * compile/compile-object-load.h (struct munmap_list): Add move
4344 assignment operator.
4345 <source_file>: Now a std::string.
4346 <munmap_list>: Rename. No longer a pointer.
4347 * compile/compile-object-load.c (struct setup_sections_data): Add
4348 constructor.
4349 <setup_one_section>: Declare.
4350 <munmap_list>: Move earlier.
4351 <m_bfd>: New member.
4352 <m_last_size, m_last_section_first, m_last_prot,
4353 m_last_max_alignment>: Rename, add initializers where needed.
4354 (setup_sections_data::setup_one_section): Rename from
4355 setup_sections. Update.
4356 (compile_object_load): Update. Don't use bfd_map_over_sections.
4357
e616f60a
TT
43582020-09-23 Tom Tromey <tom@tromey.com>
4359
4360 * compile/compile-object-run.c (struct do_module_cleanup): Add
4361 parameters to constructor. Update destructor.
4362 <source_file, scope, scope_data, out_value_type, out_value_addr,
4363 munmap_list_head, objfile_name_string>: Remove.
4364 <module>: New member.
4365 (do_module_cleanup): Update.
4366 (compile_object_run): Update.
4367
e947a848
TT
43682020-09-23 Tom Tromey <tom@tromey.com>
4369
4370 * compile/compile.c (eval_compile_command): Update.
4371 * compile/compile-object-run.h (compile_object_run): Take a
4372 compile_module_up.
4373 * compile/compile-object-run.c (compile_object_run): Take a
4374 compile_module_up.
4375 * compile/compile-object-load.h (struct compile_module): Add
4376 constructor, destructor.
4377 (compile_module_up): New typedef.
4378 (compile_object_load): Return compile_object_up.
4379 * compile/compile-object-load.c (compile_object_load): Return
4380 compile_module_up.
4381
0dbf6ee6
TT
43822020-09-23 Tom Tromey <tom@tromey.com>
4383
4384 * compile/compile-object-run.c (struct do_module_cleanup): Add
4385 constructor, destructor.
4386 <objfile_name_string>: Don't use struct hack.
4387 (do_module_cleanup): Use delete.
4388 (compile_object_run): Use new.
4389
ebe824f5
TT
43902020-09-23 Tom Tromey <tom@tromey.com>
4391
4392 * compile/compile-cplus-types.c
4393 (compile_cplus_convert_struct_or_union): Use std::vector.
4394 (compile_cplus_convert_func): Likewise.
4395 * compile/compile-c-types.c (convert_func): Use std::vector.
4396
5dd918d9
TT
43972020-09-21 Tom Tromey <tromey@adacore.com>
4398
4399 * sparc-tdep.c (sparc32_skip_prologue): Use
4400 skip_prologue_using_sal.
4401
5486c517
TT
44022020-09-19 Tom Tromey <tom@tromey.com>
4403
4404 * symfile.c (add_section_size_callback): Remove.
4405 (load_one_section): Rename from load_section_callback. Change
4406 parameters.
4407 (generic_load): Use foreach.
4408
8a6bb1d1
TT
44092020-09-19 Tom Tromey <tom@tromey.com>
4410
4411 * exec.c (add_to_section_table): Remove.
4412 (build_section_table): Use foreach.
4413
08f93a1a
TT
44142020-09-19 Tom Tromey <tom@tromey.com>
4415
4416 * elfread.c (elf_locate_sections): Change parameters.
4417 (elf_symfile_read): Use foreach.
4418
03cd72b8
TT
44192020-09-19 Tom Tromey <tom@tromey.com>
4420
4421 * cli/cli-dump.c (struct callback_data): Remove.
4422 (restore_one_section): Rename from restore_section_callback.
4423 Change parameters.
4424 (restore_binary_file): Change parameters.
4425 (restore_command): Use foreach.
4426
f4f2b85f
TT
44272020-09-19 Tom Tromey <tom@tromey.com>
4428
4429 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4430 (gcore_copy_callback): Likewise.
4431 (gcore_memory_sections): Use foreach.
4432
b35c1d1c
TT
44332020-09-19 Tom Tromey <tom@tromey.com>
4434
4435 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4436 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4437 parameters.
4438 (generic_elf_osabi_sniffer): Use foreach.
4439 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4440 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4441
5bb6e9dd
TT
44422020-09-19 Tom Tromey <tom@tromey.com>
4443
4444 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4445 (dwarf2_get_dwz_file): Use foreach.
4446 (dwarf2_locate_dwo_sections): Change parameters.
4447 (open_and_init_dwo_file): Use foreach.
4448 (dwarf2_locate_common_dwp_sections): Change parameters.
4449 (open_and_init_dwp_file): Use foreach.
4450
ad7277da
TT
44512020-09-19 Tom Tromey <tom@tromey.com>
4452
4453 * symfile.h: (find_lowest_section): Don't declare.
4454 * symfile.c (find_lowest_section): Now static. Change
4455 parameters.
4456 (struct place_section_arg): Remove.
4457 (place_section): Change parameters.
4458 (addr_info_make_relative): Use foreach.
4459 (symfile_dummy_outputs): Remove.
4460 (default_symfile_relocate): Use foreach.
4461
cb814f2e
TT
44622020-09-19 Tom Tromey <tom@tromey.com>
4463
4464 * objfiles.c (add_to_objfile_sections): Rename from
4465 add_to_objfile_sections_full.
4466 (add_to_objfile_sections): Remove.
4467 (build_objfile_section_table): Use foreach.
4468
3cabfd26
TT
44692020-09-19 Tom Tromey <tom@tromey.com>
4470
4471 * stap-probe.c (get_stap_base_address_1): Remove.
4472 (get_stap_base_address): Use foreach.
4473
1ce51eb5
TT
44742020-09-19 Tom Tromey <tom@tromey.com>
4475
4476 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4477 parameters.
4478 (gdb_bfd_close_or_warn): Use foreach.
4479
a190fabb
TT
44802020-09-19 Tom Tromey <tom@tromey.com>
4481
4482 * corelow.c (add_to_thread_list): Change parameters.
4483 (core_target_open): Use foreach.
4484
cafb0d81
TT
44852020-09-19 Tom Tromey <tom@tromey.com>
4486
4487 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4488 existing function.
4489
c8d5abea
AB
44902020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4493 for arrays.
4494
6d816919
AB
44952020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4496
4497 * eval.c: Remove 'f-lang.h' include.
4498 (value_f90_subarray): Moved to f-lang.c.
4499 (eval_call): Renamed to...
4500 (evaluate_subexp_do_call): ...this, is no longer static, header
4501 comment moved into header file.
4502 (evaluate_funcall): Update call to eval_call.
4503 (skip_undetermined_arglist): Moved to f-lang.c.
4504 (fortran_value_subarray): Likewise.
4505 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4506 moved to evaluate_subexp_f.
4507 (calc_f77_array_dims): Moved to f-lang.c
4508 * expprint.c (print_subexp_funcall): New function.
4509 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4510 moved to print_subexp_f, OP_FUNCALL uses new function.
4511 (dump_subexp_body_funcall): New function.
4512 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4513 moved to dump_subexp_f, OP_FUNCALL uses new function.
4514 * expression.h (evaluate_subexp_do_call): Declare.
4515 * f-lang.c (value_f90_subarray): Moved from eval.c.
4516 (skip_undetermined_arglist): Likewise.
4517 (calc_f77_array_dims): Likewise.
4518 (fortran_value_subarray): Likewise.
4519 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4520 (operator_length_f): Likewise.
4521 (print_subexp_f): Likewise.
4522 (dump_subexp_body_f): Likewise.
4523 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4524 declaration of this operation to here.
4525 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4526 support moved to operator_length_f.
4527 * parser-defs.h (dump_subexp_body_funcall): Declare.
4528 (print_subexp_funcall): Declare.
4529 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4530 fortran-operator.def.
4531
8c37706a
AB
45322020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4533
4534 * eval.c (fortran_value_subarray): New function, content is taken
4535 from...
4536 (evaluate_subexp_standard): ...here, in two places. Now arrays
4537 and strings both call the new function.
4538 (calc_f77_array_dims): Add header comment, handle strings.
4539
14f9473c
VC
45402020-09-18 Victor Collod <vcollod@nvidia.com>
4541
4542 PR gdb/26635
4543 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4544 (i386_analyze_prologue): Call i386_skip_endbr.
4545
b60cea74
TT
45462020-09-18 Tom Tromey <tromey@adacore.com>
4547
4548 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4549 (windows_nat_target::wait): Update.
4550 * target/wait.h (enum target_wait_flag): New. Use
4551 DEF_ENUM_FLAGS_TYPE.
4552 * target/target.h (target_wait): Change type of options.
4553 * target.h (target_options_to_string, default_target_wait):
4554 Update.
4555 (struct target_ops) <wait>: Change type of options.
4556 * target.c (target_wait, default_target_wait, do_option): Change
4557 type of "options".
4558 (target_options_to_string): Likewise.
4559 * target-delegates.c: Rebuild.
4560 * target-debug.h (target_debug_print_target_wait_flags): Rename
4561 from target_debug_print_options.
4562 * sol-thread.c (class sol_thread_target) <wait>: Update.
4563 (sol_thread_target::wait): Update.
4564 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4565 (rs6000_nat_target::wait): Update.
4566 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4567 Update.
4568 (remote_target::wait_ns, remote_target::wait_as): Change type of
4569 "options".
4570 (remote_target::wait): Update.
4571 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4572 (gdbsim_target::wait): Update.
4573 * record-full.c (class record_full_base_target) <wait>: Update.
4574 (record_full_wait_1): Change type of "options".
4575 (record_full_base_target::wait): Update.
4576 * record-btrace.c (class record_btrace_target) <wait>: Update.
4577 (record_btrace_target::wait): Update.
4578 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4579 Update.
4580 (ravenscar_thread_target::wait): Update.
4581 * procfs.c (class procfs_target) <wait>: Update.
4582 (procfs_target::wait): Update.
4583 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4584 * obsd-nat.c (obsd_nat_target::wait): Update.
4585 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4586 (nto_procfs_target::wait): Update.
4587 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4588 * nbsd-nat.c (nbsd_wait): Change type of "options".
4589 (nbsd_nat_target::wait): Update.
4590 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4591 (thread_db_target::wait): Update.
4592 * linux-nat.h (class linux_nat_target) <wait>: Update.
4593 * linux-nat.c (linux_nat_target::wait): Update.
4594 (linux_nat_wait_1): Update.
4595 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4596 "options".
4597 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4598 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4599 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4600 (go32_nat_target::wait): Update.
4601 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4602 * gnu-nat.c (gnu_nat_target::wait): Update.
4603 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4604 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4605 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4606 * darwin-nat.c (darwin_nat_target::wait): Update.
4607 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4608 (bsd_uthread_target::wait): Update.
4609 * aix-thread.c (class aix_thread_target) <wait>: Update.
4610 (aix_thread_target::wait): Update.
4611
0295dde6
AB
46122020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 * compile/compile-object-run.c (create_copied_type_recursive): New
4615 function.
4616 (compile_object_run): Use new function.
4617
d3483b43
JT
46182020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4619
4620 * NEWS: Mention x86_64 Cygwin core file support.
4621
e7d612ad
JT
46222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4623
4624 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4625 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4626
aff9d387
JT
46272020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4628
62a5151b
JT
4629 * windows-tdep.h: Add prototypes.
4630 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4631 (i386_windows_core_pid_to_str): Move and rename ...
4632 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4633 (windows_core_pid_to_str): ... and here.
4634 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4635
46362020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4637 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4638 (amd64_windows_init_abi_common): ... and register.
4639
7d155da3
JT
46402020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4641
4642 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4643 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4644
e8ef12b9
PA
46452020-09-18 Pedro Alves <pedro@palves.net>
4646
4647 PR gdb/26631
4648 * thread.c (thread_find_command): Switch inferior before calling
4649 target methods.
4650
c1e1314d
TT
46512020-09-17 Tom Tromey <tromey@adacore.com>
4652
4653 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4654 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4655 (tdesc_arch_data_up): New typedef.
4656 (tdesc_use_registers, tdesc_data_alloc): Update.
4657 (tdesc_data_cleanup): Don't declare.
4658 * target-descriptions.c (tdesc_data_alloc): Return a
4659 tdesc_arch_data_up.
4660 (tdesc_arch_data_deleter::operator()): Rename from
4661 tdesc_data_cleanup. Change argument type.
4662 (tdesc_use_registers): Change early_data to an rvalue reference.
4663 (tdesc_use_registers): Don't use delete.
4664 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4665 * s390-tdep.c (s390_gdbarch_init): Update.
4666 * rx-tdep.c (rx_gdbarch_init): Update.
4667 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4668 * riscv-tdep.c (riscv_gdbarch_init): Update.
4669 * or1k-tdep.c (or1k_gdbarch_init): Update.
4670 * nios2-tdep.c (nios2_gdbarch_init): Update.
4671 * nds32-tdep.c (nds32_gdbarch_init): Update.
4672 * mips-tdep.c (mips_gdbarch_init): Update.
4673 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4674 * m68k-tdep.c (m68k_gdbarch_init): Update.
4675 * i386-tdep.c (i386_gdbarch_init): Update.
4676 * arm-tdep.c (arm_gdbarch_init): Update.
4677 * arc-tdep.c (arc_tdesc_init): Update.
4678 (arc_gdbarch_init): Update.
4679 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4680
0363df3d
HD
46812020-09-17 Hannes Domani <ssbssa@yahoo.de>
4682
4683 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4684 for WOW64 processes.
4685
280a9412
TT
46862020-09-17 Tom Tromey <tom@tromey.com>
4687
4688 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4689
6108fd18
TT
46902020-09-17 Tom Tromey <tom@tromey.com>
4691
4692 * value.c (preserve_values): Update.
4693 * python/py-type.c (save_objfile_types): Update.
4694 * guile/scm-type.c (save_objfile_types): Update.
4695 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4696 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4697 * compile/compile-object-run.c (compile_object_run): Update.
4698
fa9b1164
TT
46992020-09-17 Tom Tromey <tom@tromey.com>
4700
4701 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4702 Remove.
4703 <m_table>: Now htab_up.
4704 * typeprint.c (typedef_hash_table::recursively_update)
4705 (typedef_hash_table::add_template_parameters)
4706 (typedef_hash_table::typedef_hash_table): Update.
4707 (typedef_hash_table::~typedef_hash_table): Remove.
4708 (typedef_hash_table::typedef_hash_table)
4709 (typedef_hash_table::find_global_typedef)
4710 (typedef_hash_table::find_typedef): Update.
4711
eb53f105
TT
47122020-09-17 Tom Tromey <tom@tromey.com>
4713
4714 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4715
7a8a5d47
TT
47162020-09-17 Tom Tromey <tom@tromey.com>
4717
4718 * linespec.c (class decode_compound_collector)
4719 <~decode_compound_collector>: Remove.
4720 <m_unique_syms>: Now htab_up.
4721 (decode_compound_collector::operator ()): Update.
4722 (class symtab_collector) <~symtab_collector>: Remove.
4723 <m_symtab_table>: Now htab_up.
4724 (symtab_collector::operator ()): Update.
4725
99032cfc
TT
47262020-09-17 Tom Tromey <tom@tromey.com>
4727
4728 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4729 (filename_seen_cache::clear): Update.
4730 (~filename_seen_cache): Remove.
4731 (filename_seen_cache::seen): Update.
4732 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4733 htab_up.
4734 <~filename_seen_cache>: Remove.
4735 <traverse>: Update.
4736
32580f6d
TT
47372020-09-17 Tom Tromey <tom@tromey.com>
4738
4739 * completer.c (completion_tracker::discard_completions)
4740 (completion_tracker::~completion_tracker)
4741 (completion_tracker::maybe_add_completion)
4742 (completion_tracker::remove_completion)
4743 (completion_tracker::recompute_lowest_common_denominator)
4744 (completion_tracker::build_completion_result): Update.
4745 * completer.h (class completion_tracker) <have_completions>:
4746 Update.
4747 <m_entries_hash>: Now htab_up.
4748
c1fb9836
TT
47492020-09-17 Tom Tromey <tom@tromey.com>
4750
4751 * breakpoint.c (ambiguous_names_p): Use htab_up.
4752
88f07206
TT
47532020-09-17 Tom Tromey <tom@tromey.com>
4754
4755 * auto-load.c (struct auto_load_pspace_info)
4756 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4757 <loaded_script_files, loaded_script_texts>: Change type to
4758 htab_up.
4759 (~auto_load_pspace_info) Remove.
4760 (init_loaded_scripts_info, maybe_add_script_file)
4761 (maybe_add_script_text, auto_load_info_scripts): Update.
4762
9519b2ee
TT
47632020-09-17 Tom Tromey <tromey@adacore.com>
4764
4765 * c-exp.y (name_obstack): Now static.
4766
d2cd4113
CC
47672020-09-17 Chungyi Chi <demonic@csie.io>
4768
4769 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4770
b650a282
SM
47712020-09-16 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4774 (add_solib_catchpoint): Likewise.
4775 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4776 to bool.
4777 (add_solib_catchpoint): Change int parameter/variable to bool.
4778 (catch_load_or_unload): Likewise.
4779 (init_catchpoint): Likewise.
4780 (create_fork_vfork_event_catchpoint): Likewise.
4781 (catch_fork_command_1): Likewise.
4782 (catch_exec_command_1): Likewise.
4783
4d0bcfcf
SM
47842020-09-16 Simon Marchi <simon.marchi@efficios.com>
4785
4786 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4787 Change instance_flags to m_instance_flags.
4788
fe830662
TT
47892020-09-16 Tom Tromey <tromey@adacore.com>
4790
4791 PR gdb/26598:
4792 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4793
fe5ddfc3
JB
47942020-09-16 John Baldwin <jhb@FreeBSD.org>
4795
4796 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4797 PL_FLAG_EXEC.
4798 (fbsd_nat_target::insert_exec_catchpoint)
4799 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4800 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4801 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4802
e911c666
JB
48032020-09-16 John Baldwin <jhb@FreeBSD.org>
4804
4805 * configure.ac: Remove check for kinfo_getvmmap().
4806 * configure, config.in: Regenerate.
4807 * fbsd-nat.c (fbsd_read_mapping): Remove
4808 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4809 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4810 kinfo_get_vmmap() are always present.
4811
1f17d372
JB
48122020-09-16 John Baldwin <jhb@FreeBSD.org>
4813
4814 * fbsd-nat.c: Always include support for
4815 TARGET_OBJECT_SIGNAL_INFO.
4816
bcb1da7f
JB
48172020-09-16 John Baldwin <jhb@FreeBSD.org>
4818
4819 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4820 sysctl and remove procfs fallback.
4821
5515f729
JB
48222020-09-16 John Baldwin <jhb@FreeBSD.org>
4823
4824 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4825 * fbsd-nat.h: Likewise.
4826
da1df1db
TBA
48272020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4828
4829 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4830 argument.
4831
0e25e767
AB
48322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4833
4834 * ada-lang.c (ada_language_data): Delete.
4835 (ada_language): Remove references to ada_language_data.
4836 * c-lang.c (c_language_data): Delete.
4837 (c_language): Remove references to c_language_data.
4838 (cplus_language_data): Delete.
4839 (cplus_language): Remove references to cplus_language_data.
4840 (asm_language_data): Delete.
4841 (asm_language): Remove references to asm_language_data.
4842 (minimal_language_data): Delete.
4843 (minimal_language): Remove references to minimal_language_data.
4844 * d-lang.c (d_language_data): Delete.
4845 (d_language): Remove references to d_language_data.
4846 * f-lang.c (f_language_data): Delete.
4847 (f_language): Remove references to f_language_data.
4848 * go-lang.c (go_language_data): Delete.
4849 (go_language): Remove references to go_language_data.
4850 * language.c (unknown_language_data): Delete.
4851 (unknown_language): Remove references to unknown_language_data.
4852 (auto_language_data): Delete.
4853 (auto_language): Remove references to auto_language_data.
4854 * language.h (language_data): Delete struct.
4855 (language_defn): No longer inherit from language_data.
4856 * m2-lang.c (m2_language_data): Delete.
4857 (m2_language): Remove references to m2_language_data.
4858 * objc-lang.c (objc_language_data): Delete.
4859 (objc_language): Remove references to objc_language_data.
4860 * opencl-lang.c (opencl_language_data): Delete.
4861 (opencl_language): Remove references to opencl_language_data.
4862 * p-lang.c (pascal_language_data): Delete.
4863 (pascal_language): Remove references to pascal_language_data.
4864 * rust-lang.c (rust_language_data): Delete.
4865 (rust_language): Remove references to rust_language_data.
4866
b7c6e27d
AB
48672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4868
4869 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4870 initializer.
4871 (ada_language::opcode_print_table): New member function.
4872 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4873 (c_language::opcode_print_table): New member function.
4874 (cplus_language_data): Remove la_op_print_tab initializer.
4875 (cplus_language::opcode_print_table): New member function.
4876 (asm_language_data): Remove la_op_print_tab initializer.
4877 (asm_language::opcode_print_table): New member function.
4878 (minimal_language_data): Remove la_op_print_tab initializer.
4879 (minimal_language::opcode_print_table): New member function.
4880 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4881 (d_language::opcode_print_table): New member function.
4882 * expprint.c (print_subexp_standard): Update call to
4883 opcode_print_table.
4884 (op_string): Likewise.
4885 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4886 (f_language::opcode_print_table): New member function.
4887 * go-lang.c (go_language_data): Remove la_op_print_tab
4888 initializer.
4889 (go_language::opcode_print_table): New member function.
4890 * language.c (unknown_language_data): Remove la_op_print_tab
4891 initializer.
4892 (unknown_language::opcode_print_table): New member function.
4893 (auto_language_data): Remove la_op_print_tab initializer.
4894 (auto_language::opcode_print_table): New member function.
4895 * language.h (language_data): Remove la_op_print_tab field.
4896 (language_defn::opcode_print_table): Declare new member function.
4897 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4898 initializer.
4899 (m2_language::opcode_print_table): New member function.
4900 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4901 initializer.
4902 (objc_language::opcode_print_table): New member function.
4903 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
4904 initializer.
4905 (opencl_language::opcode_print_table): New member function.
4906 * p-lang.c (pascal_language_data): Remove la_op_print_tab
4907 initializer.
4908 (pascal_language::opcode_print_table): New member function.
4909 * rust-lang.c (rust_language_data): Remove la_op_print_tab
4910 initializer.
4911 (rust_language::opcode_print_table): New member function.
4912
5aba6ebe
AB
49132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4914
4915 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4916 (ada_language::expression_ops): New member function.
4917 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4918 (c_language::expression_ops): New member function.
4919 (cplus_language_data): Remove la_exp_desc initializer.
4920 (cplus_language::expression_ops): New member function.
4921 (asm_language_data): Remove la_exp_desc initializer.
4922 (asm_language::expression_ops): New member function.
4923 (minimal_language_data): Remove la_exp_desc initializer.
4924 (minimal_language::expression_ops): New member function.
4925 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4926 (d_language::expression_ops): New member function.
4927 * eval.c (evaluate_subexp): Update call to expression_ops.
4928 * expprint.c (print_subexp): Likewise.
4929 (op_name): Likewise.
4930 (dump_subexp_body): Likewise.
4931 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4932 (f_language::expression_ops): New member function.
4933 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4934 (go_language::expression_ops): New member function.
4935 * language.c (language_defn::expression_ops): New function.
4936 (unknown_language_data): Remove la_exp_desc initializer.
4937 (auto_language_data): Likewise.
4938 * language.h (language_data): Remove la_exp_desc field.
4939 (language_defn::expression_ops): Declare new member function.
4940 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4941 (m2_language::expression_ops): New member function.
4942 * objc-lang.c (objc_language_data): Remove la_exp_desc
4943 initializer.
4944 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4945 initializer.
4946 (opencl_language::expression_ops): New member function.
4947 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4948 * parse.c (operator_length): Update call to expression_ops.
4949 (exp_iterate): Likewise.
4950 * rust-lang.c (rust_language_data): Remove la_exp_desc
4951 initializer.
4952 (ruse_language::expression_ops): New member function.
4953
b63a3f3f
AB
49542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4955
4956 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4957 initializer.
4958 (ada_language::varobj_ops): New member function.
4959 * c-lang.c (c_language_data): Remove la_varobj_ops
4960 initializer.
4961 (cplus_language_data): Likewise.
4962 (cplus_language::varobj_ops): New member function.
4963 (asm_language_data): Remove la_varobj_ops initializer.
4964 (minimal_language_data): Likewise.
4965 * d-lang.c (d_language_data): Likewise.
4966 * f-lang.c (f_language_data): Likewise.
4967 * go-lang.c (go_language_data): Likewise.
4968 * language.c (language_defn::varobj_ops): New function.
4969 (unknown_language_data): Remove la_varobj_ops
4970 initializer.
4971 (auto_language_data): Likewise.
4972 * language.h (language_data): Remove la_varobj_ops field.
4973 (language_defn::varobj_ops): Declare new member function.
4974 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4975 * objc-lang.c (objc_language_data): Likewise.
4976 * opencl-lang.c (opencl_language_data): Likewise.
4977 * p-lang.c (pascal_language_data): Likewise.
4978 * rust-lang.c (rust_language_data): Likewise.
4979 * varobj.c (varobj_create): Update call to varobj_ops.
4980 * varobj.h (default_varobj_ops): Delete define.
4981
1ac14a04
AB
49822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4983
4984 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4985 initializer.
4986 * c-lang.c (c_language_data): Likewise.
4987 (c_language::macro_expansion): New member function.
4988 (cplus_language_data): Likewise.
4989 (cplus_language::macro_expansion): New member function.
4990 (asm_language_data): Likewise.
4991 (asm_language::macro_expansion): New member function.
4992 (minimal_language_data): Likewise.
4993 (minimal_language::macro_expansion): New member function.
4994 * d-lang.c (d_language_data): Remove la_macro_expansion
4995 initializer.
4996 * f-lang.c (f_language_data): Likewise.
4997 * go-lang.c (go_language_data): Likewise.
4998 * language.c (unknown_language_data): Likewise.
4999 (auto_language_data): Likewise.
5000 * language.h (language_data): Remove la_macro_expansion field.
5001 (language_defn::macro_expansion): New member function.
5002 * m2-lang.c (m2_language_data): Remove la_macro_expansion
5003 initializer.
5004 * objc-lang.c (objc_language_data): Likewise.
5005 (objc_language::macro_expansion): New member function.
5006 * opencl-lang.c (opencl_language_data): Likewise.
5007 (opencl_language::macro_expansion): New member function.
5008 * p-lang.c (pascal_language_data): Remove la_macro_expansion
5009 initializer.
5010 * rust-lang.c (rust_language_data): Likewise.
5011 * symtab.c (default_collect_symbol_completion_matches_break_on):
5012 Update call to macro_expansion.
5013
3a3440fb
AB
50142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * ada-lang.c (ada_language_data): Remove la_array_ordering
5017 initializer.
5018 * c-lang.c (c_language_data): Likewise.
5019 (cplus_language_data): Likewise.
5020 (asm_language_data): Likewise.
5021 (minimal_language_data): Likewise.
5022 * d-lang.c (d_language_data): Likewise.
5023 * dwarf2/read.c (read_array_order): Update for call to
5024 array_ordering.
5025 * f-lang.c (f_language_data): Remove la_array_ordering
5026 initializer.
5027 (f_language::array_ordering): New member function.
5028 * go-lang.c (go_language_data): Remove la_array_ordering
5029 initializer.
5030 * language.c (unknown_language_data): Likewise.
5031 (auto_language_data): Likewise.
5032 * language.h (language_data): Delete la_array_ordering field.
5033 (language_defn::array_ordering): New member function.
5034 * m2-lang.c (m2_language_data): Remove la_array_ordering
5035 initializer.
5036 * objc-lang.c (objc_language_data): Likewise.
5037 * opencl-lang.c (opencl_language_data): Likewise.
5038 * p-lang.c (pascal_language_data): Likewise.
5039 * rust-lang.c (rust_language_data): Likewise.
5040
0d201fa4
AB
50412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5044 initializer.
5045 * c-lang.c (c_language_data): Likewise.
5046 (cplus_language_data): Likewise.
5047 (asm_language_data): Likewise.
5048 (minimal_language_data): Likewise.
5049 * d-lang.c (d_language_data): Likewise.
5050 * f-lang.c (f_language_data): Likewise.
5051 (f_language::case_sensitivity): New member function.
5052 * go-lang.c (go_language_data): Remove la_case_sensitivity
5053 initializer.
5054 * language.c (enum case_mode): Moved here from language.h.
5055 (case_mode): Make static.
5056 (show_case_command): Update for case_sensitivity being a method.
5057 (set_case_command): Likewise.
5058 (set_range_case): Likewise.
5059 (unknown_language_data): Remove la_case_sensitivity initializer.
5060 (auto_language_data): Likewise.
5061 * language.h (case_mode): Delete, move enum declaration to
5062 language.c.
5063 (language_data): Delete la_case_sensitivity field.
5064 (language_defn::case_sensitivity): New member function.
5065 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5066 initializer.
5067 * objc-lang.c (objc_language_data): Likewise.
5068 * opencl-lang.c (opencl_language_data): Likewise.
5069 * p-lang.c (pascal_language_data): Likewise.
5070 * rust-lang.c (rust_language_data): Likewise.
5071
efdf6a73
AB
50722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * ada-lang.c (ada_language_data): Remove la_range_check
5075 initializer.
5076 * c-lang.c (c_language_data): Likewise.
5077 (cplus_language_data): Likewise.
5078 (asm_language_data): Likewise.
5079 (minimal_language_data): Likewise.
5080 * d-lang.c (d_language_data): Likewise.
5081 * f-lang.c (f_language_data): Likewise.
5082 (f_language::range_checking_on_by_default): New member function.
5083 * go-lang.c (go_language_data): Remove la_range_check initializer.
5084 * language.c (enum range_mode): Moved here from language.h.
5085 (range_mode): Made static.
5086 (show_range_command): Update to use
5087 range_checking_on_by_default.
5088 (set_range_command): Likewise.
5089 (set_range_case): Likewise.
5090 (unknown_language_data): Remove la_range_check initializer.
5091 (auto_language_data): Likewise.
5092 * language.h (range_mode): Delete. Enum definition moved to
5093 language.c.
5094 (language_data): Remove la_range_check field.
5095 (language_defn::range_checking_on_by_default): New member
5096 function.
5097 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5098 (m2_language::range_checking_on_by_default): New member function.
5099 * objc-lang.c (objc_language_data): Remove la_range_check
5100 initializer.
5101 * opencl-lang.c (opencl_language_data): Likewise.
5102 * p-lang.c (pascal_language_data): Likewise.
5103 (pascal_language::range_checking_on_by_default): New member
5104 function.
5105 * rust-lang.c (rust_language_data): Remove la_range_check
5106 initializer.
5107 (rust_language::range_checking_on_by_default): New member
5108 function.
5109
bf92aec5
AB
51102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * dwarf2/read.c (dwarf2_physname): Remove special case for
5113 language_go.
5114 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5115 member function.
5116
d3355e4d
AB
51172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * ada-lang.c (ada_language_data): Remove
5120 la_store_sym_names_in_linkage_form_p initializer.
5121 (ada_language::store_sym_names_in_linkage_form_p): New member
5122 function.
5123 * c-lang.c (c_language_data): Remove
5124 la_store_sym_names_in_linkage_form_p initializer.
5125 (c_language::store_sym_names_in_linkage_form_p): New member
5126 function.
5127 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5128 initializer.
5129 (asm_language_data): Likewise.
5130 (asm_language::store_sym_names_in_linkage_form_p): New member
5131 function.
5132 (minimal_language_data): Remove
5133 la_store_sym_names_in_linkage_form_p initializer.
5134 (minimal_language::store_sym_names_in_linkage_form_p): New member
5135 function.
5136 * d-lang.c (d_language_data): Remove
5137 la_store_sym_names_in_linkage_form_p initializer.
5138 * dwarf2/read.c (dwarf2_physname): Update call to
5139 store_sym_names_in_linkage_form_p.
5140 * f-lang.c (f_language_data): Remove
5141 la_store_sym_names_in_linkage_form_p initializer.
5142 * go-lang.c (go_language_data): Remove
5143 la_store_sym_names_in_linkage_form_p initializer.
5144 * language.c (unknown_language_data): Remove
5145 la_store_sym_names_in_linkage_form_p initializer.
5146 (unknown_language::store_sym_names_in_linkage_form_p): New member
5147 function.
5148 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5149 initializer.
5150 (auto_language::store_sym_names_in_linkage_form_p): New member
5151 function.
5152 * language.h (language_data): Remove
5153 la_store_sym_names_in_linkage_form_p member variable.
5154 (language_defn::store_sym_names_in_linkage_form_p): New member
5155 function.
5156 * m2-lang.c (m2_language_data): Remove
5157 la_store_sym_names_in_linkage_form_p initializer.
5158 * objc-lang.c (objc_language_data): Likewise.
5159 * opencl-lang.c (opencl_language_data): Likewise.
5160 * p-lang.c (pascal_language_data): Likewise.
5161 * rust-lang.c (rust_language_data): Likewise.
5162
22c12a6c
AB
51632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5164
5165 * ada-lang.c (ada_language_data): Remove string_lower_bound
5166 initializer.
5167 * c-lang.c (c_language_data): Likewise.
5168 (cplus_language_data): Likewise.
5169 (asm_language_data): Likewise.
5170 (minimal_language_data): Likewise.
5171 * d-lang.c (d_language_data): Likewise.
5172 * f-lang.c (f_language_data): Likewise.
5173 * go-lang.c (go_language_data): Likewise.
5174 * language.c (unknown_language_data): Likewise.
5175 (auto_language_data): Likewise.
5176 * language.h (language_data): Remove string_lower_bound field.
5177 (language_defn::string_lower_bound): New member function.
5178 * m2-lang.c (m2_language_data): Remove string_lower_bound
5179 initializer.
5180 (m2_language::string_lower_bound): New member function.
5181 * objc-lang.c (objc_language_data): Remove string_lower_bound
5182 initializer.
5183 * opencl-lang.c (opencl_language_data): Likewise.
5184 * p-lang.c (pascal_language_data): Likewise.
5185 * rust-lang.c (rust_language_data): Likewise.
5186 * valops.c (value_cstring): Update call to string_lower_bound.
5187 (value_string): Likewise.
5188 * value.c (allocate_repeated_value): Likewise.
5189
1c236ddd
AB
51902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5191
5192 * valops.c (value_repeat): Fix incorrect argument name in comment.
5193
67bd3fd5
AB
51942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * ada-lang.c (ada_language_data): Remove c_style_arrays
5197 initializer.
5198 (ada_language::c_style_arrays_p): New member fuction.
5199 * c-lang.c (c_language_data): Remove c_style_arrays
5200 initializer.
5201 (cplus_language_data): Likewise.
5202 (asm_language_data): Likewise.
5203 (minimal_language_data): Likewise.
5204 * d-lang.c (d_language_data): Likewise.
5205 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5206 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5207 (f_language::c_style_arrays_p): New member function.
5208 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5209 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5210 * language.c (unknown_language_data): Remove c_style_arrays
5211 initializer.
5212 (auto_language_data): Likewise.
5213 * language.h (language_data): Remove c_style_arrays field.
5214 (language_defn::c_style_arrays_p): New member function.
5215 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5216 (m2_language::c_style_arrays_p): New member function.
5217 * objc-lang.c (objc_language_data): Remove c_style_arrays
5218 initializer.
5219 * opencl-lang.c (opencl_language_data): Likewise.
5220 * p-lang.c (pascal_language_data): Likewise.
5221 * rust-lang.c (rust_language_data): Likewise.
5222 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5223 and update local variable to a bool.
5224 * valops.c (value_cast): Update call to c_style_arrays_p.
5225 (value_array): Likewise.
5226 * value.c (coerce_array): Likewise.
5227
85967615
AB
52282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5229
5230 * ada-lang.c (ada_language_data): Remove la_language initializer.
5231 * c-lang.c (c_language_data): Likewise.
5232 (cplus_language_data): Likewise.
5233 (asm_language_data): Likewise.
5234 (minimal_language_data): Likewise.
5235 * d-lang.c (d_language_data): Likewise.
5236 * f-lang.c (f_language_data): Likewise.
5237 * go-lang.c (go_language_data): Likewise.
5238 * language.c (unknown_language_data): Likewise.
5239 (auto_language_data): Likewise.
5240 * language.h (language_data): Remove la_language field.
5241 (language_defn::language_defn): Initialise la_language field.
5242 (language_defn::la_language): New member variable.
5243 * m2-lang.c (m2_language_data): Remove la_language field.
5244 * objc-lang.c (objc_language_data): Likewise.
5245 * opencl-lang.c (opencl_language_data): Likewise.
5246 * p-lang.c (pascal_language_data): Likewise.
5247 * rust-lang.c (rust_language_data): Likewise.
5248
e171d6f1
AB
52492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5250
5251 * ada-lang.c (ada_extensions): Delete, moved into
5252 ada_language::filename_extensions.
5253 (ada_language_data): Remove la_filename_extensions initializer.
5254 (ada_language::filename_extensions): New member function.
5255 * c-lang.c (c_extensions): Delete, moved into
5256 c_language::filename_extensions.
5257 (c_language_data): Remove la_filename_extensions initializer.
5258 (c_language::filename_extensions): New member function.
5259 (cplus_extensions): Delete, moved into
5260 cplus_language::filename_extensions.
5261 (cplus_language_data): Remove la_filename_extensions initializer.
5262 (cplus_language::filename_extensions): New member function.
5263 (asm_extensions): Delete, moved into
5264 asm_language::filename_extensions.
5265 (asm_language_data): Remove la_filename_extensions initializer.
5266 (asm_language::filename_extensions): New member function.
5267 (minimal_language_data): Remove la_filename_extensions
5268 initializer.
5269 * d-lang.c (d_extensions): Delete, moved into
5270 d_language::filename_extensions.
5271 (d_language_data): Remove la_filename_extensions initializer.
5272 (d_language::filename_extensions): New member function.
5273 * f-lang.c (f_extensions): Delete, moved into
5274 f_language::filename_extensions.
5275 (f_language_data): Remove la_filename_extensions initializer.
5276 (f_language::filename_extensions): New member function.
5277 * go-lang.c (go_language_data): Remove la_filename_extensions
5278 initializer.
5279 * language.c (add_set_language_command): Update now that
5280 filename_extensions returns a vector.
5281 (unknown_language_data): Remove la_filename_extensions
5282 initializer.
5283 (auto_language_data): Likewise.
5284 * language.h (language_data): Remove la_filename_extensions field.
5285 (language_defn::filename_extensions): New member function.
5286 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5287 initializer.
5288 * objc-lang.c (objc_extensions): Delete, moved into
5289 objc_language::filename_extensions.
5290 (objc_language_data): Remove la_filename_extensions initializer.
5291 (objc_language::filename_extensions): New member function.
5292 * opencl-lang.c (opencl_language_data): Remove
5293 la_filename_extensions initializer.
5294 * p-lang.c (pascal_extensions): Delete, moved into
5295 pascal_language::filename_extensions.
5296 (pascal_language_data): Remove la_filename_extensions initializer.
5297 (pascal_language::filename_extensions): New member function.
5298 * rust-lang.c (rust_extensions): Delete, moved into
5299 rust_language::filename_extensions.
5300 (rust_language_data): Remove la_filename_extensions initializer.
5301 (rust_language::filename_extensions): New member function.
5302 * symfile.c (add_filename_language): Add new assert.
5303
6f7664a9
AB
53042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5305
5306 * ada-lang.c (ada_language_data): Remove la_name and
5307 la_natural_name initializers.
5308 (ada_language::name): New member function.
5309 (ada_language::natural_name): New member function.
5310 * c-lang.c (c_language_data): Remove la_name and
5311 la_natural_name initializers.
5312 (c_language::name): New member function.
5313 (c_language::natural_name): New member function.
5314 (cplus_language_data): Remove la_name and
5315 la_natural_name initializers.
5316 (cplus_language::name): New member function.
5317 (cplus_language::natural_name): New member function.
5318 (asm_language_data): Remove la_name and
5319 la_natural_name initializers.
5320 (asm_language::name): New member function.
5321 (asm_language::natural_name): New member function.
5322 (minimal_language_data): Remove la_name and
5323 la_natural_name initializers.
5324 (minimal_language::name): New member function.
5325 (minimal_language::natural_name): New member function.
5326 * compile/compile.c (compile_to_object): Update call to
5327 lanugage_defn::name.
5328 * d-lang.c (d_language_data): Remove la_name and
5329 la_natural_name initializers.
5330 (d_language::name): New member function.
5331 (d_language::natural_name): New member function.
5332 * expprint.c (print_subexp_standard): Update call to
5333 language_defn::name.
5334 (dump_raw_expression): Likewise
5335 (dump_prefix_expression): Likewise.
5336 * f-lang.c (f_language_data): Remove la_name and
5337 la_natural_name initializers.
5338 (f_language::name): New member function.
5339 (f_language::natural_name): New member function.
5340 * go-lang.c (go_language_data): Remove la_name and
5341 la_natural_name initializers.
5342 (go_language::name): New member function.
5343 (go_language::natural_name): New member function.
5344 * language.c (show_language_command): Update call to
5345 language_defn::name.
5346 (set_language_command): Likewise.
5347 (language_enum): Likewise.
5348 (language_str): Likewise.
5349 (add_set_language_command): Likewise, use
5350 language_defn::natural_name in the doc string.
5351 (unknown_language_data): Remove la_name and
5352 la_natural_name initializers.
5353 (unknown_language::name): New member function.
5354 (unknown_language::natural_name): New member function.
5355 (auto_language_data): Remove la_name and
5356 la_natural_name initializers.
5357 (auto_language::name): New member function.
5358 (auto_language::natural_name): New member function.
5359 (language_lookup_primitive_type_as_symbol): Update call to
5360 language_defn::name.
5361 * language.h (language_data): Remove la_name and la_natural_name
5362 member variables.
5363 (language_defn::name): New member function.
5364 (language_defn::natural_name): New member function.
5365 * m2-lang.c (m2_language_data): Remove la_name and
5366 la_natural_name initializers.
5367 (m2_language::name): New member function.
5368 (m2_language::natural_name): New member function.
5369 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5370 language_defn::natural_name.
5371 * objc-lang.c (objc_language_data): Remove la_name and
5372 la_natural_name initializers.
5373 (objc_language::name): New member function.
5374 (objc_language::natural_name): New member function.
5375 * opencl-lang.c (opencl_language_data): Remove la_name and
5376 la_natural_name initializers.
5377 (opencl_language::name): New member function.
5378 (opencl_language::natural_name): New member function.
5379 * p-lang.c (pascal_language_data): Remove la_name and
5380 la_natural_name initializers.
5381 (pascal_language::name): New member function.
5382 (pascal_language::natural_name): New member function.
5383 * rust-lang.c (rust_language_data): Remove la_name and
5384 la_natural_name initializers.
5385 (rust_language::name): New member function.
5386 (rust_language::natural_name): New member function.
5387 * symtab.c (lookup_language_this): Update call to
5388 language_defn::name.
5389
5bae7c4e
AB
53902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5391
5392 * ada-lang.c (ada_language_data): Remove la_name_of_this
5393 initializer.
5394 * ax-gdb.c (gen_expr): Update call to name_of_this.
5395 * c-exp.y (classify_name): Likewise.
5396 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5397 (cplus_language_data): Likewise.
5398 (cplus_language::name_of_this): New member function.
5399 (asm_language_data): Remove la_name_of_this initializer.
5400 (minimal_language_data): Likewise.
5401 * d-lang.c (d_language_data): Likewise.
5402 (d_language::name_of_this): New member function.
5403 * expprint.c (print_subexp_standard): Update call to name_of_this.
5404 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5405 * go-lang.c (go_language_data): Likewise.
5406 * language.c (unknown_language_data): Likewise.
5407 (unknown_language::name_of_this): New member function.
5408 (auto_language_data): Remove la_name_of_this initializer.
5409 (auto_language::name_of_this): New member function.
5410 * language.h (language_data): Delete la_name_of_this member
5411 variable.
5412 (language_defn::name_of_this): New member function.
5413 * m2-lang.c (m2_language_data): Remove la_name_of_this
5414 initializer.
5415 * objc-lang.c (objc_language_data): Likewise.
5416 (objc_language::name_of_this): New member function.
5417 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5418 initializer.
5419 * p-lang.c (pascal_language_data): Likewise.
5420 (pascal_language::name_of_this): New member function.
5421 * rust-lang.c (rust_language_data): Remove la_name_of_this
5422 initializer.
5423 * symtab.c (lookup_language_this): Update call to name_of_this.
5424 (lookup_symbol_aux): Likewise.
5425 * valops.c (value_of_this): Likewise.
5426
22e3f3ed
AB
54272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5428
5429 * ada-lang.c (ada_language_data): Remove
5430 la_struct_too_deep_ellipsis initializer.
5431 (ada_language::struct_too_deep_ellipsis): New member function.
5432 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5433 initializer.
5434 (cplus_language_data): Likewise.
5435 (asm_language_data): Likewise.
5436 (minimal_language_data): Likewise.
5437 * cp-valprint.c (cp_print_value): Update call to
5438 struct_too_deep_ellipsis.
5439 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5440 initializer.
5441 * f-lang.c (f_language_data): Likewise.
5442 (f_language::struct_too_deep_ellipsis): New member function.
5443 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5444 initializer.
5445 * language.c (unknown_language_data): Likewise.
5446 (auto_language_data): Likewise.
5447 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5448 member variable.
5449 (language_defn::struct_too_deep_ellipsis): New member function.
5450 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5451 initializer.Q
5452 * objc-lang.c (objc_language_data): Likewise.
5453 * opencl-lang.c (opencl_language_data): Likewise.
5454 * p-lang.c (pascal_language_data): Likewise.
5455 * rust-lang.c (rust_language_data): Likewise.
5456 * valprint.c (val_print_check_max_depth): Update call to
5457 struct_too_deep_ellipsis.
5458
ed29e1c7
FW
54592020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5460
5461 * MAINTAINERS (Write After Approval): Add myself.
5462
12d8f940
TT
54632020-09-15 Tom Tromey <tom@tromey.com>
5464
5465 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5466 Remove.
5467
6b5a7bc7
TT
54682020-09-15 Tom Tromey <tom@tromey.com>
5469
5470 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5471 and TYPE_CODE_METHODPTR cases.
5472 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5473 (c_value_print_inner): Update.
5474 * valprint.c (generic_value_print_memberptr): New function, from
5475 c_value_print_memberptr.
5476 (generic_value_print): Use it. Call cplus_print_method_ptr.
5477
47f0e2ff
TT
54782020-09-15 Tom Tromey <tromey@adacore.com>
5479
5480 * python/python-internal.h (PyInt_FromLong): Remove define.
5481 * python/py-value.c (convert_value_from_python): Use
5482 gdb_py_object_from_longest.
5483 * python/py-type.c (typy_get_code): Use
5484 gdb_py_object_from_longest.
5485 * python/py-symtab.c (salpy_get_line): Use
5486 gdb_py_object_from_longest.
5487 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5488 gdb_py_object_from_longest.
5489 * python/py-record.c (recpy_gap_reason_code): Use
5490 gdb_py_object_from_longest.
5491 * python/py-record-btrace.c (recpy_bt_insn_size)
5492 (recpy_bt_func_level, btpy_list_count): Use
5493 gdb_py_object_from_longest.
5494 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5495 gdb_py_object_from_longest. Fix error handling.
5496 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5497 gdb_py_object_from_longest.
5498 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5499 gdb_py_object_from_longest.
5500 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5501 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5502 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5503
512116ce
TT
55042020-09-15 Tom Tromey <tromey@adacore.com>
5505
5506 * python/python.c (gdbpy_parameter_value): Use
5507 gdb_py_object_from_ulongest.
5508
4ab1029c
TT
55092020-09-15 Tom Tromey <tromey@adacore.com>
5510
5511 * python/py-infevents.c (create_register_changed_event_object):
5512 Use gdb_py_object_from_longest.
5513 * python/py-exitedevent.c (create_exited_event_object): Use
5514 gdb_py_object_from_longest.
5515
062534d4
TT
55162020-09-15 Tom Tromey <tromey@adacore.com>
5517
5518 * python/python.c (gdbpy_parameter_value): Use
5519 gdb_py_object_from_longest.
5520 * python/py-type.c (convert_field, typy_range): Use
5521 gdb_py_object_from_longest.
5522 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5523 gdb_py_object_from_longest.
5524 * python/py-lazy-string.c (stpy_get_length): Use
5525 gdb_py_object_from_longest.
5526 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5527 gdb_py_object_from_longest.
5528 * python/py-infevents.c (create_memory_changed_event_object): Use
5529 gdb_py_object_from_longest.
5530 * python/py-inferior.c (infpy_get_num): Use
5531 gdb_py_object_from_longest.
5532 (infpy_get_pid): Likewise.
5533
d1cab987
TT
55342020-09-15 Tom Tromey <tromey@adacore.com>
5535
5536 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5537 defines.
5538 * python/py-value.c (valpy_long): Use
5539 gdb_py_object_from_ulongest.
5540 * python/py-symtab.c (salpy_get_pc): Use
5541 gdb_py_object_from_ulongest.
5542 (salpy_get_last): Likewise.
5543 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5544 gdb_py_object_from_ulongest.
5545 * python/py-lazy-string.c (stpy_get_address): Use
5546 gdb_py_object_from_ulongest.
5547 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5548 * python/py-arch.c (archpy_disassemble): Use
5549 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5550 error handling.
5551
4bde49dc
TT
55522020-09-15 Tom Tromey <tromey@adacore.com>
5553
5554 * python/python-internal.h (gdb_py_long_from_longest): Remove
5555 defines.
5556 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5557 * python/py-type.c (convert_field, typy_get_sizeof): Use
5558 gdb_py_object_from_longest.
5559 * python/py-record-btrace.c (btpy_list_index): Use
5560 gdb_py_object_from_longest.
5561
37431074
TT
55622020-09-15 Tom Tromey <tromey@adacore.com>
5563
5564 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5565 * python/py-record.c (recpy_element_number): Use
5566 gdb_py_object_from_longest.
5567 (recpy_gap_number): Likewise.
5568
cbe25684
TT
55692020-09-15 Tom Tromey <tromey@adacore.com>
5570
5571 * top.c (ui::ui): Update.
5572 (highest_ui_num): Remove.
5573 * top.h (struct ui) <num>: Remove.
5574
db92ac45
TT
55752020-09-15 Tom Tromey <tromey@adacore.com>
5576
5577 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5578 * ui-style.c (ansi_regex_text): Now array.
5579 * rust-exp.y (number_regex_text): Now array.
5580 * linespec.c (linespec_quote_characters): Now array.
5581 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5582 Now arrays.
5583
d2b31b67
SM
55842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5585
5586 * debuginfod-support.c (debuginfod_client_deleter): New.
5587 (debuginfod_client_up): New.
5588 (debuginfod_init): Return debuginfod_client_up.
5589 (debuginfod_source_query): Adjust.
5590 (debuginfod_debuginfo_query): Adjust.
5591
3246bd8e
SM
55922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5593
5594 * debuginfod-support.c (debuginfod_source_query): Use
5595 make_unique_xstrdup.
5596
10242f36
SM
55972020-09-14 Simon Marchi <simon.marchi@efficios.com>
5598
5599 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5600 with `type::instance_flags`.
5601
e1044e6a
MM
56022020-09-14 Michael Mullin <masmullin@gmail.com>
5603
5604 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5605 Remove baton parameter.
5606
04902b09
PA
56072020-09-14 Pedro Alves <pedro@palves.net>
5608
5609 * Makefile.in (SELFTESTS_SRCS): Add
5610 unittests/enum-flags-selftests.c.
5611 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5612 btrace_function_flags instead of enum btrace_function_flag.
5613 * compile/compile-c-types.c (convert_qualified): Use
5614 enum_flags::raw.
5615 * compile/compile-cplus-symbols.c (convert_one_symbol)
5616 (convert_symbol_bmsym):
5617 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5618 (compile_cplus_convert_struct_or_union_methods)
5619 (compile_cplus_instance::convert_qualified_base):
5620 * go-exp.y (parse_string_or_char): Add cast to int.
5621 * unittests/enum-flags-selftests.c: New file.
5622 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5623 type to btrace_thread_flags from btrace_thread_flag.
5624 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5625 local's type to btrace_thread_flags from btrace_thread_flag. Add
5626 cast in DEBUG call.
5627
69896a2c
PA
56282020-09-14 Pedro Alves <pedro@palves.net>
5629
5630 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5631 * gdbtypes.c (address_space_name_to_int): Rename to ...
5632 (address_space_name_to_type_instance_flags): ... this.
5633 (address_space_int_to_name): Rename to ...
5634 (address_space_type_instance_flags_to_name): ... this.
5635 * gdbtypes.h (address_space_name_to_int): Rename to ...
5636 (address_space_name_to_type_instance_flags): ... this.
5637 (address_space_int_to_name): Rename to ...
5638 (address_space_type_instance_flags_to_name): ... this.
5639 * type-stack.c (type_stack::insert): Adjust to rename.
5640 * type-stack.h (type_stack::insert): Likewise.
5641
314ad88d
PA
56422020-09-14 Pedro Alves <pedro@palves.net>
5643 Andrew Burgess <andrew.burgess@embecosm.com>
5644
5645 * avr-tdep.c (avr_address_class_type_flags): Return
5646 type_instance_flags.
5647 (avr_address_class_type_flags_to_name): Take a
5648 type_instance_flags.
5649 (avr_address_class_name_to_type_flags): Return bool and take a
5650 type_instance_flags.
5651 * d-lang.c (build_d_types): Use type::set_instance_flags.
5652 * ft32-tdep.c (ft32_address_class_type_flags): Return
5653 type_instance_flags.
5654 (ft32_address_class_type_flags_to_name): Take a
5655 type_instance_flags.
5656 (ft32_address_class_name_to_type_flags): Return bool and take a
5657 type_instance_flags.
5658 (ft32_gdbarch_init): Use type::set_instance_flags.
5659 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5660 * gdbarch.h, gdbarch.c: Regenerate.
5661 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5662 (address_class_name_to_type_flags): Use type_instance_flags and
5663 bool.
5664 * gdbtypes.c (address_space_name_to_int)
5665 (address_space_int_to_name, make_qualified_type): Use
5666 type_instance_flags.
5667 (make_qualified_type): Use type_instance_flags and
5668 type::set_instance_flags.
5669 (make_type_with_address_space, make_cv_type, make_vector_type)
5670 (check_typedef): Use type_instance_flags.
5671 (recursive_dump_type): Cast type_instance_flags to unsigned for
5672 printing.
5673 (copy_type_recursive): Use type::set_instance_flags.
5674 (gdbtypes_post_init): Use type::set_instance_flags.
5675 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5676 <m_instance_flags>: ... this.
5677 <instance_flags, set_instance_flags>: New methods.
5678 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5679 (SET_TYPE_INSTANCE_FLAGS): New.
5680 (address_space_name_to_int, address_space_int_to_name)
5681 (make_type_with_address_space): Pass flags using
5682 type_instance_flags instead of int.
5683 * stabsread.c (cleanup_undefined_types_noname): Use
5684 type::set_instance_flags.
5685 * s390-tdep.c (s390_address_class_type_flags): Return
5686 type_instance_flags.
5687 (s390_address_class_type_flags_to_name): Take a
5688 type_instance_flags.
5689 (s390_address_class_name_to_type_flags): Return bool and take a
5690 type_instance_flags.
5691 * type-stack.c (type_stack::follow_types): Use
5692 type_instance_flags.
5693 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5694
27087b7f
TT
56952020-09-14 Tom Tromey <tromey@adacore.com>
5696
5697 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5698 * x86-tdep.c (x86_is_thunk_register_name)
5699 (x86_in_indirect_branch_thunk): Update.
5700 * sparc64-tdep.c (sparc64_fpu_register_names)
5701 (sparc64_cp0_register_names, sparc64_register_names)
5702 (sparc64_pseudo_register_names): Now const.
5703 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5704 cp0_registers_num>: Now const.
5705 * sparc-tdep.c (sparc_core_register_names)
5706 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5707 (sparc32_pseudo_register_names): Now const.
5708 (validate_tdesc_registers): Update.
5709 * rust-lang.c (rust_extensions): Now const.
5710 * p-lang.c (p_extensions): Now const.
5711 * objc-lang.c (objc_extensions): Now const.
5712 * nto-tdep.c (nto_thread_state_str): Now const.
5713 * moxie-tdep.c (moxie_register_names): Now const.
5714 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5715 Now const.
5716 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5717 (mips_linux_reg_names): Now const.
5718 (mips_gdbarch_init): Update.
5719 * microblaze-tdep.c (microblaze_register_names): Now const.
5720 * m68k-tdep.c (m68k_register_names): Now const.
5721 * m32r-tdep.c (m32r_register_names): Now const.
5722 * ia64-tdep.c (ia64_register_names): Now const.
5723 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5724 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5725 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5726 ymm_avx512_register_names, pkeys_register_names>: Now const.
5727 * i386-tdep.c (i386_register_names, i386_zmm_names)
5728 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5729 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5730 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5731 * f-lang.c (f_extensions): Now const.
5732 * d-lang.c (d_extensions): Now const.
5733 * csky-tdep.c (csky_register_names): Now const.
5734 * charset.c (default_charset_names, charset_enum): Now const.
5735 (_initialize_charset): Update.
5736 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5737 const.
5738 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5739 (bsd_uthread_solib_loaded): Update.
5740 (bsd_uthread_state): Now const.
5741 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5742 (amd64_ymm_avx512_names, amd64_ymmh_names)
5743 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5744 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5745 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5746 (amd64_dword_names): Now const.
5747 * agent.c (can_use_agent_enum): Now const.
5748 * ada-tasks.c (task_states, long_task_states): Now const.
5749 * ada-lang.c (known_runtime_file_name_patterns)
5750 (known_auxiliary_function_name_patterns, attribute_names)
5751 (standard_exc, ada_extensions): Now const.
5752
89806626
SM
57532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5754
5755 * bcache.h (struct bcache) <bcache>: Remove constructor.
5756 <m_hash_function, m_compare_function>: Remove.
5757 <~bcache>: Make virtual.
5758 <compare>: Remove static method, introduce virtual method.
5759 <default_hash>: Remove.
5760 <hash>: New virtual method.
5761 * bcache.c (bcache::expand_hash_table): Update.
5762 (bcache::insert): Update.
5763 (bcache::hash): New.
5764 (bcache::compare): Update comment and parameter names.
5765 * gdbtypes.c (types_deeply_equal): Update.
5766 * psymtab.h (struct psymbol_bcache): New struct.
5767 (class psymtab_storage) <psymtab_storage>: Make default.
5768 <psymbol_cache>: Change type to psymbol_bcache.
5769 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5770 (psymbol_hash): Change to...
5771 (psymbol_bcache::hash): ... this.
5772 (psymbol_compare): Change to...
5773 (psymbol_bcache::compare): ... this.
5774
677c92fe
SM
57752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5776
5777 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5778 checking for initial lwp.
5779
3eba3a01
TT
57802020-09-14 Tom Tromey <tromey@adacore.com>
5781
5782 * m68k-tdep.c (m68k_extract_return_value): Use
5783 pointer_result_regnum.
5784 (m68k_store_return_value): Likewise.
5785 (m68k_reg_struct_return_p): Handle vectors and arrays.
5786 (m68k_return_value): Handle arrays.
5787 (m68k_svr4_return_value): Fix single-element aggregate handling.
5788 Handle long double. Adjust for embedded ABI.
5789 (m68k_svr4_init_abi): Set pointer_result_regnum.
5790 (m68k_embedded_init_abi): New function.
5791 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5792 (m68k_osabi_sniffer): New function.
5793 (_initialize_m68k_tdep): Register osabi sniffer.
5794 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5795 member.
5796
33f4dd48
SM
57972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5800 with gdb::unique_xmalloc_ptr<char>.
5801
8400a90d
SM
58022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5803
5804 * xml-support.h (xml_fetch_another): Change type to be a
5805 function_view.
5806 (xml_process_xincludes): Remove baton parameter.
5807 (xml_fetch_content_from_file): Change baton parameter to
5808 dirname.
5809 * xml-support.c (struct xinclude_parsing_data)
5810 <xinclude_parsing_data>: Remove baton parameter.
5811 <fetcher_baton>: Remove.
5812 (xinclude_start_include): Adjust.
5813 (xml_process_xincludes): Adjust.
5814 (xml_fetch_content_from_file): Replace baton parameter with
5815 dirname.
5816 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5817 (xml_init_syscalls_info): Use a lambda.
5818 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5819 (file_read_description_xml): Use a lambda.
5820 (fetch_available_features_from_target): Change baton parameter
5821 to target_ops.
5822 (target_read_description_xml): Use a lambda.
5823 (target_fetch_description_xml): Use a lambda.
5824 (string_read_description_xml): Update.
5825
04f5bab2
SM
58262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5829 uses with type::endianity_is_not_default.
5830
db558e34
SM
58312020-09-14 Simon Marchi <simon.marchi@efficios.com>
5832
5833 * gdbtypes.h (struct type) <endianity_is_not_default,
5834 set_endianity_is_not_default>: New methods.
5835 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5836 type::endianity_is_not_default, change all write call sites to
5837 use type::set_endianity_is_not_default.
5838
22c4c60c
SM
58392020-09-14 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5842 uses with type::is_fixed_instance.
5843
9cdd0d12
SM
58442020-09-14 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * gdbtypes.h (struct type) <is_fixed_instance,
5847 set_is_fixed_instance>: New methods.
5848 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5849 write call sites to use type::set_is_fixed_instance.
5850
0becda7a
SM
58512020-09-14 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5854 uses with type::is_gnu_ifunc.
5855
03cc7249
SM
58562020-09-14 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5859 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5860 use type::set_is_gnu_ifunc.
5861
3f46044c
SM
58622020-09-14 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5865 uses with type::stub_is_supported.
5866
9baccff6
SM
58672020-09-14 Simon Marchi <simon.marchi@efficios.com>
5868
5869 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5870 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5871 use type::set_stub_is_supported.
5872
bd63c870
SM
58732020-09-14 Simon Marchi <simon.marchi@efficios.com>
5874
5875 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5876 uses with type::is_vector.
5877
2062087b
SM
58782020-09-14 Simon Marchi <simon.marchi@efficios.com>
5879
5880 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5881 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5882 use type::set_is_vector.
5883
a409645d
SM
58842020-09-14 Simon Marchi <simon.marchi@efficios.com>
5885
5886 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5887 uses with type::has_varargs.
5888
1d6286ed
SM
58892020-09-14 Simon Marchi <simon.marchi@efficios.com>
5890
5891 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5892 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5893 use type::set_has_varargs.
5894
7f9f399b
SM
58952020-09-14 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5898 uses with type::is_prototyped.
5899
27e69b7a
SM
59002020-09-14 Simon Marchi <simon.marchi@efficios.com>
5901
5902 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5903 New methods.
5904 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
5905 call sites to use type::set_is_prototyped.
5906
d2183968
SM
59072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
5910 uses with type::target_is_stub.
5911
8f53807e
SM
59122020-09-14 Simon Marchi <simon.marchi@efficios.com>
5913
5914 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5915 New methods.
5916 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5917 sites to use type::set_target_is_stub.
5918
e46d3488
SM
59192020-09-14 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * gdbtypes.h (TYPE_STUB): Remove, replace all
5922 uses with type::is_stub.
5923
b4b73759
SM
59242020-09-14 Simon Marchi <simon.marchi@efficios.com>
5925
5926 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5927 (TYPE_STUB): Use type::is_stub, change all write call sites to
5928 use type::set_is_stub.
5929
20ce4123
SM
59302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5933 type::has_no_signedness.
5934
15152a54
SM
59352020-09-14 Simon Marchi <simon.marchi@efficios.com>
5936
5937 * gdbtypes.h (struct type) <has_no_signedness,
5938 set_has_no_signedness>: New methods.
5939 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5940 call sites to use type::set_has_no_signedness.
5941
c6d940a9
SM
59422020-09-14 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5945 type::is_unsigned.
5946
653223d3
SM
59472020-09-14 Simon Marchi <simon.marchi@efficios.com>
5948
5949 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5950 methods.
5951 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5952 sites to use type::set_is_unsigned.
5953
55ea94da 59542020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5955 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5956
e851246a
SM
5957 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5958 pointer and stack frame offset when unwinding.
55ea94da 5959
6791b117
PA
59602020-09-13 Pedro Alves <pedro@palves.net>
5961
5962 * NEWS: Document "-break-insert --qualified".
5963 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5964
77f2120b
PA
59652020-09-13 Pedro Alves <pedro@palves.net>
5966
5967 * linespec.c (classify_mtype, compare_msyms): Delete.
5968 (search_minsyms_for_name): Remove classification logic. Instead
5969 filter out trampoline symbols if we also found an external
5970 function of the same name.
5971
ed6a896c
JB
59722020-09-13 Joel Brobecker <brobecker@adacore.com>
5973
5974 * NEWS: Create a new section for the next release branch.
5975 Rename the section of the current branch, now that it has
5976 been cut.
5977
32aea73e
JB
59782020-09-13 Joel Brobecker <brobecker@adacore.com>
5979
5980 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5981 * version.in: Bump version to 11.0.50.DATE-git.
5982
8087c3fa
JB
59832020-09-12 Joel Brobecker <brobecker@adacore.com>
5984
5985 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5986
2a67f09d
FW
59872020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5988 Felix Willgerodt <Felix.Willgerodt@intel.com>
5989
5990 * gdbarch.sh: Added bfloat16 type.
5991 * gdbarch.c: Regenerated.
5992 * gdbarch.h: Regenerated.
5993 * gdbtypes.c (floatformats_bfloat16): New struct.
5994 (gdbtypes_post_init): Add builtin_bfloat16.
5995 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5996 (floatformats_bfloat16): New struct.
5997 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5998 (i386_ymm_type): Add field "v16_bfloat16"
5999 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
6000 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
6001 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
6002 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
6003 * features/i386/64bit-avx512.xml: Add bfloat16 type.
6004 * features/i386/64bit-avx512.c: Regenerated.
6005 * features/i386/64bit-sse.xml: Add bfloat16 type.
6006 * features/i386/64bit-sse.c: Regenerated.
6007
1347d111
FW
60082020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
6009
6010 * i386-tdep.c (i386_zmm_type): Fix field names.
6011 (i386_ymm_type): Fix field names.
6012
7a4e8e7d
TBA
60132020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6014
6015 * breakpoint.c: Fix typo in the help message of the
6016 "set breakpoint condition-evaluation" command.
6017
cf4ac4be
KR
60182020-09-10 Kamil Rytarowski <n54@gmx.com>
6019
6020 * nbsd-nat.c: Include "nat/netbsd-nat.h".
6021 * (nbsd_nat_target::pid_to_exec_file)
6022 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
6023 (nbsd_nat_target::post_startup_inferior)
6024 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
6025 (nbsd_add_threads): Switch local code to common gdb/nat functions.
6026 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
6027 * (nbsd_thread_lister): Remove.
6028
f404573e
KR
60292020-09-10 Kamil Rytarowski <n54@gmx.com>
6030
6031 * fork-inferior.c (startup_inferior): Avoid double free.
6032
1ccb2c17
KR
60332020-09-10 Kamil Rytarowski <n54@gmx.com>
6034
6035 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
6036 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6037
feedfcc7
KR
60382020-09-10 Kamil Rytarowski <n54@gmx.com>
6039
6040 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6041 * netbsd-nat.c: Include <sys/ptrace.h>.
6042 * (netbsd_nat::enable_proc_events): Add.
6043
c489f8c6
KR
60442020-09-10 Kamil Rytarowski <n54@gmx.com>
6045
6046 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6047 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6048 (netbsd_nat::for_each_thread): Add.
6049 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6050 "gdbsupport/common-debug.h".
6051 * (netbsd_nat::netbsd_thread_lister)
6052 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6053 (netbsd_nat::for_each_thread): Add.
6054
330662f6
KR
60552020-09-10 Kamil Rytarowski <n54@gmx.com>
6056
6057 * netbsd-nat.h: Include <unistd.h>.
6058 * (netbsd_nat::pid_to_exec_file): Add.
6059 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6060 * (netbsd_nat::pid_to_exec_file) Add.
6061
70b67307
KR
60622020-09-10 Kamil Rytarowski <n54@gmx.com>
6063
6064 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6065
99cf6da6
KR
60662020-09-10 Kamil Rytarowski <n54@gmx.com>
6067
6068 * netbsd-nat.h: New file.
6069 * netbsd-nat.c: Likewise.
6070
1b788fb6
TT
60712020-09-09 Tom Tromey <tromey@adacore.com>
6072
6073 * ada-lang.c (remove_extra_symbols): Do not increment when
6074 removing an element
6075
03b0a45f
TT
60762020-09-08 Tom Tromey <tromey@adacore.com>
6077
6078 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6079
3cae4447
TT
60802020-09-08 Tom Tromey <tromey@adacore.com>
6081
6082 PR win32/25302:
6083 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6084 (gdb_bfd_init_data): New function.
6085 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6086
7f08fd51
TBA
60872020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6088
6089 * infrun.c (fetch_inferior_event): Use
6090 `switch_to_target_no_thread` to switch the target.
6091
3e6ff933
TT
60922020-09-06 Tom Tromey <tom@tromey.com>
6093
6094 * symfile.h (dwarf2_free_objfile): Don't declare.
6095
e56798df
AKS
60962020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6097
6098 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6099 to match 16 byte real/complex type generated by Flang compiler.
6100
8f5c6526
TV
61012020-09-03 Tom de Vries <tdevries@suse.de>
6102
6103 PR breakpoint/26546
6104 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6105 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6106
c5065df0
SM
61072020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6108
6109 * maint.c (index_digits): New function.
6110 (struct maint_print_section_data): Remove.
6111 (print_bfd_section_info): Remove print_data parameter, add arg
6112 and index_digits.
6113 (print_objfile_section_info): Likewise.
6114 (print_bfd_section_info_maybe_relocated): Likewise (plus
6115 objfile).
6116 (maintenance_info_sections): Adjust calls.
6117
02c6f3f1
TT
61182020-09-02 Tom Tromey <tromey@adacore.com>
6119
6120 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6121 for null pointers.
6122 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6123
ef5e5b0b
SM
61242020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6125
6126 * bcache.h (struct bcache) <insert>: Change type of `added` to
6127 pointer to bool.
6128 * bcache.c (bcache::insert): Likewise.
6129 * gdbtypes.c (check_types_worklist): Adjust.
6130 * psymtab.c (add_psymbol_to_bcache): Adjust.
6131
973695d6
KB
61322020-08-31 Kevin Buettner <kevinb@redhat.com>
6133
6134 * corelow.c (unordered_set): Include.
6135 (class core_target): Add field 'm_core_unavailable_mappings'.
6136 (core_target::build_file_mappings): Print only one warning
6137 per inaccessible file. Add unavailable/broken mappings
6138 to m_core_unavailable_mappings.
6139 (core_target::xfer_partial): Call...
6140 (core_target::xfer_memory_via_mappings): New method.
6141
264fc0e2
SM
61422020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6143
6144 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6145 type to bool.
6146
2de01bdb
SM
61472020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6148
6149 * dwarf2/read.c (struct field_info): Fix indentation.
6150
f3bd50f1
SM
61512020-08-31 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6154 ordering in comment.
6155 * frame.c (frame_id_eq): Fix indentation.
6156
22b9b4b0
SL
61572020-08-31 Scott Linder <scott@scottlinder.com>
6158 Simon Marchi <simon.marchi@efficios.com>
6159
6160 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6161 inline frame ids in outer frame.
6162
84154d16
SM
61632020-08-31 Simon Marchi <simon.marchi@efficios.com>
6164
6165 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6166 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6167 (outer_frame_id): Use FID_STACK_OUTER instead of
6168 FID_STACK_INVALID.
6169 (frame_id_p): Don't check for outer_frame_id.
6170
8efaf6b3
SM
61712020-08-31 Simon Marchi <simon.marchi@efficios.com>
6172
6173 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6174 regnum/frame in value. Call allocate_value_lazy.
6175 * frame.c (frame_unwind_register_value): Use
6176 val_print_not_saved.
6177
fe1fe7ea
SM
61782020-08-31 Simon Marchi <simon.marchi@efficios.com>
6179
6180 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6181
f7c7700d
PA
61822020-08-29 Pedro Alves <pedro@palves.net>
6183
6184 * progspace.c (print_program_space): Use all_inferiors. Switch to
6185 the inferior before calling target_pid_to_str.
6186
e0814aae
TT
61872020-08-28 Tom Tromey <tom@tromey.com>
6188
6189 * xcoffread.c (xcoff_end_psymtab): Update comment.
6190 * dbxread.c (dbx_end_psymtab): Update comment.
6191
626d2320
TV
61922020-08-28 Tom de Vries <tdevries@suse.de>
6193
6194 PR breakpoint/26544
6195 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6196 event_location.
6197 (create_breakpoint): Same.
6198 (base_breakpoint_decode_location): Same.
6199 (bkpt_create_sals_from_location): Same.
6200 (bkpt_decode_location): Same.
6201 (bkpt_probe_create_sals_from_location): Same.
6202 (bkpt_probe_decode_location): Same.
6203 (tracepoint_create_sals_from_location): Same.
6204 (tracepoint_decode_location): Same.
6205 (tracepoint_probe_decode_location): Same.
6206 (strace_marker_create_sals_from_location): Same.
6207 (strace_marker_decode_location): Same.
6208 (create_sals_from_location_default): Same.
6209 (decode_location_default): Same.
6210 * breakpoint.h (struct breakpoint_ops): Same.
6211 (create_breakpoint): Same.
6212 * linespec.h (decode_line_full): Same.
6213 * linespec.c (decode_line_full): Same. Throw error if
6214 result.size () == 0.
6215
df631783
PA
62162020-08-27 Pedro Alves <pedro@palves.net>
6217
6218 PR gdb/26524
6219 * breakpoint.c (until_break_fsm) <location_breakpoint,
6220 caller_breakpoint>: Delete fields.
6221 <breakpoints>: New field.
6222 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6223 two individual breakpoints.
6224 (until_break_fsm::should_stop): Loop over breakpoints in the
6225 breakpoint vector.
6226 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6227 vector.
6228 (until_break_command): Handle location expanding into multiple
6229 sals.
6230
b2b38aa4
PA
62312020-08-27 Pedro Alves <pedro@palves.net>
6232
6233 PR gdb/26523
6234 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6235 bp_until breakpoints user-specified locations. Update intro
6236 comment.
6237
b886559f
SM
62382020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6239
6240 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6241 gdb_bfd_sections): New.
6242 * maint.c (print_bfd_section_info): Change param type to
6243 maint_print_section_data.
6244 (print_objfile_section_info): Likewise.
6245 (print_bfd_section_info_maybe_relocated): Likewise.
6246 (maintenance_info_sections): Use gdb_bfd_sections.
6247
4c6e63bf
SV
62482020-08-25 Shahab Vahedi <shahab@synopsys.com>
6249
6250 * MAINTAINERS: Add ARC target and maintainer.
6251
8d7f0635
AK
62522020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6253
6254 * configure.tgt: ARC support for GNU/Linux.
6255 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6256 * arc-linux-tdep.c: New file.
6257 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6258 * arc-tdep.c (arc_write_pc): Use it.
6259
fdd8731b
SV
62602020-08-25 Shahab Vahedi <shahab@synopsys.com>
6261
6262 * arc-tdep.c (arc_check_for_hardware_loop): New.
6263 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6264
22459524
SV
62652020-08-25 Shahab Vahedi <shahab@synopsys.com>
6266
6267 * arc-tdep.h: Include "gdbarch.h".
6268
995d3a19
SV
62692020-08-25 Shahab Vahedi <shahab@synopsys.com>
6270
6271 * arch/arc.h
6272 (arc_gdbarch_features): New class to stir the selection of target XML.
6273 (arc_create_target_description): Use FEATURES to choose XML target.
6274 (arc_lookup_target_description): Use arc_create_target_description
6275 to create _new_ target descriptions or return the already created
6276 ones if the FEATURES is the same.
6277 * arch/arc.c: Implementation of prototypes described above.
6278 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6279 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6280 * arc-tdep.c (*_feature_name): Make feature names consistent.
6281 (arc_register_feature): A new struct to hold information about
6282 registers of a particular target/feature.
6283 (arc_check_tdesc_feature): Check if XML provides registers in
6284 compliance with ARC_REGISTER_FEATURE structs.
6285 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6286 (determine_*_reg_feature_set): Which feature name to look for.
6287 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6288 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6289 to expected ISA enums to be used in arc_gdbarch_features structs.
6290 * features/Makefile (FEATURE_XMLFILES): Add new files.
6291 * gdb/features/arc/v1-aux.c: New file.
6292 * gdb/features/arc/v1-aux.xml: Likewise.
6293 * gdb/features/arc/v1-core.c: Likewise.
6294 * gdb/features/arc/v1-core.xml: Likewise.
6295 * gdb/features/arc/v2-aux.c: Likewise.
6296 * gdb/features/arc/v2-aux.xml: Likewise.
6297 * gdb/features/arc/v2-core.c: Likewise.
6298 * gdb/features/arc/v2-core.xml: Likewise.
6299 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6300
3945d2d7
GM
63012020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6302 Andrew Burgess <andrew.burgess@embecosm.com>
6303
6304 PR m2/26372
fc5d6901 6305 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6306 an assert. Remove single element array indexing pattern as the
6307 MULTI_SUBSCRIPT support will handle this case too.
6308
2677f2d3
SM
63092020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6310
6311 * value.h (valprint_check_validity): Move declaration from
6312 here...
6313 * valprint.h (valprint_check_validity): ... to here.
6314
c426fddb
SM
63152020-08-24 Simon Marchi <simon.marchi@efficios.com>
6316
6317 * debug.h: New file.
6318 * debug.c (debug_prefixed_vprintf): New function.
6319 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6320 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6321
1eb8556f
SM
63222020-08-24 Simon Marchi <simon.marchi@efficios.com>
6323
6324 * infrun.h (infrun_debug_printf_1): New function declaration.
6325 (infrun_debug_printf): New macro.
6326 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6327 throughout.
6328 (infrun_debug_printf): New function.
6329 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6330 (handle_jit_event): Likewise.
6331
b8fff44e
MW
63322020-08-21 Mark Wielaard <mark@klomp.org>
6333
6334 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6335
d19c3068
SM
63362020-08-22 Simon Marchi <simon.marchi@efficios.com>
6337
6338 * frame.c (enum class frame_id_status): New.
6339 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6340 (fprintf_frame): Update.
6341 (compute_frame_id): Set frame id status to "computing" on entry.
6342 Set it back to "not_computed" on failure and to "computed" on
6343 success.
6344 (get_frame_id): Assert the frame id is not being computed.
6345 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6346 (create_new_frame): Likewise.
6347 (frame_cleanup_after_sniffer): Update assert.
6348
b70e516e
SM
63492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6350
6351 * regcache.c (pid_ptid_regcache_map): New type.
6352 (target_ptid_regcache_map): Remove.
6353 (target_pid_ptid_regcache_map): New type.
6354 (regcaches): Change type to target_pid_ptid_regcache_map.
6355 (get_thread_arch_aspace_regcache): Update.
6356 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6357 case.
6358 (regcaches_size): Update.
6359 (regcache_count): Update.
6360 (registers_changed_ptid_target_pid_test): New.
6361 (_initialize_regcache): Register new test.
6362
cdd9148a
SM
63632020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6364
6365 * regcache.c (regcache_count): New.
6366 (struct regcache_test_data): New.
6367 (regcache_test_data_up): New.
6368 (populate_regcaches_for_test): New.
6369 (regcaches_test): Remove.
6370 (get_thread_arch_aspace_regcache_test): New.
6371 (registers_changed_ptid_all_test): New.
6372 (registers_changed_ptid_target_test): New.
6373 (registers_changed_ptid_target_ptid_test): New.
6374 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6375 (_initialize_regcache): Register new tests.
6376
dd125343
SM
63772020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6378
6379 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6380 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6381 gdbarch and aspace parameter. Use current inferior's aspace.
6382 Validate regcache's arch value.
6383 (regcaches_test): Update.
6384
3ee93972
SM
63852020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6386
6387 * regcache.c (regcaches_test): Call registers_changed.
6388
33bf4c5c
TBA
63892020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6390
6391 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6392
c2fd7fae
AKS
63932020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6394
6395 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6396 to find the end of prologue for flang compiled binaries.
6397 * arm-tdep.c (arm_skip_prologue): Likewise.
6398 * i386-tdep.c (i386_skip_prologue): Likewise.
6399 * producer.c (producer_is_llvm): New function.
6400 (producer_parsing_tests): Added new tests for clang/flang.
6401 * producer.h (producer_is_llvm): New declaration.
6402
9327494e
SM
64032020-08-18 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * linux-nat.c (linux_nat_debug_printf): New function.
6406 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6407
d138725a
AM
64082020-08-18 Aaron Merey <amerey@redhat.com>
6409
6410 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6411 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6412 (CLIBS): Add DEBUGINFOD_LIBS.
6413
f9b11e6b
ST
64142020-08-17 Sergei Trofimovich <siarheit@google.com>
6415
6416 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6417 'gdbarch_num_regs'.
6418
3ae7ab99
TT
64192020-08-17 Tom Tromey <tromey@adacore.com>
6420
6421 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6422 ada_get_decoded_value returns NULL.
6423
b017825f
TT
64242020-08-17 Tom Tromey <tromey@adacore.com>
6425
6426 * python/py-inferior.c (infpy_search_memory): Use
6427 gdb_py_object_from_ulongest.
6428 * python/py-infevents.c (create_inferior_call_event_object)
6429 (create_memory_changed_event_object): Use
6430 gdb_py_object_from_ulongest.
6431 * python/py-linetable.c (ltpy_entry_get_pc): Use
6432 gdb_py_object_from_ulongest.
6433
7635cf79
SM
64342020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6435
6436 * loc.c (class symbol_needs_eval_context): Fix indentation.
6437
f54be24b
SM
64382020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6439
6440 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6441 bool.
6442
53d5a2a5
TV
64432020-08-17 Tom de Vries <tdevries@suse.de>
6444
6445 PR gdb/26393
6446 * gdbtypes.c (dump_dynamic_prop): New function.
6447 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6448
547ce8f0
TV
64492020-08-15 Tom de Vries <tdevries@suse.de>
6450
6451 PR backtrace/26390
6452 * stack.c (print_frame_args): Temporarily set the selected
6453 frame to FRAME while printing the frame's arguments.
6454
6ea815e7
PFC
64552020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6456
6457 PR breakpoints/26385
6458 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6459 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6460
6e562fa3
PFC
64612020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6462
6463 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6464 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6465 and >= to check return value instead of == -1 and != -1.
6466
d369b608
SM
64672020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6468
6469 * utils.h (class gdb_argv) <as_array_view>: New method.
6470 * utils.c (gdb_argv_as_array_view_test): New.
6471 (_initialize_utils): Register selftest.
6472 * maint.c (maintenance_selftest): Use the new method.
6473
b31488a3
KR
64742020-08-13 Kamil Rytarowski <n54@gmx.com>
6475
6476 * target.h (supports_dumpcore, dumpcore): New
6477 function declarations.
6478 * target.c (supports_dumpcore, dumpcore): New
6479 functions.
6480 * target-delegates.c: Rebuild.
6481 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6482 and target_dumpcore ().
6483
002a3166
AM
64842020-08-13 Aaron Merey <amerey@redhat.com>
6485
6486 * debuginfod-support.c: Replace global variables with user_data.
6487
ece5bc8a
SM
64882020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * maint.c (maintenance_selftest): Split args and pass array_view
6491 to run_tests.
6492
6d8a0a5e
LM
64932020-08-12 Luis Machado <luis.machado@linaro.org>
6494
6495 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6496 type's length.
6497 Use %s and pulongest to print the length.
6498
7cf663a9
PA
64992020-08-12 Pedro Alves <palves@redhat.com>
6500
6501 * NEWS: Move "Multi-target debugging support" item to the
6502 "Changes since GDB 9" section.
6503
27c7b875
PA
65042020-08-12 Pedro Alves <palves@redhat.com>
6505
6506 PR gdb/26336
6507 * progspace.c (program_space::remove_objfile): Invalidate the
6508 frame cache.
6509
1796a2a1
TV
65102020-08-11 Tom de Vries <tdevries@suse.de>
6511
6512 * MAINTAINERS: Mark ms1 as deleted.
6513
f8e3fe0d
LM
65142020-08-10 Luis Machado <luis.machado@linaro.org>
6515
6516 PR gdb/26310
6517
6518 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6519 act accordingly.
6520 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6521 movz/str/stur/stp skipping behavior.
6522
cc308722
LM
65232020-08-10 Luis Machado <luis.machado@linaro.org>
6524
6525 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6526 struct user_sve_header instead of struct sve_context.
6527
041d9819
SM
65282020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * read.h (dwarf2_fetch_die_loc_sect_off,
6531 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6532 `void *` parameter with function_view.
6533 * read.c (dwarf2_fetch_die_loc_sect_off,
6534 dwarf2_fetch_die_loc_cu_off): Likewise.
6535 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6536 (per_cu_dwarf_call): Adjust.
6537 (get_frame_address_in_block_wrapper): Remove.
6538 (indirect_synthetic_pointer): Adjust.
6539 (get_ax_pc): Remove.
6540 (dwarf2_compile_expr_to_ax): Adjust.
6541
38f8aa06
TV
65422020-08-08 Tom de Vries <tdevries@suse.de>
6543
6544 PR build/26344
6545 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6546 constructor.
6547 * regcache.c (get_thread_arch_aspace_regcache): Same.
6548
a52b3ae2
TT
65492020-08-07 Tom Tromey <tromey@adacore.com>
6550
6551 * ravenscar-thread.c
6552 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6553 New method.
6554 (ravenscar_thread_target::wait): Check
6555 runtime_initialized.
6556 (ravenscar_thread_target::prepare_to_store)
6557 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6558 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6559 (ravenscar_thread_target::stopped_by_watchpoint)
6560 (ravenscar_thread_target::stopped_data_address)
6561 (ravenscar_thread_target::core_of_thread): Use
6562 scoped_restore_current_thread and
6563 set_base_thread_from_ravenscar_task.
6564
0e29517d
TT
65652020-08-07 Tom Tromey <tromey@adacore.com>
6566
6567 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6568
592f9bd7
TT
65692020-08-07 Tom Tromey <tromey@adacore.com>
6570
6571 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6572 update_inferior_ptid before update_thread_list.
6573 (temporarily_change_regcache_ptid): New class.
6574 (ravenscar_thread_target::fetch_registers)
6575 (ravenscar_thread_target::store_registers)
6576 (ravenscar_thread_target::prepare_to_store): Use base thread when
6577 forwarding operation.
6578
39e2018a
TT
65792020-08-07 Tom Tromey <tromey@adacore.com>
6580
6581 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6582 "is_pid" case.
6583
2080266b
TT
65842020-08-07 Tom Tromey <tromey@adacore.com>
6585
6586 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6587 New methods.
6588 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6589 first.
6590 (ravenscar_thread_target::add_thread): Rename from
6591 ravenscar_add_thread.
6592 (ravenscar_thread_target::update_thread_list): Use a lambda.
6593 (ravenscar_thread_target::xfer_partial): New method.
6594
78c02f21
TT
65952020-08-07 Tom Tromey <tromey@adacore.com>
6596
6597 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6598 gdb::function_view.
6599 (iterate_over_live_ada_tasks): Change type of argument.
6600 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6601 of argument.
6602
d5d833af
TT
66032020-08-07 Tom Tromey <tromey@adacore.com>
6604
6605 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6606 Remove.
6607 (ravenscar_thread_target::extra_thread_info): Remove.
6608 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6609 defer to target beneath for non-Ravenscar threads.
6610
a8ac85bb
TT
66112020-08-07 Tom Tromey <tromey@adacore.com>
6612
6613 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6614 get_base_thread_from_ravenscar_task>: Now methods.
6615 <m_cpu_map>: New member.
6616 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6617 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6618 (ravenscar_thread_target::task_is_currently_active): Update.
6619 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6620 Now a method.
6621 (ravenscar_thread_target::add_active_thread): Put initial thread
6622 into the m_cpu_map.
6623
550ab58d
TT
66242020-08-07 Tom Tromey <tromey@adacore.com>
6625
6626 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6627 event_ptid.
6628
e9546579
TT
66292020-08-07 Tom Tromey <tromey@adacore.com>
6630
6631 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6632 runtime_initialized.
6633
3d4470e5
TT
66342020-08-07 Tom Tromey <tromey@adacore.com>
6635
6636 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6637 add_active_thread.
6638 (ravenscar_thread_target::add_active_thread): Now public.
6639 (ravenscar_inferior_created): Call add_active_thread after pushing
6640 the target.
6641
888bdb2b
SM
66422020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6643
6644 * regcache.c (ptid_regcache_map): New type.
6645 (target_ptid_regcache_map): New type.
6646 (regcaches): Change type to target_ptid_regcache_map.
6647 (get_thread_arch_aspace_regcache): Update to regcaches' new
6648 type.
6649 (regcache_thread_ptid_changed): Likewise.
6650 (registers_changed_ptid): Likewise.
6651 (regcaches_size): Likewise.
6652 (regcaches_test): Update.
6653 (regcache_thread_ptid_changed): Update.
6654 * regcache.h (regcache_up): New type.
6655 * gdbsupport/ptid.h (hash_ptid): New struct.
6656
b161a60d
SM
66572020-08-07 Simon Marchi <simon.marchi@efficios.com>
6658
6659 * observable.h (thread_ptid_changed): Add parameter
6660 `process_stratum_target *`.
6661 * infrun.c (infrun_thread_ptid_changed): Add parameter
6662 `process_stratum_target *` and use it.
6663 (selftests): New namespace.
6664 (infrun_thread_ptid_changed): New function.
6665 (_initialize_infrun): Register selftest.
6666 * regcache.c (regcache_thread_ptid_changed): Add parameter
6667 `process_stratum_target *` and use it.
6668 (regcache_thread_ptid_changed): New function.
6669 (_initialize_regcache): Register selftest.
6670 * thread.c (thread_change_ptid): Pass target to
6671 thread_ptid_changed observable.
6672
d2854d8d
CT
66732020-08-06 Caroline Tice <cmtice@google.com>
6674
fe4c3d43
SM
6675 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6676 (struct dwp_sections): Update field comments. Add loclists and
6677 rnglists fields.
6678 (struct virtual_v2_dwo_sections): Rename struct to
6679 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6680 size & offset fields for loclists and rnglists.
6681 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6682 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6683 skipping dummy type units.
6684 (create_dwp_hash_table): Update the large comment above the function to
6685 discuss Version 5 DWP files as well, with references. Update all the
6686 version checks in the function to check for version 5 as well. Add new
6687 section at the end to create dwp hash table for version 5.
6688 (create_dwp_v2_section): Rename function to
6689 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6690 Add V5 to error message text.
6691 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6692 into calls to create_dwp_v2_or_v5_section.
6693 (create_dwo_unit_in_dwp_v5): New function.
6694 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6695 check for version2; add else clause to handle version 5.
6696 (open_and_init_dwo_file): Add code to check dwarf version & only call
6697 create_debug_types_hash_table (with sections.types) if version is not 5;
6698 else call create_debug_type_hash_table, with sections.info.
6699 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6700 version 5.
6701 (dwarf2_locate_v5_dwp_sections): New function.
6702 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6703 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6704
159ed7d9
SM
67052020-08-06 Simon Marchi <simon.marchi@efficios.com>
6706
6707 * regcache.h (class regcache): Remove friend
6708 registers_changed_ptid.
6709 <regcache_thread_ptid_changed>: Remove.
6710 <regcaches>: Remove.
6711 * regcache.c (regcache::regcaches): Rename to...
6712 (regcaches): ... this. Make static.
6713 (get_thread_arch_aspace_regcache): Update.
6714 (regcache::regcache_thread_ptid_changed): Rename to...
6715 (regcache_thread_ptid_changed): ... this. Update.
6716 (class regcache_access): Remove.
6717 (regcaches_test): Update.
6718 (_initialize_regcache): Update.
6719 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6720 <forward_list>.
6721
174981ae
SM
67222020-08-06 Simon Marchi <simon.marchi@efficios.com>
6723
6724 * regcache.h (class regcache) <current_regcache>: Rename to...
6725 <regcaches>: ... this. Move doc here.
6726 * regcache.c (regcache::current_regcache) Rename to...
6727 (regcache::regcaches): ... this. Move doc to header.
6728 (get_thread_arch_aspace_regcache): Update.
6729 (regcache::regcache_thread_ptid_changed): Update.
6730 (registers_changed_ptid): Update.
6731 (class regcache_access) <current_regcache_size>: Rename to...
6732 <regcaches_size>: ... this.
6733 (current_regcache_test): Rename to...
6734 (regcaches_test): ... this.
6735 (_initialize_regcache): Update.
6736
ed908db6
VC
67372020-08-06 Victor Collod <vcollod@nvidia.com>
6738
6739 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6740
b5582ab7
KB
67412020-08-05 Kevin Buettner <kevinb@redhat.com>
6742
6743 * corelow.c (core_target::build_file_mappings): Don't output
6744 null pathname in warning.
6745
ea946b86
SM
67462020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6747
6748 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6749 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6750 gdb.dwarf2/dw2-single-line-discriminators.exp,
6751 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6752
57d02173
TT
67532020-08-05 Tom Tromey <tromey@adacore.com>
6754
6755 PR rust/26197:
6756 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6757 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6758 Fix off-by-one and type size errors in ordinary case.
6759
5555c86d
TV
67602020-08-05 Tom de Vries <tdevries@suse.de>
6761
6762 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6763 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6764
97916bfe
SM
67652020-08-04 Simon Marchi <simon.marchi@efficios.com>
6766
6767 * frame.h (frame_id_p): Return bool.
6768 (frame_id_artificial_p): Return bool.
6769 (frame_id_eq): Return bool.
6770 (has_stack_frames): Return bool.
6771 (get_selected_frame): Fix typo in comment.
6772 (get_frame_pc_if_available): Return bool.
6773 (get_frame_address_in_block_if_available): Return bool.
6774 (get_frame_func_if_available): Return bool.
6775 (read_frame_register_unsigned): Return bool.
6776 (get_frame_register_bytes): Return bool.
6777 (safe_frame_unwind_memory): Return bool.
6778 (deprecated_frame_register_read): Return bool.
6779 (frame_unwinder_is): Return bool.
6780 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6781 bool.
6782 <this_id::p>: Likewise.
6783 <prev_p>: Likewise.
6784 (frame_stash_add): Return bool.
6785 (get_frame_id): Use bool.
6786 (frame_id_build_special) Use bool.
6787 (frame_id_build_unavailable_stack): Use bool.
6788 (frame_id_build): Use bool.
6789 (frame_id_p): Return bool, use true/false instead of 1/0.
6790 (frame_id_artificial_p): Likewise.
6791 (frame_id_eq): Likewise.
6792 (frame_id_inner): Likewise.
6793 (get_frame_func_if_available): Likewise.
6794 (read_frame_register_unsigned): Likewise.
6795 (deprecated_frame_register_read): Likewise.
6796 (get_frame_register_bytes): Likewise.
6797 (has_stack_frames): Likewise.
6798 (inside_main_func): Likewise.
6799 (inside_entry_func): Likewise.
6800 (get_frame_pc_if_available): Likewise.
6801 (get_frame_address_in_block_if_available): Likewise.
6802 (frame_unwinder_is): Likewise.
6803 (safe_frame_unwind_memory): Likewise.
6804 (frame_unwind_arch): Likewise.
6805
fedfee88
SM
68062020-08-04 Simon Marchi <simon.marchi@efficios.com>
6807
6808 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6809 type to cached_copy_status.
6810 (fprintf_frame): Adjust.
6811 (get_frame_func_if_available): Adjust.
6812 (frame_cleanup_after_sniffer): Adjust.
6813
6cfa9b59
MW
68142020-08-04 Mark Wielaard <mark@klomp.org>
6815
6816 * MAINTAINERS (Write After Approval): Update email address.
6817
66d6346b
SM
68182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6819
6820 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6821 dynamic_prop::const_val.
6822
8a6d5e35
SM
68232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6826 dynamic_prop::kind.
6827
51d6067d
SM
68282020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6829
6830 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6831
b26e2ae7
JM
68322020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6833
6834 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6835
39791af2
JM
68362020-08-04 Weimin Pan <weimin.pan@oracle.com>
6837 Jose E. Marchesi <jose.marchesi@oracle.com>
6838
6839 * configure.tgt: Add entry for bpf-*-*.
6840 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6841 (ALLDEPFILES): Add bpf-tdep.c.
6842 * bpf-tdep.c: New file.
6843 * MAINTAINERS: Add bpf target and maintainer.
6844 * NEWS: Mention the support for the new target.
6845
521894aa
TV
68462020-08-04 Tom de Vries <tdevries@suse.de>
6847
6848 PR symtab/23270
6849 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6850 Error.
6851
5d6356e9
JB
68522020-08-03 John Baldwin <jhb@FreeBSD.org>
6853
6854 * syscalls/freebsd.xml: Regenerate.
6855
0cf82b81
JB
68562020-08-03 John Baldwin <jhb@FreeBSD.org>
6857
6858 * syscalls/update-freebsd.sh: Fix usage and year range.
6859
8f34b746
TV
68602020-08-03 Tom de Vries <tdevries@suse.de>
6861
6862 PR symtab/26333
6863 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6864 DW_LNE_lo_user/DW_LNE_hi_user range.
6865
5e500d33
SM
68662020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6867
6868 PR ada/26318
6869 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6870 kind.
6871
78319c15
TBA
68722020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6873
6874 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6875
4c55e970
TBA
68762020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6877
6878 * breakpoint.c (set_breakpoint_condition): Update the condition
6879 expressions after checking that the input condition string parses
6880 successfully and does not contain junk at the end.
6881
1e620590
TBA
68822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6883
6884 * breakpoint.c (set_breakpoint_condition): Update the
6885 condition string after parsing the new condition successfully.
6886
c8693053
RO
68872020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6888
6889 * proc-api.c (_STRUCTURED_PROC): Don't define.
6890 * proc-events.c: Likewise.
6891 * proc-flags.c: Likewise.
6892 * proc-why.c: Likewise.
6893 * procfs.c: Likewise.
6894
6895 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6896 * configure, config.in: Regenerate.
6897
5a99adb8
TV
68982020-07-30 Tom de Vries <tdevries@suse.de>
6899
6900 PR build/26320
6901 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6902 m_red/m_green/m_blue in a union.
6903
8ba83e91
TV
69042020-07-29 Tom de Vries <tdevries@suse.de>
6905
6906 PR tdep/26280
6907 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6908
f75a0693
AB
69092020-07-28 Tom Tromey <tromey@adacore.com>
6910
6911 PR symtab/26270:
6912 * symtab.h (find_pc_partial_function_sym): Declare.
6913 * cli/cli-cmds.c (disassemble_command): Use
6914 find_pc_partial_function_sym. Check asm_demangle.
6915 * blockframe.c (cache_pc_function_sym): New global.
6916 (cache_pc_function_name): Remove.
6917 (clear_pc_function_cache): Update.
6918 (find_pc_partial_function_sym): New function, from
6919 find_pc_partial_function.
6920 (find_pc_partial_function): Rewrite using
6921 find_pc_partial_function_sym.
6922
16f3242c
TT
69232020-07-28 Tom Tromey <tromey@adacore.com>
6924
6925 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6926 help. Add usage.
6927
4888741a
TT
69282020-07-28 Tom Tromey <tromey@adacore.com>
6929
6930 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6931 <DW_OP_GNU_variable_value>: Cast to address type.
6932
4d46f402
KR
69332020-07-28 Kamil Rytarowski <n54@gmx.com>
6934
6935 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6936 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6937 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6938 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6939 (nbsd_get_siginfo_type): New.
6940 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6941 (_initialize_nbsd_tdep): New.
6942
d70f978b
L
69432020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6944
6945 PR binutils/26301
6946 * configure: Regenerated.
6947
377170fa
L
69482020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6949
6950 PR binutils/26301
6951 * configure: Regenerated.
6952
43d5901d
AB
69532020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6954
6955 * python/py-frame.c: Remove 'user-regs.h' include.
6956 (frapy_read_register): Rewrite to make use of
6957 gdbpy_parse_register_id.
6958 * python/py-registers.c (gdbpy_parse_register_id): New function,
6959 moved here from python/py-unwind.c. Updated the return type, and
6960 also accepts register descriptor objects.
6961 * python/py-unwind.c: Remove 'user-regs.h' include.
6962 (pyuw_parse_register_id): Moved to python/py-registers.c.
6963 (unwind_infopy_add_saved_register): Update to use
6964 gdbpy_parse_register_id.
6965 (pending_framepy_read_register): Likewise.
6966 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6967
14fa8fb3
AB
69682020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6969
6970 * python/py-registers.c: Add 'user-regs.h' include.
6971 (register_descriptor_iter_find): New function.
6972 (register_descriptor_iterator_object_methods): New static global
6973 methods array.
6974 (register_descriptor_iterator_object_type): Add pointer to methods
6975 array.
6976
ddce1758
JB
69772020-07-27 John Baldwin <jhb@FreeBSD.org>
6978
6979 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6980 for all architectures on FreeBSD 11.3 and later.
6981
a4089f52
TT
69822020-07-27 Tom Tromey <tromey@adacore.com>
6983
6984 * gcore.h (load_corefile): Don't declare.
6985
95420d30
TV
69862020-07-27 Tom de Vries <tdevries@suse.de>
6987
6988 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6989 * config.in: Regenerate.
6990 * configure: Regenerate.
6991
05a6b8c2
EZ
69922020-07-26 Eli Zaretskii <eliz@gnu.org>
6993
6994 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6995 ws2tcpip.h. When checking whether socklen_t type is defined, use
6996 ws2tcpip.h if it is available and sys/socket.h isn't.
6997 * configure: Regenerate.
6998 * config.in: Regenerate.
6999
e79eb02f
AB
70002020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
7001
7002 PR fortran/23051
7003 PR fortran/26139
7004 * valops.c (value_ind): Pass address to
7005 readjust_indirect_value_type.
7006 * value.c (readjust_indirect_value_type): Make parameter
7007 non-const, and add extra address parameter. Resolve original type
7008 before using it.
7009 * value.h (readjust_indirect_value_type): Update function
7010 signature and comment.
7011
876518dd
TV
70122020-07-25 Tom de Vries <tdevries@suse.de>
7013
7014 PR symtab/26243
7015 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
7016 entries.
7017
f6720b1c
AM
70182020-07-24 Aaron Merey <amerey@redhat.com>
7019
7020 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
7021 * configure: Rebuild.
7022
513487e1
KB
70232020-07-23 Kevin Buettner <kevinb@redhat.com>
7024
7025 PR corefiles/26294
7026 * corelow.c (_initialize_corelow): Add period to help text
7027 for "maintenance print core-file-backed-mappings".
7028
e7bc9db8
PA
70292020-07-23 Pedro Alves <pedro@palves.net>
7030
7031 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
7032 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
7033 meanwhile.
7034 * frame.c (frame_cache_generation, get_frame_cache_generation):
7035 New.
7036 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7037 (get_prev_frame_if_no_cycle): On exception, don't touch
7038 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7039 * frame.h (get_frame_cache_generation): Declare.
7040
90fcc466
TV
70412020-07-23 Tom de Vries <tdevries@suse.de>
7042
7043 PR tui/26282
7044 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7045 New default constructor.
7046
78344df7
AB
70472020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7048
7049 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7050 exclude non-statement entries.
7051
b089853a
KB
70522020-07-22 Kevin Buettner <kevinb@redhat.com>
7053
7054 * NEWS (New commands): Mention new command
7055 "maintenance print core-file-backed-mappings".
7056
09c2f5d4
KB
70572020-07-22 Kevin Buettner <kevinb@redhat.com>
7058
7059 * corelow.c (gdbcmd.h): Include.
7060 (core_target::info_proc_mappings): New method.
7061 (get_current_core_target): New function.
7062 (maintenance_print_core_file_backed_mappings): New function.
7063 (_initialize_corelow): Add core-file-backed-mappings to
7064 "maint print" commands.
7065
9c5ec5c2 70662020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 7067
9c5ec5c2
KB
7068 * linux-tdep.c (dump_note_entry_p): New function.
7069 (linux_dump_mapping_p_ftype): New typedef.
7070 (linux_find_memory_regions_full): Add new parameter,
7071 should_dump_mapping_p.
7072 (linux_find_memory_regions): Adjust call to
7073 linux_find_memory_regions_full.
7074 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7075 call to linux_find_memory_regions_full.
7076
db082f59
KB
70772020-07-22 Kevin Buettner <kevinb@redhat.com>
7078
7079 * corelow.c (solist.h, unordered_map): Include.
7080 (class core_target): Add field m_core_file_mappings and
7081 method build_file_mappings.
7082 (core_target::core_target): Call build_file_mappings.
7083 (core_target::~core_target): Free memory associated with
7084 m_core_file_mappings.
7085 (core_target::build_file_mappings): New method.
7086 (core_target::xfer_partial): Use m_core_file_mappings
7087 for memory transfers.
7088 * linux-tdep.c (linux_read_core_file_mappings): New
7089 function.
7090 (linux_core_info_proc_mappings): Rewrite to use
7091 linux_read_core_file_mappings.
7092 (linux_init_abi): Register linux_read_core_file_mappings.
7093
7e183d27
KB
70942020-07-22 Kevin Buettner <kevinb@redhat.com>
7095
7096 * arch-utils.c (default_read_core_file_mappings): New function.
7097 * arch-utils.c (default_read_core_file_mappings): Declare.
7098 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7099 * gdbarch.h, gdbarch.c: Regenerate.
7100
2735d421
KB
71012020-07-22 Kevin Buettner <kevinb@redhat.com>
7102
7103 PR corefiles/25631
7104 * corelow.c (core_target:xfer_partial): Revise
7105 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7106 case after first checking the stratum beneath the core
7107 target.
7108 (has_all_memory): Return true.
7109 * target.c (raw_memory_xfer_partial): Revise comment
7110 regarding use of has_all_memory.
7111
e56cb451
KB
71122020-07-22 Kevin Buettner <kevinb@redhat.com>
7113
7114 * exec.h (section_table_xfer_memory): Revise declaration,
7115 replacing section name parameter with an optional callback
7116 predicate.
7117 * exec.c (section_table_xfer_memory): Likewise.
7118 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7119 of section_table_xfer_memory.
7120
32fa152e
TT
71212020-07-22 Tom Tromey <tromey@adacore.com>
7122
7123 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7124 lookup_symbol_search_name.
7125
a67a1c41
AB
71262020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7127
7128 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7129 redundant local variable.
7130 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7131 reference, not pointer, update code accordingly.
7132
a7b4ff4f
SM
71332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7134 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7135
7136 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7137 * jit.c (jit_breakpoint_re_set_internal): Use the
7138 `skip_jit_symbol_lookup` field.
7139
2340e834
SM
71402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7141 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7142
7143 * jit.c (jit_read_descriptor): Define the descriptor address once,
7144 use twice.
7145 (jit_breakpoint_deleted): Move the declaration of the loop variable
7146 `iter` into the loop header.
7147 (jit_breakpoint_re_set_internal): Move the declaration of the local
7148 variable `objf_data` to the first point of definition.
7149 (jit_event_handler): Move the declaration of local variables
7150 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7151 Rename `objf` to `jited`.
7152
c1072906
SM
71532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7156 Remove.
7157 * jit.c (get_jiter_objfile_data): Update.
7158
c8474dc3
TBA
71592020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7160 Simon Marchi <simon.marchi@polymtl.ca>
7161
7162 * jit.c (struct jit_program_space_data): Remove.
7163 (jit_program_space_key): Remove.
7164 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7165 stuff.
7166 (get_jit_program_space_data): Remove.
7167 (jit_breakpoint_deleted): Iterate on all of the program space's
7168 objfiles.
7169 (jit_inferior_init): Likewise.
7170 (jit_breakpoint_re_set_internal): Likewise. Also change return
7171 type to void.
7172 (jit_breakpoint_re_set): Pass current_program_space to
7173 jit_breakpoint_re_set_internal.
7174
77208eb7
SM
71752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7176
7177 * jit.h (struct jiter_objfile_data) <cached_code_address,
7178 jit_breakpoint>: Move to here from ...
7179 * jit.c (jit_program_space_data): ... here.
7180 (jiter_objfile_data::~jiter_objfile_data): Update.
7181 (jit_breakpoint_deleted): Update.
7182 (jit_breakpoint_re_set_internal): Update.
7183
8c1c720f
SM
71842020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7185
7186 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7187 checks.
7188 (jit_read_descriptor): Remove NULL check.
7189 (jit_event_handler): Add an assertion.
7190
0e74a041
SM
71912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7192
7193 * jit.h (struct jit_objfile_data): Split into...
7194 (struct jiter_objfile_data): ... this ...
7195 (struct jited_objfile_data): ... and this.
7196 * objfiles.h (struct objfile) <jit_data>: Remove.
7197 <jiter_data, jited_data>: New fields.
7198 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7199 (jiter_objfile_data::~jiter_objfile_data): ... this.
7200 (get_jit_objfile_data): Rename to ...
7201 (get_jiter_objfile_data): ... this.
7202 (add_objfile_entry): Update.
7203 (jit_read_descriptor): Use get_jiter_objfile_data.
7204 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7205 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7206 (jit_inferior_exit_hook): Use objfile's jited_data field.
7207
238b5c9f
SM
72082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7209
7210 * jit.h: Forward-declare `struct minimal_symbol`.
7211 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7212 constructor, destructor, and an objfile* field.
7213 * jit.c (jit_objfile_data): Remove.
7214 (struct jit_objfile_data): Migrate from here to jit.h.
7215 (jit_objfile_data::~jit_objfile_data): New destructor
7216 implementation with code moved from free_objfile_data.
7217 (free_objfile_data): Delete.
7218 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7219 (jit_find_objf_with_entry_addr): Ditto.
7220 (jit_inferior_exit_hook): Ditto.
7221 (_initialize_jit): Remove the call to
7222 register_objfile_data_with_cleanup.
7223 * objfiles.h (struct objfile) <jit_data>: New field.
7224
fe053b9e
TBA
72252020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7226
7227 * jit.h: Forward-declare `struct objfile`.
7228 (jit_event_handler): Add a second parameter, the JITer objfile.
7229 * jit.c (jit_read_descriptor): Change the signature to take the
7230 JITer objfile as an argument instead of the jit_program_space_data.
7231 (jit_inferior_init): Update the call to jit_read_descriptor.
7232 (jit_event_handler): Use the new JITer objfile argument when calling
7233 jit_read_descriptor.
7234 * breakpoint.c (handle_jit_event): Update the call to
7235 jit_event_handler to pass the JITer objfile.
7236
4cec0c66
JB
72372020-07-21 John Baldwin <jhb@FreeBSD.org>
7238
7239 * gdbarch.c: Regenerate.
7240 * gdbarch.h: Regenerate.
7241 * gdbarch.sh (handle_segmentation_fault): Remove method.
7242 * infrun.c (handle_segmentation_fault): Remove.
7243 (print_signal_received_reason): Remove call to
7244 handle_segmentation_fault.
7245
0e42f66a
JB
72462020-07-21 John Baldwin <jhb@FreeBSD.org>
7247
7248 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7249 Rename to sparc64_linux_report_signal_info and add siggnal
7250 argument.
7251 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7252 instead of sparc64_linux_handle_segmentation_fault.
7253
77bdfeb2
JB
72542020-07-21 John Baldwin <jhb@FreeBSD.org>
7255
7256 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7257 i386_linux_report_signal_info instead of
7258 i386_linux_handle_segmentation_fault.
7259 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7260 to i386_linux_report_signal_info and add siggnal argument.
7261 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7262 of i386_linux_handle_segmentation_fault.
7263 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7264 to i386_linux_report_signal_info and add siggnal argument.
7265
ad97bfc5
JB
72662020-07-21 John Baldwin <jhb@FreeBSD.org>
7267
7268 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7269 hook if present.
7270
272bb05c
JB
72712020-07-21 John Baldwin <jhb@FreeBSD.org>
7272
7273 * gdbarch.c: Regenerate.
7274 * gdbarch.h: Regenerate.
7275 * gdbarch.sh (report_signal_info): New method.
7276 * infrun.c (print_signal_received_reason): Invoke gdbarch
7277 report_signal_info hook if present.
7278
baf8791e
AB
72792020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7280
7281 * python/py-registers.c : Add 'unordered_map' include.
7282 (gdbpy_new_reggroup): Renamed to...
7283 (gdbpy_get_reggroup): ...this. Update to only create register
7284 group descriptors when needed.
7285 (gdbpy_reggroup_iter_next): Update.
7286
f7306dac
AB
72872020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7288
7289 * python/py-registers.c (gdbpy_register_object_data): New static
7290 global.
7291 (gdbpy_register_object_data_init): New function.
7292 (gdbpy_new_register_descriptor): Renamed to...
7293 (gdbpy_get_register_descriptor): ...this, and update to reuse
7294 existing register descriptors where possible.
7295 (gdbpy_register_descriptor_iter_next): Update.
7296 (gdbpy_initialize_registers): Register new gdbarch data.
7297
05c309a8
SM
72982020-07-21 Simon Marchi <simon.marchi@efficios.com>
7299
7300 * linux-nat.c (stopped_pids): Make static.
7301
d1fd641e
SM
73022020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7303
7304 PR ada/26235
7305 * gdbtypes.c (ada_discrete_type_low_bound,
7306 ada_discrete_type_high_bound): Handle undefined bounds.
7307
1de14d77
KR
73082020-07-21 Kamil Rytarowski <n54@gmx.com>
7309
7310 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7311 declaration.
7312 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7313 function.
7314
ed810cc7
JB
73152020-07-20 John Baldwin <jhb@FreeBSD.org>
7316
7317 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7318 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7319 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7320 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7321 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7322 method.
7323
ae5369e7
LC
73242020-07-20 Ludovic Courtès <ludo@gnu.org>
7325
7326 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7327 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7328 which are deprecated in Guile 3.0.
7329 * configure.ac (try_guile_versions): Add "guile-3.0".
7330 * configure (try_guile_versions): Regenerate.
7331 * NEWS: Update entry.
7332
68cf161c
LC
73332020-07-20 Ludovic Courtès <ludo@gnu.org>
7334 Doug Evans <dje@google.com>
7335
7336 PR gdb/21104
7337 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7338 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7339 USING_GUILE_BEFORE_2_2.
7340 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7341 Change type to 'scm_t_port_type *'.
7342 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7343 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7344 parameter and honor it. Update callers.
7345 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7346 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7347 functions.
7348 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7349 USING_GUILE_BEFORE_2_2.
7350 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7351 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7352 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7353 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7354 and 'SCM_PORT_TYPE'.
7355 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7356 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7357 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7358 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7359 [!USING_GUILE_BEFORE_2_2]: New functions.
7360 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7361 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7362 'gdbscm_memory_port_read'.
7363 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7364 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7365 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7366 function.
7367 (ioscm_init_memory_port): Remove.
7368 (ioscm_init_memory_port_stream): New function
7369 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7370 function.
7371 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7372 Return scm_from_uint (0).
7373 (gdbscm_set_memory_port_read_buffer_size_x)
7374 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7375 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7376 Return scm_from_uint (0).
7377 (gdbscm_set_memory_port_write_buffer_size_x)
7378 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7379 * configure.ac (try_guile_versions): Add "guile-2.2".
7380 * configure: Regenerate.
7381 * NEWS: Add entry.
7382
aee91db3
TT
73832020-07-18 Tom Tromey <tom@tromey.com>
7384
7385 * linux-nat.c (linux_multi_process): Remove.
7386 (linux_nat_target::supports_multi_process): Return true.
7387
0e267416
AB
73882020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7389
7390 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7391 (riscv_lookup_target_description): Return pointer out of
7392 unique_ptr.
7393 * target-descriptions.c (allocate_target_description): Add
7394 comment.
7395 (target_desc_deleter::operator()): Likewise.
7396 * target-descriptions.h (struct target_desc_deleter): Moved to
7397 gdbsupport/tdesc.h.
7398 (target_desc_up): Likewise.
7399
f80c8ec4
TT
74002020-07-17 Tom Tromey <tromey@adacore.com>
7401
7402 * linux-nat.c (linux_nat_target::supports_non_stop)
7403 (linux_nat_target::always_non_stop_p): Use "true".
7404 (linux_nat_target::supports_disable_randomization): Use "true" and
7405 "false".
7406
d0ce17d8
CT
74072020-07-16 Caroline Tice <cmtice@google.com>
7408
7409 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7410 (RNGLIST_HEADER_SIZE64): New constant definition.
7411 (struct dwop_section_names): Add rnglists_dwo.
7412 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7413 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7414 (struct dwo_sections): Add rnglists field.
7415 (read_attribut_reprocess): Add tag parameter.
7416 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7417 (cu_debug_rnglists_section): New function (decl & definition).
7418 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7419 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7420 die whose range is being checked; get rnglist section from
7421 cu_debug_rnglists_section, to get from either objfile or dwo file as
7422 appropriate. Add cases for DW_RLE_base_addressx,
7423 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7424 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7425 test inside if-condition and updating complaint message.
7426 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7427 dwarf2_rnglists_process.
7428 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7429 dwarf2_ranges_process.
7430 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7431 need_ranges_base and update comment appropriately. Also pass die tag
7432 to dwarf2_ranges_read.
7433 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7434 need_ranges_base and update comment appropriately. Also pass die tag
7435 to dwarf2_ranges_process.
7436 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7437 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7438 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7439 need_ranges_base and update comment appropriately. Also pass die tag
7440 to read_attribute_reprocess and dwarf2_ranges_read.
7441 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7442 and update function comment appropriately.
7443 (read_loclist_index): Call read_loclists_rnglists_header instead of
7444 read_loclist_header.
7445 (read_rnglist_index): New function.
7446 (read_attribute_reprocess): Add tag parameter. Add code for
7447 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7448 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7449
3dcc261c
AB
74502020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7451
7452 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7453 being resolved.
7454
ccb9eba6
AB
74552020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7456
7457 * arch-utils.c (show_architecture): Update formatting of messages.
7458
cf88be68
SM
74592020-07-12 Simon Marchi <simon.marchi@efficios.com>
7460
7461 * gdbtypes.h (struct type) <bounds>: Handle array and string
7462 types.
7463 * ada-lang.c (assign_aggregate): Use type::bounds on
7464 array/string type.
7465 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7466 * c-varobj.c (c_number_of_children): Likewise.
7467 (c_describe_child): Likewise.
7468 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7469 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7470 (f_type_print_base): Likewise.
7471 * f-valprint.c (f77_array_offset_tbl): Likewise.
7472 (f77_get_upperbound): Likewise.
7473 (f77_print_array_1): Likewise.
7474 * guile/scm-type.c (gdbscm_type_range): Likewise.
7475 * m2-typeprint.c (m2_array): Likewise.
7476 (m2_is_long_set_of_type): Likewise.
7477 * m2-valprint.c (get_long_set_bounds): Likewise.
7478 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7479 * python/py-type.c (typy_range): Likewise.
7480 * rust-lang.c (rust_internal_print_type): Likewise.
7481 * type-stack.c (type_stack::follow_types): Likewise.
7482 * valarith.c (value_subscripted_rvalue): Likewise.
7483 * valops.c (value_cast): Likewise.
7484
509971ae
SM
74852020-07-12 Simon Marchi <simon.marchi@efficios.com>
7486
7487 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7488 callers to use the equivalent accessor methods.
7489
107406b7
SM
74902020-07-12 Simon Marchi <simon.marchi@efficios.com>
7491
7492 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7493 (struct type) <bit_stride>: New method.
7494 (TYPE_BIT_STRIDE): Remove.
7495 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7496
bb789949
SM
74972020-07-12 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7500 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7501 callers to use the equivalent accessor methods instead.
7502
39498edb
SM
75032020-07-12 Simon Marchi <simon.marchi@efficios.com>
7504
7505 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7506 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7507 callers to use the equivalent accessor methods instead.
7508
3b606f38
SM
75092020-07-12 Simon Marchi <simon.marchi@efficios.com>
7510
7511 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7512 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7513 to use dynamic_prop::kind.
7514
064d9cb9
SM
75152020-07-12 Simon Marchi <simon.marchi@efficios.com>
7516
7517 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7518 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7519 to get the bound property's kind and check against
7520 PROP_UNDEFINED.
7521
5537ddd0
SM
75222020-07-12 Simon Marchi <simon.marchi@efficios.com>
7523
7524 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7525 all callers to use type::range_bounds followed by
7526 dynamic_prop::{low,high}.
7527
8c2e4e06
SM
75282020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7529
7530 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7531 const_val, set_const_val, baton, set_locexpr, set_loclist,
7532 set_addr_offset, variant_parts, set_variant_parts,
7533 original_type, set_original_type>: New methods.
7534 <kind>: Rename to...
7535 <m_kind>: ... this. Update all users to use the new methods
7536 instead.
7537 <data>: Rename to...
7538 <m_data>: ... this. Update all users to use the new methods
7539 instead.
7540
7c6f2712
SM
75412020-07-12 Simon Marchi <simon.marchi@efficios.com>
7542
7543 * gdbtypes.c (get_discrete_bounds): Return failure if
7544 the range type's bounds are not both defined and constant
7545 values.
7546 (get_array_bounds): Update comment. Remove undefined bound check.
7547
599088e3
SM
75482020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7549
7550 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7551 the type::bounds method directly.
7552
c4dfcb36
SM
75532020-07-12 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7556 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7557 are used to set the range type's bounds to use set_bounds.
7558
0a278aa7
PW
75592020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7560
7561 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7562
cce20f10
PA
75632020-07-10 Pedro Alves <pedro@palves.net>
7564
7565 * gdbthread.h (inferior_ref): Define.
7566 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7567 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7568 * thread.c
7569 (scoped_restore_current_thread::restore):
7570 Adjust to gdb::ref_ptr.
7571 (scoped_restore_current_thread::~scoped_restore_current_thread):
7572 Remove manual decref handling.
7573 (scoped_restore_current_thread::scoped_restore_current_thread):
7574 Adjust to use
7575 inferior_ref::new_reference/thread_info_ref::new_reference.
7576 Incref the thread before calling get_frame_id instead of after.
7577 Let TARGET_CLOSE_ERROR propagate.
7578
6d7aa592
PA
75792020-07-10 Pedro Alves <pedro@palves.net>
7580
7581 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7582 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7583 NOT_AVAILABLE_ERROR.
7584 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7585 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7586
b3e3a4c1
SM
75872020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7588 Pedro Alves <pedro@palves.net>
7589
7590 PR gdb/26199
7591 * infrun.c (threads_are_resumed_pending_p): Delete.
7592 (do_target_wait): Remove threads_are_executing and
7593 threads_are_resumed_pending_p checks from the inferior_matches
7594 lambda. Update comments.
7595
d6cc5d98
PA
75962020-07-10 Pedro Alves <pedro@palves.net>
7597
7598 PR gdb/26199
7599 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7600 executing threads.
7601
7d3badc6
PA
76022020-07-10 Pedro Alves <pedro@palves.net>
7603
7604 PR gdb/26199
7605 * infrun.c (handle_no_resumed): Handle multiple targets.
7606
42bd97a6
PA
76072020-07-10 Pedro Alves <pedro@palves.net>
7608
7609 PR gdb/26199
7610 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7611 target_is_async_p.
7612
43667cc6
PA
76132020-07-10 Pedro Alves <pedro@palves.net>
7614
7615 PR gdb/26199
7616 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7617 threads, not all threads.
7618
96118d11
PA
76192020-07-10 Pedro Alves <pedro@palves.net>
7620
7621 PR gdb/26199
7622 * remote.c (remote_target::open_1): Pass remote target pointer as
7623 data to create_async_event_handler.
7624 (remote_async_inferior_event_handler): Mark async event handler
7625 before returning if the remote target still has either pending
7626 events or unacknowledged notifications.
7627
54904d81
JB
76282020-07-10 John Baldwin <jhb@FreeBSD.org>
7629
7630 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7631 declaration.
7632 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7633 function.
7634
f37e5866
JB
76352020-07-09 John Baldwin <jhb@FreeBSD.org>
7636
7637 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7638 inferior_ptid.
7639
fc238d4a
JB
76402020-07-09 John Baldwin <jhb@FreeBSD.org>
7641
7642 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7643 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7644 AT_FREEBSD_PS_STRINGS.
7645
6e2469ff
HD
76462020-07-08 Hannes Domani <ssbssa@yahoo.de>
7647
7648 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7649 of debugfile path on Windows.
7650
d1076c41
JB
76512020-07-08 John Baldwin <jhb@FreeBSD.org>
7652
7653 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7654 argument to 'data'.
7655
15f3b077
TT
76562020-07-08 Tom Tromey <tromey@adacore.com>
7657
7658 * ada-lang.c (ada_exception_message_1): Use read_memory.
7659
9fc501fd
AB
76602020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 PR python/22748
7663 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7664 special handling for inline frames.
7665 * findvar.c (value_of_register_lazy): Skip inline frames when
7666 creating lazy register values.
7667 * frame.c (frame_id_computed_p): Delete definition.
7668 * frame.h (frame_id_computed_p): Delete declaration.
7669
64cb3757
AB
76702020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7671
7672 * NEWS: Mention additions to Python API.
7673 * python/py-arch.c (archpy_register_groups): New function.
7674 (arch_object_methods): Add 'register_groups' method.
7675 * python/py-registers.c (reggroup_iterator_object): New struct.
7676 (reggroup_object): New struct.
7677 (gdbpy_new_reggroup): New function.
7678 (gdbpy_reggroup_to_string): New function.
7679 (gdbpy_reggroup_name): New function.
7680 (gdbpy_reggroup_iter): New function.
7681 (gdbpy_reggroup_iter_next): New function.
7682 (gdbpy_new_reggroup_iterator): New function
7683 (gdbpy_initialize_registers): Register new types.
7684 (reggroup_iterator_object_type): Define new Python type.
7685 (gdbpy_reggroup_getset): New static global.
7686 (reggroup_object_type): Define new Python type.
7687 * python/python-internal.h
7688
0f767f94
AB
76892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7690
7691 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7692 * python/py-arch.c (archpy_registers): New function.
7693 (arch_object_methods): Add 'registers' method.
7694 * python/py-registers.c: New file.
7695 * python/python-internal.h
7696 (gdbpy_new_register_descriptor_iterator): Declare.
7697 (gdbpy_initialize_registers): Declare.
7698 * python/python.c (do_start_initialization): Call
7699 gdbpy_initialize_registers.
7700 * NEWS: Mention additions to the Python API.
7701
87dbc774
AB
77022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7703
7704 * NEWS: Mention new Python API method.
7705 * python/py-unwind.c (pending_framepy_architecture): New function.
7706 (pending_frame_object_methods): Add architecture method.
7707
3bc98c0c
AB
77082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7709
7710 * gdbarch.c: Regenerate.
7711 * gdbarch.h: Regenerate.
7712 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7713 (gdbarch_data): Use internal_error for the case where
7714 deprecated_set_gdbarch_data was originally needed.
7715 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7716 and use passed in obstack.
7717 (libunwind_frame_set_descr): Should no longer get back NULL from
7718 gdbarch_data.
7719 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7720 type.
7721 * user-regs.c (user_regs_init): Update parameters, and use passed
7722 in obstack.
7723 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7724 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7725
d8cc8af6
TV
77262020-07-06 Tom de Vries <tdevries@suse.de>
7727
7728 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7729 End-Of-Sequence in lte_is_less_than.
7730 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7731 "gdb: Don't reorder line table entries too much when sorting".
7732
947f7597
TV
77332020-07-06 Tom de Vries <tdevries@suse.de>
7734
7735 PR tui/26205
7736 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7737
1e7c1b22
TV
77382020-07-05 Tom de Vries <tdevries@suse.de>
7739
7740 PR build/26187
7741 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7742 std::uncaught_exceptions instead of deprecated
7743 std::uncaught_exception.
7744
a36158ec
SM
77452020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7746
7747 * macroexp.h (macro_stringify): Return
7748 gdb::unique_xmalloc_ptr<char>.
7749 * macroexp.c (macro_stringify): Likewise.
7750 * macrotab.c (fixup_definition): Update.
7751
14d960c8
SM
77522020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7753
7754 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7755 (lex_one_token): Update.
7756 * macroexp.c (struct macro_buffer) <release>: Return
7757 gdb::unique_xmalloc_ptr<char>.
7758 (macro_stringify): Update.
7759 (macro_expand): Update.
7760 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7761 * macroexp.h (macro_expand_next): Likewise.
7762
211d5b1c
SM
77632020-07-02 Simon Marchi <simon.marchi@efficios.com>
7764
7765 * macroexp.h (macro_lookup_ftype): Remove.
7766 (macro_expand, macro_expand_once, macro_expand_next): Remove
7767 lookup function parameters, add scope parameter.
7768 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7769 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7770 * macroscope.h (standard_macro_lookup): Change parameter type
7771 to macro_scope.
7772 * macroscope.c (standard_macro_lookup): Likewise.
7773 * c-exp.y (lex_one_token): Update.
7774 * macrocmd.c (macro_expand_command): Likewise.
7775 (macro_expand_once_command): Likewise.
7776
b1a35af2
SM
77772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7778
7779 * inf-loop.c (inferior_event_handler): Remove client_data param.
7780 * inf-loop.h (inferior_event_handler): Likewise.
7781 * infcmd.c (step_1): Adjust.
7782 * infrun.c (proceed): Adjust.
7783 (fetch_inferior_event): Remove client_data param.
7784 (infrun_async_inferior_event_handler): Adjust.
7785 * infrun.h (fetch_inferior_event): Remove `void *` param.
7786 * linux-nat.c (handle_target_event): Adjust.
7787 * record-btrace.c (record_btrace_handle_async_inferior_event):
7788 Adjust.
7789 * record-full.c (record_full_async_inferior_event_handler):
7790 Adjust.
7791 * remote.c (remote_async_inferior_event_handler): Adjust.
7792
1cdf9e33
TT
77932020-07-01 Tom Tromey <tom@tromey.com>
7794
7795 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7796 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7797
32c1e210
TT
77982020-07-01 Tom Tromey <tom@tromey.com>
7799
7800 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7801 tui_gen_win_info.
7802 (tui_win_info::make_window): Merge with
7803 tui_gen_win_info::make_window.
7804 (tui_win_info::make_visible): Move from tui_gen_win_info.
7805 * tui/tui-win.c (tui_win_info::max_width): Move from
7806 tui_gen_win_info.
7807 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7808 type.
7809 <window_factory>: Likewise.
7810 * tui/tui-layout.c (tui_win_info::resize): Move from
7811 tui_gen_win_info.
7812 (make_standard_window): Change return type.
7813 (get_locator_window, tui_get_window_by_name): Likewise.
7814 (tui_layout_window::apply): Remove a cast.
7815 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7816 (struct tui_win_info): Merge with tui_gen_win_info.
7817 (struct tui_gen_win_info): Remove.
7818
a30cb6da
TT
78192020-07-01 Tom Tromey <tom@tromey.com>
7820
7821 * tui/tui-stack.h (struct tui_locator_window): Derive from
7822 tui_win_info.
7823 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7824 <can_box>: New method.
7825
1eb2161f
TT
78262020-07-01 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7829
7134f2eb
TT
78302020-07-01 Tom Tromey <tom@tromey.com>
7831
7832 * tui/tui-regs.c (tui_data_window::display_registers_from)
7833 (tui_data_window::display_registers_from)
7834 (tui_data_window::first_data_item_displayed)
7835 (tui_data_window::delete_data_content_windows): Update.
7836 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7837 Remove.
7838 (tui_data_window::check_register_values): Update.
7839 (tui_data_item_window::rerender): Add parameters. Update.
7840 (tui_data_item_window::refresh_window): Remove.
7841 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7842 virtual.
7843 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7844 tui_gen_win_info.
7845 <refresh_window, max_height, min_height>: Remove.
7846 <rerender>: Add parameters.
7847 <x, y, visible>: New members.
7848 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7849 <m_item_width>: New member.
7850
22b7b041
TT
78512020-07-01 Tom Tromey <tom@tromey.com>
7852
7853 * tui/tui-regs.c (tui_data_window::show_register_group)
7854 (tui_data_window::check_register_values): Update.
7855 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7856 from item_no.
7857
c9753adb
TT
78582020-07-01 Tom Tromey <tom@tromey.com>
7859
7860 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7861 useless "if".
7862
9ab26b4a
TT
78632020-07-01 Tom Tromey <tom@tromey.com>
7864
7865 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7866 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7867
e555083f
TT
78682020-07-01 Tom Tromey <tom@tromey.com>
7869
7870 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7871 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7872 (struct tui_line_or_address): Move from tui-data.h.
7873 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7874 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7875 (tui_cmd_window, tui_source_window_base, tui_source_window)
7876 (tui_disasm_window): Don't declare.
7877 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7878 to tui-winsource.h.
7879 (SINGLE_KEY): Move to tui-stack.c.
7880
7a02bab7
TT
78812020-07-01 Tom Tromey <tom@tromey.com>
7882
7883 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7884 std::string.
7885 * tui/tui-regs.c (class tab_expansion_file): New.
7886 (tab_expansion_file::write): New method.
7887 (tui_register_format): Change return type. Use
7888 tab_expansion_file.
7889 (tui_get_register, tui_data_window::display_registers_from)
7890 (tui_data_item_window::rerender): Update.
7891 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7892 * tui/tui-io.c (tui_expand_tabs): Remove.
7893
ea68593b
TT
78942020-07-01 Tom Tromey <tom@tromey.com>
7895
7896 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7897
a8caed5d
FS
78982020-07-01 Fangrui Song <maskray@google.com>
7899
7900 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7901
9cdf9820
AKS
79022020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7903
7904 * dwarf2/read.c (set_die_type): Removed conditions to restrict
7905 forms for DW_AT_associated and DW_AT_allocated attributes,
7906 which is already checked in function attr_to_dynamic_prop.
7907
a1520ad8
TT
79082020-06-30 Tom Tromey <tromey@adacore.com>
7909
7910 * dwarf2/read.c (quirk_rust_enum): Correctly call
7911 alloc_rust_variant for default-less enum.
7912
5ac58899
TT
79132020-06-30 Tom Tromey <tromey@adacore.com>
7914
7915 PR build/26183:
7916 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7917 gdb::to_string.
7918
19b187a9
SM
79192020-06-29 Simon Marchi <simon.marchi@efficios.com>
7920
7921 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7922 * gdbarch.h: Re-generate.
7923
cd4c4c07
TT
79242020-06-28 Tom Tromey <tom@tromey.com>
7925
7926 * command.h (cmd_types): Remove.
7927 (cmd_type): Don't declare.
7928 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7929 typedef.
7930 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7931 * cli/cli-decode.c (cmd_type): Remove.
7932
05779d57
PA
79332020-06-27 Pedro Alves <palves@redhat.com>
7934
7935 * fork-child.c (prefork_hook): Adjust.
7936 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7937 Delete.
7938 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7939 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7940 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7941 Remove declarations.
7942 (struct inferior) <set_tty, tty>: New methods.
7943 (struct inferior) <terminal>: Rename to ...
7944 (struct inferior) <m_terminal>: ... this and make private.
7945 * main.c (captured_main_1): Adjust.
7946 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7947 (mi_cmd_inferior_tty_show): Adjust.
7948 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7949 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7950
1776e3e5
NA
79512020-06-26 Nick Alcock <nick.alcock@oracle.com>
7952
7953 * configure.ac: Add --enable-libctf: handle --disable-static
7954 properly.
7955 * acinclude.m4: sinclude ../config/enable.m4.
7956 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7957 (LIBCTF): Substitute in.
7958 (CTF_DEPS): New, likewise.
7959 (CLIBS): libctf needs symbols from libbfd: move earlier.
7960 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7961 flags.
7962 * ctfread.c: Surround in ENABLE_LIBCTF.
7963 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7964 * configure: Regenerate.
7965 * config.in: Likewise.
7966
58373b80
SM
79672020-06-25 Simon Marchi <simon.marchi@efficios.com>
7968
7969 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7970
277474ee
SM
79712020-06-25 Simon Marchi <simon.marchi@efficios.com>
7972
7973 * inferior.h (struct inferior) <terminal>: Change type to
7974 gdb::unique_xmalloc_ptr<char>.
7975 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7976 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7977 field, adjust to unique pointer.
7978 (get_inferior_io_terminal): Adjust to unique pointer.
7979
6d74da72
AB
79802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7981
7982 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7983 registers, not just the known core set of registers.
7984
2e52d038
AB
79852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7986
7987 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7988 fflags, frm, and fcsr registers.
7989 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7990 restore groups.
7991 (riscv_tdesc_unknown_reg): New function.
7992 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7993 tdesc_use_registers.
7994 * riscv-tdep.h (struct gdbarch_tdep): Add
7995 unknown_csrs_first_regnum, unknown_csrs_count,
7996 duplicate_fflags_regnum, duplicate_frm_regnum, and
7997 duplicate_fcsr_regnum fields.
7998
be64fd07
AB
79992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8000
8001 * target-descriptions.c (tdesc_use_registers): Add new parameter a
8002 callback, use the callback (when not null) to help number unknown
8003 registers.
8004 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
8005 (tdesc_use_registers): Add extra parameter to declaration.
8006
3b9fce96
AB
80072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
8010 in the file.
8011 (class riscv_pending_register_alias): Likewise.
8012 (riscv_register_feature::register_info): Change 'required_p' field
8013 to 'required', and change its type. Add 'check' member function.
8014 (riscv_register_feature::register_info::check): Define new member
8015 function.
8016 (riscv_xreg_feature): Change initialisation of 'required' field.
8017 (riscv_freg_feature): Likewise.
8018 (riscv_virtual_feature): Likewise.
8019 (riscv_csr_feature): Likewise.
8020 (riscv_check_tdesc_feature): Take extra parameter, the csr
8021 tdesc_feature, rewrite the function to use the new
8022 riscv_register_feature::register_info::check function.
8023 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
8024
865bad26
AB
80252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8026
8027 * features/Makefile: Remove all references to the deleted files
8028 below.
8029 * features/riscv/32bit-csr.c: Deleted.
8030 * features/riscv/32bit-csr.xml: Deleted.
8031 * features/riscv/64bit-csr.c: Deleted.
8032 * features/riscv/64bit-csr.xml: Deleted.
8033 * features/riscv/rebuild-csr-xml.sh: Deleted.
8034
ed69cbc8
AB
80352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8036
8037 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8038 whitespace error for declaration of names member variable.
8039 (struct riscv_register_feature): Add new prefer_first_name member
8040 variable, and fix whitespace error in declaration of registers.
8041 (riscv_xreg_feature): Initialize prefer_first_name field.
8042 (riscv_freg_feature): Likewise.
8043 (riscv_virtual_feature): Likewise.
8044 (riscv_csr_feature): Likewise.
8045 (riscv_register_name): Expand on comments. Remove register name
8046 modifications for CSR and virtual registers.
8047
4445e8f5
AB
80482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8049
8050 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8051 errors.
8052
767a879e
AB
80532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8054
8055 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8056 riscv-opc.h.
8057 (class riscv_pending_register_alias): New class.
8058 (riscv_check_tdesc_feature): Take vector of pending aliases and
8059 populate it as appropriate.
8060 (riscv_setup_register_aliases): Delete.
8061 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8062 to riscv_check_tdesc_feature in all cases. Use the vector to
8063 create the register aliases.
8064
bb6e55f3
RO
80652020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8066
8067 * sol2-tdep.c (sol2_static_transform_name): Remove.
8068 (sol2_init_abi): Don't register it.
8069 * gdbarch.sh (static_transform_name): Remove.
8070 * gdbarch.c, gdbarch.h: Regenerate.
8071
8072 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8073 gdbarch_static_transform_name.
8074 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8075 * stabsread.c (define_symbol) <'X'>: Remove.
8076 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8077 handling.
8078 <'V'>: Likewise.
8079 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8080 <'S'>: Remove call to gdbarch_static_transform_name.
8081
c6d36836
RO
80822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8083
8084 * procfs.c (procfs_pre_trace): New function.
8085 (procfs_target::create_inferior): Pass it to fork_inferior.
8086
a7e6196b
RO
80872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8088
8089 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8090 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8091 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8092 sol2-tdep.o, sparc-sol2-tdep.o.
8093 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8094 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8095 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8096 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8097
d412e696
RO
80982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8099
8100 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8101 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8102 Call sol2_init_abi.
8103 Remove calls to set_gdbarch_skip_solib_resolver,
8104 set_gdbarch_core_pid_to_str.
8105 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8106 (i386_sol2_static_transform_name): Remove.
8107 (i386_sol2_init_abi): Call sol2_init_abi.
8108 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8109 set_gdbarch_static_transform_name,
8110 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8111 Use sol2_sigtramp_p.
8112 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8113 (sol2_sigtramp_p): New function.
8114 (sol2_static_transform_name): New function.
8115 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8116 (sol2_init_abi): New function.
8117 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8118 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8119 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8120 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8121 (sparc_sol2_static_transform_name): Remove.
8122 (sparc32_sol2_init_abi): Call sol2_init_abi.
8123 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8124 set_gdbarch_static_transform_name,
8125 set_gdbarch_skip_solib_resolver,
8126 set_gdbarch_core_pid_to_str.
8127 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8128 (sparc_sol2_static_transform_name): Remove
8129 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8130 call sol2_sigtramp_p.
8131 (sparc64_sol2_init_abi): Call sol2_init_abi.
8132 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8133 set_gdbarch_static_transform_name,
8134 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8135
a8654e7d
PW
81362020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8137
8138 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8139 * exec.c (validate_exec_file): If from_tty, set both
8140 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8141 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8142 and from_tty, unconditionally ask a confirmation.
8143
caa7fd04
AB
81442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * target-descriptions.c (tdesc_architecture_name): Protect against
8147 NULL pointer dereference.
8148 (maint_print_xml_tdesc_cmd): New function.
8149 (_initialize_target_descriptions): Register new 'maint print
8150 xml-tdesc' command and give it the filename completer.
8151 * NEWS: Mention new 'maint print xml-tdesc' command.
8152
fbf42f4e
AB
81532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8154
8155 * target-descriptions.c (class tdesc_compatible_info): New class.
8156 (struct target_desc): Change type of compatible vector.
8157 (tdesc_compatible_p): Update for change in type of
8158 target_desc::compatible.
8159 (tdesc_compatible_info_list): New function.
8160 (tdesc_compatible_info_arch_name): New function.
8161 (tdesc_add_compatible): Update for change in type of
8162 target_desc::compatible.
8163 (print_c_tdesc::visit_pre): Likewise.
8164
20821f4e
AB
81652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8166
8167 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8168 whitespace to underscore.
8169 (maint_print_c_tdesc_cmd): Use fake filename for target
8170 descriptions that came from the target.
8171 (_initialize_target_descriptions): Add filename command completion
8172 for 'maint print c-tdesc'.
8173
1fb5ee62
SM
81742020-06-23 Simon Marchi <simon.marchi@efficios.com>
8175
8176 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8177 lines.
8178
fc3ecb3e
SM
81792020-06-23 Simon Marchi <simon.marchi@efficios.com>
8180
8181 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8182 lines.
8183 (dwarf2_find_location_expression): Likewise.
8184 (call_site_parameter_matches): Likewise.
8185 (dwarf2_compile_expr_to_ax): Likewise.
8186 (disassemble_dwarf_expression): Likewise.
8187 (loclist_describe_location): Likewise.
8188
236ef034
PA
81892020-06-23 Pedro Alves <palves@redhat.com>
8190
8191 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8192 progspace-and-thread.h. Include scoped-mock-context.h instead.
8193 (register_to_value_test): Use scoped_mock_context.
8194 * regcache.c: Include "scoped-mock-context.h".
8195 (cooked_read_test): Don't error out if a target is already pushed.
8196 Use scoped_mock_context. Adjust.
8197 * scoped-mock-context.h: New file.
8198
39e7ecca
AB
81992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8200
8201 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8202 initializer.
8203 (ada_language::is_string_type_p): New member function.
8204 * c-lang.c (c_language_data): Delete la_is_string_type_p
8205 initializer.
8206 (cplus_language_data): Likewise.
8207 (asm_language_data): Likewise.
8208 (minimal_language_data): Likewise.
8209 * d-lang.c (d_language_data): Likewise.
8210 * f-lang.c (f_is_string_type_p): Delete function, implementation
8211 moved to f_language::is_string_type_p.
8212 (f_language_data): Delete la_is_string_type_p initializer.
8213 (f_language::is_string_type_p): New member function,
8214 implementation from f_is_string_type_p.
8215 * go-lang.c (go_is_string_type_p): Delete function, implementation
8216 moved to go_language::is_string_type_p.
8217 (go_language_data): Delete la_is_string_type_p initializer.
8218 (go_language::is_string_type_p): New member function,
8219 implementation from go_is_string_type_p.
8220 * language.c (language_defn::is_string_type_p): Define new member
8221 function.
8222 (default_is_string_type_p): Make static, add comment copied from
8223 header file.
8224 (unknown_language_data): Delete la_is_string_type_p initializer.
8225 (unknown_language::is_string_type_p): New member function.
8226 (auto_language_data): Delete la_is_string_type_p initializer.
8227 (auto_language::is_string_type_p): New member function.
8228 * language.h (language_data): Delete la_is_string_type_p field.
8229 (language_defn::is_string_type_p): Declare new function.
8230 (default_is_string_type_p): Delete desclaration, move comment to
8231 definition.
8232 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8233 moved to m2_language::is_string_type_p.
8234 (m2_language_data): Delete la_is_string_type_p initializer.
8235 (m2_language::is_string_type_p): New member function,
8236 implementation from m2_is_string_type_p.
8237 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8238 initializer.
8239 * opencl-lang.c (opencl_language_data): Likewise.
8240 * p-lang.c (pascal_is_string_type_p): Delete function,
8241 implementation moved to pascal_language::is_string_type_p.
8242 (pascal_language_data): Delete la_is_string_type_p initializer.
8243 (pascal_language::is_string_type_p): New member function,
8244 implementation from pascal_is_string_type_p.
8245 * rust-lang.c (rust_is_string_type_p): Delete function,
8246 implementation moved to rust_language::is_string_type_p.
8247 (rust_language_data): Delete la_is_string_type_p initializer.
8248 (rust_language::is_string_type_p): New member function,
8249 implementation from rust_is_string_type_p.
8250 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8251 is_string_type_p.
8252
4ffc13fb
AB
82532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8254
8255 * ada-lang.c (ada_language_data): Delete la_print_typedef
8256 initializer.
8257 (ada_language::print_typedef): New member function.
8258 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8259 (cplus_language_data): Likewise.
8260 (asm_language_data): Likewise.
8261 (minimal_language_data): Likewise.
8262 * d-lang.c (d_language_data): Likewise.
8263 * f-lang.c (f_language_data): Likewise.
8264 (f_language::print_typedef): New member function.
8265 * go-lang.c (go_language_data): Delete la_print_typedef
8266 initializer.
8267 * language.c (language_defn::print_typedef): Define member
8268 function.
8269 (unknown_language_data): Delete la_print_typedef initializer.
8270 (unknown_language::print_typedef): New member function.
8271 (auto_language_data): Delete la_print_typedef initializer.
8272 (auto_language::print_typedef): New member function.
8273 * language.h (language_data): Delete la_print_typedef field.
8274 (language_defn::print_typedef): Declare new member function.
8275 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8276 (default_print_typedef): Delete declaration.
8277 * m2-lang.c (m2_language_data): Delete la_print_typedef
8278 initializer.
8279 (m2_language::print_typedef): New member function.
8280 * objc-lang.c (objc_language_data): Delete la_print_typedef
8281 initializer.
8282 * opencl-lang.c (opencl_language_data): Likewise.
8283 * p-lang.c (pascal_language_data): Likewise.
8284 (pascal_language::print_typedef): New member function.
8285 * rust-lang.c (rust_print_typedef): Delete function,
8286 implementation moved to rust_language::print_typedef.
8287 (rust_language): Delete la_print_typedef initializer.
8288 (rust_language::print_typedef): New member function,
8289 implementation from rust_print_typedef.
8290 * typeprint.c (default_print_typedef): Delete.
8291
d711ee67
AB
82922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8293
8294 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8295 (ada_language::printstr): New member function.
8296 * c-lang.c (c_language_data): Delete la_printstr initializer.
8297 (cplus_language_data): Likewise.
8298 (asm_language_data): Likewise.
8299 (minimal_language_data): Likewise.
8300 * d-lang.c (d_language_data): Likewise.
8301 * f-lang.c (f_printstr): Rename to f_language::printstr.
8302 (f_language_data): Delete la_printstr initializer.
8303 (f_language::printstr): New member function, implementation from
8304 f_printstr.
8305 * go-lang.c (go_language_data): Delete la_printstr initializer.
8306 * language.c (language_defn::printstr): Define new member
8307 function.
8308 (unk_lang_printstr): Delete.
8309 (unknown_language_data): Delete la_printstr initializer.
8310 (unknown_language::printstr): New member function.
8311 (auto_language_data): Delete la_printstr initializer.
8312 (auto_language::printstr): New member function.
8313 * language.h (language_data): Delete la_printstr field.
8314 (language_defn::printstr): Declare new member function.
8315 (LA_PRINT_STRING): Update call to printstr.
8316 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8317 (m2_language_data): Delete la_printstr initializer.
8318 (m2_language::printstr): New member function, implementation from
8319 m2_printstr.
8320 * objc-lang.c (objc_language_data): Delete la_printstr
8321 initializer.
8322 * opencl-lang.c (opencl_language_data): Likewise.
8323 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8324 (pascal_language_data): Delete la_printstr initializer.
8325 (pascal_language::printstr): New member function, implementation
8326 from pascal_printstr.
8327 * p-lang.h (pascal_printstr): Delete declaration.
8328 * rust-lang.c (rust_printstr): Update header comment.
8329 (rust_language_data): Delete la_printstr initializer.
8330 (rust_language::printstr): New member function.
8331
52b50f2c
AB
83322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8333
8334 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8335 (ada_language::printchar): New member function.
8336 * c-lang.c (c_language_data): Delete la_printchar initializer.
8337 (cplus_language_data): Likewise.
8338 (asm_language_data): Likewise.
8339 (minimal_language_data): Likewise.
8340 * d-lang.c (d_language_data): Likewise.
8341 * f-lang.c (f_printchar): Rename to f_language::printchar.
8342 (f_language_data): Delete la_printchar initializer.
8343 (f_language::printchar): New member function, implementation from
8344 f_printchar.
8345 * go-lang.c (go_language_data): Delete la_printchar initializer.
8346 * language.c (unk_lang_printchar): Delete.
8347 (language_defn::printchar): Define new member function.
8348 (unknown_language_data): Delete la_printchar initializer.
8349 (unknown_language::printchar): New member function.
8350 (auto_language_data): Delete la_printchar initializer.
8351 (auto_language::printchar): New member function.
8352 * language.h (language_data): Delete la_printchar field.
8353 (language_defn::printchar): Declare new member function.
8354 (LA_PRINT_CHAR): Update call to printchar.
8355 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8356 (m2_language::printchar): New member function.
8357 * objc-lang.c (objc_language_data): Delete la_printchar
8358 initializer.
8359 * opencl-lang.c (opencl_language_data): Likewise.
8360 * p-lang.c (pascal_language_data): Delete la_printchar
8361 initializer.
8362 (pascal_language::printchar): New member function.
8363 * rust-lang.c (rust_printchar): Rename to
8364 rust_language::printchar.
8365 (rust_language_data): Delete la_printchar initializer.
8366 (rust_language::printchar): New member function, implementation
8367 from rust_printchar.
8368
ec8cec5b
AB
83692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8370
8371 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8372 (ada_language_data): Delete la_emitchar initializer.
8373 (ada_language::emitchar): New member function, implementation from
8374 emit_char.
8375 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8376 (cplus_language_data): Likewise.
8377 (asm_language_data): Likewise.
8378 (minimal_language_data): Likewise.
8379 * d-lang.c (d_language_data): Likewise.
8380 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8381 (f_language_data): Delete la_emitchar initializer.
8382 (f_language::emitchar): New member function, implementation from
8383 f_emit_char.
8384 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8385 * language.c (unk_lang_emit_char): Delete.
8386 (language_defn::emitchar): New member function definition.
8387 (unknown_language_data): Delete la_emitchar initializer.
8388 (unknown_language::emitchar): New member function.
8389 (auto_language_data): Delete la_emitchar initializer.
8390 (auto_language::emitchar): New member function.
8391 * language.h (language_data): Delete la_emitchar field.
8392 (language_defn::emitchar): New member field declaration.
8393 (LA_EMIT_CHAR): Update call to emitchar.
8394 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8395 (m2_language_data): Delete la_emitchar initializer.
8396 (m2_language::emitchar): New member function, implementation from
8397 m2_emit_char.
8398 * objc-lang.c (objc_language_data): Delete la_emitchar
8399 initializer.
8400 * opencl-lang.c (opencl_language_data): Likewise.
8401 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8402 (pascal_language_data): Delete la_emitchar initializer.
8403 (pascal_language::emitchar): New member function, implementation
8404 from pascal_emit_char.
8405 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8406 (rust_language_data): Delete la_emitchar initializer.
8407 (rust_language::emitchar): New member function, implementation
8408 from rust_emitchar.
8409
1bf9c363
AB
84102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8413 (ada_language_data): Delete la_post_parser initializer.
8414 (ada_language::post_parser): New member function.
8415 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8416 (cplus_language_data): Likewise.
8417 (asm_language_data): Likewise.
8418 (minimal_language_data): Likewise.
8419 * d-lang.c (d_language_data): Likewise.
8420 * f-lang.c (f_language_data): Likewise.
8421 * go-lang.c (go_language_data): Likewise.
8422 * language.c (unknown_language_data): Likewise.
8423 (auto_language_data): Likewise.
8424 * language.h (language_data): Delete la_post_parser field.
8425 (language_defn::post_parser): New member function.
8426 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8427 * objc-lang.c (objc_language_data): Likewise.
8428 * opencl-lang.c (opencl_language_data): Likewise.
8429 * p-lang.c (pascal_language_data): Likewise.
8430 * parse.c (parse_exp_in_context): Update call to post_parser.
8431 (null_post_parser): Delete definition.
8432 * parser-defs.h (null_post_parser): Delete declaration.
8433 * rust-lang.c (rust_language_data): Delete la_post_parser
8434 initializer.
8435
87afa652
AB
84362020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8437
8438 * ada-lang.c (parse): Rename to ada_language::parser.
8439 (ada_language_data): Delete la_parser initializer.
8440 (ada_language::parser): New member function, implementation from
8441 parse.
8442 * c-lang.c (c_language_data): Delete la_parser initializer.
8443 (cplus_language_data): Likewise.
8444 (asm_language_data): Likewise.
8445 (minimal_language_data): Likewise.
8446 * d-lang.c (d_language_data): Likewise.
8447 (d_language::parser): New member function.
8448 * f-lang.c (f_language_data): Delete la_parser initializer.
8449 (f_language::parser): New member function.
8450 * go-lang.c (go_language_data): Delete la_parser initializer.
8451 (go_language::parser): New member function.
8452 * language.c (unk_lang_parser): Delete.
8453 (language_defn::parser): Define new member function.
8454 (unknown_language_data): Delete la_parser initializer.
8455 (unknown_language::parser): New member function.
8456 (auto_language_data): Delete la_parser initializer.
8457 (auto_language::parser): New member function.
8458 * language.h (language_data): Delete la_parser field.
8459 (language_defn::parser): Declare new member function.
8460 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8461 (m2_language::parser): New member function.
8462 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8463 * opencl-lang.c (opencl_language_data): Likewise.
8464 * p-lang.c (pascal_language_data): Likewise.
8465 (pascal_language::parser): New member function.
8466 * parse.c (parse_exp_in_context): Update call to parser.
8467 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8468 (rust_language::parser): New member function.
8469
37825800
AB
84702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8471
8472 * top.c (print_gdb_configuration): Print --with-python-libdir
8473 configuration value.
8474
5b860c93
PW
84752020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8476
8477 * NEWS: Mention change to the alias command.
8478
cf00cd6f
PW
84792020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8480
8481 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8482 (alias_command_completer)
8483 (make_alias_options_def_group): New functions.
8484 (alias_opts, alias_option_defs): New struct and array.
8485 (alias_usage_error): Update usage.
8486 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8487 Use option framework.
8488 (_initialize_cli_cmds): Update alias command help.
8489 Update aliases command help.
8490 (show_user):
8491 Add NULL for new default_args lookup_cmd argument.
8492 (valid_command_p): Rename to validate_aliased_command.
8493 Add NULL for new default_args lookup_cmd argument. Verify that the
8494 aliased_command has no default args.
8495 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8496 (lookup_cmd_1, lookup_cmd): New argument default_args.
8497 (add_alias_cmd):
8498 Add NULL for new default_args lookup_cmd argument.
8499 (print_help_for_command): Show default args under the layout
8500 alias some_alias = some_aliased_cmd some_alias_default_arg.
8501 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8502 xfree default_args in destructor.
8503 * cli/cli-script.c (process_next_line, do_define_command):
8504 Add NULL for new default_args lookup_cmd argument.
8505 * command.h: Declare new default_args argument in lookup_cmd
8506 and lookup_cmd_1.
8507 * completer.c (complete_line_internal_1):
8508 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8509 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8510 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8511 Likewise.
8512 * infcmd.c (_initialize_infcmd): Likewise.
8513 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8514 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8515 * python/py-param.c (add_setshow_generic): Likewise.
8516 * remote.c (_initialize_remote): Likewise.
8517 * top.c (execute_command): Prepend default_args if command has some.
8518 (set_verbose):
8519 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8520 * tracepoint.c (validate_actionline, encode_actions_1):
8521 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8522
bd920864
TBA
85232020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8524
8525 * jit.c (jit_read_descriptor): Use bool as the return type.
8526 (jit_breakpoint_re_set_internal): Use bool as the return type.
8527 Invert the return value logic; return true if the jit breakpoint
8528 has been successfully initialized.
8529 (jit_inferior_init): Update the call to
8530 jit_breakpoint_re_set_internal.
8531
f8098322
PA
85322020-06-22 Pedro Alves <palves@redhat.com>
8533
8534 PR gdb/25939
8535 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8536 Use the current inferior instead. Don't return
8537 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8538 wait again.
8539 * sol-thread.c (sol_thread_target::wait): Don't reference
8540 inferior_ptid.
8541 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8542 (sol_update_thread_list_callback): Use the current inferior's pid
8543 instead of inferior_ptid.
8544
196535a6
RO
85452020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8546
8547 * procfs.c: Cleanup many comments.
8548
8549 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8550 (AFTER_WATCHFLAG): Replace by value.
8551
8552 (MAIN_PROC_NAME_FORMAT): Inline ...
8553 (create_procinfo): ... here.
8554
8555 (procfs_debug_inferior): Remove SYS_exec handling.
8556 (syscall_is_exec): Likewise.
8557 (procfs_set_exec_trap): Likewise.
8558
8559 (syscall_is_lwp_exit): Inline in callers.
8560 (syscall_is_exit): Likewise.
8561 (syscall_is_exec): Likewise.
8562 (syscall_is_lwp_create): Likewise.
8563
8564 (invalidate_cache): Remove #if 0 code.
8565
8566 (make_signal_thread_runnable): Remove.
8567 (procfs_target::resume): Remove #if 0 code.
8568
cf6f3e86
RO
85692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8570
8571 PR gdb/25939
8572 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8573 call ...
8574 (procfs_target::create_inferior): ... here.
8575
48e9cc84
PW
85762020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8577
8578 * exec.c (validate_exec_file): Ensure the build-id is up to
8579 date by calling reopen_exec_file (that checks file timestamp
8580 to decide to re-read the file).
8581
3922b302
PA
85822020-06-18 Pedro Alves <palves@redhat.com>
8583
8584 PR gdb/25412
8585 * gdbthread.h (delete_thread, delete_thread_silent)
8586 (find_thread_ptid): Update comments.
8587 * thread.c (current_thread_): New global.
8588 (is_current_thread): Move higher, and reimplement.
8589 (inferior_thread): Reimplement.
8590 (set_thread_exited): Use bool. Add assertions.
8591 (add_thread_silent): Simplify thread-reuse handling by always
8592 calling delete_thread.
8593 (delete_thread): Remove intro comment.
8594 (find_thread_ptid): Skip exited threads.
8595 (switch_to_thread_no_regs): Write to current_thread_.
8596 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8597 INFERIOR_PTID. Clear current_thread_.
8598
6dbdab44
PA
85992020-06-18 Pedro Alves <palves@redhat.com>
8600
8601 * aix-thread.c (pd_update): Use switch_to_thread.
8602
2da4b788
PA
86032020-06-18 Pedro Alves <palves@redhat.com>
8604
8605 * ravenscar-thread.c (ravenscar_thread_target): Update.
8606 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8607 (ravenscar_thread_target::add_active_thread): ... this. Don't
8608 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8609 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8610
50838d1b
PA
86112020-06-18 Pedro Alves <palves@redhat.com>
8612
8613 * nat/windows-nat.c (current_windows_thread): Remove.
8614 * nat/windows-nat.h (current_windows_thread): Remove.
8615 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8616 Adjust.
8617 (display_selectors): Adjust to fetch the current
8618 windows_thread_info based on inferior_ptid.
8619 (fake_create_process): No longer write to current_windows_thread.
8620 (windows_nat_target::get_windows_debug_event):
8621 Don't set inferior_ptid or current_windows_thread.
8622 (windows_nat_target::wait): Adjust to not rely on
8623 current_windows_thread.
8624 (do_initial_windows_stuff): Now a method of windows_nat_target.
8625 Switch to the last_ptid thread.
8626 (windows_nat_target::attach): Adjust.
8627 (windows_nat_target::detach): Use switch_to_no_thread instead of
8628 writing to inferior_ptid directly.
8629 (windows_nat_target::create_inferior): Adjust.
8630
31ce04e9
PA
86312020-06-18 Pedro Alves <palves@redhat.com>
8632
8633 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8634
1ee1a363
PA
86352020-06-18 Pedro Alves <palves@redhat.com>
8636
8637 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8638 after creating it, instead of writing to inferior_ptid. Don't
8639 write to inferior_ptid.
8640
6d350754
PA
86412020-06-18 Pedro Alves <palves@redhat.com>
8642
8643 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8644
5d971d48
PA
86452020-06-18 Pedro Alves <palves@redhat.com>
8646
8647 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8648 it, instead of writing to inferior_ptid.
8649
86e57d1b
PA
86502020-06-18 Pedro Alves <palves@redhat.com>
8651
8652 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8653 to inferior_ptid.
8654
f2e1c129
PA
86552020-06-18 Pedro Alves <palves@redhat.com>
8656
8657 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8658 instead of writing to inferior_ptid directly.
8659
60db1b85
PA
86602020-06-18 Pedro Alves <palves@redhat.com>
8661
8662 * corelow.c (core_target::close): Use switch_to_no_thread instead
8663 of writing to inferior_ptid directly.
8664 (add_to_thread_list, core_target_open): Use switch_to_thread
8665 instead of writing to inferior_ptid directly.
8666
fe7d6a8d
PA
86672020-06-18 Pedro Alves <palves@redhat.com>
8668
8669 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8670 inferior_ptid.
8671 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8672 inferior_ptid.
8673 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8674 inferior_ptid directly.
8675 (darwin_nat_target::init_thread_list): Switch to thread, instead
8676 of writing to inferior_ptid.
8677 (darwin_nat_target::attach): Don't write to inferior_ptid.
8678 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8679
975f8708
PA
86802020-06-18 Pedro Alves <palves@redhat.com>
8681
8682 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8683 thread.
8684 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8685 Instead use switch_to_thread.
8686 (gnu_nat_target::detach): Use switch_to_no_thread
8687 instead of writing to inferior_ptid directly. Used passed-in
8688 inferior instead of looking up the inferior by pid.
8689
1a204730
PA
86902020-06-18 Pedro Alves <palves@redhat.com>
8691
8692 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8693 inferior_ptid.
8694
ebe84f23
PA
86952020-06-18 Pedro Alves <palves@redhat.com>
8696
8697 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8698 inferior_ptid.
8699 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8700 thread.
8701 (nto_procfs_target::detach): Avoid referencing
8702 inferior_ptid. Use switch_to_no_thread instead of writing to
8703 inferior_ptid directly.
8704 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8705 instead of writing to inferior_ptid directly.
8706 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8707 to thread.
8708
191f02e5
PA
87092020-06-18 Pedro Alves <palves@redhat.com>
8710
8711 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8712 after creating it, instead of writing to inferior_ptid.
8713 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8714 to inferior_ptid directly.
8715 (gdbsim_target::wait): Don't write to inferior_ptid.
8716
0ac55310
PA
87172020-06-18 Pedro Alves <palves@redhat.com>
8718
8719 * remote.c (remote_target::remote_notice_new_inferior): Use
8720 switch_to_thread instead of writing to inferior_ptid directly.
8721 (remote_target::add_current_inferior_and_thread): Use
8722 switch_to_no_thread instead of writing to inferior_ptid directly.
8723 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8724 and switch_to_thread instead of using set_current_inferior or
8725 writing to inferior_ptid directly.
8726
5233f39b
PA
87272020-06-18 Pedro Alves <palves@redhat.com>
8728
8729 * tracectf.c (ctf_target_open): Switch to added thread instead of
8730 writing to inferior_ptid directly.
8731 (ctf_target::close): Use switch_to_no_thread instead of writing to
8732 inferior_ptid directly.
8733
087e161b
PA
87342020-06-18 Pedro Alves <palves@redhat.com>
8735
8736 * tracefile-tfile.c (tfile_target_open): Don't write to
8737 inferior_ptid directly, instead switch to added thread.
8738 (tfile_target::close): Use switch_to_no_thread instead of writing
8739 to inferior_ptid directly.
8740
7fb43e53
PA
87412020-06-18 Pedro Alves <palves@redhat.com>
8742
8743 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8744 (procfs_target::detach): Use switch_to_no_thread
8745 instead of writing to inferior_ptid directly.
8746 (do_attach): Change return type to void. Switch to the added
8747 thread.
8748 (procfs_target::create_inferior): Switch to the added thread.
8749 (procfs_do_thread_registers): Don't write to inferior_ptid.
8750
18493a00
PA
87512020-06-18 Pedro Alves <palves@redhat.com>
8752
8753 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8754 of writing to inferior_ptid.
8755 (scoped_restore_exited_inferior): Delete.
8756 (handle_vfork_child_exec_or_exit): Simplify using
8757 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8758 instead of writing to inferior_ptid.
8759 (THREAD_STOPPED_BY): Delete.
8760 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8761 (thread_stopped_by_hw_breakpoint): Delete.
8762 (save_waitstatus): Use
8763 scoped_restore_current_thread+switch_to_thread, and call
8764 target_stopped_by_watchpoint instead of
8765 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8766 instead of thread_stopped_by_sw_breakpoint, and
8767 target_stopped_by_hw_breakpoint instead of
8768 thread_stopped_by_hw_breakpoint.
8769 (handle_inferior_event)
8770 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8771 inferior_ptid directly, nor
8772 set_current_inferior/set_current_program_space. Use
8773 switch_to_thread / switch_to_inferior_no_thread instead.
8774
a0776b13
PA
87752020-06-18 Pedro Alves <palves@redhat.com>
8776
8777 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8778 instead of writing to inferior_ptid.
8779
6155c136
PA
87802020-06-18 Pedro Alves <palves@redhat.com>
8781
8782 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8783 added thread.
8784 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8785 to the added thread.
8786 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8787 instead of writing to inferior_ptid.
8788
c5316fc6
PA
87892020-06-18 Pedro Alves <palves@redhat.com>
8790
8791 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8792 (register_to_value_test): Mock a program_space too. Heap-allocate
8793 the address space. Don't write to inferior_ptid. Use
8794 switch_to_thread instead.
8795
8df01799
PA
87962020-06-18 Pedro Alves <palves@redhat.com>
8797
8798 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8799 Delete.
8800 (find_signalled_thread()): New, factored out from
8801 linux_make_corefile_notes and adjusted to handle exited threads.
8802 (linux_make_corefile_notes): Adjust to use the new
8803 find_signalled_thread.
8804
41792d68
PA
88052020-06-18 Pedro Alves <palves@redhat.com>
8806
8807 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8808 of saving/restoring inferior_ptid.
8809
612f258a
TT
88102020-06-17 Tom Tromey <tom@tromey.com>
8811
8812 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8813 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8814 declare.
8815 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8816
efb763a5
SM
88172020-06-15 Simon Marchi <simon.marchi@efficios.com>
8818
8819 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8820 of partial symtabs.
8821
2951f6c0
SM
88222020-06-17 Simon Marchi <simon.marchi@efficios.com>
8823
8824 * regformats/reg-arm.dat: Remove.
8825 * regformats/reg-bfin.dat: Remove.
8826 * regformats/reg-cris.dat: Remove.
8827 * regformats/reg-crisv32.dat: Remove.
8828 * regformats/reg-m32r.dat: Remove.
8829 * regformats/reg-tilegx.dat: Remove.
8830 * regformats/reg-tilegx32.dat: Remove.
8831
7d458ea5
SM
88322020-06-17 Simon Marchi <simon.marchi@efficios.com>
8833
8834 * features/Makefile (WHICH): Remove arm files.
8835 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8836 * regformats/arm/arm-with-neon.dat: Remove.
8837 * regformats/arm/arm-with-vfpv2.dat: Remove.
8838 * regformats/arm/arm-with-vfpv3.dat: Remove.
8839
3af96c0d
SM
88402020-06-17 Simon Marchi <simon.marchi@efficios.com>
8841
8842 * features/Makefile (XMLTOC): Remove rx.xml.
8843
b25e22fd
PA
88442020-06-17 Pedro Alves <palves@redhat.com>
8845
8846 * gdbthread.h (thread_control_state) <trap_expected> Update
8847 comments.
8848
a78a19b1
AB
88492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8850
8851 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8852 ada_language::lookup_symbol_nonlocal.
8853 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8854 (ada_language::lookup_symbol_nonlocal): New member function,
8855 implementation from ada_lookup_symbol_nonlocal.
8856 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8857 initializer.
8858 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8859 initializer.
8860 (cplus_language::lookup_symbol_nonlocal): New member function.
8861 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8862 (minimal_language_data) Likewise.
8863 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8864 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8865 initializer.
8866 (d_language::lookup_symbol_nonlocal): New member function.
8867 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8868 initializer.
8869 (f_language::lookup_symbol_nonlocal): New member function.
8870 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8871 initializer.
8872 * language.c (unknown_language_data): Likewise.
8873 (auto_language_data): Likewise.
8874 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8875 field.
8876 (language_defn::lookup_symbol_nonlocal): New member function.
8877 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8878 initializer.
8879 * objc-lang.c (objc_language_data): Likewise.
8880 * opencl-lang.c (opencl_language_data): Likewise.
8881 * p-lang.c (pascal_language_data): Likewise.
8882 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8883 rust_language::lookup_symbol_nonlocal.
8884 (rust_language_data): Delete la_lookup_symbol_nonlocal
8885 initializer.
8886 (rust_language::lookup_symbol_nonlocal): New member function,
8887 implementation from rust_lookup_symbol_nonlocal.
8888 * symtab.c (lookup_symbol_aux): Update call to
8889 lookup_symbol_nonlocal.
8890 (basic_lookup_symbol_nonlocal): Rename to...
8891 (language_defn::lookup_symbol_nonlocal): ...this, and update
8892 header comment. Remove language_defn parameter, and replace with
8893 uses of `this'.
8894 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8895
ebe2334e
AB
88962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8897
8898 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8899 initializer.
8900 (ada_language::value_print_inner): New member function.
8901 * c-lang.c (c_language_data): Delete la_value_print_inner
8902 initializer.
8903 (cplus_language_data): Likewise.
8904 (asm_language_data): Likewise.
8905 (minimal_language_data): Likewise.
8906 * d-lang.c (d_language_data): Likewise.
8907 (d_language::value_print_inner): New member function.
8908 * f-lang.c (f_language_data): Delete la_value_print_inner
8909 initializer.
8910 (f_language::value_print_inner): New member function.
8911 * f-lang.h (f_value_print_innner): Rename to...
8912 (f_value_print_inner): ...this (note spelling of 'inner').
8913 * f-valprint.c (f_value_print_innner): Rename to...
8914 (f_value_print_inner): ...this (note spelling of 'inner').
8915 * go-lang.c (go_language_data): Delete la_value_print_inner
8916 initializer.
8917 (go_language::value_print_inner): New member function.
8918 * language.c (language_defn::value_print_inner): Define new member
8919 function.
8920 (unk_lang_value_print_inner): Delete.
8921 (unknown_language_data): Delete la_value_print_inner initializer.
8922 (unknown_language::value_print_inner): New member function.
8923 (auto_language_data): Delete la_value_print_inner initializer.
8924 (auto_language::value_print_inner): New member function.
8925 * language.h (language_data): Delete la_value_print_inner field.
8926 (language_defn::value_print_inner): Delcare new member function.
8927 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8928 initializer.
8929 (m2_language::value_print_inner): New member function.
8930 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8931 initializer.
8932 * opencl-lang.c (opencl_language_data): Likewise.
8933 * p-lang.c (pascal_language_data): Likewise.
8934 (pascal_language::value_print_inner): New member function.
8935 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8936 initializer.
8937 (rust_language::value_print_inner): New member function.
8938 * valprint.c (do_val_print): Update call to value_print_inner.
8939
a1d1fa3e
AB
89402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8941
8942 * ada-lang.c (ada_language_data): Delete la_value_print
8943 initializer.
8944 (ada_language::value_print): New member function.
8945 * c-lang.c (c_language_data): Delete la_value_print initializer.
8946 (cplus_language_data): Likewise.
8947 (asm_language_data): Likewise.
8948 (minimal_language_data): Likewise.
8949 * d-lang.c (d_language_data): Likewise.
8950 * f-lang.c (f_language_data): Likewise.
8951 * go-lang.c (go_language_data): Likewise.
8952 * language.c (unk_lang_value_print): Delete.
8953 (language_defn::value_print): Define new member function.
8954 (unknown_language_data): Delete la_value_print initializer.
8955 (unknown_language::value_print): New member function.
8956 (auto_language_data): Delete la_value_print initializer.
8957 (auto_language::value_print): New member function.
8958 * language.h (language_data): Delete la_value_print field.
8959 (language_defn::value_print): Declare new member function.
8960 (LA_VALUE_PRINT): Update call to value_print.
8961 * m2-lang.c (m2_language_data): Delete la_value_print 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 (pascal_language::value_print): New member function.
8966 * rust-lang.c (rust_language_data): Delete la_value_print
8967 initializer.
8968
f16a9f57
AB
89692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8970
8971 * ada-lang.c (ada_watch_location_expression): Rename to
8972 ada_language::watch_location_expression.
8973 (ada_language_data): Delete la_watch_location_expression
8974 initializer.
8975 (ada_language::watch_location_expression): New member function,
8976 implementation from ada_watch_location_expression.
8977 * breakpoint.c (watch_command_1): Update call to
8978 watch_location_expression.
8979 * c-lang.c (c_watch_location_expression): Rename to
8980 language_defn::watch_location_expression.
8981 (c_language_data): Delete la_watch_location_expression
8982 initializer.
8983 (cplus_language_data): Likewise.
8984 (asm_language_data): Likewise.
8985 (minimal_language_data): Likewise.
8986 * c-lang.h (c_watch_location_expression): Delete declaration.
8987 * d-lang.c (d_language_data): Delete la_watch_location_expression
8988 initializer.
8989 * f-lang.c (f_language_data): Likewise.
8990 * go-lang.c (go_language_data): Likewise.
8991 * language.c (language_defn::watch_location_expression): Member
8992 function implementation from c_watch_location_expression.
8993 (unknown_language_data): Delete la_watch_location_expression
8994 initializer.
8995 (auto_language_data): Likewise.
8996 * language.h (language_data): Delete la_watch_location_expression
8997 field.
8998 (language_defn::watch_location_expression): Declare new member
8999 function.
9000 * m2-lang.c (m2_language_data): Delete
9001 la_watch_location_expression initializer.
9002 * objc-lang.c (objc_language_data): Likewise.
9003 * opencl-lang.c (opencl_language_data): Likewise.
9004 * p-lang.c (pascal_language_data): Likewise.
9005 * rust-lang.c (rust_watch_location_expression): Rename to
9006 rust_language::watch_location_expression.
9007 (rust_language_data): Delete la_watch_location_expression
9008 initializer.
9009 (rust_language::watch_location_expression): New member function,
9010 implementation from rust_watch_location_expression.
9011
7e56227d
AB
90122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9013
9014 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
9015 ada_language::collect_symbol_completion_matches.
9016 (ada_language_data): Delete la_collect_symbol_completion_matches
9017 initializer.
9018 (ada_language::collect_symbol_completion_matches): New member
9019 function, implementation from
9020 ada_collect_symbol_completion_matches.
9021 * c-lang.c (c_language_data): Delete
9022 la_collect_symbol_completion_matches initializer.
9023 (cplus_language_data): Likewise.
9024 (asm_language_data): Likewise.
9025 (minimal_language_data): Likewise.
9026 * d-lang.c (d_language_data): Likewise.
9027 * f-lang.c (f_collect_symbol_completion_matches): Rename to
9028 f_language::collect_symbol_completion_matches.
9029 (f_language_data): Delete la_collect_symbol_completion_matches
9030 initializer.
9031 (f_language::collect_symbol_completion_matches) New member
9032 function, implementation from f_collect_symbol_completion_matches.
9033 * go-lang.c (go_language_data): Delete
9034 la_collect_symbol_completion_matches initializer.
9035 * language.c (unknown_language_data): Likewise.
9036 (auto_language_data): Likewise.
9037 * language.h (language_data): Delete
9038 la_collect_symbol_completion_matches field.
9039 (language_defn::collect_symbol_completion_matches): New member
9040 function.
9041 * m2-lang.c (m2_language_data): Delete
9042 la_collect_symbol_completion_matches initializer.
9043 * objc-lang.c (objc_language_data): Likewise.
9044 * opencl-lang.c (opencl_language_data): Likewise.
9045 * p-lang.c (pascal_language_data): Likewise.
9046 * rust-lang.c (rust_language_data): Likewise.
9047 * symtab.c (default_collect_symbol_completion_matches): Delete.
9048 (collect_symbol_completion_matches): Update call to
9049 collect_symbol_completion_matches.
9050 (collect_symbol_completion_matches_type): Likewise.
9051 * symtab.h (default_collect_symbol_completion_matches): Delete
9052 declaration.
9053
53fc67f8
AB
90542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9055
9056 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9057 (ada_language_data): Delete la_word_break_characters initializer.
9058 (ada_language::word_break_characters): New member function.
9059 * c-lang.c (c_language_data): Delete la_word_break_characters
9060 initializer.
9061 (cplus_language_data): Likewise.
9062 (asm_language_data): Likewise.
9063 (minimal_language_data): Likewise.
9064 * completer.c: Update global comment.
9065 (advance_to_expression_complete_word_point): Update call to
9066 word_break_characters.
9067 (complete_files_symbols): Likewise.
9068 (complete_line_internal_1): Likewise.
9069 (default_completer_handle_brkchars): Likewise.
9070 (skip_quoted_chars): Likewise.
9071 * d-lang.c (d_language_data): Delete la_word_break_characters
9072 initializer.
9073 * f-lang.c (f_word_break_characters): Delete.
9074 (f_language_data): Delete la_word_break_characters initializer.
9075 (f_language::word_break_characters): New member function.
9076 * go-lang.c (go_language_data): Delete la_word_break_characters
9077 initializer.
9078 * language.c (unknown_language_data): Likewise.
9079 (auto_language_data): Likewise.
9080 * language.h (default_word_break_characters): Move declaration to
9081 earlier in the file.
9082 (language_data): Delete la_word_break_characters field.
9083 (language_defn::word_break_characters): New member function.
9084 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9085 initializer.
9086 * objc-lang.c (objc_language_data): Likewise.
9087 * opencl-lang.c (opencl_language_data): Likewise.
9088 * p-lang.c (pascal_language_data): Likewise.
9089 * rust-lang.c (rust_language_data): Likewise.
9090
c9debfb9
AB
90912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9092
9093 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9094 (ada_language_data): Delete la_get_symbol_name_matcher
9095 initializer.
9096 (language_defn::get_symbol_name_matcher_inner): New member
9097 function.
9098 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9099 initializer.
9100 (cplus_language_data): Likewise.
9101 (cplus_language::get_symbol_name_matcher_inner): New member
9102 function.
9103 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9104 (minimal_language_data): Likewise.
9105 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9106 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9107 initializer.
9108 * dictionary.c (iter_match_first_hashed): Update call to
9109 get_symbol_name_matcher.
9110 (iter_match_next_hashed): Likewise.
9111 (iter_match_next_linear): Likewise.
9112 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9113 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9114 initializer.
9115 (f_language::get_symbol_name_matcher_inner): New member function.
9116 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9117 initializer.
9118 * language.c (default_symbol_name_matcher): Update header comment,
9119 make static.
9120 (language_defn::get_symbol_name_matcher): New definition.
9121 (language_defn::get_symbol_name_matcher_inner): Likewise.
9122 (get_symbol_name_matcher): Delete.
9123 (unknown_language_data): Delete la_get_symbol_name_matcher
9124 initializer.
9125 (auto_language_data): Likewise.
9126 * language.h (language_data): Delete la_get_symbol_name_matcher
9127 field.
9128 (language_defn::get_symbol_name_matcher): New member function.
9129 (language_defn::get_symbol_name_matcher_inner): Likewise.
9130 (default_symbol_name_matcher): Delete declaration.
9131 * linespec.c (find_methods): Update call to
9132 get_symbol_name_matcher.
9133 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9134 initializer.
9135 * minsyms.c (lookup_minimal_symbol): Update call to
9136 get_symbol_name_matcher.
9137 (iterate_over_minimal_symbols): Likewise.
9138 * objc-lang.c (objc_language_data): Delete
9139 la_get_symbol_name_matcher initializer.
9140 * opencl-lang.c (opencl_language_data): Likewise.
9141 * p-lang.c (pascal_language_data): Likewise.
9142 * psymtab.c (psymbol_name_matches): Update call to
9143 get_symbol_name_matcher.
9144 * rust-lang.c (rust_language_data): Delete
9145 la_get_symbol_name_matcher initializer.
9146 * symtab.c (symbol_matches_search_name): Update call to
9147 get_symbol_name_matcher.
9148 (compare_symbol_name): Likewise.
9149
9a49ad8c
AB
91502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9151
9152 * ada-lang.c (ada_language_data): Delete la_compute_program
9153 initializer.
9154 * c-lang.c (c_language_data): Likewise.
9155 (c_language::compute_program): New member function.
9156 (cplus_language_data): Delete la_compute_program initializer.
9157 (cplus_language::compute_program): New member function.
9158 (asm_language_data): Delete la_compute_program initializer.
9159 (minimal_language_data): Likewise.
9160 * c-lang.h (c_compute_program): Update comment.
9161 (cplus_compute_program): Likewise.
9162 * compile/compile-c-support.c (c_compute_program): Likewise.
9163 (cplus_compute_program): Likewise.
9164 * compile/compile.c (compile_to_object): Update call to
9165 la_compute_program.
9166 * d-lang.c (d_language_data): Delete la_compute_program
9167 initializer.
9168 * f-lang.c (f_language_data): Likewise.
9169 * go-lang.c (go_language_data): Likewise.
9170 * language.c (unknown_language_data): Likewise.
9171 (auto_language_data): Likewise.
9172 * language.h (language_data): Delete la_compute_program field.
9173 (language_defn::compute_program): New member function.
9174 * m2-lang.c (m2_language_data): Delete la_compute_program
9175 initializer.
9176 * objc-lang.c (objc_language_data): Likewise.
9177 * opencl-lang.c (opencl_language_data): Likewise.
9178 * p-lang.c (pascal_language_data): Likewise.
9179 * rust-lang.c (rust_language_data): Likewise.
9180
eff93b4d
AB
91812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9182
9183 * ada-lang.c (ada_language_data) Delete
9184 la_class_name_from_physname initializer.
9185 * c-lang.c (c_language_data): Likewise.
9186 (cplus_language_data): Likewise.
9187 (cplus_language::class_name_from_physname): New member function.
9188 (asm_language_data): Delete la_class_name_from_physname
9189 initializer.
9190 (minimal_language_data): Likewise.
9191 * d-lang.c (d_language_data): Likewise.
9192 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9193 method on language_defn class.
9194 (guess_full_die_structure_name): Likewise.
9195 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9196 initializer.
9197 * go-lang.c (go_language_data): Likewise.
9198 * language.c (language_class_name_from_physname): Delete.
9199 (unk_lang_class_name): Delete.
9200 (unknown_language_data): Delete la_class_name_from_physname
9201 initializer.
9202 (auto_language_data): Likewise.
9203 * language.h (language_data): Delete la_class_name_from_physname
9204 field.
9205 (language_defn::class_name_from_physname): New function.
9206 (language_class_name_from_physname): Delete declaration.
9207 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9208 initializer.
9209 * objc-lang.c (objc_language_data): Likewise.
9210 * opencl-lang.c (opencl_language_data): Likewise.
9211 * p-lang.c (pascal_language_data): Likewise.
9212 * rust-lang.c (rust_language_data): Likewise.
9213
de543742
TT
92142020-06-16 Tom Tromey <tom@tromey.com>
9215
9216 * tui/tui-data.h (STATUS_NAME): New macro.
9217 * tui/tui-layout.c (tui_remove_some_windows)
9218 (initialize_known_windows, tui_register_window)
9219 (tui_layout_split::remove_windows, initialize_layouts)
9220 (tui_new_layout_command): Don't use hard-coded window names.
9221
a350efd4
TT
92222020-06-16 Tom Tromey <tom@tromey.com>
9223
9224 PR tui/25348:
9225 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9226 tui_initialize_readline. Only run once. Call rl_initialize.
9227 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9228 tui_initialize_readline.
9229 * tui/tui-io.c (tui_setup_io): Call
9230 tui_ensure_readline_initialized.
9231 * tui/tui-interp.c (tui_interp::init): Update.
9232
39ec0490
TT
92332020-06-16 Tom Tromey <tom@tromey.com>
9234
9235 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9236 Also preserve the status window.
9237
d2d1ea20
TT
92382020-06-16 Tom Tromey <tom@tromey.com>
9239
9240 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9241 where m_window==nullptr.
9242
66920317
TT
92432020-06-15 Tom Tromey <tromey@adacore.com>
9244
9245 * windows-nat.c (windows_nat::handle_output_debug_string):
9246 Update.
9247 (windows_nat::handle_ms_vc_exception): Update.
9248 * target.h (target_read_string): Change API.
9249 * target.c (target_read_string): Change API.
9250 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9251 Update.
9252 * solib-frv.c (frv_current_sos): Update.
9253 * solib-dsbt.c (dsbt_current_sos): Update.
9254 * solib-darwin.c (darwin_current_sos): Update.
9255 * linux-thread-db.c (inferior_has_bug): Update.
9256 * expprint.c (print_subexp_standard): Update.
9257 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9258 (ada_exception_message_1): Update.
9259
a5d871dd
TT
92602020-06-15 Tom Tromey <tromey@adacore.com>
9261
9262 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9263
670e35fa
TT
92642020-06-15 Tom Tromey <tromey@adacore.com>
9265
9266 * valprint.c (read_string): Update comment.
9267 * target.c (MIN): Remove.
9268 (target_read_string): Rewrite.
9269
f5272a3b
TT
92702020-06-15 Tom Tromey <tromey@adacore.com>
9271
9272 * corefile.c (read_memory_string): Remove.
9273 * ada-valprint.c (ada_value_print_ptr): Update.
9274 * ada-lang.h (ada_tag_name): Change return type.
9275 * ada-lang.c (type_from_tag): Update.
9276 (ada_tag_name_from_tsd): Change return type. Use
9277 target_read_string.
9278 (ada_tag_name): Likewise.
9279 * gdbcore.h (read_memory_string): Don't declare.
9280
2c074f49
HD
92812020-06-14 Hannes Domani <ssbssa@yahoo.de>
9282
9283 * symtab.c (rbreak_command): Ignore Windows drive colon.
9284
6a17d503
SM
92852020-06-12 Simon Marchi <simon.marchi@efficios.com>
9286
9287 * NEWS: Mention removed GDBserver host support.
9288
453c733f
NC
92892020-06-12 Nelson Chu <nelson.chu@sifive.com>
9290
9291 * features/riscv/rebuild-csr-xml.sh: Updated.
9292
2b4e6a3f
TT
92932020-06-11 Tom Tromey <tom@tromey.com>
9294
9295 PR gdb/18318:
9296 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9297
4412332f
JG
92982020-06-09 Jonny Grant <jg@jguk.org>
92992020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9300
9301 * main.c (captured_main_1): Don't print new line after help.
9302 (print_gdb_help): add mailing list and IRC channel information
9303 to --help. Add new lines between items in the footer. Remove
9304 quotes around bug url.
9305
2f33032a
KS
93062020-06-11 Keith Seitz <keiths@redhat.com>
9307
9308 PR gdb/21356
9309 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9310 Resolve typedefs for type length calculations.
9311
7ab96794
TV
93122020-06-10 Tom de Vries <tdevries@suse.de>
9313
9314 PR ada/24713
9315 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9316 (write_psymbols): Enable .gdb_index for ada.
9317 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9318 ada.
9319
e5f3ece2
TV
93202020-06-10 Tom de Vries <tdevries@suse.de>
9321
9322 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9323 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9324 namei" instead of "const char *name" argument.
9325 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9326 dw2_symtab_iter_init.
9327
940da03e
SM
93282020-06-08 Simon Marchi <simon.marchi@efficios.com>
9329
9330 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9331 to use type::field and field::type instead.
9332
b6cdac4b
SM
93332020-06-08 Simon Marchi <simon.marchi@efficios.com>
9334
9335 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9336 to use field::type instead.
9337
5d14b6e5
SM
93382020-06-08 Simon Marchi <simon.marchi@efficios.com>
9339
9340 * gdbtypes.h (struct field) <type, set_type>: New methods.
9341 Rename `type` field to...
9342 <m_type>: ... this. Change references throughout to use type or
9343 set_type methods.
9344 (FIELD_TYPE): Use field::type. Change call sites that modify
9345 the field's type to use field::set_type instead.
9346
3d967001
SM
93472020-06-08 Simon Marchi <simon.marchi@efficios.com>
9348
9349 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9350 to use type::index_type instead.
9351
262abc0d
SM
93522020-06-08 Simon Marchi <simon.marchi@efficios.com>
9353
9354 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9355 methods.
9356 (TYPE_INDEX_TYPE): Use type::index_type.
9357 * gdbtypes.c (create_array_type_with_stride): Likewise.
9358
82836c92
TT
93592020-06-07 Tom Tromey <tom@tromey.com>
9360
9361 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9362 parameter.
9363 (generic_value_print): Update.
9364
940dace9
AB
93652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9366
9367 Revert commit 982a38f60b0.
9368 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9369
982a38f6
AB
93702020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9371
9372 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9373 avoid use after free.
9374
82f06518
TV
93752020-06-05 Tom de Vries <tdevries@suse.de>
9376
9377 * NEWS: Fix typos.
9378
f8c41851
SM
93792020-06-04 Simon Marchi <simon.marchi@efficios.com>
9380
9381 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9382 the per_bfd object.
9383 (dwarf2_read_debug_names): Likewise.
9384 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9385 object when re-using a per_bfd object with an index.
9386
f9b5d5ea
TV
93872020-06-03 Tom de Vries <tdevries@suse.de>
9388
9389 PR symtab/26046
9390 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9391 children for C++.
9392 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9393 DW_TAG_subprogram.
9394
f6eee2d0
AB
93952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9396
9397 * ada-lang.c (ada_language_data): Delete skip_trampoline
9398 initializer.
9399 * c-lang.c (c_language_data): Likewise.
9400 (cplus_language_data): Likewise.
9401 (cplus_language::skip_trampoline): New member function.
9402 (asm_language_data): Delete skip_trampoline initializer.
9403 (minimal_language_data): Likewise.
9404 * d-lang.c (d_language_data): Likewise.
9405 * f-lang.c (f_language_data): Likewise.
9406 * go-lang.c (go_language_data): Likewise.
9407 * language.c (unk_lang_trampoline): Delete function.
9408 (skip_language_trampoline): Update.
9409 (unknown_language_data): Delete skip_trampoline initializer.
9410 (auto_language_data): Likewise.
9411 * language.h (language_data): Delete skip_trampoline field.
9412 (language_defn::skip_trampoline): New function.
9413 * m2-lang.c (m2_language_data): Delete skip_trampoline
9414 initializer.
9415 * objc-lang.c (objc_skip_trampoline): Delete function, move
9416 implementation to objc_language::skip_trampoline.
9417 (objc_language_data): Delete skip_trampoline initializer.
9418 (objc_language::skip_trampoline): New member function with
9419 implementation from objc_skip_trampoline.
9420 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9421 initializer.
9422 * p-lang.c (pascal_language_data): Likewise.
9423 * rust-lang.c (rust_language_data): Likewise.
9424
0a50df5d
AB
94252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9426
9427 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9428 (ada_language::demangle): New member function.
9429 * c-lang.c (c_language_data): Delete la_demangle initializer.
9430 (cplus_language_data): Delete la_demangle initializer.
9431 (cplus_language::demangle): New member function.
9432 (asm_language_data): Delete la_demangle initializer.
9433 (minimal_language_data): Delete la_demangle initializer.
9434 * d-lang.c (d_language_data): Delete la_demangle initializer.
9435 (d_language::demangle): New member function.
9436 * f-lang.c (f_language_data): Delete la_demangle initializer.
9437 (f_language::demangle): New member function.
9438 * go-lang.c (go_language_data): Delete la_demangle initializer.
9439 (go_language::demangle): New member function.
9440 * language.c (language_demangle): Update.
9441 (unk_lang_demangle): Delete.
9442 (unknown_language_data): Delete la_demangle initializer.
9443 (unknown_language::demangle): New member function.
9444 (auto_language_data): Delete la_demangle initializer.
9445 (auto_language::demangle): New member function.
9446 * language.h (language_data): Delete la_demangle field.
9447 (language_defn::demangle): New function.
9448 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9449 * objc-lang.c (objc_language_data): Delete la_demangle
9450 initializer.
9451 (objc_language::demangle): New member function.
9452 * opencl-lang.c (opencl_language_data): Delete la_demangle
9453 initializer.
9454 * p-lang.c (pascal_language_data): Likewise.
9455 * rust-lang.c (rust_language_data): Likewise.
9456 (rust_language::demangle): New member function.
9457
fbfb0a46
AB
94582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9459
9460 * ada-lang.c (ada_language_data): Delete la_print_type
9461 initializer.
9462 (ada_language::print_type): New member function.
9463 * c-lang.c (c_language_data): Delete la_print_type initializer.
9464 (c_language::print_type): New member function.
9465 (cplus_language_data): Delete la_print_type initializer.
9466 (cplus_language::print_type): New member function.
9467 (asm_language_data): Delete la_print_type initializer.
9468 (asm_language::print_type): New member function.
9469 (minimal_language_data): Delete la_print_type initializer.
9470 (minimal_language::print_type): New member function.
9471 * d-lang.c (d_language_data): Delete la_print_type initializer.
9472 (d_language::print_type): New member function.
9473 * f-lang.c (f_language_data): Delete la_print_type initializer.
9474 (f_language::print_type): New member function.
9475 * go-lang.c (go_language_data): Delete la_print_type initializer.
9476 (go_language::print_type): New member function.
9477 * language.c (unk_lang_print_type): Delete.
9478 (unknown_language_data): Delete la_print_type initializer.
9479 (unknown_language::print_type): New member function.
9480 (auto_language_data): Delete la_print_type initializer.
9481 (auto_language::print_type): New member function.
9482 * language.h (language_data): Delete la_print_type field.
9483 (language_defn::print_type): New function.
9484 (LA_PRINT_TYPE): Update.
9485 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9486 (m2_language::print_type): New member function.
9487 * objc-lang.c (objc_language_data): Delete la_print_type
9488 initializer.
9489 (objc_language::print_type): New member function.
9490 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9491 to opencl_language::print_type.
9492 (opencl_language_data): Delete la_print_type initializer.
9493 (opencl_language::print_type): New member function, implementation
9494 from opencl_print_type.
9495 * p-lang.c (pascal_language_data): Delete la_print_type
9496 initializer.
9497 (pascal_language::print_type): New member function.
9498 * rust-lang.c (rust_print_type): Delete, implementation moved to
9499 rust_language::print_type.
9500 (rust_language_data): Delete la_print_type initializer.
9501 (rust_language::print_type): New member function, implementation
9502 from rust_print_type.
9503
6f827019
AB
95042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9505
9506 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9507 implementation moves to...
9508 (ada_language::sniff_from_mangled_name): ...here. Update return
9509 type.
9510 (ada_language_data): Delete la_sniff_from_mangled_name
9511 initializer.
9512 * c-lang.c (c_language_data): Likewise.
9513 (cplus_language_data): Likewise.
9514 (cplus_language::sniff_from_mangled_name): New member function,
9515 implementation taken from gdb_sniff_from_mangled_name.
9516 (asm_language_data): Delete la_sniff_from_mangled_name
9517 initializer.
9518 (minimal_language_data): Likewise.
9519 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9520 implementation moves to cplus_language::sniff_from_mangled_name.
9521 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9522 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9523 moves to...
9524 (d_language::sniff_from_mangled_name): ...here.
9525 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9526 * f-lang.c (f_language_data): Likewise.
9527 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9528 moves to...
9529 (go_language::sniff_from_mangled_name): ...here.
9530 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9531 * language.c (language_sniff_from_mangled_name): Delete.
9532 (unknown_language_data): Delete la_sniff_from_mangled_name
9533 initializer.
9534 (auto_language_data): Likewise.
9535 * language.h (language_data): Delete la_sniff_from_mangled_name
9536 field.
9537 (language_defn::sniff_from_mangled_name): New function.
9538 (language_sniff_from_mangled_name): Delete declaration.
9539 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9540 field.
9541 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9542 implementation moves to...
9543 (objc_language::sniff_from_mangled_name): ...here.
9544 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9545 * opencl-lang.c (opencl_language_data): Likewise.
9546 * p-lang.c (pascal_language_data): Likewise.
9547 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9548 implementation moves to...
9549 (rust_language::sniff_from_mangled_name): ...here.
9550 (rust_language_data): Delete la_sniff_from_mangled_name
9551 initializer.
9552 * symtab.c (symbol_find_demangled_name): Call
9553 sniff_from_mangled_name member function.
9554
fb8006fd
AB
95552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9556
9557 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9558 initializer.
9559 * c-lang.c (c_language_data): Likewise.
9560 (cplus_language_data): Likewise.
9561 (cplus_language::search_name_hash): New member function.
9562 (asm_language_data): Delete la_search_name_hash initializer.
9563 (minimal_language_data): Likewise.
9564 * d-lang.c (d_language_data): Likewise.
9565 * dictionary.c (default_search_name_hash): Rename to...
9566 (language_defn::search_name_hash): ...this.
9567 * f-lang.c (f_language_data): Likewise.
9568 (f_language::search_name_hash): New member function.
9569 * go-lang.c (go_language_data): Delete la_search_name_hash
9570 initializer.
9571 * language.c (unknown_language_data): Likewise.
9572 (auto_language_data): Likewise.
9573 * language.h (struct language_data): Delete la_search_name_hash
9574 field.
9575 (language_defn::search_name_hash): Declare new member function.
9576 (default_search_name_hash): Delete declaration.
9577 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9578 initializer.
9579 * objc-lang.c (objc_language_data): Likewise.
9580 * opencl-lang.c (opencl_language_data): Likewise.
9581 * p-lang.c (pascal_language_data): Likewise.
9582 * rust-lang.c (rust_language_data): Likewise.
9583 * symtab.c (search_name_hash): Update call.
9584
8e25bafe
AB
95852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9586
9587 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9588 initializer.
9589 * c-lang.c (class compile_instance): Declare.
9590 (c_language_data): Delete la_get_compile_instance initializer.
9591 (c_language::get_compile_instance): New member function.
9592 (cplus_language_data): Delete la_get_compile_instance initializer.
9593 (cplus_language::get_compile_instance): New member function.
9594 (asm_language_data): Delete la_get_compile_instance initializer.
9595 (minimal_language_data): Likewise.
9596 * c-lang.h (c_get_compile_context): Update comment.
9597 (cplus_get_compile_context): Update comment.
9598 * compile/compile.c (compile_to_object): Update calls, don't rely
9599 on function pointer being NULL.
9600 * d-lang.c (d_language_data): Delete la_get_compile_instance
9601 initializer.
9602 * f-lang.c (f_language_data): Likewise.
9603 * go-lang.c (go_language_data): Likewise.
9604 * language.c (unknown_language_data): Likewise.
9605 (auto_language_data): Likewise.
9606 * language.h (language_data): Delete la_get_compile_instance field.
9607 (language_defn::get_compile_instance): New member function.
9608 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9609 initializer.
9610 * objc-lang.c (objc_language_data): Likewise.
9611 * opencl-lang.c (opencl_language_data): Likewise.
9612 * p-lang.c (pascal_language_data): Likewise.
9613 * rust-lang.c (rust_language_data): Likewise.
9614
4009ee92
AB
96152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9616
9617 * ada-lang.c (ada_add_all_symbols): Update comment.
9618 (ada_iterate_over_symbols): Delete, move implementation to...
9619 (ada_language::iterate_over_symbols): ...here, a new member
9620 function, rewrite to use range based for loop.
9621 (ada_language_data): Delete la_iterate_over_symbols initializer.
9622 * c-lang.c (c_language_data): Likewise.
9623 (cplus_language_data): Likewise.
9624 (asm_language_data): Likewise.
9625 (minimal_language_data): Likewise.
9626 * d-lang.c (d_language_data): Likewise.
9627 * f-lang.c (f_language_data): Likewise.
9628 * go-lang.c (go_language_data): Likewise.
9629 * language.c (unknown_language_data): Likewise.
9630 (auto_language_data): Likewise.
9631 * language.h (language_data): Delete la_iterate_over_symbols field.
9632 (language_defn::iterate_over_symbols): New member function.
9633 (LA_ITERATE_OVER_SYMBOLS): Update.
9634 * linespec.c (iterate_over_all_matching_symtabs): Update.
9635 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9636 initializer.
9637 * objc-lang.c (objc_language_data): Likewise.
9638 * opencl-lang.c (opencl_language_data): Likewise.
9639 * p-lang.c (pascal_language_data): Likewise.
9640 * rust-lang.c (rust_language_data): Likewise.
9641
54f4ca46
AB
96422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9643
9644 * ada-lang.c (ada_language_data): Delete
9645 la_lookup_transparent_type initializer.
9646 * c-lang.c (c_language_data): Likewise.
9647 (cplus_language_data): Likewise.
9648 (cplus_language::lookup_transparent_type): New member function.
9649 (asm_language_data): Delete la_lookup_transparent_type
9650 initializer.
9651 (minimal_language_data): Likewise.
9652 * d-lang.c (d_language_data): Likewise.
9653 * f-lang.c (f_language_data): Likewise.
9654 * go-lang.c (go_language_data): Likewise.
9655 * language.c (unknown_language_data): Likewise.
9656 (auto_language_data): Likewise.
9657 * language.h (struct language_data): Delete
9658 la_lookup_transparent_type field.
9659 (language_defn::lookup_transparent_type): New member function.
9660 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9661 initializer.
9662 * objc-lang.c (objc_language_data): Likewise.
9663 * opencl-lang.c (opencl_language_data): Likewise.
9664 * p-lang.c (pascal_language_data): Likewise.
9665 * rust-lang.c (rust_language_data): Likewise.
9666 * symtab.c (symbol_matches_domain): Update call.
9667
1fb314aa
AB
96682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9669
9670 * ada-lang.c (ada_language_arch_info): Delete function, move
9671 implementation to...
9672 (ada_language::language_arch_info): ...here, a new member
9673 function.
9674 (ada_language_data): Delete la_language_arch_info.
9675 * c-lang.c (c_language_data): Likewise.
9676 (c_language::language_arch_info): New member function.
9677 (cplus_language_arch_info): Delete function, move
9678 implementation to...
9679 (cplus_language::language_arch_info): ...here, a new member
9680 function.
9681 (cplus_language_data): Delete la_language_arch_info.
9682 (asm_language_data): Likewise.
9683 (asm_language::language_arch_info): New member function.
9684 (minimal_language_data): Delete la_language_arch_info.
9685 (minimal_language::language_arch_info): New member function.
9686 * d-lang.c (d_language_arch_info): Delete function, move
9687 implementation to...
9688 (d_language::language_arch_info): ...here, a new member
9689 function.
9690 (d_language_data): Delete la_language_arch_info.
9691 * f-lang.c (f_language_arch_info): Delete function, move
9692 implementation to...
9693 (f_language::language_arch_info): ...here, a new member
9694 function.
9695 (f_language_data): Delete la_language_arch_info.
9696 * go-lang.c (go_language_arch_info): Delete function, move
9697 implementation to...
9698 (go_language::language_arch_info): ...here, a new member
9699 function.
9700 (go_language_data): Delete la_language_arch_info.
9701 * language.c (unknown_language_data): Likewise.
9702 (unknown_language::language_arch_info): New member function.
9703 (auto_language_data): Delete la_language_arch_info.
9704 (auto_language::language_arch_info): New member function.
9705 (language_gdbarch_post_init): Update call to
9706 la_language_arch_info.
9707 * language.h (language_data): Delete la_language_arch_info
9708 function pointer.
9709 (language_defn::language_arch_info): New function.
9710 * m2-lang.c (m2_language_arch_info): Delete function, move
9711 implementation to...
9712 (m2_language::language_arch_info): ...here, a new member
9713 function.
9714 (m2_language_data): Delete la_language_arch_info.
9715 * objc-lang.c (objc_language_arch_info): Delete function, move
9716 implementation to...
9717 (objc_language::language_arch_info): ...here, a new member
9718 function.
9719 (objc_language_data): Delete la_language_arch_info.
9720 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9721 implementation to...
9722 (opencl_language::language_arch_info): ...here, a new member
9723 function.
9724 (opencl_language_data): Delete la_language_arch_info.
9725 * p-lang.c (pascal_language_arch_info): Delete function, move
9726 implementation to...
9727 (pascal_language::language_arch_info): ...here, a new member
9728 function.
9729 (pascal_language_data): Delete la_language_arch_info.
9730 * rust-lang.c (rust_language_arch_info): Delete function, move
9731 implementation to...
9732 (rust_language::language_arch_info): ...here, a new member
9733 function.
9734 (rust_language_data): Delete la_language_arch_info.
9735
48448202
AB
97362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9737
9738 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9739 initializer.
9740 * c-lang.c (c_language_data): Likewise.
9741 (cplus_language_data): Likewise.
9742 (cplus_language::pass_by_reference_info): New method.
9743 (asm_language_data): Delete la_pass_by_reference initializer.
9744 (minimal_language_data): Likewise.
9745 * cp-abi.c (cp_pass_by_reference): Remove use of
9746 default_pass_by_reference.
9747 * d-lang.c (d_language_data): Likewise.
9748 * f-lang.c (f_language_data): Likewise.
9749 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9750 default_pass_by_reference.
9751 * go-lang.c (go_language_data): Likewise.
9752 * language.c (language_pass_by_reference): Update.
9753 (default_pass_by_reference): Delete.
9754 (unknown_language_data): Delete la_pass_by_reference
9755 initializer.
9756 (auto_language_data): Likewise.
9757 * language.h (struct language_data): Delete la_pass_by_reference
9758 field.
9759 (language_defn::pass_by_reference_info): New member function.
9760 (default_pass_by_reference): Delete declaration.
9761 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9762 initializer.
9763 * objc-lang.c (objc_language_data): Likewise.
9764 * opencl-lang.c (opencl_language_data): Likewise.
9765 * p-lang.c (pascal_language_data): Likewise.
9766 * rust-lang.c (rust_language_data): Likewise.
9767
15e5fd35
AB
97682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9769
9770 * ada-lang.c (ada_read_var_value): Delete function, move
9771 implementation to...
9772 (ada_language::read_var_value): ...here.
9773 (ada_language_data): Delete la_read_var_value initializer.
9774 * c-lang.c (c_language_data): Likewise.
9775 (cplus_language_data): Likewise.
9776 (minimal_language_data): Likewise.
9777 * d-lang.c (d_language_data): Likewise.
9778 * f-lang.c (f_language_data): Likewise.
9779 * findvar.c (default_read_var_value): Rename to...
9780 (language_defn::read_var_value): ...this.
9781 * findvar.c (read_var_value): Update header comment, and change to
9782 call member function instead of function pointer.
9783 * go-lang.c (go_language_data): Likewise.
9784 * language.c (unknown_language_data): Delete la_read_var_value
9785 initializer.
9786 (auto_language_data): Likewise.
9787 * language.h (struct language_data): Delete la_read_var_value
9788 field.
9789 (language_defn::read_var_value): New member function.
9790 (default_read_var_value): Delete declaration.
9791 * m2-lang.c (m2_language_data): Delete la_read_var_value
9792 initializer.
9793 * objc-lang.c (objc_language_data): Likewise.
9794 * opencl-lang.c (opencl_language_data): Likewise.
9795 * p-lang.c (pascal_language_data): Likewise.
9796 * rust-lang.c (rust_language_data): Likewise.
9797 * value.h (default_read_var_value): Delete declaration.
9798
5bd40f2a
AB
97992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9800
9801 * ada-lang.c (ada_print_array_index): Delete function, move
9802 implementation to...
9803 (ada_language::print_array_index): ...here.
9804 (ada_language_data): Delete la_print_array_index initializer.
9805 * c-lang.c (c_language_data): Likewise.
9806 (cplus_language_data): Likewise.
9807 (minimal_language_data): Likewise.
9808 * d-lang.c (d_language_data): Likewise.
9809 * f-lang.c (f_language_data): Likewise.
9810 * go-lang.c (go_language_data): Likewise.
9811 * language.c (default_print_array_index): Delete function, move
9812 implementation to...
9813 (language_defn::print_array_index): ...here.
9814 (unknown_language_data): Delete la_print_array_index initializer.
9815 (auto_language_data): Likewise.
9816 * language.h (struct language_data): Delete la_print_array_index
9817 field.
9818 (language_defn::print_array_index): New member function.
9819 (LA_PRINT_ARRAY_INDEX): Update.
9820 (default_print_array_index): Delete declaration.
9821 * m2-lang.c (m2_language_data): Delete la_print_array_index
9822 initializer.
9823 * objc-lang.c (objc_language_data): Likewise.
9824 * opencl-lang.c (opencl_language_data): Likewise.
9825 * p-lang.c (pascal_language_data): Likewise.
9826 * rust-lang.c (rust_language_data): Likewise.
9827
0874fd07
AB
98282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9829
9830 * gdb/ada-lang.c (ada_language_defn): Convert to...
9831 (ada_language_data): ...this.
9832 (class ada_language): New class.
9833 (ada_language_defn): New static global.
9834 * gdb/c-lang.c (c_language_defn): Convert to...
9835 (c_language_data): ...this.
9836 (class c_language): New class.
9837 (c_language_defn): New static global.
9838 (cplus_language_defn): Convert to...
9839 (cplus_language_data): ...this.
9840 (class cplus_language): New class.
9841 (cplus_language_defn): New static global.
9842 (asm_language_defn): Convert to...
9843 (asm_language_data): ...this.
9844 (class asm_language): New class.
9845 (asm_language_defn): New static global.
9846 (minimal_language_defn): Convert to...
9847 (minimal_language_data): ...this.
9848 (class minimal_language): New class.
9849 (minimal_language_defn): New static global.
9850 * gdb/d-lang.c (d_language_defn): Convert to...
9851 (d_language_data): ...this.
9852 (class d_language): New class.
9853 (d_language_defn): New static global.
9854 * gdb/f-lang.c (f_language_defn): Convert to...
9855 (f_language_data): ...this.
9856 (class f_language): New class.
9857 (f_language_defn): New static global.
9858 * gdb/go-lang.c (go_language_defn): Convert to...
9859 (go_language_data): ...this.
9860 (class go_language): New class.
9861 (go_language_defn): New static global.
9862 * gdb/language.c (unknown_language_defn): Remove declaration.
9863 (current_language): Initialize to nullptr, real initialization is
9864 moved to _initialize_language.
9865 (languages): Delete global.
9866 (language_defn::languages): Define.
9867 (set_language_command): Use language_defn::languages.
9868 (set_language): Likewise.
9869 (range_error): Likewise.
9870 (language_enum): Likewise.
9871 (language_def): Likewise.
9872 (add_set_language_command): Use language_def::languages for the
9873 language list, and language_def to lookup language pointers.
9874 (skip_language_trampoline): Use language_defn::languages.
9875 (unknown_language_defn): Convert to...
9876 (unknown_language_data): ...this.
9877 (class unknown_language): New class.
9878 (unknown_language_defn): New static global.
9879 (auto_language_defn): Convert to...
9880 (auto_language_data): ...this.
9881 (class auto_language): New class.
9882 (auto_language_defn): New static global.
9883 (language_gdbarch_post_init): Use language_defn::languages.
9884 (_initialize_language): Initialize current_language.
9885 * gdb/language.h (struct language_defn): Rename to...
9886 (struct language_data): ...this.
9887 (struct language_defn): New.
9888 (auto_language_defn): Delete.
9889 (unknown_language_defn): Delete.
9890 (minimal_language_defn): Delete.
9891 (ada_language_defn): Delete.
9892 (asm_language_defn): Delete.
9893 (c_language_defn): Delete.
9894 (cplus_language_defn): Delete.
9895 (d_language_defn): Delete.
9896 (f_language_defn): Delete.
9897 (go_language_defn): Delete.
9898 (m2_language_defn): Delete.
9899 (objc_language_defn): Delete.
9900 (opencl_language_defn): Delete.
9901 (pascal_language_defn): Delete.
9902 (rust_language_defn): Delete.
9903 * gdb/m2-lang.c (m2_language_defn): Convert to...
9904 (m2_language_data): ...this.
9905 (class m2_language): New class.
9906 (m2_language_defn): New static global.
9907 * gdb/objc-lang.c (objc_language_defn): Convert to...
9908 (objc_language_data): ...this.
9909 (class objc_language): New class.
9910 (objc_language_defn): New static global.
9911 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9912 (opencl_language_data): ...this.
9913 (class opencl_language): New class.
9914 (opencl_language_defn): New static global.
9915 * gdb/p-lang.c (pascal_language_defn): Convert to...
9916 (pascal_language_data): ...this.
9917 (class pascal_language): New class.
9918 (pascal_language_defn): New static global.
9919 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9920 language pointer, update comment format.
9921 * gdb/rust-lang.c (rust_language_defn): Convert to...
9922 (rust_language_data): ...this.
9923 (class rust_language): New class.
9924 (rust_language_defn): New static global.
9925
1313c56e
AB
99262020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9929 member variable.
9930 <m_stmt_at_address>: New member variable.
9931 (lnp_state_machine::record_line): Don't record some lines, update
9932 tracking of is_stmt at the same address.
9933 (lnp_state_machine::lnp_state_machine): Initialise new member
9934 variables.
9935
b7ed9f3d
ST
99362020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9937
9938 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9939 "-include gnu-nat-mig.h".
9940 * gnu-nat-mig.h: New file.
9941 * gnu-nat.c: Include "gnu-nat-mig.h".
9942 (exc_server, msg_reply_server, notify_server,
9943 process_reply_server): Remove declarations.
9944
14a8ad62
ST
99452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9946
9947 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9948 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9949 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9950 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9951 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9952 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9953 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9954 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9955 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9956 to gnu_nat_target class.
9957 * gnu-nat.c: Likewise.
9958 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9959 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9960 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9961 object.
9962 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9963 instead of `gnu_target'.
9964
0af5e106
ST
99652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9966
9967 * i386-gnu-tdep.c: Include "gdbcore.h"
9968 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9969 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9970 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9971 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9972 i386_gnu_sigcontext_addr): New functions
9973 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9974 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9975 tdep.
9976
078f2fc9
ST
99772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9978
9979 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9980 before fork_inferior call. Avoid calling it if target_is_pushed returns
9981 true.
9982
53dff92c
ST
99832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9984
9985 * gnu-nat.h (gnu_target): New variable declaration.
9986 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9987 gnu_target.
9988 * gnu-nat.c (gnu_target): New variable.
9989 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9990 add_thread_silent, and add_thread calls.
9991 (gnu_nat_target::create_inferior): Pass gnu_target to
9992 add_thread_silent, thread_change_ptid call.
9993 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9994 call.
9995
5a8b8627
ST
99962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9997
9998 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9999 (gnu_nat_target::find_memory_regions): Remove unused
10000 `old_address' variable.
10001
366f550a
ST
100022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10003
10004 * gnu-nat.c: Include "gdbarch.h".
10005
f14871bf
ST
100062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10007
10008 * reply_mig_hack.awk (Error return): Cast function through
10009 void *, to bypass compiler function call check.
10010
c6887cfb
ST
100112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10012
10013 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
10014 $(srcdir)/reply_mig_hack.awk.
10015
6930bffe
ST
100162020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10017
10018 * gnu-nat.h (gnu_debug_flag): Set type to bool.
10019
112c22ed
JG
100202020-05-30 Jonny Grant <jg@jguk.org>
10021
10022 * configure.ac (ACX_BUGURL): change bug URL to https.
10023
f68f85b5
PA
100242020-05-30 Pedro Alves <palves@redhat.com>
10025
10026 * cp-support.c (replace_typedefs_template): New.
10027 (replace_typedefs_qualified_name): Handle
10028 DEMANGLE_COMPONENT_TEMPLATE.
10029
976ca316
SM
100302020-05-29 Simon Marchi <simon.marchi@efficios.com>
10031
10032 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
10033 dwarf2/index-cache.h, dwarf2/index-write.c,
10034 dwarf2/index-write.h, dwarf2/line-header.c,
10035 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
10036 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10037 variables and fields from `dwarf2_per_objfile` to just
10038 `per_objfile` throughout.
10039
989ade05
SM
100402020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10041
10042 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10043 <push_dwarf_reg_entry_value>: Add comment.
10044
c47bae85
KB
100452020-05-28 Kevin Buettner <kevinb@redhat.com>
10046 Keith Seitz <keiths@redhat.com>
10047
10048 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10049 instead of PyEval_ReleaseLock.
10050 (class gdbpy_gil): Move to earlier in file.
10051 (finalize_python): Set gdb_python_initialized.
10052 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10053 when not initialized.
10054
44486dcf
SM
100552020-05-28 Simon Marchi <simon.marchi@efficios.com>
10056
10057 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10058 <push_dwarf_reg_entry_value>: Remove assert. Override
10059 per_objfile with caller_per_objfile.
10060
f030440d
TV
100612020-05-28 Tom de Vries <tdevries@suse.de>
10062
10063 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10064 PR gold/15646 workaround to symbol kind "type".
10065
f0fbb768
TT
100662020-05-27 Tom Tromey <tromey@adacore.com>
10067
10068 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10069
af0b2a3e
TT
100702020-05-27 Tom Tromey <tromey@adacore.com>
10071
10072 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10073 Use htab_find_with_hash.
10074 <add_abbrev>: Remove "abbrev_number" parameter.
10075 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10076 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10077 (hash_abbrev): Add comment.
10078 (abbrev_table::lookup_abbrev): Move to header file.
10079 (abbrev_table::read): Update.
10080
7d00ffec
TT
100812020-05-27 Tom Tromey <tromey@adacore.com>
10082
10083 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10084 method.
10085 <canonical_name>: New member.
10086 <raw_name>: Rename from "name".
10087 (partial_die_info): Initialize canonical_name.
10088 (scan_partial_symbols): Check raw_name.
10089 (partial_die_parent_scope, partial_die_full_name)
10090 (add_partial_symbol, add_partial_subprogram)
10091 (add_partial_enumeration, load_partial_dies): Use "name" method.
10092 (partial_die_info::name): New method.
10093 (partial_die_info::read, guess_partial_die_structure_name)
10094 (partial_die_info::fixup): Update.
10095
697bba18
TT
100962020-05-27 Tom Tromey <tromey@adacore.com>
10097
10098 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10099 <get_ref_die_offset>: Inline.
10100 <get_ref_die_offset_complaint>: New method.
10101 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10102 (attribute::get_ref_die_offset_complaint): Rename from
10103 get_ref_die_offset. Just issue complaint.
10104
c17ace43
HD
101052020-05-27 Hannes Domani <ssbssa@yahoo.de>
10106
10107 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10108
96445f0b
HD
101092020-05-27 Hannes Domani <ssbssa@yahoo.de>
10110
10111 * exec.c (exec_file_attach): Use errno value of first openp failure.
10112
ac637ec3
HD
101132020-05-27 Hannes Domani <ssbssa@yahoo.de>
10114
10115 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10116 Don't close thread handle.
10117
17ee85fc
TT
101182020-05-27 Tom Tromey <tom@tromey.com>
10119 Simon Marchi <simon.marchi@efficios.com>
10120
10121 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10122 shared_ptr.
10123 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10124 member.
10125 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10126 dwarf2_per_bfd_objfile_data_key>: New globals.
10127 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10128 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10129 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10130 shared.
10131 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10132 short-circuit when sharing.
10133 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10134 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10135
39b16f87
SM
101362020-05-27 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10139 to...
10140 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10141 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10142
fcf23d5b
SM
101432020-05-27 Simon Marchi <simon.marchi@efficios.com>
10144
10145 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10146 build_name_components, find_name_components_bounds>:
10147 Add per_objfile parameter.
10148 (struct mapped_index) <symbol_name_at>: Likewise.
10149 (struct mapped_debug_names): Remove constructor.
10150 <dwarf2_per_objfile>: Remove field.
10151 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10152 (mapped_index_base::find_name_components_bounds,
10153 mapped_index_base::build_name_components,
10154 dw2_expand_symtabs_matching_symbol): Likewise.
10155 (class mock_mapped_index) <symbol_name_at>: Likewise.
10156 (check_match): Likewise.
10157 (check_find_bounds_finds): Likewise.
10158 (test_mapped_index_find_name_component_bounds): Update.
10159 (CHECK_MATCH): Update.
10160 (dw2_expand_symtabs_matching): Update.
10161 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10162 per_objfile parameter.
10163 <find_vec_in_debug_names>: Likewise.
10164 <m_per_objfile>: New field.
10165 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10166 parameter.
10167 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10168 (dw2_debug_names_iterator::next): Update.
10169 (dw2_debug_names_lookup_symbol): Update.
10170 (dw2_debug_names_expand_symtabs_for_function): Update.
10171 (dw2_debug_names_map_matching_symbols): Update.
10172 (dw2_debug_names_expand_symtabs_matching): Update.
10173 (dwarf2_read_debug_names): Update.
10174
7188ed02
SM
101752020-05-27 Simon Marchi <simon.marchi@efficios.com>
10176
10177 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10178 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10179 move to dwarf2_per_objfile.
10180 <read_in_chain>: Remove.
10181 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10182 remove_all_cus, age_comp_units>: New methods.
10183 <m_dwarf2_cus>: New member.
10184 (struct dwarf2_per_cu_data) <cu>: Remove.
10185 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10186 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10187 moved to methods of dwarf2_per_objfile.
10188 (dwarf2_clear_marks): Remove.
10189 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10190 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10191 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10192 (dwarf2_per_objfile::remove_all_cus): New.
10193 (class free_cached_comp_units) <~free_cached_comp_units>:
10194 Update.
10195 (load_cu): Update.
10196 (dw2_do_instantiate_symtab): Adjust.
10197 (fill_in_sig_entry_from_dwo_entry): Adjust.
10198 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10199 (cutu_reader::cutu_reader): Likewise.
10200 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10201 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10202 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10203 and dwarf2_per_objfile::age_comp_units.
10204 (load_partial_comp_unit): Update.
10205 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10206 (process_queue): Likewise.
10207 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10208 backlink.
10209 (dwarf2_read_addr_index): Likewise.
10210 (follow_die_offset): Likewise.
10211 (dwarf2_fetch_die_loc_sect_off): Likewise.
10212 (dwarf2_fetch_constant_bytes): Likewise.
10213 (dwarf2_fetch_die_type_sect_off): Likewise.
10214 (follow_die_sig_1): Likewise.
10215 (load_full_type_unit): Likewise.
10216 (read_signatured_type): Likewise.
10217 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10218 (dwarf2_cu::~dwarf2_cu): Remove.
10219 (dwarf2_per_objfile::get_cu): New.
10220 (dwarf2_per_objfile::set_cu): New.
10221 (age_cached_comp_units): Rename to...
10222 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10223 to std::unordered_map.
10224 (free_one_cached_comp_unit): Rename to...
10225 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10226 to std::unordered_map.
10227 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10228 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10229 a dwarf2_per_objfile in data.
10230 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10231 (dwarf2_clear_marks): Remove.
10232
2e671100
SM
102332020-05-27 Simon Marchi <simon.marchi@efficios.com>
10234
10235 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10236 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10237 (init_tu_and_read_dwo_dies): Likewise.
10238 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10239 (cutu_reader::cutu_reader): Likewise.
10240 (load_partial_comp_unit): Likewise.
10241 (process_psymtab_comp_unit): Update.
10242 (build_type_psymtabs_1): Update.
10243 (process_skeletonless_type_unit): Update.
10244 (load_full_comp_unit): Update.
10245 (find_partial_die): Update.
10246 (dwarf2_read_addr_index): Update.
10247 (read_signatured_type): Update.
10248
2e6a9f79
SM
102492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10250
10251 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10252 m_header_read_in>: New fields.
10253 <get_header>: New method.
10254 * dwarf2/read.c (per_cu_header_read_in): Remove.
10255 (dwarf2_per_cu_data::get_header): New.
10256 (dwarf2_per_cu_data::addr_size): Update.
10257 (dwarf2_per_cu_data::offset_size): Update.
10258 (dwarf2_per_cu_data::ref_addr_size): Update.
10259
1b555f17
SM
102602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10263 (dw2_do_instantiate_symtab): Update.
10264 (queue_and_load_all_dwo_tus): Change parameter from
10265 dwarf2_per_cu_data to dwarf2_cu.
10266 (dwarf2_fetch_die_loc_sect_off): Update.
10267 (dwarf2_fetch_constant_bytes): Update.
10268 (dwarf2_fetch_die_type_sect_off): Update.
10269
8fc0b21d
SM
102702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10271
10272 * dwarf2/read.c (process_full_comp_unit,
10273 process_full_type_unit): Remove per_cu, per_objfile paramters.
10274 Add dwarf2_cu parameter.
10275 (process_queue): Update.
10276
168c9250
SM
102772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10278
10279 * dwarf2/read.c (create_cu_from_index_list): Replace
10280 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10281 (create_cus_from_index_list): Likewise.
10282 (create_cus_from_index): Likewise.
10283 (create_signatured_type_table_from_index): Likewise.
10284 (create_cus_from_debug_names_list): Likewise.
10285 (create_cus_from_debug_names): Likewise.
10286 (dwarf2_read_gdb_index): Update.
10287 (dwarf2_read_debug_names): Update.
10288
e286671b
TT
102892020-05-27 Tom Tromey <tom@tromey.com>
10290 Simon Marchi <simon.marchi@efficios.com>
10291
10292 * dwarf2/read.h (struct dwarf2_per_objfile)
10293 <get_type_for_signatured_type, set_type_for_signatured_type>:
10294 New methods.
10295 <m_type_map>: New member.
10296 (struct signatured_type) <type>: Remove.
10297 * dwarf2/read.c
10298 (dwarf2_per_objfile::get_type_for_signatured_type,
10299 dwarf2_per_objfile::set_type_for_signatured_type): New.
10300 (get_signatured_type): Use new methods.
10301
8adb8487
TT
103022020-05-27 Tom Tromey <tom@tromey.com>
10303 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10306 (struct dwarf2_per_objfile) <type_units>: New member.
10307 <get_type_unit_group_unshareable>: New method.
10308 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10309 num_symtabs, symtabs>: Remove; move to
10310 type_unit_group_unshareable.
10311 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10312 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10313 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10314
127bbf4b
SM
103152020-05-27 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * dwarf2/read.h (struct dwarf2_per_cu_data):
10318 <dwarf2_per_objfile>: Remove.
10319 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10320 dwarf2_per_objfile.
10321 (create_signatured_type_table_from_index): Likewise.
10322 (create_signatured_type_table_from_debug_names): Likewise.
10323 (create_debug_type_hash_table): Likewise.
10324 (fill_in_sig_entry_from_dwo_entry): Likewise.
10325 (create_type_unit_group): Likewise.
10326 (read_comp_units_from_section): Likewise.
10327 (create_cus_hash_table): Likewise.
10328
f6e649dd
SM
103292020-05-27 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10332 dwarf2_per_cu_data::dwarf2_per_objfile.
10333 (compute_compunit_symtab_includes): Likewise.
10334 (dwarf2_cu::start_symtab): Likewise.
10335
aa66c379
SM
103362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10337
10338 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10339 parameter.
10340 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10341 (read_namespace_alias): Update.
10342 (lookup_die_type): Update.
10343 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10344 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10345 Update.
10346 (disassemble_dwarf_expression): Update.
10347
120ce1b5
SM
103482020-05-27 Simon Marchi <simon.marchi@efficios.com>
10349
10350 * dwarf2/read.h (struct dwarf2_queue_item): Add
10351 dwarf2_per_objfile parameter, assign new parameter.
10352 <per_objfile>: New field.
10353 * dwarf2/read.c (free_one_cached_comp_unit): Add
10354 dwarf2_per_objfile parameter.
10355 (queue_comp_unit): Likewise.
10356 (dw2_do_instantiate_symtab): Update.
10357 (process_psymtab_comp_unit): Update.
10358 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10359 (process_imported_unit_die): Update.
10360 (queue_and_load_dwo_tu): Update.
10361 (follow_die_offset): Update.
10362 (follow_die_sig_1): Update.
10363
9f47c707
SM
103642020-05-27 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10367 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10368 (read_call_site_scope): Assign per_objfile.
10369 (dwarf2_per_cu_data::objfile): Remove.
10370 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10371 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10372 dwarf2_per_objfile parameter.
10373 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10374 dwarf2_per_objfile parameter.
10375 (dwarf_expr_reg_to_entry_parameter): Add output
10376 dwarf2_per_objfile parameter.
10377 (locexpr_get_frame_base): Update.
10378 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10379 <push_dwarf_reg_entry_value>: Update.
10380 <call_site_to_target_addr>: Update.
10381 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10382 parameter.
10383 (value_of_dwarf_reg_entry): Update.
10384 (rw_pieced_value): Update.
10385 (indirect_synthetic_pointer): Update.
10386 (dwarf2_evaluate_property): Update.
10387 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10388 parameter.
10389 (locexpr_read_variable): Update.
10390 (locexpr_get_symbol_read_needs): Update.
10391 (loclist_read_variable): Update.
10392
14095eb3
SM
103932020-05-27 Simon Marchi <simon.marchi@efficios.com>
10394
10395 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10396 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10397 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10398 parameter.
10399 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10400 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10401 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10402 parameter.
10403 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10404 sect_variable_value): Add dwarf2_per_objfile parameter.
10405 (class dwarf_evaluate_loc_desc) <dwarf_call,
10406 dwarf_variable_value>: Update.
10407 (fetch_const_value_from_synthetic_pointer): Add
10408 dwarf2_per_objfile parameter.
10409 (fetch_const_value_from_synthetic_pointer): Update.
10410 (coerced_pieced_ref): Update.
10411 (class symbol_needs_eval_context) <dwarf_call,
10412 dwarf_variable_value>: Update.
10413 (dwarf2_compile_expr_to_ax): Update.
10414
3c3cd3d4
SM
104152020-05-27 Simon Marchi <simon.marchi@efficios.com>
10416
10417 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10418 parameter.
10419 (dwarf2_evaluate_loc_desc_full): Update.
10420
82ca3f51
SM
104212020-05-27 Simon Marchi <simon.marchi@efficios.com>
10422
10423 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10424 parameter.
10425 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10426 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10427 dwarf2_per_objfile parameter.
10428 (decode_debug_loc_dwo_addresses): Likewise.
10429 (dwarf2_find_location_expression): Update.
10430 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10431 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10432 parameter.
10433 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10434 parameter.
10435 (locexpr_describe_location_1): Likewise.
10436 (locexpr_describe_location): Update.
10437
4b167ea1
SM
104382020-05-27 Simon Marchi <simon.marchi@efficios.com>
10439
10440 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10441 Remove.
10442 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10443 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10444 (dwarf2_compile_property_to_c): Update.
10445 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10446 use text offset from objfile.
10447 (locexpr_tracepoint_var_ref): Update.
10448 (locexpr_generate_c_location): Update.
10449 (loclist_describe_location): Update.
10450 (loclist_tracepoint_var_ref): Update.
10451 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10452 dwarf2_per_objfile parameter.
10453 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10454 use text offset from objfile.
10455 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10456
89b07335
SM
104572020-05-27 Simon Marchi <simon.marchi@efficios.com>
10458
10459 * dwarf2/expr.h (struct dwarf_expr_context)
10460 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10461 <offset>: Remove.
10462 <per_objfile>: New member.
10463 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10464 dwarf2_per_objfile parameter. Don't set offset, set
10465 per_objfile.
10466 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10467 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10468 a dwarf2_per_objfile object instead of an offset.
10469 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10470 constructor.
10471 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10472 to dwarf2_expr_executor constructor. Don't set offset.
10473 (dwarf2_fetch_cfa_info): Update.
10474 (struct dwarf2_frame_cache) <text_offset>: Remove.
10475 <per_objfile>: New field.
10476 (dwarf2_frame_cache): Update.
10477 (dwarf2_frame_prev_register): Update.
10478 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10479 <dwarf_evaluate_loc_desc>: Add constructor.
10480 (dwarf2_evaluate_loc_desc_full): Update.
10481 (dwarf2_locexpr_baton_eval): Update.
10482 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10483 Add constructor.
10484 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10485
293e7e51
SM
104862020-05-27 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10489 addr_sized_int_type>: Move to dwarf2_cu.
10490 <int_type>: Move to dwarf2_per_objfile.
10491 (struct dwarf2_per_objfile) <int_type>: Move here.
10492 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10493 addr_sized_int_type>: Move here.
10494 (read_func_scope): Update.
10495 (read_array_type): Update.
10496 (read_tag_string_type): Update.
10497 (attr_to_dynamic_prop): Update.
10498 (dwarf2_per_cu_data::int_type): Rename to...
10499 (dwarf2_per_objfile::int_type): ... this.
10500 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10501 (dwarf2_cu::addr_sized_int_type): ... this.
10502 (read_subrange_type): Update.
10503 (dwarf2_per_cu_data::addr_type): Rename to...
10504 (dwarf2_cu::addr_type): ... this.
10505 (set_die_type): Update.
10506
64874a40
SM
105072020-05-27 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10510 data through per_cu->cu.
10511
4ab09049
SM
105122020-05-27 Simon Marchi <simon.marchi@efficios.com>
10513
10514 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10515 dwarf2_per_cu_data parameter fo dwarf2_cu.
10516 (lookup_dwo_type_unit): Likewise.
10517 (read_cutu_die_from_dwo): Likewise.
10518 (lookup_dwo_unit): Likewise.
10519 (open_and_init_dwo_file): Likewise.
10520 (lookup_dwo_cutu): Likewise.
10521 (lookup_dwo_comp_unit): Likewise.
10522 (lookup_dwo_type_unit): Likewise.
10523 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10524 (cutu_reader::cutu_reader): Update.
10525
47b14e86
SM
105262020-05-27 Simon Marchi <simon.marchi@efficios.com>
10527
10528 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10529 parameter.
10530 (process_full_type_unit): Likewise.
10531 (process_queue): Update.
10532
43182c09
SM
105332020-05-27 Simon Marchi <simon.marchi@efficios.com>
10534
10535 * dwarf2/read.c (recursively_compute_inclusions): Add
10536 dwarf2_per_objfile parameter.
10537 (compute_compunit_symtab_includes): Likewise.
10538 (process_cu_includes): Update.
10539
7aa104c4
SM
105402020-05-27 Simon Marchi <simon.marchi@efficios.com>
10541
10542 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10543 parameter.
10544 (create_type_unit_group): Update.
10545 (process_psymtab_comp_unit_reader): Update.
10546 (build_type_psymtabs_reader): Update.
10547
e3beb21d
SM
105482020-05-27 Simon Marchi <simon.marchi@efficios.com>
10549
10550 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10551 object through m_this_cu->cu.
10552
d460f660
SM
105532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10554
10555 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10556 the info parameter.
10557 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10558
ab432490
SM
105592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10560
10561 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10562 per_objfile parameter.
10563 (load_full_type_unit): Add per_objfile parameter.
10564 (read_signatured_type): Likewise.
10565 (load_full_comp_unit): Likewise.
10566 (load_cu): Likewise.
10567 (dw2_do_instantiate_symtab): Likewise.
10568 (dw2_get_file_names): Likewise.
10569 (dw2_map_symtabs_matching_filename): Update.
10570 (dw_expand_symtabs_matching_file_matcher): Update.
10571 (dw2_map_symbol_filenames): Update.
10572 (process_psymtab_comp_unit): Add per_objfile parameter.
10573 (build_type_psymtabs_1): Update.
10574 (process_skeletonless_type_unit): Update.
10575 (dwarf2_build_psymtabs_hard): Update.
10576 (load_partial_comp_unit): Add per_objfile parameter.
10577 (scan_partial_symbols): Update.
10578 (load_full_comp_unit): Add per_objfile parameter.
10579 (process_imported_unit_die): Update.
10580 (create_cus_hash_table): Update.
10581 (find_partial_die): Update.
10582 (dwarf2_read_addr_index): Update.
10583 (follow_die_offset): Update.
10584 (dwarf2_fetch_die_loc_sect_off): Update.
10585 (dwarf2_fetch_constant_bytes): Update.
10586 (dwarf2_fetch_die_type_sect_off): Update.
10587 (follow_die_sig_1): Update.
10588 (load_full_type_unit): Add per_objfile parameter.
10589 (read_signatured_type): Likewise.
10590
313bad1b
SM
105912020-05-27 Simon Marchi <simon.marchi@efficios.com>
10592
10593 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10594 of objfile_name.
10595
c3699833
SM
105962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10597
10598 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10599 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10600 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10601 field.
10602 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10603 (create_cus_from_index): Update.
10604 (dwarf2_read_gdb_index): Update.
10605 (create_cus_from_debug_names): Update.
10606 (dwarf2_read_debug_names): Update.
10607 (get_abbrev_section_for_cu): Update.
10608 (create_all_comp_units): Update.
10609 (read_attribute_value): Update.
10610 (get_debug_line_section): Update.
10611 * dwarf2/index-cache.c (index_cache::store): Update.
10612 * dwarf2/index-write.c (save_gdb_index_command): Update.
10613 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10614
1859c670
SM
106152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10616
10617 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10618 member.
10619 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10620 dwarf2_per_cu_data::per_bfd.
10621 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10622 (create_type_unit_group): Likewise.
10623 (queue_comp_unit): Remove reference to
10624 per_cu->dwarf2_per_objfile.
10625 (maybe_queue_comp_unit): Likewise.
10626 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10627 (create_cus_hash_table): Assign new field.
10628
5e22e966
SM
106292020-05-27 Simon Marchi <simon.marchi@efficios.com>
10630
10631 * dwarf2/read.c: Replace
10632 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10633 dwarf2_cu->per_objfile throughout.
10634
97a1449a
SM
106352020-05-27 Simon Marchi <simon.marchi@efficios.com>
10636
10637 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10638 parameter, don't use per_cu->dwarf2_per_objfile.
10639 (dw2_instantiate_symtab): Likewise.
10640 (dw2_find_last_source_symtab): Update.
10641 (dw2_map_expand_apply): Update.
10642 (dw2_lookup_symbol): Update.
10643 (dw2_expand_symtabs_for_function): Update.
10644 (dw2_expand_all_symtabs): Update.
10645 (dw2_expand_symtabs_with_fullname): Update.
10646 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10647 don't use per_cu->dwarf2_per_objfile.
10648 (dw2_expand_marked_cus): Update.
10649 (dw2_find_pc_sect_compunit_symtab): Update.
10650 (dw2_debug_names_lookup_symbol): Update.
10651 (dw2_debug_names_expand_symtabs_for_function): Update.
10652 (dw2_debug_names_map_matching_symbols): Update.
10653 (dwarf2_psymtab::expand_psymtab): Update.
10654
9e021579
SM
106552020-05-27 Simon Marchi <simon.marchi@efficios.com>
10656
10657 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10658 <per_objfile>: New member.
10659 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10660 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10661 call to dwarf2_cu.
10662 (cutu_reader::cutu_reader): Update.
10663 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10664
ae090bdb
SM
106652020-05-27 Simon Marchi <simon.marchi@efficios.com>
10666
10667 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10668 struct dwarf2_per_objfile.
10669 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10670 dwarf2_per_bfd.
10671 * dwarf2/read.c (set_die_type): Update.
10672 (get_die_type_at_offset): Update.
10673
af758d11
SM
106742020-05-27 Tom Tromey <tom@tromey.com>
10675 Simon Marchi <simon.marchi@efficios.com>
10676
10677 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10678 method.
10679 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10680 get_symtab, set_symtab>: New methods.
10681 <m_symtabs>: New field.
10682 (struct dwarf2_psymtab): Derive from partial_symtab.
10683 <readin_p, get_compunit_symtab>: Declare methods.
10684 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10685 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10686 New methods.
10687 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10688 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10689 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10690 (dw2_symtab_iter_next, dw2_print_stats)
10691 (dw2_expand_symtabs_with_fullname)
10692 (dw2_expand_symtabs_matching_one)
10693 (dw_expand_symtabs_matching_file_matcher)
10694 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10695 (dw2_debug_names_iterator::next)
10696 (dw2_debug_names_map_matching_symbols)
10697 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10698 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10699 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10700 New methods.
10701 (get_compunit_symtab, process_full_comp_unit)
10702 (process_full_type_unit): Update.
10703 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10704
5989a64e
SM
107052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10706
10707 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10708 then introduce a new dwarf2_per_objfile type.
10709 <read_line_string>: Move to the new dwarf2_per_objfile type.
10710 <objfile>: Likewise.
10711 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10712 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10713 dwarf2_per_objfile->per_bfd.
10714 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10715 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10716 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10717 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10718 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10719 (dwarf2_per_objfile::locate_sections): Rename to...
10720 (dwarf2_per_bfd::locate_sections): ... this.
10721 (dwarf2_per_objfile::get_cutu): Rename to...
10722 (dwarf2_per_bfd::get_cutu): ... this.
10723 (dwarf2_per_objfile::get_cu): Rename to...
10724 (dwarf2_per_bfd::get_cu): ... this.
10725 (dwarf2_per_objfile::get_tu): Rename to...
10726 (dwarf2_per_bfd::get_tu): ... this.
10727 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10728 (dwarf2_per_bfd::allocate_per_cu): ... this.
10729 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10730 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10731 (get_gdb_index_contents_ftype): Change parameter from
10732 dwarf2_per_objfile to dwarf2_per_bfd.
10733 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10734 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10735
a50264ba
TT
107362020-05-27 Tom Tromey <tom@tromey.com>
10737 Simon Marchi <simon.marchi@efficios.com>
10738
10739 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10740 (allocate_piece_closure): Set "per_objfile" member.
10741 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10742 (locexpr_describe_location, loclist_describe_location): Use new
10743 member.
10744 * dwarf2/read.c (read_call_site_scope)
10745 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10746 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10747 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10748 handle_data_member_location): Set per_objfile member.
10749 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10750 member.
10751 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10752
d3473f0c
TT
107532020-05-27 Tom Tromey <tom@tromey.com>
10754
10755 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10756 allocate_signatured_type>: Declare new methods.
10757 <m_num_psymtabs>: New member.
10758 (struct dwarf2_per_cu_data) <index>: New member.
10759 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10760 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10761 (create_cu_from_index_list): Use allocate_per_cu.
10762 (create_signatured_type_table_from_index)
10763 (create_signatured_type_table_from_debug_names)
10764 (create_debug_type_hash_table, add_type_unit)
10765 (read_comp_units_from_section): Use allocate_signatured_type.
10766
5717c425
TT
107672020-05-27 Tom Tromey <tom@tromey.com>
10768
10769 * psymtab.c (partial_map_expand_apply)
10770 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10771 (psym_lookup_global_symbol_language)
10772 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10773 (psym_print_stats, psym_expand_symtabs_for_function)
10774 (psym_map_symbol_filenames, psym_map_matching_symbols)
10775 (psym_expand_symtabs_matching)
10776 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10777 (maintenance_check_psymtabs): Update.
10778 * psympriv.h (struct partial_symtab) <readin_p,
10779 get_compunit_symtab>: Add objfile parameter.
10780 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10781 Likewise.
10782 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10783 get_compunit_symtab>: Likewise.
10784 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10785
45940949
TT
107862020-05-27 Tom Tromey <tom@tromey.com>
10787
10788 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10789 member.
10790 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10791 (create_cu_from_index_list)
10792 (create_signatured_type_table_from_index)
10793 (create_signatured_type_table_from_debug_names)
10794 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10795 (dwarf2_create_include_psymtab)
10796 (create_debug_type_hash_table, add_type_unit)
10797 (create_type_unit_group, read_comp_units_from_section)
10798 (dwarf2_compute_name, create_cus_hash_table)
10799 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10800 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10801 obstack.
10802 (dw2_get_real_path): Likewise. Change argument to
10803 dwarf2_per_objfile.
10804
f8c6d152
LM
108052020-05-27 Luis Machado <luis.machado@linaro.org>
10806
10807 PR tdep/26000
10808 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10809 for ldrd (immediate).
10810
e98d2e6d
PW
108112020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10812
10813 * command.h: Add comment giving the name of class_tui.
10814 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10815 create the fake command for the help for class_tui.
10816
53a47a3e
TT
108172020-05-26 Tom Tromey <tromey@adacore.com>
10818
10819 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10820 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10821 (val_atr): New function.
10822 (value_val_atr): Use it.
10823 * ada-valprint.c (print_optional_low_bound): Change low bound
10824 handling for enums.
10825 (val_print_packed_array_elements): Don't call discrete_position.
10826 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10827 discrete_position for enum types.
10828 * language.c (default_print_array_index): Change type.
10829 * language.h (struct language_defn) <la_print_array_index>: Add
10830 index_type parameter, change type of index_value.
10831 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10832 (default_print_array_index): Update.
10833 * valprint.c (maybe_print_array_index): Don't call
10834 value_from_longest. Update.
10835 (value_print_array_elements): Don't call discrete_position.
10836
0bc2354b
TT
108372020-05-26 Tom Tromey <tromey@adacore.com>
10838
10839 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10840 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10841
1218a4bf
CDA
108422020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10843
10844 PR gdb/13519
10845 * avr-tdep.c (avr_integer_to_address): Return data or code
10846 address accordingly to the second 'type' argument of the
10847 function.
10848
92651b1d
MW
108492020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10850
10851 * infcmd.c, inferior.h: (construct_inferior_arguments):
10852 Moved function from here to gdbsupport/common-inferior.{h,cc}
10853
0a4f5f8c
TT
108542020-05-23 Tom Tromey <tom@tromey.com>
10855
10856 Revert commit eca1f90c:
10857 * NEWS: Remove entry for completion styling.
10858 * completer.c (_rl_completion_prefix_display_length): Move
10859 declaration later.
10860 (gdb_fnprint): Revert.
10861 (gdb_display_match_list_1): Likewise.
10862 * cli/cli-style.c (completion_prefix_style)
10863 (completion_difference_style, completion_suffix_style): Remove.
10864 (_initialize_cli_style): Revert.
10865 * cli/cli-style.h (completion_prefix_style)
10866 (completion_difference_style, completion_suffix_style): Don't
10867 declare.
10868
e08bd6c5
PA
108692020-05-24 Pedro Alves <palves@redhat.com>
10870
10871 * symtab.c (completion_list_add_name): Return boolean indication
10872 of whether the symbol matched.
10873 (completion_list_add_symbol): Don't try to remove C++ aliases if
10874 the symbol didn't match in the first place.
10875 * symtab.h (completion_list_add_name): Return bool.
10876
ceacbf6e
SM
108772020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10878
10879 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10880 type::field.
10881
26f16254
JB
108822020-05-23 Joel Brobecker <brobecker@adacore.com>
10883
10884 GDB 9.2 released.
10885
eca1f90c
TT
108862020-05-23 Tom Tromey <tom@tromey.com>
10887
10888 * NEWS: Add entry for completion styling.
10889 * completer.c (_rl_completion_prefix_display_length): Move
10890 declaration earlier.
10891 (gdb_fnprint): Use completion_style.
10892 (gdb_display_match_list_1): Likewise.
10893 * cli/cli-style.c (completion_prefix_style)
10894 (completion_difference_style, completion_suffix_style): New
10895 globals.
10896 (_initialize_cli_style): Register new globals.
10897 * cli/cli-style.h (completion_prefix_style)
10898 (completion_difference_style, completion_suffix_style): Declare.
10899
51e2cfa2
PA
109002020-05-23 Pedro Alves <palves@redhat.com>
10901
10902 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10903 (parse_escape): Use ISDIGIT instead of isdigit.
10904 (puts_debug): Use gdb_isprint instead of isprint.
10905 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
10906 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
10907 ISSPACE instead of isspace.
10908 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
10909 instead of isspace.
10910 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
10911 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10912 instead of isxdigit and ISDIGIT instead of isdigit.
10913
80fc5e77
SM
109142020-05-22 Simon Marchi <simon.marchi@efficios.com>
10915
10916 * gdbtypes.h (struct type) <field>: New method.
10917 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10918 or type::field.
10919
3cabb6b0
SM
109202020-05-22 Simon Marchi <simon.marchi@efficios.com>
10921
10922 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10923 (TYPE_FIELDS): Use type::fields. Change all call sites that
10924 modify the propery to use type::set_fields instead.
10925
1f704f76
SM
109262020-05-22 Simon Marchi <simon.marchi@efficios.com>
10927
10928 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10929 type::num_fields instead.
10930
5e33d5f4
SM
109312020-05-22 Simon Marchi <simon.marchi@efficios.com>
10932
10933 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10934 methods.
10935 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10936 that modify the number of fields to use type::set_num_fields
10937 instead.
10938
9392ebb3
TT
109392020-05-22 Tom Tromey <tromey@adacore.com>
10940
10941 * compile/compile-object-load.h (munmap_list_free): Don't
10942 declare.
10943
7c13f4e8
AB
109442020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10945
10946 * annotate.c (annotate_source_line): Update return type, add call
10947 to update current symtab and line.
10948 * annotate.h (annotate_source_line): Update return type, and
10949 extend header comment.
10950 * source.c (info_line_command): Check annotation_level before
10951 calling annotate_source_line.
10952 * stack.c (print_frame_info): If calling annotate_source_line
10953 returns true, then don't print any other source line information.
10954
aa370940
SM
109552020-05-21 Simon Marchi <simon.marchi@efficios.com>
10956
10957 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10958
84d53fa9
SM
109592020-05-21 Simon Marchi <simon.marchi@efficios.com>
10960
10961 * coffread.c (patch_type): Remove NULL check before xfree.
10962 * corefile.c (set_gnutarget): Likewise.
10963 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10964 * exec.c (build_section_table): Likewise.
10965 * remote.c (remote_target::pass_signals): Likewise.
10966 * utils.c (n_spaces): Likewise.
10967 * cli/cli-script.c (document_command): Likewise.
10968 * i386-windows-tdep.c (core_process_module_section): Likewise.
10969 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10970
9d428aae
SM
109712020-05-20 Simon Marchi <simon.marchi@efficios.com>
10972
10973 * symfile.c (reread_symbols): Clear objfile's section_offsets
10974 vector and section indices, re-compute them by calling
10975 sym_offsets.
10976
250106a7
TT
109772020-05-20 Tom Tromey <tromey@adacore.com>
10978
10979 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10980 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10981
9a0bacfb
TV
109822020-05-20 Tom de Vries <tdevries@suse.de>
10983
10984 PR symtab/25833
10985 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10986
7b958a48
AM
109872020-05-20 Alan Modra <amodra@gmail.com>
10988
10989 PR 25993
10990 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10991 bfd_set_filename.
10992 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10993 passed to bfd_set_filename.
10994 * symfile-mem.c (add_vsyscall_page): Likewise for string
10995 passed to symbol_file_add_from_memory.
10996 (symbol_file_add_from_memory): Make name param a const char* and
10997 don't strdup.
10998
c7e97679
AM
109992020-05-20 Alan Modra <amodra@gmail.com>
11000
11001 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
11002 rather than accessing bfd->filename directly.
11003 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
11004 and use bfd_section_name.
11005 * dwarf2/frame.c (decode_frame_entry): Likewise.
11006 * exec.c (exec_set_section_address): Likewise.
11007 * solib-aix.c (solib_aix_bfd_open): Likewise.
11008 * stap-probe.c (get_stap_base_address): Likewise.
11009 * symfile.c (reread_symbols): Likewise.
11010
563c591b
TT
110112020-05-19 Tom Tromey <tromey@adacore.com>
11012
11013 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
11014
f408d82c
SM
110152020-05-19 Simon Marchi <simon.marchi@efficios.com>
11016
11017 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
11018
98c59b52
PA
110192020-05-19 Pedro Alves <palves@redhat.com>
11020
11021 * NEWS (set exec-file-mismatch): Adjust entry.
11022 * exec.c: Include "build-id.h".
11023 (validate_exec_file): Try to match build IDs instead of filenames.
11024 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
11025 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
11026 and pass down 'warn_if_slow'.
11027 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
11028 gdb_bfd_open_closure to pass it down.
11029 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
11030
4111f652
PA
110312020-05-19 Pedro Alves <palves@redhat.com>
11032
11033 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
11034 * target.c (target_fileio_open_1): Rename to target_fileio_open
11035 and make extern. Use bool.
11036 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11037 (target_fileio_read_alloc_1): Adjust.
11038 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11039 (target_fileio_open_warn_if_slow): Delete declaration.
11040
ad80db5b
PA
110412020-05-19 Pedro Alves <palves@redhat.com>
11042
11043 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11044 Adjust all callers.
11045
1d6ce4d3
YS
110462020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11047
11048 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11049 whether disp is negative.
11050
9005fbbb
SM
110512020-05-19 Simon Marchi <simon.marchi@efficios.com>
11052
11053 * symfile.h (struct symfile_segment_data)
11054 <~symfile_segment_data>: Remove.
11055 <segment_info>: Change to std::vector.
11056 * symfile.c (default_symfile_segments): Update.
11057 * elfread.c (elf_symfile_segments): Update.
11058
68b888ff
SM
110592020-05-19 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11062 <segments>: New.
11063 <segment_bases, segment_sizes>: Remove.
11064 * symfile.c (default_symfile_segments): Update.
11065 * elfread.c (elf_symfile_segments): Update.
11066 * remote.c (remote_target::get_offsets): Update.
11067 * solib-target.c (solib_target_relocate_section_addresses):
11068 Update.
11069
62982abd
SM
110702020-05-19 Simon Marchi <simon.marchi@efficios.com>
11071
11072 * symfile.h (struct symfile_segment_data): Initialize fields.
11073 <~symfile_segment_data>: Add.
11074 (symfile_segment_data_up): New.
11075 (struct sym_fns) <sym_segments>: Return a
11076 symfile_segment_data_up.
11077 (default_symfile_segments): Return a symfile_segment_data_up.
11078 (free_symfile_segment_data): Remove.
11079 (get_symfile_segment_data): Return a symfile_segment_data_up.
11080 * symfile.c (default_symfile_segments): Likewise.
11081 (get_symfile_segment_data): Likewise.
11082 (free_symfile_segment_data): Remove.
11083 (symfile_find_segment_sections): Update.
11084 * elfread.c (elf_symfile_segments): Return a
11085 symfile_segment_data_up.
11086 * remote.c (remote_target::get_offsets): Update.
11087 * solib-target.c (solib_target_relocate_section_addresses):
11088 Update.
11089 * symfile-debug.c (debug_sym_segments): Return a
11090 symfile_segment_data_up.
11091
7f204339
RO
110922020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11093
e52a0f1b
RO
11094 PR build/25981
11095 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11096 Hardcode register numbers.
11097
7f204339
RO
11098 PR build/25981
11099 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11100 procfs_find_LDT_entry): Remove.
11101 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11102 procfs_find_LDT_entry): Remove.
11103 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11104 Remove.
11105
7f32a4d5
PA
111062020-05-17 Pedro Alves <palves@redhat.com>
11107 Andrew Burgess <andrew.burgess@embecosm.com>
11108 Keno Fischer <keno@juliacomputing.com>
11109
11110 PR gdb/25741
11111 * breakpoint.c (build_target_condition_list): Update comments.
11112 (build_target_command_list): Update comments and skip matching
11113 locations.
11114 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11115 a separate function. Simplify "set breakpoint auto-hw off"
11116 handling.
11117 (insert_breakpoints): Update comment.
11118 (tracepoint_locations_match): New parameter. For breakpoints,
11119 compare location types too, if the caller wants to.
11120 (handle_automatic_hardware_breakpoints): New functions.
11121 (bp_location_is_less_than): Also sort by location type and
11122 hardware breakpoint length.
11123 (update_global_location_list): Handle "set breakpoint auto-hw on"
11124 here.
11125 (update_breakpoint_locations): Ask breakpoint_locations_match to
11126 ignore location types.
11127
7d93a1e0
SM
111282020-05-16 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11131 type::name instead.
11132
d0e39ea2
SM
111332020-05-16 Simon Marchi <simon.marchi@efficios.com>
11134
11135 * gdbtypes.h (struct type) <name, set_name>: New methods.
11136 (TYPE_CODE): Use type::name. Change all call sites used to set
11137 the name to use type::set_name instead.
11138
2dab0c7b
TT
111392020-05-16 Tom Tromey <tom@tromey.com>
11140
11141 * top.c (quit_force): Update.
11142 * infrun.c (handle_no_resumed): Update.
11143 * top.h (all_uis): New function.
11144 (ALL_UIS): Remove.
11145
59f7bd8d
SM
111462020-05-16 Simon Marchi <simon.marchi@efficios.com>
11147
11148 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11149
9bf058f0
PA
111502020-05-16 Pedro Alves <palves@redhat.com>
11151
11152 * ia64-linux-nat.c
11153 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11154 Declare method.
11155 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11156
8f86ae1a
SM
111572020-05-15 Simon Marchi <simon.marchi@efficios.com>
11158
11159 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11160 (sparc64_adi_info): Likewise.
11161
d6bc0792
TT
111622020-05-15 Tom Tromey <tom@tromey.com>
11163
11164 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11165 block_objfile.
11166 (lookup_objfile_from_block): Remove.
11167 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11168 (lookup_global_symbol): Use block_objfile.
11169 * symtab.h (lookup_objfile_from_block): Don't declare.
11170 * printcmd.c (clear_dangling_display_expressions): Use
11171 block_objfile.
11172 * parse.c (operator_check_standard): Use block_objfile.
11173
8c14c3a3
TT
111742020-05-15 Tom Tromey <tom@tromey.com>
11175
11176 * language.c (language_alloc_type_symbol): Set
11177 SYMBOL_SECTION.
11178 * symtab.c (initialize_objfile_symbol): Remove.
11179 (allocate_symbol): Remove.
11180 (allocate_template_symbol): Remove.
11181 * dwarf2/read.c (fixup_go_packaging): Use "new".
11182 (new_symbol): Use "new".
11183 (read_variable): Don't call initialize_objfile_symbol. Use
11184 "new".
11185 (read_func_scope): Use "new".
11186 * xcoffread.c (process_xcoff_symbol): Don't call
11187 initialize_objfile_symbol.
11188 (SYMBOL_DUP): Remove.
11189 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11190 "new".
11191 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11192 (allocate_template_symbol): Don't declare.
11193 (struct symbol): Add copy constructor. Change defaults.
11194 * jit.c (finalize_symtab): Use "new".
11195 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11196 Use "new".
11197 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11198 (common_block_end): Use "new".
11199 * mdebugread.c (parse_symbol): Use "new".
11200 (new_symbol): Likewise.
11201
5b4a1a8d
PW
112022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11203
11204 * NEWS: Mention changes to help and apropos.
11205
57b4f16e
PW
112062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11207
11208 * command.h (enum command_class): Improve comments, document
11209 that class_alias is for user-defined aliases, give the class
11210 name for each class, remove unused class_xdb.
11211 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11212 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11213 by a precise class.
11214 * infcmd.c (_initialize_infcmd): Likewise.
11215 * reverse.c (_initialize_reverse): Likewise.
11216 * stack.c (_initialize_stack): Likewise.
11217 * symfile.c (_initialize_symfile): Likewise.
11218 * tracepoint.c (_initialize_tracepoint): Likewise.
11219
7c05caf7
PW
112202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11221
11222 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11223 when their aliased command is traversed.
11224 (help_cmd): Add fput_command_names_styled call to
11225 output command name and aliases when command has an alias.
11226
3b3aaacb
PW
112272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11228
11229 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11230 * cli/cli-decode.c (help_cmd_list): Declare as static,
11231 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11232 a command together with the command.
11233 (fput_command_name_styled, fput_command_names_styled): New functions.
11234 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11235 fput_command_name_styled.
11236 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11237 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11238
7aa1b46f
PW
112392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11240
11241 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11242 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11243 * command.h (cmd_show_list): Likewise.
11244 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11245 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11246
89bcba74
PW
112472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11248
11249 * unittests/command-def-selftests.c (traverse_command_structure):
11250 Verify all commands of a list have the same prefix command and
11251 that only the top cmdlist commands have a null prefix.
11252
3f4d92eb
PW
112532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11254
11255 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11256 as prefix, not one of its aliases.
11257 (set_cmd_prefix): Remove.
11258 (do_add_cmd): Centralize the setting of the prefix of a command, when
11259 command is defined after its full chain of prefix commands.
11260 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11261 (add_setshow_cmd_full): Likewise.
11262 (update_prefix_field_of_prefixed_commands): New function.
11263 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11264 update_prefix_field_of_prefixed_commands.
11265 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11266 addresses of remote_set_cmdlist and remote_show_cmdlist given
11267 as argument, not the address of an argument.
11268 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11269 * gdb/remote.c (_initialize_remote): Likewise.
11270
0605465f
PW
112712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11272
11273 * cli/cli-cmds.c (alias_command): Check for an existing alias
11274 using lookup_cmd_composition, as valid_command_p is too strict
11275 and forbids aliases that are the prefix of an existing alias
11276 or command.
11277 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11278 command is properly recognised as a valid command.
11279
58e6ac70
PW
112802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11281
11282 * unittests/help-doc-selftests.c: Rename to
11283 unittests/command-def-selftests.c
11284 * unittests/command-def-selftests.c (help_doc_tests): Update some
11285 comments.
11286 (command_structure_tests, traverse_command_structure): New namespace
11287 and function.
11288 (command_structure_invariants_tests): New function.
11289 (_initialize_command_def_selftests) Renamed from
11290 _initialize_help_doc_selftests, register command_structure_invariants
11291 selftest.
11292
a7b9ceb8
PW
112932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11294
11295 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11296 an alias of 'show'.
11297
b2188a06
JB
112982020-05-15 Joel Brobecker <brobecker@adacore.com>
11299
11300 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11301 ada_is_fixed_point_type. Update all callers.
11302 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11303 all callers.
11304 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11305 Update all callers.
11306 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11307 print_fixed_point_type. Update all callers.
11308 * ada-valprint.c (ada_value_print_num): Replace call to
11309 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11310
a51951c2
KB
113112020-05-14 Kevin Buettner <kevinb@redhat.com>
11312
11313 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11314 processors.
11315 (cpu_supports_bts): Add CV_AMD case.
11316
29d6859f
LM
113172020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11318 Simon Marchi <simon.marchi@efficios.com>
11319
11320 * infrun.c (stop_all_threads): Collect multiple wait events at
11321 each pass.
11322
78134374
SM
113232020-05-14 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11326 type::code instead.
11327
67607e24
SM
113282020-05-14 Simon Marchi <simon.marchi@efficios.com>
11329
11330 * gdbtypes.h (struct type) <code, set_code>: New methods.
11331 (TYPE_CODE): Use type::code. Change all call sites used to set
11332 the code to use type::set_code instead.
11333
a05575d3
TBA
113342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11335 Tom de Vries <tdevries@suse.de>
11336 Pedro Alves <palves@redhat.com>
11337
11338 PR threads/25478
11339 * infrun.c (stop_all_threads): Do NOT ignore
11340 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11341 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11342 received.
11343 (handle_no_resumed): Remove code handling a live inferior with no
11344 threads.
11345 * remote.c (has_single_non_exited_thread): New.
11346 (remote_target::update_thread_list): Do not delete a thread if is
11347 the last thread of the process.
11348 * thread.c (thread_select): Call delete_exited_threads instead of
11349 prune_threads.
11350
6ad82919
TBA
113512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11352
11353 * infrun.c (stop_all_threads): Enable/disable thread events of all
11354 targets. Move a debug message denoting the end of the function
11355 into the SCOPED_EXIT block.
11356
d890404b
TBA
113572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11358
11359 * process-stratum-target.h: Include <set>.
11360 (all_non_exited_process_targets, switch_to_target_no_thread): New
11361 function declarations.
11362 * process-stratum-target.c (all_non_exited_process_targets)
11363 (switch_to_target_no_thread): New function implementations.
11364
293b3ebc
TBA
113652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11366
11367 * infrun.c (handle_inferior_event): Extract out a piece of code
11368 into...
11369 (mark_non_executing_threads): ...this new function.
11370
7ca9b62a
TBA
113712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11372
11373 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11374 use.
11375
fc75c28b
TBA
113762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11377
11378 * regcache.c (regcache_read_pc_protected): New function
11379 implementation that returns 0 if the PC cannot read via
11380 'regcache_read_pc'.
11381 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11382 instead of 'regcache_read_pc'.
11383 (keep_going_pass_signal): Ditto.
11384
a89febbd
TT
113852020-05-13 Tom Tromey <tromey@adacore.com>
11386
11387 * ada-lang.c (align_value): Remove.
11388 (ada_template_to_fixed_record_type_1): Use align_up.
11389
f7e23710
TBA
113902020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11391
11392 * async-event.c: Update the copyright year.
11393 * async-event.h: Update the copyright year.
11394
02ff80c2
SM
113952020-05-12 Simon Marchi <simon.marchi@efficios.com>
11396
11397 * objfiles.h (is_addr_in_objfile,
11398 shared_objfile_contains_address_p): Return bool.
11399 * objfile.c (is_addr_in_objfile,
11400 shared_objfile_contains_address_p): Return bool.
11401
4fd6c7e8
TT
114022020-05-11 Tom Tromey <tromey@adacore.com>
11403
11404 * cli/cli-cmds.c (info_command): Restore.
11405 (_initialize_cli_cmds): Use add_prefix_command for "info".
11406 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11407
5eb68a39
TT
114082020-05-11 Tom Tromey <tromey@adacore.com>
11409
11410 * ada-lang.c (ada_value_primitive_field): Now public.
11411 * ada-lang.h (ada_value_primitive_field): Declare.
11412 * ada-valprint.c (print_field_values): Use
11413 ada_value_primitive_field for wrapper fields.
11414
7666722f
TV
114152020-05-11 Tom de Vries <tdevries@suse.de>
11416
11417 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11418 MODULE_DOMAIN.
11419
3ee6bb11
TV
114202020-05-11 Tom de Vries <tdevries@suse.de>
11421
11422 PR symtab/25941
11423 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11424 with length 0, if not gdb-produced.
11425 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11426
43434996
TV
114272020-05-09 Tom de Vries <tdevries@suse.de>
11428
11429 PR gdb/25955
11430 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11431 calculation.
11432
2f78cffc
TT
114332020-05-09 Tom Tromey <tom@tromey.com>
11434
11435 * top.c (server_command): Now bool.
11436 * top.h (server_command): Now bool.
11437
4f7bc5ed
TT
114382020-05-08 Tom Tromey <tromey@adacore.com>
11439
11440 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11441 already being processed.
11442
8be4b118
TT
114432020-05-08 Tom Tromey <tom@tromey.com>
11444
11445 * printcmd.c (struct display) <next>: Remove.
11446 <display>: New constructor.
11447 <exp_string>: Now a std::string.
11448 <enabled_p>: Now a bool.
11449 (display_number): Move definition earlier.
11450 (displays): Rename from display_chain. Now a std::vector.
11451 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11452 (display_command): Update.
11453 (do_one_display, disable_display)
11454 (enable_disable_display_command, do_enable_disable_display):
11455 Update.
11456 (free_display): Remove.
11457 (clear_displays): Rewrite.
11458 (delete_display): Update.
11459 (map_display_numbers): Use function_view. Remove "data"
11460 parameter. Update.
11461 (do_delete_display): Remove.
11462 (undisplay_command): Update.
11463 (do_one_display, do_displays, disable_display)
11464 (info_display_command): Update.
11465 (do_enable_disable_display): Remove.
11466 (enable_disable_display_command)
11467 (clear_dangling_display_expressions): Update.
11468
94c93c35
TT
114692020-05-08 Tom Tromey <tom@tromey.com>
11470
11471 * symtab.c (set_symbol_cache_size)
11472 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11473 (maintenance_print_symbol_cache_statistics): Update.
11474 * symmisc.c (print_symbol_bcache_statistics)
11475 (print_objfile_statistics, maintenance_print_objfiles)
11476 (maintenance_info_symtabs, maintenance_check_symtabs)
11477 (maintenance_expand_symtabs, maintenance_info_line_tables):
11478 Update.
11479 * symfile-debug.c (set_debug_symfile): Update.
11480 * source.c (forget_cached_source_info): Update.
11481 * python/python.c (gdbpy_progspaces): Update.
11482 * psymtab.c (maintenance_info_psymtabs): Update.
11483 * probe.c (parse_probes): Update.
11484 * linespec.c (iterate_over_all_matching_symtabs)
11485 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11486 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11487 * exec.c (exec_target::close): Update.
11488 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11489 * breakpoint.c (print_one_breakpoint_location)
11490 (create_longjmp_master_breakpoint)
11491 (create_std_terminate_master_breakpoint): Update.
11492 * progspace.c (program_spaces): Now a std::vector.
11493 (maybe_new_address_space): Update.
11494 (add_program_space): Remove.
11495 (program_space::program_space): Update.
11496 (remove_program_space): Update.
11497 (number_of_program_spaces): Remove.
11498 (print_program_space, update_address_spaces): Update.
11499 * progspace.h (program_spaces): Change type.
11500 (ALL_PSPACES): Remove.
11501 (number_of_program_spaces): Don't declare.
11502 (struct program_space) <next>: Remove.
11503
a1fd1ac9
TT
115042020-05-08 Tom Tromey <tom@tromey.com>
11505
11506 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11507 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11508 (enable_break): Update.
11509 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11510 (frv_fdpic_find_canonical_descriptor): Update.
11511 (frv_fetch_objfile_link_map): Update.
11512 * progspace.c (program_space::free_all_objfiles): Update.
11513 (program_space::solibs): New method.
11514 * progspace.h (struct program_space) <solibs>: New method.
11515 * solist.h (master_so_list): Don't declare.
11516 (ALL_SO_LIBS): Remove.
11517 * solib.h (so_list_head): Remove.
11518 (update_solib_list): Update comment.
11519 * solib.c (master_so_list): Remove.
11520 (solib_used, update_solib_list, solib_add)
11521 (info_sharedlibrary_command, clear_solib)
11522 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11523
38eae084
TT
115242020-05-08 Tom Tromey <tom@tromey.com>
11525
11526 * extension.c (extension_languages): Now a std::array.
11527 (ALL_EXTENSION_LANGUAGES): Remove.
11528 (get_ext_lang_defn, get_ext_lang_of_file)
11529 (eval_ext_lang_from_control_command): Update.
11530 (finish_ext_lang_initialization)
11531 (auto_load_ext_lang_scripts_for_objfile)
11532 (ext_lang_type_printers::ext_lang_type_printers)
11533 (apply_ext_lang_type_printers)
11534 (ext_lang_type_printers::~ext_lang_type_printers)
11535 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11536 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11537 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11538 (get_matching_xmethod_workers, ext_lang_colorize)
11539 (ext_lang_before_prompt): Update.
11540 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11541
596dc4ad
TT
115422020-05-08 Tom Tromey <tom@tromey.com>
11543
11544 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11545 overload.
11546 <swap_string, m_string>: Remove.
11547 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11548 Update.
11549 * stabsread.c (define_symbol, read_type): Update.
11550 * linespec.c (find_linespec_symbols): Update.
11551 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11552 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11553 * dbxread.c (read_dbx_symtab): Update.
11554 * cp-support.h (cp_canonicalize_string_full)
11555 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11556 Return unique_xmalloc_ptr.
11557 * cp-support.c (inspect_type): Update.
11558 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11559 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11560 Likewise.
11561 * c-typeprint.c (print_name_maybe_canonical): Update.
11562 * break-catch-throw.c (check_status_exception_catchpoint):
11563 Update.
11564
bf4cb9be
TV
115652020-05-08 Tom de Vries <tdevries@suse.de>
11566
11567 * infrun.c (follow_fork): Copy current_line and current_symtab to
11568 child thread.
11569
a1b68f28
SM
115702020-05-07 Simon Marchi <simon.marchi@efficios.com>
11571
11572 * async-event.c (struct async_signal_handler, struct
11573 async_event_handler): Reformat, remove typedef.
11574
98d48915
SM
115752020-05-07 Simon Marchi <simon.marchi@efficios.com>
11576
11577 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11578 access thistype->main_type->dyn_prop_list directly.
11579
7aa91313
SM
115802020-05-07 Simon Marchi <simon.marchi@efficios.com>
11581
11582 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11583 (remove_dyn_prop): Remove. Update all users to use
11584 type::remove_dyn_prop.
11585 * gdbtypes.c (remove_dyn_prop): Rename to...
11586 (type::remove_dyn_prop): ... this.
11587
5c54719c
SM
115882020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11589
11590 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11591 (add_dyn_prop): Remove. Update all users to use
11592 type::add_dyn_prop.
11593 * gdbtypes.c (add_dyn_prop): Rename to...
11594 (type::add_dyn_prop): ... this.
11595
24e99c6c
SM
115962020-05-07 Simon Marchi <simon.marchi@efficios.com>
11597
11598 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11599 (get_dyn_prop): Remove. Update all users to use
11600 type::dyn_prop.
11601 * gdbtypes.c (get_dyn_prop): Rename to...
11602 (type::dyn_prop): ... this.
11603
0d4bf016
SM
116042020-05-06 Simon Marchi <simon.marchi@efficios.com>
11605
11606 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11607
ac4a4f1c
SM
116082020-05-06 Simon Marchi <simon.marchi@efficios.com>
11609
11610 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11611 instruction, skip it if it's there.
11612
a3bbacc1
SM
116132020-05-05 Simon Marchi <simon.marchi@efficios.com>
11614
11615 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11616
c3236f84
SM
116172020-05-04 Simon Marchi <simon.marchi@efficios.com>
11618
11619 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11620 * gdbtypes.c (recursive_dump_type): Remove use of
11621 TYPE_INCOMPLETE.
11622
3b6acaee
TT
116232020-05-03 Tom Tromey <tom@tromey.com>
11624
11625 * breakpoint.c (catch_command, tcatch_command): Remove.
11626 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11627 add_show_prefix_cmd.
11628 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11629 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11630 Remove.
11631 (add_internal_problem_command): Use add_basic_prefix_cmd,
11632 add_show_prefix_cmd.
11633 * mips-tdep.c (set_mipsfpu_command): Remove.
11634 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11635 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11636 (_initialize_index_cache): Use add_basic_prefix_cmd.
11637 * memattr.c (dummy_cmd): Remove.
11638 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11639 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11640 (_initialize_tui_win): Use add_basic_prefix_cmd,
11641 add_show_prefix_cmd.
11642 * cli/cli-logging.c (set_logging_command): Remove.
11643 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11644 add_show_prefix_cmd.
11645 (show_logging_command): Remove.
11646 * target.c (target_command): Remove.
11647 (add_target): Use add_basic_prefix_cmd.
11648
a51119cd
HD
116492020-05-02 Hannes Domani <ssbssa@yahoo.de>
11650
11651 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11652
652fc23a 116532020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11654
652fc23a
PW
11655 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11656 info_command.
11657
117539e6
KR
116582020-04-30 Kamil Rytarowski <n54@gmx.com>
11659
11660 * nbsd-nat.c (nbsd_enable_proc_events)
11661 (nbsd_nat_target::post_startup_inferior): Add.
11662 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11663 (nbsd_nat_target::update_thread_list): Rewrite.
11664 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11665 "PTRACE_LWP_CREATE".
11666 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11667
102e38eb 116682020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11669
102e38eb
PW
11670 * stack.c (_initialize_stack): Remove duplicated creation
11671 of "frame" command and "f" alias.
11672
ee9d1e5f
HD
116732020-04-30 Hannes Domani <ssbssa@yahoo.de>
11674
11675 PR gdb/18706
11676 * gdbtypes.c (check_typedef): Calculate size of array of
11677 stubbed type.
11678
627c7fb8
HD
116792020-04-30 Hannes Domani <ssbssa@yahoo.de>
11680
11681 PR gdb/15559
11682 * i386-tdep.c (i386_push_dummy_call): Call
11683 i386_thiscall_push_dummy_call.
11684 (i386_thiscall_push_dummy_call): New function.
11685 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11686 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11687 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11688
ffc2844e
SM
116892020-04-29 Simon Marchi <simon.marchi@efficios.com>
11690
11691 * gdbarch.sh (do_read): Add shellcheck disable directive for
11692 warning SC2162.
11693
1207375d
SM
116942020-04-29 Simon Marchi <simon.marchi@efficios.com>
11695
11696 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11697 "referenced but not assigned" warning.
11698
9fdb2916
SM
116992020-04-29 Simon Marchi <simon.marchi@efficios.com>
11700
11701 * gdbarch.sh: Remove code that sets fallbackdefault.
11702
759cea5e
SM
117032020-04-29 Simon Marchi <simon.marchi@efficios.com>
11704
11705 * gdbarch.sh: Use shell operators && and || instead of
11706 -a and -o.
11707
cb02ab24
SM
117082020-04-29 Simon Marchi <simon.marchi@efficios.com>
11709
11710 * gdbarch.sh: Use $(...) instead of `...`.
11711
a6fc5ffc
SM
117122020-04-29 Simon Marchi <simon.marchi@efficios.com>
11713
11714 * gdbarch.sh: Use double quotes around variables.
11715
8d113d13
SM
117162020-04-29 Simon Marchi <simon.marchi@efficios.com>
11717
11718 * gdbarch.sh: Use %s with printf, instead of variables in the
11719 format string.
11720
ed6acedd
TT
117212020-04-29 Tom Tromey <tromey@adacore.com>
11722
11723 PR ada/25875:
11724 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11725 type fields here.
11726 (read_enumeration_type): Call
11727 update_enumeration_type_from_children later. Update comments.
11728 (process_enumeration_scope): Don't create type fields.
11729
b68b1b58
KR
117302020-04-29 Kamil Rytarowski <n54@gmx.com>
11731
11732 * nbsd-tdep.c: Include "xml-syscall.h".
11733 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11734
f94b2e03
KR
117352020-04-29 Kamil Rytarowski <n54@gmx.com>
11736
11737 * nbsd-nat.c: Include "sys/wait.h".
11738 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11739 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11740 (nbsd_nat_target::remove_exec_catchpoint)
11741 (nbsd_nat_target::set_syscall_catchpoint): Add.
11742 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11743 (nbsd_nat_target::insert_exec_catchpoint)
11744 (nbsd_nat_target::remove_exec_catchpoint)
11745 (nbsd_nat_target::set_syscall_catchpoint): Add.
11746 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11747 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11748 `nbsd_get_syscall_number'.
11749
fc49bc72
TT
117502020-04-29 Tom Tromey <tom@tromey.com>
11751
11752 * stack.c (print_block_frame_labels): Remove.
11753
d642b692
HD
117542020-04-29 Hannes Domani <ssbssa@yahoo.de>
11755
11756 PR gdb/17320
11757 * ada-valprint.c (val_print_packed_array_elements): Move array
11758 end bracket to new line.
11759 (ada_val_print_string): Remove extra spaces before first array
11760 element.
11761 * c-valprint.c (c_value_print_array): Likewise.
11762 * m2-valprint.c (m2_print_array_contents): Likewise.
11763 (m2_value_print_inner): Likewise.
11764 * p-valprint.c (pascal_value_print_inner): Likewise.
11765 * valprint.c (generic_val_print_array): Likewise.
11766 (value_print_array_elements): Move first array element and array
11767 end bracket to new line.
11768
ea90f227
TV
117692020-04-29 Tom de Vries <tdevries@suse.de>
11770
11771 PR symtab/25889
11772 * linespec.c (find_method): Fix ix calculation.
11773
4498ef4f
KR
117742020-04-28 Kamil Rytarowski <n54@gmx.com>
11775
11776 * syscalls/update-netbsd.sh: New file.
11777 * syscalls/netbsd.xml: Regenerate.
11778 * data-directory/Makefile.in: Register `netbsd.xml' in
11779 `SYSCALLS_FILES'.
11780
a55e30b5
SM
117812020-04-28 Simon Marchi <simon.marchi@efficios.com>
11782
11783 * syscalls/update-freebsd.sh: Add double quotes.
11784
2b2fbab8
TT
117852020-04-28 Tom Tromey <tom@tromey.com>
11786
11787 * NEWS: Update.
11788 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11789 (cmdpy_init): Allow class_tui.
11790
a65189c9
TV
117912020-04-28 Mark Williams <mark@myosotissp.com>
11792
11793 PR gdb/24480
11794 * dwarf2read.c: Add missing assingments to list_in_scope when
11795 start_symtab was already called.
11796
1b95cdb7
SM
117972020-04-28 Simon Marchi <simon.marchi@efficios.com>
11798
11799 PR gdb/25881
11800 * dwarf2/read.c (offset_map_type): Use
11801 gdb:hash_enum<sect_offset> as hash function.
11802
15cd93d0
TV
118032020-04-28 Tom de Vries <tdevries@suse.de>
11804
11805 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11806 with DW_AT_signature.
11807
1eb39914
SM
118082020-04-27 Simon Marchi <simon.marchi@efficios.com>
11809
11810 * configure.ac: Remove check for fs_base/gs_base in
11811 user_regs_struct.
11812 * configure: Re-generate.
11813 * config.in: Re-generate.
11814 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11815 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11816 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11817
991a3e2e
LM
118182020-04-27 Luis Machado <luis.machado@linaro.org>
11819
11820 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11821 problematic inline frame unwinding situation.
11822 * frame.c (frame_id_computed_p): New function.
11823 * frame.h (frame_id_computed_p): New prototype.
11824
361ba0e8
TT
118252020-04-26 Tom Tromey <tom@tromey.com>
11826
11827 * command.h (enum command_class) <class_pseudo>: Remove.
11828
bc3609fd
PW
118292020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11830
11831 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11832 and whitespace.
11833
b9771db7
KR
118342020-04-25 Kamil Rytarowski <n54@gmx.com>
11835
ec16513e
SM
11836 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11837 `PT_GET_PROCESS_STATE' block.
b9771db7 11838
7151c1af
TT
118392020-04-24 Tom Tromey <tom@tromey.com>
11840
11841 * symtab.h (symbol_get_demangled_name): Don't declare.
11842 * symtab.c (symbol_get_demangled_name): Remove.
11843 (general_symbol_info::natural_name)
11844 (general_symbol_info::demangled_name): Update.
11845
906bb4c5
TT
118462020-04-24 Tom Tromey <tom@tromey.com>
11847
11848 PR rust/25025:
11849 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11850
bcfe6157
TT
118512020-04-24 Tom Tromey <tom@tromey.com>
11852
11853 PR symtab/12707:
11854 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11855 exists.
11856 (new_symbol): Likewise.
11857 * compile/compile-object-load.c (get_out_value_type): Use
11858 symbol_matches_search_name.
11859
f049a313
TT
118602020-04-24 Tom Tromey <tom@tromey.com>
11861
11862 * dwarf2/read.c (add_partial_symbol): Do not call
11863 compute_and_set_names.
11864
76e288d1
TT
118652020-04-24 Tom Tromey <tom@tromey.com>
11866
11867 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11868 overload.
11869
2467f4f6
TT
118702020-04-24 Tom Tromey <tom@tromey.com>
11871
11872 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11873 (add_psymbol_to_list): New overload. Make old overload call new
11874 one.
11875 * psympriv.h (add_psymbol_to_list): New overload.
11876
e61108c9
TT
118772020-04-24 Tom Tromey <tom@tromey.com>
11878
11879 * dwarf2/read.c (partial_die_info::read) <case
11880 DW_AT_linkage_name>: Use value_as_string.
11881 (dwarf2_string_attr): Use value_as_string.
11882 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11883 method.
11884 * dwarf2/attribute.c (attribute::value_as_string): New method.
11885
8c87a452
TT
118862020-04-24 Tom Tromey <tom@tromey.com>
11887
11888 * symtab.c (general_symbol_info::natural_name)
11889 (general_symbol_info::demangled_name): Check for language_rust.
11890
787de330
TT
118912020-04-24 Tom Tromey <tom@tromey.com>
11892
11893 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11894 (dwarf2_physname): ... from here.
11895 (partial_die_info::read): Add Rust "{" hack.
11896
ff985671
TT
118972020-04-24 Tom Tromey <tom@tromey.com>
11898
11899 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11900 method.
11901 (symbol_set_demangled_name): Don't declare.
11902 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11903 symbol_set_demangled_name.
11904 (general_symbol_info::set_language)
11905 (general_symbol_info::compute_and_set_names): Update.
11906 * minsyms.c (minimal_symbol_reader::install): Update.
11907 * dwarf2/read.c (new_symbol): Update.
11908
1acda803
TT
119092020-04-24 Tom Tromey <tromey@adacore.com>
11910
11911 PR python/23662:
11912 * python/py-type.c (convert_field): Handle
11913 FIELD_LOC_KIND_DWARF_BLOCK.
11914 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11915 (typy_get_dynamic): Nw function.
11916 (type_object_getset): Add "dynamic".
11917 * NEWS: Add entry.
11918
d656f129
TT
119192020-04-24 Tom Tromey <tromey@adacore.com>
11920
11921 * ada-typeprint.c (print_choices, print_variant_part)
11922 (print_record_field_types_dynamic): New functions.
11923 (print_record_field_types): Use print_record_field_types_dynamic.
11924
7d79de9a
TT
119252020-04-24 Tom Tromey <tromey@adacore.com>
11926
11927 * dwarf2/read.c (handle_data_member_location): New overload.
11928 (dwarf2_add_field): Use it.
11929 (decode_locdesc): Add "computed" parameter. Update comment.
11930 * gdbtypes.c (is_dynamic_type_internal): Also look for
11931 FIELD_LOC_KIND_DWARF_BLOCK.
11932 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11933 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11934 virtual base classes.
11935 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11936 FIELD_LOC_KIND_DWARF_BLOCK.
11937
f8e89861
TT
119382020-04-24 Tom Tromey <tromey@adacore.com>
11939
11940 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11941 * gdbtypes.c (is_dynamic_type_internal): Check
11942 TYPE_HAS_DYNAMIC_LENGTH.
11943 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11944 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11945 New macros.
11946 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11947 constant.
11948
9c6a1327
TT
119492020-04-24 Tom Tromey <tromey@adacore.com>
11950
11951 * dwarf2/read.c (struct variant_field): Rewrite.
11952 (struct variant_part_builder): New.
11953 (struct nextfield): Remove "variant" field. Add "offset".
11954 (struct field_info): Add "current_variant_part" and
11955 "variant_parts".
11956 (alloc_discriminant_info): Remove.
11957 (alloc_rust_variant): New function.
11958 (quirk_rust_enum): Update.
11959 (dwarf2_add_field): Set "offset" member. Don't handle
11960 DW_TAG_variant_part.
11961 (offset_map_type): New typedef.
11962 (convert_variant_range, create_one_variant)
11963 (create_one_variant_part, create_variant_parts)
11964 (add_variant_property): New functions.
11965 (dwarf2_attach_fields_to_type): Call add_variant_property.
11966 (read_structure_type): Don't handle DW_TAG_variant_part.
11967 (handle_variant_part, handle_variant): New functions.
11968 (handle_struct_member_die): Use them.
11969 (process_structure_scope): Don't handle variant parts.
11970 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11971 (struct discriminant_info): Remove.
11972 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11973 (struct main_type) <flag_discriminated_union>: Remove.
11974 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11975 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11976 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11977 Update.
11978 * valops.c (value_union_variant): Remove.
11979 * value.h (value_union_variant): Don't declare.
11980
b249d2c2
TT
119812020-04-24 Tom Tromey <tromey@adacore.com>
11982
11983 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11984 (ada_value_primitive_packed_val): Update.
11985 * ada-valprint.c (ada_value_print_1): Update.
11986 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11987 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11988 just an address. Use evaluate_for_locexpr_baton.
11989 (dwarf2_evaluate_property): Update.
11990 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11991 array_view.
11992 * findvar.c (default_read_var_value): Update.
11993 * gdbtypes.c (compute_variant_fields_inner)
11994 (resolve_dynamic_type_internal): Update.
11995 (resolve_dynamic_type): Change type of valaddr parameter.
11996 * gdbtypes.h (resolve_dynamic_type): Update.
11997 * valarith.c (value_subscripted_rvalue): Update.
11998 * value.c (value_from_contents_and_address): Update.
11999
61122aa9
TT
120002020-04-24 Tom Tromey <tromey@adacore.com>
12001
12002 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
12003 "push_initial_value" parameter.
12004 (dwarf2_evaluate_property): Likewise.
12005 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
12006
ef83a141
TT
120072020-04-24 Tom Tromey <tromey@adacore.com>
12008
12009 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
12010 (variant::matches, compute_variant_fields_recurse)
12011 (compute_variant_fields_inner, compute_variant_fields): New
12012 functions.
12013 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
12014 Use resolved_type after type is made.
12015 (operator==): Add new cases.
12016 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
12017 (struct discriminant_range, struct variant, struct variant_part):
12018 New.
12019 (union dynamic_prop_data) <variant_parts, original_type>: New
12020 members.
12021 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
12022 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
12023 constants.
12024 * value.c (unpack_bits_as_long): Now public.
12025 * value.h (unpack_bits_as_long): Declare.
12026
675127ec
TT
120272020-04-24 Tom Tromey <tromey@adacore.com>
12028
12029 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
12030 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
12031
9852ceef
HD
120322020-04-24 Hannes Domani <ssbssa@yahoo.de>
12033
12034 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
12035
7632c6ce
KR
120362020-04-24 Kamil Rytarowski <n54@gmx.com>
12037
12038 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12039 (remove_fork_catchpoint, post_startup_inferior)
12040 (post_attach): Move...
12041 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12042 (remove_fork_catchpoint, post_startup_inferior)
12043 (post_attach): ...here.
12044 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12045 (remove_fork_catchpoint, post_startup_inferior)
12046 (post_attach): Move...
12047 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12048 (remove_fork_catchpoint, post_startup_inferior)
12049 (post_attach): ...here.
12050
7be2bb4f
TT
120512020-04-24 Tom Tromey <tromey@adacore.com>
12052
12053 * nat/windows-nat.h (struct windows_thread_info)
12054 <pc_adjusted>: New member.
12055 * windows-nat.c (windows_fetch_one_register): Check
12056 pc_adjusted.
12057 (windows_nat_target::get_windows_debug_event)
12058 (windows_nat_target::wait): Set pc_adjusted.
12059
f80cb3b4
TV
120602020-04-24 Tom de Vries <tdevries@suse.de>
12061
12062 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12063 Run gdb-add-index inside temp dir.
12064
29514b87
TT
120652020-04-23 Tom Tromey <tromey@adacore.com>
12066
12067 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12068 in loop.
12069
5939967b
LM
120702020-04-23 Luis Machado <luis.machado@linaro.org>
12071
12072 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12073 get_frame_register instead of gdbarch_unwind_pc.
12074
70bc38f5
TV
120752020-04-23 Tom de Vries <tdevries@suse.de>
12076
12077 * symtab.c (lookup_global_symbol): Prefer def over decl.
12078
de82891c
TV
120792020-04-23 Tom de Vries <tdevries@suse.de>
12080
12081 PR symtab/25807
12082 * block.c (best_symbol, better_symbol): Promote to external.
12083 * block.h (best_symbol, better_symbol): Declare.
12084 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12085 decl.
12086
ecc6c606
TT
120872020-04-23 Tom Tromey <tromey@adacore.com>
12088
12089 PR ada/25837:
12090 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12091 "const char *", not a "const std::string &".
12092 <name_and_matcher::operator==>: Update.
12093 * unittests/lookup_name_info-selftests.c: Change type of
12094 "result".
12095
740480b8
TT
120962020-04-23 Tom Tromey <tom@tromey.com>
12097
12098 * inferior.h (iterate_over_inferiors): Don't declare.
12099 * inferior.c (iterate_over_inferiors): Remove.
12100 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12101 Remove.
12102 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12103 use iterate_over_inferiors.
12104 (darwin_resume_inferior_it)
12105 (struct resume_inferior_threads_param)
12106 (darwin_resume_inferior_threads_it): Remove.
12107 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12108
ae3ab1f0
TV
121092020-04-23 Tom de Vries <tdevries@suse.de>
12110
12111 * blockframe.c (find_pc_partial_function): Use
12112 find_pc_sect_compunit_symtab rather than
12113 objfile->sf->qf->find_pc_sect_compunit_symtab.
12114
317d2668
TV
121152020-04-22 Tom de Vries <tdevries@suse.de>
12116
12117 PR symtab/25764
12118 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12119 in psymtabs.
12120
eea9e357
TV
121212020-04-22 Tom de Vries <tdevries@suse.de>
12122
12123 PR symtab/25801
12124 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12125 symtabs.
12126
3d5afab3
TV
121272020-04-22 Tom de Vries <tdevries@suse.de>
12128
12129 PR symtab/25700
12130 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12131 CU if already created.
12132
d43b7a2d
TBA
121332020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12134
12135 * infrun.c (displaced_step_fixup): Switch to the event_thread
12136 before calling displaced_step_restore, not after.
12137
d89edf9b
MM
121382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12139
12140 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12141 its inferior is not recorded by us.
12142 (record_btrace_target_open): Replace call to
12143 all_non_exited_threads () with call to current_inferior
12144 ()->non_exited_threads ().
12145 (record_btrace_target::stop_recording): Likewise.
12146 (record_btrace_target::close): Likewise.
12147 (record_btrace_target::wait): Likewise.
12148 (record_btrace_target::record_stop_replaying): Likewise.
12149
5897fd49
MM
121502020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12151
12152 * btrace.c (btrace_enable): Throw an error on double enables and
12153 when enabling recording fails.
12154 (btrace_disable): Throw an error if the thread is not recorded.
12155
1a476b6d
MM
121562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12157
12158 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12159 request if we do not have a thread_info.
12160
4778a5f8
TV
121612020-04-21 Tom de Vries <tdevries@suse.de>
12162
12163 PR gdb/25471
12164 * thread.c
12165 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12166 exception in get_frame_id.
12167
0fa7617d
TT
121682020-04-20 Tom Tromey <tromey@adacore.com>
12169
12170 * python/python.c (struct gdbpy_event): Mark move constructor as
12171 noexcept.
12172 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12173 constructor as noexcept.
12174 * completer.h (struct completion_result): Mark move constructor as
12175 noexcept.
12176 * completer.c (completion_result::completion_result): Use
12177 initialization style. Don't call reset_match_list.
12178
ad23bda0
MS
121792020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12180
12181 * MAINTAINERS (Write After Approval): Add myself.
12182
45e1f031
TT
121832020-04-18 Tom Tromey <tom@tromey.com>
12184
12185 * windows-tdep.c (init_w32_command_list)
12186 (w32_prefix_command_valid): Restore.
12187 (_initialize_windows_tdep): Call init_w32_command_list.
12188
08feed99
TT
121892020-04-18 Tom Tromey <tom@tromey.com>
12190
12191 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12192 * value.c (value_fn_field): Update.
12193 * valops.c (find_function_in_inferior)
12194 (value_allocate_space_in_inferior): Update.
12195 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12196 Update.
12197 * tui/tui-source.c (tui_source_window::set_contents): Update.
12198 * symtab.c (lookup_global_or_static_symbol)
12199 (find_function_start_sal_1, skip_prologue_sal)
12200 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12201 * symmisc.c (dump_msymbols, dump_symtab_1)
12202 (maintenance_print_one_line_table): Update.
12203 * symfile.c (init_entry_point_info, section_is_mapped)
12204 (list_overlays_command, simple_read_overlay_table)
12205 (simple_overlay_update_1): Update.
12206 * stap-probe.c (handle_stap_probe): Update.
12207 * stabsread.c (dbx_init_float_type, define_symbol)
12208 (read_one_struct_field, read_enum_type, read_range_type): Update.
12209 * source.c (info_line_command): Update.
12210 * python/python.c (gdbpy_source_objfile_script)
12211 (gdbpy_execute_objfile_script): Update.
12212 * python/py-type.c (save_objfile_types): Update.
12213 * python/py-objfile.c (py_free_objfile): Update.
12214 * python/py-inferior.c (python_new_objfile): Update.
12215 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12216 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12217 (maintenance_check_psymtabs): Update.
12218 * printcmd.c (info_address_command): Update.
12219 * objfiles.h (struct objfile) <arch>: New method, from
12220 get_objfile_arch.
12221 (get_objfile_arch): Don't declare.
12222 * objfiles.c (get_objfile_arch): Remove.
12223 (filter_overlapping_sections): Update.
12224 * minsyms.c (msymbol_is_function): Update.
12225 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12226 (output_nondebug_symbol): Update.
12227 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12228 (mdebug_expand_psymtab): Update.
12229 * machoread.c (macho_add_oso_symfile): Update.
12230 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12231 Update.
12232 * linux-fork.c (checkpoint_command): Update.
12233 * linespec.c (convert_linespec_to_sals): Update.
12234 * jit.c (finalize_symtab): Update.
12235 * infrun.c (insert_exception_resume_from_probe): Update.
12236 * ia64-tdep.c (ia64_find_unwind_table): Update.
12237 * hppa-tdep.c (internalize_unwinds): Update.
12238 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12239 Update.
12240 * gcore.c (call_target_sbrk): Update.
12241 * elfread.c (record_minimal_symbol, elf_symtab_read)
12242 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12243 (elf_gnu_ifunc_resolve_by_got): Update.
12244 * dwarf2/read.c (create_addrmap_from_index)
12245 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12246 (read_debug_names_from_section)
12247 (process_psymtab_comp_unit_reader, add_partial_symbol)
12248 (add_partial_subprogram, process_full_comp_unit)
12249 (read_file_scope, read_func_scope, read_lexical_block_scope)
12250 (read_call_site_scope, dwarf2_ranges_read)
12251 (dwarf2_record_block_ranges, dwarf2_add_field)
12252 (mark_common_block_symbol_computed, read_tag_pointer_type)
12253 (read_tag_string_type, dwarf2_init_float_type)
12254 (dwarf2_init_complex_target_type, read_base_type)
12255 (partial_die_info::read, partial_die_info::read)
12256 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12257 (dwarf2_fetch_die_loc_sect_off): Update.
12258 * dwarf2/loc.c (dwarf2_find_location_expression)
12259 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12260 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12261 (dwarf2_loc_desc_get_symbol_read_needs)
12262 (locexpr_describe_location_piece, locexpr_describe_location_1)
12263 (loclist_describe_location): Update.
12264 * dwarf2/index-write.c (write_debug_names): Update.
12265 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12266 * dtrace-probe.c (dtrace_process_dof): Update.
12267 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12268 (process_one_symbol): Update.
12269 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12270 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12271 (coff_read_enum_type): Update.
12272 * cli/cli-cmds.c (edit_command, list_command): Update.
12273 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12274 * breakpoint.c (create_overlay_event_breakpoint)
12275 (create_longjmp_master_breakpoint)
12276 (create_std_terminate_master_breakpoint)
12277 (create_exception_master_breakpoint, get_sal_arch): Update.
12278 * block.c (block_gdbarch): Update.
12279 * annotate.c (annotate_source_line): Update.
12280
0743fc83
TT
122812020-04-17 Tom Tromey <tromey@adacore.com>
12282
12283 * auto-load.c (show_auto_load_cmd): Remove.
12284 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12285 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12286 (maintenance_print_arc_command): Remove.
12287 * tui/tui-win.c (tui_command): Remove.
12288 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12289 * tui/tui-layout.c (tui_layout_command): Remove.
12290 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12291 * python/python.c (user_set_python, user_show_python): Remove.
12292 (_initialize_python): Use add_basic_prefix_cmd,
12293 add_show_prefix_cmd.
12294 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12295 (install_gdb_commands): Use add_basic_prefix_cmd,
12296 add_show_prefix_cmd.
12297 (info_guile_command): Remove.
12298 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12299 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12300 add_show_prefix_cmd.
12301 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12302 Remove do_set and do_show parameters.
12303 * cli/cli-style.c (set_style, show_style): Remove.
12304 (_initialize_cli_style): Use add_basic_prefix_cmd,
12305 add_show_prefix_cmd.
12306 (cli_style_option::add_setshow_commands): Remove do_set and
12307 do_show parameters.
12308 (cli_style_option::add_setshow_commands): Use
12309 add_basic_prefix_cmd, add_show_prefix_cmd.
12310 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12311 (set_style_name): Remove.
12312 * cli/cli-dump.c (dump_command, append_command): Remove.
12313 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12314 (tekhex_dump_command, binary_dump_command)
12315 (binary_append_command): Remove.
12316 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12317 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12318 (init_w32_command_list): Remove; move into ...
12319 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12320 * valprint.c (set_print, show_print, set_print_raw)
12321 (show_print_raw): Remove.
12322 (_initialize_valprint): Use add_basic_prefix_cmd,
12323 add_show_prefix_cmd.
12324 * typeprint.c (set_print_type, show_print_type): Remove.
12325 (_initialize_typeprint): Use add_basic_prefix_cmd,
12326 add_show_prefix_cmd.
12327 * record.c (set_record_command, show_record_command): Remove.
12328 (_initialize_record): Use add_basic_prefix_cmd,
12329 add_show_prefix_cmd.
12330 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12331 add_show_prefix_cmd.
12332 (info_command, show_command, set_debug, show_debug): Remove.
12333 * top.h (set_history, show_history): Don't declare.
12334 * top.c (set_history, show_history): Remove.
12335 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12336 (unset_tdesc_cmd): Remove.
12337 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12338 add_show_prefix_cmd.
12339 * symtab.c (info_module_command): Remove.
12340 (_initialize_symtab): Use add_basic_prefix_cmd.
12341 * symfile.c (overlay_command): Remove.
12342 (_initialize_symfile): Use add_basic_prefix_cmd.
12343 * sparc64-tdep.c (info_adi_command): Remove.
12344 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12345 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12346 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12347 add_show_prefix_cmd.
12348 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12349 (_initialize_serial): Use add_basic_prefix_cmd,
12350 add_show_prefix_cmd.
12351 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12352 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12353 add_show_prefix_cmd.
12354 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12355 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12356 add_show_prefix_cmd.
12357 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12358 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12359 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12360 add_show_prefix_cmd.
12361 * remote.c (remote_command, set_remote_cmd): Remove.
12362 (_initialize_remote): Use add_basic_prefix_cmd.
12363 * record-full.c (set_record_full_command)
12364 (show_record_full_command): Remove.
12365 (_initialize_record_full): Use add_basic_prefix_cmd,
12366 add_show_prefix_cmd.
12367 * record-btrace.c (cmd_set_record_btrace)
12368 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12369 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12370 (cmd_show_record_btrace_pt): Remove.
12371 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12372 add_show_prefix_cmd.
12373 * ravenscar-thread.c (set_ravenscar_command)
12374 (show_ravenscar_command): Remove.
12375 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12376 add_show_prefix_cmd.
12377 * mips-tdep.c (show_mips_command, set_mips_command)
12378 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12379 add_show_prefix_cmd.
12380 * maint.c (maintenance_command, maintenance_info_command)
12381 (maintenance_check_command, maintenance_print_command)
12382 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12383 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12384 add_show_prefix_cmd.
12385 (show_per_command_cmd): Remove.
12386 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12387 Remove.
12388 (maintenance_show_test_settings_cmd): Remove.
12389 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12390 add_show_prefix_cmd.
12391 * maint-test-options.c (maintenance_test_options_command):
12392 Remove.
12393 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12394 * macrocmd.c (macro_command): Remove
12395 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12396 * language.c (set_check, show_check): Remove.
12397 (_initialize_language): Use add_basic_prefix_cmd,
12398 add_show_prefix_cmd.
12399 * infcmd.c (unset_command): Remove.
12400 (_initialize_infcmd): Use add_basic_prefix_cmd.
12401 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12402 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12403 add_show_prefix_cmd.
12404 * go32-nat.c (go32_info_dos_command): Remove.
12405 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12406 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12407 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12408 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12409 (_initialize_frame): Use add_basic_prefix_cmd,
12410 add_show_prefix_cmd.
12411 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12412 (_initialize_dcache): Use add_basic_prefix_cmd,
12413 add_show_prefix_cmd.
12414 * cp-support.c (maint_cplus_command): Remove.
12415 (_initialize_cp_support): Use add_basic_prefix_cmd.
12416 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12417 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12418 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12419 add_basic_prefix_cmd, add_show_prefix_cmd.
12420 * breakpoint.c (save_command): Remove.
12421 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12422 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12423 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12424 add_show_prefix_cmd.
12425 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12426 (set_ada_command, show_ada_command): Remove.
12427 (_initialize_ada_language): Use add_basic_prefix_cmd,
12428 add_show_prefix_cmd.
12429 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12430
3557f442
KR
124312020-04-16 Kamil Rytarowski <n54@gmx.com>
12432
12433 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12434 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12435
16197208
SM
124362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12437
12438 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12439 warning messages.
12440
00ac85d3
SM
124412020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12442
12443 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12444 import table is not at beginning of .idata section.
12445
381ce63f
PA
124462020-04-16 Pedro Alves <palves@redhat.com>
12447
12448 * inferior.c (delete_inferior): Use delete operator directly
12449 instead of delete_program_space.
12450 * progspace.c (add_program_space): New, factored out from
12451 program_space::program_space.
12452 (remove_program_space): New, factored out from
12453 delete_program_space.
12454 (program_space::program_space): Remove intro comment. Rewrite.
12455 (program_space::~program_space): Remove intro comment. Call
12456 remove_program_space.
12457 (delete_program_space): Delete.
12458 * progspace.h (program_space::program_space): Make explicit. Move
12459 intro comment here, adjusted.
12460 (program_space::~program_space): Move intro comment here,
12461 adjusted.
12462 (delete_program_space): Remove.
12463
a010605f
TT
124642020-04-16 Tom Tromey <tromey@adacore.com>
12465
12466 * windows-nat.c (windows_nat::handle_access_violation): New
12467 function.
12468 * nat/windows-nat.h (handle_access_violation): Declare.
12469 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12470 windows-nat.c. Call handle_access_violation.
12471
efba5c23
TV
124722020-04-16 Tom de Vries <tdevries@suse.de>
12473
12474 PR symtab/25791
12475 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12476 CUs without psymtab.
12477
97ed802d
KB
124782020-04-16 Kevin Buettner <kevinb@redhat.com>
12479
12480 * python/python.c (do_start_initialization): Don't call
12481 PyEval_InitThreads for Python 3.9 and beyond.
12482
c7d64809
KR
124832020-04-15 Kamil Rytarowski <n54@gmx.com>
12484
12485 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12486 thread functions.
12487 (obsd_nat_target::wait): Likewise.
12488
ce127a96
TT
124892020-04-15 Tom Tromey <tromey@adacore.com>
12490
12491 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12492 (DEBUG_EXCEPT): Use debug_printf.
12493
99f1bc6a
AB
124942020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12495
12496 * completer.c (class completion_tracker::completion_hash_entry)
12497 <hash_name>: New member function.
12498 (completion_tracker::discard_completions): New callback to hash a
12499 completion_hash_entry, pass this to htab_create_alloc.
12500
a0e9b532
JT
125012016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12502
12503 * windows-nat.c (windows_make_so): Warn rather than stopping with
12504 an error if realpath() fails.
12505
06ca5dd4
KR
125062020-04-14 Kamil Rytarowski <n54@gmx.com>
12507
12508 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12509 (nbsd_nat_target::info_proc): Add do_status.
12510
194d088f
TV
125112020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12512 Tom de Vries <tdevries@suse.de>
12513
12514 PR symtab/25718
12515 * psympriv.h (struct partial_symtab::read_symtab)
12516 (struct partial_symtab::expand_psymtab)
12517 (struct partial_symtab::read_dependencies): Update comments.
12518 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12519 read_symtab for includer.
12520 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12521 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12522 (struct dwarf2_include_psymtab::m_readin): Remove.
12523 (struct dwarf2_include_psymtab::includer): New member function.
12524 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12525
c1a66c06
TV
125262020-04-14 Tom de Vries <tdevries@suse.de>
12527
12528 PR symtab/25720
12529 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12530 with NULL symbol_matcher and lookup_name.
12531 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12532 and lookup_name.
12533 * dwarf2/read.c (dw2_expand_symtabs_matching)
12534 (dw2_debug_names_expand_symtabs_matching): Same.
12535 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12536 Make lookup_name a pointer. Update comment.
12537 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12538 lookup_name being a pointer.
12539 * symfile.c (expand_symtabs_matching): Same.
12540 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12541 * linespec.c (iterate_over_all_matching_symtabs): Same.
12542
400b5eca
TT
125432020-04-13 Tom Tromey <tom@tromey.com>
12544
12545 * run-on-main-thread.c: Update include.
12546 * unittests/main-thread-selftests.c: Update include.
12547 * tui/tui-win.c: Update include.
12548 * tui/tui-io.c: Update include.
12549 * tui/tui-interp.c: Update include.
12550 * tui/tui-hooks.c: Update include.
12551 * top.h: Update include.
12552 * top.c: Update include.
12553 * ser-base.c: Update include.
12554 * remote.c: Update include.
12555 * remote-notif.c: Update include.
12556 * remote-fileio.c: Update include.
12557 * record-full.c: Update include.
12558 * record-btrace.c: Update include.
12559 * python/python.c: Update include.
12560 * posix-hdep.c: Update include.
12561 * mingw-hdep.c: Update include.
12562 * mi/mi-main.c: Update include.
12563 * mi/mi-interp.c: Update include.
12564 * main.c: Update include.
12565 * linux-nat.c: Update include.
12566 * interps.c: Update include.
12567 * infrun.c: Update include.
12568 * inf-loop.c: Update include.
12569 * event-top.c: Update include.
12570 * event-loop.c: Move to ../gdbsupport/.
12571 * event-loop.h: Move to ../gdbsupport/.
12572 * async-event.h: Update include.
12573 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12574
93b54c8e
TT
125752020-04-13 Tom Tromey <tom@tromey.com>
12576
12577 * tui/tui-win.c: Include async-event.h.
12578 * remote.c: Include async-event.h.
12579 * remote-notif.c: Include async-event.h.
12580 * record-full.c: Include async-event.h.
12581 * record-btrace.c: Include async-event.h.
12582 * infrun.c: Include async-event.h.
12583 * event-top.c: Include async-event.h.
12584 * event-loop.h: Move some declarations to async-event.h.
12585 * event-loop.c: Don't include ser-event.h or top.h. Move some
12586 code to async-event.c.
12587 * async-event.h: New file.
12588 * async-event.c: New file.
12589 * Makefile.in (COMMON_SFILES): Add async-event.c.
12590 (HFILES_NO_SRCDIR): Add async-event.h.
12591
c1cd3163
TT
125922020-04-13 Tom Tromey <tom@tromey.com>
12593
12594 * utils.c (flush_streams): New function.
12595 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12596
29f2bf4f
TT
125972020-04-13 Tom Tromey <tom@tromey.com>
12598
12599 * event-loop.c (handle_file_event): Use warning, not
12600 printf_unfiltered.
12601
98029d02
TT
126022020-04-13 Tom Tromey <tom@tromey.com>
12603
12604 * event-loop.c: Include <chrono>.
12605
06cc9596
TT
126062020-04-13 Tom Tromey <tom@tromey.com>
12607
12608 * gdb_select.h: Move to ../gdbsupport/.
12609 * event-loop.c: Update include path.
12610 * top.c: Update include path.
12611 * ser-base.c: Update include path.
12612 * ui-file.c: Update include path.
12613 * ser-tcp.c: Update include path.
12614 * guile/scm-ports.c: Update include path.
12615 * posix-hdep.c: Update include path.
12616 * ser-unix.c: Update include path.
12617 * gdb_usleep.c: Update include path.
12618 * mingw-hdep.c: Update include path.
12619 * inflow.c: Update include path.
12620 * infrun.c: Update include path.
12621 * event-top.c: Update include path.
12622
8ae8e197
TT
126232020-04-13 Tom Tromey <tom@tromey.com>
12624
12625 * configure: Rebuild.
12626 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12627
58cf28e8
TT
126282020-04-13 Tom Tromey <tom@tromey.com>
12629
12630 * event-loop.h (start_event_loop): Don't declare.
12631 * event-loop.c (start_event_loop): Move...
12632 * main.c (start_event_loop): ...here. Now static.
12633
b7f999ae
SDJ
126342020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12635
12636 * MAINTAINERS: Update my email address.
12637
1085dfd4
KR
126382020-04-12 Kamil Rytarowski <n54@gmx.com>
12639
12640 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12641 IP_ALL.
12642
49d1d1f5
KR
126432020-04-12 Kamil Rytarowski <n54@gmx.com>
12644
12645 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12646 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12647
b4848d2a
KR
126482020-04-12 Kamil Rytarowski <n54@gmx.com>
12649
12650 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12651 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12652
51c133d5
KR
126532020-04-12 Kamil Rytarowski <n54@gmx.com>
12654
12655 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12656
54b8cbd0
KR
126572020-04-11 Kamil Rytarowski <n54@gmx.com>
12658
12659 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12660 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12661 (nbsd_nat_target::info_proc): New functions.
12662 * nbsd-nat.c (kinfo_get_vmmap): New function.
12663 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12664 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12665 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12666 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12667 functions.
12668 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12669 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12670 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12671 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12672 (KINFO_VME_FLAG_GROWS_DOWN): New.
12673
cf83625d
AS
126742020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12675
12676 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12677 bit shift.
12678
0c4311ab
TT
126792020-04-10 Tom Tromey <tromey@adacore.com>
12680
12681 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12682
3e65b3e9
TT
126832020-04-10 Tom Tromey <tromey@adacore.com>
12684
12685 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12686 separate debug files.
12687
13302e95
HD
126882020-04-10 Hannes Domani <ssbssa@yahoo.de>
12689
12690 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12691 Move to...
12692 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12693 ... here.
12694 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12695 Check for STATUS_WX86_BREAKPOINT.
12696 (windows_nat_target::wait): Same.
12697
bdfc1e8a
TV
126982020-04-10 Tom de Vries <tdevries@suse.de>
12699
12700 PR cli/25808
12701 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12702
f4460aec
SM
127032020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12704
12705 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12706 (Write After Approval): Remove Tom de Vries.
12707
a25198bb
BE
127082020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12709
12710 revert partially:
12711 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12712
aac66a4c
SM
12713 * buildsym.c (record_line): Fix undefined behavior and preserve
12714 lines at eof.
a25198bb 12715
206c98a6
KR
127162020-04-09 Kamil Rytarowski <n54@gmx.com>
12717
12718 * auxv.h (svr4_auxv_parse): New.
12719 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12720 and generic_auxv_parse.
12721 (svr4_auxv_parse): Add.
12722 * obsd-tdep.c: Include "auxv.h".
12723 (obsd_auxv_parse): Remove.
12724 (obsd_init_abi): Remove comment.
12725 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12726 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12727 * nbsd-tdep.c: Include "auxv.h".
12728 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12729
71fbdbaf
TT
127302020-04-08 Tom Tromey <tromey@adacore.com>
12731
12732 * nat/windows-nat.h (last_wait_event): Don't declare.
12733 (wait_for_debug_event): Update comment.
12734 * nat/windows-nat.c (last_wait_event): Now static.
12735
2c1d95e8
TT
127362020-04-08 Tom Tromey <tromey@adacore.com>
12737
12738 * windows-nat.c (wait_for_debug_event): Move to
12739 nat/windows-nat.c.
12740 * nat/windows-nat.h (wait_for_debug_event): Declare.
12741 * nat/windows-nat.c (wait_for_debug_event): Move from
12742 windows-nat.c. No longer static.
12743
d2977bc4
TT
127442020-04-08 Tom Tromey <tromey@adacore.com>
12745
12746 * windows-nat.c (get_windows_debug_event): Use
12747 fetch_pending_stop.
12748 * nat/windows-nat.h (fetch_pending_stop): Declare.
12749 * nat/windows-nat.c (fetch_pending_stop): New function.
12750
e758e19c
TT
127512020-04-08 Tom Tromey <tromey@adacore.com>
12752
12753 * windows-nat.c (windows_continue): Use matching_pending_stop and
12754 continue_last_debug_event.
12755 * nat/windows-nat.h (matching_pending_stop)
12756 (continue_last_debug_event): Declare.
12757 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12758 (matching_pending_stop, continue_last_debug_event): New
12759 functions.
12760
8d30e395
TT
127612020-04-08 Tom Tromey <tromey@adacore.com>
12762
12763 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12764 (handle_exception_result): Move to nat/windows-nat.h.
12765 (DEBUG_EXCEPTION_SIMPLE): Remove.
12766 (windows_nat::handle_ms_vc_exception): New function.
12767 (handle_exception): Move to nat/windows-nat.c.
12768 (get_windows_debug_event): Update.
12769 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12770 nat/windows-nat.c.
12771 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12772 (handle_exception_result): Move from windows-nat.c.
12773 (handle_exception): Declare.
12774 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12775 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12776 windows-nat.c.
12777
29de418d
TT
127782020-04-08 Tom Tromey <tromey@adacore.com>
12779
12780 * windows-nat.c (exception_count, event_count): Remove.
12781 (handle_exception, get_windows_debug_event)
12782 (do_initial_windows_stuff): Update.
12783
a816ba18
TT
127842020-04-08 Tom Tromey <tromey@adacore.com>
12785
12786 * windows-nat.c (windows_nat::handle_load_dll)
12787 (windows_nat::handle_unload_dll): Rename. No longer static.
12788 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12789 Declare.
12790
a00caa12
TT
127912020-04-08 Tom Tromey <tromey@adacore.com>
12792
12793 * complaints.h (stop_whining): Declare at top-level.
12794 (complaint): Don't declare stop_whining.
12795
d41b524f
TT
127962020-04-08 Tom Tromey <tromey@adacore.com>
12797
12798 * windows-nat.c (windows_nat::handle_output_debug_string):
12799 Rename. No longer static.
12800 * nat/windows-nat.h (handle_output_debug_string): Declare.
12801
3c76026d
TT
128022020-04-08 Tom Tromey <tromey@adacore.com>
12803
12804 * windows-nat.c (current_process_handle, current_process_id)
12805 (main_thread_id, last_sig, current_event, last_wait_event)
12806 (current_windows_thread, desired_stop_thread_id, pending_stops)
12807 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12808 (display_selectors, fake_create_process)
12809 (get_windows_debug_event): Update.
12810 * nat/windows-nat.h (current_process_handle, current_process_id)
12811 (main_thread_id, last_sig, current_event, last_wait_event)
12812 (current_windows_thread, desired_stop_thread_id, pending_stops)
12813 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12814 * nat/windows-nat.c (current_process_handle, current_process_id)
12815 (main_thread_id, last_sig, current_event, last_wait_event)
12816 (current_windows_thread, desired_stop_thread_id, pending_stops)
12817 (siginfo_er): New globals. Move from windows-nat.c.
12818
9d8679cc
TT
128192020-04-08 Tom Tromey <tromey@adacore.com>
12820
12821 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12822 (handle_load_dll): Update.
12823 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12824
28688adf
TT
128252020-04-08 Tom Tromey <tromey@adacore.com>
12826
12827 * windows-nat.c (enum thread_disposition_type): Move to
12828 nat/windows-nat.h.
12829 (windows_nat::thread_rec): Rename from thread_rec. No longer
12830 static.
12831 (windows_add_thread, windows_nat_target::fetch_registers)
12832 (windows_nat_target::store_registers, handle_exception)
12833 (windows_nat_target::resume, get_windows_debug_event)
12834 (windows_nat_target::get_tib_address)
12835 (windows_nat_target::thread_name)
12836 (windows_nat_target::thread_alive): Update.
12837 * nat/windows-nat.h (enum thread_disposition_type): Move from
12838 windows-nat.c.
12839 (thread_rec): Declare.
12840
4834dad0
TT
128412020-04-08 Tom Tromey <tromey@adacore.com>
12842
12843 * windows-nat.c: Add "using namespace".
12844 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12845 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12846
65bafd5b
TT
128472020-04-08 Tom Tromey <tromey@adacore.com>
12848
12849 * nat/windows-nat.h (struct windows_thread_info): Declare
12850 destructor.
12851 * nat/windows-nat.c (~windows_thread_info): New.
12852
0a4afda3
TT
128532020-04-08 Tom Tromey <tromey@adacore.com>
12854
12855 PR gdb/22992
12856 * windows-nat.c (current_event): Update comment.
12857 (last_wait_event, desired_stop_thread_id): New globals.
12858 (struct pending_stop): New.
12859 (pending_stops): New global.
12860 (windows_nat_target) <stopped_by_sw_breakpoint>
12861 <supports_stopped_by_sw_breakpoint>: New methods.
12862 (windows_fetch_one_register): Add assertions. Adjust PC.
12863 (windows_continue): Handle pending stops. Suspend other threads
12864 when stepping. Use last_wait_event
12865 (wait_for_debug_event): New function.
12866 (get_windows_debug_event): Use wait_for_debug_event. Handle
12867 pending stops. Queue spurious stops.
12868 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12869 (windows_nat_target::kill): Use wait_for_debug_event.
12870 * nat/windows-nat.h (struct windows_thread_info)
12871 <stopped_at_software_breakpoint>: New field.
12872 * nat/windows-nat.c (windows_thread_info::resume): Clear
12873 stopped_at_software_breakpoint.
12874
8e61ebec
TT
128752020-04-08 Tom Tromey <tromey@adacore.com>
12876
12877 * windows-nat.c (enum thread_disposition_type): New.
12878 (thread_rec): Replace "get_context" parameter with "disposition";
12879 change type.
12880 (windows_add_thread, windows_nat_target::fetch_registers)
12881 (windows_nat_target::store_registers, handle_exception)
12882 (windows_nat_target::resume, get_windows_debug_event)
12883 (windows_nat_target::get_tib_address)
12884 (windows_nat_target::thread_name)
12885 (windows_nat_target::thread_alive): Update.
12886
98a03287
TT
128872020-04-08 Tom Tromey <tromey@adacore.com>
12888
12889 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12890 (windows_continue): Use windows_continue::resume.
12891 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12892 resume>: Declare new methods.
12893 * nat/windows-nat.c: New file.
12894 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12895
7c7411bc
TT
128962020-04-08 Tom Tromey <tromey@adacore.com>
12897
12898 * windows-nat.c (windows_add_thread, windows_delete_thread)
12899 (windows_nat_target::fetch_registers)
12900 (windows_nat_target::store_registers, fake_create_process)
12901 (windows_nat_target::resume, windows_nat_target::resume)
12902 (get_windows_debug_event, windows_nat_target::wait)
12903 (windows_nat_target::pid_to_str)
12904 (windows_nat_target::get_tib_address)
12905 (windows_nat_target::get_ada_task_ptid)
12906 (windows_nat_target::thread_name)
12907 (windows_nat_target::thread_alive): Use lwp, not tid.
12908
2950fdf7
TT
129092020-04-08 Tom Tromey <tromey@adacore.com>
12910
12911 * windows-nat.c (handle_exception)
12912 (windows_nat_target::thread_name): Update.
12913 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12914 <name>: Now unique_xmalloc_ptr.
12915
62fe396b
TT
129162020-04-08 Tom Tromey <tromey@adacore.com>
12917
12918 * windows-nat.c (thread_rec)
12919 (windows_nat_target::fetch_registers): Update.
12920 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12921 Update comment.
12922 <debug_registers_changed, reload_context>: Now bool.
12923
e9534bd2
TT
129242020-04-08 Tom Tromey <tromey@adacore.com>
12925
12926 * windows-nat.c (windows_add_thread): Use new.
12927 (windows_init_thread_list, windows_delete_thread): Use delete.
12928 (get_windows_debug_event): Update.
12929 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12930 destructor, and initializers.
12931
ae1f8880
TT
129322020-04-08 Tom Tromey <tromey@adacore.com>
12933
12934 * windows-nat.c (struct windows_thread_info): Remove.
12935 * nat/windows-nat.h: New file.
12936
55a1e039
TT
129372020-04-08 Tom Tromey <tromey@adacore.com>
12938
12939 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12940 (thread_rec, windows_add_thread, windows_delete_thread)
12941 (windows_continue): Update.
12942
93366324
TT
129432020-04-08 Tom Tromey <tromey@adacore.com>
12944
12945 * windows-nat.c (struct windows_thread_info): Remove typedef.
12946 (thread_head): Remove.
12947 (thread_list): New global.
12948 (thread_rec, windows_add_thread, windows_init_thread_list)
12949 (windows_delete_thread, windows_continue): Update.
12950
0f2265e2
SM
129512020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12952
12953 * windows-tdep.h (windows_init_abi): Add comment.
12954 (cygwin_init_abi): New declaration.
12955 * windows-tdep.c: Split signal enumeration in two, one for
12956 Windows and one for Cygwin.
12957 (windows_gdb_signal_to_target): Only deal with signal of the
12958 Windows OS ABI.
12959 (cygwin_gdb_signal_to_target): New function.
12960 (windows_init_abi): Rename to windows_init_abi_common, don't set
12961 gdb_signal_to_target gdbarch method. Add new new function with
12962 this name.
12963 (cygwin_init_abi): New function.
12964 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12965 comment. Don't call windows_init_abi.
12966 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12967 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12968 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12969 i386_windows_init_abi_common, don't call windows_init_abi. Add
12970 a new function of this name.
12971 (i386_cygwin_init_abi): New function.
12972 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12973 OS ABI Cygwin.
12974
3810f182
SM
129752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12976
12977 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12978 parameter.c.
12979 (dwarf2_read_gdb_index): Update.
12980
063f8e80
KR
129812020-04-07 Kamil Rytarowski <n54@gmx.com>
12982
12983 * nbsd-tdep.c: Include "objfiles.h".
12984 (nbsd_skip_solib_resolver): New.
12985 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12986
85a9510c 129872020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12988
12989 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12990 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12991 with DW_LLE_base_addressx are being emitted in DWARFv5.
12992 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12993 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12994 unsigned integer.
12995
9fc3eaae 129962020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12997
12998 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12999 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
13000 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
13001 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
13002 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
13003 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
13004 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
13005
13006
41144253 130072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13008
13009 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
13010 (read_loclist_index): New function definition.
13011 (lookup_loclist_base): New function definition.
13012 (read_loclist_header): New function definition.
13013 (dwarf2_cu): Add loclist_base and loclist_header field.
13014 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
13015 (read_full_die_1): Read the value of DW_AT_loclists_base.
13016 (read_attribute_reprocess): Handle DW_FORM_loclistx.
13017 (read_attribute_value): Handle DW_FORM_loclistx.
13018 (skip_one_die): Handle DW_FORM_loclistx.
13019 (loclist_header): New structure declaration.
13020 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
13021
9f4e76a4
SM
130222020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13023
13024 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
13025 constructor. Remove `addr` parameter from other constructor and
13026 add `per_cu` parameter.
13027 * dwarf2/read.c (create_partial_symtab): Update.
13028
25c11aca
TV
130292020-04-07 Tom de Vries <tdevries@suse.de>
13030
13031 PR symtab/25796
13032 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
13033 (partial_die_info::fixup): Inherit has_const_value.
13034
5707e24b
TV
130352020-04-07 Tom de Vries <tdevries@suse.de>
13036
13037 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13038 symbols without address.
13039
05f00e22
KR
130402020-04-06 Kamil Rytarowski <n54@gmx.com>
13041
13042 * nbsd-nat.h (struct thread_info): Add forward declaration.
13043 (nbsd_nat_target::thread_alive): Add.
13044 (nbsd_nat_target::thread_name): Likewise.
13045 (nbsd_nat_target::update_thread_list): Likewise.
13046 (update_thread_list::post_attach): Likewise.
13047 (post_attach::pid_to_str): Likewise.
13048 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13049 (nbsd_thread_lister): Add.
13050 (nbsd_nat_target::thread_alive): Likewise.
13051 (nbsd_nat_target::thread_name): Likewise.
13052 (nbsd_add_threads): Likewise.
13053 (update_thread_list::post_attach): Likewise.
13054 (nbsd_nat_target::update_thread_list): Likewise.
13055 (post_attach::pid_to_str): Likewise.
13056
6ee448cc
TT
130572020-04-06 Tom Tromey <tromey@adacore.com>
13058
13059 * ada-valprint.c (print_variant_part): Extract the variant field.
13060 (print_field_values): Use the field as the outer value when
13061 recursing.
13062
dea34e8c
TT
130632020-04-06 Tom Tromey <tromey@adacore.com>
13064
13065 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13066 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13067 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13068 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13069 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13070
93689ce9
TT
130712020-04-06 Tom Tromey <tromey@adacore.com>
13072
13073 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13074 TYPE_CODE_ERROR.
13075
79743962
KR
130762020-04-06 Kamil Rytarowski <n54@gmx.com>
13077
13078 * nbsd-tdep.c: Include "gdbarch.h".
13079 Define enum with NetBSD signal numbers.
13080 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13081 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13082 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13083 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13084 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13085 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13086 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13087 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13088 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13089 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13090 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13091 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13092
9e7c9a03
HD
130932020-04-03 Hannes Domani <ssbssa@yahoo.de>
13094
13095 PR gdb/25325
13096 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13097
d9e49b61
TT
130982020-04-03 Tom Tromey <tromey@adacore.com>
13099
13100 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13101 Read constant block.
13102
e0fc5c3f
SM
131032020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13104
13105 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13106 (gdb_bfd_get_full_section_contents): New declaration.
13107 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13108 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13109 gdb_bfd_get_full_section_contents.
13110
e2ff18a0
SM
131112020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13112
13113 * exec.c (build_section_table): Replace internal_error with
13114 gdb_assert.
13115 (section_table_xfer_memory_partial): Likewise.
13116 * mdebugread.c (parse_partial_symbols): Likewise.
13117 * psymtab.c (lookup_partial_symbol): Likewise.
13118 * utils.c (wrap_here): Likewise.
13119
0830d301
TT
131202020-04-02 Tom Tromey <tromey@adacore.com>
13121
13122 * f-lang.c (build_fortran_types): Use arch_type to initialize
13123 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13124
e7da7f8f
TT
131252020-04-02 Tom Tromey <tromey@adacore.com>
13126
13127 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13128 of attributes.
13129
c90d28ac
AB
131302020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13131 Bernd Edlinger <bernd.edlinger@hotmail.de>
13132 Tom Tromey <tromey@adacore.com>
13133
13134 * buildsym.c (buildsym_compunit::record_line): Remove
13135 deduplication code.
13136
1aa98955
TV
131372020-04-02 Tom de Vries <tdevries@suse.de>
13138
13139 PR ada/24671
13140 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13141
d3214198
TV
131422020-04-02 Tom de Vries <tdevries@suse.de>
13143
13144 * dwarf2/read.c (dwarf2_gdb_index_functions,
13145 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13146 NULL.
13147 * psymtab.c (psym_lookup_global_symbol_language): New function.
13148 (psym_functions): Init psym_lookup_global_symbol_language with
13149 psym_lookup_global_symbol_language.
13150 * symfile-debug.c (debug_sym_quick_functions): Init
13151 lookup_global_symbol_language with NULL.
13152 * symfile.c (set_initial_language): Remove fixme comment.
13153 * symfile.h (struct quick_symbol_functions): Add
13154 lookup_global_symbol_language.
13155 * symtab.c (find_quick_global_symbol_language): New function.
13156 (find_main_name): Use find_quick_global_symbol_language.
13157
2836752f
SM
131582020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13159
13160 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13161
64dc2d4b
BE
131622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13163
13164 * buildsym.c (record_line): Fix undefined behavior and preserve
13165 lines at eof.
13166
bbe3dc41
BE
131672020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13168
13169 * buildsym.c (record_line): Fix the resizing condition.
13170
6b4a335b
TT
131712020-04-01 Tom Tromey <tom@tromey.com>
13172
13173 * value.h (value_literal_complex): Add comment.
13174 * valops.c (value_literal_complex): Refer to value.h.
13175
3638a098
TT
131762020-04-01 Tom Tromey <tom@tromey.com>
13177
13178 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13179 (scalar_type): New rule, from typebase.
13180 (typebase): Use scalar_type. Recognize complex types.
13181 (field_name): Handle FLOAT_KEYWORD.
13182 (ident_tokens): Add _Complex and __complex__.
13183
c34e8714
TT
131842020-04-01 Tom Tromey <tom@tromey.com>
13185
13186 PR exp/25299:
13187 * valarith.c (promotion_type, complex_binop): New functions.
13188 (scalar_binop): Handle complex numbers. Use promotion_type.
13189 (value_pos, value_neg, value_complement): Handle complex numbers.
13190
fa649bb7
TT
131912020-04-01 Tom Tromey <tom@tromey.com>
13192
13193 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13194 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13195 (parse_number): Handle complex numbers.
13196
981c08ce
TT
131972020-04-01 Tom Tromey <tom@tromey.com>
13198
13199 * c-valprint.c (c_decorations): Change complex suffix to "i".
13200
4c99290d
TT
132012020-04-01 Tom Tromey <tom@tromey.com>
13202
13203 * valprint.c (generic_value_print_complex): Use accessors.
13204 * value.h (value_real_part, value_imaginary_part): Declare.
13205 * valops.c (value_real_part, value_imaginary_part): New
13206 functions.
13207 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13208
5b930b45
TT
132092020-04-01 Tom Tromey <tom@tromey.com>
13210
13211 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13212 (read_range_type): Update.
13213 * mdebugread.c (basic_type): Update.
13214 * go-lang.c (build_go_types): Use init_complex_type.
13215 * gdbtypes.h (struct main_type) <complex_type>: New member.
13216 (init_complex_type): Update.
13217 (arch_complex_type): Don't declare.
13218 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13219 Make name if none given. Use alloc_type_copy. Look for cached
13220 complex type.
13221 (arch_complex_type): Remove.
13222 (gdbtypes_post_init): Use init_complex_type.
13223 * f-lang.c (build_fortran_types): Use init_complex_type.
13224 * dwarf2/read.c (read_base_type): Update.
13225 * d-lang.c (build_d_types): Use init_complex_type.
13226 * ctfread.c (read_base_type): Update.
13227
53cccef1
TBA
132282020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13229
13230 * infrun.c (stop_all_threads): Update assertion, plus when
13231 stopping threads, take into account that we might be trying
13232 to stop an all-stop target.
13233 (stop_waiting): Call 'stop_all_threads' if there exists a
13234 non-stop target.
13235
a0714d30
TBA
132362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13237
13238 * target.h (exists_non_stop_target): New function declaration.
13239 * target.c (exists_non_stop_target): New function.
13240
60e22c1e
HD
132412020-04-01 Hannes Domani <ssbssa@yahoo.de>
13242
13243 PR gdb/24789
13244 * eval.c (is_integral_or_integral_reference): New function.
13245 (evaluate_subexp_standard): Allow integer references in
13246 pointer arithmetic.
13247
e139a727
TBA
132482020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13249
13250 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13251 check for no ptid in the stop reply when the target is non-stop.
13252
e0802d59
TT
132532020-04-01 Tom Tromey <tromey@adacore.com>
13254
13255 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13256 "name" parameter to rvalue reference. Initialize m_name_holder.
13257 <lookup_name_info>: New overloads.
13258 <name>: Return gdb::string_view.
13259 <c_str>: New method.
13260 <make_ignore_params>: Update.
13261 <search_name_hash>: Update.
13262 <language_lookup_name>: Return const char *.
13263 <m_name>: Change type.
13264 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13265 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13266 (lookup_name_info::match_any): Update.
13267 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13268 Update.
13269 * minsyms.c (linkage_name_str): Update.
13270 * language.c (default_symbol_name_matcher): Update.
13271 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13272 Update.
13273 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13274 (ada_lookup_name_info::ada_lookup_name_info): Update.
13275 (literal_symbol_name_matcher): Update.
13276
8c072cb6
TT
132772020-04-01 Tom Tromey <tromey@adacore.com>
13278
13279 * psymtab.c (psymtab_search_name): Remove function.
13280 (psym_lookup_symbol): Create search name and lookup name here.
13281 (lookup_partial_symbol): Remove "name" parameter; add
13282 lookup_name.
13283 (psym_expand_symtabs_for_function): Update.
13284
6f29a534
TT
132852020-03-31 Joel Jones <joelkevinjones@gmail.com>
13286
13287 PR tui/25597:
13288 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13289
af62665e
TT
132902020-03-31 Tom Tromey <tromey@adacore.com>
13291
13292 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13293 memcpy.
13294
d1a89da5
NC
132952020-03-30 Nelson Chu <nelson.chu@sifive.com>
13296
13297 * features/riscv/32bit-csr.xml: Regenerated.
13298 * features/riscv/64bit-csr.xml: Regenerated.
13299
d8af9068
TT
133002020-03-30 Tom Tromey <tromey@adacore.com>
13301
13302 * ada-valprint.c (print_variant_part): Update.
13303 * ada-lang.h (ada_which_variant_applies): Update.
13304 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13305 outer_valaddr parameters; replace with "outer" value parameter.
13306 (to_fixed_variant_branch_type): Update.
13307
227c0bf4
PFC
133082020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13309
13310 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13311 <list>. Remove inclusion of observable.h.
13312 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13313 (struct arch_lwp_info): New struct.
13314 (class ppc_linux_dreg_interface): New class.
13315 (struct ppc_linux_process_info): New struct.
13316 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13317 <low_new_clone, low_forget_process, low_prepare_to_resume>
13318 <copy_thread_dreg_state, mark_thread_stale>
13319 <mark_debug_registers_changed, register_hw_breakpoint>
13320 <clear_hw_breakpoint, register_wp, clear_wp>
13321 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13322 <num_memory_accesses, get_trigger_type>
13323 <create_watchpoint_request, hwdebug_point_cmp>
13324 <init_arch_lwp_info, get_arch_lwp_info>
13325 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13326 methods.
13327 <struct ptid_hash>: New inner struct.
13328 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13329 members.
13330 (saved_dabr_value, hwdebug_info, max_slots_number)
13331 (struct hw_break_tuple, struct thread_points, ppc_threads)
13332 (have_ptrace_hwdebug_interface)
13333 (hwdebug_find_thread_points_by_tid)
13334 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13335 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13336 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13337 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13338 use m_dreg_interface.
13339 (hwdebug_point_cmp): Change to...
13340 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13341 reference arguments instead of pointers.
13342 (ppc_linux_nat_target::ranged_break_num_registers): Use
13343 m_dreg_interface.
13344 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13345 m_dreg_interface. Call register_hw_breakpoint.
13346 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13347 m_dreg_interface. Call clear_hw_breakpoint.
13348 (get_trigger_type): Change to...
13349 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13350 comment.
13351 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13352 use m_dreg_interface. Call register_hw_breakpoint.
13353 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13354 use m_dreg_interface. Call clear_hw_breakpoint.
13355 (can_use_watchpoint_cond_accel): Change to...
13356 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13357 method. Update comment, use m_dreg_interface and
13358 m_process_info.
13359 (calculate_dvc): Change to...
13360 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13361 m_dreg_interface.
13362 (num_memory_accesses): Change to...
13363 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13364 (check_condition): Change to...
13365 (ppc_linux_nat_target::check_condition): ...this method.
13366 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13367 comment, use m_dreg_interface.
13368 (create_watchpoint_request): Change to...
13369 (ppc_linux_nat_target::create_watchpoint_request): ...this
13370 method. Use m_dreg_interface.
13371 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13372 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13373 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13374 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13375 (ppc_linux_nat_target::low_forget_process)
13376 (ppc_linux_nat_target::low_new_fork)
13377 (ppc_linux_nat_target::low_new_clone)
13378 (ppc_linux_nat_target::low_delete_thread)
13379 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13380 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13381 only call mark_thread_stale.
13382 (ppc_linux_thread_exit): Remove.
13383 (ppc_linux_nat_target::stopped_data_address): Change to...
13384 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13385 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13386 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13387 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13388 comment. Call low_stopped_data_address.
13389 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13390 m_dreg_interface.
13391 (ppc_linux_nat_target::masked_watch_num_registers): Use
13392 m_dreg_interface.
13393 (ppc_linux_nat_target::copy_thread_dreg_state)
13394 (ppc_linux_nat_target::mark_thread_stale)
13395 (ppc_linux_nat_target::mark_debug_registers_changed)
13396 (ppc_linux_nat_target::register_hw_breakpoint)
13397 (ppc_linux_nat_target::clear_hw_breakpoint)
13398 (ppc_linux_nat_target::register_wp)
13399 (ppc_linux_nat_target::clear_wp)
13400 (ppc_linux_nat_target::init_arch_lwp_info)
13401 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13402 (_initialize_ppc_linux_nat): Remove observer callback.
13403
4db10d8f
PFC
134042020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13405
13406 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13407 (ppc_linux_nat_target::auxv_parse)
13408 (ppc_linux_nat_target::read_description)
13409 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13410 Move up.
13411
1310c1b0
PFC
134122020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13413
13414 * linux-nat.h (low_new_clone): New method.
13415 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13416
69b037c3
SM
134172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13418
13419 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13420 (dbx_expand_psymtab): ... this.
13421 (start_psymtab): Update.
13422 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13423 (mdebug_expand_psymtab): ... this.
13424 (parse_partial_symbols): Update.
13425 (new_psymtab): Update.
13426 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13427 (xcoff_expand_psymtab): ... this.
13428 (xcoff_start_psymtab): Update.
13429
48993951
SM
134302020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13431
13432 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13433 <expand_dependencies>: ... this.
13434 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13435 (partial_symtab::expand_dependencies): ... this.
13436 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13437 Update.
13438 (dwarf2_psymtab::expand_psymtab): Update.
13439 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13440 * mdebugread.c (psymtab_to_symtab_1): Update.
13441 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13442
3ad83046
SM
134432020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13444
13445 * psympriv.h (discard_psymtab): Remove.
13446 * dbxread.c (dbx_end_psymtab): Update.
13447 * xcoffread.c (xcoff_end_psymtab): Update.
13448
4d1b9ab6
TT
134492020-03-28 Tom Tromey <tom@tromey.com>
13450
13451 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13452 comment.
13453
f1749218
TT
134542020-03-28 Tom Tromey <tom@tromey.com>
13455
13456 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13457
ebea7626
HD
134582020-03-27 Hannes Domani <ssbssa@yahoo.de>
13459
13460 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13461
a879b4d5
JB
134622020-03-26 John Baldwin <jhb@FreeBSD.org>
13463
13464 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13465
0826b30a
TT
134662020-03-26 Tom Tromey <tom@tromey.com>
13467
13468 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13469 (mark_common_block_symbol_computed, read_tag_string_type)
13470 (attr_to_dynamic_prop, read_subrange_type): Update.
13471 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13472 to be methods on struct attribute.
13473 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13474 (read_call_site_scope, partial_die_info::read)
13475 (partial_die_info::read, lookup_die_type, follow_die_ref):
13476 Update.
13477 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13478 from dwarf2_get_ref_die_offset.
13479 (attribute::constant_value): New method, from
13480 dwarf2_get_attr_constant_value.
13481 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13482 Declare method.
13483 <constant_value>: New method.
13484
2b2558bf
TT
134852020-03-26 Tom Tromey <tom@tromey.com>
13486
13487 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13488 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13489 (dwarf_type_encoding_name): Move to stringify.c.
13490 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13491 * dwarf2/stringify.c: New file.
13492 * dwarf2/stringify.h: New file.
13493
eeb64781
TT
134942020-03-26 Tom Tromey <tom@tromey.com>
13495
13496 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13497 Rewrite.
13498
a39fdb41
TT
134992020-03-26 Tom Tromey <tom@tromey.com>
13500
13501 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13502 methods.
13503 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13504 (lookup_ranges_base): Likewise.
13505 (read_cutu_die_from_dwo, read_full_die_1): Update.
13506
436c571c
TT
135072020-03-26 Tom Tromey <tom@tromey.com>
13508
13509 * dwarf2/read.c (read_import_statement, read_file_scope)
13510 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13511 (read_lexical_block_scope, read_call_site_scope)
13512 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13513 (handle_struct_member_die, process_structure_scope)
13514 (update_enumeration_type_from_children)
13515 (process_enumeration_scope, read_array_type, read_common_block)
13516 (read_namespace, read_module, read_subroutine_type): Update.
13517 (sibling_die): Remove.
13518
052c8bb8
TT
135192020-03-26 Tom Tromey <tom@tromey.com>
13520
13521 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13522 (build_type_psymtabs_reader, read_structure_type)
13523 (read_enumeration_type, read_full_die_1): Update.
13524 (dwarf2_attr_no_follow): Move to die.h.
13525 * dwarf2/die.h (struct die_info) <attr>: New method.
13526
2b24b6e4
TT
135272020-03-26 Tom Tromey <tom@tromey.com>
13528
13529 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13530 <base_address>: Now an optional.
13531 (dwarf2_find_base_address, dwarf2_rnglists_process)
13532 (dwarf2_ranges_process, fill_in_loclist_baton)
13533 (dwarf2_symbol_mark_computed): Update.
13534
c2d50fd0
TT
135352020-03-26 Tom Tromey <tom@tromey.com>
13536
13537 * dwarf2/read.c (struct die_info): Move to die.h.
13538 * dwarf2/die.h: New file.
13539
0df7ad3a
TT
135402020-03-26 Tom Tromey <tom@tromey.com>
13541
13542 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13543 * dwarf2/read.c
13544 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13545 Move to line-header.c.
13546 (read_checked_initial_length_and_offset, read_formatted_entries):
13547 Likewise.
13548 (dwarf_decode_line_header): Split into two.
13549 * dwarf2/line-header.c
13550 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13551 Move from read.c.
13552 (read_checked_initial_length_and_offset, read_formatted_entries):
13553 Likewise.
13554 (dwarf_decode_line_header): New function, split from read.c.
13555
86c0bb4c
TT
135562020-03-26 Tom Tromey <tom@tromey.com>
13557
13558 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13559 Declare method.
13560 * dwarf2/read.c (read_attribute_value): Update.
13561 (dwarf2_per_objfile::read_line_string): Rename from
13562 read_indirect_line_string.
13563 (read_formatted_entries): Update.
13564
2ef46c2f
TT
135652020-03-26 Tom Tromey <tom@tromey.com>
13566
13567 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13568 variable.
13569
4f9c1eda
TT
135702020-03-26 Tom Tromey <tom@tromey.com>
13571
13572 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13573 const.
13574 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13575 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13576 parameter const.
13577
5a0e026f
TT
135782020-03-26 Tom Tromey <tom@tromey.com>
13579
13580 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13581 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13582 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13583 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13584
8844c11b
TT
135852020-03-26 Tom Tromey <tom@tromey.com>
13586
13587 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13588 file_names_size, file_full_name, file_file_name>: Use const.
13589 <file_name_at, file_names>: Add const overload.
13590 * dwarf2/line-header.c (line_header::file_file_name)
13591 (line_header::file_full_name): Update.
13592
c90ec28a
TT
135932020-03-26 Tom Tromey <tom@tromey.com>
13594
13595 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13596 (macro_start_file, consume_improper_spaces)
13597 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13598 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13599 (dwarf_decode_macros): Move to macro.c.
13600 * dwarf2/macro.c: New file.
13601 * dwarf2/macro.h: New file.
13602 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13603
4f44ae6c
TT
136042020-03-26 Tom Tromey <tom@tromey.com>
13605
13606 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13607 method.
13608 * dwarf2/section.c: New method. From
13609 read_indirect_string_at_offset_from.
13610 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13611 (read_indirect_string_at_offset_from): Move to section.c.
13612 (read_indirect_string_at_offset): Rewrite.
13613 (read_indirect_line_string_at_offset): Remove.
13614 (read_indirect_string, read_indirect_line_string)
13615 (dwarf_decode_macro_bytes): Update.
13616
a0194fa8
TT
136172020-03-26 Tom Tromey <tom@tromey.com>
13618
13619 * dwarf2/section.h (struct dwarf2_section_info)
13620 <overload_complaint>: Declare.
13621 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13622 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13623 Rename from dwarf2_section_buffer_overflow_complaint.
13624 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13625 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13626
3d27bbdb
TT
136272020-03-26 Tom Tromey <tom@tromey.com>
13628
13629 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13630 Declare.
13631 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13632 Move from read.c.
13633 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13634 to section.c.
13635
9eac9650
TT
136362020-03-26 Tom Tromey <tom@tromey.com>
13637
13638 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13639
bf80d710
TT
136402020-03-26 Tom Tromey <tom@tromey.com>
13641
13642 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13643 "builder".
13644 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13645 parameter.
13646 (dwarf_decode_macros): Update.
13647
0314b390
TT
136482020-03-26 Tom Tromey <tom@tromey.com>
13649
13650 * dwarf2/read.c (read_attribute_value): Update.
13651 (read_indirect_string_from_dwz): Move to dwz.c; change into
13652 method.
13653 (dwarf_decode_macro_bytes): Update.
13654 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13655 * dwarf2/dwz.c: New file.
13656 * Makefile.in (COMMON_SFILES): Add dwz.c.
13657
9fda78b6
TT
136582020-03-26 Tom Tromey <tom@tromey.com>
13659
13660 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13661 * dwarf2/read.c: Add include.
13662 * dwarf2/index-write.c: Add include.
13663 * dwarf2/index-cache.c: Add include.
13664 * dwarf2/dwz.h: New file.
13665
33aa3c10
TT
136662020-03-25 Tom Tromey <tom@tromey.com>
13667
13668 * compile/compile-object-load.c (get_out_value_type): Mention
13669 correct symbol name in error message.
13670
d503b685
HD
136712020-03-25 Hannes Domani <ssbssa@yahoo.de>
13672
13673 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13674
7b1eff95
TV
136752020-03-25 Tom de Vries <tdevries@suse.de>
13676
13677 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13678 * symmisc.c (dump_symtab_1): Print user and includes fields.
13679 (maintenance_info_symtabs): Same.
13680
dd895392
AB
136812020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13682
13683 PR gdb/25534
13684 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13685 (riscv_regcache_cooked_write): New function.
13686 (riscv_push_dummy_call): Use new function.
13687 (riscv_return_value): Likewise.
13688
5ab2fbf1
SM
136892020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13690
13691 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13692 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13693 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13694 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13695 * infrun.c (follow_fork): Likewise.
13696 (follow_fork_inferior): Likewise.
13697 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13698 * linux-nat.h (class linux_nat_target): Likewise.
13699 * remote.c (class remote_target) <follow_fork>: Likewise.
13700 (remote_target::follow_fork): Likewise.
13701 * target-delegates.c: Re-generate.
13702 * target.c (default_follow_fork): Likewise.
13703 (target_follow_fork): Likewise.
13704 * target.h (struct target_ops) <follow_fork>: Likewise.
13705 (target_follow_fork): Likewise.
13706
a64fafb5
TV
137072020-03-24 Tom de Vries <tdevries@suse.de>
13708
13709 * psymtab.c (maintenance_info_psymtabs): Print user field.
13710
fe26d3a3
TT
137112020-03-20 Tom Tromey <tromey@adacore.com>
13712
13713 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13714 const.
13715 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13716 const.
13717
c884cc46
SM
137182020-03-20 Simon Marchi <simon.marchi@efficios.com>
13719
13720 * ptrace.m4: Don't check for ptrace declaration.
13721 * config.in: Re-generate.
13722 * configure: Re-generate.
13723 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13724 not defined.
13725
1ff700c2
KR
137262020-03-20 Kamil Rytarowski <n54@gmx.com>
13727
13728 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13729 `PTRACE_TYPE_RET'.
13730 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13731 * sparc-nat.c (gdb_ptrace): Likewise.
13732 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13733
f7d4f0b1
TT
137342020-03-20 Tom Tromey <tromey@adacore.com>
13735
13736 * c-exp.y (lex_one_token): Fix assert.
13737
f67210ff
TT
137382020-03-20 Tom Tromey <tromey@adacore.com>
13739
13740 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13741 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13742 strncpy call.
13743
1773be9e
TT
137442020-03-20 Tom Tromey <tromey@adacore.com>
13745
13746 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13747
70304be9
TT
137482020-03-20 Tom Tromey <tromey@adacore.com>
13749
13750 * ada-valprint.c (print_variant_part): Remove parameters; switch
13751 to value-based API.
13752 (print_field_values): Likewise.
13753 (ada_val_print_struct_union): Likewise.
13754 (ada_value_print_1): Update.
13755
9faa006d
KR
137562020-03-20 Kamil Rytarowski <n54@gmx.com>
13757
13758 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13759 nbsd_nat_target instead of inf_ptrace_target.
13760 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13761 nbsd_nat_target.
13762
4a90f062
KR
137632020-03-20 Kamil Rytarowski <n54@gmx.com>
13764
13765 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13766 it to the ptrace call.
13767 * (store_registers): Likewise.
13768
137692020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13770
13771 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13772 it to the ptrace call.
13773 * (store_registers): Likewise.
13774
2d07da27
LM
137752020-03-19 Luis Machado <luis.machado@linaro.org>
13776
13777 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13778 valid, fetch vg value from ptrace.
13779
f09db380
KR
137802020-03-19 Kamil Rytarowski <n54@gmx.com>
13781 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13782 * inf-ptrace.c: Likewise.
13783 * (gdb_ptrace): Add.
13784 * (inf_ptrace_target::resume): Update.
13785 * (inf_ptrace_target::xfer_partial): Likewise.
13786 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13787 * (inf_ptrace_peek_poke): Update.
13788
fcc7376e
KR
137892020-03-19 Kamil Rytarowski <n54@gmx.com>
13790
13791 * x86-bsd-nat.c (gdb_ptrace): New.
13792 * (x86bsd_dr_set): Add new argument `ptid'.
13793 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13794 x86bsd_dr_set_addr): Update.
13795
cada5fc9
AB
137962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13797
13798 * remote.c (remote_target::process_stop_reply): Handle events for
13799 all threads differently.
13800
19a2740f
AB
138012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13802
13803 * completer.c (completion_tracker::remove_completion): Define new
13804 function.
13805 * completer.h (completion_tracker::remove_completion): Declare new
13806 function.
13807 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13808 when adding a C++ function symbol.
13809
724fd9ba
AB
138102020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13811
13812 * completer.c (completion_tracker::completion_hash_entry): Define
13813 new class.
13814 (advance_to_filename_complete_word_point): Call
13815 recompute_lowest_common_denominator.
13816 (completion_tracker::completion_tracker): Call discard_completions
13817 to setup the hash table.
13818 (completion_tracker::discard_completions): Allow for being called
13819 from the constructor, pass new equal function, and element deleter
13820 when constructing the hash table. Initialise new class member
13821 variables.
13822 (completion_tracker::maybe_add_completion): Remove use of
13823 m_entries_vec, and store more information into m_entries_hash.
13824 (completion_tracker::recompute_lcd_visitor): New function, most
13825 content taken from...
13826 (completion_tracker::recompute_lowest_common_denominator):
13827 ...here, this now just visits each item in the hash calling the
13828 above visitor.
13829 (completion_tracker::build_completion_result): Remove use of
13830 m_entries_vec, call recompute_lowest_common_denominator.
13831 * completer.h (completion_tracker::have_completions): Remove use
13832 of m_entries_vec.
13833 (completion_tracker::completion_hash_entry): Declare new class.
13834 (completion_tracker::recompute_lowest_common_denominator): Change
13835 function signature.
13836 (completion_tracker::recompute_lcd_visitor): Declare new function.
13837 (completion_tracker::m_entries_vec): Delete.
13838 (completion_tracker::m_entries_hash): Initialize to NULL.
13839 (completion_tracker::m_lowest_common_denominator_valid): New
13840 member variable.
13841 (completion_tracker::m_lowest_common_denominator_max_length): New
13842 member variable.
13843
5a82b8a1
KR
138442020-03-17 Kamil Rytarowski <n54@gmx.com>
13845
13846 * regformats/regdef.h: Put reg in gdb namespace.
13847
fb516a69
KR
138482020-03-17 Kamil Rytarowski <n54@gmx.com>
13849
13850 * i386-bsd-nat.c (gdb_ptrace): New.
13851 * (i386bsd_fetch_inferior_registers,
13852 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13853 * (i386bsd_fetch_inferior_registers,
13854 i386bsd_store_inferior_registers) Use gdb_ptrace.
13855
1c0aa1fb
KR
138562020-03-17 Kamil Rytarowski <n54@gmx.com>
13857
13858 * amd64-bsd-nat.c (gdb_ptrace): New.
13859 * (amd64bsd_fetch_inferior_registers,
13860 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13861 * (amd64bsd_fetch_inferior_registers,
13862 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13863
5ccd2fb7
KR
138642020-03-17 Kamil Rytarowski <n54@gmx.com>
13865
13866 * user-regs.c (user_reg::read): Rename to...
13867 (user_reg::xread): ...this.
13868 * (append_user_reg): Rename argument `read' to `xread'.
13869 * (user_reg_add_builtin): Likewise.
13870 * (user_reg_add): Likewise.
13871 * (value_of_user_reg): Likewise.
13872
2108a63a
KR
138732020-03-17 Kamil Rytarowski <n54@gmx.com>
13874
13875 * sparc-nat.c (gdb_ptrace): New.
13876 * sparc-nat.c (sparc_fetch_inferior_registers)
13877 (sparc_store_inferior_registers) Remove obsolete comment.
13878 * sparc-nat.c (sparc_fetch_inferior_registers)
13879 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13880 * sparc-nat.c (sparc_fetch_inferior_registers)
13881 (sparc_store_inferior_registers) Use gdb_ptrace.
13882
a225c9a8
KR
138832020-03-17 Kamil Rytarowski <n54@gmx.com>
13884
13885 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13886 it to the ptrace call.
13887 * sh-nbsd-nat.c (store_registers): Likewise.
13888
98097623
KR
138892020-03-17 Kamil Rytarowski <n54@gmx.com>
13890
13891 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13892 nbsd_nat_target instead of inf_ptrace_target.
13893 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13894 nbsd_nat_target.
13895
9e38d619
KR
138962020-03-17 Kamil Rytarowski <n54@gmx.com>
13897
13898 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13899
a2ecbe9f
KR
139002020-03-17 Kamil Rytarowski <n54@gmx.com>
13901
13902 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13903 <sys/sysctl.h>.
13904 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
13905
58990295
TV
139062020-03-17 Tom de Vries <tdevries@suse.de>
13907
13908 PR gdb/23710
13909 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
13910 fields.
13911 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13912 fields.
13913 (process_imported_unit_die): Skip import of c++ CUs.
13914
771dd3a8
TT
139152020-03-16 Tom Tromey <tom@tromey.com>
13916
13917 * p-valprint.c (pascal_object_print_value): Initialize
13918 base_value.
13919
817a7585
AK
139202020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13921 Shahab Vahedi <shahab@synopsys.com>
13922
13923 * Makefile.in: Add arch/arc.o
13924 * configure.tgt: Likewise.
13925 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13926 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13927 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13928 * arc-tdep.h (arc_read_description): Add proto type.
13929 * arch/arc.c: New file.
13930 * arch/arc.h: Likewise.
13931 * features/Makefile: Replace old target descriptions with new.
13932 * features/arc-arcompact.c: Remove.
13933 * features/arc-arcompact.xml: Likewise.
13934 * features/arc-v2.c: Likewise
13935 * features/arc-v2.xml: Likewise
13936 * features/arc/aux-arcompact.xml: New file.
13937 * features/arc/aux-v2.xml: Likewise.
13938 * features/arc/core-arcompact.xml: Likewise.
13939 * features/arc/core-v2.xml: Likewise.
13940 * features/arc/aux-arcompact.c: Generate.
13941 * features/arc/aux-v2.c: Likewise.
13942 * features/arc/core-arcompact.c: Likewise.
13943 * features/arc/core-v2.c: Likewise.
13944 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13945
67430cd0
TT
139462020-03-16 Tom Tromey <tromey@adacore.com>
13947
13948 PR gdb/25663:
13949 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13950 putting value into bcache.
13951
30efb6c7
SM
139522020-03-16 Simon Marchi <simon.marchi@efficios.com>
13953
13954 PR gdb/21500
13955 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13956 to...
13957 (amd64_windows_init_abi_common): ... this. Don't set size of
13958 long type.
13959 (amd64_windows_init_abi): New function.
13960 (amd64_cygwin_init_abi): New function.
13961 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13962 the Cygwin OS ABI.
13963 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13964 comment.
13965
8db52437
SM
139662020-03-16 Simon Marchi <simon.marchi@efficios.com>
13967
13968 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13969 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13970 (pe_import_directory_entry): New struct type.
13971 (is_linked_with_cygwin_dll): New function.
13972 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13973 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13974 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13975
5982a56a
SM
139762020-03-16 Simon Marchi <simon.marchi@efficios.com>
13977
13978 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13979 i386_cygwin_core_osabi_sniffer.
13980
7a1998df
SM
139812020-03-16 Simon Marchi <simon.marchi@efficios.com>
13982
13983 * i386-cygwin-tdep.c: Rename to...
13984 * i386-windows-tdep.c: ... this.
13985 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13986 i386-windows-tdep.c.
13987 * configure.tgt: Likewise.
13988
053205cc
SM
139892020-03-16 Simon Marchi <simon.marchi@efficios.com>
13990
13991 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13992 * osabi.c (gdb_osabi_names): Add "Windows".
13993 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13994 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13995 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13996 i386_cygwin_osabi_sniffer.
13997 (_initialize_i386_cygwin_tdep): Register OS ABI
13998 GDB_OSABI_WINDOWS for i386.
13999 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
14000 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
14001 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
14002 for x86-64.
14003 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
14004 when the target matches '*-*-mingw*'.
14005
fe4b2ee6
SM
140062020-03-16 Simon Marchi <simon.marchi@efficios.com>
14007
14008 * defs.h (enum gdb_osabi): Move to...
14009 * osabi.h (enum gdb_osabi): ... here.
14010 * gdbarch.sh: Include osabi.h in gdbarch.h.
14011 * gdbarch.h: Re-generate.
14012
cb9b645d
SM
140132020-03-16 Simon Marchi <simon.marchi@efficios.com>
14014
14015 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
14016 function.
14017 (_initialize_amd64_windows_tdep): Register osabi sniffer.
14018
3293bbaf
TT
140192020-03-14 Tom Tromey <tom@tromey.com>
14020
14021 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
14022 for C++.
14023 (c_type_print_modifier): Likewise. Add "language" parameter.
14024 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
14025 (c_type_print_base_1): Update.
14026 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
14027 constants.
14028 * type-stack.c (type_stack::insert): Handle tp_atomic and
14029 tp_restrict.
14030 (type_stack::follow_type_instance_flags): Likewise.
14031 (type_stack::follow_types): Likewise. Merge type-following code.
14032 * c-exp.y (RESTRICT, ATOMIC): New tokens.
14033 (space_identifier, cv_with_space_id)
14034 (const_or_volatile_or_space_identifier_noopt)
14035 (const_or_volatile_or_space_identifier): Remove.
14036 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14037 rules.
14038 (ptr_operator, typebase): Update.
14039 (enum token_flag) <FLAG_C>: New constant.
14040 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14041 "_Atomic".
14042 (lex_one_token): Handle FLAG_C.
14043
154151a6
KR
140442020-03-14 Kamil Rytarowski <n54@gmx.com>
14045
14046 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14047 it to the ptrace call.
14048 * m68k-bsd-nat.c (store_registers): Likewise.
14049
bc107784
KR
140502020-03-14 Kamil Rytarowski <n54@gmx.com>
14051
14052 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14053 gdb_byte *.
14054 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14055 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14056 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14057
01a80117
KR
140582020-03-14 Kamil Rytarowski <n54@gmx.com>
14059
14060 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14061 nbsd_nat_target instead of inf_ptrace_target.
14062 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14063 nbsd_nat_target.
14064
f90280ca
KR
140652020-03-14 Kamil Rytarowski <n54@gmx.com>
14066
14067 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14068 register_t.
14069
6def66f1
KR
140702020-03-14 Kamil Rytarowski <n54@gmx.com>
14071
14072 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14073 it to the ptrace call.
14074 * alpha-bsd-nat.c (store_registers): Likewise.
14075
66eaca97
KR
140762020-03-14 Kamil Rytarowski <n54@gmx.com>
14077
14078 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14079 includes.
14080 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14081 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14082 fill_fpregset): Likewise.
14083
4fed520b
KR
140842020-03-14 Kamil Rytarowski <n54@gmx.com>
14085
14086 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14087 nbsd_nat_target instead of inf_ptrace_target.
14088 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14089 nbsd_nat_target.
14090
2190cf06
KR
140912020-03-14 Kamil Rytarowski <n54@gmx.com>
14092
14093 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14094 register_t.
14095
75c56d3d
KR
140962020-03-14 Kamil Rytarowski <n54@gmx.com>
14097
14098 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14099 it to the ptrace call.
14100 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14101 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14102 * arm-nbsd-nat.c (store_register): Likewise.
14103 * arm-nbsd-nat.c (store_regs): Likewise.
14104 * arm-nbsd-nat.c (store_fp_register): Likewise.
14105 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14106
6018d381
KR
141072020-03-14 Kamil Rytarowski <n54@gmx.com>
14108
14109 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14110 nbsd_nat_target instead of inf_ptrace_target.
14111 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14112 nbsd_nat_target.
14113
013f99f0
KR
141142020-03-14 Kamil Rytarowski <n54@gmx.com>
14115
14116 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14117 it to the ptrace call.
14118 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14119
12753073
KR
141202020-03-14 Kamil Rytarowski <n54@gmx.com>
14121
6227b330
KR
14122 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14123 it to the ptrace call.
14124 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14125
141262020-03-14 Kamil Rytarowski <n54@gmx.com>
14127
14128 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14129 gdb_byte *.
12753073
KR
14130 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14131
d5be5fa4
KR
141322020-03-14 Kamil Rytarowski <n54@gmx.com>
14133
14134 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14135 instead of inf_ptrace_target.
14136 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14137 nbsd_nat_target.
14138
8110f842
KR
141392020-03-14 Kamil Rytarowski <n54@gmx.com>
14140
14141 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14142 register_t.
14143
52feded7
KR
141442020-03-14 Kamil Rytarowski <n54@gmx.com>
14145
14146 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14147 register_t.
14148
25567eee
KR
141492020-03-14 Kamil Rytarowski <n54@gmx.com>
14150
14151 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14152 register_t.
14153
426a9c18
TT
141542020-03-13 Tom Tromey <tom@tromey.com>
14155
14156 * value.h (val_print): Don't declare.
14157 * valprint.h (val_print_array_elements)
14158 (val_print_scalar_formatted, generic_val_print): Don't declare.
14159 * valprint.c (generic_val_print_array): Take a struct value.
14160 (generic_val_print_ptr, generic_val_print_memberptr)
14161 (generic_val_print_bool, generic_val_print_int)
14162 (generic_val_print_char, generic_val_print_complex)
14163 (generic_val_print): Remove.
14164 (generic_value_print): Update.
14165 (do_val_print): Remove unused parameters. Don't call
14166 la_val_print.
14167 (val_print): Remove.
14168 (common_val_print): Update. Don't call value_check_printable.
14169 (val_print_scalar_formatted, val_print_array_elements): Remove.
14170 * rust-lang.c (rust_val_print): Remove.
14171 (rust_language_defn): Update.
14172 * p-valprint.c (pascal_val_print): Remove.
14173 (pascal_value_print_inner): Update.
14174 (pascal_object_print_val_fields, pascal_object_print_val):
14175 Remove.
14176 (pascal_object_print_static_field): Update.
14177 * p-lang.h (pascal_val_print): Don't declare.
14178 * p-lang.c (pascal_language_defn): Update.
14179 * opencl-lang.c (opencl_language_defn): Update.
14180 * objc-lang.c (objc_language_defn): Update.
14181 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14182 * m2-lang.h (m2_val_print): Don't declare.
14183 * m2-lang.c (m2_language_defn): Update.
14184 * language.h (struct language_defn) <la_val_print>: Remove.
14185 * language.c (unk_lang_value_print_inner): Rename. Change
14186 argument types.
14187 (unknown_language_defn, auto_language_defn): Update.
14188 * go-valprint.c (go_val_print): Remove.
14189 * go-lang.h (go_val_print): Don't declare.
14190 * go-lang.c (go_language_defn): Update.
14191 * f-valprint.c (f_val_print): Remove.
14192 * f-lang.h (f_value_print): Don't declare.
14193 * f-lang.c (f_language_defn): Update.
14194 * d-valprint.c (d_val_print): Remove.
14195 * d-lang.h (d_value_print): Don't declare.
14196 * d-lang.c (d_language_defn): Update.
14197 * cp-valprint.c (cp_print_value_fields)
14198 (cp_print_value_fields_rtti, cp_print_value): Remove.
14199 (cp_print_static_field): Update.
14200 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14201 (c_val_print_struct, c_val_print_union, c_val_print_int)
14202 (c_val_print_memberptr, c_val_print): Remove.
14203 * c-lang.h (c_val_print_array, cp_print_value_fields)
14204 (cp_print_value_fields_rtti): Don't declare.
14205 * c-lang.c (c_language_defn, cplus_language_defn)
14206 (asm_language_defn, minimal_language_defn): Update.
14207 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14208 (ada_val_print_enum): Take a struct value.
14209 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14210 (ada_val_print): Remove.
14211 (ada_value_print_1): Update.
14212 (printable_val_type): Remove.
14213 * ada-lang.h (ada_val_print): Don't declare.
14214 * ada-lang.c (ada_language_defn): Update.
14215
42331a1e
TT
142162020-03-13 Tom Tromey <tom@tromey.com>
14217
14218 * valprint.c (do_val_print): Update.
14219 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14220 a struct value.
14221 (value_to_value_object_no_release): Declare.
14222 * python/py-value.c (value_to_value_object_no_release): New
14223 function.
14224 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14225 struct value.
14226 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14227 function.
14228 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14229 a struct value.
14230 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14231 Declare.
14232 (gdbscm_apply_val_pretty_printer): Take a struct value.
14233 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14234 value.
14235 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14236 value.
14237 * extension-priv.h (struct extension_language_ops)
14238 <apply_val_pretty_printer>: Take a struct value.
14239 * cp-valprint.c (cp_print_value): Create a struct value.
14240 (cp_print_value): Update.
14241
3a916a97
TT
142422020-03-13 Tom Tromey <tom@tromey.com>
14243
14244 * ada-valprint.c (print_field_values): Call common_val_print.
14245
b59eac37
TT
142462020-03-13 Tom Tromey <tom@tromey.com>
14247
14248 * ada-valprint.c (val_print_packed_array_elements): Remove
14249 bitoffset and val parameters. Call common_val_print.
14250 (ada_val_print_string): Remove offset, address, and original_value
14251 parameters.
14252 (ada_val_print_array): Update.
14253 (ada_value_print_array): New function.
14254 (ada_value_print_1): Call it.
14255
03371129
TT
142562020-03-13 Tom Tromey <tom@tromey.com>
14257
14258 * ada-valprint.c (ada_value_print): Use common_val_print.
14259
2e088f8b
TT
142602020-03-13 Tom Tromey <tom@tromey.com>
14261
14262 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14263
39ef85a8
TT
142642020-03-13 Tom Tromey <tom@tromey.com>
14265
14266 * ada-valprint.c (ada_value_print_num): New function.
14267 (ada_value_print_1): Use it.
14268
b9fa6e07
TT
142692020-03-13 Tom Tromey <tom@tromey.com>
14270
14271 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14272
416595d6
TT
142732020-03-13 Tom Tromey <tom@tromey.com>
14274
14275 * ada-valprint.c (ada_value_print_ptr): New function.
14276 (ada_value_print_1): Use it.
14277
5b5e15ec
TT
142782020-03-13 Tom Tromey <tom@tromey.com>
14279
14280 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14281 call common_val_print.
14282 (ada_val_print_1): Update.
14283 (ada_value_print_1): New function.
14284 (ada_value_print_inner): Rewrite.
14285
fbf54e75
TT
142862020-03-13 Tom Tromey <tom@tromey.com>
14287
14288 * cp-valprint.c (cp_print_value_fields): Update.
14289 (cp_print_value): New function.
14290
64b653ca
TT
142912020-03-13 Tom Tromey <tom@tromey.com>
14292
14293 * m2-valprint.c (m2_value_print_inner): Use
14294 cp_print_value_fields.
14295 * cp-valprint.c (cp_print_value_fields): New function.
14296 * c-valprint.c (c_value_print_struct): New function.
14297 (c_value_print_inner): Use c_value_print_struct.
14298 * c-lang.h (cp_print_value_fields): Declare.
14299
6999f067
TT
143002020-03-13 Tom Tromey <tom@tromey.com>
14301
14302 * c-valprint.c (c_value_print_array): New function.
14303 (c_value_print_inner): Use it.
14304
ce80b8bd
TT
143052020-03-13 Tom Tromey <tom@tromey.com>
14306
14307 * c-valprint.c (c_value_print_memberptr): New function.
14308 (c_value_print_inner): Use it.
14309
2faac269
TT
143102020-03-13 Tom Tromey <tom@tromey.com>
14311
14312 * c-valprint.c (c_value_print_int): New function.
14313 (c_value_print_inner): Use it.
14314
da3e2c29
TT
143152020-03-13 Tom Tromey <tom@tromey.com>
14316
14317 * c-valprint.c (c_value_print_ptr): New function.
14318 (c_value_print_inner): Use it.
14319
50836231
TT
143202020-03-13 Tom Tromey <tom@tromey.com>
14321
14322 * c-valprint.c (c_value_print_inner): Rewrite.
14323
4f412b6e
TT
143242020-03-13 Tom Tromey <tom@tromey.com>
14325
14326 * valprint.c (generic_value_print_complex): New function.
14327 (generic_value_print): Use it.
14328
f5354008
TT
143292020-03-13 Tom Tromey <tom@tromey.com>
14330
14331 * valprint.c (generic_val_print_float): Don't call
14332 val_print_scalar_formatted.
14333 (generic_val_print, generic_value_print): Update.
14334
3eec3b05
TT
143352020-03-13 Tom Tromey <tom@tromey.com>
14336
14337 * valprint.c (generic_value_print_char): New function
14338 (generic_value_print): Use it.
14339
fdddfccb
TT
143402020-03-13 Tom Tromey <tom@tromey.com>
14341
14342 * valprint.c (generic_value_print_int): New function.
14343 (generic_value_print): Use it.
14344
6dde7521
TT
143452020-03-13 Tom Tromey <tom@tromey.com>
14346
14347 * valprint.c (generic_value_print_bool): New function.
14348 (generic_value_print): Use it.
14349
4112d2e6
TT
143502020-03-13 Tom Tromey <tom@tromey.com>
14351
14352 * valprint.c (generic_val_print_func): Simplify.
14353 (generic_val_print, generic_value_print): Update.
14354
65786af6
TT
143552020-03-13 Tom Tromey <tom@tromey.com>
14356
14357 * valprint.c (generic_val_print_flags): Remove.
14358 (generic_val_print, generic_value_print): Update.
14359 (val_print_type_code_flags): Add original_value parameter.
14360
40f3ce18
TT
143612020-03-13 Tom Tromey <tom@tromey.com>
14362
14363 * valprint.c (generic_val_print): Update.
14364 (generic_value_print): Update.
14365 * valprint.c (generic_val_print_enum): Don't call
14366 val_print_scalar_formatted.
14367
2a5b130b
TT
143682020-03-13 Tom Tromey <tom@tromey.com>
14369
14370 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14371 * valprint.c (generic_value_print_ptr): New function.
14372
abc66ce9
TT
143732020-03-13 Tom Tromey <tom@tromey.com>
14374
14375 * valprint.c (generic_value_print): Rewrite.
14376
07a32858
TT
143772020-03-13 Tom Tromey <tom@tromey.com>
14378
14379 * p-valprint.c (pascal_object_print_value_fields)
14380 (pascal_object_print_value): New functions.
14381
64d64d3a
TT
143822020-03-13 Tom Tromey <tom@tromey.com>
14383
14384 * p-valprint.c (pascal_value_print_inner): Rewrite.
14385
6a95a1f5
TT
143862020-03-13 Tom Tromey <tom@tromey.com>
14387
14388 * f-valprint.c (f_value_print_innner): Rewrite.
14389
59fcdac6
TT
143902020-03-13 Tom Tromey <tom@tromey.com>
14391
14392 * m2-valprint.c (m2_print_unbounded_array): New overload.
14393 (m2_print_unbounded_array): Update.
14394 (m2_print_array_contents): Take a struct value.
14395 (m2_value_print_inner): Rewrite.
14396
d133c3e1
TT
143972020-03-13 Tom Tromey <tom@tromey.com>
14398
14399 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14400 (d_value_print_inner): New function.
14401 * d-lang.h (d_value_print_inner): Declare.
14402 * d-lang.c (d_language_defn): Use d_value_print_inner.
14403
23b0f06b
TT
144042020-03-13 Tom Tromey <tom@tromey.com>
14405
14406 * go-valprint.c (go_value_print_inner): New function.
14407 * go-lang.h (go_value_print_inner): Declare.
14408 * go-lang.c (go_language_defn): Use go_value_print_inner.
14409
5f56f7cb
TT
144102020-03-13 Tom Tromey <tom@tromey.com>
14411
14412 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14413 API.
14414 (rust_val_print): Rewrite.
14415 (rust_value_print_inner): New function, from rust_val_print.
14416 (rust_language_defn): Use rust_value_print_inner.
14417
26792ee0
TT
144182020-03-13 Tom Tromey <tom@tromey.com>
14419
14420 * ada-valprint.c (ada_value_print_inner): New function.
14421 * ada-lang.h (ada_value_print_inner): Declare.
14422 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14423
24051bbe
TT
144242020-03-13 Tom Tromey <tom@tromey.com>
14425
14426 * f-valprint.c (f_value_print_innner): New function.
14427 * f-lang.h (f_value_print_innner): Declare.
14428 * f-lang.c (f_language_defn): Use f_value_print_innner.
14429
c0941be6
TT
144302020-03-13 Tom Tromey <tom@tromey.com>
14431
14432 * p-valprint.c (pascal_value_print_inner): New function.
14433 * p-lang.h (pascal_value_print_inner): Declare.
14434 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14435
62c4663d
TT
144362020-03-13 Tom Tromey <tom@tromey.com>
14437
14438 * m2-valprint.c (m2_value_print_inner): New function.
14439 * m2-lang.h (m2_value_print_inner): Declare.
14440 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14441
62182190
TT
144422020-03-13 Tom Tromey <tom@tromey.com>
14443
14444 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14445 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14446 * c-valprint.c (c_value_print_inner): New function.
14447 * c-lang.h (c_value_print_inner): Declare.
14448 * c-lang.c (c_language_defn, cplus_language_defn)
14449 (asm_language_defn, minimal_language_defn): Use
14450 c_value_print_inner.
14451
1e592a8a
TT
144522020-03-13 Tom Tromey <tom@tromey.com>
14453
14454 * p-valprint.c (pascal_object_print_value_fields): Now static.
14455 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14456
7fe471e9
TT
144572020-03-13 Tom Tromey <tom@tromey.com>
14458
14459 * c-valprint.c (c_val_print_array): Simplify.
14460
d121c6ce
TT
144612020-03-13 Tom Tromey <tom@tromey.com>
14462
14463 * valprint.c (value_print_array_elements): New function.
14464 * valprint.h (value_print_array_elements): Declare.
14465
4dba70ee
TT
144662020-03-13 Tom Tromey <tom@tromey.com>
14467
14468 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14469 * mips-tdep.c (mips_print_register): Use
14470 value_print_scalar_formatted.
14471
4f9ae810
TT
144722020-03-13 Tom Tromey <tom@tromey.com>
14473
14474 * valprint.h (value_print_scalar_formatted): Declare.
14475 * valprint.c (value_print_scalar_formatted): New function.
14476
156bfec9
TT
144772020-03-13 Tom Tromey <tom@tromey.com>
14478
14479 * valprint.h (generic_value_print): Declare.
14480 * valprint.c (generic_value_print): New function.
14481
2b4e573d
TT
144822020-03-13 Tom Tromey <tom@tromey.com>
14483
14484 * valprint.c (do_val_print): Call la_value_print_inner, if
14485 available.
14486 * rust-lang.c (rust_language_defn): Update.
14487 * p-lang.c (pascal_language_defn): Update.
14488 * opencl-lang.c (opencl_language_defn): Update.
14489 * objc-lang.c (objc_language_defn): Update.
14490 * m2-lang.c (m2_language_defn): Update.
14491 * language.h (struct language_defn) <la_value_print_inner>: New
14492 member.
14493 * language.c (unknown_language_defn, auto_language_defn): Update.
14494 * go-lang.c (go_language_defn): Update.
14495 * f-lang.c (f_language_defn): Update.
14496 * d-lang.c (d_language_defn): Update.
14497 * c-lang.c (c_language_defn, cplus_language_defn)
14498 (asm_language_defn, minimal_language_defn): Update.
14499 * ada-lang.c (ada_language_defn): Update.
14500
a1f6a07c
TT
145012020-03-13 Tom Tromey <tom@tromey.com>
14502
14503 * c-valprint.c (c_value_print): Use common_val_print.
14504
410cf315
TT
145052020-03-13 Tom Tromey <tom@tromey.com>
14506
14507 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14508
72a45c93
TT
145092020-03-13 Tom Tromey <tom@tromey.com>
14510
14511 * f-valprint.c (f77_print_array_1, f_val_print): Use
14512 common_val_print.
14513
040f66bd
TT
145142020-03-13 Tom Tromey <tom@tromey.com>
14515
14516 * riscv-tdep.c (riscv_print_one_register_info): Use
14517 common_val_print.
14518
a6e05a6c
TT
145192020-03-13 Tom Tromey <tom@tromey.com>
14520
14521 * mi/mi-main.c (output_register): Use common_val_print.
14522
3444c526
TT
145232020-03-13 Tom Tromey <tom@tromey.com>
14524
14525 * infcmd.c (default_print_one_register_info): Use
14526 common_val_print.
14527
c2a44efe
TT
145282020-03-13 Tom Tromey <tom@tromey.com>
14529
14530 * valprint.h (common_val_print_checked): Declare.
14531 * valprint.c (common_val_print_checked): New function.
14532 * stack.c (print_frame_arg): Use common_val_print_checked.
14533
b0c26e99
TT
145342020-03-13 Tom Tromey <tom@tromey.com>
14535
14536 * valprint.c (do_val_print): New function, from val_print.
14537 (val_print): Use do_val_print.
14538 (common_val_print): Use do_val_print.
14539
ce3acbe9
TT
145402020-03-13 Tom Tromey <tom@tromey.com>
14541
14542 * valprint.c (value_print): Use scoped_value_mark.
14543
96c7f873
TV
145442020-03-13 Tom de Vries <tdevries@suse.de>
14545
14546 PR symtab/25646
14547 * psymtab.c (partial_symtab::partial_symtab): Don't set
14548 globals_offset and statics_offset. Push element onto
14549 current_global_psymbols and current_static_psymbols stacks.
14550 (concat): New function.
14551 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14552 element from current_global_psymbols and current_static_psymbols
14553 stacks. Concat popped elements to global_psymbols and
14554 static_symbols.
14555 (add_psymbol_to_list): Use current_global_psymbols and
14556 current_static_psymbols stacks.
14557 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14558 current_static_psymbols fields.
14559
6ba0a321
CB
145602020-03-12 Christian Biesinger <cbiesinger@google.com>
14561
14562 * corelow.c (sniff_core_bfd): Remove.
14563 (class core_target) <m_core_vec>: Remove.
14564 (core_target::core_target): Update.
14565 (core_file_fns): Remove.
14566 (deprecated_add_core_fns): Remove.
14567 (default_core_sniffer): Remove.
14568 (sniff_core_bfd): Remove.
14569 (default_check_format): Remove.
14570 (gdb_check_format): Remove.
14571 (core_target_open): Update.
14572 (core_target::get_core_register_section): Update.
14573 (get_core_registers_cb): Update.
14574 (core_target::fetch_registers): Update.
14575 * gdbcore.h (struct core_fns): Remove.
14576 (deprecated_add_core_fns): Remove.
14577 (default_core_sniffer): Remove.
14578 (default_check_format): Remove.
14579
227031b2
TT
145802020-03-12 Tom Tromey <tom@tromey.com>
14581
14582 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14583 CORE_ADDR.
14584 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14585
53807e9f
TT
145862020-03-12 Tom Tromey <tom@tromey.com>
14587
14588 * remote.c (remote_target::download_tracepoint)
14589 (remote_target::enable_tracepoint)
14590 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14591 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14592 sprintf_vma.
14593
64f25102
TT
145942020-03-12 Tom Tromey <tom@tromey.com>
14595
14596 * symfile-mem.c: Update CORE_ADDR size assert.
14597
272cd5a3
SM
145982020-03-12 Simon Marchi <simon.marchi@efficios.com>
14599
14600 * selftest.m4: Move to gdbsupport/.
14601 * acinclude.m4: Update path to selftest.m4.
14602
74cd3f9d
SM
146032020-03-12 Simon Marchi <simon.marchi@efficios.com>
14604
14605 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14606 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14607 gdbarch-selfselftests.c and selftest-arch.c.
14608 (SUBDIR_UNITTESTS_OBS): Rename to...
14609 (SELFTESTS_OBS): ... this.
14610 (COMMON_SFILES): Remove disasm-selftests.c and
14611 gdbarch-selftests.c.
14612 * configure.ac: Don't add selftest-arch.{c,o} to
14613 CONFIG_{SRCS,OBS}.
14614 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14615 preprocessor conditions.
14616
db6878ac
SM
146172020-03-12 Simon Marchi <simon.marchi@efficios.com>
14618
14619 * configure.ac: Don't source bfd/development.sh.
14620 * selftest.m4: Modify comment.
14621 * configure: Re-generate.
14622
4d696a5c
SM
146232020-03-12 Simon Marchi <simon.marchi@efficios.com>
14624
14625 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14626 not "true" or "false".
14627 * configure: Re-generate.
14628
8dd8e1c7
CB
146292020-03-12 Christian Biesinger <cbiesinger@google.com>
14630
14631 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14632 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14633 renamed to arm_nbsd_supply_gregset.
14634 (fetch_register): Update to call arm_nbsd_supply_gregset.
14635 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14636 (arm_netbsd_nat_target::fetch_registers): Update.
14637 (fetch_elfcore_registers): Removed.
14638 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14639 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14640 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14641 not require NetBSD system headers.
14642 (arm_nbsd_regset): New struct.
14643 (arm_nbsd_iterate_over_regset_sections): New function.
14644 (arm_netbsd_init_abi_common): Updated to call
14645 set_gdbarch_iterate_over_regset_sections.
14646 * arm-nbsd-tdep.h: New file.
14647
dd69bf7a
KB
146482020-03-11 Kevin Buettner <kevinb@redhat.com>
14649
14650 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14651 recursion.
14652
a0761e34
SM
146532020-03-11 Simon Marchi <simon.marchi@efficios.com>
14654
14655 * configure: Re-generate.
14656
e7a82140
TT
146572020-03-11 Tom Tromey <tromey@adacore.com>
14658
14659 * ada-typeprint.c (print_choices): Fix comment.
14660
dcc050c8
AB
146612020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14662
14663 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14664 previous item in the list, when the list has no items.
14665
1c33af77
TV
146662020-03-11 Tom de Vries <tdevries@suse.de>
14667
14668 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14669 PROP_LOCLIST handling code.
14670
8c95582d
AB
146712020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14672
14673 * buildsym-legacy.c (record_line): Pass extra parameter to
14674 record_line.
14675 * buildsym.c (buildsym_compunit::record_line): Take an extra
14676 parameter, reduce duplication in the line table, and record the
14677 is_stmt flag in the line table.
14678 * buildsym.h (buildsym_compunit::record_line): Add extra
14679 parameter.
14680 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14681 non-statement lines.
14682 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14683 this to the symtab builder.
14684 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14685 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14686 through to dwarf_record_line_1.
14687 * infrun.c (process_event_stop_test): When stepping, don't stop at
14688 a non-statement instruction, and only refresh the step info when
14689 we land in the middle of a line's range. Also add an extra
14690 comment.
14691 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14692 field.
14693 * record-btrace.c (btrace_find_line_range): Only record lines
14694 marked as is-statement.
14695 * stack.c (frame_show_address): Show the frame address if we are
14696 in a non-statement sal.
14697 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14698 (maintenance_print_one_line_table): Print a header for the is_stmt
14699 column, and include is_stmt information in the output.
14700 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14701 preference to non-statements.
14702 (find_pcs_for_symtab_line): Prefer is-statement entries.
14703 (find_line_common): Likewise.
14704 * symtab.h (struct linetable_entry): Add is_stmt field.
14705 (struct symtab_and_line): Likewise.
14706 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14707 arranging the line table.
14708
e4003a34
TV
147092020-03-07 Tom de Vries <tdevries@suse.de>
14710
14711 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14712 DIE.
14713
e8932576
TT
147142020-03-07 Tom Tromey <tom@tromey.com>
14715
14716 * valops.c (value_literal_complex): Remove obsolete comment.
14717 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14718 comment.
14719
29734269
SM
147202020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14721
14722 * infrun.h: Forward-declare thread_info.
14723 (set_step_info): Add thread_info parameter, add doc.
14724 * infrun.c (set_step_info): Add thread_info parameter, move doc
14725 to header.
14726 * infrun.c (process_event_stop_test): Pass thread to
14727 set_step_info call.
14728 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14729 set_step_info.
14730 (prepare_one_step): Add thread_info parameter, pass it to
14731 set_step_frame and prepare_one_step (recursive) call.
14732 (step_1): Pass thread to prepare_one_step call.
14733 (step_command_fsm::should_stop): Pass thread to
14734 prepare_one_step.
14735 (until_next_fsm): Pass thread to set_step_frame call.
14736 (finish_command): Pass thread to set_step_info call.
14737
b7d64b29
HD
147382020-03-06 Hannes Domani <ssbssa@yahoo.de>
14739
14740 * windows-tdep.c (windows_solib_create_inferior_hook):
14741 Check if inferior is running.
14742
09f2921c
TV
147432020-03-06 Tom de Vries <tdevries@suse.de>
14744
14745 * NEWS: Fix "the the".
14746 * ctfread.c: Same.
14747
fd760e79
TV
147482020-03-06 Tom de Vries <tdevries@suse.de>
14749
14750 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14751
20ea4a60
AB
147522020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14753
14754 * .dir-locals.el: Add a comment referencing the other copies of
14755 this file.
14756
0afbabf0
JB
147572020-03-05 John Baldwin <jhb@FreeBSD.org>
14758
14759 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14760 psargs.
14761
842806cb
TBA
147622020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14763
14764 * .gitattributes: New file.
14765
be1e3d3e
TT
147662020-03-04 Tom Tromey <tom@tromey.com>
14767
14768 * symmisc.c (print_symbol_bcache_statistics)
14769 (print_objfile_statistics): Update.
14770 * symfile.c (allocate_symtab): Use intern.
14771 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14772 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14773 macro_cache>: Remove.
14774 <string_cache>: New member.
14775 (struct objfile) <intern>: New methods.
14776 * elfread.c (elf_symtab_read): Use intern.
14777 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14778 (dwarf2_compute_name, dwarf2_physname)
14779 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14780 names.
14781 (guess_partial_die_structure_name): Update.
14782 (partial_die_info::fixup): Intern name.
14783 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14784 name.
14785 (dwarf2_name): Intern name. Update.
14786 * buildsym.c (buildsym_compunit::get_macro_table): Use
14787 string_cache.
14788
4e7625fd
TT
147892020-03-04 Tom Tromey <tom@tromey.com>
14790
14791 * jit.c (bfd_open_from_target_memory): Make "target" const.
14792 * corefile.c (gnutarget): Now const.
14793 * gdbcore.h (gnutarget): Now const.
14794
46f9f931
HD
147952020-03-04 Hannes Domani <ssbssa@yahoo.de>
14796
14797 * NEWS: Mention support for WOW64 processes.
14798 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14799 (amd64_windows_segment_register_p): Remove static.
14800 (_initialize_amd64_windows_nat): Update.
14801 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14802 * i386-windows-nat.c (context_offset): Update.
14803 (i386_mappings): Rename and remove static.
14804 (i386_windows_segment_register_p): Remove static.
14805 (_initialize_i386_windows_nat): Update.
14806 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14807 (STATUS_WX86_SINGLE_STEP): New macro.
14808 (EnumProcessModulesEx): New macro.
14809 (Wow64SuspendThread): New macro.
14810 (Wow64GetThreadContext): New macro.
14811 (Wow64SetThreadContext): New macro.
14812 (Wow64GetThreadSelectorEntry): New macro.
14813 (windows_set_context_register_offsets): Add static.
14814 (windows_set_segment_register_p): Likewise.
14815 (windows_add_thread): Adapt for WOW64 processes.
14816 (windows_fetch_one_register): Likewise.
14817 (windows_nat_target::fetch_registers): Likewise.
14818 (windows_store_one_register): Likewise.
14819 (display_selector): Likewise.
14820 (display_selectors): Likewise.
14821 (handle_exception): Likewise.
14822 (windows_continue): Likewise.
14823 (windows_nat_target::resume): Likewise.
14824 (windows_add_all_dlls): Likewise.
14825 (do_initial_windows_stuff): Likewise.
14826 (windows_nat_target::attach): Likewise.
14827 (windows_get_exec_module_filename): Likewise.
14828 (windows_nat_target::create_inferior): Likewise.
14829 (windows_xfer_siginfo): Likewise.
14830 (_initialize_loadable): Initialize Wow64SuspendThread,
14831 Wow64GetThreadContext, Wow64SetThreadContext,
14832 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14833 * windows-nat.h (windows_set_context_register_offsets):
14834 Remove declaration.
14835 (windows_set_segment_register_p): Likewise.
14836 (i386_windows_segment_register_p): Add declaration.
14837 (amd64_windows_segment_register_p): Likewise.
14838
440cf44e
LM
148392020-03-04 Luis Machado <luis.machado@linaro.org>
14840
14841 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14842 in "info registers" for AArch64/ARM.
14843
14844 The change caused "info registers" to not print GPR's.
14845
14846 gdb/ChangeLog:
14847
14848 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14849
14850 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14851 when reg->group is empty and reggroup is not.
14852
1009d92f
TT
148532020-03-03 Tom Tromey <tromey@adacore.com>
14854
14855 * dwarf2/frame.c (struct dwarf2_frame_cache)
14856 <checked_tailcall_bottom, entry_cfa_sp_offset,
14857 entry_cfa_sp_offset_p>: Remove members.
14858 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14859 (dwarf2_frame_prev_register): Don't call
14860 dwarf2_tailcall_sniffer_first.
14861 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14862 * frame-unwind.c (add_unwinder): New fuction.
14863 (frame_unwind_init): Use it. Add tailcall unwinder.
14864
5e5d66b6
AB
148652020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14866 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14867
14868 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14869 value should be printed as true.
14870
584cf46d
HD
148712020-03-03 Hannes Domani <ssbssa@yahoo.de>
14872
14873 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14874 (windows_init_abi): Set and use windows_so_ops.
14875
7b973adc
SDJ
148762020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14877
14878 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14879 when verifying if dealing with a convenience variable.
14880
bb7b70ab
LM
148812020-03-03 Luis Machado <luis.machado@linaro.org>
14882
14883 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14884
9822cb57
SM
148852020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14886
14887 * infrun.c (gdbarch_supports_displaced_stepping): New.
14888 (use_displaced_stepping): Break up conditions in smaller pieces.
14889 Use gdbarch_supports_displaced_stepping.
14890 (displaced_step_prepare_throw): Use
14891 gdbarch_supports_displaced_stepping.
14892
63e163f2
AB
148932020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14894
14895 * NEWS: Mention new behaviour of the history filename.
14896 * top.c (write_history_p): Add comment.
14897 (show_write_history_p): Add header comment, give a different
14898 message when history writing is on, but the history filename is
14899 empty.
14900 (history_filename): Add comment.
14901 (history_filename_empty): New function.
14902 (show_history_filename): Add header comment, give a different
14903 message when the filename is empty.
14904 (init_history): Compare history_filename against nullptr, and only
14905 read history if the filename is not empty.
14906 (set_history_filename): Add header comment, and only make
14907 non-empty filenames absolute.
14908 (init_main): Make the filename argument to 'set history filename'
14909 optional.
14910
81b86b97
CB
149112020-03-02 Christian Biesinger <cbiesinger@google.com>
14912
14913 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14914 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14915 (fetch_fp_register): Update.
14916 (fetch_fp_regs): Update.
14917 (store_fp_register): Update.
14918 (store_fp_regs): Update.
14919 (arm_netbsd_nat_target::read_description): New function.
14920 (fetch_elfcore_registers): Update.
14921
24ed6739
AB
149222020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14923
14924 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14925 general_thread if the stop reply is missing a thread-id.
14926 (remote_target::process_stop_reply): Use the first non-exited
14927 thread if the target didn't pass a thread-id.
14928 * infrun.c (do_target_wait): Move call to
14929 switch_to_inferior_no_thread to ....
14930 (do_target_wait_1): ... here.
14931
a84bb2a0
JT
149322020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14933
14934 * debuginfod-support.c: Include defs.h first.
14935
658dadf0
TV
149362020-02-28 Tom de Vries <tdevries@suse.de>
14937
14938 * symfile.c (set_initial_language): Use default language for lookup.
14939
4ebe4877
SM
149402020-02-28 Simon Marchi <simon.marchi@efficios.com>
14941
14942 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14943 reader variable, pass `this` to read_cutu_die_from_dwo.
14944
e5da1139
AM
149452020-02-27 Aaron Merey <amerey@redhat.com>
14946
14947 * source.c (open_source_file): Check for nullptr when computing
14948 srcpath.
14949
317f7127
TT
149502020-02-27 Tom Tromey <tromey@adacore.com>
14951
14952 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14953 member.
14954 (dwarf2_add_field): Don't update nfields.
14955 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14956
3104d9ee
AB
149572020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14958
14959 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14960 abs.
14961
b83470bf
TT
149622020-02-26 Tom Tromey <tom@tromey.com>
14963
14964 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14965 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14966 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14967 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14968 per_cu_data.
14969
edfe0a0c
TT
149702020-02-26 Tom Tromey <tom@tromey.com>
14971
14972 * dwarf2/index-write.c (psym_index_map): Change type.
14973 (add_address_entry_worker, write_one_signatured_type)
14974 (recursively_count_psymbols, recursively_write_psymbols)
14975 (class debug_names, psyms_seen_size, write_gdbindex)
14976 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14977
0d79cdc4
AM
149782020-02-26 Aaron Merey <amerey@redhat.com>
14979
14980 * Makefile.in: Handle optional debuginfod support.
14981 * NEWS: Update.
14982 * README: Add --with-debuginfod summary.
14983 * config.in: Regenerate.
14984 * configure: Regenerate.
14985 * configure.ac: Handle optional debuginfod support.
14986 * debuginfod-support.c: debuginfod helper functions.
14987 * debuginfod-support.h: Ditto.
14988 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14989 summary.
14990 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14991 when a dwz file cannot be found.
14992 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14993 debuginfo file cannot be found.
14994 * source.c (open_source_file): Query debuginfod servers when a
14995 source file cannot be found.
14996 * top.c (print_gdb_configuration): Include
14997 --{with,without}-debuginfod in the output.
14998
b65ce565
JG
149992020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
15000
15001 * thread.c (thr_try_catch_cmd): Print thread name.
15002
d4c9a4f8
SM
150032020-02-26 Simon Marchi <simon.marchi@efficios.com>
15004
15005 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
15006 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15007 dwarf2_fetch_die_type_sect_off): Move to...
15008 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
15009 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15010 dwarf2_fetch_die_type_sect_off): ... here.
15011 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
15012 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15013 dwarf2_fetch_die_type_sect_off): Move doc to header file.
15014
0dce4280
TV
150152020-02-26 Tom de Vries <tdevries@suse.de>
15016
15017 PR gdb/25603
15018 * symfile.c (set_initial_language): Exit-early if
15019 language_mode == language_mode_manual.
15020
450a1bfc
SM
150212020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15022
15023 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
15024 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
15025 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
15026
9e80cfa1
AB
150272020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
15028
15029 * gdbtypes.c (create_array_type_with_stride): Handle negative
15030 array strides.
15031 * valarith.c (value_subscripted_rvalue): Likewise.
15032
09624f1f
LM
150332020-02-25 Luis Machado <luis.machado@linaro.org>
15034
15035 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15036
8cb5117c
SM
150372020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15038
15039 * loc.h (dwarf2_get_die_type): Move to...
15040 * read.h (dwarf2_get_die_type): ... here.
15041 * read.c (dwarf2_get_die_type): Move doc to header.
15042
c325c44e
JB
150432020-02-25 Joel Brobecker <brobecker@adacore.com>
15044
15045 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15046 'gnulib/Makefile.in' to the list.
15047
4ac93832
TT
150482020-02-24 Tom Tromey <tom@tromey.com>
15049
15050 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15051 Remove.
15052 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15053 XOBNEWVEC.
15054
197400e8
TT
150552020-02-24 Tom Tromey <tom@tromey.com>
15056
15057 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15058 New method.
15059 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15060 (dw2_do_instantiate_symtab, dw2_get_file_names)
15061 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15062
76935768
TT
150632020-02-24 Tom Tromey <tom@tromey.com>
15064
15065 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15066 make_scoped_restore.
15067 (dwarf2_psymtab::read_symtab): Don't clear
15068 reading_partial_symbols.
15069
a88ef40d
TV
150702020-02-24 Tom de Vries <tdevries@suse.de>
15071
15072 PR gdb/25592
15073 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15074
c9af6521
TV
150752020-02-24 Tom de Vries <tdevries@suse.de>
15076
15077 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15078 commands layout next/prev/regs.
15079
5707a07a
TT
150802020-02-22 Tom Tromey <tom@tromey.com>
15081
15082 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15083 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15084
3b0fb49e
TT
150852020-02-22 Tom Tromey <tom@tromey.com>
15086
15087 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15088
283be8bf
TT
150892020-02-22 Tom Tromey <tom@tromey.com>
15090
15091 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15092 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15093 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15094 * tui/tui.c (_initialize_tui): Add usage text.
15095
ca793b96
TT
150962020-02-22 Tom Tromey <tom@tromey.com>
15097
15098 * tui/tui-win.c (tui_set_focus_command)
15099 (tui_set_win_height_command): Use error_no_arg.
15100 (_initialize_tui_win): Update help text.
15101 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15102
432b5c40
TT
151032020-02-22 Tom Tromey <tom@tromey.com>
15104
15105 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15106 * tui/tui-disasm.h (struct tui_disasm_window)
15107 <display_start_addr>: Declare.
15108 * tui/tui-source.h (struct tui_source_window)
15109 <display_start_addr>: Declare.
15110 * tui/tui-winsource.h (struct tui_source_window_base)
15111 <show_source_line, display_start_addr>: New methods.
15112 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15113 Rename and move to protected section.
15114 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15115 (tui_source_window_base::do_erase_source_content): Update.
15116 (tui_source_window_base::show_source_line): Now a method.
15117 (tui_source_window_base::show_source_content)
15118 (tui_source_window_base::tui_source_window_base)
15119 (tui_source_window_base::rerender)
15120 (tui_source_window_base::refill)
15121 (tui_source_window_base::do_scroll_horizontal)
15122 (tui_source_window_base::set_is_exec_point_at)
15123 (tui_source_window_base::update_breakpoint_info)
15124 (tui_source_window_base::update_exec_info): Update.
15125 * tui/tui-source.c (tui_source_window::set_contents)
15126 (tui_source_window::showing_source_p)
15127 (tui_source_window::do_scroll_vertical)
15128 (tui_source_window::location_matches_p)
15129 (tui_source_window::line_is_displayed): Update.
15130 (tui_source_window::display_start_addr): New method.
15131 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15132 (tui_disasm_window::do_scroll_vertical)
15133 (tui_disasm_window::location_matches_p): Update.
15134 (tui_disasm_window::display_start_addr): New method.
15135
01b1af32
TT
151362020-02-22 Tom Tromey <tom@tromey.com>
15137
15138 * NEWS: Add entry for gdb.register_window_type.
15139 * tui/tui-layout.h (window_factory): New typedef.
15140 (tui_register_window): Declare.
15141 * tui/tui-layout.c (saved_tui_windows): New global.
15142 (tui_apply_current_layout): Use it.
15143 (tui_register_window): New function.
15144 * python/python.c (do_start_initialization): Call
15145 gdbpy_initialize_tui.
15146 (python_GdbMethods): Add "register_window_type" function.
15147 * python/python-internal.h (gdbpy_register_tui_window)
15148 (gdbpy_initialize_tui): Declare.
15149 * python/py-tui.c: New file.
15150 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15151
fc96d20b
TT
151522020-02-22 Tom Tromey <tom@tromey.com>
15153
15154 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15155
935c78c0
TT
151562020-02-22 Tom Tromey <tom@tromey.com>
15157
15158 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15159 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15160 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15161 (tui_set_win_focus_to): Move from tui-win.c.
15162
0240c8f1
TT
151632020-02-22 Tom Tromey <tom@tromey.com>
15164
15165 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15166 functions.
15167 (known_window_types): New global.
15168 (tui_get_window_by_name): Reimplement.
15169 (initialize_known_windows): New function.
15170 (validate_window_name): Rewrite.
15171 (_initialize_tui_layout): Call initialize_known_windows.
15172
fdb01f0c
TT
151732020-02-22 Tom Tromey <tom@tromey.com>
15174
15175 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15176 Remove constants.
15177 * tui/tui-winsource.h (struct tui_source_window_base)
15178 <tui_source_window_base>: Remove parameter.
15179 * tui/tui-winsource.c
15180 (tui_source_window_base::tui_source_window_base): Remove
15181 parameter.
15182 (tui_source_window_base::refill): Update.
15183 * tui/tui-stack.h (struct tui_locator_window)
15184 <tui_locator_window>: Update.
15185 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15186 Default the constructor.
15187 * tui/tui-regs.h (struct tui_data_item_window)
15188 <tui_data_item_window>: Default the constructor.
15189 (struct tui_data_window) <tui_data_window>: Likewise.
15190 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15191 Default the constructor.
15192 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15193 Default the constructor.
15194 <type>: Remove.
15195 (struct tui_win_info) <tui_win_info>: Default the constructor.
15196 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15197 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15198 Default the constructor.
15199
865a5aec
TT
152002020-02-22 Tom Tromey <tom@tromey.com>
15201
15202 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15203 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15204 * tui/tui-win.c (tui_resize_all): Don't call
15205 tui_delete_invisible_windows.
15206 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15207 done.
15208 (tui_set_layout): Update.
15209 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15210 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15211 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15212
e098d18c
TT
152132020-02-22 Tom Tromey <tom@tromey.com>
15214
15215 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15216 correctly.
15217
eb9c8874
TT
152182020-02-22 Tom Tromey <tom@tromey.com>
15219
15220 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15221
7eed1a8e
TT
152222020-02-22 Tom Tromey <tom@tromey.com>
15223
15224 * tui/tui-winsource.h (struct tui_source_window_iterator)
15225 <inner_iterator>: New etytypedef.
15226 <tui_source_window_iterator>: Take "end" parameter.
15227 <tui_source_window_iterator>: Take iterator.
15228 <operator*, advance>: Update.
15229 <m_iter>: Change type.
15230 <m_end>: New field.
15231 (struct tui_source_windows) <begin, end>: Update.
15232 * tui/tui-layout.c (tui_windows): New global.
15233 (tui_apply_current_layout): Clear tui_windows.
15234 (tui_layout_window::apply): Update tui_windows.
15235 * tui/tui-data.h (tui_windows): Declare.
15236 (all_tui_windows): Now inline function.
15237 (class tui_window_iterator, struct all_tui_windows): Remove.
15238
7c043ba6
TT
152392020-02-22 Tom Tromey <tom@tromey.com>
15240
15241 PR tui/17850:
15242 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15243 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15244 "height" argument.
15245 (class tui_layout_window) <get_sizes>: Likewise.
15246 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15247 argument.
15248 <get_sizes>: Add "height" argument.
15249 <m_vertical>: New field.
15250 * tui/tui-layout.c (tui_layout_split::clone): Update.
15251 (tui_layout_split::get_sizes): Add "height" argument.
15252 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15253 (tui_new_layout_command): Parse "-horizontal".
15254 (_initialize_tui_layout): Update help string.
15255 (tui_layout_split::specification): Add "-horizontal" when needed.
15256 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15257 argument.
15258 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15259 New methods.
15260
6bc56648
TT
152612020-02-22 Tom Tromey <tom@tromey.com>
15262
15263 * tui/tui-layout.h (enum tui_adjust_result): New.
15264 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15265 (class tui_layout_window) <adjust_size>: Return
15266 tui_adjust_result. Rewrite.
15267 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15268 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15269
c22fef7e
TT
152702020-02-22 Tom Tromey <tom@tromey.com>
15271
15272 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15273 parameter and return types.
15274 (class tui_layout_base) <specification>: Add "depth".
15275 (class tui_layout_window) <specification>: Add "depth".
15276 (class tui_layout_split) <specification>: Add "depth".
15277 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15278 and return types.
15279 (tui_new_layout_command): Parse sub-layouts.
15280 (_initialize_tui_layout): Update help string.
15281 (tui_layout_window::specification): Add "depth".
15282 (add_layout_command): Update.
15283
ee325b61
TT
152842020-02-22 Tom Tromey <tom@tromey.com>
15285
15286 * NEWS: Add "tui new-layout" item.
15287 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15288 Add new-layout command to help text.
15289 (validate_window_name): New function.
15290 (tui_new_layout_command): New function.
15291 (_initialize_tui_layout): Register "new-layout".
15292 (tui_layout_window::specification): New method.
15293 (tui_layout_window::specification): New method.
15294 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15295 method.
15296 (class tui_layout_window) <specification>: New method.
15297 (class tui_layout_split) <specification>: New method.
15298
416eb92d
TT
152992020-02-22 Tom Tromey <tom@tromey.com>
15300
15301 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15302 * tui/tui-win.c (window_name_completer): Update comment.
15303 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15304 Declare method.
15305 (class tui_layout_window) <replace_window>: Likewise.
15306 (class tui_layout_split) <replace_window>: Likewise.
15307 (tui_set_layout): Don't declare.
15308 (tui_set_initial_layout): Declare function.
15309 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15310 (asm_regs_layout): New globals.
15311 (tui_current_layout, show_layout): Remove.
15312 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15313 (find_layout, tui_apply_layout): New function.
15314 (layout_completer): Remove.
15315 (tui_next_layout): Reimplement.
15316 (tui_next_layout_command): New function.
15317 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15318 (tui_regs_layout): Reimplement.
15319 (tui_regs_layout_command): New function.
15320 (extract_display_start_addr): Rewrite.
15321 (next_layout, prev_layout): Remove.
15322 (tui_layout_window::replace_window): New method.
15323 (tui_layout_split::replace_window): New method.
15324 (destroy_layout): New function.
15325 (layout_list): New global.
15326 (add_layout_command): New function.
15327 (initialize_layouts): Update.
15328 (tui_layout_command): New function.
15329 (_initialize_tui_layout): Install "layout" commands.
15330 * tui/tui-data.h (enum tui_layout_type): Remove.
15331 (tui_current_layout): Don't declare.
15332
0dbc2fc7
TT
153332020-02-22 Tom Tromey <tom@tromey.com>
15334
15335 * tui/tui-regs.c (tui_reg_layout): Remove.
15336 (tui_reg_command): Use tui_regs_layout.
15337 * tui/tui-layout.h (tui_reg_command): Declare.
15338 * tui/tui-layout.c (tui_reg_command): New function.
15339
5afe342e
TT
153402020-02-22 Tom Tromey <tom@tromey.com>
15341
15342 * tui/tui.c (tui_rl_delete_other_windows): Call
15343 tui_remove_some_windows.
15344 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15345 Declare method.
15346 (class tui_layout_window) <remove_windows>: New method.
15347 (class tui_layout_split) <remove_windows>: Declare.
15348 (tui_remove_some_windows): Declare.
15349 * tui/tui-layout.c (tui_remove_some_windows): New function.
15350 (tui_layout_split::remove_windows): New method.
15351
427326a8
TT
153522020-02-22 Tom Tromey <tom@tromey.com>
15353
15354 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15355 * tui/tui-layout.h (tui_next_layout): Declare.
15356 * tui/tui-layout.c (tui_next_layout): New function.
15357
3fe12b6d
TT
153582020-02-22 Tom Tromey <tom@tromey.com>
15359
15360 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15361 correct coordinates.
15362
59b8b5d2
TT
153632020-02-22 Tom Tromey <tom@tromey.com>
15364
15365 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15366 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15367 DATA_WIN case.
15368
2a3d458b
TT
153692020-02-22 Tom Tromey <tom@tromey.com>
15370
15371 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15372 TUI_DISASM_WIN, not tui_win_list.
15373
3f0cbb04
TT
153742020-02-22 Tom Tromey <tom@tromey.com>
15375
15376 * valprint.c (generic_val_print_enum_1)
15377 (val_print_type_code_flags): Style member names.
15378 * rust-lang.c (val_print_struct, rust_print_enum)
15379 (rust_print_struct_def, rust_internal_print_type): Style member
15380 names.
15381 * p-valprint.c (pascal_object_print_value_fields): Style member
15382 names. Only call fprintf_symbol_filtered for static members.
15383 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15384 * f-valprint.c (f_val_print): Style member names.
15385 * f-typeprint.c (f_type_print_base): Style member names.
15386 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15387 call fprintf_symbol_filtered for static members.
15388 (cp_print_class_member): Style member names.
15389 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15390 member names.
15391 * ada-valprint.c (ada_print_scalar): Style enum names.
15392 (ada_val_print_enum): Likewise.
15393 * ada-typeprint.c (print_enum_type): Style enum names.
15394
d4d947ae
TT
153952020-02-21 Tom Tromey <tom@tromey.com>
15396
15397 * psympriv.h (struct partial_symtab): Update comment.
15398
e94e944b
TT
153992020-02-21 Tom Tromey <tromey@adacore.com>
15400
15401 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15402 type is CORE_ADDR.
15403
1eb73179
TV
154042020-02-21 Tom de Vries <tdevries@suse.de>
15405
15406 PR gdb/25534
15407 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15408 if dependencies[i]->user != NULL.
15409
4f180d53
AT
154102020-02-21 Ali Tamur <tamur@google.com>
15411
15412 * dwarf2/read.c (dwarf2_name): Add null check.
15413
22b6cd70
TT
154142020-02-20 Tom Tromey <tom@tromey.com>
15415
15416 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15417 ">=", in binary search.
15418 (dwarf2_find_containing_comp_unit): New overload.
15419 (run_test): New self-test.
15420 (_initialize_dwarf2_read): Register new test.
15421
bd0cf5a6
NC
154222020-02-20 Nelson Chu <nelson.chu@sifive.com>
15423
15424 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15425 * riscv-tdep.h: Likewise.
15426 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15427 rv32-only CSR.
15428 * features/riscv/64bit-csr.xml: Regenerated.
15429
3f702acd
SDJ
154302020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15431 Tom Tromey <tom@tromey.com>
15432
15433 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15434 of 'fputc_unfiltered'.
15435 (putchar_unfiltered): Call 'fputc_unfiltered'.
15436 (fputc_unfiltered): Call 'fputs_unfiltered'.
15437
d13c7322
AB
154382020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15439
15440 * config.in: Regenerate.
15441 * configure: Regenerate.
15442 * configure.ac: Add --with-python-libdir option.
15443 * main.c: Use WITH_PYTHON_LIBDIR.
15444
869d8950
TT
154452020-02-19 Tom Tromey <tom@tromey.com>
15446
15447 * symtab.c (general_symbol_info::compute_and_set_names): Use
15448 obstack_strndup. Simplify call to symbol_set_demangled_name.
15449
298e9637
SM
154502020-02-19 Simon Marchi <simon.marchi@efficios.com>
15451
15452 * dwarf2/read.c (allocate_signatured_type_table,
15453 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15454 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15455 Remove objfile parameter, update all callers.
15456
08410482
DE
154572020-02-19 Doug Evans <dje@google.com>
15458
15459 PR rust/25535
15460 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15461 rust_enum_variant calculation.
15462
dfdeeca1
TT
154632020-02-19 Tom Tromey <tromey@adacore.com>
15464
15465 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15466
2ef5453b
TT
154672020-02-19 Tom Tromey <tromey@adacore.com>
15468
15469 * ada-lang.c (cache_symbol): Use obstack_strdup.
15470
9f1528a1
AB
154712020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15472
15473 * configure: Regenerate.
15474
d3c22fa8
TT
154752020-02-19 Tom Tromey <tromey@adacore.com>
15476
15477 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15478 NULL check.
15479
bf84f706
MR
154802020-02-19 Maciej W. Rozycki <macro@wdc.com>
15481
15482 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15483
d1c9b20f
AB
154842020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15485
15486 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15487 if GDBSERVER is not defined.
15488 (riscv_tdesc_cache): Likewise, also store const target_desc.
15489 (STATIC_IN_GDB): Define.
15490 (riscv_create_target_description): Update declaration with
15491 STATIC_IN_GDB.
15492 (riscv_lookup_target_description): New function, only define if
15493 GDBSERVER is not defined.
15494 * arch/riscv.h (riscv_create_target_description): Declare only
15495 when GDBSERVER is defined.
15496 (riscv_lookup_target_description): New declaration when GDBSERVER
15497 is not defined.
15498 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15499 (riscv_linux_read_features): ...this, and return
15500 riscv_gdbarch_features instead of target_desc.
15501 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15502 (riscv_linux_read_description): Rename to...
15503 (riscv_linux_read_features): ...this.
15504 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15505 Update to use riscv_gdbarch_features and
15506 riscv_lookup_target_description.
15507 * riscv-tdep.c (riscv_find_default_target_description): Use
15508 riscv_lookup_target_description instead of
15509 riscv_create_target_description.
15510
373d7ac0
SM
155112020-02-18 Simon Marchi <simon.marchi@efficios.com>
15512
15513 * valprint.c (generic_val_print_enum_1): When printing a flag
15514 enum with value 0 and there is no enumerator with value 0, print
15515 just "0" instead of "(unknown: 0x0)".
15516
b29a2df0
SM
155172020-02-18 Simon Marchi <simon.marchi@efficios.com>
15518
15519 * valprint.c (generic_val_print_enum_1): Print unknown part of
15520 flag enum in hex.
15521
6740f0cc
SM
155222020-02-18 Simon Marchi <simon.marchi@efficios.com>
15523
15524 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15525 flag enums to contain duplicate enumerators.
15526 * valprint.c (generic_val_print_enum_1): Update comment.
15527
edd45eb0
SM
155282020-02-18 Simon Marchi <simon.marchi@efficios.com>
15529
15530 * dwarf2/read.c: Include "count-one-bits.h".
15531 (update_enumeration_type_from_children): If an enumerator has
15532 multiple bits set, don't treat the enumeration as a "flag enum".
15533 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15534 of flag enums have 0 or 1 bit set.
15535
6d0cf446
BE
155362020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15537
15538 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15539 conversion.
15540 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15541 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15542 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15543 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15544 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15545
7001c1b7
SM
155462020-02-18 Simon Marchi <simon.marchi@efficios.com>
15547
15548 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15549
fdb61c6c
SM
155502020-02-14 Simon Marchi <simon.marchi@efficios.com>
15551
15552 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15553 displaced_step_closure_up.
15554 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15555 (struct displaced_step_closure_up):
15556 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15557 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15558 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15559 Likewise.
15560 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15561 * gdbarch.c, gdbarch.h: Re-generate.
15562 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15563 displaced_step_closure_up.
15564 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15565 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15566 * infrun.h (displaced_step_closure_up): New type alias.
15567 (struct displaced_step_inferior_state) <step_closure>: Change
15568 type to displaced_step_closure_up.
15569 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15570 displaced_step_closure_up.
15571 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15572
a4a38eb4
TT
155732020-02-14 Tom Tromey <tom@tromey.com>
15574
15575 * minidebug.c (gnu_debug_key): New global.
15576 (find_separate_debug_file_in_section): Use it.
15577
e8217e61
SM
155782020-02-14 Simon Marchi <simon.marchi@efficios.com>
15579
15580 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15581 std::unique_ptr.
15582 * gdbarch.c: Re-generate.
15583 * gdbarch.h: Re-generate.
15584 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15585 change.
15586 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15587 type to std::unique_ptr.
15588 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15589 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15590 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15591 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15592 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15593 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15594 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15595 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15596 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15597
d8d83535
SM
155982020-02-14 Simon Marchi <simon.marchi@efficios.com>
15599
15600 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15601 std::unique_ptr.
15602 (displaced_step_clear): Rename to...
15603 (displaced_step_reset): ... this. Just call displaced->reset ().
15604 (displaced_step_clear_cleanup): Rename to...
15605 (displaced_step_reset_cleanup): ... this.
15606 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15607 (displaced_step_fixup): Likewise.
15608 (resume_1): Likewise.
15609 (handle_inferior_event): Restore child's memory before calling
15610 displaced_step_fixup on the parent.
15611 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15612 to std::unique_ptr.
15613 <step_closure>: Change type to std::unique_ptr.
15614
5f661e03
SM
156152020-02-14 Simon Marchi <simon.marchi@efficios.com>
15616
15617 * arm-tdep.c: Include count-one-bits.h.
15618 (cleanup_block_store_pc): Use count_one_bits.
15619 (cleanup_block_load_pc): Use count_one_bits.
15620 (arm_copy_block_xfer): Use count_one_bits.
15621 (thumb2_copy_block_xfer): Use count_one_bits.
15622 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15623 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15624 (thumb_get_next_pcs_raw): Use count_one_bits.
15625 (arm_get_next_pcs_raw): Use count_one_bits_l.
15626 * arch/arm.c (bitcount): Remove.
15627 * arch/arm.h (bitcount): Remove.
15628
8084e579
TT
156292020-02-14 Tom Tromey <tromey@adacore.com>
15630
15631 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15632 Update.
15633 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15634 * dwarf2/loc.c (call_site_find_chain_1): Return
15635 unique_xmalloc_ptr.
15636 (call_site_find_chain): Likewise.
15637
258bf0ee
RB
156382020-02-14 Richard Biener <rguenther@suse.de>
15639
15640 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15641 on expression with division operators.
15642
f98a8458
AKS
156432020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15644
15645 * MAINTAINERS (Write After Approval): Adding myself.
15646
d1437c0e
TT
156472020-02-12 Tom Tromey <tom@tromey.com>
15648
15649 * event-loop.c (event_data, gdb_event, event_handler_func):
15650 Remove.
15651
3d4560f7
TT
156522020-02-12 Tom Tromey <tom@tromey.com>
15653
15654 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15655 (dwarf2_frame_objfile_data): Add comment.
15656 (find_comp_unit, set_comp_unit): New functions.
15657 (dwarf2_frame_find_fde): Use find_comp_unit.
15658 (dwarf2_build_frame_info): Use set_comp_unit.
15659
21982304
TT
156602020-02-12 Tom Tromey <tom@tromey.com>
15661
15662 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15663 (comp_unit): Don't initialize objfile.
15664 (execute_cfa_program): Add text_offset parameter.
15665 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15666 (dwarf2_frame_cache): Update.
15667 (dwarf2_build_frame_info): Don't set "objfile" member.
15668
4debb237
TT
156692020-02-12 Tom Tromey <tom@tromey.com>
15670
15671 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15672 (decode_frame_entry): Likewise.
15673 (dwarf2_build_frame_info): Update.
15674
0d404d44
TT
156752020-02-12 Tom Tromey <tom@tromey.com>
15676
15677 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15678 (decode_frame_entry_1): Use the comp_unit obstack.
15679
a7a3ae5c
TT
156802020-02-12 Tom Tromey <tom@tromey.com>
15681
15682 * dwarf2/frame.c (struct comp_unit): Add initializers and
15683 constructor.
15684 (dwarf2_frame_objfile_data): Store a comp_unit.
15685 (dwarf2_frame_find_fde): Update.
15686 (dwarf2_build_frame_info): Use "new".
15687
a9d65418
TT
156882020-02-12 Tom Tromey <tom@tromey.com>
15689
15690 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15691 (dwarf2_fde_table): Typedef for std::vector.
15692 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15693 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15694 (decode_frame_entry): Update.
15695 (dwarf2_build_frame_info): Use "new".
15696
7559c217
CB
156972020-02-12 Christian Biesinger <cbiesinger@google.com>
15698
15699 * arm-tdep.c (arm_gdbarch_init): Update.
15700 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15701 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15702 have_neon, is_m>: Change to bool.
15703
aeefc73c
CB
157042020-02-12 Christian Biesinger <cbiesinger@google.com>
15705
15706 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15707
d27b8e5f
TT
157082020-02-12 Tom Tromey <tom@tromey.com>
15709
15710 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15711
cd5900f3
HD
157122020-02-12 Hannes Domani <ssbssa@yahoo.de>
15713
15714 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15715 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15716
f056b22b
TT
157172020-02-11 Tom Tromey <tom@tromey.com>
15718
15719 * psymtab.h: Update comment.
15720
f92ff6b5
TT
157212020-02-11 Tom Tromey <tom@tromey.com>
15722
15723 * gdb_obstack.h (struct auto_obstack): Use
15724 DISABLE_COPY_AND_ASSIGN.
15725
3fd6912b
TT
157262020-02-11 Tom Tromey <tom@tromey.com>
15727
15728 * dwarf2/frame.h (struct objfile): Don't forward declare.
15729
69ed9b74
CB
157302020-02-11 Christian Biesinger <cbiesinger@google.com>
15731
15732 * cris-tdep.c (cris_supply_gregset): Change signature to match
15733 what struct regset expects.
15734 (cris_regset): New struct.
15735 (fetch_core_registers): Remove.
15736 (cris_iterate_over_regset_sections): New function.
15737 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15738 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15739
bda874f6
CB
157402020-02-11 Christian Biesinger <cbiesinger@google.com>
15741
15742 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15743 registers.
15744
754e1564
CB
157452020-02-11 Christian Biesinger <cbiesinger@google.com>
15746
15747 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15748
8ddd8e0e
SM
157492020-02-11 Simon Marchi <simon.marchi@efficios.com>
15750
15751 * configure: Re-generate.
15752
898e7f60
SM
157532020-02-11 Simon Marchi <simon.marchi@efficios.com>
15754
15755 * configure: Re-generate.
15756
58df732b
SM
157572020-02-11 Simon Marchi <simon.marchi@efficios.com>
15758
15759 * acinclude: Update warning.m4 path.
15760 * warning.m4: Move to gdbsupport.
15761
da5bd37e
TT
157622020-02-11 Tom Tromey <tromey@adacore.com>
15763
15764 * remote.c (remote_console_output): Update.
15765 * printcmd.c (printf_command): Update.
15766 * event-loop.c (gdb_wait_for_event): Update.
15767 * linux-nat.c (sigchld_handler): Update.
15768 * remote-sim.c (gdb_os_write_stdout): Update.
15769 (gdb_os_flush_stdout): Update.
15770 (gdb_os_flush_stderr): Update.
15771 (gdb_os_write_stderr): Update.
15772 * exceptions.c (print_exception): Update.
15773 * remote-fileio.c (remote_fileio_func_read): Update.
15774 (remote_fileio_func_write): Update.
15775 * tui/tui.c (tui_enable): Update.
15776 * tui/tui-interp.c (tui_interp::init): Update.
15777 * utils.c (init_page_info): Update.
15778 (putchar_unfiltered, fputc_unfiltered): Update.
15779 (gdb_flush): Update.
15780 (emit_style_escape): Update.
15781 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15782 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15783 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15784 (stderr_file::write): Update.
15785 (stderr_file::puts): Update.
15786 * ui-file.h (ui_file_isatty, ui_file_write)
15787 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15788 (ui_file_puts): Don't declare.
15789
85f0dd3c
TV
157902020-02-10 Tom de Vries <tdevries@suse.de>
15791
15792 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15793 sentinel to char *.
15794
2e927613
TV
157952020-02-09 Tom de Vries <tdevries@suse.de>
15796
15797 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15798 filename if it matches "<artificial>".
15799
6bafc845
HD
158002020-02-09 Hannes Domani <ssbssa@yahoo.de>
15801
15802 * windows-tdep.c (struct enum_value_name): New struct.
15803 (create_enum): New function.
15804 (windows_get_siginfo_type): Create and use enum types.
15805
7928d571
HD
158062020-02-09 Hannes Domani <ssbssa@yahoo.de>
15807
15808 * NEWS: Mention $_siginfo support for Windows.
15809 * windows-nat.c (handle_exception): Set siginfo_er.
15810 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15811 (windows_xfer_siginfo): New function.
15812 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15813 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15814 (init_windows_gdbarch_data): New function.
15815 (get_windows_gdbarch_data): New function.
15816 (windows_get_siginfo_type): New function.
15817 (windows_init_abi): Register windows_get_siginfo_type.
15818 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15819
6751ebae
TT
158202020-02-08 Tom Tromey <tom@tromey.com>
15821
15822 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15823 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15824 <keep>: Declare method.
15825 <m_keep>: Remove member.
15826 <~cutu_reader>: Remove.
15827 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15828 (cutu_reader::cutu_reader): Update.
15829 (cutu_reader::keep): Rename from ~cutu_reader.
15830 (process_psymtab_comp_unit, build_type_psymtabs_1)
15831 (process_skeletonless_type_unit, load_partial_comp_unit)
15832 (load_full_comp_unit, dwarf2_read_addr_index)
15833 (read_signatured_type): Update.
15834
135f5437
TT
158352020-02-08 Tom Tromey <tom@tromey.com>
15836
15837 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15838 "want_partial_unit" parameter.
15839 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15840 Inline check for DW_TAG_partial_unit.
15841 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15842
9f66ff1c
TT
158432020-02-08 Tom Tromey <tom@tromey.com>
15844
15845 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15846 read.c.
15847 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15848 read.c.
15849
c8a7a66f
TT
158502020-02-08 Tom Tromey <tom@tromey.com>
15851
15852 * dwarf2/read.c (read_address): Move to comp-unit.c.
15853 (dwarf2_rnglists_process, dwarf2_ranges_process)
15854 (read_attribute_value, dwarf_decode_lines_1)
15855 (var_decode_location, decode_locdesc): Update.
15856 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15857 read.c. Remove "cu" parameter.
15858 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15859 method.
15860
8266302d
TT
158612020-02-08 Tom Tromey <tom@tromey.com>
15862
15863 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15864 (read_indirect_line_string): Update.
15865 * dwarf2/comp-unit.c (read_offset): Remove.
15866 (read_comp_unit_head): Update.
15867 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15868 method.
15869 (read_offset): Don't declare.
15870
4057dfde
TT
158712020-02-08 Tom Tromey <tom@tromey.com>
15872
15873 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15874 * dwarf2/read.c (struct comp_unit_head): Move to
15875 dwarf2/comp-unit.h.
15876 (enum class rcuh_kind): Move to comp-unit.h.
15877 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15878 (read_comp_unit_head, error_check_comp_unit_head)
15879 (read_and_check_comp_unit_head): Move to comp-unit.c.
15880 (read_offset, dwarf_unit_type_name): Likewise.
15881 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15882 (cutu_reader::cutu_reader, read_call_site_scope)
15883 (find_partial_die, follow_die_offset): Update.
15884 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15885
24aa364d
TT
158862020-02-08 Tom Tromey <tom@tromey.com>
15887
15888 * dwarf2/read.c (read_offset_1): Move to leb.c.
15889 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15890 (dwarf_decode_macro_bytes): Update.
15891 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15892 * dwarf2/leb.h (read_offset): Declare.
15893
2c7d5afc
TT
158942020-02-08 Tom Tromey <tom@tromey.com>
15895
15896 * dwarf2/read.c (dwarf2_section_size): Remove.
15897 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15898 Update.
15899 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15900
4075cb26
TT
159012020-02-08 Tom Tromey <tom@tromey.com>
15902
15903 * dwarf2/read.c (read_initial_length): Move to leb.c.
15904 * dwarf2/leb.h (read_initial_length): Declare.
15905 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
15906 handle_nonstd parameter.
15907 * dwarf2/frame.c (read_initial_length): Remove.
15908 (decode_frame_entry_1): Update.
15909
09ba997f
TT
159102020-02-08 Tom Tromey <tom@tromey.com>
15911
15912 * dwarf2/loc.c (dwarf2_find_location_expression)
15913 (dwarf_evaluate_loc_desc::get_tls_address)
15914 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15915 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15916 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15917 (dwarf2_compile_property_to_c)
15918 (dwarf2_loc_desc_get_symbol_read_needs)
15919 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15920 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15921 (loclist_describe_location, loclist_tracepoint_var_ref)
15922 (loclist_generate_c_location): Update.
15923 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15924 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15925 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15926 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15927 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15928 (dwarf2_per_cu_data::addr_size)
15929 (dwarf2_per_cu_data::ref_addr_size)
15930 (dwarf2_per_cu_data::text_offset)
15931 (dwarf2_per_cu_data::addr_type): Now methods.
15932 (per_cu_header_read_in): Make per_cu "const".
15933 (dwarf2_version): Remove.
15934 (dwarf2_per_cu_data::int_type): Now a method.
15935 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15936 (set_die_type, read_array_type, read_subrange_index_type)
15937 (read_tag_string_type, read_subrange_type): Update.
15938 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15939 offset_size, ref_addr_size, text_offset, addr_type, version,
15940 objfile, int_type, addr_sized_int_type>: Declare methods.
15941
96c738c0
TT
159422020-02-08 Tom Tromey <tom@tromey.com>
15943
15944 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15945 Move earlier.
15946
8fdd972c
TT
159472020-02-08 Tom Tromey <tom@tromey.com>
15948
15949 * dwarf2/read.h (dwarf_line_debug): Declare.
15950 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15951 * dwarf2/read.c: Move line_header code to new files.
15952 (dwarf_line_debug): No longer static.
15953 * dwarf2/line-header.c: New file.
15954 * dwarf2/line-header.h: New file.
15955
03075812
TT
159562020-02-08 Tom Tromey <tom@tromey.com>
15957
15958 * dwarf2/read.c (struct line_header) <file_full_name,
15959 file_file_name>: Return unique_xmalloc_ptr.
15960 (line_header::file_file_name): Update.
15961 (line_header::file_full_name): Update.
15962 (dw2_get_file_names_reader): Update.
15963 (macro_start_file): Update.
15964
bb822404
TT
159652020-02-08 Tom Tromey <tom@tromey.com>
15966
15967 * dwarf2/read.c (struct line_header) <file_full_name,
15968 file_file_name>: Declare methods.
15969 (dw2_get_file_names_reader): Update.
15970 (file_file_name): Now a method.
15971 (file_full_name): Likewise.
15972 (macro_start_file): Update.
15973
009b64fc
TT
159742020-02-08 Tom Tromey <tom@tromey.com>
15975
15976 * dwarf2/read.c (dwarf_always_disassemble)
15977 (show_dwarf_always_disassemble): Move to loc.c.
15978 (_initialize_dwarf2_read): Move "always-disassemble" registration
15979 to loc.c.
15980 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15981 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15982 static.
15983 (show_dwarf_always_disassemble): Move from read.c.
15984 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15985
5895093f
TT
159862020-02-08 Tom Tromey <tom@tromey.com>
15987
15988 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15989 (create_quick_file_names_table): Return htab_up.
15990 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15991 Update.
15992 * dwarf2/read.h (struct dwarf2_per_objfile)
15993 <quick_file_names_table>: Now htab_up.
15994
b3b32279
TT
159952020-02-08 Tom Tromey <tom@tromey.com>
15996
15997 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15998
1d33d811
TT
159992020-02-08 Tom Tromey <tom@tromey.com>
16000
16001 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
16002 Rewrite.
16003 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
16004 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
16005 (abbrev_table::abbrev_table): No longer inline.
16006 (ABBREV_HASH_SIZE): Remove.
16007 (abbrev_table::m_abbrevs): Now an htab_up.
16008
86de1d91
TT
160092020-02-08 Tom Tromey <tom@tromey.com>
16010
16011 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
16012 (cutu_reader): Update.
16013 (build_type_psymtabs_1): Update.
16014 * dwarf2/abbrev.c (abbrev_table::read): Rename.
16015 (abbrev_table::alloc_abbrev): Update.
16016 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
16017 (abbrev_table::read): New static method, renamed from
16018 abbrev_table_read_table.
16019 (abbrev_table::alloc_abbrev)
16020 (abbrev_table::add_abbrev): Now private.
16021 (abbrev_table::abbrev_table): Now private.
16022 (abbrev_table::m_abbrev_obstack): Now private. Rename.
16023
0335378b
TT
160242020-02-08 Tom Tromey <tom@tromey.com>
16025
16026 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
16027 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
16028 htab_up.
16029
48b490f2
TT
160302020-02-08 Tom Tromey <tom@tromey.com>
16031
16032 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
16033 htab_up.
16034 (lookup_dwo_unit_in_dwp): Update.
16035 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16036 on obstack.
16037
bc68fb19
TT
160382020-02-08 Tom Tromey <tom@tromey.com>
16039
16040 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16041 obstack.
16042
d15acc42
TT
160432020-02-08 Tom Tromey <tom@tromey.com>
16044
16045 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16046 line_header_hash.
16047 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16048 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16049 Change type to htab_up.
16050
eaa5fa8b
TT
160512020-02-08 Tom Tromey <tom@tromey.com>
16052
16053 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16054 htab_up. Don't allocate on obstack.
16055 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16056 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16057 Change type to htab_up.
16058
b0b6a987
TT
160592020-02-08 Tom Tromey <tom@tromey.com>
16060
16061 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16062 Change type to htab_up.
16063 * dwarf2/read.c (create_signatured_type_table_from_index)
16064 (create_signatured_type_table_from_debug_names)
16065 (create_all_type_units, add_type_unit)
16066 (lookup_dwo_signatured_type, lookup_signatured_type)
16067 (process_skeletonless_type_unit): Update.
16068 (create_debug_type_hash_table, create_debug_types_hash_table):
16069 Change type of types_htab.
16070 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16071 htab_up. Don't allocate on obstack.
16072 (create_cus_hash_table): Change type of cus_htab parameter.
16073 (struct dwo_file) <cus, tus>: Now htab_up.
16074 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16075 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16076 (queue_and_load_all_dwo_tus): Update.
16077 * dwarf2/index-write.c (write_gdbindex): Update.
16078 (write_debug_names): Update.
16079
39856def
TT
160802020-02-08 Tom Tromey <tom@tromey.com>
16081
16082 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16083 dwarf2/read.c. Remove "next" member. Add constructor ntad
16084 destructor.
16085 (struct dwarf2_per_objfile) <queue>: New member.
16086 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16087 dwarf2/read.h.
16088 (dwarf2_queue, dwarf2_queue_tail): Remove.
16089 (class dwarf2_queue_guard): Add parameter to constructor. Use
16090 DISABLE_COPY_AND_ASSIGN.
16091 <m_per_objfile>: New member.
16092 <~dwarf2_queue_guard>: Rewrite.
16093 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16094 Update.
16095 (~dwarf2_queue_item): New.
16096
3e225074
TT
160972020-02-08 Tom Tromey <tom@tromey.com>
16098
16099 * dwarf2/read.c (struct die_info) <has_children>: New member.
16100 (dw2_get_file_names_reader): Remove has_children.
16101 (dw2_get_file_names): Update.
16102 (read_cutu_die_from_dwo): Remove has_children.
16103 (cutu_reader::init_tu_and_read_dwo_dies)
16104 (cutu_reader::cutu_reader): Update.
16105 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16106 Remove has_children.
16107 (build_type_psymtabs_1, process_skeletonless_type_unit)
16108 (load_partial_comp_unit, load_full_comp_unit): Update.
16109 (create_dwo_cu_reader): Remove has_children.
16110 (create_cus_hash_table, read_die_and_children): Update.
16111 (read_full_die_1,read_full_die): Remove has_children.
16112 (read_signatured_type): Update.
16113 (class cutu_reader) <has_children>: Remove.
16114
82ca8957
TT
161152020-02-08 Tom Tromey <tom@tromey.com>
16116
16117 * dwarf2/expr.c: Rename from dwarf2expr.c.
16118 * dwarf2/expr.h: Rename from dwarf2expr.h.
16119 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16120 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16121 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16122 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16123 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16124 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16125 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16126 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16127 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16128 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16129 * dwarf2/loc.c: Rename from dwarf2loc.c.
16130 * dwarf2/loc.h: Rename from dwarf2loc.h.
16131 * dwarf2/read.c: Rename from dwarf2read.c.
16132 * dwarf2/read.h: Rename from dwarf2read.h.
16133 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16134 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16135 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16136 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16137 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16138 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16139 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16140 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16141 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16142 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16143 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16144 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16145 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16146 Update.
16147 * Makefile.in (COMMON_SFILES): Update.
16148 (HFILES_NO_SRCDIR): Update.
16149
9e35d499
TT
161502020-02-08 Tom Tromey <tom@tromey.com>
16151
16152 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16153 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16154
1eba2311
TT
161552020-02-08 Tom Tromey <tom@tromey.com>
16156
16157 * dwarf2read.h (struct die_info): Don't declare.
16158
e41c2da2
TT
161592020-02-08 Tom Tromey <tom@tromey.com>
16160
16161 * dwarf2read.h (die_info_ptr): Remove typedef.
16162
4fc6c0d5
TT
161632020-02-08 Tom Tromey <tom@tromey.com>
16164
16165 * dwarf2read.c (read_call_site_scope)
16166 (handle_data_member_location, dwarf2_add_member_fn)
16167 (mark_common_block_symbol_computed, read_common_block)
16168 (attr_to_dynamic_prop, partial_die_info::read)
16169 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16170 (dwarf2_symbol_mark_computed, set_die_type): Update.
16171 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16172 method.
16173 (attr_form_is_block): Don't declare.
16174 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16175
cd6c91b4
TT
161762020-02-08 Tom Tromey <tom@tromey.com>
16177
16178 * dwarf2read.c (dwarf2_find_base_address, )
16179 (read_call_site_scope, rust_containing_type)
16180 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16181 (handle_data_member_location, dwarf2_add_member_fn)
16182 (get_alignment, read_structure_type, process_structure_scope)
16183 (mark_common_block_symbol_computed, read_common_block)
16184 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16185 (partial_die_info::read, read_attribute_value, new_symbol)
16186 (lookup_die_type, dwarf2_get_ref_die_offset)
16187 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16188 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16189 (dwarf2_symbol_mark_computed): Update.
16190 * dwarf2/attribute.h (struct attribute) <value_as_address,
16191 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16192 methods.
16193 (value_as_address, attr_form_is_section_offset)
16194 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16195 * dwarf2/attribute.c (attribute::value_as_address)
16196 (attribute::form_is_section_offset, attribute::form_is_constant)
16197 (attribute::form_is_ref): Now methods.
16198
162dce55
TT
161992020-02-08 Tom Tromey <tom@tromey.com>
16200
16201 * dwarf2read.c (struct attribute, DW_STRING)
16202 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16203 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16204 (attr_form_is_block, attr_form_is_section_offset)
16205 (attr_form_is_constant, attr_form_is_ref): Move.
16206 * dwarf2/attribute.h: New file.
16207 * dwarf2/attribute.c: New file, from dwarf2read.c.
16208 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16209
3054dd54
TT
162102020-02-08 Tom Tromey <tom@tromey.com>
16211
16212 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16213 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16214 Move.
16215 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16216 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16217 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16218 abbrev.c.
16219 * dwarf2/abbrev.h: New file.
16220 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16221 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16222
96b79293
TT
162232020-02-08 Tom Tromey <tom@tromey.com>
16224
16225 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16226 (dwarf2_section_size, dwarf2_get_section_info)
16227 (create_signatured_type_table_from_debug_names)
16228 (create_addrmap_from_aranges, read_debug_names_from_section)
16229 (get_gdb_index_contents_from_section, read_comp_unit_head)
16230 (error_check_comp_unit_head, read_abbrev_offset)
16231 (create_debug_type_hash_table, init_cu_die_reader)
16232 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16233 (read_comp_units_from_section, create_cus_hash_table)
16234 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16235 (create_dwp_v2_section, dwarf2_rnglists_process)
16236 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16237 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16238 (read_indirect_string_from_dwz, read_addr_index_1)
16239 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16240 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16241 (fill_in_loclist_baton): Update.
16242 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16243 get_containing_section, get_bfd_owner, get_bfd_section,
16244 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16245 (dwarf2_read_section, get_section_name, get_section_file_name)
16246 (get_containing_section, get_section_bfd_owner)
16247 (get_section_bfd_section, get_section_name, get_section_file_name)
16248 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16249 declare.
16250 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16251 (dwarf2_section_info::get_bfd_owner)
16252 (dwarf2_section_info::get_bfd_section)
16253 (dwarf2_section_info::get_name)
16254 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16255 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16256 (dwarf2_section_info::read): Now methods.
16257 * dwarf-index-write.c (class debug_names): Update.
16258
2c86cff9
TT
162592020-02-08 Tom Tromey <tom@tromey.com>
16260
16261 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16262 Move to dwarf2/section.h.
16263 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16264 (get_section_bfd_section, get_section_name)
16265 (get_section_file_name, get_section_id, get_section_flags)
16266 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16267 dwarf2/section.c.
16268 * dwarf2/section.h: New file.
16269 * dwarf2/section.c: New file, from dwarf2read.c.
16270 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16271
f4382c45
TT
162722020-02-08 Tom Tromey <tom@tromey.com>
16273
16274 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16275 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16276 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16277 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16278 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16279 * dwarf2/leb.h: New file, from dwarf2read.c.
16280 * dwarf2/leb.c: New file, from dwarf2read.c.
16281 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16282 Remove.
16283 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16284 (COMMON_SFILES): Add dwarf2/leb.c.
16285
01840b7a
JB
162862020-02-08 Joel Brobecker <brobecker@adacore.com>
16287
16288 GDB 9.1 released.
16289
dfcb27e4
IB
162902020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16291
16292 PR gdb/25190:
aac66a4c
SM
16293 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16294 * gdb/remote.c (remote_console_output): Update.
16295 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16296 (ui_file_puts): ...this.
16297 * gdb/ui-file.h (ui_file_puts): Add declaration.
16298 * gdb/utils.c (emit_style_escape): Update.
16299 (flush_wrap_buffer): Update.
16300 (fputs_maybe_filtered): Update.
16301 (fputs_unfiltered): Add function.
dfcb27e4 16302
faa17681
IB
163032020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16304
aac66a4c
SM
16305 * gdb/event-loop.c (gdb_wait_for_event): Update.
16306 * gdb/printcmd.c (printf_command): Update.
16307 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16308 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16309 (gdb_os_flush_stderr): Update.
16310 * gdb/remote.c (remote_console_output): Update.
16311 * gdb/ui-file.c (gdb_flush): Rename to...
16312 (ui_file_flush): ...this.
16313 (stderr_file::write): Update.
16314 (stderr_file::puts): Update.
16315 * gdb/ui-file.h (gdb_flush): Rename to...
16316 (ui_file_flush): ...this.
16317 * gdb/utils.c (gdb_flush): Add function.
16318 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16319
5abbbe1d
TT
163202020-02-07 Tom Tromey <tromey@adacore.com>
16321
16322 PR breakpoints/24915:
16323 * source.c (find_and_open_source): Do not check basenames_may_differ.
16324
919adfe8
TT
163252020-02-07 Tom Tromey <tom@tromey.com>
16326
16327 * README: Update gdbserver documentation.
16328 * gdbserver: Move to top level.
16329 * configure.tgt (build_gdbserver): Remove.
16330 * configure.ac: Remove --enable-gdbserver.
16331 * configure: Rebuild.
16332 * Makefile.in (distclean): Don't mention gdbserver.
16333
1d5d29e7
SV
163342020-02-06 Shahab Vahedi <shahab@synopsys.com>
16335
16336 * source-cache.c (source_cache::ensure): Surround
16337 get_plain_source_lines with a try/catch.
16338 (source_cache::get_line_charpos): Get rid of try/catch
16339 and only check for the return value of "ensure".
16340 * tui/tui-source.c (tui_source_window::set_contents):
16341 Simplify "nlines" calculation.
16342
6eb1129c
SV
163432020-02-06 Shahab Vahedi <shahab@synopsys.com>
16344
16345 * MAINTAINERS (Write After Approval): Add myself.
16346
c6a42d11
CB
163472020-02-05 Christian Biesinger <cbiesinger@google.com>
16348
16349 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16350 function call.
16351
c8ecdda6
CB
163522020-02-05 Christian Biesinger <cbiesinger@google.com>
16353
16354 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16355
f6480e70
MR
163562020-02-05 Maciej W. Rozycki <macro@wdc.com>
16357
16358 * nat/riscv-linux-tdesc.h: New file.
16359 * nat/riscv-linux-tdesc.c: New file, taking code from...
16360 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16361 ... here.
16362 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16363 NATDEPFILES.
16364
dcc9fbc6
AB
163652020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16366
16367 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16368 we don't set the fake simulator ptid to the null_ptid.
16369
719546c4
SM
163702020-02-03 Simon Marchi <simon.marchi@efficios.com>
16371
16372 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16373 * gdbthread.h (class thread_info) <resumed>: Likewise.
16374 * infrun.c (resume_1): Likewise.
16375 (proceed): Likewise.
16376 (infrun_thread_stop_requested): Likewise.
16377 (stop_all_threads): Likewise.
16378 (handle_inferior_event): Likewise.
16379 (restart_threads): Likewise.
16380 (finish_step_over): Likewise.
16381 (keep_going_stepped_thread): Likewise.
16382 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16383 (linux_handle_extended_wait): Likewise.
16384 * record-btrace.c (get_thread_current_frame_id): Likewise.
16385 * record-full.c (record_full_wait_1): Likewise.
16386 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16387 * target.c (target_resume): Likewise.
16388 * thread.c (set_running_thread): Likewise.
16389
e409c542
AKS
163902020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16391
16392 * f-valprint.c (f77_print_array_1): Changed datatype of index
16393 variable to LONGEST from int to enable it to contain bound
16394 values correctly.
16395
ee98c0da
MR
163962020-02-03 Maciej W. Rozycki <macro@wdc.com>
16397
16398 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16399 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16400 offsets according to FLEN determined.
16401 (riscv_linux_nat_target::read_description): Determine FLEN
16402 dynamically.
16403 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16404 according to FLEN determined.
16405 (riscv_linux_nat_target::store_registers): Likewise.
16406
aa66aac4
SV
164072020-02-01 Shahab Vahedi <shahab@synopsys.com>
16408
16409 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16410 when reg->group is empty and reggroup is not.
16411
fd9faca8
TT
164122020-01-31 Tom Tromey <tromey@adacore.com>
16413
16414 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16415 Call beneath target's mourn_inferior after unpushing.
16416
42330a68
AB
164172020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16418
16419 PR tui/9765
16420 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16421 have enough lines to fill the screen, still return the lowest
16422 address we found.
16423
7a27a45b
AB
164242020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16425
16426 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16427 '-', '<', and '>' commands.
16428
c47f70e2
PA
164292020-01-29 Pedro Alves <palves@redhat.com>
16430 Sergio Durigan Junior <sergiodj@redhat.com>
16431
16432 * infcmd.c (construct_inferior_arguments): Assert that
16433 'argc' is greater than 0.
16434
5133a315
LM
164352020-01-29 Luis Machado <luis.machado@linaro.org>
16436
16437 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16438 (BRK_INSN_MASK): Define to 0xd4200000.
16439 (aarch64_program_breakpoint_here_p): New function.
16440 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16441 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16442 breakpoint.c.
16443 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16444 breakpoint.h
16445 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16446 call gdbarch_program_breakpoint_here_p.
16447 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16448 default_program_breakpoint_here_p, changed return type to bool and
16449 simplified.
16450 * breakpoint.h (program_breakpoint_here): Moved prototype to
16451 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16452 return type to bool.
16453 * gdbarch.c: Regenerate.
16454 * gdbarch.h: Regenerate.
16455 * gdbarch.sh (program_breakpoint_here_p): New method.
16456 * infrun.c (handle_signal_stop): Call
16457 gdbarch_program_breakpoint_here_p.
16458
168f8c6b
TT
164592020-01-26 Tom Tromey <tom@tromey.com>
16460
16461 * ctfread.c (struct ctf_fp_info): Reindent.
16462 (_initialize_ctfread): Remove.
16463
128a391f
TT
164642020-01-26 Tom Tromey <tom@tromey.com>
16465
16466 * psymtab.c (partial_map_expand_apply)
16467 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16468 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16469 (psym_print_stats, psym_expand_symtabs_for_function)
16470 (psym_map_symbol_filenames, psym_map_matching_symbols)
16471 (psym_expand_symtabs_matching)
16472 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16473 (maintenance_check_psymtabs): Use new methods.
16474 * psympriv.h (struct partial_symtab) <readin_p,
16475 get_compunit_symtab>: New methods.
16476 <readin, compunit_symtab>: Remove members.
16477 (struct standard_psymtab): New.
16478 (struct legacy_psymtab): Derive from standard_psymtab.
16479 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16480 standard_psymtab.
16481 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16482
0494dbec
TT
164832020-01-26 Tom Tromey <tom@tromey.com>
16484
16485 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16486 read_dependencies. Add assert.
16487 * psymtab.c (partial_symtab::read_dependencies): New method.
16488 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16489 method.
16490 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16491 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16492 read_dependencies.
16493 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16494 Add assert.
16495
8566b89b
TT
164962020-01-26 Tom Tromey <tom@tromey.com>
16497
16498 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16499 Call expand_psymtab.
16500 (xcoff_read_symtab): Call expand_psymtab.
16501 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16502 legacy_expand_psymtab.
16503 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16504 method.
16505 (struct legacy_psymtab) <expand_psymtab>: Implement.
16506 <legacy_expand_psymtab>: New member.
16507 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16508 (parse_partial_symbols): Set legacy_expand_psymtab.
16509 (psymtab_to_symtab_1): Change argument order. Call
16510 expand_psymtab.
16511 (new_psymtab): Set legacy_expand_psymtab.
16512 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16513 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16514 expand_psymtab.
16515 (dwarf2_psymtab::expand_psymtab): Rename from
16516 psymtab_to_symtab_1. Call expand_psymtab.
16517 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16518 (dbx_end_psymtab): Likewise.
16519 (dbx_psymtab_to_symtab_1): Change argument order. Call
16520 expand_psymtab.
16521 (dbx_read_symtab): Call expand_psymtab.
16522 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16523 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16524 (ctf_psymtab::read_symtab): Call expand_psymtab.
16525
077cbab2
TT
165262020-01-26 Tom Tromey <tom@tromey.com>
16527
16528 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16529 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16530 messages.
16531 * mdebugread.c (mdebug_read_symtab): Remove prints.
16532 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16533 assert.
16534 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16535
891813be
TT
165362020-01-26 Tom Tromey <tom@tromey.com>
16537
16538 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16539 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16540 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16541 legacy_symtab.
16542 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16543 * psymtab.c (psymtab_to_symtab): Call method.
16544 (dump_psymtab): Update.
16545 * psympriv.h (struct partial_symtab): Add virtual destructor.
16546 <read_symtab>: New method.
16547 (struct legacy_symtab): New.
16548 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16549 (struct pst_map) <pst>: Now a legacy_psymtab.
16550 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16551 (new_psymtab): Use legacy_psymtab.
16552 * dwarf2read.h (struct dwarf2_psymtab): New.
16553 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16554 * dwarf2read.c (dwarf2_create_include_psymtab)
16555 (dwarf2_build_include_psymtabs, create_type_unit_group)
16556 (create_partial_symtab, process_psymtab_comp_unit_reader)
16557 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16558 (set_partial_user): Use dwarf2_psymtab.
16559 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16560 (psymtab_to_symtab_1, process_full_comp_unit)
16561 (process_full_type_unit, dwarf2_ranges_read)
16562 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16563 (dwarf_decode_lines): Use dwarf2_psymtab.
16564 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16565 (add_address_entry_worker, write_one_signatured_type)
16566 (recursively_count_psymbols, recursively_write_psymbols)
16567 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16568 (write_debug_names): Likewise.
16569 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16570 <pst>: Now a legacy_psymtab.
16571 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16572 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16573 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16574 * ctfread.c (struct ctf_psymtab): New.
16575 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16576 ctf_psymtab.
16577 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16578 (create_partial_symtab): Return a ctf_psymtab.
16579 (scan_partial_symbols): Update.
16580
c3693a1d
TT
165812020-01-26 Tom Tromey <tom@tromey.com>
16582
16583 * xcoffread.c (xcoff_start_psymtab): Use new.
16584 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16585 renamed from start_psymtab_common.
16586 * psympriv.h (struct partial_symtab): Add new constructor.
16587 (start_psymtab_common): Don't declare.
16588 * mdebugread.c (parse_partial_symbols): Use new.
16589 * dwarf2read.c (create_partial_symtab): Use new.
16590 * dbxread.c (start_psymtab): Use new.
16591 * ctfread.c (create_partial_symtab): Use new.
16592
32caafd0
TT
165932020-01-26 Tom Tromey <tom@tromey.com>
16594
16595 * xcoffread.c (xcoff_end_psymtab): Use new.
16596 * psymtab.c (start_psymtab_common): Use new.
16597 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16598 Update.
16599 * psympriv.h (struct partial_symtab): Add parameters to
16600 constructor. Don't inline.
16601 (allocate_psymtab): Don't declare.
16602 * mdebugread.c (new_psymtab): Use new.
16603 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16604 * dbxread.c (dbx_end_psymtab): Use new.
16605
abaa2f23
TT
166062020-01-26 Tom Tromey <tom@tromey.com>
16607
16608 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16609 allocate_psymtab. Update documentation.
16610 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16611 allocate_psymtab. Do not use new.
16612 (allocate_psymtab): Use new. Update.
16613
6d94535f
TT
166142020-01-26 Tom Tromey <tom@tromey.com>
16615
16616 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16617 * psymtab.c (psym_print_stats): Update.
16618 * psympriv.h (struct partial_symtab) <readin,
16619 psymtabs_addrmap_supported, anonymous>: Now bool.
16620 * mdebugread.c (psymtab_to_symtab_1): Update.
16621 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16622 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16623 (process_full_comp_unit, process_full_type_unit): Update.
16624 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16625 * ctfread.c (psymtab_to_symtab): Update.
16626
6f17252b
TT
166272020-01-26 Tom Tromey <tom@tromey.com>
16628
16629 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16630 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16631 * psymtab.c (psymtab_storage): Delete psymtabs.
16632 (psymtab_storage::allocate_psymtab): Use new.
16633 (psymtab_storage::discard_psymtab): Use delete.
16634 * psympriv.h (struct partial_symtab): Add constructor and
16635 initializers.
16636
f6f1cebc
TT
166372020-01-26 Tom Tromey <tom@tromey.com>
16638
16639 * machoread.c: Do not include psympriv.h.
16640
e47e48f6
PW
166412020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16642
16643 * NEWS: Mention the new option and the set/show commands.
16644
a2fedca9
PW
166452020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16646
16647 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16648 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16649 (validate_exec_file): New variables, enums, functions.
16650 (exec_file_locate_attach, print_section_info): Style the filenames.
16651 (_initialize_exec): Install show_exec_file_mismatch_command and
16652 set_exec_file_mismatch_command.
16653 * gdbcore.h (validate_exec_file): Declare.
16654 * infcmd.c (attach_command): Call validate_exec_file.
16655 * remote.c ( remote_target::remote_add_inferior): Likewise.
16656
7ffa82e1
AB
166572020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16658
16659 * frame.c (find_frame_sal): Move call to get_next_frame into more
16660 inner scope.
16661 * inline-frame.c (inilne_state) <inline_state>: Update argument
16662 types.
16663 (inilne_state) <skipped_symbol>: Rename to...
16664 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16665 (skip_inline_frames): Build vector of skipped symbols and use this
16666 to reate the inline_state.
16667 (inline_skipped_symbol): Add a comment and some assertions, fetch
16668 skipped symbol from the list.
16669
3d92a3e3
AB
166702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16671
16672 * buildsym.c (lte_is_less_than): Delete.
16673 (buildsym_compunit::end_symtab_with_blockvector): Create local
16674 lambda function to sort line table entries, and use
16675 std::stable_sort instead of std::sort.
16676 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16677 markers when looking for a previous line.
16678
94a72be7
AB
166792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16680
16681 * dwarf2read.c (lnp_state_machine::record_line): Include
16682 end_sequence parameter in debug print out. Record the line if we
16683 are at an end_sequence marker even if it's not the start of a
16684 statement.
16685 * symmisc.c (maintenance_print_one_line_table): Print end of
16686 sequence markers with 'END' not '0'.
16687
53af73bf
PA
166882020-01-24 Pedro Alves <palves@redhat.com>
16689
16690 PR gdb/25410
16691 * thread.c (scoped_restore_current_thread::restore): Use
16692 switch_to_inferior_no_thread.
16693 * exec.c: Include "progspace-and-thread.h".
16694 (add_target_sections, remove_target_sections):
16695 scoped_restore_current_pspace_and_thread instead of
16696 scoped_restore_current_thread.
16697 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16698 and aspace to the inferior before calling clone_program_space.
16699 Remove stale comment.
16700
3050c6f4
CB
167012020-01-24 Christian Biesinger <cbiesinger@google.com>
16702
16703 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16704 (arm_netbsd_nat_target::fetch_registers): ...this.
16705 (arm_nbsd_nat_target::store_registers): Rename to...
16706 (arm_netbsd_nat_target::store_registers): ...this.
16707
73685c7e
CB
167082020-01-24 Christian Biesinger <cbiesinger@google.com>
16709
16710 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16711 register_t.
16712
89203d40
CB
167132020-01-24 Christian Biesinger <cbiesinger@google.com>
16714
16715 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16716 Update comment.
16717 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16718 Likewise.
16719 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16720 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16721 the correct replacement (iterate_over_regset_sections).
16722 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16723 Update comment.
16724
1ba1ac88
AB
167252020-01-24 Graham Markall <graham.markall@embecosm.com>
16726
16727 PR gdb/23718
16728 * gdb/python/python.c (execute_gdb_command): Call
16729 async_enable_stdin in catch block.
16730
f3364a6d
AB
167312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16732
16733 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16734 SWITCH_THRU_ALL_UIS.
16735
733d0a67
AB
167362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16737
16738 PR tui/9765
16739 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16740 comment, add extra parameter, and update to store previous symbol
16741 when appropriate.
16742 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16743 add extra parameter.
16744 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16745 remove unneeded parameter, add try/catch around gdb_print_insn,
16746 rewrite to add items to asm_lines vector.
16747 (tui_find_backward_disassembly_start_address): New function.
16748 (tui_find_disassembly_address): Updated throughout.
16749 (tui_disasm_window::set_contents): Update for changes to
16750 tui_disassemble.
16751 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16752 number of lines to scroll.
16753
b3b3bada
SM
167542020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16755
16756 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16757 (SECT_OFF_DATA): Likewise.
16758 (SECT_OFF_RODATA): Likewise.
16759 (SECT_OFF_TEXT): Likewise.
16760 (SECT_OFF_BSS): Likewise.
16761 (struct objfile) <text_section_offset, data_section_offset>: New
16762 methods.
16763 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16764 objfile::text_section_offset.
16765 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16766 * coffread.c (coff_symtab_read): Likewise.
16767 (enter_linenos): Likewise.
16768 (process_coff_symbol): Likewise.
16769 * ctfread.c (get_objfile_text_range): Likewise.
16770 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16771 Use objfile::data_section_offset.
16772 * dwarf2-frame.c (execute_cfa_program): Use
16773 objfile::text_section_offset.
16774 (dwarf2_frame_find_fde): Likewise.
16775 * dwarf2read.c (create_addrmap_from_index): Likewise.
16776 (create_addrmap_from_aranges): Likewise.
16777 (dw2_find_pc_sect_compunit_symtab): Likewise.
16778 (process_psymtab_comp_unit_reader): Likewise.
16779 (add_partial_symbol): Likewise.
16780 (add_partial_subprogram): Likewise.
16781 (process_full_comp_unit): Likewise.
16782 (read_file_scope): Likewise.
16783 (read_func_scope): Likewise.
16784 (read_lexical_block_scope): Likewise.
16785 (read_call_site_scope): Likewise.
16786 (dwarf2_rnglists_process): Likewise.
16787 (dwarf2_ranges_process): Likewise.
16788 (dwarf2_ranges_read): Likewise.
16789 (dwarf_decode_lines_1): Likewise.
16790 (new_symbol): Likewise.
16791 (dwarf2_fetch_die_loc_sect_off): Likewise.
16792 (dwarf2_per_cu_text_offset): Likewise.
16793 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16794 * hppa-tdep.c (read_unwind_info): Likewise.
16795 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16796 * psympriv.h (struct partial_symtab): Likewise.
16797 * psymtab.c (find_pc_sect_psymtab): Likewise.
16798 * solib-svr4.c (enable_break): Likewise.
16799 * stap-probe.c (relocate_address): Use
16800 objfile::data_section_offset.
16801 * xcoffread.c (enter_line_range): Use
16802 objfile::text_section_offset.
16803 (read_xcoff_symtab): Likewise.
16804
ab53f382
SM
168052020-01-23 Simon Marchi <simon.marchi@efficios.com>
16806
16807 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16808 declaration to narrower scopes.
16809
e7eee665
SM
168102020-01-23 Simon Marchi <simon.marchi@efficios.com>
16811
16812 * darwin-nat.h (struct darwin_exception_msg, enum
16813 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16814 Move up.
16815 (class darwin_nat_target) <wait_1, check_new_threads,
16816 decode_exception_message, decode_message, stop_inferior,
16817 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16818 * darwin-nat.c (darwin_check_new_threads): Rename to...
16819 (darwin_nat_target::check_new_threads): ... this.
16820 (darwin_suspend_inferior_it): Remove.
16821 (darwin_decode_exception_message): Rename to...
16822 (darwin_nat_target::decode_exception_message): ... this.
16823 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16824 (darwin_decode_message): Rename to...
16825 (darwin_nat_target::decode_message): ... this.
16826 (cancel_breakpoint): Rename to...
16827 (darwin_nat_target::cancel_breakpoint): ... this.
16828 (darwin_wait): Rename to...
16829 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16830 instead of iterate_over_inferiors.
16831 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16832 (darwin_stop_inferior): Rename to...
16833 (darwin_nat_target::stop_inferior): ... this.
16834 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16835 (darwin_init_thread_list): Rename to...
16836 (darwin_nat_target::init_thread_list): ... this.
16837 (darwin_ptrace_him): Rename to...
16838 (darwin_nat_target::ptrace_him): ... this.
16839 (darwin_nat_target::create_inferior): Pass lambda function to
16840 fork_inferior.
16841 (darwin_nat_target::detach): Call stop_inferior instead of
16842 darwin_stop_inferior.
16843 * fork-inferior.h (fork_inferior): Change init_trace_fun
16844 parameter to gdb::function_view.
16845 * fork-inferior.c (fork_inferior): Likewise.
16846
c162ed3e
HD
168472020-01-23 Hannes Domani <ssbssa@yahoo.de>
16848
16849 * i386-cygwin-tdep.c (core_process_module_section): Update.
16850 * windows-nat.c (struct lm_info_windows): Add text_offset.
16851 (windows_xfer_shared_libraries): Update.
16852 * windows-tdep.c (windows_xfer_shared_library):
16853 Add text_offset_cached argument.
16854 * windows-tdep.h (windows_xfer_shared_library): Update.
16855
a1237872
SM
168562020-01-21 Simon Marchi <simon.marchi@efficios.com>
16857
16858 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16859
b3ee6dd9
SM
168602020-01-21 Simon Marchi <simon.marchi@efficios.com>
16861
16862 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16863 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16864 replace with range-based for.
16865 (gdbsim_interrupt_inferior): Remove.
16866 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16867 with a range-based for. Inline code from
16868 gdbsim_interrupt_inferior.
16869
f9fac3c8
SM
168702020-01-21 Simon Marchi <simon.marchi@efficios.com>
16871
16872 * infrun.c (proceed): Fix indentation.
16873
f6474de9
TT
168742020-01-21 Tom Tromey <tromey@adacore.com>
16875
16876 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16877 * python/python.c (python_extension_ops): Update.
16878 (gdbpy_colorize): New function.
16879 * python/lib/gdb/__init__.py (colorize): New function.
16880 * extension.h (ext_lang_colorize): Declare.
16881 * extension.c (ext_lang_colorize): New function.
16882 * extension-priv.h (struct extension_language_ops) <colorize>: New
16883 member.
16884 * cli/cli-style.c (_initialize_cli_style): Update help text.
16885
f0c702d4
LM
168862020-01-21 Luis Machado <luis.machado@linaro.org>
16887
16888 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16889 <cond>: Change type to bool.
16890 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16891 (aarch64_displaced_step_cb): Likewise.
16892 (aarch64_displaced_step_tb): Likewise.
16893
1ab139e5
LM
168942020-01-21 Luis Machado <luis.machado@linaro.org>
16895
16896 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16897 output.
16898
0c271889
LM
168992020-01-21 Luis Machado <luis.machado@linaro.org>
16900
16901 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16902 <pc_adjust>: Adjust the documentation.
16903 (aarch64_displaced_step_fixup): Check if PC really moved before
16904 adjusting it.
16905
4d89c1c7
TT
169062020-01-19 Tom Tromey <tom@tromey.com>
16907
16908 * disasm.c (~gdb_disassembler): New destructor.
16909 (gdb_buffered_insn_length): Call disassemble_free_target.
16910 * disasm.h (class gdb_disassembler): Declare destructor. Use
16911 DISABLE_COPY_AND_ASSIGN.
16912
c0ab21c2
TT
169132020-01-19 Tom Tromey <tom@tromey.com>
16914
16915 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16916 (die_reader_func_ftype): Remove.
16917 (cutu_reader): New class.
16918 (dw2_get_file_names_reader): Remove "data" parameter.
16919 (dw2_get_file_names): Use cutu_reader.
16920 (create_debug_type_hash_table): Update.
16921 (read_cutu_die_from_dwo): Update comment.
16922 (lookup_dwo_unit): Add dwo_name parameter.
16923 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16924 die_reader_func_ftype and data parameters.
16925 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16926 Remove die_reader_func_ftype and data parameters.
16927 (~cutu_reader): New; from init_cutu_and_read_dies.
16928 (cutu_reader::cutu_reader): Rename from
16929 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16930 and data parameters.
16931 (init_cutu_and_read_dies_simple): Remove.
16932 (struct process_psymtab_comp_unit_data): Remove.
16933 (process_psymtab_comp_unit_reader): Remove data parameter; add
16934 want_partial_unit and pretend_language parameters.
16935 (process_psymtab_comp_unit): Use cutu_reader.
16936 (build_type_psymtabs_reader): Remove data parameter.
16937 (build_type_psymtabs_1): Use cutu_reader.
16938 (process_skeletonless_type_unit): Likewise.
16939 (load_partial_comp_unit_reader): Remove.
16940 (load_partial_comp_unit): Use cutu_reader.
16941 (load_full_comp_unit_reader): Remove.
16942 (load_full_comp_unit): Use cutu_reader.
16943 (struct create_dwo_cu_data): Remove.
16944 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16945 dwo_unit parameters.
16946 (create_cus_hash_table): Use cutu_reader.
16947 (struct dwarf2_read_addr_index_data): Remove.
16948 (dwarf2_read_addr_index_reader): Remove.
16949 (dwarf2_read_addr_index): Use cutu_reader.
16950 (read_signatured_type_reader): Remove.
16951 (read_signatured_type): Use cutu_reader.
16952
45bbae5c
TT
169532020-01-19 Tom Tromey <tom@tromey.com>
16954
16955 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16956 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16957 (tui_wrefresh): Declare.
16958 * tui/tui-wingeneral.c (suppress_output): New global.
16959 (tui_suppress_output, ~tui_suppress_output): New constructor and
16960 destructor.
16961 (tui_wrefresh): New function.
16962 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16963 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16964 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16965 method.
16966 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16967 tui_wrefresh.
16968 (tui_data_window::no_refresh): New method.
16969 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16970 (tui_reg_command): Use tui_suppress_output
16971 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16972 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16973 method.
16974 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16975
4f13c1c0
TT
169762020-01-19 Tom Tromey <tom@tromey.com>
16977
16978 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16979 Handle case where symtab is null.
16980
fa47e446
SM
169812020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16982
16983 * linux-fork.c (one_fork_p): Simplify.
16984
26f42329
SM
169852020-01-17 Simon Marchi <simon.marchi@efficios.com>
16986
16987 * top.c (struct qt_args): Remove.
16988 (kill_or_detach): Change return type to void, replace `void *`
16989 parameter with a proper one.
16990 (print_inferior_quit_action): Likewise.
16991 (quit_confirm): Use range-based for loop to iterate over inferiors.
16992 (quit_force): Likewise.
16993
a9ac81b1
SM
169942020-01-17 Simon Marchi <simon.marchi@efficios.com>
16995
16996 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16997 `void *` parameter with proper parameters.
16998 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16999 (print_one_inferior): Change return type to void, replace `void *`
17000 parameter with proper parameters.
17001 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
17002 inferiors.
17003 (get_other_inferior): Remove.
17004 (mi_cmd_remove_inferior): Use range-based loop to iterate over
17005 inferiors.
17006
788eca49
SM
170072020-01-17 Simon Marchi <simon.marchi@efficios.com>
17008
17009 * mi/mi-interp.c (report_initial_inferior): Remove.
17010 (mi_interp::init): Use range-based for to iterate over inferiors.
17011
d9bc85b6
SM
170122020-01-17 Simon Marchi <simon.marchi@efficios.com>
17013
17014 * python/py-inferior.c (build_inferior_list): Remove.
17015 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
17016
40c94099
CB
170172020-01-16 Christian Biesinger <cbiesinger@google.com>
17018
17019 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
17020 (btrace_stitch_trace): Likewise.
17021 * charset.c (intermediate_encoding): Likewise (vaild).
17022 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
17023 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
17024 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
17025
e0cdfe3c
HD
170262020-01-16 Hannes Domani <ssbssa@yahoo.de>
17027
17028 * windows-tdep.c (windows_get_tlb_type):
17029 Add rtl_user_process_parameters type.
17030
790f1718 170312020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 17032 Norbert Lange <nolange79@gmail.com>
790f1718
PA
17033
17034 PR build/24805
17035 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
17036 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17037 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17038 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17039 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17040 (ps_plog): Redeclare exported functions with default visibility.
17041
3112ed97
NA
170422020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17043
17044 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17045 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17046
8dc3273e
SM
170472020-01-15 Simon Marchi <simon.marchi@efficios.com>
17048
17049 * infcmd.c (post_create_inferior): Use get_thread_regcache
17050 instead of get_current_regcache.
17051
ff47f4f0
TT
170522020-01-14 Tom Tromey <tom@tromey.com>
17053
17054 PR symtab/12535:
17055 * python/python.c (gdbpy_decode_line): Treat empty string the same
17056 as no argument.
17057
975f45b7
TT
170582020-01-14 Tom Tromey <tom@tromey.com>
17059
17060 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17061
25e57356
TT
170622020-01-14 Tom Tromey <tom@tromey.com>
17063
17064 * nat/linux-btrace.c: Don't include <config.h>.
17065 * nat/linux-ptrace.c: Don't include <config.h>.
17066 * nat/x86-linux-dregs.c: Don't include <config.h>.
17067
05ea2a05
TT
170682020-01-14 Tom Tromey <tom@tromey.com>
17069
17070 * configure: Rebuild.
17071 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17072
01027315
TT
170732020-01-14 Tom Tromey <tom@tromey.com>
17074
17075 * nat/x86-linux-dregs.c: Include configh.h.
17076 * nat/linux-ptrace.c: Include configh.h.
17077 * nat/linux-btrace.c: Include configh.h.
17078 * defs.h: Include config.h, bfd.h.
17079 * configure.ac: Don't source common.host.
17080 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17081 * configure: Rebuild.
17082 * acinclude.m4: Update path.
17083 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17084 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17085 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17086 (CLIBS): Add LIBSUPPORT.
17087 (CDEPS): Likewise.
17088 (COMMON_SFILES): Remove gdbsupport files.
17089 (HFILES_NO_SRCDIR): Likewise.
17090 (stamp-version): Update path to create-version.sh.
17091 (ALLDEPFILES): Remove gdbsupport files.
17092
b2ceabe8
TT
170932020-01-14 Tom Tromey <tom@tromey.com>
17094
17095 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17096 USE_WIN32API when needed.
17097 * configure.ac (USE_WIN32API): Don't define.
17098 (WIN32LIBS): Use WIN32APILIBS.
17099 * configure: Rebuild.
17100
25c51f71
TT
171012020-01-14 Tom Tromey <tom@tromey.com>
17102
17103 * configure: Rebuild.
17104 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17105
717c684d
BE
171062020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17107
17108 * skip.c (skip_function_command): Make skip w/o arguments use the
17109 name of the inlined function if pc is inside any inlined function.
17110
7da6a5b9
LM
171112020-01-14 Luis Machado <luis.machado@linaro.org>
17112
17113 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17114 * infrun.c (resume_1): Likewise.
17115 (handle_inferior_event): Remove stale comment.
17116 * linux-nat.c (linux_nat_target::resume): Update comments.
17117 (save_stop_reason): Likewise.
17118 (linux_nat_filter_event): Likewise.
17119 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17120
44e4c775
AB
171212020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17122
17123 * elfread.c (record_minimal_symbol): Set section index to 0 for
17124 non-allocatable sections.
17125
18a8505e
AT
17126
171272020-01-13 Ali Tamur <tamur@google.com>
17128
17129 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17130 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17131 to gdb::optional. Update comments.
17132 (dwo_file): Update comments.
17133 (read_attribute): Update API to take an additional out parameter,
17134 need_reprocess. This is used to mark attributes that need other
17135 attributes (e.g. str_offsets_base) for correct computation which may not
17136 have been read yet.
17137 (read_attribute_reprocess): New function declaration.
17138 (read_addr_index): Likewise.
17139 (read_dwo_str_index): Likewise.
17140 (read_stub_str_index): Likewise.
17141 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17142 (lookup_addr_base): New function definition.
17143 (lookup_ranges_base): Likewise.
17144 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17145 lookup_ranges_base.
17146 (init_cutu_and_read_dies): Update comments.
17147 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17148 unit. This is used to inherit parent's str_offsets_base and addr_base.
17149 Update comments.
17150 (init_cutu_and_read_dies_simple): Reflect API changes.
17151 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17152 (create_cus_hash_table): Change API to take parent compile unit.
17153 Reflect API changes.
17154 (open_and_init_dwo_file): Reflect API changes.
17155 (dwarf2_get_pc_bounds): Update comments.
17156 (dwarf2_record_block_ranges): Likewise.
17157 (read_full_die_1): Change implementation to reprocess attributes that
17158 need str_offsets_base and addr_base.
17159 (partial_die_info::read): Likewise.
17160 (read_attribute_reprocess): New function definition.
17161 (read_attribute_value): Change API to take an additional out parameter,
17162 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17163 when a non-dwo compile unit has index based attributes.
17164 (read_attribute): Reflect API changes.
17165 (read_addr_index_1): Reflect API changes. Update comments.
17166 (dwarf2_read_addr_index_data): Reflect API changes.
17167 (dwarf2_read_addr_index): Likewise.
17168 (read_str_index): Change API and implementation. This becomes a helper
17169 to be used by the new string index related methods. Update error
17170 message and comments.
17171 (read_dwo_str_index): New function definition.
17172 (read_stub_str_index): Likewise.
17173 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17174 * symfile.h (dwarf2_debug_sections): Likewise.
17175 * xcoffread.c (dwarf2_debug_sections): Likewise.
17176
0cac9354
SM
171772020-01-13 Simon Marchi <simon.marchi@efficios.com>
17178
17179 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17180 core_reg_sect type to gdb_byte *.
17181 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17182 * cris-tdep.c (fetch_core_registers): Likewise.
17183 * corelow.c (core_target::get_core_register_section): Change
17184 type of `contents` to gdb::byte_vector.
17185
9a6d629c
AB
171862020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17187
17188 * tui/tui-wingeneral.c (box_win): Position the title in the center
17189 of the border.
17190
d8b2f9e3
SM
171912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17192
17193 * corelow.c (core_target::get_core_register_section): Use
17194 std::vector instead of alloca.
17195
bb564c58
SM
171962020-01-13 Simon Marchi <simon.marchi@efficios.com>
17197
17198 * warning.m4: Add -Wmissing-declarations to build_warnings.
17199 * configure: Re-generate.
17200
6b366111
SM
172012020-01-13 Simon Marchi <simon.marchi@efficios.com>
17202
17203 * python/python.c (init__gdb_module): Add declaration.
17204
6c265988
SM
172052020-01-13 Simon Marchi <simon.marchi@efficios.com>
17206
17207 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17208 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17209 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17210 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17211 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17212 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17213 * ada-exp.y (_initialize_ada_exp): Add declaration.
17214 * ada-lang.c (_initialize_ada_language): Add declaration.
17215 * ada-tasks.c (_initialize_tasks): Add declaration.
17216 * agent.c (_initialize_agent): Add declaration.
17217 * aix-thread.c (_initialize_aix_thread): Add declaration.
17218 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17219 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17220 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17221 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17222 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17223 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17224 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17225 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17226 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17227 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17228 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17229 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17230 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17231 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17232 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17233 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17234 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17235 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17236 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17237 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17238 * annotate.c (_initialize_annotate): Add declaration.
17239 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17240 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17241 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17242 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17243 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17244 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17245 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17246 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17247 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17248 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17249 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17250 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17251 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17252 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17253 * auto-load.c (_initialize_auto_load): Add declaration.
17254 * auxv.c (_initialize_auxv): Add declaration.
17255 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17256 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17257 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17258 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17259 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17260 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17261 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17262 * breakpoint.c (_initialize_breakpoint): Add declaration.
17263 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17264 * btrace.c (_initialize_btrace): Add declaration.
17265 * charset.c (_initialize_charset): Add declaration.
17266 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17267 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17268 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17269 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17270 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17271 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17272 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17273 * coffread.c (_initialize_coffread): Add declaration.
17274 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17275 * compile/compile.c (_initialize_compile): Add declaration.
17276 * complaints.c (_initialize_complaints): Add declaration.
17277 * completer.c (_initialize_completer): Add declaration.
17278 * copying.c (_initialize_copying): Add declaration.
17279 * corefile.c (_initialize_core): Add declaration.
17280 * corelow.c (_initialize_corelow): Add declaration.
17281 * cp-abi.c (_initialize_cp_abi): Add declaration.
17282 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17283 * cp-support.c (_initialize_cp_support): Add declaration.
17284 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17285 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17286 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17287 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17288 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17289 * ctfread.c (_initialize_ctfread): Add declaration.
17290 * d-lang.c (_initialize_d_language): Add declaration.
17291 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17292 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17293 * dbxread.c (_initialize_dbxread): Add declaration.
17294 * dcache.c (_initialize_dcache): Add declaration.
17295 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17296 * disasm.c (_initialize_disasm): Add declaration.
17297 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17298 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17299 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17300 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17301 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17302 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17303 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17304 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17305 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17306 * elfread.c (_initialize_elfread): Add declaration.
17307 * exec.c (_initialize_exec): Add declaration.
17308 * extension.c (_initialize_extension): Add declaration.
17309 * f-lang.c (_initialize_f_language): Add declaration.
17310 * f-valprint.c (_initialize_f_valprint): Add declaration.
17311 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17312 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17313 * filesystem.c (_initialize_filesystem): Add declaration.
17314 * findcmd.c (_initialize_mem_search): Add declaration.
17315 * findvar.c (_initialize_findvar): Add declaration.
17316 * fork-child.c (_initialize_fork_child): Add declaration.
17317 * frame-base.c (_initialize_frame_base): Add declaration.
17318 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17319 * frame.c (_initialize_frame): Add declaration.
17320 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17321 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17322 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17323 * gcore.c (_initialize_gcore): Add declaration.
17324 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17325 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17326 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17327 * gdbarch.c (_initialize_gdbarch): Add declaration.
17328 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17329 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17330 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17331 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17332 * go-lang.c (_initialize_go_language): Add declaration.
17333 * go32-nat.c (_initialize_go32_nat): Add declaration.
17334 * guile/guile.c (_initialize_guile): Add declaration.
17335 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17336 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17337 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17338 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17339 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17340 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17341 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17342 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17343 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17344 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17345 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17346 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17347 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17348 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17349 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17350 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17351 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17352 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17353 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17354 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17355 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17356 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17357 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17358 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17359 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17360 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17361 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17362 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17363 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17364 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17365 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17366 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17367 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17368 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17369 * infcall.c (_initialize_infcall): Add declaration.
17370 * infcmd.c (_initialize_infcmd): Add declaration.
17371 * inflow.c (_initialize_inflow): Add declaration.
17372 * infrun.c (_initialize_infrun): Add declaration.
17373 * interps.c (_initialize_interpreter): Add declaration.
17374 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17375 * jit.c (_initialize_jit): Add declaration.
17376 * language.c (_initialize_language): Add declaration.
17377 * linux-fork.c (_initialize_linux_fork): Add declaration.
17378 * linux-nat.c (_initialize_linux_nat): Add declaration.
17379 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17380 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17381 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17382 * m2-lang.c (_initialize_m2_language): Add declaration.
17383 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17384 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17385 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17386 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17387 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17388 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17389 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17390 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17391 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17392 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17393 * machoread.c (_initialize_machoread): Add declaration.
17394 * macrocmd.c (_initialize_macrocmd): Add declaration.
17395 * macroscope.c (_initialize_macroscope): Add declaration.
17396 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17397 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17398 * maint.c (_initialize_maint_cmds): Add declaration.
17399 * mdebugread.c (_initialize_mdebugread): Add declaration.
17400 * memattr.c (_initialize_mem): Add declaration.
17401 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17402 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17403 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17404 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17405 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17406 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17407 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17408 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17409 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17410 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17411 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17412 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17413 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17414 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17415 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17416 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17417 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17418 * mipsread.c (_initialize_mipsread): Add declaration.
17419 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17420 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17421 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17422 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17423 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17424 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17425 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17426 * nto-procfs.c (_initialize_procfs): Add declaration.
17427 * objc-lang.c (_initialize_objc_language): Add declaration.
17428 * observable.c (_initialize_observer): Add declaration.
17429 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17430 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17431 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17432 * osabi.c (_initialize_gdb_osabi): Add declaration.
17433 * osdata.c (_initialize_osdata): Add declaration.
17434 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17435 * parse.c (_initialize_parse): Add declaration.
17436 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17437 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17438 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17439 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17440 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17441 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17442 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17443 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17444 * printcmd.c (_initialize_printcmd): Add declaration.
17445 * probe.c (_initialize_probe): Add declaration.
17446 * proc-api.c (_initialize_proc_api): Add declaration.
17447 * proc-events.c (_initialize_proc_events): Add declaration.
17448 * proc-service.c (_initialize_proc_service): Add declaration.
17449 * procfs.c (_initialize_procfs): Add declaration.
17450 * producer.c (_initialize_producer): Add declaration.
17451 * psymtab.c (_initialize_psymtab): Add declaration.
17452 * python/python.c (_initialize_python): Add declaration.
17453 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17454 * record-btrace.c (_initialize_record_btrace): Add declaration.
17455 * record-full.c (_initialize_record_full): Add declaration.
17456 * record.c (_initialize_record): Add declaration.
17457 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17458 * regcache.c (_initialize_regcache): Add declaration.
17459 * reggroups.c (_initialize_reggroup): Add declaration.
17460 * remote-notif.c (_initialize_notif): Add declaration.
17461 * remote-sim.c (_initialize_remote_sim): Add declaration.
17462 * remote.c (_initialize_remote): Add declaration.
17463 * reverse.c (_initialize_reverse): Add declaration.
17464 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17465 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17466 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17467 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17468 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17469 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17470 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17471 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17472 Add declaration.
17473 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17474 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17475 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17476 * rust-exp.y (_initialize_rust_exp): Add declaration.
17477 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17478 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17479 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17480 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17481 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17482 * score-tdep.c (_initialize_score_tdep): Add declaration.
17483 * ser-go32.c (_initialize_ser_dos): Add declaration.
17484 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17485 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17486 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17487 * ser-uds.c (_initialize_ser_socket): Add declaration.
17488 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17489 * serial.c (_initialize_serial): Add declaration.
17490 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17491 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17492 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17493 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17494 * skip.c (_initialize_step_skip): Add declaration.
17495 * sol-thread.c (_initialize_sol_thread): Add declaration.
17496 * solib-aix.c (_initialize_solib_aix): Add declaration.
17497 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17498 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17499 * solib-frv.c (_initialize_frv_solib): Add declaration.
17500 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17501 * solib-target.c (_initialize_solib_target): Add declaration.
17502 * solib.c (_initialize_solib): Add declaration.
17503 * source-cache.c (_initialize_source_cache): Add declaration.
17504 * source.c (_initialize_source): Add declaration.
17505 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17506 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17507 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17508 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17509 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17510 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17511 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17512 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17513 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17514 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17515 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17516 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17517 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17518 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17519 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17520 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17521 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17522 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17523 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17524 * stabsread.c (_initialize_stabsread): Add declaration.
17525 * stack.c (_initialize_stack): Add declaration.
17526 * stap-probe.c (_initialize_stap_probe): Add declaration.
17527 * std-regs.c (_initialize_frame_reg): Add declaration.
17528 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17529 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17530 * symfile.c (_initialize_symfile): Add declaration.
17531 * symmisc.c (_initialize_symmisc): Add declaration.
17532 * symtab.c (_initialize_symtab): Add declaration.
17533 * target.c (_initialize_target): Add declaration.
17534 * target-connection.c (_initialize_target_connection): Add
17535 declaration.
17536 * target-dcache.c (_initialize_target_dcache): Add declaration.
17537 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17538 * thread.c (_initialize_thread): Add declaration.
17539 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17540 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17541 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17542 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17543 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17544 * tracectf.c (_initialize_ctf): Add declaration.
17545 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17546 * tracefile.c (_initialize_tracefile): Add declaration.
17547 * tracepoint.c (_initialize_tracepoint): Add declaration.
17548 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17549 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17550 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17551 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17552 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17553 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17554 * tui/tui.c (_initialize_tui): Add declaration.
17555 * typeprint.c (_initialize_typeprint): Add declaration.
17556 * ui-style.c (_initialize_ui_style): Add declaration.
17557 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17558 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17559 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17560 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17561 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17562 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17563 * unittests/filtered_iterator-selftests.c
17564 (_initialize_filtered_iterator_selftests): Add declaration.
17565 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17566 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17567 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17568 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17569 * unittests/main-thread-selftests.c
17570 (_initialize_main_thread_selftests): Add declaration.
17571 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17572 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17573 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17574 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17575 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17576 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17577 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17578 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17579 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17580 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17581 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17582 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17583 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17584 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17585 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17586 declaration.
17587 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17588 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17589 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17590 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17591 * user-regs.c (_initialize_user_regs): Add declaration.
17592 * utils.c (_initialize_utils): Add declaration.
17593 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17594 * valops.c (_initialize_valops): Add declaration.
17595 * valprint.c (_initialize_valprint): Add declaration.
17596 * value.c (_initialize_values): Add declaration.
17597 * varobj.c (_initialize_varobj): Add declaration.
17598 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17599 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17600 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17601 * windows-nat.c (_initialize_windows_nat): Add declaration.
17602 (_initialize_check_for_gdb_ini): Add declaration.
17603 (_initialize_loadable): Add declaration.
17604 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17605 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17606 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17607 * xcoffread.c (_initialize_xcoffread): Add declaration.
17608 * xml-support.c (_initialize_xml_support): Add declaration.
17609 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17610 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17611 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17612 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17613
e2de1eec
SM
176142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17615
17616 * regformats/regdat.sh: Generate declaration for init function.
17617
e0037b4c
SM
176182020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17619
17620 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17621 up.
17622 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17623 close_one_inferior>: New methods.
17624 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17625 pass down target to find_inferior_pid.
17626 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17627 Pass down target to find_inferior_ptid.
17628 (gdbsim_target::create_inferior): Pass down target to
17629 add_thread_silent.
17630 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17631 target down to find_inferior_ptid and switch_to_thread.
17632 (gdbsim_target::close): Update to call close_one_inferior.
17633 (struct resume_data): Remove.
17634 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17635 directly, rather than through a void pointer.
17636 (gdbsim_target::resume): Update to call resume_one_inferior.
17637
58920b5b
SM
176382020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17639
17640 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17641
4ec89149
PA
176422020-01-12 Pedro Alves <palves@redhat.com>
17643
17644 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17645 directly for the current inferior instead of
17646 discard_all_inferiors.
17647 (discard_all_inferiors): Delete.
17648
7c392d1d
TT
176492020-01-11 Tom Tromey <tom@tromey.com>
17650
17651 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17652 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17653 deprecated_safe_get_selected_frame.
17654
d9ebdab7
TBA
176552020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17656
17657 * inferior.c (print_inferior): Switch inferior before printing it.
17658
f3c469b9
PA
176592020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17660 Pedro Alves <palves@redhat.com>
17661
17662 * progspace-and-thread.c (switch_to_program_space_and_thread):
17663 Assert there's an inferior for PSPACE. Use
17664 switch_to_inferior_no_thread to switch the inferior too.
17665 * progspace.c (program_space::~program_space): Call
17666 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17667 (program_space::free_all_objfiles): Don't call clear_symtab_users
17668 here.
17669 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17670
65c574f6
PA
176712020-01-10 Pedro Alves <palves@redhat.com>
17672
17673 * NEWS: Mention multi-target debugging, "info connections", and
17674 "add-inferior -no-connection".
17675
2f4fcf00
PA
176762020-01-10 Pedro Alves <palves@redhat.com>
17677
17678 * infrun.c: Include "target-connection.h".
17679 (check_multi_target_resumption): New.
17680 (proceed): Call it.
17681 * target-connection.c (make_target_connection_string): Make
17682 extern.
17683 * target-connection.h (make_target_connection_string): Declare.
17684
121b3efd
PA
176852020-01-10 Pedro Alves <palves@redhat.com>
17686
17687 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17688 * inferior.c (uiout_field_connection): New function.
17689 (print_inferior): Add new "connection-id" column.
17690 (add_inferior_command): Show connection number/string of added
17691 inferior.
17692 * process-stratum-target.h
17693 (process_stratum_target::connection_string): New virtual method.
17694 (process_stratum_target::connection_number): New field.
17695 * remote.c (remote_target::connection_string): New override.
17696 * target-connection.c: New file.
17697 * target-connection.h: New file.
17698 * target.c (decref_target): Remove process_stratum targets from
17699 the connection list.
17700 (target_stack::push): Add process_stratum targets to the
17701 connection list.
17702
4f837581
PA
177032020-01-10 Pedro Alves <palves@redhat.com>
17704
17705 Revert:
17706 2016-04-12 Pedro Alves <palves@redhat.com>
17707 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17708 Remove references to name.
17709 * serial.h (struct serial) <name>: Delete.
17710
f4ec508e
PA
177112020-01-10 Pedro Alves <palves@redhat.com>
17712
17713 * gdbarch-selftests.c (register_to_value_test): Remove "target
17714 already pushed" check.
17715
5b6d1e4f
PA
177162020-01-10 Pedro Alves <palves@redhat.com>
17717 John Baldwin <jhb@FreeBSD.org>
17718
17719 * aarch64-linux-nat.c
17720 (aarch64_linux_nat_target::thread_architecture): Adjust.
17721 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17722 (task_command_1): Likewise.
17723 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17724 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17725 (aix_thread_target::store_registers)
17726 (aix_thread_target::thread_alive): Adjust.
17727 * amd64-fbsd-tdep.c: Include "inferior.h".
17728 (amd64fbsd_get_thread_local_address): Pass down target.
17729 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17730 thread's gdbarch instead of target_gdbarch.
17731 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17732 get_last_target_status.
17733 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17734 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17735 inferiors.
17736 (update_inserted_breakpoint_locations): Skip if inferiors with no
17737 execution.
17738 (update_global_location_list): When handling moribund locations,
17739 find representative inferior for location's pspace, and use thread
17740 count of its process_stratum target.
17741 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17742 * bsd-uthread.c (bsd_uthread_target::wait): Use
17743 as_process_stratum_target and adjust thread_change_ptid and
17744 add_thread calls.
17745 (bsd_uthread_target::update_thread_list): Use
17746 as_process_stratum_target and adjust find_thread_ptid,
17747 thread_change_ptid and add_thread calls.
17748 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17749 find_thread_ptid call.
17750 * corelow.c (add_to_thread_list): Adjust add_thread call.
17751 (core_target_open): Adjust add_thread_silent and thread_count
17752 calls.
17753 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17754 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17755 * event-top.c (async_disconnect): Pop targets from all inferiors.
17756 * exec.c (add_target_sections): Push exec target on all inferiors
17757 sharing the program space.
17758 (remove_target_sections): Remove the exec target from all
17759 inferiors sharing the program space.
17760 (exec_on_vfork): New.
17761 * exec.h (exec_on_vfork): Declare.
17762 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17763 Pass it down.
17764 (fbsd_nat_target::update_thread_list): Adjust.
17765 (fbsd_nat_target::resume): Adjust.
17766 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17767 down.
17768 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17769 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17770 get_thread_arch_regcache call.
17771 * fork-child.c (gdb_startup_inferior): Pass target down to
17772 startup_inferior and set_executing.
17773 * gdbthread.h (struct process_stratum_target): Forward declare.
17774 (add_thread, add_thread_silent, add_thread_with_info)
17775 (in_thread_list): Add process_stratum_target parameter.
17776 (find_thread_ptid(inferior*, ptid_t)): New overload.
17777 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17778 parameter.
17779 (all_threads()): Delete overload.
17780 (all_threads, all_non_exited_threads): Add process_stratum_target
17781 parameter.
17782 (all_threads_safe): Use brace initialization.
17783 (thread_count): Add process_stratum_target parameter.
17784 (set_resumed, set_running, set_stop_requested, set_executing)
17785 (threads_are_executing, finish_thread_state): Add
17786 process_stratum_target parameter.
17787 (switch_to_thread): Use is_current_thread.
17788 * i386-fbsd-tdep.c: Include "inferior.h".
17789 (i386fbsd_get_thread_local_address): Pass down target.
17790 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17791 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17792 have_inferiors check.
17793 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17794 (inf_ptrace_target::attach): Adjust.
17795 * infcall.c (run_inferior_call): Adjust.
17796 * infcmd.c (run_command_1): Pass target to
17797 scoped_finish_thread_state.
17798 (proceed_thread_callback): Skip inferiors with no execution.
17799 (continue_command): Rename 'all_threads' local to avoid hiding
17800 'all_threads' function. Adjust get_last_target_status call.
17801 (prepare_one_step): Adjust set_running call.
17802 (signal_command): Use user_visible_resume_target. Compare thread
17803 pointers instead of inferior_ptid.
17804 (info_program_command): Adjust to pass down target.
17805 (attach_command): Mark target's 'thread_executing' flag.
17806 (stop_current_target_threads_ns): New, factored out from ...
17807 (interrupt_target_1): ... this. Switch inferior before making
17808 target calls.
17809 * inferior-iter.h
17810 (struct all_inferiors_iterator, struct all_inferiors_range)
17811 (struct all_inferiors_safe_range)
17812 (struct all_non_exited_inferiors_range): Filter on
17813 process_stratum_target too. Remove explicit.
17814 * inferior.c (inferior::inferior): Push dummy target on target
17815 stack.
17816 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17817 Add process_stratum_target parameter, and pass it down.
17818 (have_live_inferiors): Adjust.
17819 (switch_to_inferior_and_push_target): New.
17820 (add_inferior_command, clone_inferior_command): Handle
17821 "-no-connection" parameter. Use
17822 switch_to_inferior_and_push_target.
17823 (_initialize_inferior): Mention "-no-connection" option in
17824 the help of "add-inferior" and "clone-inferior" commands.
17825 * inferior.h: Include "process-stratum-target.h".
17826 (interrupt_target_1): Use bool.
17827 (struct inferior) <push_target, unpush_target, target_is_pushed,
17828 find_target_beneath, top_target, process_target, target_at,
17829 m_stack>: New.
17830 (discard_all_inferiors): Delete.
17831 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17832 (all_inferiors, all_non_exited_inferiors): Add
17833 process_stratum_target parameter.
17834 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17835 (target_last_proc_target): New global.
17836 (follow_fork_inferior): Push target on new inferior. Pass target
17837 to add_thread_silent. Call exec_on_vfork. Handle target's
17838 reference count.
17839 (follow_fork): Adjust get_last_target_status call. Also consider
17840 target.
17841 (follow_exec): Push target on new inferior.
17842 (struct execution_control_state) <target>: New field.
17843 (user_visible_resume_target): New.
17844 (do_target_resume): Call target_async.
17845 (resume_1): Set target's threads_executing flag. Consider resume
17846 target.
17847 (commit_resume_all_targets): New.
17848 (proceed): Also consider resume target. Skip threads of inferiors
17849 with no execution. Commit resumtion in all targets.
17850 (start_remote): Pass current inferior to wait_for_inferior.
17851 (infrun_thread_stop_requested): Consider target as well. Pass
17852 thread_info pointer to clear_inline_frame_state instead of ptid.
17853 (infrun_thread_thread_exit): Consider target as well.
17854 (random_pending_event_thread): New inferior parameter. Use it.
17855 (do_target_wait): Rename to ...
17856 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17857 down.
17858 (threads_are_resumed_pending_p, do_target_wait): New.
17859 (prepare_for_detach): Adjust calls.
17860 (wait_for_inferior): New inferior parameter. Handle it. Use
17861 do_target_wait_1 instead of do_target_wait.
17862 (fetch_inferior_event): Adjust. Switch to representative
17863 inferior. Pass target down.
17864 (set_last_target_status): Add process_stratum_target parameter.
17865 Save target in global.
17866 (get_last_target_status): Add process_stratum_target parameter and
17867 handle it.
17868 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17869 (context_switch): Check inferior_ptid == null_ptid before calling
17870 inferior_thread().
17871 (get_inferior_stop_soon): Pass down target.
17872 (wait_one): Rename to ...
17873 (poll_one_curr_target): ... this.
17874 (struct wait_one_event): New.
17875 (wait_one): New.
17876 (stop_all_threads): Adjust.
17877 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17878 event's target.
17879 (switch_back_to_stepped_thread): Also consider target.
17880 (print_stop_event): Update.
17881 (normal_stop): Update. Also consider the resume target.
17882 * infrun.h (wait_for_inferior): Remove declaration.
17883 (user_visible_resume_target): New declaration.
17884 (get_last_target_status, set_last_target_status): New
17885 process_stratum_target parameter.
17886 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17887 process_stratum_target parameter, and use it.
17888 (clear_inline_frame_state (thread_info*)): New.
17889 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17890 process_stratum_target parameter.
17891 (clear_inline_frame_state (thread_info*)): Declare.
17892 * linux-fork.c (delete_checkpoint_command): Pass target down to
17893 find_thread_ptid.
17894 (checkpoint_command): Adjust.
17895 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17896 instead of just tweaking inferior_ptid.
17897 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17898 (exit_lwp): Pass target down to find_thread_ptid.
17899 (attach_proc_task_lwp_callback): Pass target down to
17900 add_thread/set_running/set_executing.
17901 (linux_nat_target::attach): Pass target down to
17902 thread_change_ptid.
17903 (get_detach_signal): Pass target down to find_thread_ptid.
17904 Consider last target status's target.
17905 (linux_resume_one_lwp_throw, resume_lwp)
17906 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
17907 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
17908 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
17909 (linux_nat_target::async_wait_fd): New.
17910 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
17911 target down.
17912 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17913 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17914 * linux-thread-db.c (struct thread_db_info::process_target): New
17915 field.
17916 (add_thread_db_info): Save target.
17917 (get_thread_db_info): New process_stratum_target parameter. Also
17918 match target.
17919 (delete_thread_db_info): New process_stratum_target parameter.
17920 Also match target.
17921 (thread_from_lwp): Adjust to pass down target.
17922 (thread_db_notice_clone): Pass down target.
17923 (check_thread_db_callback): Pass down target.
17924 (try_thread_db_load_1): Always push the thread_db target.
17925 (try_thread_db_load, record_thread): Pass target down.
17926 (thread_db_target::detach): Pass target down. Always unpush the
17927 thread_db target.
17928 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17929 target down. Always unpush the thread_db target.
17930 (find_new_threads_callback, thread_db_find_new_threads_2)
17931 (thread_db_target::update_thread_list): Pass target down.
17932 (thread_db_target::pid_to_str): Pass current inferior down.
17933 (thread_db_target::get_thread_local_address): Pass target down.
17934 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17935 target down.
17936 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17937 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17938 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17939 (procfs_init_inferior): Rename to ...
17940 (procfs_target::procfs_init_inferior): ... this and adjust.
17941 (procfs_target::create_inferior, procfs_notice_thread)
17942 (procfs_do_thread_registers): Adjust.
17943 * ppc-fbsd-tdep.c: Include "inferior.h".
17944 (ppcfbsd_get_thread_local_address): Pass down target.
17945 * proc-service.c (ps_xfer_memory): Switch current inferior and
17946 program space as well.
17947 (get_ps_regcache): Pass target down.
17948 * process-stratum-target.c
17949 (process_stratum_target::thread_address_space)
17950 (process_stratum_target::thread_architecture): Pass target down.
17951 * process-stratum-target.h
17952 (process_stratum_target::threads_executing): New field.
17953 (as_process_stratum_target): New.
17954 * ravenscar-thread.c
17955 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17956 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17957 down.
17958 * record-btrace.c (record_btrace_target::info_record): Adjust.
17959 (record_btrace_target::record_method)
17960 (record_btrace_target::record_is_replaying)
17961 (record_btrace_target::fetch_registers)
17962 (get_thread_current_frame_id, record_btrace_target::resume)
17963 (record_btrace_target::wait, record_btrace_target::stop): Pass
17964 target down.
17965 * record-full.c (record_full_wait_1): Switch to event thread.
17966 Pass target down.
17967 * regcache.c (regcache::regcache)
17968 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17969 process_stratum_target parameter and handle it.
17970 (current_thread_target): New global.
17971 (get_thread_regcache): Add process_stratum_target parameter and
17972 handle it. Switch inferior before calling target method.
17973 (get_thread_regcache): Pass target down.
17974 (get_thread_regcache_for_ptid): Pass target down.
17975 (registers_changed_ptid): Add process_stratum_target parameter and
17976 handle it.
17977 (registers_changed_thread, registers_changed): Pass target down.
17978 (test_get_thread_arch_aspace_regcache): New.
17979 (current_regcache_test): Define a couple local test_target_ops
17980 instances and use them for testing.
17981 (readwrite_regcache): Pass process_stratum_target parameter.
17982 (cooked_read_test, cooked_write_test): Pass mock_target down.
17983 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17984 (get_thread_arch_aspace_regcache): Add process_stratum_target
17985 parameter.
17986 (regcache::target): New method.
17987 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17988 (regcache::registers_changed_ptid): Add process_stratum_target
17989 parameter.
17990 (regcache::m_target): New field.
17991 (registers_changed_ptid): Add process_stratum_target parameter.
17992 * remote.c (remote_state::supports_vCont_probed): New field.
17993 (remote_target::async_wait_fd): New method.
17994 (remote_unpush_and_throw): Add remote_target parameter.
17995 (get_current_remote_target): Adjust.
17996 (remote_target::remote_add_inferior): Push target.
17997 (remote_target::remote_add_thread)
17998 (remote_target::remote_notice_new_inferior)
17999 (get_remote_thread_info): Pass target down.
18000 (remote_target::update_thread_list): Skip threads of inferiors
18001 bound to other targets. (remote_target::close): Don't discard
18002 inferiors. (remote_target::add_current_inferior_and_thread)
18003 (remote_target::process_initial_stop_replies)
18004 (remote_target::start_remote)
18005 (remote_target::remote_serial_quit_handler): Pass down target.
18006 (remote_target::remote_unpush_target): New remote_target
18007 parameter. Unpush the target from all inferiors.
18008 (remote_target::remote_unpush_and_throw): New remote_target
18009 parameter. Pass it down.
18010 (remote_target::open_1): Check whether the current inferior has
18011 execution instead of checking whether any inferior is live. Pass
18012 target down.
18013 (remote_target::remote_detach_1): Pass down target. Use
18014 remote_unpush_target.
18015 (extended_remote_target::attach): Pass down target.
18016 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
18017 (remote_target::append_resumption): Pass down target.
18018 (remote_target::append_pending_thread_resumptions)
18019 (remote_target::remote_resume_with_hc, remote_target::resume)
18020 (remote_target::commit_resume): Pass down target.
18021 (remote_target::remote_stop_ns): Check supports_vCont_probed.
18022 (remote_target::interrupt_query)
18023 (remote_target::remove_new_fork_children)
18024 (remote_target::check_pending_events_prevent_wildcard_vcont)
18025 (remote_target::remote_parse_stop_reply)
18026 (remote_target::process_stop_reply): Pass down target.
18027 (first_remote_resumed_thread): New remote_target parameter. Pass
18028 it down.
18029 (remote_target::wait_as): Pass down target.
18030 (unpush_and_perror): New remote_target parameter. Pass it down.
18031 (remote_target::readchar, remote_target::remote_serial_write)
18032 (remote_target::getpkt_or_notif_sane_1)
18033 (remote_target::kill_new_fork_children, remote_target::kill): Pass
18034 down target.
18035 (remote_target::mourn_inferior): Pass down target. Use
18036 remote_unpush_target.
18037 (remote_target::core_of_thread)
18038 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18039 (remote_target::pid_to_exec_file)
18040 (remote_target::thread_handle_to_thread_info): Pass down target.
18041 (remote_target::async_wait_fd): New.
18042 * riscv-fbsd-tdep.c: Include "inferior.h".
18043 (riscv_fbsd_get_thread_local_address): Pass down target.
18044 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18045 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18046 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18047 Adjust.
18048 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18049 * solib-svr4.c (enable_break): Pass down target.
18050 * spu-multiarch.c (parse_spufs_run): Pass down target.
18051 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18052 * target-delegates.c: Regenerate.
18053 * target.c (g_target_stack): Delete.
18054 (current_top_target): Return the current inferior's top target.
18055 (target_has_execution_1): Refer to the passed-in inferior's top
18056 target.
18057 (target_supports_terminal_ours): Check whether the initial
18058 inferior was already created.
18059 (decref_target): New.
18060 (target_stack::push): Incref/decref the target.
18061 (push_target, push_target, unpush_target): Adjust.
18062 (target_stack::unpush): Defref target.
18063 (target_is_pushed): Return bool. Adjust to refer to the current
18064 inferior's target stack.
18065 (dispose_inferior): Delete, and inline parts ...
18066 (target_preopen): ... here. Only dispose of the current inferior.
18067 (target_detach): Hold strong target reference while detaching.
18068 Pass target down.
18069 (target_thread_name): Add assertion.
18070 (target_resume): Pass down target.
18071 (target_ops::beneath, find_target_at): Adjust to refer to the
18072 current inferior's target stack.
18073 (get_dummy_target): New.
18074 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18075 has a thread running.
18076 (initialize_targets): Rename to ...
18077 (_initialize_target): ... this.
18078 * target.h: Include "gdbsupport/refcounted-object.h".
18079 (struct target_ops): Inherit refcounted_object.
18080 (target_ops::shortname, target_ops::longname): Make const.
18081 (target_ops::async_wait_fd): New method.
18082 (decref_target): Declare.
18083 (struct target_ops_ref_policy): New.
18084 (target_ops_ref): New typedef.
18085 (get_dummy_target): Declare function.
18086 (target_is_pushed): Return bool.
18087 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18088 (all_matching_threads_iterator::all_matching_threads_iterator):
18089 Handle filter target.
18090 * thread-iter.h (struct all_matching_threads_iterator, struct
18091 all_matching_threads_range, class all_non_exited_threads_range):
18092 Filter by target too. Remove explicit.
18093 * thread.c (threads_executing): Delete.
18094 (inferior_thread): Pass down current inferior.
18095 (clear_thread_inferior_resources): Pass down thread pointer
18096 instead of ptid_t.
18097 (add_thread_silent, add_thread_with_info, add_thread): Add
18098 process_stratum_target parameter. Use it for thread and inferior
18099 searches.
18100 (is_current_thread): New.
18101 (thread_info::deletable): Use it.
18102 (find_thread_ptid, thread_count, in_thread_list)
18103 (thread_change_ptid, set_resumed, set_running): New
18104 process_stratum_target parameter. Pass it down.
18105 (set_executing): New process_stratum_target parameter. Pass it
18106 down. Adjust reference to 'threads_executing'.
18107 (threads_are_executing): New process_stratum_target parameter.
18108 Adjust reference to 'threads_executing'.
18109 (set_stop_requested, finish_thread_state): New
18110 process_stratum_target parameter. Pass it down.
18111 (switch_to_thread): Also match inferior.
18112 (switch_to_thread): New process_stratum_target parameter. Pass it
18113 down.
18114 (update_threads_executing): Reimplement.
18115 * top.c (quit_force): Pop targets from all inferior.
18116 (gdb_init): Don't call initialize_targets.
18117 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18118 Declare.
18119 (windows_add_thread, windows_delete_thread): Adjust.
18120 (get_windows_debug_event): Rename to ...
18121 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18122 * tracefile-tfile.c (tfile_target_open): Pass down target.
18123 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18124 Forward declare.
18125 (switch_to_thread): Add process_stratum_target parameter.
18126 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18127 parameter. Use it.
18128 (mi_on_resume): Pass target down.
18129 * nat/fork-inferior.c (startup_inferior): Add
18130 process_stratum_target parameter. Pass it down.
18131 * nat/fork-inferior.h (startup_inferior): Add
18132 process_stratum_target parameter.
18133 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18134
75c6c844
PA
181352020-01-10 Pedro Alves <palves@redhat.com>
18136
18137 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18138 directly. Instead find the first thread in the thread list and
18139 use switch_to_thread.
18140
78f2c40a
PA
181412020-01-10 Pedro Alves <palves@redhat.com>
18142
18143 * remote.c (remote_target::remote_add_inferior): Don't bind a
18144 process to the current inferior if the current inferior is already
18145 bound to a process.
18146
e7af6c70
TBA
181472020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18148 Pedro Alves <palves@redhat.com>
18149
18150 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18151 If no process is specified, return null_ptid instead of
18152 inferior_ptid.
18153 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18154 TARGET_WAITKIND_SIGNALLED with no pid.
18155
31ba933e
PA
181562020-01-10 Pedro Alves <palves@redhat.com>
18157
18158 * remote.c (first_remote_resumed_thread): New.
18159 (remote_target::wait_as): Use it as default event_ptid instead of
18160 inferior_ptid.
18161
735fc2ca
PA
181622020-01-10 Pedro Alves <palves@redhat.com>
18163
18164 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18165
c17e02e1
PA
181662020-01-10 Pedro Alves <palves@redhat.com>
18167
18168 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18169 not -1.
18170
ab1ddbcf
PA
181712020-01-10 Pedro Alves <palves@redhat.com>
18172
18173 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18174 ptid to get_last_target_status.
18175 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18176 ptid to get_last_target_status.
18177 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18178 get_last_target_status.
18179 (info_program_command): Don't pass a target_waitstatus to
18180 get_last_target_status.
18181 * infrun.c (init_wait_for_inferior): Use
18182 nullify_last_target_wait_ptid.
18183 (get_last_target_status): Handle nullptr arguments.
18184 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18185 (print_stop_event): Don't pass a ptid to get_last_target_status.
18186 (normal_stop): Don't pass a ptid to get_last_target_status.
18187 * infrun.h (get_last_target_status, set_last_target_status): Move
18188 comments here and update.
18189 (nullify_last_target_wait_ptid): Declare.
18190 * linux-fork.c (fork_load_infrun_state): Remove local extern
18191 declaration of nullify_last_target_wait_ptid.
18192 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18193 to get_last_target_status.
18194
f3f8ece4
PA
181952020-01-10 Pedro Alves <palves@redhat.com>
18196
18197 * gdbthread.h (scoped_restore_current_thread)
18198 <dont_restore, restore, m_dont_restore>: Declare.
18199 * thread.c (thread_alive): Add assertion. Return bool.
18200 (switch_to_thread_if_alive): New.
18201 (prune_threads): Switch inferior/thread.
18202 (print_thread_info_1): Switch thread before calling target methods.
18203 (scoped_restore_current_thread::restore): New, factored out from
18204 ...
18205 (scoped_restore_current_thread::~scoped_restore_current_thread):
18206 ... this.
18207 (scoped_restore_current_thread::scoped_restore_current_thread):
18208 Add assertion.
18209 (thread_apply_all_command, thread_select): Use
18210 switch_to_thread_if_alive.
18211 * infrun.c (proceed, restart_threads, handle_signal_stop)
18212 (switch_back_to_stepped_thread): Switch current thread before
18213 calling target methods.
18214
db2d40f7
PA
182152020-01-10 Pedro Alves <palves@redhat.com>
18216
18217 * inferior.c (switch_to_inferior_no_thread): New function,
18218 factored out from ...
18219 (inferior_command): ... here.
18220 * inferior.h (switch_to_inferior_no_thread): Declare.
18221 * mi/mi-main.c (run_one_inferior): Use
18222 switch_to_inferior_no_thread.
18223
bd420a2d
PA
182242020-01-10 Pedro Alves <palves@redhat.com>
18225
18226 * infcmd.c (kill_command): Remove dead code.
18227
ddf5db90
PA
182282020-01-10 Pedro Alves <palves@redhat.com>
18229
18230 * remote.c (remote_target::mourn_inferior): No longer check
18231 whether the target is running.
18232
5018ce90
PA
182332020-01-10 Pedro Alves <palves@redhat.com>
18234
18235 * corelow.c (core_target::has_execution): Change parameter type to
18236 inferior pointer.
18237 * inferior.c (number_of_live_inferiors): Use
18238 inferior::has_execution instead of target_has_execution_1.
18239 * inferior.h (inferior::has_execution): New.
18240 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18241 inferior::has_execution instead of target_has_execution_1.
18242 * process-stratum-target.c
18243 (process_stratum_target::has_execution): Change parameter type to
18244 inferior pointer. Check the inferior's PID instead of
18245 inferior_ptid.
18246 * process-stratum-target.h
18247 (process_stratum_target::has_execution): Change parameter type to
18248 inferior pointer.
18249 * record-full.c (record_full_core_target::has_execution): Change
18250 parameter type to inferior pointer.
18251 * target.c (target_has_execution_1): Change parameter type to
18252 inferior pointer.
18253 (target_has_execution_current): Adjust.
18254 * target.h (target_ops::has_execution): Change parameter type to
18255 inferior pointer.
18256 (target_has_execution_1): Change parameter type to inferior
18257 pointer. Change return type to bool.
18258 * tracefile.h (tracefile_target::has_execution): Change parameter
18259 type to inferior pointer.
18260
74375d18
PA
182612020-01-10 Pedro Alves <palves@redhat.com>
18262
18263 * exceptions.c (print_flush): Remove current_top_target() check.
18264
acdf84a6
PA
182652020-01-10 Pedro Alves <palves@redhat.com>
18266
18267 * remote.c (show_remote_exec_file): Show the current inferior's
18268 exec-file instead of the command variable's value.
18269
ec506636
PA
182702020-01-10 Pedro Alves <palves@redhat.com>
18271
18272 * record-full.c (record_full_resume_ptid): New global.
18273 (record_full_target::resume): Set it.
18274 (record_full_wait_1): Use record_full_resume_ptid instead of
18275 inferior_ptid.
18276
873657b9
PA
182772020-01-10 Pedro Alves <palves@redhat.com>
18278
18279 * gdbthread.h (scoped_restore_current_thread)
18280 <dont_restore, restore, m_dont_restore>: Declare.
18281 * thread.c (thread_alive): Add assertion. Return bool.
18282 (switch_to_thread_if_alive): New.
18283 (prune_threads): Switch inferior/thread.
18284 (print_thread_info_1): Switch thread before calling target methods.
18285 (scoped_restore_current_thread::restore): New, factored out from
18286 ...
18287 (scoped_restore_current_thread::~scoped_restore_current_thread):
18288 ... this.
18289 (scoped_restore_current_thread::scoped_restore_current_thread):
18290 Add assertion.
18291 (thread_apply_all_command, thread_select): Use
18292 switch_to_thread_if_alive.
18293
7f0ae84c
GB
182942020-01-10 George Barrett <bob@bob131.so>
18295
18296 * stap-probe.c (stap_modify_semaphore): Don't check for null
18297 semaphores.
18298 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18299 for null semaphores.
18300
f5a7c406
AB
183012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18302
18303 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18304 all source windows, and maintain horizontal scroll status while
18305 doing so.
18306
9ae6bf64
TT
183072020-01-09 Tom Tromey <tom@tromey.com>
18308
18309 PR tui/18932:
18310 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18311 update_source_window, not print_source_lines.
18312
b2efe70c
AB
183132020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18314
18315 * tui/tui.c (tui_enable): Register tui hooks after calling
18316 tui_display_main.
18317
5f23a082
CB
183182020-01-09 Christian Biesinger <cbiesinger@google.com>
18319
18320 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18321
3061113b
SM
183222020-01-08 Simon Marchi <simon.marchi@efficios.com>
18323
18324 * thread.c (print_thread_info_1): Fix indentation.
18325
57d75002
CB
183262020-01-09 Christian Biesinger <cbiesinger@google.com>
18327
18328 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18329 unique_xmalloc_ptr outside the if to always free the demangled name.
18330
6a053cb1
TT
183312020-01-08 Tom Tromey <tromey@adacore.com>
18332
18333 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18334 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18335 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18336 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18337 Remove.
18338 (section_offsets): New typedef.
18339 * symtab.c (fixup_section, get_msymbol_address): Update.
18340 * symmisc.c (dump_msymbols): Update.
18341 * symfile.h (relative_addr_info_to_section_offsets)
18342 (symfile_map_offsets_to_segments): Update.
18343 * symfile.c (build_section_addr_info_from_objfile)
18344 (init_objfile_sect_indices): Update.
18345 (struct place_section_arg): Change type of "offsets".
18346 (place_section): Update.
18347 (relative_addr_info_to_section_offsets): Change type of
18348 "section_offsets". Remove "num_sections" parameter.
18349 (default_symfile_offsets, syms_from_objfile_1)
18350 (set_objfile_default_section_offset): Update.
18351 (reread_symbols): No need to preserve section offsets by hand.
18352 (symfile_map_offsets_to_segments): Change type of "offsets".
18353 * stap-probe.c (relocate_address): Update.
18354 * stabsread.h (process_one_symbol): Update.
18355 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18356 (solib_target_relocate_section_addresses): Update.
18357 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18358 Update.
18359 * solib-frv.c (frv_relocate_main_executable): Update.
18360 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18361 * solib-aix.c (solib_aix_get_section_offsets): Change return
18362 type.
18363 (solib_aix_solib_create_inferior_hook): Update.
18364 * remote.c (remote_target::get_offsets): Update.
18365 * psymtab.c (find_pc_sect_psymtab): Update.
18366 * psympriv.h (struct partial_symbol) <address, text_low,
18367 text_high>: Update.
18368 * objfiles.h (obj_section_offset): Update.
18369 (struct objfile) <section_offsets>: Change type.
18370 <num_sections>: Remove.
18371 (objfile_relocate): Update.
18372 * objfiles.c (entry_point_address_query): Update
18373 (relocate_one_symbol): Change type of "section_offsets".
18374 (objfile_relocate1, objfile_relocate1): Change type of
18375 "new_offsets".
18376 (objfile_rebase1): Update.
18377 * mipsread.c (mipscoff_symfile_read): Update.
18378 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18379 parameter.
18380 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18381 (parse_external, psymtab_to_symtab_1): Update.
18382 * machoread.c (macho_symfile_offsets): Update.
18383 * ia64-tdep.c (ia64_find_unwind_table): Update.
18384 * hppa-tdep.c (read_unwind_info): Update.
18385 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18386 * dwarf2read.c (create_addrmap_from_index)
18387 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18388 (process_psymtab_comp_unit_reader, add_partial_symbol)
18389 (add_partial_subprogram, process_full_comp_unit)
18390 (read_file_scope, read_func_scope, read_lexical_block_scope)
18391 (read_call_site_scope, dwarf2_rnglists_process)
18392 (dwarf2_ranges_process, dwarf2_ranges_read)
18393 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18394 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18395 Update.
18396 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18397 Update.
18398 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18399 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18400 (process_one_symbol): Change type of "section_offsets".
18401 * ctfread.c (get_objfile_text_range): Update.
18402 * coffread.c (coff_symtab_read, enter_linenos)
18403 (process_coff_symbol): Update.
18404 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18405 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18406
456e800a
TT
184072020-01-08 Tom Tromey <tromey@adacore.com>
18408
18409 * dwarf2read.c (parse_macro_definition): Use std::string.
18410 (parse_macro_definition): Likewise.
18411
6dfa2fc2
TT
184122020-01-08 Tom Tromey <tromey@adacore.com>
18413
18414 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18415 (ATTR_ALLOC_CHUNK): Remove.
18416
421d1616
TT
184172020-01-08 Tom Tromey <tromey@adacore.com>
18418
18419 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18420
43816ebc
TT
184212020-01-08 Tom Tromey <tromey@adacore.com>
18422
18423 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18424 (dwarf2_compute_name, open_dwo_file): Likewise.
18425 (process_enumeration_scope): Use std::vector.
18426 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18427 (partial_die_info::fixup, dwarf2_start_subfile)
18428 (guess_full_die_structure_name, dwarf2_name): Likewise.
18429 (determine_prefix): Update.
18430 (guess_full_die_structure_name): Make return type const.
18431 (partial_die_full_name): Return unique_xmalloc_ptr.
18432 (DW_FIELD_ALLOC_CHUNK): Remove.
18433
4212d509
TT
184342020-01-07 Tom Tromey <tromey@adacore.com>
18435
18436 PR build/24937:
18437 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18438
06a6207a
JT
184392020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18440
18441 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18442
153d79c4
AB
184432020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18444
18445 * stack.c (print_frame_info): Move disassemble_next_line code
18446 inside source_print block.
18447
66182876
EZ
184482020-01-06 Eli Zaretskii <eliz@gnu.org>
18449
18450 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18451 gdb/signals.h, as we are now using native signal symbols.
18452
cbfa8581
SV
184532020-01-06 Shahab Vahedi <shahab@synopsys.com>
18454
18455 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18456 overflow by an early check of content vs threshold.
aac66a4c 18457 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18458 Likewise.
18459
3f602821
EZ
184602020-01-06 Eli Zaretskii <eliz@gnu.org>
18461
18462 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18463
a08c904d
JT
184642020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18465
18466 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18467 export table if no section contains it's RVA.
18468
89a65580
EZ
184692020-01-06 Eli Zaretskii <eliz@gnu.org>
18470
18471 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18472
8b7fcda2
HD
184732020-01-06 Hannes Domani <ssbssa@yahoo.de>
18474
18475 * source.c (print_source_lines_base): Set last_line_listed.
18476
a61b4f69
SV
184772020-01-06 Shahab Vahedi <shahab@synopsys.com>
18478
18479 * tui/tui-disasm.c: Remove trailing spaces.
18480
559e7e50
EZ
184812020-01-06 Eli Zaretskii <eliz@gnu.org>
18482 Pedro Alves <palves@redhat.com>
18483
18484 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18485 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18486 (windows_gdb_signal_to_target): New function, uses the above
18487 enumeration to convert GDB internal signal codes to equivalent
18488 Windows codes.
18489 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18490 * windows-nat.c: Include "gdb_wait.h".
18491 (get_windows_debug_event): Extract the fatal exception from the
18492 exit status and convert to the equivalent Posix signal number.
18493 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18494 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18495 * gdbsupport/gdb_wait.c: New file, implements
18496 windows_status_to_termsig.
18497 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18498 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18499
f2302a34
AB
185002020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18501
18502 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18503 show_layout.
18504
6a5206eb
LM
185052020-01-05 Luis Machado <luis.machado@linaro.org>
18506
18507 * aarch64-linux-nat.c
18508 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18509 and bfd_mach_aarch64.
18510
6ec1d75e
PW
185112020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18512
18513 * ui-file.c (stdio_file::can_emit_style_escape)
18514 (tee_file::can_emit_style_escape): Ensure style is used also on
18515 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18516 to gdb_stdout.
18517 * main.c (set_gdb_data_directory): Use file style to output the
18518 warning that the given pathname is not a directory.
18519 * top.c (show_history_filename, gdb_safe_append_history)
18520 (show_gdb_datadir): Use file style.
18521
44f81a76
HD
185222020-01-03 Hannes Domani <ssbssa@yahoo.de>
18523
18524 * solib-target.c (struct lm_info_target):
18525 Change offsets to be a unique_xmalloc_ptr.
18526 (solib_target_relocate_section_addresses): Update.
18527
25057eb0
HD
185282020-01-03 Hannes Domani <ssbssa@yahoo.de>
18529
18530 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18531
6e2118f5
BE
185322020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18533
18534 * MAINTAINERS (Write After Approval): Add myself.
18535
8133c7dc
LM
185362020-01-02 Luis Machado <luis.machado@linaro.org>
18537
18538 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18539 Cell BE architecture.
18540 * target.h (struct target_ops) <thread_architecture>: Likewise.
18541
48189bec
HD
185422020-01-01 Hannes Domani <ssbssa@yahoo.de>
18543
18544 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18545
ead1063b
HD
185462020-01-01 Hannes Domani <ssbssa@yahoo.de>
18547
18548 * MAINTAINERS (Write After Approval): Add myself.
18549
e5d78223
JB
185502020-01-01 Joel Brobecker <brobecker@adacore.com>
18551
18552 * gdbarch.sh: Update copyright year range of generated files.
18553
b811d2c2
JB
185542020-01-01 Joel Brobecker <brobecker@adacore.com>
18555
18556 Update copyright year range in all GDB files.
18557
5f4def5c
JB
185582020-01-01 Joel Brobecker <brobecker@adacore.com>
18559
18560 * copyright.py: Convert to Python 3.
18561
51fd4002
JB
185622020-01-01 Joel Brobecker <brobecker@adacore.com>
18563
18564 * copyright.py: Adapt after move of gnulib directory from gdb
18565 directory to toplevel directory.
18566
5fb651f2
JB
185672020-01-01 Joel Brobecker <brobecker@adacore.com>
18568
18569 * copyright.py (main): Exit if run from the wrong directory.
18570
5dd8bf88
JB
185712020-01-01 Joel Brobecker <brobecker@adacore.com>
18572
18573 * top.c (print_gdb_version): Change copyright year to 2020.
18574
9f71dacb 185752020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18576
9f71dacb 18577 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18578
9f71dacb 18579For older changes see ChangeLog-2019.
c906108c
SS
18580\f
18581Local Variables:
18582mode: change-log
18583left-margin: 8
18584fill-column: 74
18585version-control: never
57da7796 18586coding: utf-8
c906108c 18587End:
This page took 4.704563 seconds and 4 git commands to generate.