26d7f5837ccadb50afc37c7ab5c8b32f7e485450
[binutils-gdb.git] / gdb / ChangeLog
1 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * expprint.c (print_subexp_standard): Replace uses of
4 LA_PRINT_STRING.
5 * f-valprint.c (f_language::value_print_inner): Likewise.
6 * guile/scm-pretty-print.c (ppscm_print_string_repr): Likewise.
7 * p-valprint.c (pascal_language::value_print_inner): Likewise.
8 * python/py-prettyprint.c (print_string_repr): Likewise.
9
10 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * rust-exp.y (rust_parse): Rename to...
13 (rust_language::parser): ...this.
14 * rust-lang.c (-rust_printstr): Rename to...
15 (rust_language::printstr): ...this.
16 (rust_value_print_inner): Delete declaration.
17 (val_print_struct): Rename to...
18 (rust_language::val_print_struct): ...this. Update calls to
19 member functions.
20 (rust_print_enum): Rename to...
21 (rust_language::print_enum): ...this. Update calls to member
22 functions.
23 (rust_value_print_inner): Rename to...
24 (rust_language::value_print_inner): ...this. Update calls to
25 member functions.
26 (exp_descriptor_rust): Rename to...
27 (rust_language::exp_descriptor_tab): ...this.
28 (class rust_language): Move to rust-lang.h.
29 (rust_language::language_arch_info): Implementation moved to here
30 from class declaration.
31 (rust_language::print_type): Likewise.
32 (rust_language::emitchar): Likewise.
33 (rust_language::is_string_type_p): Likewise.
34 * rust-lang.h: Add 'demangle.h', 'language.h', 'value.h', and
35 'c-lang.h' includes.
36 (rust_parse): Delete declaration.
37 (class rust_language): Class declaration moved here from
38 rust-lang.c.
39
40 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * objc-lang.c (objc_language::opcode_print_table): Return
43 objc_op_print_tab.
44
45 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * p-exp.y (exp): Update call to pascal_is_string_type.
48 (pascal_parse): Rename to...
49 (pascal_language::parser): ...this.
50 * p-lang.c (is_pascal_string_type): Rename to...
51 (pascal_is_string_type): ...this.
52 (pascal_one_char): Rename to...
53 (pascal_language::print_one_char): ...this.
54 (pascal_printchar): Rename to...
55 (pascal_language::printchar): ...this. Update call to
56 print_one_char member function.
57 (pascal_op_print_tab): Rename to...
58 (pascal_language::op_print_tab): ...this.
59 (class pascal_language): Moved to p-lang.h.
60 (pascal_language::language_arch_info): Function implementation
61 moved out of class declaration.
62 (pascal_language::printstr): Likewise.
63 * p-lang.h (pascal_parse): Delete declaration.
64 (pascal_is_string_type): Declare.
65 (pascal_print_type): Delete declaration.
66 (pascal_print_typedef): Delete declaration.
67 (pascal_value_print_inner): Delete declaration.
68 (pascal_value_print): Delete declaration.
69 (pascal_type_print_method_args): Delete declaration.
70 (is_pascal_string_type): Delete declaration.
71 (pascal_printchar): Delete declaration.
72 (pascal_builtin_types): Delete declaration.
73 (pascal_type_print_base): Delete declaration.
74 (pascal_type_print_varspec_prefix): Delete declaration.
75 (class pascal_language): Moved here from p-lang.c.
76 * p-typeprint.c (pascal_type_print_varspec_suffix): Delete
77 declaration.
78 (pascal_type_print_derivation_info): Delete declaration.
79 (pascal_print_type): Rename to...
80 (pascal_language::print_type): ...this. Update calls to member
81 functions.
82 (pascal_print_typedef): Rename to...
83 (pascal_language::print_typedef): ...this. Update calls to member
84 functions.
85 (pascal_type_print_derivation_info): Rename to...
86 (pascal_language::type_print_derivation_info): ...this.
87 (pascal_type_print_method_args): Rename to...
88 (pascal_language::type_print_method_args): ...this.
89 (pascal_type_print_varspec_prefix): Rename to...
90 (pascal_language::type_print_varspec_prefix): ...this. Update
91 calls to member functions.
92 (pascal_print_func_args): Rename to...
93 (pascal_language::print_func_args): ...this. Update calls to
94 member functions.
95 (pascal_type_print_func_varspec_suffix): Rename to...
96 (pascal_language::type_print_func_varspec_suffix): ...this.
97 Update calls to member functions.
98 (pascal_type_print_varspec_suffix): Rename to...
99 (pascal_language::type_print_varspec_suffix): ...this. Update
100 calls to member functions.
101 (pascal_type_print_base): Rename to...
102 (pascal_language::type_print_base): ...this. Update calls to
103 member functions.
104 * p-valprint.c (pascal_value_print_inner): Rename to...
105 (pascal_language::value_print_inner): ...this. Update calls to
106 member functions.
107 (pascal_value_print): Rename to...
108 (pascal_language::value_print): ...this. Update calls to member
109 functions.
110
111 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
112
113 * go-exp.y (go_parse): Rename to...
114 (go_language::parser): ...this.
115 * go-lang.c (go_demangle): Rename to...
116 (go_language::demangle_symbol): ...this.
117 (go_language::expression_ops): Implementation moved here out of
118 class declaration.
119 (go_op_print_tab): Rename to...
120 (go_language::op_print_tab): ...this, update comment.
121 (class go_language): Declaration moved to go-lang.h.
122 (go_language::language_arch_info): Implementation moved here out
123 of class declaration.
124 * go-lang.h (go_parse): Delete declaration.
125 (go_demangle): Delete declaration.
126 (go_print_type): Delete declaration.
127 (go_value_print_inner): Delete declaration.
128 (class go_language): Declaration moved here from go-lang.c.
129 * go-typeprint.c (go_print_type): Rename to...
130 (go_language::print_type): ...this.
131 * go-valprint.c (go_value_print_inner): Rename to...
132 (go_language::value_print_inner): ...this.
133 * symtab.c (demangle_for_lookup): Call demangle_symbol method on
134 the go_language object.
135
136 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
137
138 * c-lang.c (language_defn::printchar): Call emitchar, not
139 LA_EMIT_CHAR.
140 * f-lang.h (f_language::printchar): Likewise.
141 * language.h (LA_EMIT_CHAR): Delete macro.
142 * rust-lang.c (rust_language::printchar): Call emitchar, not
143 LA_EMIT_CHAR.
144
145 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
146
147 * c-lang.c (c_printchar): Rename to...
148 (language_defn::printchar): ...this.
149 * c-lang.h (c_printchar): Delete declaration.
150 * language.c (language_defn::printchar): Delete this
151 implementation. Is now implemented in c-lang.c.
152
153 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
154
155 * dwarf2/read.c (dwarf2_compute_name): Call methods on C++
156 language object instead of calling global functions directly.
157
158 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
159
160 * valprint.c (print_char_chars): Delete definition.
161 * valprint.h (print_char_chars): Delete declaration.
162
163 2020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
164
165 * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
166 macro.
167 (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
168 second parameter, which is a small sigcode in the legacy case, and a
169 pointer in the siginfo case.
170
171 * MAINTAINERS (Write After Approval): Add myself.
172
173 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
174
175 * frame.c: Remove trailing white spaces.
176 * frame.h: Likewise.
177
178 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
179
180 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
181
182 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
183
184 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
185 * configure.host (host to gdb names): Add arc*-*-linux*.
186 * configure.nat (gdb_host_cpu): Add arc.
187 * arc-linux-nat.c: New.
188
189 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
190
191 * arc-linux-tdep.c (supply_register): New.
192 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
193 arc_linux_collect_v2_regset): Consider REGNUM.
194
195 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
196
197 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
198 (arc_linux_is_sigtramp): New function.
199 (arc_linux_sigcontext_addr): Likewise.
200 (arc_linux_init_osabi): Use them.
201
202 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
203
204 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
205 (arc_sigtramp_frame_this_id): Likewise.
206 (arc_sigtramp_frame_prev_register): Likewise.
207 (arc_sigtramp_frame_sniffer): Likewise.
208 (arc_siftramp_frame_unwind): New global variable.
209 (arc_gdbarch_init): Use sigtramp capabilities.
210 (arc_dump_tdep): Print sigtramp fields.
211 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
212
213 2020-12-21 Tom Tromey <tom@tromey.com>
214
215 * expression.h (enum noside): Move earlier.
216
217 2020-12-21 Peter Waller <p@pwaller.net>
218
219 * interps.c (interpreter_exec_cmd): Restore streams pointers.
220
221 2020-12-21 Markus Metzger <markus.t.metzger@intel.com>
222
223 * record.c (require_record_target): Rephrase error message.
224 (info_record_command): Likewise.
225
226 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
227
228 PR exp/27070
229 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
230
231 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
232
233 * configure.ac: Move the static libs vs. source-highlight
234 error message to a better place.
235 * configure: Regenerate.
236
237 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
238
239 * gdb-gdb.py.in: Fix main_type field name.
240
241 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
242
243 * python/py-value.c (valpy_format_string): Implement address keyword.
244
245 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
246
247 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
248
249 2020-12-18 Jameson Nash <vtjnash@gmail.com>
250
251 * coffread.c (linetab_offset): Change type to file_ptr.
252 (linetab_size): Likewise.
253 (enter_linenos): Change parameter type to file_ptr.
254 (init_lineno): Likewise.
255 (init_stringtab): Likewise.
256 (coff_symtab_read): Likewise.
257 (coff_symfile_read): Change variable types to file_ptr.
258
259 2020-12-17 Tom Tromey <tromey@adacore.com>
260
261 * printcmd.c (print_variable_and_value): Don't use n_spaces.
262
263 2020-12-17 Tom Tromey <tromey@adacore.com>
264
265 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
266 (print_gnat_stuff, print_fixed_point_type_info)
267 (recursive_dump_type): Update.
268 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
269 * c-typeprint.c (c_type_print_base_struct_union)
270 (c_type_print_base_1): Update.
271 * rust-lang.c (rust_internal_print_type): Update.
272 * f-typeprint.c (f_language::f_type_print_base): Update.
273 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
274 * m2-typeprint.c (m2_record_fields): Update.
275 * p-typeprint.c (pascal_type_print_base): Update.
276 * compile/compile-loc2c.c (push, pushf, unary, binary)
277 (do_compile_dwarf_expr_to_c): Update.
278 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
279
280 2020-12-16 Tom Tromey <tom@tromey.com>
281
282 * rust-exp.y (rust_lex_tests): Update.
283 * parser-defs.h (parser_state): Add void_p parameter.
284 <void_context_p>: New member.
285 * parse.c (parse_exp_in_context): Update.
286 * language.h (language_defn::post_parser): Remove void_context_p,
287 completing, tracker parameters. Add parser state.
288 * ada-lang.c (ada_language::post_parser): Update.
289
290 2020-12-16 Tom Tromey <tom@tromey.com>
291
292 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
293 (parse_exp_in_context): Change void_context_p to bool.
294 * language.h (struct language_defn) <post_parser>: Change
295 void_context_p to bool.
296 * ada-lang.c (class ada_language) <post_parser>: Update.
297
298 2020-12-16 Tom Tromey <tom@tromey.com>
299 Tom Tromey <tromey@redhat.com>
300 Tom de Vries <tdevries@suse.de>
301
302 * utils.h (get_chars_per_line): Declare.
303 * utils.c (get_chars_per_line): New function.
304 (fputs_maybe_filtered): Handle '\r'.
305 * ui-out.h (ui_out::progress_meter): New class.
306 (ui_out::progress, ui_out::do_progress_start)
307 (ui_out::do_progress_notify, ui_out::do_progress_end): New
308 methods.
309 * ui-out.c (do_progress_end)
310 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
311 functions.
312 * mi/mi-out.h (mi_ui_out::do_progress_start)
313 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
314 methods.
315 * cli-out.h (struct cli_ui_out) <do_progress_start,
316 do_progress_notify, do_progress_end>: New methods.
317 <enum meter_stat, struct cli_progress_info>: New.
318 <m_meters>: New member.
319 * cli-out.c (cli_ui_out::do_progress_start)
320 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
321 methods.
322
323 2020-12-16 Luis Machado <luis.machado@linaro.org>
324
325 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
326
327 2020-12-16 Luis Machado <luis.machado@linaro.org>
328
329 * aarch64-linux-nat.c
330 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
331
332 2020-12-15 Rae Kim <rae.kim@gmail.com>
333
334 * cli/cli-script.c (do_document_command): Rename from
335 document_command. Handle multi-line input.
336 (multi_line_command_p): Handle document_control.
337 (build_command_line): Likewise.
338 (execute_control_command_1): Likewise.
339 (process_next_line): Likewise.
340 (document_command): Call do_document_command.
341 * cli/cli-script.h (enum command_control_type): Add
342 document_control.
343
344 2020-12-15 Tom Tromey <tom@tromey.com>
345
346 * stap-probe.c (stap_probe::evaluate_argument): Use
347 evaluate_expression.
348 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
349 evaluate_expression.
350 * value.h (evaluate_expression): Add expect_type parameter.
351 * objc-lang.c (print_object_command): Call evaluate_expression.
352 * eval.c (evaluate_expression): Add expect_type parameter.
353
354 2020-12-15 Tom Tromey <tom@tromey.com>
355
356 * varobj.c (varobj_create): Use first_opcode.
357 * value.c (init_if_undefined_command): Use first_opcode.
358 * typeprint.c (whatis_exp): Use first_opcode.
359 * tracepoint.c (validate_actionline): Use first_opcode.
360 (encode_actions_1): Use first_opcode.
361 * stack.c (return_command): Use first_opcode.
362 * expression.h (struct expression) <first_opcode>: New method.
363 * eval.c (parse_and_eval_type): Use first_opcode.
364 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
365
366 2020-12-15 Tom Tromey <tom@tromey.com>
367
368 * f-lang.c (evaluate_subexp_f): Update.
369 * expression.h (evaluate_subexp_do_call): Update.
370 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
371 nargs, argvec with array_view.
372 (evaluate_funcall): Update.
373
374 2020-12-15 Tom Tromey <tom@tromey.com>
375
376 * ada-lang.c (num_component_specs): Remove.
377 (assign_aggregate): Update.
378 (aggregate_assign_positional, aggregate_assign_from_choices)
379 (aggregate_assign_others, add_component_interval): Change
380 arguments.
381
382 2020-12-15 Tom Tromey <tromey@adacore.com>
383
384 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
385 command names.
386
387 2020-12-14 Tom Tromey <tom@tromey.com>
388
389 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
390 * typeprint.c (whatis_exp): Always use evaluate_type.
391 (maintenance_print_type): Likewise. Simplify.
392
393 2020-12-14 Tom Tromey <tromey@adacore.com>
394
395 * dictionary.c (language_defn::search_name_hash): Ignore "B".
396 * ada-lang.c (advance_wild_match): Ignore "B".
397 (full_match): Remove.
398 (do_full_match): Rewrite.
399
400 2020-12-14 Tom Tromey <tromey@adacore.com>
401
402 * ada-lang.c (get_var_value): Only consider exact matches.
403
404 2020-12-14 Tom Tromey <tromey@adacore.com>
405
406 * dwarf2/read.c (rewrite_array_type): New function.
407 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
408
409 2020-12-14 Tom Tromey <tromey@adacore.com>
410
411 * valarith.c (fixed_point_binop): Call error on division by zero.
412
413 2020-12-13 Tom Tromey <tom@tromey.com>
414
415 * gdbtypes.c (safe_parse_type): Make argument const.
416 * value.h (parse_and_eval_type): Make argument const.
417 * eval.c (parse_and_eval_type): Make argument const.
418
419 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * NEWS: Mention new commands.
422 * target-dcache.c: Add 'cli/cli-cmds.h' include.
423 (maint_flush_dcache_command): New function.
424 (_initialize_target_dcache): Create new 'maint flush dcache'
425 command.
426
427 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * NEWS: Mention new commands, and that the old commands are now
430 deprecated.
431 * cli/cli-cmds.c (maintenanceflushlist): Define.
432 * cli/cli-cmds.h (maintenanceflushlist): Declare.
433 * maint.c (_initialize_maint_cmds): Initialise
434 maintenanceflushlist.
435 * regcache.c: Add 'cli/cli-cmds.h' include.
436 (reg_flush_command): Add header comment.
437 (_initialize_regcache): Create new 'maint flush register-cache'
438 command, make 'flushregs' an alias.
439 * symtab.c: Add 'cli/cli-cmds.h' include.
440 (_initialize_symtab): Create new 'maint flush symbol-cache'
441 command, make old command an alias.
442
443 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
446 result from lookup_cmd_composition_1, use the prefixes from both
447 the command and the alias instead.
448 (lookup_cmd_composition_1): Initial prefix command is the based on
449 the search list being passed in. Simplify the logic for tracking
450 the prefix command. Replace a use of alloca with a local
451 std::string.
452
453 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
456 of NULL. Don't print message piece by piece, but sentence at a
457 time to allow internationalisation. Some whitespace cleanup.
458
459 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 PR cli/15104
462 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
463 deprecated_cmd_warning.
464 (deprecated_cmd_warning): Take extra parameter, call
465 lookup_cmd_composition_1 and pass new parameter through.
466 (lookup_cmd_composition_1): New function, takes implementation of
467 lookup_cmd_composition but with extra parameter.
468 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
469 passing in cmdlist.
470 * command.h (deprecated_cmd_warning): Add extra parameter to
471 declaration.
472 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
473
474 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
475
476 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
477 command.h, add extra parameter, and use this to guard giving a
478 warning.
479 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
480 include argument names in declaration, add new argument.
481 * completer.c (complete_line_internal_1): Remove unneeded
482 brackets, pass extra argument to lookup_cmd_1.
483
484 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
485
486 * infrun.h (debug_infrun): Make a bool.
487 * infrun.c (debug_infrun): Make a bool.
488 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
489 debug infrun".
490
491 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
492
493 * displaced-stepping.h (displaced_debug_printf): Use
494 debug_prefixed_printf_cond.
495 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
496 (dwarf_read_debug_printf_v): Likewise.
497 * infrun.h (infrun_debug_printf): Likewise.
498 * linux-nat.c (linux_nat_debug_printf): Likewise.
499
500 2020-12-11 Tom Tromey <tom@tromey.com>
501
502 * p-exp.y (intvar): Remove global.
503 (DOLLAR_VARIABLE): Change type.
504 (start): Update.
505 (exp): Call write_dollar_variable here...
506 (yylex): ... not here.
507 * m2-exp.y (DOLLAR_VARIABLE): Change type.
508 (variable): Call write_dollar_variable here...
509 (yylex): ... not here.
510 * f-exp.y (DOLLAR_VARIABLE): Change type.
511 (exp): Call write_dollar_variable here...
512 (yylex): ... not here.
513
514 2020-12-11 Tom Tromey <tom@tromey.com>
515
516 * varobj.c (varobj_create): Update.
517 (install_variable): Return void.
518
519 2020-12-11 Tom Tromey <tom@tromey.com>
520
521 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
522
523 2020-12-11 Tom Tromey <tom@tromey.com>
524
525 * varobj.c (varobj_clear_saved_item): Remove.
526 (update_dynamic_varobj_children): Update.
527 (varobj::~varobj): Don't call varobj_clear_saved_item.
528
529 2020-12-11 Tom Tromey <tom@tromey.com>
530
531 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
532 (update_dynamic_varobj_children, create_child)
533 (create_child_with_value): Update.
534 * varobj-iter.h (struct varobj_item) <value>: Now a
535 value_ref_ptr.
536 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
537
538 2020-12-11 Tom Tromey <tom@tromey.com>
539
540 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
541 (varobj_get_iterator): Return unique_ptr.
542 (update_dynamic_varobj_children, install_visualizer)
543 (varobj::~varobj): Update.
544 * python/python-internal.h (py_varobj_get_iterator): Return
545 unique_ptr.
546 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
547
548 2020-12-11 Tom Tromey <tom@tromey.com>
549
550 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
551 (varobj_clear_saved_item, update_dynamic_varobj_children):
552 Update.
553
554 2020-12-11 Tom Tromey <tom@tromey.com>
555
556 * varobj.c (update_dynamic_varobj_children): Update.
557 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
558 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
559 type.
560 (py_varobj_iter::next): Likewise.
561
562 2020-12-11 Tom Tromey <tom@tromey.com>
563
564 * varobj.c (update_dynamic_varobj_children, install_visualizer)
565 (varobj::~varobj): Update.
566 * varobj-iter.h (struct varobj_iter): Change to interface class.
567 (struct varobj_iter_ops): Remove.
568 (varobj_iter_next, varobj_iter_delete): Remove.
569 * python/py-varobj.c (struct py_varobj_iter): Derive from
570 varobj_iter. Add constructor, destructor. Rename members.
571 (py_varobj_iter::~py_varobj_iter): Rename from
572 py_varobj_iter_dtor.
573 (py_varobj_iter::next): Rename from py_varobj_iter_next.
574 (py_varobj_iter_ops): Remove.
575 (py_varobj_iter): Rename from py_varobj_iter_ctor.
576 (py_varobj_iter_new): Remove.
577 (py_varobj_get_iterator): Update.
578
579 2020-12-11 Tom Tromey <tom@tromey.com>
580
581 * varobj.h (all_root_varobjs): Take a function_view.
582 * varobj.c (all_root_varobjs): Take a function_view.
583 (varobj_invalidate_iter): Remove unused parameter.
584 (varobj_invalidate): Update.
585 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
586 (mi_cmd_var_update_iter): Change parameters.
587
588 2020-12-11 Tom Tromey <tom@tromey.com>
589
590 * varobj.c (struct varobj_root) <next>: Remove.
591 (struct vlist): Remove.
592 (rootlist): Now a std::list.
593 (install_variable, uninstall_variable, all_root_varobjs): Update.
594
595 2020-12-11 Tom Tromey <tom@tromey.com>
596
597 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
598 (varobj_table): Now htab_t.
599 (varobj_get_handle, install_variable, uninstall_variable):
600 Update.
601 (hash_varobj, eq_varobj_and_string): New functions.
602 (hash_varobj): Update.
603
604 2020-12-11 Tom Tromey <tom@tromey.com>
605
606 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
607 * ada-lang.c (check_status_exception): Update.
608 * breakpoint.c (free_bp_location): Remove.
609 (decref_bp_location): Use bp_location_ref_policy.
610 (bpstats::bpstats): Don't call incref_bp_location.
611 (bpstats::~bpstats): Remove.
612 (bpstats::bpstats): Update.
613 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
614 (bp_location::bp_location): Update.
615 (incref_bp_location): Remove.
616 (bkpt_print_it): Update.
617 * breakpoint.h (class bp_location): Derive from
618 refcounted_object.
619 (struct bpstats): Remove destructor.
620 <bp_location_at>: Now a bp_location_ref_ptr.
621 <refc>: Remove.
622 (bp_location_ref_ptr): New typedef.
623 (struct bp_location_ref_policy): New.
624
625 2020-12-11 Tom Tromey <tom@tromey.com>
626
627 * thread.c (class scoped_inc_dec_ref): Remove.
628 (tp_array_compar_ascending, tp_array_compar_descending): Change
629 parameter types.
630 (thread_apply_all_command): Use thread_info_ref.
631
632 2020-12-11 Tom Tromey <tom@tromey.com>
633
634 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
635 (stop_context::stop_context): Update.
636 (stop_context::~stop_context): Remove.
637
638 2020-12-11 Tom Tromey <tom@tromey.com>
639
640 * inferior.c (current_inferior_): Change type.
641 (current_inferior, set_current_inferior, initialize_inferiors):
642 Update.
643
644 2020-12-11 Tom Tromey <tom@tromey.com>
645
646 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
647 Change type.
648
649 2020-12-11 Tom Tromey <tromey@adacore.com>
650
651 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
652 field.
653 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
654 (read_atcb): Use cpu_id_offset.
655
656 2020-12-10 Kevin Buettner <kevinb@redhat.com>
657
658 * ada-lang.c (ada_fold_name): Fix off-by-one error.
659
660 2020-12-10 Luis Machado <luis.machado@linaro.org>
661
662 * breakpoint.c (should_be_inserted): Don't output newline.
663
664 2020-12-10 Luis Machado <luis.machado@linaro.org>
665
666 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
667 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
668 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
669 * arch/aarch64.h: ... here.
670 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
671 (aarch64_maybe_swab128): New function.
672 (aarch64_sve_regs_copy_to_reg_buf)
673 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
674 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
675 the data field.
676 (TF_REG_VALUE_BYTES): New enum value.
677 (trad_frame_value_bytes_p): New function.
678 (trad_frame_set_value_bytes): New function.
679 (trad_frame_set_reg_value_bytes): New function.
680 (trad_frame_get_prev_register): Handle register values saved as bytes.
681 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
682 (struct trad_frame_saved_reg) <data>: New field.
683 (trad_frame_set_value_bytes): New prototype.
684 (trad_frame_value_bytes_p): New prototype.
685
686 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
687
688 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
689 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
690 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
691
692 2020-12-09 Tom Tromey <tromey@adacore.com>
693
694 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
695
696 2020-12-09 Tom Tromey <tromey@adacore.com>
697
698 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
699 and "denominator" to gdb_mpz. Handle block forms.
700 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
701 "denominator" to gdb_mpz.
702 (finish_fixed_point_type): Update.
703 (has_zero_over_zero_small_attribute): Update.
704
705 2020-12-09 Tom Tromey <tromey@adacore.com>
706
707 * expprint.c (op_name): Update.
708 * expression.h (enum exp_opcode): Update.
709 * std-operator.def: Add more opcodes.
710 * ada-operator.def, fortran-operator.def: Remove, moving contents
711 into std-operator.def.
712
713 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
714
715 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
716 Return {} instead of false.
717 (get_discrete_bounds): Compute high bound only if low bound is
718 valid.
719
720 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
721
722 PR 26875, PR 26901
723 * gdbtypes.c (get_discrete_low_bound): Make non-static.
724 (get_discrete_high_bound): Make non-static.
725 * gdbtypes.h (get_discrete_low_bound): New declaration.
726 (get_discrete_high_bound): New declaration.
727 * valarith.c (value_subscript): Only fetch high bound if
728 necessary.
729
730 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
731
732 * gdbtypes.c (get_discrete_bounds): Implement with
733 get_discrete_low_bound and get_discrete_high_bound.
734 (get_discrete_low_bound): New.
735 (get_discrete_high_bound): New.
736
737 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
738
739 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
740 callers.
741 * gdbtypes.c (get_discrete_bounds): Return bool.
742
743 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
744
745 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
746 (ada_value_slice): Adjust.
747 (pos_atr): Adjust.
748 * gdbtypes.c (get_discrete_bounds): Adjust.
749 (discrete_position): Return optional.
750 * gdbtypes.h (discrete_position): Return optional.
751
752 2020-12-07 Tom Tromey <tromey@adacore.com>
753
754 * maint.c (_initialize_maint_cmds): Use expression command
755 completer for "maint print type".
756
757 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
758
759 * completer.c (complete_explicit_location): Also add keywords
760 that start with '-' to the completion list.
761
762 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
763
764 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
765 keyword may be followed by any keyword.
766 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
767 'toklen' in the case for "-force-condition".
768
769 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
770
771 * main.c (catch_command_errors): Add a flag parameter; invoke
772 `bpstat_do_actions` if the flag is set.
773 (execute_cmdargs): Update a call to `catch_command_errors`.
774
775 2020-12-07 Tom de Vries <tdevries@suse.de>
776
777 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
778
779 2020-12-06 Tom Tromey <tom@tromey.com>
780
781 PR ada/26999
782 * ada-lang.c (replace_operator_with_call): Rewrite.
783
784 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
785
786 PR breakpoints/27009
787 * s390-tdep.h (op_bc): Correct BC opcode value.
788
789 2020-12-06 Joel Brobecker <brobecker@adacore.com>
790
791 * gmp-utils.h (gdb_mpz::safe_export): New private method.
792 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
793 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
794 (gdb_mpz::safe_export): New method.
795 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
796 Update function description.
797 (check_as_integer_raises_out_of_range_error): New function.
798 (gdb_mpz_as_integer_out_of_range): New function.
799 (_initialize_gmp_utils_selftests): Register
800 gdb_mpz_as_integer_out_of_range as a selftest.
801
802 2020-12-05 Joel Brobecker <brobecker@adacore.com>
803
804 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
805 TARGET_CHAR_BIT.
806 (gdb_mpz::write): Likewise.
807
808 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
809
810 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
811 number of displaced step buffers.
812
813 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
814
815 * displaced-stepping.h (struct displaced_step_buffer): Rename
816 to...
817 (struct displaced_step_buffers): ... this.
818 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
819 <struct displaced_step_buffer>: New inner class.
820 <m_buffers>: New.
821 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
822 to...
823 (displaced_step_buffers::prepare): ... this, adjust for multiple
824 buffers.
825 (displaced_step_buffer::finish): Rename to...
826 (displaced_step_buffers::finish): ... this, adjust for multiple
827 buffers.
828 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
829 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
830 adjust for multiple buffers.
831 (displaced_step_buffer::restore_in_ptid): Rename to...
832 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
833 multiple buffers.
834 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
835 for num_disp_step_buffers.
836 * linux-tdep.c (struct linux_gdbarch_data)
837 <num_disp_step_buffers>: New field.
838 (struct linux_info) <disp_step_buf>: Rename to...
839 <disp_step_bufs>: ... this, change type to
840 displaced_step_buffers.
841 (linux_displaced_step_prepare): Use
842 linux_gdbarch_data::num_disp_step_buffers to create that number
843 of buffers.
844 (linux_displaced_step_finish): Adjust.
845 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
846 (linux_displaced_step_restore_all_in_ptid): Adjust.
847 (linux_init_abi): Change supports_displaced_step parameter for
848 num_disp_step_buffers, save it in linux_gdbarch_data.
849 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
850 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
851 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
852 supports_displaced_step parameter for num_disp_step_buffers.
853 (amd64_linux_init_abi): Adjust.
854 (amd64_x32_linux_init_abi): Adjust.
855 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
856 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
857 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
858 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
859 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
860 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
861 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
862 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
863 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
864 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
865 * m68k-linux-tdep.c (m68k_linux_init_abi):
866 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
867 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
868 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
869 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
870 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
871 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
872 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
873 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
874 Change type to displaced_step_buffers.
875 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
876 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
877 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
878 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
879 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
880 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
881 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
882
883 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
884
885 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
886 obkstack.
887 (_initialize_linux_tdep): Register pre-init gdb data instead of
888 post-init.
889
890 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
891
892 * displaced-stepping.h (struct
893 displaced_step_copy_insn_closure): Adjust comments.
894 (struct displaced_step_inferior_state) <step_thread,
895 step_gdbarch, step_closure, step_original, step_copy,
896 step_saved_copy>: Remove fields.
897 (struct displaced_step_thread_state): New.
898 (struct displaced_step_buffer): New.
899 * displaced-stepping.c (displaced_step_buffer::prepare): New.
900 (write_memory_ptid): Move from infrun.c.
901 (displaced_step_instruction_executed_successfully): New,
902 factored out of displaced_step_finish.
903 (displaced_step_buffer::finish): New.
904 (displaced_step_buffer::copy_insn_closure_by_addr): New.
905 (displaced_step_buffer::restore_in_ptid): New.
906 * gdbarch.sh (displaced_step_location): Remove.
907 (displaced_step_prepare, displaced_step_finish,
908 displaced_step_copy_insn_closure_by_addr,
909 displaced_step_restore_all_in_ptid): New.
910 * gdbarch.c: Re-generate.
911 * gdbarch.h: Re-generate.
912 * gdbthread.h (class thread_info) <displaced_step_state>: New
913 field.
914 (thread_step_over_chain_remove): New declaration.
915 (thread_step_over_chain_next): New declaration.
916 (thread_step_over_chain_length): New declaration.
917 * thread.c (thread_step_over_chain_remove): Make non-static.
918 (thread_step_over_chain_next): New.
919 (global_thread_step_over_chain_next): Use
920 thread_step_over_chain_next.
921 (thread_step_over_chain_length): New.
922 (global_thread_step_over_chain_enqueue): Add debug print.
923 (global_thread_step_over_chain_remove): Add debug print.
924 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
925 Remove.
926 * infrun.c (get_displaced_stepping_state): New.
927 (displaced_step_in_progress_any_inferior): Remove.
928 (displaced_step_in_progress_thread): Adjust.
929 (displaced_step_in_progress): Adjust.
930 (displaced_step_in_progress_any_thread): New.
931 (get_displaced_step_copy_insn_closure_by_addr): Remove.
932 (gdbarch_supports_displaced_stepping): Use
933 gdbarch_displaced_step_prepare_p.
934 (displaced_step_reset): Change parameter from inferior to
935 thread.
936 (displaced_step_prepare_throw): Implement using
937 gdbarch_displaced_step_prepare.
938 (write_memory_ptid): Move to displaced-step.c.
939 (displaced_step_restore): Remove.
940 (displaced_step_finish): Implement using
941 gdbarch_displaced_step_finish.
942 (start_step_over): Allow starting more than one displaced step.
943 (prepare_for_detach): Handle possibly multiple threads doing
944 displaced steps.
945 (handle_inferior_event): Handle possibility that fork event
946 happens while another thread displaced steps.
947 * linux-tdep.h (linux_displaced_step_prepare): New.
948 (linux_displaced_step_finish): New.
949 (linux_displaced_step_copy_insn_closure_by_addr): New.
950 (linux_displaced_step_restore_all_in_ptid): New.
951 (linux_init_abi): Add supports_displaced_step parameter.
952 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
953 (linux_displaced_step_prepare): New.
954 (linux_displaced_step_finish): New.
955 (linux_displaced_step_copy_insn_closure_by_addr): New.
956 (linux_displaced_step_restore_all_in_ptid): New.
957 (linux_init_abi): Add supports_displaced_step parameter,
958 register displaced step methods if true.
959 (_initialize_linux_tdep): Register inferior_execd observer.
960 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
961 supports_displaced_step parameter, adjust call to
962 linux_init_abi. Remove call to
963 set_gdbarch_displaced_step_location.
964 (amd64_linux_init_abi): Adjust call to
965 amd64_linux_init_abi_common.
966 (amd64_x32_linux_init_abi): Likewise.
967 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
968 linux_init_abi. Remove call to
969 set_gdbarch_displaced_step_location.
970 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
971 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
972 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
973 linux_init_abi.
974 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
975 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
976 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
977 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
978 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
979 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
980 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
981 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
982 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
983 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
984 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
985 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
986 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
987 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
988 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
989 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
990 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
991 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
992 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
993 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
994 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
995 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
996 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
997 linux_init_abi. Remove call to
998 set_gdbarch_displaced_step_location.
999 * arm-tdep.c (arm_pc_is_thumb): Call
1000 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
1001 get_displaced_step_copy_insn_closure_by_addr.
1002 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
1003 clear gdbarch methods.
1004 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
1005 (get_ppc_per_inferior): New function.
1006 (ppc_displaced_step_prepare): New function.
1007 (ppc_displaced_step_finish): New function.
1008 (ppc_displaced_step_restore_all_in_ptid): New function.
1009 (rs6000_gdbarch_init): Register new gdbarch methods.
1010 * s390-tdep.c (s390_gdbarch_init): Don't call
1011 set_gdbarch_displaced_step_location, set new gdbarch methods.
1012
1013 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1014
1015 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
1016 * aarch64-tdep.h: Include displaced-stepping.h.
1017 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
1018 Move here.
1019 (displaced_step_copy_insn_closure_up): Move here.
1020 (struct buf_displaced_step_copy_insn_closure): Move here.
1021 (struct displaced_step_inferior_state): Move here.
1022 (debug_displaced): Move here.
1023 (displaced_debug_printf_1): Move here.
1024 (displaced_debug_printf): Move here.
1025 * displaced-stepping.c: New file.
1026 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
1027 * gdbarch.h: Re-generate.
1028 * inferior.h: Include displaced-stepping.h.
1029 * infrun.h (debug_displaced): Move to displaced-stepping.h.
1030 (displaced_debug_printf_1): Likewise.
1031 (displaced_debug_printf): Likewise.
1032 (struct displaced_step_copy_insn_closure): Likewise.
1033 (displaced_step_copy_insn_closure_up): Likewise.
1034 (struct buf_displaced_step_copy_insn_closure): Likewise.
1035 (struct displaced_step_inferior_state): Likewise.
1036 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
1037 (displaced_debug_printf_1): Likewise.
1038 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
1039 Likewise.
1040 (_initialize_infrun): Don't register "set/show debug displaced".
1041
1042 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * linux-tdep.c (get_linux_inferior_data): Add inferior
1045 parameter.
1046 (linux_vsyscall_range): Pass current inferior.
1047
1048 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1049
1050 * infrun.c (displaced_step_prepare_throw): Change return type to
1051 displaced_step_prepare_status.
1052 (displaced_step_prepare): Likewise.
1053 (displaced_step_finish): Change return type to
1054 displaced_step_finish_status.
1055 (resume_1): Adjust.
1056 (stop_all_threads): Adjust.
1057 * displaced-stepping.h: New file.
1058
1059 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1060
1061 * infrun.c (displaced_step_fixup): Rename to...
1062 (displaced_step_finish): ... this, update all callers.
1063
1064 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1065
1066 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
1067 (get_displaced_step_copy_insn_closure_by_addr): ... this.
1068 Update all users.
1069 (displaced_step_closure): Rename to...
1070 (displaced_step_copy_insn_closure): ... this. Update all users.
1071 (displaced_step_closure_up): Rename to...
1072 (displaced_step_copy_insn_closure_up). ... this. Update all
1073 users.
1074 (buf_displaced_step_closure): Rename to...
1075 (buf_displaced_step_copy_insn_closure): ... this. Update all
1076 users.
1077 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
1078 (get_displaced_step_copy_insn_closure_by_addr): ... this.
1079 Update all users.
1080 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
1081 (aarch64_displaced_step_copy_insn_closure): ... this. Update
1082 all users.
1083 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
1084 (amd64_displaced_step_copy_insn_closure): ... this. Update all
1085 users.
1086 * arm-tdep.h (arm_displaced_step_closure): Rename to...
1087 (arm_displaced_step_copy_insn_closure): ... this. Update all
1088 users.
1089 * i386-tdep.h (i386_displaced_step_closure): Rename to...
1090 (i386_displaced_step_copy_insn_closure): ... this. Update all
1091 users.
1092 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
1093 (ppc_displaced_step_copy_insn_closure): ... this. Update all
1094 users.
1095 * s390-tdep.c (s390_displaced_step_closure): Rename to...
1096 (s390_displaced_step_copy_insn_closure): ... this. Update all
1097 users.
1098 * gdbarch.h: Re-generate.
1099 * gdbarch.c: Re-generate.
1100
1101 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1102
1103 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
1104 (global_thread_step_over_chain_enqueue): ... this. Update all
1105 users.
1106 (thread_step_over_chain_remove): Rename to...
1107 (global_thread_step_over_chain_remove): ... this. Update all
1108 users.
1109 (thread_step_over_chain_next): Rename to...
1110 (global_thread_step_over_chain_next): ... this. Update all
1111 users.
1112 * infrun.h (step_over_queue_head): Rename to...
1113 (global_thread_step_over_chain_head): ... this. Update all
1114 users.
1115 * infrun.c (step_over_queue_head): Rename to...
1116 (global_thread_step_over_chain_head): ... this. Update all
1117 users.
1118 * thread.c (step_over_chain_remove): Rename to...
1119 (thread_step_over_chain_remove): ... this. Update all users.
1120 (thread_step_over_chain_next): Rename to...
1121 (global_thread_step_over_chain_next): ... this. Update all
1122 users.
1123 (thread_step_over_chain_enqueue): Rename to...
1124 (global_thread_step_over_chain_enqueue): ... this. Update all
1125 users.
1126 (thread_step_over_chain_remove): Rename to...
1127 (global_thread_step_over_chain_remove): ... this. Update all
1128 users.
1129
1130 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1131
1132 * infrun.c (get_displaced_stepping_state): Remove, change
1133 callers to access the field directly.
1134
1135 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * infrun.c (handle_inferior_event): Restore displaced step
1138 buffer bytes in child process when handling fork, even if fork
1139 happened in another thread than the displaced-stepping one.
1140
1141 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1142
1143 * infrun.c (infrun_inferior_execd): New function.
1144 (_initialize_infrun): Attach inferior_execd observer.
1145
1146 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * observable.h (inferior_execd): Declare new observable.
1149 * observable.c (inferior_execd): Declare new observable.
1150 * infrun.c (follow_exec): Notify inferior_execd observer.
1151 * jit.c (jit_inferior_created_hook): Make static.
1152 (_initialize_jit): Register inferior_execd observer.
1153 * jit.h (jit_inferior_created_hook): Remove declaration.
1154 * solib.c (_initialize_solib): Register inferior_execd observer.
1155
1156 2020-12-04 Tom de Vries <tdevries@suse.de>
1157
1158 PR gdb/27003
1159 * completer.c (completion_tracker::build_completion_result): Don't
1160 access match_list[0][-1].
1161
1162 2020-12-04 Tom Tromey <tromey@adacore.com>
1163
1164 * linespec.c (struct linespec_token): Rename; remove typedef.
1165 * guile/scm-block.c (struct block_smob): Remove typedef.
1166 (struct block_syms_progress_smob): Likewise.
1167 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
1168 * guile/scm-symtab.c (symtab_smob): Remove typedef.
1169 (struct sal_smob): Remove typedef.
1170 * guile/scm-param.c (struct param_smob): Remove typedef.
1171 * guile/scm-progspace.c (struct pspace_smob): Rename.
1172 * guile/scm-objfile.c (struct objfile_smob): Rename.
1173 * guile/scm-iterator.c (struct iterator_smob): Rename.
1174 * guile/scm-frame.c (struct frame_smob): Rename.
1175 * guile/scm-arch.c (struct arch_smob): Rename.
1176 * guile/scm-type.c (struct field_smob): Remove typedef.
1177 (struct type_smob): Rename.
1178 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1179 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1180 * guile/scm-value.c (struct value_smob): Remove typedef.
1181 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1182 * guile/guile-internal.h (struct scheme_variable)
1183 (struct scheme_function, struct scheme_integer_constant)
1184 (struct gdb_smob, struct chained_gdb_smob)
1185 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1186 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1187 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1188 (struct pretty_printer_worker_smob): Remove typedef.
1189 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1190 * python/py-block.c (struct block_object): Remove typedef.
1191 (block_syms_iterator_object): Update.
1192 (set_block): Update.
1193 (block_syms_iterator_object): Remove typedef.
1194 * python/py-inferior.c (struct membuf_object): Remove typedef.
1195 * python/py-symtab.c (struct symtab_object): Remove typedef.
1196 (set_symtab): Update.
1197 (sal_object): Remove typedef.
1198 (set_sal): Update.
1199 * python/py-frame.c (frame_object): Remove typedef.
1200 * python/py-record-btrace.c (struct btpy_list_object): Remove
1201 typedef.
1202 * python/py-arch.c (struct arch_object): Remove typedef.
1203 * python/py-linetable.c (struct linetable_entry_object)
1204 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1205 * python/py-events.h (eventregistry_object): Remove typedef.
1206 (struct events_object): Remove typedef.
1207 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1208 typedef.
1209 (thread_object): Remove typedef.
1210 * python/py-progspace.c (pspace_object): Remove typedef.
1211 * python/py-value.c (struct value_object): Remove typedef.
1212 * python/py-record.h (recpy_record_object): Remove typedef.
1213 (struct recpy_element_object): Remove typedef.
1214 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1215 * python/py-objfile.c (objfile_object): Remove typedef.
1216 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1217 * python/py-type.c (type_object): Remove typedef.
1218 (typy_iterator_object): Update.
1219 (set_type): Update.
1220 (field_object): Remove typedef.
1221 (typy_iterator_object): Remove typedef.
1222 * python/py-registers.c (register_descriptor_iterator_object):
1223 Remove typedef.
1224 (struct register_descriptor_object)
1225 (struct reggroup_iterator_object, struct reggroup_object): Remove
1226 typedef.
1227 * python/py-record.c (recpy_gap_object): Remove typedef.
1228 * python/py-symbol.c (symbol_object): Remove typedef.
1229 (set_symbol): Update.
1230 * python/py-event.h (event_object): Remove typedef.
1231 * python/py-param.c (parmpy_object): Remove typedef.
1232 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1233 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1234 (unwind_info_object, struct cached_frame_info): Likewise.
1235
1236 2020-12-04 Tom Tromey <tromey@adacore.com>
1237
1238 * value.c (value_internal_function_name): Make return type const.
1239 * value.h (value_internal_function_name): Make return type const.
1240
1241 2020-12-04 Luis Machado <luis.machado@linaro.org>
1242
1243 * aarch64-tdep.c (submask, bit, bits): Remove.
1244 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1245 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1246 (aarch64_decode_cb, aarch64_decode_tb)
1247 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1248 immediate.
1249 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1250
1251 2020-12-04 Tom de Vries <tdevries@suse.de>
1252
1253 PR tdep/27007
1254 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1255
1256 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 PR gdb/26876
1259 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1260 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1261
1262 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * arch/riscv.c: Include 'rv32e-xregs.c'.
1265 (riscv_create_target_description): Update to handle rv32e.
1266 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1267 member variable.
1268 <operator==>: Update to account for new field.
1269 <hash>: Likewise.
1270 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1271 * features/riscv/rv32e-xregs.c: Generated.
1272 * features/riscv/rv32e-xregs.xml: New file.
1273 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1274 file.
1275 (riscv_debug_infcall): Likewise.
1276 (riscv_debug_unwinder): Likewise.
1277 (riscv_debug_gdbarch): Likewise.
1278 (enum riscv_register_required_status): Delete.
1279 (struct riscv_register_feature): Add constructor, delete default
1280 constructor, copy, and assign constructors.
1281 (struct riscv_register_feature::register_info) <required>: Delete.
1282 <check>: Update comment and arguments.
1283 (struct riscv_register_feature) <name>: Change to member function.
1284 <prefer_first_name>: Delete.
1285 <tdesc_feature>: New member function.
1286 <registers>: Rename to...
1287 <m_registers>: ...this.
1288 <m_feature_name>: New member variable.
1289 (riscv_register_feature::register_info::check): Update arguments.
1290 (riscv_xreg_feature): Rewrite as class, create a single static
1291 instance of the class.
1292 (riscv_freg_feature): Likewise.
1293 (riscv_virtual_feature): Likewise.
1294 (riscv_csr_feature): Likewise.
1295 (riscv_create_csr_aliases): Has become a member function inside
1296 riscv_csr_feature class.
1297 (riscv_abi_embedded): New function definition.
1298 (riscv_register_name): Adjust to use new feature objects.
1299 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1300 and adjust available argument registers.
1301 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1302 (riscv_check_tdesc_feature): Delete.
1303 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1304 (riscv_gdbarch_init): Delete target description checking code, and
1305 instead call to the new feature objects to perform the checks.
1306 Reorder handling of no abi information case, allows small code
1307 simplification.
1308 (_initialize_riscv_tdep): Remove call, this is now done in the
1309 riscv_csr_feature constructor.
1310 * riscv-tdep.h (riscv_abi_embedded): Declare.
1311
1312 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1313
1314 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1315 DECLARE_CSR_ALIAS.
1316
1317 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1320 implementation moved from riscv_register_reggroup_p.
1321 (riscv_register_reggroup_p): Update group handling for unknown
1322 CSRs.
1323
1324 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1325
1326 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1327 (dwarf2_get_dwz_file): Convert 'filename' to a
1328 std::string. Use dwz_search_other_debugdirs to search for DWZ
1329 files in the debug-file-directories provided by the user as well.
1330
1331 2020-12-01 Tom Tromey <tom@tromey.com>
1332
1333 * parse.c (expr_builder::expr_builder): Initialize expout.
1334 (expr_builder::release): Use expression::resize.
1335 (expression::expression, expression::~expression)
1336 (expression::resize): New methods.
1337 (write_exp_elt): Use expression::resize.
1338 (prefixify_expression): Update.
1339 (increase_expout_size): Use expression::resize.
1340 * expression.h (struct expression): Add constructor, destructor.
1341 <resize>: New method.
1342 (expression_up): Change type.
1343
1344 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1345 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1346 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1347 set region.
1348
1349 2020-11-30 Tom de Vries <tdevries@suse.de>
1350
1351 PR symtab/26905
1352 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1353 is_reference parameter.
1354 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1355
1356 2020-11-30 Tom Tromey <tom@tromey.com>
1357
1358 * rust-lang.c (rust_op_name): Remove.
1359 (exp_descriptor_rust): Update.
1360 * parser-defs.h (op_name_standard): Don't declare.
1361 (struct exp_descriptor) <op_name>: Remove.
1362 * parse.c (exp_descriptor_standard): Update.
1363 * opencl-lang.c (exp_descriptor_opencl): Update.
1364 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1365 * f-lang.c (op_name_f): Remove.
1366 (f_language::exp_descriptor_tab): Update.
1367 * expression.h (op_name): Update.
1368 * expprint.c (op_name): Rewrite.
1369 (op_name_standard): Remove.
1370 (dump_raw_expression, dump_subexp): Update.
1371 * c-lang.c (exp_descriptor_c): Update.
1372 * ax-gdb.c (gen_expr): Update.
1373 * ada-lang.c (ada_op_name): Remove.
1374 (ada_exp_descriptor): Update.
1375
1376 2020-11-30 Tom Tromey <tom@tromey.com>
1377
1378 * eval.c (init_array_element): Remove.
1379 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1380
1381 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1382
1383 PR tui/26973
1384 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1385 static locator win info.
1386
1387 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1388
1389 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1390 program.
1391
1392 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1395 is always initialized.
1396
1397 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1398 * MAINTAINERS (Write After Approval): Add myself.
1399
1400 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1401
1402 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1403 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1404
1405 2020-11-25 Tom Tromey <tom@tromey.com>
1406
1407 * eval.c (evaluate_subexp_standard): Remove unnecessary
1408 variables.
1409
1410 2020-11-25 Tom Tromey <tom@tromey.com>
1411
1412 * d-lang.c: Include parser-defs.h.
1413 * rust-lang.c: Include parser-defs.h.
1414 * c-lang.h: Do not include parser-defs.h.
1415
1416 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * regcache.h (struct cached_reg): Remove typedef.
1419
1420 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1421
1422 * README: Fix the URL of the MPFR library.
1423
1424 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1425
1426 * README: Document the --with-libgmp-prefix configure option.
1427
1428 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1429
1430 * NEWS: Add entry documenting support for DWARF-based fixed
1431 point types.
1432
1433 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1434
1435 * NEWS: Document that building GDB now requires GMP.
1436
1437 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1438
1439 * typeprint.c (print_type_scalar): Add handling of
1440 TYPE_CODE_FIXED_POINT.
1441
1442 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1443
1444 * valarith.c (fixed_point_binop): Replace the
1445 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1446 users accordingly.
1447
1448 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1449
1450 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1451 replacing fixed_point_scaling_factor. All callers updated
1452 throughout this project.
1453 (fixed_point_scaling_factor): Delete declaration.
1454 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1455 fixed_point_scaling_factor. Adjust implementation accordingly.
1456
1457 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1458
1459 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1460 replacing the fixed_point_type_base_type function. All callers
1461 updated throughout this project.
1462 (fixed_point_type_base_type): Remove declaration.
1463 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1464 fixed_point_type_base_type. Adjust implementation accordingly.
1465
1466 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1467
1468 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1469 New methods.
1470 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1471 (TYPE_FIXED_POINT_INFO): Delete macro.
1472 (allocate_fixed_point_type_info): Change return type to void.
1473 * gdbtypes.c (copy_type_recursive): Replace the use of
1474 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1475 (fixed_point_scaling_factor): Likewise.
1476 (allocate_fixed_point_type_info): Change return type to void.
1477 Adjust implementation accordingly.
1478 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1479 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1480
1481 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1482
1483 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1484 into one single gdb::array_view parameter.
1485 (gdb_mpz::write): Likewise.
1486 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1487 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1488 into one single gdb::array_view parameter.
1489 Adjust implementation accordingly.
1490 (gdb_mpz::write): Likewise.
1491 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1492 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1493 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1494
1495 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1496
1497 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1498 Change return type to std::string. Update all callers.
1499 * gmp-utils.c (gmp_string_printf): Likewise.
1500
1501 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1502
1503 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1504 instead of mpq_set_ui to initialize our GMP rational.
1505
1506 2020-11-23 Tom de Vries <tdevries@suse.de>
1507
1508 * debuginfod-support.c (debuginfod_source_query)
1509 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1510
1511 2020-11-21 Tom Tromey <tom@tromey.com>
1512
1513 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1514
1515 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1516
1517 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1518 Pass 2.0 to pow.
1519 (gdb_mpz_write_all_from_small): Likewise.
1520
1521 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1522
1523 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1524 of abs.
1525
1526 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1527
1528 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1529 ctf_arc_open_by_name.
1530
1531 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1532
1533 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1534 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1535
1536 2020-11-20 Pedro Alves <pedro@palves.net>
1537
1538 * language.c (language_arch_info::lookup_primitive_type): Use
1539 gdb::function_view instead of gdb::function.
1540 (template language_lookup_primitive_type): Rename to ...
1541 (language_lookup_primitive_type_1): ... this, and make static.
1542 (language_lookup_primitive_type(const struct language_defn *,
1543 struct gdbarch *, const char *): Make non-template.
1544 (language_lookup_primitive_type(const struct language_defn *,
1545 struct gdbarch *, std::function<bool (struct type *)>): Make
1546 non-template and use gdb::function_view.
1547 * language.h (language_arch_info::lookup_primitive_type): Use
1548 gdb::function_view instead of std::function.
1549 (language_lookup_primitive_type): No longer template.
1550 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1551 lambda instead of a std::function.
1552
1553 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1554
1555 PR tdep/26916
1556 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1557 and STOCFH.
1558
1559 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1562
1563 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1564
1565 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1566 in `loop_cb` parameter.
1567 * gdbarch.c: Re-generate.
1568 * gdbarch.h: Re-generate.
1569 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1570 parameter.
1571 * arch-utils.h (default_read_core_file_mappings): Likewise.
1572 * corelow.c (core_target::build_file_mappings): Likewise.
1573 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1574 (linux_core_info_proc_mappings): Likewise.
1575
1576 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1579 * NEWS: Mention new options.
1580 * f-array-walker.h: New file.
1581 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1582 (repack_array_slices): New static global.
1583 (show_repack_array_slices): New function.
1584 (fortran_array_slicing_debug): New static global.
1585 (show_fortran_array_slicing_debug): New function.
1586 (value_f90_subarray): Delete.
1587 (skip_undetermined_arglist): Delete.
1588 (class fortran_array_repacker_base_impl): New class.
1589 (class fortran_lazy_array_repacker_impl): New class.
1590 (class fortran_array_repacker_impl): New class.
1591 (fortran_value_subarray): Complete rewrite.
1592 (set_fortran_list): New static global.
1593 (show_fortran_list): Likewise.
1594 (_initialize_f_language): Register new commands.
1595 (fortran_adjust_dynamic_array_base_address_hack): New function.
1596 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1597 Declare.
1598 * f-valprint.c: Include 'f-array-walker.h'.
1599 (class fortran_array_printer_impl): New class.
1600 (f77_print_array_1): Delete.
1601 (f77_print_array): Delete.
1602 (fortran_print_array): New.
1603 (f_value_print_inner): Update to call fortran_print_array.
1604 * gdbtypes.c: Include 'f-lang.h'.
1605 (resolve_dynamic_type_internal): Call
1606 fortran_adjust_dynamic_array_base_address_hack.
1607
1608 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1609
1610 * breakpoint.c (struct watch_options): New struct.
1611 (watch_option_defs): New static global.
1612 (make_watch_options_def_group): New function.
1613 (watch_maybe_just_location): Convert option parsing.
1614 (watch_command_completer): New function.
1615 (_initialize_breakpoint): Build help text using options mechanism.
1616
1617 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1620 (watch_command_1): Update parameter types. Convert locals to
1621 bool.
1622 (watch_command_wrapper): Change parameter type.
1623 (watch_maybe_just_location): Change locals to bool.
1624 (rwatch_command_wrapper): Update parameter type.
1625 (awatch_command_wrapper): Update parameter type.
1626 * breakpoint.h (watch_command_wrapper): Change parameter type.
1627 (rwatch_command_wrapper): Update parameter type.
1628 (awatch_command_wrapper): Update parameter type.
1629 * eval.c (fetch_subexp_value): Change parameter type.
1630 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1631 'false' not '0'.
1632 * value.h (fetch_subexp_value): Change parameter type in
1633 declaration.
1634
1635 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1636
1637 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1638 skip_spaces.
1639
1640 2020-11-18 Keith Seitz <keiths@redhat.com>
1641
1642 * linux-tdep.c (dump_note_entry_p): Return true instead of
1643 checking `filename'.
1644
1645 2020-11-18 Tom de Vries <tdevries@suse.de>
1646
1647 * debuginfod-support.c (debuginfod_source_query)
1648 (debuginfod_debuginfo_query): Also do early exit if
1649 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1650
1651 2020-11-18 Tom de Vries <tdevries@suse.de>
1652
1653 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1654 warning.
1655
1656 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1657
1658 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1659 callers. Move doc here.
1660 * gdbtypes.c (get_array_bounds): Return bool
1661
1662 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1665 assert.
1666 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1667 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1668 case to the default.
1669
1670 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * printcmd.c: Include 'safe-ctype.c'.
1673 (skip_over_slash_fmt): New function.
1674 (print_command_completer): Call skip_over_slash_fmt.
1675 (display_and_x_command_completer): New function.
1676 (_initialize_printcmd): Add command completion for 'x' and
1677 'display'.
1678
1679 2020-11-16 Pedro Alves <pedro@palves.net>
1680
1681 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1682 (get_prev_frame_always_1): ... to here.
1683 * inline-frame.c (inline_frame_this_id): Mention
1684 get_prev_frame_always_1 in comment.
1685
1686 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1687
1688 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1689 handling.
1690 (value_less): Add fixed-point handling.
1691
1692 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1693
1694 * eval.c (binop_promote): Add fixed-point type handling.
1695 * valarith.c (fixed_point_binop): New function.
1696 (scalar_binop): Add fixed-point type handling.
1697 (value_neg): Add fixed-point type handling.
1698 * valops.c (value_cast_to_fixed_point): New function.
1699 (value_cast): Add fixed-point type handling.
1700
1701 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1702
1703 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1704 range types.
1705 * c-typeprint.c (c_type_print_varspec_prefix)
1706 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1707 TYPE_CODE_FIXED_POINT handling.
1708 * p-typeprint.c (pascal_type_print_varspec_prefix)
1709 (pascal_type_print_varspec_suffix): Likewise.
1710 * typeprint.c (print_type_fixed_point): New function.
1711 * typeprint.h (print_type_fixed_point): Add declaration.
1712
1713 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1714
1715 * printcmd.c (print_scalar_formatted): Add fixed-point type
1716 handling when options->format is set.
1717
1718 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1719
1720 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1721 * dwarf2/read.c (get_dwarf2_rational_constant)
1722 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1723 (has_zero_over_zero_small_attribute): New functions.
1724 read_base_type, set_die_type): Add fixed-point type handling.
1725 * gdb-gdb.py.in: Add fixed-point type handling.
1726 * gdbtypes.c: #include "gmp-utils.h".
1727 (create_range_type, set_type_code): Add fixed-point type handling.
1728 (init_fixed_point_type): New function.
1729 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1730 (print_fixed_point_type_info): New function.
1731 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1732 handling.
1733 (fixed_point_type_storage): New typedef.
1734 (fixed_point_objfile_key): New static global.
1735 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1736 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1737 functions.
1738 * gdbtypes.h: #include "gmp-utils.h".
1739 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1740 (union type_specific) <fixed_point_info>: New field.
1741 (struct fixed_point_type_info): New struct.
1742 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1743 (init_fixed_point_type, is_fixed_point_type)
1744 (fixed_point_type_base_type, fixed_point_scaling_factor)
1745 (allocate_fixed_point_type_info): Add declarations.
1746 * valprint.c (generic_val_print_fixed_point): New function.
1747 (generic_value_print): Add fixed-point type handling.
1748 * value.c (value_as_address, unpack_long): Add fixed-point type
1749 handling.
1750
1751 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1752
1753 * utils.h (uinteger_pow): Add declaration.
1754 * utils.c (uinteger_pow): Moved here (without changes)...
1755 * valarith.c (uinteger_pow): ... from here.
1756
1757 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1758
1759 * gmp-utils.h, gmp-utils.c: New file.
1760 * unittests/gmp-utils-selftests.c: New file.
1761 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1762 unittests/gmp-utils-selftests.c.
1763 (COMMON_SFILES) Add gmp-utils.c.
1764 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1765
1766 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1767
1768 * configure.ac: Generate an error if a usable GMP library
1769 could not be found.
1770 * configure: Regenerate.
1771
1772 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1773
1774 * configure.ac: Add support for --with-libgmp-prefix.
1775 * Makefile.in (LIBGMP): New variable.
1776 (CLIBS): Include $(LIBGMP).
1777 * configure, config.in: Regenerate
1778
1779 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 PR cli/26879
1782 * f-exp.y (COMPLETE): New token.
1783 (exp): Two new rules for tab-completion.
1784 (saw_name_at_eof): New static global.
1785 (last_was_structop): Likewise.
1786 (yylex): Set new variables, and return COMPLETE token at the end
1787 of the input stream in some cases.
1788
1789 2020-11-14 Tom Tromey <tom@tromey.com>
1790
1791 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1792
1793 2020-11-14 Tom Tromey <tom@tromey.com>
1794
1795 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1796
1797 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1798
1799 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1800
1801 2020-11-13 Tom Tromey <tom@tromey.com>
1802
1803 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1804 (convert_escape, parse_one_string): Constify.
1805
1806 2020-11-13 Keith Seitz <keiths@redhat.com>
1807
1808 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1809 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1810 outside of ELF segments" warning for debugin
1811
1812 2020-11-13 Keith Seitz <keiths@redhat.com>
1813
1814 PR gdb/23034
1815 * elfread.c (elf_symfile_segments): Output a BFD file name
1816 for the "Loadable section ... outside of ELF segments" warning.
1817
1818 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1819
1820 PR gdb/26835
1821 * arm-tdep.c (class arm_instruction_reader): New.
1822 (target_arm_instruction_reader): New.
1823 (arm_analyze_prologue): Add instruction reader parameter and use
1824 it. Use arm_expand_immediate.
1825 (class target_arm_instruction_reader): Adjust.
1826 (arm_skip_prologue): Adjust.
1827 (arm_expand_immediate): New.
1828 (arm_scan_prologue): Adjust.
1829 (arm_analyze_prologue_test): New.
1830 (class test_arm_instruction_reader): New.
1831
1832 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1833
1834 * f-lang.c (fortran_argument_convert): Add declaration. Add
1835 header comment, taken from f-lang.h. Make static.
1836 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1837 (fortran_argument_convert): Delete declaration.
1838
1839 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * ada-exp.y (find_primitive_type): Make parameter const.
1842 * ada-lang.c (enum ada_primitive_types): Delete.
1843 (ada_language::language_arch_info): Update.
1844 * c-lang.c (enum c_primitive_types): Delete.
1845 (c_language_arch_info): Update.
1846 (enum cplus_primitive_types): Delete.
1847 (cplus_language::language_arch_info): Update.
1848 * d-lang.c (enum d_primitive_types): Delete.
1849 (d_language::language_arch_info): Update.
1850 * f-lang.c (enum f_primitive_types): Delete.
1851 (f_language::language_arch_info): Update.
1852 * go-lang.c (enum go_primitive_types): Delete.
1853 (go_language::language_arch_info): Update.
1854 * language.c (auto_or_unknown_language::language_arch_info):
1855 Update.
1856 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1857 (language_string_char_type): Add header comment, call function in
1858 language_arch_info.
1859 (language_bool_type): Likewise
1860 (language_arch_info::bool_type): Define.
1861 (language_lookup_primitive_type_1): Delete.
1862 (language_lookup_primitive_type): Rewrite as a templated function
1863 to call function in language_arch_info, then instantiate twice.
1864 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1865 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1866 (language_arch_info::lookup_primitive_type): Define twice with
1867 different signatures.
1868 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1869 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1870 member function in language_arch_info.
1871 * language.h (language_arch_info): Complete rewrite.
1872 (language_lookup_primitive_type): Make templated.
1873 * m2-lang.c (enum m2_primitive_types): Delete.
1874 (m2_language::language_arch_info): Update.
1875 * opencl-lang.c (OCL_P_TYPE): Delete.
1876 (enum opencl_primitive_types): Delete.
1877 (opencl_type_data): Delete.
1878 (builtin_opencl_type): Delete.
1879 (lookup_opencl_vector_type): Update.
1880 (opencl_language::language_arch_info): Update, lots of content
1881 moved from...
1882 (build_opencl_types): ...here. This function is now deleted.
1883 (_initialize_opencl_language): Delete.
1884 * p-lang.c (enum pascal_primitive_types): Delete.
1885 (pascal_language::language_arch_info): Update.
1886 * rust-lang.c (enum rust_primitive_types): Delete.
1887 (rust_language::language_arch_info): Update.
1888
1889 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1890
1891 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1892 dwarf2_queue_guard.
1893
1894 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1895
1896 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1897 comment.
1898
1899 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1900
1901 * dwarf2/read.c (dwarf_read_debug_printf,
1902 dwarf_read_debug_printf_v): New macros, use throughout the file.
1903
1904 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1905
1906 PR tdep/27015
1907 * arc-linux-tdep.c (collect_register): Populate "eret" by
1908 "pc" value from the regcache when asked for "pc" value.
1909
1910 2020-11-12 Tom Tromey <tom@tromey.com>
1911
1912 PR rust/26799:
1913 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1914 exist.
1915
1916 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * features/Makefile (XMLTOC): Add rx.xml.
1919 (FEATURE_XMLFILES): Remove rx.xml.
1920 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1921 * features/rx.c: Regenerate.
1922 * features/rx.xml: Wrap in `target` tags, and reindent.
1923 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1924 structure.
1925 (maint_print_c_tdesc_opt_def): New typedef.
1926 (maint_print_c_tdesc_opt_defs): New static global.
1927 (make_maint_print_c_tdesc_options_def_group): New function.
1928 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1929 print single feature C file for target descriptions containing a
1930 single feature.
1931 (maint_print_c_tdesc_cmd_completer): New function.
1932 (_initialize_target_descriptions): Update call to register command
1933 completer, and include command line flag in help text.
1934
1935 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1936
1937 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1938 numbers.
1939 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1940 enum values.
1941
1942 2020-11-10 Tom Tromey <tom@tromey.com>
1943
1944 * value.h (internalvar_name): Update.
1945 * value.c (internalvar_name): Make return type const.
1946
1947 2020-11-10 Tom Tromey <tom@tromey.com>
1948
1949 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1950 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1951 const.
1952
1953 2020-11-10 Tom Tromey <tom@tromey.com>
1954
1955 * objc-lang.h (value_nsstring): Update.
1956 * objc-lang.c (value_nsstring): Make "ptr" const.
1957
1958 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * expprint.c (print_subexp_funcall): Increment expression position
1961 after reading argument count.
1962 * f-lang.c (print_subexp_f): Skip over opcode before calling
1963 common function.
1964 (dump_subexp_body_f): Likewise.
1965
1966 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1967
1968 PR python/26832
1969 * configure: Regenerate.
1970 * configure.ac: Check for python modules ctypes instead of
1971 itertools.
1972
1973 2020-11-06 Pedro Alves <pedro@palves.net>
1974
1975 * macroexp.c (struct macro_buffer): Split in two classes. Add
1976 uses adjusted.
1977 (struct shared_macro_buffer): New, factored out from struct
1978 macro_buffer.
1979 (struct growable_macro_buffer): New, factored out from struct
1980 macro_buffer.
1981 (set_token, get_comment, get_identifier, get_pp_number)
1982 (get_character_constant, get_string_literal, get_punctuator)
1983 (get_next_token_for_substitution): Constify parameters.
1984 (substitute_args): Constify locals.
1985
1986 2020-11-05 Tom Tromey <tom@tromey.com>
1987
1988 * dwarf2/read.c (read_cutu_die_from_dwo)
1989 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1990 (build_type_psymtabs_1): Update.
1991 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1992 parameter.
1993 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1994 Don't read section. Add assert.
1995
1996 2020-11-04 Tom Tromey <tromey@adacore.com>
1997
1998 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1999
2000 2020-11-04 Tom Tromey <tromey@adacore.com>
2001
2002 * ada-typeprint.c (ada_print_type): Handle __T types.
2003
2004 2020-11-04 Tom Tromey <tromey@adacore.com>
2005
2006 * dwarf2/read.c (add_partial_symbol, process_die):
2007 Handle DW_TAG_array_type.
2008 (is_type_tag_for_partial): Add "lang" parameter.
2009 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
2010
2011 2020-11-04 Tom Tromey <tromey@adacore.com>
2012
2013 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
2014
2015 2020-11-04 Tom Tromey <tromey@adacore.com>
2016
2017 * dwarf2/read.c (read_array_type): Only apply stride to innermost
2018 array.
2019
2020 2020-11-04 Tom Tromey <tromey@adacore.com>
2021
2022 * gdbtypes.c (update_static_array_size): Handle bit stride.
2023
2024 2020-11-04 Tom Tromey <tromey@adacore.com>
2025
2026 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
2027
2028 2020-11-04 Tom Tromey <tromey@adacore.com>
2029
2030 * ada-lang.c (ada_is_any_packed_array_type): New function.
2031 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
2032
2033 2020-11-04 Tom Tromey <tromey@adacore.com>
2034
2035 * dwarf2/read.c (recognize_bound_expression)
2036 (quirk_ada_thick_pointer): New functions.
2037 (read_array_type): Call quirk_ada_thick_pointer.
2038 (set_die_type): Add "skip_data_location" parameter.
2039 (quirk_ada_thick_pointer): New function.
2040 (process_structure_scope): Call quirk_ada_thick_pointer.
2041 * ada-lang.c (ada_is_unconstrained_packed_array_type)
2042 (decode_packed_array_bitsize): Handle thick pointers without
2043 parallel types.
2044 (ada_is_gnat_encoded_packed_array_type): Rename from
2045 ada_is_packed_array_type.
2046 (ada_is_constrained_packed_array_type): Update.
2047 * ada-valprint.c (ada_val_print_gnat_array): Remove.
2048 (ada_value_print_1): Use ada_get_decoded_value.
2049
2050 2020-11-04 Tom Tromey <tromey@adacore.com>
2051
2052 * ada-lang.c (recursively_update_array_bitsize): New function.
2053 (decode_constrained_packed_array_type): Call it.
2054
2055 2020-11-04 Tom Tromey <tromey@adacore.com>
2056
2057 * ada-lang.c (to_fixed_array_type): Error if
2058 decode_constrained_packed_array_type returns NULL.
2059
2060 2020-11-04 Tom Tromey <tromey@adacore.com>
2061
2062 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
2063
2064 2020-11-02 Tom Tromey <tromey@adacore.com>
2065
2066 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
2067 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
2068 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
2069 * amd64-ravenscar-thread.c: New file.
2070 * amd64-ravenscar-thread.h: New file.
2071 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
2072 * configure.tgt (amd64_tobjs): Add ravenscar objects.
2073
2074 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * main.c (execute_cmdargs): New function.
2077 (captured_main_1): Make use of execute_cmdargs.
2078
2079 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2080
2081 * NEWS: Mention changes to config file search path.
2082 * main.c
2083
2084 2020-11-02 Tom Tromey <tromey@adacore.com>
2085
2086 * python/python.c: Consolidate two HAVE_PYTHON blocks.
2087 (python_GdbModuleDef): Move earlier. Now static.
2088 (do_start_initialization): Consolidate some IS_PY3K blocks.
2089
2090 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
2091
2092 * aarch64-linux-tdep.c: Fix indentation.
2093 * aarch64-ravenscar-thread.c: Fix indentation.
2094 * aarch64-tdep.c: Fix indentation.
2095 * aarch64-tdep.h: Fix indentation.
2096 * ada-lang.c: Fix indentation.
2097 * ada-lang.h: Fix indentation.
2098 * ada-tasks.c: Fix indentation.
2099 * ada-typeprint.c: Fix indentation.
2100 * ada-valprint.c: Fix indentation.
2101 * ada-varobj.c: Fix indentation.
2102 * addrmap.c: Fix indentation.
2103 * addrmap.h: Fix indentation.
2104 * agent.c: Fix indentation.
2105 * aix-thread.c: Fix indentation.
2106 * alpha-bsd-nat.c: Fix indentation.
2107 * alpha-linux-tdep.c: Fix indentation.
2108 * alpha-mdebug-tdep.c: Fix indentation.
2109 * alpha-nbsd-tdep.c: Fix indentation.
2110 * alpha-obsd-tdep.c: Fix indentation.
2111 * alpha-tdep.c: Fix indentation.
2112 * amd64-bsd-nat.c: Fix indentation.
2113 * amd64-darwin-tdep.c: Fix indentation.
2114 * amd64-linux-nat.c: Fix indentation.
2115 * amd64-linux-tdep.c: Fix indentation.
2116 * amd64-nat.c: Fix indentation.
2117 * amd64-obsd-tdep.c: Fix indentation.
2118 * amd64-tdep.c: Fix indentation.
2119 * amd64-windows-tdep.c: Fix indentation.
2120 * annotate.c: Fix indentation.
2121 * arc-tdep.c: Fix indentation.
2122 * arch-utils.c: Fix indentation.
2123 * arch/arm-get-next-pcs.c: Fix indentation.
2124 * arch/arm.c: Fix indentation.
2125 * arm-linux-nat.c: Fix indentation.
2126 * arm-linux-tdep.c: Fix indentation.
2127 * arm-nbsd-tdep.c: Fix indentation.
2128 * arm-pikeos-tdep.c: Fix indentation.
2129 * arm-tdep.c: Fix indentation.
2130 * arm-tdep.h: Fix indentation.
2131 * arm-wince-tdep.c: Fix indentation.
2132 * auto-load.c: Fix indentation.
2133 * auxv.c: Fix indentation.
2134 * avr-tdep.c: Fix indentation.
2135 * ax-gdb.c: Fix indentation.
2136 * ax-general.c: Fix indentation.
2137 * bfin-linux-tdep.c: Fix indentation.
2138 * block.c: Fix indentation.
2139 * block.h: Fix indentation.
2140 * blockframe.c: Fix indentation.
2141 * bpf-tdep.c: Fix indentation.
2142 * break-catch-sig.c: Fix indentation.
2143 * break-catch-syscall.c: Fix indentation.
2144 * break-catch-throw.c: Fix indentation.
2145 * breakpoint.c: Fix indentation.
2146 * breakpoint.h: Fix indentation.
2147 * bsd-uthread.c: Fix indentation.
2148 * btrace.c: Fix indentation.
2149 * build-id.c: Fix indentation.
2150 * buildsym-legacy.h: Fix indentation.
2151 * buildsym.c: Fix indentation.
2152 * c-typeprint.c: Fix indentation.
2153 * c-valprint.c: Fix indentation.
2154 * c-varobj.c: Fix indentation.
2155 * charset.c: Fix indentation.
2156 * cli/cli-cmds.c: Fix indentation.
2157 * cli/cli-decode.c: Fix indentation.
2158 * cli/cli-decode.h: Fix indentation.
2159 * cli/cli-script.c: Fix indentation.
2160 * cli/cli-setshow.c: Fix indentation.
2161 * coff-pe-read.c: Fix indentation.
2162 * coffread.c: Fix indentation.
2163 * compile/compile-cplus-types.c: Fix indentation.
2164 * compile/compile-object-load.c: Fix indentation.
2165 * compile/compile-object-run.c: Fix indentation.
2166 * completer.c: Fix indentation.
2167 * corefile.c: Fix indentation.
2168 * corelow.c: Fix indentation.
2169 * cp-abi.h: Fix indentation.
2170 * cp-namespace.c: Fix indentation.
2171 * cp-support.c: Fix indentation.
2172 * cp-valprint.c: Fix indentation.
2173 * cris-linux-tdep.c: Fix indentation.
2174 * cris-tdep.c: Fix indentation.
2175 * darwin-nat-info.c: Fix indentation.
2176 * darwin-nat.c: Fix indentation.
2177 * darwin-nat.h: Fix indentation.
2178 * dbxread.c: Fix indentation.
2179 * dcache.c: Fix indentation.
2180 * disasm.c: Fix indentation.
2181 * dtrace-probe.c: Fix indentation.
2182 * dwarf2/abbrev.c: Fix indentation.
2183 * dwarf2/attribute.c: Fix indentation.
2184 * dwarf2/expr.c: Fix indentation.
2185 * dwarf2/frame.c: Fix indentation.
2186 * dwarf2/index-cache.c: Fix indentation.
2187 * dwarf2/index-write.c: Fix indentation.
2188 * dwarf2/line-header.c: Fix indentation.
2189 * dwarf2/loc.c: Fix indentation.
2190 * dwarf2/macro.c: Fix indentation.
2191 * dwarf2/read.c: Fix indentation.
2192 * dwarf2/read.h: Fix indentation.
2193 * elfread.c: Fix indentation.
2194 * eval.c: Fix indentation.
2195 * event-top.c: Fix indentation.
2196 * exec.c: Fix indentation.
2197 * exec.h: Fix indentation.
2198 * expprint.c: Fix indentation.
2199 * f-lang.c: Fix indentation.
2200 * f-typeprint.c: Fix indentation.
2201 * f-valprint.c: Fix indentation.
2202 * fbsd-nat.c: Fix indentation.
2203 * fbsd-tdep.c: Fix indentation.
2204 * findvar.c: Fix indentation.
2205 * fork-child.c: Fix indentation.
2206 * frame-unwind.c: Fix indentation.
2207 * frame-unwind.h: Fix indentation.
2208 * frame.c: Fix indentation.
2209 * frv-linux-tdep.c: Fix indentation.
2210 * frv-tdep.c: Fix indentation.
2211 * frv-tdep.h: Fix indentation.
2212 * ft32-tdep.c: Fix indentation.
2213 * gcore.c: Fix indentation.
2214 * gdb_bfd.c: Fix indentation.
2215 * gdbarch.sh: Fix indentation.
2216 * gdbarch.c: Re-generate
2217 * gdbarch.h: Re-generate.
2218 * gdbcore.h: Fix indentation.
2219 * gdbthread.h: Fix indentation.
2220 * gdbtypes.c: Fix indentation.
2221 * gdbtypes.h: Fix indentation.
2222 * glibc-tdep.c: Fix indentation.
2223 * gnu-nat.c: Fix indentation.
2224 * gnu-nat.h: Fix indentation.
2225 * gnu-v2-abi.c: Fix indentation.
2226 * gnu-v3-abi.c: Fix indentation.
2227 * go32-nat.c: Fix indentation.
2228 * guile/guile-internal.h: Fix indentation.
2229 * guile/scm-cmd.c: Fix indentation.
2230 * guile/scm-frame.c: Fix indentation.
2231 * guile/scm-iterator.c: Fix indentation.
2232 * guile/scm-math.c: Fix indentation.
2233 * guile/scm-ports.c: Fix indentation.
2234 * guile/scm-pretty-print.c: Fix indentation.
2235 * guile/scm-value.c: Fix indentation.
2236 * h8300-tdep.c: Fix indentation.
2237 * hppa-linux-nat.c: Fix indentation.
2238 * hppa-linux-tdep.c: Fix indentation.
2239 * hppa-nbsd-nat.c: Fix indentation.
2240 * hppa-nbsd-tdep.c: Fix indentation.
2241 * hppa-obsd-nat.c: Fix indentation.
2242 * hppa-tdep.c: Fix indentation.
2243 * hppa-tdep.h: Fix indentation.
2244 * i386-bsd-nat.c: Fix indentation.
2245 * i386-darwin-nat.c: Fix indentation.
2246 * i386-darwin-tdep.c: Fix indentation.
2247 * i386-dicos-tdep.c: Fix indentation.
2248 * i386-gnu-nat.c: Fix indentation.
2249 * i386-linux-nat.c: Fix indentation.
2250 * i386-linux-tdep.c: Fix indentation.
2251 * i386-nto-tdep.c: Fix indentation.
2252 * i386-obsd-tdep.c: Fix indentation.
2253 * i386-sol2-nat.c: Fix indentation.
2254 * i386-tdep.c: Fix indentation.
2255 * i386-tdep.h: Fix indentation.
2256 * i386-windows-tdep.c: Fix indentation.
2257 * i387-tdep.c: Fix indentation.
2258 * i387-tdep.h: Fix indentation.
2259 * ia64-libunwind-tdep.c: Fix indentation.
2260 * ia64-libunwind-tdep.h: Fix indentation.
2261 * ia64-linux-nat.c: Fix indentation.
2262 * ia64-linux-tdep.c: Fix indentation.
2263 * ia64-tdep.c: Fix indentation.
2264 * ia64-tdep.h: Fix indentation.
2265 * ia64-vms-tdep.c: Fix indentation.
2266 * infcall.c: Fix indentation.
2267 * infcmd.c: Fix indentation.
2268 * inferior.c: Fix indentation.
2269 * infrun.c: Fix indentation.
2270 * iq2000-tdep.c: Fix indentation.
2271 * language.c: Fix indentation.
2272 * linespec.c: Fix indentation.
2273 * linux-fork.c: Fix indentation.
2274 * linux-nat.c: Fix indentation.
2275 * linux-tdep.c: Fix indentation.
2276 * linux-thread-db.c: Fix indentation.
2277 * lm32-tdep.c: Fix indentation.
2278 * m2-lang.c: Fix indentation.
2279 * m2-typeprint.c: Fix indentation.
2280 * m2-valprint.c: Fix indentation.
2281 * m32c-tdep.c: Fix indentation.
2282 * m32r-linux-tdep.c: Fix indentation.
2283 * m32r-tdep.c: Fix indentation.
2284 * m68hc11-tdep.c: Fix indentation.
2285 * m68k-bsd-nat.c: Fix indentation.
2286 * m68k-linux-nat.c: Fix indentation.
2287 * m68k-linux-tdep.c: Fix indentation.
2288 * m68k-tdep.c: Fix indentation.
2289 * machoread.c: Fix indentation.
2290 * macrocmd.c: Fix indentation.
2291 * macroexp.c: Fix indentation.
2292 * macroscope.c: Fix indentation.
2293 * macrotab.c: Fix indentation.
2294 * macrotab.h: Fix indentation.
2295 * main.c: Fix indentation.
2296 * mdebugread.c: Fix indentation.
2297 * mep-tdep.c: Fix indentation.
2298 * mi/mi-cmd-catch.c: Fix indentation.
2299 * mi/mi-cmd-disas.c: Fix indentation.
2300 * mi/mi-cmd-env.c: Fix indentation.
2301 * mi/mi-cmd-stack.c: Fix indentation.
2302 * mi/mi-cmd-var.c: Fix indentation.
2303 * mi/mi-cmds.c: Fix indentation.
2304 * mi/mi-main.c: Fix indentation.
2305 * mi/mi-parse.c: Fix indentation.
2306 * microblaze-tdep.c: Fix indentation.
2307 * minidebug.c: Fix indentation.
2308 * minsyms.c: Fix indentation.
2309 * mips-linux-nat.c: Fix indentation.
2310 * mips-linux-tdep.c: Fix indentation.
2311 * mips-nbsd-tdep.c: Fix indentation.
2312 * mips-tdep.c: Fix indentation.
2313 * mn10300-linux-tdep.c: Fix indentation.
2314 * mn10300-tdep.c: Fix indentation.
2315 * moxie-tdep.c: Fix indentation.
2316 * msp430-tdep.c: Fix indentation.
2317 * namespace.h: Fix indentation.
2318 * nat/fork-inferior.c: Fix indentation.
2319 * nat/gdb_ptrace.h: Fix indentation.
2320 * nat/linux-namespaces.c: Fix indentation.
2321 * nat/linux-osdata.c: Fix indentation.
2322 * nat/netbsd-nat.c: Fix indentation.
2323 * nat/x86-dregs.c: Fix indentation.
2324 * nbsd-nat.c: Fix indentation.
2325 * nbsd-tdep.c: Fix indentation.
2326 * nios2-linux-tdep.c: Fix indentation.
2327 * nios2-tdep.c: Fix indentation.
2328 * nto-procfs.c: Fix indentation.
2329 * nto-tdep.c: Fix indentation.
2330 * objfiles.c: Fix indentation.
2331 * objfiles.h: Fix indentation.
2332 * opencl-lang.c: Fix indentation.
2333 * or1k-tdep.c: Fix indentation.
2334 * osabi.c: Fix indentation.
2335 * osabi.h: Fix indentation.
2336 * osdata.c: Fix indentation.
2337 * p-lang.c: Fix indentation.
2338 * p-typeprint.c: Fix indentation.
2339 * p-valprint.c: Fix indentation.
2340 * parse.c: Fix indentation.
2341 * ppc-linux-nat.c: Fix indentation.
2342 * ppc-linux-tdep.c: Fix indentation.
2343 * ppc-nbsd-nat.c: Fix indentation.
2344 * ppc-nbsd-tdep.c: Fix indentation.
2345 * ppc-obsd-nat.c: Fix indentation.
2346 * ppc-ravenscar-thread.c: Fix indentation.
2347 * ppc-sysv-tdep.c: Fix indentation.
2348 * ppc64-tdep.c: Fix indentation.
2349 * printcmd.c: Fix indentation.
2350 * proc-api.c: Fix indentation.
2351 * producer.c: Fix indentation.
2352 * producer.h: Fix indentation.
2353 * prologue-value.c: Fix indentation.
2354 * prologue-value.h: Fix indentation.
2355 * psymtab.c: Fix indentation.
2356 * python/py-arch.c: Fix indentation.
2357 * python/py-bpevent.c: Fix indentation.
2358 * python/py-event.c: Fix indentation.
2359 * python/py-event.h: Fix indentation.
2360 * python/py-finishbreakpoint.c: Fix indentation.
2361 * python/py-frame.c: Fix indentation.
2362 * python/py-framefilter.c: Fix indentation.
2363 * python/py-inferior.c: Fix indentation.
2364 * python/py-infthread.c: Fix indentation.
2365 * python/py-objfile.c: Fix indentation.
2366 * python/py-prettyprint.c: Fix indentation.
2367 * python/py-registers.c: Fix indentation.
2368 * python/py-signalevent.c: Fix indentation.
2369 * python/py-stopevent.c: Fix indentation.
2370 * python/py-stopevent.h: Fix indentation.
2371 * python/py-threadevent.c: Fix indentation.
2372 * python/py-tui.c: Fix indentation.
2373 * python/py-unwind.c: Fix indentation.
2374 * python/py-value.c: Fix indentation.
2375 * python/py-xmethods.c: Fix indentation.
2376 * python/python-internal.h: Fix indentation.
2377 * python/python.c: Fix indentation.
2378 * ravenscar-thread.c: Fix indentation.
2379 * record-btrace.c: Fix indentation.
2380 * record-full.c: Fix indentation.
2381 * record.c: Fix indentation.
2382 * reggroups.c: Fix indentation.
2383 * regset.h: Fix indentation.
2384 * remote-fileio.c: Fix indentation.
2385 * remote.c: Fix indentation.
2386 * reverse.c: Fix indentation.
2387 * riscv-linux-tdep.c: Fix indentation.
2388 * riscv-ravenscar-thread.c: Fix indentation.
2389 * riscv-tdep.c: Fix indentation.
2390 * rl78-tdep.c: Fix indentation.
2391 * rs6000-aix-tdep.c: Fix indentation.
2392 * rs6000-lynx178-tdep.c: Fix indentation.
2393 * rs6000-nat.c: Fix indentation.
2394 * rs6000-tdep.c: Fix indentation.
2395 * rust-lang.c: Fix indentation.
2396 * rx-tdep.c: Fix indentation.
2397 * s12z-tdep.c: Fix indentation.
2398 * s390-linux-tdep.c: Fix indentation.
2399 * score-tdep.c: Fix indentation.
2400 * ser-base.c: Fix indentation.
2401 * ser-mingw.c: Fix indentation.
2402 * ser-uds.c: Fix indentation.
2403 * ser-unix.c: Fix indentation.
2404 * serial.c: Fix indentation.
2405 * sh-linux-tdep.c: Fix indentation.
2406 * sh-nbsd-tdep.c: Fix indentation.
2407 * sh-tdep.c: Fix indentation.
2408 * skip.c: Fix indentation.
2409 * sol-thread.c: Fix indentation.
2410 * solib-aix.c: Fix indentation.
2411 * solib-darwin.c: Fix indentation.
2412 * solib-frv.c: Fix indentation.
2413 * solib-svr4.c: Fix indentation.
2414 * solib.c: Fix indentation.
2415 * source.c: Fix indentation.
2416 * sparc-linux-tdep.c: Fix indentation.
2417 * sparc-nbsd-tdep.c: Fix indentation.
2418 * sparc-obsd-tdep.c: Fix indentation.
2419 * sparc-ravenscar-thread.c: Fix indentation.
2420 * sparc-tdep.c: Fix indentation.
2421 * sparc64-linux-tdep.c: Fix indentation.
2422 * sparc64-nbsd-tdep.c: Fix indentation.
2423 * sparc64-obsd-tdep.c: Fix indentation.
2424 * sparc64-tdep.c: Fix indentation.
2425 * stabsread.c: Fix indentation.
2426 * stack.c: Fix indentation.
2427 * stap-probe.c: Fix indentation.
2428 * stubs/ia64vms-stub.c: Fix indentation.
2429 * stubs/m32r-stub.c: Fix indentation.
2430 * stubs/m68k-stub.c: Fix indentation.
2431 * stubs/sh-stub.c: Fix indentation.
2432 * stubs/sparc-stub.c: Fix indentation.
2433 * symfile-mem.c: Fix indentation.
2434 * symfile.c: Fix indentation.
2435 * symfile.h: Fix indentation.
2436 * symmisc.c: Fix indentation.
2437 * symtab.c: Fix indentation.
2438 * symtab.h: Fix indentation.
2439 * target-float.c: Fix indentation.
2440 * target.c: Fix indentation.
2441 * target.h: Fix indentation.
2442 * tic6x-tdep.c: Fix indentation.
2443 * tilegx-linux-tdep.c: Fix indentation.
2444 * tilegx-tdep.c: Fix indentation.
2445 * top.c: Fix indentation.
2446 * tracefile-tfile.c: Fix indentation.
2447 * tracepoint.c: Fix indentation.
2448 * tui/tui-disasm.c: Fix indentation.
2449 * tui/tui-io.c: Fix indentation.
2450 * tui/tui-regs.c: Fix indentation.
2451 * tui/tui-stack.c: Fix indentation.
2452 * tui/tui-win.c: Fix indentation.
2453 * tui/tui-winsource.c: Fix indentation.
2454 * tui/tui.c: Fix indentation.
2455 * typeprint.c: Fix indentation.
2456 * ui-out.h: Fix indentation.
2457 * unittests/copy_bitwise-selftests.c: Fix indentation.
2458 * unittests/memory-map-selftests.c: Fix indentation.
2459 * utils.c: Fix indentation.
2460 * v850-tdep.c: Fix indentation.
2461 * valarith.c: Fix indentation.
2462 * valops.c: Fix indentation.
2463 * valprint.c: Fix indentation.
2464 * valprint.h: Fix indentation.
2465 * value.c: Fix indentation.
2466 * value.h: Fix indentation.
2467 * varobj.c: Fix indentation.
2468 * vax-tdep.c: Fix indentation.
2469 * windows-nat.c: Fix indentation.
2470 * windows-tdep.c: Fix indentation.
2471 * xcoffread.c: Fix indentation.
2472 * xml-syscall.c: Fix indentation.
2473 * xml-tdesc.c: Fix indentation.
2474 * xstormy16-tdep.c: Fix indentation.
2475 * xtensa-config.c: Fix indentation.
2476 * xtensa-linux-nat.c: Fix indentation.
2477 * xtensa-linux-tdep.c: Fix indentation.
2478 * xtensa-tdep.c: Fix indentation.
2479
2480 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2481 Craig Blackmore <craig.blackmore@embecosm.com>
2482
2483 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2484 as an unsigned value.
2485
2486 2020-11-01 Tom Tromey <tom@tromey.com>
2487
2488 * dbxread.c (dbx_end_psymtab): Update.
2489 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2490 (build_type_psymtabs_reader): Update.
2491 * xcoffread.c (xcoff_end_psymtab): Update.
2492 * ctfread.c (scan_partial_symbols): Update.
2493 * psymtab.c (sort_pst_symbols): Remove.
2494 (partial_symtab::end): Rename from end_psymtab_common. Inline
2495 sort_pst_symbols.
2496 * psympriv.h (struct partial_symtab) <end>: New method.
2497 (end_psymtab_common): Don't declare.
2498
2499 2020-11-01 Tom Tromey <tom@tromey.com>
2500
2501 * symmisc.c (count_psyms): New function.
2502 (print_objfile_statistics): Use it.
2503 * psymtab.c (append_psymbol_to_list): Remove.
2504 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2505 * objfiles.h (struct objstats) <n_psyms>: Remove.
2506
2507 2020-11-01 Tom Tromey <tom@tromey.com>
2508
2509 * dbxread.c (dbx_end_psymtab): Update.
2510 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2511 (build_type_psymtabs_reader): Update.
2512 * xcoffread.c (xcoff_end_psymtab): Update.
2513 * ctfread.c (scan_partial_symbols): Update.
2514 * psympriv.h (end_psymtab_common): Update.
2515 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2516 (sort_pst_symbols): Likewise.
2517
2518 2020-11-01 Tom Tromey <tom@tromey.com>
2519
2520 * dbxread.c (dbx_symfile_read): Update.
2521 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2522 * xcoffread.c (xcoff_initial_scan): Update.
2523 * psympriv.h (init_psymbol_list): Don't declare.
2524 * psymtab.c (init_psymbol_list): Remove.
2525
2526 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2527
2528 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2529 gnat_encoded_fixed_type_info. Update all callers.
2530
2531 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2532
2533 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2534 line too long.
2535
2536 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2537
2538 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2539 cast_from_fixed. Update all callers.
2540 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2541 Update all callers.
2542 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2543 Update all callers.
2544 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2545 ada_scaling_factor.
2546 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2547 to print_gnat_encoded_fixed_point_type.
2548 * ada-valprint.c: Likewise.
2549
2550 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2553 (debug_prefixed_printf): Add check of debug_displaced flag.
2554 * linux-nat.c (linux_nat_debug_printf): Add check of
2555 debug_linux_nat flag.
2556
2557 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * infrun.c (infrun_debug_printf_1): Remove.
2560 (displaced_debug_printf_1): Remove.
2561 (stop_all_threads): Use debug_prefixed_printf.
2562 * infrun.h (infrun_debug_printf_1): Remove.
2563 (infrun_debug_printf): Use debug_prefixed_printf.
2564 (displaced_debug_printf_1): Remove.
2565 (displaced_debug_printf): Use debug_prefixed_printf.
2566 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2567 (linux_nat_debug_printf): Use debug_prefixed_printf.
2568
2569 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2570
2571 * configure: Re-generate.
2572 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2573 AC_LANG_PROGRAM.
2574
2575 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2576
2577 * configure: Re-generate.
2578
2579 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2580
2581 * configure: Re-generate.
2582
2583 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2584
2585 * configure: Re-generate.
2586
2587 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 * configure: Re-generate.
2590
2591 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2592
2593 * acinclude.m4: Modernize.
2594 * configure: Re-generate.
2595
2596 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2597
2598 * configure.ac: Modernize.
2599 * configure: Re-generate.
2600
2601 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2604 * configure: Re-generate.
2605 * configure.ac: Remove AM_PROG_CC_STDC.
2606
2607 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2610 AC_CANONICAL_SYSTEM.
2611 * configure: Re-generate.
2612
2613 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2614
2615 * infrun.h (displaced_debug_printf): New macro. Replace
2616 displaced debug prints throughout to use it.
2617 (displaced_debug_printf_1): New declaration.
2618 (displaced_step_dump_bytes): Return string, remove ui_file
2619 parameter, update all callers.
2620 * infrun.c (displaced_debug_printf_1): New function.
2621 (displaced_step_dump_bytes): Return string, remove ui_file
2622 parameter
2623
2624 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2625
2626 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2627
2628 2020-10-30 Tom Tromey <tromey@adacore.com>
2629
2630 * Makefile.in (stamp-init): Depend on config.status.
2631
2632 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2633
2634 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2635
2636 2020-10-30 Pedro Alves <pedro@palves.net>
2637
2638 * thread.c (lookup_selected_frame): Move ...
2639 * frame.c (lookup_selected_frame): ... here.
2640
2641 2020-10-30 Pedro Alves <pedro@palves.net>
2642
2643 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2644 * frame.c
2645 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2646 Use save_selected_frame. Save language as well.
2647 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2648 Use restore_selected_frame, and restore language as well.
2649 (selected_frame_id, selected_frame_level): New.
2650 (selected_frame): Update comments.
2651 (save_selected_frame, restore_selected_frame): New.
2652 (get_selected_frame): Use lookup_selected_frame.
2653 (get_selected_frame_if_set): Delete.
2654 (select_frame): Record selected_frame_level and selected_frame_id.
2655 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2656 fields.
2657 (get_selected_frame): Make 'message' parameter optional.
2658 (get_selected_frame_if_set): Delete declaration.
2659 (select_frame): Update comments.
2660 (save_selected_frame, restore_selected_frame)
2661 (lookup_selected_frame): Declare.
2662 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2663 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2664 New field.
2665 (save_infcall_control_state): Use save_selected_frame.
2666 (restore_selected_frame): Delete.
2667 (restore_infcall_control_state): Use restore_selected_frame.
2668 * stack.c (select_frame_command_core, frame_command_core): Use
2669 get_selected_frame.
2670 * thread.c (restore_selected_frame): Rename to ...
2671 (lookup_selected_frame): ... this and make extern. Select the
2672 current frame if the frame level is -1.
2673 (scoped_restore_current_thread::restore): Also restore the
2674 language.
2675 (scoped_restore_current_thread::~scoped_restore_current_thread):
2676 Don't try/catch.
2677 (scoped_restore_current_thread::scoped_restore_current_thread):
2678 Save the language as well. Use save_selected_frame.
2679
2680 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2681
2682 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2683 documentation.
2684 * gdbarch.h: Re-generate.
2685
2686 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2689 parameter.
2690 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2691 Likewise.
2692 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2693 Likewise.
2694 * arch-utils.c (default_displaced_step_hw_singlestep):
2695 Likewise.
2696 * arch-utils.h (default_displaced_step_hw_singlestep):
2697 Likewise.
2698 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2699 Likewise.
2700 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2701 Likewise.
2702 * gdbarch.c: Re-generate.
2703 * gdbarch.h: Re-generate.
2704 * infrun.c (resume_1): Adjust.
2705
2706 2020-10-29 Tom Tromey <tom@tromey.com>
2707
2708 * progspace.c (program_space::~program_space): Don't call
2709 exec_close.
2710
2711 2020-10-29 Tom Tromey <tom@tromey.com>
2712
2713 * exec.c (exec_target::close): Don't change current program
2714 space.
2715
2716 2020-10-29 Tom Tromey <tom@tromey.com>
2717
2718 * symfile.c (add_symbol_file_command): Update.
2719 * exec.c (program_space::add_target_sections): Rename.
2720 * symfile-mem.c (symbol_file_add_from_memory): Update.
2721 * progspace.h (struct program_space) <add_target_sections>:
2722 Declare new overload.
2723 * exec.h (add_target_sections_of_objfile): Don't declare.
2724
2725 2020-10-29 Tom Tromey <tom@tromey.com>
2726
2727 * solib.c (solib_map_sections): Update.
2728 * exec.c (program_space::add_target_sections): Now a method.
2729 (exec_file_attach): Update.
2730 * exec.h (add_target_sections): Don't declare.
2731 * progspace.h (struct program_space) <add_target_sections>:
2732 Declare.
2733
2734 2020-10-29 Tom Tromey <tom@tromey.com>
2735
2736 * progspace.h (struct program_space) <remove_target_sections>:
2737 Declare.
2738 * exec.c (program_space::remove_target_sections): Now a method.
2739 * exec.h (remove_target_sections): Don't declare.
2740
2741 2020-10-29 Tom Tromey <tom@tromey.com>
2742
2743 * inferior.c (delete_inferior): Update.
2744 * progspace.c (program_space::empty): Rename from
2745 program_space_empty_p. Return bool.
2746 * progspace.h (struct program_space) <empty>: New method.
2747 (program_space_empty_p): Don't declare.
2748
2749 2020-10-29 Tom Tromey <tom@tromey.com>
2750
2751 * progspace.c (program_space::~program_space): Don't call
2752 clear_program_space_solib_cache.
2753 (program_space::clear_solib_cache): Rename from
2754 clear_solib_cache.
2755 * solib.c (handle_solib_event): Update.
2756 * progspace.h (struct program_space) <clear_solib_cache>: New
2757 method.
2758 (clear_program_space_solib_cache): Don't declare.
2759
2760 2020-10-29 Tom Tromey <tom@tromey.com>
2761
2762 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2763 * target.c (info_target_command): Update.
2764 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2765 (symbol_file_clear, reread_symbols): Update.
2766 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2767 * stabsread.c (scan_file_globals): Update.
2768 * solib.c (update_solib_list): Update.
2769 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2770 (svr4_fetch_objfile_link_map, enable_break)
2771 (svr4_relocate_main_executable)
2772 (svr4_iterate_over_objfiles_in_search_order): Update.
2773 * solib-frv.c (lm_base, enable_break)
2774 (frv_relocate_main_executable): Update.
2775 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2776 (frv_fetch_objfile_link_map): Update.
2777 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2778 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2779 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2780 * remote.c (remote_target::get_offsets): Update.
2781 (remote_target::start_remote)
2782 (extended_remote_target::post_attach): Update.
2783 * objfiles.c (entry_point_address_query): Update.
2784 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2785 * minsyms.c (get_symbol_leading_char): Update.
2786 * frame.c (inside_main_func): Update.
2787 * progspace.h (symfile_objfile): Remove macro.
2788
2789 2020-10-29 Tom Tromey <tom@tromey.com>
2790
2791 * exec.c (exec_file_attach): Update.
2792 * progspace.c (program_space::exec_close): Update.
2793 * progspace.h (struct program_space) <ebfd>: Now a
2794 gdb_bfd_ref_ptr.
2795 <set_exec_bfd>: Change argument type.
2796 <exec_bfd>: Update.
2797
2798 2020-10-29 Tom Tromey <tom@tromey.com>
2799
2800 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2801 * symfile.c (reread_symbols): Update.
2802 * symfile-mem.c (add_symbol_file_from_memory_command)
2803 (add_vsyscall_page): Update.
2804 * source-cache.c (source_cache::get_plain_source_lines): Update.
2805 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2806 (svr4_current_sos_direct, svr4_exec_displacement)
2807 (svr4_relocate_main_executable): Update.
2808 (svr4_iterate_over_objfiles_in_search_order): Update.
2809 * solib-frv.c (enable_break2, enable_break): Update.
2810 * solib-dsbt.c (lm_base, enable_break): Update.
2811 * solib-darwin.c (find_program_interpreter)
2812 (darwin_solib_create_inferior_hook): Update.
2813 * sol-thread.c (rw_common, ps_pdmodel): Update.
2814 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2815 * remote.c (compare_sections_command)
2816 (remote_target::trace_set_readonly_regions): Update.
2817 * remote-sim.c (get_sim_inferior_data)
2818 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2819 (gdbsim_target_open, gdbsim_target::files_info): Update.
2820 * exec.h (exec_bfd): Remove macro.
2821 * progspace.c (initialize_progspace): Update.
2822 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2823 Update.
2824 * nto-procfs.c (nto_procfs_target::post_attach)
2825 (nto_procfs_target::create_inferior): Update.
2826 * maint.c (maintenance_info_sections): Update.
2827 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2828 Update.
2829 * infcmd.c (post_create_inferior): Update.
2830 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2831 (objfile_find_memory_regions): Update.
2832 * exec.c (validate_exec_file, exec_file_attach)
2833 (exec_read_partial_read_only, print_section_info): Update.
2834 * corelow.c (core_target_open): Update.
2835 * corefile.c (reopen_exec_file, validate_files): Update.
2836 * arm-tdep.c (gdb_print_insn_arm): Update.
2837 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2838 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2839 methods.
2840
2841 2020-10-29 Tom Tromey <tom@tromey.com>
2842
2843 * progspace.h (current_target_sections): Remove macro.
2844 * solib-svr4.c (scan_dyntag): Update.
2845 * solib-dsbt.c (scan_dyntag): Update.
2846 * exec.c (exec_target::close): Update.
2847 (add_target_sections, add_target_sections_of_objfile)
2848 (remove_target_sections, exec_target::get_section_table)
2849 (exec_target::files_info, set_section_command)
2850 (exec_set_section_address, exec_target::has_memory)
2851 (exec_target::has_memory): Update.
2852
2853 2020-10-29 Tom Tromey <tom@tromey.com>
2854
2855 * source-cache.c (source_cache::get_plain_source_lines): Use
2856 current_program_space.
2857 * corefile.c (reopen_exec_file): Use current_program_space.
2858 * exec.c (exec_file_attach): Use current_program_space.
2859 * exec.h (exec_bfd_mtime): Remove.
2860
2861 2020-10-29 Tom Tromey <tom@tromey.com>
2862
2863 * gcore.c (default_gcore_mach): Remove.
2864 (create_gcore_bfd): Update.
2865
2866 2020-10-29 Tom Tromey <tom@tromey.com>
2867
2868 * progspace.c (program_space::exec_close): New method, from
2869 exec_close in exec.c.
2870 * exec.c (exec_close): Move to progspace.c.
2871 (exec_target::close, exec_file_attach): Update.
2872 * progspace.h (struct program_space) <exec_close>: Declare
2873 method.
2874
2875 2020-10-29 Tom Tromey <tom@tromey.com>
2876
2877 * progspace.h (struct program_space) <exec_filename>: Rename from
2878 pspace_exec_filename. Now a unique_xmalloc_ptr.
2879 * inferior.c (print_selected_inferior): Update.
2880 (print_inferior): Update.
2881 * mi/mi-main.c (print_one_inferior): Update.
2882 * exec.h (exec_filename): Remove macro.
2883 * corefile.c (get_exec_file): Update.
2884 * exec.c (exec_close): Update.
2885 (exec_file_attach): Update.
2886 * progspace.c (clone_program_space): Update.
2887 (print_program_space): Update.
2888
2889 2020-10-29 Tom Tromey <tom@tromey.com>
2890
2891 * target-section.h (struct target_section): Add constructor.
2892 * exec.c (build_section_table, add_target_sections_of_objfile):
2893 Update.
2894 * corelow.c (core_target::build_file_mappings): Update.
2895
2896 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897
2898 PR gdb/19318
2899 * inferior.c (detach_inferior_command): Restore the current thread.
2900 (kill_inferior_command): Ditto.
2901
2902 2020-10-28 Tom de Vries <tdevries@suse.de>
2903
2904 PR symtab/26772
2905 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2906 map, check it in the "best match" loop.
2907
2908 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * m32c-tdep.c: Remove unused includes.
2911
2912 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2913
2914 * xtensa-tdep.c: Remove includes.
2915
2916 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2917
2918 * breakpoint.c (struct condition_command_opts): New struct.
2919 (condition_command_option_defs): New static global.
2920 (make_condition_command_options_def_group): New function.
2921 (condition_completer): Update to consider the '-force' flag.
2922 (condition_command): Use gdb::option for the '-force' flag.
2923
2924 2020-10-27 Tom de Vries <tdevries@suse.de>
2925
2926 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2927 symbols in section check.
2928
2929 2020-10-27 Tom de Vries <tdevries@suse.de>
2930
2931 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2932
2933 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2934
2935 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2936 * breakpoint.c: Update the help text of the 'condition' and 'break'
2937 commands.
2938 (set_breakpoint_condition): Take a new bool parameter
2939 to control whether condition definition should be forced even when
2940 the condition expression is invalid in all of the current locations.
2941 (condition_command): Update the call to 'set_breakpoint_condition'.
2942 (find_condition_and_thread): Take the "-force-condition" flag into
2943 account.
2944 * linespec.c (linespec_keywords): Add "-force-condition" as an
2945 element.
2946 (FORCE_KEYWORD_INDEX): New #define.
2947 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2948 as a keyword.
2949 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2950 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2951 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2952 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2953
2954 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955
2956 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2957 * breakpoint.c (set_breakpoint_location_condition): New function.
2958 (set_breakpoint_condition): Disable a breakpoint location if parsing
2959 the condition string gives an error.
2960 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2961 (build_target_condition_list): Ditto.
2962 (build_target_command_list): Ditto.
2963 (build_bpstat_chain): Ditto.
2964 (print_one_breakpoint_location): Ditto.
2965 (print_one_breakpoint): Ditto.
2966 (breakpoint_1): Ditto.
2967 (bp_location::bp_location): Ditto.
2968 (locations_are_equal): Ditto.
2969 (update_breakpoint_locations): Ditto.
2970 (enable_disable_bp_num_loc): Ditto.
2971 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2972 (find_condition_and_thread_for_sals): New static function.
2973 (create_breakpoint): Call find_condition_and_thread_for_sals.
2974 (location_to_sals): Call find_condition_and_thread_for_sals instead
2975 of find_condition_and_thread.
2976
2977 2020-10-26 Tom de Vries <tdevries@suse.de>
2978
2979 * dwarf2/read.c (process_full_comp_unit): Call
2980 dwarf2_find_base_address.
2981
2982 2020-10-26 Tom Tromey <tromey@adacore.com>
2983
2984 * gdbtypes.c (create_range_type): Revert previous patch. Add
2985 comment.
2986
2987 2020-10-26 Pedro Alves <pedro@palves.net>
2988
2989 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2990 (my_waitpid): Use gdb::handle_eintr.
2991
2992 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2993
2994 * acinclude.m4: Update ptrace.m4 path.
2995 * ptrace.m4: Moved to gdbsupport.
2996
2997 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2998
2999 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
3000 instead of target_gdbarch.
3001
3002 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
3003
3004 * jit.c (jit_reader_load_command): Pass current inferior.
3005 (jit_inferior_init): Change parameter type to inferior, use it.
3006 (jit_inferior_created): Remove.
3007 (jit_inferior_created_hook): Pass inferior parameter down.
3008 (_initialize_jit): Use jit_inferior_created_hook instead of
3009 jit_inferior_created.
3010 * jit.h (jit_inferior_created_hook): Add inferior parameter.
3011 * infrun.c (follow_exec): Pass inferior to
3012 jit_inferior_created_hook.
3013
3014 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
3015
3016 * linux-thread-db.c (check_pid_namespace_match): Add inferior
3017 parameter and use it.
3018 (thread_db_inferior_created): Pass inferior argument.
3019
3020 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
3021
3022 * aix-thread.c (aix_thread_inferior_created): Add inferior
3023 parameter.
3024 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
3025 * dummy-frame.c (cleanup_dummy_frames): Likewise.
3026 * jit.c (jit_inferior_created): Likewise.
3027 * linux-thread-db.c (thread_db_inferior_created): Likewise.
3028 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
3029 * observable.h (inferior_created): Likewise.
3030 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
3031 * symfile-mem.c (add_vsyscall_page): Likewise.
3032 * infcmd.c (post_create_inferior): Pass inferior argument.
3033
3034 2020-10-24 Joel Brobecker <brobecker@adacore.com>
3035
3036 GDB 10.1 released.
3037
3038 2020-10-23 Joel Brobecker <brobecker@adacore.com>
3039
3040 * ada-typeprint.c (ada_print_type): Remove superfluous second call
3041 to ada_check_typedef.
3042
3043 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3044
3045 * f-exp.y (f_parse): Rename to...
3046 (f_language::parser): ...this.
3047 * f-lang.c (f_get_encoding): Rename to...
3048 (f_language::get_encoding): ...this.
3049 (f_op_print_tab): Rename to...
3050 (f_language::op_print_tab): ...this.
3051 (exp_descriptor_f): Rename to...
3052 (f_language::exp_descriptor_tab): ...this.
3053 (class f_language): Moved to f-lang.h.
3054 (f_language::language_arch_info): New function, moved out of class
3055 declaration.
3056 (f_language::search_name_hash): Likewise.
3057 (f_language::lookup_symbol_nonlocal): Likewise.
3058 (f_language::get_symbol_name_matcher_inner): Likewise.
3059 * f-lang.h: Add 'valprint.h' include.
3060 (class f_language): Moved here from f-lang.c.
3061 * f-typeprint.c (f_type_print_args): Delete commented out
3062 declaration.
3063 (f_print_typedef): Rename to...
3064 (f_language::print_typedef): ...this.
3065 (f_print_type): Rename to...
3066 (f_language::print_type): ...this.
3067 (f_type_print_varspec_prefix): Delete declaration and rename to...
3068 (f_language::f_type_print_varspec_prefix): ...this.
3069 (f_type_print_varspec_suffix): Delete declaration and rename to...
3070 (f_language::f_type_print_varspec_suffix): ...this.
3071 (f_type_print_base): Delete declaration and rename to...
3072 (f_language::f_type_print_base): ...this.
3073 * f-valprint.c (f_value_print_inner): Rename to...
3074 (f_language::value_print_inner): ...this.
3075 * parse.c: Delete 'f-lang.h' include.
3076
3077 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * language.h (language_defn::print_type): Add variable names in
3080 declaration, and update header comment.
3081
3082 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3083
3084 * ada-lang.c (ada_language::demangle): Rename to...
3085 (ada_language::demangle_symbol): ...this.
3086 * c-lang.c (cplus_language::demangle): Rename to...
3087 (cplus_language::demangle_symbol): ...this.
3088 * d-lang.c (d_language::demangle): Rename to...
3089 (d_language::demangle_symbol): ...this.
3090 * f-lang.c (f_language::demangle): Rename to...
3091 (f_language::demangle_symbol): ...this.
3092 * go-lang.c (go_language::demangle): Rename to...
3093 (go_language::demangle_symbol): ...this.
3094 * language.c (language_demangle): Update call to demangle_symbol.
3095 (auto_or_unknown_language::demangle): Rename to...
3096 (auto_or_unknown_language::demangle_symbol): ...this.
3097 * language.h (language_defn::demangle): Rename to...
3098 (language_defn::demangle_symbol): ...this.
3099 * objc-lang.c (objc_language::demangle): Rename to...
3100 (objc_language::demangle_symbol): ...this.
3101 * rust-lang.c (rust_language::demangle): Rename to...
3102 (rust_language::demangle_symbol): ...this.
3103
3104 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
3107 (iterate_over_file_blocks): Replace use of macro with the macros
3108 definition.
3109
3110 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
3113 * valprint.c (maybe_print_array_index): Replace use of macro with
3114 the macros definition.
3115
3116 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3117
3118 * ada-lang.c (ada_language::print_array_index): Call value_print
3119 directly.
3120 * language.c (language_defn::print_array_index): Likewise.
3121 * language.h (LA_VALUE_PRINT): Delete.
3122 * valprint.c (value_print): Call value_print on the
3123 current_language directly.
3124
3125 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * language.h (LA_PRINT_TYPEDEF): Delete.
3128 * typeprint.c (typedef_print): Call print_typedef directly on the
3129 current_language object.
3130
3131 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3132
3133 * m2-exp.y (m2_parse): Rename to...
3134 (m2_language::parser): ...this. Update function signature.
3135 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
3136 (m2_op_print): Rename to...
3137 (m2_language::op_print_tab): ...this, and make const.
3138 (exp_descriptor_modula2): Rename to...
3139 (m2_language::exp_descriptor_modula2): ...this.
3140 (class m2_language): Move to m2-lang.h.
3141 (m2_language::language_arch_info): New function, moved out of
3142 class declaration.
3143 (m2_language::printchar): New function, body from m2_printchar.
3144 (m2_language::printstr): New function, moved out of class
3145 declaration.
3146 (m2_language::emitchar): Likewise.
3147 * m2-lang.h (m2_parse): Delete declaration.
3148 (m2_print_typedef): Delete declaration.
3149 (m2_value_print_inner): Delete declaration.
3150 (class m2_language): Class declaration moved from m2-lang.c,
3151 larger functions are left in m2-lang.c.
3152 * m2-typeprint.c (m2_print_typedef): Rename to...
3153 (m2_language::print_typedef): ...this, and update function
3154 signature.
3155 * m2-valprint.c (m2_value_print_inner): Rename to...
3156 (m2_language::value_print_inner): ...this, replace use of
3157 LA_PRINT_STRING with a direct call to printstr member function,
3158 and update recursive call.
3159
3160 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3161
3162 * language.c (default_is_string_type_p): Delete, implementation
3163 moved into auto_or_unknown_language::is_string_type_p.
3164 (unk_op_print_tab): Moved into
3165 auto_or_unknown_language::opcode_print_table.
3166 (unknown_language_arch_info): Delete, implementation moved into
3167 auto_or_unknown_language::language_arch_info.
3168 (class auto_or_unknown_language): New class, member functions
3169 copied from unknown_language class, with some updates.
3170 (class unknown_language): Most member functions moved into
3171 auto_or_unknown_language class. Inherit from
3172 auto_or_unknown_language class.
3173 (class auto_language): Inherit from auto_or_unknown_language.
3174 Delete most member functions.
3175
3176 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3177
3178 * stabsread.c (read_member_functions): Remove gdb_assert.
3179
3180 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3181
3182 * gdbtypes.c (init_complex_type): Check target type name.
3183
3184 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3185
3186 * target-debug.h (target_debug_print_struct_target_ops_p):
3187 Remove.
3188 (target_debug_print_async_callback_ftype_p): Remove.
3189 (target_debug_print_struct_trace_state_variable_p): Remove.
3190 (target_debug_print_struct_traceframe_info_p): Remove.
3191 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3192 (target_debug_print_enum_btrace_format): Remove.
3193 (target_debug_print_enum_info_proc_what): Remove.
3194 (target_debug_print_thread_info_pp): Remove.
3195
3196 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
3197
3198 * target.h (struct target_ops) <make_corefile_notes>:
3199 Change return type to unique pointer.
3200 * target.c (dummy_make_corefile_notes): Likewise.
3201 * exec.c (struct exec_target) <make_corefile_notes>:
3202 Likewise.
3203 (exec_target::make_corefile_notes): Likewise.
3204 * procfs.c (class procfs_target) <make_corefile_notes>:
3205 Likewise.
3206 (procfs_do_thread_registers): Adjust to unique pointer.
3207 (struct procfs_corefile_thread_data): Add constructor.
3208 <note_data>: Change type to unique pointer.
3209 (procfs_corefile_thread_callback): Adjust to unique pointer.
3210 (procfs_target::make_corefile_notes): Change return type to
3211 unique pointer.
3212 * target-delegates.c: Re-generate.
3213 * gcore.c (write_gcore_file_1): Adjust.
3214 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3215 New.
3216
3217 2020-10-22 Tom de Vries <tdevries@suse.de>
3218
3219 * block.c (find_block_in_blockvector): Make sure the returned block
3220 contains pc.
3221
3222 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3223
3224 PR gdb/26693
3225 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3226 parameter.
3227 (load_cu): Pass existing CU.
3228 (process_imported_unit_die): Likewise.
3229 (follow_die_offset): Likewise.
3230
3231 2020-10-22 Luis Machado <luis.machado@linaro.org>
3232
3233 * corelow.c (core_target::xfer_partial): Also check for an empty
3234 m_core_unavailable_mappings vector.
3235
3236 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3239 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3240 * f-exp.y (arglist): Allow for a series of subranges.
3241 (subrange): Add cases for subranges with strides.
3242 * f-lang.c (value_f90_subarray): Catch use of array strides and
3243 throw an error.
3244 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3245
3246 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * expprint.c (print_subexp_standard): Change enum range_type to
3249 range_flag and rename variables to match.
3250 (dump_subexp_body_standard): Likewise.
3251 * expression.h (enum range_type): Rename to...
3252 (enum range_flag): ...this.
3253 (range_types): Rename to...
3254 (range_flags): ...this.
3255 * f-lang.c (value_f90_subarray): Change enum range_type to
3256 range_flag and rename variables to match.
3257 * parse.c (operator_length_standard): Likewise.
3258 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3259 range_type to range_flag.
3260 * rust-lang.c (rust_evaluate_funcall): Likewise.
3261 (rust_range): Likewise.
3262 (rust_compute_range): Likewise.
3263 (rust_subscript): Likewise.
3264
3265 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 * expprint.c (print_subexp_standard): Update to reflect changes to
3268 enum range_type.
3269 (dump_subexp_body_standard): Likewise.
3270 * expression.h (enum range_type): Convert to a bit field enum, and
3271 make the enum unsigned.
3272 * f-exp.y (subrange): Update to reflect changes to enum
3273 range_type.
3274 * f-lang.c (value_f90_subarray): Likewise.
3275 * parse.c (operator_length_standard): Likewise.
3276 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3277 * rust-lang.c (rust_range): Likewise.
3278 (rust_compute_range): Likewise.
3279 (rust_subscript): Likewise.
3280
3281 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3282
3283 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3284 (displaced_step_in_progress): Fix comment.
3285
3286 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3287
3288 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3289 * gdbarch.c: Re-generate.
3290 * gdbarch.h: Re-generate.
3291 * gcore.c (write_gcore_file_1): Adjust.
3292 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3293 constructor.
3294 <note_data>: Change type to unique pointer.
3295 <abort_iteration>: Change type to bool.
3296 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3297 (fbsd_collect_thread_registers): Return void, adjust.
3298 (struct fbsd_corefile_thread_data): Add construtor.
3299 <note_data>: Change type to unique pointer.
3300 (fbsd_corefile_thread): Adjust.
3301 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3302 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3303 to unique pointer, adjust.
3304 (struct linux_collect_regset_section_cb_data): Add constructor.
3305 <note_data>: Change type to unique pointer.
3306 <abort_iteration>: Change type to bool.
3307 (linux_collect_thread_registers): Return void, adjust.
3308 (struct linux_corefile_thread_data): Add constructor.
3309 <note_data>: Change type to unique pointer.
3310 (linux_corefile_thread): Adjust.
3311 (linux_make_corefile_notes): Return unique pointer, adjust.
3312
3313 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3314
3315 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3316 * gdbarch.c: Re-generate.
3317 * gdbarch.h: Re-generate.
3318 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3319 bool.
3320 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3321 Likewise.
3322 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3323 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3324 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3325 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3326
3327 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3328
3329 * gdbarch.sh: Make generated predicates return bool.
3330 * gdbarch.c: Re-generate.
3331 * gdbarch.h: Re-generate.
3332
3333 2020-10-20 Tom Tromey <tom@tromey.com>
3334
3335 * varobj-iter.h (struct varobj_item): Remove typedef.
3336
3337 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * infrun.c (currently_stepping): Change int to bool
3340 (maybe_software_singlestep): Likewise.
3341 (show_stop_on_solib_events): Likewise.
3342 (stepping_past_nonsteppable_watchpoint): Likewise.
3343 (displaced_step_in_progress_any_inferior): Likewise.
3344 (displaced_step_in_progress_thread): Likewise.
3345 (keep_going_stepped_thread): Likewise.
3346 (thread_still_needs_step_over): Likewise.
3347 (start_step_over): Likewise.
3348 (do_target_resume): Likewise.
3349 (resume_1): Likewise.
3350 (clear_proceed_status): Likewise.
3351 (thread_still_needs_step_over_bp): Likewise.
3352 (proceed): Likewise.
3353 (switch_back_to_stepped_thread): Likewise.
3354 (adjust_pc_after_break): Likewise.
3355 (stepped_in_from): Likewise.
3356 (handle_stop_requested): Likewise.
3357 (handle_syscall_event): Likewise.
3358 (handle_no_resumed): Likewise.
3359 (handle_inferior_event): Likewise.
3360 (finish_step_over): Likewise.
3361 (handle_signal_stop): Likewise.
3362 (process_event_stop_test): Likewise.
3363
3364 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3365
3366 * infrun.c (get_displaced_stepping_state): Fix comment.
3367
3368 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3369
3370 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3371
3372 2020-10-19 Tom Tromey <tromey@adacore.com>
3373
3374 PR tui/26719
3375 * tui/tui-winsource.h (struct tui_source_window_base)
3376 <refresh_window>: Rename from refresh_pad.
3377 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3378 Rename from refresh_pad.
3379 (tui_source_window_base::show_source_content)
3380 (tui_source_window_base::do_scroll_horizontal): Update.
3381
3382 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3383
3384 * thread.c (_initialize_thread): Fine-tune the help text of
3385 'info threads'.
3386
3387 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3388
3389 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3390
3391 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3392
3393 * breakpoint.c (handle_jit_event): Add an argument, change how
3394 `jit_event_handler` is called.
3395
3396 2020-10-17 Tom Tromey <tom@tromey.com>
3397
3398 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3399 (scan_xcoff_symtab): Update.
3400 * psymtab.h (class psymtab_storage) <global_psymbols,
3401 static_psymbols, current_global_psymbols,
3402 current_static_psymbols>: Remove.
3403 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3404 (match_partial_symbol, lookup_partial_symbol): Update.
3405 (print_partial_symbols): Change parameters.
3406 (dump_psymtab, recursively_search_psymtabs)
3407 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3408 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3409 (concat): Remove.
3410 (end_psymtab_common): Simplify.
3411 (append_psymbol_to_list): Change parameters.
3412 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3413 (init_psymbol_list): Simplify.
3414 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3415 * psympriv.h (struct partial_symtab) <empty>: New method.
3416 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3417 Remove.
3418 <global_psymbols, static_psymbols>: New members.
3419 <add_psymbol>: New methods.
3420 (add_psymbol_to_list): Don't declare.
3421 (psymbol_placement): Move earlier.
3422 * mdebugread.c (parse_partial_symbols): Update.
3423 (handle_psymbol_enumerators): Change parameters.
3424 (mdebug_expand_psymtab): Update.
3425 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3426 (add_partial_symbol): Update.
3427 * dwarf2/index-write.c (write_psymbols): Change parameters.
3428 (write_one_signatured_type): Update.
3429 (recursively_count_psymbols): Update.
3430 (recursively_write_psymbols): Update.
3431 (class debug_names) <recursively_write_psymbols>: Update.
3432 <write_psymbols>: Change parameters.
3433 <write_one_signatured_type>: Update.
3434 * dbxread.c (read_dbx_symtab): Update.
3435 (dbx_end_psymtab): Use partial_symtab::empty.
3436 * ctfread.c (struct ctf_context) <pst>: New member.
3437 (create_partial_symtab): Set it.
3438 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3439 (scan_partial_symbols): Use the psymtab's context. Update.
3440
3441 2020-10-17 Tom Tromey <tom@tromey.com>
3442
3443 * valprint.c (generic_value_print): Remove comment.
3444 * m2-valprint.c (m2_value_print_inner): Remove comment.
3445 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3446 type.
3447
3448 2020-10-17 Tom de Vries <tdevries@suse.de>
3449
3450 PR symtab/26317
3451 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3452 symbol main.
3453
3454 2020-10-14 Tom de Vries <tdevries@suse.de>
3455
3456 PR gdb/26733
3457 * solib.c (solib_contains_address_p): Handle
3458 'solib->sections == nullptr'.
3459
3460 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3461
3462 PR gdb/26642
3463 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3464 target can't do async.
3465 * target.c (target_wait): Assert that we don't pass
3466 TARGET_WNOHANG to a target that can't async.
3467
3468 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3469
3470 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3471 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3472 * alpha-bsd-nat.c: Adjust include.
3473 * alpha-bsd-tdep.h: Adjust comment.
3474 * alpha-nbsd-tdep.c: Rename to ...
3475 * alpha-netbsd-tdep.c: ... this, adjust include.
3476 * amd64-nbsd-nat.c: Rename to ...
3477 * amd64-netbsd-nat.c: ... this, adjust include.
3478 * amd64-nbsd-tdep.c: Rename to ...
3479 * amd64-netbsd-tdep.c: ... this, adjust include.
3480 * amd64-tdep.h: Adjust include.
3481 * arm-nbsd-nat.c: Rename to ...
3482 * arm-netbsd-nat.c: ... this, adjust include.
3483 * arm-nbsd-tdep.c: Rename to ...
3484 * arm-netbsd-tdep.c: ... this, adjust include.
3485 * arm-nbsd-tdep.h: Rename to ...
3486 * arm-netbsd-tdep.h: ... this, adjust include.
3487 * configure.nat: Adjust file lists.
3488 * configure.tgt: Likewise.
3489 * hppa-nbsd-nat.c: Rename to ...
3490 * hppa-netbsd-nat.c: ... this, adjust include.
3491 * hppa-nbsd-tdep.c: Rename to ...
3492 * hppa-netbsd-tdep.c: ... this, adjust include.
3493 * i386-nbsd-nat.c: Rename to ...
3494 * i386-netbsd-nat.c: ... this, adjust include.
3495 * i386-nbsd-tdep.c: Rename to ...
3496 * i386-netbsd-tdep.c: ... this, adjust include.
3497 * m68k-bsd-nat.c: Adjust include.
3498 * mips-nbsd-nat.c: Rename to ...
3499 * mips-netbsd-nat.c: ... this, adjust include.
3500 * mips-nbsd-tdep.c: Rename to ...
3501 * mips-netbsd-tdep.c: ... this, adjust include.
3502 * mips-nbsd-tdep.h: Rename to ...
3503 * mips-netbsd-tdep.h: ... this.
3504 * nbsd-nat.c: Rename to ...
3505 * netbsd-nat.c: ... this, adjust include.
3506 * nbsd-nat.h: Rename to ...
3507 * netbsd-nat.h: ... this, adjust include.
3508 * nbsd-tdep.c: Rename to ...
3509 * netbsd-tdep.c: ... this, adjust include.
3510 * nbsd-tdep.h: Rename to ...
3511 * netbsd-tdep.h: ... this.
3512 * ppc-nbsd-nat.c: Rename to ...
3513 * ppc-netbsd-nat.c: ... this, adjust include.
3514 * ppc-nbsd-tdep.c: Rename to ...
3515 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3516 * ppc-nbsd-tdep.h: Rename to ...
3517 * ppc-netbsd-tdep.h: ... this.
3518 * sh-nbsd-nat.c: Rename to ...
3519 * sh-netbsd-nat.c: ... this, adjust include.
3520 * sh-nbsd-tdep.c: Rename to ...
3521 * sh-netbsd-tdep.c: ... this, adjust include.
3522 * sparc-nbsd-nat.c: Rename to ...
3523 * sparc-netbsd-nat.c: ... this.
3524 * sparc-nbsd-tdep.c: Rename to ...
3525 * sparc-netbsd-tdep.c: ... this, adjust include.
3526 * sparc64-nbsd-nat.c: Rename to ...
3527 * sparc64-netbsd-nat.c: ... this.
3528 * sparc64-nbsd-tdep.c: Rename to ...
3529 * sparc64-netbsd-tdep.c: ... this, adjust include.
3530 * sparc64-tdep.h: Adjust comment.
3531 * vax-bsd-nat.c: Adjust include.
3532 * vax-nbsd-tdep.c: Rename to ...
3533 * vax-netbsd-tdep.c: ... this, adjust include.
3534
3535 2020-10-12 Tom Tromey <tom@tromey.com>
3536
3537 * target.h (struct target_ops) <get_section_table>: Update.
3538 (target_get_section_table): Update.
3539 * target.c (target_get_section_table, target_section_by_addr)
3540 (memory_xfer_partial_1): Update.
3541 * target-section.h (target_section_table): Now an alias.
3542 * target-delegates.c: Rebuild.
3543 * target-debug.h (target_debug_print_target_section_table_p):
3544 Rename from target_debug_print_struct_target_section_table_p.
3545 * symfile.c (build_section_addr_info_from_section_table): Update.
3546 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3547 * solib-svr4.c (scan_dyntag): Update.
3548 * solib-dsbt.c (scan_dyntag): Update.
3549 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3550 Update.
3551 * record-full.c (record_full_core_target::xfer_partial): Update.
3552 * progspace.h (struct program_space) <target_sections>: Update.
3553 * exec.h (print_section_info): Update.
3554 * exec.c (exec_target::close, build_section_table)
3555 (add_target_sections, add_target_sections_of_objfile)
3556 (remove_target_sections, exec_on_vfork)
3557 (section_table_available_memory)
3558 (section_table_xfer_memory_partial)
3559 (exec_target::get_section_table, exec_target::xfer_partial)
3560 (print_section_info, set_section_command)
3561 (exec_set_section_address, exec_target::has_memory): Update.
3562 * corelow.c (core_target::build_file_mappings)
3563 (core_target::xfer_partial, core_target::info_proc_mappings)
3564 (core_target::info_proc_mappings): Update.
3565 * bfd-target.c (class target_bfd): Update
3566
3567 2020-10-12 Tom Tromey <tom@tromey.com>
3568
3569 * progspace.c (program_space::~program_space): Don't call
3570 clear_section_table.
3571 * exec.h (clear_section_table): Don't declare.
3572 * exec.c (exec_target::close): Update.
3573 (clear_section_table): Remove.
3574
3575 2020-10-12 Tom Tromey <tom@tromey.com>
3576
3577 * exec.c (add_target_sections_of_objfile): Simplify.
3578
3579 2020-10-12 Tom Tromey <tom@tromey.com>
3580
3581 * solib.c (solib_map_sections): Update.
3582 * record-full.c (record_full_core_open_1): Update.
3583 * exec.h (build_section_table): Return a target_section_table.
3584 * exec.c (exec_file_attach): Update.
3585 (build_section_table): Return a target_section_table.
3586 * corelow.c (core_target::core_target): Update.
3587 * bfd-target.c (target_bfd::target_bfd): Update.
3588
3589 2020-10-12 Tom Tromey <tom@tromey.com>
3590
3591 * target.c (target_section_by_addr, memory_xfer_partial_1):
3592 Update.
3593 * target-section.h (struct target_section_table): Use
3594 std::vector.
3595 * symfile.h (build_section_addr_info_from_section_table): Take a
3596 target_section_table.
3597 * symfile.c (build_section_addr_info_from_section_table): Take a
3598 target_section_table.
3599 * solist.h (struct so_list) <sections>: Change type.
3600 <sections_end>: Remove.
3601 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3602 (solib_contains_address_p): Update.
3603 * solib-svr4.c (scan_dyntag): Update.
3604 * solib-dsbt.c (scan_dyntag): Update.
3605 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3606 Update.
3607 * record-full.c (record_full_core_start, record_full_core_end):
3608 Remove.
3609 (record_full_core_sections): New global.
3610 (record_full_core_open_1, record_full_core_target::xfer_partial):
3611 Update.
3612 * exec.h (build_section_table, section_table_xfer_memory_partial)
3613 (add_target_sections): Take a target_section_table.
3614 * exec.c (exec_file_attach, clear_section_table): Update.
3615 (resize_section_table): Remove.
3616 (build_section_table, add_target_sections): Take a
3617 target_section_table.
3618 (add_target_sections_of_objfile, remove_target_sections)
3619 (exec_on_vfork): Update.
3620 (section_table_available_memory): Take a target_section_table.
3621 (section_table_read_available_memory): Update.
3622 (section_table_xfer_memory_partial): Take a target_section_table.
3623 (print_section_info, set_section_command)
3624 (exec_set_section_address, exec_target::has_memory): Update.
3625 * corelow.c (class core_target) <m_core_section_table,
3626 m_core_file_mappings>: Remove braces.
3627 <~core_target>: Remove.
3628 (core_target::core_target): Update.
3629 (core_target::~core_target): Remove.
3630 (core_target::build_file_mappings)
3631 (core_target::xfer_memory_via_mappings)
3632 (core_target::xfer_partial, core_target::info_proc_mappings):
3633 Update.
3634 * bfd-target.c (target_bfd::xfer_partial): Update.
3635 (target_bfd::target_bfd): Update.
3636 (target_bfd::~target_bfd): Remove.
3637
3638 2020-10-12 Tom Tromey <tom@tromey.com>
3639
3640 * target.h (struct target_section, struct target_section_table):
3641 Move to target-section.h.
3642 * target-section.h: New file.
3643
3644 2020-10-12 Pedro Alves <pedro@palves.net>
3645
3646 PR exp/26602
3647 * valops.c (struct struct_field_searcher): New.
3648 (update_search_result): Rename to ...
3649 (struct_field_searcher::update_result): ... this. Simplify
3650 prototype. Record all found fields.
3651 (do_search_struct_field): Rename to ...
3652 (struct_field_searcher::search): ... this. Simplify prototype.
3653 Maintain stack of visited baseclass path. Call update_result for
3654 fields too. Keep searching fields in baseclasses instead of
3655 stopping at the first found field.
3656 (search_struct_field): Use struct_field_searcher. When looking
3657 for fields, report ambiguous access attempts.
3658
3659 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3660
3661 * frame.c (inside_main_func): Check full symbols as well as
3662 minimal symbols.
3663
3664 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3665
3666 * ada-lang.c (advance_wild_match): Rewrite the function's
3667 description. Change the type of target0, t0 and t1 to char.
3668
3669 2020-10-09 Tom Tromey <tromey@adacore.com>
3670
3671 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3672
3673 2020-10-09 Tom Tromey <tromey@adacore.com>
3674
3675 * ada-lang.h (ada_encode): Return std::string.
3676 * ada-lang.c (ada_encode_1): Return std::string.
3677 (ada_encode): Likewise.
3678 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3679 Update.
3680 * ada-exp.y (block_lookup, write_var_or_type): Update.
3681
3682 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3683
3684 PR exp/26714
3685 * printcmd.c (print_formatted): Handle void results as
3686 unformatted prints.
3687
3688 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3689
3690 * arch/aarch32.c (aarch32_create_target_description): Release the
3691 target_desc_up as late as possible.
3692 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3693 * arch/amd64.c (amd64_create_target_description): Likewise.
3694 * arch/arc.c (arc_create_target_description): Return a
3695 target_desc_up, don't release it.
3696 * arch/arc.h (arc_create_target_description): Update declaration.
3697 (arc_lookup_target_description): Move target_desc_up into the
3698 cache, and return a borrowed pointer.
3699 * arch/arm.c (arm_create_target_description): Release the
3700 target_desc_up as late as possible.
3701 * arch/i386.c (i386_create_target_description): Likewise.
3702 * arch/riscv.h (riscv_create_target_description): Update
3703 declaration to match definition.
3704 * arch/tic6x.c (tic6x_create_target_description): Release the
3705 target_desc_up as late as possible.
3706
3707 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3710 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3711
3712 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3713
3714 * source.c (directory_command): Notify observers that "directories"
3715 parameter has changed.
3716
3717 2020-10-08 Tom Tromey <tom@tromey.com>
3718
3719 * cli/cli-cmds.c (print_disassembly): Style function name and
3720 addresses. Add _() wrappers.
3721
3722 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3723
3724 * NEWS: Mention ARC support in GDBserver.
3725
3726 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * arch/aarch32.c (aarch32_create_target_description): Release
3729 unique_ptr returned from allocate_target_description.
3730 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3731 * arch/amd64.c (amd64_create_target_description): Likewise.
3732 * arch/arc.c (arc_create_target_description): Likewise.
3733 * arch/arm.c (arm_create_target_description): Likewise.
3734 * arch/i386.c (i386_create_target_description): Likewise.
3735 * arch/riscv.c (riscv_create_target_description): Update return
3736 type. Handle allocate_target_description returning a unique_ptr.
3737 (riscv_lookup_target_description): Update to handle unique_ptr.
3738 * arch/tic6x.c (tic6x_create_target_description): Release
3739 unique_ptr returned from allocate_target_description.
3740 * features/microblaze-with-stack-protect.c: Regenerate.
3741 * features/microblaze.c: Regenerate.
3742 * features/mips-dsp-linux.c: Regenerate.
3743 * features/mips-linux.c: Regenerate.
3744 * features/mips64-dsp-linux.c: Regenerate.
3745 * features/mips64-linux.c: Regenerate.
3746 * features/nds32.c: Regenerate.
3747 * features/nios2.c: Regenerate.
3748 * features/or1k.c: Regenerate.
3749 * features/rs6000/powerpc-32.c: Regenerate.
3750 * features/rs6000/powerpc-32l.c: Regenerate.
3751 * features/rs6000/powerpc-403.c: Regenerate.
3752 * features/rs6000/powerpc-403gc.c: Regenerate.
3753 * features/rs6000/powerpc-405.c: Regenerate.
3754 * features/rs6000/powerpc-505.c: Regenerate.
3755 * features/rs6000/powerpc-601.c: Regenerate.
3756 * features/rs6000/powerpc-602.c: Regenerate.
3757 * features/rs6000/powerpc-603.c: Regenerate.
3758 * features/rs6000/powerpc-604.c: Regenerate.
3759 * features/rs6000/powerpc-64.c: Regenerate.
3760 * features/rs6000/powerpc-64l.c: Regenerate.
3761 * features/rs6000/powerpc-7400.c: Regenerate.
3762 * features/rs6000/powerpc-750.c: Regenerate.
3763 * features/rs6000/powerpc-860.c: Regenerate.
3764 * features/rs6000/powerpc-altivec32.c: Regenerate.
3765 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3766 * features/rs6000/powerpc-altivec64.c: Regenerate.
3767 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3768 * features/rs6000/powerpc-e500.c: Regenerate.
3769 * features/rs6000/powerpc-e500l.c: Regenerate.
3770 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3771 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3772 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3773 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3774 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3775 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3776 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3777 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3778 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3779 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3780 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3781 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3782 * features/rs6000/powerpc-vsx32.c: Regenerate.
3783 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3784 * features/rs6000/powerpc-vsx64.c: Regenerate.
3785 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3786 * features/rs6000/rs6000.c: Regenerate.
3787 * features/rx.c: Regenerate.
3788 * features/s390-gs-linux64.c: Regenerate.
3789 * features/s390-linux32.c: Regenerate.
3790 * features/s390-linux32v1.c: Regenerate.
3791 * features/s390-linux32v2.c: Regenerate.
3792 * features/s390-linux64.c: Regenerate.
3793 * features/s390-linux64v1.c: Regenerate.
3794 * features/s390-linux64v2.c: Regenerate.
3795 * features/s390-te-linux64.c: Regenerate.
3796 * features/s390-tevx-linux64.c: Regenerate.
3797 * features/s390-vx-linux64.c: Regenerate.
3798 * features/s390x-gs-linux64.c: Regenerate.
3799 * features/s390x-linux64.c: Regenerate.
3800 * features/s390x-linux64v1.c: Regenerate.
3801 * features/s390x-linux64v2.c: Regenerate.
3802 * features/s390x-te-linux64.c: Regenerate.
3803 * features/s390x-tevx-linux64.c: Regenerate.
3804 * features/s390x-vx-linux64.c: Regenerate.
3805 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3806 from allocate_target_description.
3807 * target-descriptions.c (allocate_target_description): Update
3808 return type.
3809 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3810 allocate_target_description.
3811
3812 2020-10-07 Tom Tromey <tromey@adacore.com>
3813
3814 * unittests/search-memory-selftests.c: New file.
3815 * Makefile.in (SELFTESTS_SRCS): Add
3816 unittests/search-memory-selftests.c.
3817
3818 2020-10-07 Tom Tromey <tromey@adacore.com>
3819
3820 PR gdb/16930:
3821 * findcmd.c (_initialize_mem_search): Mention that the range is
3822 inclusive.
3823
3824 2020-10-07 Tom Tromey <tromey@adacore.com>
3825
3826 * target.h (simple_search_memory): Don't declare.
3827 * target.c (simple_search_memory): Move to gdbsupport.
3828 (default_search_memory): Update.
3829 * remote.c (remote_target::search_memory): Update.
3830
3831 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * Makefile.in (COMPILE): Add CXXFLAGS.
3834 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3835 (check-headers): Add CXXFLAGS.
3836
3837 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3838
3839 * arc-linux-tdep.h: New file.
3840 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3841 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3842 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3843 arc_linux_gregset, arc_linux_v2_regset,
3844 arc_linux_iterate_over_regset_sections,
3845 arc_linux_core_read_description): Implement.
3846 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3847 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3848 (arc_gdbarch_features_create): Add.
3849 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3850
3851 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3852
3853 * arch/arc.h: Rename "arc_gdbarch_features" to
3854 "arc_arch_features".
3855 * arc-tdep.h: Likewise.
3856 * arc-tdep.c: Likewise.
3857
3858 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3859
3860 * infcmd.c (attach_command): Remove the redundant call to
3861 `clear_proceed_status`.
3862
3863 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3864
3865 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3866
3867 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3868
3869 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3870 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3871 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3872
3873 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3874
3875 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3876 (_initialize_break_catch_sig): Don't allocate array.
3877
3878 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3879
3880 * symtab.c (find_pc_line): Return unmapped addresses when the
3881 requested address is also unmapped.
3882
3883 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3884
3885 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3886 tui/tui-out.h.
3887
3888 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3889
3890 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3891 type::is_vector instead of TYPE_VECTOR.
3892
3893 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3894
3895 * auto-load.c (auto_load_objfile_script_1): Don't use
3896 debugfile_holder as temporary variable when stripping drive
3897 letter.
3898
3899 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3900
3901 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3902 Add TYPE_CODE_COMPLEX.
3903 (amd64_windows_return_value): Fix types returned via XMM0.
3904
3905 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3906
3907 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3908 AArch64/ARM maintainers.
3909
3910 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3911
3912 * NEWS: Mention set/show debug event-loop.
3913
3914 2020-10-02 Tom Tromey <tromey@adacore.com>
3915
3916 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3917 REG_EXTENDED.
3918
3919 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3922 * procfs.c (procfs_inferior_created): Remove.
3923 (_initialize_procfs): Don't register procfs_inferior_created.
3924
3925 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * async-event.c (invoke_async_signal_handlers): Add debug
3928 print.
3929 (check_async_event_handlers): Likewise.
3930 * event-top.c (show_debug_event_loop): New function.
3931 (_initialize_event_top): Register "set debug event-loop"
3932 setting.
3933
3934 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3935
3936 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3937 * debug.h: Remove.
3938 * infrun.c: Include gdbsupport/common-debug.h.
3939 * linux-nat.c: Likewise.
3940
3941 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3942
3943 * async-event.h (create_async_signal_handler): Add name
3944 parameter.
3945 (create_async_event_handler): Likewise.
3946 * async-event.c (struct async_signal_handler) <name>: New field.
3947 (struct async_event_handler) <name>: New field.
3948 (create_async_signal_handler): Assign name.
3949 (create_async_event_handler): Assign name.
3950 * event-top.c (async_init_signals): Pass name when creating
3951 handler.
3952 * infrun.c (_initialize_infrun): Likewise.
3953 * record-btrace.c (record_btrace_push_target): Likewise.
3954 * record-full.c (record_full_open): Likewise.
3955 * remote-notif.c (remote_notif_state_allocate): Likewise.
3956 * remote.c (remote_target::open_1): Likewise.
3957 * tui/tui-win.c (tui_initialize_win): Likewise.
3958
3959 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3960
3961 * async-event.c (initialize_async_signal_handlers): Pass name to
3962 add_file_handler
3963 * event-top.c (ui_register_input_event_handler): Likewise.
3964 * linux-nat.c (linux_nat_target::async): Likewise.
3965 * run-on-main-thread.c (_initialize_run_on_main_thread):
3966 Likewise
3967 * ser-base.c (reschedule): Likewise.
3968 (ser_base_async): Likewise.
3969 * tui/tui-io.c: Likewise.
3970 * top.h (struct ui) <num>: New field.
3971 * top.c (highest_ui_num): New variable.
3972 (ui::ui): Initialize num.
3973
3974 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3975
3976 * observable.h <inferior_created>: Remove parameters. Update all
3977 listeners.
3978 * inferior.h (post_create_inferior): Remove target parameter.
3979 Update all callers.
3980
3981 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3982
3983 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3984 and DW_MACRO_undef_strx.
3985 (dwarf_decode_macros): Likewise
3986 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3987 which is the value of DW_AT_str_offsets_base.
3988 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3989 str_offsets_base.
3990
3991 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3992
3993 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3994
3995 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3996
3997 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3998 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3999
4000 2020-10-01 Kamil Rytarowski <n54@gmx.com>
4001
4002 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
4003
4004 2020-09-30 Tom de Vries <tdevries@suse.de>
4005
4006 PR symtab/26683
4007 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
4008
4009 2020-09-30 Tom Tromey <tromey@adacore.com>
4010
4011 * dwarf2/read.c (handle_variant): Use constant_value.
4012
4013 2020-09-29 Tom Tromey <tom@tromey.com>
4014
4015 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
4016 (read_file_scope, dwarf2_get_pc_bounds)
4017 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
4018 (read_structure_type, handle_struct_member_die)
4019 (read_enumeration_type, read_array_type, read_set_type)
4020 (read_tag_pointer_type, read_tag_reference_type)
4021 (read_subroutine_type, read_base_type, read_subrange_type)
4022 (read_full_die_1, partial_die_info::read)
4023 (partial_die_info::read, by, new_symbol)
4024 (dwarf2_const_value_data, dwarf2_const_value_attr)
4025 (dump_die_shallow, dwarf2_fetch_constant_bytes)
4026 (prepare_one_comp_unit): Update.
4027 * dwarf2/attribute.h (DW_UNSND): Remove.
4028
4029 2020-09-29 Tom Tromey <tom@tromey.com>
4030
4031 * dwarf2/read.c (read_func_scope, prototyped_function_p)
4032 (read_subroutine_type, partial_die_info::read)
4033 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
4034 (dwarf2_add_member_fn): Update.
4035 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
4036 * dwarf2/attribute.c (attribute::as_boolean): New method.
4037
4038 2020-09-29 Tom Tromey <tom@tromey.com>
4039
4040 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
4041 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
4042 method.
4043 * dwarf2/attribute.c (attribute::as_virtuality): New method.
4044
4045 2020-09-29 Tom Tromey <tom@tromey.com>
4046
4047 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
4048 the attribute's form.
4049
4050 2020-09-29 Tom Tromey <tom@tromey.com>
4051
4052 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
4053 (dwarf2_add_member_fn): Update.
4054 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
4055 * dwarf2/attribute.c (attribute::defaulted): New method, from
4056 is_valid_DW_AT_defaulted.
4057
4058 2020-09-29 Tom Tromey <tom@tromey.com>
4059
4060 * dwarf2/read.c (dw2_get_file_names_reader)
4061 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
4062 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
4063 (dwarf2_symbol_mark_computed): Use as_unsigned.
4064 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
4065 method.
4066 <form_is_section_offset>: Update comment.
4067
4068 2020-09-29 Tom Tromey <tom@tromey.com>
4069
4070 * dwarf2/read.c (dwarf2_access_attribute): Rename from
4071 dwarf2_default_access_attribute. Look up attribute.
4072 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
4073 Update.
4074
4075 2020-09-29 Tom Tromey <tom@tromey.com>
4076
4077 * dwarf2/read.c (skip_one_die): Update.
4078 (read_full_die_1): Change how reprocessing is done.
4079 (partial_die_info::read): Update.
4080 (read_attribute_value): Remove need_reprocess parameter.
4081 (read_attribute): Likewise.
4082 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
4083 New method.
4084
4085 2020-09-29 Tom Tromey <tom@tromey.com>
4086
4087 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
4088 (dwarf2_const_value_attr, dump_die_shallow)
4089 (dwarf2_fetch_constant_bytes): Update.
4090 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
4091 comment.
4092 <set_address>: New method.
4093 (DW_ADDR): Remove.
4094 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
4095 (attribute::as_string, attribute::as_address): Add assert.
4096
4097 2020-09-29 Tom Tromey <tom@tromey.com>
4098
4099 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
4100 (read_attribute_reprocess, read_attribute_value): Update.
4101 (read_attribute): Clear requires_reprocessing.
4102 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
4103 form_requires_reprocessing>: New methods.
4104 <string_init>: Clear requires_reprocessing.
4105 <set_unsigned_reprocess>: New method.
4106 <name>: Shrink by one bit.
4107 <requires_reprocessing>: New member.
4108 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
4109 method.
4110
4111 2020-09-29 Tom Tromey <tom@tromey.com>
4112
4113 * dwarf2/read.c (read_attribute_value): Update.
4114 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
4115 set_unsigned>: New methods.
4116 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
4117
4118 2020-09-29 Tom Tromey <tom@tromey.com>
4119
4120 * dwarf2/read.c (get_alignment, read_array_order)
4121 (read_attribute_value, dwarf2_const_value_attr)
4122 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
4123 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
4124 New methods.
4125 (DW_SND): Remove.
4126
4127 2020-09-29 Tom Tromey <tom@tromey.com>
4128
4129 * dwarf2/read.c (read_attribute_value, lookup_die_type)
4130 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
4131 Update.
4132 * dwarf2/attribute.h (struct attribute) <as_signature,
4133 set_signature>: New methods.
4134 (DW_SIGNATURE): Remove.
4135
4136 2020-09-29 Tom Tromey <tom@tromey.com>
4137
4138 * dwarf2/read.c (read_call_site_scope)
4139 (handle_data_member_location, dwarf2_add_member_fn)
4140 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4141 (partial_die_info::read, read_attribute_value)
4142 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
4143 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
4144 (dwarf2_symbol_mark_computed): Update.
4145 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
4146 methods.
4147 (DW_BLOCK): Remove.
4148 * dwarf2/attribute.c (attribute::form_is_block): Add
4149 DW_FORM_data16.
4150
4151 2020-09-29 Tom Tromey <tom@tromey.com>
4152
4153 * dwarf2/read.c (read_cutu_die_from_dwo)
4154 (read_attribute_reprocess, read_attribute_value, read_attribute)
4155 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
4156 (dwarf2_fetch_constant_bytes): Update.
4157 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
4158 <set_string_noncanonical, set_string_canonical>: New methods.
4159 <string_is_canonical>: Update comment.
4160 <canonical_string_p>: Add assert.
4161 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
4162 * dwarf2/attribute.c (attribute::form_is_string): New method.
4163 (attribute::string): Use it.
4164
4165 2020-09-29 Tom Tromey <tom@tromey.com>
4166
4167 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
4168 (dump_die_shallow): Use canonical_string_p.
4169 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4170 method.
4171
4172 2020-09-29 Tom Tromey <tom@tromey.com>
4173
4174 * dwarf2/read.c (partial_die_info::read)
4175 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4176 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4177 attribute::as_string.
4178
4179 2020-09-29 Tom Tromey <tom@tromey.com>
4180
4181 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4182 DW_ADDR.
4183 (attribute::string): Don't use DW_STRING.
4184 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4185 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4186
4187 2020-09-29 Tom Tromey <tom@tromey.com>
4188
4189 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4190 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4191 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4192 * dwarf2/attribute.h (struct attribute): Rename methods.
4193 * dwarf2/attribute.c (attribute::as_address): Rename from
4194 value_as_address.
4195 (attribute::as_string): Rename from value_as_string.
4196
4197 2020-09-29 Tom Tromey <tom@tromey.com>
4198
4199 * dwarf2/read.c (partial_die_info::read) <case
4200 DW_AT_linkage_name>: Use value_as_string.
4201 (dwarf2_string_attr): Use value_as_string.
4202 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4203 method.
4204 * dwarf2/attribute.c (attribute::value_as_string): New method.
4205
4206 2020-09-29 Pedro Alves <pedro@palves.net>
4207
4208 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4209 defined before using '#pragma GCC diagnostic' instead of checking
4210 __clang__.
4211
4212 2020-09-28 Tom Tromey <tom@tromey.com>
4213
4214 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4215 (handle_signal_stop): Update.
4216 * procfs.c (procfs_target::insert_watchpoint): Update.
4217 * target.h (target_have_steppable_watchpoint): Now a function.
4218
4219 2020-09-28 Tom Tromey <tom@tromey.com>
4220
4221 * infrun.c (set_schedlock_func): Update.
4222 * target.h (target_can_lock_scheduler): Now a function.
4223
4224 2020-09-28 Tom Tromey <tom@tromey.com>
4225
4226 * inferior.h (class inferior) <has_execution>: Update.
4227 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4228 * valops.c (find_function_in_inferior)
4229 (value_allocate_space_in_inferior): Update.
4230 * top.c (kill_or_detach): Update.
4231 * target.c (target_preopen, set_target_permissions): Update.
4232 (target_has_execution_current): Remove.
4233 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4234 Update.
4235 * solib.c (update_solib_list, reload_shared_libraries): Update.
4236 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4237 * solib-dsbt.c (enable_break): Update.
4238 * score-tdep.c (score7_fetch_inst): Update.
4239 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4240 Update.
4241 * remote.c (remote_target::start_remote)
4242 (remote_target::remote_check_symbols, remote_target::open_1)
4243 (remote_target::remote_detach_1, remote_target::verify_memory)
4244 (remote_target::xfer_partial, remote_target::read_description)
4245 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4246 * record-full.c (record_full_open_1): Update.
4247 * record-btrace.c (record_btrace_target_open): Update.
4248 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4249 (value_nsstring): Update.
4250 * linux-thread-db.c (add_thread_db_info)
4251 (thread_db_find_new_threads_silently, check_thread_db_callback)
4252 (try_thread_db_load_1, record_thread): Update.
4253 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4254 Update.
4255 * linux-fork.c (checkpoint_command): Update.
4256 * infrun.c (set_non_stop, set_observer_mode)
4257 (check_multi_target_resumption, for_each_just_stopped_thread)
4258 (maybe_remove_breakpoints, normal_stop)
4259 (class infcall_suspend_state): Update.
4260 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4261 (info_program_command, attach_command): Update.
4262 * infcall.c (call_function_by_hand_dummy): Update.
4263 * inf-loop.c (inferior_event_handler): Update.
4264 * gcore.c (gcore_command, derive_heap_segment): Update.
4265 * exec.c (exec_file_command): Update.
4266 * eval.c (evaluate_subexp): Update.
4267 * compile/compile.c (compile_to_object): Update.
4268 * cli/cli-dump.c (restore_command): Update.
4269 * breakpoint.c (update_watchpoint)
4270 (update_inserted_breakpoint_locations)
4271 (insert_breakpoint_locations, get_bpstat_thread): Update.
4272 * target.h (target_has_execution): Remove macro.
4273 (target_has_execution_current): Don't declare.
4274 (target_has_execution): Rename from target_has_execution_1. Add
4275 argument default.
4276
4277 2020-09-28 Tom Tromey <tom@tromey.com>
4278
4279 * mi/mi-main.c (exec_reverse_continue)
4280 (mi_cmd_list_target_features): Update.
4281 * infrun.c (set_exec_direction_func): Update.
4282 * target.c (default_execution_direction): Update.
4283 * reverse.c (exec_reverse_once): Update.
4284 * target.h (target_can_execute_reverse): Now a function.
4285
4286 2020-09-28 Tom Tromey <tom@tromey.com>
4287
4288 * tui/tui-regs.c (tui_get_register)
4289 (tui_data_window::show_registers): Update.
4290 * thread.c (scoped_restore_current_thread::restore)
4291 (scoped_restore_current_thread::scoped_restore_current_thread):
4292 Update.
4293 * regcache-dump.c (regcache_print): Update.
4294 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4295 Update.
4296 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4297 * mep-tdep.c (current_me_module, current_options): Update.
4298 * linux-thread-db.c (thread_db_load): Update.
4299 * infcmd.c (registers_info, info_vector_command)
4300 (info_float_command): Update.
4301 * ia64-tdep.c (ia64_frame_prev_register)
4302 (ia64_sigtramp_frame_prev_register): Update.
4303 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4304 * gcore.c (derive_stack_segment): Update.
4305 * frame.c (get_current_frame, has_stack_frames): Update.
4306 * findvar.c (language_defn::read_var_value): Update.
4307 * arm-tdep.c (arm_pc_is_thumb): Update.
4308 * target.c (target_has_registers): Rename from
4309 target_has_registers_1.
4310 * target.h (target_has_registers): Remove macro.
4311 (target_has_registers): Rename from target_has_registers_1.
4312
4313 2020-09-28 Tom Tromey <tom@tromey.com>
4314
4315 * windows-tdep.c (tlb_make_value): Update.
4316 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4317 * thread.c (scoped_restore_current_thread::restore)
4318 (scoped_restore_current_thread::scoped_restore_current_thread)
4319 (thread_command): Update.
4320 * stack.c (backtrace_command_1, frame_apply_level_command)
4321 (frame_apply_all_command, frame_apply_command): Update.
4322 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4323 Update.
4324 * gcore.c (derive_stack_segment): Update.
4325 * frame.c (get_current_frame, has_stack_frames): Update.
4326 * auxv.c (info_auxv_command): Update.
4327 * ada-tasks.c (ada_build_task_list): Update.
4328 * target.c (target_has_stack): Rename from target_has_stack_1.
4329 * target.h (target_has_stack): Remove macro.
4330 (target_has_stack): Rename from target_has_stack_1.
4331
4332 2020-09-28 Tom Tromey <tom@tromey.com>
4333
4334 * target.c (target_has_memory): Rename from target_has_memory_1.
4335 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4336 * thread.c (scoped_restore_current_thread::restore)
4337 (scoped_restore_current_thread::scoped_restore_current_thread):
4338 Update.
4339 * frame.c (get_current_frame, has_stack_frames): Update.
4340 * target.h (target_has_memory): Remove macro.
4341 (target_has_memory): Rename from target_has_memory_1.
4342
4343 2020-09-28 Tom Tromey <tom@tromey.com>
4344
4345 * target.c (target_has_all_memory_1): Remove.
4346 * target.h (target_has_all_memory): Remove define.
4347 (target_has_all_memory_1): Don't declare.
4348
4349 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4350
4351 * ser-base.c: Adjust comments formatting.
4352
4353 2020-09-27 Tom Tromey <tom@tromey.com>
4354
4355 PR tui/25342:
4356 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4357
4358 2020-09-27 Tom Tromey <tom@tromey.com>
4359
4360 PR tui/25342:
4361 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4362
4363 2020-09-27 Tom Tromey <tom@tromey.com>
4364
4365 * unittests/tui-selftests.c: Update.
4366 * tui/tui-winsource.h (struct tui_source_window_base)
4367 <extra_margin, show_line_number, refresh_pad>: New methods.
4368 <m_max_length, m_pad>: New members.
4369 (tui_copy_source_line): Update.
4370 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4371 first_col, line_width, ndigits parameters. Add length.
4372 (tui_source_window_base::show_source_line): Write to pad. Line
4373 number now 0-based.
4374 (tui_source_window_base::refresh_pad): New method.
4375 (tui_source_window_base::show_source_content): Write to pad. Call
4376 refresh_pad.
4377 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4378 not refill.
4379 (tui_source_window_base::update_exec_info): Call
4380 show_line_number.
4381 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4382 method.
4383 <m_digits>: New member.
4384 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4385 and m_max_length.
4386 (tui_source_window::show_line_number): New method.
4387 * tui/tui-io.h (tui_puts): Fix comment.
4388 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4389 m_max_length.
4390
4391 2020-09-27 Tom Tromey <tom@tromey.com>
4392
4393 * tui/tui-winsource.c
4394 (tui_source_window_base::set_is_exec_point_at): Don't call
4395 show_source_line.
4396
4397 2020-09-27 Tom Tromey <tom@tromey.com>
4398
4399 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4400 method.
4401 <erase>: Update.
4402 <cursor_x, cursor_y>: Remove.
4403 <m_inner_window>: New member.
4404 (tui_py_window::rerender): Create inner window.
4405 (tui_py_window::output): Write to inner window.
4406
4407 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4408
4409 PR python/26586
4410 * cli/cli-script.c (execute_control_commands): don't set
4411 instream to nullptr here as this breaks the from_tty argument
4412 to gdb.execute in Python.
4413 (execute_user_command): set instream to nullptr here instead.
4414
4415 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * infrun.h (infrun_debug_printf): Fix formatting.
4418 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4419
4420 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4421
4422 * compile/compile-object-load.h (struct munmap_list): Add
4423 explicitly-defined move constructor.
4424
4425 2020-09-24 Tom Tromey <tromey@adacore.com>
4426
4427 PR tui/26638:
4428 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4429 method.
4430 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4431 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4432 (tui_prev_win): Rewrite.
4433
4434 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4435
4436 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4437 in WOW64 processes as SIGINT.
4438 * nat/windows-nat.h: Make wow64_process a shared variable.
4439 * windows-nat.c: Remove static wow64_process variable.
4440
4441 2020-09-23 Tom Tromey <tom@tromey.com>
4442
4443 PR symtab/25470:
4444 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4445 offset and bit size.
4446 * printcmd.c (print_scalar_formatted): Handle zero-length
4447 integer.
4448 (print_scalar_formatted): Use bit_size_differs_p.
4449 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4450 constant.
4451 (union type_specific): <int_stuff>: New member.
4452 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4453 methods.
4454 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4455 TYPE_SPECIFIC_FIELD.
4456 (recursive_dump_type, copy_type_recursive): Update.
4457 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4458 DW_AT_data_bit_offset.
4459
4460 2020-09-23 Tom Tromey <tom@tromey.com>
4461
4462 * utils.h (class gdb_argv): Add move operators.
4463 <append>: New methods.
4464 * compile/compile.c (build_argc_argv): Remove.
4465 (compile_args_argc): Remove.
4466 (compile_args_argv): Change type.
4467 (set_compile_args): Simplify.
4468 (append_args): Remove.
4469 (filter_args): Remove argcp parameter.
4470 (get_args): Return gdb_argv. Simplify.
4471 (compile_to_object): Update.
4472
4473 2020-09-23 Tom Tromey <tom@tromey.com>
4474
4475 * compile/compile-object-run.c (do_module_cleanup)
4476 <~do_module_cleanup> :Remove.
4477 (do_module_cleanup): Update.
4478 * compile/compile-object-load.h (struct munmap_list): Add move
4479 assignment operator.
4480 <source_file>: Now a std::string.
4481 <munmap_list>: Rename. No longer a pointer.
4482 * compile/compile-object-load.c (struct setup_sections_data): Add
4483 constructor.
4484 <setup_one_section>: Declare.
4485 <munmap_list>: Move earlier.
4486 <m_bfd>: New member.
4487 <m_last_size, m_last_section_first, m_last_prot,
4488 m_last_max_alignment>: Rename, add initializers where needed.
4489 (setup_sections_data::setup_one_section): Rename from
4490 setup_sections. Update.
4491 (compile_object_load): Update. Don't use bfd_map_over_sections.
4492
4493 2020-09-23 Tom Tromey <tom@tromey.com>
4494
4495 * compile/compile-object-run.c (struct do_module_cleanup): Add
4496 parameters to constructor. Update destructor.
4497 <source_file, scope, scope_data, out_value_type, out_value_addr,
4498 munmap_list_head, objfile_name_string>: Remove.
4499 <module>: New member.
4500 (do_module_cleanup): Update.
4501 (compile_object_run): Update.
4502
4503 2020-09-23 Tom Tromey <tom@tromey.com>
4504
4505 * compile/compile.c (eval_compile_command): Update.
4506 * compile/compile-object-run.h (compile_object_run): Take a
4507 compile_module_up.
4508 * compile/compile-object-run.c (compile_object_run): Take a
4509 compile_module_up.
4510 * compile/compile-object-load.h (struct compile_module): Add
4511 constructor, destructor.
4512 (compile_module_up): New typedef.
4513 (compile_object_load): Return compile_object_up.
4514 * compile/compile-object-load.c (compile_object_load): Return
4515 compile_module_up.
4516
4517 2020-09-23 Tom Tromey <tom@tromey.com>
4518
4519 * compile/compile-object-run.c (struct do_module_cleanup): Add
4520 constructor, destructor.
4521 <objfile_name_string>: Don't use struct hack.
4522 (do_module_cleanup): Use delete.
4523 (compile_object_run): Use new.
4524
4525 2020-09-23 Tom Tromey <tom@tromey.com>
4526
4527 * compile/compile-cplus-types.c
4528 (compile_cplus_convert_struct_or_union): Use std::vector.
4529 (compile_cplus_convert_func): Likewise.
4530 * compile/compile-c-types.c (convert_func): Use std::vector.
4531
4532 2020-09-21 Tom Tromey <tromey@adacore.com>
4533
4534 * sparc-tdep.c (sparc32_skip_prologue): Use
4535 skip_prologue_using_sal.
4536
4537 2020-09-19 Tom Tromey <tom@tromey.com>
4538
4539 * symfile.c (add_section_size_callback): Remove.
4540 (load_one_section): Rename from load_section_callback. Change
4541 parameters.
4542 (generic_load): Use foreach.
4543
4544 2020-09-19 Tom Tromey <tom@tromey.com>
4545
4546 * exec.c (add_to_section_table): Remove.
4547 (build_section_table): Use foreach.
4548
4549 2020-09-19 Tom Tromey <tom@tromey.com>
4550
4551 * elfread.c (elf_locate_sections): Change parameters.
4552 (elf_symfile_read): Use foreach.
4553
4554 2020-09-19 Tom Tromey <tom@tromey.com>
4555
4556 * cli/cli-dump.c (struct callback_data): Remove.
4557 (restore_one_section): Rename from restore_section_callback.
4558 Change parameters.
4559 (restore_binary_file): Change parameters.
4560 (restore_command): Use foreach.
4561
4562 2020-09-19 Tom Tromey <tom@tromey.com>
4563
4564 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4565 (gcore_copy_callback): Likewise.
4566 (gcore_memory_sections): Use foreach.
4567
4568 2020-09-19 Tom Tromey <tom@tromey.com>
4569
4570 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4571 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4572 parameters.
4573 (generic_elf_osabi_sniffer): Use foreach.
4574 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4575 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4576
4577 2020-09-19 Tom Tromey <tom@tromey.com>
4578
4579 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4580 (dwarf2_get_dwz_file): Use foreach.
4581 (dwarf2_locate_dwo_sections): Change parameters.
4582 (open_and_init_dwo_file): Use foreach.
4583 (dwarf2_locate_common_dwp_sections): Change parameters.
4584 (open_and_init_dwp_file): Use foreach.
4585
4586 2020-09-19 Tom Tromey <tom@tromey.com>
4587
4588 * symfile.h: (find_lowest_section): Don't declare.
4589 * symfile.c (find_lowest_section): Now static. Change
4590 parameters.
4591 (struct place_section_arg): Remove.
4592 (place_section): Change parameters.
4593 (addr_info_make_relative): Use foreach.
4594 (symfile_dummy_outputs): Remove.
4595 (default_symfile_relocate): Use foreach.
4596
4597 2020-09-19 Tom Tromey <tom@tromey.com>
4598
4599 * objfiles.c (add_to_objfile_sections): Rename from
4600 add_to_objfile_sections_full.
4601 (add_to_objfile_sections): Remove.
4602 (build_objfile_section_table): Use foreach.
4603
4604 2020-09-19 Tom Tromey <tom@tromey.com>
4605
4606 * stap-probe.c (get_stap_base_address_1): Remove.
4607 (get_stap_base_address): Use foreach.
4608
4609 2020-09-19 Tom Tromey <tom@tromey.com>
4610
4611 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4612 parameters.
4613 (gdb_bfd_close_or_warn): Use foreach.
4614
4615 2020-09-19 Tom Tromey <tom@tromey.com>
4616
4617 * corelow.c (add_to_thread_list): Change parameters.
4618 (core_target_open): Use foreach.
4619
4620 2020-09-19 Tom Tromey <tom@tromey.com>
4621
4622 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4623 existing function.
4624
4625 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4626
4627 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4628 for arrays.
4629
4630 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4631
4632 * eval.c: Remove 'f-lang.h' include.
4633 (value_f90_subarray): Moved to f-lang.c.
4634 (eval_call): Renamed to...
4635 (evaluate_subexp_do_call): ...this, is no longer static, header
4636 comment moved into header file.
4637 (evaluate_funcall): Update call to eval_call.
4638 (skip_undetermined_arglist): Moved to f-lang.c.
4639 (fortran_value_subarray): Likewise.
4640 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4641 moved to evaluate_subexp_f.
4642 (calc_f77_array_dims): Moved to f-lang.c
4643 * expprint.c (print_subexp_funcall): New function.
4644 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4645 moved to print_subexp_f, OP_FUNCALL uses new function.
4646 (dump_subexp_body_funcall): New function.
4647 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4648 moved to dump_subexp_f, OP_FUNCALL uses new function.
4649 * expression.h (evaluate_subexp_do_call): Declare.
4650 * f-lang.c (value_f90_subarray): Moved from eval.c.
4651 (skip_undetermined_arglist): Likewise.
4652 (calc_f77_array_dims): Likewise.
4653 (fortran_value_subarray): Likewise.
4654 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4655 (operator_length_f): Likewise.
4656 (print_subexp_f): Likewise.
4657 (dump_subexp_body_f): Likewise.
4658 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4659 declaration of this operation to here.
4660 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4661 support moved to operator_length_f.
4662 * parser-defs.h (dump_subexp_body_funcall): Declare.
4663 (print_subexp_funcall): Declare.
4664 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4665 fortran-operator.def.
4666
4667 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4668
4669 * eval.c (fortran_value_subarray): New function, content is taken
4670 from...
4671 (evaluate_subexp_standard): ...here, in two places. Now arrays
4672 and strings both call the new function.
4673 (calc_f77_array_dims): Add header comment, handle strings.
4674
4675 2020-09-18 Victor Collod <vcollod@nvidia.com>
4676
4677 PR gdb/26635
4678 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4679 (i386_analyze_prologue): Call i386_skip_endbr.
4680
4681 2020-09-18 Tom Tromey <tromey@adacore.com>
4682
4683 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4684 (windows_nat_target::wait): Update.
4685 * target/wait.h (enum target_wait_flag): New. Use
4686 DEF_ENUM_FLAGS_TYPE.
4687 * target/target.h (target_wait): Change type of options.
4688 * target.h (target_options_to_string, default_target_wait):
4689 Update.
4690 (struct target_ops) <wait>: Change type of options.
4691 * target.c (target_wait, default_target_wait, do_option): Change
4692 type of "options".
4693 (target_options_to_string): Likewise.
4694 * target-delegates.c: Rebuild.
4695 * target-debug.h (target_debug_print_target_wait_flags): Rename
4696 from target_debug_print_options.
4697 * sol-thread.c (class sol_thread_target) <wait>: Update.
4698 (sol_thread_target::wait): Update.
4699 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4700 (rs6000_nat_target::wait): Update.
4701 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4702 Update.
4703 (remote_target::wait_ns, remote_target::wait_as): Change type of
4704 "options".
4705 (remote_target::wait): Update.
4706 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4707 (gdbsim_target::wait): Update.
4708 * record-full.c (class record_full_base_target) <wait>: Update.
4709 (record_full_wait_1): Change type of "options".
4710 (record_full_base_target::wait): Update.
4711 * record-btrace.c (class record_btrace_target) <wait>: Update.
4712 (record_btrace_target::wait): Update.
4713 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4714 Update.
4715 (ravenscar_thread_target::wait): Update.
4716 * procfs.c (class procfs_target) <wait>: Update.
4717 (procfs_target::wait): Update.
4718 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4719 * obsd-nat.c (obsd_nat_target::wait): Update.
4720 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4721 (nto_procfs_target::wait): Update.
4722 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4723 * nbsd-nat.c (nbsd_wait): Change type of "options".
4724 (nbsd_nat_target::wait): Update.
4725 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4726 (thread_db_target::wait): Update.
4727 * linux-nat.h (class linux_nat_target) <wait>: Update.
4728 * linux-nat.c (linux_nat_target::wait): Update.
4729 (linux_nat_wait_1): Update.
4730 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4731 "options".
4732 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4733 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4734 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4735 (go32_nat_target::wait): Update.
4736 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4737 * gnu-nat.c (gnu_nat_target::wait): Update.
4738 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4739 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4740 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4741 * darwin-nat.c (darwin_nat_target::wait): Update.
4742 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4743 (bsd_uthread_target::wait): Update.
4744 * aix-thread.c (class aix_thread_target) <wait>: Update.
4745 (aix_thread_target::wait): Update.
4746
4747 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4748
4749 * compile/compile-object-run.c (create_copied_type_recursive): New
4750 function.
4751 (compile_object_run): Use new function.
4752
4753 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4754
4755 * NEWS: Mention x86_64 Cygwin core file support.
4756
4757 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4758
4759 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4760 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4761
4762 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4763
4764 * windows-tdep.h: Add prototypes.
4765 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4766 (i386_windows_core_pid_to_str): Move and rename ...
4767 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4768 (windows_core_pid_to_str): ... and here.
4769 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4770
4771 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4772 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4773 (amd64_windows_init_abi_common): ... and register.
4774
4775 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4776
4777 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4778 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4779
4780 2020-09-18 Pedro Alves <pedro@palves.net>
4781
4782 PR gdb/26631
4783 * thread.c (thread_find_command): Switch inferior before calling
4784 target methods.
4785
4786 2020-09-17 Tom Tromey <tromey@adacore.com>
4787
4788 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4789 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4790 (tdesc_arch_data_up): New typedef.
4791 (tdesc_use_registers, tdesc_data_alloc): Update.
4792 (tdesc_data_cleanup): Don't declare.
4793 * target-descriptions.c (tdesc_data_alloc): Return a
4794 tdesc_arch_data_up.
4795 (tdesc_arch_data_deleter::operator()): Rename from
4796 tdesc_data_cleanup. Change argument type.
4797 (tdesc_use_registers): Change early_data to an rvalue reference.
4798 (tdesc_use_registers): Don't use delete.
4799 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4800 * s390-tdep.c (s390_gdbarch_init): Update.
4801 * rx-tdep.c (rx_gdbarch_init): Update.
4802 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4803 * riscv-tdep.c (riscv_gdbarch_init): Update.
4804 * or1k-tdep.c (or1k_gdbarch_init): Update.
4805 * nios2-tdep.c (nios2_gdbarch_init): Update.
4806 * nds32-tdep.c (nds32_gdbarch_init): Update.
4807 * mips-tdep.c (mips_gdbarch_init): Update.
4808 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4809 * m68k-tdep.c (m68k_gdbarch_init): Update.
4810 * i386-tdep.c (i386_gdbarch_init): Update.
4811 * arm-tdep.c (arm_gdbarch_init): Update.
4812 * arc-tdep.c (arc_tdesc_init): Update.
4813 (arc_gdbarch_init): Update.
4814 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4815
4816 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4817
4818 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4819 for WOW64 processes.
4820
4821 2020-09-17 Tom Tromey <tom@tromey.com>
4822
4823 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4824
4825 2020-09-17 Tom Tromey <tom@tromey.com>
4826
4827 * value.c (preserve_values): Update.
4828 * python/py-type.c (save_objfile_types): Update.
4829 * guile/scm-type.c (save_objfile_types): Update.
4830 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4831 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4832 * compile/compile-object-run.c (compile_object_run): Update.
4833
4834 2020-09-17 Tom Tromey <tom@tromey.com>
4835
4836 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4837 Remove.
4838 <m_table>: Now htab_up.
4839 * typeprint.c (typedef_hash_table::recursively_update)
4840 (typedef_hash_table::add_template_parameters)
4841 (typedef_hash_table::typedef_hash_table): Update.
4842 (typedef_hash_table::~typedef_hash_table): Remove.
4843 (typedef_hash_table::typedef_hash_table)
4844 (typedef_hash_table::find_global_typedef)
4845 (typedef_hash_table::find_typedef): Update.
4846
4847 2020-09-17 Tom Tromey <tom@tromey.com>
4848
4849 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4850
4851 2020-09-17 Tom Tromey <tom@tromey.com>
4852
4853 * linespec.c (class decode_compound_collector)
4854 <~decode_compound_collector>: Remove.
4855 <m_unique_syms>: Now htab_up.
4856 (decode_compound_collector::operator ()): Update.
4857 (class symtab_collector) <~symtab_collector>: Remove.
4858 <m_symtab_table>: Now htab_up.
4859 (symtab_collector::operator ()): Update.
4860
4861 2020-09-17 Tom Tromey <tom@tromey.com>
4862
4863 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4864 (filename_seen_cache::clear): Update.
4865 (~filename_seen_cache): Remove.
4866 (filename_seen_cache::seen): Update.
4867 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4868 htab_up.
4869 <~filename_seen_cache>: Remove.
4870 <traverse>: Update.
4871
4872 2020-09-17 Tom Tromey <tom@tromey.com>
4873
4874 * completer.c (completion_tracker::discard_completions)
4875 (completion_tracker::~completion_tracker)
4876 (completion_tracker::maybe_add_completion)
4877 (completion_tracker::remove_completion)
4878 (completion_tracker::recompute_lowest_common_denominator)
4879 (completion_tracker::build_completion_result): Update.
4880 * completer.h (class completion_tracker) <have_completions>:
4881 Update.
4882 <m_entries_hash>: Now htab_up.
4883
4884 2020-09-17 Tom Tromey <tom@tromey.com>
4885
4886 * breakpoint.c (ambiguous_names_p): Use htab_up.
4887
4888 2020-09-17 Tom Tromey <tom@tromey.com>
4889
4890 * auto-load.c (struct auto_load_pspace_info)
4891 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4892 <loaded_script_files, loaded_script_texts>: Change type to
4893 htab_up.
4894 (~auto_load_pspace_info) Remove.
4895 (init_loaded_scripts_info, maybe_add_script_file)
4896 (maybe_add_script_text, auto_load_info_scripts): Update.
4897
4898 2020-09-17 Tom Tromey <tromey@adacore.com>
4899
4900 * c-exp.y (name_obstack): Now static.
4901
4902 2020-09-17 Chungyi Chi <demonic@csie.io>
4903
4904 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4905
4906 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4909 (add_solib_catchpoint): Likewise.
4910 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4911 to bool.
4912 (add_solib_catchpoint): Change int parameter/variable to bool.
4913 (catch_load_or_unload): Likewise.
4914 (init_catchpoint): Likewise.
4915 (create_fork_vfork_event_catchpoint): Likewise.
4916 (catch_fork_command_1): Likewise.
4917 (catch_exec_command_1): Likewise.
4918
4919 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4920
4921 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4922 Change instance_flags to m_instance_flags.
4923
4924 2020-09-16 Tom Tromey <tromey@adacore.com>
4925
4926 PR gdb/26598:
4927 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4928
4929 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4930
4931 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4932 PL_FLAG_EXEC.
4933 (fbsd_nat_target::insert_exec_catchpoint)
4934 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4935 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4936 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4937
4938 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4939
4940 * configure.ac: Remove check for kinfo_getvmmap().
4941 * configure, config.in: Regenerate.
4942 * fbsd-nat.c (fbsd_read_mapping): Remove
4943 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4944 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4945 kinfo_get_vmmap() are always present.
4946
4947 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4948
4949 * fbsd-nat.c: Always include support for
4950 TARGET_OBJECT_SIGNAL_INFO.
4951
4952 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4953
4954 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4955 sysctl and remove procfs fallback.
4956
4957 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4958
4959 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4960 * fbsd-nat.h: Likewise.
4961
4962 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4963
4964 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4965 argument.
4966
4967 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * ada-lang.c (ada_language_data): Delete.
4970 (ada_language): Remove references to ada_language_data.
4971 * c-lang.c (c_language_data): Delete.
4972 (c_language): Remove references to c_language_data.
4973 (cplus_language_data): Delete.
4974 (cplus_language): Remove references to cplus_language_data.
4975 (asm_language_data): Delete.
4976 (asm_language): Remove references to asm_language_data.
4977 (minimal_language_data): Delete.
4978 (minimal_language): Remove references to minimal_language_data.
4979 * d-lang.c (d_language_data): Delete.
4980 (d_language): Remove references to d_language_data.
4981 * f-lang.c (f_language_data): Delete.
4982 (f_language): Remove references to f_language_data.
4983 * go-lang.c (go_language_data): Delete.
4984 (go_language): Remove references to go_language_data.
4985 * language.c (unknown_language_data): Delete.
4986 (unknown_language): Remove references to unknown_language_data.
4987 (auto_language_data): Delete.
4988 (auto_language): Remove references to auto_language_data.
4989 * language.h (language_data): Delete struct.
4990 (language_defn): No longer inherit from language_data.
4991 * m2-lang.c (m2_language_data): Delete.
4992 (m2_language): Remove references to m2_language_data.
4993 * objc-lang.c (objc_language_data): Delete.
4994 (objc_language): Remove references to objc_language_data.
4995 * opencl-lang.c (opencl_language_data): Delete.
4996 (opencl_language): Remove references to opencl_language_data.
4997 * p-lang.c (pascal_language_data): Delete.
4998 (pascal_language): Remove references to pascal_language_data.
4999 * rust-lang.c (rust_language_data): Delete.
5000 (rust_language): Remove references to rust_language_data.
5001
5002 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5003
5004 * ada-lang.c (ada_language_data): Remove la_op_print_tab
5005 initializer.
5006 (ada_language::opcode_print_table): New member function.
5007 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
5008 (c_language::opcode_print_table): New member function.
5009 (cplus_language_data): Remove la_op_print_tab initializer.
5010 (cplus_language::opcode_print_table): New member function.
5011 (asm_language_data): Remove la_op_print_tab initializer.
5012 (asm_language::opcode_print_table): New member function.
5013 (minimal_language_data): Remove la_op_print_tab initializer.
5014 (minimal_language::opcode_print_table): New member function.
5015 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
5016 (d_language::opcode_print_table): New member function.
5017 * expprint.c (print_subexp_standard): Update call to
5018 opcode_print_table.
5019 (op_string): Likewise.
5020 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
5021 (f_language::opcode_print_table): New member function.
5022 * go-lang.c (go_language_data): Remove la_op_print_tab
5023 initializer.
5024 (go_language::opcode_print_table): New member function.
5025 * language.c (unknown_language_data): Remove la_op_print_tab
5026 initializer.
5027 (unknown_language::opcode_print_table): New member function.
5028 (auto_language_data): Remove la_op_print_tab initializer.
5029 (auto_language::opcode_print_table): New member function.
5030 * language.h (language_data): Remove la_op_print_tab field.
5031 (language_defn::opcode_print_table): Declare new member function.
5032 * m2-lang.c (m2_language_data): Remove la_op_print_tab
5033 initializer.
5034 (m2_language::opcode_print_table): New member function.
5035 * objc-lang.c (objc_language_data): Remove la_op_print_tab
5036 initializer.
5037 (objc_language::opcode_print_table): New member function.
5038 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
5039 initializer.
5040 (opencl_language::opcode_print_table): New member function.
5041 * p-lang.c (pascal_language_data): Remove la_op_print_tab
5042 initializer.
5043 (pascal_language::opcode_print_table): New member function.
5044 * rust-lang.c (rust_language_data): Remove la_op_print_tab
5045 initializer.
5046 (rust_language::opcode_print_table): New member function.
5047
5048 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5049
5050 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
5051 (ada_language::expression_ops): New member function.
5052 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
5053 (c_language::expression_ops): New member function.
5054 (cplus_language_data): Remove la_exp_desc initializer.
5055 (cplus_language::expression_ops): New member function.
5056 (asm_language_data): Remove la_exp_desc initializer.
5057 (asm_language::expression_ops): New member function.
5058 (minimal_language_data): Remove la_exp_desc initializer.
5059 (minimal_language::expression_ops): New member function.
5060 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
5061 (d_language::expression_ops): New member function.
5062 * eval.c (evaluate_subexp): Update call to expression_ops.
5063 * expprint.c (print_subexp): Likewise.
5064 (op_name): Likewise.
5065 (dump_subexp_body): Likewise.
5066 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
5067 (f_language::expression_ops): New member function.
5068 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
5069 (go_language::expression_ops): New member function.
5070 * language.c (language_defn::expression_ops): New function.
5071 (unknown_language_data): Remove la_exp_desc initializer.
5072 (auto_language_data): Likewise.
5073 * language.h (language_data): Remove la_exp_desc field.
5074 (language_defn::expression_ops): Declare new member function.
5075 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
5076 (m2_language::expression_ops): New member function.
5077 * objc-lang.c (objc_language_data): Remove la_exp_desc
5078 initializer.
5079 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
5080 initializer.
5081 (opencl_language::expression_ops): New member function.
5082 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
5083 * parse.c (operator_length): Update call to expression_ops.
5084 (exp_iterate): Likewise.
5085 * rust-lang.c (rust_language_data): Remove la_exp_desc
5086 initializer.
5087 (ruse_language::expression_ops): New member function.
5088
5089 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5090
5091 * ada-lang.c (ada_language_data): Remove la_varobj_ops
5092 initializer.
5093 (ada_language::varobj_ops): New member function.
5094 * c-lang.c (c_language_data): Remove la_varobj_ops
5095 initializer.
5096 (cplus_language_data): Likewise.
5097 (cplus_language::varobj_ops): New member function.
5098 (asm_language_data): Remove la_varobj_ops initializer.
5099 (minimal_language_data): Likewise.
5100 * d-lang.c (d_language_data): Likewise.
5101 * f-lang.c (f_language_data): Likewise.
5102 * go-lang.c (go_language_data): Likewise.
5103 * language.c (language_defn::varobj_ops): New function.
5104 (unknown_language_data): Remove la_varobj_ops
5105 initializer.
5106 (auto_language_data): Likewise.
5107 * language.h (language_data): Remove la_varobj_ops field.
5108 (language_defn::varobj_ops): Declare new member function.
5109 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
5110 * objc-lang.c (objc_language_data): Likewise.
5111 * opencl-lang.c (opencl_language_data): Likewise.
5112 * p-lang.c (pascal_language_data): Likewise.
5113 * rust-lang.c (rust_language_data): Likewise.
5114 * varobj.c (varobj_create): Update call to varobj_ops.
5115 * varobj.h (default_varobj_ops): Delete define.
5116
5117 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * ada-lang.c (ada_language_data): Remove la_macro_expansion
5120 initializer.
5121 * c-lang.c (c_language_data): Likewise.
5122 (c_language::macro_expansion): New member function.
5123 (cplus_language_data): Likewise.
5124 (cplus_language::macro_expansion): New member function.
5125 (asm_language_data): Likewise.
5126 (asm_language::macro_expansion): New member function.
5127 (minimal_language_data): Likewise.
5128 (minimal_language::macro_expansion): New member function.
5129 * d-lang.c (d_language_data): Remove la_macro_expansion
5130 initializer.
5131 * f-lang.c (f_language_data): Likewise.
5132 * go-lang.c (go_language_data): Likewise.
5133 * language.c (unknown_language_data): Likewise.
5134 (auto_language_data): Likewise.
5135 * language.h (language_data): Remove la_macro_expansion field.
5136 (language_defn::macro_expansion): New member function.
5137 * m2-lang.c (m2_language_data): Remove la_macro_expansion
5138 initializer.
5139 * objc-lang.c (objc_language_data): Likewise.
5140 (objc_language::macro_expansion): New member function.
5141 * opencl-lang.c (opencl_language_data): Likewise.
5142 (opencl_language::macro_expansion): New member function.
5143 * p-lang.c (pascal_language_data): Remove la_macro_expansion
5144 initializer.
5145 * rust-lang.c (rust_language_data): Likewise.
5146 * symtab.c (default_collect_symbol_completion_matches_break_on):
5147 Update call to macro_expansion.
5148
5149 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5150
5151 * ada-lang.c (ada_language_data): Remove la_array_ordering
5152 initializer.
5153 * c-lang.c (c_language_data): Likewise.
5154 (cplus_language_data): Likewise.
5155 (asm_language_data): Likewise.
5156 (minimal_language_data): Likewise.
5157 * d-lang.c (d_language_data): Likewise.
5158 * dwarf2/read.c (read_array_order): Update for call to
5159 array_ordering.
5160 * f-lang.c (f_language_data): Remove la_array_ordering
5161 initializer.
5162 (f_language::array_ordering): New member function.
5163 * go-lang.c (go_language_data): Remove la_array_ordering
5164 initializer.
5165 * language.c (unknown_language_data): Likewise.
5166 (auto_language_data): Likewise.
5167 * language.h (language_data): Delete la_array_ordering field.
5168 (language_defn::array_ordering): New member function.
5169 * m2-lang.c (m2_language_data): Remove la_array_ordering
5170 initializer.
5171 * objc-lang.c (objc_language_data): Likewise.
5172 * opencl-lang.c (opencl_language_data): Likewise.
5173 * p-lang.c (pascal_language_data): Likewise.
5174 * rust-lang.c (rust_language_data): Likewise.
5175
5176 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5177
5178 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5179 initializer.
5180 * c-lang.c (c_language_data): Likewise.
5181 (cplus_language_data): Likewise.
5182 (asm_language_data): Likewise.
5183 (minimal_language_data): Likewise.
5184 * d-lang.c (d_language_data): Likewise.
5185 * f-lang.c (f_language_data): Likewise.
5186 (f_language::case_sensitivity): New member function.
5187 * go-lang.c (go_language_data): Remove la_case_sensitivity
5188 initializer.
5189 * language.c (enum case_mode): Moved here from language.h.
5190 (case_mode): Make static.
5191 (show_case_command): Update for case_sensitivity being a method.
5192 (set_case_command): Likewise.
5193 (set_range_case): Likewise.
5194 (unknown_language_data): Remove la_case_sensitivity initializer.
5195 (auto_language_data): Likewise.
5196 * language.h (case_mode): Delete, move enum declaration to
5197 language.c.
5198 (language_data): Delete la_case_sensitivity field.
5199 (language_defn::case_sensitivity): New member function.
5200 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5201 initializer.
5202 * objc-lang.c (objc_language_data): Likewise.
5203 * opencl-lang.c (opencl_language_data): Likewise.
5204 * p-lang.c (pascal_language_data): Likewise.
5205 * rust-lang.c (rust_language_data): Likewise.
5206
5207 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5208
5209 * ada-lang.c (ada_language_data): Remove la_range_check
5210 initializer.
5211 * c-lang.c (c_language_data): Likewise.
5212 (cplus_language_data): Likewise.
5213 (asm_language_data): Likewise.
5214 (minimal_language_data): Likewise.
5215 * d-lang.c (d_language_data): Likewise.
5216 * f-lang.c (f_language_data): Likewise.
5217 (f_language::range_checking_on_by_default): New member function.
5218 * go-lang.c (go_language_data): Remove la_range_check initializer.
5219 * language.c (enum range_mode): Moved here from language.h.
5220 (range_mode): Made static.
5221 (show_range_command): Update to use
5222 range_checking_on_by_default.
5223 (set_range_command): Likewise.
5224 (set_range_case): Likewise.
5225 (unknown_language_data): Remove la_range_check initializer.
5226 (auto_language_data): Likewise.
5227 * language.h (range_mode): Delete. Enum definition moved to
5228 language.c.
5229 (language_data): Remove la_range_check field.
5230 (language_defn::range_checking_on_by_default): New member
5231 function.
5232 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5233 (m2_language::range_checking_on_by_default): New member function.
5234 * objc-lang.c (objc_language_data): Remove la_range_check
5235 initializer.
5236 * opencl-lang.c (opencl_language_data): Likewise.
5237 * p-lang.c (pascal_language_data): Likewise.
5238 (pascal_language::range_checking_on_by_default): New member
5239 function.
5240 * rust-lang.c (rust_language_data): Remove la_range_check
5241 initializer.
5242 (rust_language::range_checking_on_by_default): New member
5243 function.
5244
5245 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5246
5247 * dwarf2/read.c (dwarf2_physname): Remove special case for
5248 language_go.
5249 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5250 member function.
5251
5252 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5253
5254 * ada-lang.c (ada_language_data): Remove
5255 la_store_sym_names_in_linkage_form_p initializer.
5256 (ada_language::store_sym_names_in_linkage_form_p): New member
5257 function.
5258 * c-lang.c (c_language_data): Remove
5259 la_store_sym_names_in_linkage_form_p initializer.
5260 (c_language::store_sym_names_in_linkage_form_p): New member
5261 function.
5262 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5263 initializer.
5264 (asm_language_data): Likewise.
5265 (asm_language::store_sym_names_in_linkage_form_p): New member
5266 function.
5267 (minimal_language_data): Remove
5268 la_store_sym_names_in_linkage_form_p initializer.
5269 (minimal_language::store_sym_names_in_linkage_form_p): New member
5270 function.
5271 * d-lang.c (d_language_data): Remove
5272 la_store_sym_names_in_linkage_form_p initializer.
5273 * dwarf2/read.c (dwarf2_physname): Update call to
5274 store_sym_names_in_linkage_form_p.
5275 * f-lang.c (f_language_data): Remove
5276 la_store_sym_names_in_linkage_form_p initializer.
5277 * go-lang.c (go_language_data): Remove
5278 la_store_sym_names_in_linkage_form_p initializer.
5279 * language.c (unknown_language_data): Remove
5280 la_store_sym_names_in_linkage_form_p initializer.
5281 (unknown_language::store_sym_names_in_linkage_form_p): New member
5282 function.
5283 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5284 initializer.
5285 (auto_language::store_sym_names_in_linkage_form_p): New member
5286 function.
5287 * language.h (language_data): Remove
5288 la_store_sym_names_in_linkage_form_p member variable.
5289 (language_defn::store_sym_names_in_linkage_form_p): New member
5290 function.
5291 * m2-lang.c (m2_language_data): Remove
5292 la_store_sym_names_in_linkage_form_p initializer.
5293 * objc-lang.c (objc_language_data): Likewise.
5294 * opencl-lang.c (opencl_language_data): Likewise.
5295 * p-lang.c (pascal_language_data): Likewise.
5296 * rust-lang.c (rust_language_data): Likewise.
5297
5298 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5299
5300 * ada-lang.c (ada_language_data): Remove string_lower_bound
5301 initializer.
5302 * c-lang.c (c_language_data): Likewise.
5303 (cplus_language_data): Likewise.
5304 (asm_language_data): Likewise.
5305 (minimal_language_data): Likewise.
5306 * d-lang.c (d_language_data): Likewise.
5307 * f-lang.c (f_language_data): Likewise.
5308 * go-lang.c (go_language_data): Likewise.
5309 * language.c (unknown_language_data): Likewise.
5310 (auto_language_data): Likewise.
5311 * language.h (language_data): Remove string_lower_bound field.
5312 (language_defn::string_lower_bound): New member function.
5313 * m2-lang.c (m2_language_data): Remove string_lower_bound
5314 initializer.
5315 (m2_language::string_lower_bound): New member function.
5316 * objc-lang.c (objc_language_data): Remove string_lower_bound
5317 initializer.
5318 * opencl-lang.c (opencl_language_data): Likewise.
5319 * p-lang.c (pascal_language_data): Likewise.
5320 * rust-lang.c (rust_language_data): Likewise.
5321 * valops.c (value_cstring): Update call to string_lower_bound.
5322 (value_string): Likewise.
5323 * value.c (allocate_repeated_value): Likewise.
5324
5325 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5326
5327 * valops.c (value_repeat): Fix incorrect argument name in comment.
5328
5329 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5330
5331 * ada-lang.c (ada_language_data): Remove c_style_arrays
5332 initializer.
5333 (ada_language::c_style_arrays_p): New member fuction.
5334 * c-lang.c (c_language_data): Remove c_style_arrays
5335 initializer.
5336 (cplus_language_data): Likewise.
5337 (asm_language_data): Likewise.
5338 (minimal_language_data): Likewise.
5339 * d-lang.c (d_language_data): Likewise.
5340 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5341 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5342 (f_language::c_style_arrays_p): New member function.
5343 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5344 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5345 * language.c (unknown_language_data): Remove c_style_arrays
5346 initializer.
5347 (auto_language_data): Likewise.
5348 * language.h (language_data): Remove c_style_arrays field.
5349 (language_defn::c_style_arrays_p): New member function.
5350 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5351 (m2_language::c_style_arrays_p): New member function.
5352 * objc-lang.c (objc_language_data): Remove c_style_arrays
5353 initializer.
5354 * opencl-lang.c (opencl_language_data): Likewise.
5355 * p-lang.c (pascal_language_data): Likewise.
5356 * rust-lang.c (rust_language_data): Likewise.
5357 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5358 and update local variable to a bool.
5359 * valops.c (value_cast): Update call to c_style_arrays_p.
5360 (value_array): Likewise.
5361 * value.c (coerce_array): Likewise.
5362
5363 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5364
5365 * ada-lang.c (ada_language_data): Remove la_language initializer.
5366 * c-lang.c (c_language_data): Likewise.
5367 (cplus_language_data): Likewise.
5368 (asm_language_data): Likewise.
5369 (minimal_language_data): Likewise.
5370 * d-lang.c (d_language_data): Likewise.
5371 * f-lang.c (f_language_data): Likewise.
5372 * go-lang.c (go_language_data): Likewise.
5373 * language.c (unknown_language_data): Likewise.
5374 (auto_language_data): Likewise.
5375 * language.h (language_data): Remove la_language field.
5376 (language_defn::language_defn): Initialise la_language field.
5377 (language_defn::la_language): New member variable.
5378 * m2-lang.c (m2_language_data): Remove la_language field.
5379 * objc-lang.c (objc_language_data): Likewise.
5380 * opencl-lang.c (opencl_language_data): Likewise.
5381 * p-lang.c (pascal_language_data): Likewise.
5382 * rust-lang.c (rust_language_data): Likewise.
5383
5384 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5385
5386 * ada-lang.c (ada_extensions): Delete, moved into
5387 ada_language::filename_extensions.
5388 (ada_language_data): Remove la_filename_extensions initializer.
5389 (ada_language::filename_extensions): New member function.
5390 * c-lang.c (c_extensions): Delete, moved into
5391 c_language::filename_extensions.
5392 (c_language_data): Remove la_filename_extensions initializer.
5393 (c_language::filename_extensions): New member function.
5394 (cplus_extensions): Delete, moved into
5395 cplus_language::filename_extensions.
5396 (cplus_language_data): Remove la_filename_extensions initializer.
5397 (cplus_language::filename_extensions): New member function.
5398 (asm_extensions): Delete, moved into
5399 asm_language::filename_extensions.
5400 (asm_language_data): Remove la_filename_extensions initializer.
5401 (asm_language::filename_extensions): New member function.
5402 (minimal_language_data): Remove la_filename_extensions
5403 initializer.
5404 * d-lang.c (d_extensions): Delete, moved into
5405 d_language::filename_extensions.
5406 (d_language_data): Remove la_filename_extensions initializer.
5407 (d_language::filename_extensions): New member function.
5408 * f-lang.c (f_extensions): Delete, moved into
5409 f_language::filename_extensions.
5410 (f_language_data): Remove la_filename_extensions initializer.
5411 (f_language::filename_extensions): New member function.
5412 * go-lang.c (go_language_data): Remove la_filename_extensions
5413 initializer.
5414 * language.c (add_set_language_command): Update now that
5415 filename_extensions returns a vector.
5416 (unknown_language_data): Remove la_filename_extensions
5417 initializer.
5418 (auto_language_data): Likewise.
5419 * language.h (language_data): Remove la_filename_extensions field.
5420 (language_defn::filename_extensions): New member function.
5421 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5422 initializer.
5423 * objc-lang.c (objc_extensions): Delete, moved into
5424 objc_language::filename_extensions.
5425 (objc_language_data): Remove la_filename_extensions initializer.
5426 (objc_language::filename_extensions): New member function.
5427 * opencl-lang.c (opencl_language_data): Remove
5428 la_filename_extensions initializer.
5429 * p-lang.c (pascal_extensions): Delete, moved into
5430 pascal_language::filename_extensions.
5431 (pascal_language_data): Remove la_filename_extensions initializer.
5432 (pascal_language::filename_extensions): New member function.
5433 * rust-lang.c (rust_extensions): Delete, moved into
5434 rust_language::filename_extensions.
5435 (rust_language_data): Remove la_filename_extensions initializer.
5436 (rust_language::filename_extensions): New member function.
5437 * symfile.c (add_filename_language): Add new assert.
5438
5439 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5440
5441 * ada-lang.c (ada_language_data): Remove la_name and
5442 la_natural_name initializers.
5443 (ada_language::name): New member function.
5444 (ada_language::natural_name): New member function.
5445 * c-lang.c (c_language_data): Remove la_name and
5446 la_natural_name initializers.
5447 (c_language::name): New member function.
5448 (c_language::natural_name): New member function.
5449 (cplus_language_data): Remove la_name and
5450 la_natural_name initializers.
5451 (cplus_language::name): New member function.
5452 (cplus_language::natural_name): New member function.
5453 (asm_language_data): Remove la_name and
5454 la_natural_name initializers.
5455 (asm_language::name): New member function.
5456 (asm_language::natural_name): New member function.
5457 (minimal_language_data): Remove la_name and
5458 la_natural_name initializers.
5459 (minimal_language::name): New member function.
5460 (minimal_language::natural_name): New member function.
5461 * compile/compile.c (compile_to_object): Update call to
5462 lanugage_defn::name.
5463 * d-lang.c (d_language_data): Remove la_name and
5464 la_natural_name initializers.
5465 (d_language::name): New member function.
5466 (d_language::natural_name): New member function.
5467 * expprint.c (print_subexp_standard): Update call to
5468 language_defn::name.
5469 (dump_raw_expression): Likewise
5470 (dump_prefix_expression): Likewise.
5471 * f-lang.c (f_language_data): Remove la_name and
5472 la_natural_name initializers.
5473 (f_language::name): New member function.
5474 (f_language::natural_name): New member function.
5475 * go-lang.c (go_language_data): Remove la_name and
5476 la_natural_name initializers.
5477 (go_language::name): New member function.
5478 (go_language::natural_name): New member function.
5479 * language.c (show_language_command): Update call to
5480 language_defn::name.
5481 (set_language_command): Likewise.
5482 (language_enum): Likewise.
5483 (language_str): Likewise.
5484 (add_set_language_command): Likewise, use
5485 language_defn::natural_name in the doc string.
5486 (unknown_language_data): Remove la_name and
5487 la_natural_name initializers.
5488 (unknown_language::name): New member function.
5489 (unknown_language::natural_name): New member function.
5490 (auto_language_data): Remove la_name and
5491 la_natural_name initializers.
5492 (auto_language::name): New member function.
5493 (auto_language::natural_name): New member function.
5494 (language_lookup_primitive_type_as_symbol): Update call to
5495 language_defn::name.
5496 * language.h (language_data): Remove la_name and la_natural_name
5497 member variables.
5498 (language_defn::name): New member function.
5499 (language_defn::natural_name): New member function.
5500 * m2-lang.c (m2_language_data): Remove la_name and
5501 la_natural_name initializers.
5502 (m2_language::name): New member function.
5503 (m2_language::natural_name): New member function.
5504 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5505 language_defn::natural_name.
5506 * objc-lang.c (objc_language_data): Remove la_name and
5507 la_natural_name initializers.
5508 (objc_language::name): New member function.
5509 (objc_language::natural_name): New member function.
5510 * opencl-lang.c (opencl_language_data): Remove la_name and
5511 la_natural_name initializers.
5512 (opencl_language::name): New member function.
5513 (opencl_language::natural_name): New member function.
5514 * p-lang.c (pascal_language_data): Remove la_name and
5515 la_natural_name initializers.
5516 (pascal_language::name): New member function.
5517 (pascal_language::natural_name): New member function.
5518 * rust-lang.c (rust_language_data): Remove la_name and
5519 la_natural_name initializers.
5520 (rust_language::name): New member function.
5521 (rust_language::natural_name): New member function.
5522 * symtab.c (lookup_language_this): Update call to
5523 language_defn::name.
5524
5525 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * ada-lang.c (ada_language_data): Remove la_name_of_this
5528 initializer.
5529 * ax-gdb.c (gen_expr): Update call to name_of_this.
5530 * c-exp.y (classify_name): Likewise.
5531 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5532 (cplus_language_data): Likewise.
5533 (cplus_language::name_of_this): New member function.
5534 (asm_language_data): Remove la_name_of_this initializer.
5535 (minimal_language_data): Likewise.
5536 * d-lang.c (d_language_data): Likewise.
5537 (d_language::name_of_this): New member function.
5538 * expprint.c (print_subexp_standard): Update call to name_of_this.
5539 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5540 * go-lang.c (go_language_data): Likewise.
5541 * language.c (unknown_language_data): Likewise.
5542 (unknown_language::name_of_this): New member function.
5543 (auto_language_data): Remove la_name_of_this initializer.
5544 (auto_language::name_of_this): New member function.
5545 * language.h (language_data): Delete la_name_of_this member
5546 variable.
5547 (language_defn::name_of_this): New member function.
5548 * m2-lang.c (m2_language_data): Remove la_name_of_this
5549 initializer.
5550 * objc-lang.c (objc_language_data): Likewise.
5551 (objc_language::name_of_this): New member function.
5552 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5553 initializer.
5554 * p-lang.c (pascal_language_data): Likewise.
5555 (pascal_language::name_of_this): New member function.
5556 * rust-lang.c (rust_language_data): Remove la_name_of_this
5557 initializer.
5558 * symtab.c (lookup_language_this): Update call to name_of_this.
5559 (lookup_symbol_aux): Likewise.
5560 * valops.c (value_of_this): Likewise.
5561
5562 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5563
5564 * ada-lang.c (ada_language_data): Remove
5565 la_struct_too_deep_ellipsis initializer.
5566 (ada_language::struct_too_deep_ellipsis): New member function.
5567 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5568 initializer.
5569 (cplus_language_data): Likewise.
5570 (asm_language_data): Likewise.
5571 (minimal_language_data): Likewise.
5572 * cp-valprint.c (cp_print_value): Update call to
5573 struct_too_deep_ellipsis.
5574 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5575 initializer.
5576 * f-lang.c (f_language_data): Likewise.
5577 (f_language::struct_too_deep_ellipsis): New member function.
5578 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5579 initializer.
5580 * language.c (unknown_language_data): Likewise.
5581 (auto_language_data): Likewise.
5582 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5583 member variable.
5584 (language_defn::struct_too_deep_ellipsis): New member function.
5585 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5586 initializer.Q
5587 * objc-lang.c (objc_language_data): Likewise.
5588 * opencl-lang.c (opencl_language_data): Likewise.
5589 * p-lang.c (pascal_language_data): Likewise.
5590 * rust-lang.c (rust_language_data): Likewise.
5591 * valprint.c (val_print_check_max_depth): Update call to
5592 struct_too_deep_ellipsis.
5593
5594 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5595
5596 * MAINTAINERS (Write After Approval): Add myself.
5597
5598 2020-09-15 Tom Tromey <tom@tromey.com>
5599
5600 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5601 Remove.
5602
5603 2020-09-15 Tom Tromey <tom@tromey.com>
5604
5605 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5606 and TYPE_CODE_METHODPTR cases.
5607 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5608 (c_value_print_inner): Update.
5609 * valprint.c (generic_value_print_memberptr): New function, from
5610 c_value_print_memberptr.
5611 (generic_value_print): Use it. Call cplus_print_method_ptr.
5612
5613 2020-09-15 Tom Tromey <tromey@adacore.com>
5614
5615 * python/python-internal.h (PyInt_FromLong): Remove define.
5616 * python/py-value.c (convert_value_from_python): Use
5617 gdb_py_object_from_longest.
5618 * python/py-type.c (typy_get_code): Use
5619 gdb_py_object_from_longest.
5620 * python/py-symtab.c (salpy_get_line): Use
5621 gdb_py_object_from_longest.
5622 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5623 gdb_py_object_from_longest.
5624 * python/py-record.c (recpy_gap_reason_code): Use
5625 gdb_py_object_from_longest.
5626 * python/py-record-btrace.c (recpy_bt_insn_size)
5627 (recpy_bt_func_level, btpy_list_count): Use
5628 gdb_py_object_from_longest.
5629 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5630 gdb_py_object_from_longest. Fix error handling.
5631 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5632 gdb_py_object_from_longest.
5633 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5634 gdb_py_object_from_longest.
5635 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5636 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5637 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5638
5639 2020-09-15 Tom Tromey <tromey@adacore.com>
5640
5641 * python/python.c (gdbpy_parameter_value): Use
5642 gdb_py_object_from_ulongest.
5643
5644 2020-09-15 Tom Tromey <tromey@adacore.com>
5645
5646 * python/py-infevents.c (create_register_changed_event_object):
5647 Use gdb_py_object_from_longest.
5648 * python/py-exitedevent.c (create_exited_event_object): Use
5649 gdb_py_object_from_longest.
5650
5651 2020-09-15 Tom Tromey <tromey@adacore.com>
5652
5653 * python/python.c (gdbpy_parameter_value): Use
5654 gdb_py_object_from_longest.
5655 * python/py-type.c (convert_field, typy_range): Use
5656 gdb_py_object_from_longest.
5657 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5658 gdb_py_object_from_longest.
5659 * python/py-lazy-string.c (stpy_get_length): Use
5660 gdb_py_object_from_longest.
5661 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5662 gdb_py_object_from_longest.
5663 * python/py-infevents.c (create_memory_changed_event_object): Use
5664 gdb_py_object_from_longest.
5665 * python/py-inferior.c (infpy_get_num): Use
5666 gdb_py_object_from_longest.
5667 (infpy_get_pid): Likewise.
5668
5669 2020-09-15 Tom Tromey <tromey@adacore.com>
5670
5671 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5672 defines.
5673 * python/py-value.c (valpy_long): Use
5674 gdb_py_object_from_ulongest.
5675 * python/py-symtab.c (salpy_get_pc): Use
5676 gdb_py_object_from_ulongest.
5677 (salpy_get_last): Likewise.
5678 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5679 gdb_py_object_from_ulongest.
5680 * python/py-lazy-string.c (stpy_get_address): Use
5681 gdb_py_object_from_ulongest.
5682 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5683 * python/py-arch.c (archpy_disassemble): Use
5684 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5685 error handling.
5686
5687 2020-09-15 Tom Tromey <tromey@adacore.com>
5688
5689 * python/python-internal.h (gdb_py_long_from_longest): Remove
5690 defines.
5691 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5692 * python/py-type.c (convert_field, typy_get_sizeof): Use
5693 gdb_py_object_from_longest.
5694 * python/py-record-btrace.c (btpy_list_index): Use
5695 gdb_py_object_from_longest.
5696
5697 2020-09-15 Tom Tromey <tromey@adacore.com>
5698
5699 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5700 * python/py-record.c (recpy_element_number): Use
5701 gdb_py_object_from_longest.
5702 (recpy_gap_number): Likewise.
5703
5704 2020-09-15 Tom Tromey <tromey@adacore.com>
5705
5706 * top.c (ui::ui): Update.
5707 (highest_ui_num): Remove.
5708 * top.h (struct ui) <num>: Remove.
5709
5710 2020-09-15 Tom Tromey <tromey@adacore.com>
5711
5712 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5713 * ui-style.c (ansi_regex_text): Now array.
5714 * rust-exp.y (number_regex_text): Now array.
5715 * linespec.c (linespec_quote_characters): Now array.
5716 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5717 Now arrays.
5718
5719 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5720
5721 * debuginfod-support.c (debuginfod_client_deleter): New.
5722 (debuginfod_client_up): New.
5723 (debuginfod_init): Return debuginfod_client_up.
5724 (debuginfod_source_query): Adjust.
5725 (debuginfod_debuginfo_query): Adjust.
5726
5727 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5728
5729 * debuginfod-support.c (debuginfod_source_query): Use
5730 make_unique_xstrdup.
5731
5732 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5733
5734 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5735 with `type::instance_flags`.
5736
5737 2020-09-14 Michael Mullin <masmullin@gmail.com>
5738
5739 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5740 Remove baton parameter.
5741
5742 2020-09-14 Pedro Alves <pedro@palves.net>
5743
5744 * Makefile.in (SELFTESTS_SRCS): Add
5745 unittests/enum-flags-selftests.c.
5746 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5747 btrace_function_flags instead of enum btrace_function_flag.
5748 * compile/compile-c-types.c (convert_qualified): Use
5749 enum_flags::raw.
5750 * compile/compile-cplus-symbols.c (convert_one_symbol)
5751 (convert_symbol_bmsym):
5752 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5753 (compile_cplus_convert_struct_or_union_methods)
5754 (compile_cplus_instance::convert_qualified_base):
5755 * go-exp.y (parse_string_or_char): Add cast to int.
5756 * unittests/enum-flags-selftests.c: New file.
5757 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5758 type to btrace_thread_flags from btrace_thread_flag.
5759 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5760 local's type to btrace_thread_flags from btrace_thread_flag. Add
5761 cast in DEBUG call.
5762
5763 2020-09-14 Pedro Alves <pedro@palves.net>
5764
5765 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5766 * gdbtypes.c (address_space_name_to_int): Rename to ...
5767 (address_space_name_to_type_instance_flags): ... this.
5768 (address_space_int_to_name): Rename to ...
5769 (address_space_type_instance_flags_to_name): ... this.
5770 * gdbtypes.h (address_space_name_to_int): Rename to ...
5771 (address_space_name_to_type_instance_flags): ... this.
5772 (address_space_int_to_name): Rename to ...
5773 (address_space_type_instance_flags_to_name): ... this.
5774 * type-stack.c (type_stack::insert): Adjust to rename.
5775 * type-stack.h (type_stack::insert): Likewise.
5776
5777 2020-09-14 Pedro Alves <pedro@palves.net>
5778 Andrew Burgess <andrew.burgess@embecosm.com>
5779
5780 * avr-tdep.c (avr_address_class_type_flags): Return
5781 type_instance_flags.
5782 (avr_address_class_type_flags_to_name): Take a
5783 type_instance_flags.
5784 (avr_address_class_name_to_type_flags): Return bool and take a
5785 type_instance_flags.
5786 * d-lang.c (build_d_types): Use type::set_instance_flags.
5787 * ft32-tdep.c (ft32_address_class_type_flags): Return
5788 type_instance_flags.
5789 (ft32_address_class_type_flags_to_name): Take a
5790 type_instance_flags.
5791 (ft32_address_class_name_to_type_flags): Return bool and take a
5792 type_instance_flags.
5793 (ft32_gdbarch_init): Use type::set_instance_flags.
5794 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5795 * gdbarch.h, gdbarch.c: Regenerate.
5796 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5797 (address_class_name_to_type_flags): Use type_instance_flags and
5798 bool.
5799 * gdbtypes.c (address_space_name_to_int)
5800 (address_space_int_to_name, make_qualified_type): Use
5801 type_instance_flags.
5802 (make_qualified_type): Use type_instance_flags and
5803 type::set_instance_flags.
5804 (make_type_with_address_space, make_cv_type, make_vector_type)
5805 (check_typedef): Use type_instance_flags.
5806 (recursive_dump_type): Cast type_instance_flags to unsigned for
5807 printing.
5808 (copy_type_recursive): Use type::set_instance_flags.
5809 (gdbtypes_post_init): Use type::set_instance_flags.
5810 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5811 <m_instance_flags>: ... this.
5812 <instance_flags, set_instance_flags>: New methods.
5813 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5814 (SET_TYPE_INSTANCE_FLAGS): New.
5815 (address_space_name_to_int, address_space_int_to_name)
5816 (make_type_with_address_space): Pass flags using
5817 type_instance_flags instead of int.
5818 * stabsread.c (cleanup_undefined_types_noname): Use
5819 type::set_instance_flags.
5820 * s390-tdep.c (s390_address_class_type_flags): Return
5821 type_instance_flags.
5822 (s390_address_class_type_flags_to_name): Take a
5823 type_instance_flags.
5824 (s390_address_class_name_to_type_flags): Return bool and take a
5825 type_instance_flags.
5826 * type-stack.c (type_stack::follow_types): Use
5827 type_instance_flags.
5828 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5829
5830 2020-09-14 Tom Tromey <tromey@adacore.com>
5831
5832 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5833 * x86-tdep.c (x86_is_thunk_register_name)
5834 (x86_in_indirect_branch_thunk): Update.
5835 * sparc64-tdep.c (sparc64_fpu_register_names)
5836 (sparc64_cp0_register_names, sparc64_register_names)
5837 (sparc64_pseudo_register_names): Now const.
5838 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5839 cp0_registers_num>: Now const.
5840 * sparc-tdep.c (sparc_core_register_names)
5841 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5842 (sparc32_pseudo_register_names): Now const.
5843 (validate_tdesc_registers): Update.
5844 * rust-lang.c (rust_extensions): Now const.
5845 * p-lang.c (p_extensions): Now const.
5846 * objc-lang.c (objc_extensions): Now const.
5847 * nto-tdep.c (nto_thread_state_str): Now const.
5848 * moxie-tdep.c (moxie_register_names): Now const.
5849 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5850 Now const.
5851 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5852 (mips_linux_reg_names): Now const.
5853 (mips_gdbarch_init): Update.
5854 * microblaze-tdep.c (microblaze_register_names): Now const.
5855 * m68k-tdep.c (m68k_register_names): Now const.
5856 * m32r-tdep.c (m32r_register_names): Now const.
5857 * ia64-tdep.c (ia64_register_names): Now const.
5858 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5859 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5860 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5861 ymm_avx512_register_names, pkeys_register_names>: Now const.
5862 * i386-tdep.c (i386_register_names, i386_zmm_names)
5863 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5864 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5865 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5866 * f-lang.c (f_extensions): Now const.
5867 * d-lang.c (d_extensions): Now const.
5868 * csky-tdep.c (csky_register_names): Now const.
5869 * charset.c (default_charset_names, charset_enum): Now const.
5870 (_initialize_charset): Update.
5871 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5872 const.
5873 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5874 (bsd_uthread_solib_loaded): Update.
5875 (bsd_uthread_state): Now const.
5876 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5877 (amd64_ymm_avx512_names, amd64_ymmh_names)
5878 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5879 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5880 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5881 (amd64_dword_names): Now const.
5882 * agent.c (can_use_agent_enum): Now const.
5883 * ada-tasks.c (task_states, long_task_states): Now const.
5884 * ada-lang.c (known_runtime_file_name_patterns)
5885 (known_auxiliary_function_name_patterns, attribute_names)
5886 (standard_exc, ada_extensions): Now const.
5887
5888 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * bcache.h (struct bcache) <bcache>: Remove constructor.
5891 <m_hash_function, m_compare_function>: Remove.
5892 <~bcache>: Make virtual.
5893 <compare>: Remove static method, introduce virtual method.
5894 <default_hash>: Remove.
5895 <hash>: New virtual method.
5896 * bcache.c (bcache::expand_hash_table): Update.
5897 (bcache::insert): Update.
5898 (bcache::hash): New.
5899 (bcache::compare): Update comment and parameter names.
5900 * gdbtypes.c (types_deeply_equal): Update.
5901 * psymtab.h (struct psymbol_bcache): New struct.
5902 (class psymtab_storage) <psymtab_storage>: Make default.
5903 <psymbol_cache>: Change type to psymbol_bcache.
5904 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5905 (psymbol_hash): Change to...
5906 (psymbol_bcache::hash): ... this.
5907 (psymbol_compare): Change to...
5908 (psymbol_bcache::compare): ... this.
5909
5910 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5913 checking for initial lwp.
5914
5915 2020-09-14 Tom Tromey <tromey@adacore.com>
5916
5917 * m68k-tdep.c (m68k_extract_return_value): Use
5918 pointer_result_regnum.
5919 (m68k_store_return_value): Likewise.
5920 (m68k_reg_struct_return_p): Handle vectors and arrays.
5921 (m68k_return_value): Handle arrays.
5922 (m68k_svr4_return_value): Fix single-element aggregate handling.
5923 Handle long double. Adjust for embedded ABI.
5924 (m68k_svr4_init_abi): Set pointer_result_regnum.
5925 (m68k_embedded_init_abi): New function.
5926 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5927 (m68k_osabi_sniffer): New function.
5928 (_initialize_m68k_tdep): Register osabi sniffer.
5929 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5930 member.
5931
5932 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5935 with gdb::unique_xmalloc_ptr<char>.
5936
5937 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5938
5939 * xml-support.h (xml_fetch_another): Change type to be a
5940 function_view.
5941 (xml_process_xincludes): Remove baton parameter.
5942 (xml_fetch_content_from_file): Change baton parameter to
5943 dirname.
5944 * xml-support.c (struct xinclude_parsing_data)
5945 <xinclude_parsing_data>: Remove baton parameter.
5946 <fetcher_baton>: Remove.
5947 (xinclude_start_include): Adjust.
5948 (xml_process_xincludes): Adjust.
5949 (xml_fetch_content_from_file): Replace baton parameter with
5950 dirname.
5951 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5952 (xml_init_syscalls_info): Use a lambda.
5953 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5954 (file_read_description_xml): Use a lambda.
5955 (fetch_available_features_from_target): Change baton parameter
5956 to target_ops.
5957 (target_read_description_xml): Use a lambda.
5958 (target_fetch_description_xml): Use a lambda.
5959 (string_read_description_xml): Update.
5960
5961 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5962
5963 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5964 uses with type::endianity_is_not_default.
5965
5966 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5967
5968 * gdbtypes.h (struct type) <endianity_is_not_default,
5969 set_endianity_is_not_default>: New methods.
5970 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5971 type::endianity_is_not_default, change all write call sites to
5972 use type::set_endianity_is_not_default.
5973
5974 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5977 uses with type::is_fixed_instance.
5978
5979 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5980
5981 * gdbtypes.h (struct type) <is_fixed_instance,
5982 set_is_fixed_instance>: New methods.
5983 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5984 write call sites to use type::set_is_fixed_instance.
5985
5986 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5987
5988 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5989 uses with type::is_gnu_ifunc.
5990
5991 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5992
5993 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5994 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5995 use type::set_is_gnu_ifunc.
5996
5997 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5998
5999 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
6000 uses with type::stub_is_supported.
6001
6002 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6003
6004 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
6005 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
6006 use type::set_stub_is_supported.
6007
6008 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6009
6010 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
6011 uses with type::is_vector.
6012
6013 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6014
6015 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
6016 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
6017 use type::set_is_vector.
6018
6019 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
6022 uses with type::has_varargs.
6023
6024 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6025
6026 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
6027 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
6028 use type::set_has_varargs.
6029
6030 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6031
6032 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
6033 uses with type::is_prototyped.
6034
6035 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6036
6037 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
6038 New methods.
6039 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
6040 call sites to use type::set_is_prototyped.
6041
6042 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6043
6044 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
6045 uses with type::target_is_stub.
6046
6047 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6048
6049 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
6050 New methods.
6051 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
6052 sites to use type::set_target_is_stub.
6053
6054 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6055
6056 * gdbtypes.h (TYPE_STUB): Remove, replace all
6057 uses with type::is_stub.
6058
6059 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
6062 (TYPE_STUB): Use type::is_stub, change all write call sites to
6063 use type::set_is_stub.
6064
6065 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6066
6067 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
6068 type::has_no_signedness.
6069
6070 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6071
6072 * gdbtypes.h (struct type) <has_no_signedness,
6073 set_has_no_signedness>: New methods.
6074 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
6075 call sites to use type::set_has_no_signedness.
6076
6077 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6078
6079 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
6080 type::is_unsigned.
6081
6082 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6083
6084 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
6085 methods.
6086 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
6087 sites to use type::set_is_unsigned.
6088
6089 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
6090 Adam Renquinha <arenquinha@cimeq.qc.ca>
6091
6092 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
6093 pointer and stack frame offset when unwinding.
6094
6095 2020-09-13 Pedro Alves <pedro@palves.net>
6096
6097 * NEWS: Document "-break-insert --qualified".
6098 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
6099
6100 2020-09-13 Pedro Alves <pedro@palves.net>
6101
6102 * linespec.c (classify_mtype, compare_msyms): Delete.
6103 (search_minsyms_for_name): Remove classification logic. Instead
6104 filter out trampoline symbols if we also found an external
6105 function of the same name.
6106
6107 2020-09-13 Joel Brobecker <brobecker@adacore.com>
6108
6109 * NEWS: Create a new section for the next release branch.
6110 Rename the section of the current branch, now that it has
6111 been cut.
6112
6113 2020-09-13 Joel Brobecker <brobecker@adacore.com>
6114
6115 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
6116 * version.in: Bump version to 11.0.50.DATE-git.
6117
6118 2020-09-12 Joel Brobecker <brobecker@adacore.com>
6119
6120 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
6121
6122 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
6123 Felix Willgerodt <Felix.Willgerodt@intel.com>
6124
6125 * gdbarch.sh: Added bfloat16 type.
6126 * gdbarch.c: Regenerated.
6127 * gdbarch.h: Regenerated.
6128 * gdbtypes.c (floatformats_bfloat16): New struct.
6129 (gdbtypes_post_init): Add builtin_bfloat16.
6130 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
6131 (floatformats_bfloat16): New struct.
6132 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
6133 (i386_ymm_type): Add field "v16_bfloat16"
6134 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
6135 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
6136 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
6137 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
6138 * features/i386/64bit-avx512.xml: Add bfloat16 type.
6139 * features/i386/64bit-avx512.c: Regenerated.
6140 * features/i386/64bit-sse.xml: Add bfloat16 type.
6141 * features/i386/64bit-sse.c: Regenerated.
6142
6143 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
6144
6145 * i386-tdep.c (i386_zmm_type): Fix field names.
6146 (i386_ymm_type): Fix field names.
6147
6148 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6149
6150 * breakpoint.c: Fix typo in the help message of the
6151 "set breakpoint condition-evaluation" command.
6152
6153 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6154
6155 * nbsd-nat.c: Include "nat/netbsd-nat.h".
6156 * (nbsd_nat_target::pid_to_exec_file)
6157 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
6158 (nbsd_nat_target::post_startup_inferior)
6159 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
6160 (nbsd_add_threads): Switch local code to common gdb/nat functions.
6161 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
6162 * (nbsd_thread_lister): Remove.
6163
6164 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6165
6166 * fork-inferior.c (startup_inferior): Avoid double free.
6167
6168 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6169
6170 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
6171 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6172
6173 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6174
6175 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6176 * netbsd-nat.c: Include <sys/ptrace.h>.
6177 * (netbsd_nat::enable_proc_events): Add.
6178
6179 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6180
6181 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6182 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6183 (netbsd_nat::for_each_thread): Add.
6184 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6185 "gdbsupport/common-debug.h".
6186 * (netbsd_nat::netbsd_thread_lister)
6187 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6188 (netbsd_nat::for_each_thread): Add.
6189
6190 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6191
6192 * netbsd-nat.h: Include <unistd.h>.
6193 * (netbsd_nat::pid_to_exec_file): Add.
6194 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6195 * (netbsd_nat::pid_to_exec_file) Add.
6196
6197 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6198
6199 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6200
6201 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6202
6203 * netbsd-nat.h: New file.
6204 * netbsd-nat.c: Likewise.
6205
6206 2020-09-09 Tom Tromey <tromey@adacore.com>
6207
6208 * ada-lang.c (remove_extra_symbols): Do not increment when
6209 removing an element
6210
6211 2020-09-08 Tom Tromey <tromey@adacore.com>
6212
6213 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6214
6215 2020-09-08 Tom Tromey <tromey@adacore.com>
6216
6217 PR win32/25302:
6218 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6219 (gdb_bfd_init_data): New function.
6220 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6221
6222 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6223
6224 * infrun.c (fetch_inferior_event): Use
6225 `switch_to_target_no_thread` to switch the target.
6226
6227 2020-09-06 Tom Tromey <tom@tromey.com>
6228
6229 * symfile.h (dwarf2_free_objfile): Don't declare.
6230
6231 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6232
6233 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6234 to match 16 byte real/complex type generated by Flang compiler.
6235
6236 2020-09-03 Tom de Vries <tdevries@suse.de>
6237
6238 PR breakpoint/26546
6239 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6240 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6241
6242 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * maint.c (index_digits): New function.
6245 (struct maint_print_section_data): Remove.
6246 (print_bfd_section_info): Remove print_data parameter, add arg
6247 and index_digits.
6248 (print_objfile_section_info): Likewise.
6249 (print_bfd_section_info_maybe_relocated): Likewise (plus
6250 objfile).
6251 (maintenance_info_sections): Adjust calls.
6252
6253 2020-09-02 Tom Tromey <tromey@adacore.com>
6254
6255 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6256 for null pointers.
6257 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6258
6259 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * bcache.h (struct bcache) <insert>: Change type of `added` to
6262 pointer to bool.
6263 * bcache.c (bcache::insert): Likewise.
6264 * gdbtypes.c (check_types_worklist): Adjust.
6265 * psymtab.c (add_psymbol_to_bcache): Adjust.
6266
6267 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6268
6269 * corelow.c (unordered_set): Include.
6270 (class core_target): Add field 'm_core_unavailable_mappings'.
6271 (core_target::build_file_mappings): Print only one warning
6272 per inaccessible file. Add unavailable/broken mappings
6273 to m_core_unavailable_mappings.
6274 (core_target::xfer_partial): Call...
6275 (core_target::xfer_memory_via_mappings): New method.
6276
6277 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6278
6279 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6280 type to bool.
6281
6282 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 * dwarf2/read.c (struct field_info): Fix indentation.
6285
6286 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6289 ordering in comment.
6290 * frame.c (frame_id_eq): Fix indentation.
6291
6292 2020-08-31 Scott Linder <scott@scottlinder.com>
6293 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6296 inline frame ids in outer frame.
6297
6298 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6301 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6302 (outer_frame_id): Use FID_STACK_OUTER instead of
6303 FID_STACK_INVALID.
6304 (frame_id_p): Don't check for outer_frame_id.
6305
6306 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6307
6308 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6309 regnum/frame in value. Call allocate_value_lazy.
6310 * frame.c (frame_unwind_register_value): Use
6311 val_print_not_saved.
6312
6313 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6314
6315 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6316
6317 2020-08-29 Pedro Alves <pedro@palves.net>
6318
6319 * progspace.c (print_program_space): Use all_inferiors. Switch to
6320 the inferior before calling target_pid_to_str.
6321
6322 2020-08-28 Tom Tromey <tom@tromey.com>
6323
6324 * xcoffread.c (xcoff_end_psymtab): Update comment.
6325 * dbxread.c (dbx_end_psymtab): Update comment.
6326
6327 2020-08-28 Tom de Vries <tdevries@suse.de>
6328
6329 PR breakpoint/26544
6330 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6331 event_location.
6332 (create_breakpoint): Same.
6333 (base_breakpoint_decode_location): Same.
6334 (bkpt_create_sals_from_location): Same.
6335 (bkpt_decode_location): Same.
6336 (bkpt_probe_create_sals_from_location): Same.
6337 (bkpt_probe_decode_location): Same.
6338 (tracepoint_create_sals_from_location): Same.
6339 (tracepoint_decode_location): Same.
6340 (tracepoint_probe_decode_location): Same.
6341 (strace_marker_create_sals_from_location): Same.
6342 (strace_marker_decode_location): Same.
6343 (create_sals_from_location_default): Same.
6344 (decode_location_default): Same.
6345 * breakpoint.h (struct breakpoint_ops): Same.
6346 (create_breakpoint): Same.
6347 * linespec.h (decode_line_full): Same.
6348 * linespec.c (decode_line_full): Same. Throw error if
6349 result.size () == 0.
6350
6351 2020-08-27 Pedro Alves <pedro@palves.net>
6352
6353 PR gdb/26524
6354 * breakpoint.c (until_break_fsm) <location_breakpoint,
6355 caller_breakpoint>: Delete fields.
6356 <breakpoints>: New field.
6357 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6358 two individual breakpoints.
6359 (until_break_fsm::should_stop): Loop over breakpoints in the
6360 breakpoint vector.
6361 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6362 vector.
6363 (until_break_command): Handle location expanding into multiple
6364 sals.
6365
6366 2020-08-27 Pedro Alves <pedro@palves.net>
6367
6368 PR gdb/26523
6369 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6370 bp_until breakpoints user-specified locations. Update intro
6371 comment.
6372
6373 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6374
6375 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6376 gdb_bfd_sections): New.
6377 * maint.c (print_bfd_section_info): Change param type to
6378 maint_print_section_data.
6379 (print_objfile_section_info): Likewise.
6380 (print_bfd_section_info_maybe_relocated): Likewise.
6381 (maintenance_info_sections): Use gdb_bfd_sections.
6382
6383 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6384
6385 * MAINTAINERS: Add ARC target and maintainer.
6386
6387 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6388
6389 * configure.tgt: ARC support for GNU/Linux.
6390 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6391 * arc-linux-tdep.c: New file.
6392 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6393 * arc-tdep.c (arc_write_pc): Use it.
6394
6395 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6396
6397 * arc-tdep.c (arc_check_for_hardware_loop): New.
6398 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6399
6400 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6401
6402 * arc-tdep.h: Include "gdbarch.h".
6403
6404 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6405
6406 * arch/arc.h
6407 (arc_gdbarch_features): New class to stir the selection of target XML.
6408 (arc_create_target_description): Use FEATURES to choose XML target.
6409 (arc_lookup_target_description): Use arc_create_target_description
6410 to create _new_ target descriptions or return the already created
6411 ones if the FEATURES is the same.
6412 * arch/arc.c: Implementation of prototypes described above.
6413 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6414 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6415 * arc-tdep.c (*_feature_name): Make feature names consistent.
6416 (arc_register_feature): A new struct to hold information about
6417 registers of a particular target/feature.
6418 (arc_check_tdesc_feature): Check if XML provides registers in
6419 compliance with ARC_REGISTER_FEATURE structs.
6420 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6421 (determine_*_reg_feature_set): Which feature name to look for.
6422 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6423 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6424 to expected ISA enums to be used in arc_gdbarch_features structs.
6425 * features/Makefile (FEATURE_XMLFILES): Add new files.
6426 * gdb/features/arc/v1-aux.c: New file.
6427 * gdb/features/arc/v1-aux.xml: Likewise.
6428 * gdb/features/arc/v1-core.c: Likewise.
6429 * gdb/features/arc/v1-core.xml: Likewise.
6430 * gdb/features/arc/v2-aux.c: Likewise.
6431 * gdb/features/arc/v2-aux.xml: Likewise.
6432 * gdb/features/arc/v2-core.c: Likewise.
6433 * gdb/features/arc/v2-core.xml: Likewise.
6434 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6435
6436 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6437 Andrew Burgess <andrew.burgess@embecosm.com>
6438
6439 PR m2/26372
6440 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6441 an assert. Remove single element array indexing pattern as the
6442 MULTI_SUBSCRIPT support will handle this case too.
6443
6444 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6445
6446 * value.h (valprint_check_validity): Move declaration from
6447 here...
6448 * valprint.h (valprint_check_validity): ... to here.
6449
6450 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * debug.h: New file.
6453 * debug.c (debug_prefixed_vprintf): New function.
6454 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6455 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6456
6457 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6458
6459 * infrun.h (infrun_debug_printf_1): New function declaration.
6460 (infrun_debug_printf): New macro.
6461 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6462 throughout.
6463 (infrun_debug_printf): New function.
6464 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6465 (handle_jit_event): Likewise.
6466
6467 2020-08-21 Mark Wielaard <mark@klomp.org>
6468
6469 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6470
6471 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * frame.c (enum class frame_id_status): New.
6474 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6475 (fprintf_frame): Update.
6476 (compute_frame_id): Set frame id status to "computing" on entry.
6477 Set it back to "not_computed" on failure and to "computed" on
6478 success.
6479 (get_frame_id): Assert the frame id is not being computed.
6480 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6481 (create_new_frame): Likewise.
6482 (frame_cleanup_after_sniffer): Update assert.
6483
6484 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6485
6486 * regcache.c (pid_ptid_regcache_map): New type.
6487 (target_ptid_regcache_map): Remove.
6488 (target_pid_ptid_regcache_map): New type.
6489 (regcaches): Change type to target_pid_ptid_regcache_map.
6490 (get_thread_arch_aspace_regcache): Update.
6491 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6492 case.
6493 (regcaches_size): Update.
6494 (regcache_count): Update.
6495 (registers_changed_ptid_target_pid_test): New.
6496 (_initialize_regcache): Register new test.
6497
6498 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6499
6500 * regcache.c (regcache_count): New.
6501 (struct regcache_test_data): New.
6502 (regcache_test_data_up): New.
6503 (populate_regcaches_for_test): New.
6504 (regcaches_test): Remove.
6505 (get_thread_arch_aspace_regcache_test): New.
6506 (registers_changed_ptid_all_test): New.
6507 (registers_changed_ptid_target_test): New.
6508 (registers_changed_ptid_target_ptid_test): New.
6509 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6510 (_initialize_regcache): Register new tests.
6511
6512 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6513
6514 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6515 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6516 gdbarch and aspace parameter. Use current inferior's aspace.
6517 Validate regcache's arch value.
6518 (regcaches_test): Update.
6519
6520 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6521
6522 * regcache.c (regcaches_test): Call registers_changed.
6523
6524 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6525
6526 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6527
6528 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6529
6530 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6531 to find the end of prologue for flang compiled binaries.
6532 * arm-tdep.c (arm_skip_prologue): Likewise.
6533 * i386-tdep.c (i386_skip_prologue): Likewise.
6534 * producer.c (producer_is_llvm): New function.
6535 (producer_parsing_tests): Added new tests for clang/flang.
6536 * producer.h (producer_is_llvm): New declaration.
6537
6538 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6539
6540 * linux-nat.c (linux_nat_debug_printf): New function.
6541 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6542
6543 2020-08-18 Aaron Merey <amerey@redhat.com>
6544
6545 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6546 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6547 (CLIBS): Add DEBUGINFOD_LIBS.
6548
6549 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6550
6551 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6552 'gdbarch_num_regs'.
6553
6554 2020-08-17 Tom Tromey <tromey@adacore.com>
6555
6556 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6557 ada_get_decoded_value returns NULL.
6558
6559 2020-08-17 Tom Tromey <tromey@adacore.com>
6560
6561 * python/py-inferior.c (infpy_search_memory): Use
6562 gdb_py_object_from_ulongest.
6563 * python/py-infevents.c (create_inferior_call_event_object)
6564 (create_memory_changed_event_object): Use
6565 gdb_py_object_from_ulongest.
6566 * python/py-linetable.c (ltpy_entry_get_pc): Use
6567 gdb_py_object_from_ulongest.
6568
6569 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6570
6571 * loc.c (class symbol_needs_eval_context): Fix indentation.
6572
6573 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6574
6575 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6576 bool.
6577
6578 2020-08-17 Tom de Vries <tdevries@suse.de>
6579
6580 PR gdb/26393
6581 * gdbtypes.c (dump_dynamic_prop): New function.
6582 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6583
6584 2020-08-15 Tom de Vries <tdevries@suse.de>
6585
6586 PR backtrace/26390
6587 * stack.c (print_frame_args): Temporarily set the selected
6588 frame to FRAME while printing the frame's arguments.
6589
6590 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6591
6592 PR breakpoints/26385
6593 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6594 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6595
6596 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6597
6598 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6599 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6600 and >= to check return value instead of == -1 and != -1.
6601
6602 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6603
6604 * utils.h (class gdb_argv) <as_array_view>: New method.
6605 * utils.c (gdb_argv_as_array_view_test): New.
6606 (_initialize_utils): Register selftest.
6607 * maint.c (maintenance_selftest): Use the new method.
6608
6609 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6610
6611 * target.h (supports_dumpcore, dumpcore): New
6612 function declarations.
6613 * target.c (supports_dumpcore, dumpcore): New
6614 functions.
6615 * target-delegates.c: Rebuild.
6616 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6617 and target_dumpcore ().
6618
6619 2020-08-13 Aaron Merey <amerey@redhat.com>
6620
6621 * debuginfod-support.c: Replace global variables with user_data.
6622
6623 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6624
6625 * maint.c (maintenance_selftest): Split args and pass array_view
6626 to run_tests.
6627
6628 2020-08-12 Luis Machado <luis.machado@linaro.org>
6629
6630 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6631 type's length.
6632 Use %s and pulongest to print the length.
6633
6634 2020-08-12 Pedro Alves <palves@redhat.com>
6635
6636 * NEWS: Move "Multi-target debugging support" item to the
6637 "Changes since GDB 9" section.
6638
6639 2020-08-12 Pedro Alves <palves@redhat.com>
6640
6641 PR gdb/26336
6642 * progspace.c (program_space::remove_objfile): Invalidate the
6643 frame cache.
6644
6645 2020-08-11 Tom de Vries <tdevries@suse.de>
6646
6647 * MAINTAINERS: Mark ms1 as deleted.
6648
6649 2020-08-10 Luis Machado <luis.machado@linaro.org>
6650
6651 PR gdb/26310
6652
6653 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6654 act accordingly.
6655 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6656 movz/str/stur/stp skipping behavior.
6657
6658 2020-08-10 Luis Machado <luis.machado@linaro.org>
6659
6660 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6661 struct user_sve_header instead of struct sve_context.
6662
6663 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6664
6665 * read.h (dwarf2_fetch_die_loc_sect_off,
6666 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6667 `void *` parameter with function_view.
6668 * read.c (dwarf2_fetch_die_loc_sect_off,
6669 dwarf2_fetch_die_loc_cu_off): Likewise.
6670 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6671 (per_cu_dwarf_call): Adjust.
6672 (get_frame_address_in_block_wrapper): Remove.
6673 (indirect_synthetic_pointer): Adjust.
6674 (get_ax_pc): Remove.
6675 (dwarf2_compile_expr_to_ax): Adjust.
6676
6677 2020-08-08 Tom de Vries <tdevries@suse.de>
6678
6679 PR build/26344
6680 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6681 constructor.
6682 * regcache.c (get_thread_arch_aspace_regcache): Same.
6683
6684 2020-08-07 Tom Tromey <tromey@adacore.com>
6685
6686 * ravenscar-thread.c
6687 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6688 New method.
6689 (ravenscar_thread_target::wait): Check
6690 runtime_initialized.
6691 (ravenscar_thread_target::prepare_to_store)
6692 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6693 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6694 (ravenscar_thread_target::stopped_by_watchpoint)
6695 (ravenscar_thread_target::stopped_data_address)
6696 (ravenscar_thread_target::core_of_thread): Use
6697 scoped_restore_current_thread and
6698 set_base_thread_from_ravenscar_task.
6699
6700 2020-08-07 Tom Tromey <tromey@adacore.com>
6701
6702 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6703
6704 2020-08-07 Tom Tromey <tromey@adacore.com>
6705
6706 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6707 update_inferior_ptid before update_thread_list.
6708 (temporarily_change_regcache_ptid): New class.
6709 (ravenscar_thread_target::fetch_registers)
6710 (ravenscar_thread_target::store_registers)
6711 (ravenscar_thread_target::prepare_to_store): Use base thread when
6712 forwarding operation.
6713
6714 2020-08-07 Tom Tromey <tromey@adacore.com>
6715
6716 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6717 "is_pid" case.
6718
6719 2020-08-07 Tom Tromey <tromey@adacore.com>
6720
6721 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6722 New methods.
6723 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6724 first.
6725 (ravenscar_thread_target::add_thread): Rename from
6726 ravenscar_add_thread.
6727 (ravenscar_thread_target::update_thread_list): Use a lambda.
6728 (ravenscar_thread_target::xfer_partial): New method.
6729
6730 2020-08-07 Tom Tromey <tromey@adacore.com>
6731
6732 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6733 gdb::function_view.
6734 (iterate_over_live_ada_tasks): Change type of argument.
6735 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6736 of argument.
6737
6738 2020-08-07 Tom Tromey <tromey@adacore.com>
6739
6740 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6741 Remove.
6742 (ravenscar_thread_target::extra_thread_info): Remove.
6743 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6744 defer to target beneath for non-Ravenscar threads.
6745
6746 2020-08-07 Tom Tromey <tromey@adacore.com>
6747
6748 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6749 get_base_thread_from_ravenscar_task>: Now methods.
6750 <m_cpu_map>: New member.
6751 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6752 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6753 (ravenscar_thread_target::task_is_currently_active): Update.
6754 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6755 Now a method.
6756 (ravenscar_thread_target::add_active_thread): Put initial thread
6757 into the m_cpu_map.
6758
6759 2020-08-07 Tom Tromey <tromey@adacore.com>
6760
6761 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6762 event_ptid.
6763
6764 2020-08-07 Tom Tromey <tromey@adacore.com>
6765
6766 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6767 runtime_initialized.
6768
6769 2020-08-07 Tom Tromey <tromey@adacore.com>
6770
6771 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6772 add_active_thread.
6773 (ravenscar_thread_target::add_active_thread): Now public.
6774 (ravenscar_inferior_created): Call add_active_thread after pushing
6775 the target.
6776
6777 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6778
6779 * regcache.c (ptid_regcache_map): New type.
6780 (target_ptid_regcache_map): New type.
6781 (regcaches): Change type to target_ptid_regcache_map.
6782 (get_thread_arch_aspace_regcache): Update to regcaches' new
6783 type.
6784 (regcache_thread_ptid_changed): Likewise.
6785 (registers_changed_ptid): Likewise.
6786 (regcaches_size): Likewise.
6787 (regcaches_test): Update.
6788 (regcache_thread_ptid_changed): Update.
6789 * regcache.h (regcache_up): New type.
6790 * gdbsupport/ptid.h (hash_ptid): New struct.
6791
6792 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * observable.h (thread_ptid_changed): Add parameter
6795 `process_stratum_target *`.
6796 * infrun.c (infrun_thread_ptid_changed): Add parameter
6797 `process_stratum_target *` and use it.
6798 (selftests): New namespace.
6799 (infrun_thread_ptid_changed): New function.
6800 (_initialize_infrun): Register selftest.
6801 * regcache.c (regcache_thread_ptid_changed): Add parameter
6802 `process_stratum_target *` and use it.
6803 (regcache_thread_ptid_changed): New function.
6804 (_initialize_regcache): Register selftest.
6805 * thread.c (thread_change_ptid): Pass target to
6806 thread_ptid_changed observable.
6807
6808 2020-08-06 Caroline Tice <cmtice@google.com>
6809
6810 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6811 (struct dwp_sections): Update field comments. Add loclists and
6812 rnglists fields.
6813 (struct virtual_v2_dwo_sections): Rename struct to
6814 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6815 size & offset fields for loclists and rnglists.
6816 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6817 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6818 skipping dummy type units.
6819 (create_dwp_hash_table): Update the large comment above the function to
6820 discuss Version 5 DWP files as well, with references. Update all the
6821 version checks in the function to check for version 5 as well. Add new
6822 section at the end to create dwp hash table for version 5.
6823 (create_dwp_v2_section): Rename function to
6824 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6825 Add V5 to error message text.
6826 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6827 into calls to create_dwp_v2_or_v5_section.
6828 (create_dwo_unit_in_dwp_v5): New function.
6829 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6830 check for version2; add else clause to handle version 5.
6831 (open_and_init_dwo_file): Add code to check dwarf version & only call
6832 create_debug_types_hash_table (with sections.types) if version is not 5;
6833 else call create_debug_type_hash_table, with sections.info.
6834 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6835 version 5.
6836 (dwarf2_locate_v5_dwp_sections): New function.
6837 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6838 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6839
6840 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6841
6842 * regcache.h (class regcache): Remove friend
6843 registers_changed_ptid.
6844 <regcache_thread_ptid_changed>: Remove.
6845 <regcaches>: Remove.
6846 * regcache.c (regcache::regcaches): Rename to...
6847 (regcaches): ... this. Make static.
6848 (get_thread_arch_aspace_regcache): Update.
6849 (regcache::regcache_thread_ptid_changed): Rename to...
6850 (regcache_thread_ptid_changed): ... this. Update.
6851 (class regcache_access): Remove.
6852 (regcaches_test): Update.
6853 (_initialize_regcache): Update.
6854 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6855 <forward_list>.
6856
6857 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * regcache.h (class regcache) <current_regcache>: Rename to...
6860 <regcaches>: ... this. Move doc here.
6861 * regcache.c (regcache::current_regcache) Rename to...
6862 (regcache::regcaches): ... this. Move doc to header.
6863 (get_thread_arch_aspace_regcache): Update.
6864 (regcache::regcache_thread_ptid_changed): Update.
6865 (registers_changed_ptid): Update.
6866 (class regcache_access) <current_regcache_size>: Rename to...
6867 <regcaches_size>: ... this.
6868 (current_regcache_test): Rename to...
6869 (regcaches_test): ... this.
6870 (_initialize_regcache): Update.
6871
6872 2020-08-06 Victor Collod <vcollod@nvidia.com>
6873
6874 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6875
6876 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6877
6878 * corelow.c (core_target::build_file_mappings): Don't output
6879 null pathname in warning.
6880
6881 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6882
6883 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6884 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6885 gdb.dwarf2/dw2-single-line-discriminators.exp,
6886 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6887
6888 2020-08-05 Tom Tromey <tromey@adacore.com>
6889
6890 PR rust/26197:
6891 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6892 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6893 Fix off-by-one and type size errors in ordinary case.
6894
6895 2020-08-05 Tom de Vries <tdevries@suse.de>
6896
6897 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6898 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6899
6900 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6901
6902 * frame.h (frame_id_p): Return bool.
6903 (frame_id_artificial_p): Return bool.
6904 (frame_id_eq): Return bool.
6905 (has_stack_frames): Return bool.
6906 (get_selected_frame): Fix typo in comment.
6907 (get_frame_pc_if_available): Return bool.
6908 (get_frame_address_in_block_if_available): Return bool.
6909 (get_frame_func_if_available): Return bool.
6910 (read_frame_register_unsigned): Return bool.
6911 (get_frame_register_bytes): Return bool.
6912 (safe_frame_unwind_memory): Return bool.
6913 (deprecated_frame_register_read): Return bool.
6914 (frame_unwinder_is): Return bool.
6915 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6916 bool.
6917 <this_id::p>: Likewise.
6918 <prev_p>: Likewise.
6919 (frame_stash_add): Return bool.
6920 (get_frame_id): Use bool.
6921 (frame_id_build_special) Use bool.
6922 (frame_id_build_unavailable_stack): Use bool.
6923 (frame_id_build): Use bool.
6924 (frame_id_p): Return bool, use true/false instead of 1/0.
6925 (frame_id_artificial_p): Likewise.
6926 (frame_id_eq): Likewise.
6927 (frame_id_inner): Likewise.
6928 (get_frame_func_if_available): Likewise.
6929 (read_frame_register_unsigned): Likewise.
6930 (deprecated_frame_register_read): Likewise.
6931 (get_frame_register_bytes): Likewise.
6932 (has_stack_frames): Likewise.
6933 (inside_main_func): Likewise.
6934 (inside_entry_func): Likewise.
6935 (get_frame_pc_if_available): Likewise.
6936 (get_frame_address_in_block_if_available): Likewise.
6937 (frame_unwinder_is): Likewise.
6938 (safe_frame_unwind_memory): Likewise.
6939 (frame_unwind_arch): Likewise.
6940
6941 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6942
6943 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6944 type to cached_copy_status.
6945 (fprintf_frame): Adjust.
6946 (get_frame_func_if_available): Adjust.
6947 (frame_cleanup_after_sniffer): Adjust.
6948
6949 2020-08-04 Mark Wielaard <mark@klomp.org>
6950
6951 * MAINTAINERS (Write After Approval): Update email address.
6952
6953 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6954
6955 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6956 dynamic_prop::const_val.
6957
6958 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6959
6960 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6961 dynamic_prop::kind.
6962
6963 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6964
6965 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6966
6967 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6968
6969 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6970
6971 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6972 Jose E. Marchesi <jose.marchesi@oracle.com>
6973
6974 * configure.tgt: Add entry for bpf-*-*.
6975 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6976 (ALLDEPFILES): Add bpf-tdep.c.
6977 * bpf-tdep.c: New file.
6978 * MAINTAINERS: Add bpf target and maintainer.
6979 * NEWS: Mention the support for the new target.
6980
6981 2020-08-04 Tom de Vries <tdevries@suse.de>
6982
6983 PR symtab/23270
6984 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6985 Error.
6986
6987 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6988
6989 * syscalls/freebsd.xml: Regenerate.
6990
6991 2020-08-03 John Baldwin <jhb@FreeBSD.org>
6992
6993 * syscalls/update-freebsd.sh: Fix usage and year range.
6994
6995 2020-08-03 Tom de Vries <tdevries@suse.de>
6996
6997 PR symtab/26333
6998 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6999 DW_LNE_lo_user/DW_LNE_hi_user range.
7000
7001 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
7002
7003 PR ada/26318
7004 * ada-lang.c (ada_modulus): Return 0 if property is not of const
7005 kind.
7006
7007 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7008
7009 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
7010
7011 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7012
7013 * breakpoint.c (set_breakpoint_condition): Update the condition
7014 expressions after checking that the input condition string parses
7015 successfully and does not contain junk at the end.
7016
7017 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7018
7019 * breakpoint.c (set_breakpoint_condition): Update the
7020 condition string after parsing the new condition successfully.
7021
7022 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7023
7024 * proc-api.c (_STRUCTURED_PROC): Don't define.
7025 * proc-events.c: Likewise.
7026 * proc-flags.c: Likewise.
7027 * proc-why.c: Likewise.
7028 * procfs.c: Likewise.
7029
7030 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
7031 * configure, config.in: Regenerate.
7032
7033 2020-07-30 Tom de Vries <tdevries@suse.de>
7034
7035 PR build/26320
7036 * ui-style.h (struct ui_file_style::color): Wrap m_value and
7037 m_red/m_green/m_blue in a union.
7038
7039 2020-07-29 Tom de Vries <tdevries@suse.de>
7040
7041 PR tdep/26280
7042 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
7043
7044 2020-07-28 Tom Tromey <tromey@adacore.com>
7045
7046 PR symtab/26270:
7047 * symtab.h (find_pc_partial_function_sym): Declare.
7048 * cli/cli-cmds.c (disassemble_command): Use
7049 find_pc_partial_function_sym. Check asm_demangle.
7050 * blockframe.c (cache_pc_function_sym): New global.
7051 (cache_pc_function_name): Remove.
7052 (clear_pc_function_cache): Update.
7053 (find_pc_partial_function_sym): New function, from
7054 find_pc_partial_function.
7055 (find_pc_partial_function): Rewrite using
7056 find_pc_partial_function_sym.
7057
7058 2020-07-28 Tom Tromey <tromey@adacore.com>
7059
7060 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
7061 help. Add usage.
7062
7063 2020-07-28 Tom Tromey <tromey@adacore.com>
7064
7065 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
7066 <DW_OP_GNU_variable_value>: Cast to address type.
7067
7068 2020-07-28 Kamil Rytarowski <n54@gmx.com>
7069
7070 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
7071 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
7072 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
7073 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
7074 (nbsd_get_siginfo_type): New.
7075 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7076 (_initialize_nbsd_tdep): New.
7077
7078 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
7079
7080 PR binutils/26301
7081 * configure: Regenerated.
7082
7083 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
7084
7085 PR binutils/26301
7086 * configure: Regenerated.
7087
7088 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7089
7090 * python/py-frame.c: Remove 'user-regs.h' include.
7091 (frapy_read_register): Rewrite to make use of
7092 gdbpy_parse_register_id.
7093 * python/py-registers.c (gdbpy_parse_register_id): New function,
7094 moved here from python/py-unwind.c. Updated the return type, and
7095 also accepts register descriptor objects.
7096 * python/py-unwind.c: Remove 'user-regs.h' include.
7097 (pyuw_parse_register_id): Moved to python/py-registers.c.
7098 (unwind_infopy_add_saved_register): Update to use
7099 gdbpy_parse_register_id.
7100 (pending_framepy_read_register): Likewise.
7101 * python/python-internal.h (gdbpy_parse_register_id): Declare.
7102
7103 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7104
7105 * python/py-registers.c: Add 'user-regs.h' include.
7106 (register_descriptor_iter_find): New function.
7107 (register_descriptor_iterator_object_methods): New static global
7108 methods array.
7109 (register_descriptor_iterator_object_type): Add pointer to methods
7110 array.
7111
7112 2020-07-27 John Baldwin <jhb@FreeBSD.org>
7113
7114 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
7115 for all architectures on FreeBSD 11.3 and later.
7116
7117 2020-07-27 Tom Tromey <tromey@adacore.com>
7118
7119 * gcore.h (load_corefile): Don't declare.
7120
7121 2020-07-27 Tom de Vries <tdevries@suse.de>
7122
7123 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
7124 * config.in: Regenerate.
7125 * configure: Regenerate.
7126
7127 2020-07-26 Eli Zaretskii <eliz@gnu.org>
7128
7129 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
7130 ws2tcpip.h. When checking whether socklen_t type is defined, use
7131 ws2tcpip.h if it is available and sys/socket.h isn't.
7132 * configure: Regenerate.
7133 * config.in: Regenerate.
7134
7135 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
7136
7137 PR fortran/23051
7138 PR fortran/26139
7139 * valops.c (value_ind): Pass address to
7140 readjust_indirect_value_type.
7141 * value.c (readjust_indirect_value_type): Make parameter
7142 non-const, and add extra address parameter. Resolve original type
7143 before using it.
7144 * value.h (readjust_indirect_value_type): Update function
7145 signature and comment.
7146
7147 2020-07-25 Tom de Vries <tdevries@suse.de>
7148
7149 PR symtab/26243
7150 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
7151 entries.
7152
7153 2020-07-24 Aaron Merey <amerey@redhat.com>
7154
7155 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
7156 * configure: Rebuild.
7157
7158 2020-07-23 Kevin Buettner <kevinb@redhat.com>
7159
7160 PR corefiles/26294
7161 * corelow.c (_initialize_corelow): Add period to help text
7162 for "maintenance print core-file-backed-mappings".
7163
7164 2020-07-23 Pedro Alves <pedro@palves.net>
7165
7166 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
7167 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
7168 meanwhile.
7169 * frame.c (frame_cache_generation, get_frame_cache_generation):
7170 New.
7171 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7172 (get_prev_frame_if_no_cycle): On exception, don't touch
7173 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7174 * frame.h (get_frame_cache_generation): Declare.
7175
7176 2020-07-23 Tom de Vries <tdevries@suse.de>
7177
7178 PR tui/26282
7179 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7180 New default constructor.
7181
7182 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7183
7184 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7185 exclude non-statement entries.
7186
7187 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7188
7189 * NEWS (New commands): Mention new command
7190 "maintenance print core-file-backed-mappings".
7191
7192 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7193
7194 * corelow.c (gdbcmd.h): Include.
7195 (core_target::info_proc_mappings): New method.
7196 (get_current_core_target): New function.
7197 (maintenance_print_core_file_backed_mappings): New function.
7198 (_initialize_corelow): Add core-file-backed-mappings to
7199 "maint print" commands.
7200
7201 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7202
7203 * linux-tdep.c (dump_note_entry_p): New function.
7204 (linux_dump_mapping_p_ftype): New typedef.
7205 (linux_find_memory_regions_full): Add new parameter,
7206 should_dump_mapping_p.
7207 (linux_find_memory_regions): Adjust call to
7208 linux_find_memory_regions_full.
7209 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7210 call to linux_find_memory_regions_full.
7211
7212 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7213
7214 * corelow.c (solist.h, unordered_map): Include.
7215 (class core_target): Add field m_core_file_mappings and
7216 method build_file_mappings.
7217 (core_target::core_target): Call build_file_mappings.
7218 (core_target::~core_target): Free memory associated with
7219 m_core_file_mappings.
7220 (core_target::build_file_mappings): New method.
7221 (core_target::xfer_partial): Use m_core_file_mappings
7222 for memory transfers.
7223 * linux-tdep.c (linux_read_core_file_mappings): New
7224 function.
7225 (linux_core_info_proc_mappings): Rewrite to use
7226 linux_read_core_file_mappings.
7227 (linux_init_abi): Register linux_read_core_file_mappings.
7228
7229 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7230
7231 * arch-utils.c (default_read_core_file_mappings): New function.
7232 * arch-utils.c (default_read_core_file_mappings): Declare.
7233 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7234 * gdbarch.h, gdbarch.c: Regenerate.
7235
7236 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7237
7238 PR corefiles/25631
7239 * corelow.c (core_target:xfer_partial): Revise
7240 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7241 case after first checking the stratum beneath the core
7242 target.
7243 (has_all_memory): Return true.
7244 * target.c (raw_memory_xfer_partial): Revise comment
7245 regarding use of has_all_memory.
7246
7247 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7248
7249 * exec.h (section_table_xfer_memory): Revise declaration,
7250 replacing section name parameter with an optional callback
7251 predicate.
7252 * exec.c (section_table_xfer_memory): Likewise.
7253 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7254 of section_table_xfer_memory.
7255
7256 2020-07-22 Tom Tromey <tromey@adacore.com>
7257
7258 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7259 lookup_symbol_search_name.
7260
7261 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7262
7263 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7264 redundant local variable.
7265 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7266 reference, not pointer, update code accordingly.
7267
7268 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7269 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7270
7271 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7272 * jit.c (jit_breakpoint_re_set_internal): Use the
7273 `skip_jit_symbol_lookup` field.
7274
7275 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7276 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7277
7278 * jit.c (jit_read_descriptor): Define the descriptor address once,
7279 use twice.
7280 (jit_breakpoint_deleted): Move the declaration of the loop variable
7281 `iter` into the loop header.
7282 (jit_breakpoint_re_set_internal): Move the declaration of the local
7283 variable `objf_data` to the first point of definition.
7284 (jit_event_handler): Move the declaration of local variables
7285 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7286 Rename `objf` to `jited`.
7287
7288 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7289
7290 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7291 Remove.
7292 * jit.c (get_jiter_objfile_data): Update.
7293
7294 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7295 Simon Marchi <simon.marchi@polymtl.ca>
7296
7297 * jit.c (struct jit_program_space_data): Remove.
7298 (jit_program_space_key): Remove.
7299 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7300 stuff.
7301 (get_jit_program_space_data): Remove.
7302 (jit_breakpoint_deleted): Iterate on all of the program space's
7303 objfiles.
7304 (jit_inferior_init): Likewise.
7305 (jit_breakpoint_re_set_internal): Likewise. Also change return
7306 type to void.
7307 (jit_breakpoint_re_set): Pass current_program_space to
7308 jit_breakpoint_re_set_internal.
7309
7310 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7311
7312 * jit.h (struct jiter_objfile_data) <cached_code_address,
7313 jit_breakpoint>: Move to here from ...
7314 * jit.c (jit_program_space_data): ... here.
7315 (jiter_objfile_data::~jiter_objfile_data): Update.
7316 (jit_breakpoint_deleted): Update.
7317 (jit_breakpoint_re_set_internal): Update.
7318
7319 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7320
7321 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7322 checks.
7323 (jit_read_descriptor): Remove NULL check.
7324 (jit_event_handler): Add an assertion.
7325
7326 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7327
7328 * jit.h (struct jit_objfile_data): Split into...
7329 (struct jiter_objfile_data): ... this ...
7330 (struct jited_objfile_data): ... and this.
7331 * objfiles.h (struct objfile) <jit_data>: Remove.
7332 <jiter_data, jited_data>: New fields.
7333 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7334 (jiter_objfile_data::~jiter_objfile_data): ... this.
7335 (get_jit_objfile_data): Rename to ...
7336 (get_jiter_objfile_data): ... this.
7337 (add_objfile_entry): Update.
7338 (jit_read_descriptor): Use get_jiter_objfile_data.
7339 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7340 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7341 (jit_inferior_exit_hook): Use objfile's jited_data field.
7342
7343 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7344
7345 * jit.h: Forward-declare `struct minimal_symbol`.
7346 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7347 constructor, destructor, and an objfile* field.
7348 * jit.c (jit_objfile_data): Remove.
7349 (struct jit_objfile_data): Migrate from here to jit.h.
7350 (jit_objfile_data::~jit_objfile_data): New destructor
7351 implementation with code moved from free_objfile_data.
7352 (free_objfile_data): Delete.
7353 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7354 (jit_find_objf_with_entry_addr): Ditto.
7355 (jit_inferior_exit_hook): Ditto.
7356 (_initialize_jit): Remove the call to
7357 register_objfile_data_with_cleanup.
7358 * objfiles.h (struct objfile) <jit_data>: New field.
7359
7360 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7361
7362 * jit.h: Forward-declare `struct objfile`.
7363 (jit_event_handler): Add a second parameter, the JITer objfile.
7364 * jit.c (jit_read_descriptor): Change the signature to take the
7365 JITer objfile as an argument instead of the jit_program_space_data.
7366 (jit_inferior_init): Update the call to jit_read_descriptor.
7367 (jit_event_handler): Use the new JITer objfile argument when calling
7368 jit_read_descriptor.
7369 * breakpoint.c (handle_jit_event): Update the call to
7370 jit_event_handler to pass the JITer objfile.
7371
7372 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7373
7374 * gdbarch.c: Regenerate.
7375 * gdbarch.h: Regenerate.
7376 * gdbarch.sh (handle_segmentation_fault): Remove method.
7377 * infrun.c (handle_segmentation_fault): Remove.
7378 (print_signal_received_reason): Remove call to
7379 handle_segmentation_fault.
7380
7381 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7382
7383 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7384 Rename to sparc64_linux_report_signal_info and add siggnal
7385 argument.
7386 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7387 instead of sparc64_linux_handle_segmentation_fault.
7388
7389 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7390
7391 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7392 i386_linux_report_signal_info instead of
7393 i386_linux_handle_segmentation_fault.
7394 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7395 to i386_linux_report_signal_info and add siggnal argument.
7396 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7397 of i386_linux_handle_segmentation_fault.
7398 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7399 to i386_linux_report_signal_info and add siggnal argument.
7400
7401 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7402
7403 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7404 hook if present.
7405
7406 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7407
7408 * gdbarch.c: Regenerate.
7409 * gdbarch.h: Regenerate.
7410 * gdbarch.sh (report_signal_info): New method.
7411 * infrun.c (print_signal_received_reason): Invoke gdbarch
7412 report_signal_info hook if present.
7413
7414 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * python/py-registers.c : Add 'unordered_map' include.
7417 (gdbpy_new_reggroup): Renamed to...
7418 (gdbpy_get_reggroup): ...this. Update to only create register
7419 group descriptors when needed.
7420 (gdbpy_reggroup_iter_next): Update.
7421
7422 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7423
7424 * python/py-registers.c (gdbpy_register_object_data): New static
7425 global.
7426 (gdbpy_register_object_data_init): New function.
7427 (gdbpy_new_register_descriptor): Renamed to...
7428 (gdbpy_get_register_descriptor): ...this, and update to reuse
7429 existing register descriptors where possible.
7430 (gdbpy_register_descriptor_iter_next): Update.
7431 (gdbpy_initialize_registers): Register new gdbarch data.
7432
7433 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7434
7435 * linux-nat.c (stopped_pids): Make static.
7436
7437 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7438
7439 PR ada/26235
7440 * gdbtypes.c (ada_discrete_type_low_bound,
7441 ada_discrete_type_high_bound): Handle undefined bounds.
7442
7443 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7444
7445 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7446 declaration.
7447 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7448 function.
7449
7450 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7451
7452 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7453 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7454 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7455 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7456 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7457 method.
7458
7459 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7460
7461 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7462 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7463 which are deprecated in Guile 3.0.
7464 * configure.ac (try_guile_versions): Add "guile-3.0".
7465 * configure (try_guile_versions): Regenerate.
7466 * NEWS: Update entry.
7467
7468 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7469 Doug Evans <dje@google.com>
7470
7471 PR gdb/21104
7472 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7473 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7474 USING_GUILE_BEFORE_2_2.
7475 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7476 Change type to 'scm_t_port_type *'.
7477 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7478 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7479 parameter and honor it. Update callers.
7480 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7481 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7482 functions.
7483 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7484 USING_GUILE_BEFORE_2_2.
7485 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7486 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7487 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7488 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7489 and 'SCM_PORT_TYPE'.
7490 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7491 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7492 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7493 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7494 [!USING_GUILE_BEFORE_2_2]: New functions.
7495 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7496 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7497 'gdbscm_memory_port_read'.
7498 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7499 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7500 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7501 function.
7502 (ioscm_init_memory_port): Remove.
7503 (ioscm_init_memory_port_stream): New function
7504 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7505 function.
7506 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7507 Return scm_from_uint (0).
7508 (gdbscm_set_memory_port_read_buffer_size_x)
7509 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7510 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7511 Return scm_from_uint (0).
7512 (gdbscm_set_memory_port_write_buffer_size_x)
7513 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7514 * configure.ac (try_guile_versions): Add "guile-2.2".
7515 * configure: Regenerate.
7516 * NEWS: Add entry.
7517
7518 2020-07-18 Tom Tromey <tom@tromey.com>
7519
7520 * linux-nat.c (linux_multi_process): Remove.
7521 (linux_nat_target::supports_multi_process): Return true.
7522
7523 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7524
7525 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7526 (riscv_lookup_target_description): Return pointer out of
7527 unique_ptr.
7528 * target-descriptions.c (allocate_target_description): Add
7529 comment.
7530 (target_desc_deleter::operator()): Likewise.
7531 * target-descriptions.h (struct target_desc_deleter): Moved to
7532 gdbsupport/tdesc.h.
7533 (target_desc_up): Likewise.
7534
7535 2020-07-17 Tom Tromey <tromey@adacore.com>
7536
7537 * linux-nat.c (linux_nat_target::supports_non_stop)
7538 (linux_nat_target::always_non_stop_p): Use "true".
7539 (linux_nat_target::supports_disable_randomization): Use "true" and
7540 "false".
7541
7542 2020-07-16 Caroline Tice <cmtice@google.com>
7543
7544 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7545 (RNGLIST_HEADER_SIZE64): New constant definition.
7546 (struct dwop_section_names): Add rnglists_dwo.
7547 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7548 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7549 (struct dwo_sections): Add rnglists field.
7550 (read_attribut_reprocess): Add tag parameter.
7551 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7552 (cu_debug_rnglists_section): New function (decl & definition).
7553 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7554 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7555 die whose range is being checked; get rnglist section from
7556 cu_debug_rnglists_section, to get from either objfile or dwo file as
7557 appropriate. Add cases for DW_RLE_base_addressx,
7558 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7559 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7560 test inside if-condition and updating complaint message.
7561 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7562 dwarf2_rnglists_process.
7563 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7564 dwarf2_ranges_process.
7565 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7566 need_ranges_base and update comment appropriately. Also pass die tag
7567 to dwarf2_ranges_read.
7568 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7569 need_ranges_base and update comment appropriately. Also pass die tag
7570 to dwarf2_ranges_process.
7571 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7572 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7573 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7574 need_ranges_base and update comment appropriately. Also pass die tag
7575 to read_attribute_reprocess and dwarf2_ranges_read.
7576 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7577 and update function comment appropriately.
7578 (read_loclist_index): Call read_loclists_rnglists_header instead of
7579 read_loclist_header.
7580 (read_rnglist_index): New function.
7581 (read_attribute_reprocess): Add tag parameter. Add code for
7582 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7583 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7584
7585 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7586
7587 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7588 being resolved.
7589
7590 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7591
7592 * arch-utils.c (show_architecture): Update formatting of messages.
7593
7594 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7595
7596 * gdbtypes.h (struct type) <bounds>: Handle array and string
7597 types.
7598 * ada-lang.c (assign_aggregate): Use type::bounds on
7599 array/string type.
7600 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7601 * c-varobj.c (c_number_of_children): Likewise.
7602 (c_describe_child): Likewise.
7603 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7604 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7605 (f_type_print_base): Likewise.
7606 * f-valprint.c (f77_array_offset_tbl): Likewise.
7607 (f77_get_upperbound): Likewise.
7608 (f77_print_array_1): Likewise.
7609 * guile/scm-type.c (gdbscm_type_range): Likewise.
7610 * m2-typeprint.c (m2_array): Likewise.
7611 (m2_is_long_set_of_type): Likewise.
7612 * m2-valprint.c (get_long_set_bounds): Likewise.
7613 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7614 * python/py-type.c (typy_range): Likewise.
7615 * rust-lang.c (rust_internal_print_type): Likewise.
7616 * type-stack.c (type_stack::follow_types): Likewise.
7617 * valarith.c (value_subscripted_rvalue): Likewise.
7618 * valops.c (value_cast): Likewise.
7619
7620 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7621
7622 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7623 callers to use the equivalent accessor methods.
7624
7625 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7628 (struct type) <bit_stride>: New method.
7629 (TYPE_BIT_STRIDE): Remove.
7630 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7631
7632 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7633
7634 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7635 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7636 callers to use the equivalent accessor methods instead.
7637
7638 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7639
7640 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7641 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7642 callers to use the equivalent accessor methods instead.
7643
7644 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7645
7646 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7647 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7648 to use dynamic_prop::kind.
7649
7650 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7653 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7654 to get the bound property's kind and check against
7655 PROP_UNDEFINED.
7656
7657 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7658
7659 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7660 all callers to use type::range_bounds followed by
7661 dynamic_prop::{low,high}.
7662
7663 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7664
7665 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7666 const_val, set_const_val, baton, set_locexpr, set_loclist,
7667 set_addr_offset, variant_parts, set_variant_parts,
7668 original_type, set_original_type>: New methods.
7669 <kind>: Rename to...
7670 <m_kind>: ... this. Update all users to use the new methods
7671 instead.
7672 <data>: Rename to...
7673 <m_data>: ... this. Update all users to use the new methods
7674 instead.
7675
7676 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * gdbtypes.c (get_discrete_bounds): Return failure if
7679 the range type's bounds are not both defined and constant
7680 values.
7681 (get_array_bounds): Update comment. Remove undefined bound check.
7682
7683 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7684
7685 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7686 the type::bounds method directly.
7687
7688 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7689
7690 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7691 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7692 are used to set the range type's bounds to use set_bounds.
7693
7694 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7695
7696 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7697
7698 2020-07-10 Pedro Alves <pedro@palves.net>
7699
7700 * gdbthread.h (inferior_ref): Define.
7701 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7702 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7703 * thread.c
7704 (scoped_restore_current_thread::restore):
7705 Adjust to gdb::ref_ptr.
7706 (scoped_restore_current_thread::~scoped_restore_current_thread):
7707 Remove manual decref handling.
7708 (scoped_restore_current_thread::scoped_restore_current_thread):
7709 Adjust to use
7710 inferior_ref::new_reference/thread_info_ref::new_reference.
7711 Incref the thread before calling get_frame_id instead of after.
7712 Let TARGET_CLOSE_ERROR propagate.
7713
7714 2020-07-10 Pedro Alves <pedro@palves.net>
7715
7716 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7717 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7718 NOT_AVAILABLE_ERROR.
7719 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7720 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7721
7722 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7723 Pedro Alves <pedro@palves.net>
7724
7725 PR gdb/26199
7726 * infrun.c (threads_are_resumed_pending_p): Delete.
7727 (do_target_wait): Remove threads_are_executing and
7728 threads_are_resumed_pending_p checks from the inferior_matches
7729 lambda. Update comments.
7730
7731 2020-07-10 Pedro Alves <pedro@palves.net>
7732
7733 PR gdb/26199
7734 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7735 executing threads.
7736
7737 2020-07-10 Pedro Alves <pedro@palves.net>
7738
7739 PR gdb/26199
7740 * infrun.c (handle_no_resumed): Handle multiple targets.
7741
7742 2020-07-10 Pedro Alves <pedro@palves.net>
7743
7744 PR gdb/26199
7745 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7746 target_is_async_p.
7747
7748 2020-07-10 Pedro Alves <pedro@palves.net>
7749
7750 PR gdb/26199
7751 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7752 threads, not all threads.
7753
7754 2020-07-10 Pedro Alves <pedro@palves.net>
7755
7756 PR gdb/26199
7757 * remote.c (remote_target::open_1): Pass remote target pointer as
7758 data to create_async_event_handler.
7759 (remote_async_inferior_event_handler): Mark async event handler
7760 before returning if the remote target still has either pending
7761 events or unacknowledged notifications.
7762
7763 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7764
7765 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7766 declaration.
7767 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7768 function.
7769
7770 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7771
7772 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7773 inferior_ptid.
7774
7775 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7776
7777 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7778 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7779 AT_FREEBSD_PS_STRINGS.
7780
7781 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7782
7783 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7784 of debugfile path on Windows.
7785
7786 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7787
7788 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7789 argument to 'data'.
7790
7791 2020-07-08 Tom Tromey <tromey@adacore.com>
7792
7793 * ada-lang.c (ada_exception_message_1): Use read_memory.
7794
7795 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7796
7797 PR python/22748
7798 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7799 special handling for inline frames.
7800 * findvar.c (value_of_register_lazy): Skip inline frames when
7801 creating lazy register values.
7802 * frame.c (frame_id_computed_p): Delete definition.
7803 * frame.h (frame_id_computed_p): Delete declaration.
7804
7805 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 * NEWS: Mention additions to Python API.
7808 * python/py-arch.c (archpy_register_groups): New function.
7809 (arch_object_methods): Add 'register_groups' method.
7810 * python/py-registers.c (reggroup_iterator_object): New struct.
7811 (reggroup_object): New struct.
7812 (gdbpy_new_reggroup): New function.
7813 (gdbpy_reggroup_to_string): New function.
7814 (gdbpy_reggroup_name): New function.
7815 (gdbpy_reggroup_iter): New function.
7816 (gdbpy_reggroup_iter_next): New function.
7817 (gdbpy_new_reggroup_iterator): New function
7818 (gdbpy_initialize_registers): Register new types.
7819 (reggroup_iterator_object_type): Define new Python type.
7820 (gdbpy_reggroup_getset): New static global.
7821 (reggroup_object_type): Define new Python type.
7822 * python/python-internal.h
7823
7824 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7825
7826 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7827 * python/py-arch.c (archpy_registers): New function.
7828 (arch_object_methods): Add 'registers' method.
7829 * python/py-registers.c: New file.
7830 * python/python-internal.h
7831 (gdbpy_new_register_descriptor_iterator): Declare.
7832 (gdbpy_initialize_registers): Declare.
7833 * python/python.c (do_start_initialization): Call
7834 gdbpy_initialize_registers.
7835 * NEWS: Mention additions to the Python API.
7836
7837 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7838
7839 * NEWS: Mention new Python API method.
7840 * python/py-unwind.c (pending_framepy_architecture): New function.
7841 (pending_frame_object_methods): Add architecture method.
7842
7843 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7844
7845 * gdbarch.c: Regenerate.
7846 * gdbarch.h: Regenerate.
7847 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7848 (gdbarch_data): Use internal_error for the case where
7849 deprecated_set_gdbarch_data was originally needed.
7850 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7851 and use passed in obstack.
7852 (libunwind_frame_set_descr): Should no longer get back NULL from
7853 gdbarch_data.
7854 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7855 type.
7856 * user-regs.c (user_regs_init): Update parameters, and use passed
7857 in obstack.
7858 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7859 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7860
7861 2020-07-06 Tom de Vries <tdevries@suse.de>
7862
7863 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7864 End-Of-Sequence in lte_is_less_than.
7865 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7866 "gdb: Don't reorder line table entries too much when sorting".
7867
7868 2020-07-06 Tom de Vries <tdevries@suse.de>
7869
7870 PR tui/26205
7871 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7872
7873 2020-07-05 Tom de Vries <tdevries@suse.de>
7874
7875 PR build/26187
7876 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7877 std::uncaught_exceptions instead of deprecated
7878 std::uncaught_exception.
7879
7880 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7881
7882 * macroexp.h (macro_stringify): Return
7883 gdb::unique_xmalloc_ptr<char>.
7884 * macroexp.c (macro_stringify): Likewise.
7885 * macrotab.c (fixup_definition): Update.
7886
7887 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7888
7889 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7890 (lex_one_token): Update.
7891 * macroexp.c (struct macro_buffer) <release>: Return
7892 gdb::unique_xmalloc_ptr<char>.
7893 (macro_stringify): Update.
7894 (macro_expand): Update.
7895 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7896 * macroexp.h (macro_expand_next): Likewise.
7897
7898 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7899
7900 * macroexp.h (macro_lookup_ftype): Remove.
7901 (macro_expand, macro_expand_once, macro_expand_next): Remove
7902 lookup function parameters, add scope parameter.
7903 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7904 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7905 * macroscope.h (standard_macro_lookup): Change parameter type
7906 to macro_scope.
7907 * macroscope.c (standard_macro_lookup): Likewise.
7908 * c-exp.y (lex_one_token): Update.
7909 * macrocmd.c (macro_expand_command): Likewise.
7910 (macro_expand_once_command): Likewise.
7911
7912 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7913
7914 * inf-loop.c (inferior_event_handler): Remove client_data param.
7915 * inf-loop.h (inferior_event_handler): Likewise.
7916 * infcmd.c (step_1): Adjust.
7917 * infrun.c (proceed): Adjust.
7918 (fetch_inferior_event): Remove client_data param.
7919 (infrun_async_inferior_event_handler): Adjust.
7920 * infrun.h (fetch_inferior_event): Remove `void *` param.
7921 * linux-nat.c (handle_target_event): Adjust.
7922 * record-btrace.c (record_btrace_handle_async_inferior_event):
7923 Adjust.
7924 * record-full.c (record_full_async_inferior_event_handler):
7925 Adjust.
7926 * remote.c (remote_async_inferior_event_handler): Adjust.
7927
7928 2020-07-01 Tom Tromey <tom@tromey.com>
7929
7930 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7931 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7932
7933 2020-07-01 Tom Tromey <tom@tromey.com>
7934
7935 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7936 tui_gen_win_info.
7937 (tui_win_info::make_window): Merge with
7938 tui_gen_win_info::make_window.
7939 (tui_win_info::make_visible): Move from tui_gen_win_info.
7940 * tui/tui-win.c (tui_win_info::max_width): Move from
7941 tui_gen_win_info.
7942 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7943 type.
7944 <window_factory>: Likewise.
7945 * tui/tui-layout.c (tui_win_info::resize): Move from
7946 tui_gen_win_info.
7947 (make_standard_window): Change return type.
7948 (get_locator_window, tui_get_window_by_name): Likewise.
7949 (tui_layout_window::apply): Remove a cast.
7950 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7951 (struct tui_win_info): Merge with tui_gen_win_info.
7952 (struct tui_gen_win_info): Remove.
7953
7954 2020-07-01 Tom Tromey <tom@tromey.com>
7955
7956 * tui/tui-stack.h (struct tui_locator_window): Derive from
7957 tui_win_info.
7958 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7959 <can_box>: New method.
7960
7961 2020-07-01 Tom Tromey <tom@tromey.com>
7962
7963 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7964
7965 2020-07-01 Tom Tromey <tom@tromey.com>
7966
7967 * tui/tui-regs.c (tui_data_window::display_registers_from)
7968 (tui_data_window::display_registers_from)
7969 (tui_data_window::first_data_item_displayed)
7970 (tui_data_window::delete_data_content_windows): Update.
7971 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7972 Remove.
7973 (tui_data_window::check_register_values): Update.
7974 (tui_data_item_window::rerender): Add parameters. Update.
7975 (tui_data_item_window::refresh_window): Remove.
7976 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7977 virtual.
7978 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7979 tui_gen_win_info.
7980 <refresh_window, max_height, min_height>: Remove.
7981 <rerender>: Add parameters.
7982 <x, y, visible>: New members.
7983 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7984 <m_item_width>: New member.
7985
7986 2020-07-01 Tom Tromey <tom@tromey.com>
7987
7988 * tui/tui-regs.c (tui_data_window::show_register_group)
7989 (tui_data_window::check_register_values): Update.
7990 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7991 from item_no.
7992
7993 2020-07-01 Tom Tromey <tom@tromey.com>
7994
7995 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7996 useless "if".
7997
7998 2020-07-01 Tom Tromey <tom@tromey.com>
7999
8000 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
8001 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
8002
8003 2020-07-01 Tom Tromey <tom@tromey.com>
8004
8005 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
8006 * tui/tui-winsource.h (enum tui_line_or_address_kind)
8007 (struct tui_line_or_address): Move from tui-data.h.
8008 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
8009 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
8010 (tui_cmd_window, tui_source_window_base, tui_source_window)
8011 (tui_disasm_window): Don't declare.
8012 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
8013 to tui-winsource.h.
8014 (SINGLE_KEY): Move to tui-stack.c.
8015
8016 2020-07-01 Tom Tromey <tom@tromey.com>
8017
8018 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
8019 std::string.
8020 * tui/tui-regs.c (class tab_expansion_file): New.
8021 (tab_expansion_file::write): New method.
8022 (tui_register_format): Change return type. Use
8023 tab_expansion_file.
8024 (tui_get_register, tui_data_window::display_registers_from)
8025 (tui_data_item_window::rerender): Update.
8026 * tui/tui-io.h (tui_expand_tabs): Don't declare.
8027 * tui/tui-io.c (tui_expand_tabs): Remove.
8028
8029 2020-07-01 Tom Tromey <tom@tromey.com>
8030
8031 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
8032
8033 2020-07-01 Fangrui Song <maskray@google.com>
8034
8035 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
8036
8037 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8038
8039 * dwarf2/read.c (set_die_type): Removed conditions to restrict
8040 forms for DW_AT_associated and DW_AT_allocated attributes,
8041 which is already checked in function attr_to_dynamic_prop.
8042
8043 2020-06-30 Tom Tromey <tromey@adacore.com>
8044
8045 * dwarf2/read.c (quirk_rust_enum): Correctly call
8046 alloc_rust_variant for default-less enum.
8047
8048 2020-06-30 Tom Tromey <tromey@adacore.com>
8049
8050 PR build/26183:
8051 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
8052 gdb::to_string.
8053
8054 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
8055
8056 * gdbarch.sh (displaced_step_copy_insn): Update doc.
8057 * gdbarch.h: Re-generate.
8058
8059 2020-06-28 Tom Tromey <tom@tromey.com>
8060
8061 * command.h (cmd_types): Remove.
8062 (cmd_type): Don't declare.
8063 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
8064 typedef.
8065 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
8066 * cli/cli-decode.c (cmd_type): Remove.
8067
8068 2020-06-27 Pedro Alves <palves@redhat.com>
8069
8070 * fork-child.c (prefork_hook): Adjust.
8071 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
8072 Delete.
8073 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
8074 * inferior.c (inferior::set_tty, inferior::tty): New methods.
8075 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
8076 Remove declarations.
8077 (struct inferior) <set_tty, tty>: New methods.
8078 (struct inferior) <terminal>: Rename to ...
8079 (struct inferior) <m_terminal>: ... this and make private.
8080 * main.c (captured_main_1): Adjust.
8081 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
8082 (mi_cmd_inferior_tty_show): Adjust.
8083 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
8084 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
8085
8086 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
8087
8088 * configure.ac: Add --enable-libctf: handle --disable-static
8089 properly.
8090 * acinclude.m4: sinclude ../config/enable.m4.
8091 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
8092 (LIBCTF): Substitute in.
8093 (CTF_DEPS): New, likewise.
8094 (CLIBS): libctf needs symbols from libbfd: move earlier.
8095 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
8096 flags.
8097 * ctfread.c: Surround in ENABLE_LIBCTF.
8098 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
8099 * configure: Regenerate.
8100 * config.in: Likewise.
8101
8102 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
8105
8106 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
8107
8108 * inferior.h (struct inferior) <terminal>: Change type to
8109 gdb::unique_xmalloc_ptr<char>.
8110 * inferior.c (inferior::~inferior): Don't free inf->terminal.
8111 * infcmd.c (set_inferior_io_terminal): Don't free terminal
8112 field, adjust to unique pointer.
8113 (get_inferior_io_terminal): Adjust to unique pointer.
8114
8115 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8116
8117 * riscv-tdep.c (riscv_print_registers_info): Loop over all
8118 registers, not just the known core set of registers.
8119
8120 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8121
8122 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
8123 fflags, frm, and fcsr registers.
8124 (riscv_register_reggroup_p): Remove unknown CSRs from save and
8125 restore groups.
8126 (riscv_tdesc_unknown_reg): New function.
8127 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
8128 tdesc_use_registers.
8129 * riscv-tdep.h (struct gdbarch_tdep): Add
8130 unknown_csrs_first_regnum, unknown_csrs_count,
8131 duplicate_fflags_regnum, duplicate_frm_regnum, and
8132 duplicate_fcsr_regnum fields.
8133
8134 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8135
8136 * target-descriptions.c (tdesc_use_registers): Add new parameter a
8137 callback, use the callback (when not null) to help number unknown
8138 registers.
8139 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
8140 (tdesc_use_registers): Add extra parameter to declaration.
8141
8142 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8143
8144 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
8145 in the file.
8146 (class riscv_pending_register_alias): Likewise.
8147 (riscv_register_feature::register_info): Change 'required_p' field
8148 to 'required', and change its type. Add 'check' member function.
8149 (riscv_register_feature::register_info::check): Define new member
8150 function.
8151 (riscv_xreg_feature): Change initialisation of 'required' field.
8152 (riscv_freg_feature): Likewise.
8153 (riscv_virtual_feature): Likewise.
8154 (riscv_csr_feature): Likewise.
8155 (riscv_check_tdesc_feature): Take extra parameter, the csr
8156 tdesc_feature, rewrite the function to use the new
8157 riscv_register_feature::register_info::check function.
8158 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
8159
8160 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8161
8162 * features/Makefile: Remove all references to the deleted files
8163 below.
8164 * features/riscv/32bit-csr.c: Deleted.
8165 * features/riscv/32bit-csr.xml: Deleted.
8166 * features/riscv/64bit-csr.c: Deleted.
8167 * features/riscv/64bit-csr.xml: Deleted.
8168 * features/riscv/rebuild-csr-xml.sh: Deleted.
8169
8170 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8173 whitespace error for declaration of names member variable.
8174 (struct riscv_register_feature): Add new prefer_first_name member
8175 variable, and fix whitespace error in declaration of registers.
8176 (riscv_xreg_feature): Initialize prefer_first_name field.
8177 (riscv_freg_feature): Likewise.
8178 (riscv_virtual_feature): Likewise.
8179 (riscv_csr_feature): Likewise.
8180 (riscv_register_name): Expand on comments. Remove register name
8181 modifications for CSR and virtual registers.
8182
8183 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8184
8185 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8186 errors.
8187
8188 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8189
8190 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8191 riscv-opc.h.
8192 (class riscv_pending_register_alias): New class.
8193 (riscv_check_tdesc_feature): Take vector of pending aliases and
8194 populate it as appropriate.
8195 (riscv_setup_register_aliases): Delete.
8196 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8197 to riscv_check_tdesc_feature in all cases. Use the vector to
8198 create the register aliases.
8199
8200 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8201
8202 * sol2-tdep.c (sol2_static_transform_name): Remove.
8203 (sol2_init_abi): Don't register it.
8204 * gdbarch.sh (static_transform_name): Remove.
8205 * gdbarch.c, gdbarch.h: Regenerate.
8206
8207 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8208 gdbarch_static_transform_name.
8209 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8210 * stabsread.c (define_symbol) <'X'>: Remove.
8211 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8212 handling.
8213 <'V'>: Likewise.
8214 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8215 <'S'>: Remove call to gdbarch_static_transform_name.
8216
8217 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8218
8219 * procfs.c (procfs_pre_trace): New function.
8220 (procfs_target::create_inferior): Pass it to fork_inferior.
8221
8222 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8223
8224 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8225 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8226 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8227 sol2-tdep.o, sparc-sol2-tdep.o.
8228 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8229 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8230 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8231 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8232
8233 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8234
8235 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8236 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8237 Call sol2_init_abi.
8238 Remove calls to set_gdbarch_skip_solib_resolver,
8239 set_gdbarch_core_pid_to_str.
8240 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8241 (i386_sol2_static_transform_name): Remove.
8242 (i386_sol2_init_abi): Call sol2_init_abi.
8243 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8244 set_gdbarch_static_transform_name,
8245 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8246 Use sol2_sigtramp_p.
8247 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8248 (sol2_sigtramp_p): New function.
8249 (sol2_static_transform_name): New function.
8250 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8251 (sol2_init_abi): New function.
8252 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8253 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8254 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8255 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8256 (sparc_sol2_static_transform_name): Remove.
8257 (sparc32_sol2_init_abi): Call sol2_init_abi.
8258 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8259 set_gdbarch_static_transform_name,
8260 set_gdbarch_skip_solib_resolver,
8261 set_gdbarch_core_pid_to_str.
8262 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8263 (sparc_sol2_static_transform_name): Remove
8264 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8265 call sol2_sigtramp_p.
8266 (sparc64_sol2_init_abi): Call sol2_init_abi.
8267 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8268 set_gdbarch_static_transform_name,
8269 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8270
8271 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8272
8273 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8274 * exec.c (validate_exec_file): If from_tty, set both
8275 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8276 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8277 and from_tty, unconditionally ask a confirmation.
8278
8279 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8280
8281 * target-descriptions.c (tdesc_architecture_name): Protect against
8282 NULL pointer dereference.
8283 (maint_print_xml_tdesc_cmd): New function.
8284 (_initialize_target_descriptions): Register new 'maint print
8285 xml-tdesc' command and give it the filename completer.
8286 * NEWS: Mention new 'maint print xml-tdesc' command.
8287
8288 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8289
8290 * target-descriptions.c (class tdesc_compatible_info): New class.
8291 (struct target_desc): Change type of compatible vector.
8292 (tdesc_compatible_p): Update for change in type of
8293 target_desc::compatible.
8294 (tdesc_compatible_info_list): New function.
8295 (tdesc_compatible_info_arch_name): New function.
8296 (tdesc_add_compatible): Update for change in type of
8297 target_desc::compatible.
8298 (print_c_tdesc::visit_pre): Likewise.
8299
8300 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8301
8302 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8303 whitespace to underscore.
8304 (maint_print_c_tdesc_cmd): Use fake filename for target
8305 descriptions that came from the target.
8306 (_initialize_target_descriptions): Add filename command completion
8307 for 'maint print c-tdesc'.
8308
8309 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8310
8311 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8312 lines.
8313
8314 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8315
8316 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8317 lines.
8318 (dwarf2_find_location_expression): Likewise.
8319 (call_site_parameter_matches): Likewise.
8320 (dwarf2_compile_expr_to_ax): Likewise.
8321 (disassemble_dwarf_expression): Likewise.
8322 (loclist_describe_location): Likewise.
8323
8324 2020-06-23 Pedro Alves <palves@redhat.com>
8325
8326 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8327 progspace-and-thread.h. Include scoped-mock-context.h instead.
8328 (register_to_value_test): Use scoped_mock_context.
8329 * regcache.c: Include "scoped-mock-context.h".
8330 (cooked_read_test): Don't error out if a target is already pushed.
8331 Use scoped_mock_context. Adjust.
8332 * scoped-mock-context.h: New file.
8333
8334 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8335
8336 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8337 initializer.
8338 (ada_language::is_string_type_p): New member function.
8339 * c-lang.c (c_language_data): Delete la_is_string_type_p
8340 initializer.
8341 (cplus_language_data): Likewise.
8342 (asm_language_data): Likewise.
8343 (minimal_language_data): Likewise.
8344 * d-lang.c (d_language_data): Likewise.
8345 * f-lang.c (f_is_string_type_p): Delete function, implementation
8346 moved to f_language::is_string_type_p.
8347 (f_language_data): Delete la_is_string_type_p initializer.
8348 (f_language::is_string_type_p): New member function,
8349 implementation from f_is_string_type_p.
8350 * go-lang.c (go_is_string_type_p): Delete function, implementation
8351 moved to go_language::is_string_type_p.
8352 (go_language_data): Delete la_is_string_type_p initializer.
8353 (go_language::is_string_type_p): New member function,
8354 implementation from go_is_string_type_p.
8355 * language.c (language_defn::is_string_type_p): Define new member
8356 function.
8357 (default_is_string_type_p): Make static, add comment copied from
8358 header file.
8359 (unknown_language_data): Delete la_is_string_type_p initializer.
8360 (unknown_language::is_string_type_p): New member function.
8361 (auto_language_data): Delete la_is_string_type_p initializer.
8362 (auto_language::is_string_type_p): New member function.
8363 * language.h (language_data): Delete la_is_string_type_p field.
8364 (language_defn::is_string_type_p): Declare new function.
8365 (default_is_string_type_p): Delete desclaration, move comment to
8366 definition.
8367 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8368 moved to m2_language::is_string_type_p.
8369 (m2_language_data): Delete la_is_string_type_p initializer.
8370 (m2_language::is_string_type_p): New member function,
8371 implementation from m2_is_string_type_p.
8372 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8373 initializer.
8374 * opencl-lang.c (opencl_language_data): Likewise.
8375 * p-lang.c (pascal_is_string_type_p): Delete function,
8376 implementation moved to pascal_language::is_string_type_p.
8377 (pascal_language_data): Delete la_is_string_type_p initializer.
8378 (pascal_language::is_string_type_p): New member function,
8379 implementation from pascal_is_string_type_p.
8380 * rust-lang.c (rust_is_string_type_p): Delete function,
8381 implementation moved to rust_language::is_string_type_p.
8382 (rust_language_data): Delete la_is_string_type_p initializer.
8383 (rust_language::is_string_type_p): New member function,
8384 implementation from rust_is_string_type_p.
8385 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8386 is_string_type_p.
8387
8388 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8389
8390 * ada-lang.c (ada_language_data): Delete la_print_typedef
8391 initializer.
8392 (ada_language::print_typedef): New member function.
8393 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8394 (cplus_language_data): Likewise.
8395 (asm_language_data): Likewise.
8396 (minimal_language_data): Likewise.
8397 * d-lang.c (d_language_data): Likewise.
8398 * f-lang.c (f_language_data): Likewise.
8399 (f_language::print_typedef): New member function.
8400 * go-lang.c (go_language_data): Delete la_print_typedef
8401 initializer.
8402 * language.c (language_defn::print_typedef): Define member
8403 function.
8404 (unknown_language_data): Delete la_print_typedef initializer.
8405 (unknown_language::print_typedef): New member function.
8406 (auto_language_data): Delete la_print_typedef initializer.
8407 (auto_language::print_typedef): New member function.
8408 * language.h (language_data): Delete la_print_typedef field.
8409 (language_defn::print_typedef): Declare new member function.
8410 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8411 (default_print_typedef): Delete declaration.
8412 * m2-lang.c (m2_language_data): Delete la_print_typedef
8413 initializer.
8414 (m2_language::print_typedef): New member function.
8415 * objc-lang.c (objc_language_data): Delete la_print_typedef
8416 initializer.
8417 * opencl-lang.c (opencl_language_data): Likewise.
8418 * p-lang.c (pascal_language_data): Likewise.
8419 (pascal_language::print_typedef): New member function.
8420 * rust-lang.c (rust_print_typedef): Delete function,
8421 implementation moved to rust_language::print_typedef.
8422 (rust_language): Delete la_print_typedef initializer.
8423 (rust_language::print_typedef): New member function,
8424 implementation from rust_print_typedef.
8425 * typeprint.c (default_print_typedef): Delete.
8426
8427 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8428
8429 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8430 (ada_language::printstr): New member function.
8431 * c-lang.c (c_language_data): Delete la_printstr initializer.
8432 (cplus_language_data): Likewise.
8433 (asm_language_data): Likewise.
8434 (minimal_language_data): Likewise.
8435 * d-lang.c (d_language_data): Likewise.
8436 * f-lang.c (f_printstr): Rename to f_language::printstr.
8437 (f_language_data): Delete la_printstr initializer.
8438 (f_language::printstr): New member function, implementation from
8439 f_printstr.
8440 * go-lang.c (go_language_data): Delete la_printstr initializer.
8441 * language.c (language_defn::printstr): Define new member
8442 function.
8443 (unk_lang_printstr): Delete.
8444 (unknown_language_data): Delete la_printstr initializer.
8445 (unknown_language::printstr): New member function.
8446 (auto_language_data): Delete la_printstr initializer.
8447 (auto_language::printstr): New member function.
8448 * language.h (language_data): Delete la_printstr field.
8449 (language_defn::printstr): Declare new member function.
8450 (LA_PRINT_STRING): Update call to printstr.
8451 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8452 (m2_language_data): Delete la_printstr initializer.
8453 (m2_language::printstr): New member function, implementation from
8454 m2_printstr.
8455 * objc-lang.c (objc_language_data): Delete la_printstr
8456 initializer.
8457 * opencl-lang.c (opencl_language_data): Likewise.
8458 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8459 (pascal_language_data): Delete la_printstr initializer.
8460 (pascal_language::printstr): New member function, implementation
8461 from pascal_printstr.
8462 * p-lang.h (pascal_printstr): Delete declaration.
8463 * rust-lang.c (rust_printstr): Update header comment.
8464 (rust_language_data): Delete la_printstr initializer.
8465 (rust_language::printstr): New member function.
8466
8467 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8468
8469 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8470 (ada_language::printchar): New member function.
8471 * c-lang.c (c_language_data): Delete la_printchar initializer.
8472 (cplus_language_data): Likewise.
8473 (asm_language_data): Likewise.
8474 (minimal_language_data): Likewise.
8475 * d-lang.c (d_language_data): Likewise.
8476 * f-lang.c (f_printchar): Rename to f_language::printchar.
8477 (f_language_data): Delete la_printchar initializer.
8478 (f_language::printchar): New member function, implementation from
8479 f_printchar.
8480 * go-lang.c (go_language_data): Delete la_printchar initializer.
8481 * language.c (unk_lang_printchar): Delete.
8482 (language_defn::printchar): Define new member function.
8483 (unknown_language_data): Delete la_printchar initializer.
8484 (unknown_language::printchar): New member function.
8485 (auto_language_data): Delete la_printchar initializer.
8486 (auto_language::printchar): New member function.
8487 * language.h (language_data): Delete la_printchar field.
8488 (language_defn::printchar): Declare new member function.
8489 (LA_PRINT_CHAR): Update call to printchar.
8490 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8491 (m2_language::printchar): New member function.
8492 * objc-lang.c (objc_language_data): Delete la_printchar
8493 initializer.
8494 * opencl-lang.c (opencl_language_data): Likewise.
8495 * p-lang.c (pascal_language_data): Delete la_printchar
8496 initializer.
8497 (pascal_language::printchar): New member function.
8498 * rust-lang.c (rust_printchar): Rename to
8499 rust_language::printchar.
8500 (rust_language_data): Delete la_printchar initializer.
8501 (rust_language::printchar): New member function, implementation
8502 from rust_printchar.
8503
8504 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8505
8506 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8507 (ada_language_data): Delete la_emitchar initializer.
8508 (ada_language::emitchar): New member function, implementation from
8509 emit_char.
8510 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8511 (cplus_language_data): Likewise.
8512 (asm_language_data): Likewise.
8513 (minimal_language_data): Likewise.
8514 * d-lang.c (d_language_data): Likewise.
8515 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8516 (f_language_data): Delete la_emitchar initializer.
8517 (f_language::emitchar): New member function, implementation from
8518 f_emit_char.
8519 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8520 * language.c (unk_lang_emit_char): Delete.
8521 (language_defn::emitchar): New member function definition.
8522 (unknown_language_data): Delete la_emitchar initializer.
8523 (unknown_language::emitchar): New member function.
8524 (auto_language_data): Delete la_emitchar initializer.
8525 (auto_language::emitchar): New member function.
8526 * language.h (language_data): Delete la_emitchar field.
8527 (language_defn::emitchar): New member field declaration.
8528 (LA_EMIT_CHAR): Update call to emitchar.
8529 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8530 (m2_language_data): Delete la_emitchar initializer.
8531 (m2_language::emitchar): New member function, implementation from
8532 m2_emit_char.
8533 * objc-lang.c (objc_language_data): Delete la_emitchar
8534 initializer.
8535 * opencl-lang.c (opencl_language_data): Likewise.
8536 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8537 (pascal_language_data): Delete la_emitchar initializer.
8538 (pascal_language::emitchar): New member function, implementation
8539 from pascal_emit_char.
8540 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8541 (rust_language_data): Delete la_emitchar initializer.
8542 (rust_language::emitchar): New member function, implementation
8543 from rust_emitchar.
8544
8545 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8546
8547 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8548 (ada_language_data): Delete la_post_parser initializer.
8549 (ada_language::post_parser): New member function.
8550 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8551 (cplus_language_data): Likewise.
8552 (asm_language_data): Likewise.
8553 (minimal_language_data): Likewise.
8554 * d-lang.c (d_language_data): Likewise.
8555 * f-lang.c (f_language_data): Likewise.
8556 * go-lang.c (go_language_data): Likewise.
8557 * language.c (unknown_language_data): Likewise.
8558 (auto_language_data): Likewise.
8559 * language.h (language_data): Delete la_post_parser field.
8560 (language_defn::post_parser): New member function.
8561 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8562 * objc-lang.c (objc_language_data): Likewise.
8563 * opencl-lang.c (opencl_language_data): Likewise.
8564 * p-lang.c (pascal_language_data): Likewise.
8565 * parse.c (parse_exp_in_context): Update call to post_parser.
8566 (null_post_parser): Delete definition.
8567 * parser-defs.h (null_post_parser): Delete declaration.
8568 * rust-lang.c (rust_language_data): Delete la_post_parser
8569 initializer.
8570
8571 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8572
8573 * ada-lang.c (parse): Rename to ada_language::parser.
8574 (ada_language_data): Delete la_parser initializer.
8575 (ada_language::parser): New member function, implementation from
8576 parse.
8577 * c-lang.c (c_language_data): Delete la_parser initializer.
8578 (cplus_language_data): Likewise.
8579 (asm_language_data): Likewise.
8580 (minimal_language_data): Likewise.
8581 * d-lang.c (d_language_data): Likewise.
8582 (d_language::parser): New member function.
8583 * f-lang.c (f_language_data): Delete la_parser initializer.
8584 (f_language::parser): New member function.
8585 * go-lang.c (go_language_data): Delete la_parser initializer.
8586 (go_language::parser): New member function.
8587 * language.c (unk_lang_parser): Delete.
8588 (language_defn::parser): Define new member function.
8589 (unknown_language_data): Delete la_parser initializer.
8590 (unknown_language::parser): New member function.
8591 (auto_language_data): Delete la_parser initializer.
8592 (auto_language::parser): New member function.
8593 * language.h (language_data): Delete la_parser field.
8594 (language_defn::parser): Declare new member function.
8595 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8596 (m2_language::parser): New member function.
8597 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8598 * opencl-lang.c (opencl_language_data): Likewise.
8599 * p-lang.c (pascal_language_data): Likewise.
8600 (pascal_language::parser): New member function.
8601 * parse.c (parse_exp_in_context): Update call to parser.
8602 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8603 (rust_language::parser): New member function.
8604
8605 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8606
8607 * top.c (print_gdb_configuration): Print --with-python-libdir
8608 configuration value.
8609
8610 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8611
8612 * NEWS: Mention change to the alias command.
8613
8614 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8615
8616 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8617 (alias_command_completer)
8618 (make_alias_options_def_group): New functions.
8619 (alias_opts, alias_option_defs): New struct and array.
8620 (alias_usage_error): Update usage.
8621 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8622 Use option framework.
8623 (_initialize_cli_cmds): Update alias command help.
8624 Update aliases command help.
8625 (show_user):
8626 Add NULL for new default_args lookup_cmd argument.
8627 (valid_command_p): Rename to validate_aliased_command.
8628 Add NULL for new default_args lookup_cmd argument. Verify that the
8629 aliased_command has no default args.
8630 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8631 (lookup_cmd_1, lookup_cmd): New argument default_args.
8632 (add_alias_cmd):
8633 Add NULL for new default_args lookup_cmd argument.
8634 (print_help_for_command): Show default args under the layout
8635 alias some_alias = some_aliased_cmd some_alias_default_arg.
8636 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8637 xfree default_args in destructor.
8638 * cli/cli-script.c (process_next_line, do_define_command):
8639 Add NULL for new default_args lookup_cmd argument.
8640 * command.h: Declare new default_args argument in lookup_cmd
8641 and lookup_cmd_1.
8642 * completer.c (complete_line_internal_1):
8643 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8644 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8645 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8646 Likewise.
8647 * infcmd.c (_initialize_infcmd): Likewise.
8648 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8649 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8650 * python/py-param.c (add_setshow_generic): Likewise.
8651 * remote.c (_initialize_remote): Likewise.
8652 * top.c (execute_command): Prepend default_args if command has some.
8653 (set_verbose):
8654 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8655 * tracepoint.c (validate_actionline, encode_actions_1):
8656 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8657
8658 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8659
8660 * jit.c (jit_read_descriptor): Use bool as the return type.
8661 (jit_breakpoint_re_set_internal): Use bool as the return type.
8662 Invert the return value logic; return true if the jit breakpoint
8663 has been successfully initialized.
8664 (jit_inferior_init): Update the call to
8665 jit_breakpoint_re_set_internal.
8666
8667 2020-06-22 Pedro Alves <palves@redhat.com>
8668
8669 PR gdb/25939
8670 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8671 Use the current inferior instead. Don't return
8672 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8673 wait again.
8674 * sol-thread.c (sol_thread_target::wait): Don't reference
8675 inferior_ptid.
8676 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8677 (sol_update_thread_list_callback): Use the current inferior's pid
8678 instead of inferior_ptid.
8679
8680 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8681
8682 * procfs.c: Cleanup many comments.
8683
8684 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8685 (AFTER_WATCHFLAG): Replace by value.
8686
8687 (MAIN_PROC_NAME_FORMAT): Inline ...
8688 (create_procinfo): ... here.
8689
8690 (procfs_debug_inferior): Remove SYS_exec handling.
8691 (syscall_is_exec): Likewise.
8692 (procfs_set_exec_trap): Likewise.
8693
8694 (syscall_is_lwp_exit): Inline in callers.
8695 (syscall_is_exit): Likewise.
8696 (syscall_is_exec): Likewise.
8697 (syscall_is_lwp_create): Likewise.
8698
8699 (invalidate_cache): Remove #if 0 code.
8700
8701 (make_signal_thread_runnable): Remove.
8702 (procfs_target::resume): Remove #if 0 code.
8703
8704 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8705
8706 PR gdb/25939
8707 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8708 call ...
8709 (procfs_target::create_inferior): ... here.
8710
8711 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8712
8713 * exec.c (validate_exec_file): Ensure the build-id is up to
8714 date by calling reopen_exec_file (that checks file timestamp
8715 to decide to re-read the file).
8716
8717 2020-06-18 Pedro Alves <palves@redhat.com>
8718
8719 PR gdb/25412
8720 * gdbthread.h (delete_thread, delete_thread_silent)
8721 (find_thread_ptid): Update comments.
8722 * thread.c (current_thread_): New global.
8723 (is_current_thread): Move higher, and reimplement.
8724 (inferior_thread): Reimplement.
8725 (set_thread_exited): Use bool. Add assertions.
8726 (add_thread_silent): Simplify thread-reuse handling by always
8727 calling delete_thread.
8728 (delete_thread): Remove intro comment.
8729 (find_thread_ptid): Skip exited threads.
8730 (switch_to_thread_no_regs): Write to current_thread_.
8731 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8732 INFERIOR_PTID. Clear current_thread_.
8733
8734 2020-06-18 Pedro Alves <palves@redhat.com>
8735
8736 * aix-thread.c (pd_update): Use switch_to_thread.
8737
8738 2020-06-18 Pedro Alves <palves@redhat.com>
8739
8740 * ravenscar-thread.c (ravenscar_thread_target): Update.
8741 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8742 (ravenscar_thread_target::add_active_thread): ... this. Don't
8743 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8744 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8745
8746 2020-06-18 Pedro Alves <palves@redhat.com>
8747
8748 * nat/windows-nat.c (current_windows_thread): Remove.
8749 * nat/windows-nat.h (current_windows_thread): Remove.
8750 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8751 Adjust.
8752 (display_selectors): Adjust to fetch the current
8753 windows_thread_info based on inferior_ptid.
8754 (fake_create_process): No longer write to current_windows_thread.
8755 (windows_nat_target::get_windows_debug_event):
8756 Don't set inferior_ptid or current_windows_thread.
8757 (windows_nat_target::wait): Adjust to not rely on
8758 current_windows_thread.
8759 (do_initial_windows_stuff): Now a method of windows_nat_target.
8760 Switch to the last_ptid thread.
8761 (windows_nat_target::attach): Adjust.
8762 (windows_nat_target::detach): Use switch_to_no_thread instead of
8763 writing to inferior_ptid directly.
8764 (windows_nat_target::create_inferior): Adjust.
8765
8766 2020-06-18 Pedro Alves <palves@redhat.com>
8767
8768 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8769
8770 2020-06-18 Pedro Alves <palves@redhat.com>
8771
8772 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8773 after creating it, instead of writing to inferior_ptid. Don't
8774 write to inferior_ptid.
8775
8776 2020-06-18 Pedro Alves <palves@redhat.com>
8777
8778 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8779
8780 2020-06-18 Pedro Alves <palves@redhat.com>
8781
8782 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8783 it, instead of writing to inferior_ptid.
8784
8785 2020-06-18 Pedro Alves <palves@redhat.com>
8786
8787 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8788 to inferior_ptid.
8789
8790 2020-06-18 Pedro Alves <palves@redhat.com>
8791
8792 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8793 instead of writing to inferior_ptid directly.
8794
8795 2020-06-18 Pedro Alves <palves@redhat.com>
8796
8797 * corelow.c (core_target::close): Use switch_to_no_thread instead
8798 of writing to inferior_ptid directly.
8799 (add_to_thread_list, core_target_open): Use switch_to_thread
8800 instead of writing to inferior_ptid directly.
8801
8802 2020-06-18 Pedro Alves <palves@redhat.com>
8803
8804 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8805 inferior_ptid.
8806 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8807 inferior_ptid.
8808 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8809 inferior_ptid directly.
8810 (darwin_nat_target::init_thread_list): Switch to thread, instead
8811 of writing to inferior_ptid.
8812 (darwin_nat_target::attach): Don't write to inferior_ptid.
8813 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8814
8815 2020-06-18 Pedro Alves <palves@redhat.com>
8816
8817 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8818 thread.
8819 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8820 Instead use switch_to_thread.
8821 (gnu_nat_target::detach): Use switch_to_no_thread
8822 instead of writing to inferior_ptid directly. Used passed-in
8823 inferior instead of looking up the inferior by pid.
8824
8825 2020-06-18 Pedro Alves <palves@redhat.com>
8826
8827 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8828 inferior_ptid.
8829
8830 2020-06-18 Pedro Alves <palves@redhat.com>
8831
8832 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8833 inferior_ptid.
8834 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8835 thread.
8836 (nto_procfs_target::detach): Avoid referencing
8837 inferior_ptid. Use switch_to_no_thread instead of writing to
8838 inferior_ptid directly.
8839 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8840 instead of writing to inferior_ptid directly.
8841 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8842 to thread.
8843
8844 2020-06-18 Pedro Alves <palves@redhat.com>
8845
8846 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8847 after creating it, instead of writing to inferior_ptid.
8848 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8849 to inferior_ptid directly.
8850 (gdbsim_target::wait): Don't write to inferior_ptid.
8851
8852 2020-06-18 Pedro Alves <palves@redhat.com>
8853
8854 * remote.c (remote_target::remote_notice_new_inferior): Use
8855 switch_to_thread instead of writing to inferior_ptid directly.
8856 (remote_target::add_current_inferior_and_thread): Use
8857 switch_to_no_thread instead of writing to inferior_ptid directly.
8858 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8859 and switch_to_thread instead of using set_current_inferior or
8860 writing to inferior_ptid directly.
8861
8862 2020-06-18 Pedro Alves <palves@redhat.com>
8863
8864 * tracectf.c (ctf_target_open): Switch to added thread instead of
8865 writing to inferior_ptid directly.
8866 (ctf_target::close): Use switch_to_no_thread instead of writing to
8867 inferior_ptid directly.
8868
8869 2020-06-18 Pedro Alves <palves@redhat.com>
8870
8871 * tracefile-tfile.c (tfile_target_open): Don't write to
8872 inferior_ptid directly, instead switch to added thread.
8873 (tfile_target::close): Use switch_to_no_thread instead of writing
8874 to inferior_ptid directly.
8875
8876 2020-06-18 Pedro Alves <palves@redhat.com>
8877
8878 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8879 (procfs_target::detach): Use switch_to_no_thread
8880 instead of writing to inferior_ptid directly.
8881 (do_attach): Change return type to void. Switch to the added
8882 thread.
8883 (procfs_target::create_inferior): Switch to the added thread.
8884 (procfs_do_thread_registers): Don't write to inferior_ptid.
8885
8886 2020-06-18 Pedro Alves <palves@redhat.com>
8887
8888 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8889 of writing to inferior_ptid.
8890 (scoped_restore_exited_inferior): Delete.
8891 (handle_vfork_child_exec_or_exit): Simplify using
8892 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8893 instead of writing to inferior_ptid.
8894 (THREAD_STOPPED_BY): Delete.
8895 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8896 (thread_stopped_by_hw_breakpoint): Delete.
8897 (save_waitstatus): Use
8898 scoped_restore_current_thread+switch_to_thread, and call
8899 target_stopped_by_watchpoint instead of
8900 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8901 instead of thread_stopped_by_sw_breakpoint, and
8902 target_stopped_by_hw_breakpoint instead of
8903 thread_stopped_by_hw_breakpoint.
8904 (handle_inferior_event)
8905 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8906 inferior_ptid directly, nor
8907 set_current_inferior/set_current_program_space. Use
8908 switch_to_thread / switch_to_inferior_no_thread instead.
8909
8910 2020-06-18 Pedro Alves <palves@redhat.com>
8911
8912 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8913 instead of writing to inferior_ptid.
8914
8915 2020-06-18 Pedro Alves <palves@redhat.com>
8916
8917 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8918 added thread.
8919 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8920 to the added thread.
8921 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8922 instead of writing to inferior_ptid.
8923
8924 2020-06-18 Pedro Alves <palves@redhat.com>
8925
8926 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8927 (register_to_value_test): Mock a program_space too. Heap-allocate
8928 the address space. Don't write to inferior_ptid. Use
8929 switch_to_thread instead.
8930
8931 2020-06-18 Pedro Alves <palves@redhat.com>
8932
8933 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8934 Delete.
8935 (find_signalled_thread()): New, factored out from
8936 linux_make_corefile_notes and adjusted to handle exited threads.
8937 (linux_make_corefile_notes): Adjust to use the new
8938 find_signalled_thread.
8939
8940 2020-06-18 Pedro Alves <palves@redhat.com>
8941
8942 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8943 of saving/restoring inferior_ptid.
8944
8945 2020-06-17 Tom Tromey <tom@tromey.com>
8946
8947 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8948 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8949 declare.
8950 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8951
8952 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8955 of partial symtabs.
8956
8957 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8958
8959 * regformats/reg-arm.dat: Remove.
8960 * regformats/reg-bfin.dat: Remove.
8961 * regformats/reg-cris.dat: Remove.
8962 * regformats/reg-crisv32.dat: Remove.
8963 * regformats/reg-m32r.dat: Remove.
8964 * regformats/reg-tilegx.dat: Remove.
8965 * regformats/reg-tilegx32.dat: Remove.
8966
8967 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8968
8969 * features/Makefile (WHICH): Remove arm files.
8970 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8971 * regformats/arm/arm-with-neon.dat: Remove.
8972 * regformats/arm/arm-with-vfpv2.dat: Remove.
8973 * regformats/arm/arm-with-vfpv3.dat: Remove.
8974
8975 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8976
8977 * features/Makefile (XMLTOC): Remove rx.xml.
8978
8979 2020-06-17 Pedro Alves <palves@redhat.com>
8980
8981 * gdbthread.h (thread_control_state) <trap_expected> Update
8982 comments.
8983
8984 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8987 ada_language::lookup_symbol_nonlocal.
8988 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8989 (ada_language::lookup_symbol_nonlocal): New member function,
8990 implementation from ada_lookup_symbol_nonlocal.
8991 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8992 initializer.
8993 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8994 initializer.
8995 (cplus_language::lookup_symbol_nonlocal): New member function.
8996 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8997 (minimal_language_data) Likewise.
8998 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8999 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
9000 initializer.
9001 (d_language::lookup_symbol_nonlocal): New member function.
9002 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
9003 initializer.
9004 (f_language::lookup_symbol_nonlocal): New member function.
9005 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
9006 initializer.
9007 * language.c (unknown_language_data): Likewise.
9008 (auto_language_data): Likewise.
9009 * language.h (language_data): Delete la_lookup_symbol_nonlocal
9010 field.
9011 (language_defn::lookup_symbol_nonlocal): New member function.
9012 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
9013 initializer.
9014 * objc-lang.c (objc_language_data): Likewise.
9015 * opencl-lang.c (opencl_language_data): Likewise.
9016 * p-lang.c (pascal_language_data): Likewise.
9017 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
9018 rust_language::lookup_symbol_nonlocal.
9019 (rust_language_data): Delete la_lookup_symbol_nonlocal
9020 initializer.
9021 (rust_language::lookup_symbol_nonlocal): New member function,
9022 implementation from rust_lookup_symbol_nonlocal.
9023 * symtab.c (lookup_symbol_aux): Update call to
9024 lookup_symbol_nonlocal.
9025 (basic_lookup_symbol_nonlocal): Rename to...
9026 (language_defn::lookup_symbol_nonlocal): ...this, and update
9027 header comment. Remove language_defn parameter, and replace with
9028 uses of `this'.
9029 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
9030
9031 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9032
9033 * ada-lang.c (ada_language_data): Delete la_value_print_inner
9034 initializer.
9035 (ada_language::value_print_inner): New member function.
9036 * c-lang.c (c_language_data): Delete la_value_print_inner
9037 initializer.
9038 (cplus_language_data): Likewise.
9039 (asm_language_data): Likewise.
9040 (minimal_language_data): Likewise.
9041 * d-lang.c (d_language_data): Likewise.
9042 (d_language::value_print_inner): New member function.
9043 * f-lang.c (f_language_data): Delete la_value_print_inner
9044 initializer.
9045 (f_language::value_print_inner): New member function.
9046 * f-lang.h (f_value_print_innner): Rename to...
9047 (f_value_print_inner): ...this (note spelling of 'inner').
9048 * f-valprint.c (f_value_print_innner): Rename to...
9049 (f_value_print_inner): ...this (note spelling of 'inner').
9050 * go-lang.c (go_language_data): Delete la_value_print_inner
9051 initializer.
9052 (go_language::value_print_inner): New member function.
9053 * language.c (language_defn::value_print_inner): Define new member
9054 function.
9055 (unk_lang_value_print_inner): Delete.
9056 (unknown_language_data): Delete la_value_print_inner initializer.
9057 (unknown_language::value_print_inner): New member function.
9058 (auto_language_data): Delete la_value_print_inner initializer.
9059 (auto_language::value_print_inner): New member function.
9060 * language.h (language_data): Delete la_value_print_inner field.
9061 (language_defn::value_print_inner): Delcare new member function.
9062 * m2-lang.c (m2_language_data): Delete la_value_print_inner
9063 initializer.
9064 (m2_language::value_print_inner): New member function.
9065 * objc-lang.c (objc_language_data): Delete la_value_print_inner
9066 initializer.
9067 * opencl-lang.c (opencl_language_data): Likewise.
9068 * p-lang.c (pascal_language_data): Likewise.
9069 (pascal_language::value_print_inner): New member function.
9070 * rust-lang.c (rust_language_data): Delete la_value_print_inner
9071 initializer.
9072 (rust_language::value_print_inner): New member function.
9073 * valprint.c (do_val_print): Update call to value_print_inner.
9074
9075 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9076
9077 * ada-lang.c (ada_language_data): Delete la_value_print
9078 initializer.
9079 (ada_language::value_print): New member function.
9080 * c-lang.c (c_language_data): Delete la_value_print initializer.
9081 (cplus_language_data): Likewise.
9082 (asm_language_data): Likewise.
9083 (minimal_language_data): Likewise.
9084 * d-lang.c (d_language_data): Likewise.
9085 * f-lang.c (f_language_data): Likewise.
9086 * go-lang.c (go_language_data): Likewise.
9087 * language.c (unk_lang_value_print): Delete.
9088 (language_defn::value_print): Define new member function.
9089 (unknown_language_data): Delete la_value_print initializer.
9090 (unknown_language::value_print): New member function.
9091 (auto_language_data): Delete la_value_print initializer.
9092 (auto_language::value_print): New member function.
9093 * language.h (language_data): Delete la_value_print field.
9094 (language_defn::value_print): Declare new member function.
9095 (LA_VALUE_PRINT): Update call to value_print.
9096 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
9097 * objc-lang.c (objc_language_data): Likewise.
9098 * opencl-lang.c (opencl_language_data): Likewise.
9099 * p-lang.c (pascal_language_data): Likewise.
9100 (pascal_language::value_print): New member function.
9101 * rust-lang.c (rust_language_data): Delete la_value_print
9102 initializer.
9103
9104 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9105
9106 * ada-lang.c (ada_watch_location_expression): Rename to
9107 ada_language::watch_location_expression.
9108 (ada_language_data): Delete la_watch_location_expression
9109 initializer.
9110 (ada_language::watch_location_expression): New member function,
9111 implementation from ada_watch_location_expression.
9112 * breakpoint.c (watch_command_1): Update call to
9113 watch_location_expression.
9114 * c-lang.c (c_watch_location_expression): Rename to
9115 language_defn::watch_location_expression.
9116 (c_language_data): Delete la_watch_location_expression
9117 initializer.
9118 (cplus_language_data): Likewise.
9119 (asm_language_data): Likewise.
9120 (minimal_language_data): Likewise.
9121 * c-lang.h (c_watch_location_expression): Delete declaration.
9122 * d-lang.c (d_language_data): Delete la_watch_location_expression
9123 initializer.
9124 * f-lang.c (f_language_data): Likewise.
9125 * go-lang.c (go_language_data): Likewise.
9126 * language.c (language_defn::watch_location_expression): Member
9127 function implementation from c_watch_location_expression.
9128 (unknown_language_data): Delete la_watch_location_expression
9129 initializer.
9130 (auto_language_data): Likewise.
9131 * language.h (language_data): Delete la_watch_location_expression
9132 field.
9133 (language_defn::watch_location_expression): Declare new member
9134 function.
9135 * m2-lang.c (m2_language_data): Delete
9136 la_watch_location_expression initializer.
9137 * objc-lang.c (objc_language_data): Likewise.
9138 * opencl-lang.c (opencl_language_data): Likewise.
9139 * p-lang.c (pascal_language_data): Likewise.
9140 * rust-lang.c (rust_watch_location_expression): Rename to
9141 rust_language::watch_location_expression.
9142 (rust_language_data): Delete la_watch_location_expression
9143 initializer.
9144 (rust_language::watch_location_expression): New member function,
9145 implementation from rust_watch_location_expression.
9146
9147 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9148
9149 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
9150 ada_language::collect_symbol_completion_matches.
9151 (ada_language_data): Delete la_collect_symbol_completion_matches
9152 initializer.
9153 (ada_language::collect_symbol_completion_matches): New member
9154 function, implementation from
9155 ada_collect_symbol_completion_matches.
9156 * c-lang.c (c_language_data): Delete
9157 la_collect_symbol_completion_matches initializer.
9158 (cplus_language_data): Likewise.
9159 (asm_language_data): Likewise.
9160 (minimal_language_data): Likewise.
9161 * d-lang.c (d_language_data): Likewise.
9162 * f-lang.c (f_collect_symbol_completion_matches): Rename to
9163 f_language::collect_symbol_completion_matches.
9164 (f_language_data): Delete la_collect_symbol_completion_matches
9165 initializer.
9166 (f_language::collect_symbol_completion_matches) New member
9167 function, implementation from f_collect_symbol_completion_matches.
9168 * go-lang.c (go_language_data): Delete
9169 la_collect_symbol_completion_matches initializer.
9170 * language.c (unknown_language_data): Likewise.
9171 (auto_language_data): Likewise.
9172 * language.h (language_data): Delete
9173 la_collect_symbol_completion_matches field.
9174 (language_defn::collect_symbol_completion_matches): New member
9175 function.
9176 * m2-lang.c (m2_language_data): Delete
9177 la_collect_symbol_completion_matches initializer.
9178 * objc-lang.c (objc_language_data): Likewise.
9179 * opencl-lang.c (opencl_language_data): Likewise.
9180 * p-lang.c (pascal_language_data): Likewise.
9181 * rust-lang.c (rust_language_data): Likewise.
9182 * symtab.c (default_collect_symbol_completion_matches): Delete.
9183 (collect_symbol_completion_matches): Update call to
9184 collect_symbol_completion_matches.
9185 (collect_symbol_completion_matches_type): Likewise.
9186 * symtab.h (default_collect_symbol_completion_matches): Delete
9187 declaration.
9188
9189 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9190
9191 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9192 (ada_language_data): Delete la_word_break_characters initializer.
9193 (ada_language::word_break_characters): New member function.
9194 * c-lang.c (c_language_data): Delete la_word_break_characters
9195 initializer.
9196 (cplus_language_data): Likewise.
9197 (asm_language_data): Likewise.
9198 (minimal_language_data): Likewise.
9199 * completer.c: Update global comment.
9200 (advance_to_expression_complete_word_point): Update call to
9201 word_break_characters.
9202 (complete_files_symbols): Likewise.
9203 (complete_line_internal_1): Likewise.
9204 (default_completer_handle_brkchars): Likewise.
9205 (skip_quoted_chars): Likewise.
9206 * d-lang.c (d_language_data): Delete la_word_break_characters
9207 initializer.
9208 * f-lang.c (f_word_break_characters): Delete.
9209 (f_language_data): Delete la_word_break_characters initializer.
9210 (f_language::word_break_characters): New member function.
9211 * go-lang.c (go_language_data): Delete la_word_break_characters
9212 initializer.
9213 * language.c (unknown_language_data): Likewise.
9214 (auto_language_data): Likewise.
9215 * language.h (default_word_break_characters): Move declaration to
9216 earlier in the file.
9217 (language_data): Delete la_word_break_characters field.
9218 (language_defn::word_break_characters): New member function.
9219 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9220 initializer.
9221 * objc-lang.c (objc_language_data): Likewise.
9222 * opencl-lang.c (opencl_language_data): Likewise.
9223 * p-lang.c (pascal_language_data): Likewise.
9224 * rust-lang.c (rust_language_data): Likewise.
9225
9226 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9227
9228 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9229 (ada_language_data): Delete la_get_symbol_name_matcher
9230 initializer.
9231 (language_defn::get_symbol_name_matcher_inner): New member
9232 function.
9233 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9234 initializer.
9235 (cplus_language_data): Likewise.
9236 (cplus_language::get_symbol_name_matcher_inner): New member
9237 function.
9238 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9239 (minimal_language_data): Likewise.
9240 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9241 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9242 initializer.
9243 * dictionary.c (iter_match_first_hashed): Update call to
9244 get_symbol_name_matcher.
9245 (iter_match_next_hashed): Likewise.
9246 (iter_match_next_linear): Likewise.
9247 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9248 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9249 initializer.
9250 (f_language::get_symbol_name_matcher_inner): New member function.
9251 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9252 initializer.
9253 * language.c (default_symbol_name_matcher): Update header comment,
9254 make static.
9255 (language_defn::get_symbol_name_matcher): New definition.
9256 (language_defn::get_symbol_name_matcher_inner): Likewise.
9257 (get_symbol_name_matcher): Delete.
9258 (unknown_language_data): Delete la_get_symbol_name_matcher
9259 initializer.
9260 (auto_language_data): Likewise.
9261 * language.h (language_data): Delete la_get_symbol_name_matcher
9262 field.
9263 (language_defn::get_symbol_name_matcher): New member function.
9264 (language_defn::get_symbol_name_matcher_inner): Likewise.
9265 (default_symbol_name_matcher): Delete declaration.
9266 * linespec.c (find_methods): Update call to
9267 get_symbol_name_matcher.
9268 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9269 initializer.
9270 * minsyms.c (lookup_minimal_symbol): Update call to
9271 get_symbol_name_matcher.
9272 (iterate_over_minimal_symbols): Likewise.
9273 * objc-lang.c (objc_language_data): Delete
9274 la_get_symbol_name_matcher initializer.
9275 * opencl-lang.c (opencl_language_data): Likewise.
9276 * p-lang.c (pascal_language_data): Likewise.
9277 * psymtab.c (psymbol_name_matches): Update call to
9278 get_symbol_name_matcher.
9279 * rust-lang.c (rust_language_data): Delete
9280 la_get_symbol_name_matcher initializer.
9281 * symtab.c (symbol_matches_search_name): Update call to
9282 get_symbol_name_matcher.
9283 (compare_symbol_name): Likewise.
9284
9285 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9286
9287 * ada-lang.c (ada_language_data): Delete la_compute_program
9288 initializer.
9289 * c-lang.c (c_language_data): Likewise.
9290 (c_language::compute_program): New member function.
9291 (cplus_language_data): Delete la_compute_program initializer.
9292 (cplus_language::compute_program): New member function.
9293 (asm_language_data): Delete la_compute_program initializer.
9294 (minimal_language_data): Likewise.
9295 * c-lang.h (c_compute_program): Update comment.
9296 (cplus_compute_program): Likewise.
9297 * compile/compile-c-support.c (c_compute_program): Likewise.
9298 (cplus_compute_program): Likewise.
9299 * compile/compile.c (compile_to_object): Update call to
9300 la_compute_program.
9301 * d-lang.c (d_language_data): Delete la_compute_program
9302 initializer.
9303 * f-lang.c (f_language_data): Likewise.
9304 * go-lang.c (go_language_data): Likewise.
9305 * language.c (unknown_language_data): Likewise.
9306 (auto_language_data): Likewise.
9307 * language.h (language_data): Delete la_compute_program field.
9308 (language_defn::compute_program): New member function.
9309 * m2-lang.c (m2_language_data): Delete la_compute_program
9310 initializer.
9311 * objc-lang.c (objc_language_data): Likewise.
9312 * opencl-lang.c (opencl_language_data): Likewise.
9313 * p-lang.c (pascal_language_data): Likewise.
9314 * rust-lang.c (rust_language_data): Likewise.
9315
9316 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9317
9318 * ada-lang.c (ada_language_data) Delete
9319 la_class_name_from_physname initializer.
9320 * c-lang.c (c_language_data): Likewise.
9321 (cplus_language_data): Likewise.
9322 (cplus_language::class_name_from_physname): New member function.
9323 (asm_language_data): Delete la_class_name_from_physname
9324 initializer.
9325 (minimal_language_data): Likewise.
9326 * d-lang.c (d_language_data): Likewise.
9327 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9328 method on language_defn class.
9329 (guess_full_die_structure_name): Likewise.
9330 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9331 initializer.
9332 * go-lang.c (go_language_data): Likewise.
9333 * language.c (language_class_name_from_physname): Delete.
9334 (unk_lang_class_name): Delete.
9335 (unknown_language_data): Delete la_class_name_from_physname
9336 initializer.
9337 (auto_language_data): Likewise.
9338 * language.h (language_data): Delete la_class_name_from_physname
9339 field.
9340 (language_defn::class_name_from_physname): New function.
9341 (language_class_name_from_physname): Delete declaration.
9342 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9343 initializer.
9344 * objc-lang.c (objc_language_data): Likewise.
9345 * opencl-lang.c (opencl_language_data): Likewise.
9346 * p-lang.c (pascal_language_data): Likewise.
9347 * rust-lang.c (rust_language_data): Likewise.
9348
9349 2020-06-16 Tom Tromey <tom@tromey.com>
9350
9351 * tui/tui-data.h (STATUS_NAME): New macro.
9352 * tui/tui-layout.c (tui_remove_some_windows)
9353 (initialize_known_windows, tui_register_window)
9354 (tui_layout_split::remove_windows, initialize_layouts)
9355 (tui_new_layout_command): Don't use hard-coded window names.
9356
9357 2020-06-16 Tom Tromey <tom@tromey.com>
9358
9359 PR tui/25348:
9360 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9361 tui_initialize_readline. Only run once. Call rl_initialize.
9362 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9363 tui_initialize_readline.
9364 * tui/tui-io.c (tui_setup_io): Call
9365 tui_ensure_readline_initialized.
9366 * tui/tui-interp.c (tui_interp::init): Update.
9367
9368 2020-06-16 Tom Tromey <tom@tromey.com>
9369
9370 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9371 Also preserve the status window.
9372
9373 2020-06-16 Tom Tromey <tom@tromey.com>
9374
9375 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9376 where m_window==nullptr.
9377
9378 2020-06-15 Tom Tromey <tromey@adacore.com>
9379
9380 * windows-nat.c (windows_nat::handle_output_debug_string):
9381 Update.
9382 (windows_nat::handle_ms_vc_exception): Update.
9383 * target.h (target_read_string): Change API.
9384 * target.c (target_read_string): Change API.
9385 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9386 Update.
9387 * solib-frv.c (frv_current_sos): Update.
9388 * solib-dsbt.c (dsbt_current_sos): Update.
9389 * solib-darwin.c (darwin_current_sos): Update.
9390 * linux-thread-db.c (inferior_has_bug): Update.
9391 * expprint.c (print_subexp_standard): Update.
9392 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9393 (ada_exception_message_1): Update.
9394
9395 2020-06-15 Tom Tromey <tromey@adacore.com>
9396
9397 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9398
9399 2020-06-15 Tom Tromey <tromey@adacore.com>
9400
9401 * valprint.c (read_string): Update comment.
9402 * target.c (MIN): Remove.
9403 (target_read_string): Rewrite.
9404
9405 2020-06-15 Tom Tromey <tromey@adacore.com>
9406
9407 * corefile.c (read_memory_string): Remove.
9408 * ada-valprint.c (ada_value_print_ptr): Update.
9409 * ada-lang.h (ada_tag_name): Change return type.
9410 * ada-lang.c (type_from_tag): Update.
9411 (ada_tag_name_from_tsd): Change return type. Use
9412 target_read_string.
9413 (ada_tag_name): Likewise.
9414 * gdbcore.h (read_memory_string): Don't declare.
9415
9416 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9417
9418 * symtab.c (rbreak_command): Ignore Windows drive colon.
9419
9420 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9421
9422 * NEWS: Mention removed GDBserver host support.
9423
9424 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9425
9426 * features/riscv/rebuild-csr-xml.sh: Updated.
9427
9428 2020-06-11 Tom Tromey <tom@tromey.com>
9429
9430 PR gdb/18318:
9431 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9432
9433 2020-06-09 Jonny Grant <jg@jguk.org>
9434 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9435
9436 * main.c (captured_main_1): Don't print new line after help.
9437 (print_gdb_help): add mailing list and IRC channel information
9438 to --help. Add new lines between items in the footer. Remove
9439 quotes around bug url.
9440
9441 2020-06-11 Keith Seitz <keiths@redhat.com>
9442
9443 PR gdb/21356
9444 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9445 Resolve typedefs for type length calculations.
9446
9447 2020-06-10 Tom de Vries <tdevries@suse.de>
9448
9449 PR ada/24713
9450 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9451 (write_psymbols): Enable .gdb_index for ada.
9452 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9453 ada.
9454
9455 2020-06-10 Tom de Vries <tdevries@suse.de>
9456
9457 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9458 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9459 namei" instead of "const char *name" argument.
9460 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9461 dw2_symtab_iter_init.
9462
9463 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9464
9465 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9466 to use type::field and field::type instead.
9467
9468 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9469
9470 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9471 to use field::type instead.
9472
9473 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * gdbtypes.h (struct field) <type, set_type>: New methods.
9476 Rename `type` field to...
9477 <m_type>: ... this. Change references throughout to use type or
9478 set_type methods.
9479 (FIELD_TYPE): Use field::type. Change call sites that modify
9480 the field's type to use field::set_type instead.
9481
9482 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9483
9484 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9485 to use type::index_type instead.
9486
9487 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9488
9489 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9490 methods.
9491 (TYPE_INDEX_TYPE): Use type::index_type.
9492 * gdbtypes.c (create_array_type_with_stride): Likewise.
9493
9494 2020-06-07 Tom Tromey <tom@tromey.com>
9495
9496 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9497 parameter.
9498 (generic_value_print): Update.
9499
9500 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9501
9502 Revert commit 982a38f60b0.
9503 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9504
9505 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9506
9507 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9508 avoid use after free.
9509
9510 2020-06-05 Tom de Vries <tdevries@suse.de>
9511
9512 * NEWS: Fix typos.
9513
9514 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9515
9516 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9517 the per_bfd object.
9518 (dwarf2_read_debug_names): Likewise.
9519 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9520 object when re-using a per_bfd object with an index.
9521
9522 2020-06-03 Tom de Vries <tdevries@suse.de>
9523
9524 PR symtab/26046
9525 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9526 children for C++.
9527 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9528 DW_TAG_subprogram.
9529
9530 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9531
9532 * ada-lang.c (ada_language_data): Delete skip_trampoline
9533 initializer.
9534 * c-lang.c (c_language_data): Likewise.
9535 (cplus_language_data): Likewise.
9536 (cplus_language::skip_trampoline): New member function.
9537 (asm_language_data): Delete skip_trampoline initializer.
9538 (minimal_language_data): Likewise.
9539 * d-lang.c (d_language_data): Likewise.
9540 * f-lang.c (f_language_data): Likewise.
9541 * go-lang.c (go_language_data): Likewise.
9542 * language.c (unk_lang_trampoline): Delete function.
9543 (skip_language_trampoline): Update.
9544 (unknown_language_data): Delete skip_trampoline initializer.
9545 (auto_language_data): Likewise.
9546 * language.h (language_data): Delete skip_trampoline field.
9547 (language_defn::skip_trampoline): New function.
9548 * m2-lang.c (m2_language_data): Delete skip_trampoline
9549 initializer.
9550 * objc-lang.c (objc_skip_trampoline): Delete function, move
9551 implementation to objc_language::skip_trampoline.
9552 (objc_language_data): Delete skip_trampoline initializer.
9553 (objc_language::skip_trampoline): New member function with
9554 implementation from objc_skip_trampoline.
9555 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9556 initializer.
9557 * p-lang.c (pascal_language_data): Likewise.
9558 * rust-lang.c (rust_language_data): Likewise.
9559
9560 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9561
9562 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9563 (ada_language::demangle): New member function.
9564 * c-lang.c (c_language_data): Delete la_demangle initializer.
9565 (cplus_language_data): Delete la_demangle initializer.
9566 (cplus_language::demangle): New member function.
9567 (asm_language_data): Delete la_demangle initializer.
9568 (minimal_language_data): Delete la_demangle initializer.
9569 * d-lang.c (d_language_data): Delete la_demangle initializer.
9570 (d_language::demangle): New member function.
9571 * f-lang.c (f_language_data): Delete la_demangle initializer.
9572 (f_language::demangle): New member function.
9573 * go-lang.c (go_language_data): Delete la_demangle initializer.
9574 (go_language::demangle): New member function.
9575 * language.c (language_demangle): Update.
9576 (unk_lang_demangle): Delete.
9577 (unknown_language_data): Delete la_demangle initializer.
9578 (unknown_language::demangle): New member function.
9579 (auto_language_data): Delete la_demangle initializer.
9580 (auto_language::demangle): New member function.
9581 * language.h (language_data): Delete la_demangle field.
9582 (language_defn::demangle): New function.
9583 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9584 * objc-lang.c (objc_language_data): Delete la_demangle
9585 initializer.
9586 (objc_language::demangle): New member function.
9587 * opencl-lang.c (opencl_language_data): Delete la_demangle
9588 initializer.
9589 * p-lang.c (pascal_language_data): Likewise.
9590 * rust-lang.c (rust_language_data): Likewise.
9591 (rust_language::demangle): New member function.
9592
9593 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9594
9595 * ada-lang.c (ada_language_data): Delete la_print_type
9596 initializer.
9597 (ada_language::print_type): New member function.
9598 * c-lang.c (c_language_data): Delete la_print_type initializer.
9599 (c_language::print_type): New member function.
9600 (cplus_language_data): Delete la_print_type initializer.
9601 (cplus_language::print_type): New member function.
9602 (asm_language_data): Delete la_print_type initializer.
9603 (asm_language::print_type): New member function.
9604 (minimal_language_data): Delete la_print_type initializer.
9605 (minimal_language::print_type): New member function.
9606 * d-lang.c (d_language_data): Delete la_print_type initializer.
9607 (d_language::print_type): New member function.
9608 * f-lang.c (f_language_data): Delete la_print_type initializer.
9609 (f_language::print_type): New member function.
9610 * go-lang.c (go_language_data): Delete la_print_type initializer.
9611 (go_language::print_type): New member function.
9612 * language.c (unk_lang_print_type): Delete.
9613 (unknown_language_data): Delete la_print_type initializer.
9614 (unknown_language::print_type): New member function.
9615 (auto_language_data): Delete la_print_type initializer.
9616 (auto_language::print_type): New member function.
9617 * language.h (language_data): Delete la_print_type field.
9618 (language_defn::print_type): New function.
9619 (LA_PRINT_TYPE): Update.
9620 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9621 (m2_language::print_type): New member function.
9622 * objc-lang.c (objc_language_data): Delete la_print_type
9623 initializer.
9624 (objc_language::print_type): New member function.
9625 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9626 to opencl_language::print_type.
9627 (opencl_language_data): Delete la_print_type initializer.
9628 (opencl_language::print_type): New member function, implementation
9629 from opencl_print_type.
9630 * p-lang.c (pascal_language_data): Delete la_print_type
9631 initializer.
9632 (pascal_language::print_type): New member function.
9633 * rust-lang.c (rust_print_type): Delete, implementation moved to
9634 rust_language::print_type.
9635 (rust_language_data): Delete la_print_type initializer.
9636 (rust_language::print_type): New member function, implementation
9637 from rust_print_type.
9638
9639 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9640
9641 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9642 implementation moves to...
9643 (ada_language::sniff_from_mangled_name): ...here. Update return
9644 type.
9645 (ada_language_data): Delete la_sniff_from_mangled_name
9646 initializer.
9647 * c-lang.c (c_language_data): Likewise.
9648 (cplus_language_data): Likewise.
9649 (cplus_language::sniff_from_mangled_name): New member function,
9650 implementation taken from gdb_sniff_from_mangled_name.
9651 (asm_language_data): Delete la_sniff_from_mangled_name
9652 initializer.
9653 (minimal_language_data): Likewise.
9654 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9655 implementation moves to cplus_language::sniff_from_mangled_name.
9656 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9657 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9658 moves to...
9659 (d_language::sniff_from_mangled_name): ...here.
9660 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9661 * f-lang.c (f_language_data): Likewise.
9662 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9663 moves to...
9664 (go_language::sniff_from_mangled_name): ...here.
9665 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9666 * language.c (language_sniff_from_mangled_name): Delete.
9667 (unknown_language_data): Delete la_sniff_from_mangled_name
9668 initializer.
9669 (auto_language_data): Likewise.
9670 * language.h (language_data): Delete la_sniff_from_mangled_name
9671 field.
9672 (language_defn::sniff_from_mangled_name): New function.
9673 (language_sniff_from_mangled_name): Delete declaration.
9674 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9675 field.
9676 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9677 implementation moves to...
9678 (objc_language::sniff_from_mangled_name): ...here.
9679 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9680 * opencl-lang.c (opencl_language_data): Likewise.
9681 * p-lang.c (pascal_language_data): Likewise.
9682 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9683 implementation moves to...
9684 (rust_language::sniff_from_mangled_name): ...here.
9685 (rust_language_data): Delete la_sniff_from_mangled_name
9686 initializer.
9687 * symtab.c (symbol_find_demangled_name): Call
9688 sniff_from_mangled_name member function.
9689
9690 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9691
9692 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9693 initializer.
9694 * c-lang.c (c_language_data): Likewise.
9695 (cplus_language_data): Likewise.
9696 (cplus_language::search_name_hash): New member function.
9697 (asm_language_data): Delete la_search_name_hash initializer.
9698 (minimal_language_data): Likewise.
9699 * d-lang.c (d_language_data): Likewise.
9700 * dictionary.c (default_search_name_hash): Rename to...
9701 (language_defn::search_name_hash): ...this.
9702 * f-lang.c (f_language_data): Likewise.
9703 (f_language::search_name_hash): New member function.
9704 * go-lang.c (go_language_data): Delete la_search_name_hash
9705 initializer.
9706 * language.c (unknown_language_data): Likewise.
9707 (auto_language_data): Likewise.
9708 * language.h (struct language_data): Delete la_search_name_hash
9709 field.
9710 (language_defn::search_name_hash): Declare new member function.
9711 (default_search_name_hash): Delete declaration.
9712 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9713 initializer.
9714 * objc-lang.c (objc_language_data): Likewise.
9715 * opencl-lang.c (opencl_language_data): Likewise.
9716 * p-lang.c (pascal_language_data): Likewise.
9717 * rust-lang.c (rust_language_data): Likewise.
9718 * symtab.c (search_name_hash): Update call.
9719
9720 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9721
9722 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9723 initializer.
9724 * c-lang.c (class compile_instance): Declare.
9725 (c_language_data): Delete la_get_compile_instance initializer.
9726 (c_language::get_compile_instance): New member function.
9727 (cplus_language_data): Delete la_get_compile_instance initializer.
9728 (cplus_language::get_compile_instance): New member function.
9729 (asm_language_data): Delete la_get_compile_instance initializer.
9730 (minimal_language_data): Likewise.
9731 * c-lang.h (c_get_compile_context): Update comment.
9732 (cplus_get_compile_context): Update comment.
9733 * compile/compile.c (compile_to_object): Update calls, don't rely
9734 on function pointer being NULL.
9735 * d-lang.c (d_language_data): Delete la_get_compile_instance
9736 initializer.
9737 * f-lang.c (f_language_data): Likewise.
9738 * go-lang.c (go_language_data): Likewise.
9739 * language.c (unknown_language_data): Likewise.
9740 (auto_language_data): Likewise.
9741 * language.h (language_data): Delete la_get_compile_instance field.
9742 (language_defn::get_compile_instance): New member function.
9743 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9744 initializer.
9745 * objc-lang.c (objc_language_data): Likewise.
9746 * opencl-lang.c (opencl_language_data): Likewise.
9747 * p-lang.c (pascal_language_data): Likewise.
9748 * rust-lang.c (rust_language_data): Likewise.
9749
9750 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9751
9752 * ada-lang.c (ada_add_all_symbols): Update comment.
9753 (ada_iterate_over_symbols): Delete, move implementation to...
9754 (ada_language::iterate_over_symbols): ...here, a new member
9755 function, rewrite to use range based for loop.
9756 (ada_language_data): Delete la_iterate_over_symbols initializer.
9757 * c-lang.c (c_language_data): Likewise.
9758 (cplus_language_data): Likewise.
9759 (asm_language_data): Likewise.
9760 (minimal_language_data): Likewise.
9761 * d-lang.c (d_language_data): Likewise.
9762 * f-lang.c (f_language_data): Likewise.
9763 * go-lang.c (go_language_data): Likewise.
9764 * language.c (unknown_language_data): Likewise.
9765 (auto_language_data): Likewise.
9766 * language.h (language_data): Delete la_iterate_over_symbols field.
9767 (language_defn::iterate_over_symbols): New member function.
9768 (LA_ITERATE_OVER_SYMBOLS): Update.
9769 * linespec.c (iterate_over_all_matching_symtabs): Update.
9770 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9771 initializer.
9772 * objc-lang.c (objc_language_data): Likewise.
9773 * opencl-lang.c (opencl_language_data): Likewise.
9774 * p-lang.c (pascal_language_data): Likewise.
9775 * rust-lang.c (rust_language_data): Likewise.
9776
9777 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9778
9779 * ada-lang.c (ada_language_data): Delete
9780 la_lookup_transparent_type initializer.
9781 * c-lang.c (c_language_data): Likewise.
9782 (cplus_language_data): Likewise.
9783 (cplus_language::lookup_transparent_type): New member function.
9784 (asm_language_data): Delete la_lookup_transparent_type
9785 initializer.
9786 (minimal_language_data): Likewise.
9787 * d-lang.c (d_language_data): Likewise.
9788 * f-lang.c (f_language_data): Likewise.
9789 * go-lang.c (go_language_data): Likewise.
9790 * language.c (unknown_language_data): Likewise.
9791 (auto_language_data): Likewise.
9792 * language.h (struct language_data): Delete
9793 la_lookup_transparent_type field.
9794 (language_defn::lookup_transparent_type): New member function.
9795 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9796 initializer.
9797 * objc-lang.c (objc_language_data): Likewise.
9798 * opencl-lang.c (opencl_language_data): Likewise.
9799 * p-lang.c (pascal_language_data): Likewise.
9800 * rust-lang.c (rust_language_data): Likewise.
9801 * symtab.c (symbol_matches_domain): Update call.
9802
9803 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9804
9805 * ada-lang.c (ada_language_arch_info): Delete function, move
9806 implementation to...
9807 (ada_language::language_arch_info): ...here, a new member
9808 function.
9809 (ada_language_data): Delete la_language_arch_info.
9810 * c-lang.c (c_language_data): Likewise.
9811 (c_language::language_arch_info): New member function.
9812 (cplus_language_arch_info): Delete function, move
9813 implementation to...
9814 (cplus_language::language_arch_info): ...here, a new member
9815 function.
9816 (cplus_language_data): Delete la_language_arch_info.
9817 (asm_language_data): Likewise.
9818 (asm_language::language_arch_info): New member function.
9819 (minimal_language_data): Delete la_language_arch_info.
9820 (minimal_language::language_arch_info): New member function.
9821 * d-lang.c (d_language_arch_info): Delete function, move
9822 implementation to...
9823 (d_language::language_arch_info): ...here, a new member
9824 function.
9825 (d_language_data): Delete la_language_arch_info.
9826 * f-lang.c (f_language_arch_info): Delete function, move
9827 implementation to...
9828 (f_language::language_arch_info): ...here, a new member
9829 function.
9830 (f_language_data): Delete la_language_arch_info.
9831 * go-lang.c (go_language_arch_info): Delete function, move
9832 implementation to...
9833 (go_language::language_arch_info): ...here, a new member
9834 function.
9835 (go_language_data): Delete la_language_arch_info.
9836 * language.c (unknown_language_data): Likewise.
9837 (unknown_language::language_arch_info): New member function.
9838 (auto_language_data): Delete la_language_arch_info.
9839 (auto_language::language_arch_info): New member function.
9840 (language_gdbarch_post_init): Update call to
9841 la_language_arch_info.
9842 * language.h (language_data): Delete la_language_arch_info
9843 function pointer.
9844 (language_defn::language_arch_info): New function.
9845 * m2-lang.c (m2_language_arch_info): Delete function, move
9846 implementation to...
9847 (m2_language::language_arch_info): ...here, a new member
9848 function.
9849 (m2_language_data): Delete la_language_arch_info.
9850 * objc-lang.c (objc_language_arch_info): Delete function, move
9851 implementation to...
9852 (objc_language::language_arch_info): ...here, a new member
9853 function.
9854 (objc_language_data): Delete la_language_arch_info.
9855 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9856 implementation to...
9857 (opencl_language::language_arch_info): ...here, a new member
9858 function.
9859 (opencl_language_data): Delete la_language_arch_info.
9860 * p-lang.c (pascal_language_arch_info): Delete function, move
9861 implementation to...
9862 (pascal_language::language_arch_info): ...here, a new member
9863 function.
9864 (pascal_language_data): Delete la_language_arch_info.
9865 * rust-lang.c (rust_language_arch_info): Delete function, move
9866 implementation to...
9867 (rust_language::language_arch_info): ...here, a new member
9868 function.
9869 (rust_language_data): Delete la_language_arch_info.
9870
9871 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9872
9873 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9874 initializer.
9875 * c-lang.c (c_language_data): Likewise.
9876 (cplus_language_data): Likewise.
9877 (cplus_language::pass_by_reference_info): New method.
9878 (asm_language_data): Delete la_pass_by_reference initializer.
9879 (minimal_language_data): Likewise.
9880 * cp-abi.c (cp_pass_by_reference): Remove use of
9881 default_pass_by_reference.
9882 * d-lang.c (d_language_data): Likewise.
9883 * f-lang.c (f_language_data): Likewise.
9884 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9885 default_pass_by_reference.
9886 * go-lang.c (go_language_data): Likewise.
9887 * language.c (language_pass_by_reference): Update.
9888 (default_pass_by_reference): Delete.
9889 (unknown_language_data): Delete la_pass_by_reference
9890 initializer.
9891 (auto_language_data): Likewise.
9892 * language.h (struct language_data): Delete la_pass_by_reference
9893 field.
9894 (language_defn::pass_by_reference_info): New member function.
9895 (default_pass_by_reference): Delete declaration.
9896 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9897 initializer.
9898 * objc-lang.c (objc_language_data): Likewise.
9899 * opencl-lang.c (opencl_language_data): Likewise.
9900 * p-lang.c (pascal_language_data): Likewise.
9901 * rust-lang.c (rust_language_data): Likewise.
9902
9903 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9904
9905 * ada-lang.c (ada_read_var_value): Delete function, move
9906 implementation to...
9907 (ada_language::read_var_value): ...here.
9908 (ada_language_data): Delete la_read_var_value initializer.
9909 * c-lang.c (c_language_data): Likewise.
9910 (cplus_language_data): Likewise.
9911 (minimal_language_data): Likewise.
9912 * d-lang.c (d_language_data): Likewise.
9913 * f-lang.c (f_language_data): Likewise.
9914 * findvar.c (default_read_var_value): Rename to...
9915 (language_defn::read_var_value): ...this.
9916 * findvar.c (read_var_value): Update header comment, and change to
9917 call member function instead of function pointer.
9918 * go-lang.c (go_language_data): Likewise.
9919 * language.c (unknown_language_data): Delete la_read_var_value
9920 initializer.
9921 (auto_language_data): Likewise.
9922 * language.h (struct language_data): Delete la_read_var_value
9923 field.
9924 (language_defn::read_var_value): New member function.
9925 (default_read_var_value): Delete declaration.
9926 * m2-lang.c (m2_language_data): Delete la_read_var_value
9927 initializer.
9928 * objc-lang.c (objc_language_data): Likewise.
9929 * opencl-lang.c (opencl_language_data): Likewise.
9930 * p-lang.c (pascal_language_data): Likewise.
9931 * rust-lang.c (rust_language_data): Likewise.
9932 * value.h (default_read_var_value): Delete declaration.
9933
9934 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9935
9936 * ada-lang.c (ada_print_array_index): Delete function, move
9937 implementation to...
9938 (ada_language::print_array_index): ...here.
9939 (ada_language_data): Delete la_print_array_index initializer.
9940 * c-lang.c (c_language_data): Likewise.
9941 (cplus_language_data): Likewise.
9942 (minimal_language_data): Likewise.
9943 * d-lang.c (d_language_data): Likewise.
9944 * f-lang.c (f_language_data): Likewise.
9945 * go-lang.c (go_language_data): Likewise.
9946 * language.c (default_print_array_index): Delete function, move
9947 implementation to...
9948 (language_defn::print_array_index): ...here.
9949 (unknown_language_data): Delete la_print_array_index initializer.
9950 (auto_language_data): Likewise.
9951 * language.h (struct language_data): Delete la_print_array_index
9952 field.
9953 (language_defn::print_array_index): New member function.
9954 (LA_PRINT_ARRAY_INDEX): Update.
9955 (default_print_array_index): Delete declaration.
9956 * m2-lang.c (m2_language_data): Delete la_print_array_index
9957 initializer.
9958 * objc-lang.c (objc_language_data): Likewise.
9959 * opencl-lang.c (opencl_language_data): Likewise.
9960 * p-lang.c (pascal_language_data): Likewise.
9961 * rust-lang.c (rust_language_data): Likewise.
9962
9963 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9964
9965 * gdb/ada-lang.c (ada_language_defn): Convert to...
9966 (ada_language_data): ...this.
9967 (class ada_language): New class.
9968 (ada_language_defn): New static global.
9969 * gdb/c-lang.c (c_language_defn): Convert to...
9970 (c_language_data): ...this.
9971 (class c_language): New class.
9972 (c_language_defn): New static global.
9973 (cplus_language_defn): Convert to...
9974 (cplus_language_data): ...this.
9975 (class cplus_language): New class.
9976 (cplus_language_defn): New static global.
9977 (asm_language_defn): Convert to...
9978 (asm_language_data): ...this.
9979 (class asm_language): New class.
9980 (asm_language_defn): New static global.
9981 (minimal_language_defn): Convert to...
9982 (minimal_language_data): ...this.
9983 (class minimal_language): New class.
9984 (minimal_language_defn): New static global.
9985 * gdb/d-lang.c (d_language_defn): Convert to...
9986 (d_language_data): ...this.
9987 (class d_language): New class.
9988 (d_language_defn): New static global.
9989 * gdb/f-lang.c (f_language_defn): Convert to...
9990 (f_language_data): ...this.
9991 (class f_language): New class.
9992 (f_language_defn): New static global.
9993 * gdb/go-lang.c (go_language_defn): Convert to...
9994 (go_language_data): ...this.
9995 (class go_language): New class.
9996 (go_language_defn): New static global.
9997 * gdb/language.c (unknown_language_defn): Remove declaration.
9998 (current_language): Initialize to nullptr, real initialization is
9999 moved to _initialize_language.
10000 (languages): Delete global.
10001 (language_defn::languages): Define.
10002 (set_language_command): Use language_defn::languages.
10003 (set_language): Likewise.
10004 (range_error): Likewise.
10005 (language_enum): Likewise.
10006 (language_def): Likewise.
10007 (add_set_language_command): Use language_def::languages for the
10008 language list, and language_def to lookup language pointers.
10009 (skip_language_trampoline): Use language_defn::languages.
10010 (unknown_language_defn): Convert to...
10011 (unknown_language_data): ...this.
10012 (class unknown_language): New class.
10013 (unknown_language_defn): New static global.
10014 (auto_language_defn): Convert to...
10015 (auto_language_data): ...this.
10016 (class auto_language): New class.
10017 (auto_language_defn): New static global.
10018 (language_gdbarch_post_init): Use language_defn::languages.
10019 (_initialize_language): Initialize current_language.
10020 * gdb/language.h (struct language_defn): Rename to...
10021 (struct language_data): ...this.
10022 (struct language_defn): New.
10023 (auto_language_defn): Delete.
10024 (unknown_language_defn): Delete.
10025 (minimal_language_defn): Delete.
10026 (ada_language_defn): Delete.
10027 (asm_language_defn): Delete.
10028 (c_language_defn): Delete.
10029 (cplus_language_defn): Delete.
10030 (d_language_defn): Delete.
10031 (f_language_defn): Delete.
10032 (go_language_defn): Delete.
10033 (m2_language_defn): Delete.
10034 (objc_language_defn): Delete.
10035 (opencl_language_defn): Delete.
10036 (pascal_language_defn): Delete.
10037 (rust_language_defn): Delete.
10038 * gdb/m2-lang.c (m2_language_defn): Convert to...
10039 (m2_language_data): ...this.
10040 (class m2_language): New class.
10041 (m2_language_defn): New static global.
10042 * gdb/objc-lang.c (objc_language_defn): Convert to...
10043 (objc_language_data): ...this.
10044 (class objc_language): New class.
10045 (objc_language_defn): New static global.
10046 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
10047 (opencl_language_data): ...this.
10048 (class opencl_language): New class.
10049 (opencl_language_defn): New static global.
10050 * gdb/p-lang.c (pascal_language_defn): Convert to...
10051 (pascal_language_data): ...this.
10052 (class pascal_language): New class.
10053 (pascal_language_defn): New static global.
10054 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
10055 language pointer, update comment format.
10056 * gdb/rust-lang.c (rust_language_defn): Convert to...
10057 (rust_language_data): ...this.
10058 (class rust_language): New class.
10059 (rust_language_defn): New static global.
10060
10061 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
10062
10063 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
10064 member variable.
10065 <m_stmt_at_address>: New member variable.
10066 (lnp_state_machine::record_line): Don't record some lines, update
10067 tracking of is_stmt at the same address.
10068 (lnp_state_machine::lnp_state_machine): Initialise new member
10069 variables.
10070
10071 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10072
10073 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
10074 "-include gnu-nat-mig.h".
10075 * gnu-nat-mig.h: New file.
10076 * gnu-nat.c: Include "gnu-nat-mig.h".
10077 (exc_server, msg_reply_server, notify_server,
10078 process_reply_server): Remove declarations.
10079
10080 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10081
10082 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
10083 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
10084 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
10085 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
10086 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
10087 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
10088 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
10089 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
10090 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
10091 to gnu_nat_target class.
10092 * gnu-nat.c: Likewise.
10093 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
10094 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
10095 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
10096 object.
10097 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
10098 instead of `gnu_target'.
10099
10100 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10101
10102 * i386-gnu-tdep.c: Include "gdbcore.h"
10103 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
10104 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
10105 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
10106 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
10107 i386_gnu_sigcontext_addr): New functions
10108 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
10109 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
10110 tdep.
10111
10112 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10113
10114 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
10115 before fork_inferior call. Avoid calling it if target_is_pushed returns
10116 true.
10117
10118 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10119
10120 * gnu-nat.h (gnu_target): New variable declaration.
10121 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
10122 gnu_target.
10123 * gnu-nat.c (gnu_target): New variable.
10124 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
10125 add_thread_silent, and add_thread calls.
10126 (gnu_nat_target::create_inferior): Pass gnu_target to
10127 add_thread_silent, thread_change_ptid call.
10128 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
10129 call.
10130
10131 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10132
10133 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
10134 (gnu_nat_target::find_memory_regions): Remove unused
10135 `old_address' variable.
10136
10137 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10138
10139 * gnu-nat.c: Include "gdbarch.h".
10140
10141 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10142
10143 * reply_mig_hack.awk (Error return): Cast function through
10144 void *, to bypass compiler function call check.
10145
10146 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10147
10148 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
10149 $(srcdir)/reply_mig_hack.awk.
10150
10151 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10152
10153 * gnu-nat.h (gnu_debug_flag): Set type to bool.
10154
10155 2020-05-30 Jonny Grant <jg@jguk.org>
10156
10157 * configure.ac (ACX_BUGURL): change bug URL to https.
10158
10159 2020-05-30 Pedro Alves <palves@redhat.com>
10160
10161 * cp-support.c (replace_typedefs_template): New.
10162 (replace_typedefs_qualified_name): Handle
10163 DEMANGLE_COMPONENT_TEMPLATE.
10164
10165 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
10166
10167 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
10168 dwarf2/index-cache.h, dwarf2/index-write.c,
10169 dwarf2/index-write.h, dwarf2/line-header.c,
10170 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
10171 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10172 variables and fields from `dwarf2_per_objfile` to just
10173 `per_objfile` throughout.
10174
10175 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10176
10177 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10178 <push_dwarf_reg_entry_value>: Add comment.
10179
10180 2020-05-28 Kevin Buettner <kevinb@redhat.com>
10181 Keith Seitz <keiths@redhat.com>
10182
10183 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10184 instead of PyEval_ReleaseLock.
10185 (class gdbpy_gil): Move to earlier in file.
10186 (finalize_python): Set gdb_python_initialized.
10187 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10188 when not initialized.
10189
10190 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
10191
10192 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10193 <push_dwarf_reg_entry_value>: Remove assert. Override
10194 per_objfile with caller_per_objfile.
10195
10196 2020-05-28 Tom de Vries <tdevries@suse.de>
10197
10198 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10199 PR gold/15646 workaround to symbol kind "type".
10200
10201 2020-05-27 Tom Tromey <tromey@adacore.com>
10202
10203 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10204
10205 2020-05-27 Tom Tromey <tromey@adacore.com>
10206
10207 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10208 Use htab_find_with_hash.
10209 <add_abbrev>: Remove "abbrev_number" parameter.
10210 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10211 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10212 (hash_abbrev): Add comment.
10213 (abbrev_table::lookup_abbrev): Move to header file.
10214 (abbrev_table::read): Update.
10215
10216 2020-05-27 Tom Tromey <tromey@adacore.com>
10217
10218 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10219 method.
10220 <canonical_name>: New member.
10221 <raw_name>: Rename from "name".
10222 (partial_die_info): Initialize canonical_name.
10223 (scan_partial_symbols): Check raw_name.
10224 (partial_die_parent_scope, partial_die_full_name)
10225 (add_partial_symbol, add_partial_subprogram)
10226 (add_partial_enumeration, load_partial_dies): Use "name" method.
10227 (partial_die_info::name): New method.
10228 (partial_die_info::read, guess_partial_die_structure_name)
10229 (partial_die_info::fixup): Update.
10230
10231 2020-05-27 Tom Tromey <tromey@adacore.com>
10232
10233 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10234 <get_ref_die_offset>: Inline.
10235 <get_ref_die_offset_complaint>: New method.
10236 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10237 (attribute::get_ref_die_offset_complaint): Rename from
10238 get_ref_die_offset. Just issue complaint.
10239
10240 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10241
10242 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10243
10244 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10245
10246 * exec.c (exec_file_attach): Use errno value of first openp failure.
10247
10248 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10249
10250 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10251 Don't close thread handle.
10252
10253 2020-05-27 Tom Tromey <tom@tromey.com>
10254 Simon Marchi <simon.marchi@efficios.com>
10255
10256 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10257 shared_ptr.
10258 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10259 member.
10260 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10261 dwarf2_per_bfd_objfile_data_key>: New globals.
10262 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10263 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10264 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10265 shared.
10266 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10267 short-circuit when sharing.
10268 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10269 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10270
10271 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10274 to...
10275 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10276 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10277
10278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10279
10280 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10281 build_name_components, find_name_components_bounds>:
10282 Add per_objfile parameter.
10283 (struct mapped_index) <symbol_name_at>: Likewise.
10284 (struct mapped_debug_names): Remove constructor.
10285 <dwarf2_per_objfile>: Remove field.
10286 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10287 (mapped_index_base::find_name_components_bounds,
10288 mapped_index_base::build_name_components,
10289 dw2_expand_symtabs_matching_symbol): Likewise.
10290 (class mock_mapped_index) <symbol_name_at>: Likewise.
10291 (check_match): Likewise.
10292 (check_find_bounds_finds): Likewise.
10293 (test_mapped_index_find_name_component_bounds): Update.
10294 (CHECK_MATCH): Update.
10295 (dw2_expand_symtabs_matching): Update.
10296 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10297 per_objfile parameter.
10298 <find_vec_in_debug_names>: Likewise.
10299 <m_per_objfile>: New field.
10300 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10301 parameter.
10302 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10303 (dw2_debug_names_iterator::next): Update.
10304 (dw2_debug_names_lookup_symbol): Update.
10305 (dw2_debug_names_expand_symtabs_for_function): Update.
10306 (dw2_debug_names_map_matching_symbols): Update.
10307 (dw2_debug_names_expand_symtabs_matching): Update.
10308 (dwarf2_read_debug_names): Update.
10309
10310 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10311
10312 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10313 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10314 move to dwarf2_per_objfile.
10315 <read_in_chain>: Remove.
10316 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10317 remove_all_cus, age_comp_units>: New methods.
10318 <m_dwarf2_cus>: New member.
10319 (struct dwarf2_per_cu_data) <cu>: Remove.
10320 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10321 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10322 moved to methods of dwarf2_per_objfile.
10323 (dwarf2_clear_marks): Remove.
10324 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10325 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10326 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10327 (dwarf2_per_objfile::remove_all_cus): New.
10328 (class free_cached_comp_units) <~free_cached_comp_units>:
10329 Update.
10330 (load_cu): Update.
10331 (dw2_do_instantiate_symtab): Adjust.
10332 (fill_in_sig_entry_from_dwo_entry): Adjust.
10333 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10334 (cutu_reader::cutu_reader): Likewise.
10335 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10336 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10337 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10338 and dwarf2_per_objfile::age_comp_units.
10339 (load_partial_comp_unit): Update.
10340 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10341 (process_queue): Likewise.
10342 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10343 backlink.
10344 (dwarf2_read_addr_index): Likewise.
10345 (follow_die_offset): Likewise.
10346 (dwarf2_fetch_die_loc_sect_off): Likewise.
10347 (dwarf2_fetch_constant_bytes): Likewise.
10348 (dwarf2_fetch_die_type_sect_off): Likewise.
10349 (follow_die_sig_1): Likewise.
10350 (load_full_type_unit): Likewise.
10351 (read_signatured_type): Likewise.
10352 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10353 (dwarf2_cu::~dwarf2_cu): Remove.
10354 (dwarf2_per_objfile::get_cu): New.
10355 (dwarf2_per_objfile::set_cu): New.
10356 (age_cached_comp_units): Rename to...
10357 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10358 to std::unordered_map.
10359 (free_one_cached_comp_unit): Rename to...
10360 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10361 to std::unordered_map.
10362 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10363 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10364 a dwarf2_per_objfile in data.
10365 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10366 (dwarf2_clear_marks): Remove.
10367
10368 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10369
10370 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10371 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10372 (init_tu_and_read_dwo_dies): Likewise.
10373 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10374 (cutu_reader::cutu_reader): Likewise.
10375 (load_partial_comp_unit): Likewise.
10376 (process_psymtab_comp_unit): Update.
10377 (build_type_psymtabs_1): Update.
10378 (process_skeletonless_type_unit): Update.
10379 (load_full_comp_unit): Update.
10380 (find_partial_die): Update.
10381 (dwarf2_read_addr_index): Update.
10382 (read_signatured_type): Update.
10383
10384 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10385
10386 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10387 m_header_read_in>: New fields.
10388 <get_header>: New method.
10389 * dwarf2/read.c (per_cu_header_read_in): Remove.
10390 (dwarf2_per_cu_data::get_header): New.
10391 (dwarf2_per_cu_data::addr_size): Update.
10392 (dwarf2_per_cu_data::offset_size): Update.
10393 (dwarf2_per_cu_data::ref_addr_size): Update.
10394
10395 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10396
10397 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10398 (dw2_do_instantiate_symtab): Update.
10399 (queue_and_load_all_dwo_tus): Change parameter from
10400 dwarf2_per_cu_data to dwarf2_cu.
10401 (dwarf2_fetch_die_loc_sect_off): Update.
10402 (dwarf2_fetch_constant_bytes): Update.
10403 (dwarf2_fetch_die_type_sect_off): Update.
10404
10405 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10406
10407 * dwarf2/read.c (process_full_comp_unit,
10408 process_full_type_unit): Remove per_cu, per_objfile paramters.
10409 Add dwarf2_cu parameter.
10410 (process_queue): Update.
10411
10412 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10413
10414 * dwarf2/read.c (create_cu_from_index_list): Replace
10415 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10416 (create_cus_from_index_list): Likewise.
10417 (create_cus_from_index): Likewise.
10418 (create_signatured_type_table_from_index): Likewise.
10419 (create_cus_from_debug_names_list): Likewise.
10420 (create_cus_from_debug_names): Likewise.
10421 (dwarf2_read_gdb_index): Update.
10422 (dwarf2_read_debug_names): Update.
10423
10424 2020-05-27 Tom Tromey <tom@tromey.com>
10425 Simon Marchi <simon.marchi@efficios.com>
10426
10427 * dwarf2/read.h (struct dwarf2_per_objfile)
10428 <get_type_for_signatured_type, set_type_for_signatured_type>:
10429 New methods.
10430 <m_type_map>: New member.
10431 (struct signatured_type) <type>: Remove.
10432 * dwarf2/read.c
10433 (dwarf2_per_objfile::get_type_for_signatured_type,
10434 dwarf2_per_objfile::set_type_for_signatured_type): New.
10435 (get_signatured_type): Use new methods.
10436
10437 2020-05-27 Tom Tromey <tom@tromey.com>
10438 Simon Marchi <simon.marchi@efficios.com>
10439
10440 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10441 (struct dwarf2_per_objfile) <type_units>: New member.
10442 <get_type_unit_group_unshareable>: New method.
10443 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10444 num_symtabs, symtabs>: Remove; move to
10445 type_unit_group_unshareable.
10446 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10447 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10448 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10449
10450 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10451
10452 * dwarf2/read.h (struct dwarf2_per_cu_data):
10453 <dwarf2_per_objfile>: Remove.
10454 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10455 dwarf2_per_objfile.
10456 (create_signatured_type_table_from_index): Likewise.
10457 (create_signatured_type_table_from_debug_names): Likewise.
10458 (create_debug_type_hash_table): Likewise.
10459 (fill_in_sig_entry_from_dwo_entry): Likewise.
10460 (create_type_unit_group): Likewise.
10461 (read_comp_units_from_section): Likewise.
10462 (create_cus_hash_table): Likewise.
10463
10464 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10465
10466 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10467 dwarf2_per_cu_data::dwarf2_per_objfile.
10468 (compute_compunit_symtab_includes): Likewise.
10469 (dwarf2_cu::start_symtab): Likewise.
10470
10471 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10472
10473 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10474 parameter.
10475 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10476 (read_namespace_alias): Update.
10477 (lookup_die_type): Update.
10478 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10479 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10480 Update.
10481 (disassemble_dwarf_expression): Update.
10482
10483 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10484
10485 * dwarf2/read.h (struct dwarf2_queue_item): Add
10486 dwarf2_per_objfile parameter, assign new parameter.
10487 <per_objfile>: New field.
10488 * dwarf2/read.c (free_one_cached_comp_unit): Add
10489 dwarf2_per_objfile parameter.
10490 (queue_comp_unit): Likewise.
10491 (dw2_do_instantiate_symtab): Update.
10492 (process_psymtab_comp_unit): Update.
10493 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10494 (process_imported_unit_die): Update.
10495 (queue_and_load_dwo_tu): Update.
10496 (follow_die_offset): Update.
10497 (follow_die_sig_1): Update.
10498
10499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10502 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10503 (read_call_site_scope): Assign per_objfile.
10504 (dwarf2_per_cu_data::objfile): Remove.
10505 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10506 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10507 dwarf2_per_objfile parameter.
10508 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10509 dwarf2_per_objfile parameter.
10510 (dwarf_expr_reg_to_entry_parameter): Add output
10511 dwarf2_per_objfile parameter.
10512 (locexpr_get_frame_base): Update.
10513 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10514 <push_dwarf_reg_entry_value>: Update.
10515 <call_site_to_target_addr>: Update.
10516 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10517 parameter.
10518 (value_of_dwarf_reg_entry): Update.
10519 (rw_pieced_value): Update.
10520 (indirect_synthetic_pointer): Update.
10521 (dwarf2_evaluate_property): Update.
10522 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10523 parameter.
10524 (locexpr_read_variable): Update.
10525 (locexpr_get_symbol_read_needs): Update.
10526 (loclist_read_variable): Update.
10527
10528 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10529
10530 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10531 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10532 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10533 parameter.
10534 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10535 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10536 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10537 parameter.
10538 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10539 sect_variable_value): Add dwarf2_per_objfile parameter.
10540 (class dwarf_evaluate_loc_desc) <dwarf_call,
10541 dwarf_variable_value>: Update.
10542 (fetch_const_value_from_synthetic_pointer): Add
10543 dwarf2_per_objfile parameter.
10544 (fetch_const_value_from_synthetic_pointer): Update.
10545 (coerced_pieced_ref): Update.
10546 (class symbol_needs_eval_context) <dwarf_call,
10547 dwarf_variable_value>: Update.
10548 (dwarf2_compile_expr_to_ax): Update.
10549
10550 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10551
10552 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10553 parameter.
10554 (dwarf2_evaluate_loc_desc_full): Update.
10555
10556 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10557
10558 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10559 parameter.
10560 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10561 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10562 dwarf2_per_objfile parameter.
10563 (decode_debug_loc_dwo_addresses): Likewise.
10564 (dwarf2_find_location_expression): Update.
10565 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10566 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10567 parameter.
10568 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10569 parameter.
10570 (locexpr_describe_location_1): Likewise.
10571 (locexpr_describe_location): Update.
10572
10573 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10574
10575 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10576 Remove.
10577 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10578 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10579 (dwarf2_compile_property_to_c): Update.
10580 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10581 use text offset from objfile.
10582 (locexpr_tracepoint_var_ref): Update.
10583 (locexpr_generate_c_location): Update.
10584 (loclist_describe_location): Update.
10585 (loclist_tracepoint_var_ref): Update.
10586 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10587 dwarf2_per_objfile parameter.
10588 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10589 use text offset from objfile.
10590 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10591
10592 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10593
10594 * dwarf2/expr.h (struct dwarf_expr_context)
10595 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10596 <offset>: Remove.
10597 <per_objfile>: New member.
10598 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10599 dwarf2_per_objfile parameter. Don't set offset, set
10600 per_objfile.
10601 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10602 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10603 a dwarf2_per_objfile object instead of an offset.
10604 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10605 constructor.
10606 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10607 to dwarf2_expr_executor constructor. Don't set offset.
10608 (dwarf2_fetch_cfa_info): Update.
10609 (struct dwarf2_frame_cache) <text_offset>: Remove.
10610 <per_objfile>: New field.
10611 (dwarf2_frame_cache): Update.
10612 (dwarf2_frame_prev_register): Update.
10613 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10614 <dwarf_evaluate_loc_desc>: Add constructor.
10615 (dwarf2_evaluate_loc_desc_full): Update.
10616 (dwarf2_locexpr_baton_eval): Update.
10617 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10618 Add constructor.
10619 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10620
10621 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10622
10623 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10624 addr_sized_int_type>: Move to dwarf2_cu.
10625 <int_type>: Move to dwarf2_per_objfile.
10626 (struct dwarf2_per_objfile) <int_type>: Move here.
10627 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10628 addr_sized_int_type>: Move here.
10629 (read_func_scope): Update.
10630 (read_array_type): Update.
10631 (read_tag_string_type): Update.
10632 (attr_to_dynamic_prop): Update.
10633 (dwarf2_per_cu_data::int_type): Rename to...
10634 (dwarf2_per_objfile::int_type): ... this.
10635 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10636 (dwarf2_cu::addr_sized_int_type): ... this.
10637 (read_subrange_type): Update.
10638 (dwarf2_per_cu_data::addr_type): Rename to...
10639 (dwarf2_cu::addr_type): ... this.
10640 (set_die_type): Update.
10641
10642 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10643
10644 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10645 data through per_cu->cu.
10646
10647 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10648
10649 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10650 dwarf2_per_cu_data parameter fo dwarf2_cu.
10651 (lookup_dwo_type_unit): Likewise.
10652 (read_cutu_die_from_dwo): Likewise.
10653 (lookup_dwo_unit): Likewise.
10654 (open_and_init_dwo_file): Likewise.
10655 (lookup_dwo_cutu): Likewise.
10656 (lookup_dwo_comp_unit): Likewise.
10657 (lookup_dwo_type_unit): Likewise.
10658 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10659 (cutu_reader::cutu_reader): Update.
10660
10661 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10662
10663 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10664 parameter.
10665 (process_full_type_unit): Likewise.
10666 (process_queue): Update.
10667
10668 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10669
10670 * dwarf2/read.c (recursively_compute_inclusions): Add
10671 dwarf2_per_objfile parameter.
10672 (compute_compunit_symtab_includes): Likewise.
10673 (process_cu_includes): Update.
10674
10675 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10676
10677 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10678 parameter.
10679 (create_type_unit_group): Update.
10680 (process_psymtab_comp_unit_reader): Update.
10681 (build_type_psymtabs_reader): Update.
10682
10683 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10684
10685 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10686 object through m_this_cu->cu.
10687
10688 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10689
10690 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10691 the info parameter.
10692 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10693
10694 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10695
10696 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10697 per_objfile parameter.
10698 (load_full_type_unit): Add per_objfile parameter.
10699 (read_signatured_type): Likewise.
10700 (load_full_comp_unit): Likewise.
10701 (load_cu): Likewise.
10702 (dw2_do_instantiate_symtab): Likewise.
10703 (dw2_get_file_names): Likewise.
10704 (dw2_map_symtabs_matching_filename): Update.
10705 (dw_expand_symtabs_matching_file_matcher): Update.
10706 (dw2_map_symbol_filenames): Update.
10707 (process_psymtab_comp_unit): Add per_objfile parameter.
10708 (build_type_psymtabs_1): Update.
10709 (process_skeletonless_type_unit): Update.
10710 (dwarf2_build_psymtabs_hard): Update.
10711 (load_partial_comp_unit): Add per_objfile parameter.
10712 (scan_partial_symbols): Update.
10713 (load_full_comp_unit): Add per_objfile parameter.
10714 (process_imported_unit_die): Update.
10715 (create_cus_hash_table): Update.
10716 (find_partial_die): Update.
10717 (dwarf2_read_addr_index): Update.
10718 (follow_die_offset): Update.
10719 (dwarf2_fetch_die_loc_sect_off): Update.
10720 (dwarf2_fetch_constant_bytes): Update.
10721 (dwarf2_fetch_die_type_sect_off): Update.
10722 (follow_die_sig_1): Update.
10723 (load_full_type_unit): Add per_objfile parameter.
10724 (read_signatured_type): Likewise.
10725
10726 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10727
10728 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10729 of objfile_name.
10730
10731 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10732
10733 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10734 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10735 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10736 field.
10737 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10738 (create_cus_from_index): Update.
10739 (dwarf2_read_gdb_index): Update.
10740 (create_cus_from_debug_names): Update.
10741 (dwarf2_read_debug_names): Update.
10742 (get_abbrev_section_for_cu): Update.
10743 (create_all_comp_units): Update.
10744 (read_attribute_value): Update.
10745 (get_debug_line_section): Update.
10746 * dwarf2/index-cache.c (index_cache::store): Update.
10747 * dwarf2/index-write.c (save_gdb_index_command): Update.
10748 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10749
10750 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10751
10752 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10753 member.
10754 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10755 dwarf2_per_cu_data::per_bfd.
10756 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10757 (create_type_unit_group): Likewise.
10758 (queue_comp_unit): Remove reference to
10759 per_cu->dwarf2_per_objfile.
10760 (maybe_queue_comp_unit): Likewise.
10761 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10762 (create_cus_hash_table): Assign new field.
10763
10764 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10765
10766 * dwarf2/read.c: Replace
10767 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10768 dwarf2_cu->per_objfile throughout.
10769
10770 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10771
10772 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10773 parameter, don't use per_cu->dwarf2_per_objfile.
10774 (dw2_instantiate_symtab): Likewise.
10775 (dw2_find_last_source_symtab): Update.
10776 (dw2_map_expand_apply): Update.
10777 (dw2_lookup_symbol): Update.
10778 (dw2_expand_symtabs_for_function): Update.
10779 (dw2_expand_all_symtabs): Update.
10780 (dw2_expand_symtabs_with_fullname): Update.
10781 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10782 don't use per_cu->dwarf2_per_objfile.
10783 (dw2_expand_marked_cus): Update.
10784 (dw2_find_pc_sect_compunit_symtab): Update.
10785 (dw2_debug_names_lookup_symbol): Update.
10786 (dw2_debug_names_expand_symtabs_for_function): Update.
10787 (dw2_debug_names_map_matching_symbols): Update.
10788 (dwarf2_psymtab::expand_psymtab): Update.
10789
10790 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10791
10792 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10793 <per_objfile>: New member.
10794 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10795 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10796 call to dwarf2_cu.
10797 (cutu_reader::cutu_reader): Update.
10798 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10799
10800 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10803 struct dwarf2_per_objfile.
10804 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10805 dwarf2_per_bfd.
10806 * dwarf2/read.c (set_die_type): Update.
10807 (get_die_type_at_offset): Update.
10808
10809 2020-05-27 Tom Tromey <tom@tromey.com>
10810 Simon Marchi <simon.marchi@efficios.com>
10811
10812 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10813 method.
10814 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10815 get_symtab, set_symtab>: New methods.
10816 <m_symtabs>: New field.
10817 (struct dwarf2_psymtab): Derive from partial_symtab.
10818 <readin_p, get_compunit_symtab>: Declare methods.
10819 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10820 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10821 New methods.
10822 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10823 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10824 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10825 (dw2_symtab_iter_next, dw2_print_stats)
10826 (dw2_expand_symtabs_with_fullname)
10827 (dw2_expand_symtabs_matching_one)
10828 (dw_expand_symtabs_matching_file_matcher)
10829 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10830 (dw2_debug_names_iterator::next)
10831 (dw2_debug_names_map_matching_symbols)
10832 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10833 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10834 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10835 New methods.
10836 (get_compunit_symtab, process_full_comp_unit)
10837 (process_full_type_unit): Update.
10838 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10839
10840 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10841
10842 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10843 then introduce a new dwarf2_per_objfile type.
10844 <read_line_string>: Move to the new dwarf2_per_objfile type.
10845 <objfile>: Likewise.
10846 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10847 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10848 dwarf2_per_objfile->per_bfd.
10849 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10850 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10851 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10852 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10853 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10854 (dwarf2_per_objfile::locate_sections): Rename to...
10855 (dwarf2_per_bfd::locate_sections): ... this.
10856 (dwarf2_per_objfile::get_cutu): Rename to...
10857 (dwarf2_per_bfd::get_cutu): ... this.
10858 (dwarf2_per_objfile::get_cu): Rename to...
10859 (dwarf2_per_bfd::get_cu): ... this.
10860 (dwarf2_per_objfile::get_tu): Rename to...
10861 (dwarf2_per_bfd::get_tu): ... this.
10862 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10863 (dwarf2_per_bfd::allocate_per_cu): ... this.
10864 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10865 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10866 (get_gdb_index_contents_ftype): Change parameter from
10867 dwarf2_per_objfile to dwarf2_per_bfd.
10868 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10869 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10870
10871 2020-05-27 Tom Tromey <tom@tromey.com>
10872 Simon Marchi <simon.marchi@efficios.com>
10873
10874 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10875 (allocate_piece_closure): Set "per_objfile" member.
10876 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10877 (locexpr_describe_location, loclist_describe_location): Use new
10878 member.
10879 * dwarf2/read.c (read_call_site_scope)
10880 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10881 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10882 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10883 handle_data_member_location): Set per_objfile member.
10884 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10885 member.
10886 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10887
10888 2020-05-27 Tom Tromey <tom@tromey.com>
10889
10890 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10891 allocate_signatured_type>: Declare new methods.
10892 <m_num_psymtabs>: New member.
10893 (struct dwarf2_per_cu_data) <index>: New member.
10894 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10895 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10896 (create_cu_from_index_list): Use allocate_per_cu.
10897 (create_signatured_type_table_from_index)
10898 (create_signatured_type_table_from_debug_names)
10899 (create_debug_type_hash_table, add_type_unit)
10900 (read_comp_units_from_section): Use allocate_signatured_type.
10901
10902 2020-05-27 Tom Tromey <tom@tromey.com>
10903
10904 * psymtab.c (partial_map_expand_apply)
10905 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10906 (psym_lookup_global_symbol_language)
10907 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10908 (psym_print_stats, psym_expand_symtabs_for_function)
10909 (psym_map_symbol_filenames, psym_map_matching_symbols)
10910 (psym_expand_symtabs_matching)
10911 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10912 (maintenance_check_psymtabs): Update.
10913 * psympriv.h (struct partial_symtab) <readin_p,
10914 get_compunit_symtab>: Add objfile parameter.
10915 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10916 Likewise.
10917 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10918 get_compunit_symtab>: Likewise.
10919 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10920
10921 2020-05-27 Tom Tromey <tom@tromey.com>
10922
10923 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10924 member.
10925 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10926 (create_cu_from_index_list)
10927 (create_signatured_type_table_from_index)
10928 (create_signatured_type_table_from_debug_names)
10929 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10930 (dwarf2_create_include_psymtab)
10931 (create_debug_type_hash_table, add_type_unit)
10932 (create_type_unit_group, read_comp_units_from_section)
10933 (dwarf2_compute_name, create_cus_hash_table)
10934 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10935 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10936 obstack.
10937 (dw2_get_real_path): Likewise. Change argument to
10938 dwarf2_per_objfile.
10939
10940 2020-05-27 Luis Machado <luis.machado@linaro.org>
10941
10942 PR tdep/26000
10943 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10944 for ldrd (immediate).
10945
10946 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10947
10948 * command.h: Add comment giving the name of class_tui.
10949 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10950 create the fake command for the help for class_tui.
10951
10952 2020-05-26 Tom Tromey <tromey@adacore.com>
10953
10954 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10955 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10956 (val_atr): New function.
10957 (value_val_atr): Use it.
10958 * ada-valprint.c (print_optional_low_bound): Change low bound
10959 handling for enums.
10960 (val_print_packed_array_elements): Don't call discrete_position.
10961 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10962 discrete_position for enum types.
10963 * language.c (default_print_array_index): Change type.
10964 * language.h (struct language_defn) <la_print_array_index>: Add
10965 index_type parameter, change type of index_value.
10966 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10967 (default_print_array_index): Update.
10968 * valprint.c (maybe_print_array_index): Don't call
10969 value_from_longest. Update.
10970 (value_print_array_elements): Don't call discrete_position.
10971
10972 2020-05-26 Tom Tromey <tromey@adacore.com>
10973
10974 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10975 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10976
10977 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10978
10979 PR gdb/13519
10980 * avr-tdep.c (avr_integer_to_address): Return data or code
10981 address accordingly to the second 'type' argument of the
10982 function.
10983
10984 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10985
10986 * infcmd.c, inferior.h: (construct_inferior_arguments):
10987 Moved function from here to gdbsupport/common-inferior.{h,cc}
10988
10989 2020-05-23 Tom Tromey <tom@tromey.com>
10990
10991 Revert commit eca1f90c:
10992 * NEWS: Remove entry for completion styling.
10993 * completer.c (_rl_completion_prefix_display_length): Move
10994 declaration later.
10995 (gdb_fnprint): Revert.
10996 (gdb_display_match_list_1): Likewise.
10997 * cli/cli-style.c (completion_prefix_style)
10998 (completion_difference_style, completion_suffix_style): Remove.
10999 (_initialize_cli_style): Revert.
11000 * cli/cli-style.h (completion_prefix_style)
11001 (completion_difference_style, completion_suffix_style): Don't
11002 declare.
11003
11004 2020-05-24 Pedro Alves <palves@redhat.com>
11005
11006 * symtab.c (completion_list_add_name): Return boolean indication
11007 of whether the symbol matched.
11008 (completion_list_add_symbol): Don't try to remove C++ aliases if
11009 the symbol didn't match in the first place.
11010 * symtab.h (completion_list_add_name): Return bool.
11011
11012 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
11013
11014 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
11015 type::field.
11016
11017 2020-05-23 Joel Brobecker <brobecker@adacore.com>
11018
11019 GDB 9.2 released.
11020
11021 2020-05-23 Tom Tromey <tom@tromey.com>
11022
11023 * NEWS: Add entry for completion styling.
11024 * completer.c (_rl_completion_prefix_display_length): Move
11025 declaration earlier.
11026 (gdb_fnprint): Use completion_style.
11027 (gdb_display_match_list_1): Likewise.
11028 * cli/cli-style.c (completion_prefix_style)
11029 (completion_difference_style, completion_suffix_style): New
11030 globals.
11031 (_initialize_cli_style): Register new globals.
11032 * cli/cli-style.h (completion_prefix_style)
11033 (completion_difference_style, completion_suffix_style): Declare.
11034
11035 2020-05-23 Pedro Alves <palves@redhat.com>
11036
11037 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
11038 (parse_escape): Use ISDIGIT instead of isdigit.
11039 (puts_debug): Use gdb_isprint instead of isprint.
11040 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
11041 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
11042 ISSPACE instead of isspace.
11043 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
11044 instead of isspace.
11045 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
11046 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
11047 instead of isxdigit and ISDIGIT instead of isdigit.
11048
11049 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
11050
11051 * gdbtypes.h (struct type) <field>: New method.
11052 (TYPE_FIELDS): Remove, replace all uses with either type::fields
11053 or type::field.
11054
11055 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
11058 (TYPE_FIELDS): Use type::fields. Change all call sites that
11059 modify the propery to use type::set_fields instead.
11060
11061 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
11062
11063 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
11064 type::num_fields instead.
11065
11066 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
11067
11068 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
11069 methods.
11070 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
11071 that modify the number of fields to use type::set_num_fields
11072 instead.
11073
11074 2020-05-22 Tom Tromey <tromey@adacore.com>
11075
11076 * compile/compile-object-load.h (munmap_list_free): Don't
11077 declare.
11078
11079 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
11080
11081 * annotate.c (annotate_source_line): Update return type, add call
11082 to update current symtab and line.
11083 * annotate.h (annotate_source_line): Update return type, and
11084 extend header comment.
11085 * source.c (info_line_command): Check annotation_level before
11086 calling annotate_source_line.
11087 * stack.c (print_frame_info): If calling annotate_source_line
11088 returns true, then don't print any other source line information.
11089
11090 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
11091
11092 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
11093
11094 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
11095
11096 * coffread.c (patch_type): Remove NULL check before xfree.
11097 * corefile.c (set_gnutarget): Likewise.
11098 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
11099 * exec.c (build_section_table): Likewise.
11100 * remote.c (remote_target::pass_signals): Likewise.
11101 * utils.c (n_spaces): Likewise.
11102 * cli/cli-script.c (document_command): Likewise.
11103 * i386-windows-tdep.c (core_process_module_section): Likewise.
11104 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
11105
11106 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
11107
11108 * symfile.c (reread_symbols): Clear objfile's section_offsets
11109 vector and section indices, re-compute them by calling
11110 sym_offsets.
11111
11112 2020-05-20 Tom Tromey <tromey@adacore.com>
11113
11114 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
11115 (desc_one_bound, desc_index_type): Compute field name.
11116
11117 2020-05-20 Tom de Vries <tdevries@suse.de>
11118
11119 PR symtab/25833
11120 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
11121
11122 2020-05-20 Alan Modra <amodra@gmail.com>
11123
11124 PR 25993
11125 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
11126 bfd_set_filename.
11127 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
11128 passed to bfd_set_filename.
11129 * symfile-mem.c (add_vsyscall_page): Likewise for string
11130 passed to symbol_file_add_from_memory.
11131 (symbol_file_add_from_memory): Make name param a const char* and
11132 don't strdup.
11133
11134 2020-05-20 Alan Modra <amodra@gmail.com>
11135
11136 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
11137 rather than accessing bfd->filename directly.
11138 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
11139 and use bfd_section_name.
11140 * dwarf2/frame.c (decode_frame_entry): Likewise.
11141 * exec.c (exec_set_section_address): Likewise.
11142 * solib-aix.c (solib_aix_bfd_open): Likewise.
11143 * stap-probe.c (get_stap_base_address): Likewise.
11144 * symfile.c (reread_symbols): Likewise.
11145
11146 2020-05-19 Tom Tromey <tromey@adacore.com>
11147
11148 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
11149
11150 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11151
11152 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
11153
11154 2020-05-19 Pedro Alves <palves@redhat.com>
11155
11156 * NEWS (set exec-file-mismatch): Adjust entry.
11157 * exec.c: Include "build-id.h".
11158 (validate_exec_file): Try to match build IDs instead of filenames.
11159 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
11160 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
11161 and pass down 'warn_if_slow'.
11162 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
11163 gdb_bfd_open_closure to pass it down.
11164 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
11165
11166 2020-05-19 Pedro Alves <palves@redhat.com>
11167
11168 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
11169 * target.c (target_fileio_open_1): Rename to target_fileio_open
11170 and make extern. Use bool.
11171 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11172 (target_fileio_read_alloc_1): Adjust.
11173 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11174 (target_fileio_open_warn_if_slow): Delete declaration.
11175
11176 2020-05-19 Pedro Alves <palves@redhat.com>
11177
11178 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11179 Adjust all callers.
11180
11181 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11182
11183 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11184 whether disp is negative.
11185
11186 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11187
11188 * symfile.h (struct symfile_segment_data)
11189 <~symfile_segment_data>: Remove.
11190 <segment_info>: Change to std::vector.
11191 * symfile.c (default_symfile_segments): Update.
11192 * elfread.c (elf_symfile_segments): Update.
11193
11194 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11195
11196 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11197 <segments>: New.
11198 <segment_bases, segment_sizes>: Remove.
11199 * symfile.c (default_symfile_segments): Update.
11200 * elfread.c (elf_symfile_segments): Update.
11201 * remote.c (remote_target::get_offsets): Update.
11202 * solib-target.c (solib_target_relocate_section_addresses):
11203 Update.
11204
11205 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11206
11207 * symfile.h (struct symfile_segment_data): Initialize fields.
11208 <~symfile_segment_data>: Add.
11209 (symfile_segment_data_up): New.
11210 (struct sym_fns) <sym_segments>: Return a
11211 symfile_segment_data_up.
11212 (default_symfile_segments): Return a symfile_segment_data_up.
11213 (free_symfile_segment_data): Remove.
11214 (get_symfile_segment_data): Return a symfile_segment_data_up.
11215 * symfile.c (default_symfile_segments): Likewise.
11216 (get_symfile_segment_data): Likewise.
11217 (free_symfile_segment_data): Remove.
11218 (symfile_find_segment_sections): Update.
11219 * elfread.c (elf_symfile_segments): Return a
11220 symfile_segment_data_up.
11221 * remote.c (remote_target::get_offsets): Update.
11222 * solib-target.c (solib_target_relocate_section_addresses):
11223 Update.
11224 * symfile-debug.c (debug_sym_segments): Return a
11225 symfile_segment_data_up.
11226
11227 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11228
11229 PR build/25981
11230 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11231 Hardcode register numbers.
11232
11233 PR build/25981
11234 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11235 procfs_find_LDT_entry): Remove.
11236 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11237 procfs_find_LDT_entry): Remove.
11238 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11239 Remove.
11240
11241 2020-05-17 Pedro Alves <palves@redhat.com>
11242 Andrew Burgess <andrew.burgess@embecosm.com>
11243 Keno Fischer <keno@juliacomputing.com>
11244
11245 PR gdb/25741
11246 * breakpoint.c (build_target_condition_list): Update comments.
11247 (build_target_command_list): Update comments and skip matching
11248 locations.
11249 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11250 a separate function. Simplify "set breakpoint auto-hw off"
11251 handling.
11252 (insert_breakpoints): Update comment.
11253 (tracepoint_locations_match): New parameter. For breakpoints,
11254 compare location types too, if the caller wants to.
11255 (handle_automatic_hardware_breakpoints): New functions.
11256 (bp_location_is_less_than): Also sort by location type and
11257 hardware breakpoint length.
11258 (update_global_location_list): Handle "set breakpoint auto-hw on"
11259 here.
11260 (update_breakpoint_locations): Ask breakpoint_locations_match to
11261 ignore location types.
11262
11263 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11264
11265 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11266 type::name instead.
11267
11268 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11269
11270 * gdbtypes.h (struct type) <name, set_name>: New methods.
11271 (TYPE_CODE): Use type::name. Change all call sites used to set
11272 the name to use type::set_name instead.
11273
11274 2020-05-16 Tom Tromey <tom@tromey.com>
11275
11276 * top.c (quit_force): Update.
11277 * infrun.c (handle_no_resumed): Update.
11278 * top.h (all_uis): New function.
11279 (ALL_UIS): Remove.
11280
11281 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11282
11283 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11284
11285 2020-05-16 Pedro Alves <palves@redhat.com>
11286
11287 * ia64-linux-nat.c
11288 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11289 Declare method.
11290 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11291
11292 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11293
11294 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11295 (sparc64_adi_info): Likewise.
11296
11297 2020-05-15 Tom Tromey <tom@tromey.com>
11298
11299 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11300 block_objfile.
11301 (lookup_objfile_from_block): Remove.
11302 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11303 (lookup_global_symbol): Use block_objfile.
11304 * symtab.h (lookup_objfile_from_block): Don't declare.
11305 * printcmd.c (clear_dangling_display_expressions): Use
11306 block_objfile.
11307 * parse.c (operator_check_standard): Use block_objfile.
11308
11309 2020-05-15 Tom Tromey <tom@tromey.com>
11310
11311 * language.c (language_alloc_type_symbol): Set
11312 SYMBOL_SECTION.
11313 * symtab.c (initialize_objfile_symbol): Remove.
11314 (allocate_symbol): Remove.
11315 (allocate_template_symbol): Remove.
11316 * dwarf2/read.c (fixup_go_packaging): Use "new".
11317 (new_symbol): Use "new".
11318 (read_variable): Don't call initialize_objfile_symbol. Use
11319 "new".
11320 (read_func_scope): Use "new".
11321 * xcoffread.c (process_xcoff_symbol): Don't call
11322 initialize_objfile_symbol.
11323 (SYMBOL_DUP): Remove.
11324 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11325 "new".
11326 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11327 (allocate_template_symbol): Don't declare.
11328 (struct symbol): Add copy constructor. Change defaults.
11329 * jit.c (finalize_symtab): Use "new".
11330 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11331 Use "new".
11332 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11333 (common_block_end): Use "new".
11334 * mdebugread.c (parse_symbol): Use "new".
11335 (new_symbol): Likewise.
11336
11337 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11338
11339 * NEWS: Mention changes to help and apropos.
11340
11341 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11342
11343 * command.h (enum command_class): Improve comments, document
11344 that class_alias is for user-defined aliases, give the class
11345 name for each class, remove unused class_xdb.
11346 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11347 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11348 by a precise class.
11349 * infcmd.c (_initialize_infcmd): Likewise.
11350 * reverse.c (_initialize_reverse): Likewise.
11351 * stack.c (_initialize_stack): Likewise.
11352 * symfile.c (_initialize_symfile): Likewise.
11353 * tracepoint.c (_initialize_tracepoint): Likewise.
11354
11355 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11356
11357 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11358 when their aliased command is traversed.
11359 (help_cmd): Add fput_command_names_styled call to
11360 output command name and aliases when command has an alias.
11361
11362 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11363
11364 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11365 * cli/cli-decode.c (help_cmd_list): Declare as static,
11366 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11367 a command together with the command.
11368 (fput_command_name_styled, fput_command_names_styled): New functions.
11369 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11370 fput_command_name_styled.
11371 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11372 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11373
11374 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11375
11376 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11377 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11378 * command.h (cmd_show_list): Likewise.
11379 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11380 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11381
11382 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11383
11384 * unittests/command-def-selftests.c (traverse_command_structure):
11385 Verify all commands of a list have the same prefix command and
11386 that only the top cmdlist commands have a null prefix.
11387
11388 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11389
11390 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11391 as prefix, not one of its aliases.
11392 (set_cmd_prefix): Remove.
11393 (do_add_cmd): Centralize the setting of the prefix of a command, when
11394 command is defined after its full chain of prefix commands.
11395 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11396 (add_setshow_cmd_full): Likewise.
11397 (update_prefix_field_of_prefixed_commands): New function.
11398 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11399 update_prefix_field_of_prefixed_commands.
11400 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11401 addresses of remote_set_cmdlist and remote_show_cmdlist given
11402 as argument, not the address of an argument.
11403 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11404 * gdb/remote.c (_initialize_remote): Likewise.
11405
11406 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11407
11408 * cli/cli-cmds.c (alias_command): Check for an existing alias
11409 using lookup_cmd_composition, as valid_command_p is too strict
11410 and forbids aliases that are the prefix of an existing alias
11411 or command.
11412 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11413 command is properly recognised as a valid command.
11414
11415 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11416
11417 * unittests/help-doc-selftests.c: Rename to
11418 unittests/command-def-selftests.c
11419 * unittests/command-def-selftests.c (help_doc_tests): Update some
11420 comments.
11421 (command_structure_tests, traverse_command_structure): New namespace
11422 and function.
11423 (command_structure_invariants_tests): New function.
11424 (_initialize_command_def_selftests) Renamed from
11425 _initialize_help_doc_selftests, register command_structure_invariants
11426 selftest.
11427
11428 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11429
11430 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11431 an alias of 'show'.
11432
11433 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11434
11435 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11436 ada_is_fixed_point_type. Update all callers.
11437 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11438 all callers.
11439 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11440 Update all callers.
11441 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11442 print_fixed_point_type. Update all callers.
11443 * ada-valprint.c (ada_value_print_num): Replace call to
11444 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11445
11446 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11447
11448 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11449 processors.
11450 (cpu_supports_bts): Add CV_AMD case.
11451
11452 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11453 Simon Marchi <simon.marchi@efficios.com>
11454
11455 * infrun.c (stop_all_threads): Collect multiple wait events at
11456 each pass.
11457
11458 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11459
11460 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11461 type::code instead.
11462
11463 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11464
11465 * gdbtypes.h (struct type) <code, set_code>: New methods.
11466 (TYPE_CODE): Use type::code. Change all call sites used to set
11467 the code to use type::set_code instead.
11468
11469 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11470 Tom de Vries <tdevries@suse.de>
11471 Pedro Alves <palves@redhat.com>
11472
11473 PR threads/25478
11474 * infrun.c (stop_all_threads): Do NOT ignore
11475 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11476 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11477 received.
11478 (handle_no_resumed): Remove code handling a live inferior with no
11479 threads.
11480 * remote.c (has_single_non_exited_thread): New.
11481 (remote_target::update_thread_list): Do not delete a thread if is
11482 the last thread of the process.
11483 * thread.c (thread_select): Call delete_exited_threads instead of
11484 prune_threads.
11485
11486 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11487
11488 * infrun.c (stop_all_threads): Enable/disable thread events of all
11489 targets. Move a debug message denoting the end of the function
11490 into the SCOPED_EXIT block.
11491
11492 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11493
11494 * process-stratum-target.h: Include <set>.
11495 (all_non_exited_process_targets, switch_to_target_no_thread): New
11496 function declarations.
11497 * process-stratum-target.c (all_non_exited_process_targets)
11498 (switch_to_target_no_thread): New function implementations.
11499
11500 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11501
11502 * infrun.c (handle_inferior_event): Extract out a piece of code
11503 into...
11504 (mark_non_executing_threads): ...this new function.
11505
11506 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11507
11508 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11509 use.
11510
11511 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11512
11513 * regcache.c (regcache_read_pc_protected): New function
11514 implementation that returns 0 if the PC cannot read via
11515 'regcache_read_pc'.
11516 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11517 instead of 'regcache_read_pc'.
11518 (keep_going_pass_signal): Ditto.
11519
11520 2020-05-13 Tom Tromey <tromey@adacore.com>
11521
11522 * ada-lang.c (align_value): Remove.
11523 (ada_template_to_fixed_record_type_1): Use align_up.
11524
11525 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11526
11527 * async-event.c: Update the copyright year.
11528 * async-event.h: Update the copyright year.
11529
11530 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11531
11532 * objfiles.h (is_addr_in_objfile,
11533 shared_objfile_contains_address_p): Return bool.
11534 * objfile.c (is_addr_in_objfile,
11535 shared_objfile_contains_address_p): Return bool.
11536
11537 2020-05-11 Tom Tromey <tromey@adacore.com>
11538
11539 * cli/cli-cmds.c (info_command): Restore.
11540 (_initialize_cli_cmds): Use add_prefix_command for "info".
11541 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11542
11543 2020-05-11 Tom Tromey <tromey@adacore.com>
11544
11545 * ada-lang.c (ada_value_primitive_field): Now public.
11546 * ada-lang.h (ada_value_primitive_field): Declare.
11547 * ada-valprint.c (print_field_values): Use
11548 ada_value_primitive_field for wrapper fields.
11549
11550 2020-05-11 Tom de Vries <tdevries@suse.de>
11551
11552 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11553 MODULE_DOMAIN.
11554
11555 2020-05-11 Tom de Vries <tdevries@suse.de>
11556
11557 PR symtab/25941
11558 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11559 with length 0, if not gdb-produced.
11560 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11561
11562 2020-05-09 Tom de Vries <tdevries@suse.de>
11563
11564 PR gdb/25955
11565 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11566 calculation.
11567
11568 2020-05-09 Tom Tromey <tom@tromey.com>
11569
11570 * top.c (server_command): Now bool.
11571 * top.h (server_command): Now bool.
11572
11573 2020-05-08 Tom Tromey <tromey@adacore.com>
11574
11575 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11576 already being processed.
11577
11578 2020-05-08 Tom Tromey <tom@tromey.com>
11579
11580 * printcmd.c (struct display) <next>: Remove.
11581 <display>: New constructor.
11582 <exp_string>: Now a std::string.
11583 <enabled_p>: Now a bool.
11584 (display_number): Move definition earlier.
11585 (displays): Rename from display_chain. Now a std::vector.
11586 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11587 (display_command): Update.
11588 (do_one_display, disable_display)
11589 (enable_disable_display_command, do_enable_disable_display):
11590 Update.
11591 (free_display): Remove.
11592 (clear_displays): Rewrite.
11593 (delete_display): Update.
11594 (map_display_numbers): Use function_view. Remove "data"
11595 parameter. Update.
11596 (do_delete_display): Remove.
11597 (undisplay_command): Update.
11598 (do_one_display, do_displays, disable_display)
11599 (info_display_command): Update.
11600 (do_enable_disable_display): Remove.
11601 (enable_disable_display_command)
11602 (clear_dangling_display_expressions): Update.
11603
11604 2020-05-08 Tom Tromey <tom@tromey.com>
11605
11606 * symtab.c (set_symbol_cache_size)
11607 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11608 (maintenance_print_symbol_cache_statistics): Update.
11609 * symmisc.c (print_symbol_bcache_statistics)
11610 (print_objfile_statistics, maintenance_print_objfiles)
11611 (maintenance_info_symtabs, maintenance_check_symtabs)
11612 (maintenance_expand_symtabs, maintenance_info_line_tables):
11613 Update.
11614 * symfile-debug.c (set_debug_symfile): Update.
11615 * source.c (forget_cached_source_info): Update.
11616 * python/python.c (gdbpy_progspaces): Update.
11617 * psymtab.c (maintenance_info_psymtabs): Update.
11618 * probe.c (parse_probes): Update.
11619 * linespec.c (iterate_over_all_matching_symtabs)
11620 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11621 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11622 * exec.c (exec_target::close): Update.
11623 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11624 * breakpoint.c (print_one_breakpoint_location)
11625 (create_longjmp_master_breakpoint)
11626 (create_std_terminate_master_breakpoint): Update.
11627 * progspace.c (program_spaces): Now a std::vector.
11628 (maybe_new_address_space): Update.
11629 (add_program_space): Remove.
11630 (program_space::program_space): Update.
11631 (remove_program_space): Update.
11632 (number_of_program_spaces): Remove.
11633 (print_program_space, update_address_spaces): Update.
11634 * progspace.h (program_spaces): Change type.
11635 (ALL_PSPACES): Remove.
11636 (number_of_program_spaces): Don't declare.
11637 (struct program_space) <next>: Remove.
11638
11639 2020-05-08 Tom Tromey <tom@tromey.com>
11640
11641 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11642 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11643 (enable_break): Update.
11644 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11645 (frv_fdpic_find_canonical_descriptor): Update.
11646 (frv_fetch_objfile_link_map): Update.
11647 * progspace.c (program_space::free_all_objfiles): Update.
11648 (program_space::solibs): New method.
11649 * progspace.h (struct program_space) <solibs>: New method.
11650 * solist.h (master_so_list): Don't declare.
11651 (ALL_SO_LIBS): Remove.
11652 * solib.h (so_list_head): Remove.
11653 (update_solib_list): Update comment.
11654 * solib.c (master_so_list): Remove.
11655 (solib_used, update_solib_list, solib_add)
11656 (info_sharedlibrary_command, clear_solib)
11657 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11658
11659 2020-05-08 Tom Tromey <tom@tromey.com>
11660
11661 * extension.c (extension_languages): Now a std::array.
11662 (ALL_EXTENSION_LANGUAGES): Remove.
11663 (get_ext_lang_defn, get_ext_lang_of_file)
11664 (eval_ext_lang_from_control_command): Update.
11665 (finish_ext_lang_initialization)
11666 (auto_load_ext_lang_scripts_for_objfile)
11667 (ext_lang_type_printers::ext_lang_type_printers)
11668 (apply_ext_lang_type_printers)
11669 (ext_lang_type_printers::~ext_lang_type_printers)
11670 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11671 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11672 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11673 (get_matching_xmethod_workers, ext_lang_colorize)
11674 (ext_lang_before_prompt): Update.
11675 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11676
11677 2020-05-08 Tom Tromey <tom@tromey.com>
11678
11679 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11680 overload.
11681 <swap_string, m_string>: Remove.
11682 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11683 Update.
11684 * stabsread.c (define_symbol, read_type): Update.
11685 * linespec.c (find_linespec_symbols): Update.
11686 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11687 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11688 * dbxread.c (read_dbx_symtab): Update.
11689 * cp-support.h (cp_canonicalize_string_full)
11690 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11691 Return unique_xmalloc_ptr.
11692 * cp-support.c (inspect_type): Update.
11693 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11694 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11695 Likewise.
11696 * c-typeprint.c (print_name_maybe_canonical): Update.
11697 * break-catch-throw.c (check_status_exception_catchpoint):
11698 Update.
11699
11700 2020-05-08 Tom de Vries <tdevries@suse.de>
11701
11702 * infrun.c (follow_fork): Copy current_line and current_symtab to
11703 child thread.
11704
11705 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11706
11707 * async-event.c (struct async_signal_handler, struct
11708 async_event_handler): Reformat, remove typedef.
11709
11710 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11711
11712 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11713 access thistype->main_type->dyn_prop_list directly.
11714
11715 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11716
11717 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11718 (remove_dyn_prop): Remove. Update all users to use
11719 type::remove_dyn_prop.
11720 * gdbtypes.c (remove_dyn_prop): Rename to...
11721 (type::remove_dyn_prop): ... this.
11722
11723 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11724
11725 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11726 (add_dyn_prop): Remove. Update all users to use
11727 type::add_dyn_prop.
11728 * gdbtypes.c (add_dyn_prop): Rename to...
11729 (type::add_dyn_prop): ... this.
11730
11731 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11732
11733 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11734 (get_dyn_prop): Remove. Update all users to use
11735 type::dyn_prop.
11736 * gdbtypes.c (get_dyn_prop): Rename to...
11737 (type::dyn_prop): ... this.
11738
11739 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11742
11743 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11744
11745 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11746 instruction, skip it if it's there.
11747
11748 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11749
11750 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11751
11752 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11753
11754 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11755 * gdbtypes.c (recursive_dump_type): Remove use of
11756 TYPE_INCOMPLETE.
11757
11758 2020-05-03 Tom Tromey <tom@tromey.com>
11759
11760 * breakpoint.c (catch_command, tcatch_command): Remove.
11761 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11762 add_show_prefix_cmd.
11763 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11764 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11765 Remove.
11766 (add_internal_problem_command): Use add_basic_prefix_cmd,
11767 add_show_prefix_cmd.
11768 * mips-tdep.c (set_mipsfpu_command): Remove.
11769 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11770 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11771 (_initialize_index_cache): Use add_basic_prefix_cmd.
11772 * memattr.c (dummy_cmd): Remove.
11773 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11774 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11775 (_initialize_tui_win): Use add_basic_prefix_cmd,
11776 add_show_prefix_cmd.
11777 * cli/cli-logging.c (set_logging_command): Remove.
11778 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11779 add_show_prefix_cmd.
11780 (show_logging_command): Remove.
11781 * target.c (target_command): Remove.
11782 (add_target): Use add_basic_prefix_cmd.
11783
11784 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11785
11786 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11787
11788 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11789
11790 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11791 info_command.
11792
11793 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11794
11795 * nbsd-nat.c (nbsd_enable_proc_events)
11796 (nbsd_nat_target::post_startup_inferior): Add.
11797 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11798 (nbsd_nat_target::update_thread_list): Rewrite.
11799 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11800 "PTRACE_LWP_CREATE".
11801 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11802
11803 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11804
11805 * stack.c (_initialize_stack): Remove duplicated creation
11806 of "frame" command and "f" alias.
11807
11808 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11809
11810 PR gdb/18706
11811 * gdbtypes.c (check_typedef): Calculate size of array of
11812 stubbed type.
11813
11814 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11815
11816 PR gdb/15559
11817 * i386-tdep.c (i386_push_dummy_call): Call
11818 i386_thiscall_push_dummy_call.
11819 (i386_thiscall_push_dummy_call): New function.
11820 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11821 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11822 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11823
11824 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11825
11826 * gdbarch.sh (do_read): Add shellcheck disable directive for
11827 warning SC2162.
11828
11829 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11830
11831 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11832 "referenced but not assigned" warning.
11833
11834 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11835
11836 * gdbarch.sh: Remove code that sets fallbackdefault.
11837
11838 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11839
11840 * gdbarch.sh: Use shell operators && and || instead of
11841 -a and -o.
11842
11843 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11844
11845 * gdbarch.sh: Use $(...) instead of `...`.
11846
11847 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11848
11849 * gdbarch.sh: Use double quotes around variables.
11850
11851 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11852
11853 * gdbarch.sh: Use %s with printf, instead of variables in the
11854 format string.
11855
11856 2020-04-29 Tom Tromey <tromey@adacore.com>
11857
11858 PR ada/25875:
11859 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11860 type fields here.
11861 (read_enumeration_type): Call
11862 update_enumeration_type_from_children later. Update comments.
11863 (process_enumeration_scope): Don't create type fields.
11864
11865 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11866
11867 * nbsd-tdep.c: Include "xml-syscall.h".
11868 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11869
11870 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11871
11872 * nbsd-nat.c: Include "sys/wait.h".
11873 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11874 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11875 (nbsd_nat_target::remove_exec_catchpoint)
11876 (nbsd_nat_target::set_syscall_catchpoint): Add.
11877 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11878 (nbsd_nat_target::insert_exec_catchpoint)
11879 (nbsd_nat_target::remove_exec_catchpoint)
11880 (nbsd_nat_target::set_syscall_catchpoint): Add.
11881 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11882 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11883 `nbsd_get_syscall_number'.
11884
11885 2020-04-29 Tom Tromey <tom@tromey.com>
11886
11887 * stack.c (print_block_frame_labels): Remove.
11888
11889 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11890
11891 PR gdb/17320
11892 * ada-valprint.c (val_print_packed_array_elements): Move array
11893 end bracket to new line.
11894 (ada_val_print_string): Remove extra spaces before first array
11895 element.
11896 * c-valprint.c (c_value_print_array): Likewise.
11897 * m2-valprint.c (m2_print_array_contents): Likewise.
11898 (m2_value_print_inner): Likewise.
11899 * p-valprint.c (pascal_value_print_inner): Likewise.
11900 * valprint.c (generic_val_print_array): Likewise.
11901 (value_print_array_elements): Move first array element and array
11902 end bracket to new line.
11903
11904 2020-04-29 Tom de Vries <tdevries@suse.de>
11905
11906 PR symtab/25889
11907 * linespec.c (find_method): Fix ix calculation.
11908
11909 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11910
11911 * syscalls/update-netbsd.sh: New file.
11912 * syscalls/netbsd.xml: Regenerate.
11913 * data-directory/Makefile.in: Register `netbsd.xml' in
11914 `SYSCALLS_FILES'.
11915
11916 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11917
11918 * syscalls/update-freebsd.sh: Add double quotes.
11919
11920 2020-04-28 Tom Tromey <tom@tromey.com>
11921
11922 * NEWS: Update.
11923 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11924 (cmdpy_init): Allow class_tui.
11925
11926 2020-04-28 Mark Williams <mark@myosotissp.com>
11927
11928 PR gdb/24480
11929 * dwarf2read.c: Add missing assingments to list_in_scope when
11930 start_symtab was already called.
11931
11932 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11933
11934 PR gdb/25881
11935 * dwarf2/read.c (offset_map_type): Use
11936 gdb:hash_enum<sect_offset> as hash function.
11937
11938 2020-04-28 Tom de Vries <tdevries@suse.de>
11939
11940 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11941 with DW_AT_signature.
11942
11943 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11944
11945 * configure.ac: Remove check for fs_base/gs_base in
11946 user_regs_struct.
11947 * configure: Re-generate.
11948 * config.in: Re-generate.
11949 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11950 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11951 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11952
11953 2020-04-27 Luis Machado <luis.machado@linaro.org>
11954
11955 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11956 problematic inline frame unwinding situation.
11957 * frame.c (frame_id_computed_p): New function.
11958 * frame.h (frame_id_computed_p): New prototype.
11959
11960 2020-04-26 Tom Tromey <tom@tromey.com>
11961
11962 * command.h (enum command_class) <class_pseudo>: Remove.
11963
11964 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11965
11966 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11967 and whitespace.
11968
11969 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11970
11971 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11972 `PT_GET_PROCESS_STATE' block.
11973
11974 2020-04-24 Tom Tromey <tom@tromey.com>
11975
11976 * symtab.h (symbol_get_demangled_name): Don't declare.
11977 * symtab.c (symbol_get_demangled_name): Remove.
11978 (general_symbol_info::natural_name)
11979 (general_symbol_info::demangled_name): Update.
11980
11981 2020-04-24 Tom Tromey <tom@tromey.com>
11982
11983 PR rust/25025:
11984 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11985
11986 2020-04-24 Tom Tromey <tom@tromey.com>
11987
11988 PR symtab/12707:
11989 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11990 exists.
11991 (new_symbol): Likewise.
11992 * compile/compile-object-load.c (get_out_value_type): Use
11993 symbol_matches_search_name.
11994
11995 2020-04-24 Tom Tromey <tom@tromey.com>
11996
11997 * dwarf2/read.c (add_partial_symbol): Do not call
11998 compute_and_set_names.
11999
12000 2020-04-24 Tom Tromey <tom@tromey.com>
12001
12002 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
12003 overload.
12004
12005 2020-04-24 Tom Tromey <tom@tromey.com>
12006
12007 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
12008 (add_psymbol_to_list): New overload. Make old overload call new
12009 one.
12010 * psympriv.h (add_psymbol_to_list): New overload.
12011
12012 2020-04-24 Tom Tromey <tom@tromey.com>
12013
12014 * dwarf2/read.c (partial_die_info::read) <case
12015 DW_AT_linkage_name>: Use value_as_string.
12016 (dwarf2_string_attr): Use value_as_string.
12017 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
12018 method.
12019 * dwarf2/attribute.c (attribute::value_as_string): New method.
12020
12021 2020-04-24 Tom Tromey <tom@tromey.com>
12022
12023 * symtab.c (general_symbol_info::natural_name)
12024 (general_symbol_info::demangled_name): Check for language_rust.
12025
12026 2020-04-24 Tom Tromey <tom@tromey.com>
12027
12028 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
12029 (dwarf2_physname): ... from here.
12030 (partial_die_info::read): Add Rust "{" hack.
12031
12032 2020-04-24 Tom Tromey <tom@tromey.com>
12033
12034 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
12035 method.
12036 (symbol_set_demangled_name): Don't declare.
12037 * symtab.c (general_symbol_info::set_demangled_name): Rename from
12038 symbol_set_demangled_name.
12039 (general_symbol_info::set_language)
12040 (general_symbol_info::compute_and_set_names): Update.
12041 * minsyms.c (minimal_symbol_reader::install): Update.
12042 * dwarf2/read.c (new_symbol): Update.
12043
12044 2020-04-24 Tom Tromey <tromey@adacore.com>
12045
12046 PR python/23662:
12047 * python/py-type.c (convert_field): Handle
12048 FIELD_LOC_KIND_DWARF_BLOCK.
12049 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
12050 (typy_get_dynamic): Nw function.
12051 (type_object_getset): Add "dynamic".
12052 * NEWS: Add entry.
12053
12054 2020-04-24 Tom Tromey <tromey@adacore.com>
12055
12056 * ada-typeprint.c (print_choices, print_variant_part)
12057 (print_record_field_types_dynamic): New functions.
12058 (print_record_field_types): Use print_record_field_types_dynamic.
12059
12060 2020-04-24 Tom Tromey <tromey@adacore.com>
12061
12062 * dwarf2/read.c (handle_data_member_location): New overload.
12063 (dwarf2_add_field): Use it.
12064 (decode_locdesc): Add "computed" parameter. Update comment.
12065 * gdbtypes.c (is_dynamic_type_internal): Also look for
12066 FIELD_LOC_KIND_DWARF_BLOCK.
12067 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
12068 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
12069 virtual base classes.
12070 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
12071 FIELD_LOC_KIND_DWARF_BLOCK.
12072
12073 2020-04-24 Tom Tromey <tromey@adacore.com>
12074
12075 * dwarf2/read.c (read_structure_type): Handle dynamic length.
12076 * gdbtypes.c (is_dynamic_type_internal): Check
12077 TYPE_HAS_DYNAMIC_LENGTH.
12078 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
12079 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
12080 New macros.
12081 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
12082 constant.
12083
12084 2020-04-24 Tom Tromey <tromey@adacore.com>
12085
12086 * dwarf2/read.c (struct variant_field): Rewrite.
12087 (struct variant_part_builder): New.
12088 (struct nextfield): Remove "variant" field. Add "offset".
12089 (struct field_info): Add "current_variant_part" and
12090 "variant_parts".
12091 (alloc_discriminant_info): Remove.
12092 (alloc_rust_variant): New function.
12093 (quirk_rust_enum): Update.
12094 (dwarf2_add_field): Set "offset" member. Don't handle
12095 DW_TAG_variant_part.
12096 (offset_map_type): New typedef.
12097 (convert_variant_range, create_one_variant)
12098 (create_one_variant_part, create_variant_parts)
12099 (add_variant_property): New functions.
12100 (dwarf2_attach_fields_to_type): Call add_variant_property.
12101 (read_structure_type): Don't handle DW_TAG_variant_part.
12102 (handle_variant_part, handle_variant): New functions.
12103 (handle_struct_member_die): Use them.
12104 (process_structure_scope): Don't handle variant parts.
12105 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
12106 (struct discriminant_info): Remove.
12107 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
12108 (struct main_type) <flag_discriminated_union>: Remove.
12109 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
12110 (rust_enum_variant): Return int. Remove "contents". Rewrite.
12111 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
12112 Update.
12113 * valops.c (value_union_variant): Remove.
12114 * value.h (value_union_variant): Don't declare.
12115
12116 2020-04-24 Tom Tromey <tromey@adacore.com>
12117
12118 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
12119 (ada_value_primitive_packed_val): Update.
12120 * ada-valprint.c (ada_value_print_1): Update.
12121 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
12122 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
12123 just an address. Use evaluate_for_locexpr_baton.
12124 (dwarf2_evaluate_property): Update.
12125 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
12126 array_view.
12127 * findvar.c (default_read_var_value): Update.
12128 * gdbtypes.c (compute_variant_fields_inner)
12129 (resolve_dynamic_type_internal): Update.
12130 (resolve_dynamic_type): Change type of valaddr parameter.
12131 * gdbtypes.h (resolve_dynamic_type): Update.
12132 * valarith.c (value_subscripted_rvalue): Update.
12133 * value.c (value_from_contents_and_address): Update.
12134
12135 2020-04-24 Tom Tromey <tromey@adacore.com>
12136
12137 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
12138 "push_initial_value" parameter.
12139 (dwarf2_evaluate_property): Likewise.
12140 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
12141
12142 2020-04-24 Tom Tromey <tromey@adacore.com>
12143
12144 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
12145 (variant::matches, compute_variant_fields_recurse)
12146 (compute_variant_fields_inner, compute_variant_fields): New
12147 functions.
12148 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
12149 Use resolved_type after type is made.
12150 (operator==): Add new cases.
12151 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
12152 (struct discriminant_range, struct variant, struct variant_part):
12153 New.
12154 (union dynamic_prop_data) <variant_parts, original_type>: New
12155 members.
12156 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
12157 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
12158 constants.
12159 * value.c (unpack_bits_as_long): Now public.
12160 * value.h (unpack_bits_as_long): Declare.
12161
12162 2020-04-24 Tom Tromey <tromey@adacore.com>
12163
12164 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
12165 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
12166
12167 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
12168
12169 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
12170
12171 2020-04-24 Kamil Rytarowski <n54@gmx.com>
12172
12173 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12174 (remove_fork_catchpoint, post_startup_inferior)
12175 (post_attach): Move...
12176 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12177 (remove_fork_catchpoint, post_startup_inferior)
12178 (post_attach): ...here.
12179 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12180 (remove_fork_catchpoint, post_startup_inferior)
12181 (post_attach): Move...
12182 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12183 (remove_fork_catchpoint, post_startup_inferior)
12184 (post_attach): ...here.
12185
12186 2020-04-24 Tom Tromey <tromey@adacore.com>
12187
12188 * nat/windows-nat.h (struct windows_thread_info)
12189 <pc_adjusted>: New member.
12190 * windows-nat.c (windows_fetch_one_register): Check
12191 pc_adjusted.
12192 (windows_nat_target::get_windows_debug_event)
12193 (windows_nat_target::wait): Set pc_adjusted.
12194
12195 2020-04-24 Tom de Vries <tdevries@suse.de>
12196
12197 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12198 Run gdb-add-index inside temp dir.
12199
12200 2020-04-23 Tom Tromey <tromey@adacore.com>
12201
12202 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12203 in loop.
12204
12205 2020-04-23 Luis Machado <luis.machado@linaro.org>
12206
12207 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12208 get_frame_register instead of gdbarch_unwind_pc.
12209
12210 2020-04-23 Tom de Vries <tdevries@suse.de>
12211
12212 * symtab.c (lookup_global_symbol): Prefer def over decl.
12213
12214 2020-04-23 Tom de Vries <tdevries@suse.de>
12215
12216 PR symtab/25807
12217 * block.c (best_symbol, better_symbol): Promote to external.
12218 * block.h (best_symbol, better_symbol): Declare.
12219 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12220 decl.
12221
12222 2020-04-23 Tom Tromey <tromey@adacore.com>
12223
12224 PR ada/25837:
12225 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12226 "const char *", not a "const std::string &".
12227 <name_and_matcher::operator==>: Update.
12228 * unittests/lookup_name_info-selftests.c: Change type of
12229 "result".
12230
12231 2020-04-23 Tom Tromey <tom@tromey.com>
12232
12233 * inferior.h (iterate_over_inferiors): Don't declare.
12234 * inferior.c (iterate_over_inferiors): Remove.
12235 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12236 Remove.
12237 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12238 use iterate_over_inferiors.
12239 (darwin_resume_inferior_it)
12240 (struct resume_inferior_threads_param)
12241 (darwin_resume_inferior_threads_it): Remove.
12242 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12243
12244 2020-04-23 Tom de Vries <tdevries@suse.de>
12245
12246 * blockframe.c (find_pc_partial_function): Use
12247 find_pc_sect_compunit_symtab rather than
12248 objfile->sf->qf->find_pc_sect_compunit_symtab.
12249
12250 2020-04-22 Tom de Vries <tdevries@suse.de>
12251
12252 PR symtab/25764
12253 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12254 in psymtabs.
12255
12256 2020-04-22 Tom de Vries <tdevries@suse.de>
12257
12258 PR symtab/25801
12259 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12260 symtabs.
12261
12262 2020-04-22 Tom de Vries <tdevries@suse.de>
12263
12264 PR symtab/25700
12265 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12266 CU if already created.
12267
12268 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12269
12270 * infrun.c (displaced_step_fixup): Switch to the event_thread
12271 before calling displaced_step_restore, not after.
12272
12273 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12274
12275 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12276 its inferior is not recorded by us.
12277 (record_btrace_target_open): Replace call to
12278 all_non_exited_threads () with call to current_inferior
12279 ()->non_exited_threads ().
12280 (record_btrace_target::stop_recording): Likewise.
12281 (record_btrace_target::close): Likewise.
12282 (record_btrace_target::wait): Likewise.
12283 (record_btrace_target::record_stop_replaying): Likewise.
12284
12285 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12286
12287 * btrace.c (btrace_enable): Throw an error on double enables and
12288 when enabling recording fails.
12289 (btrace_disable): Throw an error if the thread is not recorded.
12290
12291 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12292
12293 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12294 request if we do not have a thread_info.
12295
12296 2020-04-21 Tom de Vries <tdevries@suse.de>
12297
12298 PR gdb/25471
12299 * thread.c
12300 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12301 exception in get_frame_id.
12302
12303 2020-04-20 Tom Tromey <tromey@adacore.com>
12304
12305 * python/python.c (struct gdbpy_event): Mark move constructor as
12306 noexcept.
12307 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12308 constructor as noexcept.
12309 * completer.h (struct completion_result): Mark move constructor as
12310 noexcept.
12311 * completer.c (completion_result::completion_result): Use
12312 initialization style. Don't call reset_match_list.
12313
12314 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12315
12316 * MAINTAINERS (Write After Approval): Add myself.
12317
12318 2020-04-18 Tom Tromey <tom@tromey.com>
12319
12320 * windows-tdep.c (init_w32_command_list)
12321 (w32_prefix_command_valid): Restore.
12322 (_initialize_windows_tdep): Call init_w32_command_list.
12323
12324 2020-04-18 Tom Tromey <tom@tromey.com>
12325
12326 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12327 * value.c (value_fn_field): Update.
12328 * valops.c (find_function_in_inferior)
12329 (value_allocate_space_in_inferior): Update.
12330 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12331 Update.
12332 * tui/tui-source.c (tui_source_window::set_contents): Update.
12333 * symtab.c (lookup_global_or_static_symbol)
12334 (find_function_start_sal_1, skip_prologue_sal)
12335 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12336 * symmisc.c (dump_msymbols, dump_symtab_1)
12337 (maintenance_print_one_line_table): Update.
12338 * symfile.c (init_entry_point_info, section_is_mapped)
12339 (list_overlays_command, simple_read_overlay_table)
12340 (simple_overlay_update_1): Update.
12341 * stap-probe.c (handle_stap_probe): Update.
12342 * stabsread.c (dbx_init_float_type, define_symbol)
12343 (read_one_struct_field, read_enum_type, read_range_type): Update.
12344 * source.c (info_line_command): Update.
12345 * python/python.c (gdbpy_source_objfile_script)
12346 (gdbpy_execute_objfile_script): Update.
12347 * python/py-type.c (save_objfile_types): Update.
12348 * python/py-objfile.c (py_free_objfile): Update.
12349 * python/py-inferior.c (python_new_objfile): Update.
12350 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12351 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12352 (maintenance_check_psymtabs): Update.
12353 * printcmd.c (info_address_command): Update.
12354 * objfiles.h (struct objfile) <arch>: New method, from
12355 get_objfile_arch.
12356 (get_objfile_arch): Don't declare.
12357 * objfiles.c (get_objfile_arch): Remove.
12358 (filter_overlapping_sections): Update.
12359 * minsyms.c (msymbol_is_function): Update.
12360 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12361 (output_nondebug_symbol): Update.
12362 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12363 (mdebug_expand_psymtab): Update.
12364 * machoread.c (macho_add_oso_symfile): Update.
12365 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12366 Update.
12367 * linux-fork.c (checkpoint_command): Update.
12368 * linespec.c (convert_linespec_to_sals): Update.
12369 * jit.c (finalize_symtab): Update.
12370 * infrun.c (insert_exception_resume_from_probe): Update.
12371 * ia64-tdep.c (ia64_find_unwind_table): Update.
12372 * hppa-tdep.c (internalize_unwinds): Update.
12373 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12374 Update.
12375 * gcore.c (call_target_sbrk): Update.
12376 * elfread.c (record_minimal_symbol, elf_symtab_read)
12377 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12378 (elf_gnu_ifunc_resolve_by_got): Update.
12379 * dwarf2/read.c (create_addrmap_from_index)
12380 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12381 (read_debug_names_from_section)
12382 (process_psymtab_comp_unit_reader, add_partial_symbol)
12383 (add_partial_subprogram, process_full_comp_unit)
12384 (read_file_scope, read_func_scope, read_lexical_block_scope)
12385 (read_call_site_scope, dwarf2_ranges_read)
12386 (dwarf2_record_block_ranges, dwarf2_add_field)
12387 (mark_common_block_symbol_computed, read_tag_pointer_type)
12388 (read_tag_string_type, dwarf2_init_float_type)
12389 (dwarf2_init_complex_target_type, read_base_type)
12390 (partial_die_info::read, partial_die_info::read)
12391 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12392 (dwarf2_fetch_die_loc_sect_off): Update.
12393 * dwarf2/loc.c (dwarf2_find_location_expression)
12394 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12395 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12396 (dwarf2_loc_desc_get_symbol_read_needs)
12397 (locexpr_describe_location_piece, locexpr_describe_location_1)
12398 (loclist_describe_location): Update.
12399 * dwarf2/index-write.c (write_debug_names): Update.
12400 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12401 * dtrace-probe.c (dtrace_process_dof): Update.
12402 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12403 (process_one_symbol): Update.
12404 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12405 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12406 (coff_read_enum_type): Update.
12407 * cli/cli-cmds.c (edit_command, list_command): Update.
12408 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12409 * breakpoint.c (create_overlay_event_breakpoint)
12410 (create_longjmp_master_breakpoint)
12411 (create_std_terminate_master_breakpoint)
12412 (create_exception_master_breakpoint, get_sal_arch): Update.
12413 * block.c (block_gdbarch): Update.
12414 * annotate.c (annotate_source_line): Update.
12415
12416 2020-04-17 Tom Tromey <tromey@adacore.com>
12417
12418 * auto-load.c (show_auto_load_cmd): Remove.
12419 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12420 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12421 (maintenance_print_arc_command): Remove.
12422 * tui/tui-win.c (tui_command): Remove.
12423 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12424 * tui/tui-layout.c (tui_layout_command): Remove.
12425 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12426 * python/python.c (user_set_python, user_show_python): Remove.
12427 (_initialize_python): Use add_basic_prefix_cmd,
12428 add_show_prefix_cmd.
12429 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12430 (install_gdb_commands): Use add_basic_prefix_cmd,
12431 add_show_prefix_cmd.
12432 (info_guile_command): Remove.
12433 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12434 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12435 add_show_prefix_cmd.
12436 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12437 Remove do_set and do_show parameters.
12438 * cli/cli-style.c (set_style, show_style): Remove.
12439 (_initialize_cli_style): Use add_basic_prefix_cmd,
12440 add_show_prefix_cmd.
12441 (cli_style_option::add_setshow_commands): Remove do_set and
12442 do_show parameters.
12443 (cli_style_option::add_setshow_commands): Use
12444 add_basic_prefix_cmd, add_show_prefix_cmd.
12445 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12446 (set_style_name): Remove.
12447 * cli/cli-dump.c (dump_command, append_command): Remove.
12448 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12449 (tekhex_dump_command, binary_dump_command)
12450 (binary_append_command): Remove.
12451 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12452 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12453 (init_w32_command_list): Remove; move into ...
12454 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12455 * valprint.c (set_print, show_print, set_print_raw)
12456 (show_print_raw): Remove.
12457 (_initialize_valprint): Use add_basic_prefix_cmd,
12458 add_show_prefix_cmd.
12459 * typeprint.c (set_print_type, show_print_type): Remove.
12460 (_initialize_typeprint): Use add_basic_prefix_cmd,
12461 add_show_prefix_cmd.
12462 * record.c (set_record_command, show_record_command): Remove.
12463 (_initialize_record): Use add_basic_prefix_cmd,
12464 add_show_prefix_cmd.
12465 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12466 add_show_prefix_cmd.
12467 (info_command, show_command, set_debug, show_debug): Remove.
12468 * top.h (set_history, show_history): Don't declare.
12469 * top.c (set_history, show_history): Remove.
12470 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12471 (unset_tdesc_cmd): Remove.
12472 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12473 add_show_prefix_cmd.
12474 * symtab.c (info_module_command): Remove.
12475 (_initialize_symtab): Use add_basic_prefix_cmd.
12476 * symfile.c (overlay_command): Remove.
12477 (_initialize_symfile): Use add_basic_prefix_cmd.
12478 * sparc64-tdep.c (info_adi_command): Remove.
12479 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12480 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12481 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12482 add_show_prefix_cmd.
12483 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12484 (_initialize_serial): Use add_basic_prefix_cmd,
12485 add_show_prefix_cmd.
12486 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12487 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12488 add_show_prefix_cmd.
12489 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12490 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12491 add_show_prefix_cmd.
12492 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12493 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12494 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12495 add_show_prefix_cmd.
12496 * remote.c (remote_command, set_remote_cmd): Remove.
12497 (_initialize_remote): Use add_basic_prefix_cmd.
12498 * record-full.c (set_record_full_command)
12499 (show_record_full_command): Remove.
12500 (_initialize_record_full): Use add_basic_prefix_cmd,
12501 add_show_prefix_cmd.
12502 * record-btrace.c (cmd_set_record_btrace)
12503 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12504 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12505 (cmd_show_record_btrace_pt): Remove.
12506 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12507 add_show_prefix_cmd.
12508 * ravenscar-thread.c (set_ravenscar_command)
12509 (show_ravenscar_command): Remove.
12510 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12511 add_show_prefix_cmd.
12512 * mips-tdep.c (show_mips_command, set_mips_command)
12513 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12514 add_show_prefix_cmd.
12515 * maint.c (maintenance_command, maintenance_info_command)
12516 (maintenance_check_command, maintenance_print_command)
12517 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12518 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12519 add_show_prefix_cmd.
12520 (show_per_command_cmd): Remove.
12521 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12522 Remove.
12523 (maintenance_show_test_settings_cmd): Remove.
12524 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12525 add_show_prefix_cmd.
12526 * maint-test-options.c (maintenance_test_options_command):
12527 Remove.
12528 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12529 * macrocmd.c (macro_command): Remove
12530 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12531 * language.c (set_check, show_check): Remove.
12532 (_initialize_language): Use add_basic_prefix_cmd,
12533 add_show_prefix_cmd.
12534 * infcmd.c (unset_command): Remove.
12535 (_initialize_infcmd): Use add_basic_prefix_cmd.
12536 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12537 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12538 add_show_prefix_cmd.
12539 * go32-nat.c (go32_info_dos_command): Remove.
12540 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12541 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12542 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12543 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12544 (_initialize_frame): Use add_basic_prefix_cmd,
12545 add_show_prefix_cmd.
12546 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12547 (_initialize_dcache): Use add_basic_prefix_cmd,
12548 add_show_prefix_cmd.
12549 * cp-support.c (maint_cplus_command): Remove.
12550 (_initialize_cp_support): Use add_basic_prefix_cmd.
12551 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12552 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12553 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12554 add_basic_prefix_cmd, add_show_prefix_cmd.
12555 * breakpoint.c (save_command): Remove.
12556 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12557 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12558 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12559 add_show_prefix_cmd.
12560 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12561 (set_ada_command, show_ada_command): Remove.
12562 (_initialize_ada_language): Use add_basic_prefix_cmd,
12563 add_show_prefix_cmd.
12564 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12565
12566 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12567
12568 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12569 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12570
12571 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12572
12573 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12574 warning messages.
12575
12576 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12577
12578 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12579 import table is not at beginning of .idata section.
12580
12581 2020-04-16 Pedro Alves <palves@redhat.com>
12582
12583 * inferior.c (delete_inferior): Use delete operator directly
12584 instead of delete_program_space.
12585 * progspace.c (add_program_space): New, factored out from
12586 program_space::program_space.
12587 (remove_program_space): New, factored out from
12588 delete_program_space.
12589 (program_space::program_space): Remove intro comment. Rewrite.
12590 (program_space::~program_space): Remove intro comment. Call
12591 remove_program_space.
12592 (delete_program_space): Delete.
12593 * progspace.h (program_space::program_space): Make explicit. Move
12594 intro comment here, adjusted.
12595 (program_space::~program_space): Move intro comment here,
12596 adjusted.
12597 (delete_program_space): Remove.
12598
12599 2020-04-16 Tom Tromey <tromey@adacore.com>
12600
12601 * windows-nat.c (windows_nat::handle_access_violation): New
12602 function.
12603 * nat/windows-nat.h (handle_access_violation): Declare.
12604 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12605 windows-nat.c. Call handle_access_violation.
12606
12607 2020-04-16 Tom de Vries <tdevries@suse.de>
12608
12609 PR symtab/25791
12610 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12611 CUs without psymtab.
12612
12613 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12614
12615 * python/python.c (do_start_initialization): Don't call
12616 PyEval_InitThreads for Python 3.9 and beyond.
12617
12618 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12619
12620 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12621 thread functions.
12622 (obsd_nat_target::wait): Likewise.
12623
12624 2020-04-15 Tom Tromey <tromey@adacore.com>
12625
12626 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12627 (DEBUG_EXCEPT): Use debug_printf.
12628
12629 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12630
12631 * completer.c (class completion_tracker::completion_hash_entry)
12632 <hash_name>: New member function.
12633 (completion_tracker::discard_completions): New callback to hash a
12634 completion_hash_entry, pass this to htab_create_alloc.
12635
12636 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12637
12638 * windows-nat.c (windows_make_so): Warn rather than stopping with
12639 an error if realpath() fails.
12640
12641 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12642
12643 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12644 (nbsd_nat_target::info_proc): Add do_status.
12645
12646 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12647 Tom de Vries <tdevries@suse.de>
12648
12649 PR symtab/25718
12650 * psympriv.h (struct partial_symtab::read_symtab)
12651 (struct partial_symtab::expand_psymtab)
12652 (struct partial_symtab::read_dependencies): Update comments.
12653 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12654 read_symtab for includer.
12655 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12656 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12657 (struct dwarf2_include_psymtab::m_readin): Remove.
12658 (struct dwarf2_include_psymtab::includer): New member function.
12659 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12660
12661 2020-04-14 Tom de Vries <tdevries@suse.de>
12662
12663 PR symtab/25720
12664 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12665 with NULL symbol_matcher and lookup_name.
12666 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12667 and lookup_name.
12668 * dwarf2/read.c (dw2_expand_symtabs_matching)
12669 (dw2_debug_names_expand_symtabs_matching): Same.
12670 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12671 Make lookup_name a pointer. Update comment.
12672 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12673 lookup_name being a pointer.
12674 * symfile.c (expand_symtabs_matching): Same.
12675 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12676 * linespec.c (iterate_over_all_matching_symtabs): Same.
12677
12678 2020-04-13 Tom Tromey <tom@tromey.com>
12679
12680 * run-on-main-thread.c: Update include.
12681 * unittests/main-thread-selftests.c: Update include.
12682 * tui/tui-win.c: Update include.
12683 * tui/tui-io.c: Update include.
12684 * tui/tui-interp.c: Update include.
12685 * tui/tui-hooks.c: Update include.
12686 * top.h: Update include.
12687 * top.c: Update include.
12688 * ser-base.c: Update include.
12689 * remote.c: Update include.
12690 * remote-notif.c: Update include.
12691 * remote-fileio.c: Update include.
12692 * record-full.c: Update include.
12693 * record-btrace.c: Update include.
12694 * python/python.c: Update include.
12695 * posix-hdep.c: Update include.
12696 * mingw-hdep.c: Update include.
12697 * mi/mi-main.c: Update include.
12698 * mi/mi-interp.c: Update include.
12699 * main.c: Update include.
12700 * linux-nat.c: Update include.
12701 * interps.c: Update include.
12702 * infrun.c: Update include.
12703 * inf-loop.c: Update include.
12704 * event-top.c: Update include.
12705 * event-loop.c: Move to ../gdbsupport/.
12706 * event-loop.h: Move to ../gdbsupport/.
12707 * async-event.h: Update include.
12708 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12709
12710 2020-04-13 Tom Tromey <tom@tromey.com>
12711
12712 * tui/tui-win.c: Include async-event.h.
12713 * remote.c: Include async-event.h.
12714 * remote-notif.c: Include async-event.h.
12715 * record-full.c: Include async-event.h.
12716 * record-btrace.c: Include async-event.h.
12717 * infrun.c: Include async-event.h.
12718 * event-top.c: Include async-event.h.
12719 * event-loop.h: Move some declarations to async-event.h.
12720 * event-loop.c: Don't include ser-event.h or top.h. Move some
12721 code to async-event.c.
12722 * async-event.h: New file.
12723 * async-event.c: New file.
12724 * Makefile.in (COMMON_SFILES): Add async-event.c.
12725 (HFILES_NO_SRCDIR): Add async-event.h.
12726
12727 2020-04-13 Tom Tromey <tom@tromey.com>
12728
12729 * utils.c (flush_streams): New function.
12730 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12731
12732 2020-04-13 Tom Tromey <tom@tromey.com>
12733
12734 * event-loop.c (handle_file_event): Use warning, not
12735 printf_unfiltered.
12736
12737 2020-04-13 Tom Tromey <tom@tromey.com>
12738
12739 * event-loop.c: Include <chrono>.
12740
12741 2020-04-13 Tom Tromey <tom@tromey.com>
12742
12743 * gdb_select.h: Move to ../gdbsupport/.
12744 * event-loop.c: Update include path.
12745 * top.c: Update include path.
12746 * ser-base.c: Update include path.
12747 * ui-file.c: Update include path.
12748 * ser-tcp.c: Update include path.
12749 * guile/scm-ports.c: Update include path.
12750 * posix-hdep.c: Update include path.
12751 * ser-unix.c: Update include path.
12752 * gdb_usleep.c: Update include path.
12753 * mingw-hdep.c: Update include path.
12754 * inflow.c: Update include path.
12755 * infrun.c: Update include path.
12756 * event-top.c: Update include path.
12757
12758 2020-04-13 Tom Tromey <tom@tromey.com>
12759
12760 * configure: Rebuild.
12761 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12762
12763 2020-04-13 Tom Tromey <tom@tromey.com>
12764
12765 * event-loop.h (start_event_loop): Don't declare.
12766 * event-loop.c (start_event_loop): Move...
12767 * main.c (start_event_loop): ...here. Now static.
12768
12769 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12770
12771 * MAINTAINERS: Update my email address.
12772
12773 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12774
12775 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12776 IP_ALL.
12777
12778 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12779
12780 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12781 (nbsd_nat_target::info_proc): Add do_cmdline.
12782
12783 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12784
12785 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12786 (nbsd_nat_target::info_proc): Add do_cwd.
12787
12788 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12789
12790 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12791
12792 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12793
12794 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12795 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12796 (nbsd_nat_target::info_proc): New functions.
12797 * nbsd-nat.c (kinfo_get_vmmap): New function.
12798 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12799 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12800 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12801 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12802 functions.
12803 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12804 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12805 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12806 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12807 (KINFO_VME_FLAG_GROWS_DOWN): New.
12808
12809 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12810
12811 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12812 bit shift.
12813
12814 2020-04-10 Tom Tromey <tromey@adacore.com>
12815
12816 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12817
12818 2020-04-10 Tom Tromey <tromey@adacore.com>
12819
12820 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12821 separate debug files.
12822
12823 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12824
12825 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12826 Move to...
12827 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12828 ... here.
12829 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12830 Check for STATUS_WX86_BREAKPOINT.
12831 (windows_nat_target::wait): Same.
12832
12833 2020-04-10 Tom de Vries <tdevries@suse.de>
12834
12835 PR cli/25808
12836 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12837
12838 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12839
12840 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12841 (Write After Approval): Remove Tom de Vries.
12842
12843 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12844
12845 revert partially:
12846 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12847
12848 * buildsym.c (record_line): Fix undefined behavior and preserve
12849 lines at eof.
12850
12851 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12852
12853 * auxv.h (svr4_auxv_parse): New.
12854 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12855 and generic_auxv_parse.
12856 (svr4_auxv_parse): Add.
12857 * obsd-tdep.c: Include "auxv.h".
12858 (obsd_auxv_parse): Remove.
12859 (obsd_init_abi): Remove comment.
12860 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12861 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12862 * nbsd-tdep.c: Include "auxv.h".
12863 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12864
12865 2020-04-08 Tom Tromey <tromey@adacore.com>
12866
12867 * nat/windows-nat.h (last_wait_event): Don't declare.
12868 (wait_for_debug_event): Update comment.
12869 * nat/windows-nat.c (last_wait_event): Now static.
12870
12871 2020-04-08 Tom Tromey <tromey@adacore.com>
12872
12873 * windows-nat.c (wait_for_debug_event): Move to
12874 nat/windows-nat.c.
12875 * nat/windows-nat.h (wait_for_debug_event): Declare.
12876 * nat/windows-nat.c (wait_for_debug_event): Move from
12877 windows-nat.c. No longer static.
12878
12879 2020-04-08 Tom Tromey <tromey@adacore.com>
12880
12881 * windows-nat.c (get_windows_debug_event): Use
12882 fetch_pending_stop.
12883 * nat/windows-nat.h (fetch_pending_stop): Declare.
12884 * nat/windows-nat.c (fetch_pending_stop): New function.
12885
12886 2020-04-08 Tom Tromey <tromey@adacore.com>
12887
12888 * windows-nat.c (windows_continue): Use matching_pending_stop and
12889 continue_last_debug_event.
12890 * nat/windows-nat.h (matching_pending_stop)
12891 (continue_last_debug_event): Declare.
12892 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12893 (matching_pending_stop, continue_last_debug_event): New
12894 functions.
12895
12896 2020-04-08 Tom Tromey <tromey@adacore.com>
12897
12898 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12899 (handle_exception_result): Move to nat/windows-nat.h.
12900 (DEBUG_EXCEPTION_SIMPLE): Remove.
12901 (windows_nat::handle_ms_vc_exception): New function.
12902 (handle_exception): Move to nat/windows-nat.c.
12903 (get_windows_debug_event): Update.
12904 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12905 nat/windows-nat.c.
12906 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12907 (handle_exception_result): Move from windows-nat.c.
12908 (handle_exception): Declare.
12909 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12910 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12911 windows-nat.c.
12912
12913 2020-04-08 Tom Tromey <tromey@adacore.com>
12914
12915 * windows-nat.c (exception_count, event_count): Remove.
12916 (handle_exception, get_windows_debug_event)
12917 (do_initial_windows_stuff): Update.
12918
12919 2020-04-08 Tom Tromey <tromey@adacore.com>
12920
12921 * windows-nat.c (windows_nat::handle_load_dll)
12922 (windows_nat::handle_unload_dll): Rename. No longer static.
12923 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12924 Declare.
12925
12926 2020-04-08 Tom Tromey <tromey@adacore.com>
12927
12928 * complaints.h (stop_whining): Declare at top-level.
12929 (complaint): Don't declare stop_whining.
12930
12931 2020-04-08 Tom Tromey <tromey@adacore.com>
12932
12933 * windows-nat.c (windows_nat::handle_output_debug_string):
12934 Rename. No longer static.
12935 * nat/windows-nat.h (handle_output_debug_string): Declare.
12936
12937 2020-04-08 Tom Tromey <tromey@adacore.com>
12938
12939 * windows-nat.c (current_process_handle, current_process_id)
12940 (main_thread_id, last_sig, current_event, last_wait_event)
12941 (current_windows_thread, desired_stop_thread_id, pending_stops)
12942 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12943 (display_selectors, fake_create_process)
12944 (get_windows_debug_event): Update.
12945 * nat/windows-nat.h (current_process_handle, current_process_id)
12946 (main_thread_id, last_sig, current_event, last_wait_event)
12947 (current_windows_thread, desired_stop_thread_id, pending_stops)
12948 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12949 * nat/windows-nat.c (current_process_handle, current_process_id)
12950 (main_thread_id, last_sig, current_event, last_wait_event)
12951 (current_windows_thread, desired_stop_thread_id, pending_stops)
12952 (siginfo_er): New globals. Move from windows-nat.c.
12953
12954 2020-04-08 Tom Tromey <tromey@adacore.com>
12955
12956 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12957 (handle_load_dll): Update.
12958 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12959
12960 2020-04-08 Tom Tromey <tromey@adacore.com>
12961
12962 * windows-nat.c (enum thread_disposition_type): Move to
12963 nat/windows-nat.h.
12964 (windows_nat::thread_rec): Rename from thread_rec. No longer
12965 static.
12966 (windows_add_thread, windows_nat_target::fetch_registers)
12967 (windows_nat_target::store_registers, handle_exception)
12968 (windows_nat_target::resume, get_windows_debug_event)
12969 (windows_nat_target::get_tib_address)
12970 (windows_nat_target::thread_name)
12971 (windows_nat_target::thread_alive): Update.
12972 * nat/windows-nat.h (enum thread_disposition_type): Move from
12973 windows-nat.c.
12974 (thread_rec): Declare.
12975
12976 2020-04-08 Tom Tromey <tromey@adacore.com>
12977
12978 * windows-nat.c: Add "using namespace".
12979 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12980 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12981
12982 2020-04-08 Tom Tromey <tromey@adacore.com>
12983
12984 * nat/windows-nat.h (struct windows_thread_info): Declare
12985 destructor.
12986 * nat/windows-nat.c (~windows_thread_info): New.
12987
12988 2020-04-08 Tom Tromey <tromey@adacore.com>
12989
12990 PR gdb/22992
12991 * windows-nat.c (current_event): Update comment.
12992 (last_wait_event, desired_stop_thread_id): New globals.
12993 (struct pending_stop): New.
12994 (pending_stops): New global.
12995 (windows_nat_target) <stopped_by_sw_breakpoint>
12996 <supports_stopped_by_sw_breakpoint>: New methods.
12997 (windows_fetch_one_register): Add assertions. Adjust PC.
12998 (windows_continue): Handle pending stops. Suspend other threads
12999 when stepping. Use last_wait_event
13000 (wait_for_debug_event): New function.
13001 (get_windows_debug_event): Use wait_for_debug_event. Handle
13002 pending stops. Queue spurious stops.
13003 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
13004 (windows_nat_target::kill): Use wait_for_debug_event.
13005 * nat/windows-nat.h (struct windows_thread_info)
13006 <stopped_at_software_breakpoint>: New field.
13007 * nat/windows-nat.c (windows_thread_info::resume): Clear
13008 stopped_at_software_breakpoint.
13009
13010 2020-04-08 Tom Tromey <tromey@adacore.com>
13011
13012 * windows-nat.c (enum thread_disposition_type): New.
13013 (thread_rec): Replace "get_context" parameter with "disposition";
13014 change type.
13015 (windows_add_thread, windows_nat_target::fetch_registers)
13016 (windows_nat_target::store_registers, handle_exception)
13017 (windows_nat_target::resume, get_windows_debug_event)
13018 (windows_nat_target::get_tib_address)
13019 (windows_nat_target::thread_name)
13020 (windows_nat_target::thread_alive): Update.
13021
13022 2020-04-08 Tom Tromey <tromey@adacore.com>
13023
13024 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
13025 (windows_continue): Use windows_continue::resume.
13026 * nat/windows-nat.h (struct windows_thread_info) <suspend,
13027 resume>: Declare new methods.
13028 * nat/windows-nat.c: New file.
13029 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
13030
13031 2020-04-08 Tom Tromey <tromey@adacore.com>
13032
13033 * windows-nat.c (windows_add_thread, windows_delete_thread)
13034 (windows_nat_target::fetch_registers)
13035 (windows_nat_target::store_registers, fake_create_process)
13036 (windows_nat_target::resume, windows_nat_target::resume)
13037 (get_windows_debug_event, windows_nat_target::wait)
13038 (windows_nat_target::pid_to_str)
13039 (windows_nat_target::get_tib_address)
13040 (windows_nat_target::get_ada_task_ptid)
13041 (windows_nat_target::thread_name)
13042 (windows_nat_target::thread_alive): Use lwp, not tid.
13043
13044 2020-04-08 Tom Tromey <tromey@adacore.com>
13045
13046 * windows-nat.c (handle_exception)
13047 (windows_nat_target::thread_name): Update.
13048 * nat/windows-nat.h (windows_thread_info): Remove destructor.
13049 <name>: Now unique_xmalloc_ptr.
13050
13051 2020-04-08 Tom Tromey <tromey@adacore.com>
13052
13053 * windows-nat.c (thread_rec)
13054 (windows_nat_target::fetch_registers): Update.
13055 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
13056 Update comment.
13057 <debug_registers_changed, reload_context>: Now bool.
13058
13059 2020-04-08 Tom Tromey <tromey@adacore.com>
13060
13061 * windows-nat.c (windows_add_thread): Use new.
13062 (windows_init_thread_list, windows_delete_thread): Use delete.
13063 (get_windows_debug_event): Update.
13064 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
13065 destructor, and initializers.
13066
13067 2020-04-08 Tom Tromey <tromey@adacore.com>
13068
13069 * windows-nat.c (struct windows_thread_info): Remove.
13070 * nat/windows-nat.h: New file.
13071
13072 2020-04-08 Tom Tromey <tromey@adacore.com>
13073
13074 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
13075 (thread_rec, windows_add_thread, windows_delete_thread)
13076 (windows_continue): Update.
13077
13078 2020-04-08 Tom Tromey <tromey@adacore.com>
13079
13080 * windows-nat.c (struct windows_thread_info): Remove typedef.
13081 (thread_head): Remove.
13082 (thread_list): New global.
13083 (thread_rec, windows_add_thread, windows_init_thread_list)
13084 (windows_delete_thread, windows_continue): Update.
13085
13086 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
13087
13088 * windows-tdep.h (windows_init_abi): Add comment.
13089 (cygwin_init_abi): New declaration.
13090 * windows-tdep.c: Split signal enumeration in two, one for
13091 Windows and one for Cygwin.
13092 (windows_gdb_signal_to_target): Only deal with signal of the
13093 Windows OS ABI.
13094 (cygwin_gdb_signal_to_target): New function.
13095 (windows_init_abi): Rename to windows_init_abi_common, don't set
13096 gdb_signal_to_target gdbarch method. Add new new function with
13097 this name.
13098 (cygwin_init_abi): New function.
13099 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
13100 comment. Don't call windows_init_abi.
13101 (amd64_windows_init_abi): Add comment, call windows_init_abi.
13102 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
13103 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
13104 i386_windows_init_abi_common, don't call windows_init_abi. Add
13105 a new function of this name.
13106 (i386_cygwin_init_abi): New function.
13107 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
13108 OS ABI Cygwin.
13109
13110 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
13111
13112 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
13113 parameter.c.
13114 (dwarf2_read_gdb_index): Update.
13115
13116 2020-04-07 Kamil Rytarowski <n54@gmx.com>
13117
13118 * nbsd-tdep.c: Include "objfiles.h".
13119 (nbsd_skip_solib_resolver): New.
13120 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
13121
13122 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13123
13124 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
13125 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
13126 with DW_LLE_base_addressx are being emitted in DWARFv5.
13127 Add the newly added kind DW_LOC_OFFSET_PAIR also.
13128 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
13129 unsigned integer.
13130
13131 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13132
13133 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
13134 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
13135 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
13136 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
13137 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
13138 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
13139 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
13140
13141
13142 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13143
13144 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
13145 (read_loclist_index): New function definition.
13146 (lookup_loclist_base): New function definition.
13147 (read_loclist_header): New function definition.
13148 (dwarf2_cu): Add loclist_base and loclist_header field.
13149 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
13150 (read_full_die_1): Read the value of DW_AT_loclists_base.
13151 (read_attribute_reprocess): Handle DW_FORM_loclistx.
13152 (read_attribute_value): Handle DW_FORM_loclistx.
13153 (skip_one_die): Handle DW_FORM_loclistx.
13154 (loclist_header): New structure declaration.
13155 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
13156
13157 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13158
13159 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
13160 constructor. Remove `addr` parameter from other constructor and
13161 add `per_cu` parameter.
13162 * dwarf2/read.c (create_partial_symtab): Update.
13163
13164 2020-04-07 Tom de Vries <tdevries@suse.de>
13165
13166 PR symtab/25796
13167 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
13168 (partial_die_info::fixup): Inherit has_const_value.
13169
13170 2020-04-07 Tom de Vries <tdevries@suse.de>
13171
13172 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13173 symbols without address.
13174
13175 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13176
13177 * nbsd-nat.h (struct thread_info): Add forward declaration.
13178 (nbsd_nat_target::thread_alive): Add.
13179 (nbsd_nat_target::thread_name): Likewise.
13180 (nbsd_nat_target::update_thread_list): Likewise.
13181 (update_thread_list::post_attach): Likewise.
13182 (post_attach::pid_to_str): Likewise.
13183 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13184 (nbsd_thread_lister): Add.
13185 (nbsd_nat_target::thread_alive): Likewise.
13186 (nbsd_nat_target::thread_name): Likewise.
13187 (nbsd_add_threads): Likewise.
13188 (update_thread_list::post_attach): Likewise.
13189 (nbsd_nat_target::update_thread_list): Likewise.
13190 (post_attach::pid_to_str): Likewise.
13191
13192 2020-04-06 Tom Tromey <tromey@adacore.com>
13193
13194 * ada-valprint.c (print_variant_part): Extract the variant field.
13195 (print_field_values): Use the field as the outer value when
13196 recursing.
13197
13198 2020-04-06 Tom Tromey <tromey@adacore.com>
13199
13200 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13201 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13202 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13203 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13204 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13205
13206 2020-04-06 Tom Tromey <tromey@adacore.com>
13207
13208 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13209 TYPE_CODE_ERROR.
13210
13211 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13212
13213 * nbsd-tdep.c: Include "gdbarch.h".
13214 Define enum with NetBSD signal numbers.
13215 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13216 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13217 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13218 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13219 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13220 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13221 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13222 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13223 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13224 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13225 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13226 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13227
13228 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
13229
13230 PR gdb/25325
13231 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13232
13233 2020-04-03 Tom Tromey <tromey@adacore.com>
13234
13235 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13236 Read constant block.
13237
13238 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13239
13240 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13241 (gdb_bfd_get_full_section_contents): New declaration.
13242 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13243 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13244 gdb_bfd_get_full_section_contents.
13245
13246 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13247
13248 * exec.c (build_section_table): Replace internal_error with
13249 gdb_assert.
13250 (section_table_xfer_memory_partial): Likewise.
13251 * mdebugread.c (parse_partial_symbols): Likewise.
13252 * psymtab.c (lookup_partial_symbol): Likewise.
13253 * utils.c (wrap_here): Likewise.
13254
13255 2020-04-02 Tom Tromey <tromey@adacore.com>
13256
13257 * f-lang.c (build_fortran_types): Use arch_type to initialize
13258 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13259
13260 2020-04-02 Tom Tromey <tromey@adacore.com>
13261
13262 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13263 of attributes.
13264
13265 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13266 Bernd Edlinger <bernd.edlinger@hotmail.de>
13267 Tom Tromey <tromey@adacore.com>
13268
13269 * buildsym.c (buildsym_compunit::record_line): Remove
13270 deduplication code.
13271
13272 2020-04-02 Tom de Vries <tdevries@suse.de>
13273
13274 PR ada/24671
13275 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13276
13277 2020-04-02 Tom de Vries <tdevries@suse.de>
13278
13279 * dwarf2/read.c (dwarf2_gdb_index_functions,
13280 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13281 NULL.
13282 * psymtab.c (psym_lookup_global_symbol_language): New function.
13283 (psym_functions): Init psym_lookup_global_symbol_language with
13284 psym_lookup_global_symbol_language.
13285 * symfile-debug.c (debug_sym_quick_functions): Init
13286 lookup_global_symbol_language with NULL.
13287 * symfile.c (set_initial_language): Remove fixme comment.
13288 * symfile.h (struct quick_symbol_functions): Add
13289 lookup_global_symbol_language.
13290 * symtab.c (find_quick_global_symbol_language): New function.
13291 (find_main_name): Use find_quick_global_symbol_language.
13292
13293 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13294
13295 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13296
13297 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13298
13299 * buildsym.c (record_line): Fix undefined behavior and preserve
13300 lines at eof.
13301
13302 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13303
13304 * buildsym.c (record_line): Fix the resizing condition.
13305
13306 2020-04-01 Tom Tromey <tom@tromey.com>
13307
13308 * value.h (value_literal_complex): Add comment.
13309 * valops.c (value_literal_complex): Refer to value.h.
13310
13311 2020-04-01 Tom Tromey <tom@tromey.com>
13312
13313 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13314 (scalar_type): New rule, from typebase.
13315 (typebase): Use scalar_type. Recognize complex types.
13316 (field_name): Handle FLOAT_KEYWORD.
13317 (ident_tokens): Add _Complex and __complex__.
13318
13319 2020-04-01 Tom Tromey <tom@tromey.com>
13320
13321 PR exp/25299:
13322 * valarith.c (promotion_type, complex_binop): New functions.
13323 (scalar_binop): Handle complex numbers. Use promotion_type.
13324 (value_pos, value_neg, value_complement): Handle complex numbers.
13325
13326 2020-04-01 Tom Tromey <tom@tromey.com>
13327
13328 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13329 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13330 (parse_number): Handle complex numbers.
13331
13332 2020-04-01 Tom Tromey <tom@tromey.com>
13333
13334 * c-valprint.c (c_decorations): Change complex suffix to "i".
13335
13336 2020-04-01 Tom Tromey <tom@tromey.com>
13337
13338 * valprint.c (generic_value_print_complex): Use accessors.
13339 * value.h (value_real_part, value_imaginary_part): Declare.
13340 * valops.c (value_real_part, value_imaginary_part): New
13341 functions.
13342 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13343
13344 2020-04-01 Tom Tromey <tom@tromey.com>
13345
13346 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13347 (read_range_type): Update.
13348 * mdebugread.c (basic_type): Update.
13349 * go-lang.c (build_go_types): Use init_complex_type.
13350 * gdbtypes.h (struct main_type) <complex_type>: New member.
13351 (init_complex_type): Update.
13352 (arch_complex_type): Don't declare.
13353 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13354 Make name if none given. Use alloc_type_copy. Look for cached
13355 complex type.
13356 (arch_complex_type): Remove.
13357 (gdbtypes_post_init): Use init_complex_type.
13358 * f-lang.c (build_fortran_types): Use init_complex_type.
13359 * dwarf2/read.c (read_base_type): Update.
13360 * d-lang.c (build_d_types): Use init_complex_type.
13361 * ctfread.c (read_base_type): Update.
13362
13363 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13364
13365 * infrun.c (stop_all_threads): Update assertion, plus when
13366 stopping threads, take into account that we might be trying
13367 to stop an all-stop target.
13368 (stop_waiting): Call 'stop_all_threads' if there exists a
13369 non-stop target.
13370
13371 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13372
13373 * target.h (exists_non_stop_target): New function declaration.
13374 * target.c (exists_non_stop_target): New function.
13375
13376 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13377
13378 PR gdb/24789
13379 * eval.c (is_integral_or_integral_reference): New function.
13380 (evaluate_subexp_standard): Allow integer references in
13381 pointer arithmetic.
13382
13383 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13384
13385 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13386 check for no ptid in the stop reply when the target is non-stop.
13387
13388 2020-04-01 Tom Tromey <tromey@adacore.com>
13389
13390 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13391 "name" parameter to rvalue reference. Initialize m_name_holder.
13392 <lookup_name_info>: New overloads.
13393 <name>: Return gdb::string_view.
13394 <c_str>: New method.
13395 <make_ignore_params>: Update.
13396 <search_name_hash>: Update.
13397 <language_lookup_name>: Return const char *.
13398 <m_name>: Change type.
13399 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13400 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13401 (lookup_name_info::match_any): Update.
13402 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13403 Update.
13404 * minsyms.c (linkage_name_str): Update.
13405 * language.c (default_symbol_name_matcher): Update.
13406 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13407 Update.
13408 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13409 (ada_lookup_name_info::ada_lookup_name_info): Update.
13410 (literal_symbol_name_matcher): Update.
13411
13412 2020-04-01 Tom Tromey <tromey@adacore.com>
13413
13414 * psymtab.c (psymtab_search_name): Remove function.
13415 (psym_lookup_symbol): Create search name and lookup name here.
13416 (lookup_partial_symbol): Remove "name" parameter; add
13417 lookup_name.
13418 (psym_expand_symtabs_for_function): Update.
13419
13420 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13421
13422 PR tui/25597:
13423 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13424
13425 2020-03-31 Tom Tromey <tromey@adacore.com>
13426
13427 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13428 memcpy.
13429
13430 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13431
13432 * features/riscv/32bit-csr.xml: Regenerated.
13433 * features/riscv/64bit-csr.xml: Regenerated.
13434
13435 2020-03-30 Tom Tromey <tromey@adacore.com>
13436
13437 * ada-valprint.c (print_variant_part): Update.
13438 * ada-lang.h (ada_which_variant_applies): Update.
13439 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13440 outer_valaddr parameters; replace with "outer" value parameter.
13441 (to_fixed_variant_branch_type): Update.
13442
13443 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13444
13445 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13446 <list>. Remove inclusion of observable.h.
13447 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13448 (struct arch_lwp_info): New struct.
13449 (class ppc_linux_dreg_interface): New class.
13450 (struct ppc_linux_process_info): New struct.
13451 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13452 <low_new_clone, low_forget_process, low_prepare_to_resume>
13453 <copy_thread_dreg_state, mark_thread_stale>
13454 <mark_debug_registers_changed, register_hw_breakpoint>
13455 <clear_hw_breakpoint, register_wp, clear_wp>
13456 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13457 <num_memory_accesses, get_trigger_type>
13458 <create_watchpoint_request, hwdebug_point_cmp>
13459 <init_arch_lwp_info, get_arch_lwp_info>
13460 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13461 methods.
13462 <struct ptid_hash>: New inner struct.
13463 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13464 members.
13465 (saved_dabr_value, hwdebug_info, max_slots_number)
13466 (struct hw_break_tuple, struct thread_points, ppc_threads)
13467 (have_ptrace_hwdebug_interface)
13468 (hwdebug_find_thread_points_by_tid)
13469 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13470 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13471 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13472 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13473 use m_dreg_interface.
13474 (hwdebug_point_cmp): Change to...
13475 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13476 reference arguments instead of pointers.
13477 (ppc_linux_nat_target::ranged_break_num_registers): Use
13478 m_dreg_interface.
13479 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13480 m_dreg_interface. Call register_hw_breakpoint.
13481 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13482 m_dreg_interface. Call clear_hw_breakpoint.
13483 (get_trigger_type): Change to...
13484 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13485 comment.
13486 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13487 use m_dreg_interface. Call register_hw_breakpoint.
13488 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13489 use m_dreg_interface. Call clear_hw_breakpoint.
13490 (can_use_watchpoint_cond_accel): Change to...
13491 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13492 method. Update comment, use m_dreg_interface and
13493 m_process_info.
13494 (calculate_dvc): Change to...
13495 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13496 m_dreg_interface.
13497 (num_memory_accesses): Change to...
13498 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13499 (check_condition): Change to...
13500 (ppc_linux_nat_target::check_condition): ...this method.
13501 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13502 comment, use m_dreg_interface.
13503 (create_watchpoint_request): Change to...
13504 (ppc_linux_nat_target::create_watchpoint_request): ...this
13505 method. Use m_dreg_interface.
13506 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13507 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13508 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13509 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13510 (ppc_linux_nat_target::low_forget_process)
13511 (ppc_linux_nat_target::low_new_fork)
13512 (ppc_linux_nat_target::low_new_clone)
13513 (ppc_linux_nat_target::low_delete_thread)
13514 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13515 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13516 only call mark_thread_stale.
13517 (ppc_linux_thread_exit): Remove.
13518 (ppc_linux_nat_target::stopped_data_address): Change to...
13519 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13520 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13521 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13522 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13523 comment. Call low_stopped_data_address.
13524 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13525 m_dreg_interface.
13526 (ppc_linux_nat_target::masked_watch_num_registers): Use
13527 m_dreg_interface.
13528 (ppc_linux_nat_target::copy_thread_dreg_state)
13529 (ppc_linux_nat_target::mark_thread_stale)
13530 (ppc_linux_nat_target::mark_debug_registers_changed)
13531 (ppc_linux_nat_target::register_hw_breakpoint)
13532 (ppc_linux_nat_target::clear_hw_breakpoint)
13533 (ppc_linux_nat_target::register_wp)
13534 (ppc_linux_nat_target::clear_wp)
13535 (ppc_linux_nat_target::init_arch_lwp_info)
13536 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13537 (_initialize_ppc_linux_nat): Remove observer callback.
13538
13539 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13540
13541 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13542 (ppc_linux_nat_target::auxv_parse)
13543 (ppc_linux_nat_target::read_description)
13544 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13545 Move up.
13546
13547 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13548
13549 * linux-nat.h (low_new_clone): New method.
13550 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13551
13552 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13553
13554 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13555 (dbx_expand_psymtab): ... this.
13556 (start_psymtab): Update.
13557 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13558 (mdebug_expand_psymtab): ... this.
13559 (parse_partial_symbols): Update.
13560 (new_psymtab): Update.
13561 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13562 (xcoff_expand_psymtab): ... this.
13563 (xcoff_start_psymtab): Update.
13564
13565 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13566
13567 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13568 <expand_dependencies>: ... this.
13569 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13570 (partial_symtab::expand_dependencies): ... this.
13571 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13572 Update.
13573 (dwarf2_psymtab::expand_psymtab): Update.
13574 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13575 * mdebugread.c (psymtab_to_symtab_1): Update.
13576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13577
13578 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13579
13580 * psympriv.h (discard_psymtab): Remove.
13581 * dbxread.c (dbx_end_psymtab): Update.
13582 * xcoffread.c (xcoff_end_psymtab): Update.
13583
13584 2020-03-28 Tom Tromey <tom@tromey.com>
13585
13586 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13587 comment.
13588
13589 2020-03-28 Tom Tromey <tom@tromey.com>
13590
13591 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13592
13593 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13594
13595 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13596
13597 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13598
13599 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13600
13601 2020-03-26 Tom Tromey <tom@tromey.com>
13602
13603 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13604 (mark_common_block_symbol_computed, read_tag_string_type)
13605 (attr_to_dynamic_prop, read_subrange_type): Update.
13606 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13607 to be methods on struct attribute.
13608 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13609 (read_call_site_scope, partial_die_info::read)
13610 (partial_die_info::read, lookup_die_type, follow_die_ref):
13611 Update.
13612 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13613 from dwarf2_get_ref_die_offset.
13614 (attribute::constant_value): New method, from
13615 dwarf2_get_attr_constant_value.
13616 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13617 Declare method.
13618 <constant_value>: New method.
13619
13620 2020-03-26 Tom Tromey <tom@tromey.com>
13621
13622 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13623 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13624 (dwarf_type_encoding_name): Move to stringify.c.
13625 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13626 * dwarf2/stringify.c: New file.
13627 * dwarf2/stringify.h: New file.
13628
13629 2020-03-26 Tom Tromey <tom@tromey.com>
13630
13631 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13632 Rewrite.
13633
13634 2020-03-26 Tom Tromey <tom@tromey.com>
13635
13636 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13637 methods.
13638 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13639 (lookup_ranges_base): Likewise.
13640 (read_cutu_die_from_dwo, read_full_die_1): Update.
13641
13642 2020-03-26 Tom Tromey <tom@tromey.com>
13643
13644 * dwarf2/read.c (read_import_statement, read_file_scope)
13645 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13646 (read_lexical_block_scope, read_call_site_scope)
13647 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13648 (handle_struct_member_die, process_structure_scope)
13649 (update_enumeration_type_from_children)
13650 (process_enumeration_scope, read_array_type, read_common_block)
13651 (read_namespace, read_module, read_subroutine_type): Update.
13652 (sibling_die): Remove.
13653
13654 2020-03-26 Tom Tromey <tom@tromey.com>
13655
13656 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13657 (build_type_psymtabs_reader, read_structure_type)
13658 (read_enumeration_type, read_full_die_1): Update.
13659 (dwarf2_attr_no_follow): Move to die.h.
13660 * dwarf2/die.h (struct die_info) <attr>: New method.
13661
13662 2020-03-26 Tom Tromey <tom@tromey.com>
13663
13664 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13665 <base_address>: Now an optional.
13666 (dwarf2_find_base_address, dwarf2_rnglists_process)
13667 (dwarf2_ranges_process, fill_in_loclist_baton)
13668 (dwarf2_symbol_mark_computed): Update.
13669
13670 2020-03-26 Tom Tromey <tom@tromey.com>
13671
13672 * dwarf2/read.c (struct die_info): Move to die.h.
13673 * dwarf2/die.h: New file.
13674
13675 2020-03-26 Tom Tromey <tom@tromey.com>
13676
13677 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13678 * dwarf2/read.c
13679 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13680 Move to line-header.c.
13681 (read_checked_initial_length_and_offset, read_formatted_entries):
13682 Likewise.
13683 (dwarf_decode_line_header): Split into two.
13684 * dwarf2/line-header.c
13685 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13686 Move from read.c.
13687 (read_checked_initial_length_and_offset, read_formatted_entries):
13688 Likewise.
13689 (dwarf_decode_line_header): New function, split from read.c.
13690
13691 2020-03-26 Tom Tromey <tom@tromey.com>
13692
13693 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13694 Declare method.
13695 * dwarf2/read.c (read_attribute_value): Update.
13696 (dwarf2_per_objfile::read_line_string): Rename from
13697 read_indirect_line_string.
13698 (read_formatted_entries): Update.
13699
13700 2020-03-26 Tom Tromey <tom@tromey.com>
13701
13702 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13703 variable.
13704
13705 2020-03-26 Tom Tromey <tom@tromey.com>
13706
13707 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13708 const.
13709 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13710 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13711 parameter const.
13712
13713 2020-03-26 Tom Tromey <tom@tromey.com>
13714
13715 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13716 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13717 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13718 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13719
13720 2020-03-26 Tom Tromey <tom@tromey.com>
13721
13722 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13723 file_names_size, file_full_name, file_file_name>: Use const.
13724 <file_name_at, file_names>: Add const overload.
13725 * dwarf2/line-header.c (line_header::file_file_name)
13726 (line_header::file_full_name): Update.
13727
13728 2020-03-26 Tom Tromey <tom@tromey.com>
13729
13730 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13731 (macro_start_file, consume_improper_spaces)
13732 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13733 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13734 (dwarf_decode_macros): Move to macro.c.
13735 * dwarf2/macro.c: New file.
13736 * dwarf2/macro.h: New file.
13737 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13738
13739 2020-03-26 Tom Tromey <tom@tromey.com>
13740
13741 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13742 method.
13743 * dwarf2/section.c: New method. From
13744 read_indirect_string_at_offset_from.
13745 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13746 (read_indirect_string_at_offset_from): Move to section.c.
13747 (read_indirect_string_at_offset): Rewrite.
13748 (read_indirect_line_string_at_offset): Remove.
13749 (read_indirect_string, read_indirect_line_string)
13750 (dwarf_decode_macro_bytes): Update.
13751
13752 2020-03-26 Tom Tromey <tom@tromey.com>
13753
13754 * dwarf2/section.h (struct dwarf2_section_info)
13755 <overload_complaint>: Declare.
13756 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13757 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13758 Rename from dwarf2_section_buffer_overflow_complaint.
13759 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13760 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13761
13762 2020-03-26 Tom Tromey <tom@tromey.com>
13763
13764 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13765 Declare.
13766 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13767 Move from read.c.
13768 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13769 to section.c.
13770
13771 2020-03-26 Tom Tromey <tom@tromey.com>
13772
13773 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13774
13775 2020-03-26 Tom Tromey <tom@tromey.com>
13776
13777 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13778 "builder".
13779 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13780 parameter.
13781 (dwarf_decode_macros): Update.
13782
13783 2020-03-26 Tom Tromey <tom@tromey.com>
13784
13785 * dwarf2/read.c (read_attribute_value): Update.
13786 (read_indirect_string_from_dwz): Move to dwz.c; change into
13787 method.
13788 (dwarf_decode_macro_bytes): Update.
13789 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13790 * dwarf2/dwz.c: New file.
13791 * Makefile.in (COMMON_SFILES): Add dwz.c.
13792
13793 2020-03-26 Tom Tromey <tom@tromey.com>
13794
13795 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13796 * dwarf2/read.c: Add include.
13797 * dwarf2/index-write.c: Add include.
13798 * dwarf2/index-cache.c: Add include.
13799 * dwarf2/dwz.h: New file.
13800
13801 2020-03-25 Tom Tromey <tom@tromey.com>
13802
13803 * compile/compile-object-load.c (get_out_value_type): Mention
13804 correct symbol name in error message.
13805
13806 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13807
13808 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13809
13810 2020-03-25 Tom de Vries <tdevries@suse.de>
13811
13812 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13813 * symmisc.c (dump_symtab_1): Print user and includes fields.
13814 (maintenance_info_symtabs): Same.
13815
13816 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13817
13818 PR gdb/25534
13819 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13820 (riscv_regcache_cooked_write): New function.
13821 (riscv_push_dummy_call): Use new function.
13822 (riscv_return_value): Likewise.
13823
13824 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13825
13826 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13827 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13828 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13829 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13830 * infrun.c (follow_fork): Likewise.
13831 (follow_fork_inferior): Likewise.
13832 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13833 * linux-nat.h (class linux_nat_target): Likewise.
13834 * remote.c (class remote_target) <follow_fork>: Likewise.
13835 (remote_target::follow_fork): Likewise.
13836 * target-delegates.c: Re-generate.
13837 * target.c (default_follow_fork): Likewise.
13838 (target_follow_fork): Likewise.
13839 * target.h (struct target_ops) <follow_fork>: Likewise.
13840 (target_follow_fork): Likewise.
13841
13842 2020-03-24 Tom de Vries <tdevries@suse.de>
13843
13844 * psymtab.c (maintenance_info_psymtabs): Print user field.
13845
13846 2020-03-20 Tom Tromey <tromey@adacore.com>
13847
13848 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13849 const.
13850 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13851 const.
13852
13853 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13854
13855 * ptrace.m4: Don't check for ptrace declaration.
13856 * config.in: Re-generate.
13857 * configure: Re-generate.
13858 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13859 not defined.
13860
13861 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13862
13863 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13864 `PTRACE_TYPE_RET'.
13865 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13866 * sparc-nat.c (gdb_ptrace): Likewise.
13867 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13868
13869 2020-03-20 Tom Tromey <tromey@adacore.com>
13870
13871 * c-exp.y (lex_one_token): Fix assert.
13872
13873 2020-03-20 Tom Tromey <tromey@adacore.com>
13874
13875 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13876 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13877 strncpy call.
13878
13879 2020-03-20 Tom Tromey <tromey@adacore.com>
13880
13881 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13882
13883 2020-03-20 Tom Tromey <tromey@adacore.com>
13884
13885 * ada-valprint.c (print_variant_part): Remove parameters; switch
13886 to value-based API.
13887 (print_field_values): Likewise.
13888 (ada_val_print_struct_union): Likewise.
13889 (ada_value_print_1): Update.
13890
13891 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13892
13893 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13894 nbsd_nat_target instead of inf_ptrace_target.
13895 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13896 nbsd_nat_target.
13897
13898 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13899
13900 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13901 it to the ptrace call.
13902 * (store_registers): Likewise.
13903
13904 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13905
13906 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13907 it to the ptrace call.
13908 * (store_registers): Likewise.
13909
13910 2020-03-19 Luis Machado <luis.machado@linaro.org>
13911
13912 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13913 valid, fetch vg value from ptrace.
13914
13915 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13916 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13917 * inf-ptrace.c: Likewise.
13918 * (gdb_ptrace): Add.
13919 * (inf_ptrace_target::resume): Update.
13920 * (inf_ptrace_target::xfer_partial): Likewise.
13921 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13922 * (inf_ptrace_peek_poke): Update.
13923
13924 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13925
13926 * x86-bsd-nat.c (gdb_ptrace): New.
13927 * (x86bsd_dr_set): Add new argument `ptid'.
13928 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13929 x86bsd_dr_set_addr): Update.
13930
13931 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13932
13933 * remote.c (remote_target::process_stop_reply): Handle events for
13934 all threads differently.
13935
13936 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13937
13938 * completer.c (completion_tracker::remove_completion): Define new
13939 function.
13940 * completer.h (completion_tracker::remove_completion): Declare new
13941 function.
13942 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13943 when adding a C++ function symbol.
13944
13945 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13946
13947 * completer.c (completion_tracker::completion_hash_entry): Define
13948 new class.
13949 (advance_to_filename_complete_word_point): Call
13950 recompute_lowest_common_denominator.
13951 (completion_tracker::completion_tracker): Call discard_completions
13952 to setup the hash table.
13953 (completion_tracker::discard_completions): Allow for being called
13954 from the constructor, pass new equal function, and element deleter
13955 when constructing the hash table. Initialise new class member
13956 variables.
13957 (completion_tracker::maybe_add_completion): Remove use of
13958 m_entries_vec, and store more information into m_entries_hash.
13959 (completion_tracker::recompute_lcd_visitor): New function, most
13960 content taken from...
13961 (completion_tracker::recompute_lowest_common_denominator):
13962 ...here, this now just visits each item in the hash calling the
13963 above visitor.
13964 (completion_tracker::build_completion_result): Remove use of
13965 m_entries_vec, call recompute_lowest_common_denominator.
13966 * completer.h (completion_tracker::have_completions): Remove use
13967 of m_entries_vec.
13968 (completion_tracker::completion_hash_entry): Declare new class.
13969 (completion_tracker::recompute_lowest_common_denominator): Change
13970 function signature.
13971 (completion_tracker::recompute_lcd_visitor): Declare new function.
13972 (completion_tracker::m_entries_vec): Delete.
13973 (completion_tracker::m_entries_hash): Initialize to NULL.
13974 (completion_tracker::m_lowest_common_denominator_valid): New
13975 member variable.
13976 (completion_tracker::m_lowest_common_denominator_max_length): New
13977 member variable.
13978
13979 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13980
13981 * regformats/regdef.h: Put reg in gdb namespace.
13982
13983 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13984
13985 * i386-bsd-nat.c (gdb_ptrace): New.
13986 * (i386bsd_fetch_inferior_registers,
13987 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13988 * (i386bsd_fetch_inferior_registers,
13989 i386bsd_store_inferior_registers) Use gdb_ptrace.
13990
13991 2020-03-17 Kamil Rytarowski <n54@gmx.com>
13992
13993 * amd64-bsd-nat.c (gdb_ptrace): New.
13994 * (amd64bsd_fetch_inferior_registers,
13995 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13996 * (amd64bsd_fetch_inferior_registers,
13997 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13998
13999 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14000
14001 * user-regs.c (user_reg::read): Rename to...
14002 (user_reg::xread): ...this.
14003 * (append_user_reg): Rename argument `read' to `xread'.
14004 * (user_reg_add_builtin): Likewise.
14005 * (user_reg_add): Likewise.
14006 * (value_of_user_reg): Likewise.
14007
14008 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14009
14010 * sparc-nat.c (gdb_ptrace): New.
14011 * sparc-nat.c (sparc_fetch_inferior_registers)
14012 (sparc_store_inferior_registers) Remove obsolete comment.
14013 * sparc-nat.c (sparc_fetch_inferior_registers)
14014 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
14015 * sparc-nat.c (sparc_fetch_inferior_registers)
14016 (sparc_store_inferior_registers) Use gdb_ptrace.
14017
14018 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14019
14020 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
14021 it to the ptrace call.
14022 * sh-nbsd-nat.c (store_registers): Likewise.
14023
14024 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14025
14026 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
14027 nbsd_nat_target instead of inf_ptrace_target.
14028 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14029 nbsd_nat_target.
14030
14031 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14032
14033 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
14034
14035 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14036
14037 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
14038 <sys/sysctl.h>.
14039 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
14040
14041 2020-03-17 Tom de Vries <tdevries@suse.de>
14042
14043 PR gdb/23710
14044 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
14045 fields.
14046 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
14047 fields.
14048 (process_imported_unit_die): Skip import of c++ CUs.
14049
14050 2020-03-16 Tom Tromey <tom@tromey.com>
14051
14052 * p-valprint.c (pascal_object_print_value): Initialize
14053 base_value.
14054
14055 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
14056 Shahab Vahedi <shahab@synopsys.com>
14057
14058 * Makefile.in: Add arch/arc.o
14059 * configure.tgt: Likewise.
14060 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
14061 (_initialize_arc_tdep): Don't initialize old target descriptions.
14062 (arc_read_description): New function to cache target descriptions.
14063 * arc-tdep.h (arc_read_description): Add proto type.
14064 * arch/arc.c: New file.
14065 * arch/arc.h: Likewise.
14066 * features/Makefile: Replace old target descriptions with new.
14067 * features/arc-arcompact.c: Remove.
14068 * features/arc-arcompact.xml: Likewise.
14069 * features/arc-v2.c: Likewise
14070 * features/arc-v2.xml: Likewise
14071 * features/arc/aux-arcompact.xml: New file.
14072 * features/arc/aux-v2.xml: Likewise.
14073 * features/arc/core-arcompact.xml: Likewise.
14074 * features/arc/core-v2.xml: Likewise.
14075 * features/arc/aux-arcompact.c: Generate.
14076 * features/arc/aux-v2.c: Likewise.
14077 * features/arc/core-arcompact.c: Likewise.
14078 * features/arc/core-v2.c: Likewise.
14079 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
14080
14081 2020-03-16 Tom Tromey <tromey@adacore.com>
14082
14083 PR gdb/25663:
14084 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
14085 putting value into bcache.
14086
14087 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14088
14089 PR gdb/21500
14090 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
14091 to...
14092 (amd64_windows_init_abi_common): ... this. Don't set size of
14093 long type.
14094 (amd64_windows_init_abi): New function.
14095 (amd64_cygwin_init_abi): New function.
14096 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
14097 the Cygwin OS ABI.
14098 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
14099 comment.
14100
14101 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14102
14103 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
14104 * windows-tdep.c (CYGWIN_DLL_NAME): New.
14105 (pe_import_directory_entry): New struct type.
14106 (is_linked_with_cygwin_dll): New function.
14107 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
14108 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
14109 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
14110
14111 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14112
14113 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
14114 i386_cygwin_core_osabi_sniffer.
14115
14116 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14117
14118 * i386-cygwin-tdep.c: Rename to...
14119 * i386-windows-tdep.c: ... this.
14120 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
14121 i386-windows-tdep.c.
14122 * configure.tgt: Likewise.
14123
14124 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14125
14126 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
14127 * osabi.c (gdb_osabi_names): Add "Windows".
14128 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
14129 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
14130 (i386_cygwin_core_osabi_sniffer): New function, extracted from
14131 i386_cygwin_osabi_sniffer.
14132 (_initialize_i386_cygwin_tdep): Register OS ABI
14133 GDB_OSABI_WINDOWS for i386.
14134 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
14135 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
14136 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
14137 for x86-64.
14138 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
14139 when the target matches '*-*-mingw*'.
14140
14141 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14142
14143 * defs.h (enum gdb_osabi): Move to...
14144 * osabi.h (enum gdb_osabi): ... here.
14145 * gdbarch.sh: Include osabi.h in gdbarch.h.
14146 * gdbarch.h: Re-generate.
14147
14148 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14149
14150 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
14151 function.
14152 (_initialize_amd64_windows_tdep): Register osabi sniffer.
14153
14154 2020-03-14 Tom Tromey <tom@tromey.com>
14155
14156 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
14157 for C++.
14158 (c_type_print_modifier): Likewise. Add "language" parameter.
14159 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
14160 (c_type_print_base_1): Update.
14161 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
14162 constants.
14163 * type-stack.c (type_stack::insert): Handle tp_atomic and
14164 tp_restrict.
14165 (type_stack::follow_type_instance_flags): Likewise.
14166 (type_stack::follow_types): Likewise. Merge type-following code.
14167 * c-exp.y (RESTRICT, ATOMIC): New tokens.
14168 (space_identifier, cv_with_space_id)
14169 (const_or_volatile_or_space_identifier_noopt)
14170 (const_or_volatile_or_space_identifier): Remove.
14171 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14172 rules.
14173 (ptr_operator, typebase): Update.
14174 (enum token_flag) <FLAG_C>: New constant.
14175 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14176 "_Atomic".
14177 (lex_one_token): Handle FLAG_C.
14178
14179 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14180
14181 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14182 it to the ptrace call.
14183 * m68k-bsd-nat.c (store_registers): Likewise.
14184
14185 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14186
14187 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14188 gdb_byte *.
14189 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14190 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14191 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14192
14193 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14194
14195 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14196 nbsd_nat_target instead of inf_ptrace_target.
14197 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14198 nbsd_nat_target.
14199
14200 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14201
14202 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14203 register_t.
14204
14205 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14206
14207 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14208 it to the ptrace call.
14209 * alpha-bsd-nat.c (store_registers): Likewise.
14210
14211 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14212
14213 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14214 includes.
14215 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14216 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14217 fill_fpregset): Likewise.
14218
14219 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14220
14221 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14222 nbsd_nat_target instead of inf_ptrace_target.
14223 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14224 nbsd_nat_target.
14225
14226 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14227
14228 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14229 register_t.
14230
14231 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14232
14233 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14234 it to the ptrace call.
14235 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14236 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14237 * arm-nbsd-nat.c (store_register): Likewise.
14238 * arm-nbsd-nat.c (store_regs): Likewise.
14239 * arm-nbsd-nat.c (store_fp_register): Likewise.
14240 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14241
14242 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14243
14244 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14245 nbsd_nat_target instead of inf_ptrace_target.
14246 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14247 nbsd_nat_target.
14248
14249 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14250
14251 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14252 it to the ptrace call.
14253 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14254
14255 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14256
14257 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14258 it to the ptrace call.
14259 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14260
14261 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14262
14263 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14264 gdb_byte *.
14265 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14266
14267 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14268
14269 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14270 instead of inf_ptrace_target.
14271 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14272 nbsd_nat_target.
14273
14274 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14275
14276 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14277 register_t.
14278
14279 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14280
14281 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14282 register_t.
14283
14284 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14285
14286 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14287 register_t.
14288
14289 2020-03-13 Tom Tromey <tom@tromey.com>
14290
14291 * value.h (val_print): Don't declare.
14292 * valprint.h (val_print_array_elements)
14293 (val_print_scalar_formatted, generic_val_print): Don't declare.
14294 * valprint.c (generic_val_print_array): Take a struct value.
14295 (generic_val_print_ptr, generic_val_print_memberptr)
14296 (generic_val_print_bool, generic_val_print_int)
14297 (generic_val_print_char, generic_val_print_complex)
14298 (generic_val_print): Remove.
14299 (generic_value_print): Update.
14300 (do_val_print): Remove unused parameters. Don't call
14301 la_val_print.
14302 (val_print): Remove.
14303 (common_val_print): Update. Don't call value_check_printable.
14304 (val_print_scalar_formatted, val_print_array_elements): Remove.
14305 * rust-lang.c (rust_val_print): Remove.
14306 (rust_language_defn): Update.
14307 * p-valprint.c (pascal_val_print): Remove.
14308 (pascal_value_print_inner): Update.
14309 (pascal_object_print_val_fields, pascal_object_print_val):
14310 Remove.
14311 (pascal_object_print_static_field): Update.
14312 * p-lang.h (pascal_val_print): Don't declare.
14313 * p-lang.c (pascal_language_defn): Update.
14314 * opencl-lang.c (opencl_language_defn): Update.
14315 * objc-lang.c (objc_language_defn): Update.
14316 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14317 * m2-lang.h (m2_val_print): Don't declare.
14318 * m2-lang.c (m2_language_defn): Update.
14319 * language.h (struct language_defn) <la_val_print>: Remove.
14320 * language.c (unk_lang_value_print_inner): Rename. Change
14321 argument types.
14322 (unknown_language_defn, auto_language_defn): Update.
14323 * go-valprint.c (go_val_print): Remove.
14324 * go-lang.h (go_val_print): Don't declare.
14325 * go-lang.c (go_language_defn): Update.
14326 * f-valprint.c (f_val_print): Remove.
14327 * f-lang.h (f_value_print): Don't declare.
14328 * f-lang.c (f_language_defn): Update.
14329 * d-valprint.c (d_val_print): Remove.
14330 * d-lang.h (d_value_print): Don't declare.
14331 * d-lang.c (d_language_defn): Update.
14332 * cp-valprint.c (cp_print_value_fields)
14333 (cp_print_value_fields_rtti, cp_print_value): Remove.
14334 (cp_print_static_field): Update.
14335 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14336 (c_val_print_struct, c_val_print_union, c_val_print_int)
14337 (c_val_print_memberptr, c_val_print): Remove.
14338 * c-lang.h (c_val_print_array, cp_print_value_fields)
14339 (cp_print_value_fields_rtti): Don't declare.
14340 * c-lang.c (c_language_defn, cplus_language_defn)
14341 (asm_language_defn, minimal_language_defn): Update.
14342 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14343 (ada_val_print_enum): Take a struct value.
14344 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14345 (ada_val_print): Remove.
14346 (ada_value_print_1): Update.
14347 (printable_val_type): Remove.
14348 * ada-lang.h (ada_val_print): Don't declare.
14349 * ada-lang.c (ada_language_defn): Update.
14350
14351 2020-03-13 Tom Tromey <tom@tromey.com>
14352
14353 * valprint.c (do_val_print): Update.
14354 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14355 a struct value.
14356 (value_to_value_object_no_release): Declare.
14357 * python/py-value.c (value_to_value_object_no_release): New
14358 function.
14359 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14360 struct value.
14361 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14362 function.
14363 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14364 a struct value.
14365 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14366 Declare.
14367 (gdbscm_apply_val_pretty_printer): Take a struct value.
14368 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14369 value.
14370 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14371 value.
14372 * extension-priv.h (struct extension_language_ops)
14373 <apply_val_pretty_printer>: Take a struct value.
14374 * cp-valprint.c (cp_print_value): Create a struct value.
14375 (cp_print_value): Update.
14376
14377 2020-03-13 Tom Tromey <tom@tromey.com>
14378
14379 * ada-valprint.c (print_field_values): Call common_val_print.
14380
14381 2020-03-13 Tom Tromey <tom@tromey.com>
14382
14383 * ada-valprint.c (val_print_packed_array_elements): Remove
14384 bitoffset and val parameters. Call common_val_print.
14385 (ada_val_print_string): Remove offset, address, and original_value
14386 parameters.
14387 (ada_val_print_array): Update.
14388 (ada_value_print_array): New function.
14389 (ada_value_print_1): Call it.
14390
14391 2020-03-13 Tom Tromey <tom@tromey.com>
14392
14393 * ada-valprint.c (ada_value_print): Use common_val_print.
14394
14395 2020-03-13 Tom Tromey <tom@tromey.com>
14396
14397 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14398
14399 2020-03-13 Tom Tromey <tom@tromey.com>
14400
14401 * ada-valprint.c (ada_value_print_num): New function.
14402 (ada_value_print_1): Use it.
14403
14404 2020-03-13 Tom Tromey <tom@tromey.com>
14405
14406 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14407
14408 2020-03-13 Tom Tromey <tom@tromey.com>
14409
14410 * ada-valprint.c (ada_value_print_ptr): New function.
14411 (ada_value_print_1): Use it.
14412
14413 2020-03-13 Tom Tromey <tom@tromey.com>
14414
14415 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14416 call common_val_print.
14417 (ada_val_print_1): Update.
14418 (ada_value_print_1): New function.
14419 (ada_value_print_inner): Rewrite.
14420
14421 2020-03-13 Tom Tromey <tom@tromey.com>
14422
14423 * cp-valprint.c (cp_print_value_fields): Update.
14424 (cp_print_value): New function.
14425
14426 2020-03-13 Tom Tromey <tom@tromey.com>
14427
14428 * m2-valprint.c (m2_value_print_inner): Use
14429 cp_print_value_fields.
14430 * cp-valprint.c (cp_print_value_fields): New function.
14431 * c-valprint.c (c_value_print_struct): New function.
14432 (c_value_print_inner): Use c_value_print_struct.
14433 * c-lang.h (cp_print_value_fields): Declare.
14434
14435 2020-03-13 Tom Tromey <tom@tromey.com>
14436
14437 * c-valprint.c (c_value_print_array): New function.
14438 (c_value_print_inner): Use it.
14439
14440 2020-03-13 Tom Tromey <tom@tromey.com>
14441
14442 * c-valprint.c (c_value_print_memberptr): New function.
14443 (c_value_print_inner): Use it.
14444
14445 2020-03-13 Tom Tromey <tom@tromey.com>
14446
14447 * c-valprint.c (c_value_print_int): New function.
14448 (c_value_print_inner): Use it.
14449
14450 2020-03-13 Tom Tromey <tom@tromey.com>
14451
14452 * c-valprint.c (c_value_print_ptr): New function.
14453 (c_value_print_inner): Use it.
14454
14455 2020-03-13 Tom Tromey <tom@tromey.com>
14456
14457 * c-valprint.c (c_value_print_inner): Rewrite.
14458
14459 2020-03-13 Tom Tromey <tom@tromey.com>
14460
14461 * valprint.c (generic_value_print_complex): New function.
14462 (generic_value_print): Use it.
14463
14464 2020-03-13 Tom Tromey <tom@tromey.com>
14465
14466 * valprint.c (generic_val_print_float): Don't call
14467 val_print_scalar_formatted.
14468 (generic_val_print, generic_value_print): Update.
14469
14470 2020-03-13 Tom Tromey <tom@tromey.com>
14471
14472 * valprint.c (generic_value_print_char): New function
14473 (generic_value_print): Use it.
14474
14475 2020-03-13 Tom Tromey <tom@tromey.com>
14476
14477 * valprint.c (generic_value_print_int): New function.
14478 (generic_value_print): Use it.
14479
14480 2020-03-13 Tom Tromey <tom@tromey.com>
14481
14482 * valprint.c (generic_value_print_bool): New function.
14483 (generic_value_print): Use it.
14484
14485 2020-03-13 Tom Tromey <tom@tromey.com>
14486
14487 * valprint.c (generic_val_print_func): Simplify.
14488 (generic_val_print, generic_value_print): Update.
14489
14490 2020-03-13 Tom Tromey <tom@tromey.com>
14491
14492 * valprint.c (generic_val_print_flags): Remove.
14493 (generic_val_print, generic_value_print): Update.
14494 (val_print_type_code_flags): Add original_value parameter.
14495
14496 2020-03-13 Tom Tromey <tom@tromey.com>
14497
14498 * valprint.c (generic_val_print): Update.
14499 (generic_value_print): Update.
14500 * valprint.c (generic_val_print_enum): Don't call
14501 val_print_scalar_formatted.
14502
14503 2020-03-13 Tom Tromey <tom@tromey.com>
14504
14505 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14506 * valprint.c (generic_value_print_ptr): New function.
14507
14508 2020-03-13 Tom Tromey <tom@tromey.com>
14509
14510 * valprint.c (generic_value_print): Rewrite.
14511
14512 2020-03-13 Tom Tromey <tom@tromey.com>
14513
14514 * p-valprint.c (pascal_object_print_value_fields)
14515 (pascal_object_print_value): New functions.
14516
14517 2020-03-13 Tom Tromey <tom@tromey.com>
14518
14519 * p-valprint.c (pascal_value_print_inner): Rewrite.
14520
14521 2020-03-13 Tom Tromey <tom@tromey.com>
14522
14523 * f-valprint.c (f_value_print_innner): Rewrite.
14524
14525 2020-03-13 Tom Tromey <tom@tromey.com>
14526
14527 * m2-valprint.c (m2_print_unbounded_array): New overload.
14528 (m2_print_unbounded_array): Update.
14529 (m2_print_array_contents): Take a struct value.
14530 (m2_value_print_inner): Rewrite.
14531
14532 2020-03-13 Tom Tromey <tom@tromey.com>
14533
14534 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14535 (d_value_print_inner): New function.
14536 * d-lang.h (d_value_print_inner): Declare.
14537 * d-lang.c (d_language_defn): Use d_value_print_inner.
14538
14539 2020-03-13 Tom Tromey <tom@tromey.com>
14540
14541 * go-valprint.c (go_value_print_inner): New function.
14542 * go-lang.h (go_value_print_inner): Declare.
14543 * go-lang.c (go_language_defn): Use go_value_print_inner.
14544
14545 2020-03-13 Tom Tromey <tom@tromey.com>
14546
14547 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14548 API.
14549 (rust_val_print): Rewrite.
14550 (rust_value_print_inner): New function, from rust_val_print.
14551 (rust_language_defn): Use rust_value_print_inner.
14552
14553 2020-03-13 Tom Tromey <tom@tromey.com>
14554
14555 * ada-valprint.c (ada_value_print_inner): New function.
14556 * ada-lang.h (ada_value_print_inner): Declare.
14557 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14558
14559 2020-03-13 Tom Tromey <tom@tromey.com>
14560
14561 * f-valprint.c (f_value_print_innner): New function.
14562 * f-lang.h (f_value_print_innner): Declare.
14563 * f-lang.c (f_language_defn): Use f_value_print_innner.
14564
14565 2020-03-13 Tom Tromey <tom@tromey.com>
14566
14567 * p-valprint.c (pascal_value_print_inner): New function.
14568 * p-lang.h (pascal_value_print_inner): Declare.
14569 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14570
14571 2020-03-13 Tom Tromey <tom@tromey.com>
14572
14573 * m2-valprint.c (m2_value_print_inner): New function.
14574 * m2-lang.h (m2_value_print_inner): Declare.
14575 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14576
14577 2020-03-13 Tom Tromey <tom@tromey.com>
14578
14579 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14580 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14581 * c-valprint.c (c_value_print_inner): New function.
14582 * c-lang.h (c_value_print_inner): Declare.
14583 * c-lang.c (c_language_defn, cplus_language_defn)
14584 (asm_language_defn, minimal_language_defn): Use
14585 c_value_print_inner.
14586
14587 2020-03-13 Tom Tromey <tom@tromey.com>
14588
14589 * p-valprint.c (pascal_object_print_value_fields): Now static.
14590 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14591
14592 2020-03-13 Tom Tromey <tom@tromey.com>
14593
14594 * c-valprint.c (c_val_print_array): Simplify.
14595
14596 2020-03-13 Tom Tromey <tom@tromey.com>
14597
14598 * valprint.c (value_print_array_elements): New function.
14599 * valprint.h (value_print_array_elements): Declare.
14600
14601 2020-03-13 Tom Tromey <tom@tromey.com>
14602
14603 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14604 * mips-tdep.c (mips_print_register): Use
14605 value_print_scalar_formatted.
14606
14607 2020-03-13 Tom Tromey <tom@tromey.com>
14608
14609 * valprint.h (value_print_scalar_formatted): Declare.
14610 * valprint.c (value_print_scalar_formatted): New function.
14611
14612 2020-03-13 Tom Tromey <tom@tromey.com>
14613
14614 * valprint.h (generic_value_print): Declare.
14615 * valprint.c (generic_value_print): New function.
14616
14617 2020-03-13 Tom Tromey <tom@tromey.com>
14618
14619 * valprint.c (do_val_print): Call la_value_print_inner, if
14620 available.
14621 * rust-lang.c (rust_language_defn): Update.
14622 * p-lang.c (pascal_language_defn): Update.
14623 * opencl-lang.c (opencl_language_defn): Update.
14624 * objc-lang.c (objc_language_defn): Update.
14625 * m2-lang.c (m2_language_defn): Update.
14626 * language.h (struct language_defn) <la_value_print_inner>: New
14627 member.
14628 * language.c (unknown_language_defn, auto_language_defn): Update.
14629 * go-lang.c (go_language_defn): Update.
14630 * f-lang.c (f_language_defn): Update.
14631 * d-lang.c (d_language_defn): Update.
14632 * c-lang.c (c_language_defn, cplus_language_defn)
14633 (asm_language_defn, minimal_language_defn): Update.
14634 * ada-lang.c (ada_language_defn): Update.
14635
14636 2020-03-13 Tom Tromey <tom@tromey.com>
14637
14638 * c-valprint.c (c_value_print): Use common_val_print.
14639
14640 2020-03-13 Tom Tromey <tom@tromey.com>
14641
14642 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14643
14644 2020-03-13 Tom Tromey <tom@tromey.com>
14645
14646 * f-valprint.c (f77_print_array_1, f_val_print): Use
14647 common_val_print.
14648
14649 2020-03-13 Tom Tromey <tom@tromey.com>
14650
14651 * riscv-tdep.c (riscv_print_one_register_info): Use
14652 common_val_print.
14653
14654 2020-03-13 Tom Tromey <tom@tromey.com>
14655
14656 * mi/mi-main.c (output_register): Use common_val_print.
14657
14658 2020-03-13 Tom Tromey <tom@tromey.com>
14659
14660 * infcmd.c (default_print_one_register_info): Use
14661 common_val_print.
14662
14663 2020-03-13 Tom Tromey <tom@tromey.com>
14664
14665 * valprint.h (common_val_print_checked): Declare.
14666 * valprint.c (common_val_print_checked): New function.
14667 * stack.c (print_frame_arg): Use common_val_print_checked.
14668
14669 2020-03-13 Tom Tromey <tom@tromey.com>
14670
14671 * valprint.c (do_val_print): New function, from val_print.
14672 (val_print): Use do_val_print.
14673 (common_val_print): Use do_val_print.
14674
14675 2020-03-13 Tom Tromey <tom@tromey.com>
14676
14677 * valprint.c (value_print): Use scoped_value_mark.
14678
14679 2020-03-13 Tom de Vries <tdevries@suse.de>
14680
14681 PR symtab/25646
14682 * psymtab.c (partial_symtab::partial_symtab): Don't set
14683 globals_offset and statics_offset. Push element onto
14684 current_global_psymbols and current_static_psymbols stacks.
14685 (concat): New function.
14686 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14687 element from current_global_psymbols and current_static_psymbols
14688 stacks. Concat popped elements to global_psymbols and
14689 static_symbols.
14690 (add_psymbol_to_list): Use current_global_psymbols and
14691 current_static_psymbols stacks.
14692 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14693 current_static_psymbols fields.
14694
14695 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14696
14697 * corelow.c (sniff_core_bfd): Remove.
14698 (class core_target) <m_core_vec>: Remove.
14699 (core_target::core_target): Update.
14700 (core_file_fns): Remove.
14701 (deprecated_add_core_fns): Remove.
14702 (default_core_sniffer): Remove.
14703 (sniff_core_bfd): Remove.
14704 (default_check_format): Remove.
14705 (gdb_check_format): Remove.
14706 (core_target_open): Update.
14707 (core_target::get_core_register_section): Update.
14708 (get_core_registers_cb): Update.
14709 (core_target::fetch_registers): Update.
14710 * gdbcore.h (struct core_fns): Remove.
14711 (deprecated_add_core_fns): Remove.
14712 (default_core_sniffer): Remove.
14713 (default_check_format): Remove.
14714
14715 2020-03-12 Tom Tromey <tom@tromey.com>
14716
14717 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14718 CORE_ADDR.
14719 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14720
14721 2020-03-12 Tom Tromey <tom@tromey.com>
14722
14723 * remote.c (remote_target::download_tracepoint)
14724 (remote_target::enable_tracepoint)
14725 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14726 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14727 sprintf_vma.
14728
14729 2020-03-12 Tom Tromey <tom@tromey.com>
14730
14731 * symfile-mem.c: Update CORE_ADDR size assert.
14732
14733 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14734
14735 * selftest.m4: Move to gdbsupport/.
14736 * acinclude.m4: Update path to selftest.m4.
14737
14738 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14739
14740 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14741 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14742 gdbarch-selfselftests.c and selftest-arch.c.
14743 (SUBDIR_UNITTESTS_OBS): Rename to...
14744 (SELFTESTS_OBS): ... this.
14745 (COMMON_SFILES): Remove disasm-selftests.c and
14746 gdbarch-selftests.c.
14747 * configure.ac: Don't add selftest-arch.{c,o} to
14748 CONFIG_{SRCS,OBS}.
14749 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14750 preprocessor conditions.
14751
14752 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14753
14754 * configure.ac: Don't source bfd/development.sh.
14755 * selftest.m4: Modify comment.
14756 * configure: Re-generate.
14757
14758 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14759
14760 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14761 not "true" or "false".
14762 * configure: Re-generate.
14763
14764 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14765
14766 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14767 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14768 renamed to arm_nbsd_supply_gregset.
14769 (fetch_register): Update to call arm_nbsd_supply_gregset.
14770 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14771 (arm_netbsd_nat_target::fetch_registers): Update.
14772 (fetch_elfcore_registers): Removed.
14773 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14774 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14775 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14776 not require NetBSD system headers.
14777 (arm_nbsd_regset): New struct.
14778 (arm_nbsd_iterate_over_regset_sections): New function.
14779 (arm_netbsd_init_abi_common): Updated to call
14780 set_gdbarch_iterate_over_regset_sections.
14781 * arm-nbsd-tdep.h: New file.
14782
14783 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14784
14785 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14786 recursion.
14787
14788 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14789
14790 * configure: Re-generate.
14791
14792 2020-03-11 Tom Tromey <tromey@adacore.com>
14793
14794 * ada-typeprint.c (print_choices): Fix comment.
14795
14796 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14797
14798 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14799 previous item in the list, when the list has no items.
14800
14801 2020-03-11 Tom de Vries <tdevries@suse.de>
14802
14803 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14804 PROP_LOCLIST handling code.
14805
14806 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14807
14808 * buildsym-legacy.c (record_line): Pass extra parameter to
14809 record_line.
14810 * buildsym.c (buildsym_compunit::record_line): Take an extra
14811 parameter, reduce duplication in the line table, and record the
14812 is_stmt flag in the line table.
14813 * buildsym.h (buildsym_compunit::record_line): Add extra
14814 parameter.
14815 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14816 non-statement lines.
14817 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14818 this to the symtab builder.
14819 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14820 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14821 through to dwarf_record_line_1.
14822 * infrun.c (process_event_stop_test): When stepping, don't stop at
14823 a non-statement instruction, and only refresh the step info when
14824 we land in the middle of a line's range. Also add an extra
14825 comment.
14826 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14827 field.
14828 * record-btrace.c (btrace_find_line_range): Only record lines
14829 marked as is-statement.
14830 * stack.c (frame_show_address): Show the frame address if we are
14831 in a non-statement sal.
14832 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14833 (maintenance_print_one_line_table): Print a header for the is_stmt
14834 column, and include is_stmt information in the output.
14835 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14836 preference to non-statements.
14837 (find_pcs_for_symtab_line): Prefer is-statement entries.
14838 (find_line_common): Likewise.
14839 * symtab.h (struct linetable_entry): Add is_stmt field.
14840 (struct symtab_and_line): Likewise.
14841 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14842 arranging the line table.
14843
14844 2020-03-07 Tom de Vries <tdevries@suse.de>
14845
14846 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14847 DIE.
14848
14849 2020-03-07 Tom Tromey <tom@tromey.com>
14850
14851 * valops.c (value_literal_complex): Remove obsolete comment.
14852 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14853 comment.
14854
14855 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14856
14857 * infrun.h: Forward-declare thread_info.
14858 (set_step_info): Add thread_info parameter, add doc.
14859 * infrun.c (set_step_info): Add thread_info parameter, move doc
14860 to header.
14861 * infrun.c (process_event_stop_test): Pass thread to
14862 set_step_info call.
14863 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14864 set_step_info.
14865 (prepare_one_step): Add thread_info parameter, pass it to
14866 set_step_frame and prepare_one_step (recursive) call.
14867 (step_1): Pass thread to prepare_one_step call.
14868 (step_command_fsm::should_stop): Pass thread to
14869 prepare_one_step.
14870 (until_next_fsm): Pass thread to set_step_frame call.
14871 (finish_command): Pass thread to set_step_info call.
14872
14873 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14874
14875 * windows-tdep.c (windows_solib_create_inferior_hook):
14876 Check if inferior is running.
14877
14878 2020-03-06 Tom de Vries <tdevries@suse.de>
14879
14880 * NEWS: Fix "the the".
14881 * ctfread.c: Same.
14882
14883 2020-03-06 Tom de Vries <tdevries@suse.de>
14884
14885 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14886
14887 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14888
14889 * .dir-locals.el: Add a comment referencing the other copies of
14890 this file.
14891
14892 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14893
14894 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14895 psargs.
14896
14897 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14898
14899 * .gitattributes: New file.
14900
14901 2020-03-04 Tom Tromey <tom@tromey.com>
14902
14903 * symmisc.c (print_symbol_bcache_statistics)
14904 (print_objfile_statistics): Update.
14905 * symfile.c (allocate_symtab): Use intern.
14906 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14907 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14908 macro_cache>: Remove.
14909 <string_cache>: New member.
14910 (struct objfile) <intern>: New methods.
14911 * elfread.c (elf_symtab_read): Use intern.
14912 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14913 (dwarf2_compute_name, dwarf2_physname)
14914 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14915 names.
14916 (guess_partial_die_structure_name): Update.
14917 (partial_die_info::fixup): Intern name.
14918 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14919 name.
14920 (dwarf2_name): Intern name. Update.
14921 * buildsym.c (buildsym_compunit::get_macro_table): Use
14922 string_cache.
14923
14924 2020-03-04 Tom Tromey <tom@tromey.com>
14925
14926 * jit.c (bfd_open_from_target_memory): Make "target" const.
14927 * corefile.c (gnutarget): Now const.
14928 * gdbcore.h (gnutarget): Now const.
14929
14930 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14931
14932 * NEWS: Mention support for WOW64 processes.
14933 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14934 (amd64_windows_segment_register_p): Remove static.
14935 (_initialize_amd64_windows_nat): Update.
14936 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14937 * i386-windows-nat.c (context_offset): Update.
14938 (i386_mappings): Rename and remove static.
14939 (i386_windows_segment_register_p): Remove static.
14940 (_initialize_i386_windows_nat): Update.
14941 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14942 (STATUS_WX86_SINGLE_STEP): New macro.
14943 (EnumProcessModulesEx): New macro.
14944 (Wow64SuspendThread): New macro.
14945 (Wow64GetThreadContext): New macro.
14946 (Wow64SetThreadContext): New macro.
14947 (Wow64GetThreadSelectorEntry): New macro.
14948 (windows_set_context_register_offsets): Add static.
14949 (windows_set_segment_register_p): Likewise.
14950 (windows_add_thread): Adapt for WOW64 processes.
14951 (windows_fetch_one_register): Likewise.
14952 (windows_nat_target::fetch_registers): Likewise.
14953 (windows_store_one_register): Likewise.
14954 (display_selector): Likewise.
14955 (display_selectors): Likewise.
14956 (handle_exception): Likewise.
14957 (windows_continue): Likewise.
14958 (windows_nat_target::resume): Likewise.
14959 (windows_add_all_dlls): Likewise.
14960 (do_initial_windows_stuff): Likewise.
14961 (windows_nat_target::attach): Likewise.
14962 (windows_get_exec_module_filename): Likewise.
14963 (windows_nat_target::create_inferior): Likewise.
14964 (windows_xfer_siginfo): Likewise.
14965 (_initialize_loadable): Initialize Wow64SuspendThread,
14966 Wow64GetThreadContext, Wow64SetThreadContext,
14967 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14968 * windows-nat.h (windows_set_context_register_offsets):
14969 Remove declaration.
14970 (windows_set_segment_register_p): Likewise.
14971 (i386_windows_segment_register_p): Add declaration.
14972 (amd64_windows_segment_register_p): Likewise.
14973
14974 2020-03-04 Luis Machado <luis.machado@linaro.org>
14975
14976 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14977 in "info registers" for AArch64/ARM.
14978
14979 The change caused "info registers" to not print GPR's.
14980
14981 gdb/ChangeLog:
14982
14983 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14984
14985 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14986 when reg->group is empty and reggroup is not.
14987
14988 2020-03-03 Tom Tromey <tromey@adacore.com>
14989
14990 * dwarf2/frame.c (struct dwarf2_frame_cache)
14991 <checked_tailcall_bottom, entry_cfa_sp_offset,
14992 entry_cfa_sp_offset_p>: Remove members.
14993 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14994 (dwarf2_frame_prev_register): Don't call
14995 dwarf2_tailcall_sniffer_first.
14996 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14997 * frame-unwind.c (add_unwinder): New fuction.
14998 (frame_unwind_init): Use it. Add tailcall unwinder.
14999
15000 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
15001 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15002
15003 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
15004 value should be printed as true.
15005
15006 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
15007
15008 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
15009 (windows_init_abi): Set and use windows_so_ops.
15010
15011 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
15012
15013 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
15014 when verifying if dealing with a convenience variable.
15015
15016 2020-03-03 Luis Machado <luis.machado@linaro.org>
15017
15018 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
15019
15020 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
15021
15022 * infrun.c (gdbarch_supports_displaced_stepping): New.
15023 (use_displaced_stepping): Break up conditions in smaller pieces.
15024 Use gdbarch_supports_displaced_stepping.
15025 (displaced_step_prepare_throw): Use
15026 gdbarch_supports_displaced_stepping.
15027
15028 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
15029
15030 * NEWS: Mention new behaviour of the history filename.
15031 * top.c (write_history_p): Add comment.
15032 (show_write_history_p): Add header comment, give a different
15033 message when history writing is on, but the history filename is
15034 empty.
15035 (history_filename): Add comment.
15036 (history_filename_empty): New function.
15037 (show_history_filename): Add header comment, give a different
15038 message when the filename is empty.
15039 (init_history): Compare history_filename against nullptr, and only
15040 read history if the filename is not empty.
15041 (set_history_filename): Add header comment, and only make
15042 non-empty filenames absolute.
15043 (init_main): Make the filename argument to 'set history filename'
15044 optional.
15045
15046 2020-03-02 Christian Biesinger <cbiesinger@google.com>
15047
15048 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
15049 (arm_supply_vfpregset): ...this, and update to use VFP registers.
15050 (fetch_fp_register): Update.
15051 (fetch_fp_regs): Update.
15052 (store_fp_register): Update.
15053 (store_fp_regs): Update.
15054 (arm_netbsd_nat_target::read_description): New function.
15055 (fetch_elfcore_registers): Update.
15056
15057 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
15058
15059 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
15060 general_thread if the stop reply is missing a thread-id.
15061 (remote_target::process_stop_reply): Use the first non-exited
15062 thread if the target didn't pass a thread-id.
15063 * infrun.c (do_target_wait): Move call to
15064 switch_to_inferior_no_thread to ....
15065 (do_target_wait_1): ... here.
15066
15067 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
15068
15069 * debuginfod-support.c: Include defs.h first.
15070
15071 2020-02-28 Tom de Vries <tdevries@suse.de>
15072
15073 * symfile.c (set_initial_language): Use default language for lookup.
15074
15075 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
15076
15077 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
15078 reader variable, pass `this` to read_cutu_die_from_dwo.
15079
15080 2020-02-27 Aaron Merey <amerey@redhat.com>
15081
15082 * source.c (open_source_file): Check for nullptr when computing
15083 srcpath.
15084
15085 2020-02-27 Tom Tromey <tromey@adacore.com>
15086
15087 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
15088 member.
15089 (dwarf2_add_field): Don't update nfields.
15090 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
15091
15092 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
15093
15094 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
15095 abs.
15096
15097 2020-02-26 Tom Tromey <tom@tromey.com>
15098
15099 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
15100 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
15101 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
15102 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
15103 per_cu_data.
15104
15105 2020-02-26 Tom Tromey <tom@tromey.com>
15106
15107 * dwarf2/index-write.c (psym_index_map): Change type.
15108 (add_address_entry_worker, write_one_signatured_type)
15109 (recursively_count_psymbols, recursively_write_psymbols)
15110 (class debug_names, psyms_seen_size, write_gdbindex)
15111 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
15112
15113 2020-02-26 Aaron Merey <amerey@redhat.com>
15114
15115 * Makefile.in: Handle optional debuginfod support.
15116 * NEWS: Update.
15117 * README: Add --with-debuginfod summary.
15118 * config.in: Regenerate.
15119 * configure: Regenerate.
15120 * configure.ac: Handle optional debuginfod support.
15121 * debuginfod-support.c: debuginfod helper functions.
15122 * debuginfod-support.h: Ditto.
15123 * doc/gdb.texinfo: Add --with-debuginfod to configure options
15124 summary.
15125 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
15126 when a dwz file cannot be found.
15127 * elfread.c (elf_symfile_read): Query debuginfod servers when a
15128 debuginfo file cannot be found.
15129 * source.c (open_source_file): Query debuginfod servers when a
15130 source file cannot be found.
15131 * top.c (print_gdb_configuration): Include
15132 --{with,without}-debuginfod in the output.
15133
15134 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
15135
15136 * thread.c (thr_try_catch_cmd): Print thread name.
15137
15138 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
15139
15140 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
15141 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15142 dwarf2_fetch_die_type_sect_off): Move to...
15143 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
15144 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15145 dwarf2_fetch_die_type_sect_off): ... here.
15146 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
15147 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15148 dwarf2_fetch_die_type_sect_off): Move doc to header file.
15149
15150 2020-02-26 Tom de Vries <tdevries@suse.de>
15151
15152 PR gdb/25603
15153 * symfile.c (set_initial_language): Exit-early if
15154 language_mode == language_mode_manual.
15155
15156 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15157
15158 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
15159 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
15160 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
15161
15162 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
15163
15164 * gdbtypes.c (create_array_type_with_stride): Handle negative
15165 array strides.
15166 * valarith.c (value_subscripted_rvalue): Likewise.
15167
15168 2020-02-25 Luis Machado <luis.machado@linaro.org>
15169
15170 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15171
15172 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15173
15174 * loc.h (dwarf2_get_die_type): Move to...
15175 * read.h (dwarf2_get_die_type): ... here.
15176 * read.c (dwarf2_get_die_type): Move doc to header.
15177
15178 2020-02-25 Joel Brobecker <brobecker@adacore.com>
15179
15180 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15181 'gnulib/Makefile.in' to the list.
15182
15183 2020-02-24 Tom Tromey <tom@tromey.com>
15184
15185 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15186 Remove.
15187 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15188 XOBNEWVEC.
15189
15190 2020-02-24 Tom Tromey <tom@tromey.com>
15191
15192 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15193 New method.
15194 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15195 (dw2_do_instantiate_symtab, dw2_get_file_names)
15196 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15197
15198 2020-02-24 Tom Tromey <tom@tromey.com>
15199
15200 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15201 make_scoped_restore.
15202 (dwarf2_psymtab::read_symtab): Don't clear
15203 reading_partial_symbols.
15204
15205 2020-02-24 Tom de Vries <tdevries@suse.de>
15206
15207 PR gdb/25592
15208 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15209
15210 2020-02-24 Tom de Vries <tdevries@suse.de>
15211
15212 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15213 commands layout next/prev/regs.
15214
15215 2020-02-22 Tom Tromey <tom@tromey.com>
15216
15217 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15218 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15219
15220 2020-02-22 Tom Tromey <tom@tromey.com>
15221
15222 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15223
15224 2020-02-22 Tom Tromey <tom@tromey.com>
15225
15226 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15227 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15228 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15229 * tui/tui.c (_initialize_tui): Add usage text.
15230
15231 2020-02-22 Tom Tromey <tom@tromey.com>
15232
15233 * tui/tui-win.c (tui_set_focus_command)
15234 (tui_set_win_height_command): Use error_no_arg.
15235 (_initialize_tui_win): Update help text.
15236 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15237
15238 2020-02-22 Tom Tromey <tom@tromey.com>
15239
15240 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15241 * tui/tui-disasm.h (struct tui_disasm_window)
15242 <display_start_addr>: Declare.
15243 * tui/tui-source.h (struct tui_source_window)
15244 <display_start_addr>: Declare.
15245 * tui/tui-winsource.h (struct tui_source_window_base)
15246 <show_source_line, display_start_addr>: New methods.
15247 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15248 Rename and move to protected section.
15249 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15250 (tui_source_window_base::do_erase_source_content): Update.
15251 (tui_source_window_base::show_source_line): Now a method.
15252 (tui_source_window_base::show_source_content)
15253 (tui_source_window_base::tui_source_window_base)
15254 (tui_source_window_base::rerender)
15255 (tui_source_window_base::refill)
15256 (tui_source_window_base::do_scroll_horizontal)
15257 (tui_source_window_base::set_is_exec_point_at)
15258 (tui_source_window_base::update_breakpoint_info)
15259 (tui_source_window_base::update_exec_info): Update.
15260 * tui/tui-source.c (tui_source_window::set_contents)
15261 (tui_source_window::showing_source_p)
15262 (tui_source_window::do_scroll_vertical)
15263 (tui_source_window::location_matches_p)
15264 (tui_source_window::line_is_displayed): Update.
15265 (tui_source_window::display_start_addr): New method.
15266 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15267 (tui_disasm_window::do_scroll_vertical)
15268 (tui_disasm_window::location_matches_p): Update.
15269 (tui_disasm_window::display_start_addr): New method.
15270
15271 2020-02-22 Tom Tromey <tom@tromey.com>
15272
15273 * NEWS: Add entry for gdb.register_window_type.
15274 * tui/tui-layout.h (window_factory): New typedef.
15275 (tui_register_window): Declare.
15276 * tui/tui-layout.c (saved_tui_windows): New global.
15277 (tui_apply_current_layout): Use it.
15278 (tui_register_window): New function.
15279 * python/python.c (do_start_initialization): Call
15280 gdbpy_initialize_tui.
15281 (python_GdbMethods): Add "register_window_type" function.
15282 * python/python-internal.h (gdbpy_register_tui_window)
15283 (gdbpy_initialize_tui): Declare.
15284 * python/py-tui.c: New file.
15285 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15286
15287 2020-02-22 Tom Tromey <tom@tromey.com>
15288
15289 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15290
15291 2020-02-22 Tom Tromey <tom@tromey.com>
15292
15293 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15294 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15295 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15296 (tui_set_win_focus_to): Move from tui-win.c.
15297
15298 2020-02-22 Tom Tromey <tom@tromey.com>
15299
15300 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15301 functions.
15302 (known_window_types): New global.
15303 (tui_get_window_by_name): Reimplement.
15304 (initialize_known_windows): New function.
15305 (validate_window_name): Rewrite.
15306 (_initialize_tui_layout): Call initialize_known_windows.
15307
15308 2020-02-22 Tom Tromey <tom@tromey.com>
15309
15310 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15311 Remove constants.
15312 * tui/tui-winsource.h (struct tui_source_window_base)
15313 <tui_source_window_base>: Remove parameter.
15314 * tui/tui-winsource.c
15315 (tui_source_window_base::tui_source_window_base): Remove
15316 parameter.
15317 (tui_source_window_base::refill): Update.
15318 * tui/tui-stack.h (struct tui_locator_window)
15319 <tui_locator_window>: Update.
15320 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15321 Default the constructor.
15322 * tui/tui-regs.h (struct tui_data_item_window)
15323 <tui_data_item_window>: Default the constructor.
15324 (struct tui_data_window) <tui_data_window>: Likewise.
15325 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15326 Default the constructor.
15327 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15328 Default the constructor.
15329 <type>: Remove.
15330 (struct tui_win_info) <tui_win_info>: Default the constructor.
15331 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15332 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15333 Default the constructor.
15334
15335 2020-02-22 Tom Tromey <tom@tromey.com>
15336
15337 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15338 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15339 * tui/tui-win.c (tui_resize_all): Don't call
15340 tui_delete_invisible_windows.
15341 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15342 done.
15343 (tui_set_layout): Update.
15344 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15345 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15346 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15347
15348 2020-02-22 Tom Tromey <tom@tromey.com>
15349
15350 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15351 correctly.
15352
15353 2020-02-22 Tom Tromey <tom@tromey.com>
15354
15355 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15356
15357 2020-02-22 Tom Tromey <tom@tromey.com>
15358
15359 * tui/tui-winsource.h (struct tui_source_window_iterator)
15360 <inner_iterator>: New etytypedef.
15361 <tui_source_window_iterator>: Take "end" parameter.
15362 <tui_source_window_iterator>: Take iterator.
15363 <operator*, advance>: Update.
15364 <m_iter>: Change type.
15365 <m_end>: New field.
15366 (struct tui_source_windows) <begin, end>: Update.
15367 * tui/tui-layout.c (tui_windows): New global.
15368 (tui_apply_current_layout): Clear tui_windows.
15369 (tui_layout_window::apply): Update tui_windows.
15370 * tui/tui-data.h (tui_windows): Declare.
15371 (all_tui_windows): Now inline function.
15372 (class tui_window_iterator, struct all_tui_windows): Remove.
15373
15374 2020-02-22 Tom Tromey <tom@tromey.com>
15375
15376 PR tui/17850:
15377 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15378 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15379 "height" argument.
15380 (class tui_layout_window) <get_sizes>: Likewise.
15381 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15382 argument.
15383 <get_sizes>: Add "height" argument.
15384 <m_vertical>: New field.
15385 * tui/tui-layout.c (tui_layout_split::clone): Update.
15386 (tui_layout_split::get_sizes): Add "height" argument.
15387 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15388 (tui_new_layout_command): Parse "-horizontal".
15389 (_initialize_tui_layout): Update help string.
15390 (tui_layout_split::specification): Add "-horizontal" when needed.
15391 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15392 argument.
15393 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15394 New methods.
15395
15396 2020-02-22 Tom Tromey <tom@tromey.com>
15397
15398 * tui/tui-layout.h (enum tui_adjust_result): New.
15399 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15400 (class tui_layout_window) <adjust_size>: Return
15401 tui_adjust_result. Rewrite.
15402 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15403 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15404
15405 2020-02-22 Tom Tromey <tom@tromey.com>
15406
15407 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15408 parameter and return types.
15409 (class tui_layout_base) <specification>: Add "depth".
15410 (class tui_layout_window) <specification>: Add "depth".
15411 (class tui_layout_split) <specification>: Add "depth".
15412 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15413 and return types.
15414 (tui_new_layout_command): Parse sub-layouts.
15415 (_initialize_tui_layout): Update help string.
15416 (tui_layout_window::specification): Add "depth".
15417 (add_layout_command): Update.
15418
15419 2020-02-22 Tom Tromey <tom@tromey.com>
15420
15421 * NEWS: Add "tui new-layout" item.
15422 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15423 Add new-layout command to help text.
15424 (validate_window_name): New function.
15425 (tui_new_layout_command): New function.
15426 (_initialize_tui_layout): Register "new-layout".
15427 (tui_layout_window::specification): New method.
15428 (tui_layout_window::specification): New method.
15429 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15430 method.
15431 (class tui_layout_window) <specification>: New method.
15432 (class tui_layout_split) <specification>: New method.
15433
15434 2020-02-22 Tom Tromey <tom@tromey.com>
15435
15436 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15437 * tui/tui-win.c (window_name_completer): Update comment.
15438 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15439 Declare method.
15440 (class tui_layout_window) <replace_window>: Likewise.
15441 (class tui_layout_split) <replace_window>: Likewise.
15442 (tui_set_layout): Don't declare.
15443 (tui_set_initial_layout): Declare function.
15444 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15445 (asm_regs_layout): New globals.
15446 (tui_current_layout, show_layout): Remove.
15447 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15448 (find_layout, tui_apply_layout): New function.
15449 (layout_completer): Remove.
15450 (tui_next_layout): Reimplement.
15451 (tui_next_layout_command): New function.
15452 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15453 (tui_regs_layout): Reimplement.
15454 (tui_regs_layout_command): New function.
15455 (extract_display_start_addr): Rewrite.
15456 (next_layout, prev_layout): Remove.
15457 (tui_layout_window::replace_window): New method.
15458 (tui_layout_split::replace_window): New method.
15459 (destroy_layout): New function.
15460 (layout_list): New global.
15461 (add_layout_command): New function.
15462 (initialize_layouts): Update.
15463 (tui_layout_command): New function.
15464 (_initialize_tui_layout): Install "layout" commands.
15465 * tui/tui-data.h (enum tui_layout_type): Remove.
15466 (tui_current_layout): Don't declare.
15467
15468 2020-02-22 Tom Tromey <tom@tromey.com>
15469
15470 * tui/tui-regs.c (tui_reg_layout): Remove.
15471 (tui_reg_command): Use tui_regs_layout.
15472 * tui/tui-layout.h (tui_reg_command): Declare.
15473 * tui/tui-layout.c (tui_reg_command): New function.
15474
15475 2020-02-22 Tom Tromey <tom@tromey.com>
15476
15477 * tui/tui.c (tui_rl_delete_other_windows): Call
15478 tui_remove_some_windows.
15479 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15480 Declare method.
15481 (class tui_layout_window) <remove_windows>: New method.
15482 (class tui_layout_split) <remove_windows>: Declare.
15483 (tui_remove_some_windows): Declare.
15484 * tui/tui-layout.c (tui_remove_some_windows): New function.
15485 (tui_layout_split::remove_windows): New method.
15486
15487 2020-02-22 Tom Tromey <tom@tromey.com>
15488
15489 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15490 * tui/tui-layout.h (tui_next_layout): Declare.
15491 * tui/tui-layout.c (tui_next_layout): New function.
15492
15493 2020-02-22 Tom Tromey <tom@tromey.com>
15494
15495 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15496 correct coordinates.
15497
15498 2020-02-22 Tom Tromey <tom@tromey.com>
15499
15500 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15501 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15502 DATA_WIN case.
15503
15504 2020-02-22 Tom Tromey <tom@tromey.com>
15505
15506 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15507 TUI_DISASM_WIN, not tui_win_list.
15508
15509 2020-02-22 Tom Tromey <tom@tromey.com>
15510
15511 * valprint.c (generic_val_print_enum_1)
15512 (val_print_type_code_flags): Style member names.
15513 * rust-lang.c (val_print_struct, rust_print_enum)
15514 (rust_print_struct_def, rust_internal_print_type): Style member
15515 names.
15516 * p-valprint.c (pascal_object_print_value_fields): Style member
15517 names. Only call fprintf_symbol_filtered for static members.
15518 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15519 * f-valprint.c (f_val_print): Style member names.
15520 * f-typeprint.c (f_type_print_base): Style member names.
15521 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15522 call fprintf_symbol_filtered for static members.
15523 (cp_print_class_member): Style member names.
15524 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15525 member names.
15526 * ada-valprint.c (ada_print_scalar): Style enum names.
15527 (ada_val_print_enum): Likewise.
15528 * ada-typeprint.c (print_enum_type): Style enum names.
15529
15530 2020-02-21 Tom Tromey <tom@tromey.com>
15531
15532 * psympriv.h (struct partial_symtab): Update comment.
15533
15534 2020-02-21 Tom Tromey <tromey@adacore.com>
15535
15536 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15537 type is CORE_ADDR.
15538
15539 2020-02-21 Tom de Vries <tdevries@suse.de>
15540
15541 PR gdb/25534
15542 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15543 if dependencies[i]->user != NULL.
15544
15545 2020-02-21 Ali Tamur <tamur@google.com>
15546
15547 * dwarf2/read.c (dwarf2_name): Add null check.
15548
15549 2020-02-20 Tom Tromey <tom@tromey.com>
15550
15551 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15552 ">=", in binary search.
15553 (dwarf2_find_containing_comp_unit): New overload.
15554 (run_test): New self-test.
15555 (_initialize_dwarf2_read): Register new test.
15556
15557 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15558
15559 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15560 * riscv-tdep.h: Likewise.
15561 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15562 rv32-only CSR.
15563 * features/riscv/64bit-csr.xml: Regenerated.
15564
15565 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15566 Tom Tromey <tom@tromey.com>
15567
15568 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15569 of 'fputc_unfiltered'.
15570 (putchar_unfiltered): Call 'fputc_unfiltered'.
15571 (fputc_unfiltered): Call 'fputs_unfiltered'.
15572
15573 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15574
15575 * config.in: Regenerate.
15576 * configure: Regenerate.
15577 * configure.ac: Add --with-python-libdir option.
15578 * main.c: Use WITH_PYTHON_LIBDIR.
15579
15580 2020-02-19 Tom Tromey <tom@tromey.com>
15581
15582 * symtab.c (general_symbol_info::compute_and_set_names): Use
15583 obstack_strndup. Simplify call to symbol_set_demangled_name.
15584
15585 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15586
15587 * dwarf2/read.c (allocate_signatured_type_table,
15588 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15589 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15590 Remove objfile parameter, update all callers.
15591
15592 2020-02-19 Doug Evans <dje@google.com>
15593
15594 PR rust/25535
15595 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15596 rust_enum_variant calculation.
15597
15598 2020-02-19 Tom Tromey <tromey@adacore.com>
15599
15600 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15601
15602 2020-02-19 Tom Tromey <tromey@adacore.com>
15603
15604 * ada-lang.c (cache_symbol): Use obstack_strdup.
15605
15606 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15607
15608 * configure: Regenerate.
15609
15610 2020-02-19 Tom Tromey <tromey@adacore.com>
15611
15612 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15613 NULL check.
15614
15615 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15616
15617 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15618
15619 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15620
15621 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15622 if GDBSERVER is not defined.
15623 (riscv_tdesc_cache): Likewise, also store const target_desc.
15624 (STATIC_IN_GDB): Define.
15625 (riscv_create_target_description): Update declaration with
15626 STATIC_IN_GDB.
15627 (riscv_lookup_target_description): New function, only define if
15628 GDBSERVER is not defined.
15629 * arch/riscv.h (riscv_create_target_description): Declare only
15630 when GDBSERVER is defined.
15631 (riscv_lookup_target_description): New declaration when GDBSERVER
15632 is not defined.
15633 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15634 (riscv_linux_read_features): ...this, and return
15635 riscv_gdbarch_features instead of target_desc.
15636 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15637 (riscv_linux_read_description): Rename to...
15638 (riscv_linux_read_features): ...this.
15639 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15640 Update to use riscv_gdbarch_features and
15641 riscv_lookup_target_description.
15642 * riscv-tdep.c (riscv_find_default_target_description): Use
15643 riscv_lookup_target_description instead of
15644 riscv_create_target_description.
15645
15646 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15647
15648 * valprint.c (generic_val_print_enum_1): When printing a flag
15649 enum with value 0 and there is no enumerator with value 0, print
15650 just "0" instead of "(unknown: 0x0)".
15651
15652 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15653
15654 * valprint.c (generic_val_print_enum_1): Print unknown part of
15655 flag enum in hex.
15656
15657 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15658
15659 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15660 flag enums to contain duplicate enumerators.
15661 * valprint.c (generic_val_print_enum_1): Update comment.
15662
15663 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15664
15665 * dwarf2/read.c: Include "count-one-bits.h".
15666 (update_enumeration_type_from_children): If an enumerator has
15667 multiple bits set, don't treat the enumeration as a "flag enum".
15668 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15669 of flag enums have 0 or 1 bit set.
15670
15671 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15672
15673 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15674 conversion.
15675 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15676 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15677 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15678 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15679 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15680
15681 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15682
15683 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15684
15685 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15686
15687 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15688 displaced_step_closure_up.
15689 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15690 (struct displaced_step_closure_up):
15691 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15692 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15693 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15694 Likewise.
15695 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15696 * gdbarch.c, gdbarch.h: Re-generate.
15697 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15698 displaced_step_closure_up.
15699 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15700 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15701 * infrun.h (displaced_step_closure_up): New type alias.
15702 (struct displaced_step_inferior_state) <step_closure>: Change
15703 type to displaced_step_closure_up.
15704 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15705 displaced_step_closure_up.
15706 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15707
15708 2020-02-14 Tom Tromey <tom@tromey.com>
15709
15710 * minidebug.c (gnu_debug_key): New global.
15711 (find_separate_debug_file_in_section): Use it.
15712
15713 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15714
15715 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15716 std::unique_ptr.
15717 * gdbarch.c: Re-generate.
15718 * gdbarch.h: Re-generate.
15719 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15720 change.
15721 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15722 type to std::unique_ptr.
15723 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15724 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15725 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15726 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15727 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15728 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15729 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15730 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15731 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15732
15733 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15734
15735 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15736 std::unique_ptr.
15737 (displaced_step_clear): Rename to...
15738 (displaced_step_reset): ... this. Just call displaced->reset ().
15739 (displaced_step_clear_cleanup): Rename to...
15740 (displaced_step_reset_cleanup): ... this.
15741 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15742 (displaced_step_fixup): Likewise.
15743 (resume_1): Likewise.
15744 (handle_inferior_event): Restore child's memory before calling
15745 displaced_step_fixup on the parent.
15746 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15747 to std::unique_ptr.
15748 <step_closure>: Change type to std::unique_ptr.
15749
15750 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15751
15752 * arm-tdep.c: Include count-one-bits.h.
15753 (cleanup_block_store_pc): Use count_one_bits.
15754 (cleanup_block_load_pc): Use count_one_bits.
15755 (arm_copy_block_xfer): Use count_one_bits.
15756 (thumb2_copy_block_xfer): Use count_one_bits.
15757 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15758 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15759 (thumb_get_next_pcs_raw): Use count_one_bits.
15760 (arm_get_next_pcs_raw): Use count_one_bits_l.
15761 * arch/arm.c (bitcount): Remove.
15762 * arch/arm.h (bitcount): Remove.
15763
15764 2020-02-14 Tom Tromey <tromey@adacore.com>
15765
15766 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15767 Update.
15768 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15769 * dwarf2/loc.c (call_site_find_chain_1): Return
15770 unique_xmalloc_ptr.
15771 (call_site_find_chain): Likewise.
15772
15773 2020-02-14 Richard Biener <rguenther@suse.de>
15774
15775 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15776 on expression with division operators.
15777
15778 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15779
15780 * MAINTAINERS (Write After Approval): Adding myself.
15781
15782 2020-02-12 Tom Tromey <tom@tromey.com>
15783
15784 * event-loop.c (event_data, gdb_event, event_handler_func):
15785 Remove.
15786
15787 2020-02-12 Tom Tromey <tom@tromey.com>
15788
15789 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15790 (dwarf2_frame_objfile_data): Add comment.
15791 (find_comp_unit, set_comp_unit): New functions.
15792 (dwarf2_frame_find_fde): Use find_comp_unit.
15793 (dwarf2_build_frame_info): Use set_comp_unit.
15794
15795 2020-02-12 Tom Tromey <tom@tromey.com>
15796
15797 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15798 (comp_unit): Don't initialize objfile.
15799 (execute_cfa_program): Add text_offset parameter.
15800 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15801 (dwarf2_frame_cache): Update.
15802 (dwarf2_build_frame_info): Don't set "objfile" member.
15803
15804 2020-02-12 Tom Tromey <tom@tromey.com>
15805
15806 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15807 (decode_frame_entry): Likewise.
15808 (dwarf2_build_frame_info): Update.
15809
15810 2020-02-12 Tom Tromey <tom@tromey.com>
15811
15812 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15813 (decode_frame_entry_1): Use the comp_unit obstack.
15814
15815 2020-02-12 Tom Tromey <tom@tromey.com>
15816
15817 * dwarf2/frame.c (struct comp_unit): Add initializers and
15818 constructor.
15819 (dwarf2_frame_objfile_data): Store a comp_unit.
15820 (dwarf2_frame_find_fde): Update.
15821 (dwarf2_build_frame_info): Use "new".
15822
15823 2020-02-12 Tom Tromey <tom@tromey.com>
15824
15825 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15826 (dwarf2_fde_table): Typedef for std::vector.
15827 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15828 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15829 (decode_frame_entry): Update.
15830 (dwarf2_build_frame_info): Use "new".
15831
15832 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15833
15834 * arm-tdep.c (arm_gdbarch_init): Update.
15835 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15836 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15837 have_neon, is_m>: Change to bool.
15838
15839 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15840
15841 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15842
15843 2020-02-12 Tom Tromey <tom@tromey.com>
15844
15845 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15846
15847 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15848
15849 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15850 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15851
15852 2020-02-11 Tom Tromey <tom@tromey.com>
15853
15854 * psymtab.h: Update comment.
15855
15856 2020-02-11 Tom Tromey <tom@tromey.com>
15857
15858 * gdb_obstack.h (struct auto_obstack): Use
15859 DISABLE_COPY_AND_ASSIGN.
15860
15861 2020-02-11 Tom Tromey <tom@tromey.com>
15862
15863 * dwarf2/frame.h (struct objfile): Don't forward declare.
15864
15865 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15866
15867 * cris-tdep.c (cris_supply_gregset): Change signature to match
15868 what struct regset expects.
15869 (cris_regset): New struct.
15870 (fetch_core_registers): Remove.
15871 (cris_iterate_over_regset_sections): New function.
15872 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15873 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15874
15875 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15876
15877 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15878 registers.
15879
15880 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15881
15882 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15883
15884 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15885
15886 * configure: Re-generate.
15887
15888 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15889
15890 * configure: Re-generate.
15891
15892 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15893
15894 * acinclude: Update warning.m4 path.
15895 * warning.m4: Move to gdbsupport.
15896
15897 2020-02-11 Tom Tromey <tromey@adacore.com>
15898
15899 * remote.c (remote_console_output): Update.
15900 * printcmd.c (printf_command): Update.
15901 * event-loop.c (gdb_wait_for_event): Update.
15902 * linux-nat.c (sigchld_handler): Update.
15903 * remote-sim.c (gdb_os_write_stdout): Update.
15904 (gdb_os_flush_stdout): Update.
15905 (gdb_os_flush_stderr): Update.
15906 (gdb_os_write_stderr): Update.
15907 * exceptions.c (print_exception): Update.
15908 * remote-fileio.c (remote_fileio_func_read): Update.
15909 (remote_fileio_func_write): Update.
15910 * tui/tui.c (tui_enable): Update.
15911 * tui/tui-interp.c (tui_interp::init): Update.
15912 * utils.c (init_page_info): Update.
15913 (putchar_unfiltered, fputc_unfiltered): Update.
15914 (gdb_flush): Update.
15915 (emit_style_escape): Update.
15916 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15917 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15918 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15919 (stderr_file::write): Update.
15920 (stderr_file::puts): Update.
15921 * ui-file.h (ui_file_isatty, ui_file_write)
15922 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15923 (ui_file_puts): Don't declare.
15924
15925 2020-02-10 Tom de Vries <tdevries@suse.de>
15926
15927 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15928 sentinel to char *.
15929
15930 2020-02-09 Tom de Vries <tdevries@suse.de>
15931
15932 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15933 filename if it matches "<artificial>".
15934
15935 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15936
15937 * windows-tdep.c (struct enum_value_name): New struct.
15938 (create_enum): New function.
15939 (windows_get_siginfo_type): Create and use enum types.
15940
15941 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15942
15943 * NEWS: Mention $_siginfo support for Windows.
15944 * windows-nat.c (handle_exception): Set siginfo_er.
15945 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15946 (windows_xfer_siginfo): New function.
15947 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15948 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15949 (init_windows_gdbarch_data): New function.
15950 (get_windows_gdbarch_data): New function.
15951 (windows_get_siginfo_type): New function.
15952 (windows_init_abi): Register windows_get_siginfo_type.
15953 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15954
15955 2020-02-08 Tom Tromey <tom@tromey.com>
15956
15957 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15958 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15959 <keep>: Declare method.
15960 <m_keep>: Remove member.
15961 <~cutu_reader>: Remove.
15962 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15963 (cutu_reader::cutu_reader): Update.
15964 (cutu_reader::keep): Rename from ~cutu_reader.
15965 (process_psymtab_comp_unit, build_type_psymtabs_1)
15966 (process_skeletonless_type_unit, load_partial_comp_unit)
15967 (load_full_comp_unit, dwarf2_read_addr_index)
15968 (read_signatured_type): Update.
15969
15970 2020-02-08 Tom Tromey <tom@tromey.com>
15971
15972 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15973 "want_partial_unit" parameter.
15974 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15975 Inline check for DW_TAG_partial_unit.
15976 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15977
15978 2020-02-08 Tom Tromey <tom@tromey.com>
15979
15980 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15981 read.c.
15982 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15983 read.c.
15984
15985 2020-02-08 Tom Tromey <tom@tromey.com>
15986
15987 * dwarf2/read.c (read_address): Move to comp-unit.c.
15988 (dwarf2_rnglists_process, dwarf2_ranges_process)
15989 (read_attribute_value, dwarf_decode_lines_1)
15990 (var_decode_location, decode_locdesc): Update.
15991 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15992 read.c. Remove "cu" parameter.
15993 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15994 method.
15995
15996 2020-02-08 Tom Tromey <tom@tromey.com>
15997
15998 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15999 (read_indirect_line_string): Update.
16000 * dwarf2/comp-unit.c (read_offset): Remove.
16001 (read_comp_unit_head): Update.
16002 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
16003 method.
16004 (read_offset): Don't declare.
16005
16006 2020-02-08 Tom Tromey <tom@tromey.com>
16007
16008 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
16009 * dwarf2/read.c (struct comp_unit_head): Move to
16010 dwarf2/comp-unit.h.
16011 (enum class rcuh_kind): Move to comp-unit.h.
16012 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
16013 (read_comp_unit_head, error_check_comp_unit_head)
16014 (read_and_check_comp_unit_head): Move to comp-unit.c.
16015 (read_offset, dwarf_unit_type_name): Likewise.
16016 (create_debug_type_hash_table, read_cutu_die_from_dwo)
16017 (cutu_reader::cutu_reader, read_call_site_scope)
16018 (find_partial_die, follow_die_offset): Update.
16019 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
16020
16021 2020-02-08 Tom Tromey <tom@tromey.com>
16022
16023 * dwarf2/read.c (read_offset_1): Move to leb.c.
16024 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
16025 (dwarf_decode_macro_bytes): Update.
16026 * dwarf2/leb.c (read_offset): Rename; move from read.c.
16027 * dwarf2/leb.h (read_offset): Declare.
16028
16029 2020-02-08 Tom Tromey <tom@tromey.com>
16030
16031 * dwarf2/read.c (dwarf2_section_size): Remove.
16032 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
16033 Update.
16034 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
16035
16036 2020-02-08 Tom Tromey <tom@tromey.com>
16037
16038 * dwarf2/read.c (read_initial_length): Move to leb.c.
16039 * dwarf2/leb.h (read_initial_length): Declare.
16040 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
16041 handle_nonstd parameter.
16042 * dwarf2/frame.c (read_initial_length): Remove.
16043 (decode_frame_entry_1): Update.
16044
16045 2020-02-08 Tom Tromey <tom@tromey.com>
16046
16047 * dwarf2/loc.c (dwarf2_find_location_expression)
16048 (dwarf_evaluate_loc_desc::get_tls_address)
16049 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16050 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
16051 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
16052 (dwarf2_compile_property_to_c)
16053 (dwarf2_loc_desc_get_symbol_read_needs)
16054 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
16055 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
16056 (loclist_describe_location, loclist_tracepoint_var_ref)
16057 (loclist_generate_c_location): Update.
16058 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
16059 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
16060 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
16061 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
16062 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
16063 (dwarf2_per_cu_data::addr_size)
16064 (dwarf2_per_cu_data::ref_addr_size)
16065 (dwarf2_per_cu_data::text_offset)
16066 (dwarf2_per_cu_data::addr_type): Now methods.
16067 (per_cu_header_read_in): Make per_cu "const".
16068 (dwarf2_version): Remove.
16069 (dwarf2_per_cu_data::int_type): Now a method.
16070 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
16071 (set_die_type, read_array_type, read_subrange_index_type)
16072 (read_tag_string_type, read_subrange_type): Update.
16073 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
16074 offset_size, ref_addr_size, text_offset, addr_type, version,
16075 objfile, int_type, addr_sized_int_type>: Declare methods.
16076
16077 2020-02-08 Tom Tromey <tom@tromey.com>
16078
16079 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
16080 Move earlier.
16081
16082 2020-02-08 Tom Tromey <tom@tromey.com>
16083
16084 * dwarf2/read.h (dwarf_line_debug): Declare.
16085 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
16086 * dwarf2/read.c: Move line_header code to new files.
16087 (dwarf_line_debug): No longer static.
16088 * dwarf2/line-header.c: New file.
16089 * dwarf2/line-header.h: New file.
16090
16091 2020-02-08 Tom Tromey <tom@tromey.com>
16092
16093 * dwarf2/read.c (struct line_header) <file_full_name,
16094 file_file_name>: Return unique_xmalloc_ptr.
16095 (line_header::file_file_name): Update.
16096 (line_header::file_full_name): Update.
16097 (dw2_get_file_names_reader): Update.
16098 (macro_start_file): Update.
16099
16100 2020-02-08 Tom Tromey <tom@tromey.com>
16101
16102 * dwarf2/read.c (struct line_header) <file_full_name,
16103 file_file_name>: Declare methods.
16104 (dw2_get_file_names_reader): Update.
16105 (file_file_name): Now a method.
16106 (file_full_name): Likewise.
16107 (macro_start_file): Update.
16108
16109 2020-02-08 Tom Tromey <tom@tromey.com>
16110
16111 * dwarf2/read.c (dwarf_always_disassemble)
16112 (show_dwarf_always_disassemble): Move to loc.c.
16113 (_initialize_dwarf2_read): Move "always-disassemble" registration
16114 to loc.c.
16115 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
16116 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
16117 static.
16118 (show_dwarf_always_disassemble): Move from read.c.
16119 (_initialize_dwarf2loc): Move always-disassemble from read.c.
16120
16121 2020-02-08 Tom Tromey <tom@tromey.com>
16122
16123 * dwarf2/read.c (~dwarf2_per_objfile): Update.
16124 (create_quick_file_names_table): Return htab_up.
16125 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
16126 Update.
16127 * dwarf2/read.h (struct dwarf2_per_objfile)
16128 <quick_file_names_table>: Now htab_up.
16129
16130 2020-02-08 Tom Tromey <tom@tromey.com>
16131
16132 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
16133
16134 2020-02-08 Tom Tromey <tom@tromey.com>
16135
16136 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
16137 Rewrite.
16138 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
16139 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
16140 (abbrev_table::abbrev_table): No longer inline.
16141 (ABBREV_HASH_SIZE): Remove.
16142 (abbrev_table::m_abbrevs): Now an htab_up.
16143
16144 2020-02-08 Tom Tromey <tom@tromey.com>
16145
16146 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
16147 (cutu_reader): Update.
16148 (build_type_psymtabs_1): Update.
16149 * dwarf2/abbrev.c (abbrev_table::read): Rename.
16150 (abbrev_table::alloc_abbrev): Update.
16151 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
16152 (abbrev_table::read): New static method, renamed from
16153 abbrev_table_read_table.
16154 (abbrev_table::alloc_abbrev)
16155 (abbrev_table::add_abbrev): Now private.
16156 (abbrev_table::abbrev_table): Now private.
16157 (abbrev_table::m_abbrev_obstack): Now private. Rename.
16158
16159 2020-02-08 Tom Tromey <tom@tromey.com>
16160
16161 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
16162 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
16163 htab_up.
16164
16165 2020-02-08 Tom Tromey <tom@tromey.com>
16166
16167 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
16168 htab_up.
16169 (lookup_dwo_unit_in_dwp): Update.
16170 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16171 on obstack.
16172
16173 2020-02-08 Tom Tromey <tom@tromey.com>
16174
16175 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16176 obstack.
16177
16178 2020-02-08 Tom Tromey <tom@tromey.com>
16179
16180 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16181 line_header_hash.
16182 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16183 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16184 Change type to htab_up.
16185
16186 2020-02-08 Tom Tromey <tom@tromey.com>
16187
16188 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16189 htab_up. Don't allocate on obstack.
16190 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16191 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16192 Change type to htab_up.
16193
16194 2020-02-08 Tom Tromey <tom@tromey.com>
16195
16196 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16197 Change type to htab_up.
16198 * dwarf2/read.c (create_signatured_type_table_from_index)
16199 (create_signatured_type_table_from_debug_names)
16200 (create_all_type_units, add_type_unit)
16201 (lookup_dwo_signatured_type, lookup_signatured_type)
16202 (process_skeletonless_type_unit): Update.
16203 (create_debug_type_hash_table, create_debug_types_hash_table):
16204 Change type of types_htab.
16205 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16206 htab_up. Don't allocate on obstack.
16207 (create_cus_hash_table): Change type of cus_htab parameter.
16208 (struct dwo_file) <cus, tus>: Now htab_up.
16209 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16210 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16211 (queue_and_load_all_dwo_tus): Update.
16212 * dwarf2/index-write.c (write_gdbindex): Update.
16213 (write_debug_names): Update.
16214
16215 2020-02-08 Tom Tromey <tom@tromey.com>
16216
16217 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16218 dwarf2/read.c. Remove "next" member. Add constructor ntad
16219 destructor.
16220 (struct dwarf2_per_objfile) <queue>: New member.
16221 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16222 dwarf2/read.h.
16223 (dwarf2_queue, dwarf2_queue_tail): Remove.
16224 (class dwarf2_queue_guard): Add parameter to constructor. Use
16225 DISABLE_COPY_AND_ASSIGN.
16226 <m_per_objfile>: New member.
16227 <~dwarf2_queue_guard>: Rewrite.
16228 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16229 Update.
16230 (~dwarf2_queue_item): New.
16231
16232 2020-02-08 Tom Tromey <tom@tromey.com>
16233
16234 * dwarf2/read.c (struct die_info) <has_children>: New member.
16235 (dw2_get_file_names_reader): Remove has_children.
16236 (dw2_get_file_names): Update.
16237 (read_cutu_die_from_dwo): Remove has_children.
16238 (cutu_reader::init_tu_and_read_dwo_dies)
16239 (cutu_reader::cutu_reader): Update.
16240 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16241 Remove has_children.
16242 (build_type_psymtabs_1, process_skeletonless_type_unit)
16243 (load_partial_comp_unit, load_full_comp_unit): Update.
16244 (create_dwo_cu_reader): Remove has_children.
16245 (create_cus_hash_table, read_die_and_children): Update.
16246 (read_full_die_1,read_full_die): Remove has_children.
16247 (read_signatured_type): Update.
16248 (class cutu_reader) <has_children>: Remove.
16249
16250 2020-02-08 Tom Tromey <tom@tromey.com>
16251
16252 * dwarf2/expr.c: Rename from dwarf2expr.c.
16253 * dwarf2/expr.h: Rename from dwarf2expr.h.
16254 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16255 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16256 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16257 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16258 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16259 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16260 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16261 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16262 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16263 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16264 * dwarf2/loc.c: Rename from dwarf2loc.c.
16265 * dwarf2/loc.h: Rename from dwarf2loc.h.
16266 * dwarf2/read.c: Rename from dwarf2read.c.
16267 * dwarf2/read.h: Rename from dwarf2read.h.
16268 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16269 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16270 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16271 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16272 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16273 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16274 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16275 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16276 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16277 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16278 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16279 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16280 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16281 Update.
16282 * Makefile.in (COMMON_SFILES): Update.
16283 (HFILES_NO_SRCDIR): Update.
16284
16285 2020-02-08 Tom Tromey <tom@tromey.com>
16286
16287 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16288 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16289
16290 2020-02-08 Tom Tromey <tom@tromey.com>
16291
16292 * dwarf2read.h (struct die_info): Don't declare.
16293
16294 2020-02-08 Tom Tromey <tom@tromey.com>
16295
16296 * dwarf2read.h (die_info_ptr): Remove typedef.
16297
16298 2020-02-08 Tom Tromey <tom@tromey.com>
16299
16300 * dwarf2read.c (read_call_site_scope)
16301 (handle_data_member_location, dwarf2_add_member_fn)
16302 (mark_common_block_symbol_computed, read_common_block)
16303 (attr_to_dynamic_prop, partial_die_info::read)
16304 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16305 (dwarf2_symbol_mark_computed, set_die_type): Update.
16306 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16307 method.
16308 (attr_form_is_block): Don't declare.
16309 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16310
16311 2020-02-08 Tom Tromey <tom@tromey.com>
16312
16313 * dwarf2read.c (dwarf2_find_base_address, )
16314 (read_call_site_scope, rust_containing_type)
16315 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16316 (handle_data_member_location, dwarf2_add_member_fn)
16317 (get_alignment, read_structure_type, process_structure_scope)
16318 (mark_common_block_symbol_computed, read_common_block)
16319 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16320 (partial_die_info::read, read_attribute_value, new_symbol)
16321 (lookup_die_type, dwarf2_get_ref_die_offset)
16322 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16323 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16324 (dwarf2_symbol_mark_computed): Update.
16325 * dwarf2/attribute.h (struct attribute) <value_as_address,
16326 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16327 methods.
16328 (value_as_address, attr_form_is_section_offset)
16329 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16330 * dwarf2/attribute.c (attribute::value_as_address)
16331 (attribute::form_is_section_offset, attribute::form_is_constant)
16332 (attribute::form_is_ref): Now methods.
16333
16334 2020-02-08 Tom Tromey <tom@tromey.com>
16335
16336 * dwarf2read.c (struct attribute, DW_STRING)
16337 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16338 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16339 (attr_form_is_block, attr_form_is_section_offset)
16340 (attr_form_is_constant, attr_form_is_ref): Move.
16341 * dwarf2/attribute.h: New file.
16342 * dwarf2/attribute.c: New file, from dwarf2read.c.
16343 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16344
16345 2020-02-08 Tom Tromey <tom@tromey.com>
16346
16347 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16348 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16349 Move.
16350 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16351 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16352 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16353 abbrev.c.
16354 * dwarf2/abbrev.h: New file.
16355 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16356 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16357
16358 2020-02-08 Tom Tromey <tom@tromey.com>
16359
16360 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16361 (dwarf2_section_size, dwarf2_get_section_info)
16362 (create_signatured_type_table_from_debug_names)
16363 (create_addrmap_from_aranges, read_debug_names_from_section)
16364 (get_gdb_index_contents_from_section, read_comp_unit_head)
16365 (error_check_comp_unit_head, read_abbrev_offset)
16366 (create_debug_type_hash_table, init_cu_die_reader)
16367 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16368 (read_comp_units_from_section, create_cus_hash_table)
16369 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16370 (create_dwp_v2_section, dwarf2_rnglists_process)
16371 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16372 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16373 (read_indirect_string_from_dwz, read_addr_index_1)
16374 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16375 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16376 (fill_in_loclist_baton): Update.
16377 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16378 get_containing_section, get_bfd_owner, get_bfd_section,
16379 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16380 (dwarf2_read_section, get_section_name, get_section_file_name)
16381 (get_containing_section, get_section_bfd_owner)
16382 (get_section_bfd_section, get_section_name, get_section_file_name)
16383 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16384 declare.
16385 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16386 (dwarf2_section_info::get_bfd_owner)
16387 (dwarf2_section_info::get_bfd_section)
16388 (dwarf2_section_info::get_name)
16389 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16390 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16391 (dwarf2_section_info::read): Now methods.
16392 * dwarf-index-write.c (class debug_names): Update.
16393
16394 2020-02-08 Tom Tromey <tom@tromey.com>
16395
16396 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16397 Move to dwarf2/section.h.
16398 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16399 (get_section_bfd_section, get_section_name)
16400 (get_section_file_name, get_section_id, get_section_flags)
16401 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16402 dwarf2/section.c.
16403 * dwarf2/section.h: New file.
16404 * dwarf2/section.c: New file, from dwarf2read.c.
16405 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16406
16407 2020-02-08 Tom Tromey <tom@tromey.com>
16408
16409 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16410 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16411 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16412 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16413 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16414 * dwarf2/leb.h: New file, from dwarf2read.c.
16415 * dwarf2/leb.c: New file, from dwarf2read.c.
16416 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16417 Remove.
16418 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16419 (COMMON_SFILES): Add dwarf2/leb.c.
16420
16421 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16422
16423 GDB 9.1 released.
16424
16425 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16426
16427 PR gdb/25190:
16428 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16429 * gdb/remote.c (remote_console_output): Update.
16430 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16431 (ui_file_puts): ...this.
16432 * gdb/ui-file.h (ui_file_puts): Add declaration.
16433 * gdb/utils.c (emit_style_escape): Update.
16434 (flush_wrap_buffer): Update.
16435 (fputs_maybe_filtered): Update.
16436 (fputs_unfiltered): Add function.
16437
16438 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16439
16440 * gdb/event-loop.c (gdb_wait_for_event): Update.
16441 * gdb/printcmd.c (printf_command): Update.
16442 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16443 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16444 (gdb_os_flush_stderr): Update.
16445 * gdb/remote.c (remote_console_output): Update.
16446 * gdb/ui-file.c (gdb_flush): Rename to...
16447 (ui_file_flush): ...this.
16448 (stderr_file::write): Update.
16449 (stderr_file::puts): Update.
16450 * gdb/ui-file.h (gdb_flush): Rename to...
16451 (ui_file_flush): ...this.
16452 * gdb/utils.c (gdb_flush): Add function.
16453 * gdb/utils.h (gdb_flush): Add declaration.
16454
16455 2020-02-07 Tom Tromey <tromey@adacore.com>
16456
16457 PR breakpoints/24915:
16458 * source.c (find_and_open_source): Do not check basenames_may_differ.
16459
16460 2020-02-07 Tom Tromey <tom@tromey.com>
16461
16462 * README: Update gdbserver documentation.
16463 * gdbserver: Move to top level.
16464 * configure.tgt (build_gdbserver): Remove.
16465 * configure.ac: Remove --enable-gdbserver.
16466 * configure: Rebuild.
16467 * Makefile.in (distclean): Don't mention gdbserver.
16468
16469 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16470
16471 * source-cache.c (source_cache::ensure): Surround
16472 get_plain_source_lines with a try/catch.
16473 (source_cache::get_line_charpos): Get rid of try/catch
16474 and only check for the return value of "ensure".
16475 * tui/tui-source.c (tui_source_window::set_contents):
16476 Simplify "nlines" calculation.
16477
16478 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16479
16480 * MAINTAINERS (Write After Approval): Add myself.
16481
16482 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16483
16484 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16485 function call.
16486
16487 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16488
16489 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16490
16491 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16492
16493 * nat/riscv-linux-tdesc.h: New file.
16494 * nat/riscv-linux-tdesc.c: New file, taking code from...
16495 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16496 ... here.
16497 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16498 NATDEPFILES.
16499
16500 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16501
16502 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16503 we don't set the fake simulator ptid to the null_ptid.
16504
16505 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16506
16507 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16508 * gdbthread.h (class thread_info) <resumed>: Likewise.
16509 * infrun.c (resume_1): Likewise.
16510 (proceed): Likewise.
16511 (infrun_thread_stop_requested): Likewise.
16512 (stop_all_threads): Likewise.
16513 (handle_inferior_event): Likewise.
16514 (restart_threads): Likewise.
16515 (finish_step_over): Likewise.
16516 (keep_going_stepped_thread): Likewise.
16517 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16518 (linux_handle_extended_wait): Likewise.
16519 * record-btrace.c (get_thread_current_frame_id): Likewise.
16520 * record-full.c (record_full_wait_1): Likewise.
16521 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16522 * target.c (target_resume): Likewise.
16523 * thread.c (set_running_thread): Likewise.
16524
16525 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16526
16527 * f-valprint.c (f77_print_array_1): Changed datatype of index
16528 variable to LONGEST from int to enable it to contain bound
16529 values correctly.
16530
16531 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16532
16533 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16534 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16535 offsets according to FLEN determined.
16536 (riscv_linux_nat_target::read_description): Determine FLEN
16537 dynamically.
16538 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16539 according to FLEN determined.
16540 (riscv_linux_nat_target::store_registers): Likewise.
16541
16542 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16543
16544 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16545 when reg->group is empty and reggroup is not.
16546
16547 2020-01-31 Tom Tromey <tromey@adacore.com>
16548
16549 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16550 Call beneath target's mourn_inferior after unpushing.
16551
16552 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16553
16554 PR tui/9765
16555 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16556 have enough lines to fill the screen, still return the lowest
16557 address we found.
16558
16559 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16560
16561 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16562 '-', '<', and '>' commands.
16563
16564 2020-01-29 Pedro Alves <palves@redhat.com>
16565 Sergio Durigan Junior <sergiodj@redhat.com>
16566
16567 * infcmd.c (construct_inferior_arguments): Assert that
16568 'argc' is greater than 0.
16569
16570 2020-01-29 Luis Machado <luis.machado@linaro.org>
16571
16572 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16573 (BRK_INSN_MASK): Define to 0xd4200000.
16574 (aarch64_program_breakpoint_here_p): New function.
16575 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16576 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16577 breakpoint.c.
16578 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16579 breakpoint.h
16580 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16581 call gdbarch_program_breakpoint_here_p.
16582 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16583 default_program_breakpoint_here_p, changed return type to bool and
16584 simplified.
16585 * breakpoint.h (program_breakpoint_here): Moved prototype to
16586 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16587 return type to bool.
16588 * gdbarch.c: Regenerate.
16589 * gdbarch.h: Regenerate.
16590 * gdbarch.sh (program_breakpoint_here_p): New method.
16591 * infrun.c (handle_signal_stop): Call
16592 gdbarch_program_breakpoint_here_p.
16593
16594 2020-01-26 Tom Tromey <tom@tromey.com>
16595
16596 * ctfread.c (struct ctf_fp_info): Reindent.
16597 (_initialize_ctfread): Remove.
16598
16599 2020-01-26 Tom Tromey <tom@tromey.com>
16600
16601 * psymtab.c (partial_map_expand_apply)
16602 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16603 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16604 (psym_print_stats, psym_expand_symtabs_for_function)
16605 (psym_map_symbol_filenames, psym_map_matching_symbols)
16606 (psym_expand_symtabs_matching)
16607 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16608 (maintenance_check_psymtabs): Use new methods.
16609 * psympriv.h (struct partial_symtab) <readin_p,
16610 get_compunit_symtab>: New methods.
16611 <readin, compunit_symtab>: Remove members.
16612 (struct standard_psymtab): New.
16613 (struct legacy_psymtab): Derive from standard_psymtab.
16614 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16615 standard_psymtab.
16616 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16617
16618 2020-01-26 Tom Tromey <tom@tromey.com>
16619
16620 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16621 read_dependencies. Add assert.
16622 * psymtab.c (partial_symtab::read_dependencies): New method.
16623 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16624 method.
16625 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16626 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16627 read_dependencies.
16628 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16629 Add assert.
16630
16631 2020-01-26 Tom Tromey <tom@tromey.com>
16632
16633 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16634 Call expand_psymtab.
16635 (xcoff_read_symtab): Call expand_psymtab.
16636 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16637 legacy_expand_psymtab.
16638 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16639 method.
16640 (struct legacy_psymtab) <expand_psymtab>: Implement.
16641 <legacy_expand_psymtab>: New member.
16642 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16643 (parse_partial_symbols): Set legacy_expand_psymtab.
16644 (psymtab_to_symtab_1): Change argument order. Call
16645 expand_psymtab.
16646 (new_psymtab): Set legacy_expand_psymtab.
16647 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16648 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16649 expand_psymtab.
16650 (dwarf2_psymtab::expand_psymtab): Rename from
16651 psymtab_to_symtab_1. Call expand_psymtab.
16652 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16653 (dbx_end_psymtab): Likewise.
16654 (dbx_psymtab_to_symtab_1): Change argument order. Call
16655 expand_psymtab.
16656 (dbx_read_symtab): Call expand_psymtab.
16657 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16658 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16659 (ctf_psymtab::read_symtab): Call expand_psymtab.
16660
16661 2020-01-26 Tom Tromey <tom@tromey.com>
16662
16663 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16664 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16665 messages.
16666 * mdebugread.c (mdebug_read_symtab): Remove prints.
16667 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16668 assert.
16669 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16670
16671 2020-01-26 Tom Tromey <tom@tromey.com>
16672
16673 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16674 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16675 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16676 legacy_symtab.
16677 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16678 * psymtab.c (psymtab_to_symtab): Call method.
16679 (dump_psymtab): Update.
16680 * psympriv.h (struct partial_symtab): Add virtual destructor.
16681 <read_symtab>: New method.
16682 (struct legacy_symtab): New.
16683 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16684 (struct pst_map) <pst>: Now a legacy_psymtab.
16685 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16686 (new_psymtab): Use legacy_psymtab.
16687 * dwarf2read.h (struct dwarf2_psymtab): New.
16688 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16689 * dwarf2read.c (dwarf2_create_include_psymtab)
16690 (dwarf2_build_include_psymtabs, create_type_unit_group)
16691 (create_partial_symtab, process_psymtab_comp_unit_reader)
16692 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16693 (set_partial_user): Use dwarf2_psymtab.
16694 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16695 (psymtab_to_symtab_1, process_full_comp_unit)
16696 (process_full_type_unit, dwarf2_ranges_read)
16697 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16698 (dwarf_decode_lines): Use dwarf2_psymtab.
16699 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16700 (add_address_entry_worker, write_one_signatured_type)
16701 (recursively_count_psymbols, recursively_write_psymbols)
16702 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16703 (write_debug_names): Likewise.
16704 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16705 <pst>: Now a legacy_psymtab.
16706 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16707 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16708 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16709 * ctfread.c (struct ctf_psymtab): New.
16710 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16711 ctf_psymtab.
16712 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16713 (create_partial_symtab): Return a ctf_psymtab.
16714 (scan_partial_symbols): Update.
16715
16716 2020-01-26 Tom Tromey <tom@tromey.com>
16717
16718 * xcoffread.c (xcoff_start_psymtab): Use new.
16719 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16720 renamed from start_psymtab_common.
16721 * psympriv.h (struct partial_symtab): Add new constructor.
16722 (start_psymtab_common): Don't declare.
16723 * mdebugread.c (parse_partial_symbols): Use new.
16724 * dwarf2read.c (create_partial_symtab): Use new.
16725 * dbxread.c (start_psymtab): Use new.
16726 * ctfread.c (create_partial_symtab): Use new.
16727
16728 2020-01-26 Tom Tromey <tom@tromey.com>
16729
16730 * xcoffread.c (xcoff_end_psymtab): Use new.
16731 * psymtab.c (start_psymtab_common): Use new.
16732 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16733 Update.
16734 * psympriv.h (struct partial_symtab): Add parameters to
16735 constructor. Don't inline.
16736 (allocate_psymtab): Don't declare.
16737 * mdebugread.c (new_psymtab): Use new.
16738 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16739 * dbxread.c (dbx_end_psymtab): Use new.
16740
16741 2020-01-26 Tom Tromey <tom@tromey.com>
16742
16743 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16744 allocate_psymtab. Update documentation.
16745 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16746 allocate_psymtab. Do not use new.
16747 (allocate_psymtab): Use new. Update.
16748
16749 2020-01-26 Tom Tromey <tom@tromey.com>
16750
16751 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16752 * psymtab.c (psym_print_stats): Update.
16753 * psympriv.h (struct partial_symtab) <readin,
16754 psymtabs_addrmap_supported, anonymous>: Now bool.
16755 * mdebugread.c (psymtab_to_symtab_1): Update.
16756 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16757 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16758 (process_full_comp_unit, process_full_type_unit): Update.
16759 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16760 * ctfread.c (psymtab_to_symtab): Update.
16761
16762 2020-01-26 Tom Tromey <tom@tromey.com>
16763
16764 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16765 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16766 * psymtab.c (psymtab_storage): Delete psymtabs.
16767 (psymtab_storage::allocate_psymtab): Use new.
16768 (psymtab_storage::discard_psymtab): Use delete.
16769 * psympriv.h (struct partial_symtab): Add constructor and
16770 initializers.
16771
16772 2020-01-26 Tom Tromey <tom@tromey.com>
16773
16774 * machoread.c: Do not include psympriv.h.
16775
16776 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16777
16778 * NEWS: Mention the new option and the set/show commands.
16779
16780 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16781
16782 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16783 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16784 (validate_exec_file): New variables, enums, functions.
16785 (exec_file_locate_attach, print_section_info): Style the filenames.
16786 (_initialize_exec): Install show_exec_file_mismatch_command and
16787 set_exec_file_mismatch_command.
16788 * gdbcore.h (validate_exec_file): Declare.
16789 * infcmd.c (attach_command): Call validate_exec_file.
16790 * remote.c ( remote_target::remote_add_inferior): Likewise.
16791
16792 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16793
16794 * frame.c (find_frame_sal): Move call to get_next_frame into more
16795 inner scope.
16796 * inline-frame.c (inilne_state) <inline_state>: Update argument
16797 types.
16798 (inilne_state) <skipped_symbol>: Rename to...
16799 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16800 (skip_inline_frames): Build vector of skipped symbols and use this
16801 to reate the inline_state.
16802 (inline_skipped_symbol): Add a comment and some assertions, fetch
16803 skipped symbol from the list.
16804
16805 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16806
16807 * buildsym.c (lte_is_less_than): Delete.
16808 (buildsym_compunit::end_symtab_with_blockvector): Create local
16809 lambda function to sort line table entries, and use
16810 std::stable_sort instead of std::sort.
16811 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16812 markers when looking for a previous line.
16813
16814 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16815
16816 * dwarf2read.c (lnp_state_machine::record_line): Include
16817 end_sequence parameter in debug print out. Record the line if we
16818 are at an end_sequence marker even if it's not the start of a
16819 statement.
16820 * symmisc.c (maintenance_print_one_line_table): Print end of
16821 sequence markers with 'END' not '0'.
16822
16823 2020-01-24 Pedro Alves <palves@redhat.com>
16824
16825 PR gdb/25410
16826 * thread.c (scoped_restore_current_thread::restore): Use
16827 switch_to_inferior_no_thread.
16828 * exec.c: Include "progspace-and-thread.h".
16829 (add_target_sections, remove_target_sections):
16830 scoped_restore_current_pspace_and_thread instead of
16831 scoped_restore_current_thread.
16832 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16833 and aspace to the inferior before calling clone_program_space.
16834 Remove stale comment.
16835
16836 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16837
16838 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16839 (arm_netbsd_nat_target::fetch_registers): ...this.
16840 (arm_nbsd_nat_target::store_registers): Rename to...
16841 (arm_netbsd_nat_target::store_registers): ...this.
16842
16843 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16844
16845 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16846 register_t.
16847
16848 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16849
16850 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16851 Update comment.
16852 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16853 Likewise.
16854 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16855 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16856 the correct replacement (iterate_over_regset_sections).
16857 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16858 Update comment.
16859
16860 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16861
16862 PR gdb/23718
16863 * gdb/python/python.c (execute_gdb_command): Call
16864 async_enable_stdin in catch block.
16865
16866 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16867
16868 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16869 SWITCH_THRU_ALL_UIS.
16870
16871 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16872
16873 PR tui/9765
16874 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16875 comment, add extra parameter, and update to store previous symbol
16876 when appropriate.
16877 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16878 add extra parameter.
16879 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16880 remove unneeded parameter, add try/catch around gdb_print_insn,
16881 rewrite to add items to asm_lines vector.
16882 (tui_find_backward_disassembly_start_address): New function.
16883 (tui_find_disassembly_address): Updated throughout.
16884 (tui_disasm_window::set_contents): Update for changes to
16885 tui_disassemble.
16886 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16887 number of lines to scroll.
16888
16889 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16890
16891 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16892 (SECT_OFF_DATA): Likewise.
16893 (SECT_OFF_RODATA): Likewise.
16894 (SECT_OFF_TEXT): Likewise.
16895 (SECT_OFF_BSS): Likewise.
16896 (struct objfile) <text_section_offset, data_section_offset>: New
16897 methods.
16898 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16899 objfile::text_section_offset.
16900 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16901 * coffread.c (coff_symtab_read): Likewise.
16902 (enter_linenos): Likewise.
16903 (process_coff_symbol): Likewise.
16904 * ctfread.c (get_objfile_text_range): Likewise.
16905 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16906 Use objfile::data_section_offset.
16907 * dwarf2-frame.c (execute_cfa_program): Use
16908 objfile::text_section_offset.
16909 (dwarf2_frame_find_fde): Likewise.
16910 * dwarf2read.c (create_addrmap_from_index): Likewise.
16911 (create_addrmap_from_aranges): Likewise.
16912 (dw2_find_pc_sect_compunit_symtab): Likewise.
16913 (process_psymtab_comp_unit_reader): Likewise.
16914 (add_partial_symbol): Likewise.
16915 (add_partial_subprogram): Likewise.
16916 (process_full_comp_unit): Likewise.
16917 (read_file_scope): Likewise.
16918 (read_func_scope): Likewise.
16919 (read_lexical_block_scope): Likewise.
16920 (read_call_site_scope): Likewise.
16921 (dwarf2_rnglists_process): Likewise.
16922 (dwarf2_ranges_process): Likewise.
16923 (dwarf2_ranges_read): Likewise.
16924 (dwarf_decode_lines_1): Likewise.
16925 (new_symbol): Likewise.
16926 (dwarf2_fetch_die_loc_sect_off): Likewise.
16927 (dwarf2_per_cu_text_offset): Likewise.
16928 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16929 * hppa-tdep.c (read_unwind_info): Likewise.
16930 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16931 * psympriv.h (struct partial_symtab): Likewise.
16932 * psymtab.c (find_pc_sect_psymtab): Likewise.
16933 * solib-svr4.c (enable_break): Likewise.
16934 * stap-probe.c (relocate_address): Use
16935 objfile::data_section_offset.
16936 * xcoffread.c (enter_line_range): Use
16937 objfile::text_section_offset.
16938 (read_xcoff_symtab): Likewise.
16939
16940 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16941
16942 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16943 declaration to narrower scopes.
16944
16945 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16946
16947 * darwin-nat.h (struct darwin_exception_msg, enum
16948 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16949 Move up.
16950 (class darwin_nat_target) <wait_1, check_new_threads,
16951 decode_exception_message, decode_message, stop_inferior,
16952 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16953 * darwin-nat.c (darwin_check_new_threads): Rename to...
16954 (darwin_nat_target::check_new_threads): ... this.
16955 (darwin_suspend_inferior_it): Remove.
16956 (darwin_decode_exception_message): Rename to...
16957 (darwin_nat_target::decode_exception_message): ... this.
16958 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16959 (darwin_decode_message): Rename to...
16960 (darwin_nat_target::decode_message): ... this.
16961 (cancel_breakpoint): Rename to...
16962 (darwin_nat_target::cancel_breakpoint): ... this.
16963 (darwin_wait): Rename to...
16964 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16965 instead of iterate_over_inferiors.
16966 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16967 (darwin_stop_inferior): Rename to...
16968 (darwin_nat_target::stop_inferior): ... this.
16969 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16970 (darwin_init_thread_list): Rename to...
16971 (darwin_nat_target::init_thread_list): ... this.
16972 (darwin_ptrace_him): Rename to...
16973 (darwin_nat_target::ptrace_him): ... this.
16974 (darwin_nat_target::create_inferior): Pass lambda function to
16975 fork_inferior.
16976 (darwin_nat_target::detach): Call stop_inferior instead of
16977 darwin_stop_inferior.
16978 * fork-inferior.h (fork_inferior): Change init_trace_fun
16979 parameter to gdb::function_view.
16980 * fork-inferior.c (fork_inferior): Likewise.
16981
16982 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
16983
16984 * i386-cygwin-tdep.c (core_process_module_section): Update.
16985 * windows-nat.c (struct lm_info_windows): Add text_offset.
16986 (windows_xfer_shared_libraries): Update.
16987 * windows-tdep.c (windows_xfer_shared_library):
16988 Add text_offset_cached argument.
16989 * windows-tdep.h (windows_xfer_shared_library): Update.
16990
16991 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16992
16993 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16994
16995 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
16996
16997 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16998 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16999 replace with range-based for.
17000 (gdbsim_interrupt_inferior): Remove.
17001 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
17002 with a range-based for. Inline code from
17003 gdbsim_interrupt_inferior.
17004
17005 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
17006
17007 * infrun.c (proceed): Fix indentation.
17008
17009 2020-01-21 Tom Tromey <tromey@adacore.com>
17010
17011 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
17012 * python/python.c (python_extension_ops): Update.
17013 (gdbpy_colorize): New function.
17014 * python/lib/gdb/__init__.py (colorize): New function.
17015 * extension.h (ext_lang_colorize): Declare.
17016 * extension.c (ext_lang_colorize): New function.
17017 * extension-priv.h (struct extension_language_ops) <colorize>: New
17018 member.
17019 * cli/cli-style.c (_initialize_cli_style): Update help text.
17020
17021 2020-01-21 Luis Machado <luis.machado@linaro.org>
17022
17023 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
17024 <cond>: Change type to bool.
17025 (aarch64_displaced_step_b_cond): Update cond to use bool type.
17026 (aarch64_displaced_step_cb): Likewise.
17027 (aarch64_displaced_step_tb): Likewise.
17028
17029 2020-01-21 Luis Machado <luis.machado@linaro.org>
17030
17031 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
17032 output.
17033
17034 2020-01-21 Luis Machado <luis.machado@linaro.org>
17035
17036 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
17037 <pc_adjust>: Adjust the documentation.
17038 (aarch64_displaced_step_fixup): Check if PC really moved before
17039 adjusting it.
17040
17041 2020-01-19 Tom Tromey <tom@tromey.com>
17042
17043 * disasm.c (~gdb_disassembler): New destructor.
17044 (gdb_buffered_insn_length): Call disassemble_free_target.
17045 * disasm.h (class gdb_disassembler): Declare destructor. Use
17046 DISABLE_COPY_AND_ASSIGN.
17047
17048 2020-01-19 Tom Tromey <tom@tromey.com>
17049
17050 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
17051 (die_reader_func_ftype): Remove.
17052 (cutu_reader): New class.
17053 (dw2_get_file_names_reader): Remove "data" parameter.
17054 (dw2_get_file_names): Use cutu_reader.
17055 (create_debug_type_hash_table): Update.
17056 (read_cutu_die_from_dwo): Update comment.
17057 (lookup_dwo_unit): Add dwo_name parameter.
17058 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
17059 die_reader_func_ftype and data parameters.
17060 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
17061 Remove die_reader_func_ftype and data parameters.
17062 (~cutu_reader): New; from init_cutu_and_read_dies.
17063 (cutu_reader::cutu_reader): Rename from
17064 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
17065 and data parameters.
17066 (init_cutu_and_read_dies_simple): Remove.
17067 (struct process_psymtab_comp_unit_data): Remove.
17068 (process_psymtab_comp_unit_reader): Remove data parameter; add
17069 want_partial_unit and pretend_language parameters.
17070 (process_psymtab_comp_unit): Use cutu_reader.
17071 (build_type_psymtabs_reader): Remove data parameter.
17072 (build_type_psymtabs_1): Use cutu_reader.
17073 (process_skeletonless_type_unit): Likewise.
17074 (load_partial_comp_unit_reader): Remove.
17075 (load_partial_comp_unit): Use cutu_reader.
17076 (load_full_comp_unit_reader): Remove.
17077 (load_full_comp_unit): Use cutu_reader.
17078 (struct create_dwo_cu_data): Remove.
17079 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
17080 dwo_unit parameters.
17081 (create_cus_hash_table): Use cutu_reader.
17082 (struct dwarf2_read_addr_index_data): Remove.
17083 (dwarf2_read_addr_index_reader): Remove.
17084 (dwarf2_read_addr_index): Use cutu_reader.
17085 (read_signatured_type_reader): Remove.
17086 (read_signatured_type): Use cutu_reader.
17087
17088 2020-01-19 Tom Tromey <tom@tromey.com>
17089
17090 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
17091 * tui/tui-wingeneral.h (class tui_suppress_output): New.
17092 (tui_wrefresh): Declare.
17093 * tui/tui-wingeneral.c (suppress_output): New global.
17094 (tui_suppress_output, ~tui_suppress_output): New constructor and
17095 destructor.
17096 (tui_wrefresh): New function.
17097 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
17098 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
17099 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
17100 method.
17101 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
17102 tui_wrefresh.
17103 (tui_data_window::no_refresh): New method.
17104 (tui_data_item_window::refresh_window): Call tui_wrefresh.
17105 (tui_reg_command): Use tui_suppress_output
17106 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
17107 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
17108 method.
17109 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
17110
17111 2020-01-19 Tom Tromey <tom@tromey.com>
17112
17113 * tui/tui-winsource.c (tui_update_source_windows_with_line):
17114 Handle case where symtab is null.
17115
17116 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
17117
17118 * linux-fork.c (one_fork_p): Simplify.
17119
17120 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
17121
17122 * top.c (struct qt_args): Remove.
17123 (kill_or_detach): Change return type to void, replace `void *`
17124 parameter with a proper one.
17125 (print_inferior_quit_action): Likewise.
17126 (quit_confirm): Use range-based for loop to iterate over inferiors.
17127 (quit_force): Likewise.
17128
17129 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
17130
17131 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
17132 `void *` parameter with proper parameters.
17133 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
17134 (print_one_inferior): Change return type to void, replace `void *`
17135 parameter with proper parameters.
17136 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
17137 inferiors.
17138 (get_other_inferior): Remove.
17139 (mi_cmd_remove_inferior): Use range-based loop to iterate over
17140 inferiors.
17141
17142 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
17143
17144 * mi/mi-interp.c (report_initial_inferior): Remove.
17145 (mi_interp::init): Use range-based for to iterate over inferiors.
17146
17147 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
17148
17149 * python/py-inferior.c (build_inferior_list): Remove.
17150 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
17151
17152 2020-01-16 Christian Biesinger <cbiesinger@google.com>
17153
17154 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
17155 (btrace_stitch_trace): Likewise.
17156 * charset.c (intermediate_encoding): Likewise (vaild).
17157 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
17158 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
17159 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
17160
17161 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
17162
17163 * windows-tdep.c (windows_get_tlb_type):
17164 Add rtl_user_process_parameters type.
17165
17166 2020-01-16 Pedro Alves <palves@redhat.com>
17167 Norbert Lange <nolange79@gmail.com>
17168
17169 PR build/24805
17170 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
17171 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17172 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17173 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17174 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17175 (ps_plog): Redeclare exported functions with default visibility.
17176
17177 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17178
17179 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17180 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17181
17182 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
17183
17184 * infcmd.c (post_create_inferior): Use get_thread_regcache
17185 instead of get_current_regcache.
17186
17187 2020-01-14 Tom Tromey <tom@tromey.com>
17188
17189 PR symtab/12535:
17190 * python/python.c (gdbpy_decode_line): Treat empty string the same
17191 as no argument.
17192
17193 2020-01-14 Tom Tromey <tom@tromey.com>
17194
17195 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17196
17197 2020-01-14 Tom Tromey <tom@tromey.com>
17198
17199 * nat/linux-btrace.c: Don't include <config.h>.
17200 * nat/linux-ptrace.c: Don't include <config.h>.
17201 * nat/x86-linux-dregs.c: Don't include <config.h>.
17202
17203 2020-01-14 Tom Tromey <tom@tromey.com>
17204
17205 * configure: Rebuild.
17206 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17207
17208 2020-01-14 Tom Tromey <tom@tromey.com>
17209
17210 * nat/x86-linux-dregs.c: Include configh.h.
17211 * nat/linux-ptrace.c: Include configh.h.
17212 * nat/linux-btrace.c: Include configh.h.
17213 * defs.h: Include config.h, bfd.h.
17214 * configure.ac: Don't source common.host.
17215 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17216 * configure: Rebuild.
17217 * acinclude.m4: Update path.
17218 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17219 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17220 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17221 (CLIBS): Add LIBSUPPORT.
17222 (CDEPS): Likewise.
17223 (COMMON_SFILES): Remove gdbsupport files.
17224 (HFILES_NO_SRCDIR): Likewise.
17225 (stamp-version): Update path to create-version.sh.
17226 (ALLDEPFILES): Remove gdbsupport files.
17227
17228 2020-01-14 Tom Tromey <tom@tromey.com>
17229
17230 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17231 USE_WIN32API when needed.
17232 * configure.ac (USE_WIN32API): Don't define.
17233 (WIN32LIBS): Use WIN32APILIBS.
17234 * configure: Rebuild.
17235
17236 2020-01-14 Tom Tromey <tom@tromey.com>
17237
17238 * configure: Rebuild.
17239 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17240
17241 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17242
17243 * skip.c (skip_function_command): Make skip w/o arguments use the
17244 name of the inlined function if pc is inside any inlined function.
17245
17246 2020-01-14 Luis Machado <luis.machado@linaro.org>
17247
17248 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17249 * infrun.c (resume_1): Likewise.
17250 (handle_inferior_event): Remove stale comment.
17251 * linux-nat.c (linux_nat_target::resume): Update comments.
17252 (save_stop_reason): Likewise.
17253 (linux_nat_filter_event): Likewise.
17254 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17255
17256 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17257
17258 * elfread.c (record_minimal_symbol): Set section index to 0 for
17259 non-allocatable sections.
17260
17261
17262 2020-01-13 Ali Tamur <tamur@google.com>
17263
17264 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17265 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17266 to gdb::optional. Update comments.
17267 (dwo_file): Update comments.
17268 (read_attribute): Update API to take an additional out parameter,
17269 need_reprocess. This is used to mark attributes that need other
17270 attributes (e.g. str_offsets_base) for correct computation which may not
17271 have been read yet.
17272 (read_attribute_reprocess): New function declaration.
17273 (read_addr_index): Likewise.
17274 (read_dwo_str_index): Likewise.
17275 (read_stub_str_index): Likewise.
17276 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17277 (lookup_addr_base): New function definition.
17278 (lookup_ranges_base): Likewise.
17279 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17280 lookup_ranges_base.
17281 (init_cutu_and_read_dies): Update comments.
17282 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17283 unit. This is used to inherit parent's str_offsets_base and addr_base.
17284 Update comments.
17285 (init_cutu_and_read_dies_simple): Reflect API changes.
17286 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17287 (create_cus_hash_table): Change API to take parent compile unit.
17288 Reflect API changes.
17289 (open_and_init_dwo_file): Reflect API changes.
17290 (dwarf2_get_pc_bounds): Update comments.
17291 (dwarf2_record_block_ranges): Likewise.
17292 (read_full_die_1): Change implementation to reprocess attributes that
17293 need str_offsets_base and addr_base.
17294 (partial_die_info::read): Likewise.
17295 (read_attribute_reprocess): New function definition.
17296 (read_attribute_value): Change API to take an additional out parameter,
17297 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17298 when a non-dwo compile unit has index based attributes.
17299 (read_attribute): Reflect API changes.
17300 (read_addr_index_1): Reflect API changes. Update comments.
17301 (dwarf2_read_addr_index_data): Reflect API changes.
17302 (dwarf2_read_addr_index): Likewise.
17303 (read_str_index): Change API and implementation. This becomes a helper
17304 to be used by the new string index related methods. Update error
17305 message and comments.
17306 (read_dwo_str_index): New function definition.
17307 (read_stub_str_index): Likewise.
17308 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17309 * symfile.h (dwarf2_debug_sections): Likewise.
17310 * xcoffread.c (dwarf2_debug_sections): Likewise.
17311
17312 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17313
17314 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17315 core_reg_sect type to gdb_byte *.
17316 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17317 * cris-tdep.c (fetch_core_registers): Likewise.
17318 * corelow.c (core_target::get_core_register_section): Change
17319 type of `contents` to gdb::byte_vector.
17320
17321 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17322
17323 * tui/tui-wingeneral.c (box_win): Position the title in the center
17324 of the border.
17325
17326 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17327
17328 * corelow.c (core_target::get_core_register_section): Use
17329 std::vector instead of alloca.
17330
17331 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17332
17333 * warning.m4: Add -Wmissing-declarations to build_warnings.
17334 * configure: Re-generate.
17335
17336 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17337
17338 * python/python.c (init__gdb_module): Add declaration.
17339
17340 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17341
17342 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17343 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17344 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17345 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17346 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17347 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17348 * ada-exp.y (_initialize_ada_exp): Add declaration.
17349 * ada-lang.c (_initialize_ada_language): Add declaration.
17350 * ada-tasks.c (_initialize_tasks): Add declaration.
17351 * agent.c (_initialize_agent): Add declaration.
17352 * aix-thread.c (_initialize_aix_thread): Add declaration.
17353 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17354 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17355 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17356 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17357 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17358 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17359 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17360 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17361 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17362 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17363 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17364 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17365 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17366 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17367 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17368 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17369 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17370 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17371 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17372 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17373 * annotate.c (_initialize_annotate): Add declaration.
17374 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17375 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17376 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17377 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17378 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17379 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17380 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17381 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17382 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17383 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17384 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17385 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17386 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17387 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17388 * auto-load.c (_initialize_auto_load): Add declaration.
17389 * auxv.c (_initialize_auxv): Add declaration.
17390 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17391 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17392 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17393 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17394 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17395 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17396 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17397 * breakpoint.c (_initialize_breakpoint): Add declaration.
17398 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17399 * btrace.c (_initialize_btrace): Add declaration.
17400 * charset.c (_initialize_charset): Add declaration.
17401 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17402 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17403 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17404 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17405 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17406 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17407 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17408 * coffread.c (_initialize_coffread): Add declaration.
17409 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17410 * compile/compile.c (_initialize_compile): Add declaration.
17411 * complaints.c (_initialize_complaints): Add declaration.
17412 * completer.c (_initialize_completer): Add declaration.
17413 * copying.c (_initialize_copying): Add declaration.
17414 * corefile.c (_initialize_core): Add declaration.
17415 * corelow.c (_initialize_corelow): Add declaration.
17416 * cp-abi.c (_initialize_cp_abi): Add declaration.
17417 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17418 * cp-support.c (_initialize_cp_support): Add declaration.
17419 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17420 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17421 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17422 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17423 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17424 * ctfread.c (_initialize_ctfread): Add declaration.
17425 * d-lang.c (_initialize_d_language): Add declaration.
17426 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17427 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17428 * dbxread.c (_initialize_dbxread): Add declaration.
17429 * dcache.c (_initialize_dcache): Add declaration.
17430 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17431 * disasm.c (_initialize_disasm): Add declaration.
17432 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17433 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17434 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17435 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17436 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17437 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17438 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17439 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17440 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17441 * elfread.c (_initialize_elfread): Add declaration.
17442 * exec.c (_initialize_exec): Add declaration.
17443 * extension.c (_initialize_extension): Add declaration.
17444 * f-lang.c (_initialize_f_language): Add declaration.
17445 * f-valprint.c (_initialize_f_valprint): Add declaration.
17446 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17447 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17448 * filesystem.c (_initialize_filesystem): Add declaration.
17449 * findcmd.c (_initialize_mem_search): Add declaration.
17450 * findvar.c (_initialize_findvar): Add declaration.
17451 * fork-child.c (_initialize_fork_child): Add declaration.
17452 * frame-base.c (_initialize_frame_base): Add declaration.
17453 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17454 * frame.c (_initialize_frame): Add declaration.
17455 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17456 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17457 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17458 * gcore.c (_initialize_gcore): Add declaration.
17459 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17460 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17461 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17462 * gdbarch.c (_initialize_gdbarch): Add declaration.
17463 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17464 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17465 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17466 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17467 * go-lang.c (_initialize_go_language): Add declaration.
17468 * go32-nat.c (_initialize_go32_nat): Add declaration.
17469 * guile/guile.c (_initialize_guile): Add declaration.
17470 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17471 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17472 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17473 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17474 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17475 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17476 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17477 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17478 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17479 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17480 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17481 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17482 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17483 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17484 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17485 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17486 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17487 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17488 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17489 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17490 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17491 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17492 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17493 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17494 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17495 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17496 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17497 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17498 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17499 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17500 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17501 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17502 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17503 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17504 * infcall.c (_initialize_infcall): Add declaration.
17505 * infcmd.c (_initialize_infcmd): Add declaration.
17506 * inflow.c (_initialize_inflow): Add declaration.
17507 * infrun.c (_initialize_infrun): Add declaration.
17508 * interps.c (_initialize_interpreter): Add declaration.
17509 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17510 * jit.c (_initialize_jit): Add declaration.
17511 * language.c (_initialize_language): Add declaration.
17512 * linux-fork.c (_initialize_linux_fork): Add declaration.
17513 * linux-nat.c (_initialize_linux_nat): Add declaration.
17514 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17515 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17516 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17517 * m2-lang.c (_initialize_m2_language): Add declaration.
17518 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17519 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17520 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17521 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17522 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17523 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17524 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17525 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17526 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17527 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17528 * machoread.c (_initialize_machoread): Add declaration.
17529 * macrocmd.c (_initialize_macrocmd): Add declaration.
17530 * macroscope.c (_initialize_macroscope): Add declaration.
17531 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17532 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17533 * maint.c (_initialize_maint_cmds): Add declaration.
17534 * mdebugread.c (_initialize_mdebugread): Add declaration.
17535 * memattr.c (_initialize_mem): Add declaration.
17536 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17537 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17538 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17539 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17540 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17541 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17542 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17543 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17544 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17545 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17546 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17547 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17548 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17549 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17550 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17551 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17552 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17553 * mipsread.c (_initialize_mipsread): Add declaration.
17554 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17555 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17556 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17557 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17558 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17559 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17560 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17561 * nto-procfs.c (_initialize_procfs): Add declaration.
17562 * objc-lang.c (_initialize_objc_language): Add declaration.
17563 * observable.c (_initialize_observer): Add declaration.
17564 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17565 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17566 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17567 * osabi.c (_initialize_gdb_osabi): Add declaration.
17568 * osdata.c (_initialize_osdata): Add declaration.
17569 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17570 * parse.c (_initialize_parse): Add declaration.
17571 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17572 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17573 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17574 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17575 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17576 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17577 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17578 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17579 * printcmd.c (_initialize_printcmd): Add declaration.
17580 * probe.c (_initialize_probe): Add declaration.
17581 * proc-api.c (_initialize_proc_api): Add declaration.
17582 * proc-events.c (_initialize_proc_events): Add declaration.
17583 * proc-service.c (_initialize_proc_service): Add declaration.
17584 * procfs.c (_initialize_procfs): Add declaration.
17585 * producer.c (_initialize_producer): Add declaration.
17586 * psymtab.c (_initialize_psymtab): Add declaration.
17587 * python/python.c (_initialize_python): Add declaration.
17588 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17589 * record-btrace.c (_initialize_record_btrace): Add declaration.
17590 * record-full.c (_initialize_record_full): Add declaration.
17591 * record.c (_initialize_record): Add declaration.
17592 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17593 * regcache.c (_initialize_regcache): Add declaration.
17594 * reggroups.c (_initialize_reggroup): Add declaration.
17595 * remote-notif.c (_initialize_notif): Add declaration.
17596 * remote-sim.c (_initialize_remote_sim): Add declaration.
17597 * remote.c (_initialize_remote): Add declaration.
17598 * reverse.c (_initialize_reverse): Add declaration.
17599 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17600 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17601 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17602 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17603 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17604 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17605 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17606 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17607 Add declaration.
17608 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17609 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17610 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17611 * rust-exp.y (_initialize_rust_exp): Add declaration.
17612 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17613 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17614 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17615 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17616 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17617 * score-tdep.c (_initialize_score_tdep): Add declaration.
17618 * ser-go32.c (_initialize_ser_dos): Add declaration.
17619 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17620 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17621 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17622 * ser-uds.c (_initialize_ser_socket): Add declaration.
17623 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17624 * serial.c (_initialize_serial): Add declaration.
17625 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17626 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17627 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17628 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17629 * skip.c (_initialize_step_skip): Add declaration.
17630 * sol-thread.c (_initialize_sol_thread): Add declaration.
17631 * solib-aix.c (_initialize_solib_aix): Add declaration.
17632 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17633 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17634 * solib-frv.c (_initialize_frv_solib): Add declaration.
17635 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17636 * solib-target.c (_initialize_solib_target): Add declaration.
17637 * solib.c (_initialize_solib): Add declaration.
17638 * source-cache.c (_initialize_source_cache): Add declaration.
17639 * source.c (_initialize_source): Add declaration.
17640 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17641 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17642 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17643 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17644 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17645 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17646 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17647 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17648 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17649 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17650 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17651 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17652 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17653 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17654 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17655 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17656 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17657 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17658 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17659 * stabsread.c (_initialize_stabsread): Add declaration.
17660 * stack.c (_initialize_stack): Add declaration.
17661 * stap-probe.c (_initialize_stap_probe): Add declaration.
17662 * std-regs.c (_initialize_frame_reg): Add declaration.
17663 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17664 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17665 * symfile.c (_initialize_symfile): Add declaration.
17666 * symmisc.c (_initialize_symmisc): Add declaration.
17667 * symtab.c (_initialize_symtab): Add declaration.
17668 * target.c (_initialize_target): Add declaration.
17669 * target-connection.c (_initialize_target_connection): Add
17670 declaration.
17671 * target-dcache.c (_initialize_target_dcache): Add declaration.
17672 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17673 * thread.c (_initialize_thread): Add declaration.
17674 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17675 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17676 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17677 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17678 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17679 * tracectf.c (_initialize_ctf): Add declaration.
17680 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17681 * tracefile.c (_initialize_tracefile): Add declaration.
17682 * tracepoint.c (_initialize_tracepoint): Add declaration.
17683 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17684 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17685 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17686 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17687 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17688 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17689 * tui/tui.c (_initialize_tui): Add declaration.
17690 * typeprint.c (_initialize_typeprint): Add declaration.
17691 * ui-style.c (_initialize_ui_style): Add declaration.
17692 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17693 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17694 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17695 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17696 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17697 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17698 * unittests/filtered_iterator-selftests.c
17699 (_initialize_filtered_iterator_selftests): Add declaration.
17700 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17701 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17702 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17703 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17704 * unittests/main-thread-selftests.c
17705 (_initialize_main_thread_selftests): Add declaration.
17706 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17707 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17708 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17709 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17710 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17711 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17712 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17713 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17714 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17715 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17716 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17717 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17718 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17719 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17720 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17721 declaration.
17722 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17723 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17724 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17725 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17726 * user-regs.c (_initialize_user_regs): Add declaration.
17727 * utils.c (_initialize_utils): Add declaration.
17728 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17729 * valops.c (_initialize_valops): Add declaration.
17730 * valprint.c (_initialize_valprint): Add declaration.
17731 * value.c (_initialize_values): Add declaration.
17732 * varobj.c (_initialize_varobj): Add declaration.
17733 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17734 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17735 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17736 * windows-nat.c (_initialize_windows_nat): Add declaration.
17737 (_initialize_check_for_gdb_ini): Add declaration.
17738 (_initialize_loadable): Add declaration.
17739 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17740 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17741 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17742 * xcoffread.c (_initialize_xcoffread): Add declaration.
17743 * xml-support.c (_initialize_xml_support): Add declaration.
17744 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17745 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17746 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17747 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17748
17749 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17750
17751 * regformats/regdat.sh: Generate declaration for init function.
17752
17753 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17754
17755 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17756 up.
17757 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17758 close_one_inferior>: New methods.
17759 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17760 pass down target to find_inferior_pid.
17761 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17762 Pass down target to find_inferior_ptid.
17763 (gdbsim_target::create_inferior): Pass down target to
17764 add_thread_silent.
17765 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17766 target down to find_inferior_ptid and switch_to_thread.
17767 (gdbsim_target::close): Update to call close_one_inferior.
17768 (struct resume_data): Remove.
17769 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17770 directly, rather than through a void pointer.
17771 (gdbsim_target::resume): Update to call resume_one_inferior.
17772
17773 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17774
17775 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17776
17777 2020-01-12 Pedro Alves <palves@redhat.com>
17778
17779 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17780 directly for the current inferior instead of
17781 discard_all_inferiors.
17782 (discard_all_inferiors): Delete.
17783
17784 2020-01-11 Tom Tromey <tom@tromey.com>
17785
17786 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17787 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17788 deprecated_safe_get_selected_frame.
17789
17790 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17791
17792 * inferior.c (print_inferior): Switch inferior before printing it.
17793
17794 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17795 Pedro Alves <palves@redhat.com>
17796
17797 * progspace-and-thread.c (switch_to_program_space_and_thread):
17798 Assert there's an inferior for PSPACE. Use
17799 switch_to_inferior_no_thread to switch the inferior too.
17800 * progspace.c (program_space::~program_space): Call
17801 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17802 (program_space::free_all_objfiles): Don't call clear_symtab_users
17803 here.
17804 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17805
17806 2020-01-10 Pedro Alves <palves@redhat.com>
17807
17808 * NEWS: Mention multi-target debugging, "info connections", and
17809 "add-inferior -no-connection".
17810
17811 2020-01-10 Pedro Alves <palves@redhat.com>
17812
17813 * infrun.c: Include "target-connection.h".
17814 (check_multi_target_resumption): New.
17815 (proceed): Call it.
17816 * target-connection.c (make_target_connection_string): Make
17817 extern.
17818 * target-connection.h (make_target_connection_string): Declare.
17819
17820 2020-01-10 Pedro Alves <palves@redhat.com>
17821
17822 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17823 * inferior.c (uiout_field_connection): New function.
17824 (print_inferior): Add new "connection-id" column.
17825 (add_inferior_command): Show connection number/string of added
17826 inferior.
17827 * process-stratum-target.h
17828 (process_stratum_target::connection_string): New virtual method.
17829 (process_stratum_target::connection_number): New field.
17830 * remote.c (remote_target::connection_string): New override.
17831 * target-connection.c: New file.
17832 * target-connection.h: New file.
17833 * target.c (decref_target): Remove process_stratum targets from
17834 the connection list.
17835 (target_stack::push): Add process_stratum targets to the
17836 connection list.
17837
17838 2020-01-10 Pedro Alves <palves@redhat.com>
17839
17840 Revert:
17841 2016-04-12 Pedro Alves <palves@redhat.com>
17842 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17843 Remove references to name.
17844 * serial.h (struct serial) <name>: Delete.
17845
17846 2020-01-10 Pedro Alves <palves@redhat.com>
17847
17848 * gdbarch-selftests.c (register_to_value_test): Remove "target
17849 already pushed" check.
17850
17851 2020-01-10 Pedro Alves <palves@redhat.com>
17852 John Baldwin <jhb@FreeBSD.org>
17853
17854 * aarch64-linux-nat.c
17855 (aarch64_linux_nat_target::thread_architecture): Adjust.
17856 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17857 (task_command_1): Likewise.
17858 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17859 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17860 (aix_thread_target::store_registers)
17861 (aix_thread_target::thread_alive): Adjust.
17862 * amd64-fbsd-tdep.c: Include "inferior.h".
17863 (amd64fbsd_get_thread_local_address): Pass down target.
17864 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17865 thread's gdbarch instead of target_gdbarch.
17866 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17867 get_last_target_status.
17868 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17869 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17870 inferiors.
17871 (update_inserted_breakpoint_locations): Skip if inferiors with no
17872 execution.
17873 (update_global_location_list): When handling moribund locations,
17874 find representative inferior for location's pspace, and use thread
17875 count of its process_stratum target.
17876 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17877 * bsd-uthread.c (bsd_uthread_target::wait): Use
17878 as_process_stratum_target and adjust thread_change_ptid and
17879 add_thread calls.
17880 (bsd_uthread_target::update_thread_list): Use
17881 as_process_stratum_target and adjust find_thread_ptid,
17882 thread_change_ptid and add_thread calls.
17883 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17884 find_thread_ptid call.
17885 * corelow.c (add_to_thread_list): Adjust add_thread call.
17886 (core_target_open): Adjust add_thread_silent and thread_count
17887 calls.
17888 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17889 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17890 * event-top.c (async_disconnect): Pop targets from all inferiors.
17891 * exec.c (add_target_sections): Push exec target on all inferiors
17892 sharing the program space.
17893 (remove_target_sections): Remove the exec target from all
17894 inferiors sharing the program space.
17895 (exec_on_vfork): New.
17896 * exec.h (exec_on_vfork): Declare.
17897 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17898 Pass it down.
17899 (fbsd_nat_target::update_thread_list): Adjust.
17900 (fbsd_nat_target::resume): Adjust.
17901 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17902 down.
17903 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17904 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17905 get_thread_arch_regcache call.
17906 * fork-child.c (gdb_startup_inferior): Pass target down to
17907 startup_inferior and set_executing.
17908 * gdbthread.h (struct process_stratum_target): Forward declare.
17909 (add_thread, add_thread_silent, add_thread_with_info)
17910 (in_thread_list): Add process_stratum_target parameter.
17911 (find_thread_ptid(inferior*, ptid_t)): New overload.
17912 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17913 parameter.
17914 (all_threads()): Delete overload.
17915 (all_threads, all_non_exited_threads): Add process_stratum_target
17916 parameter.
17917 (all_threads_safe): Use brace initialization.
17918 (thread_count): Add process_stratum_target parameter.
17919 (set_resumed, set_running, set_stop_requested, set_executing)
17920 (threads_are_executing, finish_thread_state): Add
17921 process_stratum_target parameter.
17922 (switch_to_thread): Use is_current_thread.
17923 * i386-fbsd-tdep.c: Include "inferior.h".
17924 (i386fbsd_get_thread_local_address): Pass down target.
17925 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17926 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17927 have_inferiors check.
17928 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17929 (inf_ptrace_target::attach): Adjust.
17930 * infcall.c (run_inferior_call): Adjust.
17931 * infcmd.c (run_command_1): Pass target to
17932 scoped_finish_thread_state.
17933 (proceed_thread_callback): Skip inferiors with no execution.
17934 (continue_command): Rename 'all_threads' local to avoid hiding
17935 'all_threads' function. Adjust get_last_target_status call.
17936 (prepare_one_step): Adjust set_running call.
17937 (signal_command): Use user_visible_resume_target. Compare thread
17938 pointers instead of inferior_ptid.
17939 (info_program_command): Adjust to pass down target.
17940 (attach_command): Mark target's 'thread_executing' flag.
17941 (stop_current_target_threads_ns): New, factored out from ...
17942 (interrupt_target_1): ... this. Switch inferior before making
17943 target calls.
17944 * inferior-iter.h
17945 (struct all_inferiors_iterator, struct all_inferiors_range)
17946 (struct all_inferiors_safe_range)
17947 (struct all_non_exited_inferiors_range): Filter on
17948 process_stratum_target too. Remove explicit.
17949 * inferior.c (inferior::inferior): Push dummy target on target
17950 stack.
17951 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17952 Add process_stratum_target parameter, and pass it down.
17953 (have_live_inferiors): Adjust.
17954 (switch_to_inferior_and_push_target): New.
17955 (add_inferior_command, clone_inferior_command): Handle
17956 "-no-connection" parameter. Use
17957 switch_to_inferior_and_push_target.
17958 (_initialize_inferior): Mention "-no-connection" option in
17959 the help of "add-inferior" and "clone-inferior" commands.
17960 * inferior.h: Include "process-stratum-target.h".
17961 (interrupt_target_1): Use bool.
17962 (struct inferior) <push_target, unpush_target, target_is_pushed,
17963 find_target_beneath, top_target, process_target, target_at,
17964 m_stack>: New.
17965 (discard_all_inferiors): Delete.
17966 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17967 (all_inferiors, all_non_exited_inferiors): Add
17968 process_stratum_target parameter.
17969 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17970 (target_last_proc_target): New global.
17971 (follow_fork_inferior): Push target on new inferior. Pass target
17972 to add_thread_silent. Call exec_on_vfork. Handle target's
17973 reference count.
17974 (follow_fork): Adjust get_last_target_status call. Also consider
17975 target.
17976 (follow_exec): Push target on new inferior.
17977 (struct execution_control_state) <target>: New field.
17978 (user_visible_resume_target): New.
17979 (do_target_resume): Call target_async.
17980 (resume_1): Set target's threads_executing flag. Consider resume
17981 target.
17982 (commit_resume_all_targets): New.
17983 (proceed): Also consider resume target. Skip threads of inferiors
17984 with no execution. Commit resumtion in all targets.
17985 (start_remote): Pass current inferior to wait_for_inferior.
17986 (infrun_thread_stop_requested): Consider target as well. Pass
17987 thread_info pointer to clear_inline_frame_state instead of ptid.
17988 (infrun_thread_thread_exit): Consider target as well.
17989 (random_pending_event_thread): New inferior parameter. Use it.
17990 (do_target_wait): Rename to ...
17991 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17992 down.
17993 (threads_are_resumed_pending_p, do_target_wait): New.
17994 (prepare_for_detach): Adjust calls.
17995 (wait_for_inferior): New inferior parameter. Handle it. Use
17996 do_target_wait_1 instead of do_target_wait.
17997 (fetch_inferior_event): Adjust. Switch to representative
17998 inferior. Pass target down.
17999 (set_last_target_status): Add process_stratum_target parameter.
18000 Save target in global.
18001 (get_last_target_status): Add process_stratum_target parameter and
18002 handle it.
18003 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
18004 (context_switch): Check inferior_ptid == null_ptid before calling
18005 inferior_thread().
18006 (get_inferior_stop_soon): Pass down target.
18007 (wait_one): Rename to ...
18008 (poll_one_curr_target): ... this.
18009 (struct wait_one_event): New.
18010 (wait_one): New.
18011 (stop_all_threads): Adjust.
18012 (handle_no_resumed, handle_inferior_event): Adjust to consider the
18013 event's target.
18014 (switch_back_to_stepped_thread): Also consider target.
18015 (print_stop_event): Update.
18016 (normal_stop): Update. Also consider the resume target.
18017 * infrun.h (wait_for_inferior): Remove declaration.
18018 (user_visible_resume_target): New declaration.
18019 (get_last_target_status, set_last_target_status): New
18020 process_stratum_target parameter.
18021 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
18022 process_stratum_target parameter, and use it.
18023 (clear_inline_frame_state (thread_info*)): New.
18024 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
18025 process_stratum_target parameter.
18026 (clear_inline_frame_state (thread_info*)): Declare.
18027 * linux-fork.c (delete_checkpoint_command): Pass target down to
18028 find_thread_ptid.
18029 (checkpoint_command): Adjust.
18030 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
18031 instead of just tweaking inferior_ptid.
18032 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
18033 (exit_lwp): Pass target down to find_thread_ptid.
18034 (attach_proc_task_lwp_callback): Pass target down to
18035 add_thread/set_running/set_executing.
18036 (linux_nat_target::attach): Pass target down to
18037 thread_change_ptid.
18038 (get_detach_signal): Pass target down to find_thread_ptid.
18039 Consider last target status's target.
18040 (linux_resume_one_lwp_throw, resume_lwp)
18041 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
18042 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
18043 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
18044 (linux_nat_target::async_wait_fd): New.
18045 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
18046 target down.
18047 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
18048 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
18049 * linux-thread-db.c (struct thread_db_info::process_target): New
18050 field.
18051 (add_thread_db_info): Save target.
18052 (get_thread_db_info): New process_stratum_target parameter. Also
18053 match target.
18054 (delete_thread_db_info): New process_stratum_target parameter.
18055 Also match target.
18056 (thread_from_lwp): Adjust to pass down target.
18057 (thread_db_notice_clone): Pass down target.
18058 (check_thread_db_callback): Pass down target.
18059 (try_thread_db_load_1): Always push the thread_db target.
18060 (try_thread_db_load, record_thread): Pass target down.
18061 (thread_db_target::detach): Pass target down. Always unpush the
18062 thread_db target.
18063 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
18064 target down. Always unpush the thread_db target.
18065 (find_new_threads_callback, thread_db_find_new_threads_2)
18066 (thread_db_target::update_thread_list): Pass target down.
18067 (thread_db_target::pid_to_str): Pass current inferior down.
18068 (thread_db_target::get_thread_local_address): Pass target down.
18069 (thread_db_target::resume, maintenance_check_libthread_db): Pass
18070 target down.
18071 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
18072 * procfs.c (procfs_target::procfs_init_inferior): Declare.
18073 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
18074 (procfs_init_inferior): Rename to ...
18075 (procfs_target::procfs_init_inferior): ... this and adjust.
18076 (procfs_target::create_inferior, procfs_notice_thread)
18077 (procfs_do_thread_registers): Adjust.
18078 * ppc-fbsd-tdep.c: Include "inferior.h".
18079 (ppcfbsd_get_thread_local_address): Pass down target.
18080 * proc-service.c (ps_xfer_memory): Switch current inferior and
18081 program space as well.
18082 (get_ps_regcache): Pass target down.
18083 * process-stratum-target.c
18084 (process_stratum_target::thread_address_space)
18085 (process_stratum_target::thread_architecture): Pass target down.
18086 * process-stratum-target.h
18087 (process_stratum_target::threads_executing): New field.
18088 (as_process_stratum_target): New.
18089 * ravenscar-thread.c
18090 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
18091 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
18092 down.
18093 * record-btrace.c (record_btrace_target::info_record): Adjust.
18094 (record_btrace_target::record_method)
18095 (record_btrace_target::record_is_replaying)
18096 (record_btrace_target::fetch_registers)
18097 (get_thread_current_frame_id, record_btrace_target::resume)
18098 (record_btrace_target::wait, record_btrace_target::stop): Pass
18099 target down.
18100 * record-full.c (record_full_wait_1): Switch to event thread.
18101 Pass target down.
18102 * regcache.c (regcache::regcache)
18103 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
18104 process_stratum_target parameter and handle it.
18105 (current_thread_target): New global.
18106 (get_thread_regcache): Add process_stratum_target parameter and
18107 handle it. Switch inferior before calling target method.
18108 (get_thread_regcache): Pass target down.
18109 (get_thread_regcache_for_ptid): Pass target down.
18110 (registers_changed_ptid): Add process_stratum_target parameter and
18111 handle it.
18112 (registers_changed_thread, registers_changed): Pass target down.
18113 (test_get_thread_arch_aspace_regcache): New.
18114 (current_regcache_test): Define a couple local test_target_ops
18115 instances and use them for testing.
18116 (readwrite_regcache): Pass process_stratum_target parameter.
18117 (cooked_read_test, cooked_write_test): Pass mock_target down.
18118 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
18119 (get_thread_arch_aspace_regcache): Add process_stratum_target
18120 parameter.
18121 (regcache::target): New method.
18122 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
18123 (regcache::registers_changed_ptid): Add process_stratum_target
18124 parameter.
18125 (regcache::m_target): New field.
18126 (registers_changed_ptid): Add process_stratum_target parameter.
18127 * remote.c (remote_state::supports_vCont_probed): New field.
18128 (remote_target::async_wait_fd): New method.
18129 (remote_unpush_and_throw): Add remote_target parameter.
18130 (get_current_remote_target): Adjust.
18131 (remote_target::remote_add_inferior): Push target.
18132 (remote_target::remote_add_thread)
18133 (remote_target::remote_notice_new_inferior)
18134 (get_remote_thread_info): Pass target down.
18135 (remote_target::update_thread_list): Skip threads of inferiors
18136 bound to other targets. (remote_target::close): Don't discard
18137 inferiors. (remote_target::add_current_inferior_and_thread)
18138 (remote_target::process_initial_stop_replies)
18139 (remote_target::start_remote)
18140 (remote_target::remote_serial_quit_handler): Pass down target.
18141 (remote_target::remote_unpush_target): New remote_target
18142 parameter. Unpush the target from all inferiors.
18143 (remote_target::remote_unpush_and_throw): New remote_target
18144 parameter. Pass it down.
18145 (remote_target::open_1): Check whether the current inferior has
18146 execution instead of checking whether any inferior is live. Pass
18147 target down.
18148 (remote_target::remote_detach_1): Pass down target. Use
18149 remote_unpush_target.
18150 (extended_remote_target::attach): Pass down target.
18151 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
18152 (remote_target::append_resumption): Pass down target.
18153 (remote_target::append_pending_thread_resumptions)
18154 (remote_target::remote_resume_with_hc, remote_target::resume)
18155 (remote_target::commit_resume): Pass down target.
18156 (remote_target::remote_stop_ns): Check supports_vCont_probed.
18157 (remote_target::interrupt_query)
18158 (remote_target::remove_new_fork_children)
18159 (remote_target::check_pending_events_prevent_wildcard_vcont)
18160 (remote_target::remote_parse_stop_reply)
18161 (remote_target::process_stop_reply): Pass down target.
18162 (first_remote_resumed_thread): New remote_target parameter. Pass
18163 it down.
18164 (remote_target::wait_as): Pass down target.
18165 (unpush_and_perror): New remote_target parameter. Pass it down.
18166 (remote_target::readchar, remote_target::remote_serial_write)
18167 (remote_target::getpkt_or_notif_sane_1)
18168 (remote_target::kill_new_fork_children, remote_target::kill): Pass
18169 down target.
18170 (remote_target::mourn_inferior): Pass down target. Use
18171 remote_unpush_target.
18172 (remote_target::core_of_thread)
18173 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18174 (remote_target::pid_to_exec_file)
18175 (remote_target::thread_handle_to_thread_info): Pass down target.
18176 (remote_target::async_wait_fd): New.
18177 * riscv-fbsd-tdep.c: Include "inferior.h".
18178 (riscv_fbsd_get_thread_local_address): Pass down target.
18179 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18180 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18181 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18182 Adjust.
18183 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18184 * solib-svr4.c (enable_break): Pass down target.
18185 * spu-multiarch.c (parse_spufs_run): Pass down target.
18186 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18187 * target-delegates.c: Regenerate.
18188 * target.c (g_target_stack): Delete.
18189 (current_top_target): Return the current inferior's top target.
18190 (target_has_execution_1): Refer to the passed-in inferior's top
18191 target.
18192 (target_supports_terminal_ours): Check whether the initial
18193 inferior was already created.
18194 (decref_target): New.
18195 (target_stack::push): Incref/decref the target.
18196 (push_target, push_target, unpush_target): Adjust.
18197 (target_stack::unpush): Defref target.
18198 (target_is_pushed): Return bool. Adjust to refer to the current
18199 inferior's target stack.
18200 (dispose_inferior): Delete, and inline parts ...
18201 (target_preopen): ... here. Only dispose of the current inferior.
18202 (target_detach): Hold strong target reference while detaching.
18203 Pass target down.
18204 (target_thread_name): Add assertion.
18205 (target_resume): Pass down target.
18206 (target_ops::beneath, find_target_at): Adjust to refer to the
18207 current inferior's target stack.
18208 (get_dummy_target): New.
18209 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18210 has a thread running.
18211 (initialize_targets): Rename to ...
18212 (_initialize_target): ... this.
18213 * target.h: Include "gdbsupport/refcounted-object.h".
18214 (struct target_ops): Inherit refcounted_object.
18215 (target_ops::shortname, target_ops::longname): Make const.
18216 (target_ops::async_wait_fd): New method.
18217 (decref_target): Declare.
18218 (struct target_ops_ref_policy): New.
18219 (target_ops_ref): New typedef.
18220 (get_dummy_target): Declare function.
18221 (target_is_pushed): Return bool.
18222 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18223 (all_matching_threads_iterator::all_matching_threads_iterator):
18224 Handle filter target.
18225 * thread-iter.h (struct all_matching_threads_iterator, struct
18226 all_matching_threads_range, class all_non_exited_threads_range):
18227 Filter by target too. Remove explicit.
18228 * thread.c (threads_executing): Delete.
18229 (inferior_thread): Pass down current inferior.
18230 (clear_thread_inferior_resources): Pass down thread pointer
18231 instead of ptid_t.
18232 (add_thread_silent, add_thread_with_info, add_thread): Add
18233 process_stratum_target parameter. Use it for thread and inferior
18234 searches.
18235 (is_current_thread): New.
18236 (thread_info::deletable): Use it.
18237 (find_thread_ptid, thread_count, in_thread_list)
18238 (thread_change_ptid, set_resumed, set_running): New
18239 process_stratum_target parameter. Pass it down.
18240 (set_executing): New process_stratum_target parameter. Pass it
18241 down. Adjust reference to 'threads_executing'.
18242 (threads_are_executing): New process_stratum_target parameter.
18243 Adjust reference to 'threads_executing'.
18244 (set_stop_requested, finish_thread_state): New
18245 process_stratum_target parameter. Pass it down.
18246 (switch_to_thread): Also match inferior.
18247 (switch_to_thread): New process_stratum_target parameter. Pass it
18248 down.
18249 (update_threads_executing): Reimplement.
18250 * top.c (quit_force): Pop targets from all inferior.
18251 (gdb_init): Don't call initialize_targets.
18252 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18253 Declare.
18254 (windows_add_thread, windows_delete_thread): Adjust.
18255 (get_windows_debug_event): Rename to ...
18256 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18257 * tracefile-tfile.c (tfile_target_open): Pass down target.
18258 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18259 Forward declare.
18260 (switch_to_thread): Add process_stratum_target parameter.
18261 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18262 parameter. Use it.
18263 (mi_on_resume): Pass target down.
18264 * nat/fork-inferior.c (startup_inferior): Add
18265 process_stratum_target parameter. Pass it down.
18266 * nat/fork-inferior.h (startup_inferior): Add
18267 process_stratum_target parameter.
18268 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18269
18270 2020-01-10 Pedro Alves <palves@redhat.com>
18271
18272 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18273 directly. Instead find the first thread in the thread list and
18274 use switch_to_thread.
18275
18276 2020-01-10 Pedro Alves <palves@redhat.com>
18277
18278 * remote.c (remote_target::remote_add_inferior): Don't bind a
18279 process to the current inferior if the current inferior is already
18280 bound to a process.
18281
18282 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18283 Pedro Alves <palves@redhat.com>
18284
18285 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18286 If no process is specified, return null_ptid instead of
18287 inferior_ptid.
18288 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18289 TARGET_WAITKIND_SIGNALLED with no pid.
18290
18291 2020-01-10 Pedro Alves <palves@redhat.com>
18292
18293 * remote.c (first_remote_resumed_thread): New.
18294 (remote_target::wait_as): Use it as default event_ptid instead of
18295 inferior_ptid.
18296
18297 2020-01-10 Pedro Alves <palves@redhat.com>
18298
18299 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18300
18301 2020-01-10 Pedro Alves <palves@redhat.com>
18302
18303 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18304 not -1.
18305
18306 2020-01-10 Pedro Alves <palves@redhat.com>
18307
18308 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18309 ptid to get_last_target_status.
18310 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18311 ptid to get_last_target_status.
18312 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18313 get_last_target_status.
18314 (info_program_command): Don't pass a target_waitstatus to
18315 get_last_target_status.
18316 * infrun.c (init_wait_for_inferior): Use
18317 nullify_last_target_wait_ptid.
18318 (get_last_target_status): Handle nullptr arguments.
18319 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18320 (print_stop_event): Don't pass a ptid to get_last_target_status.
18321 (normal_stop): Don't pass a ptid to get_last_target_status.
18322 * infrun.h (get_last_target_status, set_last_target_status): Move
18323 comments here and update.
18324 (nullify_last_target_wait_ptid): Declare.
18325 * linux-fork.c (fork_load_infrun_state): Remove local extern
18326 declaration of nullify_last_target_wait_ptid.
18327 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18328 to get_last_target_status.
18329
18330 2020-01-10 Pedro Alves <palves@redhat.com>
18331
18332 * gdbthread.h (scoped_restore_current_thread)
18333 <dont_restore, restore, m_dont_restore>: Declare.
18334 * thread.c (thread_alive): Add assertion. Return bool.
18335 (switch_to_thread_if_alive): New.
18336 (prune_threads): Switch inferior/thread.
18337 (print_thread_info_1): Switch thread before calling target methods.
18338 (scoped_restore_current_thread::restore): New, factored out from
18339 ...
18340 (scoped_restore_current_thread::~scoped_restore_current_thread):
18341 ... this.
18342 (scoped_restore_current_thread::scoped_restore_current_thread):
18343 Add assertion.
18344 (thread_apply_all_command, thread_select): Use
18345 switch_to_thread_if_alive.
18346 * infrun.c (proceed, restart_threads, handle_signal_stop)
18347 (switch_back_to_stepped_thread): Switch current thread before
18348 calling target methods.
18349
18350 2020-01-10 Pedro Alves <palves@redhat.com>
18351
18352 * inferior.c (switch_to_inferior_no_thread): New function,
18353 factored out from ...
18354 (inferior_command): ... here.
18355 * inferior.h (switch_to_inferior_no_thread): Declare.
18356 * mi/mi-main.c (run_one_inferior): Use
18357 switch_to_inferior_no_thread.
18358
18359 2020-01-10 Pedro Alves <palves@redhat.com>
18360
18361 * infcmd.c (kill_command): Remove dead code.
18362
18363 2020-01-10 Pedro Alves <palves@redhat.com>
18364
18365 * remote.c (remote_target::mourn_inferior): No longer check
18366 whether the target is running.
18367
18368 2020-01-10 Pedro Alves <palves@redhat.com>
18369
18370 * corelow.c (core_target::has_execution): Change parameter type to
18371 inferior pointer.
18372 * inferior.c (number_of_live_inferiors): Use
18373 inferior::has_execution instead of target_has_execution_1.
18374 * inferior.h (inferior::has_execution): New.
18375 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18376 inferior::has_execution instead of target_has_execution_1.
18377 * process-stratum-target.c
18378 (process_stratum_target::has_execution): Change parameter type to
18379 inferior pointer. Check the inferior's PID instead of
18380 inferior_ptid.
18381 * process-stratum-target.h
18382 (process_stratum_target::has_execution): Change parameter type to
18383 inferior pointer.
18384 * record-full.c (record_full_core_target::has_execution): Change
18385 parameter type to inferior pointer.
18386 * target.c (target_has_execution_1): Change parameter type to
18387 inferior pointer.
18388 (target_has_execution_current): Adjust.
18389 * target.h (target_ops::has_execution): Change parameter type to
18390 inferior pointer.
18391 (target_has_execution_1): Change parameter type to inferior
18392 pointer. Change return type to bool.
18393 * tracefile.h (tracefile_target::has_execution): Change parameter
18394 type to inferior pointer.
18395
18396 2020-01-10 Pedro Alves <palves@redhat.com>
18397
18398 * exceptions.c (print_flush): Remove current_top_target() check.
18399
18400 2020-01-10 Pedro Alves <palves@redhat.com>
18401
18402 * remote.c (show_remote_exec_file): Show the current inferior's
18403 exec-file instead of the command variable's value.
18404
18405 2020-01-10 Pedro Alves <palves@redhat.com>
18406
18407 * record-full.c (record_full_resume_ptid): New global.
18408 (record_full_target::resume): Set it.
18409 (record_full_wait_1): Use record_full_resume_ptid instead of
18410 inferior_ptid.
18411
18412 2020-01-10 Pedro Alves <palves@redhat.com>
18413
18414 * gdbthread.h (scoped_restore_current_thread)
18415 <dont_restore, restore, m_dont_restore>: Declare.
18416 * thread.c (thread_alive): Add assertion. Return bool.
18417 (switch_to_thread_if_alive): New.
18418 (prune_threads): Switch inferior/thread.
18419 (print_thread_info_1): Switch thread before calling target methods.
18420 (scoped_restore_current_thread::restore): New, factored out from
18421 ...
18422 (scoped_restore_current_thread::~scoped_restore_current_thread):
18423 ... this.
18424 (scoped_restore_current_thread::scoped_restore_current_thread):
18425 Add assertion.
18426 (thread_apply_all_command, thread_select): Use
18427 switch_to_thread_if_alive.
18428
18429 2020-01-10 George Barrett <bob@bob131.so>
18430
18431 * stap-probe.c (stap_modify_semaphore): Don't check for null
18432 semaphores.
18433 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18434 for null semaphores.
18435
18436 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18437
18438 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18439 all source windows, and maintain horizontal scroll status while
18440 doing so.
18441
18442 2020-01-09 Tom Tromey <tom@tromey.com>
18443
18444 PR tui/18932:
18445 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18446 update_source_window, not print_source_lines.
18447
18448 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18449
18450 * tui/tui.c (tui_enable): Register tui hooks after calling
18451 tui_display_main.
18452
18453 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18454
18455 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18456
18457 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18458
18459 * thread.c (print_thread_info_1): Fix indentation.
18460
18461 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18462
18463 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18464 unique_xmalloc_ptr outside the if to always free the demangled name.
18465
18466 2020-01-08 Tom Tromey <tromey@adacore.com>
18467
18468 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18469 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18470 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18471 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18472 Remove.
18473 (section_offsets): New typedef.
18474 * symtab.c (fixup_section, get_msymbol_address): Update.
18475 * symmisc.c (dump_msymbols): Update.
18476 * symfile.h (relative_addr_info_to_section_offsets)
18477 (symfile_map_offsets_to_segments): Update.
18478 * symfile.c (build_section_addr_info_from_objfile)
18479 (init_objfile_sect_indices): Update.
18480 (struct place_section_arg): Change type of "offsets".
18481 (place_section): Update.
18482 (relative_addr_info_to_section_offsets): Change type of
18483 "section_offsets". Remove "num_sections" parameter.
18484 (default_symfile_offsets, syms_from_objfile_1)
18485 (set_objfile_default_section_offset): Update.
18486 (reread_symbols): No need to preserve section offsets by hand.
18487 (symfile_map_offsets_to_segments): Change type of "offsets".
18488 * stap-probe.c (relocate_address): Update.
18489 * stabsread.h (process_one_symbol): Update.
18490 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18491 (solib_target_relocate_section_addresses): Update.
18492 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18493 Update.
18494 * solib-frv.c (frv_relocate_main_executable): Update.
18495 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18496 * solib-aix.c (solib_aix_get_section_offsets): Change return
18497 type.
18498 (solib_aix_solib_create_inferior_hook): Update.
18499 * remote.c (remote_target::get_offsets): Update.
18500 * psymtab.c (find_pc_sect_psymtab): Update.
18501 * psympriv.h (struct partial_symbol) <address, text_low,
18502 text_high>: Update.
18503 * objfiles.h (obj_section_offset): Update.
18504 (struct objfile) <section_offsets>: Change type.
18505 <num_sections>: Remove.
18506 (objfile_relocate): Update.
18507 * objfiles.c (entry_point_address_query): Update
18508 (relocate_one_symbol): Change type of "section_offsets".
18509 (objfile_relocate1, objfile_relocate1): Change type of
18510 "new_offsets".
18511 (objfile_rebase1): Update.
18512 * mipsread.c (mipscoff_symfile_read): Update.
18513 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18514 parameter.
18515 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18516 (parse_external, psymtab_to_symtab_1): Update.
18517 * machoread.c (macho_symfile_offsets): Update.
18518 * ia64-tdep.c (ia64_find_unwind_table): Update.
18519 * hppa-tdep.c (read_unwind_info): Update.
18520 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18521 * dwarf2read.c (create_addrmap_from_index)
18522 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18523 (process_psymtab_comp_unit_reader, add_partial_symbol)
18524 (add_partial_subprogram, process_full_comp_unit)
18525 (read_file_scope, read_func_scope, read_lexical_block_scope)
18526 (read_call_site_scope, dwarf2_rnglists_process)
18527 (dwarf2_ranges_process, dwarf2_ranges_read)
18528 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18529 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18530 Update.
18531 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18532 Update.
18533 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18534 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18535 (process_one_symbol): Change type of "section_offsets".
18536 * ctfread.c (get_objfile_text_range): Update.
18537 * coffread.c (coff_symtab_read, enter_linenos)
18538 (process_coff_symbol): Update.
18539 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18540 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18541
18542 2020-01-08 Tom Tromey <tromey@adacore.com>
18543
18544 * dwarf2read.c (parse_macro_definition): Use std::string.
18545 (parse_macro_definition): Likewise.
18546
18547 2020-01-08 Tom Tromey <tromey@adacore.com>
18548
18549 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18550 (ATTR_ALLOC_CHUNK): Remove.
18551
18552 2020-01-08 Tom Tromey <tromey@adacore.com>
18553
18554 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18555
18556 2020-01-08 Tom Tromey <tromey@adacore.com>
18557
18558 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18559 (dwarf2_compute_name, open_dwo_file): Likewise.
18560 (process_enumeration_scope): Use std::vector.
18561 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18562 (partial_die_info::fixup, dwarf2_start_subfile)
18563 (guess_full_die_structure_name, dwarf2_name): Likewise.
18564 (determine_prefix): Update.
18565 (guess_full_die_structure_name): Make return type const.
18566 (partial_die_full_name): Return unique_xmalloc_ptr.
18567 (DW_FIELD_ALLOC_CHUNK): Remove.
18568
18569 2020-01-07 Tom Tromey <tromey@adacore.com>
18570
18571 PR build/24937:
18572 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18573
18574 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18575
18576 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18577
18578 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18579
18580 * stack.c (print_frame_info): Move disassemble_next_line code
18581 inside source_print block.
18582
18583 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18584
18585 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18586 gdb/signals.h, as we are now using native signal symbols.
18587
18588 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18589
18590 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18591 overflow by an early check of content vs threshold.
18592 * tui/tui-source.c (tui_source_window::line_is_displayed):
18593 Likewise.
18594
18595 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18596
18597 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18598
18599 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18600
18601 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18602 export table if no section contains it's RVA.
18603
18604 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18605
18606 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18607
18608 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18609
18610 * source.c (print_source_lines_base): Set last_line_listed.
18611
18612 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18613
18614 * tui/tui-disasm.c: Remove trailing spaces.
18615
18616 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18617 Pedro Alves <palves@redhat.com>
18618
18619 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18620 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18621 (windows_gdb_signal_to_target): New function, uses the above
18622 enumeration to convert GDB internal signal codes to equivalent
18623 Windows codes.
18624 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18625 * windows-nat.c: Include "gdb_wait.h".
18626 (get_windows_debug_event): Extract the fatal exception from the
18627 exit status and convert to the equivalent Posix signal number.
18628 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18629 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18630 * gdbsupport/gdb_wait.c: New file, implements
18631 windows_status_to_termsig.
18632 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18633 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18634
18635 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18636
18637 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18638 show_layout.
18639
18640 2020-01-05 Luis Machado <luis.machado@linaro.org>
18641
18642 * aarch64-linux-nat.c
18643 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18644 and bfd_mach_aarch64.
18645
18646 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18647
18648 * ui-file.c (stdio_file::can_emit_style_escape)
18649 (tee_file::can_emit_style_escape): Ensure style is used also on
18650 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18651 to gdb_stdout.
18652 * main.c (set_gdb_data_directory): Use file style to output the
18653 warning that the given pathname is not a directory.
18654 * top.c (show_history_filename, gdb_safe_append_history)
18655 (show_gdb_datadir): Use file style.
18656
18657 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18658
18659 * solib-target.c (struct lm_info_target):
18660 Change offsets to be a unique_xmalloc_ptr.
18661 (solib_target_relocate_section_addresses): Update.
18662
18663 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18664
18665 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18666
18667 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18668
18669 * MAINTAINERS (Write After Approval): Add myself.
18670
18671 2020-01-02 Luis Machado <luis.machado@linaro.org>
18672
18673 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18674 Cell BE architecture.
18675 * target.h (struct target_ops) <thread_architecture>: Likewise.
18676
18677 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18678
18679 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18680
18681 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18682
18683 * MAINTAINERS (Write After Approval): Add myself.
18684
18685 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18686
18687 * gdbarch.sh: Update copyright year range of generated files.
18688
18689 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18690
18691 Update copyright year range in all GDB files.
18692
18693 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18694
18695 * copyright.py: Convert to Python 3.
18696
18697 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18698
18699 * copyright.py: Adapt after move of gnulib directory from gdb
18700 directory to toplevel directory.
18701
18702 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18703
18704 * copyright.py (main): Exit if run from the wrong directory.
18705
18706 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18707
18708 * top.c (print_gdb_version): Change copyright year to 2020.
18709
18710 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18711
18712 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18713
18714 For older changes see ChangeLog-2019.
18715 \f
18716 Local Variables:
18717 mode: change-log
18718 left-margin: 8
18719 fill-column: 74
18720 version-control: never
18721 coding: utf-8
18722 End: