gdb/objc: fix bug in objc_language::opcode_print_table
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ed5797ee
AB
12020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * objc-lang.c (objc_language::opcode_print_table): Return
4 objc_op_print_tab.
5
46157d77
AB
62020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * p-exp.y (exp): Update call to pascal_is_string_type.
9 (pascal_parse): Rename to...
10 (pascal_language::parser): ...this.
11 * p-lang.c (is_pascal_string_type): Rename to...
12 (pascal_is_string_type): ...this.
13 (pascal_one_char): Rename to...
14 (pascal_language::print_one_char): ...this.
15 (pascal_printchar): Rename to...
16 (pascal_language::printchar): ...this. Update call to
17 print_one_char member function.
18 (pascal_op_print_tab): Rename to...
19 (pascal_language::op_print_tab): ...this.
20 (class pascal_language): Moved to p-lang.h.
21 (pascal_language::language_arch_info): Function implementation
22 moved out of class declaration.
23 (pascal_language::printstr): Likewise.
24 * p-lang.h (pascal_parse): Delete declaration.
25 (pascal_is_string_type): Declare.
26 (pascal_print_type): Delete declaration.
27 (pascal_print_typedef): Delete declaration.
28 (pascal_value_print_inner): Delete declaration.
29 (pascal_value_print): Delete declaration.
30 (pascal_type_print_method_args): Delete declaration.
31 (is_pascal_string_type): Delete declaration.
32 (pascal_printchar): Delete declaration.
33 (pascal_builtin_types): Delete declaration.
34 (pascal_type_print_base): Delete declaration.
35 (pascal_type_print_varspec_prefix): Delete declaration.
36 (class pascal_language): Moved here from p-lang.c.
37 * p-typeprint.c (pascal_type_print_varspec_suffix): Delete
38 declaration.
39 (pascal_type_print_derivation_info): Delete declaration.
40 (pascal_print_type): Rename to...
41 (pascal_language::print_type): ...this. Update calls to member
42 functions.
43 (pascal_print_typedef): Rename to...
44 (pascal_language::print_typedef): ...this. Update calls to member
45 functions.
46 (pascal_type_print_derivation_info): Rename to...
47 (pascal_language::type_print_derivation_info): ...this.
48 (pascal_type_print_method_args): Rename to...
49 (pascal_language::type_print_method_args): ...this.
50 (pascal_type_print_varspec_prefix): Rename to...
51 (pascal_language::type_print_varspec_prefix): ...this. Update
52 calls to member functions.
53 (pascal_print_func_args): Rename to...
54 (pascal_language::print_func_args): ...this. Update calls to
55 member functions.
56 (pascal_type_print_func_varspec_suffix): Rename to...
57 (pascal_language::type_print_func_varspec_suffix): ...this.
58 Update calls to member functions.
59 (pascal_type_print_varspec_suffix): Rename to...
60 (pascal_language::type_print_varspec_suffix): ...this. Update
61 calls to member functions.
62 (pascal_type_print_base): Rename to...
63 (pascal_language::type_print_base): ...this. Update calls to
64 member functions.
65 * p-valprint.c (pascal_value_print_inner): Rename to...
66 (pascal_language::value_print_inner): ...this. Update calls to
67 member functions.
68 (pascal_value_print): Rename to...
69 (pascal_language::value_print): ...this. Update calls to member
70 functions.
71
82fc57fd
AB
722020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
73
74 * go-exp.y (go_parse): Rename to...
75 (go_language::parser): ...this.
76 * go-lang.c (go_demangle): Rename to...
77 (go_language::demangle_symbol): ...this.
78 (go_language::expression_ops): Implementation moved here out of
79 class declaration.
80 (go_op_print_tab): Rename to...
81 (go_language::op_print_tab): ...this, update comment.
82 (class go_language): Declaration moved to go-lang.h.
83 (go_language::language_arch_info): Implementation moved here out
84 of class declaration.
85 * go-lang.h (go_parse): Delete declaration.
86 (go_demangle): Delete declaration.
87 (go_print_type): Delete declaration.
88 (go_value_print_inner): Delete declaration.
89 (class go_language): Declaration moved here from go-lang.c.
90 * go-typeprint.c (go_print_type): Rename to...
91 (go_language::print_type): ...this.
92 * go-valprint.c (go_value_print_inner): Rename to...
93 (go_language::value_print_inner): ...this.
94 * symtab.c (demangle_for_lookup): Call demangle_symbol method on
95 the go_language object.
96
76ca72bc
AB
972020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * c-lang.c (language_defn::printchar): Call emitchar, not
100 LA_EMIT_CHAR.
101 * f-lang.h (f_language::printchar): Likewise.
102 * language.h (LA_EMIT_CHAR): Delete macro.
103 * rust-lang.c (rust_language::printchar): Call emitchar, not
104 LA_EMIT_CHAR.
105
c5ee319e
AB
1062020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 * c-lang.c (c_printchar): Rename to...
109 (language_defn::printchar): ...this.
110 * c-lang.h (c_printchar): Delete declaration.
111 * language.c (language_defn::printchar): Delete this
112 implementation. Is now implemented in c-lang.c.
113
2c75ccb2
AB
1142020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * dwarf2/read.c (dwarf2_compute_name): Call methods on C++
117 language object instead of calling global functions directly.
118
016382f8
AB
1192020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * valprint.c (print_char_chars): Delete definition.
122 * valprint.h (print_char_chars): Delete declaration.
123
06f6f78f
ST
1242020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
125
126 * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
127 macro.
128 (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
129 second parameter, which is a small sigcode in the legacy case, and a
130 pointer in the siginfo case.
131
05ecfa47
ST
132 * MAINTAINERS (Write After Approval): Add myself.
133
e512699a
SV
1342020-12-22 Shahab Vahedi <shahab@synopsys.com>
135
136 * frame.c: Remove trailing white spaces.
137 * frame.h: Likewise.
138
acf10cac
SV
1392020-12-22 Shahab Vahedi <shahab@synopsys.com>
140
141 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
142
04c9f85e
AK
1432020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
144
145 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
146 * configure.host (host to gdb names): Add arc*-*-linux*.
147 * configure.nat (gdb_host_cpu): Add arc.
148 * arc-linux-nat.c: New.
149
46023bbe
SV
1502020-12-22 Shahab Vahedi <shahab@synopsys.com>
151
152 * arc-linux-tdep.c (supply_register): New.
153 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
154 arc_linux_collect_v2_regset): Consider REGNUM.
155
d4af7272
AK
1562020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
157
158 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
159 (arc_linux_is_sigtramp): New function.
160 (arc_linux_sigcontext_addr): Likewise.
161 (arc_linux_init_osabi): Use them.
162
b4e3cd04
AK
1632020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
164
165 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
166 (arc_sigtramp_frame_this_id): Likewise.
167 (arc_sigtramp_frame_prev_register): Likewise.
168 (arc_sigtramp_frame_sniffer): Likewise.
169 (arc_siftramp_frame_unwind): New global variable.
170 (arc_gdbarch_init): Use sigtramp capabilities.
171 (arc_dump_tdep): Print sigtramp fields.
172 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
173
6c078f0b
TT
1742020-12-21 Tom Tromey <tom@tromey.com>
175
176 * expression.h (enum noside): Move earlier.
177
e1ff6226
PW
1782020-12-21 Peter Waller <p@pwaller.net>
179
180 * interps.c (interpreter_exec_cmd): Restore streams pointers.
181
98d837f0
MM
1822020-12-21 Markus Metzger <markus.t.metzger@intel.com>
183
184 * record.c (require_record_target): Rephrase error message.
185 (info_record_command): Likewise.
186
fa639f55
HD
1872020-12-19 Hannes Domani <ssbssa@yahoo.de>
188
189 PR exp/27070
190 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
191
0455b7d3
BE
1922020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
193
194 * configure.ac: Move the static libs vs. source-highlight
195 error message to a better place.
196 * configure: Regenerate.
197
e51765f9
HD
1982020-12-18 Hannes Domani <ssbssa@yahoo.de>
199
200 * gdb-gdb.py.in: Fix main_type field name.
201
4aea001f
HD
2022020-12-18 Hannes Domani <ssbssa@yahoo.de>
203
204 * python/py-value.c (valpy_format_string): Implement address keyword.
205
b3f9469b
HD
2062020-12-18 Hannes Domani <ssbssa@yahoo.de>
207
208 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
209
a9e48095
JN
2102020-12-18 Jameson Nash <vtjnash@gmail.com>
211
212 * coffread.c (linetab_offset): Change type to file_ptr.
213 (linetab_size): Likewise.
214 (enter_linenos): Change parameter type to file_ptr.
215 (init_lineno): Likewise.
216 (init_stringtab): Likewise.
217 (coff_symtab_read): Likewise.
218 (coff_symfile_read): Change variable types to file_ptr.
219
844a6538
TT
2202020-12-17 Tom Tromey <tromey@adacore.com>
221
222 * printcmd.c (print_variable_and_value): Don't use n_spaces.
223
32f47895
TT
2242020-12-17 Tom Tromey <tromey@adacore.com>
225
226 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
227 (print_gnat_stuff, print_fixed_point_type_info)
228 (recursive_dump_type): Update.
229 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
230 * c-typeprint.c (c_type_print_base_struct_union)
231 (c_type_print_base_1): Update.
232 * rust-lang.c (rust_internal_print_type): Update.
233 * f-typeprint.c (f_language::f_type_print_base): Update.
234 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
235 * m2-typeprint.c (m2_record_fields): Update.
236 * p-typeprint.c (pascal_type_print_base): Update.
237 * compile/compile-loc2c.c (push, pushf, unary, binary)
238 (do_compile_dwarf_expr_to_c): Update.
239 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
240
c5c41205
TT
2412020-12-16 Tom Tromey <tom@tromey.com>
242
243 * rust-exp.y (rust_lex_tests): Update.
244 * parser-defs.h (parser_state): Add void_p parameter.
245 <void_context_p>: New member.
246 * parse.c (parse_exp_in_context): Update.
247 * language.h (language_defn::post_parser): Remove void_context_p,
248 completing, tracker parameters. Add parser state.
249 * ada-lang.c (ada_language::post_parser): Update.
250
35c1ab60
TT
2512020-12-16 Tom Tromey <tom@tromey.com>
252
253 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
254 (parse_exp_in_context): Change void_context_p to bool.
255 * language.h (struct language_defn) <post_parser>: Change
256 void_context_p to bool.
257 * ada-lang.c (class ada_language) <post_parser>: Update.
258
2f228731
TT
2592020-12-16 Tom Tromey <tom@tromey.com>
260 Tom Tromey <tromey@redhat.com>
261 Tom de Vries <tdevries@suse.de>
262
263 * utils.h (get_chars_per_line): Declare.
264 * utils.c (get_chars_per_line): New function.
265 (fputs_maybe_filtered): Handle '\r'.
266 * ui-out.h (ui_out::progress_meter): New class.
267 (ui_out::progress, ui_out::do_progress_start)
268 (ui_out::do_progress_notify, ui_out::do_progress_end): New
269 methods.
270 * ui-out.c (do_progress_end)
271 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
272 functions.
273 * mi/mi-out.h (mi_ui_out::do_progress_start)
274 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
275 methods.
276 * cli-out.h (struct cli_ui_out) <do_progress_start,
277 do_progress_notify, do_progress_end>: New methods.
278 <enum meter_stat, struct cli_progress_info>: New.
279 <m_meters>: New member.
280 * cli-out.c (cli_ui_out::do_progress_start)
281 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
282 methods.
283
bfbe4b84
LM
2842020-12-16 Luis Machado <luis.machado@linaro.org>
285
286 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
287
19007d95
LM
2882020-12-16 Luis Machado <luis.machado@linaro.org>
289
290 * aarch64-linux-nat.c
291 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
292
a33fc9ae
RK
2932020-12-15 Rae Kim <rae.kim@gmail.com>
294
295 * cli/cli-script.c (do_document_command): Rename from
296 document_command. Handle multi-line input.
297 (multi_line_command_p): Handle document_control.
298 (build_command_line): Likewise.
299 (execute_control_command_1): Likewise.
300 (process_next_line): Likewise.
301 (document_command): Call do_document_command.
302 * cli/cli-script.h (enum command_control_type): Add
303 document_control.
304
efd7ff14
TT
3052020-12-15 Tom Tromey <tom@tromey.com>
306
307 * stap-probe.c (stap_probe::evaluate_argument): Use
308 evaluate_expression.
309 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
310 evaluate_expression.
311 * value.h (evaluate_expression): Add expect_type parameter.
312 * objc-lang.c (print_object_command): Call evaluate_expression.
313 * eval.c (evaluate_expression): Add expect_type parameter.
314
2adab65c
TT
3152020-12-15 Tom Tromey <tom@tromey.com>
316
317 * varobj.c (varobj_create): Use first_opcode.
318 * value.c (init_if_undefined_command): Use first_opcode.
319 * typeprint.c (whatis_exp): Use first_opcode.
320 * tracepoint.c (validate_actionline): Use first_opcode.
321 (encode_actions_1): Use first_opcode.
322 * stack.c (return_command): Use first_opcode.
323 * expression.h (struct expression) <first_opcode>: New method.
324 * eval.c (parse_and_eval_type): Use first_opcode.
325 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
326
1ab8280d
TT
3272020-12-15 Tom Tromey <tom@tromey.com>
328
329 * f-lang.c (evaluate_subexp_f): Update.
330 * expression.h (evaluate_subexp_do_call): Update.
331 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
332 nargs, argvec with array_view.
333 (evaluate_funcall): Update.
334
cf608cc4
TT
3352020-12-15 Tom Tromey <tom@tromey.com>
336
337 * ada-lang.c (num_component_specs): Remove.
338 (assign_aggregate): Update.
339 (aggregate_assign_positional, aggregate_assign_from_choices)
340 (aggregate_assign_others, add_component_interval): Change
341 arguments.
342
0e5ad442
TT
3432020-12-15 Tom Tromey <tromey@adacore.com>
344
345 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
346 command names.
347
a6f3c8a1
TT
3482020-12-14 Tom Tromey <tom@tromey.com>
349
350 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
351 * typeprint.c (whatis_exp): Always use evaluate_type.
352 (maintenance_print_type): Likewise. Simplify.
353
86b44259
TT
3542020-12-14 Tom Tromey <tromey@adacore.com>
355
356 * dictionary.c (language_defn::search_name_hash): Ignore "B".
357 * ada-lang.c (advance_wild_match): Ignore "B".
358 (full_match): Remove.
359 (do_full_match): Rewrite.
360
25a1127b
TT
3612020-12-14 Tom Tromey <tromey@adacore.com>
362
363 * ada-lang.c (get_var_value): Only consider exact matches.
364
e26624c6
TT
3652020-12-14 Tom Tromey <tromey@adacore.com>
366
367 * dwarf2/read.c (rewrite_array_type): New function.
368 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
369
a3bdae4e
TT
3702020-12-14 Tom Tromey <tromey@adacore.com>
371
372 * valarith.c (fixed_point_binop): Call error on division by zero.
373
f5756acc
TT
3742020-12-13 Tom Tromey <tom@tromey.com>
375
376 * gdbtypes.c (safe_parse_type): Make argument const.
377 * value.h (parse_and_eval_type): Make argument const.
378 * eval.c (parse_and_eval_type): Make argument const.
379
ee9812a0
AB
3802020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * NEWS: Mention new commands.
383 * target-dcache.c: Add 'cli/cli-cmds.h' include.
384 (maint_flush_dcache_command): New function.
385 (_initialize_target_dcache): Create new 'maint flush dcache'
386 command.
387
50a5f187
AB
3882020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
389
390 * NEWS: Mention new commands, and that the old commands are now
391 deprecated.
392 * cli/cli-cmds.c (maintenanceflushlist): Define.
393 * cli/cli-cmds.h (maintenanceflushlist): Declare.
394 * maint.c (_initialize_maint_cmds): Initialise
395 maintenanceflushlist.
396 * regcache.c: Add 'cli/cli-cmds.h' include.
397 (reg_flush_command): Add header comment.
398 (_initialize_regcache): Create new 'maint flush register-cache'
399 command, make 'flushregs' an alias.
400 * symtab.c: Add 'cli/cli-cmds.h' include.
401 (_initialize_symtab): Create new 'maint flush symbol-cache'
402 command, make old command an alias.
403
19c659f1
AB
4042020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
405
406 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
407 result from lookup_cmd_composition_1, use the prefixes from both
408 the command and the alias instead.
409 (lookup_cmd_composition_1): Initial prefix command is the based on
410 the search list being passed in. Simplify the logic for tracking
411 the prefix command. Replace a use of alloca with a local
412 std::string.
413
44c77c32
AB
4142020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
417 of NULL. Don't print message piece by piece, but sentence at a
418 time to allow internationalisation. Some whitespace cleanup.
419
9ef6d4a1
AB
4202020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 PR cli/15104
423 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
424 deprecated_cmd_warning.
425 (deprecated_cmd_warning): Take extra parameter, call
426 lookup_cmd_composition_1 and pass new parameter through.
427 (lookup_cmd_composition_1): New function, takes implementation of
428 lookup_cmd_composition but with extra parameter.
429 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
430 passing in cmdlist.
431 * command.h (deprecated_cmd_warning): Add extra parameter to
432 declaration.
433 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
434
1536146f
AB
4352020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
438 command.h, add extra parameter, and use this to guard giving a
439 warning.
440 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
441 include argument names in declaration, add new argument.
442 * completer.c (complete_line_internal_1): Remove unneeded
443 brackets, pass extra argument to lookup_cmd_1.
444
94ba44a6
SM
4452020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * infrun.h (debug_infrun): Make a bool.
448 * infrun.c (debug_infrun): Make a bool.
449 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
450 debug infrun".
451
74b773fc
SM
4522020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * displaced-stepping.h (displaced_debug_printf): Use
455 debug_prefixed_printf_cond.
456 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
457 (dwarf_read_debug_printf_v): Likewise.
458 * infrun.h (infrun_debug_printf): Likewise.
459 * linux-nat.c (linux_nat_debug_printf): Likewise.
460
02c72701
TT
4612020-12-11 Tom Tromey <tom@tromey.com>
462
463 * p-exp.y (intvar): Remove global.
464 (DOLLAR_VARIABLE): Change type.
465 (start): Update.
466 (exp): Call write_dollar_variable here...
467 (yylex): ... not here.
468 * m2-exp.y (DOLLAR_VARIABLE): Change type.
469 (variable): Call write_dollar_variable here...
470 (yylex): ... not here.
471 * f-exp.y (DOLLAR_VARIABLE): Change type.
472 (exp): Call write_dollar_variable here...
473 (yylex): ... not here.
474
07d9937a
TT
4752020-12-11 Tom Tromey <tom@tromey.com>
476
477 * varobj.c (varobj_create): Update.
478 (install_variable): Return void.
479
1345dee2
TT
4802020-12-11 Tom Tromey <tom@tromey.com>
481
482 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
483
446d2c03
TT
4842020-12-11 Tom Tromey <tom@tromey.com>
485
486 * varobj.c (varobj_clear_saved_item): Remove.
487 (update_dynamic_varobj_children): Update.
488 (varobj::~varobj): Don't call varobj_clear_saved_item.
489
11106495
TT
4902020-12-11 Tom Tromey <tom@tromey.com>
491
492 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
493 (update_dynamic_varobj_children, create_child)
494 (create_child_with_value): Update.
495 * varobj-iter.h (struct varobj_item) <value>: Now a
496 value_ref_ptr.
497 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
498
24fd95b4
TT
4992020-12-11 Tom Tromey <tom@tromey.com>
500
501 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
502 (varobj_get_iterator): Return unique_ptr.
503 (update_dynamic_varobj_children, install_visualizer)
504 (varobj::~varobj): Update.
505 * python/python-internal.h (py_varobj_get_iterator): Return
506 unique_ptr.
507 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
508
74462664
TT
5092020-12-11 Tom Tromey <tom@tromey.com>
510
511 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
512 (varobj_clear_saved_item, update_dynamic_varobj_children):
513 Update.
514
60ee72f6
TT
5152020-12-11 Tom Tromey <tom@tromey.com>
516
517 * varobj.c (update_dynamic_varobj_children): Update.
518 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
519 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
520 type.
521 (py_varobj_iter::next): Likewise.
522
54746ce3
TT
5232020-12-11 Tom Tromey <tom@tromey.com>
524
525 * varobj.c (update_dynamic_varobj_children, install_visualizer)
526 (varobj::~varobj): Update.
527 * varobj-iter.h (struct varobj_iter): Change to interface class.
528 (struct varobj_iter_ops): Remove.
529 (varobj_iter_next, varobj_iter_delete): Remove.
530 * python/py-varobj.c (struct py_varobj_iter): Derive from
531 varobj_iter. Add constructor, destructor. Rename members.
532 (py_varobj_iter::~py_varobj_iter): Rename from
533 py_varobj_iter_dtor.
534 (py_varobj_iter::next): Rename from py_varobj_iter_next.
535 (py_varobj_iter_ops): Remove.
536 (py_varobj_iter): Rename from py_varobj_iter_ctor.
537 (py_varobj_iter_new): Remove.
538 (py_varobj_get_iterator): Update.
539
d8f168dd
TT
5402020-12-11 Tom Tromey <tom@tromey.com>
541
542 * varobj.h (all_root_varobjs): Take a function_view.
543 * varobj.c (all_root_varobjs): Take a function_view.
544 (varobj_invalidate_iter): Remove unused parameter.
545 (varobj_invalidate): Update.
546 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
547 (mi_cmd_var_update_iter): Change parameters.
548
76deb5d9
TT
5492020-12-11 Tom Tromey <tom@tromey.com>
550
551 * varobj.c (struct varobj_root) <next>: Remove.
552 (struct vlist): Remove.
553 (rootlist): Now a std::list.
554 (install_variable, uninstall_variable, all_root_varobjs): Update.
555
2c1413a9
TT
5562020-12-11 Tom Tromey <tom@tromey.com>
557
558 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
559 (varobj_table): Now htab_t.
560 (varobj_get_handle, install_variable, uninstall_variable):
561 Update.
562 (hash_varobj, eq_varobj_and_string): New functions.
563 (hash_varobj): Update.
564
b6433ede
TT
5652020-12-11 Tom Tromey <tom@tromey.com>
566
567 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
568 * ada-lang.c (check_status_exception): Update.
569 * breakpoint.c (free_bp_location): Remove.
570 (decref_bp_location): Use bp_location_ref_policy.
571 (bpstats::bpstats): Don't call incref_bp_location.
572 (bpstats::~bpstats): Remove.
573 (bpstats::bpstats): Update.
574 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
575 (bp_location::bp_location): Update.
576 (incref_bp_location): Remove.
577 (bkpt_print_it): Update.
578 * breakpoint.h (class bp_location): Derive from
579 refcounted_object.
580 (struct bpstats): Remove destructor.
581 <bp_location_at>: Now a bp_location_ref_ptr.
582 <refc>: Remove.
583 (bp_location_ref_ptr): New typedef.
584 (struct bp_location_ref_policy): New.
585
bfcb9db8
TT
5862020-12-11 Tom Tromey <tom@tromey.com>
587
588 * thread.c (class scoped_inc_dec_ref): Remove.
589 (tp_array_compar_ascending, tp_array_compar_descending): Change
590 parameter types.
591 (thread_apply_all_command): Use thread_info_ref.
592
d634cd0b
TT
5932020-12-11 Tom Tromey <tom@tromey.com>
594
595 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
596 (stop_context::stop_context): Update.
597 (stop_context::~stop_context): Remove.
598
51107df5
TT
5992020-12-11 Tom Tromey <tom@tromey.com>
600
601 * inferior.c (current_inferior_): Change type.
602 (current_inferior, set_current_inferior, initialize_inferiors):
603 Update.
604
15f4dddd
TT
6052020-12-11 Tom Tromey <tom@tromey.com>
606
607 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
608 Change type.
609
a9f14fa5
TT
6102020-12-11 Tom Tromey <tromey@adacore.com>
611
612 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
613 field.
614 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
615 (read_atcb): Use cpu_id_offset.
616
2ccee230
KB
6172020-12-10 Kevin Buettner <kevinb@redhat.com>
618
619 * ada-lang.c (ada_fold_name): Fix off-by-one error.
620
ae1f4d2d
LM
6212020-12-10 Luis Machado <luis.machado@linaro.org>
622
623 * breakpoint.c (should_be_inserted): Don't output newline.
624
6afcd2d4
LM
6252020-12-10 Luis Machado <luis.machado@linaro.org>
626
627 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
628 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
629 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
630 * arch/aarch64.h: ... here.
631 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
632 (aarch64_maybe_swab128): New function.
633 (aarch64_sve_regs_copy_to_reg_buf)
634 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
635 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
636 the data field.
637 (TF_REG_VALUE_BYTES): New enum value.
638 (trad_frame_value_bytes_p): New function.
639 (trad_frame_set_value_bytes): New function.
640 (trad_frame_set_reg_value_bytes): New function.
641 (trad_frame_get_prev_register): Handle register values saved as bytes.
642 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
643 (struct trad_frame_saved_reg) <data>: New field.
644 (trad_frame_set_value_bytes): New prototype.
645 (trad_frame_value_bytes_p): New prototype.
646
15cc148f
MS
6472020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
648
649 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
650 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
651 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
652
12932e2c
TT
6532020-12-09 Tom Tromey <tromey@adacore.com>
654
655 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
656
5cde1d82
TT
6572020-12-09 Tom Tromey <tromey@adacore.com>
658
659 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
660 and "denominator" to gdb_mpz. Handle block forms.
661 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
662 "denominator" to gdb_mpz.
663 (finish_fixed_point_type): Update.
664 (has_zero_over_zero_small_attribute): Update.
665
d9c3a9c0
TT
6662020-12-09 Tom Tromey <tromey@adacore.com>
667
668 * expprint.c (op_name): Update.
669 * expression.h (enum exp_opcode): Update.
670 * std-operator.def: Add more opcodes.
671 * ada-operator.def, fortran-operator.def: Remove, moving contents
672 into std-operator.def.
673
6ad368b8
SM
6742020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
675
676 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
677 Return {} instead of false.
678 (get_discrete_bounds): Compute high bound only if low bound is
679 valid.
680
5b56203a
SM
6812020-12-09 Simon Marchi <simon.marchi@efficios.com>
682
683 PR 26875, PR 26901
684 * gdbtypes.c (get_discrete_low_bound): Make non-static.
685 (get_discrete_high_bound): Make non-static.
686 * gdbtypes.h (get_discrete_low_bound): New declaration.
687 (get_discrete_high_bound): New declaration.
688 * valarith.c (value_subscript): Only fetch high bound if
689 necessary.
690
14c09924
SM
6912020-12-09 Simon Marchi <simon.marchi@efficios.com>
692
693 * gdbtypes.c (get_discrete_bounds): Implement with
694 get_discrete_low_bound and get_discrete_high_bound.
695 (get_discrete_low_bound): New.
696 (get_discrete_high_bound): New.
697
1f8d2881
SM
6982020-12-09 Simon Marchi <simon.marchi@efficios.com>
699
700 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
701 callers.
702 * gdbtypes.c (get_discrete_bounds): Return bool.
703
6244c119
SM
7042020-12-09 Simon Marchi <simon.marchi@efficios.com>
705
706 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
707 (ada_value_slice): Adjust.
708 (pos_atr): Adjust.
709 * gdbtypes.c (get_discrete_bounds): Adjust.
710 (discrete_position): Return optional.
711 * gdbtypes.h (discrete_position): Return optional.
712
a4915e8d
TT
7132020-12-07 Tom Tromey <tromey@adacore.com>
714
715 * maint.c (_initialize_maint_cmds): Use expression command
716 completer for "maint print type".
717
1f58f6c2
TBA
7182020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
719
720 * completer.c (complete_explicit_location): Also add keywords
721 that start with '-' to the completion list.
722
5759831a
TBA
7232020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
724
725 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
726 keyword may be followed by any keyword.
727 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
728 'toklen' in the case for "-force-condition".
729
21e051b3
TBA
7302020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
731
732 * main.c (catch_command_errors): Add a flag parameter; invoke
733 `bpstat_do_actions` if the flag is set.
734 (execute_cmdargs): Update a call to `catch_command_errors`.
735
f51f9f1d
TV
7362020-12-07 Tom de Vries <tdevries@suse.de>
737
738 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
739
00158a68
TT
7402020-12-06 Tom Tromey <tom@tromey.com>
741
742 PR ada/26999
743 * ada-lang.c (replace_operator_with_call): Rewrite.
744
296cfb88
GF
7452020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
746
747 PR breakpoints/27009
748 * s390-tdep.h (op_bc): Correct BC opcode value.
749
63c457b9
JB
7502020-12-06 Joel Brobecker <brobecker@adacore.com>
751
752 * gmp-utils.h (gdb_mpz::safe_export): New private method.
753 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
754 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
755 (gdb_mpz::safe_export): New method.
756 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
757 Update function description.
758 (check_as_integer_raises_out_of_range_error): New function.
759 (gdb_mpz_as_integer_out_of_range): New function.
760 (_initialize_gmp_utils_selftests): Register
761 gdb_mpz_as_integer_out_of_range as a selftest.
762
3c7ba803
JB
7632020-12-05 Joel Brobecker <brobecker@adacore.com>
764
765 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
766 TARGET_CHAR_BIT.
767 (gdb_mpz::write): Likewise.
768
372ff58f
SM
7692020-12-04 Simon Marchi <simon.marchi@efficios.com>
770
771 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
772 number of displaced step buffers.
773
480af54c
SM
7742020-12-04 Simon Marchi <simon.marchi@efficios.com>
775
776 * displaced-stepping.h (struct displaced_step_buffer): Rename
777 to...
778 (struct displaced_step_buffers): ... this.
779 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
780 <struct displaced_step_buffer>: New inner class.
781 <m_buffers>: New.
782 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
783 to...
784 (displaced_step_buffers::prepare): ... this, adjust for multiple
785 buffers.
786 (displaced_step_buffer::finish): Rename to...
787 (displaced_step_buffers::finish): ... this, adjust for multiple
788 buffers.
789 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
790 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
791 adjust for multiple buffers.
792 (displaced_step_buffer::restore_in_ptid): Rename to...
793 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
794 multiple buffers.
795 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
796 for num_disp_step_buffers.
797 * linux-tdep.c (struct linux_gdbarch_data)
798 <num_disp_step_buffers>: New field.
799 (struct linux_info) <disp_step_buf>: Rename to...
800 <disp_step_bufs>: ... this, change type to
801 displaced_step_buffers.
802 (linux_displaced_step_prepare): Use
803 linux_gdbarch_data::num_disp_step_buffers to create that number
804 of buffers.
805 (linux_displaced_step_finish): Adjust.
806 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
807 (linux_displaced_step_restore_all_in_ptid): Adjust.
808 (linux_init_abi): Change supports_displaced_step parameter for
809 num_disp_step_buffers, save it in linux_gdbarch_data.
810 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
811 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
812 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
813 supports_displaced_step parameter for num_disp_step_buffers.
814 (amd64_linux_init_abi): Adjust.
815 (amd64_x32_linux_init_abi): Adjust.
816 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
817 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
818 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
819 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
820 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
821 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
822 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
823 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
824 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
825 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
826 * m68k-linux-tdep.c (m68k_linux_init_abi):
827 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
828 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
829 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
830 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
831 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
832 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
833 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
834 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
835 Change type to displaced_step_buffers.
836 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
837 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
838 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
839 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
840 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
841 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
842 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
843
d9655058
SM
8442020-12-04 Simon Marchi <simon.marchi@efficios.com>
845
846 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
847 obkstack.
848 (_initialize_linux_tdep): Register pre-init gdb data instead of
849 post-init.
850
187b041e
SM
8512020-12-04 Simon Marchi <simon.marchi@efficios.com>
852
853 * displaced-stepping.h (struct
854 displaced_step_copy_insn_closure): Adjust comments.
855 (struct displaced_step_inferior_state) <step_thread,
856 step_gdbarch, step_closure, step_original, step_copy,
857 step_saved_copy>: Remove fields.
858 (struct displaced_step_thread_state): New.
859 (struct displaced_step_buffer): New.
860 * displaced-stepping.c (displaced_step_buffer::prepare): New.
861 (write_memory_ptid): Move from infrun.c.
862 (displaced_step_instruction_executed_successfully): New,
863 factored out of displaced_step_finish.
864 (displaced_step_buffer::finish): New.
865 (displaced_step_buffer::copy_insn_closure_by_addr): New.
866 (displaced_step_buffer::restore_in_ptid): New.
867 * gdbarch.sh (displaced_step_location): Remove.
868 (displaced_step_prepare, displaced_step_finish,
869 displaced_step_copy_insn_closure_by_addr,
870 displaced_step_restore_all_in_ptid): New.
871 * gdbarch.c: Re-generate.
872 * gdbarch.h: Re-generate.
873 * gdbthread.h (class thread_info) <displaced_step_state>: New
874 field.
875 (thread_step_over_chain_remove): New declaration.
876 (thread_step_over_chain_next): New declaration.
877 (thread_step_over_chain_length): New declaration.
878 * thread.c (thread_step_over_chain_remove): Make non-static.
879 (thread_step_over_chain_next): New.
880 (global_thread_step_over_chain_next): Use
881 thread_step_over_chain_next.
882 (thread_step_over_chain_length): New.
883 (global_thread_step_over_chain_enqueue): Add debug print.
884 (global_thread_step_over_chain_remove): Add debug print.
885 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
886 Remove.
887 * infrun.c (get_displaced_stepping_state): New.
888 (displaced_step_in_progress_any_inferior): Remove.
889 (displaced_step_in_progress_thread): Adjust.
890 (displaced_step_in_progress): Adjust.
891 (displaced_step_in_progress_any_thread): New.
892 (get_displaced_step_copy_insn_closure_by_addr): Remove.
893 (gdbarch_supports_displaced_stepping): Use
894 gdbarch_displaced_step_prepare_p.
895 (displaced_step_reset): Change parameter from inferior to
896 thread.
897 (displaced_step_prepare_throw): Implement using
898 gdbarch_displaced_step_prepare.
899 (write_memory_ptid): Move to displaced-step.c.
900 (displaced_step_restore): Remove.
901 (displaced_step_finish): Implement using
902 gdbarch_displaced_step_finish.
903 (start_step_over): Allow starting more than one displaced step.
904 (prepare_for_detach): Handle possibly multiple threads doing
905 displaced steps.
906 (handle_inferior_event): Handle possibility that fork event
907 happens while another thread displaced steps.
908 * linux-tdep.h (linux_displaced_step_prepare): New.
909 (linux_displaced_step_finish): New.
910 (linux_displaced_step_copy_insn_closure_by_addr): New.
911 (linux_displaced_step_restore_all_in_ptid): New.
912 (linux_init_abi): Add supports_displaced_step parameter.
913 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
914 (linux_displaced_step_prepare): New.
915 (linux_displaced_step_finish): New.
916 (linux_displaced_step_copy_insn_closure_by_addr): New.
917 (linux_displaced_step_restore_all_in_ptid): New.
918 (linux_init_abi): Add supports_displaced_step parameter,
919 register displaced step methods if true.
920 (_initialize_linux_tdep): Register inferior_execd observer.
921 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
922 supports_displaced_step parameter, adjust call to
923 linux_init_abi. Remove call to
924 set_gdbarch_displaced_step_location.
925 (amd64_linux_init_abi): Adjust call to
926 amd64_linux_init_abi_common.
927 (amd64_x32_linux_init_abi): Likewise.
928 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
929 linux_init_abi. Remove call to
930 set_gdbarch_displaced_step_location.
931 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
932 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
933 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
934 linux_init_abi.
935 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
936 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
937 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
938 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
939 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
940 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
941 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
942 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
943 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
944 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
945 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
946 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
947 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
948 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
949 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
950 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
951 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
952 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
953 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
954 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
955 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
956 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
957 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
958 linux_init_abi. Remove call to
959 set_gdbarch_displaced_step_location.
960 * arm-tdep.c (arm_pc_is_thumb): Call
961 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
962 get_displaced_step_copy_insn_closure_by_addr.
963 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
964 clear gdbarch methods.
965 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
966 (get_ppc_per_inferior): New function.
967 (ppc_displaced_step_prepare): New function.
968 (ppc_displaced_step_finish): New function.
969 (ppc_displaced_step_restore_all_in_ptid): New function.
970 (rs6000_gdbarch_init): Register new gdbarch methods.
971 * s390-tdep.c (s390_gdbarch_init): Don't call
972 set_gdbarch_displaced_step_location, set new gdbarch methods.
973
c7acb87b
SM
9742020-12-04 Simon Marchi <simon.marchi@efficios.com>
975
976 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
977 * aarch64-tdep.h: Include displaced-stepping.h.
978 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
979 Move here.
980 (displaced_step_copy_insn_closure_up): Move here.
981 (struct buf_displaced_step_copy_insn_closure): Move here.
982 (struct displaced_step_inferior_state): Move here.
983 (debug_displaced): Move here.
984 (displaced_debug_printf_1): Move here.
985 (displaced_debug_printf): Move here.
986 * displaced-stepping.c: New file.
987 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
988 * gdbarch.h: Re-generate.
989 * inferior.h: Include displaced-stepping.h.
990 * infrun.h (debug_displaced): Move to displaced-stepping.h.
991 (displaced_debug_printf_1): Likewise.
992 (displaced_debug_printf): Likewise.
993 (struct displaced_step_copy_insn_closure): Likewise.
994 (displaced_step_copy_insn_closure_up): Likewise.
995 (struct buf_displaced_step_copy_insn_closure): Likewise.
996 (struct displaced_step_inferior_state): Likewise.
997 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
998 (displaced_debug_printf_1): Likewise.
999 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
1000 Likewise.
1001 (_initialize_infrun): Don't register "set/show debug displaced".
1002
94b24c74
SM
10032020-12-04 Simon Marchi <simon.marchi@efficios.com>
1004
1005 * linux-tdep.c (get_linux_inferior_data): Add inferior
1006 parameter.
1007 (linux_vsyscall_range): Pass current inferior.
1008
bab37966
SM
10092020-12-04 Simon Marchi <simon.marchi@efficios.com>
1010
1011 * infrun.c (displaced_step_prepare_throw): Change return type to
1012 displaced_step_prepare_status.
1013 (displaced_step_prepare): Likewise.
1014 (displaced_step_finish): Change return type to
1015 displaced_step_finish_status.
1016 (resume_1): Adjust.
1017 (stop_all_threads): Adjust.
1018 * displaced-stepping.h: New file.
1019
7def77a1
SM
10202020-12-04 Simon Marchi <simon.marchi@efficios.com>
1021
1022 * infrun.c (displaced_step_fixup): Rename to...
1023 (displaced_step_finish): ... this, update all callers.
1024
1152d984
SM
10252020-12-04 Simon Marchi <simon.marchi@efficios.com>
1026
1027 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
1028 (get_displaced_step_copy_insn_closure_by_addr): ... this.
1029 Update all users.
1030 (displaced_step_closure): Rename to...
1031 (displaced_step_copy_insn_closure): ... this. Update all users.
1032 (displaced_step_closure_up): Rename to...
1033 (displaced_step_copy_insn_closure_up). ... this. Update all
1034 users.
1035 (buf_displaced_step_closure): Rename to...
1036 (buf_displaced_step_copy_insn_closure): ... this. Update all
1037 users.
1038 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
1039 (get_displaced_step_copy_insn_closure_by_addr): ... this.
1040 Update all users.
1041 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
1042 (aarch64_displaced_step_copy_insn_closure): ... this. Update
1043 all users.
1044 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
1045 (amd64_displaced_step_copy_insn_closure): ... this. Update all
1046 users.
1047 * arm-tdep.h (arm_displaced_step_closure): Rename to...
1048 (arm_displaced_step_copy_insn_closure): ... this. Update all
1049 users.
1050 * i386-tdep.h (i386_displaced_step_closure): Rename to...
1051 (i386_displaced_step_copy_insn_closure): ... this. Update all
1052 users.
1053 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
1054 (ppc_displaced_step_copy_insn_closure): ... this. Update all
1055 users.
1056 * s390-tdep.c (s390_displaced_step_closure): Rename to...
1057 (s390_displaced_step_copy_insn_closure): ... this. Update all
1058 users.
1059 * gdbarch.h: Re-generate.
1060 * gdbarch.c: Re-generate.
1061
28d5518b
SM
10622020-12-04 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
1065 (global_thread_step_over_chain_enqueue): ... this. Update all
1066 users.
1067 (thread_step_over_chain_remove): Rename to...
1068 (global_thread_step_over_chain_remove): ... this. Update all
1069 users.
1070 (thread_step_over_chain_next): Rename to...
1071 (global_thread_step_over_chain_next): ... this. Update all
1072 users.
1073 * infrun.h (step_over_queue_head): Rename to...
1074 (global_thread_step_over_chain_head): ... this. Update all
1075 users.
1076 * infrun.c (step_over_queue_head): Rename to...
1077 (global_thread_step_over_chain_head): ... this. Update all
1078 users.
1079 * thread.c (step_over_chain_remove): Rename to...
1080 (thread_step_over_chain_remove): ... this. Update all users.
1081 (thread_step_over_chain_next): Rename to...
1082 (global_thread_step_over_chain_next): ... this. Update all
1083 users.
1084 (thread_step_over_chain_enqueue): Rename to...
1085 (global_thread_step_over_chain_enqueue): ... this. Update all
1086 users.
1087 (thread_step_over_chain_remove): Rename to...
1088 (global_thread_step_over_chain_remove): ... this. Update all
1089 users.
1090
f5f01699
SM
10912020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * infrun.c (get_displaced_stepping_state): Remove, change
1094 callers to access the field directly.
1095
c0aba012
SM
10962020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * infrun.c (handle_inferior_event): Restore displaced step
1099 buffer bytes in child process when handling fork, even if fork
1100 happened in another thread than the displaced-stepping one.
1101
3b7a962d
SM
11022020-12-04 Simon Marchi <simon.marchi@efficios.com>
1103
1104 * infrun.c (infrun_inferior_execd): New function.
1105 (_initialize_infrun): Attach inferior_execd observer.
1106
42a4fec5
SM
11072020-12-04 Simon Marchi <simon.marchi@efficios.com>
1108
1109 * observable.h (inferior_execd): Declare new observable.
1110 * observable.c (inferior_execd): Declare new observable.
1111 * infrun.c (follow_exec): Notify inferior_execd observer.
1112 * jit.c (jit_inferior_created_hook): Make static.
1113 (_initialize_jit): Register inferior_execd observer.
1114 * jit.h (jit_inferior_created_hook): Remove declaration.
1115 * solib.c (_initialize_solib): Register inferior_execd observer.
1116
aafdfb4e
TV
11172020-12-04 Tom de Vries <tdevries@suse.de>
1118
1119 PR gdb/27003
1120 * completer.c (completion_tracker::build_completion_result): Don't
1121 access match_list[0][-1].
1122
f99b5177
TT
11232020-12-04 Tom Tromey <tromey@adacore.com>
1124
1125 * linespec.c (struct linespec_token): Rename; remove typedef.
1126 * guile/scm-block.c (struct block_smob): Remove typedef.
1127 (struct block_syms_progress_smob): Likewise.
1128 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
1129 * guile/scm-symtab.c (symtab_smob): Remove typedef.
1130 (struct sal_smob): Remove typedef.
1131 * guile/scm-param.c (struct param_smob): Remove typedef.
1132 * guile/scm-progspace.c (struct pspace_smob): Rename.
1133 * guile/scm-objfile.c (struct objfile_smob): Rename.
1134 * guile/scm-iterator.c (struct iterator_smob): Rename.
1135 * guile/scm-frame.c (struct frame_smob): Rename.
1136 * guile/scm-arch.c (struct arch_smob): Rename.
1137 * guile/scm-type.c (struct field_smob): Remove typedef.
1138 (struct type_smob): Rename.
1139 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1140 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1141 * guile/scm-value.c (struct value_smob): Remove typedef.
1142 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1143 * guile/guile-internal.h (struct scheme_variable)
1144 (struct scheme_function, struct scheme_integer_constant)
1145 (struct gdb_smob, struct chained_gdb_smob)
1146 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1147 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1148 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1149 (struct pretty_printer_worker_smob): Remove typedef.
1150 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1151 * python/py-block.c (struct block_object): Remove typedef.
1152 (block_syms_iterator_object): Update.
1153 (set_block): Update.
1154 (block_syms_iterator_object): Remove typedef.
1155 * python/py-inferior.c (struct membuf_object): Remove typedef.
1156 * python/py-symtab.c (struct symtab_object): Remove typedef.
1157 (set_symtab): Update.
1158 (sal_object): Remove typedef.
1159 (set_sal): Update.
1160 * python/py-frame.c (frame_object): Remove typedef.
1161 * python/py-record-btrace.c (struct btpy_list_object): Remove
1162 typedef.
1163 * python/py-arch.c (struct arch_object): Remove typedef.
1164 * python/py-linetable.c (struct linetable_entry_object)
1165 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1166 * python/py-events.h (eventregistry_object): Remove typedef.
1167 (struct events_object): Remove typedef.
1168 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1169 typedef.
1170 (thread_object): Remove typedef.
1171 * python/py-progspace.c (pspace_object): Remove typedef.
1172 * python/py-value.c (struct value_object): Remove typedef.
1173 * python/py-record.h (recpy_record_object): Remove typedef.
1174 (struct recpy_element_object): Remove typedef.
1175 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1176 * python/py-objfile.c (objfile_object): Remove typedef.
1177 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1178 * python/py-type.c (type_object): Remove typedef.
1179 (typy_iterator_object): Update.
1180 (set_type): Update.
1181 (field_object): Remove typedef.
1182 (typy_iterator_object): Remove typedef.
1183 * python/py-registers.c (register_descriptor_iterator_object):
1184 Remove typedef.
1185 (struct register_descriptor_object)
1186 (struct reggroup_iterator_object, struct reggroup_object): Remove
1187 typedef.
1188 * python/py-record.c (recpy_gap_object): Remove typedef.
1189 * python/py-symbol.c (symbol_object): Remove typedef.
1190 (set_symbol): Update.
1191 * python/py-event.h (event_object): Remove typedef.
1192 * python/py-param.c (parmpy_object): Remove typedef.
1193 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1194 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1195 (unwind_info_object, struct cached_frame_info): Likewise.
1196
91f87213
TT
11972020-12-04 Tom Tromey <tromey@adacore.com>
1198
1199 * value.c (value_internal_function_name): Make return type const.
1200 * value.h (value_internal_function_name): Make return type const.
1201
5382f971
LM
12022020-12-04 Luis Machado <luis.machado@linaro.org>
1203
1204 * aarch64-tdep.c (submask, bit, bits): Remove.
1205 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1206 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1207 (aarch64_decode_cb, aarch64_decode_tb)
1208 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1209 immediate.
1210 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1211
b6a6aa07
TV
12122020-12-04 Tom de Vries <tdevries@suse.de>
1213
1214 PR tdep/27007
1215 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1216
0bc2e38d
SM
12172020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 PR gdb/26876
1220 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1221 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1222
25428040
AB
12232020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * arch/riscv.c: Include 'rv32e-xregs.c'.
1226 (riscv_create_target_description): Update to handle rv32e.
1227 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1228 member variable.
1229 <operator==>: Update to account for new field.
1230 <hash>: Likewise.
1231 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1232 * features/riscv/rv32e-xregs.c: Generated.
1233 * features/riscv/rv32e-xregs.xml: New file.
1234 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1235 file.
1236 (riscv_debug_infcall): Likewise.
1237 (riscv_debug_unwinder): Likewise.
1238 (riscv_debug_gdbarch): Likewise.
1239 (enum riscv_register_required_status): Delete.
1240 (struct riscv_register_feature): Add constructor, delete default
1241 constructor, copy, and assign constructors.
1242 (struct riscv_register_feature::register_info) <required>: Delete.
1243 <check>: Update comment and arguments.
1244 (struct riscv_register_feature) <name>: Change to member function.
1245 <prefer_first_name>: Delete.
1246 <tdesc_feature>: New member function.
1247 <registers>: Rename to...
1248 <m_registers>: ...this.
1249 <m_feature_name>: New member variable.
1250 (riscv_register_feature::register_info::check): Update arguments.
1251 (riscv_xreg_feature): Rewrite as class, create a single static
1252 instance of the class.
1253 (riscv_freg_feature): Likewise.
1254 (riscv_virtual_feature): Likewise.
1255 (riscv_csr_feature): Likewise.
1256 (riscv_create_csr_aliases): Has become a member function inside
1257 riscv_csr_feature class.
1258 (riscv_abi_embedded): New function definition.
1259 (riscv_register_name): Adjust to use new feature objects.
1260 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1261 and adjust available argument registers.
1262 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1263 (riscv_check_tdesc_feature): Delete.
1264 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1265 (riscv_gdbarch_init): Delete target description checking code, and
1266 instead call to the new feature objects to perform the checks.
1267 Reorder handling of no abi information case, allows small code
1268 simplification.
1269 (_initialize_riscv_tdep): Remove call, this is now done in the
1270 riscv_csr_feature constructor.
1271 * riscv-tdep.h (riscv_abi_embedded): Declare.
1272
533b2ae0
AB
12732020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1276 DECLARE_CSR_ALIAS.
1277
e4502042
AB
12782020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1281 implementation moved from riscv_register_reggroup_p.
1282 (riscv_register_reggroup_p): Update group handling for unknown
1283 CSRs.
1284
2bf3b79d
SDJ
12852020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1286
1287 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1288 (dwarf2_get_dwz_file): Convert 'filename' to a
1289 std::string. Use dwz_search_other_debugdirs to search for DWZ
1290 files in the debug-file-directories provided by the user as well.
1291
77bf7e99
TT
12922020-12-01 Tom Tromey <tom@tromey.com>
1293
1294 * parse.c (expr_builder::expr_builder): Initialize expout.
1295 (expr_builder::release): Use expression::resize.
1296 (expression::expression, expression::~expression)
1297 (expression::resize): New methods.
1298 (write_exp_elt): Use expression::resize.
1299 (prefixify_expression): Update.
1300 (increase_expout_size): Use expression::resize.
1301 * expression.h (struct expression): Add constructor, destructor.
1302 <resize>: New method.
1303 (expression_up): Change type.
1304
539d71e8
RA
13052020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1306 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1307 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1308 set region.
1309
7ce05d21
TV
13102020-11-30 Tom de Vries <tdevries@suse.de>
1311
1312 PR symtab/26905
1313 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1314 is_reference parameter.
1315 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1316
88b91969
TT
13172020-11-30 Tom Tromey <tom@tromey.com>
1318
1319 * rust-lang.c (rust_op_name): Remove.
1320 (exp_descriptor_rust): Update.
1321 * parser-defs.h (op_name_standard): Don't declare.
1322 (struct exp_descriptor) <op_name>: Remove.
1323 * parse.c (exp_descriptor_standard): Update.
1324 * opencl-lang.c (exp_descriptor_opencl): Update.
1325 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1326 * f-lang.c (op_name_f): Remove.
1327 (f_language::exp_descriptor_tab): Update.
1328 * expression.h (op_name): Update.
1329 * expprint.c (op_name): Rewrite.
1330 (op_name_standard): Remove.
1331 (dump_raw_expression, dump_subexp): Update.
1332 * c-lang.c (exp_descriptor_c): Update.
1333 * ax-gdb.c (gen_expr): Update.
1334 * ada-lang.c (ada_op_name): Remove.
1335 (ada_exp_descriptor): Update.
1336
1cd49c43
TT
13372020-11-30 Tom Tromey <tom@tromey.com>
1338
1339 * eval.c (init_array_element): Remove.
1340 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1341
96fb9086
HD
13422020-11-29 Hannes Domani <ssbssa@yahoo.de>
1343
1344 PR tui/26973
1345 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1346 static locator win info.
1347
b4132322
AR
13482020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1349
1350 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1351 program.
1352
3df8c6af
AB
13532020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1356 is always initialized.
1357
0ae45769
RA
13582020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1359 * MAINTAINERS (Write After Approval): Add myself.
1360
239ca5e4
PW
13612020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1362
1363 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1364 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1365
cbfa382a
TT
13662020-11-25 Tom Tromey <tom@tromey.com>
1367
1368 * eval.c (evaluate_subexp_standard): Remove unnecessary
1369 variables.
1370
af30c400
TT
13712020-11-25 Tom Tromey <tom@tromey.com>
1372
1373 * d-lang.c: Include parser-defs.h.
1374 * rust-lang.c: Include parser-defs.h.
1375 * c-lang.h: Do not include parser-defs.h.
1376
1c64f6cb
SM
13772020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 * regcache.h (struct cached_reg): Remove typedef.
1380
2c20a601
JB
13812020-11-24 Joel Brobecker <brobecker@adacore.com>
1382
1383 * README: Fix the URL of the MPFR library.
1384
c609df64
JB
13852020-11-24 Joel Brobecker <brobecker@adacore.com>
1386
1387 * README: Document the --with-libgmp-prefix configure option.
1388
fa123c32
JB
13892020-11-24 Joel Brobecker <brobecker@adacore.com>
1390
1391 * NEWS: Add entry documenting support for DWARF-based fixed
1392 point types.
1393
0fb8bb02
JB
13942020-11-24 Joel Brobecker <brobecker@adacore.com>
1395
1396 * NEWS: Document that building GDB now requires GMP.
1397
4afa9fd9
JB
13982020-11-24 Joel Brobecker <brobecker@adacore.com>
1399
1400 * typeprint.c (print_type_scalar): Add handling of
1401 TYPE_CODE_FIXED_POINT.
1402
af619ce9
JB
14032020-11-24 Joel Brobecker <brobecker@adacore.com>
1404
1405 * valarith.c (fixed_point_binop): Replace the
1406 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1407 users accordingly.
1408
e6fcee3a
JB
14092020-11-24 Joel Brobecker <brobecker@adacore.com>
1410
1411 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1412 replacing fixed_point_scaling_factor. All callers updated
1413 throughout this project.
1414 (fixed_point_scaling_factor): Delete declaration.
1415 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1416 fixed_point_scaling_factor. Adjust implementation accordingly.
1417
d19937a7
JB
14182020-11-24 Joel Brobecker <brobecker@adacore.com>
1419
1420 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1421 replacing the fixed_point_type_base_type function. All callers
1422 updated throughout this project.
1423 (fixed_point_type_base_type): Remove declaration.
1424 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1425 fixed_point_type_base_type. Adjust implementation accordingly.
1426
2a12c336
JB
14272020-11-24 Joel Brobecker <brobecker@adacore.com>
1428
1429 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1430 New methods.
1431 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1432 (TYPE_FIXED_POINT_INFO): Delete macro.
1433 (allocate_fixed_point_type_info): Change return type to void.
1434 * gdbtypes.c (copy_type_recursive): Replace the use of
1435 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1436 (fixed_point_scaling_factor): Likewise.
1437 (allocate_fixed_point_type_info): Change return type to void.
1438 Adjust implementation accordingly.
1439 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1440 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1441
c9f0b43f
JB
14422020-11-24 Joel Brobecker <brobecker@adacore.com>
1443
1444 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1445 into one single gdb::array_view parameter.
1446 (gdb_mpz::write): Likewise.
1447 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1448 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1449 into one single gdb::array_view parameter.
1450 Adjust implementation accordingly.
1451 (gdb_mpz::write): Likewise.
1452 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1453 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1454 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1455
987b6703
JB
14562020-11-24 Joel Brobecker <brobecker@adacore.com>
1457
1458 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1459 Change return type to std::string. Update all callers.
1460 * gmp-utils.c (gmp_string_printf): Likewise.
1461
4fbb7cce
JB
14622020-11-24 Joel Brobecker <brobecker@adacore.com>
1463
1464 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1465 instead of mpq_set_ui to initialize our GMP rational.
1466
d6ab69dd
TV
14672020-11-23 Tom de Vries <tdevries@suse.de>
1468
1469 * debuginfod-support.c (debuginfod_source_query)
1470 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1471
dab72643
TT
14722020-11-21 Tom Tromey <tom@tromey.com>
1473
1474 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1475
c0ad05d5
SM
14762020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1477
1478 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1479 Pass 2.0 to pow.
1480 (gdb_mpz_write_all_from_small): Likewise.
1481
a43b29c9
SM
14822020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1483
1484 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1485 of abs.
1486
ae41200b
NA
14872020-11-20 Nick Alcock <nick.alcock@oracle.com>
1488
1489 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1490 ctf_arc_open_by_name.
1491
139633c3
NA
14922020-11-20 Nick Alcock <nick.alcock@oracle.com>
1493
1494 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1495 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1496
cbbcd7a7
PA
14972020-11-20 Pedro Alves <pedro@palves.net>
1498
1499 * language.c (language_arch_info::lookup_primitive_type): Use
1500 gdb::function_view instead of gdb::function.
1501 (template language_lookup_primitive_type): Rename to ...
1502 (language_lookup_primitive_type_1): ... this, and make static.
1503 (language_lookup_primitive_type(const struct language_defn *,
1504 struct gdbarch *, const char *): Make non-template.
1505 (language_lookup_primitive_type(const struct language_defn *,
1506 struct gdbarch *, std::function<bool (struct type *)>): Make
1507 non-template and use gdb::function_view.
1508 * language.h (language_arch_info::lookup_primitive_type): Use
1509 gdb::function_view instead of std::function.
1510 (language_lookup_primitive_type): No longer template.
1511 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1512 lambda instead of a std::function.
1513
d5ef21c3
AA
15142020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1515
1516 PR tdep/26916
1517 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1518 and STOCFH.
1519
a5adb8f3
SM
15202020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1521
1522 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1523
70125a45
SM
15242020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1527 in `loop_cb` parameter.
1528 * gdbarch.c: Re-generate.
1529 * gdbarch.h: Re-generate.
1530 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1531 parameter.
1532 * arch-utils.h (default_read_core_file_mappings): Likewise.
1533 * corelow.c (core_target::build_file_mappings): Likewise.
1534 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1535 (linux_core_info_proc_mappings): Likewise.
1536
a5c641b5
AB
15372020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1538
1539 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1540 * NEWS: Mention new options.
1541 * f-array-walker.h: New file.
1542 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1543 (repack_array_slices): New static global.
1544 (show_repack_array_slices): New function.
1545 (fortran_array_slicing_debug): New static global.
1546 (show_fortran_array_slicing_debug): New function.
1547 (value_f90_subarray): Delete.
1548 (skip_undetermined_arglist): Delete.
1549 (class fortran_array_repacker_base_impl): New class.
1550 (class fortran_lazy_array_repacker_impl): New class.
1551 (class fortran_array_repacker_impl): New class.
1552 (fortran_value_subarray): Complete rewrite.
1553 (set_fortran_list): New static global.
1554 (show_fortran_list): Likewise.
1555 (_initialize_f_language): Register new commands.
1556 (fortran_adjust_dynamic_array_base_address_hack): New function.
1557 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1558 Declare.
1559 * f-valprint.c: Include 'f-array-walker.h'.
1560 (class fortran_array_printer_impl): New class.
1561 (f77_print_array_1): Delete.
1562 (f77_print_array): Delete.
1563 (fortran_print_array): New.
1564 (f_value_print_inner): Update to call fortran_print_array.
1565 * gdbtypes.c: Include 'f-lang.h'.
1566 (resolve_dynamic_type_internal): Call
1567 fortran_adjust_dynamic_array_base_address_hack.
1568
a15a5258
AB
15692020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1570
1571 * breakpoint.c (struct watch_options): New struct.
1572 (watch_option_defs): New static global.
1573 (make_watch_options_def_group): New function.
1574 (watch_maybe_just_location): Convert option parsing.
1575 (watch_command_completer): New function.
1576 (_initialize_breakpoint): Build help text using options mechanism.
1577
2e362716
AB
15782020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1579
1580 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1581 (watch_command_1): Update parameter types. Convert locals to
1582 bool.
1583 (watch_command_wrapper): Change parameter type.
1584 (watch_maybe_just_location): Change locals to bool.
1585 (rwatch_command_wrapper): Update parameter type.
1586 (awatch_command_wrapper): Update parameter type.
1587 * breakpoint.h (watch_command_wrapper): Change parameter type.
1588 (rwatch_command_wrapper): Update parameter type.
1589 (awatch_command_wrapper): Update parameter type.
1590 * eval.c (fetch_subexp_value): Change parameter type.
1591 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1592 'false' not '0'.
1593 * value.h (fetch_subexp_value): Change parameter type in
1594 declaration.
1595
b3ff61f8
AB
15962020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1599 skip_spaces.
1600
5b7d45d3
KS
16012020-11-18 Keith Seitz <keiths@redhat.com>
1602
1603 * linux-tdep.c (dump_note_entry_p): Return true instead of
1604 checking `filename'.
1605
c44191f8
TV
16062020-11-18 Tom de Vries <tdevries@suse.de>
1607
1608 * debuginfod-support.c (debuginfod_source_query)
1609 (debuginfod_debuginfo_query): Also do early exit if
1610 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1611
5d8254e1
TV
16122020-11-18 Tom de Vries <tdevries@suse.de>
1613
1614 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1615 warning.
1616
584903d3
SM
16172020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1620 callers. Move doc here.
1621 * gdbtypes.c (get_array_bounds): Return bool
1622
6f2643db
AB
16232020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1626 assert.
1627 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1628 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1629 case to the default.
1630
037d7135
AB
16312020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1632
1633 * printcmd.c: Include 'safe-ctype.c'.
1634 (skip_over_slash_fmt): New function.
1635 (print_command_completer): Call skip_over_slash_fmt.
1636 (display_and_x_command_completer): New function.
1637 (_initialize_printcmd): Add command completion for 'x' and
1638 'display'.
1639
2b3cb400
PA
16402020-11-16 Pedro Alves <pedro@palves.net>
1641
1642 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1643 (get_prev_frame_always_1): ... to here.
1644 * inline-frame.c (inline_frame_this_id): Mention
1645 get_prev_frame_always_1 in comment.
1646
b74dbc20
JB
16472020-11-15 Joel Brobecker <brobecker@adacore.com>
1648
1649 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1650 handling.
1651 (value_less): Add fixed-point handling.
1652
0a12719e
JB
16532020-11-15 Joel Brobecker <brobecker@adacore.com>
1654
1655 * eval.c (binop_promote): Add fixed-point type handling.
1656 * valarith.c (fixed_point_binop): New function.
1657 (scalar_binop): Add fixed-point type handling.
1658 (value_neg): Add fixed-point type handling.
1659 * valops.c (value_cast_to_fixed_point): New function.
1660 (value_cast): Add fixed-point type handling.
1661
0c9150e4
JB
16622020-11-15 Joel Brobecker <brobecker@adacore.com>
1663
1664 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1665 range types.
1666 * c-typeprint.c (c_type_print_varspec_prefix)
1667 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1668 TYPE_CODE_FIXED_POINT handling.
1669 * p-typeprint.c (pascal_type_print_varspec_prefix)
1670 (pascal_type_print_varspec_suffix): Likewise.
1671 * typeprint.c (print_type_fixed_point): New function.
1672 * typeprint.h (print_type_fixed_point): Add declaration.
1673
b26daff9
JB
16742020-11-15 Joel Brobecker <brobecker@adacore.com>
1675
1676 * printcmd.c (print_scalar_formatted): Add fixed-point type
1677 handling when options->format is set.
1678
09584414
JB
16792020-11-15 Joel Brobecker <brobecker@adacore.com>
1680
1681 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1682 * dwarf2/read.c (get_dwarf2_rational_constant)
1683 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1684 (has_zero_over_zero_small_attribute): New functions.
1685 read_base_type, set_die_type): Add fixed-point type handling.
1686 * gdb-gdb.py.in: Add fixed-point type handling.
1687 * gdbtypes.c: #include "gmp-utils.h".
1688 (create_range_type, set_type_code): Add fixed-point type handling.
1689 (init_fixed_point_type): New function.
1690 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1691 (print_fixed_point_type_info): New function.
1692 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1693 handling.
1694 (fixed_point_type_storage): New typedef.
1695 (fixed_point_objfile_key): New static global.
1696 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1697 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1698 functions.
1699 * gdbtypes.h: #include "gmp-utils.h".
1700 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1701 (union type_specific) <fixed_point_info>: New field.
1702 (struct fixed_point_type_info): New struct.
1703 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1704 (init_fixed_point_type, is_fixed_point_type)
1705 (fixed_point_type_base_type, fixed_point_scaling_factor)
1706 (allocate_fixed_point_type_info): Add declarations.
1707 * valprint.c (generic_val_print_fixed_point): New function.
1708 (generic_value_print): Add fixed-point type handling.
1709 * value.c (value_as_address, unpack_long): Add fixed-point type
1710 handling.
1711
e55c6530
JB
17122020-11-15 Joel Brobecker <brobecker@adacore.com>
1713
1714 * utils.h (uinteger_pow): Add declaration.
1715 * utils.c (uinteger_pow): Moved here (without changes)...
1716 * valarith.c (uinteger_pow): ... from here.
1717
b34c74ab
JB
17182020-11-15 Joel Brobecker <brobecker@adacore.com>
1719
40d9d2fd 1720 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1721 * unittests/gmp-utils-selftests.c: New file.
1722 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1723 unittests/gmp-utils-selftests.c.
1724 (COMMON_SFILES) Add gmp-utils.c.
1725 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1726
1b4ac058
JB
17272020-11-15 Joel Brobecker <brobecker@adacore.com>
1728
1729 * configure.ac: Generate an error if a usable GMP library
1730 could not be found.
1731 * configure: Regenerate.
1732
2c947d9b
JB
17332020-11-15 Joel Brobecker <brobecker@adacore.com>
1734
1735 * configure.ac: Add support for --with-libgmp-prefix.
1736 * Makefile.in (LIBGMP): New variable.
1737 (CLIBS): Include $(LIBGMP).
1738 * configure, config.in: Regenerate
1739
9dd02fc0
AB
17402020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1741
1742 PR cli/26879
1743 * f-exp.y (COMPLETE): New token.
1744 (exp): Two new rules for tab-completion.
1745 (saw_name_at_eof): New static global.
1746 (last_was_structop): Likewise.
1747 (yylex): Set new variables, and return COMPLETE token at the end
1748 of the input stream in some cases.
1749
758cb810
TT
17502020-11-14 Tom Tromey <tom@tromey.com>
1751
1752 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1753
749065b7
TT
17542020-11-14 Tom Tromey <tom@tromey.com>
1755
1756 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1757
2c5b1849
SM
17582020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1759
1760 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1761
e8b2f0d9
TT
17622020-11-13 Tom Tromey <tom@tromey.com>
1763
1764 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1765 (convert_escape, parse_one_string): Constify.
1766
25f4c262
KS
17672020-11-13 Keith Seitz <keiths@redhat.com>
1768
1769 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1770 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1771 outside of ELF segments" warning for debugin
1772
9d3ab915
KS
17732020-11-13 Keith Seitz <keiths@redhat.com>
1774
1775 PR gdb/23034
1776 * elfread.c (elf_symfile_segments): Output a BFD file name
1777 for the "Loadable section ... outside of ELF segments" warning.
1778
9ecab40c
SM
17792020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1780
1781 PR gdb/26835
1782 * arm-tdep.c (class arm_instruction_reader): New.
1783 (target_arm_instruction_reader): New.
1784 (arm_analyze_prologue): Add instruction reader parameter and use
1785 it. Use arm_expand_immediate.
1786 (class target_arm_instruction_reader): Adjust.
1787 (arm_skip_prologue): Adjust.
1788 (arm_expand_immediate): New.
1789 (arm_scan_prologue): Adjust.
1790 (arm_analyze_prologue_test): New.
1791 (class test_arm_instruction_reader): New.
1792
5a7cf527
AB
17932020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1794
1795 * f-lang.c (fortran_argument_convert): Add declaration. Add
1796 header comment, taken from f-lang.h. Make static.
1797 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1798 (fortran_argument_convert): Delete declaration.
1799
7bea47f0
AB
18002020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1801
1802 * ada-exp.y (find_primitive_type): Make parameter const.
1803 * ada-lang.c (enum ada_primitive_types): Delete.
1804 (ada_language::language_arch_info): Update.
1805 * c-lang.c (enum c_primitive_types): Delete.
1806 (c_language_arch_info): Update.
1807 (enum cplus_primitive_types): Delete.
1808 (cplus_language::language_arch_info): Update.
1809 * d-lang.c (enum d_primitive_types): Delete.
1810 (d_language::language_arch_info): Update.
1811 * f-lang.c (enum f_primitive_types): Delete.
1812 (f_language::language_arch_info): Update.
1813 * go-lang.c (enum go_primitive_types): Delete.
1814 (go_language::language_arch_info): Update.
1815 * language.c (auto_or_unknown_language::language_arch_info):
1816 Update.
1817 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1818 (language_string_char_type): Add header comment, call function in
1819 language_arch_info.
1820 (language_bool_type): Likewise
1821 (language_arch_info::bool_type): Define.
1822 (language_lookup_primitive_type_1): Delete.
1823 (language_lookup_primitive_type): Rewrite as a templated function
1824 to call function in language_arch_info, then instantiate twice.
1825 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1826 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1827 (language_arch_info::lookup_primitive_type): Define twice with
1828 different signatures.
1829 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1830 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1831 member function in language_arch_info.
1832 * language.h (language_arch_info): Complete rewrite.
1833 (language_lookup_primitive_type): Make templated.
1834 * m2-lang.c (enum m2_primitive_types): Delete.
1835 (m2_language::language_arch_info): Update.
1836 * opencl-lang.c (OCL_P_TYPE): Delete.
1837 (enum opencl_primitive_types): Delete.
1838 (opencl_type_data): Delete.
1839 (builtin_opencl_type): Delete.
1840 (lookup_opencl_vector_type): Update.
1841 (opencl_language::language_arch_info): Update, lots of content
1842 moved from...
1843 (build_opencl_types): ...here. This function is now deleted.
1844 (_initialize_opencl_language): Delete.
1845 * p-lang.c (enum pascal_primitive_types): Delete.
1846 (pascal_language::language_arch_info): Update.
1847 * rust-lang.c (enum rust_primitive_types): Delete.
1848 (rust_language::language_arch_info): Update.
1849
bf6e5d01
SM
18502020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1853 dwarf2_queue_guard.
1854
1350c3b4
SM
18552020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1856
1857 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1858 comment.
1859
6f738b01
SM
18602020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1861
1862 * dwarf2/read.c (dwarf_read_debug_printf,
1863 dwarf_read_debug_printf_v): New macros, use throughout the file.
1864
10c19fad
SV
18652020-11-12 Shahab Vahedi <shahab@synopsys.com>
1866
10806efd 1867 PR tdep/27015
10c19fad
SV
1868 * arc-linux-tdep.c (collect_register): Populate "eret" by
1869 "pc" value from the regcache when asked for "pc" value.
1870
1f2624a3
TT
18712020-11-12 Tom Tromey <tom@tromey.com>
1872
1873 PR rust/26799:
1874 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1875 exist.
1876
ab33b152
AB
18772020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1878
1879 * features/Makefile (XMLTOC): Add rx.xml.
1880 (FEATURE_XMLFILES): Remove rx.xml.
1881 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1882 * features/rx.c: Regenerate.
1883 * features/rx.xml: Wrap in `target` tags, and reindent.
1884 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1885 structure.
1886 (maint_print_c_tdesc_opt_def): New typedef.
1887 (maint_print_c_tdesc_opt_defs): New static global.
1888 (make_maint_print_c_tdesc_options_def_group): New function.
1889 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1890 print single feature C file for target descriptions containing a
1891 single feature.
1892 (maint_print_c_tdesc_cmd_completer): New function.
1893 (_initialize_target_descriptions): Update call to register command
1894 completer, and include command line flag in help text.
1895
550820e1
AB
18962020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1897
1898 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1899 numbers.
1900 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1901 enum values.
1902
baf20f76
TT
19032020-11-10 Tom Tromey <tom@tromey.com>
1904
1905 * value.h (internalvar_name): Update.
1906 * value.c (internalvar_name): Make return type const.
1907
caaece0e
TT
19082020-11-10 Tom Tromey <tom@tromey.com>
1909
1910 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1911 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1912 const.
1913
8e20b4be
TT
19142020-11-10 Tom Tromey <tom@tromey.com>
1915
1916 * objc-lang.h (value_nsstring): Update.
1917 * objc-lang.c (value_nsstring): Make "ptr" const.
1918
86775fab
AB
19192020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1920
1921 * expprint.c (print_subexp_funcall): Increment expression position
1922 after reading argument count.
1923 * f-lang.c (print_subexp_f): Skip over opcode before calling
1924 common function.
1925 (dump_subexp_body_f): Likewise.
1926
3fed4c0b
RG
19272020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1928
1929 PR python/26832
1930 * configure: Regenerate.
1931 * configure.ac: Check for python modules ctypes instead of
1932 itertools.
1933
ac3d4064
PA
19342020-11-06 Pedro Alves <pedro@palves.net>
1935
1936 * macroexp.c (struct macro_buffer): Split in two classes. Add
1937 uses adjusted.
1938 (struct shared_macro_buffer): New, factored out from struct
1939 macro_buffer.
1940 (struct growable_macro_buffer): New, factored out from struct
1941 macro_buffer.
1942 (set_token, get_comment, get_identifier, get_pp_number)
1943 (get_character_constant, get_string_literal, get_punctuator)
1944 (get_next_token_for_substitution): Constify parameters.
1945 (substitute_args): Constify locals.
1946
606decb2
TT
19472020-11-05 Tom Tromey <tom@tromey.com>
1948
1949 * dwarf2/read.c (read_cutu_die_from_dwo)
1950 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
1951 (build_type_psymtabs_1): Update.
1952 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
1953 parameter.
1954 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
1955 Don't read section. Add assert.
1956
9c91c725
TT
19572020-11-04 Tom Tromey <tromey@adacore.com>
1958
1959 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
1960
8d9fd3a1
TT
19612020-11-04 Tom Tromey <tromey@adacore.com>
1962
1963 * ada-typeprint.c (ada_print_type): Handle __T types.
1964
d8f62e84
TT
19652020-11-04 Tom Tromey <tromey@adacore.com>
1966
1967 * dwarf2/read.c (add_partial_symbol, process_die):
1968 Handle DW_TAG_array_type.
1969 (is_type_tag_for_partial): Add "lang" parameter.
1970 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
1971
7ff5b937
TT
19722020-11-04 Tom Tromey <tromey@adacore.com>
1973
1974 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
1975
10f6a3ad
TT
19762020-11-04 Tom Tromey <tromey@adacore.com>
1977
1978 * dwarf2/read.c (read_array_type): Only apply stride to innermost
1979 array.
1980
b72795a8
TT
19812020-11-04 Tom Tromey <tromey@adacore.com>
1982
1983 * gdbtypes.c (update_static_array_size): Handle bit stride.
1984
24aa1b02
TT
19852020-11-04 Tom Tromey <tromey@adacore.com>
1986
1987 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
1988
c9a28cbe
TT
19892020-11-04 Tom Tromey <tromey@adacore.com>
1990
1991 * ada-lang.c (ada_is_any_packed_array_type): New function.
1992 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
1993
57567375
TT
19942020-11-04 Tom Tromey <tromey@adacore.com>
1995
1996 * dwarf2/read.c (recognize_bound_expression)
1997 (quirk_ada_thick_pointer): New functions.
1998 (read_array_type): Call quirk_ada_thick_pointer.
1999 (set_die_type): Add "skip_data_location" parameter.
2000 (quirk_ada_thick_pointer): New function.
2001 (process_structure_scope): Call quirk_ada_thick_pointer.
2002 * ada-lang.c (ada_is_unconstrained_packed_array_type)
2003 (decode_packed_array_bitsize): Handle thick pointers without
2004 parallel types.
2005 (ada_is_gnat_encoded_packed_array_type): Rename from
2006 ada_is_packed_array_type.
2007 (ada_is_constrained_packed_array_type): Update.
2008 * ada-valprint.c (ada_val_print_gnat_array): Remove.
2009 (ada_value_print_1): Use ada_get_decoded_value.
2010
a7400e44
TT
20112020-11-04 Tom Tromey <tromey@adacore.com>
2012
2013 * ada-lang.c (recursively_update_array_bitsize): New function.
2014 (decode_constrained_packed_array_type): Call it.
2015
75fd6a26
TT
20162020-11-04 Tom Tromey <tromey@adacore.com>
2017
2018 * ada-lang.c (to_fixed_array_type): Error if
2019 decode_constrained_packed_array_type returns NULL.
2020
93f9561e
TT
20212020-11-04 Tom Tromey <tromey@adacore.com>
2022
2023 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
2024
257e02d8
TT
20252020-11-02 Tom Tromey <tromey@adacore.com>
2026
2027 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
2028 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
2029 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
2030 * amd64-ravenscar-thread.c: New file.
2031 * amd64-ravenscar-thread.h: New file.
2032 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
2033 * configure.tgt (amd64_tobjs): Add ravenscar objects.
2034
74d877e5
AB
20352020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2036
2037 * main.c (execute_cmdargs): New function.
2038 (captured_main_1): Make use of execute_cmdargs.
2039
64aaad63
AB
20402020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2041
2042 * NEWS: Mention changes to config file search path.
2043 * main.c
2044
5b3d3560
TT
20452020-11-02 Tom Tromey <tromey@adacore.com>
2046
2047 * python/python.c: Consolidate two HAVE_PYTHON blocks.
2048 (python_GdbModuleDef): Move earlier. Now static.
2049 (do_start_initialization): Consolidate some IS_PY3K blocks.
2050
dda83cd7
SM
20512020-11-02 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * aarch64-linux-tdep.c: Fix indentation.
2054 * aarch64-ravenscar-thread.c: Fix indentation.
2055 * aarch64-tdep.c: Fix indentation.
2056 * aarch64-tdep.h: Fix indentation.
2057 * ada-lang.c: Fix indentation.
2058 * ada-lang.h: Fix indentation.
2059 * ada-tasks.c: Fix indentation.
2060 * ada-typeprint.c: Fix indentation.
2061 * ada-valprint.c: Fix indentation.
2062 * ada-varobj.c: Fix indentation.
2063 * addrmap.c: Fix indentation.
2064 * addrmap.h: Fix indentation.
2065 * agent.c: Fix indentation.
2066 * aix-thread.c: Fix indentation.
2067 * alpha-bsd-nat.c: Fix indentation.
2068 * alpha-linux-tdep.c: Fix indentation.
2069 * alpha-mdebug-tdep.c: Fix indentation.
2070 * alpha-nbsd-tdep.c: Fix indentation.
2071 * alpha-obsd-tdep.c: Fix indentation.
2072 * alpha-tdep.c: Fix indentation.
2073 * amd64-bsd-nat.c: Fix indentation.
2074 * amd64-darwin-tdep.c: Fix indentation.
2075 * amd64-linux-nat.c: Fix indentation.
2076 * amd64-linux-tdep.c: Fix indentation.
2077 * amd64-nat.c: Fix indentation.
2078 * amd64-obsd-tdep.c: Fix indentation.
2079 * amd64-tdep.c: Fix indentation.
2080 * amd64-windows-tdep.c: Fix indentation.
2081 * annotate.c: Fix indentation.
2082 * arc-tdep.c: Fix indentation.
2083 * arch-utils.c: Fix indentation.
2084 * arch/arm-get-next-pcs.c: Fix indentation.
2085 * arch/arm.c: Fix indentation.
2086 * arm-linux-nat.c: Fix indentation.
2087 * arm-linux-tdep.c: Fix indentation.
2088 * arm-nbsd-tdep.c: Fix indentation.
2089 * arm-pikeos-tdep.c: Fix indentation.
2090 * arm-tdep.c: Fix indentation.
2091 * arm-tdep.h: Fix indentation.
2092 * arm-wince-tdep.c: Fix indentation.
2093 * auto-load.c: Fix indentation.
2094 * auxv.c: Fix indentation.
2095 * avr-tdep.c: Fix indentation.
2096 * ax-gdb.c: Fix indentation.
2097 * ax-general.c: Fix indentation.
2098 * bfin-linux-tdep.c: Fix indentation.
2099 * block.c: Fix indentation.
2100 * block.h: Fix indentation.
2101 * blockframe.c: Fix indentation.
2102 * bpf-tdep.c: Fix indentation.
2103 * break-catch-sig.c: Fix indentation.
2104 * break-catch-syscall.c: Fix indentation.
2105 * break-catch-throw.c: Fix indentation.
2106 * breakpoint.c: Fix indentation.
2107 * breakpoint.h: Fix indentation.
2108 * bsd-uthread.c: Fix indentation.
2109 * btrace.c: Fix indentation.
2110 * build-id.c: Fix indentation.
2111 * buildsym-legacy.h: Fix indentation.
2112 * buildsym.c: Fix indentation.
2113 * c-typeprint.c: Fix indentation.
2114 * c-valprint.c: Fix indentation.
2115 * c-varobj.c: Fix indentation.
2116 * charset.c: Fix indentation.
2117 * cli/cli-cmds.c: Fix indentation.
2118 * cli/cli-decode.c: Fix indentation.
2119 * cli/cli-decode.h: Fix indentation.
2120 * cli/cli-script.c: Fix indentation.
2121 * cli/cli-setshow.c: Fix indentation.
2122 * coff-pe-read.c: Fix indentation.
2123 * coffread.c: Fix indentation.
2124 * compile/compile-cplus-types.c: Fix indentation.
2125 * compile/compile-object-load.c: Fix indentation.
2126 * compile/compile-object-run.c: Fix indentation.
2127 * completer.c: Fix indentation.
2128 * corefile.c: Fix indentation.
2129 * corelow.c: Fix indentation.
2130 * cp-abi.h: Fix indentation.
2131 * cp-namespace.c: Fix indentation.
2132 * cp-support.c: Fix indentation.
2133 * cp-valprint.c: Fix indentation.
2134 * cris-linux-tdep.c: Fix indentation.
2135 * cris-tdep.c: Fix indentation.
2136 * darwin-nat-info.c: Fix indentation.
2137 * darwin-nat.c: Fix indentation.
2138 * darwin-nat.h: Fix indentation.
2139 * dbxread.c: Fix indentation.
2140 * dcache.c: Fix indentation.
2141 * disasm.c: Fix indentation.
2142 * dtrace-probe.c: Fix indentation.
2143 * dwarf2/abbrev.c: Fix indentation.
2144 * dwarf2/attribute.c: Fix indentation.
2145 * dwarf2/expr.c: Fix indentation.
2146 * dwarf2/frame.c: Fix indentation.
2147 * dwarf2/index-cache.c: Fix indentation.
2148 * dwarf2/index-write.c: Fix indentation.
2149 * dwarf2/line-header.c: Fix indentation.
2150 * dwarf2/loc.c: Fix indentation.
2151 * dwarf2/macro.c: Fix indentation.
2152 * dwarf2/read.c: Fix indentation.
2153 * dwarf2/read.h: Fix indentation.
2154 * elfread.c: Fix indentation.
2155 * eval.c: Fix indentation.
2156 * event-top.c: Fix indentation.
2157 * exec.c: Fix indentation.
2158 * exec.h: Fix indentation.
2159 * expprint.c: Fix indentation.
2160 * f-lang.c: Fix indentation.
2161 * f-typeprint.c: Fix indentation.
2162 * f-valprint.c: Fix indentation.
2163 * fbsd-nat.c: Fix indentation.
2164 * fbsd-tdep.c: Fix indentation.
2165 * findvar.c: Fix indentation.
2166 * fork-child.c: Fix indentation.
2167 * frame-unwind.c: Fix indentation.
2168 * frame-unwind.h: Fix indentation.
2169 * frame.c: Fix indentation.
2170 * frv-linux-tdep.c: Fix indentation.
2171 * frv-tdep.c: Fix indentation.
2172 * frv-tdep.h: Fix indentation.
2173 * ft32-tdep.c: Fix indentation.
2174 * gcore.c: Fix indentation.
2175 * gdb_bfd.c: Fix indentation.
2176 * gdbarch.sh: Fix indentation.
2177 * gdbarch.c: Re-generate
2178 * gdbarch.h: Re-generate.
2179 * gdbcore.h: Fix indentation.
2180 * gdbthread.h: Fix indentation.
2181 * gdbtypes.c: Fix indentation.
2182 * gdbtypes.h: Fix indentation.
2183 * glibc-tdep.c: Fix indentation.
2184 * gnu-nat.c: Fix indentation.
2185 * gnu-nat.h: Fix indentation.
2186 * gnu-v2-abi.c: Fix indentation.
2187 * gnu-v3-abi.c: Fix indentation.
2188 * go32-nat.c: Fix indentation.
2189 * guile/guile-internal.h: Fix indentation.
2190 * guile/scm-cmd.c: Fix indentation.
2191 * guile/scm-frame.c: Fix indentation.
2192 * guile/scm-iterator.c: Fix indentation.
2193 * guile/scm-math.c: Fix indentation.
2194 * guile/scm-ports.c: Fix indentation.
2195 * guile/scm-pretty-print.c: Fix indentation.
2196 * guile/scm-value.c: Fix indentation.
2197 * h8300-tdep.c: Fix indentation.
2198 * hppa-linux-nat.c: Fix indentation.
2199 * hppa-linux-tdep.c: Fix indentation.
2200 * hppa-nbsd-nat.c: Fix indentation.
2201 * hppa-nbsd-tdep.c: Fix indentation.
2202 * hppa-obsd-nat.c: Fix indentation.
2203 * hppa-tdep.c: Fix indentation.
2204 * hppa-tdep.h: Fix indentation.
2205 * i386-bsd-nat.c: Fix indentation.
2206 * i386-darwin-nat.c: Fix indentation.
2207 * i386-darwin-tdep.c: Fix indentation.
2208 * i386-dicos-tdep.c: Fix indentation.
2209 * i386-gnu-nat.c: Fix indentation.
2210 * i386-linux-nat.c: Fix indentation.
2211 * i386-linux-tdep.c: Fix indentation.
2212 * i386-nto-tdep.c: Fix indentation.
2213 * i386-obsd-tdep.c: Fix indentation.
2214 * i386-sol2-nat.c: Fix indentation.
2215 * i386-tdep.c: Fix indentation.
2216 * i386-tdep.h: Fix indentation.
2217 * i386-windows-tdep.c: Fix indentation.
2218 * i387-tdep.c: Fix indentation.
2219 * i387-tdep.h: Fix indentation.
2220 * ia64-libunwind-tdep.c: Fix indentation.
2221 * ia64-libunwind-tdep.h: Fix indentation.
2222 * ia64-linux-nat.c: Fix indentation.
2223 * ia64-linux-tdep.c: Fix indentation.
2224 * ia64-tdep.c: Fix indentation.
2225 * ia64-tdep.h: Fix indentation.
2226 * ia64-vms-tdep.c: Fix indentation.
2227 * infcall.c: Fix indentation.
2228 * infcmd.c: Fix indentation.
2229 * inferior.c: Fix indentation.
2230 * infrun.c: Fix indentation.
2231 * iq2000-tdep.c: Fix indentation.
2232 * language.c: Fix indentation.
2233 * linespec.c: Fix indentation.
2234 * linux-fork.c: Fix indentation.
2235 * linux-nat.c: Fix indentation.
2236 * linux-tdep.c: Fix indentation.
2237 * linux-thread-db.c: Fix indentation.
2238 * lm32-tdep.c: Fix indentation.
2239 * m2-lang.c: Fix indentation.
2240 * m2-typeprint.c: Fix indentation.
2241 * m2-valprint.c: Fix indentation.
2242 * m32c-tdep.c: Fix indentation.
2243 * m32r-linux-tdep.c: Fix indentation.
2244 * m32r-tdep.c: Fix indentation.
2245 * m68hc11-tdep.c: Fix indentation.
2246 * m68k-bsd-nat.c: Fix indentation.
2247 * m68k-linux-nat.c: Fix indentation.
2248 * m68k-linux-tdep.c: Fix indentation.
2249 * m68k-tdep.c: Fix indentation.
2250 * machoread.c: Fix indentation.
2251 * macrocmd.c: Fix indentation.
2252 * macroexp.c: Fix indentation.
2253 * macroscope.c: Fix indentation.
2254 * macrotab.c: Fix indentation.
2255 * macrotab.h: Fix indentation.
2256 * main.c: Fix indentation.
2257 * mdebugread.c: Fix indentation.
2258 * mep-tdep.c: Fix indentation.
2259 * mi/mi-cmd-catch.c: Fix indentation.
2260 * mi/mi-cmd-disas.c: Fix indentation.
2261 * mi/mi-cmd-env.c: Fix indentation.
2262 * mi/mi-cmd-stack.c: Fix indentation.
2263 * mi/mi-cmd-var.c: Fix indentation.
2264 * mi/mi-cmds.c: Fix indentation.
2265 * mi/mi-main.c: Fix indentation.
2266 * mi/mi-parse.c: Fix indentation.
2267 * microblaze-tdep.c: Fix indentation.
2268 * minidebug.c: Fix indentation.
2269 * minsyms.c: Fix indentation.
2270 * mips-linux-nat.c: Fix indentation.
2271 * mips-linux-tdep.c: Fix indentation.
2272 * mips-nbsd-tdep.c: Fix indentation.
2273 * mips-tdep.c: Fix indentation.
2274 * mn10300-linux-tdep.c: Fix indentation.
2275 * mn10300-tdep.c: Fix indentation.
2276 * moxie-tdep.c: Fix indentation.
2277 * msp430-tdep.c: Fix indentation.
2278 * namespace.h: Fix indentation.
2279 * nat/fork-inferior.c: Fix indentation.
2280 * nat/gdb_ptrace.h: Fix indentation.
2281 * nat/linux-namespaces.c: Fix indentation.
2282 * nat/linux-osdata.c: Fix indentation.
2283 * nat/netbsd-nat.c: Fix indentation.
2284 * nat/x86-dregs.c: Fix indentation.
2285 * nbsd-nat.c: Fix indentation.
2286 * nbsd-tdep.c: Fix indentation.
2287 * nios2-linux-tdep.c: Fix indentation.
2288 * nios2-tdep.c: Fix indentation.
2289 * nto-procfs.c: Fix indentation.
2290 * nto-tdep.c: Fix indentation.
2291 * objfiles.c: Fix indentation.
2292 * objfiles.h: Fix indentation.
2293 * opencl-lang.c: Fix indentation.
2294 * or1k-tdep.c: Fix indentation.
2295 * osabi.c: Fix indentation.
2296 * osabi.h: Fix indentation.
2297 * osdata.c: Fix indentation.
2298 * p-lang.c: Fix indentation.
2299 * p-typeprint.c: Fix indentation.
2300 * p-valprint.c: Fix indentation.
2301 * parse.c: Fix indentation.
2302 * ppc-linux-nat.c: Fix indentation.
2303 * ppc-linux-tdep.c: Fix indentation.
2304 * ppc-nbsd-nat.c: Fix indentation.
2305 * ppc-nbsd-tdep.c: Fix indentation.
2306 * ppc-obsd-nat.c: Fix indentation.
2307 * ppc-ravenscar-thread.c: Fix indentation.
2308 * ppc-sysv-tdep.c: Fix indentation.
2309 * ppc64-tdep.c: Fix indentation.
2310 * printcmd.c: Fix indentation.
2311 * proc-api.c: Fix indentation.
2312 * producer.c: Fix indentation.
2313 * producer.h: Fix indentation.
2314 * prologue-value.c: Fix indentation.
2315 * prologue-value.h: Fix indentation.
2316 * psymtab.c: Fix indentation.
2317 * python/py-arch.c: Fix indentation.
2318 * python/py-bpevent.c: Fix indentation.
2319 * python/py-event.c: Fix indentation.
2320 * python/py-event.h: Fix indentation.
2321 * python/py-finishbreakpoint.c: Fix indentation.
2322 * python/py-frame.c: Fix indentation.
2323 * python/py-framefilter.c: Fix indentation.
2324 * python/py-inferior.c: Fix indentation.
2325 * python/py-infthread.c: Fix indentation.
2326 * python/py-objfile.c: Fix indentation.
2327 * python/py-prettyprint.c: Fix indentation.
2328 * python/py-registers.c: Fix indentation.
2329 * python/py-signalevent.c: Fix indentation.
2330 * python/py-stopevent.c: Fix indentation.
2331 * python/py-stopevent.h: Fix indentation.
2332 * python/py-threadevent.c: Fix indentation.
2333 * python/py-tui.c: Fix indentation.
2334 * python/py-unwind.c: Fix indentation.
2335 * python/py-value.c: Fix indentation.
2336 * python/py-xmethods.c: Fix indentation.
2337 * python/python-internal.h: Fix indentation.
2338 * python/python.c: Fix indentation.
2339 * ravenscar-thread.c: Fix indentation.
2340 * record-btrace.c: Fix indentation.
2341 * record-full.c: Fix indentation.
2342 * record.c: Fix indentation.
2343 * reggroups.c: Fix indentation.
2344 * regset.h: Fix indentation.
2345 * remote-fileio.c: Fix indentation.
2346 * remote.c: Fix indentation.
2347 * reverse.c: Fix indentation.
2348 * riscv-linux-tdep.c: Fix indentation.
2349 * riscv-ravenscar-thread.c: Fix indentation.
2350 * riscv-tdep.c: Fix indentation.
2351 * rl78-tdep.c: Fix indentation.
2352 * rs6000-aix-tdep.c: Fix indentation.
2353 * rs6000-lynx178-tdep.c: Fix indentation.
2354 * rs6000-nat.c: Fix indentation.
2355 * rs6000-tdep.c: Fix indentation.
2356 * rust-lang.c: Fix indentation.
2357 * rx-tdep.c: Fix indentation.
2358 * s12z-tdep.c: Fix indentation.
2359 * s390-linux-tdep.c: Fix indentation.
2360 * score-tdep.c: Fix indentation.
2361 * ser-base.c: Fix indentation.
2362 * ser-mingw.c: Fix indentation.
2363 * ser-uds.c: Fix indentation.
2364 * ser-unix.c: Fix indentation.
2365 * serial.c: Fix indentation.
2366 * sh-linux-tdep.c: Fix indentation.
2367 * sh-nbsd-tdep.c: Fix indentation.
2368 * sh-tdep.c: Fix indentation.
2369 * skip.c: Fix indentation.
2370 * sol-thread.c: Fix indentation.
2371 * solib-aix.c: Fix indentation.
2372 * solib-darwin.c: Fix indentation.
2373 * solib-frv.c: Fix indentation.
2374 * solib-svr4.c: Fix indentation.
2375 * solib.c: Fix indentation.
2376 * source.c: Fix indentation.
2377 * sparc-linux-tdep.c: Fix indentation.
2378 * sparc-nbsd-tdep.c: Fix indentation.
2379 * sparc-obsd-tdep.c: Fix indentation.
2380 * sparc-ravenscar-thread.c: Fix indentation.
2381 * sparc-tdep.c: Fix indentation.
2382 * sparc64-linux-tdep.c: Fix indentation.
2383 * sparc64-nbsd-tdep.c: Fix indentation.
2384 * sparc64-obsd-tdep.c: Fix indentation.
2385 * sparc64-tdep.c: Fix indentation.
2386 * stabsread.c: Fix indentation.
2387 * stack.c: Fix indentation.
2388 * stap-probe.c: Fix indentation.
2389 * stubs/ia64vms-stub.c: Fix indentation.
2390 * stubs/m32r-stub.c: Fix indentation.
2391 * stubs/m68k-stub.c: Fix indentation.
2392 * stubs/sh-stub.c: Fix indentation.
2393 * stubs/sparc-stub.c: Fix indentation.
2394 * symfile-mem.c: Fix indentation.
2395 * symfile.c: Fix indentation.
2396 * symfile.h: Fix indentation.
2397 * symmisc.c: Fix indentation.
2398 * symtab.c: Fix indentation.
2399 * symtab.h: Fix indentation.
2400 * target-float.c: Fix indentation.
2401 * target.c: Fix indentation.
2402 * target.h: Fix indentation.
2403 * tic6x-tdep.c: Fix indentation.
2404 * tilegx-linux-tdep.c: Fix indentation.
2405 * tilegx-tdep.c: Fix indentation.
2406 * top.c: Fix indentation.
2407 * tracefile-tfile.c: Fix indentation.
2408 * tracepoint.c: Fix indentation.
2409 * tui/tui-disasm.c: Fix indentation.
2410 * tui/tui-io.c: Fix indentation.
2411 * tui/tui-regs.c: Fix indentation.
2412 * tui/tui-stack.c: Fix indentation.
2413 * tui/tui-win.c: Fix indentation.
2414 * tui/tui-winsource.c: Fix indentation.
2415 * tui/tui.c: Fix indentation.
2416 * typeprint.c: Fix indentation.
2417 * ui-out.h: Fix indentation.
2418 * unittests/copy_bitwise-selftests.c: Fix indentation.
2419 * unittests/memory-map-selftests.c: Fix indentation.
2420 * utils.c: Fix indentation.
2421 * v850-tdep.c: Fix indentation.
2422 * valarith.c: Fix indentation.
2423 * valops.c: Fix indentation.
2424 * valprint.c: Fix indentation.
2425 * valprint.h: Fix indentation.
2426 * value.c: Fix indentation.
2427 * value.h: Fix indentation.
2428 * varobj.c: Fix indentation.
2429 * vax-tdep.c: Fix indentation.
2430 * windows-nat.c: Fix indentation.
2431 * windows-tdep.c: Fix indentation.
2432 * xcoffread.c: Fix indentation.
2433 * xml-syscall.c: Fix indentation.
2434 * xml-tdesc.c: Fix indentation.
2435 * xstormy16-tdep.c: Fix indentation.
2436 * xtensa-config.c: Fix indentation.
2437 * xtensa-linux-nat.c: Fix indentation.
2438 * xtensa-linux-tdep.c: Fix indentation.
2439 * xtensa-tdep.c: Fix indentation.
2440
e1f57067
AB
24412020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2442 Craig Blackmore <craig.blackmore@embecosm.com>
2443
2444 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2445 as an unsigned value.
2446
ae7754b2
TT
24472020-11-01 Tom Tromey <tom@tromey.com>
2448
2449 * dbxread.c (dbx_end_psymtab): Update.
2450 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2451 (build_type_psymtabs_reader): Update.
2452 * xcoffread.c (xcoff_end_psymtab): Update.
2453 * ctfread.c (scan_partial_symbols): Update.
2454 * psymtab.c (sort_pst_symbols): Remove.
2455 (partial_symtab::end): Rename from end_psymtab_common. Inline
2456 sort_pst_symbols.
2457 * psympriv.h (struct partial_symtab) <end>: New method.
2458 (end_psymtab_common): Don't declare.
2459
0684bb51
TT
24602020-11-01 Tom Tromey <tom@tromey.com>
2461
2462 * symmisc.c (count_psyms): New function.
2463 (print_objfile_statistics): Use it.
2464 * psymtab.c (append_psymbol_to_list): Remove.
2465 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2466 * objfiles.h (struct objstats) <n_psyms>: Remove.
2467
089002bb
TT
24682020-11-01 Tom Tromey <tom@tromey.com>
2469
2470 * dbxread.c (dbx_end_psymtab): Update.
2471 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2472 (build_type_psymtabs_reader): Update.
2473 * xcoffread.c (xcoff_end_psymtab): Update.
2474 * ctfread.c (scan_partial_symbols): Update.
2475 * psympriv.h (end_psymtab_common): Update.
2476 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2477 (sort_pst_symbols): Likewise.
2478
525454d6
TT
24792020-11-01 Tom Tromey <tom@tromey.com>
2480
2481 * dbxread.c (dbx_symfile_read): Update.
2482 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2483 * xcoffread.c (xcoff_initial_scan): Update.
2484 * psympriv.h (init_psymbol_list): Don't declare.
2485 * psymtab.c (init_psymbol_list): Remove.
2486
60bd1d53
JB
24872020-11-01 Joel Brobecker <brobecker@adacore.com>
2488
2489 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2490 gnat_encoded_fixed_type_info. Update all callers.
2491
db99d0d0
JB
24922020-11-01 Joel Brobecker <brobecker@adacore.com>
2493
2494 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2495 line too long.
2496
75f24e86
JB
24972020-11-01 Joel Brobecker <brobecker@adacore.com>
2498
2499 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2500 cast_from_fixed. Update all callers.
2501 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2502 Update all callers.
2503 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2504 Update all callers.
2505 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2506 ada_scaling_factor.
2507 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2508 to print_gnat_encoded_fixed_point_type.
2509 * ada-valprint.c: Likewise.
2510
4f0469cd
AB
25112020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2514 (debug_prefixed_printf): Add check of debug_displaced flag.
2515 * linux-nat.c (linux_nat_debug_printf): Add check of
2516 debug_linux_nat flag.
2517
17417fb0
SM
25182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2519
2520 * infrun.c (infrun_debug_printf_1): Remove.
2521 (displaced_debug_printf_1): Remove.
2522 (stop_all_threads): Use debug_prefixed_printf.
2523 * infrun.h (infrun_debug_printf_1): Remove.
2524 (infrun_debug_printf): Use debug_prefixed_printf.
2525 (displaced_debug_printf_1): Remove.
2526 (displaced_debug_printf): Use debug_prefixed_printf.
2527 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2528 (linux_nat_debug_printf): Use debug_prefixed_printf.
2529
ad6dba1c
SM
25302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2531
2532 * configure: Re-generate.
2533 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2534 AC_LANG_PROGRAM.
2535
b6fb30ed
SM
25362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2537
2538 * configure: Re-generate.
2539
5164c117
SM
25402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * configure: Re-generate.
2543
864ca435
SM
25442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * configure: Re-generate.
2547
b9442ec1
SM
25482020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2549
2550 * configure: Re-generate.
2551
294f2697
SM
25522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * acinclude.m4: Modernize.
2555 * configure: Re-generate.
2556
5593a99a
SM
25572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * configure.ac: Modernize.
2560 * configure: Re-generate.
2561
e41fda1d
SM
25622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2565 * configure: Re-generate.
2566 * configure.ac: Remove AM_PROG_CC_STDC.
2567
91e1a0ed
SM
25682020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2569
2570 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2571 AC_CANONICAL_SYSTEM.
2572 * configure: Re-generate.
2573
136821d9
SM
25742020-10-30 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * infrun.h (displaced_debug_printf): New macro. Replace
2577 displaced debug prints throughout to use it.
2578 (displaced_debug_printf_1): New declaration.
2579 (displaced_step_dump_bytes): Return string, remove ui_file
2580 parameter, update all callers.
2581 * infrun.c (displaced_debug_printf_1): New function.
2582 (displaced_step_dump_bytes): Return string, remove ui_file
2583 parameter
2584
aa2045e7
SM
25852020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2586
2587 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2588
b1ec2735
TT
25892020-10-30 Tom Tromey <tromey@adacore.com>
2590
2591 * Makefile.in (stamp-init): Depend on config.status.
2592
b78b3a29
TBA
25932020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2594
2595 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2596
d70bdd3c
PA
25972020-10-30 Pedro Alves <pedro@palves.net>
2598
2599 * thread.c (lookup_selected_frame): Move ...
2600 * frame.c (lookup_selected_frame): ... here.
2601
79952e69
PA
26022020-10-30 Pedro Alves <pedro@palves.net>
2603
2604 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2605 * frame.c
2606 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2607 Use save_selected_frame. Save language as well.
2608 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2609 Use restore_selected_frame, and restore language as well.
2610 (selected_frame_id, selected_frame_level): New.
2611 (selected_frame): Update comments.
2612 (save_selected_frame, restore_selected_frame): New.
2613 (get_selected_frame): Use lookup_selected_frame.
2614 (get_selected_frame_if_set): Delete.
2615 (select_frame): Record selected_frame_level and selected_frame_id.
2616 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2617 fields.
2618 (get_selected_frame): Make 'message' parameter optional.
2619 (get_selected_frame_if_set): Delete declaration.
2620 (select_frame): Update comments.
2621 (save_selected_frame, restore_selected_frame)
2622 (lookup_selected_frame): Declare.
2623 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2624 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2625 New field.
2626 (save_infcall_control_state): Use save_selected_frame.
2627 (restore_selected_frame): Delete.
2628 (restore_infcall_control_state): Use restore_selected_frame.
2629 * stack.c (select_frame_command_core, frame_command_core): Use
2630 get_selected_frame.
2631 * thread.c (restore_selected_frame): Rename to ...
2632 (lookup_selected_frame): ... this and make extern. Select the
2633 current frame if the frame level is -1.
2634 (scoped_restore_current_thread::restore): Also restore the
2635 language.
2636 (scoped_restore_current_thread::~scoped_restore_current_thread):
2637 Don't try/catch.
2638 (scoped_restore_current_thread::scoped_restore_current_thread):
2639 Save the language as well. Use save_selected_frame.
2640
58103c33
SM
26412020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2642
2643 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2644 documentation.
2645 * gdbarch.h: Re-generate.
2646
40a53766
SM
26472020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2648
2649 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2650 parameter.
2651 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2652 Likewise.
2653 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2654 Likewise.
2655 * arch-utils.c (default_displaced_step_hw_singlestep):
2656 Likewise.
2657 * arch-utils.h (default_displaced_step_hw_singlestep):
2658 Likewise.
2659 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2660 Likewise.
2661 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2662 Likewise.
2663 * gdbarch.c: Re-generate.
2664 * gdbarch.h: Re-generate.
2665 * infrun.c (resume_1): Adjust.
2666
8407f91b
TT
26672020-10-29 Tom Tromey <tom@tromey.com>
2668
2669 * progspace.c (program_space::~program_space): Don't call
2670 exec_close.
2671
5008b3b2
TT
26722020-10-29 Tom Tromey <tom@tromey.com>
2673
2674 * exec.c (exec_target::close): Don't change current program
2675 space.
2676
d9eebde0
TT
26772020-10-29 Tom Tromey <tom@tromey.com>
2678
2679 * symfile.c (add_symbol_file_command): Update.
2680 * exec.c (program_space::add_target_sections): Rename.
2681 * symfile-mem.c (symbol_file_add_from_memory): Update.
2682 * progspace.h (struct program_space) <add_target_sections>:
2683 Declare new overload.
2684 * exec.h (add_target_sections_of_objfile): Don't declare.
2685
3769e227
TT
26862020-10-29 Tom Tromey <tom@tromey.com>
2687
2688 * solib.c (solib_map_sections): Update.
2689 * exec.c (program_space::add_target_sections): Now a method.
2690 (exec_file_attach): Update.
2691 * exec.h (add_target_sections): Don't declare.
2692 * progspace.h (struct program_space) <add_target_sections>:
2693 Declare.
2694
2a3f84af
TT
26952020-10-29 Tom Tromey <tom@tromey.com>
2696
2697 * progspace.h (struct program_space) <remove_target_sections>:
2698 Declare.
2699 * exec.c (program_space::remove_target_sections): Now a method.
2700 * exec.h (remove_target_sections): Don't declare.
2701
004eecfd
TT
27022020-10-29 Tom Tromey <tom@tromey.com>
2703
2704 * inferior.c (delete_inferior): Update.
2705 * progspace.c (program_space::empty): Rename from
2706 program_space_empty_p. Return bool.
2707 * progspace.h (struct program_space) <empty>: New method.
2708 (program_space_empty_p): Don't declare.
2709
e39fb971
TT
27102020-10-29 Tom Tromey <tom@tromey.com>
2711
2712 * progspace.c (program_space::~program_space): Don't call
2713 clear_program_space_solib_cache.
2714 (program_space::clear_solib_cache): Rename from
2715 clear_solib_cache.
2716 * solib.c (handle_solib_event): Update.
2717 * progspace.h (struct program_space) <clear_solib_cache>: New
2718 method.
2719 (clear_program_space_solib_cache): Don't declare.
2720
a42d7dd8
TT
27212020-10-29 Tom Tromey <tom@tromey.com>
2722
2723 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2724 * target.c (info_target_command): Update.
2725 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2726 (symbol_file_clear, reread_symbols): Update.
2727 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2728 * stabsread.c (scan_file_globals): Update.
2729 * solib.c (update_solib_list): Update.
2730 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2731 (svr4_fetch_objfile_link_map, enable_break)
2732 (svr4_relocate_main_executable)
2733 (svr4_iterate_over_objfiles_in_search_order): Update.
2734 * solib-frv.c (lm_base, enable_break)
2735 (frv_relocate_main_executable): Update.
2736 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2737 (frv_fetch_objfile_link_map): Update.
2738 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2739 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2740 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2741 * remote.c (remote_target::get_offsets): Update.
2742 (remote_target::start_remote)
2743 (extended_remote_target::post_attach): Update.
2744 * objfiles.c (entry_point_address_query): Update.
2745 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2746 * minsyms.c (get_symbol_leading_char): Update.
2747 * frame.c (inside_main_func): Update.
2748 * progspace.h (symfile_objfile): Remove macro.
2749
19f6550e
TT
27502020-10-29 Tom Tromey <tom@tromey.com>
2751
2752 * exec.c (exec_file_attach): Update.
2753 * progspace.c (program_space::exec_close): Update.
2754 * progspace.h (struct program_space) <ebfd>: Now a
2755 gdb_bfd_ref_ptr.
2756 <set_exec_bfd>: Change argument type.
2757 <exec_bfd>: Update.
2758
7e10abd1
TT
27592020-10-29 Tom Tromey <tom@tromey.com>
2760
2761 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2762 * symfile.c (reread_symbols): Update.
2763 * symfile-mem.c (add_symbol_file_from_memory_command)
2764 (add_vsyscall_page): Update.
2765 * source-cache.c (source_cache::get_plain_source_lines): Update.
2766 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2767 (svr4_current_sos_direct, svr4_exec_displacement)
2768 (svr4_relocate_main_executable): Update.
2769 (svr4_iterate_over_objfiles_in_search_order): Update.
2770 * solib-frv.c (enable_break2, enable_break): Update.
2771 * solib-dsbt.c (lm_base, enable_break): Update.
2772 * solib-darwin.c (find_program_interpreter)
2773 (darwin_solib_create_inferior_hook): Update.
2774 * sol-thread.c (rw_common, ps_pdmodel): Update.
2775 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2776 * remote.c (compare_sections_command)
2777 (remote_target::trace_set_readonly_regions): Update.
2778 * remote-sim.c (get_sim_inferior_data)
2779 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2780 (gdbsim_target_open, gdbsim_target::files_info): Update.
2781 * exec.h (exec_bfd): Remove macro.
2782 * progspace.c (initialize_progspace): Update.
2783 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2784 Update.
2785 * nto-procfs.c (nto_procfs_target::post_attach)
2786 (nto_procfs_target::create_inferior): Update.
2787 * maint.c (maintenance_info_sections): Update.
2788 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2789 Update.
2790 * infcmd.c (post_create_inferior): Update.
2791 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2792 (objfile_find_memory_regions): Update.
2793 * exec.c (validate_exec_file, exec_file_attach)
2794 (exec_read_partial_read_only, print_section_info): Update.
2795 * corelow.c (core_target_open): Update.
2796 * corefile.c (reopen_exec_file, validate_files): Update.
2797 * arm-tdep.c (gdb_print_insn_arm): Update.
2798 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2799 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2800 methods.
2801
b55221ab
TT
28022020-10-29 Tom Tromey <tom@tromey.com>
2803
2804 * progspace.h (current_target_sections): Remove macro.
2805 * solib-svr4.c (scan_dyntag): Update.
2806 * solib-dsbt.c (scan_dyntag): Update.
2807 * exec.c (exec_target::close): Update.
2808 (add_target_sections, add_target_sections_of_objfile)
2809 (remove_target_sections, exec_target::get_section_table)
2810 (exec_target::files_info, set_section_command)
2811 (exec_set_section_address, exec_target::has_memory)
2812 (exec_target::has_memory): Update.
2813
5a36e715
TT
28142020-10-29 Tom Tromey <tom@tromey.com>
2815
2816 * source-cache.c (source_cache::get_plain_source_lines): Use
2817 current_program_space.
2818 * corefile.c (reopen_exec_file): Use current_program_space.
2819 * exec.c (exec_file_attach): Use current_program_space.
2820 * exec.h (exec_bfd_mtime): Remove.
2821
784c8592
TT
28222020-10-29 Tom Tromey <tom@tromey.com>
2823
2824 * gcore.c (default_gcore_mach): Remove.
2825 (create_gcore_bfd): Update.
2826
8a4f1402
TT
28272020-10-29 Tom Tromey <tom@tromey.com>
2828
2829 * progspace.c (program_space::exec_close): New method, from
2830 exec_close in exec.c.
2831 * exec.c (exec_close): Move to progspace.c.
2832 (exec_target::close, exec_file_attach): Update.
2833 * progspace.h (struct program_space) <exec_close>: Declare
2834 method.
2835
c20cb686
TT
28362020-10-29 Tom Tromey <tom@tromey.com>
2837
2838 * progspace.h (struct program_space) <exec_filename>: Rename from
2839 pspace_exec_filename. Now a unique_xmalloc_ptr.
2840 * inferior.c (print_selected_inferior): Update.
2841 (print_inferior): Update.
2842 * mi/mi-main.c (print_one_inferior): Update.
2843 * exec.h (exec_filename): Remove macro.
2844 * corefile.c (get_exec_file): Update.
2845 * exec.c (exec_close): Update.
2846 (exec_file_attach): Update.
2847 * progspace.c (clone_program_space): Update.
2848 (print_program_space): Update.
2849
6be2a9ab
TT
28502020-10-29 Tom Tromey <tom@tromey.com>
2851
2852 * target-section.h (struct target_section): Add constructor.
2853 * exec.c (build_section_table, add_target_sections_of_objfile):
2854 Update.
2855 * corelow.c (core_target::build_file_mappings): Update.
2856
cfaa8f76
TBA
28572020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2858
2859 PR gdb/19318
2860 * inferior.c (detach_inferior_command): Restore the current thread.
2861 (kill_inferior_command): Ditto.
2862
1b00ef06
TV
28632020-10-28 Tom de Vries <tdevries@suse.de>
2864
2865 PR symtab/26772
2866 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2867 map, check it in the "best match" loop.
2868
7f40ce1a
SM
28692020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * m32c-tdep.c: Remove unused includes.
2872
5eb9e3f5
SM
28732020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2874
2875 * xtensa-tdep.c: Remove includes.
2876
b1d4d8d1
TBA
28772020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2878
2879 * breakpoint.c (struct condition_command_opts): New struct.
2880 (condition_command_option_defs): New static global.
2881 (make_condition_command_options_def_group): New function.
2882 (condition_completer): Update to consider the '-force' flag.
2883 (condition_command): Use gdb::option for the '-force' flag.
2884
bd24c5d6
TV
28852020-10-27 Tom de Vries <tdevries@suse.de>
2886
2887 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2888 symbols in section check.
2889
61eb46a4
TV
28902020-10-27 Tom de Vries <tdevries@suse.de>
2891
2892 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2893
733d554a
TBA
28942020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2895
2896 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2897 * breakpoint.c: Update the help text of the 'condition' and 'break'
2898 commands.
2899 (set_breakpoint_condition): Take a new bool parameter
2900 to control whether condition definition should be forced even when
2901 the condition expression is invalid in all of the current locations.
2902 (condition_command): Update the call to 'set_breakpoint_condition'.
2903 (find_condition_and_thread): Take the "-force-condition" flag into
2904 account.
2905 * linespec.c (linespec_keywords): Add "-force-condition" as an
2906 element.
2907 (FORCE_KEYWORD_INDEX): New #define.
2908 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2909 as a keyword.
2910 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2911 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2912 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2913 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2914
b5fa468f
TBA
29152020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2916
2917 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2918 * breakpoint.c (set_breakpoint_location_condition): New function.
2919 (set_breakpoint_condition): Disable a breakpoint location if parsing
2920 the condition string gives an error.
2921 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2922 (build_target_condition_list): Ditto.
2923 (build_target_command_list): Ditto.
2924 (build_bpstat_chain): Ditto.
2925 (print_one_breakpoint_location): Ditto.
2926 (print_one_breakpoint): Ditto.
2927 (breakpoint_1): Ditto.
2928 (bp_location::bp_location): Ditto.
2929 (locations_are_equal): Ditto.
2930 (update_breakpoint_locations): Ditto.
2931 (enable_disable_bp_num_loc): Ditto.
2932 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2933 (find_condition_and_thread_for_sals): New static function.
2934 (create_breakpoint): Call find_condition_and_thread_for_sals.
2935 (location_to_sals): Call find_condition_and_thread_for_sals instead
2936 of find_condition_and_thread.
2937
1c47ec3e
TV
29382020-10-26 Tom de Vries <tdevries@suse.de>
2939
2940 * dwarf2/read.c (process_full_comp_unit): Call
2941 dwarf2_find_base_address.
2942
6390859c
TT
29432020-10-26 Tom Tromey <tromey@adacore.com>
2944
2945 * gdbtypes.c (create_range_type): Revert previous patch. Add
2946 comment.
2947
d744f0f9
PA
29482020-10-26 Pedro Alves <pedro@palves.net>
2949
2950 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
2951 (my_waitpid): Use gdb::handle_eintr.
2952
006811bc
SM
29532020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
2954
2955 * acinclude.m4: Update ptrace.m4 path.
2956 * ptrace.m4: Moved to gdbsupport.
2957
c75e31a1
SM
29582020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2959
2960 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
2961 instead of target_gdbarch.
2962
32495661
SM
29632020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
2964
2965 * jit.c (jit_reader_load_command): Pass current inferior.
2966 (jit_inferior_init): Change parameter type to inferior, use it.
2967 (jit_inferior_created): Remove.
2968 (jit_inferior_created_hook): Pass inferior parameter down.
2969 (_initialize_jit): Use jit_inferior_created_hook instead of
2970 jit_inferior_created.
2971 * jit.h (jit_inferior_created_hook): Add inferior parameter.
2972 * infrun.c (follow_exec): Pass inferior to
2973 jit_inferior_created_hook.
2974
3f66685e
SM
29752020-10-24 Simon Marchi <simon.marchi@efficios.com>
2976
2977 * linux-thread-db.c (check_pid_namespace_match): Add inferior
2978 parameter and use it.
2979 (thread_db_inferior_created): Pass inferior argument.
2980
a0ff652f
SM
29812020-10-24 Simon Marchi <simon.marchi@efficios.com>
2982
2983 * aix-thread.c (aix_thread_inferior_created): Add inferior
2984 parameter.
2985 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
2986 * dummy-frame.c (cleanup_dummy_frames): Likewise.
2987 * jit.c (jit_inferior_created): Likewise.
2988 * linux-thread-db.c (thread_db_inferior_created): Likewise.
2989 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
2990 * observable.h (inferior_created): Likewise.
2991 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
2992 * symfile-mem.c (add_vsyscall_page): Likewise.
2993 * infcmd.c (post_create_inferior): Pass inferior argument.
2994
3c67532c
JB
29952020-10-24 Joel Brobecker <brobecker@adacore.com>
2996
2997 GDB 10.1 released.
2998
8747316e
JB
29992020-10-23 Joel Brobecker <brobecker@adacore.com>
3000
3001 * ada-typeprint.c (ada_print_type): Remove superfluous second call
3002 to ada_check_typedef.
3003
1a0ea399
AB
30042020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * f-exp.y (f_parse): Rename to...
3007 (f_language::parser): ...this.
3008 * f-lang.c (f_get_encoding): Rename to...
3009 (f_language::get_encoding): ...this.
3010 (f_op_print_tab): Rename to...
3011 (f_language::op_print_tab): ...this.
3012 (exp_descriptor_f): Rename to...
3013 (f_language::exp_descriptor_tab): ...this.
3014 (class f_language): Moved to f-lang.h.
3015 (f_language::language_arch_info): New function, moved out of class
3016 declaration.
3017 (f_language::search_name_hash): Likewise.
3018 (f_language::lookup_symbol_nonlocal): Likewise.
3019 (f_language::get_symbol_name_matcher_inner): Likewise.
3020 * f-lang.h: Add 'valprint.h' include.
3021 (class f_language): Moved here from f-lang.c.
3022 * f-typeprint.c (f_type_print_args): Delete commented out
3023 declaration.
3024 (f_print_typedef): Rename to...
3025 (f_language::print_typedef): ...this.
3026 (f_print_type): Rename to...
3027 (f_language::print_type): ...this.
3028 (f_type_print_varspec_prefix): Delete declaration and rename to...
3029 (f_language::f_type_print_varspec_prefix): ...this.
3030 (f_type_print_varspec_suffix): Delete declaration and rename to...
3031 (f_language::f_type_print_varspec_suffix): ...this.
3032 (f_type_print_base): Delete declaration and rename to...
3033 (f_language::f_type_print_base): ...this.
3034 * f-valprint.c (f_value_print_inner): Rename to...
3035 (f_language::value_print_inner): ...this.
3036 * parse.c: Delete 'f-lang.h' include.
3037
88cefd9b
AB
30382020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3039
3040 * language.h (language_defn::print_type): Add variable names in
3041 declaration, and update header comment.
3042
5399db93
AB
30432020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3044
3045 * ada-lang.c (ada_language::demangle): Rename to...
3046 (ada_language::demangle_symbol): ...this.
3047 * c-lang.c (cplus_language::demangle): Rename to...
3048 (cplus_language::demangle_symbol): ...this.
3049 * d-lang.c (d_language::demangle): Rename to...
3050 (d_language::demangle_symbol): ...this.
3051 * f-lang.c (f_language::demangle): Rename to...
3052 (f_language::demangle_symbol): ...this.
3053 * go-lang.c (go_language::demangle): Rename to...
3054 (go_language::demangle_symbol): ...this.
3055 * language.c (language_demangle): Update call to demangle_symbol.
3056 (auto_or_unknown_language::demangle): Rename to...
3057 (auto_or_unknown_language::demangle_symbol): ...this.
3058 * language.h (language_defn::demangle): Rename to...
3059 (language_defn::demangle_symbol): ...this.
3060 * objc-lang.c (objc_language::demangle): Rename to...
3061 (objc_language::demangle_symbol): ...this.
3062 * rust-lang.c (rust_language::demangle): Rename to...
3063 (rust_language::demangle_symbol): ...this.
3064
4b2f86ef
AB
30652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3066
3067 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
3068 (iterate_over_file_blocks): Replace use of macro with the macros
3069 definition.
3070
e74b39de
AB
30712020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3072
3073 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
3074 * valprint.c (maybe_print_array_index): Replace use of macro with
3075 the macros definition.
3076
00c696a6
AB
30772020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * ada-lang.c (ada_language::print_array_index): Call value_print
3080 directly.
3081 * language.c (language_defn::print_array_index): Likewise.
3082 * language.h (LA_VALUE_PRINT): Delete.
3083 * valprint.c (value_print): Call value_print on the
3084 current_language directly.
3085
d3b67c56
AB
30862020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3087
3088 * language.h (LA_PRINT_TYPEDEF): Delete.
3089 * typeprint.c (typedef_print): Call print_typedef directly on the
3090 current_language object.
3091
790e2a12
AB
30922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3093
3094 * m2-exp.y (m2_parse): Rename to...
3095 (m2_language::parser): ...this. Update function signature.
3096 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
3097 (m2_op_print): Rename to...
3098 (m2_language::op_print_tab): ...this, and make const.
3099 (exp_descriptor_modula2): Rename to...
3100 (m2_language::exp_descriptor_modula2): ...this.
3101 (class m2_language): Move to m2-lang.h.
3102 (m2_language::language_arch_info): New function, moved out of
3103 class declaration.
3104 (m2_language::printchar): New function, body from m2_printchar.
3105 (m2_language::printstr): New function, moved out of class
3106 declaration.
3107 (m2_language::emitchar): Likewise.
3108 * m2-lang.h (m2_parse): Delete declaration.
3109 (m2_print_typedef): Delete declaration.
3110 (m2_value_print_inner): Delete declaration.
3111 (class m2_language): Class declaration moved from m2-lang.c,
3112 larger functions are left in m2-lang.c.
3113 * m2-typeprint.c (m2_print_typedef): Rename to...
3114 (m2_language::print_typedef): ...this, and update function
3115 signature.
3116 * m2-valprint.c (m2_value_print_inner): Rename to...
3117 (m2_language::value_print_inner): ...this, replace use of
3118 LA_PRINT_STRING with a direct call to printstr member function,
3119 and update recursive call.
3120
b01175fc
AB
31212020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3122
3123 * language.c (default_is_string_type_p): Delete, implementation
3124 moved into auto_or_unknown_language::is_string_type_p.
3125 (unk_op_print_tab): Moved into
3126 auto_or_unknown_language::opcode_print_table.
3127 (unknown_language_arch_info): Delete, implementation moved into
3128 auto_or_unknown_language::language_arch_info.
3129 (class auto_or_unknown_language): New class, member functions
3130 copied from unknown_language class, with some updates.
3131 (class unknown_language): Most member functions moved into
3132 auto_or_unknown_language class. Inherit from
3133 auto_or_unknown_language class.
3134 (class auto_language): Inherit from auto_or_unknown_language.
3135 Delete most member functions.
3136
1a97fe8c
HD
31372020-10-22 Hannes Domani <ssbssa@yahoo.de>
3138
3139 * stabsread.c (read_member_functions): Remove gdb_assert.
3140
6b9d0dfd
HD
31412020-10-22 Hannes Domani <ssbssa@yahoo.de>
3142
3143 * gdbtypes.c (init_complex_type): Check target type name.
3144
4b4bb603
SM
31452020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3146
3147 * target-debug.h (target_debug_print_struct_target_ops_p):
3148 Remove.
3149 (target_debug_print_async_callback_ftype_p): Remove.
3150 (target_debug_print_struct_trace_state_variable_p): Remove.
3151 (target_debug_print_struct_traceframe_info_p): Remove.
3152 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3153 (target_debug_print_enum_btrace_format): Remove.
3154 (target_debug_print_enum_info_proc_what): Remove.
3155 (target_debug_print_thread_info_pp): Remove.
3156
24f5300a
SM
31572020-10-22 Simon Marchi <simon.marchi@efficios.com>
3158
3159 * target.h (struct target_ops) <make_corefile_notes>:
3160 Change return type to unique pointer.
3161 * target.c (dummy_make_corefile_notes): Likewise.
3162 * exec.c (struct exec_target) <make_corefile_notes>:
3163 Likewise.
3164 (exec_target::make_corefile_notes): Likewise.
3165 * procfs.c (class procfs_target) <make_corefile_notes>:
3166 Likewise.
3167 (procfs_do_thread_registers): Adjust to unique pointer.
3168 (struct procfs_corefile_thread_data): Add constructor.
3169 <note_data>: Change type to unique pointer.
3170 (procfs_corefile_thread_callback): Adjust to unique pointer.
3171 (procfs_target::make_corefile_notes): Change return type to
3172 unique pointer.
3173 * target-delegates.c: Re-generate.
3174 * gcore.c (write_gcore_file_1): Adjust.
3175 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3176 New.
3177
5fb4027f
TV
31782020-10-22 Tom de Vries <tdevries@suse.de>
3179
3180 * block.c (find_block_in_blockvector): Make sure the returned block
3181 contains pc.
3182
4a636814
SM
31832020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3184
3185 PR gdb/26693
3186 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3187 parameter.
3188 (load_cu): Pass existing CU.
3189 (process_imported_unit_die): Likewise.
3190 (follow_die_offset): Likewise.
3191
1bd57575
LM
31922020-10-22 Luis Machado <luis.machado@linaro.org>
3193
3194 * corelow.c (core_target::xfer_partial): Also check for an empty
3195 m_core_unavailable_mappings vector.
3196
6b4c676c
AB
31972020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3200 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3201 * f-exp.y (arglist): Allow for a series of subranges.
3202 (subrange): Add cases for subranges with strides.
3203 * f-lang.c (value_f90_subarray): Catch use of array strides and
3204 throw an error.
3205 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3206
f2d8e4c5
AB
32072020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3208
3209 * expprint.c (print_subexp_standard): Change enum range_type to
3210 range_flag and rename variables to match.
3211 (dump_subexp_body_standard): Likewise.
3212 * expression.h (enum range_type): Rename to...
3213 (enum range_flag): ...this.
3214 (range_types): Rename to...
3215 (range_flags): ...this.
3216 * f-lang.c (value_f90_subarray): Change enum range_type to
3217 range_flag and rename variables to match.
3218 * parse.c (operator_length_standard): Likewise.
3219 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3220 range_type to range_flag.
3221 * rust-lang.c (rust_evaluate_funcall): Likewise.
3222 (rust_range): Likewise.
3223 (rust_compute_range): Likewise.
3224 (rust_subscript): Likewise.
3225
2f1b18db
AB
32262020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3227
3228 * expprint.c (print_subexp_standard): Update to reflect changes to
3229 enum range_type.
3230 (dump_subexp_body_standard): Likewise.
3231 * expression.h (enum range_type): Convert to a bit field enum, and
3232 make the enum unsigned.
3233 * f-exp.y (subrange): Update to reflect changes to enum
3234 range_type.
3235 * f-lang.c (value_f90_subarray): Likewise.
3236 * parse.c (operator_length_standard): Likewise.
3237 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3238 * rust-lang.c (rust_range): Likewise.
3239 (rust_compute_range): Likewise.
3240 (rust_subscript): Likewise.
3241
a46d1843
SM
32422020-10-21 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3245 (displaced_step_in_progress): Fix comment.
3246
c21f37a8
SM
32472020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3250 * gdbarch.c: Re-generate.
3251 * gdbarch.h: Re-generate.
3252 * gcore.c (write_gcore_file_1): Adjust.
3253 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3254 constructor.
3255 <note_data>: Change type to unique pointer.
3256 <abort_iteration>: Change type to bool.
3257 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3258 (fbsd_collect_thread_registers): Return void, adjust.
3259 (struct fbsd_corefile_thread_data): Add construtor.
3260 <note_data>: Change type to unique pointer.
3261 (fbsd_corefile_thread): Adjust.
3262 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3263 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3264 to unique pointer, adjust.
3265 (struct linux_collect_regset_section_cb_data): Add constructor.
3266 <note_data>: Change type to unique pointer.
3267 <abort_iteration>: Change type to bool.
3268 (linux_collect_thread_registers): Return void, adjust.
3269 (struct linux_corefile_thread_data): Add constructor.
3270 <note_data>: Change type to unique pointer.
3271 (linux_corefile_thread): Adjust.
3272 (linux_make_corefile_notes): Return unique pointer, adjust.
3273
07fbbd01
SM
32742020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3275
3276 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3277 * gdbarch.c: Re-generate.
3278 * gdbarch.h: Re-generate.
3279 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3280 bool.
3281 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3282 Likewise.
3283 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3284 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3285 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3286 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3287
39535193
SM
32882020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3289
3290 * gdbarch.sh: Make generated predicates return bool.
3291 * gdbarch.c: Re-generate.
3292 * gdbarch.h: Re-generate.
3293
ad523d01
TT
32942020-10-20 Tom Tromey <tom@tromey.com>
3295
3296 * varobj-iter.h (struct varobj_item): Remove typedef.
3297
c4464ade
SM
32982020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3299
3300 * infrun.c (currently_stepping): Change int to bool
3301 (maybe_software_singlestep): Likewise.
3302 (show_stop_on_solib_events): Likewise.
3303 (stepping_past_nonsteppable_watchpoint): Likewise.
3304 (displaced_step_in_progress_any_inferior): Likewise.
3305 (displaced_step_in_progress_thread): Likewise.
3306 (keep_going_stepped_thread): Likewise.
3307 (thread_still_needs_step_over): Likewise.
3308 (start_step_over): Likewise.
3309 (do_target_resume): Likewise.
3310 (resume_1): Likewise.
3311 (clear_proceed_status): Likewise.
3312 (thread_still_needs_step_over_bp): Likewise.
3313 (proceed): Likewise.
3314 (switch_back_to_stepped_thread): Likewise.
3315 (adjust_pc_after_break): Likewise.
3316 (stepped_in_from): Likewise.
3317 (handle_stop_requested): Likewise.
3318 (handle_syscall_event): Likewise.
3319 (handle_no_resumed): Likewise.
3320 (handle_inferior_event): Likewise.
3321 (finish_step_over): Likewise.
3322 (handle_signal_stop): Likewise.
3323 (process_event_stop_test): Likewise.
3324
2eb20436
SM
33252020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3326
3327 * infrun.c (get_displaced_stepping_state): Fix comment.
3328
e0c45ded
AS
33292020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3330
3331 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3332
22cc388e
TT
33332020-10-19 Tom Tromey <tromey@adacore.com>
3334
3335 PR tui/26719
3336 * tui/tui-winsource.h (struct tui_source_window_base)
3337 <refresh_window>: Rename from refresh_pad.
3338 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3339 Rename from refresh_pad.
3340 (tui_source_window_base::show_source_content)
3341 (tui_source_window_base::do_scroll_horizontal): Update.
3342
3c6eb4d4
TBA
33432020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3344
3345 * thread.c (_initialize_thread): Fine-tune the help text of
3346 'info threads'.
3347
26703721
TBA
33482020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3349
3350 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3351
61c26be8
MS
33522020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3353
3354 * breakpoint.c (handle_jit_event): Add an argument, change how
3355 `jit_event_handler` is called.
3356
932539d7
TT
33572020-10-17 Tom Tromey <tom@tromey.com>
3358
3359 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3360 (scan_xcoff_symtab): Update.
3361 * psymtab.h (class psymtab_storage) <global_psymbols,
3362 static_psymbols, current_global_psymbols,
3363 current_static_psymbols>: Remove.
3364 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3365 (match_partial_symbol, lookup_partial_symbol): Update.
3366 (print_partial_symbols): Change parameters.
3367 (dump_psymtab, recursively_search_psymtabs)
3368 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3369 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3370 (concat): Remove.
3371 (end_psymtab_common): Simplify.
3372 (append_psymbol_to_list): Change parameters.
3373 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3374 (init_psymbol_list): Simplify.
3375 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3376 * psympriv.h (struct partial_symtab) <empty>: New method.
3377 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3378 Remove.
3379 <global_psymbols, static_psymbols>: New members.
3380 <add_psymbol>: New methods.
3381 (add_psymbol_to_list): Don't declare.
3382 (psymbol_placement): Move earlier.
3383 * mdebugread.c (parse_partial_symbols): Update.
3384 (handle_psymbol_enumerators): Change parameters.
3385 (mdebug_expand_psymtab): Update.
3386 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3387 (add_partial_symbol): Update.
3388 * dwarf2/index-write.c (write_psymbols): Change parameters.
3389 (write_one_signatured_type): Update.
3390 (recursively_count_psymbols): Update.
3391 (recursively_write_psymbols): Update.
3392 (class debug_names) <recursively_write_psymbols>: Update.
3393 <write_psymbols>: Change parameters.
3394 <write_one_signatured_type>: Update.
3395 * dbxread.c (read_dbx_symtab): Update.
3396 (dbx_end_psymtab): Use partial_symtab::empty.
3397 * ctfread.c (struct ctf_context) <pst>: New member.
3398 (create_partial_symtab): Set it.
3399 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3400 (scan_partial_symbols): Use the psymtab's context. Update.
3401
cfabbd35
TT
34022020-10-17 Tom Tromey <tom@tromey.com>
3403
3404 * valprint.c (generic_value_print): Remove comment.
3405 * m2-valprint.c (m2_value_print_inner): Remove comment.
3406 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3407 type.
3408
520596f2
TV
34092020-10-17 Tom de Vries <tdevries@suse.de>
3410
3411 PR symtab/26317
3412 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3413 symbol main.
3414
76547ab3
TV
34152020-10-14 Tom de Vries <tdevries@suse.de>
3416
3417 PR gdb/26733
3418 * solib.c (solib_contains_address_p): Handle
3419 'solib->sections == nullptr'.
3420
d3a07122
SM
34212020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3422
3423 PR gdb/26642
3424 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3425 target can't do async.
3426 * target.c (target_wait): Assert that we don't pass
3427 TARGET_WNOHANG to a target that can't async.
3428
1b71cfcf
KR
34292020-10-13 Kamil Rytarowski <n54@gmx.com>
3430
3431 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3432 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3433 * alpha-bsd-nat.c: Adjust include.
3434 * alpha-bsd-tdep.h: Adjust comment.
3435 * alpha-nbsd-tdep.c: Rename to ...
3436 * alpha-netbsd-tdep.c: ... this, adjust include.
3437 * amd64-nbsd-nat.c: Rename to ...
3438 * amd64-netbsd-nat.c: ... this, adjust include.
3439 * amd64-nbsd-tdep.c: Rename to ...
3440 * amd64-netbsd-tdep.c: ... this, adjust include.
3441 * amd64-tdep.h: Adjust include.
3442 * arm-nbsd-nat.c: Rename to ...
3443 * arm-netbsd-nat.c: ... this, adjust include.
3444 * arm-nbsd-tdep.c: Rename to ...
3445 * arm-netbsd-tdep.c: ... this, adjust include.
3446 * arm-nbsd-tdep.h: Rename to ...
3447 * arm-netbsd-tdep.h: ... this, adjust include.
3448 * configure.nat: Adjust file lists.
3449 * configure.tgt: Likewise.
3450 * hppa-nbsd-nat.c: Rename to ...
3451 * hppa-netbsd-nat.c: ... this, adjust include.
3452 * hppa-nbsd-tdep.c: Rename to ...
3453 * hppa-netbsd-tdep.c: ... this, adjust include.
3454 * i386-nbsd-nat.c: Rename to ...
3455 * i386-netbsd-nat.c: ... this, adjust include.
3456 * i386-nbsd-tdep.c: Rename to ...
3457 * i386-netbsd-tdep.c: ... this, adjust include.
3458 * m68k-bsd-nat.c: Adjust include.
3459 * mips-nbsd-nat.c: Rename to ...
3460 * mips-netbsd-nat.c: ... this, adjust include.
3461 * mips-nbsd-tdep.c: Rename to ...
3462 * mips-netbsd-tdep.c: ... this, adjust include.
3463 * mips-nbsd-tdep.h: Rename to ...
3464 * mips-netbsd-tdep.h: ... this.
3465 * nbsd-nat.c: Rename to ...
3466 * netbsd-nat.c: ... this, adjust include.
3467 * nbsd-nat.h: Rename to ...
3468 * netbsd-nat.h: ... this, adjust include.
3469 * nbsd-tdep.c: Rename to ...
3470 * netbsd-tdep.c: ... this, adjust include.
3471 * nbsd-tdep.h: Rename to ...
3472 * netbsd-tdep.h: ... this.
3473 * ppc-nbsd-nat.c: Rename to ...
3474 * ppc-netbsd-nat.c: ... this, adjust include.
3475 * ppc-nbsd-tdep.c: Rename to ...
3476 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3477 * ppc-nbsd-tdep.h: Rename to ...
3478 * ppc-netbsd-tdep.h: ... this.
3479 * sh-nbsd-nat.c: Rename to ...
3480 * sh-netbsd-nat.c: ... this, adjust include.
3481 * sh-nbsd-tdep.c: Rename to ...
3482 * sh-netbsd-tdep.c: ... this, adjust include.
3483 * sparc-nbsd-nat.c: Rename to ...
3484 * sparc-netbsd-nat.c: ... this.
3485 * sparc-nbsd-tdep.c: Rename to ...
3486 * sparc-netbsd-tdep.c: ... this, adjust include.
3487 * sparc64-nbsd-nat.c: Rename to ...
3488 * sparc64-netbsd-nat.c: ... this.
3489 * sparc64-nbsd-tdep.c: Rename to ...
3490 * sparc64-netbsd-tdep.c: ... this, adjust include.
3491 * sparc64-tdep.h: Adjust comment.
3492 * vax-bsd-nat.c: Adjust include.
3493 * vax-nbsd-tdep.c: Rename to ...
3494 * vax-netbsd-tdep.c: ... this, adjust include.
3495
d7a78e5c
TT
34962020-10-12 Tom Tromey <tom@tromey.com>
3497
3498 * target.h (struct target_ops) <get_section_table>: Update.
3499 (target_get_section_table): Update.
3500 * target.c (target_get_section_table, target_section_by_addr)
3501 (memory_xfer_partial_1): Update.
3502 * target-section.h (target_section_table): Now an alias.
3503 * target-delegates.c: Rebuild.
3504 * target-debug.h (target_debug_print_target_section_table_p):
3505 Rename from target_debug_print_struct_target_section_table_p.
3506 * symfile.c (build_section_addr_info_from_section_table): Update.
3507 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3508 * solib-svr4.c (scan_dyntag): Update.
3509 * solib-dsbt.c (scan_dyntag): Update.
3510 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3511 Update.
3512 * record-full.c (record_full_core_target::xfer_partial): Update.
3513 * progspace.h (struct program_space) <target_sections>: Update.
3514 * exec.h (print_section_info): Update.
3515 * exec.c (exec_target::close, build_section_table)
3516 (add_target_sections, add_target_sections_of_objfile)
3517 (remove_target_sections, exec_on_vfork)
3518 (section_table_available_memory)
3519 (section_table_xfer_memory_partial)
3520 (exec_target::get_section_table, exec_target::xfer_partial)
3521 (print_section_info, set_section_command)
3522 (exec_set_section_address, exec_target::has_memory): Update.
3523 * corelow.c (core_target::build_file_mappings)
3524 (core_target::xfer_partial, core_target::info_proc_mappings)
3525 (core_target::info_proc_mappings): Update.
3526 * bfd-target.c (class target_bfd): Update
3527
eda214ce
TT
35282020-10-12 Tom Tromey <tom@tromey.com>
3529
3530 * progspace.c (program_space::~program_space): Don't call
3531 clear_section_table.
3532 * exec.h (clear_section_table): Don't declare.
3533 * exec.c (exec_target::close): Update.
3534 (clear_section_table): Remove.
3535
91840ee3
TT
35362020-10-12 Tom Tromey <tom@tromey.com>
3537
3538 * exec.c (add_target_sections_of_objfile): Simplify.
3539
2d128614
TT
35402020-10-12 Tom Tromey <tom@tromey.com>
3541
3542 * solib.c (solib_map_sections): Update.
3543 * record-full.c (record_full_core_open_1): Update.
3544 * exec.h (build_section_table): Return a target_section_table.
3545 * exec.c (exec_file_attach): Update.
3546 (build_section_table): Return a target_section_table.
3547 * corelow.c (core_target::core_target): Update.
3548 * bfd-target.c (target_bfd::target_bfd): Update.
3549
bb2a6777
TT
35502020-10-12 Tom Tromey <tom@tromey.com>
3551
3552 * target.c (target_section_by_addr, memory_xfer_partial_1):
3553 Update.
3554 * target-section.h (struct target_section_table): Use
3555 std::vector.
3556 * symfile.h (build_section_addr_info_from_section_table): Take a
3557 target_section_table.
3558 * symfile.c (build_section_addr_info_from_section_table): Take a
3559 target_section_table.
3560 * solist.h (struct so_list) <sections>: Change type.
3561 <sections_end>: Remove.
3562 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3563 (solib_contains_address_p): Update.
3564 * solib-svr4.c (scan_dyntag): Update.
3565 * solib-dsbt.c (scan_dyntag): Update.
3566 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3567 Update.
3568 * record-full.c (record_full_core_start, record_full_core_end):
3569 Remove.
3570 (record_full_core_sections): New global.
3571 (record_full_core_open_1, record_full_core_target::xfer_partial):
3572 Update.
3573 * exec.h (build_section_table, section_table_xfer_memory_partial)
3574 (add_target_sections): Take a target_section_table.
3575 * exec.c (exec_file_attach, clear_section_table): Update.
3576 (resize_section_table): Remove.
3577 (build_section_table, add_target_sections): Take a
3578 target_section_table.
3579 (add_target_sections_of_objfile, remove_target_sections)
3580 (exec_on_vfork): Update.
3581 (section_table_available_memory): Take a target_section_table.
3582 (section_table_read_available_memory): Update.
3583 (section_table_xfer_memory_partial): Take a target_section_table.
3584 (print_section_info, set_section_command)
3585 (exec_set_section_address, exec_target::has_memory): Update.
3586 * corelow.c (class core_target) <m_core_section_table,
3587 m_core_file_mappings>: Remove braces.
3588 <~core_target>: Remove.
3589 (core_target::core_target): Update.
3590 (core_target::~core_target): Remove.
3591 (core_target::build_file_mappings)
3592 (core_target::xfer_memory_via_mappings)
3593 (core_target::xfer_partial, core_target::info_proc_mappings):
3594 Update.
3595 * bfd-target.c (target_bfd::xfer_partial): Update.
3596 (target_bfd::target_bfd): Update.
3597 (target_bfd::~target_bfd): Remove.
3598
7b466b10
TT
35992020-10-12 Tom Tromey <tom@tromey.com>
3600
3601 * target.h (struct target_section, struct target_section_table):
3602 Move to target-section.h.
3603 * target-section.h: New file.
3604
87a37e5e
PA
36052020-10-12 Pedro Alves <pedro@palves.net>
3606
3607 PR exp/26602
3608 * valops.c (struct struct_field_searcher): New.
3609 (update_search_result): Rename to ...
3610 (struct_field_searcher::update_result): ... this. Simplify
3611 prototype. Record all found fields.
3612 (do_search_struct_field): Rename to ...
3613 (struct_field_searcher::search): ... this. Simplify prototype.
3614 Maintain stack of visited baseclass path. Call update_result for
3615 fields too. Keep searching fields in baseclasses instead of
3616 stopping at the first found field.
3617 (search_struct_field): Use struct_field_searcher. When looking
3618 for fields, report ambiguous access attempts.
3619
9370fd51
AB
36202020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * frame.c (inside_main_func): Check full symbols as well as
3623 minimal symbols.
3624
59c8a30b
JB
36252020-10-09 Joel Brobecker <brobecker@adacore.com>
3626
3627 * ada-lang.c (advance_wild_match): Rewrite the function's
3628 description. Change the type of target0, t0 and t1 to char.
3629
7c184d33
TT
36302020-10-09 Tom Tromey <tromey@adacore.com>
3631
3632 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3633
5c4258f4
TT
36342020-10-09 Tom Tromey <tromey@adacore.com>
3635
3636 * ada-lang.h (ada_encode): Return std::string.
3637 * ada-lang.c (ada_encode_1): Return std::string.
3638 (ada_encode): Likewise.
3639 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3640 Update.
3641 * ada-exp.y (block_lookup, write_var_or_type): Update.
3642
3d87245c
HD
36432020-10-09 Hannes Domani <ssbssa@yahoo.de>
3644
3645 PR exp/26714
3646 * printcmd.c (print_formatted): Handle void results as
3647 unformatted prints.
3648
bbb826f5
AB
36492020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * arch/aarch32.c (aarch32_create_target_description): Release the
3652 target_desc_up as late as possible.
3653 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3654 * arch/amd64.c (amd64_create_target_description): Likewise.
3655 * arch/arc.c (arc_create_target_description): Return a
3656 target_desc_up, don't release it.
3657 * arch/arc.h (arc_create_target_description): Update declaration.
3658 (arc_lookup_target_description): Move target_desc_up into the
3659 cache, and return a borrowed pointer.
3660 * arch/arm.c (arm_create_target_description): Release the
3661 target_desc_up as late as possible.
3662 * arch/i386.c (i386_create_target_description): Likewise.
3663 * arch/riscv.h (riscv_create_target_description): Update
3664 declaration to match definition.
3665 * arch/tic6x.c (tic6x_create_target_description): Release the
3666 target_desc_up as late as possible.
3667
361cb219
AB
36682020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3669
3670 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3671 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3672
f5c4b229
JV
36732020-10-09 Jan Vrany <jan.vrany@labware.com>
3674
3675 * source.c (directory_command): Notify observers that "directories"
3676 parameter has changed.
3677
b2701685
TT
36782020-10-08 Tom Tromey <tom@tromey.com>
3679
3680 * cli/cli-cmds.c (print_disassembly): Style function name and
3681 addresses. Add _() wrappers.
3682
ada508b6
SV
36832020-10-08 Shahab Vahedi <shahab@synopsys.com>
3684
3685 * NEWS: Mention ARC support in GDBserver.
3686
51a948fd
AB
36872020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3688
3689 * arch/aarch32.c (aarch32_create_target_description): Release
3690 unique_ptr returned from allocate_target_description.
3691 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3692 * arch/amd64.c (amd64_create_target_description): Likewise.
3693 * arch/arc.c (arc_create_target_description): Likewise.
3694 * arch/arm.c (arm_create_target_description): Likewise.
3695 * arch/i386.c (i386_create_target_description): Likewise.
3696 * arch/riscv.c (riscv_create_target_description): Update return
3697 type. Handle allocate_target_description returning a unique_ptr.
3698 (riscv_lookup_target_description): Update to handle unique_ptr.
3699 * arch/tic6x.c (tic6x_create_target_description): Release
3700 unique_ptr returned from allocate_target_description.
3701 * features/microblaze-with-stack-protect.c: Regenerate.
3702 * features/microblaze.c: Regenerate.
3703 * features/mips-dsp-linux.c: Regenerate.
3704 * features/mips-linux.c: Regenerate.
3705 * features/mips64-dsp-linux.c: Regenerate.
3706 * features/mips64-linux.c: Regenerate.
3707 * features/nds32.c: Regenerate.
3708 * features/nios2.c: Regenerate.
3709 * features/or1k.c: Regenerate.
3710 * features/rs6000/powerpc-32.c: Regenerate.
3711 * features/rs6000/powerpc-32l.c: Regenerate.
3712 * features/rs6000/powerpc-403.c: Regenerate.
3713 * features/rs6000/powerpc-403gc.c: Regenerate.
3714 * features/rs6000/powerpc-405.c: Regenerate.
3715 * features/rs6000/powerpc-505.c: Regenerate.
3716 * features/rs6000/powerpc-601.c: Regenerate.
3717 * features/rs6000/powerpc-602.c: Regenerate.
3718 * features/rs6000/powerpc-603.c: Regenerate.
3719 * features/rs6000/powerpc-604.c: Regenerate.
3720 * features/rs6000/powerpc-64.c: Regenerate.
3721 * features/rs6000/powerpc-64l.c: Regenerate.
3722 * features/rs6000/powerpc-7400.c: Regenerate.
3723 * features/rs6000/powerpc-750.c: Regenerate.
3724 * features/rs6000/powerpc-860.c: Regenerate.
3725 * features/rs6000/powerpc-altivec32.c: Regenerate.
3726 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3727 * features/rs6000/powerpc-altivec64.c: Regenerate.
3728 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3729 * features/rs6000/powerpc-e500.c: Regenerate.
3730 * features/rs6000/powerpc-e500l.c: Regenerate.
3731 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3732 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3733 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3734 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3735 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3736 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3737 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3738 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3739 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3740 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3741 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3742 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3743 * features/rs6000/powerpc-vsx32.c: Regenerate.
3744 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3745 * features/rs6000/powerpc-vsx64.c: Regenerate.
3746 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3747 * features/rs6000/rs6000.c: Regenerate.
3748 * features/rx.c: Regenerate.
3749 * features/s390-gs-linux64.c: Regenerate.
3750 * features/s390-linux32.c: Regenerate.
3751 * features/s390-linux32v1.c: Regenerate.
3752 * features/s390-linux32v2.c: Regenerate.
3753 * features/s390-linux64.c: Regenerate.
3754 * features/s390-linux64v1.c: Regenerate.
3755 * features/s390-linux64v2.c: Regenerate.
3756 * features/s390-te-linux64.c: Regenerate.
3757 * features/s390-tevx-linux64.c: Regenerate.
3758 * features/s390-vx-linux64.c: Regenerate.
3759 * features/s390x-gs-linux64.c: Regenerate.
3760 * features/s390x-linux64.c: Regenerate.
3761 * features/s390x-linux64v1.c: Regenerate.
3762 * features/s390x-linux64v2.c: Regenerate.
3763 * features/s390x-te-linux64.c: Regenerate.
3764 * features/s390x-tevx-linux64.c: Regenerate.
3765 * features/s390x-vx-linux64.c: Regenerate.
3766 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3767 from allocate_target_description.
3768 * target-descriptions.c (allocate_target_description): Update
3769 return type.
3770 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3771 allocate_target_description.
3772
485c47e5
TT
37732020-10-07 Tom Tromey <tromey@adacore.com>
3774
3775 * unittests/search-memory-selftests.c: New file.
3776 * Makefile.in (SELFTESTS_SRCS): Add
3777 unittests/search-memory-selftests.c.
3778
3a135a91
TT
37792020-10-07 Tom Tromey <tromey@adacore.com>
3780
3781 PR gdb/16930:
3782 * findcmd.c (_initialize_mem_search): Mention that the range is
3783 inclusive.
3784
4a72de73
TT
37852020-10-07 Tom Tromey <tromey@adacore.com>
3786
3787 * target.h (simple_search_memory): Don't declare.
3788 * target.c (simple_search_memory): Move to gdbsupport.
3789 (default_search_memory): Update.
3790 * remote.c (remote_target::search_memory): Update.
3791
a038ffd8
SM
37922020-10-07 Simon Marchi <simon.marchi@efficios.com>
3793
3794 * Makefile.in (COMPILE): Add CXXFLAGS.
3795 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3796 (check-headers): Add CXXFLAGS.
3797
cc463201
AK
37982020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3799
3800 * arc-linux-tdep.h: New file.
3801 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3802 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3803 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3804 arc_linux_gregset, arc_linux_v2_regset,
3805 arc_linux_iterate_over_regset_sections,
3806 arc_linux_core_read_description): Implement.
3807 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3808 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3809 (arc_gdbarch_features_create): Add.
3810 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3811
e4bd363f
SV
38122020-10-07 Shahab Vahedi <shahab@synopsys.com>
3813
3814 * arch/arc.h: Rename "arc_gdbarch_features" to
3815 "arc_arch_features".
3816 * arc-tdep.h: Likewise.
3817 * arc-tdep.c: Likewise.
3818
b68bef99
TBA
38192020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3820
3821 * infcmd.c (attach_command): Remove the redundant call to
3822 `clear_proceed_status`.
3823
4641551a
KR
38242020-10-07 Kamil Rytarowski <n54@gmx.com>
3825
3826 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3827
91e5e8db
KR
38282020-10-07 Kamil Rytarowski <n54@gmx.com>
3829
3830 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3831 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3832 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3833
64c03bdb
SM
38342020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3835
3836 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3837 (_initialize_break_catch_sig): Don't allocate array.
3838
31a8f60f
AB
38392020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3840
3841 * symtab.c (find_pc_line): Return unmapped addresses when the
3842 requested address is also unmapped.
3843
9e6dbd8b
SM
38442020-10-05 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3847 tui/tui-out.h.
3848
a1d217e8
SM
38492020-10-05 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3852 type::is_vector instead of TYPE_VECTOR.
3853
7d144117
SM
38542020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3855
3856 * auto-load.c (auto_load_objfile_script_1): Don't use
3857 debugfile_holder as temporary variable when stripping drive
3858 letter.
3859
cd096ec8
HD
38602020-10-05 Hannes Domani <ssbssa@yahoo.de>
3861
3862 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3863 Add TYPE_CODE_COMPLEX.
3864 (amd64_windows_return_value): Fix types returned via XMM0.
3865
b58e7f72
AH
38662020-10-05 Alan Hayward <alan.hayward@arm.com>
3867
3868 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3869 AArch64/ARM maintainers.
3870
8d378f27
SM
38712020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3872
3873 * NEWS: Mention set/show debug event-loop.
3874
d5519913
TT
38752020-10-02 Tom Tromey <tromey@adacore.com>
3876
3877 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3878 REG_EXTENDED.
3879
18b67edc
SM
38802020-10-02 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3883 * procfs.c (procfs_inferior_created): Remove.
3884 (_initialize_procfs): Don't register procfs_inferior_created.
3885
6b01403b
SM
38862020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3887
3888 * async-event.c (invoke_async_signal_handlers): Add debug
3889 print.
3890 (check_async_event_handlers): Likewise.
3891 * event-top.c (show_debug_event_loop): New function.
3892 (_initialize_event_top): Register "set debug event-loop"
3893 setting.
3894
ba988419
SM
38952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3896
3897 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3898 * debug.h: Remove.
3899 * infrun.c: Include gdbsupport/common-debug.h.
3900 * linux-nat.c: Likewise.
3901
db20ebdf
SM
39022020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3903
3904 * async-event.h (create_async_signal_handler): Add name
3905 parameter.
3906 (create_async_event_handler): Likewise.
3907 * async-event.c (struct async_signal_handler) <name>: New field.
3908 (struct async_event_handler) <name>: New field.
3909 (create_async_signal_handler): Assign name.
3910 (create_async_event_handler): Assign name.
3911 * event-top.c (async_init_signals): Pass name when creating
3912 handler.
3913 * infrun.c (_initialize_infrun): Likewise.
3914 * record-btrace.c (record_btrace_push_target): Likewise.
3915 * record-full.c (record_full_open): Likewise.
3916 * remote-notif.c (remote_notif_state_allocate): Likewise.
3917 * remote.c (remote_target::open_1): Likewise.
3918 * tui/tui-win.c (tui_initialize_win): Likewise.
3919
2554f6f5
SM
39202020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3921
3922 * async-event.c (initialize_async_signal_handlers): Pass name to
3923 add_file_handler
3924 * event-top.c (ui_register_input_event_handler): Likewise.
3925 * linux-nat.c (linux_nat_target::async): Likewise.
3926 * run-on-main-thread.c (_initialize_run_on_main_thread):
3927 Likewise
3928 * ser-base.c (reschedule): Likewise.
3929 (ser_base_async): Likewise.
3930 * tui/tui-io.c: Likewise.
3931 * top.h (struct ui) <num>: New field.
3932 * top.c (highest_ui_num): New variable.
3933 (ui::ui): Initialize num.
3934
a7aba266
SM
39352020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3936
3937 * observable.h <inferior_created>: Remove parameters. Update all
3938 listeners.
3939 * inferior.h (post_create_inferior): Remove target parameter.
3940 Update all callers.
3941
048fde1e 39422020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3943
3944 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3945 and DW_MACRO_undef_strx.
3946 (dwarf_decode_macros): Likewise
3947 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3948 which is the value of DW_AT_str_offsets_base.
3949 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3950 str_offsets_base.
3951
064280be
KR
39522020-10-01 Kamil Rytarowski <n54@gmx.com>
3953
3954 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
3955
6ff33035
KR
39562020-10-01 Kamil Rytarowski <n54@gmx.com>
3957
3958 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
3959 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
3960
1eb6eb79
KR
39612020-10-01 Kamil Rytarowski <n54@gmx.com>
3962
3963 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
3964
95eb9e54
TV
39652020-09-30 Tom de Vries <tdevries@suse.de>
3966
3967 PR symtab/26683
3968 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
3969
cae21f8e
TT
39702020-09-30 Tom Tromey <tromey@adacore.com>
3971
3972 * dwarf2/read.c (handle_variant): Use constant_value.
3973
529908cb
TT
39742020-09-29 Tom Tromey <tom@tromey.com>
3975
3976 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
3977 (read_file_scope, dwarf2_get_pc_bounds)
3978 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
3979 (read_structure_type, handle_struct_member_die)
3980 (read_enumeration_type, read_array_type, read_set_type)
3981 (read_tag_pointer_type, read_tag_reference_type)
3982 (read_subroutine_type, read_base_type, read_subrange_type)
3983 (read_full_die_1, partial_die_info::read)
3984 (partial_die_info::read, by, new_symbol)
3985 (dwarf2_const_value_data, dwarf2_const_value_attr)
3986 (dump_die_shallow, dwarf2_fetch_constant_bytes)
3987 (prepare_one_comp_unit): Update.
3988 * dwarf2/attribute.h (DW_UNSND): Remove.
3989
c45bc3f8
TT
39902020-09-29 Tom Tromey <tom@tromey.com>
3991
3992 * dwarf2/read.c (read_func_scope, prototyped_function_p)
3993 (read_subroutine_type, partial_die_info::read)
3994 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
3995 (dwarf2_add_member_fn): Update.
3996 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
3997 * dwarf2/attribute.c (attribute::as_boolean): New method.
3998
23dca5c3
TT
39992020-09-29 Tom Tromey <tom@tromey.com>
4000
4001 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
4002 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
4003 method.
4004 * dwarf2/attribute.c (attribute::as_virtuality): New method.
4005
52c14d11
TT
40062020-09-29 Tom Tromey <tom@tromey.com>
4007
4008 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
4009 the attribute's form.
4010
e8e5c158
TT
40112020-09-29 Tom Tromey <tom@tromey.com>
4012
4013 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
4014 (dwarf2_add_member_fn): Update.
4015 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
4016 * dwarf2/attribute.c (attribute::defaulted): New method, from
4017 is_valid_DW_AT_defaulted.
4018
d4df075e
TT
40192020-09-29 Tom Tromey <tom@tromey.com>
4020
4021 * dwarf2/read.c (dw2_get_file_names_reader)
4022 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
4023 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
4024 (dwarf2_symbol_mark_computed): Use as_unsigned.
4025 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
4026 method.
4027 <form_is_section_offset>: Update comment.
4028
bf23a268
TT
40292020-09-29 Tom Tromey <tom@tromey.com>
4030
4031 * dwarf2/read.c (dwarf2_access_attribute): Rename from
4032 dwarf2_default_access_attribute. Look up attribute.
4033 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
4034 Update.
4035
7a5f294d
TT
40362020-09-29 Tom Tromey <tom@tromey.com>
4037
4038 * dwarf2/read.c (skip_one_die): Update.
4039 (read_full_die_1): Change how reprocessing is done.
4040 (partial_die_info::read): Update.
4041 (read_attribute_value): Remove need_reprocess parameter.
4042 (read_attribute): Likewise.
4043 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
4044 New method.
4045
36d378cf
TT
40462020-09-29 Tom Tromey <tom@tromey.com>
4047
4048 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
4049 (dwarf2_const_value_attr, dump_die_shallow)
4050 (dwarf2_fetch_constant_bytes): Update.
4051 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
4052 comment.
4053 <set_address>: New method.
4054 (DW_ADDR): Remove.
4055 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
4056 (attribute::as_string, attribute::as_address): Add assert.
4057
fe56917a
TT
40582020-09-29 Tom Tromey <tom@tromey.com>
4059
4060 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
4061 (read_attribute_reprocess, read_attribute_value): Update.
4062 (read_attribute): Clear requires_reprocessing.
4063 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
4064 form_requires_reprocessing>: New methods.
4065 <string_init>: Clear requires_reprocessing.
4066 <set_unsigned_reprocess>: New method.
4067 <name>: Shrink by one bit.
4068 <requires_reprocessing>: New member.
4069 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
4070 method.
4071
414ad644
TT
40722020-09-29 Tom Tromey <tom@tromey.com>
4073
4074 * dwarf2/read.c (read_attribute_value): Update.
4075 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
4076 set_unsigned>: New methods.
4077 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
4078
1bc397c5
TT
40792020-09-29 Tom Tromey <tom@tromey.com>
4080
4081 * dwarf2/read.c (get_alignment, read_array_order)
4082 (read_attribute_value, dwarf2_const_value_attr)
4083 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
4084 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
4085 New methods.
4086 (DW_SND): Remove.
4087
630ed6b9
TT
40882020-09-29 Tom Tromey <tom@tromey.com>
4089
4090 * dwarf2/read.c (read_attribute_value, lookup_die_type)
4091 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
4092 Update.
4093 * dwarf2/attribute.h (struct attribute) <as_signature,
4094 set_signature>: New methods.
4095 (DW_SIGNATURE): Remove.
4096
9d2246fc
TT
40972020-09-29 Tom Tromey <tom@tromey.com>
4098
4099 * dwarf2/read.c (read_call_site_scope)
4100 (handle_data_member_location, dwarf2_add_member_fn)
4101 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4102 (partial_die_info::read, read_attribute_value)
4103 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
4104 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
4105 (dwarf2_symbol_mark_computed): Update.
4106 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
4107 methods.
4108 (DW_BLOCK): Remove.
4109 * dwarf2/attribute.c (attribute::form_is_block): Add
4110 DW_FORM_data16.
4111
c6481205
TT
41122020-09-29 Tom Tromey <tom@tromey.com>
4113
4114 * dwarf2/read.c (read_cutu_die_from_dwo)
4115 (read_attribute_reprocess, read_attribute_value, read_attribute)
4116 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
4117 (dwarf2_fetch_constant_bytes): Update.
4118 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
4119 <set_string_noncanonical, set_string_canonical>: New methods.
4120 <string_is_canonical>: Update comment.
4121 <canonical_string_p>: Add assert.
4122 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
4123 * dwarf2/attribute.c (attribute::form_is_string): New method.
4124 (attribute::string): Use it.
4125
3b64bf15
TT
41262020-09-29 Tom Tromey <tom@tromey.com>
4127
4128 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
4129 (dump_die_shallow): Use canonical_string_p.
4130 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4131 method.
4132
2c830f54
TT
41332020-09-29 Tom Tromey <tom@tromey.com>
4134
4135 * dwarf2/read.c (partial_die_info::read)
4136 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4137 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4138 attribute::as_string.
4139
6c412691
TT
41402020-09-29 Tom Tromey <tom@tromey.com>
4141
4142 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4143 DW_ADDR.
4144 (attribute::string): Don't use DW_STRING.
4145 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4146 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4147
95f982e5
TT
41482020-09-29 Tom Tromey <tom@tromey.com>
4149
4150 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4151 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4152 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4153 * dwarf2/attribute.h (struct attribute): Rename methods.
4154 * dwarf2/attribute.c (attribute::as_address): Rename from
4155 value_as_address.
4156 (attribute::as_string): Rename from value_as_string.
4157
f800b00e
TT
41582020-09-29 Tom Tromey <tom@tromey.com>
4159
4160 * dwarf2/read.c (partial_die_info::read) <case
4161 DW_AT_linkage_name>: Use value_as_string.
4162 (dwarf2_string_attr): Use value_as_string.
4163 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4164 method.
4165 * dwarf2/attribute.c (attribute::value_as_string): New method.
4166
de38d64a
PA
41672020-09-29 Pedro Alves <pedro@palves.net>
4168
4169 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4170 defined before using '#pragma GCC diagnostic' instead of checking
4171 __clang__.
4172
9aed480c
TT
41732020-09-28 Tom Tromey <tom@tromey.com>
4174
4175 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4176 (handle_signal_stop): Update.
4177 * procfs.c (procfs_target::insert_watchpoint): Update.
4178 * target.h (target_have_steppable_watchpoint): Now a function.
4179
8a3ecb79
TT
41802020-09-28 Tom Tromey <tom@tromey.com>
4181
4182 * infrun.c (set_schedlock_func): Update.
4183 * target.h (target_can_lock_scheduler): Now a function.
4184
55f6301a
TT
41852020-09-28 Tom Tromey <tom@tromey.com>
4186
4187 * inferior.h (class inferior) <has_execution>: Update.
4188 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4189 * valops.c (find_function_in_inferior)
4190 (value_allocate_space_in_inferior): Update.
4191 * top.c (kill_or_detach): Update.
4192 * target.c (target_preopen, set_target_permissions): Update.
4193 (target_has_execution_current): Remove.
4194 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4195 Update.
4196 * solib.c (update_solib_list, reload_shared_libraries): Update.
4197 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4198 * solib-dsbt.c (enable_break): Update.
4199 * score-tdep.c (score7_fetch_inst): Update.
4200 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4201 Update.
4202 * remote.c (remote_target::start_remote)
4203 (remote_target::remote_check_symbols, remote_target::open_1)
4204 (remote_target::remote_detach_1, remote_target::verify_memory)
4205 (remote_target::xfer_partial, remote_target::read_description)
4206 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4207 * record-full.c (record_full_open_1): Update.
4208 * record-btrace.c (record_btrace_target_open): Update.
4209 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4210 (value_nsstring): Update.
4211 * linux-thread-db.c (add_thread_db_info)
4212 (thread_db_find_new_threads_silently, check_thread_db_callback)
4213 (try_thread_db_load_1, record_thread): Update.
4214 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4215 Update.
4216 * linux-fork.c (checkpoint_command): Update.
4217 * infrun.c (set_non_stop, set_observer_mode)
4218 (check_multi_target_resumption, for_each_just_stopped_thread)
4219 (maybe_remove_breakpoints, normal_stop)
4220 (class infcall_suspend_state): Update.
4221 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4222 (info_program_command, attach_command): Update.
4223 * infcall.c (call_function_by_hand_dummy): Update.
4224 * inf-loop.c (inferior_event_handler): Update.
4225 * gcore.c (gcore_command, derive_heap_segment): Update.
4226 * exec.c (exec_file_command): Update.
4227 * eval.c (evaluate_subexp): Update.
4228 * compile/compile.c (compile_to_object): Update.
4229 * cli/cli-dump.c (restore_command): Update.
4230 * breakpoint.c (update_watchpoint)
4231 (update_inserted_breakpoint_locations)
4232 (insert_breakpoint_locations, get_bpstat_thread): Update.
4233 * target.h (target_has_execution): Remove macro.
4234 (target_has_execution_current): Don't declare.
4235 (target_has_execution): Rename from target_has_execution_1. Add
4236 argument default.
4237
05374cfd
TT
42382020-09-28 Tom Tromey <tom@tromey.com>
4239
4240 * mi/mi-main.c (exec_reverse_continue)
4241 (mi_cmd_list_target_features): Update.
4242 * infrun.c (set_exec_direction_func): Update.
4243 * target.c (default_execution_direction): Update.
4244 * reverse.c (exec_reverse_once): Update.
4245 * target.h (target_can_execute_reverse): Now a function.
4246
9dccd06e
TT
42472020-09-28 Tom Tromey <tom@tromey.com>
4248
4249 * tui/tui-regs.c (tui_get_register)
4250 (tui_data_window::show_registers): Update.
4251 * thread.c (scoped_restore_current_thread::restore)
4252 (scoped_restore_current_thread::scoped_restore_current_thread):
4253 Update.
4254 * regcache-dump.c (regcache_print): Update.
4255 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4256 Update.
4257 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4258 * mep-tdep.c (current_me_module, current_options): Update.
4259 * linux-thread-db.c (thread_db_load): Update.
4260 * infcmd.c (registers_info, info_vector_command)
4261 (info_float_command): Update.
4262 * ia64-tdep.c (ia64_frame_prev_register)
4263 (ia64_sigtramp_frame_prev_register): Update.
4264 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4265 * gcore.c (derive_stack_segment): Update.
4266 * frame.c (get_current_frame, has_stack_frames): Update.
4267 * findvar.c (language_defn::read_var_value): Update.
4268 * arm-tdep.c (arm_pc_is_thumb): Update.
4269 * target.c (target_has_registers): Rename from
4270 target_has_registers_1.
4271 * target.h (target_has_registers): Remove macro.
4272 (target_has_registers): Rename from target_has_registers_1.
4273
841de120
TT
42742020-09-28 Tom Tromey <tom@tromey.com>
4275
4276 * windows-tdep.c (tlb_make_value): Update.
4277 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4278 * thread.c (scoped_restore_current_thread::restore)
4279 (scoped_restore_current_thread::scoped_restore_current_thread)
4280 (thread_command): Update.
4281 * stack.c (backtrace_command_1, frame_apply_level_command)
4282 (frame_apply_all_command, frame_apply_command): Update.
4283 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4284 Update.
4285 * gcore.c (derive_stack_segment): Update.
4286 * frame.c (get_current_frame, has_stack_frames): Update.
4287 * auxv.c (info_auxv_command): Update.
4288 * ada-tasks.c (ada_build_task_list): Update.
4289 * target.c (target_has_stack): Rename from target_has_stack_1.
4290 * target.h (target_has_stack): Remove macro.
4291 (target_has_stack): Rename from target_has_stack_1.
4292
a739972c
TT
42932020-09-28 Tom Tromey <tom@tromey.com>
4294
4295 * target.c (target_has_memory): Rename from target_has_memory_1.
4296 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4297 * thread.c (scoped_restore_current_thread::restore)
4298 (scoped_restore_current_thread::scoped_restore_current_thread):
4299 Update.
4300 * frame.c (get_current_frame, has_stack_frames): Update.
4301 * target.h (target_has_memory): Remove macro.
4302 (target_has_memory): Rename from target_has_memory_1.
4303
5b8a4776
TT
43042020-09-28 Tom Tromey <tom@tromey.com>
4305
4306 * target.c (target_has_all_memory_1): Remove.
4307 * target.h (target_has_all_memory): Remove define.
4308 (target_has_all_memory_1): Don't declare.
4309
bd356ec6
SM
43102020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4311
4312 * ser-base.c: Adjust comments formatting.
4313
2c72d5e5
TT
43142020-09-27 Tom Tromey <tom@tromey.com>
4315
4316 PR tui/25342:
4317 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4318
35a98237
TT
43192020-09-27 Tom Tromey <tom@tromey.com>
4320
4321 PR tui/25342:
4322 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4323
9e820dec
TT
43242020-09-27 Tom Tromey <tom@tromey.com>
4325
4326 * unittests/tui-selftests.c: Update.
4327 * tui/tui-winsource.h (struct tui_source_window_base)
4328 <extra_margin, show_line_number, refresh_pad>: New methods.
4329 <m_max_length, m_pad>: New members.
4330 (tui_copy_source_line): Update.
4331 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4332 first_col, line_width, ndigits parameters. Add length.
4333 (tui_source_window_base::show_source_line): Write to pad. Line
4334 number now 0-based.
4335 (tui_source_window_base::refresh_pad): New method.
4336 (tui_source_window_base::show_source_content): Write to pad. Call
4337 refresh_pad.
4338 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4339 not refill.
4340 (tui_source_window_base::update_exec_info): Call
4341 show_line_number.
4342 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4343 method.
4344 <m_digits>: New member.
4345 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4346 and m_max_length.
4347 (tui_source_window::show_line_number): New method.
4348 * tui/tui-io.h (tui_puts): Fix comment.
4349 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4350 m_max_length.
4351
c15c15c8
TT
43522020-09-27 Tom Tromey <tom@tromey.com>
4353
4354 * tui/tui-winsource.c
4355 (tui_source_window_base::set_is_exec_point_at): Don't call
4356 show_source_line.
4357
149830c1
TT
43582020-09-27 Tom Tromey <tom@tromey.com>
4359
4360 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4361 method.
4362 <erase>: Update.
4363 <cursor_x, cursor_y>: Remove.
4364 <m_inner_window>: New member.
4365 (tui_py_window::rerender): Create inner window.
4366 (tui_py_window::output): Write to inner window.
4367
8f9929bb
GR
43682020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4369
4370 PR python/26586
4371 * cli/cli-script.c (execute_control_commands): don't set
4372 instream to nullptr here as this breaks the from_tty argument
4373 to gdb.execute in Python.
4374 (execute_user_command): set instream to nullptr here instead.
4375
956bdb59
SM
43762020-09-25 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * infrun.h (infrun_debug_printf): Fix formatting.
4379 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4380
3b93626b
SJ
43812020-09-25 Saagar Jha <saagar@saagarjha.com>
4382
4383 * compile/compile-object-load.h (struct munmap_list): Add
4384 explicitly-defined move constructor.
4385
b551a89f
TT
43862020-09-24 Tom Tromey <tromey@adacore.com>
4387
4388 PR tui/26638:
4389 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4390 method.
4391 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4392 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4393 (tui_prev_win): Rewrite.
4394
99bb393f
HD
43952020-09-23 Hannes Domani <ssbssa@yahoo.de>
4396
4397 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4398 in WOW64 processes as SIGINT.
4399 * nat/windows-nat.h: Make wow64_process a shared variable.
4400 * windows-nat.c: Remove static wow64_process variable.
4401
20a5fcbd
TT
44022020-09-23 Tom Tromey <tom@tromey.com>
4403
4404 PR symtab/25470:
4405 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4406 offset and bit size.
4407 * printcmd.c (print_scalar_formatted): Handle zero-length
4408 integer.
4409 (print_scalar_formatted): Use bit_size_differs_p.
4410 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4411 constant.
4412 (union type_specific): <int_stuff>: New member.
4413 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4414 methods.
4415 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4416 TYPE_SPECIFIC_FIELD.
4417 (recursive_dump_type, copy_type_recursive): Update.
4418 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4419 DW_AT_data_bit_offset.
4420
bac51ab7
TT
44212020-09-23 Tom Tromey <tom@tromey.com>
4422
4423 * utils.h (class gdb_argv): Add move operators.
4424 <append>: New methods.
4425 * compile/compile.c (build_argc_argv): Remove.
4426 (compile_args_argc): Remove.
4427 (compile_args_argv): Change type.
4428 (set_compile_args): Simplify.
4429 (append_args): Remove.
4430 (filter_args): Remove argcp parameter.
4431 (get_args): Return gdb_argv. Simplify.
4432 (compile_to_object): Update.
4433
92677124
TT
44342020-09-23 Tom Tromey <tom@tromey.com>
4435
4436 * compile/compile-object-run.c (do_module_cleanup)
4437 <~do_module_cleanup> :Remove.
4438 (do_module_cleanup): Update.
4439 * compile/compile-object-load.h (struct munmap_list): Add move
4440 assignment operator.
4441 <source_file>: Now a std::string.
4442 <munmap_list>: Rename. No longer a pointer.
4443 * compile/compile-object-load.c (struct setup_sections_data): Add
4444 constructor.
4445 <setup_one_section>: Declare.
4446 <munmap_list>: Move earlier.
4447 <m_bfd>: New member.
4448 <m_last_size, m_last_section_first, m_last_prot,
4449 m_last_max_alignment>: Rename, add initializers where needed.
4450 (setup_sections_data::setup_one_section): Rename from
4451 setup_sections. Update.
4452 (compile_object_load): Update. Don't use bfd_map_over_sections.
4453
e616f60a
TT
44542020-09-23 Tom Tromey <tom@tromey.com>
4455
4456 * compile/compile-object-run.c (struct do_module_cleanup): Add
4457 parameters to constructor. Update destructor.
4458 <source_file, scope, scope_data, out_value_type, out_value_addr,
4459 munmap_list_head, objfile_name_string>: Remove.
4460 <module>: New member.
4461 (do_module_cleanup): Update.
4462 (compile_object_run): Update.
4463
e947a848
TT
44642020-09-23 Tom Tromey <tom@tromey.com>
4465
4466 * compile/compile.c (eval_compile_command): Update.
4467 * compile/compile-object-run.h (compile_object_run): Take a
4468 compile_module_up.
4469 * compile/compile-object-run.c (compile_object_run): Take a
4470 compile_module_up.
4471 * compile/compile-object-load.h (struct compile_module): Add
4472 constructor, destructor.
4473 (compile_module_up): New typedef.
4474 (compile_object_load): Return compile_object_up.
4475 * compile/compile-object-load.c (compile_object_load): Return
4476 compile_module_up.
4477
0dbf6ee6
TT
44782020-09-23 Tom Tromey <tom@tromey.com>
4479
4480 * compile/compile-object-run.c (struct do_module_cleanup): Add
4481 constructor, destructor.
4482 <objfile_name_string>: Don't use struct hack.
4483 (do_module_cleanup): Use delete.
4484 (compile_object_run): Use new.
4485
ebe824f5
TT
44862020-09-23 Tom Tromey <tom@tromey.com>
4487
4488 * compile/compile-cplus-types.c
4489 (compile_cplus_convert_struct_or_union): Use std::vector.
4490 (compile_cplus_convert_func): Likewise.
4491 * compile/compile-c-types.c (convert_func): Use std::vector.
4492
5dd918d9
TT
44932020-09-21 Tom Tromey <tromey@adacore.com>
4494
4495 * sparc-tdep.c (sparc32_skip_prologue): Use
4496 skip_prologue_using_sal.
4497
5486c517
TT
44982020-09-19 Tom Tromey <tom@tromey.com>
4499
4500 * symfile.c (add_section_size_callback): Remove.
4501 (load_one_section): Rename from load_section_callback. Change
4502 parameters.
4503 (generic_load): Use foreach.
4504
8a6bb1d1
TT
45052020-09-19 Tom Tromey <tom@tromey.com>
4506
4507 * exec.c (add_to_section_table): Remove.
4508 (build_section_table): Use foreach.
4509
08f93a1a
TT
45102020-09-19 Tom Tromey <tom@tromey.com>
4511
4512 * elfread.c (elf_locate_sections): Change parameters.
4513 (elf_symfile_read): Use foreach.
4514
03cd72b8
TT
45152020-09-19 Tom Tromey <tom@tromey.com>
4516
4517 * cli/cli-dump.c (struct callback_data): Remove.
4518 (restore_one_section): Rename from restore_section_callback.
4519 Change parameters.
4520 (restore_binary_file): Change parameters.
4521 (restore_command): Use foreach.
4522
f4f2b85f
TT
45232020-09-19 Tom Tromey <tom@tromey.com>
4524
4525 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4526 (gcore_copy_callback): Likewise.
4527 (gcore_memory_sections): Use foreach.
4528
b35c1d1c
TT
45292020-09-19 Tom Tromey <tom@tromey.com>
4530
4531 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4532 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4533 parameters.
4534 (generic_elf_osabi_sniffer): Use foreach.
4535 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4536 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4537
5bb6e9dd
TT
45382020-09-19 Tom Tromey <tom@tromey.com>
4539
4540 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4541 (dwarf2_get_dwz_file): Use foreach.
4542 (dwarf2_locate_dwo_sections): Change parameters.
4543 (open_and_init_dwo_file): Use foreach.
4544 (dwarf2_locate_common_dwp_sections): Change parameters.
4545 (open_and_init_dwp_file): Use foreach.
4546
ad7277da
TT
45472020-09-19 Tom Tromey <tom@tromey.com>
4548
4549 * symfile.h: (find_lowest_section): Don't declare.
4550 * symfile.c (find_lowest_section): Now static. Change
4551 parameters.
4552 (struct place_section_arg): Remove.
4553 (place_section): Change parameters.
4554 (addr_info_make_relative): Use foreach.
4555 (symfile_dummy_outputs): Remove.
4556 (default_symfile_relocate): Use foreach.
4557
cb814f2e
TT
45582020-09-19 Tom Tromey <tom@tromey.com>
4559
4560 * objfiles.c (add_to_objfile_sections): Rename from
4561 add_to_objfile_sections_full.
4562 (add_to_objfile_sections): Remove.
4563 (build_objfile_section_table): Use foreach.
4564
3cabfd26
TT
45652020-09-19 Tom Tromey <tom@tromey.com>
4566
4567 * stap-probe.c (get_stap_base_address_1): Remove.
4568 (get_stap_base_address): Use foreach.
4569
1ce51eb5
TT
45702020-09-19 Tom Tromey <tom@tromey.com>
4571
4572 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4573 parameters.
4574 (gdb_bfd_close_or_warn): Use foreach.
4575
a190fabb
TT
45762020-09-19 Tom Tromey <tom@tromey.com>
4577
4578 * corelow.c (add_to_thread_list): Change parameters.
4579 (core_target_open): Use foreach.
4580
cafb0d81
TT
45812020-09-19 Tom Tromey <tom@tromey.com>
4582
4583 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4584 existing function.
4585
c8d5abea
AB
45862020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4589 for arrays.
4590
6d816919
AB
45912020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4592
4593 * eval.c: Remove 'f-lang.h' include.
4594 (value_f90_subarray): Moved to f-lang.c.
4595 (eval_call): Renamed to...
4596 (evaluate_subexp_do_call): ...this, is no longer static, header
4597 comment moved into header file.
4598 (evaluate_funcall): Update call to eval_call.
4599 (skip_undetermined_arglist): Moved to f-lang.c.
4600 (fortran_value_subarray): Likewise.
4601 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4602 moved to evaluate_subexp_f.
4603 (calc_f77_array_dims): Moved to f-lang.c
4604 * expprint.c (print_subexp_funcall): New function.
4605 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4606 moved to print_subexp_f, OP_FUNCALL uses new function.
4607 (dump_subexp_body_funcall): New function.
4608 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4609 moved to dump_subexp_f, OP_FUNCALL uses new function.
4610 * expression.h (evaluate_subexp_do_call): Declare.
4611 * f-lang.c (value_f90_subarray): Moved from eval.c.
4612 (skip_undetermined_arglist): Likewise.
4613 (calc_f77_array_dims): Likewise.
4614 (fortran_value_subarray): Likewise.
4615 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4616 (operator_length_f): Likewise.
4617 (print_subexp_f): Likewise.
4618 (dump_subexp_body_f): Likewise.
4619 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4620 declaration of this operation to here.
4621 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4622 support moved to operator_length_f.
4623 * parser-defs.h (dump_subexp_body_funcall): Declare.
4624 (print_subexp_funcall): Declare.
4625 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4626 fortran-operator.def.
4627
8c37706a
AB
46282020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4629
4630 * eval.c (fortran_value_subarray): New function, content is taken
4631 from...
4632 (evaluate_subexp_standard): ...here, in two places. Now arrays
4633 and strings both call the new function.
4634 (calc_f77_array_dims): Add header comment, handle strings.
4635
14f9473c
VC
46362020-09-18 Victor Collod <vcollod@nvidia.com>
4637
4638 PR gdb/26635
4639 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4640 (i386_analyze_prologue): Call i386_skip_endbr.
4641
b60cea74
TT
46422020-09-18 Tom Tromey <tromey@adacore.com>
4643
4644 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4645 (windows_nat_target::wait): Update.
4646 * target/wait.h (enum target_wait_flag): New. Use
4647 DEF_ENUM_FLAGS_TYPE.
4648 * target/target.h (target_wait): Change type of options.
4649 * target.h (target_options_to_string, default_target_wait):
4650 Update.
4651 (struct target_ops) <wait>: Change type of options.
4652 * target.c (target_wait, default_target_wait, do_option): Change
4653 type of "options".
4654 (target_options_to_string): Likewise.
4655 * target-delegates.c: Rebuild.
4656 * target-debug.h (target_debug_print_target_wait_flags): Rename
4657 from target_debug_print_options.
4658 * sol-thread.c (class sol_thread_target) <wait>: Update.
4659 (sol_thread_target::wait): Update.
4660 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4661 (rs6000_nat_target::wait): Update.
4662 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4663 Update.
4664 (remote_target::wait_ns, remote_target::wait_as): Change type of
4665 "options".
4666 (remote_target::wait): Update.
4667 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4668 (gdbsim_target::wait): Update.
4669 * record-full.c (class record_full_base_target) <wait>: Update.
4670 (record_full_wait_1): Change type of "options".
4671 (record_full_base_target::wait): Update.
4672 * record-btrace.c (class record_btrace_target) <wait>: Update.
4673 (record_btrace_target::wait): Update.
4674 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4675 Update.
4676 (ravenscar_thread_target::wait): Update.
4677 * procfs.c (class procfs_target) <wait>: Update.
4678 (procfs_target::wait): Update.
4679 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4680 * obsd-nat.c (obsd_nat_target::wait): Update.
4681 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4682 (nto_procfs_target::wait): Update.
4683 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4684 * nbsd-nat.c (nbsd_wait): Change type of "options".
4685 (nbsd_nat_target::wait): Update.
4686 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4687 (thread_db_target::wait): Update.
4688 * linux-nat.h (class linux_nat_target) <wait>: Update.
4689 * linux-nat.c (linux_nat_target::wait): Update.
4690 (linux_nat_wait_1): Update.
4691 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4692 "options".
4693 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4694 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4695 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4696 (go32_nat_target::wait): Update.
4697 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4698 * gnu-nat.c (gnu_nat_target::wait): Update.
4699 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4700 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4701 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4702 * darwin-nat.c (darwin_nat_target::wait): Update.
4703 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4704 (bsd_uthread_target::wait): Update.
4705 * aix-thread.c (class aix_thread_target) <wait>: Update.
4706 (aix_thread_target::wait): Update.
4707
0295dde6
AB
47082020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4709
4710 * compile/compile-object-run.c (create_copied_type_recursive): New
4711 function.
4712 (compile_object_run): Use new function.
4713
d3483b43
JT
47142020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4715
4716 * NEWS: Mention x86_64 Cygwin core file support.
4717
e7d612ad
JT
47182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4719
4720 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4721 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4722
aff9d387
JT
47232020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4724
62a5151b
JT
4725 * windows-tdep.h: Add prototypes.
4726 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4727 (i386_windows_core_pid_to_str): Move and rename ...
4728 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4729 (windows_core_pid_to_str): ... and here.
4730 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4731
47322020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4733 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4734 (amd64_windows_init_abi_common): ... and register.
4735
7d155da3
JT
47362020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4737
4738 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4739 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4740
e8ef12b9
PA
47412020-09-18 Pedro Alves <pedro@palves.net>
4742
4743 PR gdb/26631
4744 * thread.c (thread_find_command): Switch inferior before calling
4745 target methods.
4746
c1e1314d
TT
47472020-09-17 Tom Tromey <tromey@adacore.com>
4748
4749 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4750 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4751 (tdesc_arch_data_up): New typedef.
4752 (tdesc_use_registers, tdesc_data_alloc): Update.
4753 (tdesc_data_cleanup): Don't declare.
4754 * target-descriptions.c (tdesc_data_alloc): Return a
4755 tdesc_arch_data_up.
4756 (tdesc_arch_data_deleter::operator()): Rename from
4757 tdesc_data_cleanup. Change argument type.
4758 (tdesc_use_registers): Change early_data to an rvalue reference.
4759 (tdesc_use_registers): Don't use delete.
4760 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4761 * s390-tdep.c (s390_gdbarch_init): Update.
4762 * rx-tdep.c (rx_gdbarch_init): Update.
4763 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4764 * riscv-tdep.c (riscv_gdbarch_init): Update.
4765 * or1k-tdep.c (or1k_gdbarch_init): Update.
4766 * nios2-tdep.c (nios2_gdbarch_init): Update.
4767 * nds32-tdep.c (nds32_gdbarch_init): Update.
4768 * mips-tdep.c (mips_gdbarch_init): Update.
4769 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4770 * m68k-tdep.c (m68k_gdbarch_init): Update.
4771 * i386-tdep.c (i386_gdbarch_init): Update.
4772 * arm-tdep.c (arm_gdbarch_init): Update.
4773 * arc-tdep.c (arc_tdesc_init): Update.
4774 (arc_gdbarch_init): Update.
4775 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4776
0363df3d
HD
47772020-09-17 Hannes Domani <ssbssa@yahoo.de>
4778
4779 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4780 for WOW64 processes.
4781
280a9412
TT
47822020-09-17 Tom Tromey <tom@tromey.com>
4783
4784 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4785
6108fd18
TT
47862020-09-17 Tom Tromey <tom@tromey.com>
4787
4788 * value.c (preserve_values): Update.
4789 * python/py-type.c (save_objfile_types): Update.
4790 * guile/scm-type.c (save_objfile_types): Update.
4791 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4792 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4793 * compile/compile-object-run.c (compile_object_run): Update.
4794
fa9b1164
TT
47952020-09-17 Tom Tromey <tom@tromey.com>
4796
4797 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4798 Remove.
4799 <m_table>: Now htab_up.
4800 * typeprint.c (typedef_hash_table::recursively_update)
4801 (typedef_hash_table::add_template_parameters)
4802 (typedef_hash_table::typedef_hash_table): Update.
4803 (typedef_hash_table::~typedef_hash_table): Remove.
4804 (typedef_hash_table::typedef_hash_table)
4805 (typedef_hash_table::find_global_typedef)
4806 (typedef_hash_table::find_typedef): Update.
4807
eb53f105
TT
48082020-09-17 Tom Tromey <tom@tromey.com>
4809
4810 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4811
7a8a5d47
TT
48122020-09-17 Tom Tromey <tom@tromey.com>
4813
4814 * linespec.c (class decode_compound_collector)
4815 <~decode_compound_collector>: Remove.
4816 <m_unique_syms>: Now htab_up.
4817 (decode_compound_collector::operator ()): Update.
4818 (class symtab_collector) <~symtab_collector>: Remove.
4819 <m_symtab_table>: Now htab_up.
4820 (symtab_collector::operator ()): Update.
4821
99032cfc
TT
48222020-09-17 Tom Tromey <tom@tromey.com>
4823
4824 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4825 (filename_seen_cache::clear): Update.
4826 (~filename_seen_cache): Remove.
4827 (filename_seen_cache::seen): Update.
4828 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4829 htab_up.
4830 <~filename_seen_cache>: Remove.
4831 <traverse>: Update.
4832
32580f6d
TT
48332020-09-17 Tom Tromey <tom@tromey.com>
4834
4835 * completer.c (completion_tracker::discard_completions)
4836 (completion_tracker::~completion_tracker)
4837 (completion_tracker::maybe_add_completion)
4838 (completion_tracker::remove_completion)
4839 (completion_tracker::recompute_lowest_common_denominator)
4840 (completion_tracker::build_completion_result): Update.
4841 * completer.h (class completion_tracker) <have_completions>:
4842 Update.
4843 <m_entries_hash>: Now htab_up.
4844
c1fb9836
TT
48452020-09-17 Tom Tromey <tom@tromey.com>
4846
4847 * breakpoint.c (ambiguous_names_p): Use htab_up.
4848
88f07206
TT
48492020-09-17 Tom Tromey <tom@tromey.com>
4850
4851 * auto-load.c (struct auto_load_pspace_info)
4852 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4853 <loaded_script_files, loaded_script_texts>: Change type to
4854 htab_up.
4855 (~auto_load_pspace_info) Remove.
4856 (init_loaded_scripts_info, maybe_add_script_file)
4857 (maybe_add_script_text, auto_load_info_scripts): Update.
4858
9519b2ee
TT
48592020-09-17 Tom Tromey <tromey@adacore.com>
4860
4861 * c-exp.y (name_obstack): Now static.
4862
d2cd4113
CC
48632020-09-17 Chungyi Chi <demonic@csie.io>
4864
4865 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4866
b650a282
SM
48672020-09-16 Simon Marchi <simon.marchi@efficios.com>
4868
4869 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4870 (add_solib_catchpoint): Likewise.
4871 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4872 to bool.
4873 (add_solib_catchpoint): Change int parameter/variable to bool.
4874 (catch_load_or_unload): Likewise.
4875 (init_catchpoint): Likewise.
4876 (create_fork_vfork_event_catchpoint): Likewise.
4877 (catch_fork_command_1): Likewise.
4878 (catch_exec_command_1): Likewise.
4879
4d0bcfcf
SM
48802020-09-16 Simon Marchi <simon.marchi@efficios.com>
4881
4882 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4883 Change instance_flags to m_instance_flags.
4884
fe830662
TT
48852020-09-16 Tom Tromey <tromey@adacore.com>
4886
4887 PR gdb/26598:
4888 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4889
fe5ddfc3
JB
48902020-09-16 John Baldwin <jhb@FreeBSD.org>
4891
4892 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4893 PL_FLAG_EXEC.
4894 (fbsd_nat_target::insert_exec_catchpoint)
4895 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4896 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4897 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4898
e911c666
JB
48992020-09-16 John Baldwin <jhb@FreeBSD.org>
4900
4901 * configure.ac: Remove check for kinfo_getvmmap().
4902 * configure, config.in: Regenerate.
4903 * fbsd-nat.c (fbsd_read_mapping): Remove
4904 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4905 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4906 kinfo_get_vmmap() are always present.
4907
1f17d372
JB
49082020-09-16 John Baldwin <jhb@FreeBSD.org>
4909
4910 * fbsd-nat.c: Always include support for
4911 TARGET_OBJECT_SIGNAL_INFO.
4912
bcb1da7f
JB
49132020-09-16 John Baldwin <jhb@FreeBSD.org>
4914
4915 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4916 sysctl and remove procfs fallback.
4917
5515f729
JB
49182020-09-16 John Baldwin <jhb@FreeBSD.org>
4919
4920 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4921 * fbsd-nat.h: Likewise.
4922
da1df1db
TBA
49232020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4924
4925 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4926 argument.
4927
0e25e767
AB
49282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4929
4930 * ada-lang.c (ada_language_data): Delete.
4931 (ada_language): Remove references to ada_language_data.
4932 * c-lang.c (c_language_data): Delete.
4933 (c_language): Remove references to c_language_data.
4934 (cplus_language_data): Delete.
4935 (cplus_language): Remove references to cplus_language_data.
4936 (asm_language_data): Delete.
4937 (asm_language): Remove references to asm_language_data.
4938 (minimal_language_data): Delete.
4939 (minimal_language): Remove references to minimal_language_data.
4940 * d-lang.c (d_language_data): Delete.
4941 (d_language): Remove references to d_language_data.
4942 * f-lang.c (f_language_data): Delete.
4943 (f_language): Remove references to f_language_data.
4944 * go-lang.c (go_language_data): Delete.
4945 (go_language): Remove references to go_language_data.
4946 * language.c (unknown_language_data): Delete.
4947 (unknown_language): Remove references to unknown_language_data.
4948 (auto_language_data): Delete.
4949 (auto_language): Remove references to auto_language_data.
4950 * language.h (language_data): Delete struct.
4951 (language_defn): No longer inherit from language_data.
4952 * m2-lang.c (m2_language_data): Delete.
4953 (m2_language): Remove references to m2_language_data.
4954 * objc-lang.c (objc_language_data): Delete.
4955 (objc_language): Remove references to objc_language_data.
4956 * opencl-lang.c (opencl_language_data): Delete.
4957 (opencl_language): Remove references to opencl_language_data.
4958 * p-lang.c (pascal_language_data): Delete.
4959 (pascal_language): Remove references to pascal_language_data.
4960 * rust-lang.c (rust_language_data): Delete.
4961 (rust_language): Remove references to rust_language_data.
4962
b7c6e27d
AB
49632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4964
4965 * ada-lang.c (ada_language_data): Remove la_op_print_tab
4966 initializer.
4967 (ada_language::opcode_print_table): New member function.
4968 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
4969 (c_language::opcode_print_table): New member function.
4970 (cplus_language_data): Remove la_op_print_tab initializer.
4971 (cplus_language::opcode_print_table): New member function.
4972 (asm_language_data): Remove la_op_print_tab initializer.
4973 (asm_language::opcode_print_table): New member function.
4974 (minimal_language_data): Remove la_op_print_tab initializer.
4975 (minimal_language::opcode_print_table): New member function.
4976 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
4977 (d_language::opcode_print_table): New member function.
4978 * expprint.c (print_subexp_standard): Update call to
4979 opcode_print_table.
4980 (op_string): Likewise.
4981 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
4982 (f_language::opcode_print_table): New member function.
4983 * go-lang.c (go_language_data): Remove la_op_print_tab
4984 initializer.
4985 (go_language::opcode_print_table): New member function.
4986 * language.c (unknown_language_data): Remove la_op_print_tab
4987 initializer.
4988 (unknown_language::opcode_print_table): New member function.
4989 (auto_language_data): Remove la_op_print_tab initializer.
4990 (auto_language::opcode_print_table): New member function.
4991 * language.h (language_data): Remove la_op_print_tab field.
4992 (language_defn::opcode_print_table): Declare new member function.
4993 * m2-lang.c (m2_language_data): Remove la_op_print_tab
4994 initializer.
4995 (m2_language::opcode_print_table): New member function.
4996 * objc-lang.c (objc_language_data): Remove la_op_print_tab
4997 initializer.
4998 (objc_language::opcode_print_table): New member function.
4999 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
5000 initializer.
5001 (opencl_language::opcode_print_table): New member function.
5002 * p-lang.c (pascal_language_data): Remove la_op_print_tab
5003 initializer.
5004 (pascal_language::opcode_print_table): New member function.
5005 * rust-lang.c (rust_language_data): Remove la_op_print_tab
5006 initializer.
5007 (rust_language::opcode_print_table): New member function.
5008
5aba6ebe
AB
50092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5010
5011 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
5012 (ada_language::expression_ops): New member function.
5013 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
5014 (c_language::expression_ops): New member function.
5015 (cplus_language_data): Remove la_exp_desc initializer.
5016 (cplus_language::expression_ops): New member function.
5017 (asm_language_data): Remove la_exp_desc initializer.
5018 (asm_language::expression_ops): New member function.
5019 (minimal_language_data): Remove la_exp_desc initializer.
5020 (minimal_language::expression_ops): New member function.
5021 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
5022 (d_language::expression_ops): New member function.
5023 * eval.c (evaluate_subexp): Update call to expression_ops.
5024 * expprint.c (print_subexp): Likewise.
5025 (op_name): Likewise.
5026 (dump_subexp_body): Likewise.
5027 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
5028 (f_language::expression_ops): New member function.
5029 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
5030 (go_language::expression_ops): New member function.
5031 * language.c (language_defn::expression_ops): New function.
5032 (unknown_language_data): Remove la_exp_desc initializer.
5033 (auto_language_data): Likewise.
5034 * language.h (language_data): Remove la_exp_desc field.
5035 (language_defn::expression_ops): Declare new member function.
5036 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
5037 (m2_language::expression_ops): New member function.
5038 * objc-lang.c (objc_language_data): Remove la_exp_desc
5039 initializer.
5040 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
5041 initializer.
5042 (opencl_language::expression_ops): New member function.
5043 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
5044 * parse.c (operator_length): Update call to expression_ops.
5045 (exp_iterate): Likewise.
5046 * rust-lang.c (rust_language_data): Remove la_exp_desc
5047 initializer.
5048 (ruse_language::expression_ops): New member function.
5049
b63a3f3f
AB
50502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5051
5052 * ada-lang.c (ada_language_data): Remove la_varobj_ops
5053 initializer.
5054 (ada_language::varobj_ops): New member function.
5055 * c-lang.c (c_language_data): Remove la_varobj_ops
5056 initializer.
5057 (cplus_language_data): Likewise.
5058 (cplus_language::varobj_ops): New member function.
5059 (asm_language_data): Remove la_varobj_ops initializer.
5060 (minimal_language_data): Likewise.
5061 * d-lang.c (d_language_data): Likewise.
5062 * f-lang.c (f_language_data): Likewise.
5063 * go-lang.c (go_language_data): Likewise.
5064 * language.c (language_defn::varobj_ops): New function.
5065 (unknown_language_data): Remove la_varobj_ops
5066 initializer.
5067 (auto_language_data): Likewise.
5068 * language.h (language_data): Remove la_varobj_ops field.
5069 (language_defn::varobj_ops): Declare new member function.
5070 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
5071 * objc-lang.c (objc_language_data): Likewise.
5072 * opencl-lang.c (opencl_language_data): Likewise.
5073 * p-lang.c (pascal_language_data): Likewise.
5074 * rust-lang.c (rust_language_data): Likewise.
5075 * varobj.c (varobj_create): Update call to varobj_ops.
5076 * varobj.h (default_varobj_ops): Delete define.
5077
1ac14a04
AB
50782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * ada-lang.c (ada_language_data): Remove la_macro_expansion
5081 initializer.
5082 * c-lang.c (c_language_data): Likewise.
5083 (c_language::macro_expansion): New member function.
5084 (cplus_language_data): Likewise.
5085 (cplus_language::macro_expansion): New member function.
5086 (asm_language_data): Likewise.
5087 (asm_language::macro_expansion): New member function.
5088 (minimal_language_data): Likewise.
5089 (minimal_language::macro_expansion): New member function.
5090 * d-lang.c (d_language_data): Remove la_macro_expansion
5091 initializer.
5092 * f-lang.c (f_language_data): Likewise.
5093 * go-lang.c (go_language_data): Likewise.
5094 * language.c (unknown_language_data): Likewise.
5095 (auto_language_data): Likewise.
5096 * language.h (language_data): Remove la_macro_expansion field.
5097 (language_defn::macro_expansion): New member function.
5098 * m2-lang.c (m2_language_data): Remove la_macro_expansion
5099 initializer.
5100 * objc-lang.c (objc_language_data): Likewise.
5101 (objc_language::macro_expansion): New member function.
5102 * opencl-lang.c (opencl_language_data): Likewise.
5103 (opencl_language::macro_expansion): New member function.
5104 * p-lang.c (pascal_language_data): Remove la_macro_expansion
5105 initializer.
5106 * rust-lang.c (rust_language_data): Likewise.
5107 * symtab.c (default_collect_symbol_completion_matches_break_on):
5108 Update call to macro_expansion.
5109
3a3440fb
AB
51102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5111
5112 * ada-lang.c (ada_language_data): Remove la_array_ordering
5113 initializer.
5114 * c-lang.c (c_language_data): Likewise.
5115 (cplus_language_data): Likewise.
5116 (asm_language_data): Likewise.
5117 (minimal_language_data): Likewise.
5118 * d-lang.c (d_language_data): Likewise.
5119 * dwarf2/read.c (read_array_order): Update for call to
5120 array_ordering.
5121 * f-lang.c (f_language_data): Remove la_array_ordering
5122 initializer.
5123 (f_language::array_ordering): New member function.
5124 * go-lang.c (go_language_data): Remove la_array_ordering
5125 initializer.
5126 * language.c (unknown_language_data): Likewise.
5127 (auto_language_data): Likewise.
5128 * language.h (language_data): Delete la_array_ordering field.
5129 (language_defn::array_ordering): New member function.
5130 * m2-lang.c (m2_language_data): Remove la_array_ordering
5131 initializer.
5132 * objc-lang.c (objc_language_data): Likewise.
5133 * opencl-lang.c (opencl_language_data): Likewise.
5134 * p-lang.c (pascal_language_data): Likewise.
5135 * rust-lang.c (rust_language_data): Likewise.
5136
0d201fa4
AB
51372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5140 initializer.
5141 * c-lang.c (c_language_data): Likewise.
5142 (cplus_language_data): Likewise.
5143 (asm_language_data): Likewise.
5144 (minimal_language_data): Likewise.
5145 * d-lang.c (d_language_data): Likewise.
5146 * f-lang.c (f_language_data): Likewise.
5147 (f_language::case_sensitivity): New member function.
5148 * go-lang.c (go_language_data): Remove la_case_sensitivity
5149 initializer.
5150 * language.c (enum case_mode): Moved here from language.h.
5151 (case_mode): Make static.
5152 (show_case_command): Update for case_sensitivity being a method.
5153 (set_case_command): Likewise.
5154 (set_range_case): Likewise.
5155 (unknown_language_data): Remove la_case_sensitivity initializer.
5156 (auto_language_data): Likewise.
5157 * language.h (case_mode): Delete, move enum declaration to
5158 language.c.
5159 (language_data): Delete la_case_sensitivity field.
5160 (language_defn::case_sensitivity): New member function.
5161 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5162 initializer.
5163 * objc-lang.c (objc_language_data): Likewise.
5164 * opencl-lang.c (opencl_language_data): Likewise.
5165 * p-lang.c (pascal_language_data): Likewise.
5166 * rust-lang.c (rust_language_data): Likewise.
5167
efdf6a73
AB
51682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5169
5170 * ada-lang.c (ada_language_data): Remove la_range_check
5171 initializer.
5172 * c-lang.c (c_language_data): Likewise.
5173 (cplus_language_data): Likewise.
5174 (asm_language_data): Likewise.
5175 (minimal_language_data): Likewise.
5176 * d-lang.c (d_language_data): Likewise.
5177 * f-lang.c (f_language_data): Likewise.
5178 (f_language::range_checking_on_by_default): New member function.
5179 * go-lang.c (go_language_data): Remove la_range_check initializer.
5180 * language.c (enum range_mode): Moved here from language.h.
5181 (range_mode): Made static.
5182 (show_range_command): Update to use
5183 range_checking_on_by_default.
5184 (set_range_command): Likewise.
5185 (set_range_case): Likewise.
5186 (unknown_language_data): Remove la_range_check initializer.
5187 (auto_language_data): Likewise.
5188 * language.h (range_mode): Delete. Enum definition moved to
5189 language.c.
5190 (language_data): Remove la_range_check field.
5191 (language_defn::range_checking_on_by_default): New member
5192 function.
5193 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5194 (m2_language::range_checking_on_by_default): New member function.
5195 * objc-lang.c (objc_language_data): Remove la_range_check
5196 initializer.
5197 * opencl-lang.c (opencl_language_data): Likewise.
5198 * p-lang.c (pascal_language_data): Likewise.
5199 (pascal_language::range_checking_on_by_default): New member
5200 function.
5201 * rust-lang.c (rust_language_data): Remove la_range_check
5202 initializer.
5203 (rust_language::range_checking_on_by_default): New member
5204 function.
5205
bf92aec5
AB
52062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5207
5208 * dwarf2/read.c (dwarf2_physname): Remove special case for
5209 language_go.
5210 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5211 member function.
5212
d3355e4d
AB
52132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5214
5215 * ada-lang.c (ada_language_data): Remove
5216 la_store_sym_names_in_linkage_form_p initializer.
5217 (ada_language::store_sym_names_in_linkage_form_p): New member
5218 function.
5219 * c-lang.c (c_language_data): Remove
5220 la_store_sym_names_in_linkage_form_p initializer.
5221 (c_language::store_sym_names_in_linkage_form_p): New member
5222 function.
5223 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5224 initializer.
5225 (asm_language_data): Likewise.
5226 (asm_language::store_sym_names_in_linkage_form_p): New member
5227 function.
5228 (minimal_language_data): Remove
5229 la_store_sym_names_in_linkage_form_p initializer.
5230 (minimal_language::store_sym_names_in_linkage_form_p): New member
5231 function.
5232 * d-lang.c (d_language_data): Remove
5233 la_store_sym_names_in_linkage_form_p initializer.
5234 * dwarf2/read.c (dwarf2_physname): Update call to
5235 store_sym_names_in_linkage_form_p.
5236 * f-lang.c (f_language_data): Remove
5237 la_store_sym_names_in_linkage_form_p initializer.
5238 * go-lang.c (go_language_data): Remove
5239 la_store_sym_names_in_linkage_form_p initializer.
5240 * language.c (unknown_language_data): Remove
5241 la_store_sym_names_in_linkage_form_p initializer.
5242 (unknown_language::store_sym_names_in_linkage_form_p): New member
5243 function.
5244 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5245 initializer.
5246 (auto_language::store_sym_names_in_linkage_form_p): New member
5247 function.
5248 * language.h (language_data): Remove
5249 la_store_sym_names_in_linkage_form_p member variable.
5250 (language_defn::store_sym_names_in_linkage_form_p): New member
5251 function.
5252 * m2-lang.c (m2_language_data): Remove
5253 la_store_sym_names_in_linkage_form_p initializer.
5254 * objc-lang.c (objc_language_data): Likewise.
5255 * opencl-lang.c (opencl_language_data): Likewise.
5256 * p-lang.c (pascal_language_data): Likewise.
5257 * rust-lang.c (rust_language_data): Likewise.
5258
22c12a6c
AB
52592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5260
5261 * ada-lang.c (ada_language_data): Remove string_lower_bound
5262 initializer.
5263 * c-lang.c (c_language_data): Likewise.
5264 (cplus_language_data): Likewise.
5265 (asm_language_data): Likewise.
5266 (minimal_language_data): Likewise.
5267 * d-lang.c (d_language_data): Likewise.
5268 * f-lang.c (f_language_data): Likewise.
5269 * go-lang.c (go_language_data): Likewise.
5270 * language.c (unknown_language_data): Likewise.
5271 (auto_language_data): Likewise.
5272 * language.h (language_data): Remove string_lower_bound field.
5273 (language_defn::string_lower_bound): New member function.
5274 * m2-lang.c (m2_language_data): Remove string_lower_bound
5275 initializer.
5276 (m2_language::string_lower_bound): New member function.
5277 * objc-lang.c (objc_language_data): Remove string_lower_bound
5278 initializer.
5279 * opencl-lang.c (opencl_language_data): Likewise.
5280 * p-lang.c (pascal_language_data): Likewise.
5281 * rust-lang.c (rust_language_data): Likewise.
5282 * valops.c (value_cstring): Update call to string_lower_bound.
5283 (value_string): Likewise.
5284 * value.c (allocate_repeated_value): Likewise.
5285
1c236ddd
AB
52862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5287
5288 * valops.c (value_repeat): Fix incorrect argument name in comment.
5289
67bd3fd5
AB
52902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5291
5292 * ada-lang.c (ada_language_data): Remove c_style_arrays
5293 initializer.
5294 (ada_language::c_style_arrays_p): New member fuction.
5295 * c-lang.c (c_language_data): Remove c_style_arrays
5296 initializer.
5297 (cplus_language_data): Likewise.
5298 (asm_language_data): Likewise.
5299 (minimal_language_data): Likewise.
5300 * d-lang.c (d_language_data): Likewise.
5301 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5302 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5303 (f_language::c_style_arrays_p): New member function.
5304 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5305 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5306 * language.c (unknown_language_data): Remove c_style_arrays
5307 initializer.
5308 (auto_language_data): Likewise.
5309 * language.h (language_data): Remove c_style_arrays field.
5310 (language_defn::c_style_arrays_p): New member function.
5311 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5312 (m2_language::c_style_arrays_p): New member function.
5313 * objc-lang.c (objc_language_data): Remove c_style_arrays
5314 initializer.
5315 * opencl-lang.c (opencl_language_data): Likewise.
5316 * p-lang.c (pascal_language_data): Likewise.
5317 * rust-lang.c (rust_language_data): Likewise.
5318 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5319 and update local variable to a bool.
5320 * valops.c (value_cast): Update call to c_style_arrays_p.
5321 (value_array): Likewise.
5322 * value.c (coerce_array): Likewise.
5323
85967615
AB
53242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5325
5326 * ada-lang.c (ada_language_data): Remove la_language initializer.
5327 * c-lang.c (c_language_data): Likewise.
5328 (cplus_language_data): Likewise.
5329 (asm_language_data): Likewise.
5330 (minimal_language_data): Likewise.
5331 * d-lang.c (d_language_data): Likewise.
5332 * f-lang.c (f_language_data): Likewise.
5333 * go-lang.c (go_language_data): Likewise.
5334 * language.c (unknown_language_data): Likewise.
5335 (auto_language_data): Likewise.
5336 * language.h (language_data): Remove la_language field.
5337 (language_defn::language_defn): Initialise la_language field.
5338 (language_defn::la_language): New member variable.
5339 * m2-lang.c (m2_language_data): Remove la_language field.
5340 * objc-lang.c (objc_language_data): Likewise.
5341 * opencl-lang.c (opencl_language_data): Likewise.
5342 * p-lang.c (pascal_language_data): Likewise.
5343 * rust-lang.c (rust_language_data): Likewise.
5344
e171d6f1
AB
53452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5346
5347 * ada-lang.c (ada_extensions): Delete, moved into
5348 ada_language::filename_extensions.
5349 (ada_language_data): Remove la_filename_extensions initializer.
5350 (ada_language::filename_extensions): New member function.
5351 * c-lang.c (c_extensions): Delete, moved into
5352 c_language::filename_extensions.
5353 (c_language_data): Remove la_filename_extensions initializer.
5354 (c_language::filename_extensions): New member function.
5355 (cplus_extensions): Delete, moved into
5356 cplus_language::filename_extensions.
5357 (cplus_language_data): Remove la_filename_extensions initializer.
5358 (cplus_language::filename_extensions): New member function.
5359 (asm_extensions): Delete, moved into
5360 asm_language::filename_extensions.
5361 (asm_language_data): Remove la_filename_extensions initializer.
5362 (asm_language::filename_extensions): New member function.
5363 (minimal_language_data): Remove la_filename_extensions
5364 initializer.
5365 * d-lang.c (d_extensions): Delete, moved into
5366 d_language::filename_extensions.
5367 (d_language_data): Remove la_filename_extensions initializer.
5368 (d_language::filename_extensions): New member function.
5369 * f-lang.c (f_extensions): Delete, moved into
5370 f_language::filename_extensions.
5371 (f_language_data): Remove la_filename_extensions initializer.
5372 (f_language::filename_extensions): New member function.
5373 * go-lang.c (go_language_data): Remove la_filename_extensions
5374 initializer.
5375 * language.c (add_set_language_command): Update now that
5376 filename_extensions returns a vector.
5377 (unknown_language_data): Remove la_filename_extensions
5378 initializer.
5379 (auto_language_data): Likewise.
5380 * language.h (language_data): Remove la_filename_extensions field.
5381 (language_defn::filename_extensions): New member function.
5382 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5383 initializer.
5384 * objc-lang.c (objc_extensions): Delete, moved into
5385 objc_language::filename_extensions.
5386 (objc_language_data): Remove la_filename_extensions initializer.
5387 (objc_language::filename_extensions): New member function.
5388 * opencl-lang.c (opencl_language_data): Remove
5389 la_filename_extensions initializer.
5390 * p-lang.c (pascal_extensions): Delete, moved into
5391 pascal_language::filename_extensions.
5392 (pascal_language_data): Remove la_filename_extensions initializer.
5393 (pascal_language::filename_extensions): New member function.
5394 * rust-lang.c (rust_extensions): Delete, moved into
5395 rust_language::filename_extensions.
5396 (rust_language_data): Remove la_filename_extensions initializer.
5397 (rust_language::filename_extensions): New member function.
5398 * symfile.c (add_filename_language): Add new assert.
5399
6f7664a9
AB
54002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * ada-lang.c (ada_language_data): Remove la_name and
5403 la_natural_name initializers.
5404 (ada_language::name): New member function.
5405 (ada_language::natural_name): New member function.
5406 * c-lang.c (c_language_data): Remove la_name and
5407 la_natural_name initializers.
5408 (c_language::name): New member function.
5409 (c_language::natural_name): New member function.
5410 (cplus_language_data): Remove la_name and
5411 la_natural_name initializers.
5412 (cplus_language::name): New member function.
5413 (cplus_language::natural_name): New member function.
5414 (asm_language_data): Remove la_name and
5415 la_natural_name initializers.
5416 (asm_language::name): New member function.
5417 (asm_language::natural_name): New member function.
5418 (minimal_language_data): Remove la_name and
5419 la_natural_name initializers.
5420 (minimal_language::name): New member function.
5421 (minimal_language::natural_name): New member function.
5422 * compile/compile.c (compile_to_object): Update call to
5423 lanugage_defn::name.
5424 * d-lang.c (d_language_data): Remove la_name and
5425 la_natural_name initializers.
5426 (d_language::name): New member function.
5427 (d_language::natural_name): New member function.
5428 * expprint.c (print_subexp_standard): Update call to
5429 language_defn::name.
5430 (dump_raw_expression): Likewise
5431 (dump_prefix_expression): Likewise.
5432 * f-lang.c (f_language_data): Remove la_name and
5433 la_natural_name initializers.
5434 (f_language::name): New member function.
5435 (f_language::natural_name): New member function.
5436 * go-lang.c (go_language_data): Remove la_name and
5437 la_natural_name initializers.
5438 (go_language::name): New member function.
5439 (go_language::natural_name): New member function.
5440 * language.c (show_language_command): Update call to
5441 language_defn::name.
5442 (set_language_command): Likewise.
5443 (language_enum): Likewise.
5444 (language_str): Likewise.
5445 (add_set_language_command): Likewise, use
5446 language_defn::natural_name in the doc string.
5447 (unknown_language_data): Remove la_name and
5448 la_natural_name initializers.
5449 (unknown_language::name): New member function.
5450 (unknown_language::natural_name): New member function.
5451 (auto_language_data): Remove la_name and
5452 la_natural_name initializers.
5453 (auto_language::name): New member function.
5454 (auto_language::natural_name): New member function.
5455 (language_lookup_primitive_type_as_symbol): Update call to
5456 language_defn::name.
5457 * language.h (language_data): Remove la_name and la_natural_name
5458 member variables.
5459 (language_defn::name): New member function.
5460 (language_defn::natural_name): New member function.
5461 * m2-lang.c (m2_language_data): Remove la_name and
5462 la_natural_name initializers.
5463 (m2_language::name): New member function.
5464 (m2_language::natural_name): New member function.
5465 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5466 language_defn::natural_name.
5467 * objc-lang.c (objc_language_data): Remove la_name and
5468 la_natural_name initializers.
5469 (objc_language::name): New member function.
5470 (objc_language::natural_name): New member function.
5471 * opencl-lang.c (opencl_language_data): Remove la_name and
5472 la_natural_name initializers.
5473 (opencl_language::name): New member function.
5474 (opencl_language::natural_name): New member function.
5475 * p-lang.c (pascal_language_data): Remove la_name and
5476 la_natural_name initializers.
5477 (pascal_language::name): New member function.
5478 (pascal_language::natural_name): New member function.
5479 * rust-lang.c (rust_language_data): Remove la_name and
5480 la_natural_name initializers.
5481 (rust_language::name): New member function.
5482 (rust_language::natural_name): New member function.
5483 * symtab.c (lookup_language_this): Update call to
5484 language_defn::name.
5485
5bae7c4e
AB
54862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5487
5488 * ada-lang.c (ada_language_data): Remove la_name_of_this
5489 initializer.
5490 * ax-gdb.c (gen_expr): Update call to name_of_this.
5491 * c-exp.y (classify_name): Likewise.
5492 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5493 (cplus_language_data): Likewise.
5494 (cplus_language::name_of_this): New member function.
5495 (asm_language_data): Remove la_name_of_this initializer.
5496 (minimal_language_data): Likewise.
5497 * d-lang.c (d_language_data): Likewise.
5498 (d_language::name_of_this): New member function.
5499 * expprint.c (print_subexp_standard): Update call to name_of_this.
5500 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5501 * go-lang.c (go_language_data): Likewise.
5502 * language.c (unknown_language_data): Likewise.
5503 (unknown_language::name_of_this): New member function.
5504 (auto_language_data): Remove la_name_of_this initializer.
5505 (auto_language::name_of_this): New member function.
5506 * language.h (language_data): Delete la_name_of_this member
5507 variable.
5508 (language_defn::name_of_this): New member function.
5509 * m2-lang.c (m2_language_data): Remove la_name_of_this
5510 initializer.
5511 * objc-lang.c (objc_language_data): Likewise.
5512 (objc_language::name_of_this): New member function.
5513 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5514 initializer.
5515 * p-lang.c (pascal_language_data): Likewise.
5516 (pascal_language::name_of_this): New member function.
5517 * rust-lang.c (rust_language_data): Remove la_name_of_this
5518 initializer.
5519 * symtab.c (lookup_language_this): Update call to name_of_this.
5520 (lookup_symbol_aux): Likewise.
5521 * valops.c (value_of_this): Likewise.
5522
22e3f3ed
AB
55232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5524
5525 * ada-lang.c (ada_language_data): Remove
5526 la_struct_too_deep_ellipsis initializer.
5527 (ada_language::struct_too_deep_ellipsis): New member function.
5528 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5529 initializer.
5530 (cplus_language_data): Likewise.
5531 (asm_language_data): Likewise.
5532 (minimal_language_data): Likewise.
5533 * cp-valprint.c (cp_print_value): Update call to
5534 struct_too_deep_ellipsis.
5535 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5536 initializer.
5537 * f-lang.c (f_language_data): Likewise.
5538 (f_language::struct_too_deep_ellipsis): New member function.
5539 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5540 initializer.
5541 * language.c (unknown_language_data): Likewise.
5542 (auto_language_data): Likewise.
5543 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5544 member variable.
5545 (language_defn::struct_too_deep_ellipsis): New member function.
5546 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5547 initializer.Q
5548 * objc-lang.c (objc_language_data): Likewise.
5549 * opencl-lang.c (opencl_language_data): Likewise.
5550 * p-lang.c (pascal_language_data): Likewise.
5551 * rust-lang.c (rust_language_data): Likewise.
5552 * valprint.c (val_print_check_max_depth): Update call to
5553 struct_too_deep_ellipsis.
5554
ed29e1c7
FW
55552020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5556
5557 * MAINTAINERS (Write After Approval): Add myself.
5558
12d8f940
TT
55592020-09-15 Tom Tromey <tom@tromey.com>
5560
5561 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5562 Remove.
5563
6b5a7bc7
TT
55642020-09-15 Tom Tromey <tom@tromey.com>
5565
5566 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5567 and TYPE_CODE_METHODPTR cases.
5568 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5569 (c_value_print_inner): Update.
5570 * valprint.c (generic_value_print_memberptr): New function, from
5571 c_value_print_memberptr.
5572 (generic_value_print): Use it. Call cplus_print_method_ptr.
5573
47f0e2ff
TT
55742020-09-15 Tom Tromey <tromey@adacore.com>
5575
5576 * python/python-internal.h (PyInt_FromLong): Remove define.
5577 * python/py-value.c (convert_value_from_python): Use
5578 gdb_py_object_from_longest.
5579 * python/py-type.c (typy_get_code): Use
5580 gdb_py_object_from_longest.
5581 * python/py-symtab.c (salpy_get_line): Use
5582 gdb_py_object_from_longest.
5583 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5584 gdb_py_object_from_longest.
5585 * python/py-record.c (recpy_gap_reason_code): Use
5586 gdb_py_object_from_longest.
5587 * python/py-record-btrace.c (recpy_bt_insn_size)
5588 (recpy_bt_func_level, btpy_list_count): Use
5589 gdb_py_object_from_longest.
5590 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5591 gdb_py_object_from_longest. Fix error handling.
5592 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5593 gdb_py_object_from_longest.
5594 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5595 gdb_py_object_from_longest.
5596 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5597 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5598 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5599
512116ce
TT
56002020-09-15 Tom Tromey <tromey@adacore.com>
5601
5602 * python/python.c (gdbpy_parameter_value): Use
5603 gdb_py_object_from_ulongest.
5604
4ab1029c
TT
56052020-09-15 Tom Tromey <tromey@adacore.com>
5606
5607 * python/py-infevents.c (create_register_changed_event_object):
5608 Use gdb_py_object_from_longest.
5609 * python/py-exitedevent.c (create_exited_event_object): Use
5610 gdb_py_object_from_longest.
5611
062534d4
TT
56122020-09-15 Tom Tromey <tromey@adacore.com>
5613
5614 * python/python.c (gdbpy_parameter_value): Use
5615 gdb_py_object_from_longest.
5616 * python/py-type.c (convert_field, typy_range): Use
5617 gdb_py_object_from_longest.
5618 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5619 gdb_py_object_from_longest.
5620 * python/py-lazy-string.c (stpy_get_length): Use
5621 gdb_py_object_from_longest.
5622 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5623 gdb_py_object_from_longest.
5624 * python/py-infevents.c (create_memory_changed_event_object): Use
5625 gdb_py_object_from_longest.
5626 * python/py-inferior.c (infpy_get_num): Use
5627 gdb_py_object_from_longest.
5628 (infpy_get_pid): Likewise.
5629
d1cab987
TT
56302020-09-15 Tom Tromey <tromey@adacore.com>
5631
5632 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5633 defines.
5634 * python/py-value.c (valpy_long): Use
5635 gdb_py_object_from_ulongest.
5636 * python/py-symtab.c (salpy_get_pc): Use
5637 gdb_py_object_from_ulongest.
5638 (salpy_get_last): Likewise.
5639 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5640 gdb_py_object_from_ulongest.
5641 * python/py-lazy-string.c (stpy_get_address): Use
5642 gdb_py_object_from_ulongest.
5643 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5644 * python/py-arch.c (archpy_disassemble): Use
5645 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5646 error handling.
5647
4bde49dc
TT
56482020-09-15 Tom Tromey <tromey@adacore.com>
5649
5650 * python/python-internal.h (gdb_py_long_from_longest): Remove
5651 defines.
5652 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5653 * python/py-type.c (convert_field, typy_get_sizeof): Use
5654 gdb_py_object_from_longest.
5655 * python/py-record-btrace.c (btpy_list_index): Use
5656 gdb_py_object_from_longest.
5657
37431074
TT
56582020-09-15 Tom Tromey <tromey@adacore.com>
5659
5660 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5661 * python/py-record.c (recpy_element_number): Use
5662 gdb_py_object_from_longest.
5663 (recpy_gap_number): Likewise.
5664
cbe25684
TT
56652020-09-15 Tom Tromey <tromey@adacore.com>
5666
5667 * top.c (ui::ui): Update.
5668 (highest_ui_num): Remove.
5669 * top.h (struct ui) <num>: Remove.
5670
db92ac45
TT
56712020-09-15 Tom Tromey <tromey@adacore.com>
5672
5673 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5674 * ui-style.c (ansi_regex_text): Now array.
5675 * rust-exp.y (number_regex_text): Now array.
5676 * linespec.c (linespec_quote_characters): Now array.
5677 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5678 Now arrays.
5679
d2b31b67
SM
56802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5681
5682 * debuginfod-support.c (debuginfod_client_deleter): New.
5683 (debuginfod_client_up): New.
5684 (debuginfod_init): Return debuginfod_client_up.
5685 (debuginfod_source_query): Adjust.
5686 (debuginfod_debuginfo_query): Adjust.
5687
3246bd8e
SM
56882020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5689
5690 * debuginfod-support.c (debuginfod_source_query): Use
5691 make_unique_xstrdup.
5692
10242f36
SM
56932020-09-14 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5696 with `type::instance_flags`.
5697
e1044e6a
MM
56982020-09-14 Michael Mullin <masmullin@gmail.com>
5699
5700 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5701 Remove baton parameter.
5702
04902b09
PA
57032020-09-14 Pedro Alves <pedro@palves.net>
5704
5705 * Makefile.in (SELFTESTS_SRCS): Add
5706 unittests/enum-flags-selftests.c.
5707 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5708 btrace_function_flags instead of enum btrace_function_flag.
5709 * compile/compile-c-types.c (convert_qualified): Use
5710 enum_flags::raw.
5711 * compile/compile-cplus-symbols.c (convert_one_symbol)
5712 (convert_symbol_bmsym):
5713 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5714 (compile_cplus_convert_struct_or_union_methods)
5715 (compile_cplus_instance::convert_qualified_base):
5716 * go-exp.y (parse_string_or_char): Add cast to int.
5717 * unittests/enum-flags-selftests.c: New file.
5718 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5719 type to btrace_thread_flags from btrace_thread_flag.
5720 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5721 local's type to btrace_thread_flags from btrace_thread_flag. Add
5722 cast in DEBUG call.
5723
69896a2c
PA
57242020-09-14 Pedro Alves <pedro@palves.net>
5725
5726 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5727 * gdbtypes.c (address_space_name_to_int): Rename to ...
5728 (address_space_name_to_type_instance_flags): ... this.
5729 (address_space_int_to_name): Rename to ...
5730 (address_space_type_instance_flags_to_name): ... this.
5731 * gdbtypes.h (address_space_name_to_int): Rename to ...
5732 (address_space_name_to_type_instance_flags): ... this.
5733 (address_space_int_to_name): Rename to ...
5734 (address_space_type_instance_flags_to_name): ... this.
5735 * type-stack.c (type_stack::insert): Adjust to rename.
5736 * type-stack.h (type_stack::insert): Likewise.
5737
314ad88d
PA
57382020-09-14 Pedro Alves <pedro@palves.net>
5739 Andrew Burgess <andrew.burgess@embecosm.com>
5740
5741 * avr-tdep.c (avr_address_class_type_flags): Return
5742 type_instance_flags.
5743 (avr_address_class_type_flags_to_name): Take a
5744 type_instance_flags.
5745 (avr_address_class_name_to_type_flags): Return bool and take a
5746 type_instance_flags.
5747 * d-lang.c (build_d_types): Use type::set_instance_flags.
5748 * ft32-tdep.c (ft32_address_class_type_flags): Return
5749 type_instance_flags.
5750 (ft32_address_class_type_flags_to_name): Take a
5751 type_instance_flags.
5752 (ft32_address_class_name_to_type_flags): Return bool and take a
5753 type_instance_flags.
5754 (ft32_gdbarch_init): Use type::set_instance_flags.
5755 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5756 * gdbarch.h, gdbarch.c: Regenerate.
5757 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5758 (address_class_name_to_type_flags): Use type_instance_flags and
5759 bool.
5760 * gdbtypes.c (address_space_name_to_int)
5761 (address_space_int_to_name, make_qualified_type): Use
5762 type_instance_flags.
5763 (make_qualified_type): Use type_instance_flags and
5764 type::set_instance_flags.
5765 (make_type_with_address_space, make_cv_type, make_vector_type)
5766 (check_typedef): Use type_instance_flags.
5767 (recursive_dump_type): Cast type_instance_flags to unsigned for
5768 printing.
5769 (copy_type_recursive): Use type::set_instance_flags.
5770 (gdbtypes_post_init): Use type::set_instance_flags.
5771 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5772 <m_instance_flags>: ... this.
5773 <instance_flags, set_instance_flags>: New methods.
5774 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5775 (SET_TYPE_INSTANCE_FLAGS): New.
5776 (address_space_name_to_int, address_space_int_to_name)
5777 (make_type_with_address_space): Pass flags using
5778 type_instance_flags instead of int.
5779 * stabsread.c (cleanup_undefined_types_noname): Use
5780 type::set_instance_flags.
5781 * s390-tdep.c (s390_address_class_type_flags): Return
5782 type_instance_flags.
5783 (s390_address_class_type_flags_to_name): Take a
5784 type_instance_flags.
5785 (s390_address_class_name_to_type_flags): Return bool and take a
5786 type_instance_flags.
5787 * type-stack.c (type_stack::follow_types): Use
5788 type_instance_flags.
5789 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5790
27087b7f
TT
57912020-09-14 Tom Tromey <tromey@adacore.com>
5792
5793 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5794 * x86-tdep.c (x86_is_thunk_register_name)
5795 (x86_in_indirect_branch_thunk): Update.
5796 * sparc64-tdep.c (sparc64_fpu_register_names)
5797 (sparc64_cp0_register_names, sparc64_register_names)
5798 (sparc64_pseudo_register_names): Now const.
5799 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5800 cp0_registers_num>: Now const.
5801 * sparc-tdep.c (sparc_core_register_names)
5802 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5803 (sparc32_pseudo_register_names): Now const.
5804 (validate_tdesc_registers): Update.
5805 * rust-lang.c (rust_extensions): Now const.
5806 * p-lang.c (p_extensions): Now const.
5807 * objc-lang.c (objc_extensions): Now const.
5808 * nto-tdep.c (nto_thread_state_str): Now const.
5809 * moxie-tdep.c (moxie_register_names): Now const.
5810 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5811 Now const.
5812 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5813 (mips_linux_reg_names): Now const.
5814 (mips_gdbarch_init): Update.
5815 * microblaze-tdep.c (microblaze_register_names): Now const.
5816 * m68k-tdep.c (m68k_register_names): Now const.
5817 * m32r-tdep.c (m32r_register_names): Now const.
5818 * ia64-tdep.c (ia64_register_names): Now const.
5819 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5820 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5821 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5822 ymm_avx512_register_names, pkeys_register_names>: Now const.
5823 * i386-tdep.c (i386_register_names, i386_zmm_names)
5824 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5825 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5826 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5827 * f-lang.c (f_extensions): Now const.
5828 * d-lang.c (d_extensions): Now const.
5829 * csky-tdep.c (csky_register_names): Now const.
5830 * charset.c (default_charset_names, charset_enum): Now const.
5831 (_initialize_charset): Update.
5832 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5833 const.
5834 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5835 (bsd_uthread_solib_loaded): Update.
5836 (bsd_uthread_state): Now const.
5837 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5838 (amd64_ymm_avx512_names, amd64_ymmh_names)
5839 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5840 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5841 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5842 (amd64_dword_names): Now const.
5843 * agent.c (can_use_agent_enum): Now const.
5844 * ada-tasks.c (task_states, long_task_states): Now const.
5845 * ada-lang.c (known_runtime_file_name_patterns)
5846 (known_auxiliary_function_name_patterns, attribute_names)
5847 (standard_exc, ada_extensions): Now const.
5848
89806626
SM
58492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5850
5851 * bcache.h (struct bcache) <bcache>: Remove constructor.
5852 <m_hash_function, m_compare_function>: Remove.
5853 <~bcache>: Make virtual.
5854 <compare>: Remove static method, introduce virtual method.
5855 <default_hash>: Remove.
5856 <hash>: New virtual method.
5857 * bcache.c (bcache::expand_hash_table): Update.
5858 (bcache::insert): Update.
5859 (bcache::hash): New.
5860 (bcache::compare): Update comment and parameter names.
5861 * gdbtypes.c (types_deeply_equal): Update.
5862 * psymtab.h (struct psymbol_bcache): New struct.
5863 (class psymtab_storage) <psymtab_storage>: Make default.
5864 <psymbol_cache>: Change type to psymbol_bcache.
5865 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5866 (psymbol_hash): Change to...
5867 (psymbol_bcache::hash): ... this.
5868 (psymbol_compare): Change to...
5869 (psymbol_bcache::compare): ... this.
5870
677c92fe
SM
58712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5872
5873 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5874 checking for initial lwp.
5875
3eba3a01
TT
58762020-09-14 Tom Tromey <tromey@adacore.com>
5877
5878 * m68k-tdep.c (m68k_extract_return_value): Use
5879 pointer_result_regnum.
5880 (m68k_store_return_value): Likewise.
5881 (m68k_reg_struct_return_p): Handle vectors and arrays.
5882 (m68k_return_value): Handle arrays.
5883 (m68k_svr4_return_value): Fix single-element aggregate handling.
5884 Handle long double. Adjust for embedded ABI.
5885 (m68k_svr4_init_abi): Set pointer_result_regnum.
5886 (m68k_embedded_init_abi): New function.
5887 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5888 (m68k_osabi_sniffer): New function.
5889 (_initialize_m68k_tdep): Register osabi sniffer.
5890 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5891 member.
5892
33f4dd48
SM
58932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5894
5895 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5896 with gdb::unique_xmalloc_ptr<char>.
5897
8400a90d
SM
58982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5899
5900 * xml-support.h (xml_fetch_another): Change type to be a
5901 function_view.
5902 (xml_process_xincludes): Remove baton parameter.
5903 (xml_fetch_content_from_file): Change baton parameter to
5904 dirname.
5905 * xml-support.c (struct xinclude_parsing_data)
5906 <xinclude_parsing_data>: Remove baton parameter.
5907 <fetcher_baton>: Remove.
5908 (xinclude_start_include): Adjust.
5909 (xml_process_xincludes): Adjust.
5910 (xml_fetch_content_from_file): Replace baton parameter with
5911 dirname.
5912 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5913 (xml_init_syscalls_info): Use a lambda.
5914 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5915 (file_read_description_xml): Use a lambda.
5916 (fetch_available_features_from_target): Change baton parameter
5917 to target_ops.
5918 (target_read_description_xml): Use a lambda.
5919 (target_fetch_description_xml): Use a lambda.
5920 (string_read_description_xml): Update.
5921
04f5bab2
SM
59222020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5923
5924 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5925 uses with type::endianity_is_not_default.
5926
db558e34
SM
59272020-09-14 Simon Marchi <simon.marchi@efficios.com>
5928
5929 * gdbtypes.h (struct type) <endianity_is_not_default,
5930 set_endianity_is_not_default>: New methods.
5931 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5932 type::endianity_is_not_default, change all write call sites to
5933 use type::set_endianity_is_not_default.
5934
22c4c60c
SM
59352020-09-14 Simon Marchi <simon.marchi@efficios.com>
5936
5937 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5938 uses with type::is_fixed_instance.
5939
9cdd0d12
SM
59402020-09-14 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * gdbtypes.h (struct type) <is_fixed_instance,
5943 set_is_fixed_instance>: New methods.
5944 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5945 write call sites to use type::set_is_fixed_instance.
5946
0becda7a
SM
59472020-09-14 Simon Marchi <simon.marchi@efficios.com>
5948
5949 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5950 uses with type::is_gnu_ifunc.
5951
03cc7249
SM
59522020-09-14 Simon Marchi <simon.marchi@efficios.com>
5953
5954 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
5955 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
5956 use type::set_is_gnu_ifunc.
5957
3f46044c
SM
59582020-09-14 Simon Marchi <simon.marchi@efficios.com>
5959
5960 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
5961 uses with type::stub_is_supported.
5962
9baccff6
SM
59632020-09-14 Simon Marchi <simon.marchi@efficios.com>
5964
5965 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
5966 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
5967 use type::set_stub_is_supported.
5968
bd63c870
SM
59692020-09-14 Simon Marchi <simon.marchi@efficios.com>
5970
5971 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
5972 uses with type::is_vector.
5973
2062087b
SM
59742020-09-14 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
5977 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
5978 use type::set_is_vector.
5979
a409645d
SM
59802020-09-14 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
5983 uses with type::has_varargs.
5984
1d6286ed
SM
59852020-09-14 Simon Marchi <simon.marchi@efficios.com>
5986
5987 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
5988 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
5989 use type::set_has_varargs.
5990
7f9f399b
SM
59912020-09-14 Simon Marchi <simon.marchi@efficios.com>
5992
5993 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
5994 uses with type::is_prototyped.
5995
27e69b7a
SM
59962020-09-14 Simon Marchi <simon.marchi@efficios.com>
5997
5998 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
5999 New methods.
6000 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
6001 call sites to use type::set_is_prototyped.
6002
d2183968
SM
60032020-09-14 Simon Marchi <simon.marchi@efficios.com>
6004
6005 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
6006 uses with type::target_is_stub.
6007
8f53807e
SM
60082020-09-14 Simon Marchi <simon.marchi@efficios.com>
6009
6010 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
6011 New methods.
6012 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
6013 sites to use type::set_target_is_stub.
6014
e46d3488
SM
60152020-09-14 Simon Marchi <simon.marchi@efficios.com>
6016
6017 * gdbtypes.h (TYPE_STUB): Remove, replace all
6018 uses with type::is_stub.
6019
b4b73759
SM
60202020-09-14 Simon Marchi <simon.marchi@efficios.com>
6021
6022 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
6023 (TYPE_STUB): Use type::is_stub, change all write call sites to
6024 use type::set_is_stub.
6025
20ce4123
SM
60262020-09-14 Simon Marchi <simon.marchi@efficios.com>
6027
6028 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
6029 type::has_no_signedness.
6030
15152a54
SM
60312020-09-14 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * gdbtypes.h (struct type) <has_no_signedness,
6034 set_has_no_signedness>: New methods.
6035 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
6036 call sites to use type::set_has_no_signedness.
6037
c6d940a9
SM
60382020-09-14 Simon Marchi <simon.marchi@efficios.com>
6039
6040 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
6041 type::is_unsigned.
6042
653223d3
SM
60432020-09-14 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
6046 methods.
6047 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
6048 sites to use type::set_is_unsigned.
6049
55ea94da 60502020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 6051 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 6052
e851246a
SM
6053 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
6054 pointer and stack frame offset when unwinding.
55ea94da 6055
6791b117
PA
60562020-09-13 Pedro Alves <pedro@palves.net>
6057
6058 * NEWS: Document "-break-insert --qualified".
6059 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
6060
77f2120b
PA
60612020-09-13 Pedro Alves <pedro@palves.net>
6062
6063 * linespec.c (classify_mtype, compare_msyms): Delete.
6064 (search_minsyms_for_name): Remove classification logic. Instead
6065 filter out trampoline symbols if we also found an external
6066 function of the same name.
6067
ed6a896c
JB
60682020-09-13 Joel Brobecker <brobecker@adacore.com>
6069
6070 * NEWS: Create a new section for the next release branch.
6071 Rename the section of the current branch, now that it has
6072 been cut.
6073
32aea73e
JB
60742020-09-13 Joel Brobecker <brobecker@adacore.com>
6075
6076 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
6077 * version.in: Bump version to 11.0.50.DATE-git.
6078
8087c3fa
JB
60792020-09-12 Joel Brobecker <brobecker@adacore.com>
6080
6081 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
6082
2a67f09d
FW
60832020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
6084 Felix Willgerodt <Felix.Willgerodt@intel.com>
6085
6086 * gdbarch.sh: Added bfloat16 type.
6087 * gdbarch.c: Regenerated.
6088 * gdbarch.h: Regenerated.
6089 * gdbtypes.c (floatformats_bfloat16): New struct.
6090 (gdbtypes_post_init): Add builtin_bfloat16.
6091 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
6092 (floatformats_bfloat16): New struct.
6093 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
6094 (i386_ymm_type): Add field "v16_bfloat16"
6095 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
6096 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
6097 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
6098 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
6099 * features/i386/64bit-avx512.xml: Add bfloat16 type.
6100 * features/i386/64bit-avx512.c: Regenerated.
6101 * features/i386/64bit-sse.xml: Add bfloat16 type.
6102 * features/i386/64bit-sse.c: Regenerated.
6103
1347d111
FW
61042020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
6105
6106 * i386-tdep.c (i386_zmm_type): Fix field names.
6107 (i386_ymm_type): Fix field names.
6108
7a4e8e7d
TBA
61092020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6110
6111 * breakpoint.c: Fix typo in the help message of the
6112 "set breakpoint condition-evaluation" command.
6113
cf4ac4be
KR
61142020-09-10 Kamil Rytarowski <n54@gmx.com>
6115
6116 * nbsd-nat.c: Include "nat/netbsd-nat.h".
6117 * (nbsd_nat_target::pid_to_exec_file)
6118 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
6119 (nbsd_nat_target::post_startup_inferior)
6120 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
6121 (nbsd_add_threads): Switch local code to common gdb/nat functions.
6122 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
6123 * (nbsd_thread_lister): Remove.
6124
f404573e
KR
61252020-09-10 Kamil Rytarowski <n54@gmx.com>
6126
6127 * fork-inferior.c (startup_inferior): Avoid double free.
6128
1ccb2c17
KR
61292020-09-10 Kamil Rytarowski <n54@gmx.com>
6130
6131 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
6132 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6133
feedfcc7
KR
61342020-09-10 Kamil Rytarowski <n54@gmx.com>
6135
6136 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6137 * netbsd-nat.c: Include <sys/ptrace.h>.
6138 * (netbsd_nat::enable_proc_events): Add.
6139
c489f8c6
KR
61402020-09-10 Kamil Rytarowski <n54@gmx.com>
6141
6142 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6143 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6144 (netbsd_nat::for_each_thread): Add.
6145 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6146 "gdbsupport/common-debug.h".
6147 * (netbsd_nat::netbsd_thread_lister)
6148 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6149 (netbsd_nat::for_each_thread): Add.
6150
330662f6
KR
61512020-09-10 Kamil Rytarowski <n54@gmx.com>
6152
6153 * netbsd-nat.h: Include <unistd.h>.
6154 * (netbsd_nat::pid_to_exec_file): Add.
6155 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6156 * (netbsd_nat::pid_to_exec_file) Add.
6157
70b67307
KR
61582020-09-10 Kamil Rytarowski <n54@gmx.com>
6159
6160 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6161
99cf6da6
KR
61622020-09-10 Kamil Rytarowski <n54@gmx.com>
6163
6164 * netbsd-nat.h: New file.
6165 * netbsd-nat.c: Likewise.
6166
1b788fb6
TT
61672020-09-09 Tom Tromey <tromey@adacore.com>
6168
6169 * ada-lang.c (remove_extra_symbols): Do not increment when
6170 removing an element
6171
03b0a45f
TT
61722020-09-08 Tom Tromey <tromey@adacore.com>
6173
6174 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6175
3cae4447
TT
61762020-09-08 Tom Tromey <tromey@adacore.com>
6177
6178 PR win32/25302:
6179 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6180 (gdb_bfd_init_data): New function.
6181 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6182
7f08fd51
TBA
61832020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6184
6185 * infrun.c (fetch_inferior_event): Use
6186 `switch_to_target_no_thread` to switch the target.
6187
3e6ff933
TT
61882020-09-06 Tom Tromey <tom@tromey.com>
6189
6190 * symfile.h (dwarf2_free_objfile): Don't declare.
6191
e56798df
AKS
61922020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6193
6194 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6195 to match 16 byte real/complex type generated by Flang compiler.
6196
8f5c6526
TV
61972020-09-03 Tom de Vries <tdevries@suse.de>
6198
6199 PR breakpoint/26546
6200 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6201 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6202
c5065df0
SM
62032020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6204
6205 * maint.c (index_digits): New function.
6206 (struct maint_print_section_data): Remove.
6207 (print_bfd_section_info): Remove print_data parameter, add arg
6208 and index_digits.
6209 (print_objfile_section_info): Likewise.
6210 (print_bfd_section_info_maybe_relocated): Likewise (plus
6211 objfile).
6212 (maintenance_info_sections): Adjust calls.
6213
02c6f3f1
TT
62142020-09-02 Tom Tromey <tromey@adacore.com>
6215
6216 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6217 for null pointers.
6218 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6219
ef5e5b0b
SM
62202020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6221
6222 * bcache.h (struct bcache) <insert>: Change type of `added` to
6223 pointer to bool.
6224 * bcache.c (bcache::insert): Likewise.
6225 * gdbtypes.c (check_types_worklist): Adjust.
6226 * psymtab.c (add_psymbol_to_bcache): Adjust.
6227
973695d6
KB
62282020-08-31 Kevin Buettner <kevinb@redhat.com>
6229
6230 * corelow.c (unordered_set): Include.
6231 (class core_target): Add field 'm_core_unavailable_mappings'.
6232 (core_target::build_file_mappings): Print only one warning
6233 per inaccessible file. Add unavailable/broken mappings
6234 to m_core_unavailable_mappings.
6235 (core_target::xfer_partial): Call...
6236 (core_target::xfer_memory_via_mappings): New method.
6237
264fc0e2
SM
62382020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6239
6240 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6241 type to bool.
6242
2de01bdb
SM
62432020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6244
6245 * dwarf2/read.c (struct field_info): Fix indentation.
6246
f3bd50f1
SM
62472020-08-31 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6250 ordering in comment.
6251 * frame.c (frame_id_eq): Fix indentation.
6252
22b9b4b0
SL
62532020-08-31 Scott Linder <scott@scottlinder.com>
6254 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6257 inline frame ids in outer frame.
6258
84154d16
SM
62592020-08-31 Simon Marchi <simon.marchi@efficios.com>
6260
6261 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6262 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6263 (outer_frame_id): Use FID_STACK_OUTER instead of
6264 FID_STACK_INVALID.
6265 (frame_id_p): Don't check for outer_frame_id.
6266
8efaf6b3
SM
62672020-08-31 Simon Marchi <simon.marchi@efficios.com>
6268
6269 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6270 regnum/frame in value. Call allocate_value_lazy.
6271 * frame.c (frame_unwind_register_value): Use
6272 val_print_not_saved.
6273
fe1fe7ea
SM
62742020-08-31 Simon Marchi <simon.marchi@efficios.com>
6275
6276 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6277
f7c7700d
PA
62782020-08-29 Pedro Alves <pedro@palves.net>
6279
6280 * progspace.c (print_program_space): Use all_inferiors. Switch to
6281 the inferior before calling target_pid_to_str.
6282
e0814aae
TT
62832020-08-28 Tom Tromey <tom@tromey.com>
6284
6285 * xcoffread.c (xcoff_end_psymtab): Update comment.
6286 * dbxread.c (dbx_end_psymtab): Update comment.
6287
626d2320
TV
62882020-08-28 Tom de Vries <tdevries@suse.de>
6289
6290 PR breakpoint/26544
6291 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6292 event_location.
6293 (create_breakpoint): Same.
6294 (base_breakpoint_decode_location): Same.
6295 (bkpt_create_sals_from_location): Same.
6296 (bkpt_decode_location): Same.
6297 (bkpt_probe_create_sals_from_location): Same.
6298 (bkpt_probe_decode_location): Same.
6299 (tracepoint_create_sals_from_location): Same.
6300 (tracepoint_decode_location): Same.
6301 (tracepoint_probe_decode_location): Same.
6302 (strace_marker_create_sals_from_location): Same.
6303 (strace_marker_decode_location): Same.
6304 (create_sals_from_location_default): Same.
6305 (decode_location_default): Same.
6306 * breakpoint.h (struct breakpoint_ops): Same.
6307 (create_breakpoint): Same.
6308 * linespec.h (decode_line_full): Same.
6309 * linespec.c (decode_line_full): Same. Throw error if
6310 result.size () == 0.
6311
df631783
PA
63122020-08-27 Pedro Alves <pedro@palves.net>
6313
6314 PR gdb/26524
6315 * breakpoint.c (until_break_fsm) <location_breakpoint,
6316 caller_breakpoint>: Delete fields.
6317 <breakpoints>: New field.
6318 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6319 two individual breakpoints.
6320 (until_break_fsm::should_stop): Loop over breakpoints in the
6321 breakpoint vector.
6322 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6323 vector.
6324 (until_break_command): Handle location expanding into multiple
6325 sals.
6326
b2b38aa4
PA
63272020-08-27 Pedro Alves <pedro@palves.net>
6328
6329 PR gdb/26523
6330 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6331 bp_until breakpoints user-specified locations. Update intro
6332 comment.
6333
b886559f
SM
63342020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6335
6336 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6337 gdb_bfd_sections): New.
6338 * maint.c (print_bfd_section_info): Change param type to
6339 maint_print_section_data.
6340 (print_objfile_section_info): Likewise.
6341 (print_bfd_section_info_maybe_relocated): Likewise.
6342 (maintenance_info_sections): Use gdb_bfd_sections.
6343
4c6e63bf
SV
63442020-08-25 Shahab Vahedi <shahab@synopsys.com>
6345
6346 * MAINTAINERS: Add ARC target and maintainer.
6347
8d7f0635
AK
63482020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6349
6350 * configure.tgt: ARC support for GNU/Linux.
6351 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6352 * arc-linux-tdep.c: New file.
6353 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6354 * arc-tdep.c (arc_write_pc): Use it.
6355
fdd8731b
SV
63562020-08-25 Shahab Vahedi <shahab@synopsys.com>
6357
6358 * arc-tdep.c (arc_check_for_hardware_loop): New.
6359 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6360
22459524
SV
63612020-08-25 Shahab Vahedi <shahab@synopsys.com>
6362
6363 * arc-tdep.h: Include "gdbarch.h".
6364
995d3a19
SV
63652020-08-25 Shahab Vahedi <shahab@synopsys.com>
6366
6367 * arch/arc.h
6368 (arc_gdbarch_features): New class to stir the selection of target XML.
6369 (arc_create_target_description): Use FEATURES to choose XML target.
6370 (arc_lookup_target_description): Use arc_create_target_description
6371 to create _new_ target descriptions or return the already created
6372 ones if the FEATURES is the same.
6373 * arch/arc.c: Implementation of prototypes described above.
6374 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6375 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6376 * arc-tdep.c (*_feature_name): Make feature names consistent.
6377 (arc_register_feature): A new struct to hold information about
6378 registers of a particular target/feature.
6379 (arc_check_tdesc_feature): Check if XML provides registers in
6380 compliance with ARC_REGISTER_FEATURE structs.
6381 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6382 (determine_*_reg_feature_set): Which feature name to look for.
6383 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6384 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6385 to expected ISA enums to be used in arc_gdbarch_features structs.
6386 * features/Makefile (FEATURE_XMLFILES): Add new files.
6387 * gdb/features/arc/v1-aux.c: New file.
6388 * gdb/features/arc/v1-aux.xml: Likewise.
6389 * gdb/features/arc/v1-core.c: Likewise.
6390 * gdb/features/arc/v1-core.xml: Likewise.
6391 * gdb/features/arc/v2-aux.c: Likewise.
6392 * gdb/features/arc/v2-aux.xml: Likewise.
6393 * gdb/features/arc/v2-core.c: Likewise.
6394 * gdb/features/arc/v2-core.xml: Likewise.
6395 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6396
3945d2d7
GM
63972020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6398 Andrew Burgess <andrew.burgess@embecosm.com>
6399
6400 PR m2/26372
fc5d6901 6401 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6402 an assert. Remove single element array indexing pattern as the
6403 MULTI_SUBSCRIPT support will handle this case too.
6404
2677f2d3
SM
64052020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6406
6407 * value.h (valprint_check_validity): Move declaration from
6408 here...
6409 * valprint.h (valprint_check_validity): ... to here.
6410
c426fddb
SM
64112020-08-24 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * debug.h: New file.
6414 * debug.c (debug_prefixed_vprintf): New function.
6415 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6416 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6417
1eb8556f
SM
64182020-08-24 Simon Marchi <simon.marchi@efficios.com>
6419
6420 * infrun.h (infrun_debug_printf_1): New function declaration.
6421 (infrun_debug_printf): New macro.
6422 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6423 throughout.
6424 (infrun_debug_printf): New function.
6425 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6426 (handle_jit_event): Likewise.
6427
b8fff44e
MW
64282020-08-21 Mark Wielaard <mark@klomp.org>
6429
6430 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6431
d19c3068
SM
64322020-08-22 Simon Marchi <simon.marchi@efficios.com>
6433
6434 * frame.c (enum class frame_id_status): New.
6435 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6436 (fprintf_frame): Update.
6437 (compute_frame_id): Set frame id status to "computing" on entry.
6438 Set it back to "not_computed" on failure and to "computed" on
6439 success.
6440 (get_frame_id): Assert the frame id is not being computed.
6441 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6442 (create_new_frame): Likewise.
6443 (frame_cleanup_after_sniffer): Update assert.
6444
b70e516e
SM
64452020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6446
6447 * regcache.c (pid_ptid_regcache_map): New type.
6448 (target_ptid_regcache_map): Remove.
6449 (target_pid_ptid_regcache_map): New type.
6450 (regcaches): Change type to target_pid_ptid_regcache_map.
6451 (get_thread_arch_aspace_regcache): Update.
6452 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6453 case.
6454 (regcaches_size): Update.
6455 (regcache_count): Update.
6456 (registers_changed_ptid_target_pid_test): New.
6457 (_initialize_regcache): Register new test.
6458
cdd9148a
SM
64592020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6460
6461 * regcache.c (regcache_count): New.
6462 (struct regcache_test_data): New.
6463 (regcache_test_data_up): New.
6464 (populate_regcaches_for_test): New.
6465 (regcaches_test): Remove.
6466 (get_thread_arch_aspace_regcache_test): New.
6467 (registers_changed_ptid_all_test): New.
6468 (registers_changed_ptid_target_test): New.
6469 (registers_changed_ptid_target_ptid_test): New.
6470 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6471 (_initialize_regcache): Register new tests.
6472
dd125343
SM
64732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6476 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6477 gdbarch and aspace parameter. Use current inferior's aspace.
6478 Validate regcache's arch value.
6479 (regcaches_test): Update.
6480
3ee93972
SM
64812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * regcache.c (regcaches_test): Call registers_changed.
6484
33bf4c5c
TBA
64852020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6486
6487 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6488
c2fd7fae
AKS
64892020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6490
6491 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6492 to find the end of prologue for flang compiled binaries.
6493 * arm-tdep.c (arm_skip_prologue): Likewise.
6494 * i386-tdep.c (i386_skip_prologue): Likewise.
6495 * producer.c (producer_is_llvm): New function.
6496 (producer_parsing_tests): Added new tests for clang/flang.
6497 * producer.h (producer_is_llvm): New declaration.
6498
9327494e
SM
64992020-08-18 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * linux-nat.c (linux_nat_debug_printf): New function.
6502 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6503
d138725a
AM
65042020-08-18 Aaron Merey <amerey@redhat.com>
6505
6506 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6507 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6508 (CLIBS): Add DEBUGINFOD_LIBS.
6509
f9b11e6b
ST
65102020-08-17 Sergei Trofimovich <siarheit@google.com>
6511
6512 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6513 'gdbarch_num_regs'.
6514
3ae7ab99
TT
65152020-08-17 Tom Tromey <tromey@adacore.com>
6516
6517 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6518 ada_get_decoded_value returns NULL.
6519
b017825f
TT
65202020-08-17 Tom Tromey <tromey@adacore.com>
6521
6522 * python/py-inferior.c (infpy_search_memory): Use
6523 gdb_py_object_from_ulongest.
6524 * python/py-infevents.c (create_inferior_call_event_object)
6525 (create_memory_changed_event_object): Use
6526 gdb_py_object_from_ulongest.
6527 * python/py-linetable.c (ltpy_entry_get_pc): Use
6528 gdb_py_object_from_ulongest.
6529
7635cf79
SM
65302020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6531
6532 * loc.c (class symbol_needs_eval_context): Fix indentation.
6533
f54be24b
SM
65342020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6535
6536 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6537 bool.
6538
53d5a2a5
TV
65392020-08-17 Tom de Vries <tdevries@suse.de>
6540
6541 PR gdb/26393
6542 * gdbtypes.c (dump_dynamic_prop): New function.
6543 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6544
547ce8f0
TV
65452020-08-15 Tom de Vries <tdevries@suse.de>
6546
6547 PR backtrace/26390
6548 * stack.c (print_frame_args): Temporarily set the selected
6549 frame to FRAME while printing the frame's arguments.
6550
6ea815e7
PFC
65512020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6552
6553 PR breakpoints/26385
6554 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6555 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6556
6e562fa3
PFC
65572020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6558
6559 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6560 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6561 and >= to check return value instead of == -1 and != -1.
6562
d369b608
SM
65632020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * utils.h (class gdb_argv) <as_array_view>: New method.
6566 * utils.c (gdb_argv_as_array_view_test): New.
6567 (_initialize_utils): Register selftest.
6568 * maint.c (maintenance_selftest): Use the new method.
6569
b31488a3
KR
65702020-08-13 Kamil Rytarowski <n54@gmx.com>
6571
6572 * target.h (supports_dumpcore, dumpcore): New
6573 function declarations.
6574 * target.c (supports_dumpcore, dumpcore): New
6575 functions.
6576 * target-delegates.c: Rebuild.
6577 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6578 and target_dumpcore ().
6579
002a3166
AM
65802020-08-13 Aaron Merey <amerey@redhat.com>
6581
6582 * debuginfod-support.c: Replace global variables with user_data.
6583
ece5bc8a
SM
65842020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6585
6586 * maint.c (maintenance_selftest): Split args and pass array_view
6587 to run_tests.
6588
6d8a0a5e
LM
65892020-08-12 Luis Machado <luis.machado@linaro.org>
6590
6591 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6592 type's length.
6593 Use %s and pulongest to print the length.
6594
7cf663a9
PA
65952020-08-12 Pedro Alves <palves@redhat.com>
6596
6597 * NEWS: Move "Multi-target debugging support" item to the
6598 "Changes since GDB 9" section.
6599
27c7b875
PA
66002020-08-12 Pedro Alves <palves@redhat.com>
6601
6602 PR gdb/26336
6603 * progspace.c (program_space::remove_objfile): Invalidate the
6604 frame cache.
6605
1796a2a1
TV
66062020-08-11 Tom de Vries <tdevries@suse.de>
6607
6608 * MAINTAINERS: Mark ms1 as deleted.
6609
f8e3fe0d
LM
66102020-08-10 Luis Machado <luis.machado@linaro.org>
6611
6612 PR gdb/26310
6613
6614 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6615 act accordingly.
6616 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6617 movz/str/stur/stp skipping behavior.
6618
cc308722
LM
66192020-08-10 Luis Machado <luis.machado@linaro.org>
6620
6621 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6622 struct user_sve_header instead of struct sve_context.
6623
041d9819
SM
66242020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6625
6626 * read.h (dwarf2_fetch_die_loc_sect_off,
6627 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6628 `void *` parameter with function_view.
6629 * read.c (dwarf2_fetch_die_loc_sect_off,
6630 dwarf2_fetch_die_loc_cu_off): Likewise.
6631 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6632 (per_cu_dwarf_call): Adjust.
6633 (get_frame_address_in_block_wrapper): Remove.
6634 (indirect_synthetic_pointer): Adjust.
6635 (get_ax_pc): Remove.
6636 (dwarf2_compile_expr_to_ax): Adjust.
6637
38f8aa06
TV
66382020-08-08 Tom de Vries <tdevries@suse.de>
6639
6640 PR build/26344
6641 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6642 constructor.
6643 * regcache.c (get_thread_arch_aspace_regcache): Same.
6644
a52b3ae2
TT
66452020-08-07 Tom Tromey <tromey@adacore.com>
6646
6647 * ravenscar-thread.c
6648 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6649 New method.
6650 (ravenscar_thread_target::wait): Check
6651 runtime_initialized.
6652 (ravenscar_thread_target::prepare_to_store)
6653 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6654 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6655 (ravenscar_thread_target::stopped_by_watchpoint)
6656 (ravenscar_thread_target::stopped_data_address)
6657 (ravenscar_thread_target::core_of_thread): Use
6658 scoped_restore_current_thread and
6659 set_base_thread_from_ravenscar_task.
6660
0e29517d
TT
66612020-08-07 Tom Tromey <tromey@adacore.com>
6662
6663 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6664
592f9bd7
TT
66652020-08-07 Tom Tromey <tromey@adacore.com>
6666
6667 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6668 update_inferior_ptid before update_thread_list.
6669 (temporarily_change_regcache_ptid): New class.
6670 (ravenscar_thread_target::fetch_registers)
6671 (ravenscar_thread_target::store_registers)
6672 (ravenscar_thread_target::prepare_to_store): Use base thread when
6673 forwarding operation.
6674
39e2018a
TT
66752020-08-07 Tom Tromey <tromey@adacore.com>
6676
6677 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6678 "is_pid" case.
6679
2080266b
TT
66802020-08-07 Tom Tromey <tromey@adacore.com>
6681
6682 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6683 New methods.
6684 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6685 first.
6686 (ravenscar_thread_target::add_thread): Rename from
6687 ravenscar_add_thread.
6688 (ravenscar_thread_target::update_thread_list): Use a lambda.
6689 (ravenscar_thread_target::xfer_partial): New method.
6690
78c02f21
TT
66912020-08-07 Tom Tromey <tromey@adacore.com>
6692
6693 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6694 gdb::function_view.
6695 (iterate_over_live_ada_tasks): Change type of argument.
6696 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6697 of argument.
6698
d5d833af
TT
66992020-08-07 Tom Tromey <tromey@adacore.com>
6700
6701 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6702 Remove.
6703 (ravenscar_thread_target::extra_thread_info): Remove.
6704 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6705 defer to target beneath for non-Ravenscar threads.
6706
a8ac85bb
TT
67072020-08-07 Tom Tromey <tromey@adacore.com>
6708
6709 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6710 get_base_thread_from_ravenscar_task>: Now methods.
6711 <m_cpu_map>: New member.
6712 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6713 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6714 (ravenscar_thread_target::task_is_currently_active): Update.
6715 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6716 Now a method.
6717 (ravenscar_thread_target::add_active_thread): Put initial thread
6718 into the m_cpu_map.
6719
550ab58d
TT
67202020-08-07 Tom Tromey <tromey@adacore.com>
6721
6722 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6723 event_ptid.
6724
e9546579
TT
67252020-08-07 Tom Tromey <tromey@adacore.com>
6726
6727 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6728 runtime_initialized.
6729
3d4470e5
TT
67302020-08-07 Tom Tromey <tromey@adacore.com>
6731
6732 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6733 add_active_thread.
6734 (ravenscar_thread_target::add_active_thread): Now public.
6735 (ravenscar_inferior_created): Call add_active_thread after pushing
6736 the target.
6737
888bdb2b
SM
67382020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6739
6740 * regcache.c (ptid_regcache_map): New type.
6741 (target_ptid_regcache_map): New type.
6742 (regcaches): Change type to target_ptid_regcache_map.
6743 (get_thread_arch_aspace_regcache): Update to regcaches' new
6744 type.
6745 (regcache_thread_ptid_changed): Likewise.
6746 (registers_changed_ptid): Likewise.
6747 (regcaches_size): Likewise.
6748 (regcaches_test): Update.
6749 (regcache_thread_ptid_changed): Update.
6750 * regcache.h (regcache_up): New type.
6751 * gdbsupport/ptid.h (hash_ptid): New struct.
6752
b161a60d
SM
67532020-08-07 Simon Marchi <simon.marchi@efficios.com>
6754
6755 * observable.h (thread_ptid_changed): Add parameter
6756 `process_stratum_target *`.
6757 * infrun.c (infrun_thread_ptid_changed): Add parameter
6758 `process_stratum_target *` and use it.
6759 (selftests): New namespace.
6760 (infrun_thread_ptid_changed): New function.
6761 (_initialize_infrun): Register selftest.
6762 * regcache.c (regcache_thread_ptid_changed): Add parameter
6763 `process_stratum_target *` and use it.
6764 (regcache_thread_ptid_changed): New function.
6765 (_initialize_regcache): Register selftest.
6766 * thread.c (thread_change_ptid): Pass target to
6767 thread_ptid_changed observable.
6768
d2854d8d
CT
67692020-08-06 Caroline Tice <cmtice@google.com>
6770
fe4c3d43
SM
6771 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6772 (struct dwp_sections): Update field comments. Add loclists and
6773 rnglists fields.
6774 (struct virtual_v2_dwo_sections): Rename struct to
6775 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6776 size & offset fields for loclists and rnglists.
6777 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6778 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6779 skipping dummy type units.
6780 (create_dwp_hash_table): Update the large comment above the function to
6781 discuss Version 5 DWP files as well, with references. Update all the
6782 version checks in the function to check for version 5 as well. Add new
6783 section at the end to create dwp hash table for version 5.
6784 (create_dwp_v2_section): Rename function to
6785 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6786 Add V5 to error message text.
6787 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6788 into calls to create_dwp_v2_or_v5_section.
6789 (create_dwo_unit_in_dwp_v5): New function.
6790 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6791 check for version2; add else clause to handle version 5.
6792 (open_and_init_dwo_file): Add code to check dwarf version & only call
6793 create_debug_types_hash_table (with sections.types) if version is not 5;
6794 else call create_debug_type_hash_table, with sections.info.
6795 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6796 version 5.
6797 (dwarf2_locate_v5_dwp_sections): New function.
6798 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6799 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6800
159ed7d9
SM
68012020-08-06 Simon Marchi <simon.marchi@efficios.com>
6802
6803 * regcache.h (class regcache): Remove friend
6804 registers_changed_ptid.
6805 <regcache_thread_ptid_changed>: Remove.
6806 <regcaches>: Remove.
6807 * regcache.c (regcache::regcaches): Rename to...
6808 (regcaches): ... this. Make static.
6809 (get_thread_arch_aspace_regcache): Update.
6810 (regcache::regcache_thread_ptid_changed): Rename to...
6811 (regcache_thread_ptid_changed): ... this. Update.
6812 (class regcache_access): Remove.
6813 (regcaches_test): Update.
6814 (_initialize_regcache): Update.
6815 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6816 <forward_list>.
6817
174981ae
SM
68182020-08-06 Simon Marchi <simon.marchi@efficios.com>
6819
6820 * regcache.h (class regcache) <current_regcache>: Rename to...
6821 <regcaches>: ... this. Move doc here.
6822 * regcache.c (regcache::current_regcache) Rename to...
6823 (regcache::regcaches): ... this. Move doc to header.
6824 (get_thread_arch_aspace_regcache): Update.
6825 (regcache::regcache_thread_ptid_changed): Update.
6826 (registers_changed_ptid): Update.
6827 (class regcache_access) <current_regcache_size>: Rename to...
6828 <regcaches_size>: ... this.
6829 (current_regcache_test): Rename to...
6830 (regcaches_test): ... this.
6831 (_initialize_regcache): Update.
6832
ed908db6
VC
68332020-08-06 Victor Collod <vcollod@nvidia.com>
6834
6835 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6836
b5582ab7
KB
68372020-08-05 Kevin Buettner <kevinb@redhat.com>
6838
6839 * corelow.c (core_target::build_file_mappings): Don't output
6840 null pathname in warning.
6841
ea946b86
SM
68422020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6843
6844 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6845 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6846 gdb.dwarf2/dw2-single-line-discriminators.exp,
6847 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6848
57d02173
TT
68492020-08-05 Tom Tromey <tromey@adacore.com>
6850
6851 PR rust/26197:
6852 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6853 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6854 Fix off-by-one and type size errors in ordinary case.
6855
5555c86d
TV
68562020-08-05 Tom de Vries <tdevries@suse.de>
6857
6858 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6859 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6860
97916bfe
SM
68612020-08-04 Simon Marchi <simon.marchi@efficios.com>
6862
6863 * frame.h (frame_id_p): Return bool.
6864 (frame_id_artificial_p): Return bool.
6865 (frame_id_eq): Return bool.
6866 (has_stack_frames): Return bool.
6867 (get_selected_frame): Fix typo in comment.
6868 (get_frame_pc_if_available): Return bool.
6869 (get_frame_address_in_block_if_available): Return bool.
6870 (get_frame_func_if_available): Return bool.
6871 (read_frame_register_unsigned): Return bool.
6872 (get_frame_register_bytes): Return bool.
6873 (safe_frame_unwind_memory): Return bool.
6874 (deprecated_frame_register_read): Return bool.
6875 (frame_unwinder_is): Return bool.
6876 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6877 bool.
6878 <this_id::p>: Likewise.
6879 <prev_p>: Likewise.
6880 (frame_stash_add): Return bool.
6881 (get_frame_id): Use bool.
6882 (frame_id_build_special) Use bool.
6883 (frame_id_build_unavailable_stack): Use bool.
6884 (frame_id_build): Use bool.
6885 (frame_id_p): Return bool, use true/false instead of 1/0.
6886 (frame_id_artificial_p): Likewise.
6887 (frame_id_eq): Likewise.
6888 (frame_id_inner): Likewise.
6889 (get_frame_func_if_available): Likewise.
6890 (read_frame_register_unsigned): Likewise.
6891 (deprecated_frame_register_read): Likewise.
6892 (get_frame_register_bytes): Likewise.
6893 (has_stack_frames): Likewise.
6894 (inside_main_func): Likewise.
6895 (inside_entry_func): Likewise.
6896 (get_frame_pc_if_available): Likewise.
6897 (get_frame_address_in_block_if_available): Likewise.
6898 (frame_unwinder_is): Likewise.
6899 (safe_frame_unwind_memory): Likewise.
6900 (frame_unwind_arch): Likewise.
6901
fedfee88
SM
69022020-08-04 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6905 type to cached_copy_status.
6906 (fprintf_frame): Adjust.
6907 (get_frame_func_if_available): Adjust.
6908 (frame_cleanup_after_sniffer): Adjust.
6909
6cfa9b59
MW
69102020-08-04 Mark Wielaard <mark@klomp.org>
6911
6912 * MAINTAINERS (Write After Approval): Update email address.
6913
66d6346b
SM
69142020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6915
6916 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6917 dynamic_prop::const_val.
6918
8a6d5e35
SM
69192020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6920
6921 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6922 dynamic_prop::kind.
6923
51d6067d
SM
69242020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6925
6926 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6927
b26e2ae7
JM
69282020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6929
6930 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6931
39791af2
JM
69322020-08-04 Weimin Pan <weimin.pan@oracle.com>
6933 Jose E. Marchesi <jose.marchesi@oracle.com>
6934
6935 * configure.tgt: Add entry for bpf-*-*.
6936 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6937 (ALLDEPFILES): Add bpf-tdep.c.
6938 * bpf-tdep.c: New file.
6939 * MAINTAINERS: Add bpf target and maintainer.
6940 * NEWS: Mention the support for the new target.
6941
521894aa
TV
69422020-08-04 Tom de Vries <tdevries@suse.de>
6943
6944 PR symtab/23270
6945 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6946 Error.
6947
5d6356e9
JB
69482020-08-03 John Baldwin <jhb@FreeBSD.org>
6949
6950 * syscalls/freebsd.xml: Regenerate.
6951
0cf82b81
JB
69522020-08-03 John Baldwin <jhb@FreeBSD.org>
6953
6954 * syscalls/update-freebsd.sh: Fix usage and year range.
6955
8f34b746
TV
69562020-08-03 Tom de Vries <tdevries@suse.de>
6957
6958 PR symtab/26333
6959 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
6960 DW_LNE_lo_user/DW_LNE_hi_user range.
6961
5e500d33
SM
69622020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
6963
6964 PR ada/26318
6965 * ada-lang.c (ada_modulus): Return 0 if property is not of const
6966 kind.
6967
78319c15
TBA
69682020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6969
6970 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
6971
4c55e970
TBA
69722020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6973
6974 * breakpoint.c (set_breakpoint_condition): Update the condition
6975 expressions after checking that the input condition string parses
6976 successfully and does not contain junk at the end.
6977
1e620590
TBA
69782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6979
6980 * breakpoint.c (set_breakpoint_condition): Update the
6981 condition string after parsing the new condition successfully.
6982
c8693053
RO
69832020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6984
6985 * proc-api.c (_STRUCTURED_PROC): Don't define.
6986 * proc-events.c: Likewise.
6987 * proc-flags.c: Likewise.
6988 * proc-why.c: Likewise.
6989 * procfs.c: Likewise.
6990
6991 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
6992 * configure, config.in: Regenerate.
6993
5a99adb8
TV
69942020-07-30 Tom de Vries <tdevries@suse.de>
6995
6996 PR build/26320
6997 * ui-style.h (struct ui_file_style::color): Wrap m_value and
6998 m_red/m_green/m_blue in a union.
6999
8ba83e91
TV
70002020-07-29 Tom de Vries <tdevries@suse.de>
7001
7002 PR tdep/26280
7003 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
7004
f75a0693
AB
70052020-07-28 Tom Tromey <tromey@adacore.com>
7006
7007 PR symtab/26270:
7008 * symtab.h (find_pc_partial_function_sym): Declare.
7009 * cli/cli-cmds.c (disassemble_command): Use
7010 find_pc_partial_function_sym. Check asm_demangle.
7011 * blockframe.c (cache_pc_function_sym): New global.
7012 (cache_pc_function_name): Remove.
7013 (clear_pc_function_cache): Update.
7014 (find_pc_partial_function_sym): New function, from
7015 find_pc_partial_function.
7016 (find_pc_partial_function): Rewrite using
7017 find_pc_partial_function_sym.
7018
16f3242c
TT
70192020-07-28 Tom Tromey <tromey@adacore.com>
7020
7021 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
7022 help. Add usage.
7023
4888741a
TT
70242020-07-28 Tom Tromey <tromey@adacore.com>
7025
7026 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
7027 <DW_OP_GNU_variable_value>: Cast to address type.
7028
4d46f402
KR
70292020-07-28 Kamil Rytarowski <n54@gmx.com>
7030
7031 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
7032 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
7033 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
7034 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
7035 (nbsd_get_siginfo_type): New.
7036 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7037 (_initialize_nbsd_tdep): New.
7038
d70f978b
L
70392020-07-28 H.J. Lu <hongjiu.lu@intel.com>
7040
7041 PR binutils/26301
7042 * configure: Regenerated.
7043
377170fa
L
70442020-07-28 H.J. Lu <hongjiu.lu@intel.com>
7045
7046 PR binutils/26301
7047 * configure: Regenerated.
7048
43d5901d
AB
70492020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7050
7051 * python/py-frame.c: Remove 'user-regs.h' include.
7052 (frapy_read_register): Rewrite to make use of
7053 gdbpy_parse_register_id.
7054 * python/py-registers.c (gdbpy_parse_register_id): New function,
7055 moved here from python/py-unwind.c. Updated the return type, and
7056 also accepts register descriptor objects.
7057 * python/py-unwind.c: Remove 'user-regs.h' include.
7058 (pyuw_parse_register_id): Moved to python/py-registers.c.
7059 (unwind_infopy_add_saved_register): Update to use
7060 gdbpy_parse_register_id.
7061 (pending_framepy_read_register): Likewise.
7062 * python/python-internal.h (gdbpy_parse_register_id): Declare.
7063
14fa8fb3
AB
70642020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7065
7066 * python/py-registers.c: Add 'user-regs.h' include.
7067 (register_descriptor_iter_find): New function.
7068 (register_descriptor_iterator_object_methods): New static global
7069 methods array.
7070 (register_descriptor_iterator_object_type): Add pointer to methods
7071 array.
7072
ddce1758
JB
70732020-07-27 John Baldwin <jhb@FreeBSD.org>
7074
7075 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
7076 for all architectures on FreeBSD 11.3 and later.
7077
a4089f52
TT
70782020-07-27 Tom Tromey <tromey@adacore.com>
7079
7080 * gcore.h (load_corefile): Don't declare.
7081
95420d30
TV
70822020-07-27 Tom de Vries <tdevries@suse.de>
7083
7084 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
7085 * config.in: Regenerate.
7086 * configure: Regenerate.
7087
05a6b8c2
EZ
70882020-07-26 Eli Zaretskii <eliz@gnu.org>
7089
7090 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
7091 ws2tcpip.h. When checking whether socklen_t type is defined, use
7092 ws2tcpip.h if it is available and sys/socket.h isn't.
7093 * configure: Regenerate.
7094 * config.in: Regenerate.
7095
e79eb02f
AB
70962020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
7097
7098 PR fortran/23051
7099 PR fortran/26139
7100 * valops.c (value_ind): Pass address to
7101 readjust_indirect_value_type.
7102 * value.c (readjust_indirect_value_type): Make parameter
7103 non-const, and add extra address parameter. Resolve original type
7104 before using it.
7105 * value.h (readjust_indirect_value_type): Update function
7106 signature and comment.
7107
876518dd
TV
71082020-07-25 Tom de Vries <tdevries@suse.de>
7109
7110 PR symtab/26243
7111 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
7112 entries.
7113
f6720b1c
AM
71142020-07-24 Aaron Merey <amerey@redhat.com>
7115
7116 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
7117 * configure: Rebuild.
7118
513487e1
KB
71192020-07-23 Kevin Buettner <kevinb@redhat.com>
7120
7121 PR corefiles/26294
7122 * corelow.c (_initialize_corelow): Add period to help text
7123 for "maintenance print core-file-backed-mappings".
7124
e7bc9db8
PA
71252020-07-23 Pedro Alves <pedro@palves.net>
7126
7127 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
7128 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
7129 meanwhile.
7130 * frame.c (frame_cache_generation, get_frame_cache_generation):
7131 New.
7132 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7133 (get_prev_frame_if_no_cycle): On exception, don't touch
7134 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7135 * frame.h (get_frame_cache_generation): Declare.
7136
90fcc466
TV
71372020-07-23 Tom de Vries <tdevries@suse.de>
7138
7139 PR tui/26282
7140 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7141 New default constructor.
7142
78344df7
AB
71432020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7146 exclude non-statement entries.
7147
b089853a
KB
71482020-07-22 Kevin Buettner <kevinb@redhat.com>
7149
7150 * NEWS (New commands): Mention new command
7151 "maintenance print core-file-backed-mappings".
7152
09c2f5d4
KB
71532020-07-22 Kevin Buettner <kevinb@redhat.com>
7154
7155 * corelow.c (gdbcmd.h): Include.
7156 (core_target::info_proc_mappings): New method.
7157 (get_current_core_target): New function.
7158 (maintenance_print_core_file_backed_mappings): New function.
7159 (_initialize_corelow): Add core-file-backed-mappings to
7160 "maint print" commands.
7161
9c5ec5c2 71622020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 7163
9c5ec5c2
KB
7164 * linux-tdep.c (dump_note_entry_p): New function.
7165 (linux_dump_mapping_p_ftype): New typedef.
7166 (linux_find_memory_regions_full): Add new parameter,
7167 should_dump_mapping_p.
7168 (linux_find_memory_regions): Adjust call to
7169 linux_find_memory_regions_full.
7170 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7171 call to linux_find_memory_regions_full.
7172
db082f59
KB
71732020-07-22 Kevin Buettner <kevinb@redhat.com>
7174
7175 * corelow.c (solist.h, unordered_map): Include.
7176 (class core_target): Add field m_core_file_mappings and
7177 method build_file_mappings.
7178 (core_target::core_target): Call build_file_mappings.
7179 (core_target::~core_target): Free memory associated with
7180 m_core_file_mappings.
7181 (core_target::build_file_mappings): New method.
7182 (core_target::xfer_partial): Use m_core_file_mappings
7183 for memory transfers.
7184 * linux-tdep.c (linux_read_core_file_mappings): New
7185 function.
7186 (linux_core_info_proc_mappings): Rewrite to use
7187 linux_read_core_file_mappings.
7188 (linux_init_abi): Register linux_read_core_file_mappings.
7189
7e183d27
KB
71902020-07-22 Kevin Buettner <kevinb@redhat.com>
7191
7192 * arch-utils.c (default_read_core_file_mappings): New function.
7193 * arch-utils.c (default_read_core_file_mappings): Declare.
7194 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7195 * gdbarch.h, gdbarch.c: Regenerate.
7196
2735d421
KB
71972020-07-22 Kevin Buettner <kevinb@redhat.com>
7198
7199 PR corefiles/25631
7200 * corelow.c (core_target:xfer_partial): Revise
7201 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7202 case after first checking the stratum beneath the core
7203 target.
7204 (has_all_memory): Return true.
7205 * target.c (raw_memory_xfer_partial): Revise comment
7206 regarding use of has_all_memory.
7207
e56cb451
KB
72082020-07-22 Kevin Buettner <kevinb@redhat.com>
7209
7210 * exec.h (section_table_xfer_memory): Revise declaration,
7211 replacing section name parameter with an optional callback
7212 predicate.
7213 * exec.c (section_table_xfer_memory): Likewise.
7214 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7215 of section_table_xfer_memory.
7216
32fa152e
TT
72172020-07-22 Tom Tromey <tromey@adacore.com>
7218
7219 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7220 lookup_symbol_search_name.
7221
a67a1c41
AB
72222020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7223
7224 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7225 redundant local variable.
7226 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7227 reference, not pointer, update code accordingly.
7228
a7b4ff4f
SM
72292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7230 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7231
7232 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7233 * jit.c (jit_breakpoint_re_set_internal): Use the
7234 `skip_jit_symbol_lookup` field.
7235
2340e834
SM
72362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7237 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7238
7239 * jit.c (jit_read_descriptor): Define the descriptor address once,
7240 use twice.
7241 (jit_breakpoint_deleted): Move the declaration of the loop variable
7242 `iter` into the loop header.
7243 (jit_breakpoint_re_set_internal): Move the declaration of the local
7244 variable `objf_data` to the first point of definition.
7245 (jit_event_handler): Move the declaration of local variables
7246 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7247 Rename `objf` to `jited`.
7248
c1072906
SM
72492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7250
7251 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7252 Remove.
7253 * jit.c (get_jiter_objfile_data): Update.
7254
c8474dc3
TBA
72552020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7256 Simon Marchi <simon.marchi@polymtl.ca>
7257
7258 * jit.c (struct jit_program_space_data): Remove.
7259 (jit_program_space_key): Remove.
7260 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7261 stuff.
7262 (get_jit_program_space_data): Remove.
7263 (jit_breakpoint_deleted): Iterate on all of the program space's
7264 objfiles.
7265 (jit_inferior_init): Likewise.
7266 (jit_breakpoint_re_set_internal): Likewise. Also change return
7267 type to void.
7268 (jit_breakpoint_re_set): Pass current_program_space to
7269 jit_breakpoint_re_set_internal.
7270
77208eb7
SM
72712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7272
7273 * jit.h (struct jiter_objfile_data) <cached_code_address,
7274 jit_breakpoint>: Move to here from ...
7275 * jit.c (jit_program_space_data): ... here.
7276 (jiter_objfile_data::~jiter_objfile_data): Update.
7277 (jit_breakpoint_deleted): Update.
7278 (jit_breakpoint_re_set_internal): Update.
7279
8c1c720f
SM
72802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7281
7282 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7283 checks.
7284 (jit_read_descriptor): Remove NULL check.
7285 (jit_event_handler): Add an assertion.
7286
0e74a041
SM
72872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7288
7289 * jit.h (struct jit_objfile_data): Split into...
7290 (struct jiter_objfile_data): ... this ...
7291 (struct jited_objfile_data): ... and this.
7292 * objfiles.h (struct objfile) <jit_data>: Remove.
7293 <jiter_data, jited_data>: New fields.
7294 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7295 (jiter_objfile_data::~jiter_objfile_data): ... this.
7296 (get_jit_objfile_data): Rename to ...
7297 (get_jiter_objfile_data): ... this.
7298 (add_objfile_entry): Update.
7299 (jit_read_descriptor): Use get_jiter_objfile_data.
7300 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7301 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7302 (jit_inferior_exit_hook): Use objfile's jited_data field.
7303
238b5c9f
SM
73042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7305
7306 * jit.h: Forward-declare `struct minimal_symbol`.
7307 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7308 constructor, destructor, and an objfile* field.
7309 * jit.c (jit_objfile_data): Remove.
7310 (struct jit_objfile_data): Migrate from here to jit.h.
7311 (jit_objfile_data::~jit_objfile_data): New destructor
7312 implementation with code moved from free_objfile_data.
7313 (free_objfile_data): Delete.
7314 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7315 (jit_find_objf_with_entry_addr): Ditto.
7316 (jit_inferior_exit_hook): Ditto.
7317 (_initialize_jit): Remove the call to
7318 register_objfile_data_with_cleanup.
7319 * objfiles.h (struct objfile) <jit_data>: New field.
7320
fe053b9e
TBA
73212020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7322
7323 * jit.h: Forward-declare `struct objfile`.
7324 (jit_event_handler): Add a second parameter, the JITer objfile.
7325 * jit.c (jit_read_descriptor): Change the signature to take the
7326 JITer objfile as an argument instead of the jit_program_space_data.
7327 (jit_inferior_init): Update the call to jit_read_descriptor.
7328 (jit_event_handler): Use the new JITer objfile argument when calling
7329 jit_read_descriptor.
7330 * breakpoint.c (handle_jit_event): Update the call to
7331 jit_event_handler to pass the JITer objfile.
7332
4cec0c66
JB
73332020-07-21 John Baldwin <jhb@FreeBSD.org>
7334
7335 * gdbarch.c: Regenerate.
7336 * gdbarch.h: Regenerate.
7337 * gdbarch.sh (handle_segmentation_fault): Remove method.
7338 * infrun.c (handle_segmentation_fault): Remove.
7339 (print_signal_received_reason): Remove call to
7340 handle_segmentation_fault.
7341
0e42f66a
JB
73422020-07-21 John Baldwin <jhb@FreeBSD.org>
7343
7344 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7345 Rename to sparc64_linux_report_signal_info and add siggnal
7346 argument.
7347 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7348 instead of sparc64_linux_handle_segmentation_fault.
7349
77bdfeb2
JB
73502020-07-21 John Baldwin <jhb@FreeBSD.org>
7351
7352 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7353 i386_linux_report_signal_info instead of
7354 i386_linux_handle_segmentation_fault.
7355 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7356 to i386_linux_report_signal_info and add siggnal argument.
7357 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7358 of i386_linux_handle_segmentation_fault.
7359 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7360 to i386_linux_report_signal_info and add siggnal argument.
7361
ad97bfc5
JB
73622020-07-21 John Baldwin <jhb@FreeBSD.org>
7363
7364 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7365 hook if present.
7366
272bb05c
JB
73672020-07-21 John Baldwin <jhb@FreeBSD.org>
7368
7369 * gdbarch.c: Regenerate.
7370 * gdbarch.h: Regenerate.
7371 * gdbarch.sh (report_signal_info): New method.
7372 * infrun.c (print_signal_received_reason): Invoke gdbarch
7373 report_signal_info hook if present.
7374
baf8791e
AB
73752020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7376
7377 * python/py-registers.c : Add 'unordered_map' include.
7378 (gdbpy_new_reggroup): Renamed to...
7379 (gdbpy_get_reggroup): ...this. Update to only create register
7380 group descriptors when needed.
7381 (gdbpy_reggroup_iter_next): Update.
7382
f7306dac
AB
73832020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7384
7385 * python/py-registers.c (gdbpy_register_object_data): New static
7386 global.
7387 (gdbpy_register_object_data_init): New function.
7388 (gdbpy_new_register_descriptor): Renamed to...
7389 (gdbpy_get_register_descriptor): ...this, and update to reuse
7390 existing register descriptors where possible.
7391 (gdbpy_register_descriptor_iter_next): Update.
7392 (gdbpy_initialize_registers): Register new gdbarch data.
7393
05c309a8
SM
73942020-07-21 Simon Marchi <simon.marchi@efficios.com>
7395
7396 * linux-nat.c (stopped_pids): Make static.
7397
d1fd641e
SM
73982020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7399
7400 PR ada/26235
7401 * gdbtypes.c (ada_discrete_type_low_bound,
7402 ada_discrete_type_high_bound): Handle undefined bounds.
7403
1de14d77
KR
74042020-07-21 Kamil Rytarowski <n54@gmx.com>
7405
7406 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7407 declaration.
7408 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7409 function.
7410
ed810cc7
JB
74112020-07-20 John Baldwin <jhb@FreeBSD.org>
7412
7413 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7414 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7415 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7416 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7417 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7418 method.
7419
ae5369e7
LC
74202020-07-20 Ludovic Courtès <ludo@gnu.org>
7421
7422 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7423 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7424 which are deprecated in Guile 3.0.
7425 * configure.ac (try_guile_versions): Add "guile-3.0".
7426 * configure (try_guile_versions): Regenerate.
7427 * NEWS: Update entry.
7428
68cf161c
LC
74292020-07-20 Ludovic Courtès <ludo@gnu.org>
7430 Doug Evans <dje@google.com>
7431
7432 PR gdb/21104
7433 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7434 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7435 USING_GUILE_BEFORE_2_2.
7436 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7437 Change type to 'scm_t_port_type *'.
7438 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7439 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7440 parameter and honor it. Update callers.
7441 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7442 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7443 functions.
7444 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7445 USING_GUILE_BEFORE_2_2.
7446 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7447 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7448 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7449 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7450 and 'SCM_PORT_TYPE'.
7451 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7452 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7453 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7454 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7455 [!USING_GUILE_BEFORE_2_2]: New functions.
7456 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7457 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7458 'gdbscm_memory_port_read'.
7459 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7460 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7461 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7462 function.
7463 (ioscm_init_memory_port): Remove.
7464 (ioscm_init_memory_port_stream): New function
7465 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7466 function.
7467 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7468 Return scm_from_uint (0).
7469 (gdbscm_set_memory_port_read_buffer_size_x)
7470 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7471 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7472 Return scm_from_uint (0).
7473 (gdbscm_set_memory_port_write_buffer_size_x)
7474 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7475 * configure.ac (try_guile_versions): Add "guile-2.2".
7476 * configure: Regenerate.
7477 * NEWS: Add entry.
7478
aee91db3
TT
74792020-07-18 Tom Tromey <tom@tromey.com>
7480
7481 * linux-nat.c (linux_multi_process): Remove.
7482 (linux_nat_target::supports_multi_process): Return true.
7483
0e267416
AB
74842020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7485
7486 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7487 (riscv_lookup_target_description): Return pointer out of
7488 unique_ptr.
7489 * target-descriptions.c (allocate_target_description): Add
7490 comment.
7491 (target_desc_deleter::operator()): Likewise.
7492 * target-descriptions.h (struct target_desc_deleter): Moved to
7493 gdbsupport/tdesc.h.
7494 (target_desc_up): Likewise.
7495
f80c8ec4
TT
74962020-07-17 Tom Tromey <tromey@adacore.com>
7497
7498 * linux-nat.c (linux_nat_target::supports_non_stop)
7499 (linux_nat_target::always_non_stop_p): Use "true".
7500 (linux_nat_target::supports_disable_randomization): Use "true" and
7501 "false".
7502
d0ce17d8
CT
75032020-07-16 Caroline Tice <cmtice@google.com>
7504
7505 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7506 (RNGLIST_HEADER_SIZE64): New constant definition.
7507 (struct dwop_section_names): Add rnglists_dwo.
7508 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7509 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7510 (struct dwo_sections): Add rnglists field.
7511 (read_attribut_reprocess): Add tag parameter.
7512 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7513 (cu_debug_rnglists_section): New function (decl & definition).
7514 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7515 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7516 die whose range is being checked; get rnglist section from
7517 cu_debug_rnglists_section, to get from either objfile or dwo file as
7518 appropriate. Add cases for DW_RLE_base_addressx,
7519 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7520 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7521 test inside if-condition and updating complaint message.
7522 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7523 dwarf2_rnglists_process.
7524 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7525 dwarf2_ranges_process.
7526 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7527 need_ranges_base and update comment appropriately. Also pass die tag
7528 to dwarf2_ranges_read.
7529 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7530 need_ranges_base and update comment appropriately. Also pass die tag
7531 to dwarf2_ranges_process.
7532 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7533 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7534 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7535 need_ranges_base and update comment appropriately. Also pass die tag
7536 to read_attribute_reprocess and dwarf2_ranges_read.
7537 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7538 and update function comment appropriately.
7539 (read_loclist_index): Call read_loclists_rnglists_header instead of
7540 read_loclist_header.
7541 (read_rnglist_index): New function.
7542 (read_attribute_reprocess): Add tag parameter. Add code for
7543 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7544 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7545
3dcc261c
AB
75462020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7547
7548 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7549 being resolved.
7550
ccb9eba6
AB
75512020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * arch-utils.c (show_architecture): Update formatting of messages.
7554
cf88be68
SM
75552020-07-12 Simon Marchi <simon.marchi@efficios.com>
7556
7557 * gdbtypes.h (struct type) <bounds>: Handle array and string
7558 types.
7559 * ada-lang.c (assign_aggregate): Use type::bounds on
7560 array/string type.
7561 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7562 * c-varobj.c (c_number_of_children): Likewise.
7563 (c_describe_child): Likewise.
7564 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7565 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7566 (f_type_print_base): Likewise.
7567 * f-valprint.c (f77_array_offset_tbl): Likewise.
7568 (f77_get_upperbound): Likewise.
7569 (f77_print_array_1): Likewise.
7570 * guile/scm-type.c (gdbscm_type_range): Likewise.
7571 * m2-typeprint.c (m2_array): Likewise.
7572 (m2_is_long_set_of_type): Likewise.
7573 * m2-valprint.c (get_long_set_bounds): Likewise.
7574 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7575 * python/py-type.c (typy_range): Likewise.
7576 * rust-lang.c (rust_internal_print_type): Likewise.
7577 * type-stack.c (type_stack::follow_types): Likewise.
7578 * valarith.c (value_subscripted_rvalue): Likewise.
7579 * valops.c (value_cast): Likewise.
7580
509971ae
SM
75812020-07-12 Simon Marchi <simon.marchi@efficios.com>
7582
7583 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7584 callers to use the equivalent accessor methods.
7585
107406b7
SM
75862020-07-12 Simon Marchi <simon.marchi@efficios.com>
7587
7588 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7589 (struct type) <bit_stride>: New method.
7590 (TYPE_BIT_STRIDE): Remove.
7591 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7592
bb789949
SM
75932020-07-12 Simon Marchi <simon.marchi@efficios.com>
7594
7595 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7596 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7597 callers to use the equivalent accessor methods instead.
7598
39498edb
SM
75992020-07-12 Simon Marchi <simon.marchi@efficios.com>
7600
7601 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7602 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7603 callers to use the equivalent accessor methods instead.
7604
3b606f38
SM
76052020-07-12 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7608 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7609 to use dynamic_prop::kind.
7610
064d9cb9
SM
76112020-07-12 Simon Marchi <simon.marchi@efficios.com>
7612
7613 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7614 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7615 to get the bound property's kind and check against
7616 PROP_UNDEFINED.
7617
5537ddd0
SM
76182020-07-12 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7621 all callers to use type::range_bounds followed by
7622 dynamic_prop::{low,high}.
7623
8c2e4e06
SM
76242020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7625
7626 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7627 const_val, set_const_val, baton, set_locexpr, set_loclist,
7628 set_addr_offset, variant_parts, set_variant_parts,
7629 original_type, set_original_type>: New methods.
7630 <kind>: Rename to...
7631 <m_kind>: ... this. Update all users to use the new methods
7632 instead.
7633 <data>: Rename to...
7634 <m_data>: ... this. Update all users to use the new methods
7635 instead.
7636
7c6f2712
SM
76372020-07-12 Simon Marchi <simon.marchi@efficios.com>
7638
7639 * gdbtypes.c (get_discrete_bounds): Return failure if
7640 the range type's bounds are not both defined and constant
7641 values.
7642 (get_array_bounds): Update comment. Remove undefined bound check.
7643
599088e3
SM
76442020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7645
7646 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7647 the type::bounds method directly.
7648
c4dfcb36
SM
76492020-07-12 Simon Marchi <simon.marchi@efficios.com>
7650
7651 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7652 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7653 are used to set the range type's bounds to use set_bounds.
7654
0a278aa7
PW
76552020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7656
7657 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7658
cce20f10
PA
76592020-07-10 Pedro Alves <pedro@palves.net>
7660
7661 * gdbthread.h (inferior_ref): Define.
7662 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7663 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7664 * thread.c
7665 (scoped_restore_current_thread::restore):
7666 Adjust to gdb::ref_ptr.
7667 (scoped_restore_current_thread::~scoped_restore_current_thread):
7668 Remove manual decref handling.
7669 (scoped_restore_current_thread::scoped_restore_current_thread):
7670 Adjust to use
7671 inferior_ref::new_reference/thread_info_ref::new_reference.
7672 Incref the thread before calling get_frame_id instead of after.
7673 Let TARGET_CLOSE_ERROR propagate.
7674
6d7aa592
PA
76752020-07-10 Pedro Alves <pedro@palves.net>
7676
7677 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7678 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7679 NOT_AVAILABLE_ERROR.
7680 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7681 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7682
b3e3a4c1
SM
76832020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7684 Pedro Alves <pedro@palves.net>
7685
7686 PR gdb/26199
7687 * infrun.c (threads_are_resumed_pending_p): Delete.
7688 (do_target_wait): Remove threads_are_executing and
7689 threads_are_resumed_pending_p checks from the inferior_matches
7690 lambda. Update comments.
7691
d6cc5d98
PA
76922020-07-10 Pedro Alves <pedro@palves.net>
7693
7694 PR gdb/26199
7695 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7696 executing threads.
7697
7d3badc6
PA
76982020-07-10 Pedro Alves <pedro@palves.net>
7699
7700 PR gdb/26199
7701 * infrun.c (handle_no_resumed): Handle multiple targets.
7702
42bd97a6
PA
77032020-07-10 Pedro Alves <pedro@palves.net>
7704
7705 PR gdb/26199
7706 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7707 target_is_async_p.
7708
43667cc6
PA
77092020-07-10 Pedro Alves <pedro@palves.net>
7710
7711 PR gdb/26199
7712 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7713 threads, not all threads.
7714
96118d11
PA
77152020-07-10 Pedro Alves <pedro@palves.net>
7716
7717 PR gdb/26199
7718 * remote.c (remote_target::open_1): Pass remote target pointer as
7719 data to create_async_event_handler.
7720 (remote_async_inferior_event_handler): Mark async event handler
7721 before returning if the remote target still has either pending
7722 events or unacknowledged notifications.
7723
54904d81
JB
77242020-07-10 John Baldwin <jhb@FreeBSD.org>
7725
7726 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7727 declaration.
7728 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7729 function.
7730
f37e5866
JB
77312020-07-09 John Baldwin <jhb@FreeBSD.org>
7732
7733 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7734 inferior_ptid.
7735
fc238d4a
JB
77362020-07-09 John Baldwin <jhb@FreeBSD.org>
7737
7738 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7739 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7740 AT_FREEBSD_PS_STRINGS.
7741
6e2469ff
HD
77422020-07-08 Hannes Domani <ssbssa@yahoo.de>
7743
7744 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7745 of debugfile path on Windows.
7746
d1076c41
JB
77472020-07-08 John Baldwin <jhb@FreeBSD.org>
7748
7749 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7750 argument to 'data'.
7751
15f3b077
TT
77522020-07-08 Tom Tromey <tromey@adacore.com>
7753
7754 * ada-lang.c (ada_exception_message_1): Use read_memory.
7755
9fc501fd
AB
77562020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7757
7758 PR python/22748
7759 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7760 special handling for inline frames.
7761 * findvar.c (value_of_register_lazy): Skip inline frames when
7762 creating lazy register values.
7763 * frame.c (frame_id_computed_p): Delete definition.
7764 * frame.h (frame_id_computed_p): Delete declaration.
7765
64cb3757
AB
77662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7767
7768 * NEWS: Mention additions to Python API.
7769 * python/py-arch.c (archpy_register_groups): New function.
7770 (arch_object_methods): Add 'register_groups' method.
7771 * python/py-registers.c (reggroup_iterator_object): New struct.
7772 (reggroup_object): New struct.
7773 (gdbpy_new_reggroup): New function.
7774 (gdbpy_reggroup_to_string): New function.
7775 (gdbpy_reggroup_name): New function.
7776 (gdbpy_reggroup_iter): New function.
7777 (gdbpy_reggroup_iter_next): New function.
7778 (gdbpy_new_reggroup_iterator): New function
7779 (gdbpy_initialize_registers): Register new types.
7780 (reggroup_iterator_object_type): Define new Python type.
7781 (gdbpy_reggroup_getset): New static global.
7782 (reggroup_object_type): Define new Python type.
7783 * python/python-internal.h
7784
0f767f94
AB
77852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7786
7787 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7788 * python/py-arch.c (archpy_registers): New function.
7789 (arch_object_methods): Add 'registers' method.
7790 * python/py-registers.c: New file.
7791 * python/python-internal.h
7792 (gdbpy_new_register_descriptor_iterator): Declare.
7793 (gdbpy_initialize_registers): Declare.
7794 * python/python.c (do_start_initialization): Call
7795 gdbpy_initialize_registers.
7796 * NEWS: Mention additions to the Python API.
7797
87dbc774
AB
77982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7799
7800 * NEWS: Mention new Python API method.
7801 * python/py-unwind.c (pending_framepy_architecture): New function.
7802 (pending_frame_object_methods): Add architecture method.
7803
3bc98c0c
AB
78042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7805
7806 * gdbarch.c: Regenerate.
7807 * gdbarch.h: Regenerate.
7808 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7809 (gdbarch_data): Use internal_error for the case where
7810 deprecated_set_gdbarch_data was originally needed.
7811 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7812 and use passed in obstack.
7813 (libunwind_frame_set_descr): Should no longer get back NULL from
7814 gdbarch_data.
7815 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7816 type.
7817 * user-regs.c (user_regs_init): Update parameters, and use passed
7818 in obstack.
7819 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7820 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7821
d8cc8af6
TV
78222020-07-06 Tom de Vries <tdevries@suse.de>
7823
7824 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7825 End-Of-Sequence in lte_is_less_than.
7826 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7827 "gdb: Don't reorder line table entries too much when sorting".
7828
947f7597
TV
78292020-07-06 Tom de Vries <tdevries@suse.de>
7830
7831 PR tui/26205
7832 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7833
1e7c1b22
TV
78342020-07-05 Tom de Vries <tdevries@suse.de>
7835
7836 PR build/26187
7837 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7838 std::uncaught_exceptions instead of deprecated
7839 std::uncaught_exception.
7840
a36158ec
SM
78412020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7842
7843 * macroexp.h (macro_stringify): Return
7844 gdb::unique_xmalloc_ptr<char>.
7845 * macroexp.c (macro_stringify): Likewise.
7846 * macrotab.c (fixup_definition): Update.
7847
14d960c8
SM
78482020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7849
7850 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7851 (lex_one_token): Update.
7852 * macroexp.c (struct macro_buffer) <release>: Return
7853 gdb::unique_xmalloc_ptr<char>.
7854 (macro_stringify): Update.
7855 (macro_expand): Update.
7856 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7857 * macroexp.h (macro_expand_next): Likewise.
7858
211d5b1c
SM
78592020-07-02 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * macroexp.h (macro_lookup_ftype): Remove.
7862 (macro_expand, macro_expand_once, macro_expand_next): Remove
7863 lookup function parameters, add scope parameter.
7864 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7865 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7866 * macroscope.h (standard_macro_lookup): Change parameter type
7867 to macro_scope.
7868 * macroscope.c (standard_macro_lookup): Likewise.
7869 * c-exp.y (lex_one_token): Update.
7870 * macrocmd.c (macro_expand_command): Likewise.
7871 (macro_expand_once_command): Likewise.
7872
b1a35af2
SM
78732020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7874
7875 * inf-loop.c (inferior_event_handler): Remove client_data param.
7876 * inf-loop.h (inferior_event_handler): Likewise.
7877 * infcmd.c (step_1): Adjust.
7878 * infrun.c (proceed): Adjust.
7879 (fetch_inferior_event): Remove client_data param.
7880 (infrun_async_inferior_event_handler): Adjust.
7881 * infrun.h (fetch_inferior_event): Remove `void *` param.
7882 * linux-nat.c (handle_target_event): Adjust.
7883 * record-btrace.c (record_btrace_handle_async_inferior_event):
7884 Adjust.
7885 * record-full.c (record_full_async_inferior_event_handler):
7886 Adjust.
7887 * remote.c (remote_async_inferior_event_handler): Adjust.
7888
1cdf9e33
TT
78892020-07-01 Tom Tromey <tom@tromey.com>
7890
7891 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7892 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7893
32c1e210
TT
78942020-07-01 Tom Tromey <tom@tromey.com>
7895
7896 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7897 tui_gen_win_info.
7898 (tui_win_info::make_window): Merge with
7899 tui_gen_win_info::make_window.
7900 (tui_win_info::make_visible): Move from tui_gen_win_info.
7901 * tui/tui-win.c (tui_win_info::max_width): Move from
7902 tui_gen_win_info.
7903 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7904 type.
7905 <window_factory>: Likewise.
7906 * tui/tui-layout.c (tui_win_info::resize): Move from
7907 tui_gen_win_info.
7908 (make_standard_window): Change return type.
7909 (get_locator_window, tui_get_window_by_name): Likewise.
7910 (tui_layout_window::apply): Remove a cast.
7911 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7912 (struct tui_win_info): Merge with tui_gen_win_info.
7913 (struct tui_gen_win_info): Remove.
7914
a30cb6da
TT
79152020-07-01 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-stack.h (struct tui_locator_window): Derive from
7918 tui_win_info.
7919 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7920 <can_box>: New method.
7921
1eb2161f
TT
79222020-07-01 Tom Tromey <tom@tromey.com>
7923
7924 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7925
7134f2eb
TT
79262020-07-01 Tom Tromey <tom@tromey.com>
7927
7928 * tui/tui-regs.c (tui_data_window::display_registers_from)
7929 (tui_data_window::display_registers_from)
7930 (tui_data_window::first_data_item_displayed)
7931 (tui_data_window::delete_data_content_windows): Update.
7932 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7933 Remove.
7934 (tui_data_window::check_register_values): Update.
7935 (tui_data_item_window::rerender): Add parameters. Update.
7936 (tui_data_item_window::refresh_window): Remove.
7937 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7938 virtual.
7939 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7940 tui_gen_win_info.
7941 <refresh_window, max_height, min_height>: Remove.
7942 <rerender>: Add parameters.
7943 <x, y, visible>: New members.
7944 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7945 <m_item_width>: New member.
7946
22b7b041
TT
79472020-07-01 Tom Tromey <tom@tromey.com>
7948
7949 * tui/tui-regs.c (tui_data_window::show_register_group)
7950 (tui_data_window::check_register_values): Update.
7951 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
7952 from item_no.
7953
c9753adb
TT
79542020-07-01 Tom Tromey <tom@tromey.com>
7955
7956 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
7957 useless "if".
7958
9ab26b4a
TT
79592020-07-01 Tom Tromey <tom@tromey.com>
7960
7961 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
7962 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
7963
e555083f
TT
79642020-07-01 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
7967 * tui/tui-winsource.h (enum tui_line_or_address_kind)
7968 (struct tui_line_or_address): Move from tui-data.h.
7969 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
7970 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
7971 (tui_cmd_window, tui_source_window_base, tui_source_window)
7972 (tui_disasm_window): Don't declare.
7973 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
7974 to tui-winsource.h.
7975 (SINGLE_KEY): Move to tui-stack.c.
7976
7a02bab7
TT
79772020-07-01 Tom Tromey <tom@tromey.com>
7978
7979 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
7980 std::string.
7981 * tui/tui-regs.c (class tab_expansion_file): New.
7982 (tab_expansion_file::write): New method.
7983 (tui_register_format): Change return type. Use
7984 tab_expansion_file.
7985 (tui_get_register, tui_data_window::display_registers_from)
7986 (tui_data_item_window::rerender): Update.
7987 * tui/tui-io.h (tui_expand_tabs): Don't declare.
7988 * tui/tui-io.c (tui_expand_tabs): Remove.
7989
ea68593b
TT
79902020-07-01 Tom Tromey <tom@tromey.com>
7991
7992 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
7993
a8caed5d
FS
79942020-07-01 Fangrui Song <maskray@google.com>
7995
7996 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
7997
9cdf9820
AKS
79982020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7999
8000 * dwarf2/read.c (set_die_type): Removed conditions to restrict
8001 forms for DW_AT_associated and DW_AT_allocated attributes,
8002 which is already checked in function attr_to_dynamic_prop.
8003
a1520ad8
TT
80042020-06-30 Tom Tromey <tromey@adacore.com>
8005
8006 * dwarf2/read.c (quirk_rust_enum): Correctly call
8007 alloc_rust_variant for default-less enum.
8008
5ac58899
TT
80092020-06-30 Tom Tromey <tromey@adacore.com>
8010
8011 PR build/26183:
8012 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
8013 gdb::to_string.
8014
19b187a9
SM
80152020-06-29 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * gdbarch.sh (displaced_step_copy_insn): Update doc.
8018 * gdbarch.h: Re-generate.
8019
cd4c4c07
TT
80202020-06-28 Tom Tromey <tom@tromey.com>
8021
8022 * command.h (cmd_types): Remove.
8023 (cmd_type): Don't declare.
8024 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
8025 typedef.
8026 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
8027 * cli/cli-decode.c (cmd_type): Remove.
8028
05779d57
PA
80292020-06-27 Pedro Alves <palves@redhat.com>
8030
8031 * fork-child.c (prefork_hook): Adjust.
8032 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
8033 Delete.
8034 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
8035 * inferior.c (inferior::set_tty, inferior::tty): New methods.
8036 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
8037 Remove declarations.
8038 (struct inferior) <set_tty, tty>: New methods.
8039 (struct inferior) <terminal>: Rename to ...
8040 (struct inferior) <m_terminal>: ... this and make private.
8041 * main.c (captured_main_1): Adjust.
8042 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
8043 (mi_cmd_inferior_tty_show): Adjust.
8044 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
8045 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
8046
1776e3e5
NA
80472020-06-26 Nick Alcock <nick.alcock@oracle.com>
8048
8049 * configure.ac: Add --enable-libctf: handle --disable-static
8050 properly.
8051 * acinclude.m4: sinclude ../config/enable.m4.
8052 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
8053 (LIBCTF): Substitute in.
8054 (CTF_DEPS): New, likewise.
8055 (CLIBS): libctf needs symbols from libbfd: move earlier.
8056 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
8057 flags.
8058 * ctfread.c: Surround in ENABLE_LIBCTF.
8059 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
8060 * configure: Regenerate.
8061 * config.in: Likewise.
8062
58373b80
SM
80632020-06-25 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
8066
277474ee
SM
80672020-06-25 Simon Marchi <simon.marchi@efficios.com>
8068
8069 * inferior.h (struct inferior) <terminal>: Change type to
8070 gdb::unique_xmalloc_ptr<char>.
8071 * inferior.c (inferior::~inferior): Don't free inf->terminal.
8072 * infcmd.c (set_inferior_io_terminal): Don't free terminal
8073 field, adjust to unique pointer.
8074 (get_inferior_io_terminal): Adjust to unique pointer.
8075
6d74da72
AB
80762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8077
8078 * riscv-tdep.c (riscv_print_registers_info): Loop over all
8079 registers, not just the known core set of registers.
8080
2e52d038
AB
80812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8082
8083 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
8084 fflags, frm, and fcsr registers.
8085 (riscv_register_reggroup_p): Remove unknown CSRs from save and
8086 restore groups.
8087 (riscv_tdesc_unknown_reg): New function.
8088 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
8089 tdesc_use_registers.
8090 * riscv-tdep.h (struct gdbarch_tdep): Add
8091 unknown_csrs_first_regnum, unknown_csrs_count,
8092 duplicate_fflags_regnum, duplicate_frm_regnum, and
8093 duplicate_fcsr_regnum fields.
8094
be64fd07
AB
80952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8096
8097 * target-descriptions.c (tdesc_use_registers): Add new parameter a
8098 callback, use the callback (when not null) to help number unknown
8099 registers.
8100 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
8101 (tdesc_use_registers): Add extra parameter to declaration.
8102
3b9fce96
AB
81032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8104
8105 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
8106 in the file.
8107 (class riscv_pending_register_alias): Likewise.
8108 (riscv_register_feature::register_info): Change 'required_p' field
8109 to 'required', and change its type. Add 'check' member function.
8110 (riscv_register_feature::register_info::check): Define new member
8111 function.
8112 (riscv_xreg_feature): Change initialisation of 'required' field.
8113 (riscv_freg_feature): Likewise.
8114 (riscv_virtual_feature): Likewise.
8115 (riscv_csr_feature): Likewise.
8116 (riscv_check_tdesc_feature): Take extra parameter, the csr
8117 tdesc_feature, rewrite the function to use the new
8118 riscv_register_feature::register_info::check function.
8119 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
8120
865bad26
AB
81212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8122
8123 * features/Makefile: Remove all references to the deleted files
8124 below.
8125 * features/riscv/32bit-csr.c: Deleted.
8126 * features/riscv/32bit-csr.xml: Deleted.
8127 * features/riscv/64bit-csr.c: Deleted.
8128 * features/riscv/64bit-csr.xml: Deleted.
8129 * features/riscv/rebuild-csr-xml.sh: Deleted.
8130
ed69cbc8
AB
81312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8132
8133 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8134 whitespace error for declaration of names member variable.
8135 (struct riscv_register_feature): Add new prefer_first_name member
8136 variable, and fix whitespace error in declaration of registers.
8137 (riscv_xreg_feature): Initialize prefer_first_name field.
8138 (riscv_freg_feature): Likewise.
8139 (riscv_virtual_feature): Likewise.
8140 (riscv_csr_feature): Likewise.
8141 (riscv_register_name): Expand on comments. Remove register name
8142 modifications for CSR and virtual registers.
8143
4445e8f5
AB
81442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8147 errors.
8148
767a879e
AB
81492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8150
8151 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8152 riscv-opc.h.
8153 (class riscv_pending_register_alias): New class.
8154 (riscv_check_tdesc_feature): Take vector of pending aliases and
8155 populate it as appropriate.
8156 (riscv_setup_register_aliases): Delete.
8157 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8158 to riscv_check_tdesc_feature in all cases. Use the vector to
8159 create the register aliases.
8160
bb6e55f3
RO
81612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8162
8163 * sol2-tdep.c (sol2_static_transform_name): Remove.
8164 (sol2_init_abi): Don't register it.
8165 * gdbarch.sh (static_transform_name): Remove.
8166 * gdbarch.c, gdbarch.h: Regenerate.
8167
8168 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8169 gdbarch_static_transform_name.
8170 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8171 * stabsread.c (define_symbol) <'X'>: Remove.
8172 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8173 handling.
8174 <'V'>: Likewise.
8175 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8176 <'S'>: Remove call to gdbarch_static_transform_name.
8177
c6d36836
RO
81782020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8179
8180 * procfs.c (procfs_pre_trace): New function.
8181 (procfs_target::create_inferior): Pass it to fork_inferior.
8182
a7e6196b
RO
81832020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8184
8185 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8186 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8187 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8188 sol2-tdep.o, sparc-sol2-tdep.o.
8189 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8190 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8191 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8192 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8193
d412e696
RO
81942020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8195
8196 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8197 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8198 Call sol2_init_abi.
8199 Remove calls to set_gdbarch_skip_solib_resolver,
8200 set_gdbarch_core_pid_to_str.
8201 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8202 (i386_sol2_static_transform_name): Remove.
8203 (i386_sol2_init_abi): Call sol2_init_abi.
8204 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8205 set_gdbarch_static_transform_name,
8206 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8207 Use sol2_sigtramp_p.
8208 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8209 (sol2_sigtramp_p): New function.
8210 (sol2_static_transform_name): New function.
8211 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8212 (sol2_init_abi): New function.
8213 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8214 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8215 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8216 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8217 (sparc_sol2_static_transform_name): Remove.
8218 (sparc32_sol2_init_abi): Call sol2_init_abi.
8219 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8220 set_gdbarch_static_transform_name,
8221 set_gdbarch_skip_solib_resolver,
8222 set_gdbarch_core_pid_to_str.
8223 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8224 (sparc_sol2_static_transform_name): Remove
8225 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8226 call sol2_sigtramp_p.
8227 (sparc64_sol2_init_abi): Call sol2_init_abi.
8228 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8229 set_gdbarch_static_transform_name,
8230 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8231
a8654e7d
PW
82322020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8233
8234 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8235 * exec.c (validate_exec_file): If from_tty, set both
8236 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8237 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8238 and from_tty, unconditionally ask a confirmation.
8239
caa7fd04
AB
82402020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8241
8242 * target-descriptions.c (tdesc_architecture_name): Protect against
8243 NULL pointer dereference.
8244 (maint_print_xml_tdesc_cmd): New function.
8245 (_initialize_target_descriptions): Register new 'maint print
8246 xml-tdesc' command and give it the filename completer.
8247 * NEWS: Mention new 'maint print xml-tdesc' command.
8248
fbf42f4e
AB
82492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * target-descriptions.c (class tdesc_compatible_info): New class.
8252 (struct target_desc): Change type of compatible vector.
8253 (tdesc_compatible_p): Update for change in type of
8254 target_desc::compatible.
8255 (tdesc_compatible_info_list): New function.
8256 (tdesc_compatible_info_arch_name): New function.
8257 (tdesc_add_compatible): Update for change in type of
8258 target_desc::compatible.
8259 (print_c_tdesc::visit_pre): Likewise.
8260
20821f4e
AB
82612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8262
8263 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8264 whitespace to underscore.
8265 (maint_print_c_tdesc_cmd): Use fake filename for target
8266 descriptions that came from the target.
8267 (_initialize_target_descriptions): Add filename command completion
8268 for 'maint print c-tdesc'.
8269
1fb5ee62
SM
82702020-06-23 Simon Marchi <simon.marchi@efficios.com>
8271
8272 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8273 lines.
8274
fc3ecb3e
SM
82752020-06-23 Simon Marchi <simon.marchi@efficios.com>
8276
8277 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8278 lines.
8279 (dwarf2_find_location_expression): Likewise.
8280 (call_site_parameter_matches): Likewise.
8281 (dwarf2_compile_expr_to_ax): Likewise.
8282 (disassemble_dwarf_expression): Likewise.
8283 (loclist_describe_location): Likewise.
8284
236ef034
PA
82852020-06-23 Pedro Alves <palves@redhat.com>
8286
8287 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8288 progspace-and-thread.h. Include scoped-mock-context.h instead.
8289 (register_to_value_test): Use scoped_mock_context.
8290 * regcache.c: Include "scoped-mock-context.h".
8291 (cooked_read_test): Don't error out if a target is already pushed.
8292 Use scoped_mock_context. Adjust.
8293 * scoped-mock-context.h: New file.
8294
39e7ecca
AB
82952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8296
8297 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8298 initializer.
8299 (ada_language::is_string_type_p): New member function.
8300 * c-lang.c (c_language_data): Delete la_is_string_type_p
8301 initializer.
8302 (cplus_language_data): Likewise.
8303 (asm_language_data): Likewise.
8304 (minimal_language_data): Likewise.
8305 * d-lang.c (d_language_data): Likewise.
8306 * f-lang.c (f_is_string_type_p): Delete function, implementation
8307 moved to f_language::is_string_type_p.
8308 (f_language_data): Delete la_is_string_type_p initializer.
8309 (f_language::is_string_type_p): New member function,
8310 implementation from f_is_string_type_p.
8311 * go-lang.c (go_is_string_type_p): Delete function, implementation
8312 moved to go_language::is_string_type_p.
8313 (go_language_data): Delete la_is_string_type_p initializer.
8314 (go_language::is_string_type_p): New member function,
8315 implementation from go_is_string_type_p.
8316 * language.c (language_defn::is_string_type_p): Define new member
8317 function.
8318 (default_is_string_type_p): Make static, add comment copied from
8319 header file.
8320 (unknown_language_data): Delete la_is_string_type_p initializer.
8321 (unknown_language::is_string_type_p): New member function.
8322 (auto_language_data): Delete la_is_string_type_p initializer.
8323 (auto_language::is_string_type_p): New member function.
8324 * language.h (language_data): Delete la_is_string_type_p field.
8325 (language_defn::is_string_type_p): Declare new function.
8326 (default_is_string_type_p): Delete desclaration, move comment to
8327 definition.
8328 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8329 moved to m2_language::is_string_type_p.
8330 (m2_language_data): Delete la_is_string_type_p initializer.
8331 (m2_language::is_string_type_p): New member function,
8332 implementation from m2_is_string_type_p.
8333 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8334 initializer.
8335 * opencl-lang.c (opencl_language_data): Likewise.
8336 * p-lang.c (pascal_is_string_type_p): Delete function,
8337 implementation moved to pascal_language::is_string_type_p.
8338 (pascal_language_data): Delete la_is_string_type_p initializer.
8339 (pascal_language::is_string_type_p): New member function,
8340 implementation from pascal_is_string_type_p.
8341 * rust-lang.c (rust_is_string_type_p): Delete function,
8342 implementation moved to rust_language::is_string_type_p.
8343 (rust_language_data): Delete la_is_string_type_p initializer.
8344 (rust_language::is_string_type_p): New member function,
8345 implementation from rust_is_string_type_p.
8346 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8347 is_string_type_p.
8348
4ffc13fb
AB
83492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8350
8351 * ada-lang.c (ada_language_data): Delete la_print_typedef
8352 initializer.
8353 (ada_language::print_typedef): New member function.
8354 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8355 (cplus_language_data): Likewise.
8356 (asm_language_data): Likewise.
8357 (minimal_language_data): Likewise.
8358 * d-lang.c (d_language_data): Likewise.
8359 * f-lang.c (f_language_data): Likewise.
8360 (f_language::print_typedef): New member function.
8361 * go-lang.c (go_language_data): Delete la_print_typedef
8362 initializer.
8363 * language.c (language_defn::print_typedef): Define member
8364 function.
8365 (unknown_language_data): Delete la_print_typedef initializer.
8366 (unknown_language::print_typedef): New member function.
8367 (auto_language_data): Delete la_print_typedef initializer.
8368 (auto_language::print_typedef): New member function.
8369 * language.h (language_data): Delete la_print_typedef field.
8370 (language_defn::print_typedef): Declare new member function.
8371 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8372 (default_print_typedef): Delete declaration.
8373 * m2-lang.c (m2_language_data): Delete la_print_typedef
8374 initializer.
8375 (m2_language::print_typedef): New member function.
8376 * objc-lang.c (objc_language_data): Delete la_print_typedef
8377 initializer.
8378 * opencl-lang.c (opencl_language_data): Likewise.
8379 * p-lang.c (pascal_language_data): Likewise.
8380 (pascal_language::print_typedef): New member function.
8381 * rust-lang.c (rust_print_typedef): Delete function,
8382 implementation moved to rust_language::print_typedef.
8383 (rust_language): Delete la_print_typedef initializer.
8384 (rust_language::print_typedef): New member function,
8385 implementation from rust_print_typedef.
8386 * typeprint.c (default_print_typedef): Delete.
8387
d711ee67
AB
83882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8389
8390 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8391 (ada_language::printstr): New member function.
8392 * c-lang.c (c_language_data): Delete la_printstr initializer.
8393 (cplus_language_data): Likewise.
8394 (asm_language_data): Likewise.
8395 (minimal_language_data): Likewise.
8396 * d-lang.c (d_language_data): Likewise.
8397 * f-lang.c (f_printstr): Rename to f_language::printstr.
8398 (f_language_data): Delete la_printstr initializer.
8399 (f_language::printstr): New member function, implementation from
8400 f_printstr.
8401 * go-lang.c (go_language_data): Delete la_printstr initializer.
8402 * language.c (language_defn::printstr): Define new member
8403 function.
8404 (unk_lang_printstr): Delete.
8405 (unknown_language_data): Delete la_printstr initializer.
8406 (unknown_language::printstr): New member function.
8407 (auto_language_data): Delete la_printstr initializer.
8408 (auto_language::printstr): New member function.
8409 * language.h (language_data): Delete la_printstr field.
8410 (language_defn::printstr): Declare new member function.
8411 (LA_PRINT_STRING): Update call to printstr.
8412 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8413 (m2_language_data): Delete la_printstr initializer.
8414 (m2_language::printstr): New member function, implementation from
8415 m2_printstr.
8416 * objc-lang.c (objc_language_data): Delete la_printstr
8417 initializer.
8418 * opencl-lang.c (opencl_language_data): Likewise.
8419 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8420 (pascal_language_data): Delete la_printstr initializer.
8421 (pascal_language::printstr): New member function, implementation
8422 from pascal_printstr.
8423 * p-lang.h (pascal_printstr): Delete declaration.
8424 * rust-lang.c (rust_printstr): Update header comment.
8425 (rust_language_data): Delete la_printstr initializer.
8426 (rust_language::printstr): New member function.
8427
52b50f2c
AB
84282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8431 (ada_language::printchar): New member function.
8432 * c-lang.c (c_language_data): Delete la_printchar initializer.
8433 (cplus_language_data): Likewise.
8434 (asm_language_data): Likewise.
8435 (minimal_language_data): Likewise.
8436 * d-lang.c (d_language_data): Likewise.
8437 * f-lang.c (f_printchar): Rename to f_language::printchar.
8438 (f_language_data): Delete la_printchar initializer.
8439 (f_language::printchar): New member function, implementation from
8440 f_printchar.
8441 * go-lang.c (go_language_data): Delete la_printchar initializer.
8442 * language.c (unk_lang_printchar): Delete.
8443 (language_defn::printchar): Define new member function.
8444 (unknown_language_data): Delete la_printchar initializer.
8445 (unknown_language::printchar): New member function.
8446 (auto_language_data): Delete la_printchar initializer.
8447 (auto_language::printchar): New member function.
8448 * language.h (language_data): Delete la_printchar field.
8449 (language_defn::printchar): Declare new member function.
8450 (LA_PRINT_CHAR): Update call to printchar.
8451 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8452 (m2_language::printchar): New member function.
8453 * objc-lang.c (objc_language_data): Delete la_printchar
8454 initializer.
8455 * opencl-lang.c (opencl_language_data): Likewise.
8456 * p-lang.c (pascal_language_data): Delete la_printchar
8457 initializer.
8458 (pascal_language::printchar): New member function.
8459 * rust-lang.c (rust_printchar): Rename to
8460 rust_language::printchar.
8461 (rust_language_data): Delete la_printchar initializer.
8462 (rust_language::printchar): New member function, implementation
8463 from rust_printchar.
8464
ec8cec5b
AB
84652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8466
8467 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8468 (ada_language_data): Delete la_emitchar initializer.
8469 (ada_language::emitchar): New member function, implementation from
8470 emit_char.
8471 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8472 (cplus_language_data): Likewise.
8473 (asm_language_data): Likewise.
8474 (minimal_language_data): Likewise.
8475 * d-lang.c (d_language_data): Likewise.
8476 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8477 (f_language_data): Delete la_emitchar initializer.
8478 (f_language::emitchar): New member function, implementation from
8479 f_emit_char.
8480 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8481 * language.c (unk_lang_emit_char): Delete.
8482 (language_defn::emitchar): New member function definition.
8483 (unknown_language_data): Delete la_emitchar initializer.
8484 (unknown_language::emitchar): New member function.
8485 (auto_language_data): Delete la_emitchar initializer.
8486 (auto_language::emitchar): New member function.
8487 * language.h (language_data): Delete la_emitchar field.
8488 (language_defn::emitchar): New member field declaration.
8489 (LA_EMIT_CHAR): Update call to emitchar.
8490 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8491 (m2_language_data): Delete la_emitchar initializer.
8492 (m2_language::emitchar): New member function, implementation from
8493 m2_emit_char.
8494 * objc-lang.c (objc_language_data): Delete la_emitchar
8495 initializer.
8496 * opencl-lang.c (opencl_language_data): Likewise.
8497 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8498 (pascal_language_data): Delete la_emitchar initializer.
8499 (pascal_language::emitchar): New member function, implementation
8500 from pascal_emit_char.
8501 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8502 (rust_language_data): Delete la_emitchar initializer.
8503 (rust_language::emitchar): New member function, implementation
8504 from rust_emitchar.
8505
1bf9c363
AB
85062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8507
8508 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8509 (ada_language_data): Delete la_post_parser initializer.
8510 (ada_language::post_parser): New member function.
8511 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8512 (cplus_language_data): Likewise.
8513 (asm_language_data): Likewise.
8514 (minimal_language_data): Likewise.
8515 * d-lang.c (d_language_data): Likewise.
8516 * f-lang.c (f_language_data): Likewise.
8517 * go-lang.c (go_language_data): Likewise.
8518 * language.c (unknown_language_data): Likewise.
8519 (auto_language_data): Likewise.
8520 * language.h (language_data): Delete la_post_parser field.
8521 (language_defn::post_parser): New member function.
8522 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8523 * objc-lang.c (objc_language_data): Likewise.
8524 * opencl-lang.c (opencl_language_data): Likewise.
8525 * p-lang.c (pascal_language_data): Likewise.
8526 * parse.c (parse_exp_in_context): Update call to post_parser.
8527 (null_post_parser): Delete definition.
8528 * parser-defs.h (null_post_parser): Delete declaration.
8529 * rust-lang.c (rust_language_data): Delete la_post_parser
8530 initializer.
8531
87afa652
AB
85322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8533
8534 * ada-lang.c (parse): Rename to ada_language::parser.
8535 (ada_language_data): Delete la_parser initializer.
8536 (ada_language::parser): New member function, implementation from
8537 parse.
8538 * c-lang.c (c_language_data): Delete la_parser initializer.
8539 (cplus_language_data): Likewise.
8540 (asm_language_data): Likewise.
8541 (minimal_language_data): Likewise.
8542 * d-lang.c (d_language_data): Likewise.
8543 (d_language::parser): New member function.
8544 * f-lang.c (f_language_data): Delete la_parser initializer.
8545 (f_language::parser): New member function.
8546 * go-lang.c (go_language_data): Delete la_parser initializer.
8547 (go_language::parser): New member function.
8548 * language.c (unk_lang_parser): Delete.
8549 (language_defn::parser): Define new member function.
8550 (unknown_language_data): Delete la_parser initializer.
8551 (unknown_language::parser): New member function.
8552 (auto_language_data): Delete la_parser initializer.
8553 (auto_language::parser): New member function.
8554 * language.h (language_data): Delete la_parser field.
8555 (language_defn::parser): Declare new member function.
8556 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8557 (m2_language::parser): New member function.
8558 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8559 * opencl-lang.c (opencl_language_data): Likewise.
8560 * p-lang.c (pascal_language_data): Likewise.
8561 (pascal_language::parser): New member function.
8562 * parse.c (parse_exp_in_context): Update call to parser.
8563 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8564 (rust_language::parser): New member function.
8565
37825800
AB
85662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8567
8568 * top.c (print_gdb_configuration): Print --with-python-libdir
8569 configuration value.
8570
5b860c93
PW
85712020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8572
8573 * NEWS: Mention change to the alias command.
8574
cf00cd6f
PW
85752020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8576
8577 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8578 (alias_command_completer)
8579 (make_alias_options_def_group): New functions.
8580 (alias_opts, alias_option_defs): New struct and array.
8581 (alias_usage_error): Update usage.
8582 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8583 Use option framework.
8584 (_initialize_cli_cmds): Update alias command help.
8585 Update aliases command help.
8586 (show_user):
8587 Add NULL for new default_args lookup_cmd argument.
8588 (valid_command_p): Rename to validate_aliased_command.
8589 Add NULL for new default_args lookup_cmd argument. Verify that the
8590 aliased_command has no default args.
8591 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8592 (lookup_cmd_1, lookup_cmd): New argument default_args.
8593 (add_alias_cmd):
8594 Add NULL for new default_args lookup_cmd argument.
8595 (print_help_for_command): Show default args under the layout
8596 alias some_alias = some_aliased_cmd some_alias_default_arg.
8597 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8598 xfree default_args in destructor.
8599 * cli/cli-script.c (process_next_line, do_define_command):
8600 Add NULL for new default_args lookup_cmd argument.
8601 * command.h: Declare new default_args argument in lookup_cmd
8602 and lookup_cmd_1.
8603 * completer.c (complete_line_internal_1):
8604 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8605 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8606 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8607 Likewise.
8608 * infcmd.c (_initialize_infcmd): Likewise.
8609 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8610 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8611 * python/py-param.c (add_setshow_generic): Likewise.
8612 * remote.c (_initialize_remote): Likewise.
8613 * top.c (execute_command): Prepend default_args if command has some.
8614 (set_verbose):
8615 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8616 * tracepoint.c (validate_actionline, encode_actions_1):
8617 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8618
bd920864
TBA
86192020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8620
8621 * jit.c (jit_read_descriptor): Use bool as the return type.
8622 (jit_breakpoint_re_set_internal): Use bool as the return type.
8623 Invert the return value logic; return true if the jit breakpoint
8624 has been successfully initialized.
8625 (jit_inferior_init): Update the call to
8626 jit_breakpoint_re_set_internal.
8627
f8098322
PA
86282020-06-22 Pedro Alves <palves@redhat.com>
8629
8630 PR gdb/25939
8631 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8632 Use the current inferior instead. Don't return
8633 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8634 wait again.
8635 * sol-thread.c (sol_thread_target::wait): Don't reference
8636 inferior_ptid.
8637 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8638 (sol_update_thread_list_callback): Use the current inferior's pid
8639 instead of inferior_ptid.
8640
196535a6
RO
86412020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8642
8643 * procfs.c: Cleanup many comments.
8644
8645 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8646 (AFTER_WATCHFLAG): Replace by value.
8647
8648 (MAIN_PROC_NAME_FORMAT): Inline ...
8649 (create_procinfo): ... here.
8650
8651 (procfs_debug_inferior): Remove SYS_exec handling.
8652 (syscall_is_exec): Likewise.
8653 (procfs_set_exec_trap): Likewise.
8654
8655 (syscall_is_lwp_exit): Inline in callers.
8656 (syscall_is_exit): Likewise.
8657 (syscall_is_exec): Likewise.
8658 (syscall_is_lwp_create): Likewise.
8659
8660 (invalidate_cache): Remove #if 0 code.
8661
8662 (make_signal_thread_runnable): Remove.
8663 (procfs_target::resume): Remove #if 0 code.
8664
cf6f3e86
RO
86652020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8666
8667 PR gdb/25939
8668 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8669 call ...
8670 (procfs_target::create_inferior): ... here.
8671
48e9cc84
PW
86722020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8673
8674 * exec.c (validate_exec_file): Ensure the build-id is up to
8675 date by calling reopen_exec_file (that checks file timestamp
8676 to decide to re-read the file).
8677
3922b302
PA
86782020-06-18 Pedro Alves <palves@redhat.com>
8679
8680 PR gdb/25412
8681 * gdbthread.h (delete_thread, delete_thread_silent)
8682 (find_thread_ptid): Update comments.
8683 * thread.c (current_thread_): New global.
8684 (is_current_thread): Move higher, and reimplement.
8685 (inferior_thread): Reimplement.
8686 (set_thread_exited): Use bool. Add assertions.
8687 (add_thread_silent): Simplify thread-reuse handling by always
8688 calling delete_thread.
8689 (delete_thread): Remove intro comment.
8690 (find_thread_ptid): Skip exited threads.
8691 (switch_to_thread_no_regs): Write to current_thread_.
8692 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8693 INFERIOR_PTID. Clear current_thread_.
8694
6dbdab44
PA
86952020-06-18 Pedro Alves <palves@redhat.com>
8696
8697 * aix-thread.c (pd_update): Use switch_to_thread.
8698
2da4b788
PA
86992020-06-18 Pedro Alves <palves@redhat.com>
8700
8701 * ravenscar-thread.c (ravenscar_thread_target): Update.
8702 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8703 (ravenscar_thread_target::add_active_thread): ... this. Don't
8704 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8705 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8706
50838d1b
PA
87072020-06-18 Pedro Alves <palves@redhat.com>
8708
8709 * nat/windows-nat.c (current_windows_thread): Remove.
8710 * nat/windows-nat.h (current_windows_thread): Remove.
8711 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8712 Adjust.
8713 (display_selectors): Adjust to fetch the current
8714 windows_thread_info based on inferior_ptid.
8715 (fake_create_process): No longer write to current_windows_thread.
8716 (windows_nat_target::get_windows_debug_event):
8717 Don't set inferior_ptid or current_windows_thread.
8718 (windows_nat_target::wait): Adjust to not rely on
8719 current_windows_thread.
8720 (do_initial_windows_stuff): Now a method of windows_nat_target.
8721 Switch to the last_ptid thread.
8722 (windows_nat_target::attach): Adjust.
8723 (windows_nat_target::detach): Use switch_to_no_thread instead of
8724 writing to inferior_ptid directly.
8725 (windows_nat_target::create_inferior): Adjust.
8726
31ce04e9
PA
87272020-06-18 Pedro Alves <palves@redhat.com>
8728
8729 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8730
1ee1a363
PA
87312020-06-18 Pedro Alves <palves@redhat.com>
8732
8733 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8734 after creating it, instead of writing to inferior_ptid. Don't
8735 write to inferior_ptid.
8736
6d350754
PA
87372020-06-18 Pedro Alves <palves@redhat.com>
8738
8739 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8740
5d971d48
PA
87412020-06-18 Pedro Alves <palves@redhat.com>
8742
8743 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8744 it, instead of writing to inferior_ptid.
8745
86e57d1b
PA
87462020-06-18 Pedro Alves <palves@redhat.com>
8747
8748 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8749 to inferior_ptid.
8750
f2e1c129
PA
87512020-06-18 Pedro Alves <palves@redhat.com>
8752
8753 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8754 instead of writing to inferior_ptid directly.
8755
60db1b85
PA
87562020-06-18 Pedro Alves <palves@redhat.com>
8757
8758 * corelow.c (core_target::close): Use switch_to_no_thread instead
8759 of writing to inferior_ptid directly.
8760 (add_to_thread_list, core_target_open): Use switch_to_thread
8761 instead of writing to inferior_ptid directly.
8762
fe7d6a8d
PA
87632020-06-18 Pedro Alves <palves@redhat.com>
8764
8765 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8766 inferior_ptid.
8767 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8768 inferior_ptid.
8769 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8770 inferior_ptid directly.
8771 (darwin_nat_target::init_thread_list): Switch to thread, instead
8772 of writing to inferior_ptid.
8773 (darwin_nat_target::attach): Don't write to inferior_ptid.
8774 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8775
975f8708
PA
87762020-06-18 Pedro Alves <palves@redhat.com>
8777
8778 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8779 thread.
8780 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8781 Instead use switch_to_thread.
8782 (gnu_nat_target::detach): Use switch_to_no_thread
8783 instead of writing to inferior_ptid directly. Used passed-in
8784 inferior instead of looking up the inferior by pid.
8785
1a204730
PA
87862020-06-18 Pedro Alves <palves@redhat.com>
8787
8788 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8789 inferior_ptid.
8790
ebe84f23
PA
87912020-06-18 Pedro Alves <palves@redhat.com>
8792
8793 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8794 inferior_ptid.
8795 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8796 thread.
8797 (nto_procfs_target::detach): Avoid referencing
8798 inferior_ptid. Use switch_to_no_thread instead of writing to
8799 inferior_ptid directly.
8800 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8801 instead of writing to inferior_ptid directly.
8802 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8803 to thread.
8804
191f02e5
PA
88052020-06-18 Pedro Alves <palves@redhat.com>
8806
8807 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8808 after creating it, instead of writing to inferior_ptid.
8809 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8810 to inferior_ptid directly.
8811 (gdbsim_target::wait): Don't write to inferior_ptid.
8812
0ac55310
PA
88132020-06-18 Pedro Alves <palves@redhat.com>
8814
8815 * remote.c (remote_target::remote_notice_new_inferior): Use
8816 switch_to_thread instead of writing to inferior_ptid directly.
8817 (remote_target::add_current_inferior_and_thread): Use
8818 switch_to_no_thread instead of writing to inferior_ptid directly.
8819 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8820 and switch_to_thread instead of using set_current_inferior or
8821 writing to inferior_ptid directly.
8822
5233f39b
PA
88232020-06-18 Pedro Alves <palves@redhat.com>
8824
8825 * tracectf.c (ctf_target_open): Switch to added thread instead of
8826 writing to inferior_ptid directly.
8827 (ctf_target::close): Use switch_to_no_thread instead of writing to
8828 inferior_ptid directly.
8829
087e161b
PA
88302020-06-18 Pedro Alves <palves@redhat.com>
8831
8832 * tracefile-tfile.c (tfile_target_open): Don't write to
8833 inferior_ptid directly, instead switch to added thread.
8834 (tfile_target::close): Use switch_to_no_thread instead of writing
8835 to inferior_ptid directly.
8836
7fb43e53
PA
88372020-06-18 Pedro Alves <palves@redhat.com>
8838
8839 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8840 (procfs_target::detach): Use switch_to_no_thread
8841 instead of writing to inferior_ptid directly.
8842 (do_attach): Change return type to void. Switch to the added
8843 thread.
8844 (procfs_target::create_inferior): Switch to the added thread.
8845 (procfs_do_thread_registers): Don't write to inferior_ptid.
8846
18493a00
PA
88472020-06-18 Pedro Alves <palves@redhat.com>
8848
8849 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8850 of writing to inferior_ptid.
8851 (scoped_restore_exited_inferior): Delete.
8852 (handle_vfork_child_exec_or_exit): Simplify using
8853 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8854 instead of writing to inferior_ptid.
8855 (THREAD_STOPPED_BY): Delete.
8856 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8857 (thread_stopped_by_hw_breakpoint): Delete.
8858 (save_waitstatus): Use
8859 scoped_restore_current_thread+switch_to_thread, and call
8860 target_stopped_by_watchpoint instead of
8861 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8862 instead of thread_stopped_by_sw_breakpoint, and
8863 target_stopped_by_hw_breakpoint instead of
8864 thread_stopped_by_hw_breakpoint.
8865 (handle_inferior_event)
8866 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8867 inferior_ptid directly, nor
8868 set_current_inferior/set_current_program_space. Use
8869 switch_to_thread / switch_to_inferior_no_thread instead.
8870
a0776b13
PA
88712020-06-18 Pedro Alves <palves@redhat.com>
8872
8873 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8874 instead of writing to inferior_ptid.
8875
6155c136
PA
88762020-06-18 Pedro Alves <palves@redhat.com>
8877
8878 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8879 added thread.
8880 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8881 to the added thread.
8882 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8883 instead of writing to inferior_ptid.
8884
c5316fc6
PA
88852020-06-18 Pedro Alves <palves@redhat.com>
8886
8887 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8888 (register_to_value_test): Mock a program_space too. Heap-allocate
8889 the address space. Don't write to inferior_ptid. Use
8890 switch_to_thread instead.
8891
8df01799
PA
88922020-06-18 Pedro Alves <palves@redhat.com>
8893
8894 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8895 Delete.
8896 (find_signalled_thread()): New, factored out from
8897 linux_make_corefile_notes and adjusted to handle exited threads.
8898 (linux_make_corefile_notes): Adjust to use the new
8899 find_signalled_thread.
8900
41792d68
PA
89012020-06-18 Pedro Alves <palves@redhat.com>
8902
8903 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8904 of saving/restoring inferior_ptid.
8905
612f258a
TT
89062020-06-17 Tom Tromey <tom@tromey.com>
8907
8908 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8909 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8910 declare.
8911 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8912
efb763a5
SM
89132020-06-15 Simon Marchi <simon.marchi@efficios.com>
8914
8915 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8916 of partial symtabs.
8917
2951f6c0
SM
89182020-06-17 Simon Marchi <simon.marchi@efficios.com>
8919
8920 * regformats/reg-arm.dat: Remove.
8921 * regformats/reg-bfin.dat: Remove.
8922 * regformats/reg-cris.dat: Remove.
8923 * regformats/reg-crisv32.dat: Remove.
8924 * regformats/reg-m32r.dat: Remove.
8925 * regformats/reg-tilegx.dat: Remove.
8926 * regformats/reg-tilegx32.dat: Remove.
8927
7d458ea5
SM
89282020-06-17 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * features/Makefile (WHICH): Remove arm files.
8931 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8932 * regformats/arm/arm-with-neon.dat: Remove.
8933 * regformats/arm/arm-with-vfpv2.dat: Remove.
8934 * regformats/arm/arm-with-vfpv3.dat: Remove.
8935
3af96c0d
SM
89362020-06-17 Simon Marchi <simon.marchi@efficios.com>
8937
8938 * features/Makefile (XMLTOC): Remove rx.xml.
8939
b25e22fd
PA
89402020-06-17 Pedro Alves <palves@redhat.com>
8941
8942 * gdbthread.h (thread_control_state) <trap_expected> Update
8943 comments.
8944
a78a19b1
AB
89452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8946
8947 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8948 ada_language::lookup_symbol_nonlocal.
8949 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8950 (ada_language::lookup_symbol_nonlocal): New member function,
8951 implementation from ada_lookup_symbol_nonlocal.
8952 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
8953 initializer.
8954 (cplus_language_data): Delete la_lookup_symbol_nonlocal
8955 initializer.
8956 (cplus_language::lookup_symbol_nonlocal): New member function.
8957 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
8958 (minimal_language_data) Likewise.
8959 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
8960 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
8961 initializer.
8962 (d_language::lookup_symbol_nonlocal): New member function.
8963 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
8964 initializer.
8965 (f_language::lookup_symbol_nonlocal): New member function.
8966 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
8967 initializer.
8968 * language.c (unknown_language_data): Likewise.
8969 (auto_language_data): Likewise.
8970 * language.h (language_data): Delete la_lookup_symbol_nonlocal
8971 field.
8972 (language_defn::lookup_symbol_nonlocal): New member function.
8973 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
8974 initializer.
8975 * objc-lang.c (objc_language_data): Likewise.
8976 * opencl-lang.c (opencl_language_data): Likewise.
8977 * p-lang.c (pascal_language_data): Likewise.
8978 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
8979 rust_language::lookup_symbol_nonlocal.
8980 (rust_language_data): Delete la_lookup_symbol_nonlocal
8981 initializer.
8982 (rust_language::lookup_symbol_nonlocal): New member function,
8983 implementation from rust_lookup_symbol_nonlocal.
8984 * symtab.c (lookup_symbol_aux): Update call to
8985 lookup_symbol_nonlocal.
8986 (basic_lookup_symbol_nonlocal): Rename to...
8987 (language_defn::lookup_symbol_nonlocal): ...this, and update
8988 header comment. Remove language_defn parameter, and replace with
8989 uses of `this'.
8990 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
8991
ebe2334e
AB
89922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8993
8994 * ada-lang.c (ada_language_data): Delete la_value_print_inner
8995 initializer.
8996 (ada_language::value_print_inner): New member function.
8997 * c-lang.c (c_language_data): Delete la_value_print_inner
8998 initializer.
8999 (cplus_language_data): Likewise.
9000 (asm_language_data): Likewise.
9001 (minimal_language_data): Likewise.
9002 * d-lang.c (d_language_data): Likewise.
9003 (d_language::value_print_inner): New member function.
9004 * f-lang.c (f_language_data): Delete la_value_print_inner
9005 initializer.
9006 (f_language::value_print_inner): New member function.
9007 * f-lang.h (f_value_print_innner): Rename to...
9008 (f_value_print_inner): ...this (note spelling of 'inner').
9009 * f-valprint.c (f_value_print_innner): Rename to...
9010 (f_value_print_inner): ...this (note spelling of 'inner').
9011 * go-lang.c (go_language_data): Delete la_value_print_inner
9012 initializer.
9013 (go_language::value_print_inner): New member function.
9014 * language.c (language_defn::value_print_inner): Define new member
9015 function.
9016 (unk_lang_value_print_inner): Delete.
9017 (unknown_language_data): Delete la_value_print_inner initializer.
9018 (unknown_language::value_print_inner): New member function.
9019 (auto_language_data): Delete la_value_print_inner initializer.
9020 (auto_language::value_print_inner): New member function.
9021 * language.h (language_data): Delete la_value_print_inner field.
9022 (language_defn::value_print_inner): Delcare new member function.
9023 * m2-lang.c (m2_language_data): Delete la_value_print_inner
9024 initializer.
9025 (m2_language::value_print_inner): New member function.
9026 * objc-lang.c (objc_language_data): Delete la_value_print_inner
9027 initializer.
9028 * opencl-lang.c (opencl_language_data): Likewise.
9029 * p-lang.c (pascal_language_data): Likewise.
9030 (pascal_language::value_print_inner): New member function.
9031 * rust-lang.c (rust_language_data): Delete la_value_print_inner
9032 initializer.
9033 (rust_language::value_print_inner): New member function.
9034 * valprint.c (do_val_print): Update call to value_print_inner.
9035
a1d1fa3e
AB
90362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9037
9038 * ada-lang.c (ada_language_data): Delete la_value_print
9039 initializer.
9040 (ada_language::value_print): New member function.
9041 * c-lang.c (c_language_data): Delete la_value_print initializer.
9042 (cplus_language_data): Likewise.
9043 (asm_language_data): Likewise.
9044 (minimal_language_data): Likewise.
9045 * d-lang.c (d_language_data): Likewise.
9046 * f-lang.c (f_language_data): Likewise.
9047 * go-lang.c (go_language_data): Likewise.
9048 * language.c (unk_lang_value_print): Delete.
9049 (language_defn::value_print): Define new member function.
9050 (unknown_language_data): Delete la_value_print initializer.
9051 (unknown_language::value_print): New member function.
9052 (auto_language_data): Delete la_value_print initializer.
9053 (auto_language::value_print): New member function.
9054 * language.h (language_data): Delete la_value_print field.
9055 (language_defn::value_print): Declare new member function.
9056 (LA_VALUE_PRINT): Update call to value_print.
9057 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
9058 * objc-lang.c (objc_language_data): Likewise.
9059 * opencl-lang.c (opencl_language_data): Likewise.
9060 * p-lang.c (pascal_language_data): Likewise.
9061 (pascal_language::value_print): New member function.
9062 * rust-lang.c (rust_language_data): Delete la_value_print
9063 initializer.
9064
f16a9f57
AB
90652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9066
9067 * ada-lang.c (ada_watch_location_expression): Rename to
9068 ada_language::watch_location_expression.
9069 (ada_language_data): Delete la_watch_location_expression
9070 initializer.
9071 (ada_language::watch_location_expression): New member function,
9072 implementation from ada_watch_location_expression.
9073 * breakpoint.c (watch_command_1): Update call to
9074 watch_location_expression.
9075 * c-lang.c (c_watch_location_expression): Rename to
9076 language_defn::watch_location_expression.
9077 (c_language_data): Delete la_watch_location_expression
9078 initializer.
9079 (cplus_language_data): Likewise.
9080 (asm_language_data): Likewise.
9081 (minimal_language_data): Likewise.
9082 * c-lang.h (c_watch_location_expression): Delete declaration.
9083 * d-lang.c (d_language_data): Delete la_watch_location_expression
9084 initializer.
9085 * f-lang.c (f_language_data): Likewise.
9086 * go-lang.c (go_language_data): Likewise.
9087 * language.c (language_defn::watch_location_expression): Member
9088 function implementation from c_watch_location_expression.
9089 (unknown_language_data): Delete la_watch_location_expression
9090 initializer.
9091 (auto_language_data): Likewise.
9092 * language.h (language_data): Delete la_watch_location_expression
9093 field.
9094 (language_defn::watch_location_expression): Declare new member
9095 function.
9096 * m2-lang.c (m2_language_data): Delete
9097 la_watch_location_expression initializer.
9098 * objc-lang.c (objc_language_data): Likewise.
9099 * opencl-lang.c (opencl_language_data): Likewise.
9100 * p-lang.c (pascal_language_data): Likewise.
9101 * rust-lang.c (rust_watch_location_expression): Rename to
9102 rust_language::watch_location_expression.
9103 (rust_language_data): Delete la_watch_location_expression
9104 initializer.
9105 (rust_language::watch_location_expression): New member function,
9106 implementation from rust_watch_location_expression.
9107
7e56227d
AB
91082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
9111 ada_language::collect_symbol_completion_matches.
9112 (ada_language_data): Delete la_collect_symbol_completion_matches
9113 initializer.
9114 (ada_language::collect_symbol_completion_matches): New member
9115 function, implementation from
9116 ada_collect_symbol_completion_matches.
9117 * c-lang.c (c_language_data): Delete
9118 la_collect_symbol_completion_matches initializer.
9119 (cplus_language_data): Likewise.
9120 (asm_language_data): Likewise.
9121 (minimal_language_data): Likewise.
9122 * d-lang.c (d_language_data): Likewise.
9123 * f-lang.c (f_collect_symbol_completion_matches): Rename to
9124 f_language::collect_symbol_completion_matches.
9125 (f_language_data): Delete la_collect_symbol_completion_matches
9126 initializer.
9127 (f_language::collect_symbol_completion_matches) New member
9128 function, implementation from f_collect_symbol_completion_matches.
9129 * go-lang.c (go_language_data): Delete
9130 la_collect_symbol_completion_matches initializer.
9131 * language.c (unknown_language_data): Likewise.
9132 (auto_language_data): Likewise.
9133 * language.h (language_data): Delete
9134 la_collect_symbol_completion_matches field.
9135 (language_defn::collect_symbol_completion_matches): New member
9136 function.
9137 * m2-lang.c (m2_language_data): Delete
9138 la_collect_symbol_completion_matches initializer.
9139 * objc-lang.c (objc_language_data): Likewise.
9140 * opencl-lang.c (opencl_language_data): Likewise.
9141 * p-lang.c (pascal_language_data): Likewise.
9142 * rust-lang.c (rust_language_data): Likewise.
9143 * symtab.c (default_collect_symbol_completion_matches): Delete.
9144 (collect_symbol_completion_matches): Update call to
9145 collect_symbol_completion_matches.
9146 (collect_symbol_completion_matches_type): Likewise.
9147 * symtab.h (default_collect_symbol_completion_matches): Delete
9148 declaration.
9149
53fc67f8
AB
91502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9151
9152 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9153 (ada_language_data): Delete la_word_break_characters initializer.
9154 (ada_language::word_break_characters): New member function.
9155 * c-lang.c (c_language_data): Delete la_word_break_characters
9156 initializer.
9157 (cplus_language_data): Likewise.
9158 (asm_language_data): Likewise.
9159 (minimal_language_data): Likewise.
9160 * completer.c: Update global comment.
9161 (advance_to_expression_complete_word_point): Update call to
9162 word_break_characters.
9163 (complete_files_symbols): Likewise.
9164 (complete_line_internal_1): Likewise.
9165 (default_completer_handle_brkchars): Likewise.
9166 (skip_quoted_chars): Likewise.
9167 * d-lang.c (d_language_data): Delete la_word_break_characters
9168 initializer.
9169 * f-lang.c (f_word_break_characters): Delete.
9170 (f_language_data): Delete la_word_break_characters initializer.
9171 (f_language::word_break_characters): New member function.
9172 * go-lang.c (go_language_data): Delete la_word_break_characters
9173 initializer.
9174 * language.c (unknown_language_data): Likewise.
9175 (auto_language_data): Likewise.
9176 * language.h (default_word_break_characters): Move declaration to
9177 earlier in the file.
9178 (language_data): Delete la_word_break_characters field.
9179 (language_defn::word_break_characters): New member function.
9180 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9181 initializer.
9182 * objc-lang.c (objc_language_data): Likewise.
9183 * opencl-lang.c (opencl_language_data): Likewise.
9184 * p-lang.c (pascal_language_data): Likewise.
9185 * rust-lang.c (rust_language_data): Likewise.
9186
c9debfb9
AB
91872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9188
9189 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9190 (ada_language_data): Delete la_get_symbol_name_matcher
9191 initializer.
9192 (language_defn::get_symbol_name_matcher_inner): New member
9193 function.
9194 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9195 initializer.
9196 (cplus_language_data): Likewise.
9197 (cplus_language::get_symbol_name_matcher_inner): New member
9198 function.
9199 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9200 (minimal_language_data): Likewise.
9201 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9202 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9203 initializer.
9204 * dictionary.c (iter_match_first_hashed): Update call to
9205 get_symbol_name_matcher.
9206 (iter_match_next_hashed): Likewise.
9207 (iter_match_next_linear): Likewise.
9208 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9209 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9210 initializer.
9211 (f_language::get_symbol_name_matcher_inner): New member function.
9212 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9213 initializer.
9214 * language.c (default_symbol_name_matcher): Update header comment,
9215 make static.
9216 (language_defn::get_symbol_name_matcher): New definition.
9217 (language_defn::get_symbol_name_matcher_inner): Likewise.
9218 (get_symbol_name_matcher): Delete.
9219 (unknown_language_data): Delete la_get_symbol_name_matcher
9220 initializer.
9221 (auto_language_data): Likewise.
9222 * language.h (language_data): Delete la_get_symbol_name_matcher
9223 field.
9224 (language_defn::get_symbol_name_matcher): New member function.
9225 (language_defn::get_symbol_name_matcher_inner): Likewise.
9226 (default_symbol_name_matcher): Delete declaration.
9227 * linespec.c (find_methods): Update call to
9228 get_symbol_name_matcher.
9229 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9230 initializer.
9231 * minsyms.c (lookup_minimal_symbol): Update call to
9232 get_symbol_name_matcher.
9233 (iterate_over_minimal_symbols): Likewise.
9234 * objc-lang.c (objc_language_data): Delete
9235 la_get_symbol_name_matcher initializer.
9236 * opencl-lang.c (opencl_language_data): Likewise.
9237 * p-lang.c (pascal_language_data): Likewise.
9238 * psymtab.c (psymbol_name_matches): Update call to
9239 get_symbol_name_matcher.
9240 * rust-lang.c (rust_language_data): Delete
9241 la_get_symbol_name_matcher initializer.
9242 * symtab.c (symbol_matches_search_name): Update call to
9243 get_symbol_name_matcher.
9244 (compare_symbol_name): Likewise.
9245
9a49ad8c
AB
92462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9247
9248 * ada-lang.c (ada_language_data): Delete la_compute_program
9249 initializer.
9250 * c-lang.c (c_language_data): Likewise.
9251 (c_language::compute_program): New member function.
9252 (cplus_language_data): Delete la_compute_program initializer.
9253 (cplus_language::compute_program): New member function.
9254 (asm_language_data): Delete la_compute_program initializer.
9255 (minimal_language_data): Likewise.
9256 * c-lang.h (c_compute_program): Update comment.
9257 (cplus_compute_program): Likewise.
9258 * compile/compile-c-support.c (c_compute_program): Likewise.
9259 (cplus_compute_program): Likewise.
9260 * compile/compile.c (compile_to_object): Update call to
9261 la_compute_program.
9262 * d-lang.c (d_language_data): Delete la_compute_program
9263 initializer.
9264 * f-lang.c (f_language_data): Likewise.
9265 * go-lang.c (go_language_data): Likewise.
9266 * language.c (unknown_language_data): Likewise.
9267 (auto_language_data): Likewise.
9268 * language.h (language_data): Delete la_compute_program field.
9269 (language_defn::compute_program): New member function.
9270 * m2-lang.c (m2_language_data): Delete la_compute_program
9271 initializer.
9272 * objc-lang.c (objc_language_data): Likewise.
9273 * opencl-lang.c (opencl_language_data): Likewise.
9274 * p-lang.c (pascal_language_data): Likewise.
9275 * rust-lang.c (rust_language_data): Likewise.
9276
eff93b4d
AB
92772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9278
9279 * ada-lang.c (ada_language_data) Delete
9280 la_class_name_from_physname initializer.
9281 * c-lang.c (c_language_data): Likewise.
9282 (cplus_language_data): Likewise.
9283 (cplus_language::class_name_from_physname): New member function.
9284 (asm_language_data): Delete la_class_name_from_physname
9285 initializer.
9286 (minimal_language_data): Likewise.
9287 * d-lang.c (d_language_data): Likewise.
9288 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9289 method on language_defn class.
9290 (guess_full_die_structure_name): Likewise.
9291 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9292 initializer.
9293 * go-lang.c (go_language_data): Likewise.
9294 * language.c (language_class_name_from_physname): Delete.
9295 (unk_lang_class_name): Delete.
9296 (unknown_language_data): Delete la_class_name_from_physname
9297 initializer.
9298 (auto_language_data): Likewise.
9299 * language.h (language_data): Delete la_class_name_from_physname
9300 field.
9301 (language_defn::class_name_from_physname): New function.
9302 (language_class_name_from_physname): Delete declaration.
9303 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9304 initializer.
9305 * objc-lang.c (objc_language_data): Likewise.
9306 * opencl-lang.c (opencl_language_data): Likewise.
9307 * p-lang.c (pascal_language_data): Likewise.
9308 * rust-lang.c (rust_language_data): Likewise.
9309
de543742
TT
93102020-06-16 Tom Tromey <tom@tromey.com>
9311
9312 * tui/tui-data.h (STATUS_NAME): New macro.
9313 * tui/tui-layout.c (tui_remove_some_windows)
9314 (initialize_known_windows, tui_register_window)
9315 (tui_layout_split::remove_windows, initialize_layouts)
9316 (tui_new_layout_command): Don't use hard-coded window names.
9317
a350efd4
TT
93182020-06-16 Tom Tromey <tom@tromey.com>
9319
9320 PR tui/25348:
9321 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9322 tui_initialize_readline. Only run once. Call rl_initialize.
9323 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9324 tui_initialize_readline.
9325 * tui/tui-io.c (tui_setup_io): Call
9326 tui_ensure_readline_initialized.
9327 * tui/tui-interp.c (tui_interp::init): Update.
9328
39ec0490
TT
93292020-06-16 Tom Tromey <tom@tromey.com>
9330
9331 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9332 Also preserve the status window.
9333
d2d1ea20
TT
93342020-06-16 Tom Tromey <tom@tromey.com>
9335
9336 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9337 where m_window==nullptr.
9338
66920317
TT
93392020-06-15 Tom Tromey <tromey@adacore.com>
9340
9341 * windows-nat.c (windows_nat::handle_output_debug_string):
9342 Update.
9343 (windows_nat::handle_ms_vc_exception): Update.
9344 * target.h (target_read_string): Change API.
9345 * target.c (target_read_string): Change API.
9346 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9347 Update.
9348 * solib-frv.c (frv_current_sos): Update.
9349 * solib-dsbt.c (dsbt_current_sos): Update.
9350 * solib-darwin.c (darwin_current_sos): Update.
9351 * linux-thread-db.c (inferior_has_bug): Update.
9352 * expprint.c (print_subexp_standard): Update.
9353 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9354 (ada_exception_message_1): Update.
9355
a5d871dd
TT
93562020-06-15 Tom Tromey <tromey@adacore.com>
9357
9358 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9359
670e35fa
TT
93602020-06-15 Tom Tromey <tromey@adacore.com>
9361
9362 * valprint.c (read_string): Update comment.
9363 * target.c (MIN): Remove.
9364 (target_read_string): Rewrite.
9365
f5272a3b
TT
93662020-06-15 Tom Tromey <tromey@adacore.com>
9367
9368 * corefile.c (read_memory_string): Remove.
9369 * ada-valprint.c (ada_value_print_ptr): Update.
9370 * ada-lang.h (ada_tag_name): Change return type.
9371 * ada-lang.c (type_from_tag): Update.
9372 (ada_tag_name_from_tsd): Change return type. Use
9373 target_read_string.
9374 (ada_tag_name): Likewise.
9375 * gdbcore.h (read_memory_string): Don't declare.
9376
2c074f49
HD
93772020-06-14 Hannes Domani <ssbssa@yahoo.de>
9378
9379 * symtab.c (rbreak_command): Ignore Windows drive colon.
9380
6a17d503
SM
93812020-06-12 Simon Marchi <simon.marchi@efficios.com>
9382
9383 * NEWS: Mention removed GDBserver host support.
9384
453c733f
NC
93852020-06-12 Nelson Chu <nelson.chu@sifive.com>
9386
9387 * features/riscv/rebuild-csr-xml.sh: Updated.
9388
2b4e6a3f
TT
93892020-06-11 Tom Tromey <tom@tromey.com>
9390
9391 PR gdb/18318:
9392 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9393
4412332f
JG
93942020-06-09 Jonny Grant <jg@jguk.org>
93952020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9396
9397 * main.c (captured_main_1): Don't print new line after help.
9398 (print_gdb_help): add mailing list and IRC channel information
9399 to --help. Add new lines between items in the footer. Remove
9400 quotes around bug url.
9401
2f33032a
KS
94022020-06-11 Keith Seitz <keiths@redhat.com>
9403
9404 PR gdb/21356
9405 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9406 Resolve typedefs for type length calculations.
9407
7ab96794
TV
94082020-06-10 Tom de Vries <tdevries@suse.de>
9409
9410 PR ada/24713
9411 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9412 (write_psymbols): Enable .gdb_index for ada.
9413 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9414 ada.
9415
e5f3ece2
TV
94162020-06-10 Tom de Vries <tdevries@suse.de>
9417
9418 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9419 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9420 namei" instead of "const char *name" argument.
9421 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9422 dw2_symtab_iter_init.
9423
940da03e
SM
94242020-06-08 Simon Marchi <simon.marchi@efficios.com>
9425
9426 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9427 to use type::field and field::type instead.
9428
b6cdac4b
SM
94292020-06-08 Simon Marchi <simon.marchi@efficios.com>
9430
9431 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9432 to use field::type instead.
9433
5d14b6e5
SM
94342020-06-08 Simon Marchi <simon.marchi@efficios.com>
9435
9436 * gdbtypes.h (struct field) <type, set_type>: New methods.
9437 Rename `type` field to...
9438 <m_type>: ... this. Change references throughout to use type or
9439 set_type methods.
9440 (FIELD_TYPE): Use field::type. Change call sites that modify
9441 the field's type to use field::set_type instead.
9442
3d967001
SM
94432020-06-08 Simon Marchi <simon.marchi@efficios.com>
9444
9445 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9446 to use type::index_type instead.
9447
262abc0d
SM
94482020-06-08 Simon Marchi <simon.marchi@efficios.com>
9449
9450 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9451 methods.
9452 (TYPE_INDEX_TYPE): Use type::index_type.
9453 * gdbtypes.c (create_array_type_with_stride): Likewise.
9454
82836c92
TT
94552020-06-07 Tom Tromey <tom@tromey.com>
9456
9457 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9458 parameter.
9459 (generic_value_print): Update.
9460
940dace9
AB
94612020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9462
9463 Revert commit 982a38f60b0.
9464 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9465
982a38f6
AB
94662020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9467
9468 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9469 avoid use after free.
9470
82f06518
TV
94712020-06-05 Tom de Vries <tdevries@suse.de>
9472
9473 * NEWS: Fix typos.
9474
f8c41851
SM
94752020-06-04 Simon Marchi <simon.marchi@efficios.com>
9476
9477 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9478 the per_bfd object.
9479 (dwarf2_read_debug_names): Likewise.
9480 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9481 object when re-using a per_bfd object with an index.
9482
f9b5d5ea
TV
94832020-06-03 Tom de Vries <tdevries@suse.de>
9484
9485 PR symtab/26046
9486 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9487 children for C++.
9488 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9489 DW_TAG_subprogram.
9490
f6eee2d0
AB
94912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9492
9493 * ada-lang.c (ada_language_data): Delete skip_trampoline
9494 initializer.
9495 * c-lang.c (c_language_data): Likewise.
9496 (cplus_language_data): Likewise.
9497 (cplus_language::skip_trampoline): New member function.
9498 (asm_language_data): Delete skip_trampoline initializer.
9499 (minimal_language_data): Likewise.
9500 * d-lang.c (d_language_data): Likewise.
9501 * f-lang.c (f_language_data): Likewise.
9502 * go-lang.c (go_language_data): Likewise.
9503 * language.c (unk_lang_trampoline): Delete function.
9504 (skip_language_trampoline): Update.
9505 (unknown_language_data): Delete skip_trampoline initializer.
9506 (auto_language_data): Likewise.
9507 * language.h (language_data): Delete skip_trampoline field.
9508 (language_defn::skip_trampoline): New function.
9509 * m2-lang.c (m2_language_data): Delete skip_trampoline
9510 initializer.
9511 * objc-lang.c (objc_skip_trampoline): Delete function, move
9512 implementation to objc_language::skip_trampoline.
9513 (objc_language_data): Delete skip_trampoline initializer.
9514 (objc_language::skip_trampoline): New member function with
9515 implementation from objc_skip_trampoline.
9516 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9517 initializer.
9518 * p-lang.c (pascal_language_data): Likewise.
9519 * rust-lang.c (rust_language_data): Likewise.
9520
0a50df5d
AB
95212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9522
9523 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9524 (ada_language::demangle): New member function.
9525 * c-lang.c (c_language_data): Delete la_demangle initializer.
9526 (cplus_language_data): Delete la_demangle initializer.
9527 (cplus_language::demangle): New member function.
9528 (asm_language_data): Delete la_demangle initializer.
9529 (minimal_language_data): Delete la_demangle initializer.
9530 * d-lang.c (d_language_data): Delete la_demangle initializer.
9531 (d_language::demangle): New member function.
9532 * f-lang.c (f_language_data): Delete la_demangle initializer.
9533 (f_language::demangle): New member function.
9534 * go-lang.c (go_language_data): Delete la_demangle initializer.
9535 (go_language::demangle): New member function.
9536 * language.c (language_demangle): Update.
9537 (unk_lang_demangle): Delete.
9538 (unknown_language_data): Delete la_demangle initializer.
9539 (unknown_language::demangle): New member function.
9540 (auto_language_data): Delete la_demangle initializer.
9541 (auto_language::demangle): New member function.
9542 * language.h (language_data): Delete la_demangle field.
9543 (language_defn::demangle): New function.
9544 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9545 * objc-lang.c (objc_language_data): Delete la_demangle
9546 initializer.
9547 (objc_language::demangle): New member function.
9548 * opencl-lang.c (opencl_language_data): Delete la_demangle
9549 initializer.
9550 * p-lang.c (pascal_language_data): Likewise.
9551 * rust-lang.c (rust_language_data): Likewise.
9552 (rust_language::demangle): New member function.
9553
fbfb0a46
AB
95542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9555
9556 * ada-lang.c (ada_language_data): Delete la_print_type
9557 initializer.
9558 (ada_language::print_type): New member function.
9559 * c-lang.c (c_language_data): Delete la_print_type initializer.
9560 (c_language::print_type): New member function.
9561 (cplus_language_data): Delete la_print_type initializer.
9562 (cplus_language::print_type): New member function.
9563 (asm_language_data): Delete la_print_type initializer.
9564 (asm_language::print_type): New member function.
9565 (minimal_language_data): Delete la_print_type initializer.
9566 (minimal_language::print_type): New member function.
9567 * d-lang.c (d_language_data): Delete la_print_type initializer.
9568 (d_language::print_type): New member function.
9569 * f-lang.c (f_language_data): Delete la_print_type initializer.
9570 (f_language::print_type): New member function.
9571 * go-lang.c (go_language_data): Delete la_print_type initializer.
9572 (go_language::print_type): New member function.
9573 * language.c (unk_lang_print_type): Delete.
9574 (unknown_language_data): Delete la_print_type initializer.
9575 (unknown_language::print_type): New member function.
9576 (auto_language_data): Delete la_print_type initializer.
9577 (auto_language::print_type): New member function.
9578 * language.h (language_data): Delete la_print_type field.
9579 (language_defn::print_type): New function.
9580 (LA_PRINT_TYPE): Update.
9581 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9582 (m2_language::print_type): New member function.
9583 * objc-lang.c (objc_language_data): Delete la_print_type
9584 initializer.
9585 (objc_language::print_type): New member function.
9586 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9587 to opencl_language::print_type.
9588 (opencl_language_data): Delete la_print_type initializer.
9589 (opencl_language::print_type): New member function, implementation
9590 from opencl_print_type.
9591 * p-lang.c (pascal_language_data): Delete la_print_type
9592 initializer.
9593 (pascal_language::print_type): New member function.
9594 * rust-lang.c (rust_print_type): Delete, implementation moved to
9595 rust_language::print_type.
9596 (rust_language_data): Delete la_print_type initializer.
9597 (rust_language::print_type): New member function, implementation
9598 from rust_print_type.
9599
6f827019
AB
96002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9601
9602 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9603 implementation moves to...
9604 (ada_language::sniff_from_mangled_name): ...here. Update return
9605 type.
9606 (ada_language_data): Delete la_sniff_from_mangled_name
9607 initializer.
9608 * c-lang.c (c_language_data): Likewise.
9609 (cplus_language_data): Likewise.
9610 (cplus_language::sniff_from_mangled_name): New member function,
9611 implementation taken from gdb_sniff_from_mangled_name.
9612 (asm_language_data): Delete la_sniff_from_mangled_name
9613 initializer.
9614 (minimal_language_data): Likewise.
9615 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9616 implementation moves to cplus_language::sniff_from_mangled_name.
9617 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9618 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9619 moves to...
9620 (d_language::sniff_from_mangled_name): ...here.
9621 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9622 * f-lang.c (f_language_data): Likewise.
9623 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9624 moves to...
9625 (go_language::sniff_from_mangled_name): ...here.
9626 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9627 * language.c (language_sniff_from_mangled_name): Delete.
9628 (unknown_language_data): Delete la_sniff_from_mangled_name
9629 initializer.
9630 (auto_language_data): Likewise.
9631 * language.h (language_data): Delete la_sniff_from_mangled_name
9632 field.
9633 (language_defn::sniff_from_mangled_name): New function.
9634 (language_sniff_from_mangled_name): Delete declaration.
9635 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9636 field.
9637 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9638 implementation moves to...
9639 (objc_language::sniff_from_mangled_name): ...here.
9640 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9641 * opencl-lang.c (opencl_language_data): Likewise.
9642 * p-lang.c (pascal_language_data): Likewise.
9643 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9644 implementation moves to...
9645 (rust_language::sniff_from_mangled_name): ...here.
9646 (rust_language_data): Delete la_sniff_from_mangled_name
9647 initializer.
9648 * symtab.c (symbol_find_demangled_name): Call
9649 sniff_from_mangled_name member function.
9650
fb8006fd
AB
96512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9652
9653 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9654 initializer.
9655 * c-lang.c (c_language_data): Likewise.
9656 (cplus_language_data): Likewise.
9657 (cplus_language::search_name_hash): New member function.
9658 (asm_language_data): Delete la_search_name_hash initializer.
9659 (minimal_language_data): Likewise.
9660 * d-lang.c (d_language_data): Likewise.
9661 * dictionary.c (default_search_name_hash): Rename to...
9662 (language_defn::search_name_hash): ...this.
9663 * f-lang.c (f_language_data): Likewise.
9664 (f_language::search_name_hash): New member function.
9665 * go-lang.c (go_language_data): Delete la_search_name_hash
9666 initializer.
9667 * language.c (unknown_language_data): Likewise.
9668 (auto_language_data): Likewise.
9669 * language.h (struct language_data): Delete la_search_name_hash
9670 field.
9671 (language_defn::search_name_hash): Declare new member function.
9672 (default_search_name_hash): Delete declaration.
9673 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9674 initializer.
9675 * objc-lang.c (objc_language_data): Likewise.
9676 * opencl-lang.c (opencl_language_data): Likewise.
9677 * p-lang.c (pascal_language_data): Likewise.
9678 * rust-lang.c (rust_language_data): Likewise.
9679 * symtab.c (search_name_hash): Update call.
9680
8e25bafe
AB
96812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9682
9683 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9684 initializer.
9685 * c-lang.c (class compile_instance): Declare.
9686 (c_language_data): Delete la_get_compile_instance initializer.
9687 (c_language::get_compile_instance): New member function.
9688 (cplus_language_data): Delete la_get_compile_instance initializer.
9689 (cplus_language::get_compile_instance): New member function.
9690 (asm_language_data): Delete la_get_compile_instance initializer.
9691 (minimal_language_data): Likewise.
9692 * c-lang.h (c_get_compile_context): Update comment.
9693 (cplus_get_compile_context): Update comment.
9694 * compile/compile.c (compile_to_object): Update calls, don't rely
9695 on function pointer being NULL.
9696 * d-lang.c (d_language_data): Delete la_get_compile_instance
9697 initializer.
9698 * f-lang.c (f_language_data): Likewise.
9699 * go-lang.c (go_language_data): Likewise.
9700 * language.c (unknown_language_data): Likewise.
9701 (auto_language_data): Likewise.
9702 * language.h (language_data): Delete la_get_compile_instance field.
9703 (language_defn::get_compile_instance): New member function.
9704 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9705 initializer.
9706 * objc-lang.c (objc_language_data): Likewise.
9707 * opencl-lang.c (opencl_language_data): Likewise.
9708 * p-lang.c (pascal_language_data): Likewise.
9709 * rust-lang.c (rust_language_data): Likewise.
9710
4009ee92
AB
97112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9712
9713 * ada-lang.c (ada_add_all_symbols): Update comment.
9714 (ada_iterate_over_symbols): Delete, move implementation to...
9715 (ada_language::iterate_over_symbols): ...here, a new member
9716 function, rewrite to use range based for loop.
9717 (ada_language_data): Delete la_iterate_over_symbols initializer.
9718 * c-lang.c (c_language_data): Likewise.
9719 (cplus_language_data): Likewise.
9720 (asm_language_data): Likewise.
9721 (minimal_language_data): Likewise.
9722 * d-lang.c (d_language_data): Likewise.
9723 * f-lang.c (f_language_data): Likewise.
9724 * go-lang.c (go_language_data): Likewise.
9725 * language.c (unknown_language_data): Likewise.
9726 (auto_language_data): Likewise.
9727 * language.h (language_data): Delete la_iterate_over_symbols field.
9728 (language_defn::iterate_over_symbols): New member function.
9729 (LA_ITERATE_OVER_SYMBOLS): Update.
9730 * linespec.c (iterate_over_all_matching_symtabs): Update.
9731 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9732 initializer.
9733 * objc-lang.c (objc_language_data): Likewise.
9734 * opencl-lang.c (opencl_language_data): Likewise.
9735 * p-lang.c (pascal_language_data): Likewise.
9736 * rust-lang.c (rust_language_data): Likewise.
9737
54f4ca46
AB
97382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9739
9740 * ada-lang.c (ada_language_data): Delete
9741 la_lookup_transparent_type initializer.
9742 * c-lang.c (c_language_data): Likewise.
9743 (cplus_language_data): Likewise.
9744 (cplus_language::lookup_transparent_type): New member function.
9745 (asm_language_data): Delete la_lookup_transparent_type
9746 initializer.
9747 (minimal_language_data): Likewise.
9748 * d-lang.c (d_language_data): Likewise.
9749 * f-lang.c (f_language_data): Likewise.
9750 * go-lang.c (go_language_data): Likewise.
9751 * language.c (unknown_language_data): Likewise.
9752 (auto_language_data): Likewise.
9753 * language.h (struct language_data): Delete
9754 la_lookup_transparent_type field.
9755 (language_defn::lookup_transparent_type): New member function.
9756 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9757 initializer.
9758 * objc-lang.c (objc_language_data): Likewise.
9759 * opencl-lang.c (opencl_language_data): Likewise.
9760 * p-lang.c (pascal_language_data): Likewise.
9761 * rust-lang.c (rust_language_data): Likewise.
9762 * symtab.c (symbol_matches_domain): Update call.
9763
1fb314aa
AB
97642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9765
9766 * ada-lang.c (ada_language_arch_info): Delete function, move
9767 implementation to...
9768 (ada_language::language_arch_info): ...here, a new member
9769 function.
9770 (ada_language_data): Delete la_language_arch_info.
9771 * c-lang.c (c_language_data): Likewise.
9772 (c_language::language_arch_info): New member function.
9773 (cplus_language_arch_info): Delete function, move
9774 implementation to...
9775 (cplus_language::language_arch_info): ...here, a new member
9776 function.
9777 (cplus_language_data): Delete la_language_arch_info.
9778 (asm_language_data): Likewise.
9779 (asm_language::language_arch_info): New member function.
9780 (minimal_language_data): Delete la_language_arch_info.
9781 (minimal_language::language_arch_info): New member function.
9782 * d-lang.c (d_language_arch_info): Delete function, move
9783 implementation to...
9784 (d_language::language_arch_info): ...here, a new member
9785 function.
9786 (d_language_data): Delete la_language_arch_info.
9787 * f-lang.c (f_language_arch_info): Delete function, move
9788 implementation to...
9789 (f_language::language_arch_info): ...here, a new member
9790 function.
9791 (f_language_data): Delete la_language_arch_info.
9792 * go-lang.c (go_language_arch_info): Delete function, move
9793 implementation to...
9794 (go_language::language_arch_info): ...here, a new member
9795 function.
9796 (go_language_data): Delete la_language_arch_info.
9797 * language.c (unknown_language_data): Likewise.
9798 (unknown_language::language_arch_info): New member function.
9799 (auto_language_data): Delete la_language_arch_info.
9800 (auto_language::language_arch_info): New member function.
9801 (language_gdbarch_post_init): Update call to
9802 la_language_arch_info.
9803 * language.h (language_data): Delete la_language_arch_info
9804 function pointer.
9805 (language_defn::language_arch_info): New function.
9806 * m2-lang.c (m2_language_arch_info): Delete function, move
9807 implementation to...
9808 (m2_language::language_arch_info): ...here, a new member
9809 function.
9810 (m2_language_data): Delete la_language_arch_info.
9811 * objc-lang.c (objc_language_arch_info): Delete function, move
9812 implementation to...
9813 (objc_language::language_arch_info): ...here, a new member
9814 function.
9815 (objc_language_data): Delete la_language_arch_info.
9816 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9817 implementation to...
9818 (opencl_language::language_arch_info): ...here, a new member
9819 function.
9820 (opencl_language_data): Delete la_language_arch_info.
9821 * p-lang.c (pascal_language_arch_info): Delete function, move
9822 implementation to...
9823 (pascal_language::language_arch_info): ...here, a new member
9824 function.
9825 (pascal_language_data): Delete la_language_arch_info.
9826 * rust-lang.c (rust_language_arch_info): Delete function, move
9827 implementation to...
9828 (rust_language::language_arch_info): ...here, a new member
9829 function.
9830 (rust_language_data): Delete la_language_arch_info.
9831
48448202
AB
98322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9833
9834 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9835 initializer.
9836 * c-lang.c (c_language_data): Likewise.
9837 (cplus_language_data): Likewise.
9838 (cplus_language::pass_by_reference_info): New method.
9839 (asm_language_data): Delete la_pass_by_reference initializer.
9840 (minimal_language_data): Likewise.
9841 * cp-abi.c (cp_pass_by_reference): Remove use of
9842 default_pass_by_reference.
9843 * d-lang.c (d_language_data): Likewise.
9844 * f-lang.c (f_language_data): Likewise.
9845 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9846 default_pass_by_reference.
9847 * go-lang.c (go_language_data): Likewise.
9848 * language.c (language_pass_by_reference): Update.
9849 (default_pass_by_reference): Delete.
9850 (unknown_language_data): Delete la_pass_by_reference
9851 initializer.
9852 (auto_language_data): Likewise.
9853 * language.h (struct language_data): Delete la_pass_by_reference
9854 field.
9855 (language_defn::pass_by_reference_info): New member function.
9856 (default_pass_by_reference): Delete declaration.
9857 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9858 initializer.
9859 * objc-lang.c (objc_language_data): Likewise.
9860 * opencl-lang.c (opencl_language_data): Likewise.
9861 * p-lang.c (pascal_language_data): Likewise.
9862 * rust-lang.c (rust_language_data): Likewise.
9863
15e5fd35
AB
98642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9865
9866 * ada-lang.c (ada_read_var_value): Delete function, move
9867 implementation to...
9868 (ada_language::read_var_value): ...here.
9869 (ada_language_data): Delete la_read_var_value initializer.
9870 * c-lang.c (c_language_data): Likewise.
9871 (cplus_language_data): Likewise.
9872 (minimal_language_data): Likewise.
9873 * d-lang.c (d_language_data): Likewise.
9874 * f-lang.c (f_language_data): Likewise.
9875 * findvar.c (default_read_var_value): Rename to...
9876 (language_defn::read_var_value): ...this.
9877 * findvar.c (read_var_value): Update header comment, and change to
9878 call member function instead of function pointer.
9879 * go-lang.c (go_language_data): Likewise.
9880 * language.c (unknown_language_data): Delete la_read_var_value
9881 initializer.
9882 (auto_language_data): Likewise.
9883 * language.h (struct language_data): Delete la_read_var_value
9884 field.
9885 (language_defn::read_var_value): New member function.
9886 (default_read_var_value): Delete declaration.
9887 * m2-lang.c (m2_language_data): Delete la_read_var_value
9888 initializer.
9889 * objc-lang.c (objc_language_data): Likewise.
9890 * opencl-lang.c (opencl_language_data): Likewise.
9891 * p-lang.c (pascal_language_data): Likewise.
9892 * rust-lang.c (rust_language_data): Likewise.
9893 * value.h (default_read_var_value): Delete declaration.
9894
5bd40f2a
AB
98952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9896
9897 * ada-lang.c (ada_print_array_index): Delete function, move
9898 implementation to...
9899 (ada_language::print_array_index): ...here.
9900 (ada_language_data): Delete la_print_array_index initializer.
9901 * c-lang.c (c_language_data): Likewise.
9902 (cplus_language_data): Likewise.
9903 (minimal_language_data): Likewise.
9904 * d-lang.c (d_language_data): Likewise.
9905 * f-lang.c (f_language_data): Likewise.
9906 * go-lang.c (go_language_data): Likewise.
9907 * language.c (default_print_array_index): Delete function, move
9908 implementation to...
9909 (language_defn::print_array_index): ...here.
9910 (unknown_language_data): Delete la_print_array_index initializer.
9911 (auto_language_data): Likewise.
9912 * language.h (struct language_data): Delete la_print_array_index
9913 field.
9914 (language_defn::print_array_index): New member function.
9915 (LA_PRINT_ARRAY_INDEX): Update.
9916 (default_print_array_index): Delete declaration.
9917 * m2-lang.c (m2_language_data): Delete la_print_array_index
9918 initializer.
9919 * objc-lang.c (objc_language_data): Likewise.
9920 * opencl-lang.c (opencl_language_data): Likewise.
9921 * p-lang.c (pascal_language_data): Likewise.
9922 * rust-lang.c (rust_language_data): Likewise.
9923
0874fd07
AB
99242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9925
9926 * gdb/ada-lang.c (ada_language_defn): Convert to...
9927 (ada_language_data): ...this.
9928 (class ada_language): New class.
9929 (ada_language_defn): New static global.
9930 * gdb/c-lang.c (c_language_defn): Convert to...
9931 (c_language_data): ...this.
9932 (class c_language): New class.
9933 (c_language_defn): New static global.
9934 (cplus_language_defn): Convert to...
9935 (cplus_language_data): ...this.
9936 (class cplus_language): New class.
9937 (cplus_language_defn): New static global.
9938 (asm_language_defn): Convert to...
9939 (asm_language_data): ...this.
9940 (class asm_language): New class.
9941 (asm_language_defn): New static global.
9942 (minimal_language_defn): Convert to...
9943 (minimal_language_data): ...this.
9944 (class minimal_language): New class.
9945 (minimal_language_defn): New static global.
9946 * gdb/d-lang.c (d_language_defn): Convert to...
9947 (d_language_data): ...this.
9948 (class d_language): New class.
9949 (d_language_defn): New static global.
9950 * gdb/f-lang.c (f_language_defn): Convert to...
9951 (f_language_data): ...this.
9952 (class f_language): New class.
9953 (f_language_defn): New static global.
9954 * gdb/go-lang.c (go_language_defn): Convert to...
9955 (go_language_data): ...this.
9956 (class go_language): New class.
9957 (go_language_defn): New static global.
9958 * gdb/language.c (unknown_language_defn): Remove declaration.
9959 (current_language): Initialize to nullptr, real initialization is
9960 moved to _initialize_language.
9961 (languages): Delete global.
9962 (language_defn::languages): Define.
9963 (set_language_command): Use language_defn::languages.
9964 (set_language): Likewise.
9965 (range_error): Likewise.
9966 (language_enum): Likewise.
9967 (language_def): Likewise.
9968 (add_set_language_command): Use language_def::languages for the
9969 language list, and language_def to lookup language pointers.
9970 (skip_language_trampoline): Use language_defn::languages.
9971 (unknown_language_defn): Convert to...
9972 (unknown_language_data): ...this.
9973 (class unknown_language): New class.
9974 (unknown_language_defn): New static global.
9975 (auto_language_defn): Convert to...
9976 (auto_language_data): ...this.
9977 (class auto_language): New class.
9978 (auto_language_defn): New static global.
9979 (language_gdbarch_post_init): Use language_defn::languages.
9980 (_initialize_language): Initialize current_language.
9981 * gdb/language.h (struct language_defn): Rename to...
9982 (struct language_data): ...this.
9983 (struct language_defn): New.
9984 (auto_language_defn): Delete.
9985 (unknown_language_defn): Delete.
9986 (minimal_language_defn): Delete.
9987 (ada_language_defn): Delete.
9988 (asm_language_defn): Delete.
9989 (c_language_defn): Delete.
9990 (cplus_language_defn): Delete.
9991 (d_language_defn): Delete.
9992 (f_language_defn): Delete.
9993 (go_language_defn): Delete.
9994 (m2_language_defn): Delete.
9995 (objc_language_defn): Delete.
9996 (opencl_language_defn): Delete.
9997 (pascal_language_defn): Delete.
9998 (rust_language_defn): Delete.
9999 * gdb/m2-lang.c (m2_language_defn): Convert to...
10000 (m2_language_data): ...this.
10001 (class m2_language): New class.
10002 (m2_language_defn): New static global.
10003 * gdb/objc-lang.c (objc_language_defn): Convert to...
10004 (objc_language_data): ...this.
10005 (class objc_language): New class.
10006 (objc_language_defn): New static global.
10007 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
10008 (opencl_language_data): ...this.
10009 (class opencl_language): New class.
10010 (opencl_language_defn): New static global.
10011 * gdb/p-lang.c (pascal_language_defn): Convert to...
10012 (pascal_language_data): ...this.
10013 (class pascal_language): New class.
10014 (pascal_language_defn): New static global.
10015 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
10016 language pointer, update comment format.
10017 * gdb/rust-lang.c (rust_language_defn): Convert to...
10018 (rust_language_data): ...this.
10019 (class rust_language): New class.
10020 (rust_language_defn): New static global.
10021
1313c56e
AB
100222020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
10023
10024 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
10025 member variable.
10026 <m_stmt_at_address>: New member variable.
10027 (lnp_state_machine::record_line): Don't record some lines, update
10028 tracking of is_stmt at the same address.
10029 (lnp_state_machine::lnp_state_machine): Initialise new member
10030 variables.
10031
b7ed9f3d
ST
100322020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10033
10034 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
10035 "-include gnu-nat-mig.h".
10036 * gnu-nat-mig.h: New file.
10037 * gnu-nat.c: Include "gnu-nat-mig.h".
10038 (exc_server, msg_reply_server, notify_server,
10039 process_reply_server): Remove declarations.
10040
14a8ad62
ST
100412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10042
10043 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
10044 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
10045 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
10046 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
10047 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
10048 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
10049 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
10050 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
10051 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
10052 to gnu_nat_target class.
10053 * gnu-nat.c: Likewise.
10054 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
10055 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
10056 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
10057 object.
10058 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
10059 instead of `gnu_target'.
10060
0af5e106
ST
100612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10062
10063 * i386-gnu-tdep.c: Include "gdbcore.h"
10064 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
10065 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
10066 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
10067 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
10068 i386_gnu_sigcontext_addr): New functions
10069 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
10070 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
10071 tdep.
10072
078f2fc9
ST
100732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10074
10075 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
10076 before fork_inferior call. Avoid calling it if target_is_pushed returns
10077 true.
10078
53dff92c
ST
100792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10080
10081 * gnu-nat.h (gnu_target): New variable declaration.
10082 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
10083 gnu_target.
10084 * gnu-nat.c (gnu_target): New variable.
10085 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
10086 add_thread_silent, and add_thread calls.
10087 (gnu_nat_target::create_inferior): Pass gnu_target to
10088 add_thread_silent, thread_change_ptid call.
10089 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
10090 call.
10091
5a8b8627
ST
100922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10093
10094 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
10095 (gnu_nat_target::find_memory_regions): Remove unused
10096 `old_address' variable.
10097
366f550a
ST
100982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10099
10100 * gnu-nat.c: Include "gdbarch.h".
10101
f14871bf
ST
101022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10103
10104 * reply_mig_hack.awk (Error return): Cast function through
10105 void *, to bypass compiler function call check.
10106
c6887cfb
ST
101072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10108
10109 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
10110 $(srcdir)/reply_mig_hack.awk.
10111
6930bffe
ST
101122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10113
10114 * gnu-nat.h (gnu_debug_flag): Set type to bool.
10115
112c22ed
JG
101162020-05-30 Jonny Grant <jg@jguk.org>
10117
10118 * configure.ac (ACX_BUGURL): change bug URL to https.
10119
f68f85b5
PA
101202020-05-30 Pedro Alves <palves@redhat.com>
10121
10122 * cp-support.c (replace_typedefs_template): New.
10123 (replace_typedefs_qualified_name): Handle
10124 DEMANGLE_COMPONENT_TEMPLATE.
10125
976ca316
SM
101262020-05-29 Simon Marchi <simon.marchi@efficios.com>
10127
10128 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
10129 dwarf2/index-cache.h, dwarf2/index-write.c,
10130 dwarf2/index-write.h, dwarf2/line-header.c,
10131 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
10132 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10133 variables and fields from `dwarf2_per_objfile` to just
10134 `per_objfile` throughout.
10135
989ade05
SM
101362020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10137
10138 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10139 <push_dwarf_reg_entry_value>: Add comment.
10140
c47bae85
KB
101412020-05-28 Kevin Buettner <kevinb@redhat.com>
10142 Keith Seitz <keiths@redhat.com>
10143
10144 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10145 instead of PyEval_ReleaseLock.
10146 (class gdbpy_gil): Move to earlier in file.
10147 (finalize_python): Set gdb_python_initialized.
10148 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10149 when not initialized.
10150
44486dcf
SM
101512020-05-28 Simon Marchi <simon.marchi@efficios.com>
10152
10153 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10154 <push_dwarf_reg_entry_value>: Remove assert. Override
10155 per_objfile with caller_per_objfile.
10156
f030440d
TV
101572020-05-28 Tom de Vries <tdevries@suse.de>
10158
10159 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10160 PR gold/15646 workaround to symbol kind "type".
10161
f0fbb768
TT
101622020-05-27 Tom Tromey <tromey@adacore.com>
10163
10164 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10165
af0b2a3e
TT
101662020-05-27 Tom Tromey <tromey@adacore.com>
10167
10168 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10169 Use htab_find_with_hash.
10170 <add_abbrev>: Remove "abbrev_number" parameter.
10171 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10172 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10173 (hash_abbrev): Add comment.
10174 (abbrev_table::lookup_abbrev): Move to header file.
10175 (abbrev_table::read): Update.
10176
7d00ffec
TT
101772020-05-27 Tom Tromey <tromey@adacore.com>
10178
10179 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10180 method.
10181 <canonical_name>: New member.
10182 <raw_name>: Rename from "name".
10183 (partial_die_info): Initialize canonical_name.
10184 (scan_partial_symbols): Check raw_name.
10185 (partial_die_parent_scope, partial_die_full_name)
10186 (add_partial_symbol, add_partial_subprogram)
10187 (add_partial_enumeration, load_partial_dies): Use "name" method.
10188 (partial_die_info::name): New method.
10189 (partial_die_info::read, guess_partial_die_structure_name)
10190 (partial_die_info::fixup): Update.
10191
697bba18
TT
101922020-05-27 Tom Tromey <tromey@adacore.com>
10193
10194 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10195 <get_ref_die_offset>: Inline.
10196 <get_ref_die_offset_complaint>: New method.
10197 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10198 (attribute::get_ref_die_offset_complaint): Rename from
10199 get_ref_die_offset. Just issue complaint.
10200
c17ace43
HD
102012020-05-27 Hannes Domani <ssbssa@yahoo.de>
10202
10203 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10204
96445f0b
HD
102052020-05-27 Hannes Domani <ssbssa@yahoo.de>
10206
10207 * exec.c (exec_file_attach): Use errno value of first openp failure.
10208
ac637ec3
HD
102092020-05-27 Hannes Domani <ssbssa@yahoo.de>
10210
10211 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10212 Don't close thread handle.
10213
17ee85fc
TT
102142020-05-27 Tom Tromey <tom@tromey.com>
10215 Simon Marchi <simon.marchi@efficios.com>
10216
10217 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10218 shared_ptr.
10219 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10220 member.
10221 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10222 dwarf2_per_bfd_objfile_data_key>: New globals.
10223 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10224 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10225 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10226 shared.
10227 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10228 short-circuit when sharing.
10229 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10230 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10231
39b16f87
SM
102322020-05-27 Simon Marchi <simon.marchi@efficios.com>
10233
10234 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10235 to...
10236 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10237 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10238
fcf23d5b
SM
102392020-05-27 Simon Marchi <simon.marchi@efficios.com>
10240
10241 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10242 build_name_components, find_name_components_bounds>:
10243 Add per_objfile parameter.
10244 (struct mapped_index) <symbol_name_at>: Likewise.
10245 (struct mapped_debug_names): Remove constructor.
10246 <dwarf2_per_objfile>: Remove field.
10247 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10248 (mapped_index_base::find_name_components_bounds,
10249 mapped_index_base::build_name_components,
10250 dw2_expand_symtabs_matching_symbol): Likewise.
10251 (class mock_mapped_index) <symbol_name_at>: Likewise.
10252 (check_match): Likewise.
10253 (check_find_bounds_finds): Likewise.
10254 (test_mapped_index_find_name_component_bounds): Update.
10255 (CHECK_MATCH): Update.
10256 (dw2_expand_symtabs_matching): Update.
10257 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10258 per_objfile parameter.
10259 <find_vec_in_debug_names>: Likewise.
10260 <m_per_objfile>: New field.
10261 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10262 parameter.
10263 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10264 (dw2_debug_names_iterator::next): Update.
10265 (dw2_debug_names_lookup_symbol): Update.
10266 (dw2_debug_names_expand_symtabs_for_function): Update.
10267 (dw2_debug_names_map_matching_symbols): Update.
10268 (dw2_debug_names_expand_symtabs_matching): Update.
10269 (dwarf2_read_debug_names): Update.
10270
7188ed02
SM
102712020-05-27 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10274 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10275 move to dwarf2_per_objfile.
10276 <read_in_chain>: Remove.
10277 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10278 remove_all_cus, age_comp_units>: New methods.
10279 <m_dwarf2_cus>: New member.
10280 (struct dwarf2_per_cu_data) <cu>: Remove.
10281 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10282 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10283 moved to methods of dwarf2_per_objfile.
10284 (dwarf2_clear_marks): Remove.
10285 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10286 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10287 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10288 (dwarf2_per_objfile::remove_all_cus): New.
10289 (class free_cached_comp_units) <~free_cached_comp_units>:
10290 Update.
10291 (load_cu): Update.
10292 (dw2_do_instantiate_symtab): Adjust.
10293 (fill_in_sig_entry_from_dwo_entry): Adjust.
10294 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10295 (cutu_reader::cutu_reader): Likewise.
10296 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10297 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10298 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10299 and dwarf2_per_objfile::age_comp_units.
10300 (load_partial_comp_unit): Update.
10301 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10302 (process_queue): Likewise.
10303 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10304 backlink.
10305 (dwarf2_read_addr_index): Likewise.
10306 (follow_die_offset): Likewise.
10307 (dwarf2_fetch_die_loc_sect_off): Likewise.
10308 (dwarf2_fetch_constant_bytes): Likewise.
10309 (dwarf2_fetch_die_type_sect_off): Likewise.
10310 (follow_die_sig_1): Likewise.
10311 (load_full_type_unit): Likewise.
10312 (read_signatured_type): Likewise.
10313 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10314 (dwarf2_cu::~dwarf2_cu): Remove.
10315 (dwarf2_per_objfile::get_cu): New.
10316 (dwarf2_per_objfile::set_cu): New.
10317 (age_cached_comp_units): Rename to...
10318 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10319 to std::unordered_map.
10320 (free_one_cached_comp_unit): Rename to...
10321 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10322 to std::unordered_map.
10323 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10324 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10325 a dwarf2_per_objfile in data.
10326 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10327 (dwarf2_clear_marks): Remove.
10328
2e671100
SM
103292020-05-27 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10332 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10333 (init_tu_and_read_dwo_dies): Likewise.
10334 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10335 (cutu_reader::cutu_reader): Likewise.
10336 (load_partial_comp_unit): Likewise.
10337 (process_psymtab_comp_unit): Update.
10338 (build_type_psymtabs_1): Update.
10339 (process_skeletonless_type_unit): Update.
10340 (load_full_comp_unit): Update.
10341 (find_partial_die): Update.
10342 (dwarf2_read_addr_index): Update.
10343 (read_signatured_type): Update.
10344
2e6a9f79
SM
103452020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10346
10347 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10348 m_header_read_in>: New fields.
10349 <get_header>: New method.
10350 * dwarf2/read.c (per_cu_header_read_in): Remove.
10351 (dwarf2_per_cu_data::get_header): New.
10352 (dwarf2_per_cu_data::addr_size): Update.
10353 (dwarf2_per_cu_data::offset_size): Update.
10354 (dwarf2_per_cu_data::ref_addr_size): Update.
10355
1b555f17
SM
103562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10357
10358 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10359 (dw2_do_instantiate_symtab): Update.
10360 (queue_and_load_all_dwo_tus): Change parameter from
10361 dwarf2_per_cu_data to dwarf2_cu.
10362 (dwarf2_fetch_die_loc_sect_off): Update.
10363 (dwarf2_fetch_constant_bytes): Update.
10364 (dwarf2_fetch_die_type_sect_off): Update.
10365
8fc0b21d
SM
103662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10367
10368 * dwarf2/read.c (process_full_comp_unit,
10369 process_full_type_unit): Remove per_cu, per_objfile paramters.
10370 Add dwarf2_cu parameter.
10371 (process_queue): Update.
10372
168c9250
SM
103732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10374
10375 * dwarf2/read.c (create_cu_from_index_list): Replace
10376 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10377 (create_cus_from_index_list): Likewise.
10378 (create_cus_from_index): Likewise.
10379 (create_signatured_type_table_from_index): Likewise.
10380 (create_cus_from_debug_names_list): Likewise.
10381 (create_cus_from_debug_names): Likewise.
10382 (dwarf2_read_gdb_index): Update.
10383 (dwarf2_read_debug_names): Update.
10384
e286671b
TT
103852020-05-27 Tom Tromey <tom@tromey.com>
10386 Simon Marchi <simon.marchi@efficios.com>
10387
10388 * dwarf2/read.h (struct dwarf2_per_objfile)
10389 <get_type_for_signatured_type, set_type_for_signatured_type>:
10390 New methods.
10391 <m_type_map>: New member.
10392 (struct signatured_type) <type>: Remove.
10393 * dwarf2/read.c
10394 (dwarf2_per_objfile::get_type_for_signatured_type,
10395 dwarf2_per_objfile::set_type_for_signatured_type): New.
10396 (get_signatured_type): Use new methods.
10397
8adb8487
TT
103982020-05-27 Tom Tromey <tom@tromey.com>
10399 Simon Marchi <simon.marchi@efficios.com>
10400
10401 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10402 (struct dwarf2_per_objfile) <type_units>: New member.
10403 <get_type_unit_group_unshareable>: New method.
10404 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10405 num_symtabs, symtabs>: Remove; move to
10406 type_unit_group_unshareable.
10407 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10408 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10409 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10410
127bbf4b
SM
104112020-05-27 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * dwarf2/read.h (struct dwarf2_per_cu_data):
10414 <dwarf2_per_objfile>: Remove.
10415 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10416 dwarf2_per_objfile.
10417 (create_signatured_type_table_from_index): Likewise.
10418 (create_signatured_type_table_from_debug_names): Likewise.
10419 (create_debug_type_hash_table): Likewise.
10420 (fill_in_sig_entry_from_dwo_entry): Likewise.
10421 (create_type_unit_group): Likewise.
10422 (read_comp_units_from_section): Likewise.
10423 (create_cus_hash_table): Likewise.
10424
f6e649dd
SM
104252020-05-27 Simon Marchi <simon.marchi@efficios.com>
10426
10427 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10428 dwarf2_per_cu_data::dwarf2_per_objfile.
10429 (compute_compunit_symtab_includes): Likewise.
10430 (dwarf2_cu::start_symtab): Likewise.
10431
aa66c379
SM
104322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10433
10434 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10435 parameter.
10436 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10437 (read_namespace_alias): Update.
10438 (lookup_die_type): Update.
10439 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10440 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10441 Update.
10442 (disassemble_dwarf_expression): Update.
10443
120ce1b5
SM
104442020-05-27 Simon Marchi <simon.marchi@efficios.com>
10445
10446 * dwarf2/read.h (struct dwarf2_queue_item): Add
10447 dwarf2_per_objfile parameter, assign new parameter.
10448 <per_objfile>: New field.
10449 * dwarf2/read.c (free_one_cached_comp_unit): Add
10450 dwarf2_per_objfile parameter.
10451 (queue_comp_unit): Likewise.
10452 (dw2_do_instantiate_symtab): Update.
10453 (process_psymtab_comp_unit): Update.
10454 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10455 (process_imported_unit_die): Update.
10456 (queue_and_load_dwo_tu): Update.
10457 (follow_die_offset): Update.
10458 (follow_die_sig_1): Update.
10459
9f47c707
SM
104602020-05-27 Simon Marchi <simon.marchi@efficios.com>
10461
10462 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10463 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10464 (read_call_site_scope): Assign per_objfile.
10465 (dwarf2_per_cu_data::objfile): Remove.
10466 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10467 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10468 dwarf2_per_objfile parameter.
10469 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10470 dwarf2_per_objfile parameter.
10471 (dwarf_expr_reg_to_entry_parameter): Add output
10472 dwarf2_per_objfile parameter.
10473 (locexpr_get_frame_base): Update.
10474 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10475 <push_dwarf_reg_entry_value>: Update.
10476 <call_site_to_target_addr>: Update.
10477 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10478 parameter.
10479 (value_of_dwarf_reg_entry): Update.
10480 (rw_pieced_value): Update.
10481 (indirect_synthetic_pointer): Update.
10482 (dwarf2_evaluate_property): Update.
10483 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10484 parameter.
10485 (locexpr_read_variable): Update.
10486 (locexpr_get_symbol_read_needs): Update.
10487 (loclist_read_variable): Update.
10488
14095eb3
SM
104892020-05-27 Simon Marchi <simon.marchi@efficios.com>
10490
10491 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10492 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10493 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10494 parameter.
10495 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10496 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10497 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10498 parameter.
10499 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10500 sect_variable_value): Add dwarf2_per_objfile parameter.
10501 (class dwarf_evaluate_loc_desc) <dwarf_call,
10502 dwarf_variable_value>: Update.
10503 (fetch_const_value_from_synthetic_pointer): Add
10504 dwarf2_per_objfile parameter.
10505 (fetch_const_value_from_synthetic_pointer): Update.
10506 (coerced_pieced_ref): Update.
10507 (class symbol_needs_eval_context) <dwarf_call,
10508 dwarf_variable_value>: Update.
10509 (dwarf2_compile_expr_to_ax): Update.
10510
3c3cd3d4
SM
105112020-05-27 Simon Marchi <simon.marchi@efficios.com>
10512
10513 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10514 parameter.
10515 (dwarf2_evaluate_loc_desc_full): Update.
10516
82ca3f51
SM
105172020-05-27 Simon Marchi <simon.marchi@efficios.com>
10518
10519 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10520 parameter.
10521 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10522 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10523 dwarf2_per_objfile parameter.
10524 (decode_debug_loc_dwo_addresses): Likewise.
10525 (dwarf2_find_location_expression): Update.
10526 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10527 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10528 parameter.
10529 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10530 parameter.
10531 (locexpr_describe_location_1): Likewise.
10532 (locexpr_describe_location): Update.
10533
4b167ea1
SM
105342020-05-27 Simon Marchi <simon.marchi@efficios.com>
10535
10536 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10537 Remove.
10538 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10539 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10540 (dwarf2_compile_property_to_c): Update.
10541 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10542 use text offset from objfile.
10543 (locexpr_tracepoint_var_ref): Update.
10544 (locexpr_generate_c_location): Update.
10545 (loclist_describe_location): Update.
10546 (loclist_tracepoint_var_ref): Update.
10547 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10548 dwarf2_per_objfile parameter.
10549 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10550 use text offset from objfile.
10551 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10552
89b07335
SM
105532020-05-27 Simon Marchi <simon.marchi@efficios.com>
10554
10555 * dwarf2/expr.h (struct dwarf_expr_context)
10556 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10557 <offset>: Remove.
10558 <per_objfile>: New member.
10559 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10560 dwarf2_per_objfile parameter. Don't set offset, set
10561 per_objfile.
10562 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10563 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10564 a dwarf2_per_objfile object instead of an offset.
10565 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10566 constructor.
10567 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10568 to dwarf2_expr_executor constructor. Don't set offset.
10569 (dwarf2_fetch_cfa_info): Update.
10570 (struct dwarf2_frame_cache) <text_offset>: Remove.
10571 <per_objfile>: New field.
10572 (dwarf2_frame_cache): Update.
10573 (dwarf2_frame_prev_register): Update.
10574 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10575 <dwarf_evaluate_loc_desc>: Add constructor.
10576 (dwarf2_evaluate_loc_desc_full): Update.
10577 (dwarf2_locexpr_baton_eval): Update.
10578 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10579 Add constructor.
10580 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10581
293e7e51
SM
105822020-05-27 Simon Marchi <simon.marchi@efficios.com>
10583
10584 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10585 addr_sized_int_type>: Move to dwarf2_cu.
10586 <int_type>: Move to dwarf2_per_objfile.
10587 (struct dwarf2_per_objfile) <int_type>: Move here.
10588 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10589 addr_sized_int_type>: Move here.
10590 (read_func_scope): Update.
10591 (read_array_type): Update.
10592 (read_tag_string_type): Update.
10593 (attr_to_dynamic_prop): Update.
10594 (dwarf2_per_cu_data::int_type): Rename to...
10595 (dwarf2_per_objfile::int_type): ... this.
10596 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10597 (dwarf2_cu::addr_sized_int_type): ... this.
10598 (read_subrange_type): Update.
10599 (dwarf2_per_cu_data::addr_type): Rename to...
10600 (dwarf2_cu::addr_type): ... this.
10601 (set_die_type): Update.
10602
64874a40
SM
106032020-05-27 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10606 data through per_cu->cu.
10607
4ab09049
SM
106082020-05-27 Simon Marchi <simon.marchi@efficios.com>
10609
10610 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10611 dwarf2_per_cu_data parameter fo dwarf2_cu.
10612 (lookup_dwo_type_unit): Likewise.
10613 (read_cutu_die_from_dwo): Likewise.
10614 (lookup_dwo_unit): Likewise.
10615 (open_and_init_dwo_file): Likewise.
10616 (lookup_dwo_cutu): Likewise.
10617 (lookup_dwo_comp_unit): Likewise.
10618 (lookup_dwo_type_unit): Likewise.
10619 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10620 (cutu_reader::cutu_reader): Update.
10621
47b14e86
SM
106222020-05-27 Simon Marchi <simon.marchi@efficios.com>
10623
10624 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10625 parameter.
10626 (process_full_type_unit): Likewise.
10627 (process_queue): Update.
10628
43182c09
SM
106292020-05-27 Simon Marchi <simon.marchi@efficios.com>
10630
10631 * dwarf2/read.c (recursively_compute_inclusions): Add
10632 dwarf2_per_objfile parameter.
10633 (compute_compunit_symtab_includes): Likewise.
10634 (process_cu_includes): Update.
10635
7aa104c4
SM
106362020-05-27 Simon Marchi <simon.marchi@efficios.com>
10637
10638 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10639 parameter.
10640 (create_type_unit_group): Update.
10641 (process_psymtab_comp_unit_reader): Update.
10642 (build_type_psymtabs_reader): Update.
10643
e3beb21d
SM
106442020-05-27 Simon Marchi <simon.marchi@efficios.com>
10645
10646 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10647 object through m_this_cu->cu.
10648
d460f660
SM
106492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10650
10651 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10652 the info parameter.
10653 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10654
ab432490
SM
106552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10656
10657 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10658 per_objfile parameter.
10659 (load_full_type_unit): Add per_objfile parameter.
10660 (read_signatured_type): Likewise.
10661 (load_full_comp_unit): Likewise.
10662 (load_cu): Likewise.
10663 (dw2_do_instantiate_symtab): Likewise.
10664 (dw2_get_file_names): Likewise.
10665 (dw2_map_symtabs_matching_filename): Update.
10666 (dw_expand_symtabs_matching_file_matcher): Update.
10667 (dw2_map_symbol_filenames): Update.
10668 (process_psymtab_comp_unit): Add per_objfile parameter.
10669 (build_type_psymtabs_1): Update.
10670 (process_skeletonless_type_unit): Update.
10671 (dwarf2_build_psymtabs_hard): Update.
10672 (load_partial_comp_unit): Add per_objfile parameter.
10673 (scan_partial_symbols): Update.
10674 (load_full_comp_unit): Add per_objfile parameter.
10675 (process_imported_unit_die): Update.
10676 (create_cus_hash_table): Update.
10677 (find_partial_die): Update.
10678 (dwarf2_read_addr_index): Update.
10679 (follow_die_offset): Update.
10680 (dwarf2_fetch_die_loc_sect_off): Update.
10681 (dwarf2_fetch_constant_bytes): Update.
10682 (dwarf2_fetch_die_type_sect_off): Update.
10683 (follow_die_sig_1): Update.
10684 (load_full_type_unit): Add per_objfile parameter.
10685 (read_signatured_type): Likewise.
10686
313bad1b
SM
106872020-05-27 Simon Marchi <simon.marchi@efficios.com>
10688
10689 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10690 of objfile_name.
10691
c3699833
SM
106922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10693
10694 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10695 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10696 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10697 field.
10698 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10699 (create_cus_from_index): Update.
10700 (dwarf2_read_gdb_index): Update.
10701 (create_cus_from_debug_names): Update.
10702 (dwarf2_read_debug_names): Update.
10703 (get_abbrev_section_for_cu): Update.
10704 (create_all_comp_units): Update.
10705 (read_attribute_value): Update.
10706 (get_debug_line_section): Update.
10707 * dwarf2/index-cache.c (index_cache::store): Update.
10708 * dwarf2/index-write.c (save_gdb_index_command): Update.
10709 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10710
1859c670
SM
107112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10712
10713 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10714 member.
10715 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10716 dwarf2_per_cu_data::per_bfd.
10717 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10718 (create_type_unit_group): Likewise.
10719 (queue_comp_unit): Remove reference to
10720 per_cu->dwarf2_per_objfile.
10721 (maybe_queue_comp_unit): Likewise.
10722 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10723 (create_cus_hash_table): Assign new field.
10724
5e22e966
SM
107252020-05-27 Simon Marchi <simon.marchi@efficios.com>
10726
10727 * dwarf2/read.c: Replace
10728 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10729 dwarf2_cu->per_objfile throughout.
10730
97a1449a
SM
107312020-05-27 Simon Marchi <simon.marchi@efficios.com>
10732
10733 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10734 parameter, don't use per_cu->dwarf2_per_objfile.
10735 (dw2_instantiate_symtab): Likewise.
10736 (dw2_find_last_source_symtab): Update.
10737 (dw2_map_expand_apply): Update.
10738 (dw2_lookup_symbol): Update.
10739 (dw2_expand_symtabs_for_function): Update.
10740 (dw2_expand_all_symtabs): Update.
10741 (dw2_expand_symtabs_with_fullname): Update.
10742 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10743 don't use per_cu->dwarf2_per_objfile.
10744 (dw2_expand_marked_cus): Update.
10745 (dw2_find_pc_sect_compunit_symtab): Update.
10746 (dw2_debug_names_lookup_symbol): Update.
10747 (dw2_debug_names_expand_symtabs_for_function): Update.
10748 (dw2_debug_names_map_matching_symbols): Update.
10749 (dwarf2_psymtab::expand_psymtab): Update.
10750
9e021579
SM
107512020-05-27 Simon Marchi <simon.marchi@efficios.com>
10752
10753 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10754 <per_objfile>: New member.
10755 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10756 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10757 call to dwarf2_cu.
10758 (cutu_reader::cutu_reader): Update.
10759 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10760
ae090bdb
SM
107612020-05-27 Simon Marchi <simon.marchi@efficios.com>
10762
10763 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10764 struct dwarf2_per_objfile.
10765 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10766 dwarf2_per_bfd.
10767 * dwarf2/read.c (set_die_type): Update.
10768 (get_die_type_at_offset): Update.
10769
af758d11
SM
107702020-05-27 Tom Tromey <tom@tromey.com>
10771 Simon Marchi <simon.marchi@efficios.com>
10772
10773 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10774 method.
10775 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10776 get_symtab, set_symtab>: New methods.
10777 <m_symtabs>: New field.
10778 (struct dwarf2_psymtab): Derive from partial_symtab.
10779 <readin_p, get_compunit_symtab>: Declare methods.
10780 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10781 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10782 New methods.
10783 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10784 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10785 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10786 (dw2_symtab_iter_next, dw2_print_stats)
10787 (dw2_expand_symtabs_with_fullname)
10788 (dw2_expand_symtabs_matching_one)
10789 (dw_expand_symtabs_matching_file_matcher)
10790 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10791 (dw2_debug_names_iterator::next)
10792 (dw2_debug_names_map_matching_symbols)
10793 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10794 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10795 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10796 New methods.
10797 (get_compunit_symtab, process_full_comp_unit)
10798 (process_full_type_unit): Update.
10799 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10800
5989a64e
SM
108012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10802
10803 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10804 then introduce a new dwarf2_per_objfile type.
10805 <read_line_string>: Move to the new dwarf2_per_objfile type.
10806 <objfile>: Likewise.
10807 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10808 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10809 dwarf2_per_objfile->per_bfd.
10810 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10811 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10812 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10813 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10814 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10815 (dwarf2_per_objfile::locate_sections): Rename to...
10816 (dwarf2_per_bfd::locate_sections): ... this.
10817 (dwarf2_per_objfile::get_cutu): Rename to...
10818 (dwarf2_per_bfd::get_cutu): ... this.
10819 (dwarf2_per_objfile::get_cu): Rename to...
10820 (dwarf2_per_bfd::get_cu): ... this.
10821 (dwarf2_per_objfile::get_tu): Rename to...
10822 (dwarf2_per_bfd::get_tu): ... this.
10823 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10824 (dwarf2_per_bfd::allocate_per_cu): ... this.
10825 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10826 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10827 (get_gdb_index_contents_ftype): Change parameter from
10828 dwarf2_per_objfile to dwarf2_per_bfd.
10829 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10830 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10831
a50264ba
TT
108322020-05-27 Tom Tromey <tom@tromey.com>
10833 Simon Marchi <simon.marchi@efficios.com>
10834
10835 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10836 (allocate_piece_closure): Set "per_objfile" member.
10837 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10838 (locexpr_describe_location, loclist_describe_location): Use new
10839 member.
10840 * dwarf2/read.c (read_call_site_scope)
10841 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10842 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10843 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10844 handle_data_member_location): Set per_objfile member.
10845 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10846 member.
10847 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10848
d3473f0c
TT
108492020-05-27 Tom Tromey <tom@tromey.com>
10850
10851 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10852 allocate_signatured_type>: Declare new methods.
10853 <m_num_psymtabs>: New member.
10854 (struct dwarf2_per_cu_data) <index>: New member.
10855 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10856 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10857 (create_cu_from_index_list): Use allocate_per_cu.
10858 (create_signatured_type_table_from_index)
10859 (create_signatured_type_table_from_debug_names)
10860 (create_debug_type_hash_table, add_type_unit)
10861 (read_comp_units_from_section): Use allocate_signatured_type.
10862
5717c425
TT
108632020-05-27 Tom Tromey <tom@tromey.com>
10864
10865 * psymtab.c (partial_map_expand_apply)
10866 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10867 (psym_lookup_global_symbol_language)
10868 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10869 (psym_print_stats, psym_expand_symtabs_for_function)
10870 (psym_map_symbol_filenames, psym_map_matching_symbols)
10871 (psym_expand_symtabs_matching)
10872 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10873 (maintenance_check_psymtabs): Update.
10874 * psympriv.h (struct partial_symtab) <readin_p,
10875 get_compunit_symtab>: Add objfile parameter.
10876 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10877 Likewise.
10878 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10879 get_compunit_symtab>: Likewise.
10880 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10881
45940949
TT
108822020-05-27 Tom Tromey <tom@tromey.com>
10883
10884 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10885 member.
10886 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10887 (create_cu_from_index_list)
10888 (create_signatured_type_table_from_index)
10889 (create_signatured_type_table_from_debug_names)
10890 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10891 (dwarf2_create_include_psymtab)
10892 (create_debug_type_hash_table, add_type_unit)
10893 (create_type_unit_group, read_comp_units_from_section)
10894 (dwarf2_compute_name, create_cus_hash_table)
10895 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10896 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10897 obstack.
10898 (dw2_get_real_path): Likewise. Change argument to
10899 dwarf2_per_objfile.
10900
f8c6d152
LM
109012020-05-27 Luis Machado <luis.machado@linaro.org>
10902
10903 PR tdep/26000
10904 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10905 for ldrd (immediate).
10906
e98d2e6d
PW
109072020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10908
10909 * command.h: Add comment giving the name of class_tui.
10910 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10911 create the fake command for the help for class_tui.
10912
53a47a3e
TT
109132020-05-26 Tom Tromey <tromey@adacore.com>
10914
10915 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10916 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10917 (val_atr): New function.
10918 (value_val_atr): Use it.
10919 * ada-valprint.c (print_optional_low_bound): Change low bound
10920 handling for enums.
10921 (val_print_packed_array_elements): Don't call discrete_position.
10922 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10923 discrete_position for enum types.
10924 * language.c (default_print_array_index): Change type.
10925 * language.h (struct language_defn) <la_print_array_index>: Add
10926 index_type parameter, change type of index_value.
10927 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10928 (default_print_array_index): Update.
10929 * valprint.c (maybe_print_array_index): Don't call
10930 value_from_longest. Update.
10931 (value_print_array_elements): Don't call discrete_position.
10932
0bc2354b
TT
109332020-05-26 Tom Tromey <tromey@adacore.com>
10934
10935 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10936 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10937
1218a4bf
CDA
109382020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10939
10940 PR gdb/13519
10941 * avr-tdep.c (avr_integer_to_address): Return data or code
10942 address accordingly to the second 'type' argument of the
10943 function.
10944
92651b1d
MW
109452020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10946
10947 * infcmd.c, inferior.h: (construct_inferior_arguments):
10948 Moved function from here to gdbsupport/common-inferior.{h,cc}
10949
0a4f5f8c
TT
109502020-05-23 Tom Tromey <tom@tromey.com>
10951
10952 Revert commit eca1f90c:
10953 * NEWS: Remove entry for completion styling.
10954 * completer.c (_rl_completion_prefix_display_length): Move
10955 declaration later.
10956 (gdb_fnprint): Revert.
10957 (gdb_display_match_list_1): Likewise.
10958 * cli/cli-style.c (completion_prefix_style)
10959 (completion_difference_style, completion_suffix_style): Remove.
10960 (_initialize_cli_style): Revert.
10961 * cli/cli-style.h (completion_prefix_style)
10962 (completion_difference_style, completion_suffix_style): Don't
10963 declare.
10964
e08bd6c5
PA
109652020-05-24 Pedro Alves <palves@redhat.com>
10966
10967 * symtab.c (completion_list_add_name): Return boolean indication
10968 of whether the symbol matched.
10969 (completion_list_add_symbol): Don't try to remove C++ aliases if
10970 the symbol didn't match in the first place.
10971 * symtab.h (completion_list_add_name): Return bool.
10972
ceacbf6e
SM
109732020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
10974
10975 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
10976 type::field.
10977
26f16254
JB
109782020-05-23 Joel Brobecker <brobecker@adacore.com>
10979
10980 GDB 9.2 released.
10981
eca1f90c
TT
109822020-05-23 Tom Tromey <tom@tromey.com>
10983
10984 * NEWS: Add entry for completion styling.
10985 * completer.c (_rl_completion_prefix_display_length): Move
10986 declaration earlier.
10987 (gdb_fnprint): Use completion_style.
10988 (gdb_display_match_list_1): Likewise.
10989 * cli/cli-style.c (completion_prefix_style)
10990 (completion_difference_style, completion_suffix_style): New
10991 globals.
10992 (_initialize_cli_style): Register new globals.
10993 * cli/cli-style.h (completion_prefix_style)
10994 (completion_difference_style, completion_suffix_style): Declare.
10995
51e2cfa2
PA
109962020-05-23 Pedro Alves <palves@redhat.com>
10997
10998 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
10999 (parse_escape): Use ISDIGIT instead of isdigit.
11000 (puts_debug): Use gdb_isprint instead of isprint.
11001 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
11002 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
11003 ISSPACE instead of isspace.
11004 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
11005 instead of isspace.
11006 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
11007 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
11008 instead of isxdigit and ISDIGIT instead of isdigit.
11009
80fc5e77
SM
110102020-05-22 Simon Marchi <simon.marchi@efficios.com>
11011
11012 * gdbtypes.h (struct type) <field>: New method.
11013 (TYPE_FIELDS): Remove, replace all uses with either type::fields
11014 or type::field.
11015
3cabb6b0
SM
110162020-05-22 Simon Marchi <simon.marchi@efficios.com>
11017
11018 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
11019 (TYPE_FIELDS): Use type::fields. Change all call sites that
11020 modify the propery to use type::set_fields instead.
11021
1f704f76
SM
110222020-05-22 Simon Marchi <simon.marchi@efficios.com>
11023
11024 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
11025 type::num_fields instead.
11026
5e33d5f4
SM
110272020-05-22 Simon Marchi <simon.marchi@efficios.com>
11028
11029 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
11030 methods.
11031 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
11032 that modify the number of fields to use type::set_num_fields
11033 instead.
11034
9392ebb3
TT
110352020-05-22 Tom Tromey <tromey@adacore.com>
11036
11037 * compile/compile-object-load.h (munmap_list_free): Don't
11038 declare.
11039
7c13f4e8
AB
110402020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
11041
11042 * annotate.c (annotate_source_line): Update return type, add call
11043 to update current symtab and line.
11044 * annotate.h (annotate_source_line): Update return type, and
11045 extend header comment.
11046 * source.c (info_line_command): Check annotation_level before
11047 calling annotate_source_line.
11048 * stack.c (print_frame_info): If calling annotate_source_line
11049 returns true, then don't print any other source line information.
11050
aa370940
SM
110512020-05-21 Simon Marchi <simon.marchi@efficios.com>
11052
11053 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
11054
84d53fa9
SM
110552020-05-21 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * coffread.c (patch_type): Remove NULL check before xfree.
11058 * corefile.c (set_gnutarget): Likewise.
11059 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
11060 * exec.c (build_section_table): Likewise.
11061 * remote.c (remote_target::pass_signals): Likewise.
11062 * utils.c (n_spaces): Likewise.
11063 * cli/cli-script.c (document_command): Likewise.
11064 * i386-windows-tdep.c (core_process_module_section): Likewise.
11065 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
11066
9d428aae
SM
110672020-05-20 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * symfile.c (reread_symbols): Clear objfile's section_offsets
11070 vector and section indices, re-compute them by calling
11071 sym_offsets.
11072
250106a7
TT
110732020-05-20 Tom Tromey <tromey@adacore.com>
11074
11075 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 11076 (desc_one_bound, desc_index_type): Compute field name.
250106a7 11077
9a0bacfb
TV
110782020-05-20 Tom de Vries <tdevries@suse.de>
11079
11080 PR symtab/25833
11081 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
11082
7b958a48
AM
110832020-05-20 Alan Modra <amodra@gmail.com>
11084
11085 PR 25993
11086 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
11087 bfd_set_filename.
11088 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
11089 passed to bfd_set_filename.
11090 * symfile-mem.c (add_vsyscall_page): Likewise for string
11091 passed to symbol_file_add_from_memory.
11092 (symbol_file_add_from_memory): Make name param a const char* and
11093 don't strdup.
11094
c7e97679
AM
110952020-05-20 Alan Modra <amodra@gmail.com>
11096
11097 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
11098 rather than accessing bfd->filename directly.
11099 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
11100 and use bfd_section_name.
11101 * dwarf2/frame.c (decode_frame_entry): Likewise.
11102 * exec.c (exec_set_section_address): Likewise.
11103 * solib-aix.c (solib_aix_bfd_open): Likewise.
11104 * stap-probe.c (get_stap_base_address): Likewise.
11105 * symfile.c (reread_symbols): Likewise.
11106
563c591b
TT
111072020-05-19 Tom Tromey <tromey@adacore.com>
11108
11109 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
11110
f408d82c
SM
111112020-05-19 Simon Marchi <simon.marchi@efficios.com>
11112
11113 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
11114
98c59b52
PA
111152020-05-19 Pedro Alves <palves@redhat.com>
11116
11117 * NEWS (set exec-file-mismatch): Adjust entry.
11118 * exec.c: Include "build-id.h".
11119 (validate_exec_file): Try to match build IDs instead of filenames.
11120 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
11121 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
11122 and pass down 'warn_if_slow'.
11123 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
11124 gdb_bfd_open_closure to pass it down.
11125 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
11126
4111f652
PA
111272020-05-19 Pedro Alves <palves@redhat.com>
11128
11129 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
11130 * target.c (target_fileio_open_1): Rename to target_fileio_open
11131 and make extern. Use bool.
11132 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11133 (target_fileio_read_alloc_1): Adjust.
11134 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11135 (target_fileio_open_warn_if_slow): Delete declaration.
11136
ad80db5b
PA
111372020-05-19 Pedro Alves <palves@redhat.com>
11138
11139 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11140 Adjust all callers.
11141
1d6ce4d3
YS
111422020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11143
11144 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11145 whether disp is negative.
11146
9005fbbb
SM
111472020-05-19 Simon Marchi <simon.marchi@efficios.com>
11148
11149 * symfile.h (struct symfile_segment_data)
11150 <~symfile_segment_data>: Remove.
11151 <segment_info>: Change to std::vector.
11152 * symfile.c (default_symfile_segments): Update.
11153 * elfread.c (elf_symfile_segments): Update.
11154
68b888ff
SM
111552020-05-19 Simon Marchi <simon.marchi@efficios.com>
11156
11157 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11158 <segments>: New.
11159 <segment_bases, segment_sizes>: Remove.
11160 * symfile.c (default_symfile_segments): Update.
11161 * elfread.c (elf_symfile_segments): Update.
11162 * remote.c (remote_target::get_offsets): Update.
11163 * solib-target.c (solib_target_relocate_section_addresses):
11164 Update.
11165
62982abd
SM
111662020-05-19 Simon Marchi <simon.marchi@efficios.com>
11167
11168 * symfile.h (struct symfile_segment_data): Initialize fields.
11169 <~symfile_segment_data>: Add.
11170 (symfile_segment_data_up): New.
11171 (struct sym_fns) <sym_segments>: Return a
11172 symfile_segment_data_up.
11173 (default_symfile_segments): Return a symfile_segment_data_up.
11174 (free_symfile_segment_data): Remove.
11175 (get_symfile_segment_data): Return a symfile_segment_data_up.
11176 * symfile.c (default_symfile_segments): Likewise.
11177 (get_symfile_segment_data): Likewise.
11178 (free_symfile_segment_data): Remove.
11179 (symfile_find_segment_sections): Update.
11180 * elfread.c (elf_symfile_segments): Return a
11181 symfile_segment_data_up.
11182 * remote.c (remote_target::get_offsets): Update.
11183 * solib-target.c (solib_target_relocate_section_addresses):
11184 Update.
11185 * symfile-debug.c (debug_sym_segments): Return a
11186 symfile_segment_data_up.
11187
7f204339
RO
111882020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11189
e52a0f1b
RO
11190 PR build/25981
11191 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11192 Hardcode register numbers.
11193
7f204339
RO
11194 PR build/25981
11195 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11196 procfs_find_LDT_entry): Remove.
11197 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11198 procfs_find_LDT_entry): Remove.
11199 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11200 Remove.
11201
7f32a4d5
PA
112022020-05-17 Pedro Alves <palves@redhat.com>
11203 Andrew Burgess <andrew.burgess@embecosm.com>
11204 Keno Fischer <keno@juliacomputing.com>
11205
11206 PR gdb/25741
11207 * breakpoint.c (build_target_condition_list): Update comments.
11208 (build_target_command_list): Update comments and skip matching
11209 locations.
11210 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11211 a separate function. Simplify "set breakpoint auto-hw off"
11212 handling.
11213 (insert_breakpoints): Update comment.
11214 (tracepoint_locations_match): New parameter. For breakpoints,
11215 compare location types too, if the caller wants to.
11216 (handle_automatic_hardware_breakpoints): New functions.
11217 (bp_location_is_less_than): Also sort by location type and
11218 hardware breakpoint length.
11219 (update_global_location_list): Handle "set breakpoint auto-hw on"
11220 here.
11221 (update_breakpoint_locations): Ask breakpoint_locations_match to
11222 ignore location types.
11223
7d93a1e0
SM
112242020-05-16 Simon Marchi <simon.marchi@efficios.com>
11225
11226 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11227 type::name instead.
11228
d0e39ea2
SM
112292020-05-16 Simon Marchi <simon.marchi@efficios.com>
11230
11231 * gdbtypes.h (struct type) <name, set_name>: New methods.
11232 (TYPE_CODE): Use type::name. Change all call sites used to set
11233 the name to use type::set_name instead.
11234
2dab0c7b
TT
112352020-05-16 Tom Tromey <tom@tromey.com>
11236
11237 * top.c (quit_force): Update.
11238 * infrun.c (handle_no_resumed): Update.
11239 * top.h (all_uis): New function.
11240 (ALL_UIS): Remove.
11241
59f7bd8d
SM
112422020-05-16 Simon Marchi <simon.marchi@efficios.com>
11243
11244 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11245
9bf058f0
PA
112462020-05-16 Pedro Alves <palves@redhat.com>
11247
11248 * ia64-linux-nat.c
11249 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11250 Declare method.
11251 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11252
8f86ae1a
SM
112532020-05-15 Simon Marchi <simon.marchi@efficios.com>
11254
11255 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11256 (sparc64_adi_info): Likewise.
11257
d6bc0792
TT
112582020-05-15 Tom Tromey <tom@tromey.com>
11259
11260 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11261 block_objfile.
11262 (lookup_objfile_from_block): Remove.
11263 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11264 (lookup_global_symbol): Use block_objfile.
11265 * symtab.h (lookup_objfile_from_block): Don't declare.
11266 * printcmd.c (clear_dangling_display_expressions): Use
11267 block_objfile.
11268 * parse.c (operator_check_standard): Use block_objfile.
11269
8c14c3a3
TT
112702020-05-15 Tom Tromey <tom@tromey.com>
11271
11272 * language.c (language_alloc_type_symbol): Set
11273 SYMBOL_SECTION.
11274 * symtab.c (initialize_objfile_symbol): Remove.
11275 (allocate_symbol): Remove.
11276 (allocate_template_symbol): Remove.
11277 * dwarf2/read.c (fixup_go_packaging): Use "new".
11278 (new_symbol): Use "new".
11279 (read_variable): Don't call initialize_objfile_symbol. Use
11280 "new".
11281 (read_func_scope): Use "new".
11282 * xcoffread.c (process_xcoff_symbol): Don't call
11283 initialize_objfile_symbol.
11284 (SYMBOL_DUP): Remove.
11285 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11286 "new".
11287 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11288 (allocate_template_symbol): Don't declare.
11289 (struct symbol): Add copy constructor. Change defaults.
11290 * jit.c (finalize_symtab): Use "new".
11291 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11292 Use "new".
11293 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11294 (common_block_end): Use "new".
11295 * mdebugread.c (parse_symbol): Use "new".
11296 (new_symbol): Likewise.
11297
5b4a1a8d
PW
112982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11299
11300 * NEWS: Mention changes to help and apropos.
11301
57b4f16e
PW
113022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11303
11304 * command.h (enum command_class): Improve comments, document
11305 that class_alias is for user-defined aliases, give the class
11306 name for each class, remove unused class_xdb.
11307 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11308 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11309 by a precise class.
11310 * infcmd.c (_initialize_infcmd): Likewise.
11311 * reverse.c (_initialize_reverse): Likewise.
11312 * stack.c (_initialize_stack): Likewise.
11313 * symfile.c (_initialize_symfile): Likewise.
11314 * tracepoint.c (_initialize_tracepoint): Likewise.
11315
7c05caf7
PW
113162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11317
11318 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11319 when their aliased command is traversed.
11320 (help_cmd): Add fput_command_names_styled call to
11321 output command name and aliases when command has an alias.
11322
3b3aaacb
PW
113232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11324
11325 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11326 * cli/cli-decode.c (help_cmd_list): Declare as static,
11327 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11328 a command together with the command.
11329 (fput_command_name_styled, fput_command_names_styled): New functions.
11330 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11331 fput_command_name_styled.
11332 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11333 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11334
7aa1b46f
PW
113352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11336
11337 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11338 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11339 * command.h (cmd_show_list): Likewise.
11340 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11341 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11342
89bcba74
PW
113432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11344
11345 * unittests/command-def-selftests.c (traverse_command_structure):
11346 Verify all commands of a list have the same prefix command and
11347 that only the top cmdlist commands have a null prefix.
11348
3f4d92eb
PW
113492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11350
11351 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11352 as prefix, not one of its aliases.
11353 (set_cmd_prefix): Remove.
11354 (do_add_cmd): Centralize the setting of the prefix of a command, when
11355 command is defined after its full chain of prefix commands.
11356 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11357 (add_setshow_cmd_full): Likewise.
11358 (update_prefix_field_of_prefixed_commands): New function.
11359 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11360 update_prefix_field_of_prefixed_commands.
11361 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11362 addresses of remote_set_cmdlist and remote_show_cmdlist given
11363 as argument, not the address of an argument.
11364 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11365 * gdb/remote.c (_initialize_remote): Likewise.
11366
0605465f
PW
113672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11368
11369 * cli/cli-cmds.c (alias_command): Check for an existing alias
11370 using lookup_cmd_composition, as valid_command_p is too strict
11371 and forbids aliases that are the prefix of an existing alias
11372 or command.
11373 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11374 command is properly recognised as a valid command.
11375
58e6ac70
PW
113762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11377
11378 * unittests/help-doc-selftests.c: Rename to
11379 unittests/command-def-selftests.c
11380 * unittests/command-def-selftests.c (help_doc_tests): Update some
11381 comments.
11382 (command_structure_tests, traverse_command_structure): New namespace
11383 and function.
11384 (command_structure_invariants_tests): New function.
11385 (_initialize_command_def_selftests) Renamed from
11386 _initialize_help_doc_selftests, register command_structure_invariants
11387 selftest.
11388
a7b9ceb8
PW
113892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11390
11391 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11392 an alias of 'show'.
11393
b2188a06
JB
113942020-05-15 Joel Brobecker <brobecker@adacore.com>
11395
11396 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11397 ada_is_fixed_point_type. Update all callers.
11398 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11399 all callers.
11400 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11401 Update all callers.
11402 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11403 print_fixed_point_type. Update all callers.
11404 * ada-valprint.c (ada_value_print_num): Replace call to
11405 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11406
a51951c2
KB
114072020-05-14 Kevin Buettner <kevinb@redhat.com>
11408
11409 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11410 processors.
11411 (cpu_supports_bts): Add CV_AMD case.
11412
29d6859f
LM
114132020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11414 Simon Marchi <simon.marchi@efficios.com>
11415
11416 * infrun.c (stop_all_threads): Collect multiple wait events at
11417 each pass.
11418
78134374
SM
114192020-05-14 Simon Marchi <simon.marchi@efficios.com>
11420
11421 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11422 type::code instead.
11423
67607e24
SM
114242020-05-14 Simon Marchi <simon.marchi@efficios.com>
11425
11426 * gdbtypes.h (struct type) <code, set_code>: New methods.
11427 (TYPE_CODE): Use type::code. Change all call sites used to set
11428 the code to use type::set_code instead.
11429
a05575d3
TBA
114302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11431 Tom de Vries <tdevries@suse.de>
11432 Pedro Alves <palves@redhat.com>
11433
11434 PR threads/25478
11435 * infrun.c (stop_all_threads): Do NOT ignore
11436 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11437 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11438 received.
11439 (handle_no_resumed): Remove code handling a live inferior with no
11440 threads.
11441 * remote.c (has_single_non_exited_thread): New.
11442 (remote_target::update_thread_list): Do not delete a thread if is
11443 the last thread of the process.
11444 * thread.c (thread_select): Call delete_exited_threads instead of
11445 prune_threads.
11446
6ad82919
TBA
114472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11448
11449 * infrun.c (stop_all_threads): Enable/disable thread events of all
11450 targets. Move a debug message denoting the end of the function
11451 into the SCOPED_EXIT block.
11452
d890404b
TBA
114532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11454
11455 * process-stratum-target.h: Include <set>.
11456 (all_non_exited_process_targets, switch_to_target_no_thread): New
11457 function declarations.
11458 * process-stratum-target.c (all_non_exited_process_targets)
11459 (switch_to_target_no_thread): New function implementations.
11460
293b3ebc
TBA
114612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11462
11463 * infrun.c (handle_inferior_event): Extract out a piece of code
11464 into...
11465 (mark_non_executing_threads): ...this new function.
11466
7ca9b62a
TBA
114672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11468
11469 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11470 use.
11471
fc75c28b
TBA
114722020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11473
11474 * regcache.c (regcache_read_pc_protected): New function
11475 implementation that returns 0 if the PC cannot read via
11476 'regcache_read_pc'.
11477 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11478 instead of 'regcache_read_pc'.
11479 (keep_going_pass_signal): Ditto.
11480
a89febbd
TT
114812020-05-13 Tom Tromey <tromey@adacore.com>
11482
11483 * ada-lang.c (align_value): Remove.
11484 (ada_template_to_fixed_record_type_1): Use align_up.
11485
f7e23710
TBA
114862020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11487
11488 * async-event.c: Update the copyright year.
11489 * async-event.h: Update the copyright year.
11490
02ff80c2
SM
114912020-05-12 Simon Marchi <simon.marchi@efficios.com>
11492
11493 * objfiles.h (is_addr_in_objfile,
11494 shared_objfile_contains_address_p): Return bool.
11495 * objfile.c (is_addr_in_objfile,
11496 shared_objfile_contains_address_p): Return bool.
11497
4fd6c7e8
TT
114982020-05-11 Tom Tromey <tromey@adacore.com>
11499
11500 * cli/cli-cmds.c (info_command): Restore.
11501 (_initialize_cli_cmds): Use add_prefix_command for "info".
11502 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11503
5eb68a39
TT
115042020-05-11 Tom Tromey <tromey@adacore.com>
11505
11506 * ada-lang.c (ada_value_primitive_field): Now public.
11507 * ada-lang.h (ada_value_primitive_field): Declare.
11508 * ada-valprint.c (print_field_values): Use
11509 ada_value_primitive_field for wrapper fields.
11510
7666722f
TV
115112020-05-11 Tom de Vries <tdevries@suse.de>
11512
11513 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11514 MODULE_DOMAIN.
11515
3ee6bb11
TV
115162020-05-11 Tom de Vries <tdevries@suse.de>
11517
11518 PR symtab/25941
11519 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11520 with length 0, if not gdb-produced.
11521 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11522
43434996
TV
115232020-05-09 Tom de Vries <tdevries@suse.de>
11524
11525 PR gdb/25955
11526 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11527 calculation.
11528
2f78cffc
TT
115292020-05-09 Tom Tromey <tom@tromey.com>
11530
11531 * top.c (server_command): Now bool.
11532 * top.h (server_command): Now bool.
11533
4f7bc5ed
TT
115342020-05-08 Tom Tromey <tromey@adacore.com>
11535
11536 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11537 already being processed.
11538
8be4b118
TT
115392020-05-08 Tom Tromey <tom@tromey.com>
11540
11541 * printcmd.c (struct display) <next>: Remove.
11542 <display>: New constructor.
11543 <exp_string>: Now a std::string.
11544 <enabled_p>: Now a bool.
11545 (display_number): Move definition earlier.
11546 (displays): Rename from display_chain. Now a std::vector.
11547 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11548 (display_command): Update.
11549 (do_one_display, disable_display)
11550 (enable_disable_display_command, do_enable_disable_display):
11551 Update.
11552 (free_display): Remove.
11553 (clear_displays): Rewrite.
11554 (delete_display): Update.
11555 (map_display_numbers): Use function_view. Remove "data"
11556 parameter. Update.
11557 (do_delete_display): Remove.
11558 (undisplay_command): Update.
11559 (do_one_display, do_displays, disable_display)
11560 (info_display_command): Update.
11561 (do_enable_disable_display): Remove.
11562 (enable_disable_display_command)
11563 (clear_dangling_display_expressions): Update.
11564
94c93c35
TT
115652020-05-08 Tom Tromey <tom@tromey.com>
11566
11567 * symtab.c (set_symbol_cache_size)
11568 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11569 (maintenance_print_symbol_cache_statistics): Update.
11570 * symmisc.c (print_symbol_bcache_statistics)
11571 (print_objfile_statistics, maintenance_print_objfiles)
11572 (maintenance_info_symtabs, maintenance_check_symtabs)
11573 (maintenance_expand_symtabs, maintenance_info_line_tables):
11574 Update.
11575 * symfile-debug.c (set_debug_symfile): Update.
11576 * source.c (forget_cached_source_info): Update.
11577 * python/python.c (gdbpy_progspaces): Update.
11578 * psymtab.c (maintenance_info_psymtabs): Update.
11579 * probe.c (parse_probes): Update.
11580 * linespec.c (iterate_over_all_matching_symtabs)
11581 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11582 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11583 * exec.c (exec_target::close): Update.
11584 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11585 * breakpoint.c (print_one_breakpoint_location)
11586 (create_longjmp_master_breakpoint)
11587 (create_std_terminate_master_breakpoint): Update.
11588 * progspace.c (program_spaces): Now a std::vector.
11589 (maybe_new_address_space): Update.
11590 (add_program_space): Remove.
11591 (program_space::program_space): Update.
11592 (remove_program_space): Update.
11593 (number_of_program_spaces): Remove.
11594 (print_program_space, update_address_spaces): Update.
11595 * progspace.h (program_spaces): Change type.
11596 (ALL_PSPACES): Remove.
11597 (number_of_program_spaces): Don't declare.
11598 (struct program_space) <next>: Remove.
11599
a1fd1ac9
TT
116002020-05-08 Tom Tromey <tom@tromey.com>
11601
11602 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11603 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11604 (enable_break): Update.
11605 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11606 (frv_fdpic_find_canonical_descriptor): Update.
11607 (frv_fetch_objfile_link_map): Update.
11608 * progspace.c (program_space::free_all_objfiles): Update.
11609 (program_space::solibs): New method.
11610 * progspace.h (struct program_space) <solibs>: New method.
11611 * solist.h (master_so_list): Don't declare.
11612 (ALL_SO_LIBS): Remove.
11613 * solib.h (so_list_head): Remove.
11614 (update_solib_list): Update comment.
11615 * solib.c (master_so_list): Remove.
11616 (solib_used, update_solib_list, solib_add)
11617 (info_sharedlibrary_command, clear_solib)
11618 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11619
38eae084
TT
116202020-05-08 Tom Tromey <tom@tromey.com>
11621
11622 * extension.c (extension_languages): Now a std::array.
11623 (ALL_EXTENSION_LANGUAGES): Remove.
11624 (get_ext_lang_defn, get_ext_lang_of_file)
11625 (eval_ext_lang_from_control_command): Update.
11626 (finish_ext_lang_initialization)
11627 (auto_load_ext_lang_scripts_for_objfile)
11628 (ext_lang_type_printers::ext_lang_type_printers)
11629 (apply_ext_lang_type_printers)
11630 (ext_lang_type_printers::~ext_lang_type_printers)
11631 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11632 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11633 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11634 (get_matching_xmethod_workers, ext_lang_colorize)
11635 (ext_lang_before_prompt): Update.
11636 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11637
596dc4ad
TT
116382020-05-08 Tom Tromey <tom@tromey.com>
11639
11640 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11641 overload.
11642 <swap_string, m_string>: Remove.
11643 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11644 Update.
11645 * stabsread.c (define_symbol, read_type): Update.
11646 * linespec.c (find_linespec_symbols): Update.
11647 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11648 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11649 * dbxread.c (read_dbx_symtab): Update.
11650 * cp-support.h (cp_canonicalize_string_full)
11651 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11652 Return unique_xmalloc_ptr.
11653 * cp-support.c (inspect_type): Update.
11654 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11655 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11656 Likewise.
11657 * c-typeprint.c (print_name_maybe_canonical): Update.
11658 * break-catch-throw.c (check_status_exception_catchpoint):
11659 Update.
11660
bf4cb9be
TV
116612020-05-08 Tom de Vries <tdevries@suse.de>
11662
11663 * infrun.c (follow_fork): Copy current_line and current_symtab to
11664 child thread.
11665
a1b68f28
SM
116662020-05-07 Simon Marchi <simon.marchi@efficios.com>
11667
11668 * async-event.c (struct async_signal_handler, struct
11669 async_event_handler): Reformat, remove typedef.
11670
98d48915
SM
116712020-05-07 Simon Marchi <simon.marchi@efficios.com>
11672
11673 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11674 access thistype->main_type->dyn_prop_list directly.
11675
7aa91313
SM
116762020-05-07 Simon Marchi <simon.marchi@efficios.com>
11677
11678 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11679 (remove_dyn_prop): Remove. Update all users to use
11680 type::remove_dyn_prop.
11681 * gdbtypes.c (remove_dyn_prop): Rename to...
11682 (type::remove_dyn_prop): ... this.
11683
5c54719c
SM
116842020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11685
11686 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11687 (add_dyn_prop): Remove. Update all users to use
11688 type::add_dyn_prop.
11689 * gdbtypes.c (add_dyn_prop): Rename to...
11690 (type::add_dyn_prop): ... this.
11691
24e99c6c
SM
116922020-05-07 Simon Marchi <simon.marchi@efficios.com>
11693
11694 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11695 (get_dyn_prop): Remove. Update all users to use
11696 type::dyn_prop.
11697 * gdbtypes.c (get_dyn_prop): Rename to...
11698 (type::dyn_prop): ... this.
11699
0d4bf016
SM
117002020-05-06 Simon Marchi <simon.marchi@efficios.com>
11701
11702 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11703
ac4a4f1c
SM
117042020-05-06 Simon Marchi <simon.marchi@efficios.com>
11705
11706 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11707 instruction, skip it if it's there.
11708
a3bbacc1
SM
117092020-05-05 Simon Marchi <simon.marchi@efficios.com>
11710
11711 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11712
c3236f84
SM
117132020-05-04 Simon Marchi <simon.marchi@efficios.com>
11714
11715 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11716 * gdbtypes.c (recursive_dump_type): Remove use of
11717 TYPE_INCOMPLETE.
11718
3b6acaee
TT
117192020-05-03 Tom Tromey <tom@tromey.com>
11720
11721 * breakpoint.c (catch_command, tcatch_command): Remove.
11722 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11723 add_show_prefix_cmd.
11724 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11725 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11726 Remove.
11727 (add_internal_problem_command): Use add_basic_prefix_cmd,
11728 add_show_prefix_cmd.
11729 * mips-tdep.c (set_mipsfpu_command): Remove.
11730 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11731 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11732 (_initialize_index_cache): Use add_basic_prefix_cmd.
11733 * memattr.c (dummy_cmd): Remove.
11734 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11735 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11736 (_initialize_tui_win): Use add_basic_prefix_cmd,
11737 add_show_prefix_cmd.
11738 * cli/cli-logging.c (set_logging_command): Remove.
11739 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11740 add_show_prefix_cmd.
11741 (show_logging_command): Remove.
11742 * target.c (target_command): Remove.
11743 (add_target): Use add_basic_prefix_cmd.
11744
a51119cd
HD
117452020-05-02 Hannes Domani <ssbssa@yahoo.de>
11746
11747 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11748
652fc23a 117492020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11750
652fc23a
PW
11751 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11752 info_command.
11753
117539e6
KR
117542020-04-30 Kamil Rytarowski <n54@gmx.com>
11755
11756 * nbsd-nat.c (nbsd_enable_proc_events)
11757 (nbsd_nat_target::post_startup_inferior): Add.
11758 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11759 (nbsd_nat_target::update_thread_list): Rewrite.
11760 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11761 "PTRACE_LWP_CREATE".
11762 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11763
102e38eb 117642020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11765
102e38eb
PW
11766 * stack.c (_initialize_stack): Remove duplicated creation
11767 of "frame" command and "f" alias.
11768
ee9d1e5f
HD
117692020-04-30 Hannes Domani <ssbssa@yahoo.de>
11770
11771 PR gdb/18706
11772 * gdbtypes.c (check_typedef): Calculate size of array of
11773 stubbed type.
11774
627c7fb8
HD
117752020-04-30 Hannes Domani <ssbssa@yahoo.de>
11776
11777 PR gdb/15559
11778 * i386-tdep.c (i386_push_dummy_call): Call
11779 i386_thiscall_push_dummy_call.
11780 (i386_thiscall_push_dummy_call): New function.
11781 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11782 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11783 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11784
ffc2844e
SM
117852020-04-29 Simon Marchi <simon.marchi@efficios.com>
11786
11787 * gdbarch.sh (do_read): Add shellcheck disable directive for
11788 warning SC2162.
11789
1207375d
SM
117902020-04-29 Simon Marchi <simon.marchi@efficios.com>
11791
11792 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11793 "referenced but not assigned" warning.
11794
9fdb2916
SM
117952020-04-29 Simon Marchi <simon.marchi@efficios.com>
11796
11797 * gdbarch.sh: Remove code that sets fallbackdefault.
11798
759cea5e
SM
117992020-04-29 Simon Marchi <simon.marchi@efficios.com>
11800
11801 * gdbarch.sh: Use shell operators && and || instead of
11802 -a and -o.
11803
cb02ab24
SM
118042020-04-29 Simon Marchi <simon.marchi@efficios.com>
11805
11806 * gdbarch.sh: Use $(...) instead of `...`.
11807
a6fc5ffc
SM
118082020-04-29 Simon Marchi <simon.marchi@efficios.com>
11809
11810 * gdbarch.sh: Use double quotes around variables.
11811
8d113d13
SM
118122020-04-29 Simon Marchi <simon.marchi@efficios.com>
11813
11814 * gdbarch.sh: Use %s with printf, instead of variables in the
11815 format string.
11816
ed6acedd
TT
118172020-04-29 Tom Tromey <tromey@adacore.com>
11818
11819 PR ada/25875:
11820 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11821 type fields here.
11822 (read_enumeration_type): Call
11823 update_enumeration_type_from_children later. Update comments.
11824 (process_enumeration_scope): Don't create type fields.
11825
b68b1b58
KR
118262020-04-29 Kamil Rytarowski <n54@gmx.com>
11827
11828 * nbsd-tdep.c: Include "xml-syscall.h".
11829 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11830
f94b2e03
KR
118312020-04-29 Kamil Rytarowski <n54@gmx.com>
11832
11833 * nbsd-nat.c: Include "sys/wait.h".
11834 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11835 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11836 (nbsd_nat_target::remove_exec_catchpoint)
11837 (nbsd_nat_target::set_syscall_catchpoint): Add.
11838 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11839 (nbsd_nat_target::insert_exec_catchpoint)
11840 (nbsd_nat_target::remove_exec_catchpoint)
11841 (nbsd_nat_target::set_syscall_catchpoint): Add.
11842 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11843 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11844 `nbsd_get_syscall_number'.
11845
fc49bc72
TT
118462020-04-29 Tom Tromey <tom@tromey.com>
11847
11848 * stack.c (print_block_frame_labels): Remove.
11849
d642b692
HD
118502020-04-29 Hannes Domani <ssbssa@yahoo.de>
11851
11852 PR gdb/17320
11853 * ada-valprint.c (val_print_packed_array_elements): Move array
11854 end bracket to new line.
11855 (ada_val_print_string): Remove extra spaces before first array
11856 element.
11857 * c-valprint.c (c_value_print_array): Likewise.
11858 * m2-valprint.c (m2_print_array_contents): Likewise.
11859 (m2_value_print_inner): Likewise.
11860 * p-valprint.c (pascal_value_print_inner): Likewise.
11861 * valprint.c (generic_val_print_array): Likewise.
11862 (value_print_array_elements): Move first array element and array
11863 end bracket to new line.
11864
ea90f227
TV
118652020-04-29 Tom de Vries <tdevries@suse.de>
11866
11867 PR symtab/25889
11868 * linespec.c (find_method): Fix ix calculation.
11869
4498ef4f
KR
118702020-04-28 Kamil Rytarowski <n54@gmx.com>
11871
11872 * syscalls/update-netbsd.sh: New file.
11873 * syscalls/netbsd.xml: Regenerate.
11874 * data-directory/Makefile.in: Register `netbsd.xml' in
11875 `SYSCALLS_FILES'.
11876
a55e30b5
SM
118772020-04-28 Simon Marchi <simon.marchi@efficios.com>
11878
11879 * syscalls/update-freebsd.sh: Add double quotes.
11880
2b2fbab8
TT
118812020-04-28 Tom Tromey <tom@tromey.com>
11882
11883 * NEWS: Update.
11884 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11885 (cmdpy_init): Allow class_tui.
11886
a65189c9
TV
118872020-04-28 Mark Williams <mark@myosotissp.com>
11888
11889 PR gdb/24480
11890 * dwarf2read.c: Add missing assingments to list_in_scope when
11891 start_symtab was already called.
11892
1b95cdb7
SM
118932020-04-28 Simon Marchi <simon.marchi@efficios.com>
11894
11895 PR gdb/25881
11896 * dwarf2/read.c (offset_map_type): Use
11897 gdb:hash_enum<sect_offset> as hash function.
11898
15cd93d0
TV
118992020-04-28 Tom de Vries <tdevries@suse.de>
11900
11901 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11902 with DW_AT_signature.
11903
1eb39914
SM
119042020-04-27 Simon Marchi <simon.marchi@efficios.com>
11905
11906 * configure.ac: Remove check for fs_base/gs_base in
11907 user_regs_struct.
11908 * configure: Re-generate.
11909 * config.in: Re-generate.
11910 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11911 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11912 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11913
991a3e2e
LM
119142020-04-27 Luis Machado <luis.machado@linaro.org>
11915
11916 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11917 problematic inline frame unwinding situation.
11918 * frame.c (frame_id_computed_p): New function.
11919 * frame.h (frame_id_computed_p): New prototype.
11920
361ba0e8
TT
119212020-04-26 Tom Tromey <tom@tromey.com>
11922
11923 * command.h (enum command_class) <class_pseudo>: Remove.
11924
bc3609fd
PW
119252020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11926
11927 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11928 and whitespace.
11929
b9771db7
KR
119302020-04-25 Kamil Rytarowski <n54@gmx.com>
11931
ec16513e
SM
11932 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11933 `PT_GET_PROCESS_STATE' block.
b9771db7 11934
7151c1af
TT
119352020-04-24 Tom Tromey <tom@tromey.com>
11936
11937 * symtab.h (symbol_get_demangled_name): Don't declare.
11938 * symtab.c (symbol_get_demangled_name): Remove.
11939 (general_symbol_info::natural_name)
11940 (general_symbol_info::demangled_name): Update.
11941
906bb4c5
TT
119422020-04-24 Tom Tromey <tom@tromey.com>
11943
11944 PR rust/25025:
11945 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11946
bcfe6157
TT
119472020-04-24 Tom Tromey <tom@tromey.com>
11948
11949 PR symtab/12707:
11950 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
11951 exists.
11952 (new_symbol): Likewise.
11953 * compile/compile-object-load.c (get_out_value_type): Use
11954 symbol_matches_search_name.
11955
f049a313
TT
119562020-04-24 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2/read.c (add_partial_symbol): Do not call
11959 compute_and_set_names.
11960
76e288d1
TT
119612020-04-24 Tom Tromey <tom@tromey.com>
11962
11963 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
11964 overload.
11965
2467f4f6
TT
119662020-04-24 Tom Tromey <tom@tromey.com>
11967
11968 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
11969 (add_psymbol_to_list): New overload. Make old overload call new
11970 one.
11971 * psympriv.h (add_psymbol_to_list): New overload.
11972
e61108c9
TT
119732020-04-24 Tom Tromey <tom@tromey.com>
11974
11975 * dwarf2/read.c (partial_die_info::read) <case
11976 DW_AT_linkage_name>: Use value_as_string.
11977 (dwarf2_string_attr): Use value_as_string.
11978 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
11979 method.
11980 * dwarf2/attribute.c (attribute::value_as_string): New method.
11981
8c87a452
TT
119822020-04-24 Tom Tromey <tom@tromey.com>
11983
11984 * symtab.c (general_symbol_info::natural_name)
11985 (general_symbol_info::demangled_name): Check for language_rust.
11986
787de330
TT
119872020-04-24 Tom Tromey <tom@tromey.com>
11988
11989 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
11990 (dwarf2_physname): ... from here.
11991 (partial_die_info::read): Add Rust "{" hack.
11992
ff985671
TT
119932020-04-24 Tom Tromey <tom@tromey.com>
11994
11995 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
11996 method.
11997 (symbol_set_demangled_name): Don't declare.
11998 * symtab.c (general_symbol_info::set_demangled_name): Rename from
11999 symbol_set_demangled_name.
12000 (general_symbol_info::set_language)
12001 (general_symbol_info::compute_and_set_names): Update.
12002 * minsyms.c (minimal_symbol_reader::install): Update.
12003 * dwarf2/read.c (new_symbol): Update.
12004
1acda803
TT
120052020-04-24 Tom Tromey <tromey@adacore.com>
12006
12007 PR python/23662:
12008 * python/py-type.c (convert_field): Handle
12009 FIELD_LOC_KIND_DWARF_BLOCK.
12010 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
12011 (typy_get_dynamic): Nw function.
12012 (type_object_getset): Add "dynamic".
12013 * NEWS: Add entry.
12014
d656f129
TT
120152020-04-24 Tom Tromey <tromey@adacore.com>
12016
12017 * ada-typeprint.c (print_choices, print_variant_part)
12018 (print_record_field_types_dynamic): New functions.
12019 (print_record_field_types): Use print_record_field_types_dynamic.
12020
7d79de9a
TT
120212020-04-24 Tom Tromey <tromey@adacore.com>
12022
12023 * dwarf2/read.c (handle_data_member_location): New overload.
12024 (dwarf2_add_field): Use it.
12025 (decode_locdesc): Add "computed" parameter. Update comment.
12026 * gdbtypes.c (is_dynamic_type_internal): Also look for
12027 FIELD_LOC_KIND_DWARF_BLOCK.
12028 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
12029 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
12030 virtual base classes.
12031 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
12032 FIELD_LOC_KIND_DWARF_BLOCK.
12033
f8e89861
TT
120342020-04-24 Tom Tromey <tromey@adacore.com>
12035
12036 * dwarf2/read.c (read_structure_type): Handle dynamic length.
12037 * gdbtypes.c (is_dynamic_type_internal): Check
12038 TYPE_HAS_DYNAMIC_LENGTH.
12039 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
12040 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
12041 New macros.
12042 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
12043 constant.
12044
9c6a1327
TT
120452020-04-24 Tom Tromey <tromey@adacore.com>
12046
12047 * dwarf2/read.c (struct variant_field): Rewrite.
12048 (struct variant_part_builder): New.
12049 (struct nextfield): Remove "variant" field. Add "offset".
12050 (struct field_info): Add "current_variant_part" and
12051 "variant_parts".
12052 (alloc_discriminant_info): Remove.
12053 (alloc_rust_variant): New function.
12054 (quirk_rust_enum): Update.
12055 (dwarf2_add_field): Set "offset" member. Don't handle
12056 DW_TAG_variant_part.
12057 (offset_map_type): New typedef.
12058 (convert_variant_range, create_one_variant)
12059 (create_one_variant_part, create_variant_parts)
12060 (add_variant_property): New functions.
12061 (dwarf2_attach_fields_to_type): Call add_variant_property.
12062 (read_structure_type): Don't handle DW_TAG_variant_part.
12063 (handle_variant_part, handle_variant): New functions.
12064 (handle_struct_member_die): Use them.
12065 (process_structure_scope): Don't handle variant parts.
12066 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
12067 (struct discriminant_info): Remove.
12068 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
12069 (struct main_type) <flag_discriminated_union>: Remove.
12070 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
12071 (rust_enum_variant): Return int. Remove "contents". Rewrite.
12072 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
12073 Update.
12074 * valops.c (value_union_variant): Remove.
12075 * value.h (value_union_variant): Don't declare.
12076
b249d2c2
TT
120772020-04-24 Tom Tromey <tromey@adacore.com>
12078
12079 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
12080 (ada_value_primitive_packed_val): Update.
12081 * ada-valprint.c (ada_value_print_1): Update.
12082 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
12083 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
12084 just an address. Use evaluate_for_locexpr_baton.
12085 (dwarf2_evaluate_property): Update.
12086 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
12087 array_view.
12088 * findvar.c (default_read_var_value): Update.
12089 * gdbtypes.c (compute_variant_fields_inner)
12090 (resolve_dynamic_type_internal): Update.
12091 (resolve_dynamic_type): Change type of valaddr parameter.
12092 * gdbtypes.h (resolve_dynamic_type): Update.
12093 * valarith.c (value_subscripted_rvalue): Update.
12094 * value.c (value_from_contents_and_address): Update.
12095
61122aa9
TT
120962020-04-24 Tom Tromey <tromey@adacore.com>
12097
12098 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
12099 "push_initial_value" parameter.
12100 (dwarf2_evaluate_property): Likewise.
12101 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
12102
ef83a141
TT
121032020-04-24 Tom Tromey <tromey@adacore.com>
12104
12105 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
12106 (variant::matches, compute_variant_fields_recurse)
12107 (compute_variant_fields_inner, compute_variant_fields): New
12108 functions.
12109 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
12110 Use resolved_type after type is made.
12111 (operator==): Add new cases.
12112 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
12113 (struct discriminant_range, struct variant, struct variant_part):
12114 New.
12115 (union dynamic_prop_data) <variant_parts, original_type>: New
12116 members.
12117 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
12118 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
12119 constants.
12120 * value.c (unpack_bits_as_long): Now public.
12121 * value.h (unpack_bits_as_long): Declare.
12122
675127ec
TT
121232020-04-24 Tom Tromey <tromey@adacore.com>
12124
12125 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
12126 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
12127
9852ceef
HD
121282020-04-24 Hannes Domani <ssbssa@yahoo.de>
12129
12130 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
12131
7632c6ce
KR
121322020-04-24 Kamil Rytarowski <n54@gmx.com>
12133
12134 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12135 (remove_fork_catchpoint, post_startup_inferior)
12136 (post_attach): Move...
12137 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12138 (remove_fork_catchpoint, post_startup_inferior)
12139 (post_attach): ...here.
12140 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12141 (remove_fork_catchpoint, post_startup_inferior)
12142 (post_attach): Move...
12143 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12144 (remove_fork_catchpoint, post_startup_inferior)
12145 (post_attach): ...here.
12146
7be2bb4f
TT
121472020-04-24 Tom Tromey <tromey@adacore.com>
12148
12149 * nat/windows-nat.h (struct windows_thread_info)
12150 <pc_adjusted>: New member.
12151 * windows-nat.c (windows_fetch_one_register): Check
12152 pc_adjusted.
12153 (windows_nat_target::get_windows_debug_event)
12154 (windows_nat_target::wait): Set pc_adjusted.
12155
f80cb3b4
TV
121562020-04-24 Tom de Vries <tdevries@suse.de>
12157
12158 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12159 Run gdb-add-index inside temp dir.
12160
29514b87
TT
121612020-04-23 Tom Tromey <tromey@adacore.com>
12162
12163 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12164 in loop.
12165
5939967b
LM
121662020-04-23 Luis Machado <luis.machado@linaro.org>
12167
12168 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12169 get_frame_register instead of gdbarch_unwind_pc.
12170
70bc38f5
TV
121712020-04-23 Tom de Vries <tdevries@suse.de>
12172
12173 * symtab.c (lookup_global_symbol): Prefer def over decl.
12174
de82891c
TV
121752020-04-23 Tom de Vries <tdevries@suse.de>
12176
12177 PR symtab/25807
12178 * block.c (best_symbol, better_symbol): Promote to external.
12179 * block.h (best_symbol, better_symbol): Declare.
12180 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12181 decl.
12182
ecc6c606
TT
121832020-04-23 Tom Tromey <tromey@adacore.com>
12184
12185 PR ada/25837:
12186 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12187 "const char *", not a "const std::string &".
12188 <name_and_matcher::operator==>: Update.
12189 * unittests/lookup_name_info-selftests.c: Change type of
12190 "result".
12191
740480b8
TT
121922020-04-23 Tom Tromey <tom@tromey.com>
12193
12194 * inferior.h (iterate_over_inferiors): Don't declare.
12195 * inferior.c (iterate_over_inferiors): Remove.
12196 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12197 Remove.
12198 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12199 use iterate_over_inferiors.
12200 (darwin_resume_inferior_it)
12201 (struct resume_inferior_threads_param)
12202 (darwin_resume_inferior_threads_it): Remove.
12203 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12204
ae3ab1f0
TV
122052020-04-23 Tom de Vries <tdevries@suse.de>
12206
12207 * blockframe.c (find_pc_partial_function): Use
12208 find_pc_sect_compunit_symtab rather than
12209 objfile->sf->qf->find_pc_sect_compunit_symtab.
12210
317d2668
TV
122112020-04-22 Tom de Vries <tdevries@suse.de>
12212
12213 PR symtab/25764
12214 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12215 in psymtabs.
12216
eea9e357
TV
122172020-04-22 Tom de Vries <tdevries@suse.de>
12218
12219 PR symtab/25801
12220 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12221 symtabs.
12222
3d5afab3
TV
122232020-04-22 Tom de Vries <tdevries@suse.de>
12224
12225 PR symtab/25700
12226 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12227 CU if already created.
12228
d43b7a2d
TBA
122292020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12230
12231 * infrun.c (displaced_step_fixup): Switch to the event_thread
12232 before calling displaced_step_restore, not after.
12233
d89edf9b
MM
122342020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12235
12236 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12237 its inferior is not recorded by us.
12238 (record_btrace_target_open): Replace call to
12239 all_non_exited_threads () with call to current_inferior
12240 ()->non_exited_threads ().
12241 (record_btrace_target::stop_recording): Likewise.
12242 (record_btrace_target::close): Likewise.
12243 (record_btrace_target::wait): Likewise.
12244 (record_btrace_target::record_stop_replaying): Likewise.
12245
5897fd49
MM
122462020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12247
12248 * btrace.c (btrace_enable): Throw an error on double enables and
12249 when enabling recording fails.
12250 (btrace_disable): Throw an error if the thread is not recorded.
12251
1a476b6d
MM
122522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12253
12254 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12255 request if we do not have a thread_info.
12256
4778a5f8
TV
122572020-04-21 Tom de Vries <tdevries@suse.de>
12258
12259 PR gdb/25471
12260 * thread.c
12261 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12262 exception in get_frame_id.
12263
0fa7617d
TT
122642020-04-20 Tom Tromey <tromey@adacore.com>
12265
12266 * python/python.c (struct gdbpy_event): Mark move constructor as
12267 noexcept.
12268 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12269 constructor as noexcept.
12270 * completer.h (struct completion_result): Mark move constructor as
12271 noexcept.
12272 * completer.c (completion_result::completion_result): Use
12273 initialization style. Don't call reset_match_list.
12274
ad23bda0
MS
122752020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12276
12277 * MAINTAINERS (Write After Approval): Add myself.
12278
45e1f031
TT
122792020-04-18 Tom Tromey <tom@tromey.com>
12280
12281 * windows-tdep.c (init_w32_command_list)
12282 (w32_prefix_command_valid): Restore.
12283 (_initialize_windows_tdep): Call init_w32_command_list.
12284
08feed99
TT
122852020-04-18 Tom Tromey <tom@tromey.com>
12286
12287 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12288 * value.c (value_fn_field): Update.
12289 * valops.c (find_function_in_inferior)
12290 (value_allocate_space_in_inferior): Update.
12291 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12292 Update.
12293 * tui/tui-source.c (tui_source_window::set_contents): Update.
12294 * symtab.c (lookup_global_or_static_symbol)
12295 (find_function_start_sal_1, skip_prologue_sal)
12296 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12297 * symmisc.c (dump_msymbols, dump_symtab_1)
12298 (maintenance_print_one_line_table): Update.
12299 * symfile.c (init_entry_point_info, section_is_mapped)
12300 (list_overlays_command, simple_read_overlay_table)
12301 (simple_overlay_update_1): Update.
12302 * stap-probe.c (handle_stap_probe): Update.
12303 * stabsread.c (dbx_init_float_type, define_symbol)
12304 (read_one_struct_field, read_enum_type, read_range_type): Update.
12305 * source.c (info_line_command): Update.
12306 * python/python.c (gdbpy_source_objfile_script)
12307 (gdbpy_execute_objfile_script): Update.
12308 * python/py-type.c (save_objfile_types): Update.
12309 * python/py-objfile.c (py_free_objfile): Update.
12310 * python/py-inferior.c (python_new_objfile): Update.
12311 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12312 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12313 (maintenance_check_psymtabs): Update.
12314 * printcmd.c (info_address_command): Update.
12315 * objfiles.h (struct objfile) <arch>: New method, from
12316 get_objfile_arch.
12317 (get_objfile_arch): Don't declare.
12318 * objfiles.c (get_objfile_arch): Remove.
12319 (filter_overlapping_sections): Update.
12320 * minsyms.c (msymbol_is_function): Update.
12321 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12322 (output_nondebug_symbol): Update.
12323 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12324 (mdebug_expand_psymtab): Update.
12325 * machoread.c (macho_add_oso_symfile): Update.
12326 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12327 Update.
12328 * linux-fork.c (checkpoint_command): Update.
12329 * linespec.c (convert_linespec_to_sals): Update.
12330 * jit.c (finalize_symtab): Update.
12331 * infrun.c (insert_exception_resume_from_probe): Update.
12332 * ia64-tdep.c (ia64_find_unwind_table): Update.
12333 * hppa-tdep.c (internalize_unwinds): Update.
12334 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12335 Update.
12336 * gcore.c (call_target_sbrk): Update.
12337 * elfread.c (record_minimal_symbol, elf_symtab_read)
12338 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12339 (elf_gnu_ifunc_resolve_by_got): Update.
12340 * dwarf2/read.c (create_addrmap_from_index)
12341 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12342 (read_debug_names_from_section)
12343 (process_psymtab_comp_unit_reader, add_partial_symbol)
12344 (add_partial_subprogram, process_full_comp_unit)
12345 (read_file_scope, read_func_scope, read_lexical_block_scope)
12346 (read_call_site_scope, dwarf2_ranges_read)
12347 (dwarf2_record_block_ranges, dwarf2_add_field)
12348 (mark_common_block_symbol_computed, read_tag_pointer_type)
12349 (read_tag_string_type, dwarf2_init_float_type)
12350 (dwarf2_init_complex_target_type, read_base_type)
12351 (partial_die_info::read, partial_die_info::read)
12352 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12353 (dwarf2_fetch_die_loc_sect_off): Update.
12354 * dwarf2/loc.c (dwarf2_find_location_expression)
12355 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12356 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12357 (dwarf2_loc_desc_get_symbol_read_needs)
12358 (locexpr_describe_location_piece, locexpr_describe_location_1)
12359 (loclist_describe_location): Update.
12360 * dwarf2/index-write.c (write_debug_names): Update.
12361 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12362 * dtrace-probe.c (dtrace_process_dof): Update.
12363 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12364 (process_one_symbol): Update.
12365 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12366 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12367 (coff_read_enum_type): Update.
12368 * cli/cli-cmds.c (edit_command, list_command): Update.
12369 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12370 * breakpoint.c (create_overlay_event_breakpoint)
12371 (create_longjmp_master_breakpoint)
12372 (create_std_terminate_master_breakpoint)
12373 (create_exception_master_breakpoint, get_sal_arch): Update.
12374 * block.c (block_gdbarch): Update.
12375 * annotate.c (annotate_source_line): Update.
12376
0743fc83
TT
123772020-04-17 Tom Tromey <tromey@adacore.com>
12378
12379 * auto-load.c (show_auto_load_cmd): Remove.
12380 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12381 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12382 (maintenance_print_arc_command): Remove.
12383 * tui/tui-win.c (tui_command): Remove.
12384 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12385 * tui/tui-layout.c (tui_layout_command): Remove.
12386 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12387 * python/python.c (user_set_python, user_show_python): Remove.
12388 (_initialize_python): Use add_basic_prefix_cmd,
12389 add_show_prefix_cmd.
12390 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12391 (install_gdb_commands): Use add_basic_prefix_cmd,
12392 add_show_prefix_cmd.
12393 (info_guile_command): Remove.
12394 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12395 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12396 add_show_prefix_cmd.
12397 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12398 Remove do_set and do_show parameters.
12399 * cli/cli-style.c (set_style, show_style): Remove.
12400 (_initialize_cli_style): Use add_basic_prefix_cmd,
12401 add_show_prefix_cmd.
12402 (cli_style_option::add_setshow_commands): Remove do_set and
12403 do_show parameters.
12404 (cli_style_option::add_setshow_commands): Use
12405 add_basic_prefix_cmd, add_show_prefix_cmd.
12406 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12407 (set_style_name): Remove.
12408 * cli/cli-dump.c (dump_command, append_command): Remove.
12409 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12410 (tekhex_dump_command, binary_dump_command)
12411 (binary_append_command): Remove.
12412 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12413 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12414 (init_w32_command_list): Remove; move into ...
12415 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12416 * valprint.c (set_print, show_print, set_print_raw)
12417 (show_print_raw): Remove.
12418 (_initialize_valprint): Use add_basic_prefix_cmd,
12419 add_show_prefix_cmd.
12420 * typeprint.c (set_print_type, show_print_type): Remove.
12421 (_initialize_typeprint): Use add_basic_prefix_cmd,
12422 add_show_prefix_cmd.
12423 * record.c (set_record_command, show_record_command): Remove.
12424 (_initialize_record): Use add_basic_prefix_cmd,
12425 add_show_prefix_cmd.
12426 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12427 add_show_prefix_cmd.
12428 (info_command, show_command, set_debug, show_debug): Remove.
12429 * top.h (set_history, show_history): Don't declare.
12430 * top.c (set_history, show_history): Remove.
12431 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12432 (unset_tdesc_cmd): Remove.
12433 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12434 add_show_prefix_cmd.
12435 * symtab.c (info_module_command): Remove.
12436 (_initialize_symtab): Use add_basic_prefix_cmd.
12437 * symfile.c (overlay_command): Remove.
12438 (_initialize_symfile): Use add_basic_prefix_cmd.
12439 * sparc64-tdep.c (info_adi_command): Remove.
12440 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12441 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12442 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12443 add_show_prefix_cmd.
12444 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12445 (_initialize_serial): Use add_basic_prefix_cmd,
12446 add_show_prefix_cmd.
12447 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12448 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12449 add_show_prefix_cmd.
12450 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12451 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12452 add_show_prefix_cmd.
12453 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12454 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12455 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12456 add_show_prefix_cmd.
12457 * remote.c (remote_command, set_remote_cmd): Remove.
12458 (_initialize_remote): Use add_basic_prefix_cmd.
12459 * record-full.c (set_record_full_command)
12460 (show_record_full_command): Remove.
12461 (_initialize_record_full): Use add_basic_prefix_cmd,
12462 add_show_prefix_cmd.
12463 * record-btrace.c (cmd_set_record_btrace)
12464 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12465 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12466 (cmd_show_record_btrace_pt): Remove.
12467 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12468 add_show_prefix_cmd.
12469 * ravenscar-thread.c (set_ravenscar_command)
12470 (show_ravenscar_command): Remove.
12471 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12472 add_show_prefix_cmd.
12473 * mips-tdep.c (show_mips_command, set_mips_command)
12474 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12475 add_show_prefix_cmd.
12476 * maint.c (maintenance_command, maintenance_info_command)
12477 (maintenance_check_command, maintenance_print_command)
12478 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12479 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12480 add_show_prefix_cmd.
12481 (show_per_command_cmd): Remove.
12482 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12483 Remove.
12484 (maintenance_show_test_settings_cmd): Remove.
12485 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12486 add_show_prefix_cmd.
12487 * maint-test-options.c (maintenance_test_options_command):
12488 Remove.
12489 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12490 * macrocmd.c (macro_command): Remove
12491 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12492 * language.c (set_check, show_check): Remove.
12493 (_initialize_language): Use add_basic_prefix_cmd,
12494 add_show_prefix_cmd.
12495 * infcmd.c (unset_command): Remove.
12496 (_initialize_infcmd): Use add_basic_prefix_cmd.
12497 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12498 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12499 add_show_prefix_cmd.
12500 * go32-nat.c (go32_info_dos_command): Remove.
12501 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12502 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12503 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12504 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12505 (_initialize_frame): Use add_basic_prefix_cmd,
12506 add_show_prefix_cmd.
12507 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12508 (_initialize_dcache): Use add_basic_prefix_cmd,
12509 add_show_prefix_cmd.
12510 * cp-support.c (maint_cplus_command): Remove.
12511 (_initialize_cp_support): Use add_basic_prefix_cmd.
12512 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12513 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12514 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12515 add_basic_prefix_cmd, add_show_prefix_cmd.
12516 * breakpoint.c (save_command): Remove.
12517 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12518 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12519 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12520 add_show_prefix_cmd.
12521 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12522 (set_ada_command, show_ada_command): Remove.
12523 (_initialize_ada_language): Use add_basic_prefix_cmd,
12524 add_show_prefix_cmd.
12525 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12526
3557f442
KR
125272020-04-16 Kamil Rytarowski <n54@gmx.com>
12528
12529 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12530 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12531
16197208
SM
125322020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12533
12534 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12535 warning messages.
12536
00ac85d3
SM
125372020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12538
12539 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12540 import table is not at beginning of .idata section.
12541
381ce63f
PA
125422020-04-16 Pedro Alves <palves@redhat.com>
12543
12544 * inferior.c (delete_inferior): Use delete operator directly
12545 instead of delete_program_space.
12546 * progspace.c (add_program_space): New, factored out from
12547 program_space::program_space.
12548 (remove_program_space): New, factored out from
12549 delete_program_space.
12550 (program_space::program_space): Remove intro comment. Rewrite.
12551 (program_space::~program_space): Remove intro comment. Call
12552 remove_program_space.
12553 (delete_program_space): Delete.
12554 * progspace.h (program_space::program_space): Make explicit. Move
12555 intro comment here, adjusted.
12556 (program_space::~program_space): Move intro comment here,
12557 adjusted.
12558 (delete_program_space): Remove.
12559
a010605f
TT
125602020-04-16 Tom Tromey <tromey@adacore.com>
12561
12562 * windows-nat.c (windows_nat::handle_access_violation): New
12563 function.
12564 * nat/windows-nat.h (handle_access_violation): Declare.
12565 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12566 windows-nat.c. Call handle_access_violation.
12567
efba5c23
TV
125682020-04-16 Tom de Vries <tdevries@suse.de>
12569
12570 PR symtab/25791
12571 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12572 CUs without psymtab.
12573
97ed802d
KB
125742020-04-16 Kevin Buettner <kevinb@redhat.com>
12575
12576 * python/python.c (do_start_initialization): Don't call
12577 PyEval_InitThreads for Python 3.9 and beyond.
12578
c7d64809
KR
125792020-04-15 Kamil Rytarowski <n54@gmx.com>
12580
12581 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12582 thread functions.
12583 (obsd_nat_target::wait): Likewise.
12584
ce127a96
TT
125852020-04-15 Tom Tromey <tromey@adacore.com>
12586
12587 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12588 (DEBUG_EXCEPT): Use debug_printf.
12589
99f1bc6a
AB
125902020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12591
12592 * completer.c (class completion_tracker::completion_hash_entry)
12593 <hash_name>: New member function.
12594 (completion_tracker::discard_completions): New callback to hash a
12595 completion_hash_entry, pass this to htab_create_alloc.
12596
a0e9b532
JT
125972016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12598
12599 * windows-nat.c (windows_make_so): Warn rather than stopping with
12600 an error if realpath() fails.
12601
06ca5dd4
KR
126022020-04-14 Kamil Rytarowski <n54@gmx.com>
12603
12604 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12605 (nbsd_nat_target::info_proc): Add do_status.
12606
194d088f
TV
126072020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12608 Tom de Vries <tdevries@suse.de>
12609
12610 PR symtab/25718
12611 * psympriv.h (struct partial_symtab::read_symtab)
12612 (struct partial_symtab::expand_psymtab)
12613 (struct partial_symtab::read_dependencies): Update comments.
12614 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12615 read_symtab for includer.
12616 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12617 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12618 (struct dwarf2_include_psymtab::m_readin): Remove.
12619 (struct dwarf2_include_psymtab::includer): New member function.
12620 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12621
c1a66c06
TV
126222020-04-14 Tom de Vries <tdevries@suse.de>
12623
12624 PR symtab/25720
12625 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12626 with NULL symbol_matcher and lookup_name.
12627 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12628 and lookup_name.
12629 * dwarf2/read.c (dw2_expand_symtabs_matching)
12630 (dw2_debug_names_expand_symtabs_matching): Same.
12631 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12632 Make lookup_name a pointer. Update comment.
12633 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12634 lookup_name being a pointer.
12635 * symfile.c (expand_symtabs_matching): Same.
12636 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12637 * linespec.c (iterate_over_all_matching_symtabs): Same.
12638
400b5eca
TT
126392020-04-13 Tom Tromey <tom@tromey.com>
12640
12641 * run-on-main-thread.c: Update include.
12642 * unittests/main-thread-selftests.c: Update include.
12643 * tui/tui-win.c: Update include.
12644 * tui/tui-io.c: Update include.
12645 * tui/tui-interp.c: Update include.
12646 * tui/tui-hooks.c: Update include.
12647 * top.h: Update include.
12648 * top.c: Update include.
12649 * ser-base.c: Update include.
12650 * remote.c: Update include.
12651 * remote-notif.c: Update include.
12652 * remote-fileio.c: Update include.
12653 * record-full.c: Update include.
12654 * record-btrace.c: Update include.
12655 * python/python.c: Update include.
12656 * posix-hdep.c: Update include.
12657 * mingw-hdep.c: Update include.
12658 * mi/mi-main.c: Update include.
12659 * mi/mi-interp.c: Update include.
12660 * main.c: Update include.
12661 * linux-nat.c: Update include.
12662 * interps.c: Update include.
12663 * infrun.c: Update include.
12664 * inf-loop.c: Update include.
12665 * event-top.c: Update include.
12666 * event-loop.c: Move to ../gdbsupport/.
12667 * event-loop.h: Move to ../gdbsupport/.
12668 * async-event.h: Update include.
12669 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12670
93b54c8e
TT
126712020-04-13 Tom Tromey <tom@tromey.com>
12672
12673 * tui/tui-win.c: Include async-event.h.
12674 * remote.c: Include async-event.h.
12675 * remote-notif.c: Include async-event.h.
12676 * record-full.c: Include async-event.h.
12677 * record-btrace.c: Include async-event.h.
12678 * infrun.c: Include async-event.h.
12679 * event-top.c: Include async-event.h.
12680 * event-loop.h: Move some declarations to async-event.h.
12681 * event-loop.c: Don't include ser-event.h or top.h. Move some
12682 code to async-event.c.
12683 * async-event.h: New file.
12684 * async-event.c: New file.
12685 * Makefile.in (COMMON_SFILES): Add async-event.c.
12686 (HFILES_NO_SRCDIR): Add async-event.h.
12687
c1cd3163
TT
126882020-04-13 Tom Tromey <tom@tromey.com>
12689
12690 * utils.c (flush_streams): New function.
12691 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12692
29f2bf4f
TT
126932020-04-13 Tom Tromey <tom@tromey.com>
12694
12695 * event-loop.c (handle_file_event): Use warning, not
12696 printf_unfiltered.
12697
98029d02
TT
126982020-04-13 Tom Tromey <tom@tromey.com>
12699
12700 * event-loop.c: Include <chrono>.
12701
06cc9596
TT
127022020-04-13 Tom Tromey <tom@tromey.com>
12703
12704 * gdb_select.h: Move to ../gdbsupport/.
12705 * event-loop.c: Update include path.
12706 * top.c: Update include path.
12707 * ser-base.c: Update include path.
12708 * ui-file.c: Update include path.
12709 * ser-tcp.c: Update include path.
12710 * guile/scm-ports.c: Update include path.
12711 * posix-hdep.c: Update include path.
12712 * ser-unix.c: Update include path.
12713 * gdb_usleep.c: Update include path.
12714 * mingw-hdep.c: Update include path.
12715 * inflow.c: Update include path.
12716 * infrun.c: Update include path.
12717 * event-top.c: Update include path.
12718
8ae8e197
TT
127192020-04-13 Tom Tromey <tom@tromey.com>
12720
12721 * configure: Rebuild.
12722 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12723
58cf28e8
TT
127242020-04-13 Tom Tromey <tom@tromey.com>
12725
12726 * event-loop.h (start_event_loop): Don't declare.
12727 * event-loop.c (start_event_loop): Move...
12728 * main.c (start_event_loop): ...here. Now static.
12729
b7f999ae
SDJ
127302020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12731
12732 * MAINTAINERS: Update my email address.
12733
1085dfd4
KR
127342020-04-12 Kamil Rytarowski <n54@gmx.com>
12735
12736 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12737 IP_ALL.
12738
49d1d1f5
KR
127392020-04-12 Kamil Rytarowski <n54@gmx.com>
12740
12741 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12742 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12743
b4848d2a
KR
127442020-04-12 Kamil Rytarowski <n54@gmx.com>
12745
12746 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12747 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12748
51c133d5
KR
127492020-04-12 Kamil Rytarowski <n54@gmx.com>
12750
12751 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12752
54b8cbd0
KR
127532020-04-11 Kamil Rytarowski <n54@gmx.com>
12754
12755 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12756 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12757 (nbsd_nat_target::info_proc): New functions.
12758 * nbsd-nat.c (kinfo_get_vmmap): New function.
12759 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12760 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12761 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12762 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12763 functions.
12764 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12765 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12766 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12767 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12768 (KINFO_VME_FLAG_GROWS_DOWN): New.
12769
cf83625d
AS
127702020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12771
12772 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12773 bit shift.
12774
0c4311ab
TT
127752020-04-10 Tom Tromey <tromey@adacore.com>
12776
12777 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12778
3e65b3e9
TT
127792020-04-10 Tom Tromey <tromey@adacore.com>
12780
12781 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12782 separate debug files.
12783
13302e95
HD
127842020-04-10 Hannes Domani <ssbssa@yahoo.de>
12785
12786 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12787 Move to...
12788 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12789 ... here.
12790 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12791 Check for STATUS_WX86_BREAKPOINT.
12792 (windows_nat_target::wait): Same.
12793
bdfc1e8a
TV
127942020-04-10 Tom de Vries <tdevries@suse.de>
12795
12796 PR cli/25808
12797 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12798
f4460aec
SM
127992020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12800
12801 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12802 (Write After Approval): Remove Tom de Vries.
12803
a25198bb
BE
128042020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12805
12806 revert partially:
12807 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12808
aac66a4c
SM
12809 * buildsym.c (record_line): Fix undefined behavior and preserve
12810 lines at eof.
a25198bb 12811
206c98a6
KR
128122020-04-09 Kamil Rytarowski <n54@gmx.com>
12813
12814 * auxv.h (svr4_auxv_parse): New.
12815 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12816 and generic_auxv_parse.
12817 (svr4_auxv_parse): Add.
12818 * obsd-tdep.c: Include "auxv.h".
12819 (obsd_auxv_parse): Remove.
12820 (obsd_init_abi): Remove comment.
12821 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12822 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12823 * nbsd-tdep.c: Include "auxv.h".
12824 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12825
71fbdbaf
TT
128262020-04-08 Tom Tromey <tromey@adacore.com>
12827
12828 * nat/windows-nat.h (last_wait_event): Don't declare.
12829 (wait_for_debug_event): Update comment.
12830 * nat/windows-nat.c (last_wait_event): Now static.
12831
2c1d95e8
TT
128322020-04-08 Tom Tromey <tromey@adacore.com>
12833
12834 * windows-nat.c (wait_for_debug_event): Move to
12835 nat/windows-nat.c.
12836 * nat/windows-nat.h (wait_for_debug_event): Declare.
12837 * nat/windows-nat.c (wait_for_debug_event): Move from
12838 windows-nat.c. No longer static.
12839
d2977bc4
TT
128402020-04-08 Tom Tromey <tromey@adacore.com>
12841
12842 * windows-nat.c (get_windows_debug_event): Use
12843 fetch_pending_stop.
12844 * nat/windows-nat.h (fetch_pending_stop): Declare.
12845 * nat/windows-nat.c (fetch_pending_stop): New function.
12846
e758e19c
TT
128472020-04-08 Tom Tromey <tromey@adacore.com>
12848
12849 * windows-nat.c (windows_continue): Use matching_pending_stop and
12850 continue_last_debug_event.
12851 * nat/windows-nat.h (matching_pending_stop)
12852 (continue_last_debug_event): Declare.
12853 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12854 (matching_pending_stop, continue_last_debug_event): New
12855 functions.
12856
8d30e395
TT
128572020-04-08 Tom Tromey <tromey@adacore.com>
12858
12859 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12860 (handle_exception_result): Move to nat/windows-nat.h.
12861 (DEBUG_EXCEPTION_SIMPLE): Remove.
12862 (windows_nat::handle_ms_vc_exception): New function.
12863 (handle_exception): Move to nat/windows-nat.c.
12864 (get_windows_debug_event): Update.
12865 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12866 nat/windows-nat.c.
12867 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12868 (handle_exception_result): Move from windows-nat.c.
12869 (handle_exception): Declare.
12870 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12871 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12872 windows-nat.c.
12873
29de418d
TT
128742020-04-08 Tom Tromey <tromey@adacore.com>
12875
12876 * windows-nat.c (exception_count, event_count): Remove.
12877 (handle_exception, get_windows_debug_event)
12878 (do_initial_windows_stuff): Update.
12879
a816ba18
TT
128802020-04-08 Tom Tromey <tromey@adacore.com>
12881
12882 * windows-nat.c (windows_nat::handle_load_dll)
12883 (windows_nat::handle_unload_dll): Rename. No longer static.
12884 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12885 Declare.
12886
a00caa12
TT
128872020-04-08 Tom Tromey <tromey@adacore.com>
12888
12889 * complaints.h (stop_whining): Declare at top-level.
12890 (complaint): Don't declare stop_whining.
12891
d41b524f
TT
128922020-04-08 Tom Tromey <tromey@adacore.com>
12893
12894 * windows-nat.c (windows_nat::handle_output_debug_string):
12895 Rename. No longer static.
12896 * nat/windows-nat.h (handle_output_debug_string): Declare.
12897
3c76026d
TT
128982020-04-08 Tom Tromey <tromey@adacore.com>
12899
12900 * windows-nat.c (current_process_handle, current_process_id)
12901 (main_thread_id, last_sig, current_event, last_wait_event)
12902 (current_windows_thread, desired_stop_thread_id, pending_stops)
12903 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12904 (display_selectors, fake_create_process)
12905 (get_windows_debug_event): Update.
12906 * nat/windows-nat.h (current_process_handle, current_process_id)
12907 (main_thread_id, last_sig, current_event, last_wait_event)
12908 (current_windows_thread, desired_stop_thread_id, pending_stops)
12909 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12910 * nat/windows-nat.c (current_process_handle, current_process_id)
12911 (main_thread_id, last_sig, current_event, last_wait_event)
12912 (current_windows_thread, desired_stop_thread_id, pending_stops)
12913 (siginfo_er): New globals. Move from windows-nat.c.
12914
9d8679cc
TT
129152020-04-08 Tom Tromey <tromey@adacore.com>
12916
12917 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12918 (handle_load_dll): Update.
12919 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12920
28688adf
TT
129212020-04-08 Tom Tromey <tromey@adacore.com>
12922
12923 * windows-nat.c (enum thread_disposition_type): Move to
12924 nat/windows-nat.h.
12925 (windows_nat::thread_rec): Rename from thread_rec. No longer
12926 static.
12927 (windows_add_thread, windows_nat_target::fetch_registers)
12928 (windows_nat_target::store_registers, handle_exception)
12929 (windows_nat_target::resume, get_windows_debug_event)
12930 (windows_nat_target::get_tib_address)
12931 (windows_nat_target::thread_name)
12932 (windows_nat_target::thread_alive): Update.
12933 * nat/windows-nat.h (enum thread_disposition_type): Move from
12934 windows-nat.c.
12935 (thread_rec): Declare.
12936
4834dad0
TT
129372020-04-08 Tom Tromey <tromey@adacore.com>
12938
12939 * windows-nat.c: Add "using namespace".
12940 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12941 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12942
65bafd5b
TT
129432020-04-08 Tom Tromey <tromey@adacore.com>
12944
12945 * nat/windows-nat.h (struct windows_thread_info): Declare
12946 destructor.
12947 * nat/windows-nat.c (~windows_thread_info): New.
12948
0a4afda3
TT
129492020-04-08 Tom Tromey <tromey@adacore.com>
12950
12951 PR gdb/22992
12952 * windows-nat.c (current_event): Update comment.
12953 (last_wait_event, desired_stop_thread_id): New globals.
12954 (struct pending_stop): New.
12955 (pending_stops): New global.
12956 (windows_nat_target) <stopped_by_sw_breakpoint>
12957 <supports_stopped_by_sw_breakpoint>: New methods.
12958 (windows_fetch_one_register): Add assertions. Adjust PC.
12959 (windows_continue): Handle pending stops. Suspend other threads
12960 when stepping. Use last_wait_event
12961 (wait_for_debug_event): New function.
12962 (get_windows_debug_event): Use wait_for_debug_event. Handle
12963 pending stops. Queue spurious stops.
12964 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
12965 (windows_nat_target::kill): Use wait_for_debug_event.
12966 * nat/windows-nat.h (struct windows_thread_info)
12967 <stopped_at_software_breakpoint>: New field.
12968 * nat/windows-nat.c (windows_thread_info::resume): Clear
12969 stopped_at_software_breakpoint.
12970
8e61ebec
TT
129712020-04-08 Tom Tromey <tromey@adacore.com>
12972
12973 * windows-nat.c (enum thread_disposition_type): New.
12974 (thread_rec): Replace "get_context" parameter with "disposition";
12975 change type.
12976 (windows_add_thread, windows_nat_target::fetch_registers)
12977 (windows_nat_target::store_registers, handle_exception)
12978 (windows_nat_target::resume, get_windows_debug_event)
12979 (windows_nat_target::get_tib_address)
12980 (windows_nat_target::thread_name)
12981 (windows_nat_target::thread_alive): Update.
12982
98a03287
TT
129832020-04-08 Tom Tromey <tromey@adacore.com>
12984
12985 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
12986 (windows_continue): Use windows_continue::resume.
12987 * nat/windows-nat.h (struct windows_thread_info) <suspend,
12988 resume>: Declare new methods.
12989 * nat/windows-nat.c: New file.
12990 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
12991
7c7411bc
TT
129922020-04-08 Tom Tromey <tromey@adacore.com>
12993
12994 * windows-nat.c (windows_add_thread, windows_delete_thread)
12995 (windows_nat_target::fetch_registers)
12996 (windows_nat_target::store_registers, fake_create_process)
12997 (windows_nat_target::resume, windows_nat_target::resume)
12998 (get_windows_debug_event, windows_nat_target::wait)
12999 (windows_nat_target::pid_to_str)
13000 (windows_nat_target::get_tib_address)
13001 (windows_nat_target::get_ada_task_ptid)
13002 (windows_nat_target::thread_name)
13003 (windows_nat_target::thread_alive): Use lwp, not tid.
13004
2950fdf7
TT
130052020-04-08 Tom Tromey <tromey@adacore.com>
13006
13007 * windows-nat.c (handle_exception)
13008 (windows_nat_target::thread_name): Update.
13009 * nat/windows-nat.h (windows_thread_info): Remove destructor.
13010 <name>: Now unique_xmalloc_ptr.
13011
62fe396b
TT
130122020-04-08 Tom Tromey <tromey@adacore.com>
13013
13014 * windows-nat.c (thread_rec)
13015 (windows_nat_target::fetch_registers): Update.
13016 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
13017 Update comment.
13018 <debug_registers_changed, reload_context>: Now bool.
13019
e9534bd2
TT
130202020-04-08 Tom Tromey <tromey@adacore.com>
13021
13022 * windows-nat.c (windows_add_thread): Use new.
13023 (windows_init_thread_list, windows_delete_thread): Use delete.
13024 (get_windows_debug_event): Update.
13025 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
13026 destructor, and initializers.
13027
ae1f8880
TT
130282020-04-08 Tom Tromey <tromey@adacore.com>
13029
13030 * windows-nat.c (struct windows_thread_info): Remove.
13031 * nat/windows-nat.h: New file.
13032
55a1e039
TT
130332020-04-08 Tom Tromey <tromey@adacore.com>
13034
13035 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
13036 (thread_rec, windows_add_thread, windows_delete_thread)
13037 (windows_continue): Update.
13038
93366324
TT
130392020-04-08 Tom Tromey <tromey@adacore.com>
13040
13041 * windows-nat.c (struct windows_thread_info): Remove typedef.
13042 (thread_head): Remove.
13043 (thread_list): New global.
13044 (thread_rec, windows_add_thread, windows_init_thread_list)
13045 (windows_delete_thread, windows_continue): Update.
13046
0f2265e2
SM
130472020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
13048
13049 * windows-tdep.h (windows_init_abi): Add comment.
13050 (cygwin_init_abi): New declaration.
13051 * windows-tdep.c: Split signal enumeration in two, one for
13052 Windows and one for Cygwin.
13053 (windows_gdb_signal_to_target): Only deal with signal of the
13054 Windows OS ABI.
13055 (cygwin_gdb_signal_to_target): New function.
13056 (windows_init_abi): Rename to windows_init_abi_common, don't set
13057 gdb_signal_to_target gdbarch method. Add new new function with
13058 this name.
13059 (cygwin_init_abi): New function.
13060 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
13061 comment. Don't call windows_init_abi.
13062 (amd64_windows_init_abi): Add comment, call windows_init_abi.
13063 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
13064 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
13065 i386_windows_init_abi_common, don't call windows_init_abi. Add
13066 a new function of this name.
13067 (i386_cygwin_init_abi): New function.
13068 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
13069 OS ABI Cygwin.
13070
3810f182
SM
130712020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
13072
13073 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
13074 parameter.c.
13075 (dwarf2_read_gdb_index): Update.
13076
063f8e80
KR
130772020-04-07 Kamil Rytarowski <n54@gmx.com>
13078
13079 * nbsd-tdep.c: Include "objfiles.h".
13080 (nbsd_skip_solib_resolver): New.
13081 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
13082
85a9510c 130832020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13084
13085 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
13086 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
13087 with DW_LLE_base_addressx are being emitted in DWARFv5.
13088 Add the newly added kind DW_LOC_OFFSET_PAIR also.
13089 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
13090 unsigned integer.
13091
9fc3eaae 130922020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13093
13094 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
13095 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
13096 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
13097 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
13098 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
13099 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
13100 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
13101
13102
41144253 131032020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13104
13105 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
13106 (read_loclist_index): New function definition.
13107 (lookup_loclist_base): New function definition.
13108 (read_loclist_header): New function definition.
13109 (dwarf2_cu): Add loclist_base and loclist_header field.
13110 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
13111 (read_full_die_1): Read the value of DW_AT_loclists_base.
13112 (read_attribute_reprocess): Handle DW_FORM_loclistx.
13113 (read_attribute_value): Handle DW_FORM_loclistx.
13114 (skip_one_die): Handle DW_FORM_loclistx.
13115 (loclist_header): New structure declaration.
13116 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
13117
9f4e76a4
SM
131182020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13119
13120 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
13121 constructor. Remove `addr` parameter from other constructor and
13122 add `per_cu` parameter.
13123 * dwarf2/read.c (create_partial_symtab): Update.
13124
25c11aca
TV
131252020-04-07 Tom de Vries <tdevries@suse.de>
13126
13127 PR symtab/25796
13128 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
13129 (partial_die_info::fixup): Inherit has_const_value.
13130
5707e24b
TV
131312020-04-07 Tom de Vries <tdevries@suse.de>
13132
13133 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13134 symbols without address.
13135
05f00e22
KR
131362020-04-06 Kamil Rytarowski <n54@gmx.com>
13137
13138 * nbsd-nat.h (struct thread_info): Add forward declaration.
13139 (nbsd_nat_target::thread_alive): Add.
13140 (nbsd_nat_target::thread_name): Likewise.
13141 (nbsd_nat_target::update_thread_list): Likewise.
13142 (update_thread_list::post_attach): Likewise.
13143 (post_attach::pid_to_str): Likewise.
13144 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13145 (nbsd_thread_lister): Add.
13146 (nbsd_nat_target::thread_alive): Likewise.
13147 (nbsd_nat_target::thread_name): Likewise.
13148 (nbsd_add_threads): Likewise.
13149 (update_thread_list::post_attach): Likewise.
13150 (nbsd_nat_target::update_thread_list): Likewise.
13151 (post_attach::pid_to_str): Likewise.
13152
6ee448cc
TT
131532020-04-06 Tom Tromey <tromey@adacore.com>
13154
13155 * ada-valprint.c (print_variant_part): Extract the variant field.
13156 (print_field_values): Use the field as the outer value when
13157 recursing.
13158
dea34e8c
TT
131592020-04-06 Tom Tromey <tromey@adacore.com>
13160
13161 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13162 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13163 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13164 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13165 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13166
93689ce9
TT
131672020-04-06 Tom Tromey <tromey@adacore.com>
13168
13169 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13170 TYPE_CODE_ERROR.
13171
79743962
KR
131722020-04-06 Kamil Rytarowski <n54@gmx.com>
13173
13174 * nbsd-tdep.c: Include "gdbarch.h".
13175 Define enum with NetBSD signal numbers.
13176 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13177 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13178 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13179 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13180 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13181 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13182 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13183 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13184 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13185 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13186 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13187 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13188
9e7c9a03
HD
131892020-04-03 Hannes Domani <ssbssa@yahoo.de>
13190
13191 PR gdb/25325
13192 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13193
d9e49b61
TT
131942020-04-03 Tom Tromey <tromey@adacore.com>
13195
13196 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13197 Read constant block.
13198
e0fc5c3f
SM
131992020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13200
13201 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13202 (gdb_bfd_get_full_section_contents): New declaration.
13203 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13204 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13205 gdb_bfd_get_full_section_contents.
13206
e2ff18a0
SM
132072020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13208
13209 * exec.c (build_section_table): Replace internal_error with
13210 gdb_assert.
13211 (section_table_xfer_memory_partial): Likewise.
13212 * mdebugread.c (parse_partial_symbols): Likewise.
13213 * psymtab.c (lookup_partial_symbol): Likewise.
13214 * utils.c (wrap_here): Likewise.
13215
0830d301
TT
132162020-04-02 Tom Tromey <tromey@adacore.com>
13217
13218 * f-lang.c (build_fortran_types): Use arch_type to initialize
13219 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13220
e7da7f8f
TT
132212020-04-02 Tom Tromey <tromey@adacore.com>
13222
13223 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13224 of attributes.
13225
c90d28ac
AB
132262020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13227 Bernd Edlinger <bernd.edlinger@hotmail.de>
13228 Tom Tromey <tromey@adacore.com>
13229
13230 * buildsym.c (buildsym_compunit::record_line): Remove
13231 deduplication code.
13232
1aa98955
TV
132332020-04-02 Tom de Vries <tdevries@suse.de>
13234
13235 PR ada/24671
13236 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13237
d3214198
TV
132382020-04-02 Tom de Vries <tdevries@suse.de>
13239
13240 * dwarf2/read.c (dwarf2_gdb_index_functions,
13241 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13242 NULL.
13243 * psymtab.c (psym_lookup_global_symbol_language): New function.
13244 (psym_functions): Init psym_lookup_global_symbol_language with
13245 psym_lookup_global_symbol_language.
13246 * symfile-debug.c (debug_sym_quick_functions): Init
13247 lookup_global_symbol_language with NULL.
13248 * symfile.c (set_initial_language): Remove fixme comment.
13249 * symfile.h (struct quick_symbol_functions): Add
13250 lookup_global_symbol_language.
13251 * symtab.c (find_quick_global_symbol_language): New function.
13252 (find_main_name): Use find_quick_global_symbol_language.
13253
2836752f
SM
132542020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13255
13256 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13257
64dc2d4b
BE
132582020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13259
13260 * buildsym.c (record_line): Fix undefined behavior and preserve
13261 lines at eof.
13262
bbe3dc41
BE
132632020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13264
13265 * buildsym.c (record_line): Fix the resizing condition.
13266
6b4a335b
TT
132672020-04-01 Tom Tromey <tom@tromey.com>
13268
13269 * value.h (value_literal_complex): Add comment.
13270 * valops.c (value_literal_complex): Refer to value.h.
13271
3638a098
TT
132722020-04-01 Tom Tromey <tom@tromey.com>
13273
13274 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13275 (scalar_type): New rule, from typebase.
13276 (typebase): Use scalar_type. Recognize complex types.
13277 (field_name): Handle FLOAT_KEYWORD.
13278 (ident_tokens): Add _Complex and __complex__.
13279
c34e8714
TT
132802020-04-01 Tom Tromey <tom@tromey.com>
13281
13282 PR exp/25299:
13283 * valarith.c (promotion_type, complex_binop): New functions.
13284 (scalar_binop): Handle complex numbers. Use promotion_type.
13285 (value_pos, value_neg, value_complement): Handle complex numbers.
13286
fa649bb7
TT
132872020-04-01 Tom Tromey <tom@tromey.com>
13288
13289 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13290 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13291 (parse_number): Handle complex numbers.
13292
981c08ce
TT
132932020-04-01 Tom Tromey <tom@tromey.com>
13294
13295 * c-valprint.c (c_decorations): Change complex suffix to "i".
13296
4c99290d
TT
132972020-04-01 Tom Tromey <tom@tromey.com>
13298
13299 * valprint.c (generic_value_print_complex): Use accessors.
13300 * value.h (value_real_part, value_imaginary_part): Declare.
13301 * valops.c (value_real_part, value_imaginary_part): New
13302 functions.
13303 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13304
5b930b45
TT
133052020-04-01 Tom Tromey <tom@tromey.com>
13306
13307 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13308 (read_range_type): Update.
13309 * mdebugread.c (basic_type): Update.
13310 * go-lang.c (build_go_types): Use init_complex_type.
13311 * gdbtypes.h (struct main_type) <complex_type>: New member.
13312 (init_complex_type): Update.
13313 (arch_complex_type): Don't declare.
13314 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13315 Make name if none given. Use alloc_type_copy. Look for cached
13316 complex type.
13317 (arch_complex_type): Remove.
13318 (gdbtypes_post_init): Use init_complex_type.
13319 * f-lang.c (build_fortran_types): Use init_complex_type.
13320 * dwarf2/read.c (read_base_type): Update.
13321 * d-lang.c (build_d_types): Use init_complex_type.
13322 * ctfread.c (read_base_type): Update.
13323
53cccef1
TBA
133242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13325
13326 * infrun.c (stop_all_threads): Update assertion, plus when
13327 stopping threads, take into account that we might be trying
13328 to stop an all-stop target.
13329 (stop_waiting): Call 'stop_all_threads' if there exists a
13330 non-stop target.
13331
a0714d30
TBA
133322020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13333
13334 * target.h (exists_non_stop_target): New function declaration.
13335 * target.c (exists_non_stop_target): New function.
13336
60e22c1e
HD
133372020-04-01 Hannes Domani <ssbssa@yahoo.de>
13338
13339 PR gdb/24789
13340 * eval.c (is_integral_or_integral_reference): New function.
13341 (evaluate_subexp_standard): Allow integer references in
13342 pointer arithmetic.
13343
e139a727
TBA
133442020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13345
13346 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13347 check for no ptid in the stop reply when the target is non-stop.
13348
e0802d59
TT
133492020-04-01 Tom Tromey <tromey@adacore.com>
13350
13351 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13352 "name" parameter to rvalue reference. Initialize m_name_holder.
13353 <lookup_name_info>: New overloads.
13354 <name>: Return gdb::string_view.
13355 <c_str>: New method.
13356 <make_ignore_params>: Update.
13357 <search_name_hash>: Update.
13358 <language_lookup_name>: Return const char *.
13359 <m_name>: Change type.
13360 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13361 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13362 (lookup_name_info::match_any): Update.
13363 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13364 Update.
13365 * minsyms.c (linkage_name_str): Update.
13366 * language.c (default_symbol_name_matcher): Update.
13367 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13368 Update.
13369 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13370 (ada_lookup_name_info::ada_lookup_name_info): Update.
13371 (literal_symbol_name_matcher): Update.
13372
8c072cb6
TT
133732020-04-01 Tom Tromey <tromey@adacore.com>
13374
13375 * psymtab.c (psymtab_search_name): Remove function.
13376 (psym_lookup_symbol): Create search name and lookup name here.
13377 (lookup_partial_symbol): Remove "name" parameter; add
13378 lookup_name.
13379 (psym_expand_symtabs_for_function): Update.
13380
6f29a534
TT
133812020-03-31 Joel Jones <joelkevinjones@gmail.com>
13382
13383 PR tui/25597:
13384 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13385
af62665e
TT
133862020-03-31 Tom Tromey <tromey@adacore.com>
13387
13388 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13389 memcpy.
13390
d1a89da5
NC
133912020-03-30 Nelson Chu <nelson.chu@sifive.com>
13392
13393 * features/riscv/32bit-csr.xml: Regenerated.
13394 * features/riscv/64bit-csr.xml: Regenerated.
13395
d8af9068
TT
133962020-03-30 Tom Tromey <tromey@adacore.com>
13397
13398 * ada-valprint.c (print_variant_part): Update.
13399 * ada-lang.h (ada_which_variant_applies): Update.
13400 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13401 outer_valaddr parameters; replace with "outer" value parameter.
13402 (to_fixed_variant_branch_type): Update.
13403
227c0bf4
PFC
134042020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13405
13406 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13407 <list>. Remove inclusion of observable.h.
13408 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13409 (struct arch_lwp_info): New struct.
13410 (class ppc_linux_dreg_interface): New class.
13411 (struct ppc_linux_process_info): New struct.
13412 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13413 <low_new_clone, low_forget_process, low_prepare_to_resume>
13414 <copy_thread_dreg_state, mark_thread_stale>
13415 <mark_debug_registers_changed, register_hw_breakpoint>
13416 <clear_hw_breakpoint, register_wp, clear_wp>
13417 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13418 <num_memory_accesses, get_trigger_type>
13419 <create_watchpoint_request, hwdebug_point_cmp>
13420 <init_arch_lwp_info, get_arch_lwp_info>
13421 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13422 methods.
13423 <struct ptid_hash>: New inner struct.
13424 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13425 members.
13426 (saved_dabr_value, hwdebug_info, max_slots_number)
13427 (struct hw_break_tuple, struct thread_points, ppc_threads)
13428 (have_ptrace_hwdebug_interface)
13429 (hwdebug_find_thread_points_by_tid)
13430 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13431 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13432 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13433 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13434 use m_dreg_interface.
13435 (hwdebug_point_cmp): Change to...
13436 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13437 reference arguments instead of pointers.
13438 (ppc_linux_nat_target::ranged_break_num_registers): Use
13439 m_dreg_interface.
13440 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13441 m_dreg_interface. Call register_hw_breakpoint.
13442 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13443 m_dreg_interface. Call clear_hw_breakpoint.
13444 (get_trigger_type): Change to...
13445 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13446 comment.
13447 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13448 use m_dreg_interface. Call register_hw_breakpoint.
13449 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13450 use m_dreg_interface. Call clear_hw_breakpoint.
13451 (can_use_watchpoint_cond_accel): Change to...
13452 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13453 method. Update comment, use m_dreg_interface and
13454 m_process_info.
13455 (calculate_dvc): Change to...
13456 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13457 m_dreg_interface.
13458 (num_memory_accesses): Change to...
13459 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13460 (check_condition): Change to...
13461 (ppc_linux_nat_target::check_condition): ...this method.
13462 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13463 comment, use m_dreg_interface.
13464 (create_watchpoint_request): Change to...
13465 (ppc_linux_nat_target::create_watchpoint_request): ...this
13466 method. Use m_dreg_interface.
13467 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13468 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13469 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13470 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13471 (ppc_linux_nat_target::low_forget_process)
13472 (ppc_linux_nat_target::low_new_fork)
13473 (ppc_linux_nat_target::low_new_clone)
13474 (ppc_linux_nat_target::low_delete_thread)
13475 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13476 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13477 only call mark_thread_stale.
13478 (ppc_linux_thread_exit): Remove.
13479 (ppc_linux_nat_target::stopped_data_address): Change to...
13480 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13481 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13482 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13483 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13484 comment. Call low_stopped_data_address.
13485 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13486 m_dreg_interface.
13487 (ppc_linux_nat_target::masked_watch_num_registers): Use
13488 m_dreg_interface.
13489 (ppc_linux_nat_target::copy_thread_dreg_state)
13490 (ppc_linux_nat_target::mark_thread_stale)
13491 (ppc_linux_nat_target::mark_debug_registers_changed)
13492 (ppc_linux_nat_target::register_hw_breakpoint)
13493 (ppc_linux_nat_target::clear_hw_breakpoint)
13494 (ppc_linux_nat_target::register_wp)
13495 (ppc_linux_nat_target::clear_wp)
13496 (ppc_linux_nat_target::init_arch_lwp_info)
13497 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13498 (_initialize_ppc_linux_nat): Remove observer callback.
13499
4db10d8f
PFC
135002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13501
13502 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13503 (ppc_linux_nat_target::auxv_parse)
13504 (ppc_linux_nat_target::read_description)
13505 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13506 Move up.
13507
1310c1b0
PFC
135082020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13509
13510 * linux-nat.h (low_new_clone): New method.
13511 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13512
69b037c3
SM
135132020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13514
13515 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13516 (dbx_expand_psymtab): ... this.
13517 (start_psymtab): Update.
13518 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13519 (mdebug_expand_psymtab): ... this.
13520 (parse_partial_symbols): Update.
13521 (new_psymtab): Update.
13522 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13523 (xcoff_expand_psymtab): ... this.
13524 (xcoff_start_psymtab): Update.
13525
48993951
SM
135262020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13527
13528 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13529 <expand_dependencies>: ... this.
13530 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13531 (partial_symtab::expand_dependencies): ... this.
13532 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13533 Update.
13534 (dwarf2_psymtab::expand_psymtab): Update.
13535 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13536 * mdebugread.c (psymtab_to_symtab_1): Update.
13537 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13538
3ad83046
SM
135392020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13540
13541 * psympriv.h (discard_psymtab): Remove.
13542 * dbxread.c (dbx_end_psymtab): Update.
13543 * xcoffread.c (xcoff_end_psymtab): Update.
13544
4d1b9ab6
TT
135452020-03-28 Tom Tromey <tom@tromey.com>
13546
13547 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13548 comment.
13549
f1749218
TT
135502020-03-28 Tom Tromey <tom@tromey.com>
13551
13552 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13553
ebea7626
HD
135542020-03-27 Hannes Domani <ssbssa@yahoo.de>
13555
13556 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13557
a879b4d5
JB
135582020-03-26 John Baldwin <jhb@FreeBSD.org>
13559
13560 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13561
0826b30a
TT
135622020-03-26 Tom Tromey <tom@tromey.com>
13563
13564 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13565 (mark_common_block_symbol_computed, read_tag_string_type)
13566 (attr_to_dynamic_prop, read_subrange_type): Update.
13567 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13568 to be methods on struct attribute.
13569 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13570 (read_call_site_scope, partial_die_info::read)
13571 (partial_die_info::read, lookup_die_type, follow_die_ref):
13572 Update.
13573 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13574 from dwarf2_get_ref_die_offset.
13575 (attribute::constant_value): New method, from
13576 dwarf2_get_attr_constant_value.
13577 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13578 Declare method.
13579 <constant_value>: New method.
13580
2b2558bf
TT
135812020-03-26 Tom Tromey <tom@tromey.com>
13582
13583 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13584 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13585 (dwarf_type_encoding_name): Move to stringify.c.
13586 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13587 * dwarf2/stringify.c: New file.
13588 * dwarf2/stringify.h: New file.
13589
eeb64781
TT
135902020-03-26 Tom Tromey <tom@tromey.com>
13591
13592 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13593 Rewrite.
13594
a39fdb41
TT
135952020-03-26 Tom Tromey <tom@tromey.com>
13596
13597 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13598 methods.
13599 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13600 (lookup_ranges_base): Likewise.
13601 (read_cutu_die_from_dwo, read_full_die_1): Update.
13602
436c571c
TT
136032020-03-26 Tom Tromey <tom@tromey.com>
13604
13605 * dwarf2/read.c (read_import_statement, read_file_scope)
13606 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13607 (read_lexical_block_scope, read_call_site_scope)
13608 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13609 (handle_struct_member_die, process_structure_scope)
13610 (update_enumeration_type_from_children)
13611 (process_enumeration_scope, read_array_type, read_common_block)
13612 (read_namespace, read_module, read_subroutine_type): Update.
13613 (sibling_die): Remove.
13614
052c8bb8
TT
136152020-03-26 Tom Tromey <tom@tromey.com>
13616
13617 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13618 (build_type_psymtabs_reader, read_structure_type)
13619 (read_enumeration_type, read_full_die_1): Update.
13620 (dwarf2_attr_no_follow): Move to die.h.
13621 * dwarf2/die.h (struct die_info) <attr>: New method.
13622
2b24b6e4
TT
136232020-03-26 Tom Tromey <tom@tromey.com>
13624
13625 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13626 <base_address>: Now an optional.
13627 (dwarf2_find_base_address, dwarf2_rnglists_process)
13628 (dwarf2_ranges_process, fill_in_loclist_baton)
13629 (dwarf2_symbol_mark_computed): Update.
13630
c2d50fd0
TT
136312020-03-26 Tom Tromey <tom@tromey.com>
13632
13633 * dwarf2/read.c (struct die_info): Move to die.h.
13634 * dwarf2/die.h: New file.
13635
0df7ad3a
TT
136362020-03-26 Tom Tromey <tom@tromey.com>
13637
13638 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13639 * dwarf2/read.c
13640 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13641 Move to line-header.c.
13642 (read_checked_initial_length_and_offset, read_formatted_entries):
13643 Likewise.
13644 (dwarf_decode_line_header): Split into two.
13645 * dwarf2/line-header.c
13646 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13647 Move from read.c.
13648 (read_checked_initial_length_and_offset, read_formatted_entries):
13649 Likewise.
13650 (dwarf_decode_line_header): New function, split from read.c.
13651
86c0bb4c
TT
136522020-03-26 Tom Tromey <tom@tromey.com>
13653
13654 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13655 Declare method.
13656 * dwarf2/read.c (read_attribute_value): Update.
13657 (dwarf2_per_objfile::read_line_string): Rename from
13658 read_indirect_line_string.
13659 (read_formatted_entries): Update.
13660
2ef46c2f
TT
136612020-03-26 Tom Tromey <tom@tromey.com>
13662
13663 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13664 variable.
13665
4f9c1eda
TT
136662020-03-26 Tom Tromey <tom@tromey.com>
13667
13668 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13669 const.
13670 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13671 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13672 parameter const.
13673
5a0e026f
TT
136742020-03-26 Tom Tromey <tom@tromey.com>
13675
13676 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13677 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13678 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13679 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13680
8844c11b
TT
136812020-03-26 Tom Tromey <tom@tromey.com>
13682
13683 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13684 file_names_size, file_full_name, file_file_name>: Use const.
13685 <file_name_at, file_names>: Add const overload.
13686 * dwarf2/line-header.c (line_header::file_file_name)
13687 (line_header::file_full_name): Update.
13688
c90ec28a
TT
136892020-03-26 Tom Tromey <tom@tromey.com>
13690
13691 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13692 (macro_start_file, consume_improper_spaces)
13693 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13694 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13695 (dwarf_decode_macros): Move to macro.c.
13696 * dwarf2/macro.c: New file.
13697 * dwarf2/macro.h: New file.
13698 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13699
4f44ae6c
TT
137002020-03-26 Tom Tromey <tom@tromey.com>
13701
13702 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13703 method.
13704 * dwarf2/section.c: New method. From
13705 read_indirect_string_at_offset_from.
13706 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13707 (read_indirect_string_at_offset_from): Move to section.c.
13708 (read_indirect_string_at_offset): Rewrite.
13709 (read_indirect_line_string_at_offset): Remove.
13710 (read_indirect_string, read_indirect_line_string)
13711 (dwarf_decode_macro_bytes): Update.
13712
a0194fa8
TT
137132020-03-26 Tom Tromey <tom@tromey.com>
13714
13715 * dwarf2/section.h (struct dwarf2_section_info)
13716 <overload_complaint>: Declare.
13717 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13718 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13719 Rename from dwarf2_section_buffer_overflow_complaint.
13720 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13721 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13722
3d27bbdb
TT
137232020-03-26 Tom Tromey <tom@tromey.com>
13724
13725 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13726 Declare.
13727 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13728 Move from read.c.
13729 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13730 to section.c.
13731
9eac9650
TT
137322020-03-26 Tom Tromey <tom@tromey.com>
13733
13734 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13735
bf80d710
TT
137362020-03-26 Tom Tromey <tom@tromey.com>
13737
13738 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13739 "builder".
13740 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13741 parameter.
13742 (dwarf_decode_macros): Update.
13743
0314b390
TT
137442020-03-26 Tom Tromey <tom@tromey.com>
13745
13746 * dwarf2/read.c (read_attribute_value): Update.
13747 (read_indirect_string_from_dwz): Move to dwz.c; change into
13748 method.
13749 (dwarf_decode_macro_bytes): Update.
13750 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13751 * dwarf2/dwz.c: New file.
13752 * Makefile.in (COMMON_SFILES): Add dwz.c.
13753
9fda78b6
TT
137542020-03-26 Tom Tromey <tom@tromey.com>
13755
13756 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13757 * dwarf2/read.c: Add include.
13758 * dwarf2/index-write.c: Add include.
13759 * dwarf2/index-cache.c: Add include.
13760 * dwarf2/dwz.h: New file.
13761
33aa3c10
TT
137622020-03-25 Tom Tromey <tom@tromey.com>
13763
13764 * compile/compile-object-load.c (get_out_value_type): Mention
13765 correct symbol name in error message.
13766
d503b685
HD
137672020-03-25 Hannes Domani <ssbssa@yahoo.de>
13768
13769 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13770
7b1eff95
TV
137712020-03-25 Tom de Vries <tdevries@suse.de>
13772
13773 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13774 * symmisc.c (dump_symtab_1): Print user and includes fields.
13775 (maintenance_info_symtabs): Same.
13776
dd895392
AB
137772020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13778
13779 PR gdb/25534
13780 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13781 (riscv_regcache_cooked_write): New function.
13782 (riscv_push_dummy_call): Use new function.
13783 (riscv_return_value): Likewise.
13784
5ab2fbf1
SM
137852020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13786
13787 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13788 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13789 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13790 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13791 * infrun.c (follow_fork): Likewise.
13792 (follow_fork_inferior): Likewise.
13793 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13794 * linux-nat.h (class linux_nat_target): Likewise.
13795 * remote.c (class remote_target) <follow_fork>: Likewise.
13796 (remote_target::follow_fork): Likewise.
13797 * target-delegates.c: Re-generate.
13798 * target.c (default_follow_fork): Likewise.
13799 (target_follow_fork): Likewise.
13800 * target.h (struct target_ops) <follow_fork>: Likewise.
13801 (target_follow_fork): Likewise.
13802
a64fafb5
TV
138032020-03-24 Tom de Vries <tdevries@suse.de>
13804
13805 * psymtab.c (maintenance_info_psymtabs): Print user field.
13806
fe26d3a3
TT
138072020-03-20 Tom Tromey <tromey@adacore.com>
13808
13809 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13810 const.
13811 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13812 const.
13813
c884cc46
SM
138142020-03-20 Simon Marchi <simon.marchi@efficios.com>
13815
13816 * ptrace.m4: Don't check for ptrace declaration.
13817 * config.in: Re-generate.
13818 * configure: Re-generate.
13819 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13820 not defined.
13821
1ff700c2
KR
138222020-03-20 Kamil Rytarowski <n54@gmx.com>
13823
13824 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13825 `PTRACE_TYPE_RET'.
13826 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13827 * sparc-nat.c (gdb_ptrace): Likewise.
13828 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13829
f7d4f0b1
TT
138302020-03-20 Tom Tromey <tromey@adacore.com>
13831
13832 * c-exp.y (lex_one_token): Fix assert.
13833
f67210ff
TT
138342020-03-20 Tom Tromey <tromey@adacore.com>
13835
13836 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13837 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13838 strncpy call.
13839
1773be9e
TT
138402020-03-20 Tom Tromey <tromey@adacore.com>
13841
13842 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13843
70304be9
TT
138442020-03-20 Tom Tromey <tromey@adacore.com>
13845
13846 * ada-valprint.c (print_variant_part): Remove parameters; switch
13847 to value-based API.
13848 (print_field_values): Likewise.
13849 (ada_val_print_struct_union): Likewise.
13850 (ada_value_print_1): Update.
13851
9faa006d
KR
138522020-03-20 Kamil Rytarowski <n54@gmx.com>
13853
13854 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13855 nbsd_nat_target instead of inf_ptrace_target.
13856 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13857 nbsd_nat_target.
13858
4a90f062
KR
138592020-03-20 Kamil Rytarowski <n54@gmx.com>
13860
13861 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13862 it to the ptrace call.
13863 * (store_registers): Likewise.
13864
138652020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13866
13867 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13868 it to the ptrace call.
13869 * (store_registers): Likewise.
13870
2d07da27
LM
138712020-03-19 Luis Machado <luis.machado@linaro.org>
13872
13873 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13874 valid, fetch vg value from ptrace.
13875
f09db380
KR
138762020-03-19 Kamil Rytarowski <n54@gmx.com>
13877 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13878 * inf-ptrace.c: Likewise.
13879 * (gdb_ptrace): Add.
13880 * (inf_ptrace_target::resume): Update.
13881 * (inf_ptrace_target::xfer_partial): Likewise.
13882 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13883 * (inf_ptrace_peek_poke): Update.
13884
fcc7376e
KR
138852020-03-19 Kamil Rytarowski <n54@gmx.com>
13886
13887 * x86-bsd-nat.c (gdb_ptrace): New.
13888 * (x86bsd_dr_set): Add new argument `ptid'.
13889 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13890 x86bsd_dr_set_addr): Update.
13891
cada5fc9
AB
138922020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13893
13894 * remote.c (remote_target::process_stop_reply): Handle events for
13895 all threads differently.
13896
19a2740f
AB
138972020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13898
13899 * completer.c (completion_tracker::remove_completion): Define new
13900 function.
13901 * completer.h (completion_tracker::remove_completion): Declare new
13902 function.
13903 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13904 when adding a C++ function symbol.
13905
724fd9ba
AB
139062020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13907
13908 * completer.c (completion_tracker::completion_hash_entry): Define
13909 new class.
13910 (advance_to_filename_complete_word_point): Call
13911 recompute_lowest_common_denominator.
13912 (completion_tracker::completion_tracker): Call discard_completions
13913 to setup the hash table.
13914 (completion_tracker::discard_completions): Allow for being called
13915 from the constructor, pass new equal function, and element deleter
13916 when constructing the hash table. Initialise new class member
13917 variables.
13918 (completion_tracker::maybe_add_completion): Remove use of
13919 m_entries_vec, and store more information into m_entries_hash.
13920 (completion_tracker::recompute_lcd_visitor): New function, most
13921 content taken from...
13922 (completion_tracker::recompute_lowest_common_denominator):
13923 ...here, this now just visits each item in the hash calling the
13924 above visitor.
13925 (completion_tracker::build_completion_result): Remove use of
13926 m_entries_vec, call recompute_lowest_common_denominator.
13927 * completer.h (completion_tracker::have_completions): Remove use
13928 of m_entries_vec.
13929 (completion_tracker::completion_hash_entry): Declare new class.
13930 (completion_tracker::recompute_lowest_common_denominator): Change
13931 function signature.
13932 (completion_tracker::recompute_lcd_visitor): Declare new function.
13933 (completion_tracker::m_entries_vec): Delete.
13934 (completion_tracker::m_entries_hash): Initialize to NULL.
13935 (completion_tracker::m_lowest_common_denominator_valid): New
13936 member variable.
13937 (completion_tracker::m_lowest_common_denominator_max_length): New
13938 member variable.
13939
5a82b8a1
KR
139402020-03-17 Kamil Rytarowski <n54@gmx.com>
13941
13942 * regformats/regdef.h: Put reg in gdb namespace.
13943
fb516a69
KR
139442020-03-17 Kamil Rytarowski <n54@gmx.com>
13945
13946 * i386-bsd-nat.c (gdb_ptrace): New.
13947 * (i386bsd_fetch_inferior_registers,
13948 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13949 * (i386bsd_fetch_inferior_registers,
13950 i386bsd_store_inferior_registers) Use gdb_ptrace.
13951
1c0aa1fb
KR
139522020-03-17 Kamil Rytarowski <n54@gmx.com>
13953
13954 * amd64-bsd-nat.c (gdb_ptrace): New.
13955 * (amd64bsd_fetch_inferior_registers,
13956 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13957 * (amd64bsd_fetch_inferior_registers,
13958 amd64bsd_store_inferior_registers) Use gdb_ptrace.
13959
5ccd2fb7
KR
139602020-03-17 Kamil Rytarowski <n54@gmx.com>
13961
13962 * user-regs.c (user_reg::read): Rename to...
13963 (user_reg::xread): ...this.
13964 * (append_user_reg): Rename argument `read' to `xread'.
13965 * (user_reg_add_builtin): Likewise.
13966 * (user_reg_add): Likewise.
13967 * (value_of_user_reg): Likewise.
13968
2108a63a
KR
139692020-03-17 Kamil Rytarowski <n54@gmx.com>
13970
13971 * sparc-nat.c (gdb_ptrace): New.
13972 * sparc-nat.c (sparc_fetch_inferior_registers)
13973 (sparc_store_inferior_registers) Remove obsolete comment.
13974 * sparc-nat.c (sparc_fetch_inferior_registers)
13975 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
13976 * sparc-nat.c (sparc_fetch_inferior_registers)
13977 (sparc_store_inferior_registers) Use gdb_ptrace.
13978
a225c9a8
KR
139792020-03-17 Kamil Rytarowski <n54@gmx.com>
13980
13981 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
13982 it to the ptrace call.
13983 * sh-nbsd-nat.c (store_registers): Likewise.
13984
98097623
KR
139852020-03-17 Kamil Rytarowski <n54@gmx.com>
13986
13987 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
13988 nbsd_nat_target instead of inf_ptrace_target.
13989 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13990 nbsd_nat_target.
13991
9e38d619
KR
139922020-03-17 Kamil Rytarowski <n54@gmx.com>
13993
13994 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
13995
a2ecbe9f
KR
139962020-03-17 Kamil Rytarowski <n54@gmx.com>
13997
13998 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
13999 <sys/sysctl.h>.
14000 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
14001
58990295
TV
140022020-03-17 Tom de Vries <tdevries@suse.de>
14003
14004 PR gdb/23710
14005 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
14006 fields.
14007 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
14008 fields.
14009 (process_imported_unit_die): Skip import of c++ CUs.
14010
771dd3a8
TT
140112020-03-16 Tom Tromey <tom@tromey.com>
14012
14013 * p-valprint.c (pascal_object_print_value): Initialize
14014 base_value.
14015
817a7585
AK
140162020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
14017 Shahab Vahedi <shahab@synopsys.com>
14018
14019 * Makefile.in: Add arch/arc.o
14020 * configure.tgt: Likewise.
14021 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
14022 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 14023 (arc_read_description): New function to cache target descriptions.
817a7585
AK
14024 * arc-tdep.h (arc_read_description): Add proto type.
14025 * arch/arc.c: New file.
14026 * arch/arc.h: Likewise.
14027 * features/Makefile: Replace old target descriptions with new.
14028 * features/arc-arcompact.c: Remove.
14029 * features/arc-arcompact.xml: Likewise.
14030 * features/arc-v2.c: Likewise
14031 * features/arc-v2.xml: Likewise
14032 * features/arc/aux-arcompact.xml: New file.
14033 * features/arc/aux-v2.xml: Likewise.
14034 * features/arc/core-arcompact.xml: Likewise.
14035 * features/arc/core-v2.xml: Likewise.
14036 * features/arc/aux-arcompact.c: Generate.
14037 * features/arc/aux-v2.c: Likewise.
14038 * features/arc/core-arcompact.c: Likewise.
14039 * features/arc/core-v2.c: Likewise.
14040 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
14041
67430cd0
TT
140422020-03-16 Tom Tromey <tromey@adacore.com>
14043
14044 PR gdb/25663:
14045 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
14046 putting value into bcache.
14047
30efb6c7
SM
140482020-03-16 Simon Marchi <simon.marchi@efficios.com>
14049
14050 PR gdb/21500
14051 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
14052 to...
14053 (amd64_windows_init_abi_common): ... this. Don't set size of
14054 long type.
14055 (amd64_windows_init_abi): New function.
14056 (amd64_cygwin_init_abi): New function.
14057 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
14058 the Cygwin OS ABI.
14059 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
14060 comment.
14061
8db52437
SM
140622020-03-16 Simon Marchi <simon.marchi@efficios.com>
14063
14064 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
14065 * windows-tdep.c (CYGWIN_DLL_NAME): New.
14066 (pe_import_directory_entry): New struct type.
14067 (is_linked_with_cygwin_dll): New function.
14068 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
14069 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
14070 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
14071
5982a56a
SM
140722020-03-16 Simon Marchi <simon.marchi@efficios.com>
14073
14074 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
14075 i386_cygwin_core_osabi_sniffer.
14076
7a1998df
SM
140772020-03-16 Simon Marchi <simon.marchi@efficios.com>
14078
14079 * i386-cygwin-tdep.c: Rename to...
14080 * i386-windows-tdep.c: ... this.
14081 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
14082 i386-windows-tdep.c.
14083 * configure.tgt: Likewise.
14084
053205cc
SM
140852020-03-16 Simon Marchi <simon.marchi@efficios.com>
14086
14087 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
14088 * osabi.c (gdb_osabi_names): Add "Windows".
14089 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
14090 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
14091 (i386_cygwin_core_osabi_sniffer): New function, extracted from
14092 i386_cygwin_osabi_sniffer.
14093 (_initialize_i386_cygwin_tdep): Register OS ABI
14094 GDB_OSABI_WINDOWS for i386.
14095 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
14096 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
14097 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
14098 for x86-64.
14099 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
14100 when the target matches '*-*-mingw*'.
14101
fe4b2ee6
SM
141022020-03-16 Simon Marchi <simon.marchi@efficios.com>
14103
14104 * defs.h (enum gdb_osabi): Move to...
14105 * osabi.h (enum gdb_osabi): ... here.
14106 * gdbarch.sh: Include osabi.h in gdbarch.h.
14107 * gdbarch.h: Re-generate.
14108
cb9b645d
SM
141092020-03-16 Simon Marchi <simon.marchi@efficios.com>
14110
14111 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
14112 function.
14113 (_initialize_amd64_windows_tdep): Register osabi sniffer.
14114
3293bbaf
TT
141152020-03-14 Tom Tromey <tom@tromey.com>
14116
14117 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
14118 for C++.
14119 (c_type_print_modifier): Likewise. Add "language" parameter.
14120 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
14121 (c_type_print_base_1): Update.
14122 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
14123 constants.
14124 * type-stack.c (type_stack::insert): Handle tp_atomic and
14125 tp_restrict.
14126 (type_stack::follow_type_instance_flags): Likewise.
14127 (type_stack::follow_types): Likewise. Merge type-following code.
14128 * c-exp.y (RESTRICT, ATOMIC): New tokens.
14129 (space_identifier, cv_with_space_id)
14130 (const_or_volatile_or_space_identifier_noopt)
14131 (const_or_volatile_or_space_identifier): Remove.
14132 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14133 rules.
14134 (ptr_operator, typebase): Update.
14135 (enum token_flag) <FLAG_C>: New constant.
14136 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14137 "_Atomic".
14138 (lex_one_token): Handle FLAG_C.
14139
154151a6
KR
141402020-03-14 Kamil Rytarowski <n54@gmx.com>
14141
14142 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14143 it to the ptrace call.
14144 * m68k-bsd-nat.c (store_registers): Likewise.
14145
bc107784
KR
141462020-03-14 Kamil Rytarowski <n54@gmx.com>
14147
14148 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14149 gdb_byte *.
14150 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14151 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14152 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14153
01a80117
KR
141542020-03-14 Kamil Rytarowski <n54@gmx.com>
14155
14156 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14157 nbsd_nat_target instead of inf_ptrace_target.
14158 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14159 nbsd_nat_target.
14160
f90280ca
KR
141612020-03-14 Kamil Rytarowski <n54@gmx.com>
14162
14163 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14164 register_t.
14165
6def66f1
KR
141662020-03-14 Kamil Rytarowski <n54@gmx.com>
14167
14168 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14169 it to the ptrace call.
14170 * alpha-bsd-nat.c (store_registers): Likewise.
14171
66eaca97
KR
141722020-03-14 Kamil Rytarowski <n54@gmx.com>
14173
14174 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14175 includes.
14176 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14177 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14178 fill_fpregset): Likewise.
14179
4fed520b
KR
141802020-03-14 Kamil Rytarowski <n54@gmx.com>
14181
14182 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14183 nbsd_nat_target instead of inf_ptrace_target.
14184 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14185 nbsd_nat_target.
14186
2190cf06
KR
141872020-03-14 Kamil Rytarowski <n54@gmx.com>
14188
14189 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14190 register_t.
14191
75c56d3d
KR
141922020-03-14 Kamil Rytarowski <n54@gmx.com>
14193
14194 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14195 it to the ptrace call.
14196 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14197 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14198 * arm-nbsd-nat.c (store_register): Likewise.
14199 * arm-nbsd-nat.c (store_regs): Likewise.
14200 * arm-nbsd-nat.c (store_fp_register): Likewise.
14201 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14202
6018d381
KR
142032020-03-14 Kamil Rytarowski <n54@gmx.com>
14204
14205 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14206 nbsd_nat_target instead of inf_ptrace_target.
14207 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14208 nbsd_nat_target.
14209
013f99f0
KR
142102020-03-14 Kamil Rytarowski <n54@gmx.com>
14211
14212 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14213 it to the ptrace call.
14214 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14215
12753073
KR
142162020-03-14 Kamil Rytarowski <n54@gmx.com>
14217
6227b330
KR
14218 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14219 it to the ptrace call.
14220 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14221
142222020-03-14 Kamil Rytarowski <n54@gmx.com>
14223
14224 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14225 gdb_byte *.
12753073
KR
14226 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14227
d5be5fa4
KR
142282020-03-14 Kamil Rytarowski <n54@gmx.com>
14229
14230 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14231 instead of inf_ptrace_target.
14232 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14233 nbsd_nat_target.
14234
8110f842
KR
142352020-03-14 Kamil Rytarowski <n54@gmx.com>
14236
14237 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14238 register_t.
14239
52feded7
KR
142402020-03-14 Kamil Rytarowski <n54@gmx.com>
14241
14242 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14243 register_t.
14244
25567eee
KR
142452020-03-14 Kamil Rytarowski <n54@gmx.com>
14246
14247 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14248 register_t.
14249
426a9c18
TT
142502020-03-13 Tom Tromey <tom@tromey.com>
14251
14252 * value.h (val_print): Don't declare.
14253 * valprint.h (val_print_array_elements)
14254 (val_print_scalar_formatted, generic_val_print): Don't declare.
14255 * valprint.c (generic_val_print_array): Take a struct value.
14256 (generic_val_print_ptr, generic_val_print_memberptr)
14257 (generic_val_print_bool, generic_val_print_int)
14258 (generic_val_print_char, generic_val_print_complex)
14259 (generic_val_print): Remove.
14260 (generic_value_print): Update.
14261 (do_val_print): Remove unused parameters. Don't call
14262 la_val_print.
14263 (val_print): Remove.
14264 (common_val_print): Update. Don't call value_check_printable.
14265 (val_print_scalar_formatted, val_print_array_elements): Remove.
14266 * rust-lang.c (rust_val_print): Remove.
14267 (rust_language_defn): Update.
14268 * p-valprint.c (pascal_val_print): Remove.
14269 (pascal_value_print_inner): Update.
14270 (pascal_object_print_val_fields, pascal_object_print_val):
14271 Remove.
14272 (pascal_object_print_static_field): Update.
14273 * p-lang.h (pascal_val_print): Don't declare.
14274 * p-lang.c (pascal_language_defn): Update.
14275 * opencl-lang.c (opencl_language_defn): Update.
14276 * objc-lang.c (objc_language_defn): Update.
14277 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14278 * m2-lang.h (m2_val_print): Don't declare.
14279 * m2-lang.c (m2_language_defn): Update.
14280 * language.h (struct language_defn) <la_val_print>: Remove.
14281 * language.c (unk_lang_value_print_inner): Rename. Change
14282 argument types.
14283 (unknown_language_defn, auto_language_defn): Update.
14284 * go-valprint.c (go_val_print): Remove.
14285 * go-lang.h (go_val_print): Don't declare.
14286 * go-lang.c (go_language_defn): Update.
14287 * f-valprint.c (f_val_print): Remove.
14288 * f-lang.h (f_value_print): Don't declare.
14289 * f-lang.c (f_language_defn): Update.
14290 * d-valprint.c (d_val_print): Remove.
14291 * d-lang.h (d_value_print): Don't declare.
14292 * d-lang.c (d_language_defn): Update.
14293 * cp-valprint.c (cp_print_value_fields)
14294 (cp_print_value_fields_rtti, cp_print_value): Remove.
14295 (cp_print_static_field): Update.
14296 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14297 (c_val_print_struct, c_val_print_union, c_val_print_int)
14298 (c_val_print_memberptr, c_val_print): Remove.
14299 * c-lang.h (c_val_print_array, cp_print_value_fields)
14300 (cp_print_value_fields_rtti): Don't declare.
14301 * c-lang.c (c_language_defn, cplus_language_defn)
14302 (asm_language_defn, minimal_language_defn): Update.
14303 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14304 (ada_val_print_enum): Take a struct value.
14305 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14306 (ada_val_print): Remove.
14307 (ada_value_print_1): Update.
14308 (printable_val_type): Remove.
14309 * ada-lang.h (ada_val_print): Don't declare.
14310 * ada-lang.c (ada_language_defn): Update.
14311
42331a1e
TT
143122020-03-13 Tom Tromey <tom@tromey.com>
14313
14314 * valprint.c (do_val_print): Update.
14315 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14316 a struct value.
14317 (value_to_value_object_no_release): Declare.
14318 * python/py-value.c (value_to_value_object_no_release): New
14319 function.
14320 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14321 struct value.
14322 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14323 function.
14324 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14325 a struct value.
14326 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14327 Declare.
14328 (gdbscm_apply_val_pretty_printer): Take a struct value.
14329 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14330 value.
14331 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14332 value.
14333 * extension-priv.h (struct extension_language_ops)
14334 <apply_val_pretty_printer>: Take a struct value.
14335 * cp-valprint.c (cp_print_value): Create a struct value.
14336 (cp_print_value): Update.
14337
3a916a97
TT
143382020-03-13 Tom Tromey <tom@tromey.com>
14339
14340 * ada-valprint.c (print_field_values): Call common_val_print.
14341
b59eac37
TT
143422020-03-13 Tom Tromey <tom@tromey.com>
14343
14344 * ada-valprint.c (val_print_packed_array_elements): Remove
14345 bitoffset and val parameters. Call common_val_print.
14346 (ada_val_print_string): Remove offset, address, and original_value
14347 parameters.
14348 (ada_val_print_array): Update.
14349 (ada_value_print_array): New function.
14350 (ada_value_print_1): Call it.
14351
03371129
TT
143522020-03-13 Tom Tromey <tom@tromey.com>
14353
14354 * ada-valprint.c (ada_value_print): Use common_val_print.
14355
2e088f8b
TT
143562020-03-13 Tom Tromey <tom@tromey.com>
14357
14358 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14359
39ef85a8
TT
143602020-03-13 Tom Tromey <tom@tromey.com>
14361
14362 * ada-valprint.c (ada_value_print_num): New function.
14363 (ada_value_print_1): Use it.
14364
b9fa6e07
TT
143652020-03-13 Tom Tromey <tom@tromey.com>
14366
14367 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14368
416595d6
TT
143692020-03-13 Tom Tromey <tom@tromey.com>
14370
14371 * ada-valprint.c (ada_value_print_ptr): New function.
14372 (ada_value_print_1): Use it.
14373
5b5e15ec
TT
143742020-03-13 Tom Tromey <tom@tromey.com>
14375
14376 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14377 call common_val_print.
14378 (ada_val_print_1): Update.
14379 (ada_value_print_1): New function.
14380 (ada_value_print_inner): Rewrite.
14381
fbf54e75
TT
143822020-03-13 Tom Tromey <tom@tromey.com>
14383
14384 * cp-valprint.c (cp_print_value_fields): Update.
14385 (cp_print_value): New function.
14386
64b653ca
TT
143872020-03-13 Tom Tromey <tom@tromey.com>
14388
14389 * m2-valprint.c (m2_value_print_inner): Use
14390 cp_print_value_fields.
14391 * cp-valprint.c (cp_print_value_fields): New function.
14392 * c-valprint.c (c_value_print_struct): New function.
14393 (c_value_print_inner): Use c_value_print_struct.
14394 * c-lang.h (cp_print_value_fields): Declare.
14395
6999f067
TT
143962020-03-13 Tom Tromey <tom@tromey.com>
14397
14398 * c-valprint.c (c_value_print_array): New function.
14399 (c_value_print_inner): Use it.
14400
ce80b8bd
TT
144012020-03-13 Tom Tromey <tom@tromey.com>
14402
14403 * c-valprint.c (c_value_print_memberptr): New function.
14404 (c_value_print_inner): Use it.
14405
2faac269
TT
144062020-03-13 Tom Tromey <tom@tromey.com>
14407
14408 * c-valprint.c (c_value_print_int): New function.
14409 (c_value_print_inner): Use it.
14410
da3e2c29
TT
144112020-03-13 Tom Tromey <tom@tromey.com>
14412
14413 * c-valprint.c (c_value_print_ptr): New function.
14414 (c_value_print_inner): Use it.
14415
50836231
TT
144162020-03-13 Tom Tromey <tom@tromey.com>
14417
14418 * c-valprint.c (c_value_print_inner): Rewrite.
14419
4f412b6e
TT
144202020-03-13 Tom Tromey <tom@tromey.com>
14421
14422 * valprint.c (generic_value_print_complex): New function.
14423 (generic_value_print): Use it.
14424
f5354008
TT
144252020-03-13 Tom Tromey <tom@tromey.com>
14426
14427 * valprint.c (generic_val_print_float): Don't call
14428 val_print_scalar_formatted.
14429 (generic_val_print, generic_value_print): Update.
14430
3eec3b05
TT
144312020-03-13 Tom Tromey <tom@tromey.com>
14432
14433 * valprint.c (generic_value_print_char): New function
14434 (generic_value_print): Use it.
14435
fdddfccb
TT
144362020-03-13 Tom Tromey <tom@tromey.com>
14437
14438 * valprint.c (generic_value_print_int): New function.
14439 (generic_value_print): Use it.
14440
6dde7521
TT
144412020-03-13 Tom Tromey <tom@tromey.com>
14442
14443 * valprint.c (generic_value_print_bool): New function.
14444 (generic_value_print): Use it.
14445
4112d2e6
TT
144462020-03-13 Tom Tromey <tom@tromey.com>
14447
14448 * valprint.c (generic_val_print_func): Simplify.
14449 (generic_val_print, generic_value_print): Update.
14450
65786af6
TT
144512020-03-13 Tom Tromey <tom@tromey.com>
14452
14453 * valprint.c (generic_val_print_flags): Remove.
14454 (generic_val_print, generic_value_print): Update.
14455 (val_print_type_code_flags): Add original_value parameter.
14456
40f3ce18
TT
144572020-03-13 Tom Tromey <tom@tromey.com>
14458
14459 * valprint.c (generic_val_print): Update.
14460 (generic_value_print): Update.
14461 * valprint.c (generic_val_print_enum): Don't call
14462 val_print_scalar_formatted.
14463
2a5b130b
TT
144642020-03-13 Tom Tromey <tom@tromey.com>
14465
14466 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14467 * valprint.c (generic_value_print_ptr): New function.
14468
abc66ce9
TT
144692020-03-13 Tom Tromey <tom@tromey.com>
14470
14471 * valprint.c (generic_value_print): Rewrite.
14472
07a32858
TT
144732020-03-13 Tom Tromey <tom@tromey.com>
14474
14475 * p-valprint.c (pascal_object_print_value_fields)
14476 (pascal_object_print_value): New functions.
14477
64d64d3a
TT
144782020-03-13 Tom Tromey <tom@tromey.com>
14479
14480 * p-valprint.c (pascal_value_print_inner): Rewrite.
14481
6a95a1f5
TT
144822020-03-13 Tom Tromey <tom@tromey.com>
14483
14484 * f-valprint.c (f_value_print_innner): Rewrite.
14485
59fcdac6
TT
144862020-03-13 Tom Tromey <tom@tromey.com>
14487
14488 * m2-valprint.c (m2_print_unbounded_array): New overload.
14489 (m2_print_unbounded_array): Update.
14490 (m2_print_array_contents): Take a struct value.
14491 (m2_value_print_inner): Rewrite.
14492
d133c3e1
TT
144932020-03-13 Tom Tromey <tom@tromey.com>
14494
14495 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14496 (d_value_print_inner): New function.
14497 * d-lang.h (d_value_print_inner): Declare.
14498 * d-lang.c (d_language_defn): Use d_value_print_inner.
14499
23b0f06b
TT
145002020-03-13 Tom Tromey <tom@tromey.com>
14501
14502 * go-valprint.c (go_value_print_inner): New function.
14503 * go-lang.h (go_value_print_inner): Declare.
14504 * go-lang.c (go_language_defn): Use go_value_print_inner.
14505
5f56f7cb
TT
145062020-03-13 Tom Tromey <tom@tromey.com>
14507
14508 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14509 API.
14510 (rust_val_print): Rewrite.
14511 (rust_value_print_inner): New function, from rust_val_print.
14512 (rust_language_defn): Use rust_value_print_inner.
14513
26792ee0
TT
145142020-03-13 Tom Tromey <tom@tromey.com>
14515
14516 * ada-valprint.c (ada_value_print_inner): New function.
14517 * ada-lang.h (ada_value_print_inner): Declare.
14518 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14519
24051bbe
TT
145202020-03-13 Tom Tromey <tom@tromey.com>
14521
14522 * f-valprint.c (f_value_print_innner): New function.
14523 * f-lang.h (f_value_print_innner): Declare.
14524 * f-lang.c (f_language_defn): Use f_value_print_innner.
14525
c0941be6
TT
145262020-03-13 Tom Tromey <tom@tromey.com>
14527
14528 * p-valprint.c (pascal_value_print_inner): New function.
14529 * p-lang.h (pascal_value_print_inner): Declare.
14530 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14531
62c4663d
TT
145322020-03-13 Tom Tromey <tom@tromey.com>
14533
14534 * m2-valprint.c (m2_value_print_inner): New function.
14535 * m2-lang.h (m2_value_print_inner): Declare.
14536 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14537
62182190
TT
145382020-03-13 Tom Tromey <tom@tromey.com>
14539
14540 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14541 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14542 * c-valprint.c (c_value_print_inner): New function.
14543 * c-lang.h (c_value_print_inner): Declare.
14544 * c-lang.c (c_language_defn, cplus_language_defn)
14545 (asm_language_defn, minimal_language_defn): Use
14546 c_value_print_inner.
14547
1e592a8a
TT
145482020-03-13 Tom Tromey <tom@tromey.com>
14549
14550 * p-valprint.c (pascal_object_print_value_fields): Now static.
14551 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14552
7fe471e9
TT
145532020-03-13 Tom Tromey <tom@tromey.com>
14554
14555 * c-valprint.c (c_val_print_array): Simplify.
14556
d121c6ce
TT
145572020-03-13 Tom Tromey <tom@tromey.com>
14558
14559 * valprint.c (value_print_array_elements): New function.
14560 * valprint.h (value_print_array_elements): Declare.
14561
4dba70ee
TT
145622020-03-13 Tom Tromey <tom@tromey.com>
14563
14564 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14565 * mips-tdep.c (mips_print_register): Use
14566 value_print_scalar_formatted.
14567
4f9ae810
TT
145682020-03-13 Tom Tromey <tom@tromey.com>
14569
14570 * valprint.h (value_print_scalar_formatted): Declare.
14571 * valprint.c (value_print_scalar_formatted): New function.
14572
156bfec9
TT
145732020-03-13 Tom Tromey <tom@tromey.com>
14574
14575 * valprint.h (generic_value_print): Declare.
14576 * valprint.c (generic_value_print): New function.
14577
2b4e573d
TT
145782020-03-13 Tom Tromey <tom@tromey.com>
14579
14580 * valprint.c (do_val_print): Call la_value_print_inner, if
14581 available.
14582 * rust-lang.c (rust_language_defn): Update.
14583 * p-lang.c (pascal_language_defn): Update.
14584 * opencl-lang.c (opencl_language_defn): Update.
14585 * objc-lang.c (objc_language_defn): Update.
14586 * m2-lang.c (m2_language_defn): Update.
14587 * language.h (struct language_defn) <la_value_print_inner>: New
14588 member.
14589 * language.c (unknown_language_defn, auto_language_defn): Update.
14590 * go-lang.c (go_language_defn): Update.
14591 * f-lang.c (f_language_defn): Update.
14592 * d-lang.c (d_language_defn): Update.
14593 * c-lang.c (c_language_defn, cplus_language_defn)
14594 (asm_language_defn, minimal_language_defn): Update.
14595 * ada-lang.c (ada_language_defn): Update.
14596
a1f6a07c
TT
145972020-03-13 Tom Tromey <tom@tromey.com>
14598
14599 * c-valprint.c (c_value_print): Use common_val_print.
14600
410cf315
TT
146012020-03-13 Tom Tromey <tom@tromey.com>
14602
14603 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14604
72a45c93
TT
146052020-03-13 Tom Tromey <tom@tromey.com>
14606
14607 * f-valprint.c (f77_print_array_1, f_val_print): Use
14608 common_val_print.
14609
040f66bd
TT
146102020-03-13 Tom Tromey <tom@tromey.com>
14611
14612 * riscv-tdep.c (riscv_print_one_register_info): Use
14613 common_val_print.
14614
a6e05a6c
TT
146152020-03-13 Tom Tromey <tom@tromey.com>
14616
14617 * mi/mi-main.c (output_register): Use common_val_print.
14618
3444c526
TT
146192020-03-13 Tom Tromey <tom@tromey.com>
14620
14621 * infcmd.c (default_print_one_register_info): Use
14622 common_val_print.
14623
c2a44efe
TT
146242020-03-13 Tom Tromey <tom@tromey.com>
14625
14626 * valprint.h (common_val_print_checked): Declare.
14627 * valprint.c (common_val_print_checked): New function.
14628 * stack.c (print_frame_arg): Use common_val_print_checked.
14629
b0c26e99
TT
146302020-03-13 Tom Tromey <tom@tromey.com>
14631
14632 * valprint.c (do_val_print): New function, from val_print.
14633 (val_print): Use do_val_print.
14634 (common_val_print): Use do_val_print.
14635
ce3acbe9
TT
146362020-03-13 Tom Tromey <tom@tromey.com>
14637
14638 * valprint.c (value_print): Use scoped_value_mark.
14639
96c7f873
TV
146402020-03-13 Tom de Vries <tdevries@suse.de>
14641
14642 PR symtab/25646
14643 * psymtab.c (partial_symtab::partial_symtab): Don't set
14644 globals_offset and statics_offset. Push element onto
14645 current_global_psymbols and current_static_psymbols stacks.
14646 (concat): New function.
14647 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14648 element from current_global_psymbols and current_static_psymbols
14649 stacks. Concat popped elements to global_psymbols and
14650 static_symbols.
14651 (add_psymbol_to_list): Use current_global_psymbols and
14652 current_static_psymbols stacks.
14653 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14654 current_static_psymbols fields.
14655
6ba0a321
CB
146562020-03-12 Christian Biesinger <cbiesinger@google.com>
14657
14658 * corelow.c (sniff_core_bfd): Remove.
14659 (class core_target) <m_core_vec>: Remove.
14660 (core_target::core_target): Update.
14661 (core_file_fns): Remove.
14662 (deprecated_add_core_fns): Remove.
14663 (default_core_sniffer): Remove.
14664 (sniff_core_bfd): Remove.
14665 (default_check_format): Remove.
14666 (gdb_check_format): Remove.
14667 (core_target_open): Update.
14668 (core_target::get_core_register_section): Update.
14669 (get_core_registers_cb): Update.
14670 (core_target::fetch_registers): Update.
14671 * gdbcore.h (struct core_fns): Remove.
14672 (deprecated_add_core_fns): Remove.
14673 (default_core_sniffer): Remove.
14674 (default_check_format): Remove.
14675
227031b2
TT
146762020-03-12 Tom Tromey <tom@tromey.com>
14677
14678 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14679 CORE_ADDR.
14680 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14681
53807e9f
TT
146822020-03-12 Tom Tromey <tom@tromey.com>
14683
14684 * remote.c (remote_target::download_tracepoint)
14685 (remote_target::enable_tracepoint)
14686 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14687 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14688 sprintf_vma.
14689
64f25102
TT
146902020-03-12 Tom Tromey <tom@tromey.com>
14691
14692 * symfile-mem.c: Update CORE_ADDR size assert.
14693
272cd5a3
SM
146942020-03-12 Simon Marchi <simon.marchi@efficios.com>
14695
14696 * selftest.m4: Move to gdbsupport/.
14697 * acinclude.m4: Update path to selftest.m4.
14698
74cd3f9d
SM
146992020-03-12 Simon Marchi <simon.marchi@efficios.com>
14700
14701 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14702 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14703 gdbarch-selfselftests.c and selftest-arch.c.
14704 (SUBDIR_UNITTESTS_OBS): Rename to...
14705 (SELFTESTS_OBS): ... this.
14706 (COMMON_SFILES): Remove disasm-selftests.c and
14707 gdbarch-selftests.c.
14708 * configure.ac: Don't add selftest-arch.{c,o} to
14709 CONFIG_{SRCS,OBS}.
14710 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14711 preprocessor conditions.
14712
db6878ac
SM
147132020-03-12 Simon Marchi <simon.marchi@efficios.com>
14714
14715 * configure.ac: Don't source bfd/development.sh.
14716 * selftest.m4: Modify comment.
14717 * configure: Re-generate.
14718
4d696a5c
SM
147192020-03-12 Simon Marchi <simon.marchi@efficios.com>
14720
14721 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14722 not "true" or "false".
14723 * configure: Re-generate.
14724
8dd8e1c7
CB
147252020-03-12 Christian Biesinger <cbiesinger@google.com>
14726
14727 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14728 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14729 renamed to arm_nbsd_supply_gregset.
14730 (fetch_register): Update to call arm_nbsd_supply_gregset.
14731 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14732 (arm_netbsd_nat_target::fetch_registers): Update.
14733 (fetch_elfcore_registers): Removed.
14734 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14735 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14736 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14737 not require NetBSD system headers.
14738 (arm_nbsd_regset): New struct.
14739 (arm_nbsd_iterate_over_regset_sections): New function.
14740 (arm_netbsd_init_abi_common): Updated to call
14741 set_gdbarch_iterate_over_regset_sections.
14742 * arm-nbsd-tdep.h: New file.
14743
dd69bf7a
KB
147442020-03-11 Kevin Buettner <kevinb@redhat.com>
14745
14746 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14747 recursion.
14748
a0761e34
SM
147492020-03-11 Simon Marchi <simon.marchi@efficios.com>
14750
14751 * configure: Re-generate.
14752
e7a82140
TT
147532020-03-11 Tom Tromey <tromey@adacore.com>
14754
14755 * ada-typeprint.c (print_choices): Fix comment.
14756
dcc050c8
AB
147572020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14758
14759 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14760 previous item in the list, when the list has no items.
14761
1c33af77
TV
147622020-03-11 Tom de Vries <tdevries@suse.de>
14763
14764 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14765 PROP_LOCLIST handling code.
14766
8c95582d
AB
147672020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14768
14769 * buildsym-legacy.c (record_line): Pass extra parameter to
14770 record_line.
14771 * buildsym.c (buildsym_compunit::record_line): Take an extra
14772 parameter, reduce duplication in the line table, and record the
14773 is_stmt flag in the line table.
14774 * buildsym.h (buildsym_compunit::record_line): Add extra
14775 parameter.
14776 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14777 non-statement lines.
14778 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14779 this to the symtab builder.
14780 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14781 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14782 through to dwarf_record_line_1.
14783 * infrun.c (process_event_stop_test): When stepping, don't stop at
14784 a non-statement instruction, and only refresh the step info when
14785 we land in the middle of a line's range. Also add an extra
14786 comment.
14787 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14788 field.
14789 * record-btrace.c (btrace_find_line_range): Only record lines
14790 marked as is-statement.
14791 * stack.c (frame_show_address): Show the frame address if we are
14792 in a non-statement sal.
14793 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14794 (maintenance_print_one_line_table): Print a header for the is_stmt
14795 column, and include is_stmt information in the output.
14796 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14797 preference to non-statements.
14798 (find_pcs_for_symtab_line): Prefer is-statement entries.
14799 (find_line_common): Likewise.
14800 * symtab.h (struct linetable_entry): Add is_stmt field.
14801 (struct symtab_and_line): Likewise.
14802 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14803 arranging the line table.
14804
e4003a34
TV
148052020-03-07 Tom de Vries <tdevries@suse.de>
14806
14807 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14808 DIE.
14809
e8932576
TT
148102020-03-07 Tom Tromey <tom@tromey.com>
14811
14812 * valops.c (value_literal_complex): Remove obsolete comment.
14813 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14814 comment.
14815
29734269
SM
148162020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14817
14818 * infrun.h: Forward-declare thread_info.
14819 (set_step_info): Add thread_info parameter, add doc.
14820 * infrun.c (set_step_info): Add thread_info parameter, move doc
14821 to header.
14822 * infrun.c (process_event_stop_test): Pass thread to
14823 set_step_info call.
14824 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14825 set_step_info.
14826 (prepare_one_step): Add thread_info parameter, pass it to
14827 set_step_frame and prepare_one_step (recursive) call.
14828 (step_1): Pass thread to prepare_one_step call.
14829 (step_command_fsm::should_stop): Pass thread to
14830 prepare_one_step.
14831 (until_next_fsm): Pass thread to set_step_frame call.
14832 (finish_command): Pass thread to set_step_info call.
14833
b7d64b29
HD
148342020-03-06 Hannes Domani <ssbssa@yahoo.de>
14835
14836 * windows-tdep.c (windows_solib_create_inferior_hook):
14837 Check if inferior is running.
14838
09f2921c
TV
148392020-03-06 Tom de Vries <tdevries@suse.de>
14840
14841 * NEWS: Fix "the the".
14842 * ctfread.c: Same.
14843
fd760e79
TV
148442020-03-06 Tom de Vries <tdevries@suse.de>
14845
14846 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14847
20ea4a60
AB
148482020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14849
14850 * .dir-locals.el: Add a comment referencing the other copies of
14851 this file.
14852
0afbabf0
JB
148532020-03-05 John Baldwin <jhb@FreeBSD.org>
14854
14855 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14856 psargs.
14857
842806cb
TBA
148582020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14859
14860 * .gitattributes: New file.
14861
be1e3d3e
TT
148622020-03-04 Tom Tromey <tom@tromey.com>
14863
14864 * symmisc.c (print_symbol_bcache_statistics)
14865 (print_objfile_statistics): Update.
14866 * symfile.c (allocate_symtab): Use intern.
14867 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14868 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14869 macro_cache>: Remove.
14870 <string_cache>: New member.
14871 (struct objfile) <intern>: New methods.
14872 * elfread.c (elf_symtab_read): Use intern.
14873 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14874 (dwarf2_compute_name, dwarf2_physname)
14875 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14876 names.
14877 (guess_partial_die_structure_name): Update.
14878 (partial_die_info::fixup): Intern name.
14879 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14880 name.
14881 (dwarf2_name): Intern name. Update.
14882 * buildsym.c (buildsym_compunit::get_macro_table): Use
14883 string_cache.
14884
4e7625fd
TT
148852020-03-04 Tom Tromey <tom@tromey.com>
14886
14887 * jit.c (bfd_open_from_target_memory): Make "target" const.
14888 * corefile.c (gnutarget): Now const.
14889 * gdbcore.h (gnutarget): Now const.
14890
46f9f931
HD
148912020-03-04 Hannes Domani <ssbssa@yahoo.de>
14892
14893 * NEWS: Mention support for WOW64 processes.
14894 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14895 (amd64_windows_segment_register_p): Remove static.
14896 (_initialize_amd64_windows_nat): Update.
14897 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14898 * i386-windows-nat.c (context_offset): Update.
14899 (i386_mappings): Rename and remove static.
14900 (i386_windows_segment_register_p): Remove static.
14901 (_initialize_i386_windows_nat): Update.
14902 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14903 (STATUS_WX86_SINGLE_STEP): New macro.
14904 (EnumProcessModulesEx): New macro.
14905 (Wow64SuspendThread): New macro.
14906 (Wow64GetThreadContext): New macro.
14907 (Wow64SetThreadContext): New macro.
14908 (Wow64GetThreadSelectorEntry): New macro.
14909 (windows_set_context_register_offsets): Add static.
14910 (windows_set_segment_register_p): Likewise.
14911 (windows_add_thread): Adapt for WOW64 processes.
14912 (windows_fetch_one_register): Likewise.
14913 (windows_nat_target::fetch_registers): Likewise.
14914 (windows_store_one_register): Likewise.
14915 (display_selector): Likewise.
14916 (display_selectors): Likewise.
14917 (handle_exception): Likewise.
14918 (windows_continue): Likewise.
14919 (windows_nat_target::resume): Likewise.
14920 (windows_add_all_dlls): Likewise.
14921 (do_initial_windows_stuff): Likewise.
14922 (windows_nat_target::attach): Likewise.
14923 (windows_get_exec_module_filename): Likewise.
14924 (windows_nat_target::create_inferior): Likewise.
14925 (windows_xfer_siginfo): Likewise.
14926 (_initialize_loadable): Initialize Wow64SuspendThread,
14927 Wow64GetThreadContext, Wow64SetThreadContext,
14928 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14929 * windows-nat.h (windows_set_context_register_offsets):
14930 Remove declaration.
14931 (windows_set_segment_register_p): Likewise.
14932 (i386_windows_segment_register_p): Add declaration.
14933 (amd64_windows_segment_register_p): Likewise.
14934
440cf44e
LM
149352020-03-04 Luis Machado <luis.machado@linaro.org>
14936
14937 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14938 in "info registers" for AArch64/ARM.
14939
14940 The change caused "info registers" to not print GPR's.
14941
14942 gdb/ChangeLog:
14943
14944 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14945
14946 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14947 when reg->group is empty and reggroup is not.
14948
1009d92f
TT
149492020-03-03 Tom Tromey <tromey@adacore.com>
14950
14951 * dwarf2/frame.c (struct dwarf2_frame_cache)
14952 <checked_tailcall_bottom, entry_cfa_sp_offset,
14953 entry_cfa_sp_offset_p>: Remove members.
14954 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
14955 (dwarf2_frame_prev_register): Don't call
14956 dwarf2_tailcall_sniffer_first.
14957 (dwarf2_append_unwinders): Don't append tailcall unwinder.
14958 * frame-unwind.c (add_unwinder): New fuction.
14959 (frame_unwind_init): Use it. Add tailcall unwinder.
14960
5e5d66b6
AB
149612020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
14962 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14963
14964 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
14965 value should be printed as true.
14966
584cf46d
HD
149672020-03-03 Hannes Domani <ssbssa@yahoo.de>
14968
14969 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
14970 (windows_init_abi): Set and use windows_so_ops.
14971
7b973adc
SDJ
149722020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
14973
14974 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
14975 when verifying if dealing with a convenience variable.
14976
bb7b70ab
LM
149772020-03-03 Luis Machado <luis.machado@linaro.org>
14978
14979 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
14980
9822cb57
SM
149812020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
14982
14983 * infrun.c (gdbarch_supports_displaced_stepping): New.
14984 (use_displaced_stepping): Break up conditions in smaller pieces.
14985 Use gdbarch_supports_displaced_stepping.
14986 (displaced_step_prepare_throw): Use
14987 gdbarch_supports_displaced_stepping.
14988
63e163f2
AB
149892020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14990
14991 * NEWS: Mention new behaviour of the history filename.
14992 * top.c (write_history_p): Add comment.
14993 (show_write_history_p): Add header comment, give a different
14994 message when history writing is on, but the history filename is
14995 empty.
14996 (history_filename): Add comment.
14997 (history_filename_empty): New function.
14998 (show_history_filename): Add header comment, give a different
14999 message when the filename is empty.
15000 (init_history): Compare history_filename against nullptr, and only
15001 read history if the filename is not empty.
15002 (set_history_filename): Add header comment, and only make
15003 non-empty filenames absolute.
15004 (init_main): Make the filename argument to 'set history filename'
15005 optional.
15006
81b86b97
CB
150072020-03-02 Christian Biesinger <cbiesinger@google.com>
15008
15009 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
15010 (arm_supply_vfpregset): ...this, and update to use VFP registers.
15011 (fetch_fp_register): Update.
15012 (fetch_fp_regs): Update.
15013 (store_fp_register): Update.
15014 (store_fp_regs): Update.
15015 (arm_netbsd_nat_target::read_description): New function.
15016 (fetch_elfcore_registers): Update.
15017
24ed6739
AB
150182020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
15019
15020 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
15021 general_thread if the stop reply is missing a thread-id.
15022 (remote_target::process_stop_reply): Use the first non-exited
15023 thread if the target didn't pass a thread-id.
15024 * infrun.c (do_target_wait): Move call to
15025 switch_to_inferior_no_thread to ....
15026 (do_target_wait_1): ... here.
15027
a84bb2a0
JT
150282020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
15029
15030 * debuginfod-support.c: Include defs.h first.
15031
658dadf0
TV
150322020-02-28 Tom de Vries <tdevries@suse.de>
15033
15034 * symfile.c (set_initial_language): Use default language for lookup.
15035
4ebe4877
SM
150362020-02-28 Simon Marchi <simon.marchi@efficios.com>
15037
15038 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
15039 reader variable, pass `this` to read_cutu_die_from_dwo.
15040
e5da1139
AM
150412020-02-27 Aaron Merey <amerey@redhat.com>
15042
15043 * source.c (open_source_file): Check for nullptr when computing
15044 srcpath.
15045
317f7127
TT
150462020-02-27 Tom Tromey <tromey@adacore.com>
15047
15048 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
15049 member.
15050 (dwarf2_add_field): Don't update nfields.
15051 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
15052
3104d9ee
AB
150532020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
15054
15055 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
15056 abs.
15057
b83470bf
TT
150582020-02-26 Tom Tromey <tom@tromey.com>
15059
15060 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
15061 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
15062 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
15063 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
15064 per_cu_data.
15065
edfe0a0c
TT
150662020-02-26 Tom Tromey <tom@tromey.com>
15067
15068 * dwarf2/index-write.c (psym_index_map): Change type.
15069 (add_address_entry_worker, write_one_signatured_type)
15070 (recursively_count_psymbols, recursively_write_psymbols)
15071 (class debug_names, psyms_seen_size, write_gdbindex)
15072 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
15073
0d79cdc4
AM
150742020-02-26 Aaron Merey <amerey@redhat.com>
15075
15076 * Makefile.in: Handle optional debuginfod support.
15077 * NEWS: Update.
15078 * README: Add --with-debuginfod summary.
15079 * config.in: Regenerate.
15080 * configure: Regenerate.
15081 * configure.ac: Handle optional debuginfod support.
15082 * debuginfod-support.c: debuginfod helper functions.
15083 * debuginfod-support.h: Ditto.
15084 * doc/gdb.texinfo: Add --with-debuginfod to configure options
15085 summary.
15086 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
15087 when a dwz file cannot be found.
15088 * elfread.c (elf_symfile_read): Query debuginfod servers when a
15089 debuginfo file cannot be found.
15090 * source.c (open_source_file): Query debuginfod servers when a
15091 source file cannot be found.
15092 * top.c (print_gdb_configuration): Include
15093 --{with,without}-debuginfod in the output.
15094
b65ce565
JG
150952020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
15096
15097 * thread.c (thr_try_catch_cmd): Print thread name.
15098
d4c9a4f8
SM
150992020-02-26 Simon Marchi <simon.marchi@efficios.com>
15100
15101 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
15102 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15103 dwarf2_fetch_die_type_sect_off): Move to...
15104 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
15105 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15106 dwarf2_fetch_die_type_sect_off): ... here.
15107 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
15108 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15109 dwarf2_fetch_die_type_sect_off): Move doc to header file.
15110
0dce4280
TV
151112020-02-26 Tom de Vries <tdevries@suse.de>
15112
15113 PR gdb/25603
15114 * symfile.c (set_initial_language): Exit-early if
15115 language_mode == language_mode_manual.
15116
450a1bfc
SM
151172020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15118
15119 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
15120 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
15121 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
15122
9e80cfa1
AB
151232020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
15124
15125 * gdbtypes.c (create_array_type_with_stride): Handle negative
15126 array strides.
15127 * valarith.c (value_subscripted_rvalue): Likewise.
15128
09624f1f
LM
151292020-02-25 Luis Machado <luis.machado@linaro.org>
15130
15131 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15132
8cb5117c
SM
151332020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15134
15135 * loc.h (dwarf2_get_die_type): Move to...
15136 * read.h (dwarf2_get_die_type): ... here.
15137 * read.c (dwarf2_get_die_type): Move doc to header.
15138
c325c44e
JB
151392020-02-25 Joel Brobecker <brobecker@adacore.com>
15140
15141 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15142 'gnulib/Makefile.in' to the list.
15143
4ac93832
TT
151442020-02-24 Tom Tromey <tom@tromey.com>
15145
15146 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15147 Remove.
15148 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15149 XOBNEWVEC.
15150
197400e8
TT
151512020-02-24 Tom Tromey <tom@tromey.com>
15152
15153 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15154 New method.
15155 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15156 (dw2_do_instantiate_symtab, dw2_get_file_names)
15157 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15158
76935768
TT
151592020-02-24 Tom Tromey <tom@tromey.com>
15160
15161 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15162 make_scoped_restore.
15163 (dwarf2_psymtab::read_symtab): Don't clear
15164 reading_partial_symbols.
15165
a88ef40d
TV
151662020-02-24 Tom de Vries <tdevries@suse.de>
15167
15168 PR gdb/25592
15169 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15170
c9af6521
TV
151712020-02-24 Tom de Vries <tdevries@suse.de>
15172
15173 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15174 commands layout next/prev/regs.
15175
5707a07a
TT
151762020-02-22 Tom Tromey <tom@tromey.com>
15177
15178 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15179 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15180
3b0fb49e
TT
151812020-02-22 Tom Tromey <tom@tromey.com>
15182
15183 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15184
283be8bf
TT
151852020-02-22 Tom Tromey <tom@tromey.com>
15186
15187 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15188 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15189 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15190 * tui/tui.c (_initialize_tui): Add usage text.
15191
ca793b96
TT
151922020-02-22 Tom Tromey <tom@tromey.com>
15193
15194 * tui/tui-win.c (tui_set_focus_command)
15195 (tui_set_win_height_command): Use error_no_arg.
15196 (_initialize_tui_win): Update help text.
15197 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15198
432b5c40
TT
151992020-02-22 Tom Tromey <tom@tromey.com>
15200
15201 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15202 * tui/tui-disasm.h (struct tui_disasm_window)
15203 <display_start_addr>: Declare.
15204 * tui/tui-source.h (struct tui_source_window)
15205 <display_start_addr>: Declare.
15206 * tui/tui-winsource.h (struct tui_source_window_base)
15207 <show_source_line, display_start_addr>: New methods.
15208 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15209 Rename and move to protected section.
15210 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15211 (tui_source_window_base::do_erase_source_content): Update.
15212 (tui_source_window_base::show_source_line): Now a method.
15213 (tui_source_window_base::show_source_content)
15214 (tui_source_window_base::tui_source_window_base)
15215 (tui_source_window_base::rerender)
15216 (tui_source_window_base::refill)
15217 (tui_source_window_base::do_scroll_horizontal)
15218 (tui_source_window_base::set_is_exec_point_at)
15219 (tui_source_window_base::update_breakpoint_info)
15220 (tui_source_window_base::update_exec_info): Update.
15221 * tui/tui-source.c (tui_source_window::set_contents)
15222 (tui_source_window::showing_source_p)
15223 (tui_source_window::do_scroll_vertical)
15224 (tui_source_window::location_matches_p)
15225 (tui_source_window::line_is_displayed): Update.
15226 (tui_source_window::display_start_addr): New method.
15227 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15228 (tui_disasm_window::do_scroll_vertical)
15229 (tui_disasm_window::location_matches_p): Update.
15230 (tui_disasm_window::display_start_addr): New method.
15231
01b1af32
TT
152322020-02-22 Tom Tromey <tom@tromey.com>
15233
15234 * NEWS: Add entry for gdb.register_window_type.
15235 * tui/tui-layout.h (window_factory): New typedef.
15236 (tui_register_window): Declare.
15237 * tui/tui-layout.c (saved_tui_windows): New global.
15238 (tui_apply_current_layout): Use it.
15239 (tui_register_window): New function.
15240 * python/python.c (do_start_initialization): Call
15241 gdbpy_initialize_tui.
15242 (python_GdbMethods): Add "register_window_type" function.
15243 * python/python-internal.h (gdbpy_register_tui_window)
15244 (gdbpy_initialize_tui): Declare.
15245 * python/py-tui.c: New file.
15246 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15247
fc96d20b
TT
152482020-02-22 Tom Tromey <tom@tromey.com>
15249
15250 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15251
935c78c0
TT
152522020-02-22 Tom Tromey <tom@tromey.com>
15253
15254 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15255 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15256 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15257 (tui_set_win_focus_to): Move from tui-win.c.
15258
0240c8f1
TT
152592020-02-22 Tom Tromey <tom@tromey.com>
15260
15261 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15262 functions.
15263 (known_window_types): New global.
15264 (tui_get_window_by_name): Reimplement.
15265 (initialize_known_windows): New function.
15266 (validate_window_name): Rewrite.
15267 (_initialize_tui_layout): Call initialize_known_windows.
15268
fdb01f0c
TT
152692020-02-22 Tom Tromey <tom@tromey.com>
15270
15271 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15272 Remove constants.
15273 * tui/tui-winsource.h (struct tui_source_window_base)
15274 <tui_source_window_base>: Remove parameter.
15275 * tui/tui-winsource.c
15276 (tui_source_window_base::tui_source_window_base): Remove
15277 parameter.
15278 (tui_source_window_base::refill): Update.
15279 * tui/tui-stack.h (struct tui_locator_window)
15280 <tui_locator_window>: Update.
15281 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15282 Default the constructor.
15283 * tui/tui-regs.h (struct tui_data_item_window)
15284 <tui_data_item_window>: Default the constructor.
15285 (struct tui_data_window) <tui_data_window>: Likewise.
15286 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15287 Default the constructor.
15288 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15289 Default the constructor.
15290 <type>: Remove.
15291 (struct tui_win_info) <tui_win_info>: Default the constructor.
15292 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15293 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15294 Default the constructor.
15295
865a5aec
TT
152962020-02-22 Tom Tromey <tom@tromey.com>
15297
15298 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15299 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15300 * tui/tui-win.c (tui_resize_all): Don't call
15301 tui_delete_invisible_windows.
15302 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15303 done.
15304 (tui_set_layout): Update.
15305 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15306 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15307 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15308
e098d18c
TT
153092020-02-22 Tom Tromey <tom@tromey.com>
15310
15311 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15312 correctly.
15313
eb9c8874
TT
153142020-02-22 Tom Tromey <tom@tromey.com>
15315
15316 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15317
7eed1a8e
TT
153182020-02-22 Tom Tromey <tom@tromey.com>
15319
15320 * tui/tui-winsource.h (struct tui_source_window_iterator)
15321 <inner_iterator>: New etytypedef.
15322 <tui_source_window_iterator>: Take "end" parameter.
15323 <tui_source_window_iterator>: Take iterator.
15324 <operator*, advance>: Update.
15325 <m_iter>: Change type.
15326 <m_end>: New field.
15327 (struct tui_source_windows) <begin, end>: Update.
15328 * tui/tui-layout.c (tui_windows): New global.
15329 (tui_apply_current_layout): Clear tui_windows.
15330 (tui_layout_window::apply): Update tui_windows.
15331 * tui/tui-data.h (tui_windows): Declare.
15332 (all_tui_windows): Now inline function.
15333 (class tui_window_iterator, struct all_tui_windows): Remove.
15334
7c043ba6
TT
153352020-02-22 Tom Tromey <tom@tromey.com>
15336
15337 PR tui/17850:
15338 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15339 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15340 "height" argument.
15341 (class tui_layout_window) <get_sizes>: Likewise.
15342 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15343 argument.
15344 <get_sizes>: Add "height" argument.
15345 <m_vertical>: New field.
15346 * tui/tui-layout.c (tui_layout_split::clone): Update.
15347 (tui_layout_split::get_sizes): Add "height" argument.
15348 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15349 (tui_new_layout_command): Parse "-horizontal".
15350 (_initialize_tui_layout): Update help string.
15351 (tui_layout_split::specification): Add "-horizontal" when needed.
15352 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15353 argument.
15354 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15355 New methods.
15356
6bc56648
TT
153572020-02-22 Tom Tromey <tom@tromey.com>
15358
15359 * tui/tui-layout.h (enum tui_adjust_result): New.
15360 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15361 (class tui_layout_window) <adjust_size>: Return
15362 tui_adjust_result. Rewrite.
15363 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15364 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15365
c22fef7e
TT
153662020-02-22 Tom Tromey <tom@tromey.com>
15367
15368 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15369 parameter and return types.
15370 (class tui_layout_base) <specification>: Add "depth".
15371 (class tui_layout_window) <specification>: Add "depth".
15372 (class tui_layout_split) <specification>: Add "depth".
15373 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15374 and return types.
15375 (tui_new_layout_command): Parse sub-layouts.
15376 (_initialize_tui_layout): Update help string.
15377 (tui_layout_window::specification): Add "depth".
15378 (add_layout_command): Update.
15379
ee325b61
TT
153802020-02-22 Tom Tromey <tom@tromey.com>
15381
15382 * NEWS: Add "tui new-layout" item.
15383 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15384 Add new-layout command to help text.
15385 (validate_window_name): New function.
15386 (tui_new_layout_command): New function.
15387 (_initialize_tui_layout): Register "new-layout".
15388 (tui_layout_window::specification): New method.
15389 (tui_layout_window::specification): New method.
15390 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15391 method.
15392 (class tui_layout_window) <specification>: New method.
15393 (class tui_layout_split) <specification>: New method.
15394
416eb92d
TT
153952020-02-22 Tom Tromey <tom@tromey.com>
15396
15397 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15398 * tui/tui-win.c (window_name_completer): Update comment.
15399 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15400 Declare method.
15401 (class tui_layout_window) <replace_window>: Likewise.
15402 (class tui_layout_split) <replace_window>: Likewise.
15403 (tui_set_layout): Don't declare.
15404 (tui_set_initial_layout): Declare function.
15405 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15406 (asm_regs_layout): New globals.
15407 (tui_current_layout, show_layout): Remove.
15408 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15409 (find_layout, tui_apply_layout): New function.
15410 (layout_completer): Remove.
15411 (tui_next_layout): Reimplement.
15412 (tui_next_layout_command): New function.
15413 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15414 (tui_regs_layout): Reimplement.
15415 (tui_regs_layout_command): New function.
15416 (extract_display_start_addr): Rewrite.
15417 (next_layout, prev_layout): Remove.
15418 (tui_layout_window::replace_window): New method.
15419 (tui_layout_split::replace_window): New method.
15420 (destroy_layout): New function.
15421 (layout_list): New global.
15422 (add_layout_command): New function.
15423 (initialize_layouts): Update.
15424 (tui_layout_command): New function.
15425 (_initialize_tui_layout): Install "layout" commands.
15426 * tui/tui-data.h (enum tui_layout_type): Remove.
15427 (tui_current_layout): Don't declare.
15428
0dbc2fc7
TT
154292020-02-22 Tom Tromey <tom@tromey.com>
15430
15431 * tui/tui-regs.c (tui_reg_layout): Remove.
15432 (tui_reg_command): Use tui_regs_layout.
15433 * tui/tui-layout.h (tui_reg_command): Declare.
15434 * tui/tui-layout.c (tui_reg_command): New function.
15435
5afe342e
TT
154362020-02-22 Tom Tromey <tom@tromey.com>
15437
15438 * tui/tui.c (tui_rl_delete_other_windows): Call
15439 tui_remove_some_windows.
15440 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15441 Declare method.
15442 (class tui_layout_window) <remove_windows>: New method.
15443 (class tui_layout_split) <remove_windows>: Declare.
15444 (tui_remove_some_windows): Declare.
15445 * tui/tui-layout.c (tui_remove_some_windows): New function.
15446 (tui_layout_split::remove_windows): New method.
15447
427326a8
TT
154482020-02-22 Tom Tromey <tom@tromey.com>
15449
15450 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15451 * tui/tui-layout.h (tui_next_layout): Declare.
15452 * tui/tui-layout.c (tui_next_layout): New function.
15453
3fe12b6d
TT
154542020-02-22 Tom Tromey <tom@tromey.com>
15455
15456 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15457 correct coordinates.
15458
59b8b5d2
TT
154592020-02-22 Tom Tromey <tom@tromey.com>
15460
15461 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15462 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15463 DATA_WIN case.
15464
2a3d458b
TT
154652020-02-22 Tom Tromey <tom@tromey.com>
15466
15467 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15468 TUI_DISASM_WIN, not tui_win_list.
15469
3f0cbb04
TT
154702020-02-22 Tom Tromey <tom@tromey.com>
15471
15472 * valprint.c (generic_val_print_enum_1)
15473 (val_print_type_code_flags): Style member names.
15474 * rust-lang.c (val_print_struct, rust_print_enum)
15475 (rust_print_struct_def, rust_internal_print_type): Style member
15476 names.
15477 * p-valprint.c (pascal_object_print_value_fields): Style member
15478 names. Only call fprintf_symbol_filtered for static members.
15479 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15480 * f-valprint.c (f_val_print): Style member names.
15481 * f-typeprint.c (f_type_print_base): Style member names.
15482 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15483 call fprintf_symbol_filtered for static members.
15484 (cp_print_class_member): Style member names.
15485 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15486 member names.
15487 * ada-valprint.c (ada_print_scalar): Style enum names.
15488 (ada_val_print_enum): Likewise.
15489 * ada-typeprint.c (print_enum_type): Style enum names.
15490
d4d947ae
TT
154912020-02-21 Tom Tromey <tom@tromey.com>
15492
15493 * psympriv.h (struct partial_symtab): Update comment.
15494
e94e944b
TT
154952020-02-21 Tom Tromey <tromey@adacore.com>
15496
15497 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15498 type is CORE_ADDR.
15499
1eb73179
TV
155002020-02-21 Tom de Vries <tdevries@suse.de>
15501
15502 PR gdb/25534
15503 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15504 if dependencies[i]->user != NULL.
15505
4f180d53
AT
155062020-02-21 Ali Tamur <tamur@google.com>
15507
15508 * dwarf2/read.c (dwarf2_name): Add null check.
15509
22b6cd70
TT
155102020-02-20 Tom Tromey <tom@tromey.com>
15511
15512 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15513 ">=", in binary search.
15514 (dwarf2_find_containing_comp_unit): New overload.
15515 (run_test): New self-test.
15516 (_initialize_dwarf2_read): Register new test.
15517
bd0cf5a6
NC
155182020-02-20 Nelson Chu <nelson.chu@sifive.com>
15519
15520 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15521 * riscv-tdep.h: Likewise.
15522 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15523 rv32-only CSR.
15524 * features/riscv/64bit-csr.xml: Regenerated.
15525
3f702acd
SDJ
155262020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15527 Tom Tromey <tom@tromey.com>
15528
15529 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15530 of 'fputc_unfiltered'.
15531 (putchar_unfiltered): Call 'fputc_unfiltered'.
15532 (fputc_unfiltered): Call 'fputs_unfiltered'.
15533
d13c7322
AB
155342020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15535
15536 * config.in: Regenerate.
15537 * configure: Regenerate.
15538 * configure.ac: Add --with-python-libdir option.
15539 * main.c: Use WITH_PYTHON_LIBDIR.
15540
869d8950
TT
155412020-02-19 Tom Tromey <tom@tromey.com>
15542
15543 * symtab.c (general_symbol_info::compute_and_set_names): Use
15544 obstack_strndup. Simplify call to symbol_set_demangled_name.
15545
298e9637
SM
155462020-02-19 Simon Marchi <simon.marchi@efficios.com>
15547
15548 * dwarf2/read.c (allocate_signatured_type_table,
15549 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15550 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15551 Remove objfile parameter, update all callers.
15552
08410482
DE
155532020-02-19 Doug Evans <dje@google.com>
15554
15555 PR rust/25535
15556 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15557 rust_enum_variant calculation.
15558
dfdeeca1
TT
155592020-02-19 Tom Tromey <tromey@adacore.com>
15560
15561 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15562
2ef5453b
TT
155632020-02-19 Tom Tromey <tromey@adacore.com>
15564
15565 * ada-lang.c (cache_symbol): Use obstack_strdup.
15566
9f1528a1
AB
155672020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15568
15569 * configure: Regenerate.
15570
d3c22fa8
TT
155712020-02-19 Tom Tromey <tromey@adacore.com>
15572
15573 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15574 NULL check.
15575
bf84f706
MR
155762020-02-19 Maciej W. Rozycki <macro@wdc.com>
15577
15578 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15579
d1c9b20f
AB
155802020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15581
15582 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15583 if GDBSERVER is not defined.
15584 (riscv_tdesc_cache): Likewise, also store const target_desc.
15585 (STATIC_IN_GDB): Define.
15586 (riscv_create_target_description): Update declaration with
15587 STATIC_IN_GDB.
15588 (riscv_lookup_target_description): New function, only define if
15589 GDBSERVER is not defined.
15590 * arch/riscv.h (riscv_create_target_description): Declare only
15591 when GDBSERVER is defined.
15592 (riscv_lookup_target_description): New declaration when GDBSERVER
15593 is not defined.
15594 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15595 (riscv_linux_read_features): ...this, and return
15596 riscv_gdbarch_features instead of target_desc.
15597 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15598 (riscv_linux_read_description): Rename to...
15599 (riscv_linux_read_features): ...this.
15600 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15601 Update to use riscv_gdbarch_features and
15602 riscv_lookup_target_description.
15603 * riscv-tdep.c (riscv_find_default_target_description): Use
15604 riscv_lookup_target_description instead of
15605 riscv_create_target_description.
15606
373d7ac0
SM
156072020-02-18 Simon Marchi <simon.marchi@efficios.com>
15608
15609 * valprint.c (generic_val_print_enum_1): When printing a flag
15610 enum with value 0 and there is no enumerator with value 0, print
15611 just "0" instead of "(unknown: 0x0)".
15612
b29a2df0
SM
156132020-02-18 Simon Marchi <simon.marchi@efficios.com>
15614
15615 * valprint.c (generic_val_print_enum_1): Print unknown part of
15616 flag enum in hex.
15617
6740f0cc
SM
156182020-02-18 Simon Marchi <simon.marchi@efficios.com>
15619
15620 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15621 flag enums to contain duplicate enumerators.
15622 * valprint.c (generic_val_print_enum_1): Update comment.
15623
edd45eb0
SM
156242020-02-18 Simon Marchi <simon.marchi@efficios.com>
15625
15626 * dwarf2/read.c: Include "count-one-bits.h".
15627 (update_enumeration_type_from_children): If an enumerator has
15628 multiple bits set, don't treat the enumeration as a "flag enum".
15629 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15630 of flag enums have 0 or 1 bit set.
15631
6d0cf446
BE
156322020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15633
15634 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15635 conversion.
15636 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15637 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15638 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15639 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15640 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15641
7001c1b7
SM
156422020-02-18 Simon Marchi <simon.marchi@efficios.com>
15643
15644 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15645
fdb61c6c
SM
156462020-02-14 Simon Marchi <simon.marchi@efficios.com>
15647
15648 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15649 displaced_step_closure_up.
15650 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15651 (struct displaced_step_closure_up):
15652 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15653 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15654 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15655 Likewise.
15656 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15657 * gdbarch.c, gdbarch.h: Re-generate.
15658 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15659 displaced_step_closure_up.
15660 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15661 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15662 * infrun.h (displaced_step_closure_up): New type alias.
15663 (struct displaced_step_inferior_state) <step_closure>: Change
15664 type to displaced_step_closure_up.
15665 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15666 displaced_step_closure_up.
15667 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15668
a4a38eb4
TT
156692020-02-14 Tom Tromey <tom@tromey.com>
15670
15671 * minidebug.c (gnu_debug_key): New global.
15672 (find_separate_debug_file_in_section): Use it.
15673
e8217e61
SM
156742020-02-14 Simon Marchi <simon.marchi@efficios.com>
15675
15676 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15677 std::unique_ptr.
15678 * gdbarch.c: Re-generate.
15679 * gdbarch.h: Re-generate.
15680 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15681 change.
15682 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15683 type to std::unique_ptr.
15684 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15685 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15686 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15687 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15688 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15689 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15690 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15691 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15692 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15693
d8d83535
SM
156942020-02-14 Simon Marchi <simon.marchi@efficios.com>
15695
15696 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15697 std::unique_ptr.
15698 (displaced_step_clear): Rename to...
15699 (displaced_step_reset): ... this. Just call displaced->reset ().
15700 (displaced_step_clear_cleanup): Rename to...
15701 (displaced_step_reset_cleanup): ... this.
15702 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15703 (displaced_step_fixup): Likewise.
15704 (resume_1): Likewise.
15705 (handle_inferior_event): Restore child's memory before calling
15706 displaced_step_fixup on the parent.
15707 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15708 to std::unique_ptr.
15709 <step_closure>: Change type to std::unique_ptr.
15710
5f661e03
SM
157112020-02-14 Simon Marchi <simon.marchi@efficios.com>
15712
15713 * arm-tdep.c: Include count-one-bits.h.
15714 (cleanup_block_store_pc): Use count_one_bits.
15715 (cleanup_block_load_pc): Use count_one_bits.
15716 (arm_copy_block_xfer): Use count_one_bits.
15717 (thumb2_copy_block_xfer): Use count_one_bits.
15718 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15719 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15720 (thumb_get_next_pcs_raw): Use count_one_bits.
15721 (arm_get_next_pcs_raw): Use count_one_bits_l.
15722 * arch/arm.c (bitcount): Remove.
15723 * arch/arm.h (bitcount): Remove.
15724
8084e579
TT
157252020-02-14 Tom Tromey <tromey@adacore.com>
15726
15727 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15728 Update.
15729 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15730 * dwarf2/loc.c (call_site_find_chain_1): Return
15731 unique_xmalloc_ptr.
15732 (call_site_find_chain): Likewise.
15733
258bf0ee
RB
157342020-02-14 Richard Biener <rguenther@suse.de>
15735
15736 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15737 on expression with division operators.
15738
f98a8458
AKS
157392020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15740
15741 * MAINTAINERS (Write After Approval): Adding myself.
15742
d1437c0e
TT
157432020-02-12 Tom Tromey <tom@tromey.com>
15744
15745 * event-loop.c (event_data, gdb_event, event_handler_func):
15746 Remove.
15747
3d4560f7
TT
157482020-02-12 Tom Tromey <tom@tromey.com>
15749
15750 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15751 (dwarf2_frame_objfile_data): Add comment.
15752 (find_comp_unit, set_comp_unit): New functions.
15753 (dwarf2_frame_find_fde): Use find_comp_unit.
15754 (dwarf2_build_frame_info): Use set_comp_unit.
15755
21982304
TT
157562020-02-12 Tom Tromey <tom@tromey.com>
15757
15758 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15759 (comp_unit): Don't initialize objfile.
15760 (execute_cfa_program): Add text_offset parameter.
15761 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15762 (dwarf2_frame_cache): Update.
15763 (dwarf2_build_frame_info): Don't set "objfile" member.
15764
4debb237
TT
157652020-02-12 Tom Tromey <tom@tromey.com>
15766
15767 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15768 (decode_frame_entry): Likewise.
15769 (dwarf2_build_frame_info): Update.
15770
0d404d44
TT
157712020-02-12 Tom Tromey <tom@tromey.com>
15772
15773 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15774 (decode_frame_entry_1): Use the comp_unit obstack.
15775
a7a3ae5c
TT
157762020-02-12 Tom Tromey <tom@tromey.com>
15777
15778 * dwarf2/frame.c (struct comp_unit): Add initializers and
15779 constructor.
15780 (dwarf2_frame_objfile_data): Store a comp_unit.
15781 (dwarf2_frame_find_fde): Update.
15782 (dwarf2_build_frame_info): Use "new".
15783
a9d65418
TT
157842020-02-12 Tom Tromey <tom@tromey.com>
15785
15786 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15787 (dwarf2_fde_table): Typedef for std::vector.
15788 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15789 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15790 (decode_frame_entry): Update.
15791 (dwarf2_build_frame_info): Use "new".
15792
7559c217
CB
157932020-02-12 Christian Biesinger <cbiesinger@google.com>
15794
15795 * arm-tdep.c (arm_gdbarch_init): Update.
15796 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15797 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15798 have_neon, is_m>: Change to bool.
15799
aeefc73c
CB
158002020-02-12 Christian Biesinger <cbiesinger@google.com>
15801
15802 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15803
d27b8e5f
TT
158042020-02-12 Tom Tromey <tom@tromey.com>
15805
15806 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15807
cd5900f3
HD
158082020-02-12 Hannes Domani <ssbssa@yahoo.de>
15809
15810 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15811 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15812
f056b22b
TT
158132020-02-11 Tom Tromey <tom@tromey.com>
15814
15815 * psymtab.h: Update comment.
15816
f92ff6b5
TT
158172020-02-11 Tom Tromey <tom@tromey.com>
15818
15819 * gdb_obstack.h (struct auto_obstack): Use
15820 DISABLE_COPY_AND_ASSIGN.
15821
3fd6912b
TT
158222020-02-11 Tom Tromey <tom@tromey.com>
15823
15824 * dwarf2/frame.h (struct objfile): Don't forward declare.
15825
69ed9b74
CB
158262020-02-11 Christian Biesinger <cbiesinger@google.com>
15827
15828 * cris-tdep.c (cris_supply_gregset): Change signature to match
15829 what struct regset expects.
15830 (cris_regset): New struct.
15831 (fetch_core_registers): Remove.
15832 (cris_iterate_over_regset_sections): New function.
15833 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15834 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15835
bda874f6
CB
158362020-02-11 Christian Biesinger <cbiesinger@google.com>
15837
15838 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15839 registers.
15840
754e1564
CB
158412020-02-11 Christian Biesinger <cbiesinger@google.com>
15842
15843 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15844
8ddd8e0e
SM
158452020-02-11 Simon Marchi <simon.marchi@efficios.com>
15846
15847 * configure: Re-generate.
15848
898e7f60
SM
158492020-02-11 Simon Marchi <simon.marchi@efficios.com>
15850
15851 * configure: Re-generate.
15852
58df732b
SM
158532020-02-11 Simon Marchi <simon.marchi@efficios.com>
15854
15855 * acinclude: Update warning.m4 path.
15856 * warning.m4: Move to gdbsupport.
15857
da5bd37e
TT
158582020-02-11 Tom Tromey <tromey@adacore.com>
15859
15860 * remote.c (remote_console_output): Update.
15861 * printcmd.c (printf_command): Update.
15862 * event-loop.c (gdb_wait_for_event): Update.
15863 * linux-nat.c (sigchld_handler): Update.
15864 * remote-sim.c (gdb_os_write_stdout): Update.
15865 (gdb_os_flush_stdout): Update.
15866 (gdb_os_flush_stderr): Update.
15867 (gdb_os_write_stderr): Update.
15868 * exceptions.c (print_exception): Update.
15869 * remote-fileio.c (remote_fileio_func_read): Update.
15870 (remote_fileio_func_write): Update.
15871 * tui/tui.c (tui_enable): Update.
15872 * tui/tui-interp.c (tui_interp::init): Update.
15873 * utils.c (init_page_info): Update.
15874 (putchar_unfiltered, fputc_unfiltered): Update.
15875 (gdb_flush): Update.
15876 (emit_style_escape): Update.
15877 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15878 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15879 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15880 (stderr_file::write): Update.
15881 (stderr_file::puts): Update.
15882 * ui-file.h (ui_file_isatty, ui_file_write)
15883 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15884 (ui_file_puts): Don't declare.
15885
85f0dd3c
TV
158862020-02-10 Tom de Vries <tdevries@suse.de>
15887
15888 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15889 sentinel to char *.
15890
2e927613
TV
158912020-02-09 Tom de Vries <tdevries@suse.de>
15892
15893 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15894 filename if it matches "<artificial>".
15895
6bafc845
HD
158962020-02-09 Hannes Domani <ssbssa@yahoo.de>
15897
15898 * windows-tdep.c (struct enum_value_name): New struct.
15899 (create_enum): New function.
15900 (windows_get_siginfo_type): Create and use enum types.
15901
7928d571
HD
159022020-02-09 Hannes Domani <ssbssa@yahoo.de>
15903
15904 * NEWS: Mention $_siginfo support for Windows.
15905 * windows-nat.c (handle_exception): Set siginfo_er.
15906 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15907 (windows_xfer_siginfo): New function.
15908 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15909 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15910 (init_windows_gdbarch_data): New function.
15911 (get_windows_gdbarch_data): New function.
15912 (windows_get_siginfo_type): New function.
15913 (windows_init_abi): Register windows_get_siginfo_type.
15914 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15915
6751ebae
TT
159162020-02-08 Tom Tromey <tom@tromey.com>
15917
15918 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15919 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15920 <keep>: Declare method.
15921 <m_keep>: Remove member.
15922 <~cutu_reader>: Remove.
15923 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15924 (cutu_reader::cutu_reader): Update.
15925 (cutu_reader::keep): Rename from ~cutu_reader.
15926 (process_psymtab_comp_unit, build_type_psymtabs_1)
15927 (process_skeletonless_type_unit, load_partial_comp_unit)
15928 (load_full_comp_unit, dwarf2_read_addr_index)
15929 (read_signatured_type): Update.
15930
135f5437
TT
159312020-02-08 Tom Tromey <tom@tromey.com>
15932
15933 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15934 "want_partial_unit" parameter.
15935 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15936 Inline check for DW_TAG_partial_unit.
15937 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15938
9f66ff1c
TT
159392020-02-08 Tom Tromey <tom@tromey.com>
15940
15941 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15942 read.c.
15943 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15944 read.c.
15945
c8a7a66f
TT
159462020-02-08 Tom Tromey <tom@tromey.com>
15947
15948 * dwarf2/read.c (read_address): Move to comp-unit.c.
15949 (dwarf2_rnglists_process, dwarf2_ranges_process)
15950 (read_attribute_value, dwarf_decode_lines_1)
15951 (var_decode_location, decode_locdesc): Update.
15952 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
15953 read.c. Remove "cu" parameter.
15954 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
15955 method.
15956
8266302d
TT
159572020-02-08 Tom Tromey <tom@tromey.com>
15958
15959 * dwarf2/read.c (read_attribute_value, read_indirect_string)
15960 (read_indirect_line_string): Update.
15961 * dwarf2/comp-unit.c (read_offset): Remove.
15962 (read_comp_unit_head): Update.
15963 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
15964 method.
15965 (read_offset): Don't declare.
15966
4057dfde
TT
159672020-02-08 Tom Tromey <tom@tromey.com>
15968
15969 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
15970 * dwarf2/read.c (struct comp_unit_head): Move to
15971 dwarf2/comp-unit.h.
15972 (enum class rcuh_kind): Move to comp-unit.h.
15973 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
15974 (read_comp_unit_head, error_check_comp_unit_head)
15975 (read_and_check_comp_unit_head): Move to comp-unit.c.
15976 (read_offset, dwarf_unit_type_name): Likewise.
15977 (create_debug_type_hash_table, read_cutu_die_from_dwo)
15978 (cutu_reader::cutu_reader, read_call_site_scope)
15979 (find_partial_die, follow_die_offset): Update.
15980 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
15981
24aa364d
TT
159822020-02-08 Tom Tromey <tom@tromey.com>
15983
15984 * dwarf2/read.c (read_offset_1): Move to leb.c.
15985 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
15986 (dwarf_decode_macro_bytes): Update.
15987 * dwarf2/leb.c (read_offset): Rename; move from read.c.
15988 * dwarf2/leb.h (read_offset): Declare.
15989
2c7d5afc
TT
159902020-02-08 Tom Tromey <tom@tromey.com>
15991
15992 * dwarf2/read.c (dwarf2_section_size): Remove.
15993 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
15994 Update.
15995 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
15996
4075cb26
TT
159972020-02-08 Tom Tromey <tom@tromey.com>
15998
15999 * dwarf2/read.c (read_initial_length): Move to leb.c.
16000 * dwarf2/leb.h (read_initial_length): Declare.
16001 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
16002 handle_nonstd parameter.
16003 * dwarf2/frame.c (read_initial_length): Remove.
16004 (decode_frame_entry_1): Update.
16005
09ba997f
TT
160062020-02-08 Tom Tromey <tom@tromey.com>
16007
16008 * dwarf2/loc.c (dwarf2_find_location_expression)
16009 (dwarf_evaluate_loc_desc::get_tls_address)
16010 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16011 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
16012 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
16013 (dwarf2_compile_property_to_c)
16014 (dwarf2_loc_desc_get_symbol_read_needs)
16015 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
16016 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
16017 (loclist_describe_location, loclist_tracepoint_var_ref)
16018 (loclist_generate_c_location): Update.
16019 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
16020 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
16021 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
16022 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
16023 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
16024 (dwarf2_per_cu_data::addr_size)
16025 (dwarf2_per_cu_data::ref_addr_size)
16026 (dwarf2_per_cu_data::text_offset)
16027 (dwarf2_per_cu_data::addr_type): Now methods.
16028 (per_cu_header_read_in): Make per_cu "const".
16029 (dwarf2_version): Remove.
16030 (dwarf2_per_cu_data::int_type): Now a method.
16031 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
16032 (set_die_type, read_array_type, read_subrange_index_type)
16033 (read_tag_string_type, read_subrange_type): Update.
16034 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
16035 offset_size, ref_addr_size, text_offset, addr_type, version,
16036 objfile, int_type, addr_sized_int_type>: Declare methods.
16037
96c738c0
TT
160382020-02-08 Tom Tromey <tom@tromey.com>
16039
16040 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
16041 Move earlier.
16042
8fdd972c
TT
160432020-02-08 Tom Tromey <tom@tromey.com>
16044
16045 * dwarf2/read.h (dwarf_line_debug): Declare.
16046 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
16047 * dwarf2/read.c: Move line_header code to new files.
16048 (dwarf_line_debug): No longer static.
16049 * dwarf2/line-header.c: New file.
16050 * dwarf2/line-header.h: New file.
16051
03075812
TT
160522020-02-08 Tom Tromey <tom@tromey.com>
16053
16054 * dwarf2/read.c (struct line_header) <file_full_name,
16055 file_file_name>: Return unique_xmalloc_ptr.
16056 (line_header::file_file_name): Update.
16057 (line_header::file_full_name): Update.
16058 (dw2_get_file_names_reader): Update.
16059 (macro_start_file): Update.
16060
bb822404
TT
160612020-02-08 Tom Tromey <tom@tromey.com>
16062
16063 * dwarf2/read.c (struct line_header) <file_full_name,
16064 file_file_name>: Declare methods.
16065 (dw2_get_file_names_reader): Update.
16066 (file_file_name): Now a method.
16067 (file_full_name): Likewise.
16068 (macro_start_file): Update.
16069
009b64fc
TT
160702020-02-08 Tom Tromey <tom@tromey.com>
16071
16072 * dwarf2/read.c (dwarf_always_disassemble)
16073 (show_dwarf_always_disassemble): Move to loc.c.
16074 (_initialize_dwarf2_read): Move "always-disassemble" registration
16075 to loc.c.
16076 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
16077 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
16078 static.
16079 (show_dwarf_always_disassemble): Move from read.c.
16080 (_initialize_dwarf2loc): Move always-disassemble from read.c.
16081
5895093f
TT
160822020-02-08 Tom Tromey <tom@tromey.com>
16083
16084 * dwarf2/read.c (~dwarf2_per_objfile): Update.
16085 (create_quick_file_names_table): Return htab_up.
16086 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
16087 Update.
16088 * dwarf2/read.h (struct dwarf2_per_objfile)
16089 <quick_file_names_table>: Now htab_up.
16090
b3b32279
TT
160912020-02-08 Tom Tromey <tom@tromey.com>
16092
16093 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
16094
1d33d811
TT
160952020-02-08 Tom Tromey <tom@tromey.com>
16096
16097 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
16098 Rewrite.
16099 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
16100 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
16101 (abbrev_table::abbrev_table): No longer inline.
16102 (ABBREV_HASH_SIZE): Remove.
16103 (abbrev_table::m_abbrevs): Now an htab_up.
16104
86de1d91
TT
161052020-02-08 Tom Tromey <tom@tromey.com>
16106
16107 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
16108 (cutu_reader): Update.
16109 (build_type_psymtabs_1): Update.
16110 * dwarf2/abbrev.c (abbrev_table::read): Rename.
16111 (abbrev_table::alloc_abbrev): Update.
16112 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
16113 (abbrev_table::read): New static method, renamed from
16114 abbrev_table_read_table.
16115 (abbrev_table::alloc_abbrev)
16116 (abbrev_table::add_abbrev): Now private.
16117 (abbrev_table::abbrev_table): Now private.
16118 (abbrev_table::m_abbrev_obstack): Now private. Rename.
16119
0335378b
TT
161202020-02-08 Tom Tromey <tom@tromey.com>
16121
16122 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
16123 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
16124 htab_up.
16125
48b490f2
TT
161262020-02-08 Tom Tromey <tom@tromey.com>
16127
16128 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
16129 htab_up.
16130 (lookup_dwo_unit_in_dwp): Update.
16131 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16132 on obstack.
16133
bc68fb19
TT
161342020-02-08 Tom Tromey <tom@tromey.com>
16135
16136 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16137 obstack.
16138
d15acc42
TT
161392020-02-08 Tom Tromey <tom@tromey.com>
16140
16141 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16142 line_header_hash.
16143 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16144 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16145 Change type to htab_up.
16146
eaa5fa8b
TT
161472020-02-08 Tom Tromey <tom@tromey.com>
16148
16149 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16150 htab_up. Don't allocate on obstack.
16151 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16152 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16153 Change type to htab_up.
16154
b0b6a987
TT
161552020-02-08 Tom Tromey <tom@tromey.com>
16156
16157 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16158 Change type to htab_up.
16159 * dwarf2/read.c (create_signatured_type_table_from_index)
16160 (create_signatured_type_table_from_debug_names)
16161 (create_all_type_units, add_type_unit)
16162 (lookup_dwo_signatured_type, lookup_signatured_type)
16163 (process_skeletonless_type_unit): Update.
16164 (create_debug_type_hash_table, create_debug_types_hash_table):
16165 Change type of types_htab.
16166 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16167 htab_up. Don't allocate on obstack.
16168 (create_cus_hash_table): Change type of cus_htab parameter.
16169 (struct dwo_file) <cus, tus>: Now htab_up.
16170 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16171 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16172 (queue_and_load_all_dwo_tus): Update.
16173 * dwarf2/index-write.c (write_gdbindex): Update.
16174 (write_debug_names): Update.
16175
39856def
TT
161762020-02-08 Tom Tromey <tom@tromey.com>
16177
16178 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16179 dwarf2/read.c. Remove "next" member. Add constructor ntad
16180 destructor.
16181 (struct dwarf2_per_objfile) <queue>: New member.
16182 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16183 dwarf2/read.h.
16184 (dwarf2_queue, dwarf2_queue_tail): Remove.
16185 (class dwarf2_queue_guard): Add parameter to constructor. Use
16186 DISABLE_COPY_AND_ASSIGN.
16187 <m_per_objfile>: New member.
16188 <~dwarf2_queue_guard>: Rewrite.
16189 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16190 Update.
16191 (~dwarf2_queue_item): New.
16192
3e225074
TT
161932020-02-08 Tom Tromey <tom@tromey.com>
16194
16195 * dwarf2/read.c (struct die_info) <has_children>: New member.
16196 (dw2_get_file_names_reader): Remove has_children.
16197 (dw2_get_file_names): Update.
16198 (read_cutu_die_from_dwo): Remove has_children.
16199 (cutu_reader::init_tu_and_read_dwo_dies)
16200 (cutu_reader::cutu_reader): Update.
16201 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16202 Remove has_children.
16203 (build_type_psymtabs_1, process_skeletonless_type_unit)
16204 (load_partial_comp_unit, load_full_comp_unit): Update.
16205 (create_dwo_cu_reader): Remove has_children.
16206 (create_cus_hash_table, read_die_and_children): Update.
16207 (read_full_die_1,read_full_die): Remove has_children.
16208 (read_signatured_type): Update.
16209 (class cutu_reader) <has_children>: Remove.
16210
82ca8957
TT
162112020-02-08 Tom Tromey <tom@tromey.com>
16212
16213 * dwarf2/expr.c: Rename from dwarf2expr.c.
16214 * dwarf2/expr.h: Rename from dwarf2expr.h.
16215 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16216 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16217 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16218 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16219 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16220 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16221 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16222 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16223 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16224 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16225 * dwarf2/loc.c: Rename from dwarf2loc.c.
16226 * dwarf2/loc.h: Rename from dwarf2loc.h.
16227 * dwarf2/read.c: Rename from dwarf2read.c.
16228 * dwarf2/read.h: Rename from dwarf2read.h.
16229 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16230 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16231 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16232 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16233 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16234 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16235 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16236 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16237 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16238 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16239 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16240 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16241 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16242 Update.
16243 * Makefile.in (COMMON_SFILES): Update.
16244 (HFILES_NO_SRCDIR): Update.
16245
9e35d499
TT
162462020-02-08 Tom Tromey <tom@tromey.com>
16247
16248 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16249 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16250
1eba2311
TT
162512020-02-08 Tom Tromey <tom@tromey.com>
16252
16253 * dwarf2read.h (struct die_info): Don't declare.
16254
e41c2da2
TT
162552020-02-08 Tom Tromey <tom@tromey.com>
16256
16257 * dwarf2read.h (die_info_ptr): Remove typedef.
16258
4fc6c0d5
TT
162592020-02-08 Tom Tromey <tom@tromey.com>
16260
16261 * dwarf2read.c (read_call_site_scope)
16262 (handle_data_member_location, dwarf2_add_member_fn)
16263 (mark_common_block_symbol_computed, read_common_block)
16264 (attr_to_dynamic_prop, partial_die_info::read)
16265 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16266 (dwarf2_symbol_mark_computed, set_die_type): Update.
16267 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16268 method.
16269 (attr_form_is_block): Don't declare.
16270 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16271
cd6c91b4
TT
162722020-02-08 Tom Tromey <tom@tromey.com>
16273
16274 * dwarf2read.c (dwarf2_find_base_address, )
16275 (read_call_site_scope, rust_containing_type)
16276 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16277 (handle_data_member_location, dwarf2_add_member_fn)
16278 (get_alignment, read_structure_type, process_structure_scope)
16279 (mark_common_block_symbol_computed, read_common_block)
16280 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16281 (partial_die_info::read, read_attribute_value, new_symbol)
16282 (lookup_die_type, dwarf2_get_ref_die_offset)
16283 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16284 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16285 (dwarf2_symbol_mark_computed): Update.
16286 * dwarf2/attribute.h (struct attribute) <value_as_address,
16287 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16288 methods.
16289 (value_as_address, attr_form_is_section_offset)
16290 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16291 * dwarf2/attribute.c (attribute::value_as_address)
16292 (attribute::form_is_section_offset, attribute::form_is_constant)
16293 (attribute::form_is_ref): Now methods.
16294
162dce55
TT
162952020-02-08 Tom Tromey <tom@tromey.com>
16296
16297 * dwarf2read.c (struct attribute, DW_STRING)
16298 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16299 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16300 (attr_form_is_block, attr_form_is_section_offset)
16301 (attr_form_is_constant, attr_form_is_ref): Move.
16302 * dwarf2/attribute.h: New file.
16303 * dwarf2/attribute.c: New file, from dwarf2read.c.
16304 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16305
3054dd54
TT
163062020-02-08 Tom Tromey <tom@tromey.com>
16307
16308 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16309 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16310 Move.
16311 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16312 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16313 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16314 abbrev.c.
16315 * dwarf2/abbrev.h: New file.
16316 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16317 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16318
96b79293
TT
163192020-02-08 Tom Tromey <tom@tromey.com>
16320
16321 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16322 (dwarf2_section_size, dwarf2_get_section_info)
16323 (create_signatured_type_table_from_debug_names)
16324 (create_addrmap_from_aranges, read_debug_names_from_section)
16325 (get_gdb_index_contents_from_section, read_comp_unit_head)
16326 (error_check_comp_unit_head, read_abbrev_offset)
16327 (create_debug_type_hash_table, init_cu_die_reader)
16328 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16329 (read_comp_units_from_section, create_cus_hash_table)
16330 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16331 (create_dwp_v2_section, dwarf2_rnglists_process)
16332 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16333 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16334 (read_indirect_string_from_dwz, read_addr_index_1)
16335 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16336 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16337 (fill_in_loclist_baton): Update.
16338 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16339 get_containing_section, get_bfd_owner, get_bfd_section,
16340 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16341 (dwarf2_read_section, get_section_name, get_section_file_name)
16342 (get_containing_section, get_section_bfd_owner)
16343 (get_section_bfd_section, get_section_name, get_section_file_name)
16344 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16345 declare.
16346 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16347 (dwarf2_section_info::get_bfd_owner)
16348 (dwarf2_section_info::get_bfd_section)
16349 (dwarf2_section_info::get_name)
16350 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16351 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16352 (dwarf2_section_info::read): Now methods.
16353 * dwarf-index-write.c (class debug_names): Update.
16354
2c86cff9
TT
163552020-02-08 Tom Tromey <tom@tromey.com>
16356
16357 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16358 Move to dwarf2/section.h.
16359 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16360 (get_section_bfd_section, get_section_name)
16361 (get_section_file_name, get_section_id, get_section_flags)
16362 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16363 dwarf2/section.c.
16364 * dwarf2/section.h: New file.
16365 * dwarf2/section.c: New file, from dwarf2read.c.
16366 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16367
f4382c45
TT
163682020-02-08 Tom Tromey <tom@tromey.com>
16369
16370 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16371 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16372 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16373 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16374 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16375 * dwarf2/leb.h: New file, from dwarf2read.c.
16376 * dwarf2/leb.c: New file, from dwarf2read.c.
16377 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16378 Remove.
16379 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16380 (COMMON_SFILES): Add dwarf2/leb.c.
16381
01840b7a
JB
163822020-02-08 Joel Brobecker <brobecker@adacore.com>
16383
16384 GDB 9.1 released.
16385
dfcb27e4
IB
163862020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16387
16388 PR gdb/25190:
aac66a4c
SM
16389 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16390 * gdb/remote.c (remote_console_output): Update.
16391 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16392 (ui_file_puts): ...this.
16393 * gdb/ui-file.h (ui_file_puts): Add declaration.
16394 * gdb/utils.c (emit_style_escape): Update.
16395 (flush_wrap_buffer): Update.
16396 (fputs_maybe_filtered): Update.
16397 (fputs_unfiltered): Add function.
dfcb27e4 16398
faa17681
IB
163992020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16400
aac66a4c
SM
16401 * gdb/event-loop.c (gdb_wait_for_event): Update.
16402 * gdb/printcmd.c (printf_command): Update.
16403 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16404 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16405 (gdb_os_flush_stderr): Update.
16406 * gdb/remote.c (remote_console_output): Update.
16407 * gdb/ui-file.c (gdb_flush): Rename to...
16408 (ui_file_flush): ...this.
16409 (stderr_file::write): Update.
16410 (stderr_file::puts): Update.
16411 * gdb/ui-file.h (gdb_flush): Rename to...
16412 (ui_file_flush): ...this.
16413 * gdb/utils.c (gdb_flush): Add function.
16414 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16415
5abbbe1d
TT
164162020-02-07 Tom Tromey <tromey@adacore.com>
16417
16418 PR breakpoints/24915:
16419 * source.c (find_and_open_source): Do not check basenames_may_differ.
16420
919adfe8
TT
164212020-02-07 Tom Tromey <tom@tromey.com>
16422
16423 * README: Update gdbserver documentation.
16424 * gdbserver: Move to top level.
16425 * configure.tgt (build_gdbserver): Remove.
16426 * configure.ac: Remove --enable-gdbserver.
16427 * configure: Rebuild.
16428 * Makefile.in (distclean): Don't mention gdbserver.
16429
1d5d29e7
SV
164302020-02-06 Shahab Vahedi <shahab@synopsys.com>
16431
16432 * source-cache.c (source_cache::ensure): Surround
16433 get_plain_source_lines with a try/catch.
16434 (source_cache::get_line_charpos): Get rid of try/catch
16435 and only check for the return value of "ensure".
16436 * tui/tui-source.c (tui_source_window::set_contents):
16437 Simplify "nlines" calculation.
16438
6eb1129c
SV
164392020-02-06 Shahab Vahedi <shahab@synopsys.com>
16440
16441 * MAINTAINERS (Write After Approval): Add myself.
16442
c6a42d11
CB
164432020-02-05 Christian Biesinger <cbiesinger@google.com>
16444
16445 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16446 function call.
16447
c8ecdda6
CB
164482020-02-05 Christian Biesinger <cbiesinger@google.com>
16449
16450 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16451
f6480e70
MR
164522020-02-05 Maciej W. Rozycki <macro@wdc.com>
16453
16454 * nat/riscv-linux-tdesc.h: New file.
16455 * nat/riscv-linux-tdesc.c: New file, taking code from...
16456 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16457 ... here.
16458 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16459 NATDEPFILES.
16460
dcc9fbc6
AB
164612020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16462
16463 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16464 we don't set the fake simulator ptid to the null_ptid.
16465
719546c4
SM
164662020-02-03 Simon Marchi <simon.marchi@efficios.com>
16467
16468 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16469 * gdbthread.h (class thread_info) <resumed>: Likewise.
16470 * infrun.c (resume_1): Likewise.
16471 (proceed): Likewise.
16472 (infrun_thread_stop_requested): Likewise.
16473 (stop_all_threads): Likewise.
16474 (handle_inferior_event): Likewise.
16475 (restart_threads): Likewise.
16476 (finish_step_over): Likewise.
16477 (keep_going_stepped_thread): Likewise.
16478 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16479 (linux_handle_extended_wait): Likewise.
16480 * record-btrace.c (get_thread_current_frame_id): Likewise.
16481 * record-full.c (record_full_wait_1): Likewise.
16482 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16483 * target.c (target_resume): Likewise.
16484 * thread.c (set_running_thread): Likewise.
16485
e409c542
AKS
164862020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16487
16488 * f-valprint.c (f77_print_array_1): Changed datatype of index
16489 variable to LONGEST from int to enable it to contain bound
16490 values correctly.
16491
ee98c0da
MR
164922020-02-03 Maciej W. Rozycki <macro@wdc.com>
16493
16494 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16495 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16496 offsets according to FLEN determined.
16497 (riscv_linux_nat_target::read_description): Determine FLEN
16498 dynamically.
16499 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16500 according to FLEN determined.
16501 (riscv_linux_nat_target::store_registers): Likewise.
16502
aa66aac4
SV
165032020-02-01 Shahab Vahedi <shahab@synopsys.com>
16504
16505 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16506 when reg->group is empty and reggroup is not.
16507
fd9faca8
TT
165082020-01-31 Tom Tromey <tromey@adacore.com>
16509
16510 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16511 Call beneath target's mourn_inferior after unpushing.
16512
42330a68
AB
165132020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16514
16515 PR tui/9765
16516 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16517 have enough lines to fill the screen, still return the lowest
16518 address we found.
16519
7a27a45b
AB
165202020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16521
16522 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16523 '-', '<', and '>' commands.
16524
c47f70e2
PA
165252020-01-29 Pedro Alves <palves@redhat.com>
16526 Sergio Durigan Junior <sergiodj@redhat.com>
16527
16528 * infcmd.c (construct_inferior_arguments): Assert that
16529 'argc' is greater than 0.
16530
5133a315
LM
165312020-01-29 Luis Machado <luis.machado@linaro.org>
16532
16533 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16534 (BRK_INSN_MASK): Define to 0xd4200000.
16535 (aarch64_program_breakpoint_here_p): New function.
16536 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16537 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16538 breakpoint.c.
16539 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16540 breakpoint.h
16541 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16542 call gdbarch_program_breakpoint_here_p.
16543 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16544 default_program_breakpoint_here_p, changed return type to bool and
16545 simplified.
16546 * breakpoint.h (program_breakpoint_here): Moved prototype to
16547 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16548 return type to bool.
16549 * gdbarch.c: Regenerate.
16550 * gdbarch.h: Regenerate.
16551 * gdbarch.sh (program_breakpoint_here_p): New method.
16552 * infrun.c (handle_signal_stop): Call
16553 gdbarch_program_breakpoint_here_p.
16554
168f8c6b
TT
165552020-01-26 Tom Tromey <tom@tromey.com>
16556
16557 * ctfread.c (struct ctf_fp_info): Reindent.
16558 (_initialize_ctfread): Remove.
16559
128a391f
TT
165602020-01-26 Tom Tromey <tom@tromey.com>
16561
16562 * psymtab.c (partial_map_expand_apply)
16563 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16564 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16565 (psym_print_stats, psym_expand_symtabs_for_function)
16566 (psym_map_symbol_filenames, psym_map_matching_symbols)
16567 (psym_expand_symtabs_matching)
16568 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16569 (maintenance_check_psymtabs): Use new methods.
16570 * psympriv.h (struct partial_symtab) <readin_p,
16571 get_compunit_symtab>: New methods.
16572 <readin, compunit_symtab>: Remove members.
16573 (struct standard_psymtab): New.
16574 (struct legacy_psymtab): Derive from standard_psymtab.
16575 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16576 standard_psymtab.
16577 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16578
0494dbec
TT
165792020-01-26 Tom Tromey <tom@tromey.com>
16580
16581 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16582 read_dependencies. Add assert.
16583 * psymtab.c (partial_symtab::read_dependencies): New method.
16584 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16585 method.
16586 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16587 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16588 read_dependencies.
16589 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16590 Add assert.
16591
8566b89b
TT
165922020-01-26 Tom Tromey <tom@tromey.com>
16593
16594 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16595 Call expand_psymtab.
16596 (xcoff_read_symtab): Call expand_psymtab.
16597 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16598 legacy_expand_psymtab.
16599 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16600 method.
16601 (struct legacy_psymtab) <expand_psymtab>: Implement.
16602 <legacy_expand_psymtab>: New member.
16603 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16604 (parse_partial_symbols): Set legacy_expand_psymtab.
16605 (psymtab_to_symtab_1): Change argument order. Call
16606 expand_psymtab.
16607 (new_psymtab): Set legacy_expand_psymtab.
16608 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16609 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16610 expand_psymtab.
16611 (dwarf2_psymtab::expand_psymtab): Rename from
16612 psymtab_to_symtab_1. Call expand_psymtab.
16613 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16614 (dbx_end_psymtab): Likewise.
16615 (dbx_psymtab_to_symtab_1): Change argument order. Call
16616 expand_psymtab.
16617 (dbx_read_symtab): Call expand_psymtab.
16618 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16619 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16620 (ctf_psymtab::read_symtab): Call expand_psymtab.
16621
077cbab2
TT
166222020-01-26 Tom Tromey <tom@tromey.com>
16623
16624 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16625 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16626 messages.
16627 * mdebugread.c (mdebug_read_symtab): Remove prints.
16628 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16629 assert.
16630 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16631
891813be
TT
166322020-01-26 Tom Tromey <tom@tromey.com>
16633
16634 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16635 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16636 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16637 legacy_symtab.
16638 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16639 * psymtab.c (psymtab_to_symtab): Call method.
16640 (dump_psymtab): Update.
16641 * psympriv.h (struct partial_symtab): Add virtual destructor.
16642 <read_symtab>: New method.
16643 (struct legacy_symtab): New.
16644 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16645 (struct pst_map) <pst>: Now a legacy_psymtab.
16646 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16647 (new_psymtab): Use legacy_psymtab.
16648 * dwarf2read.h (struct dwarf2_psymtab): New.
16649 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16650 * dwarf2read.c (dwarf2_create_include_psymtab)
16651 (dwarf2_build_include_psymtabs, create_type_unit_group)
16652 (create_partial_symtab, process_psymtab_comp_unit_reader)
16653 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16654 (set_partial_user): Use dwarf2_psymtab.
16655 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16656 (psymtab_to_symtab_1, process_full_comp_unit)
16657 (process_full_type_unit, dwarf2_ranges_read)
16658 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16659 (dwarf_decode_lines): Use dwarf2_psymtab.
16660 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16661 (add_address_entry_worker, write_one_signatured_type)
16662 (recursively_count_psymbols, recursively_write_psymbols)
16663 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16664 (write_debug_names): Likewise.
16665 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16666 <pst>: Now a legacy_psymtab.
16667 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16668 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16669 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16670 * ctfread.c (struct ctf_psymtab): New.
16671 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16672 ctf_psymtab.
16673 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16674 (create_partial_symtab): Return a ctf_psymtab.
16675 (scan_partial_symbols): Update.
16676
c3693a1d
TT
166772020-01-26 Tom Tromey <tom@tromey.com>
16678
16679 * xcoffread.c (xcoff_start_psymtab): Use new.
16680 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16681 renamed from start_psymtab_common.
16682 * psympriv.h (struct partial_symtab): Add new constructor.
16683 (start_psymtab_common): Don't declare.
16684 * mdebugread.c (parse_partial_symbols): Use new.
16685 * dwarf2read.c (create_partial_symtab): Use new.
16686 * dbxread.c (start_psymtab): Use new.
16687 * ctfread.c (create_partial_symtab): Use new.
16688
32caafd0
TT
166892020-01-26 Tom Tromey <tom@tromey.com>
16690
16691 * xcoffread.c (xcoff_end_psymtab): Use new.
16692 * psymtab.c (start_psymtab_common): Use new.
16693 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16694 Update.
16695 * psympriv.h (struct partial_symtab): Add parameters to
16696 constructor. Don't inline.
16697 (allocate_psymtab): Don't declare.
16698 * mdebugread.c (new_psymtab): Use new.
16699 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16700 * dbxread.c (dbx_end_psymtab): Use new.
16701
abaa2f23
TT
167022020-01-26 Tom Tromey <tom@tromey.com>
16703
16704 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16705 allocate_psymtab. Update documentation.
16706 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16707 allocate_psymtab. Do not use new.
16708 (allocate_psymtab): Use new. Update.
16709
6d94535f
TT
167102020-01-26 Tom Tromey <tom@tromey.com>
16711
16712 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16713 * psymtab.c (psym_print_stats): Update.
16714 * psympriv.h (struct partial_symtab) <readin,
16715 psymtabs_addrmap_supported, anonymous>: Now bool.
16716 * mdebugread.c (psymtab_to_symtab_1): Update.
16717 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16718 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16719 (process_full_comp_unit, process_full_type_unit): Update.
16720 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16721 * ctfread.c (psymtab_to_symtab): Update.
16722
6f17252b
TT
167232020-01-26 Tom Tromey <tom@tromey.com>
16724
16725 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16726 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16727 * psymtab.c (psymtab_storage): Delete psymtabs.
16728 (psymtab_storage::allocate_psymtab): Use new.
16729 (psymtab_storage::discard_psymtab): Use delete.
16730 * psympriv.h (struct partial_symtab): Add constructor and
16731 initializers.
16732
f6f1cebc
TT
167332020-01-26 Tom Tromey <tom@tromey.com>
16734
16735 * machoread.c: Do not include psympriv.h.
16736
e47e48f6
PW
167372020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16738
16739 * NEWS: Mention the new option and the set/show commands.
16740
a2fedca9
PW
167412020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16742
16743 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16744 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16745 (validate_exec_file): New variables, enums, functions.
16746 (exec_file_locate_attach, print_section_info): Style the filenames.
16747 (_initialize_exec): Install show_exec_file_mismatch_command and
16748 set_exec_file_mismatch_command.
16749 * gdbcore.h (validate_exec_file): Declare.
16750 * infcmd.c (attach_command): Call validate_exec_file.
16751 * remote.c ( remote_target::remote_add_inferior): Likewise.
16752
7ffa82e1
AB
167532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16754
16755 * frame.c (find_frame_sal): Move call to get_next_frame into more
16756 inner scope.
16757 * inline-frame.c (inilne_state) <inline_state>: Update argument
16758 types.
16759 (inilne_state) <skipped_symbol>: Rename to...
16760 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16761 (skip_inline_frames): Build vector of skipped symbols and use this
16762 to reate the inline_state.
16763 (inline_skipped_symbol): Add a comment and some assertions, fetch
16764 skipped symbol from the list.
16765
3d92a3e3
AB
167662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16767
16768 * buildsym.c (lte_is_less_than): Delete.
16769 (buildsym_compunit::end_symtab_with_blockvector): Create local
16770 lambda function to sort line table entries, and use
16771 std::stable_sort instead of std::sort.
16772 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16773 markers when looking for a previous line.
16774
94a72be7
AB
167752020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16776
16777 * dwarf2read.c (lnp_state_machine::record_line): Include
16778 end_sequence parameter in debug print out. Record the line if we
16779 are at an end_sequence marker even if it's not the start of a
16780 statement.
16781 * symmisc.c (maintenance_print_one_line_table): Print end of
16782 sequence markers with 'END' not '0'.
16783
53af73bf
PA
167842020-01-24 Pedro Alves <palves@redhat.com>
16785
16786 PR gdb/25410
16787 * thread.c (scoped_restore_current_thread::restore): Use
16788 switch_to_inferior_no_thread.
16789 * exec.c: Include "progspace-and-thread.h".
16790 (add_target_sections, remove_target_sections):
16791 scoped_restore_current_pspace_and_thread instead of
16792 scoped_restore_current_thread.
16793 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16794 and aspace to the inferior before calling clone_program_space.
16795 Remove stale comment.
16796
3050c6f4
CB
167972020-01-24 Christian Biesinger <cbiesinger@google.com>
16798
16799 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16800 (arm_netbsd_nat_target::fetch_registers): ...this.
16801 (arm_nbsd_nat_target::store_registers): Rename to...
16802 (arm_netbsd_nat_target::store_registers): ...this.
16803
73685c7e
CB
168042020-01-24 Christian Biesinger <cbiesinger@google.com>
16805
16806 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16807 register_t.
16808
89203d40
CB
168092020-01-24 Christian Biesinger <cbiesinger@google.com>
16810
16811 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16812 Update comment.
16813 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16814 Likewise.
16815 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16816 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16817 the correct replacement (iterate_over_regset_sections).
16818 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16819 Update comment.
16820
1ba1ac88
AB
168212020-01-24 Graham Markall <graham.markall@embecosm.com>
16822
16823 PR gdb/23718
16824 * gdb/python/python.c (execute_gdb_command): Call
16825 async_enable_stdin in catch block.
16826
f3364a6d
AB
168272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16828
16829 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16830 SWITCH_THRU_ALL_UIS.
16831
733d0a67
AB
168322020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16833
16834 PR tui/9765
16835 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16836 comment, add extra parameter, and update to store previous symbol
16837 when appropriate.
16838 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16839 add extra parameter.
16840 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16841 remove unneeded parameter, add try/catch around gdb_print_insn,
16842 rewrite to add items to asm_lines vector.
16843 (tui_find_backward_disassembly_start_address): New function.
16844 (tui_find_disassembly_address): Updated throughout.
16845 (tui_disasm_window::set_contents): Update for changes to
16846 tui_disassemble.
16847 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16848 number of lines to scroll.
16849
b3b3bada
SM
168502020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16851
16852 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16853 (SECT_OFF_DATA): Likewise.
16854 (SECT_OFF_RODATA): Likewise.
16855 (SECT_OFF_TEXT): Likewise.
16856 (SECT_OFF_BSS): Likewise.
16857 (struct objfile) <text_section_offset, data_section_offset>: New
16858 methods.
16859 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16860 objfile::text_section_offset.
16861 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16862 * coffread.c (coff_symtab_read): Likewise.
16863 (enter_linenos): Likewise.
16864 (process_coff_symbol): Likewise.
16865 * ctfread.c (get_objfile_text_range): Likewise.
16866 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16867 Use objfile::data_section_offset.
16868 * dwarf2-frame.c (execute_cfa_program): Use
16869 objfile::text_section_offset.
16870 (dwarf2_frame_find_fde): Likewise.
16871 * dwarf2read.c (create_addrmap_from_index): Likewise.
16872 (create_addrmap_from_aranges): Likewise.
16873 (dw2_find_pc_sect_compunit_symtab): Likewise.
16874 (process_psymtab_comp_unit_reader): Likewise.
16875 (add_partial_symbol): Likewise.
16876 (add_partial_subprogram): Likewise.
16877 (process_full_comp_unit): Likewise.
16878 (read_file_scope): Likewise.
16879 (read_func_scope): Likewise.
16880 (read_lexical_block_scope): Likewise.
16881 (read_call_site_scope): Likewise.
16882 (dwarf2_rnglists_process): Likewise.
16883 (dwarf2_ranges_process): Likewise.
16884 (dwarf2_ranges_read): Likewise.
16885 (dwarf_decode_lines_1): Likewise.
16886 (new_symbol): Likewise.
16887 (dwarf2_fetch_die_loc_sect_off): Likewise.
16888 (dwarf2_per_cu_text_offset): Likewise.
16889 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16890 * hppa-tdep.c (read_unwind_info): Likewise.
16891 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16892 * psympriv.h (struct partial_symtab): Likewise.
16893 * psymtab.c (find_pc_sect_psymtab): Likewise.
16894 * solib-svr4.c (enable_break): Likewise.
16895 * stap-probe.c (relocate_address): Use
16896 objfile::data_section_offset.
16897 * xcoffread.c (enter_line_range): Use
16898 objfile::text_section_offset.
16899 (read_xcoff_symtab): Likewise.
16900
ab53f382
SM
169012020-01-23 Simon Marchi <simon.marchi@efficios.com>
16902
16903 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16904 declaration to narrower scopes.
16905
e7eee665
SM
169062020-01-23 Simon Marchi <simon.marchi@efficios.com>
16907
16908 * darwin-nat.h (struct darwin_exception_msg, enum
16909 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16910 Move up.
16911 (class darwin_nat_target) <wait_1, check_new_threads,
16912 decode_exception_message, decode_message, stop_inferior,
16913 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16914 * darwin-nat.c (darwin_check_new_threads): Rename to...
16915 (darwin_nat_target::check_new_threads): ... this.
16916 (darwin_suspend_inferior_it): Remove.
16917 (darwin_decode_exception_message): Rename to...
16918 (darwin_nat_target::decode_exception_message): ... this.
16919 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16920 (darwin_decode_message): Rename to...
16921 (darwin_nat_target::decode_message): ... this.
16922 (cancel_breakpoint): Rename to...
16923 (darwin_nat_target::cancel_breakpoint): ... this.
16924 (darwin_wait): Rename to...
16925 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16926 instead of iterate_over_inferiors.
16927 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16928 (darwin_stop_inferior): Rename to...
16929 (darwin_nat_target::stop_inferior): ... this.
16930 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16931 (darwin_init_thread_list): Rename to...
16932 (darwin_nat_target::init_thread_list): ... this.
16933 (darwin_ptrace_him): Rename to...
16934 (darwin_nat_target::ptrace_him): ... this.
16935 (darwin_nat_target::create_inferior): Pass lambda function to
16936 fork_inferior.
16937 (darwin_nat_target::detach): Call stop_inferior instead of
16938 darwin_stop_inferior.
16939 * fork-inferior.h (fork_inferior): Change init_trace_fun
16940 parameter to gdb::function_view.
16941 * fork-inferior.c (fork_inferior): Likewise.
16942
c162ed3e
HD
169432020-01-23 Hannes Domani <ssbssa@yahoo.de>
16944
16945 * i386-cygwin-tdep.c (core_process_module_section): Update.
16946 * windows-nat.c (struct lm_info_windows): Add text_offset.
16947 (windows_xfer_shared_libraries): Update.
16948 * windows-tdep.c (windows_xfer_shared_library):
16949 Add text_offset_cached argument.
16950 * windows-tdep.h (windows_xfer_shared_library): Update.
16951
a1237872
SM
169522020-01-21 Simon Marchi <simon.marchi@efficios.com>
16953
16954 * gdbarch.sh: Add declaration for _initialize_gdbarch.
16955
b3ee6dd9
SM
169562020-01-21 Simon Marchi <simon.marchi@efficios.com>
16957
16958 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
16959 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
16960 replace with range-based for.
16961 (gdbsim_interrupt_inferior): Remove.
16962 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
16963 with a range-based for. Inline code from
16964 gdbsim_interrupt_inferior.
16965
f9fac3c8
SM
169662020-01-21 Simon Marchi <simon.marchi@efficios.com>
16967
16968 * infrun.c (proceed): Fix indentation.
16969
f6474de9
TT
169702020-01-21 Tom Tromey <tromey@adacore.com>
16971
16972 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
16973 * python/python.c (python_extension_ops): Update.
16974 (gdbpy_colorize): New function.
16975 * python/lib/gdb/__init__.py (colorize): New function.
16976 * extension.h (ext_lang_colorize): Declare.
16977 * extension.c (ext_lang_colorize): New function.
16978 * extension-priv.h (struct extension_language_ops) <colorize>: New
16979 member.
16980 * cli/cli-style.c (_initialize_cli_style): Update help text.
16981
f0c702d4
LM
169822020-01-21 Luis Machado <luis.machado@linaro.org>
16983
16984 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
16985 <cond>: Change type to bool.
16986 (aarch64_displaced_step_b_cond): Update cond to use bool type.
16987 (aarch64_displaced_step_cb): Likewise.
16988 (aarch64_displaced_step_tb): Likewise.
16989
1ab139e5
LM
169902020-01-21 Luis Machado <luis.machado@linaro.org>
16991
16992 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
16993 output.
16994
0c271889
LM
169952020-01-21 Luis Machado <luis.machado@linaro.org>
16996
16997 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
16998 <pc_adjust>: Adjust the documentation.
16999 (aarch64_displaced_step_fixup): Check if PC really moved before
17000 adjusting it.
17001
4d89c1c7
TT
170022020-01-19 Tom Tromey <tom@tromey.com>
17003
17004 * disasm.c (~gdb_disassembler): New destructor.
17005 (gdb_buffered_insn_length): Call disassemble_free_target.
17006 * disasm.h (class gdb_disassembler): Declare destructor. Use
17007 DISABLE_COPY_AND_ASSIGN.
17008
c0ab21c2
TT
170092020-01-19 Tom Tromey <tom@tromey.com>
17010
17011 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
17012 (die_reader_func_ftype): Remove.
17013 (cutu_reader): New class.
17014 (dw2_get_file_names_reader): Remove "data" parameter.
17015 (dw2_get_file_names): Use cutu_reader.
17016 (create_debug_type_hash_table): Update.
17017 (read_cutu_die_from_dwo): Update comment.
17018 (lookup_dwo_unit): Add dwo_name parameter.
17019 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
17020 die_reader_func_ftype and data parameters.
17021 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
17022 Remove die_reader_func_ftype and data parameters.
17023 (~cutu_reader): New; from init_cutu_and_read_dies.
17024 (cutu_reader::cutu_reader): Rename from
17025 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
17026 and data parameters.
17027 (init_cutu_and_read_dies_simple): Remove.
17028 (struct process_psymtab_comp_unit_data): Remove.
17029 (process_psymtab_comp_unit_reader): Remove data parameter; add
17030 want_partial_unit and pretend_language parameters.
17031 (process_psymtab_comp_unit): Use cutu_reader.
17032 (build_type_psymtabs_reader): Remove data parameter.
17033 (build_type_psymtabs_1): Use cutu_reader.
17034 (process_skeletonless_type_unit): Likewise.
17035 (load_partial_comp_unit_reader): Remove.
17036 (load_partial_comp_unit): Use cutu_reader.
17037 (load_full_comp_unit_reader): Remove.
17038 (load_full_comp_unit): Use cutu_reader.
17039 (struct create_dwo_cu_data): Remove.
17040 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
17041 dwo_unit parameters.
17042 (create_cus_hash_table): Use cutu_reader.
17043 (struct dwarf2_read_addr_index_data): Remove.
17044 (dwarf2_read_addr_index_reader): Remove.
17045 (dwarf2_read_addr_index): Use cutu_reader.
17046 (read_signatured_type_reader): Remove.
17047 (read_signatured_type): Use cutu_reader.
17048
45bbae5c
TT
170492020-01-19 Tom Tromey <tom@tromey.com>
17050
17051 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
17052 * tui/tui-wingeneral.h (class tui_suppress_output): New.
17053 (tui_wrefresh): Declare.
17054 * tui/tui-wingeneral.c (suppress_output): New global.
17055 (tui_suppress_output, ~tui_suppress_output): New constructor and
17056 destructor.
17057 (tui_wrefresh): New function.
17058 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
17059 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
17060 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
17061 method.
17062 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
17063 tui_wrefresh.
17064 (tui_data_window::no_refresh): New method.
17065 (tui_data_item_window::refresh_window): Call tui_wrefresh.
17066 (tui_reg_command): Use tui_suppress_output
17067 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
17068 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
17069 method.
17070 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
17071
4f13c1c0
TT
170722020-01-19 Tom Tromey <tom@tromey.com>
17073
17074 * tui/tui-winsource.c (tui_update_source_windows_with_line):
17075 Handle case where symtab is null.
17076
fa47e446
SM
170772020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
17078
17079 * linux-fork.c (one_fork_p): Simplify.
17080
26f42329
SM
170812020-01-17 Simon Marchi <simon.marchi@efficios.com>
17082
17083 * top.c (struct qt_args): Remove.
17084 (kill_or_detach): Change return type to void, replace `void *`
17085 parameter with a proper one.
17086 (print_inferior_quit_action): Likewise.
17087 (quit_confirm): Use range-based for loop to iterate over inferiors.
17088 (quit_force): Likewise.
17089
a9ac81b1
SM
170902020-01-17 Simon Marchi <simon.marchi@efficios.com>
17091
17092 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
17093 `void *` parameter with proper parameters.
17094 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
17095 (print_one_inferior): Change return type to void, replace `void *`
17096 parameter with proper parameters.
17097 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
17098 inferiors.
17099 (get_other_inferior): Remove.
17100 (mi_cmd_remove_inferior): Use range-based loop to iterate over
17101 inferiors.
17102
788eca49
SM
171032020-01-17 Simon Marchi <simon.marchi@efficios.com>
17104
17105 * mi/mi-interp.c (report_initial_inferior): Remove.
17106 (mi_interp::init): Use range-based for to iterate over inferiors.
17107
d9bc85b6
SM
171082020-01-17 Simon Marchi <simon.marchi@efficios.com>
17109
17110 * python/py-inferior.c (build_inferior_list): Remove.
17111 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
17112
40c94099
CB
171132020-01-16 Christian Biesinger <cbiesinger@google.com>
17114
17115 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
17116 (btrace_stitch_trace): Likewise.
17117 * charset.c (intermediate_encoding): Likewise (vaild).
17118 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
17119 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
17120 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
17121
e0cdfe3c
HD
171222020-01-16 Hannes Domani <ssbssa@yahoo.de>
17123
17124 * windows-tdep.c (windows_get_tlb_type):
17125 Add rtl_user_process_parameters type.
17126
790f1718 171272020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 17128 Norbert Lange <nolange79@gmail.com>
790f1718
PA
17129
17130 PR build/24805
17131 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
17132 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17133 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17134 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17135 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17136 (ps_plog): Redeclare exported functions with default visibility.
17137
3112ed97
NA
171382020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17139
17140 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17141 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17142
8dc3273e
SM
171432020-01-15 Simon Marchi <simon.marchi@efficios.com>
17144
17145 * infcmd.c (post_create_inferior): Use get_thread_regcache
17146 instead of get_current_regcache.
17147
ff47f4f0
TT
171482020-01-14 Tom Tromey <tom@tromey.com>
17149
17150 PR symtab/12535:
17151 * python/python.c (gdbpy_decode_line): Treat empty string the same
17152 as no argument.
17153
975f45b7
TT
171542020-01-14 Tom Tromey <tom@tromey.com>
17155
17156 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17157
25e57356
TT
171582020-01-14 Tom Tromey <tom@tromey.com>
17159
17160 * nat/linux-btrace.c: Don't include <config.h>.
17161 * nat/linux-ptrace.c: Don't include <config.h>.
17162 * nat/x86-linux-dregs.c: Don't include <config.h>.
17163
05ea2a05
TT
171642020-01-14 Tom Tromey <tom@tromey.com>
17165
17166 * configure: Rebuild.
17167 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17168
01027315
TT
171692020-01-14 Tom Tromey <tom@tromey.com>
17170
17171 * nat/x86-linux-dregs.c: Include configh.h.
17172 * nat/linux-ptrace.c: Include configh.h.
17173 * nat/linux-btrace.c: Include configh.h.
17174 * defs.h: Include config.h, bfd.h.
17175 * configure.ac: Don't source common.host.
17176 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17177 * configure: Rebuild.
17178 * acinclude.m4: Update path.
17179 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17180 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17181 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17182 (CLIBS): Add LIBSUPPORT.
17183 (CDEPS): Likewise.
17184 (COMMON_SFILES): Remove gdbsupport files.
17185 (HFILES_NO_SRCDIR): Likewise.
17186 (stamp-version): Update path to create-version.sh.
17187 (ALLDEPFILES): Remove gdbsupport files.
17188
b2ceabe8
TT
171892020-01-14 Tom Tromey <tom@tromey.com>
17190
17191 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17192 USE_WIN32API when needed.
17193 * configure.ac (USE_WIN32API): Don't define.
17194 (WIN32LIBS): Use WIN32APILIBS.
17195 * configure: Rebuild.
17196
25c51f71
TT
171972020-01-14 Tom Tromey <tom@tromey.com>
17198
17199 * configure: Rebuild.
17200 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17201
717c684d
BE
172022020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17203
17204 * skip.c (skip_function_command): Make skip w/o arguments use the
17205 name of the inlined function if pc is inside any inlined function.
17206
7da6a5b9
LM
172072020-01-14 Luis Machado <luis.machado@linaro.org>
17208
17209 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17210 * infrun.c (resume_1): Likewise.
17211 (handle_inferior_event): Remove stale comment.
17212 * linux-nat.c (linux_nat_target::resume): Update comments.
17213 (save_stop_reason): Likewise.
17214 (linux_nat_filter_event): Likewise.
17215 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17216
44e4c775
AB
172172020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17218
17219 * elfread.c (record_minimal_symbol): Set section index to 0 for
17220 non-allocatable sections.
17221
18a8505e
AT
17222
172232020-01-13 Ali Tamur <tamur@google.com>
17224
17225 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17226 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17227 to gdb::optional. Update comments.
17228 (dwo_file): Update comments.
17229 (read_attribute): Update API to take an additional out parameter,
17230 need_reprocess. This is used to mark attributes that need other
17231 attributes (e.g. str_offsets_base) for correct computation which may not
17232 have been read yet.
17233 (read_attribute_reprocess): New function declaration.
17234 (read_addr_index): Likewise.
17235 (read_dwo_str_index): Likewise.
17236 (read_stub_str_index): Likewise.
17237 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17238 (lookup_addr_base): New function definition.
17239 (lookup_ranges_base): Likewise.
17240 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17241 lookup_ranges_base.
17242 (init_cutu_and_read_dies): Update comments.
17243 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17244 unit. This is used to inherit parent's str_offsets_base and addr_base.
17245 Update comments.
17246 (init_cutu_and_read_dies_simple): Reflect API changes.
17247 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17248 (create_cus_hash_table): Change API to take parent compile unit.
17249 Reflect API changes.
17250 (open_and_init_dwo_file): Reflect API changes.
17251 (dwarf2_get_pc_bounds): Update comments.
17252 (dwarf2_record_block_ranges): Likewise.
17253 (read_full_die_1): Change implementation to reprocess attributes that
17254 need str_offsets_base and addr_base.
17255 (partial_die_info::read): Likewise.
17256 (read_attribute_reprocess): New function definition.
17257 (read_attribute_value): Change API to take an additional out parameter,
17258 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17259 when a non-dwo compile unit has index based attributes.
17260 (read_attribute): Reflect API changes.
17261 (read_addr_index_1): Reflect API changes. Update comments.
17262 (dwarf2_read_addr_index_data): Reflect API changes.
17263 (dwarf2_read_addr_index): Likewise.
17264 (read_str_index): Change API and implementation. This becomes a helper
17265 to be used by the new string index related methods. Update error
17266 message and comments.
17267 (read_dwo_str_index): New function definition.
17268 (read_stub_str_index): Likewise.
17269 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17270 * symfile.h (dwarf2_debug_sections): Likewise.
17271 * xcoffread.c (dwarf2_debug_sections): Likewise.
17272
0cac9354
SM
172732020-01-13 Simon Marchi <simon.marchi@efficios.com>
17274
17275 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17276 core_reg_sect type to gdb_byte *.
17277 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17278 * cris-tdep.c (fetch_core_registers): Likewise.
17279 * corelow.c (core_target::get_core_register_section): Change
17280 type of `contents` to gdb::byte_vector.
17281
9a6d629c
AB
172822020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17283
17284 * tui/tui-wingeneral.c (box_win): Position the title in the center
17285 of the border.
17286
d8b2f9e3
SM
172872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17288
17289 * corelow.c (core_target::get_core_register_section): Use
17290 std::vector instead of alloca.
17291
bb564c58
SM
172922020-01-13 Simon Marchi <simon.marchi@efficios.com>
17293
17294 * warning.m4: Add -Wmissing-declarations to build_warnings.
17295 * configure: Re-generate.
17296
6b366111
SM
172972020-01-13 Simon Marchi <simon.marchi@efficios.com>
17298
17299 * python/python.c (init__gdb_module): Add declaration.
17300
6c265988
SM
173012020-01-13 Simon Marchi <simon.marchi@efficios.com>
17302
17303 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17304 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17305 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17306 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17307 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17308 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17309 * ada-exp.y (_initialize_ada_exp): Add declaration.
17310 * ada-lang.c (_initialize_ada_language): Add declaration.
17311 * ada-tasks.c (_initialize_tasks): Add declaration.
17312 * agent.c (_initialize_agent): Add declaration.
17313 * aix-thread.c (_initialize_aix_thread): Add declaration.
17314 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17315 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17316 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17317 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17318 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17319 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17320 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17321 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17322 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17323 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17324 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17325 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17326 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17327 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17328 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17329 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17330 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17331 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17332 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17333 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17334 * annotate.c (_initialize_annotate): Add declaration.
17335 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17336 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17337 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17338 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17339 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17340 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17341 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17342 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17343 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17344 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17345 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17346 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17347 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17348 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17349 * auto-load.c (_initialize_auto_load): Add declaration.
17350 * auxv.c (_initialize_auxv): Add declaration.
17351 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17352 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17353 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17354 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17355 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17356 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17357 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17358 * breakpoint.c (_initialize_breakpoint): Add declaration.
17359 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17360 * btrace.c (_initialize_btrace): Add declaration.
17361 * charset.c (_initialize_charset): Add declaration.
17362 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17363 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17364 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17365 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17366 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17367 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17368 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17369 * coffread.c (_initialize_coffread): Add declaration.
17370 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17371 * compile/compile.c (_initialize_compile): Add declaration.
17372 * complaints.c (_initialize_complaints): Add declaration.
17373 * completer.c (_initialize_completer): Add declaration.
17374 * copying.c (_initialize_copying): Add declaration.
17375 * corefile.c (_initialize_core): Add declaration.
17376 * corelow.c (_initialize_corelow): Add declaration.
17377 * cp-abi.c (_initialize_cp_abi): Add declaration.
17378 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17379 * cp-support.c (_initialize_cp_support): Add declaration.
17380 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17381 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17382 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17383 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17384 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17385 * ctfread.c (_initialize_ctfread): Add declaration.
17386 * d-lang.c (_initialize_d_language): Add declaration.
17387 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17388 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17389 * dbxread.c (_initialize_dbxread): Add declaration.
17390 * dcache.c (_initialize_dcache): Add declaration.
17391 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17392 * disasm.c (_initialize_disasm): Add declaration.
17393 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17394 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17395 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17396 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17397 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17398 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17399 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17400 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17401 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17402 * elfread.c (_initialize_elfread): Add declaration.
17403 * exec.c (_initialize_exec): Add declaration.
17404 * extension.c (_initialize_extension): Add declaration.
17405 * f-lang.c (_initialize_f_language): Add declaration.
17406 * f-valprint.c (_initialize_f_valprint): Add declaration.
17407 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17408 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17409 * filesystem.c (_initialize_filesystem): Add declaration.
17410 * findcmd.c (_initialize_mem_search): Add declaration.
17411 * findvar.c (_initialize_findvar): Add declaration.
17412 * fork-child.c (_initialize_fork_child): Add declaration.
17413 * frame-base.c (_initialize_frame_base): Add declaration.
17414 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17415 * frame.c (_initialize_frame): Add declaration.
17416 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17417 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17418 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17419 * gcore.c (_initialize_gcore): Add declaration.
17420 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17421 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17422 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17423 * gdbarch.c (_initialize_gdbarch): Add declaration.
17424 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17425 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17426 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17427 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17428 * go-lang.c (_initialize_go_language): Add declaration.
17429 * go32-nat.c (_initialize_go32_nat): Add declaration.
17430 * guile/guile.c (_initialize_guile): Add declaration.
17431 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17432 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17433 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17434 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17435 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17436 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17437 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17438 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17439 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17440 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17441 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17442 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17443 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17444 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17445 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17446 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17447 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17448 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17449 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17450 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17451 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17452 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17453 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17454 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17455 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17456 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17457 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17458 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17459 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17460 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17461 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17462 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17463 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17464 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17465 * infcall.c (_initialize_infcall): Add declaration.
17466 * infcmd.c (_initialize_infcmd): Add declaration.
17467 * inflow.c (_initialize_inflow): Add declaration.
17468 * infrun.c (_initialize_infrun): Add declaration.
17469 * interps.c (_initialize_interpreter): Add declaration.
17470 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17471 * jit.c (_initialize_jit): Add declaration.
17472 * language.c (_initialize_language): Add declaration.
17473 * linux-fork.c (_initialize_linux_fork): Add declaration.
17474 * linux-nat.c (_initialize_linux_nat): Add declaration.
17475 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17476 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17477 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17478 * m2-lang.c (_initialize_m2_language): Add declaration.
17479 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17480 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17481 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17482 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17483 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17484 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17485 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17486 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17487 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17488 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17489 * machoread.c (_initialize_machoread): Add declaration.
17490 * macrocmd.c (_initialize_macrocmd): Add declaration.
17491 * macroscope.c (_initialize_macroscope): Add declaration.
17492 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17493 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17494 * maint.c (_initialize_maint_cmds): Add declaration.
17495 * mdebugread.c (_initialize_mdebugread): Add declaration.
17496 * memattr.c (_initialize_mem): Add declaration.
17497 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17498 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17499 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17500 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17501 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17502 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17503 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17504 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17505 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17506 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17507 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17508 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17509 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17510 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17511 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17512 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17513 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17514 * mipsread.c (_initialize_mipsread): Add declaration.
17515 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17516 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17517 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17518 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17519 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17520 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17521 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17522 * nto-procfs.c (_initialize_procfs): Add declaration.
17523 * objc-lang.c (_initialize_objc_language): Add declaration.
17524 * observable.c (_initialize_observer): Add declaration.
17525 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17526 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17527 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17528 * osabi.c (_initialize_gdb_osabi): Add declaration.
17529 * osdata.c (_initialize_osdata): Add declaration.
17530 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17531 * parse.c (_initialize_parse): Add declaration.
17532 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17533 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17534 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17535 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17536 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17537 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17538 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17539 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17540 * printcmd.c (_initialize_printcmd): Add declaration.
17541 * probe.c (_initialize_probe): Add declaration.
17542 * proc-api.c (_initialize_proc_api): Add declaration.
17543 * proc-events.c (_initialize_proc_events): Add declaration.
17544 * proc-service.c (_initialize_proc_service): Add declaration.
17545 * procfs.c (_initialize_procfs): Add declaration.
17546 * producer.c (_initialize_producer): Add declaration.
17547 * psymtab.c (_initialize_psymtab): Add declaration.
17548 * python/python.c (_initialize_python): Add declaration.
17549 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17550 * record-btrace.c (_initialize_record_btrace): Add declaration.
17551 * record-full.c (_initialize_record_full): Add declaration.
17552 * record.c (_initialize_record): Add declaration.
17553 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17554 * regcache.c (_initialize_regcache): Add declaration.
17555 * reggroups.c (_initialize_reggroup): Add declaration.
17556 * remote-notif.c (_initialize_notif): Add declaration.
17557 * remote-sim.c (_initialize_remote_sim): Add declaration.
17558 * remote.c (_initialize_remote): Add declaration.
17559 * reverse.c (_initialize_reverse): Add declaration.
17560 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17561 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17562 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17563 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17564 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17565 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17566 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17567 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17568 Add declaration.
17569 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17570 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17571 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17572 * rust-exp.y (_initialize_rust_exp): Add declaration.
17573 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17574 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17575 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17576 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17577 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17578 * score-tdep.c (_initialize_score_tdep): Add declaration.
17579 * ser-go32.c (_initialize_ser_dos): Add declaration.
17580 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17581 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17582 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17583 * ser-uds.c (_initialize_ser_socket): Add declaration.
17584 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17585 * serial.c (_initialize_serial): Add declaration.
17586 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17587 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17588 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17589 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17590 * skip.c (_initialize_step_skip): Add declaration.
17591 * sol-thread.c (_initialize_sol_thread): Add declaration.
17592 * solib-aix.c (_initialize_solib_aix): Add declaration.
17593 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17594 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17595 * solib-frv.c (_initialize_frv_solib): Add declaration.
17596 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17597 * solib-target.c (_initialize_solib_target): Add declaration.
17598 * solib.c (_initialize_solib): Add declaration.
17599 * source-cache.c (_initialize_source_cache): Add declaration.
17600 * source.c (_initialize_source): Add declaration.
17601 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17602 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17603 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17604 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17605 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17606 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17607 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17608 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17609 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17610 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17611 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17612 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17613 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17614 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17615 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17616 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17617 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17618 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17619 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17620 * stabsread.c (_initialize_stabsread): Add declaration.
17621 * stack.c (_initialize_stack): Add declaration.
17622 * stap-probe.c (_initialize_stap_probe): Add declaration.
17623 * std-regs.c (_initialize_frame_reg): Add declaration.
17624 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17625 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17626 * symfile.c (_initialize_symfile): Add declaration.
17627 * symmisc.c (_initialize_symmisc): Add declaration.
17628 * symtab.c (_initialize_symtab): Add declaration.
17629 * target.c (_initialize_target): Add declaration.
17630 * target-connection.c (_initialize_target_connection): Add
17631 declaration.
17632 * target-dcache.c (_initialize_target_dcache): Add declaration.
17633 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17634 * thread.c (_initialize_thread): Add declaration.
17635 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17636 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17637 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17638 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17639 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17640 * tracectf.c (_initialize_ctf): Add declaration.
17641 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17642 * tracefile.c (_initialize_tracefile): Add declaration.
17643 * tracepoint.c (_initialize_tracepoint): Add declaration.
17644 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17645 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17646 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17647 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17648 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17649 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17650 * tui/tui.c (_initialize_tui): Add declaration.
17651 * typeprint.c (_initialize_typeprint): Add declaration.
17652 * ui-style.c (_initialize_ui_style): Add declaration.
17653 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17654 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17655 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17656 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17657 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17658 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17659 * unittests/filtered_iterator-selftests.c
17660 (_initialize_filtered_iterator_selftests): Add declaration.
17661 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17662 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17663 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17664 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17665 * unittests/main-thread-selftests.c
17666 (_initialize_main_thread_selftests): Add declaration.
17667 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17668 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17669 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17670 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17671 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17672 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17673 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17674 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17675 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17676 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17677 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17678 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17679 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17680 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17681 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17682 declaration.
17683 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17684 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17685 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17686 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17687 * user-regs.c (_initialize_user_regs): Add declaration.
17688 * utils.c (_initialize_utils): Add declaration.
17689 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17690 * valops.c (_initialize_valops): Add declaration.
17691 * valprint.c (_initialize_valprint): Add declaration.
17692 * value.c (_initialize_values): Add declaration.
17693 * varobj.c (_initialize_varobj): Add declaration.
17694 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17695 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17696 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17697 * windows-nat.c (_initialize_windows_nat): Add declaration.
17698 (_initialize_check_for_gdb_ini): Add declaration.
17699 (_initialize_loadable): Add declaration.
17700 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17701 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17702 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17703 * xcoffread.c (_initialize_xcoffread): Add declaration.
17704 * xml-support.c (_initialize_xml_support): Add declaration.
17705 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17706 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17707 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17708 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17709
e2de1eec
SM
177102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17711
17712 * regformats/regdat.sh: Generate declaration for init function.
17713
e0037b4c
SM
177142020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17715
17716 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17717 up.
17718 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17719 close_one_inferior>: New methods.
17720 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17721 pass down target to find_inferior_pid.
17722 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17723 Pass down target to find_inferior_ptid.
17724 (gdbsim_target::create_inferior): Pass down target to
17725 add_thread_silent.
17726 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17727 target down to find_inferior_ptid and switch_to_thread.
17728 (gdbsim_target::close): Update to call close_one_inferior.
17729 (struct resume_data): Remove.
17730 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17731 directly, rather than through a void pointer.
17732 (gdbsim_target::resume): Update to call resume_one_inferior.
17733
58920b5b
SM
177342020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17735
17736 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17737
4ec89149
PA
177382020-01-12 Pedro Alves <palves@redhat.com>
17739
17740 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17741 directly for the current inferior instead of
17742 discard_all_inferiors.
17743 (discard_all_inferiors): Delete.
17744
7c392d1d
TT
177452020-01-11 Tom Tromey <tom@tromey.com>
17746
17747 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17748 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17749 deprecated_safe_get_selected_frame.
17750
d9ebdab7
TBA
177512020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17752
17753 * inferior.c (print_inferior): Switch inferior before printing it.
17754
f3c469b9
PA
177552020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17756 Pedro Alves <palves@redhat.com>
17757
17758 * progspace-and-thread.c (switch_to_program_space_and_thread):
17759 Assert there's an inferior for PSPACE. Use
17760 switch_to_inferior_no_thread to switch the inferior too.
17761 * progspace.c (program_space::~program_space): Call
17762 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17763 (program_space::free_all_objfiles): Don't call clear_symtab_users
17764 here.
17765 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17766
65c574f6
PA
177672020-01-10 Pedro Alves <palves@redhat.com>
17768
17769 * NEWS: Mention multi-target debugging, "info connections", and
17770 "add-inferior -no-connection".
17771
2f4fcf00
PA
177722020-01-10 Pedro Alves <palves@redhat.com>
17773
17774 * infrun.c: Include "target-connection.h".
17775 (check_multi_target_resumption): New.
17776 (proceed): Call it.
17777 * target-connection.c (make_target_connection_string): Make
17778 extern.
17779 * target-connection.h (make_target_connection_string): Declare.
17780
121b3efd
PA
177812020-01-10 Pedro Alves <palves@redhat.com>
17782
17783 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17784 * inferior.c (uiout_field_connection): New function.
17785 (print_inferior): Add new "connection-id" column.
17786 (add_inferior_command): Show connection number/string of added
17787 inferior.
17788 * process-stratum-target.h
17789 (process_stratum_target::connection_string): New virtual method.
17790 (process_stratum_target::connection_number): New field.
17791 * remote.c (remote_target::connection_string): New override.
17792 * target-connection.c: New file.
17793 * target-connection.h: New file.
17794 * target.c (decref_target): Remove process_stratum targets from
17795 the connection list.
17796 (target_stack::push): Add process_stratum targets to the
17797 connection list.
17798
4f837581
PA
177992020-01-10 Pedro Alves <palves@redhat.com>
17800
17801 Revert:
17802 2016-04-12 Pedro Alves <palves@redhat.com>
17803 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17804 Remove references to name.
17805 * serial.h (struct serial) <name>: Delete.
17806
f4ec508e
PA
178072020-01-10 Pedro Alves <palves@redhat.com>
17808
17809 * gdbarch-selftests.c (register_to_value_test): Remove "target
17810 already pushed" check.
17811
5b6d1e4f
PA
178122020-01-10 Pedro Alves <palves@redhat.com>
17813 John Baldwin <jhb@FreeBSD.org>
17814
17815 * aarch64-linux-nat.c
17816 (aarch64_linux_nat_target::thread_architecture): Adjust.
17817 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17818 (task_command_1): Likewise.
17819 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17820 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17821 (aix_thread_target::store_registers)
17822 (aix_thread_target::thread_alive): Adjust.
17823 * amd64-fbsd-tdep.c: Include "inferior.h".
17824 (amd64fbsd_get_thread_local_address): Pass down target.
17825 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17826 thread's gdbarch instead of target_gdbarch.
17827 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17828 get_last_target_status.
17829 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17830 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17831 inferiors.
17832 (update_inserted_breakpoint_locations): Skip if inferiors with no
17833 execution.
17834 (update_global_location_list): When handling moribund locations,
17835 find representative inferior for location's pspace, and use thread
17836 count of its process_stratum target.
17837 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17838 * bsd-uthread.c (bsd_uthread_target::wait): Use
17839 as_process_stratum_target and adjust thread_change_ptid and
17840 add_thread calls.
17841 (bsd_uthread_target::update_thread_list): Use
17842 as_process_stratum_target and adjust find_thread_ptid,
17843 thread_change_ptid and add_thread calls.
17844 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17845 find_thread_ptid call.
17846 * corelow.c (add_to_thread_list): Adjust add_thread call.
17847 (core_target_open): Adjust add_thread_silent and thread_count
17848 calls.
17849 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17850 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17851 * event-top.c (async_disconnect): Pop targets from all inferiors.
17852 * exec.c (add_target_sections): Push exec target on all inferiors
17853 sharing the program space.
17854 (remove_target_sections): Remove the exec target from all
17855 inferiors sharing the program space.
17856 (exec_on_vfork): New.
17857 * exec.h (exec_on_vfork): Declare.
17858 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17859 Pass it down.
17860 (fbsd_nat_target::update_thread_list): Adjust.
17861 (fbsd_nat_target::resume): Adjust.
17862 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17863 down.
17864 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17865 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17866 get_thread_arch_regcache call.
17867 * fork-child.c (gdb_startup_inferior): Pass target down to
17868 startup_inferior and set_executing.
17869 * gdbthread.h (struct process_stratum_target): Forward declare.
17870 (add_thread, add_thread_silent, add_thread_with_info)
17871 (in_thread_list): Add process_stratum_target parameter.
17872 (find_thread_ptid(inferior*, ptid_t)): New overload.
17873 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17874 parameter.
17875 (all_threads()): Delete overload.
17876 (all_threads, all_non_exited_threads): Add process_stratum_target
17877 parameter.
17878 (all_threads_safe): Use brace initialization.
17879 (thread_count): Add process_stratum_target parameter.
17880 (set_resumed, set_running, set_stop_requested, set_executing)
17881 (threads_are_executing, finish_thread_state): Add
17882 process_stratum_target parameter.
17883 (switch_to_thread): Use is_current_thread.
17884 * i386-fbsd-tdep.c: Include "inferior.h".
17885 (i386fbsd_get_thread_local_address): Pass down target.
17886 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17887 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17888 have_inferiors check.
17889 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17890 (inf_ptrace_target::attach): Adjust.
17891 * infcall.c (run_inferior_call): Adjust.
17892 * infcmd.c (run_command_1): Pass target to
17893 scoped_finish_thread_state.
17894 (proceed_thread_callback): Skip inferiors with no execution.
17895 (continue_command): Rename 'all_threads' local to avoid hiding
17896 'all_threads' function. Adjust get_last_target_status call.
17897 (prepare_one_step): Adjust set_running call.
17898 (signal_command): Use user_visible_resume_target. Compare thread
17899 pointers instead of inferior_ptid.
17900 (info_program_command): Adjust to pass down target.
17901 (attach_command): Mark target's 'thread_executing' flag.
17902 (stop_current_target_threads_ns): New, factored out from ...
17903 (interrupt_target_1): ... this. Switch inferior before making
17904 target calls.
17905 * inferior-iter.h
17906 (struct all_inferiors_iterator, struct all_inferiors_range)
17907 (struct all_inferiors_safe_range)
17908 (struct all_non_exited_inferiors_range): Filter on
17909 process_stratum_target too. Remove explicit.
17910 * inferior.c (inferior::inferior): Push dummy target on target
17911 stack.
17912 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17913 Add process_stratum_target parameter, and pass it down.
17914 (have_live_inferiors): Adjust.
17915 (switch_to_inferior_and_push_target): New.
17916 (add_inferior_command, clone_inferior_command): Handle
17917 "-no-connection" parameter. Use
17918 switch_to_inferior_and_push_target.
17919 (_initialize_inferior): Mention "-no-connection" option in
17920 the help of "add-inferior" and "clone-inferior" commands.
17921 * inferior.h: Include "process-stratum-target.h".
17922 (interrupt_target_1): Use bool.
17923 (struct inferior) <push_target, unpush_target, target_is_pushed,
17924 find_target_beneath, top_target, process_target, target_at,
17925 m_stack>: New.
17926 (discard_all_inferiors): Delete.
17927 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17928 (all_inferiors, all_non_exited_inferiors): Add
17929 process_stratum_target parameter.
17930 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17931 (target_last_proc_target): New global.
17932 (follow_fork_inferior): Push target on new inferior. Pass target
17933 to add_thread_silent. Call exec_on_vfork. Handle target's
17934 reference count.
17935 (follow_fork): Adjust get_last_target_status call. Also consider
17936 target.
17937 (follow_exec): Push target on new inferior.
17938 (struct execution_control_state) <target>: New field.
17939 (user_visible_resume_target): New.
17940 (do_target_resume): Call target_async.
17941 (resume_1): Set target's threads_executing flag. Consider resume
17942 target.
17943 (commit_resume_all_targets): New.
17944 (proceed): Also consider resume target. Skip threads of inferiors
17945 with no execution. Commit resumtion in all targets.
17946 (start_remote): Pass current inferior to wait_for_inferior.
17947 (infrun_thread_stop_requested): Consider target as well. Pass
17948 thread_info pointer to clear_inline_frame_state instead of ptid.
17949 (infrun_thread_thread_exit): Consider target as well.
17950 (random_pending_event_thread): New inferior parameter. Use it.
17951 (do_target_wait): Rename to ...
17952 (do_target_wait_1): ... this. Add inferior parameter, and pass it
17953 down.
17954 (threads_are_resumed_pending_p, do_target_wait): New.
17955 (prepare_for_detach): Adjust calls.
17956 (wait_for_inferior): New inferior parameter. Handle it. Use
17957 do_target_wait_1 instead of do_target_wait.
17958 (fetch_inferior_event): Adjust. Switch to representative
17959 inferior. Pass target down.
17960 (set_last_target_status): Add process_stratum_target parameter.
17961 Save target in global.
17962 (get_last_target_status): Add process_stratum_target parameter and
17963 handle it.
17964 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
17965 (context_switch): Check inferior_ptid == null_ptid before calling
17966 inferior_thread().
17967 (get_inferior_stop_soon): Pass down target.
17968 (wait_one): Rename to ...
17969 (poll_one_curr_target): ... this.
17970 (struct wait_one_event): New.
17971 (wait_one): New.
17972 (stop_all_threads): Adjust.
17973 (handle_no_resumed, handle_inferior_event): Adjust to consider the
17974 event's target.
17975 (switch_back_to_stepped_thread): Also consider target.
17976 (print_stop_event): Update.
17977 (normal_stop): Update. Also consider the resume target.
17978 * infrun.h (wait_for_inferior): Remove declaration.
17979 (user_visible_resume_target): New declaration.
17980 (get_last_target_status, set_last_target_status): New
17981 process_stratum_target parameter.
17982 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17983 process_stratum_target parameter, and use it.
17984 (clear_inline_frame_state (thread_info*)): New.
17985 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
17986 process_stratum_target parameter.
17987 (clear_inline_frame_state (thread_info*)): Declare.
17988 * linux-fork.c (delete_checkpoint_command): Pass target down to
17989 find_thread_ptid.
17990 (checkpoint_command): Adjust.
17991 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
17992 instead of just tweaking inferior_ptid.
17993 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
17994 (exit_lwp): Pass target down to find_thread_ptid.
17995 (attach_proc_task_lwp_callback): Pass target down to
17996 add_thread/set_running/set_executing.
17997 (linux_nat_target::attach): Pass target down to
17998 thread_change_ptid.
17999 (get_detach_signal): Pass target down to find_thread_ptid.
18000 Consider last target status's target.
18001 (linux_resume_one_lwp_throw, resume_lwp)
18002 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
18003 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
18004 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
18005 (linux_nat_target::async_wait_fd): New.
18006 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
18007 target down.
18008 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
18009 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
18010 * linux-thread-db.c (struct thread_db_info::process_target): New
18011 field.
18012 (add_thread_db_info): Save target.
18013 (get_thread_db_info): New process_stratum_target parameter. Also
18014 match target.
18015 (delete_thread_db_info): New process_stratum_target parameter.
18016 Also match target.
18017 (thread_from_lwp): Adjust to pass down target.
18018 (thread_db_notice_clone): Pass down target.
18019 (check_thread_db_callback): Pass down target.
18020 (try_thread_db_load_1): Always push the thread_db target.
18021 (try_thread_db_load, record_thread): Pass target down.
18022 (thread_db_target::detach): Pass target down. Always unpush the
18023 thread_db target.
18024 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
18025 target down. Always unpush the thread_db target.
18026 (find_new_threads_callback, thread_db_find_new_threads_2)
18027 (thread_db_target::update_thread_list): Pass target down.
18028 (thread_db_target::pid_to_str): Pass current inferior down.
18029 (thread_db_target::get_thread_local_address): Pass target down.
18030 (thread_db_target::resume, maintenance_check_libthread_db): Pass
18031 target down.
18032 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
18033 * procfs.c (procfs_target::procfs_init_inferior): Declare.
18034 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
18035 (procfs_init_inferior): Rename to ...
18036 (procfs_target::procfs_init_inferior): ... this and adjust.
18037 (procfs_target::create_inferior, procfs_notice_thread)
18038 (procfs_do_thread_registers): Adjust.
18039 * ppc-fbsd-tdep.c: Include "inferior.h".
18040 (ppcfbsd_get_thread_local_address): Pass down target.
18041 * proc-service.c (ps_xfer_memory): Switch current inferior and
18042 program space as well.
18043 (get_ps_regcache): Pass target down.
18044 * process-stratum-target.c
18045 (process_stratum_target::thread_address_space)
18046 (process_stratum_target::thread_architecture): Pass target down.
18047 * process-stratum-target.h
18048 (process_stratum_target::threads_executing): New field.
18049 (as_process_stratum_target): New.
18050 * ravenscar-thread.c
18051 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
18052 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
18053 down.
18054 * record-btrace.c (record_btrace_target::info_record): Adjust.
18055 (record_btrace_target::record_method)
18056 (record_btrace_target::record_is_replaying)
18057 (record_btrace_target::fetch_registers)
18058 (get_thread_current_frame_id, record_btrace_target::resume)
18059 (record_btrace_target::wait, record_btrace_target::stop): Pass
18060 target down.
18061 * record-full.c (record_full_wait_1): Switch to event thread.
18062 Pass target down.
18063 * regcache.c (regcache::regcache)
18064 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
18065 process_stratum_target parameter and handle it.
18066 (current_thread_target): New global.
18067 (get_thread_regcache): Add process_stratum_target parameter and
18068 handle it. Switch inferior before calling target method.
18069 (get_thread_regcache): Pass target down.
18070 (get_thread_regcache_for_ptid): Pass target down.
18071 (registers_changed_ptid): Add process_stratum_target parameter and
18072 handle it.
18073 (registers_changed_thread, registers_changed): Pass target down.
18074 (test_get_thread_arch_aspace_regcache): New.
18075 (current_regcache_test): Define a couple local test_target_ops
18076 instances and use them for testing.
18077 (readwrite_regcache): Pass process_stratum_target parameter.
18078 (cooked_read_test, cooked_write_test): Pass mock_target down.
18079 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
18080 (get_thread_arch_aspace_regcache): Add process_stratum_target
18081 parameter.
18082 (regcache::target): New method.
18083 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
18084 (regcache::registers_changed_ptid): Add process_stratum_target
18085 parameter.
18086 (regcache::m_target): New field.
18087 (registers_changed_ptid): Add process_stratum_target parameter.
18088 * remote.c (remote_state::supports_vCont_probed): New field.
18089 (remote_target::async_wait_fd): New method.
18090 (remote_unpush_and_throw): Add remote_target parameter.
18091 (get_current_remote_target): Adjust.
18092 (remote_target::remote_add_inferior): Push target.
18093 (remote_target::remote_add_thread)
18094 (remote_target::remote_notice_new_inferior)
18095 (get_remote_thread_info): Pass target down.
18096 (remote_target::update_thread_list): Skip threads of inferiors
18097 bound to other targets. (remote_target::close): Don't discard
18098 inferiors. (remote_target::add_current_inferior_and_thread)
18099 (remote_target::process_initial_stop_replies)
18100 (remote_target::start_remote)
18101 (remote_target::remote_serial_quit_handler): Pass down target.
18102 (remote_target::remote_unpush_target): New remote_target
18103 parameter. Unpush the target from all inferiors.
18104 (remote_target::remote_unpush_and_throw): New remote_target
18105 parameter. Pass it down.
18106 (remote_target::open_1): Check whether the current inferior has
18107 execution instead of checking whether any inferior is live. Pass
18108 target down.
18109 (remote_target::remote_detach_1): Pass down target. Use
18110 remote_unpush_target.
18111 (extended_remote_target::attach): Pass down target.
18112 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
18113 (remote_target::append_resumption): Pass down target.
18114 (remote_target::append_pending_thread_resumptions)
18115 (remote_target::remote_resume_with_hc, remote_target::resume)
18116 (remote_target::commit_resume): Pass down target.
18117 (remote_target::remote_stop_ns): Check supports_vCont_probed.
18118 (remote_target::interrupt_query)
18119 (remote_target::remove_new_fork_children)
18120 (remote_target::check_pending_events_prevent_wildcard_vcont)
18121 (remote_target::remote_parse_stop_reply)
18122 (remote_target::process_stop_reply): Pass down target.
18123 (first_remote_resumed_thread): New remote_target parameter. Pass
18124 it down.
18125 (remote_target::wait_as): Pass down target.
18126 (unpush_and_perror): New remote_target parameter. Pass it down.
18127 (remote_target::readchar, remote_target::remote_serial_write)
18128 (remote_target::getpkt_or_notif_sane_1)
18129 (remote_target::kill_new_fork_children, remote_target::kill): Pass
18130 down target.
18131 (remote_target::mourn_inferior): Pass down target. Use
18132 remote_unpush_target.
18133 (remote_target::core_of_thread)
18134 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18135 (remote_target::pid_to_exec_file)
18136 (remote_target::thread_handle_to_thread_info): Pass down target.
18137 (remote_target::async_wait_fd): New.
18138 * riscv-fbsd-tdep.c: Include "inferior.h".
18139 (riscv_fbsd_get_thread_local_address): Pass down target.
18140 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18141 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18142 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18143 Adjust.
18144 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18145 * solib-svr4.c (enable_break): Pass down target.
18146 * spu-multiarch.c (parse_spufs_run): Pass down target.
18147 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18148 * target-delegates.c: Regenerate.
18149 * target.c (g_target_stack): Delete.
18150 (current_top_target): Return the current inferior's top target.
18151 (target_has_execution_1): Refer to the passed-in inferior's top
18152 target.
18153 (target_supports_terminal_ours): Check whether the initial
18154 inferior was already created.
18155 (decref_target): New.
18156 (target_stack::push): Incref/decref the target.
18157 (push_target, push_target, unpush_target): Adjust.
18158 (target_stack::unpush): Defref target.
18159 (target_is_pushed): Return bool. Adjust to refer to the current
18160 inferior's target stack.
18161 (dispose_inferior): Delete, and inline parts ...
18162 (target_preopen): ... here. Only dispose of the current inferior.
18163 (target_detach): Hold strong target reference while detaching.
18164 Pass target down.
18165 (target_thread_name): Add assertion.
18166 (target_resume): Pass down target.
18167 (target_ops::beneath, find_target_at): Adjust to refer to the
18168 current inferior's target stack.
18169 (get_dummy_target): New.
18170 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18171 has a thread running.
18172 (initialize_targets): Rename to ...
18173 (_initialize_target): ... this.
18174 * target.h: Include "gdbsupport/refcounted-object.h".
18175 (struct target_ops): Inherit refcounted_object.
18176 (target_ops::shortname, target_ops::longname): Make const.
18177 (target_ops::async_wait_fd): New method.
18178 (decref_target): Declare.
18179 (struct target_ops_ref_policy): New.
18180 (target_ops_ref): New typedef.
18181 (get_dummy_target): Declare function.
18182 (target_is_pushed): Return bool.
18183 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18184 (all_matching_threads_iterator::all_matching_threads_iterator):
18185 Handle filter target.
18186 * thread-iter.h (struct all_matching_threads_iterator, struct
18187 all_matching_threads_range, class all_non_exited_threads_range):
18188 Filter by target too. Remove explicit.
18189 * thread.c (threads_executing): Delete.
18190 (inferior_thread): Pass down current inferior.
18191 (clear_thread_inferior_resources): Pass down thread pointer
18192 instead of ptid_t.
18193 (add_thread_silent, add_thread_with_info, add_thread): Add
18194 process_stratum_target parameter. Use it for thread and inferior
18195 searches.
18196 (is_current_thread): New.
18197 (thread_info::deletable): Use it.
18198 (find_thread_ptid, thread_count, in_thread_list)
18199 (thread_change_ptid, set_resumed, set_running): New
18200 process_stratum_target parameter. Pass it down.
18201 (set_executing): New process_stratum_target parameter. Pass it
18202 down. Adjust reference to 'threads_executing'.
18203 (threads_are_executing): New process_stratum_target parameter.
18204 Adjust reference to 'threads_executing'.
18205 (set_stop_requested, finish_thread_state): New
18206 process_stratum_target parameter. Pass it down.
18207 (switch_to_thread): Also match inferior.
18208 (switch_to_thread): New process_stratum_target parameter. Pass it
18209 down.
18210 (update_threads_executing): Reimplement.
18211 * top.c (quit_force): Pop targets from all inferior.
18212 (gdb_init): Don't call initialize_targets.
18213 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18214 Declare.
18215 (windows_add_thread, windows_delete_thread): Adjust.
18216 (get_windows_debug_event): Rename to ...
18217 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18218 * tracefile-tfile.c (tfile_target_open): Pass down target.
18219 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18220 Forward declare.
18221 (switch_to_thread): Add process_stratum_target parameter.
18222 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18223 parameter. Use it.
18224 (mi_on_resume): Pass target down.
18225 * nat/fork-inferior.c (startup_inferior): Add
18226 process_stratum_target parameter. Pass it down.
18227 * nat/fork-inferior.h (startup_inferior): Add
18228 process_stratum_target parameter.
18229 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18230
75c6c844
PA
182312020-01-10 Pedro Alves <palves@redhat.com>
18232
18233 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18234 directly. Instead find the first thread in the thread list and
18235 use switch_to_thread.
18236
78f2c40a
PA
182372020-01-10 Pedro Alves <palves@redhat.com>
18238
18239 * remote.c (remote_target::remote_add_inferior): Don't bind a
18240 process to the current inferior if the current inferior is already
18241 bound to a process.
18242
e7af6c70
TBA
182432020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18244 Pedro Alves <palves@redhat.com>
18245
18246 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18247 If no process is specified, return null_ptid instead of
18248 inferior_ptid.
18249 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18250 TARGET_WAITKIND_SIGNALLED with no pid.
18251
31ba933e
PA
182522020-01-10 Pedro Alves <palves@redhat.com>
18253
18254 * remote.c (first_remote_resumed_thread): New.
18255 (remote_target::wait_as): Use it as default event_ptid instead of
18256 inferior_ptid.
18257
735fc2ca
PA
182582020-01-10 Pedro Alves <palves@redhat.com>
18259
18260 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18261
c17e02e1
PA
182622020-01-10 Pedro Alves <palves@redhat.com>
18263
18264 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18265 not -1.
18266
ab1ddbcf
PA
182672020-01-10 Pedro Alves <palves@redhat.com>
18268
18269 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18270 ptid to get_last_target_status.
18271 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18272 ptid to get_last_target_status.
18273 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18274 get_last_target_status.
18275 (info_program_command): Don't pass a target_waitstatus to
18276 get_last_target_status.
18277 * infrun.c (init_wait_for_inferior): Use
18278 nullify_last_target_wait_ptid.
18279 (get_last_target_status): Handle nullptr arguments.
18280 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18281 (print_stop_event): Don't pass a ptid to get_last_target_status.
18282 (normal_stop): Don't pass a ptid to get_last_target_status.
18283 * infrun.h (get_last_target_status, set_last_target_status): Move
18284 comments here and update.
18285 (nullify_last_target_wait_ptid): Declare.
18286 * linux-fork.c (fork_load_infrun_state): Remove local extern
18287 declaration of nullify_last_target_wait_ptid.
18288 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18289 to get_last_target_status.
18290
f3f8ece4
PA
182912020-01-10 Pedro Alves <palves@redhat.com>
18292
18293 * gdbthread.h (scoped_restore_current_thread)
18294 <dont_restore, restore, m_dont_restore>: Declare.
18295 * thread.c (thread_alive): Add assertion. Return bool.
18296 (switch_to_thread_if_alive): New.
18297 (prune_threads): Switch inferior/thread.
18298 (print_thread_info_1): Switch thread before calling target methods.
18299 (scoped_restore_current_thread::restore): New, factored out from
18300 ...
18301 (scoped_restore_current_thread::~scoped_restore_current_thread):
18302 ... this.
18303 (scoped_restore_current_thread::scoped_restore_current_thread):
18304 Add assertion.
18305 (thread_apply_all_command, thread_select): Use
18306 switch_to_thread_if_alive.
18307 * infrun.c (proceed, restart_threads, handle_signal_stop)
18308 (switch_back_to_stepped_thread): Switch current thread before
18309 calling target methods.
18310
db2d40f7
PA
183112020-01-10 Pedro Alves <palves@redhat.com>
18312
18313 * inferior.c (switch_to_inferior_no_thread): New function,
18314 factored out from ...
18315 (inferior_command): ... here.
18316 * inferior.h (switch_to_inferior_no_thread): Declare.
18317 * mi/mi-main.c (run_one_inferior): Use
18318 switch_to_inferior_no_thread.
18319
bd420a2d
PA
183202020-01-10 Pedro Alves <palves@redhat.com>
18321
18322 * infcmd.c (kill_command): Remove dead code.
18323
ddf5db90
PA
183242020-01-10 Pedro Alves <palves@redhat.com>
18325
18326 * remote.c (remote_target::mourn_inferior): No longer check
18327 whether the target is running.
18328
5018ce90
PA
183292020-01-10 Pedro Alves <palves@redhat.com>
18330
18331 * corelow.c (core_target::has_execution): Change parameter type to
18332 inferior pointer.
18333 * inferior.c (number_of_live_inferiors): Use
18334 inferior::has_execution instead of target_has_execution_1.
18335 * inferior.h (inferior::has_execution): New.
18336 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18337 inferior::has_execution instead of target_has_execution_1.
18338 * process-stratum-target.c
18339 (process_stratum_target::has_execution): Change parameter type to
18340 inferior pointer. Check the inferior's PID instead of
18341 inferior_ptid.
18342 * process-stratum-target.h
18343 (process_stratum_target::has_execution): Change parameter type to
18344 inferior pointer.
18345 * record-full.c (record_full_core_target::has_execution): Change
18346 parameter type to inferior pointer.
18347 * target.c (target_has_execution_1): Change parameter type to
18348 inferior pointer.
18349 (target_has_execution_current): Adjust.
18350 * target.h (target_ops::has_execution): Change parameter type to
18351 inferior pointer.
18352 (target_has_execution_1): Change parameter type to inferior
18353 pointer. Change return type to bool.
18354 * tracefile.h (tracefile_target::has_execution): Change parameter
18355 type to inferior pointer.
18356
74375d18
PA
183572020-01-10 Pedro Alves <palves@redhat.com>
18358
18359 * exceptions.c (print_flush): Remove current_top_target() check.
18360
acdf84a6
PA
183612020-01-10 Pedro Alves <palves@redhat.com>
18362
18363 * remote.c (show_remote_exec_file): Show the current inferior's
18364 exec-file instead of the command variable's value.
18365
ec506636
PA
183662020-01-10 Pedro Alves <palves@redhat.com>
18367
18368 * record-full.c (record_full_resume_ptid): New global.
18369 (record_full_target::resume): Set it.
18370 (record_full_wait_1): Use record_full_resume_ptid instead of
18371 inferior_ptid.
18372
873657b9
PA
183732020-01-10 Pedro Alves <palves@redhat.com>
18374
18375 * gdbthread.h (scoped_restore_current_thread)
18376 <dont_restore, restore, m_dont_restore>: Declare.
18377 * thread.c (thread_alive): Add assertion. Return bool.
18378 (switch_to_thread_if_alive): New.
18379 (prune_threads): Switch inferior/thread.
18380 (print_thread_info_1): Switch thread before calling target methods.
18381 (scoped_restore_current_thread::restore): New, factored out from
18382 ...
18383 (scoped_restore_current_thread::~scoped_restore_current_thread):
18384 ... this.
18385 (scoped_restore_current_thread::scoped_restore_current_thread):
18386 Add assertion.
18387 (thread_apply_all_command, thread_select): Use
18388 switch_to_thread_if_alive.
18389
7f0ae84c
GB
183902020-01-10 George Barrett <bob@bob131.so>
18391
18392 * stap-probe.c (stap_modify_semaphore): Don't check for null
18393 semaphores.
18394 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18395 for null semaphores.
18396
f5a7c406
AB
183972020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18398
18399 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18400 all source windows, and maintain horizontal scroll status while
18401 doing so.
18402
9ae6bf64
TT
184032020-01-09 Tom Tromey <tom@tromey.com>
18404
18405 PR tui/18932:
18406 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18407 update_source_window, not print_source_lines.
18408
b2efe70c
AB
184092020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18410
18411 * tui/tui.c (tui_enable): Register tui hooks after calling
18412 tui_display_main.
18413
5f23a082
CB
184142020-01-09 Christian Biesinger <cbiesinger@google.com>
18415
18416 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18417
3061113b
SM
184182020-01-08 Simon Marchi <simon.marchi@efficios.com>
18419
18420 * thread.c (print_thread_info_1): Fix indentation.
18421
57d75002
CB
184222020-01-09 Christian Biesinger <cbiesinger@google.com>
18423
18424 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18425 unique_xmalloc_ptr outside the if to always free the demangled name.
18426
6a053cb1
TT
184272020-01-08 Tom Tromey <tromey@adacore.com>
18428
18429 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18430 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18431 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18432 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18433 Remove.
18434 (section_offsets): New typedef.
18435 * symtab.c (fixup_section, get_msymbol_address): Update.
18436 * symmisc.c (dump_msymbols): Update.
18437 * symfile.h (relative_addr_info_to_section_offsets)
18438 (symfile_map_offsets_to_segments): Update.
18439 * symfile.c (build_section_addr_info_from_objfile)
18440 (init_objfile_sect_indices): Update.
18441 (struct place_section_arg): Change type of "offsets".
18442 (place_section): Update.
18443 (relative_addr_info_to_section_offsets): Change type of
18444 "section_offsets". Remove "num_sections" parameter.
18445 (default_symfile_offsets, syms_from_objfile_1)
18446 (set_objfile_default_section_offset): Update.
18447 (reread_symbols): No need to preserve section offsets by hand.
18448 (symfile_map_offsets_to_segments): Change type of "offsets".
18449 * stap-probe.c (relocate_address): Update.
18450 * stabsread.h (process_one_symbol): Update.
18451 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18452 (solib_target_relocate_section_addresses): Update.
18453 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18454 Update.
18455 * solib-frv.c (frv_relocate_main_executable): Update.
18456 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18457 * solib-aix.c (solib_aix_get_section_offsets): Change return
18458 type.
18459 (solib_aix_solib_create_inferior_hook): Update.
18460 * remote.c (remote_target::get_offsets): Update.
18461 * psymtab.c (find_pc_sect_psymtab): Update.
18462 * psympriv.h (struct partial_symbol) <address, text_low,
18463 text_high>: Update.
18464 * objfiles.h (obj_section_offset): Update.
18465 (struct objfile) <section_offsets>: Change type.
18466 <num_sections>: Remove.
18467 (objfile_relocate): Update.
18468 * objfiles.c (entry_point_address_query): Update
18469 (relocate_one_symbol): Change type of "section_offsets".
18470 (objfile_relocate1, objfile_relocate1): Change type of
18471 "new_offsets".
18472 (objfile_rebase1): Update.
18473 * mipsread.c (mipscoff_symfile_read): Update.
18474 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18475 parameter.
18476 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18477 (parse_external, psymtab_to_symtab_1): Update.
18478 * machoread.c (macho_symfile_offsets): Update.
18479 * ia64-tdep.c (ia64_find_unwind_table): Update.
18480 * hppa-tdep.c (read_unwind_info): Update.
18481 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18482 * dwarf2read.c (create_addrmap_from_index)
18483 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18484 (process_psymtab_comp_unit_reader, add_partial_symbol)
18485 (add_partial_subprogram, process_full_comp_unit)
18486 (read_file_scope, read_func_scope, read_lexical_block_scope)
18487 (read_call_site_scope, dwarf2_rnglists_process)
18488 (dwarf2_ranges_process, dwarf2_ranges_read)
18489 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18490 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18491 Update.
18492 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18493 Update.
18494 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18495 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18496 (process_one_symbol): Change type of "section_offsets".
18497 * ctfread.c (get_objfile_text_range): Update.
18498 * coffread.c (coff_symtab_read, enter_linenos)
18499 (process_coff_symbol): Update.
18500 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18501 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18502
456e800a
TT
185032020-01-08 Tom Tromey <tromey@adacore.com>
18504
18505 * dwarf2read.c (parse_macro_definition): Use std::string.
18506 (parse_macro_definition): Likewise.
18507
6dfa2fc2
TT
185082020-01-08 Tom Tromey <tromey@adacore.com>
18509
18510 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18511 (ATTR_ALLOC_CHUNK): Remove.
18512
421d1616
TT
185132020-01-08 Tom Tromey <tromey@adacore.com>
18514
18515 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18516
43816ebc
TT
185172020-01-08 Tom Tromey <tromey@adacore.com>
18518
18519 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18520 (dwarf2_compute_name, open_dwo_file): Likewise.
18521 (process_enumeration_scope): Use std::vector.
18522 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18523 (partial_die_info::fixup, dwarf2_start_subfile)
18524 (guess_full_die_structure_name, dwarf2_name): Likewise.
18525 (determine_prefix): Update.
18526 (guess_full_die_structure_name): Make return type const.
18527 (partial_die_full_name): Return unique_xmalloc_ptr.
18528 (DW_FIELD_ALLOC_CHUNK): Remove.
18529
4212d509
TT
185302020-01-07 Tom Tromey <tromey@adacore.com>
18531
18532 PR build/24937:
18533 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18534
06a6207a
JT
185352020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18536
18537 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18538
153d79c4
AB
185392020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18540
18541 * stack.c (print_frame_info): Move disassemble_next_line code
18542 inside source_print block.
18543
66182876
EZ
185442020-01-06 Eli Zaretskii <eliz@gnu.org>
18545
18546 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18547 gdb/signals.h, as we are now using native signal symbols.
18548
cbfa8581
SV
185492020-01-06 Shahab Vahedi <shahab@synopsys.com>
18550
18551 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18552 overflow by an early check of content vs threshold.
aac66a4c 18553 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18554 Likewise.
18555
3f602821
EZ
185562020-01-06 Eli Zaretskii <eliz@gnu.org>
18557
18558 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18559
a08c904d
JT
185602020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18561
18562 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18563 export table if no section contains it's RVA.
18564
89a65580
EZ
185652020-01-06 Eli Zaretskii <eliz@gnu.org>
18566
18567 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18568
8b7fcda2
HD
185692020-01-06 Hannes Domani <ssbssa@yahoo.de>
18570
18571 * source.c (print_source_lines_base): Set last_line_listed.
18572
a61b4f69
SV
185732020-01-06 Shahab Vahedi <shahab@synopsys.com>
18574
18575 * tui/tui-disasm.c: Remove trailing spaces.
18576
559e7e50
EZ
185772020-01-06 Eli Zaretskii <eliz@gnu.org>
18578 Pedro Alves <palves@redhat.com>
18579
18580 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18581 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18582 (windows_gdb_signal_to_target): New function, uses the above
18583 enumeration to convert GDB internal signal codes to equivalent
18584 Windows codes.
18585 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18586 * windows-nat.c: Include "gdb_wait.h".
18587 (get_windows_debug_event): Extract the fatal exception from the
18588 exit status and convert to the equivalent Posix signal number.
18589 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18590 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18591 * gdbsupport/gdb_wait.c: New file, implements
18592 windows_status_to_termsig.
18593 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18594 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18595
f2302a34
AB
185962020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18597
18598 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18599 show_layout.
18600
6a5206eb
LM
186012020-01-05 Luis Machado <luis.machado@linaro.org>
18602
18603 * aarch64-linux-nat.c
18604 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18605 and bfd_mach_aarch64.
18606
6ec1d75e
PW
186072020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18608
18609 * ui-file.c (stdio_file::can_emit_style_escape)
18610 (tee_file::can_emit_style_escape): Ensure style is used also on
18611 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18612 to gdb_stdout.
18613 * main.c (set_gdb_data_directory): Use file style to output the
18614 warning that the given pathname is not a directory.
18615 * top.c (show_history_filename, gdb_safe_append_history)
18616 (show_gdb_datadir): Use file style.
18617
44f81a76
HD
186182020-01-03 Hannes Domani <ssbssa@yahoo.de>
18619
18620 * solib-target.c (struct lm_info_target):
18621 Change offsets to be a unique_xmalloc_ptr.
18622 (solib_target_relocate_section_addresses): Update.
18623
25057eb0
HD
186242020-01-03 Hannes Domani <ssbssa@yahoo.de>
18625
18626 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18627
6e2118f5
BE
186282020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18629
18630 * MAINTAINERS (Write After Approval): Add myself.
18631
8133c7dc
LM
186322020-01-02 Luis Machado <luis.machado@linaro.org>
18633
18634 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18635 Cell BE architecture.
18636 * target.h (struct target_ops) <thread_architecture>: Likewise.
18637
48189bec
HD
186382020-01-01 Hannes Domani <ssbssa@yahoo.de>
18639
18640 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18641
ead1063b
HD
186422020-01-01 Hannes Domani <ssbssa@yahoo.de>
18643
18644 * MAINTAINERS (Write After Approval): Add myself.
18645
e5d78223
JB
186462020-01-01 Joel Brobecker <brobecker@adacore.com>
18647
18648 * gdbarch.sh: Update copyright year range of generated files.
18649
b811d2c2
JB
186502020-01-01 Joel Brobecker <brobecker@adacore.com>
18651
18652 Update copyright year range in all GDB files.
18653
5f4def5c
JB
186542020-01-01 Joel Brobecker <brobecker@adacore.com>
18655
18656 * copyright.py: Convert to Python 3.
18657
51fd4002
JB
186582020-01-01 Joel Brobecker <brobecker@adacore.com>
18659
18660 * copyright.py: Adapt after move of gnulib directory from gdb
18661 directory to toplevel directory.
18662
5fb651f2
JB
186632020-01-01 Joel Brobecker <brobecker@adacore.com>
18664
18665 * copyright.py (main): Exit if run from the wrong directory.
18666
5dd8bf88
JB
186672020-01-01 Joel Brobecker <brobecker@adacore.com>
18668
18669 * top.c (print_gdb_version): Change copyright year to 2020.
18670
9f71dacb 186712020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18672
9f71dacb 18673 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18674
9f71dacb 18675For older changes see ChangeLog-2019.
c906108c
SS
18676\f
18677Local Variables:
18678mode: change-log
18679left-margin: 8
18680fill-column: 74
18681version-control: never
57da7796 18682coding: utf-8
c906108c 18683End:
This page took 3.663708 seconds and 4 git commands to generate.