]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 PR gdb/27059
4 * eval.c (evaluate_subexp_for_sizeof): Handle not allocated and
5 not associated arrays.
6 * f-lang.c (fortran_adjust_dynamic_array_base_address_hack): Don't
7 adjust arrays that are not allocated/associated.
8 * gdbtypes.c (resolve_dynamic_range): Update header comment. Add
9 new parameter which is used to sometimes set dynamic properties to
10 undefined.
11 (resolve_dynamic_array_or_string): Update header comment. Add new
12 parameter which is used to guard evaluating dynamic properties.
13 Resolve allocated/associated properties first.
14
15 2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * gdbtypes (recursive_dump_type): Include allocated and associated
18 properties.
19
20 2020-12-24 Lancelot SIX <lsix@lancelotsix.com>
21
22 * gdbtypes.c (is_scalar_type_recursive): Prevent comparison
23 between uninitialized values.
24
25 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * expprint.c (print_subexp_standard): Replace uses of
28 LA_PRINT_STRING.
29 * f-valprint.c (f_language::value_print_inner): Likewise.
30 * guile/scm-pretty-print.c (ppscm_print_string_repr): Likewise.
31 * p-valprint.c (pascal_language::value_print_inner): Likewise.
32 * python/py-prettyprint.c (print_string_repr): Likewise.
33
34 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * rust-exp.y (rust_parse): Rename to...
37 (rust_language::parser): ...this.
38 * rust-lang.c (-rust_printstr): Rename to...
39 (rust_language::printstr): ...this.
40 (rust_value_print_inner): Delete declaration.
41 (val_print_struct): Rename to...
42 (rust_language::val_print_struct): ...this. Update calls to
43 member functions.
44 (rust_print_enum): Rename to...
45 (rust_language::print_enum): ...this. Update calls to member
46 functions.
47 (rust_value_print_inner): Rename to...
48 (rust_language::value_print_inner): ...this. Update calls to
49 member functions.
50 (exp_descriptor_rust): Rename to...
51 (rust_language::exp_descriptor_tab): ...this.
52 (class rust_language): Move to rust-lang.h.
53 (rust_language::language_arch_info): Implementation moved to here
54 from class declaration.
55 (rust_language::print_type): Likewise.
56 (rust_language::emitchar): Likewise.
57 (rust_language::is_string_type_p): Likewise.
58 * rust-lang.h: Add 'demangle.h', 'language.h', 'value.h', and
59 'c-lang.h' includes.
60 (rust_parse): Delete declaration.
61 (class rust_language): Class declaration moved here from
62 rust-lang.c.
63
64 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * objc-lang.c (objc_language::opcode_print_table): Return
67 objc_op_print_tab.
68
69 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * p-exp.y (exp): Update call to pascal_is_string_type.
72 (pascal_parse): Rename to...
73 (pascal_language::parser): ...this.
74 * p-lang.c (is_pascal_string_type): Rename to...
75 (pascal_is_string_type): ...this.
76 (pascal_one_char): Rename to...
77 (pascal_language::print_one_char): ...this.
78 (pascal_printchar): Rename to...
79 (pascal_language::printchar): ...this. Update call to
80 print_one_char member function.
81 (pascal_op_print_tab): Rename to...
82 (pascal_language::op_print_tab): ...this.
83 (class pascal_language): Moved to p-lang.h.
84 (pascal_language::language_arch_info): Function implementation
85 moved out of class declaration.
86 (pascal_language::printstr): Likewise.
87 * p-lang.h (pascal_parse): Delete declaration.
88 (pascal_is_string_type): Declare.
89 (pascal_print_type): Delete declaration.
90 (pascal_print_typedef): Delete declaration.
91 (pascal_value_print_inner): Delete declaration.
92 (pascal_value_print): Delete declaration.
93 (pascal_type_print_method_args): Delete declaration.
94 (is_pascal_string_type): Delete declaration.
95 (pascal_printchar): Delete declaration.
96 (pascal_builtin_types): Delete declaration.
97 (pascal_type_print_base): Delete declaration.
98 (pascal_type_print_varspec_prefix): Delete declaration.
99 (class pascal_language): Moved here from p-lang.c.
100 * p-typeprint.c (pascal_type_print_varspec_suffix): Delete
101 declaration.
102 (pascal_type_print_derivation_info): Delete declaration.
103 (pascal_print_type): Rename to...
104 (pascal_language::print_type): ...this. Update calls to member
105 functions.
106 (pascal_print_typedef): Rename to...
107 (pascal_language::print_typedef): ...this. Update calls to member
108 functions.
109 (pascal_type_print_derivation_info): Rename to...
110 (pascal_language::type_print_derivation_info): ...this.
111 (pascal_type_print_method_args): Rename to...
112 (pascal_language::type_print_method_args): ...this.
113 (pascal_type_print_varspec_prefix): Rename to...
114 (pascal_language::type_print_varspec_prefix): ...this. Update
115 calls to member functions.
116 (pascal_print_func_args): Rename to...
117 (pascal_language::print_func_args): ...this. Update calls to
118 member functions.
119 (pascal_type_print_func_varspec_suffix): Rename to...
120 (pascal_language::type_print_func_varspec_suffix): ...this.
121 Update calls to member functions.
122 (pascal_type_print_varspec_suffix): Rename to...
123 (pascal_language::type_print_varspec_suffix): ...this. Update
124 calls to member functions.
125 (pascal_type_print_base): Rename to...
126 (pascal_language::type_print_base): ...this. Update calls to
127 member functions.
128 * p-valprint.c (pascal_value_print_inner): Rename to...
129 (pascal_language::value_print_inner): ...this. Update calls to
130 member functions.
131 (pascal_value_print): Rename to...
132 (pascal_language::value_print): ...this. Update calls to member
133 functions.
134
135 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
136
137 * go-exp.y (go_parse): Rename to...
138 (go_language::parser): ...this.
139 * go-lang.c (go_demangle): Rename to...
140 (go_language::demangle_symbol): ...this.
141 (go_language::expression_ops): Implementation moved here out of
142 class declaration.
143 (go_op_print_tab): Rename to...
144 (go_language::op_print_tab): ...this, update comment.
145 (class go_language): Declaration moved to go-lang.h.
146 (go_language::language_arch_info): Implementation moved here out
147 of class declaration.
148 * go-lang.h (go_parse): Delete declaration.
149 (go_demangle): Delete declaration.
150 (go_print_type): Delete declaration.
151 (go_value_print_inner): Delete declaration.
152 (class go_language): Declaration moved here from go-lang.c.
153 * go-typeprint.c (go_print_type): Rename to...
154 (go_language::print_type): ...this.
155 * go-valprint.c (go_value_print_inner): Rename to...
156 (go_language::value_print_inner): ...this.
157 * symtab.c (demangle_for_lookup): Call demangle_symbol method on
158 the go_language object.
159
160 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
161
162 * c-lang.c (language_defn::printchar): Call emitchar, not
163 LA_EMIT_CHAR.
164 * f-lang.h (f_language::printchar): Likewise.
165 * language.h (LA_EMIT_CHAR): Delete macro.
166 * rust-lang.c (rust_language::printchar): Call emitchar, not
167 LA_EMIT_CHAR.
168
169 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
170
171 * c-lang.c (c_printchar): Rename to...
172 (language_defn::printchar): ...this.
173 * c-lang.h (c_printchar): Delete declaration.
174 * language.c (language_defn::printchar): Delete this
175 implementation. Is now implemented in c-lang.c.
176
177 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
178
179 * dwarf2/read.c (dwarf2_compute_name): Call methods on C++
180 language object instead of calling global functions directly.
181
182 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
183
184 * valprint.c (print_char_chars): Delete definition.
185 * valprint.h (print_char_chars): Delete declaration.
186
187 2020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
188
189 * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
190 macro.
191 (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
192 second parameter, which is a small sigcode in the legacy case, and a
193 pointer in the siginfo case.
194
195 * MAINTAINERS (Write After Approval): Add myself.
196
197 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
198
199 * frame.c: Remove trailing white spaces.
200 * frame.h: Likewise.
201
202 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
203
204 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
205
206 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
207
208 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
209 * configure.host (host to gdb names): Add arc*-*-linux*.
210 * configure.nat (gdb_host_cpu): Add arc.
211 * arc-linux-nat.c: New.
212
213 2020-12-22 Shahab Vahedi <shahab@synopsys.com>
214
215 * arc-linux-tdep.c (supply_register): New.
216 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
217 arc_linux_collect_v2_regset): Consider REGNUM.
218
219 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
220
221 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
222 (arc_linux_is_sigtramp): New function.
223 (arc_linux_sigcontext_addr): Likewise.
224 (arc_linux_init_osabi): Use them.
225
226 2020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
227
228 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
229 (arc_sigtramp_frame_this_id): Likewise.
230 (arc_sigtramp_frame_prev_register): Likewise.
231 (arc_sigtramp_frame_sniffer): Likewise.
232 (arc_siftramp_frame_unwind): New global variable.
233 (arc_gdbarch_init): Use sigtramp capabilities.
234 (arc_dump_tdep): Print sigtramp fields.
235 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
236
237 2020-12-21 Tom Tromey <tom@tromey.com>
238
239 * expression.h (enum noside): Move earlier.
240
241 2020-12-21 Peter Waller <p@pwaller.net>
242
243 * interps.c (interpreter_exec_cmd): Restore streams pointers.
244
245 2020-12-21 Markus Metzger <markus.t.metzger@intel.com>
246
247 * record.c (require_record_target): Rephrase error message.
248 (info_record_command): Likewise.
249
250 2020-12-19 Hannes Domani <ssbssa@yahoo.de>
251
252 PR exp/27070
253 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
254
255 2020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
256
257 * configure.ac: Move the static libs vs. source-highlight
258 error message to a better place.
259 * configure: Regenerate.
260
261 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
262
263 * gdb-gdb.py.in: Fix main_type field name.
264
265 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
266
267 * python/py-value.c (valpy_format_string): Implement address keyword.
268
269 2020-12-18 Hannes Domani <ssbssa@yahoo.de>
270
271 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
272
273 2020-12-18 Jameson Nash <vtjnash@gmail.com>
274
275 * coffread.c (linetab_offset): Change type to file_ptr.
276 (linetab_size): Likewise.
277 (enter_linenos): Change parameter type to file_ptr.
278 (init_lineno): Likewise.
279 (init_stringtab): Likewise.
280 (coff_symtab_read): Likewise.
281 (coff_symfile_read): Change variable types to file_ptr.
282
283 2020-12-17 Tom Tromey <tromey@adacore.com>
284
285 * printcmd.c (print_variable_and_value): Don't use n_spaces.
286
287 2020-12-17 Tom Tromey <tromey@adacore.com>
288
289 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
290 (print_gnat_stuff, print_fixed_point_type_info)
291 (recursive_dump_type): Update.
292 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
293 * c-typeprint.c (c_type_print_base_struct_union)
294 (c_type_print_base_1): Update.
295 * rust-lang.c (rust_internal_print_type): Update.
296 * f-typeprint.c (f_language::f_type_print_base): Update.
297 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
298 * m2-typeprint.c (m2_record_fields): Update.
299 * p-typeprint.c (pascal_type_print_base): Update.
300 * compile/compile-loc2c.c (push, pushf, unary, binary)
301 (do_compile_dwarf_expr_to_c): Update.
302 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
303
304 2020-12-16 Tom Tromey <tom@tromey.com>
305
306 * rust-exp.y (rust_lex_tests): Update.
307 * parser-defs.h (parser_state): Add void_p parameter.
308 <void_context_p>: New member.
309 * parse.c (parse_exp_in_context): Update.
310 * language.h (language_defn::post_parser): Remove void_context_p,
311 completing, tracker parameters. Add parser state.
312 * ada-lang.c (ada_language::post_parser): Update.
313
314 2020-12-16 Tom Tromey <tom@tromey.com>
315
316 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
317 (parse_exp_in_context): Change void_context_p to bool.
318 * language.h (struct language_defn) <post_parser>: Change
319 void_context_p to bool.
320 * ada-lang.c (class ada_language) <post_parser>: Update.
321
322 2020-12-16 Tom Tromey <tom@tromey.com>
323 Tom Tromey <tromey@redhat.com>
324 Tom de Vries <tdevries@suse.de>
325
326 * utils.h (get_chars_per_line): Declare.
327 * utils.c (get_chars_per_line): New function.
328 (fputs_maybe_filtered): Handle '\r'.
329 * ui-out.h (ui_out::progress_meter): New class.
330 (ui_out::progress, ui_out::do_progress_start)
331 (ui_out::do_progress_notify, ui_out::do_progress_end): New
332 methods.
333 * ui-out.c (do_progress_end)
334 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
335 functions.
336 * mi/mi-out.h (mi_ui_out::do_progress_start)
337 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
338 methods.
339 * cli-out.h (struct cli_ui_out) <do_progress_start,
340 do_progress_notify, do_progress_end>: New methods.
341 <enum meter_stat, struct cli_progress_info>: New.
342 <m_meters>: New member.
343 * cli-out.c (cli_ui_out::do_progress_start)
344 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
345 methods.
346
347 2020-12-16 Luis Machado <luis.machado@linaro.org>
348
349 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
350
351 2020-12-16 Luis Machado <luis.machado@linaro.org>
352
353 * aarch64-linux-nat.c
354 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
355
356 2020-12-15 Rae Kim <rae.kim@gmail.com>
357
358 * cli/cli-script.c (do_document_command): Rename from
359 document_command. Handle multi-line input.
360 (multi_line_command_p): Handle document_control.
361 (build_command_line): Likewise.
362 (execute_control_command_1): Likewise.
363 (process_next_line): Likewise.
364 (document_command): Call do_document_command.
365 * cli/cli-script.h (enum command_control_type): Add
366 document_control.
367
368 2020-12-15 Tom Tromey <tom@tromey.com>
369
370 * stap-probe.c (stap_probe::evaluate_argument): Use
371 evaluate_expression.
372 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
373 evaluate_expression.
374 * value.h (evaluate_expression): Add expect_type parameter.
375 * objc-lang.c (print_object_command): Call evaluate_expression.
376 * eval.c (evaluate_expression): Add expect_type parameter.
377
378 2020-12-15 Tom Tromey <tom@tromey.com>
379
380 * varobj.c (varobj_create): Use first_opcode.
381 * value.c (init_if_undefined_command): Use first_opcode.
382 * typeprint.c (whatis_exp): Use first_opcode.
383 * tracepoint.c (validate_actionline): Use first_opcode.
384 (encode_actions_1): Use first_opcode.
385 * stack.c (return_command): Use first_opcode.
386 * expression.h (struct expression) <first_opcode>: New method.
387 * eval.c (parse_and_eval_type): Use first_opcode.
388 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
389
390 2020-12-15 Tom Tromey <tom@tromey.com>
391
392 * f-lang.c (evaluate_subexp_f): Update.
393 * expression.h (evaluate_subexp_do_call): Update.
394 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
395 nargs, argvec with array_view.
396 (evaluate_funcall): Update.
397
398 2020-12-15 Tom Tromey <tom@tromey.com>
399
400 * ada-lang.c (num_component_specs): Remove.
401 (assign_aggregate): Update.
402 (aggregate_assign_positional, aggregate_assign_from_choices)
403 (aggregate_assign_others, add_component_interval): Change
404 arguments.
405
406 2020-12-15 Tom Tromey <tromey@adacore.com>
407
408 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
409 command names.
410
411 2020-12-14 Tom Tromey <tom@tromey.com>
412
413 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
414 * typeprint.c (whatis_exp): Always use evaluate_type.
415 (maintenance_print_type): Likewise. Simplify.
416
417 2020-12-14 Tom Tromey <tromey@adacore.com>
418
419 * dictionary.c (language_defn::search_name_hash): Ignore "B".
420 * ada-lang.c (advance_wild_match): Ignore "B".
421 (full_match): Remove.
422 (do_full_match): Rewrite.
423
424 2020-12-14 Tom Tromey <tromey@adacore.com>
425
426 * ada-lang.c (get_var_value): Only consider exact matches.
427
428 2020-12-14 Tom Tromey <tromey@adacore.com>
429
430 * dwarf2/read.c (rewrite_array_type): New function.
431 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
432
433 2020-12-14 Tom Tromey <tromey@adacore.com>
434
435 * valarith.c (fixed_point_binop): Call error on division by zero.
436
437 2020-12-13 Tom Tromey <tom@tromey.com>
438
439 * gdbtypes.c (safe_parse_type): Make argument const.
440 * value.h (parse_and_eval_type): Make argument const.
441 * eval.c (parse_and_eval_type): Make argument const.
442
443 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
444
445 * NEWS: Mention new commands.
446 * target-dcache.c: Add 'cli/cli-cmds.h' include.
447 (maint_flush_dcache_command): New function.
448 (_initialize_target_dcache): Create new 'maint flush dcache'
449 command.
450
451 2020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
452
453 * NEWS: Mention new commands, and that the old commands are now
454 deprecated.
455 * cli/cli-cmds.c (maintenanceflushlist): Define.
456 * cli/cli-cmds.h (maintenanceflushlist): Declare.
457 * maint.c (_initialize_maint_cmds): Initialise
458 maintenanceflushlist.
459 * regcache.c: Add 'cli/cli-cmds.h' include.
460 (reg_flush_command): Add header comment.
461 (_initialize_regcache): Create new 'maint flush register-cache'
462 command, make 'flushregs' an alias.
463 * symtab.c: Add 'cli/cli-cmds.h' include.
464 (_initialize_symtab): Create new 'maint flush symbol-cache'
465 command, make old command an alias.
466
467 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
470 result from lookup_cmd_composition_1, use the prefixes from both
471 the command and the alias instead.
472 (lookup_cmd_composition_1): Initial prefix command is the based on
473 the search list being passed in. Simplify the logic for tracking
474 the prefix command. Replace a use of alloca with a local
475 std::string.
476
477 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
480 of NULL. Don't print message piece by piece, but sentence at a
481 time to allow internationalisation. Some whitespace cleanup.
482
483 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 PR cli/15104
486 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
487 deprecated_cmd_warning.
488 (deprecated_cmd_warning): Take extra parameter, call
489 lookup_cmd_composition_1 and pass new parameter through.
490 (lookup_cmd_composition_1): New function, takes implementation of
491 lookup_cmd_composition but with extra parameter.
492 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
493 passing in cmdlist.
494 * command.h (deprecated_cmd_warning): Add extra parameter to
495 declaration.
496 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
497
498 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
501 command.h, add extra parameter, and use this to guard giving a
502 warning.
503 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
504 include argument names in declaration, add new argument.
505 * completer.c (complete_line_internal_1): Remove unneeded
506 brackets, pass extra argument to lookup_cmd_1.
507
508 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
509
510 * infrun.h (debug_infrun): Make a bool.
511 * infrun.c (debug_infrun): Make a bool.
512 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
513 debug infrun".
514
515 2020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
516
517 * displaced-stepping.h (displaced_debug_printf): Use
518 debug_prefixed_printf_cond.
519 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
520 (dwarf_read_debug_printf_v): Likewise.
521 * infrun.h (infrun_debug_printf): Likewise.
522 * linux-nat.c (linux_nat_debug_printf): Likewise.
523
524 2020-12-11 Tom Tromey <tom@tromey.com>
525
526 * p-exp.y (intvar): Remove global.
527 (DOLLAR_VARIABLE): Change type.
528 (start): Update.
529 (exp): Call write_dollar_variable here...
530 (yylex): ... not here.
531 * m2-exp.y (DOLLAR_VARIABLE): Change type.
532 (variable): Call write_dollar_variable here...
533 (yylex): ... not here.
534 * f-exp.y (DOLLAR_VARIABLE): Change type.
535 (exp): Call write_dollar_variable here...
536 (yylex): ... not here.
537
538 2020-12-11 Tom Tromey <tom@tromey.com>
539
540 * varobj.c (varobj_create): Update.
541 (install_variable): Return void.
542
543 2020-12-11 Tom Tromey <tom@tromey.com>
544
545 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
546
547 2020-12-11 Tom Tromey <tom@tromey.com>
548
549 * varobj.c (varobj_clear_saved_item): Remove.
550 (update_dynamic_varobj_children): Update.
551 (varobj::~varobj): Don't call varobj_clear_saved_item.
552
553 2020-12-11 Tom Tromey <tom@tromey.com>
554
555 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
556 (update_dynamic_varobj_children, create_child)
557 (create_child_with_value): Update.
558 * varobj-iter.h (struct varobj_item) <value>: Now a
559 value_ref_ptr.
560 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
561
562 2020-12-11 Tom Tromey <tom@tromey.com>
563
564 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
565 (varobj_get_iterator): Return unique_ptr.
566 (update_dynamic_varobj_children, install_visualizer)
567 (varobj::~varobj): Update.
568 * python/python-internal.h (py_varobj_get_iterator): Return
569 unique_ptr.
570 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
571
572 2020-12-11 Tom Tromey <tom@tromey.com>
573
574 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
575 (varobj_clear_saved_item, update_dynamic_varobj_children):
576 Update.
577
578 2020-12-11 Tom Tromey <tom@tromey.com>
579
580 * varobj.c (update_dynamic_varobj_children): Update.
581 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
582 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
583 type.
584 (py_varobj_iter::next): Likewise.
585
586 2020-12-11 Tom Tromey <tom@tromey.com>
587
588 * varobj.c (update_dynamic_varobj_children, install_visualizer)
589 (varobj::~varobj): Update.
590 * varobj-iter.h (struct varobj_iter): Change to interface class.
591 (struct varobj_iter_ops): Remove.
592 (varobj_iter_next, varobj_iter_delete): Remove.
593 * python/py-varobj.c (struct py_varobj_iter): Derive from
594 varobj_iter. Add constructor, destructor. Rename members.
595 (py_varobj_iter::~py_varobj_iter): Rename from
596 py_varobj_iter_dtor.
597 (py_varobj_iter::next): Rename from py_varobj_iter_next.
598 (py_varobj_iter_ops): Remove.
599 (py_varobj_iter): Rename from py_varobj_iter_ctor.
600 (py_varobj_iter_new): Remove.
601 (py_varobj_get_iterator): Update.
602
603 2020-12-11 Tom Tromey <tom@tromey.com>
604
605 * varobj.h (all_root_varobjs): Take a function_view.
606 * varobj.c (all_root_varobjs): Take a function_view.
607 (varobj_invalidate_iter): Remove unused parameter.
608 (varobj_invalidate): Update.
609 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
610 (mi_cmd_var_update_iter): Change parameters.
611
612 2020-12-11 Tom Tromey <tom@tromey.com>
613
614 * varobj.c (struct varobj_root) <next>: Remove.
615 (struct vlist): Remove.
616 (rootlist): Now a std::list.
617 (install_variable, uninstall_variable, all_root_varobjs): Update.
618
619 2020-12-11 Tom Tromey <tom@tromey.com>
620
621 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
622 (varobj_table): Now htab_t.
623 (varobj_get_handle, install_variable, uninstall_variable):
624 Update.
625 (hash_varobj, eq_varobj_and_string): New functions.
626 (hash_varobj): Update.
627
628 2020-12-11 Tom Tromey <tom@tromey.com>
629
630 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
631 * ada-lang.c (check_status_exception): Update.
632 * breakpoint.c (free_bp_location): Remove.
633 (decref_bp_location): Use bp_location_ref_policy.
634 (bpstats::bpstats): Don't call incref_bp_location.
635 (bpstats::~bpstats): Remove.
636 (bpstats::bpstats): Update.
637 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
638 (bp_location::bp_location): Update.
639 (incref_bp_location): Remove.
640 (bkpt_print_it): Update.
641 * breakpoint.h (class bp_location): Derive from
642 refcounted_object.
643 (struct bpstats): Remove destructor.
644 <bp_location_at>: Now a bp_location_ref_ptr.
645 <refc>: Remove.
646 (bp_location_ref_ptr): New typedef.
647 (struct bp_location_ref_policy): New.
648
649 2020-12-11 Tom Tromey <tom@tromey.com>
650
651 * thread.c (class scoped_inc_dec_ref): Remove.
652 (tp_array_compar_ascending, tp_array_compar_descending): Change
653 parameter types.
654 (thread_apply_all_command): Use thread_info_ref.
655
656 2020-12-11 Tom Tromey <tom@tromey.com>
657
658 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
659 (stop_context::stop_context): Update.
660 (stop_context::~stop_context): Remove.
661
662 2020-12-11 Tom Tromey <tom@tromey.com>
663
664 * inferior.c (current_inferior_): Change type.
665 (current_inferior, set_current_inferior, initialize_inferiors):
666 Update.
667
668 2020-12-11 Tom Tromey <tom@tromey.com>
669
670 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
671 Change type.
672
673 2020-12-11 Tom Tromey <tromey@adacore.com>
674
675 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
676 field.
677 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
678 (read_atcb): Use cpu_id_offset.
679
680 2020-12-10 Kevin Buettner <kevinb@redhat.com>
681
682 * ada-lang.c (ada_fold_name): Fix off-by-one error.
683
684 2020-12-10 Luis Machado <luis.machado@linaro.org>
685
686 * breakpoint.c (should_be_inserted): Don't output newline.
687
688 2020-12-10 Luis Machado <luis.machado@linaro.org>
689
690 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
691 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
692 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
693 * arch/aarch64.h: ... here.
694 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
695 (aarch64_maybe_swab128): New function.
696 (aarch64_sve_regs_copy_to_reg_buf)
697 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
698 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
699 the data field.
700 (TF_REG_VALUE_BYTES): New enum value.
701 (trad_frame_value_bytes_p): New function.
702 (trad_frame_set_value_bytes): New function.
703 (trad_frame_set_reg_value_bytes): New function.
704 (trad_frame_get_prev_register): Handle register values saved as bytes.
705 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
706 (struct trad_frame_saved_reg) <data>: New field.
707 (trad_frame_set_value_bytes): New prototype.
708 (trad_frame_value_bytes_p): New prototype.
709
710 2020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
711
712 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
713 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
714 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
715
716 2020-12-09 Tom Tromey <tromey@adacore.com>
717
718 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
719
720 2020-12-09 Tom Tromey <tromey@adacore.com>
721
722 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
723 and "denominator" to gdb_mpz. Handle block forms.
724 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
725 "denominator" to gdb_mpz.
726 (finish_fixed_point_type): Update.
727 (has_zero_over_zero_small_attribute): Update.
728
729 2020-12-09 Tom Tromey <tromey@adacore.com>
730
731 * expprint.c (op_name): Update.
732 * expression.h (enum exp_opcode): Update.
733 * std-operator.def: Add more opcodes.
734 * ada-operator.def, fortran-operator.def: Remove, moving contents
735 into std-operator.def.
736
737 2020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
740 Return {} instead of false.
741 (get_discrete_bounds): Compute high bound only if low bound is
742 valid.
743
744 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
745
746 PR 26875, PR 26901
747 * gdbtypes.c (get_discrete_low_bound): Make non-static.
748 (get_discrete_high_bound): Make non-static.
749 * gdbtypes.h (get_discrete_low_bound): New declaration.
750 (get_discrete_high_bound): New declaration.
751 * valarith.c (value_subscript): Only fetch high bound if
752 necessary.
753
754 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
755
756 * gdbtypes.c (get_discrete_bounds): Implement with
757 get_discrete_low_bound and get_discrete_high_bound.
758 (get_discrete_low_bound): New.
759 (get_discrete_high_bound): New.
760
761 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
762
763 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
764 callers.
765 * gdbtypes.c (get_discrete_bounds): Return bool.
766
767 2020-12-09 Simon Marchi <simon.marchi@efficios.com>
768
769 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
770 (ada_value_slice): Adjust.
771 (pos_atr): Adjust.
772 * gdbtypes.c (get_discrete_bounds): Adjust.
773 (discrete_position): Return optional.
774 * gdbtypes.h (discrete_position): Return optional.
775
776 2020-12-07 Tom Tromey <tromey@adacore.com>
777
778 * maint.c (_initialize_maint_cmds): Use expression command
779 completer for "maint print type".
780
781 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
782
783 * completer.c (complete_explicit_location): Also add keywords
784 that start with '-' to the completion list.
785
786 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
787
788 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
789 keyword may be followed by any keyword.
790 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
791 'toklen' in the case for "-force-condition".
792
793 2020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
794
795 * main.c (catch_command_errors): Add a flag parameter; invoke
796 `bpstat_do_actions` if the flag is set.
797 (execute_cmdargs): Update a call to `catch_command_errors`.
798
799 2020-12-07 Tom de Vries <tdevries@suse.de>
800
801 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
802
803 2020-12-06 Tom Tromey <tom@tromey.com>
804
805 PR ada/26999
806 * ada-lang.c (replace_operator_with_call): Rewrite.
807
808 2020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
809
810 PR breakpoints/27009
811 * s390-tdep.h (op_bc): Correct BC opcode value.
812
813 2020-12-06 Joel Brobecker <brobecker@adacore.com>
814
815 * gmp-utils.h (gdb_mpz::safe_export): New private method.
816 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
817 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
818 (gdb_mpz::safe_export): New method.
819 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
820 Update function description.
821 (check_as_integer_raises_out_of_range_error): New function.
822 (gdb_mpz_as_integer_out_of_range): New function.
823 (_initialize_gmp_utils_selftests): Register
824 gdb_mpz_as_integer_out_of_range as a selftest.
825
826 2020-12-05 Joel Brobecker <brobecker@adacore.com>
827
828 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
829 TARGET_CHAR_BIT.
830 (gdb_mpz::write): Likewise.
831
832 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
833
834 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
835 number of displaced step buffers.
836
837 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
838
839 * displaced-stepping.h (struct displaced_step_buffer): Rename
840 to...
841 (struct displaced_step_buffers): ... this.
842 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
843 <struct displaced_step_buffer>: New inner class.
844 <m_buffers>: New.
845 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
846 to...
847 (displaced_step_buffers::prepare): ... this, adjust for multiple
848 buffers.
849 (displaced_step_buffer::finish): Rename to...
850 (displaced_step_buffers::finish): ... this, adjust for multiple
851 buffers.
852 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
853 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
854 adjust for multiple buffers.
855 (displaced_step_buffer::restore_in_ptid): Rename to...
856 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
857 multiple buffers.
858 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
859 for num_disp_step_buffers.
860 * linux-tdep.c (struct linux_gdbarch_data)
861 <num_disp_step_buffers>: New field.
862 (struct linux_info) <disp_step_buf>: Rename to...
863 <disp_step_bufs>: ... this, change type to
864 displaced_step_buffers.
865 (linux_displaced_step_prepare): Use
866 linux_gdbarch_data::num_disp_step_buffers to create that number
867 of buffers.
868 (linux_displaced_step_finish): Adjust.
869 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
870 (linux_displaced_step_restore_all_in_ptid): Adjust.
871 (linux_init_abi): Change supports_displaced_step parameter for
872 num_disp_step_buffers, save it in linux_gdbarch_data.
873 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
874 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
875 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
876 supports_displaced_step parameter for num_disp_step_buffers.
877 (amd64_linux_init_abi): Adjust.
878 (amd64_x32_linux_init_abi): Adjust.
879 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
880 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
881 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
882 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
883 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
884 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
885 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
886 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
887 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
888 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
889 * m68k-linux-tdep.c (m68k_linux_init_abi):
890 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
891 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
892 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
893 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
894 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
895 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
896 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
897 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
898 Change type to displaced_step_buffers.
899 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
900 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
901 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
902 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
903 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
904 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
905 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
906
907 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
908
909 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
910 obkstack.
911 (_initialize_linux_tdep): Register pre-init gdb data instead of
912 post-init.
913
914 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
915
916 * displaced-stepping.h (struct
917 displaced_step_copy_insn_closure): Adjust comments.
918 (struct displaced_step_inferior_state) <step_thread,
919 step_gdbarch, step_closure, step_original, step_copy,
920 step_saved_copy>: Remove fields.
921 (struct displaced_step_thread_state): New.
922 (struct displaced_step_buffer): New.
923 * displaced-stepping.c (displaced_step_buffer::prepare): New.
924 (write_memory_ptid): Move from infrun.c.
925 (displaced_step_instruction_executed_successfully): New,
926 factored out of displaced_step_finish.
927 (displaced_step_buffer::finish): New.
928 (displaced_step_buffer::copy_insn_closure_by_addr): New.
929 (displaced_step_buffer::restore_in_ptid): New.
930 * gdbarch.sh (displaced_step_location): Remove.
931 (displaced_step_prepare, displaced_step_finish,
932 displaced_step_copy_insn_closure_by_addr,
933 displaced_step_restore_all_in_ptid): New.
934 * gdbarch.c: Re-generate.
935 * gdbarch.h: Re-generate.
936 * gdbthread.h (class thread_info) <displaced_step_state>: New
937 field.
938 (thread_step_over_chain_remove): New declaration.
939 (thread_step_over_chain_next): New declaration.
940 (thread_step_over_chain_length): New declaration.
941 * thread.c (thread_step_over_chain_remove): Make non-static.
942 (thread_step_over_chain_next): New.
943 (global_thread_step_over_chain_next): Use
944 thread_step_over_chain_next.
945 (thread_step_over_chain_length): New.
946 (global_thread_step_over_chain_enqueue): Add debug print.
947 (global_thread_step_over_chain_remove): Add debug print.
948 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
949 Remove.
950 * infrun.c (get_displaced_stepping_state): New.
951 (displaced_step_in_progress_any_inferior): Remove.
952 (displaced_step_in_progress_thread): Adjust.
953 (displaced_step_in_progress): Adjust.
954 (displaced_step_in_progress_any_thread): New.
955 (get_displaced_step_copy_insn_closure_by_addr): Remove.
956 (gdbarch_supports_displaced_stepping): Use
957 gdbarch_displaced_step_prepare_p.
958 (displaced_step_reset): Change parameter from inferior to
959 thread.
960 (displaced_step_prepare_throw): Implement using
961 gdbarch_displaced_step_prepare.
962 (write_memory_ptid): Move to displaced-step.c.
963 (displaced_step_restore): Remove.
964 (displaced_step_finish): Implement using
965 gdbarch_displaced_step_finish.
966 (start_step_over): Allow starting more than one displaced step.
967 (prepare_for_detach): Handle possibly multiple threads doing
968 displaced steps.
969 (handle_inferior_event): Handle possibility that fork event
970 happens while another thread displaced steps.
971 * linux-tdep.h (linux_displaced_step_prepare): New.
972 (linux_displaced_step_finish): New.
973 (linux_displaced_step_copy_insn_closure_by_addr): New.
974 (linux_displaced_step_restore_all_in_ptid): New.
975 (linux_init_abi): Add supports_displaced_step parameter.
976 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
977 (linux_displaced_step_prepare): New.
978 (linux_displaced_step_finish): New.
979 (linux_displaced_step_copy_insn_closure_by_addr): New.
980 (linux_displaced_step_restore_all_in_ptid): New.
981 (linux_init_abi): Add supports_displaced_step parameter,
982 register displaced step methods if true.
983 (_initialize_linux_tdep): Register inferior_execd observer.
984 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
985 supports_displaced_step parameter, adjust call to
986 linux_init_abi. Remove call to
987 set_gdbarch_displaced_step_location.
988 (amd64_linux_init_abi): Adjust call to
989 amd64_linux_init_abi_common.
990 (amd64_x32_linux_init_abi): Likewise.
991 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
992 linux_init_abi. Remove call to
993 set_gdbarch_displaced_step_location.
994 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
995 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
996 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
997 linux_init_abi.
998 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
999 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1000 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
1001 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
1002 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
1003 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
1004 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1005 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
1006 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
1007 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
1008 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1009 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
1010 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
1011 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
1012 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
1013 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
1014 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
1015 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1016 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1017 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
1018 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
1019 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
1020 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
1021 linux_init_abi. Remove call to
1022 set_gdbarch_displaced_step_location.
1023 * arm-tdep.c (arm_pc_is_thumb): Call
1024 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
1025 get_displaced_step_copy_insn_closure_by_addr.
1026 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
1027 clear gdbarch methods.
1028 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
1029 (get_ppc_per_inferior): New function.
1030 (ppc_displaced_step_prepare): New function.
1031 (ppc_displaced_step_finish): New function.
1032 (ppc_displaced_step_restore_all_in_ptid): New function.
1033 (rs6000_gdbarch_init): Register new gdbarch methods.
1034 * s390-tdep.c (s390_gdbarch_init): Don't call
1035 set_gdbarch_displaced_step_location, set new gdbarch methods.
1036
1037 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1038
1039 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
1040 * aarch64-tdep.h: Include displaced-stepping.h.
1041 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
1042 Move here.
1043 (displaced_step_copy_insn_closure_up): Move here.
1044 (struct buf_displaced_step_copy_insn_closure): Move here.
1045 (struct displaced_step_inferior_state): Move here.
1046 (debug_displaced): Move here.
1047 (displaced_debug_printf_1): Move here.
1048 (displaced_debug_printf): Move here.
1049 * displaced-stepping.c: New file.
1050 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
1051 * gdbarch.h: Re-generate.
1052 * inferior.h: Include displaced-stepping.h.
1053 * infrun.h (debug_displaced): Move to displaced-stepping.h.
1054 (displaced_debug_printf_1): Likewise.
1055 (displaced_debug_printf): Likewise.
1056 (struct displaced_step_copy_insn_closure): Likewise.
1057 (displaced_step_copy_insn_closure_up): Likewise.
1058 (struct buf_displaced_step_copy_insn_closure): Likewise.
1059 (struct displaced_step_inferior_state): Likewise.
1060 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
1061 (displaced_debug_printf_1): Likewise.
1062 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
1063 Likewise.
1064 (_initialize_infrun): Don't register "set/show debug displaced".
1065
1066 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1067
1068 * linux-tdep.c (get_linux_inferior_data): Add inferior
1069 parameter.
1070 (linux_vsyscall_range): Pass current inferior.
1071
1072 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1073
1074 * infrun.c (displaced_step_prepare_throw): Change return type to
1075 displaced_step_prepare_status.
1076 (displaced_step_prepare): Likewise.
1077 (displaced_step_finish): Change return type to
1078 displaced_step_finish_status.
1079 (resume_1): Adjust.
1080 (stop_all_threads): Adjust.
1081 * displaced-stepping.h: New file.
1082
1083 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1084
1085 * infrun.c (displaced_step_fixup): Rename to...
1086 (displaced_step_finish): ... this, update all callers.
1087
1088 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1089
1090 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
1091 (get_displaced_step_copy_insn_closure_by_addr): ... this.
1092 Update all users.
1093 (displaced_step_closure): Rename to...
1094 (displaced_step_copy_insn_closure): ... this. Update all users.
1095 (displaced_step_closure_up): Rename to...
1096 (displaced_step_copy_insn_closure_up). ... this. Update all
1097 users.
1098 (buf_displaced_step_closure): Rename to...
1099 (buf_displaced_step_copy_insn_closure): ... this. Update all
1100 users.
1101 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
1102 (get_displaced_step_copy_insn_closure_by_addr): ... this.
1103 Update all users.
1104 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
1105 (aarch64_displaced_step_copy_insn_closure): ... this. Update
1106 all users.
1107 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
1108 (amd64_displaced_step_copy_insn_closure): ... this. Update all
1109 users.
1110 * arm-tdep.h (arm_displaced_step_closure): Rename to...
1111 (arm_displaced_step_copy_insn_closure): ... this. Update all
1112 users.
1113 * i386-tdep.h (i386_displaced_step_closure): Rename to...
1114 (i386_displaced_step_copy_insn_closure): ... this. Update all
1115 users.
1116 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
1117 (ppc_displaced_step_copy_insn_closure): ... this. Update all
1118 users.
1119 * s390-tdep.c (s390_displaced_step_closure): Rename to...
1120 (s390_displaced_step_copy_insn_closure): ... this. Update all
1121 users.
1122 * gdbarch.h: Re-generate.
1123 * gdbarch.c: Re-generate.
1124
1125 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1126
1127 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
1128 (global_thread_step_over_chain_enqueue): ... this. Update all
1129 users.
1130 (thread_step_over_chain_remove): Rename to...
1131 (global_thread_step_over_chain_remove): ... this. Update all
1132 users.
1133 (thread_step_over_chain_next): Rename to...
1134 (global_thread_step_over_chain_next): ... this. Update all
1135 users.
1136 * infrun.h (step_over_queue_head): Rename to...
1137 (global_thread_step_over_chain_head): ... this. Update all
1138 users.
1139 * infrun.c (step_over_queue_head): Rename to...
1140 (global_thread_step_over_chain_head): ... this. Update all
1141 users.
1142 * thread.c (step_over_chain_remove): Rename to...
1143 (thread_step_over_chain_remove): ... this. Update all users.
1144 (thread_step_over_chain_next): Rename to...
1145 (global_thread_step_over_chain_next): ... this. Update all
1146 users.
1147 (thread_step_over_chain_enqueue): Rename to...
1148 (global_thread_step_over_chain_enqueue): ... this. Update all
1149 users.
1150 (thread_step_over_chain_remove): Rename to...
1151 (global_thread_step_over_chain_remove): ... this. Update all
1152 users.
1153
1154 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * infrun.c (get_displaced_stepping_state): Remove, change
1157 callers to access the field directly.
1158
1159 2020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * infrun.c (handle_inferior_event): Restore displaced step
1162 buffer bytes in child process when handling fork, even if fork
1163 happened in another thread than the displaced-stepping one.
1164
1165 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * infrun.c (infrun_inferior_execd): New function.
1168 (_initialize_infrun): Attach inferior_execd observer.
1169
1170 2020-12-04 Simon Marchi <simon.marchi@efficios.com>
1171
1172 * observable.h (inferior_execd): Declare new observable.
1173 * observable.c (inferior_execd): Declare new observable.
1174 * infrun.c (follow_exec): Notify inferior_execd observer.
1175 * jit.c (jit_inferior_created_hook): Make static.
1176 (_initialize_jit): Register inferior_execd observer.
1177 * jit.h (jit_inferior_created_hook): Remove declaration.
1178 * solib.c (_initialize_solib): Register inferior_execd observer.
1179
1180 2020-12-04 Tom de Vries <tdevries@suse.de>
1181
1182 PR gdb/27003
1183 * completer.c (completion_tracker::build_completion_result): Don't
1184 access match_list[0][-1].
1185
1186 2020-12-04 Tom Tromey <tromey@adacore.com>
1187
1188 * linespec.c (struct linespec_token): Rename; remove typedef.
1189 * guile/scm-block.c (struct block_smob): Remove typedef.
1190 (struct block_syms_progress_smob): Likewise.
1191 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
1192 * guile/scm-symtab.c (symtab_smob): Remove typedef.
1193 (struct sal_smob): Remove typedef.
1194 * guile/scm-param.c (struct param_smob): Remove typedef.
1195 * guile/scm-progspace.c (struct pspace_smob): Rename.
1196 * guile/scm-objfile.c (struct objfile_smob): Rename.
1197 * guile/scm-iterator.c (struct iterator_smob): Rename.
1198 * guile/scm-frame.c (struct frame_smob): Rename.
1199 * guile/scm-arch.c (struct arch_smob): Rename.
1200 * guile/scm-type.c (struct field_smob): Remove typedef.
1201 (struct type_smob): Rename.
1202 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1203 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1204 * guile/scm-value.c (struct value_smob): Remove typedef.
1205 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1206 * guile/guile-internal.h (struct scheme_variable)
1207 (struct scheme_function, struct scheme_integer_constant)
1208 (struct gdb_smob, struct chained_gdb_smob)
1209 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1210 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1211 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1212 (struct pretty_printer_worker_smob): Remove typedef.
1213 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1214 * python/py-block.c (struct block_object): Remove typedef.
1215 (block_syms_iterator_object): Update.
1216 (set_block): Update.
1217 (block_syms_iterator_object): Remove typedef.
1218 * python/py-inferior.c (struct membuf_object): Remove typedef.
1219 * python/py-symtab.c (struct symtab_object): Remove typedef.
1220 (set_symtab): Update.
1221 (sal_object): Remove typedef.
1222 (set_sal): Update.
1223 * python/py-frame.c (frame_object): Remove typedef.
1224 * python/py-record-btrace.c (struct btpy_list_object): Remove
1225 typedef.
1226 * python/py-arch.c (struct arch_object): Remove typedef.
1227 * python/py-linetable.c (struct linetable_entry_object)
1228 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1229 * python/py-events.h (eventregistry_object): Remove typedef.
1230 (struct events_object): Remove typedef.
1231 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1232 typedef.
1233 (thread_object): Remove typedef.
1234 * python/py-progspace.c (pspace_object): Remove typedef.
1235 * python/py-value.c (struct value_object): Remove typedef.
1236 * python/py-record.h (recpy_record_object): Remove typedef.
1237 (struct recpy_element_object): Remove typedef.
1238 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1239 * python/py-objfile.c (objfile_object): Remove typedef.
1240 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1241 * python/py-type.c (type_object): Remove typedef.
1242 (typy_iterator_object): Update.
1243 (set_type): Update.
1244 (field_object): Remove typedef.
1245 (typy_iterator_object): Remove typedef.
1246 * python/py-registers.c (register_descriptor_iterator_object):
1247 Remove typedef.
1248 (struct register_descriptor_object)
1249 (struct reggroup_iterator_object, struct reggroup_object): Remove
1250 typedef.
1251 * python/py-record.c (recpy_gap_object): Remove typedef.
1252 * python/py-symbol.c (symbol_object): Remove typedef.
1253 (set_symbol): Update.
1254 * python/py-event.h (event_object): Remove typedef.
1255 * python/py-param.c (parmpy_object): Remove typedef.
1256 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1257 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1258 (unwind_info_object, struct cached_frame_info): Likewise.
1259
1260 2020-12-04 Tom Tromey <tromey@adacore.com>
1261
1262 * value.c (value_internal_function_name): Make return type const.
1263 * value.h (value_internal_function_name): Make return type const.
1264
1265 2020-12-04 Luis Machado <luis.machado@linaro.org>
1266
1267 * aarch64-tdep.c (submask, bit, bits): Remove.
1268 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1269 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1270 (aarch64_decode_cb, aarch64_decode_tb)
1271 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1272 immediate.
1273 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1274
1275 2020-12-04 Tom de Vries <tdevries@suse.de>
1276
1277 PR tdep/27007
1278 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1279
1280 2020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 PR gdb/26876
1283 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1284 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1285
1286 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * arch/riscv.c: Include 'rv32e-xregs.c'.
1289 (riscv_create_target_description): Update to handle rv32e.
1290 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1291 member variable.
1292 <operator==>: Update to account for new field.
1293 <hash>: Likewise.
1294 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1295 * features/riscv/rv32e-xregs.c: Generated.
1296 * features/riscv/rv32e-xregs.xml: New file.
1297 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1298 file.
1299 (riscv_debug_infcall): Likewise.
1300 (riscv_debug_unwinder): Likewise.
1301 (riscv_debug_gdbarch): Likewise.
1302 (enum riscv_register_required_status): Delete.
1303 (struct riscv_register_feature): Add constructor, delete default
1304 constructor, copy, and assign constructors.
1305 (struct riscv_register_feature::register_info) <required>: Delete.
1306 <check>: Update comment and arguments.
1307 (struct riscv_register_feature) <name>: Change to member function.
1308 <prefer_first_name>: Delete.
1309 <tdesc_feature>: New member function.
1310 <registers>: Rename to...
1311 <m_registers>: ...this.
1312 <m_feature_name>: New member variable.
1313 (riscv_register_feature::register_info::check): Update arguments.
1314 (riscv_xreg_feature): Rewrite as class, create a single static
1315 instance of the class.
1316 (riscv_freg_feature): Likewise.
1317 (riscv_virtual_feature): Likewise.
1318 (riscv_csr_feature): Likewise.
1319 (riscv_create_csr_aliases): Has become a member function inside
1320 riscv_csr_feature class.
1321 (riscv_abi_embedded): New function definition.
1322 (riscv_register_name): Adjust to use new feature objects.
1323 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1324 and adjust available argument registers.
1325 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1326 (riscv_check_tdesc_feature): Delete.
1327 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1328 (riscv_gdbarch_init): Delete target description checking code, and
1329 instead call to the new feature objects to perform the checks.
1330 Reorder handling of no abi information case, allows small code
1331 simplification.
1332 (_initialize_riscv_tdep): Remove call, this is now done in the
1333 riscv_csr_feature constructor.
1334 * riscv-tdep.h (riscv_abi_embedded): Declare.
1335
1336 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1339 DECLARE_CSR_ALIAS.
1340
1341 2020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1342
1343 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1344 implementation moved from riscv_register_reggroup_p.
1345 (riscv_register_reggroup_p): Update group handling for unknown
1346 CSRs.
1347
1348 2020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1349
1350 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1351 (dwarf2_get_dwz_file): Convert 'filename' to a
1352 std::string. Use dwz_search_other_debugdirs to search for DWZ
1353 files in the debug-file-directories provided by the user as well.
1354
1355 2020-12-01 Tom Tromey <tom@tromey.com>
1356
1357 * parse.c (expr_builder::expr_builder): Initialize expout.
1358 (expr_builder::release): Use expression::resize.
1359 (expression::expression, expression::~expression)
1360 (expression::resize): New methods.
1361 (write_exp_elt): Use expression::resize.
1362 (prefixify_expression): Update.
1363 (increase_expout_size): Use expression::resize.
1364 * expression.h (struct expression): Add constructor, destructor.
1365 <resize>: New method.
1366 (expression_up): Change type.
1367
1368 2020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1369 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1370 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1371 set region.
1372
1373 2020-11-30 Tom de Vries <tdevries@suse.de>
1374
1375 PR symtab/26905
1376 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1377 is_reference parameter.
1378 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1379
1380 2020-11-30 Tom Tromey <tom@tromey.com>
1381
1382 * rust-lang.c (rust_op_name): Remove.
1383 (exp_descriptor_rust): Update.
1384 * parser-defs.h (op_name_standard): Don't declare.
1385 (struct exp_descriptor) <op_name>: Remove.
1386 * parse.c (exp_descriptor_standard): Update.
1387 * opencl-lang.c (exp_descriptor_opencl): Update.
1388 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1389 * f-lang.c (op_name_f): Remove.
1390 (f_language::exp_descriptor_tab): Update.
1391 * expression.h (op_name): Update.
1392 * expprint.c (op_name): Rewrite.
1393 (op_name_standard): Remove.
1394 (dump_raw_expression, dump_subexp): Update.
1395 * c-lang.c (exp_descriptor_c): Update.
1396 * ax-gdb.c (gen_expr): Update.
1397 * ada-lang.c (ada_op_name): Remove.
1398 (ada_exp_descriptor): Update.
1399
1400 2020-11-30 Tom Tromey <tom@tromey.com>
1401
1402 * eval.c (init_array_element): Remove.
1403 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1404
1405 2020-11-29 Hannes Domani <ssbssa@yahoo.de>
1406
1407 PR tui/26973
1408 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1409 static locator win info.
1410
1411 2020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1412
1413 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1414 program.
1415
1416 2020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1419 is always initialized.
1420
1421 2020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1422 * MAINTAINERS (Write After Approval): Add myself.
1423
1424 2020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1425
1426 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1427 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1428
1429 2020-11-25 Tom Tromey <tom@tromey.com>
1430
1431 * eval.c (evaluate_subexp_standard): Remove unnecessary
1432 variables.
1433
1434 2020-11-25 Tom Tromey <tom@tromey.com>
1435
1436 * d-lang.c: Include parser-defs.h.
1437 * rust-lang.c: Include parser-defs.h.
1438 * c-lang.h: Do not include parser-defs.h.
1439
1440 2020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1441
1442 * regcache.h (struct cached_reg): Remove typedef.
1443
1444 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1445
1446 * README: Fix the URL of the MPFR library.
1447
1448 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1449
1450 * README: Document the --with-libgmp-prefix configure option.
1451
1452 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1453
1454 * NEWS: Add entry documenting support for DWARF-based fixed
1455 point types.
1456
1457 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1458
1459 * NEWS: Document that building GDB now requires GMP.
1460
1461 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1462
1463 * typeprint.c (print_type_scalar): Add handling of
1464 TYPE_CODE_FIXED_POINT.
1465
1466 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1467
1468 * valarith.c (fixed_point_binop): Replace the
1469 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1470 users accordingly.
1471
1472 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1473
1474 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1475 replacing fixed_point_scaling_factor. All callers updated
1476 throughout this project.
1477 (fixed_point_scaling_factor): Delete declaration.
1478 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1479 fixed_point_scaling_factor. Adjust implementation accordingly.
1480
1481 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1482
1483 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1484 replacing the fixed_point_type_base_type function. All callers
1485 updated throughout this project.
1486 (fixed_point_type_base_type): Remove declaration.
1487 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1488 fixed_point_type_base_type. Adjust implementation accordingly.
1489
1490 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1491
1492 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1493 New methods.
1494 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1495 (TYPE_FIXED_POINT_INFO): Delete macro.
1496 (allocate_fixed_point_type_info): Change return type to void.
1497 * gdbtypes.c (copy_type_recursive): Replace the use of
1498 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1499 (fixed_point_scaling_factor): Likewise.
1500 (allocate_fixed_point_type_info): Change return type to void.
1501 Adjust implementation accordingly.
1502 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1503 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1504
1505 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1506
1507 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1508 into one single gdb::array_view parameter.
1509 (gdb_mpz::write): Likewise.
1510 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1511 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1512 into one single gdb::array_view parameter.
1513 Adjust implementation accordingly.
1514 (gdb_mpz::write): Likewise.
1515 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1516 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1517 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1518
1519 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1520
1521 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1522 Change return type to std::string. Update all callers.
1523 * gmp-utils.c (gmp_string_printf): Likewise.
1524
1525 2020-11-24 Joel Brobecker <brobecker@adacore.com>
1526
1527 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1528 instead of mpq_set_ui to initialize our GMP rational.
1529
1530 2020-11-23 Tom de Vries <tdevries@suse.de>
1531
1532 * debuginfod-support.c (debuginfod_source_query)
1533 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1534
1535 2020-11-21 Tom Tromey <tom@tromey.com>
1536
1537 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1538
1539 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1540
1541 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1542 Pass 2.0 to pow.
1543 (gdb_mpz_write_all_from_small): Likewise.
1544
1545 2020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1546
1547 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1548 of abs.
1549
1550 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1551
1552 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1553 ctf_arc_open_by_name.
1554
1555 2020-11-20 Nick Alcock <nick.alcock@oracle.com>
1556
1557 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1558 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1559
1560 2020-11-20 Pedro Alves <pedro@palves.net>
1561
1562 * language.c (language_arch_info::lookup_primitive_type): Use
1563 gdb::function_view instead of gdb::function.
1564 (template language_lookup_primitive_type): Rename to ...
1565 (language_lookup_primitive_type_1): ... this, and make static.
1566 (language_lookup_primitive_type(const struct language_defn *,
1567 struct gdbarch *, const char *): Make non-template.
1568 (language_lookup_primitive_type(const struct language_defn *,
1569 struct gdbarch *, std::function<bool (struct type *)>): Make
1570 non-template and use gdb::function_view.
1571 * language.h (language_arch_info::lookup_primitive_type): Use
1572 gdb::function_view instead of std::function.
1573 (language_lookup_primitive_type): No longer template.
1574 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1575 lambda instead of a std::function.
1576
1577 2020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1578
1579 PR tdep/26916
1580 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1581 and STOCFH.
1582
1583 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1584
1585 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1586
1587 2020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1588
1589 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1590 in `loop_cb` parameter.
1591 * gdbarch.c: Re-generate.
1592 * gdbarch.h: Re-generate.
1593 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1594 parameter.
1595 * arch-utils.h (default_read_core_file_mappings): Likewise.
1596 * corelow.c (core_target::build_file_mappings): Likewise.
1597 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1598 (linux_core_info_proc_mappings): Likewise.
1599
1600 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1603 * NEWS: Mention new options.
1604 * f-array-walker.h: New file.
1605 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1606 (repack_array_slices): New static global.
1607 (show_repack_array_slices): New function.
1608 (fortran_array_slicing_debug): New static global.
1609 (show_fortran_array_slicing_debug): New function.
1610 (value_f90_subarray): Delete.
1611 (skip_undetermined_arglist): Delete.
1612 (class fortran_array_repacker_base_impl): New class.
1613 (class fortran_lazy_array_repacker_impl): New class.
1614 (class fortran_array_repacker_impl): New class.
1615 (fortran_value_subarray): Complete rewrite.
1616 (set_fortran_list): New static global.
1617 (show_fortran_list): Likewise.
1618 (_initialize_f_language): Register new commands.
1619 (fortran_adjust_dynamic_array_base_address_hack): New function.
1620 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1621 Declare.
1622 * f-valprint.c: Include 'f-array-walker.h'.
1623 (class fortran_array_printer_impl): New class.
1624 (f77_print_array_1): Delete.
1625 (f77_print_array): Delete.
1626 (fortran_print_array): New.
1627 (f_value_print_inner): Update to call fortran_print_array.
1628 * gdbtypes.c: Include 'f-lang.h'.
1629 (resolve_dynamic_type_internal): Call
1630 fortran_adjust_dynamic_array_base_address_hack.
1631
1632 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1633
1634 * breakpoint.c (struct watch_options): New struct.
1635 (watch_option_defs): New static global.
1636 (make_watch_options_def_group): New function.
1637 (watch_maybe_just_location): Convert option parsing.
1638 (watch_command_completer): New function.
1639 (_initialize_breakpoint): Build help text using options mechanism.
1640
1641 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1642
1643 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1644 (watch_command_1): Update parameter types. Convert locals to
1645 bool.
1646 (watch_command_wrapper): Change parameter type.
1647 (watch_maybe_just_location): Change locals to bool.
1648 (rwatch_command_wrapper): Update parameter type.
1649 (awatch_command_wrapper): Update parameter type.
1650 * breakpoint.h (watch_command_wrapper): Change parameter type.
1651 (rwatch_command_wrapper): Update parameter type.
1652 (awatch_command_wrapper): Update parameter type.
1653 * eval.c (fetch_subexp_value): Change parameter type.
1654 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1655 'false' not '0'.
1656 * value.h (fetch_subexp_value): Change parameter type in
1657 declaration.
1658
1659 2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1662 skip_spaces.
1663
1664 2020-11-18 Keith Seitz <keiths@redhat.com>
1665
1666 * linux-tdep.c (dump_note_entry_p): Return true instead of
1667 checking `filename'.
1668
1669 2020-11-18 Tom de Vries <tdevries@suse.de>
1670
1671 * debuginfod-support.c (debuginfod_source_query)
1672 (debuginfod_debuginfo_query): Also do early exit if
1673 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1674
1675 2020-11-18 Tom de Vries <tdevries@suse.de>
1676
1677 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1678 warning.
1679
1680 2020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1681
1682 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1683 callers. Move doc here.
1684 * gdbtypes.c (get_array_bounds): Return bool
1685
1686 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1687
1688 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1689 assert.
1690 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1691 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1692 case to the default.
1693
1694 2020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * printcmd.c: Include 'safe-ctype.c'.
1697 (skip_over_slash_fmt): New function.
1698 (print_command_completer): Call skip_over_slash_fmt.
1699 (display_and_x_command_completer): New function.
1700 (_initialize_printcmd): Add command completion for 'x' and
1701 'display'.
1702
1703 2020-11-16 Pedro Alves <pedro@palves.net>
1704
1705 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1706 (get_prev_frame_always_1): ... to here.
1707 * inline-frame.c (inline_frame_this_id): Mention
1708 get_prev_frame_always_1 in comment.
1709
1710 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1711
1712 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1713 handling.
1714 (value_less): Add fixed-point handling.
1715
1716 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1717
1718 * eval.c (binop_promote): Add fixed-point type handling.
1719 * valarith.c (fixed_point_binop): New function.
1720 (scalar_binop): Add fixed-point type handling.
1721 (value_neg): Add fixed-point type handling.
1722 * valops.c (value_cast_to_fixed_point): New function.
1723 (value_cast): Add fixed-point type handling.
1724
1725 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1726
1727 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1728 range types.
1729 * c-typeprint.c (c_type_print_varspec_prefix)
1730 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1731 TYPE_CODE_FIXED_POINT handling.
1732 * p-typeprint.c (pascal_type_print_varspec_prefix)
1733 (pascal_type_print_varspec_suffix): Likewise.
1734 * typeprint.c (print_type_fixed_point): New function.
1735 * typeprint.h (print_type_fixed_point): Add declaration.
1736
1737 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1738
1739 * printcmd.c (print_scalar_formatted): Add fixed-point type
1740 handling when options->format is set.
1741
1742 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1743
1744 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1745 * dwarf2/read.c (get_dwarf2_rational_constant)
1746 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1747 (has_zero_over_zero_small_attribute): New functions.
1748 read_base_type, set_die_type): Add fixed-point type handling.
1749 * gdb-gdb.py.in: Add fixed-point type handling.
1750 * gdbtypes.c: #include "gmp-utils.h".
1751 (create_range_type, set_type_code): Add fixed-point type handling.
1752 (init_fixed_point_type): New function.
1753 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1754 (print_fixed_point_type_info): New function.
1755 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1756 handling.
1757 (fixed_point_type_storage): New typedef.
1758 (fixed_point_objfile_key): New static global.
1759 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1760 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1761 functions.
1762 * gdbtypes.h: #include "gmp-utils.h".
1763 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1764 (union type_specific) <fixed_point_info>: New field.
1765 (struct fixed_point_type_info): New struct.
1766 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1767 (init_fixed_point_type, is_fixed_point_type)
1768 (fixed_point_type_base_type, fixed_point_scaling_factor)
1769 (allocate_fixed_point_type_info): Add declarations.
1770 * valprint.c (generic_val_print_fixed_point): New function.
1771 (generic_value_print): Add fixed-point type handling.
1772 * value.c (value_as_address, unpack_long): Add fixed-point type
1773 handling.
1774
1775 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1776
1777 * utils.h (uinteger_pow): Add declaration.
1778 * utils.c (uinteger_pow): Moved here (without changes)...
1779 * valarith.c (uinteger_pow): ... from here.
1780
1781 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1782
1783 * gmp-utils.h, gmp-utils.c: New file.
1784 * unittests/gmp-utils-selftests.c: New file.
1785 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1786 unittests/gmp-utils-selftests.c.
1787 (COMMON_SFILES) Add gmp-utils.c.
1788 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1789
1790 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1791
1792 * configure.ac: Generate an error if a usable GMP library
1793 could not be found.
1794 * configure: Regenerate.
1795
1796 2020-11-15 Joel Brobecker <brobecker@adacore.com>
1797
1798 * configure.ac: Add support for --with-libgmp-prefix.
1799 * Makefile.in (LIBGMP): New variable.
1800 (CLIBS): Include $(LIBGMP).
1801 * configure, config.in: Regenerate
1802
1803 2020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1804
1805 PR cli/26879
1806 * f-exp.y (COMPLETE): New token.
1807 (exp): Two new rules for tab-completion.
1808 (saw_name_at_eof): New static global.
1809 (last_was_structop): Likewise.
1810 (yylex): Set new variables, and return COMPLETE token at the end
1811 of the input stream in some cases.
1812
1813 2020-11-14 Tom Tromey <tom@tromey.com>
1814
1815 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1816
1817 2020-11-14 Tom Tromey <tom@tromey.com>
1818
1819 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1820
1821 2020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1824
1825 2020-11-13 Tom Tromey <tom@tromey.com>
1826
1827 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1828 (convert_escape, parse_one_string): Constify.
1829
1830 2020-11-13 Keith Seitz <keiths@redhat.com>
1831
1832 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1833 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1834 outside of ELF segments" warning for debugin
1835
1836 2020-11-13 Keith Seitz <keiths@redhat.com>
1837
1838 PR gdb/23034
1839 * elfread.c (elf_symfile_segments): Output a BFD file name
1840 for the "Loadable section ... outside of ELF segments" warning.
1841
1842 2020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 PR gdb/26835
1845 * arm-tdep.c (class arm_instruction_reader): New.
1846 (target_arm_instruction_reader): New.
1847 (arm_analyze_prologue): Add instruction reader parameter and use
1848 it. Use arm_expand_immediate.
1849 (class target_arm_instruction_reader): Adjust.
1850 (arm_skip_prologue): Adjust.
1851 (arm_expand_immediate): New.
1852 (arm_scan_prologue): Adjust.
1853 (arm_analyze_prologue_test): New.
1854 (class test_arm_instruction_reader): New.
1855
1856 2020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1857
1858 * f-lang.c (fortran_argument_convert): Add declaration. Add
1859 header comment, taken from f-lang.h. Make static.
1860 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1861 (fortran_argument_convert): Delete declaration.
1862
1863 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * ada-exp.y (find_primitive_type): Make parameter const.
1866 * ada-lang.c (enum ada_primitive_types): Delete.
1867 (ada_language::language_arch_info): Update.
1868 * c-lang.c (enum c_primitive_types): Delete.
1869 (c_language_arch_info): Update.
1870 (enum cplus_primitive_types): Delete.
1871 (cplus_language::language_arch_info): Update.
1872 * d-lang.c (enum d_primitive_types): Delete.
1873 (d_language::language_arch_info): Update.
1874 * f-lang.c (enum f_primitive_types): Delete.
1875 (f_language::language_arch_info): Update.
1876 * go-lang.c (enum go_primitive_types): Delete.
1877 (go_language::language_arch_info): Update.
1878 * language.c (auto_or_unknown_language::language_arch_info):
1879 Update.
1880 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1881 (language_string_char_type): Add header comment, call function in
1882 language_arch_info.
1883 (language_bool_type): Likewise
1884 (language_arch_info::bool_type): Define.
1885 (language_lookup_primitive_type_1): Delete.
1886 (language_lookup_primitive_type): Rewrite as a templated function
1887 to call function in language_arch_info, then instantiate twice.
1888 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1889 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1890 (language_arch_info::lookup_primitive_type): Define twice with
1891 different signatures.
1892 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1893 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1894 member function in language_arch_info.
1895 * language.h (language_arch_info): Complete rewrite.
1896 (language_lookup_primitive_type): Make templated.
1897 * m2-lang.c (enum m2_primitive_types): Delete.
1898 (m2_language::language_arch_info): Update.
1899 * opencl-lang.c (OCL_P_TYPE): Delete.
1900 (enum opencl_primitive_types): Delete.
1901 (opencl_type_data): Delete.
1902 (builtin_opencl_type): Delete.
1903 (lookup_opencl_vector_type): Update.
1904 (opencl_language::language_arch_info): Update, lots of content
1905 moved from...
1906 (build_opencl_types): ...here. This function is now deleted.
1907 (_initialize_opencl_language): Delete.
1908 * p-lang.c (enum pascal_primitive_types): Delete.
1909 (pascal_language::language_arch_info): Update.
1910 * rust-lang.c (enum rust_primitive_types): Delete.
1911 (rust_language::language_arch_info): Update.
1912
1913 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1914
1915 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1916 dwarf2_queue_guard.
1917
1918 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1919
1920 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1921 comment.
1922
1923 2020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1924
1925 * dwarf2/read.c (dwarf_read_debug_printf,
1926 dwarf_read_debug_printf_v): New macros, use throughout the file.
1927
1928 2020-11-12 Shahab Vahedi <shahab@synopsys.com>
1929
1930 PR tdep/27015
1931 * arc-linux-tdep.c (collect_register): Populate "eret" by
1932 "pc" value from the regcache when asked for "pc" value.
1933
1934 2020-11-12 Tom Tromey <tom@tromey.com>
1935
1936 PR rust/26799:
1937 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1938 exist.
1939
1940 2020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * features/Makefile (XMLTOC): Add rx.xml.
1943 (FEATURE_XMLFILES): Remove rx.xml.
1944 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1945 * features/rx.c: Regenerate.
1946 * features/rx.xml: Wrap in `target` tags, and reindent.
1947 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1948 structure.
1949 (maint_print_c_tdesc_opt_def): New typedef.
1950 (maint_print_c_tdesc_opt_defs): New static global.
1951 (make_maint_print_c_tdesc_options_def_group): New function.
1952 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1953 print single feature C file for target descriptions containing a
1954 single feature.
1955 (maint_print_c_tdesc_cmd_completer): New function.
1956 (_initialize_target_descriptions): Update call to register command
1957 completer, and include command line flag in help text.
1958
1959 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1962 numbers.
1963 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1964 enum values.
1965
1966 2020-11-10 Tom Tromey <tom@tromey.com>
1967
1968 * value.h (internalvar_name): Update.
1969 * value.c (internalvar_name): Make return type const.
1970
1971 2020-11-10 Tom Tromey <tom@tromey.com>
1972
1973 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1974 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1975 const.
1976
1977 2020-11-10 Tom Tromey <tom@tromey.com>
1978
1979 * objc-lang.h (value_nsstring): Update.
1980 * objc-lang.c (value_nsstring): Make "ptr" const.
1981
1982 2020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * expprint.c (print_subexp_funcall): Increment expression position
1985 after reading argument count.
1986 * f-lang.c (print_subexp_f): Skip over opcode before calling
1987 common function.
1988 (dump_subexp_body_f): Likewise.
1989
1990 2020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1991
1992 PR python/26832
1993 * configure: Regenerate.
1994 * configure.ac: Check for python modules ctypes instead of
1995 itertools.
1996
1997 2020-11-06 Pedro Alves <pedro@palves.net>
1998
1999 * macroexp.c (struct macro_buffer): Split in two classes. Add
2000 uses adjusted.
2001 (struct shared_macro_buffer): New, factored out from struct
2002 macro_buffer.
2003 (struct growable_macro_buffer): New, factored out from struct
2004 macro_buffer.
2005 (set_token, get_comment, get_identifier, get_pp_number)
2006 (get_character_constant, get_string_literal, get_punctuator)
2007 (get_next_token_for_substitution): Constify parameters.
2008 (substitute_args): Constify locals.
2009
2010 2020-11-05 Tom Tromey <tom@tromey.com>
2011
2012 * dwarf2/read.c (read_cutu_die_from_dwo)
2013 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
2014 (build_type_psymtabs_1): Update.
2015 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
2016 parameter.
2017 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
2018 Don't read section. Add assert.
2019
2020 2020-11-04 Tom Tromey <tromey@adacore.com>
2021
2022 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
2023
2024 2020-11-04 Tom Tromey <tromey@adacore.com>
2025
2026 * ada-typeprint.c (ada_print_type): Handle __T types.
2027
2028 2020-11-04 Tom Tromey <tromey@adacore.com>
2029
2030 * dwarf2/read.c (add_partial_symbol, process_die):
2031 Handle DW_TAG_array_type.
2032 (is_type_tag_for_partial): Add "lang" parameter.
2033 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
2034
2035 2020-11-04 Tom Tromey <tromey@adacore.com>
2036
2037 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
2038
2039 2020-11-04 Tom Tromey <tromey@adacore.com>
2040
2041 * dwarf2/read.c (read_array_type): Only apply stride to innermost
2042 array.
2043
2044 2020-11-04 Tom Tromey <tromey@adacore.com>
2045
2046 * gdbtypes.c (update_static_array_size): Handle bit stride.
2047
2048 2020-11-04 Tom Tromey <tromey@adacore.com>
2049
2050 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
2051
2052 2020-11-04 Tom Tromey <tromey@adacore.com>
2053
2054 * ada-lang.c (ada_is_any_packed_array_type): New function.
2055 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
2056
2057 2020-11-04 Tom Tromey <tromey@adacore.com>
2058
2059 * dwarf2/read.c (recognize_bound_expression)
2060 (quirk_ada_thick_pointer): New functions.
2061 (read_array_type): Call quirk_ada_thick_pointer.
2062 (set_die_type): Add "skip_data_location" parameter.
2063 (quirk_ada_thick_pointer): New function.
2064 (process_structure_scope): Call quirk_ada_thick_pointer.
2065 * ada-lang.c (ada_is_unconstrained_packed_array_type)
2066 (decode_packed_array_bitsize): Handle thick pointers without
2067 parallel types.
2068 (ada_is_gnat_encoded_packed_array_type): Rename from
2069 ada_is_packed_array_type.
2070 (ada_is_constrained_packed_array_type): Update.
2071 * ada-valprint.c (ada_val_print_gnat_array): Remove.
2072 (ada_value_print_1): Use ada_get_decoded_value.
2073
2074 2020-11-04 Tom Tromey <tromey@adacore.com>
2075
2076 * ada-lang.c (recursively_update_array_bitsize): New function.
2077 (decode_constrained_packed_array_type): Call it.
2078
2079 2020-11-04 Tom Tromey <tromey@adacore.com>
2080
2081 * ada-lang.c (to_fixed_array_type): Error if
2082 decode_constrained_packed_array_type returns NULL.
2083
2084 2020-11-04 Tom Tromey <tromey@adacore.com>
2085
2086 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
2087
2088 2020-11-02 Tom Tromey <tromey@adacore.com>
2089
2090 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
2091 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
2092 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
2093 * amd64-ravenscar-thread.c: New file.
2094 * amd64-ravenscar-thread.h: New file.
2095 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
2096 * configure.tgt (amd64_tobjs): Add ravenscar objects.
2097
2098 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2099
2100 * main.c (execute_cmdargs): New function.
2101 (captured_main_1): Make use of execute_cmdargs.
2102
2103 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2104
2105 * NEWS: Mention changes to config file search path.
2106 * main.c
2107
2108 2020-11-02 Tom Tromey <tromey@adacore.com>
2109
2110 * python/python.c: Consolidate two HAVE_PYTHON blocks.
2111 (python_GdbModuleDef): Move earlier. Now static.
2112 (do_start_initialization): Consolidate some IS_PY3K blocks.
2113
2114 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
2115
2116 * aarch64-linux-tdep.c: Fix indentation.
2117 * aarch64-ravenscar-thread.c: Fix indentation.
2118 * aarch64-tdep.c: Fix indentation.
2119 * aarch64-tdep.h: Fix indentation.
2120 * ada-lang.c: Fix indentation.
2121 * ada-lang.h: Fix indentation.
2122 * ada-tasks.c: Fix indentation.
2123 * ada-typeprint.c: Fix indentation.
2124 * ada-valprint.c: Fix indentation.
2125 * ada-varobj.c: Fix indentation.
2126 * addrmap.c: Fix indentation.
2127 * addrmap.h: Fix indentation.
2128 * agent.c: Fix indentation.
2129 * aix-thread.c: Fix indentation.
2130 * alpha-bsd-nat.c: Fix indentation.
2131 * alpha-linux-tdep.c: Fix indentation.
2132 * alpha-mdebug-tdep.c: Fix indentation.
2133 * alpha-nbsd-tdep.c: Fix indentation.
2134 * alpha-obsd-tdep.c: Fix indentation.
2135 * alpha-tdep.c: Fix indentation.
2136 * amd64-bsd-nat.c: Fix indentation.
2137 * amd64-darwin-tdep.c: Fix indentation.
2138 * amd64-linux-nat.c: Fix indentation.
2139 * amd64-linux-tdep.c: Fix indentation.
2140 * amd64-nat.c: Fix indentation.
2141 * amd64-obsd-tdep.c: Fix indentation.
2142 * amd64-tdep.c: Fix indentation.
2143 * amd64-windows-tdep.c: Fix indentation.
2144 * annotate.c: Fix indentation.
2145 * arc-tdep.c: Fix indentation.
2146 * arch-utils.c: Fix indentation.
2147 * arch/arm-get-next-pcs.c: Fix indentation.
2148 * arch/arm.c: Fix indentation.
2149 * arm-linux-nat.c: Fix indentation.
2150 * arm-linux-tdep.c: Fix indentation.
2151 * arm-nbsd-tdep.c: Fix indentation.
2152 * arm-pikeos-tdep.c: Fix indentation.
2153 * arm-tdep.c: Fix indentation.
2154 * arm-tdep.h: Fix indentation.
2155 * arm-wince-tdep.c: Fix indentation.
2156 * auto-load.c: Fix indentation.
2157 * auxv.c: Fix indentation.
2158 * avr-tdep.c: Fix indentation.
2159 * ax-gdb.c: Fix indentation.
2160 * ax-general.c: Fix indentation.
2161 * bfin-linux-tdep.c: Fix indentation.
2162 * block.c: Fix indentation.
2163 * block.h: Fix indentation.
2164 * blockframe.c: Fix indentation.
2165 * bpf-tdep.c: Fix indentation.
2166 * break-catch-sig.c: Fix indentation.
2167 * break-catch-syscall.c: Fix indentation.
2168 * break-catch-throw.c: Fix indentation.
2169 * breakpoint.c: Fix indentation.
2170 * breakpoint.h: Fix indentation.
2171 * bsd-uthread.c: Fix indentation.
2172 * btrace.c: Fix indentation.
2173 * build-id.c: Fix indentation.
2174 * buildsym-legacy.h: Fix indentation.
2175 * buildsym.c: Fix indentation.
2176 * c-typeprint.c: Fix indentation.
2177 * c-valprint.c: Fix indentation.
2178 * c-varobj.c: Fix indentation.
2179 * charset.c: Fix indentation.
2180 * cli/cli-cmds.c: Fix indentation.
2181 * cli/cli-decode.c: Fix indentation.
2182 * cli/cli-decode.h: Fix indentation.
2183 * cli/cli-script.c: Fix indentation.
2184 * cli/cli-setshow.c: Fix indentation.
2185 * coff-pe-read.c: Fix indentation.
2186 * coffread.c: Fix indentation.
2187 * compile/compile-cplus-types.c: Fix indentation.
2188 * compile/compile-object-load.c: Fix indentation.
2189 * compile/compile-object-run.c: Fix indentation.
2190 * completer.c: Fix indentation.
2191 * corefile.c: Fix indentation.
2192 * corelow.c: Fix indentation.
2193 * cp-abi.h: Fix indentation.
2194 * cp-namespace.c: Fix indentation.
2195 * cp-support.c: Fix indentation.
2196 * cp-valprint.c: Fix indentation.
2197 * cris-linux-tdep.c: Fix indentation.
2198 * cris-tdep.c: Fix indentation.
2199 * darwin-nat-info.c: Fix indentation.
2200 * darwin-nat.c: Fix indentation.
2201 * darwin-nat.h: Fix indentation.
2202 * dbxread.c: Fix indentation.
2203 * dcache.c: Fix indentation.
2204 * disasm.c: Fix indentation.
2205 * dtrace-probe.c: Fix indentation.
2206 * dwarf2/abbrev.c: Fix indentation.
2207 * dwarf2/attribute.c: Fix indentation.
2208 * dwarf2/expr.c: Fix indentation.
2209 * dwarf2/frame.c: Fix indentation.
2210 * dwarf2/index-cache.c: Fix indentation.
2211 * dwarf2/index-write.c: Fix indentation.
2212 * dwarf2/line-header.c: Fix indentation.
2213 * dwarf2/loc.c: Fix indentation.
2214 * dwarf2/macro.c: Fix indentation.
2215 * dwarf2/read.c: Fix indentation.
2216 * dwarf2/read.h: Fix indentation.
2217 * elfread.c: Fix indentation.
2218 * eval.c: Fix indentation.
2219 * event-top.c: Fix indentation.
2220 * exec.c: Fix indentation.
2221 * exec.h: Fix indentation.
2222 * expprint.c: Fix indentation.
2223 * f-lang.c: Fix indentation.
2224 * f-typeprint.c: Fix indentation.
2225 * f-valprint.c: Fix indentation.
2226 * fbsd-nat.c: Fix indentation.
2227 * fbsd-tdep.c: Fix indentation.
2228 * findvar.c: Fix indentation.
2229 * fork-child.c: Fix indentation.
2230 * frame-unwind.c: Fix indentation.
2231 * frame-unwind.h: Fix indentation.
2232 * frame.c: Fix indentation.
2233 * frv-linux-tdep.c: Fix indentation.
2234 * frv-tdep.c: Fix indentation.
2235 * frv-tdep.h: Fix indentation.
2236 * ft32-tdep.c: Fix indentation.
2237 * gcore.c: Fix indentation.
2238 * gdb_bfd.c: Fix indentation.
2239 * gdbarch.sh: Fix indentation.
2240 * gdbarch.c: Re-generate
2241 * gdbarch.h: Re-generate.
2242 * gdbcore.h: Fix indentation.
2243 * gdbthread.h: Fix indentation.
2244 * gdbtypes.c: Fix indentation.
2245 * gdbtypes.h: Fix indentation.
2246 * glibc-tdep.c: Fix indentation.
2247 * gnu-nat.c: Fix indentation.
2248 * gnu-nat.h: Fix indentation.
2249 * gnu-v2-abi.c: Fix indentation.
2250 * gnu-v3-abi.c: Fix indentation.
2251 * go32-nat.c: Fix indentation.
2252 * guile/guile-internal.h: Fix indentation.
2253 * guile/scm-cmd.c: Fix indentation.
2254 * guile/scm-frame.c: Fix indentation.
2255 * guile/scm-iterator.c: Fix indentation.
2256 * guile/scm-math.c: Fix indentation.
2257 * guile/scm-ports.c: Fix indentation.
2258 * guile/scm-pretty-print.c: Fix indentation.
2259 * guile/scm-value.c: Fix indentation.
2260 * h8300-tdep.c: Fix indentation.
2261 * hppa-linux-nat.c: Fix indentation.
2262 * hppa-linux-tdep.c: Fix indentation.
2263 * hppa-nbsd-nat.c: Fix indentation.
2264 * hppa-nbsd-tdep.c: Fix indentation.
2265 * hppa-obsd-nat.c: Fix indentation.
2266 * hppa-tdep.c: Fix indentation.
2267 * hppa-tdep.h: Fix indentation.
2268 * i386-bsd-nat.c: Fix indentation.
2269 * i386-darwin-nat.c: Fix indentation.
2270 * i386-darwin-tdep.c: Fix indentation.
2271 * i386-dicos-tdep.c: Fix indentation.
2272 * i386-gnu-nat.c: Fix indentation.
2273 * i386-linux-nat.c: Fix indentation.
2274 * i386-linux-tdep.c: Fix indentation.
2275 * i386-nto-tdep.c: Fix indentation.
2276 * i386-obsd-tdep.c: Fix indentation.
2277 * i386-sol2-nat.c: Fix indentation.
2278 * i386-tdep.c: Fix indentation.
2279 * i386-tdep.h: Fix indentation.
2280 * i386-windows-tdep.c: Fix indentation.
2281 * i387-tdep.c: Fix indentation.
2282 * i387-tdep.h: Fix indentation.
2283 * ia64-libunwind-tdep.c: Fix indentation.
2284 * ia64-libunwind-tdep.h: Fix indentation.
2285 * ia64-linux-nat.c: Fix indentation.
2286 * ia64-linux-tdep.c: Fix indentation.
2287 * ia64-tdep.c: Fix indentation.
2288 * ia64-tdep.h: Fix indentation.
2289 * ia64-vms-tdep.c: Fix indentation.
2290 * infcall.c: Fix indentation.
2291 * infcmd.c: Fix indentation.
2292 * inferior.c: Fix indentation.
2293 * infrun.c: Fix indentation.
2294 * iq2000-tdep.c: Fix indentation.
2295 * language.c: Fix indentation.
2296 * linespec.c: Fix indentation.
2297 * linux-fork.c: Fix indentation.
2298 * linux-nat.c: Fix indentation.
2299 * linux-tdep.c: Fix indentation.
2300 * linux-thread-db.c: Fix indentation.
2301 * lm32-tdep.c: Fix indentation.
2302 * m2-lang.c: Fix indentation.
2303 * m2-typeprint.c: Fix indentation.
2304 * m2-valprint.c: Fix indentation.
2305 * m32c-tdep.c: Fix indentation.
2306 * m32r-linux-tdep.c: Fix indentation.
2307 * m32r-tdep.c: Fix indentation.
2308 * m68hc11-tdep.c: Fix indentation.
2309 * m68k-bsd-nat.c: Fix indentation.
2310 * m68k-linux-nat.c: Fix indentation.
2311 * m68k-linux-tdep.c: Fix indentation.
2312 * m68k-tdep.c: Fix indentation.
2313 * machoread.c: Fix indentation.
2314 * macrocmd.c: Fix indentation.
2315 * macroexp.c: Fix indentation.
2316 * macroscope.c: Fix indentation.
2317 * macrotab.c: Fix indentation.
2318 * macrotab.h: Fix indentation.
2319 * main.c: Fix indentation.
2320 * mdebugread.c: Fix indentation.
2321 * mep-tdep.c: Fix indentation.
2322 * mi/mi-cmd-catch.c: Fix indentation.
2323 * mi/mi-cmd-disas.c: Fix indentation.
2324 * mi/mi-cmd-env.c: Fix indentation.
2325 * mi/mi-cmd-stack.c: Fix indentation.
2326 * mi/mi-cmd-var.c: Fix indentation.
2327 * mi/mi-cmds.c: Fix indentation.
2328 * mi/mi-main.c: Fix indentation.
2329 * mi/mi-parse.c: Fix indentation.
2330 * microblaze-tdep.c: Fix indentation.
2331 * minidebug.c: Fix indentation.
2332 * minsyms.c: Fix indentation.
2333 * mips-linux-nat.c: Fix indentation.
2334 * mips-linux-tdep.c: Fix indentation.
2335 * mips-nbsd-tdep.c: Fix indentation.
2336 * mips-tdep.c: Fix indentation.
2337 * mn10300-linux-tdep.c: Fix indentation.
2338 * mn10300-tdep.c: Fix indentation.
2339 * moxie-tdep.c: Fix indentation.
2340 * msp430-tdep.c: Fix indentation.
2341 * namespace.h: Fix indentation.
2342 * nat/fork-inferior.c: Fix indentation.
2343 * nat/gdb_ptrace.h: Fix indentation.
2344 * nat/linux-namespaces.c: Fix indentation.
2345 * nat/linux-osdata.c: Fix indentation.
2346 * nat/netbsd-nat.c: Fix indentation.
2347 * nat/x86-dregs.c: Fix indentation.
2348 * nbsd-nat.c: Fix indentation.
2349 * nbsd-tdep.c: Fix indentation.
2350 * nios2-linux-tdep.c: Fix indentation.
2351 * nios2-tdep.c: Fix indentation.
2352 * nto-procfs.c: Fix indentation.
2353 * nto-tdep.c: Fix indentation.
2354 * objfiles.c: Fix indentation.
2355 * objfiles.h: Fix indentation.
2356 * opencl-lang.c: Fix indentation.
2357 * or1k-tdep.c: Fix indentation.
2358 * osabi.c: Fix indentation.
2359 * osabi.h: Fix indentation.
2360 * osdata.c: Fix indentation.
2361 * p-lang.c: Fix indentation.
2362 * p-typeprint.c: Fix indentation.
2363 * p-valprint.c: Fix indentation.
2364 * parse.c: Fix indentation.
2365 * ppc-linux-nat.c: Fix indentation.
2366 * ppc-linux-tdep.c: Fix indentation.
2367 * ppc-nbsd-nat.c: Fix indentation.
2368 * ppc-nbsd-tdep.c: Fix indentation.
2369 * ppc-obsd-nat.c: Fix indentation.
2370 * ppc-ravenscar-thread.c: Fix indentation.
2371 * ppc-sysv-tdep.c: Fix indentation.
2372 * ppc64-tdep.c: Fix indentation.
2373 * printcmd.c: Fix indentation.
2374 * proc-api.c: Fix indentation.
2375 * producer.c: Fix indentation.
2376 * producer.h: Fix indentation.
2377 * prologue-value.c: Fix indentation.
2378 * prologue-value.h: Fix indentation.
2379 * psymtab.c: Fix indentation.
2380 * python/py-arch.c: Fix indentation.
2381 * python/py-bpevent.c: Fix indentation.
2382 * python/py-event.c: Fix indentation.
2383 * python/py-event.h: Fix indentation.
2384 * python/py-finishbreakpoint.c: Fix indentation.
2385 * python/py-frame.c: Fix indentation.
2386 * python/py-framefilter.c: Fix indentation.
2387 * python/py-inferior.c: Fix indentation.
2388 * python/py-infthread.c: Fix indentation.
2389 * python/py-objfile.c: Fix indentation.
2390 * python/py-prettyprint.c: Fix indentation.
2391 * python/py-registers.c: Fix indentation.
2392 * python/py-signalevent.c: Fix indentation.
2393 * python/py-stopevent.c: Fix indentation.
2394 * python/py-stopevent.h: Fix indentation.
2395 * python/py-threadevent.c: Fix indentation.
2396 * python/py-tui.c: Fix indentation.
2397 * python/py-unwind.c: Fix indentation.
2398 * python/py-value.c: Fix indentation.
2399 * python/py-xmethods.c: Fix indentation.
2400 * python/python-internal.h: Fix indentation.
2401 * python/python.c: Fix indentation.
2402 * ravenscar-thread.c: Fix indentation.
2403 * record-btrace.c: Fix indentation.
2404 * record-full.c: Fix indentation.
2405 * record.c: Fix indentation.
2406 * reggroups.c: Fix indentation.
2407 * regset.h: Fix indentation.
2408 * remote-fileio.c: Fix indentation.
2409 * remote.c: Fix indentation.
2410 * reverse.c: Fix indentation.
2411 * riscv-linux-tdep.c: Fix indentation.
2412 * riscv-ravenscar-thread.c: Fix indentation.
2413 * riscv-tdep.c: Fix indentation.
2414 * rl78-tdep.c: Fix indentation.
2415 * rs6000-aix-tdep.c: Fix indentation.
2416 * rs6000-lynx178-tdep.c: Fix indentation.
2417 * rs6000-nat.c: Fix indentation.
2418 * rs6000-tdep.c: Fix indentation.
2419 * rust-lang.c: Fix indentation.
2420 * rx-tdep.c: Fix indentation.
2421 * s12z-tdep.c: Fix indentation.
2422 * s390-linux-tdep.c: Fix indentation.
2423 * score-tdep.c: Fix indentation.
2424 * ser-base.c: Fix indentation.
2425 * ser-mingw.c: Fix indentation.
2426 * ser-uds.c: Fix indentation.
2427 * ser-unix.c: Fix indentation.
2428 * serial.c: Fix indentation.
2429 * sh-linux-tdep.c: Fix indentation.
2430 * sh-nbsd-tdep.c: Fix indentation.
2431 * sh-tdep.c: Fix indentation.
2432 * skip.c: Fix indentation.
2433 * sol-thread.c: Fix indentation.
2434 * solib-aix.c: Fix indentation.
2435 * solib-darwin.c: Fix indentation.
2436 * solib-frv.c: Fix indentation.
2437 * solib-svr4.c: Fix indentation.
2438 * solib.c: Fix indentation.
2439 * source.c: Fix indentation.
2440 * sparc-linux-tdep.c: Fix indentation.
2441 * sparc-nbsd-tdep.c: Fix indentation.
2442 * sparc-obsd-tdep.c: Fix indentation.
2443 * sparc-ravenscar-thread.c: Fix indentation.
2444 * sparc-tdep.c: Fix indentation.
2445 * sparc64-linux-tdep.c: Fix indentation.
2446 * sparc64-nbsd-tdep.c: Fix indentation.
2447 * sparc64-obsd-tdep.c: Fix indentation.
2448 * sparc64-tdep.c: Fix indentation.
2449 * stabsread.c: Fix indentation.
2450 * stack.c: Fix indentation.
2451 * stap-probe.c: Fix indentation.
2452 * stubs/ia64vms-stub.c: Fix indentation.
2453 * stubs/m32r-stub.c: Fix indentation.
2454 * stubs/m68k-stub.c: Fix indentation.
2455 * stubs/sh-stub.c: Fix indentation.
2456 * stubs/sparc-stub.c: Fix indentation.
2457 * symfile-mem.c: Fix indentation.
2458 * symfile.c: Fix indentation.
2459 * symfile.h: Fix indentation.
2460 * symmisc.c: Fix indentation.
2461 * symtab.c: Fix indentation.
2462 * symtab.h: Fix indentation.
2463 * target-float.c: Fix indentation.
2464 * target.c: Fix indentation.
2465 * target.h: Fix indentation.
2466 * tic6x-tdep.c: Fix indentation.
2467 * tilegx-linux-tdep.c: Fix indentation.
2468 * tilegx-tdep.c: Fix indentation.
2469 * top.c: Fix indentation.
2470 * tracefile-tfile.c: Fix indentation.
2471 * tracepoint.c: Fix indentation.
2472 * tui/tui-disasm.c: Fix indentation.
2473 * tui/tui-io.c: Fix indentation.
2474 * tui/tui-regs.c: Fix indentation.
2475 * tui/tui-stack.c: Fix indentation.
2476 * tui/tui-win.c: Fix indentation.
2477 * tui/tui-winsource.c: Fix indentation.
2478 * tui/tui.c: Fix indentation.
2479 * typeprint.c: Fix indentation.
2480 * ui-out.h: Fix indentation.
2481 * unittests/copy_bitwise-selftests.c: Fix indentation.
2482 * unittests/memory-map-selftests.c: Fix indentation.
2483 * utils.c: Fix indentation.
2484 * v850-tdep.c: Fix indentation.
2485 * valarith.c: Fix indentation.
2486 * valops.c: Fix indentation.
2487 * valprint.c: Fix indentation.
2488 * valprint.h: Fix indentation.
2489 * value.c: Fix indentation.
2490 * value.h: Fix indentation.
2491 * varobj.c: Fix indentation.
2492 * vax-tdep.c: Fix indentation.
2493 * windows-nat.c: Fix indentation.
2494 * windows-tdep.c: Fix indentation.
2495 * xcoffread.c: Fix indentation.
2496 * xml-syscall.c: Fix indentation.
2497 * xml-tdesc.c: Fix indentation.
2498 * xstormy16-tdep.c: Fix indentation.
2499 * xtensa-config.c: Fix indentation.
2500 * xtensa-linux-nat.c: Fix indentation.
2501 * xtensa-linux-tdep.c: Fix indentation.
2502 * xtensa-tdep.c: Fix indentation.
2503
2504 2020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2505 Craig Blackmore <craig.blackmore@embecosm.com>
2506
2507 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2508 as an unsigned value.
2509
2510 2020-11-01 Tom Tromey <tom@tromey.com>
2511
2512 * dbxread.c (dbx_end_psymtab): Update.
2513 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2514 (build_type_psymtabs_reader): Update.
2515 * xcoffread.c (xcoff_end_psymtab): Update.
2516 * ctfread.c (scan_partial_symbols): Update.
2517 * psymtab.c (sort_pst_symbols): Remove.
2518 (partial_symtab::end): Rename from end_psymtab_common. Inline
2519 sort_pst_symbols.
2520 * psympriv.h (struct partial_symtab) <end>: New method.
2521 (end_psymtab_common): Don't declare.
2522
2523 2020-11-01 Tom Tromey <tom@tromey.com>
2524
2525 * symmisc.c (count_psyms): New function.
2526 (print_objfile_statistics): Use it.
2527 * psymtab.c (append_psymbol_to_list): Remove.
2528 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2529 * objfiles.h (struct objstats) <n_psyms>: Remove.
2530
2531 2020-11-01 Tom Tromey <tom@tromey.com>
2532
2533 * dbxread.c (dbx_end_psymtab): Update.
2534 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2535 (build_type_psymtabs_reader): Update.
2536 * xcoffread.c (xcoff_end_psymtab): Update.
2537 * ctfread.c (scan_partial_symbols): Update.
2538 * psympriv.h (end_psymtab_common): Update.
2539 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2540 (sort_pst_symbols): Likewise.
2541
2542 2020-11-01 Tom Tromey <tom@tromey.com>
2543
2544 * dbxread.c (dbx_symfile_read): Update.
2545 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2546 * xcoffread.c (xcoff_initial_scan): Update.
2547 * psympriv.h (init_psymbol_list): Don't declare.
2548 * psymtab.c (init_psymbol_list): Remove.
2549
2550 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2551
2552 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2553 gnat_encoded_fixed_type_info. Update all callers.
2554
2555 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2556
2557 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2558 line too long.
2559
2560 2020-11-01 Joel Brobecker <brobecker@adacore.com>
2561
2562 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2563 cast_from_fixed. Update all callers.
2564 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2565 Update all callers.
2566 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2567 Update all callers.
2568 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2569 ada_scaling_factor.
2570 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2571 to print_gnat_encoded_fixed_point_type.
2572 * ada-valprint.c: Likewise.
2573
2574 2020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2577 (debug_prefixed_printf): Add check of debug_displaced flag.
2578 * linux-nat.c (linux_nat_debug_printf): Add check of
2579 debug_linux_nat flag.
2580
2581 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2582
2583 * infrun.c (infrun_debug_printf_1): Remove.
2584 (displaced_debug_printf_1): Remove.
2585 (stop_all_threads): Use debug_prefixed_printf.
2586 * infrun.h (infrun_debug_printf_1): Remove.
2587 (infrun_debug_printf): Use debug_prefixed_printf.
2588 (displaced_debug_printf_1): Remove.
2589 (displaced_debug_printf): Use debug_prefixed_printf.
2590 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2591 (linux_nat_debug_printf): Use debug_prefixed_printf.
2592
2593 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2594
2595 * configure: Re-generate.
2596 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2597 AC_LANG_PROGRAM.
2598
2599 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * configure: Re-generate.
2602
2603 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * configure: Re-generate.
2606
2607 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * configure: Re-generate.
2610
2611 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * configure: Re-generate.
2614
2615 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * acinclude.m4: Modernize.
2618 * configure: Re-generate.
2619
2620 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2621
2622 * configure.ac: Modernize.
2623 * configure: Re-generate.
2624
2625 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2628 * configure: Re-generate.
2629 * configure.ac: Remove AM_PROG_CC_STDC.
2630
2631 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2632
2633 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2634 AC_CANONICAL_SYSTEM.
2635 * configure: Re-generate.
2636
2637 2020-10-30 Simon Marchi <simon.marchi@efficios.com>
2638
2639 * infrun.h (displaced_debug_printf): New macro. Replace
2640 displaced debug prints throughout to use it.
2641 (displaced_debug_printf_1): New declaration.
2642 (displaced_step_dump_bytes): Return string, remove ui_file
2643 parameter, update all callers.
2644 * infrun.c (displaced_debug_printf_1): New function.
2645 (displaced_step_dump_bytes): Return string, remove ui_file
2646 parameter
2647
2648 2020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2649
2650 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2651
2652 2020-10-30 Tom Tromey <tromey@adacore.com>
2653
2654 * Makefile.in (stamp-init): Depend on config.status.
2655
2656 2020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2657
2658 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2659
2660 2020-10-30 Pedro Alves <pedro@palves.net>
2661
2662 * thread.c (lookup_selected_frame): Move ...
2663 * frame.c (lookup_selected_frame): ... here.
2664
2665 2020-10-30 Pedro Alves <pedro@palves.net>
2666
2667 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2668 * frame.c
2669 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2670 Use save_selected_frame. Save language as well.
2671 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2672 Use restore_selected_frame, and restore language as well.
2673 (selected_frame_id, selected_frame_level): New.
2674 (selected_frame): Update comments.
2675 (save_selected_frame, restore_selected_frame): New.
2676 (get_selected_frame): Use lookup_selected_frame.
2677 (get_selected_frame_if_set): Delete.
2678 (select_frame): Record selected_frame_level and selected_frame_id.
2679 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2680 fields.
2681 (get_selected_frame): Make 'message' parameter optional.
2682 (get_selected_frame_if_set): Delete declaration.
2683 (select_frame): Update comments.
2684 (save_selected_frame, restore_selected_frame)
2685 (lookup_selected_frame): Declare.
2686 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2687 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2688 New field.
2689 (save_infcall_control_state): Use save_selected_frame.
2690 (restore_selected_frame): Delete.
2691 (restore_infcall_control_state): Use restore_selected_frame.
2692 * stack.c (select_frame_command_core, frame_command_core): Use
2693 get_selected_frame.
2694 * thread.c (restore_selected_frame): Rename to ...
2695 (lookup_selected_frame): ... this and make extern. Select the
2696 current frame if the frame level is -1.
2697 (scoped_restore_current_thread::restore): Also restore the
2698 language.
2699 (scoped_restore_current_thread::~scoped_restore_current_thread):
2700 Don't try/catch.
2701 (scoped_restore_current_thread::scoped_restore_current_thread):
2702 Save the language as well. Use save_selected_frame.
2703
2704 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2705
2706 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2707 documentation.
2708 * gdbarch.h: Re-generate.
2709
2710 2020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2711
2712 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2713 parameter.
2714 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2715 Likewise.
2716 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2717 Likewise.
2718 * arch-utils.c (default_displaced_step_hw_singlestep):
2719 Likewise.
2720 * arch-utils.h (default_displaced_step_hw_singlestep):
2721 Likewise.
2722 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2723 Likewise.
2724 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2725 Likewise.
2726 * gdbarch.c: Re-generate.
2727 * gdbarch.h: Re-generate.
2728 * infrun.c (resume_1): Adjust.
2729
2730 2020-10-29 Tom Tromey <tom@tromey.com>
2731
2732 * progspace.c (program_space::~program_space): Don't call
2733 exec_close.
2734
2735 2020-10-29 Tom Tromey <tom@tromey.com>
2736
2737 * exec.c (exec_target::close): Don't change current program
2738 space.
2739
2740 2020-10-29 Tom Tromey <tom@tromey.com>
2741
2742 * symfile.c (add_symbol_file_command): Update.
2743 * exec.c (program_space::add_target_sections): Rename.
2744 * symfile-mem.c (symbol_file_add_from_memory): Update.
2745 * progspace.h (struct program_space) <add_target_sections>:
2746 Declare new overload.
2747 * exec.h (add_target_sections_of_objfile): Don't declare.
2748
2749 2020-10-29 Tom Tromey <tom@tromey.com>
2750
2751 * solib.c (solib_map_sections): Update.
2752 * exec.c (program_space::add_target_sections): Now a method.
2753 (exec_file_attach): Update.
2754 * exec.h (add_target_sections): Don't declare.
2755 * progspace.h (struct program_space) <add_target_sections>:
2756 Declare.
2757
2758 2020-10-29 Tom Tromey <tom@tromey.com>
2759
2760 * progspace.h (struct program_space) <remove_target_sections>:
2761 Declare.
2762 * exec.c (program_space::remove_target_sections): Now a method.
2763 * exec.h (remove_target_sections): Don't declare.
2764
2765 2020-10-29 Tom Tromey <tom@tromey.com>
2766
2767 * inferior.c (delete_inferior): Update.
2768 * progspace.c (program_space::empty): Rename from
2769 program_space_empty_p. Return bool.
2770 * progspace.h (struct program_space) <empty>: New method.
2771 (program_space_empty_p): Don't declare.
2772
2773 2020-10-29 Tom Tromey <tom@tromey.com>
2774
2775 * progspace.c (program_space::~program_space): Don't call
2776 clear_program_space_solib_cache.
2777 (program_space::clear_solib_cache): Rename from
2778 clear_solib_cache.
2779 * solib.c (handle_solib_event): Update.
2780 * progspace.h (struct program_space) <clear_solib_cache>: New
2781 method.
2782 (clear_program_space_solib_cache): Don't declare.
2783
2784 2020-10-29 Tom Tromey <tom@tromey.com>
2785
2786 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2787 * target.c (info_target_command): Update.
2788 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2789 (symbol_file_clear, reread_symbols): Update.
2790 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2791 * stabsread.c (scan_file_globals): Update.
2792 * solib.c (update_solib_list): Update.
2793 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2794 (svr4_fetch_objfile_link_map, enable_break)
2795 (svr4_relocate_main_executable)
2796 (svr4_iterate_over_objfiles_in_search_order): Update.
2797 * solib-frv.c (lm_base, enable_break)
2798 (frv_relocate_main_executable): Update.
2799 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2800 (frv_fetch_objfile_link_map): Update.
2801 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2802 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2803 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2804 * remote.c (remote_target::get_offsets): Update.
2805 (remote_target::start_remote)
2806 (extended_remote_target::post_attach): Update.
2807 * objfiles.c (entry_point_address_query): Update.
2808 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2809 * minsyms.c (get_symbol_leading_char): Update.
2810 * frame.c (inside_main_func): Update.
2811 * progspace.h (symfile_objfile): Remove macro.
2812
2813 2020-10-29 Tom Tromey <tom@tromey.com>
2814
2815 * exec.c (exec_file_attach): Update.
2816 * progspace.c (program_space::exec_close): Update.
2817 * progspace.h (struct program_space) <ebfd>: Now a
2818 gdb_bfd_ref_ptr.
2819 <set_exec_bfd>: Change argument type.
2820 <exec_bfd>: Update.
2821
2822 2020-10-29 Tom Tromey <tom@tromey.com>
2823
2824 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2825 * symfile.c (reread_symbols): Update.
2826 * symfile-mem.c (add_symbol_file_from_memory_command)
2827 (add_vsyscall_page): Update.
2828 * source-cache.c (source_cache::get_plain_source_lines): Update.
2829 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2830 (svr4_current_sos_direct, svr4_exec_displacement)
2831 (svr4_relocate_main_executable): Update.
2832 (svr4_iterate_over_objfiles_in_search_order): Update.
2833 * solib-frv.c (enable_break2, enable_break): Update.
2834 * solib-dsbt.c (lm_base, enable_break): Update.
2835 * solib-darwin.c (find_program_interpreter)
2836 (darwin_solib_create_inferior_hook): Update.
2837 * sol-thread.c (rw_common, ps_pdmodel): Update.
2838 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2839 * remote.c (compare_sections_command)
2840 (remote_target::trace_set_readonly_regions): Update.
2841 * remote-sim.c (get_sim_inferior_data)
2842 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2843 (gdbsim_target_open, gdbsim_target::files_info): Update.
2844 * exec.h (exec_bfd): Remove macro.
2845 * progspace.c (initialize_progspace): Update.
2846 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2847 Update.
2848 * nto-procfs.c (nto_procfs_target::post_attach)
2849 (nto_procfs_target::create_inferior): Update.
2850 * maint.c (maintenance_info_sections): Update.
2851 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2852 Update.
2853 * infcmd.c (post_create_inferior): Update.
2854 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2855 (objfile_find_memory_regions): Update.
2856 * exec.c (validate_exec_file, exec_file_attach)
2857 (exec_read_partial_read_only, print_section_info): Update.
2858 * corelow.c (core_target_open): Update.
2859 * corefile.c (reopen_exec_file, validate_files): Update.
2860 * arm-tdep.c (gdb_print_insn_arm): Update.
2861 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2862 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2863 methods.
2864
2865 2020-10-29 Tom Tromey <tom@tromey.com>
2866
2867 * progspace.h (current_target_sections): Remove macro.
2868 * solib-svr4.c (scan_dyntag): Update.
2869 * solib-dsbt.c (scan_dyntag): Update.
2870 * exec.c (exec_target::close): Update.
2871 (add_target_sections, add_target_sections_of_objfile)
2872 (remove_target_sections, exec_target::get_section_table)
2873 (exec_target::files_info, set_section_command)
2874 (exec_set_section_address, exec_target::has_memory)
2875 (exec_target::has_memory): Update.
2876
2877 2020-10-29 Tom Tromey <tom@tromey.com>
2878
2879 * source-cache.c (source_cache::get_plain_source_lines): Use
2880 current_program_space.
2881 * corefile.c (reopen_exec_file): Use current_program_space.
2882 * exec.c (exec_file_attach): Use current_program_space.
2883 * exec.h (exec_bfd_mtime): Remove.
2884
2885 2020-10-29 Tom Tromey <tom@tromey.com>
2886
2887 * gcore.c (default_gcore_mach): Remove.
2888 (create_gcore_bfd): Update.
2889
2890 2020-10-29 Tom Tromey <tom@tromey.com>
2891
2892 * progspace.c (program_space::exec_close): New method, from
2893 exec_close in exec.c.
2894 * exec.c (exec_close): Move to progspace.c.
2895 (exec_target::close, exec_file_attach): Update.
2896 * progspace.h (struct program_space) <exec_close>: Declare
2897 method.
2898
2899 2020-10-29 Tom Tromey <tom@tromey.com>
2900
2901 * progspace.h (struct program_space) <exec_filename>: Rename from
2902 pspace_exec_filename. Now a unique_xmalloc_ptr.
2903 * inferior.c (print_selected_inferior): Update.
2904 (print_inferior): Update.
2905 * mi/mi-main.c (print_one_inferior): Update.
2906 * exec.h (exec_filename): Remove macro.
2907 * corefile.c (get_exec_file): Update.
2908 * exec.c (exec_close): Update.
2909 (exec_file_attach): Update.
2910 * progspace.c (clone_program_space): Update.
2911 (print_program_space): Update.
2912
2913 2020-10-29 Tom Tromey <tom@tromey.com>
2914
2915 * target-section.h (struct target_section): Add constructor.
2916 * exec.c (build_section_table, add_target_sections_of_objfile):
2917 Update.
2918 * corelow.c (core_target::build_file_mappings): Update.
2919
2920 2020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2921
2922 PR gdb/19318
2923 * inferior.c (detach_inferior_command): Restore the current thread.
2924 (kill_inferior_command): Ditto.
2925
2926 2020-10-28 Tom de Vries <tdevries@suse.de>
2927
2928 PR symtab/26772
2929 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2930 map, check it in the "best match" loop.
2931
2932 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2933
2934 * m32c-tdep.c: Remove unused includes.
2935
2936 2020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2937
2938 * xtensa-tdep.c: Remove includes.
2939
2940 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2941
2942 * breakpoint.c (struct condition_command_opts): New struct.
2943 (condition_command_option_defs): New static global.
2944 (make_condition_command_options_def_group): New function.
2945 (condition_completer): Update to consider the '-force' flag.
2946 (condition_command): Use gdb::option for the '-force' flag.
2947
2948 2020-10-27 Tom de Vries <tdevries@suse.de>
2949
2950 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2951 symbols in section check.
2952
2953 2020-10-27 Tom de Vries <tdevries@suse.de>
2954
2955 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2956
2957 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2958
2959 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2960 * breakpoint.c: Update the help text of the 'condition' and 'break'
2961 commands.
2962 (set_breakpoint_condition): Take a new bool parameter
2963 to control whether condition definition should be forced even when
2964 the condition expression is invalid in all of the current locations.
2965 (condition_command): Update the call to 'set_breakpoint_condition'.
2966 (find_condition_and_thread): Take the "-force-condition" flag into
2967 account.
2968 * linespec.c (linespec_keywords): Add "-force-condition" as an
2969 element.
2970 (FORCE_KEYWORD_INDEX): New #define.
2971 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2972 as a keyword.
2973 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2974 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2975 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2976 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2977
2978 2020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2979
2980 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2981 * breakpoint.c (set_breakpoint_location_condition): New function.
2982 (set_breakpoint_condition): Disable a breakpoint location if parsing
2983 the condition string gives an error.
2984 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2985 (build_target_condition_list): Ditto.
2986 (build_target_command_list): Ditto.
2987 (build_bpstat_chain): Ditto.
2988 (print_one_breakpoint_location): Ditto.
2989 (print_one_breakpoint): Ditto.
2990 (breakpoint_1): Ditto.
2991 (bp_location::bp_location): Ditto.
2992 (locations_are_equal): Ditto.
2993 (update_breakpoint_locations): Ditto.
2994 (enable_disable_bp_num_loc): Ditto.
2995 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2996 (find_condition_and_thread_for_sals): New static function.
2997 (create_breakpoint): Call find_condition_and_thread_for_sals.
2998 (location_to_sals): Call find_condition_and_thread_for_sals instead
2999 of find_condition_and_thread.
3000
3001 2020-10-26 Tom de Vries <tdevries@suse.de>
3002
3003 * dwarf2/read.c (process_full_comp_unit): Call
3004 dwarf2_find_base_address.
3005
3006 2020-10-26 Tom Tromey <tromey@adacore.com>
3007
3008 * gdbtypes.c (create_range_type): Revert previous patch. Add
3009 comment.
3010
3011 2020-10-26 Pedro Alves <pedro@palves.net>
3012
3013 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
3014 (my_waitpid): Use gdb::handle_eintr.
3015
3016 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
3017
3018 * acinclude.m4: Update ptrace.m4 path.
3019 * ptrace.m4: Moved to gdbsupport.
3020
3021 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
3022
3023 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
3024 instead of target_gdbarch.
3025
3026 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
3027
3028 * jit.c (jit_reader_load_command): Pass current inferior.
3029 (jit_inferior_init): Change parameter type to inferior, use it.
3030 (jit_inferior_created): Remove.
3031 (jit_inferior_created_hook): Pass inferior parameter down.
3032 (_initialize_jit): Use jit_inferior_created_hook instead of
3033 jit_inferior_created.
3034 * jit.h (jit_inferior_created_hook): Add inferior parameter.
3035 * infrun.c (follow_exec): Pass inferior to
3036 jit_inferior_created_hook.
3037
3038 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * linux-thread-db.c (check_pid_namespace_match): Add inferior
3041 parameter and use it.
3042 (thread_db_inferior_created): Pass inferior argument.
3043
3044 2020-10-24 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * aix-thread.c (aix_thread_inferior_created): Add inferior
3047 parameter.
3048 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
3049 * dummy-frame.c (cleanup_dummy_frames): Likewise.
3050 * jit.c (jit_inferior_created): Likewise.
3051 * linux-thread-db.c (thread_db_inferior_created): Likewise.
3052 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
3053 * observable.h (inferior_created): Likewise.
3054 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
3055 * symfile-mem.c (add_vsyscall_page): Likewise.
3056 * infcmd.c (post_create_inferior): Pass inferior argument.
3057
3058 2020-10-24 Joel Brobecker <brobecker@adacore.com>
3059
3060 GDB 10.1 released.
3061
3062 2020-10-23 Joel Brobecker <brobecker@adacore.com>
3063
3064 * ada-typeprint.c (ada_print_type): Remove superfluous second call
3065 to ada_check_typedef.
3066
3067 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3068
3069 * f-exp.y (f_parse): Rename to...
3070 (f_language::parser): ...this.
3071 * f-lang.c (f_get_encoding): Rename to...
3072 (f_language::get_encoding): ...this.
3073 (f_op_print_tab): Rename to...
3074 (f_language::op_print_tab): ...this.
3075 (exp_descriptor_f): Rename to...
3076 (f_language::exp_descriptor_tab): ...this.
3077 (class f_language): Moved to f-lang.h.
3078 (f_language::language_arch_info): New function, moved out of class
3079 declaration.
3080 (f_language::search_name_hash): Likewise.
3081 (f_language::lookup_symbol_nonlocal): Likewise.
3082 (f_language::get_symbol_name_matcher_inner): Likewise.
3083 * f-lang.h: Add 'valprint.h' include.
3084 (class f_language): Moved here from f-lang.c.
3085 * f-typeprint.c (f_type_print_args): Delete commented out
3086 declaration.
3087 (f_print_typedef): Rename to...
3088 (f_language::print_typedef): ...this.
3089 (f_print_type): Rename to...
3090 (f_language::print_type): ...this.
3091 (f_type_print_varspec_prefix): Delete declaration and rename to...
3092 (f_language::f_type_print_varspec_prefix): ...this.
3093 (f_type_print_varspec_suffix): Delete declaration and rename to...
3094 (f_language::f_type_print_varspec_suffix): ...this.
3095 (f_type_print_base): Delete declaration and rename to...
3096 (f_language::f_type_print_base): ...this.
3097 * f-valprint.c (f_value_print_inner): Rename to...
3098 (f_language::value_print_inner): ...this.
3099 * parse.c: Delete 'f-lang.h' include.
3100
3101 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * language.h (language_defn::print_type): Add variable names in
3104 declaration, and update header comment.
3105
3106 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * ada-lang.c (ada_language::demangle): Rename to...
3109 (ada_language::demangle_symbol): ...this.
3110 * c-lang.c (cplus_language::demangle): Rename to...
3111 (cplus_language::demangle_symbol): ...this.
3112 * d-lang.c (d_language::demangle): Rename to...
3113 (d_language::demangle_symbol): ...this.
3114 * f-lang.c (f_language::demangle): Rename to...
3115 (f_language::demangle_symbol): ...this.
3116 * go-lang.c (go_language::demangle): Rename to...
3117 (go_language::demangle_symbol): ...this.
3118 * language.c (language_demangle): Update call to demangle_symbol.
3119 (auto_or_unknown_language::demangle): Rename to...
3120 (auto_or_unknown_language::demangle_symbol): ...this.
3121 * language.h (language_defn::demangle): Rename to...
3122 (language_defn::demangle_symbol): ...this.
3123 * objc-lang.c (objc_language::demangle): Rename to...
3124 (objc_language::demangle_symbol): ...this.
3125 * rust-lang.c (rust_language::demangle): Rename to...
3126 (rust_language::demangle_symbol): ...this.
3127
3128 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3129
3130 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
3131 (iterate_over_file_blocks): Replace use of macro with the macros
3132 definition.
3133
3134 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3135
3136 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
3137 * valprint.c (maybe_print_array_index): Replace use of macro with
3138 the macros definition.
3139
3140 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3141
3142 * ada-lang.c (ada_language::print_array_index): Call value_print
3143 directly.
3144 * language.c (language_defn::print_array_index): Likewise.
3145 * language.h (LA_VALUE_PRINT): Delete.
3146 * valprint.c (value_print): Call value_print on the
3147 current_language directly.
3148
3149 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * language.h (LA_PRINT_TYPEDEF): Delete.
3152 * typeprint.c (typedef_print): Call print_typedef directly on the
3153 current_language object.
3154
3155 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3156
3157 * m2-exp.y (m2_parse): Rename to...
3158 (m2_language::parser): ...this. Update function signature.
3159 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
3160 (m2_op_print): Rename to...
3161 (m2_language::op_print_tab): ...this, and make const.
3162 (exp_descriptor_modula2): Rename to...
3163 (m2_language::exp_descriptor_modula2): ...this.
3164 (class m2_language): Move to m2-lang.h.
3165 (m2_language::language_arch_info): New function, moved out of
3166 class declaration.
3167 (m2_language::printchar): New function, body from m2_printchar.
3168 (m2_language::printstr): New function, moved out of class
3169 declaration.
3170 (m2_language::emitchar): Likewise.
3171 * m2-lang.h (m2_parse): Delete declaration.
3172 (m2_print_typedef): Delete declaration.
3173 (m2_value_print_inner): Delete declaration.
3174 (class m2_language): Class declaration moved from m2-lang.c,
3175 larger functions are left in m2-lang.c.
3176 * m2-typeprint.c (m2_print_typedef): Rename to...
3177 (m2_language::print_typedef): ...this, and update function
3178 signature.
3179 * m2-valprint.c (m2_value_print_inner): Rename to...
3180 (m2_language::value_print_inner): ...this, replace use of
3181 LA_PRINT_STRING with a direct call to printstr member function,
3182 and update recursive call.
3183
3184 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3185
3186 * language.c (default_is_string_type_p): Delete, implementation
3187 moved into auto_or_unknown_language::is_string_type_p.
3188 (unk_op_print_tab): Moved into
3189 auto_or_unknown_language::opcode_print_table.
3190 (unknown_language_arch_info): Delete, implementation moved into
3191 auto_or_unknown_language::language_arch_info.
3192 (class auto_or_unknown_language): New class, member functions
3193 copied from unknown_language class, with some updates.
3194 (class unknown_language): Most member functions moved into
3195 auto_or_unknown_language class. Inherit from
3196 auto_or_unknown_language class.
3197 (class auto_language): Inherit from auto_or_unknown_language.
3198 Delete most member functions.
3199
3200 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3201
3202 * stabsread.c (read_member_functions): Remove gdb_assert.
3203
3204 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
3205
3206 * gdbtypes.c (init_complex_type): Check target type name.
3207
3208 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3209
3210 * target-debug.h (target_debug_print_struct_target_ops_p):
3211 Remove.
3212 (target_debug_print_async_callback_ftype_p): Remove.
3213 (target_debug_print_struct_trace_state_variable_p): Remove.
3214 (target_debug_print_struct_traceframe_info_p): Remove.
3215 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3216 (target_debug_print_enum_btrace_format): Remove.
3217 (target_debug_print_enum_info_proc_what): Remove.
3218 (target_debug_print_thread_info_pp): Remove.
3219
3220 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * target.h (struct target_ops) <make_corefile_notes>:
3223 Change return type to unique pointer.
3224 * target.c (dummy_make_corefile_notes): Likewise.
3225 * exec.c (struct exec_target) <make_corefile_notes>:
3226 Likewise.
3227 (exec_target::make_corefile_notes): Likewise.
3228 * procfs.c (class procfs_target) <make_corefile_notes>:
3229 Likewise.
3230 (procfs_do_thread_registers): Adjust to unique pointer.
3231 (struct procfs_corefile_thread_data): Add constructor.
3232 <note_data>: Change type to unique pointer.
3233 (procfs_corefile_thread_callback): Adjust to unique pointer.
3234 (procfs_target::make_corefile_notes): Change return type to
3235 unique pointer.
3236 * target-delegates.c: Re-generate.
3237 * gcore.c (write_gcore_file_1): Adjust.
3238 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3239 New.
3240
3241 2020-10-22 Tom de Vries <tdevries@suse.de>
3242
3243 * block.c (find_block_in_blockvector): Make sure the returned block
3244 contains pc.
3245
3246 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3247
3248 PR gdb/26693
3249 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3250 parameter.
3251 (load_cu): Pass existing CU.
3252 (process_imported_unit_die): Likewise.
3253 (follow_die_offset): Likewise.
3254
3255 2020-10-22 Luis Machado <luis.machado@linaro.org>
3256
3257 * corelow.c (core_target::xfer_partial): Also check for an empty
3258 m_core_unavailable_mappings vector.
3259
3260 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3263 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3264 * f-exp.y (arglist): Allow for a series of subranges.
3265 (subrange): Add cases for subranges with strides.
3266 * f-lang.c (value_f90_subarray): Catch use of array strides and
3267 throw an error.
3268 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3269
3270 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * expprint.c (print_subexp_standard): Change enum range_type to
3273 range_flag and rename variables to match.
3274 (dump_subexp_body_standard): Likewise.
3275 * expression.h (enum range_type): Rename to...
3276 (enum range_flag): ...this.
3277 (range_types): Rename to...
3278 (range_flags): ...this.
3279 * f-lang.c (value_f90_subarray): Change enum range_type to
3280 range_flag and rename variables to match.
3281 * parse.c (operator_length_standard): Likewise.
3282 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3283 range_type to range_flag.
3284 * rust-lang.c (rust_evaluate_funcall): Likewise.
3285 (rust_range): Likewise.
3286 (rust_compute_range): Likewise.
3287 (rust_subscript): Likewise.
3288
3289 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * expprint.c (print_subexp_standard): Update to reflect changes to
3292 enum range_type.
3293 (dump_subexp_body_standard): Likewise.
3294 * expression.h (enum range_type): Convert to a bit field enum, and
3295 make the enum unsigned.
3296 * f-exp.y (subrange): Update to reflect changes to enum
3297 range_type.
3298 * f-lang.c (value_f90_subarray): Likewise.
3299 * parse.c (operator_length_standard): Likewise.
3300 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3301 * rust-lang.c (rust_range): Likewise.
3302 (rust_compute_range): Likewise.
3303 (rust_subscript): Likewise.
3304
3305 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
3306
3307 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3308 (displaced_step_in_progress): Fix comment.
3309
3310 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3311
3312 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3313 * gdbarch.c: Re-generate.
3314 * gdbarch.h: Re-generate.
3315 * gcore.c (write_gcore_file_1): Adjust.
3316 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3317 constructor.
3318 <note_data>: Change type to unique pointer.
3319 <abort_iteration>: Change type to bool.
3320 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3321 (fbsd_collect_thread_registers): Return void, adjust.
3322 (struct fbsd_corefile_thread_data): Add construtor.
3323 <note_data>: Change type to unique pointer.
3324 (fbsd_corefile_thread): Adjust.
3325 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3326 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3327 to unique pointer, adjust.
3328 (struct linux_collect_regset_section_cb_data): Add constructor.
3329 <note_data>: Change type to unique pointer.
3330 <abort_iteration>: Change type to bool.
3331 (linux_collect_thread_registers): Return void, adjust.
3332 (struct linux_corefile_thread_data): Add constructor.
3333 <note_data>: Change type to unique pointer.
3334 (linux_corefile_thread): Adjust.
3335 (linux_make_corefile_notes): Return unique pointer, adjust.
3336
3337 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3340 * gdbarch.c: Re-generate.
3341 * gdbarch.h: Re-generate.
3342 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3343 bool.
3344 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3345 Likewise.
3346 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3347 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3348 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3349 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3350
3351 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3352
3353 * gdbarch.sh: Make generated predicates return bool.
3354 * gdbarch.c: Re-generate.
3355 * gdbarch.h: Re-generate.
3356
3357 2020-10-20 Tom Tromey <tom@tromey.com>
3358
3359 * varobj-iter.h (struct varobj_item): Remove typedef.
3360
3361 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3362
3363 * infrun.c (currently_stepping): Change int to bool
3364 (maybe_software_singlestep): Likewise.
3365 (show_stop_on_solib_events): Likewise.
3366 (stepping_past_nonsteppable_watchpoint): Likewise.
3367 (displaced_step_in_progress_any_inferior): Likewise.
3368 (displaced_step_in_progress_thread): Likewise.
3369 (keep_going_stepped_thread): Likewise.
3370 (thread_still_needs_step_over): Likewise.
3371 (start_step_over): Likewise.
3372 (do_target_resume): Likewise.
3373 (resume_1): Likewise.
3374 (clear_proceed_status): Likewise.
3375 (thread_still_needs_step_over_bp): Likewise.
3376 (proceed): Likewise.
3377 (switch_back_to_stepped_thread): Likewise.
3378 (adjust_pc_after_break): Likewise.
3379 (stepped_in_from): Likewise.
3380 (handle_stop_requested): Likewise.
3381 (handle_syscall_event): Likewise.
3382 (handle_no_resumed): Likewise.
3383 (handle_inferior_event): Likewise.
3384 (finish_step_over): Likewise.
3385 (handle_signal_stop): Likewise.
3386 (process_event_stop_test): Likewise.
3387
3388 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * infrun.c (get_displaced_stepping_state): Fix comment.
3391
3392 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3393
3394 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3395
3396 2020-10-19 Tom Tromey <tromey@adacore.com>
3397
3398 PR tui/26719
3399 * tui/tui-winsource.h (struct tui_source_window_base)
3400 <refresh_window>: Rename from refresh_pad.
3401 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3402 Rename from refresh_pad.
3403 (tui_source_window_base::show_source_content)
3404 (tui_source_window_base::do_scroll_horizontal): Update.
3405
3406 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3407
3408 * thread.c (_initialize_thread): Fine-tune the help text of
3409 'info threads'.
3410
3411 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412
3413 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3414
3415 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3416
3417 * breakpoint.c (handle_jit_event): Add an argument, change how
3418 `jit_event_handler` is called.
3419
3420 2020-10-17 Tom Tromey <tom@tromey.com>
3421
3422 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3423 (scan_xcoff_symtab): Update.
3424 * psymtab.h (class psymtab_storage) <global_psymbols,
3425 static_psymbols, current_global_psymbols,
3426 current_static_psymbols>: Remove.
3427 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3428 (match_partial_symbol, lookup_partial_symbol): Update.
3429 (print_partial_symbols): Change parameters.
3430 (dump_psymtab, recursively_search_psymtabs)
3431 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3432 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3433 (concat): Remove.
3434 (end_psymtab_common): Simplify.
3435 (append_psymbol_to_list): Change parameters.
3436 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3437 (init_psymbol_list): Simplify.
3438 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3439 * psympriv.h (struct partial_symtab) <empty>: New method.
3440 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3441 Remove.
3442 <global_psymbols, static_psymbols>: New members.
3443 <add_psymbol>: New methods.
3444 (add_psymbol_to_list): Don't declare.
3445 (psymbol_placement): Move earlier.
3446 * mdebugread.c (parse_partial_symbols): Update.
3447 (handle_psymbol_enumerators): Change parameters.
3448 (mdebug_expand_psymtab): Update.
3449 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3450 (add_partial_symbol): Update.
3451 * dwarf2/index-write.c (write_psymbols): Change parameters.
3452 (write_one_signatured_type): Update.
3453 (recursively_count_psymbols): Update.
3454 (recursively_write_psymbols): Update.
3455 (class debug_names) <recursively_write_psymbols>: Update.
3456 <write_psymbols>: Change parameters.
3457 <write_one_signatured_type>: Update.
3458 * dbxread.c (read_dbx_symtab): Update.
3459 (dbx_end_psymtab): Use partial_symtab::empty.
3460 * ctfread.c (struct ctf_context) <pst>: New member.
3461 (create_partial_symtab): Set it.
3462 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3463 (scan_partial_symbols): Use the psymtab's context. Update.
3464
3465 2020-10-17 Tom Tromey <tom@tromey.com>
3466
3467 * valprint.c (generic_value_print): Remove comment.
3468 * m2-valprint.c (m2_value_print_inner): Remove comment.
3469 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3470 type.
3471
3472 2020-10-17 Tom de Vries <tdevries@suse.de>
3473
3474 PR symtab/26317
3475 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3476 symbol main.
3477
3478 2020-10-14 Tom de Vries <tdevries@suse.de>
3479
3480 PR gdb/26733
3481 * solib.c (solib_contains_address_p): Handle
3482 'solib->sections == nullptr'.
3483
3484 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3485
3486 PR gdb/26642
3487 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3488 target can't do async.
3489 * target.c (target_wait): Assert that we don't pass
3490 TARGET_WNOHANG to a target that can't async.
3491
3492 2020-10-13 Kamil Rytarowski <n54@gmx.com>
3493
3494 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3495 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3496 * alpha-bsd-nat.c: Adjust include.
3497 * alpha-bsd-tdep.h: Adjust comment.
3498 * alpha-nbsd-tdep.c: Rename to ...
3499 * alpha-netbsd-tdep.c: ... this, adjust include.
3500 * amd64-nbsd-nat.c: Rename to ...
3501 * amd64-netbsd-nat.c: ... this, adjust include.
3502 * amd64-nbsd-tdep.c: Rename to ...
3503 * amd64-netbsd-tdep.c: ... this, adjust include.
3504 * amd64-tdep.h: Adjust include.
3505 * arm-nbsd-nat.c: Rename to ...
3506 * arm-netbsd-nat.c: ... this, adjust include.
3507 * arm-nbsd-tdep.c: Rename to ...
3508 * arm-netbsd-tdep.c: ... this, adjust include.
3509 * arm-nbsd-tdep.h: Rename to ...
3510 * arm-netbsd-tdep.h: ... this, adjust include.
3511 * configure.nat: Adjust file lists.
3512 * configure.tgt: Likewise.
3513 * hppa-nbsd-nat.c: Rename to ...
3514 * hppa-netbsd-nat.c: ... this, adjust include.
3515 * hppa-nbsd-tdep.c: Rename to ...
3516 * hppa-netbsd-tdep.c: ... this, adjust include.
3517 * i386-nbsd-nat.c: Rename to ...
3518 * i386-netbsd-nat.c: ... this, adjust include.
3519 * i386-nbsd-tdep.c: Rename to ...
3520 * i386-netbsd-tdep.c: ... this, adjust include.
3521 * m68k-bsd-nat.c: Adjust include.
3522 * mips-nbsd-nat.c: Rename to ...
3523 * mips-netbsd-nat.c: ... this, adjust include.
3524 * mips-nbsd-tdep.c: Rename to ...
3525 * mips-netbsd-tdep.c: ... this, adjust include.
3526 * mips-nbsd-tdep.h: Rename to ...
3527 * mips-netbsd-tdep.h: ... this.
3528 * nbsd-nat.c: Rename to ...
3529 * netbsd-nat.c: ... this, adjust include.
3530 * nbsd-nat.h: Rename to ...
3531 * netbsd-nat.h: ... this, adjust include.
3532 * nbsd-tdep.c: Rename to ...
3533 * netbsd-tdep.c: ... this, adjust include.
3534 * nbsd-tdep.h: Rename to ...
3535 * netbsd-tdep.h: ... this.
3536 * ppc-nbsd-nat.c: Rename to ...
3537 * ppc-netbsd-nat.c: ... this, adjust include.
3538 * ppc-nbsd-tdep.c: Rename to ...
3539 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3540 * ppc-nbsd-tdep.h: Rename to ...
3541 * ppc-netbsd-tdep.h: ... this.
3542 * sh-nbsd-nat.c: Rename to ...
3543 * sh-netbsd-nat.c: ... this, adjust include.
3544 * sh-nbsd-tdep.c: Rename to ...
3545 * sh-netbsd-tdep.c: ... this, adjust include.
3546 * sparc-nbsd-nat.c: Rename to ...
3547 * sparc-netbsd-nat.c: ... this.
3548 * sparc-nbsd-tdep.c: Rename to ...
3549 * sparc-netbsd-tdep.c: ... this, adjust include.
3550 * sparc64-nbsd-nat.c: Rename to ...
3551 * sparc64-netbsd-nat.c: ... this.
3552 * sparc64-nbsd-tdep.c: Rename to ...
3553 * sparc64-netbsd-tdep.c: ... this, adjust include.
3554 * sparc64-tdep.h: Adjust comment.
3555 * vax-bsd-nat.c: Adjust include.
3556 * vax-nbsd-tdep.c: Rename to ...
3557 * vax-netbsd-tdep.c: ... this, adjust include.
3558
3559 2020-10-12 Tom Tromey <tom@tromey.com>
3560
3561 * target.h (struct target_ops) <get_section_table>: Update.
3562 (target_get_section_table): Update.
3563 * target.c (target_get_section_table, target_section_by_addr)
3564 (memory_xfer_partial_1): Update.
3565 * target-section.h (target_section_table): Now an alias.
3566 * target-delegates.c: Rebuild.
3567 * target-debug.h (target_debug_print_target_section_table_p):
3568 Rename from target_debug_print_struct_target_section_table_p.
3569 * symfile.c (build_section_addr_info_from_section_table): Update.
3570 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3571 * solib-svr4.c (scan_dyntag): Update.
3572 * solib-dsbt.c (scan_dyntag): Update.
3573 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3574 Update.
3575 * record-full.c (record_full_core_target::xfer_partial): Update.
3576 * progspace.h (struct program_space) <target_sections>: Update.
3577 * exec.h (print_section_info): Update.
3578 * exec.c (exec_target::close, build_section_table)
3579 (add_target_sections, add_target_sections_of_objfile)
3580 (remove_target_sections, exec_on_vfork)
3581 (section_table_available_memory)
3582 (section_table_xfer_memory_partial)
3583 (exec_target::get_section_table, exec_target::xfer_partial)
3584 (print_section_info, set_section_command)
3585 (exec_set_section_address, exec_target::has_memory): Update.
3586 * corelow.c (core_target::build_file_mappings)
3587 (core_target::xfer_partial, core_target::info_proc_mappings)
3588 (core_target::info_proc_mappings): Update.
3589 * bfd-target.c (class target_bfd): Update
3590
3591 2020-10-12 Tom Tromey <tom@tromey.com>
3592
3593 * progspace.c (program_space::~program_space): Don't call
3594 clear_section_table.
3595 * exec.h (clear_section_table): Don't declare.
3596 * exec.c (exec_target::close): Update.
3597 (clear_section_table): Remove.
3598
3599 2020-10-12 Tom Tromey <tom@tromey.com>
3600
3601 * exec.c (add_target_sections_of_objfile): Simplify.
3602
3603 2020-10-12 Tom Tromey <tom@tromey.com>
3604
3605 * solib.c (solib_map_sections): Update.
3606 * record-full.c (record_full_core_open_1): Update.
3607 * exec.h (build_section_table): Return a target_section_table.
3608 * exec.c (exec_file_attach): Update.
3609 (build_section_table): Return a target_section_table.
3610 * corelow.c (core_target::core_target): Update.
3611 * bfd-target.c (target_bfd::target_bfd): Update.
3612
3613 2020-10-12 Tom Tromey <tom@tromey.com>
3614
3615 * target.c (target_section_by_addr, memory_xfer_partial_1):
3616 Update.
3617 * target-section.h (struct target_section_table): Use
3618 std::vector.
3619 * symfile.h (build_section_addr_info_from_section_table): Take a
3620 target_section_table.
3621 * symfile.c (build_section_addr_info_from_section_table): Take a
3622 target_section_table.
3623 * solist.h (struct so_list) <sections>: Change type.
3624 <sections_end>: Remove.
3625 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3626 (solib_contains_address_p): Update.
3627 * solib-svr4.c (scan_dyntag): Update.
3628 * solib-dsbt.c (scan_dyntag): Update.
3629 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3630 Update.
3631 * record-full.c (record_full_core_start, record_full_core_end):
3632 Remove.
3633 (record_full_core_sections): New global.
3634 (record_full_core_open_1, record_full_core_target::xfer_partial):
3635 Update.
3636 * exec.h (build_section_table, section_table_xfer_memory_partial)
3637 (add_target_sections): Take a target_section_table.
3638 * exec.c (exec_file_attach, clear_section_table): Update.
3639 (resize_section_table): Remove.
3640 (build_section_table, add_target_sections): Take a
3641 target_section_table.
3642 (add_target_sections_of_objfile, remove_target_sections)
3643 (exec_on_vfork): Update.
3644 (section_table_available_memory): Take a target_section_table.
3645 (section_table_read_available_memory): Update.
3646 (section_table_xfer_memory_partial): Take a target_section_table.
3647 (print_section_info, set_section_command)
3648 (exec_set_section_address, exec_target::has_memory): Update.
3649 * corelow.c (class core_target) <m_core_section_table,
3650 m_core_file_mappings>: Remove braces.
3651 <~core_target>: Remove.
3652 (core_target::core_target): Update.
3653 (core_target::~core_target): Remove.
3654 (core_target::build_file_mappings)
3655 (core_target::xfer_memory_via_mappings)
3656 (core_target::xfer_partial, core_target::info_proc_mappings):
3657 Update.
3658 * bfd-target.c (target_bfd::xfer_partial): Update.
3659 (target_bfd::target_bfd): Update.
3660 (target_bfd::~target_bfd): Remove.
3661
3662 2020-10-12 Tom Tromey <tom@tromey.com>
3663
3664 * target.h (struct target_section, struct target_section_table):
3665 Move to target-section.h.
3666 * target-section.h: New file.
3667
3668 2020-10-12 Pedro Alves <pedro@palves.net>
3669
3670 PR exp/26602
3671 * valops.c (struct struct_field_searcher): New.
3672 (update_search_result): Rename to ...
3673 (struct_field_searcher::update_result): ... this. Simplify
3674 prototype. Record all found fields.
3675 (do_search_struct_field): Rename to ...
3676 (struct_field_searcher::search): ... this. Simplify prototype.
3677 Maintain stack of visited baseclass path. Call update_result for
3678 fields too. Keep searching fields in baseclasses instead of
3679 stopping at the first found field.
3680 (search_struct_field): Use struct_field_searcher. When looking
3681 for fields, report ambiguous access attempts.
3682
3683 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3684
3685 * frame.c (inside_main_func): Check full symbols as well as
3686 minimal symbols.
3687
3688 2020-10-09 Joel Brobecker <brobecker@adacore.com>
3689
3690 * ada-lang.c (advance_wild_match): Rewrite the function's
3691 description. Change the type of target0, t0 and t1 to char.
3692
3693 2020-10-09 Tom Tromey <tromey@adacore.com>
3694
3695 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3696
3697 2020-10-09 Tom Tromey <tromey@adacore.com>
3698
3699 * ada-lang.h (ada_encode): Return std::string.
3700 * ada-lang.c (ada_encode_1): Return std::string.
3701 (ada_encode): Likewise.
3702 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3703 Update.
3704 * ada-exp.y (block_lookup, write_var_or_type): Update.
3705
3706 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
3707
3708 PR exp/26714
3709 * printcmd.c (print_formatted): Handle void results as
3710 unformatted prints.
3711
3712 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * arch/aarch32.c (aarch32_create_target_description): Release the
3715 target_desc_up as late as possible.
3716 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3717 * arch/amd64.c (amd64_create_target_description): Likewise.
3718 * arch/arc.c (arc_create_target_description): Return a
3719 target_desc_up, don't release it.
3720 * arch/arc.h (arc_create_target_description): Update declaration.
3721 (arc_lookup_target_description): Move target_desc_up into the
3722 cache, and return a borrowed pointer.
3723 * arch/arm.c (arm_create_target_description): Release the
3724 target_desc_up as late as possible.
3725 * arch/i386.c (i386_create_target_description): Likewise.
3726 * arch/riscv.h (riscv_create_target_description): Update
3727 declaration to match definition.
3728 * arch/tic6x.c (tic6x_create_target_description): Release the
3729 target_desc_up as late as possible.
3730
3731 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3734 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3735
3736 2020-10-09 Jan Vrany <jan.vrany@labware.com>
3737
3738 * source.c (directory_command): Notify observers that "directories"
3739 parameter has changed.
3740
3741 2020-10-08 Tom Tromey <tom@tromey.com>
3742
3743 * cli/cli-cmds.c (print_disassembly): Style function name and
3744 addresses. Add _() wrappers.
3745
3746 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
3747
3748 * NEWS: Mention ARC support in GDBserver.
3749
3750 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * arch/aarch32.c (aarch32_create_target_description): Release
3753 unique_ptr returned from allocate_target_description.
3754 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3755 * arch/amd64.c (amd64_create_target_description): Likewise.
3756 * arch/arc.c (arc_create_target_description): Likewise.
3757 * arch/arm.c (arm_create_target_description): Likewise.
3758 * arch/i386.c (i386_create_target_description): Likewise.
3759 * arch/riscv.c (riscv_create_target_description): Update return
3760 type. Handle allocate_target_description returning a unique_ptr.
3761 (riscv_lookup_target_description): Update to handle unique_ptr.
3762 * arch/tic6x.c (tic6x_create_target_description): Release
3763 unique_ptr returned from allocate_target_description.
3764 * features/microblaze-with-stack-protect.c: Regenerate.
3765 * features/microblaze.c: Regenerate.
3766 * features/mips-dsp-linux.c: Regenerate.
3767 * features/mips-linux.c: Regenerate.
3768 * features/mips64-dsp-linux.c: Regenerate.
3769 * features/mips64-linux.c: Regenerate.
3770 * features/nds32.c: Regenerate.
3771 * features/nios2.c: Regenerate.
3772 * features/or1k.c: Regenerate.
3773 * features/rs6000/powerpc-32.c: Regenerate.
3774 * features/rs6000/powerpc-32l.c: Regenerate.
3775 * features/rs6000/powerpc-403.c: Regenerate.
3776 * features/rs6000/powerpc-403gc.c: Regenerate.
3777 * features/rs6000/powerpc-405.c: Regenerate.
3778 * features/rs6000/powerpc-505.c: Regenerate.
3779 * features/rs6000/powerpc-601.c: Regenerate.
3780 * features/rs6000/powerpc-602.c: Regenerate.
3781 * features/rs6000/powerpc-603.c: Regenerate.
3782 * features/rs6000/powerpc-604.c: Regenerate.
3783 * features/rs6000/powerpc-64.c: Regenerate.
3784 * features/rs6000/powerpc-64l.c: Regenerate.
3785 * features/rs6000/powerpc-7400.c: Regenerate.
3786 * features/rs6000/powerpc-750.c: Regenerate.
3787 * features/rs6000/powerpc-860.c: Regenerate.
3788 * features/rs6000/powerpc-altivec32.c: Regenerate.
3789 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3790 * features/rs6000/powerpc-altivec64.c: Regenerate.
3791 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3792 * features/rs6000/powerpc-e500.c: Regenerate.
3793 * features/rs6000/powerpc-e500l.c: Regenerate.
3794 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3795 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3796 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3797 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3798 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3799 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3800 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3801 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3802 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3803 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3804 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3805 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3806 * features/rs6000/powerpc-vsx32.c: Regenerate.
3807 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3808 * features/rs6000/powerpc-vsx64.c: Regenerate.
3809 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3810 * features/rs6000/rs6000.c: Regenerate.
3811 * features/rx.c: Regenerate.
3812 * features/s390-gs-linux64.c: Regenerate.
3813 * features/s390-linux32.c: Regenerate.
3814 * features/s390-linux32v1.c: Regenerate.
3815 * features/s390-linux32v2.c: Regenerate.
3816 * features/s390-linux64.c: Regenerate.
3817 * features/s390-linux64v1.c: Regenerate.
3818 * features/s390-linux64v2.c: Regenerate.
3819 * features/s390-te-linux64.c: Regenerate.
3820 * features/s390-tevx-linux64.c: Regenerate.
3821 * features/s390-vx-linux64.c: Regenerate.
3822 * features/s390x-gs-linux64.c: Regenerate.
3823 * features/s390x-linux64.c: Regenerate.
3824 * features/s390x-linux64v1.c: Regenerate.
3825 * features/s390x-linux64v2.c: Regenerate.
3826 * features/s390x-te-linux64.c: Regenerate.
3827 * features/s390x-tevx-linux64.c: Regenerate.
3828 * features/s390x-vx-linux64.c: Regenerate.
3829 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3830 from allocate_target_description.
3831 * target-descriptions.c (allocate_target_description): Update
3832 return type.
3833 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3834 allocate_target_description.
3835
3836 2020-10-07 Tom Tromey <tromey@adacore.com>
3837
3838 * unittests/search-memory-selftests.c: New file.
3839 * Makefile.in (SELFTESTS_SRCS): Add
3840 unittests/search-memory-selftests.c.
3841
3842 2020-10-07 Tom Tromey <tromey@adacore.com>
3843
3844 PR gdb/16930:
3845 * findcmd.c (_initialize_mem_search): Mention that the range is
3846 inclusive.
3847
3848 2020-10-07 Tom Tromey <tromey@adacore.com>
3849
3850 * target.h (simple_search_memory): Don't declare.
3851 * target.c (simple_search_memory): Move to gdbsupport.
3852 (default_search_memory): Update.
3853 * remote.c (remote_target::search_memory): Update.
3854
3855 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * Makefile.in (COMPILE): Add CXXFLAGS.
3858 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3859 (check-headers): Add CXXFLAGS.
3860
3861 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3862
3863 * arc-linux-tdep.h: New file.
3864 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3865 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3866 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3867 arc_linux_gregset, arc_linux_v2_regset,
3868 arc_linux_iterate_over_regset_sections,
3869 arc_linux_core_read_description): Implement.
3870 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3871 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3872 (arc_gdbarch_features_create): Add.
3873 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3874
3875 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
3876
3877 * arch/arc.h: Rename "arc_gdbarch_features" to
3878 "arc_arch_features".
3879 * arc-tdep.h: Likewise.
3880 * arc-tdep.c: Likewise.
3881
3882 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3883
3884 * infcmd.c (attach_command): Remove the redundant call to
3885 `clear_proceed_status`.
3886
3887 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3888
3889 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3890
3891 2020-10-07 Kamil Rytarowski <n54@gmx.com>
3892
3893 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3894 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3895 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3896
3897 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3898
3899 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3900 (_initialize_break_catch_sig): Don't allocate array.
3901
3902 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3903
3904 * symtab.c (find_pc_line): Return unmapped addresses when the
3905 requested address is also unmapped.
3906
3907 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3908
3909 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3910 tui/tui-out.h.
3911
3912 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
3913
3914 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3915 type::is_vector instead of TYPE_VECTOR.
3916
3917 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3918
3919 * auto-load.c (auto_load_objfile_script_1): Don't use
3920 debugfile_holder as temporary variable when stripping drive
3921 letter.
3922
3923 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
3924
3925 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3926 Add TYPE_CODE_COMPLEX.
3927 (amd64_windows_return_value): Fix types returned via XMM0.
3928
3929 2020-10-05 Alan Hayward <alan.hayward@arm.com>
3930
3931 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3932 AArch64/ARM maintainers.
3933
3934 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3935
3936 * NEWS: Mention set/show debug event-loop.
3937
3938 2020-10-02 Tom Tromey <tromey@adacore.com>
3939
3940 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3941 REG_EXTENDED.
3942
3943 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
3944
3945 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3946 * procfs.c (procfs_inferior_created): Remove.
3947 (_initialize_procfs): Don't register procfs_inferior_created.
3948
3949 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3950
3951 * async-event.c (invoke_async_signal_handlers): Add debug
3952 print.
3953 (check_async_event_handlers): Likewise.
3954 * event-top.c (show_debug_event_loop): New function.
3955 (_initialize_event_top): Register "set debug event-loop"
3956 setting.
3957
3958 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3959
3960 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3961 * debug.h: Remove.
3962 * infrun.c: Include gdbsupport/common-debug.h.
3963 * linux-nat.c: Likewise.
3964
3965 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3966
3967 * async-event.h (create_async_signal_handler): Add name
3968 parameter.
3969 (create_async_event_handler): Likewise.
3970 * async-event.c (struct async_signal_handler) <name>: New field.
3971 (struct async_event_handler) <name>: New field.
3972 (create_async_signal_handler): Assign name.
3973 (create_async_event_handler): Assign name.
3974 * event-top.c (async_init_signals): Pass name when creating
3975 handler.
3976 * infrun.c (_initialize_infrun): Likewise.
3977 * record-btrace.c (record_btrace_push_target): Likewise.
3978 * record-full.c (record_full_open): Likewise.
3979 * remote-notif.c (remote_notif_state_allocate): Likewise.
3980 * remote.c (remote_target::open_1): Likewise.
3981 * tui/tui-win.c (tui_initialize_win): Likewise.
3982
3983 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3984
3985 * async-event.c (initialize_async_signal_handlers): Pass name to
3986 add_file_handler
3987 * event-top.c (ui_register_input_event_handler): Likewise.
3988 * linux-nat.c (linux_nat_target::async): Likewise.
3989 * run-on-main-thread.c (_initialize_run_on_main_thread):
3990 Likewise
3991 * ser-base.c (reschedule): Likewise.
3992 (ser_base_async): Likewise.
3993 * tui/tui-io.c: Likewise.
3994 * top.h (struct ui) <num>: New field.
3995 * top.c (highest_ui_num): New variable.
3996 (ui::ui): Initialize num.
3997
3998 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3999
4000 * observable.h <inferior_created>: Remove parameters. Update all
4001 listeners.
4002 * inferior.h (post_create_inferior): Remove target parameter.
4003 Update all callers.
4004
4005 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
4006
4007 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
4008 and DW_MACRO_undef_strx.
4009 (dwarf_decode_macros): Likewise
4010 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
4011 which is the value of DW_AT_str_offsets_base.
4012 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
4013 str_offsets_base.
4014
4015 2020-10-01 Kamil Rytarowski <n54@gmx.com>
4016
4017 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
4018
4019 2020-10-01 Kamil Rytarowski <n54@gmx.com>
4020
4021 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
4022 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
4023
4024 2020-10-01 Kamil Rytarowski <n54@gmx.com>
4025
4026 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
4027
4028 2020-09-30 Tom de Vries <tdevries@suse.de>
4029
4030 PR symtab/26683
4031 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
4032
4033 2020-09-30 Tom Tromey <tromey@adacore.com>
4034
4035 * dwarf2/read.c (handle_variant): Use constant_value.
4036
4037 2020-09-29 Tom Tromey <tom@tromey.com>
4038
4039 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
4040 (read_file_scope, dwarf2_get_pc_bounds)
4041 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
4042 (read_structure_type, handle_struct_member_die)
4043 (read_enumeration_type, read_array_type, read_set_type)
4044 (read_tag_pointer_type, read_tag_reference_type)
4045 (read_subroutine_type, read_base_type, read_subrange_type)
4046 (read_full_die_1, partial_die_info::read)
4047 (partial_die_info::read, by, new_symbol)
4048 (dwarf2_const_value_data, dwarf2_const_value_attr)
4049 (dump_die_shallow, dwarf2_fetch_constant_bytes)
4050 (prepare_one_comp_unit): Update.
4051 * dwarf2/attribute.h (DW_UNSND): Remove.
4052
4053 2020-09-29 Tom Tromey <tom@tromey.com>
4054
4055 * dwarf2/read.c (read_func_scope, prototyped_function_p)
4056 (read_subroutine_type, partial_die_info::read)
4057 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
4058 (dwarf2_add_member_fn): Update.
4059 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
4060 * dwarf2/attribute.c (attribute::as_boolean): New method.
4061
4062 2020-09-29 Tom Tromey <tom@tromey.com>
4063
4064 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
4065 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
4066 method.
4067 * dwarf2/attribute.c (attribute::as_virtuality): New method.
4068
4069 2020-09-29 Tom Tromey <tom@tromey.com>
4070
4071 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
4072 the attribute's form.
4073
4074 2020-09-29 Tom Tromey <tom@tromey.com>
4075
4076 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
4077 (dwarf2_add_member_fn): Update.
4078 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
4079 * dwarf2/attribute.c (attribute::defaulted): New method, from
4080 is_valid_DW_AT_defaulted.
4081
4082 2020-09-29 Tom Tromey <tom@tromey.com>
4083
4084 * dwarf2/read.c (dw2_get_file_names_reader)
4085 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
4086 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
4087 (dwarf2_symbol_mark_computed): Use as_unsigned.
4088 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
4089 method.
4090 <form_is_section_offset>: Update comment.
4091
4092 2020-09-29 Tom Tromey <tom@tromey.com>
4093
4094 * dwarf2/read.c (dwarf2_access_attribute): Rename from
4095 dwarf2_default_access_attribute. Look up attribute.
4096 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
4097 Update.
4098
4099 2020-09-29 Tom Tromey <tom@tromey.com>
4100
4101 * dwarf2/read.c (skip_one_die): Update.
4102 (read_full_die_1): Change how reprocessing is done.
4103 (partial_die_info::read): Update.
4104 (read_attribute_value): Remove need_reprocess parameter.
4105 (read_attribute): Likewise.
4106 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
4107 New method.
4108
4109 2020-09-29 Tom Tromey <tom@tromey.com>
4110
4111 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
4112 (dwarf2_const_value_attr, dump_die_shallow)
4113 (dwarf2_fetch_constant_bytes): Update.
4114 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
4115 comment.
4116 <set_address>: New method.
4117 (DW_ADDR): Remove.
4118 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
4119 (attribute::as_string, attribute::as_address): Add assert.
4120
4121 2020-09-29 Tom Tromey <tom@tromey.com>
4122
4123 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
4124 (read_attribute_reprocess, read_attribute_value): Update.
4125 (read_attribute): Clear requires_reprocessing.
4126 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
4127 form_requires_reprocessing>: New methods.
4128 <string_init>: Clear requires_reprocessing.
4129 <set_unsigned_reprocess>: New method.
4130 <name>: Shrink by one bit.
4131 <requires_reprocessing>: New member.
4132 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
4133 method.
4134
4135 2020-09-29 Tom Tromey <tom@tromey.com>
4136
4137 * dwarf2/read.c (read_attribute_value): Update.
4138 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
4139 set_unsigned>: New methods.
4140 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
4141
4142 2020-09-29 Tom Tromey <tom@tromey.com>
4143
4144 * dwarf2/read.c (get_alignment, read_array_order)
4145 (read_attribute_value, dwarf2_const_value_attr)
4146 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
4147 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
4148 New methods.
4149 (DW_SND): Remove.
4150
4151 2020-09-29 Tom Tromey <tom@tromey.com>
4152
4153 * dwarf2/read.c (read_attribute_value, lookup_die_type)
4154 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
4155 Update.
4156 * dwarf2/attribute.h (struct attribute) <as_signature,
4157 set_signature>: New methods.
4158 (DW_SIGNATURE): Remove.
4159
4160 2020-09-29 Tom Tromey <tom@tromey.com>
4161
4162 * dwarf2/read.c (read_call_site_scope)
4163 (handle_data_member_location, dwarf2_add_member_fn)
4164 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4165 (partial_die_info::read, read_attribute_value)
4166 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
4167 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
4168 (dwarf2_symbol_mark_computed): Update.
4169 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
4170 methods.
4171 (DW_BLOCK): Remove.
4172 * dwarf2/attribute.c (attribute::form_is_block): Add
4173 DW_FORM_data16.
4174
4175 2020-09-29 Tom Tromey <tom@tromey.com>
4176
4177 * dwarf2/read.c (read_cutu_die_from_dwo)
4178 (read_attribute_reprocess, read_attribute_value, read_attribute)
4179 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
4180 (dwarf2_fetch_constant_bytes): Update.
4181 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
4182 <set_string_noncanonical, set_string_canonical>: New methods.
4183 <string_is_canonical>: Update comment.
4184 <canonical_string_p>: Add assert.
4185 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
4186 * dwarf2/attribute.c (attribute::form_is_string): New method.
4187 (attribute::string): Use it.
4188
4189 2020-09-29 Tom Tromey <tom@tromey.com>
4190
4191 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
4192 (dump_die_shallow): Use canonical_string_p.
4193 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4194 method.
4195
4196 2020-09-29 Tom Tromey <tom@tromey.com>
4197
4198 * dwarf2/read.c (partial_die_info::read)
4199 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4200 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4201 attribute::as_string.
4202
4203 2020-09-29 Tom Tromey <tom@tromey.com>
4204
4205 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4206 DW_ADDR.
4207 (attribute::string): Don't use DW_STRING.
4208 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4209 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4210
4211 2020-09-29 Tom Tromey <tom@tromey.com>
4212
4213 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4214 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4215 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4216 * dwarf2/attribute.h (struct attribute): Rename methods.
4217 * dwarf2/attribute.c (attribute::as_address): Rename from
4218 value_as_address.
4219 (attribute::as_string): Rename from value_as_string.
4220
4221 2020-09-29 Tom Tromey <tom@tromey.com>
4222
4223 * dwarf2/read.c (partial_die_info::read) <case
4224 DW_AT_linkage_name>: Use value_as_string.
4225 (dwarf2_string_attr): Use value_as_string.
4226 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4227 method.
4228 * dwarf2/attribute.c (attribute::value_as_string): New method.
4229
4230 2020-09-29 Pedro Alves <pedro@palves.net>
4231
4232 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4233 defined before using '#pragma GCC diagnostic' instead of checking
4234 __clang__.
4235
4236 2020-09-28 Tom Tromey <tom@tromey.com>
4237
4238 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4239 (handle_signal_stop): Update.
4240 * procfs.c (procfs_target::insert_watchpoint): Update.
4241 * target.h (target_have_steppable_watchpoint): Now a function.
4242
4243 2020-09-28 Tom Tromey <tom@tromey.com>
4244
4245 * infrun.c (set_schedlock_func): Update.
4246 * target.h (target_can_lock_scheduler): Now a function.
4247
4248 2020-09-28 Tom Tromey <tom@tromey.com>
4249
4250 * inferior.h (class inferior) <has_execution>: Update.
4251 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4252 * valops.c (find_function_in_inferior)
4253 (value_allocate_space_in_inferior): Update.
4254 * top.c (kill_or_detach): Update.
4255 * target.c (target_preopen, set_target_permissions): Update.
4256 (target_has_execution_current): Remove.
4257 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4258 Update.
4259 * solib.c (update_solib_list, reload_shared_libraries): Update.
4260 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4261 * solib-dsbt.c (enable_break): Update.
4262 * score-tdep.c (score7_fetch_inst): Update.
4263 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4264 Update.
4265 * remote.c (remote_target::start_remote)
4266 (remote_target::remote_check_symbols, remote_target::open_1)
4267 (remote_target::remote_detach_1, remote_target::verify_memory)
4268 (remote_target::xfer_partial, remote_target::read_description)
4269 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4270 * record-full.c (record_full_open_1): Update.
4271 * record-btrace.c (record_btrace_target_open): Update.
4272 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4273 (value_nsstring): Update.
4274 * linux-thread-db.c (add_thread_db_info)
4275 (thread_db_find_new_threads_silently, check_thread_db_callback)
4276 (try_thread_db_load_1, record_thread): Update.
4277 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4278 Update.
4279 * linux-fork.c (checkpoint_command): Update.
4280 * infrun.c (set_non_stop, set_observer_mode)
4281 (check_multi_target_resumption, for_each_just_stopped_thread)
4282 (maybe_remove_breakpoints, normal_stop)
4283 (class infcall_suspend_state): Update.
4284 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4285 (info_program_command, attach_command): Update.
4286 * infcall.c (call_function_by_hand_dummy): Update.
4287 * inf-loop.c (inferior_event_handler): Update.
4288 * gcore.c (gcore_command, derive_heap_segment): Update.
4289 * exec.c (exec_file_command): Update.
4290 * eval.c (evaluate_subexp): Update.
4291 * compile/compile.c (compile_to_object): Update.
4292 * cli/cli-dump.c (restore_command): Update.
4293 * breakpoint.c (update_watchpoint)
4294 (update_inserted_breakpoint_locations)
4295 (insert_breakpoint_locations, get_bpstat_thread): Update.
4296 * target.h (target_has_execution): Remove macro.
4297 (target_has_execution_current): Don't declare.
4298 (target_has_execution): Rename from target_has_execution_1. Add
4299 argument default.
4300
4301 2020-09-28 Tom Tromey <tom@tromey.com>
4302
4303 * mi/mi-main.c (exec_reverse_continue)
4304 (mi_cmd_list_target_features): Update.
4305 * infrun.c (set_exec_direction_func): Update.
4306 * target.c (default_execution_direction): Update.
4307 * reverse.c (exec_reverse_once): Update.
4308 * target.h (target_can_execute_reverse): Now a function.
4309
4310 2020-09-28 Tom Tromey <tom@tromey.com>
4311
4312 * tui/tui-regs.c (tui_get_register)
4313 (tui_data_window::show_registers): Update.
4314 * thread.c (scoped_restore_current_thread::restore)
4315 (scoped_restore_current_thread::scoped_restore_current_thread):
4316 Update.
4317 * regcache-dump.c (regcache_print): Update.
4318 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4319 Update.
4320 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4321 * mep-tdep.c (current_me_module, current_options): Update.
4322 * linux-thread-db.c (thread_db_load): Update.
4323 * infcmd.c (registers_info, info_vector_command)
4324 (info_float_command): Update.
4325 * ia64-tdep.c (ia64_frame_prev_register)
4326 (ia64_sigtramp_frame_prev_register): Update.
4327 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4328 * gcore.c (derive_stack_segment): Update.
4329 * frame.c (get_current_frame, has_stack_frames): Update.
4330 * findvar.c (language_defn::read_var_value): Update.
4331 * arm-tdep.c (arm_pc_is_thumb): Update.
4332 * target.c (target_has_registers): Rename from
4333 target_has_registers_1.
4334 * target.h (target_has_registers): Remove macro.
4335 (target_has_registers): Rename from target_has_registers_1.
4336
4337 2020-09-28 Tom Tromey <tom@tromey.com>
4338
4339 * windows-tdep.c (tlb_make_value): Update.
4340 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4341 * thread.c (scoped_restore_current_thread::restore)
4342 (scoped_restore_current_thread::scoped_restore_current_thread)
4343 (thread_command): Update.
4344 * stack.c (backtrace_command_1, frame_apply_level_command)
4345 (frame_apply_all_command, frame_apply_command): Update.
4346 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4347 Update.
4348 * gcore.c (derive_stack_segment): Update.
4349 * frame.c (get_current_frame, has_stack_frames): Update.
4350 * auxv.c (info_auxv_command): Update.
4351 * ada-tasks.c (ada_build_task_list): Update.
4352 * target.c (target_has_stack): Rename from target_has_stack_1.
4353 * target.h (target_has_stack): Remove macro.
4354 (target_has_stack): Rename from target_has_stack_1.
4355
4356 2020-09-28 Tom Tromey <tom@tromey.com>
4357
4358 * target.c (target_has_memory): Rename from target_has_memory_1.
4359 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4360 * thread.c (scoped_restore_current_thread::restore)
4361 (scoped_restore_current_thread::scoped_restore_current_thread):
4362 Update.
4363 * frame.c (get_current_frame, has_stack_frames): Update.
4364 * target.h (target_has_memory): Remove macro.
4365 (target_has_memory): Rename from target_has_memory_1.
4366
4367 2020-09-28 Tom Tromey <tom@tromey.com>
4368
4369 * target.c (target_has_all_memory_1): Remove.
4370 * target.h (target_has_all_memory): Remove define.
4371 (target_has_all_memory_1): Don't declare.
4372
4373 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4374
4375 * ser-base.c: Adjust comments formatting.
4376
4377 2020-09-27 Tom Tromey <tom@tromey.com>
4378
4379 PR tui/25342:
4380 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4381
4382 2020-09-27 Tom Tromey <tom@tromey.com>
4383
4384 PR tui/25342:
4385 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4386
4387 2020-09-27 Tom Tromey <tom@tromey.com>
4388
4389 * unittests/tui-selftests.c: Update.
4390 * tui/tui-winsource.h (struct tui_source_window_base)
4391 <extra_margin, show_line_number, refresh_pad>: New methods.
4392 <m_max_length, m_pad>: New members.
4393 (tui_copy_source_line): Update.
4394 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4395 first_col, line_width, ndigits parameters. Add length.
4396 (tui_source_window_base::show_source_line): Write to pad. Line
4397 number now 0-based.
4398 (tui_source_window_base::refresh_pad): New method.
4399 (tui_source_window_base::show_source_content): Write to pad. Call
4400 refresh_pad.
4401 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4402 not refill.
4403 (tui_source_window_base::update_exec_info): Call
4404 show_line_number.
4405 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4406 method.
4407 <m_digits>: New member.
4408 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4409 and m_max_length.
4410 (tui_source_window::show_line_number): New method.
4411 * tui/tui-io.h (tui_puts): Fix comment.
4412 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4413 m_max_length.
4414
4415 2020-09-27 Tom Tromey <tom@tromey.com>
4416
4417 * tui/tui-winsource.c
4418 (tui_source_window_base::set_is_exec_point_at): Don't call
4419 show_source_line.
4420
4421 2020-09-27 Tom Tromey <tom@tromey.com>
4422
4423 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4424 method.
4425 <erase>: Update.
4426 <cursor_x, cursor_y>: Remove.
4427 <m_inner_window>: New member.
4428 (tui_py_window::rerender): Create inner window.
4429 (tui_py_window::output): Write to inner window.
4430
4431 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4432
4433 PR python/26586
4434 * cli/cli-script.c (execute_control_commands): don't set
4435 instream to nullptr here as this breaks the from_tty argument
4436 to gdb.execute in Python.
4437 (execute_user_command): set instream to nullptr here instead.
4438
4439 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
4440
4441 * infrun.h (infrun_debug_printf): Fix formatting.
4442 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4443
4444 2020-09-25 Saagar Jha <saagar@saagarjha.com>
4445
4446 * compile/compile-object-load.h (struct munmap_list): Add
4447 explicitly-defined move constructor.
4448
4449 2020-09-24 Tom Tromey <tromey@adacore.com>
4450
4451 PR tui/26638:
4452 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4453 method.
4454 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4455 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4456 (tui_prev_win): Rewrite.
4457
4458 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
4459
4460 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4461 in WOW64 processes as SIGINT.
4462 * nat/windows-nat.h: Make wow64_process a shared variable.
4463 * windows-nat.c: Remove static wow64_process variable.
4464
4465 2020-09-23 Tom Tromey <tom@tromey.com>
4466
4467 PR symtab/25470:
4468 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4469 offset and bit size.
4470 * printcmd.c (print_scalar_formatted): Handle zero-length
4471 integer.
4472 (print_scalar_formatted): Use bit_size_differs_p.
4473 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4474 constant.
4475 (union type_specific): <int_stuff>: New member.
4476 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4477 methods.
4478 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4479 TYPE_SPECIFIC_FIELD.
4480 (recursive_dump_type, copy_type_recursive): Update.
4481 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4482 DW_AT_data_bit_offset.
4483
4484 2020-09-23 Tom Tromey <tom@tromey.com>
4485
4486 * utils.h (class gdb_argv): Add move operators.
4487 <append>: New methods.
4488 * compile/compile.c (build_argc_argv): Remove.
4489 (compile_args_argc): Remove.
4490 (compile_args_argv): Change type.
4491 (set_compile_args): Simplify.
4492 (append_args): Remove.
4493 (filter_args): Remove argcp parameter.
4494 (get_args): Return gdb_argv. Simplify.
4495 (compile_to_object): Update.
4496
4497 2020-09-23 Tom Tromey <tom@tromey.com>
4498
4499 * compile/compile-object-run.c (do_module_cleanup)
4500 <~do_module_cleanup> :Remove.
4501 (do_module_cleanup): Update.
4502 * compile/compile-object-load.h (struct munmap_list): Add move
4503 assignment operator.
4504 <source_file>: Now a std::string.
4505 <munmap_list>: Rename. No longer a pointer.
4506 * compile/compile-object-load.c (struct setup_sections_data): Add
4507 constructor.
4508 <setup_one_section>: Declare.
4509 <munmap_list>: Move earlier.
4510 <m_bfd>: New member.
4511 <m_last_size, m_last_section_first, m_last_prot,
4512 m_last_max_alignment>: Rename, add initializers where needed.
4513 (setup_sections_data::setup_one_section): Rename from
4514 setup_sections. Update.
4515 (compile_object_load): Update. Don't use bfd_map_over_sections.
4516
4517 2020-09-23 Tom Tromey <tom@tromey.com>
4518
4519 * compile/compile-object-run.c (struct do_module_cleanup): Add
4520 parameters to constructor. Update destructor.
4521 <source_file, scope, scope_data, out_value_type, out_value_addr,
4522 munmap_list_head, objfile_name_string>: Remove.
4523 <module>: New member.
4524 (do_module_cleanup): Update.
4525 (compile_object_run): Update.
4526
4527 2020-09-23 Tom Tromey <tom@tromey.com>
4528
4529 * compile/compile.c (eval_compile_command): Update.
4530 * compile/compile-object-run.h (compile_object_run): Take a
4531 compile_module_up.
4532 * compile/compile-object-run.c (compile_object_run): Take a
4533 compile_module_up.
4534 * compile/compile-object-load.h (struct compile_module): Add
4535 constructor, destructor.
4536 (compile_module_up): New typedef.
4537 (compile_object_load): Return compile_object_up.
4538 * compile/compile-object-load.c (compile_object_load): Return
4539 compile_module_up.
4540
4541 2020-09-23 Tom Tromey <tom@tromey.com>
4542
4543 * compile/compile-object-run.c (struct do_module_cleanup): Add
4544 constructor, destructor.
4545 <objfile_name_string>: Don't use struct hack.
4546 (do_module_cleanup): Use delete.
4547 (compile_object_run): Use new.
4548
4549 2020-09-23 Tom Tromey <tom@tromey.com>
4550
4551 * compile/compile-cplus-types.c
4552 (compile_cplus_convert_struct_or_union): Use std::vector.
4553 (compile_cplus_convert_func): Likewise.
4554 * compile/compile-c-types.c (convert_func): Use std::vector.
4555
4556 2020-09-21 Tom Tromey <tromey@adacore.com>
4557
4558 * sparc-tdep.c (sparc32_skip_prologue): Use
4559 skip_prologue_using_sal.
4560
4561 2020-09-19 Tom Tromey <tom@tromey.com>
4562
4563 * symfile.c (add_section_size_callback): Remove.
4564 (load_one_section): Rename from load_section_callback. Change
4565 parameters.
4566 (generic_load): Use foreach.
4567
4568 2020-09-19 Tom Tromey <tom@tromey.com>
4569
4570 * exec.c (add_to_section_table): Remove.
4571 (build_section_table): Use foreach.
4572
4573 2020-09-19 Tom Tromey <tom@tromey.com>
4574
4575 * elfread.c (elf_locate_sections): Change parameters.
4576 (elf_symfile_read): Use foreach.
4577
4578 2020-09-19 Tom Tromey <tom@tromey.com>
4579
4580 * cli/cli-dump.c (struct callback_data): Remove.
4581 (restore_one_section): Rename from restore_section_callback.
4582 Change parameters.
4583 (restore_binary_file): Change parameters.
4584 (restore_command): Use foreach.
4585
4586 2020-09-19 Tom Tromey <tom@tromey.com>
4587
4588 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4589 (gcore_copy_callback): Likewise.
4590 (gcore_memory_sections): Use foreach.
4591
4592 2020-09-19 Tom Tromey <tom@tromey.com>
4593
4594 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4595 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4596 parameters.
4597 (generic_elf_osabi_sniffer): Use foreach.
4598 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4599 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4600
4601 2020-09-19 Tom Tromey <tom@tromey.com>
4602
4603 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4604 (dwarf2_get_dwz_file): Use foreach.
4605 (dwarf2_locate_dwo_sections): Change parameters.
4606 (open_and_init_dwo_file): Use foreach.
4607 (dwarf2_locate_common_dwp_sections): Change parameters.
4608 (open_and_init_dwp_file): Use foreach.
4609
4610 2020-09-19 Tom Tromey <tom@tromey.com>
4611
4612 * symfile.h: (find_lowest_section): Don't declare.
4613 * symfile.c (find_lowest_section): Now static. Change
4614 parameters.
4615 (struct place_section_arg): Remove.
4616 (place_section): Change parameters.
4617 (addr_info_make_relative): Use foreach.
4618 (symfile_dummy_outputs): Remove.
4619 (default_symfile_relocate): Use foreach.
4620
4621 2020-09-19 Tom Tromey <tom@tromey.com>
4622
4623 * objfiles.c (add_to_objfile_sections): Rename from
4624 add_to_objfile_sections_full.
4625 (add_to_objfile_sections): Remove.
4626 (build_objfile_section_table): Use foreach.
4627
4628 2020-09-19 Tom Tromey <tom@tromey.com>
4629
4630 * stap-probe.c (get_stap_base_address_1): Remove.
4631 (get_stap_base_address): Use foreach.
4632
4633 2020-09-19 Tom Tromey <tom@tromey.com>
4634
4635 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4636 parameters.
4637 (gdb_bfd_close_or_warn): Use foreach.
4638
4639 2020-09-19 Tom Tromey <tom@tromey.com>
4640
4641 * corelow.c (add_to_thread_list): Change parameters.
4642 (core_target_open): Use foreach.
4643
4644 2020-09-19 Tom Tromey <tom@tromey.com>
4645
4646 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4647 existing function.
4648
4649 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4650
4651 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4652 for arrays.
4653
4654 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4655
4656 * eval.c: Remove 'f-lang.h' include.
4657 (value_f90_subarray): Moved to f-lang.c.
4658 (eval_call): Renamed to...
4659 (evaluate_subexp_do_call): ...this, is no longer static, header
4660 comment moved into header file.
4661 (evaluate_funcall): Update call to eval_call.
4662 (skip_undetermined_arglist): Moved to f-lang.c.
4663 (fortran_value_subarray): Likewise.
4664 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4665 moved to evaluate_subexp_f.
4666 (calc_f77_array_dims): Moved to f-lang.c
4667 * expprint.c (print_subexp_funcall): New function.
4668 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4669 moved to print_subexp_f, OP_FUNCALL uses new function.
4670 (dump_subexp_body_funcall): New function.
4671 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4672 moved to dump_subexp_f, OP_FUNCALL uses new function.
4673 * expression.h (evaluate_subexp_do_call): Declare.
4674 * f-lang.c (value_f90_subarray): Moved from eval.c.
4675 (skip_undetermined_arglist): Likewise.
4676 (calc_f77_array_dims): Likewise.
4677 (fortran_value_subarray): Likewise.
4678 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4679 (operator_length_f): Likewise.
4680 (print_subexp_f): Likewise.
4681 (dump_subexp_body_f): Likewise.
4682 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4683 declaration of this operation to here.
4684 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4685 support moved to operator_length_f.
4686 * parser-defs.h (dump_subexp_body_funcall): Declare.
4687 (print_subexp_funcall): Declare.
4688 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4689 fortran-operator.def.
4690
4691 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4692
4693 * eval.c (fortran_value_subarray): New function, content is taken
4694 from...
4695 (evaluate_subexp_standard): ...here, in two places. Now arrays
4696 and strings both call the new function.
4697 (calc_f77_array_dims): Add header comment, handle strings.
4698
4699 2020-09-18 Victor Collod <vcollod@nvidia.com>
4700
4701 PR gdb/26635
4702 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4703 (i386_analyze_prologue): Call i386_skip_endbr.
4704
4705 2020-09-18 Tom Tromey <tromey@adacore.com>
4706
4707 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4708 (windows_nat_target::wait): Update.
4709 * target/wait.h (enum target_wait_flag): New. Use
4710 DEF_ENUM_FLAGS_TYPE.
4711 * target/target.h (target_wait): Change type of options.
4712 * target.h (target_options_to_string, default_target_wait):
4713 Update.
4714 (struct target_ops) <wait>: Change type of options.
4715 * target.c (target_wait, default_target_wait, do_option): Change
4716 type of "options".
4717 (target_options_to_string): Likewise.
4718 * target-delegates.c: Rebuild.
4719 * target-debug.h (target_debug_print_target_wait_flags): Rename
4720 from target_debug_print_options.
4721 * sol-thread.c (class sol_thread_target) <wait>: Update.
4722 (sol_thread_target::wait): Update.
4723 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4724 (rs6000_nat_target::wait): Update.
4725 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4726 Update.
4727 (remote_target::wait_ns, remote_target::wait_as): Change type of
4728 "options".
4729 (remote_target::wait): Update.
4730 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4731 (gdbsim_target::wait): Update.
4732 * record-full.c (class record_full_base_target) <wait>: Update.
4733 (record_full_wait_1): Change type of "options".
4734 (record_full_base_target::wait): Update.
4735 * record-btrace.c (class record_btrace_target) <wait>: Update.
4736 (record_btrace_target::wait): Update.
4737 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4738 Update.
4739 (ravenscar_thread_target::wait): Update.
4740 * procfs.c (class procfs_target) <wait>: Update.
4741 (procfs_target::wait): Update.
4742 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4743 * obsd-nat.c (obsd_nat_target::wait): Update.
4744 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4745 (nto_procfs_target::wait): Update.
4746 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4747 * nbsd-nat.c (nbsd_wait): Change type of "options".
4748 (nbsd_nat_target::wait): Update.
4749 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4750 (thread_db_target::wait): Update.
4751 * linux-nat.h (class linux_nat_target) <wait>: Update.
4752 * linux-nat.c (linux_nat_target::wait): Update.
4753 (linux_nat_wait_1): Update.
4754 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4755 "options".
4756 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4757 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4758 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4759 (go32_nat_target::wait): Update.
4760 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4761 * gnu-nat.c (gnu_nat_target::wait): Update.
4762 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4763 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4764 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4765 * darwin-nat.c (darwin_nat_target::wait): Update.
4766 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4767 (bsd_uthread_target::wait): Update.
4768 * aix-thread.c (class aix_thread_target) <wait>: Update.
4769 (aix_thread_target::wait): Update.
4770
4771 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4772
4773 * compile/compile-object-run.c (create_copied_type_recursive): New
4774 function.
4775 (compile_object_run): Use new function.
4776
4777 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4778
4779 * NEWS: Mention x86_64 Cygwin core file support.
4780
4781 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4782
4783 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4784 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4785
4786 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4787
4788 * windows-tdep.h: Add prototypes.
4789 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4790 (i386_windows_core_pid_to_str): Move and rename ...
4791 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4792 (windows_core_pid_to_str): ... and here.
4793 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4794
4795 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4796 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4797 (amd64_windows_init_abi_common): ... and register.
4798
4799 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4800
4801 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4802 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4803
4804 2020-09-18 Pedro Alves <pedro@palves.net>
4805
4806 PR gdb/26631
4807 * thread.c (thread_find_command): Switch inferior before calling
4808 target methods.
4809
4810 2020-09-17 Tom Tromey <tromey@adacore.com>
4811
4812 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4813 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4814 (tdesc_arch_data_up): New typedef.
4815 (tdesc_use_registers, tdesc_data_alloc): Update.
4816 (tdesc_data_cleanup): Don't declare.
4817 * target-descriptions.c (tdesc_data_alloc): Return a
4818 tdesc_arch_data_up.
4819 (tdesc_arch_data_deleter::operator()): Rename from
4820 tdesc_data_cleanup. Change argument type.
4821 (tdesc_use_registers): Change early_data to an rvalue reference.
4822 (tdesc_use_registers): Don't use delete.
4823 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4824 * s390-tdep.c (s390_gdbarch_init): Update.
4825 * rx-tdep.c (rx_gdbarch_init): Update.
4826 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4827 * riscv-tdep.c (riscv_gdbarch_init): Update.
4828 * or1k-tdep.c (or1k_gdbarch_init): Update.
4829 * nios2-tdep.c (nios2_gdbarch_init): Update.
4830 * nds32-tdep.c (nds32_gdbarch_init): Update.
4831 * mips-tdep.c (mips_gdbarch_init): Update.
4832 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4833 * m68k-tdep.c (m68k_gdbarch_init): Update.
4834 * i386-tdep.c (i386_gdbarch_init): Update.
4835 * arm-tdep.c (arm_gdbarch_init): Update.
4836 * arc-tdep.c (arc_tdesc_init): Update.
4837 (arc_gdbarch_init): Update.
4838 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4839
4840 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
4841
4842 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4843 for WOW64 processes.
4844
4845 2020-09-17 Tom Tromey <tom@tromey.com>
4846
4847 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4848
4849 2020-09-17 Tom Tromey <tom@tromey.com>
4850
4851 * value.c (preserve_values): Update.
4852 * python/py-type.c (save_objfile_types): Update.
4853 * guile/scm-type.c (save_objfile_types): Update.
4854 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4855 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4856 * compile/compile-object-run.c (compile_object_run): Update.
4857
4858 2020-09-17 Tom Tromey <tom@tromey.com>
4859
4860 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4861 Remove.
4862 <m_table>: Now htab_up.
4863 * typeprint.c (typedef_hash_table::recursively_update)
4864 (typedef_hash_table::add_template_parameters)
4865 (typedef_hash_table::typedef_hash_table): Update.
4866 (typedef_hash_table::~typedef_hash_table): Remove.
4867 (typedef_hash_table::typedef_hash_table)
4868 (typedef_hash_table::find_global_typedef)
4869 (typedef_hash_table::find_typedef): Update.
4870
4871 2020-09-17 Tom Tromey <tom@tromey.com>
4872
4873 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4874
4875 2020-09-17 Tom Tromey <tom@tromey.com>
4876
4877 * linespec.c (class decode_compound_collector)
4878 <~decode_compound_collector>: Remove.
4879 <m_unique_syms>: Now htab_up.
4880 (decode_compound_collector::operator ()): Update.
4881 (class symtab_collector) <~symtab_collector>: Remove.
4882 <m_symtab_table>: Now htab_up.
4883 (symtab_collector::operator ()): Update.
4884
4885 2020-09-17 Tom Tromey <tom@tromey.com>
4886
4887 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4888 (filename_seen_cache::clear): Update.
4889 (~filename_seen_cache): Remove.
4890 (filename_seen_cache::seen): Update.
4891 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4892 htab_up.
4893 <~filename_seen_cache>: Remove.
4894 <traverse>: Update.
4895
4896 2020-09-17 Tom Tromey <tom@tromey.com>
4897
4898 * completer.c (completion_tracker::discard_completions)
4899 (completion_tracker::~completion_tracker)
4900 (completion_tracker::maybe_add_completion)
4901 (completion_tracker::remove_completion)
4902 (completion_tracker::recompute_lowest_common_denominator)
4903 (completion_tracker::build_completion_result): Update.
4904 * completer.h (class completion_tracker) <have_completions>:
4905 Update.
4906 <m_entries_hash>: Now htab_up.
4907
4908 2020-09-17 Tom Tromey <tom@tromey.com>
4909
4910 * breakpoint.c (ambiguous_names_p): Use htab_up.
4911
4912 2020-09-17 Tom Tromey <tom@tromey.com>
4913
4914 * auto-load.c (struct auto_load_pspace_info)
4915 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4916 <loaded_script_files, loaded_script_texts>: Change type to
4917 htab_up.
4918 (~auto_load_pspace_info) Remove.
4919 (init_loaded_scripts_info, maybe_add_script_file)
4920 (maybe_add_script_text, auto_load_info_scripts): Update.
4921
4922 2020-09-17 Tom Tromey <tromey@adacore.com>
4923
4924 * c-exp.y (name_obstack): Now static.
4925
4926 2020-09-17 Chungyi Chi <demonic@csie.io>
4927
4928 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4929
4930 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4933 (add_solib_catchpoint): Likewise.
4934 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4935 to bool.
4936 (add_solib_catchpoint): Change int parameter/variable to bool.
4937 (catch_load_or_unload): Likewise.
4938 (init_catchpoint): Likewise.
4939 (create_fork_vfork_event_catchpoint): Likewise.
4940 (catch_fork_command_1): Likewise.
4941 (catch_exec_command_1): Likewise.
4942
4943 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
4944
4945 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4946 Change instance_flags to m_instance_flags.
4947
4948 2020-09-16 Tom Tromey <tromey@adacore.com>
4949
4950 PR gdb/26598:
4951 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4952
4953 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4954
4955 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4956 PL_FLAG_EXEC.
4957 (fbsd_nat_target::insert_exec_catchpoint)
4958 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4959 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4960 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4961
4962 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4963
4964 * configure.ac: Remove check for kinfo_getvmmap().
4965 * configure, config.in: Regenerate.
4966 * fbsd-nat.c (fbsd_read_mapping): Remove
4967 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4968 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4969 kinfo_get_vmmap() are always present.
4970
4971 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4972
4973 * fbsd-nat.c: Always include support for
4974 TARGET_OBJECT_SIGNAL_INFO.
4975
4976 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4977
4978 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4979 sysctl and remove procfs fallback.
4980
4981 2020-09-16 John Baldwin <jhb@FreeBSD.org>
4982
4983 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4984 * fbsd-nat.h: Likewise.
4985
4986 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4987
4988 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4989 argument.
4990
4991 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * ada-lang.c (ada_language_data): Delete.
4994 (ada_language): Remove references to ada_language_data.
4995 * c-lang.c (c_language_data): Delete.
4996 (c_language): Remove references to c_language_data.
4997 (cplus_language_data): Delete.
4998 (cplus_language): Remove references to cplus_language_data.
4999 (asm_language_data): Delete.
5000 (asm_language): Remove references to asm_language_data.
5001 (minimal_language_data): Delete.
5002 (minimal_language): Remove references to minimal_language_data.
5003 * d-lang.c (d_language_data): Delete.
5004 (d_language): Remove references to d_language_data.
5005 * f-lang.c (f_language_data): Delete.
5006 (f_language): Remove references to f_language_data.
5007 * go-lang.c (go_language_data): Delete.
5008 (go_language): Remove references to go_language_data.
5009 * language.c (unknown_language_data): Delete.
5010 (unknown_language): Remove references to unknown_language_data.
5011 (auto_language_data): Delete.
5012 (auto_language): Remove references to auto_language_data.
5013 * language.h (language_data): Delete struct.
5014 (language_defn): No longer inherit from language_data.
5015 * m2-lang.c (m2_language_data): Delete.
5016 (m2_language): Remove references to m2_language_data.
5017 * objc-lang.c (objc_language_data): Delete.
5018 (objc_language): Remove references to objc_language_data.
5019 * opencl-lang.c (opencl_language_data): Delete.
5020 (opencl_language): Remove references to opencl_language_data.
5021 * p-lang.c (pascal_language_data): Delete.
5022 (pascal_language): Remove references to pascal_language_data.
5023 * rust-lang.c (rust_language_data): Delete.
5024 (rust_language): Remove references to rust_language_data.
5025
5026 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5027
5028 * ada-lang.c (ada_language_data): Remove la_op_print_tab
5029 initializer.
5030 (ada_language::opcode_print_table): New member function.
5031 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
5032 (c_language::opcode_print_table): New member function.
5033 (cplus_language_data): Remove la_op_print_tab initializer.
5034 (cplus_language::opcode_print_table): New member function.
5035 (asm_language_data): Remove la_op_print_tab initializer.
5036 (asm_language::opcode_print_table): New member function.
5037 (minimal_language_data): Remove la_op_print_tab initializer.
5038 (minimal_language::opcode_print_table): New member function.
5039 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
5040 (d_language::opcode_print_table): New member function.
5041 * expprint.c (print_subexp_standard): Update call to
5042 opcode_print_table.
5043 (op_string): Likewise.
5044 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
5045 (f_language::opcode_print_table): New member function.
5046 * go-lang.c (go_language_data): Remove la_op_print_tab
5047 initializer.
5048 (go_language::opcode_print_table): New member function.
5049 * language.c (unknown_language_data): Remove la_op_print_tab
5050 initializer.
5051 (unknown_language::opcode_print_table): New member function.
5052 (auto_language_data): Remove la_op_print_tab initializer.
5053 (auto_language::opcode_print_table): New member function.
5054 * language.h (language_data): Remove la_op_print_tab field.
5055 (language_defn::opcode_print_table): Declare new member function.
5056 * m2-lang.c (m2_language_data): Remove la_op_print_tab
5057 initializer.
5058 (m2_language::opcode_print_table): New member function.
5059 * objc-lang.c (objc_language_data): Remove la_op_print_tab
5060 initializer.
5061 (objc_language::opcode_print_table): New member function.
5062 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
5063 initializer.
5064 (opencl_language::opcode_print_table): New member function.
5065 * p-lang.c (pascal_language_data): Remove la_op_print_tab
5066 initializer.
5067 (pascal_language::opcode_print_table): New member function.
5068 * rust-lang.c (rust_language_data): Remove la_op_print_tab
5069 initializer.
5070 (rust_language::opcode_print_table): New member function.
5071
5072 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5073
5074 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
5075 (ada_language::expression_ops): New member function.
5076 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
5077 (c_language::expression_ops): New member function.
5078 (cplus_language_data): Remove la_exp_desc initializer.
5079 (cplus_language::expression_ops): New member function.
5080 (asm_language_data): Remove la_exp_desc initializer.
5081 (asm_language::expression_ops): New member function.
5082 (minimal_language_data): Remove la_exp_desc initializer.
5083 (minimal_language::expression_ops): New member function.
5084 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
5085 (d_language::expression_ops): New member function.
5086 * eval.c (evaluate_subexp): Update call to expression_ops.
5087 * expprint.c (print_subexp): Likewise.
5088 (op_name): Likewise.
5089 (dump_subexp_body): Likewise.
5090 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
5091 (f_language::expression_ops): New member function.
5092 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
5093 (go_language::expression_ops): New member function.
5094 * language.c (language_defn::expression_ops): New function.
5095 (unknown_language_data): Remove la_exp_desc initializer.
5096 (auto_language_data): Likewise.
5097 * language.h (language_data): Remove la_exp_desc field.
5098 (language_defn::expression_ops): Declare new member function.
5099 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
5100 (m2_language::expression_ops): New member function.
5101 * objc-lang.c (objc_language_data): Remove la_exp_desc
5102 initializer.
5103 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
5104 initializer.
5105 (opencl_language::expression_ops): New member function.
5106 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
5107 * parse.c (operator_length): Update call to expression_ops.
5108 (exp_iterate): Likewise.
5109 * rust-lang.c (rust_language_data): Remove la_exp_desc
5110 initializer.
5111 (ruse_language::expression_ops): New member function.
5112
5113 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * ada-lang.c (ada_language_data): Remove la_varobj_ops
5116 initializer.
5117 (ada_language::varobj_ops): New member function.
5118 * c-lang.c (c_language_data): Remove la_varobj_ops
5119 initializer.
5120 (cplus_language_data): Likewise.
5121 (cplus_language::varobj_ops): New member function.
5122 (asm_language_data): Remove la_varobj_ops initializer.
5123 (minimal_language_data): Likewise.
5124 * d-lang.c (d_language_data): Likewise.
5125 * f-lang.c (f_language_data): Likewise.
5126 * go-lang.c (go_language_data): Likewise.
5127 * language.c (language_defn::varobj_ops): New function.
5128 (unknown_language_data): Remove la_varobj_ops
5129 initializer.
5130 (auto_language_data): Likewise.
5131 * language.h (language_data): Remove la_varobj_ops field.
5132 (language_defn::varobj_ops): Declare new member function.
5133 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
5134 * objc-lang.c (objc_language_data): Likewise.
5135 * opencl-lang.c (opencl_language_data): Likewise.
5136 * p-lang.c (pascal_language_data): Likewise.
5137 * rust-lang.c (rust_language_data): Likewise.
5138 * varobj.c (varobj_create): Update call to varobj_ops.
5139 * varobj.h (default_varobj_ops): Delete define.
5140
5141 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5142
5143 * ada-lang.c (ada_language_data): Remove la_macro_expansion
5144 initializer.
5145 * c-lang.c (c_language_data): Likewise.
5146 (c_language::macro_expansion): New member function.
5147 (cplus_language_data): Likewise.
5148 (cplus_language::macro_expansion): New member function.
5149 (asm_language_data): Likewise.
5150 (asm_language::macro_expansion): New member function.
5151 (minimal_language_data): Likewise.
5152 (minimal_language::macro_expansion): New member function.
5153 * d-lang.c (d_language_data): Remove la_macro_expansion
5154 initializer.
5155 * f-lang.c (f_language_data): Likewise.
5156 * go-lang.c (go_language_data): Likewise.
5157 * language.c (unknown_language_data): Likewise.
5158 (auto_language_data): Likewise.
5159 * language.h (language_data): Remove la_macro_expansion field.
5160 (language_defn::macro_expansion): New member function.
5161 * m2-lang.c (m2_language_data): Remove la_macro_expansion
5162 initializer.
5163 * objc-lang.c (objc_language_data): Likewise.
5164 (objc_language::macro_expansion): New member function.
5165 * opencl-lang.c (opencl_language_data): Likewise.
5166 (opencl_language::macro_expansion): New member function.
5167 * p-lang.c (pascal_language_data): Remove la_macro_expansion
5168 initializer.
5169 * rust-lang.c (rust_language_data): Likewise.
5170 * symtab.c (default_collect_symbol_completion_matches_break_on):
5171 Update call to macro_expansion.
5172
5173 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5174
5175 * ada-lang.c (ada_language_data): Remove la_array_ordering
5176 initializer.
5177 * c-lang.c (c_language_data): Likewise.
5178 (cplus_language_data): Likewise.
5179 (asm_language_data): Likewise.
5180 (minimal_language_data): Likewise.
5181 * d-lang.c (d_language_data): Likewise.
5182 * dwarf2/read.c (read_array_order): Update for call to
5183 array_ordering.
5184 * f-lang.c (f_language_data): Remove la_array_ordering
5185 initializer.
5186 (f_language::array_ordering): New member function.
5187 * go-lang.c (go_language_data): Remove la_array_ordering
5188 initializer.
5189 * language.c (unknown_language_data): Likewise.
5190 (auto_language_data): Likewise.
5191 * language.h (language_data): Delete la_array_ordering field.
5192 (language_defn::array_ordering): New member function.
5193 * m2-lang.c (m2_language_data): Remove la_array_ordering
5194 initializer.
5195 * objc-lang.c (objc_language_data): Likewise.
5196 * opencl-lang.c (opencl_language_data): Likewise.
5197 * p-lang.c (pascal_language_data): Likewise.
5198 * rust-lang.c (rust_language_data): Likewise.
5199
5200 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5203 initializer.
5204 * c-lang.c (c_language_data): Likewise.
5205 (cplus_language_data): Likewise.
5206 (asm_language_data): Likewise.
5207 (minimal_language_data): Likewise.
5208 * d-lang.c (d_language_data): Likewise.
5209 * f-lang.c (f_language_data): Likewise.
5210 (f_language::case_sensitivity): New member function.
5211 * go-lang.c (go_language_data): Remove la_case_sensitivity
5212 initializer.
5213 * language.c (enum case_mode): Moved here from language.h.
5214 (case_mode): Make static.
5215 (show_case_command): Update for case_sensitivity being a method.
5216 (set_case_command): Likewise.
5217 (set_range_case): Likewise.
5218 (unknown_language_data): Remove la_case_sensitivity initializer.
5219 (auto_language_data): Likewise.
5220 * language.h (case_mode): Delete, move enum declaration to
5221 language.c.
5222 (language_data): Delete la_case_sensitivity field.
5223 (language_defn::case_sensitivity): New member function.
5224 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5225 initializer.
5226 * objc-lang.c (objc_language_data): Likewise.
5227 * opencl-lang.c (opencl_language_data): Likewise.
5228 * p-lang.c (pascal_language_data): Likewise.
5229 * rust-lang.c (rust_language_data): Likewise.
5230
5231 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * ada-lang.c (ada_language_data): Remove la_range_check
5234 initializer.
5235 * c-lang.c (c_language_data): Likewise.
5236 (cplus_language_data): Likewise.
5237 (asm_language_data): Likewise.
5238 (minimal_language_data): Likewise.
5239 * d-lang.c (d_language_data): Likewise.
5240 * f-lang.c (f_language_data): Likewise.
5241 (f_language::range_checking_on_by_default): New member function.
5242 * go-lang.c (go_language_data): Remove la_range_check initializer.
5243 * language.c (enum range_mode): Moved here from language.h.
5244 (range_mode): Made static.
5245 (show_range_command): Update to use
5246 range_checking_on_by_default.
5247 (set_range_command): Likewise.
5248 (set_range_case): Likewise.
5249 (unknown_language_data): Remove la_range_check initializer.
5250 (auto_language_data): Likewise.
5251 * language.h (range_mode): Delete. Enum definition moved to
5252 language.c.
5253 (language_data): Remove la_range_check field.
5254 (language_defn::range_checking_on_by_default): New member
5255 function.
5256 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5257 (m2_language::range_checking_on_by_default): New member function.
5258 * objc-lang.c (objc_language_data): Remove la_range_check
5259 initializer.
5260 * opencl-lang.c (opencl_language_data): Likewise.
5261 * p-lang.c (pascal_language_data): Likewise.
5262 (pascal_language::range_checking_on_by_default): New member
5263 function.
5264 * rust-lang.c (rust_language_data): Remove la_range_check
5265 initializer.
5266 (rust_language::range_checking_on_by_default): New member
5267 function.
5268
5269 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5270
5271 * dwarf2/read.c (dwarf2_physname): Remove special case for
5272 language_go.
5273 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5274 member function.
5275
5276 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5277
5278 * ada-lang.c (ada_language_data): Remove
5279 la_store_sym_names_in_linkage_form_p initializer.
5280 (ada_language::store_sym_names_in_linkage_form_p): New member
5281 function.
5282 * c-lang.c (c_language_data): Remove
5283 la_store_sym_names_in_linkage_form_p initializer.
5284 (c_language::store_sym_names_in_linkage_form_p): New member
5285 function.
5286 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5287 initializer.
5288 (asm_language_data): Likewise.
5289 (asm_language::store_sym_names_in_linkage_form_p): New member
5290 function.
5291 (minimal_language_data): Remove
5292 la_store_sym_names_in_linkage_form_p initializer.
5293 (minimal_language::store_sym_names_in_linkage_form_p): New member
5294 function.
5295 * d-lang.c (d_language_data): Remove
5296 la_store_sym_names_in_linkage_form_p initializer.
5297 * dwarf2/read.c (dwarf2_physname): Update call to
5298 store_sym_names_in_linkage_form_p.
5299 * f-lang.c (f_language_data): Remove
5300 la_store_sym_names_in_linkage_form_p initializer.
5301 * go-lang.c (go_language_data): Remove
5302 la_store_sym_names_in_linkage_form_p initializer.
5303 * language.c (unknown_language_data): Remove
5304 la_store_sym_names_in_linkage_form_p initializer.
5305 (unknown_language::store_sym_names_in_linkage_form_p): New member
5306 function.
5307 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5308 initializer.
5309 (auto_language::store_sym_names_in_linkage_form_p): New member
5310 function.
5311 * language.h (language_data): Remove
5312 la_store_sym_names_in_linkage_form_p member variable.
5313 (language_defn::store_sym_names_in_linkage_form_p): New member
5314 function.
5315 * m2-lang.c (m2_language_data): Remove
5316 la_store_sym_names_in_linkage_form_p initializer.
5317 * objc-lang.c (objc_language_data): Likewise.
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
5322 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5323
5324 * ada-lang.c (ada_language_data): Remove string_lower_bound
5325 initializer.
5326 * c-lang.c (c_language_data): Likewise.
5327 (cplus_language_data): Likewise.
5328 (asm_language_data): Likewise.
5329 (minimal_language_data): Likewise.
5330 * d-lang.c (d_language_data): Likewise.
5331 * f-lang.c (f_language_data): Likewise.
5332 * go-lang.c (go_language_data): Likewise.
5333 * language.c (unknown_language_data): Likewise.
5334 (auto_language_data): Likewise.
5335 * language.h (language_data): Remove string_lower_bound field.
5336 (language_defn::string_lower_bound): New member function.
5337 * m2-lang.c (m2_language_data): Remove string_lower_bound
5338 initializer.
5339 (m2_language::string_lower_bound): New member function.
5340 * objc-lang.c (objc_language_data): Remove string_lower_bound
5341 initializer.
5342 * opencl-lang.c (opencl_language_data): Likewise.
5343 * p-lang.c (pascal_language_data): Likewise.
5344 * rust-lang.c (rust_language_data): Likewise.
5345 * valops.c (value_cstring): Update call to string_lower_bound.
5346 (value_string): Likewise.
5347 * value.c (allocate_repeated_value): Likewise.
5348
5349 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5350
5351 * valops.c (value_repeat): Fix incorrect argument name in comment.
5352
5353 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5354
5355 * ada-lang.c (ada_language_data): Remove c_style_arrays
5356 initializer.
5357 (ada_language::c_style_arrays_p): New member fuction.
5358 * c-lang.c (c_language_data): Remove c_style_arrays
5359 initializer.
5360 (cplus_language_data): Likewise.
5361 (asm_language_data): Likewise.
5362 (minimal_language_data): Likewise.
5363 * d-lang.c (d_language_data): Likewise.
5364 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5365 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5366 (f_language::c_style_arrays_p): New member function.
5367 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5368 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5369 * language.c (unknown_language_data): Remove c_style_arrays
5370 initializer.
5371 (auto_language_data): Likewise.
5372 * language.h (language_data): Remove c_style_arrays field.
5373 (language_defn::c_style_arrays_p): New member function.
5374 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5375 (m2_language::c_style_arrays_p): New member function.
5376 * objc-lang.c (objc_language_data): Remove c_style_arrays
5377 initializer.
5378 * opencl-lang.c (opencl_language_data): Likewise.
5379 * p-lang.c (pascal_language_data): Likewise.
5380 * rust-lang.c (rust_language_data): Likewise.
5381 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5382 and update local variable to a bool.
5383 * valops.c (value_cast): Update call to c_style_arrays_p.
5384 (value_array): Likewise.
5385 * value.c (coerce_array): Likewise.
5386
5387 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * ada-lang.c (ada_language_data): Remove la_language initializer.
5390 * c-lang.c (c_language_data): Likewise.
5391 (cplus_language_data): Likewise.
5392 (asm_language_data): Likewise.
5393 (minimal_language_data): Likewise.
5394 * d-lang.c (d_language_data): Likewise.
5395 * f-lang.c (f_language_data): Likewise.
5396 * go-lang.c (go_language_data): Likewise.
5397 * language.c (unknown_language_data): Likewise.
5398 (auto_language_data): Likewise.
5399 * language.h (language_data): Remove la_language field.
5400 (language_defn::language_defn): Initialise la_language field.
5401 (language_defn::la_language): New member variable.
5402 * m2-lang.c (m2_language_data): Remove la_language field.
5403 * objc-lang.c (objc_language_data): Likewise.
5404 * opencl-lang.c (opencl_language_data): Likewise.
5405 * p-lang.c (pascal_language_data): Likewise.
5406 * rust-lang.c (rust_language_data): Likewise.
5407
5408 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5409
5410 * ada-lang.c (ada_extensions): Delete, moved into
5411 ada_language::filename_extensions.
5412 (ada_language_data): Remove la_filename_extensions initializer.
5413 (ada_language::filename_extensions): New member function.
5414 * c-lang.c (c_extensions): Delete, moved into
5415 c_language::filename_extensions.
5416 (c_language_data): Remove la_filename_extensions initializer.
5417 (c_language::filename_extensions): New member function.
5418 (cplus_extensions): Delete, moved into
5419 cplus_language::filename_extensions.
5420 (cplus_language_data): Remove la_filename_extensions initializer.
5421 (cplus_language::filename_extensions): New member function.
5422 (asm_extensions): Delete, moved into
5423 asm_language::filename_extensions.
5424 (asm_language_data): Remove la_filename_extensions initializer.
5425 (asm_language::filename_extensions): New member function.
5426 (minimal_language_data): Remove la_filename_extensions
5427 initializer.
5428 * d-lang.c (d_extensions): Delete, moved into
5429 d_language::filename_extensions.
5430 (d_language_data): Remove la_filename_extensions initializer.
5431 (d_language::filename_extensions): New member function.
5432 * f-lang.c (f_extensions): Delete, moved into
5433 f_language::filename_extensions.
5434 (f_language_data): Remove la_filename_extensions initializer.
5435 (f_language::filename_extensions): New member function.
5436 * go-lang.c (go_language_data): Remove la_filename_extensions
5437 initializer.
5438 * language.c (add_set_language_command): Update now that
5439 filename_extensions returns a vector.
5440 (unknown_language_data): Remove la_filename_extensions
5441 initializer.
5442 (auto_language_data): Likewise.
5443 * language.h (language_data): Remove la_filename_extensions field.
5444 (language_defn::filename_extensions): New member function.
5445 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5446 initializer.
5447 * objc-lang.c (objc_extensions): Delete, moved into
5448 objc_language::filename_extensions.
5449 (objc_language_data): Remove la_filename_extensions initializer.
5450 (objc_language::filename_extensions): New member function.
5451 * opencl-lang.c (opencl_language_data): Remove
5452 la_filename_extensions initializer.
5453 * p-lang.c (pascal_extensions): Delete, moved into
5454 pascal_language::filename_extensions.
5455 (pascal_language_data): Remove la_filename_extensions initializer.
5456 (pascal_language::filename_extensions): New member function.
5457 * rust-lang.c (rust_extensions): Delete, moved into
5458 rust_language::filename_extensions.
5459 (rust_language_data): Remove la_filename_extensions initializer.
5460 (rust_language::filename_extensions): New member function.
5461 * symfile.c (add_filename_language): Add new assert.
5462
5463 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5464
5465 * ada-lang.c (ada_language_data): Remove la_name and
5466 la_natural_name initializers.
5467 (ada_language::name): New member function.
5468 (ada_language::natural_name): New member function.
5469 * c-lang.c (c_language_data): Remove la_name and
5470 la_natural_name initializers.
5471 (c_language::name): New member function.
5472 (c_language::natural_name): New member function.
5473 (cplus_language_data): Remove la_name and
5474 la_natural_name initializers.
5475 (cplus_language::name): New member function.
5476 (cplus_language::natural_name): New member function.
5477 (asm_language_data): Remove la_name and
5478 la_natural_name initializers.
5479 (asm_language::name): New member function.
5480 (asm_language::natural_name): New member function.
5481 (minimal_language_data): Remove la_name and
5482 la_natural_name initializers.
5483 (minimal_language::name): New member function.
5484 (minimal_language::natural_name): New member function.
5485 * compile/compile.c (compile_to_object): Update call to
5486 lanugage_defn::name.
5487 * d-lang.c (d_language_data): Remove la_name and
5488 la_natural_name initializers.
5489 (d_language::name): New member function.
5490 (d_language::natural_name): New member function.
5491 * expprint.c (print_subexp_standard): Update call to
5492 language_defn::name.
5493 (dump_raw_expression): Likewise
5494 (dump_prefix_expression): Likewise.
5495 * f-lang.c (f_language_data): Remove la_name and
5496 la_natural_name initializers.
5497 (f_language::name): New member function.
5498 (f_language::natural_name): New member function.
5499 * go-lang.c (go_language_data): Remove la_name and
5500 la_natural_name initializers.
5501 (go_language::name): New member function.
5502 (go_language::natural_name): New member function.
5503 * language.c (show_language_command): Update call to
5504 language_defn::name.
5505 (set_language_command): Likewise.
5506 (language_enum): Likewise.
5507 (language_str): Likewise.
5508 (add_set_language_command): Likewise, use
5509 language_defn::natural_name in the doc string.
5510 (unknown_language_data): Remove la_name and
5511 la_natural_name initializers.
5512 (unknown_language::name): New member function.
5513 (unknown_language::natural_name): New member function.
5514 (auto_language_data): Remove la_name and
5515 la_natural_name initializers.
5516 (auto_language::name): New member function.
5517 (auto_language::natural_name): New member function.
5518 (language_lookup_primitive_type_as_symbol): Update call to
5519 language_defn::name.
5520 * language.h (language_data): Remove la_name and la_natural_name
5521 member variables.
5522 (language_defn::name): New member function.
5523 (language_defn::natural_name): New member function.
5524 * m2-lang.c (m2_language_data): Remove la_name and
5525 la_natural_name initializers.
5526 (m2_language::name): New member function.
5527 (m2_language::natural_name): New member function.
5528 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5529 language_defn::natural_name.
5530 * objc-lang.c (objc_language_data): Remove la_name and
5531 la_natural_name initializers.
5532 (objc_language::name): New member function.
5533 (objc_language::natural_name): New member function.
5534 * opencl-lang.c (opencl_language_data): Remove la_name and
5535 la_natural_name initializers.
5536 (opencl_language::name): New member function.
5537 (opencl_language::natural_name): New member function.
5538 * p-lang.c (pascal_language_data): Remove la_name and
5539 la_natural_name initializers.
5540 (pascal_language::name): New member function.
5541 (pascal_language::natural_name): New member function.
5542 * rust-lang.c (rust_language_data): Remove la_name and
5543 la_natural_name initializers.
5544 (rust_language::name): New member function.
5545 (rust_language::natural_name): New member function.
5546 * symtab.c (lookup_language_this): Update call to
5547 language_defn::name.
5548
5549 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5550
5551 * ada-lang.c (ada_language_data): Remove la_name_of_this
5552 initializer.
5553 * ax-gdb.c (gen_expr): Update call to name_of_this.
5554 * c-exp.y (classify_name): Likewise.
5555 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5556 (cplus_language_data): Likewise.
5557 (cplus_language::name_of_this): New member function.
5558 (asm_language_data): Remove la_name_of_this initializer.
5559 (minimal_language_data): Likewise.
5560 * d-lang.c (d_language_data): Likewise.
5561 (d_language::name_of_this): New member function.
5562 * expprint.c (print_subexp_standard): Update call to name_of_this.
5563 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5564 * go-lang.c (go_language_data): Likewise.
5565 * language.c (unknown_language_data): Likewise.
5566 (unknown_language::name_of_this): New member function.
5567 (auto_language_data): Remove la_name_of_this initializer.
5568 (auto_language::name_of_this): New member function.
5569 * language.h (language_data): Delete la_name_of_this member
5570 variable.
5571 (language_defn::name_of_this): New member function.
5572 * m2-lang.c (m2_language_data): Remove la_name_of_this
5573 initializer.
5574 * objc-lang.c (objc_language_data): Likewise.
5575 (objc_language::name_of_this): New member function.
5576 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5577 initializer.
5578 * p-lang.c (pascal_language_data): Likewise.
5579 (pascal_language::name_of_this): New member function.
5580 * rust-lang.c (rust_language_data): Remove la_name_of_this
5581 initializer.
5582 * symtab.c (lookup_language_this): Update call to name_of_this.
5583 (lookup_symbol_aux): Likewise.
5584 * valops.c (value_of_this): Likewise.
5585
5586 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5587
5588 * ada-lang.c (ada_language_data): Remove
5589 la_struct_too_deep_ellipsis initializer.
5590 (ada_language::struct_too_deep_ellipsis): New member function.
5591 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5592 initializer.
5593 (cplus_language_data): Likewise.
5594 (asm_language_data): Likewise.
5595 (minimal_language_data): Likewise.
5596 * cp-valprint.c (cp_print_value): Update call to
5597 struct_too_deep_ellipsis.
5598 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5599 initializer.
5600 * f-lang.c (f_language_data): Likewise.
5601 (f_language::struct_too_deep_ellipsis): New member function.
5602 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5603 initializer.
5604 * language.c (unknown_language_data): Likewise.
5605 (auto_language_data): Likewise.
5606 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5607 member variable.
5608 (language_defn::struct_too_deep_ellipsis): New member function.
5609 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5610 initializer.Q
5611 * objc-lang.c (objc_language_data): Likewise.
5612 * opencl-lang.c (opencl_language_data): Likewise.
5613 * p-lang.c (pascal_language_data): Likewise.
5614 * rust-lang.c (rust_language_data): Likewise.
5615 * valprint.c (val_print_check_max_depth): Update call to
5616 struct_too_deep_ellipsis.
5617
5618 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5619
5620 * MAINTAINERS (Write After Approval): Add myself.
5621
5622 2020-09-15 Tom Tromey <tom@tromey.com>
5623
5624 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5625 Remove.
5626
5627 2020-09-15 Tom Tromey <tom@tromey.com>
5628
5629 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5630 and TYPE_CODE_METHODPTR cases.
5631 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5632 (c_value_print_inner): Update.
5633 * valprint.c (generic_value_print_memberptr): New function, from
5634 c_value_print_memberptr.
5635 (generic_value_print): Use it. Call cplus_print_method_ptr.
5636
5637 2020-09-15 Tom Tromey <tromey@adacore.com>
5638
5639 * python/python-internal.h (PyInt_FromLong): Remove define.
5640 * python/py-value.c (convert_value_from_python): Use
5641 gdb_py_object_from_longest.
5642 * python/py-type.c (typy_get_code): Use
5643 gdb_py_object_from_longest.
5644 * python/py-symtab.c (salpy_get_line): Use
5645 gdb_py_object_from_longest.
5646 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5647 gdb_py_object_from_longest.
5648 * python/py-record.c (recpy_gap_reason_code): Use
5649 gdb_py_object_from_longest.
5650 * python/py-record-btrace.c (recpy_bt_insn_size)
5651 (recpy_bt_func_level, btpy_list_count): Use
5652 gdb_py_object_from_longest.
5653 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5654 gdb_py_object_from_longest. Fix error handling.
5655 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5656 gdb_py_object_from_longest.
5657 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5658 gdb_py_object_from_longest.
5659 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5660 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5661 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5662
5663 2020-09-15 Tom Tromey <tromey@adacore.com>
5664
5665 * python/python.c (gdbpy_parameter_value): Use
5666 gdb_py_object_from_ulongest.
5667
5668 2020-09-15 Tom Tromey <tromey@adacore.com>
5669
5670 * python/py-infevents.c (create_register_changed_event_object):
5671 Use gdb_py_object_from_longest.
5672 * python/py-exitedevent.c (create_exited_event_object): Use
5673 gdb_py_object_from_longest.
5674
5675 2020-09-15 Tom Tromey <tromey@adacore.com>
5676
5677 * python/python.c (gdbpy_parameter_value): Use
5678 gdb_py_object_from_longest.
5679 * python/py-type.c (convert_field, typy_range): Use
5680 gdb_py_object_from_longest.
5681 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5682 gdb_py_object_from_longest.
5683 * python/py-lazy-string.c (stpy_get_length): Use
5684 gdb_py_object_from_longest.
5685 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5686 gdb_py_object_from_longest.
5687 * python/py-infevents.c (create_memory_changed_event_object): Use
5688 gdb_py_object_from_longest.
5689 * python/py-inferior.c (infpy_get_num): Use
5690 gdb_py_object_from_longest.
5691 (infpy_get_pid): Likewise.
5692
5693 2020-09-15 Tom Tromey <tromey@adacore.com>
5694
5695 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5696 defines.
5697 * python/py-value.c (valpy_long): Use
5698 gdb_py_object_from_ulongest.
5699 * python/py-symtab.c (salpy_get_pc): Use
5700 gdb_py_object_from_ulongest.
5701 (salpy_get_last): Likewise.
5702 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5703 gdb_py_object_from_ulongest.
5704 * python/py-lazy-string.c (stpy_get_address): Use
5705 gdb_py_object_from_ulongest.
5706 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5707 * python/py-arch.c (archpy_disassemble): Use
5708 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5709 error handling.
5710
5711 2020-09-15 Tom Tromey <tromey@adacore.com>
5712
5713 * python/python-internal.h (gdb_py_long_from_longest): Remove
5714 defines.
5715 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5716 * python/py-type.c (convert_field, typy_get_sizeof): Use
5717 gdb_py_object_from_longest.
5718 * python/py-record-btrace.c (btpy_list_index): Use
5719 gdb_py_object_from_longest.
5720
5721 2020-09-15 Tom Tromey <tromey@adacore.com>
5722
5723 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5724 * python/py-record.c (recpy_element_number): Use
5725 gdb_py_object_from_longest.
5726 (recpy_gap_number): Likewise.
5727
5728 2020-09-15 Tom Tromey <tromey@adacore.com>
5729
5730 * top.c (ui::ui): Update.
5731 (highest_ui_num): Remove.
5732 * top.h (struct ui) <num>: Remove.
5733
5734 2020-09-15 Tom Tromey <tromey@adacore.com>
5735
5736 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5737 * ui-style.c (ansi_regex_text): Now array.
5738 * rust-exp.y (number_regex_text): Now array.
5739 * linespec.c (linespec_quote_characters): Now array.
5740 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5741 Now arrays.
5742
5743 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5744
5745 * debuginfod-support.c (debuginfod_client_deleter): New.
5746 (debuginfod_client_up): New.
5747 (debuginfod_init): Return debuginfod_client_up.
5748 (debuginfod_source_query): Adjust.
5749 (debuginfod_debuginfo_query): Adjust.
5750
5751 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5752
5753 * debuginfod-support.c (debuginfod_source_query): Use
5754 make_unique_xstrdup.
5755
5756 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5757
5758 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5759 with `type::instance_flags`.
5760
5761 2020-09-14 Michael Mullin <masmullin@gmail.com>
5762
5763 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5764 Remove baton parameter.
5765
5766 2020-09-14 Pedro Alves <pedro@palves.net>
5767
5768 * Makefile.in (SELFTESTS_SRCS): Add
5769 unittests/enum-flags-selftests.c.
5770 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5771 btrace_function_flags instead of enum btrace_function_flag.
5772 * compile/compile-c-types.c (convert_qualified): Use
5773 enum_flags::raw.
5774 * compile/compile-cplus-symbols.c (convert_one_symbol)
5775 (convert_symbol_bmsym):
5776 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5777 (compile_cplus_convert_struct_or_union_methods)
5778 (compile_cplus_instance::convert_qualified_base):
5779 * go-exp.y (parse_string_or_char): Add cast to int.
5780 * unittests/enum-flags-selftests.c: New file.
5781 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5782 type to btrace_thread_flags from btrace_thread_flag.
5783 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5784 local's type to btrace_thread_flags from btrace_thread_flag. Add
5785 cast in DEBUG call.
5786
5787 2020-09-14 Pedro Alves <pedro@palves.net>
5788
5789 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5790 * gdbtypes.c (address_space_name_to_int): Rename to ...
5791 (address_space_name_to_type_instance_flags): ... this.
5792 (address_space_int_to_name): Rename to ...
5793 (address_space_type_instance_flags_to_name): ... this.
5794 * gdbtypes.h (address_space_name_to_int): Rename to ...
5795 (address_space_name_to_type_instance_flags): ... this.
5796 (address_space_int_to_name): Rename to ...
5797 (address_space_type_instance_flags_to_name): ... this.
5798 * type-stack.c (type_stack::insert): Adjust to rename.
5799 * type-stack.h (type_stack::insert): Likewise.
5800
5801 2020-09-14 Pedro Alves <pedro@palves.net>
5802 Andrew Burgess <andrew.burgess@embecosm.com>
5803
5804 * avr-tdep.c (avr_address_class_type_flags): Return
5805 type_instance_flags.
5806 (avr_address_class_type_flags_to_name): Take a
5807 type_instance_flags.
5808 (avr_address_class_name_to_type_flags): Return bool and take a
5809 type_instance_flags.
5810 * d-lang.c (build_d_types): Use type::set_instance_flags.
5811 * ft32-tdep.c (ft32_address_class_type_flags): Return
5812 type_instance_flags.
5813 (ft32_address_class_type_flags_to_name): Take a
5814 type_instance_flags.
5815 (ft32_address_class_name_to_type_flags): Return bool and take a
5816 type_instance_flags.
5817 (ft32_gdbarch_init): Use type::set_instance_flags.
5818 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5819 * gdbarch.h, gdbarch.c: Regenerate.
5820 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5821 (address_class_name_to_type_flags): Use type_instance_flags and
5822 bool.
5823 * gdbtypes.c (address_space_name_to_int)
5824 (address_space_int_to_name, make_qualified_type): Use
5825 type_instance_flags.
5826 (make_qualified_type): Use type_instance_flags and
5827 type::set_instance_flags.
5828 (make_type_with_address_space, make_cv_type, make_vector_type)
5829 (check_typedef): Use type_instance_flags.
5830 (recursive_dump_type): Cast type_instance_flags to unsigned for
5831 printing.
5832 (copy_type_recursive): Use type::set_instance_flags.
5833 (gdbtypes_post_init): Use type::set_instance_flags.
5834 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5835 <m_instance_flags>: ... this.
5836 <instance_flags, set_instance_flags>: New methods.
5837 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5838 (SET_TYPE_INSTANCE_FLAGS): New.
5839 (address_space_name_to_int, address_space_int_to_name)
5840 (make_type_with_address_space): Pass flags using
5841 type_instance_flags instead of int.
5842 * stabsread.c (cleanup_undefined_types_noname): Use
5843 type::set_instance_flags.
5844 * s390-tdep.c (s390_address_class_type_flags): Return
5845 type_instance_flags.
5846 (s390_address_class_type_flags_to_name): Take a
5847 type_instance_flags.
5848 (s390_address_class_name_to_type_flags): Return bool and take a
5849 type_instance_flags.
5850 * type-stack.c (type_stack::follow_types): Use
5851 type_instance_flags.
5852 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5853
5854 2020-09-14 Tom Tromey <tromey@adacore.com>
5855
5856 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5857 * x86-tdep.c (x86_is_thunk_register_name)
5858 (x86_in_indirect_branch_thunk): Update.
5859 * sparc64-tdep.c (sparc64_fpu_register_names)
5860 (sparc64_cp0_register_names, sparc64_register_names)
5861 (sparc64_pseudo_register_names): Now const.
5862 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5863 cp0_registers_num>: Now const.
5864 * sparc-tdep.c (sparc_core_register_names)
5865 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5866 (sparc32_pseudo_register_names): Now const.
5867 (validate_tdesc_registers): Update.
5868 * rust-lang.c (rust_extensions): Now const.
5869 * p-lang.c (p_extensions): Now const.
5870 * objc-lang.c (objc_extensions): Now const.
5871 * nto-tdep.c (nto_thread_state_str): Now const.
5872 * moxie-tdep.c (moxie_register_names): Now const.
5873 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5874 Now const.
5875 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5876 (mips_linux_reg_names): Now const.
5877 (mips_gdbarch_init): Update.
5878 * microblaze-tdep.c (microblaze_register_names): Now const.
5879 * m68k-tdep.c (m68k_register_names): Now const.
5880 * m32r-tdep.c (m32r_register_names): Now const.
5881 * ia64-tdep.c (ia64_register_names): Now const.
5882 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5883 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5884 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5885 ymm_avx512_register_names, pkeys_register_names>: Now const.
5886 * i386-tdep.c (i386_register_names, i386_zmm_names)
5887 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5888 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5889 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5890 * f-lang.c (f_extensions): Now const.
5891 * d-lang.c (d_extensions): Now const.
5892 * csky-tdep.c (csky_register_names): Now const.
5893 * charset.c (default_charset_names, charset_enum): Now const.
5894 (_initialize_charset): Update.
5895 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5896 const.
5897 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5898 (bsd_uthread_solib_loaded): Update.
5899 (bsd_uthread_state): Now const.
5900 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5901 (amd64_ymm_avx512_names, amd64_ymmh_names)
5902 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5903 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5904 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5905 (amd64_dword_names): Now const.
5906 * agent.c (can_use_agent_enum): Now const.
5907 * ada-tasks.c (task_states, long_task_states): Now const.
5908 * ada-lang.c (known_runtime_file_name_patterns)
5909 (known_auxiliary_function_name_patterns, attribute_names)
5910 (standard_exc, ada_extensions): Now const.
5911
5912 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * bcache.h (struct bcache) <bcache>: Remove constructor.
5915 <m_hash_function, m_compare_function>: Remove.
5916 <~bcache>: Make virtual.
5917 <compare>: Remove static method, introduce virtual method.
5918 <default_hash>: Remove.
5919 <hash>: New virtual method.
5920 * bcache.c (bcache::expand_hash_table): Update.
5921 (bcache::insert): Update.
5922 (bcache::hash): New.
5923 (bcache::compare): Update comment and parameter names.
5924 * gdbtypes.c (types_deeply_equal): Update.
5925 * psymtab.h (struct psymbol_bcache): New struct.
5926 (class psymtab_storage) <psymtab_storage>: Make default.
5927 <psymbol_cache>: Change type to psymbol_bcache.
5928 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5929 (psymbol_hash): Change to...
5930 (psymbol_bcache::hash): ... this.
5931 (psymbol_compare): Change to...
5932 (psymbol_bcache::compare): ... this.
5933
5934 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5935
5936 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5937 checking for initial lwp.
5938
5939 2020-09-14 Tom Tromey <tromey@adacore.com>
5940
5941 * m68k-tdep.c (m68k_extract_return_value): Use
5942 pointer_result_regnum.
5943 (m68k_store_return_value): Likewise.
5944 (m68k_reg_struct_return_p): Handle vectors and arrays.
5945 (m68k_return_value): Handle arrays.
5946 (m68k_svr4_return_value): Fix single-element aggregate handling.
5947 Handle long double. Adjust for embedded ABI.
5948 (m68k_svr4_init_abi): Set pointer_result_regnum.
5949 (m68k_embedded_init_abi): New function.
5950 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5951 (m68k_osabi_sniffer): New function.
5952 (_initialize_m68k_tdep): Register osabi sniffer.
5953 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5954 member.
5955
5956 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5957
5958 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5959 with gdb::unique_xmalloc_ptr<char>.
5960
5961 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5962
5963 * xml-support.h (xml_fetch_another): Change type to be a
5964 function_view.
5965 (xml_process_xincludes): Remove baton parameter.
5966 (xml_fetch_content_from_file): Change baton parameter to
5967 dirname.
5968 * xml-support.c (struct xinclude_parsing_data)
5969 <xinclude_parsing_data>: Remove baton parameter.
5970 <fetcher_baton>: Remove.
5971 (xinclude_start_include): Adjust.
5972 (xml_process_xincludes): Adjust.
5973 (xml_fetch_content_from_file): Replace baton parameter with
5974 dirname.
5975 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5976 (xml_init_syscalls_info): Use a lambda.
5977 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5978 (file_read_description_xml): Use a lambda.
5979 (fetch_available_features_from_target): Change baton parameter
5980 to target_ops.
5981 (target_read_description_xml): Use a lambda.
5982 (target_fetch_description_xml): Use a lambda.
5983 (string_read_description_xml): Update.
5984
5985 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5986
5987 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5988 uses with type::endianity_is_not_default.
5989
5990 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5991
5992 * gdbtypes.h (struct type) <endianity_is_not_default,
5993 set_endianity_is_not_default>: New methods.
5994 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5995 type::endianity_is_not_default, change all write call sites to
5996 use type::set_endianity_is_not_default.
5997
5998 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
5999
6000 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
6001 uses with type::is_fixed_instance.
6002
6003 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6004
6005 * gdbtypes.h (struct type) <is_fixed_instance,
6006 set_is_fixed_instance>: New methods.
6007 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
6008 write call sites to use type::set_is_fixed_instance.
6009
6010 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6011
6012 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
6013 uses with type::is_gnu_ifunc.
6014
6015 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6016
6017 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
6018 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
6019 use type::set_is_gnu_ifunc.
6020
6021 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6022
6023 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
6024 uses with type::stub_is_supported.
6025
6026 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6027
6028 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
6029 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
6030 use type::set_stub_is_supported.
6031
6032 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6033
6034 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
6035 uses with type::is_vector.
6036
6037 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6038
6039 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
6040 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
6041 use type::set_is_vector.
6042
6043 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
6046 uses with type::has_varargs.
6047
6048 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
6051 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
6052 use type::set_has_varargs.
6053
6054 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6055
6056 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
6057 uses with type::is_prototyped.
6058
6059 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
6062 New methods.
6063 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
6064 call sites to use type::set_is_prototyped.
6065
6066 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6067
6068 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
6069 uses with type::target_is_stub.
6070
6071 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6072
6073 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
6074 New methods.
6075 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
6076 sites to use type::set_target_is_stub.
6077
6078 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6079
6080 * gdbtypes.h (TYPE_STUB): Remove, replace all
6081 uses with type::is_stub.
6082
6083 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6084
6085 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
6086 (TYPE_STUB): Use type::is_stub, change all write call sites to
6087 use type::set_is_stub.
6088
6089 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
6092 type::has_no_signedness.
6093
6094 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * gdbtypes.h (struct type) <has_no_signedness,
6097 set_has_no_signedness>: New methods.
6098 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
6099 call sites to use type::set_has_no_signedness.
6100
6101 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
6104 type::is_unsigned.
6105
6106 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
6107
6108 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
6109 methods.
6110 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
6111 sites to use type::set_is_unsigned.
6112
6113 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
6114 Adam Renquinha <arenquinha@cimeq.qc.ca>
6115
6116 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
6117 pointer and stack frame offset when unwinding.
6118
6119 2020-09-13 Pedro Alves <pedro@palves.net>
6120
6121 * NEWS: Document "-break-insert --qualified".
6122 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
6123
6124 2020-09-13 Pedro Alves <pedro@palves.net>
6125
6126 * linespec.c (classify_mtype, compare_msyms): Delete.
6127 (search_minsyms_for_name): Remove classification logic. Instead
6128 filter out trampoline symbols if we also found an external
6129 function of the same name.
6130
6131 2020-09-13 Joel Brobecker <brobecker@adacore.com>
6132
6133 * NEWS: Create a new section for the next release branch.
6134 Rename the section of the current branch, now that it has
6135 been cut.
6136
6137 2020-09-13 Joel Brobecker <brobecker@adacore.com>
6138
6139 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
6140 * version.in: Bump version to 11.0.50.DATE-git.
6141
6142 2020-09-12 Joel Brobecker <brobecker@adacore.com>
6143
6144 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
6145
6146 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
6147 Felix Willgerodt <Felix.Willgerodt@intel.com>
6148
6149 * gdbarch.sh: Added bfloat16 type.
6150 * gdbarch.c: Regenerated.
6151 * gdbarch.h: Regenerated.
6152 * gdbtypes.c (floatformats_bfloat16): New struct.
6153 (gdbtypes_post_init): Add builtin_bfloat16.
6154 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
6155 (floatformats_bfloat16): New struct.
6156 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
6157 (i386_ymm_type): Add field "v16_bfloat16"
6158 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
6159 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
6160 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
6161 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
6162 * features/i386/64bit-avx512.xml: Add bfloat16 type.
6163 * features/i386/64bit-avx512.c: Regenerated.
6164 * features/i386/64bit-sse.xml: Add bfloat16 type.
6165 * features/i386/64bit-sse.c: Regenerated.
6166
6167 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
6168
6169 * i386-tdep.c (i386_zmm_type): Fix field names.
6170 (i386_ymm_type): Fix field names.
6171
6172 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6173
6174 * breakpoint.c: Fix typo in the help message of the
6175 "set breakpoint condition-evaluation" command.
6176
6177 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6178
6179 * nbsd-nat.c: Include "nat/netbsd-nat.h".
6180 * (nbsd_nat_target::pid_to_exec_file)
6181 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
6182 (nbsd_nat_target::post_startup_inferior)
6183 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
6184 (nbsd_add_threads): Switch local code to common gdb/nat functions.
6185 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
6186 * (nbsd_thread_lister): Remove.
6187
6188 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6189
6190 * fork-inferior.c (startup_inferior): Avoid double free.
6191
6192 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6193
6194 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
6195 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6196
6197 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6198
6199 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6200 * netbsd-nat.c: Include <sys/ptrace.h>.
6201 * (netbsd_nat::enable_proc_events): Add.
6202
6203 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6204
6205 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6206 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6207 (netbsd_nat::for_each_thread): Add.
6208 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6209 "gdbsupport/common-debug.h".
6210 * (netbsd_nat::netbsd_thread_lister)
6211 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6212 (netbsd_nat::for_each_thread): Add.
6213
6214 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6215
6216 * netbsd-nat.h: Include <unistd.h>.
6217 * (netbsd_nat::pid_to_exec_file): Add.
6218 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6219 * (netbsd_nat::pid_to_exec_file) Add.
6220
6221 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6222
6223 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6224
6225 2020-09-10 Kamil Rytarowski <n54@gmx.com>
6226
6227 * netbsd-nat.h: New file.
6228 * netbsd-nat.c: Likewise.
6229
6230 2020-09-09 Tom Tromey <tromey@adacore.com>
6231
6232 * ada-lang.c (remove_extra_symbols): Do not increment when
6233 removing an element
6234
6235 2020-09-08 Tom Tromey <tromey@adacore.com>
6236
6237 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6238
6239 2020-09-08 Tom Tromey <tromey@adacore.com>
6240
6241 PR win32/25302:
6242 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6243 (gdb_bfd_init_data): New function.
6244 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6245
6246 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6247
6248 * infrun.c (fetch_inferior_event): Use
6249 `switch_to_target_no_thread` to switch the target.
6250
6251 2020-09-06 Tom Tromey <tom@tromey.com>
6252
6253 * symfile.h (dwarf2_free_objfile): Don't declare.
6254
6255 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6256
6257 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6258 to match 16 byte real/complex type generated by Flang compiler.
6259
6260 2020-09-03 Tom de Vries <tdevries@suse.de>
6261
6262 PR breakpoint/26546
6263 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6264 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6265
6266 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6267
6268 * maint.c (index_digits): New function.
6269 (struct maint_print_section_data): Remove.
6270 (print_bfd_section_info): Remove print_data parameter, add arg
6271 and index_digits.
6272 (print_objfile_section_info): Likewise.
6273 (print_bfd_section_info_maybe_relocated): Likewise (plus
6274 objfile).
6275 (maintenance_info_sections): Adjust calls.
6276
6277 2020-09-02 Tom Tromey <tromey@adacore.com>
6278
6279 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6280 for null pointers.
6281 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6282
6283 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6284
6285 * bcache.h (struct bcache) <insert>: Change type of `added` to
6286 pointer to bool.
6287 * bcache.c (bcache::insert): Likewise.
6288 * gdbtypes.c (check_types_worklist): Adjust.
6289 * psymtab.c (add_psymbol_to_bcache): Adjust.
6290
6291 2020-08-31 Kevin Buettner <kevinb@redhat.com>
6292
6293 * corelow.c (unordered_set): Include.
6294 (class core_target): Add field 'm_core_unavailable_mappings'.
6295 (core_target::build_file_mappings): Print only one warning
6296 per inaccessible file. Add unavailable/broken mappings
6297 to m_core_unavailable_mappings.
6298 (core_target::xfer_partial): Call...
6299 (core_target::xfer_memory_via_mappings): New method.
6300
6301 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6302
6303 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6304 type to bool.
6305
6306 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6307
6308 * dwarf2/read.c (struct field_info): Fix indentation.
6309
6310 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6311
6312 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6313 ordering in comment.
6314 * frame.c (frame_id_eq): Fix indentation.
6315
6316 2020-08-31 Scott Linder <scott@scottlinder.com>
6317 Simon Marchi <simon.marchi@efficios.com>
6318
6319 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6320 inline frame ids in outer frame.
6321
6322 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6323
6324 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6325 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6326 (outer_frame_id): Use FID_STACK_OUTER instead of
6327 FID_STACK_INVALID.
6328 (frame_id_p): Don't check for outer_frame_id.
6329
6330 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6331
6332 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6333 regnum/frame in value. Call allocate_value_lazy.
6334 * frame.c (frame_unwind_register_value): Use
6335 val_print_not_saved.
6336
6337 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
6338
6339 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6340
6341 2020-08-29 Pedro Alves <pedro@palves.net>
6342
6343 * progspace.c (print_program_space): Use all_inferiors. Switch to
6344 the inferior before calling target_pid_to_str.
6345
6346 2020-08-28 Tom Tromey <tom@tromey.com>
6347
6348 * xcoffread.c (xcoff_end_psymtab): Update comment.
6349 * dbxread.c (dbx_end_psymtab): Update comment.
6350
6351 2020-08-28 Tom de Vries <tdevries@suse.de>
6352
6353 PR breakpoint/26544
6354 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6355 event_location.
6356 (create_breakpoint): Same.
6357 (base_breakpoint_decode_location): Same.
6358 (bkpt_create_sals_from_location): Same.
6359 (bkpt_decode_location): Same.
6360 (bkpt_probe_create_sals_from_location): Same.
6361 (bkpt_probe_decode_location): Same.
6362 (tracepoint_create_sals_from_location): Same.
6363 (tracepoint_decode_location): Same.
6364 (tracepoint_probe_decode_location): Same.
6365 (strace_marker_create_sals_from_location): Same.
6366 (strace_marker_decode_location): Same.
6367 (create_sals_from_location_default): Same.
6368 (decode_location_default): Same.
6369 * breakpoint.h (struct breakpoint_ops): Same.
6370 (create_breakpoint): Same.
6371 * linespec.h (decode_line_full): Same.
6372 * linespec.c (decode_line_full): Same. Throw error if
6373 result.size () == 0.
6374
6375 2020-08-27 Pedro Alves <pedro@palves.net>
6376
6377 PR gdb/26524
6378 * breakpoint.c (until_break_fsm) <location_breakpoint,
6379 caller_breakpoint>: Delete fields.
6380 <breakpoints>: New field.
6381 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6382 two individual breakpoints.
6383 (until_break_fsm::should_stop): Loop over breakpoints in the
6384 breakpoint vector.
6385 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6386 vector.
6387 (until_break_command): Handle location expanding into multiple
6388 sals.
6389
6390 2020-08-27 Pedro Alves <pedro@palves.net>
6391
6392 PR gdb/26523
6393 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6394 bp_until breakpoints user-specified locations. Update intro
6395 comment.
6396
6397 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6398
6399 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6400 gdb_bfd_sections): New.
6401 * maint.c (print_bfd_section_info): Change param type to
6402 maint_print_section_data.
6403 (print_objfile_section_info): Likewise.
6404 (print_bfd_section_info_maybe_relocated): Likewise.
6405 (maintenance_info_sections): Use gdb_bfd_sections.
6406
6407 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6408
6409 * MAINTAINERS: Add ARC target and maintainer.
6410
6411 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6412
6413 * configure.tgt: ARC support for GNU/Linux.
6414 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6415 * arc-linux-tdep.c: New file.
6416 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6417 * arc-tdep.c (arc_write_pc): Use it.
6418
6419 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6420
6421 * arc-tdep.c (arc_check_for_hardware_loop): New.
6422 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6423
6424 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6425
6426 * arc-tdep.h: Include "gdbarch.h".
6427
6428 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
6429
6430 * arch/arc.h
6431 (arc_gdbarch_features): New class to stir the selection of target XML.
6432 (arc_create_target_description): Use FEATURES to choose XML target.
6433 (arc_lookup_target_description): Use arc_create_target_description
6434 to create _new_ target descriptions or return the already created
6435 ones if the FEATURES is the same.
6436 * arch/arc.c: Implementation of prototypes described above.
6437 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6438 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6439 * arc-tdep.c (*_feature_name): Make feature names consistent.
6440 (arc_register_feature): A new struct to hold information about
6441 registers of a particular target/feature.
6442 (arc_check_tdesc_feature): Check if XML provides registers in
6443 compliance with ARC_REGISTER_FEATURE structs.
6444 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6445 (determine_*_reg_feature_set): Which feature name to look for.
6446 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6447 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6448 to expected ISA enums to be used in arc_gdbarch_features structs.
6449 * features/Makefile (FEATURE_XMLFILES): Add new files.
6450 * gdb/features/arc/v1-aux.c: New file.
6451 * gdb/features/arc/v1-aux.xml: Likewise.
6452 * gdb/features/arc/v1-core.c: Likewise.
6453 * gdb/features/arc/v1-core.xml: Likewise.
6454 * gdb/features/arc/v2-aux.c: Likewise.
6455 * gdb/features/arc/v2-aux.xml: Likewise.
6456 * gdb/features/arc/v2-core.c: Likewise.
6457 * gdb/features/arc/v2-core.xml: Likewise.
6458 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6459
6460 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6461 Andrew Burgess <andrew.burgess@embecosm.com>
6462
6463 PR m2/26372
6464 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
6465 an assert. Remove single element array indexing pattern as the
6466 MULTI_SUBSCRIPT support will handle this case too.
6467
6468 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6469
6470 * value.h (valprint_check_validity): Move declaration from
6471 here...
6472 * valprint.h (valprint_check_validity): ... to here.
6473
6474 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6475
6476 * debug.h: New file.
6477 * debug.c (debug_prefixed_vprintf): New function.
6478 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6479 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6480
6481 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
6482
6483 * infrun.h (infrun_debug_printf_1): New function declaration.
6484 (infrun_debug_printf): New macro.
6485 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6486 throughout.
6487 (infrun_debug_printf): New function.
6488 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6489 (handle_jit_event): Likewise.
6490
6491 2020-08-21 Mark Wielaard <mark@klomp.org>
6492
6493 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6494
6495 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
6496
6497 * frame.c (enum class frame_id_status): New.
6498 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6499 (fprintf_frame): Update.
6500 (compute_frame_id): Set frame id status to "computing" on entry.
6501 Set it back to "not_computed" on failure and to "computed" on
6502 success.
6503 (get_frame_id): Assert the frame id is not being computed.
6504 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6505 (create_new_frame): Likewise.
6506 (frame_cleanup_after_sniffer): Update assert.
6507
6508 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * regcache.c (pid_ptid_regcache_map): New type.
6511 (target_ptid_regcache_map): Remove.
6512 (target_pid_ptid_regcache_map): New type.
6513 (regcaches): Change type to target_pid_ptid_regcache_map.
6514 (get_thread_arch_aspace_regcache): Update.
6515 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6516 case.
6517 (regcaches_size): Update.
6518 (regcache_count): Update.
6519 (registers_changed_ptid_target_pid_test): New.
6520 (_initialize_regcache): Register new test.
6521
6522 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * regcache.c (regcache_count): New.
6525 (struct regcache_test_data): New.
6526 (regcache_test_data_up): New.
6527 (populate_regcaches_for_test): New.
6528 (regcaches_test): Remove.
6529 (get_thread_arch_aspace_regcache_test): New.
6530 (registers_changed_ptid_all_test): New.
6531 (registers_changed_ptid_target_test): New.
6532 (registers_changed_ptid_target_ptid_test): New.
6533 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6534 (_initialize_regcache): Register new tests.
6535
6536 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6537
6538 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6539 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6540 gdbarch and aspace parameter. Use current inferior's aspace.
6541 Validate regcache's arch value.
6542 (regcaches_test): Update.
6543
6544 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6545
6546 * regcache.c (regcaches_test): Call registers_changed.
6547
6548 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6549
6550 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6551
6552 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6553
6554 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6555 to find the end of prologue for flang compiled binaries.
6556 * arm-tdep.c (arm_skip_prologue): Likewise.
6557 * i386-tdep.c (i386_skip_prologue): Likewise.
6558 * producer.c (producer_is_llvm): New function.
6559 (producer_parsing_tests): Added new tests for clang/flang.
6560 * producer.h (producer_is_llvm): New declaration.
6561
6562 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
6563
6564 * linux-nat.c (linux_nat_debug_printf): New function.
6565 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6566
6567 2020-08-18 Aaron Merey <amerey@redhat.com>
6568
6569 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6570 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6571 (CLIBS): Add DEBUGINFOD_LIBS.
6572
6573 2020-08-17 Sergei Trofimovich <siarheit@google.com>
6574
6575 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6576 'gdbarch_num_regs'.
6577
6578 2020-08-17 Tom Tromey <tromey@adacore.com>
6579
6580 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6581 ada_get_decoded_value returns NULL.
6582
6583 2020-08-17 Tom Tromey <tromey@adacore.com>
6584
6585 * python/py-inferior.c (infpy_search_memory): Use
6586 gdb_py_object_from_ulongest.
6587 * python/py-infevents.c (create_inferior_call_event_object)
6588 (create_memory_changed_event_object): Use
6589 gdb_py_object_from_ulongest.
6590 * python/py-linetable.c (ltpy_entry_get_pc): Use
6591 gdb_py_object_from_ulongest.
6592
6593 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6594
6595 * loc.c (class symbol_needs_eval_context): Fix indentation.
6596
6597 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6598
6599 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6600 bool.
6601
6602 2020-08-17 Tom de Vries <tdevries@suse.de>
6603
6604 PR gdb/26393
6605 * gdbtypes.c (dump_dynamic_prop): New function.
6606 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6607
6608 2020-08-15 Tom de Vries <tdevries@suse.de>
6609
6610 PR backtrace/26390
6611 * stack.c (print_frame_args): Temporarily set the selected
6612 frame to FRAME while printing the frame's arguments.
6613
6614 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6615
6616 PR breakpoints/26385
6617 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6618 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6619
6620 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6621
6622 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6623 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6624 and >= to check return value instead of == -1 and != -1.
6625
6626 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6627
6628 * utils.h (class gdb_argv) <as_array_view>: New method.
6629 * utils.c (gdb_argv_as_array_view_test): New.
6630 (_initialize_utils): Register selftest.
6631 * maint.c (maintenance_selftest): Use the new method.
6632
6633 2020-08-13 Kamil Rytarowski <n54@gmx.com>
6634
6635 * target.h (supports_dumpcore, dumpcore): New
6636 function declarations.
6637 * target.c (supports_dumpcore, dumpcore): New
6638 functions.
6639 * target-delegates.c: Rebuild.
6640 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6641 and target_dumpcore ().
6642
6643 2020-08-13 Aaron Merey <amerey@redhat.com>
6644
6645 * debuginfod-support.c: Replace global variables with user_data.
6646
6647 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6648
6649 * maint.c (maintenance_selftest): Split args and pass array_view
6650 to run_tests.
6651
6652 2020-08-12 Luis Machado <luis.machado@linaro.org>
6653
6654 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6655 type's length.
6656 Use %s and pulongest to print the length.
6657
6658 2020-08-12 Pedro Alves <palves@redhat.com>
6659
6660 * NEWS: Move "Multi-target debugging support" item to the
6661 "Changes since GDB 9" section.
6662
6663 2020-08-12 Pedro Alves <palves@redhat.com>
6664
6665 PR gdb/26336
6666 * progspace.c (program_space::remove_objfile): Invalidate the
6667 frame cache.
6668
6669 2020-08-11 Tom de Vries <tdevries@suse.de>
6670
6671 * MAINTAINERS: Mark ms1 as deleted.
6672
6673 2020-08-10 Luis Machado <luis.machado@linaro.org>
6674
6675 PR gdb/26310
6676
6677 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6678 act accordingly.
6679 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6680 movz/str/stur/stp skipping behavior.
6681
6682 2020-08-10 Luis Machado <luis.machado@linaro.org>
6683
6684 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6685 struct user_sve_header instead of struct sve_context.
6686
6687 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6688
6689 * read.h (dwarf2_fetch_die_loc_sect_off,
6690 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6691 `void *` parameter with function_view.
6692 * read.c (dwarf2_fetch_die_loc_sect_off,
6693 dwarf2_fetch_die_loc_cu_off): Likewise.
6694 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6695 (per_cu_dwarf_call): Adjust.
6696 (get_frame_address_in_block_wrapper): Remove.
6697 (indirect_synthetic_pointer): Adjust.
6698 (get_ax_pc): Remove.
6699 (dwarf2_compile_expr_to_ax): Adjust.
6700
6701 2020-08-08 Tom de Vries <tdevries@suse.de>
6702
6703 PR build/26344
6704 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6705 constructor.
6706 * regcache.c (get_thread_arch_aspace_regcache): Same.
6707
6708 2020-08-07 Tom Tromey <tromey@adacore.com>
6709
6710 * ravenscar-thread.c
6711 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6712 New method.
6713 (ravenscar_thread_target::wait): Check
6714 runtime_initialized.
6715 (ravenscar_thread_target::prepare_to_store)
6716 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6717 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6718 (ravenscar_thread_target::stopped_by_watchpoint)
6719 (ravenscar_thread_target::stopped_data_address)
6720 (ravenscar_thread_target::core_of_thread): Use
6721 scoped_restore_current_thread and
6722 set_base_thread_from_ravenscar_task.
6723
6724 2020-08-07 Tom Tromey <tromey@adacore.com>
6725
6726 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6727
6728 2020-08-07 Tom Tromey <tromey@adacore.com>
6729
6730 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6731 update_inferior_ptid before update_thread_list.
6732 (temporarily_change_regcache_ptid): New class.
6733 (ravenscar_thread_target::fetch_registers)
6734 (ravenscar_thread_target::store_registers)
6735 (ravenscar_thread_target::prepare_to_store): Use base thread when
6736 forwarding operation.
6737
6738 2020-08-07 Tom Tromey <tromey@adacore.com>
6739
6740 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6741 "is_pid" case.
6742
6743 2020-08-07 Tom Tromey <tromey@adacore.com>
6744
6745 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6746 New methods.
6747 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6748 first.
6749 (ravenscar_thread_target::add_thread): Rename from
6750 ravenscar_add_thread.
6751 (ravenscar_thread_target::update_thread_list): Use a lambda.
6752 (ravenscar_thread_target::xfer_partial): New method.
6753
6754 2020-08-07 Tom Tromey <tromey@adacore.com>
6755
6756 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6757 gdb::function_view.
6758 (iterate_over_live_ada_tasks): Change type of argument.
6759 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6760 of argument.
6761
6762 2020-08-07 Tom Tromey <tromey@adacore.com>
6763
6764 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6765 Remove.
6766 (ravenscar_thread_target::extra_thread_info): Remove.
6767 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6768 defer to target beneath for non-Ravenscar threads.
6769
6770 2020-08-07 Tom Tromey <tromey@adacore.com>
6771
6772 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6773 get_base_thread_from_ravenscar_task>: Now methods.
6774 <m_cpu_map>: New member.
6775 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6776 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6777 (ravenscar_thread_target::task_is_currently_active): Update.
6778 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6779 Now a method.
6780 (ravenscar_thread_target::add_active_thread): Put initial thread
6781 into the m_cpu_map.
6782
6783 2020-08-07 Tom Tromey <tromey@adacore.com>
6784
6785 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6786 event_ptid.
6787
6788 2020-08-07 Tom Tromey <tromey@adacore.com>
6789
6790 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6791 runtime_initialized.
6792
6793 2020-08-07 Tom Tromey <tromey@adacore.com>
6794
6795 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6796 add_active_thread.
6797 (ravenscar_thread_target::add_active_thread): Now public.
6798 (ravenscar_inferior_created): Call add_active_thread after pushing
6799 the target.
6800
6801 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6802
6803 * regcache.c (ptid_regcache_map): New type.
6804 (target_ptid_regcache_map): New type.
6805 (regcaches): Change type to target_ptid_regcache_map.
6806 (get_thread_arch_aspace_regcache): Update to regcaches' new
6807 type.
6808 (regcache_thread_ptid_changed): Likewise.
6809 (registers_changed_ptid): Likewise.
6810 (regcaches_size): Likewise.
6811 (regcaches_test): Update.
6812 (regcache_thread_ptid_changed): Update.
6813 * regcache.h (regcache_up): New type.
6814 * gdbsupport/ptid.h (hash_ptid): New struct.
6815
6816 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
6817
6818 * observable.h (thread_ptid_changed): Add parameter
6819 `process_stratum_target *`.
6820 * infrun.c (infrun_thread_ptid_changed): Add parameter
6821 `process_stratum_target *` and use it.
6822 (selftests): New namespace.
6823 (infrun_thread_ptid_changed): New function.
6824 (_initialize_infrun): Register selftest.
6825 * regcache.c (regcache_thread_ptid_changed): Add parameter
6826 `process_stratum_target *` and use it.
6827 (regcache_thread_ptid_changed): New function.
6828 (_initialize_regcache): Register selftest.
6829 * thread.c (thread_change_ptid): Pass target to
6830 thread_ptid_changed observable.
6831
6832 2020-08-06 Caroline Tice <cmtice@google.com>
6833
6834 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6835 (struct dwp_sections): Update field comments. Add loclists and
6836 rnglists fields.
6837 (struct virtual_v2_dwo_sections): Rename struct to
6838 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6839 size & offset fields for loclists and rnglists.
6840 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6841 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6842 skipping dummy type units.
6843 (create_dwp_hash_table): Update the large comment above the function to
6844 discuss Version 5 DWP files as well, with references. Update all the
6845 version checks in the function to check for version 5 as well. Add new
6846 section at the end to create dwp hash table for version 5.
6847 (create_dwp_v2_section): Rename function to
6848 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6849 Add V5 to error message text.
6850 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6851 into calls to create_dwp_v2_or_v5_section.
6852 (create_dwo_unit_in_dwp_v5): New function.
6853 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6854 check for version2; add else clause to handle version 5.
6855 (open_and_init_dwo_file): Add code to check dwarf version & only call
6856 create_debug_types_hash_table (with sections.types) if version is not 5;
6857 else call create_debug_type_hash_table, with sections.info.
6858 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6859 version 5.
6860 (dwarf2_locate_v5_dwp_sections): New function.
6861 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6862 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
6863
6864 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * regcache.h (class regcache): Remove friend
6867 registers_changed_ptid.
6868 <regcache_thread_ptid_changed>: Remove.
6869 <regcaches>: Remove.
6870 * regcache.c (regcache::regcaches): Rename to...
6871 (regcaches): ... this. Make static.
6872 (get_thread_arch_aspace_regcache): Update.
6873 (regcache::regcache_thread_ptid_changed): Rename to...
6874 (regcache_thread_ptid_changed): ... this. Update.
6875 (class regcache_access): Remove.
6876 (regcaches_test): Update.
6877 (_initialize_regcache): Update.
6878 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6879 <forward_list>.
6880
6881 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
6882
6883 * regcache.h (class regcache) <current_regcache>: Rename to...
6884 <regcaches>: ... this. Move doc here.
6885 * regcache.c (regcache::current_regcache) Rename to...
6886 (regcache::regcaches): ... this. Move doc to header.
6887 (get_thread_arch_aspace_regcache): Update.
6888 (regcache::regcache_thread_ptid_changed): Update.
6889 (registers_changed_ptid): Update.
6890 (class regcache_access) <current_regcache_size>: Rename to...
6891 <regcaches_size>: ... this.
6892 (current_regcache_test): Rename to...
6893 (regcaches_test): ... this.
6894 (_initialize_regcache): Update.
6895
6896 2020-08-06 Victor Collod <vcollod@nvidia.com>
6897
6898 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6899
6900 2020-08-05 Kevin Buettner <kevinb@redhat.com>
6901
6902 * corelow.c (core_target::build_file_mappings): Don't output
6903 null pathname in warning.
6904
6905 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6906
6907 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6908 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6909 gdb.dwarf2/dw2-single-line-discriminators.exp,
6910 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6911
6912 2020-08-05 Tom Tromey <tromey@adacore.com>
6913
6914 PR rust/26197:
6915 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6916 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6917 Fix off-by-one and type size errors in ordinary case.
6918
6919 2020-08-05 Tom de Vries <tdevries@suse.de>
6920
6921 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6922 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6923
6924 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6925
6926 * frame.h (frame_id_p): Return bool.
6927 (frame_id_artificial_p): Return bool.
6928 (frame_id_eq): Return bool.
6929 (has_stack_frames): Return bool.
6930 (get_selected_frame): Fix typo in comment.
6931 (get_frame_pc_if_available): Return bool.
6932 (get_frame_address_in_block_if_available): Return bool.
6933 (get_frame_func_if_available): Return bool.
6934 (read_frame_register_unsigned): Return bool.
6935 (get_frame_register_bytes): Return bool.
6936 (safe_frame_unwind_memory): Return bool.
6937 (deprecated_frame_register_read): Return bool.
6938 (frame_unwinder_is): Return bool.
6939 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6940 bool.
6941 <this_id::p>: Likewise.
6942 <prev_p>: Likewise.
6943 (frame_stash_add): Return bool.
6944 (get_frame_id): Use bool.
6945 (frame_id_build_special) Use bool.
6946 (frame_id_build_unavailable_stack): Use bool.
6947 (frame_id_build): Use bool.
6948 (frame_id_p): Return bool, use true/false instead of 1/0.
6949 (frame_id_artificial_p): Likewise.
6950 (frame_id_eq): Likewise.
6951 (frame_id_inner): Likewise.
6952 (get_frame_func_if_available): Likewise.
6953 (read_frame_register_unsigned): Likewise.
6954 (deprecated_frame_register_read): Likewise.
6955 (get_frame_register_bytes): Likewise.
6956 (has_stack_frames): Likewise.
6957 (inside_main_func): Likewise.
6958 (inside_entry_func): Likewise.
6959 (get_frame_pc_if_available): Likewise.
6960 (get_frame_address_in_block_if_available): Likewise.
6961 (frame_unwinder_is): Likewise.
6962 (safe_frame_unwind_memory): Likewise.
6963 (frame_unwind_arch): Likewise.
6964
6965 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6968 type to cached_copy_status.
6969 (fprintf_frame): Adjust.
6970 (get_frame_func_if_available): Adjust.
6971 (frame_cleanup_after_sniffer): Adjust.
6972
6973 2020-08-04 Mark Wielaard <mark@klomp.org>
6974
6975 * MAINTAINERS (Write After Approval): Update email address.
6976
6977 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6978
6979 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6980 dynamic_prop::const_val.
6981
6982 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6983
6984 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6985 dynamic_prop::kind.
6986
6987 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6988
6989 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6990
6991 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6992
6993 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6994
6995 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6996 Jose E. Marchesi <jose.marchesi@oracle.com>
6997
6998 * configure.tgt: Add entry for bpf-*-*.
6999 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
7000 (ALLDEPFILES): Add bpf-tdep.c.
7001 * bpf-tdep.c: New file.
7002 * MAINTAINERS: Add bpf target and maintainer.
7003 * NEWS: Mention the support for the new target.
7004
7005 2020-08-04 Tom de Vries <tdevries@suse.de>
7006
7007 PR symtab/23270
7008 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
7009 Error.
7010
7011 2020-08-03 John Baldwin <jhb@FreeBSD.org>
7012
7013 * syscalls/freebsd.xml: Regenerate.
7014
7015 2020-08-03 John Baldwin <jhb@FreeBSD.org>
7016
7017 * syscalls/update-freebsd.sh: Fix usage and year range.
7018
7019 2020-08-03 Tom de Vries <tdevries@suse.de>
7020
7021 PR symtab/26333
7022 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
7023 DW_LNE_lo_user/DW_LNE_hi_user range.
7024
7025 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
7026
7027 PR ada/26318
7028 * ada-lang.c (ada_modulus): Return 0 if property is not of const
7029 kind.
7030
7031 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7032
7033 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
7034
7035 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7036
7037 * breakpoint.c (set_breakpoint_condition): Update the condition
7038 expressions after checking that the input condition string parses
7039 successfully and does not contain junk at the end.
7040
7041 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7042
7043 * breakpoint.c (set_breakpoint_condition): Update the
7044 condition string after parsing the new condition successfully.
7045
7046 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7047
7048 * proc-api.c (_STRUCTURED_PROC): Don't define.
7049 * proc-events.c: Likewise.
7050 * proc-flags.c: Likewise.
7051 * proc-why.c: Likewise.
7052 * procfs.c: Likewise.
7053
7054 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
7055 * configure, config.in: Regenerate.
7056
7057 2020-07-30 Tom de Vries <tdevries@suse.de>
7058
7059 PR build/26320
7060 * ui-style.h (struct ui_file_style::color): Wrap m_value and
7061 m_red/m_green/m_blue in a union.
7062
7063 2020-07-29 Tom de Vries <tdevries@suse.de>
7064
7065 PR tdep/26280
7066 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
7067
7068 2020-07-28 Tom Tromey <tromey@adacore.com>
7069
7070 PR symtab/26270:
7071 * symtab.h (find_pc_partial_function_sym): Declare.
7072 * cli/cli-cmds.c (disassemble_command): Use
7073 find_pc_partial_function_sym. Check asm_demangle.
7074 * blockframe.c (cache_pc_function_sym): New global.
7075 (cache_pc_function_name): Remove.
7076 (clear_pc_function_cache): Update.
7077 (find_pc_partial_function_sym): New function, from
7078 find_pc_partial_function.
7079 (find_pc_partial_function): Rewrite using
7080 find_pc_partial_function_sym.
7081
7082 2020-07-28 Tom Tromey <tromey@adacore.com>
7083
7084 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
7085 help. Add usage.
7086
7087 2020-07-28 Tom Tromey <tromey@adacore.com>
7088
7089 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
7090 <DW_OP_GNU_variable_value>: Cast to address type.
7091
7092 2020-07-28 Kamil Rytarowski <n54@gmx.com>
7093
7094 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
7095 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
7096 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
7097 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
7098 (nbsd_get_siginfo_type): New.
7099 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7100 (_initialize_nbsd_tdep): New.
7101
7102 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
7103
7104 PR binutils/26301
7105 * configure: Regenerated.
7106
7107 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
7108
7109 PR binutils/26301
7110 * configure: Regenerated.
7111
7112 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7113
7114 * python/py-frame.c: Remove 'user-regs.h' include.
7115 (frapy_read_register): Rewrite to make use of
7116 gdbpy_parse_register_id.
7117 * python/py-registers.c (gdbpy_parse_register_id): New function,
7118 moved here from python/py-unwind.c. Updated the return type, and
7119 also accepts register descriptor objects.
7120 * python/py-unwind.c: Remove 'user-regs.h' include.
7121 (pyuw_parse_register_id): Moved to python/py-registers.c.
7122 (unwind_infopy_add_saved_register): Update to use
7123 gdbpy_parse_register_id.
7124 (pending_framepy_read_register): Likewise.
7125 * python/python-internal.h (gdbpy_parse_register_id): Declare.
7126
7127 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7128
7129 * python/py-registers.c: Add 'user-regs.h' include.
7130 (register_descriptor_iter_find): New function.
7131 (register_descriptor_iterator_object_methods): New static global
7132 methods array.
7133 (register_descriptor_iterator_object_type): Add pointer to methods
7134 array.
7135
7136 2020-07-27 John Baldwin <jhb@FreeBSD.org>
7137
7138 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
7139 for all architectures on FreeBSD 11.3 and later.
7140
7141 2020-07-27 Tom Tromey <tromey@adacore.com>
7142
7143 * gcore.h (load_corefile): Don't declare.
7144
7145 2020-07-27 Tom de Vries <tdevries@suse.de>
7146
7147 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
7148 * config.in: Regenerate.
7149 * configure: Regenerate.
7150
7151 2020-07-26 Eli Zaretskii <eliz@gnu.org>
7152
7153 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
7154 ws2tcpip.h. When checking whether socklen_t type is defined, use
7155 ws2tcpip.h if it is available and sys/socket.h isn't.
7156 * configure: Regenerate.
7157 * config.in: Regenerate.
7158
7159 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
7160
7161 PR fortran/23051
7162 PR fortran/26139
7163 * valops.c (value_ind): Pass address to
7164 readjust_indirect_value_type.
7165 * value.c (readjust_indirect_value_type): Make parameter
7166 non-const, and add extra address parameter. Resolve original type
7167 before using it.
7168 * value.h (readjust_indirect_value_type): Update function
7169 signature and comment.
7170
7171 2020-07-25 Tom de Vries <tdevries@suse.de>
7172
7173 PR symtab/26243
7174 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
7175 entries.
7176
7177 2020-07-24 Aaron Merey <amerey@redhat.com>
7178
7179 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
7180 * configure: Rebuild.
7181
7182 2020-07-23 Kevin Buettner <kevinb@redhat.com>
7183
7184 PR corefiles/26294
7185 * corelow.c (_initialize_corelow): Add period to help text
7186 for "maintenance print core-file-backed-mappings".
7187
7188 2020-07-23 Pedro Alves <pedro@palves.net>
7189
7190 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
7191 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
7192 meanwhile.
7193 * frame.c (frame_cache_generation, get_frame_cache_generation):
7194 New.
7195 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7196 (get_prev_frame_if_no_cycle): On exception, don't touch
7197 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7198 * frame.h (get_frame_cache_generation): Declare.
7199
7200 2020-07-23 Tom de Vries <tdevries@suse.de>
7201
7202 PR tui/26282
7203 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7204 New default constructor.
7205
7206 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7207
7208 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7209 exclude non-statement entries.
7210
7211 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7212
7213 * NEWS (New commands): Mention new command
7214 "maintenance print core-file-backed-mappings".
7215
7216 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7217
7218 * corelow.c (gdbcmd.h): Include.
7219 (core_target::info_proc_mappings): New method.
7220 (get_current_core_target): New function.
7221 (maintenance_print_core_file_backed_mappings): New function.
7222 (_initialize_corelow): Add core-file-backed-mappings to
7223 "maint print" commands.
7224
7225 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7226
7227 * linux-tdep.c (dump_note_entry_p): New function.
7228 (linux_dump_mapping_p_ftype): New typedef.
7229 (linux_find_memory_regions_full): Add new parameter,
7230 should_dump_mapping_p.
7231 (linux_find_memory_regions): Adjust call to
7232 linux_find_memory_regions_full.
7233 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7234 call to linux_find_memory_regions_full.
7235
7236 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7237
7238 * corelow.c (solist.h, unordered_map): Include.
7239 (class core_target): Add field m_core_file_mappings and
7240 method build_file_mappings.
7241 (core_target::core_target): Call build_file_mappings.
7242 (core_target::~core_target): Free memory associated with
7243 m_core_file_mappings.
7244 (core_target::build_file_mappings): New method.
7245 (core_target::xfer_partial): Use m_core_file_mappings
7246 for memory transfers.
7247 * linux-tdep.c (linux_read_core_file_mappings): New
7248 function.
7249 (linux_core_info_proc_mappings): Rewrite to use
7250 linux_read_core_file_mappings.
7251 (linux_init_abi): Register linux_read_core_file_mappings.
7252
7253 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7254
7255 * arch-utils.c (default_read_core_file_mappings): New function.
7256 * arch-utils.c (default_read_core_file_mappings): Declare.
7257 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7258 * gdbarch.h, gdbarch.c: Regenerate.
7259
7260 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7261
7262 PR corefiles/25631
7263 * corelow.c (core_target:xfer_partial): Revise
7264 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7265 case after first checking the stratum beneath the core
7266 target.
7267 (has_all_memory): Return true.
7268 * target.c (raw_memory_xfer_partial): Revise comment
7269 regarding use of has_all_memory.
7270
7271 2020-07-22 Kevin Buettner <kevinb@redhat.com>
7272
7273 * exec.h (section_table_xfer_memory): Revise declaration,
7274 replacing section name parameter with an optional callback
7275 predicate.
7276 * exec.c (section_table_xfer_memory): Likewise.
7277 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7278 of section_table_xfer_memory.
7279
7280 2020-07-22 Tom Tromey <tromey@adacore.com>
7281
7282 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7283 lookup_symbol_search_name.
7284
7285 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7286
7287 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7288 redundant local variable.
7289 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7290 reference, not pointer, update code accordingly.
7291
7292 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7293 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7294
7295 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7296 * jit.c (jit_breakpoint_re_set_internal): Use the
7297 `skip_jit_symbol_lookup` field.
7298
7299 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7300 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7301
7302 * jit.c (jit_read_descriptor): Define the descriptor address once,
7303 use twice.
7304 (jit_breakpoint_deleted): Move the declaration of the loop variable
7305 `iter` into the loop header.
7306 (jit_breakpoint_re_set_internal): Move the declaration of the local
7307 variable `objf_data` to the first point of definition.
7308 (jit_event_handler): Move the declaration of local variables
7309 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7310 Rename `objf` to `jited`.
7311
7312 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7313
7314 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7315 Remove.
7316 * jit.c (get_jiter_objfile_data): Update.
7317
7318 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7319 Simon Marchi <simon.marchi@polymtl.ca>
7320
7321 * jit.c (struct jit_program_space_data): Remove.
7322 (jit_program_space_key): Remove.
7323 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7324 stuff.
7325 (get_jit_program_space_data): Remove.
7326 (jit_breakpoint_deleted): Iterate on all of the program space's
7327 objfiles.
7328 (jit_inferior_init): Likewise.
7329 (jit_breakpoint_re_set_internal): Likewise. Also change return
7330 type to void.
7331 (jit_breakpoint_re_set): Pass current_program_space to
7332 jit_breakpoint_re_set_internal.
7333
7334 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7335
7336 * jit.h (struct jiter_objfile_data) <cached_code_address,
7337 jit_breakpoint>: Move to here from ...
7338 * jit.c (jit_program_space_data): ... here.
7339 (jiter_objfile_data::~jiter_objfile_data): Update.
7340 (jit_breakpoint_deleted): Update.
7341 (jit_breakpoint_re_set_internal): Update.
7342
7343 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7344
7345 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7346 checks.
7347 (jit_read_descriptor): Remove NULL check.
7348 (jit_event_handler): Add an assertion.
7349
7350 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7351
7352 * jit.h (struct jit_objfile_data): Split into...
7353 (struct jiter_objfile_data): ... this ...
7354 (struct jited_objfile_data): ... and this.
7355 * objfiles.h (struct objfile) <jit_data>: Remove.
7356 <jiter_data, jited_data>: New fields.
7357 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7358 (jiter_objfile_data::~jiter_objfile_data): ... this.
7359 (get_jit_objfile_data): Rename to ...
7360 (get_jiter_objfile_data): ... this.
7361 (add_objfile_entry): Update.
7362 (jit_read_descriptor): Use get_jiter_objfile_data.
7363 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7364 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7365 (jit_inferior_exit_hook): Use objfile's jited_data field.
7366
7367 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7368
7369 * jit.h: Forward-declare `struct minimal_symbol`.
7370 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7371 constructor, destructor, and an objfile* field.
7372 * jit.c (jit_objfile_data): Remove.
7373 (struct jit_objfile_data): Migrate from here to jit.h.
7374 (jit_objfile_data::~jit_objfile_data): New destructor
7375 implementation with code moved from free_objfile_data.
7376 (free_objfile_data): Delete.
7377 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7378 (jit_find_objf_with_entry_addr): Ditto.
7379 (jit_inferior_exit_hook): Ditto.
7380 (_initialize_jit): Remove the call to
7381 register_objfile_data_with_cleanup.
7382 * objfiles.h (struct objfile) <jit_data>: New field.
7383
7384 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7385
7386 * jit.h: Forward-declare `struct objfile`.
7387 (jit_event_handler): Add a second parameter, the JITer objfile.
7388 * jit.c (jit_read_descriptor): Change the signature to take the
7389 JITer objfile as an argument instead of the jit_program_space_data.
7390 (jit_inferior_init): Update the call to jit_read_descriptor.
7391 (jit_event_handler): Use the new JITer objfile argument when calling
7392 jit_read_descriptor.
7393 * breakpoint.c (handle_jit_event): Update the call to
7394 jit_event_handler to pass the JITer objfile.
7395
7396 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7397
7398 * gdbarch.c: Regenerate.
7399 * gdbarch.h: Regenerate.
7400 * gdbarch.sh (handle_segmentation_fault): Remove method.
7401 * infrun.c (handle_segmentation_fault): Remove.
7402 (print_signal_received_reason): Remove call to
7403 handle_segmentation_fault.
7404
7405 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7406
7407 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7408 Rename to sparc64_linux_report_signal_info and add siggnal
7409 argument.
7410 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7411 instead of sparc64_linux_handle_segmentation_fault.
7412
7413 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7414
7415 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7416 i386_linux_report_signal_info instead of
7417 i386_linux_handle_segmentation_fault.
7418 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7419 to i386_linux_report_signal_info and add siggnal argument.
7420 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7421 of i386_linux_handle_segmentation_fault.
7422 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7423 to i386_linux_report_signal_info and add siggnal argument.
7424
7425 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7426
7427 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7428 hook if present.
7429
7430 2020-07-21 John Baldwin <jhb@FreeBSD.org>
7431
7432 * gdbarch.c: Regenerate.
7433 * gdbarch.h: Regenerate.
7434 * gdbarch.sh (report_signal_info): New method.
7435 * infrun.c (print_signal_received_reason): Invoke gdbarch
7436 report_signal_info hook if present.
7437
7438 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7439
7440 * python/py-registers.c : Add 'unordered_map' include.
7441 (gdbpy_new_reggroup): Renamed to...
7442 (gdbpy_get_reggroup): ...this. Update to only create register
7443 group descriptors when needed.
7444 (gdbpy_reggroup_iter_next): Update.
7445
7446 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7447
7448 * python/py-registers.c (gdbpy_register_object_data): New static
7449 global.
7450 (gdbpy_register_object_data_init): New function.
7451 (gdbpy_new_register_descriptor): Renamed to...
7452 (gdbpy_get_register_descriptor): ...this, and update to reuse
7453 existing register descriptors where possible.
7454 (gdbpy_register_descriptor_iter_next): Update.
7455 (gdbpy_initialize_registers): Register new gdbarch data.
7456
7457 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
7458
7459 * linux-nat.c (stopped_pids): Make static.
7460
7461 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7462
7463 PR ada/26235
7464 * gdbtypes.c (ada_discrete_type_low_bound,
7465 ada_discrete_type_high_bound): Handle undefined bounds.
7466
7467 2020-07-21 Kamil Rytarowski <n54@gmx.com>
7468
7469 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7470 declaration.
7471 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7472 function.
7473
7474 2020-07-20 John Baldwin <jhb@FreeBSD.org>
7475
7476 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7477 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7478 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7479 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7480 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7481 method.
7482
7483 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7484
7485 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7486 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7487 which are deprecated in Guile 3.0.
7488 * configure.ac (try_guile_versions): Add "guile-3.0".
7489 * configure (try_guile_versions): Regenerate.
7490 * NEWS: Update entry.
7491
7492 2020-07-20 Ludovic Courtès <ludo@gnu.org>
7493 Doug Evans <dje@google.com>
7494
7495 PR gdb/21104
7496 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7497 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7498 USING_GUILE_BEFORE_2_2.
7499 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7500 Change type to 'scm_t_port_type *'.
7501 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7502 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7503 parameter and honor it. Update callers.
7504 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7505 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7506 functions.
7507 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7508 USING_GUILE_BEFORE_2_2.
7509 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7510 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7511 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7512 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7513 and 'SCM_PORT_TYPE'.
7514 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7515 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7516 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7517 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7518 [!USING_GUILE_BEFORE_2_2]: New functions.
7519 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7520 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7521 'gdbscm_memory_port_read'.
7522 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7523 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7524 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7525 function.
7526 (ioscm_init_memory_port): Remove.
7527 (ioscm_init_memory_port_stream): New function
7528 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7529 function.
7530 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7531 Return scm_from_uint (0).
7532 (gdbscm_set_memory_port_read_buffer_size_x)
7533 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7534 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7535 Return scm_from_uint (0).
7536 (gdbscm_set_memory_port_write_buffer_size_x)
7537 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7538 * configure.ac (try_guile_versions): Add "guile-2.2".
7539 * configure: Regenerate.
7540 * NEWS: Add entry.
7541
7542 2020-07-18 Tom Tromey <tom@tromey.com>
7543
7544 * linux-nat.c (linux_multi_process): Remove.
7545 (linux_nat_target::supports_multi_process): Return true.
7546
7547 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7548
7549 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7550 (riscv_lookup_target_description): Return pointer out of
7551 unique_ptr.
7552 * target-descriptions.c (allocate_target_description): Add
7553 comment.
7554 (target_desc_deleter::operator()): Likewise.
7555 * target-descriptions.h (struct target_desc_deleter): Moved to
7556 gdbsupport/tdesc.h.
7557 (target_desc_up): Likewise.
7558
7559 2020-07-17 Tom Tromey <tromey@adacore.com>
7560
7561 * linux-nat.c (linux_nat_target::supports_non_stop)
7562 (linux_nat_target::always_non_stop_p): Use "true".
7563 (linux_nat_target::supports_disable_randomization): Use "true" and
7564 "false".
7565
7566 2020-07-16 Caroline Tice <cmtice@google.com>
7567
7568 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7569 (RNGLIST_HEADER_SIZE64): New constant definition.
7570 (struct dwop_section_names): Add rnglists_dwo.
7571 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7572 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7573 (struct dwo_sections): Add rnglists field.
7574 (read_attribut_reprocess): Add tag parameter.
7575 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7576 (cu_debug_rnglists_section): New function (decl & definition).
7577 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7578 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7579 die whose range is being checked; get rnglist section from
7580 cu_debug_rnglists_section, to get from either objfile or dwo file as
7581 appropriate. Add cases for DW_RLE_base_addressx,
7582 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7583 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7584 test inside if-condition and updating complaint message.
7585 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7586 dwarf2_rnglists_process.
7587 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7588 dwarf2_ranges_process.
7589 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7590 need_ranges_base and update comment appropriately. Also pass die tag
7591 to dwarf2_ranges_read.
7592 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7593 need_ranges_base and update comment appropriately. Also pass die tag
7594 to dwarf2_ranges_process.
7595 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7596 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7597 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7598 need_ranges_base and update comment appropriately. Also pass die tag
7599 to read_attribute_reprocess and dwarf2_ranges_read.
7600 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7601 and update function comment appropriately.
7602 (read_loclist_index): Call read_loclists_rnglists_header instead of
7603 read_loclist_header.
7604 (read_rnglist_index): New function.
7605 (read_attribute_reprocess): Add tag parameter. Add code for
7606 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7607 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7608
7609 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7610
7611 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7612 being resolved.
7613
7614 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7615
7616 * arch-utils.c (show_architecture): Update formatting of messages.
7617
7618 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * gdbtypes.h (struct type) <bounds>: Handle array and string
7621 types.
7622 * ada-lang.c (assign_aggregate): Use type::bounds on
7623 array/string type.
7624 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7625 * c-varobj.c (c_number_of_children): Likewise.
7626 (c_describe_child): Likewise.
7627 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7628 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7629 (f_type_print_base): Likewise.
7630 * f-valprint.c (f77_array_offset_tbl): Likewise.
7631 (f77_get_upperbound): Likewise.
7632 (f77_print_array_1): Likewise.
7633 * guile/scm-type.c (gdbscm_type_range): Likewise.
7634 * m2-typeprint.c (m2_array): Likewise.
7635 (m2_is_long_set_of_type): Likewise.
7636 * m2-valprint.c (get_long_set_bounds): Likewise.
7637 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7638 * python/py-type.c (typy_range): Likewise.
7639 * rust-lang.c (rust_internal_print_type): Likewise.
7640 * type-stack.c (type_stack::follow_types): Likewise.
7641 * valarith.c (value_subscripted_rvalue): Likewise.
7642 * valops.c (value_cast): Likewise.
7643
7644 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7645
7646 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7647 callers to use the equivalent accessor methods.
7648
7649 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7650
7651 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7652 (struct type) <bit_stride>: New method.
7653 (TYPE_BIT_STRIDE): Remove.
7654 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7655
7656 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7659 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7660 callers to use the equivalent accessor methods instead.
7661
7662 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7665 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7666 callers to use the equivalent accessor methods instead.
7667
7668 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7669
7670 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7671 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7672 to use dynamic_prop::kind.
7673
7674 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7675
7676 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7677 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7678 to get the bound property's kind and check against
7679 PROP_UNDEFINED.
7680
7681 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7684 all callers to use type::range_bounds followed by
7685 dynamic_prop::{low,high}.
7686
7687 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7688
7689 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7690 const_val, set_const_val, baton, set_locexpr, set_loclist,
7691 set_addr_offset, variant_parts, set_variant_parts,
7692 original_type, set_original_type>: New methods.
7693 <kind>: Rename to...
7694 <m_kind>: ... this. Update all users to use the new methods
7695 instead.
7696 <data>: Rename to...
7697 <m_data>: ... this. Update all users to use the new methods
7698 instead.
7699
7700 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7701
7702 * gdbtypes.c (get_discrete_bounds): Return failure if
7703 the range type's bounds are not both defined and constant
7704 values.
7705 (get_array_bounds): Update comment. Remove undefined bound check.
7706
7707 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7708
7709 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7710 the type::bounds method directly.
7711
7712 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
7713
7714 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7715 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7716 are used to set the range type's bounds to use set_bounds.
7717
7718 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7719
7720 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7721
7722 2020-07-10 Pedro Alves <pedro@palves.net>
7723
7724 * gdbthread.h (inferior_ref): Define.
7725 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7726 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7727 * thread.c
7728 (scoped_restore_current_thread::restore):
7729 Adjust to gdb::ref_ptr.
7730 (scoped_restore_current_thread::~scoped_restore_current_thread):
7731 Remove manual decref handling.
7732 (scoped_restore_current_thread::scoped_restore_current_thread):
7733 Adjust to use
7734 inferior_ref::new_reference/thread_info_ref::new_reference.
7735 Incref the thread before calling get_frame_id instead of after.
7736 Let TARGET_CLOSE_ERROR propagate.
7737
7738 2020-07-10 Pedro Alves <pedro@palves.net>
7739
7740 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7741 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7742 NOT_AVAILABLE_ERROR.
7743 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7744 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7745
7746 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7747 Pedro Alves <pedro@palves.net>
7748
7749 PR gdb/26199
7750 * infrun.c (threads_are_resumed_pending_p): Delete.
7751 (do_target_wait): Remove threads_are_executing and
7752 threads_are_resumed_pending_p checks from the inferior_matches
7753 lambda. Update comments.
7754
7755 2020-07-10 Pedro Alves <pedro@palves.net>
7756
7757 PR gdb/26199
7758 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7759 executing threads.
7760
7761 2020-07-10 Pedro Alves <pedro@palves.net>
7762
7763 PR gdb/26199
7764 * infrun.c (handle_no_resumed): Handle multiple targets.
7765
7766 2020-07-10 Pedro Alves <pedro@palves.net>
7767
7768 PR gdb/26199
7769 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7770 target_is_async_p.
7771
7772 2020-07-10 Pedro Alves <pedro@palves.net>
7773
7774 PR gdb/26199
7775 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7776 threads, not all threads.
7777
7778 2020-07-10 Pedro Alves <pedro@palves.net>
7779
7780 PR gdb/26199
7781 * remote.c (remote_target::open_1): Pass remote target pointer as
7782 data to create_async_event_handler.
7783 (remote_async_inferior_event_handler): Mark async event handler
7784 before returning if the remote target still has either pending
7785 events or unacknowledged notifications.
7786
7787 2020-07-10 John Baldwin <jhb@FreeBSD.org>
7788
7789 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7790 declaration.
7791 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7792 function.
7793
7794 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7795
7796 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7797 inferior_ptid.
7798
7799 2020-07-09 John Baldwin <jhb@FreeBSD.org>
7800
7801 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7802 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7803 AT_FREEBSD_PS_STRINGS.
7804
7805 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
7806
7807 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7808 of debugfile path on Windows.
7809
7810 2020-07-08 John Baldwin <jhb@FreeBSD.org>
7811
7812 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7813 argument to 'data'.
7814
7815 2020-07-08 Tom Tromey <tromey@adacore.com>
7816
7817 * ada-lang.c (ada_exception_message_1): Use read_memory.
7818
7819 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7820
7821 PR python/22748
7822 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7823 special handling for inline frames.
7824 * findvar.c (value_of_register_lazy): Skip inline frames when
7825 creating lazy register values.
7826 * frame.c (frame_id_computed_p): Delete definition.
7827 * frame.h (frame_id_computed_p): Delete declaration.
7828
7829 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7830
7831 * NEWS: Mention additions to Python API.
7832 * python/py-arch.c (archpy_register_groups): New function.
7833 (arch_object_methods): Add 'register_groups' method.
7834 * python/py-registers.c (reggroup_iterator_object): New struct.
7835 (reggroup_object): New struct.
7836 (gdbpy_new_reggroup): New function.
7837 (gdbpy_reggroup_to_string): New function.
7838 (gdbpy_reggroup_name): New function.
7839 (gdbpy_reggroup_iter): New function.
7840 (gdbpy_reggroup_iter_next): New function.
7841 (gdbpy_new_reggroup_iterator): New function
7842 (gdbpy_initialize_registers): Register new types.
7843 (reggroup_iterator_object_type): Define new Python type.
7844 (gdbpy_reggroup_getset): New static global.
7845 (reggroup_object_type): Define new Python type.
7846 * python/python-internal.h
7847
7848 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7849
7850 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7851 * python/py-arch.c (archpy_registers): New function.
7852 (arch_object_methods): Add 'registers' method.
7853 * python/py-registers.c: New file.
7854 * python/python-internal.h
7855 (gdbpy_new_register_descriptor_iterator): Declare.
7856 (gdbpy_initialize_registers): Declare.
7857 * python/python.c (do_start_initialization): Call
7858 gdbpy_initialize_registers.
7859 * NEWS: Mention additions to the Python API.
7860
7861 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7862
7863 * NEWS: Mention new Python API method.
7864 * python/py-unwind.c (pending_framepy_architecture): New function.
7865 (pending_frame_object_methods): Add architecture method.
7866
7867 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7868
7869 * gdbarch.c: Regenerate.
7870 * gdbarch.h: Regenerate.
7871 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7872 (gdbarch_data): Use internal_error for the case where
7873 deprecated_set_gdbarch_data was originally needed.
7874 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7875 and use passed in obstack.
7876 (libunwind_frame_set_descr): Should no longer get back NULL from
7877 gdbarch_data.
7878 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7879 type.
7880 * user-regs.c (user_regs_init): Update parameters, and use passed
7881 in obstack.
7882 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7883 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7884
7885 2020-07-06 Tom de Vries <tdevries@suse.de>
7886
7887 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7888 End-Of-Sequence in lte_is_less_than.
7889 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7890 "gdb: Don't reorder line table entries too much when sorting".
7891
7892 2020-07-06 Tom de Vries <tdevries@suse.de>
7893
7894 PR tui/26205
7895 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7896
7897 2020-07-05 Tom de Vries <tdevries@suse.de>
7898
7899 PR build/26187
7900 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7901 std::uncaught_exceptions instead of deprecated
7902 std::uncaught_exception.
7903
7904 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7905
7906 * macroexp.h (macro_stringify): Return
7907 gdb::unique_xmalloc_ptr<char>.
7908 * macroexp.c (macro_stringify): Likewise.
7909 * macrotab.c (fixup_definition): Update.
7910
7911 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7912
7913 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7914 (lex_one_token): Update.
7915 * macroexp.c (struct macro_buffer) <release>: Return
7916 gdb::unique_xmalloc_ptr<char>.
7917 (macro_stringify): Update.
7918 (macro_expand): Update.
7919 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7920 * macroexp.h (macro_expand_next): Likewise.
7921
7922 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
7923
7924 * macroexp.h (macro_lookup_ftype): Remove.
7925 (macro_expand, macro_expand_once, macro_expand_next): Remove
7926 lookup function parameters, add scope parameter.
7927 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7928 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7929 * macroscope.h (standard_macro_lookup): Change parameter type
7930 to macro_scope.
7931 * macroscope.c (standard_macro_lookup): Likewise.
7932 * c-exp.y (lex_one_token): Update.
7933 * macrocmd.c (macro_expand_command): Likewise.
7934 (macro_expand_once_command): Likewise.
7935
7936 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7937
7938 * inf-loop.c (inferior_event_handler): Remove client_data param.
7939 * inf-loop.h (inferior_event_handler): Likewise.
7940 * infcmd.c (step_1): Adjust.
7941 * infrun.c (proceed): Adjust.
7942 (fetch_inferior_event): Remove client_data param.
7943 (infrun_async_inferior_event_handler): Adjust.
7944 * infrun.h (fetch_inferior_event): Remove `void *` param.
7945 * linux-nat.c (handle_target_event): Adjust.
7946 * record-btrace.c (record_btrace_handle_async_inferior_event):
7947 Adjust.
7948 * record-full.c (record_full_async_inferior_event_handler):
7949 Adjust.
7950 * remote.c (remote_async_inferior_event_handler): Adjust.
7951
7952 2020-07-01 Tom Tromey <tom@tromey.com>
7953
7954 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7955 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7956
7957 2020-07-01 Tom Tromey <tom@tromey.com>
7958
7959 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7960 tui_gen_win_info.
7961 (tui_win_info::make_window): Merge with
7962 tui_gen_win_info::make_window.
7963 (tui_win_info::make_visible): Move from tui_gen_win_info.
7964 * tui/tui-win.c (tui_win_info::max_width): Move from
7965 tui_gen_win_info.
7966 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7967 type.
7968 <window_factory>: Likewise.
7969 * tui/tui-layout.c (tui_win_info::resize): Move from
7970 tui_gen_win_info.
7971 (make_standard_window): Change return type.
7972 (get_locator_window, tui_get_window_by_name): Likewise.
7973 (tui_layout_window::apply): Remove a cast.
7974 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7975 (struct tui_win_info): Merge with tui_gen_win_info.
7976 (struct tui_gen_win_info): Remove.
7977
7978 2020-07-01 Tom Tromey <tom@tromey.com>
7979
7980 * tui/tui-stack.h (struct tui_locator_window): Derive from
7981 tui_win_info.
7982 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7983 <can_box>: New method.
7984
7985 2020-07-01 Tom Tromey <tom@tromey.com>
7986
7987 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7988
7989 2020-07-01 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-regs.c (tui_data_window::display_registers_from)
7992 (tui_data_window::display_registers_from)
7993 (tui_data_window::first_data_item_displayed)
7994 (tui_data_window::delete_data_content_windows): Update.
7995 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7996 Remove.
7997 (tui_data_window::check_register_values): Update.
7998 (tui_data_item_window::rerender): Add parameters. Update.
7999 (tui_data_item_window::refresh_window): Remove.
8000 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
8001 virtual.
8002 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
8003 tui_gen_win_info.
8004 <refresh_window, max_height, min_height>: Remove.
8005 <rerender>: Add parameters.
8006 <x, y, visible>: New members.
8007 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
8008 <m_item_width>: New member.
8009
8010 2020-07-01 Tom Tromey <tom@tromey.com>
8011
8012 * tui/tui-regs.c (tui_data_window::show_register_group)
8013 (tui_data_window::check_register_values): Update.
8014 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
8015 from item_no.
8016
8017 2020-07-01 Tom Tromey <tom@tromey.com>
8018
8019 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
8020 useless "if".
8021
8022 2020-07-01 Tom Tromey <tom@tromey.com>
8023
8024 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
8025 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
8026
8027 2020-07-01 Tom Tromey <tom@tromey.com>
8028
8029 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
8030 * tui/tui-winsource.h (enum tui_line_or_address_kind)
8031 (struct tui_line_or_address): Move from tui-data.h.
8032 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
8033 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
8034 (tui_cmd_window, tui_source_window_base, tui_source_window)
8035 (tui_disasm_window): Don't declare.
8036 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
8037 to tui-winsource.h.
8038 (SINGLE_KEY): Move to tui-stack.c.
8039
8040 2020-07-01 Tom Tromey <tom@tromey.com>
8041
8042 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
8043 std::string.
8044 * tui/tui-regs.c (class tab_expansion_file): New.
8045 (tab_expansion_file::write): New method.
8046 (tui_register_format): Change return type. Use
8047 tab_expansion_file.
8048 (tui_get_register, tui_data_window::display_registers_from)
8049 (tui_data_item_window::rerender): Update.
8050 * tui/tui-io.h (tui_expand_tabs): Don't declare.
8051 * tui/tui-io.c (tui_expand_tabs): Remove.
8052
8053 2020-07-01 Tom Tromey <tom@tromey.com>
8054
8055 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
8056
8057 2020-07-01 Fangrui Song <maskray@google.com>
8058
8059 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
8060
8061 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8062
8063 * dwarf2/read.c (set_die_type): Removed conditions to restrict
8064 forms for DW_AT_associated and DW_AT_allocated attributes,
8065 which is already checked in function attr_to_dynamic_prop.
8066
8067 2020-06-30 Tom Tromey <tromey@adacore.com>
8068
8069 * dwarf2/read.c (quirk_rust_enum): Correctly call
8070 alloc_rust_variant for default-less enum.
8071
8072 2020-06-30 Tom Tromey <tromey@adacore.com>
8073
8074 PR build/26183:
8075 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
8076 gdb::to_string.
8077
8078 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
8079
8080 * gdbarch.sh (displaced_step_copy_insn): Update doc.
8081 * gdbarch.h: Re-generate.
8082
8083 2020-06-28 Tom Tromey <tom@tromey.com>
8084
8085 * command.h (cmd_types): Remove.
8086 (cmd_type): Don't declare.
8087 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
8088 typedef.
8089 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
8090 * cli/cli-decode.c (cmd_type): Remove.
8091
8092 2020-06-27 Pedro Alves <palves@redhat.com>
8093
8094 * fork-child.c (prefork_hook): Adjust.
8095 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
8096 Delete.
8097 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
8098 * inferior.c (inferior::set_tty, inferior::tty): New methods.
8099 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
8100 Remove declarations.
8101 (struct inferior) <set_tty, tty>: New methods.
8102 (struct inferior) <terminal>: Rename to ...
8103 (struct inferior) <m_terminal>: ... this and make private.
8104 * main.c (captured_main_1): Adjust.
8105 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
8106 (mi_cmd_inferior_tty_show): Adjust.
8107 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
8108 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
8109
8110 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
8111
8112 * configure.ac: Add --enable-libctf: handle --disable-static
8113 properly.
8114 * acinclude.m4: sinclude ../config/enable.m4.
8115 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
8116 (LIBCTF): Substitute in.
8117 (CTF_DEPS): New, likewise.
8118 (CLIBS): libctf needs symbols from libbfd: move earlier.
8119 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
8120 flags.
8121 * ctfread.c: Surround in ENABLE_LIBCTF.
8122 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
8123 * configure: Regenerate.
8124 * config.in: Likewise.
8125
8126 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
8129
8130 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
8131
8132 * inferior.h (struct inferior) <terminal>: Change type to
8133 gdb::unique_xmalloc_ptr<char>.
8134 * inferior.c (inferior::~inferior): Don't free inf->terminal.
8135 * infcmd.c (set_inferior_io_terminal): Don't free terminal
8136 field, adjust to unique pointer.
8137 (get_inferior_io_terminal): Adjust to unique pointer.
8138
8139 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8140
8141 * riscv-tdep.c (riscv_print_registers_info): Loop over all
8142 registers, not just the known core set of registers.
8143
8144 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
8147 fflags, frm, and fcsr registers.
8148 (riscv_register_reggroup_p): Remove unknown CSRs from save and
8149 restore groups.
8150 (riscv_tdesc_unknown_reg): New function.
8151 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
8152 tdesc_use_registers.
8153 * riscv-tdep.h (struct gdbarch_tdep): Add
8154 unknown_csrs_first_regnum, unknown_csrs_count,
8155 duplicate_fflags_regnum, duplicate_frm_regnum, and
8156 duplicate_fcsr_regnum fields.
8157
8158 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * target-descriptions.c (tdesc_use_registers): Add new parameter a
8161 callback, use the callback (when not null) to help number unknown
8162 registers.
8163 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
8164 (tdesc_use_registers): Add extra parameter to declaration.
8165
8166 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8167
8168 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
8169 in the file.
8170 (class riscv_pending_register_alias): Likewise.
8171 (riscv_register_feature::register_info): Change 'required_p' field
8172 to 'required', and change its type. Add 'check' member function.
8173 (riscv_register_feature::register_info::check): Define new member
8174 function.
8175 (riscv_xreg_feature): Change initialisation of 'required' field.
8176 (riscv_freg_feature): Likewise.
8177 (riscv_virtual_feature): Likewise.
8178 (riscv_csr_feature): Likewise.
8179 (riscv_check_tdesc_feature): Take extra parameter, the csr
8180 tdesc_feature, rewrite the function to use the new
8181 riscv_register_feature::register_info::check function.
8182 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
8183
8184 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8185
8186 * features/Makefile: Remove all references to the deleted files
8187 below.
8188 * features/riscv/32bit-csr.c: Deleted.
8189 * features/riscv/32bit-csr.xml: Deleted.
8190 * features/riscv/64bit-csr.c: Deleted.
8191 * features/riscv/64bit-csr.xml: Deleted.
8192 * features/riscv/rebuild-csr-xml.sh: Deleted.
8193
8194 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8195
8196 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8197 whitespace error for declaration of names member variable.
8198 (struct riscv_register_feature): Add new prefer_first_name member
8199 variable, and fix whitespace error in declaration of registers.
8200 (riscv_xreg_feature): Initialize prefer_first_name field.
8201 (riscv_freg_feature): Likewise.
8202 (riscv_virtual_feature): Likewise.
8203 (riscv_csr_feature): Likewise.
8204 (riscv_register_name): Expand on comments. Remove register name
8205 modifications for CSR and virtual registers.
8206
8207 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8208
8209 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8210 errors.
8211
8212 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8213
8214 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8215 riscv-opc.h.
8216 (class riscv_pending_register_alias): New class.
8217 (riscv_check_tdesc_feature): Take vector of pending aliases and
8218 populate it as appropriate.
8219 (riscv_setup_register_aliases): Delete.
8220 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8221 to riscv_check_tdesc_feature in all cases. Use the vector to
8222 create the register aliases.
8223
8224 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8225
8226 * sol2-tdep.c (sol2_static_transform_name): Remove.
8227 (sol2_init_abi): Don't register it.
8228 * gdbarch.sh (static_transform_name): Remove.
8229 * gdbarch.c, gdbarch.h: Regenerate.
8230
8231 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8232 gdbarch_static_transform_name.
8233 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8234 * stabsread.c (define_symbol) <'X'>: Remove.
8235 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8236 handling.
8237 <'V'>: Likewise.
8238 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8239 <'S'>: Remove call to gdbarch_static_transform_name.
8240
8241 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8242
8243 * procfs.c (procfs_pre_trace): New function.
8244 (procfs_target::create_inferior): Pass it to fork_inferior.
8245
8246 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8247
8248 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8249 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8250 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8251 sol2-tdep.o, sparc-sol2-tdep.o.
8252 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8253 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8254 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8255 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8256
8257 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8258
8259 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8260 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8261 Call sol2_init_abi.
8262 Remove calls to set_gdbarch_skip_solib_resolver,
8263 set_gdbarch_core_pid_to_str.
8264 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8265 (i386_sol2_static_transform_name): Remove.
8266 (i386_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 Use sol2_sigtramp_p.
8271 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8272 (sol2_sigtramp_p): New function.
8273 (sol2_static_transform_name): New function.
8274 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8275 (sol2_init_abi): New function.
8276 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8277 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8278 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8279 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8280 (sparc_sol2_static_transform_name): Remove.
8281 (sparc32_sol2_init_abi): Call sol2_init_abi.
8282 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8283 set_gdbarch_static_transform_name,
8284 set_gdbarch_skip_solib_resolver,
8285 set_gdbarch_core_pid_to_str.
8286 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8287 (sparc_sol2_static_transform_name): Remove
8288 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8289 call sol2_sigtramp_p.
8290 (sparc64_sol2_init_abi): Call sol2_init_abi.
8291 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8292 set_gdbarch_static_transform_name,
8293 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8294
8295 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8296
8297 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8298 * exec.c (validate_exec_file): If from_tty, set both
8299 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8300 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8301 and from_tty, unconditionally ask a confirmation.
8302
8303 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8304
8305 * target-descriptions.c (tdesc_architecture_name): Protect against
8306 NULL pointer dereference.
8307 (maint_print_xml_tdesc_cmd): New function.
8308 (_initialize_target_descriptions): Register new 'maint print
8309 xml-tdesc' command and give it the filename completer.
8310 * NEWS: Mention new 'maint print xml-tdesc' command.
8311
8312 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8313
8314 * target-descriptions.c (class tdesc_compatible_info): New class.
8315 (struct target_desc): Change type of compatible vector.
8316 (tdesc_compatible_p): Update for change in type of
8317 target_desc::compatible.
8318 (tdesc_compatible_info_list): New function.
8319 (tdesc_compatible_info_arch_name): New function.
8320 (tdesc_add_compatible): Update for change in type of
8321 target_desc::compatible.
8322 (print_c_tdesc::visit_pre): Likewise.
8323
8324 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8325
8326 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8327 whitespace to underscore.
8328 (maint_print_c_tdesc_cmd): Use fake filename for target
8329 descriptions that came from the target.
8330 (_initialize_target_descriptions): Add filename command completion
8331 for 'maint print c-tdesc'.
8332
8333 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8334
8335 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8336 lines.
8337
8338 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
8339
8340 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8341 lines.
8342 (dwarf2_find_location_expression): Likewise.
8343 (call_site_parameter_matches): Likewise.
8344 (dwarf2_compile_expr_to_ax): Likewise.
8345 (disassemble_dwarf_expression): Likewise.
8346 (loclist_describe_location): Likewise.
8347
8348 2020-06-23 Pedro Alves <palves@redhat.com>
8349
8350 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8351 progspace-and-thread.h. Include scoped-mock-context.h instead.
8352 (register_to_value_test): Use scoped_mock_context.
8353 * regcache.c: Include "scoped-mock-context.h".
8354 (cooked_read_test): Don't error out if a target is already pushed.
8355 Use scoped_mock_context. Adjust.
8356 * scoped-mock-context.h: New file.
8357
8358 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8359
8360 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8361 initializer.
8362 (ada_language::is_string_type_p): New member function.
8363 * c-lang.c (c_language_data): Delete la_is_string_type_p
8364 initializer.
8365 (cplus_language_data): Likewise.
8366 (asm_language_data): Likewise.
8367 (minimal_language_data): Likewise.
8368 * d-lang.c (d_language_data): Likewise.
8369 * f-lang.c (f_is_string_type_p): Delete function, implementation
8370 moved to f_language::is_string_type_p.
8371 (f_language_data): Delete la_is_string_type_p initializer.
8372 (f_language::is_string_type_p): New member function,
8373 implementation from f_is_string_type_p.
8374 * go-lang.c (go_is_string_type_p): Delete function, implementation
8375 moved to go_language::is_string_type_p.
8376 (go_language_data): Delete la_is_string_type_p initializer.
8377 (go_language::is_string_type_p): New member function,
8378 implementation from go_is_string_type_p.
8379 * language.c (language_defn::is_string_type_p): Define new member
8380 function.
8381 (default_is_string_type_p): Make static, add comment copied from
8382 header file.
8383 (unknown_language_data): Delete la_is_string_type_p initializer.
8384 (unknown_language::is_string_type_p): New member function.
8385 (auto_language_data): Delete la_is_string_type_p initializer.
8386 (auto_language::is_string_type_p): New member function.
8387 * language.h (language_data): Delete la_is_string_type_p field.
8388 (language_defn::is_string_type_p): Declare new function.
8389 (default_is_string_type_p): Delete desclaration, move comment to
8390 definition.
8391 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8392 moved to m2_language::is_string_type_p.
8393 (m2_language_data): Delete la_is_string_type_p initializer.
8394 (m2_language::is_string_type_p): New member function,
8395 implementation from m2_is_string_type_p.
8396 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8397 initializer.
8398 * opencl-lang.c (opencl_language_data): Likewise.
8399 * p-lang.c (pascal_is_string_type_p): Delete function,
8400 implementation moved to pascal_language::is_string_type_p.
8401 (pascal_language_data): Delete la_is_string_type_p initializer.
8402 (pascal_language::is_string_type_p): New member function,
8403 implementation from pascal_is_string_type_p.
8404 * rust-lang.c (rust_is_string_type_p): Delete function,
8405 implementation moved to rust_language::is_string_type_p.
8406 (rust_language_data): Delete la_is_string_type_p initializer.
8407 (rust_language::is_string_type_p): New member function,
8408 implementation from rust_is_string_type_p.
8409 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8410 is_string_type_p.
8411
8412 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8413
8414 * ada-lang.c (ada_language_data): Delete la_print_typedef
8415 initializer.
8416 (ada_language::print_typedef): New member function.
8417 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8418 (cplus_language_data): Likewise.
8419 (asm_language_data): Likewise.
8420 (minimal_language_data): Likewise.
8421 * d-lang.c (d_language_data): Likewise.
8422 * f-lang.c (f_language_data): Likewise.
8423 (f_language::print_typedef): New member function.
8424 * go-lang.c (go_language_data): Delete la_print_typedef
8425 initializer.
8426 * language.c (language_defn::print_typedef): Define member
8427 function.
8428 (unknown_language_data): Delete la_print_typedef initializer.
8429 (unknown_language::print_typedef): New member function.
8430 (auto_language_data): Delete la_print_typedef initializer.
8431 (auto_language::print_typedef): New member function.
8432 * language.h (language_data): Delete la_print_typedef field.
8433 (language_defn::print_typedef): Declare new member function.
8434 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8435 (default_print_typedef): Delete declaration.
8436 * m2-lang.c (m2_language_data): Delete la_print_typedef
8437 initializer.
8438 (m2_language::print_typedef): New member function.
8439 * objc-lang.c (objc_language_data): Delete la_print_typedef
8440 initializer.
8441 * opencl-lang.c (opencl_language_data): Likewise.
8442 * p-lang.c (pascal_language_data): Likewise.
8443 (pascal_language::print_typedef): New member function.
8444 * rust-lang.c (rust_print_typedef): Delete function,
8445 implementation moved to rust_language::print_typedef.
8446 (rust_language): Delete la_print_typedef initializer.
8447 (rust_language::print_typedef): New member function,
8448 implementation from rust_print_typedef.
8449 * typeprint.c (default_print_typedef): Delete.
8450
8451 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8452
8453 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8454 (ada_language::printstr): New member function.
8455 * c-lang.c (c_language_data): Delete la_printstr initializer.
8456 (cplus_language_data): Likewise.
8457 (asm_language_data): Likewise.
8458 (minimal_language_data): Likewise.
8459 * d-lang.c (d_language_data): Likewise.
8460 * f-lang.c (f_printstr): Rename to f_language::printstr.
8461 (f_language_data): Delete la_printstr initializer.
8462 (f_language::printstr): New member function, implementation from
8463 f_printstr.
8464 * go-lang.c (go_language_data): Delete la_printstr initializer.
8465 * language.c (language_defn::printstr): Define new member
8466 function.
8467 (unk_lang_printstr): Delete.
8468 (unknown_language_data): Delete la_printstr initializer.
8469 (unknown_language::printstr): New member function.
8470 (auto_language_data): Delete la_printstr initializer.
8471 (auto_language::printstr): New member function.
8472 * language.h (language_data): Delete la_printstr field.
8473 (language_defn::printstr): Declare new member function.
8474 (LA_PRINT_STRING): Update call to printstr.
8475 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8476 (m2_language_data): Delete la_printstr initializer.
8477 (m2_language::printstr): New member function, implementation from
8478 m2_printstr.
8479 * objc-lang.c (objc_language_data): Delete la_printstr
8480 initializer.
8481 * opencl-lang.c (opencl_language_data): Likewise.
8482 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8483 (pascal_language_data): Delete la_printstr initializer.
8484 (pascal_language::printstr): New member function, implementation
8485 from pascal_printstr.
8486 * p-lang.h (pascal_printstr): Delete declaration.
8487 * rust-lang.c (rust_printstr): Update header comment.
8488 (rust_language_data): Delete la_printstr initializer.
8489 (rust_language::printstr): New member function.
8490
8491 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8492
8493 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8494 (ada_language::printchar): New member function.
8495 * c-lang.c (c_language_data): Delete la_printchar initializer.
8496 (cplus_language_data): Likewise.
8497 (asm_language_data): Likewise.
8498 (minimal_language_data): Likewise.
8499 * d-lang.c (d_language_data): Likewise.
8500 * f-lang.c (f_printchar): Rename to f_language::printchar.
8501 (f_language_data): Delete la_printchar initializer.
8502 (f_language::printchar): New member function, implementation from
8503 f_printchar.
8504 * go-lang.c (go_language_data): Delete la_printchar initializer.
8505 * language.c (unk_lang_printchar): Delete.
8506 (language_defn::printchar): Define new member function.
8507 (unknown_language_data): Delete la_printchar initializer.
8508 (unknown_language::printchar): New member function.
8509 (auto_language_data): Delete la_printchar initializer.
8510 (auto_language::printchar): New member function.
8511 * language.h (language_data): Delete la_printchar field.
8512 (language_defn::printchar): Declare new member function.
8513 (LA_PRINT_CHAR): Update call to printchar.
8514 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8515 (m2_language::printchar): New member function.
8516 * objc-lang.c (objc_language_data): Delete la_printchar
8517 initializer.
8518 * opencl-lang.c (opencl_language_data): Likewise.
8519 * p-lang.c (pascal_language_data): Delete la_printchar
8520 initializer.
8521 (pascal_language::printchar): New member function.
8522 * rust-lang.c (rust_printchar): Rename to
8523 rust_language::printchar.
8524 (rust_language_data): Delete la_printchar initializer.
8525 (rust_language::printchar): New member function, implementation
8526 from rust_printchar.
8527
8528 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8529
8530 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8531 (ada_language_data): Delete la_emitchar initializer.
8532 (ada_language::emitchar): New member function, implementation from
8533 emit_char.
8534 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8535 (cplus_language_data): Likewise.
8536 (asm_language_data): Likewise.
8537 (minimal_language_data): Likewise.
8538 * d-lang.c (d_language_data): Likewise.
8539 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8540 (f_language_data): Delete la_emitchar initializer.
8541 (f_language::emitchar): New member function, implementation from
8542 f_emit_char.
8543 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8544 * language.c (unk_lang_emit_char): Delete.
8545 (language_defn::emitchar): New member function definition.
8546 (unknown_language_data): Delete la_emitchar initializer.
8547 (unknown_language::emitchar): New member function.
8548 (auto_language_data): Delete la_emitchar initializer.
8549 (auto_language::emitchar): New member function.
8550 * language.h (language_data): Delete la_emitchar field.
8551 (language_defn::emitchar): New member field declaration.
8552 (LA_EMIT_CHAR): Update call to emitchar.
8553 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8554 (m2_language_data): Delete la_emitchar initializer.
8555 (m2_language::emitchar): New member function, implementation from
8556 m2_emit_char.
8557 * objc-lang.c (objc_language_data): Delete la_emitchar
8558 initializer.
8559 * opencl-lang.c (opencl_language_data): Likewise.
8560 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8561 (pascal_language_data): Delete la_emitchar initializer.
8562 (pascal_language::emitchar): New member function, implementation
8563 from pascal_emit_char.
8564 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8565 (rust_language_data): Delete la_emitchar initializer.
8566 (rust_language::emitchar): New member function, implementation
8567 from rust_emitchar.
8568
8569 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8570
8571 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8572 (ada_language_data): Delete la_post_parser initializer.
8573 (ada_language::post_parser): New member function.
8574 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8575 (cplus_language_data): Likewise.
8576 (asm_language_data): Likewise.
8577 (minimal_language_data): Likewise.
8578 * d-lang.c (d_language_data): Likewise.
8579 * f-lang.c (f_language_data): Likewise.
8580 * go-lang.c (go_language_data): Likewise.
8581 * language.c (unknown_language_data): Likewise.
8582 (auto_language_data): Likewise.
8583 * language.h (language_data): Delete la_post_parser field.
8584 (language_defn::post_parser): New member function.
8585 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8586 * objc-lang.c (objc_language_data): Likewise.
8587 * opencl-lang.c (opencl_language_data): Likewise.
8588 * p-lang.c (pascal_language_data): Likewise.
8589 * parse.c (parse_exp_in_context): Update call to post_parser.
8590 (null_post_parser): Delete definition.
8591 * parser-defs.h (null_post_parser): Delete declaration.
8592 * rust-lang.c (rust_language_data): Delete la_post_parser
8593 initializer.
8594
8595 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8596
8597 * ada-lang.c (parse): Rename to ada_language::parser.
8598 (ada_language_data): Delete la_parser initializer.
8599 (ada_language::parser): New member function, implementation from
8600 parse.
8601 * c-lang.c (c_language_data): Delete la_parser initializer.
8602 (cplus_language_data): Likewise.
8603 (asm_language_data): Likewise.
8604 (minimal_language_data): Likewise.
8605 * d-lang.c (d_language_data): Likewise.
8606 (d_language::parser): New member function.
8607 * f-lang.c (f_language_data): Delete la_parser initializer.
8608 (f_language::parser): New member function.
8609 * go-lang.c (go_language_data): Delete la_parser initializer.
8610 (go_language::parser): New member function.
8611 * language.c (unk_lang_parser): Delete.
8612 (language_defn::parser): Define new member function.
8613 (unknown_language_data): Delete la_parser initializer.
8614 (unknown_language::parser): New member function.
8615 (auto_language_data): Delete la_parser initializer.
8616 (auto_language::parser): New member function.
8617 * language.h (language_data): Delete la_parser field.
8618 (language_defn::parser): Declare new member function.
8619 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8620 (m2_language::parser): New member function.
8621 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8622 * opencl-lang.c (opencl_language_data): Likewise.
8623 * p-lang.c (pascal_language_data): Likewise.
8624 (pascal_language::parser): New member function.
8625 * parse.c (parse_exp_in_context): Update call to parser.
8626 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8627 (rust_language::parser): New member function.
8628
8629 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8630
8631 * top.c (print_gdb_configuration): Print --with-python-libdir
8632 configuration value.
8633
8634 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8635
8636 * NEWS: Mention change to the alias command.
8637
8638 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8639
8640 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8641 (alias_command_completer)
8642 (make_alias_options_def_group): New functions.
8643 (alias_opts, alias_option_defs): New struct and array.
8644 (alias_usage_error): Update usage.
8645 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8646 Use option framework.
8647 (_initialize_cli_cmds): Update alias command help.
8648 Update aliases command help.
8649 (show_user):
8650 Add NULL for new default_args lookup_cmd argument.
8651 (valid_command_p): Rename to validate_aliased_command.
8652 Add NULL for new default_args lookup_cmd argument. Verify that the
8653 aliased_command has no default args.
8654 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8655 (lookup_cmd_1, lookup_cmd): New argument default_args.
8656 (add_alias_cmd):
8657 Add NULL for new default_args lookup_cmd argument.
8658 (print_help_for_command): Show default args under the layout
8659 alias some_alias = some_aliased_cmd some_alias_default_arg.
8660 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8661 xfree default_args in destructor.
8662 * cli/cli-script.c (process_next_line, do_define_command):
8663 Add NULL for new default_args lookup_cmd argument.
8664 * command.h: Declare new default_args argument in lookup_cmd
8665 and lookup_cmd_1.
8666 * completer.c (complete_line_internal_1):
8667 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8668 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8669 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8670 Likewise.
8671 * infcmd.c (_initialize_infcmd): Likewise.
8672 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8673 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8674 * python/py-param.c (add_setshow_generic): Likewise.
8675 * remote.c (_initialize_remote): Likewise.
8676 * top.c (execute_command): Prepend default_args if command has some.
8677 (set_verbose):
8678 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8679 * tracepoint.c (validate_actionline, encode_actions_1):
8680 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8681
8682 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8683
8684 * jit.c (jit_read_descriptor): Use bool as the return type.
8685 (jit_breakpoint_re_set_internal): Use bool as the return type.
8686 Invert the return value logic; return true if the jit breakpoint
8687 has been successfully initialized.
8688 (jit_inferior_init): Update the call to
8689 jit_breakpoint_re_set_internal.
8690
8691 2020-06-22 Pedro Alves <palves@redhat.com>
8692
8693 PR gdb/25939
8694 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8695 Use the current inferior instead. Don't return
8696 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8697 wait again.
8698 * sol-thread.c (sol_thread_target::wait): Don't reference
8699 inferior_ptid.
8700 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8701 (sol_update_thread_list_callback): Use the current inferior's pid
8702 instead of inferior_ptid.
8703
8704 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8705
8706 * procfs.c: Cleanup many comments.
8707
8708 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8709 (AFTER_WATCHFLAG): Replace by value.
8710
8711 (MAIN_PROC_NAME_FORMAT): Inline ...
8712 (create_procinfo): ... here.
8713
8714 (procfs_debug_inferior): Remove SYS_exec handling.
8715 (syscall_is_exec): Likewise.
8716 (procfs_set_exec_trap): Likewise.
8717
8718 (syscall_is_lwp_exit): Inline in callers.
8719 (syscall_is_exit): Likewise.
8720 (syscall_is_exec): Likewise.
8721 (syscall_is_lwp_create): Likewise.
8722
8723 (invalidate_cache): Remove #if 0 code.
8724
8725 (make_signal_thread_runnable): Remove.
8726 (procfs_target::resume): Remove #if 0 code.
8727
8728 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8729
8730 PR gdb/25939
8731 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8732 call ...
8733 (procfs_target::create_inferior): ... here.
8734
8735 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8736
8737 * exec.c (validate_exec_file): Ensure the build-id is up to
8738 date by calling reopen_exec_file (that checks file timestamp
8739 to decide to re-read the file).
8740
8741 2020-06-18 Pedro Alves <palves@redhat.com>
8742
8743 PR gdb/25412
8744 * gdbthread.h (delete_thread, delete_thread_silent)
8745 (find_thread_ptid): Update comments.
8746 * thread.c (current_thread_): New global.
8747 (is_current_thread): Move higher, and reimplement.
8748 (inferior_thread): Reimplement.
8749 (set_thread_exited): Use bool. Add assertions.
8750 (add_thread_silent): Simplify thread-reuse handling by always
8751 calling delete_thread.
8752 (delete_thread): Remove intro comment.
8753 (find_thread_ptid): Skip exited threads.
8754 (switch_to_thread_no_regs): Write to current_thread_.
8755 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8756 INFERIOR_PTID. Clear current_thread_.
8757
8758 2020-06-18 Pedro Alves <palves@redhat.com>
8759
8760 * aix-thread.c (pd_update): Use switch_to_thread.
8761
8762 2020-06-18 Pedro Alves <palves@redhat.com>
8763
8764 * ravenscar-thread.c (ravenscar_thread_target): Update.
8765 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8766 (ravenscar_thread_target::add_active_thread): ... this. Don't
8767 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8768 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8769
8770 2020-06-18 Pedro Alves <palves@redhat.com>
8771
8772 * nat/windows-nat.c (current_windows_thread): Remove.
8773 * nat/windows-nat.h (current_windows_thread): Remove.
8774 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8775 Adjust.
8776 (display_selectors): Adjust to fetch the current
8777 windows_thread_info based on inferior_ptid.
8778 (fake_create_process): No longer write to current_windows_thread.
8779 (windows_nat_target::get_windows_debug_event):
8780 Don't set inferior_ptid or current_windows_thread.
8781 (windows_nat_target::wait): Adjust to not rely on
8782 current_windows_thread.
8783 (do_initial_windows_stuff): Now a method of windows_nat_target.
8784 Switch to the last_ptid thread.
8785 (windows_nat_target::attach): Adjust.
8786 (windows_nat_target::detach): Use switch_to_no_thread instead of
8787 writing to inferior_ptid directly.
8788 (windows_nat_target::create_inferior): Adjust.
8789
8790 2020-06-18 Pedro Alves <palves@redhat.com>
8791
8792 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8793
8794 2020-06-18 Pedro Alves <palves@redhat.com>
8795
8796 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8797 after creating it, instead of writing to inferior_ptid. Don't
8798 write to inferior_ptid.
8799
8800 2020-06-18 Pedro Alves <palves@redhat.com>
8801
8802 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8803
8804 2020-06-18 Pedro Alves <palves@redhat.com>
8805
8806 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8807 it, instead of writing to inferior_ptid.
8808
8809 2020-06-18 Pedro Alves <palves@redhat.com>
8810
8811 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8812 to inferior_ptid.
8813
8814 2020-06-18 Pedro Alves <palves@redhat.com>
8815
8816 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8817 instead of writing to inferior_ptid directly.
8818
8819 2020-06-18 Pedro Alves <palves@redhat.com>
8820
8821 * corelow.c (core_target::close): Use switch_to_no_thread instead
8822 of writing to inferior_ptid directly.
8823 (add_to_thread_list, core_target_open): Use switch_to_thread
8824 instead of writing to inferior_ptid directly.
8825
8826 2020-06-18 Pedro Alves <palves@redhat.com>
8827
8828 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8829 inferior_ptid.
8830 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8831 inferior_ptid.
8832 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8833 inferior_ptid directly.
8834 (darwin_nat_target::init_thread_list): Switch to thread, instead
8835 of writing to inferior_ptid.
8836 (darwin_nat_target::attach): Don't write to inferior_ptid.
8837 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8838
8839 2020-06-18 Pedro Alves <palves@redhat.com>
8840
8841 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8842 thread.
8843 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8844 Instead use switch_to_thread.
8845 (gnu_nat_target::detach): Use switch_to_no_thread
8846 instead of writing to inferior_ptid directly. Used passed-in
8847 inferior instead of looking up the inferior by pid.
8848
8849 2020-06-18 Pedro Alves <palves@redhat.com>
8850
8851 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8852 inferior_ptid.
8853
8854 2020-06-18 Pedro Alves <palves@redhat.com>
8855
8856 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8857 inferior_ptid.
8858 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8859 thread.
8860 (nto_procfs_target::detach): Avoid referencing
8861 inferior_ptid. Use switch_to_no_thread instead of writing to
8862 inferior_ptid directly.
8863 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8864 instead of writing to inferior_ptid directly.
8865 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8866 to thread.
8867
8868 2020-06-18 Pedro Alves <palves@redhat.com>
8869
8870 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8871 after creating it, instead of writing to inferior_ptid.
8872 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8873 to inferior_ptid directly.
8874 (gdbsim_target::wait): Don't write to inferior_ptid.
8875
8876 2020-06-18 Pedro Alves <palves@redhat.com>
8877
8878 * remote.c (remote_target::remote_notice_new_inferior): Use
8879 switch_to_thread instead of writing to inferior_ptid directly.
8880 (remote_target::add_current_inferior_and_thread): Use
8881 switch_to_no_thread instead of writing to inferior_ptid directly.
8882 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8883 and switch_to_thread instead of using set_current_inferior or
8884 writing to inferior_ptid directly.
8885
8886 2020-06-18 Pedro Alves <palves@redhat.com>
8887
8888 * tracectf.c (ctf_target_open): Switch to added thread instead of
8889 writing to inferior_ptid directly.
8890 (ctf_target::close): Use switch_to_no_thread instead of writing to
8891 inferior_ptid directly.
8892
8893 2020-06-18 Pedro Alves <palves@redhat.com>
8894
8895 * tracefile-tfile.c (tfile_target_open): Don't write to
8896 inferior_ptid directly, instead switch to added thread.
8897 (tfile_target::close): Use switch_to_no_thread instead of writing
8898 to inferior_ptid directly.
8899
8900 2020-06-18 Pedro Alves <palves@redhat.com>
8901
8902 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8903 (procfs_target::detach): Use switch_to_no_thread
8904 instead of writing to inferior_ptid directly.
8905 (do_attach): Change return type to void. Switch to the added
8906 thread.
8907 (procfs_target::create_inferior): Switch to the added thread.
8908 (procfs_do_thread_registers): Don't write to inferior_ptid.
8909
8910 2020-06-18 Pedro Alves <palves@redhat.com>
8911
8912 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8913 of writing to inferior_ptid.
8914 (scoped_restore_exited_inferior): Delete.
8915 (handle_vfork_child_exec_or_exit): Simplify using
8916 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8917 instead of writing to inferior_ptid.
8918 (THREAD_STOPPED_BY): Delete.
8919 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8920 (thread_stopped_by_hw_breakpoint): Delete.
8921 (save_waitstatus): Use
8922 scoped_restore_current_thread+switch_to_thread, and call
8923 target_stopped_by_watchpoint instead of
8924 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8925 instead of thread_stopped_by_sw_breakpoint, and
8926 target_stopped_by_hw_breakpoint instead of
8927 thread_stopped_by_hw_breakpoint.
8928 (handle_inferior_event)
8929 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8930 inferior_ptid directly, nor
8931 set_current_inferior/set_current_program_space. Use
8932 switch_to_thread / switch_to_inferior_no_thread instead.
8933
8934 2020-06-18 Pedro Alves <palves@redhat.com>
8935
8936 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8937 instead of writing to inferior_ptid.
8938
8939 2020-06-18 Pedro Alves <palves@redhat.com>
8940
8941 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8942 added thread.
8943 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8944 to the added thread.
8945 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8946 instead of writing to inferior_ptid.
8947
8948 2020-06-18 Pedro Alves <palves@redhat.com>
8949
8950 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8951 (register_to_value_test): Mock a program_space too. Heap-allocate
8952 the address space. Don't write to inferior_ptid. Use
8953 switch_to_thread instead.
8954
8955 2020-06-18 Pedro Alves <palves@redhat.com>
8956
8957 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8958 Delete.
8959 (find_signalled_thread()): New, factored out from
8960 linux_make_corefile_notes and adjusted to handle exited threads.
8961 (linux_make_corefile_notes): Adjust to use the new
8962 find_signalled_thread.
8963
8964 2020-06-18 Pedro Alves <palves@redhat.com>
8965
8966 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8967 of saving/restoring inferior_ptid.
8968
8969 2020-06-17 Tom Tromey <tom@tromey.com>
8970
8971 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8972 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8973 declare.
8974 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8975
8976 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
8977
8978 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8979 of partial symtabs.
8980
8981 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8982
8983 * regformats/reg-arm.dat: Remove.
8984 * regformats/reg-bfin.dat: Remove.
8985 * regformats/reg-cris.dat: Remove.
8986 * regformats/reg-crisv32.dat: Remove.
8987 * regformats/reg-m32r.dat: Remove.
8988 * regformats/reg-tilegx.dat: Remove.
8989 * regformats/reg-tilegx32.dat: Remove.
8990
8991 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
8992
8993 * features/Makefile (WHICH): Remove arm files.
8994 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8995 * regformats/arm/arm-with-neon.dat: Remove.
8996 * regformats/arm/arm-with-vfpv2.dat: Remove.
8997 * regformats/arm/arm-with-vfpv3.dat: Remove.
8998
8999 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
9000
9001 * features/Makefile (XMLTOC): Remove rx.xml.
9002
9003 2020-06-17 Pedro Alves <palves@redhat.com>
9004
9005 * gdbthread.h (thread_control_state) <trap_expected> Update
9006 comments.
9007
9008 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9009
9010 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
9011 ada_language::lookup_symbol_nonlocal.
9012 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
9013 (ada_language::lookup_symbol_nonlocal): New member function,
9014 implementation from ada_lookup_symbol_nonlocal.
9015 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
9016 initializer.
9017 (cplus_language_data): Delete la_lookup_symbol_nonlocal
9018 initializer.
9019 (cplus_language::lookup_symbol_nonlocal): New member function.
9020 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
9021 (minimal_language_data) Likewise.
9022 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
9023 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
9024 initializer.
9025 (d_language::lookup_symbol_nonlocal): New member function.
9026 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
9027 initializer.
9028 (f_language::lookup_symbol_nonlocal): New member function.
9029 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
9030 initializer.
9031 * language.c (unknown_language_data): Likewise.
9032 (auto_language_data): Likewise.
9033 * language.h (language_data): Delete la_lookup_symbol_nonlocal
9034 field.
9035 (language_defn::lookup_symbol_nonlocal): New member function.
9036 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
9037 initializer.
9038 * objc-lang.c (objc_language_data): Likewise.
9039 * opencl-lang.c (opencl_language_data): Likewise.
9040 * p-lang.c (pascal_language_data): Likewise.
9041 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
9042 rust_language::lookup_symbol_nonlocal.
9043 (rust_language_data): Delete la_lookup_symbol_nonlocal
9044 initializer.
9045 (rust_language::lookup_symbol_nonlocal): New member function,
9046 implementation from rust_lookup_symbol_nonlocal.
9047 * symtab.c (lookup_symbol_aux): Update call to
9048 lookup_symbol_nonlocal.
9049 (basic_lookup_symbol_nonlocal): Rename to...
9050 (language_defn::lookup_symbol_nonlocal): ...this, and update
9051 header comment. Remove language_defn parameter, and replace with
9052 uses of `this'.
9053 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
9054
9055 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9056
9057 * ada-lang.c (ada_language_data): Delete la_value_print_inner
9058 initializer.
9059 (ada_language::value_print_inner): New member function.
9060 * c-lang.c (c_language_data): Delete la_value_print_inner
9061 initializer.
9062 (cplus_language_data): Likewise.
9063 (asm_language_data): Likewise.
9064 (minimal_language_data): Likewise.
9065 * d-lang.c (d_language_data): Likewise.
9066 (d_language::value_print_inner): New member function.
9067 * f-lang.c (f_language_data): Delete la_value_print_inner
9068 initializer.
9069 (f_language::value_print_inner): New member function.
9070 * f-lang.h (f_value_print_innner): Rename to...
9071 (f_value_print_inner): ...this (note spelling of 'inner').
9072 * f-valprint.c (f_value_print_innner): Rename to...
9073 (f_value_print_inner): ...this (note spelling of 'inner').
9074 * go-lang.c (go_language_data): Delete la_value_print_inner
9075 initializer.
9076 (go_language::value_print_inner): New member function.
9077 * language.c (language_defn::value_print_inner): Define new member
9078 function.
9079 (unk_lang_value_print_inner): Delete.
9080 (unknown_language_data): Delete la_value_print_inner initializer.
9081 (unknown_language::value_print_inner): New member function.
9082 (auto_language_data): Delete la_value_print_inner initializer.
9083 (auto_language::value_print_inner): New member function.
9084 * language.h (language_data): Delete la_value_print_inner field.
9085 (language_defn::value_print_inner): Delcare new member function.
9086 * m2-lang.c (m2_language_data): Delete la_value_print_inner
9087 initializer.
9088 (m2_language::value_print_inner): New member function.
9089 * objc-lang.c (objc_language_data): Delete la_value_print_inner
9090 initializer.
9091 * opencl-lang.c (opencl_language_data): Likewise.
9092 * p-lang.c (pascal_language_data): Likewise.
9093 (pascal_language::value_print_inner): New member function.
9094 * rust-lang.c (rust_language_data): Delete la_value_print_inner
9095 initializer.
9096 (rust_language::value_print_inner): New member function.
9097 * valprint.c (do_val_print): Update call to value_print_inner.
9098
9099 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9100
9101 * ada-lang.c (ada_language_data): Delete la_value_print
9102 initializer.
9103 (ada_language::value_print): New member function.
9104 * c-lang.c (c_language_data): Delete la_value_print initializer.
9105 (cplus_language_data): Likewise.
9106 (asm_language_data): Likewise.
9107 (minimal_language_data): Likewise.
9108 * d-lang.c (d_language_data): Likewise.
9109 * f-lang.c (f_language_data): Likewise.
9110 * go-lang.c (go_language_data): Likewise.
9111 * language.c (unk_lang_value_print): Delete.
9112 (language_defn::value_print): Define new member function.
9113 (unknown_language_data): Delete la_value_print initializer.
9114 (unknown_language::value_print): New member function.
9115 (auto_language_data): Delete la_value_print initializer.
9116 (auto_language::value_print): New member function.
9117 * language.h (language_data): Delete la_value_print field.
9118 (language_defn::value_print): Declare new member function.
9119 (LA_VALUE_PRINT): Update call to value_print.
9120 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
9121 * objc-lang.c (objc_language_data): Likewise.
9122 * opencl-lang.c (opencl_language_data): Likewise.
9123 * p-lang.c (pascal_language_data): Likewise.
9124 (pascal_language::value_print): New member function.
9125 * rust-lang.c (rust_language_data): Delete la_value_print
9126 initializer.
9127
9128 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9129
9130 * ada-lang.c (ada_watch_location_expression): Rename to
9131 ada_language::watch_location_expression.
9132 (ada_language_data): Delete la_watch_location_expression
9133 initializer.
9134 (ada_language::watch_location_expression): New member function,
9135 implementation from ada_watch_location_expression.
9136 * breakpoint.c (watch_command_1): Update call to
9137 watch_location_expression.
9138 * c-lang.c (c_watch_location_expression): Rename to
9139 language_defn::watch_location_expression.
9140 (c_language_data): Delete la_watch_location_expression
9141 initializer.
9142 (cplus_language_data): Likewise.
9143 (asm_language_data): Likewise.
9144 (minimal_language_data): Likewise.
9145 * c-lang.h (c_watch_location_expression): Delete declaration.
9146 * d-lang.c (d_language_data): Delete la_watch_location_expression
9147 initializer.
9148 * f-lang.c (f_language_data): Likewise.
9149 * go-lang.c (go_language_data): Likewise.
9150 * language.c (language_defn::watch_location_expression): Member
9151 function implementation from c_watch_location_expression.
9152 (unknown_language_data): Delete la_watch_location_expression
9153 initializer.
9154 (auto_language_data): Likewise.
9155 * language.h (language_data): Delete la_watch_location_expression
9156 field.
9157 (language_defn::watch_location_expression): Declare new member
9158 function.
9159 * m2-lang.c (m2_language_data): Delete
9160 la_watch_location_expression initializer.
9161 * objc-lang.c (objc_language_data): Likewise.
9162 * opencl-lang.c (opencl_language_data): Likewise.
9163 * p-lang.c (pascal_language_data): Likewise.
9164 * rust-lang.c (rust_watch_location_expression): Rename to
9165 rust_language::watch_location_expression.
9166 (rust_language_data): Delete la_watch_location_expression
9167 initializer.
9168 (rust_language::watch_location_expression): New member function,
9169 implementation from rust_watch_location_expression.
9170
9171 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9172
9173 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
9174 ada_language::collect_symbol_completion_matches.
9175 (ada_language_data): Delete la_collect_symbol_completion_matches
9176 initializer.
9177 (ada_language::collect_symbol_completion_matches): New member
9178 function, implementation from
9179 ada_collect_symbol_completion_matches.
9180 * c-lang.c (c_language_data): Delete
9181 la_collect_symbol_completion_matches initializer.
9182 (cplus_language_data): Likewise.
9183 (asm_language_data): Likewise.
9184 (minimal_language_data): Likewise.
9185 * d-lang.c (d_language_data): Likewise.
9186 * f-lang.c (f_collect_symbol_completion_matches): Rename to
9187 f_language::collect_symbol_completion_matches.
9188 (f_language_data): Delete la_collect_symbol_completion_matches
9189 initializer.
9190 (f_language::collect_symbol_completion_matches) New member
9191 function, implementation from f_collect_symbol_completion_matches.
9192 * go-lang.c (go_language_data): Delete
9193 la_collect_symbol_completion_matches initializer.
9194 * language.c (unknown_language_data): Likewise.
9195 (auto_language_data): Likewise.
9196 * language.h (language_data): Delete
9197 la_collect_symbol_completion_matches field.
9198 (language_defn::collect_symbol_completion_matches): New member
9199 function.
9200 * m2-lang.c (m2_language_data): Delete
9201 la_collect_symbol_completion_matches initializer.
9202 * objc-lang.c (objc_language_data): Likewise.
9203 * opencl-lang.c (opencl_language_data): Likewise.
9204 * p-lang.c (pascal_language_data): Likewise.
9205 * rust-lang.c (rust_language_data): Likewise.
9206 * symtab.c (default_collect_symbol_completion_matches): Delete.
9207 (collect_symbol_completion_matches): Update call to
9208 collect_symbol_completion_matches.
9209 (collect_symbol_completion_matches_type): Likewise.
9210 * symtab.h (default_collect_symbol_completion_matches): Delete
9211 declaration.
9212
9213 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9214
9215 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9216 (ada_language_data): Delete la_word_break_characters initializer.
9217 (ada_language::word_break_characters): New member function.
9218 * c-lang.c (c_language_data): Delete la_word_break_characters
9219 initializer.
9220 (cplus_language_data): Likewise.
9221 (asm_language_data): Likewise.
9222 (minimal_language_data): Likewise.
9223 * completer.c: Update global comment.
9224 (advance_to_expression_complete_word_point): Update call to
9225 word_break_characters.
9226 (complete_files_symbols): Likewise.
9227 (complete_line_internal_1): Likewise.
9228 (default_completer_handle_brkchars): Likewise.
9229 (skip_quoted_chars): Likewise.
9230 * d-lang.c (d_language_data): Delete la_word_break_characters
9231 initializer.
9232 * f-lang.c (f_word_break_characters): Delete.
9233 (f_language_data): Delete la_word_break_characters initializer.
9234 (f_language::word_break_characters): New member function.
9235 * go-lang.c (go_language_data): Delete la_word_break_characters
9236 initializer.
9237 * language.c (unknown_language_data): Likewise.
9238 (auto_language_data): Likewise.
9239 * language.h (default_word_break_characters): Move declaration to
9240 earlier in the file.
9241 (language_data): Delete la_word_break_characters field.
9242 (language_defn::word_break_characters): New member function.
9243 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9244 initializer.
9245 * objc-lang.c (objc_language_data): Likewise.
9246 * opencl-lang.c (opencl_language_data): Likewise.
9247 * p-lang.c (pascal_language_data): Likewise.
9248 * rust-lang.c (rust_language_data): Likewise.
9249
9250 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9251
9252 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9253 (ada_language_data): Delete la_get_symbol_name_matcher
9254 initializer.
9255 (language_defn::get_symbol_name_matcher_inner): New member
9256 function.
9257 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9258 initializer.
9259 (cplus_language_data): Likewise.
9260 (cplus_language::get_symbol_name_matcher_inner): New member
9261 function.
9262 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9263 (minimal_language_data): Likewise.
9264 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9265 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9266 initializer.
9267 * dictionary.c (iter_match_first_hashed): Update call to
9268 get_symbol_name_matcher.
9269 (iter_match_next_hashed): Likewise.
9270 (iter_match_next_linear): Likewise.
9271 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9272 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9273 initializer.
9274 (f_language::get_symbol_name_matcher_inner): New member function.
9275 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9276 initializer.
9277 * language.c (default_symbol_name_matcher): Update header comment,
9278 make static.
9279 (language_defn::get_symbol_name_matcher): New definition.
9280 (language_defn::get_symbol_name_matcher_inner): Likewise.
9281 (get_symbol_name_matcher): Delete.
9282 (unknown_language_data): Delete la_get_symbol_name_matcher
9283 initializer.
9284 (auto_language_data): Likewise.
9285 * language.h (language_data): Delete la_get_symbol_name_matcher
9286 field.
9287 (language_defn::get_symbol_name_matcher): New member function.
9288 (language_defn::get_symbol_name_matcher_inner): Likewise.
9289 (default_symbol_name_matcher): Delete declaration.
9290 * linespec.c (find_methods): Update call to
9291 get_symbol_name_matcher.
9292 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9293 initializer.
9294 * minsyms.c (lookup_minimal_symbol): Update call to
9295 get_symbol_name_matcher.
9296 (iterate_over_minimal_symbols): Likewise.
9297 * objc-lang.c (objc_language_data): Delete
9298 la_get_symbol_name_matcher initializer.
9299 * opencl-lang.c (opencl_language_data): Likewise.
9300 * p-lang.c (pascal_language_data): Likewise.
9301 * psymtab.c (psymbol_name_matches): Update call to
9302 get_symbol_name_matcher.
9303 * rust-lang.c (rust_language_data): Delete
9304 la_get_symbol_name_matcher initializer.
9305 * symtab.c (symbol_matches_search_name): Update call to
9306 get_symbol_name_matcher.
9307 (compare_symbol_name): Likewise.
9308
9309 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9310
9311 * ada-lang.c (ada_language_data): Delete la_compute_program
9312 initializer.
9313 * c-lang.c (c_language_data): Likewise.
9314 (c_language::compute_program): New member function.
9315 (cplus_language_data): Delete la_compute_program initializer.
9316 (cplus_language::compute_program): New member function.
9317 (asm_language_data): Delete la_compute_program initializer.
9318 (minimal_language_data): Likewise.
9319 * c-lang.h (c_compute_program): Update comment.
9320 (cplus_compute_program): Likewise.
9321 * compile/compile-c-support.c (c_compute_program): Likewise.
9322 (cplus_compute_program): Likewise.
9323 * compile/compile.c (compile_to_object): Update call to
9324 la_compute_program.
9325 * d-lang.c (d_language_data): Delete la_compute_program
9326 initializer.
9327 * f-lang.c (f_language_data): Likewise.
9328 * go-lang.c (go_language_data): Likewise.
9329 * language.c (unknown_language_data): Likewise.
9330 (auto_language_data): Likewise.
9331 * language.h (language_data): Delete la_compute_program field.
9332 (language_defn::compute_program): New member function.
9333 * m2-lang.c (m2_language_data): Delete la_compute_program
9334 initializer.
9335 * objc-lang.c (objc_language_data): Likewise.
9336 * opencl-lang.c (opencl_language_data): Likewise.
9337 * p-lang.c (pascal_language_data): Likewise.
9338 * rust-lang.c (rust_language_data): Likewise.
9339
9340 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9341
9342 * ada-lang.c (ada_language_data) Delete
9343 la_class_name_from_physname initializer.
9344 * c-lang.c (c_language_data): Likewise.
9345 (cplus_language_data): Likewise.
9346 (cplus_language::class_name_from_physname): New member function.
9347 (asm_language_data): Delete la_class_name_from_physname
9348 initializer.
9349 (minimal_language_data): Likewise.
9350 * d-lang.c (d_language_data): Likewise.
9351 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9352 method on language_defn class.
9353 (guess_full_die_structure_name): Likewise.
9354 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9355 initializer.
9356 * go-lang.c (go_language_data): Likewise.
9357 * language.c (language_class_name_from_physname): Delete.
9358 (unk_lang_class_name): Delete.
9359 (unknown_language_data): Delete la_class_name_from_physname
9360 initializer.
9361 (auto_language_data): Likewise.
9362 * language.h (language_data): Delete la_class_name_from_physname
9363 field.
9364 (language_defn::class_name_from_physname): New function.
9365 (language_class_name_from_physname): Delete declaration.
9366 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9367 initializer.
9368 * objc-lang.c (objc_language_data): Likewise.
9369 * opencl-lang.c (opencl_language_data): Likewise.
9370 * p-lang.c (pascal_language_data): Likewise.
9371 * rust-lang.c (rust_language_data): Likewise.
9372
9373 2020-06-16 Tom Tromey <tom@tromey.com>
9374
9375 * tui/tui-data.h (STATUS_NAME): New macro.
9376 * tui/tui-layout.c (tui_remove_some_windows)
9377 (initialize_known_windows, tui_register_window)
9378 (tui_layout_split::remove_windows, initialize_layouts)
9379 (tui_new_layout_command): Don't use hard-coded window names.
9380
9381 2020-06-16 Tom Tromey <tom@tromey.com>
9382
9383 PR tui/25348:
9384 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9385 tui_initialize_readline. Only run once. Call rl_initialize.
9386 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9387 tui_initialize_readline.
9388 * tui/tui-io.c (tui_setup_io): Call
9389 tui_ensure_readline_initialized.
9390 * tui/tui-interp.c (tui_interp::init): Update.
9391
9392 2020-06-16 Tom Tromey <tom@tromey.com>
9393
9394 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9395 Also preserve the status window.
9396
9397 2020-06-16 Tom Tromey <tom@tromey.com>
9398
9399 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9400 where m_window==nullptr.
9401
9402 2020-06-15 Tom Tromey <tromey@adacore.com>
9403
9404 * windows-nat.c (windows_nat::handle_output_debug_string):
9405 Update.
9406 (windows_nat::handle_ms_vc_exception): Update.
9407 * target.h (target_read_string): Change API.
9408 * target.c (target_read_string): Change API.
9409 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9410 Update.
9411 * solib-frv.c (frv_current_sos): Update.
9412 * solib-dsbt.c (dsbt_current_sos): Update.
9413 * solib-darwin.c (darwin_current_sos): Update.
9414 * linux-thread-db.c (inferior_has_bug): Update.
9415 * expprint.c (print_subexp_standard): Update.
9416 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9417 (ada_exception_message_1): Update.
9418
9419 2020-06-15 Tom Tromey <tromey@adacore.com>
9420
9421 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9422
9423 2020-06-15 Tom Tromey <tromey@adacore.com>
9424
9425 * valprint.c (read_string): Update comment.
9426 * target.c (MIN): Remove.
9427 (target_read_string): Rewrite.
9428
9429 2020-06-15 Tom Tromey <tromey@adacore.com>
9430
9431 * corefile.c (read_memory_string): Remove.
9432 * ada-valprint.c (ada_value_print_ptr): Update.
9433 * ada-lang.h (ada_tag_name): Change return type.
9434 * ada-lang.c (type_from_tag): Update.
9435 (ada_tag_name_from_tsd): Change return type. Use
9436 target_read_string.
9437 (ada_tag_name): Likewise.
9438 * gdbcore.h (read_memory_string): Don't declare.
9439
9440 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
9441
9442 * symtab.c (rbreak_command): Ignore Windows drive colon.
9443
9444 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
9445
9446 * NEWS: Mention removed GDBserver host support.
9447
9448 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
9449
9450 * features/riscv/rebuild-csr-xml.sh: Updated.
9451
9452 2020-06-11 Tom Tromey <tom@tromey.com>
9453
9454 PR gdb/18318:
9455 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9456
9457 2020-06-09 Jonny Grant <jg@jguk.org>
9458 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9459
9460 * main.c (captured_main_1): Don't print new line after help.
9461 (print_gdb_help): add mailing list and IRC channel information
9462 to --help. Add new lines between items in the footer. Remove
9463 quotes around bug url.
9464
9465 2020-06-11 Keith Seitz <keiths@redhat.com>
9466
9467 PR gdb/21356
9468 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9469 Resolve typedefs for type length calculations.
9470
9471 2020-06-10 Tom de Vries <tdevries@suse.de>
9472
9473 PR ada/24713
9474 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9475 (write_psymbols): Enable .gdb_index for ada.
9476 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9477 ada.
9478
9479 2020-06-10 Tom de Vries <tdevries@suse.de>
9480
9481 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9482 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9483 namei" instead of "const char *name" argument.
9484 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9485 dw2_symtab_iter_init.
9486
9487 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9488
9489 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9490 to use type::field and field::type instead.
9491
9492 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9495 to use field::type instead.
9496
9497 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9498
9499 * gdbtypes.h (struct field) <type, set_type>: New methods.
9500 Rename `type` field to...
9501 <m_type>: ... this. Change references throughout to use type or
9502 set_type methods.
9503 (FIELD_TYPE): Use field::type. Change call sites that modify
9504 the field's type to use field::set_type instead.
9505
9506 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9507
9508 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9509 to use type::index_type instead.
9510
9511 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
9512
9513 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9514 methods.
9515 (TYPE_INDEX_TYPE): Use type::index_type.
9516 * gdbtypes.c (create_array_type_with_stride): Likewise.
9517
9518 2020-06-07 Tom Tromey <tom@tromey.com>
9519
9520 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9521 parameter.
9522 (generic_value_print): Update.
9523
9524 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9525
9526 Revert commit 982a38f60b0.
9527 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9528
9529 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9530
9531 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9532 avoid use after free.
9533
9534 2020-06-05 Tom de Vries <tdevries@suse.de>
9535
9536 * NEWS: Fix typos.
9537
9538 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9541 the per_bfd object.
9542 (dwarf2_read_debug_names): Likewise.
9543 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9544 object when re-using a per_bfd object with an index.
9545
9546 2020-06-03 Tom de Vries <tdevries@suse.de>
9547
9548 PR symtab/26046
9549 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9550 children for C++.
9551 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9552 DW_TAG_subprogram.
9553
9554 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9555
9556 * ada-lang.c (ada_language_data): Delete skip_trampoline
9557 initializer.
9558 * c-lang.c (c_language_data): Likewise.
9559 (cplus_language_data): Likewise.
9560 (cplus_language::skip_trampoline): New member function.
9561 (asm_language_data): Delete skip_trampoline initializer.
9562 (minimal_language_data): Likewise.
9563 * d-lang.c (d_language_data): Likewise.
9564 * f-lang.c (f_language_data): Likewise.
9565 * go-lang.c (go_language_data): Likewise.
9566 * language.c (unk_lang_trampoline): Delete function.
9567 (skip_language_trampoline): Update.
9568 (unknown_language_data): Delete skip_trampoline initializer.
9569 (auto_language_data): Likewise.
9570 * language.h (language_data): Delete skip_trampoline field.
9571 (language_defn::skip_trampoline): New function.
9572 * m2-lang.c (m2_language_data): Delete skip_trampoline
9573 initializer.
9574 * objc-lang.c (objc_skip_trampoline): Delete function, move
9575 implementation to objc_language::skip_trampoline.
9576 (objc_language_data): Delete skip_trampoline initializer.
9577 (objc_language::skip_trampoline): New member function with
9578 implementation from objc_skip_trampoline.
9579 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9580 initializer.
9581 * p-lang.c (pascal_language_data): Likewise.
9582 * rust-lang.c (rust_language_data): Likewise.
9583
9584 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9585
9586 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9587 (ada_language::demangle): New member function.
9588 * c-lang.c (c_language_data): Delete la_demangle initializer.
9589 (cplus_language_data): Delete la_demangle initializer.
9590 (cplus_language::demangle): New member function.
9591 (asm_language_data): Delete la_demangle initializer.
9592 (minimal_language_data): Delete la_demangle initializer.
9593 * d-lang.c (d_language_data): Delete la_demangle initializer.
9594 (d_language::demangle): New member function.
9595 * f-lang.c (f_language_data): Delete la_demangle initializer.
9596 (f_language::demangle): New member function.
9597 * go-lang.c (go_language_data): Delete la_demangle initializer.
9598 (go_language::demangle): New member function.
9599 * language.c (language_demangle): Update.
9600 (unk_lang_demangle): Delete.
9601 (unknown_language_data): Delete la_demangle initializer.
9602 (unknown_language::demangle): New member function.
9603 (auto_language_data): Delete la_demangle initializer.
9604 (auto_language::demangle): New member function.
9605 * language.h (language_data): Delete la_demangle field.
9606 (language_defn::demangle): New function.
9607 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9608 * objc-lang.c (objc_language_data): Delete la_demangle
9609 initializer.
9610 (objc_language::demangle): New member function.
9611 * opencl-lang.c (opencl_language_data): Delete la_demangle
9612 initializer.
9613 * p-lang.c (pascal_language_data): Likewise.
9614 * rust-lang.c (rust_language_data): Likewise.
9615 (rust_language::demangle): New member function.
9616
9617 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9618
9619 * ada-lang.c (ada_language_data): Delete la_print_type
9620 initializer.
9621 (ada_language::print_type): New member function.
9622 * c-lang.c (c_language_data): Delete la_print_type initializer.
9623 (c_language::print_type): New member function.
9624 (cplus_language_data): Delete la_print_type initializer.
9625 (cplus_language::print_type): New member function.
9626 (asm_language_data): Delete la_print_type initializer.
9627 (asm_language::print_type): New member function.
9628 (minimal_language_data): Delete la_print_type initializer.
9629 (minimal_language::print_type): New member function.
9630 * d-lang.c (d_language_data): Delete la_print_type initializer.
9631 (d_language::print_type): New member function.
9632 * f-lang.c (f_language_data): Delete la_print_type initializer.
9633 (f_language::print_type): New member function.
9634 * go-lang.c (go_language_data): Delete la_print_type initializer.
9635 (go_language::print_type): New member function.
9636 * language.c (unk_lang_print_type): Delete.
9637 (unknown_language_data): Delete la_print_type initializer.
9638 (unknown_language::print_type): New member function.
9639 (auto_language_data): Delete la_print_type initializer.
9640 (auto_language::print_type): New member function.
9641 * language.h (language_data): Delete la_print_type field.
9642 (language_defn::print_type): New function.
9643 (LA_PRINT_TYPE): Update.
9644 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9645 (m2_language::print_type): New member function.
9646 * objc-lang.c (objc_language_data): Delete la_print_type
9647 initializer.
9648 (objc_language::print_type): New member function.
9649 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9650 to opencl_language::print_type.
9651 (opencl_language_data): Delete la_print_type initializer.
9652 (opencl_language::print_type): New member function, implementation
9653 from opencl_print_type.
9654 * p-lang.c (pascal_language_data): Delete la_print_type
9655 initializer.
9656 (pascal_language::print_type): New member function.
9657 * rust-lang.c (rust_print_type): Delete, implementation moved to
9658 rust_language::print_type.
9659 (rust_language_data): Delete la_print_type initializer.
9660 (rust_language::print_type): New member function, implementation
9661 from rust_print_type.
9662
9663 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9664
9665 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9666 implementation moves to...
9667 (ada_language::sniff_from_mangled_name): ...here. Update return
9668 type.
9669 (ada_language_data): Delete la_sniff_from_mangled_name
9670 initializer.
9671 * c-lang.c (c_language_data): Likewise.
9672 (cplus_language_data): Likewise.
9673 (cplus_language::sniff_from_mangled_name): New member function,
9674 implementation taken from gdb_sniff_from_mangled_name.
9675 (asm_language_data): Delete la_sniff_from_mangled_name
9676 initializer.
9677 (minimal_language_data): Likewise.
9678 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9679 implementation moves to cplus_language::sniff_from_mangled_name.
9680 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9681 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9682 moves to...
9683 (d_language::sniff_from_mangled_name): ...here.
9684 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9685 * f-lang.c (f_language_data): Likewise.
9686 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9687 moves to...
9688 (go_language::sniff_from_mangled_name): ...here.
9689 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9690 * language.c (language_sniff_from_mangled_name): Delete.
9691 (unknown_language_data): Delete la_sniff_from_mangled_name
9692 initializer.
9693 (auto_language_data): Likewise.
9694 * language.h (language_data): Delete la_sniff_from_mangled_name
9695 field.
9696 (language_defn::sniff_from_mangled_name): New function.
9697 (language_sniff_from_mangled_name): Delete declaration.
9698 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9699 field.
9700 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9701 implementation moves to...
9702 (objc_language::sniff_from_mangled_name): ...here.
9703 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9704 * opencl-lang.c (opencl_language_data): Likewise.
9705 * p-lang.c (pascal_language_data): Likewise.
9706 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9707 implementation moves to...
9708 (rust_language::sniff_from_mangled_name): ...here.
9709 (rust_language_data): Delete la_sniff_from_mangled_name
9710 initializer.
9711 * symtab.c (symbol_find_demangled_name): Call
9712 sniff_from_mangled_name member function.
9713
9714 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9715
9716 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9717 initializer.
9718 * c-lang.c (c_language_data): Likewise.
9719 (cplus_language_data): Likewise.
9720 (cplus_language::search_name_hash): New member function.
9721 (asm_language_data): Delete la_search_name_hash initializer.
9722 (minimal_language_data): Likewise.
9723 * d-lang.c (d_language_data): Likewise.
9724 * dictionary.c (default_search_name_hash): Rename to...
9725 (language_defn::search_name_hash): ...this.
9726 * f-lang.c (f_language_data): Likewise.
9727 (f_language::search_name_hash): New member function.
9728 * go-lang.c (go_language_data): Delete la_search_name_hash
9729 initializer.
9730 * language.c (unknown_language_data): Likewise.
9731 (auto_language_data): Likewise.
9732 * language.h (struct language_data): Delete la_search_name_hash
9733 field.
9734 (language_defn::search_name_hash): Declare new member function.
9735 (default_search_name_hash): Delete declaration.
9736 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9737 initializer.
9738 * objc-lang.c (objc_language_data): Likewise.
9739 * opencl-lang.c (opencl_language_data): Likewise.
9740 * p-lang.c (pascal_language_data): Likewise.
9741 * rust-lang.c (rust_language_data): Likewise.
9742 * symtab.c (search_name_hash): Update call.
9743
9744 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9745
9746 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9747 initializer.
9748 * c-lang.c (class compile_instance): Declare.
9749 (c_language_data): Delete la_get_compile_instance initializer.
9750 (c_language::get_compile_instance): New member function.
9751 (cplus_language_data): Delete la_get_compile_instance initializer.
9752 (cplus_language::get_compile_instance): New member function.
9753 (asm_language_data): Delete la_get_compile_instance initializer.
9754 (minimal_language_data): Likewise.
9755 * c-lang.h (c_get_compile_context): Update comment.
9756 (cplus_get_compile_context): Update comment.
9757 * compile/compile.c (compile_to_object): Update calls, don't rely
9758 on function pointer being NULL.
9759 * d-lang.c (d_language_data): Delete la_get_compile_instance
9760 initializer.
9761 * f-lang.c (f_language_data): Likewise.
9762 * go-lang.c (go_language_data): Likewise.
9763 * language.c (unknown_language_data): Likewise.
9764 (auto_language_data): Likewise.
9765 * language.h (language_data): Delete la_get_compile_instance field.
9766 (language_defn::get_compile_instance): New member function.
9767 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9768 initializer.
9769 * objc-lang.c (objc_language_data): Likewise.
9770 * opencl-lang.c (opencl_language_data): Likewise.
9771 * p-lang.c (pascal_language_data): Likewise.
9772 * rust-lang.c (rust_language_data): Likewise.
9773
9774 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9775
9776 * ada-lang.c (ada_add_all_symbols): Update comment.
9777 (ada_iterate_over_symbols): Delete, move implementation to...
9778 (ada_language::iterate_over_symbols): ...here, a new member
9779 function, rewrite to use range based for loop.
9780 (ada_language_data): Delete la_iterate_over_symbols initializer.
9781 * c-lang.c (c_language_data): Likewise.
9782 (cplus_language_data): Likewise.
9783 (asm_language_data): Likewise.
9784 (minimal_language_data): Likewise.
9785 * d-lang.c (d_language_data): Likewise.
9786 * f-lang.c (f_language_data): Likewise.
9787 * go-lang.c (go_language_data): Likewise.
9788 * language.c (unknown_language_data): Likewise.
9789 (auto_language_data): Likewise.
9790 * language.h (language_data): Delete la_iterate_over_symbols field.
9791 (language_defn::iterate_over_symbols): New member function.
9792 (LA_ITERATE_OVER_SYMBOLS): Update.
9793 * linespec.c (iterate_over_all_matching_symtabs): Update.
9794 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9795 initializer.
9796 * objc-lang.c (objc_language_data): Likewise.
9797 * opencl-lang.c (opencl_language_data): Likewise.
9798 * p-lang.c (pascal_language_data): Likewise.
9799 * rust-lang.c (rust_language_data): Likewise.
9800
9801 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9802
9803 * ada-lang.c (ada_language_data): Delete
9804 la_lookup_transparent_type initializer.
9805 * c-lang.c (c_language_data): Likewise.
9806 (cplus_language_data): Likewise.
9807 (cplus_language::lookup_transparent_type): New member function.
9808 (asm_language_data): Delete la_lookup_transparent_type
9809 initializer.
9810 (minimal_language_data): Likewise.
9811 * d-lang.c (d_language_data): Likewise.
9812 * f-lang.c (f_language_data): Likewise.
9813 * go-lang.c (go_language_data): Likewise.
9814 * language.c (unknown_language_data): Likewise.
9815 (auto_language_data): Likewise.
9816 * language.h (struct language_data): Delete
9817 la_lookup_transparent_type field.
9818 (language_defn::lookup_transparent_type): New member function.
9819 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9820 initializer.
9821 * objc-lang.c (objc_language_data): Likewise.
9822 * opencl-lang.c (opencl_language_data): Likewise.
9823 * p-lang.c (pascal_language_data): Likewise.
9824 * rust-lang.c (rust_language_data): Likewise.
9825 * symtab.c (symbol_matches_domain): Update call.
9826
9827 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9828
9829 * ada-lang.c (ada_language_arch_info): Delete function, move
9830 implementation to...
9831 (ada_language::language_arch_info): ...here, a new member
9832 function.
9833 (ada_language_data): Delete la_language_arch_info.
9834 * c-lang.c (c_language_data): Likewise.
9835 (c_language::language_arch_info): New member function.
9836 (cplus_language_arch_info): Delete function, move
9837 implementation to...
9838 (cplus_language::language_arch_info): ...here, a new member
9839 function.
9840 (cplus_language_data): Delete la_language_arch_info.
9841 (asm_language_data): Likewise.
9842 (asm_language::language_arch_info): New member function.
9843 (minimal_language_data): Delete la_language_arch_info.
9844 (minimal_language::language_arch_info): New member function.
9845 * d-lang.c (d_language_arch_info): Delete function, move
9846 implementation to...
9847 (d_language::language_arch_info): ...here, a new member
9848 function.
9849 (d_language_data): Delete la_language_arch_info.
9850 * f-lang.c (f_language_arch_info): Delete function, move
9851 implementation to...
9852 (f_language::language_arch_info): ...here, a new member
9853 function.
9854 (f_language_data): Delete la_language_arch_info.
9855 * go-lang.c (go_language_arch_info): Delete function, move
9856 implementation to...
9857 (go_language::language_arch_info): ...here, a new member
9858 function.
9859 (go_language_data): Delete la_language_arch_info.
9860 * language.c (unknown_language_data): Likewise.
9861 (unknown_language::language_arch_info): New member function.
9862 (auto_language_data): Delete la_language_arch_info.
9863 (auto_language::language_arch_info): New member function.
9864 (language_gdbarch_post_init): Update call to
9865 la_language_arch_info.
9866 * language.h (language_data): Delete la_language_arch_info
9867 function pointer.
9868 (language_defn::language_arch_info): New function.
9869 * m2-lang.c (m2_language_arch_info): Delete function, move
9870 implementation to...
9871 (m2_language::language_arch_info): ...here, a new member
9872 function.
9873 (m2_language_data): Delete la_language_arch_info.
9874 * objc-lang.c (objc_language_arch_info): Delete function, move
9875 implementation to...
9876 (objc_language::language_arch_info): ...here, a new member
9877 function.
9878 (objc_language_data): Delete la_language_arch_info.
9879 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9880 implementation to...
9881 (opencl_language::language_arch_info): ...here, a new member
9882 function.
9883 (opencl_language_data): Delete la_language_arch_info.
9884 * p-lang.c (pascal_language_arch_info): Delete function, move
9885 implementation to...
9886 (pascal_language::language_arch_info): ...here, a new member
9887 function.
9888 (pascal_language_data): Delete la_language_arch_info.
9889 * rust-lang.c (rust_language_arch_info): Delete function, move
9890 implementation to...
9891 (rust_language::language_arch_info): ...here, a new member
9892 function.
9893 (rust_language_data): Delete la_language_arch_info.
9894
9895 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9896
9897 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9898 initializer.
9899 * c-lang.c (c_language_data): Likewise.
9900 (cplus_language_data): Likewise.
9901 (cplus_language::pass_by_reference_info): New method.
9902 (asm_language_data): Delete la_pass_by_reference initializer.
9903 (minimal_language_data): Likewise.
9904 * cp-abi.c (cp_pass_by_reference): Remove use of
9905 default_pass_by_reference.
9906 * d-lang.c (d_language_data): Likewise.
9907 * f-lang.c (f_language_data): Likewise.
9908 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9909 default_pass_by_reference.
9910 * go-lang.c (go_language_data): Likewise.
9911 * language.c (language_pass_by_reference): Update.
9912 (default_pass_by_reference): Delete.
9913 (unknown_language_data): Delete la_pass_by_reference
9914 initializer.
9915 (auto_language_data): Likewise.
9916 * language.h (struct language_data): Delete la_pass_by_reference
9917 field.
9918 (language_defn::pass_by_reference_info): New member function.
9919 (default_pass_by_reference): Delete declaration.
9920 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9921 initializer.
9922 * objc-lang.c (objc_language_data): Likewise.
9923 * opencl-lang.c (opencl_language_data): Likewise.
9924 * p-lang.c (pascal_language_data): Likewise.
9925 * rust-lang.c (rust_language_data): Likewise.
9926
9927 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9928
9929 * ada-lang.c (ada_read_var_value): Delete function, move
9930 implementation to...
9931 (ada_language::read_var_value): ...here.
9932 (ada_language_data): Delete la_read_var_value initializer.
9933 * c-lang.c (c_language_data): Likewise.
9934 (cplus_language_data): Likewise.
9935 (minimal_language_data): Likewise.
9936 * d-lang.c (d_language_data): Likewise.
9937 * f-lang.c (f_language_data): Likewise.
9938 * findvar.c (default_read_var_value): Rename to...
9939 (language_defn::read_var_value): ...this.
9940 * findvar.c (read_var_value): Update header comment, and change to
9941 call member function instead of function pointer.
9942 * go-lang.c (go_language_data): Likewise.
9943 * language.c (unknown_language_data): Delete la_read_var_value
9944 initializer.
9945 (auto_language_data): Likewise.
9946 * language.h (struct language_data): Delete la_read_var_value
9947 field.
9948 (language_defn::read_var_value): New member function.
9949 (default_read_var_value): Delete declaration.
9950 * m2-lang.c (m2_language_data): Delete la_read_var_value
9951 initializer.
9952 * objc-lang.c (objc_language_data): Likewise.
9953 * opencl-lang.c (opencl_language_data): Likewise.
9954 * p-lang.c (pascal_language_data): Likewise.
9955 * rust-lang.c (rust_language_data): Likewise.
9956 * value.h (default_read_var_value): Delete declaration.
9957
9958 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9959
9960 * ada-lang.c (ada_print_array_index): Delete function, move
9961 implementation to...
9962 (ada_language::print_array_index): ...here.
9963 (ada_language_data): Delete la_print_array_index initializer.
9964 * c-lang.c (c_language_data): Likewise.
9965 (cplus_language_data): Likewise.
9966 (minimal_language_data): Likewise.
9967 * d-lang.c (d_language_data): Likewise.
9968 * f-lang.c (f_language_data): Likewise.
9969 * go-lang.c (go_language_data): Likewise.
9970 * language.c (default_print_array_index): Delete function, move
9971 implementation to...
9972 (language_defn::print_array_index): ...here.
9973 (unknown_language_data): Delete la_print_array_index initializer.
9974 (auto_language_data): Likewise.
9975 * language.h (struct language_data): Delete la_print_array_index
9976 field.
9977 (language_defn::print_array_index): New member function.
9978 (LA_PRINT_ARRAY_INDEX): Update.
9979 (default_print_array_index): Delete declaration.
9980 * m2-lang.c (m2_language_data): Delete la_print_array_index
9981 initializer.
9982 * objc-lang.c (objc_language_data): Likewise.
9983 * opencl-lang.c (opencl_language_data): Likewise.
9984 * p-lang.c (pascal_language_data): Likewise.
9985 * rust-lang.c (rust_language_data): Likewise.
9986
9987 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9988
9989 * gdb/ada-lang.c (ada_language_defn): Convert to...
9990 (ada_language_data): ...this.
9991 (class ada_language): New class.
9992 (ada_language_defn): New static global.
9993 * gdb/c-lang.c (c_language_defn): Convert to...
9994 (c_language_data): ...this.
9995 (class c_language): New class.
9996 (c_language_defn): New static global.
9997 (cplus_language_defn): Convert to...
9998 (cplus_language_data): ...this.
9999 (class cplus_language): New class.
10000 (cplus_language_defn): New static global.
10001 (asm_language_defn): Convert to...
10002 (asm_language_data): ...this.
10003 (class asm_language): New class.
10004 (asm_language_defn): New static global.
10005 (minimal_language_defn): Convert to...
10006 (minimal_language_data): ...this.
10007 (class minimal_language): New class.
10008 (minimal_language_defn): New static global.
10009 * gdb/d-lang.c (d_language_defn): Convert to...
10010 (d_language_data): ...this.
10011 (class d_language): New class.
10012 (d_language_defn): New static global.
10013 * gdb/f-lang.c (f_language_defn): Convert to...
10014 (f_language_data): ...this.
10015 (class f_language): New class.
10016 (f_language_defn): New static global.
10017 * gdb/go-lang.c (go_language_defn): Convert to...
10018 (go_language_data): ...this.
10019 (class go_language): New class.
10020 (go_language_defn): New static global.
10021 * gdb/language.c (unknown_language_defn): Remove declaration.
10022 (current_language): Initialize to nullptr, real initialization is
10023 moved to _initialize_language.
10024 (languages): Delete global.
10025 (language_defn::languages): Define.
10026 (set_language_command): Use language_defn::languages.
10027 (set_language): Likewise.
10028 (range_error): Likewise.
10029 (language_enum): Likewise.
10030 (language_def): Likewise.
10031 (add_set_language_command): Use language_def::languages for the
10032 language list, and language_def to lookup language pointers.
10033 (skip_language_trampoline): Use language_defn::languages.
10034 (unknown_language_defn): Convert to...
10035 (unknown_language_data): ...this.
10036 (class unknown_language): New class.
10037 (unknown_language_defn): New static global.
10038 (auto_language_defn): Convert to...
10039 (auto_language_data): ...this.
10040 (class auto_language): New class.
10041 (auto_language_defn): New static global.
10042 (language_gdbarch_post_init): Use language_defn::languages.
10043 (_initialize_language): Initialize current_language.
10044 * gdb/language.h (struct language_defn): Rename to...
10045 (struct language_data): ...this.
10046 (struct language_defn): New.
10047 (auto_language_defn): Delete.
10048 (unknown_language_defn): Delete.
10049 (minimal_language_defn): Delete.
10050 (ada_language_defn): Delete.
10051 (asm_language_defn): Delete.
10052 (c_language_defn): Delete.
10053 (cplus_language_defn): Delete.
10054 (d_language_defn): Delete.
10055 (f_language_defn): Delete.
10056 (go_language_defn): Delete.
10057 (m2_language_defn): Delete.
10058 (objc_language_defn): Delete.
10059 (opencl_language_defn): Delete.
10060 (pascal_language_defn): Delete.
10061 (rust_language_defn): Delete.
10062 * gdb/m2-lang.c (m2_language_defn): Convert to...
10063 (m2_language_data): ...this.
10064 (class m2_language): New class.
10065 (m2_language_defn): New static global.
10066 * gdb/objc-lang.c (objc_language_defn): Convert to...
10067 (objc_language_data): ...this.
10068 (class objc_language): New class.
10069 (objc_language_defn): New static global.
10070 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
10071 (opencl_language_data): ...this.
10072 (class opencl_language): New class.
10073 (opencl_language_defn): New static global.
10074 * gdb/p-lang.c (pascal_language_defn): Convert to...
10075 (pascal_language_data): ...this.
10076 (class pascal_language): New class.
10077 (pascal_language_defn): New static global.
10078 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
10079 language pointer, update comment format.
10080 * gdb/rust-lang.c (rust_language_defn): Convert to...
10081 (rust_language_data): ...this.
10082 (class rust_language): New class.
10083 (rust_language_defn): New static global.
10084
10085 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
10086
10087 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
10088 member variable.
10089 <m_stmt_at_address>: New member variable.
10090 (lnp_state_machine::record_line): Don't record some lines, update
10091 tracking of is_stmt at the same address.
10092 (lnp_state_machine::lnp_state_machine): Initialise new member
10093 variables.
10094
10095 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10096
10097 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
10098 "-include gnu-nat-mig.h".
10099 * gnu-nat-mig.h: New file.
10100 * gnu-nat.c: Include "gnu-nat-mig.h".
10101 (exc_server, msg_reply_server, notify_server,
10102 process_reply_server): Remove declarations.
10103
10104 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10105
10106 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
10107 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
10108 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
10109 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
10110 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
10111 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
10112 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
10113 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
10114 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
10115 to gnu_nat_target class.
10116 * gnu-nat.c: Likewise.
10117 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
10118 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
10119 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
10120 object.
10121 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
10122 instead of `gnu_target'.
10123
10124 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10125
10126 * i386-gnu-tdep.c: Include "gdbcore.h"
10127 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
10128 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
10129 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
10130 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
10131 i386_gnu_sigcontext_addr): New functions
10132 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
10133 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
10134 tdep.
10135
10136 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10137
10138 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
10139 before fork_inferior call. Avoid calling it if target_is_pushed returns
10140 true.
10141
10142 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10143
10144 * gnu-nat.h (gnu_target): New variable declaration.
10145 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
10146 gnu_target.
10147 * gnu-nat.c (gnu_target): New variable.
10148 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
10149 add_thread_silent, and add_thread calls.
10150 (gnu_nat_target::create_inferior): Pass gnu_target to
10151 add_thread_silent, thread_change_ptid call.
10152 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
10153 call.
10154
10155 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10156
10157 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
10158 (gnu_nat_target::find_memory_regions): Remove unused
10159 `old_address' variable.
10160
10161 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10162
10163 * gnu-nat.c: Include "gdbarch.h".
10164
10165 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10166
10167 * reply_mig_hack.awk (Error return): Cast function through
10168 void *, to bypass compiler function call check.
10169
10170 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10171
10172 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
10173 $(srcdir)/reply_mig_hack.awk.
10174
10175 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10176
10177 * gnu-nat.h (gnu_debug_flag): Set type to bool.
10178
10179 2020-05-30 Jonny Grant <jg@jguk.org>
10180
10181 * configure.ac (ACX_BUGURL): change bug URL to https.
10182
10183 2020-05-30 Pedro Alves <palves@redhat.com>
10184
10185 * cp-support.c (replace_typedefs_template): New.
10186 (replace_typedefs_qualified_name): Handle
10187 DEMANGLE_COMPONENT_TEMPLATE.
10188
10189 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
10192 dwarf2/index-cache.h, dwarf2/index-write.c,
10193 dwarf2/index-write.h, dwarf2/line-header.c,
10194 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
10195 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10196 variables and fields from `dwarf2_per_objfile` to just
10197 `per_objfile` throughout.
10198
10199 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10200
10201 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10202 <push_dwarf_reg_entry_value>: Add comment.
10203
10204 2020-05-28 Kevin Buettner <kevinb@redhat.com>
10205 Keith Seitz <keiths@redhat.com>
10206
10207 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10208 instead of PyEval_ReleaseLock.
10209 (class gdbpy_gil): Move to earlier in file.
10210 (finalize_python): Set gdb_python_initialized.
10211 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10212 when not initialized.
10213
10214 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
10215
10216 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10217 <push_dwarf_reg_entry_value>: Remove assert. Override
10218 per_objfile with caller_per_objfile.
10219
10220 2020-05-28 Tom de Vries <tdevries@suse.de>
10221
10222 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10223 PR gold/15646 workaround to symbol kind "type".
10224
10225 2020-05-27 Tom Tromey <tromey@adacore.com>
10226
10227 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10228
10229 2020-05-27 Tom Tromey <tromey@adacore.com>
10230
10231 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10232 Use htab_find_with_hash.
10233 <add_abbrev>: Remove "abbrev_number" parameter.
10234 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10235 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10236 (hash_abbrev): Add comment.
10237 (abbrev_table::lookup_abbrev): Move to header file.
10238 (abbrev_table::read): Update.
10239
10240 2020-05-27 Tom Tromey <tromey@adacore.com>
10241
10242 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10243 method.
10244 <canonical_name>: New member.
10245 <raw_name>: Rename from "name".
10246 (partial_die_info): Initialize canonical_name.
10247 (scan_partial_symbols): Check raw_name.
10248 (partial_die_parent_scope, partial_die_full_name)
10249 (add_partial_symbol, add_partial_subprogram)
10250 (add_partial_enumeration, load_partial_dies): Use "name" method.
10251 (partial_die_info::name): New method.
10252 (partial_die_info::read, guess_partial_die_structure_name)
10253 (partial_die_info::fixup): Update.
10254
10255 2020-05-27 Tom Tromey <tromey@adacore.com>
10256
10257 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10258 <get_ref_die_offset>: Inline.
10259 <get_ref_die_offset_complaint>: New method.
10260 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10261 (attribute::get_ref_die_offset_complaint): Rename from
10262 get_ref_die_offset. Just issue complaint.
10263
10264 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10265
10266 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10267
10268 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10269
10270 * exec.c (exec_file_attach): Use errno value of first openp failure.
10271
10272 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
10273
10274 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10275 Don't close thread handle.
10276
10277 2020-05-27 Tom Tromey <tom@tromey.com>
10278 Simon Marchi <simon.marchi@efficios.com>
10279
10280 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10281 shared_ptr.
10282 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10283 member.
10284 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10285 dwarf2_per_bfd_objfile_data_key>: New globals.
10286 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10287 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10288 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10289 shared.
10290 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10291 short-circuit when sharing.
10292 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10293 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10294
10295 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10296
10297 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10298 to...
10299 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10300 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10301
10302 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10305 build_name_components, find_name_components_bounds>:
10306 Add per_objfile parameter.
10307 (struct mapped_index) <symbol_name_at>: Likewise.
10308 (struct mapped_debug_names): Remove constructor.
10309 <dwarf2_per_objfile>: Remove field.
10310 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10311 (mapped_index_base::find_name_components_bounds,
10312 mapped_index_base::build_name_components,
10313 dw2_expand_symtabs_matching_symbol): Likewise.
10314 (class mock_mapped_index) <symbol_name_at>: Likewise.
10315 (check_match): Likewise.
10316 (check_find_bounds_finds): Likewise.
10317 (test_mapped_index_find_name_component_bounds): Update.
10318 (CHECK_MATCH): Update.
10319 (dw2_expand_symtabs_matching): Update.
10320 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10321 per_objfile parameter.
10322 <find_vec_in_debug_names>: Likewise.
10323 <m_per_objfile>: New field.
10324 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10325 parameter.
10326 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10327 (dw2_debug_names_iterator::next): Update.
10328 (dw2_debug_names_lookup_symbol): Update.
10329 (dw2_debug_names_expand_symtabs_for_function): Update.
10330 (dw2_debug_names_map_matching_symbols): Update.
10331 (dw2_debug_names_expand_symtabs_matching): Update.
10332 (dwarf2_read_debug_names): Update.
10333
10334 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10337 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10338 move to dwarf2_per_objfile.
10339 <read_in_chain>: Remove.
10340 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10341 remove_all_cus, age_comp_units>: New methods.
10342 <m_dwarf2_cus>: New member.
10343 (struct dwarf2_per_cu_data) <cu>: Remove.
10344 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10345 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10346 moved to methods of dwarf2_per_objfile.
10347 (dwarf2_clear_marks): Remove.
10348 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10349 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10350 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10351 (dwarf2_per_objfile::remove_all_cus): New.
10352 (class free_cached_comp_units) <~free_cached_comp_units>:
10353 Update.
10354 (load_cu): Update.
10355 (dw2_do_instantiate_symtab): Adjust.
10356 (fill_in_sig_entry_from_dwo_entry): Adjust.
10357 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10358 (cutu_reader::cutu_reader): Likewise.
10359 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10360 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10361 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10362 and dwarf2_per_objfile::age_comp_units.
10363 (load_partial_comp_unit): Update.
10364 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10365 (process_queue): Likewise.
10366 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10367 backlink.
10368 (dwarf2_read_addr_index): Likewise.
10369 (follow_die_offset): Likewise.
10370 (dwarf2_fetch_die_loc_sect_off): Likewise.
10371 (dwarf2_fetch_constant_bytes): Likewise.
10372 (dwarf2_fetch_die_type_sect_off): Likewise.
10373 (follow_die_sig_1): Likewise.
10374 (load_full_type_unit): Likewise.
10375 (read_signatured_type): Likewise.
10376 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10377 (dwarf2_cu::~dwarf2_cu): Remove.
10378 (dwarf2_per_objfile::get_cu): New.
10379 (dwarf2_per_objfile::set_cu): New.
10380 (age_cached_comp_units): Rename to...
10381 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10382 to std::unordered_map.
10383 (free_one_cached_comp_unit): Rename to...
10384 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10385 to std::unordered_map.
10386 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10387 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10388 a dwarf2_per_objfile in data.
10389 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10390 (dwarf2_clear_marks): Remove.
10391
10392 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10395 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10396 (init_tu_and_read_dwo_dies): Likewise.
10397 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10398 (cutu_reader::cutu_reader): Likewise.
10399 (load_partial_comp_unit): Likewise.
10400 (process_psymtab_comp_unit): Update.
10401 (build_type_psymtabs_1): Update.
10402 (process_skeletonless_type_unit): Update.
10403 (load_full_comp_unit): Update.
10404 (find_partial_die): Update.
10405 (dwarf2_read_addr_index): Update.
10406 (read_signatured_type): Update.
10407
10408 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10409
10410 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10411 m_header_read_in>: New fields.
10412 <get_header>: New method.
10413 * dwarf2/read.c (per_cu_header_read_in): Remove.
10414 (dwarf2_per_cu_data::get_header): New.
10415 (dwarf2_per_cu_data::addr_size): Update.
10416 (dwarf2_per_cu_data::offset_size): Update.
10417 (dwarf2_per_cu_data::ref_addr_size): Update.
10418
10419 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10420
10421 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10422 (dw2_do_instantiate_symtab): Update.
10423 (queue_and_load_all_dwo_tus): Change parameter from
10424 dwarf2_per_cu_data to dwarf2_cu.
10425 (dwarf2_fetch_die_loc_sect_off): Update.
10426 (dwarf2_fetch_constant_bytes): Update.
10427 (dwarf2_fetch_die_type_sect_off): Update.
10428
10429 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10430
10431 * dwarf2/read.c (process_full_comp_unit,
10432 process_full_type_unit): Remove per_cu, per_objfile paramters.
10433 Add dwarf2_cu parameter.
10434 (process_queue): Update.
10435
10436 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10437
10438 * dwarf2/read.c (create_cu_from_index_list): Replace
10439 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10440 (create_cus_from_index_list): Likewise.
10441 (create_cus_from_index): Likewise.
10442 (create_signatured_type_table_from_index): Likewise.
10443 (create_cus_from_debug_names_list): Likewise.
10444 (create_cus_from_debug_names): Likewise.
10445 (dwarf2_read_gdb_index): Update.
10446 (dwarf2_read_debug_names): Update.
10447
10448 2020-05-27 Tom Tromey <tom@tromey.com>
10449 Simon Marchi <simon.marchi@efficios.com>
10450
10451 * dwarf2/read.h (struct dwarf2_per_objfile)
10452 <get_type_for_signatured_type, set_type_for_signatured_type>:
10453 New methods.
10454 <m_type_map>: New member.
10455 (struct signatured_type) <type>: Remove.
10456 * dwarf2/read.c
10457 (dwarf2_per_objfile::get_type_for_signatured_type,
10458 dwarf2_per_objfile::set_type_for_signatured_type): New.
10459 (get_signatured_type): Use new methods.
10460
10461 2020-05-27 Tom Tromey <tom@tromey.com>
10462 Simon Marchi <simon.marchi@efficios.com>
10463
10464 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10465 (struct dwarf2_per_objfile) <type_units>: New member.
10466 <get_type_unit_group_unshareable>: New method.
10467 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10468 num_symtabs, symtabs>: Remove; move to
10469 type_unit_group_unshareable.
10470 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10471 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10472 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10473
10474 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10475
10476 * dwarf2/read.h (struct dwarf2_per_cu_data):
10477 <dwarf2_per_objfile>: Remove.
10478 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10479 dwarf2_per_objfile.
10480 (create_signatured_type_table_from_index): Likewise.
10481 (create_signatured_type_table_from_debug_names): Likewise.
10482 (create_debug_type_hash_table): Likewise.
10483 (fill_in_sig_entry_from_dwo_entry): Likewise.
10484 (create_type_unit_group): Likewise.
10485 (read_comp_units_from_section): Likewise.
10486 (create_cus_hash_table): Likewise.
10487
10488 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10489
10490 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10491 dwarf2_per_cu_data::dwarf2_per_objfile.
10492 (compute_compunit_symtab_includes): Likewise.
10493 (dwarf2_cu::start_symtab): Likewise.
10494
10495 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10496
10497 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10498 parameter.
10499 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10500 (read_namespace_alias): Update.
10501 (lookup_die_type): Update.
10502 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10503 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10504 Update.
10505 (disassemble_dwarf_expression): Update.
10506
10507 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10508
10509 * dwarf2/read.h (struct dwarf2_queue_item): Add
10510 dwarf2_per_objfile parameter, assign new parameter.
10511 <per_objfile>: New field.
10512 * dwarf2/read.c (free_one_cached_comp_unit): Add
10513 dwarf2_per_objfile parameter.
10514 (queue_comp_unit): Likewise.
10515 (dw2_do_instantiate_symtab): Update.
10516 (process_psymtab_comp_unit): Update.
10517 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10518 (process_imported_unit_die): Update.
10519 (queue_and_load_dwo_tu): Update.
10520 (follow_die_offset): Update.
10521 (follow_die_sig_1): Update.
10522
10523 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10524
10525 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10526 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10527 (read_call_site_scope): Assign per_objfile.
10528 (dwarf2_per_cu_data::objfile): Remove.
10529 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10530 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10531 dwarf2_per_objfile parameter.
10532 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10533 dwarf2_per_objfile parameter.
10534 (dwarf_expr_reg_to_entry_parameter): Add output
10535 dwarf2_per_objfile parameter.
10536 (locexpr_get_frame_base): Update.
10537 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10538 <push_dwarf_reg_entry_value>: Update.
10539 <call_site_to_target_addr>: Update.
10540 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10541 parameter.
10542 (value_of_dwarf_reg_entry): Update.
10543 (rw_pieced_value): Update.
10544 (indirect_synthetic_pointer): Update.
10545 (dwarf2_evaluate_property): Update.
10546 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10547 parameter.
10548 (locexpr_read_variable): Update.
10549 (locexpr_get_symbol_read_needs): Update.
10550 (loclist_read_variable): Update.
10551
10552 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10553
10554 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10555 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10556 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10557 parameter.
10558 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10559 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10560 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10561 parameter.
10562 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10563 sect_variable_value): Add dwarf2_per_objfile parameter.
10564 (class dwarf_evaluate_loc_desc) <dwarf_call,
10565 dwarf_variable_value>: Update.
10566 (fetch_const_value_from_synthetic_pointer): Add
10567 dwarf2_per_objfile parameter.
10568 (fetch_const_value_from_synthetic_pointer): Update.
10569 (coerced_pieced_ref): Update.
10570 (class symbol_needs_eval_context) <dwarf_call,
10571 dwarf_variable_value>: Update.
10572 (dwarf2_compile_expr_to_ax): Update.
10573
10574 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10577 parameter.
10578 (dwarf2_evaluate_loc_desc_full): Update.
10579
10580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10581
10582 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10583 parameter.
10584 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10585 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10586 dwarf2_per_objfile parameter.
10587 (decode_debug_loc_dwo_addresses): Likewise.
10588 (dwarf2_find_location_expression): Update.
10589 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10590 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10591 parameter.
10592 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10593 parameter.
10594 (locexpr_describe_location_1): Likewise.
10595 (locexpr_describe_location): Update.
10596
10597 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10598
10599 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10600 Remove.
10601 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10602 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10603 (dwarf2_compile_property_to_c): Update.
10604 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10605 use text offset from objfile.
10606 (locexpr_tracepoint_var_ref): Update.
10607 (locexpr_generate_c_location): Update.
10608 (loclist_describe_location): Update.
10609 (loclist_tracepoint_var_ref): Update.
10610 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10611 dwarf2_per_objfile parameter.
10612 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10613 use text offset from objfile.
10614 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10615
10616 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10617
10618 * dwarf2/expr.h (struct dwarf_expr_context)
10619 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10620 <offset>: Remove.
10621 <per_objfile>: New member.
10622 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10623 dwarf2_per_objfile parameter. Don't set offset, set
10624 per_objfile.
10625 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10626 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10627 a dwarf2_per_objfile object instead of an offset.
10628 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10629 constructor.
10630 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10631 to dwarf2_expr_executor constructor. Don't set offset.
10632 (dwarf2_fetch_cfa_info): Update.
10633 (struct dwarf2_frame_cache) <text_offset>: Remove.
10634 <per_objfile>: New field.
10635 (dwarf2_frame_cache): Update.
10636 (dwarf2_frame_prev_register): Update.
10637 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10638 <dwarf_evaluate_loc_desc>: Add constructor.
10639 (dwarf2_evaluate_loc_desc_full): Update.
10640 (dwarf2_locexpr_baton_eval): Update.
10641 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10642 Add constructor.
10643 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10644
10645 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10646
10647 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10648 addr_sized_int_type>: Move to dwarf2_cu.
10649 <int_type>: Move to dwarf2_per_objfile.
10650 (struct dwarf2_per_objfile) <int_type>: Move here.
10651 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10652 addr_sized_int_type>: Move here.
10653 (read_func_scope): Update.
10654 (read_array_type): Update.
10655 (read_tag_string_type): Update.
10656 (attr_to_dynamic_prop): Update.
10657 (dwarf2_per_cu_data::int_type): Rename to...
10658 (dwarf2_per_objfile::int_type): ... this.
10659 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10660 (dwarf2_cu::addr_sized_int_type): ... this.
10661 (read_subrange_type): Update.
10662 (dwarf2_per_cu_data::addr_type): Rename to...
10663 (dwarf2_cu::addr_type): ... this.
10664 (set_die_type): Update.
10665
10666 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10667
10668 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10669 data through per_cu->cu.
10670
10671 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10672
10673 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10674 dwarf2_per_cu_data parameter fo dwarf2_cu.
10675 (lookup_dwo_type_unit): Likewise.
10676 (read_cutu_die_from_dwo): Likewise.
10677 (lookup_dwo_unit): Likewise.
10678 (open_and_init_dwo_file): Likewise.
10679 (lookup_dwo_cutu): Likewise.
10680 (lookup_dwo_comp_unit): Likewise.
10681 (lookup_dwo_type_unit): Likewise.
10682 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10683 (cutu_reader::cutu_reader): Update.
10684
10685 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10688 parameter.
10689 (process_full_type_unit): Likewise.
10690 (process_queue): Update.
10691
10692 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * dwarf2/read.c (recursively_compute_inclusions): Add
10695 dwarf2_per_objfile parameter.
10696 (compute_compunit_symtab_includes): Likewise.
10697 (process_cu_includes): Update.
10698
10699 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10700
10701 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10702 parameter.
10703 (create_type_unit_group): Update.
10704 (process_psymtab_comp_unit_reader): Update.
10705 (build_type_psymtabs_reader): Update.
10706
10707 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10708
10709 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10710 object through m_this_cu->cu.
10711
10712 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10713
10714 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10715 the info parameter.
10716 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10717
10718 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10719
10720 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10721 per_objfile parameter.
10722 (load_full_type_unit): Add per_objfile parameter.
10723 (read_signatured_type): Likewise.
10724 (load_full_comp_unit): Likewise.
10725 (load_cu): Likewise.
10726 (dw2_do_instantiate_symtab): Likewise.
10727 (dw2_get_file_names): Likewise.
10728 (dw2_map_symtabs_matching_filename): Update.
10729 (dw_expand_symtabs_matching_file_matcher): Update.
10730 (dw2_map_symbol_filenames): Update.
10731 (process_psymtab_comp_unit): Add per_objfile parameter.
10732 (build_type_psymtabs_1): Update.
10733 (process_skeletonless_type_unit): Update.
10734 (dwarf2_build_psymtabs_hard): Update.
10735 (load_partial_comp_unit): Add per_objfile parameter.
10736 (scan_partial_symbols): Update.
10737 (load_full_comp_unit): Add per_objfile parameter.
10738 (process_imported_unit_die): Update.
10739 (create_cus_hash_table): Update.
10740 (find_partial_die): Update.
10741 (dwarf2_read_addr_index): Update.
10742 (follow_die_offset): Update.
10743 (dwarf2_fetch_die_loc_sect_off): Update.
10744 (dwarf2_fetch_constant_bytes): Update.
10745 (dwarf2_fetch_die_type_sect_off): Update.
10746 (follow_die_sig_1): Update.
10747 (load_full_type_unit): Add per_objfile parameter.
10748 (read_signatured_type): Likewise.
10749
10750 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10751
10752 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10753 of objfile_name.
10754
10755 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10756
10757 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10758 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10759 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10760 field.
10761 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10762 (create_cus_from_index): Update.
10763 (dwarf2_read_gdb_index): Update.
10764 (create_cus_from_debug_names): Update.
10765 (dwarf2_read_debug_names): Update.
10766 (get_abbrev_section_for_cu): Update.
10767 (create_all_comp_units): Update.
10768 (read_attribute_value): Update.
10769 (get_debug_line_section): Update.
10770 * dwarf2/index-cache.c (index_cache::store): Update.
10771 * dwarf2/index-write.c (save_gdb_index_command): Update.
10772 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10773
10774 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10775
10776 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10777 member.
10778 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10779 dwarf2_per_cu_data::per_bfd.
10780 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10781 (create_type_unit_group): Likewise.
10782 (queue_comp_unit): Remove reference to
10783 per_cu->dwarf2_per_objfile.
10784 (maybe_queue_comp_unit): Likewise.
10785 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10786 (create_cus_hash_table): Assign new field.
10787
10788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10789
10790 * dwarf2/read.c: Replace
10791 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10792 dwarf2_cu->per_objfile throughout.
10793
10794 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10795
10796 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10797 parameter, don't use per_cu->dwarf2_per_objfile.
10798 (dw2_instantiate_symtab): Likewise.
10799 (dw2_find_last_source_symtab): Update.
10800 (dw2_map_expand_apply): Update.
10801 (dw2_lookup_symbol): Update.
10802 (dw2_expand_symtabs_for_function): Update.
10803 (dw2_expand_all_symtabs): Update.
10804 (dw2_expand_symtabs_with_fullname): Update.
10805 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10806 don't use per_cu->dwarf2_per_objfile.
10807 (dw2_expand_marked_cus): Update.
10808 (dw2_find_pc_sect_compunit_symtab): Update.
10809 (dw2_debug_names_lookup_symbol): Update.
10810 (dw2_debug_names_expand_symtabs_for_function): Update.
10811 (dw2_debug_names_map_matching_symbols): Update.
10812 (dwarf2_psymtab::expand_psymtab): Update.
10813
10814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10815
10816 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10817 <per_objfile>: New member.
10818 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10819 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10820 call to dwarf2_cu.
10821 (cutu_reader::cutu_reader): Update.
10822 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10823
10824 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
10825
10826 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10827 struct dwarf2_per_objfile.
10828 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10829 dwarf2_per_bfd.
10830 * dwarf2/read.c (set_die_type): Update.
10831 (get_die_type_at_offset): Update.
10832
10833 2020-05-27 Tom Tromey <tom@tromey.com>
10834 Simon Marchi <simon.marchi@efficios.com>
10835
10836 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10837 method.
10838 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10839 get_symtab, set_symtab>: New methods.
10840 <m_symtabs>: New field.
10841 (struct dwarf2_psymtab): Derive from partial_symtab.
10842 <readin_p, get_compunit_symtab>: Declare methods.
10843 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10844 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10845 New methods.
10846 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10847 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10848 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10849 (dw2_symtab_iter_next, dw2_print_stats)
10850 (dw2_expand_symtabs_with_fullname)
10851 (dw2_expand_symtabs_matching_one)
10852 (dw_expand_symtabs_matching_file_matcher)
10853 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10854 (dw2_debug_names_iterator::next)
10855 (dw2_debug_names_map_matching_symbols)
10856 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10857 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10858 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10859 New methods.
10860 (get_compunit_symtab, process_full_comp_unit)
10861 (process_full_type_unit): Update.
10862 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10863
10864 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10865
10866 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10867 then introduce a new dwarf2_per_objfile type.
10868 <read_line_string>: Move to the new dwarf2_per_objfile type.
10869 <objfile>: Likewise.
10870 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10871 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10872 dwarf2_per_objfile->per_bfd.
10873 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10874 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10875 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10876 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10877 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10878 (dwarf2_per_objfile::locate_sections): Rename to...
10879 (dwarf2_per_bfd::locate_sections): ... this.
10880 (dwarf2_per_objfile::get_cutu): Rename to...
10881 (dwarf2_per_bfd::get_cutu): ... this.
10882 (dwarf2_per_objfile::get_cu): Rename to...
10883 (dwarf2_per_bfd::get_cu): ... this.
10884 (dwarf2_per_objfile::get_tu): Rename to...
10885 (dwarf2_per_bfd::get_tu): ... this.
10886 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10887 (dwarf2_per_bfd::allocate_per_cu): ... this.
10888 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10889 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10890 (get_gdb_index_contents_ftype): Change parameter from
10891 dwarf2_per_objfile to dwarf2_per_bfd.
10892 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10893 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10894
10895 2020-05-27 Tom Tromey <tom@tromey.com>
10896 Simon Marchi <simon.marchi@efficios.com>
10897
10898 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10899 (allocate_piece_closure): Set "per_objfile" member.
10900 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10901 (locexpr_describe_location, loclist_describe_location): Use new
10902 member.
10903 * dwarf2/read.c (read_call_site_scope)
10904 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10905 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10906 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10907 handle_data_member_location): Set per_objfile member.
10908 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10909 member.
10910 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10911
10912 2020-05-27 Tom Tromey <tom@tromey.com>
10913
10914 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10915 allocate_signatured_type>: Declare new methods.
10916 <m_num_psymtabs>: New member.
10917 (struct dwarf2_per_cu_data) <index>: New member.
10918 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10919 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10920 (create_cu_from_index_list): Use allocate_per_cu.
10921 (create_signatured_type_table_from_index)
10922 (create_signatured_type_table_from_debug_names)
10923 (create_debug_type_hash_table, add_type_unit)
10924 (read_comp_units_from_section): Use allocate_signatured_type.
10925
10926 2020-05-27 Tom Tromey <tom@tromey.com>
10927
10928 * psymtab.c (partial_map_expand_apply)
10929 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10930 (psym_lookup_global_symbol_language)
10931 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10932 (psym_print_stats, psym_expand_symtabs_for_function)
10933 (psym_map_symbol_filenames, psym_map_matching_symbols)
10934 (psym_expand_symtabs_matching)
10935 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10936 (maintenance_check_psymtabs): Update.
10937 * psympriv.h (struct partial_symtab) <readin_p,
10938 get_compunit_symtab>: Add objfile parameter.
10939 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10940 Likewise.
10941 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10942 get_compunit_symtab>: Likewise.
10943 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10944
10945 2020-05-27 Tom Tromey <tom@tromey.com>
10946
10947 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10948 member.
10949 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10950 (create_cu_from_index_list)
10951 (create_signatured_type_table_from_index)
10952 (create_signatured_type_table_from_debug_names)
10953 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10954 (dwarf2_create_include_psymtab)
10955 (create_debug_type_hash_table, add_type_unit)
10956 (create_type_unit_group, read_comp_units_from_section)
10957 (dwarf2_compute_name, create_cus_hash_table)
10958 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10959 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10960 obstack.
10961 (dw2_get_real_path): Likewise. Change argument to
10962 dwarf2_per_objfile.
10963
10964 2020-05-27 Luis Machado <luis.machado@linaro.org>
10965
10966 PR tdep/26000
10967 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10968 for ldrd (immediate).
10969
10970 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10971
10972 * command.h: Add comment giving the name of class_tui.
10973 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10974 create the fake command for the help for class_tui.
10975
10976 2020-05-26 Tom Tromey <tromey@adacore.com>
10977
10978 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10979 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10980 (val_atr): New function.
10981 (value_val_atr): Use it.
10982 * ada-valprint.c (print_optional_low_bound): Change low bound
10983 handling for enums.
10984 (val_print_packed_array_elements): Don't call discrete_position.
10985 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10986 discrete_position for enum types.
10987 * language.c (default_print_array_index): Change type.
10988 * language.h (struct language_defn) <la_print_array_index>: Add
10989 index_type parameter, change type of index_value.
10990 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10991 (default_print_array_index): Update.
10992 * valprint.c (maybe_print_array_index): Don't call
10993 value_from_longest. Update.
10994 (value_print_array_elements): Don't call discrete_position.
10995
10996 2020-05-26 Tom Tromey <tromey@adacore.com>
10997
10998 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10999 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
11000
11001 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
11002
11003 PR gdb/13519
11004 * avr-tdep.c (avr_integer_to_address): Return data or code
11005 address accordingly to the second 'type' argument of the
11006 function.
11007
11008 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
11009
11010 * infcmd.c, inferior.h: (construct_inferior_arguments):
11011 Moved function from here to gdbsupport/common-inferior.{h,cc}
11012
11013 2020-05-23 Tom Tromey <tom@tromey.com>
11014
11015 Revert commit eca1f90c:
11016 * NEWS: Remove entry for completion styling.
11017 * completer.c (_rl_completion_prefix_display_length): Move
11018 declaration later.
11019 (gdb_fnprint): Revert.
11020 (gdb_display_match_list_1): Likewise.
11021 * cli/cli-style.c (completion_prefix_style)
11022 (completion_difference_style, completion_suffix_style): Remove.
11023 (_initialize_cli_style): Revert.
11024 * cli/cli-style.h (completion_prefix_style)
11025 (completion_difference_style, completion_suffix_style): Don't
11026 declare.
11027
11028 2020-05-24 Pedro Alves <palves@redhat.com>
11029
11030 * symtab.c (completion_list_add_name): Return boolean indication
11031 of whether the symbol matched.
11032 (completion_list_add_symbol): Don't try to remove C++ aliases if
11033 the symbol didn't match in the first place.
11034 * symtab.h (completion_list_add_name): Return bool.
11035
11036 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
11037
11038 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
11039 type::field.
11040
11041 2020-05-23 Joel Brobecker <brobecker@adacore.com>
11042
11043 GDB 9.2 released.
11044
11045 2020-05-23 Tom Tromey <tom@tromey.com>
11046
11047 * NEWS: Add entry for completion styling.
11048 * completer.c (_rl_completion_prefix_display_length): Move
11049 declaration earlier.
11050 (gdb_fnprint): Use completion_style.
11051 (gdb_display_match_list_1): Likewise.
11052 * cli/cli-style.c (completion_prefix_style)
11053 (completion_difference_style, completion_suffix_style): New
11054 globals.
11055 (_initialize_cli_style): Register new globals.
11056 * cli/cli-style.h (completion_prefix_style)
11057 (completion_difference_style, completion_suffix_style): Declare.
11058
11059 2020-05-23 Pedro Alves <palves@redhat.com>
11060
11061 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
11062 (parse_escape): Use ISDIGIT instead of isdigit.
11063 (puts_debug): Use gdb_isprint instead of isprint.
11064 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
11065 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
11066 ISSPACE instead of isspace.
11067 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
11068 instead of isspace.
11069 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
11070 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
11071 instead of isxdigit and ISDIGIT instead of isdigit.
11072
11073 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
11074
11075 * gdbtypes.h (struct type) <field>: New method.
11076 (TYPE_FIELDS): Remove, replace all uses with either type::fields
11077 or type::field.
11078
11079 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
11080
11081 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
11082 (TYPE_FIELDS): Use type::fields. Change all call sites that
11083 modify the propery to use type::set_fields instead.
11084
11085 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
11086
11087 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
11088 type::num_fields instead.
11089
11090 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
11091
11092 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
11093 methods.
11094 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
11095 that modify the number of fields to use type::set_num_fields
11096 instead.
11097
11098 2020-05-22 Tom Tromey <tromey@adacore.com>
11099
11100 * compile/compile-object-load.h (munmap_list_free): Don't
11101 declare.
11102
11103 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
11104
11105 * annotate.c (annotate_source_line): Update return type, add call
11106 to update current symtab and line.
11107 * annotate.h (annotate_source_line): Update return type, and
11108 extend header comment.
11109 * source.c (info_line_command): Check annotation_level before
11110 calling annotate_source_line.
11111 * stack.c (print_frame_info): If calling annotate_source_line
11112 returns true, then don't print any other source line information.
11113
11114 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
11115
11116 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
11117
11118 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
11119
11120 * coffread.c (patch_type): Remove NULL check before xfree.
11121 * corefile.c (set_gnutarget): Likewise.
11122 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
11123 * exec.c (build_section_table): Likewise.
11124 * remote.c (remote_target::pass_signals): Likewise.
11125 * utils.c (n_spaces): Likewise.
11126 * cli/cli-script.c (document_command): Likewise.
11127 * i386-windows-tdep.c (core_process_module_section): Likewise.
11128 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
11129
11130 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * symfile.c (reread_symbols): Clear objfile's section_offsets
11133 vector and section indices, re-compute them by calling
11134 sym_offsets.
11135
11136 2020-05-20 Tom Tromey <tromey@adacore.com>
11137
11138 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
11139 (desc_one_bound, desc_index_type): Compute field name.
11140
11141 2020-05-20 Tom de Vries <tdevries@suse.de>
11142
11143 PR symtab/25833
11144 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
11145
11146 2020-05-20 Alan Modra <amodra@gmail.com>
11147
11148 PR 25993
11149 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
11150 bfd_set_filename.
11151 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
11152 passed to bfd_set_filename.
11153 * symfile-mem.c (add_vsyscall_page): Likewise for string
11154 passed to symbol_file_add_from_memory.
11155 (symbol_file_add_from_memory): Make name param a const char* and
11156 don't strdup.
11157
11158 2020-05-20 Alan Modra <amodra@gmail.com>
11159
11160 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
11161 rather than accessing bfd->filename directly.
11162 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
11163 and use bfd_section_name.
11164 * dwarf2/frame.c (decode_frame_entry): Likewise.
11165 * exec.c (exec_set_section_address): Likewise.
11166 * solib-aix.c (solib_aix_bfd_open): Likewise.
11167 * stap-probe.c (get_stap_base_address): Likewise.
11168 * symfile.c (reread_symbols): Likewise.
11169
11170 2020-05-19 Tom Tromey <tromey@adacore.com>
11171
11172 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
11173
11174 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11175
11176 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
11177
11178 2020-05-19 Pedro Alves <palves@redhat.com>
11179
11180 * NEWS (set exec-file-mismatch): Adjust entry.
11181 * exec.c: Include "build-id.h".
11182 (validate_exec_file): Try to match build IDs instead of filenames.
11183 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
11184 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
11185 and pass down 'warn_if_slow'.
11186 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
11187 gdb_bfd_open_closure to pass it down.
11188 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
11189
11190 2020-05-19 Pedro Alves <palves@redhat.com>
11191
11192 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
11193 * target.c (target_fileio_open_1): Rename to target_fileio_open
11194 and make extern. Use bool.
11195 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11196 (target_fileio_read_alloc_1): Adjust.
11197 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11198 (target_fileio_open_warn_if_slow): Delete declaration.
11199
11200 2020-05-19 Pedro Alves <palves@redhat.com>
11201
11202 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11203 Adjust all callers.
11204
11205 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11206
11207 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11208 whether disp is negative.
11209
11210 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11211
11212 * symfile.h (struct symfile_segment_data)
11213 <~symfile_segment_data>: Remove.
11214 <segment_info>: Change to std::vector.
11215 * symfile.c (default_symfile_segments): Update.
11216 * elfread.c (elf_symfile_segments): Update.
11217
11218 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11219
11220 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11221 <segments>: New.
11222 <segment_bases, segment_sizes>: Remove.
11223 * symfile.c (default_symfile_segments): Update.
11224 * elfread.c (elf_symfile_segments): Update.
11225 * remote.c (remote_target::get_offsets): Update.
11226 * solib-target.c (solib_target_relocate_section_addresses):
11227 Update.
11228
11229 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
11230
11231 * symfile.h (struct symfile_segment_data): Initialize fields.
11232 <~symfile_segment_data>: Add.
11233 (symfile_segment_data_up): New.
11234 (struct sym_fns) <sym_segments>: Return a
11235 symfile_segment_data_up.
11236 (default_symfile_segments): Return a symfile_segment_data_up.
11237 (free_symfile_segment_data): Remove.
11238 (get_symfile_segment_data): Return a symfile_segment_data_up.
11239 * symfile.c (default_symfile_segments): Likewise.
11240 (get_symfile_segment_data): Likewise.
11241 (free_symfile_segment_data): Remove.
11242 (symfile_find_segment_sections): Update.
11243 * elfread.c (elf_symfile_segments): Return a
11244 symfile_segment_data_up.
11245 * remote.c (remote_target::get_offsets): Update.
11246 * solib-target.c (solib_target_relocate_section_addresses):
11247 Update.
11248 * symfile-debug.c (debug_sym_segments): Return a
11249 symfile_segment_data_up.
11250
11251 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11252
11253 PR build/25981
11254 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11255 Hardcode register numbers.
11256
11257 PR build/25981
11258 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11259 procfs_find_LDT_entry): Remove.
11260 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11261 procfs_find_LDT_entry): Remove.
11262 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11263 Remove.
11264
11265 2020-05-17 Pedro Alves <palves@redhat.com>
11266 Andrew Burgess <andrew.burgess@embecosm.com>
11267 Keno Fischer <keno@juliacomputing.com>
11268
11269 PR gdb/25741
11270 * breakpoint.c (build_target_condition_list): Update comments.
11271 (build_target_command_list): Update comments and skip matching
11272 locations.
11273 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11274 a separate function. Simplify "set breakpoint auto-hw off"
11275 handling.
11276 (insert_breakpoints): Update comment.
11277 (tracepoint_locations_match): New parameter. For breakpoints,
11278 compare location types too, if the caller wants to.
11279 (handle_automatic_hardware_breakpoints): New functions.
11280 (bp_location_is_less_than): Also sort by location type and
11281 hardware breakpoint length.
11282 (update_global_location_list): Handle "set breakpoint auto-hw on"
11283 here.
11284 (update_breakpoint_locations): Ask breakpoint_locations_match to
11285 ignore location types.
11286
11287 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11288
11289 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11290 type::name instead.
11291
11292 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11293
11294 * gdbtypes.h (struct type) <name, set_name>: New methods.
11295 (TYPE_CODE): Use type::name. Change all call sites used to set
11296 the name to use type::set_name instead.
11297
11298 2020-05-16 Tom Tromey <tom@tromey.com>
11299
11300 * top.c (quit_force): Update.
11301 * infrun.c (handle_no_resumed): Update.
11302 * top.h (all_uis): New function.
11303 (ALL_UIS): Remove.
11304
11305 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
11306
11307 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11308
11309 2020-05-16 Pedro Alves <palves@redhat.com>
11310
11311 * ia64-linux-nat.c
11312 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11313 Declare method.
11314 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11315
11316 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
11317
11318 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11319 (sparc64_adi_info): Likewise.
11320
11321 2020-05-15 Tom Tromey <tom@tromey.com>
11322
11323 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11324 block_objfile.
11325 (lookup_objfile_from_block): Remove.
11326 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11327 (lookup_global_symbol): Use block_objfile.
11328 * symtab.h (lookup_objfile_from_block): Don't declare.
11329 * printcmd.c (clear_dangling_display_expressions): Use
11330 block_objfile.
11331 * parse.c (operator_check_standard): Use block_objfile.
11332
11333 2020-05-15 Tom Tromey <tom@tromey.com>
11334
11335 * language.c (language_alloc_type_symbol): Set
11336 SYMBOL_SECTION.
11337 * symtab.c (initialize_objfile_symbol): Remove.
11338 (allocate_symbol): Remove.
11339 (allocate_template_symbol): Remove.
11340 * dwarf2/read.c (fixup_go_packaging): Use "new".
11341 (new_symbol): Use "new".
11342 (read_variable): Don't call initialize_objfile_symbol. Use
11343 "new".
11344 (read_func_scope): Use "new".
11345 * xcoffread.c (process_xcoff_symbol): Don't call
11346 initialize_objfile_symbol.
11347 (SYMBOL_DUP): Remove.
11348 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11349 "new".
11350 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11351 (allocate_template_symbol): Don't declare.
11352 (struct symbol): Add copy constructor. Change defaults.
11353 * jit.c (finalize_symtab): Use "new".
11354 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11355 Use "new".
11356 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11357 (common_block_end): Use "new".
11358 * mdebugread.c (parse_symbol): Use "new".
11359 (new_symbol): Likewise.
11360
11361 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11362
11363 * NEWS: Mention changes to help and apropos.
11364
11365 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11366
11367 * command.h (enum command_class): Improve comments, document
11368 that class_alias is for user-defined aliases, give the class
11369 name for each class, remove unused class_xdb.
11370 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11371 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11372 by a precise class.
11373 * infcmd.c (_initialize_infcmd): Likewise.
11374 * reverse.c (_initialize_reverse): Likewise.
11375 * stack.c (_initialize_stack): Likewise.
11376 * symfile.c (_initialize_symfile): Likewise.
11377 * tracepoint.c (_initialize_tracepoint): Likewise.
11378
11379 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11380
11381 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11382 when their aliased command is traversed.
11383 (help_cmd): Add fput_command_names_styled call to
11384 output command name and aliases when command has an alias.
11385
11386 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11387
11388 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11389 * cli/cli-decode.c (help_cmd_list): Declare as static,
11390 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11391 a command together with the command.
11392 (fput_command_name_styled, fput_command_names_styled): New functions.
11393 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11394 fput_command_name_styled.
11395 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11396 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11397
11398 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11399
11400 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11401 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11402 * command.h (cmd_show_list): Likewise.
11403 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11404 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11405
11406 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11407
11408 * unittests/command-def-selftests.c (traverse_command_structure):
11409 Verify all commands of a list have the same prefix command and
11410 that only the top cmdlist commands have a null prefix.
11411
11412 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11413
11414 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11415 as prefix, not one of its aliases.
11416 (set_cmd_prefix): Remove.
11417 (do_add_cmd): Centralize the setting of the prefix of a command, when
11418 command is defined after its full chain of prefix commands.
11419 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11420 (add_setshow_cmd_full): Likewise.
11421 (update_prefix_field_of_prefixed_commands): New function.
11422 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11423 update_prefix_field_of_prefixed_commands.
11424 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11425 addresses of remote_set_cmdlist and remote_show_cmdlist given
11426 as argument, not the address of an argument.
11427 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11428 * gdb/remote.c (_initialize_remote): Likewise.
11429
11430 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11431
11432 * cli/cli-cmds.c (alias_command): Check for an existing alias
11433 using lookup_cmd_composition, as valid_command_p is too strict
11434 and forbids aliases that are the prefix of an existing alias
11435 or command.
11436 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11437 command is properly recognised as a valid command.
11438
11439 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11440
11441 * unittests/help-doc-selftests.c: Rename to
11442 unittests/command-def-selftests.c
11443 * unittests/command-def-selftests.c (help_doc_tests): Update some
11444 comments.
11445 (command_structure_tests, traverse_command_structure): New namespace
11446 and function.
11447 (command_structure_invariants_tests): New function.
11448 (_initialize_command_def_selftests) Renamed from
11449 _initialize_help_doc_selftests, register command_structure_invariants
11450 selftest.
11451
11452 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11453
11454 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11455 an alias of 'show'.
11456
11457 2020-05-15 Joel Brobecker <brobecker@adacore.com>
11458
11459 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11460 ada_is_fixed_point_type. Update all callers.
11461 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11462 all callers.
11463 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11464 Update all callers.
11465 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11466 print_fixed_point_type. Update all callers.
11467 * ada-valprint.c (ada_value_print_num): Replace call to
11468 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11469
11470 2020-05-14 Kevin Buettner <kevinb@redhat.com>
11471
11472 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11473 processors.
11474 (cpu_supports_bts): Add CV_AMD case.
11475
11476 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11477 Simon Marchi <simon.marchi@efficios.com>
11478
11479 * infrun.c (stop_all_threads): Collect multiple wait events at
11480 each pass.
11481
11482 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11483
11484 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11485 type::code instead.
11486
11487 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
11488
11489 * gdbtypes.h (struct type) <code, set_code>: New methods.
11490 (TYPE_CODE): Use type::code. Change all call sites used to set
11491 the code to use type::set_code instead.
11492
11493 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11494 Tom de Vries <tdevries@suse.de>
11495 Pedro Alves <palves@redhat.com>
11496
11497 PR threads/25478
11498 * infrun.c (stop_all_threads): Do NOT ignore
11499 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11500 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11501 received.
11502 (handle_no_resumed): Remove code handling a live inferior with no
11503 threads.
11504 * remote.c (has_single_non_exited_thread): New.
11505 (remote_target::update_thread_list): Do not delete a thread if is
11506 the last thread of the process.
11507 * thread.c (thread_select): Call delete_exited_threads instead of
11508 prune_threads.
11509
11510 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11511
11512 * infrun.c (stop_all_threads): Enable/disable thread events of all
11513 targets. Move a debug message denoting the end of the function
11514 into the SCOPED_EXIT block.
11515
11516 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11517
11518 * process-stratum-target.h: Include <set>.
11519 (all_non_exited_process_targets, switch_to_target_no_thread): New
11520 function declarations.
11521 * process-stratum-target.c (all_non_exited_process_targets)
11522 (switch_to_target_no_thread): New function implementations.
11523
11524 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11525
11526 * infrun.c (handle_inferior_event): Extract out a piece of code
11527 into...
11528 (mark_non_executing_threads): ...this new function.
11529
11530 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11531
11532 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11533 use.
11534
11535 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11536
11537 * regcache.c (regcache_read_pc_protected): New function
11538 implementation that returns 0 if the PC cannot read via
11539 'regcache_read_pc'.
11540 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11541 instead of 'regcache_read_pc'.
11542 (keep_going_pass_signal): Ditto.
11543
11544 2020-05-13 Tom Tromey <tromey@adacore.com>
11545
11546 * ada-lang.c (align_value): Remove.
11547 (ada_template_to_fixed_record_type_1): Use align_up.
11548
11549 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11550
11551 * async-event.c: Update the copyright year.
11552 * async-event.h: Update the copyright year.
11553
11554 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
11555
11556 * objfiles.h (is_addr_in_objfile,
11557 shared_objfile_contains_address_p): Return bool.
11558 * objfile.c (is_addr_in_objfile,
11559 shared_objfile_contains_address_p): Return bool.
11560
11561 2020-05-11 Tom Tromey <tromey@adacore.com>
11562
11563 * cli/cli-cmds.c (info_command): Restore.
11564 (_initialize_cli_cmds): Use add_prefix_command for "info".
11565 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11566
11567 2020-05-11 Tom Tromey <tromey@adacore.com>
11568
11569 * ada-lang.c (ada_value_primitive_field): Now public.
11570 * ada-lang.h (ada_value_primitive_field): Declare.
11571 * ada-valprint.c (print_field_values): Use
11572 ada_value_primitive_field for wrapper fields.
11573
11574 2020-05-11 Tom de Vries <tdevries@suse.de>
11575
11576 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11577 MODULE_DOMAIN.
11578
11579 2020-05-11 Tom de Vries <tdevries@suse.de>
11580
11581 PR symtab/25941
11582 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11583 with length 0, if not gdb-produced.
11584 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11585
11586 2020-05-09 Tom de Vries <tdevries@suse.de>
11587
11588 PR gdb/25955
11589 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11590 calculation.
11591
11592 2020-05-09 Tom Tromey <tom@tromey.com>
11593
11594 * top.c (server_command): Now bool.
11595 * top.h (server_command): Now bool.
11596
11597 2020-05-08 Tom Tromey <tromey@adacore.com>
11598
11599 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11600 already being processed.
11601
11602 2020-05-08 Tom Tromey <tom@tromey.com>
11603
11604 * printcmd.c (struct display) <next>: Remove.
11605 <display>: New constructor.
11606 <exp_string>: Now a std::string.
11607 <enabled_p>: Now a bool.
11608 (display_number): Move definition earlier.
11609 (displays): Rename from display_chain. Now a std::vector.
11610 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11611 (display_command): Update.
11612 (do_one_display, disable_display)
11613 (enable_disable_display_command, do_enable_disable_display):
11614 Update.
11615 (free_display): Remove.
11616 (clear_displays): Rewrite.
11617 (delete_display): Update.
11618 (map_display_numbers): Use function_view. Remove "data"
11619 parameter. Update.
11620 (do_delete_display): Remove.
11621 (undisplay_command): Update.
11622 (do_one_display, do_displays, disable_display)
11623 (info_display_command): Update.
11624 (do_enable_disable_display): Remove.
11625 (enable_disable_display_command)
11626 (clear_dangling_display_expressions): Update.
11627
11628 2020-05-08 Tom Tromey <tom@tromey.com>
11629
11630 * symtab.c (set_symbol_cache_size)
11631 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11632 (maintenance_print_symbol_cache_statistics): Update.
11633 * symmisc.c (print_symbol_bcache_statistics)
11634 (print_objfile_statistics, maintenance_print_objfiles)
11635 (maintenance_info_symtabs, maintenance_check_symtabs)
11636 (maintenance_expand_symtabs, maintenance_info_line_tables):
11637 Update.
11638 * symfile-debug.c (set_debug_symfile): Update.
11639 * source.c (forget_cached_source_info): Update.
11640 * python/python.c (gdbpy_progspaces): Update.
11641 * psymtab.c (maintenance_info_psymtabs): Update.
11642 * probe.c (parse_probes): Update.
11643 * linespec.c (iterate_over_all_matching_symtabs)
11644 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11645 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11646 * exec.c (exec_target::close): Update.
11647 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11648 * breakpoint.c (print_one_breakpoint_location)
11649 (create_longjmp_master_breakpoint)
11650 (create_std_terminate_master_breakpoint): Update.
11651 * progspace.c (program_spaces): Now a std::vector.
11652 (maybe_new_address_space): Update.
11653 (add_program_space): Remove.
11654 (program_space::program_space): Update.
11655 (remove_program_space): Update.
11656 (number_of_program_spaces): Remove.
11657 (print_program_space, update_address_spaces): Update.
11658 * progspace.h (program_spaces): Change type.
11659 (ALL_PSPACES): Remove.
11660 (number_of_program_spaces): Don't declare.
11661 (struct program_space) <next>: Remove.
11662
11663 2020-05-08 Tom Tromey <tom@tromey.com>
11664
11665 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11666 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11667 (enable_break): Update.
11668 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11669 (frv_fdpic_find_canonical_descriptor): Update.
11670 (frv_fetch_objfile_link_map): Update.
11671 * progspace.c (program_space::free_all_objfiles): Update.
11672 (program_space::solibs): New method.
11673 * progspace.h (struct program_space) <solibs>: New method.
11674 * solist.h (master_so_list): Don't declare.
11675 (ALL_SO_LIBS): Remove.
11676 * solib.h (so_list_head): Remove.
11677 (update_solib_list): Update comment.
11678 * solib.c (master_so_list): Remove.
11679 (solib_used, update_solib_list, solib_add)
11680 (info_sharedlibrary_command, clear_solib)
11681 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11682
11683 2020-05-08 Tom Tromey <tom@tromey.com>
11684
11685 * extension.c (extension_languages): Now a std::array.
11686 (ALL_EXTENSION_LANGUAGES): Remove.
11687 (get_ext_lang_defn, get_ext_lang_of_file)
11688 (eval_ext_lang_from_control_command): Update.
11689 (finish_ext_lang_initialization)
11690 (auto_load_ext_lang_scripts_for_objfile)
11691 (ext_lang_type_printers::ext_lang_type_printers)
11692 (apply_ext_lang_type_printers)
11693 (ext_lang_type_printers::~ext_lang_type_printers)
11694 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11695 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11696 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11697 (get_matching_xmethod_workers, ext_lang_colorize)
11698 (ext_lang_before_prompt): Update.
11699 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11700
11701 2020-05-08 Tom Tromey <tom@tromey.com>
11702
11703 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11704 overload.
11705 <swap_string, m_string>: Remove.
11706 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11707 Update.
11708 * stabsread.c (define_symbol, read_type): Update.
11709 * linespec.c (find_linespec_symbols): Update.
11710 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11711 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11712 * dbxread.c (read_dbx_symtab): Update.
11713 * cp-support.h (cp_canonicalize_string_full)
11714 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11715 Return unique_xmalloc_ptr.
11716 * cp-support.c (inspect_type): Update.
11717 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11718 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11719 Likewise.
11720 * c-typeprint.c (print_name_maybe_canonical): Update.
11721 * break-catch-throw.c (check_status_exception_catchpoint):
11722 Update.
11723
11724 2020-05-08 Tom de Vries <tdevries@suse.de>
11725
11726 * infrun.c (follow_fork): Copy current_line and current_symtab to
11727 child thread.
11728
11729 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11730
11731 * async-event.c (struct async_signal_handler, struct
11732 async_event_handler): Reformat, remove typedef.
11733
11734 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11735
11736 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11737 access thistype->main_type->dyn_prop_list directly.
11738
11739 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11742 (remove_dyn_prop): Remove. Update all users to use
11743 type::remove_dyn_prop.
11744 * gdbtypes.c (remove_dyn_prop): Rename to...
11745 (type::remove_dyn_prop): ... this.
11746
11747 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11748
11749 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11750 (add_dyn_prop): Remove. Update all users to use
11751 type::add_dyn_prop.
11752 * gdbtypes.c (add_dyn_prop): Rename to...
11753 (type::add_dyn_prop): ... this.
11754
11755 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
11756
11757 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11758 (get_dyn_prop): Remove. Update all users to use
11759 type::dyn_prop.
11760 * gdbtypes.c (get_dyn_prop): Rename to...
11761 (type::dyn_prop): ... this.
11762
11763 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11764
11765 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11766
11767 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
11768
11769 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11770 instruction, skip it if it's there.
11771
11772 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
11773
11774 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11775
11776 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
11777
11778 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11779 * gdbtypes.c (recursive_dump_type): Remove use of
11780 TYPE_INCOMPLETE.
11781
11782 2020-05-03 Tom Tromey <tom@tromey.com>
11783
11784 * breakpoint.c (catch_command, tcatch_command): Remove.
11785 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11786 add_show_prefix_cmd.
11787 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11788 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11789 Remove.
11790 (add_internal_problem_command): Use add_basic_prefix_cmd,
11791 add_show_prefix_cmd.
11792 * mips-tdep.c (set_mipsfpu_command): Remove.
11793 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11794 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11795 (_initialize_index_cache): Use add_basic_prefix_cmd.
11796 * memattr.c (dummy_cmd): Remove.
11797 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11798 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11799 (_initialize_tui_win): Use add_basic_prefix_cmd,
11800 add_show_prefix_cmd.
11801 * cli/cli-logging.c (set_logging_command): Remove.
11802 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11803 add_show_prefix_cmd.
11804 (show_logging_command): Remove.
11805 * target.c (target_command): Remove.
11806 (add_target): Use add_basic_prefix_cmd.
11807
11808 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
11809
11810 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11811
11812 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11813
11814 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11815 info_command.
11816
11817 2020-04-30 Kamil Rytarowski <n54@gmx.com>
11818
11819 * nbsd-nat.c (nbsd_enable_proc_events)
11820 (nbsd_nat_target::post_startup_inferior): Add.
11821 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11822 (nbsd_nat_target::update_thread_list): Rewrite.
11823 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11824 "PTRACE_LWP_CREATE".
11825 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11826
11827 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11828
11829 * stack.c (_initialize_stack): Remove duplicated creation
11830 of "frame" command and "f" alias.
11831
11832 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11833
11834 PR gdb/18706
11835 * gdbtypes.c (check_typedef): Calculate size of array of
11836 stubbed type.
11837
11838 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
11839
11840 PR gdb/15559
11841 * i386-tdep.c (i386_push_dummy_call): Call
11842 i386_thiscall_push_dummy_call.
11843 (i386_thiscall_push_dummy_call): New function.
11844 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11845 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11846 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11847
11848 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11849
11850 * gdbarch.sh (do_read): Add shellcheck disable directive for
11851 warning SC2162.
11852
11853 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11854
11855 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11856 "referenced but not assigned" warning.
11857
11858 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11859
11860 * gdbarch.sh: Remove code that sets fallbackdefault.
11861
11862 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11863
11864 * gdbarch.sh: Use shell operators && and || instead of
11865 -a and -o.
11866
11867 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11868
11869 * gdbarch.sh: Use $(...) instead of `...`.
11870
11871 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11872
11873 * gdbarch.sh: Use double quotes around variables.
11874
11875 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
11876
11877 * gdbarch.sh: Use %s with printf, instead of variables in the
11878 format string.
11879
11880 2020-04-29 Tom Tromey <tromey@adacore.com>
11881
11882 PR ada/25875:
11883 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11884 type fields here.
11885 (read_enumeration_type): Call
11886 update_enumeration_type_from_children later. Update comments.
11887 (process_enumeration_scope): Don't create type fields.
11888
11889 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11890
11891 * nbsd-tdep.c: Include "xml-syscall.h".
11892 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11893
11894 2020-04-29 Kamil Rytarowski <n54@gmx.com>
11895
11896 * nbsd-nat.c: Include "sys/wait.h".
11897 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11898 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11899 (nbsd_nat_target::remove_exec_catchpoint)
11900 (nbsd_nat_target::set_syscall_catchpoint): Add.
11901 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11902 (nbsd_nat_target::insert_exec_catchpoint)
11903 (nbsd_nat_target::remove_exec_catchpoint)
11904 (nbsd_nat_target::set_syscall_catchpoint): Add.
11905 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11906 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11907 `nbsd_get_syscall_number'.
11908
11909 2020-04-29 Tom Tromey <tom@tromey.com>
11910
11911 * stack.c (print_block_frame_labels): Remove.
11912
11913 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
11914
11915 PR gdb/17320
11916 * ada-valprint.c (val_print_packed_array_elements): Move array
11917 end bracket to new line.
11918 (ada_val_print_string): Remove extra spaces before first array
11919 element.
11920 * c-valprint.c (c_value_print_array): Likewise.
11921 * m2-valprint.c (m2_print_array_contents): Likewise.
11922 (m2_value_print_inner): Likewise.
11923 * p-valprint.c (pascal_value_print_inner): Likewise.
11924 * valprint.c (generic_val_print_array): Likewise.
11925 (value_print_array_elements): Move first array element and array
11926 end bracket to new line.
11927
11928 2020-04-29 Tom de Vries <tdevries@suse.de>
11929
11930 PR symtab/25889
11931 * linespec.c (find_method): Fix ix calculation.
11932
11933 2020-04-28 Kamil Rytarowski <n54@gmx.com>
11934
11935 * syscalls/update-netbsd.sh: New file.
11936 * syscalls/netbsd.xml: Regenerate.
11937 * data-directory/Makefile.in: Register `netbsd.xml' in
11938 `SYSCALLS_FILES'.
11939
11940 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11941
11942 * syscalls/update-freebsd.sh: Add double quotes.
11943
11944 2020-04-28 Tom Tromey <tom@tromey.com>
11945
11946 * NEWS: Update.
11947 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11948 (cmdpy_init): Allow class_tui.
11949
11950 2020-04-28 Mark Williams <mark@myosotissp.com>
11951
11952 PR gdb/24480
11953 * dwarf2read.c: Add missing assingments to list_in_scope when
11954 start_symtab was already called.
11955
11956 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
11957
11958 PR gdb/25881
11959 * dwarf2/read.c (offset_map_type): Use
11960 gdb:hash_enum<sect_offset> as hash function.
11961
11962 2020-04-28 Tom de Vries <tdevries@suse.de>
11963
11964 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11965 with DW_AT_signature.
11966
11967 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
11968
11969 * configure.ac: Remove check for fs_base/gs_base in
11970 user_regs_struct.
11971 * configure: Re-generate.
11972 * config.in: Re-generate.
11973 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11974 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11975 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11976
11977 2020-04-27 Luis Machado <luis.machado@linaro.org>
11978
11979 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11980 problematic inline frame unwinding situation.
11981 * frame.c (frame_id_computed_p): New function.
11982 * frame.h (frame_id_computed_p): New prototype.
11983
11984 2020-04-26 Tom Tromey <tom@tromey.com>
11985
11986 * command.h (enum command_class) <class_pseudo>: Remove.
11987
11988 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11989
11990 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11991 and whitespace.
11992
11993 2020-04-25 Kamil Rytarowski <n54@gmx.com>
11994
11995 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11996 `PT_GET_PROCESS_STATE' block.
11997
11998 2020-04-24 Tom Tromey <tom@tromey.com>
11999
12000 * symtab.h (symbol_get_demangled_name): Don't declare.
12001 * symtab.c (symbol_get_demangled_name): Remove.
12002 (general_symbol_info::natural_name)
12003 (general_symbol_info::demangled_name): Update.
12004
12005 2020-04-24 Tom Tromey <tom@tromey.com>
12006
12007 PR rust/25025:
12008 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
12009
12010 2020-04-24 Tom Tromey <tom@tromey.com>
12011
12012 PR symtab/12707:
12013 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
12014 exists.
12015 (new_symbol): Likewise.
12016 * compile/compile-object-load.c (get_out_value_type): Use
12017 symbol_matches_search_name.
12018
12019 2020-04-24 Tom Tromey <tom@tromey.com>
12020
12021 * dwarf2/read.c (add_partial_symbol): Do not call
12022 compute_and_set_names.
12023
12024 2020-04-24 Tom Tromey <tom@tromey.com>
12025
12026 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
12027 overload.
12028
12029 2020-04-24 Tom Tromey <tom@tromey.com>
12030
12031 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
12032 (add_psymbol_to_list): New overload. Make old overload call new
12033 one.
12034 * psympriv.h (add_psymbol_to_list): New overload.
12035
12036 2020-04-24 Tom Tromey <tom@tromey.com>
12037
12038 * dwarf2/read.c (partial_die_info::read) <case
12039 DW_AT_linkage_name>: Use value_as_string.
12040 (dwarf2_string_attr): Use value_as_string.
12041 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
12042 method.
12043 * dwarf2/attribute.c (attribute::value_as_string): New method.
12044
12045 2020-04-24 Tom Tromey <tom@tromey.com>
12046
12047 * symtab.c (general_symbol_info::natural_name)
12048 (general_symbol_info::demangled_name): Check for language_rust.
12049
12050 2020-04-24 Tom Tromey <tom@tromey.com>
12051
12052 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
12053 (dwarf2_physname): ... from here.
12054 (partial_die_info::read): Add Rust "{" hack.
12055
12056 2020-04-24 Tom Tromey <tom@tromey.com>
12057
12058 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
12059 method.
12060 (symbol_set_demangled_name): Don't declare.
12061 * symtab.c (general_symbol_info::set_demangled_name): Rename from
12062 symbol_set_demangled_name.
12063 (general_symbol_info::set_language)
12064 (general_symbol_info::compute_and_set_names): Update.
12065 * minsyms.c (minimal_symbol_reader::install): Update.
12066 * dwarf2/read.c (new_symbol): Update.
12067
12068 2020-04-24 Tom Tromey <tromey@adacore.com>
12069
12070 PR python/23662:
12071 * python/py-type.c (convert_field): Handle
12072 FIELD_LOC_KIND_DWARF_BLOCK.
12073 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
12074 (typy_get_dynamic): Nw function.
12075 (type_object_getset): Add "dynamic".
12076 * NEWS: Add entry.
12077
12078 2020-04-24 Tom Tromey <tromey@adacore.com>
12079
12080 * ada-typeprint.c (print_choices, print_variant_part)
12081 (print_record_field_types_dynamic): New functions.
12082 (print_record_field_types): Use print_record_field_types_dynamic.
12083
12084 2020-04-24 Tom Tromey <tromey@adacore.com>
12085
12086 * dwarf2/read.c (handle_data_member_location): New overload.
12087 (dwarf2_add_field): Use it.
12088 (decode_locdesc): Add "computed" parameter. Update comment.
12089 * gdbtypes.c (is_dynamic_type_internal): Also look for
12090 FIELD_LOC_KIND_DWARF_BLOCK.
12091 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
12092 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
12093 virtual base classes.
12094 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
12095 FIELD_LOC_KIND_DWARF_BLOCK.
12096
12097 2020-04-24 Tom Tromey <tromey@adacore.com>
12098
12099 * dwarf2/read.c (read_structure_type): Handle dynamic length.
12100 * gdbtypes.c (is_dynamic_type_internal): Check
12101 TYPE_HAS_DYNAMIC_LENGTH.
12102 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
12103 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
12104 New macros.
12105 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
12106 constant.
12107
12108 2020-04-24 Tom Tromey <tromey@adacore.com>
12109
12110 * dwarf2/read.c (struct variant_field): Rewrite.
12111 (struct variant_part_builder): New.
12112 (struct nextfield): Remove "variant" field. Add "offset".
12113 (struct field_info): Add "current_variant_part" and
12114 "variant_parts".
12115 (alloc_discriminant_info): Remove.
12116 (alloc_rust_variant): New function.
12117 (quirk_rust_enum): Update.
12118 (dwarf2_add_field): Set "offset" member. Don't handle
12119 DW_TAG_variant_part.
12120 (offset_map_type): New typedef.
12121 (convert_variant_range, create_one_variant)
12122 (create_one_variant_part, create_variant_parts)
12123 (add_variant_property): New functions.
12124 (dwarf2_attach_fields_to_type): Call add_variant_property.
12125 (read_structure_type): Don't handle DW_TAG_variant_part.
12126 (handle_variant_part, handle_variant): New functions.
12127 (handle_struct_member_die): Use them.
12128 (process_structure_scope): Don't handle variant parts.
12129 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
12130 (struct discriminant_info): Remove.
12131 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
12132 (struct main_type) <flag_discriminated_union>: Remove.
12133 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
12134 (rust_enum_variant): Return int. Remove "contents". Rewrite.
12135 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
12136 Update.
12137 * valops.c (value_union_variant): Remove.
12138 * value.h (value_union_variant): Don't declare.
12139
12140 2020-04-24 Tom Tromey <tromey@adacore.com>
12141
12142 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
12143 (ada_value_primitive_packed_val): Update.
12144 * ada-valprint.c (ada_value_print_1): Update.
12145 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
12146 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
12147 just an address. Use evaluate_for_locexpr_baton.
12148 (dwarf2_evaluate_property): Update.
12149 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
12150 array_view.
12151 * findvar.c (default_read_var_value): Update.
12152 * gdbtypes.c (compute_variant_fields_inner)
12153 (resolve_dynamic_type_internal): Update.
12154 (resolve_dynamic_type): Change type of valaddr parameter.
12155 * gdbtypes.h (resolve_dynamic_type): Update.
12156 * valarith.c (value_subscripted_rvalue): Update.
12157 * value.c (value_from_contents_and_address): Update.
12158
12159 2020-04-24 Tom Tromey <tromey@adacore.com>
12160
12161 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
12162 "push_initial_value" parameter.
12163 (dwarf2_evaluate_property): Likewise.
12164 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
12165
12166 2020-04-24 Tom Tromey <tromey@adacore.com>
12167
12168 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
12169 (variant::matches, compute_variant_fields_recurse)
12170 (compute_variant_fields_inner, compute_variant_fields): New
12171 functions.
12172 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
12173 Use resolved_type after type is made.
12174 (operator==): Add new cases.
12175 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
12176 (struct discriminant_range, struct variant, struct variant_part):
12177 New.
12178 (union dynamic_prop_data) <variant_parts, original_type>: New
12179 members.
12180 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
12181 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
12182 constants.
12183 * value.c (unpack_bits_as_long): Now public.
12184 * value.h (unpack_bits_as_long): Declare.
12185
12186 2020-04-24 Tom Tromey <tromey@adacore.com>
12187
12188 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
12189 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
12190
12191 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
12192
12193 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
12194
12195 2020-04-24 Kamil Rytarowski <n54@gmx.com>
12196
12197 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12198 (remove_fork_catchpoint, post_startup_inferior)
12199 (post_attach): Move...
12200 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12201 (remove_fork_catchpoint, post_startup_inferior)
12202 (post_attach): ...here.
12203 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12204 (remove_fork_catchpoint, post_startup_inferior)
12205 (post_attach): Move...
12206 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12207 (remove_fork_catchpoint, post_startup_inferior)
12208 (post_attach): ...here.
12209
12210 2020-04-24 Tom Tromey <tromey@adacore.com>
12211
12212 * nat/windows-nat.h (struct windows_thread_info)
12213 <pc_adjusted>: New member.
12214 * windows-nat.c (windows_fetch_one_register): Check
12215 pc_adjusted.
12216 (windows_nat_target::get_windows_debug_event)
12217 (windows_nat_target::wait): Set pc_adjusted.
12218
12219 2020-04-24 Tom de Vries <tdevries@suse.de>
12220
12221 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12222 Run gdb-add-index inside temp dir.
12223
12224 2020-04-23 Tom Tromey <tromey@adacore.com>
12225
12226 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12227 in loop.
12228
12229 2020-04-23 Luis Machado <luis.machado@linaro.org>
12230
12231 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12232 get_frame_register instead of gdbarch_unwind_pc.
12233
12234 2020-04-23 Tom de Vries <tdevries@suse.de>
12235
12236 * symtab.c (lookup_global_symbol): Prefer def over decl.
12237
12238 2020-04-23 Tom de Vries <tdevries@suse.de>
12239
12240 PR symtab/25807
12241 * block.c (best_symbol, better_symbol): Promote to external.
12242 * block.h (best_symbol, better_symbol): Declare.
12243 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12244 decl.
12245
12246 2020-04-23 Tom Tromey <tromey@adacore.com>
12247
12248 PR ada/25837:
12249 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12250 "const char *", not a "const std::string &".
12251 <name_and_matcher::operator==>: Update.
12252 * unittests/lookup_name_info-selftests.c: Change type of
12253 "result".
12254
12255 2020-04-23 Tom Tromey <tom@tromey.com>
12256
12257 * inferior.h (iterate_over_inferiors): Don't declare.
12258 * inferior.c (iterate_over_inferiors): Remove.
12259 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12260 Remove.
12261 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12262 use iterate_over_inferiors.
12263 (darwin_resume_inferior_it)
12264 (struct resume_inferior_threads_param)
12265 (darwin_resume_inferior_threads_it): Remove.
12266 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12267
12268 2020-04-23 Tom de Vries <tdevries@suse.de>
12269
12270 * blockframe.c (find_pc_partial_function): Use
12271 find_pc_sect_compunit_symtab rather than
12272 objfile->sf->qf->find_pc_sect_compunit_symtab.
12273
12274 2020-04-22 Tom de Vries <tdevries@suse.de>
12275
12276 PR symtab/25764
12277 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12278 in psymtabs.
12279
12280 2020-04-22 Tom de Vries <tdevries@suse.de>
12281
12282 PR symtab/25801
12283 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12284 symtabs.
12285
12286 2020-04-22 Tom de Vries <tdevries@suse.de>
12287
12288 PR symtab/25700
12289 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12290 CU if already created.
12291
12292 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12293
12294 * infrun.c (displaced_step_fixup): Switch to the event_thread
12295 before calling displaced_step_restore, not after.
12296
12297 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12298
12299 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12300 its inferior is not recorded by us.
12301 (record_btrace_target_open): Replace call to
12302 all_non_exited_threads () with call to current_inferior
12303 ()->non_exited_threads ().
12304 (record_btrace_target::stop_recording): Likewise.
12305 (record_btrace_target::close): Likewise.
12306 (record_btrace_target::wait): Likewise.
12307 (record_btrace_target::record_stop_replaying): Likewise.
12308
12309 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12310
12311 * btrace.c (btrace_enable): Throw an error on double enables and
12312 when enabling recording fails.
12313 (btrace_disable): Throw an error if the thread is not recorded.
12314
12315 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12316
12317 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12318 request if we do not have a thread_info.
12319
12320 2020-04-21 Tom de Vries <tdevries@suse.de>
12321
12322 PR gdb/25471
12323 * thread.c
12324 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12325 exception in get_frame_id.
12326
12327 2020-04-20 Tom Tromey <tromey@adacore.com>
12328
12329 * python/python.c (struct gdbpy_event): Mark move constructor as
12330 noexcept.
12331 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12332 constructor as noexcept.
12333 * completer.h (struct completion_result): Mark move constructor as
12334 noexcept.
12335 * completer.c (completion_result::completion_result): Use
12336 initialization style. Don't call reset_match_list.
12337
12338 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12339
12340 * MAINTAINERS (Write After Approval): Add myself.
12341
12342 2020-04-18 Tom Tromey <tom@tromey.com>
12343
12344 * windows-tdep.c (init_w32_command_list)
12345 (w32_prefix_command_valid): Restore.
12346 (_initialize_windows_tdep): Call init_w32_command_list.
12347
12348 2020-04-18 Tom Tromey <tom@tromey.com>
12349
12350 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12351 * value.c (value_fn_field): Update.
12352 * valops.c (find_function_in_inferior)
12353 (value_allocate_space_in_inferior): Update.
12354 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12355 Update.
12356 * tui/tui-source.c (tui_source_window::set_contents): Update.
12357 * symtab.c (lookup_global_or_static_symbol)
12358 (find_function_start_sal_1, skip_prologue_sal)
12359 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12360 * symmisc.c (dump_msymbols, dump_symtab_1)
12361 (maintenance_print_one_line_table): Update.
12362 * symfile.c (init_entry_point_info, section_is_mapped)
12363 (list_overlays_command, simple_read_overlay_table)
12364 (simple_overlay_update_1): Update.
12365 * stap-probe.c (handle_stap_probe): Update.
12366 * stabsread.c (dbx_init_float_type, define_symbol)
12367 (read_one_struct_field, read_enum_type, read_range_type): Update.
12368 * source.c (info_line_command): Update.
12369 * python/python.c (gdbpy_source_objfile_script)
12370 (gdbpy_execute_objfile_script): Update.
12371 * python/py-type.c (save_objfile_types): Update.
12372 * python/py-objfile.c (py_free_objfile): Update.
12373 * python/py-inferior.c (python_new_objfile): Update.
12374 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12375 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12376 (maintenance_check_psymtabs): Update.
12377 * printcmd.c (info_address_command): Update.
12378 * objfiles.h (struct objfile) <arch>: New method, from
12379 get_objfile_arch.
12380 (get_objfile_arch): Don't declare.
12381 * objfiles.c (get_objfile_arch): Remove.
12382 (filter_overlapping_sections): Update.
12383 * minsyms.c (msymbol_is_function): Update.
12384 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12385 (output_nondebug_symbol): Update.
12386 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12387 (mdebug_expand_psymtab): Update.
12388 * machoread.c (macho_add_oso_symfile): Update.
12389 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12390 Update.
12391 * linux-fork.c (checkpoint_command): Update.
12392 * linespec.c (convert_linespec_to_sals): Update.
12393 * jit.c (finalize_symtab): Update.
12394 * infrun.c (insert_exception_resume_from_probe): Update.
12395 * ia64-tdep.c (ia64_find_unwind_table): Update.
12396 * hppa-tdep.c (internalize_unwinds): Update.
12397 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12398 Update.
12399 * gcore.c (call_target_sbrk): Update.
12400 * elfread.c (record_minimal_symbol, elf_symtab_read)
12401 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12402 (elf_gnu_ifunc_resolve_by_got): Update.
12403 * dwarf2/read.c (create_addrmap_from_index)
12404 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12405 (read_debug_names_from_section)
12406 (process_psymtab_comp_unit_reader, add_partial_symbol)
12407 (add_partial_subprogram, process_full_comp_unit)
12408 (read_file_scope, read_func_scope, read_lexical_block_scope)
12409 (read_call_site_scope, dwarf2_ranges_read)
12410 (dwarf2_record_block_ranges, dwarf2_add_field)
12411 (mark_common_block_symbol_computed, read_tag_pointer_type)
12412 (read_tag_string_type, dwarf2_init_float_type)
12413 (dwarf2_init_complex_target_type, read_base_type)
12414 (partial_die_info::read, partial_die_info::read)
12415 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12416 (dwarf2_fetch_die_loc_sect_off): Update.
12417 * dwarf2/loc.c (dwarf2_find_location_expression)
12418 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12419 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12420 (dwarf2_loc_desc_get_symbol_read_needs)
12421 (locexpr_describe_location_piece, locexpr_describe_location_1)
12422 (loclist_describe_location): Update.
12423 * dwarf2/index-write.c (write_debug_names): Update.
12424 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12425 * dtrace-probe.c (dtrace_process_dof): Update.
12426 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12427 (process_one_symbol): Update.
12428 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12429 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12430 (coff_read_enum_type): Update.
12431 * cli/cli-cmds.c (edit_command, list_command): Update.
12432 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12433 * breakpoint.c (create_overlay_event_breakpoint)
12434 (create_longjmp_master_breakpoint)
12435 (create_std_terminate_master_breakpoint)
12436 (create_exception_master_breakpoint, get_sal_arch): Update.
12437 * block.c (block_gdbarch): Update.
12438 * annotate.c (annotate_source_line): Update.
12439
12440 2020-04-17 Tom Tromey <tromey@adacore.com>
12441
12442 * auto-load.c (show_auto_load_cmd): Remove.
12443 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12444 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12445 (maintenance_print_arc_command): Remove.
12446 * tui/tui-win.c (tui_command): Remove.
12447 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12448 * tui/tui-layout.c (tui_layout_command): Remove.
12449 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12450 * python/python.c (user_set_python, user_show_python): Remove.
12451 (_initialize_python): Use add_basic_prefix_cmd,
12452 add_show_prefix_cmd.
12453 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12454 (install_gdb_commands): Use add_basic_prefix_cmd,
12455 add_show_prefix_cmd.
12456 (info_guile_command): Remove.
12457 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12458 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12459 add_show_prefix_cmd.
12460 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12461 Remove do_set and do_show parameters.
12462 * cli/cli-style.c (set_style, show_style): Remove.
12463 (_initialize_cli_style): Use add_basic_prefix_cmd,
12464 add_show_prefix_cmd.
12465 (cli_style_option::add_setshow_commands): Remove do_set and
12466 do_show parameters.
12467 (cli_style_option::add_setshow_commands): Use
12468 add_basic_prefix_cmd, add_show_prefix_cmd.
12469 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12470 (set_style_name): Remove.
12471 * cli/cli-dump.c (dump_command, append_command): Remove.
12472 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12473 (tekhex_dump_command, binary_dump_command)
12474 (binary_append_command): Remove.
12475 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12476 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12477 (init_w32_command_list): Remove; move into ...
12478 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12479 * valprint.c (set_print, show_print, set_print_raw)
12480 (show_print_raw): Remove.
12481 (_initialize_valprint): Use add_basic_prefix_cmd,
12482 add_show_prefix_cmd.
12483 * typeprint.c (set_print_type, show_print_type): Remove.
12484 (_initialize_typeprint): Use add_basic_prefix_cmd,
12485 add_show_prefix_cmd.
12486 * record.c (set_record_command, show_record_command): Remove.
12487 (_initialize_record): Use add_basic_prefix_cmd,
12488 add_show_prefix_cmd.
12489 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12490 add_show_prefix_cmd.
12491 (info_command, show_command, set_debug, show_debug): Remove.
12492 * top.h (set_history, show_history): Don't declare.
12493 * top.c (set_history, show_history): Remove.
12494 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12495 (unset_tdesc_cmd): Remove.
12496 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12497 add_show_prefix_cmd.
12498 * symtab.c (info_module_command): Remove.
12499 (_initialize_symtab): Use add_basic_prefix_cmd.
12500 * symfile.c (overlay_command): Remove.
12501 (_initialize_symfile): Use add_basic_prefix_cmd.
12502 * sparc64-tdep.c (info_adi_command): Remove.
12503 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12504 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12505 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12506 add_show_prefix_cmd.
12507 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12508 (_initialize_serial): Use add_basic_prefix_cmd,
12509 add_show_prefix_cmd.
12510 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12511 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12512 add_show_prefix_cmd.
12513 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12514 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12515 add_show_prefix_cmd.
12516 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12517 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12518 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12519 add_show_prefix_cmd.
12520 * remote.c (remote_command, set_remote_cmd): Remove.
12521 (_initialize_remote): Use add_basic_prefix_cmd.
12522 * record-full.c (set_record_full_command)
12523 (show_record_full_command): Remove.
12524 (_initialize_record_full): Use add_basic_prefix_cmd,
12525 add_show_prefix_cmd.
12526 * record-btrace.c (cmd_set_record_btrace)
12527 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12528 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12529 (cmd_show_record_btrace_pt): Remove.
12530 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12531 add_show_prefix_cmd.
12532 * ravenscar-thread.c (set_ravenscar_command)
12533 (show_ravenscar_command): Remove.
12534 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12535 add_show_prefix_cmd.
12536 * mips-tdep.c (show_mips_command, set_mips_command)
12537 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12538 add_show_prefix_cmd.
12539 * maint.c (maintenance_command, maintenance_info_command)
12540 (maintenance_check_command, maintenance_print_command)
12541 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12542 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12543 add_show_prefix_cmd.
12544 (show_per_command_cmd): Remove.
12545 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12546 Remove.
12547 (maintenance_show_test_settings_cmd): Remove.
12548 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12549 add_show_prefix_cmd.
12550 * maint-test-options.c (maintenance_test_options_command):
12551 Remove.
12552 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12553 * macrocmd.c (macro_command): Remove
12554 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12555 * language.c (set_check, show_check): Remove.
12556 (_initialize_language): Use add_basic_prefix_cmd,
12557 add_show_prefix_cmd.
12558 * infcmd.c (unset_command): Remove.
12559 (_initialize_infcmd): Use add_basic_prefix_cmd.
12560 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12561 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12562 add_show_prefix_cmd.
12563 * go32-nat.c (go32_info_dos_command): Remove.
12564 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12565 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12566 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12567 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12568 (_initialize_frame): Use add_basic_prefix_cmd,
12569 add_show_prefix_cmd.
12570 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12571 (_initialize_dcache): Use add_basic_prefix_cmd,
12572 add_show_prefix_cmd.
12573 * cp-support.c (maint_cplus_command): Remove.
12574 (_initialize_cp_support): Use add_basic_prefix_cmd.
12575 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12576 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12577 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12578 add_basic_prefix_cmd, add_show_prefix_cmd.
12579 * breakpoint.c (save_command): Remove.
12580 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12581 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12582 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12583 add_show_prefix_cmd.
12584 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12585 (set_ada_command, show_ada_command): Remove.
12586 (_initialize_ada_language): Use add_basic_prefix_cmd,
12587 add_show_prefix_cmd.
12588 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12589
12590 2020-04-16 Kamil Rytarowski <n54@gmx.com>
12591
12592 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12593 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12594
12595 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12596
12597 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12598 warning messages.
12599
12600 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12601
12602 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12603 import table is not at beginning of .idata section.
12604
12605 2020-04-16 Pedro Alves <palves@redhat.com>
12606
12607 * inferior.c (delete_inferior): Use delete operator directly
12608 instead of delete_program_space.
12609 * progspace.c (add_program_space): New, factored out from
12610 program_space::program_space.
12611 (remove_program_space): New, factored out from
12612 delete_program_space.
12613 (program_space::program_space): Remove intro comment. Rewrite.
12614 (program_space::~program_space): Remove intro comment. Call
12615 remove_program_space.
12616 (delete_program_space): Delete.
12617 * progspace.h (program_space::program_space): Make explicit. Move
12618 intro comment here, adjusted.
12619 (program_space::~program_space): Move intro comment here,
12620 adjusted.
12621 (delete_program_space): Remove.
12622
12623 2020-04-16 Tom Tromey <tromey@adacore.com>
12624
12625 * windows-nat.c (windows_nat::handle_access_violation): New
12626 function.
12627 * nat/windows-nat.h (handle_access_violation): Declare.
12628 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12629 windows-nat.c. Call handle_access_violation.
12630
12631 2020-04-16 Tom de Vries <tdevries@suse.de>
12632
12633 PR symtab/25791
12634 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12635 CUs without psymtab.
12636
12637 2020-04-16 Kevin Buettner <kevinb@redhat.com>
12638
12639 * python/python.c (do_start_initialization): Don't call
12640 PyEval_InitThreads for Python 3.9 and beyond.
12641
12642 2020-04-15 Kamil Rytarowski <n54@gmx.com>
12643
12644 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12645 thread functions.
12646 (obsd_nat_target::wait): Likewise.
12647
12648 2020-04-15 Tom Tromey <tromey@adacore.com>
12649
12650 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12651 (DEBUG_EXCEPT): Use debug_printf.
12652
12653 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12654
12655 * completer.c (class completion_tracker::completion_hash_entry)
12656 <hash_name>: New member function.
12657 (completion_tracker::discard_completions): New callback to hash a
12658 completion_hash_entry, pass this to htab_create_alloc.
12659
12660 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12661
12662 * windows-nat.c (windows_make_so): Warn rather than stopping with
12663 an error if realpath() fails.
12664
12665 2020-04-14 Kamil Rytarowski <n54@gmx.com>
12666
12667 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12668 (nbsd_nat_target::info_proc): Add do_status.
12669
12670 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12671 Tom de Vries <tdevries@suse.de>
12672
12673 PR symtab/25718
12674 * psympriv.h (struct partial_symtab::read_symtab)
12675 (struct partial_symtab::expand_psymtab)
12676 (struct partial_symtab::read_dependencies): Update comments.
12677 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12678 read_symtab for includer.
12679 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12680 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12681 (struct dwarf2_include_psymtab::m_readin): Remove.
12682 (struct dwarf2_include_psymtab::includer): New member function.
12683 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12684
12685 2020-04-14 Tom de Vries <tdevries@suse.de>
12686
12687 PR symtab/25720
12688 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12689 with NULL symbol_matcher and lookup_name.
12690 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12691 and lookup_name.
12692 * dwarf2/read.c (dw2_expand_symtabs_matching)
12693 (dw2_debug_names_expand_symtabs_matching): Same.
12694 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12695 Make lookup_name a pointer. Update comment.
12696 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12697 lookup_name being a pointer.
12698 * symfile.c (expand_symtabs_matching): Same.
12699 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12700 * linespec.c (iterate_over_all_matching_symtabs): Same.
12701
12702 2020-04-13 Tom Tromey <tom@tromey.com>
12703
12704 * run-on-main-thread.c: Update include.
12705 * unittests/main-thread-selftests.c: Update include.
12706 * tui/tui-win.c: Update include.
12707 * tui/tui-io.c: Update include.
12708 * tui/tui-interp.c: Update include.
12709 * tui/tui-hooks.c: Update include.
12710 * top.h: Update include.
12711 * top.c: Update include.
12712 * ser-base.c: Update include.
12713 * remote.c: Update include.
12714 * remote-notif.c: Update include.
12715 * remote-fileio.c: Update include.
12716 * record-full.c: Update include.
12717 * record-btrace.c: Update include.
12718 * python/python.c: Update include.
12719 * posix-hdep.c: Update include.
12720 * mingw-hdep.c: Update include.
12721 * mi/mi-main.c: Update include.
12722 * mi/mi-interp.c: Update include.
12723 * main.c: Update include.
12724 * linux-nat.c: Update include.
12725 * interps.c: Update include.
12726 * infrun.c: Update include.
12727 * inf-loop.c: Update include.
12728 * event-top.c: Update include.
12729 * event-loop.c: Move to ../gdbsupport/.
12730 * event-loop.h: Move to ../gdbsupport/.
12731 * async-event.h: Update include.
12732 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12733
12734 2020-04-13 Tom Tromey <tom@tromey.com>
12735
12736 * tui/tui-win.c: Include async-event.h.
12737 * remote.c: Include async-event.h.
12738 * remote-notif.c: Include async-event.h.
12739 * record-full.c: Include async-event.h.
12740 * record-btrace.c: Include async-event.h.
12741 * infrun.c: Include async-event.h.
12742 * event-top.c: Include async-event.h.
12743 * event-loop.h: Move some declarations to async-event.h.
12744 * event-loop.c: Don't include ser-event.h or top.h. Move some
12745 code to async-event.c.
12746 * async-event.h: New file.
12747 * async-event.c: New file.
12748 * Makefile.in (COMMON_SFILES): Add async-event.c.
12749 (HFILES_NO_SRCDIR): Add async-event.h.
12750
12751 2020-04-13 Tom Tromey <tom@tromey.com>
12752
12753 * utils.c (flush_streams): New function.
12754 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12755
12756 2020-04-13 Tom Tromey <tom@tromey.com>
12757
12758 * event-loop.c (handle_file_event): Use warning, not
12759 printf_unfiltered.
12760
12761 2020-04-13 Tom Tromey <tom@tromey.com>
12762
12763 * event-loop.c: Include <chrono>.
12764
12765 2020-04-13 Tom Tromey <tom@tromey.com>
12766
12767 * gdb_select.h: Move to ../gdbsupport/.
12768 * event-loop.c: Update include path.
12769 * top.c: Update include path.
12770 * ser-base.c: Update include path.
12771 * ui-file.c: Update include path.
12772 * ser-tcp.c: Update include path.
12773 * guile/scm-ports.c: Update include path.
12774 * posix-hdep.c: Update include path.
12775 * ser-unix.c: Update include path.
12776 * gdb_usleep.c: Update include path.
12777 * mingw-hdep.c: Update include path.
12778 * inflow.c: Update include path.
12779 * infrun.c: Update include path.
12780 * event-top.c: Update include path.
12781
12782 2020-04-13 Tom Tromey <tom@tromey.com>
12783
12784 * configure: Rebuild.
12785 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12786
12787 2020-04-13 Tom Tromey <tom@tromey.com>
12788
12789 * event-loop.h (start_event_loop): Don't declare.
12790 * event-loop.c (start_event_loop): Move...
12791 * main.c (start_event_loop): ...here. Now static.
12792
12793 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12794
12795 * MAINTAINERS: Update my email address.
12796
12797 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12798
12799 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12800 IP_ALL.
12801
12802 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12803
12804 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
12805 (nbsd_nat_target::info_proc): Add do_cmdline.
12806
12807 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12808
12809 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
12810 (nbsd_nat_target::info_proc): Add do_cwd.
12811
12812 2020-04-12 Kamil Rytarowski <n54@gmx.com>
12813
12814 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12815
12816 2020-04-11 Kamil Rytarowski <n54@gmx.com>
12817
12818 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12819 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12820 (nbsd_nat_target::info_proc): New functions.
12821 * nbsd-nat.c (kinfo_get_vmmap): New function.
12822 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12823 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12824 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12825 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12826 functions.
12827 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12828 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12829 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12830 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12831 (KINFO_VME_FLAG_GROWS_DOWN): New.
12832
12833 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12834
12835 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12836 bit shift.
12837
12838 2020-04-10 Tom Tromey <tromey@adacore.com>
12839
12840 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12841
12842 2020-04-10 Tom Tromey <tromey@adacore.com>
12843
12844 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12845 separate debug files.
12846
12847 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
12848
12849 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12850 Move to...
12851 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12852 ... here.
12853 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12854 Check for STATUS_WX86_BREAKPOINT.
12855 (windows_nat_target::wait): Same.
12856
12857 2020-04-10 Tom de Vries <tdevries@suse.de>
12858
12859 PR cli/25808
12860 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12861
12862 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12863
12864 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12865 (Write After Approval): Remove Tom de Vries.
12866
12867 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12868
12869 revert partially:
12870 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12871
12872 * buildsym.c (record_line): Fix undefined behavior and preserve
12873 lines at eof.
12874
12875 2020-04-09 Kamil Rytarowski <n54@gmx.com>
12876
12877 * auxv.h (svr4_auxv_parse): New.
12878 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12879 and generic_auxv_parse.
12880 (svr4_auxv_parse): Add.
12881 * obsd-tdep.c: Include "auxv.h".
12882 (obsd_auxv_parse): Remove.
12883 (obsd_init_abi): Remove comment.
12884 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12885 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12886 * nbsd-tdep.c: Include "auxv.h".
12887 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12888
12889 2020-04-08 Tom Tromey <tromey@adacore.com>
12890
12891 * nat/windows-nat.h (last_wait_event): Don't declare.
12892 (wait_for_debug_event): Update comment.
12893 * nat/windows-nat.c (last_wait_event): Now static.
12894
12895 2020-04-08 Tom Tromey <tromey@adacore.com>
12896
12897 * windows-nat.c (wait_for_debug_event): Move to
12898 nat/windows-nat.c.
12899 * nat/windows-nat.h (wait_for_debug_event): Declare.
12900 * nat/windows-nat.c (wait_for_debug_event): Move from
12901 windows-nat.c. No longer static.
12902
12903 2020-04-08 Tom Tromey <tromey@adacore.com>
12904
12905 * windows-nat.c (get_windows_debug_event): Use
12906 fetch_pending_stop.
12907 * nat/windows-nat.h (fetch_pending_stop): Declare.
12908 * nat/windows-nat.c (fetch_pending_stop): New function.
12909
12910 2020-04-08 Tom Tromey <tromey@adacore.com>
12911
12912 * windows-nat.c (windows_continue): Use matching_pending_stop and
12913 continue_last_debug_event.
12914 * nat/windows-nat.h (matching_pending_stop)
12915 (continue_last_debug_event): Declare.
12916 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12917 (matching_pending_stop, continue_last_debug_event): New
12918 functions.
12919
12920 2020-04-08 Tom Tromey <tromey@adacore.com>
12921
12922 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12923 (handle_exception_result): Move to nat/windows-nat.h.
12924 (DEBUG_EXCEPTION_SIMPLE): Remove.
12925 (windows_nat::handle_ms_vc_exception): New function.
12926 (handle_exception): Move to nat/windows-nat.c.
12927 (get_windows_debug_event): Update.
12928 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12929 nat/windows-nat.c.
12930 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12931 (handle_exception_result): Move from windows-nat.c.
12932 (handle_exception): Declare.
12933 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12934 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12935 windows-nat.c.
12936
12937 2020-04-08 Tom Tromey <tromey@adacore.com>
12938
12939 * windows-nat.c (exception_count, event_count): Remove.
12940 (handle_exception, get_windows_debug_event)
12941 (do_initial_windows_stuff): Update.
12942
12943 2020-04-08 Tom Tromey <tromey@adacore.com>
12944
12945 * windows-nat.c (windows_nat::handle_load_dll)
12946 (windows_nat::handle_unload_dll): Rename. No longer static.
12947 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12948 Declare.
12949
12950 2020-04-08 Tom Tromey <tromey@adacore.com>
12951
12952 * complaints.h (stop_whining): Declare at top-level.
12953 (complaint): Don't declare stop_whining.
12954
12955 2020-04-08 Tom Tromey <tromey@adacore.com>
12956
12957 * windows-nat.c (windows_nat::handle_output_debug_string):
12958 Rename. No longer static.
12959 * nat/windows-nat.h (handle_output_debug_string): Declare.
12960
12961 2020-04-08 Tom Tromey <tromey@adacore.com>
12962
12963 * windows-nat.c (current_process_handle, current_process_id)
12964 (main_thread_id, last_sig, current_event, last_wait_event)
12965 (current_windows_thread, desired_stop_thread_id, pending_stops)
12966 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12967 (display_selectors, fake_create_process)
12968 (get_windows_debug_event): Update.
12969 * nat/windows-nat.h (current_process_handle, current_process_id)
12970 (main_thread_id, last_sig, current_event, last_wait_event)
12971 (current_windows_thread, desired_stop_thread_id, pending_stops)
12972 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12973 * nat/windows-nat.c (current_process_handle, current_process_id)
12974 (main_thread_id, last_sig, current_event, last_wait_event)
12975 (current_windows_thread, desired_stop_thread_id, pending_stops)
12976 (siginfo_er): New globals. Move from windows-nat.c.
12977
12978 2020-04-08 Tom Tromey <tromey@adacore.com>
12979
12980 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12981 (handle_load_dll): Update.
12982 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12983
12984 2020-04-08 Tom Tromey <tromey@adacore.com>
12985
12986 * windows-nat.c (enum thread_disposition_type): Move to
12987 nat/windows-nat.h.
12988 (windows_nat::thread_rec): Rename from thread_rec. No longer
12989 static.
12990 (windows_add_thread, windows_nat_target::fetch_registers)
12991 (windows_nat_target::store_registers, handle_exception)
12992 (windows_nat_target::resume, get_windows_debug_event)
12993 (windows_nat_target::get_tib_address)
12994 (windows_nat_target::thread_name)
12995 (windows_nat_target::thread_alive): Update.
12996 * nat/windows-nat.h (enum thread_disposition_type): Move from
12997 windows-nat.c.
12998 (thread_rec): Declare.
12999
13000 2020-04-08 Tom Tromey <tromey@adacore.com>
13001
13002 * windows-nat.c: Add "using namespace".
13003 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
13004 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
13005
13006 2020-04-08 Tom Tromey <tromey@adacore.com>
13007
13008 * nat/windows-nat.h (struct windows_thread_info): Declare
13009 destructor.
13010 * nat/windows-nat.c (~windows_thread_info): New.
13011
13012 2020-04-08 Tom Tromey <tromey@adacore.com>
13013
13014 PR gdb/22992
13015 * windows-nat.c (current_event): Update comment.
13016 (last_wait_event, desired_stop_thread_id): New globals.
13017 (struct pending_stop): New.
13018 (pending_stops): New global.
13019 (windows_nat_target) <stopped_by_sw_breakpoint>
13020 <supports_stopped_by_sw_breakpoint>: New methods.
13021 (windows_fetch_one_register): Add assertions. Adjust PC.
13022 (windows_continue): Handle pending stops. Suspend other threads
13023 when stepping. Use last_wait_event
13024 (wait_for_debug_event): New function.
13025 (get_windows_debug_event): Use wait_for_debug_event. Handle
13026 pending stops. Queue spurious stops.
13027 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
13028 (windows_nat_target::kill): Use wait_for_debug_event.
13029 * nat/windows-nat.h (struct windows_thread_info)
13030 <stopped_at_software_breakpoint>: New field.
13031 * nat/windows-nat.c (windows_thread_info::resume): Clear
13032 stopped_at_software_breakpoint.
13033
13034 2020-04-08 Tom Tromey <tromey@adacore.com>
13035
13036 * windows-nat.c (enum thread_disposition_type): New.
13037 (thread_rec): Replace "get_context" parameter with "disposition";
13038 change type.
13039 (windows_add_thread, windows_nat_target::fetch_registers)
13040 (windows_nat_target::store_registers, handle_exception)
13041 (windows_nat_target::resume, get_windows_debug_event)
13042 (windows_nat_target::get_tib_address)
13043 (windows_nat_target::thread_name)
13044 (windows_nat_target::thread_alive): Update.
13045
13046 2020-04-08 Tom Tromey <tromey@adacore.com>
13047
13048 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
13049 (windows_continue): Use windows_continue::resume.
13050 * nat/windows-nat.h (struct windows_thread_info) <suspend,
13051 resume>: Declare new methods.
13052 * nat/windows-nat.c: New file.
13053 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
13054
13055 2020-04-08 Tom Tromey <tromey@adacore.com>
13056
13057 * windows-nat.c (windows_add_thread, windows_delete_thread)
13058 (windows_nat_target::fetch_registers)
13059 (windows_nat_target::store_registers, fake_create_process)
13060 (windows_nat_target::resume, windows_nat_target::resume)
13061 (get_windows_debug_event, windows_nat_target::wait)
13062 (windows_nat_target::pid_to_str)
13063 (windows_nat_target::get_tib_address)
13064 (windows_nat_target::get_ada_task_ptid)
13065 (windows_nat_target::thread_name)
13066 (windows_nat_target::thread_alive): Use lwp, not tid.
13067
13068 2020-04-08 Tom Tromey <tromey@adacore.com>
13069
13070 * windows-nat.c (handle_exception)
13071 (windows_nat_target::thread_name): Update.
13072 * nat/windows-nat.h (windows_thread_info): Remove destructor.
13073 <name>: Now unique_xmalloc_ptr.
13074
13075 2020-04-08 Tom Tromey <tromey@adacore.com>
13076
13077 * windows-nat.c (thread_rec)
13078 (windows_nat_target::fetch_registers): Update.
13079 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
13080 Update comment.
13081 <debug_registers_changed, reload_context>: Now bool.
13082
13083 2020-04-08 Tom Tromey <tromey@adacore.com>
13084
13085 * windows-nat.c (windows_add_thread): Use new.
13086 (windows_init_thread_list, windows_delete_thread): Use delete.
13087 (get_windows_debug_event): Update.
13088 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
13089 destructor, and initializers.
13090
13091 2020-04-08 Tom Tromey <tromey@adacore.com>
13092
13093 * windows-nat.c (struct windows_thread_info): Remove.
13094 * nat/windows-nat.h: New file.
13095
13096 2020-04-08 Tom Tromey <tromey@adacore.com>
13097
13098 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
13099 (thread_rec, windows_add_thread, windows_delete_thread)
13100 (windows_continue): Update.
13101
13102 2020-04-08 Tom Tromey <tromey@adacore.com>
13103
13104 * windows-nat.c (struct windows_thread_info): Remove typedef.
13105 (thread_head): Remove.
13106 (thread_list): New global.
13107 (thread_rec, windows_add_thread, windows_init_thread_list)
13108 (windows_delete_thread, windows_continue): Update.
13109
13110 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
13111
13112 * windows-tdep.h (windows_init_abi): Add comment.
13113 (cygwin_init_abi): New declaration.
13114 * windows-tdep.c: Split signal enumeration in two, one for
13115 Windows and one for Cygwin.
13116 (windows_gdb_signal_to_target): Only deal with signal of the
13117 Windows OS ABI.
13118 (cygwin_gdb_signal_to_target): New function.
13119 (windows_init_abi): Rename to windows_init_abi_common, don't set
13120 gdb_signal_to_target gdbarch method. Add new new function with
13121 this name.
13122 (cygwin_init_abi): New function.
13123 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
13124 comment. Don't call windows_init_abi.
13125 (amd64_windows_init_abi): Add comment, call windows_init_abi.
13126 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
13127 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
13128 i386_windows_init_abi_common, don't call windows_init_abi. Add
13129 a new function of this name.
13130 (i386_cygwin_init_abi): New function.
13131 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
13132 OS ABI Cygwin.
13133
13134 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
13135
13136 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
13137 parameter.c.
13138 (dwarf2_read_gdb_index): Update.
13139
13140 2020-04-07 Kamil Rytarowski <n54@gmx.com>
13141
13142 * nbsd-tdep.c: Include "objfiles.h".
13143 (nbsd_skip_solib_resolver): New.
13144 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
13145
13146 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13147
13148 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
13149 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
13150 with DW_LLE_base_addressx are being emitted in DWARFv5.
13151 Add the newly added kind DW_LOC_OFFSET_PAIR also.
13152 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
13153 unsigned integer.
13154
13155 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13156
13157 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
13158 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
13159 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
13160 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
13161 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
13162 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
13163 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
13164
13165
13166 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13167
13168 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
13169 (read_loclist_index): New function definition.
13170 (lookup_loclist_base): New function definition.
13171 (read_loclist_header): New function definition.
13172 (dwarf2_cu): Add loclist_base and loclist_header field.
13173 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
13174 (read_full_die_1): Read the value of DW_AT_loclists_base.
13175 (read_attribute_reprocess): Handle DW_FORM_loclistx.
13176 (read_attribute_value): Handle DW_FORM_loclistx.
13177 (skip_one_die): Handle DW_FORM_loclistx.
13178 (loclist_header): New structure declaration.
13179 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
13180
13181 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13182
13183 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
13184 constructor. Remove `addr` parameter from other constructor and
13185 add `per_cu` parameter.
13186 * dwarf2/read.c (create_partial_symtab): Update.
13187
13188 2020-04-07 Tom de Vries <tdevries@suse.de>
13189
13190 PR symtab/25796
13191 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
13192 (partial_die_info::fixup): Inherit has_const_value.
13193
13194 2020-04-07 Tom de Vries <tdevries@suse.de>
13195
13196 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13197 symbols without address.
13198
13199 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13200
13201 * nbsd-nat.h (struct thread_info): Add forward declaration.
13202 (nbsd_nat_target::thread_alive): Add.
13203 (nbsd_nat_target::thread_name): Likewise.
13204 (nbsd_nat_target::update_thread_list): Likewise.
13205 (update_thread_list::post_attach): Likewise.
13206 (post_attach::pid_to_str): Likewise.
13207 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13208 (nbsd_thread_lister): Add.
13209 (nbsd_nat_target::thread_alive): Likewise.
13210 (nbsd_nat_target::thread_name): Likewise.
13211 (nbsd_add_threads): Likewise.
13212 (update_thread_list::post_attach): Likewise.
13213 (nbsd_nat_target::update_thread_list): Likewise.
13214 (post_attach::pid_to_str): Likewise.
13215
13216 2020-04-06 Tom Tromey <tromey@adacore.com>
13217
13218 * ada-valprint.c (print_variant_part): Extract the variant field.
13219 (print_field_values): Use the field as the outer value when
13220 recursing.
13221
13222 2020-04-06 Tom Tromey <tromey@adacore.com>
13223
13224 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13225 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13226 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13227 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13228 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13229
13230 2020-04-06 Tom Tromey <tromey@adacore.com>
13231
13232 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13233 TYPE_CODE_ERROR.
13234
13235 2020-04-06 Kamil Rytarowski <n54@gmx.com>
13236
13237 * nbsd-tdep.c: Include "gdbarch.h".
13238 Define enum with NetBSD signal numbers.
13239 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13240 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13241 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13242 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13243 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13244 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13245 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13246 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13247 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13248 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13249 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13250 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13251
13252 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
13253
13254 PR gdb/25325
13255 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13256
13257 2020-04-03 Tom Tromey <tromey@adacore.com>
13258
13259 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13260 Read constant block.
13261
13262 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13263
13264 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13265 (gdb_bfd_get_full_section_contents): New declaration.
13266 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13267 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13268 gdb_bfd_get_full_section_contents.
13269
13270 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13271
13272 * exec.c (build_section_table): Replace internal_error with
13273 gdb_assert.
13274 (section_table_xfer_memory_partial): Likewise.
13275 * mdebugread.c (parse_partial_symbols): Likewise.
13276 * psymtab.c (lookup_partial_symbol): Likewise.
13277 * utils.c (wrap_here): Likewise.
13278
13279 2020-04-02 Tom Tromey <tromey@adacore.com>
13280
13281 * f-lang.c (build_fortran_types): Use arch_type to initialize
13282 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13283
13284 2020-04-02 Tom Tromey <tromey@adacore.com>
13285
13286 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13287 of attributes.
13288
13289 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13290 Bernd Edlinger <bernd.edlinger@hotmail.de>
13291 Tom Tromey <tromey@adacore.com>
13292
13293 * buildsym.c (buildsym_compunit::record_line): Remove
13294 deduplication code.
13295
13296 2020-04-02 Tom de Vries <tdevries@suse.de>
13297
13298 PR ada/24671
13299 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13300
13301 2020-04-02 Tom de Vries <tdevries@suse.de>
13302
13303 * dwarf2/read.c (dwarf2_gdb_index_functions,
13304 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13305 NULL.
13306 * psymtab.c (psym_lookup_global_symbol_language): New function.
13307 (psym_functions): Init psym_lookup_global_symbol_language with
13308 psym_lookup_global_symbol_language.
13309 * symfile-debug.c (debug_sym_quick_functions): Init
13310 lookup_global_symbol_language with NULL.
13311 * symfile.c (set_initial_language): Remove fixme comment.
13312 * symfile.h (struct quick_symbol_functions): Add
13313 lookup_global_symbol_language.
13314 * symtab.c (find_quick_global_symbol_language): New function.
13315 (find_main_name): Use find_quick_global_symbol_language.
13316
13317 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13318
13319 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13320
13321 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13322
13323 * buildsym.c (record_line): Fix undefined behavior and preserve
13324 lines at eof.
13325
13326 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13327
13328 * buildsym.c (record_line): Fix the resizing condition.
13329
13330 2020-04-01 Tom Tromey <tom@tromey.com>
13331
13332 * value.h (value_literal_complex): Add comment.
13333 * valops.c (value_literal_complex): Refer to value.h.
13334
13335 2020-04-01 Tom Tromey <tom@tromey.com>
13336
13337 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13338 (scalar_type): New rule, from typebase.
13339 (typebase): Use scalar_type. Recognize complex types.
13340 (field_name): Handle FLOAT_KEYWORD.
13341 (ident_tokens): Add _Complex and __complex__.
13342
13343 2020-04-01 Tom Tromey <tom@tromey.com>
13344
13345 PR exp/25299:
13346 * valarith.c (promotion_type, complex_binop): New functions.
13347 (scalar_binop): Handle complex numbers. Use promotion_type.
13348 (value_pos, value_neg, value_complement): Handle complex numbers.
13349
13350 2020-04-01 Tom Tromey <tom@tromey.com>
13351
13352 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13353 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13354 (parse_number): Handle complex numbers.
13355
13356 2020-04-01 Tom Tromey <tom@tromey.com>
13357
13358 * c-valprint.c (c_decorations): Change complex suffix to "i".
13359
13360 2020-04-01 Tom Tromey <tom@tromey.com>
13361
13362 * valprint.c (generic_value_print_complex): Use accessors.
13363 * value.h (value_real_part, value_imaginary_part): Declare.
13364 * valops.c (value_real_part, value_imaginary_part): New
13365 functions.
13366 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13367
13368 2020-04-01 Tom Tromey <tom@tromey.com>
13369
13370 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13371 (read_range_type): Update.
13372 * mdebugread.c (basic_type): Update.
13373 * go-lang.c (build_go_types): Use init_complex_type.
13374 * gdbtypes.h (struct main_type) <complex_type>: New member.
13375 (init_complex_type): Update.
13376 (arch_complex_type): Don't declare.
13377 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13378 Make name if none given. Use alloc_type_copy. Look for cached
13379 complex type.
13380 (arch_complex_type): Remove.
13381 (gdbtypes_post_init): Use init_complex_type.
13382 * f-lang.c (build_fortran_types): Use init_complex_type.
13383 * dwarf2/read.c (read_base_type): Update.
13384 * d-lang.c (build_d_types): Use init_complex_type.
13385 * ctfread.c (read_base_type): Update.
13386
13387 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13388
13389 * infrun.c (stop_all_threads): Update assertion, plus when
13390 stopping threads, take into account that we might be trying
13391 to stop an all-stop target.
13392 (stop_waiting): Call 'stop_all_threads' if there exists a
13393 non-stop target.
13394
13395 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13396
13397 * target.h (exists_non_stop_target): New function declaration.
13398 * target.c (exists_non_stop_target): New function.
13399
13400 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
13401
13402 PR gdb/24789
13403 * eval.c (is_integral_or_integral_reference): New function.
13404 (evaluate_subexp_standard): Allow integer references in
13405 pointer arithmetic.
13406
13407 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13408
13409 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13410 check for no ptid in the stop reply when the target is non-stop.
13411
13412 2020-04-01 Tom Tromey <tromey@adacore.com>
13413
13414 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13415 "name" parameter to rvalue reference. Initialize m_name_holder.
13416 <lookup_name_info>: New overloads.
13417 <name>: Return gdb::string_view.
13418 <c_str>: New method.
13419 <make_ignore_params>: Update.
13420 <search_name_hash>: Update.
13421 <language_lookup_name>: Return const char *.
13422 <m_name>: Change type.
13423 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13424 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13425 (lookup_name_info::match_any): Update.
13426 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13427 Update.
13428 * minsyms.c (linkage_name_str): Update.
13429 * language.c (default_symbol_name_matcher): Update.
13430 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13431 Update.
13432 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13433 (ada_lookup_name_info::ada_lookup_name_info): Update.
13434 (literal_symbol_name_matcher): Update.
13435
13436 2020-04-01 Tom Tromey <tromey@adacore.com>
13437
13438 * psymtab.c (psymtab_search_name): Remove function.
13439 (psym_lookup_symbol): Create search name and lookup name here.
13440 (lookup_partial_symbol): Remove "name" parameter; add
13441 lookup_name.
13442 (psym_expand_symtabs_for_function): Update.
13443
13444 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
13445
13446 PR tui/25597:
13447 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13448
13449 2020-03-31 Tom Tromey <tromey@adacore.com>
13450
13451 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13452 memcpy.
13453
13454 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
13455
13456 * features/riscv/32bit-csr.xml: Regenerated.
13457 * features/riscv/64bit-csr.xml: Regenerated.
13458
13459 2020-03-30 Tom Tromey <tromey@adacore.com>
13460
13461 * ada-valprint.c (print_variant_part): Update.
13462 * ada-lang.h (ada_which_variant_applies): Update.
13463 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13464 outer_valaddr parameters; replace with "outer" value parameter.
13465 (to_fixed_variant_branch_type): Update.
13466
13467 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13468
13469 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13470 <list>. Remove inclusion of observable.h.
13471 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13472 (struct arch_lwp_info): New struct.
13473 (class ppc_linux_dreg_interface): New class.
13474 (struct ppc_linux_process_info): New struct.
13475 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13476 <low_new_clone, low_forget_process, low_prepare_to_resume>
13477 <copy_thread_dreg_state, mark_thread_stale>
13478 <mark_debug_registers_changed, register_hw_breakpoint>
13479 <clear_hw_breakpoint, register_wp, clear_wp>
13480 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13481 <num_memory_accesses, get_trigger_type>
13482 <create_watchpoint_request, hwdebug_point_cmp>
13483 <init_arch_lwp_info, get_arch_lwp_info>
13484 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13485 methods.
13486 <struct ptid_hash>: New inner struct.
13487 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13488 members.
13489 (saved_dabr_value, hwdebug_info, max_slots_number)
13490 (struct hw_break_tuple, struct thread_points, ppc_threads)
13491 (have_ptrace_hwdebug_interface)
13492 (hwdebug_find_thread_points_by_tid)
13493 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13494 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13495 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13496 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13497 use m_dreg_interface.
13498 (hwdebug_point_cmp): Change to...
13499 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13500 reference arguments instead of pointers.
13501 (ppc_linux_nat_target::ranged_break_num_registers): Use
13502 m_dreg_interface.
13503 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13504 m_dreg_interface. Call register_hw_breakpoint.
13505 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13506 m_dreg_interface. Call clear_hw_breakpoint.
13507 (get_trigger_type): Change to...
13508 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13509 comment.
13510 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13511 use m_dreg_interface. Call register_hw_breakpoint.
13512 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13513 use m_dreg_interface. Call clear_hw_breakpoint.
13514 (can_use_watchpoint_cond_accel): Change to...
13515 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13516 method. Update comment, use m_dreg_interface and
13517 m_process_info.
13518 (calculate_dvc): Change to...
13519 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13520 m_dreg_interface.
13521 (num_memory_accesses): Change to...
13522 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13523 (check_condition): Change to...
13524 (ppc_linux_nat_target::check_condition): ...this method.
13525 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13526 comment, use m_dreg_interface.
13527 (create_watchpoint_request): Change to...
13528 (ppc_linux_nat_target::create_watchpoint_request): ...this
13529 method. Use m_dreg_interface.
13530 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13531 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13532 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13533 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13534 (ppc_linux_nat_target::low_forget_process)
13535 (ppc_linux_nat_target::low_new_fork)
13536 (ppc_linux_nat_target::low_new_clone)
13537 (ppc_linux_nat_target::low_delete_thread)
13538 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13539 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13540 only call mark_thread_stale.
13541 (ppc_linux_thread_exit): Remove.
13542 (ppc_linux_nat_target::stopped_data_address): Change to...
13543 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13544 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13545 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13546 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13547 comment. Call low_stopped_data_address.
13548 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13549 m_dreg_interface.
13550 (ppc_linux_nat_target::masked_watch_num_registers): Use
13551 m_dreg_interface.
13552 (ppc_linux_nat_target::copy_thread_dreg_state)
13553 (ppc_linux_nat_target::mark_thread_stale)
13554 (ppc_linux_nat_target::mark_debug_registers_changed)
13555 (ppc_linux_nat_target::register_hw_breakpoint)
13556 (ppc_linux_nat_target::clear_hw_breakpoint)
13557 (ppc_linux_nat_target::register_wp)
13558 (ppc_linux_nat_target::clear_wp)
13559 (ppc_linux_nat_target::init_arch_lwp_info)
13560 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13561 (_initialize_ppc_linux_nat): Remove observer callback.
13562
13563 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13564
13565 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13566 (ppc_linux_nat_target::auxv_parse)
13567 (ppc_linux_nat_target::read_description)
13568 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13569 Move up.
13570
13571 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13572
13573 * linux-nat.h (low_new_clone): New method.
13574 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13575
13576 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13577
13578 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13579 (dbx_expand_psymtab): ... this.
13580 (start_psymtab): Update.
13581 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13582 (mdebug_expand_psymtab): ... this.
13583 (parse_partial_symbols): Update.
13584 (new_psymtab): Update.
13585 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13586 (xcoff_expand_psymtab): ... this.
13587 (xcoff_start_psymtab): Update.
13588
13589 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13590
13591 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13592 <expand_dependencies>: ... this.
13593 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13594 (partial_symtab::expand_dependencies): ... this.
13595 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13596 Update.
13597 (dwarf2_psymtab::expand_psymtab): Update.
13598 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13599 * mdebugread.c (psymtab_to_symtab_1): Update.
13600 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13601
13602 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13603
13604 * psympriv.h (discard_psymtab): Remove.
13605 * dbxread.c (dbx_end_psymtab): Update.
13606 * xcoffread.c (xcoff_end_psymtab): Update.
13607
13608 2020-03-28 Tom Tromey <tom@tromey.com>
13609
13610 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13611 comment.
13612
13613 2020-03-28 Tom Tromey <tom@tromey.com>
13614
13615 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13616
13617 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
13618
13619 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13620
13621 2020-03-26 John Baldwin <jhb@FreeBSD.org>
13622
13623 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13624
13625 2020-03-26 Tom Tromey <tom@tromey.com>
13626
13627 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13628 (mark_common_block_symbol_computed, read_tag_string_type)
13629 (attr_to_dynamic_prop, read_subrange_type): Update.
13630 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13631 to be methods on struct attribute.
13632 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13633 (read_call_site_scope, partial_die_info::read)
13634 (partial_die_info::read, lookup_die_type, follow_die_ref):
13635 Update.
13636 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13637 from dwarf2_get_ref_die_offset.
13638 (attribute::constant_value): New method, from
13639 dwarf2_get_attr_constant_value.
13640 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13641 Declare method.
13642 <constant_value>: New method.
13643
13644 2020-03-26 Tom Tromey <tom@tromey.com>
13645
13646 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13647 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13648 (dwarf_type_encoding_name): Move to stringify.c.
13649 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13650 * dwarf2/stringify.c: New file.
13651 * dwarf2/stringify.h: New file.
13652
13653 2020-03-26 Tom Tromey <tom@tromey.com>
13654
13655 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13656 Rewrite.
13657
13658 2020-03-26 Tom Tromey <tom@tromey.com>
13659
13660 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13661 methods.
13662 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13663 (lookup_ranges_base): Likewise.
13664 (read_cutu_die_from_dwo, read_full_die_1): Update.
13665
13666 2020-03-26 Tom Tromey <tom@tromey.com>
13667
13668 * dwarf2/read.c (read_import_statement, read_file_scope)
13669 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13670 (read_lexical_block_scope, read_call_site_scope)
13671 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13672 (handle_struct_member_die, process_structure_scope)
13673 (update_enumeration_type_from_children)
13674 (process_enumeration_scope, read_array_type, read_common_block)
13675 (read_namespace, read_module, read_subroutine_type): Update.
13676 (sibling_die): Remove.
13677
13678 2020-03-26 Tom Tromey <tom@tromey.com>
13679
13680 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13681 (build_type_psymtabs_reader, read_structure_type)
13682 (read_enumeration_type, read_full_die_1): Update.
13683 (dwarf2_attr_no_follow): Move to die.h.
13684 * dwarf2/die.h (struct die_info) <attr>: New method.
13685
13686 2020-03-26 Tom Tromey <tom@tromey.com>
13687
13688 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13689 <base_address>: Now an optional.
13690 (dwarf2_find_base_address, dwarf2_rnglists_process)
13691 (dwarf2_ranges_process, fill_in_loclist_baton)
13692 (dwarf2_symbol_mark_computed): Update.
13693
13694 2020-03-26 Tom Tromey <tom@tromey.com>
13695
13696 * dwarf2/read.c (struct die_info): Move to die.h.
13697 * dwarf2/die.h: New file.
13698
13699 2020-03-26 Tom Tromey <tom@tromey.com>
13700
13701 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13702 * dwarf2/read.c
13703 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13704 Move to line-header.c.
13705 (read_checked_initial_length_and_offset, read_formatted_entries):
13706 Likewise.
13707 (dwarf_decode_line_header): Split into two.
13708 * dwarf2/line-header.c
13709 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13710 Move from read.c.
13711 (read_checked_initial_length_and_offset, read_formatted_entries):
13712 Likewise.
13713 (dwarf_decode_line_header): New function, split from read.c.
13714
13715 2020-03-26 Tom Tromey <tom@tromey.com>
13716
13717 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13718 Declare method.
13719 * dwarf2/read.c (read_attribute_value): Update.
13720 (dwarf2_per_objfile::read_line_string): Rename from
13721 read_indirect_line_string.
13722 (read_formatted_entries): Update.
13723
13724 2020-03-26 Tom Tromey <tom@tromey.com>
13725
13726 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13727 variable.
13728
13729 2020-03-26 Tom Tromey <tom@tromey.com>
13730
13731 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13732 const.
13733 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13734 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13735 parameter const.
13736
13737 2020-03-26 Tom Tromey <tom@tromey.com>
13738
13739 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13740 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13741 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13742 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13743
13744 2020-03-26 Tom Tromey <tom@tromey.com>
13745
13746 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13747 file_names_size, file_full_name, file_file_name>: Use const.
13748 <file_name_at, file_names>: Add const overload.
13749 * dwarf2/line-header.c (line_header::file_file_name)
13750 (line_header::file_full_name): Update.
13751
13752 2020-03-26 Tom Tromey <tom@tromey.com>
13753
13754 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13755 (macro_start_file, consume_improper_spaces)
13756 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13757 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13758 (dwarf_decode_macros): Move to macro.c.
13759 * dwarf2/macro.c: New file.
13760 * dwarf2/macro.h: New file.
13761 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13762
13763 2020-03-26 Tom Tromey <tom@tromey.com>
13764
13765 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13766 method.
13767 * dwarf2/section.c: New method. From
13768 read_indirect_string_at_offset_from.
13769 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13770 (read_indirect_string_at_offset_from): Move to section.c.
13771 (read_indirect_string_at_offset): Rewrite.
13772 (read_indirect_line_string_at_offset): Remove.
13773 (read_indirect_string, read_indirect_line_string)
13774 (dwarf_decode_macro_bytes): Update.
13775
13776 2020-03-26 Tom Tromey <tom@tromey.com>
13777
13778 * dwarf2/section.h (struct dwarf2_section_info)
13779 <overload_complaint>: Declare.
13780 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13781 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13782 Rename from dwarf2_section_buffer_overflow_complaint.
13783 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13784 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13785
13786 2020-03-26 Tom Tromey <tom@tromey.com>
13787
13788 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13789 Declare.
13790 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13791 Move from read.c.
13792 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13793 to section.c.
13794
13795 2020-03-26 Tom Tromey <tom@tromey.com>
13796
13797 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13798
13799 2020-03-26 Tom Tromey <tom@tromey.com>
13800
13801 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13802 "builder".
13803 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13804 parameter.
13805 (dwarf_decode_macros): Update.
13806
13807 2020-03-26 Tom Tromey <tom@tromey.com>
13808
13809 * dwarf2/read.c (read_attribute_value): Update.
13810 (read_indirect_string_from_dwz): Move to dwz.c; change into
13811 method.
13812 (dwarf_decode_macro_bytes): Update.
13813 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13814 * dwarf2/dwz.c: New file.
13815 * Makefile.in (COMMON_SFILES): Add dwz.c.
13816
13817 2020-03-26 Tom Tromey <tom@tromey.com>
13818
13819 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13820 * dwarf2/read.c: Add include.
13821 * dwarf2/index-write.c: Add include.
13822 * dwarf2/index-cache.c: Add include.
13823 * dwarf2/dwz.h: New file.
13824
13825 2020-03-25 Tom Tromey <tom@tromey.com>
13826
13827 * compile/compile-object-load.c (get_out_value_type): Mention
13828 correct symbol name in error message.
13829
13830 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
13831
13832 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13833
13834 2020-03-25 Tom de Vries <tdevries@suse.de>
13835
13836 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13837 * symmisc.c (dump_symtab_1): Print user and includes fields.
13838 (maintenance_info_symtabs): Same.
13839
13840 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13841
13842 PR gdb/25534
13843 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13844 (riscv_regcache_cooked_write): New function.
13845 (riscv_push_dummy_call): Use new function.
13846 (riscv_return_value): Likewise.
13847
13848 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13849
13850 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13851 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13852 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13853 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13854 * infrun.c (follow_fork): Likewise.
13855 (follow_fork_inferior): Likewise.
13856 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13857 * linux-nat.h (class linux_nat_target): Likewise.
13858 * remote.c (class remote_target) <follow_fork>: Likewise.
13859 (remote_target::follow_fork): Likewise.
13860 * target-delegates.c: Re-generate.
13861 * target.c (default_follow_fork): Likewise.
13862 (target_follow_fork): Likewise.
13863 * target.h (struct target_ops) <follow_fork>: Likewise.
13864 (target_follow_fork): Likewise.
13865
13866 2020-03-24 Tom de Vries <tdevries@suse.de>
13867
13868 * psymtab.c (maintenance_info_psymtabs): Print user field.
13869
13870 2020-03-20 Tom Tromey <tromey@adacore.com>
13871
13872 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13873 const.
13874 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13875 const.
13876
13877 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
13878
13879 * ptrace.m4: Don't check for ptrace declaration.
13880 * config.in: Re-generate.
13881 * configure: Re-generate.
13882 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13883 not defined.
13884
13885 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13886
13887 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13888 `PTRACE_TYPE_RET'.
13889 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13890 * sparc-nat.c (gdb_ptrace): Likewise.
13891 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13892
13893 2020-03-20 Tom Tromey <tromey@adacore.com>
13894
13895 * c-exp.y (lex_one_token): Fix assert.
13896
13897 2020-03-20 Tom Tromey <tromey@adacore.com>
13898
13899 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13900 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13901 strncpy call.
13902
13903 2020-03-20 Tom Tromey <tromey@adacore.com>
13904
13905 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13906
13907 2020-03-20 Tom Tromey <tromey@adacore.com>
13908
13909 * ada-valprint.c (print_variant_part): Remove parameters; switch
13910 to value-based API.
13911 (print_field_values): Likewise.
13912 (ada_val_print_struct_union): Likewise.
13913 (ada_value_print_1): Update.
13914
13915 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13916
13917 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13918 nbsd_nat_target instead of inf_ptrace_target.
13919 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13920 nbsd_nat_target.
13921
13922 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13923
13924 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13925 it to the ptrace call.
13926 * (store_registers): Likewise.
13927
13928 2020-03-20 Kamil Rytarowski <n54@gmx.com>
13929
13930 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13931 it to the ptrace call.
13932 * (store_registers): Likewise.
13933
13934 2020-03-19 Luis Machado <luis.machado@linaro.org>
13935
13936 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13937 valid, fetch vg value from ptrace.
13938
13939 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13940 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13941 * inf-ptrace.c: Likewise.
13942 * (gdb_ptrace): Add.
13943 * (inf_ptrace_target::resume): Update.
13944 * (inf_ptrace_target::xfer_partial): Likewise.
13945 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13946 * (inf_ptrace_peek_poke): Update.
13947
13948 2020-03-19 Kamil Rytarowski <n54@gmx.com>
13949
13950 * x86-bsd-nat.c (gdb_ptrace): New.
13951 * (x86bsd_dr_set): Add new argument `ptid'.
13952 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13953 x86bsd_dr_set_addr): Update.
13954
13955 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13956
13957 * remote.c (remote_target::process_stop_reply): Handle events for
13958 all threads differently.
13959
13960 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13961
13962 * completer.c (completion_tracker::remove_completion): Define new
13963 function.
13964 * completer.h (completion_tracker::remove_completion): Declare new
13965 function.
13966 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13967 when adding a C++ function symbol.
13968
13969 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13970
13971 * completer.c (completion_tracker::completion_hash_entry): Define
13972 new class.
13973 (advance_to_filename_complete_word_point): Call
13974 recompute_lowest_common_denominator.
13975 (completion_tracker::completion_tracker): Call discard_completions
13976 to setup the hash table.
13977 (completion_tracker::discard_completions): Allow for being called
13978 from the constructor, pass new equal function, and element deleter
13979 when constructing the hash table. Initialise new class member
13980 variables.
13981 (completion_tracker::maybe_add_completion): Remove use of
13982 m_entries_vec, and store more information into m_entries_hash.
13983 (completion_tracker::recompute_lcd_visitor): New function, most
13984 content taken from...
13985 (completion_tracker::recompute_lowest_common_denominator):
13986 ...here, this now just visits each item in the hash calling the
13987 above visitor.
13988 (completion_tracker::build_completion_result): Remove use of
13989 m_entries_vec, call recompute_lowest_common_denominator.
13990 * completer.h (completion_tracker::have_completions): Remove use
13991 of m_entries_vec.
13992 (completion_tracker::completion_hash_entry): Declare new class.
13993 (completion_tracker::recompute_lowest_common_denominator): Change
13994 function signature.
13995 (completion_tracker::recompute_lcd_visitor): Declare new function.
13996 (completion_tracker::m_entries_vec): Delete.
13997 (completion_tracker::m_entries_hash): Initialize to NULL.
13998 (completion_tracker::m_lowest_common_denominator_valid): New
13999 member variable.
14000 (completion_tracker::m_lowest_common_denominator_max_length): New
14001 member variable.
14002
14003 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14004
14005 * regformats/regdef.h: Put reg in gdb namespace.
14006
14007 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14008
14009 * i386-bsd-nat.c (gdb_ptrace): New.
14010 * (i386bsd_fetch_inferior_registers,
14011 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
14012 * (i386bsd_fetch_inferior_registers,
14013 i386bsd_store_inferior_registers) Use gdb_ptrace.
14014
14015 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14016
14017 * amd64-bsd-nat.c (gdb_ptrace): New.
14018 * (amd64bsd_fetch_inferior_registers,
14019 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
14020 * (amd64bsd_fetch_inferior_registers,
14021 amd64bsd_store_inferior_registers) Use gdb_ptrace.
14022
14023 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14024
14025 * user-regs.c (user_reg::read): Rename to...
14026 (user_reg::xread): ...this.
14027 * (append_user_reg): Rename argument `read' to `xread'.
14028 * (user_reg_add_builtin): Likewise.
14029 * (user_reg_add): Likewise.
14030 * (value_of_user_reg): Likewise.
14031
14032 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14033
14034 * sparc-nat.c (gdb_ptrace): New.
14035 * sparc-nat.c (sparc_fetch_inferior_registers)
14036 (sparc_store_inferior_registers) Remove obsolete comment.
14037 * sparc-nat.c (sparc_fetch_inferior_registers)
14038 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
14039 * sparc-nat.c (sparc_fetch_inferior_registers)
14040 (sparc_store_inferior_registers) Use gdb_ptrace.
14041
14042 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14043
14044 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
14045 it to the ptrace call.
14046 * sh-nbsd-nat.c (store_registers): Likewise.
14047
14048 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14049
14050 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
14051 nbsd_nat_target instead of inf_ptrace_target.
14052 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14053 nbsd_nat_target.
14054
14055 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14056
14057 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
14058
14059 2020-03-17 Kamil Rytarowski <n54@gmx.com>
14060
14061 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
14062 <sys/sysctl.h>.
14063 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
14064
14065 2020-03-17 Tom de Vries <tdevries@suse.de>
14066
14067 PR gdb/23710
14068 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
14069 fields.
14070 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
14071 fields.
14072 (process_imported_unit_die): Skip import of c++ CUs.
14073
14074 2020-03-16 Tom Tromey <tom@tromey.com>
14075
14076 * p-valprint.c (pascal_object_print_value): Initialize
14077 base_value.
14078
14079 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
14080 Shahab Vahedi <shahab@synopsys.com>
14081
14082 * Makefile.in: Add arch/arc.o
14083 * configure.tgt: Likewise.
14084 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
14085 (_initialize_arc_tdep): Don't initialize old target descriptions.
14086 (arc_read_description): New function to cache target descriptions.
14087 * arc-tdep.h (arc_read_description): Add proto type.
14088 * arch/arc.c: New file.
14089 * arch/arc.h: Likewise.
14090 * features/Makefile: Replace old target descriptions with new.
14091 * features/arc-arcompact.c: Remove.
14092 * features/arc-arcompact.xml: Likewise.
14093 * features/arc-v2.c: Likewise
14094 * features/arc-v2.xml: Likewise
14095 * features/arc/aux-arcompact.xml: New file.
14096 * features/arc/aux-v2.xml: Likewise.
14097 * features/arc/core-arcompact.xml: Likewise.
14098 * features/arc/core-v2.xml: Likewise.
14099 * features/arc/aux-arcompact.c: Generate.
14100 * features/arc/aux-v2.c: Likewise.
14101 * features/arc/core-arcompact.c: Likewise.
14102 * features/arc/core-v2.c: Likewise.
14103 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
14104
14105 2020-03-16 Tom Tromey <tromey@adacore.com>
14106
14107 PR gdb/25663:
14108 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
14109 putting value into bcache.
14110
14111 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14112
14113 PR gdb/21500
14114 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
14115 to...
14116 (amd64_windows_init_abi_common): ... this. Don't set size of
14117 long type.
14118 (amd64_windows_init_abi): New function.
14119 (amd64_cygwin_init_abi): New function.
14120 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
14121 the Cygwin OS ABI.
14122 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
14123 comment.
14124
14125 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14126
14127 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
14128 * windows-tdep.c (CYGWIN_DLL_NAME): New.
14129 (pe_import_directory_entry): New struct type.
14130 (is_linked_with_cygwin_dll): New function.
14131 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
14132 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
14133 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
14134
14135 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14136
14137 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
14138 i386_cygwin_core_osabi_sniffer.
14139
14140 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14141
14142 * i386-cygwin-tdep.c: Rename to...
14143 * i386-windows-tdep.c: ... this.
14144 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
14145 i386-windows-tdep.c.
14146 * configure.tgt: Likewise.
14147
14148 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14149
14150 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
14151 * osabi.c (gdb_osabi_names): Add "Windows".
14152 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
14153 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
14154 (i386_cygwin_core_osabi_sniffer): New function, extracted from
14155 i386_cygwin_osabi_sniffer.
14156 (_initialize_i386_cygwin_tdep): Register OS ABI
14157 GDB_OSABI_WINDOWS for i386.
14158 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
14159 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
14160 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
14161 for x86-64.
14162 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
14163 when the target matches '*-*-mingw*'.
14164
14165 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14166
14167 * defs.h (enum gdb_osabi): Move to...
14168 * osabi.h (enum gdb_osabi): ... here.
14169 * gdbarch.sh: Include osabi.h in gdbarch.h.
14170 * gdbarch.h: Re-generate.
14171
14172 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
14173
14174 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
14175 function.
14176 (_initialize_amd64_windows_tdep): Register osabi sniffer.
14177
14178 2020-03-14 Tom Tromey <tom@tromey.com>
14179
14180 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
14181 for C++.
14182 (c_type_print_modifier): Likewise. Add "language" parameter.
14183 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
14184 (c_type_print_base_1): Update.
14185 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
14186 constants.
14187 * type-stack.c (type_stack::insert): Handle tp_atomic and
14188 tp_restrict.
14189 (type_stack::follow_type_instance_flags): Likewise.
14190 (type_stack::follow_types): Likewise. Merge type-following code.
14191 * c-exp.y (RESTRICT, ATOMIC): New tokens.
14192 (space_identifier, cv_with_space_id)
14193 (const_or_volatile_or_space_identifier_noopt)
14194 (const_or_volatile_or_space_identifier): Remove.
14195 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14196 rules.
14197 (ptr_operator, typebase): Update.
14198 (enum token_flag) <FLAG_C>: New constant.
14199 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14200 "_Atomic".
14201 (lex_one_token): Handle FLAG_C.
14202
14203 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14204
14205 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14206 it to the ptrace call.
14207 * m68k-bsd-nat.c (store_registers): Likewise.
14208
14209 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14210
14211 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14212 gdb_byte *.
14213 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14214 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14215 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14216
14217 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14218
14219 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14220 nbsd_nat_target instead of inf_ptrace_target.
14221 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14222 nbsd_nat_target.
14223
14224 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14225
14226 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14227 register_t.
14228
14229 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14230
14231 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14232 it to the ptrace call.
14233 * alpha-bsd-nat.c (store_registers): Likewise.
14234
14235 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14236
14237 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14238 includes.
14239 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14240 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14241 fill_fpregset): Likewise.
14242
14243 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14244
14245 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14246 nbsd_nat_target instead of inf_ptrace_target.
14247 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14248 nbsd_nat_target.
14249
14250 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14251
14252 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14253 register_t.
14254
14255 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14256
14257 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14258 it to the ptrace call.
14259 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14260 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14261 * arm-nbsd-nat.c (store_register): Likewise.
14262 * arm-nbsd-nat.c (store_regs): Likewise.
14263 * arm-nbsd-nat.c (store_fp_register): Likewise.
14264 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14265
14266 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14267
14268 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14269 nbsd_nat_target instead of inf_ptrace_target.
14270 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14271 nbsd_nat_target.
14272
14273 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14274
14275 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14276 it to the ptrace call.
14277 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14278
14279 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14280
14281 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14282 it to the ptrace call.
14283 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14284
14285 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14286
14287 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14288 gdb_byte *.
14289 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14290
14291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14292
14293 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14294 instead of inf_ptrace_target.
14295 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14296 nbsd_nat_target.
14297
14298 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14299
14300 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14301 register_t.
14302
14303 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14304
14305 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14306 register_t.
14307
14308 2020-03-14 Kamil Rytarowski <n54@gmx.com>
14309
14310 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14311 register_t.
14312
14313 2020-03-13 Tom Tromey <tom@tromey.com>
14314
14315 * value.h (val_print): Don't declare.
14316 * valprint.h (val_print_array_elements)
14317 (val_print_scalar_formatted, generic_val_print): Don't declare.
14318 * valprint.c (generic_val_print_array): Take a struct value.
14319 (generic_val_print_ptr, generic_val_print_memberptr)
14320 (generic_val_print_bool, generic_val_print_int)
14321 (generic_val_print_char, generic_val_print_complex)
14322 (generic_val_print): Remove.
14323 (generic_value_print): Update.
14324 (do_val_print): Remove unused parameters. Don't call
14325 la_val_print.
14326 (val_print): Remove.
14327 (common_val_print): Update. Don't call value_check_printable.
14328 (val_print_scalar_formatted, val_print_array_elements): Remove.
14329 * rust-lang.c (rust_val_print): Remove.
14330 (rust_language_defn): Update.
14331 * p-valprint.c (pascal_val_print): Remove.
14332 (pascal_value_print_inner): Update.
14333 (pascal_object_print_val_fields, pascal_object_print_val):
14334 Remove.
14335 (pascal_object_print_static_field): Update.
14336 * p-lang.h (pascal_val_print): Don't declare.
14337 * p-lang.c (pascal_language_defn): Update.
14338 * opencl-lang.c (opencl_language_defn): Update.
14339 * objc-lang.c (objc_language_defn): Update.
14340 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14341 * m2-lang.h (m2_val_print): Don't declare.
14342 * m2-lang.c (m2_language_defn): Update.
14343 * language.h (struct language_defn) <la_val_print>: Remove.
14344 * language.c (unk_lang_value_print_inner): Rename. Change
14345 argument types.
14346 (unknown_language_defn, auto_language_defn): Update.
14347 * go-valprint.c (go_val_print): Remove.
14348 * go-lang.h (go_val_print): Don't declare.
14349 * go-lang.c (go_language_defn): Update.
14350 * f-valprint.c (f_val_print): Remove.
14351 * f-lang.h (f_value_print): Don't declare.
14352 * f-lang.c (f_language_defn): Update.
14353 * d-valprint.c (d_val_print): Remove.
14354 * d-lang.h (d_value_print): Don't declare.
14355 * d-lang.c (d_language_defn): Update.
14356 * cp-valprint.c (cp_print_value_fields)
14357 (cp_print_value_fields_rtti, cp_print_value): Remove.
14358 (cp_print_static_field): Update.
14359 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14360 (c_val_print_struct, c_val_print_union, c_val_print_int)
14361 (c_val_print_memberptr, c_val_print): Remove.
14362 * c-lang.h (c_val_print_array, cp_print_value_fields)
14363 (cp_print_value_fields_rtti): Don't declare.
14364 * c-lang.c (c_language_defn, cplus_language_defn)
14365 (asm_language_defn, minimal_language_defn): Update.
14366 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14367 (ada_val_print_enum): Take a struct value.
14368 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14369 (ada_val_print): Remove.
14370 (ada_value_print_1): Update.
14371 (printable_val_type): Remove.
14372 * ada-lang.h (ada_val_print): Don't declare.
14373 * ada-lang.c (ada_language_defn): Update.
14374
14375 2020-03-13 Tom Tromey <tom@tromey.com>
14376
14377 * valprint.c (do_val_print): Update.
14378 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14379 a struct value.
14380 (value_to_value_object_no_release): Declare.
14381 * python/py-value.c (value_to_value_object_no_release): New
14382 function.
14383 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14384 struct value.
14385 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14386 function.
14387 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14388 a struct value.
14389 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14390 Declare.
14391 (gdbscm_apply_val_pretty_printer): Take a struct value.
14392 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14393 value.
14394 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14395 value.
14396 * extension-priv.h (struct extension_language_ops)
14397 <apply_val_pretty_printer>: Take a struct value.
14398 * cp-valprint.c (cp_print_value): Create a struct value.
14399 (cp_print_value): Update.
14400
14401 2020-03-13 Tom Tromey <tom@tromey.com>
14402
14403 * ada-valprint.c (print_field_values): Call common_val_print.
14404
14405 2020-03-13 Tom Tromey <tom@tromey.com>
14406
14407 * ada-valprint.c (val_print_packed_array_elements): Remove
14408 bitoffset and val parameters. Call common_val_print.
14409 (ada_val_print_string): Remove offset, address, and original_value
14410 parameters.
14411 (ada_val_print_array): Update.
14412 (ada_value_print_array): New function.
14413 (ada_value_print_1): Call it.
14414
14415 2020-03-13 Tom Tromey <tom@tromey.com>
14416
14417 * ada-valprint.c (ada_value_print): Use common_val_print.
14418
14419 2020-03-13 Tom Tromey <tom@tromey.com>
14420
14421 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14422
14423 2020-03-13 Tom Tromey <tom@tromey.com>
14424
14425 * ada-valprint.c (ada_value_print_num): New function.
14426 (ada_value_print_1): Use it.
14427
14428 2020-03-13 Tom Tromey <tom@tromey.com>
14429
14430 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14431
14432 2020-03-13 Tom Tromey <tom@tromey.com>
14433
14434 * ada-valprint.c (ada_value_print_ptr): New function.
14435 (ada_value_print_1): Use it.
14436
14437 2020-03-13 Tom Tromey <tom@tromey.com>
14438
14439 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14440 call common_val_print.
14441 (ada_val_print_1): Update.
14442 (ada_value_print_1): New function.
14443 (ada_value_print_inner): Rewrite.
14444
14445 2020-03-13 Tom Tromey <tom@tromey.com>
14446
14447 * cp-valprint.c (cp_print_value_fields): Update.
14448 (cp_print_value): New function.
14449
14450 2020-03-13 Tom Tromey <tom@tromey.com>
14451
14452 * m2-valprint.c (m2_value_print_inner): Use
14453 cp_print_value_fields.
14454 * cp-valprint.c (cp_print_value_fields): New function.
14455 * c-valprint.c (c_value_print_struct): New function.
14456 (c_value_print_inner): Use c_value_print_struct.
14457 * c-lang.h (cp_print_value_fields): Declare.
14458
14459 2020-03-13 Tom Tromey <tom@tromey.com>
14460
14461 * c-valprint.c (c_value_print_array): New function.
14462 (c_value_print_inner): Use it.
14463
14464 2020-03-13 Tom Tromey <tom@tromey.com>
14465
14466 * c-valprint.c (c_value_print_memberptr): New function.
14467 (c_value_print_inner): Use it.
14468
14469 2020-03-13 Tom Tromey <tom@tromey.com>
14470
14471 * c-valprint.c (c_value_print_int): New function.
14472 (c_value_print_inner): Use it.
14473
14474 2020-03-13 Tom Tromey <tom@tromey.com>
14475
14476 * c-valprint.c (c_value_print_ptr): New function.
14477 (c_value_print_inner): Use it.
14478
14479 2020-03-13 Tom Tromey <tom@tromey.com>
14480
14481 * c-valprint.c (c_value_print_inner): Rewrite.
14482
14483 2020-03-13 Tom Tromey <tom@tromey.com>
14484
14485 * valprint.c (generic_value_print_complex): New function.
14486 (generic_value_print): Use it.
14487
14488 2020-03-13 Tom Tromey <tom@tromey.com>
14489
14490 * valprint.c (generic_val_print_float): Don't call
14491 val_print_scalar_formatted.
14492 (generic_val_print, generic_value_print): Update.
14493
14494 2020-03-13 Tom Tromey <tom@tromey.com>
14495
14496 * valprint.c (generic_value_print_char): New function
14497 (generic_value_print): Use it.
14498
14499 2020-03-13 Tom Tromey <tom@tromey.com>
14500
14501 * valprint.c (generic_value_print_int): New function.
14502 (generic_value_print): Use it.
14503
14504 2020-03-13 Tom Tromey <tom@tromey.com>
14505
14506 * valprint.c (generic_value_print_bool): New function.
14507 (generic_value_print): Use it.
14508
14509 2020-03-13 Tom Tromey <tom@tromey.com>
14510
14511 * valprint.c (generic_val_print_func): Simplify.
14512 (generic_val_print, generic_value_print): Update.
14513
14514 2020-03-13 Tom Tromey <tom@tromey.com>
14515
14516 * valprint.c (generic_val_print_flags): Remove.
14517 (generic_val_print, generic_value_print): Update.
14518 (val_print_type_code_flags): Add original_value parameter.
14519
14520 2020-03-13 Tom Tromey <tom@tromey.com>
14521
14522 * valprint.c (generic_val_print): Update.
14523 (generic_value_print): Update.
14524 * valprint.c (generic_val_print_enum): Don't call
14525 val_print_scalar_formatted.
14526
14527 2020-03-13 Tom Tromey <tom@tromey.com>
14528
14529 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14530 * valprint.c (generic_value_print_ptr): New function.
14531
14532 2020-03-13 Tom Tromey <tom@tromey.com>
14533
14534 * valprint.c (generic_value_print): Rewrite.
14535
14536 2020-03-13 Tom Tromey <tom@tromey.com>
14537
14538 * p-valprint.c (pascal_object_print_value_fields)
14539 (pascal_object_print_value): New functions.
14540
14541 2020-03-13 Tom Tromey <tom@tromey.com>
14542
14543 * p-valprint.c (pascal_value_print_inner): Rewrite.
14544
14545 2020-03-13 Tom Tromey <tom@tromey.com>
14546
14547 * f-valprint.c (f_value_print_innner): Rewrite.
14548
14549 2020-03-13 Tom Tromey <tom@tromey.com>
14550
14551 * m2-valprint.c (m2_print_unbounded_array): New overload.
14552 (m2_print_unbounded_array): Update.
14553 (m2_print_array_contents): Take a struct value.
14554 (m2_value_print_inner): Rewrite.
14555
14556 2020-03-13 Tom Tromey <tom@tromey.com>
14557
14558 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14559 (d_value_print_inner): New function.
14560 * d-lang.h (d_value_print_inner): Declare.
14561 * d-lang.c (d_language_defn): Use d_value_print_inner.
14562
14563 2020-03-13 Tom Tromey <tom@tromey.com>
14564
14565 * go-valprint.c (go_value_print_inner): New function.
14566 * go-lang.h (go_value_print_inner): Declare.
14567 * go-lang.c (go_language_defn): Use go_value_print_inner.
14568
14569 2020-03-13 Tom Tromey <tom@tromey.com>
14570
14571 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14572 API.
14573 (rust_val_print): Rewrite.
14574 (rust_value_print_inner): New function, from rust_val_print.
14575 (rust_language_defn): Use rust_value_print_inner.
14576
14577 2020-03-13 Tom Tromey <tom@tromey.com>
14578
14579 * ada-valprint.c (ada_value_print_inner): New function.
14580 * ada-lang.h (ada_value_print_inner): Declare.
14581 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14582
14583 2020-03-13 Tom Tromey <tom@tromey.com>
14584
14585 * f-valprint.c (f_value_print_innner): New function.
14586 * f-lang.h (f_value_print_innner): Declare.
14587 * f-lang.c (f_language_defn): Use f_value_print_innner.
14588
14589 2020-03-13 Tom Tromey <tom@tromey.com>
14590
14591 * p-valprint.c (pascal_value_print_inner): New function.
14592 * p-lang.h (pascal_value_print_inner): Declare.
14593 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14594
14595 2020-03-13 Tom Tromey <tom@tromey.com>
14596
14597 * m2-valprint.c (m2_value_print_inner): New function.
14598 * m2-lang.h (m2_value_print_inner): Declare.
14599 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14600
14601 2020-03-13 Tom Tromey <tom@tromey.com>
14602
14603 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14604 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14605 * c-valprint.c (c_value_print_inner): New function.
14606 * c-lang.h (c_value_print_inner): Declare.
14607 * c-lang.c (c_language_defn, cplus_language_defn)
14608 (asm_language_defn, minimal_language_defn): Use
14609 c_value_print_inner.
14610
14611 2020-03-13 Tom Tromey <tom@tromey.com>
14612
14613 * p-valprint.c (pascal_object_print_value_fields): Now static.
14614 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14615
14616 2020-03-13 Tom Tromey <tom@tromey.com>
14617
14618 * c-valprint.c (c_val_print_array): Simplify.
14619
14620 2020-03-13 Tom Tromey <tom@tromey.com>
14621
14622 * valprint.c (value_print_array_elements): New function.
14623 * valprint.h (value_print_array_elements): Declare.
14624
14625 2020-03-13 Tom Tromey <tom@tromey.com>
14626
14627 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14628 * mips-tdep.c (mips_print_register): Use
14629 value_print_scalar_formatted.
14630
14631 2020-03-13 Tom Tromey <tom@tromey.com>
14632
14633 * valprint.h (value_print_scalar_formatted): Declare.
14634 * valprint.c (value_print_scalar_formatted): New function.
14635
14636 2020-03-13 Tom Tromey <tom@tromey.com>
14637
14638 * valprint.h (generic_value_print): Declare.
14639 * valprint.c (generic_value_print): New function.
14640
14641 2020-03-13 Tom Tromey <tom@tromey.com>
14642
14643 * valprint.c (do_val_print): Call la_value_print_inner, if
14644 available.
14645 * rust-lang.c (rust_language_defn): Update.
14646 * p-lang.c (pascal_language_defn): Update.
14647 * opencl-lang.c (opencl_language_defn): Update.
14648 * objc-lang.c (objc_language_defn): Update.
14649 * m2-lang.c (m2_language_defn): Update.
14650 * language.h (struct language_defn) <la_value_print_inner>: New
14651 member.
14652 * language.c (unknown_language_defn, auto_language_defn): Update.
14653 * go-lang.c (go_language_defn): Update.
14654 * f-lang.c (f_language_defn): Update.
14655 * d-lang.c (d_language_defn): Update.
14656 * c-lang.c (c_language_defn, cplus_language_defn)
14657 (asm_language_defn, minimal_language_defn): Update.
14658 * ada-lang.c (ada_language_defn): Update.
14659
14660 2020-03-13 Tom Tromey <tom@tromey.com>
14661
14662 * c-valprint.c (c_value_print): Use common_val_print.
14663
14664 2020-03-13 Tom Tromey <tom@tromey.com>
14665
14666 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14667
14668 2020-03-13 Tom Tromey <tom@tromey.com>
14669
14670 * f-valprint.c (f77_print_array_1, f_val_print): Use
14671 common_val_print.
14672
14673 2020-03-13 Tom Tromey <tom@tromey.com>
14674
14675 * riscv-tdep.c (riscv_print_one_register_info): Use
14676 common_val_print.
14677
14678 2020-03-13 Tom Tromey <tom@tromey.com>
14679
14680 * mi/mi-main.c (output_register): Use common_val_print.
14681
14682 2020-03-13 Tom Tromey <tom@tromey.com>
14683
14684 * infcmd.c (default_print_one_register_info): Use
14685 common_val_print.
14686
14687 2020-03-13 Tom Tromey <tom@tromey.com>
14688
14689 * valprint.h (common_val_print_checked): Declare.
14690 * valprint.c (common_val_print_checked): New function.
14691 * stack.c (print_frame_arg): Use common_val_print_checked.
14692
14693 2020-03-13 Tom Tromey <tom@tromey.com>
14694
14695 * valprint.c (do_val_print): New function, from val_print.
14696 (val_print): Use do_val_print.
14697 (common_val_print): Use do_val_print.
14698
14699 2020-03-13 Tom Tromey <tom@tromey.com>
14700
14701 * valprint.c (value_print): Use scoped_value_mark.
14702
14703 2020-03-13 Tom de Vries <tdevries@suse.de>
14704
14705 PR symtab/25646
14706 * psymtab.c (partial_symtab::partial_symtab): Don't set
14707 globals_offset and statics_offset. Push element onto
14708 current_global_psymbols and current_static_psymbols stacks.
14709 (concat): New function.
14710 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14711 element from current_global_psymbols and current_static_psymbols
14712 stacks. Concat popped elements to global_psymbols and
14713 static_symbols.
14714 (add_psymbol_to_list): Use current_global_psymbols and
14715 current_static_psymbols stacks.
14716 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14717 current_static_psymbols fields.
14718
14719 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14720
14721 * corelow.c (sniff_core_bfd): Remove.
14722 (class core_target) <m_core_vec>: Remove.
14723 (core_target::core_target): Update.
14724 (core_file_fns): Remove.
14725 (deprecated_add_core_fns): Remove.
14726 (default_core_sniffer): Remove.
14727 (sniff_core_bfd): Remove.
14728 (default_check_format): Remove.
14729 (gdb_check_format): Remove.
14730 (core_target_open): Update.
14731 (core_target::get_core_register_section): Update.
14732 (get_core_registers_cb): Update.
14733 (core_target::fetch_registers): Update.
14734 * gdbcore.h (struct core_fns): Remove.
14735 (deprecated_add_core_fns): Remove.
14736 (default_core_sniffer): Remove.
14737 (default_check_format): Remove.
14738
14739 2020-03-12 Tom Tromey <tom@tromey.com>
14740
14741 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14742 CORE_ADDR.
14743 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14744
14745 2020-03-12 Tom Tromey <tom@tromey.com>
14746
14747 * remote.c (remote_target::download_tracepoint)
14748 (remote_target::enable_tracepoint)
14749 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14750 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14751 sprintf_vma.
14752
14753 2020-03-12 Tom Tromey <tom@tromey.com>
14754
14755 * symfile-mem.c: Update CORE_ADDR size assert.
14756
14757 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14758
14759 * selftest.m4: Move to gdbsupport/.
14760 * acinclude.m4: Update path to selftest.m4.
14761
14762 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14763
14764 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14765 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14766 gdbarch-selfselftests.c and selftest-arch.c.
14767 (SUBDIR_UNITTESTS_OBS): Rename to...
14768 (SELFTESTS_OBS): ... this.
14769 (COMMON_SFILES): Remove disasm-selftests.c and
14770 gdbarch-selftests.c.
14771 * configure.ac: Don't add selftest-arch.{c,o} to
14772 CONFIG_{SRCS,OBS}.
14773 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14774 preprocessor conditions.
14775
14776 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14777
14778 * configure.ac: Don't source bfd/development.sh.
14779 * selftest.m4: Modify comment.
14780 * configure: Re-generate.
14781
14782 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
14783
14784 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14785 not "true" or "false".
14786 * configure: Re-generate.
14787
14788 2020-03-12 Christian Biesinger <cbiesinger@google.com>
14789
14790 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14791 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14792 renamed to arm_nbsd_supply_gregset.
14793 (fetch_register): Update to call arm_nbsd_supply_gregset.
14794 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14795 (arm_netbsd_nat_target::fetch_registers): Update.
14796 (fetch_elfcore_registers): Removed.
14797 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14798 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14799 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14800 not require NetBSD system headers.
14801 (arm_nbsd_regset): New struct.
14802 (arm_nbsd_iterate_over_regset_sections): New function.
14803 (arm_netbsd_init_abi_common): Updated to call
14804 set_gdbarch_iterate_over_regset_sections.
14805 * arm-nbsd-tdep.h: New file.
14806
14807 2020-03-11 Kevin Buettner <kevinb@redhat.com>
14808
14809 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14810 recursion.
14811
14812 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
14813
14814 * configure: Re-generate.
14815
14816 2020-03-11 Tom Tromey <tromey@adacore.com>
14817
14818 * ada-typeprint.c (print_choices): Fix comment.
14819
14820 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14821
14822 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14823 previous item in the list, when the list has no items.
14824
14825 2020-03-11 Tom de Vries <tdevries@suse.de>
14826
14827 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14828 PROP_LOCLIST handling code.
14829
14830 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14831
14832 * buildsym-legacy.c (record_line): Pass extra parameter to
14833 record_line.
14834 * buildsym.c (buildsym_compunit::record_line): Take an extra
14835 parameter, reduce duplication in the line table, and record the
14836 is_stmt flag in the line table.
14837 * buildsym.h (buildsym_compunit::record_line): Add extra
14838 parameter.
14839 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14840 non-statement lines.
14841 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14842 this to the symtab builder.
14843 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14844 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14845 through to dwarf_record_line_1.
14846 * infrun.c (process_event_stop_test): When stepping, don't stop at
14847 a non-statement instruction, and only refresh the step info when
14848 we land in the middle of a line's range. Also add an extra
14849 comment.
14850 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14851 field.
14852 * record-btrace.c (btrace_find_line_range): Only record lines
14853 marked as is-statement.
14854 * stack.c (frame_show_address): Show the frame address if we are
14855 in a non-statement sal.
14856 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14857 (maintenance_print_one_line_table): Print a header for the is_stmt
14858 column, and include is_stmt information in the output.
14859 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14860 preference to non-statements.
14861 (find_pcs_for_symtab_line): Prefer is-statement entries.
14862 (find_line_common): Likewise.
14863 * symtab.h (struct linetable_entry): Add is_stmt field.
14864 (struct symtab_and_line): Likewise.
14865 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14866 arranging the line table.
14867
14868 2020-03-07 Tom de Vries <tdevries@suse.de>
14869
14870 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14871 DIE.
14872
14873 2020-03-07 Tom Tromey <tom@tromey.com>
14874
14875 * valops.c (value_literal_complex): Remove obsolete comment.
14876 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14877 comment.
14878
14879 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14880
14881 * infrun.h: Forward-declare thread_info.
14882 (set_step_info): Add thread_info parameter, add doc.
14883 * infrun.c (set_step_info): Add thread_info parameter, move doc
14884 to header.
14885 * infrun.c (process_event_stop_test): Pass thread to
14886 set_step_info call.
14887 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14888 set_step_info.
14889 (prepare_one_step): Add thread_info parameter, pass it to
14890 set_step_frame and prepare_one_step (recursive) call.
14891 (step_1): Pass thread to prepare_one_step call.
14892 (step_command_fsm::should_stop): Pass thread to
14893 prepare_one_step.
14894 (until_next_fsm): Pass thread to set_step_frame call.
14895 (finish_command): Pass thread to set_step_info call.
14896
14897 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
14898
14899 * windows-tdep.c (windows_solib_create_inferior_hook):
14900 Check if inferior is running.
14901
14902 2020-03-06 Tom de Vries <tdevries@suse.de>
14903
14904 * NEWS: Fix "the the".
14905 * ctfread.c: Same.
14906
14907 2020-03-06 Tom de Vries <tdevries@suse.de>
14908
14909 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14910
14911 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14912
14913 * .dir-locals.el: Add a comment referencing the other copies of
14914 this file.
14915
14916 2020-03-05 John Baldwin <jhb@FreeBSD.org>
14917
14918 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14919 psargs.
14920
14921 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14922
14923 * .gitattributes: New file.
14924
14925 2020-03-04 Tom Tromey <tom@tromey.com>
14926
14927 * symmisc.c (print_symbol_bcache_statistics)
14928 (print_objfile_statistics): Update.
14929 * symfile.c (allocate_symtab): Use intern.
14930 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14931 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14932 macro_cache>: Remove.
14933 <string_cache>: New member.
14934 (struct objfile) <intern>: New methods.
14935 * elfread.c (elf_symtab_read): Use intern.
14936 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14937 (dwarf2_compute_name, dwarf2_physname)
14938 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14939 names.
14940 (guess_partial_die_structure_name): Update.
14941 (partial_die_info::fixup): Intern name.
14942 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14943 name.
14944 (dwarf2_name): Intern name. Update.
14945 * buildsym.c (buildsym_compunit::get_macro_table): Use
14946 string_cache.
14947
14948 2020-03-04 Tom Tromey <tom@tromey.com>
14949
14950 * jit.c (bfd_open_from_target_memory): Make "target" const.
14951 * corefile.c (gnutarget): Now const.
14952 * gdbcore.h (gnutarget): Now const.
14953
14954 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
14955
14956 * NEWS: Mention support for WOW64 processes.
14957 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14958 (amd64_windows_segment_register_p): Remove static.
14959 (_initialize_amd64_windows_nat): Update.
14960 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14961 * i386-windows-nat.c (context_offset): Update.
14962 (i386_mappings): Rename and remove static.
14963 (i386_windows_segment_register_p): Remove static.
14964 (_initialize_i386_windows_nat): Update.
14965 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14966 (STATUS_WX86_SINGLE_STEP): New macro.
14967 (EnumProcessModulesEx): New macro.
14968 (Wow64SuspendThread): New macro.
14969 (Wow64GetThreadContext): New macro.
14970 (Wow64SetThreadContext): New macro.
14971 (Wow64GetThreadSelectorEntry): New macro.
14972 (windows_set_context_register_offsets): Add static.
14973 (windows_set_segment_register_p): Likewise.
14974 (windows_add_thread): Adapt for WOW64 processes.
14975 (windows_fetch_one_register): Likewise.
14976 (windows_nat_target::fetch_registers): Likewise.
14977 (windows_store_one_register): Likewise.
14978 (display_selector): Likewise.
14979 (display_selectors): Likewise.
14980 (handle_exception): Likewise.
14981 (windows_continue): Likewise.
14982 (windows_nat_target::resume): Likewise.
14983 (windows_add_all_dlls): Likewise.
14984 (do_initial_windows_stuff): Likewise.
14985 (windows_nat_target::attach): Likewise.
14986 (windows_get_exec_module_filename): Likewise.
14987 (windows_nat_target::create_inferior): Likewise.
14988 (windows_xfer_siginfo): Likewise.
14989 (_initialize_loadable): Initialize Wow64SuspendThread,
14990 Wow64GetThreadContext, Wow64SetThreadContext,
14991 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14992 * windows-nat.h (windows_set_context_register_offsets):
14993 Remove declaration.
14994 (windows_set_segment_register_p): Likewise.
14995 (i386_windows_segment_register_p): Add declaration.
14996 (amd64_windows_segment_register_p): Likewise.
14997
14998 2020-03-04 Luis Machado <luis.machado@linaro.org>
14999
15000 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
15001 in "info registers" for AArch64/ARM.
15002
15003 The change caused "info registers" to not print GPR's.
15004
15005 gdb/ChangeLog:
15006
15007 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
15008
15009 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15010 when reg->group is empty and reggroup is not.
15011
15012 2020-03-03 Tom Tromey <tromey@adacore.com>
15013
15014 * dwarf2/frame.c (struct dwarf2_frame_cache)
15015 <checked_tailcall_bottom, entry_cfa_sp_offset,
15016 entry_cfa_sp_offset_p>: Remove members.
15017 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
15018 (dwarf2_frame_prev_register): Don't call
15019 dwarf2_tailcall_sniffer_first.
15020 (dwarf2_append_unwinders): Don't append tailcall unwinder.
15021 * frame-unwind.c (add_unwinder): New fuction.
15022 (frame_unwind_init): Use it. Add tailcall unwinder.
15023
15024 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
15025 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15026
15027 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
15028 value should be printed as true.
15029
15030 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
15031
15032 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
15033 (windows_init_abi): Set and use windows_so_ops.
15034
15035 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
15036
15037 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
15038 when verifying if dealing with a convenience variable.
15039
15040 2020-03-03 Luis Machado <luis.machado@linaro.org>
15041
15042 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
15043
15044 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
15045
15046 * infrun.c (gdbarch_supports_displaced_stepping): New.
15047 (use_displaced_stepping): Break up conditions in smaller pieces.
15048 Use gdbarch_supports_displaced_stepping.
15049 (displaced_step_prepare_throw): Use
15050 gdbarch_supports_displaced_stepping.
15051
15052 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
15053
15054 * NEWS: Mention new behaviour of the history filename.
15055 * top.c (write_history_p): Add comment.
15056 (show_write_history_p): Add header comment, give a different
15057 message when history writing is on, but the history filename is
15058 empty.
15059 (history_filename): Add comment.
15060 (history_filename_empty): New function.
15061 (show_history_filename): Add header comment, give a different
15062 message when the filename is empty.
15063 (init_history): Compare history_filename against nullptr, and only
15064 read history if the filename is not empty.
15065 (set_history_filename): Add header comment, and only make
15066 non-empty filenames absolute.
15067 (init_main): Make the filename argument to 'set history filename'
15068 optional.
15069
15070 2020-03-02 Christian Biesinger <cbiesinger@google.com>
15071
15072 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
15073 (arm_supply_vfpregset): ...this, and update to use VFP registers.
15074 (fetch_fp_register): Update.
15075 (fetch_fp_regs): Update.
15076 (store_fp_register): Update.
15077 (store_fp_regs): Update.
15078 (arm_netbsd_nat_target::read_description): New function.
15079 (fetch_elfcore_registers): Update.
15080
15081 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
15082
15083 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
15084 general_thread if the stop reply is missing a thread-id.
15085 (remote_target::process_stop_reply): Use the first non-exited
15086 thread if the target didn't pass a thread-id.
15087 * infrun.c (do_target_wait): Move call to
15088 switch_to_inferior_no_thread to ....
15089 (do_target_wait_1): ... here.
15090
15091 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
15092
15093 * debuginfod-support.c: Include defs.h first.
15094
15095 2020-02-28 Tom de Vries <tdevries@suse.de>
15096
15097 * symfile.c (set_initial_language): Use default language for lookup.
15098
15099 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
15100
15101 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
15102 reader variable, pass `this` to read_cutu_die_from_dwo.
15103
15104 2020-02-27 Aaron Merey <amerey@redhat.com>
15105
15106 * source.c (open_source_file): Check for nullptr when computing
15107 srcpath.
15108
15109 2020-02-27 Tom Tromey <tromey@adacore.com>
15110
15111 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
15112 member.
15113 (dwarf2_add_field): Don't update nfields.
15114 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
15115
15116 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
15117
15118 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
15119 abs.
15120
15121 2020-02-26 Tom Tromey <tom@tromey.com>
15122
15123 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
15124 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
15125 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
15126 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
15127 per_cu_data.
15128
15129 2020-02-26 Tom Tromey <tom@tromey.com>
15130
15131 * dwarf2/index-write.c (psym_index_map): Change type.
15132 (add_address_entry_worker, write_one_signatured_type)
15133 (recursively_count_psymbols, recursively_write_psymbols)
15134 (class debug_names, psyms_seen_size, write_gdbindex)
15135 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
15136
15137 2020-02-26 Aaron Merey <amerey@redhat.com>
15138
15139 * Makefile.in: Handle optional debuginfod support.
15140 * NEWS: Update.
15141 * README: Add --with-debuginfod summary.
15142 * config.in: Regenerate.
15143 * configure: Regenerate.
15144 * configure.ac: Handle optional debuginfod support.
15145 * debuginfod-support.c: debuginfod helper functions.
15146 * debuginfod-support.h: Ditto.
15147 * doc/gdb.texinfo: Add --with-debuginfod to configure options
15148 summary.
15149 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
15150 when a dwz file cannot be found.
15151 * elfread.c (elf_symfile_read): Query debuginfod servers when a
15152 debuginfo file cannot be found.
15153 * source.c (open_source_file): Query debuginfod servers when a
15154 source file cannot be found.
15155 * top.c (print_gdb_configuration): Include
15156 --{with,without}-debuginfod in the output.
15157
15158 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
15159
15160 * thread.c (thr_try_catch_cmd): Print thread name.
15161
15162 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
15163
15164 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
15165 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15166 dwarf2_fetch_die_type_sect_off): Move to...
15167 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
15168 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15169 dwarf2_fetch_die_type_sect_off): ... here.
15170 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
15171 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15172 dwarf2_fetch_die_type_sect_off): Move doc to header file.
15173
15174 2020-02-26 Tom de Vries <tdevries@suse.de>
15175
15176 PR gdb/25603
15177 * symfile.c (set_initial_language): Exit-early if
15178 language_mode == language_mode_manual.
15179
15180 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15181
15182 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
15183 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
15184 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
15185
15186 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
15187
15188 * gdbtypes.c (create_array_type_with_stride): Handle negative
15189 array strides.
15190 * valarith.c (value_subscripted_rvalue): Likewise.
15191
15192 2020-02-25 Luis Machado <luis.machado@linaro.org>
15193
15194 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15195
15196 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15197
15198 * loc.h (dwarf2_get_die_type): Move to...
15199 * read.h (dwarf2_get_die_type): ... here.
15200 * read.c (dwarf2_get_die_type): Move doc to header.
15201
15202 2020-02-25 Joel Brobecker <brobecker@adacore.com>
15203
15204 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15205 'gnulib/Makefile.in' to the list.
15206
15207 2020-02-24 Tom Tromey <tom@tromey.com>
15208
15209 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15210 Remove.
15211 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15212 XOBNEWVEC.
15213
15214 2020-02-24 Tom Tromey <tom@tromey.com>
15215
15216 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15217 New method.
15218 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15219 (dw2_do_instantiate_symtab, dw2_get_file_names)
15220 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15221
15222 2020-02-24 Tom Tromey <tom@tromey.com>
15223
15224 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15225 make_scoped_restore.
15226 (dwarf2_psymtab::read_symtab): Don't clear
15227 reading_partial_symbols.
15228
15229 2020-02-24 Tom de Vries <tdevries@suse.de>
15230
15231 PR gdb/25592
15232 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15233
15234 2020-02-24 Tom de Vries <tdevries@suse.de>
15235
15236 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15237 commands layout next/prev/regs.
15238
15239 2020-02-22 Tom Tromey <tom@tromey.com>
15240
15241 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15242 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15243
15244 2020-02-22 Tom Tromey <tom@tromey.com>
15245
15246 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15247
15248 2020-02-22 Tom Tromey <tom@tromey.com>
15249
15250 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15251 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15252 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15253 * tui/tui.c (_initialize_tui): Add usage text.
15254
15255 2020-02-22 Tom Tromey <tom@tromey.com>
15256
15257 * tui/tui-win.c (tui_set_focus_command)
15258 (tui_set_win_height_command): Use error_no_arg.
15259 (_initialize_tui_win): Update help text.
15260 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15261
15262 2020-02-22 Tom Tromey <tom@tromey.com>
15263
15264 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15265 * tui/tui-disasm.h (struct tui_disasm_window)
15266 <display_start_addr>: Declare.
15267 * tui/tui-source.h (struct tui_source_window)
15268 <display_start_addr>: Declare.
15269 * tui/tui-winsource.h (struct tui_source_window_base)
15270 <show_source_line, display_start_addr>: New methods.
15271 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15272 Rename and move to protected section.
15273 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15274 (tui_source_window_base::do_erase_source_content): Update.
15275 (tui_source_window_base::show_source_line): Now a method.
15276 (tui_source_window_base::show_source_content)
15277 (tui_source_window_base::tui_source_window_base)
15278 (tui_source_window_base::rerender)
15279 (tui_source_window_base::refill)
15280 (tui_source_window_base::do_scroll_horizontal)
15281 (tui_source_window_base::set_is_exec_point_at)
15282 (tui_source_window_base::update_breakpoint_info)
15283 (tui_source_window_base::update_exec_info): Update.
15284 * tui/tui-source.c (tui_source_window::set_contents)
15285 (tui_source_window::showing_source_p)
15286 (tui_source_window::do_scroll_vertical)
15287 (tui_source_window::location_matches_p)
15288 (tui_source_window::line_is_displayed): Update.
15289 (tui_source_window::display_start_addr): New method.
15290 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15291 (tui_disasm_window::do_scroll_vertical)
15292 (tui_disasm_window::location_matches_p): Update.
15293 (tui_disasm_window::display_start_addr): New method.
15294
15295 2020-02-22 Tom Tromey <tom@tromey.com>
15296
15297 * NEWS: Add entry for gdb.register_window_type.
15298 * tui/tui-layout.h (window_factory): New typedef.
15299 (tui_register_window): Declare.
15300 * tui/tui-layout.c (saved_tui_windows): New global.
15301 (tui_apply_current_layout): Use it.
15302 (tui_register_window): New function.
15303 * python/python.c (do_start_initialization): Call
15304 gdbpy_initialize_tui.
15305 (python_GdbMethods): Add "register_window_type" function.
15306 * python/python-internal.h (gdbpy_register_tui_window)
15307 (gdbpy_initialize_tui): Declare.
15308 * python/py-tui.c: New file.
15309 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15310
15311 2020-02-22 Tom Tromey <tom@tromey.com>
15312
15313 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15314
15315 2020-02-22 Tom Tromey <tom@tromey.com>
15316
15317 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15318 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15319 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15320 (tui_set_win_focus_to): Move from tui-win.c.
15321
15322 2020-02-22 Tom Tromey <tom@tromey.com>
15323
15324 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15325 functions.
15326 (known_window_types): New global.
15327 (tui_get_window_by_name): Reimplement.
15328 (initialize_known_windows): New function.
15329 (validate_window_name): Rewrite.
15330 (_initialize_tui_layout): Call initialize_known_windows.
15331
15332 2020-02-22 Tom Tromey <tom@tromey.com>
15333
15334 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15335 Remove constants.
15336 * tui/tui-winsource.h (struct tui_source_window_base)
15337 <tui_source_window_base>: Remove parameter.
15338 * tui/tui-winsource.c
15339 (tui_source_window_base::tui_source_window_base): Remove
15340 parameter.
15341 (tui_source_window_base::refill): Update.
15342 * tui/tui-stack.h (struct tui_locator_window)
15343 <tui_locator_window>: Update.
15344 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15345 Default the constructor.
15346 * tui/tui-regs.h (struct tui_data_item_window)
15347 <tui_data_item_window>: Default the constructor.
15348 (struct tui_data_window) <tui_data_window>: Likewise.
15349 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15350 Default the constructor.
15351 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15352 Default the constructor.
15353 <type>: Remove.
15354 (struct tui_win_info) <tui_win_info>: Default the constructor.
15355 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15356 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15357 Default the constructor.
15358
15359 2020-02-22 Tom Tromey <tom@tromey.com>
15360
15361 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15362 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15363 * tui/tui-win.c (tui_resize_all): Don't call
15364 tui_delete_invisible_windows.
15365 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15366 done.
15367 (tui_set_layout): Update.
15368 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15369 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15370 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15371
15372 2020-02-22 Tom Tromey <tom@tromey.com>
15373
15374 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15375 correctly.
15376
15377 2020-02-22 Tom Tromey <tom@tromey.com>
15378
15379 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15380
15381 2020-02-22 Tom Tromey <tom@tromey.com>
15382
15383 * tui/tui-winsource.h (struct tui_source_window_iterator)
15384 <inner_iterator>: New etytypedef.
15385 <tui_source_window_iterator>: Take "end" parameter.
15386 <tui_source_window_iterator>: Take iterator.
15387 <operator*, advance>: Update.
15388 <m_iter>: Change type.
15389 <m_end>: New field.
15390 (struct tui_source_windows) <begin, end>: Update.
15391 * tui/tui-layout.c (tui_windows): New global.
15392 (tui_apply_current_layout): Clear tui_windows.
15393 (tui_layout_window::apply): Update tui_windows.
15394 * tui/tui-data.h (tui_windows): Declare.
15395 (all_tui_windows): Now inline function.
15396 (class tui_window_iterator, struct all_tui_windows): Remove.
15397
15398 2020-02-22 Tom Tromey <tom@tromey.com>
15399
15400 PR tui/17850:
15401 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15402 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15403 "height" argument.
15404 (class tui_layout_window) <get_sizes>: Likewise.
15405 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15406 argument.
15407 <get_sizes>: Add "height" argument.
15408 <m_vertical>: New field.
15409 * tui/tui-layout.c (tui_layout_split::clone): Update.
15410 (tui_layout_split::get_sizes): Add "height" argument.
15411 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15412 (tui_new_layout_command): Parse "-horizontal".
15413 (_initialize_tui_layout): Update help string.
15414 (tui_layout_split::specification): Add "-horizontal" when needed.
15415 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15416 argument.
15417 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15418 New methods.
15419
15420 2020-02-22 Tom Tromey <tom@tromey.com>
15421
15422 * tui/tui-layout.h (enum tui_adjust_result): New.
15423 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15424 (class tui_layout_window) <adjust_size>: Return
15425 tui_adjust_result. Rewrite.
15426 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15427 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15428
15429 2020-02-22 Tom Tromey <tom@tromey.com>
15430
15431 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15432 parameter and return types.
15433 (class tui_layout_base) <specification>: Add "depth".
15434 (class tui_layout_window) <specification>: Add "depth".
15435 (class tui_layout_split) <specification>: Add "depth".
15436 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15437 and return types.
15438 (tui_new_layout_command): Parse sub-layouts.
15439 (_initialize_tui_layout): Update help string.
15440 (tui_layout_window::specification): Add "depth".
15441 (add_layout_command): Update.
15442
15443 2020-02-22 Tom Tromey <tom@tromey.com>
15444
15445 * NEWS: Add "tui new-layout" item.
15446 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15447 Add new-layout command to help text.
15448 (validate_window_name): New function.
15449 (tui_new_layout_command): New function.
15450 (_initialize_tui_layout): Register "new-layout".
15451 (tui_layout_window::specification): New method.
15452 (tui_layout_window::specification): New method.
15453 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15454 method.
15455 (class tui_layout_window) <specification>: New method.
15456 (class tui_layout_split) <specification>: New method.
15457
15458 2020-02-22 Tom Tromey <tom@tromey.com>
15459
15460 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15461 * tui/tui-win.c (window_name_completer): Update comment.
15462 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15463 Declare method.
15464 (class tui_layout_window) <replace_window>: Likewise.
15465 (class tui_layout_split) <replace_window>: Likewise.
15466 (tui_set_layout): Don't declare.
15467 (tui_set_initial_layout): Declare function.
15468 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15469 (asm_regs_layout): New globals.
15470 (tui_current_layout, show_layout): Remove.
15471 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15472 (find_layout, tui_apply_layout): New function.
15473 (layout_completer): Remove.
15474 (tui_next_layout): Reimplement.
15475 (tui_next_layout_command): New function.
15476 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15477 (tui_regs_layout): Reimplement.
15478 (tui_regs_layout_command): New function.
15479 (extract_display_start_addr): Rewrite.
15480 (next_layout, prev_layout): Remove.
15481 (tui_layout_window::replace_window): New method.
15482 (tui_layout_split::replace_window): New method.
15483 (destroy_layout): New function.
15484 (layout_list): New global.
15485 (add_layout_command): New function.
15486 (initialize_layouts): Update.
15487 (tui_layout_command): New function.
15488 (_initialize_tui_layout): Install "layout" commands.
15489 * tui/tui-data.h (enum tui_layout_type): Remove.
15490 (tui_current_layout): Don't declare.
15491
15492 2020-02-22 Tom Tromey <tom@tromey.com>
15493
15494 * tui/tui-regs.c (tui_reg_layout): Remove.
15495 (tui_reg_command): Use tui_regs_layout.
15496 * tui/tui-layout.h (tui_reg_command): Declare.
15497 * tui/tui-layout.c (tui_reg_command): New function.
15498
15499 2020-02-22 Tom Tromey <tom@tromey.com>
15500
15501 * tui/tui.c (tui_rl_delete_other_windows): Call
15502 tui_remove_some_windows.
15503 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15504 Declare method.
15505 (class tui_layout_window) <remove_windows>: New method.
15506 (class tui_layout_split) <remove_windows>: Declare.
15507 (tui_remove_some_windows): Declare.
15508 * tui/tui-layout.c (tui_remove_some_windows): New function.
15509 (tui_layout_split::remove_windows): New method.
15510
15511 2020-02-22 Tom Tromey <tom@tromey.com>
15512
15513 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15514 * tui/tui-layout.h (tui_next_layout): Declare.
15515 * tui/tui-layout.c (tui_next_layout): New function.
15516
15517 2020-02-22 Tom Tromey <tom@tromey.com>
15518
15519 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15520 correct coordinates.
15521
15522 2020-02-22 Tom Tromey <tom@tromey.com>
15523
15524 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15525 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15526 DATA_WIN case.
15527
15528 2020-02-22 Tom Tromey <tom@tromey.com>
15529
15530 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15531 TUI_DISASM_WIN, not tui_win_list.
15532
15533 2020-02-22 Tom Tromey <tom@tromey.com>
15534
15535 * valprint.c (generic_val_print_enum_1)
15536 (val_print_type_code_flags): Style member names.
15537 * rust-lang.c (val_print_struct, rust_print_enum)
15538 (rust_print_struct_def, rust_internal_print_type): Style member
15539 names.
15540 * p-valprint.c (pascal_object_print_value_fields): Style member
15541 names. Only call fprintf_symbol_filtered for static members.
15542 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15543 * f-valprint.c (f_val_print): Style member names.
15544 * f-typeprint.c (f_type_print_base): Style member names.
15545 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15546 call fprintf_symbol_filtered for static members.
15547 (cp_print_class_member): Style member names.
15548 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15549 member names.
15550 * ada-valprint.c (ada_print_scalar): Style enum names.
15551 (ada_val_print_enum): Likewise.
15552 * ada-typeprint.c (print_enum_type): Style enum names.
15553
15554 2020-02-21 Tom Tromey <tom@tromey.com>
15555
15556 * psympriv.h (struct partial_symtab): Update comment.
15557
15558 2020-02-21 Tom Tromey <tromey@adacore.com>
15559
15560 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15561 type is CORE_ADDR.
15562
15563 2020-02-21 Tom de Vries <tdevries@suse.de>
15564
15565 PR gdb/25534
15566 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15567 if dependencies[i]->user != NULL.
15568
15569 2020-02-21 Ali Tamur <tamur@google.com>
15570
15571 * dwarf2/read.c (dwarf2_name): Add null check.
15572
15573 2020-02-20 Tom Tromey <tom@tromey.com>
15574
15575 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15576 ">=", in binary search.
15577 (dwarf2_find_containing_comp_unit): New overload.
15578 (run_test): New self-test.
15579 (_initialize_dwarf2_read): Register new test.
15580
15581 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
15582
15583 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15584 * riscv-tdep.h: Likewise.
15585 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15586 rv32-only CSR.
15587 * features/riscv/64bit-csr.xml: Regenerated.
15588
15589 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15590 Tom Tromey <tom@tromey.com>
15591
15592 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15593 of 'fputc_unfiltered'.
15594 (putchar_unfiltered): Call 'fputc_unfiltered'.
15595 (fputc_unfiltered): Call 'fputs_unfiltered'.
15596
15597 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15598
15599 * config.in: Regenerate.
15600 * configure: Regenerate.
15601 * configure.ac: Add --with-python-libdir option.
15602 * main.c: Use WITH_PYTHON_LIBDIR.
15603
15604 2020-02-19 Tom Tromey <tom@tromey.com>
15605
15606 * symtab.c (general_symbol_info::compute_and_set_names): Use
15607 obstack_strndup. Simplify call to symbol_set_demangled_name.
15608
15609 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
15610
15611 * dwarf2/read.c (allocate_signatured_type_table,
15612 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15613 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15614 Remove objfile parameter, update all callers.
15615
15616 2020-02-19 Doug Evans <dje@google.com>
15617
15618 PR rust/25535
15619 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15620 rust_enum_variant calculation.
15621
15622 2020-02-19 Tom Tromey <tromey@adacore.com>
15623
15624 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15625
15626 2020-02-19 Tom Tromey <tromey@adacore.com>
15627
15628 * ada-lang.c (cache_symbol): Use obstack_strdup.
15629
15630 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15631
15632 * configure: Regenerate.
15633
15634 2020-02-19 Tom Tromey <tromey@adacore.com>
15635
15636 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15637 NULL check.
15638
15639 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
15640
15641 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15642
15643 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15644
15645 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15646 if GDBSERVER is not defined.
15647 (riscv_tdesc_cache): Likewise, also store const target_desc.
15648 (STATIC_IN_GDB): Define.
15649 (riscv_create_target_description): Update declaration with
15650 STATIC_IN_GDB.
15651 (riscv_lookup_target_description): New function, only define if
15652 GDBSERVER is not defined.
15653 * arch/riscv.h (riscv_create_target_description): Declare only
15654 when GDBSERVER is defined.
15655 (riscv_lookup_target_description): New declaration when GDBSERVER
15656 is not defined.
15657 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15658 (riscv_linux_read_features): ...this, and return
15659 riscv_gdbarch_features instead of target_desc.
15660 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15661 (riscv_linux_read_description): Rename to...
15662 (riscv_linux_read_features): ...this.
15663 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15664 Update to use riscv_gdbarch_features and
15665 riscv_lookup_target_description.
15666 * riscv-tdep.c (riscv_find_default_target_description): Use
15667 riscv_lookup_target_description instead of
15668 riscv_create_target_description.
15669
15670 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15671
15672 * valprint.c (generic_val_print_enum_1): When printing a flag
15673 enum with value 0 and there is no enumerator with value 0, print
15674 just "0" instead of "(unknown: 0x0)".
15675
15676 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15677
15678 * valprint.c (generic_val_print_enum_1): Print unknown part of
15679 flag enum in hex.
15680
15681 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15682
15683 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15684 flag enums to contain duplicate enumerators.
15685 * valprint.c (generic_val_print_enum_1): Update comment.
15686
15687 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15688
15689 * dwarf2/read.c: Include "count-one-bits.h".
15690 (update_enumeration_type_from_children): If an enumerator has
15691 multiple bits set, don't treat the enumeration as a "flag enum".
15692 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15693 of flag enums have 0 or 1 bit set.
15694
15695 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15696
15697 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15698 conversion.
15699 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15700 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15701 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15702 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15703 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15704
15705 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
15706
15707 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15708
15709 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15710
15711 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15712 displaced_step_closure_up.
15713 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15714 (struct displaced_step_closure_up):
15715 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15716 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15717 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15718 Likewise.
15719 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15720 * gdbarch.c, gdbarch.h: Re-generate.
15721 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15722 displaced_step_closure_up.
15723 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15724 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15725 * infrun.h (displaced_step_closure_up): New type alias.
15726 (struct displaced_step_inferior_state) <step_closure>: Change
15727 type to displaced_step_closure_up.
15728 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15729 displaced_step_closure_up.
15730 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15731
15732 2020-02-14 Tom Tromey <tom@tromey.com>
15733
15734 * minidebug.c (gnu_debug_key): New global.
15735 (find_separate_debug_file_in_section): Use it.
15736
15737 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15738
15739 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15740 std::unique_ptr.
15741 * gdbarch.c: Re-generate.
15742 * gdbarch.h: Re-generate.
15743 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15744 change.
15745 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15746 type to std::unique_ptr.
15747 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15748 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15749 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15750 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15751 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15752 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15753 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15754 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15755 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15756
15757 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15758
15759 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15760 std::unique_ptr.
15761 (displaced_step_clear): Rename to...
15762 (displaced_step_reset): ... this. Just call displaced->reset ().
15763 (displaced_step_clear_cleanup): Rename to...
15764 (displaced_step_reset_cleanup): ... this.
15765 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15766 (displaced_step_fixup): Likewise.
15767 (resume_1): Likewise.
15768 (handle_inferior_event): Restore child's memory before calling
15769 displaced_step_fixup on the parent.
15770 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15771 to std::unique_ptr.
15772 <step_closure>: Change type to std::unique_ptr.
15773
15774 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
15775
15776 * arm-tdep.c: Include count-one-bits.h.
15777 (cleanup_block_store_pc): Use count_one_bits.
15778 (cleanup_block_load_pc): Use count_one_bits.
15779 (arm_copy_block_xfer): Use count_one_bits.
15780 (thumb2_copy_block_xfer): Use count_one_bits.
15781 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15782 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15783 (thumb_get_next_pcs_raw): Use count_one_bits.
15784 (arm_get_next_pcs_raw): Use count_one_bits_l.
15785 * arch/arm.c (bitcount): Remove.
15786 * arch/arm.h (bitcount): Remove.
15787
15788 2020-02-14 Tom Tromey <tromey@adacore.com>
15789
15790 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15791 Update.
15792 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15793 * dwarf2/loc.c (call_site_find_chain_1): Return
15794 unique_xmalloc_ptr.
15795 (call_site_find_chain): Likewise.
15796
15797 2020-02-14 Richard Biener <rguenther@suse.de>
15798
15799 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15800 on expression with division operators.
15801
15802 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15803
15804 * MAINTAINERS (Write After Approval): Adding myself.
15805
15806 2020-02-12 Tom Tromey <tom@tromey.com>
15807
15808 * event-loop.c (event_data, gdb_event, event_handler_func):
15809 Remove.
15810
15811 2020-02-12 Tom Tromey <tom@tromey.com>
15812
15813 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15814 (dwarf2_frame_objfile_data): Add comment.
15815 (find_comp_unit, set_comp_unit): New functions.
15816 (dwarf2_frame_find_fde): Use find_comp_unit.
15817 (dwarf2_build_frame_info): Use set_comp_unit.
15818
15819 2020-02-12 Tom Tromey <tom@tromey.com>
15820
15821 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15822 (comp_unit): Don't initialize objfile.
15823 (execute_cfa_program): Add text_offset parameter.
15824 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15825 (dwarf2_frame_cache): Update.
15826 (dwarf2_build_frame_info): Don't set "objfile" member.
15827
15828 2020-02-12 Tom Tromey <tom@tromey.com>
15829
15830 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15831 (decode_frame_entry): Likewise.
15832 (dwarf2_build_frame_info): Update.
15833
15834 2020-02-12 Tom Tromey <tom@tromey.com>
15835
15836 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15837 (decode_frame_entry_1): Use the comp_unit obstack.
15838
15839 2020-02-12 Tom Tromey <tom@tromey.com>
15840
15841 * dwarf2/frame.c (struct comp_unit): Add initializers and
15842 constructor.
15843 (dwarf2_frame_objfile_data): Store a comp_unit.
15844 (dwarf2_frame_find_fde): Update.
15845 (dwarf2_build_frame_info): Use "new".
15846
15847 2020-02-12 Tom Tromey <tom@tromey.com>
15848
15849 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15850 (dwarf2_fde_table): Typedef for std::vector.
15851 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15852 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15853 (decode_frame_entry): Update.
15854 (dwarf2_build_frame_info): Use "new".
15855
15856 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15857
15858 * arm-tdep.c (arm_gdbarch_init): Update.
15859 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15860 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15861 have_neon, is_m>: Change to bool.
15862
15863 2020-02-12 Christian Biesinger <cbiesinger@google.com>
15864
15865 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15866
15867 2020-02-12 Tom Tromey <tom@tromey.com>
15868
15869 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15870
15871 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
15872
15873 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15874 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15875
15876 2020-02-11 Tom Tromey <tom@tromey.com>
15877
15878 * psymtab.h: Update comment.
15879
15880 2020-02-11 Tom Tromey <tom@tromey.com>
15881
15882 * gdb_obstack.h (struct auto_obstack): Use
15883 DISABLE_COPY_AND_ASSIGN.
15884
15885 2020-02-11 Tom Tromey <tom@tromey.com>
15886
15887 * dwarf2/frame.h (struct objfile): Don't forward declare.
15888
15889 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15890
15891 * cris-tdep.c (cris_supply_gregset): Change signature to match
15892 what struct regset expects.
15893 (cris_regset): New struct.
15894 (fetch_core_registers): Remove.
15895 (cris_iterate_over_regset_sections): New function.
15896 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15897 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15898
15899 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15900
15901 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15902 registers.
15903
15904 2020-02-11 Christian Biesinger <cbiesinger@google.com>
15905
15906 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15907
15908 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15909
15910 * configure: Re-generate.
15911
15912 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15913
15914 * configure: Re-generate.
15915
15916 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
15917
15918 * acinclude: Update warning.m4 path.
15919 * warning.m4: Move to gdbsupport.
15920
15921 2020-02-11 Tom Tromey <tromey@adacore.com>
15922
15923 * remote.c (remote_console_output): Update.
15924 * printcmd.c (printf_command): Update.
15925 * event-loop.c (gdb_wait_for_event): Update.
15926 * linux-nat.c (sigchld_handler): Update.
15927 * remote-sim.c (gdb_os_write_stdout): Update.
15928 (gdb_os_flush_stdout): Update.
15929 (gdb_os_flush_stderr): Update.
15930 (gdb_os_write_stderr): Update.
15931 * exceptions.c (print_exception): Update.
15932 * remote-fileio.c (remote_fileio_func_read): Update.
15933 (remote_fileio_func_write): Update.
15934 * tui/tui.c (tui_enable): Update.
15935 * tui/tui-interp.c (tui_interp::init): Update.
15936 * utils.c (init_page_info): Update.
15937 (putchar_unfiltered, fputc_unfiltered): Update.
15938 (gdb_flush): Update.
15939 (emit_style_escape): Update.
15940 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15941 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15942 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15943 (stderr_file::write): Update.
15944 (stderr_file::puts): Update.
15945 * ui-file.h (ui_file_isatty, ui_file_write)
15946 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15947 (ui_file_puts): Don't declare.
15948
15949 2020-02-10 Tom de Vries <tdevries@suse.de>
15950
15951 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15952 sentinel to char *.
15953
15954 2020-02-09 Tom de Vries <tdevries@suse.de>
15955
15956 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15957 filename if it matches "<artificial>".
15958
15959 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15960
15961 * windows-tdep.c (struct enum_value_name): New struct.
15962 (create_enum): New function.
15963 (windows_get_siginfo_type): Create and use enum types.
15964
15965 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
15966
15967 * NEWS: Mention $_siginfo support for Windows.
15968 * windows-nat.c (handle_exception): Set siginfo_er.
15969 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15970 (windows_xfer_siginfo): New function.
15971 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15972 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15973 (init_windows_gdbarch_data): New function.
15974 (get_windows_gdbarch_data): New function.
15975 (windows_get_siginfo_type): New function.
15976 (windows_init_abi): Register windows_get_siginfo_type.
15977 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15978
15979 2020-02-08 Tom Tromey <tom@tromey.com>
15980
15981 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15982 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15983 <keep>: Declare method.
15984 <m_keep>: Remove member.
15985 <~cutu_reader>: Remove.
15986 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15987 (cutu_reader::cutu_reader): Update.
15988 (cutu_reader::keep): Rename from ~cutu_reader.
15989 (process_psymtab_comp_unit, build_type_psymtabs_1)
15990 (process_skeletonless_type_unit, load_partial_comp_unit)
15991 (load_full_comp_unit, dwarf2_read_addr_index)
15992 (read_signatured_type): Update.
15993
15994 2020-02-08 Tom Tromey <tom@tromey.com>
15995
15996 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15997 "want_partial_unit" parameter.
15998 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15999 Inline check for DW_TAG_partial_unit.
16000 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
16001
16002 2020-02-08 Tom Tromey <tom@tromey.com>
16003
16004 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
16005 read.c.
16006 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
16007 read.c.
16008
16009 2020-02-08 Tom Tromey <tom@tromey.com>
16010
16011 * dwarf2/read.c (read_address): Move to comp-unit.c.
16012 (dwarf2_rnglists_process, dwarf2_ranges_process)
16013 (read_attribute_value, dwarf_decode_lines_1)
16014 (var_decode_location, decode_locdesc): Update.
16015 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
16016 read.c. Remove "cu" parameter.
16017 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
16018 method.
16019
16020 2020-02-08 Tom Tromey <tom@tromey.com>
16021
16022 * dwarf2/read.c (read_attribute_value, read_indirect_string)
16023 (read_indirect_line_string): Update.
16024 * dwarf2/comp-unit.c (read_offset): Remove.
16025 (read_comp_unit_head): Update.
16026 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
16027 method.
16028 (read_offset): Don't declare.
16029
16030 2020-02-08 Tom Tromey <tom@tromey.com>
16031
16032 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
16033 * dwarf2/read.c (struct comp_unit_head): Move to
16034 dwarf2/comp-unit.h.
16035 (enum class rcuh_kind): Move to comp-unit.h.
16036 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
16037 (read_comp_unit_head, error_check_comp_unit_head)
16038 (read_and_check_comp_unit_head): Move to comp-unit.c.
16039 (read_offset, dwarf_unit_type_name): Likewise.
16040 (create_debug_type_hash_table, read_cutu_die_from_dwo)
16041 (cutu_reader::cutu_reader, read_call_site_scope)
16042 (find_partial_die, follow_die_offset): Update.
16043 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
16044
16045 2020-02-08 Tom Tromey <tom@tromey.com>
16046
16047 * dwarf2/read.c (read_offset_1): Move to leb.c.
16048 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
16049 (dwarf_decode_macro_bytes): Update.
16050 * dwarf2/leb.c (read_offset): Rename; move from read.c.
16051 * dwarf2/leb.h (read_offset): Declare.
16052
16053 2020-02-08 Tom Tromey <tom@tromey.com>
16054
16055 * dwarf2/read.c (dwarf2_section_size): Remove.
16056 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
16057 Update.
16058 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
16059
16060 2020-02-08 Tom Tromey <tom@tromey.com>
16061
16062 * dwarf2/read.c (read_initial_length): Move to leb.c.
16063 * dwarf2/leb.h (read_initial_length): Declare.
16064 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
16065 handle_nonstd parameter.
16066 * dwarf2/frame.c (read_initial_length): Remove.
16067 (decode_frame_entry_1): Update.
16068
16069 2020-02-08 Tom Tromey <tom@tromey.com>
16070
16071 * dwarf2/loc.c (dwarf2_find_location_expression)
16072 (dwarf_evaluate_loc_desc::get_tls_address)
16073 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16074 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
16075 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
16076 (dwarf2_compile_property_to_c)
16077 (dwarf2_loc_desc_get_symbol_read_needs)
16078 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
16079 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
16080 (loclist_describe_location, loclist_tracepoint_var_ref)
16081 (loclist_generate_c_location): Update.
16082 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
16083 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
16084 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
16085 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
16086 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
16087 (dwarf2_per_cu_data::addr_size)
16088 (dwarf2_per_cu_data::ref_addr_size)
16089 (dwarf2_per_cu_data::text_offset)
16090 (dwarf2_per_cu_data::addr_type): Now methods.
16091 (per_cu_header_read_in): Make per_cu "const".
16092 (dwarf2_version): Remove.
16093 (dwarf2_per_cu_data::int_type): Now a method.
16094 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
16095 (set_die_type, read_array_type, read_subrange_index_type)
16096 (read_tag_string_type, read_subrange_type): Update.
16097 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
16098 offset_size, ref_addr_size, text_offset, addr_type, version,
16099 objfile, int_type, addr_sized_int_type>: Declare methods.
16100
16101 2020-02-08 Tom Tromey <tom@tromey.com>
16102
16103 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
16104 Move earlier.
16105
16106 2020-02-08 Tom Tromey <tom@tromey.com>
16107
16108 * dwarf2/read.h (dwarf_line_debug): Declare.
16109 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
16110 * dwarf2/read.c: Move line_header code to new files.
16111 (dwarf_line_debug): No longer static.
16112 * dwarf2/line-header.c: New file.
16113 * dwarf2/line-header.h: New file.
16114
16115 2020-02-08 Tom Tromey <tom@tromey.com>
16116
16117 * dwarf2/read.c (struct line_header) <file_full_name,
16118 file_file_name>: Return unique_xmalloc_ptr.
16119 (line_header::file_file_name): Update.
16120 (line_header::file_full_name): Update.
16121 (dw2_get_file_names_reader): Update.
16122 (macro_start_file): Update.
16123
16124 2020-02-08 Tom Tromey <tom@tromey.com>
16125
16126 * dwarf2/read.c (struct line_header) <file_full_name,
16127 file_file_name>: Declare methods.
16128 (dw2_get_file_names_reader): Update.
16129 (file_file_name): Now a method.
16130 (file_full_name): Likewise.
16131 (macro_start_file): Update.
16132
16133 2020-02-08 Tom Tromey <tom@tromey.com>
16134
16135 * dwarf2/read.c (dwarf_always_disassemble)
16136 (show_dwarf_always_disassemble): Move to loc.c.
16137 (_initialize_dwarf2_read): Move "always-disassemble" registration
16138 to loc.c.
16139 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
16140 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
16141 static.
16142 (show_dwarf_always_disassemble): Move from read.c.
16143 (_initialize_dwarf2loc): Move always-disassemble from read.c.
16144
16145 2020-02-08 Tom Tromey <tom@tromey.com>
16146
16147 * dwarf2/read.c (~dwarf2_per_objfile): Update.
16148 (create_quick_file_names_table): Return htab_up.
16149 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
16150 Update.
16151 * dwarf2/read.h (struct dwarf2_per_objfile)
16152 <quick_file_names_table>: Now htab_up.
16153
16154 2020-02-08 Tom Tromey <tom@tromey.com>
16155
16156 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
16157
16158 2020-02-08 Tom Tromey <tom@tromey.com>
16159
16160 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
16161 Rewrite.
16162 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
16163 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
16164 (abbrev_table::abbrev_table): No longer inline.
16165 (ABBREV_HASH_SIZE): Remove.
16166 (abbrev_table::m_abbrevs): Now an htab_up.
16167
16168 2020-02-08 Tom Tromey <tom@tromey.com>
16169
16170 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
16171 (cutu_reader): Update.
16172 (build_type_psymtabs_1): Update.
16173 * dwarf2/abbrev.c (abbrev_table::read): Rename.
16174 (abbrev_table::alloc_abbrev): Update.
16175 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
16176 (abbrev_table::read): New static method, renamed from
16177 abbrev_table_read_table.
16178 (abbrev_table::alloc_abbrev)
16179 (abbrev_table::add_abbrev): Now private.
16180 (abbrev_table::abbrev_table): Now private.
16181 (abbrev_table::m_abbrev_obstack): Now private. Rename.
16182
16183 2020-02-08 Tom Tromey <tom@tromey.com>
16184
16185 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
16186 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
16187 htab_up.
16188
16189 2020-02-08 Tom Tromey <tom@tromey.com>
16190
16191 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
16192 htab_up.
16193 (lookup_dwo_unit_in_dwp): Update.
16194 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16195 on obstack.
16196
16197 2020-02-08 Tom Tromey <tom@tromey.com>
16198
16199 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16200 obstack.
16201
16202 2020-02-08 Tom Tromey <tom@tromey.com>
16203
16204 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16205 line_header_hash.
16206 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16207 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16208 Change type to htab_up.
16209
16210 2020-02-08 Tom Tromey <tom@tromey.com>
16211
16212 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16213 htab_up. Don't allocate on obstack.
16214 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16215 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16216 Change type to htab_up.
16217
16218 2020-02-08 Tom Tromey <tom@tromey.com>
16219
16220 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16221 Change type to htab_up.
16222 * dwarf2/read.c (create_signatured_type_table_from_index)
16223 (create_signatured_type_table_from_debug_names)
16224 (create_all_type_units, add_type_unit)
16225 (lookup_dwo_signatured_type, lookup_signatured_type)
16226 (process_skeletonless_type_unit): Update.
16227 (create_debug_type_hash_table, create_debug_types_hash_table):
16228 Change type of types_htab.
16229 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16230 htab_up. Don't allocate on obstack.
16231 (create_cus_hash_table): Change type of cus_htab parameter.
16232 (struct dwo_file) <cus, tus>: Now htab_up.
16233 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16234 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16235 (queue_and_load_all_dwo_tus): Update.
16236 * dwarf2/index-write.c (write_gdbindex): Update.
16237 (write_debug_names): Update.
16238
16239 2020-02-08 Tom Tromey <tom@tromey.com>
16240
16241 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16242 dwarf2/read.c. Remove "next" member. Add constructor ntad
16243 destructor.
16244 (struct dwarf2_per_objfile) <queue>: New member.
16245 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16246 dwarf2/read.h.
16247 (dwarf2_queue, dwarf2_queue_tail): Remove.
16248 (class dwarf2_queue_guard): Add parameter to constructor. Use
16249 DISABLE_COPY_AND_ASSIGN.
16250 <m_per_objfile>: New member.
16251 <~dwarf2_queue_guard>: Rewrite.
16252 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16253 Update.
16254 (~dwarf2_queue_item): New.
16255
16256 2020-02-08 Tom Tromey <tom@tromey.com>
16257
16258 * dwarf2/read.c (struct die_info) <has_children>: New member.
16259 (dw2_get_file_names_reader): Remove has_children.
16260 (dw2_get_file_names): Update.
16261 (read_cutu_die_from_dwo): Remove has_children.
16262 (cutu_reader::init_tu_and_read_dwo_dies)
16263 (cutu_reader::cutu_reader): Update.
16264 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16265 Remove has_children.
16266 (build_type_psymtabs_1, process_skeletonless_type_unit)
16267 (load_partial_comp_unit, load_full_comp_unit): Update.
16268 (create_dwo_cu_reader): Remove has_children.
16269 (create_cus_hash_table, read_die_and_children): Update.
16270 (read_full_die_1,read_full_die): Remove has_children.
16271 (read_signatured_type): Update.
16272 (class cutu_reader) <has_children>: Remove.
16273
16274 2020-02-08 Tom Tromey <tom@tromey.com>
16275
16276 * dwarf2/expr.c: Rename from dwarf2expr.c.
16277 * dwarf2/expr.h: Rename from dwarf2expr.h.
16278 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16279 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16280 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16281 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16282 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16283 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16284 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16285 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16286 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16287 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16288 * dwarf2/loc.c: Rename from dwarf2loc.c.
16289 * dwarf2/loc.h: Rename from dwarf2loc.h.
16290 * dwarf2/read.c: Rename from dwarf2read.c.
16291 * dwarf2/read.h: Rename from dwarf2read.h.
16292 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16293 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16294 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16295 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16296 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16297 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16298 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16299 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16300 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16301 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16302 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16303 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16304 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16305 Update.
16306 * Makefile.in (COMMON_SFILES): Update.
16307 (HFILES_NO_SRCDIR): Update.
16308
16309 2020-02-08 Tom Tromey <tom@tromey.com>
16310
16311 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16312 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16313
16314 2020-02-08 Tom Tromey <tom@tromey.com>
16315
16316 * dwarf2read.h (struct die_info): Don't declare.
16317
16318 2020-02-08 Tom Tromey <tom@tromey.com>
16319
16320 * dwarf2read.h (die_info_ptr): Remove typedef.
16321
16322 2020-02-08 Tom Tromey <tom@tromey.com>
16323
16324 * dwarf2read.c (read_call_site_scope)
16325 (handle_data_member_location, dwarf2_add_member_fn)
16326 (mark_common_block_symbol_computed, read_common_block)
16327 (attr_to_dynamic_prop, partial_die_info::read)
16328 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16329 (dwarf2_symbol_mark_computed, set_die_type): Update.
16330 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16331 method.
16332 (attr_form_is_block): Don't declare.
16333 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16334
16335 2020-02-08 Tom Tromey <tom@tromey.com>
16336
16337 * dwarf2read.c (dwarf2_find_base_address, )
16338 (read_call_site_scope, rust_containing_type)
16339 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16340 (handle_data_member_location, dwarf2_add_member_fn)
16341 (get_alignment, read_structure_type, process_structure_scope)
16342 (mark_common_block_symbol_computed, read_common_block)
16343 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16344 (partial_die_info::read, read_attribute_value, new_symbol)
16345 (lookup_die_type, dwarf2_get_ref_die_offset)
16346 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16347 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16348 (dwarf2_symbol_mark_computed): Update.
16349 * dwarf2/attribute.h (struct attribute) <value_as_address,
16350 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16351 methods.
16352 (value_as_address, attr_form_is_section_offset)
16353 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16354 * dwarf2/attribute.c (attribute::value_as_address)
16355 (attribute::form_is_section_offset, attribute::form_is_constant)
16356 (attribute::form_is_ref): Now methods.
16357
16358 2020-02-08 Tom Tromey <tom@tromey.com>
16359
16360 * dwarf2read.c (struct attribute, DW_STRING)
16361 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16362 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16363 (attr_form_is_block, attr_form_is_section_offset)
16364 (attr_form_is_constant, attr_form_is_ref): Move.
16365 * dwarf2/attribute.h: New file.
16366 * dwarf2/attribute.c: New file, from dwarf2read.c.
16367 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16368
16369 2020-02-08 Tom Tromey <tom@tromey.com>
16370
16371 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16372 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16373 Move.
16374 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16375 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16376 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16377 abbrev.c.
16378 * dwarf2/abbrev.h: New file.
16379 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16380 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16381
16382 2020-02-08 Tom Tromey <tom@tromey.com>
16383
16384 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16385 (dwarf2_section_size, dwarf2_get_section_info)
16386 (create_signatured_type_table_from_debug_names)
16387 (create_addrmap_from_aranges, read_debug_names_from_section)
16388 (get_gdb_index_contents_from_section, read_comp_unit_head)
16389 (error_check_comp_unit_head, read_abbrev_offset)
16390 (create_debug_type_hash_table, init_cu_die_reader)
16391 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16392 (read_comp_units_from_section, create_cus_hash_table)
16393 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16394 (create_dwp_v2_section, dwarf2_rnglists_process)
16395 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16396 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16397 (read_indirect_string_from_dwz, read_addr_index_1)
16398 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16399 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16400 (fill_in_loclist_baton): Update.
16401 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16402 get_containing_section, get_bfd_owner, get_bfd_section,
16403 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16404 (dwarf2_read_section, get_section_name, get_section_file_name)
16405 (get_containing_section, get_section_bfd_owner)
16406 (get_section_bfd_section, get_section_name, get_section_file_name)
16407 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16408 declare.
16409 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16410 (dwarf2_section_info::get_bfd_owner)
16411 (dwarf2_section_info::get_bfd_section)
16412 (dwarf2_section_info::get_name)
16413 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16414 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16415 (dwarf2_section_info::read): Now methods.
16416 * dwarf-index-write.c (class debug_names): Update.
16417
16418 2020-02-08 Tom Tromey <tom@tromey.com>
16419
16420 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16421 Move to dwarf2/section.h.
16422 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16423 (get_section_bfd_section, get_section_name)
16424 (get_section_file_name, get_section_id, get_section_flags)
16425 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16426 dwarf2/section.c.
16427 * dwarf2/section.h: New file.
16428 * dwarf2/section.c: New file, from dwarf2read.c.
16429 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16430
16431 2020-02-08 Tom Tromey <tom@tromey.com>
16432
16433 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16434 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16435 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16436 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16437 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16438 * dwarf2/leb.h: New file, from dwarf2read.c.
16439 * dwarf2/leb.c: New file, from dwarf2read.c.
16440 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16441 Remove.
16442 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16443 (COMMON_SFILES): Add dwarf2/leb.c.
16444
16445 2020-02-08 Joel Brobecker <brobecker@adacore.com>
16446
16447 GDB 9.1 released.
16448
16449 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16450
16451 PR gdb/25190:
16452 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16453 * gdb/remote.c (remote_console_output): Update.
16454 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16455 (ui_file_puts): ...this.
16456 * gdb/ui-file.h (ui_file_puts): Add declaration.
16457 * gdb/utils.c (emit_style_escape): Update.
16458 (flush_wrap_buffer): Update.
16459 (fputs_maybe_filtered): Update.
16460 (fputs_unfiltered): Add function.
16461
16462 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16463
16464 * gdb/event-loop.c (gdb_wait_for_event): Update.
16465 * gdb/printcmd.c (printf_command): Update.
16466 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16467 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16468 (gdb_os_flush_stderr): Update.
16469 * gdb/remote.c (remote_console_output): Update.
16470 * gdb/ui-file.c (gdb_flush): Rename to...
16471 (ui_file_flush): ...this.
16472 (stderr_file::write): Update.
16473 (stderr_file::puts): Update.
16474 * gdb/ui-file.h (gdb_flush): Rename to...
16475 (ui_file_flush): ...this.
16476 * gdb/utils.c (gdb_flush): Add function.
16477 * gdb/utils.h (gdb_flush): Add declaration.
16478
16479 2020-02-07 Tom Tromey <tromey@adacore.com>
16480
16481 PR breakpoints/24915:
16482 * source.c (find_and_open_source): Do not check basenames_may_differ.
16483
16484 2020-02-07 Tom Tromey <tom@tromey.com>
16485
16486 * README: Update gdbserver documentation.
16487 * gdbserver: Move to top level.
16488 * configure.tgt (build_gdbserver): Remove.
16489 * configure.ac: Remove --enable-gdbserver.
16490 * configure: Rebuild.
16491 * Makefile.in (distclean): Don't mention gdbserver.
16492
16493 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16494
16495 * source-cache.c (source_cache::ensure): Surround
16496 get_plain_source_lines with a try/catch.
16497 (source_cache::get_line_charpos): Get rid of try/catch
16498 and only check for the return value of "ensure".
16499 * tui/tui-source.c (tui_source_window::set_contents):
16500 Simplify "nlines" calculation.
16501
16502 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
16503
16504 * MAINTAINERS (Write After Approval): Add myself.
16505
16506 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16507
16508 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16509 function call.
16510
16511 2020-02-05 Christian Biesinger <cbiesinger@google.com>
16512
16513 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16514
16515 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
16516
16517 * nat/riscv-linux-tdesc.h: New file.
16518 * nat/riscv-linux-tdesc.c: New file, taking code from...
16519 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16520 ... here.
16521 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16522 NATDEPFILES.
16523
16524 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16525
16526 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16527 we don't set the fake simulator ptid to the null_ptid.
16528
16529 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
16530
16531 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16532 * gdbthread.h (class thread_info) <resumed>: Likewise.
16533 * infrun.c (resume_1): Likewise.
16534 (proceed): Likewise.
16535 (infrun_thread_stop_requested): Likewise.
16536 (stop_all_threads): Likewise.
16537 (handle_inferior_event): Likewise.
16538 (restart_threads): Likewise.
16539 (finish_step_over): Likewise.
16540 (keep_going_stepped_thread): Likewise.
16541 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16542 (linux_handle_extended_wait): Likewise.
16543 * record-btrace.c (get_thread_current_frame_id): Likewise.
16544 * record-full.c (record_full_wait_1): Likewise.
16545 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16546 * target.c (target_resume): Likewise.
16547 * thread.c (set_running_thread): Likewise.
16548
16549 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16550
16551 * f-valprint.c (f77_print_array_1): Changed datatype of index
16552 variable to LONGEST from int to enable it to contain bound
16553 values correctly.
16554
16555 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
16556
16557 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16558 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16559 offsets according to FLEN determined.
16560 (riscv_linux_nat_target::read_description): Determine FLEN
16561 dynamically.
16562 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16563 according to FLEN determined.
16564 (riscv_linux_nat_target::store_registers): Likewise.
16565
16566 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
16567
16568 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16569 when reg->group is empty and reggroup is not.
16570
16571 2020-01-31 Tom Tromey <tromey@adacore.com>
16572
16573 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16574 Call beneath target's mourn_inferior after unpushing.
16575
16576 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16577
16578 PR tui/9765
16579 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16580 have enough lines to fill the screen, still return the lowest
16581 address we found.
16582
16583 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16584
16585 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16586 '-', '<', and '>' commands.
16587
16588 2020-01-29 Pedro Alves <palves@redhat.com>
16589 Sergio Durigan Junior <sergiodj@redhat.com>
16590
16591 * infcmd.c (construct_inferior_arguments): Assert that
16592 'argc' is greater than 0.
16593
16594 2020-01-29 Luis Machado <luis.machado@linaro.org>
16595
16596 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16597 (BRK_INSN_MASK): Define to 0xd4200000.
16598 (aarch64_program_breakpoint_here_p): New function.
16599 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16600 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16601 breakpoint.c.
16602 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16603 breakpoint.h
16604 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16605 call gdbarch_program_breakpoint_here_p.
16606 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16607 default_program_breakpoint_here_p, changed return type to bool and
16608 simplified.
16609 * breakpoint.h (program_breakpoint_here): Moved prototype to
16610 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16611 return type to bool.
16612 * gdbarch.c: Regenerate.
16613 * gdbarch.h: Regenerate.
16614 * gdbarch.sh (program_breakpoint_here_p): New method.
16615 * infrun.c (handle_signal_stop): Call
16616 gdbarch_program_breakpoint_here_p.
16617
16618 2020-01-26 Tom Tromey <tom@tromey.com>
16619
16620 * ctfread.c (struct ctf_fp_info): Reindent.
16621 (_initialize_ctfread): Remove.
16622
16623 2020-01-26 Tom Tromey <tom@tromey.com>
16624
16625 * psymtab.c (partial_map_expand_apply)
16626 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16627 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16628 (psym_print_stats, psym_expand_symtabs_for_function)
16629 (psym_map_symbol_filenames, psym_map_matching_symbols)
16630 (psym_expand_symtabs_matching)
16631 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16632 (maintenance_check_psymtabs): Use new methods.
16633 * psympriv.h (struct partial_symtab) <readin_p,
16634 get_compunit_symtab>: New methods.
16635 <readin, compunit_symtab>: Remove members.
16636 (struct standard_psymtab): New.
16637 (struct legacy_psymtab): Derive from standard_psymtab.
16638 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16639 standard_psymtab.
16640 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16641
16642 2020-01-26 Tom Tromey <tom@tromey.com>
16643
16644 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16645 read_dependencies. Add assert.
16646 * psymtab.c (partial_symtab::read_dependencies): New method.
16647 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16648 method.
16649 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16650 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16651 read_dependencies.
16652 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16653 Add assert.
16654
16655 2020-01-26 Tom Tromey <tom@tromey.com>
16656
16657 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16658 Call expand_psymtab.
16659 (xcoff_read_symtab): Call expand_psymtab.
16660 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16661 legacy_expand_psymtab.
16662 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16663 method.
16664 (struct legacy_psymtab) <expand_psymtab>: Implement.
16665 <legacy_expand_psymtab>: New member.
16666 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16667 (parse_partial_symbols): Set legacy_expand_psymtab.
16668 (psymtab_to_symtab_1): Change argument order. Call
16669 expand_psymtab.
16670 (new_psymtab): Set legacy_expand_psymtab.
16671 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16672 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16673 expand_psymtab.
16674 (dwarf2_psymtab::expand_psymtab): Rename from
16675 psymtab_to_symtab_1. Call expand_psymtab.
16676 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16677 (dbx_end_psymtab): Likewise.
16678 (dbx_psymtab_to_symtab_1): Change argument order. Call
16679 expand_psymtab.
16680 (dbx_read_symtab): Call expand_psymtab.
16681 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16682 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16683 (ctf_psymtab::read_symtab): Call expand_psymtab.
16684
16685 2020-01-26 Tom Tromey <tom@tromey.com>
16686
16687 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16688 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16689 messages.
16690 * mdebugread.c (mdebug_read_symtab): Remove prints.
16691 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16692 assert.
16693 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16694
16695 2020-01-26 Tom Tromey <tom@tromey.com>
16696
16697 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16698 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16699 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16700 legacy_symtab.
16701 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16702 * psymtab.c (psymtab_to_symtab): Call method.
16703 (dump_psymtab): Update.
16704 * psympriv.h (struct partial_symtab): Add virtual destructor.
16705 <read_symtab>: New method.
16706 (struct legacy_symtab): New.
16707 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16708 (struct pst_map) <pst>: Now a legacy_psymtab.
16709 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16710 (new_psymtab): Use legacy_psymtab.
16711 * dwarf2read.h (struct dwarf2_psymtab): New.
16712 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16713 * dwarf2read.c (dwarf2_create_include_psymtab)
16714 (dwarf2_build_include_psymtabs, create_type_unit_group)
16715 (create_partial_symtab, process_psymtab_comp_unit_reader)
16716 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16717 (set_partial_user): Use dwarf2_psymtab.
16718 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16719 (psymtab_to_symtab_1, process_full_comp_unit)
16720 (process_full_type_unit, dwarf2_ranges_read)
16721 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16722 (dwarf_decode_lines): Use dwarf2_psymtab.
16723 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16724 (add_address_entry_worker, write_one_signatured_type)
16725 (recursively_count_psymbols, recursively_write_psymbols)
16726 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16727 (write_debug_names): Likewise.
16728 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16729 <pst>: Now a legacy_psymtab.
16730 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16731 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16732 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16733 * ctfread.c (struct ctf_psymtab): New.
16734 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16735 ctf_psymtab.
16736 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16737 (create_partial_symtab): Return a ctf_psymtab.
16738 (scan_partial_symbols): Update.
16739
16740 2020-01-26 Tom Tromey <tom@tromey.com>
16741
16742 * xcoffread.c (xcoff_start_psymtab): Use new.
16743 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16744 renamed from start_psymtab_common.
16745 * psympriv.h (struct partial_symtab): Add new constructor.
16746 (start_psymtab_common): Don't declare.
16747 * mdebugread.c (parse_partial_symbols): Use new.
16748 * dwarf2read.c (create_partial_symtab): Use new.
16749 * dbxread.c (start_psymtab): Use new.
16750 * ctfread.c (create_partial_symtab): Use new.
16751
16752 2020-01-26 Tom Tromey <tom@tromey.com>
16753
16754 * xcoffread.c (xcoff_end_psymtab): Use new.
16755 * psymtab.c (start_psymtab_common): Use new.
16756 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16757 Update.
16758 * psympriv.h (struct partial_symtab): Add parameters to
16759 constructor. Don't inline.
16760 (allocate_psymtab): Don't declare.
16761 * mdebugread.c (new_psymtab): Use new.
16762 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16763 * dbxread.c (dbx_end_psymtab): Use new.
16764
16765 2020-01-26 Tom Tromey <tom@tromey.com>
16766
16767 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16768 allocate_psymtab. Update documentation.
16769 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16770 allocate_psymtab. Do not use new.
16771 (allocate_psymtab): Use new. Update.
16772
16773 2020-01-26 Tom Tromey <tom@tromey.com>
16774
16775 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16776 * psymtab.c (psym_print_stats): Update.
16777 * psympriv.h (struct partial_symtab) <readin,
16778 psymtabs_addrmap_supported, anonymous>: Now bool.
16779 * mdebugread.c (psymtab_to_symtab_1): Update.
16780 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16781 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16782 (process_full_comp_unit, process_full_type_unit): Update.
16783 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16784 * ctfread.c (psymtab_to_symtab): Update.
16785
16786 2020-01-26 Tom Tromey <tom@tromey.com>
16787
16788 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16789 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16790 * psymtab.c (psymtab_storage): Delete psymtabs.
16791 (psymtab_storage::allocate_psymtab): Use new.
16792 (psymtab_storage::discard_psymtab): Use delete.
16793 * psympriv.h (struct partial_symtab): Add constructor and
16794 initializers.
16795
16796 2020-01-26 Tom Tromey <tom@tromey.com>
16797
16798 * machoread.c: Do not include psympriv.h.
16799
16800 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16801
16802 * NEWS: Mention the new option and the set/show commands.
16803
16804 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16805
16806 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16807 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16808 (validate_exec_file): New variables, enums, functions.
16809 (exec_file_locate_attach, print_section_info): Style the filenames.
16810 (_initialize_exec): Install show_exec_file_mismatch_command and
16811 set_exec_file_mismatch_command.
16812 * gdbcore.h (validate_exec_file): Declare.
16813 * infcmd.c (attach_command): Call validate_exec_file.
16814 * remote.c ( remote_target::remote_add_inferior): Likewise.
16815
16816 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16817
16818 * frame.c (find_frame_sal): Move call to get_next_frame into more
16819 inner scope.
16820 * inline-frame.c (inilne_state) <inline_state>: Update argument
16821 types.
16822 (inilne_state) <skipped_symbol>: Rename to...
16823 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16824 (skip_inline_frames): Build vector of skipped symbols and use this
16825 to reate the inline_state.
16826 (inline_skipped_symbol): Add a comment and some assertions, fetch
16827 skipped symbol from the list.
16828
16829 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16830
16831 * buildsym.c (lte_is_less_than): Delete.
16832 (buildsym_compunit::end_symtab_with_blockvector): Create local
16833 lambda function to sort line table entries, and use
16834 std::stable_sort instead of std::sort.
16835 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16836 markers when looking for a previous line.
16837
16838 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16839
16840 * dwarf2read.c (lnp_state_machine::record_line): Include
16841 end_sequence parameter in debug print out. Record the line if we
16842 are at an end_sequence marker even if it's not the start of a
16843 statement.
16844 * symmisc.c (maintenance_print_one_line_table): Print end of
16845 sequence markers with 'END' not '0'.
16846
16847 2020-01-24 Pedro Alves <palves@redhat.com>
16848
16849 PR gdb/25410
16850 * thread.c (scoped_restore_current_thread::restore): Use
16851 switch_to_inferior_no_thread.
16852 * exec.c: Include "progspace-and-thread.h".
16853 (add_target_sections, remove_target_sections):
16854 scoped_restore_current_pspace_and_thread instead of
16855 scoped_restore_current_thread.
16856 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16857 and aspace to the inferior before calling clone_program_space.
16858 Remove stale comment.
16859
16860 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16861
16862 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16863 (arm_netbsd_nat_target::fetch_registers): ...this.
16864 (arm_nbsd_nat_target::store_registers): Rename to...
16865 (arm_netbsd_nat_target::store_registers): ...this.
16866
16867 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16868
16869 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16870 register_t.
16871
16872 2020-01-24 Christian Biesinger <cbiesinger@google.com>
16873
16874 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16875 Update comment.
16876 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16877 Likewise.
16878 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16879 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16880 the correct replacement (iterate_over_regset_sections).
16881 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16882 Update comment.
16883
16884 2020-01-24 Graham Markall <graham.markall@embecosm.com>
16885
16886 PR gdb/23718
16887 * gdb/python/python.c (execute_gdb_command): Call
16888 async_enable_stdin in catch block.
16889
16890 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16891
16892 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16893 SWITCH_THRU_ALL_UIS.
16894
16895 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16896
16897 PR tui/9765
16898 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16899 comment, add extra parameter, and update to store previous symbol
16900 when appropriate.
16901 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16902 add extra parameter.
16903 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16904 remove unneeded parameter, add try/catch around gdb_print_insn,
16905 rewrite to add items to asm_lines vector.
16906 (tui_find_backward_disassembly_start_address): New function.
16907 (tui_find_disassembly_address): Updated throughout.
16908 (tui_disasm_window::set_contents): Update for changes to
16909 tui_disassemble.
16910 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16911 number of lines to scroll.
16912
16913 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16914
16915 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16916 (SECT_OFF_DATA): Likewise.
16917 (SECT_OFF_RODATA): Likewise.
16918 (SECT_OFF_TEXT): Likewise.
16919 (SECT_OFF_BSS): Likewise.
16920 (struct objfile) <text_section_offset, data_section_offset>: New
16921 methods.
16922 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16923 objfile::text_section_offset.
16924 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16925 * coffread.c (coff_symtab_read): Likewise.
16926 (enter_linenos): Likewise.
16927 (process_coff_symbol): Likewise.
16928 * ctfread.c (get_objfile_text_range): Likewise.
16929 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16930 Use objfile::data_section_offset.
16931 * dwarf2-frame.c (execute_cfa_program): Use
16932 objfile::text_section_offset.
16933 (dwarf2_frame_find_fde): Likewise.
16934 * dwarf2read.c (create_addrmap_from_index): Likewise.
16935 (create_addrmap_from_aranges): Likewise.
16936 (dw2_find_pc_sect_compunit_symtab): Likewise.
16937 (process_psymtab_comp_unit_reader): Likewise.
16938 (add_partial_symbol): Likewise.
16939 (add_partial_subprogram): Likewise.
16940 (process_full_comp_unit): Likewise.
16941 (read_file_scope): Likewise.
16942 (read_func_scope): Likewise.
16943 (read_lexical_block_scope): Likewise.
16944 (read_call_site_scope): Likewise.
16945 (dwarf2_rnglists_process): Likewise.
16946 (dwarf2_ranges_process): Likewise.
16947 (dwarf2_ranges_read): Likewise.
16948 (dwarf_decode_lines_1): Likewise.
16949 (new_symbol): Likewise.
16950 (dwarf2_fetch_die_loc_sect_off): Likewise.
16951 (dwarf2_per_cu_text_offset): Likewise.
16952 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16953 * hppa-tdep.c (read_unwind_info): Likewise.
16954 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16955 * psympriv.h (struct partial_symtab): Likewise.
16956 * psymtab.c (find_pc_sect_psymtab): Likewise.
16957 * solib-svr4.c (enable_break): Likewise.
16958 * stap-probe.c (relocate_address): Use
16959 objfile::data_section_offset.
16960 * xcoffread.c (enter_line_range): Use
16961 objfile::text_section_offset.
16962 (read_xcoff_symtab): Likewise.
16963
16964 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16965
16966 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16967 declaration to narrower scopes.
16968
16969 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
16970
16971 * darwin-nat.h (struct darwin_exception_msg, enum
16972 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16973 Move up.
16974 (class darwin_nat_target) <wait_1, check_new_threads,
16975 decode_exception_message, decode_message, stop_inferior,
16976 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16977 * darwin-nat.c (darwin_check_new_threads): Rename to...
16978 (darwin_nat_target::check_new_threads): ... this.
16979 (darwin_suspend_inferior_it): Remove.
16980 (darwin_decode_exception_message): Rename to...
16981 (darwin_nat_target::decode_exception_message): ... this.
16982 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16983 (darwin_decode_message): Rename to...
16984 (darwin_nat_target::decode_message): ... this.
16985 (cancel_breakpoint): Rename to...
16986 (darwin_nat_target::cancel_breakpoint): ... this.
16987 (darwin_wait): Rename to...
16988 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16989 instead of iterate_over_inferiors.
16990 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16991 (darwin_stop_inferior): Rename to...
16992 (darwin_nat_target::stop_inferior): ... this.
16993 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16994 (darwin_init_thread_list): Rename to...
16995 (darwin_nat_target::init_thread_list): ... this.
16996 (darwin_ptrace_him): Rename to...
16997 (darwin_nat_target::ptrace_him): ... this.
16998 (darwin_nat_target::create_inferior): Pass lambda function to
16999 fork_inferior.
17000 (darwin_nat_target::detach): Call stop_inferior instead of
17001 darwin_stop_inferior.
17002 * fork-inferior.h (fork_inferior): Change init_trace_fun
17003 parameter to gdb::function_view.
17004 * fork-inferior.c (fork_inferior): Likewise.
17005
17006 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
17007
17008 * i386-cygwin-tdep.c (core_process_module_section): Update.
17009 * windows-nat.c (struct lm_info_windows): Add text_offset.
17010 (windows_xfer_shared_libraries): Update.
17011 * windows-tdep.c (windows_xfer_shared_library):
17012 Add text_offset_cached argument.
17013 * windows-tdep.h (windows_xfer_shared_library): Update.
17014
17015 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
17016
17017 * gdbarch.sh: Add declaration for _initialize_gdbarch.
17018
17019 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
17020
17021 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
17022 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
17023 replace with range-based for.
17024 (gdbsim_interrupt_inferior): Remove.
17025 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
17026 with a range-based for. Inline code from
17027 gdbsim_interrupt_inferior.
17028
17029 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
17030
17031 * infrun.c (proceed): Fix indentation.
17032
17033 2020-01-21 Tom Tromey <tromey@adacore.com>
17034
17035 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
17036 * python/python.c (python_extension_ops): Update.
17037 (gdbpy_colorize): New function.
17038 * python/lib/gdb/__init__.py (colorize): New function.
17039 * extension.h (ext_lang_colorize): Declare.
17040 * extension.c (ext_lang_colorize): New function.
17041 * extension-priv.h (struct extension_language_ops) <colorize>: New
17042 member.
17043 * cli/cli-style.c (_initialize_cli_style): Update help text.
17044
17045 2020-01-21 Luis Machado <luis.machado@linaro.org>
17046
17047 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
17048 <cond>: Change type to bool.
17049 (aarch64_displaced_step_b_cond): Update cond to use bool type.
17050 (aarch64_displaced_step_cb): Likewise.
17051 (aarch64_displaced_step_tb): Likewise.
17052
17053 2020-01-21 Luis Machado <luis.machado@linaro.org>
17054
17055 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
17056 output.
17057
17058 2020-01-21 Luis Machado <luis.machado@linaro.org>
17059
17060 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
17061 <pc_adjust>: Adjust the documentation.
17062 (aarch64_displaced_step_fixup): Check if PC really moved before
17063 adjusting it.
17064
17065 2020-01-19 Tom Tromey <tom@tromey.com>
17066
17067 * disasm.c (~gdb_disassembler): New destructor.
17068 (gdb_buffered_insn_length): Call disassemble_free_target.
17069 * disasm.h (class gdb_disassembler): Declare destructor. Use
17070 DISABLE_COPY_AND_ASSIGN.
17071
17072 2020-01-19 Tom Tromey <tom@tromey.com>
17073
17074 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
17075 (die_reader_func_ftype): Remove.
17076 (cutu_reader): New class.
17077 (dw2_get_file_names_reader): Remove "data" parameter.
17078 (dw2_get_file_names): Use cutu_reader.
17079 (create_debug_type_hash_table): Update.
17080 (read_cutu_die_from_dwo): Update comment.
17081 (lookup_dwo_unit): Add dwo_name parameter.
17082 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
17083 die_reader_func_ftype and data parameters.
17084 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
17085 Remove die_reader_func_ftype and data parameters.
17086 (~cutu_reader): New; from init_cutu_and_read_dies.
17087 (cutu_reader::cutu_reader): Rename from
17088 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
17089 and data parameters.
17090 (init_cutu_and_read_dies_simple): Remove.
17091 (struct process_psymtab_comp_unit_data): Remove.
17092 (process_psymtab_comp_unit_reader): Remove data parameter; add
17093 want_partial_unit and pretend_language parameters.
17094 (process_psymtab_comp_unit): Use cutu_reader.
17095 (build_type_psymtabs_reader): Remove data parameter.
17096 (build_type_psymtabs_1): Use cutu_reader.
17097 (process_skeletonless_type_unit): Likewise.
17098 (load_partial_comp_unit_reader): Remove.
17099 (load_partial_comp_unit): Use cutu_reader.
17100 (load_full_comp_unit_reader): Remove.
17101 (load_full_comp_unit): Use cutu_reader.
17102 (struct create_dwo_cu_data): Remove.
17103 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
17104 dwo_unit parameters.
17105 (create_cus_hash_table): Use cutu_reader.
17106 (struct dwarf2_read_addr_index_data): Remove.
17107 (dwarf2_read_addr_index_reader): Remove.
17108 (dwarf2_read_addr_index): Use cutu_reader.
17109 (read_signatured_type_reader): Remove.
17110 (read_signatured_type): Use cutu_reader.
17111
17112 2020-01-19 Tom Tromey <tom@tromey.com>
17113
17114 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
17115 * tui/tui-wingeneral.h (class tui_suppress_output): New.
17116 (tui_wrefresh): Declare.
17117 * tui/tui-wingeneral.c (suppress_output): New global.
17118 (tui_suppress_output, ~tui_suppress_output): New constructor and
17119 destructor.
17120 (tui_wrefresh): New function.
17121 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
17122 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
17123 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
17124 method.
17125 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
17126 tui_wrefresh.
17127 (tui_data_window::no_refresh): New method.
17128 (tui_data_item_window::refresh_window): Call tui_wrefresh.
17129 (tui_reg_command): Use tui_suppress_output
17130 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
17131 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
17132 method.
17133 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
17134
17135 2020-01-19 Tom Tromey <tom@tromey.com>
17136
17137 * tui/tui-winsource.c (tui_update_source_windows_with_line):
17138 Handle case where symtab is null.
17139
17140 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
17141
17142 * linux-fork.c (one_fork_p): Simplify.
17143
17144 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
17145
17146 * top.c (struct qt_args): Remove.
17147 (kill_or_detach): Change return type to void, replace `void *`
17148 parameter with a proper one.
17149 (print_inferior_quit_action): Likewise.
17150 (quit_confirm): Use range-based for loop to iterate over inferiors.
17151 (quit_force): Likewise.
17152
17153 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
17154
17155 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
17156 `void *` parameter with proper parameters.
17157 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
17158 (print_one_inferior): Change return type to void, replace `void *`
17159 parameter with proper parameters.
17160 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
17161 inferiors.
17162 (get_other_inferior): Remove.
17163 (mi_cmd_remove_inferior): Use range-based loop to iterate over
17164 inferiors.
17165
17166 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
17167
17168 * mi/mi-interp.c (report_initial_inferior): Remove.
17169 (mi_interp::init): Use range-based for to iterate over inferiors.
17170
17171 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
17172
17173 * python/py-inferior.c (build_inferior_list): Remove.
17174 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
17175
17176 2020-01-16 Christian Biesinger <cbiesinger@google.com>
17177
17178 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
17179 (btrace_stitch_trace): Likewise.
17180 * charset.c (intermediate_encoding): Likewise (vaild).
17181 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
17182 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
17183 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
17184
17185 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
17186
17187 * windows-tdep.c (windows_get_tlb_type):
17188 Add rtl_user_process_parameters type.
17189
17190 2020-01-16 Pedro Alves <palves@redhat.com>
17191 Norbert Lange <nolange79@gmail.com>
17192
17193 PR build/24805
17194 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
17195 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17196 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17197 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17198 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17199 (ps_plog): Redeclare exported functions with default visibility.
17200
17201 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17202
17203 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17204 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17205
17206 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
17207
17208 * infcmd.c (post_create_inferior): Use get_thread_regcache
17209 instead of get_current_regcache.
17210
17211 2020-01-14 Tom Tromey <tom@tromey.com>
17212
17213 PR symtab/12535:
17214 * python/python.c (gdbpy_decode_line): Treat empty string the same
17215 as no argument.
17216
17217 2020-01-14 Tom Tromey <tom@tromey.com>
17218
17219 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17220
17221 2020-01-14 Tom Tromey <tom@tromey.com>
17222
17223 * nat/linux-btrace.c: Don't include <config.h>.
17224 * nat/linux-ptrace.c: Don't include <config.h>.
17225 * nat/x86-linux-dregs.c: Don't include <config.h>.
17226
17227 2020-01-14 Tom Tromey <tom@tromey.com>
17228
17229 * configure: Rebuild.
17230 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17231
17232 2020-01-14 Tom Tromey <tom@tromey.com>
17233
17234 * nat/x86-linux-dregs.c: Include configh.h.
17235 * nat/linux-ptrace.c: Include configh.h.
17236 * nat/linux-btrace.c: Include configh.h.
17237 * defs.h: Include config.h, bfd.h.
17238 * configure.ac: Don't source common.host.
17239 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17240 * configure: Rebuild.
17241 * acinclude.m4: Update path.
17242 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17243 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17244 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17245 (CLIBS): Add LIBSUPPORT.
17246 (CDEPS): Likewise.
17247 (COMMON_SFILES): Remove gdbsupport files.
17248 (HFILES_NO_SRCDIR): Likewise.
17249 (stamp-version): Update path to create-version.sh.
17250 (ALLDEPFILES): Remove gdbsupport files.
17251
17252 2020-01-14 Tom Tromey <tom@tromey.com>
17253
17254 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17255 USE_WIN32API when needed.
17256 * configure.ac (USE_WIN32API): Don't define.
17257 (WIN32LIBS): Use WIN32APILIBS.
17258 * configure: Rebuild.
17259
17260 2020-01-14 Tom Tromey <tom@tromey.com>
17261
17262 * configure: Rebuild.
17263 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17264
17265 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17266
17267 * skip.c (skip_function_command): Make skip w/o arguments use the
17268 name of the inlined function if pc is inside any inlined function.
17269
17270 2020-01-14 Luis Machado <luis.machado@linaro.org>
17271
17272 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17273 * infrun.c (resume_1): Likewise.
17274 (handle_inferior_event): Remove stale comment.
17275 * linux-nat.c (linux_nat_target::resume): Update comments.
17276 (save_stop_reason): Likewise.
17277 (linux_nat_filter_event): Likewise.
17278 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17279
17280 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17281
17282 * elfread.c (record_minimal_symbol): Set section index to 0 for
17283 non-allocatable sections.
17284
17285
17286 2020-01-13 Ali Tamur <tamur@google.com>
17287
17288 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17289 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17290 to gdb::optional. Update comments.
17291 (dwo_file): Update comments.
17292 (read_attribute): Update API to take an additional out parameter,
17293 need_reprocess. This is used to mark attributes that need other
17294 attributes (e.g. str_offsets_base) for correct computation which may not
17295 have been read yet.
17296 (read_attribute_reprocess): New function declaration.
17297 (read_addr_index): Likewise.
17298 (read_dwo_str_index): Likewise.
17299 (read_stub_str_index): Likewise.
17300 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17301 (lookup_addr_base): New function definition.
17302 (lookup_ranges_base): Likewise.
17303 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17304 lookup_ranges_base.
17305 (init_cutu_and_read_dies): Update comments.
17306 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17307 unit. This is used to inherit parent's str_offsets_base and addr_base.
17308 Update comments.
17309 (init_cutu_and_read_dies_simple): Reflect API changes.
17310 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17311 (create_cus_hash_table): Change API to take parent compile unit.
17312 Reflect API changes.
17313 (open_and_init_dwo_file): Reflect API changes.
17314 (dwarf2_get_pc_bounds): Update comments.
17315 (dwarf2_record_block_ranges): Likewise.
17316 (read_full_die_1): Change implementation to reprocess attributes that
17317 need str_offsets_base and addr_base.
17318 (partial_die_info::read): Likewise.
17319 (read_attribute_reprocess): New function definition.
17320 (read_attribute_value): Change API to take an additional out parameter,
17321 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17322 when a non-dwo compile unit has index based attributes.
17323 (read_attribute): Reflect API changes.
17324 (read_addr_index_1): Reflect API changes. Update comments.
17325 (dwarf2_read_addr_index_data): Reflect API changes.
17326 (dwarf2_read_addr_index): Likewise.
17327 (read_str_index): Change API and implementation. This becomes a helper
17328 to be used by the new string index related methods. Update error
17329 message and comments.
17330 (read_dwo_str_index): New function definition.
17331 (read_stub_str_index): Likewise.
17332 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17333 * symfile.h (dwarf2_debug_sections): Likewise.
17334 * xcoffread.c (dwarf2_debug_sections): Likewise.
17335
17336 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17337
17338 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17339 core_reg_sect type to gdb_byte *.
17340 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17341 * cris-tdep.c (fetch_core_registers): Likewise.
17342 * corelow.c (core_target::get_core_register_section): Change
17343 type of `contents` to gdb::byte_vector.
17344
17345 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17346
17347 * tui/tui-wingeneral.c (box_win): Position the title in the center
17348 of the border.
17349
17350 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17351
17352 * corelow.c (core_target::get_core_register_section): Use
17353 std::vector instead of alloca.
17354
17355 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17356
17357 * warning.m4: Add -Wmissing-declarations to build_warnings.
17358 * configure: Re-generate.
17359
17360 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17361
17362 * python/python.c (init__gdb_module): Add declaration.
17363
17364 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
17365
17366 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17367 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17368 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17369 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17370 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17371 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17372 * ada-exp.y (_initialize_ada_exp): Add declaration.
17373 * ada-lang.c (_initialize_ada_language): Add declaration.
17374 * ada-tasks.c (_initialize_tasks): Add declaration.
17375 * agent.c (_initialize_agent): Add declaration.
17376 * aix-thread.c (_initialize_aix_thread): Add declaration.
17377 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17378 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17379 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17380 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17381 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17382 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17383 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17384 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17385 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17386 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17387 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17388 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17389 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17390 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17391 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17392 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17393 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17394 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17395 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17396 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17397 * annotate.c (_initialize_annotate): Add declaration.
17398 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17399 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17400 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17401 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17402 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17403 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17404 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17405 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17406 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17407 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17408 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17409 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17410 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17411 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17412 * auto-load.c (_initialize_auto_load): Add declaration.
17413 * auxv.c (_initialize_auxv): Add declaration.
17414 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17415 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17416 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17417 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17418 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17419 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17420 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17421 * breakpoint.c (_initialize_breakpoint): Add declaration.
17422 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17423 * btrace.c (_initialize_btrace): Add declaration.
17424 * charset.c (_initialize_charset): Add declaration.
17425 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17426 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17427 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17428 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17429 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17430 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17431 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17432 * coffread.c (_initialize_coffread): Add declaration.
17433 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17434 * compile/compile.c (_initialize_compile): Add declaration.
17435 * complaints.c (_initialize_complaints): Add declaration.
17436 * completer.c (_initialize_completer): Add declaration.
17437 * copying.c (_initialize_copying): Add declaration.
17438 * corefile.c (_initialize_core): Add declaration.
17439 * corelow.c (_initialize_corelow): Add declaration.
17440 * cp-abi.c (_initialize_cp_abi): Add declaration.
17441 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17442 * cp-support.c (_initialize_cp_support): Add declaration.
17443 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17444 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17445 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17446 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17447 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17448 * ctfread.c (_initialize_ctfread): Add declaration.
17449 * d-lang.c (_initialize_d_language): Add declaration.
17450 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17451 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17452 * dbxread.c (_initialize_dbxread): Add declaration.
17453 * dcache.c (_initialize_dcache): Add declaration.
17454 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17455 * disasm.c (_initialize_disasm): Add declaration.
17456 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17457 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17458 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17459 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17460 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17461 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17462 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17463 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17464 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17465 * elfread.c (_initialize_elfread): Add declaration.
17466 * exec.c (_initialize_exec): Add declaration.
17467 * extension.c (_initialize_extension): Add declaration.
17468 * f-lang.c (_initialize_f_language): Add declaration.
17469 * f-valprint.c (_initialize_f_valprint): Add declaration.
17470 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17471 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17472 * filesystem.c (_initialize_filesystem): Add declaration.
17473 * findcmd.c (_initialize_mem_search): Add declaration.
17474 * findvar.c (_initialize_findvar): Add declaration.
17475 * fork-child.c (_initialize_fork_child): Add declaration.
17476 * frame-base.c (_initialize_frame_base): Add declaration.
17477 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17478 * frame.c (_initialize_frame): Add declaration.
17479 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17480 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17481 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17482 * gcore.c (_initialize_gcore): Add declaration.
17483 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17484 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17485 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17486 * gdbarch.c (_initialize_gdbarch): Add declaration.
17487 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17488 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17489 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17490 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17491 * go-lang.c (_initialize_go_language): Add declaration.
17492 * go32-nat.c (_initialize_go32_nat): Add declaration.
17493 * guile/guile.c (_initialize_guile): Add declaration.
17494 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17495 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17496 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17497 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17498 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17499 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17500 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17501 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17502 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17503 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17504 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17505 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17506 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17507 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17508 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17509 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17510 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17511 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17512 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17513 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17514 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17515 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17516 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17517 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17518 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17519 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17520 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17521 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17522 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17523 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17524 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17525 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17526 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17527 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17528 * infcall.c (_initialize_infcall): Add declaration.
17529 * infcmd.c (_initialize_infcmd): Add declaration.
17530 * inflow.c (_initialize_inflow): Add declaration.
17531 * infrun.c (_initialize_infrun): Add declaration.
17532 * interps.c (_initialize_interpreter): Add declaration.
17533 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17534 * jit.c (_initialize_jit): Add declaration.
17535 * language.c (_initialize_language): Add declaration.
17536 * linux-fork.c (_initialize_linux_fork): Add declaration.
17537 * linux-nat.c (_initialize_linux_nat): Add declaration.
17538 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17539 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17540 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17541 * m2-lang.c (_initialize_m2_language): Add declaration.
17542 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17543 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17544 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17545 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17546 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17547 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17548 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17549 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17550 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17551 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17552 * machoread.c (_initialize_machoread): Add declaration.
17553 * macrocmd.c (_initialize_macrocmd): Add declaration.
17554 * macroscope.c (_initialize_macroscope): Add declaration.
17555 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17556 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17557 * maint.c (_initialize_maint_cmds): Add declaration.
17558 * mdebugread.c (_initialize_mdebugread): Add declaration.
17559 * memattr.c (_initialize_mem): Add declaration.
17560 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17561 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17562 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17563 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17564 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17565 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17566 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17567 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17568 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17569 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17570 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17571 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17572 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17573 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17574 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17575 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17576 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17577 * mipsread.c (_initialize_mipsread): Add declaration.
17578 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17579 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17580 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17581 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17582 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17583 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17584 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17585 * nto-procfs.c (_initialize_procfs): Add declaration.
17586 * objc-lang.c (_initialize_objc_language): Add declaration.
17587 * observable.c (_initialize_observer): Add declaration.
17588 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17589 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17590 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17591 * osabi.c (_initialize_gdb_osabi): Add declaration.
17592 * osdata.c (_initialize_osdata): Add declaration.
17593 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17594 * parse.c (_initialize_parse): Add declaration.
17595 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17596 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17597 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17598 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17599 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17600 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17601 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17602 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17603 * printcmd.c (_initialize_printcmd): Add declaration.
17604 * probe.c (_initialize_probe): Add declaration.
17605 * proc-api.c (_initialize_proc_api): Add declaration.
17606 * proc-events.c (_initialize_proc_events): Add declaration.
17607 * proc-service.c (_initialize_proc_service): Add declaration.
17608 * procfs.c (_initialize_procfs): Add declaration.
17609 * producer.c (_initialize_producer): Add declaration.
17610 * psymtab.c (_initialize_psymtab): Add declaration.
17611 * python/python.c (_initialize_python): Add declaration.
17612 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17613 * record-btrace.c (_initialize_record_btrace): Add declaration.
17614 * record-full.c (_initialize_record_full): Add declaration.
17615 * record.c (_initialize_record): Add declaration.
17616 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17617 * regcache.c (_initialize_regcache): Add declaration.
17618 * reggroups.c (_initialize_reggroup): Add declaration.
17619 * remote-notif.c (_initialize_notif): Add declaration.
17620 * remote-sim.c (_initialize_remote_sim): Add declaration.
17621 * remote.c (_initialize_remote): Add declaration.
17622 * reverse.c (_initialize_reverse): Add declaration.
17623 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17624 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17625 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17626 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17627 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17628 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17629 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17630 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17631 Add declaration.
17632 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17633 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17634 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17635 * rust-exp.y (_initialize_rust_exp): Add declaration.
17636 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17637 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17638 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17639 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17640 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17641 * score-tdep.c (_initialize_score_tdep): Add declaration.
17642 * ser-go32.c (_initialize_ser_dos): Add declaration.
17643 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17644 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17645 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17646 * ser-uds.c (_initialize_ser_socket): Add declaration.
17647 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17648 * serial.c (_initialize_serial): Add declaration.
17649 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17650 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17651 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17652 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17653 * skip.c (_initialize_step_skip): Add declaration.
17654 * sol-thread.c (_initialize_sol_thread): Add declaration.
17655 * solib-aix.c (_initialize_solib_aix): Add declaration.
17656 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17657 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17658 * solib-frv.c (_initialize_frv_solib): Add declaration.
17659 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17660 * solib-target.c (_initialize_solib_target): Add declaration.
17661 * solib.c (_initialize_solib): Add declaration.
17662 * source-cache.c (_initialize_source_cache): Add declaration.
17663 * source.c (_initialize_source): Add declaration.
17664 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17665 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17666 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17667 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17668 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17669 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17670 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17671 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17672 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17673 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17674 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17675 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17676 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17677 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17678 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17679 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17680 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17681 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17682 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17683 * stabsread.c (_initialize_stabsread): Add declaration.
17684 * stack.c (_initialize_stack): Add declaration.
17685 * stap-probe.c (_initialize_stap_probe): Add declaration.
17686 * std-regs.c (_initialize_frame_reg): Add declaration.
17687 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17688 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17689 * symfile.c (_initialize_symfile): Add declaration.
17690 * symmisc.c (_initialize_symmisc): Add declaration.
17691 * symtab.c (_initialize_symtab): Add declaration.
17692 * target.c (_initialize_target): Add declaration.
17693 * target-connection.c (_initialize_target_connection): Add
17694 declaration.
17695 * target-dcache.c (_initialize_target_dcache): Add declaration.
17696 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17697 * thread.c (_initialize_thread): Add declaration.
17698 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17699 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17700 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17701 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17702 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17703 * tracectf.c (_initialize_ctf): Add declaration.
17704 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17705 * tracefile.c (_initialize_tracefile): Add declaration.
17706 * tracepoint.c (_initialize_tracepoint): Add declaration.
17707 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17708 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17709 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17710 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17711 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17712 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17713 * tui/tui.c (_initialize_tui): Add declaration.
17714 * typeprint.c (_initialize_typeprint): Add declaration.
17715 * ui-style.c (_initialize_ui_style): Add declaration.
17716 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17717 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17718 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17719 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17720 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17721 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17722 * unittests/filtered_iterator-selftests.c
17723 (_initialize_filtered_iterator_selftests): Add declaration.
17724 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17725 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17726 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17727 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17728 * unittests/main-thread-selftests.c
17729 (_initialize_main_thread_selftests): Add declaration.
17730 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17731 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17732 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17733 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17734 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17735 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17736 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17737 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17738 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17739 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17740 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17741 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17742 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17743 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17744 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17745 declaration.
17746 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17747 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17748 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17749 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17750 * user-regs.c (_initialize_user_regs): Add declaration.
17751 * utils.c (_initialize_utils): Add declaration.
17752 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17753 * valops.c (_initialize_valops): Add declaration.
17754 * valprint.c (_initialize_valprint): Add declaration.
17755 * value.c (_initialize_values): Add declaration.
17756 * varobj.c (_initialize_varobj): Add declaration.
17757 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17758 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17759 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17760 * windows-nat.c (_initialize_windows_nat): Add declaration.
17761 (_initialize_check_for_gdb_ini): Add declaration.
17762 (_initialize_loadable): Add declaration.
17763 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17764 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17765 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17766 * xcoffread.c (_initialize_xcoffread): Add declaration.
17767 * xml-support.c (_initialize_xml_support): Add declaration.
17768 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17769 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17770 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17771 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17772
17773 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17774
17775 * regformats/regdat.sh: Generate declaration for init function.
17776
17777 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17778
17779 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17780 up.
17781 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17782 close_one_inferior>: New methods.
17783 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17784 pass down target to find_inferior_pid.
17785 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17786 Pass down target to find_inferior_ptid.
17787 (gdbsim_target::create_inferior): Pass down target to
17788 add_thread_silent.
17789 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17790 target down to find_inferior_ptid and switch_to_thread.
17791 (gdbsim_target::close): Update to call close_one_inferior.
17792 (struct resume_data): Remove.
17793 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17794 directly, rather than through a void pointer.
17795 (gdbsim_target::resume): Update to call resume_one_inferior.
17796
17797 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17798
17799 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17800
17801 2020-01-12 Pedro Alves <palves@redhat.com>
17802
17803 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17804 directly for the current inferior instead of
17805 discard_all_inferiors.
17806 (discard_all_inferiors): Delete.
17807
17808 2020-01-11 Tom Tromey <tom@tromey.com>
17809
17810 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17811 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17812 deprecated_safe_get_selected_frame.
17813
17814 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17815
17816 * inferior.c (print_inferior): Switch inferior before printing it.
17817
17818 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17819 Pedro Alves <palves@redhat.com>
17820
17821 * progspace-and-thread.c (switch_to_program_space_and_thread):
17822 Assert there's an inferior for PSPACE. Use
17823 switch_to_inferior_no_thread to switch the inferior too.
17824 * progspace.c (program_space::~program_space): Call
17825 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17826 (program_space::free_all_objfiles): Don't call clear_symtab_users
17827 here.
17828 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17829
17830 2020-01-10 Pedro Alves <palves@redhat.com>
17831
17832 * NEWS: Mention multi-target debugging, "info connections", and
17833 "add-inferior -no-connection".
17834
17835 2020-01-10 Pedro Alves <palves@redhat.com>
17836
17837 * infrun.c: Include "target-connection.h".
17838 (check_multi_target_resumption): New.
17839 (proceed): Call it.
17840 * target-connection.c (make_target_connection_string): Make
17841 extern.
17842 * target-connection.h (make_target_connection_string): Declare.
17843
17844 2020-01-10 Pedro Alves <palves@redhat.com>
17845
17846 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17847 * inferior.c (uiout_field_connection): New function.
17848 (print_inferior): Add new "connection-id" column.
17849 (add_inferior_command): Show connection number/string of added
17850 inferior.
17851 * process-stratum-target.h
17852 (process_stratum_target::connection_string): New virtual method.
17853 (process_stratum_target::connection_number): New field.
17854 * remote.c (remote_target::connection_string): New override.
17855 * target-connection.c: New file.
17856 * target-connection.h: New file.
17857 * target.c (decref_target): Remove process_stratum targets from
17858 the connection list.
17859 (target_stack::push): Add process_stratum targets to the
17860 connection list.
17861
17862 2020-01-10 Pedro Alves <palves@redhat.com>
17863
17864 Revert:
17865 2016-04-12 Pedro Alves <palves@redhat.com>
17866 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17867 Remove references to name.
17868 * serial.h (struct serial) <name>: Delete.
17869
17870 2020-01-10 Pedro Alves <palves@redhat.com>
17871
17872 * gdbarch-selftests.c (register_to_value_test): Remove "target
17873 already pushed" check.
17874
17875 2020-01-10 Pedro Alves <palves@redhat.com>
17876 John Baldwin <jhb@FreeBSD.org>
17877
17878 * aarch64-linux-nat.c
17879 (aarch64_linux_nat_target::thread_architecture): Adjust.
17880 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17881 (task_command_1): Likewise.
17882 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17883 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17884 (aix_thread_target::store_registers)
17885 (aix_thread_target::thread_alive): Adjust.
17886 * amd64-fbsd-tdep.c: Include "inferior.h".
17887 (amd64fbsd_get_thread_local_address): Pass down target.
17888 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17889 thread's gdbarch instead of target_gdbarch.
17890 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17891 get_last_target_status.
17892 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17893 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17894 inferiors.
17895 (update_inserted_breakpoint_locations): Skip if inferiors with no
17896 execution.
17897 (update_global_location_list): When handling moribund locations,
17898 find representative inferior for location's pspace, and use thread
17899 count of its process_stratum target.
17900 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17901 * bsd-uthread.c (bsd_uthread_target::wait): Use
17902 as_process_stratum_target and adjust thread_change_ptid and
17903 add_thread calls.
17904 (bsd_uthread_target::update_thread_list): Use
17905 as_process_stratum_target and adjust find_thread_ptid,
17906 thread_change_ptid and add_thread calls.
17907 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17908 find_thread_ptid call.
17909 * corelow.c (add_to_thread_list): Adjust add_thread call.
17910 (core_target_open): Adjust add_thread_silent and thread_count
17911 calls.
17912 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17913 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17914 * event-top.c (async_disconnect): Pop targets from all inferiors.
17915 * exec.c (add_target_sections): Push exec target on all inferiors
17916 sharing the program space.
17917 (remove_target_sections): Remove the exec target from all
17918 inferiors sharing the program space.
17919 (exec_on_vfork): New.
17920 * exec.h (exec_on_vfork): Declare.
17921 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17922 Pass it down.
17923 (fbsd_nat_target::update_thread_list): Adjust.
17924 (fbsd_nat_target::resume): Adjust.
17925 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17926 down.
17927 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17928 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17929 get_thread_arch_regcache call.
17930 * fork-child.c (gdb_startup_inferior): Pass target down to
17931 startup_inferior and set_executing.
17932 * gdbthread.h (struct process_stratum_target): Forward declare.
17933 (add_thread, add_thread_silent, add_thread_with_info)
17934 (in_thread_list): Add process_stratum_target parameter.
17935 (find_thread_ptid(inferior*, ptid_t)): New overload.
17936 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17937 parameter.
17938 (all_threads()): Delete overload.
17939 (all_threads, all_non_exited_threads): Add process_stratum_target
17940 parameter.
17941 (all_threads_safe): Use brace initialization.
17942 (thread_count): Add process_stratum_target parameter.
17943 (set_resumed, set_running, set_stop_requested, set_executing)
17944 (threads_are_executing, finish_thread_state): Add
17945 process_stratum_target parameter.
17946 (switch_to_thread): Use is_current_thread.
17947 * i386-fbsd-tdep.c: Include "inferior.h".
17948 (i386fbsd_get_thread_local_address): Pass down target.
17949 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17950 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17951 have_inferiors check.
17952 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17953 (inf_ptrace_target::attach): Adjust.
17954 * infcall.c (run_inferior_call): Adjust.
17955 * infcmd.c (run_command_1): Pass target to
17956 scoped_finish_thread_state.
17957 (proceed_thread_callback): Skip inferiors with no execution.
17958 (continue_command): Rename 'all_threads' local to avoid hiding
17959 'all_threads' function. Adjust get_last_target_status call.
17960 (prepare_one_step): Adjust set_running call.
17961 (signal_command): Use user_visible_resume_target. Compare thread
17962 pointers instead of inferior_ptid.
17963 (info_program_command): Adjust to pass down target.
17964 (attach_command): Mark target's 'thread_executing' flag.
17965 (stop_current_target_threads_ns): New, factored out from ...
17966 (interrupt_target_1): ... this. Switch inferior before making
17967 target calls.
17968 * inferior-iter.h
17969 (struct all_inferiors_iterator, struct all_inferiors_range)
17970 (struct all_inferiors_safe_range)
17971 (struct all_non_exited_inferiors_range): Filter on
17972 process_stratum_target too. Remove explicit.
17973 * inferior.c (inferior::inferior): Push dummy target on target
17974 stack.
17975 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17976 Add process_stratum_target parameter, and pass it down.
17977 (have_live_inferiors): Adjust.
17978 (switch_to_inferior_and_push_target): New.
17979 (add_inferior_command, clone_inferior_command): Handle
17980 "-no-connection" parameter. Use
17981 switch_to_inferior_and_push_target.
17982 (_initialize_inferior): Mention "-no-connection" option in
17983 the help of "add-inferior" and "clone-inferior" commands.
17984 * inferior.h: Include "process-stratum-target.h".
17985 (interrupt_target_1): Use bool.
17986 (struct inferior) <push_target, unpush_target, target_is_pushed,
17987 find_target_beneath, top_target, process_target, target_at,
17988 m_stack>: New.
17989 (discard_all_inferiors): Delete.
17990 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17991 (all_inferiors, all_non_exited_inferiors): Add
17992 process_stratum_target parameter.
17993 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17994 (target_last_proc_target): New global.
17995 (follow_fork_inferior): Push target on new inferior. Pass target
17996 to add_thread_silent. Call exec_on_vfork. Handle target's
17997 reference count.
17998 (follow_fork): Adjust get_last_target_status call. Also consider
17999 target.
18000 (follow_exec): Push target on new inferior.
18001 (struct execution_control_state) <target>: New field.
18002 (user_visible_resume_target): New.
18003 (do_target_resume): Call target_async.
18004 (resume_1): Set target's threads_executing flag. Consider resume
18005 target.
18006 (commit_resume_all_targets): New.
18007 (proceed): Also consider resume target. Skip threads of inferiors
18008 with no execution. Commit resumtion in all targets.
18009 (start_remote): Pass current inferior to wait_for_inferior.
18010 (infrun_thread_stop_requested): Consider target as well. Pass
18011 thread_info pointer to clear_inline_frame_state instead of ptid.
18012 (infrun_thread_thread_exit): Consider target as well.
18013 (random_pending_event_thread): New inferior parameter. Use it.
18014 (do_target_wait): Rename to ...
18015 (do_target_wait_1): ... this. Add inferior parameter, and pass it
18016 down.
18017 (threads_are_resumed_pending_p, do_target_wait): New.
18018 (prepare_for_detach): Adjust calls.
18019 (wait_for_inferior): New inferior parameter. Handle it. Use
18020 do_target_wait_1 instead of do_target_wait.
18021 (fetch_inferior_event): Adjust. Switch to representative
18022 inferior. Pass target down.
18023 (set_last_target_status): Add process_stratum_target parameter.
18024 Save target in global.
18025 (get_last_target_status): Add process_stratum_target parameter and
18026 handle it.
18027 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
18028 (context_switch): Check inferior_ptid == null_ptid before calling
18029 inferior_thread().
18030 (get_inferior_stop_soon): Pass down target.
18031 (wait_one): Rename to ...
18032 (poll_one_curr_target): ... this.
18033 (struct wait_one_event): New.
18034 (wait_one): New.
18035 (stop_all_threads): Adjust.
18036 (handle_no_resumed, handle_inferior_event): Adjust to consider the
18037 event's target.
18038 (switch_back_to_stepped_thread): Also consider target.
18039 (print_stop_event): Update.
18040 (normal_stop): Update. Also consider the resume target.
18041 * infrun.h (wait_for_inferior): Remove declaration.
18042 (user_visible_resume_target): New declaration.
18043 (get_last_target_status, set_last_target_status): New
18044 process_stratum_target parameter.
18045 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
18046 process_stratum_target parameter, and use it.
18047 (clear_inline_frame_state (thread_info*)): New.
18048 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
18049 process_stratum_target parameter.
18050 (clear_inline_frame_state (thread_info*)): Declare.
18051 * linux-fork.c (delete_checkpoint_command): Pass target down to
18052 find_thread_ptid.
18053 (checkpoint_command): Adjust.
18054 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
18055 instead of just tweaking inferior_ptid.
18056 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
18057 (exit_lwp): Pass target down to find_thread_ptid.
18058 (attach_proc_task_lwp_callback): Pass target down to
18059 add_thread/set_running/set_executing.
18060 (linux_nat_target::attach): Pass target down to
18061 thread_change_ptid.
18062 (get_detach_signal): Pass target down to find_thread_ptid.
18063 Consider last target status's target.
18064 (linux_resume_one_lwp_throw, resume_lwp)
18065 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
18066 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
18067 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
18068 (linux_nat_target::async_wait_fd): New.
18069 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
18070 target down.
18071 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
18072 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
18073 * linux-thread-db.c (struct thread_db_info::process_target): New
18074 field.
18075 (add_thread_db_info): Save target.
18076 (get_thread_db_info): New process_stratum_target parameter. Also
18077 match target.
18078 (delete_thread_db_info): New process_stratum_target parameter.
18079 Also match target.
18080 (thread_from_lwp): Adjust to pass down target.
18081 (thread_db_notice_clone): Pass down target.
18082 (check_thread_db_callback): Pass down target.
18083 (try_thread_db_load_1): Always push the thread_db target.
18084 (try_thread_db_load, record_thread): Pass target down.
18085 (thread_db_target::detach): Pass target down. Always unpush the
18086 thread_db target.
18087 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
18088 target down. Always unpush the thread_db target.
18089 (find_new_threads_callback, thread_db_find_new_threads_2)
18090 (thread_db_target::update_thread_list): Pass target down.
18091 (thread_db_target::pid_to_str): Pass current inferior down.
18092 (thread_db_target::get_thread_local_address): Pass target down.
18093 (thread_db_target::resume, maintenance_check_libthread_db): Pass
18094 target down.
18095 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
18096 * procfs.c (procfs_target::procfs_init_inferior): Declare.
18097 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
18098 (procfs_init_inferior): Rename to ...
18099 (procfs_target::procfs_init_inferior): ... this and adjust.
18100 (procfs_target::create_inferior, procfs_notice_thread)
18101 (procfs_do_thread_registers): Adjust.
18102 * ppc-fbsd-tdep.c: Include "inferior.h".
18103 (ppcfbsd_get_thread_local_address): Pass down target.
18104 * proc-service.c (ps_xfer_memory): Switch current inferior and
18105 program space as well.
18106 (get_ps_regcache): Pass target down.
18107 * process-stratum-target.c
18108 (process_stratum_target::thread_address_space)
18109 (process_stratum_target::thread_architecture): Pass target down.
18110 * process-stratum-target.h
18111 (process_stratum_target::threads_executing): New field.
18112 (as_process_stratum_target): New.
18113 * ravenscar-thread.c
18114 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
18115 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
18116 down.
18117 * record-btrace.c (record_btrace_target::info_record): Adjust.
18118 (record_btrace_target::record_method)
18119 (record_btrace_target::record_is_replaying)
18120 (record_btrace_target::fetch_registers)
18121 (get_thread_current_frame_id, record_btrace_target::resume)
18122 (record_btrace_target::wait, record_btrace_target::stop): Pass
18123 target down.
18124 * record-full.c (record_full_wait_1): Switch to event thread.
18125 Pass target down.
18126 * regcache.c (regcache::regcache)
18127 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
18128 process_stratum_target parameter and handle it.
18129 (current_thread_target): New global.
18130 (get_thread_regcache): Add process_stratum_target parameter and
18131 handle it. Switch inferior before calling target method.
18132 (get_thread_regcache): Pass target down.
18133 (get_thread_regcache_for_ptid): Pass target down.
18134 (registers_changed_ptid): Add process_stratum_target parameter and
18135 handle it.
18136 (registers_changed_thread, registers_changed): Pass target down.
18137 (test_get_thread_arch_aspace_regcache): New.
18138 (current_regcache_test): Define a couple local test_target_ops
18139 instances and use them for testing.
18140 (readwrite_regcache): Pass process_stratum_target parameter.
18141 (cooked_read_test, cooked_write_test): Pass mock_target down.
18142 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
18143 (get_thread_arch_aspace_regcache): Add process_stratum_target
18144 parameter.
18145 (regcache::target): New method.
18146 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
18147 (regcache::registers_changed_ptid): Add process_stratum_target
18148 parameter.
18149 (regcache::m_target): New field.
18150 (registers_changed_ptid): Add process_stratum_target parameter.
18151 * remote.c (remote_state::supports_vCont_probed): New field.
18152 (remote_target::async_wait_fd): New method.
18153 (remote_unpush_and_throw): Add remote_target parameter.
18154 (get_current_remote_target): Adjust.
18155 (remote_target::remote_add_inferior): Push target.
18156 (remote_target::remote_add_thread)
18157 (remote_target::remote_notice_new_inferior)
18158 (get_remote_thread_info): Pass target down.
18159 (remote_target::update_thread_list): Skip threads of inferiors
18160 bound to other targets. (remote_target::close): Don't discard
18161 inferiors. (remote_target::add_current_inferior_and_thread)
18162 (remote_target::process_initial_stop_replies)
18163 (remote_target::start_remote)
18164 (remote_target::remote_serial_quit_handler): Pass down target.
18165 (remote_target::remote_unpush_target): New remote_target
18166 parameter. Unpush the target from all inferiors.
18167 (remote_target::remote_unpush_and_throw): New remote_target
18168 parameter. Pass it down.
18169 (remote_target::open_1): Check whether the current inferior has
18170 execution instead of checking whether any inferior is live. Pass
18171 target down.
18172 (remote_target::remote_detach_1): Pass down target. Use
18173 remote_unpush_target.
18174 (extended_remote_target::attach): Pass down target.
18175 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
18176 (remote_target::append_resumption): Pass down target.
18177 (remote_target::append_pending_thread_resumptions)
18178 (remote_target::remote_resume_with_hc, remote_target::resume)
18179 (remote_target::commit_resume): Pass down target.
18180 (remote_target::remote_stop_ns): Check supports_vCont_probed.
18181 (remote_target::interrupt_query)
18182 (remote_target::remove_new_fork_children)
18183 (remote_target::check_pending_events_prevent_wildcard_vcont)
18184 (remote_target::remote_parse_stop_reply)
18185 (remote_target::process_stop_reply): Pass down target.
18186 (first_remote_resumed_thread): New remote_target parameter. Pass
18187 it down.
18188 (remote_target::wait_as): Pass down target.
18189 (unpush_and_perror): New remote_target parameter. Pass it down.
18190 (remote_target::readchar, remote_target::remote_serial_write)
18191 (remote_target::getpkt_or_notif_sane_1)
18192 (remote_target::kill_new_fork_children, remote_target::kill): Pass
18193 down target.
18194 (remote_target::mourn_inferior): Pass down target. Use
18195 remote_unpush_target.
18196 (remote_target::core_of_thread)
18197 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18198 (remote_target::pid_to_exec_file)
18199 (remote_target::thread_handle_to_thread_info): Pass down target.
18200 (remote_target::async_wait_fd): New.
18201 * riscv-fbsd-tdep.c: Include "inferior.h".
18202 (riscv_fbsd_get_thread_local_address): Pass down target.
18203 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18204 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18205 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18206 Adjust.
18207 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18208 * solib-svr4.c (enable_break): Pass down target.
18209 * spu-multiarch.c (parse_spufs_run): Pass down target.
18210 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18211 * target-delegates.c: Regenerate.
18212 * target.c (g_target_stack): Delete.
18213 (current_top_target): Return the current inferior's top target.
18214 (target_has_execution_1): Refer to the passed-in inferior's top
18215 target.
18216 (target_supports_terminal_ours): Check whether the initial
18217 inferior was already created.
18218 (decref_target): New.
18219 (target_stack::push): Incref/decref the target.
18220 (push_target, push_target, unpush_target): Adjust.
18221 (target_stack::unpush): Defref target.
18222 (target_is_pushed): Return bool. Adjust to refer to the current
18223 inferior's target stack.
18224 (dispose_inferior): Delete, and inline parts ...
18225 (target_preopen): ... here. Only dispose of the current inferior.
18226 (target_detach): Hold strong target reference while detaching.
18227 Pass target down.
18228 (target_thread_name): Add assertion.
18229 (target_resume): Pass down target.
18230 (target_ops::beneath, find_target_at): Adjust to refer to the
18231 current inferior's target stack.
18232 (get_dummy_target): New.
18233 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18234 has a thread running.
18235 (initialize_targets): Rename to ...
18236 (_initialize_target): ... this.
18237 * target.h: Include "gdbsupport/refcounted-object.h".
18238 (struct target_ops): Inherit refcounted_object.
18239 (target_ops::shortname, target_ops::longname): Make const.
18240 (target_ops::async_wait_fd): New method.
18241 (decref_target): Declare.
18242 (struct target_ops_ref_policy): New.
18243 (target_ops_ref): New typedef.
18244 (get_dummy_target): Declare function.
18245 (target_is_pushed): Return bool.
18246 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18247 (all_matching_threads_iterator::all_matching_threads_iterator):
18248 Handle filter target.
18249 * thread-iter.h (struct all_matching_threads_iterator, struct
18250 all_matching_threads_range, class all_non_exited_threads_range):
18251 Filter by target too. Remove explicit.
18252 * thread.c (threads_executing): Delete.
18253 (inferior_thread): Pass down current inferior.
18254 (clear_thread_inferior_resources): Pass down thread pointer
18255 instead of ptid_t.
18256 (add_thread_silent, add_thread_with_info, add_thread): Add
18257 process_stratum_target parameter. Use it for thread and inferior
18258 searches.
18259 (is_current_thread): New.
18260 (thread_info::deletable): Use it.
18261 (find_thread_ptid, thread_count, in_thread_list)
18262 (thread_change_ptid, set_resumed, set_running): New
18263 process_stratum_target parameter. Pass it down.
18264 (set_executing): New process_stratum_target parameter. Pass it
18265 down. Adjust reference to 'threads_executing'.
18266 (threads_are_executing): New process_stratum_target parameter.
18267 Adjust reference to 'threads_executing'.
18268 (set_stop_requested, finish_thread_state): New
18269 process_stratum_target parameter. Pass it down.
18270 (switch_to_thread): Also match inferior.
18271 (switch_to_thread): New process_stratum_target parameter. Pass it
18272 down.
18273 (update_threads_executing): Reimplement.
18274 * top.c (quit_force): Pop targets from all inferior.
18275 (gdb_init): Don't call initialize_targets.
18276 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18277 Declare.
18278 (windows_add_thread, windows_delete_thread): Adjust.
18279 (get_windows_debug_event): Rename to ...
18280 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18281 * tracefile-tfile.c (tfile_target_open): Pass down target.
18282 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18283 Forward declare.
18284 (switch_to_thread): Add process_stratum_target parameter.
18285 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18286 parameter. Use it.
18287 (mi_on_resume): Pass target down.
18288 * nat/fork-inferior.c (startup_inferior): Add
18289 process_stratum_target parameter. Pass it down.
18290 * nat/fork-inferior.h (startup_inferior): Add
18291 process_stratum_target parameter.
18292 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18293
18294 2020-01-10 Pedro Alves <palves@redhat.com>
18295
18296 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18297 directly. Instead find the first thread in the thread list and
18298 use switch_to_thread.
18299
18300 2020-01-10 Pedro Alves <palves@redhat.com>
18301
18302 * remote.c (remote_target::remote_add_inferior): Don't bind a
18303 process to the current inferior if the current inferior is already
18304 bound to a process.
18305
18306 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18307 Pedro Alves <palves@redhat.com>
18308
18309 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18310 If no process is specified, return null_ptid instead of
18311 inferior_ptid.
18312 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18313 TARGET_WAITKIND_SIGNALLED with no pid.
18314
18315 2020-01-10 Pedro Alves <palves@redhat.com>
18316
18317 * remote.c (first_remote_resumed_thread): New.
18318 (remote_target::wait_as): Use it as default event_ptid instead of
18319 inferior_ptid.
18320
18321 2020-01-10 Pedro Alves <palves@redhat.com>
18322
18323 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18324
18325 2020-01-10 Pedro Alves <palves@redhat.com>
18326
18327 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18328 not -1.
18329
18330 2020-01-10 Pedro Alves <palves@redhat.com>
18331
18332 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18333 ptid to get_last_target_status.
18334 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18335 ptid to get_last_target_status.
18336 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18337 get_last_target_status.
18338 (info_program_command): Don't pass a target_waitstatus to
18339 get_last_target_status.
18340 * infrun.c (init_wait_for_inferior): Use
18341 nullify_last_target_wait_ptid.
18342 (get_last_target_status): Handle nullptr arguments.
18343 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18344 (print_stop_event): Don't pass a ptid to get_last_target_status.
18345 (normal_stop): Don't pass a ptid to get_last_target_status.
18346 * infrun.h (get_last_target_status, set_last_target_status): Move
18347 comments here and update.
18348 (nullify_last_target_wait_ptid): Declare.
18349 * linux-fork.c (fork_load_infrun_state): Remove local extern
18350 declaration of nullify_last_target_wait_ptid.
18351 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18352 to get_last_target_status.
18353
18354 2020-01-10 Pedro Alves <palves@redhat.com>
18355
18356 * gdbthread.h (scoped_restore_current_thread)
18357 <dont_restore, restore, m_dont_restore>: Declare.
18358 * thread.c (thread_alive): Add assertion. Return bool.
18359 (switch_to_thread_if_alive): New.
18360 (prune_threads): Switch inferior/thread.
18361 (print_thread_info_1): Switch thread before calling target methods.
18362 (scoped_restore_current_thread::restore): New, factored out from
18363 ...
18364 (scoped_restore_current_thread::~scoped_restore_current_thread):
18365 ... this.
18366 (scoped_restore_current_thread::scoped_restore_current_thread):
18367 Add assertion.
18368 (thread_apply_all_command, thread_select): Use
18369 switch_to_thread_if_alive.
18370 * infrun.c (proceed, restart_threads, handle_signal_stop)
18371 (switch_back_to_stepped_thread): Switch current thread before
18372 calling target methods.
18373
18374 2020-01-10 Pedro Alves <palves@redhat.com>
18375
18376 * inferior.c (switch_to_inferior_no_thread): New function,
18377 factored out from ...
18378 (inferior_command): ... here.
18379 * inferior.h (switch_to_inferior_no_thread): Declare.
18380 * mi/mi-main.c (run_one_inferior): Use
18381 switch_to_inferior_no_thread.
18382
18383 2020-01-10 Pedro Alves <palves@redhat.com>
18384
18385 * infcmd.c (kill_command): Remove dead code.
18386
18387 2020-01-10 Pedro Alves <palves@redhat.com>
18388
18389 * remote.c (remote_target::mourn_inferior): No longer check
18390 whether the target is running.
18391
18392 2020-01-10 Pedro Alves <palves@redhat.com>
18393
18394 * corelow.c (core_target::has_execution): Change parameter type to
18395 inferior pointer.
18396 * inferior.c (number_of_live_inferiors): Use
18397 inferior::has_execution instead of target_has_execution_1.
18398 * inferior.h (inferior::has_execution): New.
18399 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18400 inferior::has_execution instead of target_has_execution_1.
18401 * process-stratum-target.c
18402 (process_stratum_target::has_execution): Change parameter type to
18403 inferior pointer. Check the inferior's PID instead of
18404 inferior_ptid.
18405 * process-stratum-target.h
18406 (process_stratum_target::has_execution): Change parameter type to
18407 inferior pointer.
18408 * record-full.c (record_full_core_target::has_execution): Change
18409 parameter type to inferior pointer.
18410 * target.c (target_has_execution_1): Change parameter type to
18411 inferior pointer.
18412 (target_has_execution_current): Adjust.
18413 * target.h (target_ops::has_execution): Change parameter type to
18414 inferior pointer.
18415 (target_has_execution_1): Change parameter type to inferior
18416 pointer. Change return type to bool.
18417 * tracefile.h (tracefile_target::has_execution): Change parameter
18418 type to inferior pointer.
18419
18420 2020-01-10 Pedro Alves <palves@redhat.com>
18421
18422 * exceptions.c (print_flush): Remove current_top_target() check.
18423
18424 2020-01-10 Pedro Alves <palves@redhat.com>
18425
18426 * remote.c (show_remote_exec_file): Show the current inferior's
18427 exec-file instead of the command variable's value.
18428
18429 2020-01-10 Pedro Alves <palves@redhat.com>
18430
18431 * record-full.c (record_full_resume_ptid): New global.
18432 (record_full_target::resume): Set it.
18433 (record_full_wait_1): Use record_full_resume_ptid instead of
18434 inferior_ptid.
18435
18436 2020-01-10 Pedro Alves <palves@redhat.com>
18437
18438 * gdbthread.h (scoped_restore_current_thread)
18439 <dont_restore, restore, m_dont_restore>: Declare.
18440 * thread.c (thread_alive): Add assertion. Return bool.
18441 (switch_to_thread_if_alive): New.
18442 (prune_threads): Switch inferior/thread.
18443 (print_thread_info_1): Switch thread before calling target methods.
18444 (scoped_restore_current_thread::restore): New, factored out from
18445 ...
18446 (scoped_restore_current_thread::~scoped_restore_current_thread):
18447 ... this.
18448 (scoped_restore_current_thread::scoped_restore_current_thread):
18449 Add assertion.
18450 (thread_apply_all_command, thread_select): Use
18451 switch_to_thread_if_alive.
18452
18453 2020-01-10 George Barrett <bob@bob131.so>
18454
18455 * stap-probe.c (stap_modify_semaphore): Don't check for null
18456 semaphores.
18457 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18458 for null semaphores.
18459
18460 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18461
18462 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18463 all source windows, and maintain horizontal scroll status while
18464 doing so.
18465
18466 2020-01-09 Tom Tromey <tom@tromey.com>
18467
18468 PR tui/18932:
18469 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18470 update_source_window, not print_source_lines.
18471
18472 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18473
18474 * tui/tui.c (tui_enable): Register tui hooks after calling
18475 tui_display_main.
18476
18477 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18478
18479 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18480
18481 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
18482
18483 * thread.c (print_thread_info_1): Fix indentation.
18484
18485 2020-01-09 Christian Biesinger <cbiesinger@google.com>
18486
18487 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18488 unique_xmalloc_ptr outside the if to always free the demangled name.
18489
18490 2020-01-08 Tom Tromey <tromey@adacore.com>
18491
18492 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18493 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18494 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18495 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18496 Remove.
18497 (section_offsets): New typedef.
18498 * symtab.c (fixup_section, get_msymbol_address): Update.
18499 * symmisc.c (dump_msymbols): Update.
18500 * symfile.h (relative_addr_info_to_section_offsets)
18501 (symfile_map_offsets_to_segments): Update.
18502 * symfile.c (build_section_addr_info_from_objfile)
18503 (init_objfile_sect_indices): Update.
18504 (struct place_section_arg): Change type of "offsets".
18505 (place_section): Update.
18506 (relative_addr_info_to_section_offsets): Change type of
18507 "section_offsets". Remove "num_sections" parameter.
18508 (default_symfile_offsets, syms_from_objfile_1)
18509 (set_objfile_default_section_offset): Update.
18510 (reread_symbols): No need to preserve section offsets by hand.
18511 (symfile_map_offsets_to_segments): Change type of "offsets".
18512 * stap-probe.c (relocate_address): Update.
18513 * stabsread.h (process_one_symbol): Update.
18514 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18515 (solib_target_relocate_section_addresses): Update.
18516 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18517 Update.
18518 * solib-frv.c (frv_relocate_main_executable): Update.
18519 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18520 * solib-aix.c (solib_aix_get_section_offsets): Change return
18521 type.
18522 (solib_aix_solib_create_inferior_hook): Update.
18523 * remote.c (remote_target::get_offsets): Update.
18524 * psymtab.c (find_pc_sect_psymtab): Update.
18525 * psympriv.h (struct partial_symbol) <address, text_low,
18526 text_high>: Update.
18527 * objfiles.h (obj_section_offset): Update.
18528 (struct objfile) <section_offsets>: Change type.
18529 <num_sections>: Remove.
18530 (objfile_relocate): Update.
18531 * objfiles.c (entry_point_address_query): Update
18532 (relocate_one_symbol): Change type of "section_offsets".
18533 (objfile_relocate1, objfile_relocate1): Change type of
18534 "new_offsets".
18535 (objfile_rebase1): Update.
18536 * mipsread.c (mipscoff_symfile_read): Update.
18537 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18538 parameter.
18539 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18540 (parse_external, psymtab_to_symtab_1): Update.
18541 * machoread.c (macho_symfile_offsets): Update.
18542 * ia64-tdep.c (ia64_find_unwind_table): Update.
18543 * hppa-tdep.c (read_unwind_info): Update.
18544 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18545 * dwarf2read.c (create_addrmap_from_index)
18546 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18547 (process_psymtab_comp_unit_reader, add_partial_symbol)
18548 (add_partial_subprogram, process_full_comp_unit)
18549 (read_file_scope, read_func_scope, read_lexical_block_scope)
18550 (read_call_site_scope, dwarf2_rnglists_process)
18551 (dwarf2_ranges_process, dwarf2_ranges_read)
18552 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18553 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18554 Update.
18555 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18556 Update.
18557 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18558 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18559 (process_one_symbol): Change type of "section_offsets".
18560 * ctfread.c (get_objfile_text_range): Update.
18561 * coffread.c (coff_symtab_read, enter_linenos)
18562 (process_coff_symbol): Update.
18563 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18564 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18565
18566 2020-01-08 Tom Tromey <tromey@adacore.com>
18567
18568 * dwarf2read.c (parse_macro_definition): Use std::string.
18569 (parse_macro_definition): Likewise.
18570
18571 2020-01-08 Tom Tromey <tromey@adacore.com>
18572
18573 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18574 (ATTR_ALLOC_CHUNK): Remove.
18575
18576 2020-01-08 Tom Tromey <tromey@adacore.com>
18577
18578 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18579
18580 2020-01-08 Tom Tromey <tromey@adacore.com>
18581
18582 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18583 (dwarf2_compute_name, open_dwo_file): Likewise.
18584 (process_enumeration_scope): Use std::vector.
18585 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18586 (partial_die_info::fixup, dwarf2_start_subfile)
18587 (guess_full_die_structure_name, dwarf2_name): Likewise.
18588 (determine_prefix): Update.
18589 (guess_full_die_structure_name): Make return type const.
18590 (partial_die_full_name): Return unique_xmalloc_ptr.
18591 (DW_FIELD_ALLOC_CHUNK): Remove.
18592
18593 2020-01-07 Tom Tromey <tromey@adacore.com>
18594
18595 PR build/24937:
18596 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18597
18598 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18599
18600 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18601
18602 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18603
18604 * stack.c (print_frame_info): Move disassemble_next_line code
18605 inside source_print block.
18606
18607 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18608
18609 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18610 gdb/signals.h, as we are now using native signal symbols.
18611
18612 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18613
18614 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18615 overflow by an early check of content vs threshold.
18616 * tui/tui-source.c (tui_source_window::line_is_displayed):
18617 Likewise.
18618
18619 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18620
18621 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18622
18623 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18624
18625 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18626 export table if no section contains it's RVA.
18627
18628 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18629
18630 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18631
18632 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
18633
18634 * source.c (print_source_lines_base): Set last_line_listed.
18635
18636 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
18637
18638 * tui/tui-disasm.c: Remove trailing spaces.
18639
18640 2020-01-06 Eli Zaretskii <eliz@gnu.org>
18641 Pedro Alves <palves@redhat.com>
18642
18643 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18644 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18645 (windows_gdb_signal_to_target): New function, uses the above
18646 enumeration to convert GDB internal signal codes to equivalent
18647 Windows codes.
18648 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18649 * windows-nat.c: Include "gdb_wait.h".
18650 (get_windows_debug_event): Extract the fatal exception from the
18651 exit status and convert to the equivalent Posix signal number.
18652 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18653 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18654 * gdbsupport/gdb_wait.c: New file, implements
18655 windows_status_to_termsig.
18656 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18657 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18658
18659 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18660
18661 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18662 show_layout.
18663
18664 2020-01-05 Luis Machado <luis.machado@linaro.org>
18665
18666 * aarch64-linux-nat.c
18667 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18668 and bfd_mach_aarch64.
18669
18670 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18671
18672 * ui-file.c (stdio_file::can_emit_style_escape)
18673 (tee_file::can_emit_style_escape): Ensure style is used also on
18674 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18675 to gdb_stdout.
18676 * main.c (set_gdb_data_directory): Use file style to output the
18677 warning that the given pathname is not a directory.
18678 * top.c (show_history_filename, gdb_safe_append_history)
18679 (show_gdb_datadir): Use file style.
18680
18681 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18682
18683 * solib-target.c (struct lm_info_target):
18684 Change offsets to be a unique_xmalloc_ptr.
18685 (solib_target_relocate_section_addresses): Update.
18686
18687 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
18688
18689 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18690
18691 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18692
18693 * MAINTAINERS (Write After Approval): Add myself.
18694
18695 2020-01-02 Luis Machado <luis.machado@linaro.org>
18696
18697 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18698 Cell BE architecture.
18699 * target.h (struct target_ops) <thread_architecture>: Likewise.
18700
18701 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18702
18703 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18704
18705 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
18706
18707 * MAINTAINERS (Write After Approval): Add myself.
18708
18709 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18710
18711 * gdbarch.sh: Update copyright year range of generated files.
18712
18713 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18714
18715 Update copyright year range in all GDB files.
18716
18717 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18718
18719 * copyright.py: Convert to Python 3.
18720
18721 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18722
18723 * copyright.py: Adapt after move of gnulib directory from gdb
18724 directory to toplevel directory.
18725
18726 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18727
18728 * copyright.py (main): Exit if run from the wrong directory.
18729
18730 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18731
18732 * top.c (print_gdb_version): Change copyright year to 2020.
18733
18734 2020-01-01 Joel Brobecker <brobecker@adacore.com>
18735
18736 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
18737
18738 For older changes see ChangeLog-2019.
18739 \f
18740 Local Variables:
18741 mode: change-log
18742 left-margin: 8
18743 fill-column: 74
18744 version-control: never
18745 coding: utf-8
18746 End: