gdb: include allocated/associated properties in 'maint print type'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5ba3b20e
AB
12020-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * gdbtypes (recursive_dump_type): Include allocated and associated
4 properties.
5
f8676776
LS
62020-12-24 Lancelot SIX <lsix@lancelotsix.com>
7
8 * gdbtypes.c (is_scalar_type_recursive): Prevent comparison
9 between uninitialized values.
10
5cc0917c
AB
112020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * expprint.c (print_subexp_standard): Replace uses of
14 LA_PRINT_STRING.
15 * f-valprint.c (f_language::value_print_inner): Likewise.
16 * guile/scm-pretty-print.c (ppscm_print_string_repr): Likewise.
17 * p-valprint.c (pascal_language::value_print_inner): Likewise.
18 * python/py-prettyprint.c (print_string_repr): Likewise.
19
1c485265
AB
202020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * rust-exp.y (rust_parse): Rename to...
23 (rust_language::parser): ...this.
24 * rust-lang.c (-rust_printstr): Rename to...
25 (rust_language::printstr): ...this.
26 (rust_value_print_inner): Delete declaration.
27 (val_print_struct): Rename to...
28 (rust_language::val_print_struct): ...this. Update calls to
29 member functions.
30 (rust_print_enum): Rename to...
31 (rust_language::print_enum): ...this. Update calls to member
32 functions.
33 (rust_value_print_inner): Rename to...
34 (rust_language::value_print_inner): ...this. Update calls to
35 member functions.
36 (exp_descriptor_rust): Rename to...
37 (rust_language::exp_descriptor_tab): ...this.
38 (class rust_language): Move to rust-lang.h.
39 (rust_language::language_arch_info): Implementation moved to here
40 from class declaration.
41 (rust_language::print_type): Likewise.
42 (rust_language::emitchar): Likewise.
43 (rust_language::is_string_type_p): Likewise.
44 * rust-lang.h: Add 'demangle.h', 'language.h', 'value.h', and
45 'c-lang.h' includes.
46 (rust_parse): Delete declaration.
47 (class rust_language): Class declaration moved here from
48 rust-lang.c.
49
ed5797ee
AB
502020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
51
52 * objc-lang.c (objc_language::opcode_print_table): Return
53 objc_op_print_tab.
54
46157d77
AB
552020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 * p-exp.y (exp): Update call to pascal_is_string_type.
58 (pascal_parse): Rename to...
59 (pascal_language::parser): ...this.
60 * p-lang.c (is_pascal_string_type): Rename to...
61 (pascal_is_string_type): ...this.
62 (pascal_one_char): Rename to...
63 (pascal_language::print_one_char): ...this.
64 (pascal_printchar): Rename to...
65 (pascal_language::printchar): ...this. Update call to
66 print_one_char member function.
67 (pascal_op_print_tab): Rename to...
68 (pascal_language::op_print_tab): ...this.
69 (class pascal_language): Moved to p-lang.h.
70 (pascal_language::language_arch_info): Function implementation
71 moved out of class declaration.
72 (pascal_language::printstr): Likewise.
73 * p-lang.h (pascal_parse): Delete declaration.
74 (pascal_is_string_type): Declare.
75 (pascal_print_type): Delete declaration.
76 (pascal_print_typedef): Delete declaration.
77 (pascal_value_print_inner): Delete declaration.
78 (pascal_value_print): Delete declaration.
79 (pascal_type_print_method_args): Delete declaration.
80 (is_pascal_string_type): Delete declaration.
81 (pascal_printchar): Delete declaration.
82 (pascal_builtin_types): Delete declaration.
83 (pascal_type_print_base): Delete declaration.
84 (pascal_type_print_varspec_prefix): Delete declaration.
85 (class pascal_language): Moved here from p-lang.c.
86 * p-typeprint.c (pascal_type_print_varspec_suffix): Delete
87 declaration.
88 (pascal_type_print_derivation_info): Delete declaration.
89 (pascal_print_type): Rename to...
90 (pascal_language::print_type): ...this. Update calls to member
91 functions.
92 (pascal_print_typedef): Rename to...
93 (pascal_language::print_typedef): ...this. Update calls to member
94 functions.
95 (pascal_type_print_derivation_info): Rename to...
96 (pascal_language::type_print_derivation_info): ...this.
97 (pascal_type_print_method_args): Rename to...
98 (pascal_language::type_print_method_args): ...this.
99 (pascal_type_print_varspec_prefix): Rename to...
100 (pascal_language::type_print_varspec_prefix): ...this. Update
101 calls to member functions.
102 (pascal_print_func_args): Rename to...
103 (pascal_language::print_func_args): ...this. Update calls to
104 member functions.
105 (pascal_type_print_func_varspec_suffix): Rename to...
106 (pascal_language::type_print_func_varspec_suffix): ...this.
107 Update calls to member functions.
108 (pascal_type_print_varspec_suffix): Rename to...
109 (pascal_language::type_print_varspec_suffix): ...this. Update
110 calls to member functions.
111 (pascal_type_print_base): Rename to...
112 (pascal_language::type_print_base): ...this. Update calls to
113 member functions.
114 * p-valprint.c (pascal_value_print_inner): Rename to...
115 (pascal_language::value_print_inner): ...this. Update calls to
116 member functions.
117 (pascal_value_print): Rename to...
118 (pascal_language::value_print): ...this. Update calls to member
119 functions.
120
82fc57fd
AB
1212020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 * go-exp.y (go_parse): Rename to...
124 (go_language::parser): ...this.
125 * go-lang.c (go_demangle): Rename to...
126 (go_language::demangle_symbol): ...this.
127 (go_language::expression_ops): Implementation moved here out of
128 class declaration.
129 (go_op_print_tab): Rename to...
130 (go_language::op_print_tab): ...this, update comment.
131 (class go_language): Declaration moved to go-lang.h.
132 (go_language::language_arch_info): Implementation moved here out
133 of class declaration.
134 * go-lang.h (go_parse): Delete declaration.
135 (go_demangle): Delete declaration.
136 (go_print_type): Delete declaration.
137 (go_value_print_inner): Delete declaration.
138 (class go_language): Declaration moved here from go-lang.c.
139 * go-typeprint.c (go_print_type): Rename to...
140 (go_language::print_type): ...this.
141 * go-valprint.c (go_value_print_inner): Rename to...
142 (go_language::value_print_inner): ...this.
143 * symtab.c (demangle_for_lookup): Call demangle_symbol method on
144 the go_language object.
145
76ca72bc
AB
1462020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
147
148 * c-lang.c (language_defn::printchar): Call emitchar, not
149 LA_EMIT_CHAR.
150 * f-lang.h (f_language::printchar): Likewise.
151 * language.h (LA_EMIT_CHAR): Delete macro.
152 * rust-lang.c (rust_language::printchar): Call emitchar, not
153 LA_EMIT_CHAR.
154
c5ee319e
AB
1552020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 * c-lang.c (c_printchar): Rename to...
158 (language_defn::printchar): ...this.
159 * c-lang.h (c_printchar): Delete declaration.
160 * language.c (language_defn::printchar): Delete this
161 implementation. Is now implemented in c-lang.c.
162
2c75ccb2
AB
1632020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
164
165 * dwarf2/read.c (dwarf2_compute_name): Call methods on C++
166 language object instead of calling global functions directly.
167
016382f8
AB
1682020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
169
170 * valprint.c (print_char_chars): Delete definition.
171 * valprint.h (print_char_chars): Delete declaration.
172
06f6f78f
ST
1732020-12-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
174
175 * i386-gnu-tdep.c (I386_GNU_UCONTEXT_T_THREAD_STATE_OFFSET): New
176 macro.
177 (i386_gnu_sigcontext_addr): Detect between legacy and siginfo from the
178 second parameter, which is a small sigcode in the legacy case, and a
179 pointer in the siginfo case.
180
05ecfa47
ST
181 * MAINTAINERS (Write After Approval): Add myself.
182
e512699a
SV
1832020-12-22 Shahab Vahedi <shahab@synopsys.com>
184
185 * frame.c: Remove trailing white spaces.
186 * frame.h: Likewise.
187
acf10cac
SV
1882020-12-22 Shahab Vahedi <shahab@synopsys.com>
189
190 * arc-linux-tdep.c: Replace "regnum" with "REGNUM" in comments.
191
04c9f85e
AK
1922020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
193
194 * Makefile.in (ALLDEPFILES): Add arc-linux-nat.c.
195 * configure.host (host to gdb names): Add arc*-*-linux*.
196 * configure.nat (gdb_host_cpu): Add arc.
197 * arc-linux-nat.c: New.
198
46023bbe
SV
1992020-12-22 Shahab Vahedi <shahab@synopsys.com>
200
201 * arc-linux-tdep.c (supply_register): New.
202 (arc_linux_supply_gregset, arc_linux_supply_v2_regset,
203 arc_linux_collect_v2_regset): Consider REGNUM.
204
d4af7272
AK
2052020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
206
207 * arc-linux-tdep.c (arc_linux_sc_reg_offsets): New static variable.
208 (arc_linux_is_sigtramp): New function.
209 (arc_linux_sigcontext_addr): Likewise.
210 (arc_linux_init_osabi): Use them.
211
b4e3cd04
AK
2122020-12-22 Anton Kolesov <anton.kolesov@synopsys.com>
213
214 * arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
215 (arc_sigtramp_frame_this_id): Likewise.
216 (arc_sigtramp_frame_prev_register): Likewise.
217 (arc_sigtramp_frame_sniffer): Likewise.
218 (arc_siftramp_frame_unwind): New global variable.
219 (arc_gdbarch_init): Use sigtramp capabilities.
220 (arc_dump_tdep): Print sigtramp fields.
221 * arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
222
6c078f0b
TT
2232020-12-21 Tom Tromey <tom@tromey.com>
224
225 * expression.h (enum noside): Move earlier.
226
e1ff6226
PW
2272020-12-21 Peter Waller <p@pwaller.net>
228
229 * interps.c (interpreter_exec_cmd): Restore streams pointers.
230
98d837f0
MM
2312020-12-21 Markus Metzger <markus.t.metzger@intel.com>
232
233 * record.c (require_record_target): Rephrase error message.
234 (info_record_command): Likewise.
235
fa639f55
HD
2362020-12-19 Hannes Domani <ssbssa@yahoo.de>
237
238 PR exp/27070
239 * gdbtypes.c (check_types_equal): Don't compare types of enum fields.
240
0455b7d3
BE
2412020-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
242
243 * configure.ac: Move the static libs vs. source-highlight
244 error message to a better place.
245 * configure: Regenerate.
246
e51765f9
HD
2472020-12-18 Hannes Domani <ssbssa@yahoo.de>
248
249 * gdb-gdb.py.in: Fix main_type field name.
250
4aea001f
HD
2512020-12-18 Hannes Domani <ssbssa@yahoo.de>
252
253 * python/py-value.c (valpy_format_string): Implement address keyword.
254
b3f9469b
HD
2552020-12-18 Hannes Domani <ssbssa@yahoo.de>
256
257 * python/py-type.c (typy_get_composite): Add TYPE_CODE_METHOD.
258
a9e48095
JN
2592020-12-18 Jameson Nash <vtjnash@gmail.com>
260
261 * coffread.c (linetab_offset): Change type to file_ptr.
262 (linetab_size): Likewise.
263 (enter_linenos): Change parameter type to file_ptr.
264 (init_lineno): Likewise.
265 (init_stringtab): Likewise.
266 (coff_symtab_read): Likewise.
267 (coff_symfile_read): Change variable types to file_ptr.
268
844a6538
TT
2692020-12-17 Tom Tromey <tromey@adacore.com>
270
271 * printcmd.c (print_variable_and_value): Don't use n_spaces.
272
32f47895
TT
2732020-12-17 Tom Tromey <tromey@adacore.com>
274
275 * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff)
276 (print_gnat_stuff, print_fixed_point_type_info)
277 (recursive_dump_type): Update.
278 * go32-nat.c (go32_sysinfo, display_descriptor): Update.
279 * c-typeprint.c (c_type_print_base_struct_union)
280 (c_type_print_base_1): Update.
281 * rust-lang.c (rust_internal_print_type): Update.
282 * f-typeprint.c (f_language::f_type_print_base): Update.
283 * utils.h (fprintfi_filtered, printfi_filtered): Remove.
284 * m2-typeprint.c (m2_record_fields): Update.
285 * p-typeprint.c (pascal_type_print_base): Update.
286 * compile/compile-loc2c.c (push, pushf, unary, binary)
287 (do_compile_dwarf_expr_to_c): Update.
288 * utils.c (fprintfi_filtered, printfi_filtered): Remove.
289
c5c41205
TT
2902020-12-16 Tom Tromey <tom@tromey.com>
291
292 * rust-exp.y (rust_lex_tests): Update.
293 * parser-defs.h (parser_state): Add void_p parameter.
294 <void_context_p>: New member.
295 * parse.c (parse_exp_in_context): Update.
296 * language.h (language_defn::post_parser): Remove void_context_p,
297 completing, tracker parameters. Add parser state.
298 * ada-lang.c (ada_language::post_parser): Update.
299
35c1ab60
TT
3002020-12-16 Tom Tromey <tom@tromey.com>
301
302 * parse.c (parse_exp_1, parse_expression_for_completion): Update.
303 (parse_exp_in_context): Change void_context_p to bool.
304 * language.h (struct language_defn) <post_parser>: Change
305 void_context_p to bool.
306 * ada-lang.c (class ada_language) <post_parser>: Update.
307
2f228731
TT
3082020-12-16 Tom Tromey <tom@tromey.com>
309 Tom Tromey <tromey@redhat.com>
310 Tom de Vries <tdevries@suse.de>
311
312 * utils.h (get_chars_per_line): Declare.
313 * utils.c (get_chars_per_line): New function.
314 (fputs_maybe_filtered): Handle '\r'.
315 * ui-out.h (ui_out::progress_meter): New class.
316 (ui_out::progress, ui_out::do_progress_start)
317 (ui_out::do_progress_notify, ui_out::do_progress_end): New
318 methods.
319 * ui-out.c (do_progress_end)
320 (make_cleanup_ui_out_progress_begin_end, ui_out_progress): New
321 functions.
322 * mi/mi-out.h (mi_ui_out::do_progress_start)
323 (mi_ui_out::do_progress_notify, mi_ui_out::do_progress_end): New
324 methods.
325 * cli-out.h (struct cli_ui_out) <do_progress_start,
326 do_progress_notify, do_progress_end>: New methods.
327 <enum meter_stat, struct cli_progress_info>: New.
328 <m_meters>: New member.
329 * cli-out.c (cli_ui_out::do_progress_start)
330 (cli_ui_out::do_progress_notify, cli_ui_out::do_progress_end): New
331 methods.
332
bfbe4b84
LM
3332020-12-16 Luis Machado <luis.machado@linaro.org>
334
335 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Record FPSR.
336
19007d95
LM
3372020-12-16 Luis Machado <luis.machado@linaro.org>
338
339 * aarch64-linux-nat.c
340 (aarch64_linux_nat_target::stopped_data_address): Handle the TBI.
341
a33fc9ae
RK
3422020-12-15 Rae Kim <rae.kim@gmail.com>
343
344 * cli/cli-script.c (do_document_command): Rename from
345 document_command. Handle multi-line input.
346 (multi_line_command_p): Handle document_control.
347 (build_command_line): Likewise.
348 (execute_control_command_1): Likewise.
349 (process_next_line): Likewise.
350 (document_command): Call do_document_command.
351 * cli/cli-script.h (enum command_control_type): Add
352 document_control.
353
efd7ff14
TT
3542020-12-15 Tom Tromey <tom@tromey.com>
355
356 * stap-probe.c (stap_probe::evaluate_argument): Use
357 evaluate_expression.
358 * dtrace-probe.c (dtrace_probe::evaluate_argument): Use
359 evaluate_expression.
360 * value.h (evaluate_expression): Add expect_type parameter.
361 * objc-lang.c (print_object_command): Call evaluate_expression.
362 * eval.c (evaluate_expression): Add expect_type parameter.
363
2adab65c
TT
3642020-12-15 Tom Tromey <tom@tromey.com>
365
366 * varobj.c (varobj_create): Use first_opcode.
367 * value.c (init_if_undefined_command): Use first_opcode.
368 * typeprint.c (whatis_exp): Use first_opcode.
369 * tracepoint.c (validate_actionline): Use first_opcode.
370 (encode_actions_1): Use first_opcode.
371 * stack.c (return_command): Use first_opcode.
372 * expression.h (struct expression) <first_opcode>: New method.
373 * eval.c (parse_and_eval_type): Use first_opcode.
374 * dtrace-probe.c (dtrace_process_dof_probe): Use first_opcode.
375
1ab8280d
TT
3762020-12-15 Tom Tromey <tom@tromey.com>
377
378 * f-lang.c (evaluate_subexp_f): Update.
379 * expression.h (evaluate_subexp_do_call): Update.
380 * eval.c (evaluate_subexp_do_call): Add callee parameter. Replace
381 nargs, argvec with array_view.
382 (evaluate_funcall): Update.
383
cf608cc4
TT
3842020-12-15 Tom Tromey <tom@tromey.com>
385
386 * ada-lang.c (num_component_specs): Remove.
387 (assign_aggregate): Update.
388 (aggregate_assign_positional, aggregate_assign_from_choices)
389 (aggregate_assign_others, add_component_interval): Change
390 arguments.
391
0e5ad442
TT
3922020-12-15 Tom Tromey <tromey@adacore.com>
393
394 * cli/cli-decode.c (deprecated_cmd_warning): Use title style for
395 command names.
396
a6f3c8a1
TT
3972020-12-14 Tom Tromey <tom@tromey.com>
398
399 * dtrace-probe.c (dtrace_process_dof_probe): Use value_type.
400 * typeprint.c (whatis_exp): Always use evaluate_type.
401 (maintenance_print_type): Likewise. Simplify.
402
86b44259
TT
4032020-12-14 Tom Tromey <tromey@adacore.com>
404
405 * dictionary.c (language_defn::search_name_hash): Ignore "B".
406 * ada-lang.c (advance_wild_match): Ignore "B".
407 (full_match): Remove.
408 (do_full_match): Rewrite.
409
25a1127b
TT
4102020-12-14 Tom Tromey <tromey@adacore.com>
411
412 * ada-lang.c (get_var_value): Only consider exact matches.
413
e26624c6
TT
4142020-12-14 Tom Tromey <tromey@adacore.com>
415
416 * dwarf2/read.c (rewrite_array_type): New function.
417 (quirk_ada_thick_pointer_struct): Use rewrite_array_type.
418
a3bdae4e
TT
4192020-12-14 Tom Tromey <tromey@adacore.com>
420
421 * valarith.c (fixed_point_binop): Call error on division by zero.
422
f5756acc
TT
4232020-12-13 Tom Tromey <tom@tromey.com>
424
425 * gdbtypes.c (safe_parse_type): Make argument const.
426 * value.h (parse_and_eval_type): Make argument const.
427 * eval.c (parse_and_eval_type): Make argument const.
428
ee9812a0
AB
4292020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * NEWS: Mention new commands.
432 * target-dcache.c: Add 'cli/cli-cmds.h' include.
433 (maint_flush_dcache_command): New function.
434 (_initialize_target_dcache): Create new 'maint flush dcache'
435 command.
436
50a5f187
AB
4372020-12-13 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * NEWS: Mention new commands, and that the old commands are now
440 deprecated.
441 * cli/cli-cmds.c (maintenanceflushlist): Define.
442 * cli/cli-cmds.h (maintenanceflushlist): Declare.
443 * maint.c (_initialize_maint_cmds): Initialise
444 maintenanceflushlist.
445 * regcache.c: Add 'cli/cli-cmds.h' include.
446 (reg_flush_command): Add header comment.
447 (_initialize_regcache): Create new 'maint flush register-cache'
448 command, make 'flushregs' an alias.
449 * symtab.c: Add 'cli/cli-cmds.h' include.
450 (_initialize_symtab): Create new 'maint flush symbol-cache'
451 command, make old command an alias.
452
19c659f1
AB
4532020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * cli/cli-decode.c (deprecated_cmd_warning): Ignore the prefix
456 result from lookup_cmd_composition_1, use the prefixes from both
457 the command and the alias instead.
458 (lookup_cmd_composition_1): Initial prefix command is the based on
459 the search list being passed in. Simplify the logic for tracking
460 the prefix command. Replace a use of alloca with a local
461 std::string.
462
44c77c32
AB
4632020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 * cli/cli-decode.c (deprecated_cmd_warning): Use nullptr instead
466 of NULL. Don't print message piece by piece, but sentence at a
467 time to allow internationalisation. Some whitespace cleanup.
468
9ef6d4a1
AB
4692020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
470
471 PR cli/15104
472 * cli/cli-decode.c (lookup_cmd_1): Pass command list to
473 deprecated_cmd_warning.
474 (deprecated_cmd_warning): Take extra parameter, call
475 lookup_cmd_composition_1 and pass new parameter through.
476 (lookup_cmd_composition_1): New function, takes implementation of
477 lookup_cmd_composition but with extra parameter.
478 (lookup_cmd_composition): Now calls lookup_cmd_composition_1
479 passing in cmdlist.
480 * command.h (deprecated_cmd_warning): Add extra parameter to
481 declaration.
482 * top.c (execute_command): Pass cmdlist to deprecated_cmd_warning.
483
1536146f
AB
4842020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
485
486 * cli/cli-decode.c (lookup_cmd_1): Move header comment into
487 command.h, add extra parameter, and use this to guard giving a
488 warning.
489 * command.h (lookup_cmd_1): Add comment from cli/cli-decode.c,
490 include argument names in declaration, add new argument.
491 * completer.c (complete_line_internal_1): Remove unneeded
492 brackets, pass extra argument to lookup_cmd_1.
493
94ba44a6
SM
4942020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
495
496 * infrun.h (debug_infrun): Make a bool.
497 * infrun.c (debug_infrun): Make a bool.
498 (_initialize_infrun): Use add_setshow_boolean_cmd to define "set
499 debug infrun".
500
74b773fc
SM
5012020-12-11 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * displaced-stepping.h (displaced_debug_printf): Use
504 debug_prefixed_printf_cond.
505 * dwarf2/read.c (dwarf_read_debug_printf): Likewise.
506 (dwarf_read_debug_printf_v): Likewise.
507 * infrun.h (infrun_debug_printf): Likewise.
508 * linux-nat.c (linux_nat_debug_printf): Likewise.
509
02c72701
TT
5102020-12-11 Tom Tromey <tom@tromey.com>
511
512 * p-exp.y (intvar): Remove global.
513 (DOLLAR_VARIABLE): Change type.
514 (start): Update.
515 (exp): Call write_dollar_variable here...
516 (yylex): ... not here.
517 * m2-exp.y (DOLLAR_VARIABLE): Change type.
518 (variable): Call write_dollar_variable here...
519 (yylex): ... not here.
520 * f-exp.y (DOLLAR_VARIABLE): Change type.
521 (exp): Call write_dollar_variable here...
522 (yylex): ... not here.
523
07d9937a
TT
5242020-12-11 Tom Tromey <tom@tromey.com>
525
526 * varobj.c (varobj_create): Update.
527 (install_variable): Return void.
528
1345dee2
TT
5292020-12-11 Tom Tromey <tom@tromey.com>
530
531 * varobj.c (instantiate_pretty_printer): Use gdbpy_ref.
532
446d2c03
TT
5332020-12-11 Tom Tromey <tom@tromey.com>
534
535 * varobj.c (varobj_clear_saved_item): Remove.
536 (update_dynamic_varobj_children): Update.
537 (varobj::~varobj): Don't call varobj_clear_saved_item.
538
11106495
TT
5392020-12-11 Tom Tromey <tom@tromey.com>
540
541 * varobj.c (install_dynamic_child, varobj_clear_saved_item)
542 (update_dynamic_varobj_children, create_child)
543 (create_child_with_value): Update.
544 * varobj-iter.h (struct varobj_item) <value>: Now a
545 value_ref_ptr.
546 * python/py-varobj.c (py_varobj_iter::next): Call release_value.
547
24fd95b4
TT
5482020-12-11 Tom Tromey <tom@tromey.com>
549
550 * varobj.c (struct varobj_dynamic) <child_iter>: Now unique_ptr.
551 (varobj_get_iterator): Return unique_ptr.
552 (update_dynamic_varobj_children, install_visualizer)
553 (varobj::~varobj): Update.
554 * python/python-internal.h (py_varobj_get_iterator): Return
555 unique_ptr.
556 * python/py-varobj.c (py_varobj_get_iterator): Return unique_ptr.
557
74462664
TT
5582020-12-11 Tom Tromey <tom@tromey.com>
559
560 * varobj.c (struct varobj_dynamic) <saved_item>: Now unique_ptr.
561 (varobj_clear_saved_item, update_dynamic_varobj_children):
562 Update.
563
60ee72f6
TT
5642020-12-11 Tom Tromey <tom@tromey.com>
565
566 * varobj.c (update_dynamic_varobj_children): Update.
567 * varobj-iter.h (struct varobj_iter) <next>: Change return type.
568 * python/py-varobj.c (struct py_varobj_iter) <next>: Change return
569 type.
570 (py_varobj_iter::next): Likewise.
571
54746ce3
TT
5722020-12-11 Tom Tromey <tom@tromey.com>
573
574 * varobj.c (update_dynamic_varobj_children, install_visualizer)
575 (varobj::~varobj): Update.
576 * varobj-iter.h (struct varobj_iter): Change to interface class.
577 (struct varobj_iter_ops): Remove.
578 (varobj_iter_next, varobj_iter_delete): Remove.
579 * python/py-varobj.c (struct py_varobj_iter): Derive from
580 varobj_iter. Add constructor, destructor. Rename members.
581 (py_varobj_iter::~py_varobj_iter): Rename from
582 py_varobj_iter_dtor.
583 (py_varobj_iter::next): Rename from py_varobj_iter_next.
584 (py_varobj_iter_ops): Remove.
585 (py_varobj_iter): Rename from py_varobj_iter_ctor.
586 (py_varobj_iter_new): Remove.
587 (py_varobj_get_iterator): Update.
588
d8f168dd
TT
5892020-12-11 Tom Tromey <tom@tromey.com>
590
591 * varobj.h (all_root_varobjs): Take a function_view.
592 * varobj.c (all_root_varobjs): Take a function_view.
593 (varobj_invalidate_iter): Remove unused parameter.
594 (varobj_invalidate): Update.
595 * mi/mi-cmd-var.c (struct mi_cmd_var_update): Remove.
596 (mi_cmd_var_update_iter): Change parameters.
597
76deb5d9
TT
5982020-12-11 Tom Tromey <tom@tromey.com>
599
600 * varobj.c (struct varobj_root) <next>: Remove.
601 (struct vlist): Remove.
602 (rootlist): Now a std::list.
603 (install_variable, uninstall_variable, all_root_varobjs): Update.
604
2c1413a9
TT
6052020-12-11 Tom Tromey <tom@tromey.com>
606
607 * varobj.c (VAROBJ_TABLE_SIZE): Remove.
608 (varobj_table): Now htab_t.
609 (varobj_get_handle, install_variable, uninstall_variable):
610 Update.
611 (hash_varobj, eq_varobj_and_string): New functions.
612 (hash_varobj): Update.
613
b6433ede
TT
6142020-12-11 Tom Tromey <tom@tromey.com>
615
616 * inline-frame.c (stopped_by_user_bp_inline_frame): Update.
617 * ada-lang.c (check_status_exception): Update.
618 * breakpoint.c (free_bp_location): Remove.
619 (decref_bp_location): Use bp_location_ref_policy.
620 (bpstats::bpstats): Don't call incref_bp_location.
621 (bpstats::~bpstats): Remove.
622 (bpstats::bpstats): Update.
623 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
624 (bp_location::bp_location): Update.
625 (incref_bp_location): Remove.
626 (bkpt_print_it): Update.
627 * breakpoint.h (class bp_location): Derive from
628 refcounted_object.
629 (struct bpstats): Remove destructor.
630 <bp_location_at>: Now a bp_location_ref_ptr.
631 <refc>: Remove.
632 (bp_location_ref_ptr): New typedef.
633 (struct bp_location_ref_policy): New.
634
bfcb9db8
TT
6352020-12-11 Tom Tromey <tom@tromey.com>
636
637 * thread.c (class scoped_inc_dec_ref): Remove.
638 (tp_array_compar_ascending, tp_array_compar_descending): Change
639 parameter types.
640 (thread_apply_all_command): Use thread_info_ref.
641
d634cd0b
TT
6422020-12-11 Tom Tromey <tom@tromey.com>
643
644 * infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
645 (stop_context::stop_context): Update.
646 (stop_context::~stop_context): Remove.
647
51107df5
TT
6482020-12-11 Tom Tromey <tom@tromey.com>
649
650 * inferior.c (current_inferior_): Change type.
651 (current_inferior, set_current_inferior, initialize_inferiors):
652 Update.
653
15f4dddd
TT
6542020-12-11 Tom Tromey <tom@tromey.com>
655
656 * gdbthread.h (class enable_thread_stack_temporaries) <m_thr>:
657 Change type.
658
a9f14fa5
TT
6592020-12-11 Tom Tromey <tromey@adacore.com>
660
661 * ada-tasks.c (struct ada_tasks_pspace_data) <cpu_id_offset>: New
662 field.
663 (ada_get_tcb_types_info): Look for __gnat_gdb_cpu_first_id.
664 (read_atcb): Use cpu_id_offset.
665
2ccee230
KB
6662020-12-10 Kevin Buettner <kevinb@redhat.com>
667
668 * ada-lang.c (ada_fold_name): Fix off-by-one error.
669
ae1f4d2d
LM
6702020-12-10 Luis Machado <luis.machado@linaro.org>
671
672 * breakpoint.c (should_be_inserted): Don't output newline.
673
6afcd2d4
LM
6742020-12-10 Luis Machado <luis.machado@linaro.org>
675
676 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg) New function.
677 (aarch64_linux_sigframe_init): Call aarch64_linux_restore_vreg.
678 * aarch64-tdep.h (V_REGISTER_SIZE): Move to ...
679 * arch/aarch64.h: ... here.
680 * nat/aarch64-sve-linux-ptrace.c: Include endian.h.
681 (aarch64_maybe_swab128): New function.
682 (aarch64_sve_regs_copy_to_reg_buf)
683 (aarch64_sve_regs_copy_from_reg_buf): Adjust FPSIMD entries.
684 * trad-frame.c (trad_frame_reset_saved_regs): Initialize
685 the data field.
686 (TF_REG_VALUE_BYTES): New enum value.
687 (trad_frame_value_bytes_p): New function.
688 (trad_frame_set_value_bytes): New function.
689 (trad_frame_set_reg_value_bytes): New function.
690 (trad_frame_get_prev_register): Handle register values saved as bytes.
691 * trad-frame.h (trad_frame_set_reg_value_bytes): New prototype.
692 (struct trad_frame_saved_reg) <data>: New field.
693 (trad_frame_set_value_bytes): New prototype.
694 (trad_frame_value_bytes_p): New prototype.
695
15cc148f
MS
6962020-12-07 Mihails Strasuns <mihails.strasuns@intel.com>
697
698 * jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
699 * gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
700 * gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
701
12932e2c
TT
7022020-12-09 Tom Tromey <tromey@adacore.com>
703
704 * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
705
5cde1d82
TT
7062020-12-09 Tom Tromey <tromey@adacore.com>
707
708 * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
709 and "denominator" to gdb_mpz. Handle block forms.
710 (get_dwarf2_unsigned_rational_constant): Change "numerator" and
711 "denominator" to gdb_mpz.
712 (finish_fixed_point_type): Update.
713 (has_zero_over_zero_small_attribute): Update.
714
d9c3a9c0
TT
7152020-12-09 Tom Tromey <tromey@adacore.com>
716
717 * expprint.c (op_name): Update.
718 * expression.h (enum exp_opcode): Update.
719 * std-operator.def: Add more opcodes.
720 * ada-operator.def, fortran-operator.def: Remove, moving contents
721 into std-operator.def.
722
6ad368b8
SM
7232020-12-09 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * gdbtypes.c (get_discrete_low_bound, get_discrete_high_bound):
726 Return {} instead of false.
727 (get_discrete_bounds): Compute high bound only if low bound is
728 valid.
729
5b56203a
SM
7302020-12-09 Simon Marchi <simon.marchi@efficios.com>
731
732 PR 26875, PR 26901
733 * gdbtypes.c (get_discrete_low_bound): Make non-static.
734 (get_discrete_high_bound): Make non-static.
735 * gdbtypes.h (get_discrete_low_bound): New declaration.
736 (get_discrete_high_bound): New declaration.
737 * valarith.c (value_subscript): Only fetch high bound if
738 necessary.
739
14c09924
SM
7402020-12-09 Simon Marchi <simon.marchi@efficios.com>
741
742 * gdbtypes.c (get_discrete_bounds): Implement with
743 get_discrete_low_bound and get_discrete_high_bound.
744 (get_discrete_low_bound): New.
745 (get_discrete_high_bound): New.
746
1f8d2881
SM
7472020-12-09 Simon Marchi <simon.marchi@efficios.com>
748
749 * gdbtypes.h (get_discrete_bounds): Return bool, adjust all
750 callers.
751 * gdbtypes.c (get_discrete_bounds): Return bool.
752
6244c119
SM
7532020-12-09 Simon Marchi <simon.marchi@efficios.com>
754
755 * ada-lang.c (ada_value_slice_from_ptr): Adjust.
756 (ada_value_slice): Adjust.
757 (pos_atr): Adjust.
758 * gdbtypes.c (get_discrete_bounds): Adjust.
759 (discrete_position): Return optional.
760 * gdbtypes.h (discrete_position): Return optional.
761
a4915e8d
TT
7622020-12-07 Tom Tromey <tromey@adacore.com>
763
764 * maint.c (_initialize_maint_cmds): Use expression command
765 completer for "maint print type".
766
1f58f6c2
TBA
7672020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
768
769 * completer.c (complete_explicit_location): Also add keywords
770 that start with '-' to the completion list.
771
5759831a
TBA
7722020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
773
774 * linespec.c (linespec_lexer_lex_keyword): The "-force-condition"
775 keyword may be followed by any keyword.
776 * breakpoint.c (find_condition_and_thread): Advance 'tok' by
777 'toklen' in the case for "-force-condition".
778
21e051b3
TBA
7792020-12-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
780
781 * main.c (catch_command_errors): Add a flag parameter; invoke
782 `bpstat_do_actions` if the flag is set.
783 (execute_cmdargs): Update a call to `catch_command_errors`.
784
f51f9f1d
TV
7852020-12-07 Tom de Vries <tdevries@suse.de>
786
787 * ada-lang.c (replace_operator_with_call): Handle shrink resize.
788
00158a68
TT
7892020-12-06 Tom Tromey <tom@tromey.com>
790
791 PR ada/26999
792 * ada-lang.c (replace_operator_with_call): Rewrite.
793
296cfb88
GF
7942020-12-06 Giancarlo Frix <gfrix@rocketsoftware.com> (tiny change)
795
796 PR breakpoints/27009
797 * s390-tdep.h (op_bc): Correct BC opcode value.
798
63c457b9
JB
7992020-12-06 Joel Brobecker <brobecker@adacore.com>
800
801 * gmp-utils.h (gdb_mpz::safe_export): New private method.
802 (gdb_mpz::as_integer): Reimplement using gdb_mpz::safe_export.
803 * gmp-utils.c (gdb_mpz::write): Rewrite using gdb_mpz::safe_export.
804 (gdb_mpz::safe_export): New method.
805 * unittests/gmp-utils-selftests .c (gdb_mpz_as_integer):
806 Update function description.
807 (check_as_integer_raises_out_of_range_error): New function.
808 (gdb_mpz_as_integer_out_of_range): New function.
809 (_initialize_gmp_utils_selftests): Register
810 gdb_mpz_as_integer_out_of_range as a selftest.
811
3c7ba803
JB
8122020-12-05 Joel Brobecker <brobecker@adacore.com>
813
814 * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of
815 TARGET_CHAR_BIT.
816 (gdb_mpz::write): Likewise.
817
372ff58f
SM
8182020-12-04 Simon Marchi <simon.marchi@efficios.com>
819
820 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass 2 as the
821 number of displaced step buffers.
822
480af54c
SM
8232020-12-04 Simon Marchi <simon.marchi@efficios.com>
824
825 * displaced-stepping.h (struct displaced_step_buffer): Rename
826 to...
827 (struct displaced_step_buffers): ... this.
828 <m_addr, m_current_thread, m_copy_insn_closure>: Remove.
829 <struct displaced_step_buffer>: New inner class.
830 <m_buffers>: New.
831 * displaced-stepping.c (displaced_step_buffer::prepare): Rename
832 to...
833 (displaced_step_buffers::prepare): ... this, adjust for multiple
834 buffers.
835 (displaced_step_buffer::finish): Rename to...
836 (displaced_step_buffers::finish): ... this, adjust for multiple
837 buffers.
838 (displaced_step_buffer::copy_insn_closure_by_addr): Rename to...
839 (displaced_step_buffers::copy_insn_closure_by_addr): ... this,
840 adjust for multiple buffers.
841 (displaced_step_buffer::restore_in_ptid): Rename to...
842 (displaced_step_buffers::restore_in_ptid): ... this, adjust for
843 multiple buffers.
844 * linux-tdep.h (linux_init_abi): Change supports_displaced_step
845 for num_disp_step_buffers.
846 * linux-tdep.c (struct linux_gdbarch_data)
847 <num_disp_step_buffers>: New field.
848 (struct linux_info) <disp_step_buf>: Rename to...
849 <disp_step_bufs>: ... this, change type to
850 displaced_step_buffers.
851 (linux_displaced_step_prepare): Use
852 linux_gdbarch_data::num_disp_step_buffers to create that number
853 of buffers.
854 (linux_displaced_step_finish): Adjust.
855 (linux_displaced_step_copy_insn_closure_by_addr): Adjust.
856 (linux_displaced_step_restore_all_in_ptid): Adjust.
857 (linux_init_abi): Change supports_displaced_step parameter for
858 num_disp_step_buffers, save it in linux_gdbarch_data.
859 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust.
860 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust.
861 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Change
862 supports_displaced_step parameter for num_disp_step_buffers.
863 (amd64_linux_init_abi): Adjust.
864 (amd64_x32_linux_init_abi): Adjust.
865 * arc-linux-tdep.c (arc_linux_init_osabi): Adjust.
866 * arm-linux-tdep.c (arm_linux_init_abi): Adjust.
867 * bfin-linux-tdep.c (bfin_linux_init_abi): Adjust.
868 * cris-linux-tdep.c (cris_linux_init_abi): Adjust.
869 * csky-linux-tdep.c (csky_linux_init_abi): Adjust.
870 * frv-linux-tdep.c (frv_linux_init_abi): Adjust.
871 * hppa-linux-tdep.c (hppa_linux_init_abi): Adjust.
872 * i386-linux-tdep.c (i386_linux_init_abi): Adjust.
873 * ia64-linux-tdep.c (ia64_linux_init_abi): Adjust.
874 * m32r-linux-tdep.c (m32r_linux_init_abi): Adjust.
875 * m68k-linux-tdep.c (m68k_linux_init_abi):
876 * microblaze-linux-tdep.c (microblaze_linux_init_abi):
877 * mips-linux-tdep.c (mips_linux_init_abi): Adjust.
878 * mn10300-linux-tdep.c (am33_linux_init_osabi): Adjust.
879 * nios2-linux-tdep.c (nios2_linux_init_abi): Adjust.
880 * or1k-linux-tdep.c (or1k_linux_init_abi): Adjust.
881 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust.
882 * riscv-linux-tdep.c (riscv_linux_init_abi): Adjust.
883 * rs6000-tdep.c (struct ppc_inferior_data) <disp_step_buf>:
884 Change type to displaced_step_buffers.
885 * s390-linux-tdep.c (s390_linux_init_abi_any): Adjust.
886 * sh-linux-tdep.c (sh_linux_init_abi): Adjust.
887 * sparc-linux-tdep.c (sparc32_linux_init_abi): Adjust.
888 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Adjust.
889 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Adjust.
890 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Adjust.
891 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Adjust.
892
d9655058
SM
8932020-12-04 Simon Marchi <simon.marchi@efficios.com>
894
895 * linux-tdep.c (init_linux_gdbarch_data): Change parameter to
896 obkstack.
897 (_initialize_linux_tdep): Register pre-init gdb data instead of
898 post-init.
899
187b041e
SM
9002020-12-04 Simon Marchi <simon.marchi@efficios.com>
901
902 * displaced-stepping.h (struct
903 displaced_step_copy_insn_closure): Adjust comments.
904 (struct displaced_step_inferior_state) <step_thread,
905 step_gdbarch, step_closure, step_original, step_copy,
906 step_saved_copy>: Remove fields.
907 (struct displaced_step_thread_state): New.
908 (struct displaced_step_buffer): New.
909 * displaced-stepping.c (displaced_step_buffer::prepare): New.
910 (write_memory_ptid): Move from infrun.c.
911 (displaced_step_instruction_executed_successfully): New,
912 factored out of displaced_step_finish.
913 (displaced_step_buffer::finish): New.
914 (displaced_step_buffer::copy_insn_closure_by_addr): New.
915 (displaced_step_buffer::restore_in_ptid): New.
916 * gdbarch.sh (displaced_step_location): Remove.
917 (displaced_step_prepare, displaced_step_finish,
918 displaced_step_copy_insn_closure_by_addr,
919 displaced_step_restore_all_in_ptid): New.
920 * gdbarch.c: Re-generate.
921 * gdbarch.h: Re-generate.
922 * gdbthread.h (class thread_info) <displaced_step_state>: New
923 field.
924 (thread_step_over_chain_remove): New declaration.
925 (thread_step_over_chain_next): New declaration.
926 (thread_step_over_chain_length): New declaration.
927 * thread.c (thread_step_over_chain_remove): Make non-static.
928 (thread_step_over_chain_next): New.
929 (global_thread_step_over_chain_next): Use
930 thread_step_over_chain_next.
931 (thread_step_over_chain_length): New.
932 (global_thread_step_over_chain_enqueue): Add debug print.
933 (global_thread_step_over_chain_remove): Add debug print.
934 * infrun.h (get_displaced_step_copy_insn_closure_by_addr):
935 Remove.
936 * infrun.c (get_displaced_stepping_state): New.
937 (displaced_step_in_progress_any_inferior): Remove.
938 (displaced_step_in_progress_thread): Adjust.
939 (displaced_step_in_progress): Adjust.
940 (displaced_step_in_progress_any_thread): New.
941 (get_displaced_step_copy_insn_closure_by_addr): Remove.
942 (gdbarch_supports_displaced_stepping): Use
943 gdbarch_displaced_step_prepare_p.
944 (displaced_step_reset): Change parameter from inferior to
945 thread.
946 (displaced_step_prepare_throw): Implement using
947 gdbarch_displaced_step_prepare.
948 (write_memory_ptid): Move to displaced-step.c.
949 (displaced_step_restore): Remove.
950 (displaced_step_finish): Implement using
951 gdbarch_displaced_step_finish.
952 (start_step_over): Allow starting more than one displaced step.
953 (prepare_for_detach): Handle possibly multiple threads doing
954 displaced steps.
955 (handle_inferior_event): Handle possibility that fork event
956 happens while another thread displaced steps.
957 * linux-tdep.h (linux_displaced_step_prepare): New.
958 (linux_displaced_step_finish): New.
959 (linux_displaced_step_copy_insn_closure_by_addr): New.
960 (linux_displaced_step_restore_all_in_ptid): New.
961 (linux_init_abi): Add supports_displaced_step parameter.
962 * linux-tdep.c (struct linux_info) <disp_step_buf>: New field.
963 (linux_displaced_step_prepare): New.
964 (linux_displaced_step_finish): New.
965 (linux_displaced_step_copy_insn_closure_by_addr): New.
966 (linux_displaced_step_restore_all_in_ptid): New.
967 (linux_init_abi): Add supports_displaced_step parameter,
968 register displaced step methods if true.
969 (_initialize_linux_tdep): Register inferior_execd observer.
970 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
971 supports_displaced_step parameter, adjust call to
972 linux_init_abi. Remove call to
973 set_gdbarch_displaced_step_location.
974 (amd64_linux_init_abi): Adjust call to
975 amd64_linux_init_abi_common.
976 (amd64_x32_linux_init_abi): Likewise.
977 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Adjust call to
978 linux_init_abi. Remove call to
979 set_gdbarch_displaced_step_location.
980 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
981 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
982 * alpha-linux-tdep.c (alpha_linux_init_abi): Adjust call to
983 linux_init_abi.
984 * arc-linux-tdep.c (arc_linux_init_osabi): Likewise.
985 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
986 * cris-linux-tdep.c (cris_linux_init_abi): Likewise.
987 * csky-linux-tdep.c (csky_linux_init_abi): Likewise.
988 * frv-linux-tdep.c (frv_linux_init_abi): Likewise.
989 * hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
990 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
991 * m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
992 * m68k-linux-tdep.c (m68k_linux_init_abi): Likewise.
993 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
994 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
995 * mn10300-linux-tdep.c (am33_linux_init_osabi): Likewise.
996 * nios2-linux-tdep.c (nios2_linux_init_abi): Likewise.
997 * or1k-linux-tdep.c (or1k_linux_init_abi): Likewise.
998 * riscv-linux-tdep.c (riscv_linux_init_abi): Likewise.
999 * s390-linux-tdep.c (s390_linux_init_abi_any): Likewise.
1000 * sh-linux-tdep.c (sh_linux_init_abi): Likewise.
1001 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1002 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1003 * tic6x-linux-tdep.c (tic6x_uclinux_init_abi): Likewise.
1004 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
1005 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Likewise.
1006 * ppc-linux-tdep.c (ppc_linux_init_abi): Adjust call to
1007 linux_init_abi. Remove call to
1008 set_gdbarch_displaced_step_location.
1009 * arm-tdep.c (arm_pc_is_thumb): Call
1010 gdbarch_displaced_step_copy_insn_closure_by_addr instead of
1011 get_displaced_step_copy_insn_closure_by_addr.
1012 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Adjust calls to
1013 clear gdbarch methods.
1014 * rs6000-tdep.c (struct ppc_inferior_data): New structure.
1015 (get_ppc_per_inferior): New function.
1016 (ppc_displaced_step_prepare): New function.
1017 (ppc_displaced_step_finish): New function.
1018 (ppc_displaced_step_restore_all_in_ptid): New function.
1019 (rs6000_gdbarch_init): Register new gdbarch methods.
1020 * s390-tdep.c (s390_gdbarch_init): Don't call
1021 set_gdbarch_displaced_step_location, set new gdbarch methods.
1022
c7acb87b
SM
10232020-12-04 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * Makefile.in (COMMON_SFILES): Add displaced-stepping.c.
1026 * aarch64-tdep.h: Include displaced-stepping.h.
1027 * displaced-stepping.h (struct displaced_step_copy_insn_closure):
1028 Move here.
1029 (displaced_step_copy_insn_closure_up): Move here.
1030 (struct buf_displaced_step_copy_insn_closure): Move here.
1031 (struct displaced_step_inferior_state): Move here.
1032 (debug_displaced): Move here.
1033 (displaced_debug_printf_1): Move here.
1034 (displaced_debug_printf): Move here.
1035 * displaced-stepping.c: New file.
1036 * gdbarch.sh: Include displaced-stepping.h in gdbarch.h.
1037 * gdbarch.h: Re-generate.
1038 * inferior.h: Include displaced-stepping.h.
1039 * infrun.h (debug_displaced): Move to displaced-stepping.h.
1040 (displaced_debug_printf_1): Likewise.
1041 (displaced_debug_printf): Likewise.
1042 (struct displaced_step_copy_insn_closure): Likewise.
1043 (displaced_step_copy_insn_closure_up): Likewise.
1044 (struct buf_displaced_step_copy_insn_closure): Likewise.
1045 (struct displaced_step_inferior_state): Likewise.
1046 * infrun.c (show_debug_displaced): Move to displaced-stepping.c.
1047 (displaced_debug_printf_1): Likewise.
1048 (displaced_step_copy_insn_closure::~displaced_step_copy_insn_closure):
1049 Likewise.
1050 (_initialize_infrun): Don't register "set/show debug displaced".
1051
94b24c74
SM
10522020-12-04 Simon Marchi <simon.marchi@efficios.com>
1053
1054 * linux-tdep.c (get_linux_inferior_data): Add inferior
1055 parameter.
1056 (linux_vsyscall_range): Pass current inferior.
1057
bab37966
SM
10582020-12-04 Simon Marchi <simon.marchi@efficios.com>
1059
1060 * infrun.c (displaced_step_prepare_throw): Change return type to
1061 displaced_step_prepare_status.
1062 (displaced_step_prepare): Likewise.
1063 (displaced_step_finish): Change return type to
1064 displaced_step_finish_status.
1065 (resume_1): Adjust.
1066 (stop_all_threads): Adjust.
1067 * displaced-stepping.h: New file.
1068
7def77a1
SM
10692020-12-04 Simon Marchi <simon.marchi@efficios.com>
1070
1071 * infrun.c (displaced_step_fixup): Rename to...
1072 (displaced_step_finish): ... this, update all callers.
1073
1152d984
SM
10742020-12-04 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
1077 (get_displaced_step_copy_insn_closure_by_addr): ... this.
1078 Update all users.
1079 (displaced_step_closure): Rename to...
1080 (displaced_step_copy_insn_closure): ... this. Update all users.
1081 (displaced_step_closure_up): Rename to...
1082 (displaced_step_copy_insn_closure_up). ... this. Update all
1083 users.
1084 (buf_displaced_step_closure): Rename to...
1085 (buf_displaced_step_copy_insn_closure): ... this. Update all
1086 users.
1087 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
1088 (get_displaced_step_copy_insn_closure_by_addr): ... this.
1089 Update all users.
1090 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
1091 (aarch64_displaced_step_copy_insn_closure): ... this. Update
1092 all users.
1093 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
1094 (amd64_displaced_step_copy_insn_closure): ... this. Update all
1095 users.
1096 * arm-tdep.h (arm_displaced_step_closure): Rename to...
1097 (arm_displaced_step_copy_insn_closure): ... this. Update all
1098 users.
1099 * i386-tdep.h (i386_displaced_step_closure): Rename to...
1100 (i386_displaced_step_copy_insn_closure): ... this. Update all
1101 users.
1102 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
1103 (ppc_displaced_step_copy_insn_closure): ... this. Update all
1104 users.
1105 * s390-tdep.c (s390_displaced_step_closure): Rename to...
1106 (s390_displaced_step_copy_insn_closure): ... this. Update all
1107 users.
1108 * gdbarch.h: Re-generate.
1109 * gdbarch.c: Re-generate.
1110
28d5518b
SM
11112020-12-04 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
1114 (global_thread_step_over_chain_enqueue): ... this. Update all
1115 users.
1116 (thread_step_over_chain_remove): Rename to...
1117 (global_thread_step_over_chain_remove): ... this. Update all
1118 users.
1119 (thread_step_over_chain_next): Rename to...
1120 (global_thread_step_over_chain_next): ... this. Update all
1121 users.
1122 * infrun.h (step_over_queue_head): Rename to...
1123 (global_thread_step_over_chain_head): ... this. Update all
1124 users.
1125 * infrun.c (step_over_queue_head): Rename to...
1126 (global_thread_step_over_chain_head): ... this. Update all
1127 users.
1128 * thread.c (step_over_chain_remove): Rename to...
1129 (thread_step_over_chain_remove): ... this. Update all users.
1130 (thread_step_over_chain_next): Rename to...
1131 (global_thread_step_over_chain_next): ... this. Update all
1132 users.
1133 (thread_step_over_chain_enqueue): Rename to...
1134 (global_thread_step_over_chain_enqueue): ... this. Update all
1135 users.
1136 (thread_step_over_chain_remove): Rename to...
1137 (global_thread_step_over_chain_remove): ... this. Update all
1138 users.
1139
f5f01699
SM
11402020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1141
1142 * infrun.c (get_displaced_stepping_state): Remove, change
1143 callers to access the field directly.
1144
c0aba012
SM
11452020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
1146
1147 * infrun.c (handle_inferior_event): Restore displaced step
1148 buffer bytes in child process when handling fork, even if fork
1149 happened in another thread than the displaced-stepping one.
1150
3b7a962d
SM
11512020-12-04 Simon Marchi <simon.marchi@efficios.com>
1152
1153 * infrun.c (infrun_inferior_execd): New function.
1154 (_initialize_infrun): Attach inferior_execd observer.
1155
42a4fec5
SM
11562020-12-04 Simon Marchi <simon.marchi@efficios.com>
1157
1158 * observable.h (inferior_execd): Declare new observable.
1159 * observable.c (inferior_execd): Declare new observable.
1160 * infrun.c (follow_exec): Notify inferior_execd observer.
1161 * jit.c (jit_inferior_created_hook): Make static.
1162 (_initialize_jit): Register inferior_execd observer.
1163 * jit.h (jit_inferior_created_hook): Remove declaration.
1164 * solib.c (_initialize_solib): Register inferior_execd observer.
1165
aafdfb4e
TV
11662020-12-04 Tom de Vries <tdevries@suse.de>
1167
1168 PR gdb/27003
1169 * completer.c (completion_tracker::build_completion_result): Don't
1170 access match_list[0][-1].
1171
f99b5177
TT
11722020-12-04 Tom Tromey <tromey@adacore.com>
1173
1174 * linespec.c (struct linespec_token): Rename; remove typedef.
1175 * guile/scm-block.c (struct block_smob): Remove typedef.
1176 (struct block_syms_progress_smob): Likewise.
1177 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
1178 * guile/scm-symtab.c (symtab_smob): Remove typedef.
1179 (struct sal_smob): Remove typedef.
1180 * guile/scm-param.c (struct param_smob): Remove typedef.
1181 * guile/scm-progspace.c (struct pspace_smob): Rename.
1182 * guile/scm-objfile.c (struct objfile_smob): Rename.
1183 * guile/scm-iterator.c (struct iterator_smob): Rename.
1184 * guile/scm-frame.c (struct frame_smob): Rename.
1185 * guile/scm-arch.c (struct arch_smob): Rename.
1186 * guile/scm-type.c (struct field_smob): Remove typedef.
1187 (struct type_smob): Rename.
1188 * guile/scm-cmd.c (struct command_smob): Remove typedef.
1189 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
1190 * guile/scm-value.c (struct value_smob): Remove typedef.
1191 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
1192 * guile/guile-internal.h (struct scheme_variable)
1193 (struct scheme_function, struct scheme_integer_constant)
1194 (struct gdb_smob, struct chained_gdb_smob)
1195 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
1196 (objfile_smob, pspace_smob, type_smob): Remove typedef.
1197 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
1198 (struct pretty_printer_worker_smob): Remove typedef.
1199 * guile/scm-exception.c (struct exception_smob): Remove typedef.
1200 * python/py-block.c (struct block_object): Remove typedef.
1201 (block_syms_iterator_object): Update.
1202 (set_block): Update.
1203 (block_syms_iterator_object): Remove typedef.
1204 * python/py-inferior.c (struct membuf_object): Remove typedef.
1205 * python/py-symtab.c (struct symtab_object): Remove typedef.
1206 (set_symtab): Update.
1207 (sal_object): Remove typedef.
1208 (set_sal): Update.
1209 * python/py-frame.c (frame_object): Remove typedef.
1210 * python/py-record-btrace.c (struct btpy_list_object): Remove
1211 typedef.
1212 * python/py-arch.c (struct arch_object): Remove typedef.
1213 * python/py-linetable.c (struct linetable_entry_object)
1214 (linetable_object, struct ltpy_iterator_object): Remove typedef.
1215 * python/py-events.h (eventregistry_object): Remove typedef.
1216 (struct events_object): Remove typedef.
1217 * python/python-internal.h (gdbpy_breakpoint_object): Remove
1218 typedef.
1219 (thread_object): Remove typedef.
1220 * python/py-progspace.c (pspace_object): Remove typedef.
1221 * python/py-value.c (struct value_object): Remove typedef.
1222 * python/py-record.h (recpy_record_object): Remove typedef.
1223 (struct recpy_element_object): Remove typedef.
1224 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
1225 * python/py-objfile.c (objfile_object): Remove typedef.
1226 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
1227 * python/py-type.c (type_object): Remove typedef.
1228 (typy_iterator_object): Update.
1229 (set_type): Update.
1230 (field_object): Remove typedef.
1231 (typy_iterator_object): Remove typedef.
1232 * python/py-registers.c (register_descriptor_iterator_object):
1233 Remove typedef.
1234 (struct register_descriptor_object)
1235 (struct reggroup_iterator_object, struct reggroup_object): Remove
1236 typedef.
1237 * python/py-record.c (recpy_gap_object): Remove typedef.
1238 * python/py-symbol.c (symbol_object): Remove typedef.
1239 (set_symbol): Update.
1240 * python/py-event.h (event_object): Remove typedef.
1241 * python/py-param.c (parmpy_object): Remove typedef.
1242 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
1243 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
1244 (unwind_info_object, struct cached_frame_info): Likewise.
1245
91f87213
TT
12462020-12-04 Tom Tromey <tromey@adacore.com>
1247
1248 * value.c (value_internal_function_name): Make return type const.
1249 * value.h (value_internal_function_name): Make return type const.
1250
5382f971
LM
12512020-12-04 Luis Machado <luis.machado@linaro.org>
1252
1253 * aarch64-tdep.c (submask, bit, bits): Remove.
1254 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
1255 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
1256 (aarch64_decode_cb, aarch64_decode_tb)
1257 (aarch64_decode_ldr_literal): Use sbits to extract a signed
1258 immediate.
1259 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
1260
b6a6aa07
TV
12612020-12-04 Tom de Vries <tdevries@suse.de>
1262
1263 PR tdep/27007
1264 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
1265
0bc2e38d
SM
12662020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
1267
1268 PR gdb/26876
1269 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
1270 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
1271
25428040
AB
12722020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * arch/riscv.c: Include 'rv32e-xregs.c'.
1275 (riscv_create_target_description): Update to handle rv32e.
1276 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
1277 member variable.
1278 <operator==>: Update to account for new field.
1279 <hash>: Likewise.
1280 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
1281 * features/riscv/rv32e-xregs.c: Generated.
1282 * features/riscv/rv32e-xregs.xml: New file.
1283 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
1284 file.
1285 (riscv_debug_infcall): Likewise.
1286 (riscv_debug_unwinder): Likewise.
1287 (riscv_debug_gdbarch): Likewise.
1288 (enum riscv_register_required_status): Delete.
1289 (struct riscv_register_feature): Add constructor, delete default
1290 constructor, copy, and assign constructors.
1291 (struct riscv_register_feature::register_info) <required>: Delete.
1292 <check>: Update comment and arguments.
1293 (struct riscv_register_feature) <name>: Change to member function.
1294 <prefer_first_name>: Delete.
1295 <tdesc_feature>: New member function.
1296 <registers>: Rename to...
1297 <m_registers>: ...this.
1298 <m_feature_name>: New member variable.
1299 (riscv_register_feature::register_info::check): Update arguments.
1300 (riscv_xreg_feature): Rewrite as class, create a single static
1301 instance of the class.
1302 (riscv_freg_feature): Likewise.
1303 (riscv_virtual_feature): Likewise.
1304 (riscv_csr_feature): Likewise.
1305 (riscv_create_csr_aliases): Has become a member function inside
1306 riscv_csr_feature class.
1307 (riscv_abi_embedded): New function definition.
1308 (riscv_register_name): Adjust to use new feature objects.
1309 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
1310 and adjust available argument registers.
1311 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
1312 (riscv_check_tdesc_feature): Delete.
1313 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
1314 (riscv_gdbarch_init): Delete target description checking code, and
1315 instead call to the new feature objects to perform the checks.
1316 Reorder handling of no abi information case, allows small code
1317 simplification.
1318 (_initialize_riscv_tdep): Remove call, this is now done in the
1319 riscv_csr_feature constructor.
1320 * riscv-tdep.h (riscv_abi_embedded): Declare.
1321
533b2ae0
AB
13222020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1323
1324 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
1325 DECLARE_CSR_ALIAS.
1326
e4502042
AB
13272020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * riscv-tdep.c (riscv_is_unknown_csr): New function,
1330 implementation moved from riscv_register_reggroup_p.
1331 (riscv_register_reggroup_p): Update group handling for unknown
1332 CSRs.
1333
2bf3b79d
SDJ
13342020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
1335
1336 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
1337 (dwarf2_get_dwz_file): Convert 'filename' to a
1338 std::string. Use dwz_search_other_debugdirs to search for DWZ
1339 files in the debug-file-directories provided by the user as well.
1340
77bf7e99
TT
13412020-12-01 Tom Tromey <tom@tromey.com>
1342
1343 * parse.c (expr_builder::expr_builder): Initialize expout.
1344 (expr_builder::release): Use expression::resize.
1345 (expression::expression, expression::~expression)
1346 (expression::resize): New methods.
1347 (write_exp_elt): Use expression::resize.
1348 (prefixify_expression): Update.
1349 (increase_expout_size): Use expression::resize.
1350 * expression.h (struct expression): Add constructor, destructor.
1351 <resize>: New method.
1352 (expression_up): Change type.
1353
539d71e8
RA
13542020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1355 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
1356 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
1357 set region.
1358
7ce05d21
TV
13592020-11-30 Tom de Vries <tdevries@suse.de>
1360
1361 PR symtab/26905
1362 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
1363 is_reference parameter.
1364 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
1365
88b91969
TT
13662020-11-30 Tom Tromey <tom@tromey.com>
1367
1368 * rust-lang.c (rust_op_name): Remove.
1369 (exp_descriptor_rust): Update.
1370 * parser-defs.h (op_name_standard): Don't declare.
1371 (struct exp_descriptor) <op_name>: Remove.
1372 * parse.c (exp_descriptor_standard): Update.
1373 * opencl-lang.c (exp_descriptor_opencl): Update.
1374 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
1375 * f-lang.c (op_name_f): Remove.
1376 (f_language::exp_descriptor_tab): Update.
1377 * expression.h (op_name): Update.
1378 * expprint.c (op_name): Rewrite.
1379 (op_name_standard): Remove.
1380 (dump_raw_expression, dump_subexp): Update.
1381 * c-lang.c (exp_descriptor_c): Update.
1382 * ax-gdb.c (gen_expr): Update.
1383 * ada-lang.c (ada_op_name): Remove.
1384 (ada_exp_descriptor): Update.
1385
1cd49c43
TT
13862020-11-30 Tom Tromey <tom@tromey.com>
1387
1388 * eval.c (init_array_element): Remove.
1389 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
1390
96fb9086
HD
13912020-11-29 Hannes Domani <ssbssa@yahoo.de>
1392
1393 PR tui/26973
1394 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
1395 static locator win info.
1396
b4132322
AR
13972020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
1398
1399 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
1400 program.
1401
3df8c6af
AB
14022020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
1405 is always initialized.
1406
0ae45769
RA
14072020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
1408 * MAINTAINERS (Write After Approval): Add myself.
1409
239ca5e4
PW
14102020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1411
1412 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
1413 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
1414
cbfa382a
TT
14152020-11-25 Tom Tromey <tom@tromey.com>
1416
1417 * eval.c (evaluate_subexp_standard): Remove unnecessary
1418 variables.
1419
af30c400
TT
14202020-11-25 Tom Tromey <tom@tromey.com>
1421
1422 * d-lang.c: Include parser-defs.h.
1423 * rust-lang.c: Include parser-defs.h.
1424 * c-lang.h: Do not include parser-defs.h.
1425
1c64f6cb
SM
14262020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1427
1428 * regcache.h (struct cached_reg): Remove typedef.
1429
2c20a601
JB
14302020-11-24 Joel Brobecker <brobecker@adacore.com>
1431
1432 * README: Fix the URL of the MPFR library.
1433
c609df64
JB
14342020-11-24 Joel Brobecker <brobecker@adacore.com>
1435
1436 * README: Document the --with-libgmp-prefix configure option.
1437
fa123c32
JB
14382020-11-24 Joel Brobecker <brobecker@adacore.com>
1439
1440 * NEWS: Add entry documenting support for DWARF-based fixed
1441 point types.
1442
0fb8bb02
JB
14432020-11-24 Joel Brobecker <brobecker@adacore.com>
1444
1445 * NEWS: Document that building GDB now requires GMP.
1446
4afa9fd9
JB
14472020-11-24 Joel Brobecker <brobecker@adacore.com>
1448
1449 * typeprint.c (print_type_scalar): Add handling of
1450 TYPE_CODE_FIXED_POINT.
1451
af619ce9
JB
14522020-11-24 Joel Brobecker <brobecker@adacore.com>
1453
1454 * valarith.c (fixed_point_binop): Replace the
1455 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
1456 users accordingly.
1457
e6fcee3a
JB
14582020-11-24 Joel Brobecker <brobecker@adacore.com>
1459
1460 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
1461 replacing fixed_point_scaling_factor. All callers updated
1462 throughout this project.
1463 (fixed_point_scaling_factor): Delete declaration.
1464 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
1465 fixed_point_scaling_factor. Adjust implementation accordingly.
1466
d19937a7
JB
14672020-11-24 Joel Brobecker <brobecker@adacore.com>
1468
1469 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
1470 replacing the fixed_point_type_base_type function. All callers
1471 updated throughout this project.
1472 (fixed_point_type_base_type): Remove declaration.
1473 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
1474 fixed_point_type_base_type. Adjust implementation accordingly.
1475
2a12c336
JB
14762020-11-24 Joel Brobecker <brobecker@adacore.com>
1477
1478 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
1479 New methods.
1480 (INIT_FIXED_POINT_SPECIFIC): Adjust.
1481 (TYPE_FIXED_POINT_INFO): Delete macro.
1482 (allocate_fixed_point_type_info): Change return type to void.
1483 * gdbtypes.c (copy_type_recursive): Replace the use of
1484 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1485 (fixed_point_scaling_factor): Likewise.
1486 (allocate_fixed_point_type_info): Change return type to void.
1487 Adjust implementation accordingly.
1488 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
1489 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
1490
c9f0b43f
JB
14912020-11-24 Joel Brobecker <brobecker@adacore.com>
1492
1493 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
1494 into one single gdb::array_view parameter.
1495 (gdb_mpz::write): Likewise.
1496 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1497 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
1498 into one single gdb::array_view parameter.
1499 Adjust implementation accordingly.
1500 (gdb_mpz::write): Likewise.
1501 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
1502 * unittests/gmp-utils-selftests.c: Adapt following changes above.
1503 * valarith.c, valops.c, valprint.c, value.c: Likewise.
1504
987b6703
JB
15052020-11-24 Joel Brobecker <brobecker@adacore.com>
1506
1507 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
1508 Change return type to std::string. Update all callers.
1509 * gmp-utils.c (gmp_string_printf): Likewise.
1510
4fbb7cce
JB
15112020-11-24 Joel Brobecker <brobecker@adacore.com>
1512
1513 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
1514 instead of mpq_set_ui to initialize our GMP rational.
1515
d6ab69dd
TV
15162020-11-23 Tom de Vries <tdevries@suse.de>
1517
1518 * debuginfod-support.c (debuginfod_source_query)
1519 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
1520
dab72643
TT
15212020-11-21 Tom Tromey <tom@tromey.com>
1522
1523 * breakpoint.c (watchpoint_exp_is_const): Return bool.
1524
c0ad05d5
SM
15252020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
1528 Pass 2.0 to pow.
1529 (gdb_mpz_write_all_from_small): Likewise.
1530
a43b29c9
SM
15312020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
1534 of abs.
1535
ae41200b
NA
15362020-11-20 Nick Alcock <nick.alcock@oracle.com>
1537
1538 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
1539 ctf_arc_open_by_name.
1540
139633c3
NA
15412020-11-20 Nick Alcock <nick.alcock@oracle.com>
1542
1543 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
1544 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
1545
cbbcd7a7
PA
15462020-11-20 Pedro Alves <pedro@palves.net>
1547
1548 * language.c (language_arch_info::lookup_primitive_type): Use
1549 gdb::function_view instead of gdb::function.
1550 (template language_lookup_primitive_type): Rename to ...
1551 (language_lookup_primitive_type_1): ... this, and make static.
1552 (language_lookup_primitive_type(const struct language_defn *,
1553 struct gdbarch *, const char *): Make non-template.
1554 (language_lookup_primitive_type(const struct language_defn *,
1555 struct gdbarch *, std::function<bool (struct type *)>): Make
1556 non-template and use gdb::function_view.
1557 * language.h (language_arch_info::lookup_primitive_type): Use
1558 gdb::function_view instead of std::function.
1559 (language_lookup_primitive_type): No longer template.
1560 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
1561 lambda instead of a std::function.
1562
d5ef21c3
AA
15632020-11-19 Andreas Arnez <arnez@linux.ibm.com>
1564
1565 PR tdep/26916
1566 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
1567 and STOCFH.
1568
a5adb8f3
SM
15692020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1570
1571 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
1572
70125a45
SM
15732020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
1574
1575 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
1576 in `loop_cb` parameter.
1577 * gdbarch.c: Re-generate.
1578 * gdbarch.h: Re-generate.
1579 * arch-utils.c (default_read_core_file_mappings): Remove `other`
1580 parameter.
1581 * arch-utils.h (default_read_core_file_mappings): Likewise.
1582 * corelow.c (core_target::build_file_mappings): Likewise.
1583 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
1584 (linux_core_info_proc_mappings): Likewise.
1585
a5c641b5
AB
15862020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1587
1588 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
1589 * NEWS: Mention new options.
1590 * f-array-walker.h: New file.
1591 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
1592 (repack_array_slices): New static global.
1593 (show_repack_array_slices): New function.
1594 (fortran_array_slicing_debug): New static global.
1595 (show_fortran_array_slicing_debug): New function.
1596 (value_f90_subarray): Delete.
1597 (skip_undetermined_arglist): Delete.
1598 (class fortran_array_repacker_base_impl): New class.
1599 (class fortran_lazy_array_repacker_impl): New class.
1600 (class fortran_array_repacker_impl): New class.
1601 (fortran_value_subarray): Complete rewrite.
1602 (set_fortran_list): New static global.
1603 (show_fortran_list): Likewise.
1604 (_initialize_f_language): Register new commands.
1605 (fortran_adjust_dynamic_array_base_address_hack): New function.
1606 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
1607 Declare.
1608 * f-valprint.c: Include 'f-array-walker.h'.
1609 (class fortran_array_printer_impl): New class.
1610 (f77_print_array_1): Delete.
1611 (f77_print_array): Delete.
1612 (fortran_print_array): New.
1613 (f_value_print_inner): Update to call fortran_print_array.
1614 * gdbtypes.c: Include 'f-lang.h'.
1615 (resolve_dynamic_type_internal): Call
1616 fortran_adjust_dynamic_array_base_address_hack.
1617
a15a5258
AB
16182020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1619
1620 * breakpoint.c (struct watch_options): New struct.
1621 (watch_option_defs): New static global.
1622 (make_watch_options_def_group): New function.
1623 (watch_maybe_just_location): Convert option parsing.
1624 (watch_command_completer): New function.
1625 (_initialize_breakpoint): Build help text using options mechanism.
1626
2e362716
AB
16272020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1628
1629 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
1630 (watch_command_1): Update parameter types. Convert locals to
1631 bool.
1632 (watch_command_wrapper): Change parameter type.
1633 (watch_maybe_just_location): Change locals to bool.
1634 (rwatch_command_wrapper): Update parameter type.
1635 (awatch_command_wrapper): Update parameter type.
1636 * breakpoint.h (watch_command_wrapper): Change parameter type.
1637 (rwatch_command_wrapper): Update parameter type.
1638 (awatch_command_wrapper): Update parameter type.
1639 * eval.c (fetch_subexp_value): Change parameter type.
1640 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
1641 'false' not '0'.
1642 * value.h (fetch_subexp_value): Change parameter type in
1643 declaration.
1644
b3ff61f8
AB
16452020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
1646
1647 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
1648 skip_spaces.
1649
5b7d45d3
KS
16502020-11-18 Keith Seitz <keiths@redhat.com>
1651
1652 * linux-tdep.c (dump_note_entry_p): Return true instead of
1653 checking `filename'.
1654
c44191f8
TV
16552020-11-18 Tom de Vries <tdevries@suse.de>
1656
1657 * debuginfod-support.c (debuginfod_source_query)
1658 (debuginfod_debuginfo_query): Also do early exit if
1659 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
1660
5d8254e1
TV
16612020-11-18 Tom de Vries <tdevries@suse.de>
1662
1663 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
1664 warning.
1665
584903d3
SM
16662020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * gdbtypes.h (get_array_bounds): Return bool, adjust some
1669 callers. Move doc here.
1670 * gdbtypes.c (get_array_bounds): Return bool
1671
6f2643db
AB
16722020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
1675 assert.
1676 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
1677 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
1678 case to the default.
1679
037d7135
AB
16802020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * printcmd.c: Include 'safe-ctype.c'.
1683 (skip_over_slash_fmt): New function.
1684 (print_command_completer): Call skip_over_slash_fmt.
1685 (display_and_x_command_completer): New function.
1686 (_initialize_printcmd): Add command completion for 'x' and
1687 'display'.
1688
2b3cb400
PA
16892020-11-16 Pedro Alves <pedro@palves.net>
1690
1691 * frame.c (get_prev_frame): Move get_frame_id call from here ...
1692 (get_prev_frame_always_1): ... to here.
1693 * inline-frame.c (inline_frame_this_id): Mention
1694 get_prev_frame_always_1 in comment.
1695
b74dbc20
JB
16962020-11-15 Joel Brobecker <brobecker@adacore.com>
1697
1698 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
1699 handling.
1700 (value_less): Add fixed-point handling.
1701
0a12719e
JB
17022020-11-15 Joel Brobecker <brobecker@adacore.com>
1703
1704 * eval.c (binop_promote): Add fixed-point type handling.
1705 * valarith.c (fixed_point_binop): New function.
1706 (scalar_binop): Add fixed-point type handling.
1707 (value_neg): Add fixed-point type handling.
1708 * valops.c (value_cast_to_fixed_point): New function.
1709 (value_cast): Add fixed-point type handling.
1710
0c9150e4
JB
17112020-11-15 Joel Brobecker <brobecker@adacore.com>
1712
1713 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
1714 range types.
1715 * c-typeprint.c (c_type_print_varspec_prefix)
1716 (c_type_print_varspec_suffix, c_type_print_base_1): Add
1717 TYPE_CODE_FIXED_POINT handling.
1718 * p-typeprint.c (pascal_type_print_varspec_prefix)
1719 (pascal_type_print_varspec_suffix): Likewise.
1720 * typeprint.c (print_type_fixed_point): New function.
1721 * typeprint.h (print_type_fixed_point): Add declaration.
1722
b26daff9
JB
17232020-11-15 Joel Brobecker <brobecker@adacore.com>
1724
1725 * printcmd.c (print_scalar_formatted): Add fixed-point type
1726 handling when options->format is set.
1727
09584414
JB
17282020-11-15 Joel Brobecker <brobecker@adacore.com>
1729
1730 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
1731 * dwarf2/read.c (get_dwarf2_rational_constant)
1732 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
1733 (has_zero_over_zero_small_attribute): New functions.
1734 read_base_type, set_die_type): Add fixed-point type handling.
1735 * gdb-gdb.py.in: Add fixed-point type handling.
1736 * gdbtypes.c: #include "gmp-utils.h".
1737 (create_range_type, set_type_code): Add fixed-point type handling.
1738 (init_fixed_point_type): New function.
1739 (is_integral_type, is_scalar_type): Add fixed-point type handling.
1740 (print_fixed_point_type_info): New function.
1741 (recursive_dump_type, copy_type_recursive): Add fixed-point type
1742 handling.
1743 (fixed_point_type_storage): New typedef.
1744 (fixed_point_objfile_key): New static global.
1745 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
1746 (fixed_point_type_base_type, fixed_point_scaling_factor): New
1747 functions.
1748 * gdbtypes.h: #include "gmp-utils.h".
1749 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
1750 (union type_specific) <fixed_point_info>: New field.
1751 (struct fixed_point_type_info): New struct.
1752 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
1753 (init_fixed_point_type, is_fixed_point_type)
1754 (fixed_point_type_base_type, fixed_point_scaling_factor)
1755 (allocate_fixed_point_type_info): Add declarations.
1756 * valprint.c (generic_val_print_fixed_point): New function.
1757 (generic_value_print): Add fixed-point type handling.
1758 * value.c (value_as_address, unpack_long): Add fixed-point type
1759 handling.
1760
e55c6530
JB
17612020-11-15 Joel Brobecker <brobecker@adacore.com>
1762
1763 * utils.h (uinteger_pow): Add declaration.
1764 * utils.c (uinteger_pow): Moved here (without changes)...
1765 * valarith.c (uinteger_pow): ... from here.
1766
b34c74ab
JB
17672020-11-15 Joel Brobecker <brobecker@adacore.com>
1768
40d9d2fd 1769 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
1770 * unittests/gmp-utils-selftests.c: New file.
1771 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1772 unittests/gmp-utils-selftests.c.
1773 (COMMON_SFILES) Add gmp-utils.c.
1774 (HFILES_NO_SRCDIR): Add gmp-utils.h.
1775
1b4ac058
JB
17762020-11-15 Joel Brobecker <brobecker@adacore.com>
1777
1778 * configure.ac: Generate an error if a usable GMP library
1779 could not be found.
1780 * configure: Regenerate.
1781
2c947d9b
JB
17822020-11-15 Joel Brobecker <brobecker@adacore.com>
1783
1784 * configure.ac: Add support for --with-libgmp-prefix.
1785 * Makefile.in (LIBGMP): New variable.
1786 (CLIBS): Include $(LIBGMP).
1787 * configure, config.in: Regenerate
1788
9dd02fc0
AB
17892020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 PR cli/26879
1792 * f-exp.y (COMPLETE): New token.
1793 (exp): Two new rules for tab-completion.
1794 (saw_name_at_eof): New static global.
1795 (last_was_structop): Likewise.
1796 (yylex): Set new variables, and return COMPLETE token at the end
1797 of the input stream in some cases.
1798
758cb810
TT
17992020-11-14 Tom Tromey <tom@tromey.com>
1800
1801 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
1802
749065b7
TT
18032020-11-14 Tom Tromey <tom@tromey.com>
1804
1805 * opencl-lang.c (opencl_component_ref): Make "comps" const.
1806
2c5b1849
SM
18072020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1808
1809 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
1810
e8b2f0d9
TT
18112020-11-13 Tom Tromey <tom@tromey.com>
1812
1813 * c-lang.c (convert_ucn, convert_octal, convert_hex)
1814 (convert_escape, parse_one_string): Constify.
1815
25f4c262
KS
18162020-11-13 Keith Seitz <keiths@redhat.com>
1817
1818 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
1819 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
1820 outside of ELF segments" warning for debugin
1821
9d3ab915
KS
18222020-11-13 Keith Seitz <keiths@redhat.com>
1823
1824 PR gdb/23034
1825 * elfread.c (elf_symfile_segments): Output a BFD file name
1826 for the "Loadable section ... outside of ELF segments" warning.
1827
9ecab40c
SM
18282020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
1829
1830 PR gdb/26835
1831 * arm-tdep.c (class arm_instruction_reader): New.
1832 (target_arm_instruction_reader): New.
1833 (arm_analyze_prologue): Add instruction reader parameter and use
1834 it. Use arm_expand_immediate.
1835 (class target_arm_instruction_reader): Adjust.
1836 (arm_skip_prologue): Adjust.
1837 (arm_expand_immediate): New.
1838 (arm_scan_prologue): Adjust.
1839 (arm_analyze_prologue_test): New.
1840 (class test_arm_instruction_reader): New.
1841
5a7cf527
AB
18422020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * f-lang.c (fortran_argument_convert): Add declaration. Add
1845 header comment, taken from f-lang.h. Make static.
1846 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
1847 (fortran_argument_convert): Delete declaration.
1848
7bea47f0
AB
18492020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * ada-exp.y (find_primitive_type): Make parameter const.
1852 * ada-lang.c (enum ada_primitive_types): Delete.
1853 (ada_language::language_arch_info): Update.
1854 * c-lang.c (enum c_primitive_types): Delete.
1855 (c_language_arch_info): Update.
1856 (enum cplus_primitive_types): Delete.
1857 (cplus_language::language_arch_info): Update.
1858 * d-lang.c (enum d_primitive_types): Delete.
1859 (d_language::language_arch_info): Update.
1860 * f-lang.c (enum f_primitive_types): Delete.
1861 (f_language::language_arch_info): Update.
1862 * go-lang.c (enum go_primitive_types): Delete.
1863 (go_language::language_arch_info): Update.
1864 * language.c (auto_or_unknown_language::language_arch_info):
1865 Update.
1866 (language_gdbarch_post_init): Use obstack_new, use array indexing.
1867 (language_string_char_type): Add header comment, call function in
1868 language_arch_info.
1869 (language_bool_type): Likewise
1870 (language_arch_info::bool_type): Define.
1871 (language_lookup_primitive_type_1): Delete.
1872 (language_lookup_primitive_type): Rewrite as a templated function
1873 to call function in language_arch_info, then instantiate twice.
1874 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
1875 (language_arch_info::lookup_primitive_type_and_symbol): Define.
1876 (language_arch_info::lookup_primitive_type): Define twice with
1877 different signatures.
1878 (language_arch_info::lookup_primitive_type_as_symbol): Define.
1879 (language_lookup_primitive_type_as_symbol): Rewrite to call a
1880 member function in language_arch_info.
1881 * language.h (language_arch_info): Complete rewrite.
1882 (language_lookup_primitive_type): Make templated.
1883 * m2-lang.c (enum m2_primitive_types): Delete.
1884 (m2_language::language_arch_info): Update.
1885 * opencl-lang.c (OCL_P_TYPE): Delete.
1886 (enum opencl_primitive_types): Delete.
1887 (opencl_type_data): Delete.
1888 (builtin_opencl_type): Delete.
1889 (lookup_opencl_vector_type): Update.
1890 (opencl_language::language_arch_info): Update, lots of content
1891 moved from...
1892 (build_opencl_types): ...here. This function is now deleted.
1893 (_initialize_opencl_language): Delete.
1894 * p-lang.c (enum pascal_primitive_types): Delete.
1895 (pascal_language::language_arch_info): Update.
1896 * rust-lang.c (enum rust_primitive_types): Delete.
1897 (rust_language::language_arch_info): Update.
1898
bf6e5d01
SM
18992020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1900
1901 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
1902 dwarf2_queue_guard.
1903
1350c3b4
SM
19042020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1905
1906 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
1907 comment.
1908
6f738b01
SM
19092020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * dwarf2/read.c (dwarf_read_debug_printf,
1912 dwarf_read_debug_printf_v): New macros, use throughout the file.
1913
10c19fad
SV
19142020-11-12 Shahab Vahedi <shahab@synopsys.com>
1915
10806efd 1916 PR tdep/27015
10c19fad
SV
1917 * arc-linux-tdep.c (collect_register): Populate "eret" by
1918 "pc" value from the regcache when asked for "pc" value.
1919
1f2624a3
TT
19202020-11-12 Tom Tromey <tom@tromey.com>
1921
1922 PR rust/26799:
1923 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
1924 exist.
1925
ab33b152
AB
19262020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * features/Makefile (XMLTOC): Add rx.xml.
1929 (FEATURE_XMLFILES): Remove rx.xml.
1930 (FEATURE_CFILES rule): Pass '-single-feature' flag.
1931 * features/rx.c: Regenerate.
1932 * features/rx.xml: Wrap in `target` tags, and reindent.
1933 * target-descriptions.c (struct maint_print_c_tdesc_options): New
1934 structure.
1935 (maint_print_c_tdesc_opt_def): New typedef.
1936 (maint_print_c_tdesc_opt_defs): New static global.
1937 (make_maint_print_c_tdesc_options_def_group): New function.
1938 (maint_print_c_tdesc_cmd): Make use of command line flags, only
1939 print single feature C file for target descriptions containing a
1940 single feature.
1941 (maint_print_c_tdesc_cmd_completer): New function.
1942 (_initialize_target_descriptions): Update call to register command
1943 completer, and include command line flag in help text.
1944
550820e1
AB
19452020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
1946
1947 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
1948 numbers.
1949 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
1950 enum values.
1951
baf20f76
TT
19522020-11-10 Tom Tromey <tom@tromey.com>
1953
1954 * value.h (internalvar_name): Update.
1955 * value.c (internalvar_name): Make return type const.
1956
caaece0e
TT
19572020-11-10 Tom Tromey <tom@tromey.com>
1958
1959 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
1960 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
1961 const.
1962
8e20b4be
TT
19632020-11-10 Tom Tromey <tom@tromey.com>
1964
1965 * objc-lang.h (value_nsstring): Update.
1966 * objc-lang.c (value_nsstring): Make "ptr" const.
1967
86775fab
AB
19682020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
1969
1970 * expprint.c (print_subexp_funcall): Increment expression position
1971 after reading argument count.
1972 * f-lang.c (print_subexp_f): Skip over opcode before calling
1973 common function.
1974 (dump_subexp_body_f): Likewise.
1975
3fed4c0b
RG
19762020-11-06 Romain Geissler <romain.geissler@amadeus.com>
1977
1978 PR python/26832
1979 * configure: Regenerate.
1980 * configure.ac: Check for python modules ctypes instead of
1981 itertools.
1982
ac3d4064
PA
19832020-11-06 Pedro Alves <pedro@palves.net>
1984
1985 * macroexp.c (struct macro_buffer): Split in two classes. Add
1986 uses adjusted.
1987 (struct shared_macro_buffer): New, factored out from struct
1988 macro_buffer.
1989 (struct growable_macro_buffer): New, factored out from struct
1990 macro_buffer.
1991 (set_token, get_comment, get_identifier, get_pp_number)
1992 (get_character_constant, get_string_literal, get_punctuator)
1993 (get_next_token_for_substitution): Constify parameters.
1994 (substitute_args): Constify locals.
1995
606decb2
TT
19962020-11-05 Tom Tromey <tom@tromey.com>
1997
1998 * dwarf2/read.c (read_cutu_die_from_dwo)
1999 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
2000 (build_type_psymtabs_1): Update.
2001 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
2002 parameter.
2003 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
2004 Don't read section. Add assert.
2005
9c91c725
TT
20062020-11-04 Tom Tromey <tromey@adacore.com>
2007
2008 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
2009
8d9fd3a1
TT
20102020-11-04 Tom Tromey <tromey@adacore.com>
2011
2012 * ada-typeprint.c (ada_print_type): Handle __T types.
2013
d8f62e84
TT
20142020-11-04 Tom Tromey <tromey@adacore.com>
2015
2016 * dwarf2/read.c (add_partial_symbol, process_die):
2017 Handle DW_TAG_array_type.
2018 (is_type_tag_for_partial): Add "lang" parameter.
2019 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
2020
7ff5b937
TT
20212020-11-04 Tom Tromey <tromey@adacore.com>
2022
2023 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
2024
10f6a3ad
TT
20252020-11-04 Tom Tromey <tromey@adacore.com>
2026
2027 * dwarf2/read.c (read_array_type): Only apply stride to innermost
2028 array.
2029
b72795a8
TT
20302020-11-04 Tom Tromey <tromey@adacore.com>
2031
2032 * gdbtypes.c (update_static_array_size): Handle bit stride.
2033
24aa1b02
TT
20342020-11-04 Tom Tromey <tromey@adacore.com>
2035
2036 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
2037
c9a28cbe
TT
20382020-11-04 Tom Tromey <tromey@adacore.com>
2039
2040 * ada-lang.c (ada_is_any_packed_array_type): New function.
2041 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
2042
57567375
TT
20432020-11-04 Tom Tromey <tromey@adacore.com>
2044
2045 * dwarf2/read.c (recognize_bound_expression)
2046 (quirk_ada_thick_pointer): New functions.
2047 (read_array_type): Call quirk_ada_thick_pointer.
2048 (set_die_type): Add "skip_data_location" parameter.
2049 (quirk_ada_thick_pointer): New function.
2050 (process_structure_scope): Call quirk_ada_thick_pointer.
2051 * ada-lang.c (ada_is_unconstrained_packed_array_type)
2052 (decode_packed_array_bitsize): Handle thick pointers without
2053 parallel types.
2054 (ada_is_gnat_encoded_packed_array_type): Rename from
2055 ada_is_packed_array_type.
2056 (ada_is_constrained_packed_array_type): Update.
2057 * ada-valprint.c (ada_val_print_gnat_array): Remove.
2058 (ada_value_print_1): Use ada_get_decoded_value.
2059
a7400e44
TT
20602020-11-04 Tom Tromey <tromey@adacore.com>
2061
2062 * ada-lang.c (recursively_update_array_bitsize): New function.
2063 (decode_constrained_packed_array_type): Call it.
2064
75fd6a26
TT
20652020-11-04 Tom Tromey <tromey@adacore.com>
2066
2067 * ada-lang.c (to_fixed_array_type): Error if
2068 decode_constrained_packed_array_type returns NULL.
2069
93f9561e
TT
20702020-11-04 Tom Tromey <tromey@adacore.com>
2071
2072 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
2073
257e02d8
TT
20742020-11-02 Tom Tromey <tromey@adacore.com>
2075
2076 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
2077 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
2078 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
2079 * amd64-ravenscar-thread.c: New file.
2080 * amd64-ravenscar-thread.h: New file.
2081 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
2082 * configure.tgt (amd64_tobjs): Add ravenscar objects.
2083
74d877e5
AB
20842020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * main.c (execute_cmdargs): New function.
2087 (captured_main_1): Make use of execute_cmdargs.
2088
64aaad63
AB
20892020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * NEWS: Mention changes to config file search path.
2092 * main.c
2093
5b3d3560
TT
20942020-11-02 Tom Tromey <tromey@adacore.com>
2095
2096 * python/python.c: Consolidate two HAVE_PYTHON blocks.
2097 (python_GdbModuleDef): Move earlier. Now static.
2098 (do_start_initialization): Consolidate some IS_PY3K blocks.
2099
dda83cd7
SM
21002020-11-02 Simon Marchi <simon.marchi@efficios.com>
2101
2102 * aarch64-linux-tdep.c: Fix indentation.
2103 * aarch64-ravenscar-thread.c: Fix indentation.
2104 * aarch64-tdep.c: Fix indentation.
2105 * aarch64-tdep.h: Fix indentation.
2106 * ada-lang.c: Fix indentation.
2107 * ada-lang.h: Fix indentation.
2108 * ada-tasks.c: Fix indentation.
2109 * ada-typeprint.c: Fix indentation.
2110 * ada-valprint.c: Fix indentation.
2111 * ada-varobj.c: Fix indentation.
2112 * addrmap.c: Fix indentation.
2113 * addrmap.h: Fix indentation.
2114 * agent.c: Fix indentation.
2115 * aix-thread.c: Fix indentation.
2116 * alpha-bsd-nat.c: Fix indentation.
2117 * alpha-linux-tdep.c: Fix indentation.
2118 * alpha-mdebug-tdep.c: Fix indentation.
2119 * alpha-nbsd-tdep.c: Fix indentation.
2120 * alpha-obsd-tdep.c: Fix indentation.
2121 * alpha-tdep.c: Fix indentation.
2122 * amd64-bsd-nat.c: Fix indentation.
2123 * amd64-darwin-tdep.c: Fix indentation.
2124 * amd64-linux-nat.c: Fix indentation.
2125 * amd64-linux-tdep.c: Fix indentation.
2126 * amd64-nat.c: Fix indentation.
2127 * amd64-obsd-tdep.c: Fix indentation.
2128 * amd64-tdep.c: Fix indentation.
2129 * amd64-windows-tdep.c: Fix indentation.
2130 * annotate.c: Fix indentation.
2131 * arc-tdep.c: Fix indentation.
2132 * arch-utils.c: Fix indentation.
2133 * arch/arm-get-next-pcs.c: Fix indentation.
2134 * arch/arm.c: Fix indentation.
2135 * arm-linux-nat.c: Fix indentation.
2136 * arm-linux-tdep.c: Fix indentation.
2137 * arm-nbsd-tdep.c: Fix indentation.
2138 * arm-pikeos-tdep.c: Fix indentation.
2139 * arm-tdep.c: Fix indentation.
2140 * arm-tdep.h: Fix indentation.
2141 * arm-wince-tdep.c: Fix indentation.
2142 * auto-load.c: Fix indentation.
2143 * auxv.c: Fix indentation.
2144 * avr-tdep.c: Fix indentation.
2145 * ax-gdb.c: Fix indentation.
2146 * ax-general.c: Fix indentation.
2147 * bfin-linux-tdep.c: Fix indentation.
2148 * block.c: Fix indentation.
2149 * block.h: Fix indentation.
2150 * blockframe.c: Fix indentation.
2151 * bpf-tdep.c: Fix indentation.
2152 * break-catch-sig.c: Fix indentation.
2153 * break-catch-syscall.c: Fix indentation.
2154 * break-catch-throw.c: Fix indentation.
2155 * breakpoint.c: Fix indentation.
2156 * breakpoint.h: Fix indentation.
2157 * bsd-uthread.c: Fix indentation.
2158 * btrace.c: Fix indentation.
2159 * build-id.c: Fix indentation.
2160 * buildsym-legacy.h: Fix indentation.
2161 * buildsym.c: Fix indentation.
2162 * c-typeprint.c: Fix indentation.
2163 * c-valprint.c: Fix indentation.
2164 * c-varobj.c: Fix indentation.
2165 * charset.c: Fix indentation.
2166 * cli/cli-cmds.c: Fix indentation.
2167 * cli/cli-decode.c: Fix indentation.
2168 * cli/cli-decode.h: Fix indentation.
2169 * cli/cli-script.c: Fix indentation.
2170 * cli/cli-setshow.c: Fix indentation.
2171 * coff-pe-read.c: Fix indentation.
2172 * coffread.c: Fix indentation.
2173 * compile/compile-cplus-types.c: Fix indentation.
2174 * compile/compile-object-load.c: Fix indentation.
2175 * compile/compile-object-run.c: Fix indentation.
2176 * completer.c: Fix indentation.
2177 * corefile.c: Fix indentation.
2178 * corelow.c: Fix indentation.
2179 * cp-abi.h: Fix indentation.
2180 * cp-namespace.c: Fix indentation.
2181 * cp-support.c: Fix indentation.
2182 * cp-valprint.c: Fix indentation.
2183 * cris-linux-tdep.c: Fix indentation.
2184 * cris-tdep.c: Fix indentation.
2185 * darwin-nat-info.c: Fix indentation.
2186 * darwin-nat.c: Fix indentation.
2187 * darwin-nat.h: Fix indentation.
2188 * dbxread.c: Fix indentation.
2189 * dcache.c: Fix indentation.
2190 * disasm.c: Fix indentation.
2191 * dtrace-probe.c: Fix indentation.
2192 * dwarf2/abbrev.c: Fix indentation.
2193 * dwarf2/attribute.c: Fix indentation.
2194 * dwarf2/expr.c: Fix indentation.
2195 * dwarf2/frame.c: Fix indentation.
2196 * dwarf2/index-cache.c: Fix indentation.
2197 * dwarf2/index-write.c: Fix indentation.
2198 * dwarf2/line-header.c: Fix indentation.
2199 * dwarf2/loc.c: Fix indentation.
2200 * dwarf2/macro.c: Fix indentation.
2201 * dwarf2/read.c: Fix indentation.
2202 * dwarf2/read.h: Fix indentation.
2203 * elfread.c: Fix indentation.
2204 * eval.c: Fix indentation.
2205 * event-top.c: Fix indentation.
2206 * exec.c: Fix indentation.
2207 * exec.h: Fix indentation.
2208 * expprint.c: Fix indentation.
2209 * f-lang.c: Fix indentation.
2210 * f-typeprint.c: Fix indentation.
2211 * f-valprint.c: Fix indentation.
2212 * fbsd-nat.c: Fix indentation.
2213 * fbsd-tdep.c: Fix indentation.
2214 * findvar.c: Fix indentation.
2215 * fork-child.c: Fix indentation.
2216 * frame-unwind.c: Fix indentation.
2217 * frame-unwind.h: Fix indentation.
2218 * frame.c: Fix indentation.
2219 * frv-linux-tdep.c: Fix indentation.
2220 * frv-tdep.c: Fix indentation.
2221 * frv-tdep.h: Fix indentation.
2222 * ft32-tdep.c: Fix indentation.
2223 * gcore.c: Fix indentation.
2224 * gdb_bfd.c: Fix indentation.
2225 * gdbarch.sh: Fix indentation.
2226 * gdbarch.c: Re-generate
2227 * gdbarch.h: Re-generate.
2228 * gdbcore.h: Fix indentation.
2229 * gdbthread.h: Fix indentation.
2230 * gdbtypes.c: Fix indentation.
2231 * gdbtypes.h: Fix indentation.
2232 * glibc-tdep.c: Fix indentation.
2233 * gnu-nat.c: Fix indentation.
2234 * gnu-nat.h: Fix indentation.
2235 * gnu-v2-abi.c: Fix indentation.
2236 * gnu-v3-abi.c: Fix indentation.
2237 * go32-nat.c: Fix indentation.
2238 * guile/guile-internal.h: Fix indentation.
2239 * guile/scm-cmd.c: Fix indentation.
2240 * guile/scm-frame.c: Fix indentation.
2241 * guile/scm-iterator.c: Fix indentation.
2242 * guile/scm-math.c: Fix indentation.
2243 * guile/scm-ports.c: Fix indentation.
2244 * guile/scm-pretty-print.c: Fix indentation.
2245 * guile/scm-value.c: Fix indentation.
2246 * h8300-tdep.c: Fix indentation.
2247 * hppa-linux-nat.c: Fix indentation.
2248 * hppa-linux-tdep.c: Fix indentation.
2249 * hppa-nbsd-nat.c: Fix indentation.
2250 * hppa-nbsd-tdep.c: Fix indentation.
2251 * hppa-obsd-nat.c: Fix indentation.
2252 * hppa-tdep.c: Fix indentation.
2253 * hppa-tdep.h: Fix indentation.
2254 * i386-bsd-nat.c: Fix indentation.
2255 * i386-darwin-nat.c: Fix indentation.
2256 * i386-darwin-tdep.c: Fix indentation.
2257 * i386-dicos-tdep.c: Fix indentation.
2258 * i386-gnu-nat.c: Fix indentation.
2259 * i386-linux-nat.c: Fix indentation.
2260 * i386-linux-tdep.c: Fix indentation.
2261 * i386-nto-tdep.c: Fix indentation.
2262 * i386-obsd-tdep.c: Fix indentation.
2263 * i386-sol2-nat.c: Fix indentation.
2264 * i386-tdep.c: Fix indentation.
2265 * i386-tdep.h: Fix indentation.
2266 * i386-windows-tdep.c: Fix indentation.
2267 * i387-tdep.c: Fix indentation.
2268 * i387-tdep.h: Fix indentation.
2269 * ia64-libunwind-tdep.c: Fix indentation.
2270 * ia64-libunwind-tdep.h: Fix indentation.
2271 * ia64-linux-nat.c: Fix indentation.
2272 * ia64-linux-tdep.c: Fix indentation.
2273 * ia64-tdep.c: Fix indentation.
2274 * ia64-tdep.h: Fix indentation.
2275 * ia64-vms-tdep.c: Fix indentation.
2276 * infcall.c: Fix indentation.
2277 * infcmd.c: Fix indentation.
2278 * inferior.c: Fix indentation.
2279 * infrun.c: Fix indentation.
2280 * iq2000-tdep.c: Fix indentation.
2281 * language.c: Fix indentation.
2282 * linespec.c: Fix indentation.
2283 * linux-fork.c: Fix indentation.
2284 * linux-nat.c: Fix indentation.
2285 * linux-tdep.c: Fix indentation.
2286 * linux-thread-db.c: Fix indentation.
2287 * lm32-tdep.c: Fix indentation.
2288 * m2-lang.c: Fix indentation.
2289 * m2-typeprint.c: Fix indentation.
2290 * m2-valprint.c: Fix indentation.
2291 * m32c-tdep.c: Fix indentation.
2292 * m32r-linux-tdep.c: Fix indentation.
2293 * m32r-tdep.c: Fix indentation.
2294 * m68hc11-tdep.c: Fix indentation.
2295 * m68k-bsd-nat.c: Fix indentation.
2296 * m68k-linux-nat.c: Fix indentation.
2297 * m68k-linux-tdep.c: Fix indentation.
2298 * m68k-tdep.c: Fix indentation.
2299 * machoread.c: Fix indentation.
2300 * macrocmd.c: Fix indentation.
2301 * macroexp.c: Fix indentation.
2302 * macroscope.c: Fix indentation.
2303 * macrotab.c: Fix indentation.
2304 * macrotab.h: Fix indentation.
2305 * main.c: Fix indentation.
2306 * mdebugread.c: Fix indentation.
2307 * mep-tdep.c: Fix indentation.
2308 * mi/mi-cmd-catch.c: Fix indentation.
2309 * mi/mi-cmd-disas.c: Fix indentation.
2310 * mi/mi-cmd-env.c: Fix indentation.
2311 * mi/mi-cmd-stack.c: Fix indentation.
2312 * mi/mi-cmd-var.c: Fix indentation.
2313 * mi/mi-cmds.c: Fix indentation.
2314 * mi/mi-main.c: Fix indentation.
2315 * mi/mi-parse.c: Fix indentation.
2316 * microblaze-tdep.c: Fix indentation.
2317 * minidebug.c: Fix indentation.
2318 * minsyms.c: Fix indentation.
2319 * mips-linux-nat.c: Fix indentation.
2320 * mips-linux-tdep.c: Fix indentation.
2321 * mips-nbsd-tdep.c: Fix indentation.
2322 * mips-tdep.c: Fix indentation.
2323 * mn10300-linux-tdep.c: Fix indentation.
2324 * mn10300-tdep.c: Fix indentation.
2325 * moxie-tdep.c: Fix indentation.
2326 * msp430-tdep.c: Fix indentation.
2327 * namespace.h: Fix indentation.
2328 * nat/fork-inferior.c: Fix indentation.
2329 * nat/gdb_ptrace.h: Fix indentation.
2330 * nat/linux-namespaces.c: Fix indentation.
2331 * nat/linux-osdata.c: Fix indentation.
2332 * nat/netbsd-nat.c: Fix indentation.
2333 * nat/x86-dregs.c: Fix indentation.
2334 * nbsd-nat.c: Fix indentation.
2335 * nbsd-tdep.c: Fix indentation.
2336 * nios2-linux-tdep.c: Fix indentation.
2337 * nios2-tdep.c: Fix indentation.
2338 * nto-procfs.c: Fix indentation.
2339 * nto-tdep.c: Fix indentation.
2340 * objfiles.c: Fix indentation.
2341 * objfiles.h: Fix indentation.
2342 * opencl-lang.c: Fix indentation.
2343 * or1k-tdep.c: Fix indentation.
2344 * osabi.c: Fix indentation.
2345 * osabi.h: Fix indentation.
2346 * osdata.c: Fix indentation.
2347 * p-lang.c: Fix indentation.
2348 * p-typeprint.c: Fix indentation.
2349 * p-valprint.c: Fix indentation.
2350 * parse.c: Fix indentation.
2351 * ppc-linux-nat.c: Fix indentation.
2352 * ppc-linux-tdep.c: Fix indentation.
2353 * ppc-nbsd-nat.c: Fix indentation.
2354 * ppc-nbsd-tdep.c: Fix indentation.
2355 * ppc-obsd-nat.c: Fix indentation.
2356 * ppc-ravenscar-thread.c: Fix indentation.
2357 * ppc-sysv-tdep.c: Fix indentation.
2358 * ppc64-tdep.c: Fix indentation.
2359 * printcmd.c: Fix indentation.
2360 * proc-api.c: Fix indentation.
2361 * producer.c: Fix indentation.
2362 * producer.h: Fix indentation.
2363 * prologue-value.c: Fix indentation.
2364 * prologue-value.h: Fix indentation.
2365 * psymtab.c: Fix indentation.
2366 * python/py-arch.c: Fix indentation.
2367 * python/py-bpevent.c: Fix indentation.
2368 * python/py-event.c: Fix indentation.
2369 * python/py-event.h: Fix indentation.
2370 * python/py-finishbreakpoint.c: Fix indentation.
2371 * python/py-frame.c: Fix indentation.
2372 * python/py-framefilter.c: Fix indentation.
2373 * python/py-inferior.c: Fix indentation.
2374 * python/py-infthread.c: Fix indentation.
2375 * python/py-objfile.c: Fix indentation.
2376 * python/py-prettyprint.c: Fix indentation.
2377 * python/py-registers.c: Fix indentation.
2378 * python/py-signalevent.c: Fix indentation.
2379 * python/py-stopevent.c: Fix indentation.
2380 * python/py-stopevent.h: Fix indentation.
2381 * python/py-threadevent.c: Fix indentation.
2382 * python/py-tui.c: Fix indentation.
2383 * python/py-unwind.c: Fix indentation.
2384 * python/py-value.c: Fix indentation.
2385 * python/py-xmethods.c: Fix indentation.
2386 * python/python-internal.h: Fix indentation.
2387 * python/python.c: Fix indentation.
2388 * ravenscar-thread.c: Fix indentation.
2389 * record-btrace.c: Fix indentation.
2390 * record-full.c: Fix indentation.
2391 * record.c: Fix indentation.
2392 * reggroups.c: Fix indentation.
2393 * regset.h: Fix indentation.
2394 * remote-fileio.c: Fix indentation.
2395 * remote.c: Fix indentation.
2396 * reverse.c: Fix indentation.
2397 * riscv-linux-tdep.c: Fix indentation.
2398 * riscv-ravenscar-thread.c: Fix indentation.
2399 * riscv-tdep.c: Fix indentation.
2400 * rl78-tdep.c: Fix indentation.
2401 * rs6000-aix-tdep.c: Fix indentation.
2402 * rs6000-lynx178-tdep.c: Fix indentation.
2403 * rs6000-nat.c: Fix indentation.
2404 * rs6000-tdep.c: Fix indentation.
2405 * rust-lang.c: Fix indentation.
2406 * rx-tdep.c: Fix indentation.
2407 * s12z-tdep.c: Fix indentation.
2408 * s390-linux-tdep.c: Fix indentation.
2409 * score-tdep.c: Fix indentation.
2410 * ser-base.c: Fix indentation.
2411 * ser-mingw.c: Fix indentation.
2412 * ser-uds.c: Fix indentation.
2413 * ser-unix.c: Fix indentation.
2414 * serial.c: Fix indentation.
2415 * sh-linux-tdep.c: Fix indentation.
2416 * sh-nbsd-tdep.c: Fix indentation.
2417 * sh-tdep.c: Fix indentation.
2418 * skip.c: Fix indentation.
2419 * sol-thread.c: Fix indentation.
2420 * solib-aix.c: Fix indentation.
2421 * solib-darwin.c: Fix indentation.
2422 * solib-frv.c: Fix indentation.
2423 * solib-svr4.c: Fix indentation.
2424 * solib.c: Fix indentation.
2425 * source.c: Fix indentation.
2426 * sparc-linux-tdep.c: Fix indentation.
2427 * sparc-nbsd-tdep.c: Fix indentation.
2428 * sparc-obsd-tdep.c: Fix indentation.
2429 * sparc-ravenscar-thread.c: Fix indentation.
2430 * sparc-tdep.c: Fix indentation.
2431 * sparc64-linux-tdep.c: Fix indentation.
2432 * sparc64-nbsd-tdep.c: Fix indentation.
2433 * sparc64-obsd-tdep.c: Fix indentation.
2434 * sparc64-tdep.c: Fix indentation.
2435 * stabsread.c: Fix indentation.
2436 * stack.c: Fix indentation.
2437 * stap-probe.c: Fix indentation.
2438 * stubs/ia64vms-stub.c: Fix indentation.
2439 * stubs/m32r-stub.c: Fix indentation.
2440 * stubs/m68k-stub.c: Fix indentation.
2441 * stubs/sh-stub.c: Fix indentation.
2442 * stubs/sparc-stub.c: Fix indentation.
2443 * symfile-mem.c: Fix indentation.
2444 * symfile.c: Fix indentation.
2445 * symfile.h: Fix indentation.
2446 * symmisc.c: Fix indentation.
2447 * symtab.c: Fix indentation.
2448 * symtab.h: Fix indentation.
2449 * target-float.c: Fix indentation.
2450 * target.c: Fix indentation.
2451 * target.h: Fix indentation.
2452 * tic6x-tdep.c: Fix indentation.
2453 * tilegx-linux-tdep.c: Fix indentation.
2454 * tilegx-tdep.c: Fix indentation.
2455 * top.c: Fix indentation.
2456 * tracefile-tfile.c: Fix indentation.
2457 * tracepoint.c: Fix indentation.
2458 * tui/tui-disasm.c: Fix indentation.
2459 * tui/tui-io.c: Fix indentation.
2460 * tui/tui-regs.c: Fix indentation.
2461 * tui/tui-stack.c: Fix indentation.
2462 * tui/tui-win.c: Fix indentation.
2463 * tui/tui-winsource.c: Fix indentation.
2464 * tui/tui.c: Fix indentation.
2465 * typeprint.c: Fix indentation.
2466 * ui-out.h: Fix indentation.
2467 * unittests/copy_bitwise-selftests.c: Fix indentation.
2468 * unittests/memory-map-selftests.c: Fix indentation.
2469 * utils.c: Fix indentation.
2470 * v850-tdep.c: Fix indentation.
2471 * valarith.c: Fix indentation.
2472 * valops.c: Fix indentation.
2473 * valprint.c: Fix indentation.
2474 * valprint.h: Fix indentation.
2475 * value.c: Fix indentation.
2476 * value.h: Fix indentation.
2477 * varobj.c: Fix indentation.
2478 * vax-tdep.c: Fix indentation.
2479 * windows-nat.c: Fix indentation.
2480 * windows-tdep.c: Fix indentation.
2481 * xcoffread.c: Fix indentation.
2482 * xml-syscall.c: Fix indentation.
2483 * xml-tdesc.c: Fix indentation.
2484 * xstormy16-tdep.c: Fix indentation.
2485 * xtensa-config.c: Fix indentation.
2486 * xtensa-linux-nat.c: Fix indentation.
2487 * xtensa-linux-tdep.c: Fix indentation.
2488 * xtensa-tdep.c: Fix indentation.
2489
e1f57067
AB
24902020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
2491 Craig Blackmore <craig.blackmore@embecosm.com>
2492
2493 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
2494 as an unsigned value.
2495
ae7754b2
TT
24962020-11-01 Tom Tromey <tom@tromey.com>
2497
2498 * dbxread.c (dbx_end_psymtab): Update.
2499 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2500 (build_type_psymtabs_reader): Update.
2501 * xcoffread.c (xcoff_end_psymtab): Update.
2502 * ctfread.c (scan_partial_symbols): Update.
2503 * psymtab.c (sort_pst_symbols): Remove.
2504 (partial_symtab::end): Rename from end_psymtab_common. Inline
2505 sort_pst_symbols.
2506 * psympriv.h (struct partial_symtab) <end>: New method.
2507 (end_psymtab_common): Don't declare.
2508
0684bb51
TT
25092020-11-01 Tom Tromey <tom@tromey.com>
2510
2511 * symmisc.c (count_psyms): New function.
2512 (print_objfile_statistics): Use it.
2513 * psymtab.c (append_psymbol_to_list): Remove.
2514 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
2515 * objfiles.h (struct objstats) <n_psyms>: Remove.
2516
089002bb
TT
25172020-11-01 Tom Tromey <tom@tromey.com>
2518
2519 * dbxread.c (dbx_end_psymtab): Update.
2520 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
2521 (build_type_psymtabs_reader): Update.
2522 * xcoffread.c (xcoff_end_psymtab): Update.
2523 * ctfread.c (scan_partial_symbols): Update.
2524 * psympriv.h (end_psymtab_common): Update.
2525 * psymtab.c (end_psymtab_common): Remove objfile parameter.
2526 (sort_pst_symbols): Likewise.
2527
525454d6
TT
25282020-11-01 Tom Tromey <tom@tromey.com>
2529
2530 * dbxread.c (dbx_symfile_read): Update.
2531 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2532 * xcoffread.c (xcoff_initial_scan): Update.
2533 * psympriv.h (init_psymbol_list): Don't declare.
2534 * psymtab.c (init_psymbol_list): Remove.
2535
60bd1d53
JB
25362020-11-01 Joel Brobecker <brobecker@adacore.com>
2537
2538 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
2539 gnat_encoded_fixed_type_info. Update all callers.
2540
db99d0d0
JB
25412020-11-01 Joel Brobecker <brobecker@adacore.com>
2542
2543 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
2544 line too long.
2545
75f24e86
JB
25462020-11-01 Joel Brobecker <brobecker@adacore.com>
2547
2548 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
2549 cast_from_fixed. Update all callers.
2550 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
2551 Update all callers.
2552 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
2553 Update all callers.
2554 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
2555 ada_scaling_factor.
2556 * ada-typeprint.c: Replace call to ada_scaling_factor by call
2557 to print_gnat_encoded_fixed_point_type.
2558 * ada-valprint.c: Likewise.
2559
4f0469cd
AB
25602020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
2563 (debug_prefixed_printf): Add check of debug_displaced flag.
2564 * linux-nat.c (linux_nat_debug_printf): Add check of
2565 debug_linux_nat flag.
2566
17417fb0
SM
25672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * infrun.c (infrun_debug_printf_1): Remove.
2570 (displaced_debug_printf_1): Remove.
2571 (stop_all_threads): Use debug_prefixed_printf.
2572 * infrun.h (infrun_debug_printf_1): Remove.
2573 (infrun_debug_printf): Use debug_prefixed_printf.
2574 (displaced_debug_printf_1): Remove.
2575 (displaced_debug_printf): Use debug_prefixed_printf.
2576 * linux-nat.c (linux_nat_debug_printf_1): Remove.
2577 (linux_nat_debug_printf): Use debug_prefixed_printf.
2578
ad6dba1c
SM
25792020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2580
2581 * configure: Re-generate.
2582 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
2583 AC_LANG_PROGRAM.
2584
b6fb30ed
SM
25852020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2586
2587 * configure: Re-generate.
2588
5164c117
SM
25892020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2590
2591 * configure: Re-generate.
2592
864ca435
SM
25932020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2594
2595 * configure: Re-generate.
2596
b9442ec1
SM
25972020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2598
2599 * configure: Re-generate.
2600
294f2697
SM
26012020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2602
2603 * acinclude.m4: Modernize.
2604 * configure: Re-generate.
2605
5593a99a
SM
26062020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2607
2608 * configure.ac: Modernize.
2609 * configure: Re-generate.
2610
e41fda1d
SM
26112020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
2614 * configure: Re-generate.
2615 * configure.ac: Remove AM_PROG_CC_STDC.
2616
91e1a0ed
SM
26172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
2618
2619 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
2620 AC_CANONICAL_SYSTEM.
2621 * configure: Re-generate.
2622
136821d9
SM
26232020-10-30 Simon Marchi <simon.marchi@efficios.com>
2624
2625 * infrun.h (displaced_debug_printf): New macro. Replace
2626 displaced debug prints throughout to use it.
2627 (displaced_debug_printf_1): New declaration.
2628 (displaced_step_dump_bytes): Return string, remove ui_file
2629 parameter, update all callers.
2630 * infrun.c (displaced_debug_printf_1): New function.
2631 (displaced_step_dump_bytes): Return string, remove ui_file
2632 parameter
2633
aa2045e7
SM
26342020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
2635
2636 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
2637
b1ec2735
TT
26382020-10-30 Tom Tromey <tromey@adacore.com>
2639
2640 * Makefile.in (stamp-init): Depend on config.status.
2641
b78b3a29
TBA
26422020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2643
2644 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
2645
d70bdd3c
PA
26462020-10-30 Pedro Alves <pedro@palves.net>
2647
2648 * thread.c (lookup_selected_frame): Move ...
2649 * frame.c (lookup_selected_frame): ... here.
2650
79952e69
PA
26512020-10-30 Pedro Alves <pedro@palves.net>
2652
2653 * blockframe.c (block_innermost_frame): Use get_selected_frame.
2654 * frame.c
2655 (scoped_restore_selected_frame::scoped_restore_selected_frame):
2656 Use save_selected_frame. Save language as well.
2657 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
2658 Use restore_selected_frame, and restore language as well.
2659 (selected_frame_id, selected_frame_level): New.
2660 (selected_frame): Update comments.
2661 (save_selected_frame, restore_selected_frame): New.
2662 (get_selected_frame): Use lookup_selected_frame.
2663 (get_selected_frame_if_set): Delete.
2664 (select_frame): Record selected_frame_level and selected_frame_id.
2665 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
2666 fields.
2667 (get_selected_frame): Make 'message' parameter optional.
2668 (get_selected_frame_if_set): Delete declaration.
2669 (select_frame): Update comments.
2670 (save_selected_frame, restore_selected_frame)
2671 (lookup_selected_frame): Declare.
2672 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
2673 * infrun.c (struct infcall_control_state) <selected_frame_level>:
2674 New field.
2675 (save_infcall_control_state): Use save_selected_frame.
2676 (restore_selected_frame): Delete.
2677 (restore_infcall_control_state): Use restore_selected_frame.
2678 * stack.c (select_frame_command_core, frame_command_core): Use
2679 get_selected_frame.
2680 * thread.c (restore_selected_frame): Rename to ...
2681 (lookup_selected_frame): ... this and make extern. Select the
2682 current frame if the frame level is -1.
2683 (scoped_restore_current_thread::restore): Also restore the
2684 language.
2685 (scoped_restore_current_thread::~scoped_restore_current_thread):
2686 Don't try/catch.
2687 (scoped_restore_current_thread::scoped_restore_current_thread):
2688 Save the language as well. Use save_selected_frame.
2689
58103c33
SM
26902020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2691
2692 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
2693 documentation.
2694 * gdbarch.h: Re-generate.
2695
40a53766
SM
26962020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2697
2698 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
2699 parameter.
2700 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
2701 Likewise.
2702 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2703 Likewise.
2704 * arch-utils.c (default_displaced_step_hw_singlestep):
2705 Likewise.
2706 * arch-utils.h (default_displaced_step_hw_singlestep):
2707 Likewise.
2708 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
2709 Likewise.
2710 * s390-tdep.c (s390_displaced_step_hw_singlestep):
2711 Likewise.
2712 * gdbarch.c: Re-generate.
2713 * gdbarch.h: Re-generate.
2714 * infrun.c (resume_1): Adjust.
2715
8407f91b
TT
27162020-10-29 Tom Tromey <tom@tromey.com>
2717
2718 * progspace.c (program_space::~program_space): Don't call
2719 exec_close.
2720
5008b3b2
TT
27212020-10-29 Tom Tromey <tom@tromey.com>
2722
2723 * exec.c (exec_target::close): Don't change current program
2724 space.
2725
d9eebde0
TT
27262020-10-29 Tom Tromey <tom@tromey.com>
2727
2728 * symfile.c (add_symbol_file_command): Update.
2729 * exec.c (program_space::add_target_sections): Rename.
2730 * symfile-mem.c (symbol_file_add_from_memory): Update.
2731 * progspace.h (struct program_space) <add_target_sections>:
2732 Declare new overload.
2733 * exec.h (add_target_sections_of_objfile): Don't declare.
2734
3769e227
TT
27352020-10-29 Tom Tromey <tom@tromey.com>
2736
2737 * solib.c (solib_map_sections): Update.
2738 * exec.c (program_space::add_target_sections): Now a method.
2739 (exec_file_attach): Update.
2740 * exec.h (add_target_sections): Don't declare.
2741 * progspace.h (struct program_space) <add_target_sections>:
2742 Declare.
2743
2a3f84af
TT
27442020-10-29 Tom Tromey <tom@tromey.com>
2745
2746 * progspace.h (struct program_space) <remove_target_sections>:
2747 Declare.
2748 * exec.c (program_space::remove_target_sections): Now a method.
2749 * exec.h (remove_target_sections): Don't declare.
2750
004eecfd
TT
27512020-10-29 Tom Tromey <tom@tromey.com>
2752
2753 * inferior.c (delete_inferior): Update.
2754 * progspace.c (program_space::empty): Rename from
2755 program_space_empty_p. Return bool.
2756 * progspace.h (struct program_space) <empty>: New method.
2757 (program_space_empty_p): Don't declare.
2758
e39fb971
TT
27592020-10-29 Tom Tromey <tom@tromey.com>
2760
2761 * progspace.c (program_space::~program_space): Don't call
2762 clear_program_space_solib_cache.
2763 (program_space::clear_solib_cache): Rename from
2764 clear_solib_cache.
2765 * solib.c (handle_solib_event): Update.
2766 * progspace.h (struct program_space) <clear_solib_cache>: New
2767 method.
2768 (clear_program_space_solib_cache): Don't declare.
2769
a42d7dd8
TT
27702020-10-29 Tom Tromey <tom@tromey.com>
2771
2772 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2773 * target.c (info_target_command): Update.
2774 * symfile.c (syms_from_objfile_1, finish_new_objfile)
2775 (symbol_file_clear, reread_symbols): Update.
2776 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
2777 * stabsread.c (scan_file_globals): Update.
2778 * solib.c (update_solib_list): Update.
2779 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
2780 (svr4_fetch_objfile_link_map, enable_break)
2781 (svr4_relocate_main_executable)
2782 (svr4_iterate_over_objfiles_in_search_order): Update.
2783 * solib-frv.c (lm_base, enable_break)
2784 (frv_relocate_main_executable): Update.
2785 (main_got, frv_fdpic_find_canonical_descriptor): Update.
2786 (frv_fetch_objfile_link_map): Update.
2787 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
2788 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
2789 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
2790 * remote.c (remote_target::get_offsets): Update.
2791 (remote_target::start_remote)
2792 (extended_remote_target::post_attach): Update.
2793 * objfiles.c (entry_point_address_query): Update.
2794 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
2795 * minsyms.c (get_symbol_leading_char): Update.
2796 * frame.c (inside_main_func): Update.
2797 * progspace.h (symfile_objfile): Remove macro.
2798
19f6550e
TT
27992020-10-29 Tom Tromey <tom@tromey.com>
2800
2801 * exec.c (exec_file_attach): Update.
2802 * progspace.c (program_space::exec_close): Update.
2803 * progspace.h (struct program_space) <ebfd>: Now a
2804 gdb_bfd_ref_ptr.
2805 <set_exec_bfd>: Change argument type.
2806 <exec_bfd>: Update.
2807
7e10abd1
TT
28082020-10-29 Tom Tromey <tom@tromey.com>
2809
2810 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2811 * symfile.c (reread_symbols): Update.
2812 * symfile-mem.c (add_symbol_file_from_memory_command)
2813 (add_vsyscall_page): Update.
2814 * source-cache.c (source_cache::get_plain_source_lines): Update.
2815 * solib-svr4.c (find_program_interpreter, elf_locate_base)
2816 (svr4_current_sos_direct, svr4_exec_displacement)
2817 (svr4_relocate_main_executable): Update.
2818 (svr4_iterate_over_objfiles_in_search_order): Update.
2819 * solib-frv.c (enable_break2, enable_break): Update.
2820 * solib-dsbt.c (lm_base, enable_break): Update.
2821 * solib-darwin.c (find_program_interpreter)
2822 (darwin_solib_create_inferior_hook): Update.
2823 * sol-thread.c (rw_common, ps_pdmodel): Update.
2824 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
2825 * remote.c (compare_sections_command)
2826 (remote_target::trace_set_readonly_regions): Update.
2827 * remote-sim.c (get_sim_inferior_data)
2828 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
2829 (gdbsim_target_open, gdbsim_target::files_info): Update.
2830 * exec.h (exec_bfd): Remove macro.
2831 * progspace.c (initialize_progspace): Update.
2832 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
2833 Update.
2834 * nto-procfs.c (nto_procfs_target::post_attach)
2835 (nto_procfs_target::create_inferior): Update.
2836 * maint.c (maintenance_info_sections): Update.
2837 * linux-thread-db.c (thread_db_target::get_thread_local_address):
2838 Update.
2839 * infcmd.c (post_create_inferior): Update.
2840 * gcore.c (default_gcore_arch, default_gcore_target): Update.
2841 (objfile_find_memory_regions): Update.
2842 * exec.c (validate_exec_file, exec_file_attach)
2843 (exec_read_partial_read_only, print_section_info): Update.
2844 * corelow.c (core_target_open): Update.
2845 * corefile.c (reopen_exec_file, validate_files): Update.
2846 * arm-tdep.c (gdb_print_insn_arm): Update.
2847 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
2848 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
2849 methods.
2850
b55221ab
TT
28512020-10-29 Tom Tromey <tom@tromey.com>
2852
2853 * progspace.h (current_target_sections): Remove macro.
2854 * solib-svr4.c (scan_dyntag): Update.
2855 * solib-dsbt.c (scan_dyntag): Update.
2856 * exec.c (exec_target::close): Update.
2857 (add_target_sections, add_target_sections_of_objfile)
2858 (remove_target_sections, exec_target::get_section_table)
2859 (exec_target::files_info, set_section_command)
2860 (exec_set_section_address, exec_target::has_memory)
2861 (exec_target::has_memory): Update.
2862
5a36e715
TT
28632020-10-29 Tom Tromey <tom@tromey.com>
2864
2865 * source-cache.c (source_cache::get_plain_source_lines): Use
2866 current_program_space.
2867 * corefile.c (reopen_exec_file): Use current_program_space.
2868 * exec.c (exec_file_attach): Use current_program_space.
2869 * exec.h (exec_bfd_mtime): Remove.
2870
784c8592
TT
28712020-10-29 Tom Tromey <tom@tromey.com>
2872
2873 * gcore.c (default_gcore_mach): Remove.
2874 (create_gcore_bfd): Update.
2875
8a4f1402
TT
28762020-10-29 Tom Tromey <tom@tromey.com>
2877
2878 * progspace.c (program_space::exec_close): New method, from
2879 exec_close in exec.c.
2880 * exec.c (exec_close): Move to progspace.c.
2881 (exec_target::close, exec_file_attach): Update.
2882 * progspace.h (struct program_space) <exec_close>: Declare
2883 method.
2884
c20cb686
TT
28852020-10-29 Tom Tromey <tom@tromey.com>
2886
2887 * progspace.h (struct program_space) <exec_filename>: Rename from
2888 pspace_exec_filename. Now a unique_xmalloc_ptr.
2889 * inferior.c (print_selected_inferior): Update.
2890 (print_inferior): Update.
2891 * mi/mi-main.c (print_one_inferior): Update.
2892 * exec.h (exec_filename): Remove macro.
2893 * corefile.c (get_exec_file): Update.
2894 * exec.c (exec_close): Update.
2895 (exec_file_attach): Update.
2896 * progspace.c (clone_program_space): Update.
2897 (print_program_space): Update.
2898
6be2a9ab
TT
28992020-10-29 Tom Tromey <tom@tromey.com>
2900
2901 * target-section.h (struct target_section): Add constructor.
2902 * exec.c (build_section_table, add_target_sections_of_objfile):
2903 Update.
2904 * corelow.c (core_target::build_file_mappings): Update.
2905
cfaa8f76
TBA
29062020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2907
2908 PR gdb/19318
2909 * inferior.c (detach_inferior_command): Restore the current thread.
2910 (kill_inferior_command): Ditto.
2911
1b00ef06
TV
29122020-10-28 Tom de Vries <tdevries@suse.de>
2913
2914 PR symtab/26772
2915 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
2916 map, check it in the "best match" loop.
2917
7f40ce1a
SM
29182020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2919
2920 * m32c-tdep.c: Remove unused includes.
2921
5eb9e3f5
SM
29222020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
2923
2924 * xtensa-tdep.c: Remove includes.
2925
b1d4d8d1
TBA
29262020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2927
2928 * breakpoint.c (struct condition_command_opts): New struct.
2929 (condition_command_option_defs): New static global.
2930 (make_condition_command_options_def_group): New function.
2931 (condition_completer): Update to consider the '-force' flag.
2932 (condition_command): Use gdb::option for the '-force' flag.
2933
bd24c5d6
TV
29342020-10-27 Tom de Vries <tdevries@suse.de>
2935
2936 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
2937 symbols in section check.
2938
61eb46a4
TV
29392020-10-27 Tom de Vries <tdevries@suse.de>
2940
2941 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
2942
733d554a
TBA
29432020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2944
2945 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
2946 * breakpoint.c: Update the help text of the 'condition' and 'break'
2947 commands.
2948 (set_breakpoint_condition): Take a new bool parameter
2949 to control whether condition definition should be forced even when
2950 the condition expression is invalid in all of the current locations.
2951 (condition_command): Update the call to 'set_breakpoint_condition'.
2952 (find_condition_and_thread): Take the "-force-condition" flag into
2953 account.
2954 * linespec.c (linespec_keywords): Add "-force-condition" as an
2955 element.
2956 (FORCE_KEYWORD_INDEX): New #define.
2957 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
2958 as a keyword.
2959 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
2960 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
2961 * python/py-breakpoint.c (bppy_set_condition): Ditto.
2962 * NEWS: Mention the changes to the 'break' and 'condition' commands.
2963
b5fa468f
TBA
29642020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2965
2966 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
2967 * breakpoint.c (set_breakpoint_location_condition): New function.
2968 (set_breakpoint_condition): Disable a breakpoint location if parsing
2969 the condition string gives an error.
2970 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
2971 (build_target_condition_list): Ditto.
2972 (build_target_command_list): Ditto.
2973 (build_bpstat_chain): Ditto.
2974 (print_one_breakpoint_location): Ditto.
2975 (print_one_breakpoint): Ditto.
2976 (breakpoint_1): Ditto.
2977 (bp_location::bp_location): Ditto.
2978 (locations_are_equal): Ditto.
2979 (update_breakpoint_locations): Ditto.
2980 (enable_disable_bp_num_loc): Ditto.
2981 (init_breakpoint_sal): Use set_breakpoint_location_condition.
2982 (find_condition_and_thread_for_sals): New static function.
2983 (create_breakpoint): Call find_condition_and_thread_for_sals.
2984 (location_to_sals): Call find_condition_and_thread_for_sals instead
2985 of find_condition_and_thread.
2986
1c47ec3e
TV
29872020-10-26 Tom de Vries <tdevries@suse.de>
2988
2989 * dwarf2/read.c (process_full_comp_unit): Call
2990 dwarf2_find_base_address.
2991
6390859c
TT
29922020-10-26 Tom Tromey <tromey@adacore.com>
2993
2994 * gdbtypes.c (create_range_type): Revert previous patch. Add
2995 comment.
2996
d744f0f9
PA
29972020-10-26 Pedro Alves <pedro@palves.net>
2998
2999 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
3000 (my_waitpid): Use gdb::handle_eintr.
3001
006811bc
SM
30022020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
3003
3004 * acinclude.m4: Update ptrace.m4 path.
3005 * ptrace.m4: Moved to gdbsupport.
3006
c75e31a1
SM
30072020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
3008
3009 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
3010 instead of target_gdbarch.
3011
32495661
SM
30122020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
3013
3014 * jit.c (jit_reader_load_command): Pass current inferior.
3015 (jit_inferior_init): Change parameter type to inferior, use it.
3016 (jit_inferior_created): Remove.
3017 (jit_inferior_created_hook): Pass inferior parameter down.
3018 (_initialize_jit): Use jit_inferior_created_hook instead of
3019 jit_inferior_created.
3020 * jit.h (jit_inferior_created_hook): Add inferior parameter.
3021 * infrun.c (follow_exec): Pass inferior to
3022 jit_inferior_created_hook.
3023
3f66685e
SM
30242020-10-24 Simon Marchi <simon.marchi@efficios.com>
3025
3026 * linux-thread-db.c (check_pid_namespace_match): Add inferior
3027 parameter and use it.
3028 (thread_db_inferior_created): Pass inferior argument.
3029
a0ff652f
SM
30302020-10-24 Simon Marchi <simon.marchi@efficios.com>
3031
3032 * aix-thread.c (aix_thread_inferior_created): Add inferior
3033 parameter.
3034 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
3035 * dummy-frame.c (cleanup_dummy_frames): Likewise.
3036 * jit.c (jit_inferior_created): Likewise.
3037 * linux-thread-db.c (thread_db_inferior_created): Likewise.
3038 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
3039 * observable.h (inferior_created): Likewise.
3040 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
3041 * symfile-mem.c (add_vsyscall_page): Likewise.
3042 * infcmd.c (post_create_inferior): Pass inferior argument.
3043
3c67532c
JB
30442020-10-24 Joel Brobecker <brobecker@adacore.com>
3045
3046 GDB 10.1 released.
3047
8747316e
JB
30482020-10-23 Joel Brobecker <brobecker@adacore.com>
3049
3050 * ada-typeprint.c (ada_print_type): Remove superfluous second call
3051 to ada_check_typedef.
3052
1a0ea399
AB
30532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3054
3055 * f-exp.y (f_parse): Rename to...
3056 (f_language::parser): ...this.
3057 * f-lang.c (f_get_encoding): Rename to...
3058 (f_language::get_encoding): ...this.
3059 (f_op_print_tab): Rename to...
3060 (f_language::op_print_tab): ...this.
3061 (exp_descriptor_f): Rename to...
3062 (f_language::exp_descriptor_tab): ...this.
3063 (class f_language): Moved to f-lang.h.
3064 (f_language::language_arch_info): New function, moved out of class
3065 declaration.
3066 (f_language::search_name_hash): Likewise.
3067 (f_language::lookup_symbol_nonlocal): Likewise.
3068 (f_language::get_symbol_name_matcher_inner): Likewise.
3069 * f-lang.h: Add 'valprint.h' include.
3070 (class f_language): Moved here from f-lang.c.
3071 * f-typeprint.c (f_type_print_args): Delete commented out
3072 declaration.
3073 (f_print_typedef): Rename to...
3074 (f_language::print_typedef): ...this.
3075 (f_print_type): Rename to...
3076 (f_language::print_type): ...this.
3077 (f_type_print_varspec_prefix): Delete declaration and rename to...
3078 (f_language::f_type_print_varspec_prefix): ...this.
3079 (f_type_print_varspec_suffix): Delete declaration and rename to...
3080 (f_language::f_type_print_varspec_suffix): ...this.
3081 (f_type_print_base): Delete declaration and rename to...
3082 (f_language::f_type_print_base): ...this.
3083 * f-valprint.c (f_value_print_inner): Rename to...
3084 (f_language::value_print_inner): ...this.
3085 * parse.c: Delete 'f-lang.h' include.
3086
88cefd9b
AB
30872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * language.h (language_defn::print_type): Add variable names in
3090 declaration, and update header comment.
3091
5399db93
AB
30922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3093
3094 * ada-lang.c (ada_language::demangle): Rename to...
3095 (ada_language::demangle_symbol): ...this.
3096 * c-lang.c (cplus_language::demangle): Rename to...
3097 (cplus_language::demangle_symbol): ...this.
3098 * d-lang.c (d_language::demangle): Rename to...
3099 (d_language::demangle_symbol): ...this.
3100 * f-lang.c (f_language::demangle): Rename to...
3101 (f_language::demangle_symbol): ...this.
3102 * go-lang.c (go_language::demangle): Rename to...
3103 (go_language::demangle_symbol): ...this.
3104 * language.c (language_demangle): Update call to demangle_symbol.
3105 (auto_or_unknown_language::demangle): Rename to...
3106 (auto_or_unknown_language::demangle_symbol): ...this.
3107 * language.h (language_defn::demangle): Rename to...
3108 (language_defn::demangle_symbol): ...this.
3109 * objc-lang.c (objc_language::demangle): Rename to...
3110 (objc_language::demangle_symbol): ...this.
3111 * rust-lang.c (rust_language::demangle): Rename to...
3112 (rust_language::demangle_symbol): ...this.
3113
4b2f86ef
AB
31142020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3115
3116 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
3117 (iterate_over_file_blocks): Replace use of macro with the macros
3118 definition.
3119
e74b39de
AB
31202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
3123 * valprint.c (maybe_print_array_index): Replace use of macro with
3124 the macros definition.
3125
00c696a6
AB
31262020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3127
3128 * ada-lang.c (ada_language::print_array_index): Call value_print
3129 directly.
3130 * language.c (language_defn::print_array_index): Likewise.
3131 * language.h (LA_VALUE_PRINT): Delete.
3132 * valprint.c (value_print): Call value_print on the
3133 current_language directly.
3134
d3b67c56
AB
31352020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3136
3137 * language.h (LA_PRINT_TYPEDEF): Delete.
3138 * typeprint.c (typedef_print): Call print_typedef directly on the
3139 current_language object.
3140
790e2a12
AB
31412020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3142
3143 * m2-exp.y (m2_parse): Rename to...
3144 (m2_language::parser): ...this. Update function signature.
3145 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
3146 (m2_op_print): Rename to...
3147 (m2_language::op_print_tab): ...this, and make const.
3148 (exp_descriptor_modula2): Rename to...
3149 (m2_language::exp_descriptor_modula2): ...this.
3150 (class m2_language): Move to m2-lang.h.
3151 (m2_language::language_arch_info): New function, moved out of
3152 class declaration.
3153 (m2_language::printchar): New function, body from m2_printchar.
3154 (m2_language::printstr): New function, moved out of class
3155 declaration.
3156 (m2_language::emitchar): Likewise.
3157 * m2-lang.h (m2_parse): Delete declaration.
3158 (m2_print_typedef): Delete declaration.
3159 (m2_value_print_inner): Delete declaration.
3160 (class m2_language): Class declaration moved from m2-lang.c,
3161 larger functions are left in m2-lang.c.
3162 * m2-typeprint.c (m2_print_typedef): Rename to...
3163 (m2_language::print_typedef): ...this, and update function
3164 signature.
3165 * m2-valprint.c (m2_value_print_inner): Rename to...
3166 (m2_language::value_print_inner): ...this, replace use of
3167 LA_PRINT_STRING with a direct call to printstr member function,
3168 and update recursive call.
3169
b01175fc
AB
31702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
3171
3172 * language.c (default_is_string_type_p): Delete, implementation
3173 moved into auto_or_unknown_language::is_string_type_p.
3174 (unk_op_print_tab): Moved into
3175 auto_or_unknown_language::opcode_print_table.
3176 (unknown_language_arch_info): Delete, implementation moved into
3177 auto_or_unknown_language::language_arch_info.
3178 (class auto_or_unknown_language): New class, member functions
3179 copied from unknown_language class, with some updates.
3180 (class unknown_language): Most member functions moved into
3181 auto_or_unknown_language class. Inherit from
3182 auto_or_unknown_language class.
3183 (class auto_language): Inherit from auto_or_unknown_language.
3184 Delete most member functions.
3185
1a97fe8c
HD
31862020-10-22 Hannes Domani <ssbssa@yahoo.de>
3187
3188 * stabsread.c (read_member_functions): Remove gdb_assert.
3189
6b9d0dfd
HD
31902020-10-22 Hannes Domani <ssbssa@yahoo.de>
3191
3192 * gdbtypes.c (init_complex_type): Check target type name.
3193
4b4bb603
SM
31942020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * target-debug.h (target_debug_print_struct_target_ops_p):
3197 Remove.
3198 (target_debug_print_async_callback_ftype_p): Remove.
3199 (target_debug_print_struct_trace_state_variable_p): Remove.
3200 (target_debug_print_struct_traceframe_info_p): Remove.
3201 (target_debug_print_VEC__btrace_block_s__pp): Remove.
3202 (target_debug_print_enum_btrace_format): Remove.
3203 (target_debug_print_enum_info_proc_what): Remove.
3204 (target_debug_print_thread_info_pp): Remove.
3205
24f5300a
SM
32062020-10-22 Simon Marchi <simon.marchi@efficios.com>
3207
3208 * target.h (struct target_ops) <make_corefile_notes>:
3209 Change return type to unique pointer.
3210 * target.c (dummy_make_corefile_notes): Likewise.
3211 * exec.c (struct exec_target) <make_corefile_notes>:
3212 Likewise.
3213 (exec_target::make_corefile_notes): Likewise.
3214 * procfs.c (class procfs_target) <make_corefile_notes>:
3215 Likewise.
3216 (procfs_do_thread_registers): Adjust to unique pointer.
3217 (struct procfs_corefile_thread_data): Add constructor.
3218 <note_data>: Change type to unique pointer.
3219 (procfs_corefile_thread_callback): Adjust to unique pointer.
3220 (procfs_target::make_corefile_notes): Change return type to
3221 unique pointer.
3222 * target-delegates.c: Re-generate.
3223 * gcore.c (write_gcore_file_1): Adjust.
3224 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
3225 New.
3226
5fb4027f
TV
32272020-10-22 Tom de Vries <tdevries@suse.de>
3228
3229 * block.c (find_block_in_blockvector): Make sure the returned block
3230 contains pc.
3231
4a636814
SM
32322020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
3233
3234 PR gdb/26693
3235 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
3236 parameter.
3237 (load_cu): Pass existing CU.
3238 (process_imported_unit_die): Likewise.
3239 (follow_die_offset): Likewise.
3240
1bd57575
LM
32412020-10-22 Luis Machado <luis.machado@linaro.org>
3242
3243 * corelow.c (core_target::xfer_partial): Also check for an empty
3244 m_core_unavailable_mappings vector.
3245
6b4c676c
AB
32462020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
3249 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
3250 * f-exp.y (arglist): Allow for a series of subranges.
3251 (subrange): Add cases for subranges with strides.
3252 * f-lang.c (value_f90_subarray): Catch use of array strides and
3253 throw an error.
3254 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
3255
f2d8e4c5
AB
32562020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3257
3258 * expprint.c (print_subexp_standard): Change enum range_type to
3259 range_flag and rename variables to match.
3260 (dump_subexp_body_standard): Likewise.
3261 * expression.h (enum range_type): Rename to...
3262 (enum range_flag): ...this.
3263 (range_types): Rename to...
3264 (range_flags): ...this.
3265 * f-lang.c (value_f90_subarray): Change enum range_type to
3266 range_flag and rename variables to match.
3267 * parse.c (operator_length_standard): Likewise.
3268 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
3269 range_type to range_flag.
3270 * rust-lang.c (rust_evaluate_funcall): Likewise.
3271 (rust_range): Likewise.
3272 (rust_compute_range): Likewise.
3273 (rust_subscript): Likewise.
3274
2f1b18db
AB
32752020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * expprint.c (print_subexp_standard): Update to reflect changes to
3278 enum range_type.
3279 (dump_subexp_body_standard): Likewise.
3280 * expression.h (enum range_type): Convert to a bit field enum, and
3281 make the enum unsigned.
3282 * f-exp.y (subrange): Update to reflect changes to enum
3283 range_type.
3284 * f-lang.c (value_f90_subarray): Likewise.
3285 * parse.c (operator_length_standard): Likewise.
3286 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
3287 * rust-lang.c (rust_range): Likewise.
3288 (rust_compute_range): Likewise.
3289 (rust_subscript): Likewise.
3290
a46d1843
SM
32912020-10-21 Simon Marchi <simon.marchi@efficios.com>
3292
3293 * infrun.c (displaced_step_in_progress_thread): Fix comment.
3294 (displaced_step_in_progress): Fix comment.
3295
c21f37a8
SM
32962020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
3297
3298 * gdbarch.sh (make_corefile_notes): Return unique pointer.
3299 * gdbarch.c: Re-generate.
3300 * gdbarch.h: Re-generate.
3301 * gcore.c (write_gcore_file_1): Adjust.
3302 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
3303 constructor.
3304 <note_data>: Change type to unique pointer.
3305 <abort_iteration>: Change type to bool.
3306 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
3307 (fbsd_collect_thread_registers): Return void, adjust.
3308 (struct fbsd_corefile_thread_data): Add construtor.
3309 <note_data>: Change type to unique pointer.
3310 (fbsd_corefile_thread): Adjust.
3311 (fbsd_make_corefile_notes): Return unique pointer, adjust.
3312 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
3313 to unique pointer, adjust.
3314 (struct linux_collect_regset_section_cb_data): Add constructor.
3315 <note_data>: Change type to unique pointer.
3316 <abort_iteration>: Change type to bool.
3317 (linux_collect_thread_registers): Return void, adjust.
3318 (struct linux_corefile_thread_data): Add constructor.
3319 <note_data>: Change type to unique pointer.
3320 (linux_corefile_thread): Adjust.
3321 (linux_make_corefile_notes): Return unique pointer, adjust.
3322
07fbbd01
SM
33232020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3324
3325 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
3326 * gdbarch.c: Re-generate.
3327 * gdbarch.h: Re-generate.
3328 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
3329 bool.
3330 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
3331 Likewise.
3332 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
3333 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
3334 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
3335 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
3336
39535193
SM
33372020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * gdbarch.sh: Make generated predicates return bool.
3340 * gdbarch.c: Re-generate.
3341 * gdbarch.h: Re-generate.
3342
ad523d01
TT
33432020-10-20 Tom Tromey <tom@tromey.com>
3344
3345 * varobj-iter.h (struct varobj_item): Remove typedef.
3346
c4464ade
SM
33472020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3348
3349 * infrun.c (currently_stepping): Change int to bool
3350 (maybe_software_singlestep): Likewise.
3351 (show_stop_on_solib_events): Likewise.
3352 (stepping_past_nonsteppable_watchpoint): Likewise.
3353 (displaced_step_in_progress_any_inferior): Likewise.
3354 (displaced_step_in_progress_thread): Likewise.
3355 (keep_going_stepped_thread): Likewise.
3356 (thread_still_needs_step_over): Likewise.
3357 (start_step_over): Likewise.
3358 (do_target_resume): Likewise.
3359 (resume_1): Likewise.
3360 (clear_proceed_status): Likewise.
3361 (thread_still_needs_step_over_bp): Likewise.
3362 (proceed): Likewise.
3363 (switch_back_to_stepped_thread): Likewise.
3364 (adjust_pc_after_break): Likewise.
3365 (stepped_in_from): Likewise.
3366 (handle_stop_requested): Likewise.
3367 (handle_syscall_event): Likewise.
3368 (handle_no_resumed): Likewise.
3369 (handle_inferior_event): Likewise.
3370 (finish_step_over): Likewise.
3371 (handle_signal_stop): Likewise.
3372 (process_event_stop_test): Likewise.
3373
2eb20436
SM
33742020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
3375
3376 * infrun.c (get_displaced_stepping_state): Fix comment.
3377
e0c45ded
AS
33782020-10-20 Andreas Schwab <schwab@linux-m68k.org>
3379
3380 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
3381
22cc388e
TT
33822020-10-19 Tom Tromey <tromey@adacore.com>
3383
3384 PR tui/26719
3385 * tui/tui-winsource.h (struct tui_source_window_base)
3386 <refresh_window>: Rename from refresh_pad.
3387 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3388 Rename from refresh_pad.
3389 (tui_source_window_base::show_source_content)
3390 (tui_source_window_base::do_scroll_horizontal): Update.
3391
3c6eb4d4
TBA
33922020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3393
3394 * thread.c (_initialize_thread): Fine-tune the help text of
3395 'info threads'.
3396
26703721
TBA
33972020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3398
3399 * frame.c: Remove the unused 'uinteger_option_def' type alias.
3400
61c26be8
MS
34012020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
3402
3403 * breakpoint.c (handle_jit_event): Add an argument, change how
3404 `jit_event_handler` is called.
3405
932539d7
TT
34062020-10-17 Tom Tromey <tom@tromey.com>
3407
3408 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
3409 (scan_xcoff_symtab): Update.
3410 * psymtab.h (class psymtab_storage) <global_psymbols,
3411 static_psymbols, current_global_psymbols,
3412 current_static_psymbols>: Remove.
3413 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
3414 (match_partial_symbol, lookup_partial_symbol): Update.
3415 (print_partial_symbols): Change parameters.
3416 (dump_psymtab, recursively_search_psymtabs)
3417 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
3418 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
3419 (concat): Remove.
3420 (end_psymtab_common): Simplify.
3421 (append_psymbol_to_list): Change parameters.
3422 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
3423 (init_psymbol_list): Simplify.
3424 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3425 * psympriv.h (struct partial_symtab) <empty>: New method.
3426 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
3427 Remove.
3428 <global_psymbols, static_psymbols>: New members.
3429 <add_psymbol>: New methods.
3430 (add_psymbol_to_list): Don't declare.
3431 (psymbol_placement): Move earlier.
3432 * mdebugread.c (parse_partial_symbols): Update.
3433 (handle_psymbol_enumerators): Change parameters.
3434 (mdebug_expand_psymtab): Update.
3435 * dwarf2/read.c (process_psymtab_comp_unit_reader)
3436 (add_partial_symbol): Update.
3437 * dwarf2/index-write.c (write_psymbols): Change parameters.
3438 (write_one_signatured_type): Update.
3439 (recursively_count_psymbols): Update.
3440 (recursively_write_psymbols): Update.
3441 (class debug_names) <recursively_write_psymbols>: Update.
3442 <write_psymbols>: Change parameters.
3443 <write_one_signatured_type>: Update.
3444 * dbxread.c (read_dbx_symtab): Update.
3445 (dbx_end_psymtab): Use partial_symtab::empty.
3446 * ctfread.c (struct ctf_context) <pst>: New member.
3447 (create_partial_symtab): Set it.
3448 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
3449 (scan_partial_symbols): Use the psymtab's context. Update.
3450
cfabbd35
TT
34512020-10-17 Tom Tromey <tom@tromey.com>
3452
3453 * valprint.c (generic_value_print): Remove comment.
3454 * m2-valprint.c (m2_value_print_inner): Remove comment.
3455 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
3456 type.
3457
520596f2
TV
34582020-10-17 Tom de Vries <tdevries@suse.de>
3459
3460 PR symtab/26317
3461 * source.c (select_source_symtab): Handling sal.symtab == NULL for
3462 symbol main.
3463
76547ab3
TV
34642020-10-14 Tom de Vries <tdevries@suse.de>
3465
3466 PR gdb/26733
3467 * solib.c (solib_contains_address_p): Handle
3468 'solib->sections == nullptr'.
3469
d3a07122
SM
34702020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3471
3472 PR gdb/26642
3473 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
3474 target can't do async.
3475 * target.c (target_wait): Assert that we don't pass
3476 TARGET_WNOHANG to a target that can't async.
3477
1b71cfcf
KR
34782020-10-13 Kamil Rytarowski <n54@gmx.com>
3479
3480 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
3481 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
3482 * alpha-bsd-nat.c: Adjust include.
3483 * alpha-bsd-tdep.h: Adjust comment.
3484 * alpha-nbsd-tdep.c: Rename to ...
3485 * alpha-netbsd-tdep.c: ... this, adjust include.
3486 * amd64-nbsd-nat.c: Rename to ...
3487 * amd64-netbsd-nat.c: ... this, adjust include.
3488 * amd64-nbsd-tdep.c: Rename to ...
3489 * amd64-netbsd-tdep.c: ... this, adjust include.
3490 * amd64-tdep.h: Adjust include.
3491 * arm-nbsd-nat.c: Rename to ...
3492 * arm-netbsd-nat.c: ... this, adjust include.
3493 * arm-nbsd-tdep.c: Rename to ...
3494 * arm-netbsd-tdep.c: ... this, adjust include.
3495 * arm-nbsd-tdep.h: Rename to ...
3496 * arm-netbsd-tdep.h: ... this, adjust include.
3497 * configure.nat: Adjust file lists.
3498 * configure.tgt: Likewise.
3499 * hppa-nbsd-nat.c: Rename to ...
3500 * hppa-netbsd-nat.c: ... this, adjust include.
3501 * hppa-nbsd-tdep.c: Rename to ...
3502 * hppa-netbsd-tdep.c: ... this, adjust include.
3503 * i386-nbsd-nat.c: Rename to ...
3504 * i386-netbsd-nat.c: ... this, adjust include.
3505 * i386-nbsd-tdep.c: Rename to ...
3506 * i386-netbsd-tdep.c: ... this, adjust include.
3507 * m68k-bsd-nat.c: Adjust include.
3508 * mips-nbsd-nat.c: Rename to ...
3509 * mips-netbsd-nat.c: ... this, adjust include.
3510 * mips-nbsd-tdep.c: Rename to ...
3511 * mips-netbsd-tdep.c: ... this, adjust include.
3512 * mips-nbsd-tdep.h: Rename to ...
3513 * mips-netbsd-tdep.h: ... this.
3514 * nbsd-nat.c: Rename to ...
3515 * netbsd-nat.c: ... this, adjust include.
3516 * nbsd-nat.h: Rename to ...
3517 * netbsd-nat.h: ... this, adjust include.
3518 * nbsd-tdep.c: Rename to ...
3519 * netbsd-tdep.c: ... this, adjust include.
3520 * nbsd-tdep.h: Rename to ...
3521 * netbsd-tdep.h: ... this.
3522 * ppc-nbsd-nat.c: Rename to ...
3523 * ppc-netbsd-nat.c: ... this, adjust include.
3524 * ppc-nbsd-tdep.c: Rename to ...
3525 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
3526 * ppc-nbsd-tdep.h: Rename to ...
3527 * ppc-netbsd-tdep.h: ... this.
3528 * sh-nbsd-nat.c: Rename to ...
3529 * sh-netbsd-nat.c: ... this, adjust include.
3530 * sh-nbsd-tdep.c: Rename to ...
3531 * sh-netbsd-tdep.c: ... this, adjust include.
3532 * sparc-nbsd-nat.c: Rename to ...
3533 * sparc-netbsd-nat.c: ... this.
3534 * sparc-nbsd-tdep.c: Rename to ...
3535 * sparc-netbsd-tdep.c: ... this, adjust include.
3536 * sparc64-nbsd-nat.c: Rename to ...
3537 * sparc64-netbsd-nat.c: ... this.
3538 * sparc64-nbsd-tdep.c: Rename to ...
3539 * sparc64-netbsd-tdep.c: ... this, adjust include.
3540 * sparc64-tdep.h: Adjust comment.
3541 * vax-bsd-nat.c: Adjust include.
3542 * vax-nbsd-tdep.c: Rename to ...
3543 * vax-netbsd-tdep.c: ... this, adjust include.
3544
d7a78e5c
TT
35452020-10-12 Tom Tromey <tom@tromey.com>
3546
3547 * target.h (struct target_ops) <get_section_table>: Update.
3548 (target_get_section_table): Update.
3549 * target.c (target_get_section_table, target_section_by_addr)
3550 (memory_xfer_partial_1): Update.
3551 * target-section.h (target_section_table): Now an alias.
3552 * target-delegates.c: Rebuild.
3553 * target-debug.h (target_debug_print_target_section_table_p):
3554 Rename from target_debug_print_struct_target_section_table_p.
3555 * symfile.c (build_section_addr_info_from_section_table): Update.
3556 * solib.c (solib_map_sections, solib_contains_address_p): Update.
3557 * solib-svr4.c (scan_dyntag): Update.
3558 * solib-dsbt.c (scan_dyntag): Update.
3559 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3560 Update.
3561 * record-full.c (record_full_core_target::xfer_partial): Update.
3562 * progspace.h (struct program_space) <target_sections>: Update.
3563 * exec.h (print_section_info): Update.
3564 * exec.c (exec_target::close, build_section_table)
3565 (add_target_sections, add_target_sections_of_objfile)
3566 (remove_target_sections, exec_on_vfork)
3567 (section_table_available_memory)
3568 (section_table_xfer_memory_partial)
3569 (exec_target::get_section_table, exec_target::xfer_partial)
3570 (print_section_info, set_section_command)
3571 (exec_set_section_address, exec_target::has_memory): Update.
3572 * corelow.c (core_target::build_file_mappings)
3573 (core_target::xfer_partial, core_target::info_proc_mappings)
3574 (core_target::info_proc_mappings): Update.
3575 * bfd-target.c (class target_bfd): Update
3576
eda214ce
TT
35772020-10-12 Tom Tromey <tom@tromey.com>
3578
3579 * progspace.c (program_space::~program_space): Don't call
3580 clear_section_table.
3581 * exec.h (clear_section_table): Don't declare.
3582 * exec.c (exec_target::close): Update.
3583 (clear_section_table): Remove.
3584
91840ee3
TT
35852020-10-12 Tom Tromey <tom@tromey.com>
3586
3587 * exec.c (add_target_sections_of_objfile): Simplify.
3588
2d128614
TT
35892020-10-12 Tom Tromey <tom@tromey.com>
3590
3591 * solib.c (solib_map_sections): Update.
3592 * record-full.c (record_full_core_open_1): Update.
3593 * exec.h (build_section_table): Return a target_section_table.
3594 * exec.c (exec_file_attach): Update.
3595 (build_section_table): Return a target_section_table.
3596 * corelow.c (core_target::core_target): Update.
3597 * bfd-target.c (target_bfd::target_bfd): Update.
3598
bb2a6777
TT
35992020-10-12 Tom Tromey <tom@tromey.com>
3600
3601 * target.c (target_section_by_addr, memory_xfer_partial_1):
3602 Update.
3603 * target-section.h (struct target_section_table): Use
3604 std::vector.
3605 * symfile.h (build_section_addr_info_from_section_table): Take a
3606 target_section_table.
3607 * symfile.c (build_section_addr_info_from_section_table): Take a
3608 target_section_table.
3609 * solist.h (struct so_list) <sections>: Change type.
3610 <sections_end>: Remove.
3611 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
3612 (solib_contains_address_p): Update.
3613 * solib-svr4.c (scan_dyntag): Update.
3614 * solib-dsbt.c (scan_dyntag): Update.
3615 * remote.c (remote_target::remote_xfer_live_readonly_partial):
3616 Update.
3617 * record-full.c (record_full_core_start, record_full_core_end):
3618 Remove.
3619 (record_full_core_sections): New global.
3620 (record_full_core_open_1, record_full_core_target::xfer_partial):
3621 Update.
3622 * exec.h (build_section_table, section_table_xfer_memory_partial)
3623 (add_target_sections): Take a target_section_table.
3624 * exec.c (exec_file_attach, clear_section_table): Update.
3625 (resize_section_table): Remove.
3626 (build_section_table, add_target_sections): Take a
3627 target_section_table.
3628 (add_target_sections_of_objfile, remove_target_sections)
3629 (exec_on_vfork): Update.
3630 (section_table_available_memory): Take a target_section_table.
3631 (section_table_read_available_memory): Update.
3632 (section_table_xfer_memory_partial): Take a target_section_table.
3633 (print_section_info, set_section_command)
3634 (exec_set_section_address, exec_target::has_memory): Update.
3635 * corelow.c (class core_target) <m_core_section_table,
3636 m_core_file_mappings>: Remove braces.
3637 <~core_target>: Remove.
3638 (core_target::core_target): Update.
3639 (core_target::~core_target): Remove.
3640 (core_target::build_file_mappings)
3641 (core_target::xfer_memory_via_mappings)
3642 (core_target::xfer_partial, core_target::info_proc_mappings):
3643 Update.
3644 * bfd-target.c (target_bfd::xfer_partial): Update.
3645 (target_bfd::target_bfd): Update.
3646 (target_bfd::~target_bfd): Remove.
3647
7b466b10
TT
36482020-10-12 Tom Tromey <tom@tromey.com>
3649
3650 * target.h (struct target_section, struct target_section_table):
3651 Move to target-section.h.
3652 * target-section.h: New file.
3653
87a37e5e
PA
36542020-10-12 Pedro Alves <pedro@palves.net>
3655
3656 PR exp/26602
3657 * valops.c (struct struct_field_searcher): New.
3658 (update_search_result): Rename to ...
3659 (struct_field_searcher::update_result): ... this. Simplify
3660 prototype. Record all found fields.
3661 (do_search_struct_field): Rename to ...
3662 (struct_field_searcher::search): ... this. Simplify prototype.
3663 Maintain stack of visited baseclass path. Call update_result for
3664 fields too. Keep searching fields in baseclasses instead of
3665 stopping at the first found field.
3666 (search_struct_field): Use struct_field_searcher. When looking
3667 for fields, report ambiguous access attempts.
3668
9370fd51
AB
36692020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * frame.c (inside_main_func): Check full symbols as well as
3672 minimal symbols.
3673
59c8a30b
JB
36742020-10-09 Joel Brobecker <brobecker@adacore.com>
3675
3676 * ada-lang.c (advance_wild_match): Rewrite the function's
3677 description. Change the type of target0, t0 and t1 to char.
3678
7c184d33
TT
36792020-10-09 Tom Tromey <tromey@adacore.com>
3680
3681 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
3682
5c4258f4
TT
36832020-10-09 Tom Tromey <tromey@adacore.com>
3684
3685 * ada-lang.h (ada_encode): Return std::string.
3686 * ada-lang.c (ada_encode_1): Return std::string.
3687 (ada_encode): Likewise.
3688 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
3689 Update.
3690 * ada-exp.y (block_lookup, write_var_or_type): Update.
3691
3d87245c
HD
36922020-10-09 Hannes Domani <ssbssa@yahoo.de>
3693
3694 PR exp/26714
3695 * printcmd.c (print_formatted): Handle void results as
3696 unformatted prints.
3697
bbb826f5
AB
36982020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3699
3700 * arch/aarch32.c (aarch32_create_target_description): Release the
3701 target_desc_up as late as possible.
3702 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3703 * arch/amd64.c (amd64_create_target_description): Likewise.
3704 * arch/arc.c (arc_create_target_description): Return a
3705 target_desc_up, don't release it.
3706 * arch/arc.h (arc_create_target_description): Update declaration.
3707 (arc_lookup_target_description): Move target_desc_up into the
3708 cache, and return a borrowed pointer.
3709 * arch/arm.c (arm_create_target_description): Release the
3710 target_desc_up as late as possible.
3711 * arch/i386.c (i386_create_target_description): Likewise.
3712 * arch/riscv.h (riscv_create_target_description): Update
3713 declaration to match definition.
3714 * arch/tic6x.c (tic6x_create_target_description): Release the
3715 target_desc_up as late as possible.
3716
361cb219
AB
37172020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3718
3719 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
3720 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
3721
f5c4b229
JV
37222020-10-09 Jan Vrany <jan.vrany@labware.com>
3723
3724 * source.c (directory_command): Notify observers that "directories"
3725 parameter has changed.
3726
b2701685
TT
37272020-10-08 Tom Tromey <tom@tromey.com>
3728
3729 * cli/cli-cmds.c (print_disassembly): Style function name and
3730 addresses. Add _() wrappers.
3731
ada508b6
SV
37322020-10-08 Shahab Vahedi <shahab@synopsys.com>
3733
3734 * NEWS: Mention ARC support in GDBserver.
3735
51a948fd
AB
37362020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * arch/aarch32.c (aarch32_create_target_description): Release
3739 unique_ptr returned from allocate_target_description.
3740 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3741 * arch/amd64.c (amd64_create_target_description): Likewise.
3742 * arch/arc.c (arc_create_target_description): Likewise.
3743 * arch/arm.c (arm_create_target_description): Likewise.
3744 * arch/i386.c (i386_create_target_description): Likewise.
3745 * arch/riscv.c (riscv_create_target_description): Update return
3746 type. Handle allocate_target_description returning a unique_ptr.
3747 (riscv_lookup_target_description): Update to handle unique_ptr.
3748 * arch/tic6x.c (tic6x_create_target_description): Release
3749 unique_ptr returned from allocate_target_description.
3750 * features/microblaze-with-stack-protect.c: Regenerate.
3751 * features/microblaze.c: Regenerate.
3752 * features/mips-dsp-linux.c: Regenerate.
3753 * features/mips-linux.c: Regenerate.
3754 * features/mips64-dsp-linux.c: Regenerate.
3755 * features/mips64-linux.c: Regenerate.
3756 * features/nds32.c: Regenerate.
3757 * features/nios2.c: Regenerate.
3758 * features/or1k.c: Regenerate.
3759 * features/rs6000/powerpc-32.c: Regenerate.
3760 * features/rs6000/powerpc-32l.c: Regenerate.
3761 * features/rs6000/powerpc-403.c: Regenerate.
3762 * features/rs6000/powerpc-403gc.c: Regenerate.
3763 * features/rs6000/powerpc-405.c: Regenerate.
3764 * features/rs6000/powerpc-505.c: Regenerate.
3765 * features/rs6000/powerpc-601.c: Regenerate.
3766 * features/rs6000/powerpc-602.c: Regenerate.
3767 * features/rs6000/powerpc-603.c: Regenerate.
3768 * features/rs6000/powerpc-604.c: Regenerate.
3769 * features/rs6000/powerpc-64.c: Regenerate.
3770 * features/rs6000/powerpc-64l.c: Regenerate.
3771 * features/rs6000/powerpc-7400.c: Regenerate.
3772 * features/rs6000/powerpc-750.c: Regenerate.
3773 * features/rs6000/powerpc-860.c: Regenerate.
3774 * features/rs6000/powerpc-altivec32.c: Regenerate.
3775 * features/rs6000/powerpc-altivec32l.c: Regenerate.
3776 * features/rs6000/powerpc-altivec64.c: Regenerate.
3777 * features/rs6000/powerpc-altivec64l.c: Regenerate.
3778 * features/rs6000/powerpc-e500.c: Regenerate.
3779 * features/rs6000/powerpc-e500l.c: Regenerate.
3780 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
3781 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
3782 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
3783 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
3784 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
3785 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
3786 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
3787 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
3788 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
3789 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
3790 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
3791 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
3792 * features/rs6000/powerpc-vsx32.c: Regenerate.
3793 * features/rs6000/powerpc-vsx32l.c: Regenerate.
3794 * features/rs6000/powerpc-vsx64.c: Regenerate.
3795 * features/rs6000/powerpc-vsx64l.c: Regenerate.
3796 * features/rs6000/rs6000.c: Regenerate.
3797 * features/rx.c: Regenerate.
3798 * features/s390-gs-linux64.c: Regenerate.
3799 * features/s390-linux32.c: Regenerate.
3800 * features/s390-linux32v1.c: Regenerate.
3801 * features/s390-linux32v2.c: Regenerate.
3802 * features/s390-linux64.c: Regenerate.
3803 * features/s390-linux64v1.c: Regenerate.
3804 * features/s390-linux64v2.c: Regenerate.
3805 * features/s390-te-linux64.c: Regenerate.
3806 * features/s390-tevx-linux64.c: Regenerate.
3807 * features/s390-vx-linux64.c: Regenerate.
3808 * features/s390x-gs-linux64.c: Regenerate.
3809 * features/s390x-linux64.c: Regenerate.
3810 * features/s390x-linux64v1.c: Regenerate.
3811 * features/s390x-linux64v2.c: Regenerate.
3812 * features/s390x-te-linux64.c: Regenerate.
3813 * features/s390x-tevx-linux64.c: Regenerate.
3814 * features/s390x-vx-linux64.c: Regenerate.
3815 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
3816 from allocate_target_description.
3817 * target-descriptions.c (allocate_target_description): Update
3818 return type.
3819 (print_c_tdesc::visit_pre): Release unique_ptr returned from
3820 allocate_target_description.
3821
485c47e5
TT
38222020-10-07 Tom Tromey <tromey@adacore.com>
3823
3824 * unittests/search-memory-selftests.c: New file.
3825 * Makefile.in (SELFTESTS_SRCS): Add
3826 unittests/search-memory-selftests.c.
3827
3a135a91
TT
38282020-10-07 Tom Tromey <tromey@adacore.com>
3829
3830 PR gdb/16930:
3831 * findcmd.c (_initialize_mem_search): Mention that the range is
3832 inclusive.
3833
4a72de73
TT
38342020-10-07 Tom Tromey <tromey@adacore.com>
3835
3836 * target.h (simple_search_memory): Don't declare.
3837 * target.c (simple_search_memory): Move to gdbsupport.
3838 (default_search_memory): Update.
3839 * remote.c (remote_target::search_memory): Update.
3840
a038ffd8
SM
38412020-10-07 Simon Marchi <simon.marchi@efficios.com>
3842
3843 * Makefile.in (COMPILE): Add CXXFLAGS.
3844 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
3845 (check-headers): Add CXXFLAGS.
3846
cc463201
AK
38472020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
3848
3849 * arc-linux-tdep.h: New file.
3850 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
3851 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
3852 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
3853 arc_linux_gregset, arc_linux_v2_regset,
3854 arc_linux_iterate_over_regset_sections,
3855 arc_linux_core_read_description): Implement.
3856 (arc_linux_init_osabi): Set iterate_over_regset_sections.
3857 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
3858 (arc_gdbarch_features_create): Add.
3859 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
3860
e4bd363f
SV
38612020-10-07 Shahab Vahedi <shahab@synopsys.com>
3862
3863 * arch/arc.h: Rename "arc_gdbarch_features" to
3864 "arc_arch_features".
3865 * arc-tdep.h: Likewise.
3866 * arc-tdep.c: Likewise.
3867
b68bef99
TBA
38682020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3869
3870 * infcmd.c (attach_command): Remove the redundant call to
3871 `clear_proceed_status`.
3872
4641551a
KR
38732020-10-07 Kamil Rytarowski <n54@gmx.com>
3874
3875 * nat/netbsd-nat.c (write_memory, read_memory): Update.
3876
91e5e8db
KR
38772020-10-07 Kamil Rytarowski <n54@gmx.com>
3878
3879 * nat/netbsd-nat.c (write_memory, read_memory): Add.
3880 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
3881 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
3882
64c03bdb
SM
38832020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
3884
3885 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
3886 (_initialize_break_catch_sig): Don't allocate array.
3887
31a8f60f
AB
38882020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
3889
3890 * symtab.c (find_pc_line): Return unmapped addresses when the
3891 requested address is also unmapped.
3892
9e6dbd8b
SM
38932020-10-05 Simon Marchi <simon.marchi@efficios.com>
3894
3895 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
3896 tui/tui-out.h.
3897
a1d217e8
SM
38982020-10-05 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * amd64-windows-tdep.c (amd64_windows_return_value): Use
3901 type::is_vector instead of TYPE_VECTOR.
3902
7d144117
SM
39032020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
3904
3905 * auto-load.c (auto_load_objfile_script_1): Don't use
3906 debugfile_holder as temporary variable when stripping drive
3907 letter.
3908
cd096ec8
HD
39092020-10-05 Hannes Domani <ssbssa@yahoo.de>
3910
3911 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
3912 Add TYPE_CODE_COMPLEX.
3913 (amd64_windows_return_value): Fix types returned via XMM0.
3914
b58e7f72
AH
39152020-10-05 Alan Hayward <alan.hayward@arm.com>
3916
3917 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
3918 AArch64/ARM maintainers.
3919
8d378f27
SM
39202020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
3921
3922 * NEWS: Mention set/show debug event-loop.
3923
d5519913
TT
39242020-10-02 Tom Tromey <tromey@adacore.com>
3925
3926 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
3927 REG_EXTENDED.
3928
18b67edc
SM
39292020-10-02 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
3932 * procfs.c (procfs_inferior_created): Remove.
3933 (_initialize_procfs): Don't register procfs_inferior_created.
3934
6b01403b
SM
39352020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3936
3937 * async-event.c (invoke_async_signal_handlers): Add debug
3938 print.
3939 (check_async_event_handlers): Likewise.
3940 * event-top.c (show_debug_event_loop): New function.
3941 (_initialize_event_top): Register "set debug event-loop"
3942 setting.
3943
ba988419
SM
39442020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3945
3946 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
3947 * debug.h: Remove.
3948 * infrun.c: Include gdbsupport/common-debug.h.
3949 * linux-nat.c: Likewise.
3950
db20ebdf
SM
39512020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3952
3953 * async-event.h (create_async_signal_handler): Add name
3954 parameter.
3955 (create_async_event_handler): Likewise.
3956 * async-event.c (struct async_signal_handler) <name>: New field.
3957 (struct async_event_handler) <name>: New field.
3958 (create_async_signal_handler): Assign name.
3959 (create_async_event_handler): Assign name.
3960 * event-top.c (async_init_signals): Pass name when creating
3961 handler.
3962 * infrun.c (_initialize_infrun): Likewise.
3963 * record-btrace.c (record_btrace_push_target): Likewise.
3964 * record-full.c (record_full_open): Likewise.
3965 * remote-notif.c (remote_notif_state_allocate): Likewise.
3966 * remote.c (remote_target::open_1): Likewise.
3967 * tui/tui-win.c (tui_initialize_win): Likewise.
3968
2554f6f5
SM
39692020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3970
3971 * async-event.c (initialize_async_signal_handlers): Pass name to
3972 add_file_handler
3973 * event-top.c (ui_register_input_event_handler): Likewise.
3974 * linux-nat.c (linux_nat_target::async): Likewise.
3975 * run-on-main-thread.c (_initialize_run_on_main_thread):
3976 Likewise
3977 * ser-base.c (reschedule): Likewise.
3978 (ser_base_async): Likewise.
3979 * tui/tui-io.c: Likewise.
3980 * top.h (struct ui) <num>: New field.
3981 * top.c (highest_ui_num): New variable.
3982 (ui::ui): Initialize num.
3983
a7aba266
SM
39842020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3985
3986 * observable.h <inferior_created>: Remove parameters. Update all
3987 listeners.
3988 * inferior.h (post_create_inferior): Remove target parameter.
3989 Update all callers.
3990
048fde1e 39912020-10-02 Nitika Achra <Nitika.Achra@amd.com>
3992
3993 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
3994 and DW_MACRO_undef_strx.
3995 (dwarf_decode_macros): Likewise
3996 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
3997 which is the value of DW_AT_str_offsets_base.
3998 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
3999 str_offsets_base.
4000
064280be
KR
40012020-10-01 Kamil Rytarowski <n54@gmx.com>
4002
4003 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
4004
6ff33035
KR
40052020-10-01 Kamil Rytarowski <n54@gmx.com>
4006
4007 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
4008 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
4009
1eb6eb79
KR
40102020-10-01 Kamil Rytarowski <n54@gmx.com>
4011
4012 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
4013
95eb9e54
TV
40142020-09-30 Tom de Vries <tdevries@suse.de>
4015
4016 PR symtab/26683
4017 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
4018
cae21f8e
TT
40192020-09-30 Tom Tromey <tromey@adacore.com>
4020
4021 * dwarf2/read.c (handle_variant): Use constant_value.
4022
529908cb
TT
40232020-09-29 Tom Tromey <tom@tromey.com>
4024
4025 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
4026 (read_file_scope, dwarf2_get_pc_bounds)
4027 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
4028 (read_structure_type, handle_struct_member_die)
4029 (read_enumeration_type, read_array_type, read_set_type)
4030 (read_tag_pointer_type, read_tag_reference_type)
4031 (read_subroutine_type, read_base_type, read_subrange_type)
4032 (read_full_die_1, partial_die_info::read)
4033 (partial_die_info::read, by, new_symbol)
4034 (dwarf2_const_value_data, dwarf2_const_value_attr)
4035 (dump_die_shallow, dwarf2_fetch_constant_bytes)
4036 (prepare_one_comp_unit): Update.
4037 * dwarf2/attribute.h (DW_UNSND): Remove.
4038
c45bc3f8
TT
40392020-09-29 Tom Tromey <tom@tromey.com>
4040
4041 * dwarf2/read.c (read_func_scope, prototyped_function_p)
4042 (read_subroutine_type, partial_die_info::read)
4043 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
4044 (dwarf2_add_member_fn): Update.
4045 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
4046 * dwarf2/attribute.c (attribute::as_boolean): New method.
4047
23dca5c3
TT
40482020-09-29 Tom Tromey <tom@tromey.com>
4049
4050 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
4051 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
4052 method.
4053 * dwarf2/attribute.c (attribute::as_virtuality): New method.
4054
52c14d11
TT
40552020-09-29 Tom Tromey <tom@tromey.com>
4056
4057 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
4058 the attribute's form.
4059
e8e5c158
TT
40602020-09-29 Tom Tromey <tom@tromey.com>
4061
4062 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
4063 (dwarf2_add_member_fn): Update.
4064 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
4065 * dwarf2/attribute.c (attribute::defaulted): New method, from
4066 is_valid_DW_AT_defaulted.
4067
d4df075e
TT
40682020-09-29 Tom Tromey <tom@tromey.com>
4069
4070 * dwarf2/read.c (dw2_get_file_names_reader)
4071 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
4072 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
4073 (dwarf2_symbol_mark_computed): Use as_unsigned.
4074 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
4075 method.
4076 <form_is_section_offset>: Update comment.
4077
bf23a268
TT
40782020-09-29 Tom Tromey <tom@tromey.com>
4079
4080 * dwarf2/read.c (dwarf2_access_attribute): Rename from
4081 dwarf2_default_access_attribute. Look up attribute.
4082 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
4083 Update.
4084
7a5f294d
TT
40852020-09-29 Tom Tromey <tom@tromey.com>
4086
4087 * dwarf2/read.c (skip_one_die): Update.
4088 (read_full_die_1): Change how reprocessing is done.
4089 (partial_die_info::read): Update.
4090 (read_attribute_value): Remove need_reprocess parameter.
4091 (read_attribute): Likewise.
4092 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
4093 New method.
4094
36d378cf
TT
40952020-09-29 Tom Tromey <tom@tromey.com>
4096
4097 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
4098 (dwarf2_const_value_attr, dump_die_shallow)
4099 (dwarf2_fetch_constant_bytes): Update.
4100 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
4101 comment.
4102 <set_address>: New method.
4103 (DW_ADDR): Remove.
4104 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
4105 (attribute::as_string, attribute::as_address): Add assert.
4106
fe56917a
TT
41072020-09-29 Tom Tromey <tom@tromey.com>
4108
4109 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
4110 (read_attribute_reprocess, read_attribute_value): Update.
4111 (read_attribute): Clear requires_reprocessing.
4112 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
4113 form_requires_reprocessing>: New methods.
4114 <string_init>: Clear requires_reprocessing.
4115 <set_unsigned_reprocess>: New method.
4116 <name>: Shrink by one bit.
4117 <requires_reprocessing>: New member.
4118 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
4119 method.
4120
414ad644
TT
41212020-09-29 Tom Tromey <tom@tromey.com>
4122
4123 * dwarf2/read.c (read_attribute_value): Update.
4124 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
4125 set_unsigned>: New methods.
4126 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
4127
1bc397c5
TT
41282020-09-29 Tom Tromey <tom@tromey.com>
4129
4130 * dwarf2/read.c (get_alignment, read_array_order)
4131 (read_attribute_value, dwarf2_const_value_attr)
4132 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
4133 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
4134 New methods.
4135 (DW_SND): Remove.
4136
630ed6b9
TT
41372020-09-29 Tom Tromey <tom@tromey.com>
4138
4139 * dwarf2/read.c (read_attribute_value, lookup_die_type)
4140 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
4141 Update.
4142 * dwarf2/attribute.h (struct attribute) <as_signature,
4143 set_signature>: New methods.
4144 (DW_SIGNATURE): Remove.
4145
9d2246fc
TT
41462020-09-29 Tom Tromey <tom@tromey.com>
4147
4148 * dwarf2/read.c (read_call_site_scope)
4149 (handle_data_member_location, dwarf2_add_member_fn)
4150 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4151 (partial_die_info::read, read_attribute_value)
4152 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
4153 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
4154 (dwarf2_symbol_mark_computed): Update.
4155 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
4156 methods.
4157 (DW_BLOCK): Remove.
4158 * dwarf2/attribute.c (attribute::form_is_block): Add
4159 DW_FORM_data16.
4160
c6481205
TT
41612020-09-29 Tom Tromey <tom@tromey.com>
4162
4163 * dwarf2/read.c (read_cutu_die_from_dwo)
4164 (read_attribute_reprocess, read_attribute_value, read_attribute)
4165 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
4166 (dwarf2_fetch_constant_bytes): Update.
4167 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
4168 <set_string_noncanonical, set_string_canonical>: New methods.
4169 <string_is_canonical>: Update comment.
4170 <canonical_string_p>: Add assert.
4171 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
4172 * dwarf2/attribute.c (attribute::form_is_string): New method.
4173 (attribute::string): Use it.
4174
3b64bf15
TT
41752020-09-29 Tom Tromey <tom@tromey.com>
4176
4177 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
4178 (dump_die_shallow): Use canonical_string_p.
4179 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
4180 method.
4181
2c830f54
TT
41822020-09-29 Tom Tromey <tom@tromey.com>
4183
4184 * dwarf2/read.c (partial_die_info::read)
4185 (dwarf2_const_value_attr, anonymous_struct_prefix, )
4186 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
4187 attribute::as_string.
4188
6c412691
TT
41892020-09-29 Tom Tromey <tom@tromey.com>
4190
4191 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4192 DW_ADDR.
4193 (attribute::string): Don't use DW_STRING.
4194 (attribute::get_ref_die_offset): Don't use DW_UNSND.
4195 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
4196
95f982e5
TT
41972020-09-29 Tom Tromey <tom@tromey.com>
4198
4199 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
4200 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4201 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
4202 * dwarf2/attribute.h (struct attribute): Rename methods.
4203 * dwarf2/attribute.c (attribute::as_address): Rename from
4204 value_as_address.
4205 (attribute::as_string): Rename from value_as_string.
4206
f800b00e
TT
42072020-09-29 Tom Tromey <tom@tromey.com>
4208
4209 * dwarf2/read.c (partial_die_info::read) <case
4210 DW_AT_linkage_name>: Use value_as_string.
4211 (dwarf2_string_attr): Use value_as_string.
4212 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4213 method.
4214 * dwarf2/attribute.c (attribute::value_as_string): New method.
4215
de38d64a
PA
42162020-09-29 Pedro Alves <pedro@palves.net>
4217
4218 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
4219 defined before using '#pragma GCC diagnostic' instead of checking
4220 __clang__.
4221
9aed480c
TT
42222020-09-28 Tom Tromey <tom@tromey.com>
4223
4224 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
4225 (handle_signal_stop): Update.
4226 * procfs.c (procfs_target::insert_watchpoint): Update.
4227 * target.h (target_have_steppable_watchpoint): Now a function.
4228
8a3ecb79
TT
42292020-09-28 Tom Tromey <tom@tromey.com>
4230
4231 * infrun.c (set_schedlock_func): Update.
4232 * target.h (target_can_lock_scheduler): Now a function.
4233
55f6301a
TT
42342020-09-28 Tom Tromey <tom@tromey.com>
4235
4236 * inferior.h (class inferior) <has_execution>: Update.
4237 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
4238 * valops.c (find_function_in_inferior)
4239 (value_allocate_space_in_inferior): Update.
4240 * top.c (kill_or_detach): Update.
4241 * target.c (target_preopen, set_target_permissions): Update.
4242 (target_has_execution_current): Remove.
4243 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
4244 Update.
4245 * solib.c (update_solib_list, reload_shared_libraries): Update.
4246 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
4247 * solib-dsbt.c (enable_break): Update.
4248 * score-tdep.c (score7_fetch_inst): Update.
4249 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
4250 Update.
4251 * remote.c (remote_target::start_remote)
4252 (remote_target::remote_check_symbols, remote_target::open_1)
4253 (remote_target::remote_detach_1, remote_target::verify_memory)
4254 (remote_target::xfer_partial, remote_target::read_description)
4255 (remote_target::get_min_fast_tracepoint_insn_len): Update.
4256 * record-full.c (record_full_open_1): Update.
4257 * record-btrace.c (record_btrace_target_open): Update.
4258 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4259 (value_nsstring): Update.
4260 * linux-thread-db.c (add_thread_db_info)
4261 (thread_db_find_new_threads_silently, check_thread_db_callback)
4262 (try_thread_db_load_1, record_thread): Update.
4263 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
4264 Update.
4265 * linux-fork.c (checkpoint_command): Update.
4266 * infrun.c (set_non_stop, set_observer_mode)
4267 (check_multi_target_resumption, for_each_just_stopped_thread)
4268 (maybe_remove_breakpoints, normal_stop)
4269 (class infcall_suspend_state): Update.
4270 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
4271 (info_program_command, attach_command): Update.
4272 * infcall.c (call_function_by_hand_dummy): Update.
4273 * inf-loop.c (inferior_event_handler): Update.
4274 * gcore.c (gcore_command, derive_heap_segment): Update.
4275 * exec.c (exec_file_command): Update.
4276 * eval.c (evaluate_subexp): Update.
4277 * compile/compile.c (compile_to_object): Update.
4278 * cli/cli-dump.c (restore_command): Update.
4279 * breakpoint.c (update_watchpoint)
4280 (update_inserted_breakpoint_locations)
4281 (insert_breakpoint_locations, get_bpstat_thread): Update.
4282 * target.h (target_has_execution): Remove macro.
4283 (target_has_execution_current): Don't declare.
4284 (target_has_execution): Rename from target_has_execution_1. Add
4285 argument default.
4286
05374cfd
TT
42872020-09-28 Tom Tromey <tom@tromey.com>
4288
4289 * mi/mi-main.c (exec_reverse_continue)
4290 (mi_cmd_list_target_features): Update.
4291 * infrun.c (set_exec_direction_func): Update.
4292 * target.c (default_execution_direction): Update.
4293 * reverse.c (exec_reverse_once): Update.
4294 * target.h (target_can_execute_reverse): Now a function.
4295
9dccd06e
TT
42962020-09-28 Tom Tromey <tom@tromey.com>
4297
4298 * tui/tui-regs.c (tui_get_register)
4299 (tui_data_window::show_registers): Update.
4300 * thread.c (scoped_restore_current_thread::restore)
4301 (scoped_restore_current_thread::scoped_restore_current_thread):
4302 Update.
4303 * regcache-dump.c (regcache_print): Update.
4304 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
4305 Update.
4306 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
4307 * mep-tdep.c (current_me_module, current_options): Update.
4308 * linux-thread-db.c (thread_db_load): Update.
4309 * infcmd.c (registers_info, info_vector_command)
4310 (info_float_command): Update.
4311 * ia64-tdep.c (ia64_frame_prev_register)
4312 (ia64_sigtramp_frame_prev_register): Update.
4313 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
4314 * gcore.c (derive_stack_segment): Update.
4315 * frame.c (get_current_frame, has_stack_frames): Update.
4316 * findvar.c (language_defn::read_var_value): Update.
4317 * arm-tdep.c (arm_pc_is_thumb): Update.
4318 * target.c (target_has_registers): Rename from
4319 target_has_registers_1.
4320 * target.h (target_has_registers): Remove macro.
4321 (target_has_registers): Rename from target_has_registers_1.
4322
841de120
TT
43232020-09-28 Tom Tromey <tom@tromey.com>
4324
4325 * windows-tdep.c (tlb_make_value): Update.
4326 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4327 * thread.c (scoped_restore_current_thread::restore)
4328 (scoped_restore_current_thread::scoped_restore_current_thread)
4329 (thread_command): Update.
4330 * stack.c (backtrace_command_1, frame_apply_level_command)
4331 (frame_apply_all_command, frame_apply_command): Update.
4332 * infrun.c (siginfo_make_value, restore_infcall_control_state):
4333 Update.
4334 * gcore.c (derive_stack_segment): Update.
4335 * frame.c (get_current_frame, has_stack_frames): Update.
4336 * auxv.c (info_auxv_command): Update.
4337 * ada-tasks.c (ada_build_task_list): Update.
4338 * target.c (target_has_stack): Rename from target_has_stack_1.
4339 * target.h (target_has_stack): Remove macro.
4340 (target_has_stack): Rename from target_has_stack_1.
4341
a739972c
TT
43422020-09-28 Tom Tromey <tom@tromey.com>
4343
4344 * target.c (target_has_memory): Rename from target_has_memory_1.
4345 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4346 * thread.c (scoped_restore_current_thread::restore)
4347 (scoped_restore_current_thread::scoped_restore_current_thread):
4348 Update.
4349 * frame.c (get_current_frame, has_stack_frames): Update.
4350 * target.h (target_has_memory): Remove macro.
4351 (target_has_memory): Rename from target_has_memory_1.
4352
5b8a4776
TT
43532020-09-28 Tom Tromey <tom@tromey.com>
4354
4355 * target.c (target_has_all_memory_1): Remove.
4356 * target.h (target_has_all_memory): Remove define.
4357 (target_has_all_memory_1): Don't declare.
4358
bd356ec6
SM
43592020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
4360
4361 * ser-base.c: Adjust comments formatting.
4362
2c72d5e5
TT
43632020-09-27 Tom Tromey <tom@tromey.com>
4364
4365 PR tui/25342:
4366 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
4367
35a98237
TT
43682020-09-27 Tom Tromey <tom@tromey.com>
4369
4370 PR tui/25342:
4371 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
4372
9e820dec
TT
43732020-09-27 Tom Tromey <tom@tromey.com>
4374
4375 * unittests/tui-selftests.c: Update.
4376 * tui/tui-winsource.h (struct tui_source_window_base)
4377 <extra_margin, show_line_number, refresh_pad>: New methods.
4378 <m_max_length, m_pad>: New members.
4379 (tui_copy_source_line): Update.
4380 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
4381 first_col, line_width, ndigits parameters. Add length.
4382 (tui_source_window_base::show_source_line): Write to pad. Line
4383 number now 0-based.
4384 (tui_source_window_base::refresh_pad): New method.
4385 (tui_source_window_base::show_source_content): Write to pad. Call
4386 refresh_pad.
4387 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
4388 not refill.
4389 (tui_source_window_base::update_exec_info): Call
4390 show_line_number.
4391 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
4392 method.
4393 <m_digits>: New member.
4394 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
4395 and m_max_length.
4396 (tui_source_window::show_line_number): New method.
4397 * tui/tui-io.h (tui_puts): Fix comment.
4398 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
4399 m_max_length.
4400
c15c15c8
TT
44012020-09-27 Tom Tromey <tom@tromey.com>
4402
4403 * tui/tui-winsource.c
4404 (tui_source_window_base::set_is_exec_point_at): Don't call
4405 show_source_line.
4406
149830c1
TT
44072020-09-27 Tom Tromey <tom@tromey.com>
4408
4409 * python/py-tui.c (class tui_py_window) <refresh_window>: New
4410 method.
4411 <erase>: Update.
4412 <cursor_x, cursor_y>: Remove.
4413 <m_inner_window>: New member.
4414 (tui_py_window::rerender): Create inner window.
4415 (tui_py_window::output): Write to inner window.
4416
8f9929bb
GR
44172020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4418
4419 PR python/26586
4420 * cli/cli-script.c (execute_control_commands): don't set
4421 instream to nullptr here as this breaks the from_tty argument
4422 to gdb.execute in Python.
4423 (execute_user_command): set instream to nullptr here instead.
4424
956bdb59
SM
44252020-09-25 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * infrun.h (infrun_debug_printf): Fix formatting.
4428 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
4429
3b93626b
SJ
44302020-09-25 Saagar Jha <saagar@saagarjha.com>
4431
4432 * compile/compile-object-load.h (struct munmap_list): Add
4433 explicitly-defined move constructor.
4434
b551a89f
TT
44352020-09-24 Tom Tromey <tromey@adacore.com>
4436
4437 PR tui/26638:
4438 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
4439 method.
4440 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
4441 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
4442 (tui_prev_win): Rewrite.
4443
99bb393f
HD
44442020-09-23 Hannes Domani <ssbssa@yahoo.de>
4445
4446 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
4447 in WOW64 processes as SIGINT.
4448 * nat/windows-nat.h: Make wow64_process a shared variable.
4449 * windows-nat.c: Remove static wow64_process variable.
4450
20a5fcbd
TT
44512020-09-23 Tom Tromey <tom@tromey.com>
4452
4453 PR symtab/25470:
4454 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
4455 offset and bit size.
4456 * printcmd.c (print_scalar_formatted): Handle zero-length
4457 integer.
4458 (print_scalar_formatted): Use bit_size_differs_p.
4459 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
4460 constant.
4461 (union type_specific): <int_stuff>: New member.
4462 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
4463 methods.
4464 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
4465 TYPE_SPECIFIC_FIELD.
4466 (recursive_dump_type, copy_type_recursive): Update.
4467 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
4468 DW_AT_data_bit_offset.
4469
bac51ab7
TT
44702020-09-23 Tom Tromey <tom@tromey.com>
4471
4472 * utils.h (class gdb_argv): Add move operators.
4473 <append>: New methods.
4474 * compile/compile.c (build_argc_argv): Remove.
4475 (compile_args_argc): Remove.
4476 (compile_args_argv): Change type.
4477 (set_compile_args): Simplify.
4478 (append_args): Remove.
4479 (filter_args): Remove argcp parameter.
4480 (get_args): Return gdb_argv. Simplify.
4481 (compile_to_object): Update.
4482
92677124
TT
44832020-09-23 Tom Tromey <tom@tromey.com>
4484
4485 * compile/compile-object-run.c (do_module_cleanup)
4486 <~do_module_cleanup> :Remove.
4487 (do_module_cleanup): Update.
4488 * compile/compile-object-load.h (struct munmap_list): Add move
4489 assignment operator.
4490 <source_file>: Now a std::string.
4491 <munmap_list>: Rename. No longer a pointer.
4492 * compile/compile-object-load.c (struct setup_sections_data): Add
4493 constructor.
4494 <setup_one_section>: Declare.
4495 <munmap_list>: Move earlier.
4496 <m_bfd>: New member.
4497 <m_last_size, m_last_section_first, m_last_prot,
4498 m_last_max_alignment>: Rename, add initializers where needed.
4499 (setup_sections_data::setup_one_section): Rename from
4500 setup_sections. Update.
4501 (compile_object_load): Update. Don't use bfd_map_over_sections.
4502
e616f60a
TT
45032020-09-23 Tom Tromey <tom@tromey.com>
4504
4505 * compile/compile-object-run.c (struct do_module_cleanup): Add
4506 parameters to constructor. Update destructor.
4507 <source_file, scope, scope_data, out_value_type, out_value_addr,
4508 munmap_list_head, objfile_name_string>: Remove.
4509 <module>: New member.
4510 (do_module_cleanup): Update.
4511 (compile_object_run): Update.
4512
e947a848
TT
45132020-09-23 Tom Tromey <tom@tromey.com>
4514
4515 * compile/compile.c (eval_compile_command): Update.
4516 * compile/compile-object-run.h (compile_object_run): Take a
4517 compile_module_up.
4518 * compile/compile-object-run.c (compile_object_run): Take a
4519 compile_module_up.
4520 * compile/compile-object-load.h (struct compile_module): Add
4521 constructor, destructor.
4522 (compile_module_up): New typedef.
4523 (compile_object_load): Return compile_object_up.
4524 * compile/compile-object-load.c (compile_object_load): Return
4525 compile_module_up.
4526
0dbf6ee6
TT
45272020-09-23 Tom Tromey <tom@tromey.com>
4528
4529 * compile/compile-object-run.c (struct do_module_cleanup): Add
4530 constructor, destructor.
4531 <objfile_name_string>: Don't use struct hack.
4532 (do_module_cleanup): Use delete.
4533 (compile_object_run): Use new.
4534
ebe824f5
TT
45352020-09-23 Tom Tromey <tom@tromey.com>
4536
4537 * compile/compile-cplus-types.c
4538 (compile_cplus_convert_struct_or_union): Use std::vector.
4539 (compile_cplus_convert_func): Likewise.
4540 * compile/compile-c-types.c (convert_func): Use std::vector.
4541
5dd918d9
TT
45422020-09-21 Tom Tromey <tromey@adacore.com>
4543
4544 * sparc-tdep.c (sparc32_skip_prologue): Use
4545 skip_prologue_using_sal.
4546
5486c517
TT
45472020-09-19 Tom Tromey <tom@tromey.com>
4548
4549 * symfile.c (add_section_size_callback): Remove.
4550 (load_one_section): Rename from load_section_callback. Change
4551 parameters.
4552 (generic_load): Use foreach.
4553
8a6bb1d1
TT
45542020-09-19 Tom Tromey <tom@tromey.com>
4555
4556 * exec.c (add_to_section_table): Remove.
4557 (build_section_table): Use foreach.
4558
08f93a1a
TT
45592020-09-19 Tom Tromey <tom@tromey.com>
4560
4561 * elfread.c (elf_locate_sections): Change parameters.
4562 (elf_symfile_read): Use foreach.
4563
03cd72b8
TT
45642020-09-19 Tom Tromey <tom@tromey.com>
4565
4566 * cli/cli-dump.c (struct callback_data): Remove.
4567 (restore_one_section): Rename from restore_section_callback.
4568 Change parameters.
4569 (restore_binary_file): Change parameters.
4570 (restore_command): Use foreach.
4571
f4f2b85f
TT
45722020-09-19 Tom Tromey <tom@tromey.com>
4573
4574 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4575 (gcore_copy_callback): Likewise.
4576 (gcore_memory_sections): Use foreach.
4577
b35c1d1c
TT
45782020-09-19 Tom Tromey <tom@tromey.com>
4579
4580 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
4581 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
4582 parameters.
4583 (generic_elf_osabi_sniffer): Use foreach.
4584 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
4585 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
4586
5bb6e9dd
TT
45872020-09-19 Tom Tromey <tom@tromey.com>
4588
4589 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4590 (dwarf2_get_dwz_file): Use foreach.
4591 (dwarf2_locate_dwo_sections): Change parameters.
4592 (open_and_init_dwo_file): Use foreach.
4593 (dwarf2_locate_common_dwp_sections): Change parameters.
4594 (open_and_init_dwp_file): Use foreach.
4595
ad7277da
TT
45962020-09-19 Tom Tromey <tom@tromey.com>
4597
4598 * symfile.h: (find_lowest_section): Don't declare.
4599 * symfile.c (find_lowest_section): Now static. Change
4600 parameters.
4601 (struct place_section_arg): Remove.
4602 (place_section): Change parameters.
4603 (addr_info_make_relative): Use foreach.
4604 (symfile_dummy_outputs): Remove.
4605 (default_symfile_relocate): Use foreach.
4606
cb814f2e
TT
46072020-09-19 Tom Tromey <tom@tromey.com>
4608
4609 * objfiles.c (add_to_objfile_sections): Rename from
4610 add_to_objfile_sections_full.
4611 (add_to_objfile_sections): Remove.
4612 (build_objfile_section_table): Use foreach.
4613
3cabfd26
TT
46142020-09-19 Tom Tromey <tom@tromey.com>
4615
4616 * stap-probe.c (get_stap_base_address_1): Remove.
4617 (get_stap_base_address): Use foreach.
4618
1ce51eb5
TT
46192020-09-19 Tom Tromey <tom@tromey.com>
4620
4621 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4622 parameters.
4623 (gdb_bfd_close_or_warn): Use foreach.
4624
a190fabb
TT
46252020-09-19 Tom Tromey <tom@tromey.com>
4626
4627 * corelow.c (add_to_thread_list): Change parameters.
4628 (core_target_open): Use foreach.
4629
cafb0d81
TT
46302020-09-19 Tom Tromey <tom@tromey.com>
4631
4632 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4633 existing function.
4634
c8d5abea
AB
46352020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4636
4637 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4638 for arrays.
4639
6d816919
AB
46402020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4641
4642 * eval.c: Remove 'f-lang.h' include.
4643 (value_f90_subarray): Moved to f-lang.c.
4644 (eval_call): Renamed to...
4645 (evaluate_subexp_do_call): ...this, is no longer static, header
4646 comment moved into header file.
4647 (evaluate_funcall): Update call to eval_call.
4648 (skip_undetermined_arglist): Moved to f-lang.c.
4649 (fortran_value_subarray): Likewise.
4650 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4651 moved to evaluate_subexp_f.
4652 (calc_f77_array_dims): Moved to f-lang.c
4653 * expprint.c (print_subexp_funcall): New function.
4654 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
4655 moved to print_subexp_f, OP_FUNCALL uses new function.
4656 (dump_subexp_body_funcall): New function.
4657 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
4658 moved to dump_subexp_f, OP_FUNCALL uses new function.
4659 * expression.h (evaluate_subexp_do_call): Declare.
4660 * f-lang.c (value_f90_subarray): Moved from eval.c.
4661 (skip_undetermined_arglist): Likewise.
4662 (calc_f77_array_dims): Likewise.
4663 (fortran_value_subarray): Likewise.
4664 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
4665 (operator_length_f): Likewise.
4666 (print_subexp_f): Likewise.
4667 (dump_subexp_body_f): Likewise.
4668 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
4669 declaration of this operation to here.
4670 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
4671 support moved to operator_length_f.
4672 * parser-defs.h (dump_subexp_body_funcall): Declare.
4673 (print_subexp_funcall): Declare.
4674 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
4675 fortran-operator.def.
4676
8c37706a
AB
46772020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
4678
4679 * eval.c (fortran_value_subarray): New function, content is taken
4680 from...
4681 (evaluate_subexp_standard): ...here, in two places. Now arrays
4682 and strings both call the new function.
4683 (calc_f77_array_dims): Add header comment, handle strings.
4684
14f9473c
VC
46852020-09-18 Victor Collod <vcollod@nvidia.com>
4686
4687 PR gdb/26635
4688 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
4689 (i386_analyze_prologue): Call i386_skip_endbr.
4690
b60cea74
TT
46912020-09-18 Tom Tromey <tromey@adacore.com>
4692
4693 * windows-nat.c (struct windows_nat_target) <wait>: Update.
4694 (windows_nat_target::wait): Update.
4695 * target/wait.h (enum target_wait_flag): New. Use
4696 DEF_ENUM_FLAGS_TYPE.
4697 * target/target.h (target_wait): Change type of options.
4698 * target.h (target_options_to_string, default_target_wait):
4699 Update.
4700 (struct target_ops) <wait>: Change type of options.
4701 * target.c (target_wait, default_target_wait, do_option): Change
4702 type of "options".
4703 (target_options_to_string): Likewise.
4704 * target-delegates.c: Rebuild.
4705 * target-debug.h (target_debug_print_target_wait_flags): Rename
4706 from target_debug_print_options.
4707 * sol-thread.c (class sol_thread_target) <wait>: Update.
4708 (sol_thread_target::wait): Update.
4709 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
4710 (rs6000_nat_target::wait): Update.
4711 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
4712 Update.
4713 (remote_target::wait_ns, remote_target::wait_as): Change type of
4714 "options".
4715 (remote_target::wait): Update.
4716 * remote-sim.c (struct gdbsim_target) <wait>: Update.
4717 (gdbsim_target::wait): Update.
4718 * record-full.c (class record_full_base_target) <wait>: Update.
4719 (record_full_wait_1): Change type of "options".
4720 (record_full_base_target::wait): Update.
4721 * record-btrace.c (class record_btrace_target) <wait>: Update.
4722 (record_btrace_target::wait): Update.
4723 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
4724 Update.
4725 (ravenscar_thread_target::wait): Update.
4726 * procfs.c (class procfs_target) <wait>: Update.
4727 (procfs_target::wait): Update.
4728 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
4729 * obsd-nat.c (obsd_nat_target::wait): Update.
4730 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
4731 (nto_procfs_target::wait): Update.
4732 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
4733 * nbsd-nat.c (nbsd_wait): Change type of "options".
4734 (nbsd_nat_target::wait): Update.
4735 * linux-thread-db.c (class thread_db_target) <wait>: Update.
4736 (thread_db_target::wait): Update.
4737 * linux-nat.h (class linux_nat_target) <wait>: Update.
4738 * linux-nat.c (linux_nat_target::wait): Update.
4739 (linux_nat_wait_1): Update.
4740 * infrun.c (do_target_wait_1, do_target_wait): Change type of
4741 "options".
4742 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
4743 * inf-ptrace.c (inf_ptrace_target::wait): Update.
4744 * go32-nat.c (struct go32_nat_target) <wait>: Update.
4745 (go32_nat_target::wait): Update.
4746 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
4747 * gnu-nat.c (gnu_nat_target::wait): Update.
4748 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
4749 * fbsd-nat.c (fbsd_nat_target::wait): Update.
4750 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
4751 * darwin-nat.c (darwin_nat_target::wait): Update.
4752 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
4753 (bsd_uthread_target::wait): Update.
4754 * aix-thread.c (class aix_thread_target) <wait>: Update.
4755 (aix_thread_target::wait): Update.
4756
0295dde6
AB
47572020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
4758
4759 * compile/compile-object-run.c (create_copied_type_recursive): New
4760 function.
4761 (compile_object_run): Use new function.
4762
d3483b43
JT
47632020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
4764
4765 * NEWS: Mention x86_64 Cygwin core file support.
4766
e7d612ad
JT
47672020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4768
4769 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
4770 (core_process_module_section): Handle NOTE_INFO_MODULE64.
4771
aff9d387
JT
47722020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4773
62a5151b
JT
4774 * windows-tdep.h: Add prototypes.
4775 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
4776 (i386_windows_core_pid_to_str): Move and rename ...
4777 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
4778 (windows_core_pid_to_str): ... and here.
4779 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
4780
47812020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
4782 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
4783 (amd64_windows_init_abi_common): ... and register.
4784
7d155da3
JT
47852020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
4786
4787 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
4788 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
4789
e8ef12b9
PA
47902020-09-18 Pedro Alves <pedro@palves.net>
4791
4792 PR gdb/26631
4793 * thread.c (thread_find_command): Switch inferior before calling
4794 target methods.
4795
c1e1314d
TT
47962020-09-17 Tom Tromey <tromey@adacore.com>
4797
4798 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
4799 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
4800 (tdesc_arch_data_up): New typedef.
4801 (tdesc_use_registers, tdesc_data_alloc): Update.
4802 (tdesc_data_cleanup): Don't declare.
4803 * target-descriptions.c (tdesc_data_alloc): Return a
4804 tdesc_arch_data_up.
4805 (tdesc_arch_data_deleter::operator()): Rename from
4806 tdesc_data_cleanup. Change argument type.
4807 (tdesc_use_registers): Change early_data to an rvalue reference.
4808 (tdesc_use_registers): Don't use delete.
4809 * sparc-tdep.c (sparc32_gdbarch_init): Update.
4810 * s390-tdep.c (s390_gdbarch_init): Update.
4811 * rx-tdep.c (rx_gdbarch_init): Update.
4812 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4813 * riscv-tdep.c (riscv_gdbarch_init): Update.
4814 * or1k-tdep.c (or1k_gdbarch_init): Update.
4815 * nios2-tdep.c (nios2_gdbarch_init): Update.
4816 * nds32-tdep.c (nds32_gdbarch_init): Update.
4817 * mips-tdep.c (mips_gdbarch_init): Update.
4818 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
4819 * m68k-tdep.c (m68k_gdbarch_init): Update.
4820 * i386-tdep.c (i386_gdbarch_init): Update.
4821 * arm-tdep.c (arm_gdbarch_init): Update.
4822 * arc-tdep.c (arc_tdesc_init): Update.
4823 (arc_gdbarch_init): Update.
4824 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
4825
0363df3d
HD
48262020-09-17 Hannes Domani <ssbssa@yahoo.de>
4827
4828 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
4829 for WOW64 processes.
4830
280a9412
TT
48312020-09-17 Tom Tromey <tom@tromey.com>
4832
4833 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
4834
6108fd18
TT
48352020-09-17 Tom Tromey <tom@tromey.com>
4836
4837 * value.c (preserve_values): Update.
4838 * python/py-type.c (save_objfile_types): Update.
4839 * guile/scm-type.c (save_objfile_types): Update.
4840 * gdbtypes.h (create_copied_types_hash): Return htab_up.
4841 * gdbtypes.c (create_copied_types_hash): Return htab_up.
4842 * compile/compile-object-run.c (compile_object_run): Update.
4843
fa9b1164
TT
48442020-09-17 Tom Tromey <tom@tromey.com>
4845
4846 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
4847 Remove.
4848 <m_table>: Now htab_up.
4849 * typeprint.c (typedef_hash_table::recursively_update)
4850 (typedef_hash_table::add_template_parameters)
4851 (typedef_hash_table::typedef_hash_table): Update.
4852 (typedef_hash_table::~typedef_hash_table): Remove.
4853 (typedef_hash_table::typedef_hash_table)
4854 (typedef_hash_table::find_global_typedef)
4855 (typedef_hash_table::find_typedef): Update.
4856
eb53f105
TT
48572020-09-17 Tom Tromey <tom@tromey.com>
4858
4859 * target-descriptions.c (tdesc_use_registers): Use htab_up.
4860
7a8a5d47
TT
48612020-09-17 Tom Tromey <tom@tromey.com>
4862
4863 * linespec.c (class decode_compound_collector)
4864 <~decode_compound_collector>: Remove.
4865 <m_unique_syms>: Now htab_up.
4866 (decode_compound_collector::operator ()): Update.
4867 (class symtab_collector) <~symtab_collector>: Remove.
4868 <m_symtab_table>: Now htab_up.
4869 (symtab_collector::operator ()): Update.
4870
99032cfc
TT
48712020-09-17 Tom Tromey <tom@tromey.com>
4872
4873 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
4874 (filename_seen_cache::clear): Update.
4875 (~filename_seen_cache): Remove.
4876 (filename_seen_cache::seen): Update.
4877 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
4878 htab_up.
4879 <~filename_seen_cache>: Remove.
4880 <traverse>: Update.
4881
32580f6d
TT
48822020-09-17 Tom Tromey <tom@tromey.com>
4883
4884 * completer.c (completion_tracker::discard_completions)
4885 (completion_tracker::~completion_tracker)
4886 (completion_tracker::maybe_add_completion)
4887 (completion_tracker::remove_completion)
4888 (completion_tracker::recompute_lowest_common_denominator)
4889 (completion_tracker::build_completion_result): Update.
4890 * completer.h (class completion_tracker) <have_completions>:
4891 Update.
4892 <m_entries_hash>: Now htab_up.
4893
c1fb9836
TT
48942020-09-17 Tom Tromey <tom@tromey.com>
4895
4896 * breakpoint.c (ambiguous_names_p): Use htab_up.
4897
88f07206
TT
48982020-09-17 Tom Tromey <tom@tromey.com>
4899
4900 * auto-load.c (struct auto_load_pspace_info)
4901 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
4902 <loaded_script_files, loaded_script_texts>: Change type to
4903 htab_up.
4904 (~auto_load_pspace_info) Remove.
4905 (init_loaded_scripts_info, maybe_add_script_file)
4906 (maybe_add_script_text, auto_load_info_scripts): Update.
4907
9519b2ee
TT
49082020-09-17 Tom Tromey <tromey@adacore.com>
4909
4910 * c-exp.y (name_obstack): Now static.
4911
d2cd4113
CC
49122020-09-17 Chungyi Chi <demonic@csie.io>
4913
4914 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4915
b650a282
SM
49162020-09-16 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4919 (add_solib_catchpoint): Likewise.
4920 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
4921 to bool.
4922 (add_solib_catchpoint): Change int parameter/variable to bool.
4923 (catch_load_or_unload): Likewise.
4924 (init_catchpoint): Likewise.
4925 (create_fork_vfork_event_catchpoint): Likewise.
4926 (catch_fork_command_1): Likewise.
4927 (catch_exec_command_1): Likewise.
4928
4d0bcfcf
SM
49292020-09-16 Simon Marchi <simon.marchi@efficios.com>
4930
4931 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
4932 Change instance_flags to m_instance_flags.
4933
fe830662
TT
49342020-09-16 Tom Tromey <tromey@adacore.com>
4935
4936 PR gdb/26598:
4937 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
4938
fe5ddfc3
JB
49392020-09-16 John Baldwin <jhb@FreeBSD.org>
4940
4941 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
4942 PL_FLAG_EXEC.
4943 (fbsd_nat_target::insert_exec_catchpoint)
4944 (fbsd_nat_target::remove_exec_catchpoint): Always define.
4945 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
4946 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
4947
e911c666
JB
49482020-09-16 John Baldwin <jhb@FreeBSD.org>
4949
4950 * configure.ac: Remove check for kinfo_getvmmap().
4951 * configure, config.in: Regenerate.
4952 * fbsd-nat.c (fbsd_read_mapping): Remove
4953 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
4954 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
4955 kinfo_get_vmmap() are always present.
4956
1f17d372
JB
49572020-09-16 John Baldwin <jhb@FreeBSD.org>
4958
4959 * fbsd-nat.c: Always include support for
4960 TARGET_OBJECT_SIGNAL_INFO.
4961
bcb1da7f
JB
49622020-09-16 John Baldwin <jhb@FreeBSD.org>
4963
4964 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
4965 sysctl and remove procfs fallback.
4966
5515f729
JB
49672020-09-16 John Baldwin <jhb@FreeBSD.org>
4968
4969 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
4970 * fbsd-nat.h: Likewise.
4971
da1df1db
TBA
49722020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4973
4974 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
4975 argument.
4976
0e25e767
AB
49772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4978
4979 * ada-lang.c (ada_language_data): Delete.
4980 (ada_language): Remove references to ada_language_data.
4981 * c-lang.c (c_language_data): Delete.
4982 (c_language): Remove references to c_language_data.
4983 (cplus_language_data): Delete.
4984 (cplus_language): Remove references to cplus_language_data.
4985 (asm_language_data): Delete.
4986 (asm_language): Remove references to asm_language_data.
4987 (minimal_language_data): Delete.
4988 (minimal_language): Remove references to minimal_language_data.
4989 * d-lang.c (d_language_data): Delete.
4990 (d_language): Remove references to d_language_data.
4991 * f-lang.c (f_language_data): Delete.
4992 (f_language): Remove references to f_language_data.
4993 * go-lang.c (go_language_data): Delete.
4994 (go_language): Remove references to go_language_data.
4995 * language.c (unknown_language_data): Delete.
4996 (unknown_language): Remove references to unknown_language_data.
4997 (auto_language_data): Delete.
4998 (auto_language): Remove references to auto_language_data.
4999 * language.h (language_data): Delete struct.
5000 (language_defn): No longer inherit from language_data.
5001 * m2-lang.c (m2_language_data): Delete.
5002 (m2_language): Remove references to m2_language_data.
5003 * objc-lang.c (objc_language_data): Delete.
5004 (objc_language): Remove references to objc_language_data.
5005 * opencl-lang.c (opencl_language_data): Delete.
5006 (opencl_language): Remove references to opencl_language_data.
5007 * p-lang.c (pascal_language_data): Delete.
5008 (pascal_language): Remove references to pascal_language_data.
5009 * rust-lang.c (rust_language_data): Delete.
5010 (rust_language): Remove references to rust_language_data.
5011
b7c6e27d
AB
50122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * ada-lang.c (ada_language_data): Remove la_op_print_tab
5015 initializer.
5016 (ada_language::opcode_print_table): New member function.
5017 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
5018 (c_language::opcode_print_table): New member function.
5019 (cplus_language_data): Remove la_op_print_tab initializer.
5020 (cplus_language::opcode_print_table): New member function.
5021 (asm_language_data): Remove la_op_print_tab initializer.
5022 (asm_language::opcode_print_table): New member function.
5023 (minimal_language_data): Remove la_op_print_tab initializer.
5024 (minimal_language::opcode_print_table): New member function.
5025 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
5026 (d_language::opcode_print_table): New member function.
5027 * expprint.c (print_subexp_standard): Update call to
5028 opcode_print_table.
5029 (op_string): Likewise.
5030 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
5031 (f_language::opcode_print_table): New member function.
5032 * go-lang.c (go_language_data): Remove la_op_print_tab
5033 initializer.
5034 (go_language::opcode_print_table): New member function.
5035 * language.c (unknown_language_data): Remove la_op_print_tab
5036 initializer.
5037 (unknown_language::opcode_print_table): New member function.
5038 (auto_language_data): Remove la_op_print_tab initializer.
5039 (auto_language::opcode_print_table): New member function.
5040 * language.h (language_data): Remove la_op_print_tab field.
5041 (language_defn::opcode_print_table): Declare new member function.
5042 * m2-lang.c (m2_language_data): Remove la_op_print_tab
5043 initializer.
5044 (m2_language::opcode_print_table): New member function.
5045 * objc-lang.c (objc_language_data): Remove la_op_print_tab
5046 initializer.
5047 (objc_language::opcode_print_table): New member function.
5048 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
5049 initializer.
5050 (opencl_language::opcode_print_table): New member function.
5051 * p-lang.c (pascal_language_data): Remove la_op_print_tab
5052 initializer.
5053 (pascal_language::opcode_print_table): New member function.
5054 * rust-lang.c (rust_language_data): Remove la_op_print_tab
5055 initializer.
5056 (rust_language::opcode_print_table): New member function.
5057
5aba6ebe
AB
50582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
5061 (ada_language::expression_ops): New member function.
5062 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
5063 (c_language::expression_ops): New member function.
5064 (cplus_language_data): Remove la_exp_desc initializer.
5065 (cplus_language::expression_ops): New member function.
5066 (asm_language_data): Remove la_exp_desc initializer.
5067 (asm_language::expression_ops): New member function.
5068 (minimal_language_data): Remove la_exp_desc initializer.
5069 (minimal_language::expression_ops): New member function.
5070 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
5071 (d_language::expression_ops): New member function.
5072 * eval.c (evaluate_subexp): Update call to expression_ops.
5073 * expprint.c (print_subexp): Likewise.
5074 (op_name): Likewise.
5075 (dump_subexp_body): Likewise.
5076 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
5077 (f_language::expression_ops): New member function.
5078 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
5079 (go_language::expression_ops): New member function.
5080 * language.c (language_defn::expression_ops): New function.
5081 (unknown_language_data): Remove la_exp_desc initializer.
5082 (auto_language_data): Likewise.
5083 * language.h (language_data): Remove la_exp_desc field.
5084 (language_defn::expression_ops): Declare new member function.
5085 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
5086 (m2_language::expression_ops): New member function.
5087 * objc-lang.c (objc_language_data): Remove la_exp_desc
5088 initializer.
5089 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
5090 initializer.
5091 (opencl_language::expression_ops): New member function.
5092 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
5093 * parse.c (operator_length): Update call to expression_ops.
5094 (exp_iterate): Likewise.
5095 * rust-lang.c (rust_language_data): Remove la_exp_desc
5096 initializer.
5097 (ruse_language::expression_ops): New member function.
5098
b63a3f3f
AB
50992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5100
5101 * ada-lang.c (ada_language_data): Remove la_varobj_ops
5102 initializer.
5103 (ada_language::varobj_ops): New member function.
5104 * c-lang.c (c_language_data): Remove la_varobj_ops
5105 initializer.
5106 (cplus_language_data): Likewise.
5107 (cplus_language::varobj_ops): New member function.
5108 (asm_language_data): Remove la_varobj_ops initializer.
5109 (minimal_language_data): Likewise.
5110 * d-lang.c (d_language_data): Likewise.
5111 * f-lang.c (f_language_data): Likewise.
5112 * go-lang.c (go_language_data): Likewise.
5113 * language.c (language_defn::varobj_ops): New function.
5114 (unknown_language_data): Remove la_varobj_ops
5115 initializer.
5116 (auto_language_data): Likewise.
5117 * language.h (language_data): Remove la_varobj_ops field.
5118 (language_defn::varobj_ops): Declare new member function.
5119 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
5120 * objc-lang.c (objc_language_data): Likewise.
5121 * opencl-lang.c (opencl_language_data): Likewise.
5122 * p-lang.c (pascal_language_data): Likewise.
5123 * rust-lang.c (rust_language_data): Likewise.
5124 * varobj.c (varobj_create): Update call to varobj_ops.
5125 * varobj.h (default_varobj_ops): Delete define.
5126
1ac14a04
AB
51272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5128
5129 * ada-lang.c (ada_language_data): Remove la_macro_expansion
5130 initializer.
5131 * c-lang.c (c_language_data): Likewise.
5132 (c_language::macro_expansion): New member function.
5133 (cplus_language_data): Likewise.
5134 (cplus_language::macro_expansion): New member function.
5135 (asm_language_data): Likewise.
5136 (asm_language::macro_expansion): New member function.
5137 (minimal_language_data): Likewise.
5138 (minimal_language::macro_expansion): New member function.
5139 * d-lang.c (d_language_data): Remove la_macro_expansion
5140 initializer.
5141 * f-lang.c (f_language_data): Likewise.
5142 * go-lang.c (go_language_data): Likewise.
5143 * language.c (unknown_language_data): Likewise.
5144 (auto_language_data): Likewise.
5145 * language.h (language_data): Remove la_macro_expansion field.
5146 (language_defn::macro_expansion): New member function.
5147 * m2-lang.c (m2_language_data): Remove la_macro_expansion
5148 initializer.
5149 * objc-lang.c (objc_language_data): Likewise.
5150 (objc_language::macro_expansion): New member function.
5151 * opencl-lang.c (opencl_language_data): Likewise.
5152 (opencl_language::macro_expansion): New member function.
5153 * p-lang.c (pascal_language_data): Remove la_macro_expansion
5154 initializer.
5155 * rust-lang.c (rust_language_data): Likewise.
5156 * symtab.c (default_collect_symbol_completion_matches_break_on):
5157 Update call to macro_expansion.
5158
3a3440fb
AB
51592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_language_data): Remove la_array_ordering
5162 initializer.
5163 * c-lang.c (c_language_data): Likewise.
5164 (cplus_language_data): Likewise.
5165 (asm_language_data): Likewise.
5166 (minimal_language_data): Likewise.
5167 * d-lang.c (d_language_data): Likewise.
5168 * dwarf2/read.c (read_array_order): Update for call to
5169 array_ordering.
5170 * f-lang.c (f_language_data): Remove la_array_ordering
5171 initializer.
5172 (f_language::array_ordering): New member function.
5173 * go-lang.c (go_language_data): Remove la_array_ordering
5174 initializer.
5175 * language.c (unknown_language_data): Likewise.
5176 (auto_language_data): Likewise.
5177 * language.h (language_data): Delete la_array_ordering field.
5178 (language_defn::array_ordering): New member function.
5179 * m2-lang.c (m2_language_data): Remove la_array_ordering
5180 initializer.
5181 * objc-lang.c (objc_language_data): Likewise.
5182 * opencl-lang.c (opencl_language_data): Likewise.
5183 * p-lang.c (pascal_language_data): Likewise.
5184 * rust-lang.c (rust_language_data): Likewise.
5185
0d201fa4
AB
51862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5187
5188 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
5189 initializer.
5190 * c-lang.c (c_language_data): Likewise.
5191 (cplus_language_data): Likewise.
5192 (asm_language_data): Likewise.
5193 (minimal_language_data): Likewise.
5194 * d-lang.c (d_language_data): Likewise.
5195 * f-lang.c (f_language_data): Likewise.
5196 (f_language::case_sensitivity): New member function.
5197 * go-lang.c (go_language_data): Remove la_case_sensitivity
5198 initializer.
5199 * language.c (enum case_mode): Moved here from language.h.
5200 (case_mode): Make static.
5201 (show_case_command): Update for case_sensitivity being a method.
5202 (set_case_command): Likewise.
5203 (set_range_case): Likewise.
5204 (unknown_language_data): Remove la_case_sensitivity initializer.
5205 (auto_language_data): Likewise.
5206 * language.h (case_mode): Delete, move enum declaration to
5207 language.c.
5208 (language_data): Delete la_case_sensitivity field.
5209 (language_defn::case_sensitivity): New member function.
5210 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
5211 initializer.
5212 * objc-lang.c (objc_language_data): Likewise.
5213 * opencl-lang.c (opencl_language_data): Likewise.
5214 * p-lang.c (pascal_language_data): Likewise.
5215 * rust-lang.c (rust_language_data): Likewise.
5216
efdf6a73
AB
52172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5218
5219 * ada-lang.c (ada_language_data): Remove la_range_check
5220 initializer.
5221 * c-lang.c (c_language_data): Likewise.
5222 (cplus_language_data): Likewise.
5223 (asm_language_data): Likewise.
5224 (minimal_language_data): Likewise.
5225 * d-lang.c (d_language_data): Likewise.
5226 * f-lang.c (f_language_data): Likewise.
5227 (f_language::range_checking_on_by_default): New member function.
5228 * go-lang.c (go_language_data): Remove la_range_check initializer.
5229 * language.c (enum range_mode): Moved here from language.h.
5230 (range_mode): Made static.
5231 (show_range_command): Update to use
5232 range_checking_on_by_default.
5233 (set_range_command): Likewise.
5234 (set_range_case): Likewise.
5235 (unknown_language_data): Remove la_range_check initializer.
5236 (auto_language_data): Likewise.
5237 * language.h (range_mode): Delete. Enum definition moved to
5238 language.c.
5239 (language_data): Remove la_range_check field.
5240 (language_defn::range_checking_on_by_default): New member
5241 function.
5242 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
5243 (m2_language::range_checking_on_by_default): New member function.
5244 * objc-lang.c (objc_language_data): Remove la_range_check
5245 initializer.
5246 * opencl-lang.c (opencl_language_data): Likewise.
5247 * p-lang.c (pascal_language_data): Likewise.
5248 (pascal_language::range_checking_on_by_default): New member
5249 function.
5250 * rust-lang.c (rust_language_data): Remove la_range_check
5251 initializer.
5252 (rust_language::range_checking_on_by_default): New member
5253 function.
5254
bf92aec5
AB
52552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5256
5257 * dwarf2/read.c (dwarf2_physname): Remove special case for
5258 language_go.
5259 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
5260 member function.
5261
d3355e4d
AB
52622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5263
5264 * ada-lang.c (ada_language_data): Remove
5265 la_store_sym_names_in_linkage_form_p initializer.
5266 (ada_language::store_sym_names_in_linkage_form_p): New member
5267 function.
5268 * c-lang.c (c_language_data): Remove
5269 la_store_sym_names_in_linkage_form_p initializer.
5270 (c_language::store_sym_names_in_linkage_form_p): New member
5271 function.
5272 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
5273 initializer.
5274 (asm_language_data): Likewise.
5275 (asm_language::store_sym_names_in_linkage_form_p): New member
5276 function.
5277 (minimal_language_data): Remove
5278 la_store_sym_names_in_linkage_form_p initializer.
5279 (minimal_language::store_sym_names_in_linkage_form_p): New member
5280 function.
5281 * d-lang.c (d_language_data): Remove
5282 la_store_sym_names_in_linkage_form_p initializer.
5283 * dwarf2/read.c (dwarf2_physname): Update call to
5284 store_sym_names_in_linkage_form_p.
5285 * f-lang.c (f_language_data): Remove
5286 la_store_sym_names_in_linkage_form_p initializer.
5287 * go-lang.c (go_language_data): Remove
5288 la_store_sym_names_in_linkage_form_p initializer.
5289 * language.c (unknown_language_data): Remove
5290 la_store_sym_names_in_linkage_form_p initializer.
5291 (unknown_language::store_sym_names_in_linkage_form_p): New member
5292 function.
5293 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
5294 initializer.
5295 (auto_language::store_sym_names_in_linkage_form_p): New member
5296 function.
5297 * language.h (language_data): Remove
5298 la_store_sym_names_in_linkage_form_p member variable.
5299 (language_defn::store_sym_names_in_linkage_form_p): New member
5300 function.
5301 * m2-lang.c (m2_language_data): Remove
5302 la_store_sym_names_in_linkage_form_p initializer.
5303 * objc-lang.c (objc_language_data): Likewise.
5304 * opencl-lang.c (opencl_language_data): Likewise.
5305 * p-lang.c (pascal_language_data): Likewise.
5306 * rust-lang.c (rust_language_data): Likewise.
5307
22c12a6c
AB
53082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5309
5310 * ada-lang.c (ada_language_data): Remove string_lower_bound
5311 initializer.
5312 * c-lang.c (c_language_data): Likewise.
5313 (cplus_language_data): Likewise.
5314 (asm_language_data): Likewise.
5315 (minimal_language_data): Likewise.
5316 * d-lang.c (d_language_data): Likewise.
5317 * f-lang.c (f_language_data): Likewise.
5318 * go-lang.c (go_language_data): Likewise.
5319 * language.c (unknown_language_data): Likewise.
5320 (auto_language_data): Likewise.
5321 * language.h (language_data): Remove string_lower_bound field.
5322 (language_defn::string_lower_bound): New member function.
5323 * m2-lang.c (m2_language_data): Remove string_lower_bound
5324 initializer.
5325 (m2_language::string_lower_bound): New member function.
5326 * objc-lang.c (objc_language_data): Remove string_lower_bound
5327 initializer.
5328 * opencl-lang.c (opencl_language_data): Likewise.
5329 * p-lang.c (pascal_language_data): Likewise.
5330 * rust-lang.c (rust_language_data): Likewise.
5331 * valops.c (value_cstring): Update call to string_lower_bound.
5332 (value_string): Likewise.
5333 * value.c (allocate_repeated_value): Likewise.
5334
1c236ddd
AB
53352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5336
5337 * valops.c (value_repeat): Fix incorrect argument name in comment.
5338
67bd3fd5
AB
53392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5340
5341 * ada-lang.c (ada_language_data): Remove c_style_arrays
5342 initializer.
5343 (ada_language::c_style_arrays_p): New member fuction.
5344 * c-lang.c (c_language_data): Remove c_style_arrays
5345 initializer.
5346 (cplus_language_data): Likewise.
5347 (asm_language_data): Likewise.
5348 (minimal_language_data): Likewise.
5349 * d-lang.c (d_language_data): Likewise.
5350 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
5351 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
5352 (f_language::c_style_arrays_p): New member function.
5353 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
5354 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
5355 * language.c (unknown_language_data): Remove c_style_arrays
5356 initializer.
5357 (auto_language_data): Likewise.
5358 * language.h (language_data): Remove c_style_arrays field.
5359 (language_defn::c_style_arrays_p): New member function.
5360 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
5361 (m2_language::c_style_arrays_p): New member function.
5362 * objc-lang.c (objc_language_data): Remove c_style_arrays
5363 initializer.
5364 * opencl-lang.c (opencl_language_data): Likewise.
5365 * p-lang.c (pascal_language_data): Likewise.
5366 * rust-lang.c (rust_language_data): Likewise.
5367 * valarith.c (value_subscript): Update call to c_style_arrays_p,
5368 and update local variable to a bool.
5369 * valops.c (value_cast): Update call to c_style_arrays_p.
5370 (value_array): Likewise.
5371 * value.c (coerce_array): Likewise.
5372
85967615
AB
53732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * ada-lang.c (ada_language_data): Remove la_language initializer.
5376 * c-lang.c (c_language_data): Likewise.
5377 (cplus_language_data): Likewise.
5378 (asm_language_data): Likewise.
5379 (minimal_language_data): Likewise.
5380 * d-lang.c (d_language_data): Likewise.
5381 * f-lang.c (f_language_data): Likewise.
5382 * go-lang.c (go_language_data): Likewise.
5383 * language.c (unknown_language_data): Likewise.
5384 (auto_language_data): Likewise.
5385 * language.h (language_data): Remove la_language field.
5386 (language_defn::language_defn): Initialise la_language field.
5387 (language_defn::la_language): New member variable.
5388 * m2-lang.c (m2_language_data): Remove la_language field.
5389 * objc-lang.c (objc_language_data): Likewise.
5390 * opencl-lang.c (opencl_language_data): Likewise.
5391 * p-lang.c (pascal_language_data): Likewise.
5392 * rust-lang.c (rust_language_data): Likewise.
5393
e171d6f1
AB
53942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * ada-lang.c (ada_extensions): Delete, moved into
5397 ada_language::filename_extensions.
5398 (ada_language_data): Remove la_filename_extensions initializer.
5399 (ada_language::filename_extensions): New member function.
5400 * c-lang.c (c_extensions): Delete, moved into
5401 c_language::filename_extensions.
5402 (c_language_data): Remove la_filename_extensions initializer.
5403 (c_language::filename_extensions): New member function.
5404 (cplus_extensions): Delete, moved into
5405 cplus_language::filename_extensions.
5406 (cplus_language_data): Remove la_filename_extensions initializer.
5407 (cplus_language::filename_extensions): New member function.
5408 (asm_extensions): Delete, moved into
5409 asm_language::filename_extensions.
5410 (asm_language_data): Remove la_filename_extensions initializer.
5411 (asm_language::filename_extensions): New member function.
5412 (minimal_language_data): Remove la_filename_extensions
5413 initializer.
5414 * d-lang.c (d_extensions): Delete, moved into
5415 d_language::filename_extensions.
5416 (d_language_data): Remove la_filename_extensions initializer.
5417 (d_language::filename_extensions): New member function.
5418 * f-lang.c (f_extensions): Delete, moved into
5419 f_language::filename_extensions.
5420 (f_language_data): Remove la_filename_extensions initializer.
5421 (f_language::filename_extensions): New member function.
5422 * go-lang.c (go_language_data): Remove la_filename_extensions
5423 initializer.
5424 * language.c (add_set_language_command): Update now that
5425 filename_extensions returns a vector.
5426 (unknown_language_data): Remove la_filename_extensions
5427 initializer.
5428 (auto_language_data): Likewise.
5429 * language.h (language_data): Remove la_filename_extensions field.
5430 (language_defn::filename_extensions): New member function.
5431 * m2-lang.c (m2_language_data): Remove la_filename_extensions
5432 initializer.
5433 * objc-lang.c (objc_extensions): Delete, moved into
5434 objc_language::filename_extensions.
5435 (objc_language_data): Remove la_filename_extensions initializer.
5436 (objc_language::filename_extensions): New member function.
5437 * opencl-lang.c (opencl_language_data): Remove
5438 la_filename_extensions initializer.
5439 * p-lang.c (pascal_extensions): Delete, moved into
5440 pascal_language::filename_extensions.
5441 (pascal_language_data): Remove la_filename_extensions initializer.
5442 (pascal_language::filename_extensions): New member function.
5443 * rust-lang.c (rust_extensions): Delete, moved into
5444 rust_language::filename_extensions.
5445 (rust_language_data): Remove la_filename_extensions initializer.
5446 (rust_language::filename_extensions): New member function.
5447 * symfile.c (add_filename_language): Add new assert.
5448
6f7664a9
AB
54492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5450
5451 * ada-lang.c (ada_language_data): Remove la_name and
5452 la_natural_name initializers.
5453 (ada_language::name): New member function.
5454 (ada_language::natural_name): New member function.
5455 * c-lang.c (c_language_data): Remove la_name and
5456 la_natural_name initializers.
5457 (c_language::name): New member function.
5458 (c_language::natural_name): New member function.
5459 (cplus_language_data): Remove la_name and
5460 la_natural_name initializers.
5461 (cplus_language::name): New member function.
5462 (cplus_language::natural_name): New member function.
5463 (asm_language_data): Remove la_name and
5464 la_natural_name initializers.
5465 (asm_language::name): New member function.
5466 (asm_language::natural_name): New member function.
5467 (minimal_language_data): Remove la_name and
5468 la_natural_name initializers.
5469 (minimal_language::name): New member function.
5470 (minimal_language::natural_name): New member function.
5471 * compile/compile.c (compile_to_object): Update call to
5472 lanugage_defn::name.
5473 * d-lang.c (d_language_data): Remove la_name and
5474 la_natural_name initializers.
5475 (d_language::name): New member function.
5476 (d_language::natural_name): New member function.
5477 * expprint.c (print_subexp_standard): Update call to
5478 language_defn::name.
5479 (dump_raw_expression): Likewise
5480 (dump_prefix_expression): Likewise.
5481 * f-lang.c (f_language_data): Remove la_name and
5482 la_natural_name initializers.
5483 (f_language::name): New member function.
5484 (f_language::natural_name): New member function.
5485 * go-lang.c (go_language_data): Remove la_name and
5486 la_natural_name initializers.
5487 (go_language::name): New member function.
5488 (go_language::natural_name): New member function.
5489 * language.c (show_language_command): Update call to
5490 language_defn::name.
5491 (set_language_command): Likewise.
5492 (language_enum): Likewise.
5493 (language_str): Likewise.
5494 (add_set_language_command): Likewise, use
5495 language_defn::natural_name in the doc string.
5496 (unknown_language_data): Remove la_name and
5497 la_natural_name initializers.
5498 (unknown_language::name): New member function.
5499 (unknown_language::natural_name): New member function.
5500 (auto_language_data): Remove la_name and
5501 la_natural_name initializers.
5502 (auto_language::name): New member function.
5503 (auto_language::natural_name): New member function.
5504 (language_lookup_primitive_type_as_symbol): Update call to
5505 language_defn::name.
5506 * language.h (language_data): Remove la_name and la_natural_name
5507 member variables.
5508 (language_defn::name): New member function.
5509 (language_defn::natural_name): New member function.
5510 * m2-lang.c (m2_language_data): Remove la_name and
5511 la_natural_name initializers.
5512 (m2_language::name): New member function.
5513 (m2_language::natural_name): New member function.
5514 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
5515 language_defn::natural_name.
5516 * objc-lang.c (objc_language_data): Remove la_name and
5517 la_natural_name initializers.
5518 (objc_language::name): New member function.
5519 (objc_language::natural_name): New member function.
5520 * opencl-lang.c (opencl_language_data): Remove la_name and
5521 la_natural_name initializers.
5522 (opencl_language::name): New member function.
5523 (opencl_language::natural_name): New member function.
5524 * p-lang.c (pascal_language_data): Remove la_name and
5525 la_natural_name initializers.
5526 (pascal_language::name): New member function.
5527 (pascal_language::natural_name): New member function.
5528 * rust-lang.c (rust_language_data): Remove la_name and
5529 la_natural_name initializers.
5530 (rust_language::name): New member function.
5531 (rust_language::natural_name): New member function.
5532 * symtab.c (lookup_language_this): Update call to
5533 language_defn::name.
5534
5bae7c4e
AB
55352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5536
5537 * ada-lang.c (ada_language_data): Remove la_name_of_this
5538 initializer.
5539 * ax-gdb.c (gen_expr): Update call to name_of_this.
5540 * c-exp.y (classify_name): Likewise.
5541 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
5542 (cplus_language_data): Likewise.
5543 (cplus_language::name_of_this): New member function.
5544 (asm_language_data): Remove la_name_of_this initializer.
5545 (minimal_language_data): Likewise.
5546 * d-lang.c (d_language_data): Likewise.
5547 (d_language::name_of_this): New member function.
5548 * expprint.c (print_subexp_standard): Update call to name_of_this.
5549 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
5550 * go-lang.c (go_language_data): Likewise.
5551 * language.c (unknown_language_data): Likewise.
5552 (unknown_language::name_of_this): New member function.
5553 (auto_language_data): Remove la_name_of_this initializer.
5554 (auto_language::name_of_this): New member function.
5555 * language.h (language_data): Delete la_name_of_this member
5556 variable.
5557 (language_defn::name_of_this): New member function.
5558 * m2-lang.c (m2_language_data): Remove la_name_of_this
5559 initializer.
5560 * objc-lang.c (objc_language_data): Likewise.
5561 (objc_language::name_of_this): New member function.
5562 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
5563 initializer.
5564 * p-lang.c (pascal_language_data): Likewise.
5565 (pascal_language::name_of_this): New member function.
5566 * rust-lang.c (rust_language_data): Remove la_name_of_this
5567 initializer.
5568 * symtab.c (lookup_language_this): Update call to name_of_this.
5569 (lookup_symbol_aux): Likewise.
5570 * valops.c (value_of_this): Likewise.
5571
22e3f3ed
AB
55722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * ada-lang.c (ada_language_data): Remove
5575 la_struct_too_deep_ellipsis initializer.
5576 (ada_language::struct_too_deep_ellipsis): New member function.
5577 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
5578 initializer.
5579 (cplus_language_data): Likewise.
5580 (asm_language_data): Likewise.
5581 (minimal_language_data): Likewise.
5582 * cp-valprint.c (cp_print_value): Update call to
5583 struct_too_deep_ellipsis.
5584 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
5585 initializer.
5586 * f-lang.c (f_language_data): Likewise.
5587 (f_language::struct_too_deep_ellipsis): New member function.
5588 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
5589 initializer.
5590 * language.c (unknown_language_data): Likewise.
5591 (auto_language_data): Likewise.
5592 * language.h (language_data): Delete la_struct_too_deep_ellipsis
5593 member variable.
5594 (language_defn::struct_too_deep_ellipsis): New member function.
5595 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
5596 initializer.Q
5597 * objc-lang.c (objc_language_data): Likewise.
5598 * opencl-lang.c (opencl_language_data): Likewise.
5599 * p-lang.c (pascal_language_data): Likewise.
5600 * rust-lang.c (rust_language_data): Likewise.
5601 * valprint.c (val_print_check_max_depth): Update call to
5602 struct_too_deep_ellipsis.
5603
ed29e1c7
FW
56042020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
5605
5606 * MAINTAINERS (Write After Approval): Add myself.
5607
12d8f940
TT
56082020-09-15 Tom Tromey <tom@tromey.com>
5609
5610 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
5611 Remove.
5612
6b5a7bc7
TT
56132020-09-15 Tom Tromey <tom@tromey.com>
5614
5615 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
5616 and TYPE_CODE_METHODPTR cases.
5617 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
5618 (c_value_print_inner): Update.
5619 * valprint.c (generic_value_print_memberptr): New function, from
5620 c_value_print_memberptr.
5621 (generic_value_print): Use it. Call cplus_print_method_ptr.
5622
47f0e2ff
TT
56232020-09-15 Tom Tromey <tromey@adacore.com>
5624
5625 * python/python-internal.h (PyInt_FromLong): Remove define.
5626 * python/py-value.c (convert_value_from_python): Use
5627 gdb_py_object_from_longest.
5628 * python/py-type.c (typy_get_code): Use
5629 gdb_py_object_from_longest.
5630 * python/py-symtab.c (salpy_get_line): Use
5631 gdb_py_object_from_longest.
5632 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
5633 gdb_py_object_from_longest.
5634 * python/py-record.c (recpy_gap_reason_code): Use
5635 gdb_py_object_from_longest.
5636 * python/py-record-btrace.c (recpy_bt_insn_size)
5637 (recpy_bt_func_level, btpy_list_count): Use
5638 gdb_py_object_from_longest.
5639 * python/py-infthread.c (gdbpy_create_ptid_object): Use
5640 gdb_py_object_from_longest. Fix error handling.
5641 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
5642 gdb_py_object_from_longest.
5643 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
5644 gdb_py_object_from_longest.
5645 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
5646 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
5647 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
5648
512116ce
TT
56492020-09-15 Tom Tromey <tromey@adacore.com>
5650
5651 * python/python.c (gdbpy_parameter_value): Use
5652 gdb_py_object_from_ulongest.
5653
4ab1029c
TT
56542020-09-15 Tom Tromey <tromey@adacore.com>
5655
5656 * python/py-infevents.c (create_register_changed_event_object):
5657 Use gdb_py_object_from_longest.
5658 * python/py-exitedevent.c (create_exited_event_object): Use
5659 gdb_py_object_from_longest.
5660
062534d4
TT
56612020-09-15 Tom Tromey <tromey@adacore.com>
5662
5663 * python/python.c (gdbpy_parameter_value): Use
5664 gdb_py_object_from_longest.
5665 * python/py-type.c (convert_field, typy_range): Use
5666 gdb_py_object_from_longest.
5667 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
5668 gdb_py_object_from_longest.
5669 * python/py-lazy-string.c (stpy_get_length): Use
5670 gdb_py_object_from_longest.
5671 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
5672 gdb_py_object_from_longest.
5673 * python/py-infevents.c (create_memory_changed_event_object): Use
5674 gdb_py_object_from_longest.
5675 * python/py-inferior.c (infpy_get_num): Use
5676 gdb_py_object_from_longest.
5677 (infpy_get_pid): Likewise.
5678
d1cab987
TT
56792020-09-15 Tom Tromey <tromey@adacore.com>
5680
5681 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
5682 defines.
5683 * python/py-value.c (valpy_long): Use
5684 gdb_py_object_from_ulongest.
5685 * python/py-symtab.c (salpy_get_pc): Use
5686 gdb_py_object_from_ulongest.
5687 (salpy_get_last): Likewise.
5688 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
5689 gdb_py_object_from_ulongest.
5690 * python/py-lazy-string.c (stpy_get_address): Use
5691 gdb_py_object_from_ulongest.
5692 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
5693 * python/py-arch.c (archpy_disassemble): Use
5694 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
5695 error handling.
5696
4bde49dc
TT
56972020-09-15 Tom Tromey <tromey@adacore.com>
5698
5699 * python/python-internal.h (gdb_py_long_from_longest): Remove
5700 defines.
5701 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
5702 * python/py-type.c (convert_field, typy_get_sizeof): Use
5703 gdb_py_object_from_longest.
5704 * python/py-record-btrace.c (btpy_list_index): Use
5705 gdb_py_object_from_longest.
5706
37431074
TT
57072020-09-15 Tom Tromey <tromey@adacore.com>
5708
5709 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
5710 * python/py-record.c (recpy_element_number): Use
5711 gdb_py_object_from_longest.
5712 (recpy_gap_number): Likewise.
5713
cbe25684
TT
57142020-09-15 Tom Tromey <tromey@adacore.com>
5715
5716 * top.c (ui::ui): Update.
5717 (highest_ui_num): Remove.
5718 * top.h (struct ui) <num>: Remove.
5719
db92ac45
TT
57202020-09-15 Tom Tromey <tromey@adacore.com>
5721
5722 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
5723 * ui-style.c (ansi_regex_text): Now array.
5724 * rust-exp.y (number_regex_text): Now array.
5725 * linespec.c (linespec_quote_characters): Now array.
5726 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
5727 Now arrays.
5728
d2b31b67
SM
57292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5730
5731 * debuginfod-support.c (debuginfod_client_deleter): New.
5732 (debuginfod_client_up): New.
5733 (debuginfod_init): Return debuginfod_client_up.
5734 (debuginfod_source_query): Adjust.
5735 (debuginfod_debuginfo_query): Adjust.
5736
3246bd8e
SM
57372020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5738
5739 * debuginfod-support.c (debuginfod_source_query): Use
5740 make_unique_xstrdup.
5741
10242f36
SM
57422020-09-14 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
5745 with `type::instance_flags`.
5746
e1044e6a
MM
57472020-09-14 Michael Mullin <masmullin@gmail.com>
5748
5749 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
5750 Remove baton parameter.
5751
04902b09
PA
57522020-09-14 Pedro Alves <pedro@palves.net>
5753
5754 * Makefile.in (SELFTESTS_SRCS): Add
5755 unittests/enum-flags-selftests.c.
5756 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
5757 btrace_function_flags instead of enum btrace_function_flag.
5758 * compile/compile-c-types.c (convert_qualified): Use
5759 enum_flags::raw.
5760 * compile/compile-cplus-symbols.c (convert_one_symbol)
5761 (convert_symbol_bmsym):
5762 * compile/compile-cplus-types.c (compile_cplus_convert_method)
5763 (compile_cplus_convert_struct_or_union_methods)
5764 (compile_cplus_instance::convert_qualified_base):
5765 * go-exp.y (parse_string_or_char): Add cast to int.
5766 * unittests/enum-flags-selftests.c: New file.
5767 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
5768 type to btrace_thread_flags from btrace_thread_flag.
5769 (record_btrace_cancel_resume, record_btrace_step_thread): Change
5770 local's type to btrace_thread_flags from btrace_thread_flag. Add
5771 cast in DEBUG call.
5772
69896a2c
PA
57732020-09-14 Pedro Alves <pedro@palves.net>
5774
5775 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
5776 * gdbtypes.c (address_space_name_to_int): Rename to ...
5777 (address_space_name_to_type_instance_flags): ... this.
5778 (address_space_int_to_name): Rename to ...
5779 (address_space_type_instance_flags_to_name): ... this.
5780 * gdbtypes.h (address_space_name_to_int): Rename to ...
5781 (address_space_name_to_type_instance_flags): ... this.
5782 (address_space_int_to_name): Rename to ...
5783 (address_space_type_instance_flags_to_name): ... this.
5784 * type-stack.c (type_stack::insert): Adjust to rename.
5785 * type-stack.h (type_stack::insert): Likewise.
5786
314ad88d
PA
57872020-09-14 Pedro Alves <pedro@palves.net>
5788 Andrew Burgess <andrew.burgess@embecosm.com>
5789
5790 * avr-tdep.c (avr_address_class_type_flags): Return
5791 type_instance_flags.
5792 (avr_address_class_type_flags_to_name): Take a
5793 type_instance_flags.
5794 (avr_address_class_name_to_type_flags): Return bool and take a
5795 type_instance_flags.
5796 * d-lang.c (build_d_types): Use type::set_instance_flags.
5797 * ft32-tdep.c (ft32_address_class_type_flags): Return
5798 type_instance_flags.
5799 (ft32_address_class_type_flags_to_name): Take a
5800 type_instance_flags.
5801 (ft32_address_class_name_to_type_flags): Return bool and take a
5802 type_instance_flags.
5803 (ft32_gdbarch_init): Use type::set_instance_flags.
5804 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
5805 * gdbarch.h, gdbarch.c: Regenerate.
5806 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
5807 (address_class_name_to_type_flags): Use type_instance_flags and
5808 bool.
5809 * gdbtypes.c (address_space_name_to_int)
5810 (address_space_int_to_name, make_qualified_type): Use
5811 type_instance_flags.
5812 (make_qualified_type): Use type_instance_flags and
5813 type::set_instance_flags.
5814 (make_type_with_address_space, make_cv_type, make_vector_type)
5815 (check_typedef): Use type_instance_flags.
5816 (recursive_dump_type): Cast type_instance_flags to unsigned for
5817 printing.
5818 (copy_type_recursive): Use type::set_instance_flags.
5819 (gdbtypes_post_init): Use type::set_instance_flags.
5820 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
5821 <m_instance_flags>: ... this.
5822 <instance_flags, set_instance_flags>: New methods.
5823 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
5824 (SET_TYPE_INSTANCE_FLAGS): New.
5825 (address_space_name_to_int, address_space_int_to_name)
5826 (make_type_with_address_space): Pass flags using
5827 type_instance_flags instead of int.
5828 * stabsread.c (cleanup_undefined_types_noname): Use
5829 type::set_instance_flags.
5830 * s390-tdep.c (s390_address_class_type_flags): Return
5831 type_instance_flags.
5832 (s390_address_class_type_flags_to_name): Take a
5833 type_instance_flags.
5834 (s390_address_class_name_to_type_flags): Return bool and take a
5835 type_instance_flags.
5836 * type-stack.c (type_stack::follow_types): Use
5837 type_instance_flags.
5838 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
5839
27087b7f
TT
58402020-09-14 Tom Tromey <tromey@adacore.com>
5841
5842 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
5843 * x86-tdep.c (x86_is_thunk_register_name)
5844 (x86_in_indirect_branch_thunk): Update.
5845 * sparc64-tdep.c (sparc64_fpu_register_names)
5846 (sparc64_cp0_register_names, sparc64_register_names)
5847 (sparc64_pseudo_register_names): Now const.
5848 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
5849 cp0_registers_num>: Now const.
5850 * sparc-tdep.c (sparc_core_register_names)
5851 (sparc32_fpu_register_names, sparc32_cp0_register_names)
5852 (sparc32_pseudo_register_names): Now const.
5853 (validate_tdesc_registers): Update.
5854 * rust-lang.c (rust_extensions): Now const.
5855 * p-lang.c (p_extensions): Now const.
5856 * objc-lang.c (objc_extensions): Now const.
5857 * nto-tdep.c (nto_thread_state_str): Now const.
5858 * moxie-tdep.c (moxie_register_names): Now const.
5859 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
5860 Now const.
5861 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
5862 (mips_linux_reg_names): Now const.
5863 (mips_gdbarch_init): Update.
5864 * microblaze-tdep.c (microblaze_register_names): Now const.
5865 * m68k-tdep.c (m68k_register_names): Now const.
5866 * m32r-tdep.c (m32r_register_names): Now const.
5867 * ia64-tdep.c (ia64_register_names): Now const.
5868 * i386-tdep.h (struct gdbarch_tdep) <register_names,
5869 ymmh_register_names, ymm16h_regnum, mpx_register_names,
5870 k_register_names, zmmh_register_names, xmm_avx512_register_names,
5871 ymm_avx512_register_names, pkeys_register_names>: Now const.
5872 * i386-tdep.c (i386_register_names, i386_zmm_names)
5873 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
5874 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
5875 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
5876 * f-lang.c (f_extensions): Now const.
5877 * d-lang.c (d_extensions): Now const.
5878 * csky-tdep.c (csky_register_names): Now const.
5879 * charset.c (default_charset_names, charset_enum): Now const.
5880 (_initialize_charset): Update.
5881 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
5882 const.
5883 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
5884 (bsd_uthread_solib_loaded): Update.
5885 (bsd_uthread_state): Now const.
5886 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
5887 (amd64_ymm_avx512_names, amd64_ymmh_names)
5888 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
5889 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
5890 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
5891 (amd64_dword_names): Now const.
5892 * agent.c (can_use_agent_enum): Now const.
5893 * ada-tasks.c (task_states, long_task_states): Now const.
5894 * ada-lang.c (known_runtime_file_name_patterns)
5895 (known_auxiliary_function_name_patterns, attribute_names)
5896 (standard_exc, ada_extensions): Now const.
5897
89806626
SM
58982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5899
5900 * bcache.h (struct bcache) <bcache>: Remove constructor.
5901 <m_hash_function, m_compare_function>: Remove.
5902 <~bcache>: Make virtual.
5903 <compare>: Remove static method, introduce virtual method.
5904 <default_hash>: Remove.
5905 <hash>: New virtual method.
5906 * bcache.c (bcache::expand_hash_table): Update.
5907 (bcache::insert): Update.
5908 (bcache::hash): New.
5909 (bcache::compare): Update comment and parameter names.
5910 * gdbtypes.c (types_deeply_equal): Update.
5911 * psymtab.h (struct psymbol_bcache): New struct.
5912 (class psymtab_storage) <psymtab_storage>: Make default.
5913 <psymbol_cache>: Change type to psymbol_bcache.
5914 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
5915 (psymbol_hash): Change to...
5916 (psymbol_bcache::hash): ... this.
5917 (psymbol_compare): Change to...
5918 (psymbol_bcache::compare): ... this.
5919
677c92fe
SM
59202020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5921
5922 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
5923 checking for initial lwp.
5924
3eba3a01
TT
59252020-09-14 Tom Tromey <tromey@adacore.com>
5926
5927 * m68k-tdep.c (m68k_extract_return_value): Use
5928 pointer_result_regnum.
5929 (m68k_store_return_value): Likewise.
5930 (m68k_reg_struct_return_p): Handle vectors and arrays.
5931 (m68k_return_value): Handle arrays.
5932 (m68k_svr4_return_value): Fix single-element aggregate handling.
5933 Handle long double. Adjust for embedded ABI.
5934 (m68k_svr4_init_abi): Set pointer_result_regnum.
5935 (m68k_embedded_init_abi): New function.
5936 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
5937 (m68k_osabi_sniffer): New function.
5938 (_initialize_m68k_tdep): Register osabi sniffer.
5939 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
5940 member.
5941
33f4dd48
SM
59422020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5943
5944 * xml-support.c (xml_fetch_content_from_file): Replace xfree
5945 with gdb::unique_xmalloc_ptr<char>.
5946
8400a90d
SM
59472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5948
5949 * xml-support.h (xml_fetch_another): Change type to be a
5950 function_view.
5951 (xml_process_xincludes): Remove baton parameter.
5952 (xml_fetch_content_from_file): Change baton parameter to
5953 dirname.
5954 * xml-support.c (struct xinclude_parsing_data)
5955 <xinclude_parsing_data>: Remove baton parameter.
5956 <fetcher_baton>: Remove.
5957 (xinclude_start_include): Adjust.
5958 (xml_process_xincludes): Adjust.
5959 (xml_fetch_content_from_file): Replace baton parameter with
5960 dirname.
5961 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
5962 (xml_init_syscalls_info): Use a lambda.
5963 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
5964 (file_read_description_xml): Use a lambda.
5965 (fetch_available_features_from_target): Change baton parameter
5966 to target_ops.
5967 (target_read_description_xml): Use a lambda.
5968 (target_fetch_description_xml): Use a lambda.
5969 (string_read_description_xml): Update.
5970
04f5bab2
SM
59712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
5972
5973 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
5974 uses with type::endianity_is_not_default.
5975
db558e34
SM
59762020-09-14 Simon Marchi <simon.marchi@efficios.com>
5977
5978 * gdbtypes.h (struct type) <endianity_is_not_default,
5979 set_endianity_is_not_default>: New methods.
5980 (TYPE_ENDIANITY_NOT_DEFAULT): Use
5981 type::endianity_is_not_default, change all write call sites to
5982 use type::set_endianity_is_not_default.
5983
22c4c60c
SM
59842020-09-14 Simon Marchi <simon.marchi@efficios.com>
5985
5986 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
5987 uses with type::is_fixed_instance.
5988
9cdd0d12
SM
59892020-09-14 Simon Marchi <simon.marchi@efficios.com>
5990
5991 * gdbtypes.h (struct type) <is_fixed_instance,
5992 set_is_fixed_instance>: New methods.
5993 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
5994 write call sites to use type::set_is_fixed_instance.
5995
0becda7a
SM
59962020-09-14 Simon Marchi <simon.marchi@efficios.com>
5997
5998 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
5999 uses with type::is_gnu_ifunc.
6000
03cc7249
SM
60012020-09-14 Simon Marchi <simon.marchi@efficios.com>
6002
6003 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
6004 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
6005 use type::set_is_gnu_ifunc.
6006
3f46044c
SM
60072020-09-14 Simon Marchi <simon.marchi@efficios.com>
6008
6009 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
6010 uses with type::stub_is_supported.
6011
9baccff6
SM
60122020-09-14 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
6015 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
6016 use type::set_stub_is_supported.
6017
bd63c870
SM
60182020-09-14 Simon Marchi <simon.marchi@efficios.com>
6019
6020 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
6021 uses with type::is_vector.
6022
2062087b
SM
60232020-09-14 Simon Marchi <simon.marchi@efficios.com>
6024
6025 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
6026 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
6027 use type::set_is_vector.
6028
a409645d
SM
60292020-09-14 Simon Marchi <simon.marchi@efficios.com>
6030
6031 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
6032 uses with type::has_varargs.
6033
1d6286ed
SM
60342020-09-14 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
6037 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
6038 use type::set_has_varargs.
6039
7f9f399b
SM
60402020-09-14 Simon Marchi <simon.marchi@efficios.com>
6041
6042 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
6043 uses with type::is_prototyped.
6044
27e69b7a
SM
60452020-09-14 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
6048 New methods.
6049 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
6050 call sites to use type::set_is_prototyped.
6051
d2183968
SM
60522020-09-14 Simon Marchi <simon.marchi@efficios.com>
6053
6054 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
6055 uses with type::target_is_stub.
6056
8f53807e
SM
60572020-09-14 Simon Marchi <simon.marchi@efficios.com>
6058
6059 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
6060 New methods.
6061 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
6062 sites to use type::set_target_is_stub.
6063
e46d3488
SM
60642020-09-14 Simon Marchi <simon.marchi@efficios.com>
6065
6066 * gdbtypes.h (TYPE_STUB): Remove, replace all
6067 uses with type::is_stub.
6068
b4b73759
SM
60692020-09-14 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
6072 (TYPE_STUB): Use type::is_stub, change all write call sites to
6073 use type::set_is_stub.
6074
20ce4123
SM
60752020-09-14 Simon Marchi <simon.marchi@efficios.com>
6076
6077 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
6078 type::has_no_signedness.
6079
15152a54
SM
60802020-09-14 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * gdbtypes.h (struct type) <has_no_signedness,
6083 set_has_no_signedness>: New methods.
6084 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
6085 call sites to use type::set_has_no_signedness.
6086
c6d940a9
SM
60872020-09-14 Simon Marchi <simon.marchi@efficios.com>
6088
6089 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
6090 type::is_unsigned.
6091
653223d3
SM
60922020-09-14 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
6095 methods.
6096 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
6097 sites to use type::set_is_unsigned.
6098
55ea94da 60992020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 6100 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 6101
e851246a
SM
6102 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
6103 pointer and stack frame offset when unwinding.
55ea94da 6104
6791b117
PA
61052020-09-13 Pedro Alves <pedro@palves.net>
6106
6107 * NEWS: Document "-break-insert --qualified".
6108 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
6109
77f2120b
PA
61102020-09-13 Pedro Alves <pedro@palves.net>
6111
6112 * linespec.c (classify_mtype, compare_msyms): Delete.
6113 (search_minsyms_for_name): Remove classification logic. Instead
6114 filter out trampoline symbols if we also found an external
6115 function of the same name.
6116
ed6a896c
JB
61172020-09-13 Joel Brobecker <brobecker@adacore.com>
6118
6119 * NEWS: Create a new section for the next release branch.
6120 Rename the section of the current branch, now that it has
6121 been cut.
6122
32aea73e
JB
61232020-09-13 Joel Brobecker <brobecker@adacore.com>
6124
6125 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
6126 * version.in: Bump version to 11.0.50.DATE-git.
6127
8087c3fa
JB
61282020-09-12 Joel Brobecker <brobecker@adacore.com>
6129
6130 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
6131
2a67f09d
FW
61322020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
6133 Felix Willgerodt <Felix.Willgerodt@intel.com>
6134
6135 * gdbarch.sh: Added bfloat16 type.
6136 * gdbarch.c: Regenerated.
6137 * gdbarch.h: Regenerated.
6138 * gdbtypes.c (floatformats_bfloat16): New struct.
6139 (gdbtypes_post_init): Add builtin_bfloat16.
6140 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
6141 (floatformats_bfloat16): New struct.
6142 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
6143 (i386_ymm_type): Add field "v16_bfloat16"
6144 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
6145 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
6146 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
6147 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
6148 * features/i386/64bit-avx512.xml: Add bfloat16 type.
6149 * features/i386/64bit-avx512.c: Regenerated.
6150 * features/i386/64bit-sse.xml: Add bfloat16 type.
6151 * features/i386/64bit-sse.c: Regenerated.
6152
1347d111
FW
61532020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
6154
6155 * i386-tdep.c (i386_zmm_type): Fix field names.
6156 (i386_ymm_type): Fix field names.
6157
7a4e8e7d
TBA
61582020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6159
6160 * breakpoint.c: Fix typo in the help message of the
6161 "set breakpoint condition-evaluation" command.
6162
cf4ac4be
KR
61632020-09-10 Kamil Rytarowski <n54@gmx.com>
6164
6165 * nbsd-nat.c: Include "nat/netbsd-nat.h".
6166 * (nbsd_nat_target::pid_to_exec_file)
6167 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
6168 (nbsd_nat_target::post_startup_inferior)
6169 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
6170 (nbsd_add_threads): Switch local code to common gdb/nat functions.
6171 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
6172 * (nbsd_thread_lister): Remove.
6173
f404573e
KR
61742020-09-10 Kamil Rytarowski <n54@gmx.com>
6175
6176 * fork-inferior.c (startup_inferior): Avoid double free.
6177
1ccb2c17
KR
61782020-09-10 Kamil Rytarowski <n54@gmx.com>
6179
6180 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
6181 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
6182
feedfcc7
KR
61832020-09-10 Kamil Rytarowski <n54@gmx.com>
6184
6185 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
6186 * netbsd-nat.c: Include <sys/ptrace.h>.
6187 * (netbsd_nat::enable_proc_events): Add.
6188
c489f8c6
KR
61892020-09-10 Kamil Rytarowski <n54@gmx.com>
6190
6191 * netbsd-nat.h: Include "gdbsupport/function-view.h".
6192 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6193 (netbsd_nat::for_each_thread): Add.
6194 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
6195 "gdbsupport/common-debug.h".
6196 * (netbsd_nat::netbsd_thread_lister)
6197 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
6198 (netbsd_nat::for_each_thread): Add.
6199
330662f6
KR
62002020-09-10 Kamil Rytarowski <n54@gmx.com>
6201
6202 * netbsd-nat.h: Include <unistd.h>.
6203 * (netbsd_nat::pid_to_exec_file): Add.
6204 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
6205 * (netbsd_nat::pid_to_exec_file) Add.
6206
70b67307
KR
62072020-09-10 Kamil Rytarowski <n54@gmx.com>
6208
6209 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
6210
99cf6da6
KR
62112020-09-10 Kamil Rytarowski <n54@gmx.com>
6212
6213 * netbsd-nat.h: New file.
6214 * netbsd-nat.c: Likewise.
6215
1b788fb6
TT
62162020-09-09 Tom Tromey <tromey@adacore.com>
6217
6218 * ada-lang.c (remove_extra_symbols): Do not increment when
6219 removing an element
6220
03b0a45f
TT
62212020-09-08 Tom Tromey <tromey@adacore.com>
6222
6223 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
6224
3cae4447
TT
62252020-09-08 Tom Tromey <tromey@adacore.com>
6226
6227 PR win32/25302:
6228 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
6229 (gdb_bfd_init_data): New function.
6230 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
6231
7f08fd51
TBA
62322020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6233
6234 * infrun.c (fetch_inferior_event): Use
6235 `switch_to_target_no_thread` to switch the target.
6236
3e6ff933
TT
62372020-09-06 Tom Tromey <tom@tromey.com>
6238
6239 * symfile.h (dwarf2_free_objfile): Don't declare.
6240
e56798df
AKS
62412020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6242
6243 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
6244 to match 16 byte real/complex type generated by Flang compiler.
6245
8f5c6526
TV
62462020-09-03 Tom de Vries <tdevries@suse.de>
6247
6248 PR breakpoint/26546
6249 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
6250 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
6251
c5065df0
SM
62522020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * maint.c (index_digits): New function.
6255 (struct maint_print_section_data): Remove.
6256 (print_bfd_section_info): Remove print_data parameter, add arg
6257 and index_digits.
6258 (print_objfile_section_info): Likewise.
6259 (print_bfd_section_info_maybe_relocated): Likewise (plus
6260 objfile).
6261 (maintenance_info_sections): Adjust calls.
6262
02c6f3f1
TT
62632020-09-02 Tom Tromey <tromey@adacore.com>
6264
6265 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
6266 for null pointers.
6267 (ada_varobj_adjust_for_child_access): Special-case null pointers.
6268
ef5e5b0b
SM
62692020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
6270
6271 * bcache.h (struct bcache) <insert>: Change type of `added` to
6272 pointer to bool.
6273 * bcache.c (bcache::insert): Likewise.
6274 * gdbtypes.c (check_types_worklist): Adjust.
6275 * psymtab.c (add_psymbol_to_bcache): Adjust.
6276
973695d6
KB
62772020-08-31 Kevin Buettner <kevinb@redhat.com>
6278
6279 * corelow.c (unordered_set): Include.
6280 (class core_target): Add field 'm_core_unavailable_mappings'.
6281 (core_target::build_file_mappings): Print only one warning
6282 per inaccessible file. Add unavailable/broken mappings
6283 to m_core_unavailable_mappings.
6284 (core_target::xfer_partial): Call...
6285 (core_target::xfer_memory_via_mappings): New method.
6286
264fc0e2
SM
62872020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6288
6289 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
6290 type to bool.
6291
2de01bdb
SM
62922020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 * dwarf2/read.c (struct field_info): Fix indentation.
6295
f3bd50f1
SM
62962020-08-31 Simon Marchi <simon.marchi@efficios.com>
6297
6298 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
6299 ordering in comment.
6300 * frame.c (frame_id_eq): Fix indentation.
6301
22b9b4b0
SL
63022020-08-31 Scott Linder <scott@scottlinder.com>
6303 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
6306 inline frame ids in outer frame.
6307
84154d16
SM
63082020-08-31 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
6311 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
6312 (outer_frame_id): Use FID_STACK_OUTER instead of
6313 FID_STACK_INVALID.
6314 (frame_id_p): Don't check for outer_frame_id.
6315
8efaf6b3
SM
63162020-08-31 Simon Marchi <simon.marchi@efficios.com>
6317
6318 * frame-unwind.c (frame_unwind_got_optimized): Don't set
6319 regnum/frame in value. Call allocate_value_lazy.
6320 * frame.c (frame_unwind_register_value): Use
6321 val_print_not_saved.
6322
fe1fe7ea
SM
63232020-08-31 Simon Marchi <simon.marchi@efficios.com>
6324
6325 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
6326
f7c7700d
PA
63272020-08-29 Pedro Alves <pedro@palves.net>
6328
6329 * progspace.c (print_program_space): Use all_inferiors. Switch to
6330 the inferior before calling target_pid_to_str.
6331
e0814aae
TT
63322020-08-28 Tom Tromey <tom@tromey.com>
6333
6334 * xcoffread.c (xcoff_end_psymtab): Update comment.
6335 * dbxread.c (dbx_end_psymtab): Update comment.
6336
626d2320
TV
63372020-08-28 Tom de Vries <tdevries@suse.de>
6338
6339 PR breakpoint/26544
6340 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
6341 event_location.
6342 (create_breakpoint): Same.
6343 (base_breakpoint_decode_location): Same.
6344 (bkpt_create_sals_from_location): Same.
6345 (bkpt_decode_location): Same.
6346 (bkpt_probe_create_sals_from_location): Same.
6347 (bkpt_probe_decode_location): Same.
6348 (tracepoint_create_sals_from_location): Same.
6349 (tracepoint_decode_location): Same.
6350 (tracepoint_probe_decode_location): Same.
6351 (strace_marker_create_sals_from_location): Same.
6352 (strace_marker_decode_location): Same.
6353 (create_sals_from_location_default): Same.
6354 (decode_location_default): Same.
6355 * breakpoint.h (struct breakpoint_ops): Same.
6356 (create_breakpoint): Same.
6357 * linespec.h (decode_line_full): Same.
6358 * linespec.c (decode_line_full): Same. Throw error if
6359 result.size () == 0.
6360
df631783
PA
63612020-08-27 Pedro Alves <pedro@palves.net>
6362
6363 PR gdb/26524
6364 * breakpoint.c (until_break_fsm) <location_breakpoint,
6365 caller_breakpoint>: Delete fields.
6366 <breakpoints>: New field.
6367 <until_break_fsm>: Adjust to save a breakpoint vector instead of
6368 two individual breakpoints.
6369 (until_break_fsm::should_stop): Loop over breakpoints in the
6370 breakpoint vector.
6371 (until_break_fsm::clean_up): Adjust to clear the breakpoints
6372 vector.
6373 (until_break_command): Handle location expanding into multiple
6374 sals.
6375
b2b38aa4
PA
63762020-08-27 Pedro Alves <pedro@palves.net>
6377
6378 PR gdb/26523
6379 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
6380 bp_until breakpoints user-specified locations. Update intro
6381 comment.
6382
b886559f
SM
63832020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
6384
6385 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
6386 gdb_bfd_sections): New.
6387 * maint.c (print_bfd_section_info): Change param type to
6388 maint_print_section_data.
6389 (print_objfile_section_info): Likewise.
6390 (print_bfd_section_info_maybe_relocated): Likewise.
6391 (maintenance_info_sections): Use gdb_bfd_sections.
6392
4c6e63bf
SV
63932020-08-25 Shahab Vahedi <shahab@synopsys.com>
6394
6395 * MAINTAINERS: Add ARC target and maintainer.
6396
8d7f0635
AK
63972020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
6398
6399 * configure.tgt: ARC support for GNU/Linux.
6400 * Makefile.in (ALL_TARGET_OBJS): Likewise.
6401 * arc-linux-tdep.c: New file.
6402 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
6403 * arc-tdep.c (arc_write_pc): Use it.
6404
fdd8731b
SV
64052020-08-25 Shahab Vahedi <shahab@synopsys.com>
6406
6407 * arc-tdep.c (arc_check_for_hardware_loop): New.
6408 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
6409
22459524
SV
64102020-08-25 Shahab Vahedi <shahab@synopsys.com>
6411
6412 * arc-tdep.h: Include "gdbarch.h".
6413
995d3a19
SV
64142020-08-25 Shahab Vahedi <shahab@synopsys.com>
6415
6416 * arch/arc.h
6417 (arc_gdbarch_features): New class to stir the selection of target XML.
6418 (arc_create_target_description): Use FEATURES to choose XML target.
6419 (arc_lookup_target_description): Use arc_create_target_description
6420 to create _new_ target descriptions or return the already created
6421 ones if the FEATURES is the same.
6422 * arch/arc.c: Implementation of prototypes described above.
6423 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
6424 (arc_gdbarch_features_init): Initialize the FEATURES struct.
6425 * arc-tdep.c (*_feature_name): Make feature names consistent.
6426 (arc_register_feature): A new struct to hold information about
6427 registers of a particular target/feature.
6428 (arc_check_tdesc_feature): Check if XML provides registers in
6429 compliance with ARC_REGISTER_FEATURE structs.
6430 (arc_update_acc_reg_names): Add aliases for r58 and r59.
6431 (determine_*_reg_feature_set): Which feature name to look for.
6432 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
6433 (mach_type_to_arc_isa): Convert from a set of binutils machine types
6434 to expected ISA enums to be used in arc_gdbarch_features structs.
6435 * features/Makefile (FEATURE_XMLFILES): Add new files.
6436 * gdb/features/arc/v1-aux.c: New file.
6437 * gdb/features/arc/v1-aux.xml: Likewise.
6438 * gdb/features/arc/v1-core.c: Likewise.
6439 * gdb/features/arc/v1-core.xml: Likewise.
6440 * gdb/features/arc/v2-aux.c: Likewise.
6441 * gdb/features/arc/v2-aux.xml: Likewise.
6442 * gdb/features/arc/v2-core.c: Likewise.
6443 * gdb/features/arc/v2-core.xml: Likewise.
6444 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
6445
3945d2d7
GM
64462020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
6447 Andrew Burgess <andrew.burgess@embecosm.com>
6448
6449 PR m2/26372
fc5d6901 6450 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
6451 an assert. Remove single element array indexing pattern as the
6452 MULTI_SUBSCRIPT support will handle this case too.
6453
2677f2d3
SM
64542020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
6455
6456 * value.h (valprint_check_validity): Move declaration from
6457 here...
6458 * valprint.h (valprint_check_validity): ... to here.
6459
c426fddb
SM
64602020-08-24 Simon Marchi <simon.marchi@efficios.com>
6461
6462 * debug.h: New file.
6463 * debug.c (debug_prefixed_vprintf): New function.
6464 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
6465 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
6466
1eb8556f
SM
64672020-08-24 Simon Marchi <simon.marchi@efficios.com>
6468
6469 * infrun.h (infrun_debug_printf_1): New function declaration.
6470 (infrun_debug_printf): New macro.
6471 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
6472 throughout.
6473 (infrun_debug_printf): New function.
6474 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
6475 (handle_jit_event): Likewise.
6476
b8fff44e
MW
64772020-08-21 Mark Wielaard <mark@klomp.org>
6478
6479 * ada-lex.l: Extend register warnings diagnostics comment for g++.
6480
d19c3068
SM
64812020-08-22 Simon Marchi <simon.marchi@efficios.com>
6482
6483 * frame.c (enum class frame_id_status): New.
6484 (struct frame_info) <this_id::p>: Change type to frame_id_status.
6485 (fprintf_frame): Update.
6486 (compute_frame_id): Set frame id status to "computing" on entry.
6487 Set it back to "not_computed" on failure and to "computed" on
6488 success.
6489 (get_frame_id): Assert the frame id is not being computed.
6490 (create_sentinel_frame): Use frame_id_status::COMPUTED.
6491 (create_new_frame): Likewise.
6492 (frame_cleanup_after_sniffer): Update assert.
6493
b70e516e
SM
64942020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6495
6496 * regcache.c (pid_ptid_regcache_map): New type.
6497 (target_ptid_regcache_map): Remove.
6498 (target_pid_ptid_regcache_map): New type.
6499 (regcaches): Change type to target_pid_ptid_regcache_map.
6500 (get_thread_arch_aspace_regcache): Update.
6501 (regcache_thread_ptid_changed): Update, handle pid-like ptid
6502 case.
6503 (regcaches_size): Update.
6504 (regcache_count): Update.
6505 (registers_changed_ptid_target_pid_test): New.
6506 (_initialize_regcache): Register new test.
6507
cdd9148a
SM
65082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * regcache.c (regcache_count): New.
6511 (struct regcache_test_data): New.
6512 (regcache_test_data_up): New.
6513 (populate_regcaches_for_test): New.
6514 (regcaches_test): Remove.
6515 (get_thread_arch_aspace_regcache_test): New.
6516 (registers_changed_ptid_all_test): New.
6517 (registers_changed_ptid_target_test): New.
6518 (registers_changed_ptid_target_ptid_test): New.
6519 (regcache_thread_ptid_changed): Remove regcache_count lambda.
6520 (_initialize_regcache): Register new tests.
6521
dd125343
SM
65222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
6525 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
6526 gdbarch and aspace parameter. Use current inferior's aspace.
6527 Validate regcache's arch value.
6528 (regcaches_test): Update.
6529
3ee93972
SM
65302020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
6531
6532 * regcache.c (regcaches_test): Call registers_changed.
6533
33bf4c5c
TBA
65342020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6535
6536 * infrun.c (process_event_stop_test): Fix typo "breapoint".
6537
c2fd7fae
AKS
65382020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6539
6540 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
6541 to find the end of prologue for flang compiled binaries.
6542 * arm-tdep.c (arm_skip_prologue): Likewise.
6543 * i386-tdep.c (i386_skip_prologue): Likewise.
6544 * producer.c (producer_is_llvm): New function.
6545 (producer_parsing_tests): Added new tests for clang/flang.
6546 * producer.h (producer_is_llvm): New declaration.
6547
9327494e
SM
65482020-08-18 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * linux-nat.c (linux_nat_debug_printf): New function.
6551 (linux_nat_debug_printf_1): New macro. Use throughout the file.
6552
d138725a
AM
65532020-08-18 Aaron Merey <amerey@redhat.com>
6554
6555 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
6556 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
6557 (CLIBS): Add DEBUGINFOD_LIBS.
6558
f9b11e6b
ST
65592020-08-17 Sergei Trofimovich <siarheit@google.com>
6560
6561 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
6562 'gdbarch_num_regs'.
6563
3ae7ab99
TT
65642020-08-17 Tom Tromey <tromey@adacore.com>
6565
6566 * ada-varobj.c (ada_varobj_decode_var): Handle case where
6567 ada_get_decoded_value returns NULL.
6568
b017825f
TT
65692020-08-17 Tom Tromey <tromey@adacore.com>
6570
6571 * python/py-inferior.c (infpy_search_memory): Use
6572 gdb_py_object_from_ulongest.
6573 * python/py-infevents.c (create_inferior_call_event_object)
6574 (create_memory_changed_event_object): Use
6575 gdb_py_object_from_ulongest.
6576 * python/py-linetable.c (ltpy_entry_get_pc): Use
6577 gdb_py_object_from_ulongest.
6578
7635cf79
SM
65792020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6580
6581 * loc.c (class symbol_needs_eval_context): Fix indentation.
6582
f54be24b
SM
65832020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
6584
6585 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
6586 bool.
6587
53d5a2a5
TV
65882020-08-17 Tom de Vries <tdevries@suse.de>
6589
6590 PR gdb/26393
6591 * gdbtypes.c (dump_dynamic_prop): New function.
6592 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
6593
547ce8f0
TV
65942020-08-15 Tom de Vries <tdevries@suse.de>
6595
6596 PR backtrace/26390
6597 * stack.c (print_frame_args): Temporarily set the selected
6598 frame to FRAME while printing the frame's arguments.
6599
6ea815e7
PFC
66002020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6601
6602 PR breakpoints/26385
6603 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
6604 Always clear watchpoint with PTRACE_SET_DEBUGREG.
6605
6e562fa3
PFC
66062020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6607
6608 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
6609 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
6610 and >= to check return value instead of == -1 and != -1.
6611
d369b608
SM
66122020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
6613
6614 * utils.h (class gdb_argv) <as_array_view>: New method.
6615 * utils.c (gdb_argv_as_array_view_test): New.
6616 (_initialize_utils): Register selftest.
6617 * maint.c (maintenance_selftest): Use the new method.
6618
b31488a3
KR
66192020-08-13 Kamil Rytarowski <n54@gmx.com>
6620
6621 * target.h (supports_dumpcore, dumpcore): New
6622 function declarations.
6623 * target.c (supports_dumpcore, dumpcore): New
6624 functions.
6625 * target-delegates.c: Rebuild.
6626 * gcore.c (gcore_command): Use target_supports_dumpcore ()
6627 and target_dumpcore ().
6628
002a3166
AM
66292020-08-13 Aaron Merey <amerey@redhat.com>
6630
6631 * debuginfod-support.c: Replace global variables with user_data.
6632
ece5bc8a
SM
66332020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
6634
6635 * maint.c (maintenance_selftest): Split args and pass array_view
6636 to run_tests.
6637
6d8a0a5e
LM
66382020-08-12 Luis Machado <luis.machado@linaro.org>
6639
6640 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
6641 type's length.
6642 Use %s and pulongest to print the length.
6643
7cf663a9
PA
66442020-08-12 Pedro Alves <palves@redhat.com>
6645
6646 * NEWS: Move "Multi-target debugging support" item to the
6647 "Changes since GDB 9" section.
6648
27c7b875
PA
66492020-08-12 Pedro Alves <palves@redhat.com>
6650
6651 PR gdb/26336
6652 * progspace.c (program_space::remove_objfile): Invalidate the
6653 frame cache.
6654
1796a2a1
TV
66552020-08-11 Tom de Vries <tdevries@suse.de>
6656
6657 * MAINTAINERS: Mark ms1 as deleted.
6658
f8e3fe0d
LM
66592020-08-10 Luis Machado <luis.machado@linaro.org>
6660
6661 PR gdb/26310
6662
6663 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
6664 act accordingly.
6665 (aarch64_analyze_prologue_test): Add more unit tests to exercise
6666 movz/str/stur/stp skipping behavior.
6667
cc308722
LM
66682020-08-10 Luis Machado <luis.machado@linaro.org>
6669
6670 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
6671 struct user_sve_header instead of struct sve_context.
6672
041d9819
SM
66732020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
6674
6675 * read.h (dwarf2_fetch_die_loc_sect_off,
6676 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
6677 `void *` parameter with function_view.
6678 * read.c (dwarf2_fetch_die_loc_sect_off,
6679 dwarf2_fetch_die_loc_cu_off): Likewise.
6680 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
6681 (per_cu_dwarf_call): Adjust.
6682 (get_frame_address_in_block_wrapper): Remove.
6683 (indirect_synthetic_pointer): Adjust.
6684 (get_ax_pc): Remove.
6685 (dwarf2_compile_expr_to_ax): Adjust.
6686
38f8aa06
TV
66872020-08-08 Tom de Vries <tdevries@suse.de>
6688
6689 PR build/26344
6690 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
6691 constructor.
6692 * regcache.c (get_thread_arch_aspace_regcache): Same.
6693
a52b3ae2
TT
66942020-08-07 Tom Tromey <tromey@adacore.com>
6695
6696 * ravenscar-thread.c
6697 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
6698 New method.
6699 (ravenscar_thread_target::wait): Check
6700 runtime_initialized.
6701 (ravenscar_thread_target::prepare_to_store)
6702 (ravenscar_thread_target::stopped_by_sw_breakpoint)
6703 (ravenscar_thread_target::stopped_by_hw_breakpoint)
6704 (ravenscar_thread_target::stopped_by_watchpoint)
6705 (ravenscar_thread_target::stopped_data_address)
6706 (ravenscar_thread_target::core_of_thread): Use
6707 scoped_restore_current_thread and
6708 set_base_thread_from_ravenscar_task.
6709
0e29517d
TT
67102020-08-07 Tom Tromey <tromey@adacore.com>
6711
6712 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
6713
592f9bd7
TT
67142020-08-07 Tom Tromey <tromey@adacore.com>
6715
6716 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
6717 update_inferior_ptid before update_thread_list.
6718 (temporarily_change_regcache_ptid): New class.
6719 (ravenscar_thread_target::fetch_registers)
6720 (ravenscar_thread_target::store_registers)
6721 (ravenscar_thread_target::prepare_to_store): Use base thread when
6722 forwarding operation.
6723
39e2018a
TT
67242020-08-07 Tom Tromey <tromey@adacore.com>
6725
6726 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
6727 "is_pid" case.
6728
2080266b
TT
67292020-08-07 Tom Tromey <tromey@adacore.com>
6730
6731 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
6732 New methods.
6733 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6734 first.
6735 (ravenscar_thread_target::add_thread): Rename from
6736 ravenscar_add_thread.
6737 (ravenscar_thread_target::update_thread_list): Use a lambda.
6738 (ravenscar_thread_target::xfer_partial): New method.
6739
78c02f21
TT
67402020-08-07 Tom Tromey <tromey@adacore.com>
6741
6742 * ada-lang.h (ada_task_list_iterator_ftype): Now a
6743 gdb::function_view.
6744 (iterate_over_live_ada_tasks): Change type of argument.
6745 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
6746 of argument.
6747
d5d833af
TT
67482020-08-07 Tom Tromey <tromey@adacore.com>
6749
6750 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
6751 Remove.
6752 (ravenscar_thread_target::extra_thread_info): Remove.
6753 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
6754 defer to target beneath for non-Ravenscar threads.
6755
a8ac85bb
TT
67562020-08-07 Tom Tromey <tromey@adacore.com>
6757
6758 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
6759 get_base_thread_from_ravenscar_task>: Now methods.
6760 <m_cpu_map>: New member.
6761 (ravenscar_thread_target::get_thread_base_cpu): Rename from
6762 ravenscar_get_thread_base_cpu. Check m_cpu_map.
6763 (ravenscar_thread_target::task_is_currently_active): Update.
6764 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
6765 Now a method.
6766 (ravenscar_thread_target::add_active_thread): Put initial thread
6767 into the m_cpu_map.
6768
550ab58d
TT
67692020-08-07 Tom Tromey <tromey@adacore.com>
6770
6771 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
6772 event_ptid.
6773
e9546579
TT
67742020-08-07 Tom Tromey <tromey@adacore.com>
6775
6776 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
6777 runtime_initialized.
6778
3d4470e5
TT
67792020-08-07 Tom Tromey <tromey@adacore.com>
6780
6781 * ravenscar-thread.c (ravenscar_thread_target): Don't call
6782 add_active_thread.
6783 (ravenscar_thread_target::add_active_thread): Now public.
6784 (ravenscar_inferior_created): Call add_active_thread after pushing
6785 the target.
6786
888bdb2b
SM
67872020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
6788
6789 * regcache.c (ptid_regcache_map): New type.
6790 (target_ptid_regcache_map): New type.
6791 (regcaches): Change type to target_ptid_regcache_map.
6792 (get_thread_arch_aspace_regcache): Update to regcaches' new
6793 type.
6794 (regcache_thread_ptid_changed): Likewise.
6795 (registers_changed_ptid): Likewise.
6796 (regcaches_size): Likewise.
6797 (regcaches_test): Update.
6798 (regcache_thread_ptid_changed): Update.
6799 * regcache.h (regcache_up): New type.
6800 * gdbsupport/ptid.h (hash_ptid): New struct.
6801
b161a60d
SM
68022020-08-07 Simon Marchi <simon.marchi@efficios.com>
6803
6804 * observable.h (thread_ptid_changed): Add parameter
6805 `process_stratum_target *`.
6806 * infrun.c (infrun_thread_ptid_changed): Add parameter
6807 `process_stratum_target *` and use it.
6808 (selftests): New namespace.
6809 (infrun_thread_ptid_changed): New function.
6810 (_initialize_infrun): Register selftest.
6811 * regcache.c (regcache_thread_ptid_changed): Add parameter
6812 `process_stratum_target *` and use it.
6813 (regcache_thread_ptid_changed): New function.
6814 (_initialize_regcache): Register selftest.
6815 * thread.c (thread_change_ptid): Pass target to
6816 thread_ptid_changed observable.
6817
d2854d8d
CT
68182020-08-06 Caroline Tice <cmtice@google.com>
6819
fe4c3d43
SM
6820 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
6821 (struct dwp_sections): Update field comments. Add loclists and
6822 rnglists fields.
6823 (struct virtual_v2_dwo_sections): Rename struct to
6824 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
6825 size & offset fields for loclists and rnglists.
6826 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
6827 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
6828 skipping dummy type units.
6829 (create_dwp_hash_table): Update the large comment above the function to
6830 discuss Version 5 DWP files as well, with references. Update all the
6831 version checks in the function to check for version 5 as well. Add new
6832 section at the end to create dwp hash table for version 5.
6833 (create_dwp_v2_section): Rename function to
6834 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
6835 Add V5 to error message text.
6836 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
6837 into calls to create_dwp_v2_or_v5_section.
6838 (create_dwo_unit_in_dwp_v5): New function.
6839 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
6840 check for version2; add else clause to handle version 5.
6841 (open_and_init_dwo_file): Add code to check dwarf version & only call
6842 create_debug_types_hash_table (with sections.types) if version is not 5;
6843 else call create_debug_type_hash_table, with sections.info.
6844 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
6845 version 5.
6846 (dwarf2_locate_v5_dwp_sections): New function.
6847 (open_and_init_dwp_file): Add else-if clause for version 5 to call
6848 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 6849
159ed7d9
SM
68502020-08-06 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * regcache.h (class regcache): Remove friend
6853 registers_changed_ptid.
6854 <regcache_thread_ptid_changed>: Remove.
6855 <regcaches>: Remove.
6856 * regcache.c (regcache::regcaches): Rename to...
6857 (regcaches): ... this. Make static.
6858 (get_thread_arch_aspace_regcache): Update.
6859 (regcache::regcache_thread_ptid_changed): Rename to...
6860 (regcache_thread_ptid_changed): ... this. Update.
6861 (class regcache_access): Remove.
6862 (regcaches_test): Update.
6863 (_initialize_regcache): Update.
6864 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
6865 <forward_list>.
6866
174981ae
SM
68672020-08-06 Simon Marchi <simon.marchi@efficios.com>
6868
6869 * regcache.h (class regcache) <current_regcache>: Rename to...
6870 <regcaches>: ... this. Move doc here.
6871 * regcache.c (regcache::current_regcache) Rename to...
6872 (regcache::regcaches): ... this. Move doc to header.
6873 (get_thread_arch_aspace_regcache): Update.
6874 (regcache::regcache_thread_ptid_changed): Update.
6875 (registers_changed_ptid): Update.
6876 (class regcache_access) <current_regcache_size>: Rename to...
6877 <regcaches_size>: ... this.
6878 (current_regcache_test): Rename to...
6879 (regcaches_test): ... this.
6880 (_initialize_regcache): Update.
6881
ed908db6
VC
68822020-08-06 Victor Collod <vcollod@nvidia.com>
6883
6884 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
6885
b5582ab7
KB
68862020-08-05 Kevin Buettner <kevinb@redhat.com>
6887
6888 * corelow.c (core_target::build_file_mappings): Don't output
6889 null pathname in warning.
6890
ea946b86
SM
68912020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
6892
6893 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
6894 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
6895 gdb.dwarf2/dw2-single-line-discriminators.exp,
6896 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
6897
57d02173
TT
68982020-08-05 Tom Tromey <tromey@adacore.com>
6899
6900 PR rust/26197:
6901 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
6902 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
6903 Fix off-by-one and type size errors in ordinary case.
6904
5555c86d
TV
69052020-08-05 Tom de Vries <tdevries@suse.de>
6906
6907 * gdbtypes.c (type_not_allocated, type_not_associated): Use
6908 "prop->const_val () == 0" instead of "prop->const_val () != 0".
6909
97916bfe
SM
69102020-08-04 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * frame.h (frame_id_p): Return bool.
6913 (frame_id_artificial_p): Return bool.
6914 (frame_id_eq): Return bool.
6915 (has_stack_frames): Return bool.
6916 (get_selected_frame): Fix typo in comment.
6917 (get_frame_pc_if_available): Return bool.
6918 (get_frame_address_in_block_if_available): Return bool.
6919 (get_frame_func_if_available): Return bool.
6920 (read_frame_register_unsigned): Return bool.
6921 (get_frame_register_bytes): Return bool.
6922 (safe_frame_unwind_memory): Return bool.
6923 (deprecated_frame_register_read): Return bool.
6924 (frame_unwinder_is): Return bool.
6925 * frame.c (struct frame_info) <prev_arch::p>: Change type to
6926 bool.
6927 <this_id::p>: Likewise.
6928 <prev_p>: Likewise.
6929 (frame_stash_add): Return bool.
6930 (get_frame_id): Use bool.
6931 (frame_id_build_special) Use bool.
6932 (frame_id_build_unavailable_stack): Use bool.
6933 (frame_id_build): Use bool.
6934 (frame_id_p): Return bool, use true/false instead of 1/0.
6935 (frame_id_artificial_p): Likewise.
6936 (frame_id_eq): Likewise.
6937 (frame_id_inner): Likewise.
6938 (get_frame_func_if_available): Likewise.
6939 (read_frame_register_unsigned): Likewise.
6940 (deprecated_frame_register_read): Likewise.
6941 (get_frame_register_bytes): Likewise.
6942 (has_stack_frames): Likewise.
6943 (inside_main_func): Likewise.
6944 (inside_entry_func): Likewise.
6945 (get_frame_pc_if_available): Likewise.
6946 (get_frame_address_in_block_if_available): Likewise.
6947 (frame_unwinder_is): Likewise.
6948 (safe_frame_unwind_memory): Likewise.
6949 (frame_unwind_arch): Likewise.
6950
fedfee88
SM
69512020-08-04 Simon Marchi <simon.marchi@efficios.com>
6952
6953 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
6954 type to cached_copy_status.
6955 (fprintf_frame): Adjust.
6956 (get_frame_func_if_available): Adjust.
6957 (frame_cleanup_after_sniffer): Adjust.
6958
6cfa9b59
MW
69592020-08-04 Mark Wielaard <mark@klomp.org>
6960
6961 * MAINTAINERS (Write After Approval): Update email address.
6962
66d6346b
SM
69632020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6964
6965 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
6966 dynamic_prop::const_val.
6967
8a6d5e35
SM
69682020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6969
6970 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
6971 dynamic_prop::kind.
6972
51d6067d
SM
69732020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6974
6975 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
6976
b26e2ae7
JM
69772020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
6978
6979 * configure.tgt: Set gdb_sim for bpf-*-* targets.
6980
39791af2
JM
69812020-08-04 Weimin Pan <weimin.pan@oracle.com>
6982 Jose E. Marchesi <jose.marchesi@oracle.com>
6983
6984 * configure.tgt: Add entry for bpf-*-*.
6985 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
6986 (ALLDEPFILES): Add bpf-tdep.c.
6987 * bpf-tdep.c: New file.
6988 * MAINTAINERS: Add bpf target and maintainer.
6989 * NEWS: Mention the support for the new target.
6990
521894aa
TV
69912020-08-04 Tom de Vries <tdevries@suse.de>
6992
6993 PR symtab/23270
6994 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
6995 Error.
6996
5d6356e9
JB
69972020-08-03 John Baldwin <jhb@FreeBSD.org>
6998
6999 * syscalls/freebsd.xml: Regenerate.
7000
0cf82b81
JB
70012020-08-03 John Baldwin <jhb@FreeBSD.org>
7002
7003 * syscalls/update-freebsd.sh: Fix usage and year range.
7004
8f34b746
TV
70052020-08-03 Tom de Vries <tdevries@suse.de>
7006
7007 PR symtab/26333
7008 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
7009 DW_LNE_lo_user/DW_LNE_hi_user range.
7010
5e500d33
SM
70112020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
7012
7013 PR ada/26318
7014 * ada-lang.c (ada_modulus): Return 0 if property is not of const
7015 kind.
7016
78319c15
TBA
70172020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7018
7019 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
7020
4c55e970
TBA
70212020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7022
7023 * breakpoint.c (set_breakpoint_condition): Update the condition
7024 expressions after checking that the input condition string parses
7025 successfully and does not contain junk at the end.
7026
1e620590
TBA
70272020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7028
7029 * breakpoint.c (set_breakpoint_condition): Update the
7030 condition string after parsing the new condition successfully.
7031
c8693053
RO
70322020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7033
7034 * proc-api.c (_STRUCTURED_PROC): Don't define.
7035 * proc-events.c: Likewise.
7036 * proc-flags.c: Likewise.
7037 * proc-why.c: Likewise.
7038 * procfs.c: Likewise.
7039
7040 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
7041 * configure, config.in: Regenerate.
7042
5a99adb8
TV
70432020-07-30 Tom de Vries <tdevries@suse.de>
7044
7045 PR build/26320
7046 * ui-style.h (struct ui_file_style::color): Wrap m_value and
7047 m_red/m_green/m_blue in a union.
7048
8ba83e91
TV
70492020-07-29 Tom de Vries <tdevries@suse.de>
7050
7051 PR tdep/26280
7052 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
7053
f75a0693
AB
70542020-07-28 Tom Tromey <tromey@adacore.com>
7055
7056 PR symtab/26270:
7057 * symtab.h (find_pc_partial_function_sym): Declare.
7058 * cli/cli-cmds.c (disassemble_command): Use
7059 find_pc_partial_function_sym. Check asm_demangle.
7060 * blockframe.c (cache_pc_function_sym): New global.
7061 (cache_pc_function_name): Remove.
7062 (clear_pc_function_cache): Update.
7063 (find_pc_partial_function_sym): New function, from
7064 find_pc_partial_function.
7065 (find_pc_partial_function): Rewrite using
7066 find_pc_partial_function_sym.
7067
16f3242c
TT
70682020-07-28 Tom Tromey <tromey@adacore.com>
7069
7070 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
7071 help. Add usage.
7072
4888741a
TT
70732020-07-28 Tom Tromey <tromey@adacore.com>
7074
7075 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
7076 <DW_OP_GNU_variable_value>: Cast to address type.
7077
4d46f402
KR
70782020-07-28 Kamil Rytarowski <n54@gmx.com>
7079
7080 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
7081 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
7082 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
7083 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
7084 (nbsd_get_siginfo_type): New.
7085 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7086 (_initialize_nbsd_tdep): New.
7087
d70f978b
L
70882020-07-28 H.J. Lu <hongjiu.lu@intel.com>
7089
7090 PR binutils/26301
7091 * configure: Regenerated.
7092
377170fa
L
70932020-07-28 H.J. Lu <hongjiu.lu@intel.com>
7094
7095 PR binutils/26301
7096 * configure: Regenerated.
7097
43d5901d
AB
70982020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7099
7100 * python/py-frame.c: Remove 'user-regs.h' include.
7101 (frapy_read_register): Rewrite to make use of
7102 gdbpy_parse_register_id.
7103 * python/py-registers.c (gdbpy_parse_register_id): New function,
7104 moved here from python/py-unwind.c. Updated the return type, and
7105 also accepts register descriptor objects.
7106 * python/py-unwind.c: Remove 'user-regs.h' include.
7107 (pyuw_parse_register_id): Moved to python/py-registers.c.
7108 (unwind_infopy_add_saved_register): Update to use
7109 gdbpy_parse_register_id.
7110 (pending_framepy_read_register): Likewise.
7111 * python/python-internal.h (gdbpy_parse_register_id): Declare.
7112
14fa8fb3
AB
71132020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
7114
7115 * python/py-registers.c: Add 'user-regs.h' include.
7116 (register_descriptor_iter_find): New function.
7117 (register_descriptor_iterator_object_methods): New static global
7118 methods array.
7119 (register_descriptor_iterator_object_type): Add pointer to methods
7120 array.
7121
ddce1758
JB
71222020-07-27 John Baldwin <jhb@FreeBSD.org>
7123
7124 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
7125 for all architectures on FreeBSD 11.3 and later.
7126
a4089f52
TT
71272020-07-27 Tom Tromey <tromey@adacore.com>
7128
7129 * gcore.h (load_corefile): Don't declare.
7130
95420d30
TV
71312020-07-27 Tom de Vries <tdevries@suse.de>
7132
7133 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
7134 * config.in: Regenerate.
7135 * configure: Regenerate.
7136
05a6b8c2
EZ
71372020-07-26 Eli Zaretskii <eliz@gnu.org>
7138
7139 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
7140 ws2tcpip.h. When checking whether socklen_t type is defined, use
7141 ws2tcpip.h if it is available and sys/socket.h isn't.
7142 * configure: Regenerate.
7143 * config.in: Regenerate.
7144
e79eb02f
AB
71452020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
7146
7147 PR fortran/23051
7148 PR fortran/26139
7149 * valops.c (value_ind): Pass address to
7150 readjust_indirect_value_type.
7151 * value.c (readjust_indirect_value_type): Make parameter
7152 non-const, and add extra address parameter. Resolve original type
7153 before using it.
7154 * value.h (readjust_indirect_value_type): Update function
7155 signature and comment.
7156
876518dd
TV
71572020-07-25 Tom de Vries <tdevries@suse.de>
7158
7159 PR symtab/26243
7160 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
7161 entries.
7162
f6720b1c
AM
71632020-07-24 Aaron Merey <amerey@redhat.com>
7164
7165 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
7166 * configure: Rebuild.
7167
513487e1
KB
71682020-07-23 Kevin Buettner <kevinb@redhat.com>
7169
7170 PR corefiles/26294
7171 * corelow.c (_initialize_corelow): Add period to help text
7172 for "maintenance print core-file-backed-mappings".
7173
e7bc9db8
PA
71742020-07-23 Pedro Alves <pedro@palves.net>
7175
7176 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
7177 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
7178 meanwhile.
7179 * frame.c (frame_cache_generation, get_frame_cache_generation):
7180 New.
7181 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
7182 (get_prev_frame_if_no_cycle): On exception, don't touch
7183 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
7184 * frame.h (get_frame_cache_generation): Declare.
7185
90fcc466
TV
71862020-07-23 Tom de Vries <tdevries@suse.de>
7187
7188 PR tui/26282
7189 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
7190 New default constructor.
7191
78344df7
AB
71922020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
7195 exclude non-statement entries.
7196
b089853a
KB
71972020-07-22 Kevin Buettner <kevinb@redhat.com>
7198
7199 * NEWS (New commands): Mention new command
7200 "maintenance print core-file-backed-mappings".
7201
09c2f5d4
KB
72022020-07-22 Kevin Buettner <kevinb@redhat.com>
7203
7204 * corelow.c (gdbcmd.h): Include.
7205 (core_target::info_proc_mappings): New method.
7206 (get_current_core_target): New function.
7207 (maintenance_print_core_file_backed_mappings): New function.
7208 (_initialize_corelow): Add core-file-backed-mappings to
7209 "maint print" commands.
7210
9c5ec5c2 72112020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 7212
9c5ec5c2
KB
7213 * linux-tdep.c (dump_note_entry_p): New function.
7214 (linux_dump_mapping_p_ftype): New typedef.
7215 (linux_find_memory_regions_full): Add new parameter,
7216 should_dump_mapping_p.
7217 (linux_find_memory_regions): Adjust call to
7218 linux_find_memory_regions_full.
7219 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
7220 call to linux_find_memory_regions_full.
7221
db082f59
KB
72222020-07-22 Kevin Buettner <kevinb@redhat.com>
7223
7224 * corelow.c (solist.h, unordered_map): Include.
7225 (class core_target): Add field m_core_file_mappings and
7226 method build_file_mappings.
7227 (core_target::core_target): Call build_file_mappings.
7228 (core_target::~core_target): Free memory associated with
7229 m_core_file_mappings.
7230 (core_target::build_file_mappings): New method.
7231 (core_target::xfer_partial): Use m_core_file_mappings
7232 for memory transfers.
7233 * linux-tdep.c (linux_read_core_file_mappings): New
7234 function.
7235 (linux_core_info_proc_mappings): Rewrite to use
7236 linux_read_core_file_mappings.
7237 (linux_init_abi): Register linux_read_core_file_mappings.
7238
7e183d27
KB
72392020-07-22 Kevin Buettner <kevinb@redhat.com>
7240
7241 * arch-utils.c (default_read_core_file_mappings): New function.
7242 * arch-utils.c (default_read_core_file_mappings): Declare.
7243 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
7244 * gdbarch.h, gdbarch.c: Regenerate.
7245
2735d421
KB
72462020-07-22 Kevin Buettner <kevinb@redhat.com>
7247
7248 PR corefiles/25631
7249 * corelow.c (core_target:xfer_partial): Revise
7250 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
7251 case after first checking the stratum beneath the core
7252 target.
7253 (has_all_memory): Return true.
7254 * target.c (raw_memory_xfer_partial): Revise comment
7255 regarding use of has_all_memory.
7256
e56cb451
KB
72572020-07-22 Kevin Buettner <kevinb@redhat.com>
7258
7259 * exec.h (section_table_xfer_memory): Revise declaration,
7260 replacing section name parameter with an optional callback
7261 predicate.
7262 * exec.c (section_table_xfer_memory): Likewise.
7263 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
7264 of section_table_xfer_memory.
7265
32fa152e
TT
72662020-07-22 Tom Tromey <tromey@adacore.com>
7267
7268 * mi/mi-cmd-stack.c (list_args_or_locals): Use
7269 lookup_symbol_search_name.
7270
a67a1c41
AB
72712020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * python/py-registers.c (gdbpy_register_object_data_init): Remove
7274 redundant local variable.
7275 (gdbpy_get_register_descriptor): Extract descriptor vector as a
7276 reference, not pointer, update code accordingly.
7277
a7b4ff4f
SM
72782020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7279 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7280
7281 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
7282 * jit.c (jit_breakpoint_re_set_internal): Use the
7283 `skip_jit_symbol_lookup` field.
7284
2340e834
SM
72852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7286 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7287
7288 * jit.c (jit_read_descriptor): Define the descriptor address once,
7289 use twice.
7290 (jit_breakpoint_deleted): Move the declaration of the loop variable
7291 `iter` into the loop header.
7292 (jit_breakpoint_re_set_internal): Move the declaration of the local
7293 variable `objf_data` to the first point of definition.
7294 (jit_event_handler): Move the declaration of local variables
7295 `code_entry`, `entry_addr`, and `objf` to their first point of use.
7296 Rename `objf` to `jited`.
7297
c1072906
SM
72982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7299
7300 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
7301 Remove.
7302 * jit.c (get_jiter_objfile_data): Update.
7303
c8474dc3
TBA
73042020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7305 Simon Marchi <simon.marchi@polymtl.ca>
7306
7307 * jit.c (struct jit_program_space_data): Remove.
7308 (jit_program_space_key): Remove.
7309 (jiter_objfile_data::~jiter_objfile_data): Remove program space
7310 stuff.
7311 (get_jit_program_space_data): Remove.
7312 (jit_breakpoint_deleted): Iterate on all of the program space's
7313 objfiles.
7314 (jit_inferior_init): Likewise.
7315 (jit_breakpoint_re_set_internal): Likewise. Also change return
7316 type to void.
7317 (jit_breakpoint_re_set): Pass current_program_space to
7318 jit_breakpoint_re_set_internal.
7319
77208eb7
SM
73202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7321
7322 * jit.h (struct jiter_objfile_data) <cached_code_address,
7323 jit_breakpoint>: Move to here from ...
7324 * jit.c (jit_program_space_data): ... here.
7325 (jiter_objfile_data::~jiter_objfile_data): Update.
7326 (jit_breakpoint_deleted): Update.
7327 (jit_breakpoint_re_set_internal): Update.
7328
8c1c720f
SM
73292020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7330
7331 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
7332 checks.
7333 (jit_read_descriptor): Remove NULL check.
7334 (jit_event_handler): Add an assertion.
7335
0e74a041
SM
73362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7337
7338 * jit.h (struct jit_objfile_data): Split into...
7339 (struct jiter_objfile_data): ... this ...
7340 (struct jited_objfile_data): ... and this.
7341 * objfiles.h (struct objfile) <jit_data>: Remove.
7342 <jiter_data, jited_data>: New fields.
7343 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
7344 (jiter_objfile_data::~jiter_objfile_data): ... this.
7345 (get_jit_objfile_data): Rename to ...
7346 (get_jiter_objfile_data): ... this.
7347 (add_objfile_entry): Update.
7348 (jit_read_descriptor): Use get_jiter_objfile_data.
7349 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
7350 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
7351 (jit_inferior_exit_hook): Use objfile's jited_data field.
7352
238b5c9f
SM
73532020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
7354
7355 * jit.h: Forward-declare `struct minimal_symbol`.
7356 (struct jit_objfile_data): Migrate to here from jit.c; also add a
7357 constructor, destructor, and an objfile* field.
7358 * jit.c (jit_objfile_data): Remove.
7359 (struct jit_objfile_data): Migrate from here to jit.h.
7360 (jit_objfile_data::~jit_objfile_data): New destructor
7361 implementation with code moved from free_objfile_data.
7362 (free_objfile_data): Delete.
7363 (get_jit_objfile_data): Update to use the jit_data field of objfile.
7364 (jit_find_objf_with_entry_addr): Ditto.
7365 (jit_inferior_exit_hook): Ditto.
7366 (_initialize_jit): Remove the call to
7367 register_objfile_data_with_cleanup.
7368 * objfiles.h (struct objfile) <jit_data>: New field.
7369
fe053b9e
TBA
73702020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7371
7372 * jit.h: Forward-declare `struct objfile`.
7373 (jit_event_handler): Add a second parameter, the JITer objfile.
7374 * jit.c (jit_read_descriptor): Change the signature to take the
7375 JITer objfile as an argument instead of the jit_program_space_data.
7376 (jit_inferior_init): Update the call to jit_read_descriptor.
7377 (jit_event_handler): Use the new JITer objfile argument when calling
7378 jit_read_descriptor.
7379 * breakpoint.c (handle_jit_event): Update the call to
7380 jit_event_handler to pass the JITer objfile.
7381
4cec0c66
JB
73822020-07-21 John Baldwin <jhb@FreeBSD.org>
7383
7384 * gdbarch.c: Regenerate.
7385 * gdbarch.h: Regenerate.
7386 * gdbarch.sh (handle_segmentation_fault): Remove method.
7387 * infrun.c (handle_segmentation_fault): Remove.
7388 (print_signal_received_reason): Remove call to
7389 handle_segmentation_fault.
7390
0e42f66a
JB
73912020-07-21 John Baldwin <jhb@FreeBSD.org>
7392
7393 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7394 Rename to sparc64_linux_report_signal_info and add siggnal
7395 argument.
7396 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
7397 instead of sparc64_linux_handle_segmentation_fault.
7398
77bdfeb2
JB
73992020-07-21 John Baldwin <jhb@FreeBSD.org>
7400
7401 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
7402 i386_linux_report_signal_info instead of
7403 i386_linux_handle_segmentation_fault.
7404 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
7405 to i386_linux_report_signal_info and add siggnal argument.
7406 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
7407 of i386_linux_handle_segmentation_fault.
7408 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
7409 to i386_linux_report_signal_info and add siggnal argument.
7410
ad97bfc5
JB
74112020-07-21 John Baldwin <jhb@FreeBSD.org>
7412
7413 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
7414 hook if present.
7415
272bb05c
JB
74162020-07-21 John Baldwin <jhb@FreeBSD.org>
7417
7418 * gdbarch.c: Regenerate.
7419 * gdbarch.h: Regenerate.
7420 * gdbarch.sh (report_signal_info): New method.
7421 * infrun.c (print_signal_received_reason): Invoke gdbarch
7422 report_signal_info hook if present.
7423
baf8791e
AB
74242020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7425
7426 * python/py-registers.c : Add 'unordered_map' include.
7427 (gdbpy_new_reggroup): Renamed to...
7428 (gdbpy_get_reggroup): ...this. Update to only create register
7429 group descriptors when needed.
7430 (gdbpy_reggroup_iter_next): Update.
7431
f7306dac
AB
74322020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * python/py-registers.c (gdbpy_register_object_data): New static
7435 global.
7436 (gdbpy_register_object_data_init): New function.
7437 (gdbpy_new_register_descriptor): Renamed to...
7438 (gdbpy_get_register_descriptor): ...this, and update to reuse
7439 existing register descriptors where possible.
7440 (gdbpy_register_descriptor_iter_next): Update.
7441 (gdbpy_initialize_registers): Register new gdbarch data.
7442
05c309a8
SM
74432020-07-21 Simon Marchi <simon.marchi@efficios.com>
7444
7445 * linux-nat.c (stopped_pids): Make static.
7446
d1fd641e
SM
74472020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
7448
7449 PR ada/26235
7450 * gdbtypes.c (ada_discrete_type_low_bound,
7451 ada_discrete_type_high_bound): Handle undefined bounds.
7452
1de14d77
KR
74532020-07-21 Kamil Rytarowski <n54@gmx.com>
7454
7455 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
7456 declaration.
7457 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
7458 function.
7459
ed810cc7
JB
74602020-07-20 John Baldwin <jhb@FreeBSD.org>
7461
7462 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
7463 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
7464 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
7465 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
7466 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
7467 method.
7468
ae5369e7
LC
74692020-07-20 Ludovic Courtès <ludo@gnu.org>
7470
7471 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
7472 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
7473 which are deprecated in Guile 3.0.
7474 * configure.ac (try_guile_versions): Add "guile-3.0".
7475 * configure (try_guile_versions): Regenerate.
7476 * NEWS: Update entry.
7477
68cf161c
LC
74782020-07-20 Ludovic Courtès <ludo@gnu.org>
7479 Doug Evans <dje@google.com>
7480
7481 PR gdb/21104
7482 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
7483 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
7484 USING_GUILE_BEFORE_2_2.
7485 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
7486 Change type to 'scm_t_port_type *'.
7487 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
7488 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
7489 parameter and honor it. Update callers.
7490 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
7491 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
7492 functions.
7493 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
7494 USING_GUILE_BEFORE_2_2.
7495 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
7496 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
7497 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
7498 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
7499 and 'SCM_PORT_TYPE'.
7500 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
7501 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
7502 (gdbscm_memory_port_read, gdbscm_memory_port_write)
7503 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
7504 [!USING_GUILE_BEFORE_2_2]: New functions.
7505 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
7506 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
7507 'gdbscm_memory_port_read'.
7508 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
7509 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
7510 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
7511 function.
7512 (ioscm_init_memory_port): Remove.
7513 (ioscm_init_memory_port_stream): New function
7514 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
7515 function.
7516 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7517 Return scm_from_uint (0).
7518 (gdbscm_set_memory_port_read_buffer_size_x)
7519 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7520 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
7521 Return scm_from_uint (0).
7522 (gdbscm_set_memory_port_write_buffer_size_x)
7523 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
7524 * configure.ac (try_guile_versions): Add "guile-2.2".
7525 * configure: Regenerate.
7526 * NEWS: Add entry.
7527
aee91db3
TT
75282020-07-18 Tom Tromey <tom@tromey.com>
7529
7530 * linux-nat.c (linux_multi_process): Remove.
7531 (linux_nat_target::supports_multi_process): Return true.
7532
0e267416
AB
75332020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7534
7535 * arch/riscv.c (riscv_tdesc_cache): Change map type.
7536 (riscv_lookup_target_description): Return pointer out of
7537 unique_ptr.
7538 * target-descriptions.c (allocate_target_description): Add
7539 comment.
7540 (target_desc_deleter::operator()): Likewise.
7541 * target-descriptions.h (struct target_desc_deleter): Moved to
7542 gdbsupport/tdesc.h.
7543 (target_desc_up): Likewise.
7544
f80c8ec4
TT
75452020-07-17 Tom Tromey <tromey@adacore.com>
7546
7547 * linux-nat.c (linux_nat_target::supports_non_stop)
7548 (linux_nat_target::always_non_stop_p): Use "true".
7549 (linux_nat_target::supports_disable_randomization): Use "true" and
7550 "false".
7551
d0ce17d8
CT
75522020-07-16 Caroline Tice <cmtice@google.com>
7553
7554 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
7555 (RNGLIST_HEADER_SIZE64): New constant definition.
7556 (struct dwop_section_names): Add rnglists_dwo.
7557 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
7558 (struct loclist_header): Rename to 'loclists_rnglists_header'.
7559 (struct dwo_sections): Add rnglists field.
7560 (read_attribut_reprocess): Add tag parameter.
7561 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
7562 (cu_debug_rnglists_section): New function (decl & definition).
7563 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
7564 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
7565 die whose range is being checked; get rnglist section from
7566 cu_debug_rnglists_section, to get from either objfile or dwo file as
7567 appropriate. Add cases for DW_RLE_base_addressx,
7568 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
7569 the base address to DW_RLE_offset_pairs (not to all ranges), moving
7570 test inside if-condition and updating complaint message.
7571 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
7572 dwarf2_rnglists_process.
7573 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
7574 dwarf2_ranges_process.
7575 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
7576 need_ranges_base and update comment appropriately. Also pass die tag
7577 to dwarf2_ranges_read.
7578 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
7579 need_ranges_base and update comment appropriately. Also pass die tag
7580 to dwarf2_ranges_process.
7581 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
7582 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
7583 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
7584 need_ranges_base and update comment appropriately. Also pass die tag
7585 to read_attribute_reprocess and dwarf2_ranges_read.
7586 (read_loclist_header): Rename function to read_loclists_rnglists_header,
7587 and update function comment appropriately.
7588 (read_loclist_index): Call read_loclists_rnglists_header instead of
7589 read_loclist_header.
7590 (read_rnglist_index): New function.
7591 (read_attribute_reprocess): Add tag parameter. Add code for
7592 DW_FORM_rnglistx, passing tag to read_rnglist_index.
7593 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
7594
3dcc261c
AB
75952020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
7596
7597 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
7598 being resolved.
7599
ccb9eba6
AB
76002020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
7601
7602 * arch-utils.c (show_architecture): Update formatting of messages.
7603
cf88be68
SM
76042020-07-12 Simon Marchi <simon.marchi@efficios.com>
7605
7606 * gdbtypes.h (struct type) <bounds>: Handle array and string
7607 types.
7608 * ada-lang.c (assign_aggregate): Use type::bounds on
7609 array/string type.
7610 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
7611 * c-varobj.c (c_number_of_children): Likewise.
7612 (c_describe_child): Likewise.
7613 * eval.c (evaluate_subexp_for_sizeof): Likewise.
7614 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
7615 (f_type_print_base): Likewise.
7616 * f-valprint.c (f77_array_offset_tbl): Likewise.
7617 (f77_get_upperbound): Likewise.
7618 (f77_print_array_1): Likewise.
7619 * guile/scm-type.c (gdbscm_type_range): Likewise.
7620 * m2-typeprint.c (m2_array): Likewise.
7621 (m2_is_long_set_of_type): Likewise.
7622 * m2-valprint.c (get_long_set_bounds): Likewise.
7623 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7624 * python/py-type.c (typy_range): Likewise.
7625 * rust-lang.c (rust_internal_print_type): Likewise.
7626 * type-stack.c (type_stack::follow_types): Likewise.
7627 * valarith.c (value_subscripted_rvalue): Likewise.
7628 * valops.c (value_cast): Likewise.
7629
509971ae
SM
76302020-07-12 Simon Marchi <simon.marchi@efficios.com>
7631
7632 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
7633 callers to use the equivalent accessor methods.
7634
107406b7
SM
76352020-07-12 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
7638 (struct type) <bit_stride>: New method.
7639 (TYPE_BIT_STRIDE): Remove.
7640 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
7641
bb789949
SM
76422020-07-12 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
7645 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
7646 callers to use the equivalent accessor methods instead.
7647
39498edb
SM
76482020-07-12 Simon Marchi <simon.marchi@efficios.com>
7649
7650 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
7651 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
7652 callers to use the equivalent accessor methods instead.
7653
3b606f38
SM
76542020-07-12 Simon Marchi <simon.marchi@efficios.com>
7655
7656 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
7657 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
7658 to use dynamic_prop::kind.
7659
064d9cb9
SM
76602020-07-12 Simon Marchi <simon.marchi@efficios.com>
7661
7662 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
7663 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
7664 to get the bound property's kind and check against
7665 PROP_UNDEFINED.
7666
5537ddd0
SM
76672020-07-12 Simon Marchi <simon.marchi@efficios.com>
7668
7669 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
7670 all callers to use type::range_bounds followed by
7671 dynamic_prop::{low,high}.
7672
8c2e4e06
SM
76732020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7674
7675 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
7676 const_val, set_const_val, baton, set_locexpr, set_loclist,
7677 set_addr_offset, variant_parts, set_variant_parts,
7678 original_type, set_original_type>: New methods.
7679 <kind>: Rename to...
7680 <m_kind>: ... this. Update all users to use the new methods
7681 instead.
7682 <data>: Rename to...
7683 <m_data>: ... this. Update all users to use the new methods
7684 instead.
7685
7c6f2712
SM
76862020-07-12 Simon Marchi <simon.marchi@efficios.com>
7687
7688 * gdbtypes.c (get_discrete_bounds): Return failure if
7689 the range type's bounds are not both defined and constant
7690 values.
7691 (get_array_bounds): Update comment. Remove undefined bound check.
7692
599088e3
SM
76932020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
7694
7695 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
7696 the type::bounds method directly.
7697
c4dfcb36
SM
76982020-07-12 Simon Marchi <simon.marchi@efficios.com>
7699
7700 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
7701 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
7702 are used to set the range type's bounds to use set_bounds.
7703
0a278aa7
PW
77042020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7705
7706 * exec.c (_initialize_exec): Update exec-file-mismatch help.
7707
cce20f10
PA
77082020-07-10 Pedro Alves <pedro@palves.net>
7709
7710 * gdbthread.h (inferior_ref): Define.
7711 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
7712 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
7713 * thread.c
7714 (scoped_restore_current_thread::restore):
7715 Adjust to gdb::ref_ptr.
7716 (scoped_restore_current_thread::~scoped_restore_current_thread):
7717 Remove manual decref handling.
7718 (scoped_restore_current_thread::scoped_restore_current_thread):
7719 Adjust to use
7720 inferior_ref::new_reference/thread_info_ref::new_reference.
7721 Incref the thread before calling get_frame_id instead of after.
7722 Let TARGET_CLOSE_ERROR propagate.
7723
6d7aa592
PA
77242020-07-10 Pedro Alves <pedro@palves.net>
7725
7726 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
7727 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
7728 NOT_AVAILABLE_ERROR.
7729 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
7730 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
7731
b3e3a4c1
SM
77322020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7733 Pedro Alves <pedro@palves.net>
7734
7735 PR gdb/26199
7736 * infrun.c (threads_are_resumed_pending_p): Delete.
7737 (do_target_wait): Remove threads_are_executing and
7738 threads_are_resumed_pending_p checks from the inferior_matches
7739 lambda. Update comments.
7740
d6cc5d98
PA
77412020-07-10 Pedro Alves <pedro@palves.net>
7742
7743 PR gdb/26199
7744 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
7745 executing threads.
7746
7d3badc6
PA
77472020-07-10 Pedro Alves <pedro@palves.net>
7748
7749 PR gdb/26199
7750 * infrun.c (handle_no_resumed): Handle multiple targets.
7751
42bd97a6
PA
77522020-07-10 Pedro Alves <pedro@palves.net>
7753
7754 PR gdb/26199
7755 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
7756 target_is_async_p.
7757
43667cc6
PA
77582020-07-10 Pedro Alves <pedro@palves.net>
7759
7760 PR gdb/26199
7761 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
7762 threads, not all threads.
7763
96118d11
PA
77642020-07-10 Pedro Alves <pedro@palves.net>
7765
7766 PR gdb/26199
7767 * remote.c (remote_target::open_1): Pass remote target pointer as
7768 data to create_async_event_handler.
7769 (remote_async_inferior_event_handler): Mark async event handler
7770 before returning if the remote target still has either pending
7771 events or unacknowledged notifications.
7772
54904d81
JB
77732020-07-10 John Baldwin <jhb@FreeBSD.org>
7774
7775 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
7776 declaration.
7777 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
7778 function.
7779
f37e5866
JB
77802020-07-09 John Baldwin <jhb@FreeBSD.org>
7781
7782 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
7783 inferior_ptid.
7784
fc238d4a
JB
77852020-07-09 John Baldwin <jhb@FreeBSD.org>
7786
7787 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
7788 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
7789 AT_FREEBSD_PS_STRINGS.
7790
6e2469ff
HD
77912020-07-08 Hannes Domani <ssbssa@yahoo.de>
7792
7793 * auto-load.c (auto_load_objfile_script_1): Convert drive part
7794 of debugfile path on Windows.
7795
d1076c41
JB
77962020-07-08 John Baldwin <jhb@FreeBSD.org>
7797
7798 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
7799 argument to 'data'.
7800
15f3b077
TT
78012020-07-08 Tom Tromey <tromey@adacore.com>
7802
7803 * ada-lang.c (ada_exception_message_1): Use read_memory.
7804
9fc501fd
AB
78052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7806
7807 PR python/22748
7808 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
7809 special handling for inline frames.
7810 * findvar.c (value_of_register_lazy): Skip inline frames when
7811 creating lazy register values.
7812 * frame.c (frame_id_computed_p): Delete definition.
7813 * frame.h (frame_id_computed_p): Delete declaration.
7814
64cb3757
AB
78152020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7816
7817 * NEWS: Mention additions to Python API.
7818 * python/py-arch.c (archpy_register_groups): New function.
7819 (arch_object_methods): Add 'register_groups' method.
7820 * python/py-registers.c (reggroup_iterator_object): New struct.
7821 (reggroup_object): New struct.
7822 (gdbpy_new_reggroup): New function.
7823 (gdbpy_reggroup_to_string): New function.
7824 (gdbpy_reggroup_name): New function.
7825 (gdbpy_reggroup_iter): New function.
7826 (gdbpy_reggroup_iter_next): New function.
7827 (gdbpy_new_reggroup_iterator): New function
7828 (gdbpy_initialize_registers): Register new types.
7829 (reggroup_iterator_object_type): Define new Python type.
7830 (gdbpy_reggroup_getset): New static global.
7831 (reggroup_object_type): Define new Python type.
7832 * python/python-internal.h
7833
0f767f94
AB
78342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7835
7836 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
7837 * python/py-arch.c (archpy_registers): New function.
7838 (arch_object_methods): Add 'registers' method.
7839 * python/py-registers.c: New file.
7840 * python/python-internal.h
7841 (gdbpy_new_register_descriptor_iterator): Declare.
7842 (gdbpy_initialize_registers): Declare.
7843 * python/python.c (do_start_initialization): Call
7844 gdbpy_initialize_registers.
7845 * NEWS: Mention additions to the Python API.
7846
87dbc774
AB
78472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7848
7849 * NEWS: Mention new Python API method.
7850 * python/py-unwind.c (pending_framepy_architecture): New function.
7851 (pending_frame_object_methods): Add architecture method.
7852
3bc98c0c
AB
78532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7854
7855 * gdbarch.c: Regenerate.
7856 * gdbarch.h: Regenerate.
7857 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
7858 (gdbarch_data): Use internal_error for the case where
7859 deprecated_set_gdbarch_data was originally needed.
7860 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
7861 and use passed in obstack.
7862 (libunwind_frame_set_descr): Should no longer get back NULL from
7863 gdbarch_data.
7864 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
7865 type.
7866 * user-regs.c (user_regs_init): Update parameters, and use passed
7867 in obstack.
7868 (user_reg_add): Should no longer get back NULL from gdbarch_data.
7869 (_initialize_user_regs): Register as a pre-init gdbarch data type.
7870
d8cc8af6
TV
78712020-07-06 Tom de Vries <tdevries@suse.de>
7872
7873 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
7874 End-Of-Sequence in lte_is_less_than.
7875 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
7876 "gdb: Don't reorder line table entries too much when sorting".
7877
947f7597
TV
78782020-07-06 Tom de Vries <tdevries@suse.de>
7879
7880 PR tui/26205
7881 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
7882
1e7c1b22
TV
78832020-07-05 Tom de Vries <tdevries@suse.de>
7884
7885 PR build/26187
7886 * inferior.h (struct infcall_suspend_state_deleter): If available, use
7887 std::uncaught_exceptions instead of deprecated
7888 std::uncaught_exception.
7889
a36158ec
SM
78902020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7891
7892 * macroexp.h (macro_stringify): Return
7893 gdb::unique_xmalloc_ptr<char>.
7894 * macroexp.c (macro_stringify): Likewise.
7895 * macrotab.c (fixup_definition): Update.
7896
14d960c8
SM
78972020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7898
7899 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
7900 (lex_one_token): Update.
7901 * macroexp.c (struct macro_buffer) <release>: Return
7902 gdb::unique_xmalloc_ptr<char>.
7903 (macro_stringify): Update.
7904 (macro_expand): Update.
7905 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
7906 * macroexp.h (macro_expand_next): Likewise.
7907
211d5b1c
SM
79082020-07-02 Simon Marchi <simon.marchi@efficios.com>
7909
7910 * macroexp.h (macro_lookup_ftype): Remove.
7911 (macro_expand, macro_expand_once, macro_expand_next): Remove
7912 lookup function parameters, add scope parameter.
7913 * macroexp.c (scan, substitute_args, expand, maybe_expand,
7914 macro_expand, macro_expand_once, macro_expand_next): Likewise.
7915 * macroscope.h (standard_macro_lookup): Change parameter type
7916 to macro_scope.
7917 * macroscope.c (standard_macro_lookup): Likewise.
7918 * c-exp.y (lex_one_token): Update.
7919 * macrocmd.c (macro_expand_command): Likewise.
7920 (macro_expand_once_command): Likewise.
7921
b1a35af2
SM
79222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7923
7924 * inf-loop.c (inferior_event_handler): Remove client_data param.
7925 * inf-loop.h (inferior_event_handler): Likewise.
7926 * infcmd.c (step_1): Adjust.
7927 * infrun.c (proceed): Adjust.
7928 (fetch_inferior_event): Remove client_data param.
7929 (infrun_async_inferior_event_handler): Adjust.
7930 * infrun.h (fetch_inferior_event): Remove `void *` param.
7931 * linux-nat.c (handle_target_event): Adjust.
7932 * record-btrace.c (record_btrace_handle_async_inferior_event):
7933 Adjust.
7934 * record-full.c (record_full_async_inferior_event_handler):
7935 Adjust.
7936 * remote.c (remote_async_inferior_event_handler): Adjust.
7937
1cdf9e33
TT
79382020-07-01 Tom Tromey <tom@tromey.com>
7939
7940 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
7941 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
7942
32c1e210
TT
79432020-07-01 Tom Tromey <tom@tromey.com>
7944
7945 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
7946 tui_gen_win_info.
7947 (tui_win_info::make_window): Merge with
7948 tui_gen_win_info::make_window.
7949 (tui_win_info::make_visible): Move from tui_gen_win_info.
7950 * tui/tui-win.c (tui_win_info::max_width): Move from
7951 tui_gen_win_info.
7952 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
7953 type.
7954 <window_factory>: Likewise.
7955 * tui/tui-layout.c (tui_win_info::resize): Move from
7956 tui_gen_win_info.
7957 (make_standard_window): Change return type.
7958 (get_locator_window, tui_get_window_by_name): Likewise.
7959 (tui_layout_window::apply): Remove a cast.
7960 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
7961 (struct tui_win_info): Merge with tui_gen_win_info.
7962 (struct tui_gen_win_info): Remove.
7963
a30cb6da
TT
79642020-07-01 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-stack.h (struct tui_locator_window): Derive from
7967 tui_win_info.
7968 <do_scroll_horizontal, do_scroll_vertical>: New methods.
7969 <can_box>: New method.
7970
1eb2161f
TT
79712020-07-01 Tom Tromey <tom@tromey.com>
7972
7973 * tui/tui-stack.h (struct tui_locator_window): Remove body.
7974
7134f2eb
TT
79752020-07-01 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-regs.c (tui_data_window::display_registers_from)
7978 (tui_data_window::display_registers_from)
7979 (tui_data_window::first_data_item_displayed)
7980 (tui_data_window::delete_data_content_windows): Update.
7981 (tui_data_window::refresh_window, tui_data_window::no_refresh):
7982 Remove.
7983 (tui_data_window::check_register_values): Update.
7984 (tui_data_item_window::rerender): Add parameters. Update.
7985 (tui_data_item_window::refresh_window): Remove.
7986 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
7987 virtual.
7988 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
7989 tui_gen_win_info.
7990 <refresh_window, max_height, min_height>: Remove.
7991 <rerender>: Add parameters.
7992 <x, y, visible>: New members.
7993 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
7994 <m_item_width>: New member.
7995
22b7b041
TT
79962020-07-01 Tom Tromey <tom@tromey.com>
7997
7998 * tui/tui-regs.c (tui_data_window::show_register_group)
7999 (tui_data_window::check_register_values): Update.
8000 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
8001 from item_no.
8002
c9753adb
TT
80032020-07-01 Tom Tromey <tom@tromey.com>
8004
8005 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
8006 useless "if".
8007
9ab26b4a
TT
80082020-07-01 Tom Tromey <tom@tromey.com>
8009
8010 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
8011 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
8012
e555083f
TT
80132020-07-01 Tom Tromey <tom@tromey.com>
8014
8015 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
8016 * tui/tui-winsource.h (enum tui_line_or_address_kind)
8017 (struct tui_line_or_address): Move from tui-data.h.
8018 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
8019 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
8020 (tui_cmd_window, tui_source_window_base, tui_source_window)
8021 (tui_disasm_window): Don't declare.
8022 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
8023 to tui-winsource.h.
8024 (SINGLE_KEY): Move to tui-stack.c.
8025
7a02bab7
TT
80262020-07-01 Tom Tromey <tom@tromey.com>
8027
8028 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
8029 std::string.
8030 * tui/tui-regs.c (class tab_expansion_file): New.
8031 (tab_expansion_file::write): New method.
8032 (tui_register_format): Change return type. Use
8033 tab_expansion_file.
8034 (tui_get_register, tui_data_window::display_registers_from)
8035 (tui_data_item_window::rerender): Update.
8036 * tui/tui-io.h (tui_expand_tabs): Don't declare.
8037 * tui/tui-io.c (tui_expand_tabs): Remove.
8038
ea68593b
TT
80392020-07-01 Tom Tromey <tom@tromey.com>
8040
8041 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
8042
a8caed5d
FS
80432020-07-01 Fangrui Song <maskray@google.com>
8044
8045 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
8046
9cdf9820
AKS
80472020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8048
8049 * dwarf2/read.c (set_die_type): Removed conditions to restrict
8050 forms for DW_AT_associated and DW_AT_allocated attributes,
8051 which is already checked in function attr_to_dynamic_prop.
8052
a1520ad8
TT
80532020-06-30 Tom Tromey <tromey@adacore.com>
8054
8055 * dwarf2/read.c (quirk_rust_enum): Correctly call
8056 alloc_rust_variant for default-less enum.
8057
5ac58899
TT
80582020-06-30 Tom Tromey <tromey@adacore.com>
8059
8060 PR build/26183:
8061 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
8062 gdb::to_string.
8063
19b187a9
SM
80642020-06-29 Simon Marchi <simon.marchi@efficios.com>
8065
8066 * gdbarch.sh (displaced_step_copy_insn): Update doc.
8067 * gdbarch.h: Re-generate.
8068
cd4c4c07
TT
80692020-06-28 Tom Tromey <tom@tromey.com>
8070
8071 * command.h (cmd_types): Remove.
8072 (cmd_type): Don't declare.
8073 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
8074 typedef.
8075 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
8076 * cli/cli-decode.c (cmd_type): Remove.
8077
05779d57
PA
80782020-06-27 Pedro Alves <palves@redhat.com>
8079
8080 * fork-child.c (prefork_hook): Adjust.
8081 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
8082 Delete.
8083 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
8084 * inferior.c (inferior::set_tty, inferior::tty): New methods.
8085 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
8086 Remove declarations.
8087 (struct inferior) <set_tty, tty>: New methods.
8088 (struct inferior) <terminal>: Rename to ...
8089 (struct inferior) <m_terminal>: ... this and make private.
8090 * main.c (captured_main_1): Adjust.
8091 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
8092 (mi_cmd_inferior_tty_show): Adjust.
8093 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
8094 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
8095
1776e3e5
NA
80962020-06-26 Nick Alcock <nick.alcock@oracle.com>
8097
8098 * configure.ac: Add --enable-libctf: handle --disable-static
8099 properly.
8100 * acinclude.m4: sinclude ../config/enable.m4.
8101 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
8102 (LIBCTF): Substitute in.
8103 (CTF_DEPS): New, likewise.
8104 (CLIBS): libctf needs symbols from libbfd: move earlier.
8105 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
8106 flags.
8107 * ctfread.c: Surround in ENABLE_LIBCTF.
8108 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
8109 * configure: Regenerate.
8110 * config.in: Likewise.
8111
58373b80
SM
81122020-06-25 Simon Marchi <simon.marchi@efficios.com>
8113
8114 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
8115
277474ee
SM
81162020-06-25 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * inferior.h (struct inferior) <terminal>: Change type to
8119 gdb::unique_xmalloc_ptr<char>.
8120 * inferior.c (inferior::~inferior): Don't free inf->terminal.
8121 * infcmd.c (set_inferior_io_terminal): Don't free terminal
8122 field, adjust to unique pointer.
8123 (get_inferior_io_terminal): Adjust to unique pointer.
8124
6d74da72
AB
81252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8126
8127 * riscv-tdep.c (riscv_print_registers_info): Loop over all
8128 registers, not just the known core set of registers.
8129
2e52d038
AB
81302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8131
8132 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
8133 fflags, frm, and fcsr registers.
8134 (riscv_register_reggroup_p): Remove unknown CSRs from save and
8135 restore groups.
8136 (riscv_tdesc_unknown_reg): New function.
8137 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
8138 tdesc_use_registers.
8139 * riscv-tdep.h (struct gdbarch_tdep): Add
8140 unknown_csrs_first_regnum, unknown_csrs_count,
8141 duplicate_fflags_regnum, duplicate_frm_regnum, and
8142 duplicate_fcsr_regnum fields.
8143
be64fd07
AB
81442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * target-descriptions.c (tdesc_use_registers): Add new parameter a
8147 callback, use the callback (when not null) to help number unknown
8148 registers.
8149 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
8150 (tdesc_use_registers): Add extra parameter to declaration.
8151
3b9fce96
AB
81522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
8155 in the file.
8156 (class riscv_pending_register_alias): Likewise.
8157 (riscv_register_feature::register_info): Change 'required_p' field
8158 to 'required', and change its type. Add 'check' member function.
8159 (riscv_register_feature::register_info::check): Define new member
8160 function.
8161 (riscv_xreg_feature): Change initialisation of 'required' field.
8162 (riscv_freg_feature): Likewise.
8163 (riscv_virtual_feature): Likewise.
8164 (riscv_csr_feature): Likewise.
8165 (riscv_check_tdesc_feature): Take extra parameter, the csr
8166 tdesc_feature, rewrite the function to use the new
8167 riscv_register_feature::register_info::check function.
8168 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
8169
865bad26
AB
81702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8171
8172 * features/Makefile: Remove all references to the deleted files
8173 below.
8174 * features/riscv/32bit-csr.c: Deleted.
8175 * features/riscv/32bit-csr.xml: Deleted.
8176 * features/riscv/64bit-csr.c: Deleted.
8177 * features/riscv/64bit-csr.xml: Deleted.
8178 * features/riscv/rebuild-csr-xml.sh: Deleted.
8179
ed69cbc8
AB
81802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8181
8182 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
8183 whitespace error for declaration of names member variable.
8184 (struct riscv_register_feature): Add new prefer_first_name member
8185 variable, and fix whitespace error in declaration of registers.
8186 (riscv_xreg_feature): Initialize prefer_first_name field.
8187 (riscv_freg_feature): Likewise.
8188 (riscv_virtual_feature): Likewise.
8189 (riscv_csr_feature): Likewise.
8190 (riscv_register_name): Expand on comments. Remove register name
8191 modifications for CSR and virtual registers.
8192
4445e8f5
AB
81932020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8194
8195 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
8196 errors.
8197
767a879e
AB
81982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
8199
8200 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
8201 riscv-opc.h.
8202 (class riscv_pending_register_alias): New class.
8203 (riscv_check_tdesc_feature): Take vector of pending aliases and
8204 populate it as appropriate.
8205 (riscv_setup_register_aliases): Delete.
8206 (riscv_gdbarch_init): Create vector of pending aliases and pass it
8207 to riscv_check_tdesc_feature in all cases. Use the vector to
8208 create the register aliases.
8209
bb6e55f3
RO
82102020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8211
8212 * sol2-tdep.c (sol2_static_transform_name): Remove.
8213 (sol2_init_abi): Don't register it.
8214 * gdbarch.sh (static_transform_name): Remove.
8215 * gdbarch.c, gdbarch.h: Regenerate.
8216
8217 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
8218 gdbarch_static_transform_name.
8219 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
8220 * stabsread.c (define_symbol) <'X'>: Remove.
8221 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
8222 handling.
8223 <'V'>: Likewise.
8224 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
8225 <'S'>: Remove call to gdbarch_static_transform_name.
8226
c6d36836
RO
82272020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8228
8229 * procfs.c (procfs_pre_trace): New function.
8230 (procfs_target::create_inferior): Pass it to fork_inferior.
8231
a7e6196b
RO
82322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8233
8234 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
8235 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
8236 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
8237 sol2-tdep.o, sparc-sol2-tdep.o.
8238 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
8239 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
8240 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
8241 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
8242
d412e696
RO
82432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8244
8245 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
8246 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
8247 Call sol2_init_abi.
8248 Remove calls to set_gdbarch_skip_solib_resolver,
8249 set_gdbarch_core_pid_to_str.
8250 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
8251 (i386_sol2_static_transform_name): Remove.
8252 (i386_sol2_init_abi): Call sol2_init_abi.
8253 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8254 set_gdbarch_static_transform_name,
8255 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8256 Use sol2_sigtramp_p.
8257 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
8258 (sol2_sigtramp_p): New function.
8259 (sol2_static_transform_name): New function.
8260 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
8261 (sol2_init_abi): New function.
8262 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
8263 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
8264 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
8265 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
8266 (sparc_sol2_static_transform_name): Remove.
8267 (sparc32_sol2_init_abi): Call sol2_init_abi.
8268 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8269 set_gdbarch_static_transform_name,
8270 set_gdbarch_skip_solib_resolver,
8271 set_gdbarch_core_pid_to_str.
8272 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
8273 (sparc_sol2_static_transform_name): Remove
8274 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
8275 call sol2_sigtramp_p.
8276 (sparc64_sol2_init_abi): Call sol2_init_abi.
8277 Remove calls to set_gdbarch_sofun_address_maybe_missing,
8278 set_gdbarch_static_transform_name,
8279 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
8280
a8654e7d
PW
82812020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8282
8283 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
8284 * exec.c (validate_exec_file): If from_tty, set both
8285 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
8286 * symfile.c (symbol_file_add_with_addrs): if always_confirm
8287 and from_tty, unconditionally ask a confirmation.
8288
caa7fd04
AB
82892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8290
8291 * target-descriptions.c (tdesc_architecture_name): Protect against
8292 NULL pointer dereference.
8293 (maint_print_xml_tdesc_cmd): New function.
8294 (_initialize_target_descriptions): Register new 'maint print
8295 xml-tdesc' command and give it the filename completer.
8296 * NEWS: Mention new 'maint print xml-tdesc' command.
8297
fbf42f4e
AB
82982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8299
8300 * target-descriptions.c (class tdesc_compatible_info): New class.
8301 (struct target_desc): Change type of compatible vector.
8302 (tdesc_compatible_p): Update for change in type of
8303 target_desc::compatible.
8304 (tdesc_compatible_info_list): New function.
8305 (tdesc_compatible_info_arch_name): New function.
8306 (tdesc_add_compatible): Update for change in type of
8307 target_desc::compatible.
8308 (print_c_tdesc::visit_pre): Likewise.
8309
20821f4e
AB
83102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8311
8312 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
8313 whitespace to underscore.
8314 (maint_print_c_tdesc_cmd): Use fake filename for target
8315 descriptions that came from the target.
8316 (_initialize_target_descriptions): Add filename command completion
8317 for 'maint print c-tdesc'.
8318
1fb5ee62
SM
83192020-06-23 Simon Marchi <simon.marchi@efficios.com>
8320
8321 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
8322 lines.
8323
fc3ecb3e
SM
83242020-06-23 Simon Marchi <simon.marchi@efficios.com>
8325
8326 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
8327 lines.
8328 (dwarf2_find_location_expression): Likewise.
8329 (call_site_parameter_matches): Likewise.
8330 (dwarf2_compile_expr_to_ax): Likewise.
8331 (disassemble_dwarf_expression): Likewise.
8332 (loclist_describe_location): Likewise.
8333
236ef034
PA
83342020-06-23 Pedro Alves <palves@redhat.com>
8335
8336 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
8337 progspace-and-thread.h. Include scoped-mock-context.h instead.
8338 (register_to_value_test): Use scoped_mock_context.
8339 * regcache.c: Include "scoped-mock-context.h".
8340 (cooked_read_test): Don't error out if a target is already pushed.
8341 Use scoped_mock_context. Adjust.
8342 * scoped-mock-context.h: New file.
8343
39e7ecca
AB
83442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8345
8346 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
8347 initializer.
8348 (ada_language::is_string_type_p): New member function.
8349 * c-lang.c (c_language_data): Delete la_is_string_type_p
8350 initializer.
8351 (cplus_language_data): Likewise.
8352 (asm_language_data): Likewise.
8353 (minimal_language_data): Likewise.
8354 * d-lang.c (d_language_data): Likewise.
8355 * f-lang.c (f_is_string_type_p): Delete function, implementation
8356 moved to f_language::is_string_type_p.
8357 (f_language_data): Delete la_is_string_type_p initializer.
8358 (f_language::is_string_type_p): New member function,
8359 implementation from f_is_string_type_p.
8360 * go-lang.c (go_is_string_type_p): Delete function, implementation
8361 moved to go_language::is_string_type_p.
8362 (go_language_data): Delete la_is_string_type_p initializer.
8363 (go_language::is_string_type_p): New member function,
8364 implementation from go_is_string_type_p.
8365 * language.c (language_defn::is_string_type_p): Define new member
8366 function.
8367 (default_is_string_type_p): Make static, add comment copied from
8368 header file.
8369 (unknown_language_data): Delete la_is_string_type_p initializer.
8370 (unknown_language::is_string_type_p): New member function.
8371 (auto_language_data): Delete la_is_string_type_p initializer.
8372 (auto_language::is_string_type_p): New member function.
8373 * language.h (language_data): Delete la_is_string_type_p field.
8374 (language_defn::is_string_type_p): Declare new function.
8375 (default_is_string_type_p): Delete desclaration, move comment to
8376 definition.
8377 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
8378 moved to m2_language::is_string_type_p.
8379 (m2_language_data): Delete la_is_string_type_p initializer.
8380 (m2_language::is_string_type_p): New member function,
8381 implementation from m2_is_string_type_p.
8382 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
8383 initializer.
8384 * opencl-lang.c (opencl_language_data): Likewise.
8385 * p-lang.c (pascal_is_string_type_p): Delete function,
8386 implementation moved to pascal_language::is_string_type_p.
8387 (pascal_language_data): Delete la_is_string_type_p initializer.
8388 (pascal_language::is_string_type_p): New member function,
8389 implementation from pascal_is_string_type_p.
8390 * rust-lang.c (rust_is_string_type_p): Delete function,
8391 implementation moved to rust_language::is_string_type_p.
8392 (rust_language_data): Delete la_is_string_type_p initializer.
8393 (rust_language::is_string_type_p): New member function,
8394 implementation from rust_is_string_type_p.
8395 * valprint.c (val_print_scalar_or_string_type_p): Update call to
8396 is_string_type_p.
8397
4ffc13fb
AB
83982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8399
8400 * ada-lang.c (ada_language_data): Delete la_print_typedef
8401 initializer.
8402 (ada_language::print_typedef): New member function.
8403 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
8404 (cplus_language_data): Likewise.
8405 (asm_language_data): Likewise.
8406 (minimal_language_data): Likewise.
8407 * d-lang.c (d_language_data): Likewise.
8408 * f-lang.c (f_language_data): Likewise.
8409 (f_language::print_typedef): New member function.
8410 * go-lang.c (go_language_data): Delete la_print_typedef
8411 initializer.
8412 * language.c (language_defn::print_typedef): Define member
8413 function.
8414 (unknown_language_data): Delete la_print_typedef initializer.
8415 (unknown_language::print_typedef): New member function.
8416 (auto_language_data): Delete la_print_typedef initializer.
8417 (auto_language::print_typedef): New member function.
8418 * language.h (language_data): Delete la_print_typedef field.
8419 (language_defn::print_typedef): Declare new member function.
8420 (LA_PRINT_TYPEDEF): Update call to print_typedef.
8421 (default_print_typedef): Delete declaration.
8422 * m2-lang.c (m2_language_data): Delete la_print_typedef
8423 initializer.
8424 (m2_language::print_typedef): New member function.
8425 * objc-lang.c (objc_language_data): Delete la_print_typedef
8426 initializer.
8427 * opencl-lang.c (opencl_language_data): Likewise.
8428 * p-lang.c (pascal_language_data): Likewise.
8429 (pascal_language::print_typedef): New member function.
8430 * rust-lang.c (rust_print_typedef): Delete function,
8431 implementation moved to rust_language::print_typedef.
8432 (rust_language): Delete la_print_typedef initializer.
8433 (rust_language::print_typedef): New member function,
8434 implementation from rust_print_typedef.
8435 * typeprint.c (default_print_typedef): Delete.
8436
d711ee67
AB
84372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8438
8439 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
8440 (ada_language::printstr): New member function.
8441 * c-lang.c (c_language_data): Delete la_printstr initializer.
8442 (cplus_language_data): Likewise.
8443 (asm_language_data): Likewise.
8444 (minimal_language_data): Likewise.
8445 * d-lang.c (d_language_data): Likewise.
8446 * f-lang.c (f_printstr): Rename to f_language::printstr.
8447 (f_language_data): Delete la_printstr initializer.
8448 (f_language::printstr): New member function, implementation from
8449 f_printstr.
8450 * go-lang.c (go_language_data): Delete la_printstr initializer.
8451 * language.c (language_defn::printstr): Define new member
8452 function.
8453 (unk_lang_printstr): Delete.
8454 (unknown_language_data): Delete la_printstr initializer.
8455 (unknown_language::printstr): New member function.
8456 (auto_language_data): Delete la_printstr initializer.
8457 (auto_language::printstr): New member function.
8458 * language.h (language_data): Delete la_printstr field.
8459 (language_defn::printstr): Declare new member function.
8460 (LA_PRINT_STRING): Update call to printstr.
8461 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
8462 (m2_language_data): Delete la_printstr initializer.
8463 (m2_language::printstr): New member function, implementation from
8464 m2_printstr.
8465 * objc-lang.c (objc_language_data): Delete la_printstr
8466 initializer.
8467 * opencl-lang.c (opencl_language_data): Likewise.
8468 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
8469 (pascal_language_data): Delete la_printstr initializer.
8470 (pascal_language::printstr): New member function, implementation
8471 from pascal_printstr.
8472 * p-lang.h (pascal_printstr): Delete declaration.
8473 * rust-lang.c (rust_printstr): Update header comment.
8474 (rust_language_data): Delete la_printstr initializer.
8475 (rust_language::printstr): New member function.
8476
52b50f2c
AB
84772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8478
8479 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
8480 (ada_language::printchar): New member function.
8481 * c-lang.c (c_language_data): Delete la_printchar initializer.
8482 (cplus_language_data): Likewise.
8483 (asm_language_data): Likewise.
8484 (minimal_language_data): Likewise.
8485 * d-lang.c (d_language_data): Likewise.
8486 * f-lang.c (f_printchar): Rename to f_language::printchar.
8487 (f_language_data): Delete la_printchar initializer.
8488 (f_language::printchar): New member function, implementation from
8489 f_printchar.
8490 * go-lang.c (go_language_data): Delete la_printchar initializer.
8491 * language.c (unk_lang_printchar): Delete.
8492 (language_defn::printchar): Define new member function.
8493 (unknown_language_data): Delete la_printchar initializer.
8494 (unknown_language::printchar): New member function.
8495 (auto_language_data): Delete la_printchar initializer.
8496 (auto_language::printchar): New member function.
8497 * language.h (language_data): Delete la_printchar field.
8498 (language_defn::printchar): Declare new member function.
8499 (LA_PRINT_CHAR): Update call to printchar.
8500 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
8501 (m2_language::printchar): New member function.
8502 * objc-lang.c (objc_language_data): Delete la_printchar
8503 initializer.
8504 * opencl-lang.c (opencl_language_data): Likewise.
8505 * p-lang.c (pascal_language_data): Delete la_printchar
8506 initializer.
8507 (pascal_language::printchar): New member function.
8508 * rust-lang.c (rust_printchar): Rename to
8509 rust_language::printchar.
8510 (rust_language_data): Delete la_printchar initializer.
8511 (rust_language::printchar): New member function, implementation
8512 from rust_printchar.
8513
ec8cec5b
AB
85142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8515
8516 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
8517 (ada_language_data): Delete la_emitchar initializer.
8518 (ada_language::emitchar): New member function, implementation from
8519 emit_char.
8520 * c-lang.c (c_language_data): Delete la_emitchar initializer.
8521 (cplus_language_data): Likewise.
8522 (asm_language_data): Likewise.
8523 (minimal_language_data): Likewise.
8524 * d-lang.c (d_language_data): Likewise.
8525 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
8526 (f_language_data): Delete la_emitchar initializer.
8527 (f_language::emitchar): New member function, implementation from
8528 f_emit_char.
8529 * go-lang.c (go_language_data): Delete la_emitchar initializer.
8530 * language.c (unk_lang_emit_char): Delete.
8531 (language_defn::emitchar): New member function definition.
8532 (unknown_language_data): Delete la_emitchar initializer.
8533 (unknown_language::emitchar): New member function.
8534 (auto_language_data): Delete la_emitchar initializer.
8535 (auto_language::emitchar): New member function.
8536 * language.h (language_data): Delete la_emitchar field.
8537 (language_defn::emitchar): New member field declaration.
8538 (LA_EMIT_CHAR): Update call to emitchar.
8539 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
8540 (m2_language_data): Delete la_emitchar initializer.
8541 (m2_language::emitchar): New member function, implementation from
8542 m2_emit_char.
8543 * objc-lang.c (objc_language_data): Delete la_emitchar
8544 initializer.
8545 * opencl-lang.c (opencl_language_data): Likewise.
8546 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
8547 (pascal_language_data): Delete la_emitchar initializer.
8548 (pascal_language::emitchar): New member function, implementation
8549 from pascal_emit_char.
8550 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
8551 (rust_language_data): Delete la_emitchar initializer.
8552 (rust_language::emitchar): New member function, implementation
8553 from rust_emitchar.
8554
1bf9c363
AB
85552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8556
8557 * ada-lang.c (resolve): Rename to ada_language::post_parser.
8558 (ada_language_data): Delete la_post_parser initializer.
8559 (ada_language::post_parser): New member function.
8560 * c-lang.c (c_language_data): Delete la_post_parser initializer.
8561 (cplus_language_data): Likewise.
8562 (asm_language_data): Likewise.
8563 (minimal_language_data): Likewise.
8564 * d-lang.c (d_language_data): Likewise.
8565 * f-lang.c (f_language_data): Likewise.
8566 * go-lang.c (go_language_data): Likewise.
8567 * language.c (unknown_language_data): Likewise.
8568 (auto_language_data): Likewise.
8569 * language.h (language_data): Delete la_post_parser field.
8570 (language_defn::post_parser): New member function.
8571 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
8572 * objc-lang.c (objc_language_data): Likewise.
8573 * opencl-lang.c (opencl_language_data): Likewise.
8574 * p-lang.c (pascal_language_data): Likewise.
8575 * parse.c (parse_exp_in_context): Update call to post_parser.
8576 (null_post_parser): Delete definition.
8577 * parser-defs.h (null_post_parser): Delete declaration.
8578 * rust-lang.c (rust_language_data): Delete la_post_parser
8579 initializer.
8580
87afa652
AB
85812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8582
8583 * ada-lang.c (parse): Rename to ada_language::parser.
8584 (ada_language_data): Delete la_parser initializer.
8585 (ada_language::parser): New member function, implementation from
8586 parse.
8587 * c-lang.c (c_language_data): Delete la_parser initializer.
8588 (cplus_language_data): Likewise.
8589 (asm_language_data): Likewise.
8590 (minimal_language_data): Likewise.
8591 * d-lang.c (d_language_data): Likewise.
8592 (d_language::parser): New member function.
8593 * f-lang.c (f_language_data): Delete la_parser initializer.
8594 (f_language::parser): New member function.
8595 * go-lang.c (go_language_data): Delete la_parser initializer.
8596 (go_language::parser): New member function.
8597 * language.c (unk_lang_parser): Delete.
8598 (language_defn::parser): Define new member function.
8599 (unknown_language_data): Delete la_parser initializer.
8600 (unknown_language::parser): New member function.
8601 (auto_language_data): Delete la_parser initializer.
8602 (auto_language::parser): New member function.
8603 * language.h (language_data): Delete la_parser field.
8604 (language_defn::parser): Declare new member function.
8605 * m2-lang.c (m2_language_data): Delete la_parser initializer.
8606 (m2_language::parser): New member function.
8607 * objc-lang.c (objc_language_data): Delete la_parser initializer.
8608 * opencl-lang.c (opencl_language_data): Likewise.
8609 * p-lang.c (pascal_language_data): Likewise.
8610 (pascal_language::parser): New member function.
8611 * parse.c (parse_exp_in_context): Update call to parser.
8612 * rust-lang.c (rust_language_data): Delete la_parser initializer.
8613 (rust_language::parser): New member function.
8614
37825800
AB
86152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
8616
8617 * top.c (print_gdb_configuration): Print --with-python-libdir
8618 configuration value.
8619
5b860c93
PW
86202020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8621
8622 * NEWS: Mention change to the alias command.
8623
cf00cd6f
PW
86242020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8625
8626 * cli/cli-cmds.c (lookup_cmd_for_default_args)
8627 (alias_command_completer)
8628 (make_alias_options_def_group): New functions.
8629 (alias_opts, alias_option_defs): New struct and array.
8630 (alias_usage_error): Update usage.
8631 (alias_command): Handles optional DEFAULT-ARGS... arguments.
8632 Use option framework.
8633 (_initialize_cli_cmds): Update alias command help.
8634 Update aliases command help.
8635 (show_user):
8636 Add NULL for new default_args lookup_cmd argument.
8637 (valid_command_p): Rename to validate_aliased_command.
8638 Add NULL for new default_args lookup_cmd argument. Verify that the
8639 aliased_command has no default args.
8640 * cli/cli-decode.c (help_cmd): Show aliases definitions.
8641 (lookup_cmd_1, lookup_cmd): New argument default_args.
8642 (add_alias_cmd):
8643 Add NULL for new default_args lookup_cmd argument.
8644 (print_help_for_command): Show default args under the layout
8645 alias some_alias = some_aliased_cmd some_alias_default_arg.
8646 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
8647 xfree default_args in destructor.
8648 * cli/cli-script.c (process_next_line, do_define_command):
8649 Add NULL for new default_args lookup_cmd argument.
8650 * command.h: Declare new default_args argument in lookup_cmd
8651 and lookup_cmd_1.
8652 * completer.c (complete_line_internal_1):
8653 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8654 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
8655 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
8656 Likewise.
8657 * infcmd.c (_initialize_infcmd): Likewise.
8658 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
8659 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
8660 * python/py-param.c (add_setshow_generic): Likewise.
8661 * remote.c (_initialize_remote): Likewise.
8662 * top.c (execute_command): Prepend default_args if command has some.
8663 (set_verbose):
8664 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8665 * tracepoint.c (validate_actionline, encode_actions_1):
8666 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
8667
bd920864
TBA
86682020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8669
8670 * jit.c (jit_read_descriptor): Use bool as the return type.
8671 (jit_breakpoint_re_set_internal): Use bool as the return type.
8672 Invert the return value logic; return true if the jit breakpoint
8673 has been successfully initialized.
8674 (jit_inferior_init): Update the call to
8675 jit_breakpoint_re_set_internal.
8676
f8098322
PA
86772020-06-22 Pedro Alves <palves@redhat.com>
8678
8679 PR gdb/25939
8680 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
8681 Use the current inferior instead. Don't return
8682 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
8683 wait again.
8684 * sol-thread.c (sol_thread_target::wait): Don't reference
8685 inferior_ptid.
8686 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
8687 (sol_update_thread_list_callback): Use the current inferior's pid
8688 instead of inferior_ptid.
8689
196535a6
RO
86902020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8691
8692 * procfs.c: Cleanup many comments.
8693
8694 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
8695 (AFTER_WATCHFLAG): Replace by value.
8696
8697 (MAIN_PROC_NAME_FORMAT): Inline ...
8698 (create_procinfo): ... here.
8699
8700 (procfs_debug_inferior): Remove SYS_exec handling.
8701 (syscall_is_exec): Likewise.
8702 (procfs_set_exec_trap): Likewise.
8703
8704 (syscall_is_lwp_exit): Inline in callers.
8705 (syscall_is_exit): Likewise.
8706 (syscall_is_exec): Likewise.
8707 (syscall_is_lwp_create): Likewise.
8708
8709 (invalidate_cache): Remove #if 0 code.
8710
8711 (make_signal_thread_runnable): Remove.
8712 (procfs_target::resume): Remove #if 0 code.
8713
cf6f3e86
RO
87142020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8715
8716 PR gdb/25939
8717 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
8718 call ...
8719 (procfs_target::create_inferior): ... here.
8720
48e9cc84
PW
87212020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8722
8723 * exec.c (validate_exec_file): Ensure the build-id is up to
8724 date by calling reopen_exec_file (that checks file timestamp
8725 to decide to re-read the file).
8726
3922b302
PA
87272020-06-18 Pedro Alves <palves@redhat.com>
8728
8729 PR gdb/25412
8730 * gdbthread.h (delete_thread, delete_thread_silent)
8731 (find_thread_ptid): Update comments.
8732 * thread.c (current_thread_): New global.
8733 (is_current_thread): Move higher, and reimplement.
8734 (inferior_thread): Reimplement.
8735 (set_thread_exited): Use bool. Add assertions.
8736 (add_thread_silent): Simplify thread-reuse handling by always
8737 calling delete_thread.
8738 (delete_thread): Remove intro comment.
8739 (find_thread_ptid): Skip exited threads.
8740 (switch_to_thread_no_regs): Write to current_thread_.
8741 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
8742 INFERIOR_PTID. Clear current_thread_.
8743
6dbdab44
PA
87442020-06-18 Pedro Alves <palves@redhat.com>
8745
8746 * aix-thread.c (pd_update): Use switch_to_thread.
8747
2da4b788
PA
87482020-06-18 Pedro Alves <palves@redhat.com>
8749
8750 * ravenscar-thread.c (ravenscar_thread_target): Update.
8751 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
8752 (ravenscar_thread_target::add_active_thread): ... this. Don't
8753 set m_base_ptid here. Update to avoid referencing inferior_ptid.
8754 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
8755
50838d1b
PA
87562020-06-18 Pedro Alves <palves@redhat.com>
8757
8758 * nat/windows-nat.c (current_windows_thread): Remove.
8759 * nat/windows-nat.h (current_windows_thread): Remove.
8760 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
8761 Adjust.
8762 (display_selectors): Adjust to fetch the current
8763 windows_thread_info based on inferior_ptid.
8764 (fake_create_process): No longer write to current_windows_thread.
8765 (windows_nat_target::get_windows_debug_event):
8766 Don't set inferior_ptid or current_windows_thread.
8767 (windows_nat_target::wait): Adjust to not rely on
8768 current_windows_thread.
8769 (do_initial_windows_stuff): Now a method of windows_nat_target.
8770 Switch to the last_ptid thread.
8771 (windows_nat_target::attach): Adjust.
8772 (windows_nat_target::detach): Use switch_to_no_thread instead of
8773 writing to inferior_ptid directly.
8774 (windows_nat_target::create_inferior): Adjust.
8775
31ce04e9
PA
87762020-06-18 Pedro Alves <palves@redhat.com>
8777
8778 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
8779
1ee1a363
PA
87802020-06-18 Pedro Alves <palves@redhat.com>
8781
8782 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
8783 after creating it, instead of writing to inferior_ptid. Don't
8784 write to inferior_ptid.
8785
6d350754
PA
87862020-06-18 Pedro Alves <palves@redhat.com>
8787
8788 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
8789
5d971d48
PA
87902020-06-18 Pedro Alves <palves@redhat.com>
8791
8792 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
8793 it, instead of writing to inferior_ptid.
8794
86e57d1b
PA
87952020-06-18 Pedro Alves <palves@redhat.com>
8796
8797 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
8798 to inferior_ptid.
8799
f2e1c129
PA
88002020-06-18 Pedro Alves <palves@redhat.com>
8801
8802 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
8803 instead of writing to inferior_ptid directly.
8804
60db1b85
PA
88052020-06-18 Pedro Alves <palves@redhat.com>
8806
8807 * corelow.c (core_target::close): Use switch_to_no_thread instead
8808 of writing to inferior_ptid directly.
8809 (add_to_thread_list, core_target_open): Use switch_to_thread
8810 instead of writing to inferior_ptid directly.
8811
fe7d6a8d
PA
88122020-06-18 Pedro Alves <palves@redhat.com>
8813
8814 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
8815 inferior_ptid.
8816 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
8817 inferior_ptid.
8818 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
8819 inferior_ptid directly.
8820 (darwin_nat_target::init_thread_list): Switch to thread, instead
8821 of writing to inferior_ptid.
8822 (darwin_nat_target::attach): Don't write to inferior_ptid.
8823 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
8824
975f8708
PA
88252020-06-18 Pedro Alves <palves@redhat.com>
8826
8827 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
8828 thread.
8829 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
8830 Instead use switch_to_thread.
8831 (gnu_nat_target::detach): Use switch_to_no_thread
8832 instead of writing to inferior_ptid directly. Used passed-in
8833 inferior instead of looking up the inferior by pid.
8834
1a204730
PA
88352020-06-18 Pedro Alves <palves@redhat.com>
8836
8837 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
8838 inferior_ptid.
8839
ebe84f23
PA
88402020-06-18 Pedro Alves <palves@redhat.com>
8841
8842 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
8843 inferior_ptid.
8844 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
8845 thread.
8846 (nto_procfs_target::detach): Avoid referencing
8847 inferior_ptid. Use switch_to_no_thread instead of writing to
8848 inferior_ptid directly.
8849 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
8850 instead of writing to inferior_ptid directly.
8851 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
8852 to thread.
8853
191f02e5
PA
88542020-06-18 Pedro Alves <palves@redhat.com>
8855
8856 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
8857 after creating it, instead of writing to inferior_ptid.
8858 (gdbsim_target_open): Use switch_to_no_thread instead of writing
8859 to inferior_ptid directly.
8860 (gdbsim_target::wait): Don't write to inferior_ptid.
8861
0ac55310
PA
88622020-06-18 Pedro Alves <palves@redhat.com>
8863
8864 * remote.c (remote_target::remote_notice_new_inferior): Use
8865 switch_to_thread instead of writing to inferior_ptid directly.
8866 (remote_target::add_current_inferior_and_thread): Use
8867 switch_to_no_thread instead of writing to inferior_ptid directly.
8868 (extended_remote_target::attach): Use switch_to_inferior_no_thread
8869 and switch_to_thread instead of using set_current_inferior or
8870 writing to inferior_ptid directly.
8871
5233f39b
PA
88722020-06-18 Pedro Alves <palves@redhat.com>
8873
8874 * tracectf.c (ctf_target_open): Switch to added thread instead of
8875 writing to inferior_ptid directly.
8876 (ctf_target::close): Use switch_to_no_thread instead of writing to
8877 inferior_ptid directly.
8878
087e161b
PA
88792020-06-18 Pedro Alves <palves@redhat.com>
8880
8881 * tracefile-tfile.c (tfile_target_open): Don't write to
8882 inferior_ptid directly, instead switch to added thread.
8883 (tfile_target::close): Use switch_to_no_thread instead of writing
8884 to inferior_ptid directly.
8885
7fb43e53
PA
88862020-06-18 Pedro Alves <palves@redhat.com>
8887
8888 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
8889 (procfs_target::detach): Use switch_to_no_thread
8890 instead of writing to inferior_ptid directly.
8891 (do_attach): Change return type to void. Switch to the added
8892 thread.
8893 (procfs_target::create_inferior): Switch to the added thread.
8894 (procfs_do_thread_registers): Don't write to inferior_ptid.
8895
18493a00
PA
88962020-06-18 Pedro Alves <palves@redhat.com>
8897
8898 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
8899 of writing to inferior_ptid.
8900 (scoped_restore_exited_inferior): Delete.
8901 (handle_vfork_child_exec_or_exit): Simplify using
8902 scoped_restore_current_pspace_and_thread. Use switch_to_thread
8903 instead of writing to inferior_ptid.
8904 (THREAD_STOPPED_BY): Delete.
8905 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
8906 (thread_stopped_by_hw_breakpoint): Delete.
8907 (save_waitstatus): Use
8908 scoped_restore_current_thread+switch_to_thread, and call
8909 target_stopped_by_watchpoint instead of
8910 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
8911 instead of thread_stopped_by_sw_breakpoint, and
8912 target_stopped_by_hw_breakpoint instead of
8913 thread_stopped_by_hw_breakpoint.
8914 (handle_inferior_event)
8915 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
8916 inferior_ptid directly, nor
8917 set_current_inferior/set_current_program_space. Use
8918 switch_to_thread / switch_to_inferior_no_thread instead.
8919
a0776b13
PA
89202020-06-18 Pedro Alves <palves@redhat.com>
8921
8922 * target.c (generic_mourn_inferior): Use switch_to_no_thread
8923 instead of writing to inferior_ptid.
8924
6155c136
PA
89252020-06-18 Pedro Alves <palves@redhat.com>
8926
8927 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
8928 added thread.
8929 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
8930 to the added thread.
8931 (inf_ptrace_target::detach_success): Use switch_to_no_thread
8932 instead of writing to inferior_ptid.
8933
c5316fc6
PA
89342020-06-18 Pedro Alves <palves@redhat.com>
8935
8936 * gdbarch-selftests.c: Include "progspace-and-thread.h".
8937 (register_to_value_test): Mock a program_space too. Heap-allocate
8938 the address space. Don't write to inferior_ptid. Use
8939 switch_to_thread instead.
8940
8df01799
PA
89412020-06-18 Pedro Alves <palves@redhat.com>
8942
8943 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
8944 Delete.
8945 (find_signalled_thread()): New, factored out from
8946 linux_make_corefile_notes and adjusted to handle exited threads.
8947 (linux_make_corefile_notes): Adjust to use the new
8948 find_signalled_thread.
8949
41792d68
PA
89502020-06-18 Pedro Alves <palves@redhat.com>
8951
8952 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
8953 of saving/restoring inferior_ptid.
8954
612f258a
TT
89552020-06-17 Tom Tromey <tom@tromey.com>
8956
8957 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
8958 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
8959 declare.
8960 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
8961
efb763a5
SM
89622020-06-15 Simon Marchi <simon.marchi@efficios.com>
8963
8964 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
8965 of partial symtabs.
8966
2951f6c0
SM
89672020-06-17 Simon Marchi <simon.marchi@efficios.com>
8968
8969 * regformats/reg-arm.dat: Remove.
8970 * regformats/reg-bfin.dat: Remove.
8971 * regformats/reg-cris.dat: Remove.
8972 * regformats/reg-crisv32.dat: Remove.
8973 * regformats/reg-m32r.dat: Remove.
8974 * regformats/reg-tilegx.dat: Remove.
8975 * regformats/reg-tilegx32.dat: Remove.
8976
7d458ea5
SM
89772020-06-17 Simon Marchi <simon.marchi@efficios.com>
8978
8979 * features/Makefile (WHICH): Remove arm files.
8980 * regformats/arm/arm-with-iwmmxt.dat: Remove.
8981 * regformats/arm/arm-with-neon.dat: Remove.
8982 * regformats/arm/arm-with-vfpv2.dat: Remove.
8983 * regformats/arm/arm-with-vfpv3.dat: Remove.
8984
3af96c0d
SM
89852020-06-17 Simon Marchi <simon.marchi@efficios.com>
8986
8987 * features/Makefile (XMLTOC): Remove rx.xml.
8988
b25e22fd
PA
89892020-06-17 Pedro Alves <palves@redhat.com>
8990
8991 * gdbthread.h (thread_control_state) <trap_expected> Update
8992 comments.
8993
a78a19b1
AB
89942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8995
8996 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
8997 ada_language::lookup_symbol_nonlocal.
8998 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
8999 (ada_language::lookup_symbol_nonlocal): New member function,
9000 implementation from ada_lookup_symbol_nonlocal.
9001 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
9002 initializer.
9003 (cplus_language_data): Delete la_lookup_symbol_nonlocal
9004 initializer.
9005 (cplus_language::lookup_symbol_nonlocal): New member function.
9006 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
9007 (minimal_language_data) Likewise.
9008 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
9009 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
9010 initializer.
9011 (d_language::lookup_symbol_nonlocal): New member function.
9012 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
9013 initializer.
9014 (f_language::lookup_symbol_nonlocal): New member function.
9015 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
9016 initializer.
9017 * language.c (unknown_language_data): Likewise.
9018 (auto_language_data): Likewise.
9019 * language.h (language_data): Delete la_lookup_symbol_nonlocal
9020 field.
9021 (language_defn::lookup_symbol_nonlocal): New member function.
9022 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
9023 initializer.
9024 * objc-lang.c (objc_language_data): Likewise.
9025 * opencl-lang.c (opencl_language_data): Likewise.
9026 * p-lang.c (pascal_language_data): Likewise.
9027 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
9028 rust_language::lookup_symbol_nonlocal.
9029 (rust_language_data): Delete la_lookup_symbol_nonlocal
9030 initializer.
9031 (rust_language::lookup_symbol_nonlocal): New member function,
9032 implementation from rust_lookup_symbol_nonlocal.
9033 * symtab.c (lookup_symbol_aux): Update call to
9034 lookup_symbol_nonlocal.
9035 (basic_lookup_symbol_nonlocal): Rename to...
9036 (language_defn::lookup_symbol_nonlocal): ...this, and update
9037 header comment. Remove language_defn parameter, and replace with
9038 uses of `this'.
9039 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
9040
ebe2334e
AB
90412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9042
9043 * ada-lang.c (ada_language_data): Delete la_value_print_inner
9044 initializer.
9045 (ada_language::value_print_inner): New member function.
9046 * c-lang.c (c_language_data): Delete la_value_print_inner
9047 initializer.
9048 (cplus_language_data): Likewise.
9049 (asm_language_data): Likewise.
9050 (minimal_language_data): Likewise.
9051 * d-lang.c (d_language_data): Likewise.
9052 (d_language::value_print_inner): New member function.
9053 * f-lang.c (f_language_data): Delete la_value_print_inner
9054 initializer.
9055 (f_language::value_print_inner): New member function.
9056 * f-lang.h (f_value_print_innner): Rename to...
9057 (f_value_print_inner): ...this (note spelling of 'inner').
9058 * f-valprint.c (f_value_print_innner): Rename to...
9059 (f_value_print_inner): ...this (note spelling of 'inner').
9060 * go-lang.c (go_language_data): Delete la_value_print_inner
9061 initializer.
9062 (go_language::value_print_inner): New member function.
9063 * language.c (language_defn::value_print_inner): Define new member
9064 function.
9065 (unk_lang_value_print_inner): Delete.
9066 (unknown_language_data): Delete la_value_print_inner initializer.
9067 (unknown_language::value_print_inner): New member function.
9068 (auto_language_data): Delete la_value_print_inner initializer.
9069 (auto_language::value_print_inner): New member function.
9070 * language.h (language_data): Delete la_value_print_inner field.
9071 (language_defn::value_print_inner): Delcare new member function.
9072 * m2-lang.c (m2_language_data): Delete la_value_print_inner
9073 initializer.
9074 (m2_language::value_print_inner): New member function.
9075 * objc-lang.c (objc_language_data): Delete la_value_print_inner
9076 initializer.
9077 * opencl-lang.c (opencl_language_data): Likewise.
9078 * p-lang.c (pascal_language_data): Likewise.
9079 (pascal_language::value_print_inner): New member function.
9080 * rust-lang.c (rust_language_data): Delete la_value_print_inner
9081 initializer.
9082 (rust_language::value_print_inner): New member function.
9083 * valprint.c (do_val_print): Update call to value_print_inner.
9084
a1d1fa3e
AB
90852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9086
9087 * ada-lang.c (ada_language_data): Delete la_value_print
9088 initializer.
9089 (ada_language::value_print): New member function.
9090 * c-lang.c (c_language_data): Delete la_value_print initializer.
9091 (cplus_language_data): Likewise.
9092 (asm_language_data): Likewise.
9093 (minimal_language_data): Likewise.
9094 * d-lang.c (d_language_data): Likewise.
9095 * f-lang.c (f_language_data): Likewise.
9096 * go-lang.c (go_language_data): Likewise.
9097 * language.c (unk_lang_value_print): Delete.
9098 (language_defn::value_print): Define new member function.
9099 (unknown_language_data): Delete la_value_print initializer.
9100 (unknown_language::value_print): New member function.
9101 (auto_language_data): Delete la_value_print initializer.
9102 (auto_language::value_print): New member function.
9103 * language.h (language_data): Delete la_value_print field.
9104 (language_defn::value_print): Declare new member function.
9105 (LA_VALUE_PRINT): Update call to value_print.
9106 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
9107 * objc-lang.c (objc_language_data): Likewise.
9108 * opencl-lang.c (opencl_language_data): Likewise.
9109 * p-lang.c (pascal_language_data): Likewise.
9110 (pascal_language::value_print): New member function.
9111 * rust-lang.c (rust_language_data): Delete la_value_print
9112 initializer.
9113
f16a9f57
AB
91142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9115
9116 * ada-lang.c (ada_watch_location_expression): Rename to
9117 ada_language::watch_location_expression.
9118 (ada_language_data): Delete la_watch_location_expression
9119 initializer.
9120 (ada_language::watch_location_expression): New member function,
9121 implementation from ada_watch_location_expression.
9122 * breakpoint.c (watch_command_1): Update call to
9123 watch_location_expression.
9124 * c-lang.c (c_watch_location_expression): Rename to
9125 language_defn::watch_location_expression.
9126 (c_language_data): Delete la_watch_location_expression
9127 initializer.
9128 (cplus_language_data): Likewise.
9129 (asm_language_data): Likewise.
9130 (minimal_language_data): Likewise.
9131 * c-lang.h (c_watch_location_expression): Delete declaration.
9132 * d-lang.c (d_language_data): Delete la_watch_location_expression
9133 initializer.
9134 * f-lang.c (f_language_data): Likewise.
9135 * go-lang.c (go_language_data): Likewise.
9136 * language.c (language_defn::watch_location_expression): Member
9137 function implementation from c_watch_location_expression.
9138 (unknown_language_data): Delete la_watch_location_expression
9139 initializer.
9140 (auto_language_data): Likewise.
9141 * language.h (language_data): Delete la_watch_location_expression
9142 field.
9143 (language_defn::watch_location_expression): Declare new member
9144 function.
9145 * m2-lang.c (m2_language_data): Delete
9146 la_watch_location_expression initializer.
9147 * objc-lang.c (objc_language_data): Likewise.
9148 * opencl-lang.c (opencl_language_data): Likewise.
9149 * p-lang.c (pascal_language_data): Likewise.
9150 * rust-lang.c (rust_watch_location_expression): Rename to
9151 rust_language::watch_location_expression.
9152 (rust_language_data): Delete la_watch_location_expression
9153 initializer.
9154 (rust_language::watch_location_expression): New member function,
9155 implementation from rust_watch_location_expression.
9156
7e56227d
AB
91572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9158
9159 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
9160 ada_language::collect_symbol_completion_matches.
9161 (ada_language_data): Delete la_collect_symbol_completion_matches
9162 initializer.
9163 (ada_language::collect_symbol_completion_matches): New member
9164 function, implementation from
9165 ada_collect_symbol_completion_matches.
9166 * c-lang.c (c_language_data): Delete
9167 la_collect_symbol_completion_matches initializer.
9168 (cplus_language_data): Likewise.
9169 (asm_language_data): Likewise.
9170 (minimal_language_data): Likewise.
9171 * d-lang.c (d_language_data): Likewise.
9172 * f-lang.c (f_collect_symbol_completion_matches): Rename to
9173 f_language::collect_symbol_completion_matches.
9174 (f_language_data): Delete la_collect_symbol_completion_matches
9175 initializer.
9176 (f_language::collect_symbol_completion_matches) New member
9177 function, implementation from f_collect_symbol_completion_matches.
9178 * go-lang.c (go_language_data): Delete
9179 la_collect_symbol_completion_matches initializer.
9180 * language.c (unknown_language_data): Likewise.
9181 (auto_language_data): Likewise.
9182 * language.h (language_data): Delete
9183 la_collect_symbol_completion_matches field.
9184 (language_defn::collect_symbol_completion_matches): New member
9185 function.
9186 * m2-lang.c (m2_language_data): Delete
9187 la_collect_symbol_completion_matches initializer.
9188 * objc-lang.c (objc_language_data): Likewise.
9189 * opencl-lang.c (opencl_language_data): Likewise.
9190 * p-lang.c (pascal_language_data): Likewise.
9191 * rust-lang.c (rust_language_data): Likewise.
9192 * symtab.c (default_collect_symbol_completion_matches): Delete.
9193 (collect_symbol_completion_matches): Update call to
9194 collect_symbol_completion_matches.
9195 (collect_symbol_completion_matches_type): Likewise.
9196 * symtab.h (default_collect_symbol_completion_matches): Delete
9197 declaration.
9198
53fc67f8
AB
91992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9200
9201 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
9202 (ada_language_data): Delete la_word_break_characters initializer.
9203 (ada_language::word_break_characters): New member function.
9204 * c-lang.c (c_language_data): Delete la_word_break_characters
9205 initializer.
9206 (cplus_language_data): Likewise.
9207 (asm_language_data): Likewise.
9208 (minimal_language_data): Likewise.
9209 * completer.c: Update global comment.
9210 (advance_to_expression_complete_word_point): Update call to
9211 word_break_characters.
9212 (complete_files_symbols): Likewise.
9213 (complete_line_internal_1): Likewise.
9214 (default_completer_handle_brkchars): Likewise.
9215 (skip_quoted_chars): Likewise.
9216 * d-lang.c (d_language_data): Delete la_word_break_characters
9217 initializer.
9218 * f-lang.c (f_word_break_characters): Delete.
9219 (f_language_data): Delete la_word_break_characters initializer.
9220 (f_language::word_break_characters): New member function.
9221 * go-lang.c (go_language_data): Delete la_word_break_characters
9222 initializer.
9223 * language.c (unknown_language_data): Likewise.
9224 (auto_language_data): Likewise.
9225 * language.h (default_word_break_characters): Move declaration to
9226 earlier in the file.
9227 (language_data): Delete la_word_break_characters field.
9228 (language_defn::word_break_characters): New member function.
9229 * m2-lang.c (m2_language_data): Delete la_word_break_characters
9230 initializer.
9231 * objc-lang.c (objc_language_data): Likewise.
9232 * opencl-lang.c (opencl_language_data): Likewise.
9233 * p-lang.c (pascal_language_data): Likewise.
9234 * rust-lang.c (rust_language_data): Likewise.
9235
c9debfb9
AB
92362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9237
9238 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
9239 (ada_language_data): Delete la_get_symbol_name_matcher
9240 initializer.
9241 (language_defn::get_symbol_name_matcher_inner): New member
9242 function.
9243 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
9244 initializer.
9245 (cplus_language_data): Likewise.
9246 (cplus_language::get_symbol_name_matcher_inner): New member
9247 function.
9248 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
9249 (minimal_language_data): Likewise.
9250 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
9251 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
9252 initializer.
9253 * dictionary.c (iter_match_first_hashed): Update call to
9254 get_symbol_name_matcher.
9255 (iter_match_next_hashed): Likewise.
9256 (iter_match_next_linear): Likewise.
9257 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
9258 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
9259 initializer.
9260 (f_language::get_symbol_name_matcher_inner): New member function.
9261 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
9262 initializer.
9263 * language.c (default_symbol_name_matcher): Update header comment,
9264 make static.
9265 (language_defn::get_symbol_name_matcher): New definition.
9266 (language_defn::get_symbol_name_matcher_inner): Likewise.
9267 (get_symbol_name_matcher): Delete.
9268 (unknown_language_data): Delete la_get_symbol_name_matcher
9269 initializer.
9270 (auto_language_data): Likewise.
9271 * language.h (language_data): Delete la_get_symbol_name_matcher
9272 field.
9273 (language_defn::get_symbol_name_matcher): New member function.
9274 (language_defn::get_symbol_name_matcher_inner): Likewise.
9275 (default_symbol_name_matcher): Delete declaration.
9276 * linespec.c (find_methods): Update call to
9277 get_symbol_name_matcher.
9278 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
9279 initializer.
9280 * minsyms.c (lookup_minimal_symbol): Update call to
9281 get_symbol_name_matcher.
9282 (iterate_over_minimal_symbols): Likewise.
9283 * objc-lang.c (objc_language_data): Delete
9284 la_get_symbol_name_matcher initializer.
9285 * opencl-lang.c (opencl_language_data): Likewise.
9286 * p-lang.c (pascal_language_data): Likewise.
9287 * psymtab.c (psymbol_name_matches): Update call to
9288 get_symbol_name_matcher.
9289 * rust-lang.c (rust_language_data): Delete
9290 la_get_symbol_name_matcher initializer.
9291 * symtab.c (symbol_matches_search_name): Update call to
9292 get_symbol_name_matcher.
9293 (compare_symbol_name): Likewise.
9294
9a49ad8c
AB
92952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9296
9297 * ada-lang.c (ada_language_data): Delete la_compute_program
9298 initializer.
9299 * c-lang.c (c_language_data): Likewise.
9300 (c_language::compute_program): New member function.
9301 (cplus_language_data): Delete la_compute_program initializer.
9302 (cplus_language::compute_program): New member function.
9303 (asm_language_data): Delete la_compute_program initializer.
9304 (minimal_language_data): Likewise.
9305 * c-lang.h (c_compute_program): Update comment.
9306 (cplus_compute_program): Likewise.
9307 * compile/compile-c-support.c (c_compute_program): Likewise.
9308 (cplus_compute_program): Likewise.
9309 * compile/compile.c (compile_to_object): Update call to
9310 la_compute_program.
9311 * d-lang.c (d_language_data): Delete la_compute_program
9312 initializer.
9313 * f-lang.c (f_language_data): Likewise.
9314 * go-lang.c (go_language_data): Likewise.
9315 * language.c (unknown_language_data): Likewise.
9316 (auto_language_data): Likewise.
9317 * language.h (language_data): Delete la_compute_program field.
9318 (language_defn::compute_program): New member function.
9319 * m2-lang.c (m2_language_data): Delete la_compute_program
9320 initializer.
9321 * objc-lang.c (objc_language_data): Likewise.
9322 * opencl-lang.c (opencl_language_data): Likewise.
9323 * p-lang.c (pascal_language_data): Likewise.
9324 * rust-lang.c (rust_language_data): Likewise.
9325
eff93b4d
AB
93262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
9327
9328 * ada-lang.c (ada_language_data) Delete
9329 la_class_name_from_physname initializer.
9330 * c-lang.c (c_language_data): Likewise.
9331 (cplus_language_data): Likewise.
9332 (cplus_language::class_name_from_physname): New member function.
9333 (asm_language_data): Delete la_class_name_from_physname
9334 initializer.
9335 (minimal_language_data): Likewise.
9336 * d-lang.c (d_language_data): Likewise.
9337 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
9338 method on language_defn class.
9339 (guess_full_die_structure_name): Likewise.
9340 * f-lang.c (f_language_data): Delete la_class_name_from_physname
9341 initializer.
9342 * go-lang.c (go_language_data): Likewise.
9343 * language.c (language_class_name_from_physname): Delete.
9344 (unk_lang_class_name): Delete.
9345 (unknown_language_data): Delete la_class_name_from_physname
9346 initializer.
9347 (auto_language_data): Likewise.
9348 * language.h (language_data): Delete la_class_name_from_physname
9349 field.
9350 (language_defn::class_name_from_physname): New function.
9351 (language_class_name_from_physname): Delete declaration.
9352 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
9353 initializer.
9354 * objc-lang.c (objc_language_data): Likewise.
9355 * opencl-lang.c (opencl_language_data): Likewise.
9356 * p-lang.c (pascal_language_data): Likewise.
9357 * rust-lang.c (rust_language_data): Likewise.
9358
de543742
TT
93592020-06-16 Tom Tromey <tom@tromey.com>
9360
9361 * tui/tui-data.h (STATUS_NAME): New macro.
9362 * tui/tui-layout.c (tui_remove_some_windows)
9363 (initialize_known_windows, tui_register_window)
9364 (tui_layout_split::remove_windows, initialize_layouts)
9365 (tui_new_layout_command): Don't use hard-coded window names.
9366
a350efd4
TT
93672020-06-16 Tom Tromey <tom@tromey.com>
9368
9369 PR tui/25348:
9370 * tui/tui.c (tui_ensure_readline_initialized): Rename from
9371 tui_initialize_readline. Only run once. Call rl_initialize.
9372 * tui/tui.h (tui_ensure_readline_initialized): Rename from
9373 tui_initialize_readline.
9374 * tui/tui-io.c (tui_setup_io): Call
9375 tui_ensure_readline_initialized.
9376 * tui/tui-interp.c (tui_interp::init): Update.
9377
39ec0490
TT
93782020-06-16 Tom Tromey <tom@tromey.com>
9379
9380 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
9381 Also preserve the status window.
9382
d2d1ea20
TT
93832020-06-16 Tom Tromey <tom@tromey.com>
9384
9385 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
9386 where m_window==nullptr.
9387
66920317
TT
93882020-06-15 Tom Tromey <tromey@adacore.com>
9389
9390 * windows-nat.c (windows_nat::handle_output_debug_string):
9391 Update.
9392 (windows_nat::handle_ms_vc_exception): Update.
9393 * target.h (target_read_string): Change API.
9394 * target.c (target_read_string): Change API.
9395 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9396 Update.
9397 * solib-frv.c (frv_current_sos): Update.
9398 * solib-dsbt.c (dsbt_current_sos): Update.
9399 * solib-darwin.c (darwin_current_sos): Update.
9400 * linux-thread-db.c (inferior_has_bug): Update.
9401 * expprint.c (print_subexp_standard): Update.
9402 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
9403 (ada_exception_message_1): Update.
9404
a5d871dd
TT
94052020-06-15 Tom Tromey <tromey@adacore.com>
9406
9407 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
9408
670e35fa
TT
94092020-06-15 Tom Tromey <tromey@adacore.com>
9410
9411 * valprint.c (read_string): Update comment.
9412 * target.c (MIN): Remove.
9413 (target_read_string): Rewrite.
9414
f5272a3b
TT
94152020-06-15 Tom Tromey <tromey@adacore.com>
9416
9417 * corefile.c (read_memory_string): Remove.
9418 * ada-valprint.c (ada_value_print_ptr): Update.
9419 * ada-lang.h (ada_tag_name): Change return type.
9420 * ada-lang.c (type_from_tag): Update.
9421 (ada_tag_name_from_tsd): Change return type. Use
9422 target_read_string.
9423 (ada_tag_name): Likewise.
9424 * gdbcore.h (read_memory_string): Don't declare.
9425
2c074f49
HD
94262020-06-14 Hannes Domani <ssbssa@yahoo.de>
9427
9428 * symtab.c (rbreak_command): Ignore Windows drive colon.
9429
6a17d503
SM
94302020-06-12 Simon Marchi <simon.marchi@efficios.com>
9431
9432 * NEWS: Mention removed GDBserver host support.
9433
453c733f
NC
94342020-06-12 Nelson Chu <nelson.chu@sifive.com>
9435
9436 * features/riscv/rebuild-csr-xml.sh: Updated.
9437
2b4e6a3f
TT
94382020-06-11 Tom Tromey <tom@tromey.com>
9439
9440 PR gdb/18318:
9441 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
9442
4412332f
JG
94432020-06-09 Jonny Grant <jg@jguk.org>
94442020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
9445
9446 * main.c (captured_main_1): Don't print new line after help.
9447 (print_gdb_help): add mailing list and IRC channel information
9448 to --help. Add new lines between items in the footer. Remove
9449 quotes around bug url.
9450
2f33032a
KS
94512020-06-11 Keith Seitz <keiths@redhat.com>
9452
9453 PR gdb/21356
9454 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
9455 Resolve typedefs for type length calculations.
9456
7ab96794
TV
94572020-06-10 Tom de Vries <tdevries@suse.de>
9458
9459 PR ada/24713
9460 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
9461 (write_psymbols): Enable .gdb_index for ada.
9462 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
9463 ada.
9464
e5f3ece2
TV
94652020-06-10 Tom de Vries <tdevries@suse.de>
9466
9467 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
9468 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
9469 namei" instead of "const char *name" argument.
9470 (dw2_map_matching_symbols): Use "offset_type namei" variant of
9471 dw2_symtab_iter_init.
9472
940da03e
SM
94732020-06-08 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
9476 to use type::field and field::type instead.
9477
b6cdac4b
SM
94782020-06-08 Simon Marchi <simon.marchi@efficios.com>
9479
9480 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
9481 to use field::type instead.
9482
5d14b6e5
SM
94832020-06-08 Simon Marchi <simon.marchi@efficios.com>
9484
9485 * gdbtypes.h (struct field) <type, set_type>: New methods.
9486 Rename `type` field to...
9487 <m_type>: ... this. Change references throughout to use type or
9488 set_type methods.
9489 (FIELD_TYPE): Use field::type. Change call sites that modify
9490 the field's type to use field::set_type instead.
9491
3d967001
SM
94922020-06-08 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
9495 to use type::index_type instead.
9496
262abc0d
SM
94972020-06-08 Simon Marchi <simon.marchi@efficios.com>
9498
9499 * gdbtypes.h (struct type) <index_type, set_index_type>: New
9500 methods.
9501 (TYPE_INDEX_TYPE): Use type::index_type.
9502 * gdbtypes.c (create_array_type_with_stride): Likewise.
9503
82836c92
TT
95042020-06-07 Tom Tromey <tom@tromey.com>
9505
9506 * valprint.c (generic_val_print_float): Remove "embedded_offset"
9507 parameter.
9508 (generic_value_print): Update.
9509
940dace9
AB
95102020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9511
9512 Revert commit 982a38f60b0.
9513 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
9514
982a38f6
AB
95152020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9516
9517 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
9518 avoid use after free.
9519
82f06518
TV
95202020-06-05 Tom de Vries <tdevries@suse.de>
9521
9522 * NEWS: Fix typos.
9523
f8c41851
SM
95242020-06-04 Simon Marchi <simon.marchi@efficios.com>
9525
9526 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
9527 the per_bfd object.
9528 (dwarf2_read_debug_names): Likewise.
9529 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
9530 object when re-using a per_bfd object with an index.
9531
f9b5d5ea
TV
95322020-06-03 Tom de Vries <tdevries@suse.de>
9533
9534 PR symtab/26046
9535 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
9536 children for C++.
9537 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
9538 DW_TAG_subprogram.
9539
f6eee2d0
AB
95402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9541
9542 * ada-lang.c (ada_language_data): Delete skip_trampoline
9543 initializer.
9544 * c-lang.c (c_language_data): Likewise.
9545 (cplus_language_data): Likewise.
9546 (cplus_language::skip_trampoline): New member function.
9547 (asm_language_data): Delete skip_trampoline initializer.
9548 (minimal_language_data): Likewise.
9549 * d-lang.c (d_language_data): Likewise.
9550 * f-lang.c (f_language_data): Likewise.
9551 * go-lang.c (go_language_data): Likewise.
9552 * language.c (unk_lang_trampoline): Delete function.
9553 (skip_language_trampoline): Update.
9554 (unknown_language_data): Delete skip_trampoline initializer.
9555 (auto_language_data): Likewise.
9556 * language.h (language_data): Delete skip_trampoline field.
9557 (language_defn::skip_trampoline): New function.
9558 * m2-lang.c (m2_language_data): Delete skip_trampoline
9559 initializer.
9560 * objc-lang.c (objc_skip_trampoline): Delete function, move
9561 implementation to objc_language::skip_trampoline.
9562 (objc_language_data): Delete skip_trampoline initializer.
9563 (objc_language::skip_trampoline): New member function with
9564 implementation from objc_skip_trampoline.
9565 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
9566 initializer.
9567 * p-lang.c (pascal_language_data): Likewise.
9568 * rust-lang.c (rust_language_data): Likewise.
9569
0a50df5d
AB
95702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9571
9572 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
9573 (ada_language::demangle): New member function.
9574 * c-lang.c (c_language_data): Delete la_demangle initializer.
9575 (cplus_language_data): Delete la_demangle initializer.
9576 (cplus_language::demangle): New member function.
9577 (asm_language_data): Delete la_demangle initializer.
9578 (minimal_language_data): Delete la_demangle initializer.
9579 * d-lang.c (d_language_data): Delete la_demangle initializer.
9580 (d_language::demangle): New member function.
9581 * f-lang.c (f_language_data): Delete la_demangle initializer.
9582 (f_language::demangle): New member function.
9583 * go-lang.c (go_language_data): Delete la_demangle initializer.
9584 (go_language::demangle): New member function.
9585 * language.c (language_demangle): Update.
9586 (unk_lang_demangle): Delete.
9587 (unknown_language_data): Delete la_demangle initializer.
9588 (unknown_language::demangle): New member function.
9589 (auto_language_data): Delete la_demangle initializer.
9590 (auto_language::demangle): New member function.
9591 * language.h (language_data): Delete la_demangle field.
9592 (language_defn::demangle): New function.
9593 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
9594 * objc-lang.c (objc_language_data): Delete la_demangle
9595 initializer.
9596 (objc_language::demangle): New member function.
9597 * opencl-lang.c (opencl_language_data): Delete la_demangle
9598 initializer.
9599 * p-lang.c (pascal_language_data): Likewise.
9600 * rust-lang.c (rust_language_data): Likewise.
9601 (rust_language::demangle): New member function.
9602
fbfb0a46
AB
96032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9604
9605 * ada-lang.c (ada_language_data): Delete la_print_type
9606 initializer.
9607 (ada_language::print_type): New member function.
9608 * c-lang.c (c_language_data): Delete la_print_type initializer.
9609 (c_language::print_type): New member function.
9610 (cplus_language_data): Delete la_print_type initializer.
9611 (cplus_language::print_type): New member function.
9612 (asm_language_data): Delete la_print_type initializer.
9613 (asm_language::print_type): New member function.
9614 (minimal_language_data): Delete la_print_type initializer.
9615 (minimal_language::print_type): New member function.
9616 * d-lang.c (d_language_data): Delete la_print_type initializer.
9617 (d_language::print_type): New member function.
9618 * f-lang.c (f_language_data): Delete la_print_type initializer.
9619 (f_language::print_type): New member function.
9620 * go-lang.c (go_language_data): Delete la_print_type initializer.
9621 (go_language::print_type): New member function.
9622 * language.c (unk_lang_print_type): Delete.
9623 (unknown_language_data): Delete la_print_type initializer.
9624 (unknown_language::print_type): New member function.
9625 (auto_language_data): Delete la_print_type initializer.
9626 (auto_language::print_type): New member function.
9627 * language.h (language_data): Delete la_print_type field.
9628 (language_defn::print_type): New function.
9629 (LA_PRINT_TYPE): Update.
9630 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
9631 (m2_language::print_type): New member function.
9632 * objc-lang.c (objc_language_data): Delete la_print_type
9633 initializer.
9634 (objc_language::print_type): New member function.
9635 * opencl-lang.c (opencl_print_type): Delete, implementation moved
9636 to opencl_language::print_type.
9637 (opencl_language_data): Delete la_print_type initializer.
9638 (opencl_language::print_type): New member function, implementation
9639 from opencl_print_type.
9640 * p-lang.c (pascal_language_data): Delete la_print_type
9641 initializer.
9642 (pascal_language::print_type): New member function.
9643 * rust-lang.c (rust_print_type): Delete, implementation moved to
9644 rust_language::print_type.
9645 (rust_language_data): Delete la_print_type initializer.
9646 (rust_language::print_type): New member function, implementation
9647 from rust_print_type.
9648
6f827019
AB
96492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9650
9651 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
9652 implementation moves to...
9653 (ada_language::sniff_from_mangled_name): ...here. Update return
9654 type.
9655 (ada_language_data): Delete la_sniff_from_mangled_name
9656 initializer.
9657 * c-lang.c (c_language_data): Likewise.
9658 (cplus_language_data): Likewise.
9659 (cplus_language::sniff_from_mangled_name): New member function,
9660 implementation taken from gdb_sniff_from_mangled_name.
9661 (asm_language_data): Delete la_sniff_from_mangled_name
9662 initializer.
9663 (minimal_language_data): Likewise.
9664 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
9665 implementation moves to cplus_language::sniff_from_mangled_name.
9666 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
9667 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
9668 moves to...
9669 (d_language::sniff_from_mangled_name): ...here.
9670 (d_language_data): Delete la_sniff_from_mangled_name initializer.
9671 * f-lang.c (f_language_data): Likewise.
9672 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
9673 moves to...
9674 (go_language::sniff_from_mangled_name): ...here.
9675 (go_language_data): Delete la_sniff_from_mangled_name initializer.
9676 * language.c (language_sniff_from_mangled_name): Delete.
9677 (unknown_language_data): Delete la_sniff_from_mangled_name
9678 initializer.
9679 (auto_language_data): Likewise.
9680 * language.h (language_data): Delete la_sniff_from_mangled_name
9681 field.
9682 (language_defn::sniff_from_mangled_name): New function.
9683 (language_sniff_from_mangled_name): Delete declaration.
9684 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
9685 field.
9686 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
9687 implementation moves to...
9688 (objc_language::sniff_from_mangled_name): ...here.
9689 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
9690 * opencl-lang.c (opencl_language_data): Likewise.
9691 * p-lang.c (pascal_language_data): Likewise.
9692 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
9693 implementation moves to...
9694 (rust_language::sniff_from_mangled_name): ...here.
9695 (rust_language_data): Delete la_sniff_from_mangled_name
9696 initializer.
9697 * symtab.c (symbol_find_demangled_name): Call
9698 sniff_from_mangled_name member function.
9699
fb8006fd
AB
97002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9701
9702 * ada-lang.c (ada_language_data): Delete la_search_name_hash
9703 initializer.
9704 * c-lang.c (c_language_data): Likewise.
9705 (cplus_language_data): Likewise.
9706 (cplus_language::search_name_hash): New member function.
9707 (asm_language_data): Delete la_search_name_hash initializer.
9708 (minimal_language_data): Likewise.
9709 * d-lang.c (d_language_data): Likewise.
9710 * dictionary.c (default_search_name_hash): Rename to...
9711 (language_defn::search_name_hash): ...this.
9712 * f-lang.c (f_language_data): Likewise.
9713 (f_language::search_name_hash): New member function.
9714 * go-lang.c (go_language_data): Delete la_search_name_hash
9715 initializer.
9716 * language.c (unknown_language_data): Likewise.
9717 (auto_language_data): Likewise.
9718 * language.h (struct language_data): Delete la_search_name_hash
9719 field.
9720 (language_defn::search_name_hash): Declare new member function.
9721 (default_search_name_hash): Delete declaration.
9722 * m2-lang.c (m2_language_data): Delete la_search_name_hash
9723 initializer.
9724 * objc-lang.c (objc_language_data): Likewise.
9725 * opencl-lang.c (opencl_language_data): Likewise.
9726 * p-lang.c (pascal_language_data): Likewise.
9727 * rust-lang.c (rust_language_data): Likewise.
9728 * symtab.c (search_name_hash): Update call.
9729
8e25bafe
AB
97302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9731
9732 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
9733 initializer.
9734 * c-lang.c (class compile_instance): Declare.
9735 (c_language_data): Delete la_get_compile_instance initializer.
9736 (c_language::get_compile_instance): New member function.
9737 (cplus_language_data): Delete la_get_compile_instance initializer.
9738 (cplus_language::get_compile_instance): New member function.
9739 (asm_language_data): Delete la_get_compile_instance initializer.
9740 (minimal_language_data): Likewise.
9741 * c-lang.h (c_get_compile_context): Update comment.
9742 (cplus_get_compile_context): Update comment.
9743 * compile/compile.c (compile_to_object): Update calls, don't rely
9744 on function pointer being NULL.
9745 * d-lang.c (d_language_data): Delete la_get_compile_instance
9746 initializer.
9747 * f-lang.c (f_language_data): Likewise.
9748 * go-lang.c (go_language_data): Likewise.
9749 * language.c (unknown_language_data): Likewise.
9750 (auto_language_data): Likewise.
9751 * language.h (language_data): Delete la_get_compile_instance field.
9752 (language_defn::get_compile_instance): New member function.
9753 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
9754 initializer.
9755 * objc-lang.c (objc_language_data): Likewise.
9756 * opencl-lang.c (opencl_language_data): Likewise.
9757 * p-lang.c (pascal_language_data): Likewise.
9758 * rust-lang.c (rust_language_data): Likewise.
9759
4009ee92
AB
97602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9761
9762 * ada-lang.c (ada_add_all_symbols): Update comment.
9763 (ada_iterate_over_symbols): Delete, move implementation to...
9764 (ada_language::iterate_over_symbols): ...here, a new member
9765 function, rewrite to use range based for loop.
9766 (ada_language_data): Delete la_iterate_over_symbols initializer.
9767 * c-lang.c (c_language_data): Likewise.
9768 (cplus_language_data): Likewise.
9769 (asm_language_data): Likewise.
9770 (minimal_language_data): Likewise.
9771 * d-lang.c (d_language_data): Likewise.
9772 * f-lang.c (f_language_data): Likewise.
9773 * go-lang.c (go_language_data): Likewise.
9774 * language.c (unknown_language_data): Likewise.
9775 (auto_language_data): Likewise.
9776 * language.h (language_data): Delete la_iterate_over_symbols field.
9777 (language_defn::iterate_over_symbols): New member function.
9778 (LA_ITERATE_OVER_SYMBOLS): Update.
9779 * linespec.c (iterate_over_all_matching_symtabs): Update.
9780 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
9781 initializer.
9782 * objc-lang.c (objc_language_data): Likewise.
9783 * opencl-lang.c (opencl_language_data): Likewise.
9784 * p-lang.c (pascal_language_data): Likewise.
9785 * rust-lang.c (rust_language_data): Likewise.
9786
54f4ca46
AB
97872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9788
9789 * ada-lang.c (ada_language_data): Delete
9790 la_lookup_transparent_type initializer.
9791 * c-lang.c (c_language_data): Likewise.
9792 (cplus_language_data): Likewise.
9793 (cplus_language::lookup_transparent_type): New member function.
9794 (asm_language_data): Delete la_lookup_transparent_type
9795 initializer.
9796 (minimal_language_data): Likewise.
9797 * d-lang.c (d_language_data): Likewise.
9798 * f-lang.c (f_language_data): Likewise.
9799 * go-lang.c (go_language_data): Likewise.
9800 * language.c (unknown_language_data): Likewise.
9801 (auto_language_data): Likewise.
9802 * language.h (struct language_data): Delete
9803 la_lookup_transparent_type field.
9804 (language_defn::lookup_transparent_type): New member function.
9805 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
9806 initializer.
9807 * objc-lang.c (objc_language_data): Likewise.
9808 * opencl-lang.c (opencl_language_data): Likewise.
9809 * p-lang.c (pascal_language_data): Likewise.
9810 * rust-lang.c (rust_language_data): Likewise.
9811 * symtab.c (symbol_matches_domain): Update call.
9812
1fb314aa
AB
98132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9814
9815 * ada-lang.c (ada_language_arch_info): Delete function, move
9816 implementation to...
9817 (ada_language::language_arch_info): ...here, a new member
9818 function.
9819 (ada_language_data): Delete la_language_arch_info.
9820 * c-lang.c (c_language_data): Likewise.
9821 (c_language::language_arch_info): New member function.
9822 (cplus_language_arch_info): Delete function, move
9823 implementation to...
9824 (cplus_language::language_arch_info): ...here, a new member
9825 function.
9826 (cplus_language_data): Delete la_language_arch_info.
9827 (asm_language_data): Likewise.
9828 (asm_language::language_arch_info): New member function.
9829 (minimal_language_data): Delete la_language_arch_info.
9830 (minimal_language::language_arch_info): New member function.
9831 * d-lang.c (d_language_arch_info): Delete function, move
9832 implementation to...
9833 (d_language::language_arch_info): ...here, a new member
9834 function.
9835 (d_language_data): Delete la_language_arch_info.
9836 * f-lang.c (f_language_arch_info): Delete function, move
9837 implementation to...
9838 (f_language::language_arch_info): ...here, a new member
9839 function.
9840 (f_language_data): Delete la_language_arch_info.
9841 * go-lang.c (go_language_arch_info): Delete function, move
9842 implementation to...
9843 (go_language::language_arch_info): ...here, a new member
9844 function.
9845 (go_language_data): Delete la_language_arch_info.
9846 * language.c (unknown_language_data): Likewise.
9847 (unknown_language::language_arch_info): New member function.
9848 (auto_language_data): Delete la_language_arch_info.
9849 (auto_language::language_arch_info): New member function.
9850 (language_gdbarch_post_init): Update call to
9851 la_language_arch_info.
9852 * language.h (language_data): Delete la_language_arch_info
9853 function pointer.
9854 (language_defn::language_arch_info): New function.
9855 * m2-lang.c (m2_language_arch_info): Delete function, move
9856 implementation to...
9857 (m2_language::language_arch_info): ...here, a new member
9858 function.
9859 (m2_language_data): Delete la_language_arch_info.
9860 * objc-lang.c (objc_language_arch_info): Delete function, move
9861 implementation to...
9862 (objc_language::language_arch_info): ...here, a new member
9863 function.
9864 (objc_language_data): Delete la_language_arch_info.
9865 * opencl-lang.c (opencl_language_arch_info): Delete function, move
9866 implementation to...
9867 (opencl_language::language_arch_info): ...here, a new member
9868 function.
9869 (opencl_language_data): Delete la_language_arch_info.
9870 * p-lang.c (pascal_language_arch_info): Delete function, move
9871 implementation to...
9872 (pascal_language::language_arch_info): ...here, a new member
9873 function.
9874 (pascal_language_data): Delete la_language_arch_info.
9875 * rust-lang.c (rust_language_arch_info): Delete function, move
9876 implementation to...
9877 (rust_language::language_arch_info): ...here, a new member
9878 function.
9879 (rust_language_data): Delete la_language_arch_info.
9880
48448202
AB
98812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9882
9883 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
9884 initializer.
9885 * c-lang.c (c_language_data): Likewise.
9886 (cplus_language_data): Likewise.
9887 (cplus_language::pass_by_reference_info): New method.
9888 (asm_language_data): Delete la_pass_by_reference initializer.
9889 (minimal_language_data): Likewise.
9890 * cp-abi.c (cp_pass_by_reference): Remove use of
9891 default_pass_by_reference.
9892 * d-lang.c (d_language_data): Likewise.
9893 * f-lang.c (f_language_data): Likewise.
9894 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
9895 default_pass_by_reference.
9896 * go-lang.c (go_language_data): Likewise.
9897 * language.c (language_pass_by_reference): Update.
9898 (default_pass_by_reference): Delete.
9899 (unknown_language_data): Delete la_pass_by_reference
9900 initializer.
9901 (auto_language_data): Likewise.
9902 * language.h (struct language_data): Delete la_pass_by_reference
9903 field.
9904 (language_defn::pass_by_reference_info): New member function.
9905 (default_pass_by_reference): Delete declaration.
9906 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
9907 initializer.
9908 * objc-lang.c (objc_language_data): Likewise.
9909 * opencl-lang.c (opencl_language_data): Likewise.
9910 * p-lang.c (pascal_language_data): Likewise.
9911 * rust-lang.c (rust_language_data): Likewise.
9912
15e5fd35
AB
99132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9914
9915 * ada-lang.c (ada_read_var_value): Delete function, move
9916 implementation to...
9917 (ada_language::read_var_value): ...here.
9918 (ada_language_data): Delete la_read_var_value initializer.
9919 * c-lang.c (c_language_data): Likewise.
9920 (cplus_language_data): Likewise.
9921 (minimal_language_data): Likewise.
9922 * d-lang.c (d_language_data): Likewise.
9923 * f-lang.c (f_language_data): Likewise.
9924 * findvar.c (default_read_var_value): Rename to...
9925 (language_defn::read_var_value): ...this.
9926 * findvar.c (read_var_value): Update header comment, and change to
9927 call member function instead of function pointer.
9928 * go-lang.c (go_language_data): Likewise.
9929 * language.c (unknown_language_data): Delete la_read_var_value
9930 initializer.
9931 (auto_language_data): Likewise.
9932 * language.h (struct language_data): Delete la_read_var_value
9933 field.
9934 (language_defn::read_var_value): New member function.
9935 (default_read_var_value): Delete declaration.
9936 * m2-lang.c (m2_language_data): Delete la_read_var_value
9937 initializer.
9938 * objc-lang.c (objc_language_data): Likewise.
9939 * opencl-lang.c (opencl_language_data): Likewise.
9940 * p-lang.c (pascal_language_data): Likewise.
9941 * rust-lang.c (rust_language_data): Likewise.
9942 * value.h (default_read_var_value): Delete declaration.
9943
5bd40f2a
AB
99442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9945
9946 * ada-lang.c (ada_print_array_index): Delete function, move
9947 implementation to...
9948 (ada_language::print_array_index): ...here.
9949 (ada_language_data): Delete la_print_array_index initializer.
9950 * c-lang.c (c_language_data): Likewise.
9951 (cplus_language_data): Likewise.
9952 (minimal_language_data): Likewise.
9953 * d-lang.c (d_language_data): Likewise.
9954 * f-lang.c (f_language_data): Likewise.
9955 * go-lang.c (go_language_data): Likewise.
9956 * language.c (default_print_array_index): Delete function, move
9957 implementation to...
9958 (language_defn::print_array_index): ...here.
9959 (unknown_language_data): Delete la_print_array_index initializer.
9960 (auto_language_data): Likewise.
9961 * language.h (struct language_data): Delete la_print_array_index
9962 field.
9963 (language_defn::print_array_index): New member function.
9964 (LA_PRINT_ARRAY_INDEX): Update.
9965 (default_print_array_index): Delete declaration.
9966 * m2-lang.c (m2_language_data): Delete la_print_array_index
9967 initializer.
9968 * objc-lang.c (objc_language_data): Likewise.
9969 * opencl-lang.c (opencl_language_data): Likewise.
9970 * p-lang.c (pascal_language_data): Likewise.
9971 * rust-lang.c (rust_language_data): Likewise.
9972
0874fd07
AB
99732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
9974
9975 * gdb/ada-lang.c (ada_language_defn): Convert to...
9976 (ada_language_data): ...this.
9977 (class ada_language): New class.
9978 (ada_language_defn): New static global.
9979 * gdb/c-lang.c (c_language_defn): Convert to...
9980 (c_language_data): ...this.
9981 (class c_language): New class.
9982 (c_language_defn): New static global.
9983 (cplus_language_defn): Convert to...
9984 (cplus_language_data): ...this.
9985 (class cplus_language): New class.
9986 (cplus_language_defn): New static global.
9987 (asm_language_defn): Convert to...
9988 (asm_language_data): ...this.
9989 (class asm_language): New class.
9990 (asm_language_defn): New static global.
9991 (minimal_language_defn): Convert to...
9992 (minimal_language_data): ...this.
9993 (class minimal_language): New class.
9994 (minimal_language_defn): New static global.
9995 * gdb/d-lang.c (d_language_defn): Convert to...
9996 (d_language_data): ...this.
9997 (class d_language): New class.
9998 (d_language_defn): New static global.
9999 * gdb/f-lang.c (f_language_defn): Convert to...
10000 (f_language_data): ...this.
10001 (class f_language): New class.
10002 (f_language_defn): New static global.
10003 * gdb/go-lang.c (go_language_defn): Convert to...
10004 (go_language_data): ...this.
10005 (class go_language): New class.
10006 (go_language_defn): New static global.
10007 * gdb/language.c (unknown_language_defn): Remove declaration.
10008 (current_language): Initialize to nullptr, real initialization is
10009 moved to _initialize_language.
10010 (languages): Delete global.
10011 (language_defn::languages): Define.
10012 (set_language_command): Use language_defn::languages.
10013 (set_language): Likewise.
10014 (range_error): Likewise.
10015 (language_enum): Likewise.
10016 (language_def): Likewise.
10017 (add_set_language_command): Use language_def::languages for the
10018 language list, and language_def to lookup language pointers.
10019 (skip_language_trampoline): Use language_defn::languages.
10020 (unknown_language_defn): Convert to...
10021 (unknown_language_data): ...this.
10022 (class unknown_language): New class.
10023 (unknown_language_defn): New static global.
10024 (auto_language_defn): Convert to...
10025 (auto_language_data): ...this.
10026 (class auto_language): New class.
10027 (auto_language_defn): New static global.
10028 (language_gdbarch_post_init): Use language_defn::languages.
10029 (_initialize_language): Initialize current_language.
10030 * gdb/language.h (struct language_defn): Rename to...
10031 (struct language_data): ...this.
10032 (struct language_defn): New.
10033 (auto_language_defn): Delete.
10034 (unknown_language_defn): Delete.
10035 (minimal_language_defn): Delete.
10036 (ada_language_defn): Delete.
10037 (asm_language_defn): Delete.
10038 (c_language_defn): Delete.
10039 (cplus_language_defn): Delete.
10040 (d_language_defn): Delete.
10041 (f_language_defn): Delete.
10042 (go_language_defn): Delete.
10043 (m2_language_defn): Delete.
10044 (objc_language_defn): Delete.
10045 (opencl_language_defn): Delete.
10046 (pascal_language_defn): Delete.
10047 (rust_language_defn): Delete.
10048 * gdb/m2-lang.c (m2_language_defn): Convert to...
10049 (m2_language_data): ...this.
10050 (class m2_language): New class.
10051 (m2_language_defn): New static global.
10052 * gdb/objc-lang.c (objc_language_defn): Convert to...
10053 (objc_language_data): ...this.
10054 (class objc_language): New class.
10055 (objc_language_defn): New static global.
10056 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
10057 (opencl_language_data): ...this.
10058 (class opencl_language): New class.
10059 (opencl_language_defn): New static global.
10060 * gdb/p-lang.c (pascal_language_defn): Convert to...
10061 (pascal_language_data): ...this.
10062 (class pascal_language): New class.
10063 (pascal_language_defn): New static global.
10064 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
10065 language pointer, update comment format.
10066 * gdb/rust-lang.c (rust_language_defn): Convert to...
10067 (rust_language_data): ...this.
10068 (class rust_language): New class.
10069 (rust_language_defn): New static global.
10070
1313c56e
AB
100712020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
10072
10073 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
10074 member variable.
10075 <m_stmt_at_address>: New member variable.
10076 (lnp_state_machine::record_line): Don't record some lines, update
10077 tracking of is_stmt at the same address.
10078 (lnp_state_machine::lnp_state_machine): Initialise new member
10079 variables.
10080
b7ed9f3d
ST
100812020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10082
10083 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
10084 "-include gnu-nat-mig.h".
10085 * gnu-nat-mig.h: New file.
10086 * gnu-nat.c: Include "gnu-nat-mig.h".
10087 (exc_server, msg_reply_server, notify_server,
10088 process_reply_server): Remove declarations.
10089
14a8ad62
ST
100902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10091
10092 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
10093 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
10094 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
10095 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
10096 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
10097 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
10098 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
10099 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
10100 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
10101 to gnu_nat_target class.
10102 * gnu-nat.c: Likewise.
10103 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
10104 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
10105 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
10106 object.
10107 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
10108 instead of `gnu_target'.
10109
0af5e106
ST
101102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10111
10112 * i386-gnu-tdep.c: Include "gdbcore.h"
10113 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
10114 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
10115 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
10116 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
10117 i386_gnu_sigcontext_addr): New functions
10118 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
10119 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
10120 tdep.
10121
078f2fc9
ST
101222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10123
10124 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
10125 before fork_inferior call. Avoid calling it if target_is_pushed returns
10126 true.
10127
53dff92c
ST
101282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10129
10130 * gnu-nat.h (gnu_target): New variable declaration.
10131 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
10132 gnu_target.
10133 * gnu-nat.c (gnu_target): New variable.
10134 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
10135 add_thread_silent, and add_thread calls.
10136 (gnu_nat_target::create_inferior): Pass gnu_target to
10137 add_thread_silent, thread_change_ptid call.
10138 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
10139 call.
10140
5a8b8627
ST
101412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10142
10143 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
10144 (gnu_nat_target::find_memory_regions): Remove unused
10145 `old_address' variable.
10146
366f550a
ST
101472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10148
10149 * gnu-nat.c: Include "gdbarch.h".
10150
f14871bf
ST
101512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10152
10153 * reply_mig_hack.awk (Error return): Cast function through
10154 void *, to bypass compiler function call check.
10155
c6887cfb
ST
101562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10157
10158 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
10159 $(srcdir)/reply_mig_hack.awk.
10160
6930bffe
ST
101612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10162
10163 * gnu-nat.h (gnu_debug_flag): Set type to bool.
10164
112c22ed
JG
101652020-05-30 Jonny Grant <jg@jguk.org>
10166
10167 * configure.ac (ACX_BUGURL): change bug URL to https.
10168
f68f85b5
PA
101692020-05-30 Pedro Alves <palves@redhat.com>
10170
10171 * cp-support.c (replace_typedefs_template): New.
10172 (replace_typedefs_qualified_name): Handle
10173 DEMANGLE_COMPONENT_TEMPLATE.
10174
976ca316
SM
101752020-05-29 Simon Marchi <simon.marchi@efficios.com>
10176
10177 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
10178 dwarf2/index-cache.h, dwarf2/index-write.c,
10179 dwarf2/index-write.h, dwarf2/line-header.c,
10180 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
10181 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
10182 variables and fields from `dwarf2_per_objfile` to just
10183 `per_objfile` throughout.
10184
989ade05
SM
101852020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
10186
10187 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10188 <push_dwarf_reg_entry_value>: Add comment.
10189
c47bae85
KB
101902020-05-28 Kevin Buettner <kevinb@redhat.com>
10191 Keith Seitz <keiths@redhat.com>
10192
10193 * python/python.c (do_start_initialization): Call PyEval_SaveThread
10194 instead of PyEval_ReleaseLock.
10195 (class gdbpy_gil): Move to earlier in file.
10196 (finalize_python): Set gdb_python_initialized.
10197 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
10198 when not initialized.
10199
44486dcf
SM
102002020-05-28 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10203 <push_dwarf_reg_entry_value>: Remove assert. Override
10204 per_objfile with caller_per_objfile.
10205
f030440d
TV
102062020-05-28 Tom de Vries <tdevries@suse.de>
10207
10208 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
10209 PR gold/15646 workaround to symbol kind "type".
10210
f0fbb768
TT
102112020-05-27 Tom Tromey <tromey@adacore.com>
10212
10213 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
10214
af0b2a3e
TT
102152020-05-27 Tom Tromey <tromey@adacore.com>
10216
10217 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
10218 Use htab_find_with_hash.
10219 <add_abbrev>: Remove "abbrev_number" parameter.
10220 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
10221 "abbrev_number" parameter. Use htab_find_slot_with_hash.
10222 (hash_abbrev): Add comment.
10223 (abbrev_table::lookup_abbrev): Move to header file.
10224 (abbrev_table::read): Update.
10225
7d00ffec
TT
102262020-05-27 Tom Tromey <tromey@adacore.com>
10227
10228 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
10229 method.
10230 <canonical_name>: New member.
10231 <raw_name>: Rename from "name".
10232 (partial_die_info): Initialize canonical_name.
10233 (scan_partial_symbols): Check raw_name.
10234 (partial_die_parent_scope, partial_die_full_name)
10235 (add_partial_symbol, add_partial_subprogram)
10236 (add_partial_enumeration, load_partial_dies): Use "name" method.
10237 (partial_die_info::name): New method.
10238 (partial_die_info::read, guess_partial_die_structure_name)
10239 (partial_die_info::fixup): Update.
10240
697bba18
TT
102412020-05-27 Tom Tromey <tromey@adacore.com>
10242
10243 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
10244 <get_ref_die_offset>: Inline.
10245 <get_ref_die_offset_complaint>: New method.
10246 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
10247 (attribute::get_ref_die_offset_complaint): Rename from
10248 get_ref_die_offset. Just issue complaint.
10249
c17ace43
HD
102502020-05-27 Hannes Domani <ssbssa@yahoo.de>
10251
10252 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
10253
96445f0b
HD
102542020-05-27 Hannes Domani <ssbssa@yahoo.de>
10255
10256 * exec.c (exec_file_attach): Use errno value of first openp failure.
10257
ac637ec3
HD
102582020-05-27 Hannes Domani <ssbssa@yahoo.de>
10259
10260 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
10261 Don't close thread handle.
10262
17ee85fc
TT
102632020-05-27 Tom Tromey <tom@tromey.com>
10264 Simon Marchi <simon.marchi@efficios.com>
10265
10266 * objfiles.h (struct objfile) <partial_symtabs>: Now a
10267 shared_ptr.
10268 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
10269 member.
10270 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
10271 dwarf2_per_bfd_objfile_data_key>: New globals.
10272 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
10273 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
10274 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
10275 shared.
10276 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
10277 short-circuit when sharing.
10278 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
10279 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
10280
39b16f87
SM
102812020-05-27 Simon Marchi <simon.marchi@efficios.com>
10282
10283 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
10284 to...
10285 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
10286 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
10287
fcf23d5b
SM
102882020-05-27 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
10291 build_name_components, find_name_components_bounds>:
10292 Add per_objfile parameter.
10293 (struct mapped_index) <symbol_name_at>: Likewise.
10294 (struct mapped_debug_names): Remove constructor.
10295 <dwarf2_per_objfile>: Remove field.
10296 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
10297 (mapped_index_base::find_name_components_bounds,
10298 mapped_index_base::build_name_components,
10299 dw2_expand_symtabs_matching_symbol): Likewise.
10300 (class mock_mapped_index) <symbol_name_at>: Likewise.
10301 (check_match): Likewise.
10302 (check_find_bounds_finds): Likewise.
10303 (test_mapped_index_find_name_component_bounds): Update.
10304 (CHECK_MATCH): Update.
10305 (dw2_expand_symtabs_matching): Update.
10306 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
10307 per_objfile parameter.
10308 <find_vec_in_debug_names>: Likewise.
10309 <m_per_objfile>: New field.
10310 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
10311 parameter.
10312 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
10313 (dw2_debug_names_iterator::next): Update.
10314 (dw2_debug_names_lookup_symbol): Update.
10315 (dw2_debug_names_expand_symtabs_for_function): Update.
10316 (dw2_debug_names_map_matching_symbols): Update.
10317 (dw2_debug_names_expand_symtabs_matching): Update.
10318 (dwarf2_read_debug_names): Update.
10319
7188ed02
SM
103202020-05-27 Simon Marchi <simon.marchi@efficios.com>
10321
10322 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
10323 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
10324 move to dwarf2_per_objfile.
10325 <read_in_chain>: Remove.
10326 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
10327 remove_all_cus, age_comp_units>: New methods.
10328 <m_dwarf2_cus>: New member.
10329 (struct dwarf2_per_cu_data) <cu>: Remove.
10330 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
10331 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
10332 moved to methods of dwarf2_per_objfile.
10333 (dwarf2_clear_marks): Remove.
10334 (dwarf2_queue_item::~dwarf2_queue_item): Update.
10335 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
10336 (dwarf2_per_bfd::free_cached_comp_units): Remove.
10337 (dwarf2_per_objfile::remove_all_cus): New.
10338 (class free_cached_comp_units) <~free_cached_comp_units>:
10339 Update.
10340 (load_cu): Update.
10341 (dw2_do_instantiate_symtab): Adjust.
10342 (fill_in_sig_entry_from_dwo_entry): Adjust.
10343 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10344 (cutu_reader::cutu_reader): Likewise.
10345 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
10346 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
10347 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
10348 and dwarf2_per_objfile::age_comp_units.
10349 (load_partial_comp_unit): Update.
10350 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
10351 (process_queue): Likewise.
10352 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
10353 backlink.
10354 (dwarf2_read_addr_index): Likewise.
10355 (follow_die_offset): Likewise.
10356 (dwarf2_fetch_die_loc_sect_off): Likewise.
10357 (dwarf2_fetch_constant_bytes): Likewise.
10358 (dwarf2_fetch_die_type_sect_off): Likewise.
10359 (follow_die_sig_1): Likewise.
10360 (load_full_type_unit): Likewise.
10361 (read_signatured_type): Likewise.
10362 (dwarf2_cu::dwarf2_cu): Don't set cu field.
10363 (dwarf2_cu::~dwarf2_cu): Remove.
10364 (dwarf2_per_objfile::get_cu): New.
10365 (dwarf2_per_objfile::set_cu): New.
10366 (age_cached_comp_units): Rename to...
10367 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
10368 to std::unordered_map.
10369 (free_one_cached_comp_unit): Rename to...
10370 (dwarf2_per_objfile::remove_cu): ... this. Adjust
10371 to std::unordered_map.
10372 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
10373 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
10374 a dwarf2_per_objfile in data.
10375 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
10376 (dwarf2_clear_marks): Remove.
10377
2e671100
SM
103782020-05-27 Simon Marchi <simon.marchi@efficios.com>
10379
10380 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
10381 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
10382 (init_tu_and_read_dwo_dies): Likewise.
10383 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
10384 (cutu_reader::cutu_reader): Likewise.
10385 (load_partial_comp_unit): Likewise.
10386 (process_psymtab_comp_unit): Update.
10387 (build_type_psymtabs_1): Update.
10388 (process_skeletonless_type_unit): Update.
10389 (load_full_comp_unit): Update.
10390 (find_partial_die): Update.
10391 (dwarf2_read_addr_index): Update.
10392 (read_signatured_type): Update.
10393
2e6a9f79
SM
103942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10395
10396 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
10397 m_header_read_in>: New fields.
10398 <get_header>: New method.
10399 * dwarf2/read.c (per_cu_header_read_in): Remove.
10400 (dwarf2_per_cu_data::get_header): New.
10401 (dwarf2_per_cu_data::addr_size): Update.
10402 (dwarf2_per_cu_data::offset_size): Update.
10403 (dwarf2_per_cu_data::ref_addr_size): Update.
10404
1b555f17
SM
104052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10406
10407 * dwarf2/read.c (load_cu): Return dwarf2_cu.
10408 (dw2_do_instantiate_symtab): Update.
10409 (queue_and_load_all_dwo_tus): Change parameter from
10410 dwarf2_per_cu_data to dwarf2_cu.
10411 (dwarf2_fetch_die_loc_sect_off): Update.
10412 (dwarf2_fetch_constant_bytes): Update.
10413 (dwarf2_fetch_die_type_sect_off): Update.
10414
8fc0b21d
SM
104152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10416
10417 * dwarf2/read.c (process_full_comp_unit,
10418 process_full_type_unit): Remove per_cu, per_objfile paramters.
10419 Add dwarf2_cu parameter.
10420 (process_queue): Update.
10421
168c9250
SM
104222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10423
10424 * dwarf2/read.c (create_cu_from_index_list): Replace
10425 dwarf2_per_objfile parameter with dwarf2_per_bfd.
10426 (create_cus_from_index_list): Likewise.
10427 (create_cus_from_index): Likewise.
10428 (create_signatured_type_table_from_index): Likewise.
10429 (create_cus_from_debug_names_list): Likewise.
10430 (create_cus_from_debug_names): Likewise.
10431 (dwarf2_read_gdb_index): Update.
10432 (dwarf2_read_debug_names): Update.
10433
e286671b
TT
104342020-05-27 Tom Tromey <tom@tromey.com>
10435 Simon Marchi <simon.marchi@efficios.com>
10436
10437 * dwarf2/read.h (struct dwarf2_per_objfile)
10438 <get_type_for_signatured_type, set_type_for_signatured_type>:
10439 New methods.
10440 <m_type_map>: New member.
10441 (struct signatured_type) <type>: Remove.
10442 * dwarf2/read.c
10443 (dwarf2_per_objfile::get_type_for_signatured_type,
10444 dwarf2_per_objfile::set_type_for_signatured_type): New.
10445 (get_signatured_type): Use new methods.
10446
8adb8487
TT
104472020-05-27 Tom Tromey <tom@tromey.com>
10448 Simon Marchi <simon.marchi@efficios.com>
10449
10450 * dwarf2/read.h (struct type_unit_group_unshareable): New.
10451 (struct dwarf2_per_objfile) <type_units>: New member.
10452 <get_type_unit_group_unshareable>: New method.
10453 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
10454 num_symtabs, symtabs>: Remove; move to
10455 type_unit_group_unshareable.
10456 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
10457 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
10458 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
10459
127bbf4b
SM
104602020-05-27 Simon Marchi <simon.marchi@efficios.com>
10461
10462 * dwarf2/read.h (struct dwarf2_per_cu_data):
10463 <dwarf2_per_objfile>: Remove.
10464 * dwarf2/read.c (create_cu_from_index_list): Don't assign
10465 dwarf2_per_objfile.
10466 (create_signatured_type_table_from_index): Likewise.
10467 (create_signatured_type_table_from_debug_names): Likewise.
10468 (create_debug_type_hash_table): Likewise.
10469 (fill_in_sig_entry_from_dwo_entry): Likewise.
10470 (create_type_unit_group): Likewise.
10471 (read_comp_units_from_section): Likewise.
10472 (create_cus_hash_table): Likewise.
10473
f6e649dd
SM
104742020-05-27 Simon Marchi <simon.marchi@efficios.com>
10475
10476 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
10477 dwarf2_per_cu_data::dwarf2_per_objfile.
10478 (compute_compunit_symtab_includes): Likewise.
10479 (dwarf2_cu::start_symtab): Likewise.
10480
aa66c379
SM
104812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10482
10483 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
10484 parameter.
10485 * dwarf2/read.c (get_die_type_at_offset): Likewise.
10486 (read_namespace_alias): Update.
10487 (lookup_die_type): Update.
10488 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
10489 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
10490 Update.
10491 (disassemble_dwarf_expression): Update.
10492
120ce1b5
SM
104932020-05-27 Simon Marchi <simon.marchi@efficios.com>
10494
10495 * dwarf2/read.h (struct dwarf2_queue_item): Add
10496 dwarf2_per_objfile parameter, assign new parameter.
10497 <per_objfile>: New field.
10498 * dwarf2/read.c (free_one_cached_comp_unit): Add
10499 dwarf2_per_objfile parameter.
10500 (queue_comp_unit): Likewise.
10501 (dw2_do_instantiate_symtab): Update.
10502 (process_psymtab_comp_unit): Update.
10503 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
10504 (process_imported_unit_die): Update.
10505 (queue_and_load_dwo_tu): Update.
10506 (follow_die_offset): Update.
10507 (follow_die_sig_1): Update.
10508
9f47c707
SM
105092020-05-27 Simon Marchi <simon.marchi@efficios.com>
10510
10511 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
10512 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
10513 (read_call_site_scope): Assign per_objfile.
10514 (dwarf2_per_cu_data::objfile): Remove.
10515 * gdbtypes.h (struct call_site) <per_objfile>: New member.
10516 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
10517 dwarf2_per_objfile parameter.
10518 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
10519 dwarf2_per_objfile parameter.
10520 (dwarf_expr_reg_to_entry_parameter): Add output
10521 dwarf2_per_objfile parameter.
10522 (locexpr_get_frame_base): Update.
10523 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
10524 <push_dwarf_reg_entry_value>: Update.
10525 <call_site_to_target_addr>: Update.
10526 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
10527 parameter.
10528 (value_of_dwarf_reg_entry): Update.
10529 (rw_pieced_value): Update.
10530 (indirect_synthetic_pointer): Update.
10531 (dwarf2_evaluate_property): Update.
10532 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
10533 parameter.
10534 (locexpr_read_variable): Update.
10535 (locexpr_get_symbol_read_needs): Update.
10536 (loclist_read_variable): Update.
10537
14095eb3
SM
105382020-05-27 Simon Marchi <simon.marchi@efficios.com>
10539
10540 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10541 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10542 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10543 parameter.
10544 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10545 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10546 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
10547 parameter.
10548 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
10549 sect_variable_value): Add dwarf2_per_objfile parameter.
10550 (class dwarf_evaluate_loc_desc) <dwarf_call,
10551 dwarf_variable_value>: Update.
10552 (fetch_const_value_from_synthetic_pointer): Add
10553 dwarf2_per_objfile parameter.
10554 (fetch_const_value_from_synthetic_pointer): Update.
10555 (coerced_pieced_ref): Update.
10556 (class symbol_needs_eval_context) <dwarf_call,
10557 dwarf_variable_value>: Update.
10558 (dwarf2_compile_expr_to_ax): Update.
10559
3c3cd3d4
SM
105602020-05-27 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
10563 parameter.
10564 (dwarf2_evaluate_loc_desc_full): Update.
10565
82ca3f51
SM
105662020-05-27 Simon Marchi <simon.marchi@efficios.com>
10567
10568 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
10569 parameter.
10570 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
10571 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
10572 dwarf2_per_objfile parameter.
10573 (decode_debug_loc_dwo_addresses): Likewise.
10574 (dwarf2_find_location_expression): Update.
10575 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
10576 (locexpr_describe_location_piece): Add dwarf2_per_objfile
10577 parameter.
10578 (disassemble_dwarf_expression): Add dwarf2_per_objfile
10579 parameter.
10580 (locexpr_describe_location_1): Likewise.
10581 (locexpr_describe_location): Update.
10582
4b167ea1
SM
105832020-05-27 Simon Marchi <simon.marchi@efficios.com>
10584
10585 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
10586 Remove.
10587 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
10588 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
10589 (dwarf2_compile_property_to_c): Update.
10590 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
10591 use text offset from objfile.
10592 (locexpr_tracepoint_var_ref): Update.
10593 (locexpr_generate_c_location): Update.
10594 (loclist_describe_location): Update.
10595 (loclist_tracepoint_var_ref): Update.
10596 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
10597 dwarf2_per_objfile parameter.
10598 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
10599 use text offset from objfile.
10600 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
10601
89b07335
SM
106022020-05-27 Simon Marchi <simon.marchi@efficios.com>
10603
10604 * dwarf2/expr.h (struct dwarf_expr_context)
10605 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
10606 <offset>: Remove.
10607 <per_objfile>: New member.
10608 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
10609 dwarf2_per_objfile parameter. Don't set offset, set
10610 per_objfile.
10611 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
10612 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
10613 a dwarf2_per_objfile object instead of an offset.
10614 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
10615 constructor.
10616 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
10617 to dwarf2_expr_executor constructor. Don't set offset.
10618 (dwarf2_fetch_cfa_info): Update.
10619 (struct dwarf2_frame_cache) <text_offset>: Remove.
10620 <per_objfile>: New field.
10621 (dwarf2_frame_cache): Update.
10622 (dwarf2_frame_prev_register): Update.
10623 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
10624 <dwarf_evaluate_loc_desc>: Add constructor.
10625 (dwarf2_evaluate_loc_desc_full): Update.
10626 (dwarf2_locexpr_baton_eval): Update.
10627 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
10628 Add constructor.
10629 (dwarf2_loc_desc_get_symbol_read_needs): Update.
10630
293e7e51
SM
106312020-05-27 Simon Marchi <simon.marchi@efficios.com>
10632
10633 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
10634 addr_sized_int_type>: Move to dwarf2_cu.
10635 <int_type>: Move to dwarf2_per_objfile.
10636 (struct dwarf2_per_objfile) <int_type>: Move here.
10637 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
10638 addr_sized_int_type>: Move here.
10639 (read_func_scope): Update.
10640 (read_array_type): Update.
10641 (read_tag_string_type): Update.
10642 (attr_to_dynamic_prop): Update.
10643 (dwarf2_per_cu_data::int_type): Rename to...
10644 (dwarf2_per_objfile::int_type): ... this.
10645 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
10646 (dwarf2_cu::addr_sized_int_type): ... this.
10647 (read_subrange_type): Update.
10648 (dwarf2_per_cu_data::addr_type): Rename to...
10649 (dwarf2_cu::addr_type): ... this.
10650 (set_die_type): Update.
10651
64874a40
SM
106522020-05-27 Simon Marchi <simon.marchi@efficios.com>
10653
10654 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
10655 data through per_cu->cu.
10656
4ab09049
SM
106572020-05-27 Simon Marchi <simon.marchi@efficios.com>
10658
10659 * dwarf2/read.c (lookup_dwo_comp_unit): Change
10660 dwarf2_per_cu_data parameter fo dwarf2_cu.
10661 (lookup_dwo_type_unit): Likewise.
10662 (read_cutu_die_from_dwo): Likewise.
10663 (lookup_dwo_unit): Likewise.
10664 (open_and_init_dwo_file): Likewise.
10665 (lookup_dwo_cutu): Likewise.
10666 (lookup_dwo_comp_unit): Likewise.
10667 (lookup_dwo_type_unit): Likewise.
10668 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10669 (cutu_reader::cutu_reader): Update.
10670
47b14e86
SM
106712020-05-27 Simon Marchi <simon.marchi@efficios.com>
10672
10673 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
10674 parameter.
10675 (process_full_type_unit): Likewise.
10676 (process_queue): Update.
10677
43182c09
SM
106782020-05-27 Simon Marchi <simon.marchi@efficios.com>
10679
10680 * dwarf2/read.c (recursively_compute_inclusions): Add
10681 dwarf2_per_objfile parameter.
10682 (compute_compunit_symtab_includes): Likewise.
10683 (process_cu_includes): Update.
10684
7aa104c4
SM
106852020-05-27 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
10688 parameter.
10689 (create_type_unit_group): Update.
10690 (process_psymtab_comp_unit_reader): Update.
10691 (build_type_psymtabs_reader): Update.
10692
e3beb21d
SM
106932020-05-27 Simon Marchi <simon.marchi@efficios.com>
10694
10695 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
10696 object through m_this_cu->cu.
10697
d460f660
SM
106982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10699
10700 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
10701 the info parameter.
10702 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
10703
ab432490
SM
107042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10705
10706 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
10707 per_objfile parameter.
10708 (load_full_type_unit): Add per_objfile parameter.
10709 (read_signatured_type): Likewise.
10710 (load_full_comp_unit): Likewise.
10711 (load_cu): Likewise.
10712 (dw2_do_instantiate_symtab): Likewise.
10713 (dw2_get_file_names): Likewise.
10714 (dw2_map_symtabs_matching_filename): Update.
10715 (dw_expand_symtabs_matching_file_matcher): Update.
10716 (dw2_map_symbol_filenames): Update.
10717 (process_psymtab_comp_unit): Add per_objfile parameter.
10718 (build_type_psymtabs_1): Update.
10719 (process_skeletonless_type_unit): Update.
10720 (dwarf2_build_psymtabs_hard): Update.
10721 (load_partial_comp_unit): Add per_objfile parameter.
10722 (scan_partial_symbols): Update.
10723 (load_full_comp_unit): Add per_objfile parameter.
10724 (process_imported_unit_die): Update.
10725 (create_cus_hash_table): Update.
10726 (find_partial_die): Update.
10727 (dwarf2_read_addr_index): Update.
10728 (follow_die_offset): Update.
10729 (dwarf2_fetch_die_loc_sect_off): Update.
10730 (dwarf2_fetch_constant_bytes): Update.
10731 (dwarf2_fetch_die_type_sect_off): Update.
10732 (follow_die_sig_1): Update.
10733 (load_full_type_unit): Add per_objfile parameter.
10734 (read_signatured_type): Likewise.
10735
313bad1b
SM
107362020-05-27 Simon Marchi <simon.marchi@efficios.com>
10737
10738 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
10739 of objfile_name.
10740
c3699833
SM
107412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10742
10743 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
10744 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10745 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
10746 field.
10747 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
10748 (create_cus_from_index): Update.
10749 (dwarf2_read_gdb_index): Update.
10750 (create_cus_from_debug_names): Update.
10751 (dwarf2_read_debug_names): Update.
10752 (get_abbrev_section_for_cu): Update.
10753 (create_all_comp_units): Update.
10754 (read_attribute_value): Update.
10755 (get_debug_line_section): Update.
10756 * dwarf2/index-cache.c (index_cache::store): Update.
10757 * dwarf2/index-write.c (save_gdb_index_command): Update.
10758 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
10759
1859c670
SM
107602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10761
10762 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
10763 member.
10764 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
10765 dwarf2_per_cu_data::per_bfd.
10766 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
10767 (create_type_unit_group): Likewise.
10768 (queue_comp_unit): Remove reference to
10769 per_cu->dwarf2_per_objfile.
10770 (maybe_queue_comp_unit): Likewise.
10771 (fill_in_sig_entry_from_dwo_entry): Assign new field.
10772 (create_cus_hash_table): Assign new field.
10773
5e22e966
SM
107742020-05-27 Simon Marchi <simon.marchi@efficios.com>
10775
10776 * dwarf2/read.c: Replace
10777 dwarf2_cu->per_cu->dwarf2_per_objfile references with
10778 dwarf2_cu->per_objfile throughout.
10779
97a1449a
SM
107802020-05-27 Simon Marchi <simon.marchi@efficios.com>
10781
10782 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
10783 parameter, don't use per_cu->dwarf2_per_objfile.
10784 (dw2_instantiate_symtab): Likewise.
10785 (dw2_find_last_source_symtab): Update.
10786 (dw2_map_expand_apply): Update.
10787 (dw2_lookup_symbol): Update.
10788 (dw2_expand_symtabs_for_function): Update.
10789 (dw2_expand_all_symtabs): Update.
10790 (dw2_expand_symtabs_with_fullname): Update.
10791 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
10792 don't use per_cu->dwarf2_per_objfile.
10793 (dw2_expand_marked_cus): Update.
10794 (dw2_find_pc_sect_compunit_symtab): Update.
10795 (dw2_debug_names_lookup_symbol): Update.
10796 (dw2_debug_names_expand_symtabs_for_function): Update.
10797 (dw2_debug_names_map_matching_symbols): Update.
10798 (dwarf2_psymtab::expand_psymtab): Update.
10799
9e021579
SM
108002020-05-27 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
10803 <per_objfile>: New member.
10804 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
10805 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
10806 call to dwarf2_cu.
10807 (cutu_reader::cutu_reader): Update.
10808 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
10809
ae090bdb
SM
108102020-05-27 Simon Marchi <simon.marchi@efficios.com>
10811
10812 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
10813 struct dwarf2_per_objfile.
10814 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
10815 dwarf2_per_bfd.
10816 * dwarf2/read.c (set_die_type): Update.
10817 (get_die_type_at_offset): Update.
10818
af758d11
SM
108192020-05-27 Tom Tromey <tom@tromey.com>
10820 Simon Marchi <simon.marchi@efficios.com>
10821
10822 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
10823 method.
10824 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
10825 get_symtab, set_symtab>: New methods.
10826 <m_symtabs>: New field.
10827 (struct dwarf2_psymtab): Derive from partial_symtab.
10828 <readin_p, get_compunit_symtab>: Declare methods.
10829 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
10830 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
10831 New methods.
10832 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
10833 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
10834 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10835 (dw2_symtab_iter_next, dw2_print_stats)
10836 (dw2_expand_symtabs_with_fullname)
10837 (dw2_expand_symtabs_matching_one)
10838 (dw_expand_symtabs_matching_file_matcher)
10839 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
10840 (dw2_debug_names_iterator::next)
10841 (dw2_debug_names_map_matching_symbols)
10842 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
10843 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
10844 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
10845 New methods.
10846 (get_compunit_symtab, process_full_comp_unit)
10847 (process_full_type_unit): Update.
10848 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
10849
5989a64e
SM
108502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
10851
10852 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
10853 then introduce a new dwarf2_per_objfile type.
10854 <read_line_string>: Move to the new dwarf2_per_objfile type.
10855 <objfile>: Likewise.
10856 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
10857 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
10858 dwarf2_per_objfile->per_bfd.
10859 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
10860 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
10861 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
10862 (dwarf2_per_bfd::free_cached_comp_units): ... this.
10863 (dwarf2_has_info): Allocate dwarf2_per_bfd.
10864 (dwarf2_per_objfile::locate_sections): Rename to...
10865 (dwarf2_per_bfd::locate_sections): ... this.
10866 (dwarf2_per_objfile::get_cutu): Rename to...
10867 (dwarf2_per_bfd::get_cutu): ... this.
10868 (dwarf2_per_objfile::get_cu): Rename to...
10869 (dwarf2_per_bfd::get_cu): ... this.
10870 (dwarf2_per_objfile::get_tu): Rename to...
10871 (dwarf2_per_bfd::get_tu): ... this.
10872 (dwarf2_per_objfile::allocate_per_cu): Rename to...
10873 (dwarf2_per_bfd::allocate_per_cu): ... this.
10874 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
10875 (dwarf2_per_bfd::allocate_signatured_type): ... this.
10876 (get_gdb_index_contents_ftype): Change parameter from
10877 dwarf2_per_objfile to dwarf2_per_bfd.
10878 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
10879 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
10880
a50264ba
TT
108812020-05-27 Tom Tromey <tom@tromey.com>
10882 Simon Marchi <simon.marchi@efficios.com>
10883
10884 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
10885 (allocate_piece_closure): Set "per_objfile" member.
10886 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
10887 (locexpr_describe_location, loclist_describe_location): Use new
10888 member.
10889 * dwarf2/read.c (read_call_site_scope)
10890 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
10891 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
10892 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
10893 handle_data_member_location): Set per_objfile member.
10894 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
10895 member.
10896 (struct dwarf2_loclist_baton) <per_objfile>: New member.
10897
d3473f0c
TT
108982020-05-27 Tom Tromey <tom@tromey.com>
10899
10900 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
10901 allocate_signatured_type>: Declare new methods.
10902 <m_num_psymtabs>: New member.
10903 (struct dwarf2_per_cu_data) <index>: New member.
10904 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
10905 (dwarf2_per_objfile::allocate_signatured_type): New methods.
10906 (create_cu_from_index_list): Use allocate_per_cu.
10907 (create_signatured_type_table_from_index)
10908 (create_signatured_type_table_from_debug_names)
10909 (create_debug_type_hash_table, add_type_unit)
10910 (read_comp_units_from_section): Use allocate_signatured_type.
10911
5717c425
TT
109122020-05-27 Tom Tromey <tom@tromey.com>
10913
10914 * psymtab.c (partial_map_expand_apply)
10915 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10916 (psym_lookup_global_symbol_language)
10917 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10918 (psym_print_stats, psym_expand_symtabs_for_function)
10919 (psym_map_symbol_filenames, psym_map_matching_symbols)
10920 (psym_expand_symtabs_matching)
10921 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10922 (maintenance_check_psymtabs): Update.
10923 * psympriv.h (struct partial_symtab) <readin_p,
10924 get_compunit_symtab>: Add objfile parameter.
10925 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
10926 Likewise.
10927 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
10928 get_compunit_symtab>: Likewise.
10929 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
10930
45940949
TT
109312020-05-27 Tom Tromey <tom@tromey.com>
10932
10933 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
10934 member.
10935 * dwarf2/read.c (delete_file_name_entry): Fix comment.
10936 (create_cu_from_index_list)
10937 (create_signatured_type_table_from_index)
10938 (create_signatured_type_table_from_debug_names)
10939 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
10940 (dwarf2_create_include_psymtab)
10941 (create_debug_type_hash_table, add_type_unit)
10942 (create_type_unit_group, read_comp_units_from_section)
10943 (dwarf2_compute_name, create_cus_hash_table)
10944 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10945 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
10946 obstack.
10947 (dw2_get_real_path): Likewise. Change argument to
10948 dwarf2_per_objfile.
10949
f8c6d152
LM
109502020-05-27 Luis Machado <luis.machado@linaro.org>
10951
10952 PR tdep/26000
10953 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
10954 for ldrd (immediate).
10955
e98d2e6d
PW
109562020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10957
10958 * command.h: Add comment giving the name of class_tui.
10959 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
10960 create the fake command for the help for class_tui.
10961
53a47a3e
TT
109622020-05-26 Tom Tromey <tromey@adacore.com>
10963
10964 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
10965 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
10966 (val_atr): New function.
10967 (value_val_atr): Use it.
10968 * ada-valprint.c (print_optional_low_bound): Change low bound
10969 handling for enums.
10970 (val_print_packed_array_elements): Don't call discrete_position.
10971 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
10972 discrete_position for enum types.
10973 * language.c (default_print_array_index): Change type.
10974 * language.h (struct language_defn) <la_print_array_index>: Add
10975 index_type parameter, change type of index_value.
10976 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
10977 (default_print_array_index): Update.
10978 * valprint.c (maybe_print_array_index): Don't call
10979 value_from_longest. Update.
10980 (value_print_array_elements): Don't call discrete_position.
10981
0bc2354b
TT
109822020-05-26 Tom Tromey <tromey@adacore.com>
10983
10984 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
10985 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
10986
1218a4bf
CDA
109872020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
10988
10989 PR gdb/13519
10990 * avr-tdep.c (avr_integer_to_address): Return data or code
10991 address accordingly to the second 'type' argument of the
10992 function.
10993
92651b1d
MW
109942020-05-25 Michael Weghorn <m.weghorn@posteo.de>
10995
10996 * infcmd.c, inferior.h: (construct_inferior_arguments):
10997 Moved function from here to gdbsupport/common-inferior.{h,cc}
10998
0a4f5f8c
TT
109992020-05-23 Tom Tromey <tom@tromey.com>
11000
11001 Revert commit eca1f90c:
11002 * NEWS: Remove entry for completion styling.
11003 * completer.c (_rl_completion_prefix_display_length): Move
11004 declaration later.
11005 (gdb_fnprint): Revert.
11006 (gdb_display_match_list_1): Likewise.
11007 * cli/cli-style.c (completion_prefix_style)
11008 (completion_difference_style, completion_suffix_style): Remove.
11009 (_initialize_cli_style): Revert.
11010 * cli/cli-style.h (completion_prefix_style)
11011 (completion_difference_style, completion_suffix_style): Don't
11012 declare.
11013
e08bd6c5
PA
110142020-05-24 Pedro Alves <palves@redhat.com>
11015
11016 * symtab.c (completion_list_add_name): Return boolean indication
11017 of whether the symbol matched.
11018 (completion_list_add_symbol): Don't try to remove C++ aliases if
11019 the symbol didn't match in the first place.
11020 * symtab.h (completion_list_add_name): Return bool.
11021
ceacbf6e
SM
110222020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
11023
11024 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
11025 type::field.
11026
26f16254
JB
110272020-05-23 Joel Brobecker <brobecker@adacore.com>
11028
11029 GDB 9.2 released.
11030
eca1f90c
TT
110312020-05-23 Tom Tromey <tom@tromey.com>
11032
11033 * NEWS: Add entry for completion styling.
11034 * completer.c (_rl_completion_prefix_display_length): Move
11035 declaration earlier.
11036 (gdb_fnprint): Use completion_style.
11037 (gdb_display_match_list_1): Likewise.
11038 * cli/cli-style.c (completion_prefix_style)
11039 (completion_difference_style, completion_suffix_style): New
11040 globals.
11041 (_initialize_cli_style): Register new globals.
11042 * cli/cli-style.h (completion_prefix_style)
11043 (completion_difference_style, completion_suffix_style): Declare.
11044
51e2cfa2
PA
110452020-05-23 Pedro Alves <palves@redhat.com>
11046
11047 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
11048 (parse_escape): Use ISDIGIT instead of isdigit.
11049 (puts_debug): Use gdb_isprint instead of isprint.
11050 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
11051 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
11052 ISSPACE instead of isspace.
11053 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
11054 instead of isspace.
11055 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
11056 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
11057 instead of isxdigit and ISDIGIT instead of isdigit.
11058
80fc5e77
SM
110592020-05-22 Simon Marchi <simon.marchi@efficios.com>
11060
11061 * gdbtypes.h (struct type) <field>: New method.
11062 (TYPE_FIELDS): Remove, replace all uses with either type::fields
11063 or type::field.
11064
3cabb6b0
SM
110652020-05-22 Simon Marchi <simon.marchi@efficios.com>
11066
11067 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
11068 (TYPE_FIELDS): Use type::fields. Change all call sites that
11069 modify the propery to use type::set_fields instead.
11070
1f704f76
SM
110712020-05-22 Simon Marchi <simon.marchi@efficios.com>
11072
11073 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
11074 type::num_fields instead.
11075
5e33d5f4
SM
110762020-05-22 Simon Marchi <simon.marchi@efficios.com>
11077
11078 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
11079 methods.
11080 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
11081 that modify the number of fields to use type::set_num_fields
11082 instead.
11083
9392ebb3
TT
110842020-05-22 Tom Tromey <tromey@adacore.com>
11085
11086 * compile/compile-object-load.h (munmap_list_free): Don't
11087 declare.
11088
7c13f4e8
AB
110892020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
11090
11091 * annotate.c (annotate_source_line): Update return type, add call
11092 to update current symtab and line.
11093 * annotate.h (annotate_source_line): Update return type, and
11094 extend header comment.
11095 * source.c (info_line_command): Check annotation_level before
11096 calling annotate_source_line.
11097 * stack.c (print_frame_info): If calling annotate_source_line
11098 returns true, then don't print any other source line information.
11099
aa370940
SM
111002020-05-21 Simon Marchi <simon.marchi@efficios.com>
11101
11102 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
11103
84d53fa9
SM
111042020-05-21 Simon Marchi <simon.marchi@efficios.com>
11105
11106 * coffread.c (patch_type): Remove NULL check before xfree.
11107 * corefile.c (set_gnutarget): Likewise.
11108 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
11109 * exec.c (build_section_table): Likewise.
11110 * remote.c (remote_target::pass_signals): Likewise.
11111 * utils.c (n_spaces): Likewise.
11112 * cli/cli-script.c (document_command): Likewise.
11113 * i386-windows-tdep.c (core_process_module_section): Likewise.
11114 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
11115
9d428aae
SM
111162020-05-20 Simon Marchi <simon.marchi@efficios.com>
11117
11118 * symfile.c (reread_symbols): Clear objfile's section_offsets
11119 vector and section indices, re-compute them by calling
11120 sym_offsets.
11121
250106a7
TT
111222020-05-20 Tom Tromey <tromey@adacore.com>
11123
11124 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 11125 (desc_one_bound, desc_index_type): Compute field name.
250106a7 11126
9a0bacfb
TV
111272020-05-20 Tom de Vries <tdevries@suse.de>
11128
11129 PR symtab/25833
11130 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
11131
7b958a48
AM
111322020-05-20 Alan Modra <amodra@gmail.com>
11133
11134 PR 25993
11135 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
11136 bfd_set_filename.
11137 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
11138 passed to bfd_set_filename.
11139 * symfile-mem.c (add_vsyscall_page): Likewise for string
11140 passed to symbol_file_add_from_memory.
11141 (symbol_file_add_from_memory): Make name param a const char* and
11142 don't strdup.
11143
c7e97679
AM
111442020-05-20 Alan Modra <amodra@gmail.com>
11145
11146 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
11147 rather than accessing bfd->filename directly.
11148 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
11149 and use bfd_section_name.
11150 * dwarf2/frame.c (decode_frame_entry): Likewise.
11151 * exec.c (exec_set_section_address): Likewise.
11152 * solib-aix.c (solib_aix_bfd_open): Likewise.
11153 * stap-probe.c (get_stap_base_address): Likewise.
11154 * symfile.c (reread_symbols): Likewise.
11155
563c591b
TT
111562020-05-19 Tom Tromey <tromey@adacore.com>
11157
11158 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
11159
f408d82c
SM
111602020-05-19 Simon Marchi <simon.marchi@efficios.com>
11161
11162 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
11163
98c59b52
PA
111642020-05-19 Pedro Alves <palves@redhat.com>
11165
11166 * NEWS (set exec-file-mismatch): Adjust entry.
11167 * exec.c: Include "build-id.h".
11168 (validate_exec_file): Try to match build IDs instead of filenames.
11169 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
11170 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
11171 and pass down 'warn_if_slow'.
11172 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
11173 gdb_bfd_open_closure to pass it down.
11174 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
11175
4111f652
PA
111762020-05-19 Pedro Alves <palves@redhat.com>
11177
11178 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
11179 * target.c (target_fileio_open_1): Rename to target_fileio_open
11180 and make extern. Use bool.
11181 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
11182 (target_fileio_read_alloc_1): Adjust.
11183 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
11184 (target_fileio_open_warn_if_slow): Delete declaration.
11185
ad80db5b
PA
111862020-05-19 Pedro Alves <palves@redhat.com>
11187
11188 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
11189 Adjust all callers.
11190
1d6ce4d3
YS
111912020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
11192
11193 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
11194 whether disp is negative.
11195
9005fbbb
SM
111962020-05-19 Simon Marchi <simon.marchi@efficios.com>
11197
11198 * symfile.h (struct symfile_segment_data)
11199 <~symfile_segment_data>: Remove.
11200 <segment_info>: Change to std::vector.
11201 * symfile.c (default_symfile_segments): Update.
11202 * elfread.c (elf_symfile_segments): Update.
11203
68b888ff
SM
112042020-05-19 Simon Marchi <simon.marchi@efficios.com>
11205
11206 * symfile.h (struct symfile_segment_data) <struct segment>: New.
11207 <segments>: New.
11208 <segment_bases, segment_sizes>: Remove.
11209 * symfile.c (default_symfile_segments): Update.
11210 * elfread.c (elf_symfile_segments): Update.
11211 * remote.c (remote_target::get_offsets): Update.
11212 * solib-target.c (solib_target_relocate_section_addresses):
11213 Update.
11214
62982abd
SM
112152020-05-19 Simon Marchi <simon.marchi@efficios.com>
11216
11217 * symfile.h (struct symfile_segment_data): Initialize fields.
11218 <~symfile_segment_data>: Add.
11219 (symfile_segment_data_up): New.
11220 (struct sym_fns) <sym_segments>: Return a
11221 symfile_segment_data_up.
11222 (default_symfile_segments): Return a symfile_segment_data_up.
11223 (free_symfile_segment_data): Remove.
11224 (get_symfile_segment_data): Return a symfile_segment_data_up.
11225 * symfile.c (default_symfile_segments): Likewise.
11226 (get_symfile_segment_data): Likewise.
11227 (free_symfile_segment_data): Remove.
11228 (symfile_find_segment_sections): Update.
11229 * elfread.c (elf_symfile_segments): Return a
11230 symfile_segment_data_up.
11231 * remote.c (remote_target::get_offsets): Update.
11232 * solib-target.c (solib_target_relocate_section_addresses):
11233 Update.
11234 * symfile-debug.c (debug_sym_segments): Return a
11235 symfile_segment_data_up.
11236
7f204339
RO
112372020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11238
e52a0f1b
RO
11239 PR build/25981
11240 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
11241 Hardcode register numbers.
11242
7f204339
RO
11243 PR build/25981
11244 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
11245 procfs_find_LDT_entry): Remove.
11246 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
11247 procfs_find_LDT_entry): Remove.
11248 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
11249 Remove.
11250
7f32a4d5
PA
112512020-05-17 Pedro Alves <palves@redhat.com>
11252 Andrew Burgess <andrew.burgess@embecosm.com>
11253 Keno Fischer <keno@juliacomputing.com>
11254
11255 PR gdb/25741
11256 * breakpoint.c (build_target_condition_list): Update comments.
11257 (build_target_command_list): Update comments and skip matching
11258 locations.
11259 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
11260 a separate function. Simplify "set breakpoint auto-hw off"
11261 handling.
11262 (insert_breakpoints): Update comment.
11263 (tracepoint_locations_match): New parameter. For breakpoints,
11264 compare location types too, if the caller wants to.
11265 (handle_automatic_hardware_breakpoints): New functions.
11266 (bp_location_is_less_than): Also sort by location type and
11267 hardware breakpoint length.
11268 (update_global_location_list): Handle "set breakpoint auto-hw on"
11269 here.
11270 (update_breakpoint_locations): Ask breakpoint_locations_match to
11271 ignore location types.
11272
7d93a1e0
SM
112732020-05-16 Simon Marchi <simon.marchi@efficios.com>
11274
11275 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
11276 type::name instead.
11277
d0e39ea2
SM
112782020-05-16 Simon Marchi <simon.marchi@efficios.com>
11279
11280 * gdbtypes.h (struct type) <name, set_name>: New methods.
11281 (TYPE_CODE): Use type::name. Change all call sites used to set
11282 the name to use type::set_name instead.
11283
2dab0c7b
TT
112842020-05-16 Tom Tromey <tom@tromey.com>
11285
11286 * top.c (quit_force): Update.
11287 * infrun.c (handle_no_resumed): Update.
11288 * top.h (all_uis): New function.
11289 (ALL_UIS): Remove.
11290
59f7bd8d
SM
112912020-05-16 Simon Marchi <simon.marchi@efficios.com>
11292
11293 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
11294
9bf058f0
PA
112952020-05-16 Pedro Alves <palves@redhat.com>
11296
11297 * ia64-linux-nat.c
11298 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
11299 Declare method.
11300 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
11301
8f86ae1a
SM
113022020-05-15 Simon Marchi <simon.marchi@efficios.com>
11303
11304 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
11305 (sparc64_adi_info): Likewise.
11306
d6bc0792
TT
113072020-05-15 Tom Tromey <tom@tromey.com>
11308
11309 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
11310 block_objfile.
11311 (lookup_objfile_from_block): Remove.
11312 (lookup_symbol_in_block, lookup_symbol_in_static_block)
11313 (lookup_global_symbol): Use block_objfile.
11314 * symtab.h (lookup_objfile_from_block): Don't declare.
11315 * printcmd.c (clear_dangling_display_expressions): Use
11316 block_objfile.
11317 * parse.c (operator_check_standard): Use block_objfile.
11318
8c14c3a3
TT
113192020-05-15 Tom Tromey <tom@tromey.com>
11320
11321 * language.c (language_alloc_type_symbol): Set
11322 SYMBOL_SECTION.
11323 * symtab.c (initialize_objfile_symbol): Remove.
11324 (allocate_symbol): Remove.
11325 (allocate_template_symbol): Remove.
11326 * dwarf2/read.c (fixup_go_packaging): Use "new".
11327 (new_symbol): Use "new".
11328 (read_variable): Don't call initialize_objfile_symbol. Use
11329 "new".
11330 (read_func_scope): Use "new".
11331 * xcoffread.c (process_xcoff_symbol): Don't call
11332 initialize_objfile_symbol.
11333 (SYMBOL_DUP): Remove.
11334 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
11335 "new".
11336 * symtab.h (allocate_symbol, initialize_objfile_symbol)
11337 (allocate_template_symbol): Don't declare.
11338 (struct symbol): Add copy constructor. Change defaults.
11339 * jit.c (finalize_symtab): Use "new".
11340 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
11341 Use "new".
11342 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
11343 (common_block_end): Use "new".
11344 * mdebugread.c (parse_symbol): Use "new".
11345 (new_symbol): Likewise.
11346
5b4a1a8d
PW
113472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11348
11349 * NEWS: Mention changes to help and apropos.
11350
57b4f16e
PW
113512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11352
11353 * command.h (enum command_class): Improve comments, document
11354 that class_alias is for user-defined aliases, give the class
11355 name for each class, remove unused class_xdb.
11356 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
11357 * breakpoint.c (_initialize_breakpoint): Replace class_alias
11358 by a precise class.
11359 * infcmd.c (_initialize_infcmd): Likewise.
11360 * reverse.c (_initialize_reverse): Likewise.
11361 * stack.c (_initialize_stack): Likewise.
11362 * symfile.c (_initialize_symfile): Likewise.
11363 * tracepoint.c (_initialize_tracepoint): Likewise.
11364
7c05caf7
PW
113652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11366
11367 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
11368 when their aliased command is traversed.
11369 (help_cmd): Add fput_command_names_styled call to
11370 output command name and aliases when command has an alias.
11371
3b3aaacb
PW
113722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11373
11374 * cli/cli-decode.h (help_cmd_list): Remove declaration.
11375 * cli/cli-decode.c (help_cmd_list): Declare as static,
11376 remove prefix argument, use bool for recurse arg, rework to show the aliases of
11377 a command together with the command.
11378 (fput_command_name_styled, fput_command_names_styled): New functions.
11379 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
11380 fput_command_name_styled.
11381 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
11382 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
11383
7aa1b46f
PW
113842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11385
11386 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
11387 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
11388 * command.h (cmd_show_list): Likewise.
11389 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
11390 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
11391
89bcba74
PW
113922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11393
11394 * unittests/command-def-selftests.c (traverse_command_structure):
11395 Verify all commands of a list have the same prefix command and
11396 that only the top cmdlist commands have a null prefix.
11397
3f4d92eb
PW
113982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11399
11400 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
11401 as prefix, not one of its aliases.
11402 (set_cmd_prefix): Remove.
11403 (do_add_cmd): Centralize the setting of the prefix of a command, when
11404 command is defined after its full chain of prefix commands.
11405 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
11406 (add_setshow_cmd_full): Likewise.
11407 (update_prefix_field_of_prefixed_commands): New function.
11408 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
11409 update_prefix_field_of_prefixed_commands.
11410 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
11411 addresses of remote_set_cmdlist and remote_show_cmdlist given
11412 as argument, not the address of an argument.
11413 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
11414 * gdb/remote.c (_initialize_remote): Likewise.
11415
0605465f
PW
114162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11417
11418 * cli/cli-cmds.c (alias_command): Check for an existing alias
11419 using lookup_cmd_composition, as valid_command_p is too strict
11420 and forbids aliases that are the prefix of an existing alias
11421 or command.
11422 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
11423 command is properly recognised as a valid command.
11424
58e6ac70
PW
114252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11426
11427 * unittests/help-doc-selftests.c: Rename to
11428 unittests/command-def-selftests.c
11429 * unittests/command-def-selftests.c (help_doc_tests): Update some
11430 comments.
11431 (command_structure_tests, traverse_command_structure): New namespace
11432 and function.
11433 (command_structure_invariants_tests): New function.
11434 (_initialize_command_def_selftests) Renamed from
11435 _initialize_help_doc_selftests, register command_structure_invariants
11436 selftest.
11437
a7b9ceb8
PW
114382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11439
11440 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
11441 an alias of 'show'.
11442
b2188a06
JB
114432020-05-15 Joel Brobecker <brobecker@adacore.com>
11444
11445 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
11446 ada_is_fixed_point_type. Update all callers.
11447 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
11448 all callers.
11449 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
11450 Update all callers.
11451 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
11452 print_fixed_point_type. Update all callers.
11453 * ada-valprint.c (ada_value_print_num): Replace call to
11454 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
11455
a51951c2
KB
114562020-05-14 Kevin Buettner <kevinb@redhat.com>
11457
11458 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
11459 processors.
11460 (cpu_supports_bts): Add CV_AMD case.
11461
29d6859f
LM
114622020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
11463 Simon Marchi <simon.marchi@efficios.com>
11464
11465 * infrun.c (stop_all_threads): Collect multiple wait events at
11466 each pass.
11467
78134374
SM
114682020-05-14 Simon Marchi <simon.marchi@efficios.com>
11469
11470 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
11471 type::code instead.
11472
67607e24
SM
114732020-05-14 Simon Marchi <simon.marchi@efficios.com>
11474
11475 * gdbtypes.h (struct type) <code, set_code>: New methods.
11476 (TYPE_CODE): Use type::code. Change all call sites used to set
11477 the code to use type::set_code instead.
11478
a05575d3
TBA
114792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11480 Tom de Vries <tdevries@suse.de>
11481 Pedro Alves <palves@redhat.com>
11482
11483 PR threads/25478
11484 * infrun.c (stop_all_threads): Do NOT ignore
11485 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
11486 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
11487 received.
11488 (handle_no_resumed): Remove code handling a live inferior with no
11489 threads.
11490 * remote.c (has_single_non_exited_thread): New.
11491 (remote_target::update_thread_list): Do not delete a thread if is
11492 the last thread of the process.
11493 * thread.c (thread_select): Call delete_exited_threads instead of
11494 prune_threads.
11495
6ad82919
TBA
114962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11497
11498 * infrun.c (stop_all_threads): Enable/disable thread events of all
11499 targets. Move a debug message denoting the end of the function
11500 into the SCOPED_EXIT block.
11501
d890404b
TBA
115022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11503
11504 * process-stratum-target.h: Include <set>.
11505 (all_non_exited_process_targets, switch_to_target_no_thread): New
11506 function declarations.
11507 * process-stratum-target.c (all_non_exited_process_targets)
11508 (switch_to_target_no_thread): New function implementations.
11509
293b3ebc
TBA
115102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11511
11512 * infrun.c (handle_inferior_event): Extract out a piece of code
11513 into...
11514 (mark_non_executing_threads): ...this new function.
11515
7ca9b62a
TBA
115162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11517
11518 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
11519 use.
11520
fc75c28b
TBA
115212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11522
11523 * regcache.c (regcache_read_pc_protected): New function
11524 implementation that returns 0 if the PC cannot read via
11525 'regcache_read_pc'.
11526 * infrun.c (proceed): Call 'regcache_read_pc_protected'
11527 instead of 'regcache_read_pc'.
11528 (keep_going_pass_signal): Ditto.
11529
a89febbd
TT
115302020-05-13 Tom Tromey <tromey@adacore.com>
11531
11532 * ada-lang.c (align_value): Remove.
11533 (ada_template_to_fixed_record_type_1): Use align_up.
11534
f7e23710
TBA
115352020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11536
11537 * async-event.c: Update the copyright year.
11538 * async-event.h: Update the copyright year.
11539
02ff80c2
SM
115402020-05-12 Simon Marchi <simon.marchi@efficios.com>
11541
11542 * objfiles.h (is_addr_in_objfile,
11543 shared_objfile_contains_address_p): Return bool.
11544 * objfile.c (is_addr_in_objfile,
11545 shared_objfile_contains_address_p): Return bool.
11546
4fd6c7e8
TT
115472020-05-11 Tom Tromey <tromey@adacore.com>
11548
11549 * cli/cli-cmds.c (info_command): Restore.
11550 (_initialize_cli_cmds): Use add_prefix_command for "info".
11551 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
11552
5eb68a39
TT
115532020-05-11 Tom Tromey <tromey@adacore.com>
11554
11555 * ada-lang.c (ada_value_primitive_field): Now public.
11556 * ada-lang.h (ada_value_primitive_field): Declare.
11557 * ada-valprint.c (print_field_values): Use
11558 ada_value_primitive_field for wrapper fields.
11559
7666722f
TV
115602020-05-11 Tom de Vries <tdevries@suse.de>
11561
11562 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
11563 MODULE_DOMAIN.
11564
3ee6bb11
TV
115652020-05-11 Tom de Vries <tdevries@suse.de>
11566
11567 PR symtab/25941
11568 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
11569 with length 0, if not gdb-produced.
11570 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
11571
43434996
TV
115722020-05-09 Tom de Vries <tdevries@suse.de>
11573
11574 PR gdb/25955
11575 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
11576 calculation.
11577
2f78cffc
TT
115782020-05-09 Tom Tromey <tom@tromey.com>
11579
11580 * top.c (server_command): Now bool.
11581 * top.h (server_command): Now bool.
11582
4f7bc5ed
TT
115832020-05-08 Tom Tromey <tromey@adacore.com>
11584
11585 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
11586 already being processed.
11587
8be4b118
TT
115882020-05-08 Tom Tromey <tom@tromey.com>
11589
11590 * printcmd.c (struct display) <next>: Remove.
11591 <display>: New constructor.
11592 <exp_string>: Now a std::string.
11593 <enabled_p>: Now a bool.
11594 (display_number): Move definition earlier.
11595 (displays): Rename from display_chain. Now a std::vector.
11596 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
11597 (display_command): Update.
11598 (do_one_display, disable_display)
11599 (enable_disable_display_command, do_enable_disable_display):
11600 Update.
11601 (free_display): Remove.
11602 (clear_displays): Rewrite.
11603 (delete_display): Update.
11604 (map_display_numbers): Use function_view. Remove "data"
11605 parameter. Update.
11606 (do_delete_display): Remove.
11607 (undisplay_command): Update.
11608 (do_one_display, do_displays, disable_display)
11609 (info_display_command): Update.
11610 (do_enable_disable_display): Remove.
11611 (enable_disable_display_command)
11612 (clear_dangling_display_expressions): Update.
11613
94c93c35
TT
116142020-05-08 Tom Tromey <tom@tromey.com>
11615
11616 * symtab.c (set_symbol_cache_size)
11617 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
11618 (maintenance_print_symbol_cache_statistics): Update.
11619 * symmisc.c (print_symbol_bcache_statistics)
11620 (print_objfile_statistics, maintenance_print_objfiles)
11621 (maintenance_info_symtabs, maintenance_check_symtabs)
11622 (maintenance_expand_symtabs, maintenance_info_line_tables):
11623 Update.
11624 * symfile-debug.c (set_debug_symfile): Update.
11625 * source.c (forget_cached_source_info): Update.
11626 * python/python.c (gdbpy_progspaces): Update.
11627 * psymtab.c (maintenance_info_psymtabs): Update.
11628 * probe.c (parse_probes): Update.
11629 * linespec.c (iterate_over_all_matching_symtabs)
11630 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
11631 * guile/scm-progspace.c (gdbscm_progspaces): Update.
11632 * exec.c (exec_target::close): Update.
11633 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
11634 * breakpoint.c (print_one_breakpoint_location)
11635 (create_longjmp_master_breakpoint)
11636 (create_std_terminate_master_breakpoint): Update.
11637 * progspace.c (program_spaces): Now a std::vector.
11638 (maybe_new_address_space): Update.
11639 (add_program_space): Remove.
11640 (program_space::program_space): Update.
11641 (remove_program_space): Update.
11642 (number_of_program_spaces): Remove.
11643 (print_program_space, update_address_spaces): Update.
11644 * progspace.h (program_spaces): Change type.
11645 (ALL_PSPACES): Remove.
11646 (number_of_program_spaces): Don't declare.
11647 (struct program_space) <next>: Remove.
11648
a1fd1ac9
TT
116492020-05-08 Tom Tromey <tom@tromey.com>
11650
11651 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
11652 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
11653 (enable_break): Update.
11654 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
11655 (frv_fdpic_find_canonical_descriptor): Update.
11656 (frv_fetch_objfile_link_map): Update.
11657 * progspace.c (program_space::free_all_objfiles): Update.
11658 (program_space::solibs): New method.
11659 * progspace.h (struct program_space) <solibs>: New method.
11660 * solist.h (master_so_list): Don't declare.
11661 (ALL_SO_LIBS): Remove.
11662 * solib.h (so_list_head): Remove.
11663 (update_solib_list): Update comment.
11664 * solib.c (master_so_list): Remove.
11665 (solib_used, update_solib_list, solib_add)
11666 (info_sharedlibrary_command, clear_solib)
11667 (reload_shared_libraries_1, remove_user_added_objfile): Update.
11668
38eae084
TT
116692020-05-08 Tom Tromey <tom@tromey.com>
11670
11671 * extension.c (extension_languages): Now a std::array.
11672 (ALL_EXTENSION_LANGUAGES): Remove.
11673 (get_ext_lang_defn, get_ext_lang_of_file)
11674 (eval_ext_lang_from_control_command): Update.
11675 (finish_ext_lang_initialization)
11676 (auto_load_ext_lang_scripts_for_objfile)
11677 (ext_lang_type_printers::ext_lang_type_printers)
11678 (apply_ext_lang_type_printers)
11679 (ext_lang_type_printers::~ext_lang_type_printers)
11680 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
11681 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
11682 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
11683 (get_matching_xmethod_workers, ext_lang_colorize)
11684 (ext_lang_before_prompt): Update.
11685 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
11686
596dc4ad
TT
116872020-05-08 Tom Tromey <tom@tromey.com>
11688
11689 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
11690 overload.
11691 <swap_string, m_string>: Remove.
11692 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
11693 Update.
11694 * stabsread.c (define_symbol, read_type): Update.
11695 * linespec.c (find_linespec_symbols): Update.
11696 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
11697 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
11698 * dbxread.c (read_dbx_symtab): Update.
11699 * cp-support.h (cp_canonicalize_string_full)
11700 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
11701 Return unique_xmalloc_ptr.
11702 * cp-support.c (inspect_type): Update.
11703 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
11704 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
11705 Likewise.
11706 * c-typeprint.c (print_name_maybe_canonical): Update.
11707 * break-catch-throw.c (check_status_exception_catchpoint):
11708 Update.
11709
bf4cb9be
TV
117102020-05-08 Tom de Vries <tdevries@suse.de>
11711
11712 * infrun.c (follow_fork): Copy current_line and current_symtab to
11713 child thread.
11714
a1b68f28
SM
117152020-05-07 Simon Marchi <simon.marchi@efficios.com>
11716
11717 * async-event.c (struct async_signal_handler, struct
11718 async_event_handler): Reformat, remove typedef.
11719
98d48915
SM
117202020-05-07 Simon Marchi <simon.marchi@efficios.com>
11721
11722 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
11723 access thistype->main_type->dyn_prop_list directly.
11724
7aa91313
SM
117252020-05-07 Simon Marchi <simon.marchi@efficios.com>
11726
11727 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
11728 (remove_dyn_prop): Remove. Update all users to use
11729 type::remove_dyn_prop.
11730 * gdbtypes.c (remove_dyn_prop): Rename to...
11731 (type::remove_dyn_prop): ... this.
11732
5c54719c
SM
117332020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
11734
11735 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
11736 (add_dyn_prop): Remove. Update all users to use
11737 type::add_dyn_prop.
11738 * gdbtypes.c (add_dyn_prop): Rename to...
11739 (type::add_dyn_prop): ... this.
11740
24e99c6c
SM
117412020-05-07 Simon Marchi <simon.marchi@efficios.com>
11742
11743 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
11744 (get_dyn_prop): Remove. Update all users to use
11745 type::dyn_prop.
11746 * gdbtypes.c (get_dyn_prop): Rename to...
11747 (type::dyn_prop): ... this.
11748
0d4bf016
SM
117492020-05-06 Simon Marchi <simon.marchi@efficios.com>
11750
11751 * gdbtypes.h (struct main_type) <flag_static>: Remove.
11752
ac4a4f1c
SM
117532020-05-06 Simon Marchi <simon.marchi@efficios.com>
11754
11755 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
11756 instruction, skip it if it's there.
11757
a3bbacc1
SM
117582020-05-05 Simon Marchi <simon.marchi@efficios.com>
11759
11760 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
11761
c3236f84
SM
117622020-05-04 Simon Marchi <simon.marchi@efficios.com>
11763
11764 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
11765 * gdbtypes.c (recursive_dump_type): Remove use of
11766 TYPE_INCOMPLETE.
11767
3b6acaee
TT
117682020-05-03 Tom Tromey <tom@tromey.com>
11769
11770 * breakpoint.c (catch_command, tcatch_command): Remove.
11771 (_initialize_breakpoint): Use add_basic_prefix_cmd,
11772 add_show_prefix_cmd.
11773 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
11774 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
11775 Remove.
11776 (add_internal_problem_command): Use add_basic_prefix_cmd,
11777 add_show_prefix_cmd.
11778 * mips-tdep.c (set_mipsfpu_command): Remove.
11779 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
11780 * dwarf2/index-cache.c (set_index_cache_command): Remove.
11781 (_initialize_index_cache): Use add_basic_prefix_cmd.
11782 * memattr.c (dummy_cmd): Remove.
11783 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
11784 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
11785 (_initialize_tui_win): Use add_basic_prefix_cmd,
11786 add_show_prefix_cmd.
11787 * cli/cli-logging.c (set_logging_command): Remove.
11788 (_initialize_cli_logging): Use add_basic_prefix_cmd,
11789 add_show_prefix_cmd.
11790 (show_logging_command): Remove.
11791 * target.c (target_command): Remove.
11792 (add_target): Use add_basic_prefix_cmd.
11793
a51119cd
HD
117942020-05-02 Hannes Domani <ssbssa@yahoo.de>
11795
11796 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
11797
652fc23a 117982020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11799
652fc23a
PW
11800 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
11801 info_command.
11802
117539e6
KR
118032020-04-30 Kamil Rytarowski <n54@gmx.com>
11804
11805 * nbsd-nat.c (nbsd_enable_proc_events)
11806 (nbsd_nat_target::post_startup_inferior): Add.
11807 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
11808 (nbsd_nat_target::update_thread_list): Rewrite.
11809 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
11810 "PTRACE_LWP_CREATE".
11811 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
11812
102e38eb 118132020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 11814
102e38eb
PW
11815 * stack.c (_initialize_stack): Remove duplicated creation
11816 of "frame" command and "f" alias.
11817
ee9d1e5f
HD
118182020-04-30 Hannes Domani <ssbssa@yahoo.de>
11819
11820 PR gdb/18706
11821 * gdbtypes.c (check_typedef): Calculate size of array of
11822 stubbed type.
11823
627c7fb8
HD
118242020-04-30 Hannes Domani <ssbssa@yahoo.de>
11825
11826 PR gdb/15559
11827 * i386-tdep.c (i386_push_dummy_call): Call
11828 i386_thiscall_push_dummy_call.
11829 (i386_thiscall_push_dummy_call): New function.
11830 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
11831 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
11832 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
11833
ffc2844e
SM
118342020-04-29 Simon Marchi <simon.marchi@efficios.com>
11835
11836 * gdbarch.sh (do_read): Add shellcheck disable directive for
11837 warning SC2162.
11838
1207375d
SM
118392020-04-29 Simon Marchi <simon.marchi@efficios.com>
11840
11841 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
11842 "referenced but not assigned" warning.
11843
9fdb2916
SM
118442020-04-29 Simon Marchi <simon.marchi@efficios.com>
11845
11846 * gdbarch.sh: Remove code that sets fallbackdefault.
11847
759cea5e
SM
118482020-04-29 Simon Marchi <simon.marchi@efficios.com>
11849
11850 * gdbarch.sh: Use shell operators && and || instead of
11851 -a and -o.
11852
cb02ab24
SM
118532020-04-29 Simon Marchi <simon.marchi@efficios.com>
11854
11855 * gdbarch.sh: Use $(...) instead of `...`.
11856
a6fc5ffc
SM
118572020-04-29 Simon Marchi <simon.marchi@efficios.com>
11858
11859 * gdbarch.sh: Use double quotes around variables.
11860
8d113d13
SM
118612020-04-29 Simon Marchi <simon.marchi@efficios.com>
11862
11863 * gdbarch.sh: Use %s with printf, instead of variables in the
11864 format string.
11865
ed6acedd
TT
118662020-04-29 Tom Tromey <tromey@adacore.com>
11867
11868 PR ada/25875:
11869 * dwarf2/read.c (update_enumeration_type_from_children): Compute
11870 type fields here.
11871 (read_enumeration_type): Call
11872 update_enumeration_type_from_children later. Update comments.
11873 (process_enumeration_scope): Don't create type fields.
11874
b68b1b58
KR
118752020-04-29 Kamil Rytarowski <n54@gmx.com>
11876
11877 * nbsd-tdep.c: Include "xml-syscall.h".
11878 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
11879
f94b2e03
KR
118802020-04-29 Kamil Rytarowski <n54@gmx.com>
11881
11882 * nbsd-nat.c: Include "sys/wait.h".
11883 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
11884 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
11885 (nbsd_nat_target::remove_exec_catchpoint)
11886 (nbsd_nat_target::set_syscall_catchpoint): Add.
11887 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
11888 (nbsd_nat_target::insert_exec_catchpoint)
11889 (nbsd_nat_target::remove_exec_catchpoint)
11890 (nbsd_nat_target::set_syscall_catchpoint): Add.
11891 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
11892 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
11893 `nbsd_get_syscall_number'.
11894
fc49bc72
TT
118952020-04-29 Tom Tromey <tom@tromey.com>
11896
11897 * stack.c (print_block_frame_labels): Remove.
11898
d642b692
HD
118992020-04-29 Hannes Domani <ssbssa@yahoo.de>
11900
11901 PR gdb/17320
11902 * ada-valprint.c (val_print_packed_array_elements): Move array
11903 end bracket to new line.
11904 (ada_val_print_string): Remove extra spaces before first array
11905 element.
11906 * c-valprint.c (c_value_print_array): Likewise.
11907 * m2-valprint.c (m2_print_array_contents): Likewise.
11908 (m2_value_print_inner): Likewise.
11909 * p-valprint.c (pascal_value_print_inner): Likewise.
11910 * valprint.c (generic_val_print_array): Likewise.
11911 (value_print_array_elements): Move first array element and array
11912 end bracket to new line.
11913
ea90f227
TV
119142020-04-29 Tom de Vries <tdevries@suse.de>
11915
11916 PR symtab/25889
11917 * linespec.c (find_method): Fix ix calculation.
11918
4498ef4f
KR
119192020-04-28 Kamil Rytarowski <n54@gmx.com>
11920
11921 * syscalls/update-netbsd.sh: New file.
11922 * syscalls/netbsd.xml: Regenerate.
11923 * data-directory/Makefile.in: Register `netbsd.xml' in
11924 `SYSCALLS_FILES'.
11925
a55e30b5
SM
119262020-04-28 Simon Marchi <simon.marchi@efficios.com>
11927
11928 * syscalls/update-freebsd.sh: Add double quotes.
11929
2b2fbab8
TT
119302020-04-28 Tom Tromey <tom@tromey.com>
11931
11932 * NEWS: Update.
11933 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
11934 (cmdpy_init): Allow class_tui.
11935
a65189c9
TV
119362020-04-28 Mark Williams <mark@myosotissp.com>
11937
11938 PR gdb/24480
11939 * dwarf2read.c: Add missing assingments to list_in_scope when
11940 start_symtab was already called.
11941
1b95cdb7
SM
119422020-04-28 Simon Marchi <simon.marchi@efficios.com>
11943
11944 PR gdb/25881
11945 * dwarf2/read.c (offset_map_type): Use
11946 gdb:hash_enum<sect_offset> as hash function.
11947
15cd93d0
TV
119482020-04-28 Tom de Vries <tdevries@suse.de>
11949
11950 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
11951 with DW_AT_signature.
11952
1eb39914
SM
119532020-04-27 Simon Marchi <simon.marchi@efficios.com>
11954
11955 * configure.ac: Remove check for fs_base/gs_base in
11956 user_regs_struct.
11957 * configure: Re-generate.
11958 * config.in: Re-generate.
11959 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
11960 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
11961 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
11962
991a3e2e
LM
119632020-04-27 Luis Machado <luis.machado@linaro.org>
11964
11965 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
11966 problematic inline frame unwinding situation.
11967 * frame.c (frame_id_computed_p): New function.
11968 * frame.h (frame_id_computed_p): New prototype.
11969
361ba0e8
TT
119702020-04-26 Tom Tromey <tom@tromey.com>
11971
11972 * command.h (enum command_class) <class_pseudo>: Remove.
11973
bc3609fd
PW
119742020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11975
11976 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
11977 and whitespace.
11978
b9771db7
KR
119792020-04-25 Kamil Rytarowski <n54@gmx.com>
11980
ec16513e
SM
11981 * inf-ptrace.c (inf_ptrace_target::wait): Remove
11982 `PT_GET_PROCESS_STATE' block.
b9771db7 11983
7151c1af
TT
119842020-04-24 Tom Tromey <tom@tromey.com>
11985
11986 * symtab.h (symbol_get_demangled_name): Don't declare.
11987 * symtab.c (symbol_get_demangled_name): Remove.
11988 (general_symbol_info::natural_name)
11989 (general_symbol_info::demangled_name): Update.
11990
906bb4c5
TT
119912020-04-24 Tom Tromey <tom@tromey.com>
11992
11993 PR rust/25025:
11994 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
11995
bcfe6157
TT
119962020-04-24 Tom Tromey <tom@tromey.com>
11997
11998 PR symtab/12707:
11999 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
12000 exists.
12001 (new_symbol): Likewise.
12002 * compile/compile-object-load.c (get_out_value_type): Use
12003 symbol_matches_search_name.
12004
f049a313
TT
120052020-04-24 Tom Tromey <tom@tromey.com>
12006
12007 * dwarf2/read.c (add_partial_symbol): Do not call
12008 compute_and_set_names.
12009
76e288d1
TT
120102020-04-24 Tom Tromey <tom@tromey.com>
12011
12012 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
12013 overload.
12014
2467f4f6
TT
120152020-04-24 Tom Tromey <tom@tromey.com>
12016
12017 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
12018 (add_psymbol_to_list): New overload. Make old overload call new
12019 one.
12020 * psympriv.h (add_psymbol_to_list): New overload.
12021
e61108c9
TT
120222020-04-24 Tom Tromey <tom@tromey.com>
12023
12024 * dwarf2/read.c (partial_die_info::read) <case
12025 DW_AT_linkage_name>: Use value_as_string.
12026 (dwarf2_string_attr): Use value_as_string.
12027 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
12028 method.
12029 * dwarf2/attribute.c (attribute::value_as_string): New method.
12030
8c87a452
TT
120312020-04-24 Tom Tromey <tom@tromey.com>
12032
12033 * symtab.c (general_symbol_info::natural_name)
12034 (general_symbol_info::demangled_name): Check for language_rust.
12035
787de330
TT
120362020-04-24 Tom Tromey <tom@tromey.com>
12037
12038 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
12039 (dwarf2_physname): ... from here.
12040 (partial_die_info::read): Add Rust "{" hack.
12041
ff985671
TT
120422020-04-24 Tom Tromey <tom@tromey.com>
12043
12044 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
12045 method.
12046 (symbol_set_demangled_name): Don't declare.
12047 * symtab.c (general_symbol_info::set_demangled_name): Rename from
12048 symbol_set_demangled_name.
12049 (general_symbol_info::set_language)
12050 (general_symbol_info::compute_and_set_names): Update.
12051 * minsyms.c (minimal_symbol_reader::install): Update.
12052 * dwarf2/read.c (new_symbol): Update.
12053
1acda803
TT
120542020-04-24 Tom Tromey <tromey@adacore.com>
12055
12056 PR python/23662:
12057 * python/py-type.c (convert_field): Handle
12058 FIELD_LOC_KIND_DWARF_BLOCK.
12059 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
12060 (typy_get_dynamic): Nw function.
12061 (type_object_getset): Add "dynamic".
12062 * NEWS: Add entry.
12063
d656f129
TT
120642020-04-24 Tom Tromey <tromey@adacore.com>
12065
12066 * ada-typeprint.c (print_choices, print_variant_part)
12067 (print_record_field_types_dynamic): New functions.
12068 (print_record_field_types): Use print_record_field_types_dynamic.
12069
7d79de9a
TT
120702020-04-24 Tom Tromey <tromey@adacore.com>
12071
12072 * dwarf2/read.c (handle_data_member_location): New overload.
12073 (dwarf2_add_field): Use it.
12074 (decode_locdesc): Add "computed" parameter. Update comment.
12075 * gdbtypes.c (is_dynamic_type_internal): Also look for
12076 FIELD_LOC_KIND_DWARF_BLOCK.
12077 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
12078 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
12079 virtual base classes.
12080 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
12081 FIELD_LOC_KIND_DWARF_BLOCK.
12082
f8e89861
TT
120832020-04-24 Tom Tromey <tromey@adacore.com>
12084
12085 * dwarf2/read.c (read_structure_type): Handle dynamic length.
12086 * gdbtypes.c (is_dynamic_type_internal): Check
12087 TYPE_HAS_DYNAMIC_LENGTH.
12088 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
12089 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
12090 New macros.
12091 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
12092 constant.
12093
9c6a1327
TT
120942020-04-24 Tom Tromey <tromey@adacore.com>
12095
12096 * dwarf2/read.c (struct variant_field): Rewrite.
12097 (struct variant_part_builder): New.
12098 (struct nextfield): Remove "variant" field. Add "offset".
12099 (struct field_info): Add "current_variant_part" and
12100 "variant_parts".
12101 (alloc_discriminant_info): Remove.
12102 (alloc_rust_variant): New function.
12103 (quirk_rust_enum): Update.
12104 (dwarf2_add_field): Set "offset" member. Don't handle
12105 DW_TAG_variant_part.
12106 (offset_map_type): New typedef.
12107 (convert_variant_range, create_one_variant)
12108 (create_one_variant_part, create_variant_parts)
12109 (add_variant_property): New functions.
12110 (dwarf2_attach_fields_to_type): Call add_variant_property.
12111 (read_structure_type): Don't handle DW_TAG_variant_part.
12112 (handle_variant_part, handle_variant): New functions.
12113 (handle_struct_member_die): Use them.
12114 (process_structure_scope): Don't handle variant parts.
12115 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
12116 (struct discriminant_info): Remove.
12117 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
12118 (struct main_type) <flag_discriminated_union>: Remove.
12119 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
12120 (rust_enum_variant): Return int. Remove "contents". Rewrite.
12121 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
12122 Update.
12123 * valops.c (value_union_variant): Remove.
12124 * value.h (value_union_variant): Don't declare.
12125
b249d2c2
TT
121262020-04-24 Tom Tromey <tromey@adacore.com>
12127
12128 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
12129 (ada_value_primitive_packed_val): Update.
12130 * ada-valprint.c (ada_value_print_1): Update.
12131 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
12132 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
12133 just an address. Use evaluate_for_locexpr_baton.
12134 (dwarf2_evaluate_property): Update.
12135 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
12136 array_view.
12137 * findvar.c (default_read_var_value): Update.
12138 * gdbtypes.c (compute_variant_fields_inner)
12139 (resolve_dynamic_type_internal): Update.
12140 (resolve_dynamic_type): Change type of valaddr parameter.
12141 * gdbtypes.h (resolve_dynamic_type): Update.
12142 * valarith.c (value_subscripted_rvalue): Update.
12143 * value.c (value_from_contents_and_address): Update.
12144
61122aa9
TT
121452020-04-24 Tom Tromey <tromey@adacore.com>
12146
12147 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
12148 "push_initial_value" parameter.
12149 (dwarf2_evaluate_property): Likewise.
12150 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
12151
ef83a141
TT
121522020-04-24 Tom Tromey <tromey@adacore.com>
12153
12154 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
12155 (variant::matches, compute_variant_fields_recurse)
12156 (compute_variant_fields_inner, compute_variant_fields): New
12157 functions.
12158 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
12159 Use resolved_type after type is made.
12160 (operator==): Add new cases.
12161 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
12162 (struct discriminant_range, struct variant, struct variant_part):
12163 New.
12164 (union dynamic_prop_data) <variant_parts, original_type>: New
12165 members.
12166 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
12167 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
12168 constants.
12169 * value.c (unpack_bits_as_long): Now public.
12170 * value.h (unpack_bits_as_long): Declare.
12171
675127ec
TT
121722020-04-24 Tom Tromey <tromey@adacore.com>
12173
12174 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
12175 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
12176
9852ceef
HD
121772020-04-24 Hannes Domani <ssbssa@yahoo.de>
12178
12179 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
12180
7632c6ce
KR
121812020-04-24 Kamil Rytarowski <n54@gmx.com>
12182
12183 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
12184 (remove_fork_catchpoint, post_startup_inferior)
12185 (post_attach): Move...
12186 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
12187 (remove_fork_catchpoint, post_startup_inferior)
12188 (post_attach): ...here.
12189 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
12190 (remove_fork_catchpoint, post_startup_inferior)
12191 (post_attach): Move...
12192 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
12193 (remove_fork_catchpoint, post_startup_inferior)
12194 (post_attach): ...here.
12195
7be2bb4f
TT
121962020-04-24 Tom Tromey <tromey@adacore.com>
12197
12198 * nat/windows-nat.h (struct windows_thread_info)
12199 <pc_adjusted>: New member.
12200 * windows-nat.c (windows_fetch_one_register): Check
12201 pc_adjusted.
12202 (windows_nat_target::get_windows_debug_event)
12203 (windows_nat_target::wait): Set pc_adjusted.
12204
f80cb3b4
TV
122052020-04-24 Tom de Vries <tdevries@suse.de>
12206
12207 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
12208 Run gdb-add-index inside temp dir.
12209
29514b87
TT
122102020-04-23 Tom Tromey <tromey@adacore.com>
12211
12212 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
12213 in loop.
12214
5939967b
LM
122152020-04-23 Luis Machado <luis.machado@linaro.org>
12216
12217 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
12218 get_frame_register instead of gdbarch_unwind_pc.
12219
70bc38f5
TV
122202020-04-23 Tom de Vries <tdevries@suse.de>
12221
12222 * symtab.c (lookup_global_symbol): Prefer def over decl.
12223
de82891c
TV
122242020-04-23 Tom de Vries <tdevries@suse.de>
12225
12226 PR symtab/25807
12227 * block.c (best_symbol, better_symbol): Promote to external.
12228 * block.h (best_symbol, better_symbol): Declare.
12229 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
12230 decl.
12231
ecc6c606
TT
122322020-04-23 Tom Tromey <tromey@adacore.com>
12233
12234 PR ada/25837:
12235 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
12236 "const char *", not a "const std::string &".
12237 <name_and_matcher::operator==>: Update.
12238 * unittests/lookup_name_info-selftests.c: Change type of
12239 "result".
12240
740480b8
TT
122412020-04-23 Tom Tromey <tom@tromey.com>
12242
12243 * inferior.h (iterate_over_inferiors): Don't declare.
12244 * inferior.c (iterate_over_inferiors): Remove.
12245 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
12246 Remove.
12247 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
12248 use iterate_over_inferiors.
12249 (darwin_resume_inferior_it)
12250 (struct resume_inferior_threads_param)
12251 (darwin_resume_inferior_threads_it): Remove.
12252 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
12253
ae3ab1f0
TV
122542020-04-23 Tom de Vries <tdevries@suse.de>
12255
12256 * blockframe.c (find_pc_partial_function): Use
12257 find_pc_sect_compunit_symtab rather than
12258 objfile->sf->qf->find_pc_sect_compunit_symtab.
12259
317d2668
TV
122602020-04-22 Tom de Vries <tdevries@suse.de>
12261
12262 PR symtab/25764
12263 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
12264 in psymtabs.
12265
eea9e357
TV
122662020-04-22 Tom de Vries <tdevries@suse.de>
12267
12268 PR symtab/25801
12269 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
12270 symtabs.
12271
3d5afab3
TV
122722020-04-22 Tom de Vries <tdevries@suse.de>
12273
12274 PR symtab/25700
12275 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
12276 CU if already created.
12277
d43b7a2d
TBA
122782020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12279
12280 * infrun.c (displaced_step_fixup): Switch to the event_thread
12281 before calling displaced_step_restore, not after.
12282
d89edf9b
MM
122832020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12284
12285 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
12286 its inferior is not recorded by us.
12287 (record_btrace_target_open): Replace call to
12288 all_non_exited_threads () with call to current_inferior
12289 ()->non_exited_threads ().
12290 (record_btrace_target::stop_recording): Likewise.
12291 (record_btrace_target::close): Likewise.
12292 (record_btrace_target::wait): Likewise.
12293 (record_btrace_target::record_stop_replaying): Likewise.
12294
5897fd49
MM
122952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12296
12297 * btrace.c (btrace_enable): Throw an error on double enables and
12298 when enabling recording fails.
12299 (btrace_disable): Throw an error if the thread is not recorded.
12300
1a476b6d
MM
123012020-04-21 Markus Metzger <markus.t.metzger@intel.com>
12302
12303 * record-btrace.c (record_btrace_target::fetch_registers): Forward
12304 request if we do not have a thread_info.
12305
4778a5f8
TV
123062020-04-21 Tom de Vries <tdevries@suse.de>
12307
12308 PR gdb/25471
12309 * thread.c
12310 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
12311 exception in get_frame_id.
12312
0fa7617d
TT
123132020-04-20 Tom Tromey <tromey@adacore.com>
12314
12315 * python/python.c (struct gdbpy_event): Mark move constructor as
12316 noexcept.
12317 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
12318 constructor as noexcept.
12319 * completer.h (struct completion_result): Mark move constructor as
12320 noexcept.
12321 * completer.c (completion_result::completion_result): Use
12322 initialization style. Don't call reset_match_list.
12323
ad23bda0
MS
123242020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
12325
12326 * MAINTAINERS (Write After Approval): Add myself.
12327
45e1f031
TT
123282020-04-18 Tom Tromey <tom@tromey.com>
12329
12330 * windows-tdep.c (init_w32_command_list)
12331 (w32_prefix_command_valid): Restore.
12332 (_initialize_windows_tdep): Call init_w32_command_list.
12333
08feed99
TT
123342020-04-18 Tom Tromey <tom@tromey.com>
12335
12336 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
12337 * value.c (value_fn_field): Update.
12338 * valops.c (find_function_in_inferior)
12339 (value_allocate_space_in_inferior): Update.
12340 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12341 Update.
12342 * tui/tui-source.c (tui_source_window::set_contents): Update.
12343 * symtab.c (lookup_global_or_static_symbol)
12344 (find_function_start_sal_1, skip_prologue_sal)
12345 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
12346 * symmisc.c (dump_msymbols, dump_symtab_1)
12347 (maintenance_print_one_line_table): Update.
12348 * symfile.c (init_entry_point_info, section_is_mapped)
12349 (list_overlays_command, simple_read_overlay_table)
12350 (simple_overlay_update_1): Update.
12351 * stap-probe.c (handle_stap_probe): Update.
12352 * stabsread.c (dbx_init_float_type, define_symbol)
12353 (read_one_struct_field, read_enum_type, read_range_type): Update.
12354 * source.c (info_line_command): Update.
12355 * python/python.c (gdbpy_source_objfile_script)
12356 (gdbpy_execute_objfile_script): Update.
12357 * python/py-type.c (save_objfile_types): Update.
12358 * python/py-objfile.c (py_free_objfile): Update.
12359 * python/py-inferior.c (python_new_objfile): Update.
12360 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
12361 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
12362 (maintenance_check_psymtabs): Update.
12363 * printcmd.c (info_address_command): Update.
12364 * objfiles.h (struct objfile) <arch>: New method, from
12365 get_objfile_arch.
12366 (get_objfile_arch): Don't declare.
12367 * objfiles.c (get_objfile_arch): Remove.
12368 (filter_overlapping_sections): Update.
12369 * minsyms.c (msymbol_is_function): Update.
12370 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
12371 (output_nondebug_symbol): Update.
12372 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
12373 (mdebug_expand_psymtab): Update.
12374 * machoread.c (macho_add_oso_symfile): Update.
12375 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
12376 Update.
12377 * linux-fork.c (checkpoint_command): Update.
12378 * linespec.c (convert_linespec_to_sals): Update.
12379 * jit.c (finalize_symtab): Update.
12380 * infrun.c (insert_exception_resume_from_probe): Update.
12381 * ia64-tdep.c (ia64_find_unwind_table): Update.
12382 * hppa-tdep.c (internalize_unwinds): Update.
12383 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
12384 Update.
12385 * gcore.c (call_target_sbrk): Update.
12386 * elfread.c (record_minimal_symbol, elf_symtab_read)
12387 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
12388 (elf_gnu_ifunc_resolve_by_got): Update.
12389 * dwarf2/read.c (create_addrmap_from_index)
12390 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12391 (read_debug_names_from_section)
12392 (process_psymtab_comp_unit_reader, add_partial_symbol)
12393 (add_partial_subprogram, process_full_comp_unit)
12394 (read_file_scope, read_func_scope, read_lexical_block_scope)
12395 (read_call_site_scope, dwarf2_ranges_read)
12396 (dwarf2_record_block_ranges, dwarf2_add_field)
12397 (mark_common_block_symbol_computed, read_tag_pointer_type)
12398 (read_tag_string_type, dwarf2_init_float_type)
12399 (dwarf2_init_complex_target_type, read_base_type)
12400 (partial_die_info::read, partial_die_info::read)
12401 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
12402 (dwarf2_fetch_die_loc_sect_off): Update.
12403 * dwarf2/loc.c (dwarf2_find_location_expression)
12404 (class dwarf_evaluate_loc_desc, rw_pieced_value)
12405 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
12406 (dwarf2_loc_desc_get_symbol_read_needs)
12407 (locexpr_describe_location_piece, locexpr_describe_location_1)
12408 (loclist_describe_location): Update.
12409 * dwarf2/index-write.c (write_debug_names): Update.
12410 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
12411 * dtrace-probe.c (dtrace_process_dof): Update.
12412 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
12413 (process_one_symbol): Update.
12414 * ctfread.c (ctf_init_float_type, read_base_type): Update.
12415 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
12416 (coff_read_enum_type): Update.
12417 * cli/cli-cmds.c (edit_command, list_command): Update.
12418 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
12419 * breakpoint.c (create_overlay_event_breakpoint)
12420 (create_longjmp_master_breakpoint)
12421 (create_std_terminate_master_breakpoint)
12422 (create_exception_master_breakpoint, get_sal_arch): Update.
12423 * block.c (block_gdbarch): Update.
12424 * annotate.c (annotate_source_line): Update.
12425
0743fc83
TT
124262020-04-17 Tom Tromey <tromey@adacore.com>
12427
12428 * auto-load.c (show_auto_load_cmd): Remove.
12429 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
12430 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
12431 (maintenance_print_arc_command): Remove.
12432 * tui/tui-win.c (tui_command): Remove.
12433 (tui_get_cmd_list): Use add_basic_prefix_cmd.
12434 * tui/tui-layout.c (tui_layout_command): Remove.
12435 (_initialize_tui_layout): Use add_basic_prefix_cmd.
12436 * python/python.c (user_set_python, user_show_python): Remove.
12437 (_initialize_python): Use add_basic_prefix_cmd,
12438 add_show_prefix_cmd.
12439 * guile/guile.c (set_guile_command, show_guile_command): Remove.
12440 (install_gdb_commands): Use add_basic_prefix_cmd,
12441 add_show_prefix_cmd.
12442 (info_guile_command): Remove.
12443 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
12444 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
12445 add_show_prefix_cmd.
12446 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
12447 Remove do_set and do_show parameters.
12448 * cli/cli-style.c (set_style, show_style): Remove.
12449 (_initialize_cli_style): Use add_basic_prefix_cmd,
12450 add_show_prefix_cmd.
12451 (cli_style_option::add_setshow_commands): Remove do_set and
12452 do_show parameters.
12453 (cli_style_option::add_setshow_commands): Use
12454 add_basic_prefix_cmd, add_show_prefix_cmd.
12455 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
12456 (set_style_name): Remove.
12457 * cli/cli-dump.c (dump_command, append_command): Remove.
12458 (srec_dump_command, ihex_dump_command, verilog_dump_command)
12459 (tekhex_dump_command, binary_dump_command)
12460 (binary_append_command): Remove.
12461 (_initialize_cli_dump): Use add_basic_prefix_cmd.
12462 * windows-tdep.c (w32_prefix_command_valid): Remove global.
12463 (init_w32_command_list): Remove; move into ...
12464 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
12465 * valprint.c (set_print, show_print, set_print_raw)
12466 (show_print_raw): Remove.
12467 (_initialize_valprint): Use add_basic_prefix_cmd,
12468 add_show_prefix_cmd.
12469 * typeprint.c (set_print_type, show_print_type): Remove.
12470 (_initialize_typeprint): Use add_basic_prefix_cmd,
12471 add_show_prefix_cmd.
12472 * record.c (set_record_command, show_record_command): Remove.
12473 (_initialize_record): Use add_basic_prefix_cmd,
12474 add_show_prefix_cmd.
12475 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
12476 add_show_prefix_cmd.
12477 (info_command, show_command, set_debug, show_debug): Remove.
12478 * top.h (set_history, show_history): Don't declare.
12479 * top.c (set_history, show_history): Remove.
12480 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
12481 (unset_tdesc_cmd): Remove.
12482 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
12483 add_show_prefix_cmd.
12484 * symtab.c (info_module_command): Remove.
12485 (_initialize_symtab): Use add_basic_prefix_cmd.
12486 * symfile.c (overlay_command): Remove.
12487 (_initialize_symfile): Use add_basic_prefix_cmd.
12488 * sparc64-tdep.c (info_adi_command): Remove.
12489 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
12490 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
12491 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
12492 add_show_prefix_cmd.
12493 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
12494 (_initialize_serial): Use add_basic_prefix_cmd,
12495 add_show_prefix_cmd.
12496 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
12497 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
12498 add_show_prefix_cmd.
12499 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
12500 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
12501 add_show_prefix_cmd.
12502 * riscv-tdep.c (show_riscv_command, set_riscv_command)
12503 (show_debug_riscv_command, set_debug_riscv_command): Remove.
12504 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
12505 add_show_prefix_cmd.
12506 * remote.c (remote_command, set_remote_cmd): Remove.
12507 (_initialize_remote): Use add_basic_prefix_cmd.
12508 * record-full.c (set_record_full_command)
12509 (show_record_full_command): Remove.
12510 (_initialize_record_full): Use add_basic_prefix_cmd,
12511 add_show_prefix_cmd.
12512 * record-btrace.c (cmd_set_record_btrace)
12513 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
12514 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
12515 (cmd_show_record_btrace_pt): Remove.
12516 (_initialize_record_btrace): Use add_basic_prefix_cmd,
12517 add_show_prefix_cmd.
12518 * ravenscar-thread.c (set_ravenscar_command)
12519 (show_ravenscar_command): Remove.
12520 (_initialize_ravenscar): Use add_basic_prefix_cmd,
12521 add_show_prefix_cmd.
12522 * mips-tdep.c (show_mips_command, set_mips_command)
12523 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
12524 add_show_prefix_cmd.
12525 * maint.c (maintenance_command, maintenance_info_command)
12526 (maintenance_check_command, maintenance_print_command)
12527 (maintenance_set_cmd, maintenance_show_cmd): Remove.
12528 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
12529 add_show_prefix_cmd.
12530 (show_per_command_cmd): Remove.
12531 * maint-test-settings.c (maintenance_set_test_settings_cmd):
12532 Remove.
12533 (maintenance_show_test_settings_cmd): Remove.
12534 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
12535 add_show_prefix_cmd.
12536 * maint-test-options.c (maintenance_test_options_command):
12537 Remove.
12538 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
12539 * macrocmd.c (macro_command): Remove
12540 (_initialize_macrocmd): Use add_basic_prefix_cmd.
12541 * language.c (set_check, show_check): Remove.
12542 (_initialize_language): Use add_basic_prefix_cmd,
12543 add_show_prefix_cmd.
12544 * infcmd.c (unset_command): Remove.
12545 (_initialize_infcmd): Use add_basic_prefix_cmd.
12546 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
12547 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
12548 add_show_prefix_cmd.
12549 * go32-nat.c (go32_info_dos_command): Remove.
12550 (_initialize_go32_nat): Use add_basic_prefix_cmd.
12551 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
12552 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
12553 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
12554 (_initialize_frame): Use add_basic_prefix_cmd,
12555 add_show_prefix_cmd.
12556 * dcache.c (set_dcache_command, show_dcache_command): Remove.
12557 (_initialize_dcache): Use add_basic_prefix_cmd,
12558 add_show_prefix_cmd.
12559 * cp-support.c (maint_cplus_command): Remove.
12560 (_initialize_cp_support): Use add_basic_prefix_cmd.
12561 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
12562 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
12563 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
12564 add_basic_prefix_cmd, add_show_prefix_cmd.
12565 * breakpoint.c (save_command): Remove.
12566 (_initialize_breakpoint): Use add_basic_prefix_cmd.
12567 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
12568 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
12569 add_show_prefix_cmd.
12570 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
12571 (set_ada_command, show_ada_command): Remove.
12572 (_initialize_ada_language): Use add_basic_prefix_cmd,
12573 add_show_prefix_cmd.
12574 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
12575
3557f442
KR
125762020-04-16 Kamil Rytarowski <n54@gmx.com>
12577
12578 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
12579 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
12580
16197208
SM
125812020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12582
12583 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
12584 warning messages.
12585
00ac85d3
SM
125862020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
12587
12588 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
12589 import table is not at beginning of .idata section.
12590
381ce63f
PA
125912020-04-16 Pedro Alves <palves@redhat.com>
12592
12593 * inferior.c (delete_inferior): Use delete operator directly
12594 instead of delete_program_space.
12595 * progspace.c (add_program_space): New, factored out from
12596 program_space::program_space.
12597 (remove_program_space): New, factored out from
12598 delete_program_space.
12599 (program_space::program_space): Remove intro comment. Rewrite.
12600 (program_space::~program_space): Remove intro comment. Call
12601 remove_program_space.
12602 (delete_program_space): Delete.
12603 * progspace.h (program_space::program_space): Make explicit. Move
12604 intro comment here, adjusted.
12605 (program_space::~program_space): Move intro comment here,
12606 adjusted.
12607 (delete_program_space): Remove.
12608
a010605f
TT
126092020-04-16 Tom Tromey <tromey@adacore.com>
12610
12611 * windows-nat.c (windows_nat::handle_access_violation): New
12612 function.
12613 * nat/windows-nat.h (handle_access_violation): Declare.
12614 * nat/windows-nat.c (handle_exception): Move Cygwin code to
12615 windows-nat.c. Call handle_access_violation.
12616
efba5c23
TV
126172020-04-16 Tom de Vries <tdevries@suse.de>
12618
12619 PR symtab/25791
12620 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
12621 CUs without psymtab.
12622
97ed802d
KB
126232020-04-16 Kevin Buettner <kevinb@redhat.com>
12624
12625 * python/python.c (do_start_initialization): Don't call
12626 PyEval_InitThreads for Python 3.9 and beyond.
12627
c7d64809
KR
126282020-04-15 Kamil Rytarowski <n54@gmx.com>
12629
12630 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
12631 thread functions.
12632 (obsd_nat_target::wait): Likewise.
12633
ce127a96
TT
126342020-04-15 Tom Tromey <tromey@adacore.com>
12635
12636 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
12637 (DEBUG_EXCEPT): Use debug_printf.
12638
99f1bc6a
AB
126392020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
12640
12641 * completer.c (class completion_tracker::completion_hash_entry)
12642 <hash_name>: New member function.
12643 (completion_tracker::discard_completions): New callback to hash a
12644 completion_hash_entry, pass this to htab_create_alloc.
12645
a0e9b532
JT
126462016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
12647
12648 * windows-nat.c (windows_make_so): Warn rather than stopping with
12649 an error if realpath() fails.
12650
06ca5dd4
KR
126512020-04-14 Kamil Rytarowski <n54@gmx.com>
12652
12653 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
12654 (nbsd_nat_target::info_proc): Add do_status.
12655
194d088f
TV
126562020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
12657 Tom de Vries <tdevries@suse.de>
12658
12659 PR symtab/25718
12660 * psympriv.h (struct partial_symtab::read_symtab)
12661 (struct partial_symtab::expand_psymtab)
12662 (struct partial_symtab::read_dependencies): Update comments.
12663 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
12664 read_symtab for includer.
12665 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
12666 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
12667 (struct dwarf2_include_psymtab::m_readin): Remove.
12668 (struct dwarf2_include_psymtab::includer): New member function.
12669 (dwarf2_psymtab::expand_psymtab): Assert !readin.
12670
c1a66c06
TV
126712020-04-14 Tom de Vries <tdevries@suse.de>
12672
12673 PR symtab/25720
12674 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
12675 with NULL symbol_matcher and lookup_name.
12676 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
12677 and lookup_name.
12678 * dwarf2/read.c (dw2_expand_symtabs_matching)
12679 (dw2_debug_names_expand_symtabs_matching): Same.
12680 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
12681 Make lookup_name a pointer. Update comment.
12682 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
12683 lookup_name being a pointer.
12684 * symfile.c (expand_symtabs_matching): Same.
12685 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
12686 * linespec.c (iterate_over_all_matching_symtabs): Same.
12687
400b5eca
TT
126882020-04-13 Tom Tromey <tom@tromey.com>
12689
12690 * run-on-main-thread.c: Update include.
12691 * unittests/main-thread-selftests.c: Update include.
12692 * tui/tui-win.c: Update include.
12693 * tui/tui-io.c: Update include.
12694 * tui/tui-interp.c: Update include.
12695 * tui/tui-hooks.c: Update include.
12696 * top.h: Update include.
12697 * top.c: Update include.
12698 * ser-base.c: Update include.
12699 * remote.c: Update include.
12700 * remote-notif.c: Update include.
12701 * remote-fileio.c: Update include.
12702 * record-full.c: Update include.
12703 * record-btrace.c: Update include.
12704 * python/python.c: Update include.
12705 * posix-hdep.c: Update include.
12706 * mingw-hdep.c: Update include.
12707 * mi/mi-main.c: Update include.
12708 * mi/mi-interp.c: Update include.
12709 * main.c: Update include.
12710 * linux-nat.c: Update include.
12711 * interps.c: Update include.
12712 * infrun.c: Update include.
12713 * inf-loop.c: Update include.
12714 * event-top.c: Update include.
12715 * event-loop.c: Move to ../gdbsupport/.
12716 * event-loop.h: Move to ../gdbsupport/.
12717 * async-event.h: Update include.
12718 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
12719
93b54c8e
TT
127202020-04-13 Tom Tromey <tom@tromey.com>
12721
12722 * tui/tui-win.c: Include async-event.h.
12723 * remote.c: Include async-event.h.
12724 * remote-notif.c: Include async-event.h.
12725 * record-full.c: Include async-event.h.
12726 * record-btrace.c: Include async-event.h.
12727 * infrun.c: Include async-event.h.
12728 * event-top.c: Include async-event.h.
12729 * event-loop.h: Move some declarations to async-event.h.
12730 * event-loop.c: Don't include ser-event.h or top.h. Move some
12731 code to async-event.c.
12732 * async-event.h: New file.
12733 * async-event.c: New file.
12734 * Makefile.in (COMMON_SFILES): Add async-event.c.
12735 (HFILES_NO_SRCDIR): Add async-event.h.
12736
c1cd3163
TT
127372020-04-13 Tom Tromey <tom@tromey.com>
12738
12739 * utils.c (flush_streams): New function.
12740 * event-loop.c (gdb_wait_for_event): Call flush_streams.
12741
29f2bf4f
TT
127422020-04-13 Tom Tromey <tom@tromey.com>
12743
12744 * event-loop.c (handle_file_event): Use warning, not
12745 printf_unfiltered.
12746
98029d02
TT
127472020-04-13 Tom Tromey <tom@tromey.com>
12748
12749 * event-loop.c: Include <chrono>.
12750
06cc9596
TT
127512020-04-13 Tom Tromey <tom@tromey.com>
12752
12753 * gdb_select.h: Move to ../gdbsupport/.
12754 * event-loop.c: Update include path.
12755 * top.c: Update include path.
12756 * ser-base.c: Update include path.
12757 * ui-file.c: Update include path.
12758 * ser-tcp.c: Update include path.
12759 * guile/scm-ports.c: Update include path.
12760 * posix-hdep.c: Update include path.
12761 * ser-unix.c: Update include path.
12762 * gdb_usleep.c: Update include path.
12763 * mingw-hdep.c: Update include path.
12764 * inflow.c: Update include path.
12765 * infrun.c: Update include path.
12766 * event-top.c: Update include path.
12767
8ae8e197
TT
127682020-04-13 Tom Tromey <tom@tromey.com>
12769
12770 * configure: Rebuild.
12771 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
12772
58cf28e8
TT
127732020-04-13 Tom Tromey <tom@tromey.com>
12774
12775 * event-loop.h (start_event_loop): Don't declare.
12776 * event-loop.c (start_event_loop): Move...
12777 * main.c (start_event_loop): ...here. Now static.
12778
b7f999ae
SDJ
127792020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
12780
12781 * MAINTAINERS: Update my email address.
12782
1085dfd4
KR
127832020-04-12 Kamil Rytarowski <n54@gmx.com>
12784
12785 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
12786 IP_ALL.
12787
49d1d1f5
KR
127882020-04-12 Kamil Rytarowski <n54@gmx.com>
12789
12790 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 12791 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 12792
b4848d2a
KR
127932020-04-12 Kamil Rytarowski <n54@gmx.com>
12794
12795 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 12796 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 12797
51c133d5
KR
127982020-04-12 Kamil Rytarowski <n54@gmx.com>
12799
12800 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
12801
54b8cbd0
KR
128022020-04-11 Kamil Rytarowski <n54@gmx.com>
12803
12804 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
12805 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
12806 (nbsd_nat_target::info_proc): New functions.
12807 * nbsd-nat.c (kinfo_get_vmmap): New function.
12808 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
12809 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
12810 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
12811 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
12812 functions.
12813 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
12814 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12815 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12816 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
12817 (KINFO_VME_FLAG_GROWS_DOWN): New.
12818
cf83625d
AS
128192020-04-10 Artur Shepilko <nomadbyte@gmail.com>
12820
12821 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
12822 bit shift.
12823
0c4311ab
TT
128242020-04-10 Tom Tromey <tromey@adacore.com>
12825
12826 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
12827
3e65b3e9
TT
128282020-04-10 Tom Tromey <tromey@adacore.com>
12829
12830 * symtab.c (get_symbol_address, get_msymbol_address): Skip
12831 separate debug files.
12832
13302e95
HD
128332020-04-10 Hannes Domani <ssbssa@yahoo.de>
12834
12835 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12836 Move to...
12837 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
12838 ... here.
12839 * windows-nat.c (windows_nat_target::get_windows_debug_event):
12840 Check for STATUS_WX86_BREAKPOINT.
12841 (windows_nat_target::wait): Same.
12842
bdfc1e8a
TV
128432020-04-10 Tom de Vries <tdevries@suse.de>
12844
12845 PR cli/25808
12846 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
12847
f4460aec
SM
128482020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12849
12850 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
12851 (Write After Approval): Remove Tom de Vries.
12852
a25198bb
BE
128532020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12854
12855 revert partially:
12856 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12857
aac66a4c
SM
12858 * buildsym.c (record_line): Fix undefined behavior and preserve
12859 lines at eof.
a25198bb 12860
206c98a6
KR
128612020-04-09 Kamil Rytarowski <n54@gmx.com>
12862
12863 * auxv.h (svr4_auxv_parse): New.
12864 * auxv.c (default_auxv_parse): Split into default_auxv_parse
12865 and generic_auxv_parse.
12866 (svr4_auxv_parse): Add.
12867 * obsd-tdep.c: Include "auxv.h".
12868 (obsd_auxv_parse): Remove.
12869 (obsd_init_abi): Remove comment.
12870 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
12871 from `obsd_auxv_parse' to `svr4_auxv_parse'.
12872 * nbsd-tdep.c: Include "auxv.h".
12873 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
12874
71fbdbaf
TT
128752020-04-08 Tom Tromey <tromey@adacore.com>
12876
12877 * nat/windows-nat.h (last_wait_event): Don't declare.
12878 (wait_for_debug_event): Update comment.
12879 * nat/windows-nat.c (last_wait_event): Now static.
12880
2c1d95e8
TT
128812020-04-08 Tom Tromey <tromey@adacore.com>
12882
12883 * windows-nat.c (wait_for_debug_event): Move to
12884 nat/windows-nat.c.
12885 * nat/windows-nat.h (wait_for_debug_event): Declare.
12886 * nat/windows-nat.c (wait_for_debug_event): Move from
12887 windows-nat.c. No longer static.
12888
d2977bc4
TT
128892020-04-08 Tom Tromey <tromey@adacore.com>
12890
12891 * windows-nat.c (get_windows_debug_event): Use
12892 fetch_pending_stop.
12893 * nat/windows-nat.h (fetch_pending_stop): Declare.
12894 * nat/windows-nat.c (fetch_pending_stop): New function.
12895
e758e19c
TT
128962020-04-08 Tom Tromey <tromey@adacore.com>
12897
12898 * windows-nat.c (windows_continue): Use matching_pending_stop and
12899 continue_last_debug_event.
12900 * nat/windows-nat.h (matching_pending_stop)
12901 (continue_last_debug_event): Declare.
12902 * nat/windows-nat.c (DEBUG_EVENTS): New define.
12903 (matching_pending_stop, continue_last_debug_event): New
12904 functions.
12905
8d30e395
TT
129062020-04-08 Tom Tromey <tromey@adacore.com>
12907
12908 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
12909 (handle_exception_result): Move to nat/windows-nat.h.
12910 (DEBUG_EXCEPTION_SIMPLE): Remove.
12911 (windows_nat::handle_ms_vc_exception): New function.
12912 (handle_exception): Move to nat/windows-nat.c.
12913 (get_windows_debug_event): Update.
12914 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
12915 nat/windows-nat.c.
12916 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
12917 (handle_exception_result): Move from windows-nat.c.
12918 (handle_exception): Declare.
12919 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
12920 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
12921 windows-nat.c.
12922
29de418d
TT
129232020-04-08 Tom Tromey <tromey@adacore.com>
12924
12925 * windows-nat.c (exception_count, event_count): Remove.
12926 (handle_exception, get_windows_debug_event)
12927 (do_initial_windows_stuff): Update.
12928
a816ba18
TT
129292020-04-08 Tom Tromey <tromey@adacore.com>
12930
12931 * windows-nat.c (windows_nat::handle_load_dll)
12932 (windows_nat::handle_unload_dll): Rename. No longer static.
12933 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
12934 Declare.
12935
a00caa12
TT
129362020-04-08 Tom Tromey <tromey@adacore.com>
12937
12938 * complaints.h (stop_whining): Declare at top-level.
12939 (complaint): Don't declare stop_whining.
12940
d41b524f
TT
129412020-04-08 Tom Tromey <tromey@adacore.com>
12942
12943 * windows-nat.c (windows_nat::handle_output_debug_string):
12944 Rename. No longer static.
12945 * nat/windows-nat.h (handle_output_debug_string): Declare.
12946
3c76026d
TT
129472020-04-08 Tom Tromey <tromey@adacore.com>
12948
12949 * windows-nat.c (current_process_handle, current_process_id)
12950 (main_thread_id, last_sig, current_event, last_wait_event)
12951 (current_windows_thread, desired_stop_thread_id, pending_stops)
12952 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
12953 (display_selectors, fake_create_process)
12954 (get_windows_debug_event): Update.
12955 * nat/windows-nat.h (current_process_handle, current_process_id)
12956 (main_thread_id, last_sig, current_event, last_wait_event)
12957 (current_windows_thread, desired_stop_thread_id, pending_stops)
12958 (struct pending_stop, siginfo_er): Move from windows-nat.c.
12959 * nat/windows-nat.c (current_process_handle, current_process_id)
12960 (main_thread_id, last_sig, current_event, last_wait_event)
12961 (current_windows_thread, desired_stop_thread_id, pending_stops)
12962 (siginfo_er): New globals. Move from windows-nat.c.
12963
9d8679cc
TT
129642020-04-08 Tom Tromey <tromey@adacore.com>
12965
12966 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
12967 (handle_load_dll): Update.
12968 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
12969
28688adf
TT
129702020-04-08 Tom Tromey <tromey@adacore.com>
12971
12972 * windows-nat.c (enum thread_disposition_type): Move to
12973 nat/windows-nat.h.
12974 (windows_nat::thread_rec): Rename from thread_rec. No longer
12975 static.
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 * nat/windows-nat.h (enum thread_disposition_type): Move from
12983 windows-nat.c.
12984 (thread_rec): Declare.
12985
4834dad0
TT
129862020-04-08 Tom Tromey <tromey@adacore.com>
12987
12988 * windows-nat.c: Add "using namespace".
12989 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
12990 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
12991
65bafd5b
TT
129922020-04-08 Tom Tromey <tromey@adacore.com>
12993
12994 * nat/windows-nat.h (struct windows_thread_info): Declare
12995 destructor.
12996 * nat/windows-nat.c (~windows_thread_info): New.
12997
0a4afda3
TT
129982020-04-08 Tom Tromey <tromey@adacore.com>
12999
13000 PR gdb/22992
13001 * windows-nat.c (current_event): Update comment.
13002 (last_wait_event, desired_stop_thread_id): New globals.
13003 (struct pending_stop): New.
13004 (pending_stops): New global.
13005 (windows_nat_target) <stopped_by_sw_breakpoint>
13006 <supports_stopped_by_sw_breakpoint>: New methods.
13007 (windows_fetch_one_register): Add assertions. Adjust PC.
13008 (windows_continue): Handle pending stops. Suspend other threads
13009 when stepping. Use last_wait_event
13010 (wait_for_debug_event): New function.
13011 (get_windows_debug_event): Use wait_for_debug_event. Handle
13012 pending stops. Queue spurious stops.
13013 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
13014 (windows_nat_target::kill): Use wait_for_debug_event.
13015 * nat/windows-nat.h (struct windows_thread_info)
13016 <stopped_at_software_breakpoint>: New field.
13017 * nat/windows-nat.c (windows_thread_info::resume): Clear
13018 stopped_at_software_breakpoint.
13019
8e61ebec
TT
130202020-04-08 Tom Tromey <tromey@adacore.com>
13021
13022 * windows-nat.c (enum thread_disposition_type): New.
13023 (thread_rec): Replace "get_context" parameter with "disposition";
13024 change type.
13025 (windows_add_thread, windows_nat_target::fetch_registers)
13026 (windows_nat_target::store_registers, handle_exception)
13027 (windows_nat_target::resume, get_windows_debug_event)
13028 (windows_nat_target::get_tib_address)
13029 (windows_nat_target::thread_name)
13030 (windows_nat_target::thread_alive): Update.
13031
98a03287
TT
130322020-04-08 Tom Tromey <tromey@adacore.com>
13033
13034 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
13035 (windows_continue): Use windows_continue::resume.
13036 * nat/windows-nat.h (struct windows_thread_info) <suspend,
13037 resume>: Declare new methods.
13038 * nat/windows-nat.c: New file.
13039 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
13040
7c7411bc
TT
130412020-04-08 Tom Tromey <tromey@adacore.com>
13042
13043 * windows-nat.c (windows_add_thread, windows_delete_thread)
13044 (windows_nat_target::fetch_registers)
13045 (windows_nat_target::store_registers, fake_create_process)
13046 (windows_nat_target::resume, windows_nat_target::resume)
13047 (get_windows_debug_event, windows_nat_target::wait)
13048 (windows_nat_target::pid_to_str)
13049 (windows_nat_target::get_tib_address)
13050 (windows_nat_target::get_ada_task_ptid)
13051 (windows_nat_target::thread_name)
13052 (windows_nat_target::thread_alive): Use lwp, not tid.
13053
2950fdf7
TT
130542020-04-08 Tom Tromey <tromey@adacore.com>
13055
13056 * windows-nat.c (handle_exception)
13057 (windows_nat_target::thread_name): Update.
13058 * nat/windows-nat.h (windows_thread_info): Remove destructor.
13059 <name>: Now unique_xmalloc_ptr.
13060
62fe396b
TT
130612020-04-08 Tom Tromey <tromey@adacore.com>
13062
13063 * windows-nat.c (thread_rec)
13064 (windows_nat_target::fetch_registers): Update.
13065 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
13066 Update comment.
13067 <debug_registers_changed, reload_context>: Now bool.
13068
e9534bd2
TT
130692020-04-08 Tom Tromey <tromey@adacore.com>
13070
13071 * windows-nat.c (windows_add_thread): Use new.
13072 (windows_init_thread_list, windows_delete_thread): Use delete.
13073 (get_windows_debug_event): Update.
13074 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
13075 destructor, and initializers.
13076
ae1f8880
TT
130772020-04-08 Tom Tromey <tromey@adacore.com>
13078
13079 * windows-nat.c (struct windows_thread_info): Remove.
13080 * nat/windows-nat.h: New file.
13081
55a1e039
TT
130822020-04-08 Tom Tromey <tromey@adacore.com>
13083
13084 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
13085 (thread_rec, windows_add_thread, windows_delete_thread)
13086 (windows_continue): Update.
13087
93366324
TT
130882020-04-08 Tom Tromey <tromey@adacore.com>
13089
13090 * windows-nat.c (struct windows_thread_info): Remove typedef.
13091 (thread_head): Remove.
13092 (thread_list): New global.
13093 (thread_rec, windows_add_thread, windows_init_thread_list)
13094 (windows_delete_thread, windows_continue): Update.
13095
0f2265e2
SM
130962020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
13097
13098 * windows-tdep.h (windows_init_abi): Add comment.
13099 (cygwin_init_abi): New declaration.
13100 * windows-tdep.c: Split signal enumeration in two, one for
13101 Windows and one for Cygwin.
13102 (windows_gdb_signal_to_target): Only deal with signal of the
13103 Windows OS ABI.
13104 (cygwin_gdb_signal_to_target): New function.
13105 (windows_init_abi): Rename to windows_init_abi_common, don't set
13106 gdb_signal_to_target gdbarch method. Add new new function with
13107 this name.
13108 (cygwin_init_abi): New function.
13109 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
13110 comment. Don't call windows_init_abi.
13111 (amd64_windows_init_abi): Add comment, call windows_init_abi.
13112 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
13113 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
13114 i386_windows_init_abi_common, don't call windows_init_abi. Add
13115 a new function of this name.
13116 (i386_cygwin_init_abi): New function.
13117 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
13118 OS ABI Cygwin.
13119
3810f182
SM
131202020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
13121
13122 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
13123 parameter.c.
13124 (dwarf2_read_gdb_index): Update.
13125
063f8e80
KR
131262020-04-07 Kamil Rytarowski <n54@gmx.com>
13127
13128 * nbsd-tdep.c: Include "objfiles.h".
13129 (nbsd_skip_solib_resolver): New.
13130 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
13131
85a9510c 131322020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13133
13134 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
13135 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
13136 with DW_LLE_base_addressx are being emitted in DWARFv5.
13137 Add the newly added kind DW_LOC_OFFSET_PAIR also.
13138 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
13139 unsigned integer.
13140
9fc3eaae 131412020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13142
13143 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
13144 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
13145 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
13146 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
13147 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
13148 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
13149 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
13150
13151
41144253 131522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
13153
13154 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
13155 (read_loclist_index): New function definition.
13156 (lookup_loclist_base): New function definition.
13157 (read_loclist_header): New function definition.
13158 (dwarf2_cu): Add loclist_base and loclist_header field.
13159 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
13160 (read_full_die_1): Read the value of DW_AT_loclists_base.
13161 (read_attribute_reprocess): Handle DW_FORM_loclistx.
13162 (read_attribute_value): Handle DW_FORM_loclistx.
13163 (skip_one_die): Handle DW_FORM_loclistx.
13164 (loclist_header): New structure declaration.
13165 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
13166
9f4e76a4
SM
131672020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
13168
13169 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
13170 constructor. Remove `addr` parameter from other constructor and
13171 add `per_cu` parameter.
13172 * dwarf2/read.c (create_partial_symtab): Update.
13173
25c11aca
TV
131742020-04-07 Tom de Vries <tdevries@suse.de>
13175
13176 PR symtab/25796
13177 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
13178 (partial_die_info::fixup): Inherit has_const_value.
13179
5707e24b
TV
131802020-04-07 Tom de Vries <tdevries@suse.de>
13181
13182 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
13183 symbols without address.
13184
05f00e22
KR
131852020-04-06 Kamil Rytarowski <n54@gmx.com>
13186
13187 * nbsd-nat.h (struct thread_info): Add forward declaration.
13188 (nbsd_nat_target::thread_alive): Add.
13189 (nbsd_nat_target::thread_name): Likewise.
13190 (nbsd_nat_target::update_thread_list): Likewise.
13191 (update_thread_list::post_attach): Likewise.
13192 (post_attach::pid_to_str): Likewise.
13193 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
13194 (nbsd_thread_lister): Add.
13195 (nbsd_nat_target::thread_alive): Likewise.
13196 (nbsd_nat_target::thread_name): Likewise.
13197 (nbsd_add_threads): Likewise.
13198 (update_thread_list::post_attach): Likewise.
13199 (nbsd_nat_target::update_thread_list): Likewise.
13200 (post_attach::pid_to_str): Likewise.
13201
6ee448cc
TT
132022020-04-06 Tom Tromey <tromey@adacore.com>
13203
13204 * ada-valprint.c (print_variant_part): Extract the variant field.
13205 (print_field_values): Use the field as the outer value when
13206 recursing.
13207
dea34e8c
TT
132082020-04-06 Tom Tromey <tromey@adacore.com>
13209
13210 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
13211 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
13212 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
13213 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
13214 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
13215
93689ce9
TT
132162020-04-06 Tom Tromey <tromey@adacore.com>
13217
13218 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
13219 TYPE_CODE_ERROR.
13220
79743962
KR
132212020-04-06 Kamil Rytarowski <n54@gmx.com>
13222
13223 * nbsd-tdep.c: Include "gdbarch.h".
13224 Define enum with NetBSD signal numbers.
13225 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
13226 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
13227 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
13228 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
13229 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
13230 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
13231 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
13232 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13233 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
13234 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
13235 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
13236 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
13237
9e7c9a03
HD
132382020-04-03 Hannes Domani <ssbssa@yahoo.de>
13239
13240 PR gdb/25325
13241 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
13242
d9e49b61
TT
132432020-04-03 Tom Tromey <tromey@adacore.com>
13244
13245 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
13246 Read constant block.
13247
e0fc5c3f
SM
132482020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13249
13250 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
13251 (gdb_bfd_get_full_section_contents): New declaration.
13252 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
13253 * windows-tdep.c (is_linked_with_cygwin_dll): Use
13254 gdb_bfd_get_full_section_contents.
13255
e2ff18a0
SM
132562020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13257
13258 * exec.c (build_section_table): Replace internal_error with
13259 gdb_assert.
13260 (section_table_xfer_memory_partial): Likewise.
13261 * mdebugread.c (parse_partial_symbols): Likewise.
13262 * psymtab.c (lookup_partial_symbol): Likewise.
13263 * utils.c (wrap_here): Likewise.
13264
0830d301
TT
132652020-04-02 Tom Tromey <tromey@adacore.com>
13266
13267 * f-lang.c (build_fortran_types): Use arch_type to initialize
13268 builtin_complex_s32 in the TYPE_CODE_ERROR case.
13269
e7da7f8f
TT
132702020-04-02 Tom Tromey <tromey@adacore.com>
13271
13272 * dwarf2/read.c (partial_die_info::read): Do not create a vector
13273 of attributes.
13274
c90d28ac
AB
132752020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
13276 Bernd Edlinger <bernd.edlinger@hotmail.de>
13277 Tom Tromey <tromey@adacore.com>
13278
13279 * buildsym.c (buildsym_compunit::record_line): Remove
13280 deduplication code.
13281
1aa98955
TV
132822020-04-02 Tom de Vries <tdevries@suse.de>
13283
13284 PR ada/24671
13285 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
13286
d3214198
TV
132872020-04-02 Tom de Vries <tdevries@suse.de>
13288
13289 * dwarf2/read.c (dwarf2_gdb_index_functions,
13290 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
13291 NULL.
13292 * psymtab.c (psym_lookup_global_symbol_language): New function.
13293 (psym_functions): Init psym_lookup_global_symbol_language with
13294 psym_lookup_global_symbol_language.
13295 * symfile-debug.c (debug_sym_quick_functions): Init
13296 lookup_global_symbol_language with NULL.
13297 * symfile.c (set_initial_language): Remove fixme comment.
13298 * symfile.h (struct quick_symbol_functions): Add
13299 lookup_global_symbol_language.
13300 * symtab.c (find_quick_global_symbol_language): New function.
13301 (find_main_name): Use find_quick_global_symbol_language.
13302
2836752f
SM
133032020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
13304
13305 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
13306
64dc2d4b
BE
133072020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13308
13309 * buildsym.c (record_line): Fix undefined behavior and preserve
13310 lines at eof.
13311
bbe3dc41
BE
133122020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13313
13314 * buildsym.c (record_line): Fix the resizing condition.
13315
6b4a335b
TT
133162020-04-01 Tom Tromey <tom@tromey.com>
13317
13318 * value.h (value_literal_complex): Add comment.
13319 * valops.c (value_literal_complex): Refer to value.h.
13320
3638a098
TT
133212020-04-01 Tom Tromey <tom@tromey.com>
13322
13323 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
13324 (scalar_type): New rule, from typebase.
13325 (typebase): Use scalar_type. Recognize complex types.
13326 (field_name): Handle FLOAT_KEYWORD.
13327 (ident_tokens): Add _Complex and __complex__.
13328
c34e8714
TT
133292020-04-01 Tom Tromey <tom@tromey.com>
13330
13331 PR exp/25299:
13332 * valarith.c (promotion_type, complex_binop): New functions.
13333 (scalar_binop): Handle complex numbers. Use promotion_type.
13334 (value_pos, value_neg, value_complement): Handle complex numbers.
13335
fa649bb7
TT
133362020-04-01 Tom Tromey <tom@tromey.com>
13337
13338 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
13339 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
13340 (parse_number): Handle complex numbers.
13341
981c08ce
TT
133422020-04-01 Tom Tromey <tom@tromey.com>
13343
13344 * c-valprint.c (c_decorations): Change complex suffix to "i".
13345
4c99290d
TT
133462020-04-01 Tom Tromey <tom@tromey.com>
13347
13348 * valprint.c (generic_value_print_complex): Use accessors.
13349 * value.h (value_real_part, value_imaginary_part): Declare.
13350 * valops.c (value_real_part, value_imaginary_part): New
13351 functions.
13352 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
13353
5b930b45
TT
133542020-04-01 Tom Tromey <tom@tromey.com>
13355
13356 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
13357 (read_range_type): Update.
13358 * mdebugread.c (basic_type): Update.
13359 * go-lang.c (build_go_types): Use init_complex_type.
13360 * gdbtypes.h (struct main_type) <complex_type>: New member.
13361 (init_complex_type): Update.
13362 (arch_complex_type): Don't declare.
13363 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
13364 Make name if none given. Use alloc_type_copy. Look for cached
13365 complex type.
13366 (arch_complex_type): Remove.
13367 (gdbtypes_post_init): Use init_complex_type.
13368 * f-lang.c (build_fortran_types): Use init_complex_type.
13369 * dwarf2/read.c (read_base_type): Update.
13370 * d-lang.c (build_d_types): Use init_complex_type.
13371 * ctfread.c (read_base_type): Update.
13372
53cccef1
TBA
133732020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13374
13375 * infrun.c (stop_all_threads): Update assertion, plus when
13376 stopping threads, take into account that we might be trying
13377 to stop an all-stop target.
13378 (stop_waiting): Call 'stop_all_threads' if there exists a
13379 non-stop target.
13380
a0714d30
TBA
133812020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13382
13383 * target.h (exists_non_stop_target): New function declaration.
13384 * target.c (exists_non_stop_target): New function.
13385
60e22c1e
HD
133862020-04-01 Hannes Domani <ssbssa@yahoo.de>
13387
13388 PR gdb/24789
13389 * eval.c (is_integral_or_integral_reference): New function.
13390 (evaluate_subexp_standard): Allow integer references in
13391 pointer arithmetic.
13392
e139a727
TBA
133932020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13394
13395 * remote.c (remote_target::remote_parse_stop_reply): Remove the
13396 check for no ptid in the stop reply when the target is non-stop.
13397
e0802d59
TT
133982020-04-01 Tom Tromey <tromey@adacore.com>
13399
13400 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
13401 "name" parameter to rvalue reference. Initialize m_name_holder.
13402 <lookup_name_info>: New overloads.
13403 <name>: Return gdb::string_view.
13404 <c_str>: New method.
13405 <make_ignore_params>: Update.
13406 <search_name_hash>: Update.
13407 <language_lookup_name>: Return const char *.
13408 <m_name>: Change type.
13409 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
13410 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
13411 (lookup_name_info::match_any): Update.
13412 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
13413 Update.
13414 * minsyms.c (linkage_name_str): Update.
13415 * language.c (default_symbol_name_matcher): Update.
13416 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
13417 Update.
13418 * ada-lang.c (ada_fold_name): Change parameter to string_view.
13419 (ada_lookup_name_info::ada_lookup_name_info): Update.
13420 (literal_symbol_name_matcher): Update.
13421
8c072cb6
TT
134222020-04-01 Tom Tromey <tromey@adacore.com>
13423
13424 * psymtab.c (psymtab_search_name): Remove function.
13425 (psym_lookup_symbol): Create search name and lookup name here.
13426 (lookup_partial_symbol): Remove "name" parameter; add
13427 lookup_name.
13428 (psym_expand_symtabs_for_function): Update.
13429
6f29a534
TT
134302020-03-31 Joel Jones <joelkevinjones@gmail.com>
13431
13432 PR tui/25597:
13433 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
13434
af62665e
TT
134352020-03-31 Tom Tromey <tromey@adacore.com>
13436
13437 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
13438 memcpy.
13439
d1a89da5
NC
134402020-03-30 Nelson Chu <nelson.chu@sifive.com>
13441
13442 * features/riscv/32bit-csr.xml: Regenerated.
13443 * features/riscv/64bit-csr.xml: Regenerated.
13444
d8af9068
TT
134452020-03-30 Tom Tromey <tromey@adacore.com>
13446
13447 * ada-valprint.c (print_variant_part): Update.
13448 * ada-lang.h (ada_which_variant_applies): Update.
13449 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
13450 outer_valaddr parameters; replace with "outer" value parameter.
13451 (to_fixed_variant_branch_type): Update.
13452
227c0bf4
PFC
134532020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13454
13455 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
13456 <list>. Remove inclusion of observable.h.
13457 (PPC_DEBUG_CURRENT_VERSION): Move up define.
13458 (struct arch_lwp_info): New struct.
13459 (class ppc_linux_dreg_interface): New class.
13460 (struct ppc_linux_process_info): New struct.
13461 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
13462 <low_new_clone, low_forget_process, low_prepare_to_resume>
13463 <copy_thread_dreg_state, mark_thread_stale>
13464 <mark_debug_registers_changed, register_hw_breakpoint>
13465 <clear_hw_breakpoint, register_wp, clear_wp>
13466 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
13467 <num_memory_accesses, get_trigger_type>
13468 <create_watchpoint_request, hwdebug_point_cmp>
13469 <init_arch_lwp_info, get_arch_lwp_info>
13470 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
13471 methods.
13472 <struct ptid_hash>: New inner struct.
13473 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
13474 members.
13475 (saved_dabr_value, hwdebug_info, max_slots_number)
13476 (struct hw_break_tuple, struct thread_points, ppc_threads)
13477 (have_ptrace_hwdebug_interface)
13478 (hwdebug_find_thread_points_by_tid)
13479 (hwdebug_insert_point, hwdebug_remove_point): Remove.
13480 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
13481 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
13482 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
13483 use m_dreg_interface.
13484 (hwdebug_point_cmp): Change to...
13485 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
13486 reference arguments instead of pointers.
13487 (ppc_linux_nat_target::ranged_break_num_registers): Use
13488 m_dreg_interface.
13489 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
13490 m_dreg_interface. Call register_hw_breakpoint.
13491 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
13492 m_dreg_interface. Call clear_hw_breakpoint.
13493 (get_trigger_type): Change to...
13494 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
13495 comment.
13496 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
13497 use m_dreg_interface. Call register_hw_breakpoint.
13498 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
13499 use m_dreg_interface. Call clear_hw_breakpoint.
13500 (can_use_watchpoint_cond_accel): Change to...
13501 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
13502 method. Update comment, use m_dreg_interface and
13503 m_process_info.
13504 (calculate_dvc): Change to...
13505 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
13506 m_dreg_interface.
13507 (num_memory_accesses): Change to...
13508 (ppc_linux_nat_target::num_memory_accesses): ...this method.
13509 (check_condition): Change to...
13510 (ppc_linux_nat_target::check_condition): ...this method.
13511 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
13512 comment, use m_dreg_interface.
13513 (create_watchpoint_request): Change to...
13514 (ppc_linux_nat_target::create_watchpoint_request): ...this
13515 method. Use m_dreg_interface.
13516 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
13517 m_dreg_interface. Call register_hw_breakpoint or register_wp.
13518 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
13519 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
13520 (ppc_linux_nat_target::low_forget_process)
13521 (ppc_linux_nat_target::low_new_fork)
13522 (ppc_linux_nat_target::low_new_clone)
13523 (ppc_linux_nat_target::low_delete_thread)
13524 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
13525 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
13526 only call mark_thread_stale.
13527 (ppc_linux_thread_exit): Remove.
13528 (ppc_linux_nat_target::stopped_data_address): Change to...
13529 (ppc_linux_nat_target::low_stopped_data_address): This. Add
13530 comment, use m_dreg_interface and m_thread_hw_breakpoints.
13531 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
13532 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
13533 comment. Call low_stopped_data_address.
13534 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
13535 m_dreg_interface.
13536 (ppc_linux_nat_target::masked_watch_num_registers): Use
13537 m_dreg_interface.
13538 (ppc_linux_nat_target::copy_thread_dreg_state)
13539 (ppc_linux_nat_target::mark_thread_stale)
13540 (ppc_linux_nat_target::mark_debug_registers_changed)
13541 (ppc_linux_nat_target::register_hw_breakpoint)
13542 (ppc_linux_nat_target::clear_hw_breakpoint)
13543 (ppc_linux_nat_target::register_wp)
13544 (ppc_linux_nat_target::clear_wp)
13545 (ppc_linux_nat_target::init_arch_lwp_info)
13546 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
13547 (_initialize_ppc_linux_nat): Remove observer callback.
13548
4db10d8f
PFC
135492020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13550
13551 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
13552 (ppc_linux_nat_target::auxv_parse)
13553 (ppc_linux_nat_target::read_description)
13554 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
13555 Move up.
13556
1310c1b0
PFC
135572020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13558
13559 * linux-nat.h (low_new_clone): New method.
13560 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
13561
69b037c3
SM
135622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13563
13564 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
13565 (dbx_expand_psymtab): ... this.
13566 (start_psymtab): Update.
13567 * mdebugread.c (psymtab_to_symtab_1): Rename to...
13568 (mdebug_expand_psymtab): ... this.
13569 (parse_partial_symbols): Update.
13570 (new_psymtab): Update.
13571 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
13572 (xcoff_expand_psymtab): ... this.
13573 (xcoff_start_psymtab): Update.
13574
48993951
SM
135752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13576
13577 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
13578 <expand_dependencies>: ... this.
13579 * psymtab.c (partial_symtab::read_dependencies): Rename to...
13580 (partial_symtab::expand_dependencies): ... this.
13581 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
13582 Update.
13583 (dwarf2_psymtab::expand_psymtab): Update.
13584 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13585 * mdebugread.c (psymtab_to_symtab_1): Update.
13586 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13587
3ad83046
SM
135882020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
13589
13590 * psympriv.h (discard_psymtab): Remove.
13591 * dbxread.c (dbx_end_psymtab): Update.
13592 * xcoffread.c (xcoff_end_psymtab): Update.
13593
4d1b9ab6
TT
135942020-03-28 Tom Tromey <tom@tromey.com>
13595
13596 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
13597 comment.
13598
f1749218
TT
135992020-03-28 Tom Tromey <tom@tromey.com>
13600
13601 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
13602
ebea7626
HD
136032020-03-27 Hannes Domani <ssbssa@yahoo.de>
13604
13605 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13606
a879b4d5
JB
136072020-03-26 John Baldwin <jhb@FreeBSD.org>
13608
13609 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
13610
0826b30a
TT
136112020-03-26 Tom Tromey <tom@tromey.com>
13612
13613 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
13614 (mark_common_block_symbol_computed, read_tag_string_type)
13615 (attr_to_dynamic_prop, read_subrange_type): Update.
13616 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
13617 to be methods on struct attribute.
13618 (skip_one_die, process_imported_unit_die, read_namespace_alias)
13619 (read_call_site_scope, partial_die_info::read)
13620 (partial_die_info::read, lookup_die_type, follow_die_ref):
13621 Update.
13622 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
13623 from dwarf2_get_ref_die_offset.
13624 (attribute::constant_value): New method, from
13625 dwarf2_get_attr_constant_value.
13626 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
13627 Declare method.
13628 <constant_value>: New method.
13629
2b2558bf
TT
136302020-03-26 Tom Tromey <tom@tromey.com>
13631
13632 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
13633 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
13634 (dwarf_type_encoding_name): Move to stringify.c.
13635 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
13636 * dwarf2/stringify.c: New file.
13637 * dwarf2/stringify.h: New file.
13638
eeb64781
TT
136392020-03-26 Tom Tromey <tom@tromey.com>
13640
13641 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
13642 Rewrite.
13643
a39fdb41
TT
136442020-03-26 Tom Tromey <tom@tromey.com>
13645
13646 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
13647 methods.
13648 * dwarf2/read.c (lookup_addr_base): Move to die.h.
13649 (lookup_ranges_base): Likewise.
13650 (read_cutu_die_from_dwo, read_full_die_1): Update.
13651
436c571c
TT
136522020-03-26 Tom Tromey <tom@tromey.com>
13653
13654 * dwarf2/read.c (read_import_statement, read_file_scope)
13655 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
13656 (read_lexical_block_scope, read_call_site_scope)
13657 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
13658 (handle_struct_member_die, process_structure_scope)
13659 (update_enumeration_type_from_children)
13660 (process_enumeration_scope, read_array_type, read_common_block)
13661 (read_namespace, read_module, read_subroutine_type): Update.
13662 (sibling_die): Remove.
13663
052c8bb8
TT
136642020-03-26 Tom Tromey <tom@tromey.com>
13665
13666 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
13667 (build_type_psymtabs_reader, read_structure_type)
13668 (read_enumeration_type, read_full_die_1): Update.
13669 (dwarf2_attr_no_follow): Move to die.h.
13670 * dwarf2/die.h (struct die_info) <attr>: New method.
13671
2b24b6e4
TT
136722020-03-26 Tom Tromey <tom@tromey.com>
13673
13674 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
13675 <base_address>: Now an optional.
13676 (dwarf2_find_base_address, dwarf2_rnglists_process)
13677 (dwarf2_ranges_process, fill_in_loclist_baton)
13678 (dwarf2_symbol_mark_computed): Update.
13679
c2d50fd0
TT
136802020-03-26 Tom Tromey <tom@tromey.com>
13681
13682 * dwarf2/read.c (struct die_info): Move to die.h.
13683 * dwarf2/die.h: New file.
13684
0df7ad3a
TT
136852020-03-26 Tom Tromey <tom@tromey.com>
13686
13687 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
13688 * dwarf2/read.c
13689 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13690 Move to line-header.c.
13691 (read_checked_initial_length_and_offset, read_formatted_entries):
13692 Likewise.
13693 (dwarf_decode_line_header): Split into two.
13694 * dwarf2/line-header.c
13695 (dwarf2_statement_list_fits_in_line_number_section_complaint):
13696 Move from read.c.
13697 (read_checked_initial_length_and_offset, read_formatted_entries):
13698 Likewise.
13699 (dwarf_decode_line_header): New function, split from read.c.
13700
86c0bb4c
TT
137012020-03-26 Tom Tromey <tom@tromey.com>
13702
13703 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
13704 Declare method.
13705 * dwarf2/read.c (read_attribute_value): Update.
13706 (dwarf2_per_objfile::read_line_string): Rename from
13707 read_indirect_line_string.
13708 (read_formatted_entries): Update.
13709
2ef46c2f
TT
137102020-03-26 Tom Tromey <tom@tromey.com>
13711
13712 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
13713 variable.
13714
4f9c1eda
TT
137152020-03-26 Tom Tromey <tom@tromey.com>
13716
13717 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
13718 const.
13719 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
13720 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
13721 parameter const.
13722
5a0e026f
TT
137232020-03-26 Tom Tromey <tom@tromey.com>
13724
13725 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
13726 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
13727 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
13728 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
13729
8844c11b
TT
137302020-03-26 Tom Tromey <tom@tromey.com>
13731
13732 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
13733 file_names_size, file_full_name, file_file_name>: Use const.
13734 <file_name_at, file_names>: Add const overload.
13735 * dwarf2/line-header.c (line_header::file_file_name)
13736 (line_header::file_full_name): Update.
13737
c90ec28a
TT
137382020-03-26 Tom Tromey <tom@tromey.com>
13739
13740 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
13741 (macro_start_file, consume_improper_spaces)
13742 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
13743 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
13744 (dwarf_decode_macros): Move to macro.c.
13745 * dwarf2/macro.c: New file.
13746 * dwarf2/macro.h: New file.
13747 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
13748
4f44ae6c
TT
137492020-03-26 Tom Tromey <tom@tromey.com>
13750
13751 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
13752 method.
13753 * dwarf2/section.c: New method. From
13754 read_indirect_string_at_offset_from.
13755 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
13756 (read_indirect_string_at_offset_from): Move to section.c.
13757 (read_indirect_string_at_offset): Rewrite.
13758 (read_indirect_line_string_at_offset): Remove.
13759 (read_indirect_string, read_indirect_line_string)
13760 (dwarf_decode_macro_bytes): Update.
13761
a0194fa8
TT
137622020-03-26 Tom Tromey <tom@tromey.com>
13763
13764 * dwarf2/section.h (struct dwarf2_section_info)
13765 <overload_complaint>: Declare.
13766 (dwarf2_section_buffer_overflow_complaint): Don't declare.
13767 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
13768 Rename from dwarf2_section_buffer_overflow_complaint.
13769 * dwarf2/read.c (skip_one_die, partial_die_info::read)
13770 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
13771
3d27bbdb
TT
137722020-03-26 Tom Tromey <tom@tromey.com>
13773
13774 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
13775 Declare.
13776 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
13777 Move from read.c.
13778 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
13779 to section.c.
13780
9eac9650
TT
137812020-03-26 Tom Tromey <tom@tromey.com>
13782
13783 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
13784
bf80d710
TT
137852020-03-26 Tom Tromey <tom@tromey.com>
13786
13787 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
13788 "builder".
13789 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
13790 parameter.
13791 (dwarf_decode_macros): Update.
13792
0314b390
TT
137932020-03-26 Tom Tromey <tom@tromey.com>
13794
13795 * dwarf2/read.c (read_attribute_value): Update.
13796 (read_indirect_string_from_dwz): Move to dwz.c; change into
13797 method.
13798 (dwarf_decode_macro_bytes): Update.
13799 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
13800 * dwarf2/dwz.c: New file.
13801 * Makefile.in (COMMON_SFILES): Add dwz.c.
13802
9fda78b6
TT
138032020-03-26 Tom Tromey <tom@tromey.com>
13804
13805 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
13806 * dwarf2/read.c: Add include.
13807 * dwarf2/index-write.c: Add include.
13808 * dwarf2/index-cache.c: Add include.
13809 * dwarf2/dwz.h: New file.
13810
33aa3c10
TT
138112020-03-25 Tom Tromey <tom@tromey.com>
13812
13813 * compile/compile-object-load.c (get_out_value_type): Mention
13814 correct symbol name in error message.
13815
d503b685
HD
138162020-03-25 Hannes Domani <ssbssa@yahoo.de>
13817
13818 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
13819
7b1eff95
TV
138202020-03-25 Tom de Vries <tdevries@suse.de>
13821
13822 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
13823 * symmisc.c (dump_symtab_1): Print user and includes fields.
13824 (maintenance_info_symtabs): Same.
13825
dd895392
AB
138262020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
13827
13828 PR gdb/25534
13829 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
13830 (riscv_regcache_cooked_write): New function.
13831 (riscv_push_dummy_call): Use new function.
13832 (riscv_return_value): Likewise.
13833
5ab2fbf1
SM
138342020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
13835
13836 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
13837 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
13838 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
13839 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
13840 * infrun.c (follow_fork): Likewise.
13841 (follow_fork_inferior): Likewise.
13842 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
13843 * linux-nat.h (class linux_nat_target): Likewise.
13844 * remote.c (class remote_target) <follow_fork>: Likewise.
13845 (remote_target::follow_fork): Likewise.
13846 * target-delegates.c: Re-generate.
13847 * target.c (default_follow_fork): Likewise.
13848 (target_follow_fork): Likewise.
13849 * target.h (struct target_ops) <follow_fork>: Likewise.
13850 (target_follow_fork): Likewise.
13851
a64fafb5
TV
138522020-03-24 Tom de Vries <tdevries@suse.de>
13853
13854 * psymtab.c (maintenance_info_psymtabs): Print user field.
13855
fe26d3a3
TT
138562020-03-20 Tom Tromey <tromey@adacore.com>
13857
13858 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
13859 const.
13860 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
13861 const.
13862
c884cc46
SM
138632020-03-20 Simon Marchi <simon.marchi@efficios.com>
13864
13865 * ptrace.m4: Don't check for ptrace declaration.
13866 * config.in: Re-generate.
13867 * configure: Re-generate.
13868 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
13869 not defined.
13870
1ff700c2
KR
138712020-03-20 Kamil Rytarowski <n54@gmx.com>
13872
13873 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
13874 `PTRACE_TYPE_RET'.
13875 * i386-bsd-nat.c (gdb_ptrace): Likewise.
13876 * sparc-nat.c (gdb_ptrace): Likewise.
13877 * x86-bsd-nat.c (gdb_ptrace): Likewise.
13878
f7d4f0b1
TT
138792020-03-20 Tom Tromey <tromey@adacore.com>
13880
13881 * c-exp.y (lex_one_token): Fix assert.
13882
f67210ff
TT
138832020-03-20 Tom Tromey <tromey@adacore.com>
13884
13885 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
13886 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
13887 strncpy call.
13888
1773be9e
TT
138892020-03-20 Tom Tromey <tromey@adacore.com>
13890
13891 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
13892
70304be9
TT
138932020-03-20 Tom Tromey <tromey@adacore.com>
13894
13895 * ada-valprint.c (print_variant_part): Remove parameters; switch
13896 to value-based API.
13897 (print_field_values): Likewise.
13898 (ada_val_print_struct_union): Likewise.
13899 (ada_value_print_1): Update.
13900
9faa006d
KR
139012020-03-20 Kamil Rytarowski <n54@gmx.com>
13902
13903 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
13904 nbsd_nat_target instead of inf_ptrace_target.
13905 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13906 nbsd_nat_target.
13907
4a90f062
KR
139082020-03-20 Kamil Rytarowski <n54@gmx.com>
13909
13910 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
13911 it to the ptrace call.
13912 * (store_registers): Likewise.
13913
139142020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
13915
13916 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
13917 it to the ptrace call.
13918 * (store_registers): Likewise.
13919
2d07da27
LM
139202020-03-19 Luis Machado <luis.machado@linaro.org>
13921
13922 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
13923 valid, fetch vg value from ptrace.
13924
f09db380
KR
139252020-03-19 Kamil Rytarowski <n54@gmx.com>
13926 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
13927 * inf-ptrace.c: Likewise.
13928 * (gdb_ptrace): Add.
13929 * (inf_ptrace_target::resume): Update.
13930 * (inf_ptrace_target::xfer_partial): Likewise.
13931 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
13932 * (inf_ptrace_peek_poke): Update.
13933
fcc7376e
KR
139342020-03-19 Kamil Rytarowski <n54@gmx.com>
13935
13936 * x86-bsd-nat.c (gdb_ptrace): New.
13937 * (x86bsd_dr_set): Add new argument `ptid'.
13938 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
13939 x86bsd_dr_set_addr): Update.
13940
cada5fc9
AB
139412020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13942
13943 * remote.c (remote_target::process_stop_reply): Handle events for
13944 all threads differently.
13945
19a2740f
AB
139462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13947
13948 * completer.c (completion_tracker::remove_completion): Define new
13949 function.
13950 * completer.h (completion_tracker::remove_completion): Declare new
13951 function.
13952 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
13953 when adding a C++ function symbol.
13954
724fd9ba
AB
139552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
13956
13957 * completer.c (completion_tracker::completion_hash_entry): Define
13958 new class.
13959 (advance_to_filename_complete_word_point): Call
13960 recompute_lowest_common_denominator.
13961 (completion_tracker::completion_tracker): Call discard_completions
13962 to setup the hash table.
13963 (completion_tracker::discard_completions): Allow for being called
13964 from the constructor, pass new equal function, and element deleter
13965 when constructing the hash table. Initialise new class member
13966 variables.
13967 (completion_tracker::maybe_add_completion): Remove use of
13968 m_entries_vec, and store more information into m_entries_hash.
13969 (completion_tracker::recompute_lcd_visitor): New function, most
13970 content taken from...
13971 (completion_tracker::recompute_lowest_common_denominator):
13972 ...here, this now just visits each item in the hash calling the
13973 above visitor.
13974 (completion_tracker::build_completion_result): Remove use of
13975 m_entries_vec, call recompute_lowest_common_denominator.
13976 * completer.h (completion_tracker::have_completions): Remove use
13977 of m_entries_vec.
13978 (completion_tracker::completion_hash_entry): Declare new class.
13979 (completion_tracker::recompute_lowest_common_denominator): Change
13980 function signature.
13981 (completion_tracker::recompute_lcd_visitor): Declare new function.
13982 (completion_tracker::m_entries_vec): Delete.
13983 (completion_tracker::m_entries_hash): Initialize to NULL.
13984 (completion_tracker::m_lowest_common_denominator_valid): New
13985 member variable.
13986 (completion_tracker::m_lowest_common_denominator_max_length): New
13987 member variable.
13988
5a82b8a1
KR
139892020-03-17 Kamil Rytarowski <n54@gmx.com>
13990
13991 * regformats/regdef.h: Put reg in gdb namespace.
13992
fb516a69
KR
139932020-03-17 Kamil Rytarowski <n54@gmx.com>
13994
13995 * i386-bsd-nat.c (gdb_ptrace): New.
13996 * (i386bsd_fetch_inferior_registers,
13997 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
13998 * (i386bsd_fetch_inferior_registers,
13999 i386bsd_store_inferior_registers) Use gdb_ptrace.
14000
1c0aa1fb
KR
140012020-03-17 Kamil Rytarowski <n54@gmx.com>
14002
14003 * amd64-bsd-nat.c (gdb_ptrace): New.
14004 * (amd64bsd_fetch_inferior_registers,
14005 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
14006 * (amd64bsd_fetch_inferior_registers,
14007 amd64bsd_store_inferior_registers) Use gdb_ptrace.
14008
5ccd2fb7
KR
140092020-03-17 Kamil Rytarowski <n54@gmx.com>
14010
14011 * user-regs.c (user_reg::read): Rename to...
14012 (user_reg::xread): ...this.
14013 * (append_user_reg): Rename argument `read' to `xread'.
14014 * (user_reg_add_builtin): Likewise.
14015 * (user_reg_add): Likewise.
14016 * (value_of_user_reg): Likewise.
14017
2108a63a
KR
140182020-03-17 Kamil Rytarowski <n54@gmx.com>
14019
14020 * sparc-nat.c (gdb_ptrace): New.
14021 * sparc-nat.c (sparc_fetch_inferior_registers)
14022 (sparc_store_inferior_registers) Remove obsolete comment.
14023 * sparc-nat.c (sparc_fetch_inferior_registers)
14024 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
14025 * sparc-nat.c (sparc_fetch_inferior_registers)
14026 (sparc_store_inferior_registers) Use gdb_ptrace.
14027
a225c9a8
KR
140282020-03-17 Kamil Rytarowski <n54@gmx.com>
14029
14030 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
14031 it to the ptrace call.
14032 * sh-nbsd-nat.c (store_registers): Likewise.
14033
98097623
KR
140342020-03-17 Kamil Rytarowski <n54@gmx.com>
14035
14036 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
14037 nbsd_nat_target instead of inf_ptrace_target.
14038 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14039 nbsd_nat_target.
14040
9e38d619
KR
140412020-03-17 Kamil Rytarowski <n54@gmx.com>
14042
14043 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
14044
a2ecbe9f
KR
140452020-03-17 Kamil Rytarowski <n54@gmx.com>
14046
14047 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
14048 <sys/sysctl.h>.
14049 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
14050
58990295
TV
140512020-03-17 Tom de Vries <tdevries@suse.de>
14052
14053 PR gdb/23710
14054 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
14055 fields.
14056 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
14057 fields.
14058 (process_imported_unit_die): Skip import of c++ CUs.
14059
771dd3a8
TT
140602020-03-16 Tom Tromey <tom@tromey.com>
14061
14062 * p-valprint.c (pascal_object_print_value): Initialize
14063 base_value.
14064
817a7585
AK
140652020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
14066 Shahab Vahedi <shahab@synopsys.com>
14067
14068 * Makefile.in: Add arch/arc.o
14069 * configure.tgt: Likewise.
14070 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
14071 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 14072 (arc_read_description): New function to cache target descriptions.
817a7585
AK
14073 * arc-tdep.h (arc_read_description): Add proto type.
14074 * arch/arc.c: New file.
14075 * arch/arc.h: Likewise.
14076 * features/Makefile: Replace old target descriptions with new.
14077 * features/arc-arcompact.c: Remove.
14078 * features/arc-arcompact.xml: Likewise.
14079 * features/arc-v2.c: Likewise
14080 * features/arc-v2.xml: Likewise
14081 * features/arc/aux-arcompact.xml: New file.
14082 * features/arc/aux-v2.xml: Likewise.
14083 * features/arc/core-arcompact.xml: Likewise.
14084 * features/arc/core-v2.xml: Likewise.
14085 * features/arc/aux-arcompact.c: Generate.
14086 * features/arc/aux-v2.c: Likewise.
14087 * features/arc/core-arcompact.c: Likewise.
14088 * features/arc/core-v2.c: Likewise.
14089 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
14090
67430cd0
TT
140912020-03-16 Tom Tromey <tromey@adacore.com>
14092
14093 PR gdb/25663:
14094 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
14095 putting value into bcache.
14096
30efb6c7
SM
140972020-03-16 Simon Marchi <simon.marchi@efficios.com>
14098
14099 PR gdb/21500
14100 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
14101 to...
14102 (amd64_windows_init_abi_common): ... this. Don't set size of
14103 long type.
14104 (amd64_windows_init_abi): New function.
14105 (amd64_cygwin_init_abi): New function.
14106 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
14107 the Cygwin OS ABI.
14108 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
14109 comment.
14110
8db52437
SM
141112020-03-16 Simon Marchi <simon.marchi@efficios.com>
14112
14113 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
14114 * windows-tdep.c (CYGWIN_DLL_NAME): New.
14115 (pe_import_directory_entry): New struct type.
14116 (is_linked_with_cygwin_dll): New function.
14117 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
14118 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
14119 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
14120
5982a56a
SM
141212020-03-16 Simon Marchi <simon.marchi@efficios.com>
14122
14123 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
14124 i386_cygwin_core_osabi_sniffer.
14125
7a1998df
SM
141262020-03-16 Simon Marchi <simon.marchi@efficios.com>
14127
14128 * i386-cygwin-tdep.c: Rename to...
14129 * i386-windows-tdep.c: ... this.
14130 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
14131 i386-windows-tdep.c.
14132 * configure.tgt: Likewise.
14133
053205cc
SM
141342020-03-16 Simon Marchi <simon.marchi@efficios.com>
14135
14136 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
14137 * osabi.c (gdb_osabi_names): Add "Windows".
14138 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
14139 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
14140 (i386_cygwin_core_osabi_sniffer): New function, extracted from
14141 i386_cygwin_osabi_sniffer.
14142 (_initialize_i386_cygwin_tdep): Register OS ABI
14143 GDB_OSABI_WINDOWS for i386.
14144 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
14145 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
14146 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
14147 for x86-64.
14148 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
14149 when the target matches '*-*-mingw*'.
14150
fe4b2ee6
SM
141512020-03-16 Simon Marchi <simon.marchi@efficios.com>
14152
14153 * defs.h (enum gdb_osabi): Move to...
14154 * osabi.h (enum gdb_osabi): ... here.
14155 * gdbarch.sh: Include osabi.h in gdbarch.h.
14156 * gdbarch.h: Re-generate.
14157
cb9b645d
SM
141582020-03-16 Simon Marchi <simon.marchi@efficios.com>
14159
14160 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
14161 function.
14162 (_initialize_amd64_windows_tdep): Register osabi sniffer.
14163
3293bbaf
TT
141642020-03-14 Tom Tromey <tom@tromey.com>
14165
14166 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
14167 for C++.
14168 (c_type_print_modifier): Likewise. Add "language" parameter.
14169 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
14170 (c_type_print_base_1): Update.
14171 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
14172 constants.
14173 * type-stack.c (type_stack::insert): Handle tp_atomic and
14174 tp_restrict.
14175 (type_stack::follow_type_instance_flags): Likewise.
14176 (type_stack::follow_types): Likewise. Merge type-following code.
14177 * c-exp.y (RESTRICT, ATOMIC): New tokens.
14178 (space_identifier, cv_with_space_id)
14179 (const_or_volatile_or_space_identifier_noopt)
14180 (const_or_volatile_or_space_identifier): Remove.
14181 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
14182 rules.
14183 (ptr_operator, typebase): Update.
14184 (enum token_flag) <FLAG_C>: New constant.
14185 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
14186 "_Atomic".
14187 (lex_one_token): Handle FLAG_C.
14188
154151a6
KR
141892020-03-14 Kamil Rytarowski <n54@gmx.com>
14190
14191 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
14192 it to the ptrace call.
14193 * m68k-bsd-nat.c (store_registers): Likewise.
14194
bc107784
KR
141952020-03-14 Kamil Rytarowski <n54@gmx.com>
14196
14197 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
14198 gdb_byte *.
14199 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
14200 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
14201 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
14202
01a80117
KR
142032020-03-14 Kamil Rytarowski <n54@gmx.com>
14204
14205 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
14206 nbsd_nat_target instead of inf_ptrace_target.
14207 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14208 nbsd_nat_target.
14209
f90280ca
KR
142102020-03-14 Kamil Rytarowski <n54@gmx.com>
14211
14212 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
14213 register_t.
14214
6def66f1
KR
142152020-03-14 Kamil Rytarowski <n54@gmx.com>
14216
14217 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
14218 it to the ptrace call.
14219 * alpha-bsd-nat.c (store_registers): Likewise.
14220
66eaca97
KR
142212020-03-14 Kamil Rytarowski <n54@gmx.com>
14222
14223 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
14224 includes.
14225 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
14226 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
14227 fill_fpregset): Likewise.
14228
4fed520b
KR
142292020-03-14 Kamil Rytarowski <n54@gmx.com>
14230
14231 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
14232 nbsd_nat_target instead of inf_ptrace_target.
14233 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14234 nbsd_nat_target.
14235
2190cf06
KR
142362020-03-14 Kamil Rytarowski <n54@gmx.com>
14237
14238 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
14239 register_t.
14240
75c56d3d
KR
142412020-03-14 Kamil Rytarowski <n54@gmx.com>
14242
14243 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
14244 it to the ptrace call.
14245 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
14246 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
14247 * arm-nbsd-nat.c (store_register): Likewise.
14248 * arm-nbsd-nat.c (store_regs): Likewise.
14249 * arm-nbsd-nat.c (store_fp_register): Likewise.
14250 * arm-nbsd-nat.c (store_fp_regs): Likewise.
14251
6018d381
KR
142522020-03-14 Kamil Rytarowski <n54@gmx.com>
14253
14254 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
14255 nbsd_nat_target instead of inf_ptrace_target.
14256 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
14257 nbsd_nat_target.
14258
013f99f0
KR
142592020-03-14 Kamil Rytarowski <n54@gmx.com>
14260
14261 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
14262 it to the ptrace call.
14263 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
14264
12753073
KR
142652020-03-14 Kamil Rytarowski <n54@gmx.com>
14266
6227b330
KR
14267 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
14268 it to the ptrace call.
14269 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
14270
142712020-03-14 Kamil Rytarowski <n54@gmx.com>
14272
14273 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
14274 gdb_byte *.
12753073
KR
14275 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
14276
d5be5fa4
KR
142772020-03-14 Kamil Rytarowski <n54@gmx.com>
14278
14279 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
14280 instead of inf_ptrace_target.
14281 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14282 nbsd_nat_target.
14283
8110f842
KR
142842020-03-14 Kamil Rytarowski <n54@gmx.com>
14285
14286 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14287 register_t.
14288
52feded7
KR
142892020-03-14 Kamil Rytarowski <n54@gmx.com>
14290
14291 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
14292 register_t.
14293
25567eee
KR
142942020-03-14 Kamil Rytarowski <n54@gmx.com>
14295
14296 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
14297 register_t.
14298
426a9c18
TT
142992020-03-13 Tom Tromey <tom@tromey.com>
14300
14301 * value.h (val_print): Don't declare.
14302 * valprint.h (val_print_array_elements)
14303 (val_print_scalar_formatted, generic_val_print): Don't declare.
14304 * valprint.c (generic_val_print_array): Take a struct value.
14305 (generic_val_print_ptr, generic_val_print_memberptr)
14306 (generic_val_print_bool, generic_val_print_int)
14307 (generic_val_print_char, generic_val_print_complex)
14308 (generic_val_print): Remove.
14309 (generic_value_print): Update.
14310 (do_val_print): Remove unused parameters. Don't call
14311 la_val_print.
14312 (val_print): Remove.
14313 (common_val_print): Update. Don't call value_check_printable.
14314 (val_print_scalar_formatted, val_print_array_elements): Remove.
14315 * rust-lang.c (rust_val_print): Remove.
14316 (rust_language_defn): Update.
14317 * p-valprint.c (pascal_val_print): Remove.
14318 (pascal_value_print_inner): Update.
14319 (pascal_object_print_val_fields, pascal_object_print_val):
14320 Remove.
14321 (pascal_object_print_static_field): Update.
14322 * p-lang.h (pascal_val_print): Don't declare.
14323 * p-lang.c (pascal_language_defn): Update.
14324 * opencl-lang.c (opencl_language_defn): Update.
14325 * objc-lang.c (objc_language_defn): Update.
14326 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
14327 * m2-lang.h (m2_val_print): Don't declare.
14328 * m2-lang.c (m2_language_defn): Update.
14329 * language.h (struct language_defn) <la_val_print>: Remove.
14330 * language.c (unk_lang_value_print_inner): Rename. Change
14331 argument types.
14332 (unknown_language_defn, auto_language_defn): Update.
14333 * go-valprint.c (go_val_print): Remove.
14334 * go-lang.h (go_val_print): Don't declare.
14335 * go-lang.c (go_language_defn): Update.
14336 * f-valprint.c (f_val_print): Remove.
14337 * f-lang.h (f_value_print): Don't declare.
14338 * f-lang.c (f_language_defn): Update.
14339 * d-valprint.c (d_val_print): Remove.
14340 * d-lang.h (d_value_print): Don't declare.
14341 * d-lang.c (d_language_defn): Update.
14342 * cp-valprint.c (cp_print_value_fields)
14343 (cp_print_value_fields_rtti, cp_print_value): Remove.
14344 (cp_print_static_field): Update.
14345 * c-valprint.c (c_val_print_array, c_val_print_ptr)
14346 (c_val_print_struct, c_val_print_union, c_val_print_int)
14347 (c_val_print_memberptr, c_val_print): Remove.
14348 * c-lang.h (c_val_print_array, cp_print_value_fields)
14349 (cp_print_value_fields_rtti): Don't declare.
14350 * c-lang.c (c_language_defn, cplus_language_defn)
14351 (asm_language_defn, minimal_language_defn): Update.
14352 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
14353 (ada_val_print_enum): Take a struct value.
14354 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
14355 (ada_val_print): Remove.
14356 (ada_value_print_1): Update.
14357 (printable_val_type): Remove.
14358 * ada-lang.h (ada_val_print): Don't declare.
14359 * ada-lang.c (ada_language_defn): Update.
14360
42331a1e
TT
143612020-03-13 Tom Tromey <tom@tromey.com>
14362
14363 * valprint.c (do_val_print): Update.
14364 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
14365 a struct value.
14366 (value_to_value_object_no_release): Declare.
14367 * python/py-value.c (value_to_value_object_no_release): New
14368 function.
14369 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
14370 struct value.
14371 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
14372 function.
14373 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
14374 a struct value.
14375 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
14376 Declare.
14377 (gdbscm_apply_val_pretty_printer): Take a struct value.
14378 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
14379 value.
14380 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
14381 value.
14382 * extension-priv.h (struct extension_language_ops)
14383 <apply_val_pretty_printer>: Take a struct value.
14384 * cp-valprint.c (cp_print_value): Create a struct value.
14385 (cp_print_value): Update.
14386
3a916a97
TT
143872020-03-13 Tom Tromey <tom@tromey.com>
14388
14389 * ada-valprint.c (print_field_values): Call common_val_print.
14390
b59eac37
TT
143912020-03-13 Tom Tromey <tom@tromey.com>
14392
14393 * ada-valprint.c (val_print_packed_array_elements): Remove
14394 bitoffset and val parameters. Call common_val_print.
14395 (ada_val_print_string): Remove offset, address, and original_value
14396 parameters.
14397 (ada_val_print_array): Update.
14398 (ada_value_print_array): New function.
14399 (ada_value_print_1): Call it.
14400
03371129
TT
144012020-03-13 Tom Tromey <tom@tromey.com>
14402
14403 * ada-valprint.c (ada_value_print): Use common_val_print.
14404
2e088f8b
TT
144052020-03-13 Tom Tromey <tom@tromey.com>
14406
14407 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
14408
39ef85a8
TT
144092020-03-13 Tom Tromey <tom@tromey.com>
14410
14411 * ada-valprint.c (ada_value_print_num): New function.
14412 (ada_value_print_1): Use it.
14413
b9fa6e07
TT
144142020-03-13 Tom Tromey <tom@tromey.com>
14415
14416 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
14417
416595d6
TT
144182020-03-13 Tom Tromey <tom@tromey.com>
14419
14420 * ada-valprint.c (ada_value_print_ptr): New function.
14421 (ada_value_print_1): Use it.
14422
5b5e15ec
TT
144232020-03-13 Tom Tromey <tom@tromey.com>
14424
14425 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
14426 call common_val_print.
14427 (ada_val_print_1): Update.
14428 (ada_value_print_1): New function.
14429 (ada_value_print_inner): Rewrite.
14430
fbf54e75
TT
144312020-03-13 Tom Tromey <tom@tromey.com>
14432
14433 * cp-valprint.c (cp_print_value_fields): Update.
14434 (cp_print_value): New function.
14435
64b653ca
TT
144362020-03-13 Tom Tromey <tom@tromey.com>
14437
14438 * m2-valprint.c (m2_value_print_inner): Use
14439 cp_print_value_fields.
14440 * cp-valprint.c (cp_print_value_fields): New function.
14441 * c-valprint.c (c_value_print_struct): New function.
14442 (c_value_print_inner): Use c_value_print_struct.
14443 * c-lang.h (cp_print_value_fields): Declare.
14444
6999f067
TT
144452020-03-13 Tom Tromey <tom@tromey.com>
14446
14447 * c-valprint.c (c_value_print_array): New function.
14448 (c_value_print_inner): Use it.
14449
ce80b8bd
TT
144502020-03-13 Tom Tromey <tom@tromey.com>
14451
14452 * c-valprint.c (c_value_print_memberptr): New function.
14453 (c_value_print_inner): Use it.
14454
2faac269
TT
144552020-03-13 Tom Tromey <tom@tromey.com>
14456
14457 * c-valprint.c (c_value_print_int): New function.
14458 (c_value_print_inner): Use it.
14459
da3e2c29
TT
144602020-03-13 Tom Tromey <tom@tromey.com>
14461
14462 * c-valprint.c (c_value_print_ptr): New function.
14463 (c_value_print_inner): Use it.
14464
50836231
TT
144652020-03-13 Tom Tromey <tom@tromey.com>
14466
14467 * c-valprint.c (c_value_print_inner): Rewrite.
14468
4f412b6e
TT
144692020-03-13 Tom Tromey <tom@tromey.com>
14470
14471 * valprint.c (generic_value_print_complex): New function.
14472 (generic_value_print): Use it.
14473
f5354008
TT
144742020-03-13 Tom Tromey <tom@tromey.com>
14475
14476 * valprint.c (generic_val_print_float): Don't call
14477 val_print_scalar_formatted.
14478 (generic_val_print, generic_value_print): Update.
14479
3eec3b05
TT
144802020-03-13 Tom Tromey <tom@tromey.com>
14481
14482 * valprint.c (generic_value_print_char): New function
14483 (generic_value_print): Use it.
14484
fdddfccb
TT
144852020-03-13 Tom Tromey <tom@tromey.com>
14486
14487 * valprint.c (generic_value_print_int): New function.
14488 (generic_value_print): Use it.
14489
6dde7521
TT
144902020-03-13 Tom Tromey <tom@tromey.com>
14491
14492 * valprint.c (generic_value_print_bool): New function.
14493 (generic_value_print): Use it.
14494
4112d2e6
TT
144952020-03-13 Tom Tromey <tom@tromey.com>
14496
14497 * valprint.c (generic_val_print_func): Simplify.
14498 (generic_val_print, generic_value_print): Update.
14499
65786af6
TT
145002020-03-13 Tom Tromey <tom@tromey.com>
14501
14502 * valprint.c (generic_val_print_flags): Remove.
14503 (generic_val_print, generic_value_print): Update.
14504 (val_print_type_code_flags): Add original_value parameter.
14505
40f3ce18
TT
145062020-03-13 Tom Tromey <tom@tromey.com>
14507
14508 * valprint.c (generic_val_print): Update.
14509 (generic_value_print): Update.
14510 * valprint.c (generic_val_print_enum): Don't call
14511 val_print_scalar_formatted.
14512
2a5b130b
TT
145132020-03-13 Tom Tromey <tom@tromey.com>
14514
14515 * valprint.c (generic_value_print): Call generic_value_print_ptr.
14516 * valprint.c (generic_value_print_ptr): New function.
14517
abc66ce9
TT
145182020-03-13 Tom Tromey <tom@tromey.com>
14519
14520 * valprint.c (generic_value_print): Rewrite.
14521
07a32858
TT
145222020-03-13 Tom Tromey <tom@tromey.com>
14523
14524 * p-valprint.c (pascal_object_print_value_fields)
14525 (pascal_object_print_value): New functions.
14526
64d64d3a
TT
145272020-03-13 Tom Tromey <tom@tromey.com>
14528
14529 * p-valprint.c (pascal_value_print_inner): Rewrite.
14530
6a95a1f5
TT
145312020-03-13 Tom Tromey <tom@tromey.com>
14532
14533 * f-valprint.c (f_value_print_innner): Rewrite.
14534
59fcdac6
TT
145352020-03-13 Tom Tromey <tom@tromey.com>
14536
14537 * m2-valprint.c (m2_print_unbounded_array): New overload.
14538 (m2_print_unbounded_array): Update.
14539 (m2_print_array_contents): Take a struct value.
14540 (m2_value_print_inner): Rewrite.
14541
d133c3e1
TT
145422020-03-13 Tom Tromey <tom@tromey.com>
14543
14544 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
14545 (d_value_print_inner): New function.
14546 * d-lang.h (d_value_print_inner): Declare.
14547 * d-lang.c (d_language_defn): Use d_value_print_inner.
14548
23b0f06b
TT
145492020-03-13 Tom Tromey <tom@tromey.com>
14550
14551 * go-valprint.c (go_value_print_inner): New function.
14552 * go-lang.h (go_value_print_inner): Declare.
14553 * go-lang.c (go_language_defn): Use go_value_print_inner.
14554
5f56f7cb
TT
145552020-03-13 Tom Tromey <tom@tromey.com>
14556
14557 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
14558 API.
14559 (rust_val_print): Rewrite.
14560 (rust_value_print_inner): New function, from rust_val_print.
14561 (rust_language_defn): Use rust_value_print_inner.
14562
26792ee0
TT
145632020-03-13 Tom Tromey <tom@tromey.com>
14564
14565 * ada-valprint.c (ada_value_print_inner): New function.
14566 * ada-lang.h (ada_value_print_inner): Declare.
14567 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
14568
24051bbe
TT
145692020-03-13 Tom Tromey <tom@tromey.com>
14570
14571 * f-valprint.c (f_value_print_innner): New function.
14572 * f-lang.h (f_value_print_innner): Declare.
14573 * f-lang.c (f_language_defn): Use f_value_print_innner.
14574
c0941be6
TT
145752020-03-13 Tom Tromey <tom@tromey.com>
14576
14577 * p-valprint.c (pascal_value_print_inner): New function.
14578 * p-lang.h (pascal_value_print_inner): Declare.
14579 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
14580
62c4663d
TT
145812020-03-13 Tom Tromey <tom@tromey.com>
14582
14583 * m2-valprint.c (m2_value_print_inner): New function.
14584 * m2-lang.h (m2_value_print_inner): Declare.
14585 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
14586
62182190
TT
145872020-03-13 Tom Tromey <tom@tromey.com>
14588
14589 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
14590 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
14591 * c-valprint.c (c_value_print_inner): New function.
14592 * c-lang.h (c_value_print_inner): Declare.
14593 * c-lang.c (c_language_defn, cplus_language_defn)
14594 (asm_language_defn, minimal_language_defn): Use
14595 c_value_print_inner.
14596
1e592a8a
TT
145972020-03-13 Tom Tromey <tom@tromey.com>
14598
14599 * p-valprint.c (pascal_object_print_value_fields): Now static.
14600 * p-lang.h (pascal_object_print_value_fields): Don't declare.
14601
7fe471e9
TT
146022020-03-13 Tom Tromey <tom@tromey.com>
14603
14604 * c-valprint.c (c_val_print_array): Simplify.
14605
d121c6ce
TT
146062020-03-13 Tom Tromey <tom@tromey.com>
14607
14608 * valprint.c (value_print_array_elements): New function.
14609 * valprint.h (value_print_array_elements): Declare.
14610
4dba70ee
TT
146112020-03-13 Tom Tromey <tom@tromey.com>
14612
14613 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
14614 * mips-tdep.c (mips_print_register): Use
14615 value_print_scalar_formatted.
14616
4f9ae810
TT
146172020-03-13 Tom Tromey <tom@tromey.com>
14618
14619 * valprint.h (value_print_scalar_formatted): Declare.
14620 * valprint.c (value_print_scalar_formatted): New function.
14621
156bfec9
TT
146222020-03-13 Tom Tromey <tom@tromey.com>
14623
14624 * valprint.h (generic_value_print): Declare.
14625 * valprint.c (generic_value_print): New function.
14626
2b4e573d
TT
146272020-03-13 Tom Tromey <tom@tromey.com>
14628
14629 * valprint.c (do_val_print): Call la_value_print_inner, if
14630 available.
14631 * rust-lang.c (rust_language_defn): Update.
14632 * p-lang.c (pascal_language_defn): Update.
14633 * opencl-lang.c (opencl_language_defn): Update.
14634 * objc-lang.c (objc_language_defn): Update.
14635 * m2-lang.c (m2_language_defn): Update.
14636 * language.h (struct language_defn) <la_value_print_inner>: New
14637 member.
14638 * language.c (unknown_language_defn, auto_language_defn): Update.
14639 * go-lang.c (go_language_defn): Update.
14640 * f-lang.c (f_language_defn): Update.
14641 * d-lang.c (d_language_defn): Update.
14642 * c-lang.c (c_language_defn, cplus_language_defn)
14643 (asm_language_defn, minimal_language_defn): Update.
14644 * ada-lang.c (ada_language_defn): Update.
14645
a1f6a07c
TT
146462020-03-13 Tom Tromey <tom@tromey.com>
14647
14648 * c-valprint.c (c_value_print): Use common_val_print.
14649
410cf315
TT
146502020-03-13 Tom Tromey <tom@tromey.com>
14651
14652 * cp-valprint.c (cp_print_static_field): Use common_val_print.
14653
72a45c93
TT
146542020-03-13 Tom Tromey <tom@tromey.com>
14655
14656 * f-valprint.c (f77_print_array_1, f_val_print): Use
14657 common_val_print.
14658
040f66bd
TT
146592020-03-13 Tom Tromey <tom@tromey.com>
14660
14661 * riscv-tdep.c (riscv_print_one_register_info): Use
14662 common_val_print.
14663
a6e05a6c
TT
146642020-03-13 Tom Tromey <tom@tromey.com>
14665
14666 * mi/mi-main.c (output_register): Use common_val_print.
14667
3444c526
TT
146682020-03-13 Tom Tromey <tom@tromey.com>
14669
14670 * infcmd.c (default_print_one_register_info): Use
14671 common_val_print.
14672
c2a44efe
TT
146732020-03-13 Tom Tromey <tom@tromey.com>
14674
14675 * valprint.h (common_val_print_checked): Declare.
14676 * valprint.c (common_val_print_checked): New function.
14677 * stack.c (print_frame_arg): Use common_val_print_checked.
14678
b0c26e99
TT
146792020-03-13 Tom Tromey <tom@tromey.com>
14680
14681 * valprint.c (do_val_print): New function, from val_print.
14682 (val_print): Use do_val_print.
14683 (common_val_print): Use do_val_print.
14684
ce3acbe9
TT
146852020-03-13 Tom Tromey <tom@tromey.com>
14686
14687 * valprint.c (value_print): Use scoped_value_mark.
14688
96c7f873
TV
146892020-03-13 Tom de Vries <tdevries@suse.de>
14690
14691 PR symtab/25646
14692 * psymtab.c (partial_symtab::partial_symtab): Don't set
14693 globals_offset and statics_offset. Push element onto
14694 current_global_psymbols and current_static_psymbols stacks.
14695 (concat): New function.
14696 (end_psymtab_common): Set globals_offset and statics_offset. Pop
14697 element from current_global_psymbols and current_static_psymbols
14698 stacks. Concat popped elements to global_psymbols and
14699 static_symbols.
14700 (add_psymbol_to_list): Use current_global_psymbols and
14701 current_static_psymbols stacks.
14702 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
14703 current_static_psymbols fields.
14704
6ba0a321
CB
147052020-03-12 Christian Biesinger <cbiesinger@google.com>
14706
14707 * corelow.c (sniff_core_bfd): Remove.
14708 (class core_target) <m_core_vec>: Remove.
14709 (core_target::core_target): Update.
14710 (core_file_fns): Remove.
14711 (deprecated_add_core_fns): Remove.
14712 (default_core_sniffer): Remove.
14713 (sniff_core_bfd): Remove.
14714 (default_check_format): Remove.
14715 (gdb_check_format): Remove.
14716 (core_target_open): Update.
14717 (core_target::get_core_register_section): Update.
14718 (get_core_registers_cb): Update.
14719 (core_target::fetch_registers): Update.
14720 * gdbcore.h (struct core_fns): Remove.
14721 (deprecated_add_core_fns): Remove.
14722 (default_core_sniffer): Remove.
14723 (default_check_format): Remove.
14724
227031b2
TT
147252020-03-12 Tom Tromey <tom@tromey.com>
14726
14727 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
14728 CORE_ADDR.
14729 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
14730
53807e9f
TT
147312020-03-12 Tom Tromey <tom@tromey.com>
14732
14733 * remote.c (remote_target::download_tracepoint)
14734 (remote_target::enable_tracepoint)
14735 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
14736 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
14737 sprintf_vma.
14738
64f25102
TT
147392020-03-12 Tom Tromey <tom@tromey.com>
14740
14741 * symfile-mem.c: Update CORE_ADDR size assert.
14742
272cd5a3
SM
147432020-03-12 Simon Marchi <simon.marchi@efficios.com>
14744
14745 * selftest.m4: Move to gdbsupport/.
14746 * acinclude.m4: Update path to selftest.m4.
14747
74cd3f9d
SM
147482020-03-12 Simon Marchi <simon.marchi@efficios.com>
14749
14750 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
14751 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
14752 gdbarch-selfselftests.c and selftest-arch.c.
14753 (SUBDIR_UNITTESTS_OBS): Rename to...
14754 (SELFTESTS_OBS): ... this.
14755 (COMMON_SFILES): Remove disasm-selftests.c and
14756 gdbarch-selftests.c.
14757 * configure.ac: Don't add selftest-arch.{c,o} to
14758 CONFIG_{SRCS,OBS}.
14759 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
14760 preprocessor conditions.
14761
db6878ac
SM
147622020-03-12 Simon Marchi <simon.marchi@efficios.com>
14763
14764 * configure.ac: Don't source bfd/development.sh.
14765 * selftest.m4: Modify comment.
14766 * configure: Re-generate.
14767
4d696a5c
SM
147682020-03-12 Simon Marchi <simon.marchi@efficios.com>
14769
14770 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
14771 not "true" or "false".
14772 * configure: Re-generate.
14773
8dd8e1c7
CB
147742020-03-12 Christian Biesinger <cbiesinger@google.com>
14775
14776 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
14777 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
14778 renamed to arm_nbsd_supply_gregset.
14779 (fetch_register): Update to call arm_nbsd_supply_gregset.
14780 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
14781 (arm_netbsd_nat_target::fetch_registers): Update.
14782 (fetch_elfcore_registers): Removed.
14783 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
14784 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
14785 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
14786 not require NetBSD system headers.
14787 (arm_nbsd_regset): New struct.
14788 (arm_nbsd_iterate_over_regset_sections): New function.
14789 (arm_netbsd_init_abi_common): Updated to call
14790 set_gdbarch_iterate_over_regset_sections.
14791 * arm-nbsd-tdep.h: New file.
14792
dd69bf7a
KB
147932020-03-11 Kevin Buettner <kevinb@redhat.com>
14794
14795 * symtab.c (find_pc_sect_line): Add check which prevents infinite
14796 recursion.
14797
a0761e34
SM
147982020-03-11 Simon Marchi <simon.marchi@efficios.com>
14799
14800 * configure: Re-generate.
14801
e7a82140
TT
148022020-03-11 Tom Tromey <tromey@adacore.com>
14803
14804 * ada-typeprint.c (print_choices): Fix comment.
14805
dcc050c8
AB
148062020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
14807
14808 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
14809 previous item in the list, when the list has no items.
14810
1c33af77
TV
148112020-03-11 Tom de Vries <tdevries@suse.de>
14812
14813 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
14814 PROP_LOCLIST handling code.
14815
8c95582d
AB
148162020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
14817
14818 * buildsym-legacy.c (record_line): Pass extra parameter to
14819 record_line.
14820 * buildsym.c (buildsym_compunit::record_line): Take an extra
14821 parameter, reduce duplication in the line table, and record the
14822 is_stmt flag in the line table.
14823 * buildsym.h (buildsym_compunit::record_line): Add extra
14824 parameter.
14825 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
14826 non-statement lines.
14827 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
14828 this to the symtab builder.
14829 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
14830 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
14831 through to dwarf_record_line_1.
14832 * infrun.c (process_event_stop_test): When stepping, don't stop at
14833 a non-statement instruction, and only refresh the step info when
14834 we land in the middle of a line's range. Also add an extra
14835 comment.
14836 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
14837 field.
14838 * record-btrace.c (btrace_find_line_range): Only record lines
14839 marked as is-statement.
14840 * stack.c (frame_show_address): Show the frame address if we are
14841 in a non-statement sal.
14842 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
14843 (maintenance_print_one_line_table): Print a header for the is_stmt
14844 column, and include is_stmt information in the output.
14845 * symtab.c (find_pc_sect_line): Find lines marked as statements in
14846 preference to non-statements.
14847 (find_pcs_for_symtab_line): Prefer is-statement entries.
14848 (find_line_common): Likewise.
14849 * symtab.h (struct linetable_entry): Add is_stmt field.
14850 (struct symtab_and_line): Likewise.
14851 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
14852 arranging the line table.
14853
e4003a34
TV
148542020-03-07 Tom de Vries <tdevries@suse.de>
14855
14856 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
14857 DIE.
14858
e8932576
TT
148592020-03-07 Tom Tromey <tom@tromey.com>
14860
14861 * valops.c (value_literal_complex): Remove obsolete comment.
14862 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
14863 comment.
14864
29734269
SM
148652020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
14866
14867 * infrun.h: Forward-declare thread_info.
14868 (set_step_info): Add thread_info parameter, add doc.
14869 * infrun.c (set_step_info): Add thread_info parameter, move doc
14870 to header.
14871 * infrun.c (process_event_stop_test): Pass thread to
14872 set_step_info call.
14873 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
14874 set_step_info.
14875 (prepare_one_step): Add thread_info parameter, pass it to
14876 set_step_frame and prepare_one_step (recursive) call.
14877 (step_1): Pass thread to prepare_one_step call.
14878 (step_command_fsm::should_stop): Pass thread to
14879 prepare_one_step.
14880 (until_next_fsm): Pass thread to set_step_frame call.
14881 (finish_command): Pass thread to set_step_info call.
14882
b7d64b29
HD
148832020-03-06 Hannes Domani <ssbssa@yahoo.de>
14884
14885 * windows-tdep.c (windows_solib_create_inferior_hook):
14886 Check if inferior is running.
14887
09f2921c
TV
148882020-03-06 Tom de Vries <tdevries@suse.de>
14889
14890 * NEWS: Fix "the the".
14891 * ctfread.c: Same.
14892
fd760e79
TV
148932020-03-06 Tom de Vries <tdevries@suse.de>
14894
14895 * psymtab.c (psymtab_to_symtab): Don't print "done.".
14896
20ea4a60
AB
148972020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14898
14899 * .dir-locals.el: Add a comment referencing the other copies of
14900 this file.
14901
0afbabf0
JB
149022020-03-05 John Baldwin <jhb@FreeBSD.org>
14903
14904 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
14905 psargs.
14906
842806cb
TBA
149072020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14908
14909 * .gitattributes: New file.
14910
be1e3d3e
TT
149112020-03-04 Tom Tromey <tom@tromey.com>
14912
14913 * symmisc.c (print_symbol_bcache_statistics)
14914 (print_objfile_statistics): Update.
14915 * symfile.c (allocate_symtab): Use intern.
14916 * psymtab.c (partial_symtab::partial_symtab): Use intern.
14917 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
14918 macro_cache>: Remove.
14919 <string_cache>: New member.
14920 (struct objfile) <intern>: New methods.
14921 * elfread.c (elf_symtab_read): Use intern.
14922 * dwarf2/read.c (fixup_go_packaging): Intern package name.
14923 (dwarf2_compute_name, dwarf2_physname)
14924 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
14925 names.
14926 (guess_partial_die_structure_name): Update.
14927 (partial_die_info::fixup): Intern name.
14928 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
14929 name.
14930 (dwarf2_name): Intern name. Update.
14931 * buildsym.c (buildsym_compunit::get_macro_table): Use
14932 string_cache.
14933
4e7625fd
TT
149342020-03-04 Tom Tromey <tom@tromey.com>
14935
14936 * jit.c (bfd_open_from_target_memory): Make "target" const.
14937 * corefile.c (gnutarget): Now const.
14938 * gdbcore.h (gnutarget): Now const.
14939
46f9f931
HD
149402020-03-04 Hannes Domani <ssbssa@yahoo.de>
14941
14942 * NEWS: Mention support for WOW64 processes.
14943 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
14944 (amd64_windows_segment_register_p): Remove static.
14945 (_initialize_amd64_windows_nat): Update.
14946 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
14947 * i386-windows-nat.c (context_offset): Update.
14948 (i386_mappings): Rename and remove static.
14949 (i386_windows_segment_register_p): Remove static.
14950 (_initialize_i386_windows_nat): Update.
14951 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
14952 (STATUS_WX86_SINGLE_STEP): New macro.
14953 (EnumProcessModulesEx): New macro.
14954 (Wow64SuspendThread): New macro.
14955 (Wow64GetThreadContext): New macro.
14956 (Wow64SetThreadContext): New macro.
14957 (Wow64GetThreadSelectorEntry): New macro.
14958 (windows_set_context_register_offsets): Add static.
14959 (windows_set_segment_register_p): Likewise.
14960 (windows_add_thread): Adapt for WOW64 processes.
14961 (windows_fetch_one_register): Likewise.
14962 (windows_nat_target::fetch_registers): Likewise.
14963 (windows_store_one_register): Likewise.
14964 (display_selector): Likewise.
14965 (display_selectors): Likewise.
14966 (handle_exception): Likewise.
14967 (windows_continue): Likewise.
14968 (windows_nat_target::resume): Likewise.
14969 (windows_add_all_dlls): Likewise.
14970 (do_initial_windows_stuff): Likewise.
14971 (windows_nat_target::attach): Likewise.
14972 (windows_get_exec_module_filename): Likewise.
14973 (windows_nat_target::create_inferior): Likewise.
14974 (windows_xfer_siginfo): Likewise.
14975 (_initialize_loadable): Initialize Wow64SuspendThread,
14976 Wow64GetThreadContext, Wow64SetThreadContext,
14977 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
14978 * windows-nat.h (windows_set_context_register_offsets):
14979 Remove declaration.
14980 (windows_set_segment_register_p): Likewise.
14981 (i386_windows_segment_register_p): Add declaration.
14982 (amd64_windows_segment_register_p): Likewise.
14983
440cf44e
LM
149842020-03-04 Luis Machado <luis.machado@linaro.org>
14985
14986 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
14987 in "info registers" for AArch64/ARM.
14988
14989 The change caused "info registers" to not print GPR's.
14990
14991 gdb/ChangeLog:
14992
14993 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
14994
14995 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
14996 when reg->group is empty and reggroup is not.
14997
1009d92f
TT
149982020-03-03 Tom Tromey <tromey@adacore.com>
14999
15000 * dwarf2/frame.c (struct dwarf2_frame_cache)
15001 <checked_tailcall_bottom, entry_cfa_sp_offset,
15002 entry_cfa_sp_offset_p>: Remove members.
15003 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
15004 (dwarf2_frame_prev_register): Don't call
15005 dwarf2_tailcall_sniffer_first.
15006 (dwarf2_append_unwinders): Don't append tailcall unwinder.
15007 * frame-unwind.c (add_unwinder): New fuction.
15008 (frame_unwind_init): Use it. Add tailcall unwinder.
15009
5e5d66b6
AB
150102020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
15011 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15012
15013 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
15014 value should be printed as true.
15015
584cf46d
HD
150162020-03-03 Hannes Domani <ssbssa@yahoo.de>
15017
15018 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
15019 (windows_init_abi): Set and use windows_so_ops.
15020
7b973adc
SDJ
150212020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
15022
15023 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
15024 when verifying if dealing with a convenience variable.
15025
bb7b70ab
LM
150262020-03-03 Luis Machado <luis.machado@linaro.org>
15027
15028 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
15029
9822cb57
SM
150302020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
15031
15032 * infrun.c (gdbarch_supports_displaced_stepping): New.
15033 (use_displaced_stepping): Break up conditions in smaller pieces.
15034 Use gdbarch_supports_displaced_stepping.
15035 (displaced_step_prepare_throw): Use
15036 gdbarch_supports_displaced_stepping.
15037
63e163f2
AB
150382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
15039
15040 * NEWS: Mention new behaviour of the history filename.
15041 * top.c (write_history_p): Add comment.
15042 (show_write_history_p): Add header comment, give a different
15043 message when history writing is on, but the history filename is
15044 empty.
15045 (history_filename): Add comment.
15046 (history_filename_empty): New function.
15047 (show_history_filename): Add header comment, give a different
15048 message when the filename is empty.
15049 (init_history): Compare history_filename against nullptr, and only
15050 read history if the filename is not empty.
15051 (set_history_filename): Add header comment, and only make
15052 non-empty filenames absolute.
15053 (init_main): Make the filename argument to 'set history filename'
15054 optional.
15055
81b86b97
CB
150562020-03-02 Christian Biesinger <cbiesinger@google.com>
15057
15058 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
15059 (arm_supply_vfpregset): ...this, and update to use VFP registers.
15060 (fetch_fp_register): Update.
15061 (fetch_fp_regs): Update.
15062 (store_fp_register): Update.
15063 (store_fp_regs): Update.
15064 (arm_netbsd_nat_target::read_description): New function.
15065 (fetch_elfcore_registers): Update.
15066
24ed6739
AB
150672020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
15068
15069 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
15070 general_thread if the stop reply is missing a thread-id.
15071 (remote_target::process_stop_reply): Use the first non-exited
15072 thread if the target didn't pass a thread-id.
15073 * infrun.c (do_target_wait): Move call to
15074 switch_to_inferior_no_thread to ....
15075 (do_target_wait_1): ... here.
15076
a84bb2a0
JT
150772020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
15078
15079 * debuginfod-support.c: Include defs.h first.
15080
658dadf0
TV
150812020-02-28 Tom de Vries <tdevries@suse.de>
15082
15083 * symfile.c (set_initial_language): Use default language for lookup.
15084
4ebe4877
SM
150852020-02-28 Simon Marchi <simon.marchi@efficios.com>
15086
15087 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
15088 reader variable, pass `this` to read_cutu_die_from_dwo.
15089
e5da1139
AM
150902020-02-27 Aaron Merey <amerey@redhat.com>
15091
15092 * source.c (open_source_file): Check for nullptr when computing
15093 srcpath.
15094
317f7127
TT
150952020-02-27 Tom Tromey <tromey@adacore.com>
15096
15097 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
15098 member.
15099 (dwarf2_add_field): Don't update nfields.
15100 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
15101
3104d9ee
AB
151022020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
15103
15104 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
15105 abs.
15106
b83470bf
TT
151072020-02-26 Tom Tromey <tom@tromey.com>
15108
15109 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
15110 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
15111 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
15112 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
15113 per_cu_data.
15114
edfe0a0c
TT
151152020-02-26 Tom Tromey <tom@tromey.com>
15116
15117 * dwarf2/index-write.c (psym_index_map): Change type.
15118 (add_address_entry_worker, write_one_signatured_type)
15119 (recursively_count_psymbols, recursively_write_psymbols)
15120 (class debug_names, psyms_seen_size, write_gdbindex)
15121 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
15122
0d79cdc4
AM
151232020-02-26 Aaron Merey <amerey@redhat.com>
15124
15125 * Makefile.in: Handle optional debuginfod support.
15126 * NEWS: Update.
15127 * README: Add --with-debuginfod summary.
15128 * config.in: Regenerate.
15129 * configure: Regenerate.
15130 * configure.ac: Handle optional debuginfod support.
15131 * debuginfod-support.c: debuginfod helper functions.
15132 * debuginfod-support.h: Ditto.
15133 * doc/gdb.texinfo: Add --with-debuginfod to configure options
15134 summary.
15135 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
15136 when a dwz file cannot be found.
15137 * elfread.c (elf_symfile_read): Query debuginfod servers when a
15138 debuginfo file cannot be found.
15139 * source.c (open_source_file): Query debuginfod servers when a
15140 source file cannot be found.
15141 * top.c (print_gdb_configuration): Include
15142 --{with,without}-debuginfod in the output.
15143
b65ce565
JG
151442020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
15145
15146 * thread.c (thr_try_catch_cmd): Print thread name.
15147
d4c9a4f8
SM
151482020-02-26 Simon Marchi <simon.marchi@efficios.com>
15149
15150 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
15151 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15152 dwarf2_fetch_die_type_sect_off): Move to...
15153 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
15154 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15155 dwarf2_fetch_die_type_sect_off): ... here.
15156 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
15157 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
15158 dwarf2_fetch_die_type_sect_off): Move doc to header file.
15159
0dce4280
TV
151602020-02-26 Tom de Vries <tdevries@suse.de>
15161
15162 PR gdb/25603
15163 * symfile.c (set_initial_language): Exit-early if
15164 language_mode == language_mode_manual.
15165
450a1bfc
SM
151662020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15167
15168 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
15169 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
15170 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
15171
9e80cfa1
AB
151722020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
15173
15174 * gdbtypes.c (create_array_type_with_stride): Handle negative
15175 array strides.
15176 * valarith.c (value_subscripted_rvalue): Likewise.
15177
09624f1f
LM
151782020-02-25 Luis Machado <luis.machado@linaro.org>
15179
15180 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
15181
8cb5117c
SM
151822020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
15183
15184 * loc.h (dwarf2_get_die_type): Move to...
15185 * read.h (dwarf2_get_die_type): ... here.
15186 * read.c (dwarf2_get_die_type): Move doc to header.
15187
c325c44e
JB
151882020-02-25 Joel Brobecker <brobecker@adacore.com>
15189
15190 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
15191 'gnulib/Makefile.in' to the list.
15192
4ac93832
TT
151932020-02-24 Tom Tromey <tom@tromey.com>
15194
15195 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
15196 Remove.
15197 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
15198 XOBNEWVEC.
15199
197400e8
TT
152002020-02-24 Tom Tromey <tom@tromey.com>
15201
15202 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
15203 New method.
15204 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
15205 (dw2_do_instantiate_symtab, dw2_get_file_names)
15206 (build_type_psymtab_dependencies, load_full_type_unit): Update.
15207
76935768
TT
152082020-02-24 Tom Tromey <tom@tromey.com>
15209
15210 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
15211 make_scoped_restore.
15212 (dwarf2_psymtab::read_symtab): Don't clear
15213 reading_partial_symbols.
15214
a88ef40d
TV
152152020-02-24 Tom de Vries <tdevries@suse.de>
15216
15217 PR gdb/25592
15218 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
15219
c9af6521
TV
152202020-02-24 Tom de Vries <tdevries@suse.de>
15221
15222 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
15223 commands layout next/prev/regs.
15224
5707a07a
TT
152252020-02-22 Tom Tromey <tom@tromey.com>
15226
15227 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
15228 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
15229
3b0fb49e
TT
152302020-02-22 Tom Tromey <tom@tromey.com>
15231
15232 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
15233
283be8bf
TT
152342020-02-22 Tom Tromey <tom@tromey.com>
15235
15236 * tui/tui-win.c (_initialize_tui_win): Add usage text.
15237 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
15238 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
15239 * tui/tui.c (_initialize_tui): Add usage text.
15240
ca793b96
TT
152412020-02-22 Tom Tromey <tom@tromey.com>
15242
15243 * tui/tui-win.c (tui_set_focus_command)
15244 (tui_set_win_height_command): Use error_no_arg.
15245 (_initialize_tui_win): Update help text.
15246 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
15247
432b5c40
TT
152482020-02-22 Tom Tromey <tom@tromey.com>
15249
15250 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
15251 * tui/tui-disasm.h (struct tui_disasm_window)
15252 <display_start_addr>: Declare.
15253 * tui/tui-source.h (struct tui_source_window)
15254 <display_start_addr>: Declare.
15255 * tui/tui-winsource.h (struct tui_source_window_base)
15256 <show_source_line, display_start_addr>: New methods.
15257 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
15258 Rename and move to protected section.
15259 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
15260 (tui_source_window_base::do_erase_source_content): Update.
15261 (tui_source_window_base::show_source_line): Now a method.
15262 (tui_source_window_base::show_source_content)
15263 (tui_source_window_base::tui_source_window_base)
15264 (tui_source_window_base::rerender)
15265 (tui_source_window_base::refill)
15266 (tui_source_window_base::do_scroll_horizontal)
15267 (tui_source_window_base::set_is_exec_point_at)
15268 (tui_source_window_base::update_breakpoint_info)
15269 (tui_source_window_base::update_exec_info): Update.
15270 * tui/tui-source.c (tui_source_window::set_contents)
15271 (tui_source_window::showing_source_p)
15272 (tui_source_window::do_scroll_vertical)
15273 (tui_source_window::location_matches_p)
15274 (tui_source_window::line_is_displayed): Update.
15275 (tui_source_window::display_start_addr): New method.
15276 * tui/tui-disasm.c (tui_disasm_window::set_contents)
15277 (tui_disasm_window::do_scroll_vertical)
15278 (tui_disasm_window::location_matches_p): Update.
15279 (tui_disasm_window::display_start_addr): New method.
15280
01b1af32
TT
152812020-02-22 Tom Tromey <tom@tromey.com>
15282
15283 * NEWS: Add entry for gdb.register_window_type.
15284 * tui/tui-layout.h (window_factory): New typedef.
15285 (tui_register_window): Declare.
15286 * tui/tui-layout.c (saved_tui_windows): New global.
15287 (tui_apply_current_layout): Use it.
15288 (tui_register_window): New function.
15289 * python/python.c (do_start_initialization): Call
15290 gdbpy_initialize_tui.
15291 (python_GdbMethods): Add "register_window_type" function.
15292 * python/python-internal.h (gdbpy_register_tui_window)
15293 (gdbpy_initialize_tui): Declare.
15294 * python/py-tui.c: New file.
15295 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
15296
fc96d20b
TT
152972020-02-22 Tom Tromey <tom@tromey.com>
15298
15299 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
15300
935c78c0
TT
153012020-02-22 Tom Tromey <tom@tromey.com>
15302
15303 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
15304 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
15305 * tui/tui-data.c (tui_set_win_with_focus): Remove.
15306 (tui_set_win_focus_to): Move from tui-win.c.
15307
0240c8f1
TT
153082020-02-22 Tom Tromey <tom@tromey.com>
15309
15310 * tui/tui-layout.c (make_standard_window, get_locator_window): New
15311 functions.
15312 (known_window_types): New global.
15313 (tui_get_window_by_name): Reimplement.
15314 (initialize_known_windows): New function.
15315 (validate_window_name): Rewrite.
15316 (_initialize_tui_layout): Call initialize_known_windows.
15317
fdb01f0c
TT
153182020-02-22 Tom Tromey <tom@tromey.com>
15319
15320 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
15321 Remove constants.
15322 * tui/tui-winsource.h (struct tui_source_window_base)
15323 <tui_source_window_base>: Remove parameter.
15324 * tui/tui-winsource.c
15325 (tui_source_window_base::tui_source_window_base): Remove
15326 parameter.
15327 (tui_source_window_base::refill): Update.
15328 * tui/tui-stack.h (struct tui_locator_window)
15329 <tui_locator_window>: Update.
15330 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
15331 Default the constructor.
15332 * tui/tui-regs.h (struct tui_data_item_window)
15333 <tui_data_item_window>: Default the constructor.
15334 (struct tui_data_window) <tui_data_window>: Likewise.
15335 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
15336 Default the constructor.
15337 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
15338 Default the constructor.
15339 <type>: Remove.
15340 (struct tui_win_info) <tui_win_info>: Default the constructor.
15341 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
15342 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
15343 Default the constructor.
15344
865a5aec
TT
153452020-02-22 Tom Tromey <tom@tromey.com>
15346
15347 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
15348 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
15349 * tui/tui-win.c (tui_resize_all): Don't call
15350 tui_delete_invisible_windows.
15351 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
15352 done.
15353 (tui_set_layout): Update.
15354 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
15355 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
15356 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
15357
e098d18c
TT
153582020-02-22 Tom Tromey <tom@tromey.com>
15359
15360 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
15361 correctly.
15362
eb9c8874
TT
153632020-02-22 Tom Tromey <tom@tromey.com>
15364
15365 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
15366
7eed1a8e
TT
153672020-02-22 Tom Tromey <tom@tromey.com>
15368
15369 * tui/tui-winsource.h (struct tui_source_window_iterator)
15370 <inner_iterator>: New etytypedef.
15371 <tui_source_window_iterator>: Take "end" parameter.
15372 <tui_source_window_iterator>: Take iterator.
15373 <operator*, advance>: Update.
15374 <m_iter>: Change type.
15375 <m_end>: New field.
15376 (struct tui_source_windows) <begin, end>: Update.
15377 * tui/tui-layout.c (tui_windows): New global.
15378 (tui_apply_current_layout): Clear tui_windows.
15379 (tui_layout_window::apply): Update tui_windows.
15380 * tui/tui-data.h (tui_windows): Declare.
15381 (all_tui_windows): Now inline function.
15382 (class tui_window_iterator, struct all_tui_windows): Remove.
15383
7c043ba6
TT
153842020-02-22 Tom Tromey <tom@tromey.com>
15385
15386 PR tui/17850:
15387 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
15388 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
15389 "height" argument.
15390 (class tui_layout_window) <get_sizes>: Likewise.
15391 (class tui_layout_split) <tui_layout_split>: Add "vertical"
15392 argument.
15393 <get_sizes>: Add "height" argument.
15394 <m_vertical>: New field.
15395 * tui/tui-layout.c (tui_layout_split::clone): Update.
15396 (tui_layout_split::get_sizes): Add "height" argument.
15397 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
15398 (tui_new_layout_command): Parse "-horizontal".
15399 (_initialize_tui_layout): Update help string.
15400 (tui_layout_split::specification): Add "-horizontal" when needed.
15401 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
15402 argument.
15403 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
15404 New methods.
15405
6bc56648
TT
154062020-02-22 Tom Tromey <tom@tromey.com>
15407
15408 * tui/tui-layout.h (enum tui_adjust_result): New.
15409 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
15410 (class tui_layout_window) <adjust_size>: Return
15411 tui_adjust_result. Rewrite.
15412 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
15413 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
15414
c22fef7e
TT
154152020-02-22 Tom Tromey <tom@tromey.com>
15416
15417 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
15418 parameter and return types.
15419 (class tui_layout_base) <specification>: Add "depth".
15420 (class tui_layout_window) <specification>: Add "depth".
15421 (class tui_layout_split) <specification>: Add "depth".
15422 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
15423 and return types.
15424 (tui_new_layout_command): Parse sub-layouts.
15425 (_initialize_tui_layout): Update help string.
15426 (tui_layout_window::specification): Add "depth".
15427 (add_layout_command): Update.
15428
ee325b61
TT
154292020-02-22 Tom Tromey <tom@tromey.com>
15430
15431 * NEWS: Add "tui new-layout" item.
15432 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
15433 Add new-layout command to help text.
15434 (validate_window_name): New function.
15435 (tui_new_layout_command): New function.
15436 (_initialize_tui_layout): Register "new-layout".
15437 (tui_layout_window::specification): New method.
15438 (tui_layout_window::specification): New method.
15439 * tui/tui-layout.h (class tui_layout_base) <specification>: New
15440 method.
15441 (class tui_layout_window) <specification>: New method.
15442 (class tui_layout_split) <specification>: New method.
15443
416eb92d
TT
154442020-02-22 Tom Tromey <tom@tromey.com>
15445
15446 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
15447 * tui/tui-win.c (window_name_completer): Update comment.
15448 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
15449 Declare method.
15450 (class tui_layout_window) <replace_window>: Likewise.
15451 (class tui_layout_split) <replace_window>: Likewise.
15452 (tui_set_layout): Don't declare.
15453 (tui_set_initial_layout): Declare function.
15454 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
15455 (asm_regs_layout): New globals.
15456 (tui_current_layout, show_layout): Remove.
15457 (tui_set_layout, tui_add_win_to_layout): Rewrite.
15458 (find_layout, tui_apply_layout): New function.
15459 (layout_completer): Remove.
15460 (tui_next_layout): Reimplement.
15461 (tui_next_layout_command): New function.
15462 (tui_set_initial_layout, tui_prev_layout_command): New functions.
15463 (tui_regs_layout): Reimplement.
15464 (tui_regs_layout_command): New function.
15465 (extract_display_start_addr): Rewrite.
15466 (next_layout, prev_layout): Remove.
15467 (tui_layout_window::replace_window): New method.
15468 (tui_layout_split::replace_window): New method.
15469 (destroy_layout): New function.
15470 (layout_list): New global.
15471 (add_layout_command): New function.
15472 (initialize_layouts): Update.
15473 (tui_layout_command): New function.
15474 (_initialize_tui_layout): Install "layout" commands.
15475 * tui/tui-data.h (enum tui_layout_type): Remove.
15476 (tui_current_layout): Don't declare.
15477
0dbc2fc7
TT
154782020-02-22 Tom Tromey <tom@tromey.com>
15479
15480 * tui/tui-regs.c (tui_reg_layout): Remove.
15481 (tui_reg_command): Use tui_regs_layout.
15482 * tui/tui-layout.h (tui_reg_command): Declare.
15483 * tui/tui-layout.c (tui_reg_command): New function.
15484
5afe342e
TT
154852020-02-22 Tom Tromey <tom@tromey.com>
15486
15487 * tui/tui.c (tui_rl_delete_other_windows): Call
15488 tui_remove_some_windows.
15489 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
15490 Declare method.
15491 (class tui_layout_window) <remove_windows>: New method.
15492 (class tui_layout_split) <remove_windows>: Declare.
15493 (tui_remove_some_windows): Declare.
15494 * tui/tui-layout.c (tui_remove_some_windows): New function.
15495 (tui_layout_split::remove_windows): New method.
15496
427326a8
TT
154972020-02-22 Tom Tromey <tom@tromey.com>
15498
15499 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
15500 * tui/tui-layout.h (tui_next_layout): Declare.
15501 * tui/tui-layout.c (tui_next_layout): New function.
15502
3fe12b6d
TT
155032020-02-22 Tom Tromey <tom@tromey.com>
15504
15505 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
15506 correct coordinates.
15507
59b8b5d2
TT
155082020-02-22 Tom Tromey <tom@tromey.com>
15509
15510 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
15511 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
15512 DATA_WIN case.
15513
2a3d458b
TT
155142020-02-22 Tom Tromey <tom@tromey.com>
15515
15516 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
15517 TUI_DISASM_WIN, not tui_win_list.
15518
3f0cbb04
TT
155192020-02-22 Tom Tromey <tom@tromey.com>
15520
15521 * valprint.c (generic_val_print_enum_1)
15522 (val_print_type_code_flags): Style member names.
15523 * rust-lang.c (val_print_struct, rust_print_enum)
15524 (rust_print_struct_def, rust_internal_print_type): Style member
15525 names.
15526 * p-valprint.c (pascal_object_print_value_fields): Style member
15527 names. Only call fprintf_symbol_filtered for static members.
15528 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
15529 * f-valprint.c (f_val_print): Style member names.
15530 * f-typeprint.c (f_type_print_base): Style member names.
15531 * cp-valprint.c (cp_print_value_fields): Style member names. Only
15532 call fprintf_symbol_filtered for static members.
15533 (cp_print_class_member): Style member names.
15534 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
15535 member names.
15536 * ada-valprint.c (ada_print_scalar): Style enum names.
15537 (ada_val_print_enum): Likewise.
15538 * ada-typeprint.c (print_enum_type): Style enum names.
15539
d4d947ae
TT
155402020-02-21 Tom Tromey <tom@tromey.com>
15541
15542 * psympriv.h (struct partial_symtab): Update comment.
15543
e94e944b
TT
155442020-02-21 Tom Tromey <tromey@adacore.com>
15545
15546 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
15547 type is CORE_ADDR.
15548
1eb73179
TV
155492020-02-21 Tom de Vries <tdevries@suse.de>
15550
15551 PR gdb/25534
15552 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
15553 if dependencies[i]->user != NULL.
15554
4f180d53
AT
155552020-02-21 Ali Tamur <tamur@google.com>
15556
15557 * dwarf2/read.c (dwarf2_name): Add null check.
15558
22b6cd70
TT
155592020-02-20 Tom Tromey <tom@tromey.com>
15560
15561 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
15562 ">=", in binary search.
15563 (dwarf2_find_containing_comp_unit): New overload.
15564 (run_test): New self-test.
15565 (_initialize_dwarf2_read): Register new test.
15566
bd0cf5a6
NC
155672020-02-20 Nelson Chu <nelson.chu@sifive.com>
15568
15569 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
15570 * riscv-tdep.h: Likewise.
15571 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
15572 rv32-only CSR.
15573 * features/riscv/64bit-csr.xml: Regenerated.
15574
3f702acd
SDJ
155752020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15576 Tom Tromey <tom@tromey.com>
15577
15578 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
15579 of 'fputc_unfiltered'.
15580 (putchar_unfiltered): Call 'fputc_unfiltered'.
15581 (fputc_unfiltered): Call 'fputs_unfiltered'.
15582
d13c7322
AB
155832020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
15584
15585 * config.in: Regenerate.
15586 * configure: Regenerate.
15587 * configure.ac: Add --with-python-libdir option.
15588 * main.c: Use WITH_PYTHON_LIBDIR.
15589
869d8950
TT
155902020-02-19 Tom Tromey <tom@tromey.com>
15591
15592 * symtab.c (general_symbol_info::compute_and_set_names): Use
15593 obstack_strndup. Simplify call to symbol_set_demangled_name.
15594
298e9637
SM
155952020-02-19 Simon Marchi <simon.marchi@efficios.com>
15596
15597 * dwarf2/read.c (allocate_signatured_type_table,
15598 allocate_dwo_unit_table, allocate_type_unit_groups_table,
15599 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
15600 Remove objfile parameter, update all callers.
15601
08410482
DE
156022020-02-19 Doug Evans <dje@google.com>
15603
15604 PR rust/25535
15605 * rust-lang.c (rust_print_enum): Apply embedded_offset to
15606 rust_enum_variant calculation.
15607
dfdeeca1
TT
156082020-02-19 Tom Tromey <tromey@adacore.com>
15609
15610 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
15611
2ef5453b
TT
156122020-02-19 Tom Tromey <tromey@adacore.com>
15613
15614 * ada-lang.c (cache_symbol): Use obstack_strdup.
15615
9f1528a1
AB
156162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15617
15618 * configure: Regenerate.
15619
d3c22fa8
TT
156202020-02-19 Tom Tromey <tromey@adacore.com>
15621
15622 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
15623 NULL check.
15624
bf84f706
MR
156252020-02-19 Maciej W. Rozycki <macro@wdc.com>
15626
15627 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
15628
d1c9b20f
AB
156292020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
15630
15631 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
15632 if GDBSERVER is not defined.
15633 (riscv_tdesc_cache): Likewise, also store const target_desc.
15634 (STATIC_IN_GDB): Define.
15635 (riscv_create_target_description): Update declaration with
15636 STATIC_IN_GDB.
15637 (riscv_lookup_target_description): New function, only define if
15638 GDBSERVER is not defined.
15639 * arch/riscv.h (riscv_create_target_description): Declare only
15640 when GDBSERVER is defined.
15641 (riscv_lookup_target_description): New declaration when GDBSERVER
15642 is not defined.
15643 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
15644 (riscv_linux_read_features): ...this, and return
15645 riscv_gdbarch_features instead of target_desc.
15646 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
15647 (riscv_linux_read_description): Rename to...
15648 (riscv_linux_read_features): ...this.
15649 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15650 Update to use riscv_gdbarch_features and
15651 riscv_lookup_target_description.
15652 * riscv-tdep.c (riscv_find_default_target_description): Use
15653 riscv_lookup_target_description instead of
15654 riscv_create_target_description.
15655
373d7ac0
SM
156562020-02-18 Simon Marchi <simon.marchi@efficios.com>
15657
15658 * valprint.c (generic_val_print_enum_1): When printing a flag
15659 enum with value 0 and there is no enumerator with value 0, print
15660 just "0" instead of "(unknown: 0x0)".
15661
b29a2df0
SM
156622020-02-18 Simon Marchi <simon.marchi@efficios.com>
15663
15664 * valprint.c (generic_val_print_enum_1): Print unknown part of
15665 flag enum in hex.
15666
6740f0cc
SM
156672020-02-18 Simon Marchi <simon.marchi@efficios.com>
15668
15669 * dwarf2/read.c (update_enumeration_type_from_children): Allow
15670 flag enums to contain duplicate enumerators.
15671 * valprint.c (generic_val_print_enum_1): Update comment.
15672
edd45eb0
SM
156732020-02-18 Simon Marchi <simon.marchi@efficios.com>
15674
15675 * dwarf2/read.c: Include "count-one-bits.h".
15676 (update_enumeration_type_from_children): If an enumerator has
15677 multiple bits set, don't treat the enumeration as a "flag enum".
15678 * valprint.c (generic_val_print_enum_1): Assert that enumerators
15679 of flag enums have 0 or 1 bit set.
15680
6d0cf446
BE
156812020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
15682
15683 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
15684 conversion.
15685 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15686 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15687 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15688 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15689 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15690
7001c1b7
SM
156912020-02-18 Simon Marchi <simon.marchi@efficios.com>
15692
15693 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
15694
fdb61c6c
SM
156952020-02-14 Simon Marchi <simon.marchi@efficios.com>
15696
15697 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
15698 displaced_step_closure_up.
15699 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15700 (struct displaced_step_closure_up):
15701 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15702 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15703 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
15704 Likewise.
15705 * gdbarch.sh (displaced_step_copy_insn): Likewise.
15706 * gdbarch.c, gdbarch.h: Re-generate.
15707 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
15708 displaced_step_closure_up.
15709 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15710 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15711 * infrun.h (displaced_step_closure_up): New type alias.
15712 (struct displaced_step_inferior_state) <step_closure>: Change
15713 type to displaced_step_closure_up.
15714 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
15715 displaced_step_closure_up.
15716 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15717
a4a38eb4
TT
157182020-02-14 Tom Tromey <tom@tromey.com>
15719
15720 * minidebug.c (gnu_debug_key): New global.
15721 (find_separate_debug_file_in_section): Use it.
15722
e8217e61
SM
157232020-02-14 Simon Marchi <simon.marchi@efficios.com>
15724
15725 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
15726 std::unique_ptr.
15727 * gdbarch.c: Re-generate.
15728 * gdbarch.h: Re-generate.
15729 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
15730 change.
15731 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
15732 type to std::unique_ptr.
15733 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
15734 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
15735 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
15736 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15737 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
15738 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
15739 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
15740 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
15741 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
15742
d8d83535
SM
157432020-02-14 Simon Marchi <simon.marchi@efficios.com>
15744
15745 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
15746 std::unique_ptr.
15747 (displaced_step_clear): Rename to...
15748 (displaced_step_reset): ... this. Just call displaced->reset ().
15749 (displaced_step_clear_cleanup): Rename to...
15750 (displaced_step_reset_cleanup): ... this.
15751 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
15752 (displaced_step_fixup): Likewise.
15753 (resume_1): Likewise.
15754 (handle_inferior_event): Restore child's memory before calling
15755 displaced_step_fixup on the parent.
15756 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
15757 to std::unique_ptr.
15758 <step_closure>: Change type to std::unique_ptr.
15759
5f661e03
SM
157602020-02-14 Simon Marchi <simon.marchi@efficios.com>
15761
15762 * arm-tdep.c: Include count-one-bits.h.
15763 (cleanup_block_store_pc): Use count_one_bits.
15764 (cleanup_block_load_pc): Use count_one_bits.
15765 (arm_copy_block_xfer): Use count_one_bits.
15766 (thumb2_copy_block_xfer): Use count_one_bits.
15767 (thumb_copy_pop_pc_16bit): Use count_one_bits.
15768 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
15769 (thumb_get_next_pcs_raw): Use count_one_bits.
15770 (arm_get_next_pcs_raw): Use count_one_bits_l.
15771 * arch/arm.c (bitcount): Remove.
15772 * arch/arm.h (bitcount): Remove.
15773
8084e579
TT
157742020-02-14 Tom Tromey <tromey@adacore.com>
15775
15776 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
15777 Update.
15778 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
15779 * dwarf2/loc.c (call_site_find_chain_1): Return
15780 unique_xmalloc_ptr.
15781 (call_site_find_chain): Likewise.
15782
258bf0ee
RB
157832020-02-14 Richard Biener <rguenther@suse.de>
15784
15785 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
15786 on expression with division operators.
15787
f98a8458
AKS
157882020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15789
15790 * MAINTAINERS (Write After Approval): Adding myself.
15791
d1437c0e
TT
157922020-02-12 Tom Tromey <tom@tromey.com>
15793
15794 * event-loop.c (event_data, gdb_event, event_handler_func):
15795 Remove.
15796
3d4560f7
TT
157972020-02-12 Tom Tromey <tom@tromey.com>
15798
15799 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
15800 (dwarf2_frame_objfile_data): Add comment.
15801 (find_comp_unit, set_comp_unit): New functions.
15802 (dwarf2_frame_find_fde): Use find_comp_unit.
15803 (dwarf2_build_frame_info): Use set_comp_unit.
15804
21982304
TT
158052020-02-12 Tom Tromey <tom@tromey.com>
15806
15807 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
15808 (comp_unit): Don't initialize objfile.
15809 (execute_cfa_program): Add text_offset parameter.
15810 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
15811 (dwarf2_frame_cache): Update.
15812 (dwarf2_build_frame_info): Don't set "objfile" member.
15813
4debb237
TT
158142020-02-12 Tom Tromey <tom@tromey.com>
15815
15816 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
15817 (decode_frame_entry): Likewise.
15818 (dwarf2_build_frame_info): Update.
15819
0d404d44
TT
158202020-02-12 Tom Tromey <tom@tromey.com>
15821
15822 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
15823 (decode_frame_entry_1): Use the comp_unit obstack.
15824
a7a3ae5c
TT
158252020-02-12 Tom Tromey <tom@tromey.com>
15826
15827 * dwarf2/frame.c (struct comp_unit): Add initializers and
15828 constructor.
15829 (dwarf2_frame_objfile_data): Store a comp_unit.
15830 (dwarf2_frame_find_fde): Update.
15831 (dwarf2_build_frame_info): Use "new".
15832
a9d65418
TT
158332020-02-12 Tom Tromey <tom@tromey.com>
15834
15835 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
15836 (dwarf2_fde_table): Typedef for std::vector.
15837 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
15838 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
15839 (decode_frame_entry): Update.
15840 (dwarf2_build_frame_info): Use "new".
15841
7559c217
CB
158422020-02-12 Christian Biesinger <cbiesinger@google.com>
15843
15844 * arm-tdep.c (arm_gdbarch_init): Update.
15845 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
15846 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
15847 have_neon, is_m>: Change to bool.
15848
aeefc73c
CB
158492020-02-12 Christian Biesinger <cbiesinger@google.com>
15850
15851 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
15852
d27b8e5f
TT
158532020-02-12 Tom Tromey <tom@tromey.com>
15854
15855 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
15856
cd5900f3
HD
158572020-02-12 Hannes Domani <ssbssa@yahoo.de>
15858
15859 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
15860 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
15861
f056b22b
TT
158622020-02-11 Tom Tromey <tom@tromey.com>
15863
15864 * psymtab.h: Update comment.
15865
f92ff6b5
TT
158662020-02-11 Tom Tromey <tom@tromey.com>
15867
15868 * gdb_obstack.h (struct auto_obstack): Use
15869 DISABLE_COPY_AND_ASSIGN.
15870
3fd6912b
TT
158712020-02-11 Tom Tromey <tom@tromey.com>
15872
15873 * dwarf2/frame.h (struct objfile): Don't forward declare.
15874
69ed9b74
CB
158752020-02-11 Christian Biesinger <cbiesinger@google.com>
15876
15877 * cris-tdep.c (cris_supply_gregset): Change signature to match
15878 what struct regset expects.
15879 (cris_regset): New struct.
15880 (fetch_core_registers): Remove.
15881 (cris_iterate_over_regset_sections): New function.
15882 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
15883 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
15884
bda874f6
CB
158852020-02-11 Christian Biesinger <cbiesinger@google.com>
15886
15887 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
15888 registers.
15889
754e1564
CB
158902020-02-11 Christian Biesinger <cbiesinger@google.com>
15891
15892 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
15893
8ddd8e0e
SM
158942020-02-11 Simon Marchi <simon.marchi@efficios.com>
15895
15896 * configure: Re-generate.
15897
898e7f60
SM
158982020-02-11 Simon Marchi <simon.marchi@efficios.com>
15899
15900 * configure: Re-generate.
15901
58df732b
SM
159022020-02-11 Simon Marchi <simon.marchi@efficios.com>
15903
15904 * acinclude: Update warning.m4 path.
15905 * warning.m4: Move to gdbsupport.
15906
da5bd37e
TT
159072020-02-11 Tom Tromey <tromey@adacore.com>
15908
15909 * remote.c (remote_console_output): Update.
15910 * printcmd.c (printf_command): Update.
15911 * event-loop.c (gdb_wait_for_event): Update.
15912 * linux-nat.c (sigchld_handler): Update.
15913 * remote-sim.c (gdb_os_write_stdout): Update.
15914 (gdb_os_flush_stdout): Update.
15915 (gdb_os_flush_stderr): Update.
15916 (gdb_os_write_stderr): Update.
15917 * exceptions.c (print_exception): Update.
15918 * remote-fileio.c (remote_fileio_func_read): Update.
15919 (remote_fileio_func_write): Update.
15920 * tui/tui.c (tui_enable): Update.
15921 * tui/tui-interp.c (tui_interp::init): Update.
15922 * utils.c (init_page_info): Update.
15923 (putchar_unfiltered, fputc_unfiltered): Update.
15924 (gdb_flush): Update.
15925 (emit_style_escape): Update.
15926 (flush_wrap_buffer, fputs_maybe_filtered): Update.
15927 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
15928 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
15929 (stderr_file::write): Update.
15930 (stderr_file::puts): Update.
15931 * ui-file.h (ui_file_isatty, ui_file_write)
15932 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
15933 (ui_file_puts): Don't declare.
15934
85f0dd3c
TV
159352020-02-10 Tom de Vries <tdevries@suse.de>
15936
15937 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
15938 sentinel to char *.
15939
2e927613
TV
159402020-02-09 Tom de Vries <tdevries@suse.de>
15941
15942 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
15943 filename if it matches "<artificial>".
15944
6bafc845
HD
159452020-02-09 Hannes Domani <ssbssa@yahoo.de>
15946
15947 * windows-tdep.c (struct enum_value_name): New struct.
15948 (create_enum): New function.
15949 (windows_get_siginfo_type): Create and use enum types.
15950
7928d571
HD
159512020-02-09 Hannes Domani <ssbssa@yahoo.de>
15952
15953 * NEWS: Mention $_siginfo support for Windows.
15954 * windows-nat.c (handle_exception): Set siginfo_er.
15955 (windows_nat_target::mourn_inferior): Reset siginfo_er.
15956 (windows_xfer_siginfo): New function.
15957 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
15958 * windows-tdep.c (struct windows_gdbarch_data): New struct.
15959 (init_windows_gdbarch_data): New function.
15960 (get_windows_gdbarch_data): New function.
15961 (windows_get_siginfo_type): New function.
15962 (windows_init_abi): Register windows_get_siginfo_type.
15963 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
15964
6751ebae
TT
159652020-02-08 Tom Tromey <tom@tromey.com>
15966
15967 * dwarf2/read.c (class cutu_reader) <cutu_reader,
15968 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
15969 <keep>: Declare method.
15970 <m_keep>: Remove member.
15971 <~cutu_reader>: Remove.
15972 (cutu_reader::init_tu_and_read_dwo_dies): Update.
15973 (cutu_reader::cutu_reader): Update.
15974 (cutu_reader::keep): Rename from ~cutu_reader.
15975 (process_psymtab_comp_unit, build_type_psymtabs_1)
15976 (process_skeletonless_type_unit, load_partial_comp_unit)
15977 (load_full_comp_unit, dwarf2_read_addr_index)
15978 (read_signatured_type): Update.
15979
135f5437
TT
159802020-02-08 Tom Tromey <tom@tromey.com>
15981
15982 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
15983 "want_partial_unit" parameter.
15984 (process_psymtab_comp_unit): Change want_partial_unit to bool.
15985 Inline check for DW_TAG_partial_unit.
15986 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
15987
9f66ff1c
TT
159882020-02-08 Tom Tromey <tom@tromey.com>
15989
15990 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
15991 read.c.
15992 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
15993 read.c.
15994
c8a7a66f
TT
159952020-02-08 Tom Tromey <tom@tromey.com>
15996
15997 * dwarf2/read.c (read_address): Move to comp-unit.c.
15998 (dwarf2_rnglists_process, dwarf2_ranges_process)
15999 (read_attribute_value, dwarf_decode_lines_1)
16000 (var_decode_location, decode_locdesc): Update.
16001 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
16002 read.c. Remove "cu" parameter.
16003 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
16004 method.
16005
8266302d
TT
160062020-02-08 Tom Tromey <tom@tromey.com>
16007
16008 * dwarf2/read.c (read_attribute_value, read_indirect_string)
16009 (read_indirect_line_string): Update.
16010 * dwarf2/comp-unit.c (read_offset): Remove.
16011 (read_comp_unit_head): Update.
16012 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
16013 method.
16014 (read_offset): Don't declare.
16015
4057dfde
TT
160162020-02-08 Tom Tromey <tom@tromey.com>
16017
16018 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
16019 * dwarf2/read.c (struct comp_unit_head): Move to
16020 dwarf2/comp-unit.h.
16021 (enum class rcuh_kind): Move to comp-unit.h.
16022 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
16023 (read_comp_unit_head, error_check_comp_unit_head)
16024 (read_and_check_comp_unit_head): Move to comp-unit.c.
16025 (read_offset, dwarf_unit_type_name): Likewise.
16026 (create_debug_type_hash_table, read_cutu_die_from_dwo)
16027 (cutu_reader::cutu_reader, read_call_site_scope)
16028 (find_partial_die, follow_die_offset): Update.
16029 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
16030
24aa364d
TT
160312020-02-08 Tom Tromey <tom@tromey.com>
16032
16033 * dwarf2/read.c (read_offset_1): Move to leb.c.
16034 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
16035 (dwarf_decode_macro_bytes): Update.
16036 * dwarf2/leb.c (read_offset): Rename; move from read.c.
16037 * dwarf2/leb.h (read_offset): Declare.
16038
2c7d5afc
TT
160392020-02-08 Tom Tromey <tom@tromey.com>
16040
16041 * dwarf2/read.c (dwarf2_section_size): Remove.
16042 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
16043 Update.
16044 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
16045
4075cb26
TT
160462020-02-08 Tom Tromey <tom@tromey.com>
16047
16048 * dwarf2/read.c (read_initial_length): Move to leb.c.
16049 * dwarf2/leb.h (read_initial_length): Declare.
16050 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
16051 handle_nonstd parameter.
16052 * dwarf2/frame.c (read_initial_length): Remove.
16053 (decode_frame_entry_1): Update.
16054
09ba997f
TT
160552020-02-08 Tom Tromey <tom@tromey.com>
16056
16057 * dwarf2/loc.c (dwarf2_find_location_expression)
16058 (dwarf_evaluate_loc_desc::get_tls_address)
16059 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16060 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
16061 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
16062 (dwarf2_compile_property_to_c)
16063 (dwarf2_loc_desc_get_symbol_read_needs)
16064 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
16065 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
16066 (loclist_describe_location, loclist_tracepoint_var_ref)
16067 (loclist_generate_c_location): Update.
16068 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
16069 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
16070 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
16071 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
16072 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
16073 (dwarf2_per_cu_data::addr_size)
16074 (dwarf2_per_cu_data::ref_addr_size)
16075 (dwarf2_per_cu_data::text_offset)
16076 (dwarf2_per_cu_data::addr_type): Now methods.
16077 (per_cu_header_read_in): Make per_cu "const".
16078 (dwarf2_version): Remove.
16079 (dwarf2_per_cu_data::int_type): Now a method.
16080 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
16081 (set_die_type, read_array_type, read_subrange_index_type)
16082 (read_tag_string_type, read_subrange_type): Update.
16083 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
16084 offset_size, ref_addr_size, text_offset, addr_type, version,
16085 objfile, int_type, addr_sized_int_type>: Declare methods.
16086
96c738c0
TT
160872020-02-08 Tom Tromey <tom@tromey.com>
16088
16089 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
16090 Move earlier.
16091
8fdd972c
TT
160922020-02-08 Tom Tromey <tom@tromey.com>
16093
16094 * dwarf2/read.h (dwarf_line_debug): Declare.
16095 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
16096 * dwarf2/read.c: Move line_header code to new files.
16097 (dwarf_line_debug): No longer static.
16098 * dwarf2/line-header.c: New file.
16099 * dwarf2/line-header.h: New file.
16100
03075812
TT
161012020-02-08 Tom Tromey <tom@tromey.com>
16102
16103 * dwarf2/read.c (struct line_header) <file_full_name,
16104 file_file_name>: Return unique_xmalloc_ptr.
16105 (line_header::file_file_name): Update.
16106 (line_header::file_full_name): Update.
16107 (dw2_get_file_names_reader): Update.
16108 (macro_start_file): Update.
16109
bb822404
TT
161102020-02-08 Tom Tromey <tom@tromey.com>
16111
16112 * dwarf2/read.c (struct line_header) <file_full_name,
16113 file_file_name>: Declare methods.
16114 (dw2_get_file_names_reader): Update.
16115 (file_file_name): Now a method.
16116 (file_full_name): Likewise.
16117 (macro_start_file): Update.
16118
009b64fc
TT
161192020-02-08 Tom Tromey <tom@tromey.com>
16120
16121 * dwarf2/read.c (dwarf_always_disassemble)
16122 (show_dwarf_always_disassemble): Move to loc.c.
16123 (_initialize_dwarf2_read): Move "always-disassemble" registration
16124 to loc.c.
16125 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
16126 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
16127 static.
16128 (show_dwarf_always_disassemble): Move from read.c.
16129 (_initialize_dwarf2loc): Move always-disassemble from read.c.
16130
5895093f
TT
161312020-02-08 Tom Tromey <tom@tromey.com>
16132
16133 * dwarf2/read.c (~dwarf2_per_objfile): Update.
16134 (create_quick_file_names_table): Return htab_up.
16135 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
16136 Update.
16137 * dwarf2/read.h (struct dwarf2_per_objfile)
16138 <quick_file_names_table>: Now htab_up.
16139
b3b32279
TT
161402020-02-08 Tom Tromey <tom@tromey.com>
16141
16142 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
16143
1d33d811
TT
161442020-02-08 Tom Tromey <tom@tromey.com>
16145
16146 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
16147 Rewrite.
16148 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
16149 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
16150 (abbrev_table::abbrev_table): No longer inline.
16151 (ABBREV_HASH_SIZE): Remove.
16152 (abbrev_table::m_abbrevs): Now an htab_up.
16153
86de1d91
TT
161542020-02-08 Tom Tromey <tom@tromey.com>
16155
16156 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
16157 (cutu_reader): Update.
16158 (build_type_psymtabs_1): Update.
16159 * dwarf2/abbrev.c (abbrev_table::read): Rename.
16160 (abbrev_table::alloc_abbrev): Update.
16161 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
16162 (abbrev_table::read): New static method, renamed from
16163 abbrev_table_read_table.
16164 (abbrev_table::alloc_abbrev)
16165 (abbrev_table::add_abbrev): Now private.
16166 (abbrev_table::abbrev_table): Now private.
16167 (abbrev_table::m_abbrev_obstack): Now private. Rename.
16168
0335378b
TT
161692020-02-08 Tom Tromey <tom@tromey.com>
16170
16171 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
16172 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
16173 htab_up.
16174
48b490f2
TT
161752020-02-08 Tom Tromey <tom@tromey.com>
16176
16177 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
16178 htab_up.
16179 (lookup_dwo_unit_in_dwp): Update.
16180 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
16181 on obstack.
16182
bc68fb19
TT
161832020-02-08 Tom Tromey <tom@tromey.com>
16184
16185 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
16186 obstack.
16187
d15acc42
TT
161882020-02-08 Tom Tromey <tom@tromey.com>
16189
16190 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
16191 line_header_hash.
16192 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
16193 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
16194 Change type to htab_up.
16195
eaa5fa8b
TT
161962020-02-08 Tom Tromey <tom@tromey.com>
16197
16198 * dwarf2/read.c (allocate_type_unit_groups_table): Return
16199 htab_up. Don't allocate on obstack.
16200 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
16201 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
16202 Change type to htab_up.
16203
b0b6a987
TT
162042020-02-08 Tom Tromey <tom@tromey.com>
16205
16206 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
16207 Change type to htab_up.
16208 * dwarf2/read.c (create_signatured_type_table_from_index)
16209 (create_signatured_type_table_from_debug_names)
16210 (create_all_type_units, add_type_unit)
16211 (lookup_dwo_signatured_type, lookup_signatured_type)
16212 (process_skeletonless_type_unit): Update.
16213 (create_debug_type_hash_table, create_debug_types_hash_table):
16214 Change type of types_htab.
16215 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
16216 htab_up. Don't allocate on obstack.
16217 (create_cus_hash_table): Change type of cus_htab parameter.
16218 (struct dwo_file) <cus, tus>: Now htab_up.
16219 (lookup_dwo_signatured_type, lookup_dwo_cutu)
16220 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
16221 (queue_and_load_all_dwo_tus): Update.
16222 * dwarf2/index-write.c (write_gdbindex): Update.
16223 (write_debug_names): Update.
16224
39856def
TT
162252020-02-08 Tom Tromey <tom@tromey.com>
16226
16227 * dwarf2/read.h (struct dwarf2_queue_item): Move from
16228 dwarf2/read.c. Remove "next" member. Add constructor ntad
16229 destructor.
16230 (struct dwarf2_per_objfile) <queue>: New member.
16231 * dwarf2/read.c (struct dwarf2_queue_item): Move to
16232 dwarf2/read.h.
16233 (dwarf2_queue, dwarf2_queue_tail): Remove.
16234 (class dwarf2_queue_guard): Add parameter to constructor. Use
16235 DISABLE_COPY_AND_ASSIGN.
16236 <m_per_objfile>: New member.
16237 <~dwarf2_queue_guard>: Rewrite.
16238 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
16239 Update.
16240 (~dwarf2_queue_item): New.
16241
3e225074
TT
162422020-02-08 Tom Tromey <tom@tromey.com>
16243
16244 * dwarf2/read.c (struct die_info) <has_children>: New member.
16245 (dw2_get_file_names_reader): Remove has_children.
16246 (dw2_get_file_names): Update.
16247 (read_cutu_die_from_dwo): Remove has_children.
16248 (cutu_reader::init_tu_and_read_dwo_dies)
16249 (cutu_reader::cutu_reader): Update.
16250 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
16251 Remove has_children.
16252 (build_type_psymtabs_1, process_skeletonless_type_unit)
16253 (load_partial_comp_unit, load_full_comp_unit): Update.
16254 (create_dwo_cu_reader): Remove has_children.
16255 (create_cus_hash_table, read_die_and_children): Update.
16256 (read_full_die_1,read_full_die): Remove has_children.
16257 (read_signatured_type): Update.
16258 (class cutu_reader) <has_children>: Remove.
16259
82ca8957
TT
162602020-02-08 Tom Tromey <tom@tromey.com>
16261
16262 * dwarf2/expr.c: Rename from dwarf2expr.c.
16263 * dwarf2/expr.h: Rename from dwarf2expr.h.
16264 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
16265 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
16266 * dwarf2/frame.c: Rename from dwarf2-frame.c.
16267 * dwarf2/frame.h: Rename from dwarf2-frame.h.
16268 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
16269 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
16270 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
16271 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
16272 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
16273 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
16274 * dwarf2/loc.c: Rename from dwarf2loc.c.
16275 * dwarf2/loc.h: Rename from dwarf2loc.h.
16276 * dwarf2/read.c: Rename from dwarf2read.c.
16277 * dwarf2/read.h: Rename from dwarf2read.h.
16278 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
16279 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
16280 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
16281 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
16282 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
16283 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
16284 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
16285 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
16286 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
16287 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
16288 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
16289 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
16290 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
16291 Update.
16292 * Makefile.in (COMMON_SFILES): Update.
16293 (HFILES_NO_SRCDIR): Update.
16294
9e35d499
TT
162952020-02-08 Tom Tromey <tom@tromey.com>
16296
16297 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
16298 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
16299
1eba2311
TT
163002020-02-08 Tom Tromey <tom@tromey.com>
16301
16302 * dwarf2read.h (struct die_info): Don't declare.
16303
e41c2da2
TT
163042020-02-08 Tom Tromey <tom@tromey.com>
16305
16306 * dwarf2read.h (die_info_ptr): Remove typedef.
16307
4fc6c0d5
TT
163082020-02-08 Tom Tromey <tom@tromey.com>
16309
16310 * dwarf2read.c (read_call_site_scope)
16311 (handle_data_member_location, dwarf2_add_member_fn)
16312 (mark_common_block_symbol_computed, read_common_block)
16313 (attr_to_dynamic_prop, partial_die_info::read)
16314 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
16315 (dwarf2_symbol_mark_computed, set_die_type): Update.
16316 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
16317 method.
16318 (attr_form_is_block): Don't declare.
16319 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
16320
cd6c91b4
TT
163212020-02-08 Tom Tromey <tom@tromey.com>
16322
16323 * dwarf2read.c (dwarf2_find_base_address, )
16324 (read_call_site_scope, rust_containing_type)
16325 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
16326 (handle_data_member_location, dwarf2_add_member_fn)
16327 (get_alignment, read_structure_type, process_structure_scope)
16328 (mark_common_block_symbol_computed, read_common_block)
16329 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
16330 (partial_die_info::read, read_attribute_value, new_symbol)
16331 (lookup_die_type, dwarf2_get_ref_die_offset)
16332 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
16333 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
16334 (dwarf2_symbol_mark_computed): Update.
16335 * dwarf2/attribute.h (struct attribute) <value_as_address,
16336 form_is_section_offset, form_is_constant, form_is_ref>: Declare
16337 methods.
16338 (value_as_address, attr_form_is_section_offset)
16339 (attr_form_is_constant, attr_form_is_ref): Don't declare.
16340 * dwarf2/attribute.c (attribute::value_as_address)
16341 (attribute::form_is_section_offset, attribute::form_is_constant)
16342 (attribute::form_is_ref): Now methods.
16343
162dce55
TT
163442020-02-08 Tom Tromey <tom@tromey.com>
16345
16346 * dwarf2read.c (struct attribute, DW_STRING)
16347 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
16348 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
16349 (attr_form_is_block, attr_form_is_section_offset)
16350 (attr_form_is_constant, attr_form_is_ref): Move.
16351 * dwarf2/attribute.h: New file.
16352 * dwarf2/attribute.c: New file, from dwarf2read.c.
16353 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
16354
3054dd54
TT
163552020-02-08 Tom Tromey <tom@tromey.com>
16356
16357 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
16358 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
16359 Move.
16360 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
16361 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
16362 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
16363 abbrev.c.
16364 * dwarf2/abbrev.h: New file.
16365 * dwarf2/abbrev.c: New file, from dwarf2read.c.
16366 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
16367
96b79293
TT
163682020-02-08 Tom Tromey <tom@tromey.com>
16369
16370 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
16371 (dwarf2_section_size, dwarf2_get_section_info)
16372 (create_signatured_type_table_from_debug_names)
16373 (create_addrmap_from_aranges, read_debug_names_from_section)
16374 (get_gdb_index_contents_from_section, read_comp_unit_head)
16375 (error_check_comp_unit_head, read_abbrev_offset)
16376 (create_debug_type_hash_table, init_cu_die_reader)
16377 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
16378 (read_comp_units_from_section, create_cus_hash_table)
16379 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
16380 (create_dwp_v2_section, dwarf2_rnglists_process)
16381 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
16382 (abbrev_table_read_table, read_indirect_string_at_offset_from)
16383 (read_indirect_string_from_dwz, read_addr_index_1)
16384 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
16385 (dwarf_decode_macro_bytes, dwarf_decode_macros)
16386 (fill_in_loclist_baton): Update.
16387 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
16388 get_containing_section, get_bfd_owner, get_bfd_section,
16389 get_file_name, get_id, get_flags, empty, read>: Declare methods.
16390 (dwarf2_read_section, get_section_name, get_section_file_name)
16391 (get_containing_section, get_section_bfd_owner)
16392 (get_section_bfd_section, get_section_name, get_section_file_name)
16393 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
16394 declare.
16395 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
16396 (dwarf2_section_info::get_bfd_owner)
16397 (dwarf2_section_info::get_bfd_section)
16398 (dwarf2_section_info::get_name)
16399 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
16400 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
16401 (dwarf2_section_info::read): Now methods.
16402 * dwarf-index-write.c (class debug_names): Update.
16403
2c86cff9
TT
164042020-02-08 Tom Tromey <tom@tromey.com>
16405
16406 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
16407 Move to dwarf2/section.h.
16408 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
16409 (get_section_bfd_section, get_section_name)
16410 (get_section_file_name, get_section_id, get_section_flags)
16411 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
16412 dwarf2/section.c.
16413 * dwarf2/section.h: New file.
16414 * dwarf2/section.c: New file, from dwarf2read.c.
16415 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
16416
f4382c45
TT
164172020-02-08 Tom Tromey <tom@tromey.com>
16418
16419 * dwarf2read.h (read_unsigned_leb128): Don't declare.
16420 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
16421 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
16422 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
16423 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
16424 * dwarf2/leb.h: New file, from dwarf2read.c.
16425 * dwarf2/leb.c: New file, from dwarf2read.c.
16426 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
16427 Remove.
16428 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
16429 (COMMON_SFILES): Add dwarf2/leb.c.
16430
01840b7a
JB
164312020-02-08 Joel Brobecker <brobecker@adacore.com>
16432
16433 GDB 9.1 released.
16434
dfcb27e4
IB
164352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16436
16437 PR gdb/25190:
aac66a4c
SM
16438 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
16439 * gdb/remote.c (remote_console_output): Update.
16440 * gdb/ui-file.c (fputs_unfiltered): Rename to...
16441 (ui_file_puts): ...this.
16442 * gdb/ui-file.h (ui_file_puts): Add declaration.
16443 * gdb/utils.c (emit_style_escape): Update.
16444 (flush_wrap_buffer): Update.
16445 (fputs_maybe_filtered): Update.
16446 (fputs_unfiltered): Add function.
dfcb27e4 16447
faa17681
IB
164482020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
16449
aac66a4c
SM
16450 * gdb/event-loop.c (gdb_wait_for_event): Update.
16451 * gdb/printcmd.c (printf_command): Update.
16452 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
16453 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
16454 (gdb_os_flush_stderr): Update.
16455 * gdb/remote.c (remote_console_output): Update.
16456 * gdb/ui-file.c (gdb_flush): Rename to...
16457 (ui_file_flush): ...this.
16458 (stderr_file::write): Update.
16459 (stderr_file::puts): Update.
16460 * gdb/ui-file.h (gdb_flush): Rename to...
16461 (ui_file_flush): ...this.
16462 * gdb/utils.c (gdb_flush): Add function.
16463 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 16464
5abbbe1d
TT
164652020-02-07 Tom Tromey <tromey@adacore.com>
16466
16467 PR breakpoints/24915:
16468 * source.c (find_and_open_source): Do not check basenames_may_differ.
16469
919adfe8
TT
164702020-02-07 Tom Tromey <tom@tromey.com>
16471
16472 * README: Update gdbserver documentation.
16473 * gdbserver: Move to top level.
16474 * configure.tgt (build_gdbserver): Remove.
16475 * configure.ac: Remove --enable-gdbserver.
16476 * configure: Rebuild.
16477 * Makefile.in (distclean): Don't mention gdbserver.
16478
1d5d29e7
SV
164792020-02-06 Shahab Vahedi <shahab@synopsys.com>
16480
16481 * source-cache.c (source_cache::ensure): Surround
16482 get_plain_source_lines with a try/catch.
16483 (source_cache::get_line_charpos): Get rid of try/catch
16484 and only check for the return value of "ensure".
16485 * tui/tui-source.c (tui_source_window::set_contents):
16486 Simplify "nlines" calculation.
16487
6eb1129c
SV
164882020-02-06 Shahab Vahedi <shahab@synopsys.com>
16489
16490 * MAINTAINERS (Write After Approval): Add myself.
16491
c6a42d11
CB
164922020-02-05 Christian Biesinger <cbiesinger@google.com>
16493
16494 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
16495 function call.
16496
c8ecdda6
CB
164972020-02-05 Christian Biesinger <cbiesinger@google.com>
16498
16499 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
16500
f6480e70
MR
165012020-02-05 Maciej W. Rozycki <macro@wdc.com>
16502
16503 * nat/riscv-linux-tdesc.h: New file.
16504 * nat/riscv-linux-tdesc.c: New file, taking code from...
16505 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
16506 ... here.
16507 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
16508 NATDEPFILES.
16509
dcc9fbc6
AB
165102020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
16511
16512 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
16513 we don't set the fake simulator ptid to the null_ptid.
16514
719546c4
SM
165152020-02-03 Simon Marchi <simon.marchi@efficios.com>
16516
16517 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
16518 * gdbthread.h (class thread_info) <resumed>: Likewise.
16519 * infrun.c (resume_1): Likewise.
16520 (proceed): Likewise.
16521 (infrun_thread_stop_requested): Likewise.
16522 (stop_all_threads): Likewise.
16523 (handle_inferior_event): Likewise.
16524 (restart_threads): Likewise.
16525 (finish_step_over): Likewise.
16526 (keep_going_stepped_thread): Likewise.
16527 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
16528 (linux_handle_extended_wait): Likewise.
16529 * record-btrace.c (get_thread_current_frame_id): Likewise.
16530 * record-full.c (record_full_wait_1): Likewise.
16531 * remote.c (remote_target::process_initial_stop_replies): Likewise.
16532 * target.c (target_resume): Likewise.
16533 * thread.c (set_running_thread): Likewise.
16534
e409c542
AKS
165352020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
16536
16537 * f-valprint.c (f77_print_array_1): Changed datatype of index
16538 variable to LONGEST from int to enable it to contain bound
16539 values correctly.
16540
ee98c0da
MR
165412020-02-03 Maciej W. Rozycki <macro@wdc.com>
16542
16543 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
16544 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
16545 offsets according to FLEN determined.
16546 (riscv_linux_nat_target::read_description): Determine FLEN
16547 dynamically.
16548 (riscv_linux_nat_target::fetch_registers): Size regset buffer
16549 according to FLEN determined.
16550 (riscv_linux_nat_target::store_registers): Likewise.
16551
aa66aac4
SV
165522020-02-01 Shahab Vahedi <shahab@synopsys.com>
16553
16554 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
16555 when reg->group is empty and reggroup is not.
16556
fd9faca8
TT
165572020-01-31 Tom Tromey <tromey@adacore.com>
16558
16559 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
16560 Call beneath target's mourn_inferior after unpushing.
16561
42330a68
AB
165622020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16563
16564 PR tui/9765
16565 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
16566 have enough lines to fill the screen, still return the lowest
16567 address we found.
16568
7a27a45b
AB
165692020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
16570
16571 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
16572 '-', '<', and '>' commands.
16573
c47f70e2
PA
165742020-01-29 Pedro Alves <palves@redhat.com>
16575 Sergio Durigan Junior <sergiodj@redhat.com>
16576
16577 * infcmd.c (construct_inferior_arguments): Assert that
16578 'argc' is greater than 0.
16579
5133a315
LM
165802020-01-29 Luis Machado <luis.machado@linaro.org>
16581
16582 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
16583 (BRK_INSN_MASK): Define to 0xd4200000.
16584 (aarch64_program_breakpoint_here_p): New function.
16585 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
16586 * arch-utils.c (default_program_breakpoint_here_p): Moved from
16587 breakpoint.c.
16588 * arch-utils.h (default_program_breakpoint_here_p): Moved from
16589 breakpoint.h
16590 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
16591 call gdbarch_program_breakpoint_here_p.
16592 (program_breakpoint_here): Moved to arch-utils.c, renamed to
16593 default_program_breakpoint_here_p, changed return type to bool and
16594 simplified.
16595 * breakpoint.h (program_breakpoint_here): Moved prototype to
16596 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
16597 return type to bool.
16598 * gdbarch.c: Regenerate.
16599 * gdbarch.h: Regenerate.
16600 * gdbarch.sh (program_breakpoint_here_p): New method.
16601 * infrun.c (handle_signal_stop): Call
16602 gdbarch_program_breakpoint_here_p.
16603
168f8c6b
TT
166042020-01-26 Tom Tromey <tom@tromey.com>
16605
16606 * ctfread.c (struct ctf_fp_info): Reindent.
16607 (_initialize_ctfread): Remove.
16608
128a391f
TT
166092020-01-26 Tom Tromey <tom@tromey.com>
16610
16611 * psymtab.c (partial_map_expand_apply)
16612 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
16613 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
16614 (psym_print_stats, psym_expand_symtabs_for_function)
16615 (psym_map_symbol_filenames, psym_map_matching_symbols)
16616 (psym_expand_symtabs_matching)
16617 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
16618 (maintenance_check_psymtabs): Use new methods.
16619 * psympriv.h (struct partial_symtab) <readin_p,
16620 get_compunit_symtab>: New methods.
16621 <readin, compunit_symtab>: Remove members.
16622 (struct standard_psymtab): New.
16623 (struct legacy_psymtab): Derive from standard_psymtab.
16624 * dwarf2read.h (struct dwarf2_psymtab): Derive from
16625 standard_psymtab.
16626 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
16627
0494dbec
TT
166282020-01-26 Tom Tromey <tom@tromey.com>
16629
16630 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
16631 read_dependencies. Add assert.
16632 * psymtab.c (partial_symtab::read_dependencies): New method.
16633 * psympriv.h (struct partial_symtab) <read_dependencies>: New
16634 method.
16635 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
16636 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
16637 read_dependencies.
16638 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
16639 Add assert.
16640
8566b89b
TT
166412020-01-26 Tom Tromey <tom@tromey.com>
16642
16643 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
16644 Call expand_psymtab.
16645 (xcoff_read_symtab): Call expand_psymtab.
16646 (xcoff_start_psymtab, xcoff_end_psymtab): Set
16647 legacy_expand_psymtab.
16648 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
16649 method.
16650 (struct legacy_psymtab) <expand_psymtab>: Implement.
16651 <legacy_expand_psymtab>: New member.
16652 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
16653 (parse_partial_symbols): Set legacy_expand_psymtab.
16654 (psymtab_to_symtab_1): Change argument order. Call
16655 expand_psymtab.
16656 (new_psymtab): Set legacy_expand_psymtab.
16657 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
16658 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
16659 expand_psymtab.
16660 (dwarf2_psymtab::expand_psymtab): Rename from
16661 psymtab_to_symtab_1. Call expand_psymtab.
16662 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
16663 (dbx_end_psymtab): Likewise.
16664 (dbx_psymtab_to_symtab_1): Change argument order. Call
16665 expand_psymtab.
16666 (dbx_read_symtab): Call expand_psymtab.
16667 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
16668 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
16669 (ctf_psymtab::read_symtab): Call expand_psymtab.
16670
077cbab2
TT
166712020-01-26 Tom Tromey <tom@tromey.com>
16672
16673 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
16674 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
16675 messages.
16676 * mdebugread.c (mdebug_read_symtab): Remove prints.
16677 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
16678 assert.
16679 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
16680
891813be
TT
166812020-01-26 Tom Tromey <tom@tromey.com>
16682
16683 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
16684 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
16685 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
16686 legacy_symtab.
16687 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
16688 * psymtab.c (psymtab_to_symtab): Call method.
16689 (dump_psymtab): Update.
16690 * psympriv.h (struct partial_symtab): Add virtual destructor.
16691 <read_symtab>: New method.
16692 (struct legacy_symtab): New.
16693 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
16694 (struct pst_map) <pst>: Now a legacy_psymtab.
16695 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
16696 (new_psymtab): Use legacy_psymtab.
16697 * dwarf2read.h (struct dwarf2_psymtab): New.
16698 (struct dwarf2_per_cu_data) <psymtab>: Use it.
16699 * dwarf2read.c (dwarf2_create_include_psymtab)
16700 (dwarf2_build_include_psymtabs, create_type_unit_group)
16701 (create_partial_symtab, process_psymtab_comp_unit_reader)
16702 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
16703 (set_partial_user): Use dwarf2_psymtab.
16704 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
16705 (psymtab_to_symtab_1, process_full_comp_unit)
16706 (process_full_type_unit, dwarf2_ranges_read)
16707 (dwarf2_get_pc_bounds, psymtab_include_file_name)
16708 (dwarf_decode_lines): Use dwarf2_psymtab.
16709 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
16710 (add_address_entry_worker, write_one_signatured_type)
16711 (recursively_count_psymbols, recursively_write_psymbols)
16712 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
16713 (write_debug_names): Likewise.
16714 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
16715 <pst>: Now a legacy_psymtab.
16716 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
16717 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
16718 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
16719 * ctfread.c (struct ctf_psymtab): New.
16720 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
16721 ctf_psymtab.
16722 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
16723 (create_partial_symtab): Return a ctf_psymtab.
16724 (scan_partial_symbols): Update.
16725
c3693a1d
TT
167262020-01-26 Tom Tromey <tom@tromey.com>
16727
16728 * xcoffread.c (xcoff_start_psymtab): Use new.
16729 * psymtab.c (partial_symtab::partial_symtab): New constructor,
16730 renamed from start_psymtab_common.
16731 * psympriv.h (struct partial_symtab): Add new constructor.
16732 (start_psymtab_common): Don't declare.
16733 * mdebugread.c (parse_partial_symbols): Use new.
16734 * dwarf2read.c (create_partial_symtab): Use new.
16735 * dbxread.c (start_psymtab): Use new.
16736 * ctfread.c (create_partial_symtab): Use new.
16737
32caafd0
TT
167382020-01-26 Tom Tromey <tom@tromey.com>
16739
16740 * xcoffread.c (xcoff_end_psymtab): Use new.
16741 * psymtab.c (start_psymtab_common): Use new.
16742 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
16743 Update.
16744 * psympriv.h (struct partial_symtab): Add parameters to
16745 constructor. Don't inline.
16746 (allocate_psymtab): Don't declare.
16747 * mdebugread.c (new_psymtab): Use new.
16748 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
16749 * dbxread.c (dbx_end_psymtab): Use new.
16750
abaa2f23
TT
167512020-01-26 Tom Tromey <tom@tromey.com>
16752
16753 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
16754 allocate_psymtab. Update documentation.
16755 * psymtab.c (psymtab_storage::install_psymtab): Rename from
16756 allocate_psymtab. Do not use new.
16757 (allocate_psymtab): Use new. Update.
16758
6d94535f
TT
167592020-01-26 Tom Tromey <tom@tromey.com>
16760
16761 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
16762 * psymtab.c (psym_print_stats): Update.
16763 * psympriv.h (struct partial_symtab) <readin,
16764 psymtabs_addrmap_supported, anonymous>: Now bool.
16765 * mdebugread.c (psymtab_to_symtab_1): Update.
16766 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
16767 (build_type_psymtabs_reader, psymtab_to_symtab_1)
16768 (process_full_comp_unit, process_full_type_unit): Update.
16769 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
16770 * ctfread.c (psymtab_to_symtab): Update.
16771
6f17252b
TT
167722020-01-26 Tom Tromey <tom@tromey.com>
16773
16774 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
16775 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
16776 * psymtab.c (psymtab_storage): Delete psymtabs.
16777 (psymtab_storage::allocate_psymtab): Use new.
16778 (psymtab_storage::discard_psymtab): Use delete.
16779 * psympriv.h (struct partial_symtab): Add constructor and
16780 initializers.
16781
f6f1cebc
TT
167822020-01-26 Tom Tromey <tom@tromey.com>
16783
16784 * machoread.c: Do not include psympriv.h.
16785
e47e48f6
PW
167862020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16787
16788 * NEWS: Mention the new option and the set/show commands.
16789
a2fedca9
PW
167902020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16791
16792 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
16793 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
16794 (validate_exec_file): New variables, enums, functions.
16795 (exec_file_locate_attach, print_section_info): Style the filenames.
16796 (_initialize_exec): Install show_exec_file_mismatch_command and
16797 set_exec_file_mismatch_command.
16798 * gdbcore.h (validate_exec_file): Declare.
16799 * infcmd.c (attach_command): Call validate_exec_file.
16800 * remote.c ( remote_target::remote_add_inferior): Likewise.
16801
7ffa82e1
AB
168022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16803
16804 * frame.c (find_frame_sal): Move call to get_next_frame into more
16805 inner scope.
16806 * inline-frame.c (inilne_state) <inline_state>: Update argument
16807 types.
16808 (inilne_state) <skipped_symbol>: Rename to...
16809 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
16810 (skip_inline_frames): Build vector of skipped symbols and use this
16811 to reate the inline_state.
16812 (inline_skipped_symbol): Add a comment and some assertions, fetch
16813 skipped symbol from the list.
16814
3d92a3e3
AB
168152020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16816
16817 * buildsym.c (lte_is_less_than): Delete.
16818 (buildsym_compunit::end_symtab_with_blockvector): Create local
16819 lambda function to sort line table entries, and use
16820 std::stable_sort instead of std::sort.
16821 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
16822 markers when looking for a previous line.
16823
94a72be7
AB
168242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16825
16826 * dwarf2read.c (lnp_state_machine::record_line): Include
16827 end_sequence parameter in debug print out. Record the line if we
16828 are at an end_sequence marker even if it's not the start of a
16829 statement.
16830 * symmisc.c (maintenance_print_one_line_table): Print end of
16831 sequence markers with 'END' not '0'.
16832
53af73bf
PA
168332020-01-24 Pedro Alves <palves@redhat.com>
16834
16835 PR gdb/25410
16836 * thread.c (scoped_restore_current_thread::restore): Use
16837 switch_to_inferior_no_thread.
16838 * exec.c: Include "progspace-and-thread.h".
16839 (add_target_sections, remove_target_sections):
16840 scoped_restore_current_pspace_and_thread instead of
16841 scoped_restore_current_thread.
16842 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
16843 and aspace to the inferior before calling clone_program_space.
16844 Remove stale comment.
16845
3050c6f4
CB
168462020-01-24 Christian Biesinger <cbiesinger@google.com>
16847
16848 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
16849 (arm_netbsd_nat_target::fetch_registers): ...this.
16850 (arm_nbsd_nat_target::store_registers): Rename to...
16851 (arm_netbsd_nat_target::store_registers): ...this.
16852
73685c7e
CB
168532020-01-24 Christian Biesinger <cbiesinger@google.com>
16854
16855 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16856 register_t.
16857
89203d40
CB
168582020-01-24 Christian Biesinger <cbiesinger@google.com>
16859
16860 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
16861 Update comment.
16862 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
16863 Likewise.
16864 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
16865 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
16866 the correct replacement (iterate_over_regset_sections).
16867 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
16868 Update comment.
16869
1ba1ac88
AB
168702020-01-24 Graham Markall <graham.markall@embecosm.com>
16871
16872 PR gdb/23718
16873 * gdb/python/python.c (execute_gdb_command): Call
16874 async_enable_stdin in catch block.
16875
f3364a6d
AB
168762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16877
16878 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
16879 SWITCH_THRU_ALL_UIS.
16880
733d0a67
AB
168812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
16882
16883 PR tui/9765
16884 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16885 comment, add extra parameter, and update to store previous symbol
16886 when appropriate.
16887 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
16888 add extra parameter.
16889 * tui/tui-disasm.c (tui_disassemble): Update header comment,
16890 remove unneeded parameter, add try/catch around gdb_print_insn,
16891 rewrite to add items to asm_lines vector.
16892 (tui_find_backward_disassembly_start_address): New function.
16893 (tui_find_disassembly_address): Updated throughout.
16894 (tui_disasm_window::set_contents): Update for changes to
16895 tui_disassemble.
16896 (tui_disasm_window::do_scroll_vertical): No need to adjust the
16897 number of lines to scroll.
16898
b3b3bada
SM
168992020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16900
16901 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
16902 (SECT_OFF_DATA): Likewise.
16903 (SECT_OFF_RODATA): Likewise.
16904 (SECT_OFF_TEXT): Likewise.
16905 (SECT_OFF_BSS): Likewise.
16906 (struct objfile) <text_section_offset, data_section_offset>: New
16907 methods.
16908 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
16909 objfile::text_section_offset.
16910 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
16911 * coffread.c (coff_symtab_read): Likewise.
16912 (enter_linenos): Likewise.
16913 (process_coff_symbol): Likewise.
16914 * ctfread.c (get_objfile_text_range): Likewise.
16915 * dtrace-probe.c (dtrace_probe::get_relocated_address):
16916 Use objfile::data_section_offset.
16917 * dwarf2-frame.c (execute_cfa_program): Use
16918 objfile::text_section_offset.
16919 (dwarf2_frame_find_fde): Likewise.
16920 * dwarf2read.c (create_addrmap_from_index): Likewise.
16921 (create_addrmap_from_aranges): Likewise.
16922 (dw2_find_pc_sect_compunit_symtab): Likewise.
16923 (process_psymtab_comp_unit_reader): Likewise.
16924 (add_partial_symbol): Likewise.
16925 (add_partial_subprogram): Likewise.
16926 (process_full_comp_unit): Likewise.
16927 (read_file_scope): Likewise.
16928 (read_func_scope): Likewise.
16929 (read_lexical_block_scope): Likewise.
16930 (read_call_site_scope): Likewise.
16931 (dwarf2_rnglists_process): Likewise.
16932 (dwarf2_ranges_process): Likewise.
16933 (dwarf2_ranges_read): Likewise.
16934 (dwarf_decode_lines_1): Likewise.
16935 (new_symbol): Likewise.
16936 (dwarf2_fetch_die_loc_sect_off): Likewise.
16937 (dwarf2_per_cu_text_offset): Likewise.
16938 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
16939 * hppa-tdep.c (read_unwind_info): Likewise.
16940 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
16941 * psympriv.h (struct partial_symtab): Likewise.
16942 * psymtab.c (find_pc_sect_psymtab): Likewise.
16943 * solib-svr4.c (enable_break): Likewise.
16944 * stap-probe.c (relocate_address): Use
16945 objfile::data_section_offset.
16946 * xcoffread.c (enter_line_range): Use
16947 objfile::text_section_offset.
16948 (read_xcoff_symtab): Likewise.
16949
ab53f382
SM
169502020-01-23 Simon Marchi <simon.marchi@efficios.com>
16951
16952 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
16953 declaration to narrower scopes.
16954
e7eee665
SM
169552020-01-23 Simon Marchi <simon.marchi@efficios.com>
16956
16957 * darwin-nat.h (struct darwin_exception_msg, enum
16958 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
16959 Move up.
16960 (class darwin_nat_target) <wait_1, check_new_threads,
16961 decode_exception_message, decode_message, stop_inferior,
16962 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
16963 * darwin-nat.c (darwin_check_new_threads): Rename to...
16964 (darwin_nat_target::check_new_threads): ... this.
16965 (darwin_suspend_inferior_it): Remove.
16966 (darwin_decode_exception_message): Rename to...
16967 (darwin_nat_target::decode_exception_message): ... this.
16968 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
16969 (darwin_decode_message): Rename to...
16970 (darwin_nat_target::decode_message): ... this.
16971 (cancel_breakpoint): Rename to...
16972 (darwin_nat_target::cancel_breakpoint): ... this.
16973 (darwin_wait): Rename to...
16974 (darwin_nat_target::wait_1): ... this. Use range-based for loop
16975 instead of iterate_over_inferiors.
16976 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
16977 (darwin_stop_inferior): Rename to...
16978 (darwin_nat_target::stop_inferior): ... this.
16979 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
16980 (darwin_init_thread_list): Rename to...
16981 (darwin_nat_target::init_thread_list): ... this.
16982 (darwin_ptrace_him): Rename to...
16983 (darwin_nat_target::ptrace_him): ... this.
16984 (darwin_nat_target::create_inferior): Pass lambda function to
16985 fork_inferior.
16986 (darwin_nat_target::detach): Call stop_inferior instead of
16987 darwin_stop_inferior.
16988 * fork-inferior.h (fork_inferior): Change init_trace_fun
16989 parameter to gdb::function_view.
16990 * fork-inferior.c (fork_inferior): Likewise.
16991
c162ed3e
HD
169922020-01-23 Hannes Domani <ssbssa@yahoo.de>
16993
16994 * i386-cygwin-tdep.c (core_process_module_section): Update.
16995 * windows-nat.c (struct lm_info_windows): Add text_offset.
16996 (windows_xfer_shared_libraries): Update.
16997 * windows-tdep.c (windows_xfer_shared_library):
16998 Add text_offset_cached argument.
16999 * windows-tdep.h (windows_xfer_shared_library): Update.
17000
a1237872
SM
170012020-01-21 Simon Marchi <simon.marchi@efficios.com>
17002
17003 * gdbarch.sh: Add declaration for _initialize_gdbarch.
17004
b3ee6dd9
SM
170052020-01-21 Simon Marchi <simon.marchi@efficios.com>
17006
17007 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
17008 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
17009 replace with range-based for.
17010 (gdbsim_interrupt_inferior): Remove.
17011 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
17012 with a range-based for. Inline code from
17013 gdbsim_interrupt_inferior.
17014
f9fac3c8
SM
170152020-01-21 Simon Marchi <simon.marchi@efficios.com>
17016
17017 * infrun.c (proceed): Fix indentation.
17018
f6474de9
TT
170192020-01-21 Tom Tromey <tromey@adacore.com>
17020
17021 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
17022 * python/python.c (python_extension_ops): Update.
17023 (gdbpy_colorize): New function.
17024 * python/lib/gdb/__init__.py (colorize): New function.
17025 * extension.h (ext_lang_colorize): Declare.
17026 * extension.c (ext_lang_colorize): New function.
17027 * extension-priv.h (struct extension_language_ops) <colorize>: New
17028 member.
17029 * cli/cli-style.c (_initialize_cli_style): Update help text.
17030
f0c702d4
LM
170312020-01-21 Luis Machado <luis.machado@linaro.org>
17032
17033 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
17034 <cond>: Change type to bool.
17035 (aarch64_displaced_step_b_cond): Update cond to use bool type.
17036 (aarch64_displaced_step_cb): Likewise.
17037 (aarch64_displaced_step_tb): Likewise.
17038
1ab139e5
LM
170392020-01-21 Luis Machado <luis.machado@linaro.org>
17040
17041 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
17042 output.
17043
0c271889
LM
170442020-01-21 Luis Machado <luis.machado@linaro.org>
17045
17046 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
17047 <pc_adjust>: Adjust the documentation.
17048 (aarch64_displaced_step_fixup): Check if PC really moved before
17049 adjusting it.
17050
4d89c1c7
TT
170512020-01-19 Tom Tromey <tom@tromey.com>
17052
17053 * disasm.c (~gdb_disassembler): New destructor.
17054 (gdb_buffered_insn_length): Call disassemble_free_target.
17055 * disasm.h (class gdb_disassembler): Declare destructor. Use
17056 DISABLE_COPY_AND_ASSIGN.
17057
c0ab21c2
TT
170582020-01-19 Tom Tromey <tom@tromey.com>
17059
17060 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
17061 (die_reader_func_ftype): Remove.
17062 (cutu_reader): New class.
17063 (dw2_get_file_names_reader): Remove "data" parameter.
17064 (dw2_get_file_names): Use cutu_reader.
17065 (create_debug_type_hash_table): Update.
17066 (read_cutu_die_from_dwo): Update comment.
17067 (lookup_dwo_unit): Add dwo_name parameter.
17068 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
17069 die_reader_func_ftype and data parameters.
17070 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
17071 Remove die_reader_func_ftype and data parameters.
17072 (~cutu_reader): New; from init_cutu_and_read_dies.
17073 (cutu_reader::cutu_reader): Rename from
17074 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
17075 and data parameters.
17076 (init_cutu_and_read_dies_simple): Remove.
17077 (struct process_psymtab_comp_unit_data): Remove.
17078 (process_psymtab_comp_unit_reader): Remove data parameter; add
17079 want_partial_unit and pretend_language parameters.
17080 (process_psymtab_comp_unit): Use cutu_reader.
17081 (build_type_psymtabs_reader): Remove data parameter.
17082 (build_type_psymtabs_1): Use cutu_reader.
17083 (process_skeletonless_type_unit): Likewise.
17084 (load_partial_comp_unit_reader): Remove.
17085 (load_partial_comp_unit): Use cutu_reader.
17086 (load_full_comp_unit_reader): Remove.
17087 (load_full_comp_unit): Use cutu_reader.
17088 (struct create_dwo_cu_data): Remove.
17089 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
17090 dwo_unit parameters.
17091 (create_cus_hash_table): Use cutu_reader.
17092 (struct dwarf2_read_addr_index_data): Remove.
17093 (dwarf2_read_addr_index_reader): Remove.
17094 (dwarf2_read_addr_index): Use cutu_reader.
17095 (read_signatured_type_reader): Remove.
17096 (read_signatured_type): Use cutu_reader.
17097
45bbae5c
TT
170982020-01-19 Tom Tromey <tom@tromey.com>
17099
17100 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
17101 * tui/tui-wingeneral.h (class tui_suppress_output): New.
17102 (tui_wrefresh): Declare.
17103 * tui/tui-wingeneral.c (suppress_output): New global.
17104 (tui_suppress_output, ~tui_suppress_output): New constructor and
17105 destructor.
17106 (tui_wrefresh): New function.
17107 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
17108 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
17109 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
17110 method.
17111 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
17112 tui_wrefresh.
17113 (tui_data_window::no_refresh): New method.
17114 (tui_data_item_window::refresh_window): Call tui_wrefresh.
17115 (tui_reg_command): Use tui_suppress_output
17116 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
17117 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
17118 method.
17119 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
17120
4f13c1c0
TT
171212020-01-19 Tom Tromey <tom@tromey.com>
17122
17123 * tui/tui-winsource.c (tui_update_source_windows_with_line):
17124 Handle case where symtab is null.
17125
fa47e446
SM
171262020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
17127
17128 * linux-fork.c (one_fork_p): Simplify.
17129
26f42329
SM
171302020-01-17 Simon Marchi <simon.marchi@efficios.com>
17131
17132 * top.c (struct qt_args): Remove.
17133 (kill_or_detach): Change return type to void, replace `void *`
17134 parameter with a proper one.
17135 (print_inferior_quit_action): Likewise.
17136 (quit_confirm): Use range-based for loop to iterate over inferiors.
17137 (quit_force): Likewise.
17138
a9ac81b1
SM
171392020-01-17 Simon Marchi <simon.marchi@efficios.com>
17140
17141 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
17142 `void *` parameter with proper parameters.
17143 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
17144 (print_one_inferior): Change return type to void, replace `void *`
17145 parameter with proper parameters.
17146 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
17147 inferiors.
17148 (get_other_inferior): Remove.
17149 (mi_cmd_remove_inferior): Use range-based loop to iterate over
17150 inferiors.
17151
788eca49
SM
171522020-01-17 Simon Marchi <simon.marchi@efficios.com>
17153
17154 * mi/mi-interp.c (report_initial_inferior): Remove.
17155 (mi_interp::init): Use range-based for to iterate over inferiors.
17156
d9bc85b6
SM
171572020-01-17 Simon Marchi <simon.marchi@efficios.com>
17158
17159 * python/py-inferior.c (build_inferior_list): Remove.
17160 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
17161
40c94099
CB
171622020-01-16 Christian Biesinger <cbiesinger@google.com>
17163
17164 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
17165 (btrace_stitch_trace): Likewise.
17166 * charset.c (intermediate_encoding): Likewise (vaild).
17167 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
17168 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
17169 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
17170
e0cdfe3c
HD
171712020-01-16 Hannes Domani <ssbssa@yahoo.de>
17172
17173 * windows-tdep.c (windows_get_tlb_type):
17174 Add rtl_user_process_parameters type.
17175
790f1718 171762020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 17177 Norbert Lange <nolange79@gmail.com>
790f1718
PA
17178
17179 PR build/24805
17180 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
17181 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
17182 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
17183 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
17184 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
17185 (ps_plog): Redeclare exported functions with default visibility.
17186
3112ed97
NA
171872020-01-16 Nitika Achra <Nitika.Achra@amd.com>
17188
17189 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
17190 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
17191
8dc3273e
SM
171922020-01-15 Simon Marchi <simon.marchi@efficios.com>
17193
17194 * infcmd.c (post_create_inferior): Use get_thread_regcache
17195 instead of get_current_regcache.
17196
ff47f4f0
TT
171972020-01-14 Tom Tromey <tom@tromey.com>
17198
17199 PR symtab/12535:
17200 * python/python.c (gdbpy_decode_line): Treat empty string the same
17201 as no argument.
17202
975f45b7
TT
172032020-01-14 Tom Tromey <tom@tromey.com>
17204
17205 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
17206
25e57356
TT
172072020-01-14 Tom Tromey <tom@tromey.com>
17208
17209 * nat/linux-btrace.c: Don't include <config.h>.
17210 * nat/linux-ptrace.c: Don't include <config.h>.
17211 * nat/x86-linux-dregs.c: Don't include <config.h>.
17212
05ea2a05
TT
172132020-01-14 Tom Tromey <tom@tromey.com>
17214
17215 * configure: Rebuild.
17216 * configure.ac: Move many checks to ../gdbsupport/common.m4.
17217
01027315
TT
172182020-01-14 Tom Tromey <tom@tromey.com>
17219
17220 * nat/x86-linux-dregs.c: Include configh.h.
17221 * nat/linux-ptrace.c: Include configh.h.
17222 * nat/linux-btrace.c: Include configh.h.
17223 * defs.h: Include config.h, bfd.h.
17224 * configure.ac: Don't source common.host.
17225 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
17226 * configure: Rebuild.
17227 * acinclude.m4: Update path.
17228 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
17229 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
17230 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
17231 (CLIBS): Add LIBSUPPORT.
17232 (CDEPS): Likewise.
17233 (COMMON_SFILES): Remove gdbsupport files.
17234 (HFILES_NO_SRCDIR): Likewise.
17235 (stamp-version): Update path to create-version.sh.
17236 (ALLDEPFILES): Remove gdbsupport files.
17237
b2ceabe8
TT
172382020-01-14 Tom Tromey <tom@tromey.com>
17239
17240 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
17241 USE_WIN32API when needed.
17242 * configure.ac (USE_WIN32API): Don't define.
17243 (WIN32LIBS): Use WIN32APILIBS.
17244 * configure: Rebuild.
17245
25c51f71
TT
172462020-01-14 Tom Tromey <tom@tromey.com>
17247
17248 * configure: Rebuild.
17249 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
17250
717c684d
BE
172512020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
17252
17253 * skip.c (skip_function_command): Make skip w/o arguments use the
17254 name of the inlined function if pc is inside any inlined function.
17255
7da6a5b9
LM
172562020-01-14 Luis Machado <luis.machado@linaro.org>
17257
17258 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
17259 * infrun.c (resume_1): Likewise.
17260 (handle_inferior_event): Remove stale comment.
17261 * linux-nat.c (linux_nat_target::resume): Update comments.
17262 (save_stop_reason): Likewise.
17263 (linux_nat_filter_event): Likewise.
17264 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
17265
44e4c775
AB
172662020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17267
17268 * elfread.c (record_minimal_symbol): Set section index to 0 for
17269 non-allocatable sections.
17270
18a8505e
AT
17271
172722020-01-13 Ali Tamur <tamur@google.com>
17273
17274 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
17275 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
17276 to gdb::optional. Update comments.
17277 (dwo_file): Update comments.
17278 (read_attribute): Update API to take an additional out parameter,
17279 need_reprocess. This is used to mark attributes that need other
17280 attributes (e.g. str_offsets_base) for correct computation which may not
17281 have been read yet.
17282 (read_attribute_reprocess): New function declaration.
17283 (read_addr_index): Likewise.
17284 (read_dwo_str_index): Likewise.
17285 (read_stub_str_index): Likewise.
17286 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
17287 (lookup_addr_base): New function definition.
17288 (lookup_ranges_base): Likewise.
17289 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
17290 lookup_ranges_base.
17291 (init_cutu_and_read_dies): Update comments.
17292 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
17293 unit. This is used to inherit parent's str_offsets_base and addr_base.
17294 Update comments.
17295 (init_cutu_and_read_dies_simple): Reflect API changes.
17296 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
17297 (create_cus_hash_table): Change API to take parent compile unit.
17298 Reflect API changes.
17299 (open_and_init_dwo_file): Reflect API changes.
17300 (dwarf2_get_pc_bounds): Update comments.
17301 (dwarf2_record_block_ranges): Likewise.
17302 (read_full_die_1): Change implementation to reprocess attributes that
17303 need str_offsets_base and addr_base.
17304 (partial_die_info::read): Likewise.
17305 (read_attribute_reprocess): New function definition.
17306 (read_attribute_value): Change API to take an additional out parameter,
17307 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
17308 when a non-dwo compile unit has index based attributes.
17309 (read_attribute): Reflect API changes.
17310 (read_addr_index_1): Reflect API changes. Update comments.
17311 (dwarf2_read_addr_index_data): Reflect API changes.
17312 (dwarf2_read_addr_index): Likewise.
17313 (read_str_index): Change API and implementation. This becomes a helper
17314 to be used by the new string index related methods. Update error
17315 message and comments.
17316 (read_dwo_str_index): New function definition.
17317 (read_stub_str_index): Likewise.
17318 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
17319 * symfile.h (dwarf2_debug_sections): Likewise.
17320 * xcoffread.c (dwarf2_debug_sections): Likewise.
17321
0cac9354
SM
173222020-01-13 Simon Marchi <simon.marchi@efficios.com>
17323
17324 * gdbcore.h (struct core_fns) <core_read_registers>: Change
17325 core_reg_sect type to gdb_byte *.
17326 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
17327 * cris-tdep.c (fetch_core_registers): Likewise.
17328 * corelow.c (core_target::get_core_register_section): Change
17329 type of `contents` to gdb::byte_vector.
17330
9a6d629c
AB
173312020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
17332
17333 * tui/tui-wingeneral.c (box_win): Position the title in the center
17334 of the border.
17335
d8b2f9e3
SM
173362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17337
17338 * corelow.c (core_target::get_core_register_section): Use
17339 std::vector instead of alloca.
17340
bb564c58
SM
173412020-01-13 Simon Marchi <simon.marchi@efficios.com>
17342
17343 * warning.m4: Add -Wmissing-declarations to build_warnings.
17344 * configure: Re-generate.
17345
6b366111
SM
173462020-01-13 Simon Marchi <simon.marchi@efficios.com>
17347
17348 * python/python.c (init__gdb_module): Add declaration.
17349
6c265988
SM
173502020-01-13 Simon Marchi <simon.marchi@efficios.com>
17351
17352 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
17353 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
17354 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
17355 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
17356 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
17357 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
17358 * ada-exp.y (_initialize_ada_exp): Add declaration.
17359 * ada-lang.c (_initialize_ada_language): Add declaration.
17360 * ada-tasks.c (_initialize_tasks): Add declaration.
17361 * agent.c (_initialize_agent): Add declaration.
17362 * aix-thread.c (_initialize_aix_thread): Add declaration.
17363 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
17364 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
17365 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
17366 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
17367 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
17368 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
17369 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
17370 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
17371 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
17372 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
17373 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
17374 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
17375 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
17376 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
17377 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
17378 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
17379 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
17380 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
17381 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
17382 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
17383 * annotate.c (_initialize_annotate): Add declaration.
17384 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
17385 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
17386 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
17387 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
17388 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
17389 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
17390 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
17391 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
17392 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
17393 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
17394 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
17395 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
17396 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
17397 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
17398 * auto-load.c (_initialize_auto_load): Add declaration.
17399 * auxv.c (_initialize_auxv): Add declaration.
17400 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
17401 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
17402 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
17403 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
17404 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
17405 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
17406 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
17407 * breakpoint.c (_initialize_breakpoint): Add declaration.
17408 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
17409 * btrace.c (_initialize_btrace): Add declaration.
17410 * charset.c (_initialize_charset): Add declaration.
17411 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
17412 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
17413 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
17414 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
17415 * cli/cli-script.c (_initialize_cli_script): Add declaration.
17416 * cli/cli-style.c (_initialize_cli_style): Add declaration.
17417 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
17418 * coffread.c (_initialize_coffread): Add declaration.
17419 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
17420 * compile/compile.c (_initialize_compile): Add declaration.
17421 * complaints.c (_initialize_complaints): Add declaration.
17422 * completer.c (_initialize_completer): Add declaration.
17423 * copying.c (_initialize_copying): Add declaration.
17424 * corefile.c (_initialize_core): Add declaration.
17425 * corelow.c (_initialize_corelow): Add declaration.
17426 * cp-abi.c (_initialize_cp_abi): Add declaration.
17427 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
17428 * cp-support.c (_initialize_cp_support): Add declaration.
17429 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
17430 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
17431 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
17432 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
17433 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
17434 * ctfread.c (_initialize_ctfread): Add declaration.
17435 * d-lang.c (_initialize_d_language): Add declaration.
17436 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
17437 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
17438 * dbxread.c (_initialize_dbxread): Add declaration.
17439 * dcache.c (_initialize_dcache): Add declaration.
17440 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
17441 * disasm.c (_initialize_disasm): Add declaration.
17442 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
17443 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
17444 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
17445 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
17446 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
17447 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
17448 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
17449 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
17450 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
17451 * elfread.c (_initialize_elfread): Add declaration.
17452 * exec.c (_initialize_exec): Add declaration.
17453 * extension.c (_initialize_extension): Add declaration.
17454 * f-lang.c (_initialize_f_language): Add declaration.
17455 * f-valprint.c (_initialize_f_valprint): Add declaration.
17456 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
17457 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
17458 * filesystem.c (_initialize_filesystem): Add declaration.
17459 * findcmd.c (_initialize_mem_search): Add declaration.
17460 * findvar.c (_initialize_findvar): Add declaration.
17461 * fork-child.c (_initialize_fork_child): Add declaration.
17462 * frame-base.c (_initialize_frame_base): Add declaration.
17463 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
17464 * frame.c (_initialize_frame): Add declaration.
17465 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
17466 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
17467 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
17468 * gcore.c (_initialize_gcore): Add declaration.
17469 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
17470 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
17471 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
17472 * gdbarch.c (_initialize_gdbarch): Add declaration.
17473 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
17474 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
17475 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
17476 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
17477 * go-lang.c (_initialize_go_language): Add declaration.
17478 * go32-nat.c (_initialize_go32_nat): Add declaration.
17479 * guile/guile.c (_initialize_guile): Add declaration.
17480 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
17481 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
17482 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
17483 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
17484 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
17485 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
17486 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
17487 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
17488 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
17489 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
17490 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
17491 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
17492 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
17493 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
17494 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
17495 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
17496 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
17497 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
17498 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
17499 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
17500 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
17501 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
17502 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
17503 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
17504 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
17505 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
17506 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
17507 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
17508 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
17509 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
17510 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
17511 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
17512 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
17513 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
17514 * infcall.c (_initialize_infcall): Add declaration.
17515 * infcmd.c (_initialize_infcmd): Add declaration.
17516 * inflow.c (_initialize_inflow): Add declaration.
17517 * infrun.c (_initialize_infrun): Add declaration.
17518 * interps.c (_initialize_interpreter): Add declaration.
17519 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
17520 * jit.c (_initialize_jit): Add declaration.
17521 * language.c (_initialize_language): Add declaration.
17522 * linux-fork.c (_initialize_linux_fork): Add declaration.
17523 * linux-nat.c (_initialize_linux_nat): Add declaration.
17524 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
17525 * linux-thread-db.c (_initialize_thread_db): Add declaration.
17526 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
17527 * m2-lang.c (_initialize_m2_language): Add declaration.
17528 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
17529 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
17530 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
17531 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
17532 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
17533 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
17534 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
17535 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
17536 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
17537 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
17538 * machoread.c (_initialize_machoread): Add declaration.
17539 * macrocmd.c (_initialize_macrocmd): Add declaration.
17540 * macroscope.c (_initialize_macroscope): Add declaration.
17541 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
17542 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
17543 * maint.c (_initialize_maint_cmds): Add declaration.
17544 * mdebugread.c (_initialize_mdebugread): Add declaration.
17545 * memattr.c (_initialize_mem): Add declaration.
17546 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
17547 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
17548 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
17549 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
17550 * mi/mi-main.c (_initialize_mi_main): Add declaration.
17551 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
17552 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
17553 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
17554 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
17555 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
17556 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
17557 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
17558 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
17559 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
17560 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
17561 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
17562 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
17563 * mipsread.c (_initialize_mipsread): Add declaration.
17564 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
17565 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
17566 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
17567 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
17568 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
17569 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
17570 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
17571 * nto-procfs.c (_initialize_procfs): Add declaration.
17572 * objc-lang.c (_initialize_objc_language): Add declaration.
17573 * observable.c (_initialize_observer): Add declaration.
17574 * opencl-lang.c (_initialize_opencl_language): Add declaration.
17575 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
17576 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
17577 * osabi.c (_initialize_gdb_osabi): Add declaration.
17578 * osdata.c (_initialize_osdata): Add declaration.
17579 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
17580 * parse.c (_initialize_parse): Add declaration.
17581 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
17582 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
17583 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
17584 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
17585 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
17586 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
17587 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
17588 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
17589 * printcmd.c (_initialize_printcmd): Add declaration.
17590 * probe.c (_initialize_probe): Add declaration.
17591 * proc-api.c (_initialize_proc_api): Add declaration.
17592 * proc-events.c (_initialize_proc_events): Add declaration.
17593 * proc-service.c (_initialize_proc_service): Add declaration.
17594 * procfs.c (_initialize_procfs): Add declaration.
17595 * producer.c (_initialize_producer): Add declaration.
17596 * psymtab.c (_initialize_psymtab): Add declaration.
17597 * python/python.c (_initialize_python): Add declaration.
17598 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
17599 * record-btrace.c (_initialize_record_btrace): Add declaration.
17600 * record-full.c (_initialize_record_full): Add declaration.
17601 * record.c (_initialize_record): Add declaration.
17602 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
17603 * regcache.c (_initialize_regcache): Add declaration.
17604 * reggroups.c (_initialize_reggroup): Add declaration.
17605 * remote-notif.c (_initialize_notif): Add declaration.
17606 * remote-sim.c (_initialize_remote_sim): Add declaration.
17607 * remote.c (_initialize_remote): Add declaration.
17608 * reverse.c (_initialize_reverse): Add declaration.
17609 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
17610 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
17611 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
17612 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
17613 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
17614 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
17615 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
17616 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
17617 Add declaration.
17618 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
17619 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
17620 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
17621 * rust-exp.y (_initialize_rust_exp): Add declaration.
17622 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
17623 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
17624 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
17625 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
17626 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
17627 * score-tdep.c (_initialize_score_tdep): Add declaration.
17628 * ser-go32.c (_initialize_ser_dos): Add declaration.
17629 * ser-mingw.c (_initialize_ser_windows): Add declaration.
17630 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
17631 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
17632 * ser-uds.c (_initialize_ser_socket): Add declaration.
17633 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
17634 * serial.c (_initialize_serial): Add declaration.
17635 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
17636 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
17637 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
17638 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
17639 * skip.c (_initialize_step_skip): Add declaration.
17640 * sol-thread.c (_initialize_sol_thread): Add declaration.
17641 * solib-aix.c (_initialize_solib_aix): Add declaration.
17642 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
17643 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
17644 * solib-frv.c (_initialize_frv_solib): Add declaration.
17645 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
17646 * solib-target.c (_initialize_solib_target): Add declaration.
17647 * solib.c (_initialize_solib): Add declaration.
17648 * source-cache.c (_initialize_source_cache): Add declaration.
17649 * source.c (_initialize_source): Add declaration.
17650 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
17651 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
17652 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
17653 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
17654 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
17655 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
17656 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
17657 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
17658 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
17659 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
17660 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
17661 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
17662 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
17663 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
17664 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
17665 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
17666 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
17667 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
17668 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
17669 * stabsread.c (_initialize_stabsread): Add declaration.
17670 * stack.c (_initialize_stack): Add declaration.
17671 * stap-probe.c (_initialize_stap_probe): Add declaration.
17672 * std-regs.c (_initialize_frame_reg): Add declaration.
17673 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
17674 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
17675 * symfile.c (_initialize_symfile): Add declaration.
17676 * symmisc.c (_initialize_symmisc): Add declaration.
17677 * symtab.c (_initialize_symtab): Add declaration.
17678 * target.c (_initialize_target): Add declaration.
17679 * target-connection.c (_initialize_target_connection): Add
17680 declaration.
17681 * target-dcache.c (_initialize_target_dcache): Add declaration.
17682 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
17683 * thread.c (_initialize_thread): Add declaration.
17684 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
17685 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
17686 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
17687 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
17688 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
17689 * tracectf.c (_initialize_ctf): Add declaration.
17690 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
17691 * tracefile.c (_initialize_tracefile): Add declaration.
17692 * tracepoint.c (_initialize_tracepoint): Add declaration.
17693 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
17694 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
17695 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
17696 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
17697 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
17698 * tui/tui-win.c (_initialize_tui_win): Add declaration.
17699 * tui/tui.c (_initialize_tui): Add declaration.
17700 * typeprint.c (_initialize_typeprint): Add declaration.
17701 * ui-style.c (_initialize_ui_style): Add declaration.
17702 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
17703 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
17704 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
17705 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
17706 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
17707 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
17708 * unittests/filtered_iterator-selftests.c
17709 (_initialize_filtered_iterator_selftests): Add declaration.
17710 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
17711 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
17712 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
17713 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
17714 * unittests/main-thread-selftests.c
17715 (_initialize_main_thread_selftests): Add declaration.
17716 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
17717 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
17718 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
17719 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
17720 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
17721 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
17722 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
17723 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
17724 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
17725 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
17726 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
17727 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
17728 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
17729 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
17730 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
17731 declaration.
17732 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
17733 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
17734 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
17735 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
17736 * user-regs.c (_initialize_user_regs): Add declaration.
17737 * utils.c (_initialize_utils): Add declaration.
17738 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
17739 * valops.c (_initialize_valops): Add declaration.
17740 * valprint.c (_initialize_valprint): Add declaration.
17741 * value.c (_initialize_values): Add declaration.
17742 * varobj.c (_initialize_varobj): Add declaration.
17743 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
17744 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
17745 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
17746 * windows-nat.c (_initialize_windows_nat): Add declaration.
17747 (_initialize_check_for_gdb_ini): Add declaration.
17748 (_initialize_loadable): Add declaration.
17749 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
17750 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
17751 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
17752 * xcoffread.c (_initialize_xcoffread): Add declaration.
17753 * xml-support.c (_initialize_xml_support): Add declaration.
17754 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
17755 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
17756 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
17757 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
17758
e2de1eec
SM
177592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17760
17761 * regformats/regdat.sh: Generate declaration for init function.
17762
e0037b4c
SM
177632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
17764
17765 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
17766 up.
17767 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
17768 close_one_inferior>: New methods.
17769 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
17770 pass down target to find_inferior_pid.
17771 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
17772 Pass down target to find_inferior_ptid.
17773 (gdbsim_target::create_inferior): Pass down target to
17774 add_thread_silent.
17775 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
17776 target down to find_inferior_ptid and switch_to_thread.
17777 (gdbsim_target::close): Update to call close_one_inferior.
17778 (struct resume_data): Remove.
17779 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
17780 directly, rather than through a void pointer.
17781 (gdbsim_target::resume): Update to call resume_one_inferior.
17782
58920b5b
SM
177832020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
17784
17785 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
17786
4ec89149
PA
177872020-01-12 Pedro Alves <palves@redhat.com>
17788
17789 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
17790 directly for the current inferior instead of
17791 discard_all_inferiors.
17792 (discard_all_inferiors): Delete.
17793
7c392d1d
TT
177942020-01-11 Tom Tromey <tom@tromey.com>
17795
17796 * tui/tui-wingeneral.c (box_win): Check cli_styling.
17797 * tui/tui-winsource.c (tui_source_window_base::refill): Use
17798 deprecated_safe_get_selected_frame.
17799
d9ebdab7
TBA
178002020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17801
17802 * inferior.c (print_inferior): Switch inferior before printing it.
17803
f3c469b9
PA
178042020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
17805 Pedro Alves <palves@redhat.com>
17806
17807 * progspace-and-thread.c (switch_to_program_space_and_thread):
17808 Assert there's an inferior for PSPACE. Use
17809 switch_to_inferior_no_thread to switch the inferior too.
17810 * progspace.c (program_space::~program_space): Call
17811 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
17812 (program_space::free_all_objfiles): Don't call clear_symtab_users
17813 here.
17814 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
17815
65c574f6
PA
178162020-01-10 Pedro Alves <palves@redhat.com>
17817
17818 * NEWS: Mention multi-target debugging, "info connections", and
17819 "add-inferior -no-connection".
17820
2f4fcf00
PA
178212020-01-10 Pedro Alves <palves@redhat.com>
17822
17823 * infrun.c: Include "target-connection.h".
17824 (check_multi_target_resumption): New.
17825 (proceed): Call it.
17826 * target-connection.c (make_target_connection_string): Make
17827 extern.
17828 * target-connection.h (make_target_connection_string): Declare.
17829
121b3efd
PA
178302020-01-10 Pedro Alves <palves@redhat.com>
17831
17832 * Makefile.in (COMMON_SFILES): Add target-connection.c.
17833 * inferior.c (uiout_field_connection): New function.
17834 (print_inferior): Add new "connection-id" column.
17835 (add_inferior_command): Show connection number/string of added
17836 inferior.
17837 * process-stratum-target.h
17838 (process_stratum_target::connection_string): New virtual method.
17839 (process_stratum_target::connection_number): New field.
17840 * remote.c (remote_target::connection_string): New override.
17841 * target-connection.c: New file.
17842 * target-connection.h: New file.
17843 * target.c (decref_target): Remove process_stratum targets from
17844 the connection list.
17845 (target_stack::push): Add process_stratum targets to the
17846 connection list.
17847
4f837581
PA
178482020-01-10 Pedro Alves <palves@redhat.com>
17849
17850 Revert:
17851 2016-04-12 Pedro Alves <palves@redhat.com>
17852 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
17853 Remove references to name.
17854 * serial.h (struct serial) <name>: Delete.
17855
f4ec508e
PA
178562020-01-10 Pedro Alves <palves@redhat.com>
17857
17858 * gdbarch-selftests.c (register_to_value_test): Remove "target
17859 already pushed" check.
17860
5b6d1e4f
PA
178612020-01-10 Pedro Alves <palves@redhat.com>
17862 John Baldwin <jhb@FreeBSD.org>
17863
17864 * aarch64-linux-nat.c
17865 (aarch64_linux_nat_target::thread_architecture): Adjust.
17866 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
17867 (task_command_1): Likewise.
17868 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
17869 (aix_thread_target::wait, aix_thread_target::fetch_registers)
17870 (aix_thread_target::store_registers)
17871 (aix_thread_target::thread_alive): Adjust.
17872 * amd64-fbsd-tdep.c: Include "inferior.h".
17873 (amd64fbsd_get_thread_local_address): Pass down target.
17874 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
17875 thread's gdbarch instead of target_gdbarch.
17876 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
17877 get_last_target_status.
17878 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
17879 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
17880 inferiors.
17881 (update_inserted_breakpoint_locations): Skip if inferiors with no
17882 execution.
17883 (update_global_location_list): When handling moribund locations,
17884 find representative inferior for location's pspace, and use thread
17885 count of its process_stratum target.
17886 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
17887 * bsd-uthread.c (bsd_uthread_target::wait): Use
17888 as_process_stratum_target and adjust thread_change_ptid and
17889 add_thread calls.
17890 (bsd_uthread_target::update_thread_list): Use
17891 as_process_stratum_target and adjust find_thread_ptid,
17892 thread_change_ptid and add_thread calls.
17893 * btrace.c (maint_btrace_packet_history_cmd): Adjust
17894 find_thread_ptid call.
17895 * corelow.c (add_to_thread_list): Adjust add_thread call.
17896 (core_target_open): Adjust add_thread_silent and thread_count
17897 calls.
17898 (core_target::pid_to_str): Adjust find_inferior_ptid call.
17899 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
17900 * event-top.c (async_disconnect): Pop targets from all inferiors.
17901 * exec.c (add_target_sections): Push exec target on all inferiors
17902 sharing the program space.
17903 (remove_target_sections): Remove the exec target from all
17904 inferiors sharing the program space.
17905 (exec_on_vfork): New.
17906 * exec.h (exec_on_vfork): Declare.
17907 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
17908 Pass it down.
17909 (fbsd_nat_target::update_thread_list): Adjust.
17910 (fbsd_nat_target::resume): Adjust.
17911 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
17912 down.
17913 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
17914 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
17915 get_thread_arch_regcache call.
17916 * fork-child.c (gdb_startup_inferior): Pass target down to
17917 startup_inferior and set_executing.
17918 * gdbthread.h (struct process_stratum_target): Forward declare.
17919 (add_thread, add_thread_silent, add_thread_with_info)
17920 (in_thread_list): Add process_stratum_target parameter.
17921 (find_thread_ptid(inferior*, ptid_t)): New overload.
17922 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
17923 parameter.
17924 (all_threads()): Delete overload.
17925 (all_threads, all_non_exited_threads): Add process_stratum_target
17926 parameter.
17927 (all_threads_safe): Use brace initialization.
17928 (thread_count): Add process_stratum_target parameter.
17929 (set_resumed, set_running, set_stop_requested, set_executing)
17930 (threads_are_executing, finish_thread_state): Add
17931 process_stratum_target parameter.
17932 (switch_to_thread): Use is_current_thread.
17933 * i386-fbsd-tdep.c: Include "inferior.h".
17934 (i386fbsd_get_thread_local_address): Pass down target.
17935 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
17936 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
17937 have_inferiors check.
17938 * inf-ptrace.c (inf_ptrace_target::create_inferior)
17939 (inf_ptrace_target::attach): Adjust.
17940 * infcall.c (run_inferior_call): Adjust.
17941 * infcmd.c (run_command_1): Pass target to
17942 scoped_finish_thread_state.
17943 (proceed_thread_callback): Skip inferiors with no execution.
17944 (continue_command): Rename 'all_threads' local to avoid hiding
17945 'all_threads' function. Adjust get_last_target_status call.
17946 (prepare_one_step): Adjust set_running call.
17947 (signal_command): Use user_visible_resume_target. Compare thread
17948 pointers instead of inferior_ptid.
17949 (info_program_command): Adjust to pass down target.
17950 (attach_command): Mark target's 'thread_executing' flag.
17951 (stop_current_target_threads_ns): New, factored out from ...
17952 (interrupt_target_1): ... this. Switch inferior before making
17953 target calls.
17954 * inferior-iter.h
17955 (struct all_inferiors_iterator, struct all_inferiors_range)
17956 (struct all_inferiors_safe_range)
17957 (struct all_non_exited_inferiors_range): Filter on
17958 process_stratum_target too. Remove explicit.
17959 * inferior.c (inferior::inferior): Push dummy target on target
17960 stack.
17961 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
17962 Add process_stratum_target parameter, and pass it down.
17963 (have_live_inferiors): Adjust.
17964 (switch_to_inferior_and_push_target): New.
17965 (add_inferior_command, clone_inferior_command): Handle
17966 "-no-connection" parameter. Use
17967 switch_to_inferior_and_push_target.
17968 (_initialize_inferior): Mention "-no-connection" option in
17969 the help of "add-inferior" and "clone-inferior" commands.
17970 * inferior.h: Include "process-stratum-target.h".
17971 (interrupt_target_1): Use bool.
17972 (struct inferior) <push_target, unpush_target, target_is_pushed,
17973 find_target_beneath, top_target, process_target, target_at,
17974 m_stack>: New.
17975 (discard_all_inferiors): Delete.
17976 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
17977 (all_inferiors, all_non_exited_inferiors): Add
17978 process_stratum_target parameter.
17979 * infrun.c: Include "gdb_select.h" and <unordered_map>.
17980 (target_last_proc_target): New global.
17981 (follow_fork_inferior): Push target on new inferior. Pass target
17982 to add_thread_silent. Call exec_on_vfork. Handle target's
17983 reference count.
17984 (follow_fork): Adjust get_last_target_status call. Also consider
17985 target.
17986 (follow_exec): Push target on new inferior.
17987 (struct execution_control_state) <target>: New field.
17988 (user_visible_resume_target): New.
17989 (do_target_resume): Call target_async.
17990 (resume_1): Set target's threads_executing flag. Consider resume
17991 target.
17992 (commit_resume_all_targets): New.
17993 (proceed): Also consider resume target. Skip threads of inferiors
17994 with no execution. Commit resumtion in all targets.
17995 (start_remote): Pass current inferior to wait_for_inferior.
17996 (infrun_thread_stop_requested): Consider target as well. Pass
17997 thread_info pointer to clear_inline_frame_state instead of ptid.
17998 (infrun_thread_thread_exit): Consider target as well.
17999 (random_pending_event_thread): New inferior parameter. Use it.
18000 (do_target_wait): Rename to ...
18001 (do_target_wait_1): ... this. Add inferior parameter, and pass it
18002 down.
18003 (threads_are_resumed_pending_p, do_target_wait): New.
18004 (prepare_for_detach): Adjust calls.
18005 (wait_for_inferior): New inferior parameter. Handle it. Use
18006 do_target_wait_1 instead of do_target_wait.
18007 (fetch_inferior_event): Adjust. Switch to representative
18008 inferior. Pass target down.
18009 (set_last_target_status): Add process_stratum_target parameter.
18010 Save target in global.
18011 (get_last_target_status): Add process_stratum_target parameter and
18012 handle it.
18013 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
18014 (context_switch): Check inferior_ptid == null_ptid before calling
18015 inferior_thread().
18016 (get_inferior_stop_soon): Pass down target.
18017 (wait_one): Rename to ...
18018 (poll_one_curr_target): ... this.
18019 (struct wait_one_event): New.
18020 (wait_one): New.
18021 (stop_all_threads): Adjust.
18022 (handle_no_resumed, handle_inferior_event): Adjust to consider the
18023 event's target.
18024 (switch_back_to_stepped_thread): Also consider target.
18025 (print_stop_event): Update.
18026 (normal_stop): Update. Also consider the resume target.
18027 * infrun.h (wait_for_inferior): Remove declaration.
18028 (user_visible_resume_target): New declaration.
18029 (get_last_target_status, set_last_target_status): New
18030 process_stratum_target parameter.
18031 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
18032 process_stratum_target parameter, and use it.
18033 (clear_inline_frame_state (thread_info*)): New.
18034 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
18035 process_stratum_target parameter.
18036 (clear_inline_frame_state (thread_info*)): Declare.
18037 * linux-fork.c (delete_checkpoint_command): Pass target down to
18038 find_thread_ptid.
18039 (checkpoint_command): Adjust.
18040 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
18041 instead of just tweaking inferior_ptid.
18042 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
18043 (exit_lwp): Pass target down to find_thread_ptid.
18044 (attach_proc_task_lwp_callback): Pass target down to
18045 add_thread/set_running/set_executing.
18046 (linux_nat_target::attach): Pass target down to
18047 thread_change_ptid.
18048 (get_detach_signal): Pass target down to find_thread_ptid.
18049 Consider last target status's target.
18050 (linux_resume_one_lwp_throw, resume_lwp)
18051 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
18052 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
18053 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
18054 (linux_nat_target::async_wait_fd): New.
18055 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
18056 target down.
18057 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
18058 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
18059 * linux-thread-db.c (struct thread_db_info::process_target): New
18060 field.
18061 (add_thread_db_info): Save target.
18062 (get_thread_db_info): New process_stratum_target parameter. Also
18063 match target.
18064 (delete_thread_db_info): New process_stratum_target parameter.
18065 Also match target.
18066 (thread_from_lwp): Adjust to pass down target.
18067 (thread_db_notice_clone): Pass down target.
18068 (check_thread_db_callback): Pass down target.
18069 (try_thread_db_load_1): Always push the thread_db target.
18070 (try_thread_db_load, record_thread): Pass target down.
18071 (thread_db_target::detach): Pass target down. Always unpush the
18072 thread_db target.
18073 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
18074 target down. Always unpush the thread_db target.
18075 (find_new_threads_callback, thread_db_find_new_threads_2)
18076 (thread_db_target::update_thread_list): Pass target down.
18077 (thread_db_target::pid_to_str): Pass current inferior down.
18078 (thread_db_target::get_thread_local_address): Pass target down.
18079 (thread_db_target::resume, maintenance_check_libthread_db): Pass
18080 target down.
18081 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
18082 * procfs.c (procfs_target::procfs_init_inferior): Declare.
18083 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
18084 (procfs_init_inferior): Rename to ...
18085 (procfs_target::procfs_init_inferior): ... this and adjust.
18086 (procfs_target::create_inferior, procfs_notice_thread)
18087 (procfs_do_thread_registers): Adjust.
18088 * ppc-fbsd-tdep.c: Include "inferior.h".
18089 (ppcfbsd_get_thread_local_address): Pass down target.
18090 * proc-service.c (ps_xfer_memory): Switch current inferior and
18091 program space as well.
18092 (get_ps_regcache): Pass target down.
18093 * process-stratum-target.c
18094 (process_stratum_target::thread_address_space)
18095 (process_stratum_target::thread_architecture): Pass target down.
18096 * process-stratum-target.h
18097 (process_stratum_target::threads_executing): New field.
18098 (as_process_stratum_target): New.
18099 * ravenscar-thread.c
18100 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
18101 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
18102 down.
18103 * record-btrace.c (record_btrace_target::info_record): Adjust.
18104 (record_btrace_target::record_method)
18105 (record_btrace_target::record_is_replaying)
18106 (record_btrace_target::fetch_registers)
18107 (get_thread_current_frame_id, record_btrace_target::resume)
18108 (record_btrace_target::wait, record_btrace_target::stop): Pass
18109 target down.
18110 * record-full.c (record_full_wait_1): Switch to event thread.
18111 Pass target down.
18112 * regcache.c (regcache::regcache)
18113 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
18114 process_stratum_target parameter and handle it.
18115 (current_thread_target): New global.
18116 (get_thread_regcache): Add process_stratum_target parameter and
18117 handle it. Switch inferior before calling target method.
18118 (get_thread_regcache): Pass target down.
18119 (get_thread_regcache_for_ptid): Pass target down.
18120 (registers_changed_ptid): Add process_stratum_target parameter and
18121 handle it.
18122 (registers_changed_thread, registers_changed): Pass target down.
18123 (test_get_thread_arch_aspace_regcache): New.
18124 (current_regcache_test): Define a couple local test_target_ops
18125 instances and use them for testing.
18126 (readwrite_regcache): Pass process_stratum_target parameter.
18127 (cooked_read_test, cooked_write_test): Pass mock_target down.
18128 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
18129 (get_thread_arch_aspace_regcache): Add process_stratum_target
18130 parameter.
18131 (regcache::target): New method.
18132 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
18133 (regcache::registers_changed_ptid): Add process_stratum_target
18134 parameter.
18135 (regcache::m_target): New field.
18136 (registers_changed_ptid): Add process_stratum_target parameter.
18137 * remote.c (remote_state::supports_vCont_probed): New field.
18138 (remote_target::async_wait_fd): New method.
18139 (remote_unpush_and_throw): Add remote_target parameter.
18140 (get_current_remote_target): Adjust.
18141 (remote_target::remote_add_inferior): Push target.
18142 (remote_target::remote_add_thread)
18143 (remote_target::remote_notice_new_inferior)
18144 (get_remote_thread_info): Pass target down.
18145 (remote_target::update_thread_list): Skip threads of inferiors
18146 bound to other targets. (remote_target::close): Don't discard
18147 inferiors. (remote_target::add_current_inferior_and_thread)
18148 (remote_target::process_initial_stop_replies)
18149 (remote_target::start_remote)
18150 (remote_target::remote_serial_quit_handler): Pass down target.
18151 (remote_target::remote_unpush_target): New remote_target
18152 parameter. Unpush the target from all inferiors.
18153 (remote_target::remote_unpush_and_throw): New remote_target
18154 parameter. Pass it down.
18155 (remote_target::open_1): Check whether the current inferior has
18156 execution instead of checking whether any inferior is live. Pass
18157 target down.
18158 (remote_target::remote_detach_1): Pass down target. Use
18159 remote_unpush_target.
18160 (extended_remote_target::attach): Pass down target.
18161 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
18162 (remote_target::append_resumption): Pass down target.
18163 (remote_target::append_pending_thread_resumptions)
18164 (remote_target::remote_resume_with_hc, remote_target::resume)
18165 (remote_target::commit_resume): Pass down target.
18166 (remote_target::remote_stop_ns): Check supports_vCont_probed.
18167 (remote_target::interrupt_query)
18168 (remote_target::remove_new_fork_children)
18169 (remote_target::check_pending_events_prevent_wildcard_vcont)
18170 (remote_target::remote_parse_stop_reply)
18171 (remote_target::process_stop_reply): Pass down target.
18172 (first_remote_resumed_thread): New remote_target parameter. Pass
18173 it down.
18174 (remote_target::wait_as): Pass down target.
18175 (unpush_and_perror): New remote_target parameter. Pass it down.
18176 (remote_target::readchar, remote_target::remote_serial_write)
18177 (remote_target::getpkt_or_notif_sane_1)
18178 (remote_target::kill_new_fork_children, remote_target::kill): Pass
18179 down target.
18180 (remote_target::mourn_inferior): Pass down target. Use
18181 remote_unpush_target.
18182 (remote_target::core_of_thread)
18183 (remote_target::remote_btrace_maybe_reopen): Pass down target.
18184 (remote_target::pid_to_exec_file)
18185 (remote_target::thread_handle_to_thread_info): Pass down target.
18186 (remote_target::async_wait_fd): New.
18187 * riscv-fbsd-tdep.c: Include "inferior.h".
18188 (riscv_fbsd_get_thread_local_address): Pass down target.
18189 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
18190 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
18191 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
18192 Adjust.
18193 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
18194 * solib-svr4.c (enable_break): Pass down target.
18195 * spu-multiarch.c (parse_spufs_run): Pass down target.
18196 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
18197 * target-delegates.c: Regenerate.
18198 * target.c (g_target_stack): Delete.
18199 (current_top_target): Return the current inferior's top target.
18200 (target_has_execution_1): Refer to the passed-in inferior's top
18201 target.
18202 (target_supports_terminal_ours): Check whether the initial
18203 inferior was already created.
18204 (decref_target): New.
18205 (target_stack::push): Incref/decref the target.
18206 (push_target, push_target, unpush_target): Adjust.
18207 (target_stack::unpush): Defref target.
18208 (target_is_pushed): Return bool. Adjust to refer to the current
18209 inferior's target stack.
18210 (dispose_inferior): Delete, and inline parts ...
18211 (target_preopen): ... here. Only dispose of the current inferior.
18212 (target_detach): Hold strong target reference while detaching.
18213 Pass target down.
18214 (target_thread_name): Add assertion.
18215 (target_resume): Pass down target.
18216 (target_ops::beneath, find_target_at): Adjust to refer to the
18217 current inferior's target stack.
18218 (get_dummy_target): New.
18219 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
18220 has a thread running.
18221 (initialize_targets): Rename to ...
18222 (_initialize_target): ... this.
18223 * target.h: Include "gdbsupport/refcounted-object.h".
18224 (struct target_ops): Inherit refcounted_object.
18225 (target_ops::shortname, target_ops::longname): Make const.
18226 (target_ops::async_wait_fd): New method.
18227 (decref_target): Declare.
18228 (struct target_ops_ref_policy): New.
18229 (target_ops_ref): New typedef.
18230 (get_dummy_target): Declare function.
18231 (target_is_pushed): Return bool.
18232 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
18233 (all_matching_threads_iterator::all_matching_threads_iterator):
18234 Handle filter target.
18235 * thread-iter.h (struct all_matching_threads_iterator, struct
18236 all_matching_threads_range, class all_non_exited_threads_range):
18237 Filter by target too. Remove explicit.
18238 * thread.c (threads_executing): Delete.
18239 (inferior_thread): Pass down current inferior.
18240 (clear_thread_inferior_resources): Pass down thread pointer
18241 instead of ptid_t.
18242 (add_thread_silent, add_thread_with_info, add_thread): Add
18243 process_stratum_target parameter. Use it for thread and inferior
18244 searches.
18245 (is_current_thread): New.
18246 (thread_info::deletable): Use it.
18247 (find_thread_ptid, thread_count, in_thread_list)
18248 (thread_change_ptid, set_resumed, set_running): New
18249 process_stratum_target parameter. Pass it down.
18250 (set_executing): New process_stratum_target parameter. Pass it
18251 down. Adjust reference to 'threads_executing'.
18252 (threads_are_executing): New process_stratum_target parameter.
18253 Adjust reference to 'threads_executing'.
18254 (set_stop_requested, finish_thread_state): New
18255 process_stratum_target parameter. Pass it down.
18256 (switch_to_thread): Also match inferior.
18257 (switch_to_thread): New process_stratum_target parameter. Pass it
18258 down.
18259 (update_threads_executing): Reimplement.
18260 * top.c (quit_force): Pop targets from all inferior.
18261 (gdb_init): Don't call initialize_targets.
18262 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
18263 Declare.
18264 (windows_add_thread, windows_delete_thread): Adjust.
18265 (get_windows_debug_event): Rename to ...
18266 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
18267 * tracefile-tfile.c (tfile_target_open): Pass down target.
18268 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
18269 Forward declare.
18270 (switch_to_thread): Add process_stratum_target parameter.
18271 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
18272 parameter. Use it.
18273 (mi_on_resume): Pass target down.
18274 * nat/fork-inferior.c (startup_inferior): Add
18275 process_stratum_target parameter. Pass it down.
18276 * nat/fork-inferior.h (startup_inferior): Add
18277 process_stratum_target parameter.
18278 * python/py-threadevent.c (py_get_event_thread): Pass target down.
18279
75c6c844
PA
182802020-01-10 Pedro Alves <palves@redhat.com>
18281
18282 * remote.c (remote_target::start_remote): Don't set inferior_ptid
18283 directly. Instead find the first thread in the thread list and
18284 use switch_to_thread.
18285
78f2c40a
PA
182862020-01-10 Pedro Alves <palves@redhat.com>
18287
18288 * remote.c (remote_target::remote_add_inferior): Don't bind a
18289 process to the current inferior if the current inferior is already
18290 bound to a process.
18291
e7af6c70
TBA
182922020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18293 Pedro Alves <palves@redhat.com>
18294
18295 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
18296 If no process is specified, return null_ptid instead of
18297 inferior_ptid.
18298 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
18299 TARGET_WAITKIND_SIGNALLED with no pid.
18300
31ba933e
PA
183012020-01-10 Pedro Alves <palves@redhat.com>
18302
18303 * remote.c (first_remote_resumed_thread): New.
18304 (remote_target::wait_as): Use it as default event_ptid instead of
18305 inferior_ptid.
18306
735fc2ca
PA
183072020-01-10 Pedro Alves <palves@redhat.com>
18308
18309 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
18310
c17e02e1
PA
183112020-01-10 Pedro Alves <palves@redhat.com>
18312
18313 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
18314 not -1.
18315
ab1ddbcf
PA
183162020-01-10 Pedro Alves <palves@redhat.com>
18317
18318 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
18319 ptid to get_last_target_status.
18320 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
18321 ptid to get_last_target_status.
18322 * infcmd.c (continue_command): Don't pass a target_waitstatus to
18323 get_last_target_status.
18324 (info_program_command): Don't pass a target_waitstatus to
18325 get_last_target_status.
18326 * infrun.c (init_wait_for_inferior): Use
18327 nullify_last_target_wait_ptid.
18328 (get_last_target_status): Handle nullptr arguments.
18329 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
18330 (print_stop_event): Don't pass a ptid to get_last_target_status.
18331 (normal_stop): Don't pass a ptid to get_last_target_status.
18332 * infrun.h (get_last_target_status, set_last_target_status): Move
18333 comments here and update.
18334 (nullify_last_target_wait_ptid): Declare.
18335 * linux-fork.c (fork_load_infrun_state): Remove local extern
18336 declaration of nullify_last_target_wait_ptid.
18337 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
18338 to get_last_target_status.
18339
f3f8ece4
PA
183402020-01-10 Pedro Alves <palves@redhat.com>
18341
18342 * gdbthread.h (scoped_restore_current_thread)
18343 <dont_restore, restore, m_dont_restore>: Declare.
18344 * thread.c (thread_alive): Add assertion. Return bool.
18345 (switch_to_thread_if_alive): New.
18346 (prune_threads): Switch inferior/thread.
18347 (print_thread_info_1): Switch thread before calling target methods.
18348 (scoped_restore_current_thread::restore): New, factored out from
18349 ...
18350 (scoped_restore_current_thread::~scoped_restore_current_thread):
18351 ... this.
18352 (scoped_restore_current_thread::scoped_restore_current_thread):
18353 Add assertion.
18354 (thread_apply_all_command, thread_select): Use
18355 switch_to_thread_if_alive.
18356 * infrun.c (proceed, restart_threads, handle_signal_stop)
18357 (switch_back_to_stepped_thread): Switch current thread before
18358 calling target methods.
18359
db2d40f7
PA
183602020-01-10 Pedro Alves <palves@redhat.com>
18361
18362 * inferior.c (switch_to_inferior_no_thread): New function,
18363 factored out from ...
18364 (inferior_command): ... here.
18365 * inferior.h (switch_to_inferior_no_thread): Declare.
18366 * mi/mi-main.c (run_one_inferior): Use
18367 switch_to_inferior_no_thread.
18368
bd420a2d
PA
183692020-01-10 Pedro Alves <palves@redhat.com>
18370
18371 * infcmd.c (kill_command): Remove dead code.
18372
ddf5db90
PA
183732020-01-10 Pedro Alves <palves@redhat.com>
18374
18375 * remote.c (remote_target::mourn_inferior): No longer check
18376 whether the target is running.
18377
5018ce90
PA
183782020-01-10 Pedro Alves <palves@redhat.com>
18379
18380 * corelow.c (core_target::has_execution): Change parameter type to
18381 inferior pointer.
18382 * inferior.c (number_of_live_inferiors): Use
18383 inferior::has_execution instead of target_has_execution_1.
18384 * inferior.h (inferior::has_execution): New.
18385 * linux-thread-db.c (thread_db_target::update_thread_list): Use
18386 inferior::has_execution instead of target_has_execution_1.
18387 * process-stratum-target.c
18388 (process_stratum_target::has_execution): Change parameter type to
18389 inferior pointer. Check the inferior's PID instead of
18390 inferior_ptid.
18391 * process-stratum-target.h
18392 (process_stratum_target::has_execution): Change parameter type to
18393 inferior pointer.
18394 * record-full.c (record_full_core_target::has_execution): Change
18395 parameter type to inferior pointer.
18396 * target.c (target_has_execution_1): Change parameter type to
18397 inferior pointer.
18398 (target_has_execution_current): Adjust.
18399 * target.h (target_ops::has_execution): Change parameter type to
18400 inferior pointer.
18401 (target_has_execution_1): Change parameter type to inferior
18402 pointer. Change return type to bool.
18403 * tracefile.h (tracefile_target::has_execution): Change parameter
18404 type to inferior pointer.
18405
74375d18
PA
184062020-01-10 Pedro Alves <palves@redhat.com>
18407
18408 * exceptions.c (print_flush): Remove current_top_target() check.
18409
acdf84a6
PA
184102020-01-10 Pedro Alves <palves@redhat.com>
18411
18412 * remote.c (show_remote_exec_file): Show the current inferior's
18413 exec-file instead of the command variable's value.
18414
ec506636
PA
184152020-01-10 Pedro Alves <palves@redhat.com>
18416
18417 * record-full.c (record_full_resume_ptid): New global.
18418 (record_full_target::resume): Set it.
18419 (record_full_wait_1): Use record_full_resume_ptid instead of
18420 inferior_ptid.
18421
873657b9
PA
184222020-01-10 Pedro Alves <palves@redhat.com>
18423
18424 * gdbthread.h (scoped_restore_current_thread)
18425 <dont_restore, restore, m_dont_restore>: Declare.
18426 * thread.c (thread_alive): Add assertion. Return bool.
18427 (switch_to_thread_if_alive): New.
18428 (prune_threads): Switch inferior/thread.
18429 (print_thread_info_1): Switch thread before calling target methods.
18430 (scoped_restore_current_thread::restore): New, factored out from
18431 ...
18432 (scoped_restore_current_thread::~scoped_restore_current_thread):
18433 ... this.
18434 (scoped_restore_current_thread::scoped_restore_current_thread):
18435 Add assertion.
18436 (thread_apply_all_command, thread_select): Use
18437 switch_to_thread_if_alive.
18438
7f0ae84c
GB
184392020-01-10 George Barrett <bob@bob131.so>
18440
18441 * stap-probe.c (stap_modify_semaphore): Don't check for null
18442 semaphores.
18443 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
18444 for null semaphores.
18445
f5a7c406
AB
184462020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18447
18448 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
18449 all source windows, and maintain horizontal scroll status while
18450 doing so.
18451
9ae6bf64
TT
184522020-01-09 Tom Tromey <tom@tromey.com>
18453
18454 PR tui/18932:
18455 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
18456 update_source_window, not print_source_lines.
18457
b2efe70c
AB
184582020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
18459
18460 * tui/tui.c (tui_enable): Register tui hooks after calling
18461 tui_display_main.
18462
5f23a082
CB
184632020-01-09 Christian Biesinger <cbiesinger@google.com>
18464
18465 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
18466
3061113b
SM
184672020-01-08 Simon Marchi <simon.marchi@efficios.com>
18468
18469 * thread.c (print_thread_info_1): Fix indentation.
18470
57d75002
CB
184712020-01-09 Christian Biesinger <cbiesinger@google.com>
18472
18473 * symtab.c (general_symbol_info::compute_and_set_names): Move the
18474 unique_xmalloc_ptr outside the if to always free the demangled name.
18475
6a053cb1
TT
184762020-01-08 Tom Tromey <tromey@adacore.com>
18477
18478 * xcoffread.c (enter_line_range, read_xcoff_symtab)
18479 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
18480 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
18481 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
18482 Remove.
18483 (section_offsets): New typedef.
18484 * symtab.c (fixup_section, get_msymbol_address): Update.
18485 * symmisc.c (dump_msymbols): Update.
18486 * symfile.h (relative_addr_info_to_section_offsets)
18487 (symfile_map_offsets_to_segments): Update.
18488 * symfile.c (build_section_addr_info_from_objfile)
18489 (init_objfile_sect_indices): Update.
18490 (struct place_section_arg): Change type of "offsets".
18491 (place_section): Update.
18492 (relative_addr_info_to_section_offsets): Change type of
18493 "section_offsets". Remove "num_sections" parameter.
18494 (default_symfile_offsets, syms_from_objfile_1)
18495 (set_objfile_default_section_offset): Update.
18496 (reread_symbols): No need to preserve section offsets by hand.
18497 (symfile_map_offsets_to_segments): Change type of "offsets".
18498 * stap-probe.c (relocate_address): Update.
18499 * stabsread.h (process_one_symbol): Update.
18500 * solib-target.c (struct lm_info_target) <offsets>: Change type.
18501 (solib_target_relocate_section_addresses): Update.
18502 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
18503 Update.
18504 * solib-frv.c (frv_relocate_main_executable): Update.
18505 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
18506 * solib-aix.c (solib_aix_get_section_offsets): Change return
18507 type.
18508 (solib_aix_solib_create_inferior_hook): Update.
18509 * remote.c (remote_target::get_offsets): Update.
18510 * psymtab.c (find_pc_sect_psymtab): Update.
18511 * psympriv.h (struct partial_symbol) <address, text_low,
18512 text_high>: Update.
18513 * objfiles.h (obj_section_offset): Update.
18514 (struct objfile) <section_offsets>: Change type.
18515 <num_sections>: Remove.
18516 (objfile_relocate): Update.
18517 * objfiles.c (entry_point_address_query): Update
18518 (relocate_one_symbol): Change type of "section_offsets".
18519 (objfile_relocate1, objfile_relocate1): Change type of
18520 "new_offsets".
18521 (objfile_rebase1): Update.
18522 * mipsread.c (mipscoff_symfile_read): Update.
18523 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
18524 parameter.
18525 * mdebugread.c (parse_symbol): Change type of "section_offsets".
18526 (parse_external, psymtab_to_symtab_1): Update.
18527 * machoread.c (macho_symfile_offsets): Update.
18528 * ia64-tdep.c (ia64_find_unwind_table): Update.
18529 * hppa-tdep.c (read_unwind_info): Update.
18530 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
18531 * dwarf2read.c (create_addrmap_from_index)
18532 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
18533 (process_psymtab_comp_unit_reader, add_partial_symbol)
18534 (add_partial_subprogram, process_full_comp_unit)
18535 (read_file_scope, read_func_scope, read_lexical_block_scope)
18536 (read_call_site_scope, dwarf2_rnglists_process)
18537 (dwarf2_ranges_process, dwarf2_ranges_read)
18538 (dwarf_decode_lines_1, var_decode_location, new_symbol)
18539 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
18540 Update.
18541 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
18542 Update.
18543 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
18544 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
18545 (process_one_symbol): Change type of "section_offsets".
18546 * ctfread.c (get_objfile_text_range): Update.
18547 * coffread.c (coff_symtab_read, enter_linenos)
18548 (process_coff_symbol): Update.
18549 * coff-pe-read.c (add_pe_forwarded_sym): Update.
18550 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
18551
456e800a
TT
185522020-01-08 Tom Tromey <tromey@adacore.com>
18553
18554 * dwarf2read.c (parse_macro_definition): Use std::string.
18555 (parse_macro_definition): Likewise.
18556
6dfa2fc2
TT
185572020-01-08 Tom Tromey <tromey@adacore.com>
18558
18559 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
18560 (ATTR_ALLOC_CHUNK): Remove.
18561
421d1616
TT
185622020-01-08 Tom Tromey <tromey@adacore.com>
18563
18564 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
18565
43816ebc
TT
185662020-01-08 Tom Tromey <tromey@adacore.com>
18567
18568 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
18569 (dwarf2_compute_name, open_dwo_file): Likewise.
18570 (process_enumeration_scope): Use std::vector.
18571 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
18572 (partial_die_info::fixup, dwarf2_start_subfile)
18573 (guess_full_die_structure_name, dwarf2_name): Likewise.
18574 (determine_prefix): Update.
18575 (guess_full_die_structure_name): Make return type const.
18576 (partial_die_full_name): Return unique_xmalloc_ptr.
18577 (DW_FIELD_ALLOC_CHUNK): Remove.
18578
4212d509
TT
185792020-01-07 Tom Tromey <tromey@adacore.com>
18580
18581 PR build/24937:
18582 * stap-probe.c (class stap_static_probe_ops): Add constructor.
18583
06a6207a
JT
185842020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18585
18586 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
18587
153d79c4
AB
185882020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
18589
18590 * stack.c (print_frame_info): Move disassemble_next_line code
18591 inside source_print block.
18592
66182876
EZ
185932020-01-06 Eli Zaretskii <eliz@gnu.org>
18594
18595 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
18596 gdb/signals.h, as we are now using native signal symbols.
18597
cbfa8581
SV
185982020-01-06 Shahab Vahedi <shahab@synopsys.com>
18599
18600 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
18601 overflow by an early check of content vs threshold.
aac66a4c 18602 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
18603 Likewise.
18604
3f602821
EZ
186052020-01-06 Eli Zaretskii <eliz@gnu.org>
18606
18607 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
18608
a08c904d
JT
186092020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
18610
18611 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
18612 export table if no section contains it's RVA.
18613
89a65580
EZ
186142020-01-06 Eli Zaretskii <eliz@gnu.org>
18615
18616 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
18617
8b7fcda2
HD
186182020-01-06 Hannes Domani <ssbssa@yahoo.de>
18619
18620 * source.c (print_source_lines_base): Set last_line_listed.
18621
a61b4f69
SV
186222020-01-06 Shahab Vahedi <shahab@synopsys.com>
18623
18624 * tui/tui-disasm.c: Remove trailing spaces.
18625
559e7e50
EZ
186262020-01-06 Eli Zaretskii <eliz@gnu.org>
18627 Pedro Alves <palves@redhat.com>
18628
18629 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
18630 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
18631 (windows_gdb_signal_to_target): New function, uses the above
18632 enumeration to convert GDB internal signal codes to equivalent
18633 Windows codes.
18634 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
18635 * windows-nat.c: Include "gdb_wait.h".
18636 (get_windows_debug_event): Extract the fatal exception from the
18637 exit status and convert to the equivalent Posix signal number.
18638 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
18639 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
18640 * gdbsupport/gdb_wait.c: New file, implements
18641 windows_status_to_termsig.
18642 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
18643 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
18644
f2302a34
AB
186452020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
18646
18647 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
18648 show_layout.
18649
6a5206eb
LM
186502020-01-05 Luis Machado <luis.machado@linaro.org>
18651
18652 * aarch64-linux-nat.c
18653 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
18654 and bfd_mach_aarch64.
18655
6ec1d75e
PW
186562020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
18657
18658 * ui-file.c (stdio_file::can_emit_style_escape)
18659 (tee_file::can_emit_style_escape): Ensure style is used also on
18660 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
18661 to gdb_stdout.
18662 * main.c (set_gdb_data_directory): Use file style to output the
18663 warning that the given pathname is not a directory.
18664 * top.c (show_history_filename, gdb_safe_append_history)
18665 (show_gdb_datadir): Use file style.
18666
44f81a76
HD
186672020-01-03 Hannes Domani <ssbssa@yahoo.de>
18668
18669 * solib-target.c (struct lm_info_target):
18670 Change offsets to be a unique_xmalloc_ptr.
18671 (solib_target_relocate_section_addresses): Update.
18672
25057eb0
HD
186732020-01-03 Hannes Domani <ssbssa@yahoo.de>
18674
18675 * windows-nat.c (windows_clear_solib): Free so_list linked list.
18676
6e2118f5
BE
186772020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
18678
18679 * MAINTAINERS (Write After Approval): Add myself.
18680
8133c7dc
LM
186812020-01-02 Luis Machado <luis.machado@linaro.org>
18682
18683 * proc-service.c (get_ps_regcache): Remove reference to obsolete
18684 Cell BE architecture.
18685 * target.h (struct target_ops) <thread_architecture>: Likewise.
18686
48189bec
HD
186872020-01-01 Hannes Domani <ssbssa@yahoo.de>
18688
18689 * Makefile.in: Use INSTALL_PROGRAM_ENV.
18690
ead1063b
HD
186912020-01-01 Hannes Domani <ssbssa@yahoo.de>
18692
18693 * MAINTAINERS (Write After Approval): Add myself.
18694
e5d78223
JB
186952020-01-01 Joel Brobecker <brobecker@adacore.com>
18696
18697 * gdbarch.sh: Update copyright year range of generated files.
18698
b811d2c2
JB
186992020-01-01 Joel Brobecker <brobecker@adacore.com>
18700
18701 Update copyright year range in all GDB files.
18702
5f4def5c
JB
187032020-01-01 Joel Brobecker <brobecker@adacore.com>
18704
18705 * copyright.py: Convert to Python 3.
18706
51fd4002
JB
187072020-01-01 Joel Brobecker <brobecker@adacore.com>
18708
18709 * copyright.py: Adapt after move of gnulib directory from gdb
18710 directory to toplevel directory.
18711
5fb651f2
JB
187122020-01-01 Joel Brobecker <brobecker@adacore.com>
18713
18714 * copyright.py (main): Exit if run from the wrong directory.
18715
5dd8bf88
JB
187162020-01-01 Joel Brobecker <brobecker@adacore.com>
18717
18718 * top.c (print_gdb_version): Change copyright year to 2020.
18719
9f71dacb 187202020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 18721
9f71dacb 18722 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 18723
9f71dacb 18724For older changes see ChangeLog-2019.
c906108c
SS
18725\f
18726Local Variables:
18727mode: change-log
18728left-margin: 8
18729fill-column: 74
18730version-control: never
57da7796 18731coding: utf-8
c906108c 18732End:
This page took 3.585298 seconds and 4 git commands to generate.